From 48b230016160d794c4079a98ef1639232d3bd13e Mon Sep 17 00:00:00 2001 From: Ashley Claymore Date: Mon, 18 Nov 2024 10:14:44 +0000 Subject: [PATCH] Updates --- .nojekyll | 0 assets/base.min.css | 1 + assets/benchmark-chart-1.jpg | Bin 0 -> 29081 bytes assets/benchmark-chart-2.jpg | Bin 0 -> 32348 bytes index.html | 205 + .../prism-themes/themes/prism-vs.min.css | 1 + .../themes/prism-vsc-dark-plus.min.css | 1 + play/codicon-37A3DWZT.ttf | Bin 0 -> 80340 bytes play/index.html | 93 + play/play.css | 1 + play/play.js | 3297 + vs/editor/editor.worker.js | 14 + vs/language/typescript/ts.worker.js | 51344 ++++++++++++++++ 13 files changed, 54957 insertions(+) create mode 100644 .nojekyll create mode 100644 assets/base.min.css create mode 100644 assets/benchmark-chart-1.jpg create mode 100644 assets/benchmark-chart-2.jpg create mode 100644 index.html create mode 100644 node_modules/prism-themes/themes/prism-vs.min.css create mode 100644 node_modules/prism-themes/themes/prism-vsc-dark-plus.min.css create mode 100644 play/codicon-37A3DWZT.ttf create mode 100644 play/index.html create mode 100644 play/play.css create mode 100644 play/play.js create mode 100644 vs/editor/editor.worker.js create mode 100644 vs/language/typescript/ts.worker.js diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/assets/base.min.css b/assets/base.min.css new file mode 100644 index 0000000..6a68e3e --- /dev/null +++ b/assets/base.min.css @@ -0,0 +1 @@ +@import"https://assets.bwbx.io/font-service/css/AvenirNextP2ForBBG:100,100i,300,300i,400,400i,500,500i,600,600i,700,700i,900,900i|RobotoMono:400,400i,700,700i/styled-font-face.css";@layer{:root,:host{--cds-color-core-amber-01: #ffdfb7;--cds-color-core-amber-02: #ffd093;--cds-color-core-amber-03: #ffc070;--cds-color-core-amber-04: #ffb04c;--cds-color-core-amber-05: #ffa028;--cds-color-core-amber-06: #db7500;--cds-color-core-amber-07: #b76100;--cds-color-core-amber-08: #924e00;--cds-color-core-amber-09: #6e3a00;--cds-color-core-amber-10: #492600;--cds-color-core-black: #000000;--cds-color-core-blue-01: #cce3ff;--cds-color-core-blue-02: #99c7ff;--cds-color-core-blue-03: #66abff;--cds-color-core-blue-04: #2b8eff;--cds-color-core-blue-05: #0073ff;--cds-color-core-blue-06: #0062dd;--cds-color-core-blue-07: #0051ba;--cds-color-core-blue-08: #004098;--cds-color-core-blue-09: #003075;--cds-color-core-blue-10: #001f53;--cds-color-core-green-01: #c5facf;--cds-color-core-green-02: #8af59e;--cds-color-core-green-03: #50f06e;--cds-color-core-green-04: #35d655;--cds-color-core-green-05: #1bbc3c;--cds-color-core-green-06: #00a223;--cds-color-core-green-07: #00851c;--cds-color-core-green-08: #006716;--cds-color-core-green-09: #004a0f;--cds-color-core-green-10: #002c09;--cds-color-core-grey-01: #f0f0f0;--cds-color-core-grey-02: #ebebeb;--cds-color-core-grey-03: #e1e1e1;--cds-color-core-grey-04: #d7d7d7;--cds-color-core-grey-05: #cdcdcd;--cds-color-core-grey-06: #bebebe;--cds-color-core-grey-07: #a5a5a5;--cds-color-core-grey-08: #8c8c8c;--cds-color-core-grey-09: #787878;--cds-color-core-grey-10: #646464;--cds-color-core-grey-11: #505050;--cds-color-core-grey-12: #414141;--cds-color-core-grey-13: #373737;--cds-color-core-grey-14: #282828;--cds-color-core-grey-15: #232323;--cds-color-core-grey-16: #1e1e1e;--cds-color-core-grey-17: #191919;--cds-color-core-grey-18: #141414;--cds-color-core-magenta-01: #fbb7e8;--cds-color-core-magenta-02: #f993dd;--cds-color-core-magenta-03: #f770d2;--cds-color-core-magenta-04: #f54cc6;--cds-color-core-magenta-05: #f328bb;--cds-color-core-magenta-06: #d022a0;--cds-color-core-magenta-07: #ae1d86;--cds-color-core-magenta-08: #8b176b;--cds-color-core-magenta-09: #681150;--cds-color-core-magenta-10: #450b35;--cds-color-core-none: transparent;--cds-color-core-orange-01: #fdc8b7;--cds-color-core-orange-02: #fdac93;--cds-color-core-orange-03: #fc9170;--cds-color-core-orange-04: #fb754c;--cds-color-core-orange-05: #fa5a28;--cds-color-core-orange-06: #d64d22;--cds-color-core-orange-07: #b3401d;--cds-color-core-orange-08: #8f3317;--cds-color-core-orange-09: #6b2711;--cds-color-core-orange-10: #471a0b;--cds-color-core-purple-01: #edd0ff;--cds-color-core-purple-02: #e4b9ff;--cds-color-core-purple-03: #daa2ff;--cds-color-core-purple-04: #d18aff;--cds-color-core-purple-05: #c873ff;--cds-color-core-purple-06: #ab63db;--cds-color-core-purple-07: #8f52b6;--cds-color-core-purple-08: #724292;--cds-color-core-purple-09: #56316d;--cds-color-core-purple-10: #392149;--cds-color-core-red-01: #ffccd2;--cds-color-core-red-02: #ff7486;--cds-color-core-red-03: #ff415c;--cds-color-core-red-04: #ff2c4a;--cds-color-core-red-05: #e61e3c;--cds-color-core-red-06: #c31834;--cds-color-core-red-07: #a1122c;--cds-color-core-red-08: #7e0c24;--cds-color-core-red-09: #5c061c;--cds-color-core-red-10: #390014;--cds-color-core-teal-01: #dffcff;--cds-color-core-teal-02: #bff9ff;--cds-color-core-teal-03: #80f3ff;--cds-color-core-teal-04: #40ecff;--cds-color-core-teal-05: #00e6ff;--cds-color-core-teal-06: #00c2d7;--cds-color-core-teal-07: #009eb0;--cds-color-core-teal-08: #007b88;--cds-color-core-teal-09: #005761;--cds-color-core-teal-10: #003339;--cds-color-core-white: #ffffff;--cds-color-core-yellow-01: #fff9cc;--cds-color-core-yellow-02: #fff399;--cds-color-core-yellow-03: #ffed66;--cds-color-core-yellow-04: #ffe733;--cds-color-core-yellow-05: #ffe100;--cds-color-core-yellow-06: #d7be00;--cds-color-core-yellow-07: #b09b00;--cds-color-core-yellow-08: #887800;--cds-color-core-yellow-09: #615500;--cds-color-core-yellow-10: #393200;--cds-font-core-decoration-none: none;--cds-font-core-decoration-underline: underline;--cds-font-core-family-avenir: AvenirNextP2ForBBG, Arial, Helvetica, sans-serif;--cds-font-core-family-roboto: RobotoMono, monospace;--cds-font-core-scale-01-fontsize: .5rem;--cds-font-core-scale-01-lineheight: 1.375;--cds-font-core-scale-02-fontsize: .625rem;--cds-font-core-scale-02-lineheight: 1.2;--cds-font-core-scale-03-fontsize: .75rem;--cds-font-core-scale-03-lineheight: 1.3;--cds-font-core-scale-04-fontsize: .875rem;--cds-font-core-scale-04-lineheight: 1.429;--cds-font-core-scale-05-fontsize: 1rem;--cds-font-core-scale-05-lineheight: 1.5;--cds-font-core-scale-06-fontsize: 1.25rem;--cds-font-core-scale-06-lineheight: 1.3;--cds-font-core-scale-07-fontsize: 1.5rem;--cds-font-core-scale-07-lineheight: 1.25;--cds-font-core-scale-08-fontsize: 1.75rem;--cds-font-core-scale-08-lineheight: 1.214;--cds-font-core-scale-09-fontsize: 2.25rem;--cds-font-core-scale-09-lineheight: 1.167;--cds-font-core-scale-10-fontsize: 2.75rem;--cds-font-core-scale-10-lineheight: 1.273;--cds-font-core-scale-11-fontsize: 3.25rem;--cds-font-core-scale-11-lineheight: 1.154;--cds-font-core-scale-12-fontsize: 4.25rem;--cds-font-core-scale-12-lineheight: 1.088;--cds-font-core-scale-13-fontsize: 5.25rem;--cds-font-core-scale-13-lineheight: 1.143;--cds-font-core-scale-14-fontsize: 6.25rem;--cds-font-core-scale-14-lineheight: 1.12;--cds-font-core-transform-uppercase: uppercase;--cds-font-core-weight-bold: 700;--cds-font-core-weight-heavy: 900;--cds-font-core-weight-light: 300;--cds-font-core-weight-medium: 500;--cds-font-core-weight-regular: 400;--cds-font-core-weight-semibold: 600;--cds-font-core-weight-thin: 100;--cds-opacity-core-01: .05;--cds-opacity-core-02: .15;--cds-opacity-core-03: .25;--cds-opacity-core-04: .35;--cds-opacity-core-05: .45;--cds-opacity-core-06: .55;--cds-opacity-core-07: .65;--cds-opacity-core-08: .75;--cds-opacity-core-09: .85;--cds-opacity-core-10: .95;--cds-size-core-000-px: 0px;--cds-size-core-000-rem: 0rem;--cds-size-core-005-px: 2px;--cds-size-core-005-rem: .125rem;--cds-size-core-010-px: 4px;--cds-size-core-010-rem: .25rem;--cds-size-core-020-px: 8px;--cds-size-core-020-rem: .5rem;--cds-size-core-030-px: 12px;--cds-size-core-030-rem: .75rem;--cds-size-core-040-px: 16px;--cds-size-core-040-rem: 1rem;--cds-size-core-050-px: 20px;--cds-size-core-050-rem: 1.25rem;--cds-size-core-060-px: 24px;--cds-size-core-060-rem: 1.5rem;--cds-size-core-080-px: 32px;--cds-size-core-080-rem: 2rem;--cds-size-core-100-px: 40px;--cds-size-core-100-rem: 2.5rem;--cds-size-core-230-px: 92px;--cds-size-core-230-rem: 5.75rem;--cds-font-base-family: var(--cds-font-core-family-avenir);--cds-font-base-height: var(--cds-font-core-scale-04-lineheight);--cds-font-base-size: var(--cds-font-core-scale-04-fontsize);--cds-font-body-default-fontsize: var(--cds-font-core-scale-04-fontsize);--cds-font-body-default-lineheight: var(--cds-font-core-scale-04-lineheight);--cds-font-body-default-weight: var(--cds-font-core-weight-regular);--cds-font-body-default-weight-bold: var(--cds-font-core-weight-medium);--cds-font-body-large-fontsize: var(--cds-font-core-scale-05-fontsize);--cds-font-body-large-lineheight: var(--cds-font-core-scale-05-lineheight);--cds-font-body-large-weight: var(--cds-font-core-weight-regular);--cds-font-body-small-fontsize: var(--cds-font-core-scale-03-fontsize);--cds-font-body-small-lineheight: var(--cds-font-core-scale-03-lineheight);--cds-font-body-small-weight: var(--cds-font-core-weight-regular);--cds-font-button-label-fontsize: var(--cds-font-core-scale-04-fontsize);--cds-font-button-label-lineheight: var(--cds-font-core-scale-04-lineheight);--cds-font-button-label-weight: var(--cds-font-core-weight-medium);--cds-font-code-family: var(--cds-font-core-family-roboto);--cds-font-datadisplay-01-fontsize: var(--cds-font-core-scale-08-fontsize);--cds-font-datadisplay-01-lineheight: var(--cds-font-core-scale-08-lineheight);--cds-font-datadisplay-01-weight: var(--cds-font-core-weight-regular);--cds-font-datadisplay-02-fontsize: var(--cds-font-core-scale-07-fontsize);--cds-font-datadisplay-02-lineheight: var(--cds-font-core-scale-07-lineheight);--cds-font-datadisplay-02-weight: var(--cds-font-core-weight-regular);--cds-font-display-01-fontsize: var(--cds-font-core-scale-12-fontsize);--cds-font-display-01-lineheight: var(--cds-font-core-scale-12-lineheight);--cds-font-display-01-weight: var(--cds-font-core-weight-regular);--cds-font-display-01-weight-bold: var(--cds-font-core-weight-bold);--cds-font-display-02-fontsize: var(--cds-font-core-scale-11-fontsize);--cds-font-display-02-lineheight: var(--cds-font-core-scale-11-lineheight);--cds-font-display-02-weight: var(--cds-font-core-weight-regular);--cds-font-display-02-weight-bold: var(--cds-font-core-weight-bold);--cds-font-display-03-fontsize: var(--cds-font-core-scale-10-fontsize);--cds-font-display-03-lineheight: var(--cds-font-core-scale-10-lineheight);--cds-font-display-03-weight: var(--cds-font-core-weight-regular);--cds-font-display-03-weight-bold: var(--cds-font-core-weight-bold);--cds-font-groupheading-01-fontsize: var(--cds-font-core-scale-04-fontsize);--cds-font-groupheading-01-lineheight: var(--cds-font-core-scale-04-lineheight);--cds-font-groupheading-01-transform: var(--cds-font-core-transform-uppercase);--cds-font-groupheading-01-weight: var(--cds-font-core-weight-medium);--cds-font-groupheading-02-fontsize: var(--cds-font-core-scale-03-fontsize);--cds-font-groupheading-02-lineheight: var(--cds-font-core-scale-03-lineheight);--cds-font-groupheading-02-transform: var(--cds-font-core-transform-uppercase);--cds-font-groupheading-02-weight: var(--cds-font-core-weight-semibold);--cds-font-heading-01-fontsize: var(--cds-font-core-scale-09-fontsize);--cds-font-heading-01-lineheight: var(--cds-font-core-scale-09-lineheight);--cds-font-heading-01-weight: var(--cds-font-core-weight-medium);--cds-font-heading-02-fontsize: var(--cds-font-core-scale-08-fontsize);--cds-font-heading-02-lineheight: var(--cds-font-core-scale-08-lineheight);--cds-font-heading-02-weight: var(--cds-font-core-weight-medium);--cds-font-heading-03-fontsize: var(--cds-font-core-scale-07-fontsize);--cds-font-heading-03-lineheight: var(--cds-font-core-scale-07-lineheight);--cds-font-heading-03-weight: var(--cds-font-core-weight-medium);--cds-font-heading-04-fontsize: var(--cds-font-core-scale-06-fontsize);--cds-font-heading-04-lineheight: var(--cds-font-core-scale-03-lineheight);--cds-font-heading-04-weight: var(--cds-font-core-weight-medium);--cds-font-heading-05-fontsize: var(--cds-font-core-scale-05-fontsize);--cds-font-heading-05-lineheight: var(--cds-font-core-scale-05-lineheight);--cds-font-heading-05-weight: var(--cds-font-core-weight-semibold);--cds-font-heading-06-fontsize: var(--cds-font-core-scale-04-fontsize);--cds-font-heading-06-lineheight: var(--cds-font-core-scale-04-lineheight);--cds-font-heading-06-weight: var(--cds-font-core-weight-semibold);--cds-font-heading-07-fontsize: var(--cds-font-core-scale-03-fontsize);--cds-font-heading-07-lineheight: var(--cds-font-core-scale-03-lineheight);--cds-font-heading-07-weight: var(--cds-font-core-weight-semibold);--cds-font-label-default-fontsize: var(--cds-font-core-scale-04-fontsize);--cds-font-label-default-lineheight: var(--cds-font-core-scale-04-lineheight);--cds-font-label-default-weight: var(--cds-font-core-weight-medium);--cds-font-label-default-weight-bold: var(--cds-font-core-weight-semibold);--cds-font-label-small-fontsize: var(--cds-font-core-scale-03-fontsize);--cds-font-label-small-lineheight: var(--cds-font-core-scale-03-lineheight);--cds-font-label-small-weight: var(--cds-font-core-weight-semibold);--cds-font-label-xsmall-fontsize: var(--cds-font-core-scale-02-fontsize);--cds-font-label-xsmall-lineheight: var(--cds-font-core-scale-02-lineheight);--cds-font-label-xsmall-transform: var(--cds-font-core-transform-uppercase);--cds-font-label-xsmall-weight: var(--cds-font-core-weight-bold);--cds-font-link-default-decoration: var(--cds-font-core-decoration-none);--cds-font-link-inline-decoration: var(--cds-font-core-decoration-underline);--cds-font-link-tablerow-decoration: var(--cds-font-core-decoration-underline)}:root,:host,[data-cds-sizing=regular],[data-cds-sizing="regular*"] *,[data-cds-sizing="regular[*]"] tbody :where(td,th) *,[data-cds-sizing=compact] [data-cds-sizing=regular],[data-cds-sizing="compact*"] [data-cds-sizing=regular],[data-cds-sizing="compact*"] [data-cds-sizing=regular] *,[data-cds-sizing="compact[*]"] [data-cds-sizing=regular],[data-cds-sizing="compact[*]"] [data-cds-sizing=regular] *{--cds-button-size-icongap: var(--cds-size-core-020-px);--cds-button-size-minheight: var(--cds-size-core-100-px);--cds-button-size-minwidth: var(--cds-size-core-100-px);--cds-button-size-padding-bottom: var(--cds-size-core-020-px);--cds-button-size-padding-left: var(--cds-size-core-030-px);--cds-button-size-padding-right: var(--cds-size-core-030-px);--cds-button-size-padding-top: var(--cds-size-core-020-px);--cds-cell-size-minheight: var(--cds-size-core-100-px);--cds-cell-size-minwidth: var(--cds-size-core-100-px);--cds-cell-size-padding-bottom: var(--cds-size-core-020-px);--cds-cell-size-padding-left: 5px;--cds-cell-size-padding-right: 5px;--cds-cell-size-padding-top: var(--cds-size-core-020-px);--cds-input-helpertext-size-margin-top: var(--cds-size-core-010-px);--cds-input-label-size-icongap: var(--cds-size-core-010-px);--cds-input-label-size-margin-bottom: var(--cds-size-core-020-px);--cds-input-size-icongap: var(--cds-size-core-020-px);--cds-input-size-minheight: var(--cds-size-core-100-px);--cds-input-size-minwidth: var(--cds-size-core-000-px);--cds-input-size-padding-bottom: var(--cds-size-core-020-px);--cds-input-size-padding-left: var(--cds-size-core-030-px);--cds-input-size-padding-right: var(--cds-size-core-030-px);--cds-input-size-padding-top: var(--cds-size-core-020-px);--cds-input-token-size-padding-bottom: var(--cds-size-core-005-px);--cds-input-token-size-padding-left: 10px;--cds-input-token-size-padding-right: 10px;--cds-input-token-size-padding-top: var(--cds-size-core-005-px);--cds-menu-actionitem-size-minheight: var(--cds-size-core-100-px);--cds-menu-actionitem-size-padding-bottom: var(--cds-size-core-030-px);--cds-menu-actionitem-size-padding-top: var(--cds-size-core-030-px);--cds-menu-group-size-margin-top: var(--cds-size-core-030-px);--cds-menu-group-size-minheight: var(--cds-size-core-080-px);--cds-menu-group-size-padding-bottom: 6px;--cds-menu-group-size-padding-left: 14px;--cds-menu-group-size-padding-right: 14px;--cds-menu-group-size-padding-top: 6px;--cds-menu-item-size-margin-top: var(--cds-size-core-010-px);--cds-menu-item-size-minheight: var(--cds-size-core-080-px);--cds-menu-item-size-padding-bottom: 6px;--cds-menu-item-size-padding-left: 14px;--cds-menu-item-size-padding-right: 14px;--cds-menu-item-size-padding-top: 6px;--cds-menu-size-icongap: var(--cds-size-core-020-px);--cds-menu-size-minwidth: var(--cds-size-core-230-px);--cds-menu-size-padding-bottom: 6px;--cds-menu-size-padding-left: var(--cds-size-core-030-px);--cds-menu-size-padding-middle: 6px;--cds-menu-size-padding-right: var(--cds-size-core-030-px);--cds-menu-size-padding-top: var(--cds-size-core-020-px);--cds-menu-size-searchgap: var(--cds-size-core-020-px);--cds-menu-tag-size-padding-bottom: var(--cds-size-core-005-px);--cds-menu-tag-size-padding-left: var(--cds-size-core-010-px);--cds-menu-tag-size-padding-right: var(--cds-size-core-010-px);--cds-menu-tag-size-padding-top: var(--cds-size-core-005-px);--cds-pagination-size-textgap: var(--cds-size-core-030-px);--cds-token-size-actiongap: var(--cds-size-core-020-px);--cds-token-size-icongap: var(--cds-size-core-010-px);--cds-token-size-minheight: var(--cds-size-core-080-px);--cds-token-size-minwidth: var(--cds-size-core-080-px);--cds-token-size-padding-bottom: var(--cds-size-core-010-px);--cds-token-size-padding-left: var(--cds-size-core-030-px);--cds-token-size-padding-lefticon: var(--cds-size-core-020-px);--cds-token-size-padding-right: var(--cds-size-core-030-px);--cds-token-size-padding-rightaction: var(--cds-size-core-010-px);--cds-token-size-padding-top: var(--cds-size-core-010-px);--cds-tree-actions-size-separatormargin: var(--cds-size-core-010-px);--cds-tree-size-arrowsize: var(--cds-size-core-050-rem);--cds-tree-size-borderwidth: var(--cds-size-core-010-px);--cds-tree-size-columngap: var(--cds-size-core-010-px);--cds-tree-size-indentgap: var(--cds-size-core-060-px);--cds-tree-size-padding-right: var(--cds-size-core-020-px);--cds-tree-size-textgap: var(--cds-size-core-060-px)}[data-cds-sizing=compact],[data-cds-sizing="compact*"] *,[data-cds-sizing="compact[*]"] tbody :where(td,th) *,[data-cds-sizing=regular] [data-cds-sizing=compact],[data-cds-sizing="regular*"] [data-cds-sizing=compact],[data-cds-sizing="regular*"] [data-cds-sizing=compact] *,[data-cds-sizing="regular[*]"] [data-cds-sizing=compact],[data-cds-sizing="regular[*]"] [data-cds-sizing=compact] *{--cds-button-size-icongap: var(--cds-size-core-010-px);--cds-button-size-minheight: var(--cds-size-core-060-px);--cds-button-size-minwidth: var(--cds-size-core-060-px);--cds-button-size-padding-bottom: 1px;--cds-button-size-padding-left: var(--cds-size-core-030-px);--cds-button-size-padding-right: var(--cds-size-core-030-px);--cds-button-size-padding-top: 1px;--cds-cell-size-minheight: var(--cds-size-core-080-px);--cds-cell-size-minwidth: var(--cds-size-core-080-px);--cds-cell-size-padding-bottom: var(--cds-size-core-010-px);--cds-cell-size-padding-left: 5px;--cds-cell-size-padding-right: 5px;--cds-cell-size-padding-top: var(--cds-size-core-010-px);--cds-input-helpertext-size-margin-top: var(--cds-size-core-010-px);--cds-input-label-size-icongap: var(--cds-size-core-010-px);--cds-input-label-size-margin-bottom: var(--cds-size-core-020-px);--cds-input-size-icongap: var(--cds-size-core-020-px);--cds-input-size-minheight: var(--cds-size-core-060-px);--cds-input-size-minwidth: var(--cds-size-core-000-px);--cds-input-size-padding-bottom: var(--cds-size-core-005-px);--cds-input-size-padding-left: var(--cds-size-core-030-px);--cds-input-size-padding-right: var(--cds-size-core-030-px);--cds-input-size-padding-top: var(--cds-size-core-005-px);--cds-input-token-size-padding-bottom: var(--cds-size-core-000-px);--cds-input-token-size-padding-left: var(--cds-size-core-020-px);--cds-input-token-size-padding-right: var(--cds-size-core-020-px);--cds-input-token-size-padding-top: var(--cds-size-core-000-px);--cds-menu-actionitem-size-minheight: var(--cds-size-core-080-px);--cds-menu-actionitem-size-padding-bottom: var(--cds-size-core-010-px);--cds-menu-actionitem-size-padding-top: var(--cds-size-core-010-px);--cds-menu-group-size-margin-top: 6px;--cds-menu-group-size-minheight: var(--cds-size-core-080-px);--cds-menu-group-size-padding-bottom: 6px;--cds-menu-group-size-padding-left: 14px;--cds-menu-group-size-padding-right: 14px;--cds-menu-group-size-padding-top: 6px;--cds-menu-item-size-margin-top: var(--cds-size-core-010-px);--cds-menu-item-size-minheight: var(--cds-size-core-080-px);--cds-menu-item-size-padding-bottom: 6px;--cds-menu-item-size-padding-left: 14px;--cds-menu-item-size-padding-right: 14px;--cds-menu-item-size-padding-top: 6px;--cds-menu-size-icongap: var(--cds-size-core-020-px);--cds-menu-size-minwidth: var(--cds-size-core-230-px);--cds-menu-size-padding-bottom: var(--cds-size-core-010-px);--cds-menu-size-padding-left: var(--cds-size-core-030-px);--cds-menu-size-padding-middle: var(--cds-size-core-010-px);--cds-menu-size-padding-right: var(--cds-size-core-030-px);--cds-menu-size-padding-top: var(--cds-size-core-020-px);--cds-menu-size-searchgap: var(--cds-size-core-020-px);--cds-menu-tag-size-padding-bottom: var(--cds-size-core-005-px);--cds-menu-tag-size-padding-left: var(--cds-size-core-010-px);--cds-menu-tag-size-padding-right: var(--cds-size-core-010-px);--cds-menu-tag-size-padding-top: var(--cds-size-core-005-px);--cds-pagination-size-textgap: var(--cds-size-core-030-px);--cds-token-size-actiongap: var(--cds-size-core-030-px);--cds-token-size-icongap: var(--cds-size-core-010-px);--cds-token-size-minheight: var(--cds-size-core-060-px);--cds-token-size-minwidth: var(--cds-size-core-060-px);--cds-token-size-padding-bottom: var(--cds-size-core-005-px);--cds-token-size-padding-left: var(--cds-size-core-030-px);--cds-token-size-padding-lefticon: var(--cds-size-core-020-px);--cds-token-size-padding-right: var(--cds-size-core-030-px);--cds-token-size-padding-rightaction: var(--cds-size-core-010-px);--cds-token-size-padding-top: var(--cds-size-core-005-px)}:root,:host,[data-cds-theme=light]{color-scheme:light;--cds-color-background: var(--cds-color-core-white);--cds-color-background-hover: var(--cds-color-core-grey-02);--cds-color-background-none: var(--cds-color-core-none);--cds-color-background-secondary: var(--cds-color-core-grey-01);--cds-color-background-selected: #cce3ff8c;--cds-color-background-selectedhover: #cce3ff8c;--cds-color-border-moderate: var(--cds-color-core-grey-07);--cds-color-border-strong: var(--cds-color-core-grey-10);--cds-color-border-subtle: var(--cds-color-core-grey-04);--cds-color-chart-bar-a: var(--cds-color-core-grey-05);--cds-color-chart-bar-b: var(--cds-color-core-blue-02);--cds-color-chart-bar-c: var(--cds-color-core-orange-02);--cds-color-chart-bar-d: var(--cds-color-core-purple-02);--cds-color-chart-bar-e: var(--cds-color-core-yellow-03);--cds-color-chart-bar-f: var(--cds-color-core-teal-03);--cds-color-chart-bar-g: var(--cds-color-core-amber-02);--cds-color-chart-bar-h: var(--cds-color-core-magenta-02);--cds-color-chart-bar-i: var(--cds-color-core-green-02);--cds-color-chart-bar-j: var(--cds-color-core-purple-01);--cds-color-chart-bar-k: var(--cds-color-core-yellow-02);--cds-color-chart-bar-l: var(--cds-color-core-teal-02);--cds-color-chart-bar-m: var(--cds-color-core-red-01);--cds-color-chart-bar-n: var(--cds-color-core-blue-01);--cds-color-chart-bar-o: var(--cds-color-core-green-01);--cds-color-chart-bar-p: var(--cds-color-core-magenta-01);--cds-color-chart-bar-q: var(--cds-color-core-orange-01);--cds-color-chart-bar-r: var(--cds-color-core-grey-04);--cds-color-chart-bar-s: var(--cds-color-core-amber-01);--cds-color-chart-bar-t: var(--cds-color-core-red-02);--cds-color-chart-dot-a: var(--cds-color-core-black);--cds-color-chart-dot-b: var(--cds-color-core-blue-05);--cds-color-chart-dot-c: var(--cds-color-core-orange-05);--cds-color-chart-dot-d: var(--cds-color-core-purple-06);--cds-color-chart-dot-e: var(--cds-color-core-yellow-07);--cds-color-chart-dot-f: var(--cds-color-core-teal-07);--cds-color-chart-dot-g: var(--cds-color-core-amber-06);--cds-color-chart-dot-h: var(--cds-color-core-magenta-05);--cds-color-chart-dot-i: var(--cds-color-core-green-05);--cds-color-chart-dot-j: var(--cds-color-core-purple-05);--cds-color-chart-dot-k: var(--cds-color-core-yellow-06);--cds-color-chart-dot-l: var(--cds-color-core-teal-06);--cds-color-chart-dot-m: var(--cds-color-core-red-04);--cds-color-chart-dot-n: var(--cds-color-core-blue-04);--cds-color-chart-dot-o: var(--cds-color-core-green-04);--cds-color-chart-dot-p: var(--cds-color-core-magenta-04);--cds-color-chart-dot-q: var(--cds-color-core-orange-04);--cds-color-chart-dot-r: var(--cds-color-core-grey-08);--cds-color-chart-dot-s: var(--cds-color-core-amber-05);--cds-color-chart-dot-t: var(--cds-color-core-red-06);--cds-color-chart-line-a: var(--cds-color-core-black);--cds-color-chart-line-b: var(--cds-color-core-blue-05);--cds-color-chart-line-c: var(--cds-color-core-orange-05);--cds-color-chart-line-d: var(--cds-color-core-purple-06);--cds-color-chart-line-e: var(--cds-color-core-yellow-07);--cds-color-chart-line-f: var(--cds-color-core-teal-07);--cds-color-chart-line-g: var(--cds-color-core-amber-06);--cds-color-chart-line-h: var(--cds-color-core-magenta-05);--cds-color-chart-line-i: var(--cds-color-core-green-05);--cds-color-chart-line-j: var(--cds-color-core-purple-05);--cds-color-chart-line-k: var(--cds-color-core-yellow-06);--cds-color-chart-line-l: var(--cds-color-core-teal-06);--cds-color-chart-line-m: var(--cds-color-core-red-04);--cds-color-chart-line-n: var(--cds-color-core-blue-04);--cds-color-chart-line-o: var(--cds-color-core-green-04);--cds-color-chart-line-p: var(--cds-color-core-magenta-04);--cds-color-chart-line-q: var(--cds-color-core-orange-04);--cds-color-chart-line-r: var(--cds-color-core-grey-08);--cds-color-chart-line-s: var(--cds-color-core-amber-05);--cds-color-chart-line-t: var(--cds-color-core-red-06);--cds-color-chart-neutral-high-a: var(--cds-color-core-blue-10);--cds-color-chart-neutral-high-b: var(--cds-color-core-blue-08);--cds-color-chart-neutral-high-c: var(--cds-color-core-blue-06);--cds-color-chart-neutral-high-d: var(--cds-color-core-blue-04);--cds-color-chart-neutral-high-e: var(--cds-color-core-blue-02);--cds-color-destruction-background-hover: var(--cds-color-core-red-04);--cds-color-destruction-background-idle: var(--cds-color-core-red-05);--cds-color-destruction-background-pressed: var(--cds-color-core-red-06);--cds-color-destruction-icon: var(--cds-color-core-white);--cds-color-destruction-text: var(--cds-color-core-white);--cds-color-dropshadow-default: #00000059;--cds-color-error-background-hover: var(--cds-color-core-red-01);--cds-color-error-background-idle: #ffccd2a6;--cds-color-error-background-selected: #ffccd2a6;--cds-color-error-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-error-border: var(--cds-color-core-red-06);--cds-color-error-icon: var(--cds-color-core-red-06);--cds-color-error-text: var(--cds-color-core-red-06);--cds-color-errorpanel-background-hover: var(--cds-color-core-red-04);--cds-color-errorpanel-background-idle: var(--cds-color-core-red-05);--cds-color-errorpanel-border-moderate: var(--cds-color-core-red-07);--cds-color-errorpanel-border-subtle: var(--cds-color-core-red-06);--cds-color-errorpanel-icon: var(--cds-color-core-white);--cds-color-errorpanel-link: var(--cds-color-core-white);--cds-color-errorpanel-text: var(--cds-color-core-white);--cds-color-focus-border: var(--cds-color-core-blue-06);--cds-color-icon-moderate: var(--cds-color-core-grey-09);--cds-color-icon-strong: var(--cds-color-core-grey-15);--cds-color-indicator-amber-background: var(--cds-color-core-amber-04);--cds-color-indicator-amber-text: var(--cds-color-core-grey-15);--cds-color-indicator-blue-background: var(--cds-color-core-blue-02);--cds-color-indicator-blue-text: var(--cds-color-core-grey-15);--cds-color-indicator-green-background: var(--cds-color-core-green-03);--cds-color-indicator-green-text: var(--cds-color-core-grey-15);--cds-color-indicator-greya-background: var(--cds-color-core-grey-05);--cds-color-indicator-greya-text: var(--cds-color-core-grey-15);--cds-color-indicator-greyb-background: var(--cds-color-core-grey-07);--cds-color-indicator-greyb-text: var(--cds-color-core-grey-15);--cds-color-indicator-magenta-background: var(--cds-color-core-magenta-03);--cds-color-indicator-magenta-text: var(--cds-color-core-grey-15);--cds-color-indicator-orange-background: var(--cds-color-core-orange-04);--cds-color-indicator-orange-text: var(--cds-color-core-grey-15);--cds-color-indicator-purple-background: var(--cds-color-core-purple-04);--cds-color-indicator-purple-text: var(--cds-color-core-grey-15);--cds-color-indicator-red-background: var(--cds-color-core-red-05);--cds-color-indicator-red-text: var(--cds-color-core-white);--cds-color-indicator-teal-background: var(--cds-color-core-teal-06);--cds-color-indicator-teal-text: var(--cds-color-core-grey-15);--cds-color-indicator-yellow-background: var(--cds-color-core-yellow-03);--cds-color-indicator-yellow-text: var(--cds-color-core-grey-15);--cds-color-information-background-idle: var(--cds-color-core-grey-04);--cds-color-information-icon-strong: var(--cds-color-core-grey-15);--cds-color-information-text: var(--cds-color-core-grey-15);--cds-color-informationpanel-background-hover: var(--cds-color-core-blue-01);--cds-color-informationpanel-background-idle: var(--cds-color-core-blue-02);--cds-color-informationpanel-border-moderate: var(--cds-color-core-blue-06);--cds-color-informationpanel-border-subtle: var(--cds-color-core-blue-03);--cds-color-informationpanel-icon: var(--cds-color-core-grey-15);--cds-color-informationpanel-link: var(--cds-color-core-grey-15);--cds-color-informationpanel-text: var(--cds-color-core-grey-15);--cds-color-insensitive-background: var(--cds-color-core-grey-02);--cds-color-insensitive-border: var(--cds-color-core-grey-04);--cds-color-insensitive-icon: var(--cds-color-core-grey-07);--cds-color-insensitive-text: var(--cds-color-core-grey-07);--cds-color-inverse-background: var(--cds-color-core-grey-18);--cds-color-inverse-icon: var(--cds-color-core-white);--cds-color-inverse-text: var(--cds-color-core-white);--cds-color-link-icon-hover: var(--cds-color-core-blue-09);--cds-color-link-icon-idle: var(--cds-color-core-blue-07);--cds-color-link-icon-visited: var(--cds-color-core-purple-08);--cds-color-link-text-hover: var(--cds-color-core-blue-09);--cds-color-link-text-idle: var(--cds-color-core-blue-07);--cds-color-link-text-visited: var(--cds-color-core-purple-08);--cds-color-overlay-background: #ffffffd9;--cds-color-placeholder-text: var(--cds-color-core-grey-10);--cds-color-popover-background: var(--cds-color-core-white);--cds-color-readonly-background: var(--cds-color-core-none);--cds-color-readonly-border: var(--cds-color-core-grey-04);--cds-color-readonly-text: var(--cds-color-core-grey-15);--cds-color-scrollbar-bar: var(--cds-color-core-grey-08);--cds-color-scrollbar-track: var(--cds-color-core-none);--cds-color-selectedgraphics-background-primary: var(--cds-color-core-blue-06);--cds-color-selectedgraphics-background-secondary: var(--cds-color-core-blue-06);--cds-color-success-background-hover: var(--cds-color-core-green-01);--cds-color-success-background-idle: #c5facfa6;--cds-color-success-background-selected: #c5facfa6;--cds-color-success-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-success-border: var(--cds-color-core-green-06);--cds-color-success-icon: var(--cds-color-core-green-07);--cds-color-success-text: var(--cds-color-core-green-08);--cds-color-successpanel-background-hover: var(--cds-color-core-green-02);--cds-color-successpanel-background-idle: var(--cds-color-core-green-03);--cds-color-successpanel-border-moderate: var(--cds-color-core-green-06);--cds-color-successpanel-border-subtle: var(--cds-color-core-green-05);--cds-color-successpanel-icon: var(--cds-color-core-grey-15);--cds-color-successpanel-link: var(--cds-color-core-grey-15);--cds-color-successpanel-text: var(--cds-color-core-grey-15);--cds-color-text: var(--cds-color-core-grey-15);--cds-color-text-secondary: var(--cds-color-core-grey-10);--cds-color-warning-background-hover: var(--cds-color-core-yellow-01);--cds-color-warning-background-idle: #fff9cca6;--cds-color-warning-background-selected: #fff9cca6;--cds-color-warning-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-warning-border: var(--cds-color-core-yellow-06);--cds-color-warning-icon: var(--cds-color-core-yellow-06);--cds-color-warning-icon-secondary: var(--cds-color-core-grey-18);--cds-color-warning-text: var(--cds-color-core-yellow-09);--cds-color-warningpanel-background-hover: var(--cds-color-core-yellow-02);--cds-color-warningpanel-background-idle: var(--cds-color-core-yellow-03);--cds-color-warningpanel-border-moderate: var(--cds-color-core-yellow-07);--cds-color-warningpanel-border-subtle: var(--cds-color-core-yellow-06);--cds-color-warningpanel-icon: var(--cds-color-core-grey-15);--cds-color-warningpanel-link: var(--cds-color-core-grey-15);--cds-color-warningpanel-text: var(--cds-color-core-grey-15);--cds-button-primary-color-background-hover: var(--cds-color-core-blue-04);--cds-button-primary-color-background-idle: var(--cds-color-core-blue-06);--cds-button-primary-color-background-pressed: var(--cds-color-core-blue-07);--cds-button-primary-color-border: var(--cds-color-core-none);--cds-button-primary-color-icon: var(--cds-color-core-white);--cds-button-primary-color-text: var(--cds-color-core-white);--cds-button-secondary-color-background-hover: var(--cds-color-core-grey-04);--cds-button-secondary-color-background-idle: var(--cds-color-core-none);--cds-button-secondary-color-background-pressed: var(--cds-color-core-grey-06);--cds-button-secondary-color-border: var(--cds-color-core-grey-10);--cds-button-secondary-color-icon: var(--cds-color-core-grey-15);--cds-button-secondary-color-text: var(--cds-color-core-grey-15);--cds-button-tertiary-color-background-hover: var(--cds-color-core-grey-04);--cds-button-tertiary-color-background-idle: var(--cds-color-core-none);--cds-button-tertiary-color-background-pressed: var(--cds-color-core-grey-06);--cds-button-tertiary-color-border: var(--cds-color-core-none);--cds-button-tertiary-color-icon: var(--cds-color-core-grey-15);--cds-button-tertiary-color-text: var(--cds-color-core-grey-15);--cds-datepicker-color-default-background-focus: var(--cds-color-core-grey-02);--cds-datepicker-color-default-background-hover: var(--cds-color-core-grey-02);--cds-datepicker-color-default-background-idle: var(--cds-color-core-white);--cds-datepicker-color-default-border-pressed: var(--cds-color-core-grey-06);--cds-datepicker-color-default-dropshadow: #00000059;--cds-datepicker-color-default-text-idle: var(--cds-color-core-grey-15);--cds-datepicker-color-default-text-insensitive: var(--cds-color-core-grey-07);--cds-datepicker-color-default-text-othermonths: var(--cds-color-core-grey-10);--cds-datepicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-datepicker-color-selected-text-idle: var(--cds-color-core-white);--cds-datepicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-daterange-color-default-background-focus: var(--cds-color-core-grey-02);--cds-daterange-color-default-background-hover: var(--cds-color-core-grey-02);--cds-daterange-color-default-background-idle: var(--cds-color-core-white);--cds-daterange-color-default-border-pressed: var(--cds-color-core-grey-06);--cds-daterange-color-default-dropshadow: #00000059;--cds-daterange-color-default-text-idle: var(--cds-color-core-grey-15);--cds-daterange-color-default-text-insensitive: var(--cds-color-core-grey-07);--cds-daterange-color-inrange-background-hover: var(--cds-color-core-blue-08);--cds-daterange-color-inrange-background-idle: var(--cds-color-core-blue-06);--cds-daterange-color-inrange-border-focus: var(--cds-color-core-white);--cds-daterange-color-inrange-border-pressed: var(--cds-color-core-white);--cds-daterange-color-inrange-text-idle: var(--cds-color-core-white);--cds-daterange-color-rangestartend-background-focus: var(--cds-color-core-grey-04);--cds-daterange-color-rangestartend-border-idle: var(--cds-color-core-blue-06);--cds-daterange-color-today-text-idle: var(--cds-color-core-blue-06);--cds-dropdown-color-background: var(--cds-color-core-white);--cds-footer-color-background: var(--cds-color-core-black);--cds-footer-color-border: var(--cds-color-core-grey-10);--cds-footer-color-text: var(--cds-color-core-white);--cds-monthpicker-color-default-background-focus: var(--cds-color-core-grey-02);--cds-monthpicker-color-default-background-hover: var(--cds-color-core-grey-02);--cds-monthpicker-color-default-background-idle: var(--cds-color-core-white);--cds-monthpicker-color-default-border-pressed: var(--cds-color-core-grey-06);--cds-monthpicker-color-default-dropshadow: #00000059;--cds-monthpicker-color-default-text-idle: var(--cds-color-core-grey-15);--cds-monthpicker-color-default-text-insensitive: var(--cds-color-core-grey-07);--cds-monthpicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-monthpicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-progress-color-background: var(--cds-color-core-blue-06);--cds-progress-color-background-secondary: var(--cds-color-core-grey-04);--cds-skeletonpulse-color-background-a: var(--cds-color-core-none);--cds-skeletonpulse-color-background-b: #d7d7d740;--cds-skeletonpulse-color-background-c: #f0f0f073;--cds-slider-color-background: var(--cds-color-core-blue-06);--cds-slider-color-background-hover: #0062dd59;--cds-slider-color-background-insensitive: var(--cds-color-core-grey-07);--cds-slider-color-background-secondary: var(--cds-color-core-grey-04);--cds-tabletoolbar-color-background: var(--cds-color-core-grey-03);--cds-tabs-color-background-hover: var(--cds-color-core-grey-02);--cds-tabs-color-background-idle: var(--cds-color-core-grey-01);--cds-titlebar-color-background: var(--cds-color-core-black);--cds-titlebar-color-border: var(--cds-color-core-grey-10);--cds-titlebar-color-dropdown-background: var(--cds-color-core-grey-16);--cds-titlebar-color-dropdown-dropshadow: #000000bf;--cds-titlebar-color-dropdown-hover: var(--cds-color-core-grey-14);--cds-titlebar-color-icon: var(--cds-color-core-white);--cds-titlebar-color-text: var(--cds-color-core-white);--cds-titlebar-color-text-secondary: var(--cds-color-core-teal-05);--cds-togglebuttonbar-color-background-hover: var(--cds-color-core-grey-02);--cds-togglebuttonbar-color-background-idle: var(--cds-color-core-grey-01);--cds-togglebuttonbar-color-background-insensitive: var(--cds-color-core-grey-01);--cds-tooltip-color-background: var(--cds-color-core-white)}[data-cds-theme=dark]{color-scheme:dark;--cds-color-background: var(--cds-color-core-grey-18);--cds-color-background-hover: var(--cds-color-core-grey-14);--cds-color-background-none: var(--cds-color-core-none);--cds-color-background-secondary: var(--cds-color-core-grey-16);--cds-color-background-selected: #0073ff40;--cds-color-background-selectedhover: #0073ff40;--cds-color-border-moderate: var(--cds-color-core-grey-08);--cds-color-border-strong: var(--cds-color-core-grey-03);--cds-color-border-subtle: var(--cds-color-core-grey-12);--cds-color-chart-bar-a: var(--cds-color-core-grey-08);--cds-color-chart-bar-b: var(--cds-color-core-blue-07);--cds-color-chart-bar-c: var(--cds-color-core-orange-07);--cds-color-chart-bar-d: var(--cds-color-core-purple-07);--cds-color-chart-bar-e: var(--cds-color-core-yellow-07);--cds-color-chart-bar-f: var(--cds-color-core-teal-07);--cds-color-chart-bar-g: var(--cds-color-core-amber-07);--cds-color-chart-bar-h: var(--cds-color-core-magenta-07);--cds-color-chart-bar-i: var(--cds-color-core-green-07);--cds-color-chart-bar-j: var(--cds-color-core-purple-09);--cds-color-chart-bar-k: var(--cds-color-core-yellow-09);--cds-color-chart-bar-l: var(--cds-color-core-teal-09);--cds-color-chart-bar-m: var(--cds-color-core-red-07);--cds-color-chart-bar-n: var(--cds-color-core-blue-09);--cds-color-chart-bar-o: var(--cds-color-core-green-09);--cds-color-chart-bar-p: var(--cds-color-core-magenta-09);--cds-color-chart-bar-q: var(--cds-color-core-orange-09);--cds-color-chart-bar-r: var(--cds-color-core-grey-11);--cds-color-chart-bar-s: var(--cds-color-core-amber-09);--cds-color-chart-bar-t: var(--cds-color-core-red-09);--cds-color-chart-dot-a: var(--cds-color-core-white);--cds-color-chart-dot-b: var(--cds-color-core-blue-03);--cds-color-chart-dot-c: var(--cds-color-core-orange-04);--cds-color-chart-dot-d: var(--cds-color-core-purple-04);--cds-color-chart-dot-e: var(--cds-color-core-yellow-04);--cds-color-chart-dot-f: var(--cds-color-core-teal-04);--cds-color-chart-dot-g: var(--cds-color-core-amber-04);--cds-color-chart-dot-h: var(--cds-color-core-magenta-04);--cds-color-chart-dot-i: var(--cds-color-core-green-04);--cds-color-chart-dot-j: var(--cds-color-core-purple-06);--cds-color-chart-dot-k: var(--cds-color-core-yellow-06);--cds-color-chart-dot-l: var(--cds-color-core-teal-06);--cds-color-chart-dot-m: var(--cds-color-core-red-04);--cds-color-chart-dot-n: var(--cds-color-core-blue-05);--cds-color-chart-dot-o: var(--cds-color-core-green-06);--cds-color-chart-dot-p: var(--cds-color-core-magenta-06);--cds-color-chart-dot-q: var(--cds-color-core-orange-06);--cds-color-chart-dot-r: var(--cds-color-core-grey-06);--cds-color-chart-dot-s: var(--cds-color-core-amber-06);--cds-color-chart-dot-t: var(--cds-color-core-red-06);--cds-color-chart-line-a: var(--cds-color-core-white);--cds-color-chart-line-b: var(--cds-color-core-blue-03);--cds-color-chart-line-c: var(--cds-color-core-orange-04);--cds-color-chart-line-d: var(--cds-color-core-purple-04);--cds-color-chart-line-e: var(--cds-color-core-yellow-04);--cds-color-chart-line-f: var(--cds-color-core-teal-04);--cds-color-chart-line-g: var(--cds-color-core-amber-04);--cds-color-chart-line-h: var(--cds-color-core-magenta-04);--cds-color-chart-line-i: var(--cds-color-core-green-04);--cds-color-chart-line-j: var(--cds-color-core-purple-06);--cds-color-chart-line-k: var(--cds-color-core-yellow-06);--cds-color-chart-line-l: var(--cds-color-core-teal-06);--cds-color-chart-line-m: var(--cds-color-core-red-04);--cds-color-chart-line-n: var(--cds-color-core-blue-05);--cds-color-chart-line-o: var(--cds-color-core-green-06);--cds-color-chart-line-p: var(--cds-color-core-magenta-06);--cds-color-chart-line-q: var(--cds-color-core-orange-06);--cds-color-chart-line-r: var(--cds-color-core-grey-06);--cds-color-chart-line-s: var(--cds-color-core-amber-06);--cds-color-chart-line-t: var(--cds-color-core-red-06);--cds-color-chart-neutral-high-a: var(--cds-color-core-blue-02);--cds-color-chart-neutral-high-b: var(--cds-color-core-blue-04);--cds-color-chart-neutral-high-c: var(--cds-color-core-blue-06);--cds-color-chart-neutral-high-d: var(--cds-color-core-blue-08);--cds-color-chart-neutral-high-e: var(--cds-color-core-blue-10);--cds-color-destruction-background-hover: var(--cds-color-core-red-04);--cds-color-destruction-background-idle: var(--cds-color-core-red-05);--cds-color-destruction-background-pressed: var(--cds-color-core-red-06);--cds-color-destruction-icon: var(--cds-color-core-white);--cds-color-destruction-text: var(--cds-color-core-white);--cds-color-dropshadow-default: #000000bf;--cds-color-error-background-hover: var(--cds-color-core-red-09);--cds-color-error-background-idle: var(--cds-color-core-red-10);--cds-color-error-background-selected: var(--cds-color-core-red-10);--cds-color-error-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-error-border: var(--cds-color-core-red-05);--cds-color-error-icon: var(--cds-color-core-red-05);--cds-color-error-text: var(--cds-color-core-red-03);--cds-color-errorpanel-background-hover: var(--cds-color-core-red-04);--cds-color-errorpanel-background-idle: var(--cds-color-core-red-05);--cds-color-errorpanel-border-moderate: var(--cds-color-core-red-07);--cds-color-errorpanel-border-subtle: var(--cds-color-core-red-06);--cds-color-errorpanel-icon: var(--cds-color-core-white);--cds-color-errorpanel-link: var(--cds-color-core-white);--cds-color-errorpanel-text: var(--cds-color-core-white);--cds-color-focus-border: var(--cds-color-core-blue-06);--cds-color-icon-moderate: var(--cds-color-core-grey-07);--cds-color-icon-strong: var(--cds-color-core-white);--cds-color-indicator-amber-background: var(--cds-color-core-amber-04);--cds-color-indicator-amber-text: var(--cds-color-core-grey-15);--cds-color-indicator-blue-background: var(--cds-color-core-blue-02);--cds-color-indicator-blue-text: var(--cds-color-core-grey-15);--cds-color-indicator-green-background: var(--cds-color-core-green-03);--cds-color-indicator-green-text: var(--cds-color-core-grey-15);--cds-color-indicator-greya-background: var(--cds-color-core-grey-13);--cds-color-indicator-greya-text: var(--cds-color-core-white);--cds-color-indicator-greyb-background: var(--cds-color-core-grey-10);--cds-color-indicator-greyb-text: var(--cds-color-core-white);--cds-color-indicator-magenta-background: var(--cds-color-core-magenta-03);--cds-color-indicator-magenta-text: var(--cds-color-core-grey-15);--cds-color-indicator-orange-background: var(--cds-color-core-orange-04);--cds-color-indicator-orange-text: var(--cds-color-core-grey-15);--cds-color-indicator-purple-background: var(--cds-color-core-purple-04);--cds-color-indicator-purple-text: var(--cds-color-core-grey-15);--cds-color-indicator-red-background: var(--cds-color-core-red-05);--cds-color-indicator-red-text: var(--cds-color-core-white);--cds-color-indicator-teal-background: var(--cds-color-core-teal-06);--cds-color-indicator-teal-text: var(--cds-color-core-grey-15);--cds-color-indicator-yellow-background: var(--cds-color-core-yellow-03);--cds-color-indicator-yellow-text: var(--cds-color-core-grey-15);--cds-color-information-background-idle: var(--cds-color-core-grey-14);--cds-color-information-icon-strong: var(--cds-color-core-white);--cds-color-information-text: var(--cds-color-core-white);--cds-color-informationpanel-background-hover: var(--cds-color-core-blue-01);--cds-color-informationpanel-background-idle: var(--cds-color-core-blue-02);--cds-color-informationpanel-border-moderate: var(--cds-color-core-blue-06);--cds-color-informationpanel-border-subtle: var(--cds-color-core-blue-03);--cds-color-informationpanel-icon: var(--cds-color-core-grey-15);--cds-color-informationpanel-link: var(--cds-color-core-grey-15);--cds-color-informationpanel-text: var(--cds-color-core-grey-15);--cds-color-insensitive-background: var(--cds-color-core-grey-13);--cds-color-insensitive-border: var(--cds-color-core-grey-12);--cds-color-insensitive-icon: var(--cds-color-core-grey-10);--cds-color-insensitive-text: var(--cds-color-core-grey-09);--cds-color-inverse-background: var(--cds-color-core-white);--cds-color-inverse-icon: var(--cds-color-core-grey-15);--cds-color-inverse-text: var(--cds-color-core-grey-15);--cds-color-link-icon-hover: var(--cds-color-core-blue-02);--cds-color-link-icon-idle: var(--cds-color-core-blue-03);--cds-color-link-icon-visited: var(--cds-color-core-purple-04);--cds-color-link-text-hover: var(--cds-color-core-blue-02);--cds-color-link-text-idle: var(--cds-color-core-blue-03);--cds-color-link-text-visited: var(--cds-color-core-purple-04);--cds-color-overlay-background: #000000bf;--cds-color-placeholder-text: var(--cds-color-core-grey-07);--cds-color-popover-background: var(--cds-color-core-grey-16);--cds-color-readonly-background: var(--cds-color-core-none);--cds-color-readonly-border: var(--cds-color-core-grey-12);--cds-color-readonly-text: var(--cds-color-core-white);--cds-color-scrollbar-bar: var(--cds-color-core-grey-09);--cds-color-scrollbar-track: var(--cds-color-core-none);--cds-color-selectedgraphics-background-primary: var(--cds-color-core-blue-06);--cds-color-selectedgraphics-background-secondary: var(--cds-color-core-blue-06);--cds-color-success-background-hover: var(--cds-color-core-green-09);--cds-color-success-background-idle: var(--cds-color-core-green-10);--cds-color-success-background-selected: var(--cds-color-core-green-10);--cds-color-success-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-success-border: var(--cds-color-core-green-06);--cds-color-success-icon: var(--cds-color-core-green-06);--cds-color-success-text: var(--cds-color-core-green-05);--cds-color-successpanel-background-hover: var(--cds-color-core-green-02);--cds-color-successpanel-background-idle: var(--cds-color-core-green-03);--cds-color-successpanel-border-moderate: var(--cds-color-core-green-06);--cds-color-successpanel-border-subtle: var(--cds-color-core-green-05);--cds-color-successpanel-icon: var(--cds-color-core-grey-15);--cds-color-successpanel-link: var(--cds-color-core-grey-15);--cds-color-successpanel-text: var(--cds-color-core-grey-15);--cds-color-text: var(--cds-color-core-white);--cds-color-text-secondary: var(--cds-color-core-grey-07);--cds-color-warning-background-hover: var(--cds-color-core-yellow-09);--cds-color-warning-background-idle: var(--cds-color-core-yellow-10);--cds-color-warning-background-selected: var(--cds-color-core-yellow-10);--cds-color-warning-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-warning-border: var(--cds-color-core-yellow-03);--cds-color-warning-icon: var(--cds-color-core-yellow-03);--cds-color-warning-icon-secondary: var(--cds-color-core-grey-18);--cds-color-warning-text: var(--cds-color-core-yellow-03);--cds-color-warningpanel-background-hover: var(--cds-color-core-yellow-02);--cds-color-warningpanel-background-idle: var(--cds-color-core-yellow-03);--cds-color-warningpanel-border-moderate: var(--cds-color-core-yellow-07);--cds-color-warningpanel-border-subtle: var(--cds-color-core-yellow-06);--cds-color-warningpanel-icon: var(--cds-color-core-grey-15);--cds-color-warningpanel-link: var(--cds-color-core-grey-15);--cds-color-warningpanel-text: var(--cds-color-core-grey-15);--cds-button-primary-color-background-hover: var(--cds-color-core-blue-04);--cds-button-primary-color-background-idle: var(--cds-color-core-blue-06);--cds-button-primary-color-background-pressed: var(--cds-color-core-blue-07);--cds-button-primary-color-border: var(--cds-color-core-none);--cds-button-primary-color-icon: var(--cds-color-core-white);--cds-button-primary-color-text: var(--cds-color-core-white);--cds-button-secondary-color-background-hover: var(--cds-color-core-grey-13);--cds-button-secondary-color-background-idle: var(--cds-color-core-none);--cds-button-secondary-color-background-pressed: var(--cds-color-core-grey-12);--cds-button-secondary-color-border: var(--cds-color-core-grey-03);--cds-button-secondary-color-icon: var(--cds-color-core-white);--cds-button-secondary-color-text: var(--cds-color-core-white);--cds-button-tertiary-color-background-hover: var(--cds-color-core-grey-13);--cds-button-tertiary-color-background-idle: var(--cds-color-core-none);--cds-button-tertiary-color-background-pressed: var(--cds-color-core-grey-12);--cds-button-tertiary-color-border: var(--cds-color-core-none);--cds-button-tertiary-color-icon: var(--cds-color-core-white);--cds-button-tertiary-color-text: var(--cds-color-core-white);--cds-datepicker-color-default-background-focus: var(--cds-color-core-grey-13);--cds-datepicker-color-default-background-hover: var(--cds-color-core-grey-13);--cds-datepicker-color-default-background-idle: var(--cds-color-core-grey-16);--cds-datepicker-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-datepicker-color-default-dropshadow: #000000bf;--cds-datepicker-color-default-text-idle: var(--cds-color-core-white);--cds-datepicker-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-datepicker-color-default-text-othermonths: var(--cds-color-core-grey-08);--cds-datepicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-datepicker-color-selected-text-idle: var(--cds-color-core-white);--cds-datepicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-daterange-color-default-background-focus: var(--cds-color-core-grey-13);--cds-daterange-color-default-background-hover: var(--cds-color-core-grey-13);--cds-daterange-color-default-background-idle: var(--cds-color-core-grey-16);--cds-daterange-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-daterange-color-default-dropshadow: #000000bf;--cds-daterange-color-default-text-idle: var(--cds-color-core-white);--cds-daterange-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-daterange-color-inrange-background-hover: var(--cds-color-core-blue-08);--cds-daterange-color-inrange-background-idle: var(--cds-color-core-blue-06);--cds-daterange-color-inrange-border-focus: var(--cds-color-core-white);--cds-daterange-color-inrange-border-pressed: var(--cds-color-core-white);--cds-daterange-color-inrange-text-idle: var(--cds-color-core-white);--cds-daterange-color-rangestartend-background-focus: var(--cds-color-core-grey-13);--cds-daterange-color-rangestartend-border-idle: var(--cds-color-core-blue-06);--cds-daterange-color-today-text-idle: var(--cds-color-core-blue-06);--cds-dropdown-color-background: var(--cds-color-core-grey-16);--cds-footer-color-background: var(--cds-color-core-black);--cds-footer-color-border: var(--cds-color-core-grey-10);--cds-footer-color-text: var(--cds-color-core-white);--cds-monthpicker-color-default-background-focus: var(--cds-color-core-grey-13);--cds-monthpicker-color-default-background-hover: var(--cds-color-core-grey-13);--cds-monthpicker-color-default-background-idle: var(--cds-color-core-grey-16);--cds-monthpicker-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-monthpicker-color-default-dropshadow: #000000bf;--cds-monthpicker-color-default-text-idle: var(--cds-color-core-white);--cds-monthpicker-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-monthpicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-monthpicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-progress-color-background: var(--cds-color-core-blue-06);--cds-progress-color-background-secondary: var(--cds-color-core-grey-12);--cds-skeletonpulse-color-background-a: var(--cds-color-core-none);--cds-skeletonpulse-color-background-b: #41414140;--cds-skeletonpulse-color-background-c: #23232373;--cds-slider-color-background: var(--cds-color-core-blue-06);--cds-slider-color-background-hover: #0062dd8c;--cds-slider-color-background-insensitive: var(--cds-color-core-grey-10);--cds-slider-color-background-secondary: var(--cds-color-core-grey-12);--cds-tabletoolbar-color-background: var(--cds-color-core-grey-14);--cds-tabs-color-background-hover: var(--cds-color-core-grey-14);--cds-tabs-color-background-idle: var(--cds-color-core-grey-16);--cds-titlebar-color-background: var(--cds-color-core-black);--cds-titlebar-color-border: var(--cds-color-core-grey-10);--cds-titlebar-color-dropdown-background: var(--cds-color-core-grey-16);--cds-titlebar-color-dropdown-dropshadow: #000000bf;--cds-titlebar-color-dropdown-hover: var(--cds-color-core-grey-14);--cds-titlebar-color-icon: var(--cds-color-core-white);--cds-titlebar-color-text: var(--cds-color-core-white);--cds-titlebar-color-text-secondary: var(--cds-color-core-teal-05);--cds-togglebuttonbar-color-background-hover: var(--cds-color-core-grey-14);--cds-togglebuttonbar-color-background-idle: var(--cds-color-core-grey-16);--cds-togglebuttonbar-color-background-insensitive: var(--cds-color-core-grey-16);--cds-tooltip-color-background: var(--cds-color-core-grey-16)}@media (prefers-color-scheme: dark){:root,:host{color-scheme:dark;--cds-color-background: var(--cds-color-core-grey-18);--cds-color-background-hover: var(--cds-color-core-grey-14);--cds-color-background-none: var(--cds-color-core-none);--cds-color-background-secondary: var(--cds-color-core-grey-16);--cds-color-background-selected: #0073ff40;--cds-color-background-selectedhover: #0073ff40;--cds-color-border-moderate: var(--cds-color-core-grey-08);--cds-color-border-strong: var(--cds-color-core-grey-03);--cds-color-border-subtle: var(--cds-color-core-grey-12);--cds-color-chart-bar-a: var(--cds-color-core-grey-08);--cds-color-chart-bar-b: var(--cds-color-core-blue-07);--cds-color-chart-bar-c: var(--cds-color-core-orange-07);--cds-color-chart-bar-d: var(--cds-color-core-purple-07);--cds-color-chart-bar-e: var(--cds-color-core-yellow-07);--cds-color-chart-bar-f: var(--cds-color-core-teal-07);--cds-color-chart-bar-g: var(--cds-color-core-amber-07);--cds-color-chart-bar-h: var(--cds-color-core-magenta-07);--cds-color-chart-bar-i: var(--cds-color-core-green-07);--cds-color-chart-bar-j: var(--cds-color-core-purple-09);--cds-color-chart-bar-k: var(--cds-color-core-yellow-09);--cds-color-chart-bar-l: var(--cds-color-core-teal-09);--cds-color-chart-bar-m: var(--cds-color-core-red-07);--cds-color-chart-bar-n: var(--cds-color-core-blue-09);--cds-color-chart-bar-o: var(--cds-color-core-green-09);--cds-color-chart-bar-p: var(--cds-color-core-magenta-09);--cds-color-chart-bar-q: var(--cds-color-core-orange-09);--cds-color-chart-bar-r: var(--cds-color-core-grey-11);--cds-color-chart-bar-s: var(--cds-color-core-amber-09);--cds-color-chart-bar-t: var(--cds-color-core-red-09);--cds-color-chart-dot-a: var(--cds-color-core-white);--cds-color-chart-dot-b: var(--cds-color-core-blue-03);--cds-color-chart-dot-c: var(--cds-color-core-orange-04);--cds-color-chart-dot-d: var(--cds-color-core-purple-04);--cds-color-chart-dot-e: var(--cds-color-core-yellow-04);--cds-color-chart-dot-f: var(--cds-color-core-teal-04);--cds-color-chart-dot-g: var(--cds-color-core-amber-04);--cds-color-chart-dot-h: var(--cds-color-core-magenta-04);--cds-color-chart-dot-i: var(--cds-color-core-green-04);--cds-color-chart-dot-j: var(--cds-color-core-purple-06);--cds-color-chart-dot-k: var(--cds-color-core-yellow-06);--cds-color-chart-dot-l: var(--cds-color-core-teal-06);--cds-color-chart-dot-m: var(--cds-color-core-red-04);--cds-color-chart-dot-n: var(--cds-color-core-blue-05);--cds-color-chart-dot-o: var(--cds-color-core-green-06);--cds-color-chart-dot-p: var(--cds-color-core-magenta-06);--cds-color-chart-dot-q: var(--cds-color-core-orange-06);--cds-color-chart-dot-r: var(--cds-color-core-grey-06);--cds-color-chart-dot-s: var(--cds-color-core-amber-06);--cds-color-chart-dot-t: var(--cds-color-core-red-06);--cds-color-chart-line-a: var(--cds-color-core-white);--cds-color-chart-line-b: var(--cds-color-core-blue-03);--cds-color-chart-line-c: var(--cds-color-core-orange-04);--cds-color-chart-line-d: var(--cds-color-core-purple-04);--cds-color-chart-line-e: var(--cds-color-core-yellow-04);--cds-color-chart-line-f: var(--cds-color-core-teal-04);--cds-color-chart-line-g: var(--cds-color-core-amber-04);--cds-color-chart-line-h: var(--cds-color-core-magenta-04);--cds-color-chart-line-i: var(--cds-color-core-green-04);--cds-color-chart-line-j: var(--cds-color-core-purple-06);--cds-color-chart-line-k: var(--cds-color-core-yellow-06);--cds-color-chart-line-l: var(--cds-color-core-teal-06);--cds-color-chart-line-m: var(--cds-color-core-red-04);--cds-color-chart-line-n: var(--cds-color-core-blue-05);--cds-color-chart-line-o: var(--cds-color-core-green-06);--cds-color-chart-line-p: var(--cds-color-core-magenta-06);--cds-color-chart-line-q: var(--cds-color-core-orange-06);--cds-color-chart-line-r: var(--cds-color-core-grey-06);--cds-color-chart-line-s: var(--cds-color-core-amber-06);--cds-color-chart-line-t: var(--cds-color-core-red-06);--cds-color-chart-neutral-high-a: var(--cds-color-core-blue-02);--cds-color-chart-neutral-high-b: var(--cds-color-core-blue-04);--cds-color-chart-neutral-high-c: var(--cds-color-core-blue-06);--cds-color-chart-neutral-high-d: var(--cds-color-core-blue-08);--cds-color-chart-neutral-high-e: var(--cds-color-core-blue-10);--cds-color-destruction-background-hover: var(--cds-color-core-red-04);--cds-color-destruction-background-idle: var(--cds-color-core-red-05);--cds-color-destruction-background-pressed: var(--cds-color-core-red-06);--cds-color-destruction-icon: var(--cds-color-core-white);--cds-color-destruction-text: var(--cds-color-core-white);--cds-color-dropshadow-default: #000000bf;--cds-color-error-background-hover: var(--cds-color-core-red-09);--cds-color-error-background-idle: var(--cds-color-core-red-10);--cds-color-error-background-selected: var(--cds-color-core-red-10);--cds-color-error-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-error-border: var(--cds-color-core-red-05);--cds-color-error-icon: var(--cds-color-core-red-05);--cds-color-error-text: var(--cds-color-core-red-03);--cds-color-errorpanel-background-hover: var(--cds-color-core-red-04);--cds-color-errorpanel-background-idle: var(--cds-color-core-red-05);--cds-color-errorpanel-border-moderate: var(--cds-color-core-red-07);--cds-color-errorpanel-border-subtle: var(--cds-color-core-red-06);--cds-color-errorpanel-icon: var(--cds-color-core-white);--cds-color-errorpanel-link: var(--cds-color-core-white);--cds-color-errorpanel-text: var(--cds-color-core-white);--cds-color-focus-border: var(--cds-color-core-blue-06);--cds-color-icon-moderate: var(--cds-color-core-grey-07);--cds-color-icon-strong: var(--cds-color-core-white);--cds-color-indicator-amber-background: var(--cds-color-core-amber-04);--cds-color-indicator-amber-text: var(--cds-color-core-grey-15);--cds-color-indicator-blue-background: var(--cds-color-core-blue-02);--cds-color-indicator-blue-text: var(--cds-color-core-grey-15);--cds-color-indicator-green-background: var(--cds-color-core-green-03);--cds-color-indicator-green-text: var(--cds-color-core-grey-15);--cds-color-indicator-greya-background: var(--cds-color-core-grey-13);--cds-color-indicator-greya-text: var(--cds-color-core-white);--cds-color-indicator-greyb-background: var(--cds-color-core-grey-10);--cds-color-indicator-greyb-text: var(--cds-color-core-white);--cds-color-indicator-magenta-background: var(--cds-color-core-magenta-03);--cds-color-indicator-magenta-text: var(--cds-color-core-grey-15);--cds-color-indicator-orange-background: var(--cds-color-core-orange-04);--cds-color-indicator-orange-text: var(--cds-color-core-grey-15);--cds-color-indicator-purple-background: var(--cds-color-core-purple-04);--cds-color-indicator-purple-text: var(--cds-color-core-grey-15);--cds-color-indicator-red-background: var(--cds-color-core-red-05);--cds-color-indicator-red-text: var(--cds-color-core-white);--cds-color-indicator-teal-background: var(--cds-color-core-teal-06);--cds-color-indicator-teal-text: var(--cds-color-core-grey-15);--cds-color-indicator-yellow-background: var(--cds-color-core-yellow-03);--cds-color-indicator-yellow-text: var(--cds-color-core-grey-15);--cds-color-information-background-idle: var(--cds-color-core-grey-14);--cds-color-information-icon-strong: var(--cds-color-core-white);--cds-color-information-text: var(--cds-color-core-white);--cds-color-informationpanel-background-hover: var(--cds-color-core-blue-01);--cds-color-informationpanel-background-idle: var(--cds-color-core-blue-02);--cds-color-informationpanel-border-moderate: var(--cds-color-core-blue-06);--cds-color-informationpanel-border-subtle: var(--cds-color-core-blue-03);--cds-color-informationpanel-icon: var(--cds-color-core-grey-15);--cds-color-informationpanel-link: var(--cds-color-core-grey-15);--cds-color-informationpanel-text: var(--cds-color-core-grey-15);--cds-color-insensitive-background: var(--cds-color-core-grey-13);--cds-color-insensitive-border: var(--cds-color-core-grey-12);--cds-color-insensitive-icon: var(--cds-color-core-grey-10);--cds-color-insensitive-text: var(--cds-color-core-grey-09);--cds-color-inverse-background: var(--cds-color-core-white);--cds-color-inverse-icon: var(--cds-color-core-grey-15);--cds-color-inverse-text: var(--cds-color-core-grey-15);--cds-color-link-icon-hover: var(--cds-color-core-blue-02);--cds-color-link-icon-idle: var(--cds-color-core-blue-03);--cds-color-link-icon-visited: var(--cds-color-core-purple-04);--cds-color-link-text-hover: var(--cds-color-core-blue-02);--cds-color-link-text-idle: var(--cds-color-core-blue-03);--cds-color-link-text-visited: var(--cds-color-core-purple-04);--cds-color-overlay-background: #000000bf;--cds-color-placeholder-text: var(--cds-color-core-grey-07);--cds-color-popover-background: var(--cds-color-core-grey-16);--cds-color-readonly-background: var(--cds-color-core-none);--cds-color-readonly-border: var(--cds-color-core-grey-12);--cds-color-readonly-text: var(--cds-color-core-white);--cds-color-scrollbar-bar: var(--cds-color-core-grey-09);--cds-color-scrollbar-track: var(--cds-color-core-none);--cds-color-selectedgraphics-background-primary: var(--cds-color-core-blue-06);--cds-color-selectedgraphics-background-secondary: var(--cds-color-core-blue-06);--cds-color-success-background-hover: var(--cds-color-core-green-09);--cds-color-success-background-idle: var(--cds-color-core-green-10);--cds-color-success-background-selected: var(--cds-color-core-green-10);--cds-color-success-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-success-border: var(--cds-color-core-green-06);--cds-color-success-icon: var(--cds-color-core-green-06);--cds-color-success-text: var(--cds-color-core-green-05);--cds-color-successpanel-background-hover: var(--cds-color-core-green-02);--cds-color-successpanel-background-idle: var(--cds-color-core-green-03);--cds-color-successpanel-border-moderate: var(--cds-color-core-green-06);--cds-color-successpanel-border-subtle: var(--cds-color-core-green-05);--cds-color-successpanel-icon: var(--cds-color-core-grey-15);--cds-color-successpanel-link: var(--cds-color-core-grey-15);--cds-color-successpanel-text: var(--cds-color-core-grey-15);--cds-color-text: var(--cds-color-core-white);--cds-color-text-secondary: var(--cds-color-core-grey-07);--cds-color-warning-background-hover: var(--cds-color-core-yellow-09);--cds-color-warning-background-idle: var(--cds-color-core-yellow-10);--cds-color-warning-background-selected: var(--cds-color-core-yellow-10);--cds-color-warning-backgroundbar-selected: var(--cds-color-core-blue-06);--cds-color-warning-border: var(--cds-color-core-yellow-03);--cds-color-warning-icon: var(--cds-color-core-yellow-03);--cds-color-warning-icon-secondary: var(--cds-color-core-grey-18);--cds-color-warning-text: var(--cds-color-core-yellow-03);--cds-color-warningpanel-background-hover: var(--cds-color-core-yellow-02);--cds-color-warningpanel-background-idle: var(--cds-color-core-yellow-03);--cds-color-warningpanel-border-moderate: var(--cds-color-core-yellow-07);--cds-color-warningpanel-border-subtle: var(--cds-color-core-yellow-06);--cds-color-warningpanel-icon: var(--cds-color-core-grey-15);--cds-color-warningpanel-link: var(--cds-color-core-grey-15);--cds-color-warningpanel-text: var(--cds-color-core-grey-15);--cds-button-primary-color-background-hover: var(--cds-color-core-blue-04);--cds-button-primary-color-background-idle: var(--cds-color-core-blue-06);--cds-button-primary-color-background-pressed: var(--cds-color-core-blue-07);--cds-button-primary-color-border: var(--cds-color-core-none);--cds-button-primary-color-icon: var(--cds-color-core-white);--cds-button-primary-color-text: var(--cds-color-core-white);--cds-button-secondary-color-background-hover: var(--cds-color-core-grey-13);--cds-button-secondary-color-background-idle: var(--cds-color-core-none);--cds-button-secondary-color-background-pressed: var(--cds-color-core-grey-12);--cds-button-secondary-color-border: var(--cds-color-core-grey-03);--cds-button-secondary-color-icon: var(--cds-color-core-white);--cds-button-secondary-color-text: var(--cds-color-core-white);--cds-button-tertiary-color-background-hover: var(--cds-color-core-grey-13);--cds-button-tertiary-color-background-idle: var(--cds-color-core-none);--cds-button-tertiary-color-background-pressed: var(--cds-color-core-grey-12);--cds-button-tertiary-color-border: var(--cds-color-core-none);--cds-button-tertiary-color-icon: var(--cds-color-core-white);--cds-button-tertiary-color-text: var(--cds-color-core-white);--cds-datepicker-color-default-background-focus: var(--cds-color-core-grey-13);--cds-datepicker-color-default-background-hover: var(--cds-color-core-grey-13);--cds-datepicker-color-default-background-idle: var(--cds-color-core-grey-16);--cds-datepicker-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-datepicker-color-default-dropshadow: #000000bf;--cds-datepicker-color-default-text-idle: var(--cds-color-core-white);--cds-datepicker-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-datepicker-color-default-text-othermonths: var(--cds-color-core-grey-08);--cds-datepicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-datepicker-color-selected-text-idle: var(--cds-color-core-white);--cds-datepicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-daterange-color-default-background-focus: var(--cds-color-core-grey-13);--cds-daterange-color-default-background-hover: var(--cds-color-core-grey-13);--cds-daterange-color-default-background-idle: var(--cds-color-core-grey-16);--cds-daterange-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-daterange-color-default-dropshadow: #000000bf;--cds-daterange-color-default-text-idle: var(--cds-color-core-white);--cds-daterange-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-daterange-color-inrange-background-hover: var(--cds-color-core-blue-08);--cds-daterange-color-inrange-background-idle: var(--cds-color-core-blue-06);--cds-daterange-color-inrange-border-focus: var(--cds-color-core-white);--cds-daterange-color-inrange-border-pressed: var(--cds-color-core-white);--cds-daterange-color-inrange-text-idle: var(--cds-color-core-white);--cds-daterange-color-rangestartend-background-focus: var(--cds-color-core-grey-13);--cds-daterange-color-rangestartend-border-idle: var(--cds-color-core-blue-06);--cds-daterange-color-today-text-idle: var(--cds-color-core-blue-06);--cds-dropdown-color-background: var(--cds-color-core-grey-16);--cds-footer-color-background: var(--cds-color-core-black);--cds-footer-color-border: var(--cds-color-core-grey-10);--cds-footer-color-text: var(--cds-color-core-white);--cds-monthpicker-color-default-background-focus: var(--cds-color-core-grey-13);--cds-monthpicker-color-default-background-hover: var(--cds-color-core-grey-13);--cds-monthpicker-color-default-background-idle: var(--cds-color-core-grey-16);--cds-monthpicker-color-default-border-pressed: var(--cds-color-core-grey-10);--cds-monthpicker-color-default-dropshadow: #000000bf;--cds-monthpicker-color-default-text-idle: var(--cds-color-core-white);--cds-monthpicker-color-default-text-insensitive: var(--cds-color-core-grey-11);--cds-monthpicker-color-selected-border-idle: var(--cds-color-core-blue-06);--cds-monthpicker-color-today-text-idle: var(--cds-color-core-blue-06);--cds-progress-color-background: var(--cds-color-core-blue-06);--cds-progress-color-background-secondary: var(--cds-color-core-grey-12);--cds-skeletonpulse-color-background-a: var(--cds-color-core-none);--cds-skeletonpulse-color-background-b: #41414140;--cds-skeletonpulse-color-background-c: #23232373;--cds-slider-color-background: var(--cds-color-core-blue-06);--cds-slider-color-background-hover: #0062dd8c;--cds-slider-color-background-insensitive: var(--cds-color-core-grey-10);--cds-slider-color-background-secondary: var(--cds-color-core-grey-12);--cds-tabletoolbar-color-background: var(--cds-color-core-grey-14);--cds-tabs-color-background-hover: var(--cds-color-core-grey-14);--cds-tabs-color-background-idle: var(--cds-color-core-grey-16);--cds-titlebar-color-background: var(--cds-color-core-black);--cds-titlebar-color-border: var(--cds-color-core-grey-10);--cds-titlebar-color-dropdown-background: var(--cds-color-core-grey-16);--cds-titlebar-color-dropdown-dropshadow: #000000bf;--cds-titlebar-color-dropdown-hover: var(--cds-color-core-grey-14);--cds-titlebar-color-icon: var(--cds-color-core-white);--cds-titlebar-color-text: var(--cds-color-core-white);--cds-titlebar-color-text-secondary: var(--cds-color-core-teal-05);--cds-togglebuttonbar-color-background-hover: var(--cds-color-core-grey-14);--cds-togglebuttonbar-color-background-idle: var(--cds-color-core-grey-16);--cds-togglebuttonbar-color-background-insensitive: var(--cds-color-core-grey-16);--cds-tooltip-color-background: var(--cds-color-core-grey-16)}}}@layer{/*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:before,:after{box-sizing:border-box}html{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";line-height:1.15;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4}body{margin:0}hr{height:0;color:inherit}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}}@layer{hr{border-top-width:1px}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;text-wrap:balance}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0;border:0}legend{padding:0}ol,ul,menu{list-style-type:"";margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}}@layer{body{color:var(--cds-color-text);background-color:var(--cds-color-background);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--cds-font-base-family);scrollbar-width:thin;scrollbar-color:var(--cds-color-scrollbar-bar) var(--cds-color-scrollbar-track)}::-webkit-scrollbar{width:8px}::-webkit-scrollbar:horizontal{height:8px}::-webkit-scrollbar-thumb{border-radius:4px;background-color:var(--cds-color-scrollbar-bar)}::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background-color:var(--cds-color-scrollbar-track)}.cds-monospace,code{font-family:var(--cds-font-code-family)}strong,b{font-weight:var(--cds-font-core-weight-bold)}a,.cds-link,button.cds-link{font-size:inherit;line-height:inherit;font-weight:inherit;text-decoration:var(--cds-font-link-default-decoration);color:var(--cds-color-link-text-idle);background:none;border:none;cursor:pointer;padding:0;display:inline;min-width:auto;min-height:auto;box-shadow:none}a:visited,.cds-link:visited,button.cds-link:visited{color:var(--cds-color-link-text-visited);background:none;border:none}a:hover,a:active,.cds-link:hover,.cds-link:active{color:var(--cds-color-link-text-hover);background:none;border:none}:focus{outline:none}:focus-visible{outline:var(--cds-color-focus-border) solid 2px;outline-offset:2px}button,.cds-button,a.cds-button,::file-selector-button{--_cds-button-border: 1px;--_cds-button-color-text: var(--cds-button-secondary-color-text);--_cds-button-color-border: var(--cds-button-secondary-color-border);--_cds-button-color-background: var(--cds-button-secondary-color-background-idle);--_cds-button-hover-background: var(--cds-button-secondary-color-background-hover);--_cds-button-hover-border: var(--cds-button-secondary-color-border);--_cds-button-active-background: var(--cds-button-secondary-color-background-pressed);--_cds-button-active-border: var(--cds-button-secondary-color-border);-webkit-appearance:none;appearance:none;border-radius:0;text-decoration:none;display:inline-flex;vertical-align:middle;align-items:center;gap:var(--cds-button-size-icongap);touch-action:manipulation;user-select:none;inline-size:fit-content;font-family:inherit;flex-shrink:0;border:solid var(--_cds-button-border) var(--_cds-button-color-border);padding:var(--cds-button-size-padding-top) var(--cds-button-size-padding-right) var(--cds-button-size-padding-bottom) var(--cds-button-size-padding-left);min-height:var(--cds-button-size-minheight);min-width:var(--cds-button-size-minwidth);font-size:var(--cds-font-button-label-fontsize);line-height:var(--cds-font-button-label-lineheight);font-weight:var(--cds-font-button-label-weight);color:var(--_cds-button-color-text);border-color:var(--_cds-button-color-border);background:var(--_cds-button-color-background)}.cds-button .bb-icon,.cds-button__icon{width:1em;height:1em}button:hover,.cds-button:hover,a.cds-button:hover,button:focus-visible,.cds-button:focus-visible,a.cds-button:focus-visible{background:var(--_cds-button-hover-background)}button:active,.cds-button:active,a.cds-button:active{background:var(--_cds-button-active-background)}.cds-button--primary,a.cds-button--primary{--_cds-button-color-text: var(--cds-button-primary-color-text);--_cds-button-color-border: transparent;--_cds-button-color-background: var(--cds-button-primary-color-background-idle);--_cds-button-hover-background: var(--cds-button-primary-color-background-hover);--_cds-button-active-background: var(--cds-button-primary-color-background-pressed)}.cds-button--tertiary,a.cds-button--tertiary{--_cds-button-color-text: var(--cds-button-tertiary-color-text);--_cds-button-color-border: var(--cds-button-tertiary-color-border);--_cds-button-color-background: var(--cds-button-tertiary-color-background-idle);--_cds-button-hover-background: var(--cds-button-tertiary-color-background-hover);--_cds-button-active-background: var(--cds-button-tertiary-color-background-pressed)}.cds-button--destruction,a.cds-button--destruction{--_cds-button-color-text: var(--cds-color-destruction-text);--_cds-button-color-border: transparent;--_cds-button-color-background: var(--cds-color-destruction-background-idle);--_cds-button-hover-background: var(--cds-color-destruction-background-hover);--_cds-button-active-background: var(--cds-color-destruction-background-pressed)}.cds-button--disabled,a.cds-button--disabled,button:disabled{--_cds-button-color-text: var(--cds-color-insensitive-text);--_cds-button-color-border: transparent;--_cds-button-color-background: var(--cds-color-insensitive-background);--_cds-button-hover-background: var(--cds-color-insensitive-background);--_cds-button-active-background: var(--cds-color-insensitive-background)}table{width:100%;border-collapse:collapse;tr{border-bottom:1px solid var(--cds-color-border-subtle)}tbody tr:last-child,>tr:last-child{border-bottom:none}th,td,.cds-td{padding:max((var(--cds-cell-size-minheight) - 1lh) / 2,var(--cds-cell-size-padding-top)) var(--cds-cell-size-padding-right) max((var(--cds-cell-size-minheight) - 1lh) / 2,var(--cds-cell-size-padding-bottom)) var(--cds-cell-size-padding-left);min-width:var(--cds-cell-size-minwidth)}td.cds-flush{padding:0}th{text-align:left;font-weight:700}td{vertical-align:top}}input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;box-sizing:border-box}input[type=text],input[type=email],input[type=number],input[type=date],input[type=search],input[type=tel],select,textarea,.cds-input{--_cds-input-border-initial: 1px;--_cds-input-border-current: var(--_cds-input-border-initial);--_cds-input-border-offset: calc(var(--_cds-input-border-current) - var(--_cds-input-border-initial));--_cds-input-border-color: var(--cds-color-border-moderate);display:block;border-radius:0;width:100%;min-width:0;background-color:var(--cds-color-background);border:none;color:var(--cds-color-text);line-height:var( --cds-font-button-label-lineheight );font-size:var(--cds-font-button-label-fontsize);box-shadow:0 0 0 var(--_cds-input-border-current) inset var(--_cds-input-border-color);padding:var(--cds-button-size-padding-top) var(--cds-button-size-padding-right) var(--cds-button-size-padding-bottom) var(--cds-button-size-padding-left);min-height:var(--cds-button-size-minheight);&:focus,&:focus-visible{--_cds-input-border-current: 2px;--_cds-input-border-color: var(--cds-color-focus-border);outline:none}}input[type=text],input[type=email],input[type=number],input[type=date],input[type=search],input[type=tel],textarea,.cds-input--field,.cds-input--textarea{appearance:none;&:read-only{--_cds-input-border-color: var(--cds-color-readonly-border);background:var(--cds-color-readonly-background);color:var(--cds-color-readonly-text)}&:disabled{--_cds-input-border-color: var(--cds-color-readonly-border);background:var(--cds-color-insensitive-background);color:var(--cds-color-insensitive-text)}&:user-invalid{--_cds-input-border-current: 2px;--_cds-input-border-color: var(--cds-color-error-border)}}select,.cds-input--select{min-height:var(--cds-input-size-minheight)}textarea,.cds-input--textarea{resize:vertical}input[type=radio],input[type=checkbox]{accent-color:var(--cds-color-selectedgraphics-background-primary);width:1em;height:1em;line-height:0;cursor:pointer;flex-shrink:0}::placeholder{font-style:italic;color:var(--cds-color-placeholder-text)}label{font-size:var(--cds-font-label-default-fontsize);line-height:var(--cds-font-label-default-lineheight);font-weight:var(--cds-font-label-default-weight)}.bbui-icon{flex-shrink:0}}@layer{.cds-t-body{font-size:var(--cds-font-body-default-fontsize);line-height:var(--cds-font-body-default-lineheight);font-weight:var(--cds-font-body-default-weight)}.cds-t-body-large,.cds-prose{font-size:var(--cds-font-body-large-fontsize);line-height:var(--cds-font-body-large-lineheight);font-weight:var(--cds-font-body-large-weight)}.cds-t-body--b{font-weight:var(--cds-font-body-default-weight-bold)}.cds-t-h1,.cds-prose h1{font-size:var(--cds-font-heading-01-fontsize);line-height:var(--cds-font-heading-01-lineheight);font-weight:var(--cds-font-heading-01-weight)}.cds-t-h2,.cds-prose h2{font-size:var(--cds-font-heading-02-fontsize);line-height:var(--cds-font-heading-02-lineheight);font-weight:var(--cds-font-heading-02-weight)}.cds-t-h3,.cds-prose h3{font-size:var(--cds-font-heading-03-fontsize);line-height:var(--cds-font-heading-03-lineheight);font-weight:var(--cds-font-heading-03-weight)}.cds-t-h4,.cds-prose h4{font-size:var(--cds-font-heading-04-fontsize);line-height:var(--cds-font-heading-04-lineheight);font-weight:var(--cds-font-heading-04-weight)}.cds-t-h5,.cds-prose h5{font-size:var(--cds-font-heading-05-fontsize);line-height:var(--cds-font-heading-05-lineheight);font-weight:var(--cds-font-heading-05-weight)}.cds-t-h6,.cds-prose h6{font-size:var(--cds-font-heading-06-fontsize);line-height:var(--cds-font-heading-06-lineheight);font-weight:var(--cds-font-heading-06-weight)}.cds-t-group-heading1{font-size:var(--cds-font-groupheading-01-fontsize);line-height:var(--cds-font-groupheading-01-lineheight);font-weight:var(--cds-font-groupheading-01-weight);text-transform:var(--cds-font-groupheading-01-transform)}.cds-t-group-heading2{font-size:var(--cds-font-groupheading-02-fontsize);line-height:var(--cds-font-groupheading-02-lineheight);font-weight:var(--cds-font-groupheading-02-weight);text-transform:var(--cds-font-groupheading-02-transform)}.cds-t-label{font-size:var(--cds-font-label-default-fontsize);line-height:var(--cds-font-label-default-lineheight);font-weight:var(--cds-font-label-default-weight)}.cds-t-label--b{font-weight:var(--cds-font-label-default-weight-bold)}.cds-t-label--small{font-size:var(--cds-font-label-small-fontsize);line-height:var(--cds-font-label-small-lineheight);font-weight:var(--cds-font-label-small-weight)}.cds-t-datadisplay1{font-size:var(--cds-font-datadisplay-01-fontsize);line-height:var(--cds-font-datadisplay-01-lineheight);font-weight:var(--cds-font-datadisplay-01-weight)}.cds-t-datadisplay2{font-size:var(--cds-font-datadisplay-02-fontsize);line-height:var(--cds-font-datadisplay-02-lineheight);font-weight:var(--cds-font-datadisplay-02-weight)}.cds-t-d1{font-size:var(--cds-font-display-01-fontsize);line-height:var(--cds-font-display-01-lineheight);font-weight:var(--cds-font-display-01-weight);text-wrap:balance}.cds-t-d1--b{font-weight:var(--cds-font-display-01-weight-bold)}.cds-t-d2{font-size:var(--cds-font-display-02-fontsize);line-height:var(--cds-font-display-02-lineheight);font-weight:var(--cds-font-display-02-weight);text-wrap:balance}.cds-t-d2--b{font-weight:var(--cds-font-display-02-weight-bold)}.cds-t-d3{font-size:var(--cds-font-display-03-fontsize);line-height:var(--cds-font-display-03-lineheight);font-weight:var(--cds-font-display-03-weight);text-wrap:balance}.cds-t-d3--b{font-weight:var(--cds-font-display-03-weight-bold)}.cds-prose :is(p,ul,ol,h1,h2,h3,h4,h5,h6,table,figure,blockquote,.cds-prose__block):not(:last-child){margin-bottom:.625rem}.cds-prose--limit-line :is(p,li,h1,h2,h3,h4,h5,h6){max-width:var(--cds-config-prose-line-limit, 70ch)}.cds-prose :is(p,ul,ol,h1,h2,h3,h4,h5,h6,table,figure,blockquote,pre,.cds-prose__block)+:is(h1,h2,h3,h4,h5,h6){margin-top:2.5rem}.cds-ul,.cds-ol,.cds-prose ul,.cds-prose ol{padding-left:1rem}.cds-ul li,.cds-prose ul li{list-style:disc outside}.cds-ol li,.cds-prose ol li{list-style:decimal outside}.cds-ol,.cds-li,.cds-prose li{margin:0 0 .5rem}.cds-prose :is(p,ul,ol){text-wrap:pretty}.cds-prose--preformatted p{white-space:pre-wrap}.cds-pattern-hexgrid{--_lineColor: var(--cds-config-pattern-linecolor, rgba(0, 0, 0, .3));--_patternSize: var(--cds-config-pattern-size, 96px);--_lineAngle: 30deg;background-position-x:-1px;background-image:linear-gradient(var(--_lineAngle),var(--_lineColor) 1px,transparent 1px,transparent 50%,var(--_lineColor) 50%,var(--_lineColor) 50.78%,transparent 50.78%,transparent 100%),linear-gradient(calc(-1 * var(--_lineAngle)),var(--_lineColor) 1px,transparent 1px,transparent 50%,var(--_lineColor) 50%,var(--_lineColor) 50.78%,transparent 50.78%,transparent 100%),linear-gradient(90deg,var(--_lineColor) 0px,var(--_lineColor) 1px,transparent 1px);background-size:var(--_patternSize) calc(var(--_patternSize) * tan(30deg)),var(--_patternSize) calc(var(--_patternSize) * tan(30deg)),calc(var(--_patternSize) / 2) calc(var(--_patternSize) / 2)}} \ No newline at end of file diff --git a/assets/benchmark-chart-1.jpg b/assets/benchmark-chart-1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b17947ed94198a532b8cfc2814d96a6c787f09ae GIT binary patch literal 29081 zcmeFZ1zcT8vM_#u;O@b>xVu|$4K4vL?sm~&L4&(XaJS&Df#B{zFOc96EI0%LAG2>~ zcXr;+?9Q9_$?yMv=QNzI>h7xQ>guXKea=0Pi;rIb81m9`(f}wZ008Rg1Uy0jK>&oO z0}%lc2?-Gu4FwGq8xsQq6Pp+Z@989FBqAevN{lot)RfdLG?Lt`tlW}H;v(WohMJm& z?oRHRnbS~zmcU~V022Ym0%i{eiUI(Q2?c`*_1FjC{z*jGpG5uJ0S^WJ3>FRn2I>h5 z4fD$qI4D@?XYeqO%K(%oJTwLj##5u5kAG|VU&%lX0yE)6e`-mmDMPJM{S!%8#u%|o zn4fUJcRZKMVSMma@S3|^@iX4Tic#PVT|Mw(?jxGY+MP_DC-UuN-kYd59Cn5OjGVoY zs3|t$>YeI}TxocEK{NTP{=7;T9L3sxBQTysv`o^84z-jeJs5uEPyRt^Rz3H!v&k^D zm?TrAeKU9PSP9IQzl5`VG5t_+^xg2q8-(AJ3jo-u_(~WZQf*}?@b>zaUR6p87e~W| zgb&a?;Uc{ctOYq$s=mTyz|m04g~tsB3f%d=dN1;UP-Az#h~+2b?-TzwN}*(DUY?h+ ztxoKrrP@yHlDN$V9|uf3|DQOM{~{hd{xa%|&nEmNF&EyQf4)Dz?lQ5nGuO;v+cmks zPlbCaNv`Fy8VhAO2>dM`Je$85BtmS)c-{hEalOwH{vo?p*G?& z`QkEN_Sz?~czMx@(ermwnUL}L*W-iP?68&PJ^iVlZS)Pla?32TKAxx99sFYmgBVT z5n$EfsW}AD(hlE#a|A0Dbo2XEelCS$GNv8CNLuG_f$~W`>#Gp9hkY9Bg+D&lP=Q(F zS9d9SvCK64nJVQ#D5!y@r%sQPH^aA8vp{|sPmix>N;%C{;21>w^vnFu|zS^Li=i=%?J6~Y03`enQE?e+;lz0t~ z@M9TT0Z1dKlGXaTr8PM}EAzLn@VqlFK7G%H;llvt-#I6Iqf&+xck$Q~Hxc9=Ggkne zqqinnq|MMj&D$S;eBSPSS8`|xgwH(%pma%lPEIE*A$DvGV0jxODq&~%<1hI!$@l(b zfPAZd4F*E*w*ZWc{a7E|0`hyj|3hRcv(gPmIZUjhVbrmUkH6WCKdmCqgQ;*yr!uKp_q6191Ex*nJ_bU`BKP?|T;ZmbI_Eyjc#|%l{D!ev8$gQx_D<*woUT zyKZ#LZ_)n?{!cO?a=#C6-t$E3_+2K%pXGiYj?}%${}_(Uf8TjVneE9Y^9sFi{7oiM z6a8L#N<-AkN<&miL$s#-9MO1se~xJo%}vGOcM_Jp-(-p=kDHzcdI`4+;AyL@9^M1) z+-LqNo=_9(oA*iu)+H+dG_J#Rzt&o39ZShuAJKm*0zaLWO)!{^C=;;!wW*6XH#FnS z#fO%6MJ#a2!ynGDKxlVw*e+;GHy+fS-m85j_n-RyfLw^M=K zJb~QmJiao0G_BQw{VNfB0!)RK7UQQxaYSiNQzA=L=|GJ%{#PaFYb|VDV4V9ZITY^P zg|WRs#{i68SZ4kpV2;c9F9$iCs`l#3+kys7s<4>8r<9t7C;wW&f6exF4bB~uwh?a& z)a9*@<3-%Lk|OE3O!@IQiE$=>7-On|8O4q%^?lF(ek1z3rk-*OcCM=|WA;LAivW?C zOda|qWmt<)1t{ej+z=Qqe=@_=1#~%duC3`4t~Z@0&xB@%06bVP!BmiOSdr9(V2e_% zS*X^Js8!{*XKxTZyJ-JA!yu~Lp#IF^z~*SBKgHDY1xRE52|qv?5iw>&b#%eqdovYuL4J7 z2s}ISp61kXVahjtO6-?xdi!fBX!D_IAr@Aas(Z$t@}P3w=8SHNM4$t0n*@$iEqF=w z?EqxfN=!+IB?0vkMgAp=NWD-WKB8BT9)uQ#raN0*rwbdp2asBu0f-Q3coM)n0XYi8 z;`JJg*8VGB;1)C+Z-t);eNOyyarh@gl}^xev$$HR*3j)E@RreWpKRW}&eKQwEG zba6o!xT~Bx*!&`;&yDMTMPU!UT0Ub^S-ew_^{4X7EW!HTy*|7Ax(hF&?~efOe#XM) zQ}I`rPsy&p4ewkhrO)1VSzBV-P=8J6%Y~QGdEoTs1eu`}`~oI@W~YP8#aExrXI05- z{fK%}hijLRcE1D?5Q`;0|Qa}0x z%p{E^b$lb_c`$9r8dJb;CtVp%Hr%QXvC3m?^x4Z}49mY&YaJZi4{OLAoil&6eGxU& zCK5m=zwwmllSFPnmG&Ua_W515^IyzZTWjKkQHjo{TM+S5dvzXi0N|OxOGW#kr#*+F zAqz#`pAaH1QMEojA&~MXKJI-40B|D1<;E}kpEf8MQDt|YZXBRwGgEY#{~>S=-knMZ zbP*UW9Qp&`hdSveiAbAiz5oE2V)fsxsId;8$gmZ738>4^p8XI70Pv(jM_GnZ+W7zg zl?u!F$t)Rn1%CjPq=%`Ur%qg@C;%2c%G6TU%A7^H;z<&ElIKKOX4$q^E3w$N~aM3fPc{yIZ?vH@=o63Ni*MKMEtOk%%9q5%Y3g+Y5{ow0BA21;#|8N zinRd%_Qn+`yWqZ|ehz;CpwLne8_w#f(Rn8xuSXh(b!g2mc>R=xlE~S0gnQO2?+>8U znoQDuY!+pew3^l2>!%ZQ!U(wa4_81^4!Z1s}v;b&ulin;#*|Kop5p7RekWW-Yd zC^76UpFy|DzZOHCeUG$%>Luxrgyzp&07atz*!XV{6zS?E8&#zL-w^*s2AY2SmdxPb zAnD(z`}Zm?-j9G$K$H5-j{o10|3=QXf#i=h_%~?&vnr@G2kFF}5B!S>_`Pz^6FW6L z!xUcF5r6q-b$&*aMWa9My((e=pkSb(VGuB$!NR~id)iWk zf`)kpfQ7@v!Y0ST<=}L3PDsQ6vaxfEscLANn7IVR*Ve&v@fhJzsHnZh7geV;&Z82S z@Yjl)e*3g1i}18x3-to<2spg;jB{ow*kLpnyf58HlAr2Cdb`E{2&h$?@z*E<2o-LF z>S!|?XK~vpJV*7}MFXJV*;jFaK_s{x%gS-3NUKgl>s9Xxg+@cE1cJ%#F#PNo13c-s z={kdd?X_ta+IDKR(q3`kMerj7BBX3==T@c=nN@DYZ%*TKJ|FNy z*0;ZkDo- zRW6hX<|ya9%G9^1AF^jGO}Gy(P}U^K{~91voIS|rnV|v7i>t@o?IjN)p6b$8xtHnf zw&(gvQ}+#!mr7a6cfzI_i49?G&y`#N&Z8+coFUsP^#B&R zj2CamA5*red6)ktlkgHJHxE|7R!dLcx}%GMlR|>ECYrkuST}Pa)cBCMzUm>ms+(|J zD*q`<%upm};FvdZsj(QR9%qn$n>ZPt>kL^rxh*o>7&3lzt8Okb%c(LATbl^$3;g=2 z{SYCMIUY~TAX}-B%5qtDEO85`!!LB2sxdQR%3Y&O&MXD`KKM0)$}{3_g1|drJzQt? z72C}7#h#o@ue8NhlN+~;Wg|VzQe(UQeEF7Vj{q=;wz6;YZc95OU$6-1->{SFD#y*U z)tADy5kt# zK4Cl?m&a?|y9zXxub_Xer_DE@r@^wJ%BoBaNEQe-LoDxorx1L|w>+I`j^S}9d?(W};`a=i?nj=`9t3)00Q0dIRK?XF82 z#76*w@{+a##u9V9Q;_G3N~osmyWC*+c~rctz+lI~vjkmhe2upJy#A(wmmRZ*P3H>8 z;J#p>M2DKRQOx89{@e8H&H5le<&Qh6fB=Ls!f>-U+wK`5R8(PZv+P?rm>h75TJX+h z*Y>G$cDRCYfPf@2!ew}Y4*hsuB)J8H07Kn-yio*kqG4Az-{r_LYt+@OMy0i@vxJ7= zn(snMt)n>>z4n5bA+e{7Fp4R?R$jL)u5ZNAH%JMnDbLPq#sK$XeM_Dl;K-BUU9Z{2 zZeLQ%cU1%IfDI;6^la9{vPh-}%3&u|*!WP5*M2RbHrwv@7Wj;Bt}xEBzJZv42$t09 z=adqIJcu0nsC7rNYQg0lTCcjxnH%vXHy0U+Uw4E`*QDFyx2jWjBI!3lqTu8n0q+9S z-!HDX8fP75Md(Lh74aOkJLgs~DiqqRO2UE$RWn{+P~e<6)$Vjv95uDi|Am;ll);R=Ik7V z5!eSTIUfOv!l&}qMPd-JtfSuKqfk0V^XG%&3G51hAI zG)wjp%UeB0{6D$@girP2o`oH?rg|v?byQ<|5`yql)B=#iWQX}Z>A_r$Km{;^8k#i~ zw0cfLg|>0Iv%Obi6PaFQ;!K=8C!IpW0gBL)^?Y2@BcM?fQ&t=!C=U@)UK9Wo2XJ#j zP4&$UTRzf3MnW1DcoH)EB0&K6Awzhd>NUeG00chW*iVL=PVot9n9&1;gMl`qa-t{` z2I`6pv%0!XGg;KQBp7gJH{%Za&5HfUG+e1Y)U}Y3+@83kyuC_h`Y*xc7>q8`Q((f7 z3l%ZZX#%R4Qyg7uCF-7K`56THFoLN2kU&N1em){uU4JAM7|ztBLp?`|9YtSp+GnA- z*;3pOS%UjGuNejdqu)E5vlto3kpnW@k)ITa1hQ6(bCDy*;%8KwZw8es)yv2z1B+4< z1=iZ_(-&H_XP&~qpnY~Y=G3CIpv_#IYP#6;=&-DH@yG~~ynKueIaJzNx`ZNcQ8}1? zhCd4f&T_xRM0pfoDguOrv;5wKi>mjVGr@>A0@&_49UZg4L+Rh?zPxk-M=HJE(_ zl*eg>q-c8d*Xd+IuUh)kC?pJYz%q&g#N5#{iZbPEfv81XMT)DG7pGBSHObEB< zwP5cq2I95G08u-L$E}gSBqOzMjHcYTTi1awnRf^js>^Jr#G&tcYC3^Z4{NQ20lkME zO=M=*QyVY5#yy*WBc6Txz$UFmbUN9w2)vB<-xRJj^kyUQ&N@Hw%?&=syV}*A#+_8~)rRkOx zuL}&bEg7X)`#S<#?OQ_Bm5-ykgF{pHJ8-)5BGUiU_{~DYA1Qqm?t7%zaFWX zkNj;BY%8%XbtzEE-KM!rEuHs3yl5hCJhjzKXgtni%6F>HoDDYk=2~~c&Y5)aZYF@+ zd~YHpB7RF#r(%jJjwleeE<{c4D03vqYb)pB>&pa+0oM)ADJ4(U{(2XF8B5lPu1HJ2 zkAn}kH%;#MD1JNt9JH>`p{oQA9a(*Eosm@&BW2Gy0qsFAP-Zk`V{8|<6yFwHS6)Eb z#*agk5u9iB)V-(g=D!0Phjxxig7~eg=sT@`%(*4Bq}-x6rzD7uZjh^Xt_p2yb~P*W zYdRdwPH2MeUY{pxJ^T$R)3uUt{zf?&75I(|&9vSJpu6SbHrqqouz>TK%lB)a0etE= zpG|NTd#7XJHyK)sUo#8qKxh4OHvrKy^goYUX_*Ynf@x9I?kv#xOh9sY^Z$ZKI`5jVL{F;%~PoGFl<} zaivESG0n3*V3xuP=ZItx6!JtC5DF~uTi3nti58Dh_eJPcL4rKn&5M>Tk=lM*x>FkZ$%0QPCX zIs(obIh=AlgVr^nqI~g(ru3~me2&B zC4QP3lXAd1WR*}(RC`?W#v#+K7PXct1*lH~_E(02OA;5O?SOObbn@|ycE~g|ECB7| zFYL|V_FsPI{vYK3Qws6U>}_hLQ%bRv=oB_?`fT0j63puql|<$D!t2h~d*k~L!q0r2 zUDDOqrtS7V2s4v1!%c!4X|2)<%(1&iecNPFjqq4ADpw-b`s zmdZ$U_4EGTx^Izg8XdvO4WEu|V2qQqZx!Wg4QeiDrd^uESNAMd!qf666M%g!IXc4DcU@k{BNt`1OtKo$R1r&C7t*hs9Jc-3{wXAL%zdijI$17@+afF8OgnjYagcWA= zM&z_<;rVAiH4n70McYGPH2QJ;%9ugd??ft>W)n>{~_Dr8A!(c>U+H7 zIh=@1^(Dpn4vP1j;a92NvFEq%yFNvRzGFYvl)jhDz6jA}(}uD|JSjK*7Y_OALHLJA zmv?jvS$5=!>gD3UiU3`)e#+IKDed8R^Y1?SxUu8E-M%ODfY?SkWYP;^4li~3GduIQ zTd$+(+D15}zi`<6JbQ3G1bKVA*Lg{%AN4OBC*pZT`r}YwRwG{`8nZen<4(mL;+55UWH-_2M5J&L7F6?)HcvfAW#JxQVo30RyJ5 zcQ*Z6dR%?hDSJBnuI9UDp(87XzO!AdMGR!ha}|Gk>-72*9Ql zg&m+~gRp-RoS+ZV{EPu%xuNN|4f(E@xgRoYK1GfN)c56bh+=#6p*jE;92*>!)(GTdRmvPt+b^}TNDh~6^>1L6=R z!>8`(0)}^$JMl;bg)SFfCb#&!SJrv;F1_95>neIV)pb(Gz~V`S1)5!hyT;pecu&{A zRQOBXq!oSGVB0k<18P?GhwhuxEpp%$$Q39i$_y06T;nH9hQ=9aRLgHT6N(|H^V@kB zODZU59ijrUJ^>;k!aM@LscS{5V`(cLs|0*zj z9_%VvIEinDIiL3VD$@S^_gB#*Gnami+69RCh`@%#1S}}EdGB!9yl5w4e|(3J&G0&> z%-5L2@#C7}gSE}-POLnwDWNM`ifQ!YMLFb-zSDn<*Yurvr{vJNVN`JEM_^H@g=$Vh zp=o=K1IDNgqhJbGFEpVt>JpR~w^5GB)zMmSc%GEgJVr1R4<}ewABYG>6o-?O1)!6Y zHL#!TU*2tjKi*#$zKN|G_!qYtu5Dd6UiSUYhI+&0ai8+?~UJ$xx+xFk)b0|3YRoAfwng10Zl4{wm}Th5X~xiWfGW(hAs{`$1VW^9d?VbKBy< z#AFeh(Fo7Kn&_O#8lzXBy?IXqZS4$7_HG|-Z(BkFvu5F`_$>a>{#6bVf1VSb`xw*% zw$tl_?N}eT=fh2?!?oy?OZDtn-ewEp$CTAYQZiPozKZ!{y=duKH8VM4#yCxMyA-68 z^Cg@j5%s$}08mV3^^ph{%g0IU`J*o`&U+8xHLZqyPd8{lnKkV9h@7!sI5nWS z$Y{KO750JV$PageRj&OX3at7T7LMoV^;-mr7wD7dJjJw$p8uhxOdEvdDpL3wr|(VA z(VWHJL3>d#_mcHBL}dVretrKk%3K$W0^1U8 z{*~f2WW9hx+N5jN)$bO3U9D(*$Yp2aozZdI_VEQ*%?FZTdU`pvFhm#*We+HsQ(lx% zf5Cbed{=S%U9Fv&-MIriU8WEQvW1R|w;4>*c5NGjNl;qe%2pkszIK*LDT@pW!>-hg z4eAh}(We)E-ux`;D1|R299nbxQnl5dyBfUzdJ@Hq=NT5X>0CHWH;-phXP~S4W2Bt> z>#CRk${xBcfnk!Fnv6H*50_K)kK=+j+4hYh1=8&|5a%jGR*u}lxpIMboY8gs zTz=KXd!||MGuQt=5Q7e~&Qt!IgfMzMhehJ2cJu`C%n9%V|DcHqyZhwD6k<~`fluJ> zF~#T;^~--yPPH>N%K|lHY<^;1+D!<=+l0R-p20|5G;(?5XGJm`-zP)1UE@#(^21)_HjlUSqbCrrx*8)myx~3fmE#b{VsVgXK7o2bo&M4L7Edfo{tP$JQ!W zGpNS0?~O(7=xxNcrd*K` zPY8Q%Jn@j7HxEADod`95_LQL5jC^Rl3H@U6;RaIcVL$s|OXjioht>pSjW00nQ5L$0 z+*nbU{l-mC{-8U(D*01B(s#H;*#d^pc5(<%y)o~->Uys`nNighsdMhSaB3@J-}b<4 zIlf@nUvb;^6^$yI{-O?~hSc77_$Qs#<)J!*q##r3W{b*(^H9VCQ=dq@TUR7IdZB*x z#+bxDzU@st#&@aZUltTQY5q`ZLhW9O2*q1InKT@UZ9X@8_UFh`sbKeppvAcUm28OpeH0huY7rKkxVv`=^4; zLrHkY^G;{qcBh*w&;9R*rY~k^MM#?Xu3GoM&+37^rLXv! zldX}ozX~!rzxs0~{5_lIo5}6)_oKnhrQMQ)+Nei>^2-~y#m(g>NYM#=E@O%3tM;Np z(5)JwfA>$Do{-{~{`163NbF$!r1F9(!9#Z1x1-v@#!2P*^bN>P%mmYYp`VA_kpX7p zUm6a4jixfui|%d|%eb znelf)di+T7PZ*I&QgoUA=;VpD{|8NtlJo|ZY^z}JN#$644(-wci6rLw#Gri4OYVkmOCJsPS)bsKv;RzApokwYQ{|5_bsg-OCRXbtE7Gg zd0Ih*OEW8;wW|huV$%}gs-u+6U|medu*Onq;HLz+A*igMtNvq4&4*oZB9vmSfM7Y5 zSrT6|Nt3L?IK3nQ50U0KW*6QnbL?Uf&)Cfb({_T&R}Hr%a-nHjayynIGM z=nrPUmXE4MG?^f1;9c)~WU7!A`G*X*T_PJhcVb;LR?s__-n=dU3a-sTli0V-eR1Wh~XGsd%+8c-+5fiP?ae;c8{s-5$7lgJlv z+G(cF2{l@gsF_&zEi!sR5S+1=`MK z+-|r`a5D&G4`dXdQ7bI9KoHJHCc2(xuRLce z@Hh~7TGG4>1@)&=VVd1@a4txUOuJnar?wNp4?x6hoWxpd1% zofd@2v1Opu@%V;~1jUxCAQQu&}tNf?yb6d26rVK8e96Dp1e@on-J5wQS zOde<*n%b&J%o_3m5vEk?*H;wIP*sRxI+Ah{TLcd>ety2IT!B&T8wOg9^xp^heEY;E z=FrQ2lQJcm@s$>_%`_r1$u@No^zV(_UzI_m-#oUshot#_DSiT*zygpxN##E- zOR&UR$FiQm*0V4Sfml$I)Hig!3%(;+^nzk|(wK4cJ}xKVaUxT)B?xuRK3g_9ln*}w9Z0k>9pq2T7fl)(wrer?6aaYEb?QlQJ?QL9!9gReO398Nu- z&$Wz&;lK3d!zTYcPCr5?H;qt8BR-$)oPz04-txHcfZm>C!g66}NJ3)}Rq1wm@*1v3 z>sZTVYsm2ejy@*az*}g_w}?t%o5bbR!}io}w+Skj14K;6jX+ogMn?;dWB!N_D@DpJ zt5YlsIC|-sr73$DD+mO+PUYpO-Mg3{W()HUlC(e^Ny|v8>37ldM-B~=daY+zv-JEH zzWzvVocN$mnK~gmwJaL$Al=IC{Ao3;%y6Lo2g`U(lL0)?y7jwBOuF1Mr@3BRmK#Io z&Xp~twp9qPZJ@g8u%wqaf<4?wxTsd6Yv}H<8f@JZ;! zVD!W;(j4MaA}K1zTL?|Q&;w7#>-eXZK_<-fA+tJ7{Kt8k!KcJ!u`jIJYfC$%lh5PxG#yD74_Gsj~kn(Y$tG!Y-iO!Mqyz{v-ymKoQ~`> zs9H$O9a5sC@KU$xEa7slw0pM!Lllt~n0A8w1L_C3A&-jtdKR#8&s1)Q&L zLeZMN10K;@hboNlvuu=NnH5x>ye{`-4*h(ul#F-$dKC18RV~T_9OHu;kR{b=Y`dE-0%W4fWIC|mz30w0#*e)j8}lxQ^lOb5DjlfuB>g<( z3U!Y7@&=qx)3+`NBBTRjIG|p!TXUP%O4qZU5jhQJdp_N+x43}H&$2hdP&bGbyh5FF z=nD`P!^SxFZEq3AT9uc`S8KU0x)W(&N7j1joYg%Ubwj0%Fl+{mqbh7f(}6! z)K%o0RkXD@xST*TOd1xdUNx2eegfFtWi<4^5aViTpatb(X}~{lp1C7;rw~Sz&Vphj zQ${WZ-t>7ulq=qM=;?PNxJNpI4k2ciJo8_MKdQd6P0l}c?&T$du5Uda=*_E*$DAZ2 zEffz~38l*Cl=CsAZozoclUH!hIvNCXNo`HxWs{%{ci3)!-vE1qg5yZg7jMXCIV)Lt z{!c)i+H{IFWBE6*Gjz=KV1E+Zk>J9)SafzP4pNO&a|Q3{*P$NrqkAuM%XHB3d>J^I zTRxP{3pQx>v<&J1VGYMJThJQb#}X=jeH|t2;%e2YE32najyOh70L}H4%cw_uWm

i+bt9g+n+-b@V*XyH&3~ssl%jlSn=UKs7m1M zV%2lox@Du|y>QR2YxA-RgT_9cdD6|?1+GUsH^Y%l-=R?16+#S-&uhb&CyBf%nv}Q-RoN@_2J2U5*EYwi^o z$kg;*Z_!KXZ_yd$1`*D(*IinB8pYkro=7$cTJ8aG9a{zlXgGPwXs8F)ZoFl(hecoU zbDh_HZt0dJR;2Mcam(c!bIQX_NgUWO=t~c@ZU$v09cu4cs}au&7Hqz9Y}L!tU2kVG z&1+Km3q7Y+$pKKdaFtxR^IK{Tby6>CDDSOLCFUOlI4Dd!v8w}2REjC15i0T+hR3Nq z8BmK?9o*DwP4kLm4Kj*ExZM%25wsS|lR3l*%tO;k)JtOgp9@pEQ)waQ7D^78P9weC;)f zGz)9eaT?Tf?Kzkfc=DJcoGa{9)-x4}Aph^_DHz1&5(7;W@8ovPUwNXh9=`L!6pb=q zC&eO(-aNsn6x#aKp%n?a(w>(gTOg>c(xxNl>EW|Bcs*t{hKr{St}94yz{1X9(eIW= zBuIee8s#g&)CYdnOT@gnMW~J2x5Ie^j3AV1g}d|5e%m@oyeppAR5O~Cd5*D1Nj(?R zOFBw0KXqQ+ah^W-`SngS{tC-0S-f}eyRzD%k}x3h3QO5B33nx@@+-UbI@SiVq8V<+(xZPZDPmSnqNBvFg_1>w+WH><$i$y;?b@K0$|glL1i5=VpF?-T67loI%a` zBq%*261akE7HyO?TP>eGoe)&;f!L|Y)v69uQ8{FfELFVb(WaVh{q&P4t5a~9oVZ32 z-Lpb0xg!9qGSRMOe2e*BYMNHr&SX@~G%mNxDH>)lbx2_17kTkD)4P=zXEmGcC{_2S zTD0+M`>*HYv>G7t`h>RzS-gat3ZUqkWxOh^ggC@)%I`=k;M(;0q*!`>&2vLmEIpzY zonw~>jp$?R097)HyQFPlEMMvzmS^)sO>5x8hI6b9zE=q(kATJZb=t;D@3gIOg?8jU zw-bt5y69ku*@fRizyp^+Vz)}ke@Y+JDKjsVPpx%g#)BH2@q0^FPj^%TFDj{s+2bIN? zQK*w#ZHrza$ioDA@LAeDhvUnXO`}mVN6mO7^SvyrG+S04aU0$?rCJp-z(Zl5`U%M$ z3>nhbWC|>9DKqnYMru0d$Z9h)(34M}TTxn0N-8Xq1i+bPPmx5KzP33+y;B^ayn+NO z9pt8JCaNI`$+?PfYY19UB;UXAtyg-vgCQ+0HX;EoZ`hRAUWbx1PpYV7CTF_-1bB9h z9Na_QL^Mm?Mr2;NQ}8OXLr=Hen~uQ^b%d!<(Ks>@woneCOwEE{fPvD)oo3D5M5QHO zT6I};6MFVZXEBX@pDf}wTI9t=pNt|Inn^}K`%Y12df3KQjDG0WrPLkIu|CA7Sl4ph zJ?m+89->*nrsZw=sTAvZvq|P=Tk^*bTqNe!{3Uv^kAVC@#Ud$VL?q!ec)Le{_<%xG zhsqYH5cVZYKbU6#5t#oq9GRw)=WG;ZotMRV6q56r?+)#hq;uA2E}$2!$f(k;?c zO+(^pV;@}*-3L+`Ry{H}?CHa152=SH@>Nv+f>G6E26NFQoG0E|f8Z6A~2@cLV ze3;gHDGWUV$>(<+%;N938)Xq#zl?Qk(_3FQ7G#h=1CxrSQ9Z2{cPJe&22F(MCfQ$y zQ@7S`%8NE>IoXoj^EIRXk^!DsiybF@lp<~9|+uum%asO^&RN+Edd+?vmA*UZ(OqoGhv z^bt^SGV{Jc{LN=@G{LPxTvG-jOLb7yy7SZ0qED|Z7H(NN>Sp*9DUAY;xkd@^+ZmO# zuGW%k-EzX$7g^6NwHAy_yq>v^MLPCO zs0D~IkV9>9hmkbq4?5}3Qo^fLy0gtiJObX-u)X74@@e<_QEpeJe_`1zv7}j#o~M;c zxw`uFngsP=W1w8eWH?M8tab$+Ji(len*0auCPN>m-}& zaMKMs&{{8ge>REzORa74ToGOVEe6-mM$;&5+0xaZ8sl&;N)qUO9b61*Oew5yAMuL$;9^6lclFO8fPdL#f`bugIUXVX6g$G8BQsOUgWJY z@wCq(T6i0MksGJ&D9q8A%kH+RYij5*m3X;RRGQ4JS9p!wxbfLC%zVO|XNnwcnp*NY zK=de4X~hY)PtdhKci2A{@7Qk11h4%4hB87E{iC-3~MM*(Z z71Dy19T6gaFfXtS`)D?fI9xbYmibu>^ia9td+vOi9b=_3Ldl)4BXj4%17|GF2T@nL z!{y28YK9i)$z45Ss zyYF53iDM)+A*j?y$+kA*j%|vbSs?Z83OrpTV%C64ReZPwILeq*oL&UGitA5m9Fr}d zSvafKSM^YKmRRUL9q+bxyyX=Y2UJc_K_nw<+c!ix9 zBG}@)8}j*$^ArJA98^@^BY<90n_0d=*Q8q`m6Vy1nHSBnWdldA7I$RZTK-z-&a`qg zWQkUjIabdlSpQ`DRI0Mv7H@aj&qSQlR?F{VRPLyvx&vF0S`JL;iM!`tuua*boCb#@ zW0?8mD`BWBd!U`UIi4YVO;zI!_V*$e>-b7)#k?~f3!8l65mj*R}orBOs3Q3_^|!H z-GzA%QZ+@&nwMs(SOTYmg+wRFqqs3oZX!2(+}=u5hVUR8&6drEqa`79MsVx4;)Kf6 zOspc0kx)c;?N3r?J=%e@oY@B4Y9(MweLdv@OHrj=XKW$BI^R-WzXGCa2++Dy^vKjV zE?Qx(t~WPuXQWCQ4rC22m)28nw5o#~)}|7|NHr-$7=*-=<9Z4Ow&-7rgI!Q8ksaWY zRC1#^(0K>7N~lfTqr0%=;-S9|C`m9SvvqouC%x2pdLaQaHmH+@$NK|+o7_r3+c5mo zr!lUvj6R~HHq}Vl1~NK=Vg(VY*ee?~l>`k@+=!~v6ShEtv8Gj{7u8Qc5N>Ez%YF!W zk0YeQGOzII6=6%i6I3%5O2+G&F6^=stO!I|Dt{>9^X+478mYGg&Qu*CY0|n1IzuQE znh}L7MwOhz)~)mSX>%h+l-%TG52{*s9&`C42h#f?_T=v-zNO+1#&cUVvn+t45nV`= zbdwyw?%Gw3${>N|9li9v##w<8&hGnTs%cfu@U*N?uv9sQcs12T-j~ zfKT1U!O@B-Bpglli-;*}NGPlx+m=`6f$P~SU4KekV3p{Y(D2b76F312k(M0JY__>v zUF*lG-n`_?dbE91!Vij#YuC&hTun5hjZJqaGAGH*^bfiLpB8zMHAXoP<CXO6`3O0NUt?6SBz#oeqLtPS+{ZTiM>HK%d&lH-SY0U6Y;|gsglrL{%1$ z)vOOrnLj9($MBa=Du@GU-1Vn$H@l6c_ZahKvrFPsFvQ(6GLU6idGZpoQcEhtEX}gZ zw||8hR_^`4qS-&n-6=Hmim%i{D8B}qppv+5q-HgMl&rB4iO171MUIx6bp3U!R0E`N zBB>HjTRNfBA8MN`(}70E4Vu}$yR~I4NqRdoVXsVE&>O5un8V-eY_#9Z-I371I#&?< z>6qlrB*iXp=9GHjlbCKpjF~z!Fh$pz7>At7naccO_)s}iJHu^im)s~@Jsbo`6swy_BPMwGE zO(+UzkkUGi$f9ghonEK8tRZtY#!#K!`Qi$79+K(wCDeg%hQ zo^wmZ)ahlA{8`}3_0;A7aM@i&YAO{I-}f`dhc}_PrB0Mmw!$E0V8iZ~=n#0U-z{ZJ z7!_6SU4unxkcC2-%#S1+Jz0#x!8VXas~cRgZ87Lfz)A0HkFb^B)PTI^W$y{w<}98n zeFz7=p0l9&M~1nO3O9EHx6e?;cqa&jeoC#2RFI&>F^K!fAiKG}I6SRsMdq+Y<@~;U zRJ&^xMC6(K3Q{VI&BO;$kN7m2gt(+4N+Exk=B7<>+cLxnN>&9ZN698uc2(?Hc|~;0 zG*ZLXSi#=Qrswqt@Z-o-EPFmPa}=ytp={l^qGQ=KvpmYS@pam~S*M_t6o$GfWg~NH zh6=ixHqIUXRXNypTCG7%Nsb^fHB2?yWl;4vA%E?2$n!XCQZyY(9t0KE2y@5NLinRp z*&W;s0$3f#Wk>f+yITfi*1@1&HM7)JacGTwC~7m0A+p2M*J*U2XgHQhBfDdgCSSee z#c_~Q)DO()Z)sL6dz*EDRg+++CW{6&jq`LXWJX;3SX^gKi$Euj<=sAx=S+f$@v_1V zc?Li&Jwb;$`1z5XHxhmLW^#^g=b78?@Ol!8d|xNz#N}hj^TLT+`>?9T=lcUp@UTWB z7!n%h-dm8@7e#`znvPS-jK!Z7Rrn8KtGrNLtz})WxK1PoRqu3R3Tcl&No0 zkTVX6vm}t{xi+!2_1_O$v>@<9q8i#T@C@CD^8L;g^$V2RAo`L{q&I04xC6A|;G2<- zGLnn*hV@b5xZxGdK;vD7h;0$z7TMg$3|5ilJ6ZniM}SRWG_?q&0reVXJ(`#!x4n7Y zML?YF(bnS#k2s!G8z=^?N*rjkmdw_6ONk_mq86xToSnQbo^ zCn})d*v&{ZgA}$XgjAP^W}TUsgcVE8D{AFcSSm?-)GG@5aE?e!a8X@JA)pc)^l=3@ zPYW4^Hk*FhqwVTlM5Ehoyd0=KE$-1$L)arAPOLmV*Q`^ptR zBN?oAwXE$mKJBweo7<{Jr3#(^ton@yryfvk21w%88n5->UsC&Q`$zOPacLiwMUb$x z6qPMxJ*_nGTxeTf&J!`+Q0%u?Xk{l?TygW5PJOQsAv>vC zO;@hJeB|bI2Xij<^m$5@XnsYu)VMQvfeI}+rg4$~)!TIjHMMr@K&TO<1VT6TDm|zu z2S`AgQVdA%AVouwUZjQ=5DC3ksnT0ensh-dbVWMS5im4G5Nqi= zLQRdM*H9Sm(BA)IVSFknwUe~0%xH{}eZZlh=4ZBklve&a>5+JA$lWjb6jmW!WZK(%H9i;V^a~`DGiLX$DqY%i3~-=nN{H}v$Vn?F4KIgz z6X%*@#IKnKDrNDNp8g282|gLDVtk&Ll5V~ooTs6el70Hly6lZ?j8p2SY3VMVTh!#` zN@r|jw=iD3r$(5sZiaM#MkQ)gBml0(z)M^pXa8+54mPCzuqRIlF7#$OBhCjDdC7~n z#VmRU$xR`J)_i5dg%_(%1UB&(Pi1<#SGZ-`A>6iFd$6!qJFRd``itT{`<9MC;{4Y{ zn9{d>Q-)g&jqy_|p7z0yH92CIn^&GQ=}{{;)+P)!^1K%AwzhjWxYYi67wX!4yzQE0 z^mETOtGAgUJ%KUtHm;~TUWWfpJ8Uo&7hWs||ARi{wBcNgXA;Q6aTn(S$ zef3FV!nqIY`f$rR#`s-A;U&znS;T?>$7Va46(Pfq$iv<&M; zR$-jguaOD?x1*1rGEEL2y)swsLsp-9P(6vg>UKM`N0#}XCco(lB<3+wJp%41Clk_X zSOM$4gTfayanam|VHWmzmQ^!4-=JIgXA zR~%_zDJ#_dl4h#eAY$)?`r{;MvDwt`bE8=6Y^F%+T|zB<p4z) zTRML!*UH>XNhb>DqE3v5odFj4nXQo@b$1x@XOMHZlO`D<`ZflS7S#+@YKkf zpUW*35X_w5gU}j<)~_N|#_89j6Yn2}3D(JH@Sm>Yh_GB_0br&by<(Vtprj^77XE?y=E z8Z3RMS!VTB`sw8`cKIQcr5chsyXn~)7!)sHl4uRICA)h+D9YI*$1&H(2vX=BY4CRH5# zPaVNoKzNf-cB!OS09u!3+cQ9-tMzLy22uwHFW%AAp@R zz&W#mVVCR3Ihw_xTR)DOo#hUZ^v#58GA{$)}S+PLB#QOe#5 z&1MHJfBy>N11j}Glg`k*dpMbEs>_J`6IF}epXdV`uW&hNiCR02BK|*uRX02!KK|ku zDaT26hYFos?`!aE^9VJ2ccb~#aF@7%wvVamC4lY>aP7A^iXmzqb>BQK+Fp3^TXZMg z7||=N;s@g1)USVw`5?9eDlr^X=KtJT=eH`xG~DtiBIf6gqqfxrF1@h~d=GS#V(g9)mB5X2Dg73DL{PwdSjSVDtVn08<06 z2>BbB#fJGdThj0JMbNm0`HoR2p-ZYN&GB4Uzr;zZVwFGfxKmq?yl-LL_Rg325{LIk z{LMuF)GOLPNE0Ab`NsGT{eKVb$V)wYZ8=UIXlGmNsiKRE0+zY_2{+L^XhF!o&5n}r z-e_+0?+Kf$lk2?%2Rp>Rk%_q_|Ha_NY}ki7h2AYnQ0E>s(~s1ah~?kv^u0M|wY3#c z2ip|%2#xl)IRi+zx}btqE>b10&tki*N-dkr2s;xDY|saR{O0!tOn6s&5_Zy*FKvCJ zP*YbRG zM5u{7c(Lyn)OKwK+=PI7SBV1q5 zjzOc~ZtlWrN1e9;0%ErdCM%vUntg@5y$7Y=3C2AT{GR%Vv=DP`jlI>&JJ?F{#0Wv} zQMJV#R44tE`4K`EUXOX77sxr;vpS?eYoBnOh+RGgp7POFaHg-x>a4Ft=x_zQnf~u> z)S~+uH0sJj*?pQGR$cR(#U6Z|sU1L5K1arl171JXUO`}u7`*l7zfiKw*Z?R76wMK# zzgZu2f3TD#S(0>{rT!Pbc6D(W?+#=ib00k(kd8@E%{Gk9 zZ0uS?<7t5%ajW?hNJiD6JOFe-lu<;dvihxaVEo3j=3v77Y85V+)}aIHQOPSFFqs!` z&g60lYu`YHx6>b&=JR-TS!5VDBj+5esoXDAMlL1dU2LlkUq{(sH2^?^iA+ZA*z7C9 zxop=jq^kkqZeullY|_k73cR^7{<6*`Z#jthu?r+0B4ooSx_8yTH`S+XJQ^P2cDzXY ze`)AP!rr92@+1VT<{J8-o4sq(>WKHmWQcRQITz+Zk)ad@HfLU8GNBm|Sey+Z7aco# znx{O%&YAJ`l|=K$Ky?MkKE-+9^WcM?@(ycsut*C2R>?PFIB0@)ZyWJNld?TkMNHu} zxXi*6E6 zWfR-nq`4b87dSY49DK-i4qc`h!nfkDtmF>JlLb$DTNwIP$R8h?$4!&ho|n(|b&f6h zU->#!{|X};Z2r+bZuM=hZa;ATkEru9eOQ$W=3AHdoyvMTN-|zLP!ZKqUGaxLG~ifVb^H7%n6)&bWiBMvIxu2a zN*%{v86>&*jFvyC7M#VG7;u>1Y5T1DgQP#RmWMcs2xB-Q)4hy(58+q2CCRb2uDXZav)#CZaZjYvBY=^s~CMQQF@tWy7z3%*7kKgXAwM``~Qd zq$L4`&+^elKYEF^v0efa`#s~qqm`I50AqHV@6yu_=~(<3d-T8}CFr)OT+!bZ9| fyV|<)=-Yoi*C`X7q4XNTX;skX86fcG+2sEKI+5N7 literal 0 HcmV?d00001 diff --git a/assets/benchmark-chart-2.jpg b/assets/benchmark-chart-2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fd2b616a9342dbd5a039ea850ae5cb3db1129518 GIT binary patch literal 32348 zcmeEt1yo$gw&=m#-Q5Yn-CY6%2p(L6H%@SOcMlFWo3;+{HFx& zI{^%MC{w5nC2?+(3@}~j|2LS^K1q~0D9|{6oegXi{Fkl!Y z)cqWQ3?2cA4uuYewYC3@@GrGsVMTw&huF;9_xpAWu_gFjjVAW_+wHGDj-KC`$s@^F z7tEtSs8%jM@qDSlH@iPG{i;b#TZ?vV5@S3?Gk|7=_GnIZol3x+wz^6X-KSFJ)#+CS zvS82d>}|tqO7FIq{!kg;1fE^381;to+Ni}xl3Go@TatN$+*kab7f#A022yfObUE~7+Gg7|o{(lsh#659q&~U) z$mfRDo2=TC)9f*>+j)+RbaV8r7mIe=kFe6E_&|QYQV4(|z<_Rc*Z_cDX##vxFqAE> zSAqcGJ@UH7lgHt>SxoqVMc|W*-w*Uk6jgh8i$V%e`V21Bb}7Obf&(lnXSxW1a8tcT z{^~nb!O9XRz;Cu$ za_S=(e!KrWKOp*&+zxNK3mepg$JIN**W6AivnRgM!-K!h1%fP2=IdLrQ0^H&*txDU zW}zuV&ZN(OZ9HrSlbo4RQMdhEmu5hhW~Tl0iq6BY@t4p(h0gd+wqby6G5=B5Cvzw{ zrN2fHf-rc5!fR6>`wZa85L%m=82<>OzX=dg=SSwN?FP7~NIZ=8svusy{cGfaXz`7> zR;MyVPk?BI^vLGf)>qynA2G7RY*^xXV}QsSwYmIU+wX&#-=ETh`cA z9=K@ZJY3Mk2sp6jHu6t_)gmx7`*$j%Dttan0FbjG+~{F%kM3NL7yePj6&q`qP?hct zk+#T5rO+7L3IL@h^yy4faj(`hhNE85??i!8M6ZN#TCEPk6tY9(dG$@Y-}`_-Ntck- z0w5I(r>Eedt?)R5kF(v?W`IS@^F$M68I|t*Blz1VTdW)N=)k;|%X(3xpf z+WYtTB(U3T938;y&nnM`(AKU=F03JnjRP_kp6vESoiKR+Yi_|Wj^xw5jFf_jPB{)` z{ayRP3rg!@01(XKLkRD2k~6h+id5<^0fdqsr3I}q@zj}*EYFZO`48TfLo|=?)Ar`X zp~*o5gJ{0FluFZHWqCFfj;&+Z!HJl- z@84|zQ3@}~0qXH|BOWJW#(9m(nj^4907xUpCwRCVi>Oux#wvV2x_3zh>|W=Mue>=J z;ZJ_drZzkLci?Qw%UAtp3HopJ@VJ#}oT_efjBNYwTK&7uztPiqrGqoMcKibWH<&?` z1rMA;r!M6!{h?+MaA8AWr_sdo8Sz6_R#`KtTk(*QLvYm>%tsPzsb2pJ%N4{^ttFw< z(k{*F-{;1QY6q3+w*inJk_;oR4p4I6CP>=I(Ik6qAL>BnPMVodX%v366BdQE2C3EI za=d?i#)Xt2emUCAumjk0dJa^)&40I|@&`*VT+Ev~rkCBP;Ni7PJBBe&W0Q-D;6 zfL`iW`ts#Oq6Ygfgo0K=;t%ix7PsnNCqTn`Lr{JO5Td4VxPZcJJHfv7H8htco1NZH&Qrk;Qcvv^)z zAyF=Q*R#)n)>O2f<%$quu2tb#XPMg)g&?FaklU^c1$FYbERN!D$_t5PXEv|Ofuv!I zW7OaTq`{f**D8icdATk0FHyX~06?9B<7os)8zu5ue7_$W&2(ZH^5ajTcsxIeG8Si4 zeE=|9OP5xINQ0GY{_c7CebiH^X{n>UvT?fA0_4rnFGIx#VAgF&saV4NfTW(+)F<%H zy~N^v0Hy+BOSvBv>p&LA_nVPT#fEg!b`k~jceYDxrFM2(RWRzK7Fx3ve zf)qJ6Ce)sjI$zWj({1THaJ31vhWR+&xp|`tyQS$8`>Y&!Oc9VtSsS_Dsog#IMh`5w z{B$Dv-TR&Go{$=c-d^awHesYr^D&+}|BP6oT8Y2ft_{!rYfmY&(5*zku z7ycO>@HG-THjr0%BDgIp-2U?#0WqzV3f_*wvgPpzol3oQ149Ip5uE+N^=rFCasXhR znlu~T-T|LuyylUw>=!Zw02D#w8q$ZB;D$%J8t&y57?=L&z~u~F|5T6}5|r1ss~-6Q za8TO1{eq!H3~>NpeIXVLojD{7UN1@DytyXn1XEnWZ4|u97QXA-YZG?>AneM5gOpeQ*y9|l`!L!Y}{b*=Mi_$+viR6;PKB;CN1*PF+76+z;G11 zpzY(pTN82ss@y)SU_dTt9ILij0K+T;9F3PF?~08tucjxx4G-sO$ z8eNH@M(|P1y3msi>J1ApFDUeEh^_rqQ)DpPH-U3(D`Y$;Hhus;$68dk;+rZHb1>ki zf=qCH@wqQ@mV4ocE{KQ^!x#u)Z+uq-^#}d-6E8N~0RUP_h%qREp*GSB>@;8gowc49 zV1(~VjOn;w=&gYg@I~e1*}qZ-dK!u=b1;_eN;dwqyIj#nJO?YlTP0N(DpU!24GUity)u1^w^BMFXE{bD{$f zP|yH06g>F+8i0fXM-~JW3;+pB4u^rmh0Vcr6e(9JtlFLY*@&? zNL7N`wpsg^uL*<*sQjcm;6aZhEzp(7c2{Ja;ATW}M(9qGIZ+bW=z`s$$Q~e2aepPC zrbYHzg~%p7vyNC~+w_B)u=j&16Uj7TX^Wb*=p%UTFjgr`=}FxLYF#ApVE1Xq5ZOAm zR?4z*mbSYP0}r!^SQLB~h!nRe+R9p1hMf0G+LinZF`|`R`E%xU2iJ#}M-+K^g6ucA zyI#1vl6}sfcgZ9xyBqA3&8BppJ2oY#YFjZDKB)aPpss?$$Ea)jE-c(ErLgcp%F}m6 z3TCN{4;H&Cht$>iXdLBrZ5#L=QcJF-%$gMpPF7AnY4Cm>78J3KbP$*fz6jxz3AA-| znHyBspGYYw*w)U4rF@t*UPygNU1U=^>f2*eqmE;x&+|@-6en)nwO0zDO4T-7XiKf5 z?ZE{dF4o;yopN+}?szoqpE)X<)oNQ&>eOl#rm~b($FgtBH}ko+Z9dfCiFK9^ukp@G zD5)G$!CYFlIJ(pSSou-?$vrT^$9avv!=P#pmom!s02}!WpXtPrV`m3nZuJhdWEcj4 zVDhn&_(-WY_kr{7YNaRti}XLu1ZuKZPUmg>s>}q2`p{d=n3$Z)BXVB2s9KxR&cjOZ{pLnl zAw857WL_x<%cGof%FVU&wkh+rZI@d4uqf3n_dqzs_KNKDiv-eE>d><9Z*Z+R>%1pK z8aKFK4~Ob+%$;*jH`KO_)a==oIoXQVrVNF&HJL5SdUm)OiMS3m$DIf4b^7e4dQj}c zd599dTXK0 zc&=Dy&0PmPeFF7YKa&1a1jE6#N4SR>CPjmqnn|T)40`&ijm@uJJmh<6P~A_B_U()= zh*q-~yxI4ug+4cx=a!r2yb?MT-nUB+{cIoO20HmccJJ43LOl?<-YE1yct@vwL1rHr z<0nq?7+LsiH{4yR1G~9(`L+PfOSx(O&95k0bn^umffz7*x)nkLxH%o!W-PN()Ht~H z8SIjRI`WX60np9`XJl9(CG`b}j#Z!1dUNFy!_l25c-~8cd42VR{AMuhGJ)rwVge@YHhe$oRh(5TYx%_9(&B;D zBi+3pR7)CoAT)O2wKEE_5K77}l*x0%gn~9I1t#qGuCs=P#4oCNd)7=tC5ABqNiTBU>K^?n zgbYW7WIb2B7e8^JwJ#Cxt$z72NCP=fDfYw9J)M6Ygvd8Tq0G=qh3hVwOoa`4>VscP zHPs!<1Iv6I=key#d|)p&-N+s_4WPNR?9lBH%bmv0eNB=MTvIF7CEe4y;iYw05-Du-g?)A5!j%GEP+yTaeMKq;3qW?_e?Llw)?T2}t5 z9bxDvrY3HjQ00%yh@Oq!0}bhJ5a(S@nR9Uk$p&k2=|MIH zJW#${4XF-fUIGm*Z!x`1T`%B1;y(M;%pQsR@?QMWquE0{E!j8|q?l$>WehxK`@b+S zzMKbO=`x9GH%X5dWy1-#Cx+}V8+T&)EPUbSX?k?WRi zhKAlTa|=@^^DX@aIT^@@O+le;C@Jfq3Y7!y)q^7)VJ=HAH}u-Q5B4_Bvi>L|a*p@X zvuiPI7zYWDA%t_G_6kC&knIXT?t01e$(*rqSluP9aGOni%DAYwM~yn>w#Z3%kv!>| z{bjzlEB+R?@zb+v|OL=FBMyMs;ay>8QN1%s=>2i)9gvg0FgC?x1oB@ z^8Zn2dMyO0b7MYMFnZ-4N`Q-wg!&|$ZMcQz&d1_5w3X*m?*z-CZ}nNKo9Pnr>Fa0RK6|t`eEX(f zx^uNjS|LthGR(>RTlqfqO|TqEEFv`_96MUdn7ao6XZOI!(mVI-m-$+#_khjtuot%H zTOxw2u%~eq>w}v{kRC>;O1ALbnjR`H=ePFj0|-MEw$OU8<{R;hfX3pLWiw; z-05zviU(sl8d)-XEB0MEXG(wQSPKd=Qcn#nhkX`2P6&O3=k}V zZm&wsGD6mYS&PGt@1=nEnNFld1WU7u%SvP!wx0XT?H)XR`o=@4>A$VhEQWtG=+0AA z&m|#B&;AFp#V^kvCMcB6V}YiIXmo#M*9}MP_(a{w2BMEBo#N+SIueI+oRMz(h|rfD3ilB5WUsX0Mh z?+g|4py9d@wMPZ@XHebh;UQ$_N*NUG&8x%(ZjhIjaf|>JYyXaKWIFh?Wk32HR6W#G zX&>_ZL-mS?86|(5RfNQ9{jwjvvc2Noc#*@>N*7u7{SBfaN0!FS*@kdS_95w3 zqj}B?p+lvE#dNnb+5?i0-n_v}B}*Z<{ky!epSqVqg?6%e6St}A+J#?K{b~m)e9f>Y z*UGS+J;8RmvmbUYHNklbu^-_Uax&Cb!Q;1=|D~Jd*6xO9Pv+0(`1!1|qvE0R)4lZA zG7B%6Mwaxq@6f!|nt9&n-G(>AxsWMQxNW;Fw>b(ZQJsT$md8Bl{&2Zz9rR4Fk9fZ6 zJnZc$up%_>JR&6Oxstuy!oI(w_*vlH6$q(Kw+-bwe(q0mq4$~ELZX-2w7?sa?b#)a zy~sDuzCtZw@1uN4^)0Nk4l@1Gi&$qpj$ipa zOMHK7zsqOM_0RK?chWia687onm$a)hw{FjuUos8Mg5YjiuDSMS%X~&W&#afK^lvk| zv+cg5d|0yk8*I2jR{-Tj)K>GK_+upeSvoA{JwVFkepu8OtuJVGxT+aTSl*fLsBdkBo-_9%XiFP%yg~+Zeud=fYnjF$KUs6RI>)!*qp`~?bdUm9hm@@Qhpy-Ou z5bU~#R3%;0-vHVj5;){StGmINydS3Pf5xt=f@b!6;$8j$pU}3BY}?^y#wc3iC9H%I} zfTzPsz6X$3T@FTh48WDS2;`E;@;F7&O9@TMkkTIq7(hU;IJSLH>pPO^fk9-s^}k`8 z9Txt)r(!7t)OcY*R0gi9$own#wBP43<%w&G2bBgR=pkY@V$&GJit1;T{eT0mirBW0 zu#&UC!JO&kw;m^d8=`)31M_9@9{2}(q<&So2S37pB3ah=*pYB2{Uq=SPPPhOqMd4SW%YI(Io?)nTG_~jpkvG)K3&8 z^hk|$KhoMgya&hwyGhPu9H?k%i6a=b@E%$-xBWt3L zKy`{OLkL_!ZYVsrJ;z>>hI$Ekmnl=}KDOmIqR*un1tF-!i79w8(^|1p$7lzrgZoR< z6MJt^E}iG&c93~T@+J1U61qEzxN*P4ikUKqP?5yMF)T=ebpDBv+Bbw1aSqCDapKo0m)y72+6BZj_ncCT;Igfcux z`tkI-mNmtrZs|h+$@_~Iep>koV2B~oPSeLsa%z4t(Bnl%b@=X`%?p`VJ@9OP82&Je zPdX)mRB?tEl?PfmLA}LwRP;~dU^AX&iUjJ8nqfS4s~o^pM8ZgFATRA_EKE839v* z2tOb`Kn=3VVg2V&htla9s7xWrj)W=UUb4+9?YQIZXA(QJTRV)@SauOAADhm zk^ffxg&4dR7^JsRDXT?9sEv+R$-&sFs+Xm>H7lbFM-(6oaST=GQ5?XJ+3O{TwHg`+ zlO#ZTVw&OsI`9LCEo%|UE-*JS(V<(ZS%d{|FcndV;12zu6c_1-;W?n#S|1aCUa#Uo zf`OcpftgAV>ysHYnaL3S7815cl_*iJv_=JvBz={O%{R`k6E8^yp=>!P!%cL@)*f_S zXy~xY6)9P8;B3ie^}yuBKvVc3JM=Ev(}o6~%Q_teNSc+&4QL%Sn0|cajoM|xI)Sn$ zkvcQf-@(q43~#4JDu`ZYIwBHLJ7KGp!qc>;XKgn(0M}^BkZu?U5pgFka8dL+`&7#=Mzx{7e56KkcL_ZiiZIF4+--3=2Xv^jj8OB3EsB6D=v?>KjfHB0Vb$(1@f zitiB~Z&Kd?DXb+SRz2}(Cc371LlFyR&z8kzoKMW0V${ST9saD2Qh*z^>(OjwAsvgy zHYf%XeH2b8UN$Oi`2%khak0Z^Qr6uF0jj#@GjU>~N1g)%$EFchZX~_(BuApSFmH6s zyKPIts6o0iWXb&$6vb9wh$G~u995snx~GZncw*qoE=wxlv>mV$TvKLRg5C%|31{vy zy~x2J{#+VJ`6;E&EJgRotb*9b=vtPQTq2gBLSoU0K0Hukhtaz@<-)O;9f~MoVD%*( z^d%oDEAt%eQC}zL(_)?ABgB?%Sf362IR3u0Q5e9Vu1fYYjV#V{zZ^puwQ6g)+D@mW zpC?Iqft3wlwlNefy@a1uD1=qp7#eORiKJOQ7Ju2>f|Wq&6^eUecMrIZSJpN5T5`aK z$D5-k9EecSQQ<$fgY}^ZF=VH)r|^#nb)w0RglC0>NHP>@qyOwL?WLr^yCd7B!{ErR znCna`LE6DbEf-H9p*T08SZ6Vlpa6;b1+6Y&1pGa4M<#8xS2kCKD2!=zEv5P2TkqG`U*XM)y_AdKJ6CkAE zFHWD+9iW3z1W_OGQA686=PPOrDb`rbnlE*|MvRpWxk*uAoNtr!U zo7m~%eh_{LG0Opu{HPU|uXo1Xe6=g%3De%L_nEfs^dhMYU_IC#@7f>dz1GSpspJTO zI$USW{V9cZW3#TejU3{*Zb-=RrP-_A^<$&h*pV;}apd+9uk>NwXB;;1=)(>sxHzP< zeau!vS&j-cy|h#VhV`*XF#O=%XjF(VRX;^=R77kz<~aBX4@gI3gqd?l4w7d20uT6| zO#JZZ1W)?lH}f@bcI?Kgcrlbw4hG}Hg+gRtjmfD7p0i)K4pFAb@;WMO{Omr zE(FOOHYisO#lyQo@=c@W9S4f~HUo)2QH+gL&k8Af8;}rJoUUhpAg*3h5Lj)@~eU5|SZ zD1>)=tX1fRuRkxEN@yGcMOqWF#|(0fA##Fc*t;g?+Mx%POGn6jdAp87wpDbF;ODiX zAMDJ~Dn!HpTJ19M21yzZqLVZuDKIcFusraWO*^PDgSsl;jYo$Xvf)FE^;p~nuKFhs z9xB13ul8C#z6bhTrqV0yUCvo*>TJy=nClPPQ)sr(!uIVP2?Zfc0*Kjs-P0qD^_lz6 zSB)|Ts6yCoT!|=RvQy2q$Rz-4ShVwSs$yjJeS1tGQ6j3JEcoH#Sj|JS>wz-C{$O6d z%dkyd9N}W4#iOBIzvx(8Rt$fv^Qe$#6oFoZqe8_I;kvyI6lt zy+YVWt5gA(dJl{>j|;^T6OnE%-ko;uGvOCq`XXJndh#sK_=A?soF0v^;qXCZnzFAp zdvj%up_(ddI6dr_9iX8wo?SsKWnyBvaEtpKSg*X7C69gt7356rIAMxVt}qkQFV$J$ zNhm{8nUz63|ANwDX1QaT&BjP+K88GP&7*6>!(UmULvSBcJKE&DU+@X96AJkGfMs9s zgHVsr0Z8!wbs-Vp5MW?nVPL?ICxV}bf`-8$$4tPYU=veORg160W_@CkSkVcKPAU4> z(8w`~okQFhMCJdoV;qN?)5$LnPD0%|KvE+xuIh(}q!2{FQ|R3#Uh6CHcfhj7^NBLw zk7;OM9SaiOpS)8(C3StWkHct>NFLj@8xwqpmRsYSVVoM1@QF{~@`XW!pT|fVXsmJ} z)U{PzAb*7pF` zgJ!AK&|^YZBX66D`Jo$BykuW4+!#UDhe?l?%8`(dNN9`8Y*F6R&hAmtC;F&qXui>! zT4A8kx(kxRK1{)}_t}Dj$&_Q}VYZCk*F6ria(Ln^lE#6hLF&n;-MD2HASYz0m9URIc(g}LA%3En zW<83}p?M`WA6kBf7WLt;XbbtU96+-W7mqq#%zZMKX26ARt{1pQqc*#>cH|qm!G}S4 zeP_AmZUUZM9OQgR*_h^Sdhhzza5`TaHRGor4dW)pJf5ONoy26_}b*$iNf1QqAa4ga8*J(D;MN_jU8HeZPKp2vlN4eGf zSiQnNlXuqJmXw%8_>bPFJH@b+=+c~y6zJ9)1HmZ_Ve>QCN4l%8-}j)Dn;I`HujVDa z8Bw^iI7$K#h$TQbDOHIW11 zbItu_&p`Ok9$=M{Wg1s7Wij52uJ6!_aca^PLu@>+#XV|imZG`z$8DMl=Vac{BB5Uc6MI-m1y`95*g%_4nOc?Nl$k8kxe+UeGH%-OXWcVnxaF%tyb zQ-HTN>~V4h?wmF>C0#iZEG9DfUIsjtt@l70NZIa7Gb7cymg-!O{jJT#+TuGIv~Yu( zp+x++9->+?KOxA9`C$dREWxU~&Z=%v^P;jGHbI7~hSY!2)f z5Cf^hFXH^tmvI={A{OiGx(Xdl98(@Ql2Q8-)kam zvmCJ8e##8@K*77=0CIM*!C`CIh)Fi$p60lb&b7}L<)?vCZlr{+bP3w^%uCFJG8zwr zrl@%90zQ_jbsh&;qeOhz9%z0;7om^KM+HZv1*s4?FTZ8RVa5@}$MI6lRzgsYku({U zcD-*yi&ZK9A|X$ERBRiEx3ala4xln@KSB-)ER%$LWaajJ#c#E4mh3X0IzO{7U=i;w zwws|B)a4U<85OG^h=T(s{5*wpRkdruO3O1^0S#1Ow8zCP)cZQL{$u$$;s1jE18bzC zN%tQggc~NA4n8X_rLBV&wKIPvDH6x!@rXmopN{p>I6{&WuTC}OC~-ZF_>(++2g|Vs z!|lw83-V@h{v(;HPnp$*I!A00**mCCl3qai$3ewG+ynAQ(5j9_xd#~y_W;6gYCi+! z_OF2cJFD)}@!}I(57JRN?w#@&-Q0NhSGiLd$XoCe$>7wgc%Sm6*E@9c8P`>(YU$s?R{aLgo8YQQV zPx=@o=ks3>>X@x<9XR<#-_`43MP7omu7Gyuc+Il|fxE#0a#br+S-;^XRz$c{E)V3d zZz)Y2F5NUJY*L~9DB0}Og zYP5S?=&t1zw4z?HMex@9$(zs=t(>#Tx47@RcdA$FN_Yf4O*amM7C!)m43-te>_w<@0SmCcfXo1zUxrV@D(=2)VeuD{47oK&yx*^AofGpVk zG9O8cwXLSR6lIv1R+4q_Ca>#*3@E}VwaoPp53%x~t=2!u0H z0K9nPzYJ42=`Vu)>u?wvt$CSo(M;hPV@t%hhN%OeBfkLN^o(5o z)D8a?S*P>&6YY~)H~B?OtAvf0gv{@dFWOq|cDdqkPyL?&yh`s!w2i`5@aTqmxP;Fe zRTD)^W*stW`%(q5-#nR5A*B>?38#CXaQxNmh%uYbyq`5D-ocph`C}zx3|=-6J9-2aocfVRf;)NUCEds#FTeXN;Ev{A;wGot_0KBKvQiOU1jYV|)JT%dRCM?AAR>N5BxxrzAwny;n$ zKdAfKZIo`+DW`!zq}+##kMJL~{`f)Ii*7gTXy}36KpGfED*sEM%~Gw?)Vh;NFRCQy z7Zl@@n&k=@XJ*CY9+?1|f>Mr&c6yQ&MOgTTYQ3#fK`#8$(q2;kis;D%nO- z@H-)W8_Szy8lP6Czf@g)*tfeRLrPUPp4r{_do#=6-vwsNm6m0hr=;|oCQbJX>>=F) zAaw7+2v4Tdr*j{^AUk^Z{*zd|oabDYe84#jt4Q0v0zFwv%JxW_f#t}y3Y)tt+NzVn z4LJer(y_Ofo8D*jIqxBfPt+pK_-~Vl*WOq{H4E+h3K2ADQ>&NtXbdh<#+fpC7z1hm zBky4XW4#iNJRe2OxZx70h1fl&P1+uFYsbLAh&ERDV0+6KVf@?5E$pg>4LkaH57tb2 z#4DmPhyL>uxr8TCvW4s@iRyu~O4quN1>j8k<9PcP?Ei_mvNIN~b0A*2>&3|Hxz`@O zZ8wX7@3#C99=X<*6wy!-iCOO|8i$E7YU<}dAej5l1(Ms@e{Y)VI%<;8`gGyI;M%hG zywEdp{)~XA=q)?%P1`>m?Tkgz{D2B#P&}fdDuAe&U3W;pA!76yT%=-y#GvMSvOFDSkVrXE8P}9eBRXiev-4}`mu!dQ z0|%-di?(=r48&R)uTTy(-`hvD270NV5UsqHAz^fSe+gwJX#V;hfG_avWHdO4NWG!_ z;f~=La^%MPcXHL`yg#H+){8+8bep4$OCn#YK6nXcTsdk-oIBRuV)JU5`9Xwy41UvY z(7S7KX(?m5{&m&X!vX{Mk7dnPnu}aa`-I8o(T~=N(c80n1G~xfEFuF)Z%M-hEe!HR zqB&h3mX#;|aw8*v2Y;;7A0Si`&>eBfVfHYwvjXnuMS4&XXHA2EE{N*D-_aOW@htS% z`o`Inp{(K_5c+52_*tf&m3y>iIbn+i2jsBS7_8g_#a0OxF%OC}EZF(xXzB;9B`$03 z_yw@1XYPTVSV>ZjviG^Y8NV|}v)h`hpx|7WOP=O~%+H63887CcfNleKN)w z*JQ`zTY%;;rB2Prv9<0slXpW3X7)T|LqsvBGv)<3TfHPhGH9?LiUlB98HV=YKH> zifq?uvxGZrEaGQIDoKKfhZZ^YkAivza-N?4EJRqZSCV^7eN<@wQg6-A-9f#Q%B4b8 z?IJioi~WLaz0)jxOjr@LTdSOK4;*s+jPKW%$gQ1qS~`yGNcQPxh2P2h`uO~9tw{$?z4^X;8J~I6+IMsEocu7`C+Lpzck;f^K#)NB@P;E~iP1gKqSJK`Jg*78 zJGDl;{W?W@IZxUU;_bhqeHTccA6Yynz{Q>~|CL(`*N z-GwpcUVQ(p@l=LId$YWKy;Mq)U}MO5In~0H6UX=O=-_YcM(| zOO-?C4O>*Z498PcJ0N9+cv}C&_*+BJ(H|>7#ebSnItwZKEgxdHZOe;d>G`>DjiR*m z*=6opd~WUaQuS!SYc@vI{Fj<(vdODwvPKa-aAc&c7)e`$!}&?_?;7gejyp#?tTwH0 z`v)~!%dOA5p`J?EsbY@HCN@xur%TUYhOMWpD>Mf^> zztPg0nDQanX~82|6)A1qYpx`<hB1q0SL9?FF#k4~+G)CO|9ZU$7X9!w~spayWHZ1`fD27W@iyT`2Am}%9 z5%&1LZZOWtIv<#x06TrbkKscngfbu*)w9b(QF$F;>fp{bMM6=iSNZmexhxr^wc% z9?mT-!)9k*PpQjwGeWaYT>gq8#9d46iUz>mZA>8 zA4-a{UC}b&S1)3r94tJ}SDCyvu198%x&;`eAyUmZA3Qv*=rbIlQ!iK}0 z!cxd*#fT2mB3ufFB=z27!Vl*$dX2o7PFEU)pHr1t7gbURq0$BF9qJ80noc!T@V(gi zy30ZpeMT^mDCmF89?u-n%R5deW77sx?Blszpcaxd(9g=Bqm@{w5tujps)Bc5CEi1& zdAM89zn*s-IcC-eN$X}B{G$aDS7My)Cy!;ZVJW73NL9-$(?i+jcVOO8Lur!m9|U}* zL=_cr8G@Cx?Ya@-YmnDAF^}mtaoiJ&Jq4urAdGU;v!Rb+S-Z7h6AjHBabgx*c|de1 zAl#WF1z8DGRmlSGZVo|Al7#%A$neUs9qRdH3RkHwh8&O;OhcKM=q()_=$RHNlv(Ky zjMHLBLJb6}r&JnuPKcwWG4UT$(r+Mb(0Y_TD4}ug>dwP-SkNwihg^GI z!2!CQ2y+Tt zp$xkQkB6C&m%FxMjmzg;`)vLid|3+7u>3SM)+Qy4h%z~-F!dC+aFZTlJsHkedut@p zCw!B)cNj2hr7SxyT4Bekn z?i0HwxmH|pi@4%ban{I%wZ>ZNWMpY$*=M5QEf|5hS9gqA5@x()h&KL12E=O9#*VVx z4>-vabQLgFK-uHTVJgH{n!Vj{8VD*jYR(ttPJGB!!p56+gG4rqALzSA((M=TRMcMI zA%wM;cew+?GJQE6Bx+KoT^5z2Cw+Yo4P%jv0lbOqt|pK3ImY6SvEq(4sG`vasLb9M zX)1;r84)gS2v#L@3065IM}N|m@_`zCAfJ@#P8>};tb+DcPS7lTlWqqGjj^`}>$Tqs zj*D~s4R_}`MuJByWL^g)6bZ2!5=Y(jdNroQN+VEVA>$M)~Ysz4$;~FV&MkGmdl{RY(1i2^)j{iPRd@u-x6L>r*jw=oESmk@xC7 z-DC{I(pO)#X(*Z8!zqjzG~H83m3XXt>-vunAqeHLytg=SOSqx~2`aAG7E4yM^$ zTMO){nwU9VU9Qwby_#W~wOWj<(f(qcbDYkco)32li8WAzHv#-n-$fI;BOutR%shcf z8L-H~T$aj!$V6OS8`wWmGTRu`oYH}68eFV@j?+arFpZJ2wkvuhtjmP|F317=%ynQK z8k;NSvWS@|%jOkKLGWbE1I(V#6#)WjOF283t>L$h zAO@cpQABV_s`TSXi+V(cCRn?N<+SJKf$%PcOn5*hJ)hRnKmI@MU3XAaTazD#Fo5LfkTXM00)vj^EJ#M8=nU7 zc-CBY$Q=db`Ga6pz?&~LEe?vi$K|t}PJ8{4h#L^=|J~OC0$mC&^O)b>A>HIvRb~Y) zH}60z4|$d2v-p-tY@AO*tDv!2G`aN(-XY#MY$Y-}ErtQMMV?(oU3u$`z9G}KIIbR- zWSKrc5l(i^vZ54IXISr`9P zDBR8d~8RGj3aGnuLm>-Z30Y#>nD^R}i+*|!r1q{l^HjVF7`6Oe= z6!bJ}@Eao5V2;4dRyHQ*H=Rg`phuCZO@F^Kp-isVa zCvYKCzCh-hSwv>jVZN`-4_%qce#2M>y3%o0WMXcqHr+AWH7nH z#7CN2h}1sEtw`pce2eWxE7MV}8`gkM;gs&_&GM4QmhNhMO3|?k;9e<>52wYraAK(R zKG0GiH-&+Q8+C6Gxm;KqXl+ECmujaKLPm!J-0>o+e6+z-BbWFX6Y>g>c}(P3pgjr~ zh8WGjKFrXndG{1*0#+5k9^QU#Ps5&UDld=C^ak)IAAC<02g~&Y+I{d6WYbI|IDQe~ zA-Zerzl?&!4htY%%|^fQW&C``@HkNT^2i?fF)2U$-TNpmePn)%P?v<-pWChY0M8!5 zsu%THkln!1y?r_uiXnOP`s-f+I_;Y2go13=gfO^jLLI!!9KvIprm;`gU^pll16A#$ zpGbEM^gT+HqF}nXu0$+qQ*M4}WL>;_dw2%UBvUEMMs(NFga2NtSQ8-+o|iih-56Mb zZzZ?J7hIivq;+6%LOgYSOEx9lxMf{&`@0_9)jOr#-K_Chyz_IHx(Cr&h`{))ej2=W zuXFm|3KzLFSwW*5^NtRgJd^v+#;%yxBB_X8{!H4|mYDLk^siiG-dVCNg;W}b01k&` z>A^e@1;iyK^y+OLAL9sP#0necSbkDZeqK^VXAc@p_P%*(&WP!8r}a_DO>?OnpJCI~ z={vjC|2{~NZSke#kRKmD?H6DbJHiM1us$`z2chLpsm}?npNa*FyUC!C2)7|M*#6x! z8a%!LWl8$o$mpZ^X4R{Pw~g7n-T2}j4hAh9KmL~V(hrZ{I0?Hs7JJeyAybVCxt7fc zlrIyOOJ`a7|hek&{ zu{I#EWOZtD6NgGb_srb4%hMN0^B`&K$3ul3gRBgyaN@c}k|NZ)U?kqrTswkaXD>6MxYSUvAhceg&9=ntmATb?BLZsv75i2D{|ue!O!zrcA>K8#W= zod~e#J!gu70DfMs(wDFO&{(>@E+rAqlh|HxAp19e^$m!ai14a~7?1UNIaWYAhBNNg z$C!R(2-+MJ67@Fs{KiooAPEdeh|#ADp zA(svXGv98ZS%aav0-Y?mVrOe2t!O+8GndybIHbb+_SVeC`koOys8V-s@(^Ku_r9wm`NZ@{+)BPhFh)a}x;*?Sd=*wmyA`Xl zV!j^NCtg{598K&G;;C8Iii!oB(uiJf6{DyL{;^HpWn(s>BhTGW&9XHfdJ`}>WYe2E z!$i|NoT@ki9(X_hrWD^TrQNAUl>4y{9hd0tEh?@asAokb4u+hBe=|?js%7bG?plRI zo)bGUn{z_8V&lFG(j*mdF!3=INA!CKCF_H>ms?bNbn~Xgg;xq1+KgT6386!8pRI3T zpiVe5icJRBJ}%))R&VZpLX2Gb<|C8q*|@Gx0f2O_1S}r*l$riSo=zB655+a7XTp-> zkbFj5M&s}`C3^$5AinS$c>DId0Ss;f9)~!oC(snU!1;mbJ=zS32*=U{i}Zdq%v%Q< z{FJp#*7lpo>Bi}$k0mzt*&{9tkRcSDo$tcnl5J70FyzEl_kH$P+NQW`NInFQSfWq; zNY>)>uC>O20Sk$j6Oa;nWfji*X~K!hBx>uv6E?Fpt=eMw;Pzyh8+O!fmWL8O=l7V( zZkB(ts=b!0xRW0jkUyv}QLw%Wm;6DIQeqz+)TE}^M4s=eqW}=B}Sv; z+#kJaUu^1mMNou+Ao_?5Wa8|EJ9%5w+yjby!EHU0m;s2<)#mlWm}^HbiroMz8+m^* z+1lG`ZtC4V?U(n!RThH?2eiKcZfpkZ;z*9jY_OO4d%k6 z_9Cfeqgn?(%R~H(JIx9M=*s59_sTaA#bhiHa?rG7mUA2#pLU-}-5UpweWu>(mC&4= z>n&9df@s8|O?mh{G!&(?xuzi7@LC(js9AQ6iCY<*IuJD6e)r4wQQOYk$71!lpGFqb z6CCQ!v$7p-R6Lp1_b52lj3KX0oFmgT^1$k5wf#H^>IrmZ7`_Lqcj^(Ul)7cPu<#hg z=pGcEEATF$K z^J92Ka)B&G^88^_mu!HE!?yD>1;Ns^U5%3t#pq2UUr43)B2ks6t<|CiRAgGmJ+};? zzEED1^EeeXnEJNFOD1yhX#uJXKozRk@B9!0)NzVdDqfTt5oQ9e-qN^*_@wyXf#Ewzs9EK0WleJ&I z%2S#>!BHbHZe7MHNKGBX68>e0>Mc^&1xXo=b}mMbaC@8Yb_3n&+3bappF)Cl8^)|V zDwslanlys)J1~}u3oc<`jrS9r?PSBXhC@#_U1xR%?j4!ncR@<%7pF0IU{C6cEjPDn z*whp~*KyVqs$V5{2G82tT^G}7Pd-+s$;&~#j_KZZaI;G%yXtAw3mI*y0EtwNR%b?h zyd}eN0M#r$kN45UC)z%VeBm3>^y&(PJ(E$^{SI*dXCkRx&W{AAK}a{ln5qR^^eCL* zXpONMTjLB*nYnX4!x}|pnGXvuS=i!l(Gm52D6vVdt2IhRpg?aYSX@stSG@0-DPE^9 z+~adfndOQ9IYDC!R$-ftYob?+XvaCqop@dMF`-Qr?(yPWUc5uG>gFqem+88x?jBwY zBwYjjoL$7-*A8;#0i%RWlhNUtPu$jfZnoStQ->wO^By=WL=Y3gd!e_rq8?$5> zd^%t8&3{34t1f---t|U05|Rgt*I2yGDZTkuN^Xklw-Qt7>Qqu~ca2cQ`8vUY z4XA-AV3nF!6Q9*)&l@?;9}3ke&`5bXzr#8^+rgY$Y4%oCF4}?*gGp3dMV1?rYdTPD z#;a08hn>}P_?(=I_S}dO_^K8ul>_J(pzs&qs@6q?_6qEphy+ATLPShV@F$!w0g#B0 zm_`=Bb;GB&j)a!U8y=oQXJ~91!N4tPWP+k+lycyamMI)lu@4PPF8I&l79at^pT#X+ zhw=N=QDwnub{2jfc$SLP1(04N|5Ol&51U6;Q}8|wU%`5!_4Eq9K_$|E8y~36_HOJifuRDA}HeZ)nj1p?on2|s`hSZyhu^HDv~c! zWhjO)6qFHO0wIROGW1REJVX*3`h~v!BZm|2FEKI~4LCtJG<3 z&7S=!ma+s2oduPI7xriA!ZS8l6OB!=>OP2H{i$bZDwoErq*k!rzw#FTUp8PwdA!_) zWxf0TF?GsHd156YzZ3WYOR(|Jy_NMF=db2g20yzW*?$Os*Udw4XNq7F^vAS;fO34B zed0M9dn9bu(i&b8KV@x~X!sK(`XOVcEh%r*i=fnl?*`gA?5QQ z^#hj`;zjzHdk2=!Smfd5_B~sAW9Tq7i*?$F497w5nzGC0=PnVyk5211_j3>uw}2Q@ z1y|8#R`R3`zY+_jl7RqeBHIZfzvW))R^zGcj36QZ0GF0d@1 z_>b^gdrqL4a`VMi@@xqQuV4kWrMF*XHIdfRz}R+sj#Dp@zOKG4mcNsmW{nmx3E5$R zs!pKx!{h27uM=%*{jA6B=&wVo&Jks2=o<^-G|vVno_tudH^Kgo7TfWumKbZ-=dmA7 ziZV;Pb`xf7t&ZEx#qR_py{%6ujgBNAblGriWR@(%f9fm^r?QL}>+LE!o&AwP{i6<} z7smV)%YGsi@wXju_m4y?`Ka=u@!lY}zQy+?uNB}QW*_SW>Dezf@39nZ+fPKcsQfRT z^MkG7@ih~zSIFa$1m9ue94RQtThqh+V<6^R2*3nCGEXk(A*O?)nfw`X>QR&_YWwAn z%${BHlhx1F49MPho)cmn2M%y;4dLa)nR{|Yh_q$sGhCW0TzgQWvtl?K?6WDoGm8q=o6m< z^1rd~nw!NbF%;89I};jW7w0`|oy>?IsfHZ{Mk*>3{H5xHx&c`KO-j1&OTOe5a*RYY zysA0o)ydfBP9mDqVS2>$p@DtDZU1cCKP1@2_w(=iYC*3`3-v4I0U1B7q2rd4H9|QQO3Nr;R>musi};*{zlykZHX)f4(~6zJP47biYBR z&ejVvJNtAw7RCBN6X#W*qrPhJo+zC3y!UoN{Q1bCOw?Di1=lZT)g5@dE4+gIm}1<3 zbPnetbSHW)DsLr;^u@8|rNv(t(a|opITR28pIh%j<3}I4G1hVePn%sgf2*IQbroVY zgqD{9OIVJeo{PIM+O;8r&kGi6T@RWHykJ?*c{*wjlUKb8<&7~@t&5{=M9`2nqjrYeXRoNc&4bKL~b z46|ZZPP*rvv%=epH&2smrEuC$B13a*Q#h4-b-2Xs?cS%iI(xAZA&}+Fv1iy z$~!sZdZNACH2I41japVy%&cyp<60b<>UY}pZJD5Af4s*y;w$$MUj5Ol+qFJDRAG?c z=oB`}|C?E8ZW0wdB|Y#1zcYq;H9q)f!$HbvzcEGmJKb-Ti(v;E{>EQ~`MSUH0N2xh zsY%yHz)LVU-hbD0zxUugmE@Y)OB16e9rv}%2&|d)FBr^Ch^&Zq8aZ@0?st!Ax zLB<)2@gD)7Mf^_Tyx{rmobFEjj=i(u%j-LC2D1h>{xYT8rEg&1i6fJ*)ZZny_r^Wl zk_q>ZYT6jus^#0v4si{MVU@pqOmo-`(CAZ*3hPtLe~-vl3Llq)U3uReQAF6e)*s-d zY595eP~Rl!>4VDYXaR4P1pHcKffCZu8bBq zd-|gELff<62VzTZdoO2J_{_^nOZm%h1M=q##?sdYV#(*Msm39fiTe5m<|V;jZR3x- zf9HP73x8^nhBD_+WiS}}qDW(Mn1RL5GlN7uTx!ed{XqHpKZxYnVG1ZyW0Yzu9IpV> zPLtZr6zuuNV&4D;?Qni}NqWeBX=Y&bcM?;7M*UO8^}1+M3;1LII3%aNos1!y&n=1d zPXEKNf2qQR6etvyq;qG=;t6mPb%E7pNcWlyf}MogG)(;b9C%XI>+_a|*8W+987c5u zxa3a}-Y<76h&bp?!_}a>4ILS8y_X&Yh&^BG9pAG$=sv?s=+@yyGvIC#7YDzl{{y~^ BBaQ$7 literal 0 HcmV?d00001 diff --git a/index.html b/index.html new file mode 100644 index 0000000..413a11f --- /dev/null +++ b/index.html @@ -0,0 +1,205 @@ + + + + + + + + + + + ts-blank-space + + + + + + +

+
+

ts-

+
+
+

blank-space

+ + playground + + + +
+
+

What is ts-blank-space?

+

ts-blank-space is a fast type-stripping compiler that converts TypeScript to JavaScript. It supports a modern subset of TypeScript by erasing the types and replacing them with whitespace. That's it. It is not a type checker and does not perform any other code transformations.

+

The underlying technique can improve build performance and simplify development. The implementation is pure TypeScript. It is simple enough to read and understand in a few minutes because it is only 700 lines of code and reuses the original TypeScript parser.

+

Type-Stripping

+

The core idea is to use spaces as a substitute for type annotations. You can think of ts-blank-space as a reference implementation of this type-stripping technique. Much like other compiler techniques seen in the JavaScript ecosystem, such as tree-shaking, it is a reusable idea that any TypeScript compiler could implement. Some already do!

+

Let's look at some examples. If you use the classic TypeScript (tsc) compiler today without customizing any options, you'll see your source code undergo significant transformations.

+ +
class Cat<T> {
+  public whiskers: number;
+  public tail: T;
+
+  constructor(count: number, tail: T) {
+    this.whiskers = count;
+    this.tail = tail;
+  }
+}
+
+throw Error();
+

is compiled to:

+ +
var Cat = /** @class */ (function () {
+    function Cat(count, tail) {
+        this.whiskers = count;
+        this.tail = tail;
+    }
+    return Cat;
+}());
+throw Error();
+

That's because TypeScript is performing "down-leveling" to convert your modern JavaScript into something that can run on older JavaScript engines. Because this moves the code around, error stacks and breakpoint locations will not match; so sourcemaps are also generated to correct for this.

+

Let's try disabling down-leveling using the tsconfig.json option target: "esnext":

+ +
class Cat {
+    whiskers;
+    tail;
+    constructor(count, tail) {
+        this.whiskers = count;
+        this.tail = tail;
+    }
+}
+throw Error();
+

This looks much closer to the original code with the types erased. But the output is still visually smaller and occupies fewer lines. This means we're going to have inaccurate error stacks.

+
// Original source
+Error
+    at Object. (cat.ts:11:7)
+
// With TypeScript's output
+Error
+    at Object. (cat.js:8:7)
+

One solution to this relocation problem is to ask TypeScript to generate sourcemaps. After all, debuggers and runtimes know how to use sourcemaps to translate the filenames and coordinates used for breakpoints and error stacks. But could we do better?

+

Yes! Here's what the generated code looks like with ts-blank-space:

+ +
class Cat    {
+         whiskers        ;
+         tail   ;
+
+  constructor(count        , tail   ) {
+    this.whiskers = count;
+    this.tail = tail;
+  }
+}
+
+throw Error();
+

This might look a little wacky. However, by leaving the code coordinates unchanged, we've also eliminated the need to generate sourcemaps. There's no encoding and decoding locations. Error stack coordinates are always accurate!

+

Finally, we can teach the JS engine and debugger about the original filename by adding one line (//# sourceURL=cat.ts) to the end of the JS file. This magic comment is part of the sourcemap specification and is supported natively, so we end up naming files correctly in error stacks with no loss of performance.

+

Build Performance Benefits

+

The typical build operations to emit JavaScript code from TypeScript source involves:

+
    +
  1. Parsing the TypeScript into TypeScript's Abstract Syntax Tree (AST)
  2. +
  3. Transforming this into a JavaScript AST
  4. +
  5. Generating code from the JavaScript AST
  6. +
  7. Sourcemap mapping calculation from the generated code to the original locations in the AST
  8. +
+

ts-blank-space replaces steps 2, 3, 4 with basic string substitution on spans extracted from the AST. The AST is used merely to discover the start and end points of the type annotations in order to shake them off.

+

Skipping this work is what makes this a swift approach. Additional time is saved by decreasing the number of sourcemaps that need to be merged during build scenarios that involve a sequence of transforms and corresponding sourcemaps.

+

Build Performance Results

+

Here's a micro-benchmark of what happens when compiling a huge TypeScript file (52 KLoC) ten times using a variety of build tools.

+

a bar chart comparing the times to run the benchmark. From fastest to slowest the results are: esbuild, swc, ts-blank-space, swc/wasm-typescript, sucrase, swc/wasm, esbuild-wasm, typescript, and babel. esbuild and swc are categorized as having native binaries in contrast to ts-blank-space being distributed as JavaScript

+

For the supported subset of TypeScript, ts-blank-space is 5.6x faster than tsc. Today, it appears to be the fastest emitter written in JavaScript, and it even beats the Wasm-based emitters. Credit for this speed should primarily be attributed to the highly-optimized TypeScript parser that is doing the heavy lifting. It is also worth calling out the impressive speed of sucrase, which is also written in JavaScript and is only marginally slower even though it supports additional syntax.

+

Performance Results with AST Re-use

+

At Bloomberg, we want to use the TypeScript AST for both JavaScript-based analysis and emitting JavaScript. This means we are already paying the cost of generating the TypeScript AST, so ts-blank-space can operate on this as-is.

+

Here's a similar benchmark in which we measure the combined time to (a) emit JavaScript and (b) generate a JavaScript-accessible AST. babel, @swc/core, and @swc/wasm have APIs to produce the AST. sucrase and esbuild do not provide access to an AST. For these, we fall back to using typescript to provide the AST.

+

a bar chart with the same results as the previous chart, however with AST access overhead added to the times. Now the results from fastest to slowest are ts-blank-space, esbuild, swc, sucrase, swc/wasm-typescript, swc/wasm, esbuild-wasm, typescript, and babel. ts-blank-space, typescript, and babel have essentially no AST access overhead in contrast to the other libraries that have more significant overheads

+

With these requirements, we've found ts-blank-space provides the fastest overall results.

+

On large files, such as those used in the benchmark, we've seen Garbage Collection (GC) account for up to 17% of build time. With internal benchmarks of real-life code, the file size is typically smaller. Here we've seen ts-blank-space go even faster, with GC dropping closer to 3%.

+

The full code and results of the benchmark can be found in the perf folder of the repository.

+

Development Time Benefits

+

Simpler Startup

+

Debuggers require sourcemaps to be loaded and processed before app startup in order to reliably set breakpoints in terms of generated coordinates ahead of first execution. Eliminating sourcemaps means fewer moving parts and potentially faster startup.

+

Faster Errors

+

Avoiding sourcemaps can also increase runtime performance with respect to Error stacks. Node has the ability to toggle whether runtime processing of Error stacks uses sourcemaps. Node includes a microbenchmark which demonstrates that the cost of reading a mapped error stack is approximately twice that of an unmapped error stack.

+
> node benchmark/es/error-stack.js
+es/error-stack.js n=100000 method="without-sourcemap": 107,059.95251565645
+es/error-stack.js n=100000 method="sourcemap": 55,918.729592805634
+

Resilience

+

Bloomberg is a heavy user of sourcemaps, and we have some engineers who are helping to make them even better. For sourcemaps to work, many different tools must perfectly align end-to-end. This can lead to them sometimes failing. With ts-blank-space your debugging experience will be based on accurate locations even if your environment is misconfigured or you find yourself in situations when sourcemaps would have been inaccessible.

+

Maintenance Benefits

+

The default parser used by ts-blank-space is the official TypeScript parser. This maximizes alignment with the upstream TypeScript project. Specifically, this means that it should be trivial for ts-blank-space to support any new syntax that is added to the TypeScript language.

+

This reduces the effort and compatibility risk associated with maintaining another parser. It also means the project benefits from any performance or correctness improvements that are made to the central TypeScript parser.

+

Beyond the parser, the remaining code is only 700 lines of TypeScript. This small size makes it easy to review and understand by TypeScript users.

+

Limitations

+

ts-blank-space does not support every TypeScript syntax. As such, it may not be suitable for your needs.

+

JSX is tolerated but not compiled. This means it preserves the tags in the output: *.tsx becomes *.jsx.

+

We refer to the supported subset as Modern TypeScript because it represents nearly all TypeScript syntax, except for those TypeScript-specific features that may be considered legacy or discouraged in some way - despite not being formally deprecated.

+

These unsupported TypeScript features already have preferred alternatives:

+
    +
  • Prefix-style type assertions (<type>value) +
      +
    • ...should be replaced with as-style type assertions.
    • +
    +
  • +
  • CommonJS-specific syntax (import = and export =) +
      +
    • ...should be replaced with standard ES modules - CommonJS is not supported.
    • +
    +
  • +
  • Instantiated Namespaces (namespace Foo and module Foo) +
      +
    • ...should be replaced with standard ES modules.
    • +
    +
  • +
+

The following unsupported TypeScript features must be avoided when using ts-blank-space. Unfortunately the alternatives are not always as concise. We would be excited if more powerful and coherent alternatives than these were to succeed as JavaScript language proposals.

+
    +
  • Enums (enum) + +
  • +
  • Constructor Parameter Properties (constructor(public prop) {}) +
      +
    • Explicit field declarations and assignments are needed instead.
    • +
    +
  • +
+

Note that ambient Namespaces and ambient Enums are supported (i.e., declare namespace, declare enum).

+

We've successfully used this TypeScript subset within Bloomberg for many years, following the clear mental model that TypeScript is JavaScript + Types. During this time, the primary unsupported feature that users said they missed was Enums. Most of the time, that need was appeased via the alternative patterns.

+

Getting Started

+

ts-blank-space is just a library that transforms strings. It is a single function. It is not a CLI or toolchain.

+
    +
  • If you want to see how the code is transformed, please use the playground.
  • +
  • The quickest way to really use this library is to use the example Node loader.
  • +
  • For anything more, you will need to integrate the library into a CLI or toolchain.
  • +
+

Should I use this library?

+

Only if you want to. While ts-blank-space is battle-tested and used in production at Bloomberg, the idea of it is more important than its implementation.

+

ts-blank-space has a singular purpose and a limited scope. Many users will continue to be better served by existing tools with more comprehensive scopes. And who knows? If those tools find ways to make use of the ideas presented here, everyone wins! 😉

+
+ + + diff --git a/node_modules/prism-themes/themes/prism-vs.min.css b/node_modules/prism-themes/themes/prism-vs.min.css new file mode 100644 index 0000000..cdd6d54 --- /dev/null +++ b/node_modules/prism-themes/themes/prism-vs.min.css @@ -0,0 +1 @@ +code[class*=language-],pre[class*=language-]{color:#393a34;font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;font-size:.9em;line-height:1.2em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre>code[class*=language-]{font-size:1em}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{background:#c1def1}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{background:#c1def1}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border:1px solid #ddd;background-color:#fff}:not(pre)>code[class*=language-]{padding:.2em;padding-top:1px;padding-bottom:1px;background:#f8f8f8;border:1px solid #ddd}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:green;font-style:italic}.token.namespace{opacity:.7}.token.string{color:#a31515}.token.operator,.token.punctuation{color:#393a34}.token.boolean,.token.constant,.token.inserted,.token.number,.token.symbol,.token.url,.token.variable{color:#36acaa}.language-autohotkey .token.selector,.language-json .token.boolean,.language-json .token.number,.token.atrule,.token.attr-value,.token.keyword,code[class*=language-css]{color:#00f}.token.function{color:#393a34}.language-autohotkey .token.tag,.token.deleted{color:#9a050f}.language-autohotkey .token.keyword,.token.selector{color:#00009f}.token.important{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.language-json .token.property,.token.class-name{color:#2b91af}.token.selector,.token.tag{color:maroon}.token.attr-name,.token.entity,.token.property,.token.regex{color:red}.token.directive.tag .tag{background:#ff0;color:#393a34}.line-numbers.line-numbers .line-numbers-rows{border-right-color:#a5a5a5}.line-numbers .line-numbers-rows>span:before{color:#2b91af}.line-highlight.line-highlight{background:rgba(193,222,241,.2);background:-webkit-linear-gradient(left,rgba(193,222,241,.2) 70%,rgba(221,222,241,0));background:linear-gradient(to right,rgba(193,222,241,.2) 70%,rgba(221,222,241,0))} \ No newline at end of file diff --git a/node_modules/prism-themes/themes/prism-vsc-dark-plus.min.css b/node_modules/prism-themes/themes/prism-vsc-dark-plus.min.css new file mode 100644 index 0000000..19d722f --- /dev/null +++ b/node_modules/prism-themes/themes/prism-vsc-dark-plus.min.css @@ -0,0 +1 @@ +code[class*=language-],pre[class*=language-]{color:#d4d4d4;font-size:13px;text-shadow:none;font-family:Menlo,Monaco,Consolas,"Andale Mono","Ubuntu Mono","Courier New",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#264f78}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;background:#1e1e1e}:not(pre)>code[class*=language-]{padding:.1em .3em;border-radius:.3em;color:#db4c69;background:#1e1e1e}.namespace{opacity:.7}.token.doctype .token.doctype-tag{color:#569cd6}.token.doctype .token.name{color:#9cdcfe}.token.comment,.token.prolog{color:#6a9955}.language-html .language-css .token.punctuation,.language-html .language-javascript .token.punctuation,.token.punctuation{color:#d4d4d4}.token.boolean,.token.constant,.token.inserted,.token.number,.token.property,.token.symbol,.token.tag,.token.unit{color:#b5cea8}.token.attr-name,.token.builtin,.token.char,.token.deleted,.token.selector,.token.string{color:#ce9178}.language-css .token.string.url{text-decoration:underline}.token.entity,.token.operator{color:#d4d4d4}.token.operator.arrow{color:#569cd6}.token.atrule{color:#ce9178}.token.atrule .token.rule{color:#c586c0}.token.atrule .token.url{color:#9cdcfe}.token.atrule .token.url .token.function{color:#dcdcaa}.token.atrule .token.url .token.punctuation{color:#d4d4d4}.token.keyword{color:#569cd6}.token.keyword.control-flow,.token.keyword.module{color:#c586c0}.token.function,.token.function .token.maybe-class-name{color:#dcdcaa}.token.regex{color:#d16969}.token.important{color:#569cd6}.token.italic{font-style:italic}.token.constant{color:#9cdcfe}.token.class-name,.token.maybe-class-name{color:#4ec9b0}.token.console{color:#9cdcfe}.token.parameter{color:#9cdcfe}.token.interpolation{color:#9cdcfe}.token.punctuation.interpolation-punctuation{color:#569cd6}.token.boolean{color:#569cd6}.token.exports .token.maybe-class-name,.token.imports .token.maybe-class-name,.token.property,.token.variable{color:#9cdcfe}.token.selector{color:#d7ba7d}.token.escape{color:#d7ba7d}.token.tag{color:#569cd6}.token.tag .token.punctuation{color:grey}.token.cdata{color:grey}.token.attr-name{color:#9cdcfe}.token.attr-value,.token.attr-value .token.punctuation{color:#ce9178}.token.attr-value .token.punctuation.attr-equals{color:#d4d4d4}.token.entity{color:#569cd6}.token.namespace{color:#4ec9b0}code[class*=language-javascript],code[class*=language-jsx],code[class*=language-tsx],code[class*=language-typescript],pre[class*=language-javascript],pre[class*=language-jsx],pre[class*=language-tsx],pre[class*=language-typescript]{color:#9cdcfe}code[class*=language-css],pre[class*=language-css]{color:#ce9178}code[class*=language-html],pre[class*=language-html]{color:#d4d4d4}.language-regex .token.anchor{color:#dcdcaa}.language-html .token.punctuation{color:grey}pre[class*=language-]>code[class*=language-]{position:relative;z-index:1}.line-highlight.line-highlight{background:#f7ebc6;box-shadow:inset 5px 0 0 #f7d87c;z-index:0} \ No newline at end of file diff --git a/play/codicon-37A3DWZT.ttf b/play/codicon-37A3DWZT.ttf new file mode 100644 index 0000000000000000000000000000000000000000..27ee4c68caef1cd22342f481420d6dbda1648012 GIT binary patch literal 80340 zcmeFa37lJ3c{hB{)zw{fudeQubR~_JnbAm^@oe^N(s&ui6FZB?ah$|)oW&E{S?mNS znSrcMfDjuRk`Tf+gg^-d8f=yVfu zfU*5JAYCl|3ZLhJuKm|se{*)j^UvXa#~D*=2d=wpPx$Vy?7&YlW1)9nv*+d+>0kM4 z@Ouj9w_m&Gnk(M&i%(54o_`F-emQg9E3UsRb=v0{Z~qu$=`M!4^FEx3_vfE~{&#$U zjx2xiW5E#|-Tv!e&0ZQ^`)|w?SKL%Q6ft30_o_<)8V1tM=`|{l%3WztOK8M>tcO zM`hm2?_*(n`*ZeJcwf;h?_)MQi=k@a5RSgYYulBZE@z*u@BRr7TGz%;M}LYZEu9^- zjDG(g{GZa``RD(8)A0Z6_W!=;|GwY{+0UI8hT^v@sXeK=b=5+ zch~Q#zp?(c`cn(=47vVEUgdA&C4Mcp z`Solo{{r95ujW^=H?c9klD&>S&3?x=@VBsAn9o1M-pTIdr}7++^8`P_zQ!JA^ZY&h zc6K*^6TgMu$zR70^4IhG_}%<4`wV|Ie*=^Z8Lc&-6GoT?y(5a2xU7xkSe_NwC2SX) zW|yLNm$6P(WL>Pp%B+X=f&%?)fDJ+;8e+q2gpIPbY@DrwezcyQ!Y0|N>@;=;JCjYZ z^Vtq|0o%#;v8&k2*tP8C?0R+syOG_*Ze|DBt?V}TO7<%DYW5m-2RqDO%l?49p54RV z$nIlrVQ*z`V{`27?0)tR_5gbqdpCQKy@$P*J;dI}{)io6N7)B)&WG5C*&nmV*r(X1 z*=N}o*_YT?*^|(vo??H&{+fM*{S7Glx9nT&@7TB5zp|gQpRu2_U$N)dui0-nAL7G&gpcwuzJ{;m>-Yp;&rjhS_$1%R zPvd9sGx-$X!ng9X(TnHsbNPk*B7QNygzw^)^2_-Z{7Sx`zl>kQXZg$dEBFokMt&>5 zjlYt=iob^6!4L7*@;~5r@q75a{O$aH{$BnNe?Nbie}Et5ALJk6ALbw7ALpOopX7hS zALF0mkMnu{Y5qn2CH`gp75-KJ6#ol$g8du&1^Xr2&GxVvwwled%lRAGb?g=F8g?|XXc_B_w< z)ocat;T^2XYHTxqD}R)KjQ=tJDEk;ckMH1Vc7T74|2cn>KfvF~-^KrszneeE-@#(+ zJl@6rkbjY`{d^~TKSqC&eV%=RS6DmiV83N? z{--?2{ulc$`$zVD_6++c_5=1W>_@D@j12v0Gy50FBf2+M0te(ucEwCfWHmpJ^@}rxnF=^i}ES~Zlkj6&JT_*sJ%IY%$;H|7aE5OE3zFYwOmepS&0M5(m z^gIAOnAL9(05@j!8wJ<~ls5^0L$mtL0^rrG-UQj3by(m8@NZU!wM_sgXZ70z*qta} zDZo!f`6>aPL-}d}9!Gh*08gNNjR2$otKT62dBEz21Rxn${jdO8>-E(z;GG1t9BK{apf(daVA3 z0+4^K{%!$CLRNoJ05Xx)i7o)7Bdfnx0CJMm9}Hqa0Hi#t|A_$PJ*z(|0Ljnle<}bS zfYreV2+#&t{Zj(a3t0Ve0cZ%U{)7N@1y-jq2S96J^-l{xe_(a$ZvdJEtN)n*bP87g ztN^qNR{xv;I|b$E1)y=T`WFPCd$9T!1)znn`j-TtkFffe1)!O*`d0*?qp~I0cbj`{#OFfd073g1)%+~`Zoli z2eJC!2tXrZ^=}G5H)8d_6@Zq+>faK8zQpQ(CjiZf)xRwO9g5ZeUI5w@tA9rTdKIhx zg8(!vR{yR5bS+l@M*(PEto}U#=wGb9AOKB_)t?c7PR8p0BmnJ<)xR$QJ&o1>SpXUv ztN%a%x*MziivYAZR{x;@^f^}lkpQ$dR<8>{$7A(|0JJ?;KP~{hkJbN|05m{W|FHmc zL011)0ceG+{;UA>LstKZ05nBb|EU0UMppls0DBM069Uj9S^eJxpi#2=&jp}cvidIs zpk=c9F9o1)vih$Cpn0*Ot0CZp0Pz9g`vxX)BeV8?L0cggo zVG2M;W{rpdv}M+?1fVywhAjXMnl+*V(4|?!5r9_B8ZiOr*R0_RK+|RoPXIbMYs3Yh zeX~YF0D3rUBn6<6vxYAK-JCU20?^V~BP{@Zoi#E74D@ZZ34mm*krm)XznlPRX^p%9 zCwdeFIMJhBfKyvL1UR*?Q-D+ZiUOS4*CoKIO(g+N^(_mK2fI-b;8d?}0Z#Sm5#aRv z6#|@|-z&iB+&%%avm5;a~5I#4-hw-@yK7!9p@KJnj zf{)>I6MPLmR|WW5lr;gq4&}H2pFp`-QE|kf0sd)}M0bFH5hc+b;9o*XbO-pCQNCJ$e+A|30{p8esXqYz6iVt30QNg; zP=5fhC5fGVLWy0Dlx~ z&@%vdrdZ=C0Y-KH3juhmSmT%gqkBFr01p;xd|d#(EY|o-0eH1o_E_V%0DOF`LEiy*`&i@0 z0`U8>#=i={1IQZB3cwf08b1+$SCBP+Dggf=Yy3=r(eqCTkb>R#HvxDLS>xvd@FTLu zF9aCT=9dESEwaY11Q?Bl=L9HAqVa11cph2fHv$yTZ&3RIcq3WkcLEgsZ#*vm4<$W1 z0DP6~I2VA|k{y=>;J;+YLjv$*vg5J<`wGgi0H+eqBf!tej^lX*cs$v0JdXh1Cp%8h z1KDL8Hlz%$B@M+Dd>P+9`;ma^lv0Na8xD!})kbOhi_WyfOz?CU690Z#Yx z1o-<1y6kvCfMM($Zx`T12aH_;yuR#srvUuF?08Xt-Hx(LfZvR=BmnO) zJ5Kcg;3sCsD+2Hsv*X`|0G0{n9*R|xRWqU;r5RL?#EegVpU0eG9)@c{w&o!Rk0 z0rmvSl>(f`1(VB* z59(R{8^)c+G2`c^W^Ob0n%A4JGw(OQXFeB+L{gEl$ll0(krUPmYr?wHy4U)RJz(Ev zKWcwHT8`cx{i-85W#SoH}^|ltz1{J6ycWMV{#g8riLu08i4)1~ z$w!mNeaG+iYyKJjc7MNrqyIoEl^RNINj;D@(qri}(s!hvO8+L4%uHl1%FJXQ%6u{N z!?tYONZTjdzMnO+JF_=t-<6%uelM5FjpcUc?#w-&`$1mIugqVPKb)U0#0ztUuNIzZ z&$Qp%{&+{e<6y@lopR@a&QEqeS6p3uPx14`XS<}XeAh!=pY8fi*Dp(_l@6C4EB&Cn zv;1UbvT|?bvF=*;bocjrZtgj;;+`QIaTV8wG+MCyYXYF(Awye8(-NWmSPq-696PqV4pSW*ge&U(+ z?)sOnzi0h3r=(7~{FHl7d2)laVRFNb8@{~Zmy_km-IK4H{QPA7)R|L1xUp;FwVTe} zbl0Z&(>hN(?X)~5a@NpU_n-CEvwpnww5@x$&YZpC?EB9CtrtFb(M1=1{bKFn$&250iF3)0OFqAA^RzQPFumo{)t4T)^o~o9 zT>8`9wcR^+-?jVLp6NZe?|FRBb9?i9H}5^L_o2&bmmRq5{>#35`P}87z2cNBZoA?K zSK3#eaph;Od~V;wzT5ZB@0a#(-T(0ZC$EZM_2H}K1M)SGU-N@&jcaeb_TAS$dF?aT zIoIvI?!N1unYn%D@tG%QzCBZ)d2aTi*#~C7{qnAtU;XlLze0Y+xv%)v_19nj{_B5! zL-!4r-|+Yizq#>@8~5M%?VIv9?Y`;po4$Q>>gJ6%zx(F-TW-JQ*@JJs)wp%*t&l6^ z!=~std;u}|cSlG+FO3ZFPMas<$pTLftw-ol?W|NM|Mb3L6r zWY|u^h~^SXNb1}vYnGdg*_vkSUR<;PK#oOpGc2oNgL5;U$z?oK(KI=1=#g01jThIR zv9{>V^=#_y-qh2vHeqBkMq=&WlxoCmBWxyYO;6pe$6ZU;Y&Q|JWn61t%(&?t~N9k>5 zhWfKvPYW@FB*|x9R1^L%{;H$+Q*l{B1uDhFFn3Pqx}hI4bUpjG3s29NXJ&X>uNe>O z`h!Mouv|VmH#ZBG-g>?ZzaFG?)mJN{cpI)%{e)Vn*1D})&FY>P#UT{dxZT}tkK+S~ z1-XG6sPK#Fs1c+^)yMO3eX&v%V@=Skf)Uj@z{OCxqT4ImHLLcq!tlg!K99G8m+l+t zO9yXn?LKgI*{W8fh2cW;ghIOcTN<+N1<&*;LQ$;@j~1&HkfMr#7`GvVCb*wi-eE7g zDaYNH?)t(S;Wt!?yGwO?!84of1dUa{I$BW`dR*{eUJ=7XJo)~mhUCR9U+~PYG^y~> z)^DK2@<+b-nd^CCc+{^}imKmiB%Z1+C-Y0SV;O0GPmLDGf*kZG`f?al9W5p*Yo@Jf zYpb{Q(5_wf)-Qf>YirEH_X_Q>N|X=!p!NGtalU<)w{+f5=)CnD)bfdLN2jOltzY=U z*6v;QE^DjXJP(n@1#v%&o?sk(ZO|ID3SQx^!9gp(e}6$d7uM3#!Fgh&CW`(+{9d@~ zs={UB{QODh1tS@gqwY+OKH%J@IlgwCq=lvHta6)mn_Vtv4a43a(!zM=5-(JV8vNQ@J+D>nd|y=iZEaro_YA%UwU3O_=Ew{q4FNkNIx&Y$LVR>`1wuW{m6l z8C%Z|$r7LP+^KuRx-P%oiX_^iemSPM_pP|l;pSG`O`Udj)b%@P7ziF~fUZ%&^-D`N zByx^bf{GW_>M#b=8Sad?SvHM%!@N@}cU@b_-H{u3L+~sk7Q0X0diLp4kzffg%?VGPodVge|nld=+FITcIic5ZZ?&bX7aNupqkWgz<;29j&seTp2A_M@Pg5y!Ubt8T#-l@P#totE(n(vJWoVxp>Yx zK8C9*s|KWAXer>C!7cq_lJw?06eKXrSxGTeS%SJB4hln&B;B#Vqlt^lp>SA17Nwy| z5)OnymZM8=l_Vt$RetGEa7J(w9`$2cOG$MWyp9vHW+-VTVnWH+%m_Xjn(Qi;rXeR& zbLbur03kPwXDg0IFAMV=hd4bJN4QFdyrug{F|W{>QmkwYY`7&i1pQt`e!KtoC7^0Dvn}!Cjwgs3OA+}6uRJ0Wz;8i4ew+ERTJEq)Ti}HT|c28nVOoLGHUwNq4KUN z*gaDVP;;{SoMFsmJoK8PeO!6(^mD^sXMYLlKRet4>+{fzY5F#_a~fa#=G? ztt?9yM=i)aJ)KSKwqaztik5`i7jXBqgHv$dMc$EtSK1`4&>IH*i$wcj^u}m03rq8a z?k(U2uCt))3zKtm9=SG~*QP+vRmjUallV2M3^`t;aZF`m4Trd*a1PTTm~GQl!vXi1046WQThy+yGe$ z*ZA#zPPdY6xok3`ealR?wM>1O;ZW&A3TzZJVrdc04(lN!mddtwb~r}NQfw_0Qe`G6g&T(VgzDbr%#hI08X^>Q0m{y0fDLvyQq`Gc6fC z1$z!-06h^gE9e#UO*niJ4pFyaFvwa!Qgp1oNj4)oD2%ho_@i!>O-r>4`K*j}9$=32jhEhRueL|-zVBRXn``u#QTq0ykDOA{xUNu$q7`MUm$QOQ{6i6nEm$2czqwwYUFxo?mF5{RqVoo3fRjX$L;U9O!^p z66k;n3LK-3^w_{hgR(;YA9C5yuP{i0Z>L$FWo7KPxy9FJtJBU{R=fCNP<;DV+_Kv2 zFnCbeEqnVrtc+!Ep<~uX^cge=>I@Ik=cvwL{M6#Pb0Ryv{gW$X>01aI zS4dM$BVyU-om|5%QFAWAK+&RUD_5|yNh3j-RO zM5;aEj28ZO6#^m<;ECapas_5GdLf8@Ahc3kyT!5|Oi!-qdd3zdPX{rV;O$Vn6>yz=O=ZtK^ zv4>^D)FfHA&4`+GOi!0%$;3TjS<)cQH+qaCh8M}V4$lV?Uh{vZlOZ5Rw`*G z$}*6I<`P~Rju}U1jhJc1j2iUqm|@%k%LE14@6hz>;(}zfw$LZL5THp1C?pZqG0I1q zSJ3&bzs0s;9+S52A>R$z4aC5~8v}M;=@{)u06x^y;RN31E$A)n?a_SR%729`zk7~A z?EMt{(E9C=H|0(0?l?F_OMWH6E0eI4`p834B{IPv0Ba-_pXf&993^unFkby2l%Rsb z6>#6c&t5rHoAZpUi}4e0GmH%|Tnq#QO)dPoxEHreR@ZG-$;L;ke55p}2fj5=pV$96 z41LNlj4<2`a^0hCj%*9`H5Dt-~%v*OXg6GC))@!E!SOTwK6R*e81xXb?1#v`Azr;m zY1NBtvLb;{v4VJ9I{ndfpMicN{*{a5qdWC5vV2bZ$i5Zd^2Qt zf+vmn6F8y<0TL3L-{bH~`q2b*0ZH-;ZHnTA!*R<{%#^L`c1Dk=W?Rg*^>T0F(v+97 zx)IOg?Sma&GN0s5G#Pem8`_y|WHXLunpUyX4~67-QYqY+y7CI&>h5mwO4N0T*4l`= z27aLz)|NQqvf5VRMW)KOx*MbywJnuiy1s*hsBcs@RX-clH&jTw|89l3)vU48>mptp z)Hr!Y`pPR(h)^!_chosSYmQoVhGDXtj7>-3N%S5T)x770)O+Mqk3lywNBbknAfZ!EEmzWK(FshZEt5zYz`zCv6 z$gVvWn~r^9)ld-R4T{~`6Qnwm)`YtEq3#LjiyM&ZxQlXUJ!BI2!;qFR#B(Ps)LQ3FT|qzG?toOnD?K^tlOR8)8)YKAcY<}At@6*b)}A9aciYUOFTE!;?_)d?E`8ftUSxbVnh zt{?`E@e8G!YDZf5a6v*0097Gr6UZQZs7!fD2US}zyklAY#v*;5)Agyz!#O><(`!qp zgYD;IWB9Q{f@o__eSkh=+&RUqeRf&zXHkxaNC z5hbTk04U>EaR7Y}_`~aPdKDGL{3iE}JA$er(Z!&Q;@fUD-cpbaaPwV+`~;dT^Qld+AvwjmK8r3AI!e z%^npQCxgz|t9ADvS~jqNdmhyX)iM3(gVYMLJ>cKPu37!yBYiFkR|h%bdxKJekNHE3K5?Pdd`MB;wt=kVx>Byct@)9| zgV5AyyKGCgs^u+hisg2>r$?K|^`C3cAmn++VEccn5$8j1 zz*RJs1Rrb3rXsDyt@?wU{)XW!da3RqXVYTm94&7tZwFa#k%(+3cf)jxgvGT-x0JVR z2LYE(Sx)bROV$Tu4()panL~Suq_7fyA0k(`qF#Y#9ST4B*?r+n4norv7&>Dx+%PVn zWCoE)Xd_5IfK3N86hep`VI+!RHx5_fi8#O5SuG>s3w?o; zl)yKQ#@>MJw1}qdptp!NB=JzJTy!i1m+WXrQdLt?BUaD3Jyt|jOjVUa@GOVImQyUB z$+;2fI;|^$Ot(n9!&PKiaXaFxwUyDx3Qr1E)R5$@h(uS;>Pi+*!J8hXxJ2;f5iW(i zue9V)>cSzf~5{^a@Q`;sf9^KO0 ztA)L8J04GJS~4EDyS*UXB6uwMJyhX|qCA*@^Anq=v??(CDesDna6TWcP0!7{?k(Pe zck0~`TD2#B=FWRiG#1AY`41HM#k&KW04glBVd#J~kKs@&7lUXD;GUsKk$Trv%?Ed@d=@UV5pQy6XPoR+ZQNi zvY?vgDdqAp*DX!Ync5*bhPN57X#+eh{3@i+P0!5C!B`Tyla5@T2rRK~%&pb5hTMZ< zEK#l+#w_{IK_Pt2!*i!112ITpQ%U`SH=?QrV|oG+Xjq;YmcEK8l7D8~hBaMsZfwKq zlAJAP+Ovb%WNGC;zQnj*x7IxvKWsrsYO$Zy@f6LEfmH8t;v? zaK939_PjG?qc0aMj}Z|dRUG5eoTEhAC_&yf{$3X3|kI=F%*u_ zmq<8tPn^?!7R~r#H)MMWTzVAIn$u8M6*5K%EW`u}_ay1Y6pbQ7ZVcMRC<2hx3It9O z90yef7r~Su?c7%rB>WMx@)NI*$?5jA9J7)k&*L&O4Af*QsV1zH%pu2{e-q- zU_R#}7?)Cmt?f8&3>zv__U%GLT zZ}jlKW}lq$U+s~qs6CXR>VMn-De;27cHNW9>L)18!$uz!z1F`NdUvfLTyOJR{7s;lh zl4ZI*DQz?5f_x()#X4IjOlwla&!#m~E3Q}r8&BxOO<$Np+E{hDbwFA%DV)nZVJ-~D zg(WZ8v@4uAflh~&PYak86)c&>7_T1kZpAad<=pKPe{Q5gFSleH_XO{w`5>e^@tO zS465yw%-`JAZ8_q6}*^%SOJ4cC^1K`Ne1?H11rG}W4Oh~r6{r{KYX!t3Ex*F_xgY_ zyvDIGl3i{rv6QriB*kDPgXJJtrr3I9yAjQ1iMt3IVs|UDWp#{WWEUYmO;*(?44Wy> zn}|jaC9i@k{2O&%-Q{Ro?r&ZbU3Lu!v3Sj3HhW1jdAMU2uK7E29sw(J@^JGS;#WHS zGO(!7<4wK;<_ghkBZmlKeh6QR^-st{d6_c2T5f^SX~A$32sk3%=KvD4EyNlPtQ9ge zMOL#(37fD<&$qbD?y#i>=LHw2mg&GdW+F<6i%e579EA6gV${-uW6*_Su#&437eG&9 zG-CRy6d)v(kv<^j4f2b^94daLGb#{f@NhIm$9fWMRDBxG%JZRc+RUhWJZ@^ab8@<@ z`60z!?IPkyOEdpIn=pq@kwB>_JK(|I#1{Mua z&w+8ko*gZTOu- z{-L6p8C(_h^uCl)EcxB`(F;$#*PDtLG}l%Av|1YK^Q^c(WO!H@l7BC{eND2TgiFw9 z%;poYaP%PN*&no4L82wnEqr)d6D9b*njP3WxTP zTl_0-Mu~N_>+zE2SSuuVM&W zNSe;?6c4;bgX>8k`OD{dU75BMNOFiOi7jAy!!lrM6?nhK-r5E0WJIgPB_~h$o zKSlH$1Z%(<;DM@cOU}(Dv)7(5FZVBxeB>=~8npZ$5gtK(+k;+3zfrChk}^lJQc3it zFCs&6r6cRCY|D+bOFSo~Dg!;{=vMazhvHVr&rS_`Nm!(CA$P`;Ue>*jj4uayEVPaX`29 zUv!T)aSxtu-DIJ8lat!p0h*#7WK)reOHr1gB>7CL$jyf8jkJ(qZoXuTsbLA{rJ9`J z$##U+gs+Eun&dBJ9!3uN+vx5mFtAW4+MdIDE_-kmYqD^@fjW zOrjBtk$i~why*U0V5^9a2JEsEB9wS%xk8}?O6$TkC?PNr-~f%tx`#hlMb3R*!n%Rc zk=~2TR(HiJ2k+NAT~=p=_YL5Vy;cvmyUJZQ?}@D7(J&wAGmCK5IJwST>}3~bN|}T2 zD2yVmk1=}s8d2gggin^{Nb>lYaylb~-IqnmQ<&f(g zi$uIkW{C4lHr?M5i*@v;b4_}Yzc4N`lF4U4o;Pw)LJJ^Q>EgKYr(%d7oG)^?UZxLp z)B2XYJ?MFe0EdzMYkb6e6TD_Pe9J8b3ppxHd6|J;MIL+%%92Qa#7!}X;D5uk#KX9` zPKRIdsJ_nLH8+PG|GzGF>-u3`FBkQfT{E+*V058KmBvZ83=@HPZVXo!hi z`4h$w1Ak5^^r^X!N<5yeKfQ}U*c3H#9^4>S;3oVhBPSBu^CtJ6eZ7wMg z;a+`V;b@B>LUz%8h=*n{wo15H0S@qBY$4C25(F+q!!S!o=+e)F{Lz|1B6@cAXl)iQ zW8|TDrRnLrd&4fT@p#Qf4&Z|Ovm@hE!7qorW4+cB-Z7|ROTM5G+759=8Uez!!81ud z&reUbD2NBlG>O+5qfMH@9kkeH(RXB2wpzSUs!dN5;e+`0!r|J~6rSADy{Hdc?freN z{aP*TQY~hVj?Yjt>2KGrmuev0zp48`7ZBr1WN$*oh~`yMQyL+y*+8wO?`32ZNKhieHKBtV1z$dF2M+b;KJ({*p~%)FkYb11a=^?JbVa(x}%f&^+GFj7ec#d7=fJOk@H*DA>gi%Jve()Z>+9=4Mu3H=$1?hoW)8F8D@G-My)>$l zkD}`TvhAIrzRX$S2af03oQ}B;o_-*FR;DlX&bB|VwHY|@f_o4jf!2pLXd-M9tRN-5 z2l;PcD#PfTH&Ckw5o-V0)ZEdme)th%yRN@o1LN8^JG*O2gX+>8E7-$M!~L)tbukTN zQLZh1n1aS_IOeoSRBje?(7lmhjAXxMMN9tBxHp5$1q^EpLh6fQic2-S1xycvaw?d_ zUd>yWot-@hp0p55>)-C%bqJYf#xV+B3cm6T_@{|hgAzhv7t)FJFOeuiB1cTkp|KAq zld;xc*OKMziK%&A>nEI(TuL~Ji<#V{OA_m667cqops&bGfK!^BT}X+A<~afTuR2yi zpdbGzW=^S?=*FhBtW@8d>~YHZXgRsE63;s!HClFiJId*_6pQA{UOC$CcXT>sx!>w< z{n3hKr>ELmaeY}&nw={K5(DW-1f&3lg+QDMkjPdJQ>UPOxxfZj8w~#6L!ij zcKBf{+u5E}BHA=h2X_)T)y$J_)BFm1utHB=X`3O10>rk-H9hRNxqJjxRkqlX3`g2J zJMzeA5xiE!aaHu2@ZgZ>hW!2yqPb;E{}-i-9CFLk)8I=l4C%J?1b8VlvaV^`Lir)~ znkfETpLOb~R^O))@jKdYZ9LWL_iBgGH-cx;8h+wgt$cIxNCYgI^vH0aXEeW~wvcvf zq|xG059tB)_q%`brd^~C9P?)3E5S!lPy7PIZU$-K^y5tMLu)L=d7QOl^^?ehRIs3n zhHjqIz^(eE0#p$(K{hd8RVjBOA_q;l+Nt`K`h-IK?K zNGZmJ*Z1jO`kb&68Ys%Lq{?l*slGuE4t&9nV#vWEeuM-NM2duh9Vjv+cq^FXSY}FT z?Bwx!mfav~UUw|4=_< z(2LYEFka(mN2<&*!8<#3{eIhV^Tk5Uv8*JB#yzA?Tii;y2HfIdB{}4^wN={Mz{GR7 zWIB~H^sHJ$X#L|lwkkjbrI^zdzuKrOPUyB>j&@cwt??ki{uj zsue`P*RWI2q9qLkqpzaIDKQ$!(uzMa6z>eACfbY!6UT-p532tQPxOxvf+{-|bZRxk7-jr2MD;Ss8ILKTe-JHBO2?$V3qe`_^Be_;PJU^*#?zDP(tS)-% zT&%&=_`;k%d2i9`!M}|*y+faduLE?V{*FQWr`6g$$P+*|9CCV~vJQ_9N+Juc2>Zzo zK0;$hsz9({56l&Y4+K$5DJ;+ElU`^-d6TYB)(+Kb`;eqCr@I9!*=<>8M|1gI-e5^+ z*`zIaJ?ex6HOgBUuLao?##BDp9jR=KX4|}h4T!Yh584#fk!WJ0mTBmb-SE3r5&Jl^ zWtmf&QBYkhrJ{f+lmL(i9SElz-iP43AUEpJh!3HKW5Ywx7RE5Uz`y7O(yzHp^@jgr z(wnM%Nyp9;hCV+(r&#d>77&DuNuB58aSM(-)6mXxt&X_+cc}foX=;Z&-fV$B?e401 zcg1p~bee6Y~e<%IPWe1qlyYbN1S z{UNxZCgTI%Y0Zpro~FHwYKrs_`e=CjG;QOowsDQ7&F=R$%)d-Sz7AGs+ps&J4IMSY zHga9Ub}bqmM{avJ@_nh6_flTd5* zH(@s94(a+KgZ3YBhpbf{H8C4JOoXZJ`qcQeLBHQJldW~EvWB4bLq_2hj5S(eaPrD1 zj5o3iFv7@$A%_CZ5ROWrQ_xX?v5b1+DC`B)6K~7PH8>LnZ!rN5gzG>IER@yZjhsR( zQ`bF1_sX6NiM)hYIJIcV11p?XVgZ@UPu%FJ+XoGF{@?;7%muF!T|q0SlFm8jMAd`0 zP&1nPZNLMg=-EXtmaw_uQ^V#Byk^Y??$D#t&_%xkg9I6QM~*B^xxpfPF*ZENZ!1_; z47Hio>^5mn(+o_3CJ?3^6~li&i{-xV+ub!zEuSyXjl=AigR#^H6&DVdarf={{K6A3 zI-aNrTO$~E;6flNC{@7@4ZEhMx!Qi={{0uWFX__c%Yil5I*Tk(B4lv(OnDlqI^qhb z2p1ylzUj02HQL@!`x+t)N~$Wji4PC=05YzizS8=wpddG?iZ9RxlaQ$uAL)NMLaD0d zijAN(3S1gwVkB1K$1*Pd5VplJUD?JOp^#z53o)!Cl6AwuvMB=#eXK&8uE;TR)9a-* z4&rf^Ax9A0$C@ALun|2j#dMfJx{M4~BdlaS+sx|GBpkq&X4`VA6jyPL6}2_Pj7H$N zNuFL(HG~DcQd>OpYSqGO_-s^$bGGQ{I#!^sNhUK^REql%!z~!_sUnlUsk51&1LaRL zPHuj5l_dP#arO5$Pesl#&w1ZjTO#L~=RUuAvw6-r$F^)S&pns;5cYc- zX!@a=e9=!(Ac`0e(ljx_0v@@@iI#M9(Il`U&Aic3&fhJ`*TL#l%|&LkJYZStk5*EV z_7lc-s9)elSZ;yII2Q1v$>p)jbJs*hJR7E=;7jCpA`VG8*`%L=7hu*0l}o&+ZkYVU z04RQfYPmOI+D>B~{jxeCH2_?^)tj;-FLp?oUVJHe!Q?rajq#Vha&@U zXc@=8e?(*c7q8co= zC5IDI$jNty^jy+5D3)1nn&+6Sq$g9DGBG9M#_?tWlh&W3w}Wz++4k;-lB$Q>tvL=694{aG6Fof_x7yI|XGFE&z1Xq8!ZxkvD21 z_zviW83&0GtPuv?FdnKE?79=I4X$8LA@~}Y%}AGqDH;S^tBZbzMR(hWjHF?eVyRGn ze>fE_MK!FlDMeG^zJ3K?VJVi|`up3;6=TGxlwhc)%N6YuKc7tIeOf9FH^sO6gHtWs zD7dos1vff1xMJDG_=sB`!m^LN?{^APwfd2CG1^^X9P#CCXk~G16zmnrJ+Mg>6(5l) z6)?>BqRNOtGg=%ij}qIhjt%)>weTrm*BbF1Ul5T{AxFuD^V>X@T*4KrA^S0ASut8j z2}@e$Ql4^R5AWJl!=@`pSd*eMxGa}EY`+jTLQyRo?58sZJ8?mann)_c1_@F)9*1u_ z1b!XDj%(y&e$N~-%&-Lt){^5&S}2Pb)@fp~Etcwrjj$vIOU)MNeFoz;i59OUe+Z^^ zlNCt;cLIa*D+$P?z@`O@3RZm6>TrCbm>8s0ZA#h!n?acfX(rT@`Pv5PWnerW0w%-Z z5|X(~(`A=qI!P1iN-UVtC$YQ6lxs{O?bmSOl9m(%3l;1lRISyTJaz$cIZB=|XzM{{ z5@u=O=3d+&<_&HZ`y&N!x>!8K`?iEutX>h?B8pqZDx>E3#s4OoMc)>nb)8B72MF2t zfvTq<>yT2qhJ&7?Xf`I}a3wi`*e5wn0)ZLq@PH1*%PAgmf*FjVoqE(_?0lRzuiy5hxi^u?RO7 z38_vkSXN=Dc-Gq=ieu$RNJ9iOmI>{P#NHW}?08hg4jj&{AtTaZM@$8$z;NFmaf0it zR9pNJ4nb=xp-9XzmgX<*Zxw1qDky^hvyu#8a&~~tlF|p)h(p_non=phh2w>2(lKl- z*4DPw-gN{^Zd$xRyaaT0cZ)yM$-e9@euqFNW};y3avNs6T!L@(06oq;Hbj22a}PMU~=Rp8M#gl*eY zPkXahp-@5NqV?gy>Tp^bgs^820>zG1pc6uaSi~q*k`&xVG7OQWl{8JmY}luuH{~3T zfyY+Kkz9eYag}CaQM=`+ma9htdNfCyYpF>b58969^?j;iY0cq;QD;+2G3HdmHB}5o zs=pJ@6|6$LRVY~P1?%e(MVbaXN!i%HQ5A#Dhxs=KIw5zbNhRTar9sdl(pXX@8j;`P zBqGsDmgVygN-e1=V8GDN6GbAAXJBD^Dz}U{UXFt{niUIi%$k#k<1WoYr0yacFz{Lj zGGo(Ibx^8q2}a}FgaQQ=|#C&5%IoGWwiBS`%8}u2jf1h z(0Cv&WMfAij1#a1oom+Dg=1+j62r2Y7&1}LD=>wjXOi*T)RD0IpSEuS)2ew#-Ehq=mBx=AYQ>gzdEmb_T2G|wwA6^W z=qxPIBQ`9*aqKx01ly*(ci=Qs&O=3UMvI>bKM}2%99Xg@%TPs8D|ph$GeHSv!7!sC zw`}PK3{4x(+RJt2{F!k>yS9RLH9@>m4gj9w-bO zW9u`efmx6A(~CM*9^G)Dy)9=>XJ%^GoIwsn81Ga8{GY5H^glMP>dct@|m;$ftgL*yQ)}M-D8-)Qf%LX)TpMr2#)XgQa zlZz{3KPOYdE+o2^Fmkadavq~bbdXHB3=|bj#;#Gc>zaZMDQUMI3rk95+frhw-fTRR zz|oL}Fg4WtFe2J4_`is;eycBt5<;*9n?aLRxkwY3G1xV86{TSjO@cinL6TKvn5#q+ zyn`xO2^!_14+0xDIZT3SfYWBrnSp#bY@66pCKSSEGa;SK3KJ!EsN!1QNjj=7Bf5u` zAu(+J4C;kBq8A11_Y=+!rh7KgM$|p+t5+DZoW?D}*dPWQHgW}voN1RJEH8*?vgK9$ zm=}lBDIAW3B<{trsI%f)a>zD%WZCFlT|iyX=GOe62pp}R#CU}+&=eudb0cP5thyZ^ zpM>Z8nC{Nc*XWx&P1gLeFU>c7NkqE{{ofxiSksBUlxSU2xq|g?w2czBpT-+xQdBCd zG}35+EV4_3!HCsy2pS=ZH3;1n$x(>UVRYuPupPTaVks?@K-$C`=MXi6J-NF#(GGiZ z*zz6hq=XK~uBkBBbhW)5wA8WX5%%0uKyd8106S5Qn%Hy8?;ET@?98LfRO;wWDA+bqZ*`8fOCiK| zu@@P71h<#4=NQ&SCDFxwt0#uC*`bNmeL79oz_18(-v~TMdFXYk5V_cZ^)qLY2gHK| zWHEq`fMW%8AX~afBWoBt5{`{vUmwh0e5NEbBoU8QgEe6|L=zSE2vnnT1w*o!tSaQQ ze6XX|(NUYEw^!sCd z8ddB+=lUg+r|B;3?R2XtB#ruQwXhtu3=Qi%4Hy=1njv*$Lq3zqx204>744kuVT0Js z$!s{CTa|2U%jVPJY_d82XkB5FRmh*;+;dncEZBr`fJ0${0+02m$Wsqo>yT7P<{h3b zle$8RijGClJQjhza_Nw_(;5$Z$N@Ss<<&l2!F~WKEO7RqucWLgQhD&xJVg0!+!Q|fpr{MLKVMRdy6ANK^qjS7HFCkBzD8nduyCutWRAU9 zle%`3wW%{*$PU(4wn?#I$yPkJ=Ok6CIgc{fTO`=yri8sL=pRpueJi*!54Rx3PAfJS zgV5e`n)V?r_KtVtUaM)Z)nhl@@XFnqwp)W+uUY4I%zXtsgw~o-x(zL& z0MUja=zNu@e~Y}dJyv0(J!KbmTV<=}>c2hl*q*{hYpSrP4EJ*@A0QLlr?rO@+^eno zLG>V?De1Igc^!#G?$M*42v&T1SiuqGIbe4tv2Rgp zZv^rb1^N`}RLeh4L;J-G+BUsTP&3N&!8_Wr6oYzUzmLLpUI*Sm-k#vD6oP`21-(wI zI+lN?IrI|8dnKAziQ#NHn=R`HX*}o%9o^Gf%f8`7M_k$fil=FT_lbSMz%krXunOKN z&57^cc(4{;FJt@YWig#BdKC?qlO*Bh!{PEXzo@Ww4L2 z3~qkibtwM|ya{`wAoziuWDM0opwm&Wy_P<-<_>%`IokXBm0Rk#TfAVC1#O*Su(1lV`C)RJ1%WvO-9YTA-oYFXCNEya&eD&V{{g2=O_a6=skyyC`mteNz(Fput0N%GG`3H|MYrjPvsUPe++~*8Ob_Q2m zIc?0XT;^vp{UZk^Jpva;OUuipYArri+l}-dA1NHTdY?ZwZjZFh;VF0N@)d+hc-}m< zJ9ES^z(vDhBON8Ad0-ripHg}a(aRru)D3v7Z63AnJ$k8pwpNsXpO*uqb_9ab$8+9& zx4e&qBk#ME+tG1CdjD7Hy<)|Sq?N8FV-Ibk)a}snJwbMh>M0bv0QH#aiOp*zO5AF1 z&t&GZ*|~dha>t<R!ul~ zajm<>_6T)!v7aZfQ$t2et|s!&a?2sFfF2^;FCJ6vuf+#flD6&&`#=X8EmLQA0EU*( zyNuqaSENHa_MVyS4E#mFT2|2Oh#uHS)@ST-YmuZ~(jMv1u#sLB5b_K*?6%`WB(Y%a zPA}O$%moEl39(>O%4_4jY^6gh+#WNU0ORe6@D6BTtVg{V1b#kpDqNweZ%?DoZ(j6lMR0??Wf?ip6eDW z)mXinYx{Ky8kJQg#+-iOP_EMa=fl3} z!8%uu{-OhcBIP@Y4$~rnS@YU#oH!Av{JXl1{Vh@t&Ya;~jd%T0*SzTf$I%L+#u^Bk zy@0Q0f*ET*WQOmRQ2nf8UJ~)FBJToEo44qfr6p?t5F2sqHksDK29K8*TK{o&;iEIa z;{2Ttp+q8;^_%wSRKoB0W@hZ5-Sl&r-KGzO-8V;b@*Ceeej=-X%Vw_%{ZQ|I!43sE zl$q9>U!9i&WfT4|$AZhthr?=cnmwUsY_pA;^pgUzV3~e~6+k9o4BE~nC}Insx7G1t z(=n#5{Adib0Rgn>th;l+Tfx>Fp4hRoRm&vry(sAY`+hW3eOqhw85 z``;agr@mB4?6W37yr%X_MIpyn-Jap^9=Yva4ijfJv1wSP|&2L4Xi0;;m}(qju= zZGWpW)$})-d-hMc<%Nb2%AeYF^l5v3=+Eg#NMlr~9vluDlc2c<@Ex>6O@CCKHEuIJ zW+T&VW00h&Pv*Euvu(!h-7vutx5|GoYXj#4rf8-M9}H|$`e-QcC7wHs)j^aFQ9lF! zDg#nxKu#5_lY0X`RKz~6a~ZGb!IIQc>X!cO`|M#mZC;mF2_s=*QcEWKbs!gpzwbTv zNb+C|v6U|bV&opOYtESSPHR3jjFZ41l4e2(Xq&^SdF!3_JMCrxCRyPuN2V8=((l7- z6TIqWQVSKG6rSZAmssWtXxvRT z;BimD!jVeA2XEuTI46Ygki)*>eikDoY(5!x zY+|DcGm|uOVe~ixx$lgT`vUSM9&eUIagcuh+WE&JPYj`mzRQDFXnoxoM=oIN7`{eM$tRlp0rN5p5H9lAM#4M zM%j)fCQ5KqzHxMf+I>MReuSGwEXFM;FGGD^+wC(%VnpvgBsCjbqG*d+Ls*di;xZLA zN8F~k`?@_QWO4Ov{z49IyVEtP&q7WgBd=KsS3m#)ef4TE%3vvDB^$~5o>sDDowa!1 zQ%|zCP6Xi#W+pAxc{_MpX|43Opxp>poTVI!Pa3O-(H*R;$7eEl#MYzlBb1OaE4x2j zt9@v94YZLqO(X^+*yKAUY{5f-4B2(-eIj)sT!O_=;XiQ}n~mgAY0n z|M4nX?)_u0J3gMVDxGAIExc~*ekUKFd_&O5?;i7FSlm@|1 zp+c6z=K84f@Wal7kF2iV{s;FvXU31e?ke3XXQHz#A3k`ncP01zcK%;Ekb9!r$w=Jf zE<-iy0^frP@7y_UZAp65#-^Nn$@Y>*5^lfo%+~hou%$c7@j=XOXGfFBOtcpXK->1) zkW;-#e+v2GUx3sfnB+Y=c&Og+exco7ZnaL3(PoD0HX>MJ)Q*E|m*c(QYKY$!M5~Uj zs1=+hnQPlct)P|Z>k6O8D;`JgYTKRZ;|vb-S&qT$<=RCI0v;(&CcXdQe%AeEQ3{2Y zkkjk)ziOLGn?!dY3_GMI@DMiwiqrXMJumY-Ug5m`V101j4bCjjV=#ZesIP2$_MA>% zsn31B+_^xAV>)zXk8Lfq;y*FC%!_i(uX3)fe)$CZgy+)z@>Sbp+qocJeXZx(c3-ed z56;Eay{2{un|Me@WhZk9l3Zs$v3^Iu>RZ*-xn1 zB&KLH4+NzEdGO4O&D%Q=6X&PIkv78AFQZbni}2XiN_Bt4f{3FUON=`is#$vJL^dd- z;jyyfYhf1I3E!_}>-FsQv9iAtWhtpL&M4+@s-7b&Ba0&Rn~~3beipsjs%E3+658P(=iuxyjc=<^gr|iaqoyC%Re+d z4NQ`dSV)z&@L7O<=xO41;mXT}fGbjp3E!b4LSj@1{}uXMEC$xB6(cYk@0yT9;qO7! zNjkv8;JUXh{`gk6O~7WRjm8%(Jchr4q^yLS!J6gJW-3GbK!xL!Tsb(NBME^K{{UjP z6I{V{WnjJpDH0}tkic_HplaxtKx81g(8s0xfK3E}kEqWN{R3?#83MvTErC7@P2%Mq z;5KfN|3Dy)z{DuoXZopSf+A0?=yrF?oyI-{naZf;5-xhVr!_jwgN(`Z+8T4h$sKtd z5hIKlxR(cL``V2w8$OUVEWmfW@4EAG8MZ5u8~*s6?{eQQKJ4f?cpD}(9#T3ScOr;S zTt9@}B=jy2Pr5)s*i!`py12Ow#+P2D>4P_cp}>UH4a>eHv=fCOp`GyPuqtFx2uD68 zZ@E3&f866&;hwsf8>PB3`A@@sTy}|PaWBLs%5m0THCPC@$@yE`a1UYs9q`ICYs<_f zDqoL=IJ0tQef``9QbY7PaX&@#-q!Y#h0N9k{uZ1 z*ga^>NV{wJ@Io6nyJo$`9g8KD$BuSgtNTp&`U7G{ioruCr>kV8tIGeNl}iy(4S&&A z5iB+QAg?&7T(TEED@N%Olu!b0L)P*x)4&tf53Z;0;|3*gM|PYxu-FwNvXFB3Fb)_n z{34Y_^l@b|&EdkM^KMd&gO&J)rH#X9Qr+~ohtGs4iae9x>{($tIe&iZsYE`(&F!@| zGH6nHD)Ky~m#v&VyS7H?^Za?dcY~)R8N$36jW6`?OZ6P=YI(941iZ_`k)z7z;5*vE z;MF?6^|}~UmN*xE4*E?~HFTV;3vQ5SkCKAf9zN$z8N7fP@(#Vb2zDJygNWfSG;TmdE@znG~VNsm;shMNv1DcEEI zb~2Jyx|%UzjJYm%mEDZR-OQ-zd6lU~P91J8^~Y2$R~!-em~kaZ2j!7rD{W6q?Ztx0 zB#p)(bLGVj>=qb6({3D%=x_^m8eRgTKo(K}H{-J&=ake^HE>Bh)-I0-QgC^Dw zcj&7si)U?gs3SHCxXI?+xCduyx2IE%_lmHfrVL00gau9#$=H;L^Pmy_tpg#{cwVLV zI(yS9byyi>7umD3wrY%1Dh<=sj7)zeyZlEVrAdZ8HCD>Hx8Lr< z|F9#Ww{+mniAG2mqXcSn6 zzzl$L&=Pogt0k1&cvc5}TKrIwdNIn85BKspdt%G)ZBMlzke2pa$|Z-^+y->E!0((lGMn+RjD8;pKQN@niK@(2Fx;2 z+l#+JosO!?peu#!(1W`Z%ns+~Ngq@{>b#4YW$oVTr^{C0R`o*W3{M-4|wr3ymPcbtJWF1?OfaR%eTaw<$&WGh3VW0jd z+Ftf4h&?HGHc&oX0)i8gGlwHF$)Eh(A?MT1 zXewhSvY?KgiT&tGX(O4OTK>@ffu8iYL;rx+{0Qx8c1(_pgGsPDsF2O^Me#sU7G8Ci zxb&`N;$aemiZ~n#QX#j9+nH6pB|IO$S*_>BDrx0WOLd}HsRPUg%b9aauAPa+a~b&7 zyh5u^rE~>+63VKpa;a?Gu6X{XpmNfchM(_@pl&utJEED4k3e6S%}@7dHl+Wgs8f?WX8$`ZZ1dCcGmKMNvB5gH^hP3Q#{wR zGSq0`w;(4-dU-uh-xqI0ldBDdjeyn|XXsJPS`;ObnhQ8@S>kc6BF*@lAyIv@66D7V zK2j~HOjf@lnLH~ZHlLEPG{0*0ihN~~F%^w7kmj6AabVuYslUSF^MC!4D~og$E!TC`d$J0& z#1o@jX98(?jzg)?Tn|VQI~5$acI>c@U-!i?)_+>)4q9Y^tgRVsuN7PAYxeZ5V>(C_ zrVpJX+d)?lD^q8mk{LD^jy9xVl#KD|N8;XF-|EF5DV#bLoI2I?rl;M}Govma^@mht z#rj-wWhMDJYvpH;tTTRjdp!lr*@jJ|l6m+%wH_2Oi;Rm$lv@E-%9N+YHfasSkvZKG zrf07xK_69lkNKWpGLu+I9y2osj~qUt+&OF3J$&lasV~jXKf0PLRFl^DcrsZjR4!Me zqpB!5u(=%+!H8rWXAEPZg0{4fKVcRl-9ALL!asmW(l<%%0+BGi<`>8OF?ZIReZUPD z7RL@B9&_jB?$Yn>*x@@HhYmFebbg;3E?n0L8s3~cyPK8noY#<^8|sbXdy-h6)JI@- z#9pz8rY%N57je7gXc4vVjF9usv?;Ih#MelGcbq5Jcq#HUNk(45S_#6;V+Y;PU)eg3 z#6zS$kVIDLy)9wt6nkDetQC?$FmgFtyBTtOOMPWX3cvwHKQAods6by49)#(Xz|~cD zZrzU7P$O||M%HGtXJ>4%-D)_vu`ihRQjV$hDMty=J%1+YA9q@I`zhHltP>ITw~8uh zERyIZxE5$;%t5-F`1kp4@dPA_M`84ZW7+Jn1^bGMeW!^!{-^8b^2Dy!LIHpRAW@IYn3*8tUX!9h4 zJjYY3I?FK#26>Knf#m354P&Hj24{?H>v$~&MY3@*Jgbrii)Qg`6lW)*MUbsP*jZb? z8{6aT&%%mOcW0ehx4tdTULE>hKpd;yDSz@(_XA!KsuL zWp>_oRKg8EK4HeM4&(Y)r?bzxdJA|?63X%Owi|x5UKH-%?Ej&zJMamIPAy$ObztSl z=YSyV-1<6fMrUv_TS5r;jD7a3@XS#DS@a3oUie_b`7S)-%U2V8yFWNV~-8=aLt5P43!>(&{0*Qh@E_`kIk;U}X_rTpiqDIq)^0Z2w z#nzBys9ukhLG{7mCf))IhXP&&3BnQ-4PoOtC=HfM>I#G<2hglo*~RY``WQL`mt%LZ zK*2bTRHlY#+VhY272i%+81sc(re3{axSq+ajb+Pe7d^r$5{fTSF)rt(%h@ZFaD}JS z(Z`pP&>Y|-Ae5YtGVm0*aFV6Q&T_#?CY?fgXX7zw-P4tTFs1k&utCv0Qt{aJxpHpv zFS=)`*&#Aq=dK8ggXEQKf0hK4OXC(I6$#c81De1jY6)R~!&7}kiF2ZGo7il>LG=T$ z?^EuSjbd%Z-2y3JI?W3g7!`W_lW}A9cMJZ73m48kL7FT&Ey z%fJ&ism5Ou@5UFX?N1!Oy~wvlrY2F=VhK;`ej=7AKjIHY9LYW;<+2wBo>uR5el^$#7fEl)<5c-!p3Z>Qwh}HmjWN@y7Qsfq>G+wzb;i@loo=4s zaAMb@VLa~Sy}ilw6ajo?q?1$Wo4{I=rLoU)#Ae=pSu1&(f ze!-RD^V>y{J@R_~uP?R{E+Mz$VEkUB2MP8_kR!~J5>`O-6G}69Zn0nS5oxvH)AyyV zhaWamZ;7ushn91{w7Pm`wH;g>vEOAk8oZ4_r=80r9erc6+fjO2>98S#{vNM|Xj zbScHaokaYEOIL+S%~(e;P#D(_aE+@=W3lV;kOSzCUvcdobz6yAxp5<#-rrA_*i)S8 z@e{j1X~yGL@|STI;#7>6f}atu;-%zTylyd`BC>Bgu|;j)Yg;M8-y?K;=>DNgg^L3a z)5AjER)#9)PP!A<*S&Q^D~h?a z)*6R@FpbWLN|?gJK^r`9E`9Djp&}?{#84Vf$gd@x8_0^yIfb?nS=JQfM^8f}r1Jxg z*b-pde01RM#gU~&%|KphFMqqYh^>a*hJ#cx1dnfGQE=LAiX0Ha$PXW3A=1RiWNZ(9 zKoy)}c5Ma!avMq|Zz_=!gk&nCM*~UtrjiUApAon=!+ze=bFm&*Ll@}t!o9Xru*JcE zeT|Ts06hq)X~~KMf%F6QDaScA_OA_Z8Ds-{LxJ?Dt5)+5-*!zNDpY7z5 z+2oQHAV(mLh+hpRJf1O4m?q-J)x-<|iJxBs{_8o36~|tI84Lv>4}{B1K*>sAHUAUmozB zP76jdcx~c5axoNMBh6{YJAT~r_q=w7)1OWDv;E{7ujzz+XXwAumYPpq&^%1+i>1pm znX{kyD3v5PlBct$ehmX@(C%MlY!t5?# z9lndg+}0o+s*j!r&9S}?gEP|xLQY^&Au~Md`+>j4`aY&p^c=p1*Hz=TM0^ZP$s^+I zf#mQBc(_@5>WL?K7GYa$$1Kr=FXEIYIuS+-2X^xY**0gWEh#W49kqCFBOv494A>s+ zOW?^~#DAeZzS8OirZI#*4vWSAG!`_AesOW1;}(PFuzktenRlLeoo~&*@rheZb_x5s z#FoDn>cveL;A`8;Dcq1Wxmrzj{A2>BvOq5c2Aj0w zxYQGAij45jNxA9OVkAQyB{80HS^(euJRMCO{1~P98eg*F1IbCBV1KNuK`oT z6qq-AfLRdlC0S#UB8*E6uppZXh@44KYZB8+!bK&1>1Q)uE`anclg(2qj{FjvkB^Zk z>_GSHx*p`BSSD1|mvxCphwJW)$>~9p>Y&$hKm2&HW&@pRsE?aDBKXUm@nSM@?o@acG>v0O_}AKKdhxlx{3=(xdT zE(F}qu#@CsS;?7jMPDm|=qSAOxOp{C6P{MlLATY+6PY2hA{wDuj&SudV#Qs=KP^Yl zxAZz063V)ebe!Y`N$$CD0oWJ@T<8y4J8^>SMIxf&J>rE&i4w9Gw~FtruSxCWzF^IK zEIqOOd~xT5coOZqB(rJ*sVCY!R!r2+FHim*sh&5yg!g+bR5FPhQ(j)zm>*DnM>e0# zg-OmJ*#hA?cz&;KN?ezs2^2&aeoZFMnXo>|XJ5086Z%rWrXpT?2~vl4g`|2t0y&At*ZedveTrR{gI-lug{*F8fAuzN436(o=#Jz7i?J=`U{5NKy~m~|QY z6vfV=XG=Gct{|V{l+@h@>`n8-lU{Y7#Kcmme65z>SM?^3KIS-&Iggz@c^M1yJ5E9& z9KB>ApWn5s_;vQmRs6hyqf4>N^WSzpG@H6<+||3Nt5C`!109H5Sr~WN$E*R&r&=Haz2e#tIkSeOBV8Uu;xK?EKC9 zqK(<(yEAMY?t!6e`$5hR*nacghyET(5^`D+Z{Y&U;p+i zS5nudue&Max7?h!&&mjs*lw8REoC*amU(I4ghr}VXDNwd*}o7K5!XC zE<4iOQRKoAiCNGqG39Av8KH#>gQ=NLY895|!E~`nnBtMgZzmTIKo$hGc>ox*nuyS7?W^}XiG*|ftRifagil)kD ziK+8PpgbF>VlHi3xfDhw^MQmB*4F-Na+e#7a_!mlXnqElz-TVjxoy~j12E^<>xq08 zsc$R zxhw9zY_@*6X?B*|!5)qQL^tY(J9Osm0;qzODDtA?F0_dUtve})nA3d0j$WWm2=VG( zh^%9%MxsyVcpZ2V6I^-{(t$RUCe-`lN|Br_$)mY=cI7(Lg#b6@n36LkJQ`%P{rt*t zM_NX|5{Z7Ibc6`sOyHvor{qKo1b?iG!URU#tcX52Dq9bUOi12;Y1+7{6XwR_!H~cF$aKb9Xd4)XS{7dAS}c{M{X^Ebp%%_rDJD|T@V@=D zm&U)z3UQ9eWX4p$96^ql{Ms1|Ole+SZeY{rDX!^KJnJPE77|`IUZ@rLlC-+AJW_~d z-FZr2XPyb`x||9%qe$P}$S~e&l~~@4RjV;GA1l|ux|d`5q!$}5$4j*!sFmX7DsnL& z%j3?Iy+4ie$Hzy)BS~9_F=yer5ROiskH{VzGMoKMSAoxdzh8=>Ze-?RmMKf)zz-l;GJlb97U zK>SrQaUn9~p0z5i1qOkAJ3w(?m#TyDToBaIpUq+%Pt`r&OB`!CYya; z@8WNl0X|9j=+zl2U4&ckwq?!HdGBpDwk2fwwDW})E2yqN^C@=j#v`XCA@!79-y#M3Ba${N^1GR^?Yt%r{3eq>y| z;M+8Ystx6VgSF}6MV%=(0)MQ0nvbASo`Dm+oINfm*VFR0E(HOhiwj2$!O?Bsj>b}u zbwSrDI(GcI>p(x5t9g*XK%s zb+0vCI&>&oXim(|#70XKr7K#&7fgz^yZl#`QZQ!sEz*atnP^SV94`;ELr|J494fQv zXl!P7qFKO|)c=^RcW@JtEEZmGsc5l?%>iC5ssYg@9}}u4G7Z~+{ppM|h-5v9Xen0^ zoZO~1ylHm_QYPR&rvUr+WmclQ`#uwz&l^usjlsE5qkOV$U3n!}r;f^zFx>Nn%cKm! zbovPh$@ zWN4>d`9+g+OQ(8;tCso^qL8ac;m$Wh!gl=Yt5)`vu32hHB%LR40-JaOxLk{y__0^H zg00{k-a8Ih@30Q6J-GPD;)C)^= zaB*>b{07=GoFf|aTk-F5oPmcIryi~&ZCZ_a-r1l0$gJS+g1W0J$qh^Ud?Dqi-+gyo z^D2e*RB7lNNagHM1A7W32W(*nY%$7+5JhpY5G*gL*MxKDxND)YE71gVMR5zWKGa=$ zPe1x2AGq^g@99gXKfp+Cd%2y{*-Vfu>;}~7lFU?WjsnQNvI#YJdSvE0?^NN|BcHSG z^>!EPw;uASZZ%a(2KnMJ_=vKj4A+EYeI)5O{9Mok=rI!AH^hSazR439+&586ebEct z^k+VL(@*~7M?SLU<$mk^*#}B*6leFVw3{ejdOjT&ANfc2zogwh61JOm4Gm%dQs=dX z%z$fEVa!toVbEUM`otLzXGaeHzum(AP7SugKn(Wvr7gIxb>TOK?< z_06iz(2`Zs<#e&)fEXApsAQ@ljg`!&a`j{|76jn<*`C{tWQDX>c%A6&|J>^YGKsB> zq0{TUmW!PtZ>*FqmgN1lUojh(^)97ydh5DHE{hH%@*=82f>74+N}?HJ-4d-UNdhRQ z11z_EQN^11DN5Eb-Oku6pY@URCn!%DtC_3cTl!`###&goX6#R$|LpQ|F$0&@s#%M* zB~UT&S61{a-$2VH9AB5pnD>`GEj0)eF<{Mau=u=Upc=~8edy!tI~-16-ia_H-4u?3MvD5YhDv1wS}aS%5F`O zw~J9cgS!w6s`jelf04#)vIgy{uQ4Tk2&4L6_m^>j!6?5$X&eXxpv%DtWFICuMO+S?L@tgDX`(<0|HYa87V0G(oOMUXrzX<>F;5- zi-c1MKrwZ|!seG<1r&(KOq7rOxh7 z>3B{T5|g+0?Wnm0u*UUjYk)T%R(0B0YRfXtdPF}!!{P2jl8OnZQ)aP2m^MuO{5aMC zj4gqOA(H^NO0Tp;wVCGleF5O1jG=4@1WSpD!$)>fy>Db@zLVWKQH=THJ0^-o&WBhv zbFEXp2IADQvj4ZiBJ@bM9W!APtQ_4_37{IF^np>`m3L02V*c2UiIS0H-#1WiCUuSH zmoK}P(Ab#tmC!#orFJvcKb4XZ4mnhXO??5~q513eZpF@@^iB?6(l6$FWB9U4 zo#}R|)Gn#1vHrf|!|8_#M*Gm=9nWYULwRFxh3AkwBJBqY^V2Y0dL715;CRb=lvh|Uco)Gz;^A98i-(H9y%qm#`@%&c82!z@9r87a zUU=isD(!>LqGf@M7E%7i1;!(83xJuJd$&M{2ZklYW(Spdll&8jzcPY7|V@k z6r5}OPw5p;hF@g$lRBjxM~&XXZ=ctsf(}r5dExI_)2xFwI2FFgD_Rl7SXj|w421K! z;EPM#kHqfK%wAew1rZ{O2H6Q6ODkJyzOk?{ zIysfvmzvr&vam3+OD|5&&Cgpk$ef*ulbs}Yp06YRWR|b2ti37a`j!0Xa4K0bO*?Hv z3ZMA(!6BlfO^(We?{g}t?FT?3*!FeBs`#0*>5Yu+hMGPFO+A`Zbk7#}uL@6bpY~@0 zebM1jLA44hMsQy}@Sok%0HX`t)JwJ@oXIv@o194(V)wvG9J@DGs1#x&_}=2NdaRH} zRS`=tc@-P5HX$q7;2wyIWm|EH$j^^wadsw@(9Hwc6x(wvkXM}SmhXi z<$NM%Ip*U*BN)r1GI6y7hUQ~e08WYh_}1KC1JiqS=yhECbONJ}ss%kRjCllgGREl2 z!+HS4!6*z|Fj&Qb;o=~XOzpPi#Uy$h`Ms>}k7jCBn6MRQbS`62^fI8BNkX!1v5|76 zN-c9=GE*qK%!F>a0F5AEq#V|fm$8W&JNMX5Jevo+2{6Uzrrq+SP3({%$sPKYqnbB57L z1^X&miDXWSwM|GEYe;fOXGo@y6cOY*Vsx=r0!@9^HdoW=9n0pWYgetT>^X7Us5d?1 z{-p|bInM9c4Lh)R1>Pr;dlmiZ*;Y zFFoUTt)9>+Pk%WQj1zGGSNfFW!Blk0Lvl)QdYfG}qDC}sVw}7jiBoM&`XO2zfcB;z zX44Z1P`U#cfN=+E;Oddf5AKLJ_8#SZbZ2GX(s+EhyO;OszR+P9v1lF1R+Cw$wX11o zt(uDE6ZO599qPnK_Z>a>g=}JYe*e-~e0YA};u|CPN%(OC1pxelDh5d}H)to(<&s2l zZ=szAJ|ZGKfciyYLpt{u{sp2P1%Ws2`&DVGVL7r<-?W=sK42_xzB-5OzM>lIDf~*qaEQP zF#|gil9c8Cz3B zhhXP;_dlmiP%Gq?0eE6@O4IS^C6D7(T6C+O^wuvr!au9+0NW=DUbX5K;4TFJ$x{Ap zuem*8IJ8~R_AysDYQm*|P8)wvP7D+^Jh5CtBLCa3((VvQs;zbx3j1v*)|U{?2l6Z; zuCoD4f*8T530)95zJI}AlcWc-XjzoZoC_B==aN_0cX4Z9y~AKv7+%Tl>EJwftf)e2yoVreqRlfj3Blq9NB5tSg!tB~z2F)7=f zQc=E45--IY55l*@0q|m@zlpFos7#R?y>Nf#RoR5^OY|(!DnbncM64cO7N-+^Ps{du zh@y~gH5yOkl8(v({EES<*kSnOO3;J6Gg~X#}aOfCrppS@|Ad=Y15X0AOrUO^@vIniC%@z#u{qRI2EaxD^k)AnWD~IF%4T7HS6- zOdVw^YmF$TMIiK>%1&48W(n3xbPON_(hyF}b_^(Z5-L?1$rf{z%(KBMqpTqntX$ED zGbtwU0xOovs$T{B59}K77X>iji!o4C60x#jI|XLYgp?{ntvAyFZn@-en)@SH1X1Hy zsZuhQ9(CRHY33lvX>c43d`IHDaj~OwXc|~Va6DK&9J@q!GY0A?LEbLl6RYm)orLY$d~EY7);RN&cklI^hq#<`?(SZ@ z)o%sk6+>T>$S;#)kA5S0e01JdOJKqHo_$Tou5&A|9n{4|MeU7WUgFVGe|%c5Yf)?b ziyB)eo&l7}5dD(hrf7w0MpfHKm#F#ANm$l?CenyPU7@AFDQ6>aKI`D2TIVy0^@bHZ zQ^Q;F+QD2WK34EK;*sV;aDZvc7M-bC;6yX6*0a2W(Y17y6ezwiEY9&@qW!rS3x5{R zNe4xEM6`00_dC!@B@!GFlUzJ=Rmbi3-5pmS>$tt1+c|dTIZaaX^kKexJ$Hw{Lw|M- z(_W!{o2Ng7HE8uy)LJlA!L%}rn!|O6+77A@`VOWpUB#L)dZj;d=PT~`YP0RGw7i0S zOWEUlbM@MOx~2bpth~SSwt2TQULN;aD{i}ZzwK1!y-IV%-j!;n`{{Q2vC4kJCj;H9 zN>7r=)#YS1+)4(cc%6WXh}tX3lVV|NKOR>?WRVO;!PJmWD8b+Zl65G)s7?J;>&~n$ zcIFAiiR98h$r}BW1d-OOvn@F6tNB`9p3{IYO0cJTw3S2^)gBb06zJf>ak;*JJ|r&;Hl*+e z#63b61fgT-pOHA5WOYg1d#SlP=vVYhIu6BG-7|7}&53CR84rF$Yc^??vQOaGu^!}p<4jh8YZsbtodx}>K+joA?>JuXC!f_&P zw^@q=rV8!i!Mg)qkwM+*F)9{&Dzlnfa~yg5)bZo?&F{R~di?RP%pA!b&&k`zcU{)b zb`DP6y#E*;`OpRp&me0gJo zWPwOd41?$mtCa!WV{mAk<5I6nnyus?4^sDy zgN;Vn&Bj2qfNseRd+}hjS<9W)^$G>>Gmx)eqcvOj_pThei=K!=(8EcM4vK0)H^LaC z)ED!BE`M&4e#c0~YNfq!Tg(>=Ob-#Pu)DY6pVo zetgg&JJ*F3$IOzn8w6RH7){Ez!f=>^EGHSi&dymz5*@@YdH9Y~wwVLQ1(zboe<%0^ zE)2?%+NCVo2h8D4F|hEPz0t(8oGVh@)k-aV)VvCn)TWS@i)%{dQmM2PF9MV&RNyFT zWGTPun+f}1wzN#LIhn&M2A#4ZfN5I!nrzAcq?Oy1MWAivl)RXm0DL%IT*fZ{^%$06 zAm8cx@|`;LCrI9aJPwMt)zhcfL42>BK5=401HM;jnIPx{r%wz^x94&kOn{ zo(tU0i@k512nd#}1}B`yZ@lrkTW`H}_4sipwX$cj^7a$+w@)8lT%5aP{w`+C=vj+@ zJ;~@5eB(~!vAD5$#Aq*;@CKI976%avabDnYLQJo$JNCI?2i3FR)<{k6$}}5!BRe`? z&l{PFQz>~y+R3(yxS>~6{Enx`cEMoK4^|#?jLc}W5g6H#@y2n>NENC@vd$U^sc@_E0ptTibG5u5jm)U~<;`b3b zeqMwzy;45p4eFoGZ%i61C#0UnU_8|Du1IeCPG=u`0Zx}DdNz*lgJKV2;vjv1?IS=KKTCLGNuI>VYB>V%l%y8(s*~=W zH~2GTr_S8xj*Sie_QcXz=t?XSgDjPUX%c;&J+RxK;zml6Iz-$p1<5JAt``1Wf+OL@5|H z65YrE#(^e&P7ogvAC6Y_&ikeWdYomn60u|a)4iHEKIZ*&ZP*(dKSxQqQ}IN=7N@A^ z(7LMTj(cO?@UT1Pjc+|md6JiKR^oO@VUf3tU8XD=xCn?#5=A?F^iZf+7`PiRMiyqidz1q4f}hjUX%c(5Q|^hjB%7?Z1h+n zk!cX5z#%?2J4;@0#c3b#Mm=HINGAHFrF5n-iW?e4_|ehiKcr#_ugxtVX;F8;hz+j* z(Wcyb0;rQ|O0k}>f5Mp<#+pLiI&#NJzuf*GSs5xo$WtnQZSs`2(2_#71fI>HZ-#c7 zk>I z>Lg#}LL^0T<0m3~eR>Fm@wOVTU;PCK~Bj*Dsx#(kSfwSI8&e*M5awgfn znaZS@Y%P29NR{AuIQA#OCg=1uFhetMGJA#?1nN^zPIcOl(Ix8XXiR48Q<>`ir3Mb) zPNtJ7sp{0+p-goTMouZy@pfd2M!7Tnz3!j6e@&I`TDM;GIy<~lc~@EeGSw_D@mQj+cYe(ma?cBed$plA_&Hg*q zaPE?tzT#*;lijng^YQQ`^%=KXOO1`@_RN&L9UZUO+7k>nQp4r!Y?PNGbN80^yq%$G zs~!X6Nc?Ohb}!19(o$c~F-!o_kOqiS_!gP58;-CY!v?y-e<98aKcUak|y* znD4yZ-R19Ul?;{7!T%s&`HXukX0(n!d|WD78oA+7?Oe}s$EOE-*WjTd@-f2#bO(&L% zP52QTsuDkus>YMGxJ3{wl}|b&$^VTt&DkVN{Hb9^I{^gn8@1q+F3pai%%!DkrQRKm^>wxo^^-q>_5Po5Yz zZx~5@0ndcl@1NC_WkZ>7f13;bdvHx8mXj~HTP@-XzfxVNu2(m!RduI2sUA>|&=1GS zc`7X}TB4W1Cc%>-wkDoU%k1`M#Sw4im*%WCEAY$Dfep~{P-^JLN^Jl>pnd8{QQmrH zsXMB=77i>C$W)yoKo6B_ySLC;1b#4w)r+w%S{7xd3Vh<3@Ad>9IuG5*Tv4#J`0`8h zvVaLT-=U&(sXbRHLi7R9DBq-$q5RG*%*px2sZLc8AnrIy0Rz%3!M8hCw3ZeCAaS7` zlV$Redb(S8G#L};M#n>i7Uw~!H@_(AcYzDBOzE79b8Qx9ml*<_$D}>x1?}7J6idDF z=6ta^+bNL|SQ4K21)>O2bt}()JnLSOL2GdJQjeHyuO6E$bqcfHxp~IV;*ymoS+4i~ zc+BvwfRtUS;jG&vdmN-LHOerE2<#*Q4J0!->gf_-2&C`oJS8|qh$4WN5Ffk(6+(e* z$@U;g5ZbOpJa5(JYaCKpXp->6Gh*T_!a?iO*)vd!aTuZwoCi8!x)?`*cAyHFfe3*q z2W4+LfV|88y1EvhawO;o*p88sZRZW2dJ9|&cq^*d+10YgFNL~Cm&6hv;gKsoZpKo+ zJzSRX0GU^IinS&uUE*-uS)5bKy;Tw>Xtb*8KxM_?U~Gz%P@&<)Kgjjqqa9$b_@Q9O~P3W5-DsXQSSX?VFj&Ve1pSK(0; zLx9%hT(G=zSNa+g78j)`!-!r(DRV2W9AY}D3g^uYrw~Y#*^VjdO3o>A&?sRjTk4(FqNxC??qyeaj=>S-=JR^s-!%d(Miy_;!1m>>#5_Qk{%&b2<{ z|Mf$^G;{$P70Hy)!DERbV}~N@!%AZUqA?gEdX#{_kZ_x^u(U{koe>&?KHU(jsIwp- zLuygrs%CHqUveSenP&kkFgk>|ujJ4~+z!STq)PdWhr+gl!yBPd$uRcHj^9*^D7` z7Y;SPjtkowL$oBbk0H~I{=@o1Vxa+XQwGA0U7CY^*k0sX#>f}{hm1U$l1C!_!Y0Nh z%tSoU_=qL0IYR1CvDtQoCyxST5zXUKS|n8_ZIwv*)JwC4=7%XHoqQJ$m|f_Ldi*K| zAZ8=DRYo+#9dt|SDx8a_2Rjc>S^{mX;pv9MP#(9Oo7f*K4C4NDw3q`$AjgP9%%8X< z&eibP6T1I$Fgb+uE+hdRJTHY+kRM685{8_xRMX|<3Sb0x4iR3YyE(9bv6Y1QkVEuE zu0bS$vfn`P56=QUo^H+E<7{BCMC6e|?8Hc+Z?cNQE(jg2-8L*IPwuHxhEmW>gXT{M zrL;>R+w|>x(RDt`9dW^Ow=(1qeN;M>hLE+@V`XBRK%YJWFZ!FX+Un+f&fF}s7VxC z?nLV7ay;6AjSEuD9?{7wnEUmLRb&5AcYeQ3$yWRC?U?i5{wDTk#*g_%Fw@I)I#`t9aYL+W zR5f+8s+%^6BXc1%6`nY8f{4Au?6o3r=G27?QS99mT|k9C&K!Do2hHVDq`?5;w3%zf zq}VY#65Q;z7dL+{AqLtVlR1_Do$IPT5zrVmNuVPIqbR>T|mC2+k4({AF&DA?G?{U^~F>J z`EnZCY5t87|U;c8woTy&{6e(@PryMixVQ3$Th0~Ti+`;`*4>JQmm8zKHu$zqR z2*7kpzxA@WU%elXyKisa=$&9UUA3?<|@$wh+doSMt`a+qpC0;#4?fR?nm)#@wnRtZTVr!J-$zZWl z_fzy)?0REC@GsaNd}RQey&}Fclu}6x(EcYPf*6-G3KbQiQzC=n5T!+By6rW5Xtq zklGh$IMbNAEN;bC-e0O`(v1wjn5GMVg6F#Rxvr;>e%?)F#L)^N-b zXyyH4a8@%?3s(`2LSdm;Thm=tzgg4m(j%qMY$``N!tdZv}FQ$whnPN$8OmqyuT8aC{t z$K}vVJl8VQPJxgCI)Tln&0pZCZS!0ht;ah;=vt7cI!e45GjC#RN4``XWD-FTN7}a< z2lEcK9_;*qF`(y;qxLL=dFngs{ngfaD5O?xeq6Cv!{msYZqlERFE6jPc*&#NnrAo9 zAI`JZ)>lBXjAo+N;cVx+%sQ z6zz2=LjbnNZj6H#wi}l;pe?0{f#2`rG(JbVPvdeaR3JaLoXZ=sG~Un~KO0bfhlG8u zDfH!rG5bI>mJw&KnM=Bi^t%h^+oVXGRSMkA5&BdnzqBG-Q-lNYu%%exm zYw%(2S-v)L^l0MRWfuFNr~2*~TX9yllZ8`3kAUy)-NE2fo{vt7)SN%!-xjZ`v{F~+ z-duwBim+QC7p5tdByJmCAALwC-Vj~DQMa|MMLI3`qV9$X-B5ym)s5+Vs6LX z;a)>)wxsC9Q}nIA4dD66OV;3aZM9UT;})+!UUoZwbN%&2x6^U&(5>wFEuDtrwARD# z!LsgxHXsve>S#`~z{?jvk4XI$C{Ic-#ESQ9(Bq|r7gwu0n^rzK4N;qZlvJVRARKQ6mB;ru6ICie0+aFqWp<}YZ<4;w0MlJbyrWWW0^DXnv}&mu-RYr$HWyKd zq#CCYTC>tv$aZmC>O^h4L(JH8&yTr{-44v%(+#&i-t zoxylim|a*~94n2W6X$~MB$ALjCJ~~TU-1)&{wQW7e#Il?UA-PO*xf_-@}w4)v{8J} zz+@h0q+!Eyvw#kp;~FbsiLosu1wbbt>c!Y@cf?{IZxhyFD(`ASQ9OD`c*uoGVR*3< z@-AjxabF0)1m@e=uy~*VkJtn=@nv9WA-^%yP+({Q>ULs&iFsz@SK-UULMG)>vFVdA zOyN|`UU;#?@;Ew>?45OoISm>S!PBHky>Mb~G>w@Y#~2k&2|JB^O>D7z9P~PV8j|qf zU~~#qujJSjw_0#2>EZnOZ63~0j|=+{&U(f=Bb+hLh(}6^e5404(nH4a9~(UQx*I*Z zgWhHCp{g4_&Zv8M^pn}kyu(#Dl7E9fDw^^?w}*yjer~Fg zziiqn@ zJDgB(nUI*Xm>ITT&-racj+ttPKcYs3VUj4}--EbL(nhyk+^H=>$hAy$w3->49=l{1 ze|vJ;PgaL@NIje@x32YN+vt_9^E+PKcfKBJDz4$%&qvQGWMyUy5a>h3Z#^eOC7M2j zs-pK3h}HH1D7H@F1y|ufttx&|!|^CoK}y`_Hy_pNh0T+A$u`j*4xmY{Ys=o!c+PM- zLl>t%if$v?gUSN*JJnyOvk<)J_|G^f+;oi3pWT#?;DalA#^1|)e}jxhNwLyIJmT@g z^%oZASXd$vQ=qisg$!d&k^!L2R+&LtqNj*Ia*&v{wcK4<7s?zfmjUqaWHLERzUsUz z%5`SFaW8A9En(xK&bbt;fm$^YpOLrq&83UF)S82D!*RyS1SErEW+huR$sMM)b9NQAg4)=T0$4EOGJa5rk!nz2v#MlnW z^A-t4Z>Hx69t5Y3ULzz6gD;lu2Res!32PXzr6Bi^0D>I3K18Lgqc^csmv8=+l*f27 znJp)uO#ZlmE%|mYfESA;Di-mQ)OdtqSPN)6No~nej_pgIlu*Ij;VksXw-Esl>N8@m z3m=Vm>O=xC`H=b`BT$&bKa%~fU-@7fHc(f^^`7_KnY!k*&YoMh{RK^T2L!iDn+ac`M|Pxe4D%qX8NyBPt8xIciQ&O z!2%l$h-^7&IL{4jaPFvnYJeYJi`0;Ej0?e4uX7khmD)HJR_&_+hVIvZ)8=bv#(2{- zI}*6)3#$~nAX_Ms-$VZ$Us{cOlDzUEy33gS$3SSB994qE0Dr7Svc?G_Xd(*<6Tkq) zxe9Zv7A^fQ_KM7EMnK?0pUn9HTh`C?^PD(jN$ zTg$DIp4iXAzcZ4ESHT^&@!?Wtz{z>TnIF0&KU}WX_j;~hD&&HEH0O)o?PYSKXoyf! z2}J=f8L(7utl@ zLs1+CN_wK}nIX7XZzXOW9=PEC45<5J;Ej>rawrWN_F@usMg>HfmrV%RaFu92o3#s% z5gQO ziih8%-gMHZ!a%}yJ%Jx0==eGQAEln$J38LdlGlFdYdZQCi{&Lvno8JAC5}%}&YH7Q zb#zH_$4fj8T^qp&Gihx45kd~|XlJt)S>miGBoKE1&7mDqvFJ^Bd5lB>GyrkC997_P zK;=Y*CW$d+U+u$H*>RW1_rRJD=i(M|uL+RbS1}T0($mfkWR(|}B*FwWNOVj~{N1?r z#IeYe7>$<>BuIr8SVl(Gjf3h3ljJ#BWP6sy@kLAb%8y~F(PO4liIO*zl7k2t~ zu~@MEokfS7uhEQTg8TMDGWoh%GHFau|Kbg5N^XZRrlGDZwwt5FB_b70X?T?KuvZbV zByiGKX&fZDMbc{7A8!no3%D~X!;NvjVyQQE49n`$W^bXNg|cRFe{UW-v+WK6^K9KA ziF5S1m%Bq8{F??7LQ1SnZ8OnTsW?JBt|=9hQ45NeI2!o6*$zdxm~}fq&heewA?Lga zU0(EhnG&J}Baxwh@SVQnWz12Q_B8dCyjbx@hEH(l}axRK^h~%41g zS1bp$gO|^q%+=E>4IhxEy*WyOyms)b`F8eN@4AvPdGts#z4#uNE$TVk%$hYwszhj5 z+NOLBucP^$ucL#u_NwPEpE&XACqJPbEX>Hi6?tKmM)HInS%YOOS|2h+h3n(2Ekx@R z%;&Xe*<}5WXxTx&%tXtA^}K<*0|&qw4+}nAHduZnT8^>&zGzw4^gb3XCx|kAGFmoS z|0~h5Lv6d?jFwYFZI!=v(x0(_Ife{N@KAXv|H|%|)w@ z-*Z<(wr|}1-~*5F_E6)dH$VK=+wW`K@W@+FzWKq%B@dpw>z+p*IlX6QMz*-?zWW}W zzVpHRhwdDDaOmXFoAu`d#2xM$IyLmxq5ELie&|KNy>QE$*zzG*xZlkF4-7T1*Tf2$ zd(l3}iDTTwuY=<^Xe-(N5!T7lLww%EuMcz1+c|54c723pxuOU8b_wq%Il?`xePrnL z&>o(_%;qufVvqaSVp^Z|{?PUq^nX5I^it>XZiq*Nd4&i~QrXH;DV0_(nn*@v@do+i z*5nl=5n!lL+ZaO-3Zwf9j-sK))VOM@3Dr_0$FB12VI;@VUOVp+6sJcvDuC7qWz-O(ftJKx%8g(s5t=ECox#V!Y~7-6Rj*fXP`9ZQ;J4nW-lT3VEZrdQhEK zXVgRLVfBc5t9qMyR6VBNt{zw4rQV_5sotgDt=^;FtKO&9)D!Cc>I3S7>buqVs1KFW>L=A_ z)K96OR-aX8)z7G(Ri9Hor+!}jg8D`EOX~CLm({;e|BLz+^#%1W)vv1mRXwB5ssBy= zn)-G1MfI=Lm(*{l-&D`4-%|ft{kHly>UY$?RllqL9Z%+h`aSh!_511%)E}xpQh%)e zM14j5srvWoKdAqx{*(IO)t{+9R~zc9>ic6W0rv6@iU0qcFp#D+)cl8bRKh!tX|E2y(eM>#BzHJOKqe?7GV`zXJBmvSnM#@MV zF63kxBWvUgg7HQk5CDN_qij@+sxfTTj1h`1){TZSW{ew6W5Q?|ZKGrCFm@Wdj7ek4 z*bRDR#+WtcjCrGLEEtQ%lF>8z#ZZd8*ZZU2(UT?g?xXn0WtQv1L-elZv++o~l zoHXt-?lw*t_ZV+B?ls|j~H(?-ex>%JZ8Mzc-;6d;~mC3 zjdvOEHr`{r*La_?W;|iM-}r#>Kl`|@CE0Nsy2X(?sKbPNy=zx(*?w@9pY&0b#Fltl z615E7qxk`+b*15gk17WP*5HuiS*4)!X0Cwmur zH+v6zFMA(*Kl=dtAo~#eF#8DmDEk=uIQsNQmH2VzuEc+b$Jo^IsBKs2iGW!bq zD*GDyI{OCuCi@oqHv10yF8dz)KKlXtA^Q>gG5ZPoDf=1wIr|0sCHocoHTw7( zw)O9MARz7d;-KN@Y|rPMUSf`XScDNb%(%6@Y}WkFY1l6gYA~s1Rt5GhbZ)E~W`SN5 zKyAF-ZaraIZW>~e$;+JKONWmRiSyg7nUY%CR*Sy^|H`X>`HC~ zD8(yKb`I)jguW_nU3GePTt+~viJNpj%$G< z)M683WGCBJR8Jy@%36y&$kykwiSdU#X$Rjv)b_GjnCjo*q(x|QT`dukT+{w%Wh;ka zgaCGj10iY)-c|k(TAcYhux=nG^~?grUF6D`gos(Gb~_=^8MG}Q!b%w!rSlHMbNHl? zy|}@%6Fs~vP3a6Z3Y(Kib0oyXxgLk3+JmTQF3s8EIdEfgpMzpGu?QGap&>j6*(wW@ zh7krHgyuCgwWzT35*tq{1m=={{5dQtZh1kWRSAR=?f-J3Z0^tRG-BTzM(#5|M^A%= zu?gPhuE*QtPKxT~|EKrHM}uU-+3eRmSK&>Mq&wFGix8;yFMi$sRC>dskyh1bGoLaW>#0IZig;5Fw)%T*bH$l)MO!8vP z>A4D`fjcwNT4>il335swu5G^4yc5x&D0^|zz{?PglVL9fF{YJ!KPv`PH0E9&-|W|q z5n-$t@&XgjdEmc_8}sA9oAY6cz-)S_8d6W zT&D`zimZ~mU5=_FsBT~wN?(T2#Q*CFe%Q`qQ?uXm7iq*lC4OH zo|8`~S14;X^n)yJ`G~zO0O4{l(yT={*fBrK9))S;aXL6X_4HiamaVHqCT<7bR~~3U zB61+Hgu;lMOpFmPs|%0|;73L0y8?+&F&q3^6g4~m!n44oyB0^Z+@V}~Z_Pag$fxIq zelR28(Kd3eMD^0+G^hsA({f%lsj*s81A3EMqKMZhI4DZMC!5uTP(V6KVowfSizU%J zVavu-h>u#lM6$u5)@kvILk@(ZQ$0tHCdG;uAL&;FwXc69u2pVTUN*e1g?ahWa4(M2 z;MIQ*UXlRWf~wDlp&d8({GbMJyB{Ta;|hOfs;5nRuC=rPk&<8(__B@spw%N(6n^%MHK*2*EfM;z%c zx8oqz4VJ{w`)Ei#GjHH7#8c9s&|fx6%RAs5pkE{QQW&pnD*Hm+&X5%-Sc&X+3N-o@ zJI7{s{QGFdIKZz_dTC{mkdip^2 z%o!_pGZh(c8-8tq>Hk`|+{Y)~y8Yxf4Js6lwK{#4x zur{3*plu!#_qwGnyl^do)LFHYw`UTAoZPo!dD7WCfsK?fTWzePj<34@l^LWBVaH1~R0i(WN14S--yofj~A(JBNmCS@S@0do@~XC1G5 zVV5131Pr`Nh{`%X#2|h`cyOzFT60JFi1TDWt}YJ z3Kt-k9Ra9??yQs4vadTJJ)+I`SP7M!t1i}|STao7IU~!Yb5<+}SSXn@Pk5x9gQN~1 z>s21fq*qp4(+}Mla*GOtbH(f^Sty|Wj+bIh`IHYD1ymf@O4q!XcmB*~@bdsy52!L| z3>O1O{VsXG@_l8<^@QjQm_PvzB_ff7RBmU1Ob5w(wHzd>7hGd62HCIi2b`y(W5-!w zRFbqex)nPJeqkmXxt3wYLc5*9Qiu}Ukac%V&QQfPDo#I*zQUr z76`152r>BDN0C{f-XU;uzytpGcc8-+ATS9cPh|i&gkWC^GY1J|fQv24 zG`e=7XMy*R1KudG1N129>oCvLmd2HePA91UImv@bzGBV8qSFEU5r^64u{Z|17Q++t_%t`B5a2pY$A<}Ma#PmbqFJO zcjGED{+1l*1Q*ci#(Q7qqCZGnG%35bQ3RjEFJ>0ljS&`|b8T|!7#0(kdOVn!MvAtY z8}xoCnhXC#c+U(a|}*VOJQcNij|_I7u!8 ziPkNE_hRBxi)b>b)v$hpgF;IiKf>K})R=5fW4>!xome-_EkYHh-B3H2Biqo{m(7^t zy7Bap2wvMh6wVyFzqWef`bWJbhJ3|#J(a)g{sO<9oR<4Jm&iDOm78`q@e2_C3bj0R zQ~L)hUZgXSKmuPrK?2Tt1PVKJ?4U0Xa4){wpdCeLrOhnx$q~1-`H^eVOphG*jqKP+ z8=@H`QZuI + + + ts-blank-space playground + + + + + + + + +
+
+

ts-

+
+
+

blank-space

+ + + + + + + + +
+
+
+
+
+ + + + diff --git a/play/play.css b/play/play.css new file mode 100644 index 0000000..dc11dc8 --- /dev/null +++ b/play/play.css @@ -0,0 +1 @@ +.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-editor,.monaco-diff-editor .synthetic-focus,.monaco-diff-editor [tabindex="0"]:focus,.monaco-diff-editor [tabindex="-1"]:focus,.monaco-diff-editor button:focus,.monaco-diff-editor input[type=button]:focus,.monaco-diff-editor input[type=checkbox]:focus,.monaco-diff-editor input[type=search]:focus,.monaco-diff-editor input[type=text]:focus,.monaco-diff-editor select:focus,.monaco-diff-editor textarea:focus{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:var(--vscode-focusBorder);opacity:1}.monaco-aria-container{position:absolute;left:-999em}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);background-color:var(--vscode-editor-background)}.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-rangeHighlightBorder)}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-symbolHighlightBorder)}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .view-overlays>div,.monaco-editor .margin-view-overlays>div{position:absolute;width:100%}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorError-background)}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorWarning-background)}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorInfo-background)}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground, inherit)}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent;z-index:-10}.monaco-editor .inputarea.ime-input{z-index:10;caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground)}.monaco-editor .margin-view-overlays .line-numbers{bottom:0;font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-mouse-cursor-text{cursor:text}.monaco-editor .blockDecorations-container{position:absolute;top:0;pointer-events:none}.monaco-editor .blockDecorations-block{position:absolute;box-sizing:border-box}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box;height:100%}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute;height:100%}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box;height:100%}.mtkcontrol{color:#fff!important;background:#960000!important}.mtkoverflow{background-color:var(--vscode-button-background, var(--vscode-editor-background));color:var(--vscode-button-foreground, var(--vscode-editor-foreground));border-width:1px;border-style:solid;border-color:var(--vscode-contrastBorder);border-radius:2px;padding:4px;cursor:pointer}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{user-select:text;-webkit-user-select:text;-ms-user-select:text}.monaco-editor.enable-user-select{user-select:initial;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .lines-content>.view-lines>.view-line>span{top:0;bottom:0;position:absolute}.monaco-editor .mtkw{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .lines-decorations{position:absolute;top:0;background:#fff}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .minimap{z-index:5}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0;box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .mwh{position:absolute;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-workbench .workbench-hover{position:relative;font-size:13px;line-height:19px;z-index:40;overflow:hidden;max-width:700px;background:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px;color:var(--vscode-editorHoverWidget-foreground);box-shadow:0 2px 8px var(--vscode-widget-shadow)}.monaco-workbench .workbench-hover hr{border-bottom:none}.monaco-workbench .workbench-hover:not(.skip-fade-in){animation:fadein .1s linear}.monaco-workbench .workbench-hover.compact{font-size:12px}.monaco-workbench .workbench-hover.compact .hover-contents{padding:2px 8px}.monaco-workbench .workbench-hover-container.locked .workbench-hover{outline:1px solid var(--vscode-editorHoverWidget-border)}.monaco-workbench .workbench-hover-container.locked .workbench-hover:focus,.monaco-workbench .workbench-hover-lock:focus{outline:1px solid var(--vscode-focusBorder)}.monaco-workbench .workbench-hover-container.locked .workbench-hover-lock:hover{background:var(--vscode-toolbar-hoverBackground)}.monaco-workbench .workbench-hover-pointer{position:absolute;z-index:41;pointer-events:none}.monaco-workbench .workbench-hover-pointer:after{content:"";position:absolute;width:5px;height:5px;background-color:var(--vscode-editorHoverWidget-background);border-right:1px solid var(--vscode-editorHoverWidget-border);border-bottom:1px solid var(--vscode-editorHoverWidget-border)}.monaco-workbench .locked .workbench-hover-pointer:after{width:4px;height:4px;border-right-width:2px;border-bottom-width:2px}.monaco-workbench .workbench-hover-pointer.left{left:-3px}.monaco-workbench .workbench-hover-pointer.right{right:3px}.monaco-workbench .workbench-hover-pointer.top{top:-3px}.monaco-workbench .workbench-hover-pointer.bottom{bottom:3px}.monaco-workbench .workbench-hover-pointer.left:after{transform:rotate(135deg)}.monaco-workbench .workbench-hover-pointer.right:after{transform:rotate(315deg)}.monaco-workbench .workbench-hover-pointer.top:after{transform:rotate(225deg)}.monaco-workbench .workbench-hover-pointer.bottom:after{transform:rotate(45deg)}.monaco-workbench .workbench-hover a{color:var(--vscode-textLink-foreground)}.monaco-workbench .workbench-hover a:focus{outline:1px solid;outline-offset:-1px;text-decoration:underline;outline-color:var(--vscode-focusBorder)}.monaco-workbench .workbench-hover a:hover,.monaco-workbench .workbench-hover a:active{color:var(--vscode-textLink-activeForeground)}.monaco-workbench .workbench-hover code{background:var(--vscode-textCodeBlock-background)}.monaco-workbench .workbench-hover .hover-row .actions{background:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-workbench .workbench-hover.right-aligned{left:1px}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions{flex-direction:row-reverse}.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions .action-container{margin-right:0;margin-left:16px}.monaco-hover{cursor:default;position:absolute;overflow:hidden;user-select:text;-webkit-user-select:text;box-sizing:border-box;animation:fadein .1s linear;line-height:1.5em;white-space:var(--vscode-hover-whiteSpace, normal)}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:var(--vscode-hover-maxWidth, 500px);word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace, pre-wrap)}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px;width:100%}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground)}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);vertical-align:middle;padding:1px 3px}.rendered-markdown li:has(input[type=checkbox]){list-style-type:none}.context-view{position:absolute}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;color:inherit}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list .monaco-scrollable-element>.scrollbar.vertical,.monaco-pane-view>.monaco-split-view2.vertical>.monaco-scrollable-element>.scrollbar.vertical{z-index:14}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-select-box-dropdown-padding{--dropdown-padding-top: 1px;--dropdown-padding-bottom: 1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top: 3px;--dropdown-padding-bottom: 4px}.monaco-select-box-dropdown-container{display:none;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{line-height:15px;font-family:var(--monaco-monospace-font)}.monaco-select-box-dropdown-container.visible{display:flex;flex-direction:column;text-align:left;width:1px;overflow:hidden;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{flex:0 0 auto;align-self:flex-start;padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;width:100%;overflow:hidden;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left;opacity:.7}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{text-overflow:ellipsis;overflow:hidden;padding-right:10px;white-space:nowrap;float:right}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{flex:1 1 auto;align-self:flex-start;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{overflow:hidden;max-height:0px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-select-box{width:100%;cursor:pointer;border-radius:2px}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-width:100px;min-height:18px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{font-size:11px;border-radius:5px}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{display:flex;font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{color:var(--vscode-disabledForeground)}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{display:flex;align-items:center;cursor:default}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px #0F4A85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-custom-toggle{margin-left:2px;float:left;cursor:pointer;overflow:hidden;width:20px;height:20px;border-radius:3px;border:1px solid transparent;padding:1px;box-sizing:border-box;user-select:none;-webkit-user-select:none}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-light .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-action-bar .checkbox-action-item{display:flex;align-items:center}.monaco-action-bar .checkbox-action-item>.monaco-custom-toggle.monaco-checkbox{margin-right:4px}.monaco-action-bar .checkbox-action-item>.checkbox-label{font-size:12px}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}.quick-input-widget{position:absolute;width:600px;z-index:2550;left:50%;margin-left:-300px;-webkit-app-region:no-drag;border-radius:6px}.quick-input-titlebar{display:flex;align-items:center;border-radius:inherit}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{margin:4px 2px;flex:1}.quick-input-header{display:flex;padding:8px 6px 2px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:25px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{overflow:hidden;max-height:440px;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;display:flex;align-items:center;justify-content:center}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{font-weight:700;background-color:unset;color:var(--vscode-list-highlightForeground)!important}.quick-input-list .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight{color:var(--vscode-list-focusHighlightForeground)!important}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.passive-focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.quick-input-list .quick-input-list-separator-as-item{padding:4px 6px;font-size:12px}.quick-input-list .quick-input-list-separator-as-item .label-name{font-weight:600}.quick-input-list .quick-input-list-separator-as-item .label-description{opacity:1!important}.quick-input-list .monaco-tree-sticky-row .quick-input-list-entry.quick-input-list-separator-as-item.quick-input-list-separator-border{border-top-style:none}.quick-input-list .monaco-tree-sticky-row{padding:0 5px}.quick-input-list .monaco-tl-twistie{display:none!important}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;border-radius:2px;text-align:center;cursor:pointer;justify-content:center;align-items:center;border:1px solid var(--vscode-button-border, transparent);line-height:18px}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button .codicon{margin:0 .2em;color:inherit!important}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;padding:0 4px;overflow:hidden;height:28px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;width:0;overflow:hidden}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{display:flex;justify-content:center;align-items:center;font-weight:400;font-style:inherit;padding:4px 0}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus,.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{padding:4px 0;cursor:default}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{border:1px solid var(--vscode-button-border, transparent);border-left-width:0!important;border-radius:0 2px 2px 0;display:flex;align-items:center}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{display:flex;flex-direction:column;align-items:center;margin:4px 5px}.monaco-description-button .monaco-button-description{font-style:italic;font-size:11px;padding:4px 20px}.monaco-description-button .monaco-button-label,.monaco-description-button .monaco-button-description{display:flex;justify-content:center;align-items:center}.monaco-description-button .monaco-button-label>.codicon,.monaco-description-button .monaco-button-description>.codicon{margin:0 .2em;color:inherit!important}.monaco-button.default-colors,.monaco-button-dropdown.default-colors>.monaco-button{color:var(--vscode-button-foreground);background-color:var(--vscode-button-background)}.monaco-button.default-colors:hover,.monaco-button-dropdown.default-colors>.monaco-button:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button.default-colors.secondary,.monaco-button-dropdown.default-colors>.monaco-button.secondary{color:var(--vscode-button-secondaryForeground);background-color:var(--vscode-button-secondaryBackground)}.monaco-button.default-colors.secondary:hover,.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-top:1px solid var(--vscode-button-border);border-bottom:1px solid var(--vscode-button-border)}.monaco-button-dropdown.default-colors .monaco-button.secondary+.monaco-button-dropdown-separator{background-color:var(--vscode-button-secondaryBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator>div{background-color:var(--vscode-button-separator)}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-progress-container{width:100%;height:2px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:2px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;transform:translateZ(0);animation-timing-function:linear}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;border-radius:2px;font-size:inherit}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls,.hc-light .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls,.hc-light .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:#fdff00cc}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:#fdff00cc}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:#ffffff70}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:#ffffff70}99%{background:transparent}}:root{--vscode-sash-size: 4px;--vscode-sash-hover-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--vscode-sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--vscode-sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--vscode-sash-size) * 2);width:calc(var(--vscode-sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size) * -.5);top:calc(var(--vscode-sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--vscode-sash-size) * -.5);bottom:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--vscode-sash-size) * -.5);left:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--vscode-sash-size) * -.5);right:calc(var(--vscode-sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;background:transparent}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.hover:before,.monaco-sash.active:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{width:var(--vscode-sash-hover-size);left:calc(50% - (var(--vscode-sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - (var(--vscode-sash-hover-size) / 2))}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:#0ff}.monaco-sash.debug.disabled{background:#0ff3}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap;overflow:hidden}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--vscode-sash-size) / 2);width:0;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{position:absolute;top:0;display:flex;padding:3px;max-width:200px;z-index:100;margin:0 6px;border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{display:flex!important;align-items:center;justify-content:center;cursor:grab;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container{position:absolute;top:0;left:0;width:100%;height:0;z-index:13;background-color:var(--vscode-sideBar-background)}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{position:absolute;width:100%;opacity:1!important;overflow:hidden;background-color:var(--vscode-sideBar-background)}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row:hover{background-color:var(--vscode-list-hoverBackground)!important;cursor:pointer}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty,.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty .monaco-tree-sticky-container-shadow{display:none}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow{position:absolute;bottom:-3px;left:0;height:0px;width:100%}.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container[tabindex="0"]:focus{outline:none}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label-iconpath{width:16px;height:16px;padding-left:2px;margin-top:2px;display:flex}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-suffix-container>.label-suffix{opacity:.7;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{height:0px;transform:translateY(-10px);font-size:13px;line-height:14px}.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines .bottom.dragging{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .top,.monaco-editor .diff-hidden-lines .bottom{transition:background-color .1s ease-out;height:4px;background-color:transparent;background-clip:padding-box;border-bottom:2px solid transparent;border-top:4px solid transparent}.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *,.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom){cursor:n-resize!important}.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *,.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom{cursor:s-resize!important}.monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *,.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,.monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom{cursor:ns-resize!important}.monaco-editor .diff-hidden-lines .top{transform:translateY(4px)}.monaco-editor .diff-hidden-lines .bottom{transform:translateY(-6px)}.monaco-editor .diff-unchanged-lines{background:var(--vscode-diffEditor-unchangedCodeBackground)}.monaco-editor .noModificationsOverlay{z-index:1;background:var(--vscode-editor-background);display:flex;justify-content:center;align-items:center}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);color:var(--vscode-diffEditor-unchangedRegionForeground);overflow:hidden;display:block;text-overflow:ellipsis;white-space:nowrap;height:24px;box-shadow:inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow),inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow)}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .diff-hidden-lines div.breadcrumb-item{cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover{color:var(--vscode-editorLink-activeForeground)}.monaco-editor .movedOriginal,.monaco-editor .movedModified{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedOriginal.currentMove,.monaco-editor .movedModified.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path.currentMove{stroke:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path{pointer-events:visiblestroke}.monaco-diff-editor .moved-blocks-lines .arrow{fill:var(--vscode-diffEditor-move-border)}.monaco-diff-editor .moved-blocks-lines .arrow.currentMove{fill:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines .arrow-rectangle{fill:var(--vscode-editor-background)}.monaco-diff-editor .moved-blocks-lines{position:absolute;pointer-events:none}.monaco-diff-editor .moved-blocks-lines path{fill:none;stroke:var(--vscode-diffEditor-move-border);stroke-width:2}.monaco-editor .char-delete.diff-range-empty{margin-left:-1px;border-left:solid var(--vscode-diffEditor-removedTextBackground) 3px}.monaco-editor .char-insert.diff-range-empty{border-left:solid var(--vscode-diffEditor-insertedTextBackground) 3px}.monaco-editor .fold-unchanged{cursor:pointer}.monaco-diff-editor .diff-moved-code-block{display:flex;justify-content:flex-end;margin-top:-4px}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{width:12px;height:12px;font-size:12px}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:#00000008}.monaco-diff-editor.vs-dark .diffOverview{background:#ffffff03}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:#0000}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:#ababab66}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign,.monaco-editor.hc-light .insert-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{z-index:10;position:absolute}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-editor .char-insert,.monaco-diff-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .line-insert,.monaco-diff-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground, var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .line-insert,.monaco-editor .char-insert{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-insertedTextBorder)}.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .line-insert,.monaco-editor.hc-black .char-insert,.monaco-editor.hc-light .char-insert{border-style:dashed}.monaco-editor .line-delete,.monaco-editor .char-delete{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-removedTextBorder)}.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .line-delete,.monaco-editor.hc-black .char-delete,.monaco-editor.hc-light .char-delete{border-style:dashed}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .gutter-insert,.monaco-diff-editor .gutter-insert{background-color:var(--vscode-diffEditorGutter-insertedLineBackground, var(--vscode-diffEditor-insertedLineBackground), var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-delete,.monaco-diff-editor .char-delete{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .line-delete,.monaco-diff-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground, var(--vscode-diffEditor-removedTextBackground))}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .gutter-delete,.monaco-diff-editor .gutter-delete{background-color:var(--vscode-diffEditorGutter-removedLineBackground, var(--vscode-diffEditor-removedLineBackground), var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow);border-left:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor.side-by-side .editor.original{box-shadow:6px 0 5px -5px var(--vscode-scrollbar-shadow);border-right:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-editor .diagonal-fill{background-image:linear-gradient(-45deg,var(--vscode-diffEditor-diagonalFill) 12.5%,#0000 12.5%,#0000 50%,var(--vscode-diffEditor-diagonalFill) 50%,var(--vscode-diffEditor-diagonalFill) 62.5%,#0000 62.5%,#0000 100%);background-size:8px 8px}.monaco-diff-editor .gutter{position:relative;overflow:hidden;flex-shrink:0;flex-grow:0;>div{position:absolute}.gutterItem{opacity:0;transition:opacity .7s;&.showAlways{opacity:1;transition:none}&.noTransition{transition:none}}&:hover .gutterItem{opacity:1;transition:opacity .1s ease-in-out}.gutterItem{.background{position:absolute;height:100%;left:50%;width:1px;border-left:2px var(--vscode-menu-border) solid}.buttons{position:absolute;width:100%;display:flex;justify-content:center;align-items:center;.monaco-toolbar{height:fit-content;.monaco-action-bar{line-height:1;.actions-container{width:fit-content;border-radius:4px;background:var(--vscode-editorGutter-commentRangeForeground);.action-item{&:hover{background:var(--vscode-toolbar-hoverBackground)}.action-label{padding:1px 2px}}}}}}}}.monaco-component.diff-review{user-select:none;-webkit-user-select:none;z-index:99}.monaco-diff-editor .diff-review{position:absolute}.monaco-component.diff-review .diff-review-line-number{text-align:right;display:inline-block;color:var(--vscode-editorLineNumber-foreground)}.monaco-component.diff-review .diff-review-summary{padding-left:10px}.monaco-component.diff-review .diff-review-shadow{position:absolute;box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset}.monaco-component.diff-review .diff-review-row{white-space:pre}.monaco-component.diff-review .diff-review-table{display:table;min-width:100%}.monaco-component.diff-review .diff-review-row{display:table-row;width:100%}.monaco-component.diff-review .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-component.diff-review .diff-review-spacer>.codicon{font-size:9px!important}.monaco-component.diff-review .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px;z-index:100}.monaco-component.diff-review .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.monaco-component.diff-review .revertButton{cursor:pointer}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}.monaco-component.multiDiffEditor{background:var(--vscode-multiDiffEditor-background);position:relative;height:100%;width:100%;overflow-y:hidden;>div{position:absolute;top:0;left:0;height:100%;width:100%;&.placeholder{visibility:hidden;&.visible{visibility:visible}display:grid;place-items:center;place-content:center}}.active{--vscode-multiDiffEditor-border: var(--vscode-focusBorder)}.multiDiffEntry{display:flex;flex-direction:column;flex:1;overflow:hidden;.collapse-button{margin:0 5px;cursor:pointer;a{display:block}}.header{z-index:1000;background:var(--vscode-editor-background);&:not(.collapsed) .header-content{border-bottom:1px solid var(--vscode-sideBarSectionHeader-border)}.header-content{margin:8px 0 0;padding:4px 5px;border-top:1px solid var(--vscode-multiDiffEditor-border);display:flex;align-items:center;color:var(--vscode-foreground);background:var(--vscode-multiDiffEditor-headerBackground);&.shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px}.file-path{display:flex;flex:1;min-width:0;.title{font-size:14px;line-height:22px;&.original{flex:1;min-width:0;text-overflow:ellipsis}}.status{font-weight:600;opacity:.75;margin:0 10px;line-height:22px}}.actions{padding:0 8px}}}.editorParent{flex:1;display:flex;flex-direction:column;border-bottom:1px solid var(--vscode-multiDiffEditor-border);overflow:hidden}.editorContainer{flex:1}}}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box;background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border)}.inline-editor-progress-decoration{display:inline-block;width:1em;height:1em}.inline-progress-widget{display:flex!important;justify-content:center;align-items:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{font-size:90%!important;animation:none}.inline-progress-widget:hover .icon:before{content:var(--vscode-icon-x-content);font-family:var(--vscode-icon-x-font-family)}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:2px 4px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0px}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute;left:2px}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.post-edit-widget{box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:1px solid var(--vscode-widget-border, transparent);border-radius:4px;background-color:var(--vscode-editorWidget-background);overflow:hidden}.post-edit-widget .monaco-button{padding:2px;border:none;border-radius:0}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}@font-face{font-family:codicon;font-display:block;src:url("./codicon-37A3DWZT.ttf") format("truetype")}.codicon[class*=codicon-]{font: 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-value,.monaco-editor .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-enum{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.monaco-editor .lightBulbWidget{display:flex;align-items:center;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix,.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground, var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget.codicon-sparkle-filled{color:var(--vscode-editorLightBulbAi-foreground, var(--vscode-icon-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{position:absolute;top:0;left:0;content:"";display:block;width:100%;height:100%;opacity:.3;background-color:var(--vscode-editor-background);z-index:1}.action-widget{font-size:13px;min-width:160px;max-width:80vw;z-index:40;display:block;width:100%;border:1px solid var(--vscode-editorWidget-border)!important;border-radius:2px;background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground)}.context-view-block{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:-1}.context-view-pointerBlock{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:2}.action-widget .monaco-list{user-select:none;-webkit-user-select:none;border:none!important;border-width:0!important}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{padding:0 10px;white-space:nowrap;cursor:pointer;touch-action:none;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-quickInputList-focusBackground)!important;color:var(--vscode-quickInputList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder, transparent);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-descriptionForeground)!important;font-weight:600}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled:before,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before{cursor:default!important;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background-color:transparent!important;outline:0 solid!important}.action-widget .monaco-list-row.action{display:flex;gap:6px;align-items:center}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1;overflow:hidden;text-overflow:ellipsis}.action-widget .monaco-list-row.action .monaco-keybinding>.monaco-keybinding-key{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow)}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorHoverWidget-statusBarBackground);border-top:1px solid var(--vscode-editorHoverWidget-border)}.action-widget .action-widget-action-bar:before{display:block;content:"";width:100%}.action-widget .action-widget-action-bar .actions-container{padding:0 8px}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:transparent!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize);padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault)}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{user-select:none;-webkit-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize)}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:solid .1em #000;box-sizing:border-box;margin:.1em .2em 0;width:.8em;height:.8em;line-height:.8em;display:inline-block;cursor:pointer}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:solid .1em #eee}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:240px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1;white-space:nowrap;overflow:hidden}.colorpicker-header .picked-color .picked-color-presentation{white-space:nowrap;margin-left:5px;margin-right:5px}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.standalone-colorpicker{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{cursor:pointer;background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header .close-button-inner-div{width:100%;height:100%;text-align:center}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .standalone-strip{width:25px;height:122px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{display:block;border:1px solid transparent;border-bottom:1px solid var(--vscode-editorHoverWidget-border);overflow:hidden}.colorpicker-body .insert-button{position:absolute;height:20px;width:58px;padding:0;right:8px;bottom:8px;background:var(--vscode-button-background);color:var(--vscode-button-foreground);border-radius:2px;border:none;cursor:pointer}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .inlineSuggestionsHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{display:flex;min-width:19px;justify-content:center}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;justify-content:space-between;flex-wrap:nowrap}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:baseline;font-size:13px;margin-left:20px;min-width:0;text-overflow:ellipsis;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px;align-self:center}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px;background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground)}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%;color:var(--vscode-peekViewResult-fileForeground)}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder, transparent);box-sizing:border-box}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover-content{padding-right:2px;padding-bottom:2px;box-sizing:border-box}.monaco-editor .monaco-hover{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row{display:flex}.monaco-editor .monaco-hover .hover-row .hover-row-contents{min-width:0;display:flex;flex-direction:column}.monaco-editor .monaco-hover .hover-row .verbosity-actions{display:flex;flex-direction:column;padding-left:5px;padding-right:5px;justify-content:end;border-right:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon{cursor:pointer;font-size:11px}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.enabled{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.disabled{opacity:.6}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor.vs .dnd-target,.monaco-editor.hc-light .dnd-target{border-right:2px dotted black;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #AEAFAD;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:2px solid var(--vscode-contrastBorder)}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px));box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground);border-left:1px solid var(--vscode-widget-border);border-right:1px solid var(--vscode-widget-border);border-bottom:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px;background-color:var(--vscode-editorWidget-background)}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px;outline-color:var(--vscode-focusBorder)}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:3px 25px 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .find-widget.no-results .matchesCount{color:var(--vscode-errorForeground)}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important;background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor .currentFindMatch{background-color:var(--vscode-editor-findMatchBackground);border:2px solid var(--vscode-editor-findMatchBorder);padding:1px;box-sizing:border-box}.monaco-editor .findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor .find-widget .monaco-sash{left:0!important;background-color:var(--vscode-editorWidget-resizeBorder, var(--vscode-editorWidget-border))}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .find-widget .button:not(.disabled):hover,.monaco-editor .find-widget .codicon-find-selection:hover{background-color:var(--vscode-toolbar-hoverBackground)!important}.monaco-editor.findMatch{background-color:var(--vscode-editor-findMatchHighlightBackground)}.monaco-editor.currentFindMatch{background-color:var(--vscode-editor-findMatchBackground)}.monaco-editor.findScope{background-color:var(--vscode-editor-findRangeHighlightBackground)}.monaco-editor.findMatch{background-color:var(--vscode-editorWidget-background)}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;top:5px;right:4px}.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed{transition:initial}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:gray;margin:.1em .2em 0;content:"\22ef";display:inline;line-height:1em;cursor:pointer}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{color:var(--vscode-editorGhostText-foreground)!important;background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetTabstopHighlightBorder, transparent)}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder, transparent)}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column;border-radius:3px}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px;border-color:var(--vscode-editorSuggestWidget-border);background-color:var(--vscode-editorSuggestWidget-background)}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-light .suggest-widget,.monaco-editor.hc-light .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid var(--vscode-editorSuggestWidget-border);overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default;color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;user-select:text;-webkit-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-activeForeground)}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer;color:var(--vscode-textLink-activeForeground)}.monaco-editor .zone-widget .codicon.codicon-error,.markers-panel .marker-icon.error,.markers-panel .marker-icon .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.extension-editor .codicon.codicon-error,.preferences-editor .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-warning,.markers-panel .marker-icon.warning,.markers-panel .marker-icon .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.extension-editor .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-info,.markers-panel .marker-icon.info,.markers-panel .marker-icon .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.extension-editor .codicon.codicon-info,.preferences-editor .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-selectionHighlightBorder)}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightBorder)}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightStrongBorder)}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightTextBorder)}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .inline-edit-remove{background-color:var(--vscode-editorGhostText-background);font-style:italic;text-decoration:line-through}.monaco-editor .inline-edit-remove.backgroundColoring{background-color:var(--vscode-diffEditor-removedLineBackground)}.monaco-editor .inline-edit-hidden{opacity:0;font-size:0}.monaco-editor .inline-edit-decoration,.monaco-editor .suggest-preview-text .inline-edit{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .inline-edit-decoration,.monaco-editor .inline-edit-decoration-preview,.monaco-editor .suggest-preview-text .inline-edit{color:var(--vscode-editorGhostText-foreground)!important;background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor .inlineEditHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .inlineEditHints a,.monaco-editor .inlineEditHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineEditHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineEditHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineEditStatusBarItemLabel{margin-right:2px}.monaco-editor .parameter-hints-widget{z-index:39;display:flex;flex-direction:column;line-height:1.5em;cursor:default;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{content:"";display:block;height:100%;position:absolute;opacity:.5;border-left:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{content:"";display:block;position:absolute;left:0;width:100%;padding-top:4px;opacity:.5;border-bottom:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs code{font-family:var(--monaco-monospace-font);border-radius:3px;padding:0 .4em;background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source,.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .rename-box{z-index:100;color:inherit;border-radius:4px}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input-with-button{padding:3px;border-radius:2px;width:calc(100% - 8px)}.monaco-editor .rename-box .rename-input{width:calc(100% - 8px);padding:0}.monaco-editor .rename-box .rename-input:focus{outline:none}.monaco-editor .rename-box .rename-suggestions-button{display:flex;align-items:center;padding:3px;background-color:transparent;border:none;border-radius:5px;cursor:pointer}.monaco-editor .rename-box .rename-suggestions-button:hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-editor .rename-box .rename-candidate-list-container .monaco-list-row{border-radius:2px}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .sticky-widget{overflow:hidden}.monaco-editor .sticky-widget-line-numbers{float:left;background-color:inherit}.monaco-editor .sticky-widget-lines-scrollable{display:inline-block;position:absolute;overflow:hidden;width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit}.monaco-editor .sticky-widget-lines{position:absolute;background-color:inherit}.monaco-editor .sticky-line-number,.monaco-editor .sticky-line-content{color:var(--vscode-editorLineNumber-foreground);white-space:nowrap;display:inline-block;position:absolute;background-color:inherit}.monaco-editor .sticky-line-number .codicon-folding-expanded,.monaco-editor .sticky-line-number .codicon-folding-collapsed{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit;white-space:nowrap}.monaco-editor .sticky-line-number-inner{display:inline-block;text-align:right}.monaco-editor .sticky-widget{border-bottom:1px solid var(--vscode-editorStickyScroll-border)}.monaco-editor .sticky-line-content:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{width:100%;box-shadow:var(--vscode-editorStickyScroll-shadow) 0 3px 2px -2px;z-index:4;background-color:var(--vscode-editorStickyScroll-background);right:initial!important}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{border:1px solid var(--vscode-editorUnicodeHighlight-border);background-color:var(--vscode-editorUnicodeHighlight-background);box-sizing:border-box}.editor-banner{box-sizing:border-box;cursor:default;width:100%;font-size:12px;display:flex;overflow:visible;height:26px;background:var(--vscode-banner-background)}.editor-banner .icon-container{display:flex;flex-shrink:0;align-items:center;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-repeat:no-repeat;background-position:center center;background-size:16px;width:16px;padding:0;margin:0 6px 0 10px}.editor-banner .message-container{display:flex;align-items:center;line-height:26px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-banner .message-container p{margin-block-start:0;margin-block-end:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{width:inherit;margin:2px 8px;padding:0 12px}.editor-banner .message-actions-container a{padding:3px;margin-left:12px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #F6F6F6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;-webkit-user-select:text;padding:10px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{height:1px;border:0;background-color:var(--vscode-editorHoverWidget-border)}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)} diff --git a/play/play.js b/play/play.js new file mode 100644 index 0000000..ea354b2 --- /dev/null +++ b/play/play.js @@ -0,0 +1,3297 @@ +(()=>{var A7i=Object.create;var KXt=Object.defineProperty;var P7i=Object.getOwnPropertyDescriptor;var L7i=Object.getOwnPropertyNames;var O7i=Object.getPrototypeOf,F7i=Object.prototype.hasOwnProperty;var D4e=(l=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(l,{get:(i,o)=>(typeof require<"u"?require:i)[o]}):l)(function(l){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+l+'" is not supported')});var Ht=(l,i)=>()=>(l&&(i=l(l=0)),i);var Wj=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports),ou=(l,i)=>{for(var o in i)KXt(l,o,{get:i[o],enumerable:!0})},M7i=(l,i,o,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of L7i(i))!F7i.call(l,c)&&c!==o&&KXt(l,c,{get:()=>i[c],enumerable:!(s=P7i(i,c))||s.enumerable});return l};var Git=(l,i,o)=>(o=l!=null?A7i(O7i(l)):{},M7i(i||!l||!l.__esModule?KXt(o,"default",{value:l,enumerable:!0}):o,l));var XXt=Wj(()=>{});var Kit=Wj(()=>{});var YXt=Wj(()=>{});var QXt=Wj(()=>{});var ZXt=Wj(()=>{});var eYt=Wj(()=>{});var tYt=Wj(()=>{});var Uhi=Wj((Vin,iut)=>{var Mhi={};(l=>{"use strict";var i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,_=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of s(t))!c.call(e,u)&&u!==r&&i(e,u,{get:()=>t[u],enumerable:!(a=o(t,u))||a.enumerable});return e},b=e=>e,w={};_(w,{ANONYMOUS:()=>Mre,AccessFlags:()=>Tpe,AssertionLevel:()=>M_e,AssignmentDeclarationKind:()=>Fpe,AssignmentKind:()=>sge,Associativity:()=>pge,BreakpointResolver:()=>Loe,BuilderFileEmit:()=>abe,BuilderProgramKind:()=>mbe,BuilderState:()=>r0,CallHierarchy:()=>QN,CharacterCodes:()=>qpe,CheckFlags:()=>xpe,CheckMode:()=>tie,ClassificationType:()=>Une,ClassificationTypeNames:()=>gSe,CommentDirectiveType:()=>ape,Comparison:()=>j,CompletionInfoFlags:()=>uSe,CompletionTriggerKind:()=>Vne,Completions:()=>nA,ContainerFlags:()=>Hve,ContextFlags:()=>ppe,Debug:()=>B,DiagnosticCategory:()=>qW,Diagnostics:()=>S,DocumentHighlights:()=>KJ,ElementFlags:()=>wpe,EmitFlags:()=>XY,EmitHint:()=>Ype,EmitOnly:()=>lpe,EndOfLineState:()=>_Se,ExitStatus:()=>upe,ExportKind:()=>lxe,Extension:()=>$pe,ExternalEmitHelpers:()=>Xpe,FileIncludeKind:()=>WY,FilePreprocessingDiagnosticsKind:()=>cpe,FileSystemEntryKind:()=>sme,FileWatcherEventKind:()=>nme,FindAllReferences:()=>ol,FlattenLevel:()=>u1e,FlowFlags:()=>JW,ForegroundColorEscapeSequences:()=>Z1e,FunctionFlags:()=>fge,GeneratedIdentifierFlags:()=>jY,GetLiteralTextFlags:()=>She,GoToDefinition:()=>c6,HighlightSpanKind:()=>cSe,IdentifierNameMap:()=>B4,ImportKind:()=>cxe,ImportsNotUsedAsValues:()=>zpe,IndentStyle:()=>lSe,IndexFlags:()=>Epe,IndexKind:()=>Npe,InferenceFlags:()=>Lpe,InferencePriority:()=>Ppe,InlayHintKind:()=>aSe,InlayHints:()=>Cse,InternalEmitFlags:()=>Gpe,InternalNodeBuilderFlags:()=>hpe,InternalSymbolName:()=>Cpe,IntersectionFlags:()=>_pe,InvalidatedProjectKind:()=>Bbe,JSDocParsingMode:()=>ime,JsDoc:()=>Ok,JsTyping:()=>cy,JsxEmit:()=>Wpe,JsxFlags:()=>npe,JsxReferenceKind:()=>Dpe,LanguageFeatureMinimumTarget:()=>Kpe,LanguageServiceMode:()=>oSe,LanguageVariant:()=>Upe,LexicalEnvironmentFlags:()=>Zpe,ListFormat:()=>eme,LogLevel:()=>q_e,MapCode:()=>kse,MemberOverrideStatus:()=>dpe,ModifierFlags:()=>RY,ModuleDetectionKind:()=>Mpe,ModuleInstanceState:()=>zve,ModuleKind:()=>G7,ModuleResolutionKind:()=>g3,ModuleSpecifierEnding:()=>d0e,NavigateTo:()=>Pxe,NavigationBar:()=>Oxe,NewLineKind:()=>Vpe,NodeBuilderFlags:()=>mpe,NodeCheckFlags:()=>HY,NodeFactoryFlags:()=>B0e,NodeFlags:()=>MY,NodeResolutionFeatures:()=>Ave,ObjectFlags:()=>JY,OperationCanceledException:()=>h3,OperatorPrecedence:()=>mge,OrganizeImports:()=>Fk,OrganizeImportsMode:()=>zne,OuterExpressionKinds:()=>Qpe,OutliningElementsCollector:()=>Tse,OutliningSpanKind:()=>dSe,OutputFileType:()=>fSe,PackageJsonAutoImportPreference:()=>rSe,PackageJsonDependencyGroup:()=>nSe,PatternMatchKind:()=>toe,PollingInterval:()=>YY,PollingWatchKind:()=>jpe,PragmaKindFlags:()=>tme,PredicateSemantics:()=>rpe,PrivateIdentifierKind:()=>G0e,ProcessLevel:()=>p1e,ProgramUpdateLevel:()=>G1e,QuotePreference:()=>jSe,RegularExpressionFlags:()=>ope,RelationComparisonResult:()=>BY,Rename:()=>Oq,ScriptElementKind:()=>mSe,ScriptElementKindModifier:()=>hSe,ScriptKind:()=>$Y,ScriptSnapshot:()=>aJ,ScriptTarget:()=>Hpe,SemanticClassificationFormat:()=>sSe,SemanticMeaning:()=>ySe,SemicolonPreference:()=>Hne,SignatureCheckMode:()=>iie,SignatureFlags:()=>qY,SignatureHelp:()=>I9,SignatureInfo:()=>sbe,SignatureKind:()=>Ipe,SmartSelectionRange:()=>Ise,SnippetKind:()=>KY,StatisticType:()=>$be,StructureIsReused:()=>zY,SymbolAccessibility:()=>vpe,SymbolDisplay:()=>SS,SymbolDisplayPartKind:()=>lJ,SymbolFlags:()=>VY,SymbolFormatFlags:()=>ype,SyntaxKind:()=>FY,Ternary:()=>Ope,ThrottledCancellationToken:()=>VCe,TokenClass:()=>pSe,TokenFlags:()=>spe,TransformFlags:()=>GY,TypeFacts:()=>eie,TypeFlags:()=>UY,TypeFormatFlags:()=>gpe,TypeMapKind:()=>Ape,TypePredicateKind:()=>bpe,TypeReferenceSerializationKind:()=>Spe,UnionReduction:()=>fpe,UpToDateStatusType:()=>Abe,VarianceFlags:()=>kpe,Version:()=>Ug,VersionRange:()=>UW,WatchDirectoryFlags:()=>Jpe,WatchDirectoryKind:()=>Bpe,WatchFileKind:()=>Rpe,WatchLogLevel:()=>X1e,WatchType:()=>Fd,accessPrivateIdentifier:()=>l1e,addEmitFlags:()=>Y0,addEmitHelper:()=>gN,addEmitHelpers:()=>ib,addInternalEmitFlags:()=>mN,addNodeFactoryPatcher:()=>F7e,addObjectAllocatorPatcher:()=>S7e,addRange:()=>Fn,addRelatedInfo:()=>Xs,addSyntheticLeadingComment:()=>DO,addSyntheticTrailingComment:()=>lH,addToSeen:()=>Uh,advancedAsyncSuperHelper:()=>_H,affectsDeclarationPathOptionDeclarations:()=>eve,affectsEmitOptionDeclarations:()=>Zye,allKeysStartWithDot:()=>cU,altDirectorySeparator:()=>XW,and:()=>zW,append:()=>hi,appendIfUnique:()=>Qd,arrayFrom:()=>as,arrayIsEqualTo:()=>Lr,arrayIsHomogeneous:()=>b0e,arrayOf:()=>TK,arrayReverseIterator:()=>E0,arrayToMap:()=>gd,arrayToMultiMap:()=>$c,arrayToNumericMap:()=>Go,assertType:()=>Q8e,assign:()=>vw,asyncSuperHelper:()=>fH,attachFileToDiagnostics:()=>cN,base64decode:()=>Bge,base64encode:()=>Rge,binarySearch:()=>H1,binarySearchKey:()=>Ub,bindSourceFile:()=>Uve,breakIntoCharacterSpans:()=>kxe,breakIntoWordSpans:()=>wxe,buildLinkParts:()=>$Se,buildOpts:()=>i5,buildOverload:()=>xKe,bundlerModuleNameResolver:()=>Pve,canBeConvertedToAsync:()=>aoe,canEmitTsBuildInfo:()=>kie,canHaveDecorators:()=>hT,canHaveExportModifier:()=>DR,canHaveFlowNode:()=>YM,canHaveIllegalDecorators:()=>lte,canHaveIllegalModifiers:()=>Lye,canHaveIllegalType:()=>aMe,canHaveIllegalTypeParameters:()=>Pye,canHaveJSDoc:()=>QM,canHaveLocals:()=>Uy,canHaveModifiers:()=>Kh,canHaveModuleSpecifier:()=>nge,canHaveSymbol:()=>$g,canIncludeBindAndCheckDiagnostics:()=>vO,canJsonReportNoInputFiles:()=>KO,canProduceDiagnostics:()=>kU,canUsePropertyAccess:()=>bee,canWatchAffectingLocation:()=>Cbe,canWatchAtTypes:()=>xbe,canWatchDirectoryOrFile:()=>UU,cartesianProduct:()=>U_e,cast:()=>ea,chainBundle:()=>n0,chainDiagnosticMessages:()=>bs,changeAnyExtension:()=>Y7,changeCompilerHostLikeToUseCache:()=>f8,changeExtension:()=>Tx,changeFullExtension:()=>QW,changesAffectModuleResolution:()=>wz,changesAffectingProgramStructure:()=>_he,characterCodeToRegularExpressionFlag:()=>cQ,childIsDecorated:()=>J3,classElementOrClassElementParameterIsDecorated:()=>aZ,classHasClassThisAssignment:()=>hie,classHasDeclaredOrExplicitlyAssignedName:()=>gie,classHasExplicitlyAssignedName:()=>SU,classOrConstructorParameterIsDecorated:()=>iS,classicNameResolver:()=>jve,classifier:()=>qCe,cleanExtendedConfigCache:()=>IU,clear:()=>Ls,clearMap:()=>gp,clearSharedExtendedConfigFileWatcher:()=>Pie,climbPastPropertyAccess:()=>fJ,clone:()=>LC,cloneCompilerOptions:()=>ure,closeFileWatcher:()=>kg,closeFileWatcherOf:()=>mh,codefix:()=>Qf,collapseTextChangeRangesAcrossMultipleVersions:()=>Dme,collectExternalModuleInfo:()=>fie,combine:()=>tl,combinePaths:()=>xr,commandLineOptionOfCustomType:()=>nve,commentPragmas:()=>$W,commonOptionsWithBuild:()=>zH,compact:()=>zr,compareBooleans:()=>JC,compareDataObjects:()=>XZ,compareDiagnostics:()=>_O,compareEmitHelpers:()=>X0e,compareNumberOfDirectorySeparators:()=>TR,comparePaths:()=>J1,comparePathsCaseInsensitive:()=>SFe,comparePathsCaseSensitive:()=>bFe,comparePatternKeys:()=>$te,compareProperties:()=>W_e,compareStringsCaseInsensitive:()=>U7,compareStringsCaseInsensitiveEslintCompatible:()=>R_e,compareStringsCaseSensitive:()=>Ff,compareStringsCaseSensitiveUI:()=>J7,compareTextSpans:()=>jW,compareValues:()=>Kc,compilerOptionsAffectDeclarationPath:()=>r0e,compilerOptionsAffectEmit:()=>n0e,compilerOptionsAffectSemanticDiagnostics:()=>i0e,compilerOptionsDidYouMeanDiagnostics:()=>JH,compilerOptionsIndicateEsModules:()=>hre,computeCommonSourceDirectoryOfFilenames:()=>Y1e,computeLineAndCharacterOfPosition:()=>NP,computeLineOfPosition:()=>x3,computeLineStarts:()=>OI,computePositionOfLineAndCharacter:()=>iz,computeSignatureWithDiagnostics:()=>Zie,computeSuggestionDiagnostics:()=>roe,computedOptions:()=>ld,concatenate:()=>Fo,concatenateDiagnosticMessageChains:()=>Yge,consumesNodeCoreModules:()=>WJ,contains:()=>sn,containsIgnoredPath:()=>xO,containsObjectRestOrSpread:()=>QR,containsParseError:()=>VI,containsPath:()=>nh,convertCompilerOptionsForTelemetry:()=>vve,convertCompilerOptionsFromJson:()=>mRe,convertJsonOption:()=>EE,convertToBase64:()=>Mge,convertToJson:()=>o5,convertToObject:()=>fve,convertToOptionsWithAbsolutePaths:()=>KH,convertToRelativePath:()=>b3,convertToTSConfig:()=>Ate,convertTypeAcquisitionFromJson:()=>hRe,copyComments:()=>OE,copyEntries:()=>Tz,copyLeadingComments:()=>e6,copyProperties:()=>Lv,copyTrailingAsLeadingComments:()=>Z5,copyTrailingComments:()=>D8,couldStartTrivia:()=>mme,countWhere:()=>er,createAbstractBuilder:()=>k9e,createAccessorPropertyBackingField:()=>fte,createAccessorPropertyGetRedirector:()=>zye,createAccessorPropertySetRedirector:()=>Vye,createBaseNodeFactory:()=>L0e,createBinaryExpressionTrampoline:()=>RH,createBuilderProgram:()=>ene,createBuilderProgramUsingIncrementalBuildInfo:()=>vbe,createBuilderStatusReporter:()=>ZU,createCacheableExportInfoMap:()=>$re,createCachedDirectoryStructureHost:()=>EU,createClassifier:()=>ije,createCommentDirectivesMap:()=>vhe,createCompilerDiagnostic:()=>Dl,createCompilerDiagnosticForInvalidCustomType:()=>rve,createCompilerDiagnosticFromMessageChain:()=>AV,createCompilerHost:()=>Q1e,createCompilerHostFromProgramHost:()=>vne,createCompilerHostWorker:()=>NU,createDetachedDiagnostic:()=>aN,createDiagnosticCollection:()=>cR,createDiagnosticForFileFromMessageChain:()=>iZ,createDiagnosticForNode:()=>Mn,createDiagnosticForNodeArray:()=>HP,createDiagnosticForNodeArrayFromMessageChain:()=>DM,createDiagnosticForNodeFromMessageChain:()=>zv,createDiagnosticForNodeInSourceFile:()=>oh,createDiagnosticForRange:()=>Lhe,createDiagnosticMessageChainFromDiagnostic:()=>Phe,createDiagnosticReporter:()=>HN,createDocumentPositionMapper:()=>r1e,createDocumentRegistry:()=>_xe,createDocumentRegistryInternal:()=>Qre,createEmitAndSemanticDiagnosticsBuilderProgram:()=>rne,createEmitHelperFactory:()=>K0e,createEmptyExports:()=>JR,createEvaluator:()=>N0e,createExpressionForJsxElement:()=>Tye,createExpressionForJsxFragment:()=>Eye,createExpressionForObjectLiteralElementLike:()=>Dye,createExpressionForPropertyName:()=>nte,createExpressionFromEntityName:()=>qR,createExternalHelpersImportDeclarationIfNeeded:()=>ste,createFileDiagnostic:()=>kd,createFileDiagnosticFromMessageChain:()=>Rz,createFlowNode:()=>ev,createForOfBindingStatement:()=>ite,createFutureSourceFile:()=>qJ,createGetCanonicalFileName:()=>df,createGetIsolatedDeclarationErrors:()=>R1e,createGetSourceFile:()=>Rie,createGetSymbolAccessibilityDiagnosticForNode:()=>mS,createGetSymbolAccessibilityDiagnosticForNodeName:()=>M1e,createGetSymbolWalker:()=>Jve,createIncrementalCompilerHost:()=>QU,createIncrementalProgram:()=>Nbe,createJsxFactoryExpression:()=>tte,createLanguageService:()=>HCe,createLanguageServiceSourceFile:()=>dq,createMemberAccessForPropertyName:()=>wE,createModeAwareCache:()=>L4,createModeAwareCacheKey:()=>ZO,createModeMismatchDetails:()=>WQ,createModuleNotFoundChain:()=>Dz,createModuleResolutionCache:()=>O4,createModuleResolutionLoader:()=>Uie,createModuleResolutionLoaderUsingGlobalCache:()=>Ebe,createModuleSpecifierResolutionHost:()=>$N,createMultiMap:()=>Dm,createNameResolver:()=>wee,createNodeConverters:()=>M0e,createNodeFactory:()=>PR,createOptionNameMap:()=>HH,createOverload:()=>Vse,createPackageJsonImportFilter:()=>t6,createPackageJsonInfo:()=>jre,createParenthesizerRules:()=>O0e,createPatternMatcher:()=>yxe,createPrinter:()=>Bx,createPrinterWithDefaults:()=>q1e,createPrinterWithRemoveComments:()=>bT,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>$1e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Aie,createProgram:()=>D5,createProgramHost:()=>bne,createPropertyNameNodeForIdentifierOrLiteral:()=>eH,createQueue:()=>H7,createRange:()=>ah,createRedirectedBuilderProgram:()=>nne,createResolutionCache:()=>sne,createRuntimeTypeSerializer:()=>v1e,createScanner:()=>Rv,createSemanticDiagnosticsBuilderProgram:()=>C9e,createSet:()=>xY,createSolutionBuilder:()=>Fbe,createSolutionBuilderHost:()=>Lbe,createSolutionBuilderWithWatch:()=>Mbe,createSolutionBuilderWithWatchHost:()=>Obe,createSortedArray:()=>Vo,createSourceFile:()=>ON,createSourceMapGenerator:()=>Zve,createSourceMapSource:()=>j7e,createSuperAccessVariableStatement:()=>CU,createSymbolTable:()=>ta,createSymlinkCache:()=>see,createSyntacticTypeNodeBuilder:()=>eSe,createSystemWatchFunctions:()=>ame,createTextChange:()=>J5,createTextChangeFromStartLength:()=>wJ,createTextChangeRange:()=>aM,createTextRangeFromNode:()=>_re,createTextRangeFromSpan:()=>kJ,createTextSpan:()=>_f,createTextSpanFromBounds:()=>bu,createTextSpanFromNode:()=>B_,createTextSpanFromRange:()=>yS,createTextSpanFromStringLiteralLikeContent:()=>fre,createTextWriter:()=>dR,createTokenRange:()=>qZ,createTypeChecker:()=>Yve,createTypeReferenceDirectiveResolutionCache:()=>rU,createTypeReferenceResolutionLoader:()=>LU,createWatchCompilerHost:()=>O9e,createWatchCompilerHostOfConfigFile:()=>Sne,createWatchCompilerHostOfFilesAndCompilerOptions:()=>xne,createWatchFactory:()=>yne,createWatchHost:()=>gne,createWatchProgram:()=>Cne,createWatchStatusReporter:()=>ane,createWriteFileMeasuringIO:()=>Bie,declarationNameToString:()=>Hc,decodeMappings:()=>lie,decodedTextSpanIntersectsWith:()=>sM,deduplicate:()=>hs,defaultInitCompilerOptions:()=>kte,defaultMaximumTruncationLength:()=>j3,diagnosticCategoryName:()=>q2,diagnosticToString:()=>TT,diagnosticsEqualityComparer:()=>PV,directoryProbablyExists:()=>Xg,directorySeparator:()=>wl,displayPart:()=>vp,displayPartsToString:()=>p9,disposeEmitNodes:()=>Iee,documentSpansEqual:()=>Cre,dumpTracingLegend:()=>ipe,elementAt:()=>Wg,elideNodes:()=>Wye,emitDetachedComments:()=>Tge,emitFiles:()=>Iie,emitFilesAndReportErrors:()=>GU,emitFilesAndReportErrorsAndGetExitStatus:()=>hne,emitModuleKindIsNonNodeESM:()=>CR,emitNewLineBeforeLeadingCommentOfPosition:()=>wge,emitResolverSkipsTypeChecking:()=>Die,emitSkippedWithNoDiagnostics:()=>Gie,emptyArray:()=>F,emptyFileSystemEntries:()=>fee,emptyMap:()=>X,emptyOptions:()=>Xh,endsWith:()=>Wl,ensurePathIsNonModuleName:()=>G2,ensureScriptKind:()=>UV,ensureTrailingDirectorySeparator:()=>xd,entityNameToString:()=>zp,enumerateInsertsAndDeletes:()=>HW,equalOwnProperties:()=>SY,equateStringsCaseInsensitive:()=>sx,equateStringsCaseSensitive:()=>Mw,equateValues:()=>ox,escapeJsxAttributeString:()=>AZ,escapeLeadingUnderscores:()=>Hl,escapeNonAsciiString:()=>uV,escapeSnippetText:()=>oT,escapeString:()=>Yy,escapeTemplateSubstitution:()=>IZ,evaluatorResult:()=>wd,every:()=>Et,executeCommandLine:()=>_Be,expandPreOrPostfixIncrementOrDecrementExpression:()=>AH,explainFiles:()=>dne,explainIfFileIsRedirectAndImpliedFormat:()=>fne,exportAssignmentIsAlias:()=>iR,expressionResultIsUnused:()=>x0e,extend:()=>bw,extensionFromPath:()=>gO,extensionIsTS:()=>XV,extensionsNotSupportingExtensionlessResolution:()=>GV,externalHelpersModuleNameText:()=>ek,factory:()=>U,fileContainsPackageImport:()=>s9,fileExtensionIs:()=>Tl,fileExtensionIsOneOf:()=>vu,fileIncludeReasonToDiagnostics:()=>mne,fileShouldUseJavaScriptRequire:()=>qre,filter:()=>Di,filterMutate:()=>rs,filterSemanticDiagnostics:()=>BU,find:()=>St,findAncestor:()=>Ri,findBestPatternMatch:()=>DY,findChildOfKind:()=>Tc,findComputedPropertyNameCacheAssignment:()=>BH,findConfigFile:()=>Fie,findConstructorDeclaration:()=>AR,findContainingList:()=>gJ,findDiagnosticForNode:()=>oxe,findFirstNonJsxWhitespaceToken:()=>TSe,findIndex:()=>zi,findLast:()=>Mi,findLastIndex:()=>Vr,findListItemInfo:()=>wSe,findModifier:()=>Y4,findNextToken:()=>kT,findPackageJson:()=>rxe,findPackageJsons:()=>Bre,findPrecedingMatchingToken:()=>xJ,findPrecedingToken:()=>fd,findSuperStatementIndexPath:()=>gU,findTokenOnLeftOfPosition:()=>V5,findUseStrictPrologue:()=>ote,first:()=>Ta,firstDefined:()=>Le,firstDefinedIterator:()=>Je,firstIterator:()=>CP,firstOrOnly:()=>Vre,firstOrUndefined:()=>mc,firstOrUndefinedIterator:()=>I0,fixupCompilerOptions:()=>coe,flatMap:()=>vo,flatMapIterator:()=>qa,flatMapToMutable:()=>kl,flatten:()=>tc,flattenCommaList:()=>Hye,flattenDestructuringAssignment:()=>NE,flattenDestructuringBinding:()=>vT,flattenDiagnosticMessageText:()=>ay,forEach:()=>re,forEachAncestor:()=>phe,forEachAncestorDirectory:()=>Rh,forEachChild:()=>ws,forEachChildRecursively:()=>LN,forEachEmittedFile:()=>Cie,forEachEnclosingBlockScopeContainer:()=>Ihe,forEachEntry:()=>Vd,forEachExternalModuleToImportFrom:()=>Kre,forEachImportClauseDeclaration:()=>rge,forEachKey:()=>K1,forEachLeadingCommentRange:()=>eM,forEachNameInAccessChainWalkingLeft:()=>qge,forEachNameOfDefaultExport:()=>GJ,forEachPropertyAssignment:()=>qP,forEachResolvedProjectReference:()=>Jie,forEachReturnStatement:()=>tS,forEachRight:()=>Pe,forEachTrailingCommentRange:()=>tM,forEachTsConfigPropArray:()=>LM,forEachUnique:()=>wre,forEachYieldExpression:()=>Rhe,formatColorAndReset:()=>ST,formatDiagnostic:()=>jie,formatDiagnostics:()=>K5e,formatDiagnosticsWithColorAndContext:()=>ibe,formatGeneratedName:()=>bk,formatGeneratedNamePart:()=>I4,formatLocation:()=>Wie,formatMessage:()=>lN,formatStringFromArgs:()=>Jv,formatting:()=>td,generateDjb2Hash:()=>y3,generateTSConfig:()=>pve,getAdjustedReferenceLocation:()=>rre,getAdjustedRenameLocation:()=>vJ,getAliasDeclarationFromName:()=>vZ,getAllAccessorDeclarations:()=>Sx,getAllDecoratorsOfClass:()=>pie,getAllDecoratorsOfClassElement:()=>vU,getAllJSDocTags:()=>lz,getAllJSDocTagsOfKind:()=>UFe,getAllKeys:()=>c3,getAllProjectOutputs:()=>TU,getAllSuperTypeNodes:()=>Q3,getAllowJSCompilerOption:()=>kx,getAllowSyntheticDefaultImports:()=>uN,getAncestor:()=>ck,getAnyExtensionFromPath:()=>IP,getAreDeclarationMapsEnabled:()=>OV,getAssignedExpandoInitializer:()=>$I,getAssignedName:()=>sz,getAssignmentDeclarationKind:()=>Su,getAssignmentDeclarationPropertyAccessKind:()=>qM,getAssignmentTargetKind:()=>ak,getAutomaticTypeDirectiveNames:()=>iU,getBaseFileName:()=>Xu,getBinaryOperatorPrecedence:()=>aR,getBuildInfo:()=>Nie,getBuildInfoFileVersionMap:()=>ine,getBuildInfoText:()=>U1e,getBuildOrderFromAnyBuildOrder:()=>P5,getBuilderCreationParameters:()=>VU,getBuilderFileEmit:()=>jx,getCanonicalDiagnostic:()=>Ohe,getCheckFlags:()=>_u,getClassExtendsHeritageElement:()=>Yw,getClassLikeDeclarationOfSymbol:()=>eb,getCombinedLocalAndExportSymbolFlags:()=>a4,getCombinedModifierFlags:()=>GC,getCombinedNodeFlags:()=>$1,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>pQ,getCommentRange:()=>Q0,getCommonSourceDirectory:()=>d8,getCommonSourceDirectoryOfConfig:()=>VN,getCompilerOptionValue:()=>RV,getCompilerOptionsDiffValue:()=>_ve,getConditions:()=>Fx,getConfigFileParsingDiagnostics:()=>xT,getConstantValue:()=>z0e,getContainerFlags:()=>Kte,getContainerNode:()=>LE,getContainingClass:()=>Zd,getContainingClassExcludingClassDecorators:()=>Jz,getContainingClassStaticBlock:()=>$he,getContainingFunction:()=>_m,getContainingFunctionDeclaration:()=>qhe,getContainingFunctionOrClassStaticBlock:()=>Uz,getContainingNodeArray:()=>C0e,getContainingObjectLiteralElement:()=>m9,getContextualTypeFromParent:()=>OJ,getContextualTypeFromParentOrAncestorTypeNode:()=>yJ,getDeclarationDiagnostics:()=>B1e,getDeclarationEmitExtensionForPath:()=>_V,getDeclarationEmitOutputFilePath:()=>vge,getDeclarationEmitOutputFilePathWorker:()=>fV,getDeclarationFileExtension:()=>hte,getDeclarationFromName:()=>Y3,getDeclarationModifierFlagsFromSymbol:()=>lh,getDeclarationOfKind:()=>bl,getDeclarationsOfKind:()=>fhe,getDeclaredExpandoInitializer:()=>G3,getDecorators:()=>ux,getDefaultCompilerOptions:()=>uq,getDefaultFormatCodeSettings:()=>cJ,getDefaultLibFileName:()=>nM,getDefaultLibFilePath:()=>UCe,getDefaultLikeExportInfo:()=>$J,getDefaultLikeExportNameFromDeclaration:()=>Hre,getDefaultResolutionModeForFileWorker:()=>RU,getDiagnosticText:()=>tp,getDiagnosticsWithinSpan:()=>sxe,getDirectoryPath:()=>Or,getDirectoryToWatchFailedLookupLocation:()=>one,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>wbe,getDocumentPositionMapper:()=>noe,getDocumentSpansEqualityComparer:()=>kre,getESModuleInterop:()=>qv,getEditsForFileRename:()=>mxe,getEffectiveBaseTypeNode:()=>J0,getEffectiveConstraintOfTypeParameter:()=>OP,getEffectiveContainerForJSDocTemplateTag:()=>nV,getEffectiveImplementsTypeNodes:()=>e4,getEffectiveInitializer:()=>HM,getEffectiveJSDocHost:()=>sk,getEffectiveModifierFlags:()=>__,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Nge,getEffectiveModifierFlagsNoCache:()=>Age,getEffectiveReturnTypeNode:()=>Up,getEffectiveSetAccessorTypeAnnotationNode:()=>kge,getEffectiveTypeAnnotationNode:()=>Yu,getEffectiveTypeParameterDeclarations:()=>dx,getEffectiveTypeRoots:()=>QO,getElementOrPropertyAccessArgumentExpressionOrName:()=>iV,getElementOrPropertyAccessName:()=>X1,getElementsOfBindingOrAssignmentPattern:()=>D4,getEmitDeclarations:()=>yp,getEmitFlags:()=>ja,getEmitHelpers:()=>uH,getEmitModuleDetectionKind:()=>Zge,getEmitModuleFormatOfFileWorker:()=>m8,getEmitModuleKind:()=>p_,getEmitModuleResolutionKind:()=>$f,getEmitScriptTarget:()=>Oa,getEmitStandardClassFields:()=>ree,getEnclosingBlockScopeContainer:()=>Gg,getEnclosingContainer:()=>Mz,getEncodedSemanticClassifications:()=>Xre,getEncodedSyntacticClassifications:()=>Yre,getEndLinePosition:()=>CM,getEntityNameFromTypeNode:()=>MM,getEntrypointsFromPackageJsonInfo:()=>Ute,getErrorCountForSummary:()=>qU,getErrorSpanForNode:()=>rE,getErrorSummaryText:()=>lne,getEscapedTextOfIdentifierOrLiteral:()=>tO,getEscapedTextOfJsxAttributeName:()=>wO,getEscapedTextOfJsxNamespacedName:()=>_N,getExpandoInitializer:()=>rk,getExportAssignmentExpression:()=>bZ,getExportInfoMap:()=>a9,getExportNeedsImportStarHelper:()=>o1e,getExpressionAssociativity:()=>EZ,getExpressionPrecedence:()=>iO,getExternalHelpersModuleName:()=>OH,getExternalModuleImportEqualsDeclarationExpression:()=>q3,getExternalModuleName:()=>GI,getExternalModuleNameFromDeclaration:()=>gge,getExternalModuleNameFromPath:()=>OZ,getExternalModuleNameLiteral:()=>PN,getExternalModuleRequireArgument:()=>lZ,getFallbackOptions:()=>w5,getFileEmitOutput:()=>obe,getFileMatcherPatterns:()=>HV,getFileNamesFromConfigSpecs:()=>XO,getFileWatcherEventKind:()=>eQ,getFilesInErrorForSummary:()=>$U,getFirstConstructorWithBody:()=>Hv,getFirstIdentifier:()=>hp,getFirstNonSpaceCharacterPosition:()=>XSe,getFirstProjectOutput:()=>Eie,getFixableErrorSpanExpression:()=>Wre,getFormatCodeSettingsForWriting:()=>UJ,getFullWidth:()=>xM,getFunctionFlags:()=>Vu,getHeritageClause:()=>nR,getHostSignatureFromJSDoc:()=>ok,getIdentifierAutoGenerate:()=>V7e,getIdentifierGeneratedImportReference:()=>$0e,getIdentifierTypeArguments:()=>pE,getImmediatelyInvokedFunctionExpression:()=>qw,getImpliedNodeFormatForEmitWorker:()=>AE,getImpliedNodeFormatForFile:()=>E5,getImpliedNodeFormatForFileWorker:()=>MU,getImportNeedsImportDefaultHelper:()=>die,getImportNeedsImportStarHelper:()=>mU,getIndentString:()=>dV,getInferredLibraryNameResolveFrom:()=>FU,getInitializedVariables:()=>uO,getInitializerOfBinaryExpression:()=>_Z,getInitializerOfBindingOrAssignmentElement:()=>KR,getInterfaceBaseTypeNodes:()=>Z3,getInternalEmitFlags:()=>Cg,getInvokedExpression:()=>Gz,getIsFileExcluded:()=>uxe,getIsolatedModules:()=>Jh,getJSDocAugmentsTag:()=>Bme,getJSDocClassTag:()=>gQ,getJSDocCommentRanges:()=>rZ,getJSDocCommentsAndTags:()=>pZ,getJSDocDeprecatedTag:()=>yQ,getJSDocDeprecatedTagNoCache:()=>Jme,getJSDocEnumTag:()=>vQ,getJSDocHost:()=>Kw,getJSDocImplementsTags:()=>jme,getJSDocOverloadTags:()=>hZ,getJSDocOverrideTagNoCache:()=>Ume,getJSDocParameterTags:()=>LP,getJSDocParameterTagsNoCache:()=>Ome,getJSDocPrivateTag:()=>WFe,getJSDocPrivateTagNoCache:()=>zme,getJSDocProtectedTag:()=>zFe,getJSDocProtectedTagNoCache:()=>Vme,getJSDocPublicTag:()=>jFe,getJSDocPublicTagNoCache:()=>Wme,getJSDocReadonlyTag:()=>VFe,getJSDocReadonlyTagNoCache:()=>Hme,getJSDocReturnTag:()=>qme,getJSDocReturnType:()=>lM,getJSDocRoot:()=>ZP,getJSDocSatisfiesExpressionType:()=>xee,getJSDocSatisfiesTag:()=>bQ,getJSDocTags:()=>YC,getJSDocTemplateTag:()=>HFe,getJSDocThisTag:()=>az,getJSDocType:()=>XC,getJSDocTypeAliasName:()=>cte,getJSDocTypeAssertionType:()=>JO,getJSDocTypeParameterDeclarations:()=>yV,getJSDocTypeParameterTags:()=>Fme,getJSDocTypeParameterTagsNoCache:()=>Mme,getJSDocTypeTag:()=>KC,getJSXImplicitImportBase:()=>jV,getJSXRuntimeImport:()=>WV,getJSXTransformEnabled:()=>BV,getKeyForCompilerOptions:()=>jte,getLanguageVariant:()=>vR,getLastChild:()=>YZ,getLeadingCommentRanges:()=>Mv,getLeadingCommentRangesOfNode:()=>nZ,getLeftmostAccessExpression:()=>c4,getLeftmostExpression:()=>l4,getLibraryNameFromLibFileName:()=>qie,getLineAndCharacterOfPosition:()=>ma,getLineInfo:()=>cie,getLineOfLocalPosition:()=>nO,getLineStartPositionForPosition:()=>Yh,getLineStarts:()=>Ov,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Hge,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Vge,getLinesBetweenPositions:()=>C3,getLinesBetweenRangeEndAndRangeStart:()=>$Z,getLinesBetweenRangeEndPositions:()=>v7e,getLiteralText:()=>xhe,getLocalNameForExternalImport:()=>E4,getLocalSymbolForExportDefault:()=>aO,getLocaleSpecificMessage:()=>gs,getLocaleTimeString:()=>A5,getMappedContextSpan:()=>Tre,getMappedDocumentSpan:()=>AJ,getMappedLocation:()=>w8,getMatchedFileSpec:()=>_ne,getMatchedIncludeSpec:()=>pne,getMeaningFromDeclaration:()=>uJ,getMeaningFromLocation:()=>PE,getMembersOfDeclaration:()=>Bhe,getModeForFileReference:()=>AU,getModeForResolutionAtIndex:()=>t9e,getModeForUsageLocation:()=>Vie,getModifiedTime:()=>PI,getModifiers:()=>Bw,getModuleInstanceState:()=>ab,getModuleNameStringLiteralAt:()=>I5,getModuleSpecifierEndingPreference:()=>f0e,getModuleSpecifierResolverHost:()=>gre,getNameForExportedSymbol:()=>zJ,getNameFromImportAttribute:()=>rH,getNameFromIndexInfo:()=>Nhe,getNameFromPropertyName:()=>$5,getNameOfAccessExpression:()=>ZZ,getNameOfCompilerOptionValue:()=>Pte,getNameOfDeclaration:()=>cs,getNameOfExpando:()=>uZ,getNameOfJSDocTypedef:()=>Lme,getNameOfScriptTarget:()=>MV,getNameOrArgument:()=>JM,getNameTable:()=>Poe,getNamespaceDeclarationNode:()=>YP,getNewLineCharacter:()=>aS,getNewLineKind:()=>o9,getNewLineOrDefaultFromHost:()=>cb,getNewTargetContainer:()=>Khe,getNextJSDocCommentLocation:()=>mZ,getNodeChildren:()=>Zee,getNodeForGeneratedName:()=>YR,getNodeId:()=>ac,getNodeKind:()=>CT,getNodeModifiers:()=>x8,getNodeModulePathParts:()=>tH,getNonAssignedNameOfDeclaration:()=>oz,getNonAssignmentOperatorForCompoundAssignment:()=>o8,getNonAugmentationDeclaration:()=>XQ,getNonDecoratorTokenPosOfNode:()=>UQ,getNonIncrementalBuildInfoRoots:()=>bbe,getNonModifierTokenPosOfNode:()=>bhe,getNormalizedAbsolutePath:()=>ts,getNormalizedAbsolutePathWithoutRoot:()=>rQ,getNormalizedPathComponents:()=>X7,getObjectFlags:()=>_r,getOperatorAssociativity:()=>DZ,getOperatorPrecedence:()=>sR,getOptionFromName:()=>Tte,getOptionsForLibraryResolution:()=>Wte,getOptionsNameMap:()=>A4,getOrCreateEmitNode:()=>Bf,getOrUpdate:()=>Hg,getOriginalNode:()=>El,getOriginalNodeId:()=>R_,getOutputDeclarationFileName:()=>W4,getOutputDeclarationFileNameWorker:()=>wie,getOutputExtension:()=>wU,getOutputFileNames:()=>$5e,getOutputJSFileNameWorker:()=>Tie,getOutputPathsFor:()=>u8,getOwnEmitOutputFilePath:()=>yge,getOwnKeys:()=>mg,getOwnValues:()=>T2,getPackageJsonTypesVersionsPaths:()=>tU,getPackageNameFromTypesPackageName:()=>i8,getPackageScopeForPath:()=>t8,getParameterSymbolFromJSDoc:()=>ZM,getParentNodeInSpan:()=>K5,getParseTreeNode:()=>_s,getParsedCommandLineOfConfigFile:()=>n5,getPathComponents:()=>zd,getPathFromPathComponents:()=>Xb,getPathUpdater:()=>eoe,getPathsBasePath:()=>pV,getPatternFromSpec:()=>c0e,getPendingEmitKindWithSeen:()=>zU,getPositionOfLineAndCharacter:()=>Q7,getPossibleGenericSignatures:()=>sre,getPossibleOriginalInputExtensionForExtension:()=>bge,getPossibleTypeArgumentsInfo:()=>are,getPreEmitDiagnostics:()=>G5e,getPrecedingNonSpaceCharacterPosition:()=>PJ,getPrivateIdentifier:()=>mie,getProperties:()=>_ie,getProperty:()=>V7,getPropertyArrayElementValue:()=>Jhe,getPropertyAssignmentAliasLikeExpression:()=>dge,getPropertyNameForPropertyNameNode:()=>uE,getPropertyNameFromType:()=>dh,getPropertyNameOfBindingOrAssignmentElement:()=>ate,getPropertySymbolFromBindingElement:()=>NJ,getPropertySymbolsFromContextualType:()=>fq,getQuoteFromPreference:()=>vre,getQuotePreference:()=>mm,getRangesWhere:()=>yw,getRefactorContextSpan:()=>GN,getReferencedFileLocation:()=>p8,getRegexFromPattern:()=>wx,getRegularExpressionForWildcard:()=>pO,getRegularExpressionsForWildcards:()=>zV,getRelativePathFromDirectory:()=>Sg,getRelativePathFromFile:()=>S3,getRelativePathToDirectoryOrUrl:()=>LI,getRenameLocation:()=>Q5,getReplacementSpanForContextToken:()=>dre,getResolutionDiagnostic:()=>Xie,getResolutionModeOverride:()=>z4,getResolveJsonModule:()=>iT,getResolvePackageJsonExports:()=>SR,getResolvePackageJsonImports:()=>LV,getResolvedExternalModuleName:()=>LZ,getResolvedModuleFromResolution:()=>zI,getResolvedTypeReferenceDirectiveFromResolution:()=>Ez,getRestIndicatorOfBindingOrAssignmentElement:()=>FH,getRestParameterElementType:()=>oZ,getRightMostAssignedExpression:()=>UM,getRootDeclaration:()=>$0,getRootDirectoryOfResolutionCache:()=>Tbe,getRootLength:()=>Vy,getScriptKind:()=>Nre,getScriptKindFromFileName:()=>JV,getScriptTargetFeatures:()=>JQ,getSelectedEffectiveModifierFlags:()=>iN,getSelectedSyntacticModifierFlags:()=>Dge,getSemanticClassifications:()=>dxe,getSemanticJsxChildren:()=>i4,getSetAccessorTypeAnnotationNode:()=>xge,getSetAccessorValueParameter:()=>o4,getSetExternalModuleIndicator:()=>bR,getShebang:()=>nz,getSingleVariableOfVariableStatement:()=>YI,getSnapshotText:()=>qN,getSnippetElement:()=>Nee,getSourceFileOfModule:()=>Nz,getSourceFileOfNode:()=>en,getSourceFilePathInNewDir:()=>hV,getSourceFileVersionAsHashFromText:()=>KU,getSourceFilesToEmit:()=>mV,getSourceMapRange:()=>lS,getSourceMapper:()=>Exe,getSourceTextOfNodeFromSourceFile:()=>Vw,getSpanOfTokenAtPosition:()=>V0,getSpellingSuggestion:()=>Rw,getStartPositionOfLine:()=>gx,getStartPositionOfRange:()=>lO,getStartsOnNewLine:()=>EO,getStaticPropertiesAndClassStaticBlock:()=>yU,getStrictOptionValue:()=>Rf,getStringComparer:()=>TP,getSubPatternFromSpec:()=>VV,getSuperCallFromStatement:()=>hU,getSuperContainer:()=>OM,getSupportedCodeFixes:()=>Noe,getSupportedExtensions:()=>mO,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>wR,getSwitchedType:()=>Fre,getSymbolId:()=>Ca,getSymbolNameForPrivateIdentifier:()=>rR,getSymbolTarget:()=>Are,getSyntacticClassifications:()=>fxe,getSyntacticModifierFlags:()=>oS,getSyntacticModifierFlagsNoCache:()=>jZ,getSynthesizedDeepClone:()=>_c,getSynthesizedDeepCloneWithReplacements:()=>Y5,getSynthesizedDeepClones:()=>wT,getSynthesizedDeepClonesWithReplacements:()=>Pre,getSyntheticLeadingComments:()=>h4,getSyntheticTrailingComments:()=>MR,getTargetLabel:()=>_J,getTargetOfBindingOrAssignmentElement:()=>Lx,getTemporaryModuleResolutionState:()=>e8,getTextOfConstantValue:()=>Che,getTextOfIdentifierOrLiteral:()=>Hh,getTextOfJSDocComment:()=>uM,getTextOfJsxAttributeName:()=>NR,getTextOfJsxNamespacedName:()=>TO,getTextOfNode:()=>Jl,getTextOfNodeFromSourceText:()=>z3,getTextOfPropertyName:()=>JI,getThisContainer:()=>f_,getThisParameter:()=>Qw,getTokenAtPosition:()=>go,getTokenPosOfNode:()=>yx,getTokenSourceMapRange:()=>W7e,getTouchingPropertyName:()=>ip,getTouchingToken:()=>K4,getTrailingCommentRanges:()=>lx,getTrailingSemicolonDeferringWriter:()=>PZ,getTransformers:()=>z1e,getTsBuildInfoEmitOutputFilePath:()=>wk,getTsConfigObjectLiteralExpression:()=>U3,getTsConfigPropArrayElementValue:()=>Hz,getTypeAnnotationNode:()=>Cge,getTypeArgumentOrTypeParameterList:()=>LSe,getTypeKeywordOfTypeOnlyImport:()=>xre,getTypeNode:()=>J0e,getTypeNodeIfAccessible:()=>N8,getTypeParameterFromJsDoc:()=>oge,getTypeParameterOwner:()=>FFe,getTypesPackageName:()=>lU,getUILocale:()=>B_e,getUniqueName:()=>FE,getUniqueSymbolId:()=>KSe,getUseDefineForClassFields:()=>xR,getWatchErrorSummaryDiagnosticMessage:()=>cne,getWatchFactory:()=>Oie,group:()=>Xl,groupBy:()=>N0,guessIndentation:()=>uhe,handleNoEmitOptions:()=>Kie,handleWatchOptionsConfigDirTemplateSubstitution:()=>XH,hasAbstractModifier:()=>tT,hasAccessorModifier:()=>G0,hasAmbientModifier:()=>BZ,hasChangesInResolutions:()=>zQ,hasContextSensitiveParameters:()=>ZV,hasDecorators:()=>Pm,hasDocComment:()=>ASe,hasDynamicName:()=>Y1,hasEffectiveModifier:()=>Jp,hasEffectiveModifiers:()=>RZ,hasEffectiveReadonlyModifier:()=>rO,hasExtension:()=>DP,hasImplementationTSFileExtension:()=>u0e,hasIndexSignature:()=>Ore,hasInferredType:()=>P0e,hasInitializer:()=>Qb,hasInvalidEscape:()=>NZ,hasJSDocNodes:()=>dm,hasJSDocParameterTags:()=>Rme,hasJSFileExtension:()=>$v,hasJsonModuleEmitEnabled:()=>FV,hasOnlyExpressionInitializer:()=>iE,hasOverrideModifier:()=>vV,hasPossibleExternalModuleReference:()=>Dhe,hasProperty:()=>Nc,hasPropertyAccessExpressionWithName:()=>B5,hasQuestionToken:()=>XI,hasRecordedExternalHelpers:()=>Aye,hasResolutionModeOverride:()=>D0e,hasRestParameter:()=>MQ,hasScopeMarker:()=>ihe,hasStaticModifier:()=>cd,hasSyntacticModifier:()=>Ar,hasSyntacticModifiers:()=>Ege,hasTSFileExtension:()=>dN,hasTabstop:()=>w0e,hasTrailingDirectorySeparator:()=>cx,hasType:()=>xz,hasTypeArguments:()=>l7e,hasZeroOrOneAsteriskCharacter:()=>oee,hostGetCanonicalFileName:()=>rS,hostUsesCaseSensitiveFileNames:()=>eN,idText:()=>mr,identifierIsThisKeyword:()=>MZ,identifierToKeywordKind:()=>X2,identity:()=>Gc,identitySourceMapConsumer:()=>uie,ignoreSourceNewlines:()=>Pee,ignoredPaths:()=>KW,importFromModuleSpecifier:()=>K3,importSyntaxAffectsModuleResolution:()=>nee,indexOfAnyCharCode:()=>gr,indexOfNode:()=>VP,indicesOf:()=>Ow,inferredTypesContainingFile:()=>_8,injectClassNamedEvaluationHelperBlockIfMissing:()=>xU,injectClassThisAssignmentIfMissing:()=>_1e,insertImports:()=>Sre,insertSorted:()=>vn,insertStatementAfterCustomPrologue:()=>nE,insertStatementAfterStandardPrologue:()=>i7e,insertStatementsAfterCustomPrologue:()=>VQ,insertStatementsAfterStandardPrologue:()=>Wv,intersperse:()=>Ct,intrinsicTagNameToString:()=>Cee,introducesArgumentsExoticObject:()=>Vhe,inverseJsxOptionMap:()=>t5,isAbstractConstructorSymbol:()=>Uge,isAbstractModifier:()=>nye,isAccessExpression:()=>il,isAccessibilityModifier:()=>lre,isAccessor:()=>mx,isAccessorModifier:()=>oye,isAliasableExpression:()=>rV,isAmbientModule:()=>d_,isAmbientPropertyDeclaration:()=>QQ,isAnyDirectorySeparator:()=>tQ,isAnyImportOrBareOrAccessedRequire:()=>The,isAnyImportOrReExport:()=>TM,isAnyImportOrRequireStatement:()=>Ehe,isAnyImportSyntax:()=>UI,isAnySupportedFileExtension:()=>P7e,isApplicableVersionedTypesKey:()=>u5,isArgumentExpressionOfElementAccess:()=>Yne,isArray:()=>ds,isArrayBindingElement:()=>hz,isArrayBindingOrAssignmentElement:()=>hM,isArrayBindingOrAssignmentPattern:()=>NQ,isArrayBindingPattern:()=>fS,isArrayLiteralExpression:()=>yf,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>gS,isArrayTypeNode:()=>zR,isArrowFunction:()=>rl,isAsExpression:()=>OO,isAssertClause:()=>dye,isAssertEntry:()=>Y7e,isAssertionExpression:()=>ZC,isAssertsKeyword:()=>tye,isAssignmentDeclaration:()=>$3,isAssignmentExpression:()=>Hd,isAssignmentOperator:()=>Q1,isAssignmentPattern:()=>R3,isAssignmentTarget:()=>nS,isAsteriskToken:()=>BR,isAsyncFunction:()=>eO,isAsyncModifier:()=>AO,isAutoAccessorPropertyDeclaration:()=>K_,isAwaitExpression:()=>Ax,isAwaitKeyword:()=>Ree,isBigIntLiteral:()=>NO,isBinaryExpression:()=>Yn,isBinaryLogicalOperator:()=>fR,isBinaryOperatorToken:()=>jye,isBindableObjectDefinePropertyCall:()=>cE,isBindableStaticAccessExpression:()=>Gw,isBindableStaticElementAccessExpression:()=>tV,isBindableStaticNameExpression:()=>lE,isBindingElement:()=>Wa,isBindingElementOfBareOrAccessedRequire:()=>Qhe,isBindingName:()=>eE,isBindingOrAssignmentElement:()=>Qme,isBindingOrAssignmentPattern:()=>pM,isBindingPattern:()=>Rs,isBlock:()=>Ds,isBlockLike:()=>KN,isBlockOrCatchScoped:()=>qQ,isBlockScope:()=>ZQ,isBlockScopedContainerTopLevel:()=>whe,isBooleanLiteral:()=>M3,isBreakOrContinueStatement:()=>A3,isBreakStatement:()=>G7e,isBuild:()=>Gbe,isBuildInfoFile:()=>V1e,isBuilderProgram:()=>une,isBundle:()=>mye,isCallChain:()=>Y2,isCallExpression:()=>Gs,isCallExpressionTarget:()=>Jne,isCallLikeExpression:()=>zw,isCallLikeOrFunctionLikeExpression:()=>AQ,isCallOrNewExpression:()=>W0,isCallOrNewExpressionTarget:()=>qne,isCallSignatureDeclaration:()=>xN,isCallToHelper:()=>IO,isCaseBlock:()=>BO,isCaseClause:()=>x4,isCaseKeyword:()=>sye,isCaseOrDefaultClause:()=>bz,isCatchClause:()=>mT,isCatchClauseVariableDeclaration:()=>k0e,isCatchClauseVariableDeclarationOrBindingElement:()=>$Q,isCheckJsEnabledForFile:()=>yO,isCircularBuildOrder:()=>UN,isClassDeclaration:()=>Zu,isClassElement:()=>Cd,isClassExpression:()=>Qu,isClassInstanceProperty:()=>Xme,isClassLike:()=>jr,isClassMemberModifier:()=>EQ,isClassNamedEvaluationHelperBlock:()=>zN,isClassOrTypeElement:()=>mz,isClassStaticBlockDeclaration:()=>Yl,isClassThisAssignmentBlock:()=>a8,isColonToken:()=>Z0e,isCommaExpression:()=>$R,isCommaListExpression:()=>MO,isCommaSequence:()=>UO,isCommaToken:()=>Q0e,isComment:()=>CJ,isCommonJsExportPropertyAssignment:()=>zz,isCommonJsExportedExpression:()=>Whe,isCompoundAssignment:()=>r8,isComputedNonLiteralName:()=>EM,isComputedPropertyName:()=>Ma,isConciseBody:()=>yz,isConditionalExpression:()=>EN,isConditionalTypeNode:()=>cT,isConstAssertion:()=>kee,isConstTypeReference:()=>qg,isConstructSignatureDeclaration:()=>WR,isConstructorDeclaration:()=>Ol,isConstructorTypeNode:()=>g4,isContextualKeyword:()=>sV,isContinueStatement:()=>$7e,isCustomPrologue:()=>PM,isDebuggerStatement:()=>K7e,isDeclaration:()=>mf,isDeclarationBindingElement:()=>_M,isDeclarationFileName:()=>Jd,isDeclarationName:()=>Xy,isDeclarationNameOfEnumOrNamespace:()=>GZ,isDeclarationReadonly:()=>IM,isDeclarationStatement:()=>she,isDeclarationWithTypeParameterChildren:()=>tZ,isDeclarationWithTypeParameters:()=>eZ,isDecorator:()=>Td,isDecoratorTarget:()=>bSe,isDefaultClause:()=>WO,isDefaultImport:()=>KI,isDefaultModifier:()=>gH,isDefaultedExpandoInitializer:()=>Zhe,isDeleteExpression:()=>cye,isDeleteTarget:()=>yZ,isDeprecatedDeclaration:()=>VJ,isDestructuringAssignment:()=>sS,isDiskPathRoot:()=>iQ,isDoStatement:()=>q7e,isDocumentRegistryEntry:()=>c9,isDotDotDotToken:()=>mH,isDottedName:()=>pR,isDynamicName:()=>cV,isEffectiveExternalModule:()=>HI,isEffectiveStrictModeSourceFile:()=>YQ,isElementAccessChain:()=>SQ,isElementAccessExpression:()=>nl,isEmittedFileOfProgram:()=>K1e,isEmptyArrayLiteral:()=>Fge,isEmptyBindingElement:()=>Nme,isEmptyBindingPattern:()=>Ime,isEmptyObjectLiteral:()=>UZ,isEmptyStatement:()=>Vee,isEmptyStringLiteral:()=>cZ,isEntityName:()=>G_,isEntityNameExpression:()=>Xc,isEnumConst:()=>ik,isEnumDeclaration:()=>dT,isEnumMember:()=>_S,isEqualityOperatorKind:()=>FJ,isEqualsGreaterThanToken:()=>eye,isExclamationToken:()=>jR,isExcludedFile:()=>hve,isExclusivelyTypeOnlyImportOrExport:()=>zie,isExpandoPropertyDeclaration:()=>pN,isExportAssignment:()=>ll,isExportDeclaration:()=>Nu,isExportModifier:()=>bN,isExportName:()=>PH,isExportNamespaceAsDefaultDeclaration:()=>Lz,isExportOrDefaultModifier:()=>XR,isExportSpecifier:()=>Gf,isExportsIdentifier:()=>aE,isExportsOrModuleExportsOrAlias:()=>gT,isExpression:()=>Mt,isExpressionNode:()=>Kg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>CSe,isExpressionOfOptionalChainRoot:()=>dz,isExpressionStatement:()=>Ud,isExpressionWithTypeArguments:()=>nb,isExpressionWithTypeArgumentsInClassExtendsClause:()=>SV,isExternalModule:()=>dd,isExternalModuleAugmentation:()=>Uw,isExternalModuleImportEqualsDeclaration:()=>nk,isExternalModuleIndicator:()=>yM,isExternalModuleNameRelative:()=>Od,isExternalModuleReference:()=>rb,isExternalModuleSymbol:()=>jP,isExternalOrCommonJsModule:()=>Vp,isFileLevelReservedGeneratedIdentifier:()=>fM,isFileLevelUniqueName:()=>Az,isFileProbablyExternalModule:()=>ZR,isFirstDeclarationOfSymbolParameter:()=>Ere,isFixablePromiseHandler:()=>soe,isForInOrOfStatement:()=>tE,isForInStatement:()=>CH,isForInitializer:()=>rh,isForOfStatement:()=>VR,isForStatement:()=>gk,isFullSourceFile:()=>Gy,isFunctionBlock:()=>Jw,isFunctionBody:()=>LQ,isFunctionDeclaration:()=>xu,isFunctionExpression:()=>Yc,isFunctionExpressionOrArrowFunction:()=>Ex,isFunctionLike:()=>vs,isFunctionLikeDeclaration:()=>Oc,isFunctionLikeKind:()=>RI,isFunctionLikeOrClassStaticBlockDeclaration:()=>MP,isFunctionOrConstructorTypeNode:()=>Yme,isFunctionOrModuleBlock:()=>DQ,isFunctionSymbol:()=>ige,isFunctionTypeNode:()=>Qy,isGeneratedIdentifier:()=>yl,isGeneratedPrivateIdentifier:()=>Z2,isGetAccessor:()=>Yb,isGetAccessorDeclaration:()=>Lm,isGetOrSetAccessorDeclaration:()=>dM,isGlobalScopeAugmentation:()=>$y,isGlobalSourceFile:()=>Zb,isGrammarError:()=>yhe,isHeritageClause:()=>$p,isHoistedFunction:()=>jz,isHoistedVariableStatement:()=>Wz,isIdentifier:()=>et,isIdentifierANonContextualKeyword:()=>CZ,isIdentifierName:()=>uge,isIdentifierOrThisTypeNode:()=>Fye,isIdentifierPart:()=>q1,isIdentifierStart:()=>Hy,isIdentifierText:()=>pp,isIdentifierTypePredicate:()=>Hhe,isIdentifierTypeReference:()=>v0e,isIfStatement:()=>hk,isIgnoredFileFromWildCardWatching:()=>k5,isImplicitGlob:()=>cee,isImportAttribute:()=>fye,isImportAttributeName:()=>Kme,isImportAttributes:()=>bE,isImportCall:()=>fm,isImportClause:()=>Zg,isImportDeclaration:()=>ql,isImportEqualsDeclaration:()=>Dd,isImportKeyword:()=>LO,isImportMeta:()=>JP,isImportOrExportSpecifier:()=>QC,isImportOrExportSpecifierName:()=>GSe,isImportSpecifier:()=>F_,isImportTypeAssertionContainer:()=>X7e,isImportTypeNode:()=>ey,isImportableFile:()=>Gre,isInComment:()=>hS,isInCompoundLikeAssignment:()=>gZ,isInExpressionContext:()=>Kz,isInJSDoc:()=>jM,isInJSFile:()=>Jn,isInJSXText:()=>NSe,isInJsonFile:()=>Yz,isInNonReferenceComment:()=>MSe,isInReferenceComment:()=>FSe,isInRightSideOfInternalImportEqualsDeclaration:()=>dJ,isInString:()=>JN,isInTemplateString:()=>ore,isInTopLevelContext:()=>qz,isInTypeQuery:()=>tN,isIncrementalBuildInfo:()=>N5,isIncrementalBundleEmitBuildInfo:()=>pbe,isIncrementalCompilation:()=>nT,isIndexSignatureDeclaration:()=>sT,isIndexedAccessTypeNode:()=>lT,isInferTypeNode:()=>hE,isInfinityOrNaNString:()=>CO,isInitializedProperty:()=>h5,isInitializedVariable:()=>yR,isInsideJsxElement:()=>SJ,isInsideJsxElementOrAttribute:()=>ISe,isInsideNodeModules:()=>i9,isInsideTemplateLiteral:()=>U5,isInstanceOfExpression:()=>xV,isInstantiatedModule:()=>rie,isInterfaceDeclaration:()=>vf,isInternalDeclaration:()=>dhe,isInternalModuleImportEqualsDeclaration:()=>sE,isInternalName:()=>rte,isIntersectionTypeNode:()=>wN,isIntrinsicJsxName:()=>n4,isIterationStatement:()=>hx,isJSDoc:()=>t0,isJSDocAllType:()=>yye,isJSDocAugmentsTag:()=>AN,isJSDocAuthorTag:()=>tMe,isJSDocCallbackTag:()=>qee,isJSDocClassTag:()=>bye,isJSDocCommentContainingNode:()=>Sz,isJSDocConstructSignature:()=>QP,isJSDocDeprecatedTag:()=>Yee,isJSDocEnumTag:()=>UR,isJSDocFunctionType:()=>k4,isJSDocImplementsTag:()=>IH,isJSDocImportTag:()=>oy,isJSDocIndexSignature:()=>Zz,isJSDocLikeText:()=>_te,isJSDocLink:()=>hye,isJSDocLinkCode:()=>gye,isJSDocLinkLike:()=>WI,isJSDocLinkPlain:()=>Z7e,isJSDocMemberName:()=>vk,isJSDocNameReference:()=>zO,isJSDocNamepathType:()=>eMe,isJSDocNamespaceBody:()=>KFe,isJSDocNode:()=>RP,isJSDocNonNullableType:()=>wH,isJSDocNullableType:()=>C4,isJSDocOptionalParameter:()=>iH,isJSDocOptionalType:()=>Jee,isJSDocOverloadTag:()=>w4,isJSDocOverrideTag:()=>EH,isJSDocParameterTag:()=>ph,isJSDocPrivateTag:()=>Gee,isJSDocPropertyLikeTag:()=>P3,isJSDocPropertyTag:()=>Sye,isJSDocProtectedTag:()=>Kee,isJSDocPublicTag:()=>$ee,isJSDocReadonlyTag:()=>Xee,isJSDocReturnTag:()=>DH,isJSDocSatisfiesExpression:()=>See,isJSDocSatisfiesTag:()=>NH,isJSDocSeeTag:()=>iMe,isJSDocSignature:()=>ob,isJSDocTag:()=>BP,isJSDocTemplateTag:()=>Gh,isJSDocThisTag:()=>Qee,isJSDocThrowsTag:()=>rMe,isJSDocTypeAlias:()=>Vh,isJSDocTypeAssertion:()=>TE,isJSDocTypeExpression:()=>yk,isJSDocTypeLiteral:()=>CE,isJSDocTypeTag:()=>VO,isJSDocTypedefTag:()=>kE,isJSDocUnknownTag:()=>nMe,isJSDocUnknownType:()=>vye,isJSDocVariadicType:()=>TH,isJSXTagName:()=>GP,isJsonEqual:()=>YV,isJsonSourceFile:()=>Wh,isJsxAttribute:()=>ry,isJsxAttributeLike:()=>vz,isJsxAttributeName:()=>E0e,isJsxAttributes:()=>pT,isJsxChild:()=>SM,isJsxClosingElement:()=>fT,isJsxClosingFragment:()=>pye,isJsxElement:()=>Yv,isJsxExpression:()=>jO,isJsxFragment:()=>_T,isJsxNamespacedName:()=>e0,isJsxOpeningElement:()=>ny,isJsxOpeningFragment:()=>xE,isJsxOpeningLikeElement:()=>Mf,isJsxOpeningLikeElementTagName:()=>SSe,isJsxSelfClosingElement:()=>SE,isJsxSpreadAttribute:()=>NN,isJsxTagNameExpression:()=>B3,isJsxText:()=>yN,isJumpStatementTarget:()=>j5,isKeyword:()=>Q_,isKeywordOrPunctuation:()=>oV,isKnownSymbol:()=>oR,isLabelName:()=>Kne,isLabelOfLabeledStatement:()=>Gne,isLabeledStatement:()=>Px,isLateVisibilityPaintedStatement:()=>Fz,isLeftHandSideExpression:()=>X_,isLet:()=>Bz,isLineBreak:()=>Jf,isLiteralComputedPropertyDeclarationName:()=>tR,isLiteralExpression:()=>Q2,isLiteralExpressionOfObject:()=>wQ,isLiteralImportTypeNode:()=>eS,isLiteralKind:()=>L3,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>pJ,isLiteralTypeLiteral:()=>the,isLiteralTypeNode:()=>dS,isLocalName:()=>sb,isLogicalOperator:()=>Pge,isLogicalOrCoalescingAssignmentExpression:()=>WZ,isLogicalOrCoalescingAssignmentOperator:()=>oO,isLogicalOrCoalescingBinaryExpression:()=>_R,isLogicalOrCoalescingBinaryOperator:()=>bV,isMappedTypeNode:()=>yE,isMemberName:()=>Bv,isMetaProperty:()=>FO,isMethodDeclaration:()=>pu,isMethodOrAccessor:()=>BI,isMethodSignature:()=>Z0,isMinusToken:()=>Mee,isMissingDeclaration:()=>Q7e,isMissingPackageJsonInfo:()=>Dve,isModifier:()=>xa,isModifierKind:()=>px,isModifierLike:()=>vl,isModuleAugmentationExternal:()=>KQ,isModuleBlock:()=>ty,isModuleBody:()=>nhe,isModuleDeclaration:()=>Hu,isModuleExportName:()=>kH,isModuleExportsAccessExpression:()=>Vv,isModuleIdentifier:()=>dZ,isModuleName:()=>Bye,isModuleOrEnumDeclaration:()=>vM,isModuleReference:()=>che,isModuleSpecifierLike:()=>IJ,isModuleWithStringLiteralName:()=>Oz,isNameOfFunctionDeclaration:()=>Zne,isNameOfModuleDeclaration:()=>Qne,isNamedDeclaration:()=>pf,isNamedEvaluation:()=>Hp,isNamedEvaluationSource:()=>kZ,isNamedExportBindings:()=>CQ,isNamedExports:()=>_h,isNamedImportBindings:()=>OQ,isNamedImports:()=>iy,isNamedImportsOrExports:()=>IV,isNamedTupleMember:()=>y4,isNamespaceBody:()=>GFe,isNamespaceExport:()=>Zy,isNamespaceExportDeclaration:()=>HR,isNamespaceImport:()=>Xv,isNamespaceReexportDeclaration:()=>Yhe,isNewExpression:()=>uT,isNewExpressionTarget:()=>v8,isNoSubstitutionTemplateLiteral:()=>mE,isNodeArray:()=>jw,isNodeArrayMultiLine:()=>zge,isNodeDescendantOf:()=>Xw,isNodeKind:()=>_z,isNodeLikeSystem:()=>AY,isNodeModulesDirectory:()=>ZW,isNodeWithPossibleHoistedDeclaration:()=>cge,isNonContextualKeyword:()=>xZ,isNonGlobalAmbientModule:()=>GQ,isNonNullAccess:()=>T0e,isNonNullChain:()=>fz,isNonNullExpression:()=>DN,isNonStaticMethodOrAccessorWithPrivateName:()=>s1e,isNotEmittedStatement:()=>_ye,isNullishCoalesce:()=>xQ,isNumber:()=>nx,isNumericLiteral:()=>Z_,isNumericLiteralName:()=>Kv,isObjectBindingElementWithoutPropertyName:()=>G5,isObjectBindingOrAssignmentElement:()=>mM,isObjectBindingOrAssignmentPattern:()=>IQ,isObjectBindingPattern:()=>Om,isObjectLiteralElement:()=>FQ,isObjectLiteralElementLike:()=>G1,isObjectLiteralExpression:()=>ba,isObjectLiteralMethod:()=>zh,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Vz,isObjectTypeDeclaration:()=>sN,isOmittedExpression:()=>Ed,isOptionalChain:()=>qf,isOptionalChainRoot:()=>I3,isOptionalDeclaration:()=>m4,isOptionalJSDocPropertyLikeTag:()=>IR,isOptionalTypeNode:()=>yH,isOuterExpression:()=>LH,isOutermostOptionalChain:()=>N3,isOverrideModifier:()=>rye,isPackageJsonInfo:()=>nU,isPackedArrayLiteral:()=>vee,isParameter:()=>To,isParameterPropertyDeclaration:()=>Wp,isParameterPropertyModifier:()=>F3,isParenthesizedExpression:()=>O_,isParenthesizedTypeNode:()=>gE,isParseTreeNode:()=>D3,isPartOfParameterDeclaration:()=>lk,isPartOfTypeNode:()=>U0,isPartOfTypeQuery:()=>Xz,isPartiallyEmittedExpression:()=>zee,isPatternMatch:()=>WW,isPinnedComment:()=>Pz,isPlainJsFile:()=>W3,isPlusToken:()=>Fee,isPossiblyTypeArgumentPosition:()=>H5,isPostfixUnaryExpression:()=>Wee,isPrefixUnaryExpression:()=>mk,isPrimitiveLiteralValue:()=>oH,isPrivateIdentifier:()=>xo,isPrivateIdentifierClassElementDeclaration:()=>u_,isPrivateIdentifierPropertyAccessExpression:()=>FP,isPrivateIdentifierSymbol:()=>_ge,isProgramUptoDate:()=>$ie,isPrologueDirective:()=>H0,isPropertyAccessChain:()=>uz,isPropertyAccessEntityNameExpression:()=>mR,isPropertyAccessExpression:()=>lr,isPropertyAccessOrQualifiedName:()=>gM,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Zme,isPropertyAssignment:()=>ed,isPropertyDeclaration:()=>ls,isPropertyName:()=>zu,isPropertyNameLiteral:()=>q0,isPropertySignature:()=>ep,isPrototypeAccess:()=>xx,isPrototypePropertyAssignment:()=>$M,isPunctuation:()=>SZ,isPushOrUnshiftIdentifier:()=>wZ,isQualifiedName:()=>P_,isQuestionDotToken:()=>hH,isQuestionOrExclamationToken:()=>Oye,isQuestionOrPlusOrMinusToken:()=>Rye,isQuestionToken:()=>Ix,isReadonlyKeyword:()=>iye,isReadonlyKeywordOrPlusOrMinusToken:()=>Mye,isRecognizedTripleSlashComment:()=>HQ,isReferenceFileLocation:()=>V4,isReferencedFile:()=>Tk,isRegularExpressionLiteral:()=>Lee,isRequireCall:()=>Y_,isRequireVariableStatement:()=>zM,isRestParameter:()=>Jy,isRestTypeNode:()=>vH,isReturnStatement:()=>qh,isReturnStatementWithFixablePromiseHandler:()=>XJ,isRightSideOfAccessExpression:()=>HZ,isRightSideOfInstanceofExpression:()=>Oge,isRightSideOfPropertyAccess:()=>$4,isRightSideOfQualifiedName:()=>xSe,isRightSideOfQualifiedNameOrPropertyAccess:()=>sO,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Lge,isRootedDiskPath:()=>jp,isSameEntityName:()=>KP,isSatisfiesExpression:()=>xH,isSemicolonClassElement:()=>lye,isSetAccessor:()=>z0,isSetAccessorDeclaration:()=>qp,isShiftOperatorOrHigher:()=>ute,isShorthandAmbientModuleSymbol:()=>wM,isShorthandPropertyAssignment:()=>jf,isSideEffectImport:()=>Tee,isSignedNumericLiteral:()=>aV,isSimpleCopiableExpression:()=>yT,isSimpleInlineableExpression:()=>sy,isSimpleParameterList:()=>g5,isSingleOrDoubleQuote:()=>VM,isSourceElement:()=>I0e,isSourceFile:()=>mo,isSourceFileFromLibrary:()=>i6,isSourceFileJS:()=>N_,isSourceFileNotJson:()=>Qz,isSourceMapping:()=>n1e,isSpecialPropertyDeclaration:()=>tge,isSpreadAssignment:()=>Qv,isSpreadElement:()=>fh,isStatement:()=>_o,isStatementButNotDeclaration:()=>bM,isStatementOrBlock:()=>ahe,isStatementWithLocals:()=>ghe,isStatic:()=>ia,isStaticModifier:()=>SN,isString:()=>fs,isStringANonContextualKeyword:()=>ZI,isStringAndEmptyAnonymousObjectIntersection:()=>OSe,isStringDoubleQuoted:()=>eV,isStringLiteral:()=>Da,isStringLiteralLike:()=>xc,isStringLiteralOrJsxExpression:()=>lhe,isStringLiteralOrTemplate:()=>exe,isStringOrNumericLiteralLike:()=>Am,isStringOrRegularExpressionOrTemplateLiteral:()=>cre,isStringTextContainingNode:()=>TQ,isSuperCall:()=>oE,isSuperKeyword:()=>PO,isSuperProperty:()=>mp,isSupportedSourceFileName:()=>_0e,isSwitchStatement:()=>RO,isSyntaxList:()=>T4,isSyntheticExpression:()=>J7e,isSyntheticReference:()=>IN,isTagName:()=>Xne,isTaggedTemplateExpression:()=>pk,isTaggedTemplateTag:()=>vSe,isTemplateExpression:()=>bH,isTemplateHead:()=>vN,isTemplateLiteral:()=>jI,isTemplateLiteralKind:()=>fx,isTemplateLiteralToken:()=>$me,isTemplateLiteralTypeNode:()=>aye,isTemplateLiteralTypeSpan:()=>Bee,isTemplateMiddle:()=>Oee,isTemplateMiddleOrTemplateTail:()=>pz,isTemplateSpan:()=>S4,isTemplateTail:()=>pH,isTextWhiteSpaceLike:()=>WSe,isThis:()=>G4,isThisContainerOrFunctionBlock:()=>Ghe,isThisIdentifier:()=>bx,isThisInTypeQuery:()=>eT,isThisInitializedDeclaration:()=>$z,isThisInitializedObjectBindingExpression:()=>Xhe,isThisProperty:()=>FM,isThisTypeNode:()=>v4,isThisTypeParameter:()=>kO,isThisTypePredicate:()=>Uhe,isThrowStatement:()=>Uee,isToken:()=>MI,isTokenKind:()=>kQ,isTraceEnabled:()=>Ox,isTransientSymbol:()=>jv,isTrivia:()=>t4,isTryStatement:()=>vE,isTupleTypeNode:()=>kN,isTypeAlias:()=>XM,isTypeAliasDeclaration:()=>$h,isTypeAssertionExpression:()=>jee,isTypeDeclaration:()=>fN,isTypeElement:()=>Ww,isTypeKeyword:()=>C8,isTypeKeywordTokenOrIdentifier:()=>TJ,isTypeLiteralNode:()=>L_,isTypeNode:()=>io,isTypeNodeKind:()=>QZ,isTypeOfExpression:()=>b4,isTypeOnlyExportDeclaration:()=>Gme,isTypeOnlyImportDeclaration:()=>O3,isTypeOnlyImportOrExportDeclaration:()=>_x,isTypeOperatorNode:()=>_k,isTypeParameterDeclaration:()=>Sl,isTypePredicateNode:()=>CN,isTypeQueryNode:()=>aT,isTypeReferenceNode:()=>pm,isTypeReferenceType:()=>Cz,isTypeUsableAsPropertyName:()=>uh,isUMDExportSymbol:()=>DV,isUnaryExpression:()=>PQ,isUnaryExpressionWithWrite:()=>ehe,isUnicodeIdentifierStart:()=>tz,isUnionTypeNode:()=>Nx,isUrl:()=>lme,isValidBigIntString:()=>QV,isValidESSymbolDeclaration:()=>zhe,isValidTypeOnlyAliasUseSite:()=>dk,isValueSignatureDeclaration:()=>QI,isVarAwaitUsing:()=>NM,isVarConst:()=>UP,isVarConstLike:()=>Mhe,isVarUsing:()=>AM,isVariableDeclaration:()=>Ur,isVariableDeclarationInVariableStatement:()=>H3,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>$w,isVariableDeclarationInitializedToRequire:()=>WM,isVariableDeclarationList:()=>ef,isVariableLike:()=>qI,isVariableLikeOrAccessor:()=>jhe,isVariableStatement:()=>mu,isVoidExpression:()=>TN,isWatchSet:()=>KZ,isWhileStatement:()=>Hee,isWhiteSpaceLike:()=>Fv,isWhiteSpaceSingleLine:()=>j0,isWithStatement:()=>uye,isWriteAccess:()=>oN,isWriteOnlyAccess:()=>EV,isYieldExpression:()=>SH,jsxModeNeedsExplicitImport:()=>Jre,keywordPart:()=>Yp,last:()=>pa,lastOrUndefined:()=>Lc,length:()=>K,libMap:()=>vte,libs:()=>WH,lineBreakPart:()=>Z4,loadModuleFromGlobalCache:()=>Wve,loadWithModeAwareCache:()=>T5,makeIdentifierFromModuleName:()=>khe,makeImport:()=>Wx,makeStringLiteral:()=>k8,mangleScopedPackageName:()=>M4,map:()=>_i,mapAllOrFail:()=>Hb,mapDefined:()=>ro,mapDefinedIterator:()=>bd,mapEntries:()=>oI,mapIterator:()=>wc,mapOneOrMany:()=>zre,mapToDisplayParts:()=>Dk,matchFiles:()=>lee,matchPatternOrExact:()=>_ee,matchedText:()=>H_e,matchesExclude:()=>ZH,maxBy:()=>CY,maybeBind:()=>Ps,maybeSetLocalizedDiagnosticMessages:()=>Xge,memoize:()=>l_,memoizeOne:()=>B0,min:()=>kY,minAndMax:()=>h0e,missingFileModifiedTime:()=>Bp,modifierToFlag:()=>nN,modifiersToFlags:()=>K0,moduleExportNameIsDefault:()=>qy,moduleExportNameTextEscaped:()=>Hw,moduleExportNameTextUnescaped:()=>vx,moduleOptionDeclaration:()=>Xye,moduleResolutionIsEqualTo:()=>mhe,moduleResolutionNameAndModeGetter:()=>PU,moduleResolutionOptionDeclarations:()=>Ste,moduleResolutionSupportsPackageJsonExportsAndImports:()=>u4,moduleResolutionUsesNodeModules:()=>EJ,moduleSpecifierToValidIdentifier:()=>r9,moduleSpecifiers:()=>pS,moduleSymbolToValidIdentifier:()=>n9,moveEmitHelpers:()=>H0e,moveRangeEnd:()=>wV,moveRangePastDecorators:()=>Z1,moveRangePastModifiers:()=>X0,moveRangePos:()=>uk,moveSyntheticComments:()=>W0e,mutateMap:()=>fO,mutateMapSkippingNewValues:()=>Uv,needsParentheses:()=>LJ,needsScopeMarker:()=>gz,newCaseClauseTracker:()=>JJ,newPrivateEnvironment:()=>c1e,noEmitNotification:()=>b5,noEmitSubstitution:()=>l8,noTransformers:()=>W1e,noTruncationMaximumTruncationLength:()=>BQ,nodeCanBeDecorated:()=>RM,nodeHasName:()=>cM,nodeIsDecorated:()=>$P,nodeIsMissing:()=>Ul,nodeIsPresent:()=>jh,nodeIsSynthesized:()=>Uc,nodeModuleNameResolver:()=>Lve,nodeModulesPathPart:()=>Zv,nodeNextJsonConfigResolver:()=>Ove,nodeOrChildIsDecorated:()=>BM,nodeOverlapsWithStartEnd:()=>mJ,nodePosToString:()=>QFe,nodeSeenTracker:()=>X4,nodeStartsNewLexicalEnvironment:()=>TZ,noop:()=>dc,noopFileWatcher:()=>h8,normalizePath:()=>$s,normalizeSlashes:()=>ff,normalizeSpans:()=>_Q,not:()=>VW,notImplemented:()=>la,notImplementedResolver:()=>J1e,nullNodeConverters:()=>R0e,nullParenthesizerRules:()=>F0e,nullTransformationContext:()=>x5,objectAllocator:()=>gf,operatorPart:()=>T8,optionDeclarations:()=>i0,optionMapToObject:()=>$H,optionsAffectingProgramStructure:()=>tve,optionsForBuild:()=>Cte,optionsForWatch:()=>MN,optionsHaveChanges:()=>WP,or:()=>Im,orderedRemoveItem:()=>l3,orderedRemoveItemAt:()=>ax,packageIdToPackageName:()=>Iz,packageIdToString:()=>tk,parameterIsThisKeyword:()=>Zw,parameterNamePart:()=>VSe,parseBaseNodeFactory:()=>Uye,parseBigInt:()=>y0e,parseBuildCommand:()=>lve,parseCommandLine:()=>ave,parseCommandLineWorker:()=>wte,parseConfigFileTextToJson:()=>Ete,parseConfigFileWithSystem:()=>Dbe,parseConfigHostFromCompilerHostLike:()=>jU,parseCustomTypeOption:()=>UH,parseIsolatedEntityName:()=>FN,parseIsolatedJSDocComment:()=>qye,parseJSDocTypeExpressionForTests:()=>DMe,parseJsonConfigFileContent:()=>nRe,parseJsonSourceFileConfigFileContent:()=>s5,parseJsonText:()=>e5,parseListTypeOption:()=>ove,parseNodeFactory:()=>Sk,parseNodeModuleFromPath:()=>l5,parsePackageName:()=>aU,parsePseudoBigInt:()=>bO,parseValidBigInt:()=>gee,pasteEdits:()=>zse,patchWriteFileEnsuringDirectory:()=>cme,pathContainsNodeModules:()=>Mx,pathIsAbsolute:()=>v3,pathIsBareSpecifier:()=>nQ,pathIsRelative:()=>Nm,patternText:()=>V_e,performIncrementalCompilation:()=>Ibe,performance:()=>Y_e,positionBelongsToNode:()=>tre,positionIsASICandidate:()=>MJ,positionIsSynthesized:()=>Yg,positionsAreOnSameLine:()=>ch,preProcessFile:()=>hje,probablyUsesSemicolons:()=>e9,processCommentPragmas:()=>gte,processPragmasIntoFields:()=>yte,processTaggedTemplateExpression:()=>yie,programContainsEsModules:()=>BSe,programContainsModules:()=>RSe,projectReferenceIsEqualTo:()=>jQ,propertyNamePart:()=>HSe,pseudoBigIntToString:()=>rT,punctuationPart:()=>Yf,pushIfUnique:()=>jc,quote:()=>I8,quotePreferenceFromString:()=>yre,rangeContainsPosition:()=>b8,rangeContainsPositionExclusive:()=>W5,rangeContainsRange:()=>Xp,rangeContainsRangeExclusive:()=>kSe,rangeContainsStartEnd:()=>z5,rangeEndIsOnSameLineAsRangeStart:()=>gR,rangeEndPositionsAreOnSameLine:()=>jge,rangeEquals:()=>D0,rangeIsOnSingleLine:()=>fE,rangeOfNode:()=>mee,rangeOfTypeParameters:()=>hee,rangeOverlapsWithStartEnd:()=>S8,rangeStartIsOnSameLineAsRangeEnd:()=>Wge,rangeStartPositionsAreOnSameLine:()=>TV,readBuilderProgram:()=>YU,readConfigFile:()=>r5,readJson:()=>cO,readJsonConfigFile:()=>uve,readJsonOrUndefined:()=>JZ,reduceEachLeadingCommentRange:()=>gme,reduceEachTrailingCommentRange:()=>yme,reduceLeft:()=>Of,reduceLeftIterator:()=>Ye,reducePathComponents:()=>$2,refactor:()=>YN,regExpEscape:()=>E7e,regularExpressionFlagToCharacterCode:()=>TFe,relativeComplement:()=>Js,removeAllComments:()=>OR,removeEmitHelper:()=>z7e,removeExtension:()=>ER,removeFileExtension:()=>A_,removeIgnoredPath:()=>HU,removeMinAndVersionNumbers:()=>EY,removePrefix:()=>u3,removeSuffix:()=>EP,removeTrailingDirectorySeparator:()=>$C,repeatString:()=>q5,replaceElement:()=>wP,replaceFirstStar:()=>_E,resolutionExtensionIsTSOrJson:()=>hO,resolveConfigFileProjectName:()=>kne,resolveJSModule:()=>Nve,resolveLibrary:()=>oU,resolveModuleName:()=>jN,resolveModuleNameFromCache:()=>LRe,resolvePackageNameToPackageJson:()=>Bte,resolvePath:()=>qC,resolveProjectReferencePath:()=>H4,resolveTripleslashReference:()=>Mie,resolveTypeReferenceDirective:()=>Tve,resolvingEmptyArray:()=>RQ,returnFalse:()=>R0,returnNoopFileWatcher:()=>g8,returnTrue:()=>UC,returnUndefined:()=>Fw,returnsPromise:()=>ooe,sameFlatMap:()=>Wy,sameMap:()=>Uo,sameMapping:()=>C5e,scanTokenAtPosition:()=>Fhe,scanner:()=>m_,semanticDiagnosticsOptionDeclarations:()=>Qye,serializeCompilerOptions:()=>GH,server:()=>fXe,servicesVersion:()=>sze,setCommentRange:()=>ud,setConfigFileInOptions:()=>Lte,setConstantValue:()=>V0e,setEmitFlags:()=>Hn,setGetSourceFileAsHashVersioned:()=>XU,setIdentifierAutoGenerate:()=>RR,setIdentifierGeneratedImportReference:()=>q0e,setIdentifierTypeArguments:()=>uS,setInternalEmitFlags:()=>FR,setLocalizedDiagnosticMessages:()=>Kge,setNodeChildren:()=>xye,setNodeFlags:()=>S0e,setObjectAllocator:()=>Gge,setOriginalNode:()=>cr,setParent:()=>ic,setParentRecursive:()=>tb,setPrivateIdentifier:()=>IE,setSnippetElement:()=>Aee,setSourceMapRange:()=>Fa,setStackTraceLimit:()=>uFe,setStartsOnNewLine:()=>cH,setSyntheticLeadingComments:()=>fk,setSyntheticTrailingComments:()=>hN,setSys:()=>hFe,setSysLog:()=>ome,setTextRange:()=>Ft,setTextRangeEnd:()=>p4,setTextRangePos:()=>SO,setTextRangePosEnd:()=>Qg,setTextRangePosWidth:()=>yee,setTokenSourceMapRange:()=>j0e,setTypeNode:()=>U0e,setUILocale:()=>j_e,setValueDeclaration:()=>GM,shouldAllowImportingTsExtension:()=>R4,shouldPreserveConstEnums:()=>Cx,shouldUseUriStyleNodeCoreModules:()=>HJ,showModuleSpecifier:()=>Jge,signatureHasRestParameter:()=>Xf,signatureToDisplayParts:()=>Ire,single:()=>kP,singleElementArray:()=>AI,singleIterator:()=>Kb,singleOrMany:()=>pg,singleOrUndefined:()=>Fh,skipAlias:()=>hf,skipConstraint:()=>mre,skipOuterExpressions:()=>Cu,skipParentheses:()=>fc,skipPartiallyEmittedExpressions:()=>xg,skipTrivia:()=>Ea,skipTypeChecking:()=>_4,skipTypeCheckingIgnoringNoCheck:()=>g0e,skipTypeParentheses:()=>X3,skipWhile:()=>J_e,sliceAfter:()=>pee,some:()=>Lt,sortAndDeduplicate:()=>zn,sortAndDeduplicateDiagnostics:()=>PP,sourceFileAffectingCompilerOptions:()=>xte,sourceFileMayBeEmitted:()=>dE,sourceMapCommentRegExp:()=>sie,sourceMapCommentRegExpDontCareLineStart:()=>e1e,spacePart:()=>tu,spanMap:()=>hd,startEndContainsRange:()=>ere,startEndOverlapsWithStartEnd:()=>hJ,startOnNewLine:()=>Kf,startTracing:()=>tpe,startsWith:()=>Ro,startsWithDirectory:()=>sQ,startsWithUnderscore:()=>Ure,startsWithUseStrict:()=>Iye,stringContainsAt:()=>axe,stringToToken:()=>K2,stripQuotes:()=>sh,supportedDeclarationExtensions:()=>$V,supportedJSExtensionsFlat:()=>d4,supportedLocaleDirectories:()=>Pme,supportedTSExtensionsFlat:()=>uee,supportedTSImplementationExtensions:()=>kR,suppressLeadingAndTrailingTrivia:()=>Qp,suppressLeadingTrivia:()=>Lre,suppressTrailingTrivia:()=>YSe,symbolEscapedNameNoDefault:()=>DJ,symbolName:()=>fu,symbolNameNoDefault:()=>bre,symbolToDisplayParts:()=>E8,sys:()=>Sd,sysLog:()=>K7,tagNamesAreEquivalent:()=>Ck,takeWhile:()=>NY,targetOptionDeclaration:()=>bte,testFormatSettings:()=>RBe,textChangeRangeIsUnchanged:()=>Eme,textChangeRangeNewSpan:()=>E3,textChanges:()=>Vn,textOrKeywordPart:()=>Dre,textPart:()=>Bm,textRangeContainsPositionInclusive:()=>rM,textRangeContainsTextSpan:()=>Sme,textRangeIntersectsWithTextSpan:()=>wme,textSpanContainsPosition:()=>dQ,textSpanContainsTextRange:()=>fQ,textSpanContainsTextSpan:()=>bme,textSpanEnd:()=>Vl,textSpanIntersection:()=>Tme,textSpanIntersectsWith:()=>oM,textSpanIntersectsWithPosition:()=>kme,textSpanIntersectsWithTextSpan:()=>Cme,textSpanIsEmpty:()=>vme,textSpanOverlap:()=>xme,textSpanOverlapsWith:()=>OFe,textSpansEqual:()=>Q4,textToKeywordObj:()=>ez,timestamp:()=>zc,toArray:()=>II,toBuilderFileEmit:()=>gbe,toBuilderStateFileInfoForMultiEmit:()=>hbe,toEditorSettings:()=>_9,toFileNameLowerCase:()=>rx,toPath:()=>Vc,toProgramEmitPending:()=>ybe,toSorted:()=>lc,tokenIsIdentifierOrKeyword:()=>$_,tokenIsIdentifierOrKeywordOrGreaterThan:()=>dme,tokenToString:()=>ua,trace:()=>Qo,tracing:()=>jn,tracingEnabled:()=>$7,transferSourceFileChildren:()=>Cye,transform:()=>hze,transformClassFields:()=>y1e,transformDeclarations:()=>xie,transformECMAScriptModule:()=>Sie,transformES2015:()=>P1e,transformES2016:()=>A1e,transformES2017:()=>x1e,transformES2018:()=>C1e,transformES2019:()=>k1e,transformES2020:()=>w1e,transformES2021:()=>T1e,transformESDecorators:()=>S1e,transformESNext:()=>E1e,transformGenerators:()=>L1e,transformImpliedNodeFormatDependentModule:()=>F1e,transformJsx:()=>N1e,transformLegacyDecorators:()=>b1e,transformModule:()=>bie,transformNamedEvaluation:()=>Gp,transformNodes:()=>S5,transformSystemModule:()=>O1e,transformTypeScript:()=>g1e,transpile:()=>wje,transpileDeclaration:()=>Cje,transpileModule:()=>Ixe,transpileOptionValueCompilerOptions:()=>ive,tryAddToSet:()=>_p,tryAndIgnoreErrors:()=>jJ,tryCast:()=>kr,tryDirectoryExists:()=>BJ,tryExtractTSExtension:()=>CV,tryFileExists:()=>t9,tryGetClassExtendingExpressionWithTypeArguments:()=>zZ,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>VZ,tryGetDirectories:()=>RJ,tryGetExtensionFromPath:()=>Gv,tryGetImportFromModuleSpecifier:()=>KM,tryGetJSDocSatisfiesTypeNode:()=>nH,tryGetModuleNameFromFile:()=>GR,tryGetModuleSpecifierFromDeclaration:()=>XP,tryGetNativePerformanceHooks:()=>X_e,tryGetPropertyAccessOrIdentifierToString:()=>hR,tryGetPropertyNameOfBindingOrAssignmentElement:()=>MH,tryGetSourceMappingURL:()=>t1e,tryGetTextOfPropertyName:()=>V3,tryParseJson:()=>kV,tryParsePattern:()=>f4,tryParsePatterns:()=>KV,tryParseRawSourceMap:()=>i1e,tryReadDirectory:()=>Rre,tryReadFile:()=>GO,tryRemoveDirectoryPrefix:()=>aee,tryRemoveExtension:()=>m0e,tryRemovePrefix:()=>IY,tryRemoveSuffix:()=>z_e,typeAcquisitionDeclarations:()=>VH,typeAliasNamePart:()=>USe,typeDirectiveIsEqualTo:()=>hhe,typeKeywords:()=>pre,typeParameterNamePart:()=>JSe,typeToDisplayParts:()=>X5,unchangedPollThresholds:()=>GW,unchangedTextChangeRange:()=>rz,unescapeLeadingUnderscores:()=>So,unmangleScopedPackageName:()=>d5,unorderedRemoveItem:()=>NI,unreachableCodeIsError:()=>e0e,unsetNodeChildren:()=>ete,unusedLabelIsError:()=>t0e,unwrapInnermostStatementOfLabel:()=>sZ,unwrapParenthesizedExpression:()=>A0e,updateErrorForNoInputFiles:()=>QH,updateLanguageServiceSourceFile:()=>Aoe,updateMissingFilePathsWatch:()=>Lie,updateResolutionField:()=>P4,updateSharedExtendedConfigFileWatcher:()=>DU,updateSourceFile:()=>pte,updateWatchingWildcardDirectories:()=>C5,usingSingleLineStringWriter:()=>zP,utf16EncodeAsString:()=>T3,validateLocaleAndSetLanguage:()=>mQ,version:()=>O,versionMajorMinor:()=>D,visitArray:()=>p5,visitCommaListElements:()=>m5,visitEachChild:()=>Qi,visitFunctionBody:()=>Rm,visitIterationBody:()=>M_,visitLexicalEnvironment:()=>oie,visitNode:()=>pt,visitNodes:()=>mn,visitParameterList:()=>Ql,walkUpBindingElementsAndPatterns:()=>FI,walkUpOuterExpressions:()=>Nye,walkUpParenthesizedExpressions:()=>Ky,walkUpParenthesizedTypes:()=>eR,walkUpParenthesizedTypesAndGetParentAndChild:()=>lge,whitespaceOrMapCommentRegExp:()=>aie,writeCommentRange:()=>s4,writeFile:()=>gV,writeFileEnsuringDirectories:()=>FZ,zipWith:()=>ft}),l.exports=b(w);var D="5.6",O="5.6.2",j=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(j||{}),F=[],X=new Map;function K(e){return e!==void 0?e.length:0}function re(e,t){if(e!==void 0)for(let r=0;r=0;r--){let a=t(e[r],r);if(a)return a}}function Le(e,t){if(e!==void 0)for(let r=0;r=0;a--){let u=e[a];if(t(u,a))return u}}function zi(e,t,r){if(e===void 0)return-1;for(let a=r??0;a=0;a--)if(t(e[a],a))return a;return-1}function sn(e,t,r=ox){if(e!==void 0){for(let a=0;a{let[f,p]=t(u,a);r.set(f,p)}),r}function Lt(e,t){if(e!==void 0)if(t!==void 0){for(let r=0;r0;return!1}function yw(e,t,r){let a;for(let u=0;ue[p])}function F_e(e,t){let r=[];for(let a=0;a0&&a(t,e[p-1]))return!1;if(p0&&B.assertGreaterThanOrEqual(r(t[f],t[f-1]),0);t:for(let p=u;up&&B.assertGreaterThanOrEqual(r(e[u],e[u-1]),0),r(t[f],e[u])){case-1:a.push(t[f]);continue e;case 0:continue e;case 1:continue t}}return a}function hi(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function tl(e,t){return e===void 0?t:t===void 0?e:ds(e)?ds(t)?Fo(e,t):hi(e,t):ds(t)?hi(t,e):[e,t]}function lu(e,t){return t<0?e.length+t:t}function Fn(e,t,r,a){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,a);r=r===void 0?0:lu(t,r),a=a===void 0?t.length:lu(t,a);for(let u=r;ur(e[a],e[u])||Kc(a,u))}function lc(e,t){return e.length===0?F:e.slice().sort(t)}function*E0(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function D0(e,t,r,a){for(;re?.at(t):(e,t)=>{if(e!==void 0&&(t=lu(e,t),t>1),g=r(e[y],y);switch(a(g,t)){case-1:f=y+1;break;case 0:return y;case 1:p=y-1;break}}return~f}function Of(e,t,r,a,u){if(e&&e.length>0){let f=e.length;if(f>0){let p=a===void 0||a<0?0:a,y=u===void 0||p+u>f-1?f-1:p+u,g;for(arguments.length<=2?(g=e[p],p++):g=r;p<=y;)g=t(g,e[p],p),p++;return g}}return r}var U1=Object.prototype.hasOwnProperty;function Nc(e,t){return U1.call(e,t)}function V7(e,t){return U1.call(e,t)?e[t]:void 0}function mg(e){let t=[];for(let r in e)U1.call(e,r)&&t.push(r);return t}function c3(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let a of r)jc(t,a)}while(e=Object.getPrototypeOf(e));return t}function T2(e){let t=[];for(let r in e)U1.call(e,r)&&t.push(e[r]);return t}function TK(e,t){let r=new Array(e);for(let a=0;a100&&r>t.length>>1){let y=t.length-r;t.copyWithin(0,r),t.length=y,r=0}return p}return{enqueue:u,dequeue:f,isEmpty:a}}function xY(e,t){let r=new Map,a=0;function*u(){for(let p of r.values())ds(p)?yield*p:yield p}let f={has(p){let y=e(p);if(!r.has(y))return!1;let g=r.get(y);return ds(g)?sn(g,p,t):t(g,p)},add(p){let y=e(p);if(r.has(y)){let g=r.get(y);if(ds(g))sn(g,p,t)||(g.push(p),a++);else{let x=g;t(x,p)||(r.set(y,[x,p]),a++)}}else r.set(y,p),a++;return this},delete(p){let y=e(p);if(!r.has(y))return!1;let g=r.get(y);if(ds(g)){for(let x=0;xu(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return f}function ds(e){return Array.isArray(e)}function II(e){return ds(e)?e:[e]}function fs(e){return typeof e=="string"}function nx(e){return typeof e=="number"}function kr(e,t){return e!==void 0&&t(e)?e:void 0}function ea(e,t){return e!==void 0&&t(e)?e:B.fail(`Invalid cast. The supplied value ${e} did not pass the test '${B.getFunctionName(t)}'.`)}function dc(e){}function R0(){return!1}function UC(){return!0}function Fw(){}function Gc(e){return e}function dkt(e){return e.toLowerCase()}var K8e=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function rx(e){return K8e.test(e)?e.replace(K8e,dkt):e}function la(){throw new Error("Not implemented")}function l_(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function B0(e){let t=new Map;return r=>{let a=`${typeof r}:${r}`,u=t.get(a);return u===void 0&&!t.has(a)&&(u=e(r),t.set(a,u)),u}}var M_e=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(M_e||{});function ox(e,t){return e===t}function sx(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Mw(e,t){return ox(e,t)}function X8e(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,a)===-1?r:a)}function U7(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function R_e(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Ff(e,t){return X8e(e,t)}function TP(e){return e?U7:Ff}var fkt=(()=>{return t;function e(r,a,u){if(r===a)return 0;if(r===void 0)return-1;if(a===void 0)return 1;let f=u(r,a);return f<0?-1:f>0?1:0}function t(r){let a=new Intl.Collator(r,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(u,f)=>e(u,f,a)}})(),wY,TY;function B_e(){return TY}function j_e(e){TY!==e&&(TY=e,wY=void 0)}function J7(e,t){return wY??(wY=fkt(TY)),wY(e,t)}function W_e(e,t,r,a){return e===t?0:e===void 0?-1:t===void 0?1:a(e[r],t[r])}function JC(e,t){return Kc(e?1:0,t?1:0)}function Rw(e,t,r){let a=Math.max(2,Math.floor(e.length*.34)),u=Math.floor(e.length*.4)+1,f;for(let p of t){let y=r(p);if(y!==void 0&&Math.abs(y.length-e.length)<=a){if(y===e||y.length<3&&y.toLowerCase()!==e.toLowerCase())continue;let g=_kt(e,y,u-.1);if(g===void 0)continue;B.assert(gr?y-r:1),k=Math.floor(t.length>r+y?r+y:t.length);u[0]=y;let T=y;for(let P=1;Pr)return;let A=a;a=u,u=A}let p=a[t.length];return p>r?void 0:p}function Wl(e,t,r){let a=e.length-t.length;return a>=0&&(r?sx(e.slice(a),t):e.indexOf(t,a)===a)}function EP(e,t){return Wl(e,t)?e.slice(0,e.length-t.length):e}function z_e(e,t){return Wl(e,t)?e.slice(0,e.length-t.length):void 0}function EY(e){let t=e.length;for(let r=t-1;r>0;r--){let a=e.charCodeAt(r);if(a>=48&&a<=57)do--r,a=e.charCodeAt(r);while(r>0&&a>=48&&a<=57);else if(r>4&&(a===110||a===78)){if(--r,a=e.charCodeAt(r),a!==105&&a!==73||(--r,a=e.charCodeAt(r),a!==109&&a!==77))break;--r,a=e.charCodeAt(r)}else break;if(a!==45&&a!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function l3(e,t){for(let r=0;rr===t)}function pkt(e,t){for(let r=0;ru&&(u=y.prefix.length,a=p)}return a}function Ro(e,t,r){return r?sx(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function u3(e,t){return Ro(e,t)?e.substr(t.length):e}function IY(e,t,r=Gc){return Ro(r(e),r(t))?e.substring(t.length):void 0}function WW({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&Ro(r,e)&&Wl(r,t)}function zW(e,t){return r=>e(r)&&t(r)}function Im(...e){return(...t)=>{let r;for(let a of e)if(r=a(...t),r)return r;return r}}function VW(e){return(...t)=>!e(...t)}function Q8e(e){}function AI(e){return e===void 0?void 0:[e]}function HW(e,t,r,a,u,f){f??(f=dc);let p=0,y=0,g=e.length,x=t.length,k=!1;for(;p(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))(q_e||{}),B;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(it){return e.currentLogLevel<=it}e.shouldLog=r;function a(it,si){e.loggingHost&&r(it)&&e.loggingHost.log(it,si)}function u(it){a(3,it)}e.log=u,(it=>{function si(Dr){a(1,Dr)}it.error=si;function dn(Dr){a(2,Dr)}it.warn=dn;function Qn(Dr){a(3,Dr)}it.log=Qn;function Jr(Dr){a(4,Dr)}it.trace=Jr})(u=e.log||(e.log={}));let f={};function p(){return t}e.getAssertionLevel=p;function y(it){let si=t;if(t=it,it>si)for(let dn of mg(f)){let Qn=f[dn];Qn!==void 0&&e[dn]!==Qn.assertion&&it>=Qn.level&&(e[dn]=Qn,f[dn]=void 0)}}e.setAssertionLevel=y;function g(it){return t>=it}e.shouldAssert=g;function x(it,si){return g(it)?!0:(f[si]={level:it,assertion:e[si]},e[si]=dc,!1)}function k(it,si){debugger;let dn=new Error(it?`Debug Failure. ${it}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(dn,si||k),dn}e.fail=k;function T(it,si,dn){return k(`${si||"Unexpected node."}\r +Node ${ke(it.kind)} was unexpected.`,dn||T)}e.failBadSyntaxKind=T;function A(it,si,dn,Qn){it||(si=si?`False expression: ${si}`:"False expression.",dn&&(si+=`\r +Verbose Debug Information: `+(typeof dn=="string"?dn:dn())),k(si,Qn||A))}e.assert=A;function P(it,si,dn,Qn,Jr){if(it!==si){let Dr=dn?Qn?`${dn} ${Qn}`:dn:"";k(`Expected ${it} === ${si}. ${Dr}`,Jr||P)}}e.assertEqual=P;function R(it,si,dn,Qn){it>=si&&k(`Expected ${it} < ${si}. ${dn||""}`,Qn||R)}e.assertLessThan=R;function W(it,si,dn){it>si&&k(`Expected ${it} <= ${si}`,dn||W)}e.assertLessThanOrEqual=W;function z(it,si,dn){it= ${si}`,dn||z)}e.assertGreaterThanOrEqual=z;function q(it,si,dn){it==null&&k(si,dn||q)}e.assertIsDefined=q;function G(it,si,dn){return q(it,si,dn||G),it}e.checkDefined=G;function $(it,si,dn){for(let Qn of it)q(Qn,si,dn||$)}e.assertEachIsDefined=$;function te(it,si,dn){return $(it,si,dn||te),it}e.checkEachDefined=te;function ne(it,si="Illegal value:",dn){let Qn=typeof it=="object"&&Nc(it,"kind")&&Nc(it,"pos")?"SyntaxKind: "+ke(it.kind):JSON.stringify(it);return k(`${si} ${Qn}`,dn||ne)}e.assertNever=ne;function _e(it,si,dn,Qn){x(1,"assertEachNode")&&A(si===void 0||Et(it,si),dn||"Unexpected node.",()=>`Node array did not pass test '${ve(si)}'.`,Qn||_e)}e.assertEachNode=_e;function ce(it,si,dn,Qn){x(1,"assertNode")&&A(it!==void 0&&(si===void 0||si(it)),dn||"Unexpected node.",()=>`Node ${ke(it?.kind)} did not pass test '${ve(si)}'.`,Qn||ce)}e.assertNode=ce;function ae(it,si,dn,Qn){x(1,"assertNotNode")&&A(it===void 0||si===void 0||!si(it),dn||"Unexpected node.",()=>`Node ${ke(it.kind)} should not have passed test '${ve(si)}'.`,Qn||ae)}e.assertNotNode=ae;function Ce(it,si,dn,Qn){x(1,"assertOptionalNode")&&A(si===void 0||it===void 0||si(it),dn||"Unexpected node.",()=>`Node ${ke(it?.kind)} did not pass test '${ve(si)}'.`,Qn||Ce)}e.assertOptionalNode=Ce;function he(it,si,dn,Qn){x(1,"assertOptionalToken")&&A(si===void 0||it===void 0||it.kind===si,dn||"Unexpected node.",()=>`Node ${ke(it?.kind)} was not a '${ke(si)}' token.`,Qn||he)}e.assertOptionalToken=he;function ue(it,si,dn){x(1,"assertMissingNode")&&A(it===void 0,si||"Unexpected node.",()=>`Node ${ke(it.kind)} was unexpected'.`,dn||ue)}e.assertMissingNode=ue;function Ee(it){}e.type=Ee;function ve(it){if(typeof it!="function")return"";if(Nc(it,"name"))return it.name;{let si=Function.prototype.toString.call(it),dn=/^function\s+([\w$]+)\s*\(/.exec(si);return dn?dn[1]:""}}e.getFunctionName=ve;function be(it){return`{ name: ${So(it.escapedName)}; flags: ${Ge(it.flags)}; declarations: ${_i(it.declarations,si=>ke(si.kind))} }`}e.formatSymbol=be;function Se(it=0,si,dn){let Qn=ie(si);if(it===0)return Qn.length>0&&Qn[0][0]===0?Qn[0][1]:"0";if(dn){let Jr=[],Dr=it;for(let[Do,na]of Qn){if(Do>it)break;Do!==0&&Do&it&&(Jr.push(na),Dr&=~Do)}if(Dr===0)return Jr.join("|")}else for(let[Jr,Dr]of Qn)if(Jr===it)return Dr;return it.toString()}e.formatEnum=Se;let Re=new Map;function ie(it){let si=Re.get(it);if(si)return si;let dn=[];for(let Jr in it){let Dr=it[Jr];typeof Dr=="number"&&dn.push([Dr,Jr])}let Qn=lc(dn,(Jr,Dr)=>Kc(Jr[0],Dr[0]));return Re.set(it,Qn),Qn}function ke(it){return Se(it,FY,!1)}e.formatSyntaxKind=ke;function De(it){return Se(it,KY,!1)}e.formatSnippetKind=De;function Oe(it){return Se(it,$Y,!1)}e.formatScriptKind=Oe;function we(it){return Se(it,MY,!0)}e.formatNodeFlags=we;function Ae(it){return Se(it,HY,!0)}e.formatNodeCheckFlags=Ae;function Fe(it){return Se(it,RY,!0)}e.formatModifierFlags=Fe;function Tt(it){return Se(it,GY,!0)}e.formatTransformFlags=Tt;function Be(it){return Se(it,XY,!0)}e.formatEmitFlags=Be;function Ge(it){return Se(it,VY,!0)}e.formatSymbolFlags=Ge;function Ke(it){return Se(it,UY,!0)}e.formatTypeFlags=Ke;function Ue(it){return Se(it,qY,!0)}e.formatSignatureFlags=Ue;function gt(it){return Se(it,JY,!0)}e.formatObjectFlags=gt;function xt(it){return Se(it,JW,!0)}e.formatFlowFlags=xt;function nt(it){return Se(it,BY,!0)}e.formatRelationComparisonResult=nt;function At(it){return Se(it,tie,!0)}e.formatCheckMode=At;function ci(it){return Se(it,iie,!0)}e.formatSignatureCheckMode=ci;function Fi(it){return Se(it,eie,!0)}e.formatTypeFacts=Fi;let bn=!1,an;function ni(it){"__debugFlowFlags"in it||Object.defineProperties(it,{__tsDebuggerDisplay:{value(){let si=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",dn=this.flags&-2048;return`${si}${dn?` (${xt(dn)})`:""}`}},__debugFlowFlags:{get(){return Se(this.flags,JW,!0)}},__debugToString:{value(){return Eo(this)}}})}function Ci(it){return bn&&(typeof Object.setPrototypeOf=="function"?(an||(an=Object.create(Object.prototype),ni(an)),Object.setPrototypeOf(it,an)):ni(it)),it}e.attachFlowNodeDebugInfo=Ci;let Sn;function nn(it){"__tsDebuggerDisplay"in it||Object.defineProperties(it,{__tsDebuggerDisplay:{value(si){return si=String(si).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${si}`}}})}function Br(it){bn&&(typeof Object.setPrototypeOf=="function"?(Sn||(Sn=Object.create(Array.prototype),nn(Sn)),Object.setPrototypeOf(it,Sn)):nn(it))}e.attachNodeArrayDebugInfo=Br;function Gr(){if(bn)return;let it=new WeakMap,si=new WeakMap;Object.defineProperties(gf.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Qn=this.flags&33554432?"TransientSymbol":"Symbol",Jr=this.flags&-33554433;return`${Qn} '${fu(this)}'${Jr?` (${Ge(Jr)})`:""}`}},__debugFlags:{get(){return Ge(this.flags)}}}),Object.defineProperties(gf.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Qn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Jr=this.flags&524288?this.objectFlags&-1344:0;return`${Qn}${this.symbol?` '${fu(this.symbol)}'`:""}${Jr?` (${gt(Jr)})`:""}`}},__debugFlags:{get(){return Ke(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?gt(this.objectFlags):""}},__debugTypeToString:{value(){let Qn=it.get(this);return Qn===void 0&&(Qn=this.checker.typeToString(this),it.set(this,Qn)),Qn}}}),Object.defineProperties(gf.getSignatureConstructor().prototype,{__debugFlags:{get(){return Ue(this.flags)}},__debugSignatureToString:{value(){var Qn;return(Qn=this.checker)==null?void 0:Qn.signatureToString(this)}}});let dn=[gf.getNodeConstructor(),gf.getIdentifierConstructor(),gf.getTokenConstructor(),gf.getSourceFileConstructor()];for(let Qn of dn)Nc(Qn.prototype,"__debugKind")||Object.defineProperties(Qn.prototype,{__tsDebuggerDisplay:{value(){return`${yl(this)?"GeneratedIdentifier":et(this)?`Identifier '${mr(this)}'`:xo(this)?`PrivateIdentifier '${mr(this)}'`:Da(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Z_(this)?`NumericLiteral ${this.text}`:NO(this)?`BigIntLiteral ${this.text}n`:Sl(this)?"TypeParameterDeclaration":To(this)?"ParameterDeclaration":Ol(this)?"ConstructorDeclaration":Lm(this)?"GetAccessorDeclaration":qp(this)?"SetAccessorDeclaration":xN(this)?"CallSignatureDeclaration":WR(this)?"ConstructSignatureDeclaration":sT(this)?"IndexSignatureDeclaration":CN(this)?"TypePredicateNode":pm(this)?"TypeReferenceNode":Qy(this)?"FunctionTypeNode":g4(this)?"ConstructorTypeNode":aT(this)?"TypeQueryNode":L_(this)?"TypeLiteralNode":zR(this)?"ArrayTypeNode":kN(this)?"TupleTypeNode":yH(this)?"OptionalTypeNode":vH(this)?"RestTypeNode":Nx(this)?"UnionTypeNode":wN(this)?"IntersectionTypeNode":cT(this)?"ConditionalTypeNode":hE(this)?"InferTypeNode":gE(this)?"ParenthesizedTypeNode":v4(this)?"ThisTypeNode":_k(this)?"TypeOperatorNode":lT(this)?"IndexedAccessTypeNode":yE(this)?"MappedTypeNode":dS(this)?"LiteralTypeNode":y4(this)?"NamedTupleMember":ey(this)?"ImportTypeNode":ke(this.kind)}${this.flags?` (${we(this.flags)})`:""}`}},__debugKind:{get(){return ke(this.kind)}},__debugNodeFlags:{get(){return we(this.flags)}},__debugModifierFlags:{get(){return Fe(Age(this))}},__debugTransformFlags:{get(){return Tt(this.transformFlags)}},__debugIsParseTreeNode:{get(){return D3(this)}},__debugEmitFlags:{get(){return Be(ja(this))}},__debugGetText:{value(Jr){if(Uc(this))return"";let Dr=si.get(this);if(Dr===void 0){let Do=_s(this),na=Do&&en(Do);Dr=na?Vw(na,Do,Jr):"",si.set(this,Dr)}return Dr}}});bn=!0}e.enableDebugInfo=Gr;function is(it){let si=it&7,dn=si===0?"in out":si===3?"[bivariant]":si===2?"in":si===1?"out":si===4?"[independent]":"";return it&8?dn+=" (unmeasurable)":it&16&&(dn+=" (unreliable)"),dn}e.formatVariance=is;class Ao{__debugToString(){var si;switch(this.kind){case 3:return((si=this.debugInfo)==null?void 0:si.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return ft(this.sources,this.targets||_i(this.sources,()=>"any"),(dn,Qn)=>`${dn.__debugTypeToString()} -> ${typeof Qn=="string"?Qn:Qn.__debugTypeToString()}`).join(", ");case 2:return ft(this.sources,this.targets,(dn,Qn)=>`${dn.__debugTypeToString()} -> ${Qn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +`).join(` + `)} +m2: ${this.mapper2.__debugToString().split(` +`).join(` + `)}`;default:return ne(this)}}}e.DebugTypeMapper=Ao;function Rr(it){return e.isDebugging?Object.setPrototypeOf(it,Ao.prototype):it}e.attachDebugPrototypeIfDebug=Rr;function xn(it){return console.log(Eo(it))}e.printControlFlowGraph=xn;function Eo(it){let si=-1;function dn(fe){return fe.id||(fe.id=si,si--),fe.id}let Qn;(fe=>{fe.lr="\u2500",fe.ud="\u2502",fe.dr="\u256D",fe.dl="\u256E",fe.ul="\u256F",fe.ur="\u2570",fe.udr="\u251C",fe.udl="\u2524",fe.dlr="\u252C",fe.ulr="\u2534",fe.udlr="\u256B"})(Qn||(Qn={}));let Jr;(fe=>{fe[fe.None=0]="None",fe[fe.Up=1]="Up",fe[fe.Down=2]="Down",fe[fe.Left=4]="Left",fe[fe.Right=8]="Right",fe[fe.UpDown=3]="UpDown",fe[fe.LeftRight=12]="LeftRight",fe[fe.UpLeft=5]="UpLeft",fe[fe.UpRight=9]="UpRight",fe[fe.DownLeft=6]="DownLeft",fe[fe.DownRight=10]="DownRight",fe[fe.UpDownLeft=7]="UpDownLeft",fe[fe.UpDownRight=11]="UpDownRight",fe[fe.UpLeftRight=13]="UpLeftRight",fe[fe.DownLeftRight=14]="DownLeftRight",fe[fe.UpDownLeftRight=15]="UpDownLeftRight",fe[fe.NoChildren=16]="NoChildren"})(Jr||(Jr={}));let Dr=2032,Do=882,na=Object.create(null),aa=[],Ai=[],Ha=je(it,new Set);for(let fe of aa)fe.text=Y(fe.flowNode,fe.circular),mt(fe);let ht=$t(Ha),Jt=_t(ht);return yi(Ha,0),$e();function ye(fe){return!!(fe.flags&128)}function ct(fe){return!!(fe.flags&12)&&!!fe.antecedent}function ge(fe){return!!(fe.flags&Dr)}function He(fe){return!!(fe.flags&Do)}function ut(fe){let Wt=[];for(let tt of fe.edges)tt.source===fe&&Wt.push(tt.target);return Wt}function bt(fe){let Wt=[];for(let tt of fe.edges)tt.target===fe&&Wt.push(tt.source);return Wt}function je(fe,Wt){let tt=dn(fe),Qe=na[tt];if(Qe&&Wt.has(fe))return Qe.circular=!0,Qe={id:-1,flowNode:fe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},aa.push(Qe),Qe;if(Wt.add(fe),!Qe)if(na[tt]=Qe={id:tt,flowNode:fe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},aa.push(Qe),ct(fe))for(let ei of fe.antecedent)It(Qe,ei,Wt);else ge(fe)&&It(Qe,fe.antecedent,Wt);return Wt.delete(fe),Qe}function It(fe,Wt,tt){let Qe=je(Wt,tt),ei={source:fe,target:Qe};Ai.push(ei),fe.edges.push(ei),Qe.edges.push(ei)}function mt(fe){if(fe.level!==-1)return fe.level;let Wt=0;for(let tt of bt(fe))Wt=Math.max(Wt,mt(tt)+1);return fe.level=Wt}function $t(fe){let Wt=0;for(let tt of ut(fe))Wt=Math.max(Wt,$t(tt));return Wt+1}function _t(fe){let Wt=se(Array(fe),0);for(let tt of aa)Wt[tt.level]=Math.max(Wt[tt.level],tt.text.length);return Wt}function yi(fe,Wt){if(fe.lane===-1){fe.lane=Wt,fe.endLane=Wt;let tt=ut(fe);for(let Qe=0;Qe0&&Wt++;let ei=tt[Qe];yi(ei,Wt),ei.endLane>fe.endLane&&(Wt=ei.endLane)}fe.endLane=Wt}}function Ii(fe){if(fe&2)return"Start";if(fe&4)return"Branch";if(fe&8)return"Loop";if(fe&16)return"Assignment";if(fe&32)return"True";if(fe&64)return"False";if(fe&128)return"SwitchClause";if(fe&256)return"ArrayMutation";if(fe&512)return"Call";if(fe&1024)return"ReduceLabel";if(fe&1)return"Unreachable";throw new Error}function nr(fe){let Wt=en(fe);return Vw(Wt,fe,!1)}function Y(fe,Wt){let tt=Ii(fe.flags);if(Wt&&(tt=`${tt}#${dn(fe)}`),ye(fe)){let Qe=[],{switchStatement:ei,clauseStart:In,clauseEnd:Ji}=fe.node;for(let _n=In;_nJi.lane)+1,tt=se(Array(Wt),""),Qe=Jt.map(()=>Array(Wt)),ei=Jt.map(()=>se(Array(Wt),0));for(let Ji of aa){Qe[Ji.level][Ji.lane]=Ji;let _n=ut(Ji);for(let Nt=0;Nt<_n.length;Nt++){let ti=_n[Nt],li=8;ti.lane===Ji.lane&&(li|=4),Nt>0&&(li|=1),Nt<_n.length-1&&(li|=2),ei[Ji.level][ti.lane]|=li}_n.length===0&&(ei[Ji.level][Ji.lane]|=16);let Dt=bt(Ji);for(let Nt=0;Nt0&&(li|=1),Nt0?ei[Ji-1][_n]:0,Nt=_n>0?ei[Ji][_n-1]:0,ti=ei[Ji][_n];ti||(Dt&8&&(ti|=12),Nt&2&&(ti|=3),ei[Ji][_n]=ti)}for(let Ji=0;Ji0?fe.repeat(Wt):"";let tt="";for(;tt.length=0,"Invalid argument: major"),B.assert(r>=0,"Invalid argument: minor"),B.assert(a>=0,"Invalid argument: patch");let p=u?ds(u)?u:u.split("."):F,y=f?ds(f)?f:f.split("."):F;B.assert(Et(p,g=>gkt.test(g)),"Invalid argument: prerelease"),B.assert(Et(y,g=>vkt.test(g)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=a,this.prerelease=p,this.build=y}static tryParse(t){let r=tFe(t);if(!r)return;let{major:a,minor:u,patch:f,prerelease:p,build:y}=r;return new I4e(a,u,f,p,y)}compareTo(t){return this===t?0:t===void 0?1:Kc(this.major,t.major)||Kc(this.minor,t.minor)||Kc(this.patch,t.patch)||bkt(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new I4e(this.major+1,0,0);case"minor":return new I4e(this.major,this.minor+1,0);case"patch":return new I4e(this.major,this.minor,this.patch+1);default:return B.assertNever(t)}}with(t){let{major:r=this.major,minor:a=this.minor,patch:u=this.patch,prerelease:f=this.prerelease,build:p=this.build}=t;return new I4e(r,a,u,f,p)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return Lt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),Lt(this.build)&&(t+=`+${this.build.join(".")}`),t}};$_e.zero=new $_e(0,0,0,["0"]);var Ug=$_e;function tFe(e){let t=mkt.exec(e);if(!t)return;let[,r,a="0",u="0",f="",p=""]=t;if(!(f&&!hkt.test(f))&&!(p&&!ykt.test(p)))return{major:parseInt(r,10),minor:parseInt(a,10),patch:parseInt(u,10),prerelease:f,build:p}}function bkt(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;let r=Math.min(e.length,t.length);for(let a=0;a=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function iFe(e){let t=[];for(let r of e.trim().split(Skt)){if(!r)continue;let a=[];r=r.trim();let u=kkt.exec(r);if(u){if(!Tkt(u[1],u[2],a))return}else for(let f of r.split(xkt)){let p=wkt.exec(f.trim());if(!p||!Ekt(p[1],p[2],a))return}t.push(a)}return t}function G_e(e){let t=Ckt.exec(e);if(!t)return;let[,r,a="*",u="*",f,p]=t;return{version:new Ug(Mh(r)?0:parseInt(r,10),Mh(r)||Mh(a)?0:parseInt(a,10),Mh(r)||Mh(a)||Mh(u)?0:parseInt(u,10),f,p),major:r,minor:a,patch:u}}function Tkt(e,t,r){let a=G_e(e);if(!a)return!1;let u=G_e(t);return u?(Mh(a.major)||r.push(zy(">=",a.version)),Mh(u.major)||r.push(Mh(u.minor)?zy("<",u.version.increment("major")):Mh(u.patch)?zy("<",u.version.increment("minor")):zy("<=",u.version)),!0):!1}function Ekt(e,t,r){let a=G_e(t);if(!a)return!1;let{version:u,major:f,minor:p,patch:y}=a;if(Mh(f))(e==="<"||e===">")&&r.push(zy("<",Ug.zero));else switch(e){case"~":r.push(zy(">=",u)),r.push(zy("<",u.increment(Mh(p)?"major":"minor")));break;case"^":r.push(zy(">=",u)),r.push(zy("<",u.increment(u.major>0||Mh(p)?"major":u.minor>0||Mh(y)?"minor":"patch")));break;case"<":case">=":r.push(Mh(p)||Mh(y)?zy(e,u.with({prerelease:"0"})):zy(e,u));break;case"<=":case">":r.push(Mh(p)?zy(e==="<="?"<":">=",u.increment("major").with({prerelease:"0"})):Mh(y)?zy(e==="<="?"<":">=",u.increment("minor").with({prerelease:"0"})):zy(e,u));break;case"=":case void 0:Mh(p)||Mh(y)?(r.push(zy(">=",u.with({prerelease:"0"}))),r.push(zy("<",u.increment(Mh(p)?"major":"minor").with({prerelease:"0"})))):r.push(zy("=",u));break;default:return!1}return!0}function Mh(e){return e==="*"||e==="x"||e==="X"}function zy(e,t){return{operator:e,operand:t}}function Dkt(e,t){if(t.length===0)return!0;for(let r of t)if(Ikt(e,r))return!0;return!1}function Ikt(e,t){for(let r of t)if(!Nkt(e,r.operator,r.operand))return!1;return!0}function Nkt(e,t,r){let a=e.compareTo(r);switch(t){case"<":return a<0;case"<=":return a<=0;case">":return a>0;case">=":return a>=0;case"=":return a===0;default:return B.assertNever(t)}}function Akt(e){return _i(e,Pkt).join(" || ")||"*"}function Pkt(e){return _i(e,Lkt).join(" ")}function Lkt(e){return`${e.operator}${e.operand}`}function Okt(){if(AY())try{let{performance:e}=XXt();if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if(typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function Fkt(){let e=Okt();if(!e)return;let{shouldWriteNativeEvents:t,performance:r}=e,a={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return typeof r.timeOrigin=="number"&&typeof r.now=="function"&&(a.performanceTime=r),a.performanceTime&&typeof r.mark=="function"&&typeof r.measure=="function"&&typeof r.clearMarks=="function"&&typeof r.clearMeasures=="function"&&(a.performance=r),a}var K_e=Fkt(),nFe=K_e?.performanceTime;function X_e(){return K_e}var zc=nFe?()=>nFe.now():Date.now,Y_e={};_(Y_e,{clearMarks:()=>lFe,clearMeasures:()=>cFe,createTimer:()=>PY,createTimerIf:()=>rFe,disable:()=>epe,enable:()=>OY,forEachMark:()=>aFe,forEachMeasure:()=>LY,getCount:()=>sFe,getDuration:()=>m3,isEnabled:()=>Z_e,mark:()=>zl,measure:()=>ih,nullTimer:()=>Q_e});var d3,J2;function rFe(e,t,r,a){return e?PY(t,r,a):Q_e}function PY(e,t,r){let a=0;return{enter:u,exit:f};function u(){++a===1&&zl(t)}function f(){--a===0?(zl(r),ih(e,t,r)):a<0&&B.fail("enter/exit count does not match.")}}var Q_e={enter:dc,exit:dc},f3=!1,oFe=zc(),_3=new Map,q7=new Map,p3=new Map;function zl(e){if(f3){let t=q7.get(e)??0;q7.set(e,t+1),_3.set(e,zc()),J2?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function ih(e,t,r){if(f3){let a=(r!==void 0?_3.get(r):void 0)??zc(),u=(t!==void 0?_3.get(t):void 0)??oFe,f=p3.get(e)||0;p3.set(e,f+(a-u)),J2?.measure(e,t,r)}}function sFe(e){return q7.get(e)||0}function m3(e){return p3.get(e)||0}function LY(e){p3.forEach((t,r)=>e(r,t))}function aFe(e){_3.forEach((t,r)=>e(r))}function cFe(e){e!==void 0?p3.delete(e):p3.clear(),J2?.clearMeasures(e)}function lFe(e){e!==void 0?(q7.delete(e),_3.delete(e)):(q7.clear(),_3.clear()),J2?.clearMarks(e)}function Z_e(){return f3}function OY(e=Sd){var t;return f3||(f3=!0,d3||(d3=X_e()),d3?.performance&&(oFe=d3.performance.timeOrigin,(d3.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(J2=d3.performance))),!0}function epe(){f3&&(_3.clear(),q7.clear(),p3.clear(),J2=void 0,f3=!1)}var jn,$7;(e=>{let t,r=0,a=0,u,f=[],p,y=[];function g(ce,ae,Ce){if(B.assert(!jn,"Tracing already started"),t===void 0)try{t=Kit()}catch(be){throw new Error(`tracing requires having fs +(original error: ${be.message||be})`)}u=ce,f.length=0,p===void 0&&(p=xr(ae,"legend.json")),t.existsSync(ae)||t.mkdirSync(ae,{recursive:!0});let he=u==="build"?`.${process.pid}-${++r}`:u==="server"?`.${process.pid}`:"",ue=xr(ae,`trace${he}.json`),Ee=xr(ae,`types${he}.json`);y.push({configFilePath:Ce,tracePath:ue,typesPath:Ee}),a=t.openSync(ue,"w"),jn=e;let ve={cat:"__metadata",ph:"M",ts:1e3*zc(),pid:1,tid:1};t.writeSync(a,`[ +`+[{name:"process_name",args:{name:"tsc"},...ve},{name:"thread_name",args:{name:"Main"},...ve},{name:"TracingStartedInBrowser",...ve,cat:"disabled-by-default-devtools.timeline"}].map(be=>JSON.stringify(be)).join(`, +`))}e.startTracing=g;function x(){B.assert(jn,"Tracing is not in progress"),B.assert(!!f.length==(u!=="server")),t.writeSync(a,` +] +`),t.closeSync(a),jn=void 0,f.length?ne(f):y[y.length-1].typesPath=void 0}e.stopTracing=x;function k(ce){u!=="server"&&f.push(ce)}e.recordType=k;let T;(ce=>{ce.Parse="parse",ce.Program="program",ce.Bind="bind",ce.Check="check",ce.CheckTypes="checkTypes",ce.Emit="emit",ce.Session="session"})(T=e.Phase||(e.Phase={}));function A(ce,ae,Ce){$("I",ce,ae,Ce,'"s":"g"')}e.instant=A;let P=[];function R(ce,ae,Ce,he=!1){he&&$("B",ce,ae,Ce),P.push({phase:ce,name:ae,args:Ce,time:1e3*zc(),separateBeginAndEnd:he})}e.push=R;function W(ce){B.assert(P.length>0),G(P.length-1,1e3*zc(),ce),P.length--}e.pop=W;function z(){let ce=1e3*zc();for(let ae=P.length-1;ae>=0;ae--)G(ae,ce);P.length=0}e.popAll=z;let q=1e3*10;function G(ce,ae,Ce){let{phase:he,name:ue,args:Ee,time:ve,separateBeginAndEnd:be}=P[ce];be?(B.assert(!Ce,"`results` are not supported for events with `separateBeginAndEnd`"),$("E",he,ue,Ee,void 0,ae)):q-ve%q<=ae-ve&&$("X",he,ue,{...Ee,results:Ce},`"dur":${ae-ve}`,ve)}function $(ce,ae,Ce,he,ue,Ee=1e3*zc()){u==="server"&&ae==="checkTypes"||(zl("beginTracing"),t.writeSync(a,`, +{"pid":1,"tid":1,"ph":"${ce}","cat":"${ae}","ts":${Ee},"name":"${Ce}"`),ue&&t.writeSync(a,`,${ue}`),he&&t.writeSync(a,`,"args":${JSON.stringify(he)}`),t.writeSync(a,"}"),zl("endTracing"),ih("Tracing","beginTracing","endTracing"))}function te(ce){let ae=en(ce);return ae?{path:ae.path,start:Ce(ma(ae,ce.pos)),end:Ce(ma(ae,ce.end))}:void 0;function Ce(he){return{line:he.line+1,character:he.character+1}}}function ne(ce){var ae,Ce,he,ue,Ee,ve,be,Se,Re,ie,ke,De,Oe,we,Ae,Fe,Tt,Be,Ge;zl("beginDumpTypes");let Ke=y[y.length-1].typesPath,Ue=t.openSync(Ke,"w"),gt=new Map;t.writeSync(Ue,"[");let xt=ce.length;for(let nt=0;ntxn.id),referenceLocation:te(Rr.node)}}let Ci={};if(At.flags&16777216){let Rr=At;Ci={conditionalCheckType:(ve=Rr.checkType)==null?void 0:ve.id,conditionalExtendsType:(be=Rr.extendsType)==null?void 0:be.id,conditionalTrueType:((Se=Rr.resolvedTrueType)==null?void 0:Se.id)??-1,conditionalFalseType:((Re=Rr.resolvedFalseType)==null?void 0:Re.id)??-1}}let Sn={};if(At.flags&33554432){let Rr=At;Sn={substitutionBaseType:(ie=Rr.baseType)==null?void 0:ie.id,constraintType:(ke=Rr.constraint)==null?void 0:ke.id}}let nn={};if(ci&1024){let Rr=At;nn={reverseMappedSourceType:(De=Rr.source)==null?void 0:De.id,reverseMappedMappedType:(Oe=Rr.mappedType)==null?void 0:Oe.id,reverseMappedConstraintType:(we=Rr.constraintType)==null?void 0:we.id}}let Br={};if(ci&256){let Rr=At;Br={evolvingArrayElementType:Rr.elementType.id,evolvingArrayFinalType:(Ae=Rr.finalArrayType)==null?void 0:Ae.id}}let Gr,is=At.checker.getRecursionIdentity(At);is&&(Gr=gt.get(is),Gr||(Gr=gt.size,gt.set(is,Gr)));let Ao={id:At.id,intrinsicName:At.intrinsicName,symbolName:Fi?.escapedName&&So(Fi.escapedName),recursionId:Gr,isTuple:ci&8?!0:void 0,unionTypes:At.flags&1048576?(Fe=At.types)==null?void 0:Fe.map(Rr=>Rr.id):void 0,intersectionTypes:At.flags&2097152?At.types.map(Rr=>Rr.id):void 0,aliasTypeArguments:(Tt=At.aliasTypeArguments)==null?void 0:Tt.map(Rr=>Rr.id),keyofType:At.flags&4194304?(Be=At.type)==null?void 0:Be.id:void 0,...an,...ni,...Ci,...Sn,...nn,...Br,destructuringPattern:te(At.pattern),firstDeclaration:te((Ge=Fi?.declarations)==null?void 0:Ge[0]),flags:B.formatTypeFlags(At.flags).split("|"),display:bn};t.writeSync(Ue,JSON.stringify(Ao)),nt(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.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.PartiallyEmittedExpression=354]="PartiallyEmittedExpression",e[e.CommaListExpression=355]="CommaListExpression",e[e.SyntheticReferenceExpression=356]="SyntheticReferenceExpression",e[e.Count=357]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(FY||{}),MY=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(MY||{}),RY=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(RY||{}),npe=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(npe||{}),BY=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(BY||{}),rpe=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(rpe||{}),jY=(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))(jY||{}),ope=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(ope||{}),spe=(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.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(spe||{}),JW=(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))(JW||{}),ape=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(ape||{}),h3=class{},WY=(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))(WY||{}),cpe=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(cpe||{}),lpe=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(lpe||{}),zY=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(zY||{}),upe=(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))(upe||{}),dpe=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(dpe||{}),fpe=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(fpe||{}),_pe=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(_pe||{}),ppe=(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))(ppe||{}),mpe=(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.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(mpe||{}),hpe=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(hpe||{}),gpe=(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.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=848330095]="NodeBuilderFlagsMask",e))(gpe||{}),ype=(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))(ype||{}),vpe=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(vpe||{}),bpe=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(bpe||{}),Spe=(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))(Spe||{}),VY=(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=-1]="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))(VY||{}),xpe=(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))(xpe||{}),Cpe=(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.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(Cpe||{}),HY=(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.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(HY||{}),UY=(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.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",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.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.Primitive=402784252]="Primitive",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=473694207]="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.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(UY||{}),JY=(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.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",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[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(JY||{}),kpe=(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))(kpe||{}),wpe=(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))(wpe||{}),Tpe=(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.AllowMissing=16]="AllowMissing",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))(Tpe||{}),Epe=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Epe||{}),Dpe=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Dpe||{}),Ipe=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Ipe||{}),qY=(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.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(qY||{}),Npe=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(Npe||{}),Ape=(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))(Ape||{}),Ppe=(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))(Ppe||{}),Lpe=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Lpe||{}),Ope=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Ope||{}),Fpe=(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))(Fpe||{}),qW=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(qW||{});function q2(e,t=!0){let r=qW[e.category];return t?r.toLowerCase():r}var g3=(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))(g3||{}),Mpe=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Mpe||{}),Rpe=(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))(Rpe||{}),Bpe=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Bpe||{}),jpe=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(jpe||{}),G7=(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[e.Preserve=200]="Preserve",e))(G7||{}),Wpe=(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))(Wpe||{}),zpe=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(zpe||{}),Vpe=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Vpe||{}),$Y=(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))($Y||{}),Hpe=(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.ES2023=10]="ES2023",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Hpe||{}),Upe=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Upe||{}),Jpe=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Jpe||{}),qpe=(e=>(e[e.EOF=-1]="EOF",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.replacementCharacter=65533]="replacementCharacter",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))(qpe||{}),$pe=(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))($pe||{}),GY=(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))(GY||{}),KY=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(KY||{}),XY=(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.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(XY||{}),Gpe=(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))(Gpe||{}),Kpe=(e=>(e[e.Classes=2]="Classes",e[e.ForOf=2]="ForOf",e[e.Generators=2]="Generators",e[e.Iteration=2]="Iteration",e[e.SpreadElements=2]="SpreadElements",e[e.RestElements=2]="RestElements",e[e.TaggedTemplates=2]="TaggedTemplates",e[e.DestructuringAssignment=2]="DestructuringAssignment",e[e.BindingPatterns=2]="BindingPatterns",e[e.ArrowFunctions=2]="ArrowFunctions",e[e.BlockScopedVariables=2]="BlockScopedVariables",e[e.ObjectAssign=2]="ObjectAssign",e[e.RegularExpressionFlagsUnicode=2]="RegularExpressionFlagsUnicode",e[e.RegularExpressionFlagsSticky=2]="RegularExpressionFlagsSticky",e[e.Exponentiation=3]="Exponentiation",e[e.AsyncFunctions=4]="AsyncFunctions",e[e.ForAwaitOf=5]="ForAwaitOf",e[e.AsyncGenerators=5]="AsyncGenerators",e[e.AsyncIteration=5]="AsyncIteration",e[e.ObjectSpreadRest=5]="ObjectSpreadRest",e[e.RegularExpressionFlagsDotAll=5]="RegularExpressionFlagsDotAll",e[e.BindinglessCatch=6]="BindinglessCatch",e[e.BigInt=7]="BigInt",e[e.NullishCoalesce=7]="NullishCoalesce",e[e.OptionalChaining=7]="OptionalChaining",e[e.LogicalAssignment=8]="LogicalAssignment",e[e.TopLevelAwait=9]="TopLevelAwait",e[e.ClassFields=9]="ClassFields",e[e.PrivateNamesAndClassStaticBlocks=9]="PrivateNamesAndClassStaticBlocks",e[e.RegularExpressionFlagsHasIndices=9]="RegularExpressionFlagsHasIndices",e[e.ShebangComments=99]="ShebangComments",e[e.UsingAndAwaitUsing=99]="UsingAndAwaitUsing",e[e.ClassAndClassElementDecorators=99]="ClassAndClassElementDecorators",e[e.RegularExpressionFlagsUnicodeSets=99]="RegularExpressionFlagsUnicodeSets",e))(Kpe||{}),Xpe=(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.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",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))(Xpe||{}),Ype=(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[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(Ype||{}),Qpe=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Assertions=6]="Assertions",e[e.All=31]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(Qpe||{}),Zpe=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Zpe||{}),eme=(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.ImportAttributes=526226]="ImportAttributes",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))(eme||{}),tme=(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))(tme||{}),$W={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},{name:"preserve",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}},ime=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(ime||{});function y3(e){let t=5381;for(let r=0;r(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(nme||{}),YY=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(YY||{}),Bp=new Date(0);function PI(e,t){return e.getModifiedTime(t)||Bp}function rme(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var QY={Low:32,Medium:64,High:256},ZY=rme(QY),GW=rme(QY);function Mkt(e){if(!e.getEnvironmentVariable)return;let t=u("TSC_WATCH_POLLINGINTERVAL",YY);ZY=f("TSC_WATCH_POLLINGCHUNKSIZE",QY)||ZY,GW=f("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",QY)||GW;function r(p,y){return e.getEnvironmentVariable(`${p}_${y.toUpperCase()}`)}function a(p){let y;return g("Low"),g("Medium"),g("High"),y;function g(x){let k=r(p,x);k&&((y||(y={}))[x]=Number(k))}}function u(p,y){let g=a(p);if(g)return x("Low"),x("Medium"),x("High"),!0;return!1;function x(k){y[k]=g[k]||y[k]}}function f(p,y){let g=a(p);return(t||g)&&rme(g?{...y,...g}:y)}}function dFe(e,t,r,a,u){let f=r;for(let y=t.length;a&&y;p(),y--){let g=t[r];if(g){if(g.isClosed){t[r]=void 0;continue}}else continue;a--;let x=Wkt(g,PI(e,g.fileName));if(g.isClosed){t[r]=void 0;continue}u?.(g,r,x),t[r]&&(f{$.isClosed=!0,NI(t,$)}}}function y(z){let q=[];return q.pollingInterval=z,q.pollIndex=0,q.pollScheduled=!1,q}function g(z,q){q.pollIndex=k(q,q.pollingInterval,q.pollIndex,ZY[q.pollingInterval]),q.length?W(q.pollingInterval):(B.assert(q.pollIndex===0),q.pollScheduled=!1)}function x(z,q){k(r,250,0,r.length),g(z,q),!q.pollScheduled&&r.length&&W(250)}function k(z,q,G,$){return dFe(e,z,G,$,te);function te(ne,_e,ce){ce?(ne.unchangedPolls=0,z!==r&&(z[_e]=void 0,P(ne))):ne.unchangedPolls!==GW[q]?ne.unchangedPolls++:z===r?(ne.unchangedPolls=1,z[_e]=void 0,A(ne,250)):q!==2e3&&(ne.unchangedPolls++,z[_e]=void 0,A(ne,q===250?500:2e3))}}function T(z){switch(z){case 250:return a;case 500:return u;case 2e3:return f}}function A(z,q){T(q).push(z),R(q)}function P(z){r.push(z),R(250)}function R(z){T(z).pollScheduled||W(z)}function W(z){T(z).pollScheduled=e.setTimeout(z===250?x:g,z,z===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",T(z))}}function Bkt(e,t,r,a){let u=Dm(),f=a?new Map:void 0,p=new Map,y=df(t);return g;function g(k,T,A,P){let R=y(k);u.add(R,T).length===1&&f&&f.set(R,r(k)||Bp);let W=Or(R)||".",z=p.get(W)||x(Or(k)||".",W,P);return z.referenceCount++,{close:()=>{z.referenceCount===1?(z.close(),p.delete(W)):z.referenceCount--,u.remove(R,T)}}}function x(k,T,A){let P=e(k,1,(R,W)=>{if(!fs(W))return;let z=ts(W,k),q=y(z),G=z&&u.get(q);if(G){let $,te=1;if(f){let ne=f.get(q);if(R==="change"&&($=r(z)||Bp,$.getTime()===ne.getTime()))return;$||($=r(z)||Bp),f.set(q,$),ne===Bp?te=0:$===Bp&&(te=2)}for(let ne of G)ne(z,te,$)}},!1,500,A);return P.referenceCount=0,p.set(T,P),P}}function jkt(e){let t=[],r=0,a;return u;function u(y,g){let x={fileName:y,callback:g,mtime:PI(e,y)};return t.push(x),p(),{close:()=>{x.isClosed=!0,NI(t,x)}}}function f(){a=void 0,r=dFe(e,t,r,ZY[250]),p()}function p(){!t.length||a||(a=e.setTimeout(f,2e3,"pollQueue"))}}function fFe(e,t,r,a,u){let p=df(t)(r),y=e.get(p);return y?y.callbacks.push(a):e.set(p,{watcher:u((g,x,k)=>{var T;return(T=e.get(p))==null?void 0:T.callbacks.slice().forEach(A=>A(g,x,k))}),callbacks:[a]}),{close:()=>{let g=e.get(p);g&&(!l3(g.callbacks,a)||g.callbacks.length||(e.delete(p),mh(g)))}}}function Wkt(e,t){let r=e.mtime.getTime(),a=t.getTime();return r!==a?(e.mtime=t,e.callback(e.fileName,eQ(r,a),t),!0):!1}function eQ(e,t){return e===0?0:t===0?2:1}var KW=["/node_modules/.","/.git","/.#"],_Fe=dc;function K7(e){return _Fe(e)}function ome(e){_Fe=e}function zkt({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:a,fileSystemEntryExists:u,realpath:f,setTimeout:p,clearTimeout:y}){let g=new Map,x=Dm(),k=new Map,T,A=TP(!t),P=df(t);return(ae,Ce,he,ue)=>he?R(ae,ue,Ce):e(ae,Ce,he,ue);function R(ae,Ce,he,ue){let Ee=P(ae),ve=g.get(Ee);ve?ve.refCount++:(ve={watcher:e(ae,Se=>{var Re;_e(Se,Ce)||(Ce?.synchronousWatchDirectory?((Re=g.get(Ee))!=null&&Re.targetWatcher||W(ae,Ee,Se),ne(ae,Ee,Ce)):z(ae,Ee,Se,Ce))},!1,Ce),refCount:1,childWatches:F,targetWatcher:void 0,links:void 0},g.set(Ee,ve),ne(ae,Ee,Ce)),ue&&(ve.links??(ve.links=new Set)).add(ue);let be=he&&{dirName:ae,callback:he};return be&&x.add(Ee,be),{dirName:ae,close:()=>{var Se;let Re=B.checkDefined(g.get(Ee));be&&x.remove(Ee,be),ue&&((Se=Re.links)==null||Se.delete(ue)),Re.refCount--,!Re.refCount&&(g.delete(Ee),Re.links=void 0,mh(Re),te(Re),Re.childWatches.forEach(kg))}}}function W(ae,Ce,he,ue){var Ee,ve;let be,Se;fs(he)?be=he:Se=he,x.forEach((Re,ie)=>{if(!(Se&&Se.get(ie)===!0)&&(ie===Ce||Ro(Ce,ie)&&Ce[ie.length]===wl))if(Se)if(ue){let ke=Se.get(ie);ke?ke.push(...ue):Se.set(ie,ue.slice())}else Se.set(ie,!0);else Re.forEach(({callback:ke})=>ke(be))}),(ve=(Ee=g.get(Ce))==null?void 0:Ee.links)==null||ve.forEach(Re=>{let ie=ke=>xr(Re,Sg(ae,ke,P));Se?W(Re,P(Re),Se,ue?.map(ie)):W(Re,P(Re),ie(be))})}function z(ae,Ce,he,ue){let Ee=g.get(Ce);if(Ee&&u(ae,1)){q(ae,Ce,he,ue);return}W(ae,Ce,he),te(Ee),$(Ee)}function q(ae,Ce,he,ue){let Ee=k.get(Ce);Ee?Ee.fileNames.push(he):k.set(Ce,{dirName:ae,options:ue,fileNames:[he]}),T&&(y(T),T=void 0),T=p(G,1e3,"timerToUpdateChildWatches")}function G(){var ae;T=void 0,K7(`sysLog:: onTimerToUpdateChildWatches:: ${k.size}`);let Ce=zc(),he=new Map;for(;!T&&k.size;){let Ee=k.entries().next();B.assert(!Ee.done);let{value:[ve,{dirName:be,options:Se,fileNames:Re}]}=Ee;k.delete(ve);let ie=ne(be,ve,Se);(ae=g.get(ve))!=null&&ae.targetWatcher||W(be,ve,he,ie?void 0:Re)}K7(`sysLog:: invokingWatchers:: Elapsed:: ${zc()-Ce}ms:: ${k.size}`),x.forEach((Ee,ve)=>{let be=he.get(ve);be&&Ee.forEach(({callback:Se,dirName:Re})=>{ds(be)?be.forEach(Se):Se(Re)})});let ue=zc()-Ce;K7(`sysLog:: Elapsed:: ${ue}ms:: onTimerToUpdateChildWatches:: ${k.size} ${T}`)}function $(ae){if(!ae)return;let Ce=ae.childWatches;ae.childWatches=F;for(let he of Ce)he.close(),$(g.get(P(he.dirName)))}function te(ae){ae?.targetWatcher&&(ae.targetWatcher.close(),ae.targetWatcher=void 0)}function ne(ae,Ce,he){let ue=g.get(Ce);if(!ue)return!1;let Ee=$s(f(ae)),ve,be;return A(Ee,ae)===0?ve=HW(u(ae,1)?ro(a(ae),ie=>{let ke=ts(ie,ae);return!_e(ke,he)&&A(ke,$s(f(ke)))===0?ke:void 0}):F,ue.childWatches,(ie,ke)=>A(ie,ke.dirName),Se,kg,Re):ue.targetWatcher&&A(Ee,ue.targetWatcher.dirName)===0?(ve=!1,B.assert(ue.childWatches===F)):(te(ue),ue.targetWatcher=R(Ee,he,void 0,ae),ue.childWatches.forEach(kg),ve=!0),ue.childWatches=be||F,ve;function Se(ie){let ke=R(ie,he);Re(ke)}function Re(ie){(be||(be=[])).push(ie)}}function _e(ae,Ce){return Lt(KW,he=>ce(ae,he))||pFe(ae,Ce,t,r)}function ce(ae,Ce){return ae.includes(Ce)?!0:t?!1:P(ae).includes(Ce)}}var sme=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(sme||{});function Vkt(e){return(t,r,a)=>e(r===1?"change":"rename","",a)}function Hkt(e,t,r){return(a,u,f)=>{a==="rename"?(f||(f=r(e)||Bp),t(e,f!==Bp?0:2,f)):t(e,1,f)}}function pFe(e,t,r,a){return(t?.excludeDirectories||t?.excludeFiles)&&(ZH(e,t?.excludeFiles,r,a())||ZH(e,t?.excludeDirectories,r,a()))}function mFe(e,t,r,a,u){return(f,p)=>{if(f==="rename"){let y=p?$s(xr(e,p)):e;(!p||!pFe(y,r,a,u))&&t(y)}}}function ame({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:a,fsWatchWorker:u,fileSystemEntryExists:f,useCaseSensitiveFileNames:p,getCurrentDirectory:y,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:x,realpath:k,tscWatchFile:T,useNonPollingWatchers:A,tscWatchDirectory:P,inodeWatching:R,fsWatchWithTimestamp:W,sysLog:z}){let q=new Map,G=new Map,$=new Map,te,ne,_e,ce,ae=!1;return{watchFile:Ce,watchDirectory:be};function Ce(we,Ae,Fe,Tt){Tt=Ee(Tt,A);let Be=B.checkDefined(Tt.watchFile);switch(Be){case 0:return ie(we,Ae,250,void 0);case 1:return ie(we,Ae,Fe,void 0);case 2:return he()(we,Ae,Fe,void 0);case 3:return ue()(we,Ae,void 0,void 0);case 4:return ke(we,0,Hkt(we,Ae,t),!1,Fe,w5(Tt));case 5:return _e||(_e=Bkt(ke,p,t,W)),_e(we,Ae,Fe,w5(Tt));default:B.assertNever(Be)}}function he(){return te||(te=Rkt({getModifiedTime:t,setTimeout:r}))}function ue(){return ne||(ne=jkt({getModifiedTime:t,setTimeout:r}))}function Ee(we,Ae){if(we&&we.watchFile!==void 0)return we;switch(T){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return ve(4,1,we);case"UseFsEventsWithFallbackDynamicPolling":return ve(4,2,we);case"UseFsEventsOnParentDirectory":Ae=!0;default:return Ae?ve(5,1,we):{watchFile:4}}}function ve(we,Ae,Fe){let Tt=Fe?.fallbackPolling;return{watchFile:we,fallbackPolling:Tt===void 0?Ae:Tt}}function be(we,Ae,Fe,Tt){return g?ke(we,1,mFe(we,Ae,Tt,p,y),Fe,500,w5(Tt)):(ce||(ce=zkt({useCaseSensitiveFileNames:p,getCurrentDirectory:y,fileSystemEntryExists:f,getAccessibleSortedChildDirectories:x,watchDirectory:Se,realpath:k,setTimeout:r,clearTimeout:a})),ce(we,Ae,Fe,Tt))}function Se(we,Ae,Fe,Tt){B.assert(!Fe);let Be=Re(Tt),Ge=B.checkDefined(Be.watchDirectory);switch(Ge){case 1:return ie(we,()=>Ae(we),500,void 0);case 2:return he()(we,()=>Ae(we),500,void 0);case 3:return ue()(we,()=>Ae(we),void 0,void 0);case 0:return ke(we,1,mFe(we,Ae,Tt,p,y),Fe,500,w5(Be));default:B.assertNever(Ge)}}function Re(we){if(we&&we.watchDirectory!==void 0)return we;switch(P){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let Ae=we?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ae!==void 0?Ae:void 0}}}function ie(we,Ae,Fe,Tt){return fFe(q,p,we,Ae,Be=>e(we,Be,Fe,Tt))}function ke(we,Ae,Fe,Tt,Be,Ge){return fFe(Tt?$:G,p,we,Fe,Ke=>De(we,Ae,Ke,Tt,Be,Ge))}function De(we,Ae,Fe,Tt,Be,Ge){let Ke,Ue;R&&(Ke=we.substring(we.lastIndexOf(wl)),Ue=Ke.slice(wl.length));let gt=f(we,Ae)?nt():Fi();return{close:()=>{gt&&(gt.close(),gt=void 0)}};function xt(bn){gt&&(z(`sysLog:: ${we}:: Changing watcher to ${bn===nt?"Present":"Missing"}FileSystemEntryWatcher`),gt.close(),gt=bn())}function nt(){if(ae)return z(`sysLog:: ${we}:: Defaulting to watchFile`),ci();try{let bn=(Ae===1||!W?u:Oe)(we,Tt,R?At:Fe);return bn.on("error",()=>{Fe("rename",""),xt(Fi)}),bn}catch(bn){return ae||(ae=bn.code==="ENOSPC"),z(`sysLog:: ${we}:: Changing to watchFile`),ci()}}function At(bn,an){let ni;if(an&&Wl(an,"~")&&(ni=an,an=an.slice(0,an.length-1)),bn==="rename"&&(!an||an===Ue||Wl(an,Ke))){let Ci=t(we)||Bp;ni&&Fe(bn,ni,Ci),Fe(bn,an,Ci),R?xt(Ci===Bp?Fi:nt):Ci===Bp&&xt(Fi)}else ni&&Fe(bn,ni),Fe(bn,an)}function ci(){return Ce(we,Vkt(Fe),Be,Ge)}function Fi(){return Ce(we,(bn,an,ni)=>{an===0&&(ni||(ni=t(we)||Bp),ni!==Bp&&(Fe("rename","",ni),xt(nt)))},Be,Ge)}}function Oe(we,Ae,Fe){let Tt=t(we)||Bp;return u(we,Ae,(Be,Ge,Ke)=>{Be==="change"&&(Ke||(Ke=t(we)||Bp),Ke.getTime()===Tt.getTime())||(Tt=Ke||t(we)||Bp,Fe(Be,Ge,Tt))})}}function cme(e){let t=e.writeFile;e.writeFile=(r,a,u)=>FZ(r,a,!!u,(f,p,y)=>t.call(e,f,p,y),f=>e.createDirectory(f),f=>e.directoryExists(f))}var Sd=(()=>{let e="\uFEFF";function t(){let a=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,u=Kit(),f=YXt(),p=QXt(),y;try{y=ZXt()}catch{y=void 0}let g,x="./profile.cpuprofile",k=process.platform==="darwin",T=process.platform==="linux"||k,A=p.platform(),P=Ce(),R=u.realpathSync.native?process.platform==="win32"?we:u.realpathSync.native:u.realpathSync,W=__filename.endsWith("sys.js")?f.join(f.dirname(__dirname),"__fake__.js"):__filename,z=process.platform==="win32"||k,q=l_(()=>process.cwd()),{watchFile:G,watchDirectory:$}=ame({pollingWatchFileWorker:ue,getModifiedTime:Fe,setTimeout,clearTimeout,fsWatchWorker:Ee,useCaseSensitiveFileNames:P,getCurrentDirectory:q,fileSystemEntryExists:ie,fsSupportsRecursiveFsWatch:z,getAccessibleSortedChildDirectories:Ke=>Se(Ke).directories,realpath:Ae,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:T,fsWatchWithTimestamp:k,sysLog:K7}),te={args:process.argv.slice(2),newLine:p.EOL,useCaseSensitiveFileNames:P,write(Ke){process.stdout.write(Ke)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:ve,writeFile:be,watchFile:G,watchDirectory:$,preferNonRecursiveWatch:!z,resolvePath:Ke=>f.resolve(Ke),fileExists:ke,directoryExists:De,getAccessibleFileSystemEntries:Se,createDirectory(Ke){if(!te.directoryExists(Ke))try{u.mkdirSync(Ke)}catch(Ue){if(Ue.code!=="EEXIST")throw Ue}},getExecutingFilePath(){return W},getCurrentDirectory:q,getDirectories:Oe,getEnvironmentVariable(Ke){return process.env[Ke]||""},readDirectory:Re,getModifiedTime:Fe,setModifiedTime:Tt,deleteFile:Be,createHash:y?Ge:y3,createSHA256Hash:y?Ge:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(Ke){try{let Ue=ne(Ke);if(Ue?.isFile())return Ue.size}catch{}return 0},exit(Ke){ae(()=>process.exit(Ke))},enableCPUProfiler:_e,disableCPUProfiler:ae,cpuProfilingEnabled:()=>!!g||sn(process.execArgv,"--cpu-prof")||sn(process.execArgv,"--prof"),realpath:Ae,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||Lt(process.execArgv,Ke=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(Ke))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{eYt().install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1B[2J\x1B[3J\x1B[H")},setBlocking:()=>{var Ke;let Ue=(Ke=process.stdout)==null?void 0:Ke._handle;Ue&&Ue.setBlocking&&Ue.setBlocking(!0)},base64decode:Ke=>Buffer.from(Ke,"base64").toString("utf8"),base64encode:Ke=>Buffer.from(Ke).toString("base64"),require:(Ke,Ue)=>{try{let gt=Nve(Ue,Ke,te);return{module:D4e(gt),modulePath:gt,error:void 0}}catch(gt){return{module:void 0,modulePath:void 0,error:gt}}}};return te;function ne(Ke){return u.statSync(Ke,{throwIfNoEntry:!1})}function _e(Ke,Ue){if(g)return Ue(),!1;let gt=tYt();if(!gt||!gt.Session)return Ue(),!1;let xt=new gt.Session;return xt.connect(),xt.post("Profiler.enable",()=>{xt.post("Profiler.start",()=>{g=xt,x=Ke,Ue()})}),!0}function ce(Ke){let Ue=0,gt=new Map,xt=ff(f.dirname(W)),nt=`file://${Vy(xt)===1?"":"/"}${xt}`;for(let At of Ke.nodes)if(At.callFrame.url){let ci=ff(At.callFrame.url);nh(nt,ci,P)?At.callFrame.url=LI(nt,ci,nt,df(P),!0):a.test(ci)||(At.callFrame.url=(gt.has(ci)?gt:gt.set(ci,`external${Ue}.js`)).get(ci),Ue++)}return Ke}function ae(Ke){if(g&&g!=="stopping"){let Ue=g;return g.post("Profiler.stop",(gt,{profile:xt})=>{var nt;if(!gt){try{(nt=ne(x))!=null&&nt.isDirectory()&&(x=f.join(x,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{u.mkdirSync(f.dirname(x),{recursive:!0})}catch{}u.writeFileSync(x,JSON.stringify(ce(xt)))}g=void 0,Ue.disconnect(),Ke()}),g="stopping",!0}else return Ke(),!1}function Ce(){return A==="win32"||A==="win64"?!1:!ke(he(__filename))}function he(Ke){return Ke.replace(/\w/g,Ue=>{let gt=Ue.toUpperCase();return Ue===gt?Ue.toLowerCase():gt})}function ue(Ke,Ue,gt){u.watchFile(Ke,{persistent:!0,interval:gt},nt);let xt;return{close:()=>u.unwatchFile(Ke,nt)};function nt(At,ci){let Fi=+ci.mtime==0||xt===2;if(+At.mtime==0){if(Fi)return;xt=2}else if(Fi)xt=0;else{if(+At.mtime==+ci.mtime)return;xt=1}Ue(Ke,xt,At.mtime)}}function Ee(Ke,Ue,gt){return u.watch(Ke,z?{persistent:!0,recursive:!!Ue}:{persistent:!0},gt)}function ve(Ke,Ue){let gt;try{gt=u.readFileSync(Ke)}catch{return}let xt=gt.length;if(xt>=2&>[0]===254&>[1]===255){xt&=-2;for(let nt=0;nt=2&>[0]===255&>[1]===254?gt.toString("utf16le",2):xt>=3&>[0]===239&>[1]===187&>[2]===191?gt.toString("utf8",3):gt.toString("utf8")}function be(Ke,Ue,gt){gt&&(Ue=e+Ue);let xt;try{xt=u.openSync(Ke,"w"),u.writeSync(xt,Ue,void 0,"utf8")}finally{xt!==void 0&&u.closeSync(xt)}}function Se(Ke){try{let Ue=u.readdirSync(Ke||".",{withFileTypes:!0}),gt=[],xt=[];for(let nt of Ue){let At=typeof nt=="string"?nt:nt.name;if(At==="."||At==="..")continue;let ci;if(typeof nt=="string"||nt.isSymbolicLink()){let Fi=xr(Ke,At);try{if(ci=ne(Fi),!ci)continue}catch{continue}}else ci=nt;ci.isFile()?gt.push(At):ci.isDirectory()&&xt.push(At)}return gt.sort(),xt.sort(),{files:gt,directories:xt}}catch{return fee}}function Re(Ke,Ue,gt,xt,nt){return lee(Ke,Ue,gt,xt,P,process.cwd(),nt,Se,Ae)}function ie(Ke,Ue){let gt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{let xt=ne(Ke);if(!xt)return!1;switch(Ue){case 0:return xt.isFile();case 1:return xt.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=gt}}function ke(Ke){return ie(Ke,0)}function De(Ke){return ie(Ke,1)}function Oe(Ke){return Se(Ke).directories.slice()}function we(Ke){return Ke.length<260?u.realpathSync.native(Ke):u.realpathSync(Ke)}function Ae(Ke){try{return R(Ke)}catch{return Ke}}function Fe(Ke){var Ue;let gt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Ue=ne(Ke))==null?void 0:Ue.mtime}catch{return}finally{Error.stackTraceLimit=gt}}function Tt(Ke,Ue){try{u.utimesSync(Ke,Ue,Ue)}catch{return}}function Be(Ke){try{return u.unlinkSync(Ke)}catch{return}}function Ge(Ke){let Ue=y.createHash("sha256");return Ue.update(Ke),Ue.digest("hex")}}let r;return AY()&&(r=t()),r&&cme(r),r})();function hFe(e){Sd=e}Sd&&Sd.getEnvironmentVariable&&(Mkt(Sd),B.setAssertionLevel(/^development$/i.test(Sd.getEnvironmentVariable("NODE_ENV"))?1:0)),Sd&&Sd.debugMode&&(B.isDebugging=!0);var wl="/",XW="\\",gFe="://",Ukt=/\\/g;function tQ(e){return e===47||e===92}function lme(e){return YW(e)<0}function jp(e){return YW(e)>0}function iQ(e){let t=YW(e);return t>0&&t===e.length}function v3(e){return YW(e)!==0}function Nm(e){return/^\.\.?(?:$|[\\/])/.test(e)}function nQ(e){return!v3(e)&&!Nm(e)}function DP(e){return Xu(e).includes(".")}function Tl(e,t){return e.length>t.length&&Wl(e,t)}function vu(e,t){for(let r of t)if(Tl(e,r))return!0;return!1}function cx(e){return e.length>0&&tQ(e.charCodeAt(e.length-1))}function yFe(e){return e>=97&&e<=122||e>=65&&e<=90}function Jkt(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let a=e.charCodeAt(t+2);if(a===97||a===65)return t+3}return-1}function YW(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let a=e.indexOf(t===47?wl:XW,2);return a<0?e.length:a+1}if(yFe(t)&&e.charCodeAt(1)===58){let a=e.charCodeAt(2);if(a===47||a===92)return 3;if(e.length===2)return 2}let r=e.indexOf(gFe);if(r!==-1){let a=r+gFe.length,u=e.indexOf(wl,a);if(u!==-1){let f=e.slice(0,r),p=e.slice(a,u);if(f==="file"&&(p===""||p==="localhost")&&yFe(e.charCodeAt(u+1))){let y=Jkt(e,u+2);if(y!==-1){if(e.charCodeAt(y)===47)return~(y+1);if(y===e.length)return~y}}return~(u+1)}return~e.length}return 0}function Vy(e){let t=YW(e);return t<0?~t:t}function Or(e){e=ff(e);let t=Vy(e);return t===e.length?e:(e=$C(e),e.slice(0,Math.max(t,e.lastIndexOf(wl))))}function Xu(e,t,r){if(e=ff(e),Vy(e)===e.length)return"";e=$C(e);let u=e.slice(Math.max(Vy(e),e.lastIndexOf(wl)+1)),f=t!==void 0&&r!==void 0?IP(u,t,r):void 0;return f?u.slice(0,u.length-f.length):u}function vFe(e,t,r){if(Ro(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let a=e.slice(e.length-t.length);if(r(a,t))return a}}function qkt(e,t,r){if(typeof t=="string")return vFe(e,t,r)||"";for(let a of t){let u=vFe(e,a,r);if(u)return u}return""}function IP(e,t,r){if(t)return qkt($C(e),t,r?sx:Mw);let a=Xu(e),u=a.lastIndexOf(".");return u>=0?a.substring(u):""}function $kt(e,t){let r=e.substring(0,t),a=e.substring(t).split(wl);return a.length&&!Lc(a)&&a.pop(),[r,...a]}function zd(e,t=""){return e=xr(t,e),$kt(e,Vy(e))}function Xb(e,t){return e.length===0?"":(e[0]&&xd(e[0]))+e.slice(1,t).join(wl)}function ff(e){return e.includes("\\")?e.replace(Ukt,wl):e}function $2(e){if(!Lt(e))return[];let t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(a)}}return t}function xr(e,...t){e&&(e=ff(e));for(let r of t)r&&(r=ff(r),!e||Vy(r)!==0?e=r:e=xd(e)+r);return e}function qC(e,...t){return $s(Lt(t)?xr(e,...t):ff(e))}function X7(e,t){return $2(zd(e,t))}function ts(e,t){return Xb(X7(e,t))}function $s(e){if(e=ff(e),!oQ.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!oQ.test(e)))return e;let r=Xb($2(zd(e)));return r&&cx(e)?xd(r):r}function Gkt(e){return e.length===0?"":e.slice(1).join(wl)}function rQ(e,t){return Gkt(X7(e,t))}function Vc(e,t,r){let a=jp(e)?$s(e):ts(e,t);return r(a)}function $C(e){return cx(e)?e.substr(0,e.length-1):e}function xd(e){return cx(e)?e:e+wl}function G2(e){return!v3(e)&&!Nm(e)?"./"+e:e}function Y7(e,t,r,a){let u=r!==void 0&&a!==void 0?IP(e,r,a):IP(e);return u?e.slice(0,e.length-u.length)+(Ro(t,".")?t:"."+t):e}function QW(e,t){let r=hte(e);return r?e.slice(0,e.length-r.length)+(Ro(t,".")?t:"."+t):Y7(e,t)}var oQ=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function ume(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let a=e.substring(0,Vy(e)),u=t.substring(0,Vy(t)),f=U7(a,u);if(f!==0)return f;let p=e.substring(a.length),y=t.substring(u.length);if(!oQ.test(p)&&!oQ.test(y))return r(p,y);let g=$2(zd(e)),x=$2(zd(t)),k=Math.min(g.length,x.length);for(let T=1;T0==Vy(t)>0,"Paths must either both be absolute or both be relative");let f=xFe(e,t,(typeof r=="boolean"?r:!1)?sx:Mw,typeof r=="function"?r:Gc);return Xb(f)}function b3(e,t,r){return jp(e)?LI(t,e,t,r,!1):e}function S3(e,t,r){return G2(Sg(Or(e),t,r))}function LI(e,t,r,a,u){let f=xFe(qC(r,e),qC(r,t),Mw,a),p=f[0];if(u&&jp(p)){let y=p.charAt(0)===wl?"file://":"file:///";f[0]=y+p}return Xb(f)}function Rh(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let a=Or(e);if(a===e)return;e=a}}function ZW(e){return Wl(e,"/node_modules")}function N(e,t,r,a,u,f,p){return{code:e,category:t,key:r,message:a,reportsUnnecessary:u,elidedInCompatabilityPyramid:f,reportsDeprecated:p}}var S={Unterminated_string_literal:N(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:N(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:N(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:N(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:N(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:N(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:N(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:N(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:N(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:N(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:N(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:N(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:N(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:N(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:N(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:N(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:N(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:N(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:N(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:N(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:N(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_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:N(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:N(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:N(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:N(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:N(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:N(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:N(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:N(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:N(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:N(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:N(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:N(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:N(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:N(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:N(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:N(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:N(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:N(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:N(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:N(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:N(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:N(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:N(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:N(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:N(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:N(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:N(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:N(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:N(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:N(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:N(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:N(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:N(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:N(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:N(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:N(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:N(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:N(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:N(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:N(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:N(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:N(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:N(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:N(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:N(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:N(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:N(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:N(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:N(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:N(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:N(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:N(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:N(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:N(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:N(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:N(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."),_0_declarations_must_be_initialized:N(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:N(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:N(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:N(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:N(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:N(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:N(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:N(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:N(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:N(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:N(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:N(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:N(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:N(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:N(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:N(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:N(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:N(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:N(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:N(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:N(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:N(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:N(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:N(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:N(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:N(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:N(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:N(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:N(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:N(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:N(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:N(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:N(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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_ES5:N(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:N(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:N(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:N(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:N(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:N(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:N(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:N(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:N(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),with_statements_are_not_allowed_in_an_async_function_block:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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_nodenext_or_preserve:N(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:N(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:N(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:N(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:N(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:N(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:N(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:N(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:N(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:N(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),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:N(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:N(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:N(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_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(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', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:N(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:N(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:N(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:N(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:N(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:N(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:N(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:N(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:N(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:N(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:N(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:N(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:N(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:N(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:N(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:N(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:N(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:N(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:N(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:N(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:N(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:N(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:N(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:N(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:N(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:N(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_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(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', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:N(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:N(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:N(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:N(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:N(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:N(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:N(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:N(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:N(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:N(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:N(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:N(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:N(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_set_of_attributes_as_arguments:N(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes 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:N(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_should_be_either_require_or_import:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:N(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:N(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:N(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:N(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:N(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:N(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:N(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:N(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:N(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:N(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:N(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:N(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:N(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:N(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:N(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:N(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:N(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:N(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:N(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:N(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:N(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:N(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:N(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:N(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:N(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:N(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:N(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:N(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:N(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:N(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:N(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:N(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:N(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:N(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:N(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:N(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:N(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:N(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:N(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:N(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:N(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:N(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:N(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:N(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:N(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:N(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:N(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:N(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:N(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:N(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:N(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:N(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:N(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:N(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:N(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:N(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),The_types_of_0_are_incompatible_between_these_types:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:N(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:N(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:N(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:N(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:N(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:N(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:N(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:N(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:N(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:N(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:N(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:N(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:N(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:N(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:N(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:N(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:N(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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}'."),Untyped_function_calls_may_not_accept_type_arguments:N(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:N(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:N(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:N(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:N(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:N(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:N(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:N(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_undefined_void_nor_any_must_return_a_value:N(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:N(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:N(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:N(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_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:N(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:N(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:N(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:N(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:N(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:N(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:N(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:N(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."),Overload_signatures_must_all_be_exported_or_non_exported:N(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:N(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:N(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:N(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:N(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:N(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:N(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:N(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:N(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:N(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:N(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:N(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:N(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:N(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:N(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:N(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:N(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:N(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:N(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:N(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:N(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:N(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:N(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:N(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:N(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:N(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:N(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:N(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:N(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:N(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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_ES5_Consider_using_a_standard_function_expression:N(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in 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:N(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:N(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:N(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:N(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:N(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:N(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:N(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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_ES5_Consider_using_a_standard_function_or_method:N(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:N(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:N(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:N(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:N(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:N(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:N(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:N(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:N(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:N(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:N(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:N(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:N(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:N(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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."),React_components_cannot_include_JSX_namespace_names:N(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:N(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."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:N(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:N(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:N(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:N(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}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:N(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:N(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:N(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:N(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 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:N(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:N(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:N(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:N(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:N(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:N(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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:N(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:N(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:N(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:N(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:N(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:N(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:N(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:N(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:N(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:N(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:N(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:N(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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_nodenext_or_preserve:N(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:N(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."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:N(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:N(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:N(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:N(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_compile_to_CommonJS_require_calls:N(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:N(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:N(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:N(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_It_can_only_extend_other_named_object_types:N(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:N(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:N(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:N(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:N(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:N(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?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:N(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:N(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:N(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:N(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_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:N(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements 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_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:N(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:N(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:N(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:N(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:N(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:N(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:N(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:N(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:N(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:N(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:N(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:N(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:N(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:N(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:N(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:N(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:N(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:N(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:N(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),Import_declaration_0_is_using_private_name_1:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(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:N(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_anonymous_class_type_may_not_be_private_or_protected:N(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type 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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:N(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:N(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:N(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:N(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:N(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:N(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:N(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:N(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:N(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:N(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:N(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:N(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_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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_cannot_be_specified_when_module_is_set_to_none_system_or_umd:N(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:N(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:N(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:N(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:N(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:N(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:N(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:N(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:N(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:N(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:N(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:N(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:N(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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_preserve_or_to_es2015_or_later:N(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:N(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:N(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:N(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:N(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:N(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:N(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:N(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:N(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:N(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:N(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:N(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."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:N(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:N(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if_not_running_tsc_b:N(5111,1,"Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if__5111","Option 'tsBuildInfoFile' cannot be specified without specifying option 'incremental' or 'composite' or if not running 'tsc -b'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:N(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:N(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:N(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:N(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:N(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:N(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:N(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:N(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:N(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:N(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:N(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:N(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:N(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:N(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:N(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:N(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:N(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:N(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:N(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:N(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:N(6024,3,"options_6024","options"),file:N(6025,3,"file_6025","file"),Examples_Colon_0:N(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:N(6027,3,"Options_Colon_6027","Options:"),Version_0:N(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:N(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:N(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:N(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:N(6034,3,"KIND_6034","KIND"),FILE:N(6035,3,"FILE_6035","FILE"),VERSION:N(6036,3,"VERSION_6036","VERSION"),LOCATION:N(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:N(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:N(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:N(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:N(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:N(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:N(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:N(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:N(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:N(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:N(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:N(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:N(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:N(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:N(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:N(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:N(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:N(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:N(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:N(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:N(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:N(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:N(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:N(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:N(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:N(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:N(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:N(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:N(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:N(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:N(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:N(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:N(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:N(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:N(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:N(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:N(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:N(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:N(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:N(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:N(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:N(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:N(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:N(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:N(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:N(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:N(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:N(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:N(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:N(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:N(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:N(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:N(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:N(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:N(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:N(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:N(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:N(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:N(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:N(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:N(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:N(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:N(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:N(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:N(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:N(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:N(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:N(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:N(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:N(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:N(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:N(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:N(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:N(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:N(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:N(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:N(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:N(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:N(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:N(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:N(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:N(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:N(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:N(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:N(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:N(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:N(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:N(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:N(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:N(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:N(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:N(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:N(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:N(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:N(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:N(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:N(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:N(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:N(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:N(6244,3,"Modules_6244","Modules"),File_Management:N(6245,3,"File_Management_6245","File Management"),Emit:N(6246,3,"Emit_6246","Emit"),JavaScript_Support:N(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:N(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:N(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:N(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:N(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:N(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:N(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:N(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:N(6255,3,"Projects_6255","Projects"),Output_Formatting:N(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:N(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:N(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_0:N(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:N(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:N(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:N(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:N(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:N(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."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:N(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:N(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:N(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:N(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:N(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:N(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:N(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:N(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:N(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:N(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:N(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:N(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."),Referenced_project_0_may_not_disable_emit:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:N(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:N(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:N(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:N(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}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:N(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:N(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:N(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:N(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:N(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:N(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:N(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:N(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:N(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:N(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:N(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:N(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:N(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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."),Skip_building_downstream_projects_on_error_in_upstream_project:N(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:N(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:N(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:N(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:N(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:N(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:N(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:N(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:N(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:N(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:N(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."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:N(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:N(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Default_catch_clause_variables_as_unknown_instead_of_any:N(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:N(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."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:N(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:N(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:N(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),one_of_Colon:N(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:N(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:N(6902,3,"type_Colon_6902","type:"),default_Colon:N(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:N(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:N(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:N(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:N(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:N(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:N(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:N(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:N(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:N(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:N(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:N(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:N(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:N(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:N(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:N(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:N(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:N(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:N(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:N(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:N(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:N(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:N(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:N(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:N(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:N(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:N(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:N(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:N(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:N(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:N(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:N(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:N(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:N(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:N(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:N(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:N(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:N(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."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:N(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:N(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:N(9009,1,"At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit return type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:N(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:N(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:N(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:N(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:N(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:N(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:N(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:N(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:N(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:N(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:N(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations:N(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_su_9025","Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:N(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:N(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:N(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:N(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:N(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:N(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:N(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:N(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:N(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:N(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:N(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:N(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:N(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:N(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:N(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:N(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:N(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:N(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:N(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:N(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}'?"),Unicode_escape_sequence_cannot_appear_here:N(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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."),JSDoc_typedef_may_be_converted_to_TypeScript_type:N(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:N(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:N(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:N(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:N(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:N(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:N(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:N(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:N(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:N(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:N(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:N(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:N(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:N(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:N(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:N(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:N(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:N(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:N(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:N(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:N(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:N(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:N(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:N(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:N(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:N(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:N(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:N(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:N(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:N(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:N(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:N(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:N(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:N(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:N(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:N(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:N(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:N(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:N(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:N(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:N(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:N(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:N(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:N(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:N(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:N(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:N(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:N(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:N(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:N(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:N(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:N(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:N(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:N(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:N(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:N(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:N(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:N(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:N(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:N(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:N(95005,3,"Extract_function_95005","Extract function"),Extract_constant:N(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:N(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:N(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:N(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:N(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:N(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:N(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:N(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:N(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:N(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:N(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:N(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:N(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:N(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:N(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:N(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:N(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:N(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:N(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:N(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:N(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:N(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:N(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:N(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:N(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:N(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:N(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:N(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:N(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:N(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:N(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:N(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:N(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:N(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:N(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:N(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:N(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:N(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:N(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:N(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:N(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:N(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:N(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:N(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:N(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:N(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:N(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:N(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:N(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:N(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:N(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:N(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:N(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:N(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:N(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:N(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:N(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:N(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:N(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:N(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:N(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:N(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:N(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:N(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:N(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:N(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:N(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:N(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:N(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:N(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:N(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:N(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:N(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:N(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:N(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:N(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:N(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:N(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:N(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:N(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:N(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:N(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:N(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:N(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:N(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:N(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:N(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:N(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:N(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:N(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:N(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:N(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:N(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:N(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:N(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:N(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:N(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:N(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:N(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:N(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:N(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:N(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:N(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:N(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:N(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:N(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:N(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:N(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:N(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:N(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:N(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:N(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:N(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:N(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:N(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:N(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:N(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:N(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:N(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:N(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:N(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:N(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:N(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:N(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:N(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:N(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:N(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:N(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:N(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:N(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:N(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:N(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:N(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:N(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:N(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:N(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:N(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:N(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:N(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:N(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:N(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:N(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:N(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:N(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:N(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:N(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:N(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:N(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:N(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:N(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:N(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:N(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:N(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:N(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:N(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:N(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:N(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:N(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:N(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:N(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:N(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:N(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:N(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:N(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:N(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:N(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:N(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:N(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:N(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:N(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:N(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:N(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:N(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:N(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:N(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:N(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:N(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:N(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:N(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:N(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:N(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:N(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:N(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:N(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:N(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:N(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(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:N(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:N(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:N(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:N(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:N(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:N(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:N(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:N(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:N(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:N(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:N(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.")};function $_(e){return e>=80}function dme(e){return e===32||$_(e)}var ez={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Kkt=new Map(Object.entries(ez)),CFe=new Map(Object.entries({...ez,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),kFe=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),Xkt=new Map([[1,9],[16,5],[32,2],[64,99],[128,2]]),Ykt=[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],Qkt=[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],Zkt=[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,2160,2183,2185,2190,2208,2249,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,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,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,5905,5919,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,6988,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,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,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,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,43881,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,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,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,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,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,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,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,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,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,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,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,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,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,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],ewt=[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,2160,2183,2185,2190,2200,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,2901,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,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,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,3790,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,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,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,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,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,43881,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,65381,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,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,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,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,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,70753,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,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,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,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,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,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,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,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,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,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],twt=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,iwt=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,nwt=/@(?:see|link)/i;function aQ(e,t){if(e=2?aQ(e,Zkt):aQ(e,Ykt)}function rwt(e,t){return t>=2?aQ(e,ewt):aQ(e,Qkt)}function wFe(e){let t=[];return e.forEach((r,a)=>{t[r]=a}),t}var owt=wFe(CFe);function ua(e){return owt[e]}function K2(e){return CFe.get(e)}var swt=wFe(kFe);function TFe(e){return swt[e]}function cQ(e){return kFe.get(e)}function OI(e){let t=[],r=0,a=0;for(;r127&&Jf(u)&&(t.push(a),a=r);break}}return t.push(a),t}function Q7(e,t,r,a){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,a):iz(Ov(e),t,r,e.text,a)}function iz(e,t,r,a,u){(t<0||t>=e.length)&&(u?t=t<0?0:t>=e.length?e.length-1:t:B.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${a!==void 0?Lr(e,OI(a)):"unknown"}`));let f=e[t]+r;return u?f>e[t+1]?e[t+1]:typeof a=="string"&&f>a.length?a.length:f:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Jf(e){return e===10||e===13||e===8232||e===8233}function AP(e){return e>=48&&e<=57}function fme(e){return AP(e)||e>=65&&e<=70||e>=97&&e<=102}function _me(e){return e>=65&&e<=90||e>=97&&e<=122}function EFe(e){return _me(e)||AP(e)||e===95}function pme(e){return e>=48&&e<=55}function mme(e,t){let r=e.charCodeAt(t);switch(r){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 t===0;default:return r>127}}function Ea(e,t,r,a,u){if(Yg(t))return t;let f=!1;for(;;){let p=e.charCodeAt(t);switch(p){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;f=!!u;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(a)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Fv(p)){t++;continue}break}return t}}var lQ=7;function k3(e,t){if(B.assert(t>=0),t===0||Jf(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+lQ=0&&r127&&Fv(R)){T&&Jf(R)&&(k=!0),r++;continue}break e}}return T&&(P=u(y,g,x,k,f,P)),P}function eM(e,t,r,a){return uQ(!1,e,t,!1,r,a)}function tM(e,t,r,a){return uQ(!1,e,t,!0,r,a)}function gme(e,t,r,a,u){return uQ(!0,e,t,!1,r,a,u)}function yme(e,t,r,a,u){return uQ(!0,e,t,!0,r,a,u)}function NFe(e,t,r,a,u,f=[]){return f.push({kind:r,pos:e,end:t,hasTrailingNewLine:a}),f}function Mv(e,t){return gme(e,t,NFe,void 0,void 0)}function lx(e,t){return yme(e,t,NFe,void 0,void 0)}function nz(e){let t=hme.exec(e);if(t)return t[0]}function Hy(e,t){return _me(e)||e===36||e===95||e>127&&tz(e,t)}function q1(e,t,r){return EFe(e)||e===36||(r===1?e===45||e===58:!1)||e>127&&rwt(e,t)}function pp(e,t,r){let a=w3(e,0);if(!Hy(a,t))return!1;for(let u=Jg(a);uk,getStartPos:()=>k,getTokenEnd:()=>g,getTextPos:()=>g,getToken:()=>A,getTokenStart:()=>T,getTokenPos:()=>T,getTokenText:()=>y.substring(T,g),getTokenValue:()=>P,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(R&32768)!==0,isIdentifier:()=>A===80||A>118,isReservedWord:()=>A>=83&&A<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>W,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:xt,reScanAsteriskEqualsToken:nt,reScanSlashToken:At,reScanTemplateToken:ni,reScanTemplateHeadOrNoSubstitutionTemplate:Ci,scanJsxIdentifier:Ao,scanJsxAttributeValue:Rr,reScanJsxAttributeValue:xn,reScanJsxToken:Sn,reScanLessThanToken:nn,reScanHashToken:Br,reScanQuestionToken:Gr,reScanInvalidIdentifier:Ue,scanJsxToken:is,scanJsDocToken:it,scanJSDocCommentTextToken:Eo,scan:Ge,getText:Dr,clearCommentDirectives:Do,setText:na,setScriptTarget:Ai,setLanguageVariant:Ha,setScriptKind:ht,setJSDocParsingMode:Jt,setOnError:aa,resetTokenState:ye,setTextPos:ye,setSkipJsDocLeadingAsterisks:ct,tryScan:Jr,lookAhead:Qn,scanRange:dn};return B.isDebugging&&Object.defineProperty($,"__debugShowCurrentPositionInText",{get:()=>{let ge=$.getText();return ge.slice(0,$.getTokenFullStart())+"\u2551"+ge.slice($.getTokenFullStart())}}),$;function te(ge){return w3(y,ge)}function ne(ge){return ge>=0&&ge=0&&ge=65&&mt<=70)mt+=32;else if(!(mt>=48&&mt<=57||mt>=97&&mt<=102))break;bt.push(mt),g++,It=!1}return bt.length=x){ut+=y.substring(bt,g),R|=4,ae(S.Unterminated_string_literal);break}let je=_e(g);if(je===He){ut+=y.substring(bt,g),g++;break}if(je===92&&!ge){ut+=y.substring(bt,g),ut+=ke(3),bt=g;continue}if((je===10||je===13)&&!ge){ut+=y.substring(bt,g),R|=4,ae(S.Unterminated_string_literal);break}g++}return ut}function ie(ge){let He=_e(g)===96;g++;let ut=g,bt="",je;for(;;){if(g>=x){bt+=y.substring(ut,g),R|=4,ae(S.Unterminated_template_literal),je=He?15:18;break}let It=_e(g);if(It===96){bt+=y.substring(ut,g),g++,je=He?15:18;break}if(It===36&&g+1=x)return ae(S.Unexpected_end_of_text),"";let ut=_e(g);switch(g++,ut){case 48:if(g>=x||!AP(_e(g)))return"\0";case 49:case 50:case 51:g=55296&&bt<=56319&&g+6=56320&&$t<=57343)return g=mt,je+String.fromCharCode($t)}return je;case 120:for(;g1114111&&(ge&&ae(S.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,ut,g-ut),It=!0),g>=x?(ge&&ae(S.Unexpected_end_of_text),It=!0):_e(g)===125?g++:(ge&&ae(S.Unterminated_Unicode_escape_sequence),It=!0),It?(R|=2048,y.substring(He,g)):(R|=8,T3(je))}function Oe(){if(g+5=0&&q1(ut,e)){ge+=De(!0),He=g;continue}if(ut=Oe(),!(ut>=0&&q1(ut,e)))break;R|=1024,ge+=y.substring(He,g),ge+=T3(ut),g+=6,He=g}else break}return ge+=y.substring(He,g),ge}function Fe(){let ge=P.length;if(ge>=2&&ge<=12){let He=P.charCodeAt(0);if(He>=97&&He<=122){let ut=Kkt.get(P);if(ut!==void 0)return A=ut}}return A=80}function Tt(ge){let He="",ut=!1,bt=!1;for(;;){let je=_e(g);if(je===95){R|=512,ut?(ut=!1,bt=!0):ae(bt?S.Multiple_consecutive_numeric_separators_are_not_permitted:S.Numeric_separators_are_not_allowed_here,g,1),g++;continue}if(ut=!0,!AP(je)||je-48>=ge)break;He+=y[g],g++,bt=!1}return _e(g-1)===95&&ae(S.Numeric_separators_are_not_allowed_here,g-1,1),He}function Be(){return _e(g)===110?(P+="n",R&384&&(P=bO(P)+"n"),g++,10):(P=""+(R&128?parseInt(P.slice(2),2):R&256?parseInt(P.slice(2),8):+P),9)}function Ge(){for(k=g,R=0;;){if(T=g,g>=x)return A=1;let ge=te(g);if(g===0&&ge===35&&DFe(y,g)){if(g=IFe(y,g),t)continue;return A=6}switch(ge){case 10:case 13:if(R|=1,t){g++;continue}else return ge===13&&g+1=0&&Hy(He,e))return P=De(!0)+Ae(),A=Fe();let ut=Oe();return ut>=0&&Hy(ut,e)?(g+=6,R|=1024,P=String.fromCharCode(ut)+Ae(),A=Fe()):(ae(S.Invalid_character),g++,A=0);case 35:if(g!==0&&y[g+1]==="!")return ae(S.can_only_be_used_at_the_start_of_a_file,g,2),g++,A=0;let bt=te(g+1);if(bt===92){g++;let mt=we();if(mt>=0&&Hy(mt,e))return P="#"+De(!0)+Ae(),A=81;let $t=Oe();if($t>=0&&Hy($t,e))return g+=6,R|=1024,P="#"+String.fromCharCode($t)+Ae(),A=81;g--}return Hy(bt,e)?(g++,gt(bt,e)):(P="#",ae(S.Invalid_character,g++,Jg(ge))),A=81;case 65533:return ae(S.File_appears_to_be_binary,0,0),g=x,A=8;default:let je=gt(ge,e);if(je)return A=je;if(j0(ge)){g+=Jg(ge);continue}else if(Jf(ge)){R|=1,g+=Jg(ge);continue}let It=Jg(ge);return ae(S.Invalid_character,g,It),g+=It,A=0}}}function Ke(){switch(G){case 0:return!0;case 1:return!1}return q!==3&&q!==4?!0:G===3?!1:nwt.test(y.slice(k,g))}function Ue(){B.assert(A===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),g=T=k,R=0;let ge=te(g),He=gt(ge,99);return He?A=He:(g+=Jg(ge),A)}function gt(ge,He){let ut=ge;if(Hy(ut,He)){for(g+=Jg(ut);g=x)return A=1;let He=_e(g);if(He===60)return _e(g+1)===47?(g+=2,A=31):(g++,A=30);if(He===123)return g++,A=19;let ut=0;for(;g0)break;Fv(He)||(ut=g)}g++}return P=y.substring(k,g),ut===-1?13:12}function Ao(){if($_(A)){for(;g=x)return A=1;for(let He=_e(g);g=0&&j0(_e(g-1))&&!(g+1=x)return A=1;let ge=te(g);switch(g+=Jg(ge),ge){case 9:case 11:case 12:case 32:for(;g=0&&Hy(He,e))return P=De(!0)+Ae(),A=Fe();let ut=Oe();return ut>=0&&Hy(ut,e)?(g+=6,R|=1024,P=String.fromCharCode(ut)+Ae(),A=Fe()):(g++,A=0)}if(Hy(ge,e)){let He=ge;for(;g=0),g=ge,k=ge,T=ge,A=0,P=void 0,R=0}function ct(ge){z+=ge?1:-1}}function w3(e,t){return e.codePointAt(t)}function Jg(e){return e>=65536?2:e===-1?0:1}function awt(e){if(B.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}var cwt=String.fromCodePoint?e=>String.fromCodePoint(e):awt;function T3(e){return cwt(e)}var AFe=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),PFe=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),LFe=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),iM={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};iM.Script_Extensions=iM.Script;function Od(e){return Nm(e)||jp(e)}function PP(e){return zn(e,_O,PV)}function nM(e){switch(Oa(e)){case 99:return"lib.esnext.full.d.ts";case 10:return"lib.es2023.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 Vl(e){return e.start+e.length}function vme(e){return e.length===0}function dQ(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function bme(e,t){return t.start>=e.start&&Vl(t)<=Vl(e)}function fQ(e,t){return t.pos>=e.start&&t.end<=Vl(e)}function Sme(e,t){return t.start>=e.pos&&Vl(t)<=e.end}function OFe(e,t){return xme(e,t)!==void 0}function xme(e,t){let r=Tme(e,t);return r&&r.length===0?void 0:r}function Cme(e,t){return sM(e.start,e.length,t.start,t.length)}function oM(e,t,r){return sM(e.start,e.length,t,r)}function sM(e,t,r,a){let u=e+t,f=r+a;return r<=u&&f>=e}function kme(e,t){return t<=Vl(e)&&t>=e.start}function wme(e,t){return oM(t,e.pos,e.end-e.pos)}function Tme(e,t){let r=Math.max(e.start,t.start),a=Math.min(Vl(e),Vl(t));return r<=a?bu(r,a):void 0}function _Q(e){e=e.filter(a=>a.length>0).sort((a,u)=>a.start!==u.start?a.start-u.start:a.length-u.length);let t=[],r=0;for(;r=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function So(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function mr(e){return So(e.escapedText)}function X2(e){let t=K2(e.escapedText);return t?kr(t,Q_):void 0}function fu(e){return e.valueDeclaration&&u_(e.valueDeclaration)?mr(e.valueDeclaration.name):So(e.escapedName)}function MFe(e){let t=e.parent.parent;if(t){if(mf(t))return hQ(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return hQ(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:let a=r.argumentExpression;if(et(a))return a}break;case 217:return hQ(t.expression);case 256:{if(mf(t.statement)||Mt(t.statement))return hQ(t.statement);break}}}}function hQ(e){let t=cs(e);return t&&et(t)?t:void 0}function cM(e,t){return!!(pf(e)&&et(e.name)&&mr(e.name)===mr(t)||mu(e)&&Lt(e.declarationList.declarations,r=>cM(r,t)))}function Lme(e){return e.name||MFe(e)}function pf(e){return!!e.name}function oz(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{let r=e;switch(Su(r)){case 1:case 4:case 5:case 3:return iV(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 346:return Lme(e);case 340:return MFe(e);case 277:{let{expression:r}=e;return et(r)?r:void 0}case 212:let t=e;if(tV(t))return t.argumentExpression}return e.name}function cs(e){if(e!==void 0)return oz(e)||(Yc(e)||rl(e)||Qu(e)?sz(e):void 0)}function sz(e){if(e.parent){if(ed(e.parent)||Wa(e.parent))return e.parent.name;if(Yn(e.parent)&&e===e.parent.right){if(et(e.parent.left))return e.parent.left;if(il(e.parent.left))return iV(e.parent.left)}else if(Ur(e.parent)&&et(e.parent.name))return e.parent.name}else return}function ux(e){if(Pm(e))return Di(e.modifiers,Td)}function Bw(e){if(Ar(e,98303))return Di(e.modifiers,xa)}function RFe(e,t){if(e.name)if(et(e.name)){let r=e.name.escapedText;return cz(e.parent,t).filter(a=>ph(a)&&et(a.name)&&a.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);B.assert(r>-1,"Parameters should always be in their parents' parameter list");let a=cz(e.parent,t).filter(ph);if(rGh(a)&&a.typeParameters.some(u=>u.name.escapedText===r))}function Fme(e){return BFe(e,!1)}function Mme(e){return BFe(e,!0)}function Rme(e){return!!Bh(e,ph)}function Bme(e){return Bh(e,AN)}function jme(e){return lz(e,IH)}function gQ(e){return Bh(e,bye)}function jFe(e){return Bh(e,$ee)}function Wme(e){return Bh(e,$ee,!0)}function WFe(e){return Bh(e,Gee)}function zme(e){return Bh(e,Gee,!0)}function zFe(e){return Bh(e,Kee)}function Vme(e){return Bh(e,Kee,!0)}function VFe(e){return Bh(e,Xee)}function Hme(e){return Bh(e,Xee,!0)}function Ume(e){return Bh(e,EH,!0)}function yQ(e){return Bh(e,Yee)}function Jme(e){return Bh(e,Yee,!0)}function vQ(e){return Bh(e,UR)}function az(e){return Bh(e,Qee)}function qme(e){return Bh(e,DH)}function HFe(e){return Bh(e,Gh)}function bQ(e){return Bh(e,NH)}function KC(e){let t=Bh(e,VO);if(t&&t.typeExpression&&t.typeExpression.type)return t}function XC(e){let t=Bh(e,VO);return!t&&To(e)&&(t=St(LP(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function lM(e){let t=qme(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=KC(e);if(r&&r.typeExpression){let a=r.typeExpression.type;if(L_(a)){let u=St(a.members,xN);return u&&u.type}if(Qy(a)||k4(a))return a.type}}function cz(e,t){var r;if(!QM(e))return F;let a=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(a===void 0||t){let u=pZ(e,t);B.assert(u.length<2||u[0]!==u[1]),a=vo(u,f=>t0(f)?f.tags:f),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=a)}return a}function YC(e){return cz(e,!1)}function Bh(e,t,r){return St(cz(e,r),t)}function lz(e,t){return YC(e).filter(t)}function UFe(e,t){return YC(e).filter(r=>r.kind===t)}function uM(e){return typeof e=="string"?e:e?.map(t=>t.kind===321?t.text:uwt(t)).join("")}function uwt(e){let t=e.kind===324?"link":e.kind===325?"linkcode":"linkplain",r=e.name?zp(e.name):"",a=e.name&&(e.text===""||e.text.startsWith("://"))?"":" ";return`{@${t} ${r}${a}${e.text}}`}function dx(e){if(ob(e)){if(w4(e.parent)){let t=ZP(e.parent);if(t&&K(t.tags))return vo(t.tags,r=>Gh(r)?r.typeParameters:void 0)}return F}if(Vh(e))return B.assert(e.parent.kind===320),vo(e.parent.tags,t=>Gh(t)?t.typeParameters:void 0);if(e.typeParameters||Pye(e)&&e.typeParameters)return e.typeParameters;if(Jn(e)){let t=yV(e);if(t.length)return t;let r=XC(e);if(r&&Qy(r)&&r.typeParameters)return r.typeParameters}return F}function OP(e){return e.constraint?e.constraint:Gh(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Bv(e){return e.kind===80||e.kind===81}function dM(e){return e.kind===178||e.kind===177}function uz(e){return lr(e)&&!!(e.flags&64)}function SQ(e){return nl(e)&&!!(e.flags&64)}function Y2(e){return Gs(e)&&!!(e.flags&64)}function qf(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function I3(e){return qf(e)&&!DN(e)&&!!e.questionDotToken}function dz(e){return I3(e.parent)&&e.parent.expression===e}function N3(e){return!qf(e.parent)||I3(e.parent)||e!==e.parent.expression}function xQ(e){return e.kind===226&&e.operatorToken.kind===61}function qg(e){return pm(e)&&et(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function xg(e){return Cu(e,8)}function fz(e){return DN(e)&&!!(e.flags&64)}function A3(e){return e.kind===252||e.kind===251}function CQ(e){return e.kind===280||e.kind===279}function P3(e){return e.kind===348||e.kind===341}function _z(e){return e>=166}function kQ(e){return e>=0&&e<=165}function MI(e){return kQ(e.kind)}function jw(e){return Nc(e,"pos")&&Nc(e,"end")}function L3(e){return 9<=e&&e<=15}function Q2(e){return L3(e.kind)}function wQ(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function fx(e){return 15<=e&&e<=18}function $me(e){return fx(e.kind)}function pz(e){let t=e.kind;return t===17||t===18}function QC(e){return F_(e)||Gf(e)}function O3(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Gme(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function _x(e){return O3(e)||Gme(e)}function TQ(e){return e.kind===11||fx(e.kind)}function Kme(e){return Da(e)||et(e)}function yl(e){var t;return et(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Z2(e){var t;return xo(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function fM(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function u_(e){return(ls(e)||BI(e))&&xo(e.name)}function FP(e){return lr(e)&&xo(e.name)}function px(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function F3(e){return!!(nN(e)&31)}function EQ(e){return F3(e)||e===126||e===164||e===129}function xa(e){return px(e.kind)}function G_(e){let t=e.kind;return t===166||t===80}function zu(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function eE(e){let t=e.kind;return t===80||t===206||t===207}function vs(e){return!!e&&RI(e.kind)}function MP(e){return!!e&&(RI(e.kind)||Yl(e))}function Oc(e){return e&&JFe(e.kind)}function M3(e){return e.kind===112||e.kind===97}function JFe(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function RI(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return JFe(e)}}function DQ(e){return mo(e)||ty(e)||Ds(e)&&vs(e.parent)}function Cd(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function jr(e){return e&&(e.kind===263||e.kind===231)}function mx(e){return e&&(e.kind===177||e.kind===178)}function K_(e){return ls(e)&&G0(e)}function Xme(e){return Jn(e)&&pN(e)?(!Gw(e)||!xx(e.expression))&&!lE(e,!0):e.parent&&jr(e.parent)&&ls(e)&&!G0(e)}function BI(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function vl(e){return xa(e)||Td(e)}function Ww(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function mz(e){return Ww(e)||Cd(e)}function G1(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function io(e){return QZ(e.kind)}function Yme(e){switch(e.kind){case 184:case 185:return!0}return!1}function Rs(e){if(e){let t=e.kind;return t===207||t===206}return!1}function R3(e){let t=e.kind;return t===209||t===210}function hz(e){let t=e.kind;return t===208||t===232}function _M(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Qme(e){return Ur(e)||To(e)||mM(e)||hM(e)}function pM(e){return IQ(e)||NQ(e)}function IQ(e){switch(e.kind){case 206:case 210:return!0}return!1}function mM(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function NQ(e){switch(e.kind){case 207:case 209:return!0}return!1}function hM(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Hd(e,!0)}function Zme(e){let t=e.kind;return t===211||t===166||t===205}function gM(e){let t=e.kind;return t===211||t===166}function AQ(e){return zw(e)||Ex(e)}function zw(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function W0(e){return e.kind===213||e.kind===214}function jI(e){let t=e.kind;return t===228||t===15}function X_(e){return qFe(xg(e).kind)}function qFe(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function PQ(e){return $Fe(xg(e).kind)}function $Fe(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return qFe(e)}}function ehe(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function the(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Q2(e)}}function Mt(e){return dwt(xg(e).kind)}function dwt(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 355:case 354:case 238:return!0;default:return $Fe(e)}}function ZC(e){let t=e.kind;return t===216||t===234}function hx(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&hx(e.statement,t)}return!1}function fwt(e){return ll(e)||Nu(e)}function ihe(e){return Lt(e,fwt)}function gz(e){return!TM(e)&&!ll(e)&&!Ar(e,32)&&!d_(e)}function yM(e){return TM(e)||ll(e)||Ar(e,32)}function tE(e){return e.kind===249||e.kind===250}function yz(e){return Ds(e)||Mt(e)}function LQ(e){return Ds(e)}function rh(e){return ef(e)||Mt(e)}function nhe(e){let t=e.kind;return t===268||t===267||t===80}function GFe(e){let t=e.kind;return t===268||t===267}function KFe(e){let t=e.kind;return t===80||t===267}function OQ(e){let t=e.kind;return t===275||t===274}function vM(e){return e.kind===267||e.kind===266}function $g(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 338:case 340:case 317:case 341:case 348:case 323:case 346:case 322:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 307:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Uy(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 338:case 340:case 317:case 323:case 346:case 200:case 174:case 173:case 267:case 178:case 307:case 265:return!0;default:return!1}}function _wt(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function rhe(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function ohe(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function mf(e){return e.kind===168?e.parent&&e.parent.kind!==345||Jn(e):_wt(e.kind)}function she(e){return rhe(e.kind)}function bM(e){return ohe(e.kind)}function _o(e){let t=e.kind;return ohe(t)||rhe(t)||pwt(e)}function pwt(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!Jw(e)}function ahe(e){let t=e.kind;return ohe(t)||rhe(t)||t===241}function che(e){let t=e.kind;return t===283||t===166||t===80}function B3(e){let t=e.kind;return t===110||t===80||t===211||t===295}function SM(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function vz(e){let t=e.kind;return t===291||t===293}function lhe(e){let t=e.kind;return t===11||t===294}function Mf(e){let t=e.kind;return t===286||t===285}function bz(e){let t=e.kind;return t===296||t===297}function RP(e){return e.kind>=309&&e.kind<=351}function Sz(e){return e.kind===320||e.kind===319||e.kind===321||WI(e)||BP(e)||CE(e)||ob(e)}function BP(e){return e.kind>=327&&e.kind<=351}function z0(e){return e.kind===178}function Yb(e){return e.kind===177}function dm(e){if(!QM(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function xz(e){return!!e.type}function Qb(e){return!!e.initializer}function iE(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function FQ(e){return e.kind===291||e.kind===293||G1(e)}function Cz(e){return e.kind===183||e.kind===233}var XFe=1073741823;function uhe(e){let t=XFe;for(let r of e){if(!r.length)continue;let a=0;for(;a0?r.parent.parameters[u-1]:void 0,p=t.text,y=f?Fo(lx(p,Ea(p,f.end+1,!1,!0)),Mv(p,e.pos)):lx(p,Ea(p,e.pos,!1,!0));return Lt(y)&&YFe(pa(y),t)}let a=r&&nZ(r,t);return!!re(a,u=>YFe(u,t))}var RQ=[],ek="tslib",j3=160,BQ=1e6;function bl(e,t){let r=e.declarations;if(r){for(let a of r)if(a.kind===t)return a}}function fhe(e,t){return Di(e.declarations||F,r=>r.kind===t)}function ta(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function jv(e){return(e.flags&33554432)!==0}function jP(e){return!!(e.flags&1536)&&e.escapedName.charCodeAt(0)===34}var kz=mwt();function mwt(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,a)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Fv(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:dc,decreaseIndent:dc,clear:()=>e=""}}function wz(e,t){return e.configFilePath!==t.configFilePath||hwt(e,t)}function hwt(e,t){return WP(e,t,Ste)}function _he(e,t){return WP(e,t,tve)}function WP(e,t,r){return e!==t&&r.some(a=>!YV(RV(e,a),RV(t,a)))}function phe(e,t){for(;;){let r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(mo(e))return;e=e.parent}}function Vd(e,t){let r=e.entries();for(let[a,u]of r){let f=t(u,a);if(f)return f}}function K1(e,t){let r=e.keys();for(let a of r){let u=t(a);if(u)return u}}function Tz(e,t){e.forEach((r,a)=>{t.set(a,r)})}function zP(e){let t=kz.getText();try{return e(kz),kz.getText()}finally{kz.clear(),kz.writeKeyword(t)}}function xM(e){return e.end-e.pos}function jQ(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function mhe(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&&gwt(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function zI(e){return e.resolvedModule}function Ez(e){return e.resolvedTypeReferenceDirective}function Dz(e,t,r,a,u){var f;let p=(f=t.getResolvedModule(e,r,a))==null?void 0:f.alternateResult,y=p&&($f(t.getCompilerOptions())===2?[S.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[p]]:[S.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,[p,p.includes(Zv+"@types/")?`@types/${M4(u)}`:u]]),g=y?bs(void 0,y[0],...y[1]):t.typesPackageExists(u)?bs(void 0,S.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,u,M4(u)):t.packageBundlesTypes(u)?bs(void 0,S.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,u,r):bs(void 0,S.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,M4(u));return g&&(g.repopulateInfo=()=>({moduleReference:r,mode:a,packageName:u===r?void 0:u})),g}function WQ(e){let t=Gv(e.fileName),r=e.packageJsonScope,a=t===".ts"?".mts":t===".js"?".mjs":void 0,u=r&&!r.contents.packageJsonContent.type?a?bs(void 0,S.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,a,xr(r.packageDirectory,"package.json")):bs(void 0,S.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,xr(r.packageDirectory,"package.json")):a?bs(void 0,S.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,a):bs(void 0,S.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return u.repopulateInfo=()=>!0,u}function gwt(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version&&e.peerDependencies===t.peerDependencies}function Iz({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function tk(e){return`${Iz(e)}@${e.version}${e.peerDependencies??""}`}function hhe(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 zQ(e,t,r,a){B.assert(e.length===t.length);for(let u=0;u=0),Ov(t)[e]}function QFe(e){let t=en(e),r=ma(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function CM(e,t){B.assert(e>=0);let r=Ov(t),a=e,u=t.text;if(a+1===r.length)return u.length-1;{let f=r[a],p=r[a+1]-1;for(B.assert(Jf(u.charCodeAt(p)));f<=p&&Jf(u.charCodeAt(p));)p--;return p}}function Az(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Ul(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function jh(e){return!Ul(e)}function yhe(e,t){return Sl(e)?t===e.expression:Yl(e)?t===e.modifiers:ep(e)?t===e.initializer:ls(e)?t===e.questionToken&&K_(e):ed(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||kM(e.modifiers,t,vl):jf(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||kM(e.modifiers,t,vl):pu(e)?t===e.exclamationToken:Ol(e)?t===e.typeParameters||t===e.type||kM(e.typeParameters,t,Sl):Lm(e)?t===e.typeParameters||kM(e.typeParameters,t,Sl):qp(e)?t===e.typeParameters||t===e.type||kM(e.typeParameters,t,Sl):HR(e)?t===e.modifiers||kM(e.modifiers,t,vl):!1}function kM(e,t,r){return!e||ds(t)||!r(t)?!1:sn(e,t)}function ZFe(e,t,r){if(t===void 0||t.length===0)return e;let a=0;for(;a[`${ma(e,p.range.end).line}`,p])),a=new Map;return{getUnusedExpectations:u,markUsed:f};function u(){return as(r.entries()).filter(([p,y])=>y.type===0&&!a.get(p)).map(([p,y])=>y)}function f(p){return r.has(`${p}`)?(a.set(`${p}`,!0),!0):!1}}function yx(e,t,r){if(Ul(e))return e.pos;if(RP(e)||e.kind===12)return Ea((t??en(e)).text,e.pos,!1,!0);if(r&&dm(e))return yx(e.jsDoc[0],t);if(e.kind===352){t??(t=en(e));let a=mc(Zee(e,t));if(a)return yx(a,t,r)}return Ea((t??en(e)).text,e.pos,!1,!1,jM(e))}function UQ(e,t){let r=!Ul(e)&&Kh(e)?Mi(e.modifiers,Td):void 0;return r?Ea((t||en(e)).text,r.end):yx(e,t)}function bhe(e,t){let r=!Ul(e)&&Kh(e)&&e.modifiers?pa(e.modifiers):void 0;return r?Ea((t||en(e)).text,r.end):yx(e,t)}function Vw(e,t,r=!1){return z3(e.text,t,r)}function vwt(e){return!!Ri(e,yk)}function Lz(e){return!!(Nu(e)&&e.exportClause&&Zy(e.exportClause)&&qy(e.exportClause.name))}function vx(e){return e.kind===11?e.text:So(e.escapedText)}function Hw(e){return e.kind===11?Hl(e.text):e.escapedText}function qy(e){return(e.kind===11?e.text:e.escapedText)==="default"}function z3(e,t,r=!1){if(Ul(t))return"";let a=e.substring(r?t.pos:Ea(e,t.pos),t.end);return vwt(t)&&(a=a.split(/\r\n|\n|\r/).map(u=>u.replace(/^\s*\*/,"").trimStart()).join(` +`)),a}function Jl(e,t=!1){return Vw(en(e),e,t)}function bwt(e){return e.pos}function VP(e,t){return H1(e,t,bwt,Kc)}function ja(e){let t=e.emitNode;return t&&t.flags||0}function Cg(e){let t=e.emitNode;return t&&t.internalFlags||0}var JQ=l_(()=>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","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:F})),AsyncIterator:new Map(Object.entries({es2015:F})),Atomics:new Map(Object.entries({es2017:F})),SharedArrayBuffer:new Map(Object.entries({es2017:F})),AsyncIterable:new Map(Object.entries({es2018:F})),AsyncIterableIterator:new Map(Object.entries({es2018:F})),AsyncGenerator:new Map(Object.entries({es2018:F})),AsyncGeneratorFunction:new Map(Object.entries({es2018:F})),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"],esnext:["fromAsync"]})),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"],esnext:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:F,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:F})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:F,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:F,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),She=(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))(She||{});function xhe(e,t,r){if(t&&Swt(e,r))return Vw(t,e);switch(e.kind){case 11:{let a=r&2?AZ:r&1||ja(e)&16777216?Yy:uV;return e.singleQuote?"'"+a(e.text,39)+"'":'"'+a(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let a=r&1||ja(e)&16777216?Yy:uV,u=e.rawText??IZ(a(e.text,96));switch(e.kind){case 15:return"`"+u+"`";case 16:return"`"+u+"${";case 17:return"}"+u+"${";case 18:return"}"+u+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return B.fail(`Literal kind '${e.kind}' not accounted for.`)}function Swt(e,t){if(Uc(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(Z_(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!NO(e)}function Che(e){return fs(e)?`"${Yy(e)}"`:""+e}function khe(e){return Xu(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function qQ(e){return($1(e)&7)!==0||$Q(e)}function $Q(e){let t=$0(e);return t.kind===260&&t.parent.kind===299}function d_(e){return Hu(e)&&(e.name.kind===11||$y(e))}function Oz(e){return Hu(e)&&e.name.kind===11}function GQ(e){return Hu(e)&&Da(e.name)}function xwt(e){return Hu(e)||et(e)}function wM(e){return Cwt(e.valueDeclaration)}function Cwt(e){return!!e&&e.kind===267&&!e.body}function whe(e){return e.kind===307||e.kind===267||MP(e)}function $y(e){return!!(e.flags&2048)}function Uw(e){return d_(e)&&KQ(e)}function KQ(e){switch(e.parent.kind){case 307:return dd(e.parent);case 268:return d_(e.parent.parent)&&mo(e.parent.parent.parent)&&!dd(e.parent.parent.parent)}return!1}function XQ(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!Uw(r)&&!(Hu(r)&&$y(r)))}function kwt(e){return e===1||e===100||e===199}function HI(e,t){return dd(e)||kwt(p_(t))&&!!e.commonJsModuleIndicator}function YQ(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:!!(Rf(t,"alwaysStrict")||Iye(e.statements)||dd(e)||Jh(t))}function QQ(e){return!!(e.flags&33554432)||Ar(e,128)}function ZQ(e,t){switch(e.kind){case 307:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!MP(t)}return!1}function eZ(e){switch(B.type(e),e.kind){case 338:case 346:case 323:return!0;default:return tZ(e)}}function tZ(e){switch(B.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 317:case 263:case 231:case 264:case 265:case 345:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function UI(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function The(e){return UI(e)||$w(e)}function Ehe(e){return UI(e)||zM(e)}function Fz(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Dhe(e){return TM(e)||Hu(e)||ey(e)||fm(e)}function TM(e){return UI(e)||Nu(e)}function Mz(e){return Ri(e.parent,t=>!!(Kte(t)&1))}function Gg(e){return Ri(e.parent,t=>ZQ(t,t.parent))}function Ihe(e,t){let r=Gg(e);for(;r;)t(r),r=Gg(r)}function Hc(e){return!e||xM(e)===0?"(Missing)":Jl(e)}function Nhe(e){return e.declaration?Hc(e.declaration.parameters[0].name):void 0}function EM(e){return e.kind===167&&!Am(e.expression)}function V3(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 10:case 15:return Hl(e.text);case 167:return Am(e.expression)?Hl(e.expression.text):void 0;case 295:return _N(e);default:return B.assertNever(e)}}function JI(e){return B.checkDefined(V3(e))}function zp(e){switch(e.kind){case 110:return"this";case 81:case 80:return xM(e)===0?mr(e):Jl(e);case 166:return zp(e.left)+"."+zp(e.right);case 211:return et(e.name)||xo(e.name)?zp(e.expression)+"."+zp(e.name):B.assertNever(e.name);case 311:return zp(e.left)+"#"+zp(e.right);case 295:return zp(e.namespace)+":"+zp(e.name);default:return B.assertNever(e)}}function Mn(e,t,...r){let a=en(e);return oh(a,e,t,...r)}function HP(e,t,r,...a){let u=Ea(e.text,t.pos);return kd(e,u,t.end-u,r,...a)}function oh(e,t,r,...a){let u=rE(e,t);return kd(e,u.start,u.length,r,...a)}function zv(e,t,r,a){let u=rE(e,t);return Rz(e,u.start,u.length,r,a)}function DM(e,t,r,a){let u=Ea(e.text,t.pos);return Rz(e,u,t.end-u,r,a)}function Ahe(e,t,r){B.assertGreaterThanOrEqual(t,0),B.assertGreaterThanOrEqual(r,0),B.assertLessThanOrEqual(t,e.length),B.assertLessThanOrEqual(t+r,e.length)}function Rz(e,t,r,a,u){return Ahe(e.text,t,r),{file:e,start:t,length:r,code:a.code,category:a.category,messageText:a.next?a:a.messageText,relatedInformation:u,canonicalHead:a.canonicalHead}}function iZ(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function Phe(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Lhe(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function Ohe(e,...t){return{code:e.code,messageText:lN(e,...t)}}function V0(e,t){let r=Rv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let a=r.getTokenStart();return bu(a,r.getTokenEnd())}function Fhe(e,t){let r=Rv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function wwt(e,t){let r=Ea(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:a}=ma(e,t.body.pos),{line:u}=ma(e,t.body.end);if(a0?t.statements[0].pos:t.end;return bu(f,p)}case 253:case 229:{let f=Ea(e.text,t.pos);return V0(e,f)}case 238:{let f=Ea(e.text,t.expression.end);return V0(e,f)}case 350:{let f=Ea(e.text,t.tagName.pos);return V0(e,f)}case 176:{let f=t,p=Ea(e.text,f.pos),y=Rv(e.languageVersion,!0,e.languageVariant,e.text,void 0,p),g=y.scan();for(;g!==137&&g!==1;)g=y.scan();let x=y.getTokenEnd();return bu(p,x)}}if(r===void 0)return V0(e,t.pos);B.assert(!t0(r));let a=Ul(r),u=a||yN(t)?r.pos:Ea(e.text,r.pos);return a?(B.assert(u===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),B.assert(u===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(B.assert(u>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),B.assert(u<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),bu(u,r.end)}function Zb(e){return e.kind===307&&!Vp(e)}function Vp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Wh(e){return e.scriptKind===6}function ik(e){return!!(GC(e)&4096)}function IM(e){return!!(GC(e)&8&&!Wp(e,e.parent))}function NM(e){return($1(e)&7)===6}function AM(e){return($1(e)&7)===4}function UP(e){return($1(e)&7)===2}function Mhe(e){let t=$1(e)&7;return t===2||t===4||t===6}function Bz(e){return($1(e)&7)===1}function oE(e){return e.kind===213&&e.expression.kind===108}function fm(e){return e.kind===213&&e.expression.kind===102}function JP(e){return FO(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function eS(e){return ey(e)&&dS(e.argument)&&Da(e.argument.literal)}function H0(e){return e.kind===244&&e.expression.kind===11}function PM(e){return!!(ja(e)&2097152)}function jz(e){return PM(e)&&xu(e)}function Twt(e){return et(e.name)&&!e.initializer}function Wz(e){return PM(e)&&mu(e)&&Et(e.declarationList.declarations,Twt)}function nZ(e,t){return e.kind!==12?Mv(t.text,e.pos):void 0}function rZ(e,t){let r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Fo(lx(t,e.pos),Mv(t,e.pos)):Mv(t,e.pos);return Di(r,a=>a.end<=e.end&&t.charCodeAt(a.pos+1)===42&&t.charCodeAt(a.pos+2)===42&&t.charCodeAt(a.pos+3)!==47)}var Ewt=/^\/\/\/\s*/,Dwt=/^\/\/\/\s*/,Iwt=/^\/\/\/\s*/,Nwt=/^\/\/\/\s*/,Awt=/^\/\/\/\s*/,Pwt=/^\/\/\/\s*/;function U0(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return n7e(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),B.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return n7e(t);case 168:return e===t.constraint;case 345:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return sn(t.typeArguments,e)}}}return!1}function n7e(e){return IH(e.parent)||AN(e.parent)||$p(e.parent)&&!SV(e)}function tS(e,t){return r(e);function r(a){switch(a.kind){case 253:return t(a);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return ws(a,r)}}}function Rhe(e,t){return r(e);function r(a){switch(a.kind){case 229:t(a);let u=a.expression;u&&r(u);return;case 266:case 264:case 267:case 265:return;default:if(vs(a)){if(a.name&&a.name.kind===167){r(a.name.expression);return}}else U0(a)||ws(a,r)}}}function oZ(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?Fh(e.typeArguments):void 0}function Bhe(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function qI(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function jhe(e){return qI(e)||mx(e)}function H3(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Whe(e){return Jn(e)?ba(e.parent)&&Yn(e.parent.parent)&&Su(e.parent.parent)===2||zz(e.parent):!1}function zz(e){return Jn(e)?Yn(e)&&Su(e)===1:!1}function zhe(e){return(Ur(e)?UP(e)&&et(e.name)&&H3(e):ls(e)?rO(e)&&cd(e):ep(e)&&rO(e))||zz(e)}function Vhe(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function sZ(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function Jw(e){return e&&e.kind===241&&vs(e.parent)}function zh(e){return e&&e.kind===174&&e.parent.kind===210}function Vz(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Hhe(e){return e&&e.kind===1}function Uhe(e){return e&&e.kind===0}function qP(e,t,r,a){return re(e?.properties,u=>{if(!ed(u))return;let f=V3(u.name);return t===f||a&&a===f?r(u):void 0})}function Jhe(e,t,r){return qP(e,t,a=>yf(a.initializer)?St(a.initializer.elements,u=>Da(u)&&u.text===r):void 0)}function U3(e){if(e&&e.statements.length){let t=e.statements[0].expression;return kr(t,ba)}}function Hz(e,t,r){return LM(e,t,a=>yf(a.initializer)?St(a.initializer.elements,u=>Da(u)&&u.text===r):void 0)}function LM(e,t,r){return qP(U3(e),t,r)}function _m(e){return Ri(e.parent,vs)}function qhe(e){return Ri(e.parent,Oc)}function Zd(e){return Ri(e.parent,jr)}function $he(e){return Ri(e.parent,t=>jr(t)||vs(t)?"quit":Yl(t))}function Uz(e){return Ri(e.parent,MP)}function Jz(e){let t=Ri(e.parent,r=>jr(r)?"quit":Td(r));return t&&jr(t.parent)?Zd(t.parent):Zd(t??e)}function f_(e,t,r){for(B.assert(e.kind!==307);;){if(e=e.parent,!e)return B.fail();switch(e.kind){case 167:if(r&&jr(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Cd(e.parent.parent)?e=e.parent.parent:Cd(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 307:return e}}}function Ghe(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function qz(e){et(e)&&(Zu(e.parent)||xu(e.parent))&&e.parent.name===e&&(e=e.parent);let t=f_(e,!0,!1);return mo(t)}function Khe(e){let t=f_(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function OM(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&Cd(e.parent.parent)?e=e.parent.parent:Cd(e.parent)&&(e=e.parent);break}}}function qw(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function mp(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function FM(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function $z(e){var t;return!!e&&Ur(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Xhe(e){return!!e&&(jf(e)||ed(e))&&Yn(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function MM(e){switch(e.kind){case 183:return e.typeName;case 233:return Xc(e.expression)?e.expression:void 0;case 80:case 166:return e}}function Gz(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function RM(e,t,r,a){if(e&&pf(t)&&xo(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Zu(r):jr(r)&&!tT(t)&&!BZ(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Zu(r):jr(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&Qw(r)!==t&&a!==void 0&&a.kind===263:!1}return!1}function $P(e,t,r,a){return Pm(t)&&RM(e,t,r,a)}function BM(e,t,r,a){return $P(e,t,r,a)||J3(e,t,r)}function J3(e,t,r){switch(t.kind){case 263:return Lt(t.members,a=>BM(e,a,t,r));case 231:return!e&&Lt(t.members,a=>BM(e,a,t,r));case 174:case 178:case 176:return Lt(t.parameters,a=>$P(e,a,t,r));default:return!1}}function iS(e,t){if($P(e,t))return!0;let r=Hv(t);return!!r&&J3(e,r,t)}function aZ(e,t,r){let a;if(mx(t)){let{firstAccessor:u,secondAccessor:f,setAccessor:p}=Sx(r.members,t),y=Pm(u)?u:f&&Pm(f)?f:void 0;if(!y||t!==y)return!1;a=p?.parameters}else pu(t)&&(a=t.parameters);if($P(e,t,r))return!0;if(a){for(let u of a)if(!Zw(u)&&$P(e,u,t,r))return!0}return!1}function cZ(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return cZ(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function GP(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function Kg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!$p(e.parent)&&!AN(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||WI(e.parent)||zO(e.parent)||vk(e.parent)||GP(e);case 311:for(;vk(e.parent);)e=e.parent;return e.parent.kind===186||WI(e.parent)||zO(e.parent)||vk(e.parent)||GP(e);case 81:return Yn(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||WI(e.parent)||zO(e.parent)||vk(e.parent)||GP(e))return!0;case 9:case 10:case 11:case 15:case 110:return Kz(e);default:return!1}}function Kz(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:let a=t;return a.initializer===e&&a.initializer.kind!==261||a.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!U0(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return Kg(t)}}function Xz(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function Yhe(e){return Zy(e)&&!!e.parent.moduleSpecifier}function nk(e){return e.kind===271&&e.moduleReference.kind===283}function q3(e){return B.assert(nk(e)),e.moduleReference.expression}function lZ(e){return $w(e)&&c4(e.initializer).arguments[0]}function sE(e){return e.kind===271&&e.moduleReference.kind!==283}function Gy(e){return e?.kind===307}function N_(e){return Jn(e)}function Jn(e){return!!e&&!!(e.flags&524288)}function Yz(e){return!!e&&!!(e.flags&134217728)}function Qz(e){return!Wh(e)}function jM(e){return!!e&&!!(e.flags&16777216)}function Zz(e){return pm(e)&&et(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Y_(e,t){if(e.kind!==213)return!1;let{expression:r,arguments:a}=e;if(r.kind!==80||r.escapedText!=="require"||a.length!==1)return!1;let u=a[0];return!t||xc(u)}function WM(e){return r7e(e,!1)}function $w(e){return r7e(e,!0)}function Qhe(e){return Wa(e)&&$w(e.parent.parent)}function r7e(e,t){return Ur(e)&&!!e.initializer&&Y_(t?c4(e.initializer):e.initializer,!0)}function zM(e){return mu(e)&&e.declarationList.declarations.length>0&&Et(e.declarationList.declarations,t=>WM(t))}function VM(e){return e===39||e===34}function eV(e,t){return Vw(t,e).charCodeAt(0)===34}function $3(e){return Yn(e)||il(e)||et(e)||Gs(e)}function HM(e){return Jn(e)&&e.initializer&&Yn(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Xc(e.name)&&KP(e.name,e.initializer.left)?e.initializer.right:e.initializer}function G3(e){let t=HM(e);return t&&rk(t,xx(e.name))}function Lwt(e,t){return re(e.properties,r=>ed(r)&&et(r.name)&&r.name.escapedText==="value"&&r.initializer&&rk(r.initializer,t))}function $I(e){if(e&&e.parent&&Yn(e.parent)&&e.parent.operatorToken.kind===64){let t=xx(e.parent.left);return rk(e.parent.right,t)||Owt(e.parent.left,e.parent.right,t)}if(e&&Gs(e)&&cE(e)){let t=Lwt(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function rk(e,t){if(Gs(e)){let r=fc(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||ba(e)&&(e.properties.length===0||t))return e}function Owt(e,t,r){let a=Yn(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&rk(t.right,r);if(a&&KP(e,t.left))return a}function Zhe(e){let t=Ur(e.parent)?e.parent.name:Yn(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&rk(e.right,xx(t))&&Xc(t)&&KP(t,e.left)}function uZ(e){if(Yn(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Yn(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&et(t.left))return t.left}else if(Ur(e.parent))return e.parent.name}function KP(e,t){return q0(e)&&q0(t)?Hh(e)===Hh(t):Bv(e)&&ege(t)&&(t.expression.kind===110||et(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?KP(e,JM(t)):ege(e)&&ege(t)?X1(e)===X1(t)&&KP(e.expression,t.expression):!1}function UM(e){for(;Hd(e,!0);)e=e.right;return e}function aE(e){return et(e)&&e.escapedText==="exports"}function dZ(e){return et(e)&&e.escapedText==="module"}function Vv(e){return(lr(e)||fZ(e))&&dZ(e.expression)&&X1(e)==="exports"}function Su(e){let t=Fwt(e);return t===5||Jn(e)?t:0}function cE(e){return K(e.arguments)===3&&lr(e.expression)&&et(e.expression.expression)&&mr(e.expression.expression)==="Object"&&mr(e.expression.name)==="defineProperty"&&Am(e.arguments[1])&&lE(e.arguments[0],!0)}function ege(e){return lr(e)||fZ(e)}function fZ(e){return nl(e)&&Am(e.argumentExpression)}function Gw(e,t){return lr(e)&&(!t&&e.expression.kind===110||et(e.name)&&lE(e.expression,!0))||tV(e,t)}function tV(e,t){return fZ(e)&&(!t&&e.expression.kind===110||Xc(e.expression)||Gw(e.expression,!0))}function lE(e,t){return Xc(e)||Gw(e,t)}function JM(e){return lr(e)?e.name:e.argumentExpression}function Fwt(e){if(Gs(e)){if(!cE(e))return 0;let t=e.arguments[0];return aE(t)||Vv(t)?8:Gw(t)&&X1(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!il(e.left)||Mwt(UM(e))?0:lE(e.left.expression,!0)&&X1(e.left)==="prototype"&&ba(_Z(e))?6:qM(e.left)}function Mwt(e){return TN(e)&&Z_(e.expression)&&e.expression.text==="0"}function iV(e){if(lr(e))return e.name;let t=fc(e.argumentExpression);return Z_(t)||xc(t)?t:e}function X1(e){let t=iV(e);if(t){if(et(t))return t.escapedText;if(xc(t)||Z_(t))return Hl(t.text)}}function qM(e){if(e.expression.kind===110)return 4;if(Vv(e))return 2;if(lE(e.expression,!0)){if(xx(e.expression))return 3;let t=e;for(;!et(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&X1(t)==="exports")&&Gw(e))return 1;if(lE(e,!0)||nl(e)&&cV(e))return 5}return 0}function _Z(e){for(;Yn(e.right);)e=e.right;return e.right}function $M(e){return Yn(e)&&Su(e)===3}function tge(e){return Jn(e)&&e.parent&&e.parent.kind===244&&(!nl(e)||fZ(e))&&!!KC(e.parent)}function GM(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!Jn(t)&&!(r.flags&33554432))&&$3(r)&&!$3(t)||r.kind!==t.kind&&xwt(r))&&(e.valueDeclaration=t)}function ige(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||Ur(t)&&t.initializer&&vs(t.initializer)}function nge(e){switch(e?.kind){case 260:case 208:case 272:case 278:case 271:case 273:case 280:case 274:case 281:case 276:case 205:return!0}return!1}function XP(e){var t,r;switch(e.kind){case 260:case 208:return(t=Ri(e.initializer,a=>Y_(a,!0)))==null?void 0:t.arguments[0];case 272:case 278:case 351:return kr(e.moduleSpecifier,xc);case 271:return kr((r=kr(e.moduleReference,rb))==null?void 0:r.expression,xc);case 273:case 280:return kr(e.parent.moduleSpecifier,xc);case 274:case 281:return kr(e.parent.parent.moduleSpecifier,xc);case 276:return kr(e.parent.parent.parent.moduleSpecifier,xc);case 205:return eS(e)?e.argument.literal:void 0;default:B.assertNever(e)}}function K3(e){return KM(e)||B.failBadSyntaxKind(e.parent)}function KM(e){switch(e.parent.kind){case 272:case 278:case 351:return e.parent;case 283:return e.parent.parent;case 213:return fm(e.parent)||Y_(e.parent,!1)?e.parent:void 0;case 201:return B.assert(Da(e)),kr(e.parent.parent,ey);default:return}}function GI(e){switch(e.kind){case 272:case 278:case 351:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return eS(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return B.assertNever(e)}}function YP(e){switch(e.kind){case 272:return e.importClause&&kr(e.importClause.namedBindings,Xv);case 271:return e;case 278:return e.exportClause&&kr(e.exportClause,Zy);default:return B.assertNever(e)}}function KI(e){return(e.kind===272||e.kind===351)&&!!e.importClause&&!!e.importClause.name}function rge(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=Xv(e.namedBindings)?t(e.namedBindings):re(e.namedBindings.elements,t);if(r)return r}}function XI(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function QP(e){let t=k4(e)?mc(e.parameters):void 0,r=kr(t&&t.name,et);return!!r&&r.escapedText==="new"}function Vh(e){return e.kind===346||e.kind===338||e.kind===340}function XM(e){return Vh(e)||$h(e)}function Rwt(e){return Ud(e)&&Yn(e.expression)&&e.expression.operatorToken.kind===64?UM(e.expression):void 0}function o7e(e){return Ud(e)&&Yn(e.expression)&&Su(e.expression)!==0&&Yn(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function s7e(e){switch(e.kind){case 243:let t=YI(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function YI(e){return mu(e)?mc(e.declarationList.declarations):void 0}function a7e(e){return Hu(e)&&e.body&&e.body.kind===267?e.body:void 0}function YM(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function QM(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function pZ(e,t){let r;qI(e)&&Qb(e)&&dm(e.initializer)&&(r=Fn(r,c7e(e,e.initializer.jsDoc)));let a=e;for(;a&&a.parent;){if(dm(a)&&(r=Fn(r,c7e(e,a.jsDoc))),a.kind===169){r=Fn(r,(t?Ome:LP)(a));break}if(a.kind===168){r=Fn(r,(t?Mme:Fme)(a));break}a=mZ(a)}return r||F}function c7e(e,t){let r=pa(t);return vo(t,a=>{if(a===r){let u=Di(a.tags,f=>Bwt(e,f));return a.tags===u?[a]:u}else return Di(a.tags,w4)})}function Bwt(e,t){return!(VO(t)||NH(t))||!t.parent||!t0(t.parent)||!O_(t.parent.parent)||t.parent.parent===e}function mZ(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||a7e(t)||Hd(e))return t;if(t.parent&&(YI(t.parent)===e||Hd(t)))return t.parent;if(t.parent&&t.parent.parent&&(YI(t.parent.parent)||s7e(t.parent.parent)===e||o7e(t.parent.parent)))return t.parent.parent}function ZM(e){if(e.symbol)return e.symbol;if(!et(e.name))return;let t=e.name.escapedText,r=ok(e);if(!r)return;let a=St(r.parameters,u=>u.name.kind===80&&u.name.escapedText===t);return a&&a.symbol}function nV(e){if(t0(e.parent)&&e.parent.tags){let t=St(e.parent.tags,Vh);if(t)return t}return ok(e)}function hZ(e){return lz(e,w4)}function ok(e){let t=sk(e);if(t)return ep(t)&&t.type&&vs(t.type)?t.type:vs(t)?t:void 0}function sk(e){let t=Kw(e);if(t)return o7e(t)||Rwt(t)||s7e(t)||YI(t)||a7e(t)||t}function Kw(e){let t=ZP(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===Lc(r.jsDoc))return r}function ZP(e){return Ri(e.parent,t0)}function oge(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&St(r,a=>a.name.escapedText===t)}function l7e(e){return!!e.typeArguments}var sge=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(sge||{});function age(e){let t=e.parent;for(;;){switch(t.kind){case 226:let r=t,a=r.operatorToken.kind;return Q1(a)&&r.left===e?r:void 0;case 224:case 225:let u=t,f=u.operator;return f===46||f===47?u:void 0;case 249:case 250:let p=t;return p.initializer===e?p:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function ak(e){let t=age(e);if(!t)return 0;switch(t.kind){case 226:let r=t.operatorToken.kind;return r===64||oO(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function nS(e){return!!age(e)}function jwt(e){let t=fc(e.right);return t.kind===226&&ute(t.operatorToken.kind)}function gZ(e){let t=age(e);return!!t&&Hd(t,!0)&&jwt(t)}function cge(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function QI(e){return Yc(e)||rl(e)||BI(e)||xu(e)||Ol(e)}function u7e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function eR(e){return u7e(e,196)}function Ky(e){return u7e(e,217)}function lge(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function X3(e){for(;gE(e);)e=e.type;return e}function fc(e,t){return Cu(e,t?-2147483647:1)}function yZ(e){return e.kind!==211&&e.kind!==212?!1:(e=Ky(e.parent),e&&e.kind===220)}function Xw(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Xy(e){return!mo(e)&&!Rs(e)&&mf(e.parent)&&e.parent.name===e}function Y3(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Ma(t))return t.parent;case 80:if(mf(t))return t.name===e?t:void 0;if(P_(t)){let r=t.parent;return ph(r)&&r.name===t?r:void 0}else{let r=t.parent;return Yn(r)&&Su(r)!==0&&(r.left.symbol||r.symbol)&&cs(r)===e?r:void 0}case 81:return mf(t)&&t.name===e?t:void 0;default:return}}function tR(e){return Am(e)&&e.parent.kind===167&&mf(e.parent.parent)}function uge(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function vZ(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return vZ(e)}}function rV(e){return Xc(e)||Qu(e)}function iR(e){let t=bZ(e);return rV(t)}function bZ(e){return ll(e)?e.expression:e.right}function dge(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function J0(e){let t=Yw(e);if(t&&Jn(e)){let r=Bme(e);if(r)return r.class}return t}function Yw(e){let t=nR(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function e4(e){if(Jn(e))return jme(e).map(t=>t.class);{let t=nR(e.heritageClauses,119);return t?.types}}function Q3(e){return vf(e)?Z3(e)||F:jr(e)&&Fo(AI(J0(e)),e4(e))||F}function Z3(e){let t=nR(e.heritageClauses,96);return t?t.types:void 0}function nR(e,t){if(e){for(let r of e)if(r.token===t)return r}}function ck(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Q_(e){return 83<=e&&e<=165}function SZ(e){return 19<=e&&e<=79}function oV(e){return Q_(e)||SZ(e)}function sV(e){return 128<=e&&e<=165}function xZ(e){return Q_(e)&&!sV(e)}function ZI(e){let t=K2(e);return t!==void 0&&xZ(t)}function CZ(e){let t=X2(e);return!!t&&!sV(t)}function t4(e){return 2<=e&&e<=7}var fge=(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))(fge||{});function Vu(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Ar(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function eO(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Ar(e,1024)}return!1}function Am(e){return xc(e)||Z_(e)}function aV(e){return mk(e)&&(e.operator===40||e.operator===41)&&Z_(e.operand)}function Y1(e){let t=cs(e);return!!t&&cV(t)}function cV(e){if(!(e.kind===167||e.kind===212))return!1;let t=nl(e)?fc(e.argumentExpression):e.expression;return!Am(t)&&!aV(t)}function uE(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return Hl(e.text);case 167:let t=e.expression;return Am(t)?Hl(t.text):aV(t)?t.operator===41?ua(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return _N(e);default:return B.assertNever(e)}}function q0(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Hh(e){return Bv(e)?mr(e):e0(e)?TO(e):e.text}function tO(e){return Bv(e)?e.escapedText:e0(e)?_N(e):Hl(e.text)}function rR(e,t){return`__#${Ca(e)}@${t}`}function oR(e){return Ro(e.escapedName,"__@")}function _ge(e){return Ro(e.escapedName,"__#")}function Wwt(e){return et(e)?mr(e)==="__proto__":Da(e)&&e.text==="__proto__"}function lV(e,t){switch(e=Cu(e),e.kind){case 231:if(gie(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function kZ(e){switch(e.kind){case 303:return!Wwt(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return et(e.name)&&!!e.initializer;case 169:return et(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return et(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return et(e.left)}break;case 277:return!0}return!1}function Hp(e,t){if(!kZ(e))return!1;switch(e.kind){case 303:return lV(e.initializer,t);case 304:return lV(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return lV(e.initializer,t);case 226:return lV(e.right,t);case 277:return lV(e.expression,t)}}function wZ(e){return e.escapedText==="push"||e.escapedText==="unshift"}function lk(e){return $0(e).kind===169}function $0(e){for(;e.kind===208;)e=e.parent.parent;return e}function TZ(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===307}function Uc(e){return Yg(e.pos)||Yg(e.end)}var pge=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(pge||{});function EZ(e){let t=d7e(e),r=e.kind===214&&e.arguments!==void 0;return DZ(e.kind,t,r)}function DZ(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function iO(e){let t=d7e(e),r=e.kind===214&&e.arguments!==void 0;return sR(e.kind,t,r)}function d7e(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}var mge=(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))(mge||{});function sR(e,t,r){switch(e){case 355:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return aR(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function aR(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function i4(e){return Di(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function cR(){let e=[],t=[],r=new Map,a=!1;return{add:f,lookup:u,getGlobalDiagnostics:p,getDiagnostics:y};function u(g){let x;if(g.file?x=r.get(g.file.fileName):x=e,!x)return;let k=H1(x,g,Gc,Qge);if(k>=0)return x[k];if(~k>0&&PV(g,x[~k-1]))return x[~k-1]}function f(g){let x;g.file?(x=r.get(g.file.fileName),x||(x=[],r.set(g.file.fileName,x),vn(t,g.file.fileName,Ff))):(a&&(a=!1,e=e.slice()),x=e),vn(x,g,Qge,PV)}function p(){return a=!0,e}function y(g){if(g)return r.get(g)||[];let x=kl(t,k=>r.get(k));return e.length&&x.unshift(...e),x}}var zwt=/\$\{/g;function IZ(e){return e.replace(zwt,"\\${")}function hge(e){return!!((e.templateFlags||0)&2048)}function NZ(e){return e&&!!(mE(e)?hge(e):hge(e.head)||Lt(e.templateSpans,t=>hge(t.literal)))}var Vwt=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,Hwt=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,Uwt=/\r\n|[\\`\u0000-\u001f\u2028\u2029\u0085]/g,Jwt=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function f7e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function qwt(e,t,r){if(e.charCodeAt(0)===0){let a=r.charCodeAt(t+e.length);return a>=48&&a<=57?"\\x00":"\\0"}return Jwt.get(e)||f7e(e.charCodeAt(0))}function Yy(e,t){let r=t===96?Uwt:t===39?Hwt:Vwt;return e.replace(r,qwt)}var _7e=/[^\u0000-\u007F]/g;function uV(e,t){return e=Yy(e,t),_7e.test(e)?e.replace(_7e,r=>f7e(r.charCodeAt(0))):e}var $wt=/["\u0000-\u001f\u2028\u2029\u0085]/g,Gwt=/['\u0000-\u001f\u2028\u2029\u0085]/g,Kwt=new Map(Object.entries({'"':""","'":"'"}));function Xwt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ywt(e){return e.charCodeAt(0)===0?"�":Kwt.get(e)||Xwt(e.charCodeAt(0))}function AZ(e,t){let r=t===39?Gwt:$wt;return e.replace(r,Ywt)}function sh(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&Qwt(e.charCodeAt(0))?e.substring(1,t-1):e}function Qwt(e){return e===39||e===34||e===96}function n4(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var lR=[""," "];function dV(e){let t=lR[1];for(let r=lR.length;r<=e;r++)lR.push(lR[r-1]+t);return lR[e]}function uR(){return lR[1].length}function dR(e){var t,r,a,u,f,p=!1;function y(W){let z=OI(W);z.length>1?(u=u+z.length-1,f=t.length-W.length+pa(z),a=f-t.length===0):a=!1}function g(W){W&&W.length&&(a&&(W=dV(r)+W,a=!1),t+=W,y(W))}function x(W){W&&(p=!1),g(W)}function k(W){W&&(p=!0),g(W)}function T(){t="",r=0,a=!0,u=0,f=0,p=!1}function A(W){W!==void 0&&(t+=W,y(W),p=!1)}function P(W){W&&W.length&&x(W)}function R(W){(!a||W)&&(t+=e,u++,f=t.length,a=!0,p=!1)}return T(),{write:x,rawWrite:A,writeLiteral:P,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>u,getColumn:()=>a?r*uR():t.length-f,getText:()=>t,isAtStartOfLine:()=>a,hasTrailingComment:()=>p,hasTrailingWhitespace:()=>!!t.length&&Fv(t.charCodeAt(t.length-1)),clear:T,writeKeyword:x,writeOperator:x,writeParameter:x,writeProperty:x,writePunctuation:x,writeSpace:x,writeStringLiteral:x,writeSymbol:(W,z)=>x(W),writeTrailingSemicolon:x,writeComment:k}}function PZ(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(a){r(),e.writeLiteral(a)},writeStringLiteral(a){r(),e.writeStringLiteral(a)},writeSymbol(a,u){r(),e.writeSymbol(a,u)},writePunctuation(a){r(),e.writePunctuation(a)},writeKeyword(a){r(),e.writeKeyword(a)},writeOperator(a){r(),e.writeOperator(a)},writeParameter(a){r(),e.writeParameter(a)},writeSpace(a){r(),e.writeSpace(a)},writeProperty(a){r(),e.writeProperty(a)},writeComment(a){r(),e.writeComment(a)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function eN(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function rS(e){return df(eN(e))}function LZ(e,t,r){return t.moduleName||OZ(e,t.fileName,r&&r.fileName)}function p7e(e,t){return e.getCanonicalFileName(ts(t,e.getCurrentDirectory()))}function gge(e,t,r){let a=t.getExternalModuleFileFromDeclaration(r);if(!a||a.isDeclarationFile)return;let u=GI(r);if(!(u&&xc(u)&&!Nm(u.text)&&!p7e(e,a.path).includes(p7e(e,xd(e.getCommonSourceDirectory())))))return LZ(e,a)}function OZ(e,t,r){let a=g=>e.getCanonicalFileName(g),u=Vc(r?Or(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),a),f=ts(t,e.getCurrentDirectory()),p=LI(u,f,u,a,!1),y=A_(p);return r?G2(y):y}function yge(e,t,r){let a=t.getCompilerOptions(),u;return a.outDir?u=A_(hV(e,t,a.outDir)):u=A_(e),u+r}function vge(e,t){return fV(e,t.getCompilerOptions(),t)}function fV(e,t,r){let a=t.declarationDir||t.outDir,u=a?Sge(e,a,r.getCurrentDirectory(),r.getCommonSourceDirectory(),p=>r.getCanonicalFileName(p)):e,f=_V(u);return A_(u)+f}function _V(e){return vu(e,[".mjs",".mts"])?".d.mts":vu(e,[".cjs",".cts"])?".d.cts":vu(e,[".json"])?".d.json.ts":".d.ts"}function bge(e){return vu(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:vu(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:vu(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function pV(e,t){var r;if(e.paths)return e.baseUrl??B.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function mV(e,t,r){let a=e.getCompilerOptions();if(a.outFile){let u=p_(a),f=a.emitDeclarationOnly||u===2||u===4;return Di(e.getSourceFiles(),p=>(f||!dd(p))&&dE(p,e,r))}else{let u=t===void 0?e.getSourceFiles():[t];return Di(u,f=>dE(f,e,r))}}function dE(e,t,r){let a=t.getCompilerOptions();if(a.noEmitForJsFiles&&N_(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Wh(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(a.outFile)return!0;if(!a.outDir)return!1;if(a.rootDir||a.composite&&a.configFilePath){let u=ts(d8(a,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),f=Sge(e.fileName,a.outDir,t.getCurrentDirectory(),u,t.getCanonicalFileName);if(J1(e.fileName,f,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function hV(e,t,r){return Sge(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),a=>t.getCanonicalFileName(a))}function Sge(e,t,r,a,u){let f=ts(e,r);return f=u(f).indexOf(u(a))===0?f.substring(a.length):f,xr(t,f)}function gV(e,t,r,a,u,f,p){e.writeFile(r,a,u,y=>{t.add(Dl(S.Could_not_write_file_0_Colon_1,r,y))},f,p)}function m7e(e,t,r){if(e.length>Vy(e)&&!r(e)){let a=Or(e);m7e(a,t,r),t(e)}}function FZ(e,t,r,a,u,f){try{a(e,t,r)}catch{m7e(Or($s(e)),u,f),a(e,t,r)}}function nO(e,t){let r=Ov(e);return x3(r,t)}function r4(e,t){return x3(e,t)}function Hv(e){return St(e.members,t=>Ol(t)&&jh(t.body))}function o4(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&Zw(e.parameters[0]);return e.parameters[t?1:0]}}function xge(e){let t=o4(e);return t&&t.type}function Qw(e){if(e.parameters.length&&!ob(e)){let t=e.parameters[0];if(Zw(t))return t}}function Zw(e){return bx(e.name)}function bx(e){return!!e&&e.kind===80&&MZ(e)}function tN(e){return!!Ri(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function eT(e){if(!bx(e))return!1;for(;P_(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function MZ(e){return e.escapedText==="this"}function Sx(e,t){let r,a,u,f;return Y1(t)?(r=t,t.kind===177?u=t:t.kind===178?f=t:B.fail("Accessor has wrong kind")):re(e,p=>{if(mx(p)&&ia(p)===ia(t)){let y=uE(p.name),g=uE(t.name);y===g&&(r?a||(a=p):r=p,p.kind===177&&!u&&(u=p),p.kind===178&&!f&&(f=p))}}),{firstAccessor:r,secondAccessor:a,getAccessor:u,setAccessor:f}}function Yu(e){if(!Jn(e)&&xu(e)||$h(e))return;let t=e.type;return t||!Jn(e)?t:P3(e)?e.typeExpression&&e.typeExpression.type:XC(e)}function Cge(e){return e.type}function Up(e){return ob(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Jn(e)?lM(e):void 0)}function yV(e){return vo(YC(e),t=>Zwt(t)?t.typeParameters:void 0)}function Zwt(e){return Gh(e)&&!(e.parent.kind===320&&(e.parent.tags.some(Vh)||e.parent.tags.some(w4)))}function kge(e){let t=o4(e);return t&&Yu(t)}function eTt(e,t,r,a){tTt(e,t,r.pos,a)}function tTt(e,t,r,a){a&&a.length&&r!==a[0].pos&&r4(e,r)!==r4(e,a[0].pos)&&t.writeLine()}function wge(e,t,r,a){r!==a&&r4(e,r)!==r4(e,a)&&t.writeLine()}function iTt(e,t,r,a,u,f,p,y){if(a&&a.length>0){u&&r.writeSpace(" ");let g=!1;for(let x of a)g&&(r.writeSpace(" "),g=!1),y(e,t,r,x.pos,x.end,p),x.hasTrailingNewLine?r.writeLine():g=!0;g&&f&&r.writeSpace(" ")}}function Tge(e,t,r,a,u,f,p){let y,g;if(p?u.pos===0&&(y=Di(Mv(e,u.pos),x)):y=Mv(e,u.pos),y){let k=[],T;for(let A of y){if(T){let P=r4(t,T.end);if(r4(t,A.pos)>=P+2)break}k.push(A),T=A}if(k.length){let A=r4(t,pa(k).end);r4(t,Ea(e,u.pos))>=A+2&&(eTt(t,r,u,y),iTt(e,t,r,k,!1,!0,f,a),g={nodePos:u.pos,detachedCommentEndPos:pa(k).end})}}return g;function x(k){return Pz(e,k.pos)}}function s4(e,t,r,a,u,f){if(e.charCodeAt(a+1)===42){let p=NP(t,a),y=t.length,g;for(let x=a,k=p.line;x0){let R=P%uR(),W=dV((P-R)/uR());for(r.rawWrite(W);R;)r.rawWrite(" "),R--}else r.rawWrite("")}nTt(e,u,r,f,x,T),x=T}}else r.writeComment(e.substring(a,u))}function nTt(e,t,r,a,u,f){let p=Math.min(t,f-1),y=e.substring(u,p).trim();y?(r.writeComment(y),p!==t&&r.writeLine()):r.rawWrite(a)}function h7e(e,t,r){let a=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=jZ(e)|536870912),r||t&&Jn(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=g7e(e)|268435456),y7e(e.modifierFlagsCache)):rTt(e.modifierFlagsCache))}function __(e){return Ige(e,!0)}function Nge(e){return Ige(e,!0,!0)}function oS(e){return Ige(e,!1)}function g7e(e){let t=0;return e.parent&&!To(e)&&(Jn(e)&&(Wme(e)&&(t|=8388608),zme(e)&&(t|=16777216),Vme(e)&&(t|=33554432),Hme(e)&&(t|=67108864),Ume(e)&&(t|=134217728)),Jme(e)&&(t|=65536)),t}function rTt(e){return e&65535}function y7e(e){return e&131071|(e&260046848)>>>23}function oTt(e){return y7e(g7e(e))}function Age(e){return jZ(e)|oTt(e)}function jZ(e){let t=Kh(e)?K0(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function K0(e){let t=0;if(e)for(let r of e)t|=nN(r.kind);return t}function nN(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function fR(e){return e===57||e===56}function Pge(e){return fR(e)||e===54}function oO(e){return e===76||e===77||e===78}function WZ(e){return Yn(e)&&oO(e.operatorToken.kind)}function bV(e){return fR(e)||e===61}function _R(e){return Yn(e)&&bV(e.operatorToken.kind)}function Q1(e){return e>=64&&e<=79}function zZ(e){let t=VZ(e);return t&&!t.isImplements?t.class:void 0}function VZ(e){if(nb(e)){if($p(e.parent)&&jr(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(AN(e.parent)){let t=sk(e.parent);if(t&&jr(t))return{class:t,isImplements:!1}}}}function Hd(e,t){return Yn(e)&&(t?e.operatorToken.kind===64:Q1(e.operatorToken.kind))&&X_(e.left)}function sS(e){if(Hd(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function SV(e){return zZ(e)!==void 0}function Xc(e){return e.kind===80||mR(e)}function hp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function pR(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&pR(e.expression)||e.kind===217&&pR(e.expression)}function mR(e){return lr(e)&&et(e.name)&&Xc(e.expression)}function hR(e){if(lr(e)){let t=hR(e.expression);if(t!==void 0)return t+"."+zp(e.name)}else if(nl(e)){let t=hR(e.expression);if(t!==void 0&&zu(e.argumentExpression))return t+"."+uE(e.argumentExpression)}else{if(et(e))return So(e.escapedText);if(e0(e))return TO(e)}}function xx(e){return Gw(e)&&X1(e)==="prototype"}function sO(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function HZ(e){return!!e.parent&&(lr(e.parent)&&e.parent.name===e||nl(e.parent)&&e.parent.argumentExpression===e)}function Lge(e){return P_(e.parent)&&e.parent.right===e||lr(e.parent)&&e.parent.name===e||vk(e.parent)&&e.parent.right===e}function xV(e){return Yn(e)&&e.operatorToken.kind===104}function Oge(e){return xV(e.parent)&&e===e.parent.right}function UZ(e){return e.kind===210&&e.properties.length===0}function Fge(e){return e.kind===209&&e.elements.length===0}function aO(e){if(!(!sTt(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function sTt(e){return e&&K(e.declarations)>0&&Ar(e.declarations[0],2048)}function CV(e){return St(OTt,t=>Tl(e,t))}function aTt(e){let t=[],r=e.length;for(let a=0;a>6|192),t.push(u&63|128)):u<65536?(t.push(u>>12|224),t.push(u>>6&63|128),t.push(u&63|128)):u<131072?(t.push(u>>18|240),t.push(u>>12&63|128),t.push(u>>6&63|128),t.push(u&63|128)):B.assert(!1,"Unexpected code point")}return t}var rN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Mge(e){let t="",r=aTt(e),a=0,u=r.length,f,p,y,g;for(;a>2,p=(r[a]&3)<<4|r[a+1]>>4,y=(r[a+1]&15)<<2|r[a+2]>>6,g=r[a+2]&63,a+1>=u?y=g=64:a+2>=u&&(g=64),t+=rN.charAt(f)+rN.charAt(p)+rN.charAt(y)+rN.charAt(g),a+=3;return t}function cTt(e){let t="",r=0,a=e.length;for(;r>4&3,k=(p&15)<<4|y>>2&15,T=(y&3)<<6|g&63;k===0&&y!==0?a.push(x):T===0&&g!==0?a.push(x,k):a.push(x,k,T),u+=4}return cTt(a)}function JZ(e,t){let r=fs(t)?t:t.readFile(e);if(!r)return;let a=Ete(e,r);return a.error?void 0:a.config}function cO(e,t){return JZ(e,t)||{}}function kV(e){try{return JSON.parse(e)}catch{return}}function Xg(e,t){return!t.directoryExists||t.directoryExists(e)}var lTt=`\r +`,uTt=` +`;function aS(e){switch(e.newLine){case 0:return lTt;case 1:case void 0:return uTt}}function ah(e,t=e){return B.assert(t>=e||t===-1),{pos:e,end:t}}function wV(e,t){return ah(e.pos,t)}function uk(e,t){return ah(t,e.end)}function Z1(e){let t=Kh(e)?Mi(e.modifiers,Td):void 0;return t&&!Yg(t.end)?uk(e,t.end):e}function X0(e){if(ls(e)||pu(e))return uk(e,e.name.pos);let t=Kh(e)?Lc(e.modifiers):void 0;return t&&!Yg(t.end)?uk(e,t.end):Z1(e)}function qZ(e,t){return ah(e,e+ua(t).length)}function fE(e,t){return Wge(e,e,t)}function TV(e,t,r){return ch(lO(e,r,!1),lO(t,r,!1),r)}function jge(e,t,r){return ch(e.end,t.end,r)}function Wge(e,t,r){return ch(lO(e,r,!1),t.end,r)}function gR(e,t,r){return ch(e.end,lO(t,r,!1),r)}function $Z(e,t,r,a){let u=lO(t,r,a);return C3(r,e.end,u)}function v7e(e,t,r){return C3(r,e.end,t.end)}function zge(e,t){return!ch(e.pos,e.end,t)}function ch(e,t,r){return C3(r,e,t)===0}function lO(e,t,r){return Yg(e.pos)?-1:Ea(t.text,e.pos,!1,r)}function Vge(e,t,r,a){let u=Ea(r.text,e,!1,a),f=dTt(u,t,r);return C3(r,f??t,u)}function Hge(e,t,r,a){let u=Ea(r.text,e,!1,a);return C3(r,e,Math.min(t,u))}function dTt(e,t=0,r){for(;e-- >t;)if(!Fv(r.text.charCodeAt(e)))return e}function GZ(e){let t=_s(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function uO(e){return Di(e.declarations,yR)}function yR(e){return Ur(e)&&e.initializer!==void 0}function KZ(e){return e.watch&&Nc(e,"watch")}function kg(e){e.close()}function _u(e){return e.flags&33554432?e.links.checkFlags:0}function lh(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&St(e.declarations,qp)||e.flags&32768&&St(e.declarations,Lm)||e.valueDeclaration,a=GC(r);return e.parent&&e.parent.flags&32?a:a&-8}if(_u(e)&6){let r=e.links.checkFlags,a=r&1024?2:r&256?1:4,u=r&2048?256:0;return a|u}return e.flags&4194304?257:0}function hf(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function a4(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function EV(e){return dO(e)===1}function oN(e){return dO(e)!==0}function dO(e){let{parent:t}=e;switch(t?.kind){case 217:return dO(t);case 225:case 224:let{operator:r}=t;return r===46||r===47?2:0;case 226:let{left:a,operatorToken:u}=t;return a===e&&Q1(u.kind)?u.kind===64?1:2:0;case 211:return t.name!==e?0:dO(t);case 303:{let f=dO(t.parent);return e===t.name?fTt(f):f}case 304:return e===t.objectAssignmentInitializer?0:dO(t.parent);case 209:return dO(t);default:return 0}}function fTt(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return B.assertNever(e)}}function XZ(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(typeof e[r]=="object"){if(!XZ(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function gp(e,t){e.forEach(t),e.clear()}function Uv(e,t,r){let{onDeleteValue:a,onExistingValue:u}=r;e.forEach((f,p)=>{var y;t?.has(p)?u&&u(f,(y=t.get)==null?void 0:y.call(t,p),p):(e.delete(p),a(f,p))})}function fO(e,t,r){Uv(e,t,r);let{createNewValue:a}=r;t?.forEach((u,f)=>{e.has(f)||e.set(f,a(f,u))})}function Uge(e){if(e.flags&32){let t=eb(e);return!!t&&Ar(t,64)}return!1}function eb(e){var t;return(t=e.declarations)==null?void 0:t.find(jr)}function _r(e){return e.flags&3899393?e.objectFlags:0}function DV(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&HR(e.declarations[0])}function Jge({moduleSpecifier:e}){return Da(e)?e.text:Jl(e)}function YZ(e){let t;return ws(e,r=>{jh(r)&&(t=r)},r=>{for(let a=r.length-1;a>=0;a--)if(jh(r[a])){t=r[a];break}}),t}function Uh(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function sN(e){return jr(e)||vf(e)||L_(e)}function QZ(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function il(e){return e.kind===211||e.kind===212}function ZZ(e){return e.kind===211?e.name:(B.assert(e.kind===212),e.argumentExpression)}function IV(e){return e.kind===275||e.kind===279}function c4(e){for(;il(e);)e=e.expression;return e}function qge(e,t){if(il(e.parent)&&HZ(e))return r(e.parent);function r(a){if(a.kind===211){let u=t(a.name);if(u!==void 0)return u}else if(a.kind===212)if(et(a.argumentExpression)||xc(a.argumentExpression)){let u=t(a.argumentExpression);if(u!==void 0)return u}else return;if(il(a.expression))return r(a.expression);if(et(a.expression))return t(a.expression)}}function l4(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 354:case 238:e=e.expression;continue}return e}}function _Tt(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.lastAssignmentPos=void 0,this.links=void 0}function pTt(e,t){this.flags=t,(B.isDebugging||jn)&&(this.checker=e)}function mTt(e,t){this.flags=t,B.isDebugging&&(this.checker=e)}function $ge(e,t,r){this.pos=t,this.end=r,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 hTt(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function gTt(e,t,r){this.pos=t,this.end=r,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 yTt(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(a=>a)}var gf={getNodeConstructor:()=>$ge,getTokenConstructor:()=>hTt,getIdentifierConstructor:()=>gTt,getPrivateIdentifierConstructor:()=>$ge,getSourceFileConstructor:()=>$ge,getSymbolConstructor:()=>_Tt,getTypeConstructor:()=>pTt,getSignatureConstructor:()=>mTt,getSourceMapSourceConstructor:()=>yTt},b7e=[];function S7e(e){b7e.push(e),e(gf)}function Gge(e){Object.assign(gf,e),re(b7e,t=>t(gf))}function Jv(e,t){return e.replace(/\{(\d+)\}/g,(r,a)=>""+B.checkDefined(t[+a]))}var NV;function Kge(e){NV=e}function Xge(e){!NV&&e&&(NV=e())}function gs(e){return NV&&NV[e.key]||e.message}function aN(e,t,r,a,u,...f){r+a>t.length&&(a=t.length-r),Ahe(t,r,a);let p=gs(u);return Lt(f)&&(p=Jv(p,f)),{file:void 0,start:r,length:a,messageText:p,category:u.category,code:u.code,reportsUnnecessary:u.reportsUnnecessary,fileName:e}}function vTt(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function x7e(e,t){let r=t.fileName||"",a=t.text.length;B.assertEqual(e.fileName,r),B.assertLessThanOrEqual(e.start,a),B.assertLessThanOrEqual(e.start+e.length,a);let u={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){u.relatedInformation=[];for(let f of e.relatedInformation)vTt(f)&&f.fileName===r?(B.assertLessThanOrEqual(f.start,a),B.assertLessThanOrEqual(f.start+f.length,a),u.relatedInformation.push(x7e(f,t))):u.relatedInformation.push(f)}return u}function cN(e,t){let r=[];for(let a of e)r.push(x7e(a,t));return r}function kd(e,t,r,a,...u){Ahe(e.text,t,r);let f=gs(a);return Lt(u)&&(f=Jv(f,u)),{file:e,start:t,length:r,messageText:f,category:a.category,code:a.code,reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated}}function lN(e,...t){let r=gs(e);return Lt(t)&&(r=Jv(r,t)),r}function Dl(e,...t){let r=gs(e);return Lt(t)&&(r=Jv(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function AV(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 bs(e,t,...r){let a=gs(t);return Lt(r)&&(a=Jv(a,r)),{messageText:a,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Yge(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function eee(e){return e.file?e.file.path:void 0}function _O(e,t){return Qge(e,t)||bTt(e,t)||0}function Qge(e,t){let r=tee(e),a=tee(t);return Ff(eee(e),eee(t))||Kc(e.start,t.start)||Kc(e.length,t.length)||Kc(r,a)||STt(e,t)||0}function bTt(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Kc(t.relatedInformation.length,e.relatedInformation.length)||re(e.relatedInformation,(r,a)=>{let u=t.relatedInformation[a];return _O(r,u)})||0:e.relatedInformation?-1:1}function STt(e,t){let r=iee(e),a=iee(t);typeof r!="string"&&(r=r.messageText),typeof a!="string"&&(a=a.messageText);let u=typeof e.messageText!="string"?e.messageText.next:void 0,f=typeof t.messageText!="string"?t.messageText.next:void 0,p=Ff(r,a);return p||(p=xTt(u,f),p)?p:e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0}function xTt(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:C7e(e,t)||k7e(e,t)}function C7e(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;let r=Kc(t.length,e.length);if(r)return r;for(let a=0;a{u.externalModuleIndicator=ZR(u)||!u.isDeclarationFile||void 0};case 1:return u=>{u.externalModuleIndicator=ZR(u)};case 2:let t=[ZR];(e.jsx===4||e.jsx===5)&&t.push(kTt),t.push(wTt);let r=Im(...t);return u=>void(u.externalModuleIndicator=r(u,e))}}function nee(e){let t=$f(e);return 3<=t&&t<=99||SR(e)||LV(e)}function N7i(e){return e}var ld={target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:ld.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(ld.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(ld.module.computeValue(e)===100||ld.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(ld.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:ld.esModuleInterop.computeValue(e)||ld.module.computeValue(e)===4||ld.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=ld.moduleResolution.computeValue(e);if(!u4(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=ld.moduleResolution.computeValue(e);if(!u4(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:ld.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||ld.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&ld.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?ld.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Rf(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Rf(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Rf(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Rf(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Rf(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Rf(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Rf(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Rf(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Rf(e,"useUnknownInCatchVariables")}},Oa=ld.target.computeValue,p_=ld.module.computeValue,$f=ld.moduleResolution.computeValue,Zge=ld.moduleDetection.computeValue,Jh=ld.isolatedModules.computeValue,qv=ld.esModuleInterop.computeValue,uN=ld.allowSyntheticDefaultImports.computeValue,SR=ld.resolvePackageJsonExports.computeValue,LV=ld.resolvePackageJsonImports.computeValue,iT=ld.resolveJsonModule.computeValue,yp=ld.declaration.computeValue,Cx=ld.preserveConstEnums.computeValue,nT=ld.incremental.computeValue,OV=ld.declarationMap.computeValue,kx=ld.allowJs.computeValue,xR=ld.useDefineForClassFields.computeValue;function CR(e){return e>=5&&e<=99}function FV(e){switch(p_(e)){case 0:case 4:case 3:return!1}return!0}function e0e(e){return e.allowUnreachableCode===!1}function t0e(e){return e.allowUnusedLabels===!1}function u4(e){return e>=3&&e<=99||e===100}function Rf(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function MV(e){return Vd(bte.type,(t,r)=>t===e?r:void 0)}function ree(e){return e.useDefineForClassFields!==!1&&Oa(e)>=9}function i0e(e,t){return WP(t,e,Qye)}function n0e(e,t){return WP(t,e,Zye)}function r0e(e,t){return WP(t,e,eve)}function RV(e,t){return t.strictFlag?Rf(e,t.name):t.allowJsFlag?kx(e):e[t.name]}function BV(e){let t=e.jsx;return t===2||t===4||t===5}function jV(e,t){let r=t?.pragmas.get("jsximportsource"),a=ds(r)?r[r.length-1]:r,u=t?.pragmas.get("jsxruntime"),f=ds(u)?u[u.length-1]:u;if(f?.arguments.factory!=="classic")return e.jsx===4||e.jsx===5||e.jsxImportSource||a||f?.arguments.factory==="automatic"?a?.arguments.factory||e.jsxImportSource||"react":void 0}function WV(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function oee(e){let t=!1;for(let r=0;ru,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>a,setSymlinkedFile:(g,x)=>(u||(u=new Map)).set(g,x),setSymlinkedDirectory:(g,x)=>{let k=Vc(g,e,t);xO(k)||(k=xd(k),x!==!1&&!r?.has(k)&&(a||(a=Dm())).add(x.realPath,g),(r||(r=new Map)).set(k,x))},setSymlinksFromResolutions(g,x,k){B.assert(!f),f=!0,g(T=>y(this,T.resolvedModule)),x(T=>y(this,T.resolvedTypeReferenceDirective)),k.forEach(T=>y(this,T.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>f,setSymlinksFromResolution(g){y(this,g)},hasAnySymlinks:p};function p(){return!!u?.size||!!r&&!!Vd(r,g=>!!g)}function y(g,x){if(!x||!x.originalPath||!x.resolvedFileName)return;let{resolvedFileName:k,originalPath:T}=x;g.setSymlinkedFile(Vc(T,e,t),k);let[A,P]=TTt(k,T,e,t)||F;A&&P&&g.setSymlinkedDirectory(P,{real:xd(A),realPath:xd(Vc(A,e,t))})}}function TTt(e,t,r,a){let u=zd(ts(e,r)),f=zd(ts(t,r)),p=!1;for(;u.length>=2&&f.length>=2&&!T7e(u[u.length-2],a)&&!T7e(f[f.length-2],a)&&a(u[u.length-1])===a(f[f.length-1]);)u.pop(),f.pop(),p=!0;return p?[Xb(u),Xb(f)]:void 0}function T7e(e,t){return e!==void 0&&(t(e)==="node_modules"||Ro(e,"@"))}function ETt(e){return tQ(e.charCodeAt(0))?e.slice(1):void 0}function aee(e,t,r){let a=IY(e,t,r);return a===void 0?void 0:ETt(a)}var o0e=/[^\w\s/]/g;function E7e(e){return e.replace(o0e,DTt)}function DTt(e){return"\\"+e}var ITt=[42,63],NTt=["node_modules","bower_components","jspm_packages"],s0e=`(?!(${NTt.join("|")})(/|$))`,D7e={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${s0e}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>l0e(e,D7e.singleAsteriskRegexFragment)},I7e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${s0e}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>l0e(e,I7e.singleAsteriskRegexFragment)},N7e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>l0e(e,N7e.singleAsteriskRegexFragment)},a0e={files:D7e,directories:I7e,exclude:N7e};function pO(e,t,r){let a=zV(e,t,r);return!a||!a.length?void 0:`^(${a.map(p=>`(${p})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function zV(e,t,r){if(!(e===void 0||e.length===0))return vo(e,a=>a&&VV(a,t,r,a0e[r]))}function cee(e){return!/[.*?]/.test(e)}function c0e(e,t,r){let a=e&&VV(e,t,r,a0e[r]);return a&&`^(${a})${r==="exclude"?"($|/)":"$"}`}function VV(e,t,r,{singleAsteriskRegexFragment:a,doubleAsteriskRegexFragment:u,replaceWildcardCharacter:f}=a0e[r]){let p="",y=!1,g=X7(e,t),x=pa(g);if(r!=="exclude"&&x==="**")return;g[0]=$C(g[0]),cee(x)&&g.push("**","*");let k=0;for(let T of g){if(T==="**")p+=u;else if(r==="directories"&&(p+="(",k++),y&&(p+=wl),r!=="exclude"){let A="";T.charCodeAt(0)===42?(A+="([^./]"+a+")?",T=T.substr(1)):T.charCodeAt(0)===63&&(A+="[^./]",T=T.substr(1)),A+=T.replace(o0e,f),A!==T&&(p+=s0e),p+=A}else p+=T.replace(o0e,f);y=!0}for(;k>0;)p+=")?",k--;return p}function l0e(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function HV(e,t,r,a,u){e=$s(e),u=$s(u);let f=xr(u,e);return{includeFilePatterns:_i(zV(r,f,"files"),p=>`^${p}$`),includeFilePattern:pO(r,f,"files"),includeDirectoryPattern:pO(r,f,"directories"),excludePattern:pO(t,f,"exclude"),basePaths:ATt(e,r,a)}}function wx(e,t){return new RegExp(e,t?"":"i")}function lee(e,t,r,a,u,f,p,y,g){e=$s(e),f=$s(f);let x=HV(e,r,a,u,f),k=x.includeFilePatterns&&x.includeFilePatterns.map(q=>wx(q,u)),T=x.includeDirectoryPattern&&wx(x.includeDirectoryPattern,u),A=x.excludePattern&&wx(x.excludePattern,u),P=k?k.map(()=>[]):[[]],R=new Map,W=df(u);for(let q of x.basePaths)z(q,xr(f,q),p);return tc(P);function z(q,G,$){let te=W(g(G));if(R.has(te))return;R.set(te,!0);let{files:ne,directories:_e}=y(q);for(let ce of lc(ne,Ff)){let ae=xr(q,ce),Ce=xr(G,ce);if(!(t&&!vu(ae,t))&&!(A&&A.test(Ce)))if(!k)P[0].push(ae);else{let he=zi(k,ue=>ue.test(Ce));he!==-1&&P[he].push(ae)}}if(!($!==void 0&&($--,$===0)))for(let ce of lc(_e,Ff)){let ae=xr(q,ce),Ce=xr(G,ce);(!T||T.test(Ce))&&(!A||!A.test(Ce))&&z(ae,Ce,$)}}}function ATt(e,t,r){let a=[e];if(t){let u=[];for(let f of t){let p=jp(f)?f:$s(xr(e,f));u.push(PTt(p))}u.sort(TP(!r));for(let f of u)Et(a,p=>!nh(p,f,e,!r))&&a.push(f)}return a}function PTt(e){let t=gr(e,ITt);return t<0?DP(e)?$C(Or(e)):e:e.substring(0,e.lastIndexOf(wl,t))}function UV(e,t){return t||JV(e)||3}function JV(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}}var qV=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],uee=tc(qV),LTt=[...qV,[".json"]],OTt=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],FTt=[[".js",".jsx"],[".mjs"],[".cjs"]],d4=tc(FTt),dee=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],MTt=[...dee,[".json"]],$V=[".d.ts",".d.cts",".d.mts"],kR=[".ts",".cts",".mts",".tsx"],GV=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function mO(e,t){let r=e&&kx(e);if(!t||t.length===0)return r?dee:qV;let a=r?dee:qV,u=tc(a);return[...a,...ro(t,p=>p.scriptKind===7||r&&RTt(p.scriptKind)&&!u.includes(p.extension)?[p.extension]:void 0)]}function wR(e,t){return!e||!iT(e)?t:t===dee?MTt:t===qV?LTt:[...t,[".json"]]}function RTt(e){return e===1||e===2}function $v(e){return Lt(d4,t=>Tl(e,t))}function dN(e){return Lt(uee,t=>Tl(e,t))}function u0e(e){return Lt(kR,t=>Tl(e,t))&&!Jd(e)}var d0e=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(d0e||{});function BTt({imports:e},t=Im($v,dN)){return Le(e,({text:r})=>Nm(r)&&!vu(r,GV)?t(r):void 0)||!1}function f0e(e,t,r,a){let u=$f(r),f=3<=u&&u<=99;if(e==="js"||t===99&&f)return R4(r)&&p()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!R4(r))return a&&BTt(a)?2:0;return p();function p(){let y=!1,g=a?.imports.length?a.imports:a&&N_(a)?jTt(a).map(x=>x.arguments[0]):F;for(let x of g)if(Nm(x.text)){if(f&&t===1&&Vie(a,x,r)===99||vu(x.text,GV))continue;if(dN(x.text))return 3;$v(x.text)&&(y=!0)}return y?2:0}}function jTt(e){let t=0,r;for(let a of e.statements){if(t>3)break;zM(a)?r=Fo(r,a.declarationList.declarations.map(u=>u.initializer)):Ud(a)&&Y_(a.expression,!0)?r=hi(r,a.expression):t++}return r||F}function _0e(e,t,r){if(!e)return!1;let a=mO(t,r);for(let u of tc(wR(t,a)))if(Tl(e,u))return!0;return!1}function A7e(e){let t=e.match(/\//g);return t?t.length:0}function TR(e,t){return Kc(A7e(e),A7e(t))}var p0e=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function A_(e){for(let t of p0e){let r=m0e(e,t);if(r!==void 0)return r}return e}function m0e(e,t){return Tl(e,t)?ER(e,t):void 0}function ER(e,t){return e.substring(0,e.length-t.length)}function Tx(e,t){return Y7(e,t,p0e,!1)}function f4(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function KV(e){return ro(mg(e),t=>f4(t))}function Yg(e){return!(e>=0)}function XV(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Ro(e,".d.")&&Wl(e,".ts")}function hO(e){return XV(e)||e===".json"}function gO(e){let t=Gv(e);return t!==void 0?t:B.fail(`File ${e} has unknown extension.`)}function P7e(e){return Gv(e)!==void 0}function Gv(e){return St(p0e,t=>Tl(e,t))}function yO(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var fee={files:F,directories:F};function _ee(e,t){let r=[];for(let a of e){if(a===t)return t;fs(a)||r.push(a)}return DY(r,a=>a,t)}function pee(e,t){let r=e.indexOf(t);return B.assert(r!==-1),e.slice(r)}function Xs(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),B.assert(e.relatedInformation!==F,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function h0e(e,t){B.assert(e.length!==0);let r=t(e[0]),a=r;for(let u=1;ua&&(a=f)}return{min:r,max:a}}function mee(e){return{pos:yx(e),end:e.end}}function hee(e,t){let r=t.pos-1,a=Math.min(e.text.length,Ea(e.text,t.end)+1);return{pos:r,end:a}}function _4(e,t,r){return L7e(e,t,r,!1)}function g0e(e,t,r){return L7e(e,t,r,!0)}function L7e(e,t,r,a){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!a&&t.noCheck||r.isSourceOfProjectReferenceRedirect(e.fileName)||!vO(e,t)}function vO(e,t){if(e.checkJsDirective&&e.checkJsDirective.enabled===!1)return!1;if(e.scriptKind===3||e.scriptKind===4||e.scriptKind===5)return!0;let a=(e.scriptKind===1||e.scriptKind===2)&&yO(e,t);return W3(e,t.checkJs)||a||e.scriptKind===7}function YV(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&SY(e,t,YV)}function bO(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:let x=e.length-1,k=0;for(;e.charCodeAt(k)===48;)k++;return e.slice(k,x)||"0"}let r=2,a=e.length-1,u=(a-r)*t,f=new Uint16Array((u>>>4)+(u&15?1:0));for(let x=a-1,k=0;x>=r;x--,k+=t){let T=k>>>4,A=e.charCodeAt(x),R=(A<=57?A-48:10+A-(A<=70?65:97))<<(k&15);f[T]|=R;let W=R>>>16;W&&(f[T+1]|=W)}let p="",y=f.length-1,g=!0;for(;g;){let x=0;g=!1;for(let k=y;k>=0;k--){let T=x<<16|f[k],A=T/10|0;f[k]=A,x=T-A*10,A&&!g&&(y=k,g=!0)}p=x+p}return p}function rT({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function y0e(e){if(QV(e,!1))return gee(e)}function gee(e){let t=e.startsWith("-"),r=bO(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function QV(e,t){if(e==="")return!1;let r=Rv(99,!1),a=!0;r.setOnError(()=>a=!1),r.setText(e+"n");let u=r.scan(),f=u===41;f&&(u=r.scan());let p=r.getTokenFlags();return a&&u===10&&r.getTokenEnd()===e.length+1&&!(p&512)&&(!t||e===rT({negative:f,base10Value:bO(r.getTokenValue())}))}function dk(e){return!!(e.flags&33554432)||Xz(e)||VTt(e)||zTt(e)||!(Kg(e)||WTt(e))}function WTt(e){return et(e)&&jf(e.parent)&&e.parent.name===e}function zTt(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Ar(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function VTt(e){if(e.kind!==80)return!1;let t=Ri(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function v0e(e){return pm(e)&&et(e.typeName)}function b0e(e,t=ox){if(e.length<2)return!0;let r=e[0];for(let a=1,u=e.length;ae.includes(t))}function C0e(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:a}=e;return hT(a)?a.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(BP(e))return CE(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Ww(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 355:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return io(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return SM(e)?t.children:void 0;case 286:case 285:return io(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return Cd(e)?t.members:void 0;case 266:return _S(e)?t.members:void 0;case 307:return t.statements}}function ZV(e){if(!e.typeParameters){if(Lt(e.parameters,t=>!Yu(t)))return!0;if(e.kind!==219){let t=mc(e.parameters);if(!(t&&Zw(t)))return!0}}return!1}function CO(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function k0e(e){return e.kind===260&&e.parent.kind===299}function Ex(e){return e.kind===218||e.kind===219}function oT(e){return e.replace(/\$/g,()=>"\\$")}function Kv(e){return(+e).toString()===e}function eH(e,t,r,a,u){let f=u&&e==="new";return!f&&pp(e,t)?U.createIdentifier(e):!a&&!f&&Kv(e)&&+e>=0?U.createNumericLiteral(+e):U.createStringLiteral(e,!!r)}function kO(e){return!!(e.flags&262144&&e.isThisType)}function tH(e){let t=0,r=0,a=0,u=0,f;(x=>{x[x.BeforeNodeModules=0]="BeforeNodeModules",x[x.NodeModules=1]="NodeModules",x[x.Scope=2]="Scope",x[x.PackageContent=3]="PackageContent"})(f||(f={}));let p=0,y=0,g=0;for(;y>=0;)switch(p=y,y=e.indexOf("/",p+1),g){case 0:e.indexOf(Zv,p)===p&&(t=p,r=y,g=1);break;case 1:case 2:g===1&&e.charAt(p+1)==="@"?g=2:(a=y,g=3);break;case 3:e.indexOf(Zv,p)===p?g=1:g=3;break}return u=p,g>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:a,fileNameIndex:u}:void 0}function fN(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 346:case 338:case 340:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function DR(e){return dT(e)||mu(e)||xu(e)||Zu(e)||vf(e)||fN(e)||Hu(e)&&!Uw(e)&&!$y(e)}function IR(e){if(!P3(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===316}function bee(e,t){if(e.length===0)return!1;let r=e.charCodeAt(0);return r===35?e.length>1&&Hy(e.charCodeAt(1),t):Hy(r,t)}function w0e(e){var t;return((t=Nee(e))==null?void 0:t.kind)===0}function iH(e){return Jn(e)&&(e.type&&e.type.kind===316||LP(e).some(IR))}function m4(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||iH(e);case 348:case 341:return IR(e);default:return!1}}function T0e(e){let t=e.kind;return(t===211||t===212)&&DN(e.expression)}function See(e){return Jn(e)&&O_(e)&&dm(e)&&!!bQ(e)}function xee(e){return B.checkDefined(nH(e))}function nH(e){let t=bQ(e);return t&&t.typeExpression&&t.typeExpression.type}function wO(e){return et(e)?e.escapedText:_N(e)}function NR(e){return et(e)?mr(e):TO(e)}function E0e(e){let t=e.kind;return t===80||t===295}function _N(e){return`${e.namespace.escapedText}:${mr(e.name)}`}function TO(e){return`${mr(e.namespace)}:${mr(e.name)}`}function Cee(e){return et(e)?mr(e):TO(e)}function uh(e){return!!(e.flags&8576)}function dh(e){return e.flags&8192?e.escapedName:e.flags&384?Hl(""+e.value):B.fail()}function pN(e){return!!e&&(lr(e)||nl(e)||Yn(e))}function D0e(e){return e===void 0?!1:!!z4(e.attributes)}var UTt=String.prototype.replace;function _E(e,t){return UTt.call(e,"*",t)}function rH(e){return et(e.name)?e.name.escapedText:Hl(e.name.text)}function I0e(e){switch(e.kind){case 168:case 169:case 172:case 171:case 185:case 184:case 179:case 180:case 181:case 174:case 173:case 175:case 176:case 177:case 178:case 183:case 182:case 186:case 187:case 188:case 189:case 192:case 193:case 196:case 190:case 191:case 197:case 198:case 194:case 195:case 203:case 205:case 202:case 328:case 329:case 346:case 338:case 340:case 345:case 344:case 324:case 325:case 326:case 341:case 348:case 317:case 315:case 314:case 312:case 313:case 322:case 318:case 309:case 333:case 335:case 334:case 350:case 343:case 199:case 200:case 262:case 241:case 268:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 260:case 208:case 263:case 264:case 265:case 266:case 267:case 272:case 271:case 278:case 277:case 242:case 259:case 282:return!0}return!1}function wd(e,t=!1,r=!1,a=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:r,hasExternalReferences:a}}function N0e({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function r(u,f){let p=!1,y=!1,g=!1;switch(u=fc(u),u.kind){case 224:let x=r(u.operand,f);if(y=x.resolvedOtherFiles,g=x.hasExternalReferences,typeof x.value=="number")switch(u.operator){case 40:return wd(x.value,p,y,g);case 41:return wd(-x.value,p,y,g);case 55:return wd(~x.value,p,y,g)}break;case 226:{let k=r(u.left,f),T=r(u.right,f);if(p=(k.isSyntacticallyString||T.isSyntacticallyString)&&u.operatorToken.kind===40,y=k.resolvedOtherFiles||T.resolvedOtherFiles,g=k.hasExternalReferences||T.hasExternalReferences,typeof k.value=="number"&&typeof T.value=="number")switch(u.operatorToken.kind){case 52:return wd(k.value|T.value,p,y,g);case 51:return wd(k.value&T.value,p,y,g);case 49:return wd(k.value>>T.value,p,y,g);case 50:return wd(k.value>>>T.value,p,y,g);case 48:return wd(k.value<=2)break;case 174:case 176:case 177:case 178:case 262:if(_e&3&&we==="arguments"){be=r;break e}break;case 218:if(_e&3&&we==="arguments"){be=r;break e}if(_e&16){let Tt=te.name;if(Tt&&we===Tt.escapedText){be=te.symbol;break e}}break;case 170:te.parent&&te.parent.kind===169&&(te=te.parent),te.parent&&(Cd(te.parent)||te.parent.kind===263)&&(te=te.parent);break;case 346:case 338:case 340:case 351:let Fe=ZP(te);Fe&&(te=Fe.parent);break;case 169:Se&&(Se===te.initializer||Se===te.name&&Rs(Se))&&(ke||(ke=te));break;case 208:Se&&(Se===te.initializer||Se===te.name&&Rs(Se))&&lk(te)&&!ke&&(ke=te);break;case 195:if(_e&262144){let Tt=te.typeParameter.name;if(Tt&&we===Tt.escapedText){be=te.typeParameter.symbol;break e}}break;case 281:Se&&Se===te.propertyName&&te.parent.parent.moduleSpecifier&&(te=te.parent.parent.parent);break}G(te,Se)&&(Re=te),Se=te,te=Gh(te)?nV(te)||te.parent:(ph(te)||DH(te))&&ok(te)||te.parent}if(ae&&be&&(!Re||be!==Re.symbol)&&(be.isReferenced|=_e),!be){if(Se&&(B.assertNode(Se,mo),Se.commonJsModuleIndicator&&we==="exports"&&_e&Se.symbol.flags))return Se.symbol;Ce||(be=p(f,we,_e))}if(!be&&ve&&Jn(ve)&&ve.parent&&Y_(ve.parent,!1))return t;if(ce){if(ie&&x(ve,we,ie,be))return;be?T(ve,be,_e,Se,ke,De):k(ve,ne,_e,ce)}return be}function z(te,ne,_e){let ce=Oa(e),ae=ne;if(To(_e)&&ae.body&&te.valueDeclaration&&te.valueDeclaration.pos>=ae.body.pos&&te.valueDeclaration.end<=ae.body.end&&ce>=2){let ue=g(ae);return ue===void 0&&(ue=re(ae.parameters,Ce)||!1,y(ae,ue)),!ue}return!1;function Ce(ue){return he(ue.name)||!!ue.initializer&&he(ue.initializer)}function he(ue){switch(ue.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return he(ue.name);case 172:return cd(ue)?!P:he(ue.name);default:return xQ(ue)||qf(ue)?ce<7:Wa(ue)&&ue.dotDotDotToken&&Om(ue.parent)?ce<4:io(ue)?!1:ws(ue,he)||!1}}}function q(te,ne){return te.kind!==219&&te.kind!==218?aT(te)||(Oc(te)||te.kind===172&&!ia(te))&&(!ne||ne!==te.name):ne&&ne===te.name?!1:te.asteriskToken||Ar(te,1024)?!0:!qw(te)}function G(te,ne){switch(te.kind){case 169:return!!ne&&ne===te.name;case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function $(te,ne){if(te.declarations){for(let _e of te.declarations)if(_e.kind===168&&(Gh(_e.parent)?Kw(_e.parent):_e.parent)===ne)return!(Gh(_e.parent)&&St(_e.parent.parent.tags,Vh))}return!1}}function oH(e,t=!0){switch(B.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 224:return e.operator===41?Z_(e.operand)||t&&NO(e.operand):e.operator===40?Z_(e.operand):!1;default:return!1}}function A0e(e){for(;e.kind===217;)e=e.expression;return e}function P0e(e){switch(B.type(e),e.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:return!0;default:return!1}}function Tee(e){let t=Ri(e,ql);return!!t&&!t.importClause}function L0e(){let e,t,r,a,u;return{createBaseSourceFileNode:f,createBaseIdentifierNode:p,createBasePrivateIdentifierNode:y,createBaseTokenNode:g,createBaseNode:x};function f(k){return new(u||(u=gf.getSourceFileConstructor()))(k,-1,-1)}function p(k){return new(r||(r=gf.getIdentifierConstructor()))(k,-1,-1)}function y(k){return new(a||(a=gf.getPrivateIdentifierConstructor()))(k,-1,-1)}function g(k){return new(t||(t=gf.getTokenConstructor()))(k,-1,-1)}function x(k){return new(e||(e=gf.getNodeConstructor()))(k,-1,-1)}}function O0e(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:a,getParenthesizeRightSideOfBinaryForOperator:u,parenthesizeLeftSideOfBinary:x,parenthesizeRightSideOfBinary:k,parenthesizeExpressionOfComputedPropertyName:T,parenthesizeConditionOfConditionalExpression:A,parenthesizeBranchOfConditionalExpression:P,parenthesizeExpressionOfExportDefault:R,parenthesizeExpressionOfNew:W,parenthesizeLeftSideOfAccess:z,parenthesizeOperandOfPostfixUnary:q,parenthesizeOperandOfPrefixUnary:G,parenthesizeExpressionsOfCommaDelimitedList:$,parenthesizeExpressionForDisallowedComma:te,parenthesizeExpressionOfExpressionStatement:ne,parenthesizeConciseBodyOfArrowFunction:_e,parenthesizeCheckTypeOfConditionalType:ce,parenthesizeExtendsTypeOfConditionalType:ae,parenthesizeConstituentTypesOfUnionType:he,parenthesizeConstituentTypeOfUnionType:Ce,parenthesizeConstituentTypesOfIntersectionType:Ee,parenthesizeConstituentTypeOfIntersectionType:ue,parenthesizeOperandOfTypeOperator:ve,parenthesizeOperandOfReadonlyTypeOperator:be,parenthesizeNonArrayTypeOfPostfixType:Se,parenthesizeElementTypesOfTupleType:Re,parenthesizeElementTypeOfTupleType:ie,parenthesizeTypeOfOptionalType:De,parenthesizeTypeArguments:Ae,parenthesizeLeadingTypeArgument:Oe};function a(Fe){t||(t=new Map);let Tt=t.get(Fe);return Tt||(Tt=Be=>x(Fe,Be),t.set(Fe,Tt)),Tt}function u(Fe){r||(r=new Map);let Tt=r.get(Fe);return Tt||(Tt=Be=>k(Fe,void 0,Be),r.set(Fe,Tt)),Tt}function f(Fe,Tt,Be,Ge){let Ke=sR(226,Fe),Ue=DZ(226,Fe),gt=xg(Tt);if(!Be&&Tt.kind===219&&Ke>3)return!0;let xt=iO(gt);switch(Kc(xt,Ke)){case-1:return!(!Be&&Ue===1&&Tt.kind===229);case 1:return!1;case 0:if(Be)return Ue===1;if(Yn(gt)&>.operatorToken.kind===Fe){if(p(Fe))return!1;if(Fe===40){let At=Ge?y(Ge):0;if(L3(At)&&At===y(gt))return!1}}return EZ(gt)===0}}function p(Fe){return Fe===42||Fe===52||Fe===51||Fe===53||Fe===28}function y(Fe){if(Fe=xg(Fe),L3(Fe.kind))return Fe.kind;if(Fe.kind===226&&Fe.operatorToken.kind===40){if(Fe.cachedLiteralKind!==void 0)return Fe.cachedLiteralKind;let Tt=y(Fe.left),Be=L3(Tt)&&Tt===y(Fe.right)?Tt:0;return Fe.cachedLiteralKind=Be,Be}return 0}function g(Fe,Tt,Be,Ge){return xg(Tt).kind===217?Tt:f(Fe,Tt,Be,Ge)?e.createParenthesizedExpression(Tt):Tt}function x(Fe,Tt){return g(Fe,Tt,!0)}function k(Fe,Tt,Be){return g(Fe,Be,!1,Tt)}function T(Fe){return UO(Fe)?e.createParenthesizedExpression(Fe):Fe}function A(Fe){let Tt=sR(227,58),Be=xg(Fe),Ge=iO(Be);return Kc(Ge,Tt)!==1?e.createParenthesizedExpression(Fe):Fe}function P(Fe){let Tt=xg(Fe);return UO(Tt)?e.createParenthesizedExpression(Fe):Fe}function R(Fe){let Tt=xg(Fe),Be=UO(Tt);if(!Be)switch(l4(Tt,!1).kind){case 231:case 218:Be=!0}return Be?e.createParenthesizedExpression(Fe):Fe}function W(Fe){let Tt=l4(Fe,!0);switch(Tt.kind){case 213:return e.createParenthesizedExpression(Fe);case 214:return Tt.arguments?Fe:e.createParenthesizedExpression(Fe)}return z(Fe)}function z(Fe,Tt){let Be=xg(Fe);return X_(Be)&&(Be.kind!==214||Be.arguments)&&(Tt||!qf(Be))?Fe:Ft(e.createParenthesizedExpression(Fe),Fe)}function q(Fe){return X_(Fe)?Fe:Ft(e.createParenthesizedExpression(Fe),Fe)}function G(Fe){return PQ(Fe)?Fe:Ft(e.createParenthesizedExpression(Fe),Fe)}function $(Fe){let Tt=Uo(Fe,te);return Ft(e.createNodeArray(Tt,Fe.hasTrailingComma),Fe)}function te(Fe){let Tt=xg(Fe),Be=iO(Tt),Ge=sR(226,28);return Be>Ge?Fe:Ft(e.createParenthesizedExpression(Fe),Fe)}function ne(Fe){let Tt=xg(Fe);if(Gs(Tt)){let Ge=Tt.expression,Ke=xg(Ge).kind;if(Ke===218||Ke===219){let Ue=e.updateCallExpression(Tt,Ft(e.createParenthesizedExpression(Ge),Ge),Tt.typeArguments,Tt.arguments);return e.restoreOuterExpressions(Fe,Ue,8)}}let Be=l4(Tt,!1).kind;return Be===210||Be===218?Ft(e.createParenthesizedExpression(Fe),Fe):Fe}function _e(Fe){return!Ds(Fe)&&(UO(Fe)||l4(Fe,!1).kind===210)?Ft(e.createParenthesizedExpression(Fe),Fe):Fe}function ce(Fe){switch(Fe.kind){case 184:case 185:case 194:return e.createParenthesizedType(Fe)}return Fe}function ae(Fe){switch(Fe.kind){case 194:return e.createParenthesizedType(Fe)}return Fe}function Ce(Fe){switch(Fe.kind){case 192:case 193:return e.createParenthesizedType(Fe)}return ce(Fe)}function he(Fe){return e.createNodeArray(Uo(Fe,Ce))}function ue(Fe){switch(Fe.kind){case 192:case 193:return e.createParenthesizedType(Fe)}return Ce(Fe)}function Ee(Fe){return e.createNodeArray(Uo(Fe,ue))}function ve(Fe){switch(Fe.kind){case 193:return e.createParenthesizedType(Fe)}return ue(Fe)}function be(Fe){switch(Fe.kind){case 198:return e.createParenthesizedType(Fe)}return ve(Fe)}function Se(Fe){switch(Fe.kind){case 195:case 198:case 186:return e.createParenthesizedType(Fe)}return ve(Fe)}function Re(Fe){return e.createNodeArray(Uo(Fe,ie))}function ie(Fe){return ke(Fe)?e.createParenthesizedType(Fe):Fe}function ke(Fe){return C4(Fe)?Fe.postfix:y4(Fe)||Qy(Fe)||g4(Fe)||_k(Fe)?ke(Fe.type):cT(Fe)?ke(Fe.falseType):Nx(Fe)||wN(Fe)?ke(pa(Fe.types)):hE(Fe)?!!Fe.typeParameter.constraint&&ke(Fe.typeParameter.constraint):!1}function De(Fe){return ke(Fe)?e.createParenthesizedType(Fe):Se(Fe)}function Oe(Fe){return Yme(Fe)&&Fe.typeParameters?e.createParenthesizedType(Fe):Fe}function we(Fe,Tt){return Tt===0?Oe(Fe):Fe}function Ae(Fe){if(Lt(Fe))return e.createNodeArray(Uo(Fe,we))}}var F0e={getParenthesizeLeftSideOfBinaryForOperator:e=>Gc,getParenthesizeRightSideOfBinaryForOperator:e=>Gc,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Gc,parenthesizeConditionOfConditionalExpression:Gc,parenthesizeBranchOfConditionalExpression:Gc,parenthesizeExpressionOfExportDefault:Gc,parenthesizeExpressionOfNew:e=>ea(e,X_),parenthesizeLeftSideOfAccess:e=>ea(e,X_),parenthesizeOperandOfPostfixUnary:e=>ea(e,X_),parenthesizeOperandOfPrefixUnary:e=>ea(e,PQ),parenthesizeExpressionsOfCommaDelimitedList:e=>ea(e,jw),parenthesizeExpressionForDisallowedComma:Gc,parenthesizeExpressionOfExpressionStatement:Gc,parenthesizeConciseBodyOfArrowFunction:Gc,parenthesizeCheckTypeOfConditionalType:Gc,parenthesizeExtendsTypeOfConditionalType:Gc,parenthesizeConstituentTypesOfUnionType:e=>ea(e,jw),parenthesizeConstituentTypeOfUnionType:Gc,parenthesizeConstituentTypesOfIntersectionType:e=>ea(e,jw),parenthesizeConstituentTypeOfIntersectionType:Gc,parenthesizeOperandOfTypeOperator:Gc,parenthesizeOperandOfReadonlyTypeOperator:Gc,parenthesizeNonArrayTypeOfPostfixType:Gc,parenthesizeElementTypesOfTupleType:e=>ea(e,jw),parenthesizeElementTypeOfTupleType:Gc,parenthesizeTypeOfOptionalType:Gc,parenthesizeTypeArguments:e=>e&&ea(e,jw),parenthesizeLeadingTypeArgument:Gc};function M0e(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:a,convertToArrayAssignmentElement:u,convertToObjectAssignmentElement:f,convertToAssignmentPattern:p,convertToObjectAssignmentPattern:y,convertToArrayAssignmentPattern:g,convertToAssignmentElementTarget:x};function t(k,T){if(Ds(k))return k;let A=e.createReturnStatement(k);Ft(A,k);let P=e.createBlock([A],T);return Ft(P,k),P}function r(k){var T;if(!k.body)return B.fail("Cannot convert a FunctionDeclaration without a body");let A=e.createFunctionExpression((T=Bw(k))==null?void 0:T.filter(P=>!bN(P)&&!gH(P)),k.asteriskToken,k.name,k.typeParameters,k.parameters,k.type,k.body);return cr(A,k),Ft(A,k),EO(k)&&cH(A,!0),A}function a(k){var T;let A=e.createClassExpression((T=k.modifiers)==null?void 0:T.filter(P=>!bN(P)&&!gH(P)),k.name,k.typeParameters,k.heritageClauses,k.members);return cr(A,k),Ft(A,k),EO(k)&&cH(A,!0),A}function u(k){if(Wa(k)){if(k.dotDotDotToken)return B.assertNode(k.name,et),cr(Ft(e.createSpreadElement(k.name),k),k);let T=x(k.name);return k.initializer?cr(Ft(e.createAssignment(T,k.initializer),k),k):T}return ea(k,Mt)}function f(k){if(Wa(k)){if(k.dotDotDotToken)return B.assertNode(k.name,et),cr(Ft(e.createSpreadAssignment(k.name),k),k);if(k.propertyName){let T=x(k.name);return cr(Ft(e.createPropertyAssignment(k.propertyName,k.initializer?e.createAssignment(T,k.initializer):T),k),k)}return B.assertNode(k.name,et),cr(Ft(e.createShorthandPropertyAssignment(k.name,k.initializer),k),k)}return ea(k,G1)}function p(k){switch(k.kind){case 207:case 209:return g(k);case 206:case 210:return y(k)}}function y(k){return Om(k)?cr(Ft(e.createObjectLiteralExpression(_i(k.elements,f)),k),k):ea(k,ba)}function g(k){return fS(k)?cr(Ft(e.createArrayLiteralExpression(_i(k.elements,u)),k),k):ea(k,yf)}function x(k){return Rs(k)?p(k):ea(k,Mt)}}var R0e={convertToFunctionBlock:la,convertToFunctionExpression:la,convertToClassExpression:la,convertToArrayAssignmentElement:la,convertToObjectAssignmentElement:la,convertToAssignmentPattern:la,convertToObjectAssignmentPattern:la,convertToArrayAssignmentPattern:la,convertToAssignmentElementTarget:la},Eee=0,B0e=(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))(B0e||{}),O7e=[];function F7e(e){O7e.push(e)}function PR(e,t){let r=e&8?Gc:cr,a=l_(()=>e&1?F0e:O0e(q)),u=l_(()=>e&2?R0e:M0e(q)),f=B0(I=>(V,Z)=>Tn(V,I,Z)),p=B0(I=>V=>wt(I,V)),y=B0(I=>V=>di(V,I)),g=B0(I=>()=>ys(I)),x=B0(I=>V=>fA(I,V)),k=B0(I=>(V,Z)=>qn(I,V,Z)),T=B0(I=>(V,Z)=>PS(I,V,Z)),A=B0(I=>(V,Z)=>Uk(I,V,Z)),P=B0(I=>(V,Z)=>n_(I,V,Z)),R=B0(I=>(V,Z,xe)=>Tp(I,V,Z,xe)),W=B0(I=>(V,Z,xe)=>_A(I,V,Z,xe)),z=B0(I=>(V,Z,xe,st)=>my(I,V,Z,xe,st)),q={get parenthesizer(){return a()},get converters(){return u()},baseFactory:t,flags:e,createNodeArray:G,createNumericLiteral:_e,createBigIntLiteral:ce,createStringLiteral:Ce,createStringLiteralFromNode:he,createRegularExpressionLiteral:ue,createLiteralLikeNode:Ee,createIdentifier:Se,createTempVariable:Re,createLoopVariable:ie,createUniqueName:ke,getGeneratedNameForNode:De,createPrivateIdentifier:we,createUniquePrivateName:Fe,getGeneratedPrivateNameForNode:Tt,createToken:Ge,createSuper:Ke,createThis:Ue,createNull:gt,createTrue:xt,createFalse:nt,createModifier:At,createModifiersFromModifierFlags:ci,createQualifiedName:Fi,updateQualifiedName:bn,createComputedPropertyName:an,updateComputedPropertyName:ni,createTypeParameterDeclaration:Ci,updateTypeParameterDeclaration:Sn,createParameterDeclaration:nn,updateParameterDeclaration:Br,createDecorator:Gr,updateDecorator:is,createPropertySignature:Ao,updatePropertySignature:Rr,createPropertyDeclaration:Eo,updatePropertyDeclaration:it,createMethodSignature:si,updateMethodSignature:dn,createMethodDeclaration:Qn,updateMethodDeclaration:Jr,createConstructorDeclaration:Ai,updateConstructorDeclaration:Ha,createGetAccessorDeclaration:Jt,updateGetAccessorDeclaration:ye,createSetAccessorDeclaration:ge,updateSetAccessorDeclaration:He,createCallSignature:bt,updateCallSignature:je,createConstructSignature:It,updateConstructSignature:mt,createIndexSignature:$t,updateIndexSignature:_t,createClassStaticBlockDeclaration:Do,updateClassStaticBlockDeclaration:na,createTemplateLiteralTypeSpan:yi,updateTemplateLiteralTypeSpan:Ii,createKeywordTypeNode:nr,createTypePredicateNode:Y,updateTypePredicateNode:$e,createTypeReferenceNode:Bt,updateTypeReferenceNode:se,createFunctionTypeNode:rt,updateFunctionTypeNode:fe,createConstructorTypeNode:tt,updateConstructorTypeNode:In,createTypeQueryNode:Dt,updateTypeQueryNode:Nt,createTypeLiteralNode:ti,updateTypeLiteralNode:li,createArrayTypeNode:wi,updateArrayTypeNode:Si,createTupleTypeNode:Rn,updateTupleTypeNode:gi,createNamedTupleMember:Xi,updateNamedTupleMember:Li,createOptionalTypeNode:Vi,updateOptionalTypeNode:ai,createRestTypeNode:Cs,updateRestTypeNode:Ss,createUnionTypeNode:Zl,updateUnionTypeNode:Uu,createIntersectionTypeNode:Fc,updateIntersectionTypeNode:fo,createConditionalTypeNode:ka,updateConditionalTypeNode:tf,createInferTypeNode:Ts,updateInferTypeNode:e_,createImportTypeNode:nc,updateImportTypeNode:rc,createParenthesizedType:Bo,updateParenthesizedType:Ua,createThisTypeNode:pi,createTypeOperatorNode:Ac,updateTypeOperatorNode:Wf,createIndexedAccessTypeNode:nd,updateIndexedAccessTypeNode:bp,createMappedTypeNode:Fl,updateMappedTypeNode:$l,createLiteralTypeNode:H,updateLiteralTypeNode:Ze,createTemplateLiteralType:id,updateTemplateLiteralType:Ko,createObjectBindingPattern:Pt,updateObjectBindingPattern:ri,createArrayBindingPattern:un,updateArrayBindingPattern:Nr,createBindingElement:Bi,updateBindingElement:hr,createArrayLiteralExpression:Pr,updateArrayLiteralExpression:oo,createObjectLiteralExpression:Ya,updateObjectLiteralExpression:ml,createPropertyAccessExpression:e&4?(I,V)=>Hn(Pu(I,V),262144):Pu,updatePropertyAccessExpression:ku,createPropertyAccessChain:e&4?(I,V,Z)=>Hn(hl(I,V,Z),262144):hl,updatePropertyAccessChain:Lu,createElementAccessExpression:Ou,updateElementAccessExpression:_d,createElementAccessChain:gh,updateElementAccessChain:qe,createCallExpression:hn,updateCallExpression:Jo,createCallChain:za,updateCallChain:Ja,createNewExpression:wu,updateNewExpression:Nd,createTaggedTemplateExpression:Mc,updateTaggedTemplateExpression:gc,createTypeAssertion:Ju,updateTypeAssertion:Zp,createParenthesizedExpression:Qh,updateParenthesizedExpression:Sp,createFunctionExpression:hm,updateFunctionExpression:Wm,createArrowFunction:yh,updateArrowFunction:t1,createDeleteExpression:Zh,updateDeleteExpression:np,createTypeOfExpression:Ad,updateTypeOfExpression:_b,createVoidExpression:j_,updateVoidExpression:i1,createAwaitExpression:zm,updateAwaitExpression:me,createPrefixUnaryExpression:wt,updatePrefixUnaryExpression:oi,createPostfixUnaryExpression:di,updatePostfixUnaryExpression:Zi,createBinaryExpression:Tn,updateBinaryExpression:qr,createConditionalExpression:Q,updateConditionalExpression:ze,createTemplateExpression:Ut,updateTemplateExpression:gn,createTemplateHead:Ra,createTemplateMiddle:Il,createTemplateTail:vh,createNoSubstitutionTemplateLiteral:Tg,createTemplateLiteralLikeNode:Qa,createYieldExpression:a0,updateYieldExpression:n1,createSpreadElement:CS,updateSpreadElement:r1,createClassExpression:bh,updateClassExpression:Sh,createOmittedExpression:ul,createExpressionWithTypeArguments:gm,updateExpressionWithTypeArguments:xp,createAsExpression:c0,updateAsExpression:o1,createNonNullExpression:eg,updateNonNullExpression:iv,createSatisfiesExpression:pb,updateSatisfiesExpression:kS,createNonNullChain:tg,updateNonNullChain:Mk,createMetaProperty:Vm,updateMetaProperty:ig,createTemplateSpan:mb,updateTemplateSpan:Rk,createSemicolonClassElement:nv,createBlock:s1,updateBlock:Bk,createVariableStatement:Vx,updateVariableStatement:Xe,createEmptyStatement:dt,createExpressionStatement:qt,updateExpressionStatement:bi,createIfStatement:qi,updateIfStatement:En,createDoStatement:tn,updateDoStatement:dr,createWhileStatement:so,updateWhileStatement:Gn,createForStatement:uo,updateForStatement:Kn,createForInStatement:Es,updateForInStatement:Jc,createForOfStatement:g_,updateForOfStatement:ng,createContinueStatement:y_,updateContinueStatement:rg,createBreakStatement:v_,updateBreakStatement:LT,createReturnStatement:Hx,updateReturnStatement:a1,createWithStatement:hb,updateWithStatement:wS,createSwitchStatement:Eg,updateSwitchStatement:TS,createLabeledStatement:Ux,updateLabeledStatement:Jx,createThrowStatement:qx,updateThrowStatement:zE,createTryStatement:jk,updateTryStatement:Ga,createDebuggerStatement:OT,createVariableDeclaration:VE,updateVariableDeclaration:Wk,createVariableDeclarationList:c1,updateVariableDeclarationList:l1,createFunctionDeclaration:Hm,updateFunctionDeclaration:em,createClassDeclaration:Cp,updateClassDeclaration:$x,createInterfaceDeclaration:g6,updateInterfaceDeclaration:Md,createTypeAliasDeclaration:l0,updateTypeAliasDeclaration:ES,createEnumDeclaration:rv,updateEnumDeclaration:aA,createModuleDeclaration:zf,updateModuleDeclaration:gb,createModuleBlock:kp,updateModuleBlock:zk,createCaseBlock:fy,updateCaseBlock:ot,createNamespaceExportDeclaration:u0,updateNamespaceExportDeclaration:_y,createImportEqualsDeclaration:cA,updateImportEqualsDeclaration:yb,createImportDeclaration:DS,updateImportDeclaration:vb,createImportClause:lA,updateImportClause:Aa,createAssertClause:Dg,updateAssertClause:IS,createAssertEntry:Hk,updateAssertEntry:ym,createImportTypeAssertionContainer:u1,updateImportTypeAssertionContainer:d0,createImportAttributes:ov,updateImportAttributes:uA,createImportAttribute:Gx,updateImportAttribute:og,createNamespaceImport:dA,updateNamespaceImport:NS,createNamespaceExport:Po,updateNamespaceExport:rr,createNamedImports:qd,updateNamedImports:bb,createImportSpecifier:AS,updateImportSpecifier:HE,createExportAssignment:Kx,updateExportAssignment:UE,createExportDeclaration:sl,updateExportDeclaration:Sb,createNamedExports:xh,updateNamedExports:MT,createExportSpecifier:JE,updateExportSpecifier:y6,createMissingDeclaration:v6,createExternalModuleReference:or,updateExternalModuleReference:Vf,get createJSDocAllType(){return g(312)},get createJSDocUnknownType(){return g(313)},get createJSDocNonNullableType(){return T(315)},get updateJSDocNonNullableType(){return A(315)},get createJSDocNullableType(){return T(314)},get updateJSDocNullableType(){return A(314)},get createJSDocOptionalType(){return x(316)},get updateJSDocOptionalType(){return k(316)},get createJSDocVariadicType(){return x(318)},get updateJSDocVariadicType(){return k(318)},get createJSDocNamepathType(){return x(319)},get updateJSDocNamepathType(){return k(319)},createJSDocFunctionType:b6,updateJSDocFunctionType:qE,createJSDocTypeLiteral:t_,updateJSDocTypeLiteral:i_,createJSDocTypeExpression:vm,updateJSDocTypeExpression:Jk,createJSDocSignature:$E,updateJSDocSignature:d1,createJSDocTemplateTag:LS,updateJSDocTemplateTag:OS,createJSDocTypedefTag:RT,updateJSDocTypedefTag:GE,createJSDocParameterTag:Xx,updateJSDocParameterTag:KE,createJSDocPropertyTag:XE,updateJSDocPropertyTag:YE,createJSDocCallbackTag:f0,updateJSDocCallbackTag:S6,createJSDocOverloadTag:qk,updateJSDocOverloadTag:Yx,createJSDocAugmentsTag:f1,updateJSDocAugmentsTag:xb,createJSDocImplementsTag:Ig,updateJSDocImplementsTag:x6,createJSDocSeeTag:FS,updateJSDocSeeTag:QE,createJSDocImportTag:Ml,updateJSDocImportTag:C6,createJSDocNameReference:Rd,updateJSDocNameReference:ZE,createJSDocMemberName:sv,updateJSDocMemberName:eD,createJSDocLink:$k,updateJSDocLink:Cb,createJSDocLinkCode:Qx,updateJSDocLinkCode:BT,createJSDocLinkPlain:Fu,updateJSDocLinkPlain:xf,get createJSDocTypeTag(){return W(344)},get updateJSDocTypeTag(){return z(344)},get createJSDocReturnTag(){return W(342)},get updateJSDocReturnTag(){return z(342)},get createJSDocThisTag(){return W(343)},get updateJSDocThisTag(){return z(343)},get createJSDocAuthorTag(){return P(330)},get updateJSDocAuthorTag(){return R(330)},get createJSDocClassTag(){return P(332)},get updateJSDocClassTag(){return R(332)},get createJSDocPublicTag(){return P(333)},get updateJSDocPublicTag(){return R(333)},get createJSDocPrivateTag(){return P(334)},get updateJSDocPrivateTag(){return R(334)},get createJSDocProtectedTag(){return P(335)},get updateJSDocProtectedTag(){return R(335)},get createJSDocReadonlyTag(){return P(336)},get updateJSDocReadonlyTag(){return R(336)},get createJSDocOverrideTag(){return P(337)},get updateJSDocOverrideTag(){return R(337)},get createJSDocDeprecatedTag(){return P(331)},get updateJSDocDeprecatedTag(){return R(331)},get createJSDocThrowsTag(){return W(349)},get updateJSDocThrowsTag(){return z(349)},get createJSDocSatisfiesTag(){return W(350)},get updateJSDocSatisfiesTag(){return z(350)},createJSDocEnumTag:tD,updateJSDocEnumTag:q8,createJSDocUnknownTag:pA,updateJSDocUnknownTag:MS,createJSDocText:mA,updateJSDocText:Zx,createJSDocComment:iD,updateJSDocComment:rp,createJsxElement:jT,updateJsxElement:hA,createJsxSelfClosingElement:WT,updateJsxSelfClosingElement:Ep,createJsxOpeningElement:gA,updateJsxOpeningElement:eC,createJsxClosingElement:Jm,updateJsxClosingElement:nD,createJsxFragment:tC,createJsxText:zT,updateJsxText:rD,createJsxOpeningFragment:yA,createJsxJsxClosingFragment:RS,updateJsxFragment:$8,createJsxAttribute:W_,updateJsxAttribute:_1,createJsxAttributes:p1,updateJsxAttributes:k6,createJsxSpreadAttribute:cc,updateJsxSpreadAttribute:sr,createJsxExpression:z_,updateJsxExpression:bm,createJsxNamespacedName:VT,updateJsxNamespacedName:w6,createCaseClause:vA,updateCaseClause:Gk,createDefaultClause:HT,updateDefaultClause:UT,createHeritageClause:sg,updateHeritageClause:im,createCatchClause:nm,updateCatchClause:_0,createPropertyAssignment:ag,updatePropertyAssignment:oD,createShorthandPropertyAssignment:bA,updateShorthandPropertyAssignment:M,createSpreadAssignment:Rt,updateSpreadAssignment:Ei,createEnumMember:Xr,updateEnumMember:jo,createSourceFile:Zo,updateSourceFile:BS,createRedirectedSourceFile:Wo,createBundle:rm,updateBundle:JT,createSyntheticExpression:Kk,createSyntaxList:qT,createNotEmittedStatement:SA,createPartiallyEmittedExpression:sD,updatePartiallyEmittedExpression:m0,createCommaListExpression:jS,updateCommaListExpression:xA,createSyntheticReferenceExpression:iC,updateSyntheticReferenceExpression:G8,cloneNode:Dn,get createComma(){return f(28)},get createAssignment(){return f(64)},get createLogicalOr(){return f(57)},get createLogicalAnd(){return f(56)},get createBitwiseOr(){return f(52)},get createBitwiseXor(){return f(53)},get createBitwiseAnd(){return f(51)},get createStrictEquality(){return f(37)},get createStrictInequality(){return f(38)},get createEquality(){return f(35)},get createInequality(){return f(36)},get createLessThan(){return f(30)},get createLessThanEquals(){return f(33)},get createGreaterThan(){return f(32)},get createGreaterThanEquals(){return f(34)},get createLeftShift(){return f(48)},get createRightShift(){return f(49)},get createUnsignedRightShift(){return f(50)},get createAdd(){return f(40)},get createSubtract(){return f(41)},get createMultiply(){return f(42)},get createDivide(){return f(44)},get createModulo(){return f(45)},get createExponent(){return f(43)},get createPrefixPlus(){return p(40)},get createPrefixMinus(){return p(41)},get createPrefixIncrement(){return p(46)},get createPrefixDecrement(){return p(47)},get createBitwiseNot(){return p(55)},get createLogicalNot(){return p(54)},get createPostfixIncrement(){return y(46)},get createPostfixDecrement(){return y(47)},createImmediatelyInvokedFunctionExpression:K8,createImmediatelyInvokedArrowFunction:T6,createVoidZero:nC,createExportDefault:E6,createExternalModuleExport:G9,createTypeCheck:X8,createIsNotTypeCheck:Jq,createMethodCall:hy,createGlobalMethodCall:aD,createFunctionBindCall:qq,createFunctionCallCall:Y8,createFunctionApplyCall:$q,createArraySliceCall:cD,createArrayConcatCall:K9,createObjectDefinePropertyCall:rC,createObjectGetOwnPropertyDescriptorCall:Ng,createReflectGetCall:D6,createReflectSetCall:av,createPropertyDescriptor:X9,createCallBinding:pc,createAssignmentTargetWrapper:le,inlineExpressions:We,getInternalName:zt,getLocalName:fi,getExportName:Ki,getDeclarationName:Sr,getNamespaceMemberName:Co,getExternalModuleOrNamespaceExportName:eo,restoreOuterExpressions:Y9,restoreEnclosingLabel:Mu,createUseStrictPrologue:Dc,copyPrologue:to,copyStandardPrologue:Ic,copyCustomPrologue:Za,ensureUseStrict:Ch,liftToBlock:md,mergeLexicalEnvironment:kb,replaceModifiers:h1,replaceDecoratorsAndModifiers:sC,replacePropertyName:Gq};return re(O7e,I=>I(q)),q;function G(I,V){if(I===void 0||I===F)I=[];else if(jw(I)){if(V===void 0||I.hasTrailingComma===V)return I.transformFlags===void 0&&R7e(I),B.attachNodeArrayDebugInfo(I),I;let st=I.slice();return st.pos=I.pos,st.end=I.end,st.hasTrailingComma=V,st.transformFlags=I.transformFlags,B.attachNodeArrayDebugInfo(st),st}let Z=I.length,xe=Z>=1&&Z<=4?I.slice():I;return xe.pos=-1,xe.end=-1,xe.hasTrailingComma=!!V,xe.transformFlags=0,R7e(xe),B.attachNodeArrayDebugInfo(xe),xe}function $(I){return t.createBaseNode(I)}function te(I){let V=$(I);return V.symbol=void 0,V.localSymbol=void 0,V}function ne(I,V){return I!==V&&(I.typeArguments=V.typeArguments),Un(I,V)}function _e(I,V=0){let Z=typeof I=="number"?I+"":I;B.assert(Z.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let xe=te(9);return xe.text=Z,xe.numericLiteralFlags=V,V&384&&(xe.transformFlags|=1024),xe}function ce(I){let V=Be(10);return V.text=typeof I=="string"?I:rT(I)+"n",V.transformFlags|=32,V}function ae(I,V){let Z=te(11);return Z.text=I,Z.singleQuote=V,Z}function Ce(I,V,Z){let xe=ae(I,V);return xe.hasExtendedUnicodeEscape=Z,Z&&(xe.transformFlags|=1024),xe}function he(I){let V=ae(Hh(I),void 0);return V.textSourceNode=I,V}function ue(I){let V=Be(14);return V.text=I,V}function Ee(I,V){switch(I){case 9:return _e(V,0);case 10:return ce(V);case 11:return Ce(V,void 0);case 12:return zT(V,!1);case 13:return zT(V,!0);case 14:return ue(V);case 15:return Qa(I,V,void 0,0)}}function ve(I){let V=t.createBaseIdentifierNode(80);return V.escapedText=I,V.jsDoc=void 0,V.flowNode=void 0,V.symbol=void 0,V}function be(I,V,Z,xe){let st=ve(Hl(I));return RR(st,{flags:V,id:Eee,prefix:Z,suffix:xe}),Eee++,st}function Se(I,V,Z){V===void 0&&I&&(V=K2(I)),V===80&&(V=void 0);let xe=ve(Hl(I));return Z&&(xe.flags|=256),xe.escapedText==="await"&&(xe.transformFlags|=67108864),xe.flags&256&&(xe.transformFlags|=1024),xe}function Re(I,V,Z,xe){let st=1;V&&(st|=8);let ui=be("",st,Z,xe);return I&&I(ui),ui}function ie(I){let V=2;return I&&(V|=8),be("",V,void 0,void 0)}function ke(I,V=0,Z,xe){return B.assert(!(V&7),"Argument out of range: flags"),B.assert((V&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),be(I,3|V,Z,xe)}function De(I,V=0,Z,xe){B.assert(!(V&7),"Argument out of range: flags");let st=I?Bv(I)?bk(!1,Z,I,xe,mr):`generated@${ac(I)}`:"";(Z||xe)&&(V|=16);let ui=be(st,4|V,Z,xe);return ui.original=I,ui}function Oe(I){let V=t.createBasePrivateIdentifierNode(81);return V.escapedText=I,V.transformFlags|=16777216,V}function we(I){return Ro(I,"#")||B.fail("First character of private identifier must be #: "+I),Oe(Hl(I))}function Ae(I,V,Z,xe){let st=Oe(Hl(I));return RR(st,{flags:V,id:Eee,prefix:Z,suffix:xe}),Eee++,st}function Fe(I,V,Z){I&&!Ro(I,"#")&&B.fail("First character of private identifier must be #: "+I);let xe=8|(I?3:1);return Ae(I??"",xe,V,Z)}function Tt(I,V,Z){let xe=Bv(I)?bk(!0,V,I,Z,mr):`#generated@${ac(I)}`,ui=Ae(xe,4|(V||Z?16:0),V,Z);return ui.original=I,ui}function Be(I){return t.createBaseTokenNode(I)}function Ge(I){B.assert(I>=0&&I<=165,"Invalid token"),B.assert(I<=15||I>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),B.assert(I<=9||I>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),B.assert(I!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let V=Be(I),Z=0;switch(I){case 134:Z=384;break;case 160:Z=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:Z=1;break;case 108:Z=134218752,V.flowNode=void 0;break;case 126:Z=1024;break;case 129:Z=16777216;break;case 110:Z=16384,V.flowNode=void 0;break}return Z&&(V.transformFlags|=Z),V}function Ke(){return Ge(108)}function Ue(){return Ge(110)}function gt(){return Ge(106)}function xt(){return Ge(112)}function nt(){return Ge(97)}function At(I){return Ge(I)}function ci(I){let V=[];return I&32&&V.push(At(95)),I&128&&V.push(At(138)),I&2048&&V.push(At(90)),I&4096&&V.push(At(87)),I&1&&V.push(At(125)),I&2&&V.push(At(123)),I&4&&V.push(At(124)),I&64&&V.push(At(128)),I&256&&V.push(At(126)),I&16&&V.push(At(164)),I&8&&V.push(At(148)),I&512&&V.push(At(129)),I&1024&&V.push(At(134)),I&8192&&V.push(At(103)),I&16384&&V.push(At(147)),V.length?V:void 0}function Fi(I,V){let Z=$(166);return Z.left=I,Z.right=rd(V),Z.transformFlags|=ir(Z.left)|LR(Z.right),Z.flowNode=void 0,Z}function bn(I,V,Z){return I.left!==V||I.right!==Z?Un(Fi(V,Z),I):I}function an(I){let V=$(167);return V.expression=a().parenthesizeExpressionOfComputedPropertyName(I),V.transformFlags|=ir(V.expression)|1024|131072,V}function ni(I,V){return I.expression!==V?Un(an(V),I):I}function Ci(I,V,Z,xe){let st=te(168);return st.modifiers=oc(I),st.name=rd(V),st.constraint=Z,st.default=xe,st.transformFlags=1,st.expression=void 0,st.jsDoc=void 0,st}function Sn(I,V,Z,xe,st){return I.modifiers!==V||I.name!==Z||I.constraint!==xe||I.default!==st?Un(Ci(V,Z,xe,st),I):I}function nn(I,V,Z,xe,st,ui){let Xn=te(169);return Xn.modifiers=oc(I),Xn.dotDotDotToken=V,Xn.name=rd(Z),Xn.questionToken=xe,Xn.type=st,Xn.initializer=$T(ui),bx(Xn.name)?Xn.transformFlags=1:Xn.transformFlags=$a(Xn.modifiers)|ir(Xn.dotDotDotToken)|Dx(Xn.name)|ir(Xn.questionToken)|ir(Xn.initializer)|(Xn.questionToken??Xn.type?1:0)|(Xn.dotDotDotToken??Xn.initializer?1024:0)|(K0(Xn.modifiers)&31?8192:0),Xn.jsDoc=void 0,Xn}function Br(I,V,Z,xe,st,ui,Xn){return I.modifiers!==V||I.dotDotDotToken!==Z||I.name!==xe||I.questionToken!==st||I.type!==ui||I.initializer!==Xn?Un(nn(V,Z,xe,st,ui,Xn),I):I}function Gr(I){let V=$(170);return V.expression=a().parenthesizeLeftSideOfAccess(I,!1),V.transformFlags|=ir(V.expression)|1|8192|33554432,V}function is(I,V){return I.expression!==V?Un(Gr(V),I):I}function Ao(I,V,Z,xe){let st=te(171);return st.modifiers=oc(I),st.name=rd(V),st.type=xe,st.questionToken=Z,st.transformFlags=1,st.initializer=void 0,st.jsDoc=void 0,st}function Rr(I,V,Z,xe,st){return I.modifiers!==V||I.name!==Z||I.questionToken!==xe||I.type!==st?xn(Ao(V,Z,xe,st),I):I}function xn(I,V){return I!==V&&(I.initializer=V.initializer),Un(I,V)}function Eo(I,V,Z,xe,st){let ui=te(172);ui.modifiers=oc(I),ui.name=rd(V),ui.questionToken=Z&&Ix(Z)?Z:void 0,ui.exclamationToken=Z&&jR(Z)?Z:void 0,ui.type=xe,ui.initializer=$T(st);let Xn=ui.flags&33554432||K0(ui.modifiers)&128;return ui.transformFlags=$a(ui.modifiers)|Dx(ui.name)|ir(ui.initializer)|(Xn||ui.questionToken||ui.exclamationToken||ui.type?1:0)|(Ma(ui.name)||K0(ui.modifiers)&256&&ui.initializer?8192:0)|16777216,ui.jsDoc=void 0,ui}function it(I,V,Z,xe,st,ui){return I.modifiers!==V||I.name!==Z||I.questionToken!==(xe!==void 0&&Ix(xe)?xe:void 0)||I.exclamationToken!==(xe!==void 0&&jR(xe)?xe:void 0)||I.type!==st||I.initializer!==ui?Un(Eo(V,Z,xe,st,ui),I):I}function si(I,V,Z,xe,st,ui){let Xn=te(173);return Xn.modifiers=oc(I),Xn.name=rd(V),Xn.questionToken=Z,Xn.typeParameters=oc(xe),Xn.parameters=oc(st),Xn.type=ui,Xn.transformFlags=1,Xn.jsDoc=void 0,Xn.locals=void 0,Xn.nextContainer=void 0,Xn.typeArguments=void 0,Xn}function dn(I,V,Z,xe,st,ui,Xn){return I.modifiers!==V||I.name!==Z||I.questionToken!==xe||I.typeParameters!==st||I.parameters!==ui||I.type!==Xn?ne(si(V,Z,xe,st,ui,Xn),I):I}function Qn(I,V,Z,xe,st,ui,Xn,ns){let Rc=te(174);if(Rc.modifiers=oc(I),Rc.asteriskToken=V,Rc.name=rd(Z),Rc.questionToken=xe,Rc.exclamationToken=void 0,Rc.typeParameters=oc(st),Rc.parameters=G(ui),Rc.type=Xn,Rc.body=ns,!Rc.body)Rc.transformFlags=1;else{let kh=K0(Rc.modifiers)&1024,lv=!!Rc.asteriskToken,$m=kh&&lv;Rc.transformFlags=$a(Rc.modifiers)|ir(Rc.asteriskToken)|Dx(Rc.name)|ir(Rc.questionToken)|$a(Rc.typeParameters)|$a(Rc.parameters)|ir(Rc.type)|ir(Rc.body)&-67108865|($m?128:kh?256:lv?2048:0)|(Rc.questionToken||Rc.typeParameters||Rc.type?1:0)|1024}return Rc.typeArguments=void 0,Rc.jsDoc=void 0,Rc.locals=void 0,Rc.nextContainer=void 0,Rc.flowNode=void 0,Rc.endFlowNode=void 0,Rc.returnFlowNode=void 0,Rc}function Jr(I,V,Z,xe,st,ui,Xn,ns,Rc){return I.modifiers!==V||I.asteriskToken!==Z||I.name!==xe||I.questionToken!==st||I.typeParameters!==ui||I.parameters!==Xn||I.type!==ns||I.body!==Rc?Dr(Qn(V,Z,xe,st,ui,Xn,ns,Rc),I):I}function Dr(I,V){return I!==V&&(I.exclamationToken=V.exclamationToken),Un(I,V)}function Do(I){let V=te(175);return V.body=I,V.transformFlags=ir(I)|16777216,V.modifiers=void 0,V.jsDoc=void 0,V.locals=void 0,V.nextContainer=void 0,V.endFlowNode=void 0,V.returnFlowNode=void 0,V}function na(I,V){return I.body!==V?aa(Do(V),I):I}function aa(I,V){return I!==V&&(I.modifiers=V.modifiers),Un(I,V)}function Ai(I,V,Z){let xe=te(176);return xe.modifiers=oc(I),xe.parameters=G(V),xe.body=Z,xe.body?xe.transformFlags=$a(xe.modifiers)|$a(xe.parameters)|ir(xe.body)&-67108865|1024:xe.transformFlags=1,xe.typeParameters=void 0,xe.type=void 0,xe.typeArguments=void 0,xe.jsDoc=void 0,xe.locals=void 0,xe.nextContainer=void 0,xe.endFlowNode=void 0,xe.returnFlowNode=void 0,xe}function Ha(I,V,Z,xe){return I.modifiers!==V||I.parameters!==Z||I.body!==xe?ht(Ai(V,Z,xe),I):I}function ht(I,V){return I!==V&&(I.typeParameters=V.typeParameters,I.type=V.type),ne(I,V)}function Jt(I,V,Z,xe,st){let ui=te(177);return ui.modifiers=oc(I),ui.name=rd(V),ui.parameters=G(Z),ui.type=xe,ui.body=st,ui.body?ui.transformFlags=$a(ui.modifiers)|Dx(ui.name)|$a(ui.parameters)|ir(ui.type)|ir(ui.body)&-67108865|(ui.type?1:0):ui.transformFlags=1,ui.typeArguments=void 0,ui.typeParameters=void 0,ui.jsDoc=void 0,ui.locals=void 0,ui.nextContainer=void 0,ui.flowNode=void 0,ui.endFlowNode=void 0,ui.returnFlowNode=void 0,ui}function ye(I,V,Z,xe,st,ui){return I.modifiers!==V||I.name!==Z||I.parameters!==xe||I.type!==st||I.body!==ui?ct(Jt(V,Z,xe,st,ui),I):I}function ct(I,V){return I!==V&&(I.typeParameters=V.typeParameters),ne(I,V)}function ge(I,V,Z,xe){let st=te(178);return st.modifiers=oc(I),st.name=rd(V),st.parameters=G(Z),st.body=xe,st.body?st.transformFlags=$a(st.modifiers)|Dx(st.name)|$a(st.parameters)|ir(st.body)&-67108865|(st.type?1:0):st.transformFlags=1,st.typeArguments=void 0,st.typeParameters=void 0,st.type=void 0,st.jsDoc=void 0,st.locals=void 0,st.nextContainer=void 0,st.flowNode=void 0,st.endFlowNode=void 0,st.returnFlowNode=void 0,st}function He(I,V,Z,xe,st){return I.modifiers!==V||I.name!==Z||I.parameters!==xe||I.body!==st?ut(ge(V,Z,xe,st),I):I}function ut(I,V){return I!==V&&(I.typeParameters=V.typeParameters,I.type=V.type),ne(I,V)}function bt(I,V,Z){let xe=te(179);return xe.typeParameters=oc(I),xe.parameters=oc(V),xe.type=Z,xe.transformFlags=1,xe.jsDoc=void 0,xe.locals=void 0,xe.nextContainer=void 0,xe.typeArguments=void 0,xe}function je(I,V,Z,xe){return I.typeParameters!==V||I.parameters!==Z||I.type!==xe?ne(bt(V,Z,xe),I):I}function It(I,V,Z){let xe=te(180);return xe.typeParameters=oc(I),xe.parameters=oc(V),xe.type=Z,xe.transformFlags=1,xe.jsDoc=void 0,xe.locals=void 0,xe.nextContainer=void 0,xe.typeArguments=void 0,xe}function mt(I,V,Z,xe){return I.typeParameters!==V||I.parameters!==Z||I.type!==xe?ne(It(V,Z,xe),I):I}function $t(I,V,Z){let xe=te(181);return xe.modifiers=oc(I),xe.parameters=oc(V),xe.type=Z,xe.transformFlags=1,xe.jsDoc=void 0,xe.locals=void 0,xe.nextContainer=void 0,xe.typeArguments=void 0,xe}function _t(I,V,Z,xe){return I.parameters!==Z||I.type!==xe||I.modifiers!==V?ne($t(V,Z,xe),I):I}function yi(I,V){let Z=$(204);return Z.type=I,Z.literal=V,Z.transformFlags=1,Z}function Ii(I,V,Z){return I.type!==V||I.literal!==Z?Un(yi(V,Z),I):I}function nr(I){return Ge(I)}function Y(I,V,Z){let xe=$(182);return xe.assertsModifier=I,xe.parameterName=rd(V),xe.type=Z,xe.transformFlags=1,xe}function $e(I,V,Z,xe){return I.assertsModifier!==V||I.parameterName!==Z||I.type!==xe?Un(Y(V,Z,xe),I):I}function Bt(I,V){let Z=$(183);return Z.typeName=rd(I),Z.typeArguments=V&&a().parenthesizeTypeArguments(G(V)),Z.transformFlags=1,Z}function se(I,V,Z){return I.typeName!==V||I.typeArguments!==Z?Un(Bt(V,Z),I):I}function rt(I,V,Z){let xe=te(184);return xe.typeParameters=oc(I),xe.parameters=oc(V),xe.type=Z,xe.transformFlags=1,xe.modifiers=void 0,xe.jsDoc=void 0,xe.locals=void 0,xe.nextContainer=void 0,xe.typeArguments=void 0,xe}function fe(I,V,Z,xe){return I.typeParameters!==V||I.parameters!==Z||I.type!==xe?Wt(rt(V,Z,xe),I):I}function Wt(I,V){return I!==V&&(I.modifiers=V.modifiers),ne(I,V)}function tt(...I){return I.length===4?Qe(...I):I.length===3?ei(...I):B.fail("Incorrect number of arguments specified.")}function Qe(I,V,Z,xe){let st=te(185);return st.modifiers=oc(I),st.typeParameters=oc(V),st.parameters=oc(Z),st.type=xe,st.transformFlags=1,st.jsDoc=void 0,st.locals=void 0,st.nextContainer=void 0,st.typeArguments=void 0,st}function ei(I,V,Z){return Qe(void 0,I,V,Z)}function In(...I){return I.length===5?Ji(...I):I.length===4?_n(...I):B.fail("Incorrect number of arguments specified.")}function Ji(I,V,Z,xe,st){return I.modifiers!==V||I.typeParameters!==Z||I.parameters!==xe||I.type!==st?ne(tt(V,Z,xe,st),I):I}function _n(I,V,Z,xe){return Ji(I,I.modifiers,V,Z,xe)}function Dt(I,V){let Z=$(186);return Z.exprName=I,Z.typeArguments=V&&a().parenthesizeTypeArguments(V),Z.transformFlags=1,Z}function Nt(I,V,Z){return I.exprName!==V||I.typeArguments!==Z?Un(Dt(V,Z),I):I}function ti(I){let V=te(187);return V.members=G(I),V.transformFlags=1,V}function li(I,V){return I.members!==V?Un(ti(V),I):I}function wi(I){let V=$(188);return V.elementType=a().parenthesizeNonArrayTypeOfPostfixType(I),V.transformFlags=1,V}function Si(I,V){return I.elementType!==V?Un(wi(V),I):I}function Rn(I){let V=$(189);return V.elements=G(a().parenthesizeElementTypesOfTupleType(I)),V.transformFlags=1,V}function gi(I,V){return I.elements!==V?Un(Rn(V),I):I}function Xi(I,V,Z,xe){let st=te(202);return st.dotDotDotToken=I,st.name=V,st.questionToken=Z,st.type=xe,st.transformFlags=1,st.jsDoc=void 0,st}function Li(I,V,Z,xe,st){return I.dotDotDotToken!==V||I.name!==Z||I.questionToken!==xe||I.type!==st?Un(Xi(V,Z,xe,st),I):I}function Vi(I){let V=$(190);return V.type=a().parenthesizeTypeOfOptionalType(I),V.transformFlags=1,V}function ai(I,V){return I.type!==V?Un(Vi(V),I):I}function Cs(I){let V=$(191);return V.type=I,V.transformFlags=1,V}function Ss(I,V){return I.type!==V?Un(Cs(V),I):I}function ks(I,V,Z){let xe=$(I);return xe.types=q.createNodeArray(Z(V)),xe.transformFlags=1,xe}function hc(I,V,Z){return I.types!==V?Un(ks(I.kind,V,Z),I):I}function Zl(I){return ks(192,I,a().parenthesizeConstituentTypesOfUnionType)}function Uu(I,V){return hc(I,V,a().parenthesizeConstituentTypesOfUnionType)}function Fc(I){return ks(193,I,a().parenthesizeConstituentTypesOfIntersectionType)}function fo(I,V){return hc(I,V,a().parenthesizeConstituentTypesOfIntersectionType)}function ka(I,V,Z,xe){let st=$(194);return st.checkType=a().parenthesizeCheckTypeOfConditionalType(I),st.extendsType=a().parenthesizeExtendsTypeOfConditionalType(V),st.trueType=Z,st.falseType=xe,st.transformFlags=1,st.locals=void 0,st.nextContainer=void 0,st}function tf(I,V,Z,xe,st){return I.checkType!==V||I.extendsType!==Z||I.trueType!==xe||I.falseType!==st?Un(ka(V,Z,xe,st),I):I}function Ts(I){let V=$(195);return V.typeParameter=I,V.transformFlags=1,V}function e_(I,V){return I.typeParameter!==V?Un(Ts(V),I):I}function id(I,V){let Z=$(203);return Z.head=I,Z.templateSpans=G(V),Z.transformFlags=1,Z}function Ko(I,V,Z){return I.head!==V||I.templateSpans!==Z?Un(id(V,Z),I):I}function nc(I,V,Z,xe,st=!1){let ui=$(205);return ui.argument=I,ui.attributes=V,ui.assertions&&ui.assertions.assertClause&&ui.attributes&&(ui.assertions.assertClause=ui.attributes),ui.qualifier=Z,ui.typeArguments=xe&&a().parenthesizeTypeArguments(xe),ui.isTypeOf=st,ui.transformFlags=1,ui}function rc(I,V,Z,xe,st,ui=I.isTypeOf){return I.argument!==V||I.attributes!==Z||I.qualifier!==xe||I.typeArguments!==st||I.isTypeOf!==ui?Un(nc(V,Z,xe,st,ui),I):I}function Bo(I){let V=$(196);return V.type=I,V.transformFlags=1,V}function Ua(I,V){return I.type!==V?Un(Bo(V),I):I}function pi(){let I=$(197);return I.transformFlags=1,I}function Ac(I,V){let Z=$(198);return Z.operator=I,Z.type=I===148?a().parenthesizeOperandOfReadonlyTypeOperator(V):a().parenthesizeOperandOfTypeOperator(V),Z.transformFlags=1,Z}function Wf(I,V){return I.type!==V?Un(Ac(I.operator,V),I):I}function nd(I,V){let Z=$(199);return Z.objectType=a().parenthesizeNonArrayTypeOfPostfixType(I),Z.indexType=V,Z.transformFlags=1,Z}function bp(I,V,Z){return I.objectType!==V||I.indexType!==Z?Un(nd(V,Z),I):I}function Fl(I,V,Z,xe,st,ui){let Xn=te(200);return Xn.readonlyToken=I,Xn.typeParameter=V,Xn.nameType=Z,Xn.questionToken=xe,Xn.type=st,Xn.members=ui&&G(ui),Xn.transformFlags=1,Xn.locals=void 0,Xn.nextContainer=void 0,Xn}function $l(I,V,Z,xe,st,ui,Xn){return I.readonlyToken!==V||I.typeParameter!==Z||I.nameType!==xe||I.questionToken!==st||I.type!==ui||I.members!==Xn?Un(Fl(V,Z,xe,st,ui,Xn),I):I}function H(I){let V=$(201);return V.literal=I,V.transformFlags=1,V}function Ze(I,V){return I.literal!==V?Un(H(V),I):I}function Pt(I){let V=$(206);return V.elements=G(I),V.transformFlags|=$a(V.elements)|1024|524288,V.transformFlags&32768&&(V.transformFlags|=65664),V}function ri(I,V){return I.elements!==V?Un(Pt(V),I):I}function un(I){let V=$(207);return V.elements=G(I),V.transformFlags|=$a(V.elements)|1024|524288,V}function Nr(I,V){return I.elements!==V?Un(un(V),I):I}function Bi(I,V,Z,xe){let st=te(208);return st.dotDotDotToken=I,st.propertyName=rd(V),st.name=rd(Z),st.initializer=$T(xe),st.transformFlags|=ir(st.dotDotDotToken)|Dx(st.propertyName)|Dx(st.name)|ir(st.initializer)|(st.dotDotDotToken?32768:0)|1024,st.flowNode=void 0,st}function hr(I,V,Z,xe,st){return I.propertyName!==Z||I.dotDotDotToken!==V||I.name!==xe||I.initializer!==st?Un(Bi(V,Z,xe,st),I):I}function Pr(I,V){let Z=$(209),xe=I&&Lc(I),st=G(I,xe&&Ed(xe)?!0:void 0);return Z.elements=a().parenthesizeExpressionsOfCommaDelimitedList(st),Z.multiLine=V,Z.transformFlags|=$a(Z.elements),Z}function oo(I,V){return I.elements!==V?Un(Pr(V,I.multiLine),I):I}function Ya(I,V){let Z=te(210);return Z.properties=G(I),Z.multiLine=V,Z.transformFlags|=$a(Z.properties),Z.jsDoc=void 0,Z}function ml(I,V){return I.properties!==V?Un(Ya(V,I.multiLine),I):I}function Au(I,V,Z){let xe=te(211);return xe.expression=I,xe.questionDotToken=V,xe.name=Z,xe.transformFlags=ir(xe.expression)|ir(xe.questionDotToken)|(et(xe.name)?LR(xe.name):ir(xe.name)|536870912),xe.jsDoc=void 0,xe.flowNode=void 0,xe}function Pu(I,V){let Z=Au(a().parenthesizeLeftSideOfAccess(I,!1),void 0,rd(V));return PO(I)&&(Z.transformFlags|=384),Z}function ku(I,V,Z){return uz(I)?Lu(I,V,I.questionDotToken,ea(Z,et)):I.expression!==V||I.name!==Z?Un(Pu(V,Z),I):I}function hl(I,V,Z){let xe=Au(a().parenthesizeLeftSideOfAccess(I,!0),V,rd(Z));return xe.flags|=64,xe.transformFlags|=32,xe}function Lu(I,V,Z,xe){return B.assert(!!(I.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),I.expression!==V||I.questionDotToken!==Z||I.name!==xe?Un(hl(V,Z,xe),I):I}function h_(I,V,Z){let xe=te(212);return xe.expression=I,xe.questionDotToken=V,xe.argumentExpression=Z,xe.transformFlags|=ir(xe.expression)|ir(xe.questionDotToken)|ir(xe.argumentExpression),xe.jsDoc=void 0,xe.flowNode=void 0,xe}function Ou(I,V){let Z=h_(a().parenthesizeLeftSideOfAccess(I,!1),void 0,wb(V));return PO(I)&&(Z.transformFlags|=384),Z}function _d(I,V,Z){return SQ(I)?qe(I,V,I.questionDotToken,Z):I.expression!==V||I.argumentExpression!==Z?Un(Ou(V,Z),I):I}function gh(I,V,Z){let xe=h_(a().parenthesizeLeftSideOfAccess(I,!0),V,wb(Z));return xe.flags|=64,xe.transformFlags|=32,xe}function qe(I,V,Z,xe){return B.assert(!!(I.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),I.expression!==V||I.questionDotToken!==Z||I.argumentExpression!==xe?Un(gh(V,Z,xe),I):I}function Qt(I,V,Z,xe){let st=te(213);return st.expression=I,st.questionDotToken=V,st.typeArguments=Z,st.arguments=xe,st.transformFlags|=ir(st.expression)|ir(st.questionDotToken)|$a(st.typeArguments)|$a(st.arguments),st.typeArguments&&(st.transformFlags|=1),mp(st.expression)&&(st.transformFlags|=16384),st}function hn(I,V,Z){let xe=Qt(a().parenthesizeLeftSideOfAccess(I,!1),void 0,oc(V),a().parenthesizeExpressionsOfCommaDelimitedList(G(Z)));return LO(xe.expression)&&(xe.transformFlags|=8388608),xe}function Jo(I,V,Z,xe){return Y2(I)?Ja(I,V,I.questionDotToken,Z,xe):I.expression!==V||I.typeArguments!==Z||I.arguments!==xe?Un(hn(V,Z,xe),I):I}function za(I,V,Z,xe){let st=Qt(a().parenthesizeLeftSideOfAccess(I,!0),V,oc(Z),a().parenthesizeExpressionsOfCommaDelimitedList(G(xe)));return st.flags|=64,st.transformFlags|=32,st}function Ja(I,V,Z,xe,st){return B.assert(!!(I.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),I.expression!==V||I.questionDotToken!==Z||I.typeArguments!==xe||I.arguments!==st?Un(za(V,Z,xe,st),I):I}function wu(I,V,Z){let xe=te(214);return xe.expression=a().parenthesizeExpressionOfNew(I),xe.typeArguments=oc(V),xe.arguments=Z?a().parenthesizeExpressionsOfCommaDelimitedList(Z):void 0,xe.transformFlags|=ir(xe.expression)|$a(xe.typeArguments)|$a(xe.arguments)|32,xe.typeArguments&&(xe.transformFlags|=1),xe}function Nd(I,V,Z,xe){return I.expression!==V||I.typeArguments!==Z||I.arguments!==xe?Un(wu(V,Z,xe),I):I}function Mc(I,V,Z){let xe=$(215);return xe.tag=a().parenthesizeLeftSideOfAccess(I,!1),xe.typeArguments=oc(V),xe.template=Z,xe.transformFlags|=ir(xe.tag)|$a(xe.typeArguments)|ir(xe.template)|1024,xe.typeArguments&&(xe.transformFlags|=1),NZ(xe.template)&&(xe.transformFlags|=128),xe}function gc(I,V,Z,xe){return I.tag!==V||I.typeArguments!==Z||I.template!==xe?Un(Mc(V,Z,xe),I):I}function Ju(I,V){let Z=$(216);return Z.expression=a().parenthesizeOperandOfPrefixUnary(V),Z.type=I,Z.transformFlags|=ir(Z.expression)|ir(Z.type)|1,Z}function Zp(I,V,Z){return I.type!==V||I.expression!==Z?Un(Ju(V,Z),I):I}function Qh(I){let V=$(217);return V.expression=I,V.transformFlags=ir(V.expression),V.jsDoc=void 0,V}function Sp(I,V){return I.expression!==V?Un(Qh(V),I):I}function hm(I,V,Z,xe,st,ui,Xn){let ns=te(218);ns.modifiers=oc(I),ns.asteriskToken=V,ns.name=rd(Z),ns.typeParameters=oc(xe),ns.parameters=G(st),ns.type=ui,ns.body=Xn;let Rc=K0(ns.modifiers)&1024,kh=!!ns.asteriskToken,lv=Rc&&kh;return ns.transformFlags=$a(ns.modifiers)|ir(ns.asteriskToken)|Dx(ns.name)|$a(ns.typeParameters)|$a(ns.parameters)|ir(ns.type)|ir(ns.body)&-67108865|(lv?128:Rc?256:kh?2048:0)|(ns.typeParameters||ns.type?1:0)|4194304,ns.typeArguments=void 0,ns.jsDoc=void 0,ns.locals=void 0,ns.nextContainer=void 0,ns.flowNode=void 0,ns.endFlowNode=void 0,ns.returnFlowNode=void 0,ns}function Wm(I,V,Z,xe,st,ui,Xn,ns){return I.name!==xe||I.modifiers!==V||I.asteriskToken!==Z||I.typeParameters!==st||I.parameters!==ui||I.type!==Xn||I.body!==ns?ne(hm(V,Z,xe,st,ui,Xn,ns),I):I}function yh(I,V,Z,xe,st,ui){let Xn=te(219);Xn.modifiers=oc(I),Xn.typeParameters=oc(V),Xn.parameters=G(Z),Xn.type=xe,Xn.equalsGreaterThanToken=st??Ge(39),Xn.body=a().parenthesizeConciseBodyOfArrowFunction(ui);let ns=K0(Xn.modifiers)&1024;return Xn.transformFlags=$a(Xn.modifiers)|$a(Xn.typeParameters)|$a(Xn.parameters)|ir(Xn.type)|ir(Xn.equalsGreaterThanToken)|ir(Xn.body)&-67108865|(Xn.typeParameters||Xn.type?1:0)|(ns?16640:0)|1024,Xn.typeArguments=void 0,Xn.jsDoc=void 0,Xn.locals=void 0,Xn.nextContainer=void 0,Xn.flowNode=void 0,Xn.endFlowNode=void 0,Xn.returnFlowNode=void 0,Xn}function t1(I,V,Z,xe,st,ui,Xn){return I.modifiers!==V||I.typeParameters!==Z||I.parameters!==xe||I.type!==st||I.equalsGreaterThanToken!==ui||I.body!==Xn?ne(yh(V,Z,xe,st,ui,Xn),I):I}function Zh(I){let V=$(220);return V.expression=a().parenthesizeOperandOfPrefixUnary(I),V.transformFlags|=ir(V.expression),V}function np(I,V){return I.expression!==V?Un(Zh(V),I):I}function Ad(I){let V=$(221);return V.expression=a().parenthesizeOperandOfPrefixUnary(I),V.transformFlags|=ir(V.expression),V}function _b(I,V){return I.expression!==V?Un(Ad(V),I):I}function j_(I){let V=$(222);return V.expression=a().parenthesizeOperandOfPrefixUnary(I),V.transformFlags|=ir(V.expression),V}function i1(I,V){return I.expression!==V?Un(j_(V),I):I}function zm(I){let V=$(223);return V.expression=a().parenthesizeOperandOfPrefixUnary(I),V.transformFlags|=ir(V.expression)|256|128|2097152,V}function me(I,V){return I.expression!==V?Un(zm(V),I):I}function wt(I,V){let Z=$(224);return Z.operator=I,Z.operand=a().parenthesizeOperandOfPrefixUnary(V),Z.transformFlags|=ir(Z.operand),(I===46||I===47)&&et(Z.operand)&&!yl(Z.operand)&&!sb(Z.operand)&&(Z.transformFlags|=268435456),Z}function oi(I,V){return I.operand!==V?Un(wt(I.operator,V),I):I}function di(I,V){let Z=$(225);return Z.operator=V,Z.operand=a().parenthesizeOperandOfPostfixUnary(I),Z.transformFlags|=ir(Z.operand),et(Z.operand)&&!yl(Z.operand)&&!sb(Z.operand)&&(Z.transformFlags|=268435456),Z}function Zi(I,V){return I.operand!==V?Un(di(V,I.operator),I):I}function Tn(I,V,Z){let xe=te(226),st=Q8(V),ui=st.kind;return xe.left=a().parenthesizeLeftSideOfBinary(ui,I),xe.operatorToken=st,xe.right=a().parenthesizeRightSideOfBinary(ui,xe.left,Z),xe.transformFlags|=ir(xe.left)|ir(xe.operatorToken)|ir(xe.right),ui===61?xe.transformFlags|=32:ui===64?ba(xe.left)?xe.transformFlags|=5248|ur(xe.left):yf(xe.left)&&(xe.transformFlags|=5120|ur(xe.left)):ui===43||ui===68?xe.transformFlags|=512:oO(ui)&&(xe.transformFlags|=16),ui===103&&xo(xe.left)&&(xe.transformFlags|=536870912),xe.jsDoc=void 0,xe}function ur(I){return QR(I)?65536:0}function qr(I,V,Z,xe){return I.left!==V||I.operatorToken!==Z||I.right!==xe?Un(Tn(V,Z,xe),I):I}function Q(I,V,Z,xe,st){let ui=$(227);return ui.condition=a().parenthesizeConditionOfConditionalExpression(I),ui.questionToken=V??Ge(58),ui.whenTrue=a().parenthesizeBranchOfConditionalExpression(Z),ui.colonToken=xe??Ge(59),ui.whenFalse=a().parenthesizeBranchOfConditionalExpression(st),ui.transformFlags|=ir(ui.condition)|ir(ui.questionToken)|ir(ui.whenTrue)|ir(ui.colonToken)|ir(ui.whenFalse),ui}function ze(I,V,Z,xe,st,ui){return I.condition!==V||I.questionToken!==Z||I.whenTrue!==xe||I.colonToken!==st||I.whenFalse!==ui?Un(Q(V,Z,xe,st,ui),I):I}function Ut(I,V){let Z=$(228);return Z.head=I,Z.templateSpans=G(V),Z.transformFlags|=ir(Z.head)|$a(Z.templateSpans)|1024,Z}function gn(I,V,Z){return I.head!==V||I.templateSpans!==Z?Un(Ut(V,Z),I):I}function lo(I,V,Z,xe=0){B.assert(!(xe&-7177),"Unsupported template flags.");let st;if(Z!==void 0&&Z!==V&&(st=JTt(I,Z),typeof st=="object"))return B.fail("Invalid raw text");if(V===void 0){if(st===void 0)return B.fail("Arguments 'text' and 'rawText' may not both be undefined.");V=st}else st!==void 0&&B.assert(V===st,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return V}function Is(I){let V=1024;return I&&(V|=128),V}function os(I,V,Z,xe){let st=Be(I);return st.text=V,st.rawText=Z,st.templateFlags=xe&7176,st.transformFlags=Is(st.templateFlags),st}function Ns(I,V,Z,xe){let st=te(I);return st.text=V,st.rawText=Z,st.templateFlags=xe&7176,st.transformFlags=Is(st.templateFlags),st}function Qa(I,V,Z,xe){return I===15?Ns(I,V,Z,xe):os(I,V,Z,xe)}function Ra(I,V,Z){return I=lo(16,I,V,Z),Qa(16,I,V,Z)}function Il(I,V,Z){return I=lo(16,I,V,Z),Qa(17,I,V,Z)}function vh(I,V,Z){return I=lo(16,I,V,Z),Qa(18,I,V,Z)}function Tg(I,V,Z){return I=lo(16,I,V,Z),Ns(15,I,V,Z)}function a0(I,V){B.assert(!I||!!V,"A `YieldExpression` with an asteriskToken must have an expression.");let Z=$(229);return Z.expression=V&&a().parenthesizeExpressionForDisallowedComma(V),Z.asteriskToken=I,Z.transformFlags|=ir(Z.expression)|ir(Z.asteriskToken)|1024|128|1048576,Z}function n1(I,V,Z){return I.expression!==Z||I.asteriskToken!==V?Un(a0(V,Z),I):I}function CS(I){let V=$(230);return V.expression=a().parenthesizeExpressionForDisallowedComma(I),V.transformFlags|=ir(V.expression)|1024|32768,V}function r1(I,V){return I.expression!==V?Un(CS(V),I):I}function bh(I,V,Z,xe,st){let ui=te(231);return ui.modifiers=oc(I),ui.name=rd(V),ui.typeParameters=oc(Z),ui.heritageClauses=oc(xe),ui.members=G(st),ui.transformFlags|=$a(ui.modifiers)|Dx(ui.name)|$a(ui.typeParameters)|$a(ui.heritageClauses)|$a(ui.members)|(ui.typeParameters?1:0)|1024,ui.jsDoc=void 0,ui}function Sh(I,V,Z,xe,st,ui){return I.modifiers!==V||I.name!==Z||I.typeParameters!==xe||I.heritageClauses!==st||I.members!==ui?Un(bh(V,Z,xe,st,ui),I):I}function ul(){return $(232)}function gm(I,V){let Z=$(233);return Z.expression=a().parenthesizeLeftSideOfAccess(I,!1),Z.typeArguments=V&&a().parenthesizeTypeArguments(V),Z.transformFlags|=ir(Z.expression)|$a(Z.typeArguments)|1024,Z}function xp(I,V,Z){return I.expression!==V||I.typeArguments!==Z?Un(gm(V,Z),I):I}function c0(I,V){let Z=$(234);return Z.expression=I,Z.type=V,Z.transformFlags|=ir(Z.expression)|ir(Z.type)|1,Z}function o1(I,V,Z){return I.expression!==V||I.type!==Z?Un(c0(V,Z),I):I}function eg(I){let V=$(235);return V.expression=a().parenthesizeLeftSideOfAccess(I,!1),V.transformFlags|=ir(V.expression)|1,V}function iv(I,V){return fz(I)?Mk(I,V):I.expression!==V?Un(eg(V),I):I}function pb(I,V){let Z=$(238);return Z.expression=I,Z.type=V,Z.transformFlags|=ir(Z.expression)|ir(Z.type)|1,Z}function kS(I,V,Z){return I.expression!==V||I.type!==Z?Un(pb(V,Z),I):I}function tg(I){let V=$(235);return V.flags|=64,V.expression=a().parenthesizeLeftSideOfAccess(I,!0),V.transformFlags|=ir(V.expression)|1,V}function Mk(I,V){return B.assert(!!(I.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),I.expression!==V?Un(tg(V),I):I}function Vm(I,V){let Z=$(236);switch(Z.keywordToken=I,Z.name=V,Z.transformFlags|=ir(Z.name),I){case 105:Z.transformFlags|=1024;break;case 102:Z.transformFlags|=32;break;default:return B.assertNever(I)}return Z.flowNode=void 0,Z}function ig(I,V){return I.name!==V?Un(Vm(I.keywordToken,V),I):I}function mb(I,V){let Z=$(239);return Z.expression=I,Z.literal=V,Z.transformFlags|=ir(Z.expression)|ir(Z.literal)|1024,Z}function Rk(I,V,Z){return I.expression!==V||I.literal!==Z?Un(mb(V,Z),I):I}function nv(){let I=$(240);return I.transformFlags|=1024,I}function s1(I,V){let Z=$(241);return Z.statements=G(I),Z.multiLine=V,Z.transformFlags|=$a(Z.statements),Z.jsDoc=void 0,Z.locals=void 0,Z.nextContainer=void 0,Z}function Bk(I,V){return I.statements!==V?Un(s1(V,I.multiLine),I):I}function Vx(I,V){let Z=$(243);return Z.modifiers=oc(I),Z.declarationList=ds(V)?c1(V):V,Z.transformFlags|=$a(Z.modifiers)|ir(Z.declarationList),K0(Z.modifiers)&128&&(Z.transformFlags=1),Z.jsDoc=void 0,Z.flowNode=void 0,Z}function Xe(I,V,Z){return I.modifiers!==V||I.declarationList!==Z?Un(Vx(V,Z),I):I}function dt(){let I=$(242);return I.jsDoc=void 0,I}function qt(I){let V=$(244);return V.expression=a().parenthesizeExpressionOfExpressionStatement(I),V.transformFlags|=ir(V.expression),V.jsDoc=void 0,V.flowNode=void 0,V}function bi(I,V){return I.expression!==V?Un(qt(V),I):I}function qi(I,V,Z){let xe=$(245);return xe.expression=I,xe.thenStatement=Sm(V),xe.elseStatement=Sm(Z),xe.transformFlags|=ir(xe.expression)|ir(xe.thenStatement)|ir(xe.elseStatement),xe.jsDoc=void 0,xe.flowNode=void 0,xe}function En(I,V,Z,xe){return I.expression!==V||I.thenStatement!==Z||I.elseStatement!==xe?Un(qi(V,Z,xe),I):I}function tn(I,V){let Z=$(246);return Z.statement=Sm(I),Z.expression=V,Z.transformFlags|=ir(Z.statement)|ir(Z.expression),Z.jsDoc=void 0,Z.flowNode=void 0,Z}function dr(I,V,Z){return I.statement!==V||I.expression!==Z?Un(tn(V,Z),I):I}function so(I,V){let Z=$(247);return Z.expression=I,Z.statement=Sm(V),Z.transformFlags|=ir(Z.expression)|ir(Z.statement),Z.jsDoc=void 0,Z.flowNode=void 0,Z}function Gn(I,V,Z){return I.expression!==V||I.statement!==Z?Un(so(V,Z),I):I}function uo(I,V,Z,xe){let st=$(248);return st.initializer=I,st.condition=V,st.incrementor=Z,st.statement=Sm(xe),st.transformFlags|=ir(st.initializer)|ir(st.condition)|ir(st.incrementor)|ir(st.statement),st.jsDoc=void 0,st.locals=void 0,st.nextContainer=void 0,st.flowNode=void 0,st}function Kn(I,V,Z,xe,st){return I.initializer!==V||I.condition!==Z||I.incrementor!==xe||I.statement!==st?Un(uo(V,Z,xe,st),I):I}function Es(I,V,Z){let xe=$(249);return xe.initializer=I,xe.expression=V,xe.statement=Sm(Z),xe.transformFlags|=ir(xe.initializer)|ir(xe.expression)|ir(xe.statement),xe.jsDoc=void 0,xe.locals=void 0,xe.nextContainer=void 0,xe.flowNode=void 0,xe}function Jc(I,V,Z,xe){return I.initializer!==V||I.expression!==Z||I.statement!==xe?Un(Es(V,Z,xe),I):I}function g_(I,V,Z,xe){let st=$(250);return st.awaitModifier=I,st.initializer=V,st.expression=a().parenthesizeExpressionForDisallowedComma(Z),st.statement=Sm(xe),st.transformFlags|=ir(st.awaitModifier)|ir(st.initializer)|ir(st.expression)|ir(st.statement)|1024,I&&(st.transformFlags|=128),st.jsDoc=void 0,st.locals=void 0,st.nextContainer=void 0,st.flowNode=void 0,st}function ng(I,V,Z,xe,st){return I.awaitModifier!==V||I.initializer!==Z||I.expression!==xe||I.statement!==st?Un(g_(V,Z,xe,st),I):I}function y_(I){let V=$(251);return V.label=rd(I),V.transformFlags|=ir(V.label)|4194304,V.jsDoc=void 0,V.flowNode=void 0,V}function rg(I,V){return I.label!==V?Un(y_(V),I):I}function v_(I){let V=$(252);return V.label=rd(I),V.transformFlags|=ir(V.label)|4194304,V.jsDoc=void 0,V.flowNode=void 0,V}function LT(I,V){return I.label!==V?Un(v_(V),I):I}function Hx(I){let V=$(253);return V.expression=I,V.transformFlags|=ir(V.expression)|128|4194304,V.jsDoc=void 0,V.flowNode=void 0,V}function a1(I,V){return I.expression!==V?Un(Hx(V),I):I}function hb(I,V){let Z=$(254);return Z.expression=I,Z.statement=Sm(V),Z.transformFlags|=ir(Z.expression)|ir(Z.statement),Z.jsDoc=void 0,Z.flowNode=void 0,Z}function wS(I,V,Z){return I.expression!==V||I.statement!==Z?Un(hb(V,Z),I):I}function Eg(I,V){let Z=$(255);return Z.expression=a().parenthesizeExpressionForDisallowedComma(I),Z.caseBlock=V,Z.transformFlags|=ir(Z.expression)|ir(Z.caseBlock),Z.jsDoc=void 0,Z.flowNode=void 0,Z.possiblyExhaustive=!1,Z}function TS(I,V,Z){return I.expression!==V||I.caseBlock!==Z?Un(Eg(V,Z),I):I}function Ux(I,V){let Z=$(256);return Z.label=rd(I),Z.statement=Sm(V),Z.transformFlags|=ir(Z.label)|ir(Z.statement),Z.jsDoc=void 0,Z.flowNode=void 0,Z}function Jx(I,V,Z){return I.label!==V||I.statement!==Z?Un(Ux(V,Z),I):I}function qx(I){let V=$(257);return V.expression=I,V.transformFlags|=ir(V.expression),V.jsDoc=void 0,V.flowNode=void 0,V}function zE(I,V){return I.expression!==V?Un(qx(V),I):I}function jk(I,V,Z){let xe=$(258);return xe.tryBlock=I,xe.catchClause=V,xe.finallyBlock=Z,xe.transformFlags|=ir(xe.tryBlock)|ir(xe.catchClause)|ir(xe.finallyBlock),xe.jsDoc=void 0,xe.flowNode=void 0,xe}function Ga(I,V,Z,xe){return I.tryBlock!==V||I.catchClause!==Z||I.finallyBlock!==xe?Un(jk(V,Z,xe),I):I}function OT(){let I=$(259);return I.jsDoc=void 0,I.flowNode=void 0,I}function VE(I,V,Z,xe){let st=te(260);return st.name=rd(I),st.exclamationToken=V,st.type=Z,st.initializer=$T(xe),st.transformFlags|=Dx(st.name)|ir(st.initializer)|(st.exclamationToken??st.type?1:0),st.jsDoc=void 0,st}function Wk(I,V,Z,xe,st){return I.name!==V||I.type!==xe||I.exclamationToken!==Z||I.initializer!==st?Un(VE(V,Z,xe,st),I):I}function c1(I,V=0){let Z=$(261);return Z.flags|=V&7,Z.declarations=G(I),Z.transformFlags|=$a(Z.declarations)|4194304,V&7&&(Z.transformFlags|=263168),V&4&&(Z.transformFlags|=4),Z}function l1(I,V){return I.declarations!==V?Un(c1(V,I.flags),I):I}function Hm(I,V,Z,xe,st,ui,Xn){let ns=te(262);if(ns.modifiers=oc(I),ns.asteriskToken=V,ns.name=rd(Z),ns.typeParameters=oc(xe),ns.parameters=G(st),ns.type=ui,ns.body=Xn,!ns.body||K0(ns.modifiers)&128)ns.transformFlags=1;else{let Rc=K0(ns.modifiers)&1024,kh=!!ns.asteriskToken,lv=Rc&&kh;ns.transformFlags=$a(ns.modifiers)|ir(ns.asteriskToken)|Dx(ns.name)|$a(ns.typeParameters)|$a(ns.parameters)|ir(ns.type)|ir(ns.body)&-67108865|(lv?128:Rc?256:kh?2048:0)|(ns.typeParameters||ns.type?1:0)|4194304}return ns.typeArguments=void 0,ns.jsDoc=void 0,ns.locals=void 0,ns.nextContainer=void 0,ns.endFlowNode=void 0,ns.returnFlowNode=void 0,ns}function em(I,V,Z,xe,st,ui,Xn,ns){return I.modifiers!==V||I.asteriskToken!==Z||I.name!==xe||I.typeParameters!==st||I.parameters!==ui||I.type!==Xn||I.body!==ns?tm(Hm(V,Z,xe,st,ui,Xn,ns),I):I}function tm(I,V){return I!==V&&I.modifiers===V.modifiers&&(I.modifiers=V.modifiers),ne(I,V)}function Cp(I,V,Z,xe,st){let ui=te(263);return ui.modifiers=oc(I),ui.name=rd(V),ui.typeParameters=oc(Z),ui.heritageClauses=oc(xe),ui.members=G(st),K0(ui.modifiers)&128?ui.transformFlags=1:(ui.transformFlags|=$a(ui.modifiers)|Dx(ui.name)|$a(ui.typeParameters)|$a(ui.heritageClauses)|$a(ui.members)|(ui.typeParameters?1:0)|1024,ui.transformFlags&8192&&(ui.transformFlags|=1)),ui.jsDoc=void 0,ui}function $x(I,V,Z,xe,st,ui){return I.modifiers!==V||I.name!==Z||I.typeParameters!==xe||I.heritageClauses!==st||I.members!==ui?Un(Cp(V,Z,xe,st,ui),I):I}function g6(I,V,Z,xe,st){let ui=te(264);return ui.modifiers=oc(I),ui.name=rd(V),ui.typeParameters=oc(Z),ui.heritageClauses=oc(xe),ui.members=G(st),ui.transformFlags=1,ui.jsDoc=void 0,ui}function Md(I,V,Z,xe,st,ui){return I.modifiers!==V||I.name!==Z||I.typeParameters!==xe||I.heritageClauses!==st||I.members!==ui?Un(g6(V,Z,xe,st,ui),I):I}function l0(I,V,Z,xe){let st=te(265);return st.modifiers=oc(I),st.name=rd(V),st.typeParameters=oc(Z),st.type=xe,st.transformFlags=1,st.jsDoc=void 0,st.locals=void 0,st.nextContainer=void 0,st}function ES(I,V,Z,xe,st){return I.modifiers!==V||I.name!==Z||I.typeParameters!==xe||I.type!==st?Un(l0(V,Z,xe,st),I):I}function rv(I,V,Z){let xe=te(266);return xe.modifiers=oc(I),xe.name=rd(V),xe.members=G(Z),xe.transformFlags|=$a(xe.modifiers)|ir(xe.name)|$a(xe.members)|1,xe.transformFlags&=-67108865,xe.jsDoc=void 0,xe}function aA(I,V,Z,xe){return I.modifiers!==V||I.name!==Z||I.members!==xe?Un(rv(V,Z,xe),I):I}function zf(I,V,Z,xe=0){let st=te(267);return st.modifiers=oc(I),st.flags|=xe&2088,st.name=V,st.body=Z,K0(st.modifiers)&128?st.transformFlags=1:st.transformFlags|=$a(st.modifiers)|ir(st.name)|ir(st.body)|1,st.transformFlags&=-67108865,st.jsDoc=void 0,st.locals=void 0,st.nextContainer=void 0,st}function gb(I,V,Z,xe){return I.modifiers!==V||I.name!==Z||I.body!==xe?Un(zf(V,Z,xe,I.flags),I):I}function kp(I){let V=$(268);return V.statements=G(I),V.transformFlags|=$a(V.statements),V.jsDoc=void 0,V}function zk(I,V){return I.statements!==V?Un(kp(V),I):I}function fy(I){let V=$(269);return V.clauses=G(I),V.transformFlags|=$a(V.clauses),V.locals=void 0,V.nextContainer=void 0,V}function ot(I,V){return I.clauses!==V?Un(fy(V),I):I}function u0(I){let V=te(270);return V.name=rd(I),V.transformFlags|=LR(V.name)|1,V.modifiers=void 0,V.jsDoc=void 0,V}function _y(I,V){return I.name!==V?Vk(u0(V),I):I}function Vk(I,V){return I!==V&&(I.modifiers=V.modifiers),Un(I,V)}function cA(I,V,Z,xe){let st=te(271);return st.modifiers=oc(I),st.name=rd(Z),st.isTypeOnly=V,st.moduleReference=xe,st.transformFlags|=$a(st.modifiers)|LR(st.name)|ir(st.moduleReference),rb(st.moduleReference)||(st.transformFlags|=1),st.transformFlags&=-67108865,st.jsDoc=void 0,st}function yb(I,V,Z,xe,st){return I.modifiers!==V||I.isTypeOnly!==Z||I.name!==xe||I.moduleReference!==st?Un(cA(V,Z,xe,st),I):I}function DS(I,V,Z,xe){let st=$(272);return st.modifiers=oc(I),st.importClause=V,st.moduleSpecifier=Z,st.attributes=st.assertClause=xe,st.transformFlags|=ir(st.importClause)|ir(st.moduleSpecifier),st.transformFlags&=-67108865,st.jsDoc=void 0,st}function vb(I,V,Z,xe,st){return I.modifiers!==V||I.importClause!==Z||I.moduleSpecifier!==xe||I.attributes!==st?Un(DS(V,Z,xe,st),I):I}function lA(I,V,Z){let xe=te(273);return xe.isTypeOnly=I,xe.name=V,xe.namedBindings=Z,xe.transformFlags|=ir(xe.name)|ir(xe.namedBindings),I&&(xe.transformFlags|=1),xe.transformFlags&=-67108865,xe}function Aa(I,V,Z,xe){return I.isTypeOnly!==V||I.name!==Z||I.namedBindings!==xe?Un(lA(V,Z,xe),I):I}function Dg(I,V){let Z=$(300);return Z.elements=G(I),Z.multiLine=V,Z.token=132,Z.transformFlags|=4,Z}function IS(I,V,Z){return I.elements!==V||I.multiLine!==Z?Un(Dg(V,Z),I):I}function Hk(I,V){let Z=$(301);return Z.name=I,Z.value=V,Z.transformFlags|=4,Z}function ym(I,V,Z){return I.name!==V||I.value!==Z?Un(Hk(V,Z),I):I}function u1(I,V){let Z=$(302);return Z.assertClause=I,Z.multiLine=V,Z}function d0(I,V,Z){return I.assertClause!==V||I.multiLine!==Z?Un(u1(V,Z),I):I}function ov(I,V,Z){let xe=$(300);return xe.token=Z??118,xe.elements=G(I),xe.multiLine=V,xe.transformFlags|=4,xe}function uA(I,V,Z){return I.elements!==V||I.multiLine!==Z?Un(ov(V,Z,I.token),I):I}function Gx(I,V){let Z=$(301);return Z.name=I,Z.value=V,Z.transformFlags|=4,Z}function og(I,V,Z){return I.name!==V||I.value!==Z?Un(Gx(V,Z),I):I}function dA(I){let V=te(274);return V.name=I,V.transformFlags|=ir(V.name),V.transformFlags&=-67108865,V}function NS(I,V){return I.name!==V?Un(dA(V),I):I}function Po(I){let V=te(280);return V.name=I,V.transformFlags|=ir(V.name)|32,V.transformFlags&=-67108865,V}function rr(I,V){return I.name!==V?Un(Po(V),I):I}function qd(I){let V=$(275);return V.elements=G(I),V.transformFlags|=$a(V.elements),V.transformFlags&=-67108865,V}function bb(I,V){return I.elements!==V?Un(qd(V),I):I}function AS(I,V,Z){let xe=te(276);return xe.isTypeOnly=I,xe.propertyName=V,xe.name=Z,xe.transformFlags|=ir(xe.propertyName)|ir(xe.name),xe.transformFlags&=-67108865,xe}function HE(I,V,Z,xe){return I.isTypeOnly!==V||I.propertyName!==Z||I.name!==xe?Un(AS(V,Z,xe),I):I}function Kx(I,V,Z){let xe=te(277);return xe.modifiers=oc(I),xe.isExportEquals=V,xe.expression=V?a().parenthesizeRightSideOfBinary(64,void 0,Z):a().parenthesizeExpressionOfExportDefault(Z),xe.transformFlags|=$a(xe.modifiers)|ir(xe.expression),xe.transformFlags&=-67108865,xe.jsDoc=void 0,xe}function UE(I,V,Z){return I.modifiers!==V||I.expression!==Z?Un(Kx(V,I.isExportEquals,Z),I):I}function sl(I,V,Z,xe,st){let ui=te(278);return ui.modifiers=oc(I),ui.isTypeOnly=V,ui.exportClause=Z,ui.moduleSpecifier=xe,ui.attributes=ui.assertClause=st,ui.transformFlags|=$a(ui.modifiers)|ir(ui.exportClause)|ir(ui.moduleSpecifier),ui.transformFlags&=-67108865,ui.jsDoc=void 0,ui}function Sb(I,V,Z,xe,st,ui){return I.modifiers!==V||I.isTypeOnly!==Z||I.exportClause!==xe||I.moduleSpecifier!==st||I.attributes!==ui?FT(sl(V,Z,xe,st,ui),I):I}function FT(I,V){return I!==V&&I.modifiers===V.modifiers&&(I.modifiers=V.modifiers),Un(I,V)}function xh(I){let V=$(279);return V.elements=G(I),V.transformFlags|=$a(V.elements),V.transformFlags&=-67108865,V}function MT(I,V){return I.elements!==V?Un(xh(V),I):I}function JE(I,V,Z){let xe=$(281);return xe.isTypeOnly=I,xe.propertyName=rd(V),xe.name=rd(Z),xe.transformFlags|=ir(xe.propertyName)|ir(xe.name),xe.transformFlags&=-67108865,xe.jsDoc=void 0,xe}function y6(I,V,Z,xe){return I.isTypeOnly!==V||I.propertyName!==Z||I.name!==xe?Un(JE(V,Z,xe),I):I}function v6(){let I=te(282);return I.jsDoc=void 0,I}function or(I){let V=$(283);return V.expression=I,V.transformFlags|=ir(V.expression),V.transformFlags&=-67108865,V}function Vf(I,V){return I.expression!==V?Un(or(V),I):I}function ys(I){return $(I)}function PS(I,V,Z=!1){let xe=fA(I,Z?V&&a().parenthesizeNonArrayTypeOfPostfixType(V):V);return xe.postfix=Z,xe}function fA(I,V){let Z=$(I);return Z.type=V,Z}function Uk(I,V,Z){return V.type!==Z?Un(PS(I,Z,V.postfix),V):V}function qn(I,V,Z){return V.type!==Z?Un(fA(I,Z),V):V}function b6(I,V){let Z=te(317);return Z.parameters=oc(I),Z.type=V,Z.transformFlags=$a(Z.parameters)|(Z.type?1:0),Z.jsDoc=void 0,Z.locals=void 0,Z.nextContainer=void 0,Z.typeArguments=void 0,Z}function qE(I,V,Z){return I.parameters!==V||I.type!==Z?Un(b6(V,Z),I):I}function t_(I,V=!1){let Z=te(322);return Z.jsDocPropertyTags=oc(I),Z.isArrayType=V,Z}function i_(I,V,Z){return I.jsDocPropertyTags!==V||I.isArrayType!==Z?Un(t_(V,Z),I):I}function vm(I){let V=$(309);return V.type=I,V}function Jk(I,V){return I.type!==V?Un(vm(V),I):I}function $E(I,V,Z){let xe=te(323);return xe.typeParameters=oc(I),xe.parameters=G(V),xe.type=Z,xe.jsDoc=void 0,xe.locals=void 0,xe.nextContainer=void 0,xe}function d1(I,V,Z,xe){return I.typeParameters!==V||I.parameters!==Z||I.type!==xe?Un($E(V,Z,xe),I):I}function wp(I){let V=Dee(I.kind);return I.tagName.escapedText===Hl(V)?I.tagName:Se(V)}function py(I,V,Z){let xe=$(I);return xe.tagName=V,xe.comment=Z,xe}function Um(I,V,Z){let xe=te(I);return xe.tagName=V,xe.comment=Z,xe}function LS(I,V,Z,xe){let st=py(345,I??Se("template"),xe);return st.constraint=V,st.typeParameters=G(Z),st}function OS(I,V=wp(I),Z,xe,st){return I.tagName!==V||I.constraint!==Z||I.typeParameters!==xe||I.comment!==st?Un(LS(V,Z,xe,st),I):I}function RT(I,V,Z,xe){let st=Um(346,I??Se("typedef"),xe);return st.typeExpression=V,st.fullName=Z,st.name=cte(Z),st.locals=void 0,st.nextContainer=void 0,st}function GE(I,V=wp(I),Z,xe,st){return I.tagName!==V||I.typeExpression!==Z||I.fullName!==xe||I.comment!==st?Un(RT(V,Z,xe,st),I):I}function Xx(I,V,Z,xe,st,ui){let Xn=Um(341,I??Se("param"),ui);return Xn.typeExpression=xe,Xn.name=V,Xn.isNameFirst=!!st,Xn.isBracketed=Z,Xn}function KE(I,V=wp(I),Z,xe,st,ui,Xn){return I.tagName!==V||I.name!==Z||I.isBracketed!==xe||I.typeExpression!==st||I.isNameFirst!==ui||I.comment!==Xn?Un(Xx(V,Z,xe,st,ui,Xn),I):I}function XE(I,V,Z,xe,st,ui){let Xn=Um(348,I??Se("prop"),ui);return Xn.typeExpression=xe,Xn.name=V,Xn.isNameFirst=!!st,Xn.isBracketed=Z,Xn}function YE(I,V=wp(I),Z,xe,st,ui,Xn){return I.tagName!==V||I.name!==Z||I.isBracketed!==xe||I.typeExpression!==st||I.isNameFirst!==ui||I.comment!==Xn?Un(XE(V,Z,xe,st,ui,Xn),I):I}function f0(I,V,Z,xe){let st=Um(338,I??Se("callback"),xe);return st.typeExpression=V,st.fullName=Z,st.name=cte(Z),st.locals=void 0,st.nextContainer=void 0,st}function S6(I,V=wp(I),Z,xe,st){return I.tagName!==V||I.typeExpression!==Z||I.fullName!==xe||I.comment!==st?Un(f0(V,Z,xe,st),I):I}function qk(I,V,Z){let xe=py(339,I??Se("overload"),Z);return xe.typeExpression=V,xe}function Yx(I,V=wp(I),Z,xe){return I.tagName!==V||I.typeExpression!==Z||I.comment!==xe?Un(qk(V,Z,xe),I):I}function f1(I,V,Z){let xe=py(328,I??Se("augments"),Z);return xe.class=V,xe}function xb(I,V=wp(I),Z,xe){return I.tagName!==V||I.class!==Z||I.comment!==xe?Un(f1(V,Z,xe),I):I}function Ig(I,V,Z){let xe=py(329,I??Se("implements"),Z);return xe.class=V,xe}function FS(I,V,Z){let xe=py(347,I??Se("see"),Z);return xe.name=V,xe}function QE(I,V,Z,xe){return I.tagName!==V||I.name!==Z||I.comment!==xe?Un(FS(V,Z,xe),I):I}function Rd(I){let V=$(310);return V.name=I,V}function ZE(I,V){return I.name!==V?Un(Rd(V),I):I}function sv(I,V){let Z=$(311);return Z.left=I,Z.right=V,Z.transformFlags|=ir(Z.left)|ir(Z.right),Z}function eD(I,V,Z){return I.left!==V||I.right!==Z?Un(sv(V,Z),I):I}function $k(I,V){let Z=$(324);return Z.name=I,Z.text=V,Z}function Cb(I,V,Z){return I.name!==V?Un($k(V,Z),I):I}function Qx(I,V){let Z=$(325);return Z.name=I,Z.text=V,Z}function BT(I,V,Z){return I.name!==V?Un(Qx(V,Z),I):I}function Fu(I,V){let Z=$(326);return Z.name=I,Z.text=V,Z}function xf(I,V,Z){return I.name!==V?Un(Fu(V,Z),I):I}function x6(I,V=wp(I),Z,xe){return I.tagName!==V||I.class!==Z||I.comment!==xe?Un(Ig(V,Z,xe),I):I}function n_(I,V,Z){return py(I,V??Se(Dee(I)),Z)}function Tp(I,V,Z=wp(V),xe){return V.tagName!==Z||V.comment!==xe?Un(n_(I,Z,xe),V):V}function _A(I,V,Z,xe){let st=py(I,V??Se(Dee(I)),xe);return st.typeExpression=Z,st}function my(I,V,Z=wp(V),xe,st){return V.tagName!==Z||V.typeExpression!==xe||V.comment!==st?Un(_A(I,Z,xe,st),V):V}function pA(I,V){return py(327,I,V)}function MS(I,V,Z){return I.tagName!==V||I.comment!==Z?Un(pA(V,Z),I):I}function tD(I,V,Z){let xe=Um(340,I??Se(Dee(340)),Z);return xe.typeExpression=V,xe.locals=void 0,xe.nextContainer=void 0,xe}function q8(I,V=wp(I),Z,xe){return I.tagName!==V||I.typeExpression!==Z||I.comment!==xe?Un(tD(V,Z,xe),I):I}function Ml(I,V,Z,xe,st){let ui=py(351,I??Se("import"),st);return ui.importClause=V,ui.moduleSpecifier=Z,ui.attributes=xe,ui.comment=st,ui}function C6(I,V,Z,xe,st,ui){return I.tagName!==V||I.comment!==ui||I.importClause!==Z||I.moduleSpecifier!==xe||I.attributes!==st?Un(Ml(V,Z,xe,st,ui),I):I}function mA(I){let V=$(321);return V.text=I,V}function Zx(I,V){return I.text!==V?Un(mA(V),I):I}function iD(I,V){let Z=$(320);return Z.comment=I,Z.tags=oc(V),Z}function rp(I,V,Z){return I.comment!==V||I.tags!==Z?Un(iD(V,Z),I):I}function jT(I,V,Z){let xe=$(284);return xe.openingElement=I,xe.children=G(V),xe.closingElement=Z,xe.transformFlags|=ir(xe.openingElement)|$a(xe.children)|ir(xe.closingElement)|2,xe}function hA(I,V,Z,xe){return I.openingElement!==V||I.children!==Z||I.closingElement!==xe?Un(jT(V,Z,xe),I):I}function WT(I,V,Z){let xe=$(285);return xe.tagName=I,xe.typeArguments=oc(V),xe.attributes=Z,xe.transformFlags|=ir(xe.tagName)|$a(xe.typeArguments)|ir(xe.attributes)|2,xe.typeArguments&&(xe.transformFlags|=1),xe}function Ep(I,V,Z,xe){return I.tagName!==V||I.typeArguments!==Z||I.attributes!==xe?Un(WT(V,Z,xe),I):I}function gA(I,V,Z){let xe=$(286);return xe.tagName=I,xe.typeArguments=oc(V),xe.attributes=Z,xe.transformFlags|=ir(xe.tagName)|$a(xe.typeArguments)|ir(xe.attributes)|2,V&&(xe.transformFlags|=1),xe}function eC(I,V,Z,xe){return I.tagName!==V||I.typeArguments!==Z||I.attributes!==xe?Un(gA(V,Z,xe),I):I}function Jm(I){let V=$(287);return V.tagName=I,V.transformFlags|=ir(V.tagName)|2,V}function nD(I,V){return I.tagName!==V?Un(Jm(V),I):I}function tC(I,V,Z){let xe=$(288);return xe.openingFragment=I,xe.children=G(V),xe.closingFragment=Z,xe.transformFlags|=ir(xe.openingFragment)|$a(xe.children)|ir(xe.closingFragment)|2,xe}function $8(I,V,Z,xe){return I.openingFragment!==V||I.children!==Z||I.closingFragment!==xe?Un(tC(V,Z,xe),I):I}function zT(I,V){let Z=$(12);return Z.text=I,Z.containsOnlyTriviaWhiteSpaces=!!V,Z.transformFlags|=2,Z}function rD(I,V,Z){return I.text!==V||I.containsOnlyTriviaWhiteSpaces!==Z?Un(zT(V,Z),I):I}function yA(){let I=$(289);return I.transformFlags|=2,I}function RS(){let I=$(290);return I.transformFlags|=2,I}function W_(I,V){let Z=te(291);return Z.name=I,Z.initializer=V,Z.transformFlags|=ir(Z.name)|ir(Z.initializer)|2,Z}function _1(I,V,Z){return I.name!==V||I.initializer!==Z?Un(W_(V,Z),I):I}function p1(I){let V=te(292);return V.properties=G(I),V.transformFlags|=$a(V.properties)|2,V}function k6(I,V){return I.properties!==V?Un(p1(V),I):I}function cc(I){let V=$(293);return V.expression=I,V.transformFlags|=ir(V.expression)|2,V}function sr(I,V){return I.expression!==V?Un(cc(V),I):I}function z_(I,V){let Z=$(294);return Z.dotDotDotToken=I,Z.expression=V,Z.transformFlags|=ir(Z.dotDotDotToken)|ir(Z.expression)|2,Z}function bm(I,V){return I.expression!==V?Un(z_(I.dotDotDotToken,V),I):I}function VT(I,V){let Z=$(295);return Z.namespace=I,Z.name=V,Z.transformFlags|=ir(Z.namespace)|ir(Z.name)|2,Z}function w6(I,V,Z){return I.namespace!==V||I.name!==Z?Un(VT(V,Z),I):I}function vA(I,V){let Z=$(296);return Z.expression=a().parenthesizeExpressionForDisallowedComma(I),Z.statements=G(V),Z.transformFlags|=ir(Z.expression)|$a(Z.statements),Z.jsDoc=void 0,Z}function Gk(I,V,Z){return I.expression!==V||I.statements!==Z?Un(vA(V,Z),I):I}function HT(I){let V=$(297);return V.statements=G(I),V.transformFlags=$a(V.statements),V}function UT(I,V){return I.statements!==V?Un(HT(V),I):I}function sg(I,V){let Z=$(298);switch(Z.token=I,Z.types=G(V),Z.transformFlags|=$a(Z.types),I){case 96:Z.transformFlags|=1024;break;case 119:Z.transformFlags|=1;break;default:return B.assertNever(I)}return Z}function im(I,V){return I.types!==V?Un(sg(I.token,V),I):I}function nm(I,V){let Z=$(299);return Z.variableDeclaration=Yk(I),Z.block=V,Z.transformFlags|=ir(Z.variableDeclaration)|ir(Z.block)|(I?0:64),Z.locals=void 0,Z.nextContainer=void 0,Z}function _0(I,V,Z){return I.variableDeclaration!==V||I.block!==Z?Un(nm(V,Z),I):I}function ag(I,V){let Z=te(303);return Z.name=rd(I),Z.initializer=a().parenthesizeExpressionForDisallowedComma(V),Z.transformFlags|=Dx(Z.name)|ir(Z.initializer),Z.modifiers=void 0,Z.questionToken=void 0,Z.exclamationToken=void 0,Z.jsDoc=void 0,Z}function oD(I,V,Z){return I.name!==V||I.initializer!==Z?pd(ag(V,Z),I):I}function pd(I,V){return I!==V&&(I.modifiers=V.modifiers,I.questionToken=V.questionToken,I.exclamationToken=V.exclamationToken),Un(I,V)}function bA(I,V){let Z=te(304);return Z.name=rd(I),Z.objectAssignmentInitializer=V&&a().parenthesizeExpressionForDisallowedComma(V),Z.transformFlags|=LR(Z.name)|ir(Z.objectAssignmentInitializer)|1024,Z.equalsToken=void 0,Z.modifiers=void 0,Z.questionToken=void 0,Z.exclamationToken=void 0,Z.jsDoc=void 0,Z}function M(I,V,Z){return I.name!==V||I.objectAssignmentInitializer!==Z?Te(bA(V,Z),I):I}function Te(I,V){return I!==V&&(I.modifiers=V.modifiers,I.questionToken=V.questionToken,I.exclamationToken=V.exclamationToken,I.equalsToken=V.equalsToken),Un(I,V)}function Rt(I){let V=te(305);return V.expression=a().parenthesizeExpressionForDisallowedComma(I),V.transformFlags|=ir(V.expression)|128|65536,V.jsDoc=void 0,V}function Ei(I,V){return I.expression!==V?Un(Rt(V),I):I}function Xr(I,V){let Z=te(306);return Z.name=rd(I),Z.initializer=V&&a().parenthesizeExpressionForDisallowedComma(V),Z.transformFlags|=ir(Z.name)|ir(Z.initializer)|1,Z.jsDoc=void 0,Z}function jo(I,V,Z){return I.name!==V||I.initializer!==Z?Un(Xr(V,Z),I):I}function Zo(I,V,Z){let xe=t.createBaseSourceFileNode(307);return xe.statements=G(I),xe.endOfFileToken=V,xe.flags|=Z,xe.text="",xe.fileName="",xe.path="",xe.resolvedPath="",xe.originalFileName="",xe.languageVersion=1,xe.languageVariant=0,xe.scriptKind=0,xe.isDeclarationFile=!1,xe.hasNoDefaultLib=!1,xe.transformFlags|=$a(xe.statements)|ir(xe.endOfFileToken),xe.locals=void 0,xe.nextContainer=void 0,xe.endFlowNode=void 0,xe.nodeCount=0,xe.identifierCount=0,xe.symbolCount=0,xe.parseDiagnostics=void 0,xe.bindDiagnostics=void 0,xe.bindSuggestionDiagnostics=void 0,xe.lineMap=void 0,xe.externalModuleIndicator=void 0,xe.setExternalModuleIndicator=void 0,xe.pragmas=void 0,xe.checkJsDirective=void 0,xe.referencedFiles=void 0,xe.typeReferenceDirectives=void 0,xe.libReferenceDirectives=void 0,xe.amdDependencies=void 0,xe.commentDirectives=void 0,xe.identifiers=void 0,xe.packageJsonLocations=void 0,xe.packageJsonScope=void 0,xe.imports=void 0,xe.moduleAugmentations=void 0,xe.ambientModuleNames=void 0,xe.classifiableNames=void 0,xe.impliedNodeFormat=void 0,xe}function Wo(I){let V=Object.create(I.redirectTarget);return Object.defineProperties(V,{id:{get(){return this.redirectInfo.redirectTarget.id},set(Z){this.redirectInfo.redirectTarget.id=Z}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(Z){this.redirectInfo.redirectTarget.symbol=Z}}}),V.redirectInfo=I,V}function Io(I){let V=Wo(I.redirectInfo);return V.flags|=I.flags&-17,V.fileName=I.fileName,V.path=I.path,V.resolvedPath=I.resolvedPath,V.originalFileName=I.originalFileName,V.packageJsonLocations=I.packageJsonLocations,V.packageJsonScope=I.packageJsonScope,V.emitNode=void 0,V}function b_(I){let V=t.createBaseSourceFileNode(307);V.flags|=I.flags&-17;for(let Z in I)if(!(Nc(V,Z)||!Nc(I,Z))){if(Z==="emitNode"){V.emitNode=void 0;continue}V[Z]=I[Z]}return V}function nf(I){let V=I.redirectInfo?Io(I):b_(I);return r(V,I),V}function p0(I,V,Z,xe,st,ui,Xn){let ns=nf(I);return ns.statements=G(V),ns.isDeclarationFile=Z,ns.referencedFiles=xe,ns.typeReferenceDirectives=st,ns.hasNoDefaultLib=ui,ns.libReferenceDirectives=Xn,ns.transformFlags=$a(ns.statements)|ir(ns.endOfFileToken),ns}function BS(I,V,Z=I.isDeclarationFile,xe=I.referencedFiles,st=I.typeReferenceDirectives,ui=I.hasNoDefaultLib,Xn=I.libReferenceDirectives){return I.statements!==V||I.isDeclarationFile!==Z||I.referencedFiles!==xe||I.typeReferenceDirectives!==st||I.hasNoDefaultLib!==ui||I.libReferenceDirectives!==Xn?Un(p0(I,V,Z,xe,st,ui,Xn),I):I}function rm(I){let V=$(308);return V.sourceFiles=I,V.syntheticFileReferences=void 0,V.syntheticTypeReferences=void 0,V.syntheticLibReferences=void 0,V.hasNoDefaultLib=void 0,V}function JT(I,V){return I.sourceFiles!==V?Un(rm(V),I):I}function Kk(I,V=!1,Z){let xe=$(237);return xe.type=I,xe.isSpread=V,xe.tupleNameSource=Z,xe}function qT(I){let V=$(352);return V._children=I,V}function SA(I){let V=$(353);return V.original=I,Ft(V,I),V}function sD(I,V){let Z=$(354);return Z.expression=I,Z.original=V,Z.transformFlags|=ir(Z.expression)|1,Ft(Z,V),Z}function m0(I,V){return I.expression!==V?Un(sD(V,I.original),I):I}function m1(I){if(Uc(I)&&!D3(I)&&!I.original&&!I.emitNode&&!I.id){if(MO(I))return I.elements;if(Yn(I)&&Q0e(I.operatorToken))return[I.left,I.right]}return I}function jS(I){let V=$(355);return V.elements=G(Wy(I,m1)),V.transformFlags|=$a(V.elements),V}function xA(I,V){return I.elements!==V?Un(jS(V),I):I}function iC(I,V){let Z=$(356);return Z.expression=I,Z.thisArg=V,Z.transformFlags|=ir(Z.expression)|ir(Z.thisArg),Z}function G8(I,V,Z){return I.expression!==V||I.thisArg!==Z?Un(iC(V,Z),I):I}function q9(I){let V=ve(I.escapedText);return V.flags|=I.flags&-17,V.transformFlags=I.transformFlags,r(V,I),RR(V,{...I.emitNode.autoGenerate}),V}function $9(I){let V=ve(I.escapedText);V.flags|=I.flags&-17,V.jsDoc=I.jsDoc,V.flowNode=I.flowNode,V.symbol=I.symbol,V.transformFlags=I.transformFlags,r(V,I);let Z=pE(I);return Z&&uS(V,Z),V}function Lo(I){let V=Oe(I.escapedText);return V.flags|=I.flags&-17,V.transformFlags=I.transformFlags,r(V,I),RR(V,{...I.emitNode.autoGenerate}),V}function Xk(I){let V=Oe(I.escapedText);return V.flags|=I.flags&-17,V.transformFlags=I.transformFlags,r(V,I),V}function Dn(I){if(I===void 0)return I;if(mo(I))return nf(I);if(yl(I))return q9(I);if(et(I))return $9(I);if(Z2(I))return Lo(I);if(xo(I))return Xk(I);let V=_z(I.kind)?t.createBaseNode(I.kind):t.createBaseTokenNode(I.kind);V.flags|=I.flags&-17,V.transformFlags=I.transformFlags,r(V,I);for(let Z in I)Nc(V,Z)||!Nc(I,Z)||(V[Z]=I[Z]);return V}function K8(I,V,Z){return hn(hm(void 0,void 0,void 0,void 0,V?[V]:[],void 0,s1(I,!0)),void 0,Z?[Z]:[])}function T6(I,V,Z){return hn(yh(void 0,void 0,V?[V]:[],void 0,void 0,s1(I,!0)),void 0,Z?[Z]:[])}function nC(){return j_(_e("0"))}function E6(I){return Kx(void 0,!1,I)}function G9(I){return sl(void 0,!1,xh([JE(!1,void 0,I)]))}function X8(I,V){return V==="null"?q.createStrictEquality(I,gt()):V==="undefined"?q.createStrictEquality(I,nC()):q.createStrictEquality(Ad(I),Ce(V))}function Jq(I,V){return V==="null"?q.createStrictInequality(I,gt()):V==="undefined"?q.createStrictInequality(I,nC()):q.createStrictInequality(Ad(I),Ce(V))}function hy(I,V,Z){return Y2(I)?za(hl(I,void 0,V),void 0,void 0,Z):hn(Pu(I,V),void 0,Z)}function qq(I,V,Z){return hy(I,"bind",[V,...Z])}function Y8(I,V,Z){return hy(I,"call",[V,...Z])}function $q(I,V,Z){return hy(I,"apply",[V,Z])}function aD(I,V,Z){return hy(Se(I),V,Z)}function cD(I,V){return hy(I,"slice",V===void 0?[]:[wb(V)])}function K9(I,V){return hy(I,"concat",V)}function rC(I,V,Z){return aD("Object","defineProperty",[I,wb(V),Z])}function Ng(I,V){return aD("Object","getOwnPropertyDescriptor",[I,wb(V)])}function D6(I,V,Z){return aD("Reflect","get",Z?[I,V,Z]:[I,V])}function av(I,V,Z,xe){return aD("Reflect","set",xe?[I,V,Z,xe]:[I,V,Z])}function oC(I,V,Z){return Z?(I.push(ag(V,Z)),!0):!1}function X9(I,V){let Z=[];oC(Z,"enumerable",wb(I.enumerable)),oC(Z,"configurable",wb(I.configurable));let xe=oC(Z,"writable",wb(I.writable));xe=oC(Z,"value",I.value)||xe;let st=oC(Z,"get",I.get);return st=oC(Z,"set",I.set)||st,B.assert(!(xe&&st),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ya(Z,!V)}function cv(I,V){switch(I.kind){case 217:return Sp(I,V);case 216:return Zp(I,I.type,V);case 234:return o1(I,V,I.type);case 238:return kS(I,V,I.type);case 235:return iv(I,V);case 233:return xp(I,V,I.typeArguments);case 354:return m0(I,V)}}function lD(I){return O_(I)&&Uc(I)&&Uc(lS(I))&&Uc(Q0(I))&&!Lt(h4(I))&&!Lt(MR(I))}function Y9(I,V,Z=31){return I&&LH(I,Z)&&!lD(I)?cv(I,Y9(I.expression,V)):V}function Mu(I,V,Z){if(!V)return I;let xe=Jx(V,V.label,Px(V.statement)?Mu(I,V.statement):I);return Z&&Z(V),xe}function CA(I,V){let Z=fc(I);switch(Z.kind){case 80:return V;case 110:case 9:case 10:case 11:return!1;case 209:return Z.elements.length!==0;case 210:return Z.properties.length>0;default:return!0}}function pc(I,V,Z,xe=!1){let st=Cu(I,31),ui,Xn;return mp(st)?(ui=Ue(),Xn=st):PO(st)?(ui=Ue(),Xn=Z!==void 0&&Z<2?Ft(Se("_super"),st):st):ja(st)&8192?(ui=nC(),Xn=a().parenthesizeLeftSideOfAccess(st,!1)):lr(st)?CA(st.expression,xe)?(ui=Re(V),Xn=Pu(Ft(q.createAssignment(ui,st.expression),st.expression),st.name),Ft(Xn,st)):(ui=st.expression,Xn=st):nl(st)?CA(st.expression,xe)?(ui=Re(V),Xn=Ou(Ft(q.createAssignment(ui,st.expression),st.expression),st.argumentExpression),Ft(Xn,st)):(ui=st.expression,Xn=st):(ui=nC(),Xn=a().parenthesizeLeftSideOfAccess(I,!1)),{target:Xn,thisArg:ui}}function le(I,V){return Pu(Qh(Ya([ge(void 0,"value",[nn(void 0,void 0,I,void 0,void 0,void 0)],s1([qt(V)]))])),"value")}function We(I){return I.length>10?jS(I):Of(I,q.createComma)}function lt(I,V,Z,xe=0,st){let ui=st?I&&oz(I):cs(I);if(ui&&et(ui)&&!yl(ui)){let Xn=ic(Ft(Dn(ui),ui),ui.parent);return xe|=ja(ui),Z||(xe|=96),V||(xe|=3072),xe&&Hn(Xn,xe),Xn}return De(I)}function zt(I,V,Z){return lt(I,V,Z,98304)}function fi(I,V,Z,xe){return lt(I,V,Z,32768,xe)}function Ki(I,V,Z){return lt(I,V,Z,16384)}function Sr(I,V,Z){return lt(I,V,Z)}function Co(I,V,Z,xe){let st=Pu(I,Uc(V)?V:Dn(V));Ft(st,V);let ui=0;return xe||(ui|=96),Z||(ui|=3072),ui&&Hn(st,ui),st}function eo(I,V,Z,xe){return I&&Ar(V,32)?Co(I,lt(V),Z,xe):Ki(V,Z,xe)}function to(I,V,Z,xe){let st=Ic(I,V,0,Z);return Za(I,V,st,xe)}function Mo(I){return Da(I.expression)&&I.expression.text==="use strict"}function Dc(){return Kf(qt(Ce("use strict")))}function Ic(I,V,Z=0,xe){B.assert(V.length===0,"Prologue directives should be at the first statement in the target statements array");let st=!1,ui=I.length;for(;Zns&&kh.splice(st,0,...V.slice(ns,Rc)),ns>Xn&&kh.splice(xe,0,...V.slice(Xn,ns)),Xn>ui&&kh.splice(Z,0,...V.slice(ui,Xn)),ui>0)if(Z===0)kh.splice(0,0,...V.slice(0,ui));else{let lv=new Map;for(let $m=0;$m=0;$m--){let I6=V[$m];lv.has(I6.expression.text)||kh.unshift(I6)}}return jw(I)?Ft(G(kh,I.hasTrailingComma),I):I}function h1(I,V){let Z;return typeof V=="number"?Z=ci(V):Z=V,Sl(I)?Sn(I,Z,I.name,I.constraint,I.default):To(I)?Br(I,Z,I.dotDotDotToken,I.name,I.questionToken,I.type,I.initializer):g4(I)?Ji(I,Z,I.typeParameters,I.parameters,I.type):ep(I)?Rr(I,Z,I.name,I.questionToken,I.type):ls(I)?it(I,Z,I.name,I.questionToken??I.exclamationToken,I.type,I.initializer):Z0(I)?dn(I,Z,I.name,I.questionToken,I.typeParameters,I.parameters,I.type):pu(I)?Jr(I,Z,I.asteriskToken,I.name,I.questionToken,I.typeParameters,I.parameters,I.type,I.body):Ol(I)?Ha(I,Z,I.parameters,I.body):Lm(I)?ye(I,Z,I.name,I.parameters,I.type,I.body):qp(I)?He(I,Z,I.name,I.parameters,I.body):sT(I)?_t(I,Z,I.parameters,I.type):Yc(I)?Wm(I,Z,I.asteriskToken,I.name,I.typeParameters,I.parameters,I.type,I.body):rl(I)?t1(I,Z,I.typeParameters,I.parameters,I.type,I.equalsGreaterThanToken,I.body):Qu(I)?Sh(I,Z,I.name,I.typeParameters,I.heritageClauses,I.members):mu(I)?Xe(I,Z,I.declarationList):xu(I)?em(I,Z,I.asteriskToken,I.name,I.typeParameters,I.parameters,I.type,I.body):Zu(I)?$x(I,Z,I.name,I.typeParameters,I.heritageClauses,I.members):vf(I)?Md(I,Z,I.name,I.typeParameters,I.heritageClauses,I.members):$h(I)?ES(I,Z,I.name,I.typeParameters,I.type):dT(I)?aA(I,Z,I.name,I.members):Hu(I)?gb(I,Z,I.name,I.body):Dd(I)?yb(I,Z,I.isTypeOnly,I.name,I.moduleReference):ql(I)?vb(I,Z,I.importClause,I.moduleSpecifier,I.attributes):ll(I)?UE(I,Z,I.expression):Nu(I)?Sb(I,Z,I.isTypeOnly,I.exportClause,I.moduleSpecifier,I.attributes):B.assertNever(I)}function sC(I,V){return To(I)?Br(I,V,I.dotDotDotToken,I.name,I.questionToken,I.type,I.initializer):ls(I)?it(I,V,I.name,I.questionToken??I.exclamationToken,I.type,I.initializer):pu(I)?Jr(I,V,I.asteriskToken,I.name,I.questionToken,I.typeParameters,I.parameters,I.type,I.body):Lm(I)?ye(I,V,I.name,I.parameters,I.type,I.body):qp(I)?He(I,V,I.name,I.parameters,I.body):Qu(I)?Sh(I,V,I.name,I.typeParameters,I.heritageClauses,I.members):Zu(I)?$x(I,V,I.name,I.typeParameters,I.heritageClauses,I.members):B.assertNever(I)}function Gq(I,V){switch(I.kind){case 177:return ye(I,I.modifiers,V,I.parameters,I.type,I.body);case 178:return He(I,I.modifiers,V,I.parameters,I.body);case 174:return Jr(I,I.modifiers,I.asteriskToken,V,I.questionToken,I.typeParameters,I.parameters,I.type,I.body);case 173:return dn(I,I.modifiers,V,I.questionToken,I.typeParameters,I.parameters,I.type);case 172:return it(I,I.modifiers,V,I.questionToken??I.exclamationToken,I.type,I.initializer);case 171:return Rr(I,I.modifiers,V,I.questionToken,I.type);case 303:return oD(I,V,I.initializer)}}function oc(I){return I?G(I):void 0}function rd(I){return typeof I=="string"?Se(I):I}function wb(I){return typeof I=="string"?Ce(I):typeof I=="number"?_e(I):typeof I=="boolean"?I?xt():nt():I}function $T(I){return I&&a().parenthesizeExpressionForDisallowedComma(I)}function Q8(I){return typeof I=="number"?Ge(I):I}function Sm(I){return I&&_ye(I)?Ft(r(dt(),I),I):I}function Yk(I){return typeof I=="string"||I&&!Ur(I)?VE(I,void 0,void 0,void 0):I}function Un(I,V){return I!==V&&(r(I,V),Ft(I,V)),I}}function Dee(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return B.fail(`Unsupported kind: ${B.formatSyntaxKind(e)}`)}}var cS,M7e={};function JTt(e,t){switch(cS||(cS=Rv(99,!1,0)),e){case 15:cS.setText("`"+t+"`");break;case 16:cS.setText("`"+t+"${");break;case 17:cS.setText("}"+t+"${");break;case 18:cS.setText("}"+t+"`");break}let r=cS.scan();if(r===20&&(r=cS.reScanTemplateToken(!1)),cS.isUnterminated())return cS.setText(void 0),M7e;let a;switch(r){case 15:case 16:case 17:case 18:a=cS.getTokenValue();break}return a===void 0||cS.scan()!==1?(cS.setText(void 0),M7e):(cS.setText(void 0),a)}function Dx(e){return e&&et(e)?LR(e):ir(e)}function LR(e){return ir(e)&-67108865}function qTt(e,t){return t|e.transformFlags&134234112}function ir(e){if(!e)return 0;let t=e.transformFlags&~$Tt(e.kind);return pf(e)&&zu(e.name)?qTt(e.name,t):t}function $a(e){return e?e.transformFlags:0}function R7e(e){let t=0;for(let r of e)t|=ir(r);e.transformFlags=t}function $Tt(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 354:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var sH=L0e();function aH(e){return e.flags|=16,e}var GTt={createBaseSourceFileNode:e=>aH(sH.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>aH(sH.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>aH(sH.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>aH(sH.createBaseTokenNode(e)),createBaseNode:e=>aH(sH.createBaseNode(e))},U=PR(4,GTt),B7e;function j7e(e,t,r){return new(B7e||(B7e=gf.getSourceMapSourceConstructor()))(e,t,r)}function cr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=KTt(r,e.emitNode))}return e}function KTt(e,t){let{flags:r,internalFlags:a,leadingComments:u,trailingComments:f,commentRange:p,sourceMapRange:y,tokenSourceMapRanges:g,constantValue:x,helpers:k,startsOnNewLine:T,snippetElement:A,classThis:P,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),a&&(t.internalFlags=a&-9),u&&(t.leadingComments=Fn(u.slice(),t.leadingComments)),f&&(t.trailingComments=Fn(f.slice(),t.trailingComments)),p&&(t.commentRange=p),y&&(t.sourceMapRange=y),g&&(t.tokenSourceMapRanges=XTt(g,t.tokenSourceMapRanges)),x!==void 0&&(t.constantValue=x),k)for(let W of k)t.helpers=Qd(t.helpers,W);return T!==void 0&&(t.startsOnNewLine=T),A!==void 0&&(t.snippetElement=A),P&&(t.classThis=P),R&&(t.assignedName=R),t}function XTt(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}function Bf(e){if(e.emitNode)B.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(D3(e)){if(e.kind===307)return e.emitNode={annotatedNodes:[e]};let t=en(_s(en(e)))??B.fail("Could not determine parsed source file.");Bf(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function Iee(e){var t,r;let a=(r=(t=en(_s(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(a)for(let u of a)u.emitNode=void 0}function OR(e){let t=Bf(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Hn(e,t){return Bf(e).flags=t,e}function Y0(e,t){let r=Bf(e);return r.flags=r.flags|t,e}function FR(e,t){return Bf(e).internalFlags=t,e}function mN(e,t){let r=Bf(e);return r.internalFlags=r.internalFlags|t,e}function lS(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Fa(e,t){return Bf(e).sourceMapRange=t,e}function W7e(e,t){var r,a;return(a=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:a[t]}function j0e(e,t,r){let a=Bf(e),u=a.tokenSourceMapRanges??(a.tokenSourceMapRanges=[]);return u[t]=r,e}function EO(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function cH(e,t){return Bf(e).startsOnNewLine=t,e}function Q0(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function ud(e,t){return Bf(e).commentRange=t,e}function h4(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function fk(e,t){return Bf(e).leadingComments=t,e}function DO(e,t,r,a){return fk(e,hi(h4(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:a,text:r}))}function MR(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function hN(e,t){return Bf(e).trailingComments=t,e}function lH(e,t,r,a){return hN(e,hi(MR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:a,text:r}))}function W0e(e,t){fk(e,h4(t)),hN(e,MR(t));let r=Bf(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function z0e(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function V0e(e,t){let r=Bf(e);return r.constantValue=t,e}function gN(e,t){let r=Bf(e);return r.helpers=hi(r.helpers,t),e}function ib(e,t){if(Lt(t)){let r=Bf(e);for(let a of t)r.helpers=Qd(r.helpers,a)}return e}function z7e(e,t){var r;let a=(r=e.emitNode)==null?void 0:r.helpers;return a?l3(a,t):!1}function uH(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function H0e(e,t,r){let a=e.emitNode,u=a&&a.helpers;if(!Lt(u))return;let f=Bf(t),p=0;for(let y=0;y0&&(u[y-p]=g)}p>0&&(u.length-=p)}function Nee(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function Aee(e,t){let r=Bf(e);return r.snippetElement=t,e}function Pee(e){return Bf(e).internalFlags|=4,e}function U0e(e,t){let r=Bf(e);return r.typeNode=t,e}function J0e(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function uS(e,t){return Bf(e).identifierTypeArguments=t,e}function pE(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function RR(e,t){return Bf(e).autoGenerate=t,e}function V7e(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function q0e(e,t){return Bf(e).generatedImportReference=t,e}function $0e(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var G0e=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(G0e||{});function K0e(e){let t=e.factory,r=l_(()=>FR(t.createTrue(),8)),a=l_(()=>FR(t.createFalse(),8));return{getUnscopedHelperName:u,createDecorateHelper:f,createMetadataHelper:p,createParamHelper:y,createESDecorateHelper:W,createRunInitializersHelper:z,createAssignHelper:q,createAwaitHelper:G,createAsyncGeneratorHelper:$,createAsyncDelegatorHelper:te,createAsyncValuesHelper:ne,createRestHelper:_e,createAwaiterHelper:ce,createExtendsHelper:ae,createTemplateObjectHelper:Ce,createSpreadArrayHelper:he,createPropKeyHelper:ue,createSetFunctionNameHelper:Ee,createValuesHelper:ve,createReadHelper:be,createGeneratorHelper:Se,createImportStarHelper:Re,createImportStarCallbackHelper:ie,createImportDefaultHelper:ke,createExportStarHelper:De,createClassPrivateFieldGetHelper:Oe,createClassPrivateFieldSetHelper:we,createClassPrivateFieldInHelper:Ae,createAddDisposableResourceHelper:Fe,createDisposeResourcesHelper:Tt};function u(Be){return Hn(t.createIdentifier(Be),8196)}function f(Be,Ge,Ke,Ue){e.requestEmitHelper(YTt);let gt=[];return gt.push(t.createArrayLiteralExpression(Be,!0)),gt.push(Ge),Ke&&(gt.push(Ke),Ue&>.push(Ue)),t.createCallExpression(u("__decorate"),void 0,gt)}function p(Be,Ge){return e.requestEmitHelper(QTt),t.createCallExpression(u("__metadata"),void 0,[t.createStringLiteral(Be),Ge])}function y(Be,Ge,Ke){return e.requestEmitHelper(ZTt),Ft(t.createCallExpression(u("__param"),void 0,[t.createNumericLiteral(Ge+""),Be]),Ke)}function g(Be){let Ge=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),Be.name),t.createPropertyAssignment(t.createIdentifier("metadata"),Be.metadata)];return t.createObjectLiteralExpression(Ge)}function x(Be){let Ge=Be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Be.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Ge))}function k(Be){let Ge=Be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Be.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(Ge,t.createIdentifier("value")))])))}function T(Be){let Ge=Be.computed?Be.name:et(Be.name)?t.createStringLiteralFromNode(Be.name):Be.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(Ge,103,t.createIdentifier("obj"))))}function A(Be,Ge){let Ke=[];return Ke.push(T(Be)),Ge.get&&Ke.push(x(Be)),Ge.set&&Ke.push(k(Be)),t.createObjectLiteralExpression(Ke)}function P(Be){let Ge=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(Be.kind)),t.createPropertyAssignment(t.createIdentifier("name"),Be.name.computed?Be.name.name:t.createStringLiteralFromNode(Be.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),Be.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),Be.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),A(Be.name,Be.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),Be.metadata)];return t.createObjectLiteralExpression(Ge)}function R(Be){return Be.kind==="class"?g(Be):P(Be)}function W(Be,Ge,Ke,Ue,gt,xt){return e.requestEmitHelper(e2t),t.createCallExpression(u("__esDecorate"),void 0,[Be??t.createNull(),Ge??t.createNull(),Ke,R(Ue),gt,xt])}function z(Be,Ge,Ke){return e.requestEmitHelper(t2t),t.createCallExpression(u("__runInitializers"),void 0,Ke?[Be,Ge,Ke]:[Be,Ge])}function q(Be){return Oa(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,Be):(e.requestEmitHelper(i2t),t.createCallExpression(u("__assign"),void 0,Be))}function G(Be){return e.requestEmitHelper(dH),t.createCallExpression(u("__await"),void 0,[Be])}function $(Be,Ge){return e.requestEmitHelper(dH),e.requestEmitHelper(n2t),(Be.emitNode||(Be.emitNode={})).flags|=1572864,t.createCallExpression(u("__asyncGenerator"),void 0,[Ge?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),Be])}function te(Be){return e.requestEmitHelper(dH),e.requestEmitHelper(r2t),t.createCallExpression(u("__asyncDelegator"),void 0,[Be])}function ne(Be){return e.requestEmitHelper(o2t),t.createCallExpression(u("__asyncValues"),void 0,[Be])}function _e(Be,Ge,Ke,Ue){e.requestEmitHelper(s2t);let gt=[],xt=0;for(let nt=0;nt{let a="";for(let u=0;u= 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; + };`},QTt={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + };`},ZTt={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + };`},e2t={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` + var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; + };`},t2t={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` + var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; + };`},i2t={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` + var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(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); + };`},dH={name:"typescript:await",importName:"__await",scoped:!1,text:` + var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},n2t={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[dH],text:` + var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + };`},r2t={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[dH],text:` + var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + 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; } + };`},o2t={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` + var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + 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); + 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); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + };`},s2t={name:"typescript:rest",importName:"__rest",scoped:!1,text:` + var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + };`},a2t={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` + var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + };`},c2t={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` + var __extends = (this && this.__extends) || (function () { + 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); + }; + + return function (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 __()); + }; + })();`},l2t={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` + var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + };`},u2t={name:"typescript:read",importName:"__read",scoped:!1,text:` + var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + };`},d2t={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` + var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + };`},f2t={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + var __propKey = (this && this.__propKey) || function (x) { + return typeof x === "symbol" ? x : "".concat(x); + };`},_2t={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` + var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + };`},p2t={name:"typescript:values",importName:"__values",scoped:!1,text:` + var __values = (this && this.__values) || function(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."); + };`},m2t={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); + return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + };`},Y0e={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` + var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }));`},h2t={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` + var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + });`},U7e={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[Y0e,h2t],priority:2,text:` + var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + };`},g2t={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` + var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + };`},y2t={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[Y0e],priority:2,text:` + var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); + };`},v2t={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` + var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (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); + };`},b2t={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` + var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (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; + };`},S2t={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` + var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + };`},x2t={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose, inner; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + if (async) inner = dispose; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };`},C2t={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + var r, s = 0; + function next() { + while (r = env.stack.pop()) { + try { + if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); + if (r.dispose) { + var result = r.dispose.call(r.value); + if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + else s |= 1; + } + catch (e) { + fail(e); + } + } + if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });`},fH={name:"typescript:async-super",scoped:!0,text:H7e` + const ${"_superIndex"} = name => super[name];`},_H={name:"typescript:advanced-async-super",scoped:!0,text:H7e` + 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 IO(e,t){return Gs(e)&&et(e.expression)&&(ja(e.expression)&8192)!==0&&e.expression.escapedText===t}function Z_(e){return e.kind===9}function NO(e){return e.kind===10}function Da(e){return e.kind===11}function yN(e){return e.kind===12}function Lee(e){return e.kind===14}function mE(e){return e.kind===15}function vN(e){return e.kind===16}function Oee(e){return e.kind===17}function pH(e){return e.kind===18}function mH(e){return e.kind===26}function Q0e(e){return e.kind===28}function Fee(e){return e.kind===40}function Mee(e){return e.kind===41}function BR(e){return e.kind===42}function jR(e){return e.kind===54}function Ix(e){return e.kind===58}function Z0e(e){return e.kind===59}function hH(e){return e.kind===29}function eye(e){return e.kind===39}function et(e){return e.kind===80}function xo(e){return e.kind===81}function bN(e){return e.kind===95}function gH(e){return e.kind===90}function AO(e){return e.kind===134}function tye(e){return e.kind===131}function Ree(e){return e.kind===135}function iye(e){return e.kind===148}function SN(e){return e.kind===126}function nye(e){return e.kind===128}function rye(e){return e.kind===164}function oye(e){return e.kind===129}function PO(e){return e.kind===108}function LO(e){return e.kind===102}function sye(e){return e.kind===84}function P_(e){return e.kind===166}function Ma(e){return e.kind===167}function Sl(e){return e.kind===168}function To(e){return e.kind===169}function Td(e){return e.kind===170}function ep(e){return e.kind===171}function ls(e){return e.kind===172}function Z0(e){return e.kind===173}function pu(e){return e.kind===174}function Yl(e){return e.kind===175}function Ol(e){return e.kind===176}function Lm(e){return e.kind===177}function qp(e){return e.kind===178}function xN(e){return e.kind===179}function WR(e){return e.kind===180}function sT(e){return e.kind===181}function CN(e){return e.kind===182}function pm(e){return e.kind===183}function Qy(e){return e.kind===184}function g4(e){return e.kind===185}function aT(e){return e.kind===186}function L_(e){return e.kind===187}function zR(e){return e.kind===188}function kN(e){return e.kind===189}function y4(e){return e.kind===202}function yH(e){return e.kind===190}function vH(e){return e.kind===191}function Nx(e){return e.kind===192}function wN(e){return e.kind===193}function cT(e){return e.kind===194}function hE(e){return e.kind===195}function gE(e){return e.kind===196}function v4(e){return e.kind===197}function _k(e){return e.kind===198}function lT(e){return e.kind===199}function yE(e){return e.kind===200}function dS(e){return e.kind===201}function ey(e){return e.kind===205}function Bee(e){return e.kind===204}function aye(e){return e.kind===203}function Om(e){return e.kind===206}function fS(e){return e.kind===207}function Wa(e){return e.kind===208}function yf(e){return e.kind===209}function ba(e){return e.kind===210}function lr(e){return e.kind===211}function nl(e){return e.kind===212}function Gs(e){return e.kind===213}function uT(e){return e.kind===214}function pk(e){return e.kind===215}function jee(e){return e.kind===216}function O_(e){return e.kind===217}function Yc(e){return e.kind===218}function rl(e){return e.kind===219}function cye(e){return e.kind===220}function b4(e){return e.kind===221}function TN(e){return e.kind===222}function Ax(e){return e.kind===223}function mk(e){return e.kind===224}function Wee(e){return e.kind===225}function Yn(e){return e.kind===226}function EN(e){return e.kind===227}function bH(e){return e.kind===228}function SH(e){return e.kind===229}function fh(e){return e.kind===230}function Qu(e){return e.kind===231}function Ed(e){return e.kind===232}function nb(e){return e.kind===233}function OO(e){return e.kind===234}function xH(e){return e.kind===238}function DN(e){return e.kind===235}function FO(e){return e.kind===236}function J7e(e){return e.kind===237}function zee(e){return e.kind===354}function MO(e){return e.kind===355}function S4(e){return e.kind===239}function lye(e){return e.kind===240}function Ds(e){return e.kind===241}function mu(e){return e.kind===243}function Vee(e){return e.kind===242}function Ud(e){return e.kind===244}function hk(e){return e.kind===245}function q7e(e){return e.kind===246}function Hee(e){return e.kind===247}function gk(e){return e.kind===248}function CH(e){return e.kind===249}function VR(e){return e.kind===250}function $7e(e){return e.kind===251}function G7e(e){return e.kind===252}function qh(e){return e.kind===253}function uye(e){return e.kind===254}function RO(e){return e.kind===255}function Px(e){return e.kind===256}function Uee(e){return e.kind===257}function vE(e){return e.kind===258}function K7e(e){return e.kind===259}function Ur(e){return e.kind===260}function ef(e){return e.kind===261}function xu(e){return e.kind===262}function Zu(e){return e.kind===263}function vf(e){return e.kind===264}function $h(e){return e.kind===265}function dT(e){return e.kind===266}function Hu(e){return e.kind===267}function ty(e){return e.kind===268}function BO(e){return e.kind===269}function HR(e){return e.kind===270}function Dd(e){return e.kind===271}function ql(e){return e.kind===272}function Zg(e){return e.kind===273}function X7e(e){return e.kind===302}function dye(e){return e.kind===300}function Y7e(e){return e.kind===301}function bE(e){return e.kind===300}function fye(e){return e.kind===301}function Xv(e){return e.kind===274}function Zy(e){return e.kind===280}function iy(e){return e.kind===275}function F_(e){return e.kind===276}function ll(e){return e.kind===277}function Nu(e){return e.kind===278}function _h(e){return e.kind===279}function Gf(e){return e.kind===281}function kH(e){return e.kind===80||e.kind===11}function Q7e(e){return e.kind===282}function _ye(e){return e.kind===353}function IN(e){return e.kind===356}function rb(e){return e.kind===283}function Yv(e){return e.kind===284}function SE(e){return e.kind===285}function ny(e){return e.kind===286}function fT(e){return e.kind===287}function _T(e){return e.kind===288}function xE(e){return e.kind===289}function pye(e){return e.kind===290}function ry(e){return e.kind===291}function pT(e){return e.kind===292}function NN(e){return e.kind===293}function jO(e){return e.kind===294}function e0(e){return e.kind===295}function x4(e){return e.kind===296}function WO(e){return e.kind===297}function $p(e){return e.kind===298}function mT(e){return e.kind===299}function ed(e){return e.kind===303}function jf(e){return e.kind===304}function Qv(e){return e.kind===305}function _S(e){return e.kind===306}function mo(e){return e.kind===307}function mye(e){return e.kind===308}function yk(e){return e.kind===309}function zO(e){return e.kind===310}function vk(e){return e.kind===311}function hye(e){return e.kind===324}function gye(e){return e.kind===325}function Z7e(e){return e.kind===326}function yye(e){return e.kind===312}function vye(e){return e.kind===313}function C4(e){return e.kind===314}function wH(e){return e.kind===315}function Jee(e){return e.kind===316}function k4(e){return e.kind===317}function TH(e){return e.kind===318}function eMe(e){return e.kind===319}function t0(e){return e.kind===320}function CE(e){return e.kind===322}function ob(e){return e.kind===323}function AN(e){return e.kind===328}function tMe(e){return e.kind===330}function bye(e){return e.kind===332}function qee(e){return e.kind===338}function $ee(e){return e.kind===333}function Gee(e){return e.kind===334}function Kee(e){return e.kind===335}function Xee(e){return e.kind===336}function EH(e){return e.kind===337}function w4(e){return e.kind===339}function Yee(e){return e.kind===331}function iMe(e){return e.kind===347}function UR(e){return e.kind===340}function ph(e){return e.kind===341}function DH(e){return e.kind===342}function Qee(e){return e.kind===343}function VO(e){return e.kind===344}function Gh(e){return e.kind===345}function kE(e){return e.kind===346}function nMe(e){return e.kind===327}function Sye(e){return e.kind===348}function IH(e){return e.kind===329}function NH(e){return e.kind===350}function rMe(e){return e.kind===349}function oy(e){return e.kind===351}function T4(e){return e.kind===352}var HO=new WeakMap;function Zee(e,t){var r;let a=e.kind;return _z(a)?a===352?e._children:(r=HO.get(t))==null?void 0:r.get(e):F}function xye(e,t,r){e.kind===352&&B.fail("Should not need to re-set the children of a SyntaxList.");let a=HO.get(t);return a===void 0&&(a=new WeakMap,HO.set(t,a)),a.set(e,r),r}function ete(e,t){var r;e.kind===352&&B.fail("Did not expect to unset the children of a SyntaxList."),(r=HO.get(t))==null||r.delete(e)}function Cye(e,t){let r=HO.get(e);r!==void 0&&(HO.delete(e),HO.set(t,r))}function JR(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function wE(e,t,r,a){if(Ma(r))return Ft(e.createElementAccessExpression(t,r.expression),a);{let u=Ft(Bv(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return Y0(u,128),u}}function kye(e,t){let r=Sk.createIdentifier(e||"React");return ic(r,_s(t)),r}function wye(e,t,r){if(P_(t)){let a=wye(e,t.left,r),u=e.createIdentifier(mr(t.right));return u.escapedText=t.right.escapedText,e.createPropertyAccessExpression(a,u)}else return kye(mr(t),r)}function tte(e,t,r,a){return t?wye(e,t,a):e.createPropertyAccessExpression(kye(r,a),"createElement")}function k2t(e,t,r,a){return t?wye(e,t,a):e.createPropertyAccessExpression(kye(r,a),"Fragment")}function Tye(e,t,r,a,u,f){let p=[r];if(a&&p.push(a),u&&u.length>0)if(a||p.push(e.createNull()),u.length>1)for(let y of u)Kf(y),p.push(y);else p.push(u[0]);return Ft(e.createCallExpression(t,void 0,p),f)}function Eye(e,t,r,a,u,f,p){let g=[k2t(e,r,a,f),e.createNull()];if(u&&u.length>0)if(u.length>1)for(let x of u)Kf(x),g.push(x);else g.push(u[0]);return Ft(e.createCallExpression(tte(e,t,a,f),void 0,g),p)}function ite(e,t,r){if(ef(t)){let a=Ta(t.declarations),u=e.updateVariableDeclaration(a,a.name,void 0,void 0,r);return Ft(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[u])),t)}else{let a=Ft(e.createAssignment(t,r),t);return Ft(e.createExpressionStatement(a),t)}}function qR(e,t){if(P_(t)){let r=qR(e,t.left),a=ic(Ft(e.cloneNode(t.right),t.right),t.right.parent);return Ft(e.createPropertyAccessExpression(r,a),t)}else return ic(Ft(e.cloneNode(t),t),t.parent)}function nte(e,t){return et(t)?e.createStringLiteralFromNode(t):Ma(t)?ic(Ft(e.cloneNode(t.expression),t.expression),t.expression.parent):ic(Ft(e.cloneNode(t),t),t.parent)}function w2t(e,t,r,a,u){let{firstAccessor:f,getAccessor:p,setAccessor:y}=Sx(t,r);if(r===f)return Ft(e.createObjectDefinePropertyCall(a,nte(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:p&&Ft(cr(e.createFunctionExpression(Bw(p),void 0,void 0,void 0,p.parameters,void 0,p.body),p),p),set:y&&Ft(cr(e.createFunctionExpression(Bw(y),void 0,void 0,void 0,y.parameters,void 0,y.body),y),y)},!u)),f)}function T2t(e,t,r){return cr(Ft(e.createAssignment(wE(e,r,t.name,t.name),t.initializer),t),t)}function E2t(e,t,r){return cr(Ft(e.createAssignment(wE(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function D2t(e,t,r){return cr(Ft(e.createAssignment(wE(e,r,t.name,t.name),cr(Ft(e.createFunctionExpression(Bw(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Dye(e,t,r,a){switch(r.name&&xo(r.name)&&B.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return w2t(e,t.properties,r,a,!!t.multiLine);case 303:return T2t(e,r,a);case 304:return E2t(e,r,a);case 174:return D2t(e,r,a)}}function AH(e,t,r,a,u){let f=t.operator;B.assert(f===46||f===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let p=e.createTempVariable(a);r=e.createAssignment(p,r),Ft(r,t.operand);let y=mk(t)?e.createPrefixUnaryExpression(f,p):e.createPostfixUnaryExpression(p,f);return Ft(y,t),u&&(y=e.createAssignment(u,y),Ft(y,t)),r=e.createComma(r,y),Ft(r,t),Wee(t)&&(r=e.createComma(r,p),Ft(r,t)),r}function rte(e){return(ja(e)&65536)!==0}function sb(e){return(ja(e)&32768)!==0}function PH(e){return(ja(e)&16384)!==0}function oMe(e){return Da(e.expression)&&e.expression.text==="use strict"}function ote(e){for(let t of e)if(H0(t)){if(oMe(t))return t}else break}function Iye(e){let t=mc(e);return t!==void 0&&H0(t)&&oMe(t)}function $R(e){return e.kind===226&&e.operatorToken.kind===28}function UO(e){return $R(e)||MO(e)}function TE(e){return O_(e)&&Jn(e)&&!!KC(e)}function JO(e){let t=XC(e);return B.assertIsDefined(t),t}function LH(e,t=31){switch(e.kind){case 217:return t&-2147483648&&TE(e)?!1:(t&1)!==0;case 216:case 234:case 238:return(t&2)!==0;case 233:return(t&16)!==0;case 235:return(t&4)!==0;case 354:return(t&8)!==0}return!1}function Cu(e,t=31){for(;LH(e,t);)e=e.expression;return e}function Nye(e,t=31){let r=e.parent;for(;LH(r,t);)r=r.parent,B.assert(r);return r}function Kf(e){return cH(e,!0)}function OH(e){let t=El(e,mo),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Aye(e){let t=El(e,mo),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function ste(e,t,r,a,u,f,p){if(a.importHelpers&&HI(r,a)){let y,g=p_(a);if(g>=5&&g<=99||AE(r,a)===99){let x=uH(r);if(x){let k=[];for(let T of x)if(!T.scoped){let A=T.importName;A&&jc(k,A)}if(Lt(k)){k.sort(Ff),y=e.createNamedImports(_i(k,P=>Az(r,P)?e.createImportSpecifier(!1,void 0,e.createIdentifier(P)):e.createImportSpecifier(!1,e.createIdentifier(P),t.getUnscopedHelperName(P))));let T=El(r,mo),A=Bf(T);A.externalHelpers=!0}}}else{let x=I2t(e,r,a,u,f||p);x&&(y=e.createNamespaceImport(x))}if(y){let x=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,y),e.createStringLiteral(ek),void 0);return mN(x,2),x}}}function I2t(e,t,r,a,u){if(r.importHelpers&&HI(t,r)){let f=OH(t);if(f)return f;let p=(a||qv(r)&&u)&&m8(t,r)<4;if(!p){let y=uH(t);if(y){for(let g of y)if(!g.scoped){p=!0;break}}}if(p){let y=El(t,mo),g=Bf(y);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(ek))}}}function E4(e,t,r){let a=YP(t);if(a&&!KI(t)&&!Lz(t)){let u=a.name;return u.kind===11?e.getGeneratedNameForNode(t):yl(u)?u:e.createIdentifier(Vw(r,u)||mr(u))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function PN(e,t,r,a,u,f){let p=GI(t);if(p&&Da(p))return A2t(t,a,e,u,f)||N2t(e,p,r)||e.cloneNode(p)}function N2t(e,t,r){let a=r.renamedDependencies&&r.renamedDependencies.get(t.text);return a?e.createStringLiteral(a):void 0}function GR(e,t,r,a){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&a.outFile)return e.createStringLiteral(OZ(r,t.fileName))}}function A2t(e,t,r,a,u){return GR(r,a.getExternalModuleFileFromDeclaration(e),t,u)}function KR(e){if(_M(e))return e.initializer;if(ed(e)){let t=e.initializer;return Hd(t,!0)?t.right:void 0}if(jf(e))return e.objectAssignmentInitializer;if(Hd(e,!0))return e.right;if(fh(e))return KR(e.expression)}function Lx(e){if(_M(e))return e.name;if(G1(e)){switch(e.kind){case 303:return Lx(e.initializer);case 304:return e.name;case 305:return Lx(e.expression)}return}return Hd(e,!0)?Lx(e.left):fh(e)?Lx(e.expression):e}function FH(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function ate(e){let t=MH(e);return B.assert(!!t||Qv(e),"Invalid property name for binding element."),t}function MH(e){switch(e.kind){case 208:if(e.propertyName){let r=e.propertyName;return xo(r)?B.failBadSyntaxKind(r):Ma(r)&&sMe(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return xo(r)?B.failBadSyntaxKind(r):Ma(r)&&sMe(r.expression)?r.expression:r}break;case 305:return e.name&&xo(e.name)?B.failBadSyntaxKind(e.name):e.name}let t=Lx(e);if(t&&zu(t))return t}function sMe(e){let t=e.kind;return t===11||t===9}function D4(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function cte(e){if(e){let t=e;for(;;){if(et(t)||!t.body)return et(t)?t:t.name;t=t.body}}}function aMe(e){let t=e.kind;return t===176||t===178}function Pye(e){let t=e.kind;return t===176||t===177||t===178}function lte(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function Lye(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Oye(e){return Ix(e)||jR(e)}function Fye(e){return et(e)||v4(e)}function Mye(e){return iye(e)||Fee(e)||Mee(e)}function Rye(e){return Ix(e)||Fee(e)||Mee(e)}function Bye(e){return et(e)||Da(e)}function P2t(e){return e===43}function L2t(e){return e===42||e===44||e===45}function O2t(e){return P2t(e)||L2t(e)}function F2t(e){return e===40||e===41}function M2t(e){return F2t(e)||O2t(e)}function R2t(e){return e===48||e===49||e===50}function ute(e){return R2t(e)||M2t(e)}function B2t(e){return e===30||e===33||e===32||e===34||e===104||e===103}function j2t(e){return B2t(e)||ute(e)}function W2t(e){return e===35||e===37||e===36||e===38}function z2t(e){return W2t(e)||j2t(e)}function V2t(e){return e===51||e===52||e===53}function H2t(e){return V2t(e)||z2t(e)}function U2t(e){return e===56||e===57}function J2t(e){return U2t(e)||H2t(e)}function q2t(e){return e===61||J2t(e)||Q1(e)}function $2t(e){return q2t(e)||e===28}function jye(e){return $2t(e.kind)}var dte;(e=>{function t(k,T,A,P,R,W,z){let q=T>0?R[T-1]:void 0;return B.assertEqual(A[T],t),R[T]=k.onEnter(P[T],q,z),A[T]=y(k,t),T}e.enter=t;function r(k,T,A,P,R,W,z){B.assertEqual(A[T],r),B.assertIsDefined(k.onLeft),A[T]=y(k,r);let q=k.onLeft(P[T].left,R[T],P[T]);return q?(x(T,P,q),g(T,A,P,R,q)):T}e.left=r;function a(k,T,A,P,R,W,z){return B.assertEqual(A[T],a),B.assertIsDefined(k.onOperator),A[T]=y(k,a),k.onOperator(P[T].operatorToken,R[T],P[T]),T}e.operator=a;function u(k,T,A,P,R,W,z){B.assertEqual(A[T],u),B.assertIsDefined(k.onRight),A[T]=y(k,u);let q=k.onRight(P[T].right,R[T],P[T]);return q?(x(T,P,q),g(T,A,P,R,q)):T}e.right=u;function f(k,T,A,P,R,W,z){B.assertEqual(A[T],f),A[T]=y(k,f);let q=k.onExit(P[T],R[T]);if(T>0){if(T--,k.foldState){let G=A[T]===f?"right":"left";R[T]=k.foldState(R[T],q,G)}}else W.value=q;return T}e.exit=f;function p(k,T,A,P,R,W,z){return B.assertEqual(A[T],p),T}e.done=p;function y(k,T){switch(T){case t:if(k.onLeft)return r;case r:if(k.onOperator)return a;case a:if(k.onRight)return u;case u:return f;case f:return p;case p:return p;default:B.fail("Invalid state")}}e.nextState=y;function g(k,T,A,P,R){return k++,T[k]=t,A[k]=R,P[k]=void 0,k}function x(k,T,A){if(B.shouldAssert(2))for(;k>=0;)B.assert(T[k]!==A,"Circular traversal detected."),k--}})(dte||(dte={}));var G2t=class{constructor(e,t,r,a,u,f){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=a,this.onExit=u,this.foldState=f}};function RH(e,t,r,a,u,f){let p=new G2t(e,t,r,a,u,f);return y;function y(g,x){let k={value:void 0},T=[dte.enter],A=[g],P=[void 0],R=0;for(;T[R]!==dte.done;)R=T[R](p,R,T,A,P,k,x);return B.assertEqual(R,0),k.value}}function K2t(e){return e===95||e===90}function XR(e){let t=e.kind;return K2t(t)}function Wye(e,t){if(t!==void 0)return t.length===0?t:Ft(e.createNodeArray([],t.hasTrailingComma),t)}function YR(e){var t;let r=e.emitNode.autoGenerate;if(r.flags&4){let a=r.id,u=e,f=u.original;for(;f;){u=f;let p=(t=u.emitNode)==null?void 0:t.autoGenerate;if(Bv(u)&&(p===void 0||p.flags&4&&p.id!==a))break;f=u.original}return u}return e}function I4(e,t){return typeof e=="object"?bk(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function X2t(e,t){return typeof e=="string"?e:Y2t(e,B.checkDefined(t))}function Y2t(e,t){return Z2(e)?t(e).slice(1):yl(e)?t(e):xo(e)?e.escapedText.slice(1):mr(e)}function bk(e,t,r,a,u){return t=I4(t,u),a=I4(a,u),r=X2t(r,u),`${e?"#":""}${t}${r}${a}`}function fte(e,t,r,a){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,a)}function zye(e,t,r,a,u=e.createThis()){return e.createGetAccessorDeclaration(r,a,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(u,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Vye(e,t,r,a,u=e.createThis()){return e.createSetAccessorDeclaration(r,a,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(u,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function BH(e){let t=e.expression;for(;;){if(t=Cu(t),MO(t)){t=pa(t.elements);continue}if($R(t)){t=t.right;continue}if(Hd(t,!0)&&yl(t.left))return t;break}}function Q2t(e){return O_(e)&&Uc(e)&&!e.emitNode}function jH(e,t){if(Q2t(e))jH(e.expression,t);else if($R(e))jH(e.left,t),jH(e.right,t);else if(MO(e))for(let r of e.elements)jH(r,t);else t.push(e)}function Hye(e){let t=[];return jH(e,t),t}function QR(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of D4(e)){let r=Lx(t);if(r&&R3(r)&&(r.transformFlags&65536||r.transformFlags&128&&QR(r)))return!0}return!1}function Ft(e,t){return t?Qg(e,t.pos,t.end):e}function Kh(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function hT(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var cMe,lMe,uMe,dMe,fMe,Uye={createBaseSourceFileNode:e=>new(fMe||(fMe=gf.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(uMe||(uMe=gf.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(dMe||(dMe=gf.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(lMe||(lMe=gf.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(cMe||(cMe=gf.getNodeConstructor()))(e,-1,-1)},Sk=PR(1,Uye);function mi(e,t){return t&&e(t)}function ho(e,t,r){if(r){if(t)return t(r);for(let a of r){let u=e(a);if(u)return u}}}function _te(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function ZR(e){return re(e.statements,Z2t)||eEt(e)}function Z2t(e){return Kh(e)&&tEt(e,95)||Dd(e)&&rb(e.moduleReference)||ql(e)||ll(e)||Nu(e)?e:void 0}function eEt(e){return e.flags&8388608?_Me(e):void 0}function _Me(e){return iEt(e)?e:ws(e,_Me)}function tEt(e,t){return Lt(e.modifiers,r=>r.kind===t)}function iEt(e){return FO(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var nEt={166:function(t,r,a){return mi(r,t.left)||mi(r,t.right)},168:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||mi(r,t.constraint)||mi(r,t.default)||mi(r,t.expression)},304:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||mi(r,t.questionToken)||mi(r,t.exclamationToken)||mi(r,t.equalsToken)||mi(r,t.objectAssignmentInitializer)},305:function(t,r,a){return mi(r,t.expression)},169:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.dotDotDotToken)||mi(r,t.name)||mi(r,t.questionToken)||mi(r,t.type)||mi(r,t.initializer)},172:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||mi(r,t.questionToken)||mi(r,t.exclamationToken)||mi(r,t.type)||mi(r,t.initializer)},171:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||mi(r,t.questionToken)||mi(r,t.type)||mi(r,t.initializer)},303:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||mi(r,t.questionToken)||mi(r,t.exclamationToken)||mi(r,t.initializer)},260:function(t,r,a){return mi(r,t.name)||mi(r,t.exclamationToken)||mi(r,t.type)||mi(r,t.initializer)},208:function(t,r,a){return mi(r,t.dotDotDotToken)||mi(r,t.propertyName)||mi(r,t.name)||mi(r,t.initializer)},181:function(t,r,a){return ho(r,a,t.modifiers)||ho(r,a,t.typeParameters)||ho(r,a,t.parameters)||mi(r,t.type)},185:function(t,r,a){return ho(r,a,t.modifiers)||ho(r,a,t.typeParameters)||ho(r,a,t.parameters)||mi(r,t.type)},184:function(t,r,a){return ho(r,a,t.modifiers)||ho(r,a,t.typeParameters)||ho(r,a,t.parameters)||mi(r,t.type)},179:pMe,180:pMe,174:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.asteriskToken)||mi(r,t.name)||mi(r,t.questionToken)||mi(r,t.exclamationToken)||ho(r,a,t.typeParameters)||ho(r,a,t.parameters)||mi(r,t.type)||mi(r,t.body)},173:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||mi(r,t.questionToken)||ho(r,a,t.typeParameters)||ho(r,a,t.parameters)||mi(r,t.type)},176:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||ho(r,a,t.typeParameters)||ho(r,a,t.parameters)||mi(r,t.type)||mi(r,t.body)},177:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||ho(r,a,t.typeParameters)||ho(r,a,t.parameters)||mi(r,t.type)||mi(r,t.body)},178:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||ho(r,a,t.typeParameters)||ho(r,a,t.parameters)||mi(r,t.type)||mi(r,t.body)},262:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.asteriskToken)||mi(r,t.name)||ho(r,a,t.typeParameters)||ho(r,a,t.parameters)||mi(r,t.type)||mi(r,t.body)},218:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.asteriskToken)||mi(r,t.name)||ho(r,a,t.typeParameters)||ho(r,a,t.parameters)||mi(r,t.type)||mi(r,t.body)},219:function(t,r,a){return ho(r,a,t.modifiers)||ho(r,a,t.typeParameters)||ho(r,a,t.parameters)||mi(r,t.type)||mi(r,t.equalsGreaterThanToken)||mi(r,t.body)},175:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.body)},183:function(t,r,a){return mi(r,t.typeName)||ho(r,a,t.typeArguments)},182:function(t,r,a){return mi(r,t.assertsModifier)||mi(r,t.parameterName)||mi(r,t.type)},186:function(t,r,a){return mi(r,t.exprName)||ho(r,a,t.typeArguments)},187:function(t,r,a){return ho(r,a,t.members)},188:function(t,r,a){return mi(r,t.elementType)},189:function(t,r,a){return ho(r,a,t.elements)},192:mMe,193:mMe,194:function(t,r,a){return mi(r,t.checkType)||mi(r,t.extendsType)||mi(r,t.trueType)||mi(r,t.falseType)},195:function(t,r,a){return mi(r,t.typeParameter)},205:function(t,r,a){return mi(r,t.argument)||mi(r,t.attributes)||mi(r,t.qualifier)||ho(r,a,t.typeArguments)},302:function(t,r,a){return mi(r,t.assertClause)},196:hMe,198:hMe,199:function(t,r,a){return mi(r,t.objectType)||mi(r,t.indexType)},200:function(t,r,a){return mi(r,t.readonlyToken)||mi(r,t.typeParameter)||mi(r,t.nameType)||mi(r,t.questionToken)||mi(r,t.type)||ho(r,a,t.members)},201:function(t,r,a){return mi(r,t.literal)},202:function(t,r,a){return mi(r,t.dotDotDotToken)||mi(r,t.name)||mi(r,t.questionToken)||mi(r,t.type)},206:gMe,207:gMe,209:function(t,r,a){return ho(r,a,t.elements)},210:function(t,r,a){return ho(r,a,t.properties)},211:function(t,r,a){return mi(r,t.expression)||mi(r,t.questionDotToken)||mi(r,t.name)},212:function(t,r,a){return mi(r,t.expression)||mi(r,t.questionDotToken)||mi(r,t.argumentExpression)},213:yMe,214:yMe,215:function(t,r,a){return mi(r,t.tag)||mi(r,t.questionDotToken)||ho(r,a,t.typeArguments)||mi(r,t.template)},216:function(t,r,a){return mi(r,t.type)||mi(r,t.expression)},217:function(t,r,a){return mi(r,t.expression)},220:function(t,r,a){return mi(r,t.expression)},221:function(t,r,a){return mi(r,t.expression)},222:function(t,r,a){return mi(r,t.expression)},224:function(t,r,a){return mi(r,t.operand)},229:function(t,r,a){return mi(r,t.asteriskToken)||mi(r,t.expression)},223:function(t,r,a){return mi(r,t.expression)},225:function(t,r,a){return mi(r,t.operand)},226:function(t,r,a){return mi(r,t.left)||mi(r,t.operatorToken)||mi(r,t.right)},234:function(t,r,a){return mi(r,t.expression)||mi(r,t.type)},235:function(t,r,a){return mi(r,t.expression)},238:function(t,r,a){return mi(r,t.expression)||mi(r,t.type)},236:function(t,r,a){return mi(r,t.name)},227:function(t,r,a){return mi(r,t.condition)||mi(r,t.questionToken)||mi(r,t.whenTrue)||mi(r,t.colonToken)||mi(r,t.whenFalse)},230:function(t,r,a){return mi(r,t.expression)},241:vMe,268:vMe,307:function(t,r,a){return ho(r,a,t.statements)||mi(r,t.endOfFileToken)},243:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.declarationList)},261:function(t,r,a){return ho(r,a,t.declarations)},244:function(t,r,a){return mi(r,t.expression)},245:function(t,r,a){return mi(r,t.expression)||mi(r,t.thenStatement)||mi(r,t.elseStatement)},246:function(t,r,a){return mi(r,t.statement)||mi(r,t.expression)},247:function(t,r,a){return mi(r,t.expression)||mi(r,t.statement)},248:function(t,r,a){return mi(r,t.initializer)||mi(r,t.condition)||mi(r,t.incrementor)||mi(r,t.statement)},249:function(t,r,a){return mi(r,t.initializer)||mi(r,t.expression)||mi(r,t.statement)},250:function(t,r,a){return mi(r,t.awaitModifier)||mi(r,t.initializer)||mi(r,t.expression)||mi(r,t.statement)},251:bMe,252:bMe,253:function(t,r,a){return mi(r,t.expression)},254:function(t,r,a){return mi(r,t.expression)||mi(r,t.statement)},255:function(t,r,a){return mi(r,t.expression)||mi(r,t.caseBlock)},269:function(t,r,a){return ho(r,a,t.clauses)},296:function(t,r,a){return mi(r,t.expression)||ho(r,a,t.statements)},297:function(t,r,a){return ho(r,a,t.statements)},256:function(t,r,a){return mi(r,t.label)||mi(r,t.statement)},257:function(t,r,a){return mi(r,t.expression)},258:function(t,r,a){return mi(r,t.tryBlock)||mi(r,t.catchClause)||mi(r,t.finallyBlock)},299:function(t,r,a){return mi(r,t.variableDeclaration)||mi(r,t.block)},170:function(t,r,a){return mi(r,t.expression)},263:SMe,231:SMe,264:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||ho(r,a,t.typeParameters)||ho(r,a,t.heritageClauses)||ho(r,a,t.members)},265:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||ho(r,a,t.typeParameters)||mi(r,t.type)},266:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||ho(r,a,t.members)},306:function(t,r,a){return mi(r,t.name)||mi(r,t.initializer)},267:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||mi(r,t.body)},271:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)||mi(r,t.moduleReference)},272:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.importClause)||mi(r,t.moduleSpecifier)||mi(r,t.attributes)},273:function(t,r,a){return mi(r,t.name)||mi(r,t.namedBindings)},300:function(t,r,a){return ho(r,a,t.elements)},301:function(t,r,a){return mi(r,t.name)||mi(r,t.value)},270:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.name)},274:function(t,r,a){return mi(r,t.name)},280:function(t,r,a){return mi(r,t.name)},275:xMe,279:xMe,278:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.exportClause)||mi(r,t.moduleSpecifier)||mi(r,t.attributes)},276:CMe,281:CMe,277:function(t,r,a){return ho(r,a,t.modifiers)||mi(r,t.expression)},228:function(t,r,a){return mi(r,t.head)||ho(r,a,t.templateSpans)},239:function(t,r,a){return mi(r,t.expression)||mi(r,t.literal)},203:function(t,r,a){return mi(r,t.head)||ho(r,a,t.templateSpans)},204:function(t,r,a){return mi(r,t.type)||mi(r,t.literal)},167:function(t,r,a){return mi(r,t.expression)},298:function(t,r,a){return ho(r,a,t.types)},233:function(t,r,a){return mi(r,t.expression)||ho(r,a,t.typeArguments)},283:function(t,r,a){return mi(r,t.expression)},282:function(t,r,a){return ho(r,a,t.modifiers)},355:function(t,r,a){return ho(r,a,t.elements)},284:function(t,r,a){return mi(r,t.openingElement)||ho(r,a,t.children)||mi(r,t.closingElement)},288:function(t,r,a){return mi(r,t.openingFragment)||ho(r,a,t.children)||mi(r,t.closingFragment)},285:kMe,286:kMe,292:function(t,r,a){return ho(r,a,t.properties)},291:function(t,r,a){return mi(r,t.name)||mi(r,t.initializer)},293:function(t,r,a){return mi(r,t.expression)},294:function(t,r,a){return mi(r,t.dotDotDotToken)||mi(r,t.expression)},287:function(t,r,a){return mi(r,t.tagName)},295:function(t,r,a){return mi(r,t.namespace)||mi(r,t.name)},190:qO,191:qO,309:qO,315:qO,314:qO,316:qO,318:qO,317:function(t,r,a){return ho(r,a,t.parameters)||mi(r,t.type)},320:function(t,r,a){return(typeof t.comment=="string"?void 0:ho(r,a,t.comment))||ho(r,a,t.tags)},347:function(t,r,a){return mi(r,t.tagName)||mi(r,t.name)||(typeof t.comment=="string"?void 0:ho(r,a,t.comment))},310:function(t,r,a){return mi(r,t.name)},311:function(t,r,a){return mi(r,t.left)||mi(r,t.right)},341:wMe,348:wMe,330:function(t,r,a){return mi(r,t.tagName)||(typeof t.comment=="string"?void 0:ho(r,a,t.comment))},329:function(t,r,a){return mi(r,t.tagName)||mi(r,t.class)||(typeof t.comment=="string"?void 0:ho(r,a,t.comment))},328:function(t,r,a){return mi(r,t.tagName)||mi(r,t.class)||(typeof t.comment=="string"?void 0:ho(r,a,t.comment))},345:function(t,r,a){return mi(r,t.tagName)||mi(r,t.constraint)||ho(r,a,t.typeParameters)||(typeof t.comment=="string"?void 0:ho(r,a,t.comment))},346:function(t,r,a){return mi(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===309?mi(r,t.typeExpression)||mi(r,t.fullName)||(typeof t.comment=="string"?void 0:ho(r,a,t.comment)):mi(r,t.fullName)||mi(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ho(r,a,t.comment)))},338:function(t,r,a){return mi(r,t.tagName)||mi(r,t.fullName)||mi(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ho(r,a,t.comment))},342:$O,344:$O,343:$O,340:$O,350:$O,349:$O,339:$O,323:function(t,r,a){return re(t.typeParameters,r)||re(t.parameters,r)||mi(r,t.type)},324:Jye,325:Jye,326:Jye,322:function(t,r,a){return re(t.jsDocPropertyTags,r)},327:N4,332:N4,333:N4,334:N4,335:N4,336:N4,331:N4,337:N4,351:rEt,354:oEt};function pMe(e,t,r){return ho(t,r,e.typeParameters)||ho(t,r,e.parameters)||mi(t,e.type)}function mMe(e,t,r){return ho(t,r,e.types)}function hMe(e,t,r){return mi(t,e.type)}function gMe(e,t,r){return ho(t,r,e.elements)}function yMe(e,t,r){return mi(t,e.expression)||mi(t,e.questionDotToken)||ho(t,r,e.typeArguments)||ho(t,r,e.arguments)}function vMe(e,t,r){return ho(t,r,e.statements)}function bMe(e,t,r){return mi(t,e.label)}function SMe(e,t,r){return ho(t,r,e.modifiers)||mi(t,e.name)||ho(t,r,e.typeParameters)||ho(t,r,e.heritageClauses)||ho(t,r,e.members)}function xMe(e,t,r){return ho(t,r,e.elements)}function CMe(e,t,r){return mi(t,e.propertyName)||mi(t,e.name)}function kMe(e,t,r){return mi(t,e.tagName)||ho(t,r,e.typeArguments)||mi(t,e.attributes)}function qO(e,t,r){return mi(t,e.type)}function wMe(e,t,r){return mi(t,e.tagName)||(e.isNameFirst?mi(t,e.name)||mi(t,e.typeExpression):mi(t,e.typeExpression)||mi(t,e.name))||(typeof e.comment=="string"?void 0:ho(t,r,e.comment))}function $O(e,t,r){return mi(t,e.tagName)||mi(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ho(t,r,e.comment))}function Jye(e,t,r){return mi(t,e.name)}function N4(e,t,r){return mi(t,e.tagName)||(typeof e.comment=="string"?void 0:ho(t,r,e.comment))}function rEt(e,t,r){return mi(t,e.tagName)||mi(t,e.importClause)||mi(t,e.moduleSpecifier)||mi(t,e.attributes)||(typeof e.comment=="string"?void 0:ho(t,r,e.comment))}function oEt(e,t,r){return mi(t,e.expression)}function ws(e,t,r){if(e===void 0||e.kind<=165)return;let a=nEt[e.kind];return a===void 0?void 0:a(e,t,r)}function LN(e,t,r){let a=TMe(e),u=[];for(;u.length=0;--y)a.push(f[y]),u.push(p)}else{let y=t(f,p);if(y){if(y==="skip")continue;return y}if(f.kind>=166)for(let g of TMe(f))a.push(g),u.push(f)}}}function TMe(e){let t=[];return ws(e,r,r),t;function r(a){t.unshift(a)}}function EMe(e){e.externalModuleIndicator=ZR(e)}function ON(e,t,r,a=!1,u){var f,p;(f=jn)==null||f.push(jn.Phase.Parse,"createSourceFile",{path:e},!0),zl("beforeParse");let y,{languageVersion:g,setExternalModuleIndicator:x,impliedNodeFormat:k,jsDocParsingMode:T}=typeof r=="object"?r:{languageVersion:r};if(g===100)y=xk.parseSourceFile(e,t,g,void 0,a,6,dc,T);else{let A=k===void 0?x:P=>(P.impliedNodeFormat=k,(x||EMe)(P));y=xk.parseSourceFile(e,t,g,void 0,a,u,A,T)}return zl("afterParse"),ih("Parse","beforeParse","afterParse"),(p=jn)==null||p.pop(),y}function FN(e,t){return xk.parseIsolatedEntityName(e,t)}function e5(e,t){return xk.parseJsonText(e,t)}function dd(e){return e.externalModuleIndicator!==void 0}function pte(e,t,r,a=!1){let u=mte.updateSourceFile(e,t,r,a);return u.flags|=e.flags&12582912,u}function qye(e,t,r){let a=xk.JSDocParser.parseIsolatedJSDocComment(e,t,r);return a&&a.jsDoc&&xk.fixupParentReferences(a.jsDoc),a}function DMe(e,t,r){return xk.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}var xk;(e=>{var t=Rv(99,!0),r=40960,a,u,f,p,y;function g(le){return nt++,le}var x={createBaseSourceFileNode:le=>g(new y(le,0,0)),createBaseIdentifierNode:le=>g(new f(le,0,0)),createBasePrivateIdentifierNode:le=>g(new p(le,0,0)),createBaseTokenNode:le=>g(new u(le,0,0)),createBaseNode:le=>g(new a(le,0,0))},k=PR(11,x),{createNodeArray:T,createNumericLiteral:A,createStringLiteral:P,createLiteralLikeNode:R,createIdentifier:W,createPrivateIdentifier:z,createToken:q,createArrayLiteralExpression:G,createObjectLiteralExpression:$,createPropertyAccessExpression:te,createPropertyAccessChain:ne,createElementAccessExpression:_e,createElementAccessChain:ce,createCallExpression:ae,createCallChain:Ce,createNewExpression:he,createParenthesizedExpression:ue,createBlock:Ee,createVariableStatement:ve,createExpressionStatement:be,createIfStatement:Se,createWhileStatement:Re,createForStatement:ie,createForOfStatement:ke,createVariableDeclaration:De,createVariableDeclarationList:Oe}=k,we,Ae,Fe,Tt,Be,Ge,Ke,Ue,gt,xt,nt,At,ci,Fi,bn,an,ni=!0,Ci=!1;function Sn(le,We,lt,zt,fi=!1,Ki,Sr,Co=0){var eo;if(Ki=UV(le,Ki),Ki===6){let Mo=Br(le,We,lt,zt,fi);return o5(Mo,(eo=Mo.statements[0])==null?void 0:eo.expression,Mo.parseDiagnostics,!1,void 0),Mo.referencedFiles=F,Mo.typeReferenceDirectives=F,Mo.libReferenceDirectives=F,Mo.amdDependencies=F,Mo.hasNoDefaultLib=!1,Mo.pragmas=X,Mo}Gr(le,We,lt,zt,Ki,Co);let to=Ao(lt,fi,Ki,Sr||EMe,Co);return is(),to}e.parseSourceFile=Sn;function nn(le,We){Gr("",le,We,void 0,1,0),Qe();let lt=me(!0),zt=fe()===1&&!Ke.length;return is(),zt?lt:void 0}e.parseIsolatedEntityName=nn;function Br(le,We,lt=2,zt,fi=!1){Gr(le,We,lt,zt,6,0),Ae=an,Qe();let Ki=se(),Sr,Co;if(fe()===1)Sr=Ua([],Ki,Ki),Co=id();else{let Mo;for(;fe()!==1;){let Za;switch(fe()){case 23:Za=f0();break;case 112:case 97:case 106:Za=id();break;case 41:gi(()=>Qe()===9&&Qe()!==59)?Za=Gx():Za=qk();break;case 9:case 11:if(gi(()=>Qe()!==59)){Za=Ut();break}default:Za=qk();break}Mo&&ds(Mo)?Mo.push(Za):Mo?Mo=[Mo,Za]:(Mo=Za,fe()!==1&&Ii(S.Unexpected_token))}let Dc=ds(Mo)?pi(G(Mo),Ki):B.checkDefined(Mo),Ic=be(Dc);pi(Ic,Ki),Sr=Ua([Ic],Ki),Co=Ts(1,S.Unexpected_token)}let eo=si(le,2,6,!1,Sr,Co,Ae,dc);fi&&it(eo),eo.nodeCount=nt,eo.identifierCount=ci,eo.identifiers=At,eo.parseDiagnostics=cN(Ke,eo),Ue&&(eo.jsDocDiagnostics=cN(Ue,eo));let to=eo;return is(),to}e.parseJsonText=Br;function Gr(le,We,lt,zt,fi,Ki){switch(a=gf.getNodeConstructor(),u=gf.getTokenConstructor(),f=gf.getIdentifierConstructor(),p=gf.getPrivateIdentifierConstructor(),y=gf.getSourceFileConstructor(),we=$s(le),Fe=We,Tt=lt,gt=zt,Be=fi,Ge=vR(fi),Ke=[],Fi=0,At=new Map,ci=0,nt=0,Ae=0,ni=!0,Be){case 1:case 2:an=524288;break;case 6:an=134742016;break;default:an=0;break}Ci=!1,t.setText(Fe),t.setOnError(Bt),t.setScriptTarget(Tt),t.setLanguageVariant(Ge),t.setScriptKind(Be),t.setJSDocParsingMode(Ki)}function is(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Fe=void 0,Tt=void 0,gt=void 0,Be=void 0,Ge=void 0,Ae=0,Ke=void 0,Ue=void 0,Fi=0,At=void 0,bn=void 0,ni=!0}function Ao(le,We,lt,zt,fi){let Ki=Jd(we);Ki&&(an|=33554432),Ae=an,Qe();let Sr=Ja(0,Jm);B.assert(fe()===1);let Co=rt(),eo=xn(id(),Co),to=si(we,le,lt,Ki,Sr,eo,Ae,zt);return gte(to,Fe),yte(to,Mo),to.commentDirectives=t.getCommentDirectives(),to.nodeCount=nt,to.identifierCount=ci,to.identifiers=At,to.parseDiagnostics=cN(Ke,to),to.jsDocParsingMode=fi,Ue&&(to.jsDocDiagnostics=cN(Ue,to)),We&&it(to),to;function Mo(Dc,Ic,Za){Ke.push(aN(we,Fe,Dc,Ic,Za))}}let Rr=!1;function xn(le,We){if(!We)return le;B.assert(!le.jsDoc);let lt=ro(rZ(le,Fe),zt=>pc.parseJSDocComment(le,zt.pos,zt.end-zt.pos));return lt.length&&(le.jsDoc=lt),Rr&&(Rr=!1,le.flags|=536870912),le}function Eo(le){let We=gt,lt=mte.createSyntaxCursor(le);gt={currentNode:Mo};let zt=[],fi=Ke;Ke=[];let Ki=0,Sr=eo(le.statements,0);for(;Sr!==-1;){let Dc=le.statements[Ki],Ic=le.statements[Sr];Fn(zt,le.statements,Ki,Sr),Ki=to(le.statements,Sr);let Za=zi(fi,md=>md.start>=Dc.pos),Ch=Za>=0?zi(fi,md=>md.start>=Ic.pos,Za):-1;Za>=0&&Fn(Ke,fi,Za,Ch>=0?Ch:void 0),Rn(()=>{let md=an;for(an|=65536,t.resetTokenState(Ic.pos),Qe();fe()!==1;){let qm=t.getTokenFullStart(),kb=wu(0,Jm);if(zt.push(kb),qm===t.getTokenFullStart()&&Qe(),Ki>=0){let h1=le.statements[Ki];if(kb.end===h1.pos)break;kb.end>h1.pos&&(Ki=to(le.statements,Ki+1))}}an=md},2),Sr=Ki>=0?eo(le.statements,Ki):-1}if(Ki>=0){let Dc=le.statements[Ki];Fn(zt,le.statements,Ki);let Ic=zi(fi,Za=>Za.start>=Dc.pos);Ic>=0&&Fn(Ke,fi,Ic)}return gt=We,k.updateSourceFile(le,Ft(T(zt),le.statements));function Co(Dc){return!(Dc.flags&65536)&&!!(Dc.transformFlags&67108864)}function eo(Dc,Ic){for(let Za=Ic;Za118}function Vi(){return fe()===80?!0:fe()===127&&It()||fe()===135&&yi()?!1:fe()>118}function ai(le,We,lt=!0){return fe()===le?(lt&&Qe(),!0):(We?Ii(We):Ii(S._0_expected,ua(le)),!1)}let Cs=Object.keys(ez).filter(le=>le.length>2);function Ss(le){if(pk(le)){Y(Ea(Fe,le.template.pos),le.template.end,S.Module_declaration_names_may_only_use_or_quoted_strings);return}let We=et(le)?mr(le):void 0;if(!We||!pp(We,Tt)){Ii(S._0_expected,ua(27));return}let lt=Ea(Fe,le.pos);switch(We){case"const":case"let":case"var":Y(lt,le.end,S.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ks(S.Interface_name_cannot_be_0,S.Interface_must_be_given_a_name,19);return;case"is":Y(lt,t.getTokenStart(),S.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ks(S.Namespace_name_cannot_be_0,S.Namespace_must_be_given_a_name,19);return;case"type":ks(S.Type_alias_name_cannot_be_0,S.Type_alias_must_be_given_a_name,64);return}let zt=Rw(We,Cs,Gc)??hc(We);if(zt){Y(lt,le.end,S.Unknown_keyword_or_identifier_Did_you_mean_0,zt);return}fe()!==0&&Y(lt,le.end,S.Unexpected_keyword_or_identifier)}function ks(le,We,lt){fe()===lt?Ii(We):Ii(le,t.getTokenValue())}function hc(le){for(let We of Cs)if(le.length>We.length+2&&Ro(le,We))return`${We} ${le.slice(We.length)}`}function Zl(le,We,lt){if(fe()===60&&!t.hasPrecedingLineBreak()){Ii(S.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(fe()===21){Ii(S.Cannot_start_a_function_call_in_a_type_annotation),Qe();return}if(We&&!nc()){lt?Ii(S._0_expected,ua(27)):Ii(S.Expected_for_property_initializer);return}if(!rc()){if(lt){Ii(S._0_expected,ua(27));return}Ss(le)}}function Uu(le){return fe()===le?(ei(),!0):(B.assert(oV(le)),Ii(S._0_expected,ua(le)),!1)}function Fc(le,We,lt,zt){if(fe()===We){Qe();return}let fi=Ii(S._0_expected,ua(We));lt&&fi&&Xs(fi,aN(we,Fe,zt,1,S.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ua(le),ua(We)))}function fo(le){return fe()===le?(Qe(),!0):!1}function ka(le){if(fe()===le)return id()}function tf(le){if(fe()===le)return Ko()}function Ts(le,We,lt){return ka(le)||Ac(le,!1,We||S._0_expected,lt||ua(le))}function e_(le){let We=tf(le);return We||(B.assert(oV(le)),Ac(le,!1,S._0_expected,ua(le)))}function id(){let le=se(),We=fe();return Qe(),pi(q(We),le)}function Ko(){let le=se(),We=fe();return ei(),pi(q(We),le)}function nc(){return fe()===27?!0:fe()===20||fe()===1||t.hasPrecedingLineBreak()}function rc(){return nc()?(fe()===27&&Qe(),!0):!1}function Bo(){return rc()||ai(27)}function Ua(le,We,lt,zt){let fi=T(le,zt);return Qg(fi,We,lt??t.getTokenFullStart()),fi}function pi(le,We,lt){return Qg(le,We,lt??t.getTokenFullStart()),an&&(le.flags|=an),Ci&&(Ci=!1,le.flags|=262144),le}function Ac(le,We,lt,...zt){We?nr(t.getTokenFullStart(),0,lt,...zt):lt&&Ii(lt,...zt);let fi=se(),Ki=le===80?W("",void 0):fx(le)?k.createTemplateLiteralLikeNode(le,"","",void 0):le===9?A("",void 0):le===11?P("",void 0):le===282?k.createMissingDeclaration():q(le);return pi(Ki,fi)}function Wf(le){let We=At.get(le);return We===void 0&&At.set(le,We=le),We}function nd(le,We,lt){if(le){ci++;let Co=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():se(),eo=fe(),to=Wf(t.getTokenValue()),Mo=t.hasExtendedUnicodeEscape();return Wt(),pi(W(to,eo,Mo),Co)}if(fe()===81)return Ii(lt||S.Private_identifiers_are_not_allowed_outside_class_bodies),nd(!0);if(fe()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return nd(!0);ci++;let zt=fe()===1,fi=t.isReservedWord(),Ki=t.getTokenText(),Sr=fi?S.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:S.Identifier_expected;return Ac(80,zt,We||Sr,Ki)}function bp(le){return nd(Li(),void 0,le)}function Fl(le,We){return nd(Vi(),le,We)}function $l(le){return nd($_(fe()),le)}function H(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ii(S.Unicode_escape_sequence_cannot_appear_here),nd($_(fe()))}function Ze(){return $_(fe())||fe()===11||fe()===9||fe()===10}function Pt(){return $_(fe())||fe()===11}function ri(le){if(fe()===11||fe()===9||fe()===10){let We=Ut();return We.text=Wf(We.text),We}return le&&fe()===23?Nr():fe()===81?Bi():$l()}function un(){return ri(!0)}function Nr(){let le=se();ai(23);let We=Ai(zf);return ai(24),pi(k.createComputedPropertyName(We),le)}function Bi(){let le=se(),We=z(Wf(t.getTokenValue()));return Qe(),pi(We,le)}function hr(le){return fe()===le&&Xi(oo)}function Pr(){return Qe(),t.hasPrecedingLineBreak()?!1:Pu()}function oo(){switch(fe()){case 87:return Qe()===94;case 95:return Qe(),fe()===90?gi(ku):fe()===156?gi(ml):Ya();case 90:return ku();case 126:case 139:case 153:return Qe(),Pu();default:return Pr()}}function Ya(){return fe()===60||fe()!==42&&fe()!==130&&fe()!==19&&Pu()}function ml(){return Qe(),Ya()}function Au(){return px(fe())&&Xi(oo)}function Pu(){return fe()===23||fe()===19||fe()===42||fe()===26||Ze()}function ku(){return Qe(),fe()===86||fe()===100||fe()===120||fe()===60||fe()===128&&gi(q8)||fe()===134&&gi(Ml)}function hl(le,We){if(Nd(le))return!0;switch(le){case 0:case 1:case 3:return!(fe()===27&&We)&&iD();case 2:return fe()===84||fe()===90;case 4:return gi(Xe);case 5:return gi(oD)||fe()===27&&!We;case 6:return fe()===23||Ze();case 12:switch(fe()){case 23:case 42:case 26:case 25:return!0;default:return Ze()}case 18:return Ze();case 9:return fe()===23||fe()===26||Ze();case 24:return Pt();case 7:return fe()===19?gi(Lu):We?Vi()&&!gh():ES()&&!gh();case 8:return sr();case 10:return fe()===28||fe()===26||sr();case 19:return fe()===103||fe()===87||Vi();case 15:switch(fe()){case 28:case 25:return!0}case 11:return fe()===26||rv();case 16:return c0(!1);case 17:return c0(!0);case 20:case 21:return fe()===28||Eg();case 22:return qT();case 23:return fe()===161&&gi(rD)?!1:fe()===11?!0:$_(fe());case 13:return $_(fe())||fe()===19;case 14:return!0;case 25:return!0;case 26:return B.fail("ParsingContext.Count used as a context");default:B.assertNever(le,"Non-exhaustive case in 'isListElement'.")}}function Lu(){if(B.assert(fe()===19),Qe()===20){let le=Qe();return le===28||le===19||le===96||le===119}return!0}function h_(){return Qe(),Vi()}function Ou(){return Qe(),$_(fe())}function _d(){return Qe(),dme(fe())}function gh(){return fe()===119||fe()===96?gi(qe):!1}function qe(){return Qe(),rv()}function Qt(){return Qe(),Eg()}function hn(le){if(fe()===1)return!0;switch(le){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return fe()===20;case 3:return fe()===20||fe()===84||fe()===90;case 7:return fe()===19||fe()===96||fe()===119;case 8:return Jo();case 19:return fe()===32||fe()===21||fe()===19||fe()===96||fe()===119;case 11:return fe()===22||fe()===27;case 15:case 21:case 10:return fe()===24;case 17:case 16:case 18:return fe()===22||fe()===24;case 20:return fe()!==28;case 22:return fe()===19||fe()===20;case 13:return fe()===32||fe()===44;case 14:return fe()===30&&gi(Dn);default:return!1}}function Jo(){return!!(nc()||Hk(fe())||fe()===39)}function za(){B.assert(Fi,"Missing parsing context");for(let le=0;le<26;le++)if(Fi&1<=0)}function _b(le){return le===6?S.An_enum_member_name_must_be_followed_by_a_or:void 0}function j_(){let le=Ua([],se());return le.isMissingList=!0,le}function i1(le){return!!le.isMissingList}function zm(le,We,lt,zt){if(ai(lt)){let fi=Ad(le,We);return ai(zt),fi}return j_()}function me(le,We){let lt=se(),zt=le?$l(We):Fl(We);for(;fo(25)&&fe()!==30;)zt=pi(k.createQualifiedName(zt,oi(le,!1,!0)),lt);return zt}function wt(le,We){return pi(k.createQualifiedName(le,We),le.pos)}function oi(le,We,lt){if(t.hasPrecedingLineBreak()&&$_(fe())&&gi(tD))return Ac(80,!0,S.Identifier_expected);if(fe()===81){let zt=Bi();return We?zt:Ac(80,!0,S.Identifier_expected)}return le?lt?$l():H():Fl()}function di(le){let We=se(),lt=[],zt;do zt=ze(le),lt.push(zt);while(zt.literal.kind===17);return Ua(lt,We)}function Zi(le){let We=se();return pi(k.createTemplateExpression(gn(le),di(le)),We)}function Tn(){let le=se();return pi(k.createTemplateLiteralType(gn(!1),ur()),le)}function ur(){let le=se(),We=[],lt;do lt=qr(),We.push(lt);while(lt.literal.kind===17);return Ua(We,le)}function qr(){let le=se();return pi(k.createTemplateLiteralTypeSpan(Md(),Q(!1)),le)}function Q(le){return fe()===20?(Dt(le),lo()):Ts(18,S._0_expected,ua(20))}function ze(le){let We=se();return pi(k.createTemplateSpan(Ai(zf),Q(le)),We)}function Ut(){return os(fe())}function gn(le){!le&&t.getTokenFlags()&26656&&Dt(!1);let We=os(fe());return B.assert(We.kind===16,"Template head has wrong token kind"),We}function lo(){let le=os(fe());return B.assert(le.kind===17||le.kind===18,"Template fragment has wrong token kind"),le}function Is(le){let We=le===15||le===18,lt=t.getTokenText();return lt.substring(1,lt.length-(t.isUnterminated()?0:We?1:2))}function os(le){let We=se(),lt=fx(le)?k.createTemplateLiteralLikeNode(le,t.getTokenValue(),Is(le),t.getTokenFlags()&7176):le===9?A(t.getTokenValue(),t.getNumericLiteralFlags()):le===11?P(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):L3(le)?R(le,t.getTokenValue()):B.fail();return t.hasExtendedUnicodeEscape()&&(lt.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(lt.isUnterminated=!0),Qe(),pi(lt,We)}function Ns(){return me(!0,S.Type_expected)}function Qa(){if(!t.hasPrecedingLineBreak()&&Nt()===30)return zm(20,Md,30,32)}function Ra(){let le=se();return pi(k.createTypeReferenceNode(Ns(),Qa()),le)}function Il(le){switch(le.kind){case 183:return Ul(le.typeName);case 184:case 185:{let{parameters:We,type:lt}=le;return i1(We)||Il(lt)}case 196:return Il(le.type);default:return!1}}function vh(le){return Qe(),pi(k.createTypePredicateNode(void 0,le,Md()),le.pos)}function Tg(){let le=se();return Qe(),pi(k.createThisTypeNode(),le)}function a0(){let le=se();return Qe(),pi(k.createJSDocAllType(),le)}function n1(){let le=se();return Qe(),pi(k.createJSDocNonNullableType(wS(),!1),le)}function CS(){let le=se();return Qe(),fe()===28||fe()===20||fe()===22||fe()===32||fe()===64||fe()===52?pi(k.createJSDocUnknownType(),le):pi(k.createJSDocNullableType(Md(),!1),le)}function r1(){let le=se(),We=rt();if(Xi(Lo)){let lt=ig(36),zt=tg(59,!1);return xn(pi(k.createJSDocFunctionType(lt,zt),le),We)}return pi(k.createTypeReferenceNode($l(),void 0),le)}function bh(){let le=se(),We;return(fe()===110||fe()===105)&&(We=$l(),ai(59)),pi(k.createParameterDeclaration(void 0,void 0,We,void 0,Sh(),void 0),le)}function Sh(){t.setSkipJsDocLeadingAsterisks(!0);let le=se();if(fo(144)){let zt=k.createJSDocNamepathType(void 0);e:for(;;)switch(fe()){case 20:case 1:case 28:case 5:break e;default:ei()}return t.setSkipJsDocLeadingAsterisks(!1),pi(zt,le)}let We=fo(26),lt=Cp();return t.setSkipJsDocLeadingAsterisks(!1),We&&(lt=pi(k.createJSDocVariadicType(lt),le)),fe()===64?(Qe(),pi(k.createJSDocOptionalType(lt),le)):lt}function ul(){let le=se();ai(114);let We=me(!0),lt=t.hasPrecedingLineBreak()?void 0:Kk();return pi(k.createTypeQueryNode(We,lt),le)}function gm(){let le=se(),We=Ei(!1,!0),lt=Fl(),zt,fi;fo(96)&&(Eg()||!rv()?zt=Md():fi=qd());let Ki=fo(64)?Md():void 0,Sr=k.createTypeParameterDeclaration(We,lt,zt,Ki);return Sr.expression=fi,pi(Sr,le)}function xp(){if(fe()===30)return zm(19,gm,30,32)}function c0(le){return fe()===26||sr()||px(fe())||fe()===60||Eg(!le)}function o1(le){let We=z_(S.Private_identifiers_cannot_be_used_as_parameters);return xM(We)===0&&!Lt(le)&&px(fe())&&Qe(),We}function eg(){return Li()||fe()===23||fe()===19}function iv(le){return kS(le)}function pb(le){return kS(le,!1)}function kS(le,We=!0){let lt=se(),zt=rt(),fi=le?ge(()=>Ei(!0)):He(()=>Ei(!0));if(fe()===110){let eo=k.createParameterDeclaration(fi,void 0,nd(!0),void 0,l0(),void 0),to=mc(fi);return to&&$e(to,S.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),xn(pi(eo,lt),zt)}let Ki=ni;ni=!1;let Sr=ka(26);if(!We&&!eg())return;let Co=xn(pi(k.createParameterDeclaration(fi,Sr,o1(fi),ka(58),l0(),gb()),lt),zt);return ni=Ki,Co}function tg(le,We){if(Mk(le,We))return ht(Cp)}function Mk(le,We){return le===39?(ai(le),!0):fo(59)?!0:We&&fe()===39?(Ii(S._0_expected,ua(59)),Qe(),!0):!1}function Vm(le,We){let lt=It(),zt=yi();Jr(!!(le&1)),Do(!!(le&2));let fi=le&32?Ad(17,bh):Ad(16,()=>We?iv(zt):pb(zt));return Jr(lt),Do(zt),fi}function ig(le){if(!ai(21))return j_();let We=Vm(le,!0);return ai(22),We}function mb(){fo(28)||Bo()}function Rk(le){let We=se(),lt=rt();le===180&&ai(105);let zt=xp(),fi=ig(4),Ki=tg(59,!0);mb();let Sr=le===179?k.createCallSignature(zt,fi,Ki):k.createConstructSignature(zt,fi,Ki);return xn(pi(Sr,We),lt)}function nv(){return fe()===23&&gi(s1)}function s1(){if(Qe(),fe()===26||fe()===24)return!0;if(px(fe())){if(Qe(),Vi())return!0}else if(Vi())Qe();else return!1;return fe()===59||fe()===28?!0:fe()!==58?!1:(Qe(),fe()===59||fe()===28||fe()===24)}function Bk(le,We,lt){let zt=zm(16,()=>iv(!1),23,24),fi=l0();mb();let Ki=k.createIndexSignature(lt,zt,fi);return xn(pi(Ki,le),We)}function Vx(le,We,lt){let zt=un(),fi=ka(58),Ki;if(fe()===21||fe()===30){let Sr=xp(),Co=ig(4),eo=tg(59,!0);Ki=k.createMethodSignature(lt,zt,fi,Sr,Co,eo)}else{let Sr=l0();Ki=k.createPropertySignature(lt,zt,fi,Sr),fe()===64&&(Ki.initializer=gb())}return mb(),xn(pi(Ki,le),We)}function Xe(){if(fe()===21||fe()===30||fe()===139||fe()===153)return!0;let le=!1;for(;px(fe());)le=!0,Qe();return fe()===23?!0:(Ze()&&(le=!0,Qe()),le?fe()===21||fe()===30||fe()===58||fe()===59||fe()===28||nc():!1)}function dt(){if(fe()===21||fe()===30)return Rk(179);if(fe()===105&&gi(qt))return Rk(180);let le=se(),We=rt(),lt=Ei(!1);return hr(139)?ag(le,We,lt,177,4):hr(153)?ag(le,We,lt,178,4):nv()?Bk(le,We,lt):Vx(le,We,lt)}function qt(){return Qe(),fe()===21||fe()===30}function bi(){return Qe()===25}function qi(){switch(Qe()){case 21:case 30:case 25:return!0}return!1}function En(){let le=se();return pi(k.createTypeLiteralNode(tn()),le)}function tn(){let le;return ai(19)?(le=Ja(4,dt),ai(20)):le=j_(),le}function dr(){return Qe(),fe()===40||fe()===41?Qe()===148:(fe()===148&&Qe(),fe()===23&&h_()&&Qe()===103)}function so(){let le=se(),We=$l();ai(103);let lt=Md();return pi(k.createTypeParameterDeclaration(void 0,We,lt,void 0),le)}function Gn(){let le=se();ai(19);let We;(fe()===148||fe()===40||fe()===41)&&(We=id(),We.kind!==148&&ai(148)),ai(23);let lt=so(),zt=fo(130)?Md():void 0;ai(24);let fi;(fe()===58||fe()===40||fe()===41)&&(fi=id(),fi.kind!==58&&ai(58));let Ki=l0();Bo();let Sr=Ja(4,dt);return ai(20),pi(k.createMappedTypeNode(We,lt,zt,fi,Ki,Sr),le)}function uo(){let le=se();if(fo(26))return pi(k.createRestTypeNode(Md()),le);let We=Md();if(C4(We)&&We.pos===We.type.pos){let lt=k.createOptionalTypeNode(We.type);return Ft(lt,We),lt.flags=We.flags,lt}return We}function Kn(){return Qe()===59||fe()===58&&Qe()===59}function Es(){return fe()===26?$_(Qe())&&Kn():$_(fe())&&Kn()}function Jc(){if(gi(Es)){let le=se(),We=rt(),lt=ka(26),zt=$l(),fi=ka(58);ai(59);let Ki=uo(),Sr=k.createNamedTupleMember(lt,zt,fi,Ki);return xn(pi(Sr,le),We)}return uo()}function g_(){let le=se();return pi(k.createTupleTypeNode(zm(21,Jc,23,24)),le)}function ng(){let le=se();ai(21);let We=Md();return ai(22),pi(k.createParenthesizedType(We),le)}function y_(){let le;if(fe()===128){let We=se();Qe();let lt=pi(q(128),We);le=Ua([lt],We)}return le}function rg(){let le=se(),We=rt(),lt=y_(),zt=fo(105);B.assert(!lt||zt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let fi=xp(),Ki=ig(4),Sr=tg(39,!1),Co=zt?k.createConstructorTypeNode(lt,fi,Ki,Sr):k.createFunctionTypeNode(fi,Ki,Sr);return xn(pi(Co,le),We)}function v_(){let le=id();return fe()===25?void 0:le}function LT(le){let We=se();le&&Qe();let lt=fe()===112||fe()===97||fe()===106?id():os(fe());return le&&(lt=pi(k.createPrefixUnaryExpression(41,lt),We)),pi(k.createLiteralTypeNode(lt),We)}function Hx(){return Qe(),fe()===102}function a1(){Ae|=4194304;let le=se(),We=fo(114);ai(102),ai(21);let lt=Md(),zt;if(fo(28)){let Sr=t.getTokenStart();ai(19);let Co=fe();if(Co===118||Co===132?Qe():Ii(S._0_expected,ua(118)),ai(59),zt=X8(Co,!0),!ai(20)){let eo=Lc(Ke);eo&&eo.code===S._0_expected.code&&Xs(eo,aN(we,Fe,Sr,1,S.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ai(22);let fi=fo(25)?Ns():void 0,Ki=Qa();return pi(k.createImportTypeNode(lt,zt,fi,Ki,We),le)}function hb(){return Qe(),fe()===9||fe()===10}function wS(){switch(fe()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Xi(v_)||Ra();case 67:t.reScanAsteriskEqualsToken();case 42:return a0();case 61:t.reScanQuestionToken();case 58:return CS();case 100:return r1();case 54:return n1();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return LT();case 41:return gi(hb)?LT(!0):Ra();case 116:return id();case 110:{let le=Tg();return fe()===142&&!t.hasPrecedingLineBreak()?vh(le):le}case 114:return gi(Hx)?a1():ul();case 19:return gi(dr)?Gn():En();case 23:return g_();case 21:return ng();case 102:return a1();case 131:return gi(tD)?g6():Ra();case 16:return Tn();default:return Ra()}}function Eg(le){switch(fe()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!le;case 41:return!le&&gi(hb);case 21:return!le&&gi(TS);default:return Vi()}}function TS(){return Qe(),fe()===22||c0(!1)||Eg()}function Ux(){let le=se(),We=wS();for(;!t.hasPrecedingLineBreak();)switch(fe()){case 54:Qe(),We=pi(k.createJSDocNonNullableType(We,!0),le);break;case 58:if(gi(Qt))return We;Qe(),We=pi(k.createJSDocNullableType(We,!0),le);break;case 23:if(ai(23),Eg()){let lt=Md();ai(24),We=pi(k.createIndexedAccessTypeNode(We,lt),le)}else ai(24),We=pi(k.createArrayTypeNode(We),le);break;default:return We}return We}function Jx(le){let We=se();return ai(le),pi(k.createTypeOperatorNode(le,Ga()),We)}function qx(){if(fo(96)){let le=Jt(Md);if($t()||fe()!==58)return le}}function zE(){let le=se(),We=Fl(),lt=Xi(qx),zt=k.createTypeParameterDeclaration(void 0,We,lt);return pi(zt,le)}function jk(){let le=se();return ai(140),pi(k.createInferTypeNode(zE()),le)}function Ga(){let le=fe();switch(le){case 143:case 158:case 148:return Jx(le);case 140:return jk()}return ht(Ux)}function OT(le){if(Hm()){let We=rg(),lt;return Qy(We)?lt=le?S.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:S.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:lt=le?S.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:S.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,$e(We,lt),We}}function VE(le,We,lt){let zt=se(),fi=le===52,Ki=fo(le),Sr=Ki&&OT(fi)||We();if(fe()===le||Ki){let Co=[Sr];for(;fo(le);)Co.push(OT(fi)||We());Sr=pi(lt(Ua(Co,zt)),zt)}return Sr}function Wk(){return VE(51,Ga,k.createIntersectionTypeNode)}function c1(){return VE(52,Wk,k.createUnionTypeNode)}function l1(){return Qe(),fe()===105}function Hm(){return fe()===30||fe()===21&&gi(tm)?!0:fe()===105||fe()===128&&gi(l1)}function em(){if(px(fe())&&Ei(!1),Vi()||fe()===110)return Qe(),!0;if(fe()===23||fe()===19){let le=Ke.length;return z_(),le===Ke.length}return!1}function tm(){return Qe(),!!(fe()===22||fe()===26||em()&&(fe()===59||fe()===28||fe()===58||fe()===64||fe()===22&&(Qe(),fe()===39)))}function Cp(){let le=se(),We=Vi()&&Xi($x),lt=Md();return We?pi(k.createTypePredicateNode(void 0,We,lt),le):lt}function $x(){let le=Fl();if(fe()===142&&!t.hasPrecedingLineBreak())return Qe(),le}function g6(){let le=se(),We=Ts(131),lt=fe()===110?Tg():Fl(),zt=fo(142)?Md():void 0;return pi(k.createTypePredicateNode(We,lt,zt),le)}function Md(){if(an&81920)return na(81920,Md);if(Hm())return rg();let le=se(),We=c1();if(!$t()&&!t.hasPrecedingLineBreak()&&fo(96)){let lt=Jt(Md);ai(58);let zt=ht(Md);ai(59);let fi=ht(Md);return pi(k.createConditionalTypeNode(We,lt,zt,fi),le)}return We}function l0(){return fo(59)?Md():void 0}function ES(){switch(fe()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return gi(qi);default:return Vi()}}function rv(){if(ES())return!0;switch(fe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return u1()?!0:Vi()}}function aA(){return fe()!==19&&fe()!==100&&fe()!==86&&fe()!==60&&rv()}function zf(){let le=_t();le&&Dr(!1);let We=se(),lt=kp(!0),zt;for(;zt=ka(28);)lt=ov(lt,zt,kp(!0),We);return le&&Dr(!0),lt}function gb(){return fo(64)?kp(!0):void 0}function kp(le){if(zk())return ot();let We=_y(le)||DS(le);if(We)return We;let lt=se(),zt=rt(),fi=IS(0);return fi.kind===80&&fe()===39?u0(lt,fi,le,zt,void 0):X_(fi)&&Q1(Ji())?ov(fi,id(),kp(le),lt):Dg(fi,lt,le)}function zk(){return fe()===127?It()?!0:gi(C6):!1}function fy(){return Qe(),!t.hasPrecedingLineBreak()&&Vi()}function ot(){let le=se();return Qe(),!t.hasPrecedingLineBreak()&&(fe()===42||rv())?pi(k.createYieldExpression(ka(42),kp(!0)),le):pi(k.createYieldExpression(void 0,void 0),le)}function u0(le,We,lt,zt,fi){B.assert(fe()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let Ki=k.createParameterDeclaration(void 0,void 0,We,void 0,void 0,void 0);pi(Ki,We.pos);let Sr=Ua([Ki],Ki.pos,Ki.end),Co=Ts(39),eo=Aa(!!fi,lt),to=k.createArrowFunction(fi,void 0,Sr,void 0,Co,eo);return xn(pi(to,le),zt)}function _y(le){let We=Vk();if(We!==0)return We===1?lA(!0,!0):Xi(()=>yb(le))}function Vk(){return fe()===21||fe()===30||fe()===134?gi(cA):fe()===39?1:0}function cA(){if(fe()===134&&(Qe(),t.hasPrecedingLineBreak()||fe()!==21&&fe()!==30))return 0;let le=fe(),We=Qe();if(le===21){if(We===22)switch(Qe()){case 39:case 59:case 19:return 1;default:return 0}if(We===23||We===19)return 2;if(We===26)return 1;if(px(We)&&We!==134&&gi(h_))return Qe()===130?0:1;if(!Vi()&&We!==110)return 0;switch(Qe()){case 59:return 1;case 58:return Qe(),fe()===59||fe()===28||fe()===64||fe()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return B.assert(le===30),!Vi()&&fe()!==87?0:Ge===1?gi(()=>{fo(87);let zt=Qe();if(zt===96)switch(Qe()){case 64:case 32:case 44:return!1;default:return!0}else if(zt===28||zt===64)return!0;return!1})?1:0:2}function yb(le){let We=t.getTokenStart();if(bn?.has(We))return;let lt=lA(!1,le);return lt||(bn||(bn=new Set)).add(We),lt}function DS(le){if(fe()===134&&gi(vb)===1){let We=se(),lt=rt(),zt=Xr(),fi=IS(0);return u0(We,fi,le,lt,zt)}}function vb(){if(fe()===134){if(Qe(),t.hasPrecedingLineBreak()||fe()===39)return 0;let le=IS(0);if(!t.hasPrecedingLineBreak()&&le.kind===80&&fe()===39)return 1}return 0}function lA(le,We){let lt=se(),zt=rt(),fi=Xr(),Ki=Lt(fi,AO)?2:0,Sr=xp(),Co;if(ai(21)){if(le)Co=Vm(Ki,le);else{let qm=Vm(Ki,le);if(!qm)return;Co=qm}if(!ai(22)&&!le)return}else{if(!le)return;Co=j_()}let eo=fe()===59,to=tg(59,!1);if(to&&!le&&Il(to))return;let Mo=to;for(;Mo?.kind===196;)Mo=Mo.type;let Dc=Mo&&k4(Mo);if(!le&&fe()!==39&&(Dc||fe()!==19))return;let Ic=fe(),Za=Ts(39),Ch=Ic===39||Ic===19?Aa(Lt(fi,AO),We):Fl();if(!We&&eo&&fe()!==59)return;let md=k.createArrowFunction(fi,Sr,Co,to,Za,Ch);return xn(pi(md,lt),zt)}function Aa(le,We){if(fe()===19)return FS(le?2:0);if(fe()!==27&&fe()!==100&&fe()!==86&&iD()&&!aA())return FS(16|(le?2:0));let lt=ni;ni=!1;let zt=le?ge(()=>kp(We)):He(()=>kp(We));return ni=lt,zt}function Dg(le,We,lt){let zt=ka(58);if(!zt)return le;let fi;return pi(k.createConditionalExpression(le,zt,na(r,()=>kp(!1)),fi=Ts(59),jh(fi)?kp(lt):Ac(80,!1,S._0_expected,ua(59))),We)}function IS(le){let We=se(),lt=qd();return ym(le,lt,We)}function Hk(le){return le===103||le===165}function ym(le,We,lt){for(;;){Ji();let zt=aR(fe());if(!(fe()===43?zt>=le:zt>le)||fe()===103&&mt())break;if(fe()===130||fe()===152){if(t.hasPrecedingLineBreak())break;{let Ki=fe();Qe(),We=Ki===152?d0(We,Md()):uA(We,Md())}}else We=ov(We,id(),IS(zt),lt)}return We}function u1(){return mt()&&fe()===103?!1:aR(fe())>0}function d0(le,We){return pi(k.createSatisfiesExpression(le,We),le.pos)}function ov(le,We,lt,zt){return pi(k.createBinaryExpression(le,We,lt),zt)}function uA(le,We){return pi(k.createAsExpression(le,We),le.pos)}function Gx(){let le=se();return pi(k.createPrefixUnaryExpression(fe(),tt(bb)),le)}function og(){let le=se();return pi(k.createDeleteExpression(tt(bb)),le)}function dA(){let le=se();return pi(k.createTypeOfExpression(tt(bb)),le)}function NS(){let le=se();return pi(k.createVoidExpression(tt(bb)),le)}function Po(){return fe()===135?yi()?!0:gi(C6):!1}function rr(){let le=se();return pi(k.createAwaitExpression(tt(bb)),le)}function qd(){if(AS()){let lt=se(),zt=HE();return fe()===43?ym(aR(fe()),zt,lt):zt}let le=fe(),We=bb();if(fe()===43){let lt=Ea(Fe,We.pos),{end:zt}=We;We.kind===216?Y(lt,zt,S.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(B.assert(oV(le)),Y(lt,zt,S.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,ua(le)))}return We}function bb(){switch(fe()){case 40:case 41:case 55:case 54:return Gx();case 91:return og();case 114:return dA();case 116:return NS();case 30:return Ge===1?Sb(!0,void 0,void 0,!0):qE();case 135:if(Po())return rr();default:return HE()}}function AS(){switch(fe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Ge!==1)return!1;default:return!0}}function HE(){if(fe()===46||fe()===47){let We=se();return pi(k.createPrefixUnaryExpression(fe(),tt(Kx)),We)}else if(Ge===1&&fe()===30&&gi(_d))return Sb(!0);let le=Kx();if(B.assert(X_(le)),(fe()===46||fe()===47)&&!t.hasPrecedingLineBreak()){let We=fe();return Qe(),pi(k.createPostfixUnaryExpression(le,We),le.pos)}return le}function Kx(){let le=se(),We;return fe()===102?gi(qt)?(Ae|=4194304,We=id()):gi(bi)?(Qe(),Qe(),We=pi(k.createMetaProperty(102,$l()),le),Ae|=8388608):We=UE():We=fe()===108?sl():UE(),Um(le,We)}function UE(){let le=se(),We=GE();return d1(le,We,!0)}function sl(){let le=se(),We=id();if(fe()===30){let lt=se(),zt=Xi(OS);zt!==void 0&&(Y(lt,se(),S.super_may_not_use_type_arguments),wp()||(We=k.createExpressionWithTypeArguments(We,zt)))}return fe()===21||fe()===25||fe()===23?We:(Ts(25,S.super_must_be_followed_by_an_argument_list_or_member_access),pi(te(We,oi(!0,!0,!0)),le))}function Sb(le,We,lt,zt=!1){let fi=se(),Ki=y6(le),Sr;if(Ki.kind===286){let Co=MT(Ki),eo,to=Co[Co.length-1];if(to?.kind===284&&!Ck(to.openingElement.tagName,to.closingElement.tagName)&&Ck(Ki.tagName,to.closingElement.tagName)){let Mo=to.children.end,Dc=pi(k.createJsxElement(to.openingElement,to.children,pi(k.createJsxClosingElement(pi(W(""),Mo,Mo)),Mo,Mo)),to.openingElement.pos,Mo);Co=Ua([...Co.slice(0,Co.length-1),Dc],Co.pos,Mo),eo=to.closingElement}else eo=qn(Ki,le),Ck(Ki.tagName,eo.tagName)||(lt&&ny(lt)&&Ck(eo.tagName,lt.tagName)?$e(Ki.tagName,S.JSX_element_0_has_no_corresponding_closing_tag,z3(Fe,Ki.tagName)):$e(eo.tagName,S.Expected_corresponding_JSX_closing_tag_for_0,z3(Fe,Ki.tagName)));Sr=pi(k.createJsxElement(Ki,Co,eo),fi)}else Ki.kind===289?Sr=pi(k.createJsxFragment(Ki,MT(Ki),b6(le)),fi):(B.assert(Ki.kind===285),Sr=Ki);if(!zt&&le&&fe()===30){let Co=typeof We>"u"?Sr.pos:We,eo=Xi(()=>Sb(!0,Co));if(eo){let to=Ac(28,!1);return yee(to,eo.pos,0),Y(Ea(Fe,Co),eo.end,S.JSX_expressions_must_have_one_parent_element),pi(k.createBinaryExpression(Sr,to,eo),fi)}}return Sr}function FT(){let le=se(),We=k.createJsxText(t.getTokenValue(),xt===13);return xt=t.scanJsxToken(),pi(We,le)}function xh(le,We){switch(We){case 1:if(xE(le))$e(le,S.JSX_fragment_has_no_corresponding_closing_tag);else{let lt=le.tagName,zt=Math.min(Ea(Fe,lt.pos),lt.end);Y(zt,lt.end,S.JSX_element_0_has_no_corresponding_closing_tag,z3(Fe,le.tagName))}return;case 31:case 7:return;case 12:case 13:return FT();case 19:return Vf(!1);case 30:return Sb(!1,void 0,le);default:return B.assertNever(We)}}function MT(le){let We=[],lt=se(),zt=Fi;for(Fi|=16384;;){let fi=xh(le,xt=t.reScanJsxToken());if(!fi||(We.push(fi),ny(le)&&fi?.kind===284&&!Ck(fi.openingElement.tagName,fi.closingElement.tagName)&&Ck(le.tagName,fi.closingElement.tagName)))break}return Fi=zt,Ua(We,lt)}function JE(){let le=se();return pi(k.createJsxAttributes(Ja(13,ys)),le)}function y6(le){let We=se();if(ai(30),fe()===32)return wi(),pi(k.createJsxOpeningFragment(),We);let lt=v6(),zt=an&524288?void 0:Kk(),fi=JE(),Ki;return fe()===32?(wi(),Ki=k.createJsxOpeningElement(lt,zt,fi)):(ai(44),ai(32,void 0,!1)&&(le?Qe():wi()),Ki=k.createJsxSelfClosingElement(lt,zt,fi)),pi(Ki,We)}function v6(){let le=se(),We=or();if(e0(We))return We;let lt=We;for(;fo(25);)lt=pi(te(lt,oi(!0,!1,!1)),le);return lt}function or(){let le=se();li();let We=fe()===110,lt=H();return fo(59)?(li(),pi(k.createJsxNamespacedName(lt,H()),le)):We?pi(k.createToken(110),le):lt}function Vf(le){let We=se();if(!ai(19))return;let lt,zt;return fe()!==20&&(le||(lt=ka(26)),zt=zf()),le?ai(20):ai(20,void 0,!1)&&wi(),pi(k.createJsxExpression(lt,zt),We)}function ys(){if(fe()===19)return Uk();let le=se();return pi(k.createJsxAttribute(fA(),PS()),le)}function PS(){if(fe()===64){if(Si()===11)return Ut();if(fe()===19)return Vf(!0);if(fe()===30)return Sb(!0);Ii(S.or_JSX_element_expected)}}function fA(){let le=se();li();let We=H();return fo(59)?(li(),pi(k.createJsxNamespacedName(We,H()),le)):We}function Uk(){let le=se();ai(19),ai(26);let We=zf();return ai(20),pi(k.createJsxSpreadAttribute(We),le)}function qn(le,We){let lt=se();ai(31);let zt=v6();return ai(32,void 0,!1)&&(We||!Ck(le.tagName,zt)?Qe():wi()),pi(k.createJsxClosingElement(zt),lt)}function b6(le){let We=se();return ai(31),ai(32,S.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(le?Qe():wi()),pi(k.createJsxJsxClosingFragment(),We)}function qE(){B.assert(Ge!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let le=se();ai(30);let We=Md();ai(32);let lt=bb();return pi(k.createTypeAssertion(We,lt),le)}function t_(){return Qe(),$_(fe())||fe()===23||wp()}function i_(){return fe()===29&&gi(t_)}function vm(le){if(le.flags&64)return!0;if(DN(le)){let We=le.expression;for(;DN(We)&&!(We.flags&64);)We=We.expression;if(We.flags&64){for(;DN(le);)le.flags|=64,le=le.expression;return!0}}return!1}function Jk(le,We,lt){let zt=oi(!0,!0,!0),fi=lt||vm(We),Ki=fi?ne(We,lt,zt):te(We,zt);if(fi&&xo(Ki.name)&&$e(Ki.name,S.An_optional_chain_cannot_contain_private_identifiers),nb(We)&&We.typeArguments){let Sr=We.typeArguments.pos-1,Co=Ea(Fe,We.typeArguments.end)+1;Y(Sr,Co,S.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return pi(Ki,le)}function $E(le,We,lt){let zt;if(fe()===24)zt=Ac(80,!0,S.An_element_access_expression_should_take_an_argument);else{let Ki=Ai(zf);Am(Ki)&&(Ki.text=Wf(Ki.text)),zt=Ki}ai(24);let fi=lt||vm(We)?ce(We,lt,zt):_e(We,zt);return pi(fi,le)}function d1(le,We,lt){for(;;){let zt,fi=!1;if(lt&&i_()?(zt=Ts(29),fi=$_(fe())):fi=fo(25),fi){We=Jk(le,We,zt);continue}if((zt||!_t())&&fo(23)){We=$E(le,We,zt);continue}if(wp()){We=!zt&&We.kind===233?py(le,We.expression,zt,We.typeArguments):py(le,We,zt,void 0);continue}if(!zt){if(fe()===54&&!t.hasPrecedingLineBreak()){Qe(),We=pi(k.createNonNullExpression(We),le);continue}let Ki=Xi(OS);if(Ki){We=pi(k.createExpressionWithTypeArguments(We,Ki),le);continue}}return We}}function wp(){return fe()===15||fe()===16}function py(le,We,lt,zt){let fi=k.createTaggedTemplateExpression(We,zt,fe()===15?(Dt(!0),Ut()):Zi(!0));return(lt||We.flags&64)&&(fi.flags|=64),fi.questionDotToken=lt,pi(fi,le)}function Um(le,We){for(;;){We=d1(le,We,!0);let lt,zt=ka(29);if(zt&&(lt=Xi(OS),wp())){We=py(le,We,zt,lt);continue}if(lt||fe()===21){!zt&&We.kind===233&&(lt=We.typeArguments,We=We.expression);let fi=LS(),Ki=zt||vm(We)?Ce(We,zt,lt,fi):ae(We,lt,fi);We=pi(Ki,le);continue}if(zt){let fi=Ac(80,!1,S.Identifier_expected);We=pi(ne(We,zt,fi),le)}break}return We}function LS(){ai(21);let le=Ad(11,YE);return ai(22),le}function OS(){if(an&524288||Nt()!==30)return;Qe();let le=Ad(20,Md);if(Ji()===32)return Qe(),le&&RT()?le:void 0}function RT(){switch(fe()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||u1()||!rv()}function GE(){switch(fe()){case 15:t.getTokenFlags()&26656&&Dt(!1);case 9:case 10:case 11:return Ut();case 110:case 108:case 106:case 112:case 97:return id();case 21:return Xx();case 23:return f0();case 19:return qk();case 134:if(!gi(Ml))break;return Yx();case 60:return Zo();case 86:return Wo();case 100:return Yx();case 105:return xb();case 44:case 69:if(_n()===14)return Ut();break;case 16:return Zi(!1);case 81:return Bi()}return Fl(S.Expression_expected)}function Xx(){let le=se(),We=rt();ai(21);let lt=Ai(zf);return ai(22),xn(pi(ue(lt),le),We)}function KE(){let le=se();ai(26);let We=kp(!0);return pi(k.createSpreadElement(We),le)}function XE(){return fe()===26?KE():fe()===28?pi(k.createOmittedExpression(),se()):kp(!0)}function YE(){return na(r,XE)}function f0(){let le=se(),We=t.getTokenStart(),lt=ai(23),zt=t.hasPrecedingLineBreak(),fi=Ad(15,XE);return Fc(23,24,lt,We),pi(G(fi,zt),le)}function S6(){let le=se(),We=rt();if(ka(26)){let Mo=kp(!0);return xn(pi(k.createSpreadAssignment(Mo),le),We)}let lt=Ei(!0);if(hr(139))return ag(le,We,lt,177,0);if(hr(153))return ag(le,We,lt,178,0);let zt=ka(42),fi=Vi(),Ki=un(),Sr=ka(58),Co=ka(54);if(zt||fe()===21||fe()===30)return im(le,We,lt,zt,Ki,Sr,Co);let eo;if(fi&&fe()!==59){let Mo=ka(64),Dc=Mo?Ai(()=>kp(!0)):void 0;eo=k.createShorthandPropertyAssignment(Ki,Dc),eo.equalsToken=Mo}else{ai(59);let Mo=Ai(()=>kp(!0));eo=k.createPropertyAssignment(Ki,Mo)}return eo.modifiers=lt,eo.questionToken=Sr,eo.exclamationToken=Co,xn(pi(eo,le),We)}function qk(){let le=se(),We=t.getTokenStart(),lt=ai(19),zt=t.hasPrecedingLineBreak(),fi=Ad(12,S6,!0);return Fc(19,20,lt,We),pi($(fi,zt),le)}function Yx(){let le=_t();Dr(!1);let We=se(),lt=rt(),zt=Ei(!1);ai(100);let fi=ka(42),Ki=fi?1:0,Sr=Lt(zt,AO)?2:0,Co=Ki&&Sr?ut(f1):Ki?ye(f1):Sr?ge(f1):f1(),eo=xp(),to=ig(Ki|Sr),Mo=tg(59,!1),Dc=FS(Ki|Sr);Dr(le);let Ic=k.createFunctionExpression(zt,fi,Co,eo,to,Mo,Dc);return xn(pi(Ic,We),lt)}function f1(){return Li()?bp():void 0}function xb(){let le=se();if(ai(105),fo(25)){let Ki=$l();return pi(k.createMetaProperty(105,Ki),le)}let We=se(),lt=d1(We,GE(),!1),zt;lt.kind===233&&(zt=lt.typeArguments,lt=lt.expression),fe()===29&&Ii(S.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,z3(Fe,lt));let fi=fe()===21?LS():void 0;return pi(he(lt,zt,fi),le)}function Ig(le,We){let lt=se(),zt=rt(),fi=t.getTokenStart(),Ki=ai(19,We);if(Ki||le){let Sr=t.hasPrecedingLineBreak(),Co=Ja(1,Jm);Fc(19,20,Ki,fi);let eo=xn(pi(Ee(Co,Sr),lt),zt);return fe()===64&&(Ii(S.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()),eo}else{let Sr=j_();return xn(pi(Ee(Sr,void 0),lt),zt)}}function FS(le,We){let lt=It();Jr(!!(le&1));let zt=yi();Do(!!(le&2));let fi=ni;ni=!1;let Ki=_t();Ki&&Dr(!1);let Sr=Ig(!!(le&16),We);return Ki&&Dr(!0),ni=fi,Jr(lt),Do(zt),Sr}function QE(){let le=se(),We=rt();return ai(27),xn(pi(k.createEmptyStatement(),le),We)}function Rd(){let le=se(),We=rt();ai(101);let lt=t.getTokenStart(),zt=ai(21),fi=Ai(zf);Fc(21,22,zt,lt);let Ki=Jm(),Sr=fo(93)?Jm():void 0;return xn(pi(Se(fi,Ki,Sr),le),We)}function ZE(){let le=se(),We=rt();ai(92);let lt=Jm();ai(117);let zt=t.getTokenStart(),fi=ai(21),Ki=Ai(zf);return Fc(21,22,fi,zt),fo(27),xn(pi(k.createDoStatement(lt,Ki),le),We)}function sv(){let le=se(),We=rt();ai(117);let lt=t.getTokenStart(),zt=ai(21),fi=Ai(zf);Fc(21,22,zt,lt);let Ki=Jm();return xn(pi(Re(fi,Ki),le),We)}function eD(){let le=se(),We=rt();ai(99);let lt=ka(135);ai(21);let zt;fe()!==27&&(fe()===115||fe()===121||fe()===87||fe()===160&&gi(hA)||fe()===135&&gi(gA)?zt=w6(!0):zt=Ha(zf));let fi;if(lt?ai(165):fo(165)){let Ki=Ai(()=>kp(!0));ai(22),fi=ke(lt,zt,Ki,Jm())}else if(fo(103)){let Ki=Ai(zf);ai(22),fi=k.createForInStatement(zt,Ki,Jm())}else{ai(27);let Ki=fe()!==27&&fe()!==22?Ai(zf):void 0;ai(27);let Sr=fe()!==22?Ai(zf):void 0;ai(22),fi=ie(zt,Ki,Sr,Jm())}return xn(pi(fi,le),We)}function $k(le){let We=se(),lt=rt();ai(le===252?83:88);let zt=nc()?void 0:Fl();Bo();let fi=le===252?k.createBreakStatement(zt):k.createContinueStatement(zt);return xn(pi(fi,We),lt)}function Cb(){let le=se(),We=rt();ai(107);let lt=nc()?void 0:Ai(zf);return Bo(),xn(pi(k.createReturnStatement(lt),le),We)}function Qx(){let le=se(),We=rt();ai(118);let lt=t.getTokenStart(),zt=ai(21),fi=Ai(zf);Fc(21,22,zt,lt);let Ki=aa(67108864,Jm);return xn(pi(k.createWithStatement(fi,Ki),le),We)}function BT(){let le=se(),We=rt();ai(84);let lt=Ai(zf);ai(59);let zt=Ja(3,Jm);return xn(pi(k.createCaseClause(lt,zt),le),We)}function Fu(){let le=se();ai(90),ai(59);let We=Ja(3,Jm);return pi(k.createDefaultClause(We),le)}function xf(){return fe()===84?BT():Fu()}function x6(){let le=se();ai(19);let We=Ja(2,xf);return ai(20),pi(k.createCaseBlock(We),le)}function n_(){let le=se(),We=rt();ai(109),ai(21);let lt=Ai(zf);ai(22);let zt=x6();return xn(pi(k.createSwitchStatement(lt,zt),le),We)}function Tp(){let le=se(),We=rt();ai(111);let lt=t.hasPrecedingLineBreak()?void 0:Ai(zf);return lt===void 0&&(ci++,lt=pi(W(""),se())),rc()||Ss(lt),xn(pi(k.createThrowStatement(lt),le),We)}function _A(){let le=se(),We=rt();ai(113);let lt=Ig(!1),zt=fe()===85?my():void 0,fi;return(!zt||fe()===98)&&(ai(98,S.catch_or_finally_expected),fi=Ig(!1)),xn(pi(k.createTryStatement(lt,zt,fi),le),We)}function my(){let le=se();ai(85);let We;fo(21)?(We=VT(),ai(22)):We=void 0;let lt=Ig(!1);return pi(k.createCatchClause(We,lt),le)}function pA(){let le=se(),We=rt();return ai(89),Bo(),xn(pi(k.createDebuggerStatement(),le),We)}function MS(){let le=se(),We=rt(),lt,zt=fe()===21,fi=Ai(zf);return et(fi)&&fo(59)?lt=k.createLabeledStatement(fi,Jm()):(rc()||Ss(fi),lt=be(fi),zt&&(We=!1)),xn(pi(lt,le),We)}function tD(){return Qe(),$_(fe())&&!t.hasPrecedingLineBreak()}function q8(){return Qe(),fe()===86&&!t.hasPrecedingLineBreak()}function Ml(){return Qe(),fe()===100&&!t.hasPrecedingLineBreak()}function C6(){return Qe(),($_(fe())||fe()===9||fe()===10||fe()===11)&&!t.hasPrecedingLineBreak()}function mA(){for(;;)switch(fe()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Ep();case 135:return eC();case 120:case 156:return fy();case 144:case 145:return RS();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let le=fe();if(Qe(),t.hasPrecedingLineBreak())return!1;if(le===138&&fe()===156)return!0;continue;case 162:return Qe(),fe()===19||fe()===80||fe()===95;case 102:return Qe(),fe()===11||fe()===42||fe()===19||$_(fe());case 95:let We=Qe();if(We===156&&(We=gi(Qe)),We===64||We===42||We===19||We===90||We===130||We===60)return!0;continue;case 126:Qe();continue;default:return!1}}function Zx(){return gi(mA)}function iD(){switch(fe()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Zx()||gi(qi);case 87:case 95:return Zx();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Zx()||!gi(tD);default:return rv()}}function rp(){return Qe(),Li()||fe()===19||fe()===23}function jT(){return gi(rp)}function hA(){return WT(!0)}function WT(le){return Qe(),le&&fe()===165?!1:(Li()||fe()===19)&&!t.hasPrecedingLineBreak()}function Ep(){return gi(WT)}function gA(le){return Qe()===160?WT(le):!1}function eC(){return gi(gA)}function Jm(){switch(fe()){case 27:return QE();case 19:return Ig(!1);case 115:return Gk(se(),rt(),void 0);case 121:if(jT())return Gk(se(),rt(),void 0);break;case 135:if(eC())return Gk(se(),rt(),void 0);break;case 160:if(Ep())return Gk(se(),rt(),void 0);break;case 100:return HT(se(),rt(),void 0);case 86:return Io(se(),rt(),void 0);case 101:return Rd();case 92:return ZE();case 117:return sv();case 99:return eD();case 88:return $k(251);case 83:return $k(252);case 107:return Cb();case 118:return Qx();case 109:return n_();case 111:return Tp();case 113:case 85:case 98:return _A();case 89:return pA();case 60:return tC();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Zx())return tC();break}return MS()}function nD(le){return le.kind===138}function tC(){let le=se(),We=rt(),lt=Ei(!0);if(Lt(lt,nD)){let fi=$8(le);if(fi)return fi;for(let Ki of lt)Ki.flags|=33554432;return aa(33554432,()=>zT(le,We,lt))}else return zT(le,We,lt)}function $8(le){return aa(33554432,()=>{let We=Nd(Fi,le);if(We)return Mc(We)})}function zT(le,We,lt){switch(fe()){case 115:case 121:case 87:case 160:case 135:return Gk(le,We,lt);case 100:return HT(le,We,lt);case 86:return Io(le,We,lt);case 120:return sD(le,We,lt);case 156:return m0(le,We,lt);case 94:return jS(le,We,lt);case 162:case 144:case 145:return q9(le,We,lt);case 102:return T6(le,We,lt);case 95:switch(Qe(),fe()){case 90:case 64:return Y9(le,We,lt);case 130:return K8(le,We,lt);default:return lD(le,We,lt)}default:if(lt){let zt=Ac(282,!0,S.Declaration_expected);return SO(zt,le),zt.modifiers=lt,zt}return}}function rD(){return Qe()===11}function yA(){return Qe(),fe()===161||fe()===64}function RS(){return Qe(),!t.hasPrecedingLineBreak()&&(Vi()||fe()===11)}function W_(le,We){if(fe()!==19){if(le&4){mb();return}if(nc()){Bo();return}}return FS(le,We)}function _1(){let le=se();if(fe()===28)return pi(k.createOmittedExpression(),le);let We=ka(26),lt=z_(),zt=gb();return pi(k.createBindingElement(We,void 0,lt,zt),le)}function p1(){let le=se(),We=ka(26),lt=Li(),zt=un(),fi;lt&&fe()!==59?(fi=zt,zt=void 0):(ai(59),fi=z_());let Ki=gb();return pi(k.createBindingElement(We,zt,fi,Ki),le)}function k6(){let le=se();ai(19);let We=Ai(()=>Ad(9,p1));return ai(20),pi(k.createObjectBindingPattern(We),le)}function cc(){let le=se();ai(23);let We=Ai(()=>Ad(10,_1));return ai(24),pi(k.createArrayBindingPattern(We),le)}function sr(){return fe()===19||fe()===23||fe()===81||Li()}function z_(le){return fe()===23?cc():fe()===19?k6():bp(le)}function bm(){return VT(!0)}function VT(le){let We=se(),lt=rt(),zt=z_(S.Private_identifiers_are_not_allowed_in_variable_declarations),fi;le&&zt.kind===80&&fe()===54&&!t.hasPrecedingLineBreak()&&(fi=id());let Ki=l0(),Sr=Hk(fe())?void 0:gb(),Co=De(zt,fi,Ki,Sr);return xn(pi(Co,We),lt)}function w6(le){let We=se(),lt=0;switch(fe()){case 115:break;case 121:lt|=1;break;case 87:lt|=2;break;case 160:lt|=4;break;case 135:B.assert(eC()),lt|=6,Qe();break;default:B.fail()}Qe();let zt;if(fe()===165&&gi(vA))zt=j_();else{let fi=mt();Qn(le),zt=Ad(8,le?VT:bm),Qn(fi)}return pi(Oe(zt,lt),We)}function vA(){return h_()&&Qe()===22}function Gk(le,We,lt){let zt=w6(!1);Bo();let fi=ve(lt,zt);return xn(pi(fi,le),We)}function HT(le,We,lt){let zt=yi(),fi=K0(lt);ai(100);let Ki=ka(42),Sr=fi&2048?f1():bp(),Co=Ki?1:0,eo=fi&1024?2:0,to=xp();fi&32&&Do(!0);let Mo=ig(Co|eo),Dc=tg(59,!1),Ic=W_(Co|eo,S.or_expected);Do(zt);let Za=k.createFunctionDeclaration(lt,Ki,Sr,to,Mo,Dc,Ic);return xn(pi(Za,le),We)}function UT(){if(fe()===137)return ai(137);if(fe()===11&&gi(Qe)===21)return Xi(()=>{let le=Ut();return le.text==="constructor"?le:void 0})}function sg(le,We,lt){return Xi(()=>{if(UT()){let zt=xp(),fi=ig(0),Ki=tg(59,!1),Sr=W_(0,S.or_expected),Co=k.createConstructorDeclaration(lt,fi,Sr);return Co.typeParameters=zt,Co.type=Ki,xn(pi(Co,le),We)}})}function im(le,We,lt,zt,fi,Ki,Sr,Co){let eo=zt?1:0,to=Lt(lt,AO)?2:0,Mo=xp(),Dc=ig(eo|to),Ic=tg(59,!1),Za=W_(eo|to,Co),Ch=k.createMethodDeclaration(lt,zt,fi,Ki,Mo,Dc,Ic,Za);return Ch.exclamationToken=Sr,xn(pi(Ch,le),We)}function nm(le,We,lt,zt,fi){let Ki=!fi&&!t.hasPrecedingLineBreak()?ka(54):void 0,Sr=l0(),Co=na(90112,gb);Zl(zt,Sr,Co);let eo=k.createPropertyDeclaration(lt,zt,fi||Ki,Sr,Co);return xn(pi(eo,le),We)}function _0(le,We,lt){let zt=ka(42),fi=un(),Ki=ka(58);return zt||fe()===21||fe()===30?im(le,We,lt,zt,fi,Ki,void 0,S.or_expected):nm(le,We,lt,fi,Ki)}function ag(le,We,lt,zt,fi){let Ki=un(),Sr=xp(),Co=ig(0),eo=tg(59,!1),to=W_(fi),Mo=zt===177?k.createGetAccessorDeclaration(lt,Ki,Co,eo,to):k.createSetAccessorDeclaration(lt,Ki,Co,to);return Mo.typeParameters=Sr,qp(Mo)&&(Mo.type=eo),xn(pi(Mo,le),We)}function oD(){let le;if(fe()===60)return!0;for(;px(fe());){if(le=fe(),EQ(le))return!0;Qe()}if(fe()===42||(Ze()&&(le=fe(),Qe()),fe()===23))return!0;if(le!==void 0){if(!Q_(le)||le===153||le===139)return!0;switch(fe()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return nc()}}return!1}function pd(le,We,lt){Ts(126);let zt=bA(),fi=xn(pi(k.createClassStaticBlockDeclaration(zt),le),We);return fi.modifiers=lt,fi}function bA(){let le=It(),We=yi();Jr(!1),Do(!0);let lt=Ig(!1);return Jr(le),Do(We),lt}function M(){if(yi()&&fe()===135){let le=se(),We=Fl(S.Expression_expected);Qe();let lt=d1(le,We,!0);return Um(le,lt)}return Kx()}function Te(){let le=se();if(!fo(60))return;let We=ct(M);return pi(k.createDecorator(We),le)}function Rt(le,We,lt){let zt=se(),fi=fe();if(fe()===87&&We){if(!Xi(Pr))return}else{if(lt&&fe()===126&&gi(Xk))return;if(le&&fe()===126)return;if(!Au())return}return pi(q(fi),zt)}function Ei(le,We,lt){let zt=se(),fi,Ki,Sr,Co=!1,eo=!1,to=!1;if(le&&fe()===60)for(;Ki=Te();)fi=hi(fi,Ki);for(;Sr=Rt(Co,We,lt);)Sr.kind===126&&(Co=!0),fi=hi(fi,Sr),eo=!0;if(eo&&le&&fe()===60)for(;Ki=Te();)fi=hi(fi,Ki),to=!0;if(to)for(;Sr=Rt(Co,We,lt);)Sr.kind===126&&(Co=!0),fi=hi(fi,Sr);return fi&&Ua(fi,zt)}function Xr(){let le;if(fe()===134){let We=se();Qe();let lt=pi(q(134),We);le=Ua([lt],We)}return le}function jo(){let le=se(),We=rt();if(fe()===27)return Qe(),xn(pi(k.createSemicolonClassElement(),le),We);let lt=Ei(!0,!0,!0);if(fe()===126&&gi(Xk))return pd(le,We,lt);if(hr(139))return ag(le,We,lt,177,0);if(hr(153))return ag(le,We,lt,178,0);if(fe()===137||fe()===11){let zt=sg(le,We,lt);if(zt)return zt}if(nv())return Bk(le,We,lt);if($_(fe())||fe()===11||fe()===9||fe()===10||fe()===42||fe()===23)if(Lt(lt,nD)){for(let fi of lt)fi.flags|=33554432;return aa(33554432,()=>_0(le,We,lt))}else return _0(le,We,lt);if(lt){let zt=Ac(80,!0,S.Declaration_expected);return nm(le,We,lt,zt,void 0)}return B.fail("Should not have attempted to parse class member declaration.")}function Zo(){let le=se(),We=rt(),lt=Ei(!0);if(fe()===86)return b_(le,We,lt,231);let zt=Ac(282,!0,S.Expression_expected);return SO(zt,le),zt.modifiers=lt,zt}function Wo(){return b_(se(),rt(),void 0,231)}function Io(le,We,lt){return b_(le,We,lt,263)}function b_(le,We,lt,zt){let fi=yi();ai(86);let Ki=nf(),Sr=xp();Lt(lt,bN)&&Do(!0);let Co=BS(),eo;ai(19)?(eo=SA(),ai(20)):eo=j_(),Do(fi);let to=zt===263?k.createClassDeclaration(lt,Ki,Sr,Co,eo):k.createClassExpression(lt,Ki,Sr,Co,eo);return xn(pi(to,le),We)}function nf(){return Li()&&!p0()?nd(Li()):void 0}function p0(){return fe()===119&&gi(Ou)}function BS(){if(qT())return Ja(22,rm)}function rm(){let le=se(),We=fe();B.assert(We===96||We===119),Qe();let lt=Ad(7,JT);return pi(k.createHeritageClause(We,lt),le)}function JT(){let le=se(),We=Kx();if(We.kind===233)return We;let lt=Kk();return pi(k.createExpressionWithTypeArguments(We,lt),le)}function Kk(){return fe()===30?zm(20,Md,30,32):void 0}function qT(){return fe()===96||fe()===119}function SA(){return Ja(5,jo)}function sD(le,We,lt){ai(120);let zt=Fl(),fi=xp(),Ki=BS(),Sr=tn(),Co=k.createInterfaceDeclaration(lt,zt,fi,Ki,Sr);return xn(pi(Co,le),We)}function m0(le,We,lt){ai(156),t.hasPrecedingLineBreak()&&Ii(S.Line_break_not_permitted_here);let zt=Fl(),fi=xp();ai(64);let Ki=fe()===141&&Xi(v_)||Md();Bo();let Sr=k.createTypeAliasDeclaration(lt,zt,fi,Ki);return xn(pi(Sr,le),We)}function m1(){let le=se(),We=rt(),lt=un(),zt=Ai(gb);return xn(pi(k.createEnumMember(lt,zt),le),We)}function jS(le,We,lt){ai(94);let zt=Fl(),fi;ai(19)?(fi=bt(()=>Ad(6,m1)),ai(20)):fi=j_();let Ki=k.createEnumDeclaration(lt,zt,fi);return xn(pi(Ki,le),We)}function xA(){let le=se(),We;return ai(19)?(We=Ja(1,Jm),ai(20)):We=j_(),pi(k.createModuleBlock(We),le)}function iC(le,We,lt,zt){let fi=zt&32,Ki=zt&8?$l():Fl(),Sr=fo(25)?iC(se(),!1,void 0,8|fi):xA(),Co=k.createModuleDeclaration(lt,Ki,Sr,zt);return xn(pi(Co,le),We)}function G8(le,We,lt){let zt=0,fi;fe()===162?(fi=Fl(),zt|=2048):(fi=Ut(),fi.text=Wf(fi.text));let Ki;fe()===19?Ki=xA():Bo();let Sr=k.createModuleDeclaration(lt,fi,Ki,zt);return xn(pi(Sr,le),We)}function q9(le,We,lt){let zt=0;if(fe()===162)return G8(le,We,lt);if(fo(145))zt|=32;else if(ai(144),fe()===11)return G8(le,We,lt);return iC(le,We,lt,zt)}function $9(){return fe()===149&&gi(Lo)}function Lo(){return Qe()===21}function Xk(){return Qe()===19}function Dn(){return Qe()===44}function K8(le,We,lt){ai(130),ai(145);let zt=Fl();Bo();let fi=k.createNamespaceExportDeclaration(zt);return fi.modifiers=lt,xn(pi(fi,le),We)}function T6(le,We,lt){ai(102);let zt=t.getTokenFullStart(),fi;Vi()&&(fi=Fl());let Ki=!1;if(fi?.escapedText==="type"&&(fe()!==161||Vi()&&gi(yA))&&(Vi()||Jq())&&(Ki=!0,fi=Vi()?Fl():void 0),fi&&!hy())return qq(le,We,lt,fi,Ki);let Sr=nC(fi,zt,Ki),Co=cD(),eo=E6();Bo();let to=k.createImportDeclaration(lt,Sr,Co,eo);return xn(pi(to,le),We)}function nC(le,We,lt,zt=!1){let fi;return(le||fe()===42||fe()===19)&&(fi=Y8(le,We,lt,zt),ai(161)),fi}function E6(){let le=fe();if((le===118||le===132)&&!t.hasPrecedingLineBreak())return X8(le)}function G9(){let le=se(),We=$_(fe())?$l():os(11);ai(59);let lt=kp(!0);return pi(k.createImportAttribute(We,lt),le)}function X8(le,We){let lt=se();We||ai(le);let zt=t.getTokenStart();if(ai(19)){let fi=t.hasPrecedingLineBreak(),Ki=Ad(24,G9,!0);if(!ai(20)){let Sr=Lc(Ke);Sr&&Sr.code===S._0_expected.code&&Xs(Sr,aN(we,Fe,zt,1,S.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return pi(k.createImportAttributes(Ki,fi,le),lt)}else{let fi=Ua([],se(),void 0,!1);return pi(k.createImportAttributes(fi,!1,le),lt)}}function Jq(){return fe()===42||fe()===19}function hy(){return fe()===28||fe()===161}function qq(le,We,lt,zt,fi){ai(64);let Ki=$q();Bo();let Sr=k.createImportEqualsDeclaration(lt,fi,zt,Ki);return xn(pi(Sr,le),We)}function Y8(le,We,lt,zt){let fi;return(!le||fo(28))&&(zt&&t.setSkipJsDocLeadingAsterisks(!0),fi=fe()===42?K9():D6(275),zt&&t.setSkipJsDocLeadingAsterisks(!1)),pi(k.createImportClause(lt,le,fi),We)}function $q(){return $9()?aD():me(!1)}function aD(){let le=se();ai(149),ai(21);let We=cD();return ai(22),pi(k.createExternalModuleReference(We),le)}function cD(){if(fe()===11){let le=Ut();return le.text=Wf(le.text),le}else return zf()}function K9(){let le=se();ai(42),ai(130);let We=Fl();return pi(k.createNamespaceImport(We),le)}function rC(){return $_(fe())||fe()===11}function Ng(le){return fe()===11?Ut():le()}function D6(le){let We=se(),lt=le===275?k.createNamedImports(zm(23,oC,19,20)):k.createNamedExports(zm(23,av,19,20));return pi(lt,We)}function av(){let le=rt();return xn(X9(281),le)}function oC(){return X9(276)}function X9(le){let We=se(),lt=Q_(fe())&&!Vi(),zt=t.getTokenStart(),fi=t.getTokenEnd(),Ki=!1,Sr,Co=!0,eo=Ng($l);if(eo.kind===80&&eo.escapedText==="type")if(fe()===130){let Dc=$l();if(fe()===130){let Ic=$l();rC()?(Ki=!0,Sr=Dc,eo=Ng(Mo),Co=!1):(Sr=eo,eo=Ic,Co=!1)}else rC()?(Sr=eo,Co=!1,eo=Ng(Mo)):(Ki=!0,eo=Dc)}else rC()&&(Ki=!0,eo=Ng(Mo));Co&&fe()===130&&(Sr=eo,ai(130),eo=Ng(Mo)),le===276&&(eo.kind!==80?(Y(Ea(Fe,eo.pos),eo.end,S.Identifier_expected),eo=Qg(Ac(80,!1),eo.pos,eo.pos)):lt&&Y(zt,fi,S.Identifier_expected));let to=le===276?k.createImportSpecifier(Ki,Sr,eo):k.createExportSpecifier(Ki,Sr,eo);return pi(to,We);function Mo(){return lt=Q_(fe())&&!Vi(),zt=t.getTokenStart(),fi=t.getTokenEnd(),$l()}}function cv(le){return pi(k.createNamespaceExport(Ng($l)),le)}function lD(le,We,lt){let zt=yi();Do(!0);let fi,Ki,Sr,Co=fo(156),eo=se();fo(42)?(fo(130)&&(fi=cv(eo)),ai(161),Ki=cD()):(fi=D6(279),(fe()===161||fe()===11&&!t.hasPrecedingLineBreak())&&(ai(161),Ki=cD()));let to=fe();Ki&&(to===118||to===132)&&!t.hasPrecedingLineBreak()&&(Sr=X8(to)),Bo(),Do(zt);let Mo=k.createExportDeclaration(lt,Co,fi,Ki,Sr);return xn(pi(Mo,le),We)}function Y9(le,We,lt){let zt=yi();Do(!0);let fi;fo(64)?fi=!0:ai(90);let Ki=kp(!0);Bo(),Do(zt);let Sr=k.createExportAssignment(lt,fi,Ki);return xn(pi(Sr,le),We)}let Mu;(le=>{le[le.SourceElements=0]="SourceElements",le[le.BlockStatements=1]="BlockStatements",le[le.SwitchClauses=2]="SwitchClauses",le[le.SwitchClauseStatements=3]="SwitchClauseStatements",le[le.TypeMembers=4]="TypeMembers",le[le.ClassMembers=5]="ClassMembers",le[le.EnumMembers=6]="EnumMembers",le[le.HeritageClauseElement=7]="HeritageClauseElement",le[le.VariableDeclarations=8]="VariableDeclarations",le[le.ObjectBindingElements=9]="ObjectBindingElements",le[le.ArrayBindingElements=10]="ArrayBindingElements",le[le.ArgumentExpressions=11]="ArgumentExpressions",le[le.ObjectLiteralMembers=12]="ObjectLiteralMembers",le[le.JsxAttributes=13]="JsxAttributes",le[le.JsxChildren=14]="JsxChildren",le[le.ArrayLiteralMembers=15]="ArrayLiteralMembers",le[le.Parameters=16]="Parameters",le[le.JSDocParameters=17]="JSDocParameters",le[le.RestProperties=18]="RestProperties",le[le.TypeParameters=19]="TypeParameters",le[le.TypeArguments=20]="TypeArguments",le[le.TupleElementTypes=21]="TupleElementTypes",le[le.HeritageClauses=22]="HeritageClauses",le[le.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",le[le.ImportAttributes=24]="ImportAttributes",le[le.JSDocComment=25]="JSDocComment",le[le.Count=26]="Count"})(Mu||(Mu={}));let CA;(le=>{le[le.False=0]="False",le[le.True=1]="True",le[le.Unknown=2]="Unknown"})(CA||(CA={}));let pc;(le=>{function We(to,Mo,Dc){Gr("file.js",to,99,void 0,1,0),t.setText(to,Mo,Dc),xt=t.scan();let Ic=lt(),Za=si("file.js",99,1,!1,[],q(1),0,dc),Ch=cN(Ke,Za);return Ue&&(Za.jsDocDiagnostics=cN(Ue,Za)),is(),Ic?{jsDocTypeExpression:Ic,diagnostics:Ch}:void 0}le.parseJSDocTypeExpressionForTests=We;function lt(to){let Mo=se(),Dc=(to?fo:ai)(19),Ic=aa(16777216,Sh);(!to||Dc)&&Uu(20);let Za=k.createJSDocTypeExpression(Ic);return it(Za),pi(Za,Mo)}le.parseJSDocTypeExpression=lt;function zt(){let to=se(),Mo=fo(19),Dc=se(),Ic=me(!1);for(;fe()===81;)ti(),ei(),Ic=pi(k.createJSDocMemberName(Ic,Fl()),Dc);Mo&&Uu(20);let Za=k.createJSDocNameReference(Ic);return it(Za),pi(Za,to)}le.parseJSDocNameReference=zt;function fi(to,Mo,Dc){Gr("",to,99,void 0,1,0);let Ic=aa(16777216,()=>eo(Mo,Dc)),Ch=cN(Ke,{languageVariant:0,text:to});return is(),Ic?{jsDoc:Ic,diagnostics:Ch}:void 0}le.parseIsolatedJSDocComment=fi;function Ki(to,Mo,Dc){let Ic=xt,Za=Ke.length,Ch=Ci,md=aa(16777216,()=>eo(Mo,Dc));return ic(md,to),an&524288&&(Ue||(Ue=[]),Fn(Ue,Ke,Za)),xt=Ic,Ke.length=Za,Ci=Ch,md}le.parseJSDocComment=Ki;let Sr;(to=>{to[to.BeginningOfLine=0]="BeginningOfLine",to[to.SawAsterisk=1]="SawAsterisk",to[to.SavingComments=2]="SavingComments",to[to.SavingBackticks=3]="SavingBackticks"})(Sr||(Sr={}));let Co;(to=>{to[to.Property=1]="Property",to[to.Parameter=2]="Parameter",to[to.CallbackParameter=4]="CallbackParameter"})(Co||(Co={}));function eo(to=0,Mo){let Dc=Fe,Ic=Mo===void 0?Dc.length:to+Mo;if(Mo=Ic-to,B.assert(to>=0),B.assert(to<=Ic),B.assert(Ic<=Dc.length),!_te(Dc,to))return;let Za,Ch,md,qm,kb,h1=[],sC=[],Gq=Fi;Fi|=1<<25;let oc=t.scanRange(to+3,Mo-5,rd);return Fi=Gq,oc;function rd(){let on=1,fr,vr=to-(Dc.lastIndexOf(` +`,to)+1)+4;function ao(Bc){fr||(fr=vr),h1.push(Bc),vr+=Bc.length}for(ei();Ag(5););Ag(4)&&(on=0,vr=0);e:for(;;){switch(fe()){case 60:$T(h1),kb||(kb=se()),ns(Un(vr)),on=0,fr=void 0;break;case 4:h1.push(t.getTokenText()),on=0,vr=0;break;case 42:let Bc=t.getTokenText();on===1?(on=2,ao(Bc)):(B.assert(on===0),on=1,vr+=Bc.length);break;case 5:B.assert(on!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let dl=t.getTokenText();fr!==void 0&&vr+dl.length>fr&&h1.push(dl.slice(fr-vr)),vr+=dl.length;break;case 1:break e;case 82:on=2,ao(t.getTokenValue());break;case 19:on=2;let uv=t.getTokenFullStart(),yy=t.getTokenEnd()-1,h0=Z(yy);if(h0){qm||wb(h1),sC.push(pi(k.createJSDocText(h1.join("")),qm??to,uv)),sC.push(h0),h1=[],qm=t.getTokenEnd();break}default:on=2,ao(t.getTokenText());break}on===2?In(!1):ei()}let Yr=h1.join("").trimEnd();sC.length&&Yr.length&&sC.push(pi(k.createJSDocText(Yr),qm??to,kb)),sC.length&&Za&&B.assertIsDefined(kb,"having parsed tags implies that the end of the comment span should be set");let sc=Za&&Ua(Za,Ch,md);return pi(k.createJSDocComment(sC.length?Ua(sC,to,kb):Yr.length?Yr:void 0,sc),to,Ic)}function wb(on){for(;on.length&&(on[0]===` +`||on[0]==="\r");)on.shift()}function $T(on){for(;on.length;){let fr=on[on.length-1].trimEnd();if(fr==="")on.pop();else if(fr.lengthdl&&(ao.push(vy.slice(dl-on)),Bc=2),on+=vy.length;break;case 19:Bc=2;let eB=t.getTokenFullStart(),L6=t.getTokenEnd()-1,op=Z(L6);op?(Yr.push(pi(k.createJSDocText(ao.join("")),sc??vr,eB)),Yr.push(op),ao=[],sc=t.getTokenEnd()):uv(t.getTokenText());break;case 62:Bc===3?Bc=2:Bc=3,uv(t.getTokenText());break;case 82:Bc!==3&&(Bc=2),uv(t.getTokenValue());break;case 42:if(Bc===0){Bc=1,on+=1;break}default:Bc!==3&&(Bc=2),uv(t.getTokenText());break}Bc===2||Bc===3?yy=In(Bc===3):yy=ei()}wb(ao);let h0=ao.join("").trimEnd();if(Yr.length)return h0.length&&Yr.push(pi(k.createJSDocText(h0),sc??vr)),Ua(Yr,vr,t.getTokenEnd());if(h0.length)return h0}function Z(on){let fr=Xi(st);if(!fr)return;ei(),Sm();let vr=xe(),ao=[];for(;fe()!==20&&fe()!==4&&fe()!==1;)ao.push(t.getTokenText()),ei();let Yr=fr==="link"?k.createJSDocLink:fr==="linkcode"?k.createJSDocLinkCode:k.createJSDocLinkPlain;return pi(Yr(vr,ao.join("")),on,t.getTokenEnd())}function xe(){if($_(fe())){let on=se(),fr=$l();for(;fo(25);)fr=pi(k.createQualifiedName(fr,fe()===81?Ac(80,!1):$l()),on);for(;fe()===81;)ti(),ei(),fr=pi(k.createJSDocMemberName(fr,Fl()),on);return fr}}function st(){if(Yk(),fe()===19&&ei()===60&&$_(ei())){let on=t.getTokenValue();if(ui(on))return on}}function ui(on){return on==="link"||on==="linkcode"||on==="linkplain"}function Xn(on,fr,vr,ao){return pi(k.createJSDocUnknownTag(fr,I(on,se(),vr,ao)),on)}function ns(on){on&&(Za?Za.push(on):(Za=[on],Ch=on.pos),md=on.end)}function Rc(){return Yk(),fe()===19?lt():void 0}function kh(){let on=Ag(23);on&&Sm();let fr=Ag(62),vr=z2e();return fr&&e_(62),on&&(Sm(),ka(64)&&zf(),ai(24)),{name:vr,isBracketed:on}}function lv(on){switch(on.kind){case 151:return!0;case 188:return lv(on.elementType);default:return pm(on)&&et(on.typeName)&&on.typeName.escapedText==="Object"&&!on.typeArguments}}function $m(on,fr,vr,ao){let Yr=Rc(),sc=!Yr;Yk();let{name:Bc,isBracketed:dl}=kh(),uv=Yk();sc&&!gi(st)&&(Yr=Rc());let yy=I(on,se(),ao,uv),h0=I6(Yr,Bc,vr,ao);h0&&(Yr=h0,sc=!0);let vy=vr===1?k.createJSDocPropertyTag(fr,Bc,dl,Yr,sc,yy):k.createJSDocParameterTag(fr,Bc,dl,Yr,sc,yy);return pi(vy,on)}function I6(on,fr,vr,ao){if(on&&lv(on.type)){let Yr=se(),sc,Bc;for(;sc=Xi(()=>dD(vr,ao,fr));)sc.kind===341||sc.kind===348?Bc=hi(Bc,sc):sc.kind===345&&$e(sc.tagName,S.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Bc){let dl=pi(k.createJSDocTypeLiteral(Bc,on.type.kind===188),Yr);return pi(k.createJSDocTypeExpression(dl),Yr)}}}function M2e(on,fr,vr,ao){Lt(Za,DH)&&Y(fr.pos,t.getTokenStart(),S._0_tag_already_specified,So(fr.escapedText));let Yr=Rc();return pi(k.createJSDocReturnTag(fr,Yr,I(on,se(),vr,ao)),on)}function _ae(on,fr,vr,ao){Lt(Za,VO)&&Y(fr.pos,t.getTokenStart(),S._0_tag_already_specified,So(fr.escapedText));let Yr=lt(!0),sc=vr!==void 0&&ao!==void 0?I(on,se(),vr,ao):void 0;return pi(k.createJSDocTypeTag(fr,Yr,sc),on)}function uD(on,fr,vr,ao){let sc=fe()===23||gi(()=>ei()===60&&$_(ei())&&ui(t.getTokenValue()))?void 0:zt(),Bc=vr!==void 0&&ao!==void 0?I(on,se(),vr,ao):void 0;return pi(k.createJSDocSeeTag(fr,sc,Bc),on)}function Z8(on,fr,vr,ao){let Yr=Rc(),sc=I(on,se(),vr,ao);return pi(k.createJSDocThrowsTag(fr,Yr,sc),on)}function R2e(on,fr,vr,ao){let Yr=se(),sc=B2e(),Bc=t.getTokenFullStart(),dl=I(on,Bc,vr,ao);dl||(Bc=t.getTokenFullStart());let uv=typeof dl!="string"?Ua(Fo([pi(sc,Yr,Bc)],dl),Yr):sc.text+dl;return pi(k.createJSDocAuthorTag(fr,uv),on)}function B2e(){let on=[],fr=!1,vr=t.getToken();for(;vr!==1&&vr!==4;){if(vr===30)fr=!0;else{if(vr===60&&!fr)break;if(vr===32&&fr){on.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}on.push(t.getTokenText()),vr=ei()}return k.createJSDocText(on.join(""))}function Q9(on,fr,vr,ao){let Yr=hae();return pi(k.createJSDocImplementsTag(fr,Yr,I(on,se(),vr,ao)),on)}function pae(on,fr,vr,ao){let Yr=hae();return pi(k.createJSDocAugmentsTag(fr,Yr,I(on,se(),vr,ao)),on)}function mae(on,fr,vr,ao){let Yr=lt(!1),sc=vr!==void 0&&ao!==void 0?I(on,se(),vr,ao):void 0;return pi(k.createJSDocSatisfiesTag(fr,Yr,sc),on)}function eF(on,fr,vr,ao){let Yr=t.getTokenFullStart(),sc;Vi()&&(sc=Fl());let Bc=nC(sc,Yr,!0,!0),dl=cD(),uv=E6(),yy=vr!==void 0&&ao!==void 0?I(on,se(),vr,ao):void 0;return pi(k.createJSDocImportTag(fr,Bc,dl,uv,yy),on)}function hae(){let on=fo(19),fr=se(),vr=gae();t.setSkipJsDocLeadingAsterisks(!0);let ao=Kk();t.setSkipJsDocLeadingAsterisks(!1);let Yr=k.createExpressionWithTypeArguments(vr,ao),sc=pi(Yr,fr);return on&&ai(20),sc}function gae(){let on=se(),fr=Qk();for(;fo(25);){let vr=Qk();fr=pi(te(fr,vr),on)}return fr}function kA(on,fr,vr,ao,Yr){return pi(fr(vr,I(on,se(),ao,Yr)),on)}function yae(on,fr,vr,ao){let Yr=lt(!0);return Sm(),pi(k.createJSDocThisTag(fr,Yr,I(on,se(),vr,ao)),on)}function j2e(on,fr,vr,ao){let Yr=lt(!0);return Sm(),pi(k.createJSDocEnumTag(fr,Yr,I(on,se(),vr,ao)),on)}function N6(on,fr,vr,ao){let Yr=Rc();Yk();let sc=Z9();Sm();let Bc=V(vr),dl;if(!Yr||lv(Yr.type)){let yy,h0,vy,eB=!1;for(;(yy=Xi(()=>gy(vr)))&&yy.kind!==345;)if(eB=!0,yy.kind===344)if(h0){let L6=Ii(S.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);L6&&Xs(L6,aN(we,Fe,0,0,S.The_tag_was_first_specified_here));break}else h0=yy;else vy=hi(vy,yy);if(eB){let L6=Yr&&Yr.type.kind===188,op=k.createJSDocTypeLiteral(vy,L6);Yr=h0&&h0.typeExpression&&!lv(h0.typeExpression.type)?h0.typeExpression:pi(op,on),dl=Yr.end}}dl=dl||Bc!==void 0?se():(sc??Yr??fr).end,Bc||(Bc=I(on,dl,vr,ao));let uv=k.createJSDocTypedefTag(fr,Yr,sc,Bc);return pi(uv,on,dl)}function Z9(on){let fr=t.getTokenStart();if(!$_(fe()))return;let vr=Qk();if(fo(25)){let ao=Z9(!0),Yr=k.createModuleDeclaration(void 0,vr,ao,on?8:void 0);return pi(Yr,fr)}return on&&(vr.flags|=4096),vr}function W2e(on){let fr=se(),vr,ao;for(;vr=Xi(()=>dD(4,on));){if(vr.kind===345){$e(vr.tagName,S.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}ao=hi(ao,vr)}return Ua(ao||[],fr)}function aC(on,fr){let vr=W2e(fr),ao=Xi(()=>{if(Ag(60)){let Yr=Un(fr);if(Yr&&Yr.kind===342)return Yr}});return pi(k.createJSDocSignature(void 0,vr,ao),on)}function Wn(on,fr,vr,ao){let Yr=Z9();Sm();let sc=V(vr),Bc=aC(on,vr);sc||(sc=I(on,se(),vr,ao));let dl=sc!==void 0?se():Bc.end;return pi(k.createJSDocCallbackTag(fr,Bc,Yr,sc),on,dl)}function cC(on,fr,vr,ao){Sm();let Yr=V(vr),sc=aC(on,vr);Yr||(Yr=I(on,se(),vr,ao));let Bc=Yr!==void 0?se():sc.end;return pi(k.createJSDocOverloadTag(fr,sc,Yr),on,Bc)}function vae(on,fr){for(;!et(on)||!et(fr);)if(!et(on)&&!et(fr)&&on.right.escapedText===fr.right.escapedText)on=on.left,fr=fr.left;else return!1;return on.escapedText===fr.escapedText}function gy(on){return dD(1,on)}function dD(on,fr,vr){let ao=!0,Yr=!1;for(;;)switch(ei()){case 60:if(ao){let sc=A6(on,fr);return sc&&(sc.kind===341||sc.kind===348)&&vr&&(et(sc.name)||!vae(vr,sc.name.left))?!1:sc}Yr=!1;break;case 4:ao=!0,Yr=!1;break;case 42:Yr&&(ao=!1),Yr=!0;break;case 80:ao=!1;break;case 1:return!1}}function A6(on,fr){B.assert(fe()===60);let vr=t.getTokenFullStart();ei();let ao=Qk(),Yr=Yk(),sc;switch(ao.escapedText){case"type":return on===1&&_ae(vr,ao);case"prop":case"property":sc=1;break;case"arg":case"argument":case"param":sc=6;break;case"template":return Xq(vr,ao,fr,Yr);case"this":return yae(vr,ao,fr,Yr);default:return!1}return on&sc?$m(vr,ao,on,fr):!1}function Kq(){let on=se(),fr=Ag(23);fr&&Sm();let vr=Ei(!1,!0),ao=Qk(S.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Yr;if(fr&&(Sm(),ai(64),Yr=aa(16777216,Sh),ai(24)),!Ul(ao))return pi(k.createTypeParameterDeclaration(vr,ao,void 0,Yr),on)}function P6(){let on=se(),fr=[];do{Sm();let vr=Kq();vr!==void 0&&fr.push(vr),Yk()}while(Ag(28));return Ua(fr,on)}function Xq(on,fr,vr,ao){let Yr=fe()===19?lt():void 0,sc=P6();return pi(k.createJSDocTemplateTag(fr,Yr,sc,I(on,se(),vr,ao)),on)}function Ag(on){return fe()===on?(ei(),!0):!1}function z2e(){let on=Qk();for(fo(23)&&ai(24);fo(25);){let fr=Qk();fo(23)&&ai(24),on=wt(on,fr)}return on}function Qk(on){if(!$_(fe()))return Ac(80,!on,on||S.Identifier_expected);ci++;let fr=t.getTokenStart(),vr=t.getTokenEnd(),ao=fe(),Yr=Wf(t.getTokenValue()),sc=pi(W(Yr,ao),fr,vr);return ei(),sc}}})(pc=e.JSDocParser||(e.JSDocParser={}))})(xk||(xk={}));var IMe=new WeakSet;function sEt(e){IMe.has(e)&&B.fail("Source file has already been incrementally parsed"),IMe.add(e)}var NMe=new WeakSet;function aEt(e){return NMe.has(e)}function $ye(e){NMe.add(e)}var mte;(e=>{function t(P,R,W,z){if(z=z||B.shouldAssert(2),k(P,R,W,z),Eme(W))return P;if(P.statements.length===0)return xk.parseSourceFile(P.fileName,R,P.languageVersion,void 0,!0,P.scriptKind,P.setExternalModuleIndicator,P.jsDocParsingMode);sEt(P),xk.fixupParentReferences(P);let q=P.text,G=T(P),$=g(P,W);k(P,R,$,z),B.assert($.span.start<=W.span.start),B.assert(Vl($.span)===Vl(W.span)),B.assert(Vl(E3($))===Vl(E3(W)));let te=E3($).length-$.span.length;y(P,$.span.start,Vl($.span),Vl(E3($)),te,q,R,z);let ne=xk.parseSourceFile(P.fileName,R,P.languageVersion,G,!0,P.scriptKind,P.setExternalModuleIndicator,P.jsDocParsingMode);return ne.commentDirectives=r(P.commentDirectives,ne.commentDirectives,$.span.start,Vl($.span),te,q,R,z),ne.impliedNodeFormat=P.impliedNodeFormat,Cye(P,ne),ne}e.updateSourceFile=t;function r(P,R,W,z,q,G,$,te){if(!P)return R;let ne,_e=!1;for(let ae of P){let{range:Ce,type:he}=ae;if(Ce.endz){ce();let ue={range:{pos:Ce.pos+q,end:Ce.end+q},type:he};ne=hi(ne,ue),te&&B.assert(G.substring(Ce.pos,Ce.end)===$.substring(ue.range.pos,ue.range.end))}}return ce(),ne;function ce(){_e||(_e=!0,ne?R&&ne.push(...R):ne=R)}}function a(P,R,W,z,q,G,$){W?ne(P):te(P);return;function te(_e){let ce="";if($&&u(_e)&&(ce=q.substring(_e.pos,_e.end)),ete(_e,R),Qg(_e,_e.pos+z,_e.end+z),$&&u(_e)&&B.assert(ce===G.substring(_e.pos,_e.end)),ws(_e,te,ne),dm(_e))for(let ae of _e.jsDoc)te(ae);p(_e,$)}function ne(_e){Qg(_e,_e.pos+z,_e.end+z);for(let ce of _e)te(ce)}}function u(P){switch(P.kind){case 11:case 9:case 80:return!0}return!1}function f(P,R,W,z,q){B.assert(P.end>=R,"Adjusting an element that was entirely before the change range"),B.assert(P.pos<=W,"Adjusting an element that was entirely after the change range"),B.assert(P.pos<=P.end);let G=Math.min(P.pos,z),$=P.end>=W?P.end+q:Math.min(P.end,z);if(B.assert(G<=$),P.parent){let te=P.parent;B.assertGreaterThanOrEqual(G,te.pos),B.assertLessThanOrEqual($,te.end)}Qg(P,G,$)}function p(P,R){if(R){let W=P.pos,z=q=>{B.assert(q.pos>=W),W=q.end};if(dm(P))for(let q of P.jsDoc)z(q);ws(P,z),B.assert(W<=P.end)}}function y(P,R,W,z,q,G,$,te){ne(P);return;function ne(ce){if(B.assert(ce.pos<=ce.end),ce.pos>W){a(ce,P,!1,q,G,$,te);return}let ae=ce.end;if(ae>=R){if($ye(ce),ete(ce,P),f(ce,R,W,z,q),ws(ce,ne,_e),dm(ce))for(let Ce of ce.jsDoc)ne(Ce);p(ce,te);return}B.assert(aeW){a(ce,P,!0,q,G,$,te);return}let ae=ce.end;if(ae>=R){$ye(ce),f(ce,R,W,z,q);for(let Ce of ce)ne(Ce);return}B.assert(ae0&&$<=1;$++){let te=x(P,z);B.assert(te.pos<=z);let ne=te.pos;z=Math.max(0,ne-1)}let q=bu(z,Vl(R.span)),G=R.newLength+(R.span.start-z);return aM(q,G)}function x(P,R){let W=P,z;if(ws(P,G),z){let $=q(z);$.pos>W.pos&&(W=$)}return W;function q($){for(;;){let te=YZ($);if(te)$=te;else return $}}function G($){if(!Ul($))if($.pos<=R){if($.pos>=W.pos&&(W=$),R<$.end)return ws($,G),!0;B.assert($.end<=R),z=$}else return B.assert($.pos>R),!0}}function k(P,R,W,z){let q=P.text;if(W&&(B.assert(q.length-W.span.length+W.newLength===R.length),z||B.shouldAssert(3))){let G=q.substr(0,W.span.start),$=R.substr(0,W.span.start);B.assert(G===$);let te=q.substring(Vl(W.span),q.length),ne=R.substring(Vl(E3(W)),R.length);B.assert(te===ne)}}function T(P){let R=P.statements,W=0;B.assert(W=_e.pos&&$<_e.end?(ws(_e,te,ne),!0):!1}function ne(_e){if($>=_e.pos&&$<_e.end)for(let ce=0;ce<_e.length;ce++){let ae=_e[ce];if(ae){if(ae.pos===$)return R=_e,W=ce,z=ae,!0;if(ae.pos<$&&${P[P.Value=-1]="Value"})(A||(A={}))})(mte||(mte={}));function Jd(e){return hte(e)!==void 0}function hte(e){let t=IP(e,$V,!1);if(t)return t;if(Tl(e,".ts")){let r=Xu(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function cEt(e,t,r,a){if(e){if(e==="import")return 99;if(e==="require")return 1;a(t,r-t,S.resolution_mode_should_be_either_require_or_import)}}function gte(e,t){let r=[];for(let a of Mv(t,0)||F){let u=t.substring(a.pos,a.end);fEt(r,a,u)}e.pragmas=new Map;for(let a of r){if(e.pragmas.has(a.name)){let u=e.pragmas.get(a.name);u instanceof Array?u.push(a.args):e.pragmas.set(a.name,[u,a.args]);continue}e.pragmas.set(a.name,a.args)}}function yte(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,a)=>{switch(a){case"reference":{let u=e.referencedFiles,f=e.typeReferenceDirectives,p=e.libReferenceDirectives;re(II(r),y=>{let{types:g,lib:x,path:k,["resolution-mode"]:T,preserve:A}=y.arguments,P=A==="true"?!0:void 0;if(y.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(g){let R=cEt(T,g.pos,g.end,t);f.push({pos:g.pos,end:g.end,fileName:g.value,...R?{resolutionMode:R}:{},...P?{preserve:P}:{}})}else x?p.push({pos:x.pos,end:x.end,fileName:x.value,...P?{preserve:P}:{}}):k?u.push({pos:k.pos,end:k.end,fileName:k.value,...P?{preserve:P}:{}}):t(y.range.pos,y.range.end-y.range.pos,S.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=_i(II(r),u=>({name:u.arguments.name,path:u.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let u of r)e.moduleName&&t(u.range.pos,u.range.end-u.range.pos,S.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=u.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{re(II(r),u=>{(!e.checkJsDirective||u.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:a==="ts-check",end:u.range.end,pos:u.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:B.fail("Unhandled pragma kind")}})}var Gye=new Map;function lEt(e){if(Gye.has(e))return Gye.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Gye.set(e,t),t}var uEt=/^\/\/\/\s*<(\S+)\s.*?\/>/m,dEt=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function fEt(e,t,r){let a=t.kind===2&&uEt.exec(r);if(a){let f=a[1].toLowerCase(),p=$W[f];if(!p||!(p.kind&1))return;if(p.args){let y={};for(let g of p.args){let k=lEt(g.name).exec(r);if(!k&&!g.optional)return;if(k){let T=k[2]||k[3];if(g.captureSpan){let A=t.pos+k.index+k[1].length+1;y[g.name]={value:T,pos:A,end:A+T.length}}else y[g.name]=T}}e.push({name:f,args:{arguments:y,range:t}})}else e.push({name:f,args:{arguments:{},range:t}});return}let u=t.kind===2&&dEt.exec(r);if(u)return AMe(e,t,2,u);if(t.kind===3){let f=/@(\S+)(\s+(?:\S.*)?)?$/gm,p;for(;p=f.exec(r);)AMe(e,t,4,p)}}function AMe(e,t,r,a){if(!a)return;let u=a[1].toLowerCase(),f=$W[u];if(!f||!(f.kind&r))return;let p=a[2],y=_Et(f,p);y!=="fail"&&e.push({name:u,args:{arguments:y,range:t}})}function _Et(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),a={};for(let u=0;u[""+t,e])),LMe=[["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"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.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"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.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"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.esnext.regexp.d.ts"],["esnext.string","lib.esnext.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],WH=LMe.map(e=>e[0]),vte=new Map(LMe),MN=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:S.Watch_and_Build_Modes,description:S.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:S.Watch_and_Build_Modes,description:S.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:S.Watch_and_Build_Modes,description:S.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:S.Watch_and_Build_Modes,description:S.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:gve},allowConfigDirTemplateSubstitution:!0,category:S.Watch_and_Build_Modes,description:S.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:gve},allowConfigDirTemplateSubstitution:!0,category:S.Watch_and_Build_Modes,description:S.Remove_a_list_of_files_from_the_watch_mode_s_processing}],zH=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:S.Command_line_Options,description:S.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:S.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:S.Command_line_Options,description:S.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:S.Output_Formatting,description:S.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:S.Compiler_Diagnostics,description:S.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:S.Compiler_Diagnostics,description:S.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:S.Compiler_Diagnostics,description:S.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:S.Output_Formatting,description:S.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:S.Compiler_Diagnostics,description:S.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:S.Compiler_Diagnostics,description:S.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:S.Compiler_Diagnostics,description:S.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:S.FILE_OR_DIRECTORY,category:S.Compiler_Diagnostics,description:S.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:S.DIRECTORY,category:S.Compiler_Diagnostics,description:S.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:S.Projects,description:S.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:S.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:S.Emit,transpileOptionValue:void 0,description:S.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:S.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:S.Emit,defaultValueDescription:!1,description:S.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:S.Emit,description:S.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:S.Emit,defaultValueDescription:!1,description:S.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:S.Emit,description:S.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:S.Compiler_Diagnostics,description:S.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:S.Emit,description:S.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:S.Watch_and_Build_Modes,description:S.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:S.Command_line_Options,isCommandLineOnly:!0,description:S.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:S.Platform_specific}],bte={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,es2023:10,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:S.VERSION,showInSimplifiedHelpView:!0,category:S.Language_and_Environment,description:S.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},Xye={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,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:S.KIND,showInSimplifiedHelpView:!0,category:S.Modules,description:S.Specify_what_module_code_is_generated,defaultValueDescription:void 0},Yye=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:S.Command_line_Options,description:S.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:S.Command_line_Options,description:S.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:S.Command_line_Options,description:S.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:S.Command_line_Options,paramType:S.FILE_OR_DIRECTORY,description:S.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:S.Command_line_Options,description:S.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:S.Command_line_Options,isCommandLineOnly:!0,description:S.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:S.Command_line_Options,isCommandLineOnly:!0,description:S.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},bte,Xye,{name:"lib",type:"list",element:{name:"lib",type:vte,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:S.Language_and_Environment,description:S.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:S.JavaScript_Support,description:S.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",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:S.JavaScript_Support,description:S.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:PMe,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:S.KIND,showInSimplifiedHelpView:!0,category:S.Language_and_Environment,description:S.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:S.FILE,showInSimplifiedHelpView:!0,category:S.Emit,description:S.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:S.DIRECTORY,showInSimplifiedHelpView:!0,category:S.Emit,description:S.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:S.LOCATION,category:S.Modules,description:S.Specify_the_root_folder_within_your_source_files,defaultValueDescription:S.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:S.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:S.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:S.FILE,category:S.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:S.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:S.Emit,defaultValueDescription:!1,description:S.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:S.Emit,description:S.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:S.Backwards_Compatibility,description:S.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:S.Emit,description:S.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:S.Interop_Constraints,description:S.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Interop_Constraints,description:S.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:"isolatedDeclarations",type:"boolean",category:S.Interop_Constraints,description:S.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:S.Type_Checking,description:S.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:S.Type_Checking,description:S.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:S.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:S.Type_Checking,description:S.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:S.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:S.Type_Checking,description:S.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:S.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:S.Type_Checking,description:S.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:S.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:S.Type_Checking,description:S.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:S.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:S.Type_Checking,description:S.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:S.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:S.Type_Checking,description:S.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:S.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:S.Type_Checking,description:S.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:S.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:S.Type_Checking,description:S.Ensure_use_strict_is_always_emitted,defaultValueDescription:S.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Type_Checking,description:S.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Type_Checking,description:S.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Type_Checking,description:S.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Type_Checking,description:S.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:S.Type_Checking,description:S.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Type_Checking,description:S.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Type_Checking,description:S.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:S.Type_Checking,description:S.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"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:S.STRATEGY,category:S.Modules,description:S.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:S.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:S.Modules,description:S.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:S.Modules,description:S.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,allowConfigDirTemplateSubstitution:!0,category:S.Modules,description:S.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:S.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:S.Modules,description:S.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:S.Modules,description:S.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:S.Interop_Constraints,description:S.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:S.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:S.Interop_Constraints,description:S.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:S.Interop_Constraints,description:S.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:S.Modules,description:S.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:S.Modules,description:S.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Modules,description:S.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:S.Modules,description:S.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:S.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:S.Modules,description:S.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:S.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:S.Modules,description:S.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Modules,description:S.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:S.LOCATION,category:S.Emit,description:S.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:S.LOCATION,category:S.Emit,description:S.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:S.Emit,description:S.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Language_and_Environment,description:S.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:S.Language_and_Environment,description:S.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:S.Language_and_Environment,description:S.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:S.Language_and_Environment,description:S.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,affectsSourceFile:!0,category:S.Language_and_Environment,description:S.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:S.Modules,description:S.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:S.Modules,description:S.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:S.Backwards_Compatibility,paramType:S.FILE,transpileOptionValue:void 0,description:S.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:S.Language_and_Environment,description:S.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:S.Completeness,description:S.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:S.Backwards_Compatibility,description:S.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:S.Emit,description:S.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:S.NEWLINE,category:S.Emit,description:S.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Output_Formatting,description:S.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:S.Language_and_Environment,affectsProgramStructure:!0,description:S.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:S.Modules,description:S.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:S.Emit,description:S.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:S.Editor_Support,description:S.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:S.Projects,description:S.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:S.Projects,description:S.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:S.Projects,description:S.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Backwards_Compatibility,description:S.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:S.Emit,description:S.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:S.Emit,transpileOptionValue:void 0,description:S.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:S.Emit,description:S.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:S.DIRECTORY,category:S.Emit,transpileOptionValue:void 0,description:S.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:S.Completeness,description:S.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Type_Checking,description:S.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Type_Checking,description:S.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Backwards_Compatibility,description:S.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:S.Backwards_Compatibility,description:S.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:S.Interop_Constraints,description:S.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:S.JavaScript_Support,description:S.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:S.Backwards_Compatibility,description:S.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:S.Language_and_Environment,description:S.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:S.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:S.Backwards_Compatibility,description:S.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:S.Backwards_Compatibility,description:S.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:S.Specify_a_list_of_language_service_plugins_to_include,category:S.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:S.Control_what_method_is_used_to_detect_module_format_JS_files,category:S.Language_and_Environment,defaultValueDescription:S.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}],i0=[...zH,...Yye],Qye=i0.filter(e=>!!e.affectsSemanticDiagnostics),Zye=i0.filter(e=>!!e.affectsEmit),eve=i0.filter(e=>!!e.affectsDeclarationPath),Ste=i0.filter(e=>!!e.affectsModuleResolution),xte=i0.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),tve=i0.filter(e=>!!e.affectsProgramStructure),ive=i0.filter(e=>Nc(e,"transpileOptionValue")),pEt=i0.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),mEt=MN.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),nve=i0.filter(hEt);function hEt(e){return!fs(e.type)}var Cte=[{name:"verbose",shortName:"v",category:S.Command_line_Options,description:S.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:S.Command_line_Options,description:S.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:S.Command_line_Options,description:S.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:S.Command_line_Options,description:S.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:S.Command_line_Options,description:S.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],i5=[...zH,...Cte],VH=[{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}];function HH(e){let t=new Map,r=new Map;return re(e,a=>{t.set(a.name.toLowerCase(),a),a.shortName&&r.set(a.shortName,a.name)}),{optionsNameMap:t,shortOptionNames:r}}var OMe;function A4(){return OMe||(OMe=HH(i0))}var gEt={diagnostic:S.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:jMe},kte={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function rve(e){return FMe(e,Dl)}function FMe(e,t){let r=as(e.type.keys()),a=(e.deprecatedKeys?r.filter(u=>!e.deprecatedKeys.has(u)):r).map(u=>`'${u}'`).join(", ");return t(S.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,a)}function UH(e,t,r){return bRe(e,(t??"").trim(),r)}function ove(e,t="",r){if(t=t.trim(),Ro(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return RN(e,t,r);if(t==="")return[];let a=t.split(",");switch(e.element.type){case"number":return ro(a,u=>RN(e.element,parseInt(u),r));case"string":return ro(a,u=>RN(e.element,u||"",r));case"boolean":case"object":return B.fail(`List of ${e.element.type} is not yet supported.`);default:return ro(a,u=>UH(e.element,u,r))}}function MMe(e){return e.name}function sve(e,t,r,a,u){var f;if((f=t.alternateMode)!=null&&f.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return kk(u,a,t.alternateMode.diagnostic,e);let p=Rw(e,t.optionDeclarations,MMe);return p?kk(u,a,t.unknownDidYouMeanDiagnostic,r||e,p.name):kk(u,a,t.unknownOptionDiagnostic,r||e)}function wte(e,t,r){let a={},u,f=[],p=[];return y(t),{options:a,watchOptions:u,fileNames:f,errors:p};function y(x){let k=0;for(;kSd.readFile(P)));if(!fs(k)){p.push(k);return}let T=[],A=0;for(;;){for(;A=k.length)break;let P=A;if(k.charCodeAt(P)===34){for(A++;A32;)A++;T.push(k.substring(P,A))}}y(T)}}function RMe(e,t,r,a,u,f){if(a.isTSConfigOnly){let p=e[t];p==="null"?(u[a.name]=void 0,t++):a.type==="boolean"?p==="false"?(u[a.name]=RN(a,!1,f),t++):(p==="true"&&t++,f.push(Dl(S.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,a.name))):(f.push(Dl(S.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,a.name)),p&&!Ro(p,"-")&&t++)}else if(!e[t]&&a.type!=="boolean"&&f.push(Dl(r.optionTypeMismatchDiagnostic,a.name,Nte(a))),e[t]!=="null")switch(a.type){case"number":u[a.name]=RN(a,parseInt(e[t]),f),t++;break;case"boolean":let p=e[t];u[a.name]=RN(a,p!=="false",f),(p==="false"||p==="true")&&t++;break;case"string":u[a.name]=RN(a,e[t]||"",f),t++;break;case"list":let y=ove(a,e[t],f);u[a.name]=y||[],y&&t++;break;case"listOrElement":B.fail("listOrElement not supported here");break;default:u[a.name]=UH(a,e[t],f),t++;break}else u[a.name]=void 0,t++;return t}var JH={alternateMode:gEt,getOptionsNameMap:A4,optionDeclarations:i0,unknownOptionDiagnostic:S.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:S.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:S.Compiler_option_0_expects_an_argument};function ave(e,t){return wte(JH,e,t)}function Tte(e,t){return cve(A4,e,t)}function cve(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:a,shortOptionNames:u}=e();if(r){let f=u.get(t);f!==void 0&&(t=f)}return a.get(t)}var BMe;function jMe(){return BMe||(BMe=HH(i5))}var yEt={diagnostic:S.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:A4},vEt={alternateMode:yEt,getOptionsNameMap:jMe,optionDeclarations:i5,unknownOptionDiagnostic:S.Unknown_build_option_0,unknownDidYouMeanDiagnostic:S.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:S.Build_option_0_requires_a_value_of_type_1};function lve(e){let{options:t,watchOptions:r,fileNames:a,errors:u}=wte(vEt,e),f=t;return a.length===0&&a.push("."),f.clean&&f.force&&u.push(Dl(S.Options_0_and_1_cannot_be_combined,"clean","force")),f.clean&&f.verbose&&u.push(Dl(S.Options_0_and_1_cannot_be_combined,"clean","verbose")),f.clean&&f.watch&&u.push(Dl(S.Options_0_and_1_cannot_be_combined,"clean","watch")),f.watch&&f.dry&&u.push(Dl(S.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:f,watchOptions:r,projects:a,errors:u}}function tp(e,...t){return ea(Dl(e,...t).messageText,fs)}function n5(e,t,r,a,u,f){let p=GO(e,x=>r.readFile(x));if(!fs(p)){r.onUnRecoverableConfigFileDiagnostic(p);return}let y=e5(e,p),g=r.getCurrentDirectory();return y.path=Vc(e,g,df(r.useCaseSensitiveFileNames)),y.resolvedPath=y.path,y.originalFileName=y.fileName,s5(y,r,ts(Or(e),g),t,ts(e,g),void 0,f,a,u)}function r5(e,t){let r=GO(e,t);return fs(r)?Ete(e,r):{config:{},error:r}}function Ete(e,t){let r=e5(e,t);return{config:QMe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function uve(e,t){let r=GO(e,t);return fs(r)?e5(e,r):{fileName:e,parseDiagnostics:[r]}}function GO(e,t){let r;try{r=t(e)}catch(a){return Dl(S.Cannot_read_file_0_Colon_1,e,a.message)}return r===void 0?Dl(S.Cannot_read_file_0,e):r}function Dte(e){return gd(e,MMe)}var WMe={optionDeclarations:VH,unknownOptionDiagnostic:S.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:S.Unknown_type_acquisition_option_0_Did_you_mean_1},zMe;function VMe(){return zMe||(zMe=HH(MN))}var Ite={getOptionsNameMap:VMe,optionDeclarations:MN,unknownOptionDiagnostic:S.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:S.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:S.Watch_option_0_requires_a_value_of_type_1},HMe;function UMe(){return HMe||(HMe=Dte(i0))}var JMe;function qMe(){return JMe||(JMe=Dte(MN))}var $Me;function GMe(){return $Me||($Me=Dte(VH))}var qH={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:S.File_Management,disallowNullOrUndefined:!0},KMe={name:"compilerOptions",type:"object",elementOptions:UMe(),extraKeyDiagnostics:JH},XMe={name:"watchOptions",type:"object",elementOptions:qMe(),extraKeyDiagnostics:Ite},YMe={name:"typeAcquisition",type:"object",elementOptions:GMe(),extraKeyDiagnostics:WMe},dve;function bEt(){return dve===void 0&&(dve={name:void 0,type:"object",elementOptions:Dte([KMe,XMe,YMe,qH,{name:"references",type:"list",element:{name:"references",type:"object"},category:S.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:S.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:S.File_Management,defaultValueDescription:S.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:S.File_Management,defaultValueDescription:S.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},Kye])}),dve}function QMe(e,t,r){var a;let u=(a=e.statements[0])==null?void 0:a.expression;if(u&&u.kind!==210){if(t.push(oh(e,u,S.The_root_value_of_a_0_file_must_be_an_object,Xu(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),yf(u)){let f=St(u.elements,ba);if(f)return o5(e,f,t,!0,r)}return{}}return o5(e,u,t,!0,r)}function fve(e,t){var r;return o5(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function o5(e,t,r,a,u){if(!t)return a?{}:void 0;return y(t,u?.rootOptions);function f(x,k){var T;let A=a?{}:void 0;for(let P of x.properties){if(P.kind!==303){r.push(oh(e,P,S.Property_assignment_expected));continue}P.questionToken&&r.push(oh(e,P.questionToken,S.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),g(P.name)||r.push(oh(e,P.name,S.String_literal_with_double_quotes_expected));let R=EM(P.name)?void 0:JI(P.name),W=R&&So(R),z=W?(T=k?.elementOptions)==null?void 0:T.get(W):void 0,q=y(P.initializer,z);typeof W<"u"&&(a&&(A[W]=q),u?.onPropertySet(W,q,P,k,z))}return A}function p(x,k){if(!a){x.forEach(T=>y(T,k));return}return Di(x.map(T=>y(T,k)),T=>T!==void 0)}function y(x,k){switch(x.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return g(x)||r.push(oh(e,x,S.String_literal_with_double_quotes_expected)),x.text;case 9:return Number(x.text);case 224:if(x.operator!==41||x.operand.kind!==9)break;return-Number(x.operand.text);case 210:return f(x,k);case 209:return p(x.elements,k&&k.element)}k?r.push(oh(e,x,S.Compiler_option_0_requires_a_value_of_type_1,k.name,Nte(k))):r.push(oh(e,x,S.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function g(x){return Da(x)&&eV(x,e)}}function Nte(e){return e.type==="listOrElement"?`${Nte(e.element)} or Array`:e.type==="list"?"Array":fs(e.type)?e.type:"string"}function ZMe(e,t){if(e){if(a5(t))return!e.disallowNullOrUndefined;if(e.type==="list")return ds(t);if(e.type==="listOrElement")return ds(t)||ZMe(e.element,t);let r=fs(e.type)?e.type:"string";return typeof t===r}return!1}function Ate(e,t,r){var a,u,f;let p=df(r.useCaseSensitiveFileNames),y=_i(Di(e.fileNames,(u=(a=e.options.configFile)==null?void 0:a.configFileSpecs)!=null&&u.validatedIncludeSpecs?xEt(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):UC),R=>S3(ts(t,r.getCurrentDirectory()),ts(R,r.getCurrentDirectory()),p)),g={configFilePath:ts(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},x=GH(e.options,g),k=e.watchOptions&&CEt(e.watchOptions),T={compilerOptions:{...$H(x),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:k&&$H(k),references:_i(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:K(y)?y:void 0,...(f=e.options.configFile)!=null&&f.configFileSpecs?{include:SEt(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},A=new Set(x.keys()),P={};for(let R in ld)if(!A.has(R)&&Lt(ld[R].dependencies,W=>A.has(W))){let W=ld[R].computeValue(e.options),z=ld[R].computeValue({});W!==z&&(P[R]=ld[R].computeValue(e.options))}return vw(T.compilerOptions,$H(GH(P,g))),T}function $H(e){return Object.fromEntries(e)}function SEt(e){if(K(e)){if(K(e)!==1)return e;if(e[0]!==oRe)return e}}function xEt(e,t,r,a){if(!t)return UC;let u=HV(e,r,t,a.useCaseSensitiveFileNames,a.getCurrentDirectory()),f=u.excludePattern&&wx(u.excludePattern,a.useCaseSensitiveFileNames),p=u.includeFilePattern&&wx(u.includeFilePattern,a.useCaseSensitiveFileNames);return p?f?y=>!(p.test(y)&&!f.test(y)):y=>!p.test(y):f?y=>f.test(y):UC}function eRe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return eRe(e.element);default:return e.type}}function Pte(e,t){return Vd(t,(r,a)=>{if(r===e)return a})}function GH(e,t){return tRe(e,A4(),t)}function CEt(e){return tRe(e,VMe())}function tRe(e,{optionsNameMap:t},r){let a=new Map,u=r&&df(r.useCaseSensitiveFileNames);for(let f in e)if(Nc(e,f)){if(t.has(f)&&(t.get(f).category===S.Command_line_Options||t.get(f).category===S.Output_Formatting))continue;let p=e[f],y=t.get(f.toLowerCase());if(y){B.assert(y.type!=="listOrElement");let g=eRe(y);g?y.type==="list"?a.set(f,p.map(x=>Pte(x,g))):a.set(f,Pte(p,g)):r&&y.isFilePath?a.set(f,S3(r.configFilePath,ts(p,Or(r.configFilePath)),u)):r&&y.type==="list"&&y.element.isFilePath?a.set(f,p.map(x=>S3(r.configFilePath,ts(x,Or(r.configFilePath)),u))):a.set(f,p)}}return a}function _ve(e,t){let r=iRe(e);return u();function a(f){return Array(f+1).join(" ")}function u(){let f=[],p=a(2);return Yye.forEach(y=>{if(!r.has(y.name))return;let g=r.get(y.name),x=Sve(y);g!==x?f.push(`${p}${y.name}: ${g}`):Nc(kte,y.name)&&f.push(`${p}${y.name}: ${x}`)}),f.join(t)+t}}function iRe(e){let t=bw(e,kte);return GH(t)}function pve(e,t,r){let a=iRe(e);return p();function u(y){return Array(y+1).join(" ")}function f({category:y,name:g,isCommandLineOnly:x}){let k=[S.Command_line_Options,S.Editor_Support,S.Compiler_Diagnostics,S.Backwards_Compatibility,S.Watch_and_Build_Modes,S.Output_Formatting];return!x&&y!==void 0&&(!k.includes(y)||a.has(g))}function p(){let y=new Map;y.set(S.Projects,[]),y.set(S.Language_and_Environment,[]),y.set(S.Modules,[]),y.set(S.JavaScript_Support,[]),y.set(S.Emit,[]),y.set(S.Interop_Constraints,[]),y.set(S.Type_Checking,[]),y.set(S.Completeness,[]);for(let P of i0)if(f(P)){let R=y.get(P.category);R||y.set(P.category,R=[]),R.push(P)}let g=0,x=0,k=[];y.forEach((P,R)=>{k.length!==0&&k.push({value:""}),k.push({value:`/* ${gs(R)} */`});for(let W of P){let z;a.has(W.name)?z=`"${W.name}": ${JSON.stringify(a.get(W.name))}${(x+=1)===a.size?"":","}`:z=`// "${W.name}": ${JSON.stringify(Sve(W))},`,k.push({value:z,description:`/* ${W.description&&gs(W.description)||W.name} */`}),g=Math.max(z.length,g)}});let T=u(2),A=[];A.push("{"),A.push(`${T}"compilerOptions": {`),A.push(`${T}${T}/* ${gs(S.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),A.push("");for(let P of k){let{value:R,description:W=""}=P;A.push(R&&`${T}${T}${R}${W&&u(g-R.length+2)+W}`)}if(t.length){A.push(`${T}},`),A.push(`${T}"files": [`);for(let P=0;Ptypeof Oe=="object","object"),Ce=te(ne("files"));if(Ce){let Oe=ae==="no-prop"||ds(ae)&&ae.length===0,we=Nc(A,"extends");if(Ce.length===0&&Oe&&!we)if(t){let Ae=p||"tsconfig.json",Fe=S.The_files_list_in_config_file_0_is_empty,Tt=LM(t,"files",Ge=>Ge.initializer),Be=kk(t,Tt,Fe,Ae);k.push(Be)}else ce(S.The_files_list_in_config_file_0_is_empty,p||"tsconfig.json")}let he=te(ne("include")),ue=ne("exclude"),Ee=!1,ve=te(ue);if(ue==="no-prop"){let Oe=P.outDir,we=P.declarationDir;(Oe||we)&&(ve=Di([Oe,we],Ae=>!!Ae))}Ce===void 0&&he===void 0&&(he=[oRe],Ee=!0);let be,Se,Re,ie;he&&(be=kRe(he,k,!0,t,"include"),Re=YH(be,W)||be),ve&&(Se=kRe(ve,k,!1,t,"exclude"),ie=YH(Se,W)||Se);let ke=Di(Ce,fs),De=YH(ke,W)||ke;return{filesSpecs:Ce,includeSpecs:he,excludeSpecs:ve,validatedFilesSpec:De,validatedIncludeSpecs:Re,validatedExcludeSpecs:ie,validatedFilesSpecBeforeSubstitution:ke,validatedIncludeSpecsBeforeSubstitution:be,validatedExcludeSpecsBeforeSubstitution:Se,pathPatterns:void 0,isDefaultIncludeSpec:Ee}}function G(ae){let Ce=XO(z,ae,P,r,g);return dRe(Ce,KO(A),y)&&k.push(uRe(z,p)),Ce}function $(ae){let Ce,he=_e("references",ue=>typeof ue=="object","object");if(ds(he))for(let ue of he)typeof ue.path!="string"?ce(S.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Ce||(Ce=[])).push({path:ts(ue.path,ae),originalPath:ue.path,prepend:ue.prepend,circular:ue.circular});return Ce}function te(ae){return ds(ae)?ae:void 0}function ne(ae){return _e(ae,fs,"string")}function _e(ae,Ce,he){if(Nc(A,ae)&&!a5(A[ae]))if(ds(A[ae])){let ue=A[ae];return!t&&!Et(ue,Ce)&&k.push(Dl(S.Compiler_option_0_requires_a_value_of_type_1,ae,he)),ue}else return ce(S.Compiler_option_0_requires_a_value_of_type_1,ae,"Array"),"not-array";return"no-prop"}function ce(ae,...Ce){t||k.push(Dl(ae,...Ce))}}function XH(e,t){return aRe(e,mEt,t)}function aRe(e,t,r){if(!e)return e;let a;for(let f of t)if(e[f.name]!==void 0){let p=e[f.name];switch(f.type){case"string":B.assert(f.isFilePath),Ote(p)&&u(f,lRe(p,r));break;case"list":B.assert(f.element.isFilePath);let y=YH(p,r);y&&u(f,y);break;case"object":B.assert(f.name==="paths");let g=wEt(p,r);g&&u(f,g);break;default:B.fail("option type not supported")}}return a||e;function u(f,p){(a??(a=vw({},e)))[f.name]=p}}var cRe="${configDir}";function Ote(e){return fs(e)&&Ro(e,cRe,!0)}function lRe(e,t){return ts(e.replace(cRe,"./"),t)}function YH(e,t){if(!e)return e;let r;return e.forEach((a,u)=>{Ote(a)&&((r??(r=e.slice()))[u]=lRe(a,t))}),r}function wEt(e,t){let r;return mg(e).forEach(u=>{if(!ds(e[u]))return;let f=YH(e[u],t);f&&((r??(r=vw({},e)))[u]=f)}),r}function TEt(e){return e.code===S.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function uRe({includeSpecs:e,excludeSpecs:t},r){return Dl(S.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function dRe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function KO(e){return!Nc(e,"files")&&!Nc(e,"references")}function QH(e,t,r,a,u){let f=a.length;return dRe(e,u)?a.push(uRe(r,t)):rs(a,p=>!TEt(p)),f!==a.length}function EEt(e){return!!e.options}function fRe(e,t,r,a,u,f,p,y){var g;a=ff(a);let x=ts(u||"",a);if(f.includes(x))return p.push(Dl(S.Circularity_detected_while_resolving_configuration_Colon_0,[...f,x].join(" -> "))),{raw:e||fve(t,p)};let k=e?DEt(e,r,a,u,p):IEt(t,r,a,u,p);if((g=k.options)!=null&&g.paths&&(k.options.pathsBasePath=a),k.extendedConfigPath){f=f.concat([x]);let A={options:{}};fs(k.extendedConfigPath)?T(A,k.extendedConfigPath):k.extendedConfigPath.forEach(P=>T(A,P)),A.include&&(k.raw.include=A.include),A.exclude&&(k.raw.exclude=A.exclude),A.files&&(k.raw.files=A.files),k.raw.compileOnSave===void 0&&A.compileOnSave&&(k.raw.compileOnSave=A.compileOnSave),t&&A.extendedSourceFiles&&(t.extendedSourceFiles=as(A.extendedSourceFiles.keys())),k.options=vw(A.options,k.options),k.watchOptions=k.watchOptions&&A.watchOptions?vw(A.watchOptions,k.watchOptions):k.watchOptions||A.watchOptions}return k;function T(A,P){let R=NEt(t,P,r,f,p,y,A);if(R&&EEt(R)){let W=R.raw,z,q=G=>{k.raw[G]||W[G]&&(A[G]=_i(W[G],$=>Ote($)||jp($)?$:xr(z||(z=b3(Or(P),a,df(r.useCaseSensitiveFileNames))),$)))};q("include"),q("exclude"),q("files"),W.compileOnSave!==void 0&&(A.compileOnSave=W.compileOnSave),vw(A.options,R.options),A.watchOptions=A.watchOptions&&R.watchOptions?vw({},A.watchOptions,R.watchOptions):A.watchOptions||R.watchOptions}}}function DEt(e,t,r,a,u){Nc(e,"excludes")&&u.push(Dl(S.Unknown_option_excludes_Did_you_mean_exclude));let f=yRe(e.compilerOptions,r,u,a),p=vRe(e.typeAcquisition,r,u,a),y=PEt(e.watchOptions,r,u);e.compileOnSave=AEt(e,r,u);let g=e.extends||e.extends===""?_Re(e.extends,t,r,a,u):void 0;return{raw:e,options:f,watchOptions:y,typeAcquisition:p,extendedConfigPath:g}}function _Re(e,t,r,a,u,f,p,y){let g,x=a?rRe(a,r):r;if(fs(e))g=pRe(e,t,x,u,p,y);else if(ds(e)){g=[];for(let k=0;kG.name===P)&&(x=hi(x,W.name))))}}function pRe(e,t,r,a,u,f){if(e=ff(e),jp(e)||Ro(e,"./")||Ro(e,"../")){let y=ts(e,r);if(!t.fileExists(y)&&!Wl(y,".json")&&(y=`${y}.json`,!t.fileExists(y))){a.push(kk(f,u,S.File_0_not_found,e));return}return y}let p=Ove(e,xr(r,"tsconfig.json"),t);if(p.resolvedModule)return p.resolvedModule.resolvedFileName;e===""?a.push(kk(f,u,S.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):a.push(kk(f,u,S.File_0_not_found,e))}function NEt(e,t,r,a,u,f,p){let y=r.useCaseSensitiveFileNames?t:rx(t),g,x,k;if(f&&(g=f.get(y))?{extendedResult:x,extendedConfig:k}=g:(x=uve(t,T=>r.readFile(T)),x.parseDiagnostics.length||(k=fRe(void 0,x,r,Or(t),Xu(t),a,u,f)),f&&f.set(y,{extendedResult:x,extendedConfig:k})),e&&((p.extendedSourceFiles??(p.extendedSourceFiles=new Set)).add(x.fileName),x.extendedSourceFiles))for(let T of x.extendedSourceFiles)p.extendedSourceFiles.add(T);if(x.parseDiagnostics.length){u.push(...x.parseDiagnostics);return}return k}function AEt(e,t,r){if(!Nc(e,Kye.name))return!1;let a=EE(Kye,e.compileOnSave,t,r);return typeof a=="boolean"&&a}function mRe(e,t,r){let a=[];return{options:yRe(e,t,a,r),errors:a}}function hRe(e,t,r){let a=[];return{options:vRe(e,t,a,r),errors:a}}function gRe(e){return e&&Xu(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function yRe(e,t,r,a){let u=gRe(a);return mve(UMe(),e,t,u,JH,r),a&&(u.configFilePath=ff(a)),u}function Fte(e){return{enable:!!e&&Xu(e)==="jsconfig.json",include:[],exclude:[]}}function vRe(e,t,r,a){let u=Fte(a);return mve(GMe(),e,t,u,WMe,r),u}function PEt(e,t,r){return mve(qMe(),e,t,void 0,Ite,r)}function mve(e,t,r,a,u,f){if(t){for(let p in t){let y=e.get(p);y?(a||(a={}))[y.name]=EE(y,t[p],r,f):f.push(sve(p,u))}return a}}function kk(e,t,r,...a){return e&&t?oh(e,t,r,...a):Dl(r,...a)}function EE(e,t,r,a,u,f,p){if(e.isCommandLineOnly){a.push(kk(p,u?.name,S.Option_0_can_only_be_specified_on_command_line,e.name));return}if(ZMe(e,t)){let y=e.type;if(y==="list"&&ds(t))return SRe(e,t,r,a,u,f,p);if(y==="listOrElement")return ds(t)?SRe(e,t,r,a,u,f,p):EE(e.element,t,r,a,u,f,p);if(!fs(e.type))return bRe(e,t,a,f,p);let g=RN(e,t,a,f,p);return a5(g)?g:LEt(e,r,g)}else a.push(kk(p,f,S.Compiler_option_0_requires_a_value_of_type_1,e.name,Nte(e)))}function LEt(e,t,r){return e.isFilePath&&(r=ff(r),r=Ote(r)?r:ts(r,t),r===""&&(r=".")),r}function RN(e,t,r,a,u){var f;if(a5(t))return;let p=(f=e.extraValidation)==null?void 0:f.call(e,t);if(!p)return t;r.push(kk(u,a,...p))}function bRe(e,t,r,a,u){if(a5(t))return;let f=t.toLowerCase(),p=e.type.get(f);if(p!==void 0)return RN(e,p,r,a,u);r.push(FMe(e,(y,...g)=>kk(u,a,y,...g)))}function SRe(e,t,r,a,u,f,p){return Di(_i(t,(y,g)=>EE(e.element,y,r,a,u,f?.elements[g],p)),y=>e.listPreserveFalsyValues?!0:!!y)}var OEt=/(?:^|\/)\*\*\/?$/,FEt=/^[^*?]*(?=\/[^/]*[*?])/;function XO(e,t,r,a,u=F){t=$s(t);let f=df(a.useCaseSensitiveFileNames),p=new Map,y=new Map,g=new Map,{validatedFilesSpec:x,validatedIncludeSpecs:k,validatedExcludeSpecs:T}=e,A=mO(r,u),P=wR(r,A);if(x)for(let q of x){let G=ts(q,t);p.set(f(G),G)}let R;if(k&&k.length>0)for(let q of a.readDirectory(t,tc(P),T,k,void 0)){if(Tl(q,".json")){if(!R){let te=k.filter(_e=>Wl(_e,".json")),ne=_i(zV(te,t,"files"),_e=>`^${_e}$`);R=ne?ne.map(_e=>wx(_e,a.useCaseSensitiveFileNames)):F}if(zi(R,te=>te.test(q))!==-1){let te=f(q);!p.has(te)&&!g.has(te)&&g.set(te,q)}continue}if(BEt(q,p,y,A,f))continue;jEt(q,y,A,f);let G=f(q);!p.has(G)&&!y.has(G)&&y.set(G,q)}let W=as(p.values()),z=as(y.values());return W.concat(z,as(g.values()))}function hve(e,t,r,a,u){let{validatedFilesSpec:f,validatedIncludeSpecs:p,validatedExcludeSpecs:y}=t;if(!K(p)||!K(y))return!1;r=$s(r);let g=df(a);if(f){for(let x of f)if(g(ts(x,r))===e)return!1}return CRe(e,y,a,u,r)}function xRe(e){let t=Ro(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Wl(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function ZH(e,t,r,a){return CRe(e,Di(t,u=>!xRe(u)),r,a)}function CRe(e,t,r,a,u){let f=pO(t,xr($s(a),u),"exclude"),p=f&&wx(f,r);return p?p.test(e)?!0:!DP(e)&&p.test(xd(e)):!1}function kRe(e,t,r,a,u){return e.filter(p=>{if(!fs(p))return!1;let y=gve(p,r);return y!==void 0&&t.push(f(...y)),y===void 0});function f(p,y){let g=Hz(a,u,y);return kk(a,g,p,y)}}function gve(e,t){if(B.assert(typeof e=="string"),t&&OEt.test(e))return[S.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(xRe(e))return[S.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function MEt({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,a){let u=pO(t,r,"exclude"),f=u&&new RegExp(u,a?"":"i"),p={},y=new Map;if(e!==void 0){let g=[];for(let x of e){let k=$s(xr(r,x));if(f&&f.test(k))continue;let T=REt(k,a);if(T){let{key:A,path:P,flags:R}=T,W=y.get(A),z=W!==void 0?p[W]:void 0;(z===void 0||zvu(e,p)?p:void 0);if(!f)return!1;for(let p of f){if(Tl(e,p)&&(p!==".ts"||!Tl(e,".d.ts")))return!1;let y=u(Tx(e,p));if(t.has(y)||r.has(y)){if(p===".d.ts"&&(Tl(e,".js")||Tl(e,".jsx")))continue;return!0}}return!1}function jEt(e,t,r,a){let u=re(r,f=>vu(e,f)?f:void 0);if(u)for(let f=u.length-1;f>=0;f--){let p=u[f];if(Tl(e,p))return;let y=a(Tx(e,p));t.delete(y)}}function vve(e){let t={};for(let r in e)if(Nc(e,r)){let a=Tte(r);a!==void 0&&(t[r]=bve(e[r],a))}return t}function bve(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!ds(e))return bve(e,t.element);case"list":let r=t.element;return ds(e)?ro(e,a=>bve(a,r)):"";default:return Vd(t.type,(a,u)=>{if(a===e)return u})}}function Sve(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return Sve(e.element);case"object":return{};default:let r=I0(e.type.keys());return r!==void 0?r:B.fail("Expected 'option.type' to have entries.")}}function Qo(e,t,...r){e.trace(lN(t,...r))}function Ox(e,t){return!!e.traceResolution&&t.trace!==void 0}function BN(e,t,r){let a;if(t&&e){let u=e.contents.packageJsonContent;typeof u.name=="string"&&typeof u.version=="string"&&(a={name:u.name,subModuleName:t.path.slice(e.packageDirectory.length+wl.length),version:u.version,peerDependencies:aDt(e,r)})}return t&&{path:t.path,extension:t.ext,packageId:a,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Mte(e){return BN(void 0,e,void 0)}function wRe(e){if(e)return B.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function eU(e){let t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function WEt(e){let t=[];return e&1&&t.push(...kR),e&2&&t.push(...d4),e&4&&t.push(...$V),e&8&&t.push(".json"),t}function xve(e){if(e)return B.assert(XV(e.extension)),{fileName:e.path,packageId:e.packageId}}function TRe(e,t,r,a,u,f,p,y,g){if(!p.resultFromCache&&!p.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Od(e)){let{resolvedFileName:x,originalPath:k}=DRe(t.path,p.host,p.traceEnabled);k&&(t={...t,path:x,originalPath:k})}return ERe(t,r,a,u,f,p.resultFromCache,y,g)}function ERe(e,t,r,a,u,f,p,y){return f?p?.isReadonly?{...f,failedLookupLocations:Cve(f.failedLookupLocations,r),affectingLocations:Cve(f.affectingLocations,a),resolutionDiagnostics:Cve(f.resolutionDiagnostics,u)}:(f.failedLookupLocations=P4(f.failedLookupLocations,r),f.affectingLocations=P4(f.affectingLocations,a),f.resolutionDiagnostics=P4(f.resolutionDiagnostics,u),f):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:YO(r),affectingLocations:YO(a),resolutionDiagnostics:YO(u),alternateResult:y}}function YO(e){return e.length?e:void 0}function P4(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Cve(e,t){return e?.length?t.length?[...e,...t]:e.slice():YO(t)}function kve(e,t,r,a){if(!Nc(e,t)){a.traceEnabled&&Qo(a.host,S.package_json_does_not_have_a_0_field,t);return}let u=e[t];if(typeof u!==r||u===null){a.traceEnabled&&Qo(a.host,S.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,u===null?"null":typeof u);return}return u}function Rte(e,t,r,a){let u=kve(e,t,"string",a);if(u===void 0)return;if(!u){a.traceEnabled&&Qo(a.host,S.package_json_had_a_falsy_0_field,t);return}let f=$s(xr(r,u));return a.traceEnabled&&Qo(a.host,S.package_json_has_0_field_1_that_references_2,t,u,f),f}function zEt(e,t,r){return Rte(e,"typings",t,r)||Rte(e,"types",t,r)}function VEt(e,t,r){return Rte(e,"tsconfig",t,r)}function HEt(e,t,r){return Rte(e,"main",t,r)}function UEt(e,t){let r=kve(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&Qo(t.host,S.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function JEt(e,t){let r=UEt(e,t);if(r===void 0)return;if(t.traceEnabled)for(let p in r)Nc(r,p)&&!UW.tryParse(p)&&Qo(t.host,S.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,p);let a=tU(r);if(!a){t.traceEnabled&&Qo(t.host,S.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,D);return}let{version:u,paths:f}=a;if(typeof f!="object"){t.traceEnabled&&Qo(t.host,S.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${u}']`,"object",typeof f);return}return a}var wve;function tU(e){wve||(wve=new Ug(O));for(let t in e){if(!Nc(e,t))continue;let r=UW.tryParse(t);if(r!==void 0&&r.test(wve))return{version:t,paths:e[t]}}}function QO(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=Or(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return qEt(r)}function qEt(e){let t;return Rh($s(e),r=>{let a=xr(r,$Et);(t??(t=[])).push(a)}),t}var $Et=xr("node_modules","@types");function GEt(e,t,r){let a=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return J1(e,t,!a)===0}function DRe(e,t,r){let a=RRe(e,t,r),u=GEt(e,a,t);return{resolvedFileName:u?e:a,originalPath:u?void 0:e}}function IRe(e,t,r){let a=Wl(e,"/node_modules/@types")||Wl(e,"/node_modules/@types/")?KRe(t,r):t;return xr(e,a)}function Tve(e,t,r,a,u,f,p){B.assert(typeof e=="string","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.");let y=Ox(r,a);u&&(r=u.commandLine.options);let g=t?Or(t):void 0,x=g?f?.getFromDirectoryCache(e,p,g,u):void 0;if(!x&&g&&!Od(e)&&(x=f?.getFromNonRelativeNameCache(e,p,g,u)),x)return y&&(Qo(a,S.Resolving_type_reference_directive_0_containing_file_1,e,t),u&&Qo(a,S.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName),Qo(a,S.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,g),ne(x)),x;let k=QO(r,a);y&&(t===void 0?k===void 0?Qo(a,S.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Qo(a,S.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,k):k===void 0?Qo(a,S.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Qo(a,S.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,k),u&&Qo(a,S.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName));let T=[],A=[],P=Eve(r);p!==void 0&&(P|=30);let R=$f(r);p===99&&3<=R&&R<=99&&(P|=32);let W=P&8?Fx(r,p):[],z=[],q={compilerOptions:r,host:a,traceEnabled:y,failedLookupLocations:T,affectingLocations:A,packageJsonInfoCache:f,features:P,conditions:W,requestContainingDirectory:g,reportDiagnostic:ae=>void z.push(ae),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},G=_e(),$=!0;G||(G=ce(),$=!1);let te;if(G){let{fileName:ae,packageId:Ce}=G,he=ae,ue;r.preserveSymlinks||({resolvedFileName:he,originalPath:ue}=DRe(ae,a,y)),te={primary:$,resolvedFileName:he,originalPath:ue,packageId:Ce,isExternalLibraryImport:Mx(ae)}}return x={resolvedTypeReferenceDirective:te,failedLookupLocations:YO(T),affectingLocations:YO(A),resolutionDiagnostics:YO(z)},g&&f&&!f.isReadonly&&(f.getOrCreateCacheForDirectory(g,u).set(e,p,x),Od(e)||f.getOrCreateCacheForNonRelativeName(e,p,u).set(g,x)),y&&ne(x),x;function ne(ae){var Ce;(Ce=ae.resolvedTypeReferenceDirective)!=null&&Ce.resolvedFileName?ae.resolvedTypeReferenceDirective.packageId?Qo(a,S.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ae.resolvedTypeReferenceDirective.resolvedFileName,tk(ae.resolvedTypeReferenceDirective.packageId),ae.resolvedTypeReferenceDirective.primary):Qo(a,S.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ae.resolvedTypeReferenceDirective.resolvedFileName,ae.resolvedTypeReferenceDirective.primary):Qo(a,S.Type_reference_directive_0_was_not_resolved,e)}function _e(){if(k&&k.length)return y&&Qo(a,S.Resolving_with_primary_search_path_0,k.join(", ")),Le(k,ae=>{let Ce=IRe(ae,e,q),he=Xg(ae,a);if(!he&&y&&Qo(a,S.Directory_0_does_not_exist_skipping_all_lookups_in_it,ae),r.typeRoots){let ue=F4(4,Ce,!he,q);if(ue){let Ee=l5(ue.path),ve=Ee?DE(Ee,!1,q):void 0;return xve(BN(ve,ue,q))}}return xve(Mve(4,Ce,!he,q))});y&&Qo(a,S.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ce(){let ae=t&&Or(t);if(ae!==void 0){let Ce;if(!r.typeRoots||!Wl(t,_8))if(y&&Qo(a,S.Looking_up_in_node_modules_folder_initial_location_0,ae),Od(e)){let{path:he}=MRe(ae,e);Ce=zte(4,he,!1,q,!0)}else{let he=JRe(4,e,ae,q,void 0,void 0);Ce=he&&he.value}else y&&Qo(a,S.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return xve(Ce)}else y&&Qo(a,S.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Eve(e){let t=0;switch($f(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function Fx(e,t){let r=$f(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let a=t===99?["import"]:["require"];return e.noDtsResolution||a.push("types"),r!==100&&a.push("node"),Fo(a,e.customConditions)}function Bte(e,t,r,a,u){let f=e8(u?.getPackageJsonInfoCache(),a,r);return Rh(t,p=>{if(Xu(p)!=="node_modules"){let y=xr(p,"node_modules"),g=xr(y,e);return DE(g,!1,f)}})}function iU(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let a=QO(e,t);if(a){for(let u of a)if(t.directoryExists(u))for(let f of t.getDirectories(u)){let p=$s(f),y=xr(u,p,"package.json");if(!(t.fileExists(y)&&cO(y,t).typings===null)){let x=Xu(p);x.charCodeAt(0)!==46&&r.push(x)}}}}return r}function nU(e){return!!e?.contents}function Dve(e){return!!e&&!e.contents}function Ive(e){var t;if(e===null||typeof e!="object")return""+e;if(ds(e))return`[${(t=e.map(a=>Ive(a)))==null?void 0:t.join(",")}]`;let r="{";for(let a in e)Nc(e,a)&&(r+=`${a}: ${Ive(e[a])}`);return r+"}"}function jte(e,t){return t.map(r=>Ive(RV(e,r))).join("|")+`|${e.pathsBasePath}`}function NRe(e,t){let r=new Map,a=new Map,u=new Map;return e&&r.set(e,u),{getMapOfCacheRedirects:f,getOrCreateMapOfCacheRedirects:p,update:y,clear:x,getOwnMap:()=>u};function f(T){return T?g(T.commandLine.options,!1):u}function p(T){return T?g(T.commandLine.options,!0):u}function y(T){e!==T&&(e?u=g(T,!0):r.set(T,u),e=T)}function g(T,A){let P=r.get(T);if(P)return P;let R=k(T);if(P=a.get(R),!P){if(e){let W=k(e);W===R?P=u:a.has(W)||a.set(W,u)}A&&(P??(P=new Map)),P&&a.set(R,P)}return P&&r.set(T,P),P}function x(){let T=e&&t.get(e);u.clear(),r.clear(),t.clear(),a.clear(),e&&(T&&t.set(e,T),r.set(e,u))}function k(T){let A=t.get(T);return A||t.set(T,A=jte(T,Ste)),A}}function KEt(e,t){let r;return{getPackageJsonInfo:a,setPackageJsonInfo:u,clear:f,getInternalMap:p};function a(y){return r?.get(Vc(y,e,t))}function u(y,g){(r||(r=new Map)).set(Vc(y,e,t),g)}function f(){r=void 0}function p(){return r}}function ARe(e,t,r,a){let u=e.getOrCreateMapOfCacheRedirects(t),f=u.get(r);return f||(f=a(),u.set(r,f)),f}function XEt(e,t,r,a){let u=NRe(r,a);return{getFromDirectoryCache:g,getOrCreateCacheForDirectory:y,clear:f,update:p,directoryToModuleNameMap:u};function f(){u.clear()}function p(x){u.update(x)}function y(x,k){let T=Vc(x,e,t);return ARe(u,k,T,()=>L4())}function g(x,k,T,A){var P,R;let W=Vc(T,e,t);return(R=(P=u.getMapOfCacheRedirects(A))==null?void 0:P.get(W))==null?void 0:R.get(x,k)}}function ZO(e,t){return t===void 0?e:`${t}|${e}`}function L4(){let e=new Map,t=new Map,r={get(u,f){return e.get(a(u,f))},set(u,f,p){return e.set(a(u,f),p),r},delete(u,f){return e.delete(a(u,f)),r},has(u,f){return e.has(a(u,f))},forEach(u){return e.forEach((f,p)=>{let[y,g]=t.get(p);return u(f,y,g)})},size(){return e.size}};return r;function a(u,f){let p=ZO(u,f);return t.set(p,[u,f]),p}}function YEt(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function QEt(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function ZEt(e,t,r,a,u){let f=NRe(r,u);return{getFromNonRelativeNameCache:g,getOrCreateCacheForNonRelativeName:x,clear:p,update:y};function p(){f.clear()}function y(T){f.update(T)}function g(T,A,P,R){var W,z;return B.assert(!Od(T)),(z=(W=f.getMapOfCacheRedirects(R))==null?void 0:W.get(ZO(T,A)))==null?void 0:z.get(P)}function x(T,A,P){return B.assert(!Od(T)),ARe(f,P,ZO(T,A),k)}function k(){let T=new Map;return{get:A,set:P};function A(W){return T.get(Vc(W,e,t))}function P(W,z){let q=Vc(W,e,t);if(T.has(q))return;T.set(q,z);let G=a(z),$=G&&R(q,G),te=q;for(;te!==$;){let ne=Or(te);if(ne===te||T.has(ne))break;T.set(ne,z),te=ne}}function R(W,z){let q=Vc(Or(z),e,t),G=0,$=Math.min(W.length,q.length);for(;G<$&&W.charCodeAt(G)===q.charCodeAt(G);)G++;if(G===W.length&&(q.length===G||q[G]===wl))return W;let te=Vy(W);if(Ga,clearAllExceptPackageJsonInfoCache:x,optionsToRedirectsKey:f};function g(){x(),a.clear()}function x(){p.clear(),y.clear()}function k(T){p.update(T),y.update(T)}}function O4(e,t,r,a,u){let f=PRe(e,t,r,a,YEt,u);return f.getOrCreateCacheForModuleName=(p,y,g)=>f.getOrCreateCacheForNonRelativeName(p,y,g),f}function rU(e,t,r,a,u){return PRe(e,t,r,a,QEt,u)}function Wte(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function oU(e,t,r,a,u){return jN(e,t,Wte(r),a,u)}function LRe(e,t,r,a){let u=Or(t);return r.getFromDirectoryCache(e,a,u,void 0)}function jN(e,t,r,a,u,f,p){let y=Ox(r,a);f&&(r=f.commandLine.options),y&&(Qo(a,S.Resolving_module_0_from_1,e,t),f&&Qo(a,S.Using_compiler_options_of_project_reference_redirect_0,f.sourceFile.fileName));let g=Or(t),x=u?.getFromDirectoryCache(e,p,g,f);if(x)y&&Qo(a,S.Resolution_for_module_0_was_found_in_cache_from_location_1,e,g);else{let k=r.moduleResolution;switch(k===void 0?(k=$f(r),y&&Qo(a,S.Module_resolution_kind_is_not_specified_using_0,g3[k])):y&&Qo(a,S.Explicitly_specified_module_resolution_kind_Colon_0,g3[k]),k){case 3:x=nDt(e,t,r,a,u,f,p);break;case 99:x=rDt(e,t,r,a,u,f,p);break;case 2:x=Lve(e,t,r,a,u,f,p?Fx(r,p):void 0);break;case 1:x=jve(e,t,r,a,u,f);break;case 100:x=Pve(e,t,r,a,u,f,p?Fx(r,p):void 0);break;default:return B.fail(`Unexpected moduleResolution: ${k}`)}u&&!u.isReadonly&&(u.getOrCreateCacheForDirectory(g,f).set(e,p,x),Od(e)||u.getOrCreateCacheForNonRelativeName(e,p,f).set(g,x))}return y&&(x.resolvedModule?x.resolvedModule.packageId?Qo(a,S.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,x.resolvedModule.resolvedFileName,tk(x.resolvedModule.packageId)):Qo(a,S.Module_name_0_was_successfully_resolved_to_1,e,x.resolvedModule.resolvedFileName):Qo(a,S.Module_name_0_was_not_resolved,e)),x}function ORe(e,t,r,a,u){let f=eDt(e,t,a,u);return f?f.value:Od(t)?tDt(e,t,r,a,u):iDt(e,t,a,u)}function eDt(e,t,r,a){var u;let{baseUrl:f,paths:p,configFile:y}=a.compilerOptions;if(p&&!Nm(t)){a.traceEnabled&&(f&&Qo(a.host,S.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,f,t),Qo(a.host,S.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let g=pV(a.compilerOptions,a.host),x=y?.configFileSpecs?(u=y.configFileSpecs).pathPatterns||(u.pathPatterns=KV(p)):void 0;return Rve(e,t,g,p,x,r,!1,a)}}function tDt(e,t,r,a,u){if(!u.compilerOptions.rootDirs)return;u.traceEnabled&&Qo(u.host,S.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let f=$s(xr(r,t)),p,y;for(let g of u.compilerOptions.rootDirs){let x=$s(g);Wl(x,wl)||(x+=wl);let k=Ro(f,x)&&(y===void 0||y.length(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))(Ave||{});function nDt(e,t,r,a,u,f,p){return FRe(30,e,t,r,a,u,f,p)}function rDt(e,t,r,a,u,f,p){return FRe(30,e,t,r,a,u,f,p)}function FRe(e,t,r,a,u,f,p,y,g){let x=Or(r),k=y===99?32:0,T=a.noDtsResolution?3:7;return iT(a)&&(T|=8),c5(e|k,t,x,a,u,f,T,!1,p,g)}function oDt(e,t,r){return c5(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function Pve(e,t,r,a,u,f,p){let y=Or(t),g=r.noDtsResolution?3:7;return iT(r)&&(g|=8),c5(Eve(r),e,y,r,a,u,g,!1,f,p)}function Lve(e,t,r,a,u,f,p,y){let g;return y?g=8:r.noDtsResolution?(g=3,iT(r)&&(g|=8)):g=iT(r)?15:7,c5(p?30:0,e,Or(t),r,a,u,g,!!y,f,p)}function Ove(e,t,r){return c5(30,e,Or(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function c5(e,t,r,a,u,f,p,y,g,x){var k,T,A,P,R;let W=Ox(a,u),z=[],q=[],G=$f(a);x??(x=Fx(a,G===100||G===2?void 0:e&32?99:1));let $=[],te={compilerOptions:a,host:u,traceEnabled:W,failedLookupLocations:z,affectingLocations:q,packageJsonInfoCache:f,features:e,conditions:x??F,requestContainingDirectory:r,reportDiagnostic:ae=>void $.push(ae),isConfigLookup:y,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};W&&u4(G)&&Qo(u,S.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",te.conditions.map(ae=>`'${ae}'`).join(", "));let ne;if(G===2){let ae=p&5,Ce=p&-6;ne=ae&&ce(ae,te)||Ce&&ce(Ce,te)||void 0}else ne=ce(p,te);let _e;if(te.resolvedPackageDirectory&&!y&&!Od(t)){let ae=ne?.value&&p&5&&!VRe(5,ne.value.resolved.extension);if((k=ne?.value)!=null&&k.isExternalLibraryImport&&ae&&e&8&&x?.includes("import")){Rx(te,S.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let Ce={...te,features:te.features&-9,reportDiagnostic:dc},he=ce(p&5,Ce);(T=he?.value)!=null&&T.isExternalLibraryImport&&(_e=he.value.resolved.path)}else if((!ne?.value||ae)&&G===2){Rx(te,S.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let Ce={...te.compilerOptions,moduleResolution:100},he={...te,compilerOptions:Ce,features:30,conditions:Fx(Ce),reportDiagnostic:dc},ue=ce(p&5,he);(A=ue?.value)!=null&&A.isExternalLibraryImport&&(_e=ue.value.resolved.path)}}return TRe(t,(P=ne?.value)==null?void 0:P.resolved,(R=ne?.value)==null?void 0:R.isExternalLibraryImport,z,q,$,te,f,_e);function ce(ae,Ce){let ue=ORe(ae,t,r,(Ee,ve,be,Se)=>zte(Ee,ve,be,Se,!0),Ce);if(ue)return Fm({resolved:ue,isExternalLibraryImport:Mx(ue.path)});if(Od(t)){let{path:Ee,parts:ve}=MRe(r,t),be=zte(ae,Ee,!1,Ce,!0);return be&&Fm({resolved:be,isExternalLibraryImport:sn(ve,"node_modules")})}else{let Ee;if(e&2&&Ro(t,"#")&&(Ee=dDt(ae,t,r,Ce,f,g)),!Ee&&e&4&&(Ee=uDt(ae,t,r,Ce,f,g)),!Ee){if(t.includes(":")){W&&Qo(u,S.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,eU(ae));return}W&&Qo(u,S.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,eU(ae)),Ee=JRe(ae,t,r,Ce,f,g)}return ae&4&&(Ee??(Ee=YRe(t,Ce))),Ee&&{value:Ee.value&&{resolved:Ee.value,isExternalLibraryImport:!0}}}}}function MRe(e,t){let r=xr(e,t),a=zd(r),u=Lc(a);return{path:u==="."||u===".."?xd($s(r)):$s(r),parts:a}}function RRe(e,t,r){if(!t.realpath)return e;let a=$s(t.realpath(e));return r&&Qo(t,S.Resolving_real_path_for_0_result_1,e,a),a}function zte(e,t,r,a,u){if(a.traceEnabled&&Qo(a.host,S.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,eU(e)),!cx(t)){if(!r){let p=Or(t);Xg(p,a.host)||(a.traceEnabled&&Qo(a.host,S.Directory_0_does_not_exist_skipping_all_lookups_in_it,p),r=!0)}let f=F4(e,t,r,a);if(f){let p=u?l5(f.path):void 0,y=p?DE(p,!1,a):void 0;return BN(y,f,a)}}if(r||Xg(t,a.host)||(a.traceEnabled&&Qo(a.host,S.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(a.features&32))return Mve(e,t,r,a,u)}var Zv="/node_modules/";function Mx(e){return e.includes(Zv)}function l5(e,t){let r=$s(e),a=r.lastIndexOf(Zv);if(a===-1)return;let u=a+Zv.length,f=BRe(r,u,t);return r.charCodeAt(u)===64&&(f=BRe(r,f,t)),r.slice(0,f)}function BRe(e,t,r){let a=e.indexOf(wl,t+1);return a===-1?r?e.length:t:a}function Fve(e,t,r,a){return Mte(F4(e,t,r,a))}function F4(e,t,r,a){let u=jRe(e,t,r,a);if(u)return u;if(!(a.features&32)){let f=WRe(t,e,"",r,a);if(f)return f}}function jRe(e,t,r,a){if(!Xu(t).includes("."))return;let f=A_(t);f===t&&(f=t.substring(0,t.lastIndexOf(".")));let p=t.substring(f.length);return a.traceEnabled&&Qo(a.host,S.File_name_0_has_a_1_extension_stripping_it,t,p),WRe(f,e,p,r,a)}function Vte(e,t,r,a){return e&1&&vu(t,kR)||e&4&&vu(t,$V)?Hte(t,r,a)!==void 0?{path:t,ext:CV(t),resolvedUsingTsExtension:void 0}:void 0:a.isConfigLookup&&e===8&&Tl(t,".json")?Hte(t,r,a)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:jRe(e,t,r,a)}function WRe(e,t,r,a,u){if(!a){let p=Or(e);p&&(a=!Xg(p,u.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&f(".mts",r===".mts"||r===".d.mts")||t&4&&f(".d.mts",r===".mts"||r===".d.mts")||t&2&&f(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&f(".cts",r===".cts"||r===".d.cts")||t&4&&f(".d.cts",r===".cts"||r===".d.cts")||t&2&&f(".cjs")||void 0;case".json":return t&4&&f(".d.json.ts")||t&8&&f(".json")||void 0;case".tsx":case".jsx":return t&1&&(f(".tsx",r===".tsx")||f(".ts",r===".tsx"))||t&4&&f(".d.ts",r===".tsx")||t&2&&(f(".jsx")||f(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(f(".ts",r===".ts"||r===".d.ts")||f(".tsx",r===".ts"||r===".d.ts"))||t&4&&f(".d.ts",r===".ts"||r===".d.ts")||t&2&&(f(".js")||f(".jsx"))||u.isConfigLookup&&f(".json")||void 0;default:return t&4&&!Jd(e+r)&&f(`.d${r}.ts`)||void 0}function f(p,y){let g=Hte(e+p,a,u);return g===void 0?void 0:{path:g,ext:p,resolvedUsingTsExtension:!u.candidateIsFromPackageJsonField&&y}}}function Hte(e,t,r){var a;if(!((a=r.compilerOptions.moduleSuffixes)!=null&&a.length))return zRe(e,t,r);let u=Gv(e)??"",f=u?ER(e,u):e;return re(r.compilerOptions.moduleSuffixes,p=>zRe(f+p+u,t,r))}function zRe(e,t,r){var a;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&Qo(r.host,S.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&Qo(r.host,S.File_0_does_not_exist,e)}(a=r.failedLookupLocations)==null||a.push(e)}function Mve(e,t,r,a,u=!0){let f=u?DE(t,r,a):void 0,p=f&&f.contents.packageJsonContent,y=f&&sU(f,a);return BN(f,Jte(e,t,r,a,p,y),a)}function Ute(e,t,r,a,u){if(!u&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let f,p=5|(u?2:0),y=Eve(t),g=e8(a?.getPackageJsonInfoCache(),r,t);g.conditions=Fx(t),g.requestContainingDirectory=e.packageDirectory;let x=Jte(p,e.packageDirectory,!1,g,e.contents.packageJsonContent,sU(e,g));if(f=hi(f,x?.path),y&8&&e.contents.packageJsonContent.exports){let k=hs([Fx(t,99),Fx(t,1)],Lr);for(let T of k){let A={...g,failedLookupLocations:[],conditions:T,host:r},P=sDt(e,e.contents.packageJsonContent.exports,A,p);if(P)for(let R of P)f=Qd(f,R.path)}}return e.contents.resolvedEntrypoints=f||!1}function sDt(e,t,r,a){let u;if(ds(t))for(let p of t)f(p);else if(typeof t=="object"&&t!==null&&cU(t))for(let p in t)f(t[p]);else f(t);return u;function f(p){var y,g;if(typeof p=="string"&&Ro(p,"./"))if(p.includes("*")&&r.host.readDirectory){if(p.indexOf("*")!==p.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,WEt(a),void 0,[QW(_E(p,"**/*"),".*")]).forEach(x=>{u=Qd(u,{path:x,ext:IP(x),resolvedUsingTsExtension:void 0})})}else{let x=zd(p).slice(2);if(x.includes("..")||x.includes(".")||x.includes("node_modules"))return!1;let k=xr(e.packageDirectory,p),T=ts(k,(g=(y=r.host).getCurrentDirectory)==null?void 0:g.call(y)),A=Vte(a,T,!1,r);if(A)return u=Qd(u,A,(P,R)=>P.path===R.path),!0}else if(Array.isArray(p)){for(let x of p)if(f(x))return!0}else if(typeof p=="object"&&p!==null)return re(mg(p),x=>{if(x==="default"||sn(r.conditions,x)||u5(r.conditions,x))return f(p[x]),!0})}}function e8(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Ox(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:F,requestContainingDirectory:void 0,reportDiagnostic:dc,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function t8(e,t){return Rh(e,r=>DE(r,!1,t))}function sU(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=JEt(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function aDt(e,t){return e.contents.peerDependencies===void 0&&(e.contents.peerDependencies=cDt(e,t)||!1),e.contents.peerDependencies||void 0}function cDt(e,t){let r=kve(e.contents.packageJsonContent,"peerDependencies","object",t);if(r===void 0)return;t.traceEnabled&&Qo(t.host,S.package_json_has_a_peerDependencies_field);let a=RRe(e.packageDirectory,t.host,t.traceEnabled),u=a.substring(0,a.lastIndexOf("node_modules")+12)+wl,f="";for(let p in r)if(Nc(r,p)){let y=DE(u+p,!1,t);if(y){let g=y.contents.packageJsonContent.version;f+=`+${p}@${g}`,t.traceEnabled&&Qo(t.host,S.Found_peerDependency_0_with_1_version,p,g)}else t.traceEnabled&&Qo(t.host,S.Failed_to_find_peerDependency_0,p)}return f}function DE(e,t,r){var a,u,f,p,y,g;let{host:x,traceEnabled:k}=r,T=xr(e,"package.json");if(t){(a=r.failedLookupLocations)==null||a.push(T);return}let A=(u=r.packageJsonInfoCache)==null?void 0:u.getPackageJsonInfo(T);if(A!==void 0){if(nU(A))return k&&Qo(x,S.File_0_exists_according_to_earlier_cached_lookups,T),(f=r.affectingLocations)==null||f.push(T),A.packageDirectory===e?A:{packageDirectory:e,contents:A.contents};A.directoryExists&&k&&Qo(x,S.File_0_does_not_exist_according_to_earlier_cached_lookups,T),(p=r.failedLookupLocations)==null||p.push(T);return}let P=Xg(e,x);if(P&&x.fileExists(T)){let R=cO(T,x);k&&Qo(x,S.Found_package_json_at_0,T);let W={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(T,W),(y=r.affectingLocations)==null||y.push(T),W}else P&&k&&Qo(x,S.File_0_does_not_exist,T),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(T,{packageDirectory:e,directoryExists:P}),(g=r.failedLookupLocations)==null||g.push(T)}function Jte(e,t,r,a,u,f){let p;u&&(a.isConfigLookup?p=VEt(u,t,a):p=e&4&&zEt(u,t,a)||e&7&&HEt(u,t,a)||void 0);let y=(A,P,R,W)=>{let z=Vte(A,P,R,W);if(z)return Mte(z);let q=A===4?5:A,G=W.features,$=W.candidateIsFromPackageJsonField;W.candidateIsFromPackageJsonField=!0,u?.type!=="module"&&(W.features&=-33);let te=zte(q,P,R,W,!1);return W.features=G,W.candidateIsFromPackageJsonField=$,te},g=p?!Xg(Or(p),a.host):void 0,x=r||!Xg(t,a.host),k=xr(t,a.isConfigLookup?"tsconfig":"index");if(f&&(!p||nh(t,p))){let A=Sg(t,p||k,!1);a.traceEnabled&&Qo(a.host,S.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,f.version,O,A);let P=Rve(e,A,t,f.paths,void 0,y,g||x,a);if(P)return wRe(P.value)}let T=p&&wRe(y(e,p,g,a));if(T)return T;if(!(a.features&32))return F4(e,k,x,a)}function VRe(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function aU(e){let t=e.indexOf(wl);return e[0]==="@"&&(t=e.indexOf(wl,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function cU(e){return Et(mg(e),t=>Ro(t,"."))}function lDt(e){return!Lt(mg(e),t=>Ro(t,"."))}function uDt(e,t,r,a,u,f){var p,y;let g=ts(r,(y=(p=a.host).getCurrentDirectory)==null?void 0:y.call(p)),x=t8(g,a);if(!x||!x.contents.packageJsonContent.exports||typeof x.contents.packageJsonContent.name!="string")return;let k=zd(t),T=zd(x.contents.packageJsonContent.name);if(!Et(T,(z,q)=>k[q]===z))return;let A=k.slice(T.length),P=K(A)?`.${wl}${A.join(wl)}`:".";if(kx(a.compilerOptions)&&!Mx(r))return qte(x,e,P,a,u,f);let R=e&5,W=e&-6;return qte(x,R,P,a,u,f)||qte(x,W,P,a,u,f)}function qte(e,t,r,a,u,f){if(e.contents.packageJsonContent.exports){if(r==="."){let p;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&lDt(e.contents.packageJsonContent.exports)?p=e.contents.packageJsonContent.exports:Nc(e.contents.packageJsonContent.exports,".")&&(p=e.contents.packageJsonContent.exports["."]),p)return URe(t,a,u,f,r,e,!1)(p,"",!1,".")}else if(cU(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return a.traceEnabled&&Qo(a.host,S.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Fm(void 0);let p=HRe(t,a,u,f,r,e.contents.packageJsonContent.exports,e,!1);if(p)return p}return a.traceEnabled&&Qo(a.host,S.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Fm(void 0)}}function dDt(e,t,r,a,u,f){var p,y;if(t==="#"||Ro(t,"#/"))return a.traceEnabled&&Qo(a.host,S.Invalid_import_specifier_0_has_no_possible_resolutions,t),Fm(void 0);let g=ts(r,(y=(p=a.host).getCurrentDirectory)==null?void 0:y.call(p)),x=t8(g,a);if(!x)return a.traceEnabled&&Qo(a.host,S.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,g),Fm(void 0);if(!x.contents.packageJsonContent.imports)return a.traceEnabled&&Qo(a.host,S.package_json_scope_0_has_no_imports_defined,x.packageDirectory),Fm(void 0);let k=HRe(e,a,u,f,t,x.contents.packageJsonContent.imports,x,!0);return k||(a.traceEnabled&&Qo(a.host,S.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,x.packageDirectory),Fm(void 0))}function $te(e,t){let r=e.indexOf("*"),a=t.indexOf("*"),u=r===-1?e.length:r+1,f=a===-1?t.length:a+1;return u>f?-1:f>u||r===-1?1:a===-1||e.length>t.length?-1:t.length>e.length?1:0}function HRe(e,t,r,a,u,f,p,y){let g=URe(e,t,r,a,u,p,y);if(!Wl(u,wl)&&!u.includes("*")&&Nc(f,u)){let T=f[u];return g(T,"",!1,u)}let x=lc(Di(mg(f),T=>fDt(T)||Wl(T,"/")),$te);for(let T of x)if(t.features&16&&k(T,u)){let A=f[T],P=T.indexOf("*"),R=u.substring(T.substring(0,P).length,u.length-(T.length-1-P));return g(A,R,!0,T)}else if(Wl(T,"*")&&Ro(u,T.substring(0,T.length-1))){let A=f[T],P=u.substring(T.length-1);return g(A,P,!0,T)}else if(Ro(u,T)){let A=f[T],P=u.substring(T.length);return g(A,P,!1,T)}function k(T,A){if(Wl(T,"*"))return!1;let P=T.indexOf("*");return P===-1?!1:Ro(A,T.substring(0,P))&&Wl(A,T.substring(P+1))}}function fDt(e){let t=e.indexOf("*");return t!==-1&&t===e.lastIndexOf("*")}function URe(e,t,r,a,u,f,p){return y;function y(g,x,k,T){if(typeof g=="string"){if(!k&&x.length>0&&!Wl(g,"/"))return t.traceEnabled&&Qo(t.host,S.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,f.packageDirectory,u),Fm(void 0);if(!Ro(g,"./")){if(p&&!Ro(g,"../")&&!Ro(g,"/")&&!jp(g)){let ne=k?g.replace(/\*/g,x):g+x;Rx(t,S.Using_0_subpath_1_with_target_2,"imports",T,ne),Rx(t,S.Resolving_module_0_from_1,ne,f.packageDirectory+"/");let _e=c5(t.features,ne,f.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,a,t.conditions);return Fm(_e.resolvedModule?{path:_e.resolvedModule.resolvedFileName,extension:_e.resolvedModule.extension,packageId:_e.resolvedModule.packageId,originalPath:_e.resolvedModule.originalPath,resolvedUsingTsExtension:_e.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Qo(t.host,S.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,f.packageDirectory,u),Fm(void 0)}let z=(Nm(g)?zd(g).slice(1):zd(g)).slice(1);if(z.includes("..")||z.includes(".")||z.includes("node_modules"))return t.traceEnabled&&Qo(t.host,S.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,f.packageDirectory,u),Fm(void 0);let q=xr(f.packageDirectory,g),G=zd(x);if(G.includes("..")||G.includes(".")||G.includes("node_modules"))return t.traceEnabled&&Qo(t.host,S.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,f.packageDirectory,u),Fm(void 0);t.traceEnabled&&Qo(t.host,S.Using_0_subpath_1_with_target_2,p?"imports":"exports",T,k?g.replace(/\*/g,x):g+x);let $=A(k?q.replace(/\*/g,x):q+x),te=R($,x,xr(f.packageDirectory,"package.json"),p);return te||Fm(BN(f,Vte(e,$,!1,t),t))}else if(typeof g=="object"&&g!==null)if(Array.isArray(g)){if(!K(g))return t.traceEnabled&&Qo(t.host,S.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,f.packageDirectory,u),Fm(void 0);for(let W of g){let z=y(W,x,k,T);if(z)return z}}else{Rx(t,S.Entering_conditional_exports);for(let W of mg(g))if(W==="default"||t.conditions.includes(W)||u5(t.conditions,W)){Rx(t,S.Matched_0_condition_1,p?"imports":"exports",W);let z=g[W],q=y(z,x,k,T);if(q)return Rx(t,S.Resolved_under_condition_0,W),Rx(t,S.Exiting_conditional_exports),q;Rx(t,S.Failed_to_resolve_under_condition_0,W)}else Rx(t,S.Saw_non_matching_condition_0,W);Rx(t,S.Exiting_conditional_exports);return}else if(g===null)return t.traceEnabled&&Qo(t.host,S.package_json_scope_0_explicitly_maps_specifier_1_to_null,f.packageDirectory,u),Fm(void 0);return t.traceEnabled&&Qo(t.host,S.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,f.packageDirectory,u),Fm(void 0);function A(W){var z,q;return W===void 0?W:ts(W,(q=(z=t.host).getCurrentDirectory)==null?void 0:q.call(z))}function P(W,z){return xd(xr(W,z))}function R(W,z,q,G){var $,te,ne,_e;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!W.includes("/node_modules/")&&(!t.compilerOptions.configFile||nh(f.packageDirectory,A(t.compilerOptions.configFile.fileName),!Gte(t)))){let ae=rS({useCaseSensitiveFileNames:()=>Gte(t)}),Ce=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let he=A(d8(t.compilerOptions,()=>[],((te=($=t.host).getCurrentDirectory)==null?void 0:te.call($))||"",ae));Ce.push(he)}else if(t.requestContainingDirectory){let he=A(xr(t.requestContainingDirectory,"index.ts")),ue=A(d8(t.compilerOptions,()=>[he,A(q)],((_e=(ne=t.host).getCurrentDirectory)==null?void 0:_e.call(ne))||"",ae));Ce.push(ue);let Ee=xd(ue);for(;Ee&&Ee.length>1;){let ve=zd(Ee);ve.pop();let be=Xb(ve);Ce.unshift(be),Ee=xd(be)}}Ce.length>1&&t.reportDiagnostic(Dl(G?S.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:S.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,z===""?".":z,q));for(let he of Ce){let ue=ce(he);for(let Ee of ue)if(nh(Ee,W,!Gte(t))){let ve=W.slice(Ee.length+1),be=xr(he,ve),Se=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let Re of Se)if(Tl(be,Re)){let ie=bge(be);for(let ke of ie){if(!VRe(e,ke))continue;let De=Y7(be,ke,Re,!Gte(t));if(t.host.fileExists(De))return Fm(BN(f,Vte(e,De,!1,t),t))}}}}}return;function ce(ae){var Ce,he;let ue=t.compilerOptions.configFile?((he=(Ce=t.host).getCurrentDirectory)==null?void 0:he.call(Ce))||"":ae,Ee=[];return t.compilerOptions.declarationDir&&Ee.push(A(P(ue,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&Ee.push(A(P(ue,t.compilerOptions.outDir))),Ee}}}}function u5(e,t){if(!e.includes("types")||!Ro(t,"types@"))return!1;let r=UW.tryParse(t.substring(6));return r?r.test(O):!1}function JRe(e,t,r,a,u,f){return qRe(e,t,r,a,!1,u,f)}function _Dt(e,t,r){return qRe(4,e,t,r,!0,void 0,void 0)}function qRe(e,t,r,a,u,f,p){let y=a.features===0?void 0:a.features&32?99:1,g=e&5,x=e&-6;if(g){Rx(a,S.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,eU(g));let T=k(g);if(T)return T}if(x&&!u)return Rx(a,S.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,eU(x)),k(x);function k(T){return Rh(ff(r),A=>{if(Xu(A)!=="node_modules"){let P=XRe(f,t,y,A,p,a);return P||Fm($Re(T,t,A,a,u,f,p))}})}}function $Re(e,t,r,a,u,f,p){let y=xr(r,"node_modules"),g=Xg(y,a.host);if(!g&&a.traceEnabled&&Qo(a.host,S.Directory_0_does_not_exist_skipping_all_lookups_in_it,y),!u){let x=GRe(e,t,y,g,a,f,p);if(x)return x}if(e&4){let x=xr(y,"@types"),k=g;return g&&!Xg(x,a.host)&&(a.traceEnabled&&Qo(a.host,S.Directory_0_does_not_exist_skipping_all_lookups_in_it,x),k=!1),GRe(4,KRe(t,a),x,k,a,f,p)}}function GRe(e,t,r,a,u,f,p){var y,g;let x=$s(xr(r,t)),{packageName:k,rest:T}=aU(t),A=xr(r,k),P,R=DE(x,!a,u);if(T!==""&&R&&(!(u.features&8)||!Nc(((y=P=DE(A,!a,u))==null?void 0:y.contents.packageJsonContent)??F,"exports"))){let q=F4(e,x,!a,u);if(q)return Mte(q);let G=Jte(e,x,!a,u,R.contents.packageJsonContent,sU(R,u));return BN(R,G,u)}let W=(q,G,$,te)=>{let ne=(T||!(te.features&32))&&F4(q,G,$,te)||Jte(q,G,$,te,R&&R.contents.packageJsonContent,R&&sU(R,te));return!ne&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&te.features&32&&(ne=F4(q,xr(G,"index.js"),$,te)),BN(R,ne,te)};if(T!==""&&(R=P??DE(A,!a,u)),R&&(u.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&u.features&8)return(g=qte(R,e,xr(".",T),u,f,p))==null?void 0:g.value;let z=T!==""&&R?sU(R,u):void 0;if(z){u.traceEnabled&&Qo(u.host,S.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,z.version,O,T);let q=a&&Xg(A,u.host),G=Rve(e,T,A,z.paths,void 0,W,!q,u);if(G)return G.value}return W(e,x,!a,u)}function Rve(e,t,r,a,u,f,p,y){u||(u=KV(a));let g=_ee(u,t);if(g){let x=fs(g)?void 0:H_e(g,t),k=fs(g)?g:V_e(g);return y.traceEnabled&&Qo(y.host,S.Module_name_0_matched_pattern_1,t,k),{value:re(a[k],A=>{let P=x?_E(A,x):A,R=$s(xr(r,P));y.traceEnabled&&Qo(y.host,S.Trying_substitution_0_candidate_module_location_Colon_1,A,P);let W=Gv(A);if(W!==void 0){let z=Hte(R,p,y);if(z!==void 0)return Mte({path:z,ext:W,resolvedUsingTsExtension:void 0})}return f(e,R,p||!Xg(Or(R),y.host),y)})}}}var Bve="__";function KRe(e,t){let r=M4(e);return t.traceEnabled&&r!==e&&Qo(t.host,S.Scoped_package_detected_looking_in_0,r),r}function lU(e){return`@types/${M4(e)}`}function M4(e){if(Ro(e,"@")){let t=e.replace(wl,Bve);if(t!==e)return t.slice(1)}return e}function i8(e){let t=u3(e,"@types/");return t!==e?d5(t):e}function d5(e){return e.includes(Bve)?"@"+e.replace(Bve,wl):e}function XRe(e,t,r,a,u,f){let p=e&&e.getFromNonRelativeNameCache(t,r,a,u);if(p)return f.traceEnabled&&Qo(f.host,S.Resolution_for_module_0_was_found_in_cache_from_location_1,t,a),f.resultFromCache=p,{value:p.resolvedModule&&{path:p.resolvedModule.resolvedFileName,originalPath:p.resolvedModule.originalPath||!0,extension:p.resolvedModule.extension,packageId:p.resolvedModule.packageId,resolvedUsingTsExtension:p.resolvedModule.resolvedUsingTsExtension}}}function jve(e,t,r,a,u,f){let p=Ox(r,a),y=[],g=[],x=Or(t),k=[],T={compilerOptions:r,host:a,traceEnabled:p,failedLookupLocations:y,affectingLocations:g,packageJsonInfoCache:u,features:0,conditions:[],requestContainingDirectory:x,reportDiagnostic:R=>void k.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},A=P(5)||P(2|(r.resolveJsonModule?8:0));return TRe(e,A&&A.value,A?.value&&Mx(A.value.path),y,g,k,T,u);function P(R){let W=ORe(R,e,x,Fve,T);if(W)return{value:W};if(Od(e)){let z=$s(xr(x,e));return Fm(Fve(R,z,!1,T))}else{let z=Rh(x,q=>{let G=XRe(u,e,void 0,q,f,T);if(G)return G;let $=$s(xr(q,e));return Fm(Fve(R,$,!1,T))});if(z)return z;if(R&5){let q=_Dt(e,x,T);return R&4&&(q??(q=YRe(e,T))),q}}}}function YRe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let a=IRe(r,e,t),u=Xg(r,t.host);!u&&t.traceEnabled&&Qo(t.host,S.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let f=F4(4,a,!u,t);if(f){let y=l5(f.path),g=y?DE(y,!1,t):void 0;return Fm(BN(g,f,t))}let p=Mve(4,a,!u,t);if(p)return Fm(p)}}function R4(e,t){return!!e.allowImportingTsExtensions||t&&Jd(t)}function Wve(e,t,r,a,u,f){let p=Ox(r,a);p&&Qo(a,S.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,u);let y=[],g=[],x=[],k={compilerOptions:r,host:a,traceEnabled:p,failedLookupLocations:y,affectingLocations:g,packageJsonInfoCache:f,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:A=>void x.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},T=$Re(4,e,u,k,!1,void 0,void 0);return ERe(T,!0,y,g,x,k.resultFromCache,void 0)}function Fm(e){return e!==void 0?{value:e}:void 0}function Rx(e,t,...r){e.traceEnabled&&Qo(e.host,t,...r)}function Gte(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var zve=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(zve||{});function ab(e,t){return e.body&&!e.body.parent&&(ic(e.body,e),tb(e.body,!1)),e.body?Vve(e.body,t):1}function Vve(e,t=new Map){let r=ac(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let a=pDt(e,t);return t.set(r,a),a}function pDt(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(ik(e))return 2;break;case 272:case 271:if(!Ar(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let a=0;for(let u of r.exportClause.elements){let f=mDt(u,t);if(f>a&&(a=f),a===1)return a}return a}break;case 268:{let a=0;return ws(e,u=>{let f=Vve(u,t);switch(f){case 0:return;case 2:a=2;return;case 1:return a=1,!0;default:B.assertNever(f)}}),a}case 267:return ab(e,t);case 80:if(e.flags&4096)return 0}return 1}function mDt(e,t){let r=e.propertyName||e.name;if(r.kind!==80)return 1;let a=e.parent;for(;a;){if(Ds(a)||ty(a)||mo(a)){let u=a.statements,f;for(let p of u)if(cM(p,r)){p.parent||(ic(p,a),tb(p,!1));let y=Vve(p,t);if((f===void 0||y>f)&&(f=y),f===1)return f;p.kind===271&&(f=1)}if(f!==void 0)return f}a=a.parent}return 1}var Hve=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(Hve||{});function ev(e,t,r){return B.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:r})}var hDt=gDt();function Uve(e,t){zl("beforeBind"),hDt(e,t),zl("afterBind"),ih("Bind","beforeBind","afterBind")}function gDt(){var e,t,r,a,u,f,p,y,g,x,k,T,A,P,R,W,z,q,G,$,te,ne,_e,ce,ae=!1,Ce=0,he,ue,Ee=ev(1,void 0,void 0),ve=ev(1,void 0,void 0),be=Bt();return Re;function Se(Q,ze,...Ut){return oh(en(Q)||e,Q,ze,...Ut)}function Re(Q,ze){var Ut,gn;e=Q,t=ze,r=Oa(t),ce=ie(e,ze),ue=new Set,Ce=0,he=gf.getSymbolConstructor(),B.attachFlowNodeDebugInfo(Ee),B.attachFlowNodeDebugInfo(ve),e.locals||((Ut=jn)==null||Ut.push(jn.Phase.Bind,"bindSourceFile",{path:e.path},!0),Bi(e),(gn=jn)==null||gn.pop(),e.symbolCount=Ce,e.classifiableNames=ue,tf(),Ts()),e=void 0,t=void 0,r=void 0,a=void 0,u=void 0,f=void 0,p=void 0,y=void 0,g=void 0,k=void 0,x=!1,T=void 0,A=void 0,P=void 0,R=void 0,W=void 0,z=void 0,q=void 0,$=void 0,te=!1,ne=!1,ae=!1,_e=0}function ie(Q,ze){return Rf(ze,"alwaysStrict")&&!Q.isDeclarationFile?!0:!!Q.externalModuleIndicator}function ke(Q,ze){return Ce++,new he(Q,ze)}function De(Q,ze,Ut){Q.flags|=Ut,ze.symbol=Q,Q.declarations=Qd(Q.declarations,ze),Ut&1955&&!Q.exports&&(Q.exports=ta()),Ut&6240&&!Q.members&&(Q.members=ta()),Q.constEnumOnlyModule&&Q.flags&304&&(Q.constEnumOnlyModule=!1),Ut&111551&&GM(Q,ze)}function Oe(Q){if(Q.kind===277)return Q.isExportEquals?"export=":"default";let ze=cs(Q);if(ze){if(d_(Q)){let Ut=Hh(ze);return $y(Q)?"__global":`"${Ut}"`}if(ze.kind===167){let Ut=ze.expression;if(Am(Ut))return Hl(Ut.text);if(aV(Ut))return ua(Ut.operator)+Ut.operand.text;B.fail("Only computed properties with literal names have declaration names")}if(xo(ze)){let Ut=Zd(Q);if(!Ut)return;let gn=Ut.symbol;return rR(gn,ze.escapedText)}return e0(ze)?_N(ze):q0(ze)?tO(ze):void 0}switch(Q.kind){case 176:return"__constructor";case 184:case 179:case 323:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 307:return"export=";case 226:if(Su(Q)===2)return"export=";B.fail("Unknown binary declaration kind");break;case 317:return QP(Q)?"__new":"__call";case 169:return B.assert(Q.parent.kind===317,"Impossible parameter parent kind",()=>`parent is: ${B.formatSyntaxKind(Q.parent.kind)}, expected JSDocFunctionType`),"arg"+Q.parent.parameters.indexOf(Q)}}function we(Q){return pf(Q)?Hc(Q.name):So(B.checkDefined(Oe(Q)))}function Ae(Q,ze,Ut,gn,lo,Is,os){B.assert(os||!Y1(Ut));let Ns=Ar(Ut,2048)||Gf(Ut)&&qy(Ut.name),Qa=os?"__computed":Ns&&ze?"default":Oe(Ut),Ra;if(Qa===void 0)Ra=ke(0,"__missing");else if(Ra=Q.get(Qa),gn&2885600&&ue.add(Qa),!Ra)Q.set(Qa,Ra=ke(0,Qa)),Is&&(Ra.isReplaceableByMethod=!0);else{if(Is&&!Ra.isReplaceableByMethod)return Ra;if(Ra.flags&lo){if(Ra.isReplaceableByMethod)Q.set(Qa,Ra=ke(0,Qa));else if(!(gn&3&&Ra.flags&67108864)){pf(Ut)&&ic(Ut.name,Ut);let Il=Ra.flags&2?S.Cannot_redeclare_block_scoped_variable_0:S.Duplicate_identifier_0,vh=!0;(Ra.flags&384||gn&384)&&(Il=S.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,vh=!1);let Tg=!1;K(Ra.declarations)&&(Ns||Ra.declarations&&Ra.declarations.length&&Ut.kind===277&&!Ut.isExportEquals)&&(Il=S.A_module_cannot_have_multiple_default_exports,vh=!1,Tg=!0);let a0=[];$h(Ut)&&Ul(Ut.type)&&Ar(Ut,32)&&Ra.flags&2887656&&a0.push(Se(Ut,S.Did_you_mean_0,`export type { ${So(Ut.name.escapedText)} }`));let n1=cs(Ut)||Ut;re(Ra.declarations,(r1,bh)=>{let Sh=cs(r1)||r1,ul=vh?Se(Sh,Il,we(r1)):Se(Sh,Il);e.bindDiagnostics.push(Tg?Xs(ul,Se(n1,bh===0?S.Another_export_default_is_here:S.and_here)):ul),Tg&&a0.push(Se(Sh,S.The_first_export_default_is_here))});let CS=vh?Se(n1,Il,we(Ut)):Se(n1,Il);e.bindDiagnostics.push(Xs(CS,...a0)),Ra=ke(0,Qa)}}}return De(Ra,Ut,gn),Ra.parent?B.assert(Ra.parent===ze,"Existing symbol parent should match new one"):Ra.parent=ze,Ra}function Fe(Q,ze,Ut){let gn=!!(GC(Q)&32)||Tt(Q);if(ze&2097152)return Q.kind===281||Q.kind===271&&gn?Ae(u.symbol.exports,u.symbol,Q,ze,Ut):(B.assertNode(u,Uy),Ae(u.locals,void 0,Q,ze,Ut));if(Vh(Q)&&B.assert(Jn(Q)),!d_(Q)&&(gn||u.flags&128)){if(!Uy(u)||!u.locals||Ar(Q,2048)&&!Oe(Q))return Ae(u.symbol.exports,u.symbol,Q,ze,Ut);let lo=ze&111551?1048576:0,Is=Ae(u.locals,void 0,Q,lo,Ut);return Is.exportSymbol=Ae(u.symbol.exports,u.symbol,Q,ze,Ut),Q.localSymbol=Is,Is}else return B.assertNode(u,Uy),Ae(u.locals,void 0,Q,ze,Ut)}function Tt(Q){if(Q.parent&&Hu(Q)&&(Q=Q.parent),!Vh(Q))return!1;if(!UR(Q)&&Q.fullName)return!0;let ze=cs(Q);return ze?!!(mR(ze.parent)&&Wm(ze.parent)||mf(ze.parent)&&GC(ze.parent)&32):!1}function Be(Q,ze){let Ut=u,gn=f,lo=p;if(ze&1?(Q.kind!==219&&(f=u),u=p=Q,ze&32&&(u.locals=ta(),gi(u))):ze&2&&(p=Q,ze&32&&(p.locals=void 0)),ze&4){let Is=T,os=A,Ns=P,Qa=R,Ra=q,Il=$,vh=te,Tg=ze&16&&!Ar(Q,1024)&&!Q.asteriskToken&&!!qw(Q)||Q.kind===175;Tg||(T=ev(2,void 0,void 0),ze&144&&(T.node=Q)),R=Tg||Q.kind===176||Jn(Q)&&(Q.kind===262||Q.kind===218)?ni():void 0,q=void 0,A=void 0,P=void 0,$=void 0,te=!1,gt(Q),Q.flags&=-5633,!(T.flags&1)&&ze&8&&jh(Q.body)&&(Q.flags|=512,te&&(Q.flags|=1024),Q.endFlowNode=T),Q.kind===307&&(Q.flags|=_e,Q.endFlowNode=T),R&&(Br(R,T),T=xn(R),(Q.kind===176||Q.kind===175||Jn(Q)&&(Q.kind===262||Q.kind===218))&&(Q.returnFlowNode=T)),Tg||(T=Is),A=os,P=Ns,R=Qa,q=Ra,$=Il,te=vh}else ze&64?(x=!1,gt(Q),B.assertNotNode(Q,et),Q.flags=x?Q.flags|256:Q.flags&-257):gt(Q);u=Ut,f=gn,p=lo}function Ge(Q){Ke(Q,ze=>ze.kind===262?Bi(ze):void 0),Ke(Q,ze=>ze.kind!==262?Bi(ze):void 0)}function Ke(Q,ze=Bi){Q!==void 0&&re(Q,ze)}function Ue(Q){ws(Q,Bi,Ke)}function gt(Q){let ze=ae;if(ae=!1,qr(Q)){Ue(Q),hr(Q),ae=ze;return}switch(Q.kind>=243&&Q.kind<=259&&(!t.allowUnreachableCode||Q.kind===253)&&(Q.flowNode=T),Q.kind){case 247:na(Q);break;case 246:aa(Q);break;case 248:Ai(Q);break;case 249:case 250:Ha(Q);break;case 245:ht(Q);break;case 253:case 257:Jt(Q);break;case 252:case 251:ge(Q);break;case 258:He(Q);break;case 255:ut(Q);break;case 269:bt(Q);break;case 296:je(Q);break;case 244:It(Q);break;case 256:$t(Q);break;case 224:nr(Q);break;case 225:Y(Q);break;case 226:if(sS(Q)){ae=ze,$e(Q);return}be(Q);break;case 220:se(Q);break;case 227:rt(Q);break;case 260:Wt(Q);break;case 211:case 212:Si(Q);break;case 213:Rn(Q);break;case 235:wi(Q);break;case 346:case 338:case 340:In(Q);break;case 351:_n(Q);break;case 307:{Ge(Q.statements),Bi(Q.endOfFileToken);break}case 241:case 268:Ge(Q.statements);break;case 208:tt(Q);break;case 169:Qe(Q);break;case 210:case 209:case 303:case 230:ae=ze;default:Ue(Q);break}hr(Q),ae=ze}function xt(Q){switch(Q.kind){case 80:case 110:return!0;case 211:case 212:return At(Q);case 213:return ci(Q);case 217:if(TE(Q))return!1;case 235:return xt(Q.expression);case 226:return bn(Q);case 224:return Q.operator===54&&xt(Q.operand);case 221:return xt(Q.expression)}return!1}function nt(Q){switch(Q.kind){case 80:case 110:case 108:case 236:return!0;case 211:case 217:case 235:return nt(Q.expression);case 212:return(Am(Q.argumentExpression)||Xc(Q.argumentExpression))&&nt(Q.expression);case 226:return Q.operatorToken.kind===28&&nt(Q.right)||Q1(Q.operatorToken.kind)&&X_(Q.left)}return!1}function At(Q){return nt(Q)||qf(Q)&&At(Q.expression)}function ci(Q){if(Q.arguments){for(let ze of Q.arguments)if(At(ze))return!0}return!!(Q.expression.kind===211&&At(Q.expression.expression))}function Fi(Q,ze){return b4(Q)&&an(Q.expression)&&xc(ze)}function bn(Q){switch(Q.operatorToken.kind){case 64:case 76:case 77:case 78:return At(Q.left);case 35:case 36:case 37:case 38:return an(Q.left)||an(Q.right)||Fi(Q.right,Q.left)||Fi(Q.left,Q.right)||M3(Q.right)&&xt(Q.left)||M3(Q.left)&&xt(Q.right);case 104:return an(Q.left);case 103:return xt(Q.right);case 28:return xt(Q.right)}return!1}function an(Q){switch(Q.kind){case 217:return an(Q.expression);case 226:switch(Q.operatorToken.kind){case 64:return an(Q.left);case 28:return an(Q.right)}}return At(Q)}function ni(){return ev(4,void 0,void 0)}function Ci(){return ev(8,void 0,void 0)}function Sn(Q,ze,Ut){return ev(1024,{target:Q,antecedents:ze},Ut)}function nn(Q){Q.flags|=Q.flags&2048?4096:2048}function Br(Q,ze){!(ze.flags&1)&&!sn(Q.antecedent,ze)&&((Q.antecedent||(Q.antecedent=[])).push(ze),nn(ze))}function Gr(Q,ze,Ut){return ze.flags&1?ze:Ut?(Ut.kind===112&&Q&64||Ut.kind===97&&Q&32)&&!dz(Ut)&&!xQ(Ut.parent)?Ee:xt(Ut)?(nn(ze),ev(Q,Ut,ze)):ze:Q&32?ze:Ee}function is(Q,ze,Ut,gn){return nn(Q),ev(128,{switchStatement:ze,clauseStart:Ut,clauseEnd:gn},Q)}function Ao(Q,ze,Ut){nn(ze),ne=!0;let gn=ev(Q,Ut,ze);return q&&Br(q,gn),gn}function Rr(Q,ze){return nn(Q),ne=!0,ev(512,ze,Q)}function xn(Q){let ze=Q.antecedent;return ze?ze.length===1?ze[0]:Q:Ee}function Eo(Q){let ze=Q.parent;switch(ze.kind){case 245:case 247:case 246:return ze.expression===Q;case 248:case 227:return ze.condition===Q}return!1}function it(Q){for(;;)if(Q.kind===217)Q=Q.expression;else if(Q.kind===224&&Q.operator===54)Q=Q.operand;else return _R(Q)}function si(Q){return WZ(fc(Q))}function dn(Q){for(;O_(Q.parent)||mk(Q.parent)&&Q.parent.operator===54;)Q=Q.parent;return!Eo(Q)&&!it(Q.parent)&&!(qf(Q.parent)&&Q.parent.expression===Q)}function Qn(Q,ze,Ut,gn){let lo=W,Is=z;W=Ut,z=gn,Q(ze),W=lo,z=Is}function Jr(Q,ze,Ut){Qn(Bi,Q,ze,Ut),(!Q||!si(Q)&&!it(Q)&&!(qf(Q)&&N3(Q)))&&(Br(ze,Gr(32,T,Q)),Br(Ut,Gr(64,T,Q)))}function Dr(Q,ze,Ut){let gn=A,lo=P;A=ze,P=Ut,Bi(Q),A=gn,P=lo}function Do(Q,ze){let Ut=$;for(;Ut&&Q.parent.kind===256;)Ut.continueTarget=ze,Ut=Ut.next,Q=Q.parent;return ze}function na(Q){let ze=Do(Q,Ci()),Ut=ni(),gn=ni();Br(ze,T),T=ze,Jr(Q.expression,Ut,gn),T=xn(Ut),Dr(Q.statement,gn,ze),Br(ze,T),T=xn(gn)}function aa(Q){let ze=Ci(),Ut=Do(Q,ni()),gn=ni();Br(ze,T),T=ze,Dr(Q.statement,gn,Ut),Br(Ut,T),T=xn(Ut),Jr(Q.expression,ze,gn),T=xn(gn)}function Ai(Q){let ze=Do(Q,Ci()),Ut=ni(),gn=ni();Bi(Q.initializer),Br(ze,T),T=ze,Jr(Q.condition,Ut,gn),T=xn(Ut),Dr(Q.statement,gn,ze),Bi(Q.incrementor),Br(ze,T),T=xn(gn)}function Ha(Q){let ze=Do(Q,Ci()),Ut=ni();Bi(Q.expression),Br(ze,T),T=ze,Q.kind===250&&Bi(Q.awaitModifier),Br(Ut,T),Bi(Q.initializer),Q.initializer.kind!==261&&yi(Q.initializer),Dr(Q.statement,Ut,ze),Br(ze,T),T=xn(Ut)}function ht(Q){let ze=ni(),Ut=ni(),gn=ni();Jr(Q.expression,ze,Ut),T=xn(ze),Bi(Q.thenStatement),Br(gn,T),T=xn(Ut),Bi(Q.elseStatement),Br(gn,T),T=xn(gn)}function Jt(Q){Bi(Q.expression),Q.kind===253&&(te=!0,R&&Br(R,T)),T=Ee,ne=!0}function ye(Q){for(let ze=$;ze;ze=ze.next)if(ze.name===Q)return ze}function ct(Q,ze,Ut){let gn=Q.kind===252?ze:Ut;gn&&(Br(gn,T),T=Ee,ne=!0)}function ge(Q){if(Bi(Q.label),Q.label){let ze=ye(Q.label.escapedText);ze&&(ze.referenced=!0,ct(Q,ze.breakTarget,ze.continueTarget))}else ct(Q,A,P)}function He(Q){let ze=R,Ut=q,gn=ni(),lo=ni(),Is=ni();if(Q.finallyBlock&&(R=lo),Br(Is,T),q=Is,Bi(Q.tryBlock),Br(gn,T),Q.catchClause&&(T=xn(Is),Is=ni(),Br(Is,T),q=Is,Bi(Q.catchClause),Br(gn,T)),R=ze,q=Ut,Q.finallyBlock){let os=ni();os.antecedent=Fo(Fo(gn.antecedent,Is.antecedent),lo.antecedent),T=os,Bi(Q.finallyBlock),T.flags&1?T=Ee:(R&&lo.antecedent&&Br(R,Sn(os,lo.antecedent,T)),q&&Is.antecedent&&Br(q,Sn(os,Is.antecedent,T)),T=gn.antecedent?Sn(os,gn.antecedent,T):Ee)}else T=xn(gn)}function ut(Q){let ze=ni();Bi(Q.expression);let Ut=A,gn=G;A=ze,G=T,Bi(Q.caseBlock),Br(ze,T);let lo=re(Q.caseBlock.clauses,Is=>Is.kind===297);Q.possiblyExhaustive=!lo&&!ze.antecedent,lo||Br(ze,is(G,Q,0,0)),A=Ut,G=gn,T=xn(ze)}function bt(Q){let ze=Q.clauses,Ut=Q.parent.expression.kind===112||xt(Q.parent.expression),gn=Ee;for(let lo=0;loNu(Ut)||ll(Ut))}function Cs(Q){Q.flags&33554432&&!ai(Q)?Q.flags|=128:Q.flags&=-129}function Ss(Q){if(Cs(Q),d_(Q))if(Ar(Q,32)&&Pt(Q,S.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),KQ(Q))ks(Q);else{let ze;if(Q.name.kind===11){let{text:gn}=Q.name;ze=f4(gn),ze===void 0&&Pt(Q.name,S.Pattern_0_can_have_at_most_one_Asterisk_character,gn)}let Ut=Xi(Q,512,110735);e.patternAmbientModules=hi(e.patternAmbientModules,ze&&!fs(ze)?{pattern:ze,symbol:Ut}:void 0)}else{let ze=ks(Q);if(ze!==0){let{symbol:Ut}=Q;Ut.constEnumOnlyModule=!(Ut.flags&304)&&ze===2&&Ut.constEnumOnlyModule!==!1}}}function ks(Q){let ze=ab(Q),Ut=ze!==0;return Xi(Q,Ut?512:1024,Ut?110735:0),ze}function hc(Q){let ze=ke(131072,Oe(Q));De(ze,Q,131072);let Ut=ke(2048,"__type");De(Ut,Q,2048),Ut.members=ta(),Ut.members.set(ze.escapedName,ze)}function Zl(Q){return fo(Q,4096,"__object")}function Uu(Q){return fo(Q,4096,"__jsxAttributes")}function Fc(Q,ze,Ut){return Xi(Q,ze,Ut)}function fo(Q,ze,Ut){let gn=ke(ze,Ut);return ze&106508&&(gn.parent=u.symbol),De(gn,Q,ze),gn}function ka(Q,ze,Ut){switch(p.kind){case 267:Fe(Q,ze,Ut);break;case 307:if(Vp(u)){Fe(Q,ze,Ut);break}default:B.assertNode(p,Uy),p.locals||(p.locals=ta(),gi(p)),Ae(p.locals,void 0,Q,ze,Ut)}}function tf(){if(!g)return;let Q=u,ze=y,Ut=p,gn=a,lo=T;for(let Is of g){let os=Is.parent.parent;u=Mz(os)||e,p=Gg(os)||e,T=ev(2,void 0,void 0),a=Is,Bi(Is.typeExpression);let Ns=cs(Is);if((UR(Is)||!Is.fullName)&&Ns&&mR(Ns.parent)){let Qa=Wm(Ns.parent);if(Qa){Sp(e.symbol,Ns.parent,Qa,!!Ri(Ns,Il=>lr(Il)&&Il.name.escapedText==="prototype"),!1);let Ra=u;switch(qM(Ns.parent)){case 1:case 2:Vp(e)?u=e:u=void 0;break;case 4:u=Ns.parent.expression;break;case 3:u=Ns.parent.expression.name;break;case 5:u=gT(e,Ns.parent.expression)?e:lr(Ns.parent.expression)?Ns.parent.expression.name:Ns.parent.expression;break;case 0:return B.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}u&&Fe(Is,524288,788968),u=Ra}}else UR(Is)||!Is.fullName||Is.fullName.kind===80?(a=Is.parent,ka(Is,524288,788968)):Bi(Is.fullName)}u=Q,y=ze,p=Ut,a=gn,T=lo}function Ts(){if(k===void 0)return;let Q=u,ze=y,Ut=p,gn=a,lo=T;for(let Is of k){let os=Kw(Is),Ns=os?Mz(os):void 0,Qa=os?Gg(os):void 0;u=Ns||e,p=Qa||e,T=ev(2,void 0,void 0),a=Is,Bi(Is.importClause)}u=Q,y=ze,p=Ut,a=gn,T=lo}function e_(Q){if(!e.parseDiagnostics.length&&!(Q.flags&33554432)&&!(Q.flags&16777216)&&!uge(Q)){let ze=X2(Q);if(ze===void 0)return;ce&&ze>=119&&ze<=127?e.bindDiagnostics.push(Se(Q,id(Q),Hc(Q))):ze===135?dd(e)&&qz(Q)?e.bindDiagnostics.push(Se(Q,S.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Hc(Q))):Q.flags&65536&&e.bindDiagnostics.push(Se(Q,S.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Hc(Q))):ze===127&&Q.flags&16384&&e.bindDiagnostics.push(Se(Q,S.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Hc(Q)))}}function id(Q){return Zd(Q)?S.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?S.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:S.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Ko(Q){Q.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(Se(Q,S.constructor_is_a_reserved_word,Hc(Q))))}function nc(Q){ce&&X_(Q.left)&&Q1(Q.operatorToken.kind)&&pi(Q,Q.left)}function rc(Q){ce&&Q.variableDeclaration&&pi(Q,Q.variableDeclaration.name)}function Bo(Q){if(ce&&Q.expression.kind===80){let ze=rE(e,Q.expression);e.bindDiagnostics.push(kd(e,ze.start,ze.length,S.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Ua(Q){return et(Q)&&(Q.escapedText==="eval"||Q.escapedText==="arguments")}function pi(Q,ze){if(ze&&ze.kind===80){let Ut=ze;if(Ua(Ut)){let gn=rE(e,ze);e.bindDiagnostics.push(kd(e,gn.start,gn.length,Ac(Q),mr(Ut)))}}}function Ac(Q){return Zd(Q)?S.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?S.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:S.Invalid_use_of_0_in_strict_mode}function Wf(Q){ce&&!(Q.flags&33554432)&&pi(Q,Q.name)}function nd(Q){return Zd(Q)?S.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?S.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:S.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function bp(Q){if(r<2&&p.kind!==307&&p.kind!==267&&!MP(p)){let ze=rE(e,Q);e.bindDiagnostics.push(kd(e,ze.start,ze.length,nd(Q)))}}function Fl(Q){ce&&pi(Q,Q.operand)}function $l(Q){ce&&(Q.operator===46||Q.operator===47)&&pi(Q,Q.operand)}function H(Q){ce&&Pt(Q,S.with_statements_are_not_allowed_in_strict_mode)}function Ze(Q){ce&&Oa(t)>=2&&(she(Q.statement)||mu(Q.statement))&&Pt(Q.label,S.A_label_is_not_allowed_here)}function Pt(Q,ze,...Ut){let gn=V0(e,Q.pos);e.bindDiagnostics.push(kd(e,gn.start,gn.length,ze,...Ut))}function ri(Q,ze,Ut){un(Q,ze,ze,Ut)}function un(Q,ze,Ut,gn){Nr(Q,{pos:yx(ze,e),end:Ut.end},gn)}function Nr(Q,ze,Ut){let gn=kd(e,ze.pos,ze.end-ze.pos,Ut);Q?e.bindDiagnostics.push(gn):e.bindSuggestionDiagnostics=hi(e.bindSuggestionDiagnostics,{...gn,category:2})}function Bi(Q){if(!Q)return;ic(Q,a),jn&&(Q.tracingPath=e.path);let ze=ce;if(Ya(Q),Q.kind>165){let Ut=a;a=Q;let gn=Kte(Q);gn===0?gt(Q):Be(Q,gn),a=Ut}else{let Ut=a;Q.kind===1&&(a=Q),hr(Q),a=Ut}ce=ze}function hr(Q){if(dm(Q))if(Jn(Q))for(let ze of Q.jsDoc)Bi(ze);else for(let ze of Q.jsDoc)ic(ze,Q),tb(ze,!1)}function Pr(Q){if(!ce)for(let ze of Q){if(!H0(ze))return;if(oo(ze)){ce=!0;return}}}function oo(Q){let ze=Vw(e,Q.expression);return ze==='"use strict"'||ze==="'use strict'"}function Ya(Q){switch(Q.kind){case 80:if(Q.flags&4096){let os=Q.parent;for(;os&&!Vh(os);)os=os.parent;ka(os,524288,788968);break}case 110:return T&&(Mt(Q)||a.kind===304)&&(Q.flowNode=T),e_(Q);case 166:T&&Xz(Q)&&(Q.flowNode=T);break;case 236:case 108:Q.flowNode=T;break;case 81:return Ko(Q);case 211:case 212:let ze=Q;T&&nt(ze)&&(ze.flowNode=T),tge(ze)&&wu(ze),Jn(ze)&&e.commonJsModuleIndicator&&Vv(ze)&&!uU(p,"module")&&Ae(e.locals,void 0,ze.expression,134217729,111550);break;case 226:switch(Su(Q)){case 1:qe(Q);break;case 2:Qt(Q);break;case 3:gc(Q.left,Q);break;case 6:Nd(Q);break;case 4:Jo(Q);break;case 5:let os=Q.left.expression;if(Jn(Q)&&et(os)){let Ns=uU(p,os.escapedText);if($z(Ns?.valueDeclaration)){Jo(Q);break}}Zp(Q);break;case 0:break;default:B.fail("Unknown binary expression special property assignment kind")}return nc(Q);case 299:return rc(Q);case 220:return Bo(Q);case 225:return Fl(Q);case 224:return $l(Q);case 254:return H(Q);case 256:return Ze(Q);case 197:x=!0;return;case 182:break;case 168:return Tn(Q);case 169:return me(Q);case 260:return zm(Q);case 208:return Q.flowNode=T,zm(Q);case 172:case 171:return ml(Q);case 303:case 304:return di(Q,4,0);case 306:return di(Q,8,900095);case 179:case 180:case 181:return Xi(Q,131072,0);case 174:case 173:return di(Q,8192|(Q.questionToken?16777216:0),zh(Q)?0:103359);case 262:return wt(Q);case 176:return Xi(Q,16384,0);case 177:return di(Q,32768,46015);case 178:return di(Q,65536,78783);case 184:case 317:case 323:case 185:return hc(Q);case 187:case 322:case 200:return Au(Q);case 332:return Ji(Q);case 210:return Zl(Q);case 218:case 219:return oi(Q);case 213:switch(Su(Q)){case 7:return Ju(Q);case 8:return gh(Q);case 9:return Mc(Q);case 0:break;default:return B.fail("Unknown call expression assignment declaration kind")}Jn(Q)&&_b(Q);break;case 231:case 263:return ce=!0,j_(Q);case 264:return ka(Q,64,788872);case 265:return ka(Q,524288,788968);case 266:return i1(Q);case 267:return Ss(Q);case 292:return Uu(Q);case 291:return Fc(Q,4,0);case 271:case 274:case 276:case 281:return Xi(Q,2097152,2097152);case 270:return Lu(Q);case 273:return Ou(Q);case 278:return h_(Q);case 277:return hl(Q);case 307:return Pr(Q.statements),Pu();case 241:if(!MP(Q.parent))return;case 268:return Pr(Q.statements);case 341:if(Q.parent.kind===323)return me(Q);if(Q.parent.kind!==322)break;case 348:let lo=Q,Is=lo.isBracketed||lo.typeExpression&&lo.typeExpression.type.kind===316?16777220:4;return Xi(lo,Is,0);case 346:case 338:case 340:return(g||(g=[])).push(Q);case 339:return Bi(Q.typeExpression);case 351:return(k||(k=[])).push(Q)}}function ml(Q){let ze=K_(Q),Ut=ze?98304:4,gn=ze?13247:0;return di(Q,Ut|(Q.questionToken?16777216:0),gn)}function Au(Q){return fo(Q,2048,"__type")}function Pu(){if(Cs(e),dd(e))ku();else if(Wh(e)){ku();let Q=e.symbol;Ae(e.symbol.exports,e.symbol,e,4,-1),e.symbol=Q}}function ku(){fo(e,512,`"${A_(e.fileName)}"`)}function hl(Q){if(!u.symbol||!u.symbol.exports)fo(Q,111551,Oe(Q));else{let ze=iR(Q)?2097152:4,Ut=Ae(u.symbol.exports,u.symbol,Q,ze,-1);Q.isExportEquals&&GM(Ut,Q)}}function Lu(Q){Lt(Q.modifiers)&&e.bindDiagnostics.push(Se(Q,S.Modifiers_cannot_appear_here));let ze=mo(Q.parent)?dd(Q.parent)?Q.parent.isDeclarationFile?void 0:S.Global_module_exports_may_only_appear_in_declaration_files:S.Global_module_exports_may_only_appear_in_module_files:S.Global_module_exports_may_only_appear_at_top_level;ze?e.bindDiagnostics.push(Se(Q,ze)):(e.symbol.globalExports=e.symbol.globalExports||ta(),Ae(e.symbol.globalExports,e.symbol,Q,2097152,2097152))}function h_(Q){!u.symbol||!u.symbol.exports?fo(Q,8388608,Oe(Q)):Q.exportClause?Zy(Q.exportClause)&&(ic(Q.exportClause,Q),Ae(u.symbol.exports,u.symbol,Q.exportClause,2097152,2097152)):Ae(u.symbol.exports,u.symbol,Q,8388608,0)}function Ou(Q){Q.name&&Xi(Q,2097152,2097152)}function _d(Q){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=Q,e.externalModuleIndicator||ku()),!0)}function gh(Q){if(!_d(Q))return;let ze=Ad(Q.arguments[0],void 0,(Ut,gn)=>(gn&&De(gn,Ut,67110400),gn));ze&&Ae(ze.exports,ze,Q,1048580,0)}function qe(Q){if(!_d(Q))return;let ze=Ad(Q.left.expression,void 0,(Ut,gn)=>(gn&&De(gn,Ut,67110400),gn));if(ze){let gn=rV(Q.right)&&(aE(Q.left.expression)||Vv(Q.left.expression))?2097152:1048580;ic(Q.left,Q),Ae(ze.exports,ze,Q.left,gn,0)}}function Qt(Q){if(!_d(Q))return;let ze=UM(Q.right);if(UZ(ze)||u===e&&gT(e,ze))return;if(ba(ze)&&Et(ze.properties,jf)){re(ze.properties,hn);return}let Ut=iR(Q)?2097152:1049092,gn=Ae(e.symbol.exports,e.symbol,Q,Ut|67108864,0);GM(gn,Q)}function hn(Q){Ae(e.symbol.exports,e.symbol,Q,69206016,0)}function Jo(Q){if(B.assert(Jn(Q)),Yn(Q)&&lr(Q.left)&&xo(Q.left.name)||lr(Q)&&xo(Q.name))return;let Ut=f_(Q,!1,!1);switch(Ut.kind){case 262:case 218:let gn=Ut.symbol;if(Yn(Ut.parent)&&Ut.parent.operatorToken.kind===64){let os=Ut.parent.left;Gw(os)&&xx(os.expression)&&(gn=np(os.expression.expression,f))}gn&&gn.valueDeclaration&&(gn.members=gn.members||ta(),Y1(Q)?za(Q,gn,gn.members):Ae(gn.members,gn,Q,67108868,0),De(gn,gn.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let lo=Ut.parent,Is=ia(Ut)?lo.symbol.exports:lo.symbol.members;Y1(Q)?za(Q,lo.symbol,Is):Ae(Is,lo.symbol,Q,67108868,0,!0);break;case 307:if(Y1(Q))break;Ut.commonJsModuleIndicator?Ae(Ut.symbol.exports,Ut.symbol,Q,1048580,0):Xi(Q,1,111550);break;case 267:break;default:B.failBadSyntaxKind(Ut)}}function za(Q,ze,Ut){Ae(Ut,ze,Q,4,0,!0,!0),Ja(Q,ze)}function Ja(Q,ze){ze&&(ze.assignmentDeclarationMembers||(ze.assignmentDeclarationMembers=new Map)).set(ac(Q),Q)}function wu(Q){Q.expression.kind===110?Jo(Q):Gw(Q)&&Q.parent.parent.kind===307&&(xx(Q.expression)?gc(Q,Q.parent):Qh(Q))}function Nd(Q){ic(Q.left,Q),ic(Q.right,Q),yh(Q.left.expression,Q.left,!1,!0)}function Mc(Q){let ze=np(Q.arguments[0].expression);ze&&ze.valueDeclaration&&De(ze,ze.valueDeclaration,32),hm(Q,ze,!0)}function gc(Q,ze){let Ut=Q.expression,gn=Ut.expression;ic(gn,Ut),ic(Ut,Q),ic(Q,ze),yh(gn,Q,!0,!0)}function Ju(Q){let ze=np(Q.arguments[0]),Ut=Q.parent.parent.kind===307;ze=Sp(ze,Q.arguments[0],Ut,!1,!1),hm(Q,ze,!1)}function Zp(Q){var ze;let Ut=np(Q.left.expression,p)||np(Q.left.expression,u);if(!Jn(Q)&&!ige(Ut))return;let gn=c4(Q.left);if(!(et(gn)&&((ze=uU(u,gn.escapedText))==null?void 0:ze.flags)&2097152))if(ic(Q.left,Q),ic(Q.right,Q),et(Q.left.expression)&&u===e&&gT(e,Q.left.expression))qe(Q);else if(Y1(Q)){fo(Q,67108868,"__computed");let lo=Sp(Ut,Q.left.expression,Wm(Q.left),!1,!1);Ja(Q,lo)}else Qh(ea(Q.left,lE))}function Qh(Q){B.assert(!et(Q)),ic(Q.expression,Q),yh(Q.expression,Q,!1,!1)}function Sp(Q,ze,Ut,gn,lo){return Q?.flags&2097152||(Ut&&!gn&&(Q=Ad(ze,Q,(Ns,Qa,Ra)=>{if(Qa)return De(Qa,Ns,67110400),Qa;{let Il=Ra?Ra.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=ta());return Ae(Il,Ra,Ns,67110400,110735)}})),lo&&Q&&Q.valueDeclaration&&De(Q,Q.valueDeclaration,32)),Q}function hm(Q,ze,Ut){if(!ze||!t1(ze))return;let gn=Ut?ze.members||(ze.members=ta()):ze.exports||(ze.exports=ta()),lo=0,Is=0;Oc($I(Q))?(lo=8192,Is=103359):Gs(Q)&&cE(Q)&&(Lt(Q.arguments[2].properties,os=>{let Ns=cs(os);return!!Ns&&et(Ns)&&mr(Ns)==="set"})&&(lo|=65540,Is|=78783),Lt(Q.arguments[2].properties,os=>{let Ns=cs(os);return!!Ns&&et(Ns)&&mr(Ns)==="get"})&&(lo|=32772,Is|=46015)),lo===0&&(lo=4,Is=0),Ae(gn,ze,Q,lo|67108864,Is&-67108865)}function Wm(Q){return Yn(Q.parent)?Zh(Q.parent).parent.kind===307:Q.parent.parent.kind===307}function yh(Q,ze,Ut,gn){let lo=np(Q,p)||np(Q,u),Is=Wm(ze);lo=Sp(lo,ze.expression,Is,Ut,gn),hm(ze,lo,Ut)}function t1(Q){if(Q.flags&1072)return!0;let ze=Q.valueDeclaration;if(ze&&Gs(ze))return!!$I(ze);let Ut=ze?Ur(ze)?ze.initializer:Yn(ze)?ze.right:lr(ze)&&Yn(ze.parent)?ze.parent.right:void 0:void 0;if(Ut=Ut&&UM(Ut),Ut){let gn=xx(Ur(ze)?ze.name:Yn(ze)?ze.left:ze);return!!rk(Yn(Ut)&&(Ut.operatorToken.kind===57||Ut.operatorToken.kind===61)?Ut.right:Ut,gn)}return!1}function Zh(Q){for(;Yn(Q.parent);)Q=Q.parent;return Q.parent}function np(Q,ze=u){if(et(Q))return uU(ze,Q.escapedText);{let Ut=np(Q.expression);return Ut&&Ut.exports&&Ut.exports.get(X1(Q))}}function Ad(Q,ze,Ut){if(gT(e,Q))return e.symbol;if(et(Q))return Ut(Q,np(Q),ze);{let gn=Ad(Q.expression,ze,Ut),lo=JM(Q);return xo(lo)&&B.fail("unexpected PrivateIdentifier"),Ut(lo,gn&&gn.exports&&gn.exports.get(X1(Q)),gn)}}function _b(Q){!e.commonJsModuleIndicator&&Y_(Q,!1)&&_d(Q)}function j_(Q){if(Q.kind===263)ka(Q,32,899503);else{let lo=Q.name?Q.name.escapedText:"__class";fo(Q,32,lo),Q.name&&ue.add(Q.name.escapedText)}let{symbol:ze}=Q,Ut=ke(4194308,"prototype"),gn=ze.exports.get(Ut.escapedName);gn&&(Q.name&&ic(Q.name,Q),e.bindDiagnostics.push(Se(gn.declarations[0],S.Duplicate_identifier_0,fu(Ut)))),ze.exports.set(Ut.escapedName,Ut),Ut.parent=ze}function i1(Q){return ik(Q)?ka(Q,128,899967):ka(Q,256,899327)}function zm(Q){if(ce&&pi(Q,Q.name),!Rs(Q.name)){let ze=Q.kind===260?Q:Q.parent.parent;Jn(Q)&&$w(ze)&&!KC(Q)&&!(GC(Q)&32)?Xi(Q,2097152,2097152):qQ(Q)?ka(Q,2,111551):lk(Q)?Xi(Q,1,111551):Xi(Q,1,111550)}}function me(Q){if(!(Q.kind===341&&u.kind!==323)&&(ce&&!(Q.flags&33554432)&&pi(Q,Q.name),Rs(Q.name)?fo(Q,1,"__"+Q.parent.parameters.indexOf(Q)):Xi(Q,1,111551),Wp(Q,Q.parent))){let ze=Q.parent.parent;Ae(ze.symbol.members,ze.symbol,Q,4|(Q.questionToken?16777216:0),0)}}function wt(Q){!e.isDeclarationFile&&!(Q.flags&33554432)&&eO(Q)&&(_e|=4096),Wf(Q),ce?(bp(Q),ka(Q,16,110991)):Xi(Q,16,110991)}function oi(Q){!e.isDeclarationFile&&!(Q.flags&33554432)&&eO(Q)&&(_e|=4096),T&&(Q.flowNode=T),Wf(Q);let ze=Q.name?Q.name.escapedText:"__function";return fo(Q,16,ze)}function di(Q,ze,Ut){return!e.isDeclarationFile&&!(Q.flags&33554432)&&eO(Q)&&(_e|=4096),T&&Vz(Q)&&(Q.flowNode=T),Y1(Q)?fo(Q,ze,"__computed"):Xi(Q,ze,Ut)}function Zi(Q){let ze=Ri(Q,Ut=>Ut.parent&&cT(Ut.parent)&&Ut.parent.extendsType===Ut);return ze&&ze.parent}function Tn(Q){if(Gh(Q.parent)){let ze=nV(Q.parent);ze?(B.assertNode(ze,Uy),ze.locals??(ze.locals=ta()),Ae(ze.locals,void 0,Q,262144,526824)):Xi(Q,262144,526824)}else if(Q.parent.kind===195){let ze=Zi(Q.parent);ze?(B.assertNode(ze,Uy),ze.locals??(ze.locals=ta()),Ae(ze.locals,void 0,Q,262144,526824)):fo(Q,262144,Oe(Q))}else Xi(Q,262144,526824)}function ur(Q){let ze=ab(Q);return ze===1||ze===2&&Cx(t)}function qr(Q){if(!(T.flags&1))return!1;if(T===Ee&&(bM(Q)&&Q.kind!==242||Q.kind===263||QRe(Q,t)||Q.kind===267&&ur(Q))&&(T=ve,!t.allowUnreachableCode)){let Ut=e0e(t)&&!(Q.flags&33554432)&&(!mu(Q)||!!($1(Q.declarationList)&7)||Q.declarationList.declarations.some(gn=>!!gn.initializer));yDt(Q,t,(gn,lo)=>un(Ut,gn,lo,S.Unreachable_code_detected))}return!0}}function QRe(e,t){return e.kind===266&&(!ik(e)||Cx(t))}function yDt(e,t,r){if(_o(e)&&a(e)&&Ds(e.parent)){let{statements:f}=e.parent,p=pee(f,e);yw(p,a,(y,g)=>r(p[y],p[g-1]))}else r(e,e);function a(f){return!xu(f)&&!u(f)&&!(mu(f)&&!($1(f)&7)&&f.declarationList.declarations.some(p=>!p.initializer))}function u(f){switch(f.kind){case 264:case 265:return!0;case 267:return ab(f)!==1;case 266:return!QRe(f,t);default:return!1}}}function gT(e,t){let r=0,a=H7();for(a.enqueue(t);!a.isEmpty()&&r<100;){if(r++,t=a.dequeue(),aE(t)||Vv(t))return!0;if(et(t)){let u=uU(e,t.escapedText);if(u&&u.valueDeclaration&&Ur(u.valueDeclaration)&&u.valueDeclaration.initializer){let f=u.valueDeclaration.initializer;a.enqueue(f),Hd(f,!0)&&(a.enqueue(f.left),a.enqueue(f.right))}}}return!1}function Kte(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 322:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 307:return 37;case 177:case 178:case 174:if(Vz(e))return 173;case 176:case 262:case 173:case 179:case 323:case 317:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return vs(e.parent)||Yl(e.parent)?0:34}return 0}function uU(e,t){var r,a,u,f;let p=(a=(r=kr(e,Uy))==null?void 0:r.locals)==null?void 0:a.get(t);if(p)return p.exportSymbol??p;if(mo(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if($g(e))return(f=(u=e.symbol)==null?void 0:u.exports)==null?void 0:f.get(t)}function Jve(e,t,r,a,u,f,p,y,g,x){return k;function k(T=()=>!0){let A=[],P=[];return{walkType:Ce=>{try{return R(Ce),{visitedTypes:T2(A),visitedSymbols:T2(P)}}finally{Ls(A),Ls(P)}},walkSymbol:Ce=>{try{return ae(Ce),{visitedTypes:T2(A),visitedSymbols:T2(P)}}finally{Ls(A),Ls(P)}}};function R(Ce){if(!(!Ce||A[Ce.id]||(A[Ce.id]=Ce,ae(Ce.symbol)))){if(Ce.flags&524288){let ue=Ce,Ee=ue.objectFlags;Ee&4&&W(Ce),Ee&32&&te(Ce),Ee&3&&_e(Ce),Ee&24&&ce(ue)}Ce.flags&262144&&z(Ce),Ce.flags&3145728&&q(Ce),Ce.flags&4194304&&G(Ce),Ce.flags&8388608&&$(Ce)}}function W(Ce){R(Ce.target),re(x(Ce),R)}function z(Ce){R(y(Ce))}function q(Ce){re(Ce.types,R)}function G(Ce){R(Ce.type)}function $(Ce){R(Ce.objectType),R(Ce.indexType),R(Ce.constraint)}function te(Ce){R(Ce.typeParameter),R(Ce.constraintType),R(Ce.templateType),R(Ce.modifiersType)}function ne(Ce){let he=t(Ce);he&&R(he.type),re(Ce.typeParameters,R);for(let ue of Ce.parameters)ae(ue);R(e(Ce)),R(r(Ce))}function _e(Ce){ce(Ce),re(Ce.typeParameters,R),re(a(Ce),R),R(Ce.thisType)}function ce(Ce){let he=u(Ce);for(let ue of he.indexInfos)R(ue.keyType),R(ue.type);for(let ue of he.callSignatures)ne(ue);for(let ue of he.constructSignatures)ne(ue);for(let ue of he.properties)ae(ue)}function ae(Ce){if(!Ce)return!1;let he=Ca(Ce);if(P[he])return!1;if(P[he]=Ce,!T(Ce))return!0;let ue=f(Ce);return R(ue),Ce.exports&&Ce.exports.forEach(ae),re(Ce.declarations,Ee=>{if(Ee.type&&Ee.type.kind===186){let ve=Ee.type,be=p(g(ve.exprName));ae(be)}}),!1}}}var pS={};_(pS,{RelativePreference:()=>ZRe,countPathComponents:()=>_U,forEachFileNameOfModule:()=>o5e,getLocalModuleSpecifierBetweenFileNames:()=>kDt,getModuleSpecifier:()=>SDt,getModuleSpecifierPreferences:()=>f5,getModuleSpecifiers:()=>i5e,getModuleSpecifiersWithCacheInfo:()=>n5e,getNodeModulesPackageName:()=>xDt,tryGetJSExtensionForFile:()=>Yte,tryGetModuleSpecifiersFromCache:()=>CDt,tryGetRealFileNameForNonJsDeclarationFileName:()=>u5e,updateModuleSpecifier:()=>bDt});var vDt=B0(e=>{try{let t=e.indexOf("/");if(t!==0)return new RegExp(e);let r=e.lastIndexOf("/");if(t===r)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==r;)if(e[t-1]!=="\\")return new RegExp(e);let a=e.substring(r+1).replace(/[^iu]/g,"");return e=e.substring(1,r),new RegExp(e,a)}catch{return}}),ZRe=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(ZRe||{});function f5({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:r},a,u,f,p){let y=g();return{excludeRegexes:r,relativePreference:p!==void 0?Od(p)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:x=>{let k=Qte(f,a,u),T=x!==k?g(x):y,A=$f(u);if((x??k)===99&&3<=A&&A<=99)return R4(u,f.fileName)?[3,2]:[2];if($f(u)===1)return T===2?[2,1]:[1,2];let P=R4(u,f.fileName);switch(T){case 2:return P?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return P?[1,0,3,2]:[1,0,2];case 0:return P?[0,1,3,2]:[0,1,2];default:B.assertNever(T)}}};function g(x){if(p!==void 0){if($v(p))return 2;if(Wl(p,"/index"))return 1}return f0e(t,x??Qte(f,a,u),u,Gy(f)?f:void 0)}}function bDt(e,t,r,a,u,f,p={}){let y=e5e(e,t,r,a,u,f5({},u,e,t,f),{},p);if(y!==f)return y}function SDt(e,t,r,a,u,f={}){return e5e(e,t,r,a,u,f5({},u,e,t),{},f)}function xDt(e,t,r,a,u,f={}){let p=fU(t.fileName,a),y=s5e(p,r,a,u,e,f);return Le(y,g=>Gve(g,p,t,a,e,u,!0,f.overrideImportMode))}function e5e(e,t,r,a,u,f,p,y={}){let g=fU(r,u),x=s5e(g,a,u,p,e,y);return Le(x,k=>Gve(k,g,t,u,e,p,void 0,y.overrideImportMode))||qve(a,g,e,u,y.overrideImportMode||Qte(t,u,e),f)}function CDt(e,t,r,a,u={}){let f=t5e(e,t,r,a,u);return f[1]&&{kind:f[0],moduleSpecifiers:f[1],computedWithoutCache:!1}}function t5e(e,t,r,a,u={}){var f;let p=Nz(e);if(!p)return F;let y=(f=r.getModuleSpecifierCache)==null?void 0:f.call(r),g=y?.get(t.path,p.path,a,u);return[g?.kind,g?.moduleSpecifiers,p,g?.modulePaths,y]}function i5e(e,t,r,a,u,f,p={}){return n5e(e,t,r,a,u,f,p,!1).moduleSpecifiers}function n5e(e,t,r,a,u,f,p={},y){let g=!1,x=IDt(e,t);if(x)return{kind:"ambient",moduleSpecifiers:y&&dU(x,f.autoImportSpecifierExcludeRegexes)?F:[x],computedWithoutCache:g};let[k,T,A,P,R]=t5e(e,a,u,f,p);if(T)return{kind:k,moduleSpecifiers:T,computedWithoutCache:g};if(!A)return{kind:void 0,moduleSpecifiers:F,computedWithoutCache:g};g=!0,P||(P=a5e(fU(a.fileName,u),A.originalFileName,u,r,p));let W=wDt(P,r,a,u,f,p,y);return R?.set(a.path,A.path,f,p,W.kind,P,W.moduleSpecifiers),W}function kDt(e,t,r,a,u,f={}){let p=fU(e.fileName,a),y=f.overrideImportMode??e.impliedNodeFormat;return qve(t,p,r,a,y,f5(u,a,r,e))}function wDt(e,t,r,a,u,f={},p){let y=fU(r.fileName,a),g=f5(u,a,t,r),x=Gy(r)&&re(e,W=>re(a.getFileIncludeReasons().get(Vc(W.path,a.getCurrentDirectory(),y.getCanonicalFileName)),z=>{if(z.kind!==3||z.file!==r.path)return;let q=a.getModeForResolutionAtIndex(r,z.index),G=f.overrideImportMode??a.getDefaultResolutionModeForFile(r);if(q!==G&&q!==void 0&&G!==void 0)return;let $=I5(r,z.index).text;return g.relativePreference!==1||!Nm($)?$:void 0}));if(x)return{kind:void 0,moduleSpecifiers:[x],computedWithoutCache:!0};let k=Lt(e,W=>W.isInNodeModules),T,A,P,R;for(let W of e){let z=W.isInNodeModules?Gve(W,y,r,a,t,u,void 0,f.overrideImportMode):void 0;if(z&&!(p&&dU(z,g.excludeRegexes))&&(T=hi(T,z),W.isRedirect))return{kind:"node_modules",moduleSpecifiers:T,computedWithoutCache:!0};if(!z){let q=qve(W.path,y,t,a,f.overrideImportMode||r.impliedNodeFormat,g,W.isRedirect);if(!q||p&&dU(q,g.excludeRegexes))continue;W.isRedirect?P=hi(P,q):nQ(q)?Mx(q)?R=hi(R,q):A=hi(A,q):(p||!k||W.isInNodeModules)&&(R=hi(R,q))}}return A?.length?{kind:"paths",moduleSpecifiers:A,computedWithoutCache:!0}:P?.length?{kind:"redirect",moduleSpecifiers:P,computedWithoutCache:!0}:T?.length?{kind:"node_modules",moduleSpecifiers:T,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:R??F,computedWithoutCache:!0}}function dU(e,t){return Lt(t,r=>{var a;return!!((a=vDt(r))!=null&&a.test(e))})}function fU(e,t){e=ts(e,t.getCurrentDirectory());let r=df(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),a=Or(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:a,canonicalSourceDirectory:r(a)}}function qve(e,t,r,a,u,{getAllowedEndingsInPreferredOrder:f,relativePreference:p,excludeRegexes:y},g){let{baseUrl:x,paths:k,rootDirs:T}=r;if(g&&!k)return;let{sourceDirectory:A,canonicalSourceDirectory:P,getCanonicalFileName:R}=t,W=f(u),z=T&&PDt(T,e,A,R,W,r)||_5(G2(Sg(A,e,R)),W,r);if(!x&&!k&&!LV(r)||p===0)return g?void 0:z;let q=ts(pV(r,a)||x,a.getCurrentDirectory()),G=d5e(e,q,R);if(!G)return g?void 0:z;let $=g?void 0:ADt(e,A,r,a,u,ODt(W)),te=g||$===void 0?k&&c5e(G,k,W,a,r):void 0;if(g)return te;let ne=$??(te===void 0&&x!==void 0?_5(G,W,r):te);if(!ne)return z;let _e=dU(z,y),ce=dU(ne,y);if(!_e&&ce)return z;if(_e&&!ce||p===1&&!Nm(ne))return ne;if(p===3&&!Nm(ne)){let ae=r.configFilePath?Vc(Or(r.configFilePath),a.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(a.getCurrentDirectory()),Ce=Vc(e,ae,R),he=Ro(P,ae),ue=Ro(Ce,ae);if(he&&!ue||!he&&ue)return ne;let Ee=$ve(a,Or(Ce)),ve=$ve(a,A),be=!eN(a);return TDt(Ee,ve,be)?z:ne}return f5e(ne)||_U(z)<_U(ne)?z:ne}function TDt(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:J1(e,t,r)===0}function _U(e){let t=0;for(let r=Ro(e,"./")?2:0;re.fileExists(xr(r,"package.json"))?r:void 0)}function o5e(e,t,r,a,u){var f;let p=rS(r),y=r.getCurrentDirectory(),g=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,x=Vc(t,y,p),k=r.redirectTargetsMap.get(x)||F,A=[...g?[g]:F,t,...k].map(q=>ts(q,y)),P=!Et(A,xO);if(!a){let q=re(A,G=>!(P&&xO(G))&&u(G,g===G));if(q)return q}let R=(f=r.getSymlinkCache)==null?void 0:f.call(r).getSymlinkedDirectoriesByRealpath(),W=ts(t,y);return R&&Rh(Or(W),q=>{let G=R.get(xd(Vc(q,y,p)));if(G)return sQ(e,q,p)?!1:re(A,$=>{if(!sQ($,q,p))return;let te=Sg(q,$,p);for(let ne of G){let _e=qC(ne,te),ce=u(_e,$===g);if(P=!0,ce)return ce}})})||(a?re(A,q=>P&&xO(q)?void 0:u(q,q===g)):void 0)}function s5e(e,t,r,a,u,f={}){var p;let y=Vc(e.importingSourceFileName,r.getCurrentDirectory(),rS(r)),g=Vc(t,r.getCurrentDirectory(),rS(r)),x=(p=r.getModuleSpecifierCache)==null?void 0:p.call(r);if(x){let T=x.get(y,g,a,f);if(T?.modulePaths)return T.modulePaths}let k=a5e(e,t,r,u,f);return x&&x.setModulePaths(y,g,a,f,k),k}var EDt=["dependencies","peerDependencies","optionalDependencies"];function DDt(e){let t;for(let r of EDt){let a=e[r];a&&typeof a=="object"&&(t=Fo(t,mg(a)))}return t}function a5e(e,t,r,a,u){var f,p;let y=(f=r.getModuleResolutionCache)==null?void 0:f.call(r),g=(p=r.getSymlinkCache)==null?void 0:p.call(r);if(y&&g&&r.readFile&&!Mx(e.importingSourceFileName)){B.type(r);let A=e8(y.getPackageJsonInfoCache(),r,{}),P=t8(Or(e.importingSourceFileName),A);if(P){let R=DDt(P.contents.packageJsonContent);for(let W of R||F){let z=jN(W,xr(P.packageDirectory,"package.json"),a,r,y,void 0,u.overrideImportMode);g.setSymlinksFromResolution(z.resolvedModule)}}}let x=new Map,k=!1;o5e(e.importingSourceFileName,t,r,!0,(A,P)=>{let R=Mx(A);x.set(A,{path:e.getCanonicalFileName(A),isRedirect:P,isInNodeModules:R}),k=k||R});let T=[];for(let A=e.canonicalSourceDirectory;x.size!==0;){let P=xd(A),R;x.forEach(({path:z,isRedirect:q,isInNodeModules:G},$)=>{Ro(z,P)&&((R||(R=[])).push({path:$,isRedirect:q,isInNodeModules:G}),x.delete($))}),R&&(R.length>1&&R.sort(r5e),T.push(...R));let W=Or(A);if(W===A)break;A=W}if(x.size){let A=as(x.entries(),([P,{isRedirect:R,isInNodeModules:W}])=>({path:P,isRedirect:R,isInNodeModules:W}));A.length>1&&A.sort(r5e),T.push(...A)}return T}function IDt(e,t){var r;let a=(r=e.declarations)==null?void 0:r.find(p=>GQ(p)&&(!Uw(p)||!Od(Hh(p.name))));if(a)return a.name.text;let f=ro(e.declarations,p=>{var y,g,x,k;if(!Hu(p))return;let T=W(p);if(!((y=T?.parent)!=null&&y.parent&&ty(T.parent)&&d_(T.parent.parent)&&mo(T.parent.parent.parent)))return;let A=(k=(x=(g=T.parent.parent.symbol.exports)==null?void 0:g.get("export="))==null?void 0:x.valueDeclaration)==null?void 0:k.expression;if(!A)return;let P=t.getSymbolAtLocation(A);if(!P)return;if((P?.flags&2097152?t.getAliasedSymbol(P):P)===p.symbol)return T.parent.parent;function W(z){for(;z.flags&8;)z=z.parent;return z}})[0];if(f)return f.name.text}function c5e(e,t,r,a,u){for(let p in t)for(let y of t[p]){let g=$s(y),x=g.indexOf("*"),k=r.map(T=>({ending:T,value:_5(e,[T],u)}));if(Gv(g)&&k.push({ending:void 0,value:e}),x!==-1){let T=g.substring(0,x),A=g.substring(x+1);for(let{ending:P,value:R}of k)if(R.length>=T.length+A.length&&Ro(R,T)&&Wl(R,A)&&f({ending:P,value:R})){let W=R.substring(T.length,R.length-A.length);if(!Nm(W))return _E(p,W)}}else if(Lt(k,T=>T.ending!==0&&g===T.value)||Lt(k,T=>T.ending===0&&g===T.value&&f(T)))return p}function f({ending:p,value:y}){return p!==0||y===_5(e,[p],u,a)}}function pU(e,t,r,a,u,f,p,y,g,x){if(typeof f=="string"){let k=!eN(t),T=()=>t.getCommonSourceDirectory(),A=g&&Tie(r,e,k,T),P=g&&wie(r,e,k,T),R=ts(xr(a,f),void 0),W=dN(r)?A_(r)+Yte(r,e):void 0,z=x&&u0e(r);switch(y){case 0:if(W&&J1(W,R,k)===0||J1(r,R,k)===0||A&&J1(A,R,k)===0||P&&J1(P,R,k)===0)return{moduleFileToTry:u};break;case 1:if(z&&nh(r,R,k)){let te=Sg(R,r,!1);return{moduleFileToTry:ts(xr(xr(u,f),te),void 0)}}if(W&&nh(R,W,k)){let te=Sg(R,W,!1);return{moduleFileToTry:ts(xr(xr(u,f),te),void 0)}}if(!z&&nh(R,r,k)){let te=Sg(R,r,!1);return{moduleFileToTry:ts(xr(xr(u,f),te),void 0)}}if(A&&nh(R,A,k)){let te=Sg(R,A,!1);return{moduleFileToTry:xr(u,te)}}if(P&&nh(R,P,k)){let te=QW(Sg(R,P,!1),Xte(P,e));return{moduleFileToTry:xr(u,te)}}break;case 2:let q=R.indexOf("*"),G=R.slice(0,q),$=R.slice(q+1);if(z&&Ro(r,G,k)&&Wl(r,$,k)){let te=r.slice(G.length,r.length-$.length);return{moduleFileToTry:_E(u,te)}}if(W&&Ro(W,G,k)&&Wl(W,$,k)){let te=W.slice(G.length,W.length-$.length);return{moduleFileToTry:_E(u,te)}}if(!z&&Ro(r,G,k)&&Wl(r,$,k)){let te=r.slice(G.length,r.length-$.length);return{moduleFileToTry:_E(u,te)}}if(A&&Ro(A,G,k)&&Wl(A,$,k)){let te=A.slice(G.length,A.length-$.length);return{moduleFileToTry:_E(u,te)}}if(P&&Ro(P,G,k)&&Wl(P,$,k)){let te=P.slice(G.length,P.length-$.length),ne=_E(u,te),_e=Yte(P,e);return _e?{moduleFileToTry:QW(ne,_e)}:void 0}break}}else{if(Array.isArray(f))return re(f,k=>pU(e,t,r,a,u,k,p,y,g,x));if(typeof f=="object"&&f!==null){for(let k of mg(f))if(k==="default"||p.indexOf(k)>=0||u5(p,k)){let T=f[k],A=pU(e,t,r,a,u,T,p,y,g,x);if(A)return A}}}}function NDt(e,t,r,a,u,f,p){return typeof f=="object"&&f!==null&&!Array.isArray(f)&&cU(f)?re(mg(f),y=>{let g=ts(xr(u,y),void 0),x=Wl(y,"/")?1:y.includes("*")?2:0;return pU(e,t,r,a,g,f[y],p,x,!1,!1)}):pU(e,t,r,a,u,f,p,0,!1,!1)}function ADt(e,t,r,a,u,f){var p,y,g;if(!a.readFile||!LV(r))return;let x=$ve(a,t);if(!x)return;let k=xr(x,"package.json"),T=(y=(p=a.getPackageJsonInfoCache)==null?void 0:p.call(a))==null?void 0:y.getPackageJsonInfo(k);if(Dve(T)||!a.fileExists(k))return;let A=T?.contents.packageJsonContent||kV(a.readFile(k)),P=A?.imports;if(!P)return;let R=Fx(r,u);return(g=re(mg(P),W=>{if(!Ro(W,"#")||W==="#"||Ro(W,"#/"))return;let z=Wl(W,"/")?1:W.includes("*")?2:0;return pU(r,a,e,x,W,P[W],R,z,!0,f)}))==null?void 0:g.moduleFileToTry}function PDt(e,t,r,a,u,f){let p=l5e(t,e,a);if(p===void 0)return;let y=l5e(r,e,a),g=vo(y,k=>_i(p,T=>G2(Sg(k,T,a)))),x=kY(g,TR);if(x)return _5(x,u,f)}function Gve({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:a},u,f,p,y,g,x){if(!f.fileExists||!f.readFile)return;let k=tH(e);if(!k)return;let A=f5(y,f,p,u).getAllowedEndingsInPreferredOrder(),P=e,R=!1;if(!g){let te=k.packageRootIndex,ne;for(;;){let{moduleFileToTry:_e,packageRootPath:ce,blockedByExports:ae,verbatimFromExports:Ce}=$(te);if($f(p)!==1){if(ae)return;if(Ce)return _e}if(ce){P=ce,R=!0;break}if(ne||(ne=_e),te=e.indexOf(wl,te+1),te===-1){P=_5(ne,A,p,f);break}}}if(t&&!R)return;let W=f.getGlobalTypingsCacheLocation&&f.getGlobalTypingsCacheLocation(),z=r(P.substring(0,k.topLevelNodeModulesIndex));if(!(Ro(a,z)||W&&Ro(r(W),z)))return;let q=P.substring(k.topLevelPackageNameIndex+1),G=i8(q);return $f(p)===1&&G===q?void 0:G;function $(te){var ne,_e;let ce=e.substring(0,te),ae=xr(ce,"package.json"),Ce=e,he=!1,ue=(_e=(ne=f.getPackageJsonInfoCache)==null?void 0:ne.call(f))==null?void 0:_e.getPackageJsonInfo(ae);if(nU(ue)||ue===void 0&&f.fileExists(ae)){let Ee=ue?.contents.packageJsonContent||kV(f.readFile(ae)),ve=x||Qte(u,f,p);if(SR(p)){let Re=ce.substring(k.topLevelPackageNameIndex+1),ie=i8(Re),ke=Fx(p,ve),De=Ee?.exports?NDt(p,f,e,ce,ie,Ee.exports,ke):void 0;if(De)return{...De,verbatimFromExports:!0};if(Ee?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let be=Ee?.typesVersions?tU(Ee.typesVersions):void 0;if(be){let Re=e.slice(ce.length+1),ie=c5e(Re,be.paths,A,f,p);ie===void 0?he=!0:Ce=xr(ce,ie)}let Se=Ee?.typings||Ee?.types||Ee?.main||"index.js";if(fs(Se)&&!(he&&_ee(KV(be.paths),Se))){let Re=Vc(Se,ce,r),ie=r(Ce);if(A_(Re)===A_(ie))return{packageRootPath:ce,moduleFileToTry:Ce};if(Ee?.type!=="module"&&!vu(ie,GV)&&Ro(ie,Re)&&Or(ie)===$C(Re)&&A_(Xu(ie))==="index")return{packageRootPath:ce,moduleFileToTry:Ce}}}else{let Ee=r(Ce.substring(k.packageRootIndex+1));if(Ee==="index.d.ts"||Ee==="index.js"||Ee==="index.ts"||Ee==="index.tsx")return{moduleFileToTry:Ce,packageRootPath:ce}}return{moduleFileToTry:Ce}}}function LDt(e,t){if(!e.fileExists)return;let r=tc(mO({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let a of r){let u=t+a;if(e.fileExists(u))return u}}function l5e(e,t,r){return ro(t,a=>{let u=d5e(e,a,r);return u!==void 0&&f5e(u)?void 0:u})}function _5(e,t,r,a){if(vu(e,[".json",".mjs",".cjs"]))return e;let u=A_(e);if(e===u)return e;let f=t.indexOf(2),p=t.indexOf(3);if(vu(e,[".mts",".cts"])&&p!==-1&&px===0||x===1);return g!==-1&&g-1&&t(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))(eie||{}),Xve=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),tie=(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.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(tie||{}),iie=(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))(iie||{}),FDt=zW(y5e,RDt),nie=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),g5e=class{};function MDt(){this.flags=0}function ac(e){return e.id||(e.id=p5e,p5e++),e.id}function Ca(e){return e.id||(e.id=_5e,_5e++),e.id}function rie(e,t){let r=ab(e);return r===1||t&&r===2}function Yve(e){var t=[],r=n=>{t.push(n)},a,u,f=gf.getSymbolConstructor(),p=gf.getTypeConstructor(),y=gf.getSignatureConstructor(),g=0,x=0,k=0,T=0,A=0,P=0,R,W,z=!1,q=ta(),G=[1],$=e.getCompilerOptions(),te=Oa($),ne=p_($),_e=!!$.experimentalDecorators,ce=xR($),ae=ree($),Ce=uN($),he=Rf($,"strictNullChecks"),ue=Rf($,"strictFunctionTypes"),Ee=Rf($,"strictBindCallApply"),ve=Rf($,"strictPropertyInitialization"),be=Rf($,"strictBuiltinIteratorReturn"),Se=Rf($,"noImplicitAny"),Re=Rf($,"noImplicitThis"),ie=Rf($,"useUnknownInCatchVariables"),ke=$.exactOptionalPropertyTypes,De=!!$.noUncheckedSideEffectImports,Oe=uqt(),we=qKt(),Ae=Jq(),Fe=eSe($,{isEntityNameVisible:$9,isExpandoFunctionDeclaration:wit,getAllAccessorDeclarations:bG,requiresAddingImplicitUndefined:lle,isUndefinedIdentifierExpression(n){return B.assert(Kg(n)),ug(n)===Ge},isDefinitelyReferenceToGlobalSymbolObject:Md}),Tt=N0e({evaluateElementAccessExpression:FGt,evaluateEntityNameExpression:oit}),Be=ta(),Ge=Aa(4,"undefined");Ge.declarations=[];var Ke=Aa(1536,"globalThis",8);Ke.exports=Be,Ke.declarations=[],Be.set(Ke.escapedName,Ke);var Ue=Aa(4,"arguments"),gt=Aa(4,"require"),xt=$.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",nt=!$.verbatimModuleSyntax,At,ci,Fi=0,bn,an=0,ni=wee({compilerOptions:$,requireSymbol:gt,argumentsSymbol:Ue,globals:Be,getSymbolOfDeclaration:sr,error:ot,getRequiresScopeChangeCache:HE,setRequiresScopeChangeCache:Kx,lookup:qd,onPropertyWithInvalidInitializer:UE,onFailedToResolveSymbol:sl,onSuccessfullyResolvedSymbol:Sb}),Ci=wee({compilerOptions:$,requireSymbol:gt,argumentsSymbol:Ue,globals:Be,getSymbolOfDeclaration:sr,error:ot,getRequiresScopeChangeCache:HE,setRequiresScopeChangeCache:Kx,lookup:AUt});let Sn={getNodeCount:()=>Of(e.getSourceFiles(),(n,d)=>n+d.nodeCount,0),getIdentifierCount:()=>Of(e.getSourceFiles(),(n,d)=>n+d.identifierCount,0),getSymbolCount:()=>Of(e.getSourceFiles(),(n,d)=>n+d.symbolCount,x),getTypeCount:()=>g,getInstantiationCount:()=>k,getRelationCacheSizes:()=>({assignable:em.size,identity:Cp.size,subtype:l1.size,strictSubtype:Hm.size}),isUndefinedSymbol:n=>n===Ge,isArgumentsSymbol:n=>n===Ue,isUnknownSymbol:n=>n===ct,getMergedSymbol:cc,symbolIsValue:nm,getDiagnostics:_it,getGlobalDiagnostics:oKt,getRecursionIdentity:Xae,getUnmatchedProperties:mDe,getTypeOfSymbolAtLocation:(n,d)=>{let m=_s(d);return m?$Vt(n,m):_t},getTypeOfSymbol:Wn,getSymbolsOfParameterPropertyDeclaration:(n,d)=>{let m=_s(n,To);return m===void 0?B.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(B.assert(Wp(m,m.parent)),bb(m,Hl(d)))},getDeclaredTypeOfSymbol:Qc,getPropertiesOfType:yc,getPropertyOfType:(n,d)=>da(n,Hl(d)),getPrivateIdentifierPropertyOfType:(n,d,m)=>{let v=_s(m);if(!v)return;let C=Hl(d),E=G$(C,v);return E?Nce(n,E):void 0},getTypeOfPropertyOfType:(n,d)=>Mu(n,Hl(d)),getIndexInfoOfType:(n,d)=>y1(n,d===0?Qe:ei),getIndexInfosOfType:r_,getIndexInfosOfIndexSymbol:lEe,getSignaturesOfType:Bs,getIndexTypeOfType:(n,d)=>Zk(n,d===0?Qe:ei),getIndexType:n=>Sy(n),getBaseTypes:dl,getBaseTypeOfLiteralType:Ab,getWidenedType:Ap,getWidenedLiteralType:ow,getTypeFromTypeNode:n=>{let d=_s(n,io);return d?yo(d):_t},getParameterType:x0,getParameterIdentifierInfoAtPosition:wJt,getPromisedTypeOfPromise:MB,getAwaitedType:n=>WA(n),getReturnTypeOfSignature:vc,isNullableType:$$,getNullableType:I$,getNonNullableType:Pb,getNonOptionalType:ece,getTypeArguments:fl,typeToTypeNode:Ae.typeToTypeNode,typePredicateToTypePredicateNode:Ae.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:Ae.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Ae.signatureToSignatureDeclaration,symbolToEntityName:Ae.symbolToEntityName,symbolToExpression:Ae.symbolToExpression,symbolToNode:Ae.symbolToNode,symbolToTypeParameterDeclarations:Ae.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Ae.symbolToParameterDeclaration,typeParameterToDeclaration:Ae.typeParameterToDeclaration,getSymbolsInScope:(n,d)=>{let m=_s(n);return m?sKt(m,d):[]},getSymbolAtLocation:n=>{let d=_s(n);return d?ug(d,!0):void 0},getIndexInfosAtLocation:n=>{let d=_s(n);return d?pKt(d):void 0},getShorthandAssignmentValueSymbol:n=>{let d=_s(n);return d?mKt(d):void 0},getExportSpecifierLocalTargetSymbol:n=>{let d=_s(n,Gf);return d?hKt(d):void 0},getExportSymbolOfSymbol(n){return cc(n.exportSymbol||n)},getTypeAtLocation:n=>{let d=_s(n);return d?VA(d):_t},getTypeOfAssignmentPattern:n=>{let d=_s(n,R3);return d&&sle(d)||_t},getPropertySymbolOfDestructuringAssignment:n=>{let d=_s(n,et);return d?gKt(d):void 0},signatureToString:(n,d,m,v)=>Xk(n,_s(d),m,v),typeToString:(n,d,m)=>Dn(n,_s(d),m),symbolToString:(n,d,m,v)=>Lo(n,_s(d),m,v),typePredicateToString:(n,d,m)=>hy(n,_s(d),m),writeSignature:(n,d,m,v,C)=>Xk(n,_s(d),m,v,C),writeType:(n,d,m,v)=>Dn(n,_s(d),m,v),writeSymbol:(n,d,m,v,C)=>Lo(n,_s(d),m,v,C),writeTypePredicate:(n,d,m,v)=>hy(n,_s(d),m,v),getAugmentedPropertiesOfType:oNe,getRootSymbols:bit,getSymbolOfExpando:Mce,getContextualType:(n,d)=>{let m=_s(n,Mt);if(m)return d&4?Gr(m,()=>H_(m,d)):H_(m,d)},getContextualTypeForObjectLiteralElement:n=>{let d=_s(n,G1);return d?VDe(d,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,d)=>{let m=_s(n,zw);return m&&zDe(m,d)},getContextualTypeForJsxAttribute:n=>{let d=_s(n,vz);return d&&RZe(d,void 0)},isContextSensitive:Xm,getTypeOfPropertyOfContextualType:aw,getFullyQualifiedName:MS,getResolvedSignature:(n,d,m)=>is(n,d,m,0),getCandidateSignaturesForStringLiteralCompletions:nn,getResolvedSignatureForSignatureHelp:(n,d,m)=>Br(n,()=>is(n,d,m,16)),getExpandedParameters:wXe,hasEffectiveRestParameter:hv,containsArgumentsReference:sEe,getConstantValue:n=>{let d=_s(n,Tit);return d?aNe(d):void 0},isValidPropertyAccess:(n,d)=>{let m=_s(n,Zme);return!!m&&OUt(m,Hl(d))},isValidPropertyAccessForCompletions:(n,d,m)=>{let v=_s(n,lr);return!!v&&pet(v,d,m)},getSignatureFromDeclaration:n=>{let d=_s(n,vs);return d?Km(d):void 0},isImplementationOfOverload:n=>{let d=_s(n,vs);return d?kit(d):void 0},getImmediateAliasedSymbol:kce,getAliasedSymbol:xf,getEmitResolver:gb,requiresAddingImplicitUndefined:lle,getExportsOfModule:tC,getExportsAndPropertiesOfModule:$8,forEachExportAndPropertyOfModule:zT,getSymbolWalker:Jve(ljt,wh,vc,dl,y0,Wn,s_,V_,hp,fl),getAmbientModules:OXt,getJsxIntrinsicTagNamesAt:pUt,isOptionalParameter:n=>{let d=_s(n,To);return d?s$(d):!1},tryGetMemberInModuleExports:(n,d)=>rD(Hl(n),d),tryGetMemberInModuleExportsAndProperties:(n,d)=>yA(Hl(n),d),tryFindAmbientModule:n=>JXe(n,!0),getApparentType:S_,getUnionType:Fr,isTypeAssignableTo:fa,createAnonymousType:Io,createSignature:g1,createSymbol:Aa,createIndexInfo:_v,getAnyType:()=>je,getStringType:()=>Qe,getStringLiteralType:sp,getNumberType:()=>ei,getNumberLiteralType:Pg,getBigIntType:()=>In,getBigIntLiteralType:h$,createPromiseType:oG,createArrayType:Hf,getElementTypeOfArrayType:D$,getBooleanType:()=>ti,getFalseType:n=>n?Ji:_n,getTrueType:n=>n?Dt:Nt,getVoidType:()=>wi,getUndefinedType:()=>$e,getNullType:()=>Wt,getESSymbolType:()=>li,getNeverType:()=>Si,getOptionalType:()=>fe,getPromiseType:()=>u$(!1),getPromiseLikeType:()=>mYe(!1),getAnyAsyncIterableType:()=>{let n=d$(!1);if(n!==Bo)return Eb(n,[je,je,je])},isSymbolAccessible:m0,isArrayType:Eh,isTupleType:Ba,isArrayLikeType:US,isEmptyAnonymousObjectType:mv,isTypeInvalidDueToUnionDiscriminant:UBt,getExactOptionalProperties:xzt,getAllPossiblePropertiesOfTypes:JBt,getSuggestedSymbolForNonexistentProperty:rIe,getSuggestedSymbolForNonexistentJSXAttribute:uet,getSuggestedSymbolForNonexistentSymbol:(n,d,m)=>fet(n,Hl(d),m),getSuggestedSymbolForNonexistentModule:oIe,getSuggestedSymbolForNonexistentClassMember:cet,getBaseConstraintOfType:Cf,getDefaultFromTypeParameter:n=>n&&n.flags&262144?YT(n):void 0,resolveName(n,d,m,v){return ni(d,Hl(n),m,void 0,!1,v)},getJsxNamespace:n=>So(rv(n)),getJsxFragmentFactory:n=>{let d=lNe(n);return d&&So(hp(d).escapedText)},getAccessibleSymbolChain:BS,getTypePredicateOfSignature:wh,resolveExternalModuleName:n=>{let d=_s(n,Mt);return d&&rp(d,d,!0)},resolveExternalModuleSymbol:Ep,tryGetThisTypeAt:(n,d,m)=>{let v=_s(n);return v&&RDe(v,d,m)},getTypeArgumentConstraint:n=>{let d=_s(n,io);return d&&Hqt(d)},getSuggestionDiagnostics:(n,d)=>{let m=_s(n,mo)||B.fail("Could not determine parsed source file.");if(_4(m,$,e))return F;let v;try{return a=d,iNe(m),B.assert(!!(rr(m).flags&1)),v=Fn(v,OT.getDiagnostics(m.fileName)),Att(fit(m),(C,E,L)=>{!VI(C)&&!dit(E,!!(C.flags&33554432))&&(v||(v=[])).push({...L,category:2})}),v||F}finally{a=void 0}},runWithCancellationToken:(n,d)=>{try{return a=n,d(Sn)}finally{a=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Ag,isDeclarationVisible:Ng,isPropertyAccessible:aIe,getTypeOnlyAliasDeclaration:my,getMemberOverrideModifierStatus:kGt,isTypeParameterPossiblyReferenced:v$,typeHasCallOrConstructSignatures:ale,getSymbolFlags:n_};function nn(n,d){let m=new Set,v=[];Gr(d,()=>is(n,v,void 0,0));for(let C of v)m.add(C);v.length=0,Br(d,()=>is(n,v,void 0,0));for(let C of v)m.add(C);return as(m)}function Br(n,d){if(n=Ri(n,AQ),n){let m=[],v=[];for(;n;){let E=rr(n);if(m.push([E,E.resolvedSignature]),E.resolvedSignature=void 0,Ex(n)){let L=Po(sr(n)),J=L.type;v.push([L,J]),L.type=void 0}n=Ri(n.parent,AQ)}let C=d();for(let[E,L]of m)E.resolvedSignature=L;for(let[E,L]of v)E.type=L;return C}return d()}function Gr(n,d){let m=Ri(n,zw);if(m){let C=n;do rr(C).skipDirectInference=!0,C=C.parent;while(C&&C!==m)}z=!0;let v=Br(n,d);if(z=!1,m){let C=n;do rr(C).skipDirectInference=void 0,C=C.parent;while(C&&C!==m)}return v}function is(n,d,m,v){let C=_s(n,zw);At=m;let E=C?K6(C,d,v):void 0;return At=void 0,E}var Ao=new Map,Rr=new Map,xn=new Map,Eo=new Map,it=new Map,si=new Map,dn=new Map,Qn=new Map,Jr=new Map,Dr=new Map,Do=new Map,na=new Map,aa=new Map,Ai=new Map,Ha=new Map,ht=[],Jt=new Map,ye=new Set,ct=Aa(4,"unknown"),ge=Aa(0,"__resolving__"),He=new Map,ut=new Map,bt=new Set,je=pd(1,"any"),It=pd(1,"any",262144,"auto"),mt=pd(1,"any",void 0,"wildcard"),$t=pd(1,"any",void 0,"blocked string"),_t=pd(1,"error"),yi=pd(1,"unresolved"),Ii=pd(1,"any",65536,"non-inferrable"),nr=pd(1,"intrinsic"),Y=pd(2,"unknown"),$e=pd(32768,"undefined"),Bt=he?$e:pd(32768,"undefined",65536,"widening"),se=pd(32768,"undefined",void 0,"missing"),rt=ke?se:$e,fe=pd(32768,"undefined",void 0,"optional"),Wt=pd(65536,"null"),tt=he?Wt:pd(65536,"null",65536,"widening"),Qe=pd(4,"string"),ei=pd(8,"number"),In=pd(64,"bigint"),Ji=pd(512,"false",void 0,"fresh"),_n=pd(512,"false"),Dt=pd(512,"true",void 0,"fresh"),Nt=pd(512,"true");Dt.regularType=Nt,Dt.freshType=Dt,Nt.regularType=Nt,Nt.freshType=Dt,Ji.regularType=_n,Ji.freshType=Ji,_n.regularType=_n,_n.freshType=Ji;var ti=Fr([_n,Nt]),li=pd(4096,"symbol"),wi=pd(16384,"void"),Si=pd(131072,"never"),Rn=pd(131072,"never",262144,"silent"),gi=pd(131072,"never",void 0,"implicit"),Xi=pd(131072,"never",void 0,"unreachable"),Li=pd(67108864,"object"),Vi=Fr([Qe,ei]),ai=Fr([Qe,ei,li]),Cs=Fr([ei,In]),Ss=Fr([Qe,ei,ti,In,Wt,$e]),ks=mD(["",""],[ei]),hc=y$(n=>n.flags&262144?GWt(n):n,()=>"(restrictive mapper)"),Zl=y$(n=>n.flags&262144?mt:n,()=>"(permissive mapper)"),Uu=pd(131072,"never",void 0,"unique literal"),Fc=y$(n=>n.flags&262144?Uu:n,()=>"(unique literal mapper)"),fo,ka=y$(n=>(fo&&(n===nd||n===bp||n===Fl)&&fo(!0),n),()=>"(unmeasurable reporter)"),tf=y$(n=>(fo&&(n===nd||n===bp||n===Fl)&&fo(!1),n),()=>"(unreliable reporter)"),Ts=Io(void 0,q,F,F,F),e_=Io(void 0,q,F,F,F);e_.objectFlags|=2048;var id=Aa(2048,"__type");id.members=ta();var Ko=Io(id,q,F,F,F),nc=Io(void 0,q,F,F,F),rc=he?Fr([$e,Wt,nc]):Y,Bo=Io(void 0,q,F,F,F);Bo.instantiations=new Map;var Ua=Io(void 0,q,F,F,F);Ua.objectFlags|=262144;var pi=Io(void 0,q,F,F,F),Ac=Io(void 0,q,F,F,F),Wf=Io(void 0,q,F,F,F),nd=Rt(),bp=Rt();bp.constraint=nd;var Fl=Rt(),$l=Rt(),H=Rt();H.constraint=$l;var Ze=rB(1,"<>",0,je),Pt=g1(void 0,void 0,void 0,F,je,void 0,0,0),ri=g1(void 0,void 0,void 0,F,_t,void 0,0,0),un=g1(void 0,void 0,void 0,F,je,void 0,0,0),Nr=g1(void 0,void 0,void 0,F,Rn,void 0,0,0),Bi=_v(ei,Qe,!0),hr=new Map,Pr={get yieldType(){return B.fail("Not supported")},get returnType(){return B.fail("Not supported")},get nextType(){return B.fail("Not supported")}},oo=lw(je,je,je),Ya={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Tjt,getGlobalIterableType:d$,getGlobalIterableIteratorType:hYe,getGlobalIteratorObjectType:Djt,getGlobalGeneratorType:Ijt,getGlobalBuiltinIteratorTypes:Ejt,resolveIterationType:(n,d)=>WA(n,d,S.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:S.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:S.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:S.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},ml={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Njt,getGlobalIterableType:Lae,getGlobalIterableIteratorType:gYe,getGlobalIteratorObjectType:Pjt,getGlobalGeneratorType:Ljt,getGlobalBuiltinIteratorTypes:Ajt,resolveIterationType:(n,d)=>n,mustHaveANextMethodDiagnostic:S.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:S.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:S.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Au,Pu=new Map,ku=new Map,hl,Lu,h_,Ou,_d,gh,qe,Qt,hn,Jo,za,Ja,wu,Nd,Mc,gc,Ju,Zp,Qh,Sp,hm,Wm,yh,t1,Zh,np,Ad,_b,j_,i1,zm,me,wt,oi,di,Zi,Tn,ur,qr,Q,ze,Ut,gn,lo,Is,os,Ns,Qa,Ra,Il,vh,Tg,a0,n1,CS,r1,bh,Sh,ul,gm,xp,c0=new Map,o1=0,eg=0,iv=0,pb=!1,kS=0,tg,Mk,Vm,ig=[],mb=[],Rk=[],nv=0,s1=[],Bk=[],Vx=[],Xe=0,dt=sp(""),qt=Pg(0),bi=h$({negative:!1,base10Value:"0"}),qi=[],En=[],tn=[],dr=0,so=!1,Gn=0,uo=10,Kn=[],Es=[],Jc=[],g_=[],ng=[],y_=[],rg=[],v_=[],LT=[],Hx=[],a1=[],hb=[],wS=[],Eg=[],TS=[],Ux=[],Jx=[],qx=[],zE=[],jk=0,Ga=cR(),OT=cR(),VE=Te(),Wk,c1,l1=new Map,Hm=new Map,em=new Map,tm=new Map,Cp=new Map,$x=new Map,g6=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",$.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return $Kt(),Sn;function Md(n){return!lr(n)||!et(n.name)||!lr(n.expression)&&!et(n.expression)?!1:et(n.expression)?mr(n.expression)==="Symbol"&&s_(n.expression)===(W6("Symbol",1160127,void 0)||ct):et(n.expression.expression)?mr(n.expression.name)==="Symbol"&&mr(n.expression.expression)==="globalThis"&&s_(n.expression.expression)===Ke:!1}function l0(n){return n?Ha.get(n):void 0}function ES(n,d){return n&&Ha.set(n,d),d}function rv(n){if(n){let d=en(n);if(d)if(xE(n)){if(d.localJsxFragmentNamespace)return d.localJsxFragmentNamespace;let m=d.pragmas.get("jsxfrag");if(m){let C=ds(m)?m[0]:m;if(d.localJsxFragmentFactory=FN(C.arguments.factory,te),pt(d.localJsxFragmentFactory,zf,G_),d.localJsxFragmentFactory)return d.localJsxFragmentNamespace=hp(d.localJsxFragmentFactory).escapedText}let v=lNe(n);if(v)return d.localJsxFragmentFactory=v,d.localJsxFragmentNamespace=hp(v).escapedText}else{let m=aA(d);if(m)return d.localJsxNamespace=m}}return Wk||(Wk="React",$.jsxFactory?(c1=FN($.jsxFactory,te),pt(c1,zf),c1&&(Wk=hp(c1).escapedText)):$.reactNamespace&&(Wk=Hl($.reactNamespace))),c1||(c1=U.createQualifiedName(U.createIdentifier(So(Wk)),"createElement")),Wk}function aA(n){if(n.localJsxNamespace)return n.localJsxNamespace;let d=n.pragmas.get("jsx");if(d){let m=ds(d)?d[0]:d;if(n.localJsxFactory=FN(m.arguments.factory,te),pt(n.localJsxFactory,zf,G_),n.localJsxFactory)return n.localJsxNamespace=hp(n.localJsxFactory).escapedText}}function zf(n){return Qg(n,-1,-1),Qi(n,zf,void 0)}function gb(n,d,m){return m||_it(n,d),we}function kp(n,d,...m){let v=n?Mn(n,d,...m):Dl(d,...m),C=Ga.lookup(v);return C||(Ga.add(v),v)}function zk(n,d,m,...v){let C=ot(d,m,...v);return C.skippedOn=n,C}function fy(n,d,...m){return n?Mn(n,d,...m):Dl(d,...m)}function ot(n,d,...m){let v=fy(n,d,...m);return Ga.add(v),v}function u0(n,d){n?Ga.add(d):OT.add({...d,category:2})}function _y(n,d,m,...v){if(d.pos<0||d.end<0){if(!n)return;let C=en(d);u0(n,"message"in m?kd(C,0,0,m,...v):iZ(C,m));return}u0(n,"message"in m?Mn(d,m,...v):zv(en(d),d,m))}function Vk(n,d,m,...v){let C=ot(n,m,...v);if(d){let E=Mn(n,S.Did_you_forget_to_use_await);Xs(C,E)}return C}function cA(n,d){let m=Array.isArray(n)?re(n,yQ):yQ(n);return m&&Xs(d,Mn(m,S.The_declaration_was_marked_as_deprecated_here)),OT.add(d),d}function yb(n){let d=bm(n);return d&&K(n.declarations)>1?d.flags&64?Lt(n.declarations,DS):Et(n.declarations,DS):!!n.valueDeclaration&&DS(n.valueDeclaration)||K(n.declarations)&&Et(n.declarations,DS)}function DS(n){return!!(f2(n)&536870912)}function vb(n,d,m){let v=Mn(n,S._0_is_deprecated,m);return cA(d,v)}function lA(n,d,m,v){let C=m?Mn(n,S.The_signature_0_of_1_is_deprecated,v,m):Mn(n,S._0_is_deprecated,v);return cA(d,C)}function Aa(n,d,m){x++;let v=new f(n|33554432,d);return v.links=new g5e,v.links.checkFlags=m||0,v}function Dg(n,d){let m=Aa(1,n);return m.links.type=d,m}function IS(n,d){let m=Aa(4,n);return m.links.type=d,m}function Hk(n){let d=0;return n&2&&(d|=111551),n&1&&(d|=111550),n&4&&(d|=0),n&8&&(d|=900095),n&16&&(d|=110991),n&32&&(d|=899503),n&64&&(d|=788872),n&256&&(d|=899327),n&128&&(d|=899967),n&512&&(d|=110735),n&8192&&(d|=103359),n&32768&&(d|=46015),n&65536&&(d|=78783),n&262144&&(d|=526824),n&524288&&(d|=788968),n&2097152&&(d|=2097152),d}function ym(n,d){d.mergeId||(d.mergeId=m5e,m5e++),Kn[d.mergeId]=n}function u1(n){let d=Aa(n.flags,n.escapedName);return d.declarations=n.declarations?n.declarations.slice():[],d.parent=n.parent,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),n.members&&(d.members=new Map(n.members)),n.exports&&(d.exports=new Map(n.exports)),ym(d,n),d}function d0(n,d,m=!1){if(!(n.flags&Hk(d.flags))||(d.flags|n.flags)&67108864){if(d===n)return n;if(!(n.flags&33554432)){let E=Fu(n);if(E===ct)return d;if(!(E.flags&Hk(d.flags))||(d.flags|E.flags)&67108864)n=u1(E);else return v(n,d),d}d.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!d.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=d.flags,d.valueDeclaration&&GM(n,d.valueDeclaration),Fn(n.declarations,d.declarations),d.members&&(n.members||(n.members=ta()),og(n.members,d.members,m)),d.exports&&(n.exports||(n.exports=ta()),og(n.exports,d.exports,m,n)),m||ym(n,d)}else n.flags&1024?n!==Ke&&ot(d.declarations&&cs(d.declarations[0]),S.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Lo(n)):v(n,d);return n;function v(E,L){let J=!!(E.flags&384||L.flags&384),ee=!!(E.flags&2||L.flags&2),oe=J?S.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:ee?S.Cannot_redeclare_block_scoped_variable_0:S.Duplicate_identifier_0,pe=L.declarations&&en(L.declarations[0]),Me=E.declarations&&en(E.declarations[0]),Ne=W3(pe,$.checkJs),vt=W3(Me,$.checkJs),Ot=Lo(L);if(pe&&Me&&Au&&!J&&pe!==Me){let jt=J1(pe.path,Me.path)===-1?pe:Me,xi=jt===pe?Me:pe,Pi=Hg(Au,`${jt.path}|${xi.path}`,()=>({firstFile:jt,secondFile:xi,conflictingSymbols:new Map})),Pn=Hg(Pi.conflictingSymbols,Ot,()=>({isBlockScoped:ee,firstFileLocations:[],secondFileLocations:[]}));Ne||C(Pn.firstFileLocations,L),vt||C(Pn.secondFileLocations,E)}else Ne||ov(L,oe,Ot,E),vt||ov(E,oe,Ot,L)}function C(E,L){if(L.declarations)for(let J of L.declarations)jc(E,J)}}function ov(n,d,m,v){re(n.declarations,C=>{uA(C,d,m,v.declarations)})}function uA(n,d,m,v){let C=(rk(n,!1)?uZ(n):cs(n))||n,E=kp(C,d,m);for(let L of v||F){let J=(rk(L,!1)?uZ(L):cs(L))||L;if(J===C)continue;E.relatedInformation=E.relatedInformation||[];let ee=Mn(J,S._0_was_also_declared_here,m),oe=Mn(J,S.and_here);K(E.relatedInformation)>=5||Lt(E.relatedInformation,pe=>_O(pe,oe)===0||_O(pe,ee)===0)||Xs(E,K(E.relatedInformation)?oe:ee)}}function Gx(n,d){if(!n?.size)return d;if(!d?.size)return n;let m=ta();return og(m,n),og(m,d),m}function og(n,d,m=!1,v){d.forEach((C,E)=>{let L=n.get(E),J=L?d0(L,C,m):cc(C);v&&L&&(J.parent=v),n.set(E,J)})}function dA(n){var d,m,v;let C=n.parent;if(((d=C.symbol.declarations)==null?void 0:d[0])!==C){B.assert(C.symbol.declarations.length>1);return}if($y(C))og(Be,C.symbol.exports);else{let E=n.parent.parent.flags&33554432?void 0:S.Invalid_module_name_in_augmentation_module_0_cannot_be_found,L=jT(n,n,E,!1,!0);if(!L)return;if(L=Ep(L),L.flags&1920)if(Lt(Lu,J=>L===J.symbol)){let J=d0(C.symbol,L,!0);h_||(h_=new Map),h_.set(n.text,J)}else{if((m=L.exports)!=null&&m.get("__export")&&((v=C.symbol.exports)!=null&&v.size)){let J=H2e(L,"resolvedExports");for(let[ee,oe]of as(C.symbol.exports.entries()))J.has(ee)&&!L.exports.has(ee)&&d0(J.get(ee),oe)}d0(L,C.symbol)}else ot(n,S.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function NS(){let n=Ge.escapedName,d=Be.get(n);d?re(d.declarations,m=>{fN(m)||Ga.add(Mn(m,S.Declaration_name_conflicts_with_built_in_global_identifier_0,So(n)))}):Be.set(n,Ge)}function Po(n){if(n.flags&33554432)return n.links;let d=Ca(n);return Es[d]??(Es[d]=new g5e)}function rr(n){let d=ac(n);return Jc[d]||(Jc[d]=new MDt)}function qd(n,d,m){if(m){let v=cc(n.get(d));if(v&&(v.flags&m||v.flags&2097152&&n_(v)&m))return v}}function bb(n,d){let m=n.parent,v=n.parent.parent,C=qd(m.locals,d,111551),E=qd(lC(v.symbol),d,111551);return C&&E?[C,E]:B.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function AS(n,d){let m=en(n),v=en(d),C=Gg(n);if(m!==v){if(ne&&(m.externalModuleIndicator||v.externalModuleIndicator)||!$.outFile||tN(d)||n.flags&33554432||L(d,n))return!0;let ee=e.getSourceFiles();return ee.indexOf(m)<=ee.indexOf(v)}if(d.flags&16777216||tN(d)||xDe(d))return!0;if(n.pos<=d.pos&&!(ls(n)&&FM(d.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let ee=ck(d,208);return ee?Ri(ee,Wa)!==Ri(n,Wa)||n.posoe===n?"quit":Ma(oe)?oe.parent.parent===n:!_e&&Td(oe)&&(oe.parent===n||pu(oe.parent)&&oe.parent.parent===n||dM(oe.parent)&&oe.parent.parent===n||ls(oe.parent)&&oe.parent.parent===n||To(oe.parent)&&oe.parent.parent.parent===n));return ee?!_e&&Td(ee)?!!Ri(d,oe=>oe===ee?"quit":vs(oe)&&!qw(oe)):!1:!0}else{if(ls(n))return!J(n,d,!1);if(Wp(n,n.parent))return!(ae&&Zd(n)===Zd(d)&&L(d,n))}}return!0}if(d.parent.kind===281||d.parent.kind===277&&d.parent.isExportEquals||d.kind===277&&d.isExportEquals)return!0;if(L(d,n))return ae&&Zd(n)&&(ls(n)||Wp(n,n.parent))?!J(n,d,!0):!0;return!1;function E(ee,oe){switch(ee.parent.parent.kind){case 243:case 248:case 250:if(qE(oe,ee,C))return!0;break}let pe=ee.parent.parent;return tE(pe)&&qE(oe,pe.expression,C)}function L(ee,oe){return!!Ri(ee,pe=>{if(pe===C)return"quit";if(vs(pe))return!0;if(Yl(pe))return oe.posee.end?!1:Ri(oe,Ne=>{if(Ne===ee)return"quit";switch(Ne.kind){case 219:return!0;case 172:return pe&&(ls(ee)&&Ne.parent===ee.parent||Wp(ee,ee.parent)&&Ne.parent===ee.parent.parent)?"quit":!0;case 241:switch(Ne.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function HE(n){return rr(n).declarationRequiresScopeChange}function Kx(n,d){rr(n).declarationRequiresScopeChange=d}function UE(n,d,m,v){return ae?!1:(n&&!v&&MT(n,d,d)||ot(n,n&&m.type&&rM(m.type,n.pos)?S.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:S.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Hc(m.name),xh(d)),!0)}function sl(n,d,m,v){let C=fs(d)?d:d.escapedText;r(()=>{if(!n||n.parent.kind!==324&&!MT(n,C,d)&&!JE(n)&&!v6(n,C,m)&&!ys(n,C)&&!qn(n,C,m)&&!PS(n,C,m)&&!or(n,C,m)){let E,L;if(d&&(L=IUt(d),L&&ot(n,v,xh(d),L)),!L&&Gn{var L;let J=d.escapedName,ee=v&&mo(v)&&Vp(v);if(n&&(m&2||(m&32||m&384)&&(m&111551)===111551)){let oe=im(d);(oe.flags&2||oe.flags&32||oe.flags&384)&&b6(oe,n)}if(ee&&(m&111551)===111551&&!(n.flags&16777216)){let oe=cc(d);K(oe.declarations)&&Et(oe.declarations,pe=>HR(pe)||mo(pe)&&!!pe.symbol.globalExports)&&_y(!$.allowUmdGlobalAccess,n,S._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,So(J))}if(C&&!E&&(m&111551)===111551){let oe=cc(xae(d)),pe=$0(C);oe===sr(C)?ot(n,S.Parameter_0_cannot_reference_itself,Hc(C.name)):oe.valueDeclaration&&oe.valueDeclaration.pos>C.pos&&pe.parent.locals&&qd(pe.parent.locals,oe.escapedName,m)===oe&&ot(n,S.Parameter_0_cannot_reference_identifier_1_declared_after_it,Hc(C.name),Hc(n))}if(n&&m&111551&&d.flags&2097152&&!(d.flags&111551)&&!dk(n)){let oe=my(d,111551);if(oe){let pe=oe.kind===281||oe.kind===278||oe.kind===280?S._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:S._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Me=So(J);FT(ot(n,pe,Me),oe,Me)}}if($.isolatedModules&&d&&ee&&(m&111551)===111551){let pe=qd(Be,J,m)===d&&mo(v)&&v.locals&&qd(v.locals,J,-111552);if(pe){let Me=(L=pe.declarations)==null?void 0:L.find(Ne=>Ne.kind===276||Ne.kind===273||Ne.kind===274||Ne.kind===271);Me&&!O3(Me)&&ot(Me,S.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,So(J))}}})}function FT(n,d,m){return d?Xs(n,Mn(d,d.kind===281||d.kind===278||d.kind===280?S._0_was_exported_here:S._0_was_imported_here,m)):n}function xh(n){return fs(n)?So(n):Hc(n)}function MT(n,d,m){if(!et(n)||n.escapedText!==d||pit(n)||tN(n))return!1;let v=f_(n,!1,!1),C=v;for(;C;){if(jr(C.parent)){let E=sr(C.parent);if(!E)break;let L=Wn(E);if(da(L,d))return ot(n,S.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,xh(m),Lo(E)),!0;if(C===v&&!ia(C)){let J=Qc(E).thisType;if(da(J,d))return ot(n,S.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,xh(m)),!0}}C=C.parent}return!1}function JE(n){let d=y6(n);return d&&Ml(d,64,!0)?(ot(n,S.Cannot_extend_an_interface_0_Did_you_mean_implements,Jl(d)),!0):!1}function y6(n){switch(n.kind){case 80:case 211:return n.parent?y6(n.parent):void 0;case 233:if(Xc(n.expression))return n.expression;default:return}}function v6(n,d,m){let v=1920|(Jn(n)?111551:0);if(m===v){let C=Fu(ni(n,d,788968&~v,void 0,!1)),E=n.parent;if(C){if(P_(E)){B.assert(E.left===n,"Should only be resolving left side of qualified name as a namespace");let L=E.right.escapedText;if(da(Qc(C),L))return ot(E,S.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,So(d),So(L)),!0}return ot(n,S._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,So(d)),!0}}return!1}function or(n,d,m){if(m&788584){let v=Fu(ni(n,d,111127,void 0,!1));if(v&&!(v.flags&1920))return ot(n,S._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,So(d)),!0}return!1}function Vf(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function ys(n,d){return Vf(d)&&n.parent.kind===281?(ot(n,S.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,d),!0):!1}function PS(n,d,m){if(m&111551){if(Vf(d)){let E=n.parent.parent;if(E&&E.parent&&$p(E)){let L=E.token,J=E.parent.kind;J===264&&L===96?ot(n,S.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,So(d)):J===263&&L===96?ot(n,S.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,So(d)):J===263&&L===119&&ot(n,S.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,So(d))}else ot(n,S._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,So(d));return!0}let v=Fu(ni(n,d,788544,void 0,!1)),C=v&&n_(v);if(v&&C!==void 0&&!(C&111551)){let E=So(d);return Uk(d)?ot(n,S._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,E):fA(n,v)?ot(n,S._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,E,E==="K"?"P":"K"):ot(n,S._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,E),!0}}return!1}function fA(n,d){let m=Ri(n.parent,v=>Ma(v)||ep(v)?!1:L_(v)||"quit");if(m&&m.members.length===1){let v=Qc(d);return!!(v.flags&1048576)&&PB(v,384,!0)}return!1}function Uk(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function qn(n,d,m){if(m&111127){if(Fu(ni(n,d,1024,void 0,!1)))return ot(n,S.Cannot_use_namespace_0_as_a_value,So(d)),!0}else if(m&788544&&Fu(ni(n,d,1536,void 0,!1)))return ot(n,S.Cannot_use_namespace_0_as_a_type,So(d)),!0;return!1}function b6(n,d){var m;if(B.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let v=(m=n.declarations)==null?void 0:m.find(C=>qQ(C)||jr(C)||C.kind===266);if(v===void 0)return B.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(v.flags&33554432)&&!AS(v,d)){let C,E=Hc(cs(v));n.flags&2?C=ot(d,S.Block_scoped_variable_0_used_before_its_declaration,E):n.flags&32?C=ot(d,S.Class_0_used_before_its_declaration,E):n.flags&256?C=ot(d,S.Enum_0_used_before_its_declaration,E):(B.assert(!!(n.flags&128)),Jh($)&&(C=ot(d,S.Enum_0_used_before_its_declaration,E))),C&&Xs(C,Mn(v,S._0_is_declared_here,E))}}function qE(n,d,m){return!!d&&!!Ri(n,v=>v===d||(v===m||vs(v)&&(!qw(v)||Vu(v)&3)?"quit":!1))}function t_(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function i_(n){return n.declarations&&Mi(n.declarations,vm)}function vm(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&iR(n)||Yn(n)&&Su(n)===2&&iR(n)||il(n)&&Yn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&Jk(n.parent.right)||n.kind===304||n.kind===303&&Jk(n.initializer)||n.kind===260&&$w(n)||n.kind===208&&$w(n.parent.parent)}function Jk(n){return rV(n)||Yc(n)&&Ty(n)}function $E(n,d){let m=Rd(n);if(m){let C=c4(m.expression).arguments[0];return et(m.name)?Fu(da(qXe(C),m.name.escapedText)):void 0}if(Ur(n)||n.moduleReference.kind===283){let C=rp(n,lZ(n)||q3(n)),E=Ep(C);return Tp(n,C,E,!1),E}let v=pA(n.moduleReference,d);return d1(n,v),v}function d1(n,d){if(Tp(n,void 0,d,!1)&&!n.isTypeOnly){let m=my(sr(n)),v=m.kind===281||m.kind===278,C=v?S.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:S.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,E=v?S._0_was_exported_here:S._0_was_imported_here,L=m.kind===278?"*":vx(m.name);Xs(ot(n.moduleReference,C),Mn(m,E,L))}}function wp(n,d,m,v){let C=n.exports.get("export="),E=C?da(Wn(C),d,!0):n.exports.get(d),L=Fu(E,v);return Tp(m,E,L,!1),L}function py(n){return ll(n)&&!n.isExportEquals||Ar(n,2048)||Gf(n)||Zy(n)}function Um(n){return xc(n)?e.getEmitSyntaxForUsageLocation(en(n),n):void 0}function LS(n,d){return n===99&&d===1}function OS(n){return 100<=ne&&ne<=199?Um(n)===99&&Wl(n.text,".json"):!1}function RT(n,d,m,v){let C=n&&Um(v);if(n&&C!==void 0){let E=e.getImpliedNodeFormatForEmit(n);if(C===99&&E===1&&100<=ne&&ne<=199)return!0;if(C===99&&E===99)return!1}if(!Ce)return!1;if(!n||n.isDeclarationFile){let E=wp(d,"default",void 0,!0);return!(E&&Lt(E.declarations,py)||wp(d,Hl("__esModule"),void 0,m))}return N_(n)?typeof n.externalModuleIndicator!="object"&&!wp(d,Hl("__esModule"),void 0,m):nD(d)}function GE(n,d){let m=rp(n,n.parent.moduleSpecifier);if(m)return Xx(m,n,d)}function Xx(n,d,m){var v;let C;wM(n)?C=n:C=wp(n,"default",d,m);let E=(v=n.declarations)==null?void 0:v.find(mo),L=KE(d);if(!L)return C;let J=OS(L),ee=RT(E,n,m,L);if(!C&&!ee&&!J)if(nD(n)&&!Ce){let oe=ne>=5?"allowSyntheticDefaultImports":"esModuleInterop",Me=n.exports.get("export=").valueDeclaration,Ne=ot(d.name,S.Module_0_can_only_be_default_imported_using_the_1_flag,Lo(n),oe);Me&&Xs(Ne,Mn(Me,S.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,oe))}else Zg(d)?XE(n,d):xb(n,n,d,QC(d)&&d.propertyName||d.name);else if(ee||J){let oe=Ep(n,m)||Fu(n,m);return Tp(d,n,oe,!1),oe}return Tp(d,C,void 0,!1),C}function KE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return rb(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return B.assertNever(n)}}function XE(n,d){var m,v,C;if((m=n.exports)!=null&&m.has(d.symbol.escapedName))ot(d.name,S.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Lo(n),Lo(d.symbol));else{let E=ot(d.name,S.Module_0_has_no_default_export,Lo(n)),L=(v=n.exports)==null?void 0:v.get("__export");if(L){let J=(C=L.declarations)==null?void 0:C.find(ee=>{var oe,pe;return!!(Nu(ee)&&ee.moduleSpecifier&&((pe=(oe=rp(ee,ee.moduleSpecifier))==null?void 0:oe.exports)!=null&&pe.has("default")))});J&&Xs(E,Mn(J,S.export_Asterisk_does_not_re_export_a_default))}}}function YE(n,d){let m=n.parent.parent.moduleSpecifier,v=rp(n,m),C=eC(v,m,d,!1);return Tp(n,v,C,!1),C}function f0(n,d){let m=n.parent.moduleSpecifier,v=m&&rp(n,m),C=m&&eC(v,m,d,!1);return Tp(n,v,C,!1),C}function S6(n,d){if(n===ct&&d===ct)return ct;if(n.flags&790504)return n;let m=Aa(n.flags|d.flags,n.escapedName);return B.assert(n.declarations||d.declarations),m.declarations=hs(Fo(n.declarations,d.declarations),ox),m.parent=n.parent||d.parent,n.valueDeclaration&&(m.valueDeclaration=n.valueDeclaration),d.members&&(m.members=new Map(d.members)),n.exports&&(m.exports=new Map(n.exports)),m}function qk(n,d,m,v){var C;if(n.flags&1536){let E=W_(n).get(d),L=Fu(E,v),J=(C=Po(n).typeOnlyExportStarMap)==null?void 0:C.get(d);return Tp(m,E,L,!1,J,d),L}}function Yx(n,d){if(n.flags&3){let m=n.valueDeclaration.type;if(m)return Fu(da(yo(m),d))}}function f1(n,d,m=!1){var v;let C=lZ(n)||n.moduleSpecifier,E=rp(n,C),L=!lr(d)&&d.propertyName||d.name;if(!et(L)&&L.kind!==11)return;let J=Hw(L),oe=eC(E,C,!1,J==="default"&&Ce);if(oe&&(J||L.kind===11)){if(wM(E))return E;let pe;E&&E.exports&&E.exports.get("export=")?pe=da(Wn(oe),J,!0):pe=Yx(oe,J),pe=Fu(pe,m);let Me=qk(oe,J,d,m);if(Me===void 0&&J==="default"){let vt=(v=E.declarations)==null?void 0:v.find(mo);(OS(C)||RT(vt,E,m,C))&&(Me=Ep(E,m)||Fu(E,m))}let Ne=Me&&pe&&Me!==pe?S6(pe,Me):Me||pe;return Ne||xb(E,oe,n,L),Ne}}function xb(n,d,m,v){var C;let E=MS(n,m),L=Hc(v),J=et(v)?oIe(v,d):void 0;if(J!==void 0){let ee=Lo(J),oe=ot(v,S._0_has_no_exported_member_named_1_Did_you_mean_2,E,L,ee);J.valueDeclaration&&Xs(oe,Mn(J.valueDeclaration,S._0_is_declared_here,ee))}else(C=n.exports)!=null&&C.has("default")?ot(v,S.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,E,L):Ig(m,v,L,n,E)}function Ig(n,d,m,v,C){var E,L;let J=(L=(E=kr(v.valueDeclaration,Uy))==null?void 0:E.locals)==null?void 0:L.get(Hw(d)),ee=v.exports;if(J){let oe=ee?.get("export=");if(oe)sg(oe,J)?FS(n,d,m,C):ot(d,S.Module_0_has_no_exported_member_1,C,m);else{let pe=ee?St(rEe(ee),Ne=>!!sg(Ne,J)):void 0,Me=pe?ot(d,S.Module_0_declares_1_locally_but_it_is_exported_as_2,C,m,Lo(pe)):ot(d,S.Module_0_declares_1_locally_but_it_is_not_exported,C,m);J.declarations&&Xs(Me,..._i(J.declarations,(Ne,vt)=>Mn(Ne,vt===0?S._0_is_declared_here:S.and_here,m)))}}else ot(d,S.Module_0_has_no_exported_member_1,C,m)}function FS(n,d,m,v){if(ne>=5){let C=qv($)?S._0_can_only_be_imported_by_using_a_default_import:S._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;ot(d,C,m)}else if(Jn(n)){let C=qv($)?S._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:S._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;ot(d,C,m)}else{let C=qv($)?S._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:S._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;ot(d,C,m,m,v)}}function QE(n,d){if(F_(n)&&qy(n.propertyName||n.name)){let L=KE(n),J=L&&rp(n,L);if(J)return Xx(J,n,d)}let m=Wa(n)?$0(n):n.parent.parent.parent,v=Rd(m),C=f1(m,v||n,d),E=n.propertyName||n.name;return v&&C&&et(E)?Fu(da(Wn(C),E.escapedText),d):(Tp(n,void 0,C,!1),C)}function Rd(n){if(Ur(n)&&n.initializer&&lr(n.initializer))return n.initializer}function ZE(n,d){if($g(n.parent)){let m=Ep(n.parent.symbol,d);return Tp(n,void 0,m,!1),m}}function sv(n,d,m){let v=n.propertyName||n.name;if(qy(v)){let E=KE(n),L=E&&rp(n,E);if(L)return Xx(L,n,!!m)}let C=n.parent.parent.moduleSpecifier?f1(n.parent.parent,n,m):v.kind===11?void 0:Ml(v,d,!1,m);return Tp(n,void 0,C,!1),C}function eD(n,d){let m=ll(n)?n.expression:n.right,v=$k(m,d);return Tp(n,void 0,v,!1),v}function $k(n,d){if(Qu(n))return Tu(n).symbol;if(!G_(n)&&!Xc(n))return;let m=Ml(n,901119,!0,d);return m||(Tu(n),rr(n).resolvedSymbol)}function Cb(n,d){if(Yn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return $k(n.parent.right,d)}function Qx(n,d=!1){switch(n.kind){case 271:case 260:return $E(n,d);case 273:return GE(n,d);case 274:return YE(n,d);case 280:return f0(n,d);case 276:case 208:return QE(n,d);case 281:return sv(n,901119,d);case 277:case 226:return eD(n,d);case 270:return ZE(n,d);case 304:return Ml(n.name,901119,!0,d);case 303:return $k(n.initializer,d);case 212:case 211:return Cb(n,d);default:return B.fail()}}function BT(n,d=901119){return n?(n.flags&(2097152|d))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Fu(n,d){return!d&&BT(n)?xf(n):n}function xf(n){B.assert((n.flags&2097152)!==0,"Should only get Alias here.");let d=Po(n);if(d.aliasTarget)d.aliasTarget===ge&&(d.aliasTarget=ct);else{d.aliasTarget=ge;let m=i_(n);if(!m)return B.fail();let v=Qx(m);d.aliasTarget===ge?d.aliasTarget=v||ct:ot(m,S.Circular_definition_of_import_alias_0,Lo(n))}return d.aliasTarget}function x6(n){if(Po(n).aliasTarget!==ge)return xf(n)}function n_(n,d,m){let v=d&&my(n),C=v&&Nu(v),E=v&&(C?rp(v.moduleSpecifier,v.moduleSpecifier,!0):xf(v.symbol)),L=C&&E?_1(E):void 0,J=m?0:n.flags,ee;for(;n.flags&2097152;){let oe=im(xf(n));if(!C&&oe===E||L?.get(oe.escapedName)===oe)break;if(oe===ct)return-1;if(oe===n||ee?.has(oe))break;oe.flags&2097152&&(ee?ee.add(oe):ee=new Set([n,oe])),J|=oe.flags,n=oe}return J}function Tp(n,d,m,v,C,E){if(!n||lr(n))return!1;let L=sr(n);if(_x(n)){let ee=Po(L);return ee.typeOnlyDeclaration=n,!0}if(C){let ee=Po(L);return ee.typeOnlyDeclaration=C,L.escapedName!==E&&(ee.typeOnlyExportStarName=E),!0}let J=Po(L);return _A(J,d,v)||_A(J,m,v)}function _A(n,d,m){var v;if(d&&(n.typeOnlyDeclaration===void 0||m&&n.typeOnlyDeclaration===!1)){let C=((v=d.exports)==null?void 0:v.get("export="))??d,E=C.declarations&&St(C.declarations,_x);n.typeOnlyDeclaration=E??Po(C).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function my(n,d){var m;if(!(n.flags&2097152))return;let v=Po(n);if(v.typeOnlyDeclaration===void 0){v.typeOnlyDeclaration=!1;let C=Fu(n);Tp((m=n.declarations)==null?void 0:m[0],i_(n)&&kce(n),C,!0)}if(d===void 0)return v.typeOnlyDeclaration||void 0;if(v.typeOnlyDeclaration){let C=v.typeOnlyDeclaration.kind===278?Fu(_1(v.typeOnlyDeclaration.symbol.parent).get(v.typeOnlyExportStarName||n.escapedName)):xf(v.typeOnlyDeclaration.symbol);return n_(C)&d?v.typeOnlyDeclaration:void 0}}function pA(n,d){return n.kind===80&&sO(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Ml(n,1920,!1,d):(B.assert(n.parent.kind===271),Ml(n,901119,!1,d))}function MS(n,d){return n.parent?MS(n.parent,d)+"."+Lo(n):Lo(n,d,void 0,36)}function tD(n){for(;P_(n.parent);)n=n.parent;return n}function q8(n){let d=hp(n),m=ni(d,d,111551,void 0,!0);if(m){for(;P_(d.parent);){let v=Wn(m);if(m=da(v,d.parent.right.escapedText),!m)return;d=d.parent}return m}}function Ml(n,d,m,v,C){if(Ul(n))return;let E=1920|(Jn(n)?d&111551:0),L;if(n.kind===80){let J=d===E||Uc(n)?S.Cannot_find_namespace_0:UQe(hp(n)),ee=Jn(n)&&!Uc(n)?C6(n,d):void 0;if(L=cc(ni(C||n,n,d,m||ee?void 0:J,!0,!1)),!L)return cc(ee)}else if(n.kind===166||n.kind===211){let J=n.kind===166?n.left:n.expression,ee=n.kind===166?n.right:n.name,oe=Ml(J,E,m,!1,C);if(!oe||Ul(ee))return;if(oe===ct)return oe;if(oe.valueDeclaration&&Jn(oe.valueDeclaration)&&$f($)!==100&&Ur(oe.valueDeclaration)&&oe.valueDeclaration.initializer&&Ret(oe.valueDeclaration.initializer)){let pe=oe.valueDeclaration.initializer.arguments[0],Me=rp(pe,pe);if(Me){let Ne=Ep(Me);Ne&&(oe=Ne)}}if(L=cc(qd(W_(oe),ee.escapedText,d)),!L&&oe.flags&2097152&&(L=cc(qd(W_(xf(oe)),ee.escapedText,d))),!L){if(!m){let pe=MS(oe),Me=Hc(ee),Ne=oIe(ee,oe);if(Ne){ot(ee,S._0_has_no_exported_member_named_1_Did_you_mean_2,pe,Me,Lo(Ne));return}let vt=P_(n)&&tD(n);if(Ou&&d&788968&&vt&&!b4(vt.parent)&&q8(vt)){ot(vt,S._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,zp(vt));return}if(d&1920&&P_(n.parent)){let jt=cc(qd(W_(oe),ee.escapedText,788968));if(jt){ot(n.parent.right,S.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,Lo(jt),So(n.parent.right.escapedText));return}}ot(ee,S.Namespace_0_has_no_exported_member_1,pe,Me)}return}}else B.assertNever(n,"Unknown entity name kind.");return!Uc(n)&&G_(n)&&(L.flags&2097152||n.parent.kind===277)&&Tp(vZ(n),L,void 0,!0),L.flags&d||v?L:xf(L)}function C6(n,d){if(Aae(n.parent)){let m=mA(n.parent);if(m)return ni(m,n,d,void 0,!0)}}function mA(n){if(Ri(n,C=>RP(C)||C.flags&16777216?Vh(C):"quit"))return;let m=Kw(n);if(m&&Ud(m)&&$M(m.expression)){let C=sr(m.expression.left);if(C)return Zx(C)}if(m&&Yc(m)&&$M(m.parent)&&Ud(m.parent.parent)){let C=sr(m.parent.left);if(C)return Zx(C)}if(m&&(zh(m)||ed(m))&&Yn(m.parent.parent)&&Su(m.parent.parent)===6){let C=sr(m.parent.parent.left);if(C)return Zx(C)}let v=sk(n);if(v&&vs(v)){let C=sr(v);return C&&C.valueDeclaration}}function Zx(n){let d=n.parent.valueDeclaration;return d?($3(d)?$I(d):iE(d)?G3(d):void 0)||d:void 0}function iD(n){let d=n.valueDeclaration;if(!d||!Jn(d)||n.flags&524288||rk(d,!1))return;let m=Ur(d)?G3(d):$I(d);if(m){let v=z_(m);if(v)return mIe(v,n)}}function rp(n,d,m){let C=$f($)===1?S.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:S.Cannot_find_module_0_or_its_corresponding_type_declarations;return jT(n,d,m?void 0:C,m)}function jT(n,d,m,v=!1,C=!1){return xc(d)?hA(n,d.text,m,v?void 0:d,C):void 0}function hA(n,d,m,v,C=!1){var E,L,J,ee,oe,pe,Me,Ne,vt,Ot,jt;if(v&&Ro(d,"@types/")){let Cr=S.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,ra=u3(d,"@types/");ot(v,Cr,ra,d)}let xi=JXe(d,!0);if(xi)return xi;let Pi=en(n),Pn=xc(n)?n:((E=Hu(n)?n:n.parent&&Hu(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:E.name)||((L=eS(n)?n:void 0)==null?void 0:L.argument.literal)||(Jn(n)&&oy(n)?n.moduleSpecifier:void 0)||(Ur(n)&&n.initializer&&Y_(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((J=Ri(n,fm))==null?void 0:J.arguments[0])||((ee=Ri(n,ql))==null?void 0:ee.moduleSpecifier)||((oe=Ri(n,nk))==null?void 0:oe.moduleReference.expression)||((pe=Ri(n,Nu))==null?void 0:pe.moduleSpecifier),Bn=Pn&&xc(Pn)?e.getModeForUsageLocation(Pi,Pn):e.getDefaultResolutionModeForFile(Pi),$i=$f($),Ni=(Me=e.getResolvedModule(Pi,d,Bn))==null?void 0:Me.resolvedModule,Zn=v&&Ni&&Xie($,Ni,Pi),wr=Ni&&(!Zn||Zn===S.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Ni.resolvedFileName);if(wr){if(Zn&&ot(v,Zn,d,Ni.resolvedFileName),Ni.resolvedUsingTsExtension&&Jd(d)){let Cr=((Ne=Ri(n,ql))==null?void 0:Ne.importClause)||Ri(n,Im(Dd,Nu));(v&&Cr&&!Cr.isTypeOnly||Ri(n,fm))&&ot(v,S.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Qr(B.checkDefined(CV(d))))}else if(Ni.resolvedUsingTsExtension&&!R4($,Pi.fileName)){let Cr=((vt=Ri(n,ql))==null?void 0:vt.importClause)||Ri(n,Im(Dd,Nu));if(v&&!(Cr?.isTypeOnly||Ri(n,ey))){let ra=B.checkDefined(CV(d));ot(v,S.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,ra)}}if(wr.symbol){if(v&&Ni.isExternalLibraryImport&&!hO(Ni.extension)&&WT(!1,v,Pi,Bn,Ni,d),v&&($i===3||$i===99)){let Cr=Pi.impliedNodeFormat===1&&!Ri(n,fm)||!!Ri(n,Dd),ra=Ri(n,Ys=>ey(Ys)||Nu(Ys)||ql(Ys)||oy(Ys));if(Cr&&wr.impliedNodeFormat===99&&!D0e(ra))if(Ri(n,Dd))ot(v,S.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,d);else{let Ys,_l=Gv(Pi.fileName);(_l===".ts"||_l===".js"||_l===".tsx"||_l===".jsx")&&(Ys=WQ(Pi)),Ga.add(zv(en(v),v,bs(Ys,S.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,d)))}}return cc(wr.symbol)}v&&m&&!Tee(v)&&ot(v,S.File_0_is_not_a_module,wr.fileName);return}if(Lu){let Cr=DY(Lu,ra=>ra.pattern,d);if(Cr){let ra=h_&&h_.get(d);return cc(ra||Cr.symbol)}}if(!v)return;if(Ni&&!hO(Ni.extension)&&Zn===void 0||Zn===S.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(C){let Cr=S.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;ot(v,Cr,d,Ni.resolvedFileName)}else WT(Se&&!!m,v,Pi,Bn,Ni,d);return}if(m){if(Ni){let Cr=e.getProjectReferenceRedirect(Ni.resolvedFileName);if(Cr){ot(v,S.Output_file_0_has_not_been_built_from_source_file_1,Cr,Ni.resolvedFileName);return}}if(Zn)ot(v,Zn,d,Ni.resolvedFileName);else{let Cr=Nm(d)&&!DP(d),ra=$i===3||$i===99;if(!iT($)&&Tl(d,".json")&&$i!==1&&FV($))ot(v,S.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,d);else if(Bn===99&&ra&&Cr){let Ys=ts(d,Or(Pi.path)),_l=(Ot=g6.find(([us,Gl])=>e.fileExists(Ys+us)))==null?void 0:Ot[1];_l?ot(v,S.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,d+_l):ot(v,S.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 if((jt=e.getResolvedModule(Pi,d,Bn))!=null&&jt.alternateResult){let Ys=Dz(Pi,e,d,Bn,d);_y(!0,v,bs(Ys,m,d))}else ot(v,m,d)}}return;function Qr(Cr){let ra=ER(d,Cr);if(CR(ne)||Bn===99){let Ys=Jd(d)&&R4($);return ra+(Cr===".mts"||Cr===".d.mts"?Ys?".mts":".mjs":Cr===".cts"||Cr===".d.mts"?Ys?".cts":".cjs":Ys?".ts":".js")}return ra}}function WT(n,d,m,v,{packageId:C,resolvedFileName:E},L){if(Tee(d))return;let J;!Od(L)&&C&&(J=Dz(m,e,L,v,C.name)),_y(n,d,bs(J,S.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,L,E))}function Ep(n,d){if(n?.exports){let m=Fu(n.exports.get("export="),d),v=gA(cc(m),cc(n));return cc(v)||n}}function gA(n,d){if(!n||n===ct||n===d||d.exports.size===1||n.flags&2097152)return n;let m=Po(n);if(m.cjsExportMerged)return m.cjsExportMerged;let v=n.flags&33554432?n:u1(n);return v.flags=v.flags|512,v.exports===void 0&&(v.exports=ta()),d.exports.forEach((C,E)=>{E!=="export="&&v.exports.set(E,v.exports.has(E)?d0(v.exports.get(E),C):C)}),v===n&&(Po(v).resolvedExports=void 0,Po(v).resolvedMembers=void 0),Po(v).cjsExportMerged=v,m.cjsExportMerged=v}function eC(n,d,m,v){var C;let E=Ep(n,m);if(!m&&E){if(!v&&!(E.flags&1539)&&!bl(E,307)){let J=ne>=5?"allowSyntheticDefaultImports":"esModuleInterop";return ot(d,S.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,J),E}let L=d.parent;if(ql(L)&&YP(L)||fm(L)){let J=fm(L)?L.arguments[0]:L.moduleSpecifier,ee=Wn(E),oe=Fet(ee,E,n,J);if(oe)return Jm(E,oe,L);let pe=(C=n?.declarations)==null?void 0:C.find(mo),Me=pe&&LS(Um(J),e.getImpliedNodeFormatForEmit(pe));if(qv($)||Me){let Ne=o$(ee,0);if((!Ne||!Ne.length)&&(Ne=o$(ee,1)),Ne&&Ne.length||da(ee,"default",!0)||Me){let vt=ee.flags&3670016?Met(ee,E,n,J):hIe(E,E.parent);return Jm(E,vt,L)}}}}return E}function Jm(n,d,m){let v=Aa(n.flags,n.escapedName);v.declarations=n.declarations?n.declarations.slice():[],v.parent=n.parent,v.links.target=n,v.links.originatingImport=m,n.valueDeclaration&&(v.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(v.constEnumOnlyModule=!0),n.members&&(v.members=new Map(n.members)),n.exports&&(v.exports=new Map(n.exports));let C=y0(d);return v.links.type=Io(v,C.members,F,F,C.indexInfos),v}function nD(n){return n.exports.get("export=")!==void 0}function tC(n){return rEe(_1(n))}function $8(n){let d=tC(n),m=Ep(n);if(m!==n){let v=Wn(m);RS(v)&&Fn(d,yc(v))}return d}function zT(n,d){_1(n).forEach((C,E)=>{Ei(E)||d(C,E)});let v=Ep(n);if(v!==n){let C=Wn(v);RS(C)&&HBt(C,(E,L)=>{d(E,L)})}}function rD(n,d){let m=_1(d);if(m)return m.get(n)}function yA(n,d){let m=rD(n,d);if(m)return m;let v=Ep(d);if(v===d)return;let C=Wn(v);return RS(C)?da(C,n):void 0}function RS(n){return!(n.flags&402784252||_r(n)&1||Eh(n)||Ba(n))}function W_(n){return n.flags&6256?H2e(n,"resolvedExports"):n.flags&1536?_1(n):n.exports||q}function _1(n){let d=Po(n);if(!d.resolvedExports){let{exports:m,typeOnlyExportStarMap:v}=k6(n);d.resolvedExports=m,d.typeOnlyExportStarMap=v}return d.resolvedExports}function p1(n,d,m,v){d&&d.forEach((C,E)=>{if(E==="default")return;let L=n.get(E);if(!L)n.set(E,C),m&&v&&m.set(E,{specifierText:Jl(v.moduleSpecifier)});else if(m&&v&&L&&Fu(L)!==Fu(C)){let J=m.get(E);J.exportsWithDuplicate?J.exportsWithDuplicate.push(v):J.exportsWithDuplicate=[v]}})}function k6(n){let d=[],m,v=new Set;n=Ep(n);let C=E(n)||q;return m&&v.forEach(L=>m.delete(L)),{exports:C,typeOnlyExportStarMap:m};function E(L,J,ee){if(!ee&&L?.exports&&L.exports.forEach((Me,Ne)=>v.add(Ne)),!(L&&L.exports&&jc(d,L)))return;let oe=new Map(L.exports),pe=L.exports.get("__export");if(pe){let Me=ta(),Ne=new Map;if(pe.declarations)for(let vt of pe.declarations){let Ot=rp(vt,vt.moduleSpecifier),jt=E(Ot,vt,ee||vt.isTypeOnly);p1(Me,jt,Ne,vt)}Ne.forEach(({exportsWithDuplicate:vt},Ot)=>{if(!(Ot==="export="||!(vt&&vt.length)||oe.has(Ot)))for(let jt of vt)Ga.add(Mn(jt,S.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Ne.get(Ot).specifierText,So(Ot)))}),p1(oe,Me)}return J?.isTypeOnly&&(m??(m=new Map),oe.forEach((Me,Ne)=>m.set(Ne,J))),oe}}function cc(n){let d;return n&&n.mergeId&&(d=Kn[n.mergeId])?d:n}function sr(n){return cc(n.symbol&&xae(n.symbol))}function z_(n){return $g(n)?sr(n):void 0}function bm(n){return cc(n.parent&&xae(n.parent))}function VT(n){var d,m;return(((d=n.valueDeclaration)==null?void 0:d.kind)===219||((m=n.valueDeclaration)==null?void 0:m.kind)===218)&&z_(n.valueDeclaration.parent)||n}function w6(n,d){let m=en(d),v=ac(m),C=Po(n),E;if(C.extendedContainersByFile&&(E=C.extendedContainersByFile.get(v)))return E;if(m&&m.imports){for(let J of m.imports){if(Uc(J))continue;let ee=rp(d,J,!0);!ee||!UT(ee,n)||(E=hi(E,ee))}if(K(E))return(C.extendedContainersByFile||(C.extendedContainersByFile=new Map)).set(v,E),E}if(C.extendedContainers)return C.extendedContainers;let L=e.getSourceFiles();for(let J of L){if(!dd(J))continue;let ee=sr(J);UT(ee,n)&&(E=hi(E,ee))}return C.extendedContainers=E||F}function vA(n,d,m){let v=bm(n);if(v&&!(n.flags&262144))return ee(v);let C=ro(n.declarations,pe=>{if(!d_(pe)&&pe.parent){if(iC(pe.parent))return sr(pe.parent);if(ty(pe.parent)&&pe.parent.parent&&Ep(sr(pe.parent.parent))===n)return sr(pe.parent.parent)}if(Qu(pe)&&Yn(pe.parent)&&pe.parent.operatorToken.kind===64&&il(pe.parent.left)&&Xc(pe.parent.left.expression))return Vv(pe.parent.left)||aE(pe.parent.left.expression)?sr(en(pe)):(Tu(pe.parent.left.expression),rr(pe.parent.left.expression).resolvedSymbol)});if(!K(C))return;let E=ro(C,pe=>UT(pe,n)?pe:void 0),L=[],J=[];for(let pe of E){let[Me,...Ne]=ee(pe);L=hi(L,Me),J=Fn(J,Ne)}return Fo(L,J);function ee(pe){let Me=ro(pe.declarations,oe),Ne=d&&w6(n,d),vt=Gk(pe,m);if(d&&pe.flags&p0(m)&&BS(pe,d,1920,!1))return hi(Fo(Fo([pe],Me),Ne),vt);let Ot=!(pe.flags&p0(m))&&pe.flags&788968&&Qc(pe).flags&524288&&m===111551?nf(d,xi=>Vd(xi,Pi=>{if(Pi.flags&p0(m)&&Wn(Pi)===Qc(pe))return Pi})):void 0,jt=Ot?[Ot,...Me,pe]:[...Me,pe];return jt=hi(jt,vt),jt=Fn(jt,Ne),jt}function oe(pe){return v&&HT(pe,v)}}function Gk(n,d){let m=!!K(n.declarations)&&Ta(n.declarations);if(d&111551&&m&&m.parent&&Ur(m.parent)&&(ba(m)&&m===m.parent.initializer||L_(m)&&m===m.parent.type))return sr(m.parent)}function HT(n,d){let m=jS(n),v=m&&m.exports&&m.exports.get("export=");return v&&sg(v,d)?m:void 0}function UT(n,d){if(n===bm(d))return d;let m=n.exports&&n.exports.get("export=");if(m&&sg(m,d))return n;let v=W_(n),C=v.get(d.escapedName);return C&&sg(C,d)?C:Vd(v,E=>{if(sg(E,d))return E})}function sg(n,d){if(cc(Fu(cc(n)))===cc(Fu(cc(d))))return n}function im(n){return cc(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function nm(n,d){return!!(n.flags&111551||n.flags&2097152&&n_(n,!d)&111551)}function _0(n){var d;let m=new p(Sn,n);return g++,m.id=g,(d=jn)==null||d.recordType(m),m}function ag(n,d){let m=_0(n);return m.symbol=d,m}function oD(n){return new p(Sn,n)}function pd(n,d,m=0,v){bA(d,v);let C=_0(n);return C.intrinsicName=d,C.debugIntrinsicName=v,C.objectFlags=m|524288|2097152|33554432|16777216,C}function bA(n,d){let m=`${n},${d??""}`;bt.has(m)&&B.fail(`Duplicate intrinsic type name ${n}${d?` (${d})`:""}; you may need to pass a name to createIntrinsicType.`),bt.add(m)}function M(n,d){let m=ag(524288,d);return m.objectFlags=n,m.members=void 0,m.properties=void 0,m.callSignatures=void 0,m.constructSignatures=void 0,m.indexInfos=void 0,m}function Te(){return Fr(as(Xve.keys(),sp))}function Rt(n){return ag(262144,n)}function Ei(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function Xr(n){let d;return n.forEach((m,v)=>{jo(m,v)&&(d||(d=[])).push(m)}),d||F}function jo(n,d){return!Ei(d)&&nm(n)}function Zo(n){let d=Xr(n),m=Tae(n);return m?Fo(d,[m]):d}function Wo(n,d,m,v,C){let E=n;return E.members=d,E.properties=F,E.callSignatures=m,E.constructSignatures=v,E.indexInfos=C,d!==q&&(E.properties=Xr(d)),E}function Io(n,d,m,v,C){return Wo(M(16,n),d,m,v,C)}function b_(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let d=Di(n.constructSignatures,v=>!(v.flags&4));if(n.constructSignatures===d)return n;let m=Io(n.symbol,n.members,n.callSignatures,Lt(d)?d:F,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=m,m.objectTypeWithoutAbstractConstructSignatures=m,m}function nf(n,d){let m;for(let v=n;v;v=v.parent){if(Uy(v)&&v.locals&&!Zb(v)&&(m=d(v.locals,void 0,!0,v)))return m;switch(v.kind){case 307:if(!Vp(v))break;case 267:let C=sr(v);if(m=d(C?.exports||q,void 0,!0,v))return m;break;case 263:case 231:case 264:let E;if((sr(v).members||q).forEach((L,J)=>{L.flags&788968&&(E||(E=ta())).set(J,L)}),E&&(m=d(E,void 0,!1,v)))return m;break}}return d(Be,void 0,!0)}function p0(n){return n===111551?111551:1920}function BS(n,d,m,v,C=new Map){if(!(n&&!JT(n)))return;let E=Po(n),L=E.accessibleChainCache||(E.accessibleChainCache=new Map),J=nf(d,(Pi,Pn,Bn,$i)=>$i),ee=`${v?0:1}|${J&&ac(J)}|${m}`;if(L.has(ee))return L.get(ee);let oe=Ca(n),pe=C.get(oe);pe||C.set(oe,pe=[]);let Me=nf(d,Ne);return L.set(ee,Me),Me;function Ne(Pi,Pn,Bn){if(!jc(pe,Pi))return;let $i=jt(Pi,Pn,Bn);return pe.pop(),$i}function vt(Pi,Pn){return!rm(Pi,d,Pn)||!!BS(Pi.parent,d,p0(Pn),v,C)}function Ot(Pi,Pn,Bn){return(n===(Pn||Pi)||cc(n)===cc(Pn||Pi))&&!Lt(Pi.declarations,iC)&&(Bn||vt(cc(Pi),m))}function jt(Pi,Pn,Bn){return Ot(Pi.get(n.escapedName),void 0,Pn)?[n]:Vd(Pi,Ni=>{if(Ni.flags&2097152&&Ni.escapedName!=="export="&&Ni.escapedName!=="default"&&!(DV(Ni)&&d&&dd(en(d)))&&(!v||Lt(Ni.declarations,nk))&&(!Bn||!Lt(Ni.declarations,Yhe))&&(Pn||!bl(Ni,281))){let Zn=xf(Ni),wr=xi(Ni,Zn,Pn);if(wr)return wr}if(Ni.escapedName===n.escapedName&&Ni.exportSymbol&&Ot(cc(Ni.exportSymbol),void 0,Pn))return[n]})||(Pi===Be?xi(Ke,Ke,Pn):void 0)}function xi(Pi,Pn,Bn){if(Ot(Pi,Pn,Bn))return[Pi];let $i=W_(Pn),Ni=$i&&Ne($i,!0);if(Ni&&vt(Pi,p0(m)))return[Pi].concat(Ni)}}function rm(n,d,m){let v=!1;return nf(d,C=>{let E=cc(C.get(n.escapedName));if(!E)return!1;if(E===n)return!0;let L=E.flags&2097152&&!bl(E,281);return E=L?xf(E):E,(L?n_(E):E.flags)&m?(v=!0,!0):!1}),v}function JT(n){if(n.declarations&&n.declarations.length){for(let d of n.declarations)switch(d.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function Kk(n,d){return m1(n,d,788968,!1,!0).accessibility===0}function qT(n,d){return m1(n,d,111551,!1,!0).accessibility===0}function SA(n,d,m){return m1(n,d,m,!1,!1).accessibility===0}function sD(n,d,m,v,C,E){if(!K(n))return;let L,J=!1;for(let ee of n){let oe=BS(ee,d,v,!1);if(oe){L=ee;let Ne=G8(oe[0],C);if(Ne)return Ne}if(E&&Lt(ee.declarations,iC)){if(C){J=!0;continue}return{accessibility:0}}let pe=vA(ee,d,v),Me=sD(pe,d,m,m===ee?p0(v):v,C,E);if(Me)return Me}if(J)return{accessibility:0};if(L)return{accessibility:1,errorSymbolName:Lo(m,d,v),errorModuleName:L!==m?Lo(L,d,1920):void 0}}function m0(n,d,m,v){return m1(n,d,m,v,!0)}function m1(n,d,m,v,C){if(n&&d){let E=sD([n],d,n,m,v,C);if(E)return E;let L=re(n.declarations,jS);if(L){let J=jS(d);if(L!==J)return{accessibility:2,errorSymbolName:Lo(n,d,m),errorModuleName:Lo(L),errorNode:Jn(d)?d:void 0}}return{accessibility:1,errorSymbolName:Lo(n,d,m)}}return{accessibility:0}}function jS(n){let d=Ri(n,xA);return d&&sr(d)}function xA(n){return d_(n)||n.kind===307&&Vp(n)}function iC(n){return Oz(n)||n.kind===307&&Vp(n)}function G8(n,d){let m;if(!Et(Di(n.declarations,E=>E.kind!==80),v))return;return{accessibility:0,aliasesToMakeVisible:m};function v(E){var L,J;if(!Ng(E)){let ee=t_(E);if(ee&&!Ar(ee,32)&&Ng(ee.parent))return C(E,ee);if(Ur(E)&&mu(E.parent.parent)&&!Ar(E.parent.parent,32)&&Ng(E.parent.parent.parent))return C(E,E.parent.parent);if(Fz(E)&&!Ar(E,32)&&Ng(E.parent))return C(E,E);if(Wa(E)){if(n.flags&2097152&&Jn(E)&&((L=E.parent)!=null&&L.parent)&&Ur(E.parent.parent)&&((J=E.parent.parent.parent)!=null&&J.parent)&&mu(E.parent.parent.parent.parent)&&!Ar(E.parent.parent.parent.parent,32)&&E.parent.parent.parent.parent.parent&&Ng(E.parent.parent.parent.parent.parent))return C(E,E.parent.parent.parent.parent);if(n.flags&2){let oe=Ri(E,mu);return Ar(oe,32)?!0:Ng(oe.parent)?C(E,oe):!1}}return!1}return!0}function C(E,L){return d&&(rr(E).isVisible=!0,m=Qd(m,L)),!0}}function q9(n){let d;return n.parent.kind===186||n.parent.kind===233&&!U0(n.parent)||n.parent.kind===167||n.parent.kind===182&&n.parent.parameterName===n?d=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?d=1920:d=788968,d}function $9(n,d,m=!0){let v=q9(n),C=hp(n),E=ni(d,C.escapedText,v,void 0,!1);return E&&E.flags&262144&&v&788968?{accessibility:0}:!E&&bx(C)&&m0(sr(f_(C,!1,!1)),C,v,!1).accessibility===0?{accessibility:0}:E?G8(E,m)||{accessibility:1,errorSymbolName:Jl(C),errorNode:C}:{accessibility:3,errorSymbolName:Jl(C),errorNode:C}}function Lo(n,d,m,v=4,C){let E=70221824,L=0;v&2&&(E|=128),v&1&&(E|=512),v&8&&(E|=16384),v&32&&(L|=4),v&16&&(L|=1);let J=v&4?Ae.symbolToNode:Ae.symbolToEntityName;return C?ee(C).getText():zP(ee);function ee(oe){let pe=J(n,m,d,E,L),Me=d?.kind===307?$1e():bT(),Ne=d&&en(d);return Me.writeNode(4,pe,Ne,oe),oe}}function Xk(n,d,m=0,v,C){return C?E(C).getText():zP(E);function E(L){let J;m&262144?J=v===1?185:184:J=v===1?180:179;let ee=Ae.signatureToSignatureDeclaration(n,J,d,E6(m)|70221824|512),oe=Aie(),pe=d&&en(d);return oe.writeNode(4,ee,pe,PZ(L)),L}}function Dn(n,d,m=1064960,v=dR("")){let C=$.noErrorTruncation||m&1,E=Ae.typeToTypeNode(n,d,E6(m)|70221824|(C?1:0),void 0);if(E===void 0)return B.fail("should always get typenode");let L=n!==yi?bT():q1e(),J=d&&en(d);L.writeNode(4,E,J,v);let ee=v.getText(),oe=C?BQ*2:j3*2;return oe&&ee&&ee.length>=oe?ee.substr(0,oe-3)+"...":ee}function K8(n,d){let m=nC(n.symbol)?Dn(n,n.symbol.valueDeclaration):Dn(n),v=nC(d.symbol)?Dn(d,d.symbol.valueDeclaration):Dn(d);return m===v&&(m=T6(n),v=T6(d)),[m,v]}function T6(n){return Dn(n,void 0,64)}function nC(n){return n&&!!n.valueDeclaration&&Mt(n.valueDeclaration)&&!Xm(n.valueDeclaration)}function E6(n=0){return n&848330095}function G9(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===op(n.symbol)||!!(n.flags&524288)&&!!(_r(n)&16777216))}function X8(n){return yo(n)}function Jq(){return{typeToTypeNode:(Ve,Ie,vi,Yi,tr)=>J(Ie,vi,Yi,tr,On=>pe(Ve,On)),typePredicateToTypePredicateNode:(Ve,Ie,vi,Yi,tr)=>J(Ie,vi,Yi,tr,On=>_l(Ve,On)),expressionOrTypeToTypeNode:(Ve,Ie,vi,Yi,tr,On,Ln)=>J(Yi,tr,On,Ln,co=>m(co,Ve,Ie,vi)),serializeTypeForDeclaration:(Ve,Ie,vi,Yi,tr,On,Ln)=>J(Yi,tr,On,Ln,co=>uw(co,Ve,Ie,vi)),serializeReturnTypeForSignature:(Ve,Ie,vi,Yi,tr)=>J(Ie,vi,Yi,tr,On=>Wi(On,Ve)),indexInfoToIndexSignatureDeclaration:(Ve,Ie,vi,Yi,tr)=>J(Ie,vi,Yi,tr,On=>Pn(Ve,On,void 0)),signatureToSignatureDeclaration:(Ve,Ie,vi,Yi,tr,On)=>J(vi,Yi,tr,On,Ln=>Bn(Ve,Ie,Ln)),symbolToEntityName:(Ve,Ie,vi,Yi,tr,On)=>J(vi,Yi,tr,On,Ln=>gu(Ve,Ln,Ie,!1)),symbolToExpression:(Ve,Ie,vi,Yi,tr,On)=>J(vi,Yi,tr,On,Ln=>qc(Ve,Ln,Ie)),symbolToTypeParameterDeclarations:(Ve,Ie,vi,Yi,tr)=>J(Ie,vi,Yi,tr,On=>ko(Ve,On)),symbolToParameterDeclaration:(Ve,Ie,vi,Yi,tr)=>J(Ie,vi,Yi,tr,On=>Gl(Ve,On)),typeParameterToDeclaration:(Ve,Ie,vi,Yi,tr)=>J(Ie,vi,Yi,tr,On=>Ys(Ve,On)),symbolTableToDeclarationStatements:(Ve,Ie,vi,Yi,tr)=>J(Ie,vi,Yi,tr,On=>Zc(Ve,On)),symbolToNode:(Ve,Ie,vi,Yi,tr,On)=>J(vi,Yi,tr,On,Ln=>L(Ve,Ln,Ie))};function n(Ve,Ie,vi){let Yi=X8(Ie);if(!Ve.mapper)return Yi;let tr=Oo(Yi,Ve.mapper);return vi&&tr!==Yi?void 0:tr}function d(Ve,Ie,vi){if((!Uc(Ie)||!(Ie.flags&16)||!Ve.enclosingFile||Ve.enclosingFile!==en(El(Ie)))&&(Ie=U.cloneNode(Ie)),Ie===vi||!vi)return Ie;let Yi=Ie.original;for(;Yi&&Yi!==vi;)Yi=Yi.original;return Yi||cr(Ie,vi),Ve.enclosingFile&&Ve.enclosingFile===en(El(vi))?Ft(Ie,vi):Ie}function m(Ve,Ie,vi,Yi){let tr=ee(Ve);Ie&&!(Ve.internalFlags&2)&&Fe.serializeTypeOfExpression(Ie,Ve,Yi),Ve.internalFlags|=2;let On=v(Ve,Ie,vi,Yi);return tr(),On}function v(Ve,Ie,vi,Yi){if(Ie){let tr=ZC(Ie)?Ie.type:TE(Ie)?JO(Ie):void 0;if(tr&&!qg(tr)){let On=C(Ve,tr,vi,Ie.parent,Yi);if(On)return On}}return Yi&&(vi=hC(vi)),pe(vi,Ve)}function C(Ve,Ie,vi,Yi,tr){let On=vi;tr&&(vi=hC(vi,!To(Yi)));let Ln=E(Ve,Ie,vi,Yi);if(Ln)return tr&&_Qe(vi)&&!Dh(n(Ve,Ie),co=>!!(co.flags&32768))?U.createUnionTypeNode([Ln,U.createKeywordTypeNode(157)]):Ln;if(tr&&On!==vi){let co=E(Ve,Ie,On,Yi);if(co)return U.createUnionTypeNode([co,U.createKeywordTypeNode(157)])}}function E(Ve,Ie,vi,Yi=Ve.enclosingDeclaration,tr=n(Ve,Ie,!0)){if(tr&&ii(Yi,vi,tr)&&kF(Ie,vi)){let On=Na(Ve,Ie);if(On)return On}}function L(Ve,Ie,vi){if(Ie.internalFlags&1){if(Ve.valueDeclaration){let tr=cs(Ve.valueDeclaration);if(tr&&Ma(tr))return tr}let Yi=Po(Ve).nameType;if(Yi&&Yi.flags&9216)return Ie.enclosingDeclaration=Yi.symbol.valueDeclaration,U.createComputedPropertyName(qc(Yi.symbol,Ie,vi))}return qc(Ve,Ie,vi)}function J(Ve,Ie,vi,Yi,tr){let On=Yi?.trackSymbol?Yi.moduleResolverHost:(vi||0)&4?BDt(e):void 0,Ln={enclosingDeclaration:Ve,enclosingFile:Ve&&en(Ve),flags:Ie||0,internalFlags:vi||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!$.outFile&&!!Ve&&Vp(en(Ve)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,mapper:void 0};Ln.tracker=new Qve(Ln,Yi,On);let co=tr(Ln);return Ln.truncating&&Ln.flags&1&&Ln.tracker.reportTruncationError(),Ln.encounteredError?void 0:co}function ee(Ve){let Ie=Ve.flags,vi=Ve.internalFlags;return Yi;function Yi(){Ve.flags=Ie,Ve.internalFlags=vi}}function oe(Ve){return Ve.truncating?Ve.truncating:Ve.truncating=Ve.approximateLength>(Ve.flags&1?BQ:j3)}function pe(Ve,Ie){let vi=ee(Ie),Yi=Me(Ve,Ie);return vi(),Yi}function Me(Ve,Ie){var vi,Yi;a&&a.throwIfCancellationRequested&&a.throwIfCancellationRequested();let tr=Ie.flags&8388608;if(Ie.flags&=-8388609,!Ve){if(!(Ie.flags&262144)){Ie.encounteredError=!0;return}return Ie.approximateLength+=3,U.createKeywordTypeNode(133)}if(Ie.flags&536870912||(Ve=v0(Ve)),Ve.flags&1)return Ve.aliasSymbol?U.createTypeReferenceNode(pl(Ve.aliasSymbol),xi(Ve.aliasTypeArguments,Ie)):Ve===yi?DO(U.createKeywordTypeNode(133),3,"unresolved"):(Ie.approximateLength+=3,U.createKeywordTypeNode(Ve===nr?141:133));if(Ve.flags&2)return U.createKeywordTypeNode(159);if(Ve.flags&4)return Ie.approximateLength+=6,U.createKeywordTypeNode(154);if(Ve.flags&8)return Ie.approximateLength+=6,U.createKeywordTypeNode(150);if(Ve.flags&64)return Ie.approximateLength+=6,U.createKeywordTypeNode(163);if(Ve.flags&16&&!Ve.aliasSymbol)return Ie.approximateLength+=7,U.createKeywordTypeNode(136);if(Ve.flags&1056){if(Ve.symbol.flags&8){let Gt=bm(Ve.symbol),Hi=ru(Gt,Ie,788968);if(Qc(Gt)===Ve)return Hi;let Nn=fu(Ve.symbol);return pp(Nn,1)?kt(Hi,U.createTypeReferenceNode(Nn,void 0)):ey(Hi)?(Hi.isTypeOf=!0,U.createIndexedAccessTypeNode(Hi,U.createLiteralTypeNode(U.createStringLiteral(Nn)))):pm(Hi)?U.createIndexedAccessTypeNode(U.createTypeQueryNode(Hi.typeName),U.createLiteralTypeNode(U.createStringLiteral(Nn))):B.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return ru(Ve.symbol,Ie,788968)}if(Ve.flags&128)return Ie.approximateLength+=Ve.value.length+2,U.createLiteralTypeNode(Hn(U.createStringLiteral(Ve.value,!!(Ie.flags&268435456)),16777216));if(Ve.flags&256){let Gt=Ve.value;return Ie.approximateLength+=(""+Gt).length,U.createLiteralTypeNode(Gt<0?U.createPrefixUnaryExpression(41,U.createNumericLiteral(-Gt)):U.createNumericLiteral(Gt))}if(Ve.flags&2048)return Ie.approximateLength+=rT(Ve.value).length+1,U.createLiteralTypeNode(U.createBigIntLiteral(Ve.value));if(Ve.flags&512)return Ie.approximateLength+=Ve.intrinsicName.length,U.createLiteralTypeNode(Ve.intrinsicName==="true"?U.createTrue():U.createFalse());if(Ve.flags&8192){if(!(Ie.flags&1048576)){if(qT(Ve.symbol,Ie.enclosingDeclaration))return Ie.approximateLength+=6,ru(Ve.symbol,Ie,111551);Ie.tracker.reportInaccessibleUniqueSymbolError&&Ie.tracker.reportInaccessibleUniqueSymbolError()}return Ie.approximateLength+=13,U.createTypeOperatorNode(158,U.createKeywordTypeNode(155))}if(Ve.flags&16384)return Ie.approximateLength+=4,U.createKeywordTypeNode(116);if(Ve.flags&32768)return Ie.approximateLength+=9,U.createKeywordTypeNode(157);if(Ve.flags&65536)return Ie.approximateLength+=4,U.createLiteralTypeNode(U.createNull());if(Ve.flags&131072)return Ie.approximateLength+=5,U.createKeywordTypeNode(146);if(Ve.flags&4096)return Ie.approximateLength+=6,U.createKeywordTypeNode(155);if(Ve.flags&67108864)return Ie.approximateLength+=6,U.createKeywordTypeNode(151);if(kO(Ve))return Ie.flags&4194304&&(!Ie.encounteredError&&!(Ie.flags&32768)&&(Ie.encounteredError=!0),(Yi=(vi=Ie.tracker).reportInaccessibleThisError)==null||Yi.call(vi)),Ie.approximateLength+=4,U.createThisTypeNode();if(!tr&&Ve.aliasSymbol&&(Ie.flags&16384||Kk(Ve.aliasSymbol,Ie.enclosingDeclaration))){let Gt=xi(Ve.aliasTypeArguments,Ie);return Ei(Ve.aliasSymbol.escapedName)&&!(Ve.aliasSymbol.flags&32)?U.createTypeReferenceNode(U.createIdentifier(""),Gt):K(Gt)===1&&Ve.aliasSymbol===Qt.symbol?U.createArrayTypeNode(Gt[0]):ru(Ve.aliasSymbol,Ie,788968,Gt)}let On=_r(Ve);if(On&4)return B.assert(!!(Ve.flags&524288)),Ve.node?yt(Ve,Oi):Oi(Ve);if(Ve.flags&262144||On&3){if(Ve.flags&262144&&sn(Ie.inferTypeParameters,Ve)){Ie.approximateLength+=fu(Ve.symbol).length+6;let Hi,Nn=V_(Ve);if(Nn){let Ti=YXe(Ve,!0);Ti&&S1(Nn,Ti)||(Ie.approximateLength+=9,Hi=Nn&&pe(Nn,Ie))}return U.createInferTypeNode(Cr(Ve,Ie,Hi))}if(Ie.flags&4&&Ve.flags&262144){let Hi=$d(Ve,Ie);return Ie.approximateLength+=mr(Hi).length,U.createTypeReferenceNode(U.createIdentifier(mr(Hi)),void 0)}if(Ve.symbol)return ru(Ve.symbol,Ie,788968);let Gt=(Ve===$l||Ve===H)&&W&&W.symbol?(Ve===H?"sub-":"super-")+fu(W.symbol):"?";return U.createTypeReferenceNode(U.createIdentifier(Gt),void 0)}if(Ve.flags&1048576&&Ve.origin&&(Ve=Ve.origin),Ve.flags&3145728){let Gt=Ve.flags&1048576?qq(Ve.types):Ve.types;if(K(Gt)===1)return pe(Gt[0],Ie);let Hi=xi(Gt,Ie,!0);if(Hi&&Hi.length>0)return Ve.flags&1048576?U.createUnionTypeNode(Hi):U.createIntersectionTypeNode(Hi);!Ie.encounteredError&&!(Ie.flags&262144)&&(Ie.encounteredError=!0);return}if(On&48)return B.assert(!!(Ve.flags&524288)),at(Ve);if(Ve.flags&4194304){let Gt=Ve.type;Ie.approximateLength+=6;let Hi=pe(Gt,Ie);return U.createTypeOperatorNode(143,Hi)}if(Ve.flags&134217728){let Gt=Ve.texts,Hi=Ve.types,Nn=U.createTemplateHead(Gt[0]),Ti=U.createNodeArray(_i(Hi,(An,yn)=>U.createTemplateLiteralTypeSpan(pe(An,Ie),(ynLn(Gt));if(Ve.flags&33554432){let Gt=pe(Ve.baseType,Ie),Hi=j6(Ve)&&hEe("NoInfer",!1);return Hi?ru(Hi,Ie,788968,[Gt]):Gt}return B.fail("Should be unreachable.");function Ln(Gt){let Hi=pe(Gt.checkType,Ie);if(Ie.approximateLength+=15,Ie.flags&4&&Gt.root.isDistributive&&!(Gt.checkType.flags&262144)){let br=Rt(Aa(262144,"T")),no=$d(br,Ie),Mr=U.createTypeReferenceNode(no);Ie.approximateLength+=37;let ms=vD(Gt.root.checkType,br,Gt.mapper),Pc=Ie.inferTypeParameters;Ie.inferTypeParameters=Gt.root.inferTypeParameters;let Tf=pe(Oo(Gt.root.extendsType,ms),Ie);Ie.inferTypeParameters=Pc;let ap=co(Oo(n(Ie,Gt.root.node.trueType),ms)),dg=co(Oo(n(Ie,Gt.root.node.falseType),ms));return U.createConditionalTypeNode(Hi,U.createInferTypeNode(U.createTypeParameterDeclaration(void 0,U.cloneNode(Mr.typeName))),U.createConditionalTypeNode(U.createTypeReferenceNode(U.cloneNode(no)),pe(Gt.checkType,Ie),U.createConditionalTypeNode(Mr,Tf,ap,dg),U.createKeywordTypeNode(146)),U.createKeywordTypeNode(146))}let Nn=Ie.inferTypeParameters;Ie.inferTypeParameters=Gt.root.inferTypeParameters;let Ti=pe(Gt.extendsType,Ie);Ie.inferTypeParameters=Nn;let An=co(tw(Gt)),yn=co(iw(Gt));return U.createConditionalTypeNode(Hi,Ti,An,yn)}function co(Gt){var Hi,Nn,Ti;return Gt.flags&1048576?(Hi=Ie.visitedTypes)!=null&&Hi.has(rf(Gt))?(Ie.flags&131072||(Ie.encounteredError=!0,(Ti=(Nn=Ie.tracker)==null?void 0:Nn.reportCyclicStructureError)==null||Ti.call(Nn)),Ne(Ie)):yt(Gt,An=>pe(An,Ie)):pe(Gt,Ie)}function qo(Gt){return!!dB(Gt)}function ps(Gt){return!!Gt.target&&qo(Gt.target)&&!qo(Gt)}function As(Gt){var Hi;B.assert(!!(Gt.flags&524288));let Nn=Gt.declaration.readonlyToken?U.createToken(Gt.declaration.readonlyToken.kind):void 0,Ti=Gt.declaration.questionToken?U.createToken(Gt.declaration.questionToken.kind):void 0,An,yn,br=!F6(Gt)&&!(KT(Gt).flags&2)&&Ie.flags&4&&!(Gm(Gt).flags&262144&&((Hi=V_(Gm(Gt)))==null?void 0:Hi.flags)&4194304);if(F6(Gt)){if(ps(Gt)&&Ie.flags&4){let ap=Rt(Aa(262144,"T")),dg=$d(ap,Ie);yn=U.createTypeReferenceNode(dg)}An=U.createTypeOperatorNode(143,yn||pe(KT(Gt),Ie))}else if(br){let ap=Rt(Aa(262144,"T")),dg=$d(ap,Ie);yn=U.createTypeReferenceNode(dg),An=yn}else An=pe(Gm(Gt),Ie);let no=Cr(g0(Gt),Ie,An),Mr=Gt.declaration.nameType?pe(WS(Gt),Ie):void 0,ms=pe(Lb(Tb(Gt),!!(dv(Gt)&4)),Ie),Pc=U.createMappedTypeNode(Nn,no,Mr,Ti,ms,void 0);Ie.approximateLength+=10;let Tf=Hn(Pc,1);if(ps(Gt)&&Ie.flags&4){let ap=Oo(V_(n(Ie,Gt.declaration.typeParameter.constraint.type))||Y,Gt.mapper);return U.createConditionalTypeNode(pe(KT(Gt),Ie),U.createInferTypeNode(U.createTypeParameterDeclaration(void 0,U.cloneNode(yn.typeName),ap.flags&2?void 0:pe(ap,Ie))),Tf,U.createKeywordTypeNode(146))}else if(br)return U.createConditionalTypeNode(pe(Gm(Gt),Ie),U.createInferTypeNode(U.createTypeParameterDeclaration(void 0,U.cloneNode(yn.typeName),U.createTypeOperatorNode(143,pe(KT(Gt),Ie)))),Tf,U.createKeywordTypeNode(146));return Tf}function at(Gt){var Hi,Nn;let Ti=Gt.id,An=Gt.symbol;if(An){if(!!(_r(Gt)&8388608)){let ms=Gt.node;if(aT(ms)){let Pc=E(Ie,ms,Gt);if(Pc)return Pc}return(Hi=Ie.visitedTypes)!=null&&Hi.has(Ti)?Ne(Ie):yt(Gt,Xt)}let no=G9(Gt)?788968:111551;if(Ty(An.valueDeclaration))return ru(An,Ie,no);if(An.flags&32&&!mae(An)&&!(An.valueDeclaration&&jr(An.valueDeclaration)&&Ie.flags&2048&&(!Zu(An.valueDeclaration)||m0(An,Ie.enclosingDeclaration,no,!1).accessibility!==0))||An.flags&896||yn())return ru(An,Ie,no);if((Nn=Ie.visitedTypes)!=null&&Nn.has(Ti)){let Mr=$q(Gt);return Mr?ru(Mr,Ie,788968):Ne(Ie)}else return yt(Gt,Xt)}else return Xt(Gt);function yn(){var br;let no=!!(An.flags&8192)&&Lt(An.declarations,ms=>ia(ms)),Mr=!!(An.flags&16)&&(An.parent||re(An.declarations,ms=>ms.parent.kind===307||ms.parent.kind===268));if(no||Mr)return(!!(Ie.flags&4096)||((br=Ie.visitedTypes)==null?void 0:br.has(Ti)))&&(!(Ie.flags&8)||qT(An,Ie.enclosingDeclaration))}}function yt(Gt,Hi){var Nn,Ti,An;let yn=Gt.id,br=_r(Gt)&16&&Gt.symbol&&Gt.symbol.flags&32,no=_r(Gt)&4&&Gt.node?"N"+ac(Gt.node):Gt.flags&16777216?"N"+ac(Gt.root.node):Gt.symbol?(br?"+":"")+Ca(Gt.symbol):void 0;Ie.visitedTypes||(Ie.visitedTypes=new Set),no&&!Ie.symbolDepth&&(Ie.symbolDepth=new Map);let Mr=Ie.enclosingDeclaration&&rr(Ie.enclosingDeclaration),ms=`${rf(Gt)}|${Ie.flags}|${Ie.internalFlags}`;Mr&&(Mr.serializedTypes||(Mr.serializedTypes=new Map));let Pc=(Nn=Mr?.serializedTypes)==null?void 0:Nn.get(ms);if(Pc)return(Ti=Pc.trackedSymbols)==null||Ti.forEach(([cp,bC,TF])=>Ie.tracker.trackSymbol(cp,bC,TF)),Pc.truncating&&(Ie.truncating=!0),Ie.approximateLength+=Pc.addedLength,KS(Pc.node);let Tf;if(no){if(Tf=Ie.symbolDepth.get(no)||0,Tf>10)return Ne(Ie);Ie.symbolDepth.set(no,Tf+1)}Ie.visitedTypes.add(yn);let ap=Ie.trackedSymbols;Ie.trackedSymbols=void 0;let dg=Ie.approximateLength,dw=Hi(Gt),k0=Ie.approximateLength-dg;return!Ie.reportedDiagnostic&&!Ie.encounteredError&&((An=Mr?.serializedTypes)==null||An.set(ms,{node:dw,truncating:Ie.truncating,addedLength:k0,trackedSymbols:Ie.trackedSymbols})),Ie.visitedTypes.delete(yn),no&&Ie.symbolDepth.set(no,Tf),Ie.trackedSymbols=ap,dw;function KS(cp){return!Uc(cp)&&_s(cp)===cp?cp:d(Ie,U.cloneNode(Qi(cp,KS,void 0,wF,KS)),cp)}function wF(cp,bC,TF,qB,$B){return cp&&cp.length===0?Ft(U.createNodeArray(void 0,cp.hasTrailingComma),cp):mn(cp,bC,TF,qB,$B)}}function Xt(Gt){if(Dp(Gt)||Gt.containsError)return As(Gt);let Hi=y0(Gt);if(!Hi.properties.length&&!Hi.indexInfos.length){if(!Hi.callSignatures.length&&!Hi.constructSignatures.length)return Ie.approximateLength+=2,Hn(U.createTypeLiteralNode(void 0),1);if(Hi.callSignatures.length===1&&!Hi.constructSignatures.length){let br=Hi.callSignatures[0];return Bn(br,184,Ie)}if(Hi.constructSignatures.length===1&&!Hi.callSignatures.length){let br=Hi.constructSignatures[0];return Bn(br,185,Ie)}}let Nn=Di(Hi.constructSignatures,br=>!!(br.flags&4));if(Lt(Nn)){let br=_i(Nn,Mr=>pD(Mr));return Hi.callSignatures.length+(Hi.constructSignatures.length-Nn.length)+Hi.indexInfos.length+(Ie.flags&2048?er(Hi.properties,Mr=>!(Mr.flags&4194304)):K(Hi.properties))&&br.push(b_(Hi)),pe(wa(br),Ie)}let Ti=ee(Ie);Ie.flags|=4194304;let An=rn(Hi);Ti();let yn=U.createTypeLiteralNode(An);return Ie.approximateLength+=2,Hn(yn,Ie.flags&1024?0:1),yn}function Oi(Gt){let Hi=fl(Gt);if(Gt.target===Qt||Gt.target===hn){if(Ie.flags&2){let An=pe(Hi[0],Ie);return U.createTypeReferenceNode(Gt.target===Qt?"Array":"ReadonlyArray",[An])}let Nn=pe(Hi[0],Ie),Ti=U.createArrayTypeNode(Nn);return Gt.target===Qt?Ti:U.createTypeOperatorNode(148,Ti)}else if(Gt.target.objectFlags&8){if(Hi=Uo(Hi,(Nn,Ti)=>Lb(Nn,!!(Gt.target.elementFlags[Ti]&2))),Hi.length>0){let Nn=VS(Gt),Ti=xi(Hi.slice(0,Nn),Ie);if(Ti){let{labeledElementDeclarations:An}=Gt.target;for(let br=0;br0){let Mr=0;if(Gt.target.typeParameters&&(Mr=Math.min(Gt.target.typeParameters.length,Hi.length),(gy(Gt,Lae(!1))||gy(Gt,gYe(!1))||gy(Gt,d$(!1))||gy(Gt,hYe(!1)))&&(!Gt.node||!pm(Gt.node)||!Gt.node.typeArguments||Gt.node.typeArguments.length0;){let ms=Hi[Mr-1],Pc=Gt.target.typeParameters[Mr-1],Tf=YT(Pc);if(!Tf||!S1(ms,Tf))break;Mr--}yn=xi(Hi.slice(Ti,Mr),Ie)}let br=ee(Ie);Ie.flags|=16;let no=ru(Gt.symbol,Ie,788968,yn);return br(),An?kt(An,no):no}}}function kt(Gt,Hi){if(ey(Gt)){let Nn=Gt.typeArguments,Ti=Gt.qualifier;Ti&&(et(Ti)?Nn!==pE(Ti)&&(Ti=uS(U.cloneNode(Ti),Nn)):Nn!==pE(Ti.right)&&(Ti=U.updateQualifiedName(Ti,Ti.left,uS(U.cloneNode(Ti.right),Nn)))),Nn=Hi.typeArguments;let An=Zt(Hi);for(let yn of An)Ti=Ti?U.createQualifiedName(Ti,yn):yn;return U.updateImportTypeNode(Gt,Gt.argument,Gt.attributes,Ti,Nn,Gt.isTypeOf)}else{let Nn=Gt.typeArguments,Ti=Gt.typeName;et(Ti)?Nn!==pE(Ti)&&(Ti=uS(U.cloneNode(Ti),Nn)):Nn!==pE(Ti.right)&&(Ti=U.updateQualifiedName(Ti,Ti.left,uS(U.cloneNode(Ti.right),Nn))),Nn=Hi.typeArguments;let An=Zt(Hi);for(let yn of An)Ti=U.createQualifiedName(Ti,yn);return U.updateTypeReferenceNode(Gt,Ti,Nn)}}function Zt(Gt){let Hi=Gt.typeName,Nn=[];for(;!et(Hi);)Nn.unshift(Hi.right),Hi=Hi.left;return Nn.unshift(Hi),Nn}function rn(Gt){if(oe(Ie))return[U.createPropertySignature(void 0,"...",void 0,void 0)];let Hi=[];for(let An of Gt.callSignatures)Hi.push(Bn(An,179,Ie));for(let An of Gt.constructSignatures)An.flags&4||Hi.push(Bn(An,180,Ie));for(let An of Gt.indexInfos)Hi.push(Pn(An,Ie,Gt.objectFlags&1024?Ne(Ie):void 0));let Nn=Gt.properties;if(!Nn)return Hi;let Ti=0;for(let An of Nn){if(Ti++,Ie.flags&2048){if(An.flags&4194304)continue;lh(An)&6&&Ie.tracker.reportPrivateInBaseOfClassExpression&&Ie.tracker.reportPrivateInBaseOfClassExpression(So(An.escapedName))}if(oe(Ie)&&Ti+2!(Oi.flags&32768)),0);for(let Oi of Xt){let kt=Bn(Oi,173,Ie,{name:co,questionToken:qo});vi.push(yt(kt))}if(Xt.length||!qo)return}let ps;vt(Ve,Ie)?ps=Ne(Ie):(tr&&(Ie.reverseMappedStack||(Ie.reverseMappedStack=[]),Ie.reverseMappedStack.push(Ve)),ps=On?uw(Ie,void 0,On,Ve):U.createKeywordTypeNode(133),tr&&Ie.reverseMappedStack.pop());let As=C0(Ve)?[U.createToken(148)]:void 0;As&&(Ie.approximateLength+=9);let at=U.createPropertySignature(As,co,qo,ps);vi.push(yt(at));function yt(Xt){var Oi;let kt=(Oi=Ve.declarations)==null?void 0:Oi.find(Zt=>Zt.kind===348);if(kt){let Zt=uM(kt.comment);Zt&&fk(Xt,[{kind:3,text:`* + * `+Zt.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Ve.valueDeclaration&&jt(Ie,Xt,Ve.valueDeclaration);return Xt}}function jt(Ve,Ie,vi){return Ve.enclosingFile&&Ve.enclosingFile===en(vi)?ud(Ie,vi):Ie}function xi(Ve,Ie,vi){if(Lt(Ve)){if(oe(Ie))if(vi){if(Ve.length>2)return[pe(Ve[0],Ie),U.createTypeReferenceNode(`... ${Ve.length-2} more ...`,void 0),pe(Ve[Ve.length-1],Ie)]}else return[U.createTypeReferenceNode("...",void 0)];let tr=!(Ie.flags&64)?Dm():void 0,On=[],Ln=0;for(let co of Ve){if(Ln++,oe(Ie)&&Ln+2{if(!b0e(qo,([ps],[As])=>Pi(ps,As)))for(let[ps,As]of qo)On[As]=pe(ps,Ie)}),co()}return On}}function Pi(Ve,Ie){return Ve===Ie||!!Ve.symbol&&Ve.symbol===Ie.symbol||!!Ve.aliasSymbol&&Ve.aliasSymbol===Ie.aliasSymbol}function Pn(Ve,Ie,vi){let Yi=Nhe(Ve)||"x",tr=pe(Ve.keyType,Ie),On=U.createParameterDeclaration(void 0,void 0,Yi,void 0,tr,void 0);return vi||(vi=pe(Ve.type||je,Ie)),!Ve.type&&!(Ie.flags&2097152)&&(Ie.encounteredError=!0),Ie.approximateLength+=Yi.length+4,U.createIndexSignature(Ve.isReadonly?[U.createToken(148)]:void 0,[On],vi)}function Bn(Ve,Ie,vi,Yi){var tr;let On,Ln,co=wXe(Ve,!0)[0],qo=wr(vi,Ve.declaration,co,Ve.typeParameters,Ve.parameters,Ve.mapper);vi.approximateLength+=3,vi.flags&32&&Ve.target&&Ve.mapper&&Ve.target.typeParameters?Ln=Ve.target.typeParameters.map(kt=>pe(Oo(kt,Ve.mapper),vi)):On=Ve.typeParameters&&Ve.typeParameters.map(kt=>Ys(kt,vi));let ps=ee(vi);vi.flags&=-257;let As=(Lt(co,kt=>kt!==co[co.length-1]&&!!(_u(kt)&32768))?Ve.parameters:co).map(kt=>Gl(kt,vi,Ie===176)),at=vi.flags&33554432?void 0:Qr(Ve,vi);at&&As.unshift(at),ps();let yt=Wi(vi,Ve),Xt=Yi?.modifiers;if(Ie===185&&Ve.flags&4){let kt=K0(Xt);Xt=U.createModifiersFromModifierFlags(kt|64)}let Oi=Ie===179?U.createCallSignature(On,As,yt):Ie===180?U.createConstructSignature(On,As,yt):Ie===173?U.createMethodSignature(Xt,Yi?.name??U.createIdentifier(""),Yi?.questionToken,On,As,yt):Ie===174?U.createMethodDeclaration(Xt,void 0,Yi?.name??U.createIdentifier(""),void 0,On,As,yt,void 0):Ie===176?U.createConstructorDeclaration(Xt,As,void 0):Ie===177?U.createGetAccessorDeclaration(Xt,Yi?.name??U.createIdentifier(""),As,yt,void 0):Ie===178?U.createSetAccessorDeclaration(Xt,Yi?.name??U.createIdentifier(""),As,void 0):Ie===181?U.createIndexSignature(Xt,As,yt):Ie===317?U.createJSDocFunctionType(As,yt):Ie===184?U.createFunctionTypeNode(On,As,yt??U.createTypeReferenceNode(U.createIdentifier(""))):Ie===185?U.createConstructorTypeNode(Xt,On,As,yt??U.createTypeReferenceNode(U.createIdentifier(""))):Ie===262?U.createFunctionDeclaration(Xt,void 0,Yi?.name?ea(Yi.name,et):U.createIdentifier(""),On,As,yt,void 0):Ie===218?U.createFunctionExpression(Xt,void 0,Yi?.name?ea(Yi.name,et):U.createIdentifier(""),On,As,yt,U.createBlock([])):Ie===219?U.createArrowFunction(Xt,On,As,yt,void 0,U.createBlock([])):B.assertNever(Ie);if(Ln&&(Oi.typeArguments=U.createNodeArray(Ln)),((tr=Ve.declaration)==null?void 0:tr.kind)===323&&Ve.declaration.parent.kind===339){let kt=Jl(Ve.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(Zt=>Zt.replace(/^\s+/," ")).join(` +`);DO(Oi,3,kt,!0)}return qo?.(),Oi}function $i(Ve){return vs(Ve)||ob(Ve)||yE(Ve)}function Ni(Ve){return vs(Ve)||ob(Ve)?Km(Ve).typeParameters:cT(Ve)?FEe(Ve):[GT(sr(Ve.typeParameter))]}function Zn(Ve){return vs(Ve)||ob(Ve)?Km(Ve).parameters:void 0}function wr(Ve,Ie,vi,Yi,tr,On){let Ln=Z6(Ve),co,qo,ps=Ve.enclosingDeclaration,As=Ve.mapper;if(On&&(Ve.mapper=On),Ve.enclosingDeclaration&&Ie){let yt=function(Xt,Oi){B.assert(Ve.enclosingDeclaration);let kt;rr(Ve.enclosingDeclaration).fakeScopeForSignatureDeclaration===Xt?kt=Ve.enclosingDeclaration:Ve.enclosingDeclaration.parent&&rr(Ve.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===Xt&&(kt=Ve.enclosingDeclaration.parent),B.assertOptionalNode(kt,Ds);let Zt=kt?.locals??ta(),rn,Gt;if(Oi((Hi,Nn)=>{if(kt){let Ti=Zt.get(Hi);Ti?Gt=hi(Gt,{name:Hi,oldSymbol:Ti}):rn=hi(rn,Hi)}Zt.set(Hi,Nn)}),kt)return function(){re(rn,Nn=>Zt.delete(Nn)),re(Gt,Nn=>Zt.set(Nn.name,Nn.oldSymbol))};{let Hi=U.createBlock(F);rr(Hi).fakeScopeForSignatureDeclaration=Xt,Hi.locals=Zt,ic(Hi,Ve.enclosingDeclaration),Ve.enclosingDeclaration=Hi}};var at=yt;co=Lt(vi)?yt("params",Xt=>{if(vi)for(let Oi=0;Oi{if(To(rn)&&Rs(rn.name))return Gt(rn.name),!0;return;function Gt(Nn){re(Nn.elements,Ti=>{switch(Ti.kind){case 232:return;case 208:return Hi(Ti);default:return B.assertNever(Ti)}})}function Hi(Nn){if(Rs(Nn.name))return Gt(Nn.name);let Ti=sr(Nn);Xt(Ti.escapedName,Ti)}})||Xt(kt.escapedName,kt)}}):void 0,Ve.flags&4&&Lt(Yi)&&(qo=yt("typeParams",Xt=>{for(let Oi of Yi??F){let kt=$d(Oi,Ve).escapedText;Xt(kt,Oi.symbol)}}))}return()=>{co?.(),qo?.(),Ln(),Ve.enclosingDeclaration=ps,Ve.mapper=As}}function Qr(Ve,Ie){if(Ve.thisParameter)return Gl(Ve.thisParameter,Ie);if(Ve.declaration&&Jn(Ve.declaration)){let vi=az(Ve.declaration);if(vi&&vi.typeExpression)return U.createParameterDeclaration(void 0,void 0,"this",void 0,pe(n(Ie,vi.typeExpression),Ie))}}function Cr(Ve,Ie,vi){let Yi=ee(Ie);Ie.flags&=-513;let tr=U.createModifiersFromModifierFlags(eDe(Ve)),On=$d(Ve,Ie),Ln=YT(Ve),co=Ln&&pe(Ln,Ie);return Yi(),U.createTypeParameterDeclaration(tr,On,vi,co)}function ra(Ve,Ie,vi){return Ie&&E(vi,Ie,Ve)||pe(Ve,vi)}function Ys(Ve,Ie,vi=V_(Ve)){let Yi=vi&&ra(vi,Dae(Ve),Ie);return Cr(Ve,Ie,Yi)}function _l(Ve,Ie){let vi=Ve.kind===2||Ve.kind===3?U.createToken(131):void 0,Yi=Ve.kind===1||Ve.kind===3?Hn(U.createIdentifier(Ve.parameterName),16777216):U.createThisTypeNode(),tr=Ve.type&&pe(Ve.type,Ie);return U.createTypePredicateNode(vi,Yi,tr)}function us(Ve){let Ie=bl(Ve,169);if(Ie)return Ie;if(!jv(Ve))return bl(Ve,341)}function Gl(Ve,Ie,vi){let Yi=us(Ve),tr=Wn(Ve),On=uw(Ie,Yi,tr,Ve),Ln=!(Ie.flags&8192)&&vi&&Yi&&Kh(Yi)?_i(Bw(Yi),U.cloneNode):void 0,qo=Yi&&Jy(Yi)||_u(Ve)&32768?U.createToken(26):void 0,ps=af(Ve,Yi,Ie),at=Yi&&s$(Yi)||_u(Ve)&16384?U.createToken(58):void 0,yt=U.createParameterDeclaration(Ln,qo,ps,at,On,void 0);return Ie.approximateLength+=fu(Ve).length+3,yt}function af(Ve,Ie,vi){return Ie&&Ie.name?Ie.name.kind===80?Hn(U.cloneNode(Ie.name),16777216):Ie.name.kind===166?Hn(U.cloneNode(Ie.name.right),16777216):Yi(Ie.name):fu(Ve);function Yi(tr){return On(tr);function On(Ln){vi.tracker.canTrackSymbol&&Ma(Ln)&&Sae(Ln)&&nu(Ln.expression,vi.enclosingDeclaration,vi);let co=Qi(Ln,On,void 0,void 0,On);return Wa(co)&&(co=U.updateBindingElement(co,co.dotDotDotToken,co.propertyName,co.name,void 0)),Uc(co)||(co=U.cloneNode(co)),Hn(co,16777217)}}}function nu(Ve,Ie,vi){if(!vi.tracker.canTrackSymbol)return;let Yi=hp(Ve),tr=ni(Yi,Yi.escapedText,1160127,void 0,!0);tr&&vi.tracker.trackSymbol(tr,Ie,111551)}function ln(Ve,Ie,vi,Yi){return Ie.tracker.trackSymbol(Ve,Ie.enclosingDeclaration,vi),kn(Ve,Ie,vi,Yi)}function kn(Ve,Ie,vi,Yi){let tr;return!(Ve.flags&262144)&&(Ie.enclosingDeclaration||Ie.flags&64)&&!(Ie.internalFlags&4)?(tr=B.checkDefined(Ln(Ve,vi,!0)),B.assert(tr&&tr.length>0)):tr=[Ve],tr;function Ln(co,qo,ps){let As=BS(co,Ie.enclosingDeclaration,qo,!!(Ie.flags&128)),at;if(!As||rm(As[0],Ie.enclosingDeclaration,As.length===1?qo:p0(qo))){let Xt=vA(As?As[0]:co,Ie.enclosingDeclaration,qo);if(K(Xt)){at=Xt.map(Zt=>Lt(Zt.declarations,iC)?ga(Zt,Ie):void 0);let Oi=Xt.map((Zt,rn)=>rn);Oi.sort(yt);let kt=Oi.map(Zt=>Xt[Zt]);for(let Zt of kt){let rn=Ln(Zt,p0(qo),!1);if(rn){if(Zt.exports&&Zt.exports.get("export=")&&sg(Zt.exports.get("export="),co)){As=rn;break}As=rn.concat(As||[UT(Zt,co)||co]);break}}}}if(As)return As;if(ps||!(co.flags&6144))return!ps&&!Yi&&re(co.declarations,iC)?void 0:[co];function yt(Xt,Oi){let kt=at[Xt],Zt=at[Oi];if(kt&&Zt){let rn=Nm(Zt);return Nm(kt)===rn?_U(kt)-_U(Zt):rn?-1:1}return 0}}}function ko(Ve,Ie){let vi;return Q6(Ve).flags&524384&&(vi=U.createNodeArray(_i(Ag(Ve),tr=>Ys(tr,Ie)))),vi}function $n(Ve,Ie,vi){var Yi;B.assert(Ve&&0<=Ie&&IeHS(As,qo.links.mapper)),vi)}else Ln=ko(tr,vi)}return Ln}function ss(Ve){return lT(Ve.objectType)?ss(Ve.objectType):Ve}function ga(Ve,Ie,vi){let Yi=bl(Ve,307);if(!Yi){let at=Le(Ve.declarations,yt=>HT(yt,Ve));at&&(Yi=bl(at,307))}if(Yi&&Yi.moduleName!==void 0)return Yi.moduleName;if(!Yi&&Kve.test(Ve.escapedName))return Ve.escapedName.substring(1,Ve.escapedName.length-1);if(!Ie.enclosingFile||!Ie.tracker.moduleResolverHost)return Kve.test(Ve.escapedName)?Ve.escapedName.substring(1,Ve.escapedName.length-1):en(XQ(Ve)).fileName;let tr=El(Ie.enclosingDeclaration),On=nge(tr)?XP(tr):void 0,Ln=Ie.enclosingFile,co=vi||On&&e.getModeForUsageLocation(Ln,On)||Ln&&e.getDefaultResolutionModeForFile(Ln),qo=ZO(Ln.path,co),ps=Po(Ve),As=ps.specifierCache&&ps.specifierCache.get(qo);if(!As){let at=!!$.outFile,{moduleResolverHost:yt}=Ie.tracker,Xt=at?{...$,baseUrl:yt.getCommonSourceDirectory()}:$;As=Ta(i5e(Ve,Sn,Xt,Ln,yt,{importModuleSpecifierPreference:at?"non-relative":"project-relative",importModuleSpecifierEnding:at?"minimal":co===99?"js":void 0},{overrideImportMode:vi})),ps.specifierCache??(ps.specifierCache=new Map),ps.specifierCache.set(qo,As)}return As}function pl(Ve){let Ie=U.createIdentifier(So(Ve.escapedName));return Ve.parent?U.createQualifiedName(pl(Ve.parent),Ie):Ie}function ru(Ve,Ie,vi,Yi){let tr=ln(Ve,Ie,vi,!(Ie.flags&16384)),On=vi===111551;if(Lt(tr[0].declarations,iC)){let qo=tr.length>1?co(tr,tr.length-1,1):void 0,ps=Yi||$n(tr,0,Ie),As=en(El(Ie.enclosingDeclaration)),at=Nz(tr[0]),yt,Xt;if(($f($)===3||$f($)===99)&&at?.impliedNodeFormat===99&&at.impliedNodeFormat!==As?.impliedNodeFormat&&(yt=ga(tr[0],Ie,99),Xt=U.createImportAttributes(U.createNodeArray([U.createImportAttribute(U.createStringLiteral("resolution-mode"),U.createStringLiteral("import"))]))),yt||(yt=ga(tr[0],Ie)),!(Ie.flags&67108864)&&$f($)!==1&&yt.includes("/node_modules/")){let kt=yt;if($f($)===3||$f($)===99){let Zt=As?.impliedNodeFormat===99?1:99;yt=ga(tr[0],Ie,Zt),yt.includes("/node_modules/")?yt=kt:Xt=U.createImportAttributes(U.createNodeArray([U.createImportAttribute(U.createStringLiteral("resolution-mode"),U.createStringLiteral(Zt===99?"import":"require"))]))}Xt||(Ie.encounteredError=!0,Ie.tracker.reportLikelyUnsafeImportRequiredError&&Ie.tracker.reportLikelyUnsafeImportRequiredError(kt))}let Oi=U.createLiteralTypeNode(U.createStringLiteral(yt));if(Ie.approximateLength+=yt.length+10,!qo||G_(qo)){if(qo){let kt=et(qo)?qo:qo.right;uS(kt,void 0)}return U.createImportTypeNode(Oi,Xt,qo,ps,On)}else{let kt=ss(qo),Zt=kt.objectType.typeName;return U.createIndexedAccessTypeNode(U.createImportTypeNode(Oi,Xt,Zt,ps,On),kt.indexType)}}let Ln=co(tr,tr.length-1,0);if(lT(Ln))return Ln;if(On)return U.createTypeQueryNode(Ln);{let qo=et(Ln)?Ln:Ln.right,ps=pE(qo);return uS(qo,void 0),U.createTypeReferenceNode(Ln,ps)}function co(qo,ps,As){let at=ps===qo.length-1?Yi:$n(qo,ps,Ie),yt=qo[ps],Xt=qo[ps-1],Oi;if(ps===0)Ie.flags|=16777216,Oi=rC(yt,Ie),Ie.approximateLength+=(Oi?Oi.length:0)+1,Ie.flags^=16777216;else if(Xt&&W_(Xt)){let Zt=W_(Xt);Vd(Zt,(rn,Gt)=>{if(sg(rn,yt)&&!tB(Gt)&&Gt!=="export=")return Oi=So(Gt),!0})}if(Oi===void 0){let Zt=Le(yt.declarations,cs);if(Zt&&Ma(Zt)&&G_(Zt.expression)){let rn=co(qo,ps-1,As);return G_(rn)?U.createIndexedAccessTypeNode(U.createParenthesizedType(U.createTypeQueryNode(rn)),U.createTypeQueryNode(Zt.expression)):rn}Oi=rC(yt,Ie)}if(Ie.approximateLength+=Oi.length+1,!(Ie.flags&16)&&Xt&&lC(Xt)&&lC(Xt).get(yt.escapedName)&&sg(lC(Xt).get(yt.escapedName),yt)){let Zt=co(qo,ps-1,As);return lT(Zt)?U.createIndexedAccessTypeNode(Zt,U.createLiteralTypeNode(U.createStringLiteral(Oi))):U.createIndexedAccessTypeNode(U.createTypeReferenceNode(Zt,at),U.createLiteralTypeNode(U.createStringLiteral(Oi)))}let kt=Hn(U.createIdentifier(Oi),16777216);if(at&&uS(kt,U.createNodeArray(at)),kt.symbol=yt,ps>As){let Zt=co(qo,ps-1,As);return G_(Zt)?U.createQualifiedName(Zt,kt):B.fail("Impossible construct - an export of an indexed access cannot be reachable")}return kt}}function Va(Ve,Ie,vi){let Yi=ni(Ie.enclosingDeclaration,Ve,788968,void 0,!1);return Yi&&Yi.flags&262144?Yi!==vi.symbol:!1}function $d(Ve,Ie){var vi,Yi,tr,On;if(Ie.flags&4&&Ie.typeParameterNames){let qo=Ie.typeParameterNames.get(rf(Ve));if(qo)return qo}let Ln=gu(Ve.symbol,Ie,788968,!0);if(!(Ln.kind&80))return U.createIdentifier("(Missing type parameter)");let co=(Yi=(vi=Ve.symbol)==null?void 0:vi.declarations)==null?void 0:Yi[0];if(co&&Sl(co)&&(Ln=d(Ie,Ln,co.name)),Ie.flags&4){let qo=Ln.escapedText,ps=((tr=Ie.typeParameterNamesByTextNextNameCount)==null?void 0:tr.get(qo))||0,As=qo;for(;(On=Ie.typeParameterNamesByText)!=null&&On.has(As)||Va(As,Ie,Ve);)ps++,As=`${qo}_${ps}`;if(As!==qo){let at=pE(Ln);Ln=U.createIdentifier(As),uS(Ln,at)}Ie.mustCreateTypeParametersNamesLookups&&(Ie.mustCreateTypeParametersNamesLookups=!1,Ie.typeParameterNames=new Map(Ie.typeParameterNames),Ie.typeParameterNamesByTextNextNameCount=new Map(Ie.typeParameterNamesByTextNextNameCount),Ie.typeParameterNamesByText=new Set(Ie.typeParameterNamesByText)),Ie.typeParameterNamesByTextNextNameCount.set(qo,ps),Ie.typeParameterNames.set(rf(Ve),Ln),Ie.typeParameterNamesByText.add(As)}return Ln}function gu(Ve,Ie,vi,Yi){let tr=ln(Ve,Ie,vi);return Yi&&tr.length!==1&&!Ie.encounteredError&&!(Ie.flags&65536)&&(Ie.encounteredError=!0),On(tr,tr.length-1);function On(Ln,co){let qo=$n(Ln,co,Ie),ps=Ln[co];co===0&&(Ie.flags|=16777216);let As=rC(ps,Ie);co===0&&(Ie.flags^=16777216);let at=Hn(U.createIdentifier(As),16777216);return qo&&uS(at,U.createNodeArray(qo)),at.symbol=ps,co>0?U.createQualifiedName(On(Ln,co-1),at):at}}function qc(Ve,Ie,vi){let Yi=ln(Ve,Ie,vi);return tr(Yi,Yi.length-1);function tr(On,Ln){let co=$n(On,Ln,Ie),qo=On[Ln];Ln===0&&(Ie.flags|=16777216);let ps=rC(qo,Ie);Ln===0&&(Ie.flags^=16777216);let As=ps.charCodeAt(0);if(VM(As)&&Lt(qo.declarations,iC))return U.createStringLiteral(ga(qo,Ie));if(Ln===0||bee(ps,te)){let at=Hn(U.createIdentifier(ps),16777216);return co&&uS(at,U.createNodeArray(co)),at.symbol=qo,Ln>0?U.createPropertyAccessExpression(tr(On,Ln-1),at):at}else{As===91&&(ps=ps.substring(1,ps.length-1),As=ps.charCodeAt(0));let at;if(VM(As)&&!(qo.flags&8)?at=U.createStringLiteral(sh(ps).replace(/\\./g,yt=>yt.substring(1)),As===39):""+ +ps===ps&&(at=U.createNumericLiteral(+ps)),!at){let yt=Hn(U.createIdentifier(ps),16777216);co&&uS(yt,U.createNodeArray(co)),yt.symbol=qo,at=yt}return U.createElementAccessExpression(tr(On,Ln-1),at)}}}function Ym(Ve){let Ie=cs(Ve);return Ie?Ma(Ie)?!!(Ho(Ie.expression).flags&402653316):nl(Ie)?!!(Ho(Ie.argumentExpression).flags&402653316):Da(Ie):!1}function Eu(Ve){let Ie=cs(Ve);return!!(Ie&&Da(Ie)&&(Ie.singleQuote||!Uc(Ie)&&Ro(Jl(Ie,!1),"'")))}function Ru(Ve,Ie){let vi=!!K(Ve.declarations)&&Et(Ve.declarations,Ym),Yi=!!K(Ve.declarations)&&Et(Ve.declarations,Eu),tr=!!(Ve.flags&8192),On=GS(Ve,Ie,Yi,vi,tr);if(On)return On;let Ln=So(Ve.escapedName);return eH(Ln,Oa($),Yi,vi,tr)}function GS(Ve,Ie,vi,Yi,tr){let On=Po(Ve).nameType;if(On){if(On.flags&384){let Ln=""+On.value;return!pp(Ln,Oa($))&&(Yi||!Kv(Ln))?U.createStringLiteral(Ln,!!vi):Kv(Ln)&&Ro(Ln,"-")?U.createComputedPropertyName(U.createPrefixUnaryExpression(41,U.createNumericLiteral(-Ln))):eH(Ln,Oa($),vi,Yi,tr)}if(On.flags&8192)return U.createComputedPropertyName(qc(On.symbol,Ie,111551))}}function Z6(Ve){let Ie=Ve.mustCreateTypeParameterSymbolList,vi=Ve.mustCreateTypeParametersNamesLookups;Ve.mustCreateTypeParameterSymbolList=!0,Ve.mustCreateTypeParametersNamesLookups=!0;let Yi=Ve.typeParameterNames,tr=Ve.typeParameterNamesByText,On=Ve.typeParameterNamesByTextNextNameCount,Ln=Ve.typeParameterSymbolList;return()=>{Ve.typeParameterNames=Yi,Ve.typeParameterNamesByText=tr,Ve.typeParameterNamesByTextNextNameCount=On,Ve.typeParameterSymbolList=Ln,Ve.mustCreateTypeParameterSymbolList=Ie,Ve.mustCreateTypeParametersNamesLookups=vi}}function CF(Ve,Ie){return Ve.declarations&&St(Ve.declarations,vi=>!!ule(vi)&&(!Ie||!!Ri(vi,Yi=>Yi===Ie)))}function kF(Ve,Ie){if(!(_r(Ie)&4)||!pm(Ve))return!0;c$(Ve);let vi=rr(Ve).resolvedSymbol,Yi=vi&&Qc(vi);return!Yi||Yi!==Ie.target?!0:K(Ve.typeArguments)>=by(Ie.target.typeParameters)}function xm(Ve){for(;rr(Ve).fakeScopeForSignatureDeclaration;)Ve=Ve.parent;return Ve}function uw(Ve,Ie,vi,Yi){var tr,On;let Ln=Ie&&(To(Ie)||ph(Ie))&&lle(Ie,Ve.enclosingDeclaration),co=Ve.enclosingDeclaration,qo=ee(Ve);if(Ie&&P0e(Ie)&&!(Ve.internalFlags&2)&&Fe.serializeTypeOfDeclaration(Ie,Ve),Ve.internalFlags|=2,co&&(!le(vi)||Ve.internalFlags&8)){let yt=Ie&&ule(Ie)?Ie:CF(Yi);if(yt&&!Oc(yt)&&!Lm(yt)){let Xt=ule(yt),Oi=Ln||!!(Yi.flags&4&&Yi.flags&16777216&&m4(yt)&&((tr=Yi.links)!=null&&tr.mappedType)&&_Qe(vi)),kt=!CN(Xt)&&C(Ve,Xt,vi,yt,Oi);if(kt)return qo(),kt}}vi.flags&8192&&vi.symbol===Yi&&(!Ve.enclosingDeclaration||Lt(Yi.declarations,yt=>en(yt)===en(Ve.enclosingDeclaration)))&&(Ve.flags|=1048576);let ps=Ie??Yi.valueDeclaration??((On=Yi.declarations)==null?void 0:On[0]),As=ps&&FKt(ps)?Eit(ps):void 0,at=m(Ve,As,vi,Ln);return qo(),at}function ii(Ve,Ie,vi){return vi===Ie?!0:Ve&&(To(Ve)||ep(Ve)||ls(Ve))&&Ve.questionToken?lg(Ie,524288)===vi:!1}function Wi(Ve,Ie){let vi=Ve.flags&256,Yi=ee(Ve);vi&&(Ve.flags&=-257);let tr,On=vc(Ie);return On&&!(vi&&pc(On))?(Ie.declaration&&!(Ve.internalFlags&2)&&Fe.serializeReturnTypeForSignature(Ie.declaration,Ve),Ve.internalFlags|=2,tr=pn(Ve,Ie)):vi||(tr=U.createKeywordTypeNode(133)),Yi(),tr}function pn(Ve,Ie){let vi=wh(Ie),Yi=vc(Ie);if(Ve.enclosingDeclaration&&(!le(Yi)||Ve.internalFlags&8)&&Ie.declaration&&!Uc(Ie.declaration)){let On=JKt(Ie.declaration);if(On){let Ln=C(Ve,On,Yi,Ve.enclosingDeclaration);if(Ln)return Ln}}if(vi)return _l(vi,Ve);let tr=Ie.declaration&&Eit(Ie.declaration);return m(Ve,tr,Yi)}function wn(Ve,Ie){let vi=!1,Yi=hp(Ve);if(Jn(Ve)&&(aE(Yi)||Vv(Yi.parent)||P_(Yi.parent)&&dZ(Yi.parent.left)&&aE(Yi.parent.right)))return vi=!0,{introducesError:vi,node:Ve};let tr=q9(Ve),On;if(bx(Yi))return On=sr(f_(Yi,!1,!1)),m0(On,Yi,tr,!1).accessibility!==0&&(vi=!0,Ie.tracker.reportInaccessibleThisError()),{introducesError:vi,node:Ln(Ve)};if(On=Ml(Yi,tr,!0,!0),Ie.enclosingDeclaration&&!(On&&On.flags&262144)){On=im(On);let co=Ml(Yi,tr,!0,!0,Ie.enclosingDeclaration);if(co===ct||co===void 0&&On!==void 0||co&&On&&!sg(im(co),On))return co!==ct&&Ie.tracker.reportInferenceFallback(Ve),vi=!0,{introducesError:vi,node:Ve,sym:On};On=co}if(On)return On.flags&1&&On.valueDeclaration&&(lk(On.valueDeclaration)||ph(On.valueDeclaration))?{introducesError:vi,node:Ln(Ve)}:(!(On.flags&262144)&&!Xy(Ve)&&m0(On,Ie.enclosingDeclaration,tr,!1).accessibility!==0?(Ie.tracker.reportInferenceFallback(Ve),vi=!0):Ie.tracker.trackSymbol(On,Ie.enclosingDeclaration,tr),{introducesError:vi,node:Ln(Ve)});return{introducesError:vi,node:Ve};function Ln(co){if(co===Yi){let ps=Qc(On),As=On.flags&262144?$d(ps,Ie):U.cloneNode(co);return As.symbol=On,d(Ie,Hn(As,16777216),co)}let qo=Qi(co,ps=>Ln(ps),void 0);return qo!==co&&d(Ie,qo,co),qo}}function ar(Ve,Ie,vi,Yi){let tr=vi?111551:788968,On=Ml(Ie,tr,!0);if(!On)return;let Ln=On.flags&2097152?xf(On):On;if(m0(On,Ve.enclosingDeclaration,tr,!1).accessibility===0)return ru(Ln,Ve,tr,Yi)}function Wr(Ve,Ie){if(Jn(Ie)&&eS(Ie)){KYe(Ie);let vi=rr(Ie).resolvedSymbol;return!vi||!(!Ie.isTypeOf&&!(vi.flags&788968)||!(K(Ie.typeArguments)>=by(Ag(vi))))}if(v4(Ie))return Ve.mapper===void 0?!0:!!n(Ve,Ie,!0);if(pm(Ie)){if(qg(Ie))return!1;let vi=c$(Ie),Yi=rr(Ie).resolvedSymbol;if(!Yi)return!1;if(Yi.flags&262144){let tr=Qc(Yi);if(Ve.mapper&&HS(tr,Ve.mapper)!==tr)return!1}if(jM(Ie))return kF(Ie,vi)&&!sYe(Ie)&&Yi.flags&788968}if(_k(Ie)&&Ie.operator===158&&Ie.type.kind===155){let vi=Ve.enclosingDeclaration&&xm(Ve.enclosingDeclaration);return!!Ri(Ie,Yi=>Yi===vi)}return!0}function Sa(Ve,Ie){let vi=n(Ve,Ie);return pe(vi,Ve)}function Na(Ve,Ie){a&&a.throwIfCancellationRequested&&a.throwIfCancellationRequested();let vi=!1,{finalizeBoundary:Yi,startRecoveryScope:tr}=co(),On=pt(Ie,Ln,io);if(!Yi())return;return Ve.approximateLength+=Ie.end-Ie.pos,On;function Ln(kt){if(vi)return kt;let Zt=tr(),rn=$i(kt)?qo(kt):void 0,Gt=Oi(kt);return rn?.(),vi?io(kt)&&!CN(kt)?(Zt(),Sa(Ve,kt)):kt:Gt?d(Ve,Gt,kt):void 0}function co(){let kt,Zt,rn=Ve.tracker,Gt=Ve.trackedSymbols;Ve.trackedSymbols=void 0;let Hi=Ve.encounteredError;return Ve.tracker=new Qve(Ve,{...rn.inner,reportCyclicStructureError(){Nn(()=>rn.reportCyclicStructureError())},reportInaccessibleThisError(){Nn(()=>rn.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){Nn(()=>rn.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(yn){Nn(()=>rn.reportLikelyUnsafeImportRequiredError(yn))},reportNonSerializableProperty(yn){Nn(()=>rn.reportNonSerializableProperty(yn))},trackSymbol(yn,br,no){return(kt??(kt=[])).push([yn,br,no]),!1},moduleResolverHost:Ve.tracker.moduleResolverHost},Ve.tracker.moduleResolverHost),{startRecoveryScope:Ti,finalizeBoundary:An};function Nn(yn){vi=!0,(Zt??(Zt=[])).push(yn)}function Ti(){let yn=kt?.length??0,br=Zt?.length??0;return()=>{vi=!1,kt&&(kt.length=yn),Zt&&(Zt.length=br)}}function An(){return Ve.tracker=rn,Ve.trackedSymbols=Gt,Ve.encounteredError=Hi,Zt?.forEach(yn=>yn()),vi?!1:(kt?.forEach(([yn,br,no])=>Ve.tracker.trackSymbol(yn,br,no)),!0)}}function qo(kt){return wr(Ve,kt,Zn(kt),Ni(kt))}function ps(kt){let Zt=X3(kt);switch(Zt.kind){case 183:return Xt(Zt);case 186:return yt(Zt);case 199:return As(Zt);case 198:let rn=Zt;if(rn.operator===143)return at(rn)}return pt(kt,Ln,io)}function As(kt){let Zt=ps(kt.objectType);if(Zt!==void 0)return U.updateIndexedAccessTypeNode(kt,Zt,pt(kt.indexType,Ln,io))}function at(kt){B.assertEqual(kt.operator,143);let Zt=ps(kt.type);if(Zt!==void 0)return U.updateTypeOperatorNode(kt,Zt)}function yt(kt){let{introducesError:Zt,node:rn}=wn(kt.exprName,Ve);if(!Zt)return U.updateTypeQueryNode(kt,rn,mn(kt.typeArguments,Ln,io));let Gt=ar(Ve,kt.exprName,!0);if(Gt)return d(Ve,Gt,kt.exprName)}function Xt(kt){if(Wr(Ve,kt)){let{introducesError:Zt,node:rn}=wn(kt.typeName,Ve),Gt=mn(kt.typeArguments,Ln,io);if(Zt){let Hi=ar(Ve,kt.typeName,!1,Gt);if(Hi)return d(Ve,Hi,kt.typeName)}else{let Hi=U.updateTypeReferenceNode(kt,rn,Gt);return d(Ve,Hi,kt)}}}function Oi(kt){if(yk(kt))return pt(kt.type,Ln,io);if(yye(kt)||kt.kind===319)return U.createKeywordTypeNode(133);if(vye(kt))return U.createKeywordTypeNode(159);if(C4(kt))return U.createUnionTypeNode([pt(kt.type,Ln,io),U.createLiteralTypeNode(U.createNull())]);if(Jee(kt))return U.createUnionTypeNode([pt(kt.type,Ln,io),U.createKeywordTypeNode(157)]);if(wH(kt))return pt(kt.type,Ln);if(TH(kt))return U.createArrayTypeNode(pt(kt.type,Ln,io));if(CE(kt))return U.createTypeLiteralNode(_i(kt.jsDocPropertyTags,Ti=>{let An=pt(et(Ti.name)?Ti.name:Ti.name.right,Ln,et),yn=Mu(n(Ve,kt),An.escapedText),br=yn&&Ti.typeExpression&&n(Ve,Ti.typeExpression.type)!==yn?pe(yn,Ve):void 0;return U.createPropertySignature(void 0,An,Ti.isBracketed||Ti.typeExpression&&Jee(Ti.typeExpression.type)?U.createToken(58):void 0,br||Ti.typeExpression&&pt(Ti.typeExpression.type,Ln,io)||U.createKeywordTypeNode(133))}));if(pm(kt)&&et(kt.typeName)&&kt.typeName.escapedText==="")return cr(U.createKeywordTypeNode(133),kt);if((nb(kt)||pm(kt))&&Zz(kt))return U.createTypeLiteralNode([U.createIndexSignature(void 0,[U.createParameterDeclaration(void 0,void 0,"x",void 0,pt(kt.typeArguments[0],Ln,io))],pt(kt.typeArguments[1],Ln,io))]);if(k4(kt))if(QP(kt)){let Ti;return U.createConstructorTypeNode(void 0,mn(kt.typeParameters,Ln,Sl),ro(kt.parameters,(An,yn)=>An.name&&et(An.name)&&An.name.escapedText==="new"?(Ti=An.type,void 0):U.createParameterDeclaration(void 0,Gt(An),d(Ve,U.createIdentifier(Hi(An,yn)),An),U.cloneNode(An.questionToken),pt(An.type,Ln,io),void 0)),pt(Ti||kt.type,Ln,io)||U.createKeywordTypeNode(133))}else return U.createFunctionTypeNode(mn(kt.typeParameters,Ln,Sl),_i(kt.parameters,(Ti,An)=>U.createParameterDeclaration(void 0,Gt(Ti),d(Ve,U.createIdentifier(Hi(Ti,An)),Ti),U.cloneNode(Ti.questionToken),pt(Ti.type,Ln,io),void 0)),pt(kt.type,Ln,io)||U.createKeywordTypeNode(133));if(v4(kt))return Wr(Ve,kt)||(vi=!0),kt;if(Sl(kt))return U.updateTypeParameterDeclaration(kt,mn(kt.modifiers,Ln,xa),d(Ve,$d(Qc(sr(kt)),Ve),kt),pt(kt.constraint,Ln,io),pt(kt.default,Ln,io));if(lT(kt)){let Ti=As(kt);return Ti||(vi=!0,kt)}if(pm(kt)){let Ti=Xt(kt);return Ti||(vi=!0,kt)}if(eS(kt)){let Ti=rr(kt).resolvedSymbol;return jM(kt)&&Ti&&(!kt.isTypeOf&&!(Ti.flags&788968)||!(K(kt.typeArguments)>=by(Ag(Ti))))?d(Ve,pe(n(Ve,kt),Ve),kt):U.updateImportTypeNode(kt,U.updateLiteralTypeNode(kt.argument,Nn(kt,kt.argument.literal)),pt(kt.attributes,Ln,bE),pt(kt.qualifier,Ln,G_),mn(kt.typeArguments,Ln,io),kt.isTypeOf)}if(pf(kt)&&kt.name.kind===167&&!Sae(kt.name)){if(!Y1(kt))return Zt(kt,Ln);if(!(Ve.internalFlags&8&&Xc(kt.name.expression)&&Cy(kt.name).flags&1))return}if(vs(kt)&&!kt.type||ls(kt)&&!kt.type&&!kt.initializer||ep(kt)&&!kt.type&&!kt.initializer||To(kt)&&!kt.type&&!kt.initializer){let Ti=Zt(kt,Ln);return Ti===kt&&(Ti=d(Ve,U.cloneNode(kt),kt)),Ti.type=U.createKeywordTypeNode(133),To(kt)&&(Ti.modifiers=void 0),Ti}if(aT(kt)){let Ti=yt(kt);return Ti||(vi=!0,kt)}if(Ma(kt)&&Xc(kt.expression)){let{node:Ti,introducesError:An}=wn(kt.expression,Ve);if(An){let yn=Ap(rNe(kt.expression)),br=pe(yn,Ve),no;if(dS(br))no=br.literal;else{let Mr=oit(kt.expression),ms=typeof Mr.value=="string"?U.createStringLiteral(Mr.value,void 0):typeof Mr.value=="number"?U.createNumericLiteral(Mr.value,0):void 0;if(!ms)return ey(br)&&nu(kt.expression,Ve.enclosingDeclaration,Ve),kt;no=ms}return no.kind===11&&pp(no.text,Oa($))?U.createIdentifier(no.text):no.kind===9&&!no.text.startsWith("-")?no:U.updateComputedPropertyName(kt,no)}else return U.updateComputedPropertyName(kt,Ti)}if(CN(kt)){let Ti;if(et(kt.parameterName)){let{node:An,introducesError:yn}=wn(kt.parameterName,Ve);vi=vi||yn,Ti=An}else Ti=U.cloneNode(kt.parameterName);return U.updateTypePredicateNode(kt,U.cloneNode(kt.assertsModifier),Ti,pt(kt.type,Ln,io))}if(kN(kt)||L_(kt)||yE(kt)){let Ti=Zt(kt,Ln),An=d(Ve,Ti===kt?U.cloneNode(kt):Ti,kt),yn=ja(An);return Hn(An,yn|(Ve.flags&1024&&L_(kt)?0:1)),An}if(Da(kt)&&Ve.flags&268435456&&!kt.singleQuote){let Ti=U.cloneNode(kt);return Ti.singleQuote=!0,Ti}if(cT(kt)){let Ti=pt(kt.checkType,Ln,io),An=qo(kt),yn=pt(kt.extendsType,Ln,io),br=pt(kt.trueType,Ln,io);An();let no=pt(kt.falseType,Ln,io);return U.updateConditionalTypeNode(kt,Ti,yn,br,no)}if(_k(kt)){if(kt.operator===158&&kt.type.kind===155){if(!Wr(Ve,kt))return vi=!0,kt}else if(kt.operator===143){let Ti=at(kt);return Ti||(vi=!0,kt)}}return Zt(kt,Ln);function Zt(Ti,An){let yn=!Ve.enclosingFile||Ve.enclosingFile!==en(Ti);return Qi(Ti,An,void 0,yn?rn:void 0)}function rn(Ti,An,yn,br,no){let Mr=mn(Ti,An,yn,br,no);return Mr&&(Mr.pos!==-1||Mr.end!==-1)&&(Mr===Ti&&(Mr=U.createNodeArray(Ti.slice(),Ti.hasTrailingComma)),Qg(Mr,-1,-1)),Mr}function Gt(Ti){return Ti.dotDotDotToken||(Ti.type&&TH(Ti.type)?U.createToken(26):void 0)}function Hi(Ti,An){return Ti.name&&et(Ti.name)&&Ti.name.escapedText==="this"?"this":Gt(Ti)?"args":`arg${An}`}function Nn(Ti,An){if(Ve.bundled||Ve.enclosingFile!==en(An)){let yn=An.text,br=rr(kt).resolvedSymbol,no=Ti.isTypeOf?111551:788968,Mr=br&&m0(br,Ve.enclosingDeclaration,no,!1).accessibility===0&&ln(br,Ve,no,!0)[0];if(Mr&&jP(Mr))yn=ga(Mr,Ve);else{let ms=uNe(Ti);ms&&(yn=ga(ms.symbol,Ve))}if(yn.includes("/node_modules/")&&(Ve.encounteredError=!0,Ve.tracker.reportLikelyUnsafeImportRequiredError&&Ve.tracker.reportLikelyUnsafeImportRequiredError(yn)),yn!==An.text)return cr(U.createStringLiteral(yn),An)}return pt(An,Ln,Da)}}}function Zc(Ve,Ie){var vi;let Yi=Jit(U.createPropertyDeclaration,174,!0),tr=Jit((Kt,yr,Zr,Hr)=>U.createPropertySignature(Kt,yr,Zr,Hr),173,!1),On=Ie.enclosingDeclaration,Ln=[],co=new Set,qo=[],ps=Ie;Ie={...ps,usedSymbolNames:new Set(ps.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((vi=ps.remappedSymbolReferences)==null?void 0:vi.entries()),tracker:void 0};let As={...ps.tracker.inner,trackSymbol:(Kt,yr,Zr)=>{var Hr,Ir;if((Hr=Ie.remappedSymbolNames)!=null&&Hr.has(Ca(Kt)))return!1;if(m0(Kt,yr,Zr,!1).accessibility===0){let _a=kn(Kt,Ie,Zr);if(!(Kt.flags&4)){let Ws=_a[0],Os=en(ps.enclosingDeclaration);Lt(Ws.declarations,bc=>en(bc)===Os)&&br(Ws)}}else if((Ir=ps.tracker.inner)!=null&&Ir.trackSymbol)return ps.tracker.inner.trackSymbol(Kt,yr,Zr);return!1}};Ie.tracker=new Qve(Ie,As,ps.tracker.moduleResolverHost),Vd(Ve,(Kt,yr)=>{let Zr=So(yr);gv(Kt,Zr)});let at=!Ie.bundled,yt=Ve.get("export=");return yt&&Ve.size>1&&yt.flags&2098688&&(Ve=ta(),Ve.set("export=",yt)),Ti(Ve),Gt(Ln);function Xt(Kt){return!!Kt&&Kt.kind===80}function Oi(Kt){return mu(Kt)?Di(_i(Kt.declarationList.declarations,cs),Xt):Di([cs(Kt)],Xt)}function kt(Kt){let yr=St(Kt,ll),Zr=zi(Kt,Hu),Hr=Zr!==-1?Kt[Zr]:void 0;if(Hr&&yr&&yr.isExportEquals&&et(yr.expression)&&et(Hr.name)&&mr(Hr.name)===mr(yr.expression)&&Hr.body&&ty(Hr.body)){let Ir=Di(Kt,Ws=>!!(__(Ws)&32)),Cc=Hr.name,_a=Hr.body;if(K(Ir)&&(Hr=U.updateModuleDeclaration(Hr,Hr.modifiers,Hr.name,_a=U.updateModuleBlock(_a,U.createNodeArray([...Hr.body.statements,U.createExportDeclaration(void 0,!1,U.createNamedExports(_i(vo(Ir,Ws=>Oi(Ws)),Ws=>U.createExportSpecifier(!1,void 0,Ws))),void 0)]))),Kt=[...Kt.slice(0,Zr),Hr,...Kt.slice(Zr+1)]),!St(Kt,Ws=>Ws!==Hr&&cM(Ws,Cc))){Ln=[];let Ws=!Lt(_a.statements,Os=>Ar(Os,32)||ll(Os)||Nu(Os));re(_a.statements,Os=>{Mr(Os,Ws?32:0)}),Kt=[...Di(Kt,Os=>Os!==Hr&&Os!==yr),...Ln]}}return Kt}function Zt(Kt){let yr=Di(Kt,Hr=>Nu(Hr)&&!Hr.moduleSpecifier&&!!Hr.exportClause&&_h(Hr.exportClause));K(yr)>1&&(Kt=[...Di(Kt,Ir=>!Nu(Ir)||!!Ir.moduleSpecifier||!Ir.exportClause),U.createExportDeclaration(void 0,!1,U.createNamedExports(vo(yr,Ir=>ea(Ir.exportClause,_h).elements)),void 0)]);let Zr=Di(Kt,Hr=>Nu(Hr)&&!!Hr.moduleSpecifier&&!!Hr.exportClause&&_h(Hr.exportClause));if(K(Zr)>1){let Hr=Xl(Zr,Ir=>Da(Ir.moduleSpecifier)?">"+Ir.moduleSpecifier.text:">");if(Hr.length!==Zr.length)for(let Ir of Hr)Ir.length>1&&(Kt=[...Di(Kt,Cc=>!Ir.includes(Cc)),U.createExportDeclaration(void 0,!1,U.createNamedExports(vo(Ir,Cc=>ea(Cc.exportClause,_h).elements)),Ir[0].moduleSpecifier)])}return Kt}function rn(Kt){let yr=zi(Kt,Zr=>Nu(Zr)&&!Zr.moduleSpecifier&&!Zr.attributes&&!!Zr.exportClause&&_h(Zr.exportClause));if(yr>=0){let Zr=Kt[yr],Hr=ro(Zr.exportClause.elements,Ir=>{if(!Ir.propertyName&&Ir.name.kind!==11){let Cc=Ir.name,_a=Ow(Kt),Ws=Di(_a,Os=>cM(Kt[Os],Cc));if(K(Ws)&&Et(Ws,Os=>DR(Kt[Os]))){for(let Os of Ws)Kt[Os]=Hi(Kt[Os]);return}}return Ir});K(Hr)?Kt[yr]=U.updateExportDeclaration(Zr,Zr.modifiers,Zr.isTypeOnly,U.updateNamedExports(Zr.exportClause,Hr),Zr.moduleSpecifier,Zr.attributes):ax(Kt,yr)}return Kt}function Gt(Kt){return Kt=kt(Kt),Kt=Zt(Kt),Kt=rn(Kt),On&&(mo(On)&&Vp(On)||Hu(On))&&(!Lt(Kt,yM)||!ihe(Kt)&&Lt(Kt,gz))&&Kt.push(JR(U)),Kt}function Hi(Kt){let yr=(__(Kt)|32)&-129;return U.replaceModifiers(Kt,yr)}function Nn(Kt){let yr=__(Kt)&-33;return U.replaceModifiers(Kt,yr)}function Ti(Kt,yr,Zr){yr||qo.push(new Map),Kt.forEach(Hr=>{An(Hr,!1,!!Zr)}),yr||(qo[qo.length-1].forEach(Hr=>{An(Hr,!0,!!Zr)}),qo.pop())}function An(Kt,yr,Zr){yc(Wn(Kt));let Hr=cc(Kt);if(co.has(Ca(Hr)))return;if(co.add(Ca(Hr)),!yr||K(Kt.declarations)&&Lt(Kt.declarations,Cc=>!!Ri(Cc,_a=>_a===On))){let Cc=Z6(Ie);yn(Kt,yr,Zr),Cc()}}function yn(Kt,yr,Zr,Hr=Kt.escapedName){var Ir,Cc,_a,Ws,Os,bc;let el=So(Hr),U_=Hr==="default";if(yr&&!(Ie.flags&131072)&&ZI(el)&&!U_){Ie.encounteredError=!0;return}let Uf=U_&&!!(Kt.flags&-113||Kt.flags&16&&K(yc(Wn(Kt))))&&!(Kt.flags&2097152),Ef=!Uf&&!yr&&ZI(el)&&!U_;(Uf||Ef)&&(yr=!0);let al=(yr?0:32)|(U_&&!Uf?2048:0),Df=Kt.flags&1536&&Kt.flags&7&&Hr!=="export=",Ih=Df&&hNe(Wn(Kt),Kt);if((Kt.flags&8208||Ih)&&k0(Wn(Kt),Kt,gv(Kt,el),al),Kt.flags&524288&&ms(Kt,el,al),Kt.flags&98311&&Hr!=="export="&&!(Kt.flags&4194304)&&!(Kt.flags&32)&&!(Kt.flags&8192)&&!Ih)if(Zr)xG(Kt)&&(Ef=!1,Uf=!1);else{let Gd=Wn(Kt),sm=gv(Kt,el);if(Gd.symbol&&Gd.symbol!==Kt&&Gd.symbol.flags&16&&Lt(Gd.symbol.declarations,Ex)&&((Ir=Gd.symbol.members)!=null&&Ir.size||(Cc=Gd.symbol.exports)!=null&&Cc.size))Ie.remappedSymbolReferences||(Ie.remappedSymbolReferences=new Map),Ie.remappedSymbolReferences.set(Ca(Gd.symbol),Kt),yn(Gd.symbol,yr,Zr,Hr),Ie.remappedSymbolReferences.delete(Ca(Gd.symbol));else if(!(Kt.flags&16)&&hNe(Gd,Kt))k0(Gd,Kt,sm,al);else{let JA=Kt.flags&2?MA(Kt)?2:1:(_a=Kt.parent)!=null&&_a.valueDeclaration&&mo((Ws=Kt.parent)==null?void 0:Ws.valueDeclaration)?2:void 0,Dy=Uf||!(Kt.flags&4)?sm:CG(sm,Kt),SC=Kt.declarations&&St(Kt.declarations,GB=>Ur(GB));SC&&ef(SC.parent)&&SC.parent.declarations.length===1&&(SC=SC.parent.parent);let xC=(Os=Kt.declarations)==null?void 0:Os.find(lr);if(xC&&Yn(xC.parent)&&et(xC.parent.right)&&((bc=Gd.symbol)!=null&&bc.valueDeclaration)&&mo(Gd.symbol.valueDeclaration)){let GB=sm===xC.parent.right.escapedText?void 0:xC.parent.right;Mr(U.createExportDeclaration(void 0,!1,U.createNamedExports([U.createExportSpecifier(!1,GB,sm)])),0),Ie.tracker.trackSymbol(Gd.symbol,Ie.enclosingDeclaration,111551)}else{let GB=d(Ie,U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(Dy,void 0,uw(Ie,void 0,Gd,Kt))],JA)),SC);Mr(GB,Dy!==sm?al&-33:al),Dy!==sm&&!yr&&(Mr(U.createExportDeclaration(void 0,!1,U.createNamedExports([U.createExportSpecifier(!1,Dy,sm)])),0),Ef=!1,Uf=!1)}}}if(Kt.flags&384&&dw(Kt,el,al),Kt.flags&32&&(Kt.flags&4&&Kt.valueDeclaration&&Yn(Kt.valueDeclaration.parent)&&Qu(Kt.valueDeclaration.parent.right)?$B(Kt,gv(Kt,el),al):TF(Kt,gv(Kt,el),al)),(Kt.flags&1536&&(!Df||ap(Kt))||Ih)&&dg(Kt,el,al),Kt.flags&64&&!(Kt.flags&32)&&Pc(Kt,el,al),Kt.flags&2097152&&$B(Kt,gv(Kt,el),al),Kt.flags&4&&Kt.escapedName==="export="&&xG(Kt),Kt.flags&8388608&&Kt.declarations)for(let Gd of Kt.declarations){let sm=rp(Gd,Gd.moduleSpecifier);sm&&Mr(U.createExportDeclaration(void 0,Gd.isTypeOnly,void 0,U.createStringLiteral(ga(sm,Ie))),0)}Uf?Mr(U.createExportAssignment(void 0,!1,U.createIdentifier(gv(Kt,el))),0):Ef&&Mr(U.createExportDeclaration(void 0,!1,U.createNamedExports([U.createExportSpecifier(!1,gv(Kt,el),el)])),0)}function br(Kt){if(Lt(Kt.declarations,lk))return;B.assertIsDefined(qo[qo.length-1]),CG(So(Kt.escapedName),Kt);let yr=!!(Kt.flags&2097152)&&!Lt(Kt.declarations,Zr=>!!Ri(Zr,Nu)||Zy(Zr)||Dd(Zr)&&!rb(Zr.moduleReference));qo[yr?0:qo.length-1].set(Ca(Kt),Kt)}function no(Kt){return mo(Kt)&&(Vp(Kt)||Wh(Kt))||d_(Kt)&&!$y(Kt)}function Mr(Kt,yr){if(Kh(Kt)){let Zr=0,Hr=Ie.enclosingDeclaration&&(Vh(Ie.enclosingDeclaration)?en(Ie.enclosingDeclaration):Ie.enclosingDeclaration);yr&32&&Hr&&(no(Hr)||Hu(Hr))&&DR(Kt)&&(Zr|=32),at&&!(Zr&32)&&(!Hr||!(Hr.flags&33554432))&&(dT(Kt)||mu(Kt)||xu(Kt)||Zu(Kt)||Hu(Kt))&&(Zr|=128),yr&2048&&(Zu(Kt)||vf(Kt)||xu(Kt))&&(Zr|=2048),Zr&&(Kt=U.replaceModifiers(Kt,Zr|__(Kt)))}Ln.push(Kt)}function ms(Kt,yr,Zr){var Hr;let Ir=_Xe(Kt),Cc=Po(Kt).typeParameters,_a=_i(Cc,Uf=>Ys(Uf,Ie)),Ws=(Hr=Kt.declarations)==null?void 0:Hr.find(Vh),Os=uM(Ws?Ws.comment||Ws.parent.comment:void 0),bc=ee(Ie);Ie.flags|=8388608;let el=Ie.enclosingDeclaration;Ie.enclosingDeclaration=Ws;let U_=Ws&&Ws.typeExpression&&yk(Ws.typeExpression)&&E(Ie,Ws.typeExpression.type,Ir,void 0)||pe(Ir,Ie);Mr(fk(U.createTypeAliasDeclaration(void 0,gv(Kt,yr),_a,U_),Os?[{kind:3,text:`* + * `+Os.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Zr),bc(),Ie.enclosingDeclaration=el}function Pc(Kt,yr,Zr){let Hr=op(Kt),Ir=Ag(Kt),Cc=_i(Ir,Ef=>Ys(Ef,Ie)),_a=dl(Hr),Ws=K(_a)?wa(_a):void 0,Os=vo(yc(Hr),Ef=>UXt(Ef,Ws)),bc=gNe(0,Hr,Ws,179),el=gNe(1,Hr,Ws,180),U_=qit(Hr,Ws),Uf=K(_a)?[U.createHeritageClause(96,ro(_a,Ef=>yNe(Ef,111551)))]:void 0;Mr(U.createInterfaceDeclaration(void 0,gv(Kt,yr),Cc,Uf,[...U_,...el,...bc,...Os]),Zr)}function Tf(Kt){let yr=as(W_(Kt).values()),Zr=cc(Kt);if(Zr!==Kt){let Hr=new Set(yr);for(let Ir of W_(Zr).values())n_(Fu(Ir))&111551||Hr.add(Ir);yr=as(Hr)}return Di(yr,Hr=>cp(Hr)&&pp(Hr.escapedName,99))}function ap(Kt){return Et(Tf(Kt),yr=>!(n_(Fu(yr))&111551))}function dg(Kt,yr,Zr){let Hr=Tf(Kt),Ir=$c(Hr,Ws=>Ws.parent&&Ws.parent===Kt?"real":"merged"),Cc=Ir.get("real")||F,_a=Ir.get("merged")||F;if(K(Cc)){let Ws=gv(Kt,yr);wF(Cc,Ws,Zr,!!(Kt.flags&67108880))}if(K(_a)){let Ws=en(Ie.enclosingDeclaration),Os=gv(Kt,yr),bc=U.createModuleBlock([U.createExportDeclaration(void 0,!1,U.createNamedExports(ro(Di(_a,el=>el.escapedName!=="export="),el=>{var U_,Uf;let Ef=So(el.escapedName),al=gv(el,Ef),Df=el.declarations&&i_(el);if(Ws&&(Df?Ws!==en(Df):!Lt(el.declarations,sm=>en(sm)===Ws))){(Uf=(U_=Ie.tracker)==null?void 0:U_.reportNonlocalAugmentation)==null||Uf.call(U_,Ws,Kt,el);return}let Ih=Df&&Qx(Df,!0);br(Ih||el);let Gd=Ih?gv(Ih,So(Ih.escapedName)):al;return U.createExportSpecifier(!1,Ef===Gd?void 0:Gd,Ef)})))]);Mr(U.createModuleDeclaration(void 0,U.createIdentifier(Os),bc,32),0)}}function dw(Kt,yr,Zr){Mr(U.createEnumDeclaration(U.createModifiersFromModifierFlags(IIe(Kt)?4096:0),gv(Kt,yr),_i(Di(yc(Wn(Kt)),Hr=>!!(Hr.flags&8)),Hr=>{let Ir=Hr.declarations&&Hr.declarations[0]&&_S(Hr.declarations[0])?aNe(Hr.declarations[0]):void 0;return U.createEnumMember(So(Hr.escapedName),Ir===void 0?void 0:typeof Ir=="string"?U.createStringLiteral(Ir):U.createNumericLiteral(Ir))})),Zr)}function k0(Kt,yr,Zr,Hr){let Ir=Bs(Kt,0);for(let Cc of Ir){let _a=Bn(Cc,262,Ie,{name:U.createIdentifier(Zr)});Mr(d(Ie,_a,KS(Cc)),Hr)}if(!(yr.flags&1536&&yr.exports&&yr.exports.size)){let Cc=Di(yc(Kt),cp);wF(Cc,Zr,Hr,!0)}}function KS(Kt){if(Kt.declaration&&Kt.declaration.parent){if(Yn(Kt.declaration.parent)&&Su(Kt.declaration.parent)===5)return Kt.declaration.parent;if(Ur(Kt.declaration.parent)&&Kt.declaration.parent.parent)return Kt.declaration.parent.parent}return Kt.declaration}function wF(Kt,yr,Zr,Hr){if(K(Kt)){let Cc=$c(Kt,al=>!K(al.declarations)||Lt(al.declarations,Df=>en(Df)===en(Ie.enclosingDeclaration))?"local":"remote").get("local")||F,_a=Sk.createModuleDeclaration(void 0,U.createIdentifier(yr),U.createModuleBlock([]),32);ic(_a,On),_a.locals=ta(Kt),_a.symbol=Kt[0].parent;let Ws=Ln;Ln=[];let Os=at;at=!1;let bc={...Ie,enclosingDeclaration:_a},el=Ie;Ie=bc,Ti(ta(Cc),Hr,!0),Ie=el,at=Os;let U_=Ln;Ln=Ws;let Uf=_i(U_,al=>ll(al)&&!al.isExportEquals&&et(al.expression)?U.createExportDeclaration(void 0,!1,U.createNamedExports([U.createExportSpecifier(!1,al.expression,U.createIdentifier("default"))])):al),Ef=Et(Uf,al=>Ar(al,32))?_i(Uf,Nn):Uf;_a=U.updateModuleDeclaration(_a,_a.modifiers,_a.name,U.createModuleBlock(Ef)),Mr(_a,Zr)}}function cp(Kt){return!!(Kt.flags&2887656)||!(Kt.flags&4194304||Kt.escapedName==="prototype"||Kt.valueDeclaration&&ia(Kt.valueDeclaration)&&jr(Kt.valueDeclaration.parent))}function bC(Kt){let yr=ro(Kt,Zr=>{let Hr=Ie.enclosingDeclaration;Ie.enclosingDeclaration=Zr;let Ir=Zr.expression;if(Xc(Ir)){if(et(Ir)&&mr(Ir)==="")return Cc(void 0);let _a;if({introducesError:_a,node:Ir}=wn(Ir,Ie),_a)return Cc(void 0)}return Cc(U.createExpressionWithTypeArguments(Ir,_i(Zr.typeArguments,_a=>E(Ie,_a,n(Ie,_a))||pe(n(Ie,_a),Ie))));function Cc(_a){return Ie.enclosingDeclaration=Hr,_a}});if(yr.length===Kt.length)return yr}function TF(Kt,yr,Zr){var Hr,Ir;let Cc=(Hr=Kt.declarations)==null?void 0:Hr.find(jr),_a=Ie.enclosingDeclaration;Ie.enclosingDeclaration=Cc||_a;let Ws=Ag(Kt),Os=_i(Ws,Iy=>Ys(Iy,Ie)),bc=om(op(Kt)),el=dl(bc),U_=Cc&&e4(Cc),Uf=U_&&bC(U_)||ro(sc(bc),qXt),Ef=Wn(Kt),al=!!((Ir=Ef.symbol)!=null&&Ir.valueDeclaration)&&jr(Ef.symbol.valueDeclaration),Df=al?Yr(Ef):je,Ih=[...K(el)?[U.createHeritageClause(96,_i(el,Iy=>JXt(Iy,Df,yr)))]:[],...K(Uf)?[U.createHeritageClause(119,Uf)]:[]],Gd=EGt(bc,el,yc(bc)),sm=Di(Gd,Iy=>{let EF=Iy.valueDeclaration;return!!EF&&!(pf(EF)&&xo(EF.name))}),Dy=Lt(Gd,Iy=>{let EF=Iy.valueDeclaration;return!!EF&&pf(EF)&&xo(EF.name)})?[U.createPropertyDeclaration(void 0,U.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:F,SC=vo(sm,Iy=>Yi(Iy,!1,el[0])),xC=vo(Di(yc(Ef),Iy=>!(Iy.flags&4194304)&&Iy.escapedName!=="prototype"&&!cp(Iy)),Iy=>Yi(Iy,!0,Df)),$Xt=!al&&!!Kt.valueDeclaration&&Jn(Kt.valueDeclaration)&&!Lt(Bs(Ef,1))?[U.createConstructorDeclaration(U.createModifiersFromModifierFlags(2),[],void 0)]:gNe(1,Ef,Df,176),GXt=qit(bc,el[0]);Ie.enclosingDeclaration=_a,Mr(d(Ie,U.createClassDeclaration(void 0,yr,Os,Ih,[...GXt,...xC,...$Xt,...SC,...Dy]),Kt.declarations&&Di(Kt.declarations,Iy=>Zu(Iy)||Qu(Iy))[0]),Zr)}function qB(Kt){return Le(Kt,yr=>{if(F_(yr)||Gf(yr))return vx(yr.propertyName||yr.name);if(Yn(yr)||ll(yr)){let Zr=ll(yr)?yr.expression:yr.right;if(lr(Zr))return mr(Zr.name)}if(vm(yr)){let Zr=cs(yr);if(Zr&&et(Zr))return mr(Zr)}})}function $B(Kt,yr,Zr){var Hr,Ir,Cc,_a,Ws;let Os=i_(Kt);if(!Os)return B.fail();let bc=cc(Qx(Os,!0));if(!bc)return;let el=wM(bc)&&qB(Kt.declarations)||So(bc.escapedName);el==="export="&&Ce&&(el="default");let U_=gv(bc,el);switch(br(bc),Os.kind){case 208:if(((Ir=(Hr=Os.parent)==null?void 0:Hr.parent)==null?void 0:Ir.kind)===260){let al=ga(bc.parent||bc,Ie),{propertyName:Df}=Os;Mr(U.createImportDeclaration(void 0,U.createImportClause(!1,void 0,U.createNamedImports([U.createImportSpecifier(!1,Df&&et(Df)?U.createIdentifier(mr(Df)):void 0,U.createIdentifier(yr))])),U.createStringLiteral(al),void 0),0);break}B.failBadSyntaxKind(((Cc=Os.parent)==null?void 0:Cc.parent)||Os,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Ws=(_a=Os.parent)==null?void 0:_a.parent)==null?void 0:Ws.kind)===226&&PD(So(Kt.escapedName),U_);break;case 260:if(lr(Os.initializer)){let al=Os.initializer,Df=U.createUniqueName(yr),Ih=ga(bc.parent||bc,Ie);Mr(U.createImportEqualsDeclaration(void 0,!1,Df,U.createExternalModuleReference(U.createStringLiteral(Ih))),0),Mr(U.createImportEqualsDeclaration(void 0,!1,U.createIdentifier(yr),U.createQualifiedName(Df,al.name)),Zr);break}case 271:if(bc.escapedName==="export="&&Lt(bc.declarations,al=>mo(al)&&Wh(al))){xG(Kt);break}let Uf=!(bc.flags&512)&&!Ur(Os);Mr(U.createImportEqualsDeclaration(void 0,!1,U.createIdentifier(yr),Uf?gu(bc,Ie,-1,!1):U.createExternalModuleReference(U.createStringLiteral(ga(bc,Ie)))),Uf?Zr:0);break;case 270:Mr(U.createNamespaceExportDeclaration(mr(Os.name)),0);break;case 273:{let al=ga(bc.parent||bc,Ie),Df=Ie.bundled?U.createStringLiteral(al):Os.parent.moduleSpecifier,Ih=ql(Os.parent)?Os.parent.attributes:void 0,Gd=oy(Os.parent);Mr(U.createImportDeclaration(void 0,U.createImportClause(Gd,U.createIdentifier(yr),void 0),Df,Ih),0);break}case 274:{let al=ga(bc.parent||bc,Ie),Df=Ie.bundled?U.createStringLiteral(al):Os.parent.parent.moduleSpecifier,Ih=oy(Os.parent.parent);Mr(U.createImportDeclaration(void 0,U.createImportClause(Ih,void 0,U.createNamespaceImport(U.createIdentifier(yr))),Df,Os.parent.attributes),0);break}case 280:Mr(U.createExportDeclaration(void 0,!1,U.createNamespaceExport(U.createIdentifier(yr)),U.createStringLiteral(ga(bc,Ie))),0);break;case 276:{let al=ga(bc.parent||bc,Ie),Df=Ie.bundled?U.createStringLiteral(al):Os.parent.parent.parent.moduleSpecifier,Ih=oy(Os.parent.parent.parent);Mr(U.createImportDeclaration(void 0,U.createImportClause(Ih,void 0,U.createNamedImports([U.createImportSpecifier(!1,yr!==el?U.createIdentifier(el):void 0,U.createIdentifier(yr))])),Df,Os.parent.parent.parent.attributes),0);break}case 281:let Ef=Os.parent.parent.moduleSpecifier;if(Ef){let al=Os.propertyName;al&&qy(al)&&(el="default")}PD(So(Kt.escapedName),Ef?el:U_,Ef&&xc(Ef)?U.createStringLiteral(Ef.text):void 0);break;case 277:xG(Kt);break;case 226:case 211:case 212:Kt.escapedName==="default"||Kt.escapedName==="export="?xG(Kt):PD(yr,U_);break;default:return B.failBadSyntaxKind(Os,"Unhandled alias declaration kind in symbol serializer!")}}function PD(Kt,yr,Zr){Mr(U.createExportDeclaration(void 0,!1,U.createNamedExports([U.createExportSpecifier(!1,Kt!==yr?yr:void 0,Kt)]),Zr),0)}function xG(Kt){var yr;if(Kt.flags&4194304)return!1;let Zr=So(Kt.escapedName),Hr=Zr==="export=",Cc=Hr||Zr==="default",_a=Kt.declarations&&i_(Kt),Ws=_a&&Qx(_a,!0);if(Ws&&K(Ws.declarations)&&Lt(Ws.declarations,Os=>en(Os)===en(On))){let Os=_a&&(ll(_a)||Yn(_a)?bZ(_a):dge(_a)),bc=Os&&Xc(Os)?VGt(Os):void 0,el=bc&&Ml(bc,-1,!0,!0,On);(el||Ws)&&br(el||Ws);let U_=Ie.tracker.disableTrackSymbol;if(Ie.tracker.disableTrackSymbol=!0,Cc)Ln.push(U.createExportAssignment(void 0,Hr,qc(Ws,Ie,-1)));else if(bc===Os&&bc)PD(Zr,mr(bc));else if(Os&&Qu(Os))PD(Zr,gv(Ws,fu(Ws)));else{let Uf=CG(Zr,Kt);Mr(U.createImportEqualsDeclaration(void 0,!1,U.createIdentifier(Uf),gu(Ws,Ie,-1,!1)),0),PD(Zr,Uf)}return Ie.tracker.disableTrackSymbol=U_,!0}else{let Os=CG(Zr,Kt),bc=Ap(Wn(cc(Kt)));if(hNe(bc,Kt))k0(bc,Kt,Os,Cc?0:32);else{let el=((yr=Ie.enclosingDeclaration)==null?void 0:yr.kind)===267&&(!(Kt.flags&98304)||Kt.flags&65536)?1:2,U_=U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(Os,void 0,uw(Ie,void 0,bc,Kt))],el));Mr(U_,Ws&&Ws.flags&4&&Ws.escapedName==="export="?128:Zr===Os?32:0)}return Cc?(Ln.push(U.createExportAssignment(void 0,Hr,U.createIdentifier(Os))),!0):Zr!==Os?(PD(Zr,Os),!0):!1}}function hNe(Kt,yr){var Zr;let Hr=en(Ie.enclosingDeclaration);return _r(Kt)&48&&!Lt((Zr=Kt.symbol)==null?void 0:Zr.declarations,io)&&!K(r_(Kt))&&!G9(Kt)&&!!(K(Di(yc(Kt),cp))||K(Bs(Kt,0)))&&!K(Bs(Kt,1))&&!CF(yr,On)&&!(Kt.symbol&&Lt(Kt.symbol.declarations,Ir=>en(Ir)!==Hr))&&!Lt(yc(Kt),Ir=>tB(Ir.escapedName))&&!Lt(yc(Kt),Ir=>Lt(Ir.declarations,Cc=>en(Cc)!==Hr))&&Et(yc(Kt),Ir=>pp(fu(Ir),te)?Ir.flags&98304?cC(Ir)===aC(Ir):!0:!1)}function Jit(Kt,yr,Zr){return function(Ir,Cc,_a){var Ws,Os,bc,el,U_;let Uf=lh(Ir),Ef=!!(Uf&2);if(Cc&&Ir.flags&2887656)return[];if(Ir.flags&4194304||Ir.escapedName==="constructor"||_a&&da(_a,Ir.escapedName)&&C0(da(_a,Ir.escapedName))===C0(Ir)&&(Ir.flags&16777216)===(da(_a,Ir.escapedName).flags&16777216)&&S1(Wn(Ir),Mu(_a,Ir.escapedName)))return[];let al=Uf&-1025|(Cc?256:0),Df=Ru(Ir,Ie),Ih=(Ws=Ir.declarations)==null?void 0:Ws.find(Im(ls,mx,Ur,ep,Yn,lr));if(Ir.flags&98304&&Zr){let Gd=[];if(Ir.flags&65536){let sm=Ir.declarations&&re(Ir.declarations,Dy=>{if(Dy.kind===178)return Dy;if(Gs(Dy)&&cE(Dy))return re(Dy.arguments[2].properties,SC=>{let xC=cs(SC);if(xC&&et(xC)&&mr(xC)==="set")return SC})});B.assert(!!sm);let JA=Oc(sm)?Km(sm).parameters[0]:void 0;Gd.push(d(Ie,U.createSetAccessorDeclaration(U.createModifiersFromModifierFlags(al),Df,[U.createParameterDeclaration(void 0,void 0,JA?af(JA,us(JA),Ie):"value",void 0,Ef?void 0:uw(Ie,void 0,aC(Ir),Ir))],void 0),((Os=Ir.declarations)==null?void 0:Os.find(z0))||Ih))}if(Ir.flags&32768){let sm=Uf&2;Gd.push(d(Ie,U.createGetAccessorDeclaration(U.createModifiersFromModifierFlags(al),Df,[],sm?void 0:uw(Ie,void 0,Wn(Ir),Ir),void 0),((bc=Ir.declarations)==null?void 0:bc.find(Yb))||Ih))}return Gd}else if(Ir.flags&98311)return d(Ie,Kt(U.createModifiersFromModifierFlags((C0(Ir)?8:0)|al),Df,Ir.flags&16777216?U.createToken(58):void 0,Ef?void 0:uw(Ie,void 0,aC(Ir),Ir),void 0),((el=Ir.declarations)==null?void 0:el.find(Im(ls,Ur)))||Ih);if(Ir.flags&8208){let Gd=Wn(Ir),sm=Bs(Gd,0);if(al&2)return d(Ie,Kt(U.createModifiersFromModifierFlags((C0(Ir)?8:0)|al),Df,Ir.flags&16777216?U.createToken(58):void 0,void 0,void 0),((U_=Ir.declarations)==null?void 0:U_.find(Oc))||sm[0]&&sm[0].declaration||Ir.declarations&&Ir.declarations[0]);let JA=[];for(let Dy of sm){let SC=Bn(Dy,yr,Ie,{name:Df,questionToken:Ir.flags&16777216?U.createToken(58):void 0,modifiers:al?U.createModifiersFromModifierFlags(al):void 0}),xC=Dy.declaration&&$M(Dy.declaration.parent)?Dy.declaration.parent:Dy.declaration;JA.push(d(Ie,SC,xC))}return JA}return B.fail(`Unhandled class member kind! ${Ir.__debugFlags||Ir.flags}`)}}function UXt(Kt,yr){return tr(Kt,!1,yr)}function gNe(Kt,yr,Zr,Hr){let Ir=Bs(yr,Kt);if(Kt===1){if(!Zr&&Et(Ir,Ws=>K(Ws.parameters)===0))return[];if(Zr){let Ws=Bs(Zr,1);if(!K(Ws)&&Et(Ir,Os=>K(Os.parameters)===0))return[];if(Ws.length===Ir.length){let Os=!1;for(let bc=0;bcpe(Ir,Ie)),Hr=qc(Kt.target.symbol,Ie,788968)):Kt.symbol&&SA(Kt.symbol,On,yr)&&(Hr=qc(Kt.symbol,Ie,788968)),Hr)return U.createExpressionWithTypeArguments(Hr,Zr)}function qXt(Kt){let yr=yNe(Kt,788968);if(yr)return yr;if(Kt.symbol)return U.createExpressionWithTypeArguments(qc(Kt.symbol,Ie,788968),void 0)}function CG(Kt,yr){var Zr,Hr;let Ir=yr?Ca(yr):void 0;if(Ir&&Ie.remappedSymbolNames.has(Ir))return Ie.remappedSymbolNames.get(Ir);yr&&(Kt=$it(yr,Kt));let Cc=0,_a=Kt;for(;(Zr=Ie.usedSymbolNames)!=null&&Zr.has(Kt);)Cc++,Kt=`${_a}_${Cc}`;return(Hr=Ie.usedSymbolNames)==null||Hr.add(Kt),Ir&&Ie.remappedSymbolNames.set(Ir,Kt),Kt}function $it(Kt,yr){if(yr==="default"||yr==="__class"||yr==="__function"){let Zr=ee(Ie);Ie.flags|=16777216;let Hr=rC(Kt,Ie);Zr(),yr=Hr.length>0&&VM(Hr.charCodeAt(0))?sh(Hr):Hr}return yr==="default"?yr="_default":yr==="export="&&(yr="_exports"),yr=pp(yr,te)&&!ZI(yr)?yr:"_"+yr.replace(/[^a-z0-9]/gi,"_"),yr}function gv(Kt,yr){let Zr=Ca(Kt);return Ie.remappedSymbolNames.has(Zr)?Ie.remappedSymbolNames.get(Zr):(yr=$it(Kt,yr),Ie.remappedSymbolNames.set(Zr,yr),yr)}}}function hy(n,d,m=16384,v){return v?C(v).getText():zP(C);function C(E){let L=E6(m)|70221824|512,J=Ae.typePredicateToTypePredicateNode(n,d,L),ee=bT(),oe=d&&en(d);return ee.writeNode(4,J,oe,E),E}}function qq(n){let d=[],m=0;for(let v=0;vcs(L)?L:void 0),E=C&&cs(C);if(C&&E){if(Gs(C)&&cE(C))return fu(n);if(Ma(E)&&!(_u(n)&4096)){let L=Po(n).nameType;if(L&&L.flags&384){let J=K9(n,d);if(J!==void 0)return J}}return Hc(E)}if(C||(C=n.declarations[0]),C.parent&&C.parent.kind===260)return Hc(C.parent.name);switch(C.kind){case 231:case 218:case 219:return d&&!d.encounteredError&&!(d.flags&131072)&&(d.encounteredError=!0),C.kind===231?"(Anonymous class)":"(Anonymous function)"}}let v=K9(n,d);return v!==void 0?v:fu(n)}function Ng(n){if(n){let m=rr(n);return m.isVisible===void 0&&(m.isVisible=!!d()),m.isVisible}return!1;function d(){switch(n.kind){case 338:case 346:case 340:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&mo(n.parent.parent.parent));case 208:return Ng(n.parent.parent);case 260:if(Rs(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(Uw(n))return!0;let m=lD(n);return!(ple(n)&32)&&!(n.kind!==271&&m.kind!==307&&m.flags&33554432)?Zb(m):Ng(m);case 172:case 171:case 177:case 178:case 174:case 173:if(Jp(n,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return Ng(n.parent);case 273:case 274:case 276:return!1;case 168:case 307:case 270:return!0;case 277:return!1;default:return!1}}}function D6(n,d){let m;n.kind!==11&&n.parent&&n.parent.kind===277?m=ni(n,n,2998271,void 0,!1):n.parent.kind===281&&(m=sv(n.parent,2998271));let v,C;return m&&(C=new Set,C.add(Ca(m)),E(m.declarations)),v;function E(L){re(L,J=>{let ee=t_(J)||J;if(d?rr(J).isVisible=!0:(v=v||[],jc(v,ee)),sE(J)){let oe=J.moduleReference,pe=hp(oe),Me=ni(J,pe.escapedText,901119,void 0,!1);Me&&C&&_p(C,Ca(Me))&&E(Me.declarations)}})}}function av(n,d){let m=oC(n,d);if(m>=0){let{length:v}=qi;for(let C=m;C=dr;m--){if(X9(qi[m],tn[m]))return-1;if(qi[m]===n&&tn[m]===d)return m}return-1}function X9(n,d){switch(d){case 0:return!!Po(n).type;case 2:return!!Po(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 5:return!!n.resolvedTypeArguments;case 6:return!!n.baseTypesResolved;case 7:return!!Po(n).writeType;case 8:return rr(n).parameterInitializerContainsUndefined!==void 0}return B.assertNever(d)}function cv(){return qi.pop(),tn.pop(),En.pop()}function lD(n){return Ri($0(n),d=>{switch(d.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function Y9(n){let d=Qc(bm(n));return d.typeParameters?Eb(d,_i(d.typeParameters,m=>je)):d}function Mu(n,d){let m=da(n,d);return m?Wn(m):void 0}function CA(n,d){var m;let v;return Mu(n,d)||(v=(m=TA(n,d))==null?void 0:m.type)&&md(v,!0,!0)}function pc(n){return n&&(n.flags&1)!==0}function le(n){return n===_t||!!(n.flags&1&&n.aliasSymbol)}function We(n,d){if(d!==0)return qm(n,!1,d);let m=sr(n);return m&&Po(m).type||qm(n,!1,d)}function lt(n,d,m){if(n=qu(n,ee=>!(ee.flags&98304)),n.flags&131072)return Ts;if(n.flags&1048576)return Nl(n,ee=>lt(ee,d,m));let v=Fr(_i(d,Db)),C=[],E=[];for(let ee of yc(n)){let oe=DA(ee,8576);!fa(oe,v)&&!(lh(ee)&6)&&Rae(ee)?C.push(ee):E.push(oe)}if(gD(n)||yD(v)){if(E.length&&(v=Fr([v,...E])),v.flags&131072)return n;let ee=Bjt();return ee?B6(ee,[n,v]):_t}let L=ta();for(let ee of C)L.set(ee.escapedName,BEe(ee,!1));let J=Io(m,L,F,F,r_(n));return J.objectFlags|=4194304,J}function zt(n){return!!(n.flags&465829888)&&hu(Cf(n)||Y,32768)}function fi(n){let d=Dh(n,zt)?Nl(n,m=>m.flags&465829888?fv(m):m):n;return lg(d,524288)}function Ki(n,d){let m=Sr(n);return m?Fb(m,d):d}function Sr(n){let d=Co(n);if(d&&YM(d)&&d.flowNode){let m=eo(n);if(m){let v=Ft(Sk.createStringLiteral(m),n),C=X_(d)?d:Sk.createParenthesizedExpression(d),E=Ft(Sk.createElementAccessExpression(C,v),n);return ic(v,E),ic(E,n),C!==d&&ic(C,E),E.flowNode=d.flowNode,E}}}function Co(n){let d=n.parent.parent;switch(d.kind){case 208:case 303:return Sr(d);case 209:return Sr(n.parent);case 260:return d.initializer;case 226:return d.right}}function eo(n){let d=n.parent;return n.kind===208&&d.kind===206?to(n.propertyName||n.name):n.kind===303||n.kind===304?to(n.name):""+d.elements.indexOf(n)}function to(n){let d=Db(n);return d.flags&384?""+d.value:void 0}function Mo(n){let d=n.dotDotDotToken?32:0,m=We(n.parent.parent,d);return m&&Dc(n,m,!1)}function Dc(n,d,m){if(pc(d))return d;let v=n.parent;he&&n.flags&33554432&&lk(n)?d=Pb(d):he&&v.parent.initializer&&!S0(iZe(v.parent.initializer),65536)&&(d=lg(d,524288));let C=32|(m||BA(n)?16:0),E;if(v.kind===206)if(n.dotDotDotToken){if(d=v0(d),d.flags&2||!U$(d))return ot(n,S.Rest_types_may_only_be_created_from_object_types),_t;let L=[];for(let J of v.elements)J.dotDotDotToken||L.push(J.propertyName||J.name);E=lt(d,L,n.symbol)}else{let L=n.propertyName||n.name,J=Db(L),ee=Ip(d,J,C,L);E=Ki(n,ee)}else{let L=$S(65|(n.dotDotDotToken?0:128),d,$e,v),J=v.elements.indexOf(n);if(n.dotDotDotToken){let ee=Nl(d,oe=>oe.flags&58982400?fv(oe):oe);E=Pp(ee,Ba)?Nl(ee,oe=>aF(oe,J)):Hf(L)}else if(US(d)){let ee=Pg(J),oe=fC(d,ee,C,n.name)||_t;E=Ki(n,oe)}else E=L}return n.initializer?Yu(FI(n))?he&&!S0(mF(n,0),16777216)?fi(E):E:Vce(n,Fr([fi(E),mF(n,0)],2)):E}function Ic(n){let d=XC(n);if(d)return yo(d)}function Za(n){let d=fc(n,!0);return d.kind===106||d.kind===80&&s_(d)===Ge}function Ch(n){let d=fc(n,!0);return d.kind===209&&d.elements.length===0}function md(n,d=!1,m=!0){return he&&m?hC(n,d):n}function qm(n,d,m){if(Ur(n)&&n.parent.parent.kind===249){let L=Sy(ZDe(Ho(n.parent.parent.expression,m)));return L.flags&4456448?RYe(L):Qe}if(Ur(n)&&n.parent.parent.kind===250){let L=n.parent.parent;return mG(L)||je}if(Rs(n.parent))return Mo(n);let v=ls(n)&&!G0(n)||ep(n)||Sye(n),C=d&&m4(n),E=$m(n);if($Q(n))return E?pc(E)||E===Y?E:_t:ie?Y:je;if(E)return md(E,v,C);if((Se||Jn(n))&&Ur(n)&&!Rs(n.name)&&!(ple(n)&32)&&!(n.flags&33554432)){if(!(f2(n)&6)&&(!n.initializer||Za(n.initializer)))return It;if(n.initializer&&Ch(n.initializer))return gc}if(To(n)){if(!n.symbol)return;let L=n.parent;if(L.kind===178&&O6(L)){let oe=bl(sr(n.parent),177);if(oe){let pe=Km(oe),Me=_Ne(L);return Me&&n===Me?(B.assert(!Me.type),Wn(pe.thisParameter)):vc(pe)}}let J=sjt(L,n);if(J)return J;let ee=n.symbol.escapedName==="this"?BDe(L):PZe(n);if(ee)return md(ee,!1,C)}if(iE(n)&&n.initializer){if(Jn(n)&&!To(n)){let J=Q8(n,sr(n),G3(n));if(J)return J}let L=Vce(n,mF(n,m));return md(L,v,C)}if(ls(n)&&(Se||Jn(n)))if(cd(n)){let L=Di(n.parent.members,Yl),J=L.length?oc(n.symbol,L):__(n)&128?Kae(n.symbol):void 0;return J&&md(J,!0,C)}else{let L=AR(n.parent),J=L?rd(n.symbol,L):__(n)&128?Kae(n.symbol):void 0;return J&&md(J,!0,C)}if(ry(n))return Dt;if(Rs(n.name))return ui(n.name,!1,!0)}function kb(n){if(n.valueDeclaration&&Yn(n.valueDeclaration)){let d=Po(n);return d.isConstructorDeclaredProperty===void 0&&(d.isConstructorDeclaredProperty=!1,d.isConstructorDeclaredProperty=!!sC(n)&&Et(n.declarations,m=>Yn(m)&&bce(m)&&(m.left.kind!==212||Am(m.left.argumentExpression))&&!Sm(void 0,m,n,m))),d.isConstructorDeclaredProperty}return!1}function h1(n){let d=n.valueDeclaration;return d&&ls(d)&&!Yu(d)&&!d.initializer&&(Se||Jn(d))}function sC(n){if(n.declarations)for(let d of n.declarations){let m=f_(d,!1,!1);if(m&&(m.kind===176||Ty(m)))return m}}function Gq(n){let d=en(n.declarations[0]),m=So(n.escapedName),v=n.declarations.every(E=>Jn(E)&&il(E)&&Vv(E.expression)),C=v?U.createPropertyAccessExpression(U.createPropertyAccessExpression(U.createIdentifier("module"),U.createIdentifier("exports")),m):U.createPropertyAccessExpression(U.createIdentifier("exports"),m);return v&&ic(C.expression.expression,C.expression),ic(C.expression,C),ic(C,d),C.flowNode=d.endFlowNode,Fb(C,It,$e)}function oc(n,d){let m=Ro(n.escapedName,"__#")?U.createPrivateIdentifier(n.escapedName.split("@")[1]):So(n.escapedName);for(let v of d){let C=U.createPropertyAccessExpression(U.createThis(),m);ic(C.expression,C),ic(C,v),C.flowNode=v.returnFlowNode;let E=wb(C,n);if(Se&&(E===It||E===gc)&&ot(n.valueDeclaration,S.Member_0_implicitly_has_an_1_type,Lo(n),Dn(E)),!Pp(E,$$))return zB(E)}}function rd(n,d){let m=Ro(n.escapedName,"__#")?U.createPrivateIdentifier(n.escapedName.split("@")[1]):So(n.escapedName),v=U.createPropertyAccessExpression(U.createThis(),m);ic(v.expression,v),ic(v,d),v.flowNode=d.returnFlowNode;let C=wb(v,n);return Se&&(C===It||C===gc)&&ot(n.valueDeclaration,S.Member_0_implicitly_has_an_1_type,Lo(n),Dn(C)),Pp(C,$$)?void 0:zB(C)}function wb(n,d){let m=d?.valueDeclaration&&(!h1(d)||__(d.valueDeclaration)&128)&&Kae(d)||$e;return Fb(n,It,m)}function $T(n,d){let m=$I(n.valueDeclaration);if(m){let J=Jn(m)?KC(m):void 0;return J&&J.typeExpression?yo(J.typeExpression):n.valueDeclaration&&Q8(n.valueDeclaration,n,m)||ow(Tu(m))}let v,C=!1,E=!1;if(kb(n)&&(v=rd(n,sC(n))),!v){let J;if(n.declarations){let ee;for(let oe of n.declarations){let pe=Yn(oe)||Gs(oe)?oe:il(oe)?Yn(oe.parent)?oe.parent:oe:void 0;if(!pe)continue;let Me=il(pe)?qM(pe):Su(pe);(Me===4||Yn(pe)&&bce(pe,Me))&&(I(pe)?C=!0:E=!0),Gs(pe)||(ee=Sm(ee,pe,n,oe)),ee||(J||(J=[])).push(Yn(pe)||Gs(pe)?Yk(n,d,pe,Me):Si)}v=ee}if(!v){if(!K(J))return _t;let ee=C&&n.declarations?V(J,n.declarations):void 0;if(E){let pe=Kae(n);pe&&((ee||(ee=[])).push(pe),C=!0)}let oe=Lt(ee,pe=>!!(pe.flags&-98305))?ee:J;v=Fr(oe)}}let L=Ap(md(v,!1,E&&!C));return n.valueDeclaration&&Jn(n.valueDeclaration)&&qu(L,J=>!!(J.flags&-98305))===Si?(sw(n.valueDeclaration,je),je):L}function Q8(n,d,m){var v,C;if(!Jn(n)||!m||!ba(m)||m.properties.length)return;let E=ta();for(;Yn(n)||lr(n);){let ee=z_(n);(v=ee?.exports)!=null&&v.size&&og(E,ee.exports),n=Yn(n)?n.parent:n.parent.parent}let L=z_(n);(C=L?.exports)!=null&&C.size&&og(E,L.exports);let J=Io(d,E,F,F,F);return J.objectFlags|=4096,J}function Sm(n,d,m,v){var C;let E=Yu(d.parent);if(E){let L=Ap(yo(E));if(n)!le(n)&&!le(L)&&!S1(n,L)&&Mtt(void 0,n,v,L);else return L}if((C=m.parent)!=null&&C.valueDeclaration){let L=VT(m.parent);if(L.valueDeclaration){let J=Yu(L.valueDeclaration);if(J){let ee=da(yo(J),m.escapedName);if(ee)return cC(ee)}}}return n}function Yk(n,d,m,v){if(Gs(m)){if(d)return Wn(d);let L=Tu(m.arguments[2]),J=Mu(L,"value");if(J)return J;let ee=Mu(L,"get");if(ee){let pe=ID(ee);if(pe)return vc(pe)}let oe=Mu(L,"set");if(oe){let pe=ID(oe);if(pe)return xIe(pe)}return je}if(Un(m.left,m.right))return je;let C=v===1&&(lr(m.left)||nl(m.left))&&(Vv(m.left.expression)||et(m.left.expression)&&aE(m.left.expression)),E=d?Wn(d):C?x_(Tu(m.right)):ow(Tu(m.right));if(E.flags&524288&&v===2&&n.escapedName==="export="){let L=y0(E),J=ta();Tz(L.members,J);let ee=J.size;d&&!d.exports&&(d.exports=ta()),(d||n).exports.forEach((pe,Me)=>{var Ne;let vt=J.get(Me);if(vt&&vt!==pe&&!(pe.flags&2097152))if(pe.flags&111551&&vt.flags&111551){if(pe.valueDeclaration&&vt.valueDeclaration&&en(pe.valueDeclaration)!==en(vt.valueDeclaration)){let jt=So(pe.escapedName),xi=((Ne=kr(vt.valueDeclaration,pf))==null?void 0:Ne.name)||vt.valueDeclaration;Xs(ot(pe.valueDeclaration,S.Duplicate_identifier_0,jt),Mn(xi,S._0_was_also_declared_here,jt)),Xs(ot(xi,S.Duplicate_identifier_0,jt),Mn(pe.valueDeclaration,S._0_was_also_declared_here,jt))}let Ot=Aa(pe.flags|vt.flags,Me);Ot.links.type=Fr([Wn(pe),Wn(vt)]),Ot.valueDeclaration=vt.valueDeclaration,Ot.declarations=Fo(vt.declarations,pe.declarations),J.set(Me,Ot)}else J.set(Me,d0(pe,vt));else J.set(Me,pe)});let oe=Io(ee!==J.size?void 0:L.symbol,J,L.callSignatures,L.constructSignatures,L.indexInfos);if(ee===J.size&&(E.aliasSymbol&&(oe.aliasSymbol=E.aliasSymbol,oe.aliasTypeArguments=E.aliasTypeArguments),_r(E)&4)){oe.aliasSymbol=E.symbol;let pe=fl(E);oe.aliasTypeArguments=K(pe)?pe:void 0}return oe.objectFlags|=a$([E])|_r(E)&20608,oe.symbol&&oe.symbol.flags&32&&E===op(oe.symbol)&&(oe.objectFlags|=16777216),oe}return Yae(E)?(sw(m,Mc),Mc):E}function Un(n,d){return lr(n)&&n.expression.kind===110&&LN(d,m=>of(n,m))}function I(n){let d=f_(n,!1,!1);return d.kind===176||d.kind===262||d.kind===218&&!$M(d.parent)}function V(n,d){return B.assert(n.length===d.length),n.filter((m,v)=>{let C=d[v],E=Yn(C)?C:Yn(C.parent)?C.parent:void 0;return E&&I(E)})}function Z(n,d,m){if(n.initializer){let v=Rs(n.name)?ui(n.name,!0,!1):Y;return md(Vce(n,mF(n,0,v)))}return Rs(n.name)?ui(n.name,d,m):(m&&!lv(n)&&sw(n,je),d?Ii:je)}function xe(n,d,m){let v=ta(),C,E=131200;re(n.elements,J=>{let ee=J.propertyName||J.name;if(J.dotDotDotToken){C=_v(Qe,je,!1);return}let oe=Db(ee);if(!uh(oe)){E|=512;return}let pe=dh(oe),Me=4|(J.initializer?16777216:0),Ne=Aa(Me,pe);Ne.links.type=Z(J,d,m),Ne.links.bindingElement=J,v.set(Ne.escapedName,Ne)});let L=Io(void 0,v,F,F,C?[C]:F);return L.objectFlags|=E,d&&(L.pattern=n,L.objectFlags|=131072),L}function st(n,d,m){let v=n.elements,C=Lc(v),E=C&&C.kind===208&&C.dotDotDotToken?C:void 0;if(v.length===0||v.length===1&&E)return te>=2?SYe(je):Mc;let L=_i(v,pe=>Ed(pe)?je:Z(pe,d,m)),J=Vr(v,pe=>!(pe===E||Ed(pe)||BA(pe)),v.length-1)+1,ee=_i(v,(pe,Me)=>pe===E?4:Me>=J?2:1),oe=pv(L,ee);return d&&(oe=ZXe(oe),oe.pattern=n,oe.objectFlags|=131072),oe}function ui(n,d=!1,m=!1){d&&s1.push(n);let v=n.kind===206?xe(n,d,m):st(n,d,m);return d&&s1.pop(),v}function Xn(n,d){return kh(qm(n,!0,0),n,d)}function ns(n){let d=rr(n);if(!d.resolvedType){let m=Aa(4096,"__importAttributes"),v=ta();re(n.elements,E=>{let L=Aa(4,rH(E));L.parent=m,L.links.type=HGt(E),L.links.target=L,v.set(L.escapedName,L)});let C=Io(m,v,F,F,F);C.objectFlags|=262272,d.resolvedType=C}return d.resolvedType}function Rc(n){let d=z_(n),m=kjt(!1);return m&&d&&d===m}function kh(n,d,m){return n?(n.flags&4096&&Rc(d.parent)&&(n=jEe(d)),m&&oce(d,n),n.flags&8192&&(Wa(d)||!d.type)&&n.symbol!==sr(d)&&(n=li),Ap(n)):(n=To(d)&&d.dotDotDotToken?Mc:je,m&&(lv(d)||sw(d,n)),n)}function lv(n){let d=$0(n),m=d.kind===169?d.parent:d;return uG(m)}function $m(n){let d=Yu(n);if(d)return yo(d)}function I6(n){let d=n.valueDeclaration;return d?(Wa(d)&&(d=FI(d)),To(d)?Vae(d.parent):!1):!1}function M2e(n){let d=Po(n);if(!d.type){let m=_ae(n);return!d.type&&!I6(n)&&(d.type=m),m}return d.type}function _ae(n){if(n.flags&4194304)return Y9(n);if(n===gt)return je;if(n.flags&134217728&&n.valueDeclaration){let v=sr(en(n.valueDeclaration)),C=Aa(v.flags,"exports");C.declarations=v.declarations?v.declarations.slice():[],C.parent=n,C.links.target=v,v.valueDeclaration&&(C.valueDeclaration=v.valueDeclaration),v.members&&(C.members=new Map(v.members)),v.exports&&(C.exports=new Map(v.exports));let E=ta();return E.set("exports",C),Io(n,E,F,F,F)}B.assertIsDefined(n.valueDeclaration);let d=n.valueDeclaration;if(mo(d)&&Wh(d))return d.statements.length?Ap(ow(Ho(d.statements[0].expression))):Ts;if(mx(d))return Q9(n);if(!av(n,0))return n.flags&512&&!(n.flags&67108864)?eF(n):N6(n);let m;if(d.kind===277)m=kh($m(d)||Tu(d.expression),d);else if(Yn(d)||Jn(d)&&(Gs(d)||(lr(d)||tV(d))&&Yn(d.parent)))m=$T(n);else if(lr(d)||nl(d)||et(d)||xc(d)||Z_(d)||Zu(d)||xu(d)||pu(d)&&!zh(d)||Z0(d)||mo(d)){if(n.flags&9136)return eF(n);m=Yn(d.parent)?$T(n):$m(d)||je}else if(ed(d))m=$m(d)||ltt(d);else if(ry(d))m=$m(d)||UZe(d);else if(jf(d))m=$m(d)||gF(d.name,0);else if(zh(d))m=$m(d)||utt(d,0);else if(To(d)||ls(d)||ep(d)||Ur(d)||Wa(d)||P3(d))m=Xn(d,!0);else if(dT(d))m=eF(n);else if(_S(d))m=gae(n);else return B.fail("Unhandled declaration kind! "+B.formatSyntaxKind(d.kind)+" for "+B.formatSymbol(n));return cv()?m:n.flags&512&&!(n.flags&67108864)?eF(n):N6(n)}function uD(n){if(n)switch(n.kind){case 177:return Up(n);case 178:return kge(n);case 172:return B.assert(G0(n)),Yu(n)}}function Z8(n){let d=uD(n);return d&&yo(d)}function R2e(n){let d=_Ne(n);return d&&d.symbol}function B2e(n){return ew(Km(n))}function Q9(n){let d=Po(n);if(!d.type){if(!av(n,0))return _t;let m=bl(n,177),v=bl(n,178),C=kr(bl(n,172),K_),E=m&&Jn(m)&&Ic(m)||Z8(m)||Z8(v)||Z8(C)||m&&m.body&&Bce(m)||C&&C.initializer&&Xn(C,!0);E||(v&&!uG(v)?_y(Se,v,S.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Lo(n)):m&&!uG(m)?_y(Se,m,S.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Lo(n)):C&&!uG(C)&&_y(Se,C,S.Member_0_implicitly_has_an_1_type,Lo(n),"any"),E=je),cv()||(uD(m)?ot(m,S._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Lo(n)):uD(v)||uD(C)?ot(v,S._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Lo(n)):m&&Se&&ot(m,S._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,Lo(n)),E=je),d.type??(d.type=E)}return d.type}function pae(n){let d=Po(n);if(!d.writeType){if(!av(n,7))return _t;let m=bl(n,178)??kr(bl(n,172),K_),v=Z8(m);cv()||(uD(m)&&ot(m,S._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Lo(n)),v=je),d.writeType??(d.writeType=v||Q9(n))}return d.writeType}function mae(n){let d=Yr(op(n));return d.flags&8650752?d:d.flags&2097152?St(d.types,m=>!!(m.flags&8650752)):void 0}function eF(n){let d=Po(n),m=d;if(!d.type){let v=n.valueDeclaration&&Mce(n.valueDeclaration,!1);if(v){let C=mIe(n,v);C&&(n=C,d=C.links)}m.type=d.type=hae(n)}return d.type}function hae(n){let d=n.valueDeclaration;if(n.flags&1536&&wM(n))return je;if(d&&(d.kind===226||il(d)&&d.parent.kind===226))return $T(n);if(n.flags&512&&d&&mo(d)&&d.commonJsModuleIndicator){let v=Ep(n);if(v!==n){if(!av(n,0))return _t;let C=cc(n.exports.get("export=")),E=$T(C,C===v?void 0:v);return cv()?E:N6(n)}}let m=M(16,n);if(n.flags&32){let v=mae(n);return v?wa([m,v]):m}else return he&&n.flags&16777216?hC(m,!0):m}function gae(n){let d=Po(n);return d.type||(d.type=hXe(n))}function kA(n){let d=Po(n);if(!d.type){if(!av(n,0))return _t;let m=xf(n),v=n.declarations&&Qx(i_(n),!0),C=Le(v?.declarations,E=>ll(E)?$m(E):void 0);if(d.type??(d.type=v?.declarations&&rle(v.declarations)&&n.declarations.length?Gq(v):rle(n.declarations)?It:C||(n_(m)&111551?Wn(m):_t)),!cv())return N6(v??n),d.type??(d.type=_t)}return d.type}function yae(n){let d=Po(n);return d.type||(d.type=Oo(Wn(d.target),d.mapper))}function j2e(n){let d=Po(n);return d.writeType||(d.writeType=Oo(aC(d.target),d.mapper))}function N6(n){let d=n.valueDeclaration;if(d){if(Yu(d))return ot(n.valueDeclaration,S._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Lo(n)),_t;Se&&(d.kind!==169||d.initializer)&&ot(n.valueDeclaration,S._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Lo(n))}else if(n.flags&2097152){let m=i_(n);m&&ot(m,S.Circular_definition_of_import_alias_0,Lo(n))}return je}function Z9(n){let d=Po(n);return d.type||(B.assertIsDefined(d.deferralParent),B.assertIsDefined(d.deferralConstituents),d.type=d.deferralParent.flags&1048576?Fr(d.deferralConstituents):wa(d.deferralConstituents)),d.type}function W2e(n){let d=Po(n);return!d.writeType&&d.deferralWriteConstituents&&(B.assertIsDefined(d.deferralParent),B.assertIsDefined(d.deferralConstituents),d.writeType=d.deferralParent.flags&1048576?Fr(d.deferralWriteConstituents):wa(d.deferralWriteConstituents)),d.writeType}function aC(n){let d=_u(n);return n.flags&4?d&2?d&65536?W2e(n)||Z9(n):n.links.writeType||n.links.type:Lb(Wn(n),!!(n.flags&16777216)):n.flags&98304?d&1?j2e(n):pae(n):Wn(n)}function Wn(n){let d=_u(n);return d&65536?Z9(n):d&1?yae(n):d&262144?zBt(n):d&8192?oVt(n):n.flags&7?M2e(n):n.flags&9136?eF(n):n.flags&8?gae(n):n.flags&98304?Q9(n):n.flags&2097152?kA(n):_t}function cC(n){return Lb(Wn(n),!!(n.flags&16777216))}function vae(n,d){if(n===void 0||!(_r(n)&4))return!1;for(let m of d)if(n.target===m)return!0;return!1}function gy(n,d){return n!==void 0&&d!==void 0&&(_r(n)&4)!==0&&n.target===d}function dD(n){return _r(n)&4?n.target:n}function A6(n,d){return m(n);function m(v){if(_r(v)&7){let C=dD(v);return C===d||Lt(dl(C),m)}else if(v.flags&2097152)return Lt(v.types,m);return!1}}function Kq(n,d){for(let m of d)n=Qd(n,GT(sr(m)));return n}function P6(n,d){for(;;){if(n=n.parent,n&&Yn(n)){let v=Su(n);if(v===6||v===3){let C=sr(n.left);C&&C.parent&&!Ri(C.parent.valueDeclaration,E=>n===E)&&(n=C.parent.valueDeclaration)}}if(!n)return;let m=n.kind;switch(m){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 317:case 262:case 174:case 218:case 219:case 265:case 345:case 346:case 340:case 338:case 200:case 194:{let C=P6(n,d);if((m===218||m===219||zh(n))&&Xm(n)){let J=mc(Bs(Wn(sr(n)),0));if(J&&J.typeParameters)return[...C||F,...J.typeParameters]}if(m===200)return hi(C,GT(sr(n.typeParameter)));if(m===194)return Fo(C,FEe(n));let E=Kq(C,dx(n)),L=d&&(m===263||m===231||m===264||Ty(n))&&op(sr(n)).thisType;return L?hi(E,L):E}case 341:let v=ZM(n);v&&(n=v.valueDeclaration);break;case 320:{let C=P6(n,d);return n.tags?Kq(C,vo(n.tags,E=>Gh(E)?E.typeParameters:void 0)):C}}}}function Xq(n){var d;let m=n.flags&32||n.flags&16?n.valueDeclaration:(d=n.declarations)==null?void 0:d.find(v=>{if(v.kind===264)return!0;if(v.kind!==260)return!1;let C=v.initializer;return!!C&&(C.kind===218||C.kind===219)});return B.assert(!!m,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),P6(m)}function Ag(n){if(!n.declarations)return;let d;for(let m of n.declarations)(m.kind===264||m.kind===263||m.kind===231||Ty(m)||XM(m))&&(d=Kq(d,dx(m)));return d}function z2e(n){return Fo(Xq(n),Ag(n))}function Qk(n){let d=Bs(n,1);if(d.length===1){let m=d[0];if(!m.typeParameters&&m.parameters.length===1&&Xf(m)){let v=iG(m.parameters[0]);return pc(v)||D$(v)===je}}return!1}function on(n){if(Bs(n,1).length>0)return!0;if(n.flags&8650752){let d=Cf(n);return!!d&&Qk(d)}return!1}function fr(n){let d=eb(n.symbol);return d&&J0(d)}function vr(n,d,m){let v=K(d),C=Jn(m);return Di(Bs(n,1),E=>(C||v>=by(E.typeParameters))&&v<=K(E.typeParameters))}function ao(n,d,m){let v=vr(n,d,m),C=_i(d,yo);return Uo(v,E=>Lt(E.typeParameters)?oB(E,C,Jn(m)):E)}function Yr(n){if(!n.resolvedBaseConstructorType){let d=eb(n.symbol),m=d&&J0(d),v=fr(n);if(!v)return n.resolvedBaseConstructorType=$e;if(!av(n,1))return _t;let C=Ho(v.expression);if(m&&v!==m&&(B.assert(!m.typeArguments),Ho(m.expression)),C.flags&2621440&&y0(C),!cv())return ot(n.symbol.valueDeclaration,S._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Lo(n.symbol)),n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=_t);if(!(C.flags&1)&&C!==tt&&!on(C)){let E=ot(v.expression,S.Type_0_is_not_a_constructor_function_type,Dn(C));if(C.flags&262144){let L=rF(C),J=Y;if(L){let ee=Bs(L,1);ee[0]&&(J=vc(ee[0]))}C.symbol.declarations&&Xs(E,Mn(C.symbol.declarations[0],S.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Lo(C.symbol),Dn(J)))}return n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=_t)}n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=C)}return n.resolvedBaseConstructorType}function sc(n){let d=F;if(n.symbol.declarations)for(let m of n.symbol.declarations){let v=e4(m);if(v)for(let C of v){let E=yo(C);le(E)||(d===F?d=[E]:d.push(E))}}return d}function Bc(n,d){ot(n,S.Type_0_recursively_references_itself_as_a_base_type,Dn(d,void 0,2))}function dl(n){if(!n.baseTypesResolved){if(av(n,6)&&(n.objectFlags&8?n.resolvedBaseTypes=[uv(n)]:n.symbol.flags&96?(n.symbol.flags&32&&yy(n),n.symbol.flags&64&&eB(n)):B.fail("type must be class or interface"),!cv()&&n.symbol.declarations))for(let d of n.symbol.declarations)(d.kind===263||d.kind===264)&&Bc(d,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function uv(n){let d=Uo(n.typeParameters,(m,v)=>n.elementFlags[v]&8?Ip(m,ei):m);return Hf(Fr(d||F),n.readonly)}function yy(n){n.resolvedBaseTypes=RQ;let d=S_(Yr(n));if(!(d.flags&2621441))return n.resolvedBaseTypes=F;let m=fr(n),v,C=d.symbol?Qc(d.symbol):void 0;if(d.symbol&&d.symbol.flags&32&&h0(C))v=eYe(m,d.symbol);else if(d.flags&1)v=d;else{let L=ao(d,m.typeArguments,m);if(!L.length)return ot(m.expression,S.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=F;v=vc(L[0])}if(le(v))return n.resolvedBaseTypes=F;let E=v0(v);if(!vy(E)){let L=Z2e(void 0,v),J=bs(L,S.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Dn(E));return Ga.add(zv(en(m.expression),m.expression,J)),n.resolvedBaseTypes=F}return n===E||A6(E,n)?(ot(n.symbol.valueDeclaration,S.Type_0_recursively_references_itself_as_a_base_type,Dn(n,void 0,2)),n.resolvedBaseTypes=F):(n.resolvedBaseTypes===RQ&&(n.members=void 0),n.resolvedBaseTypes=[E])}function h0(n){let d=n.outerTypeParameters;if(d){let m=d.length-1,v=fl(n);return d[m].symbol!==v[m].symbol}return!0}function vy(n){if(n.flags&262144){let d=Cf(n);if(d)return vy(d)}return!!(n.flags&67633153&&!Dp(n)||n.flags&2097152&&Et(n.types,vy))}function eB(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||F,n.symbol.declarations){for(let d of n.symbol.declarations)if(d.kind===264&&Z3(d))for(let m of Z3(d)){let v=v0(yo(m));le(v)||(vy(v)?n!==v&&!A6(v,n)?n.resolvedBaseTypes===F?n.resolvedBaseTypes=[v]:n.resolvedBaseTypes.push(v):Bc(d,n):ot(m,S.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function L6(n){if(!n.declarations)return!0;for(let d of n.declarations)if(d.kind===264){if(d.flags&256)return!1;let m=Z3(d);if(m){for(let v of m)if(Xc(v.expression)){let C=Ml(v.expression,788968,!0);if(!C||!(C.flags&64)||op(C).thisType)return!1}}}return!0}function op(n){let d=Po(n),m=d;if(!d.declaredType){let v=n.flags&32?1:2,C=mIe(n,n.valueDeclaration&&_Jt(n.valueDeclaration));C&&(n=C,d=C.links);let E=m.declaredType=d.declaredType=M(v,n),L=Xq(n),J=Ag(n);(L||J||v===1||!L6(n))&&(E.objectFlags|=4,E.typeParameters=Fo(L,J),E.outerTypeParameters=L,E.localTypeParameters=J,E.instantiations=new Map,E.instantiations.set(cg(E.typeParameters),E),E.target=E,E.resolvedTypeArguments=E.typeParameters,E.thisType=Rt(n),E.thisType.isThisType=!0,E.thisType.constraint=E)}return d.declaredType}function _Xe(n){var d;let m=Po(n);if(!m.declaredType){if(!av(n,2))return _t;let v=B.checkDefined((d=n.declarations)==null?void 0:d.find(XM),"Type alias symbol with no valid declaration found"),C=Vh(v)?v.typeExpression:v.type,E=C?yo(C):_t;if(cv()){let L=Ag(n);L&&(m.typeParameters=L,m.instantiations=new Map,m.instantiations.set(cg(L),E)),E===nr&&n.escapedName==="BuiltinIteratorReturn"&&(E=vEe())}else E=_t,v.kind===340?ot(v.typeExpression.type,S.Type_alias_0_circularly_references_itself,Lo(n)):ot(pf(v)&&v.name||v,S.Type_alias_0_circularly_references_itself,Lo(n));m.declaredType??(m.declaredType=E)}return m.declaredType}function bae(n){return n.flags&1056&&n.symbol.flags&8?Qc(bm(n.symbol)):n}function pXe(n){let d=Po(n);if(!d.declaredType){let m=[];if(n.declarations){for(let C of n.declarations)if(C.kind===266){for(let E of C.members)if(O6(E)){let L=sr(E),J=AD(E).value,ee=PA(J!==void 0?WWt(J,Ca(n),L):mXe(L));Po(L).declaredType=ee,m.push(x_(ee))}}}let v=m.length?Fr(m,1,n,void 0):mXe(n);v.flags&1048576&&(v.flags|=1024,v.symbol=n),d.declaredType=v}return d.declaredType}function mXe(n){let d=ag(32,n),m=ag(32,n);return d.regularType=d,d.freshType=m,m.regularType=d,m.freshType=m,d}function hXe(n){let d=Po(n);if(!d.declaredType){let m=pXe(bm(n));d.declaredType||(d.declaredType=m)}return d.declaredType}function GT(n){let d=Po(n);return d.declaredType||(d.declaredType=Rt(n))}function yBt(n){let d=Po(n);return d.declaredType||(d.declaredType=Qc(xf(n)))}function Qc(n){return gXe(n)||_t}function gXe(n){if(n.flags&96)return op(n);if(n.flags&524288)return _Xe(n);if(n.flags&262144)return GT(n);if(n.flags&384)return pXe(n);if(n.flags&8)return hXe(n);if(n.flags&2097152)return yBt(n)}function Yq(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return Yq(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(Yq)}return!1}function vBt(n){let d=OP(n);return!d||Yq(d)}function yXe(n){let d=Yu(n);return d?Yq(d):!Qb(n)}function bBt(n){let d=Up(n),m=dx(n);return(n.kind===176||!!d&&Yq(d))&&n.parameters.every(yXe)&&m.every(vBt)}function SBt(n){if(n.declarations&&n.declarations.length===1){let d=n.declarations[0];if(d)switch(d.kind){case 172:case 171:return yXe(d);case 174:case 173:case 176:case 177:case 178:return bBt(d)}}return!1}function vXe(n,d,m){let v=ta();for(let C of n)v.set(C.escapedName,m&&SBt(C)?C:HEe(C,d));return v}function bXe(n,d){for(let m of d){if(SXe(m))continue;let v=n.get(m.escapedName);(!v||v.valueDeclaration&&Yn(v.valueDeclaration)&&!kb(v)&&!$he(v.valueDeclaration))&&(n.set(m.escapedName,m),n.set(m.escapedName,m))}}function SXe(n){return!!n.valueDeclaration&&u_(n.valueDeclaration)&&ia(n.valueDeclaration)}function V2e(n){if(!n.declaredProperties){let d=n.symbol,m=lC(d);n.declaredProperties=Xr(m),n.declaredCallSignatures=F,n.declaredConstructSignatures=F,n.declaredIndexInfos=F,n.declaredCallSignatures=QT(m.get("__call")),n.declaredConstructSignatures=QT(m.get("__new")),n.declaredIndexInfos=XXe(d)}return n}function Sae(n){if(!Ma(n)&&!nl(n))return!1;let d=Ma(n)?n.expression:n.argumentExpression;return Xc(d)&&uh(Ma(n)?Cy(n):Tu(d))}function tB(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function Qq(n){let d=cs(n);return!!d&&Sae(d)}function O6(n){return!Y1(n)||Qq(n)}function xBt(n){return cV(n)&&!Sae(n)}function CBt(n,d,m){B.assert(!!(_u(n)&4096),"Expected a late-bound symbol."),n.flags|=m,Po(d.symbol).lateSymbol=n,n.declarations?d.symbol.isReplaceableByMethod||n.declarations.push(d):n.declarations=[d],m&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==d.kind)&&(n.valueDeclaration=d)}function xXe(n,d,m,v){B.assert(!!v.symbol,"The member is expected to have a symbol.");let C=rr(v);if(!C.resolvedSymbol){C.resolvedSymbol=v.symbol;let E=Yn(v)?v.left:v.name,L=nl(E)?Tu(E.argumentExpression):Cy(E);if(uh(L)){let J=dh(L),ee=v.symbol.flags,oe=m.get(J);oe||m.set(J,oe=Aa(0,J,4096));let pe=d&&d.get(J);if(!(n.flags&32)&&oe.flags&Hk(ee)){let Me=pe?Fo(pe.declarations,oe.declarations):oe.declarations,Ne=!(L.flags&8192)&&So(J)||Hc(E);re(Me,vt=>ot(cs(vt)||vt,S.Property_0_was_also_declared_here,Ne)),ot(E||v,S.Duplicate_property_0,Ne),oe=Aa(0,J,4096)}return oe.links.nameType=L,CBt(oe,v,ee),oe.parent?B.assert(oe.parent===n,"Existing symbol parent should match new one"):oe.parent=n,C.resolvedSymbol=oe}}return C.resolvedSymbol}function H2e(n,d){let m=Po(n);if(!m[d]){let v=d==="resolvedExports",C=v?n.flags&1536?k6(n).exports:n.exports:n.members;m[d]=C||q;let E=ta();for(let ee of n.declarations||F){let oe=Bhe(ee);if(oe)for(let pe of oe)v===cd(pe)&&Qq(pe)&&xXe(n,C,E,pe)}let L=VT(n).assignmentDeclarationMembers;if(L){let ee=as(L.values());for(let oe of ee){let pe=Su(oe),Me=pe===3||Yn(oe)&&bce(oe,pe)||pe===9||pe===6;v===!Me&&Qq(oe)&&xXe(n,C,E,oe)}}let J=Gx(C,E);if(n.flags&33554432&&m.cjsExportMerged&&n.declarations)for(let ee of n.declarations){let oe=Po(ee.symbol)[d];if(!J){J=oe;continue}oe&&oe.forEach((pe,Me)=>{let Ne=J.get(Me);if(!Ne)J.set(Me,pe);else{if(Ne===pe)return;J.set(Me,d0(Ne,pe))}})}m[d]=J||q}return m[d]}function lC(n){return n.flags&6256?H2e(n,"resolvedMembers"):n.members||q}function xae(n){if(n.flags&106500&&n.escapedName==="__computed"){let d=Po(n);if(!d.lateSymbol&&Lt(n.declarations,Qq)){let m=cc(n.parent);Lt(n.declarations,cd)?W_(m):lC(m)}return d.lateSymbol||(d.lateSymbol=n)}return n}function om(n,d,m){if(_r(n)&4){let v=n.target,C=fl(n);return K(v.typeParameters)===K(C)?Eb(v,Fo(C,[d||v.thisType])):n}else if(n.flags&2097152){let v=Uo(n.types,C=>om(C,d,m));return v!==n.types?wa(v):n}return m?S_(n):n}function CXe(n,d,m,v){let C,E,L,J,ee;D0(m,v,0,m.length)?(E=d.symbol?lC(d.symbol):ta(d.declaredProperties),L=d.declaredCallSignatures,J=d.declaredConstructSignatures,ee=d.declaredIndexInfos):(C=Np(m,v),E=vXe(d.declaredProperties,C,m.length===1),L=jae(d.declaredCallSignatures,C),J=jae(d.declaredConstructSignatures,C),ee=eQe(d.declaredIndexInfos,C));let oe=dl(d);if(oe.length){if(d.symbol&&E===lC(d.symbol)){let Me=ta(d.declaredProperties),Ne=cEe(d.symbol);Ne&&Me.set("__index",Ne),E=Me}Wo(n,E,L,J,ee);let pe=Lc(v);for(let Me of oe){let Ne=pe?om(Oo(Me,C),pe):Me;bXe(E,yc(Ne)),L=Fo(L,Bs(Ne,0)),J=Fo(J,Bs(Ne,1));let vt=Ne!==je?r_(Ne):[_v(Qe,je,!1)];ee=Fo(ee,Di(vt,Ot=>!eEe(ee,Ot.keyType)))}}Wo(n,E,L,J,ee)}function kBt(n){CXe(n,V2e(n),F,F)}function wBt(n){let d=V2e(n.target),m=Fo(d.typeParameters,[d.thisType]),v=fl(n),C=v.length===m.length?v:Fo(v,[n]);CXe(n,d,m,C)}function g1(n,d,m,v,C,E,L,J){let ee=new y(Sn,J);return ee.declaration=n,ee.typeParameters=d,ee.parameters=v,ee.thisParameter=m,ee.resolvedReturnType=C,ee.resolvedTypePredicate=E,ee.minArgumentCount=L,ee.resolvedMinArgumentCount=void 0,ee.target=void 0,ee.mapper=void 0,ee.compositeSignatures=void 0,ee.compositeKind=void 0,ee}function iB(n){let d=g1(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return d.target=n.target,d.mapper=n.mapper,d.compositeSignatures=n.compositeSignatures,d.compositeKind=n.compositeKind,d}function kXe(n,d){let m=iB(n);return m.compositeSignatures=d,m.compositeKind=1048576,m.target=void 0,m.mapper=void 0,m}function TBt(n,d){if((n.flags&24)===d)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});let m=d===8?"inner":"outer";return n.optionalCallSignatureCache[m]||(n.optionalCallSignatureCache[m]=EBt(n,d))}function EBt(n,d){B.assert(d===8||d===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let m=iB(n);return m.flags|=d,m}function wXe(n,d){if(Xf(n)){let C=n.parameters.length-1,E=n.parameters[C],L=Wn(E);if(Ba(L))return[m(L,C,E)];if(!d&&L.flags&1048576&&Et(L.types,Ba))return _i(L.types,J=>m(J,C,E))}return[n.parameters];function m(C,E,L){let J=fl(C),ee=v(C,L),oe=_i(J,(pe,Me)=>{let Ne=ee&&ee[Me]?ee[Me]:pF(n,E+Me,C),vt=C.target.elementFlags[Me],Ot=vt&12?32768:vt&2?16384:0,jt=Aa(1,Ne,Ot);return jt.links.type=vt&4?Hf(pe):pe,jt});return Fo(n.parameters.slice(0,E),oe)}function v(C,E){let L=_i(C.target.labeledElementDeclarations,(J,ee)=>SIe(J,ee,C.target.elementFlags[ee],E));if(L){let J=[],ee=new Set;for(let pe=0;pe=Me&&ee<=Ne){let vt=Ne?wae(pe,uC(J,pe.typeParameters,Me,L)):iB(pe);vt.typeParameters=n.localTypeParameters,vt.resolvedReturnType=n,vt.flags=C?vt.flags|4:vt.flags&-5,oe.push(vt)}}return oe}function Cae(n,d,m,v,C){for(let E of n)if(T$(E,d,m,v,C,m?ozt:_B))return E}function IBt(n,d,m){if(d.typeParameters){if(m>0)return;for(let C=1;C1&&(m=m===void 0?v:-1);for(let C of n[v])if(!d||!Cae(d,C,!1,!1,!0)){let E=IBt(n,C,v);if(E){let L=C;if(E.length>1){let J=C.thisParameter,ee=re(E,oe=>oe.thisParameter);if(ee){let oe=wa(ro(E,pe=>pe.thisParameter&&Wn(pe.thisParameter)));J=SD(ee,oe)}L=kXe(C,E),L.thisParameter=J}(d||(d=[])).push(L)}}}if(!K(d)&&m!==-1){let v=n[m!==void 0?m:0],C=v.slice();for(let E of n)if(E!==v){let L=E[0];if(B.assert(!!L,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),C=L.typeParameters&&Lt(C,J=>!!J.typeParameters&&!TXe(L.typeParameters,J.typeParameters))?void 0:_i(C,J=>PBt(J,L)),!C)break}d=C}return d||F}function TXe(n,d){if(K(n)!==K(d))return!1;if(!n||!d)return!0;let m=Np(d,n);for(let v=0;v=C?n:d,L=E===n?d:n,J=E===n?v:C,ee=hv(n)||hv(d),oe=ee&&!hv(E),pe=new Array(J+(oe?1:0));for(let Me=0;Me=Ey(E)&&Me>=Ey(L),Pi=Me>=v?void 0:pF(n,Me),Pn=Me>=C?void 0:pF(d,Me),Bn=Pi===Pn?Pi:Pi?Pn?void 0:Pi:Pn,$i=Aa(1|(xi&&!jt?16777216:0),Bn||`arg${Me}`,jt?32768:xi?16384:0);$i.links.type=jt?Hf(Ot):Ot,pe[Me]=$i}if(oe){let Me=Aa(1,"args",32768);Me.links.type=Hf(x0(L,J)),L===d&&(Me.links.type=Oo(Me.links.type,m)),pe[J]=Me}return pe}function PBt(n,d){let m=n.typeParameters||d.typeParameters,v;n.typeParameters&&d.typeParameters&&(v=Np(d.typeParameters,n.typeParameters));let C=n.declaration,E=ABt(n,d,v),L=NBt(n.thisParameter,d.thisParameter,v),J=Math.max(n.minArgumentCount,d.minArgumentCount),ee=g1(C,m,L,E,void 0,void 0,J,(n.flags|d.flags)&167);return ee.compositeKind=1048576,ee.compositeSignatures=Fo(n.compositeKind!==2097152&&n.compositeSignatures||[n],[d]),v?ee.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?r2(n.mapper,v):v:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(ee.mapper=n.mapper),ee}function EXe(n){let d=r_(n[0]);if(d){let m=[];for(let v of d){let C=v.keyType;Et(n,E=>!!y1(E,C))&&m.push(_v(C,Fr(_i(n,E=>Zk(E,C))),Lt(n,E=>y1(E,C).isReadonly)))}return m}return F}function LBt(n){let d=U2e(_i(n.types,C=>C===_d?[ri]:Bs(C,0))),m=U2e(_i(n.types,C=>Bs(C,1))),v=EXe(n.types);Wo(n,q,d,m,v)}function Zq(n,d){return n?d?wa([n,d]):n:d}function DXe(n){let d=er(n,v=>Bs(v,1).length>0),m=_i(n,Qk);if(d>0&&d===er(m,v=>v)){let v=m.indexOf(!0);m[v]=!1}return m}function OBt(n,d,m,v){let C=[];for(let E=0;EJ);for(let J=0;J0&&(oe=_i(oe,pe=>{let Me=iB(pe);return Me.resolvedReturnType=OBt(vc(pe),C,E,J),Me})),m=IXe(m,oe)}d=IXe(d,Bs(ee,0)),v=Of(r_(ee),(oe,pe)=>NXe(oe,pe,!1),v)}Wo(n,q,d||F,m||F,v||F)}function IXe(n,d){for(let m of d)(!n||Et(n,v=>!T$(v,m,!1,!1,!1,_B)))&&(n=hi(n,m));return n}function NXe(n,d,m){if(n)for(let v=0;v{var ee;!(J.flags&418)&&!(J.flags&512&&((ee=J.declarations)!=null&&ee.length)&&Et(J.declarations,d_))&&L.set(J.escapedName,J)}),m=L}let C;if(Wo(n,m,F,F,F),d.flags&32){let L=op(d),J=Yr(L);J.flags&11272192?(m=ta(Zo(m)),bXe(m,yc(J))):J===je&&(C=_v(Qe,je,!1))}let E=Tae(m);if(E?v=lEe(E):(C&&(v=hi(v,C)),d.flags&384&&(Qc(d).flags&32||Lt(n.properties,L=>!!(Wn(L).flags&296)))&&(v=hi(v,Bi))),Wo(n,m,F,F,v||F),d.flags&8208&&(n.callSignatures=QT(d)),d.flags&32){let L=op(d),J=d.members?QT(d.members.get("__constructor")):F;d.flags&16&&(J=Fn(J.slice(),ro(n.callSignatures,ee=>Ty(ee.declaration)?g1(ee.declaration,ee.typeParameters,ee.thisParameter,ee.parameters,L,void 0,ee.minArgumentCount,ee.flags&167):void 0))),J.length||(J=DBt(L)),n.constructSignatures=J}}function RBt(n,d,m){return Oo(n,Np([d.indexType,d.objectType],[Pg(0),pv([m])]))}function BBt(n){let d=Gm(n.mappedType);if(!(d.flags&1048576||d.flags&2097152))return;let m=d.flags&1048576?d.origin:d;if(!m||!(m.flags&2097152))return;let v=wa(m.types.filter(C=>C!==n.constraintType));return v!==Si?v:void 0}function jBt(n){let d=y1(n.source,Qe),m=dv(n.mappedType),v=!(m&1),C=m&4?0:16777216,E=d?[_v(Qe,ace(d.type,n.mappedType,n.constraintType)||Y,v&&d.isReadonly)]:F,L=ta(),J=BBt(n);for(let ee of yc(n.source)){if(J){let Me=DA(ee,8576);if(!fa(Me,J))continue}let oe=8192|(v&&C0(ee)?8:0),pe=Aa(4|ee.flags&C,ee.escapedName,oe);if(pe.declarations=ee.declarations,pe.links.nameType=Po(ee).nameType,pe.links.propertyType=Wn(ee),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){let Me=n.constraintType.type.objectType,Ne=RBt(n.mappedType,n.constraintType.type,Me);pe.links.mappedType=Ne,pe.links.constraintType=Sy(Me)}else pe.links.mappedType=n.mappedType,pe.links.constraintType=n.constraintType;L.set(ee.escapedName,pe)}Wo(n,L,F,F,E)}function e$(n){if(n.flags&4194304){let d=S_(n.type);return mC(d)?wYe(d):Sy(d)}if(n.flags&16777216){if(n.root.isDistributive){let d=n.checkType,m=e$(d);if(m!==d)return UEe(n,vD(n.root.checkType,m,n.mapper),!1)}return n}if(n.flags&1048576)return Nl(n,e$,!0);if(n.flags&2097152){let d=n.types;return d.length===2&&d[0].flags&76&&d[1]===Ko?n:wa(Uo(n.types,e$))}return n}function J2e(n){return _u(n)&4096}function q2e(n,d,m,v){for(let C of yc(n))v(DA(C,d));if(n.flags&1)v(Qe);else for(let C of r_(n))(!m||C.keyType.flags&134217732)&&v(C.keyType)}function WBt(n){let d=ta(),m;Wo(n,q,F,F,F);let v=g0(n),C=Gm(n),E=n.target||n,L=WS(E),J=t$(E)!==2,ee=Tb(E),oe=S_(KT(n)),pe=dv(n);F6(n)?q2e(oe,8576,!1,Ne):wD(e$(C),Ne),Wo(n,d,F,F,m||F);function Ne(Ot){let jt=L?Oo(L,uB(n.mapper,v,Ot)):Ot;wD(jt,xi=>vt(Ot,xi))}function vt(Ot,jt){if(uh(jt)){let xi=dh(jt),Pi=d.get(xi);if(Pi)Pi.links.nameType=Fr([Pi.links.nameType,jt]),Pi.links.keyType=Fr([Pi.links.keyType,Ot]);else{let Pn=uh(Ot)?da(oe,dh(Ot)):void 0,Bn=!!(pe&4||!(pe&8)&&Pn&&Pn.flags&16777216),$i=!!(pe&1||!(pe&2)&&Pn&&C0(Pn)),Ni=he&&!Bn&&Pn&&Pn.flags&16777216,Zn=Pn?J2e(Pn):0,wr=Aa(4|(Bn?16777216:0),xi,Zn|262144|($i?8:0)|(Ni?524288:0));wr.links.mappedType=n,wr.links.nameType=jt,wr.links.keyType=Ot,Pn&&(wr.links.syntheticOrigin=Pn,wr.declarations=J?Pn.declarations:void 0),d.set(xi,wr)}}else if(Eae(jt)||jt.flags&33){let xi=jt.flags&5?Qe:jt.flags&40?ei:jt,Pi=Oo(ee,uB(n.mapper,v,Ot)),Pn=nB(oe,jt),Bn=!!(pe&1||!(pe&2)&&Pn?.isReadonly),$i=_v(xi,Pi,Bn);m=NXe(m,$i,!0)}}}function zBt(n){var d;if(!n.links.type){let m=n.links.mappedType;if(!av(n,0))return m.containsError=!0,_t;let v=Tb(m.target||m),C=uB(m.mapper,g0(m),n.links.keyType),E=Oo(v,C),L=he&&n.flags&16777216&&!hu(E,49152)?hC(E,!0):n.links.checkFlags&524288?ice(E):E;cv()||(ot(R,S.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Lo(n),Dn(m)),L=_t),(d=n.links).type??(d.type=L)}return n.links.type}function g0(n){return n.typeParameter||(n.typeParameter=GT(sr(n.declaration.typeParameter)))}function Gm(n){return n.constraintType||(n.constraintType=V_(g0(n))||_t)}function WS(n){return n.declaration.nameType?n.nameType||(n.nameType=Oo(yo(n.declaration.nameType),n.mapper)):void 0}function Tb(n){return n.templateType||(n.templateType=n.declaration.type?Oo(md(yo(n.declaration.type),!0,!!(dv(n)&4)),n.mapper):_t)}function AXe(n){return OP(n.declaration.typeParameter)}function F6(n){let d=AXe(n);return d.kind===198&&d.operator===143}function KT(n){if(!n.modifiersType)if(F6(n))n.modifiersType=Oo(yo(AXe(n).type),n.mapper);else{let d=LEe(n.declaration),m=Gm(d),v=m&&m.flags&262144?V_(m):m;n.modifiersType=v&&v.flags&4194304?Oo(v.type,n.mapper):Y}return n.modifiersType}function dv(n){let d=n.declaration;return(d.readonlyToken?d.readonlyToken.kind===41?2:1:0)|(d.questionToken?d.questionToken.kind===41?8:4:0)}function PXe(n){let d=dv(n);return d&8?-1:d&4?1:0}function tF(n){if(_r(n)&32)return PXe(n)||tF(KT(n));if(n.flags&2097152){let d=tF(n.types[0]);return Et(n.types,(m,v)=>v===0||tF(m)===d)?d:0}return 0}function VBt(n){return!!(_r(n)&32&&dv(n)&4)}function Dp(n){if(_r(n)&32){let d=Gm(n);if(yD(d))return!0;let m=WS(n);if(m&&yD(Oo(m,n2(g0(n),d))))return!0}return!1}function t$(n){let d=WS(n);return d?fa(d,g0(n))?1:2:0}function y0(n){return n.members||(n.flags&524288?n.objectFlags&4?wBt(n):n.objectFlags&3?kBt(n):n.objectFlags&1024?jBt(n):n.objectFlags&16?MBt(n):n.objectFlags&32?WBt(n):B.fail("Unhandled object type "+B.formatObjectFlags(n.objectFlags)):n.flags&1048576?LBt(n):n.flags&2097152?FBt(n):B.fail("Unhandled type "+B.formatTypeFlags(n.flags))),n}function zS(n){return n.flags&524288?y0(n).properties:F}function XT(n,d){if(n.flags&524288){let v=y0(n).members.get(d);if(v&&nm(v))return v}}function i$(n){if(!n.resolvedProperties){let d=ta();for(let m of n.types){for(let v of yc(m))if(!d.has(v.escapedName)){let C=r$(n,v.escapedName,!!(n.flags&2097152));C&&d.set(v.escapedName,C)}if(n.flags&1048576&&r_(m).length===0)break}n.resolvedProperties=Xr(d)}return n.resolvedProperties}function yc(n){return n=iF(n),n.flags&3145728?i$(n):zS(n)}function HBt(n,d){n=iF(n),n.flags&3670016&&y0(n).members.forEach((m,v)=>{jo(m,v)&&d(m,v)})}function UBt(n,d){return d.properties.some(v=>{let C=v.name&&(e0(v.name)?sp(NR(v.name)):Db(v.name)),E=C&&uh(C)?dh(C):void 0,L=E===void 0?void 0:Mu(n,E);return!!L&&hB(L)&&!fa(VA(v),L)})}function JBt(n){let d=Fr(n);if(!(d.flags&1048576))return oNe(d);let m=ta();for(let v of n)for(let{escapedName:C}of oNe(v))if(!m.has(C)){let E=jXe(d,C);E&&m.set(C,E)}return as(m.values())}function fD(n){return n.flags&262144?V_(n):n.flags&8388608?$Bt(n):n.flags&16777216?FXe(n):Cf(n)}function V_(n){return n$(n)?rF(n):void 0}function qBt(n,d){let m=dB(n);return!!m&&_D(m,d)}function _D(n,d=0){var m;return d<5&&!!(n&&(n.flags&262144&&Lt((m=n.symbol)==null?void 0:m.declarations,v=>Ar(v,4096))||n.flags&3145728&&Lt(n.types,v=>_D(v,d))||n.flags&8388608&&_D(n.objectType,d+1)||n.flags&16777216&&_D(FXe(n),d+1)||n.flags&33554432&&_D(n.baseType,d)||_r(n)&32&&qBt(n,d)||mC(n)&&zi(e2(n),(v,C)=>!!(n.target.elementFlags[C]&8)&&_D(v,d))>=0))}function $Bt(n){return n$(n)?GBt(n):void 0}function $2e(n){let d=Ib(n,!1);return d!==n?d:fD(n)}function GBt(n){if(Y2e(n))return Fae(n.objectType,n.indexType);let d=$2e(n.indexType);if(d&&d!==n.indexType){let v=fC(n.objectType,d,n.accessFlags);if(v)return v}let m=$2e(n.objectType);if(m&&m!==n.objectType)return fC(m,n.indexType,n.accessFlags)}function G2e(n){if(!n.resolvedDefaultConstraint){let d=FWt(n),m=iw(n);n.resolvedDefaultConstraint=pc(d)?m:pc(m)?d:Fr([d,m])}return n.resolvedDefaultConstraint}function LXe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){let d=Ib(n.checkType,!1),m=d===n.checkType?fD(d):d;if(m&&m!==n.checkType){let v=UEe(n,vD(n.root.checkType,m,n.mapper),!0);if(!(v.flags&131072))return n.resolvedConstraintOfDistributive=v,v}}n.resolvedConstraintOfDistributive=!1}function OXe(n){return LXe(n)||G2e(n)}function FXe(n){return n$(n)?OXe(n):void 0}function KBt(n,d){let m,v=!1;for(let C of n)if(C.flags&465829888){let E=fD(C);for(;E&&E.flags&21233664;)E=fD(E);E&&(m=hi(m,E),d&&(m=hi(m,C)))}else(C.flags&469892092||mv(C))&&(v=!0);if(m&&(d||v)){if(v)for(let C of n)(C.flags&469892092||mv(C))&&(m=hi(m,C));return C$(wa(m,2),!1)}}function Cf(n){if(n.flags&464781312||mC(n)){let d=K2e(n);return d!==pi&&d!==Ac?d:void 0}return n.flags&4194304?ai:void 0}function fv(n){return Cf(n)||n}function n$(n){return K2e(n)!==Ac}function K2e(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let d=[];return n.resolvedBaseConstraint=m(n);function m(E){if(!E.immediateBaseConstraint){if(!av(E,4))return Ac;let L,J=Xae(E);if((d.length<10||d.length<50&&!sn(d,J))&&(d.push(J),L=C(Ib(E,!1)),d.pop()),!cv()){if(E.flags&262144){let ee=Dae(E);if(ee){let oe=ot(ee,S.Type_parameter_0_has_a_circular_constraint,Dn(E));R&&!Xw(ee,R)&&!Xw(R,ee)&&Xs(oe,Mn(R,S.Circularity_originates_in_type_at_this_location))}}L=Ac}E.immediateBaseConstraint??(E.immediateBaseConstraint=L||pi)}return E.immediateBaseConstraint}function v(E){let L=m(E);return L!==pi&&L!==Ac?L:void 0}function C(E){if(E.flags&262144){let L=rF(E);return E.isThisType||!L?L:v(L)}if(E.flags&3145728){let L=E.types,J=[],ee=!1;for(let oe of L){let pe=v(oe);pe?(pe!==oe&&(ee=!0),J.push(pe)):ee=!0}return ee?E.flags&1048576&&J.length===L.length?Fr(J):E.flags&2097152&&J.length?wa(J):void 0:E}if(E.flags&4194304)return ai;if(E.flags&134217728){let L=E.types,J=ro(L,v);return J.length===L.length?mD(E.texts,J):Qe}if(E.flags&268435456){let L=v(E.type);return L&&L!==E.type?IA(E.symbol,L):Qe}if(E.flags&8388608){if(Y2e(E))return v(Fae(E.objectType,E.indexType));let L=v(E.objectType),J=v(E.indexType),ee=L&&J&&fC(L,J,E.accessFlags);return ee&&v(ee)}if(E.flags&16777216){let L=OXe(E);return L&&v(L)}if(E.flags&33554432)return v(pEe(E));if(mC(E)){let L=_i(e2(E),(J,ee)=>{let oe=J.flags&262144&&E.target.elementFlags[ee]&8&&v(J)||J;return oe!==J&&Pp(oe,pe=>rw(pe)&&!mC(pe))?oe:J});return pv(L,E.target.elementFlags,E.target.readonly,E.target.labeledElementDeclarations)}return E}}function XBt(n,d){if(n===d)return n.resolvedApparentType||(n.resolvedApparentType=om(n,d,!0));let m=`I${rf(n)},${rf(d)}`;return l0(m)??ES(m,om(n,d,!0))}function X2e(n){if(n.default)n.default===Wf&&(n.default=Ac);else if(n.target){let d=X2e(n.target);n.default=d?Oo(d,n.mapper):pi}else{n.default=Wf;let d=n.symbol&&re(n.symbol.declarations,v=>Sl(v)&&v.default),m=d?yo(d):pi;n.default===Wf&&(n.default=m)}return n.default}function YT(n){let d=X2e(n);return d!==pi&&d!==Ac?d:void 0}function YBt(n){return X2e(n)!==Ac}function MXe(n){return!!(n.symbol&&re(n.symbol.declarations,d=>Sl(d)&&d.default))}function RXe(n){return n.resolvedApparentType||(n.resolvedApparentType=QBt(n))}function QBt(n){let d=n.target??n,m=dB(d);if(m&&!d.declaration.nameType){let v=KT(n),C=Dp(v)?RXe(v):Cf(v);if(C&&Pp(C,E=>rw(E)||BXe(E)))return Oo(d,vD(m,C,n.mapper))}return n}function BXe(n){return!!(n.flags&2097152)&&Et(n.types,rw)}function Y2e(n){let d;return!!(n.flags&8388608&&_r(d=n.objectType)&32&&!Dp(d)&&yD(n.indexType)&&!(dv(d)&8)&&!d.declaration.nameType)}function S_(n){let d=n.flags&465829888?Cf(n)||Y:n,m=_r(d);return m&32?RXe(d):m&4&&d!==n?om(d,n):d.flags&2097152?XBt(d,n):d.flags&402653316?Jo:d.flags&296?za:d.flags&2112?jjt():d.flags&528?Ja:d.flags&12288?pYe():d.flags&67108864?Ts:d.flags&4194304?ai:d.flags&2&&!he?Ts:d}function iF(n){return v0(S_(v0(n)))}function jXe(n,d,m){var v,C,E;let L,J,ee,oe=n.flags&1048576,pe,Me=4,Ne=oe?0:8,vt=!1;for(let wr of n.types){let Qr=S_(wr);if(!(le(Qr)||Qr.flags&131072)){let Cr=da(Qr,d,m),ra=Cr?lh(Cr):0;if(Cr){if(Cr.flags&106500&&(pe??(pe=oe?0:16777216),oe?pe|=Cr.flags&16777216:pe&=Cr.flags),!L)L=Cr;else if(Cr!==L)if((Q6(Cr)||Cr)===(Q6(L)||L)&&tDe(L,Cr,(_l,us)=>_l===us?-1:0)===-1)vt=!!L.parent&&!!K(Ag(L.parent));else{J||(J=new Map,J.set(Ca(L),L));let _l=Ca(Cr);J.has(_l)||J.set(_l,Cr)}oe&&C0(Cr)?Ne|=8:!oe&&!C0(Cr)&&(Ne&=-9),Ne|=(ra&6?0:256)|(ra&4?512:0)|(ra&2?1024:0)|(ra&256?2048:0),YDe(Cr)||(Me=2)}else if(oe){let Ys=!tB(d)&&TA(Qr,d);Ys?(Ne|=32|(Ys.isReadonly?8:0),ee=hi(ee,Ba(Qr)?Zae(Qr)||$e:Ys.type)):JS(Qr)&&!(_r(Qr)&2097152)?(Ne|=32,ee=hi(ee,$e)):Ne|=16}}}if(!L||oe&&(J||Ne&48)&&Ne&1536&&!(J&&ZBt(J.values())))return;if(!J&&!(Ne&16)&&!ee)if(vt){let wr=(v=kr(L,jv))==null?void 0:v.links,Qr=SD(L,wr?.type);return Qr.parent=(E=(C=L.valueDeclaration)==null?void 0:C.symbol)==null?void 0:E.parent,Qr.links.containingType=n,Qr.links.mapper=wr?.mapper,Qr.links.writeType=aC(L),Qr}else return L;let Ot=J?as(J.values()):[L],jt,xi,Pi,Pn=[],Bn,$i,Ni=!1;for(let wr of Ot){$i?wr.valueDeclaration&&wr.valueDeclaration!==$i&&(Ni=!0):$i=wr.valueDeclaration,jt=Fn(jt,wr.declarations);let Qr=Wn(wr);xi||(xi=Qr,Pi=Po(wr).nameType);let Cr=aC(wr);(Bn||Cr!==Qr)&&(Bn=hi(Bn||Pn.slice(),Cr)),Qr!==xi&&(Ne|=64),(hB(Qr)||hD(Qr))&&(Ne|=128),Qr.flags&131072&&Qr!==Uu&&(Ne|=131072),Pn.push(Qr)}Fn(Pn,ee);let Zn=Aa(4|(pe??0),d,Me|Ne);return Zn.links.containingType=n,!Ni&&$i&&(Zn.valueDeclaration=$i,$i.symbol.parent&&(Zn.parent=$i.symbol.parent)),Zn.declarations=jt,Zn.links.nameType=Pi,Pn.length>2?(Zn.links.checkFlags|=65536,Zn.links.deferralParent=n,Zn.links.deferralConstituents=Pn,Zn.links.deferralWriteConstituents=Bn):(Zn.links.type=oe?Fr(Pn):wa(Pn),Bn&&(Zn.links.writeType=oe?Fr(Bn):wa(Bn))),Zn}function WXe(n,d,m){var v,C,E;let L=m?(v=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:v.get(d):(C=n.propertyCache)==null?void 0:C.get(d);return L||(L=jXe(n,d,m),L&&((m?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=ta()):n.propertyCache||(n.propertyCache=ta())).set(d,L),m&&!(_u(L)&48)&&!((E=n.propertyCache)!=null&&E.get(d))&&(n.propertyCache||(n.propertyCache=ta())).set(d,L))),L}function ZBt(n){let d;for(let m of n){if(!m.declarations)return;if(!d){d=new Set(m.declarations);continue}if(d.forEach(v=>{sn(m.declarations,v)||d.delete(v)}),d.size===0)return}return d}function r$(n,d,m){let v=WXe(n,d,m);return v&&!(_u(v)&16)?v:void 0}function v0(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=ejt(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(Lt(i$(n),tjt)?33554432:0)),n.objectFlags&33554432?Si:n):n}function ejt(n){let d=Uo(n.types,v0);if(d===n.types)return n;let m=Fr(d);return m.flags&1048576&&(m.resolvedReducedType=m),m}function tjt(n){return zXe(n)||VXe(n)}function zXe(n){return!(n.flags&16777216)&&(_u(n)&131264)===192&&!!(Wn(n).flags&131072)}function VXe(n){return!n.valueDeclaration&&!!(_u(n)&1024)}function Q2e(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&Lt(n.types,Q2e)||n.flags&2097152&&ijt(n))}function ijt(n){let d=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=Oo(n,Fc));return v0(d)!==d}function Z2e(n,d){if(d.flags&2097152&&_r(d)&33554432){let m=St(i$(d),zXe);if(m)return bs(n,S.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Dn(d,void 0,536870912),Lo(m));let v=St(i$(d),VXe);if(v)return bs(n,S.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Dn(d,void 0,536870912),Lo(v))}return n}function da(n,d,m,v){var C,E;if(n=iF(n),n.flags&524288){let L=y0(n),J=L.members.get(d);if(J&&!v&&((C=n.symbol)==null?void 0:C.flags)&512&&((E=Po(n.symbol).typeOnlyExportStarMap)!=null&&E.has(d)))return;if(J&&nm(J,v))return J;if(m)return;let ee=L===Ua?_d:L.callSignatures.length?gh:L.constructSignatures.length?qe:void 0;if(ee){let oe=XT(ee,d);if(oe)return oe}return XT(Ou,d)}if(n.flags&2097152){let L=r$(n,d,!0);return L||(m?void 0:r$(n,d,m))}if(n.flags&1048576)return r$(n,d,m)}function o$(n,d){if(n.flags&3670016){let m=y0(n);return d===0?m.callSignatures:m.constructSignatures}return F}function Bs(n,d){let m=o$(iF(n),d);if(d===0&&!K(m)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let v;if(Pp(n,C=>{var E;return!!((E=C.symbol)!=null&&E.parent)&&njt(C.symbol.parent)&&(v?v===C.symbol.escapedName:(v=C.symbol.escapedName,!0))})){let C=Nl(n,L=>HS((HXe(L.symbol.parent)?hn:Qt).typeParameters[0],L.mapper)),E=Hf(C,Dh(n,L=>HXe(L.symbol.parent)));return n.arrayFallbackSignatures=Bs(Mu(E,v),d)}n.arrayFallbackSignatures=m}return m}function njt(n){return!n||!Qt.symbol||!hn.symbol?!1:!!sg(n,Qt.symbol)||!!sg(n,hn.symbol)}function HXe(n){return!n||!hn.symbol?!1:!!sg(n,hn.symbol)}function eEe(n,d){return St(n,m=>m.keyType===d)}function tEe(n,d){let m,v,C;for(let E of n)E.keyType===Qe?m=E:wA(d,E.keyType)&&(v?(C||(C=[v])).push(E):v=E);return C?_v(Y,wa(_i(C,E=>E.type)),Of(C,(E,L)=>E&&L.isReadonly,!0)):v||(m&&wA(d,Qe)?m:void 0)}function wA(n,d){return fa(n,d)||d===Qe&&fa(n,ei)||d===ei&&(n===ks||!!(n.flags&128)&&Kv(n.value))}function iEe(n){return n.flags&3670016?y0(n).indexInfos:F}function r_(n){return iEe(iF(n))}function y1(n,d){return eEe(r_(n),d)}function Zk(n,d){var m;return(m=y1(n,d))==null?void 0:m.type}function nEe(n,d){return r_(n).filter(m=>wA(d,m.keyType))}function nB(n,d){return tEe(r_(n),d)}function TA(n,d){return nB(n,tB(d)?li:sp(So(d)))}function UXe(n){var d;let m;for(let v of dx(n))m=Qd(m,GT(v.symbol));return m?.length?m:xu(n)?(d=nF(n))==null?void 0:d.typeParameters:void 0}function rEe(n){let d=[];return n.forEach((m,v)=>{Ei(v)||d.push(m)}),d}function JXe(n,d){if(Od(n))return;let m=qd(Be,'"'+n+'"',512);return m&&d?cc(m):m}function oEe(n){return XI(n)||IR(n)||To(n)&&iH(n)}function s$(n){if(oEe(n))return!0;if(!To(n))return!1;if(n.initializer){let m=Km(n.parent),v=n.parent.parameters.indexOf(n);return B.assert(v>=0),v>=Ey(m,3)}let d=qw(n.parent);return d?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=Oce(d).length:!1}function rjt(n){return ls(n)&&!G0(n)&&n.questionToken}function rB(n,d,m,v){return{kind:n,parameterName:d,parameterIndex:m,type:v}}function by(n){let d=0;if(n)for(let m=0;m=m&&E<=C){let L=n?n.slice():[];for(let ee=E;eeee.arguments.length&&!Pi||(C=m.length)}if((n.kind===177||n.kind===178)&&O6(n)&&(!J||!E)){let Ot=n.kind===177?178:177,jt=bl(sr(n),Ot);jt&&(E=R2e(jt))}L&&L.typeExpression&&(E=SD(Aa(1,"this"),yo(L.typeExpression)));let Me=ob(n)?sk(n):n,Ne=Me&&Ol(Me)?op(cc(Me.parent.symbol)):void 0,vt=Ne?Ne.localTypeParameters:UXe(n);(MQ(n)||Jn(n)&&ojt(n,m))&&(v|=1),(g4(n)&&Ar(n,64)||Ol(n)&&Ar(n.parent,64))&&(v|=4),d.resolvedSignature=g1(n,vt,E,m,void 0,void 0,C,v)}return d.resolvedSignature}function ojt(n,d){if(ob(n)||!sEe(n))return!1;let m=Lc(n.parameters),v=m?LP(m):YC(n).filter(ph),C=Le(v,L=>L.typeExpression&&TH(L.typeExpression.type)?L.typeExpression.type:void 0),E=Aa(3,"args",32768);return C?E.links.type=Hf(yo(C.type)):(E.links.checkFlags|=65536,E.links.deferralParent=Si,E.links.deferralConstituents=[Mc],E.links.deferralWriteConstituents=[Mc]),C&&d.pop(),d.push(E),!0}function nF(n){if(!(Jn(n)&&Oc(n)))return;let d=KC(n);return d?.typeExpression&&ID(yo(d.typeExpression))}function sjt(n,d){let m=nF(n);if(!m)return;let v=n.parameters.indexOf(d);return d.dotDotDotToken?nG(m,v):x0(m,v)}function ajt(n){let d=nF(n);return d&&vc(d)}function sEe(n){let d=rr(n);return d.containsArgumentsReference===void 0&&(d.flags&512?d.containsArgumentsReference=!0:d.containsArgumentsReference=m(n.body)),d.containsArgumentsReference;function m(v){if(!v)return!1;switch(v.kind){case 80:return v.escapedText===Ue.escapedName&&UB(v)===Ue;case 172:case 174:case 177:case 178:return v.name.kind===167&&m(v.name);case 211:case 212:return m(v.expression);case 303:return m(v.initializer);default:return!TZ(v)&&!U0(v)&&!!ws(v,m)}}}function QT(n){if(!n||!n.declarations)return F;let d=[];for(let m=0;m0&&v.body){let C=n.declarations[m-1];if(v.parent===C.parent&&v.kind===C.kind&&v.pos===C.end)continue}if(Jn(v)&&v.jsDoc){let C=hZ(v);if(K(C)){for(let E of C){let L=E.typeExpression;L.type===void 0&&!Ol(v)&&sw(L,je),d.push(Km(L))}continue}}d.push(!Ex(v)&&!zh(v)&&nF(v)||Km(v))}}return d}function qXe(n){let d=rp(n,n);if(d){let m=Ep(d);if(m)return Wn(m)}return je}function ew(n){if(n.thisParameter)return Wn(n.thisParameter)}function wh(n){if(!n.resolvedTypePredicate){if(n.target){let d=wh(n.target);n.resolvedTypePredicate=d?KWt(d,n.mapper):Ze}else if(n.compositeSignatures)n.resolvedTypePredicate=uWt(n.compositeSignatures,n.compositeKind)||Ze;else{let d=n.declaration&&Up(n.declaration),m;if(!d){let v=nF(n.declaration);v&&n!==v&&(m=wh(v))}if(d||m)n.resolvedTypePredicate=d&&CN(d)?cjt(d,n):m||Ze;else if(n.declaration&&Oc(n.declaration)&&(!n.resolvedReturnType||n.resolvedReturnType.flags&16)&&Lp(n)>0){let{declaration:v}=n;n.resolvedTypePredicate=Ze,n.resolvedTypePredicate=JJt(v)||Ze}else n.resolvedTypePredicate=Ze}B.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===Ze?void 0:n.resolvedTypePredicate}function cjt(n,d){let m=n.parameterName,v=n.type&&yo(n.type);return m.kind===197?rB(n.assertsModifier?2:0,void 0,void 0,v):rB(n.assertsModifier?3:1,m.escapedText,zi(d.parameters,C=>C.escapedName===m.escapedText),v)}function $Xe(n,d,m){return d!==2097152?Fr(n,m):wa(n)}function vc(n){if(!n.resolvedReturnType){if(!av(n,3))return _t;let d=n.target?Oo(vc(n.target),n.mapper):n.compositeSignatures?Oo($Xe(_i(n.compositeSignatures,vc),n.compositeKind,2),n.mapper):M6(n.declaration)||(Ul(n.declaration.body)?je:Bce(n.declaration));if(n.flags&8?d=PQe(d):n.flags&16&&(d=hC(d)),!cv()){if(n.declaration){let m=Up(n.declaration);if(m)ot(m,S.Return_type_annotation_circularly_references_itself);else if(Se){let v=n.declaration,C=cs(v);C?ot(C,S._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,Hc(C)):ot(v,S.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)}}d=je}n.resolvedReturnType??(n.resolvedReturnType=d)}return n.resolvedReturnType}function M6(n){if(n.kind===176)return op(cc(n.parent.symbol));let d=Up(n);if(ob(n)){let m=ZP(n);if(m&&Ol(m.parent)&&!d)return op(cc(m.parent.parent.symbol))}if(QP(n))return yo(n.parameters[0].type);if(d)return yo(d);if(n.kind===177&&O6(n)){let m=Jn(n)&&Ic(n);if(m)return m;let v=bl(sr(n),178),C=Z8(v);if(C)return C}return ajt(n)}function kae(n){return n.compositeSignatures&&Lt(n.compositeSignatures,kae)||!n.resolvedReturnType&&oC(n,3)>=0}function ljt(n){return GXe(n)||je}function GXe(n){if(Xf(n)){let d=Wn(n.parameters[n.parameters.length-1]),m=Ba(d)?Zae(d):d;return m&&Zk(m,ei)}}function oB(n,d,m,v){let C=aEe(n,uC(d,n.typeParameters,by(n.typeParameters),m));if(v){let E=vet(vc(C));if(E){let L=iB(E);L.typeParameters=v;let J=iB(C);return J.resolvedReturnType=pD(L),J}}return C}function aEe(n,d){let m=n.instantiations||(n.instantiations=new Map),v=cg(d),C=m.get(v);return C||m.set(v,C=wae(n,d)),C}function wae(n,d){return LA(n,ujt(n,d),!0)}function KXe(n){return Uo(n.typeParameters,d=>d.mapper?Oo(d,d.mapper):d)}function ujt(n,d){return Np(KXe(n),d)}function sB(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=djt(n)):n}function djt(n){return LA(n,tQe(n.typeParameters),!0)}function fjt(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=_jt(n)):n}function _jt(n){return oB(n,_i(n.typeParameters,d=>d.target&&!V_(d.target)?d.target:d),Jn(n.declaration))}function pjt(n){return n.typeParameters?n.implementationSignatureCache||(n.implementationSignatureCache=mjt(n)):n}function mjt(n){return n.typeParameters?LA(n,Np([],[])):n}function hjt(n){let d=n.typeParameters;if(d){if(n.baseSignatureCache)return n.baseSignatureCache;let m=tQe(d),v=Np(d,_i(d,E=>V_(E)||Y)),C=_i(d,E=>Oo(E,v)||Y);for(let E=0;E{Eae(C)&&!eEe(d,C)&&d.push(_v(C,m.type?yo(m.type):je,Jp(m,8),m))})}return d}return F}function Eae(n){return!!(n.flags&4108)||hD(n)||!!(n.flags&2097152)&&!NA(n)&&Lt(n.types,Eae)}function Dae(n){return ro(Di(n.symbol&&n.symbol.declarations,Sl),OP)[0]}function YXe(n,d){var m;let v;if((m=n.symbol)!=null&&m.declarations){for(let C of n.symbol.declarations)if(C.parent.kind===195){let[E=C.parent,L]=lge(C.parent.parent);if(L.kind===183&&!d){let J=L,ee=RIe(J);if(ee){let oe=J.typeArguments.indexOf(E);if(oe()=>zqt(J,ee,Ot))),Ne=Oo(pe,Me);Ne!==n&&(v=hi(v,Ne))}}}}else if(L.kind===169&&L.dotDotDotToken||L.kind===191||L.kind===202&&L.dotDotDotToken)v=hi(v,Hf(Y));else if(L.kind===204)v=hi(v,Qe);else if(L.kind===168&&L.parent.kind===200)v=hi(v,ai);else if(L.kind===200&&L.type&&fc(L.type)===C.parent&&L.parent.kind===194&&L.parent.extendsType===L&&L.parent.checkType.kind===200&&L.parent.checkType.type){let J=L.parent.checkType,ee=yo(J.type);v=hi(v,Oo(ee,n2(GT(sr(J.typeParameter)),J.typeParameter.constraint?yo(J.typeParameter.constraint):ai)))}}}return v&&wa(v)}function rF(n){if(!n.constraint)if(n.target){let d=V_(n.target);n.constraint=d?Oo(d,n.mapper):pi}else{let d=Dae(n);if(!d)n.constraint=YXe(n)||pi;else{let m=yo(d);m.flags&1&&!le(m)&&(m=d.parent.parent.kind===200?ai:Y),n.constraint=m}}return n.constraint===pi?void 0:n.constraint}function QXe(n){let d=bl(n.symbol,168),m=Gh(d.parent)?nV(d.parent):d.parent;return m&&z_(m)}function cg(n){let d="";if(n){let m=n.length,v=0;for(;v1&&(d+=":"+E),v+=E}}return d}function EA(n,d){return n?`@${Ca(n)}`+(d?`:${cg(d)}`:""):""}function a$(n,d){let m=0;for(let v of n)(d===void 0||!(v.flags&d))&&(m|=_r(v));return m&458752}function R6(n,d){return Lt(d)&&n===Bo?Y:Eb(n,d)}function Eb(n,d){let m=cg(d),v=n.instantiations.get(m);return v||(v=M(4,n.symbol),n.instantiations.set(m,v),v.objectFlags|=d?a$(d):0,v.target=n,v.resolvedTypeArguments=d),v}function ZXe(n){let d=ag(n.flags,n.symbol);return d.objectFlags=n.objectFlags,d.target=n.target,d.resolvedTypeArguments=n.resolvedTypeArguments,d}function uEe(n,d,m,v,C){if(!v){v=AA(d);let L=z6(v);C=m?b1(L,m):L}let E=M(4,n.symbol);return E.target=n,E.node=d,E.mapper=m,E.aliasSymbol=v,E.aliasTypeArguments=C,E}function fl(n){var d,m;if(!n.resolvedTypeArguments){if(!av(n,5))return Fo(n.target.outerTypeParameters,(d=n.target.localTypeParameters)==null?void 0:d.map(()=>_t))||F;let v=n.node,C=v?v.kind===183?Fo(n.target.outerTypeParameters,Jce(v,n.target.localTypeParameters)):v.kind===188?[yo(v.elementType)]:_i(v.elements,yo):F;cv()?n.resolvedTypeArguments??(n.resolvedTypeArguments=n.mapper?b1(C,n.mapper):C):(n.resolvedTypeArguments??(n.resolvedTypeArguments=Fo(n.target.outerTypeParameters,((m=n.target.localTypeParameters)==null?void 0:m.map(()=>_t))||F)),ot(n.node||R,n.target.symbol?S.Type_arguments_for_0_circularly_reference_themselves:S.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Lo(n.target.symbol)))}return n.resolvedTypeArguments}function VS(n){return K(n.target.typeParameters)}function eYe(n,d){let m=Qc(cc(d)),v=m.localTypeParameters;if(v){let C=K(n.typeArguments),E=by(v),L=Jn(n);if(!(!Se&&L)&&(Cv.length)){let oe=L&&nb(n)&&!AN(n.parent),pe=E===v.length?oe?S.Expected_0_type_arguments_provide_these_with_an_extends_tag:S.Generic_type_0_requires_1_type_argument_s:oe?S.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:S.Generic_type_0_requires_between_1_and_2_type_arguments,Me=Dn(m,void 0,2);if(ot(n,pe,Me,E,v.length),!L)return _t}if(n.kind===183&&CYe(n,K(n.typeArguments)!==v.length))return uEe(m,n,void 0);let ee=Fo(m.outerTypeParameters,uC(l$(n),v,E,L));return Eb(m,ee)}return ZT(n,d)?m:_t}function B6(n,d,m,v){let C=Qc(n);if(C===nr){let oe=nie.get(n.escapedName);if(oe!==void 0&&d&&d.length===1)return oe===4?dEe(d[0]):IA(n,d[0])}let E=Po(n),L=E.typeParameters,J=cg(d)+EA(m,v),ee=E.instantiations.get(J);return ee||E.instantiations.set(J,ee=rQe(C,Np(L,uC(d,L,by(L),Jn(n.valueDeclaration))),m,v)),ee}function gjt(n,d){if(_u(d)&1048576){let C=l$(n),E=EA(d,C),L=ut.get(E);return L||(L=pd(1,"error",void 0,`alias ${E}`),L.aliasSymbol=d,L.aliasTypeArguments=C,ut.set(E,L)),L}let m=Qc(d),v=Po(d).typeParameters;if(v){let C=K(n.typeArguments),E=by(v);if(Cv.length)return ot(n,E===v.length?S.Generic_type_0_requires_1_type_argument_s:S.Generic_type_0_requires_between_1_and_2_type_arguments,Lo(d),E,v.length),_t;let L=AA(n),J=L&&(tYe(d)||!tYe(L))?L:void 0,ee;if(J)ee=z6(J);else if(Cz(n)){let oe=oF(n,2097152,!0);if(oe&&oe!==ct){let pe=xf(oe);pe&&pe.flags&524288&&(J=pe,ee=l$(n)||(v?[]:void 0))}}return B6(d,l$(n),J,ee)}return ZT(n,d)?m:_t}function tYe(n){var d;let m=(d=n.declarations)==null?void 0:d.find(XM);return!!(m&&_m(m))}function yjt(n){switch(n.kind){case 183:return n.typeName;case 233:let d=n.expression;if(Xc(d))return d}}function iYe(n){return n.parent?`${iYe(n.parent)}.${n.escapedName}`:n.escapedName}function Iae(n){let m=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(m){let v=n.kind===166?Iae(n.left):n.kind===211?Iae(n.expression):void 0,C=v?`${iYe(v)}.${m}`:m,E=He.get(C);return E||(He.set(C,E=Aa(524288,m,1048576)),E.parent=v,E.links.declaredType=yi),E}return ct}function oF(n,d,m){let v=yjt(n);if(!v)return ct;let C=Ml(v,d,m);return C&&C!==ct?C:m?ct:Iae(v)}function Nae(n,d){if(d===ct)return _t;if(d=iD(d)||d,d.flags&96)return eYe(n,d);if(d.flags&524288)return gjt(n,d);let m=gXe(d);if(m)return ZT(n,d)?x_(m):_t;if(d.flags&111551&&Aae(n)){let v=vjt(n,d);return v||(oF(n,788968),Wn(d))}return _t}function vjt(n,d){let m=rr(n);if(!m.resolvedJSDocType){let v=Wn(d),C=v;if(d.valueDeclaration){let E=n.kind===205&&n.qualifier;v.symbol&&v.symbol!==d&&E&&(C=Nae(n,v.symbol))}m.resolvedJSDocType=C}return m.resolvedJSDocType}function dEe(n){return fEe(n)?nYe(n,Y):n}function fEe(n){return!!(n.flags&3145728&&Lt(n.types,fEe)||n.flags&33554432&&!j6(n)&&fEe(n.baseType)||n.flags&524288&&!mv(n)||n.flags&432275456&&!hD(n))}function j6(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function _Ee(n,d){return d.flags&3||d===n||n.flags&1?n:nYe(n,d)}function nYe(n,d){let m=`${rf(n)}>${rf(d)}`,v=na.get(m);if(v)return v;let C=_0(33554432);return C.baseType=n,C.constraint=d,na.set(m,C),C}function pEe(n){return j6(n)?n.baseType:wa([n.constraint,n.baseType])}function rYe(n){return n.kind===189&&n.elements.length===1}function oYe(n,d,m){return rYe(d)&&rYe(m)?oYe(n,d.elements[0],m.elements[0]):_C(yo(d))===_C(n)?yo(m):void 0}function bjt(n,d){let m,v=!0;for(;d&&!_o(d)&&d.kind!==320;){let C=d.parent;if(C.kind===169&&(v=!v),(v||n.flags&8650752)&&C.kind===194&&d===C.trueType){let E=oYe(n,C.checkType,C.extendsType);E&&(m=hi(m,E))}else if(n.flags&262144&&C.kind===200&&!C.nameType&&d===C.type){let E=yo(C);if(g0(E)===_C(n)){let L=dB(E);if(L){let J=V_(L);J&&Pp(J,rw)&&(m=hi(m,Fr([ei,ks])))}}}d=C}return m?_Ee(n,wa(m)):n}function Aae(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function ZT(n,d){return n.typeArguments?(ot(n,S.Type_0_is_not_generic,d?Lo(d):n.typeName?Hc(n.typeName):Zte),!1):!0}function sYe(n){if(et(n.typeName)){let d=n.typeArguments;switch(n.typeName.escapedText){case"String":return ZT(n),Qe;case"Number":return ZT(n),ei;case"Boolean":return ZT(n),ti;case"Void":return ZT(n),wi;case"Undefined":return ZT(n),$e;case"Null":return ZT(n),Wt;case"Function":case"function":return ZT(n),_d;case"array":return(!d||!d.length)&&!Se?Mc:void 0;case"promise":return(!d||!d.length)&&!Se?oG(je):void 0;case"Object":if(d&&d.length===2){if(Zz(n)){let m=yo(d[0]),v=yo(d[1]),C=m===Qe||m===ei?[_v(m,v,!1)]:F;return Io(void 0,q,F,F,C)}return je}return ZT(n),Se?void 0:je}}}function Sjt(n){let d=yo(n.type);return he?I$(d,65536):d}function c$(n){let d=rr(n);if(!d.resolvedType){if(qg(n)&&ZC(n.parent))return d.resolvedSymbol=ct,d.resolvedType=Tu(n.parent.expression);let m,v,C=788968;Aae(n)&&(v=sYe(n),v||(m=oF(n,C,!0),m===ct?m=oF(n,C|111551):oF(n,C),v=Nae(n,m))),v||(m=oF(n,C),v=Nae(n,m)),d.resolvedSymbol=m,d.resolvedType=v}return d.resolvedType}function l$(n){return _i(n.typeArguments,yo)}function aYe(n){let d=rr(n);if(!d.resolvedType){let m=Wet(n);d.resolvedType=x_(Ap(m))}return d.resolvedType}function cYe(n,d){function m(C){let E=C.declarations;if(E)for(let L of E)switch(L.kind){case 263:case 264:case 266:return L}}if(!n)return d?Bo:Ts;let v=Qc(n);return v.flags&524288?K(v.typeParameters)!==d?(ot(m(n),S.Global_type_0_must_have_1_type_parameter_s,fu(n),d),d?Bo:Ts):v:(ot(m(n),S.Global_type_0_must_be_a_class_or_interface_type,fu(n)),d?Bo:Ts)}function mEe(n,d){return W6(n,111551,d?S.Cannot_find_global_value_0:void 0)}function hEe(n,d){return W6(n,788968,d?S.Cannot_find_global_type_0:void 0)}function Pae(n,d,m){let v=W6(n,788968,m?S.Cannot_find_global_type_0:void 0);if(v&&(Qc(v),K(Po(v).typeParameters)!==d)){let C=v.declarations&&St(v.declarations,$h);ot(C,S.Global_type_0_must_have_1_type_parameter_s,fu(v),d);return}return v}function W6(n,d,m){return ni(void 0,n,d,m,!1,!1)}function iu(n,d,m){let v=hEe(n,m);return v||m?cYe(v,d):void 0}function lYe(n,d){let m;for(let v of n)m=hi(m,iu(v,d,!1));return m??F}function xjt(){return Wm||(Wm=iu("TypedPropertyDescriptor",1,!0)||Bo)}function Cjt(){return ze||(ze=iu("TemplateStringsArray",0,!0)||Ts)}function uYe(){return Ut||(Ut=iu("ImportMeta",0,!0)||Ts)}function dYe(){if(!gn){let n=Aa(0,"ImportMetaExpression"),d=uYe(),m=Aa(4,"meta",8);m.parent=n,m.links.type=d;let v=ta([m]);n.members=v,gn=Io(n,v,F,F,F)}return gn}function fYe(n){return lo||(lo=iu("ImportCallOptions",0,n))||Ts}function gEe(n){return Is||(Is=iu("ImportAttributes",0,n))||Ts}function _Ye(n){return Qh||(Qh=mEe("Symbol",n))}function kjt(n){return Sp||(Sp=hEe("SymbolConstructor",n))}function pYe(){return hm||(hm=iu("Symbol",0,!1))||Ts}function u$(n){return yh||(yh=iu("Promise",1,n))||Bo}function mYe(n){return t1||(t1=iu("PromiseLike",1,n))||Bo}function yEe(n){return Zh||(Zh=mEe("Promise",n))}function wjt(n){return np||(np=iu("PromiseConstructorLike",0,n))||Ts}function d$(n){return oi||(oi=iu("AsyncIterable",3,n))||Bo}function Tjt(n){return di||(di=iu("AsyncIterator",3,n))||Bo}function hYe(n){return Zi||(Zi=iu("AsyncIterableIterator",3,n))||Bo}function Ejt(){return ur??(ur=lYe(["ReadableStreamAsyncIterator"],1))}function Djt(n){return qr||(qr=iu("AsyncIteratorObject",3,n))||Bo}function Ijt(n){return Q||(Q=iu("AsyncGenerator",3,n))||Bo}function Lae(n){return Ad||(Ad=iu("Iterable",3,n))||Bo}function Njt(n){return _b||(_b=iu("Iterator",3,n))||Bo}function gYe(n){return j_||(j_=iu("IterableIterator",3,n))||Bo}function vEe(){return be?$e:je}function Ajt(){return Tn??(Tn=lYe(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))}function Pjt(n){return i1||(i1=iu("IteratorObject",3,n))||Bo}function Ljt(n){return zm||(zm=iu("Generator",3,n))||Bo}function Ojt(n){return me||(me=iu("IteratorYieldResult",1,n))||Bo}function Fjt(n){return wt||(wt=iu("IteratorReturnResult",1,n))||Bo}function yYe(n){return os||(os=iu("Disposable",0,n))||Ts}function Mjt(n){return Ns||(Ns=iu("AsyncDisposable",0,n))||Ts}function vYe(n,d=0){let m=W6(n,788968,void 0);return m&&cYe(m,d)}function Rjt(){return Qa||(Qa=Pae("Extract",2,!0)||ct),Qa===ct?void 0:Qa}function Bjt(){return Ra||(Ra=Pae("Omit",2,!0)||ct),Ra===ct?void 0:Ra}function bEe(n){return Il||(Il=Pae("Awaited",1,n)||(n?ct:void 0)),Il===ct?void 0:Il}function jjt(){return vh||(vh=iu("BigInt",0,!1))||Ts}function Wjt(n){return n1??(n1=iu("ClassDecoratorContext",1,n))??Bo}function zjt(n){return CS??(CS=iu("ClassMethodDecoratorContext",2,n))??Bo}function Vjt(n){return r1??(r1=iu("ClassGetterDecoratorContext",2,n))??Bo}function Hjt(n){return bh??(bh=iu("ClassSetterDecoratorContext",2,n))??Bo}function Ujt(n){return Sh??(Sh=iu("ClassAccessorDecoratorContext",2,n))??Bo}function Jjt(n){return ul??(ul=iu("ClassAccessorDecoratorTarget",2,n))??Bo}function qjt(n){return gm??(gm=iu("ClassAccessorDecoratorResult",2,n))??Bo}function $jt(n){return xp??(xp=iu("ClassFieldDecoratorContext",2,n))??Bo}function Gjt(){return Tg||(Tg=mEe("NaN",!1))}function Kjt(){return a0||(a0=Pae("Record",2,!0)||ct),a0===ct?void 0:a0}function sF(n,d){return n!==Bo?Eb(n,d):Ts}function bYe(n){return sF(xjt(),[n])}function SYe(n){return sF(Lae(!0),[n,wi,$e])}function Hf(n,d){return sF(d?hn:Qt,[n])}function SEe(n){switch(n.kind){case 190:return 2;case 191:return xYe(n);case 202:return n.questionToken?2:n.dotDotDotToken?xYe(n):1;default:return 1}}function xYe(n){return g$(n.type)?4:8}function Xjt(n){let d=Zjt(n.parent);if(g$(n))return d?hn:Qt;let v=_i(n.elements,SEe);return xEe(v,d,_i(n.elements,Yjt))}function Yjt(n){return y4(n)||To(n)?n:void 0}function CYe(n,d){return!!AA(n)||kYe(n)&&(n.kind===188?dC(n.elementType):n.kind===189?Lt(n.elements,dC):d||Lt(n.typeArguments,dC))}function kYe(n){let d=n.parent;switch(d.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return kYe(d);case 265:return!0}return!1}function dC(n){switch(n.kind){case 183:return Aae(n)||!!(oF(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&dC(n.type);case 196:case 190:case 202:case 316:case 314:case 315:case 309:return dC(n.type);case 191:return n.type.kind!==188||dC(n.type.elementType);case 192:case 193:return Lt(n.types,dC);case 199:return dC(n.objectType)||dC(n.indexType);case 194:return dC(n.checkType)||dC(n.extendsType)||dC(n.trueType)||dC(n.falseType)}return!1}function Qjt(n){let d=rr(n);if(!d.resolvedType){let m=Xjt(n);if(m===Bo)d.resolvedType=Ts;else if(!(n.kind===189&&Lt(n.elements,v=>!!(SEe(v)&8)))&&CYe(n))d.resolvedType=n.kind===189&&n.elements.length===0?m:uEe(m,n,void 0);else{let v=n.kind===188?[yo(n.elementType)]:_i(n.elements,yo);d.resolvedType=CEe(m,v)}}return d.resolvedType}function Zjt(n){return _k(n)&&n.operator===148}function pv(n,d,m=!1,v=[]){let C=xEe(d||_i(n,E=>1),m,v);return C===Bo?Ts:n.length?CEe(C,n):C}function xEe(n,d,m){if(n.length===1&&n[0]&4)return d?hn:Qt;let v=_i(n,E=>E&1?"#":E&2?"?":E&4?".":"*").join()+(d?"R":"")+(Lt(m,E=>!!E)?","+_i(m,E=>E?ac(E):"_").join(","):""),C=Ao.get(v);return C||Ao.set(v,C=eWt(n,d,m)),C}function eWt(n,d,m){let v=n.length,C=er(n,Me=>!!(Me&9)),E,L=[],J=0;if(v){E=new Array(v);for(let Me=0;Me!!(n.elementFlags[xi]&8&&jt.flags&1179648));if(Ot>=0)return _$(_i(d,(jt,xi)=>n.elementFlags[xi]&8?jt:Y))?Nl(d[Ot],jt=>kEe(n,wP(d,Ot,jt))):_t}let L=[],J=[],ee=[],oe=-1,pe=-1,Me=-1;for(let Ot=0;Ot=1e4)return ot(R,U0(R)?S.Type_produces_a_tuple_type_that_is_too_large_to_represent:S.Expression_produces_a_tuple_type_that_is_too_large_to_represent),_t;re(Pi,(Pn,Bn)=>{var $i;return vt(Pn,jt.target.elementFlags[Bn],($i=jt.target.labeledElementDeclarations)==null?void 0:$i[Bn])})}else vt(US(jt)&&Zk(jt,ei)||_t,4,(C=n.labeledElementDeclarations)==null?void 0:C[Ot]);else vt(jt,xi,(E=n.labeledElementDeclarations)==null?void 0:E[Ot])}for(let Ot=0;Ot=0&&peJ[pe+jt]&8?Ip(Ot,ei):Ot)),L.splice(pe+1,Me-pe),J.splice(pe+1,Me-pe),ee.splice(pe+1,Me-pe));let Ne=xEe(J,n.readonly,ee);return Ne===Bo?Ts:J.length?Eb(Ne,L):Ne;function vt(Ot,jt,xi){jt&1&&(oe=J.length),jt&4&&pe<0&&(pe=J.length),jt&6&&(Me=J.length),L.push(jt&2?md(Ot,!0):Ot),J.push(jt),ee.push(xi)}}function aF(n,d,m=0){let v=n.target,C=VS(n)-m;return d>v.fixedLength?Wzt(n)||pv(F):pv(fl(n).slice(d,C),v.elementFlags.slice(d,C),!1,v.labeledElementDeclarations&&v.labeledElementDeclarations.slice(d,C))}function wYe(n){return Fr(hi(TK(n.target.fixedLength,d=>sp(""+d)),Sy(n.target.readonly?hn:Qt)))}function tWt(n,d){let m=zi(n.elementFlags,v=>!(v&d));return m>=0?m:n.elementFlags.length}function aB(n,d){return n.elementFlags.length-Vr(n.elementFlags,m=>!(m&d))-1}function wEe(n){return n.fixedLength+aB(n,3)}function e2(n){let d=fl(n),m=VS(n);return d.length===m?d:d.slice(0,m)}function iWt(n){return md(yo(n.type),!0)}function rf(n){return n.id}function v1(n,d){return H1(n,d,rf,Kc)>=0}function f$(n,d){let m=H1(n,d,rf,Kc);return m<0?(n.splice(~m,0,d),!0):!1}function nWt(n,d,m){let v=m.flags;if(!(v&131072))if(d|=v&473694207,v&465829888&&(d|=33554432),v&2097152&&_r(m)&67108864&&(d|=536870912),m===mt&&(d|=8388608),le(m)&&(d|=1073741824),!he&&v&98304)_r(m)&65536||(d|=4194304);else{let C=n.length,E=C&&m.id>n[C-1].id?~C:H1(n,m,rf,Kc);E<0&&n.splice(~E,0,m)}return d}function TYe(n,d,m){let v;for(let C of m)C!==v&&(d=C.flags&1048576?TYe(n,d|(lWt(C)?1048576:0),C.types):nWt(n,d,C),v=C);return d}function rWt(n,d){var m;if(n.length<2)return n;let v=cg(n),C=aa.get(v);if(C)return C;let E=d&&Lt(n,oe=>!!(oe.flags&524288)&&!Dp(oe)&&GEe(y0(oe))),L=n.length,J=L,ee=0;for(;J>0;){J--;let oe=n[J];if(E||oe.flags&469499904){if(oe.flags&262144&&fv(oe).flags&1048576){xy(oe,Fr(_i(n,Ne=>Ne===oe?Si:Ne)),Hm)&&ax(n,J);continue}let pe=oe.flags&61603840?St(yc(oe),Ne=>b0(Wn(Ne))):void 0,Me=pe&&x_(Wn(pe));for(let Ne of n)if(oe!==Ne){if(ee===1e5&&ee/(L-J)*L>1e6){(m=jn)==null||m.instant(jn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(Ot=>Ot.id)}),ot(R,S.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(ee++,pe&&Ne.flags&61603840){let vt=Mu(Ne,pe.escapedName);if(vt&&b0(vt)&&x_(vt)!==Me)continue}if(xy(oe,Ne,Hm)&&(!(_r(dD(oe))&1)||!(_r(dD(Ne))&1)||nw(oe,Ne))){ax(n,J);break}}}}return aa.set(v,n),n}function oWt(n,d,m){let v=n.length;for(;v>0;){v--;let C=n[v],E=C.flags;(E&402653312&&d&4||E&256&&d&8||E&2048&&d&64||E&8192&&d&4096||m&&E&32768&&d&16384||i2(C)&&v1(n,C.regularType))&&ax(n,v)}}function sWt(n){let d=Di(n,hD);if(d.length){let m=n.length;for(;m>0;){m--;let v=n[m];v.flags&128&&Lt(d,C=>aWt(v,C))&&ax(n,m)}}}function aWt(n,d){return d.flags&134217728?lce(n,d):cce(n,d)}function cWt(n){let d=[];for(let m of n)if(m.flags&2097152&&_r(m)&67108864){let v=m.types[0].flags&8650752?0:1;jc(d,m.types[v])}for(let m of d){let v=[];for(let E of n)if(E.flags&2097152&&_r(E)&67108864){let L=E.types[0].flags&8650752?0:1;E.types[L]===m&&f$(v,E.types[1-L])}let C=Cf(m);if(Pp(C,E=>v1(v,E))){let E=n.length;for(;E>0;){E--;let L=n[E];if(L.flags&2097152&&_r(L)&67108864){let J=L.types[0].flags&8650752?0:1;L.types[J]===m&&v1(v,L.types[1-J])&&ax(n,E)}}f$(n,m)}}}function lWt(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function EYe(n,d){for(let m of d)if(m.flags&1048576){let v=m.origin;m.aliasSymbol||v&&!(v.flags&1048576)?jc(n,m):v&&v.flags&1048576&&EYe(n,v.types)}}function TEe(n,d){let m=oD(n);return m.types=d,m}function Fr(n,d=1,m,v,C){if(n.length===0)return Si;if(n.length===1)return n[0];if(n.length===2&&!C&&(n[0].flags&1048576||n[1].flags&1048576)){let E=d===0?"N":d===2?"S":"L",L=n[0].id=2&&E[0]===$e&&E[1]===se&&ax(E,1),(L&402664352||L&16384&&L&32768)&&oWt(E,L,!!(d&2)),L&128&&L&402653184&&sWt(E),L&536870912&&cWt(E),d===2&&(E=rWt(E,!!(L&524288)),!E))return _t;if(E.length===0)return L&65536?L&4194304?Wt:tt:L&32768?L&4194304?$e:Bt:Si}if(!C&&L&1048576){let ee=[];EYe(ee,n);let oe=[];for(let Me of E)Lt(ee,Ne=>v1(Ne.types,Me))||oe.push(Me);if(!m&&ee.length===1&&oe.length===0)return ee[0];if(Of(ee,(Me,Ne)=>Me+Ne.types.length,0)+oe.length===E.length){for(let Me of ee)f$(oe,Me);C=TEe(1048576,oe)}}let J=(L&36323331?0:32768)|(L&2097152?16777216:0);return DEe(E,J,m,v,C)}function uWt(n,d){let m,v=[];for(let E of n){let L=wh(E);if(L){if(L.kind!==0&&L.kind!==1||m&&!EEe(m,L))return;m=L,v.push(L.type)}else{let J=d!==2097152?vc(E):void 0;if(J!==Ji&&J!==_n)return}}if(!m)return;let C=$Xe(v,d);return rB(m.kind,m.parameterName,m.parameterIndex,C)}function EEe(n,d){return n.kind===d.kind&&n.parameterIndex===d.parameterIndex}function DEe(n,d,m,v,C){if(n.length===0)return Si;if(n.length===1)return n[0];let L=(C?C.flags&1048576?`|${cg(C.types)}`:C.flags&2097152?`&${cg(C.types)}`:`#${C.type.id}|${cg(n)}`:cg(n))+EA(m,v),J=Rr.get(L);return J||(J=_0(1048576),J.objectFlags=d|a$(n,98304),J.types=n,J.origin=C,J.aliasSymbol=m,J.aliasTypeArguments=v,n.length===2&&n[0].flags&512&&n[1].flags&512&&(J.flags|=16,J.intrinsicName="boolean"),Rr.set(L,J)),J}function dWt(n){let d=rr(n);if(!d.resolvedType){let m=AA(n);d.resolvedType=Fr(_i(n.types,yo),1,m,z6(m))}return d.resolvedType}function fWt(n,d,m){let v=m.flags;return v&2097152?IYe(n,d,m.types):(mv(m)?d&16777216||(d|=16777216,n.set(m.id.toString(),m)):(v&3?(m===mt&&(d|=8388608),le(m)&&(d|=1073741824)):(he||!(v&98304))&&(m===se&&(d|=262144,m=$e),n.has(m.id.toString())||(m.flags&109472&&d&109472&&(d|=67108864),n.set(m.id.toString(),m))),d|=v&473694207),d)}function IYe(n,d,m){for(let v of m)d=fWt(n,d,x_(v));return d}function _Wt(n,d){let m=n.length;for(;m>0;){m--;let v=n[m];(v.flags&4&&d&402653312||v.flags&8&&d&256||v.flags&64&&d&2048||v.flags&4096&&d&8192||v.flags&16384&&d&32768||mv(v)&&d&470302716)&&ax(n,m)}}function pWt(n,d){for(let m of n)if(!v1(m.types,d)){if(d===se)return v1(m.types,$e);if(d===$e)return v1(m.types,se);let v=d.flags&128?Qe:d.flags&288?ei:d.flags&2048?In:d.flags&8192?li:void 0;if(!v||!v1(m.types,v))return!1}return!0}function mWt(n){let d=n.length,m=Di(n,v=>!!(v.flags&128));for(;d>0;){d--;let v=n[d];if(v.flags&402653184){for(let C of m)if(o2(C,v)){ax(n,d);break}else if(hD(v))return!0}}return!1}function NYe(n,d){for(let m=0;m!(v.flags&d))}function hWt(n){let d,m=zi(n,L=>!!(_r(L)&32768));if(m<0)return!1;let v=m+1;for(;v!!(Ot.flags&469893116)||mv(Ot))){if(b$(vt,Ne))return Me;if(!(vt.flags&1048576&&Dh(vt,Ot=>b$(Ot,Ne)))&&!b$(Ne,vt))return Si;J=67108864}}}let ee=cg(L)+(d&2?"*":EA(m,v)),oe=Eo.get(ee);if(!oe){if(E&1048576)if(hWt(L))oe=wa(L,d,m,v);else if(Et(L,pe=>!!(pe.flags&1048576&&pe.types[0].flags&32768))){let pe=Lt(L,yB)?se:$e;NYe(L,32768),oe=Fr([wa(L,d),pe],1,m,v)}else if(Et(L,pe=>!!(pe.flags&1048576&&(pe.types[0].flags&65536||pe.types[1].flags&65536))))NYe(L,65536),oe=Fr([wa(L,d),Wt],1,m,v);else if(L.length>=3&&n.length>2){let pe=Math.floor(L.length/2);oe=wa([wa(L.slice(0,pe),d),wa(L.slice(pe),d)],d,m,v)}else{if(!_$(L))return _t;let pe=yWt(L,d),Me=Lt(pe,Ne=>!!(Ne.flags&2097152))&&IEe(pe)>IEe(L)?TEe(2097152,L):void 0;oe=Fr(pe,1,m,v,Me)}else oe=gWt(L,J,m,v);Eo.set(ee,oe)}return oe}function AYe(n){return Of(n,(d,m)=>m.flags&1048576?d*m.types.length:m.flags&131072?0:d,1)}function _$(n){var d;let m=AYe(n);return m>=1e5?((d=jn)==null||d.instant(jn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(v=>v.id),size:m}),ot(R,S.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function yWt(n,d){let m=AYe(n),v=[];for(let C=0;C=0;ee--)if(n[ee].flags&1048576){let oe=n[ee].types,pe=oe.length;E[ee]=oe[L%pe],L=Math.floor(L/pe)}let J=wa(E,d);J.flags&131072||v.push(J)}return v}function PYe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?PYe(n.origin):IEe(n.types)}function IEe(n){return Of(n,(d,m)=>d+PYe(m),0)}function vWt(n){let d=rr(n);if(!d.resolvedType){let m=AA(n),v=_i(n.types,yo),C=v.length===2?v.indexOf(Ko):-1,E=C>=0?v[1-C]:Y,L=!!(E.flags&76||E.flags&134217728&&hD(E));d.resolvedType=wa(v,L?1:0,m,z6(m))}return d.resolvedType}function LYe(n,d){let m=_0(4194304);return m.type=n,m.indexFlags=d,m}function bWt(n){let d=oD(4194304);return d.type=n,d}function OYe(n,d){return d&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=LYe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=LYe(n,0))}function FYe(n,d){let m=g0(n),v=Gm(n),C=WS(n.target||n);if(!C&&!(d&2))return v;let E=[];if(yD(v)){if(F6(n))return OYe(n,d);wD(v,J)}else if(F6(n)){let ee=S_(KT(n));q2e(ee,8576,!!(d&1),J)}else wD(e$(v),J);let L=d&2?qu(Fr(E),ee=>!(ee.flags&5)):Fr(E);if(L.flags&1048576&&v.flags&1048576&&cg(L.types)===cg(v.types))return v;return L;function J(ee){let oe=C?Oo(C,uB(n.mapper,m,ee)):ee;E.push(oe===Qe?Vi:oe)}}function SWt(n){let d=g0(n);return m(WS(n)||d);function m(v){return v.flags&470810623?!0:v.flags&16777216?v.root.isDistributive&&v.checkType===d:v.flags&137363456?Et(v.types,m):v.flags&8388608?m(v.objectType)&&m(v.indexType):v.flags&33554432?m(v.baseType)&&m(v.constraint):v.flags&268435456?m(v.type):!1}}function Db(n){if(xo(n))return Si;if(Z_(n))return x_(Ho(n));if(Ma(n))return x_(Cy(n));let d=uE(n);return d!==void 0?sp(So(d)):Mt(n)?x_(Ho(n)):Si}function DA(n,d,m){if(m||!(lh(n)&6)){let v=Po(xae(n)).nameType;if(!v){let C=cs(n.valueDeclaration);v=n.escapedName==="default"?sp("default"):C&&Db(C)||(oR(n)?void 0:sp(fu(n)))}if(v&&v.flags&d)return v}return Si}function MYe(n,d){return!!(n.flags&d||n.flags&2097152&&Lt(n.types,m=>MYe(m,d)))}function xWt(n,d,m){let v=m&&(_r(n)&7||n.aliasSymbol)?bWt(n):void 0,C=_i(yc(n),L=>DA(L,d)),E=_i(r_(n),L=>L!==Bi&&MYe(L.keyType,d)?L.keyType===Qe&&d&8?Vi:L.keyType:Si);return Fr(Fo(C,E),1,void 0,void 0,v)}function NEe(n,d=0){return!!(n.flags&58982400||mC(n)||Dp(n)&&(!SWt(n)||t$(n)===2)||n.flags&1048576&&!(d&4)&&Q2e(n)||n.flags&2097152&&hu(n,465829888)&&Lt(n.types,mv))}function Sy(n,d=0){return n=v0(n),j6(n)?dEe(Sy(n.baseType,d)):NEe(n,d)?OYe(n,d):n.flags&1048576?wa(_i(n.types,m=>Sy(m,d))):n.flags&2097152?Fr(_i(n.types,m=>Sy(m,d))):_r(n)&32?FYe(n,d):n===mt?mt:n.flags&2?Si:n.flags&131073?ai:xWt(n,(d&2?128:402653316)|(d&1?0:12584),d===0)}function RYe(n){let d=Rjt();return d?B6(d,[n,Qe]):Qe}function CWt(n){let d=RYe(Sy(n));return d.flags&131072?Qe:d}function kWt(n){let d=rr(n);if(!d.resolvedType)switch(n.operator){case 143:d.resolvedType=Sy(yo(n.type));break;case 158:d.resolvedType=n.type.kind===155?jEe(eR(n.parent)):_t;break;case 148:d.resolvedType=yo(n.type);break;default:B.assertNever(n.operator)}return d.resolvedType}function wWt(n){let d=rr(n);return d.resolvedType||(d.resolvedType=mD([n.head.text,..._i(n.templateSpans,m=>m.literal.text)],_i(n.templateSpans,m=>yo(m.type)))),d.resolvedType}function mD(n,d){let m=zi(d,oe=>!!(oe.flags&1179648));if(m>=0)return _$(d)?Nl(d[m],oe=>mD(n,wP(d,m,oe))):_t;if(sn(d,mt))return mt;let v=[],C=[],E=n[0];if(!ee(n,d))return Qe;if(v.length===0)return sp(E);if(C.push(E),Et(C,oe=>oe==="")){if(Et(v,oe=>!!(oe.flags&4)))return Qe;if(v.length===1&&hD(v[0]))return v[0]}let L=`${cg(v)}|${_i(C,oe=>oe.length).join(",")}|${C.join("")}`,J=Dr.get(L);return J||Dr.set(L,J=EWt(C,v)),J;function ee(oe,pe){for(let Me=0;MeIA(n,m)):d.flags&128?sp(BYe(n,d.value)):d.flags&134217728?mD(...DWt(n,d.texts,d.types)):d.flags&268435456&&n===d.symbol?d:d.flags&268435461||yD(d)?jYe(n,d):p$(d)?jYe(n,mD(["",""],[d])):d}function BYe(n,d){switch(nie.get(n.escapedName)){case 0:return d.toUpperCase();case 1:return d.toLowerCase();case 2:return d.charAt(0).toUpperCase()+d.slice(1);case 3:return d.charAt(0).toLowerCase()+d.slice(1)}return d}function DWt(n,d,m){switch(nie.get(n.escapedName)){case 0:return[d.map(v=>v.toUpperCase()),m.map(v=>IA(n,v))];case 1:return[d.map(v=>v.toLowerCase()),m.map(v=>IA(n,v))];case 2:return[d[0]===""?d:[d[0].charAt(0).toUpperCase()+d[0].slice(1),...d.slice(1)],d[0]===""?[IA(n,m[0]),...m.slice(1)]:m];case 3:return[d[0]===""?d:[d[0].charAt(0).toLowerCase()+d[0].slice(1),...d.slice(1)],d[0]===""?[IA(n,m[0]),...m.slice(1)]:m]}return[d,m]}function jYe(n,d){let m=`${Ca(n)},${rf(d)}`,v=Do.get(m);return v||Do.set(m,v=IWt(n,d)),v}function IWt(n,d){let m=ag(268435456,n);return m.type=d,m}function NWt(n,d,m,v,C){let E=_0(8388608);return E.objectType=n,E.indexType=d,E.accessFlags=m,E.aliasSymbol=v,E.aliasTypeArguments=C,E}function cB(n){if(Se)return!1;if(_r(n)&4096)return!0;if(n.flags&1048576)return Et(n.types,cB);if(n.flags&2097152)return Lt(n.types,cB);if(n.flags&465829888){let d=K2e(n);return d!==n&&cB(d)}return!1}function Oae(n,d){return uh(n)?dh(n):d&&zu(d)?uE(d):void 0}function AEe(n,d){if(d.flags&8208){let m=Ri(n.parent,v=>!il(v))||n.parent;return zw(m)?W0(m)&&et(n)&&KQe(m,n):Et(d.declarations,v=>!vs(v)||DS(v))}return!0}function WYe(n,d,m,v,C,E){let L=C&&C.kind===212?C:void 0,J=C&&xo(C)?void 0:Oae(m,C);if(J!==void 0){if(E&256)return aw(d,J)||je;let oe=da(d,J);if(oe){if(E&64&&C&&oe.declarations&&yb(oe)&&AEe(C,oe)){let Me=L?.argumentExpression??(lT(C)?C.indexType:C);vb(Me,oe.declarations,J)}if(L){if(X$(oe,L,_et(L.expression,d.symbol)),ttt(L,oe,ak(L))){ot(L.argumentExpression,S.Cannot_assign_to_0_because_it_is_a_read_only_property,Lo(oe));return}if(E&8&&(rr(C).resolvedSymbol=oe),ret(L,oe))return It}let pe=E&4?aC(oe):Wn(oe);return L&&ak(L)!==1?Fb(L,pe):C&&lT(C)&&yB(pe)?Fr([pe,$e]):pe}if(Pp(d,Ba)&&Kv(J)){let pe=+J;if(C&&Pp(d,Me=>!(Me.target.combinedFlags&12))&&!(E&16)){let Me=PEe(C);if(Ba(d)){if(pe<0)return ot(Me,S.A_tuple_type_cannot_be_indexed_with_a_negative_value),$e;ot(Me,S.Tuple_type_0_of_length_1_has_no_element_at_index_2,Dn(d),VS(d),So(J))}else ot(Me,S.Property_0_does_not_exist_on_type_1,So(J),Dn(d))}if(pe>=0)return ee(y1(d,ei)),IQe(d,pe,E&1?se:void 0)}}if(!(m.flags&98304)&&kf(m,402665900)){if(d.flags&131073)return d;let oe=nB(d,m)||y1(d,Qe);if(oe){if(E&2&&oe.keyType!==ei){L&&(E&4?ot(L,S.Type_0_is_generic_and_can_only_be_indexed_for_reading,Dn(n)):ot(L,S.Type_0_cannot_be_used_to_index_type_1,Dn(m),Dn(n)));return}if(C&&oe.keyType===Qe&&!kf(m,12)){let pe=PEe(C);return ot(pe,S.Type_0_cannot_be_used_as_an_index_type,Dn(m)),E&1?Fr([oe.type,se]):oe.type}return ee(oe),E&1&&!(d.symbol&&d.symbol.flags&384&&m.symbol&&m.flags&1024&&bm(m.symbol)===d.symbol)?Fr([oe.type,se]):oe.type}if(m.flags&131072)return Si;if(cB(d))return je;if(L&&!zce(d)){if(JS(d)){if(Se&&m.flags&384)return Ga.add(Mn(L,S.Property_0_does_not_exist_on_type_1,m.value,Dn(d))),$e;if(m.flags&12){let pe=_i(d.properties,Me=>Wn(Me));return Fr(hi(pe,$e))}}if(d.symbol===Ke&&J!==void 0&&Ke.exports.has(J)&&Ke.exports.get(J).flags&418)ot(L,S.Property_0_does_not_exist_on_type_1,So(J),Dn(d));else if(Se&&!(E&128))if(J!==void 0&&aet(J,d)){let pe=Dn(d);ot(L,S.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,J,pe,pe+"["+Jl(L.argumentExpression)+"]")}else if(Zk(d,ei))ot(L.argumentExpression,S.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let pe;if(J!==void 0&&(pe=det(J,d)))pe!==void 0&&ot(L.argumentExpression,S.Property_0_does_not_exist_on_type_1_Did_you_mean_2,J,Dn(d),pe);else{let Me=PUt(d,L,m);if(Me!==void 0)ot(L,S.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Dn(d),Me);else{let Ne;if(m.flags&1024)Ne=bs(void 0,S.Property_0_does_not_exist_on_type_1,"["+Dn(m)+"]",Dn(d));else if(m.flags&8192){let vt=MS(m.symbol,L);Ne=bs(void 0,S.Property_0_does_not_exist_on_type_1,"["+vt+"]",Dn(d))}else m.flags&128||m.flags&256?Ne=bs(void 0,S.Property_0_does_not_exist_on_type_1,m.value,Dn(d)):m.flags&12&&(Ne=bs(void 0,S.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Dn(m),Dn(d)));Ne=bs(Ne,S.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Dn(v),Dn(d)),Ga.add(zv(en(L),L,Ne))}}}return}}if(E&16&&JS(d))return $e;if(cB(d))return je;if(C){let oe=PEe(C);if(oe.kind!==10&&m.flags&384)ot(oe,S.Property_0_does_not_exist_on_type_1,""+m.value,Dn(d));else if(m.flags&12)ot(oe,S.Type_0_has_no_matching_index_signature_for_type_1,Dn(d),Dn(m));else{let pe=oe.kind===10?"bigint":Dn(m);ot(oe,S.Type_0_cannot_be_used_as_an_index_type,pe)}}if(pc(m))return m;return;function ee(oe){oe&&oe.isReadonly&&L&&(nS(L)||yZ(L))&&ot(L,S.Index_signature_in_type_0_only_permits_reading,Dn(d))}}function PEe(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function p$(n){if(n.flags&2097152){let d=!1;for(let m of n.types)if(m.flags&101248||p$(m))d=!0;else if(!(m.flags&524288))return!1;return d}return!!(n.flags&77)||hD(n)}function hD(n){return!!(n.flags&134217728)&&Et(n.types,p$)||!!(n.flags&268435456)&&p$(n.type)}function zYe(n){return!!(n.flags&402653184)&&!hD(n)}function NA(n){return!!lB(n)}function gD(n){return!!(lB(n)&4194304)}function yD(n){return!!(lB(n)&8388608)}function lB(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|Of(n.types,(d,m)=>d|lB(m),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|lB(n.baseType)|lB(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Dp(n)||mC(n)?4194304:0)|(n.flags&63176704||zYe(n)?8388608:0)}function Ib(n,d){return n.flags&8388608?PWt(n,d):n.flags&16777216?LWt(n,d):n}function VYe(n,d,m){if(n.flags&1048576||n.flags&2097152&&!NEe(n)){let v=_i(n.types,C=>Ib(Ip(C,d),m));return n.flags&2097152||m?wa(v):Fr(v)}}function AWt(n,d,m){if(d.flags&1048576){let v=_i(d.types,C=>Ib(Ip(n,C),m));return m?wa(v):Fr(v)}}function PWt(n,d){let m=d?"simplifiedForWriting":"simplifiedForReading";if(n[m])return n[m]===Ac?n:n[m];n[m]=Ac;let v=Ib(n.objectType,d),C=Ib(n.indexType,d),E=AWt(v,C,d);if(E)return n[m]=E;if(!(C.flags&465829888)){let L=VYe(v,C,d);if(L)return n[m]=L}if(mC(v)&&C.flags&296){let L=uF(v,C.flags&8?0:v.target.fixedLength,0,d);if(L)return n[m]=L}return Dp(v)&&t$(v)!==2?n[m]=Nl(Fae(v,n.indexType),L=>Ib(L,d)):n[m]=n}function LWt(n,d){let m=n.checkType,v=n.extendsType,C=tw(n),E=iw(n);if(E.flags&131072&&_C(C)===_C(m)){if(m.flags&1||fa(bD(m),bD(v)))return Ib(C,d);if(HYe(m,v))return Si}else if(C.flags&131072&&_C(E)===_C(m)){if(!(m.flags&1)&&fa(bD(m),bD(v)))return Si;if(m.flags&1||HYe(m,v))return Ib(E,d)}return n}function HYe(n,d){return!!(Fr([Zq(n,d),Si]).flags&131072)}function Fae(n,d){let m=Np([g0(n)],[d]),v=r2(n.mapper,m),C=Oo(Tb(n.target||n),v),E=PXe(n)>0||(NA(n)?tF(KT(n))>0:OWt(n,d));return md(C,!0,E)}function OWt(n,d){let m=Cf(d);return!!m&&Lt(yc(n),v=>!!(v.flags&16777216)&&fa(DA(v,8576),m))}function Ip(n,d,m=0,v,C,E){return fC(n,d,m,v,C,E)||(v?_t:Y)}function UYe(n,d){return Pp(n,m=>{if(m.flags&384){let v=dh(m);if(Kv(v)){let C=+v;return C>=0&&C0&&!Lt(n.elements,d=>yH(d)||vH(d)||y4(d)&&!!(d.questionToken||d.dotDotDotToken))}function $Ye(n,d){return NA(n)||d&&Ba(n)&&Lt(e2(n),NA)}function OEe(n,d,m,v,C){let E,L,J=0;for(;;){if(J===1e3)return ot(R,S.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;let oe=Oo(_C(n.checkType),d),pe=Oo(n.extendsType,d);if(oe===_t||pe===_t)return _t;if(oe===mt||pe===mt)return mt;let Me=X3(n.node.checkType),Ne=X3(n.node.extendsType),vt=qYe(Me)&&qYe(Ne)&&K(Me.elements)===K(Ne.elements),Ot=$Ye(oe,vt),jt;if(n.inferTypeParameters){let Pi=bB(n.inferTypeParameters,void 0,0);d&&(Pi.nonFixingMapper=r2(Pi.nonFixingMapper,d)),Ot||Ob(Pi.inferences,oe,pe,1536),jt=d?r2(Pi.mapper,d):Pi.mapper}let xi=jt?Oo(n.extendsType,jt):pe;if(!Ot&&!$Ye(xi,vt)){if(!(xi.flags&3)&&(oe.flags&1||!fa(fB(oe),fB(xi)))){(oe.flags&1||m&&!(xi.flags&131072)&&Dh(fB(xi),Pn=>fa(Pn,fB(oe))))&&(L||(L=[])).push(Oo(yo(n.node.trueType),jt||d));let Pi=yo(n.node.falseType);if(Pi.flags&16777216){let Pn=Pi.root;if(Pn.node.parent===n.node&&(!Pn.isDistributive||Pn.checkType===n.checkType)){n=Pn;continue}if(ee(Pi,d))continue}E=Oo(Pi,d);break}if(xi.flags&3||fa(bD(oe),bD(xi))){let Pi=yo(n.node.trueType),Pn=jt||d;if(ee(Pi,Pn))continue;E=Oo(Pi,Pn);break}}E=_0(16777216),E.root=n,E.checkType=Oo(n.checkType,d),E.extendsType=Oo(n.extendsType,d),E.mapper=d,E.combinedMapper=jt,E.aliasSymbol=v||n.aliasSymbol,E.aliasTypeArguments=v?C:b1(n.aliasTypeArguments,d);break}return L?Fr(hi(L,E)):E;function ee(oe,pe){if(oe.flags&16777216&&pe){let Me=oe.root;if(Me.outerTypeParameters){let Ne=r2(oe.mapper,pe),vt=_i(Me.outerTypeParameters,xi=>HS(xi,Ne)),Ot=Np(Me.outerTypeParameters,vt),jt=Me.isDistributive?HS(Me.checkType,Ot):void 0;if(!jt||jt===Me.checkType||!(jt.flags&1179648))return n=Me,d=Ot,v=void 0,C=void 0,Me.aliasSymbol&&J++,!0}}return!1}}function tw(n){return n.resolvedTrueType||(n.resolvedTrueType=Oo(yo(n.root.node.trueType),n.mapper))}function iw(n){return n.resolvedFalseType||(n.resolvedFalseType=Oo(yo(n.root.node.falseType),n.mapper))}function FWt(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?Oo(yo(n.root.node.trueType),n.combinedMapper):tw(n))}function FEe(n){let d;return n.locals&&n.locals.forEach(m=>{m.flags&262144&&(d=hi(d,Qc(m)))}),d}function MWt(n){return n.isDistributive&&(v$(n.checkType,n.node.trueType)||v$(n.checkType,n.node.falseType))}function RWt(n){let d=rr(n);if(!d.resolvedType){let m=yo(n.checkType),v=AA(n),C=z6(v),E=P6(n,!0),L=C?E:Di(E,ee=>v$(ee,n)),J={node:n,checkType:m,extendsType:yo(n.extendsType),isDistributive:!!(m.flags&262144),inferTypeParameters:FEe(n),outerTypeParameters:L,instantiations:void 0,aliasSymbol:v,aliasTypeArguments:C};d.resolvedType=OEe(J,void 0,!1),L&&(J.instantiations=new Map,J.instantiations.set(cg(L),d.resolvedType))}return d.resolvedType}function BWt(n){let d=rr(n);return d.resolvedType||(d.resolvedType=GT(sr(n.typeParameter))),d.resolvedType}function GYe(n){return et(n)?[n]:hi(GYe(n.left),n.right)}function KYe(n){var d;let m=rr(n);if(!m.resolvedType){if(!eS(n))return ot(n.argument,S.String_literal_expected),m.resolvedSymbol=ct,m.resolvedType=_t;let v=n.isTypeOf?111551:n.flags&16777216?900095:788968,C=rp(n,n.argument.literal);if(!C)return m.resolvedSymbol=ct,m.resolvedType=_t;let E=!!((d=C.exports)!=null&&d.get("export=")),L=Ep(C,!1);if(Ul(n.qualifier))if(L.flags&v)m.resolvedType=XYe(n,m,L,v);else{let J=v===111551?S.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:S.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;ot(n,J,n.argument.literal.text),m.resolvedSymbol=ct,m.resolvedType=_t}else{let J=GYe(n.qualifier),ee=L,oe;for(;oe=J.shift();){let pe=J.length?1920:v,Me=cc(Fu(ee)),Ne=n.isTypeOf||Jn(n)&&E?da(Wn(Me),oe.escapedText,!1,!0):void 0,Ot=(n.isTypeOf?void 0:qd(W_(Me),oe.escapedText,pe))??Ne;if(!Ot)return ot(oe,S.Namespace_0_has_no_exported_member_1,MS(ee),Hc(oe)),m.resolvedType=_t;rr(oe).resolvedSymbol=Ot,rr(oe.parent).resolvedSymbol=Ot,ee=Ot}m.resolvedType=XYe(n,m,ee,v)}}return m.resolvedType}function XYe(n,d,m,v){let C=Fu(m);return d.resolvedSymbol=C,v===111551?zet(Wn(m),n):Nae(n,C)}function YYe(n){let d=rr(n);if(!d.resolvedType){let m=AA(n);if(lC(n.symbol).size===0&&!m)d.resolvedType=Ko;else{let v=M(16,n.symbol);v.aliasSymbol=m,v.aliasTypeArguments=z6(m),CE(n)&&n.isArrayType&&(v=Hf(v)),d.resolvedType=v}}return d.resolvedType}function AA(n){let d=n.parent;for(;gE(d)||yk(d)||_k(d)&&d.operator===148;)d=d.parent;return XM(d)?sr(d):void 0}function z6(n){return n?Ag(n):void 0}function Mae(n){return!!(n.flags&524288)&&!Dp(n)}function MEe(n){return Nb(n)||!!(n.flags&474058748)}function REe(n,d){if(!(n.flags&1048576))return n;if(Et(n.types,MEe))return St(n.types,Nb)||Ts;let m=St(n.types,E=>!MEe(E));if(!m||St(n.types,E=>E!==m&&!MEe(E)))return n;return C(m);function C(E){let L=ta();for(let ee of yc(E))if(!(lh(ee)&6)){if(Rae(ee)){let oe=ee.flags&65536&&!(ee.flags&32768),Me=Aa(16777220,ee.escapedName,J2e(ee)|(d?8:0));Me.links.type=oe?$e:md(Wn(ee),!0),Me.declarations=ee.declarations,Me.links.nameType=Po(ee).nameType,Me.links.syntheticOrigin=ee,L.set(ee.escapedName,Me)}}let J=Io(E.symbol,L,F,F,r_(E));return J.objectFlags|=131200,J}}function t2(n,d,m,v,C){if(n.flags&1||d.flags&1)return je;if(n.flags&2||d.flags&2)return Y;if(n.flags&131072)return d;if(d.flags&131072)return n;if(n=REe(n,C),n.flags&1048576)return _$([n,d])?Nl(n,oe=>t2(oe,d,m,v,C)):_t;if(d=REe(d,C),d.flags&1048576)return _$([n,d])?Nl(d,oe=>t2(n,oe,m,v,C)):_t;if(d.flags&473960444)return n;if(gD(n)||gD(d)){if(Nb(n))return d;if(n.flags&2097152){let oe=n.types,pe=oe[oe.length-1];if(Mae(pe)&&Mae(d))return wa(Fo(oe.slice(0,oe.length-1),[t2(pe,d,m,v,C)]))}return wa([n,d])}let E=ta(),L=new Set,J=n===Ts?r_(d):EXe([n,d]);for(let oe of yc(d))lh(oe)&6?L.add(oe.escapedName):Rae(oe)&&E.set(oe.escapedName,BEe(oe,C));for(let oe of yc(n))if(!(L.has(oe.escapedName)||!Rae(oe)))if(E.has(oe.escapedName)){let pe=E.get(oe.escapedName),Me=Wn(pe);if(pe.flags&16777216){let Ne=Fo(oe.declarations,pe.declarations),vt=4|oe.flags&16777216,Ot=Aa(vt,oe.escapedName),jt=Wn(oe),xi=ice(jt),Pi=ice(Me);Ot.links.type=xi===Pi?jt:Fr([jt,Pi],2),Ot.links.leftSpread=oe,Ot.links.rightSpread=pe,Ot.declarations=Ne,Ot.links.nameType=Po(oe).nameType,E.set(oe.escapedName,Ot)}}else E.set(oe.escapedName,BEe(oe,C));let ee=Io(m,E,F,F,Uo(J,oe=>jWt(oe,C)));return ee.objectFlags|=2228352|v,ee}function Rae(n){var d;return!Lt(n.declarations,u_)&&(!(n.flags&106496)||!((d=n.declarations)!=null&&d.some(m=>jr(m.parent))))}function BEe(n,d){let m=n.flags&65536&&!(n.flags&32768);if(!m&&d===C0(n))return n;let v=4|n.flags&16777216,C=Aa(v,n.escapedName,J2e(n)|(d?8:0));return C.links.type=m?$e:Wn(n),C.declarations=n.declarations,C.links.nameType=Po(n).nameType,C.links.syntheticOrigin=n,C}function jWt(n,d){return n.isReadonly!==d?_v(n.keyType,n.type,d,n.declaration):n}function m$(n,d,m,v){let C=ag(n,m);return C.value=d,C.regularType=v||C,C}function PA(n){if(n.flags&2976){if(!n.freshType){let d=m$(n.flags,n.value,n.symbol,n);d.freshType=d,n.freshType=d}return n.freshType}return n}function x_(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=Nl(n,x_)):n}function i2(n){return!!(n.flags&2976)&&n.freshType===n}function sp(n){let d;return it.get(n)||(it.set(n,d=m$(128,n)),d)}function Pg(n){let d;return si.get(n)||(si.set(n,d=m$(256,n)),d)}function h$(n){let d,m=rT(n);return dn.get(m)||(dn.set(m,d=m$(2048,n)),d)}function WWt(n,d,m){let v,C=`${d}${typeof n=="string"?"@":"#"}${n}`,E=1024|(typeof n=="string"?128:256);return Qn.get(C)||(Qn.set(C,v=m$(E,n,m)),v)}function zWt(n){if(n.literal.kind===106)return Wt;let d=rr(n);return d.resolvedType||(d.resolvedType=x_(Ho(n.literal))),d.resolvedType}function VWt(n){let d=ag(8192,n);return d.escapedName=`__@${d.symbol.escapedName}@${Ca(d.symbol)}`,d}function jEe(n){if(Jn(n)&&yk(n)){let d=Kw(n);d&&(n=YI(d)||d)}if(zhe(n)){let d=zz(n)?z_(n.left):z_(n);if(d){let m=Po(d);return m.uniqueESSymbolType||(m.uniqueESSymbolType=VWt(d))}}return li}function HWt(n){let d=f_(n,!1,!1),m=d&&d.parent;if(m&&(jr(m)||m.kind===264)&&!ia(d)&&(!Ol(d)||Xw(n,d.body)))return op(sr(m)).thisType;if(m&&ba(m)&&Yn(m.parent)&&Su(m.parent)===6)return op(z_(m.parent.left).parent).thisType;let v=n.flags&16777216?ok(n):void 0;return v&&Yc(v)&&Yn(v.parent)&&Su(v.parent)===3?op(z_(v.parent.left).parent).thisType:Ty(d)&&Xw(n,d.body)?op(sr(d)).thisType:(ot(n,S.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),_t)}function WEe(n){let d=rr(n);return d.resolvedType||(d.resolvedType=HWt(n)),d.resolvedType}function QYe(n){return yo(g$(n.type)||n.type)}function g$(n){switch(n.kind){case 196:return g$(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return g$(n.type);break;case 188:return n.elementType}}function UWt(n){let d=rr(n);return d.resolvedType||(d.resolvedType=n.dotDotDotToken?QYe(n):md(yo(n.type),!0,!!n.questionToken))}function yo(n){return bjt(ZYe(n),n)}function ZYe(n){switch(n.kind){case 133:case 312:case 313:return je;case 159:return Y;case 154:return Qe;case 150:return ei;case 163:return In;case 136:return ti;case 155:return li;case 116:return wi;case 157:return $e;case 106:return Wt;case 146:return Si;case 151:return n.flags&524288&&!Se?je:Li;case 141:return nr;case 197:case 110:return WEe(n);case 201:return zWt(n);case 183:return c$(n);case 182:return n.assertsModifier?wi:ti;case 233:return c$(n);case 186:return aYe(n);case 188:case 189:return Qjt(n);case 190:return iWt(n);case 192:return dWt(n);case 193:return vWt(n);case 314:return Sjt(n);case 316:return md(yo(n.type));case 202:return UWt(n);case 196:case 315:case 309:return yo(n.type);case 191:return QYe(n);case 318:return ZGt(n);case 184:case 185:case 187:case 322:case 317:case 323:return YYe(n);case 198:return kWt(n);case 199:return JYe(n);case 200:return LEe(n);case 194:return RWt(n);case 195:return BWt(n);case 203:return wWt(n);case 205:return KYe(n);case 80:case 166:case 211:let d=ug(n);return d?Qc(d):_t;default:return _t}}function Bae(n,d,m){if(n&&n.length)for(let v=0;vv.typeParameter),_i(m,()=>Y))}function r2(n,d){return n?Wae(4,n,d):d}function $Wt(n,d){return n?Wae(5,n,d):d}function vD(n,d,m){return m?Wae(5,n2(n,d),m):n2(n,d)}function uB(n,d,m){return n?Wae(5,n,n2(d,m)):n2(d,m)}function GWt(n){return!n.constraint&&!Dae(n)||n.constraint===pi?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Rt(n.symbol),n.restrictiveInstantiation.constraint=pi,n.restrictiveInstantiation)}function VEe(n){let d=Rt(n.symbol);return d.target=n,d}function KWt(n,d){return rB(n.kind,n.parameterName,n.parameterIndex,Oo(n.type,d))}function LA(n,d,m){let v;if(n.typeParameters&&!m){v=_i(n.typeParameters,VEe),d=r2(Np(n.typeParameters,v),d);for(let E of v)E.mapper=d}let C=g1(n.declaration,v,n.thisParameter&&HEe(n.thisParameter,d),Bae(n.parameters,d,HEe),void 0,void 0,n.minArgumentCount,n.flags&167);return C.target=n,C.mapper=d,C}function HEe(n,d){let m=Po(n);if(m.type&&!gC(m.type)&&(!(n.flags&65536)||m.writeType&&!gC(m.writeType)))return n;_u(n)&1&&(n=m.target,d=r2(m.mapper,d));let v=Aa(n.flags,n.escapedName,1|_u(n)&53256);return v.declarations=n.declarations,v.parent=n.parent,v.links.target=n,v.links.mapper=d,n.valueDeclaration&&(v.valueDeclaration=n.valueDeclaration),m.nameType&&(v.links.nameType=m.nameType),v}function XWt(n,d,m,v){let C=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],E=rr(C),L=n.objectFlags&4?E.resolvedType:n.objectFlags&64?n.target:n,J=n.objectFlags&134217728?n.outerTypeParameters:E.outerTypeParameters;if(!J){let ee=P6(C,!0);if(Ty(C)){let pe=UXe(C);ee=Fn(ee,pe)}J=ee||F;let oe=n.objectFlags&8388612?[C]:n.symbol.declarations;J=(L.objectFlags&8388612||L.symbol.flags&8192||L.symbol.flags&2048)&&!L.aliasTypeArguments?Di(J,pe=>Lt(oe,Me=>v$(pe,Me))):J,E.outerTypeParameters=J}if(J.length){let ee=r2(n.mapper,d),oe=_i(J,Ot=>HS(Ot,ee)),pe=m||n.aliasSymbol,Me=m?v:b1(n.aliasTypeArguments,d),Ne=(n.objectFlags&134217728?"S":"")+cg(oe)+EA(pe,Me);L.instantiations||(L.instantiations=new Map,L.instantiations.set(cg(J)+EA(L.aliasSymbol,L.aliasTypeArguments),L));let vt=L.instantiations.get(Ne);if(!vt){if(n.objectFlags&134217728)return vt=zae(n,d),L.instantiations.set(Ne,vt),vt;let Ot=Np(J,oe);vt=L.objectFlags&4?uEe(n.target,n.node,Ot,pe,Me):L.objectFlags&32?QWt(L,Ot,pe,Me):zae(L,Ot,pe,Me),L.instantiations.set(Ne,vt);let jt=_r(vt);if(vt.flags&3899393&&!(jt&524288)){let xi=Lt(oe,gC);_r(vt)&524288||(jt&52?vt.objectFlags|=524288|(xi?1048576:0):vt.objectFlags|=xi?0:524288)}}return vt}return n}function YWt(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function v$(n,d){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){let v=n.symbol.declarations[0].parent;for(let C=d;C!==v;C=C.parent)if(!C||C.kind===241||C.kind===194&&ws(C.extendsType,m))return!0;return m(d)}return!0;function m(v){switch(v.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&U0(v)&&YWt(v)&&ZYe(v)===n;case 186:let C=v.exprName,E=hp(C);if(!bx(E)){let L=s_(E),J=n.symbol.declarations[0],ee=J.kind===168?J.parent:n.isThisType?J:void 0;if(L.declarations&&ee)return Lt(L.declarations,oe=>Xw(oe,ee))||Lt(v.typeArguments,m)}return!0;case 174:case 173:return!v.type&&!!v.body||Lt(v.typeParameters,m)||Lt(v.parameters,m)||!!v.type&&m(v.type)}return!!ws(v,m)}}function dB(n){let d=Gm(n);if(d.flags&4194304){let m=_C(d.type);if(m.flags&262144)return m}}function QWt(n,d,m,v){let C=dB(n);if(C){let L=Oo(C,d);if(C!==L)return sZe(v0(L),E,m,v)}return Oo(Gm(n),d)===mt?mt:zae(n,d,m,v);function E(L){if(L.flags&61603843&&L!==mt&&!le(L)){if(!n.declaration.nameType){let J;if(Eh(L)||L.flags&1&&oC(C,4)<0&&(J=V_(C))&&Pp(J,rw))return ezt(L,n,vD(C,L,d));if(Ba(L))return ZWt(L,n,C,d);if(BXe(L))return wa(_i(L.types,E))}return zae(n,vD(C,L,d))}return L}}function iQe(n,d){return d&1?!0:d&2?!1:n}function ZWt(n,d,m,v){let C=n.target.elementFlags,E=n.target.fixedLength,L=E?vD(m,n,v):v,J=_i(e2(n),(Me,Ne)=>{let vt=C[Ne];return NeMe&1?2:Me):ee&8?_i(C,Me=>Me&2?1:Me):C,pe=iQe(n.target.readonly,dv(d));return sn(J,_t)?_t:pv(J,oe,pe,n.target.labeledElementDeclarations)}function ezt(n,d,m){let v=nQe(d,ei,!0,m);return le(v)?_t:Hf(v,iQe(cF(n),dv(d)))}function nQe(n,d,m,v){let C=uB(v,g0(n),d),E=Oo(Tb(n.target||n),C),L=dv(n);return he&&L&4&&!hu(E,49152)?hC(E,!0):he&&L&8&&m?lg(E,524288):E}function zae(n,d,m,v){B.assert(n.symbol,"anonymous type must have symbol to be instantiated");let C=M(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){C.declaration=n.declaration;let E=g0(n),L=VEe(E);C.typeParameter=L,d=r2(n2(E,L),d),L.mapper=d}return n.objectFlags&8388608&&(C.node=n.node),n.objectFlags&134217728&&(C.outerTypeParameters=n.outerTypeParameters),C.target=n,C.mapper=d,C.aliasSymbol=m||n.aliasSymbol,C.aliasTypeArguments=m?v:b1(n.aliasTypeArguments,d),C.objectFlags|=C.aliasTypeArguments?a$(C.aliasTypeArguments):0,C}function UEe(n,d,m,v,C){let E=n.root;if(E.outerTypeParameters){let L=_i(E.outerTypeParameters,oe=>HS(oe,d)),J=(m?"C":"")+cg(L)+EA(v,C),ee=E.instantiations.get(J);if(!ee){let oe=Np(E.outerTypeParameters,L),pe=E.checkType,Me=E.isDistributive?v0(HS(pe,oe)):void 0;ee=Me&&pe!==Me&&Me.flags&1179648?sZe(Me,Ne=>OEe(E,vD(pe,Ne,oe),m),v,C):OEe(E,oe,m,v,C),E.instantiations.set(J,ee)}return ee}return n}function Oo(n,d){return n&&d?rQe(n,d,void 0,void 0):n}function rQe(n,d,m,v){var C;if(!gC(n))return n;if(A===100||T>=5e6)return(C=jn)==null||C.instant(jn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:A,instantiationCount:T}),ot(R,S.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;k++,T++,A++;let E=tzt(n,d,m,v);return A--,E}function tzt(n,d,m,v){let C=n.flags;if(C&262144)return HS(n,d);if(C&524288){let E=n.objectFlags;if(E&52){if(E&4&&!n.node){let L=n.resolvedTypeArguments,J=b1(L,d);return J!==L?CEe(n.target,J):n}return E&1024?izt(n,d):XWt(n,d,m,v)}return n}if(C&3145728){let E=n.flags&1048576?n.origin:void 0,L=E&&E.flags&3145728?E.types:n.types,J=b1(L,d);if(J===L&&m===n.aliasSymbol)return n;let ee=m||n.aliasSymbol,oe=m?v:b1(n.aliasTypeArguments,d);return C&2097152||E&&E.flags&2097152?wa(J,0,ee,oe):Fr(J,1,ee,oe)}if(C&4194304)return Sy(Oo(n.type,d));if(C&134217728)return mD(n.texts,b1(n.types,d));if(C&268435456)return IA(n.symbol,Oo(n.type,d));if(C&8388608){let E=m||n.aliasSymbol,L=m?v:b1(n.aliasTypeArguments,d);return Ip(Oo(n.objectType,d),Oo(n.indexType,d),n.accessFlags,void 0,E,L)}if(C&16777216)return UEe(n,r2(n.mapper,d),!1,m,v);if(C&33554432){let E=Oo(n.baseType,d);if(j6(n))return dEe(E);let L=Oo(n.constraint,d);return E.flags&8650752&&NA(L)?_Ee(E,L):L.flags&3||fa(bD(E),bD(L))?E:E.flags&8650752?_Ee(E,L):wa([L,E])}return n}function izt(n,d){let m=Oo(n.mappedType,d);if(!(_r(m)&32))return n;let v=Oo(n.constraintType,d);if(!(v.flags&4194304))return n;let C=RQe(Oo(n.source,d),m,v);return C||n}function fB(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=Oo(n,Zl))}function bD(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=Oo(n,hc),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function nzt(n,d){return _v(n.keyType,Oo(n.type,d),n.isReadonly,n.declaration)}function Xm(n){switch(B.assert(n.kind!==174||zh(n)),n.kind){case 218:case 219:case 174:case 262:return oQe(n);case 210:return Lt(n.properties,Xm);case 209:return Lt(n.elements,Xm);case 227:return Xm(n.whenTrue)||Xm(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Xm(n.left)||Xm(n.right));case 303:return Xm(n.initializer);case 217:return Xm(n.expression);case 292:return Lt(n.properties,Xm)||ny(n.parent)&&Lt(n.parent.parent.children,Xm);case 291:{let{initializer:d}=n;return!!d&&Xm(d)}case 294:{let{expression:d}=n;return!!d&&Xm(d)}}return!1}function oQe(n){return ZV(n)||rzt(n)}function rzt(n){return n.typeParameters||Up(n)||!n.body?!1:n.body.kind!==241?Xm(n.body):!!tS(n.body,d=>!!d.expression&&Xm(d.expression))}function Vae(n){return(Ex(n)||zh(n))&&oQe(n)}function sQe(n){if(n.flags&524288){let d=y0(n);if(d.constructSignatures.length||d.callSignatures.length){let m=M(16,n.symbol);return m.members=d.members,m.properties=d.properties,m.callSignatures=F,m.constructSignatures=F,m.indexInfos=F,m}}else if(n.flags&2097152)return wa(_i(n.types,sQe));return n}function S1(n,d){return xy(n,d,Cp)}function _B(n,d){return xy(n,d,Cp)?-1:0}function JEe(n,d){return xy(n,d,em)?-1:0}function ozt(n,d){return xy(n,d,l1)?-1:0}function o2(n,d){return xy(n,d,l1)}function b$(n,d){return xy(n,d,Hm)}function fa(n,d){return xy(n,d,em)}function nw(n,d){return n.flags&1048576?Et(n.types,m=>nw(m,d)):d.flags&1048576?Lt(d.types,m=>nw(n,m)):n.flags&2097152?Lt(n.types,m=>nw(m,d)):n.flags&58982400?nw(Cf(n)||Y,d):mv(d)?!!(n.flags&67633152):d===Ou?!!(n.flags&67633152)&&!mv(n):d===_d?!!(n.flags&524288)&&wDe(n):A6(n,dD(d))||Eh(d)&&!cF(d)&&nw(n,hn)}function Hae(n,d){return xy(n,d,tm)}function S$(n,d){return Hae(n,d)||Hae(d,n)}function o_(n,d,m,v,C,E){return Th(n,d,em,m,v,C,E)}function pC(n,d,m,v,C,E){return qEe(n,d,em,m,v,C,E,void 0)}function qEe(n,d,m,v,C,E,L,J){return xy(n,d,m)?!0:!v||!pB(C,n,d,m,E,L,J)?Th(n,d,m,v,E,L,J):!1}function aQe(n){return!!(n.flags&16777216||n.flags&2097152&&Lt(n.types,aQe))}function pB(n,d,m,v,C,E,L){if(!n||aQe(m))return!1;if(!Th(d,m,v,void 0)&&szt(n,d,m,v,C,E,L))return!0;switch(n.kind){case 234:if(!kee(n))break;case 294:case 217:return pB(n.expression,d,m,v,C,E,L);case 226:switch(n.operatorToken.kind){case 64:case 28:return pB(n.right,d,m,v,C,E,L)}break;case 210:return pzt(n,d,m,v,E,L);case 209:return fzt(n,d,m,v,E,L);case 292:return dzt(n,d,m,v,E,L);case 219:return azt(n,d,m,v,E,L)}return!1}function szt(n,d,m,v,C,E,L){let J=Bs(d,0),ee=Bs(d,1);for(let oe of[ee,J])if(Lt(oe,pe=>{let Me=vc(pe);return!(Me.flags&131073)&&Th(Me,m,v,void 0)})){let pe=L||{};o_(d,m,n,C,E,pe);let Me=pe.errors[pe.errors.length-1];return Xs(Me,Mn(n,oe===ee?S.Did_you_mean_to_use_new_with_this_expression:S.Did_you_mean_to_call_this_expression)),!0}return!1}function azt(n,d,m,v,C,E){if(Ds(n.body)||Lt(n.parameters,xz))return!1;let L=ID(d);if(!L)return!1;let J=Bs(m,0);if(!K(J))return!1;let ee=n.body,oe=vc(L),pe=Fr(_i(J,vc));if(!Th(oe,pe,v,void 0)){let Me=ee&&pB(ee,oe,pe,v,void 0,C,E);if(Me)return Me;let Ne=E||{};if(Th(oe,pe,v,ee,void 0,C,Ne),Ne.errors)return m.symbol&&K(m.symbol.declarations)&&Xs(Ne.errors[Ne.errors.length-1],Mn(m.symbol.declarations[0],S.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Vu(n)&2)&&!Mu(oe,"then")&&Th(oG(oe),pe,v,void 0)&&Xs(Ne.errors[Ne.errors.length-1],Mn(n,S.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function cQe(n,d,m){let v=fC(d,m);if(v)return v;if(d.flags&1048576){let C=gQe(n,d);if(C)return fC(C,m)}}function lQe(n,d){H$(n,d,!1);let m=gF(n,1);return wB(),m}function x$(n,d,m,v,C,E){let L=!1;for(let J of n){let{errorNode:ee,innerExpression:oe,nameType:pe,errorMessage:Me}=J,Ne=cQe(d,m,pe);if(!Ne||Ne.flags&8388608)continue;let vt=fC(d,pe);if(!vt)continue;let Ot=Oae(pe,void 0);if(!Th(vt,Ne,v,void 0)){let jt=oe&&pB(oe,vt,Ne,v,void 0,C,E);if(L=!0,!jt){let xi=E||{},Pi=oe?lQe(oe,vt):vt;if(ke&&Jae(Pi,Ne)){let Pn=Mn(ee,S.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Dn(Pi),Dn(Ne));Ga.add(Pn),xi.errors=[Pn]}else{let Pn=!!(Ot&&(da(m,Ot)||ct).flags&16777216),Bn=!!(Ot&&(da(d,Ot)||ct).flags&16777216);Ne=Lb(Ne,Pn),vt=Lb(vt,Pn&&Bn),Th(Pi,Ne,v,ee,Me,C,xi)&&Pi!==vt&&Th(vt,Ne,v,ee,Me,C,xi)}if(xi.errors){let Pn=xi.errors[xi.errors.length-1],Bn=uh(pe)?dh(pe):void 0,$i=Bn!==void 0?da(m,Bn):void 0,Ni=!1;if(!$i){let Zn=nB(m,pe);Zn&&Zn.declaration&&!en(Zn.declaration).hasNoDefaultLib&&(Ni=!0,Xs(Pn,Mn(Zn.declaration,S.The_expected_type_comes_from_this_index_signature)))}if(!Ni&&($i&&K($i.declarations)||m.symbol&&K(m.symbol.declarations))){let Zn=$i&&K($i.declarations)?$i.declarations[0]:m.symbol.declarations[0];en(Zn).hasNoDefaultLib||Xs(Pn,Mn(Zn,S.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Bn&&!(pe.flags&8192)?So(Bn):Dn(pe),Dn(m)))}}}}}return L}function czt(n,d,m,v,C,E){let L=qu(m,Qae),J=qu(m,pe=>!Qae(pe)),ee=J!==Si?$Ie(13,0,J,void 0):void 0,oe=!1;for(let pe=n.next();!pe.done;pe=n.next()){let{errorNode:Me,innerExpression:Ne,nameType:vt,errorMessage:Ot}=pe.value,jt=ee,xi=L!==Si?cQe(d,L,vt):void 0;if(xi&&!(xi.flags&8388608)&&(jt=ee?Fr([ee,xi]):xi),!jt)continue;let Pi=fC(d,vt);if(!Pi)continue;let Pn=Oae(vt,void 0);if(!Th(Pi,jt,v,void 0)){let Bn=Ne&&pB(Ne,Pi,jt,v,void 0,C,E);if(oe=!0,!Bn){let $i=E||{},Ni=Ne?lQe(Ne,Pi):Pi;if(ke&&Jae(Ni,jt)){let Zn=Mn(Me,S.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Dn(Ni),Dn(jt));Ga.add(Zn),$i.errors=[Zn]}else{let Zn=!!(Pn&&(da(L,Pn)||ct).flags&16777216),wr=!!(Pn&&(da(d,Pn)||ct).flags&16777216);jt=Lb(jt,Zn),Pi=Lb(Pi,Zn&&wr),Th(Ni,jt,v,Me,Ot,C,$i)&&Ni!==Pi&&Th(Pi,jt,v,Me,Ot,C,$i)}}}}return oe}function*lzt(n){if(K(n.properties))for(let d of n.properties)NN(d)||$De(NR(d.name))||(yield{errorNode:d.name,innerExpression:d.initializer,nameType:sp(NR(d.name))})}function*uzt(n,d){if(!K(n.children))return;let m=0;for(let v=0;v1,xi,Pi;if(Lae(!1)!==Bo){let Bn=SYe(je);xi=qu(vt,$i=>fa($i,Bn)),Pi=qu(vt,$i=>!fa($i,Bn))}else xi=qu(vt,Qae),Pi=qu(vt,Bn=>!Qae(Bn));if(jt){if(xi!==Si){let Bn=pv(wce(oe,0)),$i=uzt(oe,ee);L=czt($i,Bn,xi,v,C,E)||L}else if(!xy(Ip(d,Ne),vt,v)){L=!0;let Bn=ot(oe.openingElement.tagName,S.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Me,Dn(vt));E&&E.skipLogging&&(E.errors||(E.errors=[])).push(Bn)}}else if(Pi!==Si){let Bn=Ot[0],$i=uQe(Bn,Ne,ee);$i&&(L=x$(function*(){yield $i}(),d,m,v,C,E)||L)}else if(!xy(Ip(d,Ne),vt,v)){L=!0;let Bn=ot(oe.openingElement.tagName,S.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Me,Dn(vt));E&&E.skipLogging&&(E.errors||(E.errors=[])).push(Bn)}}return L;function ee(){if(!J){let oe=Jl(n.parent.tagName),pe=J$(ED(n)),Me=pe===void 0?"children":So(pe),Ne=Ip(m,sp(Me)),vt=S._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;J={...vt,key:"!!ALREADY FORMATTED!!",message:lN(vt,oe,Me,Dn(Ne))}}return J}}function*dQe(n,d){let m=K(n.elements);if(m)for(let v=0;vee:Ey(n)>ee))return v&&!(m&8)&&C(S.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,Ey(n),ee),0;n.typeParameters&&n.typeParameters!==d.typeParameters&&(d=fjt(d),n=bet(n,d,void 0,L));let pe=Lp(n),Me=NB(n),Ne=NB(d);(Me||Ne)&&Oo(Me||Ne,J);let vt=d.declaration?d.declaration.kind:0,Ot=!(m&3)&&ue&&vt!==174&&vt!==173&&vt!==176,jt=-1,xi=ew(n);if(xi&&xi!==wi){let Bn=ew(d);if(Bn){let $i=!Ot&&L(xi,Bn,!1)||L(Bn,xi,v);if(!$i)return v&&C(S.The_this_types_of_each_signature_are_incompatible),0;jt&=$i}}let Pi=Me||Ne?Math.min(pe,ee):Math.max(pe,ee),Pn=Me||Ne?Pi-1:-1;for(let Bn=0;Bn=Ey(n)&&Bn=3&&d[0].flags&32768&&d[1].flags&65536&&Lt(d,mv)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function V6(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function _Qe(n){let d=n.flags&1048576?n.types[0]:n;return!!(d.flags&32768)&&d!==se}function pQe(n){return n.flags&524288&&!Dp(n)&&yc(n).length===0&&r_(n).length===1&&!!y1(n,Qe)||n.flags&3145728&&Et(n.types,pQe)||!1}function KEe(n,d,m){let v=n.flags&8?bm(n):n,C=d.flags&8?bm(d):d;if(v===C)return!0;if(v.escapedName!==C.escapedName||!(v.flags&256)||!(C.flags&256))return!1;let E=Ca(v)+","+Ca(C),L=$x.get(E);if(L!==void 0&&!(L&2&&m))return!!(L&1);let J=Wn(C);for(let ee of yc(Wn(v)))if(ee.flags&8){let oe=da(J,ee.escapedName);if(!oe||!(oe.flags&8))return m&&m(S.Property_0_is_missing_in_type_1,fu(ee),Dn(Qc(C),void 0,64)),$x.set(E,2),!1;let pe=AD(bl(ee,306)).value,Me=AD(bl(oe,306)).value;if(pe!==Me){let Ne=typeof pe=="string",vt=typeof Me=="string";if(pe!==void 0&&Me!==void 0){if(m){let Ot=Ne?`"${Yy(pe)}"`:pe,jt=vt?`"${Yy(Me)}"`:Me;m(S.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,fu(C),fu(oe),jt,Ot)}return $x.set(E,2),!1}if(Ne||vt){if(m){let Ot=pe??Me;B.assert(typeof Ot=="string");let jt=`"${Yy(Ot)}"`;m(S.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,fu(C),fu(oe),jt)}return $x.set(E,2),!1}}}return $x.set(E,1),!0}function mB(n,d,m,v){let C=n.flags,E=d.flags;return E&1||C&131072||n===mt||E&2&&!(m===Hm&&C&1)?!0:E&131072?!1:!!(C&402653316&&E&4||C&128&&C&1024&&E&128&&!(E&1024)&&n.value===d.value||C&296&&E&8||C&256&&C&1024&&E&256&&!(E&1024)&&n.value===d.value||C&2112&&E&64||C&528&&E&16||C&12288&&E&4096||C&32&&E&32&&n.symbol.escapedName===d.symbol.escapedName&&KEe(n.symbol,d.symbol,v)||C&1024&&E&1024&&(C&1048576&&E&1048576&&KEe(n.symbol,d.symbol,v)||C&2944&&E&2944&&n.value===d.value&&KEe(n.symbol,d.symbol,v))||C&32768&&(!he&&!(E&3145728)||E&49152)||C&65536&&(!he&&!(E&3145728)||E&65536)||C&524288&&E&67108864&&!(m===Hm&&mv(n)&&!(_r(n)&8192))||(m===em||m===tm)&&(C&1||C&8&&(E&32||E&256&&E&1024)||C&256&&!(C&1024)&&(E&32||E&256&&E&1024&&n.value===d.value)||yzt(d)))}function xy(n,d,m){if(i2(n)&&(n=n.regularType),i2(d)&&(d=d.regularType),n===d)return!0;if(m!==Cp){if(m===tm&&!(d.flags&131072)&&mB(d,n,m)||mB(n,d,m))return!0}else if(!((n.flags|d.flags)&61865984)){if(n.flags!==d.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&d.flags&524288){let v=m.get(Gae(n,d,0,m,!1));if(v!==void 0)return!!(v&1)}return n.flags&469499904||d.flags&469499904?Th(n,d,m,void 0):!1}function mQe(n,d){return _r(n)&2048&&$De(d.escapedName)}function C$(n,d){for(;;){let m=i2(n)?n.regularType:mC(n)?Szt(n,d):_r(n)&4?n.node?Eb(n.target,fl(n)):nDe(n)||n:n.flags&3145728?vzt(n,d):n.flags&33554432?d?n.baseType:pEe(n):n.flags&25165824?Ib(n,d):n;if(m===n)return m;n=m}}function vzt(n,d){let m=v0(n);if(m!==n)return m;if(n.flags&2097152&&bzt(n)){let v=Uo(n.types,C=>C$(C,d));if(v!==n.types)return wa(v)}return n}function bzt(n){let d=!1,m=!1;for(let v of n.types)if(d||(d=!!(v.flags&465829888)),m||(m=!!(v.flags&98304)||mv(v)),d&&m)return!0;return!1}function Szt(n,d){let m=e2(n),v=Uo(m,C=>C.flags&25165824?Ib(C,d):C);return m!==v?kEe(n.target,v):n}function Th(n,d,m,v,C,E,L){var J;let ee,oe,pe,Me,Ne,vt,Ot=0,jt=0,xi=0,Pi=0,Pn=!1,Bn=0,$i=0,Ni,Zn,wr=16e6-m.size>>3;B.assert(m!==Cp||!v,"no error reporting in identity checking");let Qr=$n(n,d,3,!!v,C);if(Zn&&_l(),Pn){let at=Gae(n,d,0,m,!1);m.set(at,2|(wr<=0?32:64)),(J=jn)==null||J.instant(jn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:d.id,depth:jt,targetDepth:xi});let yt=wr<=0?S.Excessive_complexity_comparing_types_0_and_1:S.Excessive_stack_depth_comparing_types_0_and_1,Xt=ot(v||R,yt,Dn(n),Dn(d));L&&(L.errors||(L.errors=[])).push(Xt)}else if(ee){if(E){let Xt=E();Xt&&(Yge(Xt,ee),ee=Xt)}let at;if(C&&v&&!Qr&&n.symbol){let Xt=Po(n.symbol);if(Xt.originatingImport&&!fm(Xt.originatingImport)&&Th(Wn(Xt.target),d,m,void 0)){let kt=Mn(Xt.originatingImport,S.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);at=hi(at,kt)}}let yt=zv(en(v),v,ee,at);oe&&Xs(yt,...oe),L&&(L.errors||(L.errors=[])).push(yt),(!L||!L.skipLogging)&&Ga.add(yt)}return v&&L&&L.skipLogging&&Qr===0&&B.assert(!!L.errors,"missed opportunity to interact with error."),Qr!==0;function Cr(at){ee=at.errorInfo,Ni=at.lastSkippedInfo,Zn=at.incompatibleStack,Bn=at.overrideNextErrorInfo,$i=at.skipParentCounter,oe=at.relatedInfo}function ra(){return{errorInfo:ee,lastSkippedInfo:Ni,incompatibleStack:Zn?.slice(),overrideNextErrorInfo:Bn,skipParentCounter:$i,relatedInfo:oe?.slice()}}function Ys(at,...yt){Bn++,Ni=void 0,(Zn||(Zn=[])).push([at,...yt])}function _l(){let at=Zn||[];Zn=void 0;let yt=Ni;if(Ni=void 0,at.length===1){us(...at[0]),yt&&nu(void 0,...yt);return}let Xt="",Oi=[];for(;at.length;){let[kt,...Zt]=at.pop();switch(kt.code){case S.Types_of_property_0_are_incompatible.code:{Xt.indexOf("new ")===0&&(Xt=`(${Xt})`);let rn=""+Zt[0];Xt.length===0?Xt=`${rn}`:pp(rn,Oa($))?Xt=`${Xt}.${rn}`:rn[0]==="["&&rn[rn.length-1]==="]"?Xt=`${Xt}${rn}`:Xt=`${Xt}[${rn}]`;break}case S.Call_signature_return_types_0_and_1_are_incompatible.code:case S.Construct_signature_return_types_0_and_1_are_incompatible.code:case S.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case S.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Xt.length===0){let rn=kt;kt.code===S.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?rn=S.Call_signature_return_types_0_and_1_are_incompatible:kt.code===S.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(rn=S.Construct_signature_return_types_0_and_1_are_incompatible),Oi.unshift([rn,Zt[0],Zt[1]])}else{let rn=kt.code===S.Construct_signature_return_types_0_and_1_are_incompatible.code||kt.code===S.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Gt=kt.code===S.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||kt.code===S.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Xt=`${rn}${Xt}(${Gt})`}break}case S.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Oi.unshift([S.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Zt[0],Zt[1]]);break}case S.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Oi.unshift([S.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Zt[0],Zt[1],Zt[2]]);break}default:return B.fail(`Unhandled Diagnostic: ${kt.code}`)}}Xt?us(Xt[Xt.length-1]===")"?S.The_types_returned_by_0_are_incompatible_between_these_types:S.The_types_of_0_are_incompatible_between_these_types,Xt):Oi.shift();for(let[kt,...Zt]of Oi){let rn=kt.elidedInCompatabilityPyramid;kt.elidedInCompatabilityPyramid=!1,us(kt,...Zt),kt.elidedInCompatabilityPyramid=rn}yt&&nu(void 0,...yt)}function us(at,...yt){B.assert(!!v),Zn&&_l(),!at.elidedInCompatabilityPyramid&&($i===0?ee=bs(ee,at,...yt):$i--)}function Gl(at,...yt){us(at,...yt),$i++}function af(at){B.assert(!!ee),oe?oe.push(at):oe=[at]}function nu(at,yt,Xt){Zn&&_l();let[Oi,kt]=K8(yt,Xt),Zt=yt,rn=Oi;if(hB(yt)&&!XEe(Xt)&&(Zt=Ab(yt),B.assert(!fa(Zt,Xt),"generalized source shouldn't be assignable"),rn=T6(Zt)),(Xt.flags&8388608&&!(yt.flags&8388608)?Xt.objectType.flags:Xt.flags)&262144&&Xt!==$l&&Xt!==H){let Hi=Cf(Xt),Nn;Hi&&(fa(Zt,Hi)||(Nn=fa(yt,Hi)))?us(S._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Nn?Oi:rn,kt,Dn(Hi)):(ee=void 0,us(S._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,kt,rn))}if(at)at===S.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ke&&hQe(yt,Xt).length&&(at=S.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(m===tm)at=S.Type_0_is_not_comparable_to_type_1;else if(Oi===kt)at=S.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ke&&hQe(yt,Xt).length)at=S.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(yt.flags&128&&Xt.flags&1048576){let Hi=LUt(yt,Xt);if(Hi){us(S.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,rn,kt,Dn(Hi));return}}at=S.Type_0_is_not_assignable_to_type_1}us(at,rn,kt)}function ln(at,yt){let Xt=nC(at.symbol)?Dn(at,at.symbol.valueDeclaration):Dn(at),Oi=nC(yt.symbol)?Dn(yt,yt.symbol.valueDeclaration):Dn(yt);(Jo===at&&Qe===yt||za===at&&ei===yt||Ja===at&&ti===yt||pYe()===at&&li===yt)&&us(S._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Oi,Xt)}function kn(at,yt,Xt){return Ba(at)?at.target.readonly&&E$(yt)?(Xt&&us(S.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Dn(at),Dn(yt)),!1):rw(yt):cF(at)&&E$(yt)?(Xt&&us(S.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Dn(at),Dn(yt)),!1):Ba(yt)?Eh(at):!0}function ko(at,yt,Xt){return $n(at,yt,3,Xt)}function $n(at,yt,Xt=3,Oi=!1,kt,Zt=0){if(at===yt)return-1;if(at.flags&524288&&yt.flags&402784252)return m===tm&&!(yt.flags&131072)&&mB(yt,at,m)||mB(at,yt,m,Oi?us:void 0)?-1:(Oi&&ss(at,yt,at,yt,kt),0);let rn=C$(at,!1),Gt=C$(yt,!0);if(rn===Gt)return-1;if(m===Cp)return rn.flags!==Gt.flags?0:rn.flags&67358815?-1:(ga(rn,Gt),CF(rn,Gt,!1,0,Xt));if(rn.flags&262144&&fD(rn)===Gt)return-1;if(rn.flags&470302716&&Gt.flags&1048576){let Hi=Gt.types,Nn=Hi.length===2&&Hi[0].flags&98304?Hi[1]:Hi.length===3&&Hi[0].flags&98304&&Hi[1].flags&98304?Hi[2]:void 0;if(Nn&&!(Nn.flags&98304)&&(Gt=C$(Nn,!0),rn===Gt))return-1}if(m===tm&&!(Gt.flags&131072)&&mB(Gt,rn,m)||mB(rn,Gt,m,Oi?us:void 0))return-1;if(rn.flags&469499904||Gt.flags&469499904){if(!(Zt&2)&&JS(rn)&&_r(rn)&8192&&ru(rn,Gt,Oi))return Oi&&nu(kt,rn,yt.aliasSymbol?yt:Gt),0;let Nn=(m!==tm||b0(rn))&&!(Zt&2)&&rn.flags&405405692&&rn!==Ou&&Gt.flags&2621440&&QEe(Gt)&&(yc(rn).length>0||ale(rn)),Ti=!!(_r(rn)&2048);if(Nn&&!Czt(rn,Gt,Ti)){if(Oi){let br=Dn(at.aliasSymbol?at:rn),no=Dn(yt.aliasSymbol?yt:Gt),Mr=Bs(rn,0),ms=Bs(rn,1);Mr.length>0&&$n(vc(Mr[0]),Gt,1,!1)||ms.length>0&&$n(vc(ms[0]),Gt,1,!1)?us(S.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,br,no):us(S.Type_0_has_no_properties_in_common_with_type_1,br,no)}return 0}ga(rn,Gt);let yn=rn.flags&1048576&&rn.types.length<4&&!(Gt.flags&1048576)||Gt.flags&1048576&&Gt.types.length<4&&!(rn.flags&469499904)?$d(rn,Gt,Oi,Zt):CF(rn,Gt,Oi,Zt,Xt);if(yn)return yn}return Oi&&ss(at,yt,rn,Gt,kt),0}function ss(at,yt,Xt,Oi,kt){var Zt,rn;let Gt=!!nDe(at),Hi=!!nDe(yt);Xt=at.aliasSymbol||Gt?at:Xt,Oi=yt.aliasSymbol||Hi?yt:Oi;let Nn=Bn>0;if(Nn&&Bn--,Xt.flags&524288&&Oi.flags&524288){let Ti=ee;kn(Xt,Oi,!0),ee!==Ti&&(Nn=!!ee)}if(Xt.flags&524288&&Oi.flags&402784252)ln(Xt,Oi);else if(Xt.symbol&&Xt.flags&524288&&Ou===Xt)us(S.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(_r(Xt)&2048&&Oi.flags&2097152){let Ti=Oi.types,An=c2(Mm.IntrinsicAttributes,v),yn=c2(Mm.IntrinsicClassAttributes,v);if(!le(An)&&!le(yn)&&(sn(Ti,An)||sn(Ti,yn)))return}else ee=Z2e(ee,yt);if(!kt&&Nn){let Ti=ra();nu(kt,Xt,Oi);let An;ee&&ee!==Ti.errorInfo&&(An={code:ee.code,messageText:ee.messageText}),Cr(Ti),An&&ee&&(ee.canonicalHead=An),Ni=[Xt,Oi];return}if(nu(kt,Xt,Oi),Xt.flags&262144&&((rn=(Zt=Xt.symbol)==null?void 0:Zt.declarations)!=null&&rn[0])&&!fD(Xt)){let Ti=VEe(Xt);if(Ti.constraint=Oo(Oi,n2(Xt,Ti)),n$(Ti)){let An=Dn(Oi,Xt.symbol.declarations[0]);af(Mn(Xt.symbol.declarations[0],S.This_type_parameter_might_need_an_extends_0_constraint,An))}}}function ga(at,yt){if(jn&&at.flags&3145728&&yt.flags&3145728){let Xt=at,Oi=yt;if(Xt.objectFlags&Oi.objectFlags&32768)return;let kt=Xt.types.length,Zt=Oi.types.length;kt*Zt>1e6&&jn.instant(jn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:at.id,sourceSize:kt,targetId:yt.id,targetSize:Zt,pos:v?.pos,end:v?.end})}}function pl(at,yt){return Fr(Of(at,(Oi,kt)=>{var Zt;kt=S_(kt);let rn=kt.flags&3145728?r$(kt,yt):XT(kt,yt),Gt=rn&&Wn(rn)||((Zt=TA(kt,yt))==null?void 0:Zt.type)||$e;return hi(Oi,Gt)},void 0)||F)}function ru(at,yt,Xt){var Oi;if(!EB(yt)||!Se&&_r(yt)&4096)return!1;let kt=!!(_r(at)&2048);if((m===em||m===tm)&&(fF(Ou,yt)||!kt&&Nb(yt)))return!1;let Zt=yt,rn;yt.flags&1048576&&(Zt=Uit(at,yt,$n)||zXt(yt),rn=Zt.flags&1048576?Zt.types:[Zt]);for(let Gt of yc(at))if(Va(Gt,at.symbol)&&!mQe(at,Gt)){if(!Ece(Zt,Gt.escapedName,kt)){if(Xt){let Hi=qu(Zt,EB);if(!v)return B.fail();if(pT(v)||Mf(v)||Mf(v.parent)){Gt.valueDeclaration&&ry(Gt.valueDeclaration)&&en(v)===en(Gt.valueDeclaration.name)&&(v=Gt.valueDeclaration.name);let Nn=Lo(Gt),Ti=uet(Nn,Hi),An=Ti?Lo(Ti):void 0;An?us(S.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Nn,Dn(Hi),An):us(S.Property_0_does_not_exist_on_type_1,Nn,Dn(Hi))}else{let Nn=((Oi=at.symbol)==null?void 0:Oi.declarations)&&mc(at.symbol.declarations),Ti;if(Gt.valueDeclaration&&Ri(Gt.valueDeclaration,An=>An===Nn)&&en(Nn)===en(v)){let An=Gt.valueDeclaration;B.assertNode(An,G1);let yn=An.name;v=yn,et(yn)&&(Ti=det(yn,Hi))}Ti!==void 0?Gl(S.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Lo(Gt),Dn(Hi),Ti):Gl(S.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Lo(Gt),Dn(Hi))}}return!0}if(rn&&!$n(Wn(Gt),pl(rn,Gt.escapedName),3,Xt))return Xt&&Ys(S.Types_of_property_0_are_incompatible,Lo(Gt)),!0}return!1}function Va(at,yt){return at.valueDeclaration&&yt.valueDeclaration&&at.valueDeclaration.parent===yt.valueDeclaration}function $d(at,yt,Xt,Oi){if(at.flags&1048576){if(yt.flags&1048576){let kt=at.origin;if(kt&&kt.flags&2097152&&yt.aliasSymbol&&sn(kt.types,yt))return-1;let Zt=yt.origin;if(Zt&&Zt.flags&1048576&&at.aliasSymbol&&sn(Zt.types,at))return-1}return m===tm?Eu(at,yt,Xt&&!(at.flags&402784252),Oi):GS(at,yt,Xt&&!(at.flags&402784252),Oi)}if(yt.flags&1048576)return qc(vB(at),yt,Xt&&!(at.flags&402784252)&&!(yt.flags&402784252),Oi);if(yt.flags&2097152)return Ym(at,yt,Xt,2);if(m===tm&&yt.flags&402784252){let kt=Uo(at.types,Zt=>Zt.flags&465829888?Cf(Zt)||Y:Zt);if(kt!==at.types){if(at=wa(kt),at.flags&131072)return 0;if(!(at.flags&2097152))return $n(at,yt,1,!1)||$n(yt,at,1,!1)}}return Eu(at,yt,!1,1)}function gu(at,yt){let Xt=-1,Oi=at.types;for(let kt of Oi){let Zt=qc(kt,yt,!1,0);if(!Zt)return 0;Xt&=Zt}return Xt}function qc(at,yt,Xt,Oi){let kt=yt.types;if(yt.flags&1048576){if(v1(kt,at))return-1;if(m!==tm&&_r(yt)&32768&&!(at.flags&1024)&&(at.flags&2688||(m===l1||m===Hm)&&at.flags&256)){let rn=at===at.regularType?at.freshType:at.regularType,Gt=at.flags&128?Qe:at.flags&256?ei:at.flags&2048?In:void 0;return Gt&&v1(kt,Gt)||rn&&v1(kt,rn)?-1:0}let Zt=$Qe(yt,at);if(Zt){let rn=$n(at,Zt,2,!1,void 0,Oi);if(rn)return rn}}for(let Zt of kt){let rn=$n(at,Zt,2,!1,void 0,Oi);if(rn)return rn}if(Xt){let Zt=gQe(at,yt,$n);Zt&&$n(at,Zt,2,!0,void 0,Oi)}return 0}function Ym(at,yt,Xt,Oi){let kt=-1,Zt=yt.types;for(let rn of Zt){let Gt=$n(at,rn,2,Xt,void 0,Oi);if(!Gt)return 0;kt&=Gt}return kt}function Eu(at,yt,Xt,Oi){let kt=at.types;if(at.flags&1048576&&v1(kt,yt))return-1;let Zt=kt.length;for(let rn=0;rn=rn.types.length&&Zt.length%rn.types.length===0){let Ti=$n(Hi,rn.types[Gt%rn.types.length],3,!1,void 0,Oi);if(Ti){kt&=Ti;continue}}let Nn=$n(Hi,yt,1,Xt,void 0,Oi);if(!Nn)return 0;kt&=Nn}return kt}function Z6(at=F,yt=F,Xt=F,Oi,kt){if(at.length!==yt.length&&m===Cp)return 0;let Zt=at.length<=yt.length?at.length:yt.length,rn=-1;for(let Gt=0;Gt(br|=ms?16:8,yn(ms)));let no;return Pi===3?((Zt=jn)==null||Zt.instant(jn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:at.id,sourceIdStack:Ne.map(ms=>ms.id),targetId:yt.id,targetIdStack:vt.map(ms=>ms.id),depth:jt,targetDepth:xi}),no=3):((rn=jn)==null||rn.push(jn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:at.id,targetId:yt.id}),no=kF(at,yt,Xt,Oi),(Gt=jn)==null||Gt.pop()),fo&&(fo=yn),kt&1&&jt--,kt&2&&xi--,Pi=An,no?(no===-1||jt===0&&xi===0)&&Mr(no===-1||no===3):(m.set(Hi,2|br),wr--,Mr(!1)),no;function Mr(ms){for(let Pc=Ti;PcGt!==at)&&(Zt=$n(rn,yt,1,!1,void 0,Oi))}Zt&&!(Oi&2)&&yt.flags&2097152&&!gD(yt)&&at.flags&2621440?(Zt&=Sa(at,yt,Xt,void 0,!1,0),Zt&&JS(at)&&_r(at)&8192&&(Zt&=co(at,yt,!1,Xt,0))):Zt&&Mae(yt)&&!rw(yt)&&at.flags&2097152&&S_(at).flags&3670016&&!Lt(at.types,rn=>rn===yt||!!(_r(rn)&262144))&&(Zt&=Sa(at,yt,Xt,void 0,!0,Oi))}return Zt&&Cr(kt),Zt}function xm(at,yt){let Xt=S_(KT(yt)),Oi=[];return q2e(Xt,8576,!1,kt=>void Oi.push(Oo(at,uB(yt.mapper,g0(yt),kt)))),Fr(Oi)}function uw(at,yt,Xt,Oi,kt){let Zt,rn,Gt=!1,Hi=at.flags,Nn=yt.flags;if(m===Cp){if(Hi&3145728){let yn=gu(at,yt);return yn&&(yn&=gu(yt,at)),yn}if(Hi&4194304)return $n(at.type,yt.type,3,!1);if(Hi&8388608&&(Zt=$n(at.objectType,yt.objectType,3,!1))&&(Zt&=$n(at.indexType,yt.indexType,3,!1))||Hi&16777216&&at.root.isDistributive===yt.root.isDistributive&&(Zt=$n(at.checkType,yt.checkType,3,!1))&&(Zt&=$n(at.extendsType,yt.extendsType,3,!1))&&(Zt&=$n(tw(at),tw(yt),3,!1))&&(Zt&=$n(iw(at),iw(yt),3,!1))||Hi&33554432&&(Zt=$n(at.baseType,yt.baseType,3,!1))&&(Zt&=$n(at.constraint,yt.constraint,3,!1)))return Zt;if(!(Hi&524288))return 0}else if(Hi&3145728||Nn&3145728){if(Zt=$d(at,yt,Xt,Oi))return Zt;if(!(Hi&465829888||Hi&524288&&Nn&1048576||Hi&2097152&&Nn&467402752))return 0}if(Hi&17301504&&at.aliasSymbol&&at.aliasTypeArguments&&at.aliasSymbol===yt.aliasSymbol&&!(qae(at)||qae(yt))){let yn=yQe(at.aliasSymbol);if(yn===F)return 1;let br=Po(at.aliasSymbol).typeParameters,no=by(br),Mr=uC(at.aliasTypeArguments,br,no,Jn(at.aliasSymbol.valueDeclaration)),ms=uC(yt.aliasTypeArguments,br,no,Jn(at.aliasSymbol.valueDeclaration)),Pc=An(Mr,ms,yn,Oi);if(Pc!==void 0)return Pc}if(DQe(at)&&!at.target.readonly&&(Zt=$n(fl(at)[0],yt,1))||DQe(yt)&&(yt.target.readonly||E$(Cf(at)||at))&&(Zt=$n(at,fl(yt)[0],2)))return Zt;if(Nn&262144){if(_r(at)&32&&!at.declaration.nameType&&$n(Sy(yt),Gm(at),3)&&!(dv(at)&4)){let yn=Tb(at),br=Ip(yt,g0(at));if(Zt=$n(yn,br,3,Xt))return Zt}if(m===tm&&Hi&262144){let yn=V_(at);if(yn)for(;yn&&Dh(yn,br=>!!(br.flags&262144));){if(Zt=$n(yn,yt,1,!1))return Zt;yn=V_(yn)}return 0}}else if(Nn&4194304){let yn=yt.type;if(Hi&4194304&&(Zt=$n(yn,at.type,3,!1)))return Zt;if(Ba(yn)){if(Zt=$n(at,wYe(yn),2,Xt))return Zt}else{let br=$2e(yn);if(br){if($n(at,Sy(br,yt.indexFlags|4),2,Xt)===-1)return-1}else if(Dp(yn)){let no=WS(yn),Mr=Gm(yn),ms;if(no&&F6(yn)){let Pc=xm(no,yn);ms=Fr([Pc,no])}else ms=no||Mr;if($n(at,ms,2,Xt)===-1)return-1}}}else if(Nn&8388608){if(Hi&8388608){if((Zt=$n(at.objectType,yt.objectType,3,Xt))&&(Zt&=$n(at.indexType,yt.indexType,3,Xt)),Zt)return Zt;Xt&&(rn=ee)}if(m===em||m===tm){let yn=yt.objectType,br=yt.indexType,no=Cf(yn)||yn,Mr=Cf(br)||br;if(!gD(no)&&!yD(Mr)){let ms=4|(no!==yn?2:0),Pc=fC(no,Mr,ms);if(Pc){if(Xt&&rn&&Cr(kt),Zt=$n(at,Pc,2,Xt,void 0,Oi))return Zt;Xt&&rn&&ee&&(ee=Ti([rn])<=Ti([ee])?rn:ee)}}}Xt&&(rn=void 0)}else if(Dp(yt)&&m!==Cp){let yn=!!yt.declaration.nameType,br=Tb(yt),no=dv(yt);if(!(no&8)){if(!yn&&br.flags&8388608&&br.objectType===at&&br.indexType===g0(yt))return-1;if(!Dp(at)){let Mr=yn?WS(yt):Gm(yt),ms=Sy(at,2),Pc=no&4,Tf=Pc?Zq(Mr,ms):void 0;if(Pc?!(Tf.flags&131072):$n(Mr,ms,3)){let ap=Tb(yt),dg=g0(yt),dw=_F(ap,-98305);if(!yn&&dw.flags&8388608&&dw.indexType===dg){if(Zt=$n(at,dw.objectType,2,Xt))return Zt}else{let k0=yn?Tf||Mr:Tf?wa([Tf,dg]):dg,KS=Ip(at,k0);if(Zt=$n(KS,ap,3,Xt))return Zt}}rn=ee,Cr(kt)}}}else if(Nn&16777216){if(FA(yt,vt,xi,10))return 3;let yn=yt;if(!yn.root.inferTypeParameters&&!MWt(yn.root)&&!(at.flags&16777216&&at.root===yn.root)){let br=!fa(fB(yn.checkType),fB(yn.extendsType)),no=!br&&fa(bD(yn.checkType),bD(yn.extendsType));if((Zt=br?-1:$n(at,tw(yn),2,!1,void 0,Oi))&&(Zt&=no?-1:$n(at,iw(yn),2,!1,void 0,Oi),Zt))return Zt}}else if(Nn&134217728){if(Hi&134217728){if(m===tm)return lVt(at,yt)?0:-1;Oo(at,ka)}if(lce(at,yt))return-1}else if(yt.flags&268435456&&!(at.flags&268435456)&&cce(at,yt))return-1;if(Hi&8650752){if(!(Hi&8388608&&Nn&8388608)){let yn=fD(at)||Y;if(Zt=$n(yn,yt,1,!1,void 0,Oi))return Zt;if(Zt=$n(om(yn,at),yt,1,Xt&&yn!==Y&&!(Nn&Hi&262144),void 0,Oi))return Zt;if(Y2e(at)){let br=fD(at.indexType);if(br&&(Zt=$n(Ip(at.objectType,br),yt,1,Xt)))return Zt}}}else if(Hi&4194304){let yn=NEe(at.type,at.indexFlags)&&_r(at.type)&32;if(Zt=$n(ai,yt,1,Xt&&!yn))return Zt;if(yn){let br=at.type,no=WS(br),Mr=no&&F6(br)?xm(no,br):no||Gm(br);if(Zt=$n(Mr,yt,1,Xt))return Zt}}else if(Hi&134217728&&!(Nn&524288)){if(!(Nn&134217728)){let yn=Cf(at);if(yn&&yn!==at&&(Zt=$n(yn,yt,1,Xt)))return Zt}}else if(Hi&268435456)if(Nn&268435456){if(at.symbol!==yt.symbol)return 0;if(Zt=$n(at.type,yt.type,3,Xt))return Zt}else{let yn=Cf(at);if(yn&&(Zt=$n(yn,yt,1,Xt)))return Zt}else if(Hi&16777216){if(FA(at,Ne,jt,10))return 3;if(Nn&16777216){let no=at.root.inferTypeParameters,Mr=at.extendsType,ms;if(no){let Pc=bB(no,void 0,0,ko);Ob(Pc.inferences,yt.extendsType,Mr,1536),Mr=Oo(Mr,Pc.mapper),ms=Pc.mapper}if(S1(Mr,yt.extendsType)&&($n(at.checkType,yt.checkType,3)||$n(yt.checkType,at.checkType,3))&&((Zt=$n(Oo(tw(at),ms),tw(yt),3,Xt))&&(Zt&=$n(iw(at),iw(yt),3,Xt)),Zt))return Zt}let yn=G2e(at);if(yn&&(Zt=$n(yn,yt,1,Xt)))return Zt;let br=!(Nn&16777216)&&n$(at)?LXe(at):void 0;if(br&&(Cr(kt),Zt=$n(br,yt,1,Xt)))return Zt}else{if(m!==l1&&m!==Hm&&VBt(yt)&&Nb(at))return-1;if(Dp(yt))return Dp(at)&&(Zt=ii(at,yt,Xt))?Zt:0;let yn=!!(Hi&402784252);if(m!==Cp)at=S_(at),Hi=at.flags;else if(Dp(at))return 0;if(_r(at)&4&&_r(yt)&4&&at.target===yt.target&&!Ba(at)&&!(qae(at)||qae(yt))){if(Yae(at))return-1;let br=ZEe(at.target);if(br===F)return 1;let no=An(fl(at),fl(yt),br,Oi);if(no!==void 0)return no}else{if(cF(yt)?Pp(at,rw):Eh(yt)&&Pp(at,br=>Ba(br)&&!br.target.readonly))return m!==Cp?$n(Zk(at,ei)||je,Zk(yt,ei)||je,3,Xt):0;if(mC(at)&&Ba(yt)&&!mC(yt)){let br=fv(at);if(br!==at)return $n(br,yt,1,Xt)}else if((m===l1||m===Hm)&&Nb(yt)&&_r(yt)&8192&&!Nb(at))return 0}if(Hi&2621440&&Nn&524288){let br=Xt&&ee===kt.errorInfo&&!yn;if(Zt=Sa(at,yt,br,void 0,!1,Oi),Zt&&(Zt&=Zc(at,yt,0,br,Oi),Zt&&(Zt&=Zc(at,yt,1,br,Oi),Zt&&(Zt&=co(at,yt,yn,br,Oi)))),Gt&&Zt)ee=rn||ee||kt.errorInfo;else if(Zt)return Zt}if(Hi&2621440&&Nn&1048576){let br=_F(yt,36175872);if(br.flags&1048576){let no=Wi(at,br);if(no)return no}}}return 0;function Ti(yn){return yn?Of(yn,(br,no)=>br+1+Ti(no.next),0):0}function An(yn,br,no,Mr){if(Zt=Z6(yn,br,no,Xt,Mr))return Zt;if(Lt(no,Pc=>!!(Pc&24))){rn=void 0,Cr(kt);return}let ms=br&&kzt(br,no);if(Gt=!ms,no!==F&&!ms){if(Gt&&!(Xt&&Lt(no,Pc=>(Pc&7)===0)))return 0;rn=ee,Cr(kt)}}}function ii(at,yt,Xt){if(m===tm||(m===Cp?dv(at)===dv(yt):tF(at)<=tF(yt))){let kt,Zt=Gm(yt),rn=Oo(Gm(at),tF(at)<0?tf:ka);if(kt=$n(Zt,rn,3,Xt)){let Gt=Np([g0(at)],[g0(yt)]);if(Oo(WS(at),Gt)===Oo(WS(yt),Gt))return kt&$n(Oo(Tb(at),Gt),Tb(yt),3,Xt)}}return 0}function Wi(at,yt){var Xt;let Oi=yc(at),kt=qQe(Oi,yt);if(!kt)return 0;let Zt=1;for(let An of kt)if(Zt*=BVt(cC(An)),Zt>25)return(Xt=jn)==null||Xt.instant(jn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:at.id,targetId:yt.id,numCombinations:Zt}),0;let rn=new Array(kt.length),Gt=new Set;for(let An=0;AnAn[no],!1,0,he||m===tm))continue e}jc(Nn,br,ox),yn=!0}if(!yn)return 0}let Ti=-1;for(let An of Nn)if(Ti&=Sa(at,An,!1,Gt,!1,0),Ti&&(Ti&=Zc(at,An,0,!1,0),Ti&&(Ti&=Zc(at,An,1,!1,0),Ti&&!(Ba(at)&&Ba(An))&&(Ti&=co(at,An,!1,!1,0)))),!Ti)return Ti;return Ti}function pn(at,yt){if(!yt||at.length===0)return at;let Xt;for(let Oi=0;Oi5?us(S.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Dn(at),Dn(yt),_i(Zt.slice(0,4),rn=>Lo(rn)).join(", "),Zt.length-4):us(S.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Dn(at),Dn(yt),_i(Zt,rn=>Lo(rn)).join(", ")),kt&&ee&&Bn++)}function Sa(at,yt,Xt,Oi,kt,Zt){if(m===Cp)return Na(at,yt,Oi);let rn=-1;if(Ba(yt)){if(rw(at)){if(!yt.target.readonly&&(cF(at)||Ba(at)&&at.target.readonly))return 0;let An=VS(at),yn=VS(yt),br=Ba(at)?at.target.combinedFlags&4:4,no=!!(yt.target.combinedFlags&12),Mr=Ba(at)?at.target.minLength:0,ms=yt.target.minLength;if(!br&&An=ap?yn-1-Math.min(wF,dg):k0,bC=yt.target.elementFlags[cp];if(bC&8&&!(KS&8))return Xt&&us(S.Source_provides_no_match_for_variadic_element_at_position_0_in_target,cp),0;if(KS&8&&!(bC&12))return Xt&&us(S.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,k0,cp),0;if(bC&1&&!(KS&1))return Xt&&us(S.Source_provides_no_match_for_required_element_at_position_0_in_target,cp),0;if(dw&&((KS&12||bC&12)&&(dw=!1),dw&&Oi?.has(""+k0)))continue;let TF=Lb(Pc[k0],!!(KS&bC&2)),qB=Tf[cp],$B=KS&8&&bC&4?Hf(qB):Lb(qB,!!(bC&2)),PD=$n(TF,$B,3,Xt,void 0,Zt);if(!PD)return Xt&&(yn>1||An>1)&&(no&&k0>=ap&&wF>=dg&&ap!==An-dg-1?Ys(S.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,ap,An-dg-1,cp):Ys(S.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,k0,cp)),0;rn&=PD}return rn}if(yt.target.combinedFlags&12)return 0}let Gt=(m===l1||m===Hm)&&!JS(at)&&!Yae(at)&&!Ba(at),Hi=hDe(at,yt,Gt,!1);if(Hi)return Xt&&Ve(at,yt)&&Wr(at,yt,Hi,Gt),0;if(JS(yt)){for(let An of pn(yc(at),Oi))if(!XT(yt,An.escapedName)&&!(Wn(An).flags&32768))return Xt&&us(S.Property_0_does_not_exist_on_type_1,Lo(An),Dn(yt)),0}let Nn=yc(yt),Ti=Ba(at)&&Ba(yt);for(let An of pn(Nn,Oi)){let yn=An.escapedName;if(!(An.flags&4194304)&&(!Ti||Kv(yn)||yn==="length")&&(!kt||An.flags&16777216)){let br=da(at,yn);if(br&&br!==An){let no=ar(at,yt,br,An,cC,Xt,Zt,m===tm);if(!no)return 0;rn&=no}}}return rn}function Na(at,yt,Xt){if(!(at.flags&524288&&yt.flags&524288))return 0;let Oi=pn(zS(at),Xt),kt=pn(zS(yt),Xt);if(Oi.length!==kt.length)return 0;let Zt=-1;for(let rn of Oi){let Gt=XT(yt,rn.escapedName);if(!Gt)return 0;let Hi=tDe(rn,Gt,$n);if(!Hi)return 0;Zt&=Hi}return Zt}function Zc(at,yt,Xt,Oi,kt){var Zt,rn;if(m===Cp)return tr(at,yt,Xt);if(yt===Ua||at===Ua)return-1;let Gt=at.symbol&&Ty(at.symbol.valueDeclaration),Hi=yt.symbol&&Ty(yt.symbol.valueDeclaration),Nn=Bs(at,Gt&&Xt===1?0:Xt),Ti=Bs(yt,Hi&&Xt===1?0:Xt);if(Xt===1&&Nn.length&&Ti.length){let Mr=!!(Nn[0].flags&4),ms=!!(Ti[0].flags&4);if(Mr&&!ms)return Oi&&us(S.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!As(Nn[0],Ti[0],Oi))return 0}let An=-1,yn=Xt===1?vi:Ie,br=_r(at),no=_r(yt);if(br&64&&no&64&&at.symbol===yt.symbol||br&4&&no&4&&at.target===yt.target){B.assertEqual(Nn.length,Ti.length);for(let Mr=0;MrXk(ap,void 0,262144,Xt);return us(S.Type_0_is_not_assignable_to_type_1,Tf(ms),Tf(Pc)),us(S.Types_of_construct_signatures_are_incompatible),An}}else e:for(let Mr of Ti){let ms=ra(),Pc=Oi;for(let Tf of Nn){let ap=Yi(Tf,Mr,!0,Pc,kt,yn(Tf,Mr));if(ap){An&=ap,Cr(ms);continue e}Pc=!1}return Pc&&us(S.Type_0_provides_no_match_for_the_signature_1,Dn(at),Xk(Mr,void 0,void 0,Xt)),0}return An}function Ve(at,yt){let Xt=o$(at,0),Oi=o$(at,1),kt=zS(at);return(Xt.length||Oi.length)&&!kt.length?!!(Bs(yt,0).length&&Xt.length||Bs(yt,1).length&&Oi.length):!0}function Ie(at,yt){return at.parameters.length===0&&yt.parameters.length===0?(Xt,Oi)=>Ys(S.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Dn(Xt),Dn(Oi)):(Xt,Oi)=>Ys(S.Call_signature_return_types_0_and_1_are_incompatible,Dn(Xt),Dn(Oi))}function vi(at,yt){return at.parameters.length===0&&yt.parameters.length===0?(Xt,Oi)=>Ys(S.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Dn(Xt),Dn(Oi)):(Xt,Oi)=>Ys(S.Construct_signature_return_types_0_and_1_are_incompatible,Dn(Xt),Dn(Oi))}function Yi(at,yt,Xt,Oi,kt,Zt){let rn=m===l1?16:m===Hm?24:0;return $Ee(Xt?sB(at):at,Xt?sB(yt):yt,rn,Oi,us,Zt,Gt,ka);function Gt(Hi,Nn,Ti){return $n(Hi,Nn,3,Ti,void 0,kt)}}function tr(at,yt,Xt){let Oi=Bs(at,Xt),kt=Bs(yt,Xt);if(Oi.length!==kt.length)return 0;let Zt=-1;for(let rn=0;rnHi.keyType===Qe),Gt=-1;for(let Hi of Zt){let Nn=m!==Hm&&!Xt&&rn&&Hi.type.flags&1?-1:Dp(at)&&rn?$n(Tb(at),Hi.type,3,Oi):qo(at,Hi,Oi,kt);if(!Nn)return 0;Gt&=Nn}return Gt}function qo(at,yt,Xt,Oi){let kt=nB(at,yt.keyType);return kt?Ln(kt,yt,Xt,Oi):!(Oi&1)&&(m!==Hm||_r(at)&8192)&&nce(at)?On(at,yt,Xt,Oi):(Xt&&us(S.Index_signature_for_type_0_is_missing_in_type_1,Dn(yt.keyType),Dn(at)),0)}function ps(at,yt){let Xt=r_(at),Oi=r_(yt);if(Xt.length!==Oi.length)return 0;for(let kt of Oi){let Zt=y1(at,kt.keyType);if(!(Zt&&$n(Zt.type,kt.type,3)&&Zt.isReadonly===kt.isReadonly))return 0}return-1}function As(at,yt,Xt){if(!at.declaration||!yt.declaration)return!0;let Oi=iN(at.declaration,6),kt=iN(yt.declaration,6);return kt===2||kt===4&&Oi!==2||kt!==4&&!Oi?!0:(Xt&&us(S.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Y8(Oi),Y8(kt)),!1)}}function XEe(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!re(n.types,XEe);if(n.flags&465829888){let d=fD(n);if(d&&d!==n)return XEe(d)}return b0(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function hQe(n,d){return Ba(n)&&Ba(d)?F:yc(d).filter(m=>Jae(Mu(n,m.escapedName),Wn(m)))}function Jae(n,d){return!!n&&!!d&&hu(n,32768)&&!!yB(d)}function xzt(n){return yc(n).filter(d=>yB(Wn(d)))}function gQe(n,d,m=JEe){return Uit(n,d,m)||RXt(n,d)||BXt(n,d)||jXt(n,d)||WXt(n,d)}function YEe(n,d,m){let v=n.types,C=v.map(L=>L.flags&402784252?0:-1);for(let[L,J]of d){let ee=!1;for(let oe=0;oe!!m(Me,pe))?ee=!0:C[oe]=3}for(let oe=0;oeC[J]),0):n;return E.flags&131072?n:E}function QEe(n){if(n.flags&524288){let d=y0(n);return d.callSignatures.length===0&&d.constructSignatures.length===0&&d.indexInfos.length===0&&d.properties.length>0&&Et(d.properties,m=>!!(m.flags&16777216))}return n.flags&33554432?QEe(n.baseType):n.flags&2097152?Et(n.types,QEe):!1}function Czt(n,d,m){for(let v of yc(n))if(Ece(d,v.escapedName,m))return!0;return!1}function ZEe(n){return n===Qt||n===hn||n.objectFlags&8?G:vQe(n.symbol,n.typeParameters)}function yQe(n){return vQe(n,Po(n).typeParameters)}function vQe(n,d=F){var m,v;let C=Po(n);if(!C.variances){(m=jn)==null||m.push(jn.Phase.CheckTypes,"getVariancesWorker",{arity:d.length,id:rf(Qc(n))});let E=so,L=dr;so||(so=!0,dr=qi.length),C.variances=F;let J=[];for(let ee of d){let oe=eDe(ee),pe=oe&16384?oe&8192?0:1:oe&8192?2:void 0;if(pe===void 0){let Me=!1,Ne=!1,vt=fo;fo=xi=>xi?Ne=!0:Me=!0;let Ot=k$(n,ee,nd),jt=k$(n,ee,bp);pe=(fa(jt,Ot)?1:0)|(fa(Ot,jt)?2:0),pe===3&&fa(k$(n,ee,Fl),Ot)&&(pe=4),fo=vt,(Me||Ne)&&(Me&&(pe|=8),Ne&&(pe|=16))}J.push(pe)}E||(so=!1,dr=L),C.variances=J,(v=jn)==null||v.pop({variances:J.map(B.formatVariance)})}return C.variances}function k$(n,d,m){let v=n2(d,m),C=Qc(n);if(le(C))return C;let E=n.flags&524288?B6(n,b1(Po(n).typeParameters,v)):Eb(C,b1(C.typeParameters,v));return ye.add(rf(E)),E}function qae(n){return ye.has(rf(n))}function eDe(n){var d;return Of((d=n.symbol)==null?void 0:d.declarations,(m,v)=>m|__(v),0)&28672}function kzt(n,d){for(let m=0;m!!(d.flags&262144)||$ae(d))}function Ezt(n,d,m,v){let C=[],E="",L=ee(n,0),J=ee(d,0);return`${E}${L},${J}${m}`;function ee(oe,pe=0){let Me=""+oe.target.id;for(let Ne of fl(oe)){if(Ne.flags&262144){if(v||wzt(Ne)){let vt=C.indexOf(Ne);vt<0&&(vt=C.length,C.push(Ne)),Me+="="+vt;continue}E="*"}else if(pe<4&&$ae(Ne)){Me+="<"+ee(Ne,pe+1)+">";continue}Me+="-"+Ne.id}return Me}}function Gae(n,d,m,v,C){if(v===Cp&&n.id>d.id){let L=n;n=d,d=L}let E=m?":"+m:"";return $ae(n)&&$ae(d)?Ezt(n,d,E,C):`${n.id},${d.id}${E}`}function w$(n,d){if(_u(n)&6){for(let m of n.links.containingType.types){let v=da(m,n.escapedName),C=v&&w$(v,d);if(C)return C}return}return d(n)}function OA(n){return n.parent&&n.parent.flags&32?Qc(bm(n)):void 0}function Kae(n){let d=OA(n),m=d&&dl(d)[0];return m&&Mu(m,n.escapedName)}function Dzt(n,d){return w$(n,m=>{let v=OA(m);return v?A6(v,d):!1})}function Izt(n,d){return!w$(d,m=>lh(m)&4?!Dzt(n,OA(m)):!1)}function bQe(n,d,m){return w$(d,v=>lh(v,m)&4?!A6(n,OA(v)):!1)?void 0:n}function FA(n,d,m,v=3){if(m>=v){if((_r(n)&96)===96&&(n=SQe(n)),n.flags&2097152)return Lt(n.types,J=>FA(J,d,m,v));let C=Xae(n),E=0,L=0;for(let J=0;J=L&&(E++,E>=v))return!0;L=ee.id}}}return!1}function SQe(n){let d;for(;(_r(n)&96)===96&&(d=KT(n))&&(d.symbol||d.flags&2097152&&Lt(d.types,m=>!!m.symbol));)n=d;return n}function xQe(n,d){return(_r(n)&96)===96&&(n=SQe(n)),n.flags&2097152?Lt(n.types,m=>xQe(m,d)):Xae(n)===d}function Xae(n){if(n.flags&524288&&!yDe(n)){if(_r(n)&4&&n.node)return n.node;if(n.symbol&&!(_r(n)&16&&n.symbol.flags&32))return n.symbol;if(Ba(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function Nzt(n,d){return tDe(n,d,_B)!==0}function tDe(n,d,m){if(n===d)return-1;let v=lh(n)&6,C=lh(d)&6;if(v!==C)return 0;if(v){if(Q6(n)!==Q6(d))return 0}else if((n.flags&16777216)!==(d.flags&16777216))return 0;return C0(n)!==C0(d)?0:m(Wn(n),Wn(d))}function Azt(n,d,m){let v=Lp(n),C=Lp(d),E=Ey(n),L=Ey(d),J=hv(n),ee=hv(d);return!!(v===C&&E===L&&J===ee||m&&E<=L)}function T$(n,d,m,v,C,E){if(n===d)return-1;if(!Azt(n,d,m)||K(n.typeParameters)!==K(d.typeParameters))return 0;if(d.typeParameters){let ee=Np(n.typeParameters,d.typeParameters);for(let oe=0;oed|(m.flags&1048576?CQe(m.types):m.flags),0)}function Ozt(n){if(n.length===1)return n[0];let d=he?Uo(n,v=>qu(v,C=>!(C.flags&98304))):n,m=Lzt(d)?Fr(d):Of(d,(v,C)=>o2(v,C)?C:v);return d===n?m:I$(m,CQe(n)&98304)}function Fzt(n){return Of(n,(d,m)=>o2(m,d)?m:d)}function Eh(n){return!!(_r(n)&4)&&(n.target===Qt||n.target===hn)}function cF(n){return!!(_r(n)&4)&&n.target===hn}function rw(n){return Eh(n)||Ba(n)}function E$(n){return Eh(n)&&!cF(n)||Ba(n)&&!n.target.readonly}function D$(n){return Eh(n)?fl(n)[0]:void 0}function US(n){return Eh(n)||!(n.flags&98304)&&fa(n,Ju)}function iDe(n){return E$(n)||!(n.flags&98305)&&fa(n,Mc)}function nDe(n){if(!(_r(n)&4)||!(_r(n.target)&3))return;if(_r(n)&33554432)return _r(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;let d=n.target;if(_r(d)&1){let C=fr(d);if(C&&C.expression.kind!==80&&C.expression.kind!==211)return}let m=dl(d);if(m.length!==1||lC(n.symbol).size)return;let v=K(d.typeParameters)?Oo(m[0],Np(d.typeParameters,fl(n).slice(0,d.typeParameters.length))):m[0];return K(fl(n))>K(d.typeParameters)&&(v=om(v,pa(fl(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=v}function kQe(n){return he?n===gi:n===Bt}function Yae(n){let d=D$(n);return!!d&&kQe(d)}function lF(n){let d;return Ba(n)||!!da(n,"0")||US(n)&&!!(d=Mu(n,"length"))&&Pp(d,m=>!!(m.flags&256))}function Qae(n){return US(n)||lF(n)}function wQe(n,d){let m=Mu(n,""+d);if(m)return m;if(Pp(n,Ba))return IQe(n,d,$.noUncheckedIndexedAccess?$e:void 0)}function Mzt(n){return!(n.flags&240544)}function b0(n){return!!(n.flags&109472)}function TQe(n){let d=fv(n);return d.flags&2097152?Lt(d.types,b0):b0(d)}function Rzt(n){return n.flags&2097152&&St(n.types,b0)||n}function hB(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Et(n.types,b0):b0(n)}function Ab(n){return n.flags&1056?bae(n):n.flags&402653312?Qe:n.flags&256?ei:n.flags&2048?In:n.flags&512?ti:n.flags&1048576?Bzt(n):n}function Bzt(n){let d=`B${rf(n)}`;return l0(d)??ES(d,Nl(n,Ab))}function rDe(n){return n.flags&402653312?Qe:n.flags&288?ei:n.flags&2048?In:n.flags&512?ti:n.flags&1048576?Nl(n,rDe):n}function ow(n){return n.flags&1056&&i2(n)?bae(n):n.flags&128&&i2(n)?Qe:n.flags&256&&i2(n)?ei:n.flags&2048&&i2(n)?In:n.flags&512&&i2(n)?ti:n.flags&1048576?Nl(n,ow):n}function EQe(n){return n.flags&8192?li:n.flags&1048576?Nl(n,EQe):n}function oDe(n,d){return Hce(n,d)||(n=EQe(ow(n))),x_(n)}function jzt(n,d,m){if(n&&b0(n)){let v=d?m?MB(d):d:void 0;n=oDe(n,v)}return n}function sDe(n,d,m,v){if(n&&b0(n)){let C=d?u2(m,d,v):void 0;n=oDe(n,C)}return n}function Ba(n){return!!(_r(n)&4&&n.target.objectFlags&8)}function mC(n){return Ba(n)&&!!(n.target.combinedFlags&8)}function DQe(n){return mC(n)&&n.target.elementFlags.length===1}function Zae(n){return uF(n,n.target.fixedLength)}function IQe(n,d,m){return Nl(n,v=>{let C=v,E=Zae(C);return E?m&&d>=wEe(C.target)?Fr([E,m]):E:$e})}function Wzt(n){let d=Zae(n);return d&&Hf(d)}function uF(n,d,m=0,v=!1,C=!1){let E=VS(n)-m;if(d(m&12)===(d.target.elementFlags[v]&12))}function NQe({value:n}){return n.base10Value==="0"}function AQe(n){return qu(n,d=>S0(d,4194304))}function Vzt(n){return Nl(n,Hzt)}function Hzt(n){return n.flags&4?dt:n.flags&8?qt:n.flags&64?bi:n===_n||n===Ji||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&NQe(n)?n:Si}function I$(n,d){let m=d&~n.flags&98304;return m===0?n:Fr(m===32768?[n,$e]:m===65536?[n,Wt]:[n,$e,Wt])}function hC(n,d=!1){B.assert(he);let m=d?rt:$e;return n===m||n.flags&1048576&&n.types[0]===m?n:Fr([n,m])}function Uzt(n){return Zp||(Zp=W6("NonNullable",524288,void 0)||ct),Zp!==ct?B6(Zp,[n]):wa([n,Ts])}function Pb(n){return he?kD(n,2097152):n}function PQe(n){return he?Fr([n,fe]):n}function ece(n){return he?dce(n,fe):n}function tce(n,d,m){return m?N3(d)?hC(n):PQe(n):n}function gB(n,d){return dz(d)?Pb(n):qf(d)?ece(n):n}function Lb(n,d){return ke&&d?dce(n,se):n}function yB(n){return n===se||!!(n.flags&1048576)&&n.types[0]===se}function ice(n){return ke?dce(n,se):lg(n,524288)}function Jzt(n,d){return(n.flags&524)!==0&&(d.flags&28)!==0}function nce(n){let d=_r(n);return n.flags&2097152?Et(n.types,nce):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!ale(n))||!!(d&4194304)||!!(d&1024&&nce(n.source))}function SD(n,d){let m=Aa(n.flags,n.escapedName,_u(n)&8);m.declarations=n.declarations,m.parent=n.parent,m.links.type=d,m.links.target=n,n.valueDeclaration&&(m.valueDeclaration=n.valueDeclaration);let v=Po(n).nameType;return v&&(m.links.nameType=v),m}function qzt(n,d){let m=ta();for(let v of zS(n)){let C=Wn(v),E=d(C);m.set(v.escapedName,E===C?v:SD(v,E))}return m}function vB(n){if(!(JS(n)&&_r(n)&8192))return n;let d=n.regularType;if(d)return d;let m=n,v=qzt(n,vB),C=Io(m.symbol,v,m.callSignatures,m.constructSignatures,m.indexInfos);return C.flags=m.flags,C.objectFlags|=m.objectFlags&-8193,n.regularType=C,C}function LQe(n,d,m){return{parent:n,propertyName:d,siblings:m,resolvedProperties:void 0}}function OQe(n){if(!n.siblings){let d=[];for(let m of OQe(n.parent))if(JS(m)){let v=XT(m,n.propertyName);v&&wD(Wn(v),C=>{d.push(C)})}n.siblings=d}return n.siblings}function $zt(n){if(!n.resolvedProperties){let d=new Map;for(let m of OQe(n))if(JS(m)&&!(_r(m)&2097152))for(let v of yc(m))d.set(v.escapedName,v);n.resolvedProperties=as(d.values())}return n.resolvedProperties}function Gzt(n,d){if(!(n.flags&4))return n;let m=Wn(n),v=d&&LQe(d,n.escapedName,void 0),C=aDe(m,v);return C===m?n:SD(n,C)}function Kzt(n){let d=Jt.get(n.escapedName);if(d)return d;let m=SD(n,rt);return m.flags|=16777216,Jt.set(n.escapedName,m),m}function Xzt(n,d){let m=ta();for(let C of zS(n))m.set(C.escapedName,Gzt(C,d));if(d)for(let C of $zt(d))m.has(C.escapedName)||m.set(C.escapedName,Kzt(C));let v=Io(n.symbol,m,F,F,Uo(r_(n),C=>_v(C.keyType,Ap(C.type),C.isReadonly)));return v.objectFlags|=_r(n)&266240,v}function Ap(n){return aDe(n,void 0)}function aDe(n,d){if(_r(n)&196608){if(d===void 0&&n.widened)return n.widened;let m;if(n.flags&98305)m=je;else if(JS(n))m=Xzt(n,d);else if(n.flags&1048576){let v=d||LQe(void 0,void 0,n.types),C=Uo(n.types,E=>E.flags&98304?E:aDe(E,v));m=Fr(C,Lt(C,Nb)?2:1)}else n.flags&2097152?m=wa(Uo(n.types,Ap)):rw(n)&&(m=Eb(n.target,Uo(fl(n),Ap)));return m&&d===void 0&&(n.widened=m),m||n}return n}function rce(n){var d;let m=!1;if(_r(n)&65536){if(n.flags&1048576)if(Lt(n.types,Nb))m=!0;else for(let v of n.types)m||(m=rce(v));else if(rw(n))for(let v of fl(n))m||(m=rce(v));else if(JS(n))for(let v of zS(n)){let C=Wn(v);if(_r(C)&65536&&(m=rce(C),!m)){let E=(d=v.declarations)==null?void 0:d.find(L=>{var J;return((J=L.symbol.valueDeclaration)==null?void 0:J.parent)===n.symbol.valueDeclaration});E&&(ot(E,S.Object_literal_s_property_0_implicitly_has_an_1_type,Lo(v),Dn(Ap(C))),m=!0)}}}return m}function sw(n,d,m){let v=Dn(Ap(d));if(Jn(n)&&!yO(en(n),$))return;let C;switch(n.kind){case 226:case 172:case 171:C=Se?S.Member_0_implicitly_has_an_1_type:S.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let E=n;if(et(E.name)){let L=X2(E.name);if((xN(E.parent)||Z0(E.parent)||Qy(E.parent))&&E.parent.parameters.includes(E)&&(ni(E,E.name.escapedText,788968,void 0,!0)||L&&QZ(L))){let J="arg"+E.parent.parameters.indexOf(E),ee=Hc(E.name)+(E.dotDotDotToken?"[]":"");_y(Se,n,S.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,J,ee);return}}C=n.dotDotDotToken?Se?S.Rest_parameter_0_implicitly_has_an_any_type:S.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Se?S.Parameter_0_implicitly_has_an_1_type:S.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(C=S.Binding_element_0_implicitly_has_an_1_type,!Se)return;break;case 317:ot(n,S.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,v);return;case 323:Se&&w4(n.parent)&&ot(n.parent.tagName,S.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,v);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Se&&!n.name){m===3?ot(n,S.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,v):ot(n,S.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,v);return}C=Se?m===3?S._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:S._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:S._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:Se&&ot(n,S.Mapped_object_type_implicitly_has_an_any_template_type);return;default:C=Se?S.Variable_0_implicitly_has_an_1_type:S.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}_y(Se,n,C,Hc(cs(n)),v)}function oce(n,d,m){r(()=>{Se&&_r(d)&65536&&(!m||!JDe(n))&&(rce(d)||sw(n,d,m))})}function cDe(n,d,m){let v=Lp(n),C=Lp(d),E=IB(n),L=IB(d),J=L?C-1:C,ee=E?J:Math.min(v,J),oe=ew(n);if(oe){let pe=ew(d);pe&&m(oe,pe)}for(let pe=0;ped.typeParameter),_i(n.inferences,(d,m)=>()=>(d.isFixed||(eVt(n),sce(n.inferences),d.isFixed=!0),vDe(n,m))))}function Zzt(n){return zEe(_i(n.inferences,d=>d.typeParameter),_i(n.inferences,(d,m)=>()=>vDe(n,m)))}function sce(n){for(let d of n)d.isFixed||(d.inferredType=void 0)}function dDe(n,d,m){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:d,type:m})}function eVt(n){if(n.intraExpressionInferenceSites){for(let{node:d,type:m}of n.intraExpressionInferenceSites){let v=d.kind===174?MZe(d,2):H_(d,2);v&&Ob(n.inferences,m,v)}n.intraExpressionInferenceSites=void 0}}function fDe(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function FQe(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function tVt(n){let d=Di(n.inferences,Y6);return d.length?uDe(_i(d,FQe),n.signature,n.flags,n.compareTypes):void 0}function _De(n){return n&&n.mapper}function gC(n){let d=_r(n);if(d&524288)return!!(d&1048576);let m=!!(n.flags&465829888||n.flags&524288&&!MQe(n)&&(d&4&&(n.node||Lt(fl(n),gC))||d&134217728&&K(n.outerTypeParameters)||d&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||d&12583968)||n.flags&3145728&&!(n.flags&1024)&&!MQe(n)&&Lt(n.types,gC));return n.flags&3899393&&(n.objectFlags|=524288|(m?1048576:0)),m}function MQe(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let d=bl(n.aliasSymbol,265);return!!(d&&Ri(d.parent,m=>m.kind===307?!0:m.kind===267?!1:"quit"))}return!1}function SB(n,d,m=0){return!!(n===d||n.flags&3145728&&Lt(n.types,v=>SB(v,d,m))||m<3&&n.flags&16777216&&(SB(tw(n),d,m+1)||SB(iw(n),d,m+1)))}function iVt(n,d){let m=wh(n);return m?!!m.type&&SB(m.type,d):SB(vc(n),d)}function nVt(n){let d=ta();wD(n,v=>{if(!(v.flags&128))return;let C=Hl(v.value),E=Aa(4,C);E.links.type=je,v.symbol&&(E.declarations=v.symbol.declarations,E.valueDeclaration=v.symbol.valueDeclaration),d.set(C,E)});let m=n.flags&4?[_v(Qe,Ts,!1)]:F;return Io(void 0,d,F,F,m)}function RQe(n,d,m){let v=n.id+","+d.id+","+m.id;if(ku.has(v))return ku.get(v);let C=rVt(n,d,m);return ku.set(v,C),C}function pDe(n){return!(_r(n)&262144)||JS(n)&&Lt(yc(n),d=>pDe(Wn(d)))||Ba(n)&&Lt(e2(n),pDe)}function rVt(n,d,m){if(!(y1(n,Qe)||yc(n).length!==0&&pDe(n)))return;if(Eh(n)){let C=ace(fl(n)[0],d,m);return C?Hf(C,cF(n)):void 0}if(Ba(n)){let C=_i(e2(n),L=>ace(L,d,m));if(!Et(C,L=>!!L))return;let E=dv(d)&4?Uo(n.target.elementFlags,L=>L&2?1:L):n.target.elementFlags;return pv(C,E,n.target.readonly,n.target.labeledElementDeclarations)}let v=M(1040,void 0);return v.source=n,v.mappedType=d,v.constraintType=m,v}function oVt(n){let d=Po(n);return d.type||(d.type=ace(n.links.propertyType,n.links.mappedType,n.links.constraintType)||Y),d.type}function sVt(n,d,m){let v=Ip(m.type,g0(d)),C=Tb(d),E=fDe(v);return Ob([E],n,C),BQe(E)||Y}function ace(n,d,m){let v=n.id+","+d.id+","+m.id;if(Pu.has(v))return Pu.get(v)||Y;qx.push(n),zE.push(d);let C=jk;FA(n,qx,qx.length,2)&&(jk|=1),FA(d,zE,zE.length,2)&&(jk|=2);let E;return jk!==3&&(E=sVt(n,d,m)),qx.pop(),zE.pop(),jk=C,Pu.set(v,E),E}function*mDe(n,d,m,v){let C=yc(d);for(let E of C)if(!SXe(E)&&(m||!(E.flags&16777216||_u(E)&48))){let L=da(n,E.escapedName);if(!L)yield E;else if(v){let J=Wn(E);if(J.flags&109472){let ee=Wn(L);ee.flags&1||x_(ee)===x_(J)||(yield E)}}}}function hDe(n,d,m,v){return I0(mDe(n,d,m,v))}function aVt(n,d){return!(d.target.combinedFlags&8)&&d.target.minLength>n.target.minLength||!(d.target.combinedFlags&12)&&(!!(n.target.combinedFlags&12)||d.target.fixedLengthIA(E,C),n)===n&&cce(n,d)}return!1}function zQe(n,d){if(d.flags&2097152)return Et(d.types,m=>m===Ko||zQe(n,m));if(d.flags&4||fa(n,d))return!0;if(n.flags&128){let m=n.value;return!!(d.flags&8&&WQe(m,!1)||d.flags&64&&QV(m,!1)||d.flags&98816&&m===d.intrinsicName||d.flags&268435456&&cce(sp(m),d)||d.flags&134217728&&lce(n,d))}if(n.flags&134217728){let m=n.texts;return m.length===2&&m[0]===""&&m[1]===""&&fa(n.types[0],d)}return!1}function VQe(n,d){return n.flags&128?HQe([n.value],F,d):n.flags&134217728?Lr(n.texts,d.texts)?_i(n.types,(m,v)=>fa(fv(m),fv(d.types[v]))?m:dVt(m)):HQe(n.texts,n.types,d):void 0}function lce(n,d){let m=VQe(n,d);return!!m&&Et(m,(v,C)=>zQe(v,d.types[C]))}function dVt(n){return n.flags&402653317?n:mD(["",""],[n])}function HQe(n,d,m){let v=n.length-1,C=n[0],E=n[v],L=m.texts,J=L.length-1,ee=L[0],oe=L[J];if(v===0&&C.length0){let Pn=Ne,Bn=vt;for(;Bn=Ot(Pn).indexOf(Pi,Bn),!(Bn>=0);){if(Pn++,Pn===n.length)return;Bn=0}jt(Pn,Bn),vt+=Pi.length}else if(vt!sn($n,ga)):ln,ss?Di(kn,ga=>!sn(ss,ga)):kn]}function Pn(ln,kn,ko){let $n=ln.length!!Ni(ss));if(!$n||kn&&$n!==kn)return;kn=$n}return kn}function wr(ln,kn,ko){let $n=0;if(ko&1048576){let ss,ga=ln.flags&1048576?ln.types:[ln],pl=new Array(ga.length),ru=!1;for(let Va of kn)if(Ni(Va))ss=Va,$n++;else for(let $d=0;$dpl[gu]?void 0:$d);if(Va.length){Ne(Fr(Va),ss);return}}}else for(let ss of kn)Ni(ss)?$n++:Ne(ln,ss);if(ko&2097152?$n===1:$n>0)for(let ss of kn)Ni(ss)&&vt(ln,ss,1)}function Qr(ln,kn,ko){if(ko.flags&1048576||ko.flags&2097152){let $n=!1;for(let ss of ko.types)$n=Qr(ln,kn,ss)||$n;return $n}if(ko.flags&4194304){let $n=Ni(ko.type);if($n&&!$n.isFixed&&!jQe(ln)){let ss=RQe(ln,kn,ko);ss&&vt(ss,$n.typeParameter,_r(ln)&262144?16:8)}return!0}if(ko.flags&262144){vt(Sy(ln,ln.pattern?2:0),ko,32);let $n=fD(ko);if($n&&Qr(ln,kn,$n))return!0;let ss=_i(yc(ln),Wn),ga=_i(r_(ln),pl=>pl!==Bi?pl.type:Si);return Ne(Fr(Fo(ss,ga)),Tb(kn)),!0}return!1}function Cr(ln,kn){if(ln.flags&16777216)Ne(ln.checkType,kn.checkType),Ne(ln.extendsType,kn.extendsType),Ne(tw(ln),tw(kn)),Ne(iw(ln),iw(kn));else{let ko=[tw(kn),iw(kn)];jt(ln,ko,kn.flags,C?64:0)}}function ra(ln,kn){let ko=VQe(ln,kn),$n=kn.types;if(ko||Et(kn.texts,ss=>ss.length===0))for(let ss=0;ss<$n.length;ss++){let ga=ko?ko[ss]:Si,pl=$n[ss];if(ga.flags&128&&pl.flags&8650752){let ru=Ni(pl),Va=ru?Cf(ru.typeParameter):void 0;if(Va&&!pc(Va)){let $d=Va.flags&1048576?Va.types:[Va],gu=Of($d,(qc,Ym)=>qc|Ym.flags,0);if(!(gu&4)){let qc=ga.value;gu&296&&!WQe(qc,!0)&&(gu&=-297),gu&2112&&!QV(qc,!0)&&(gu&=-2113);let Ym=Of($d,(Eu,Ru)=>Ru.flags&gu?Eu.flags&4?Eu:Ru.flags&4?ga:Eu.flags&134217728?Eu:Ru.flags&134217728&&lce(ga,Ru)?ga:Eu.flags&268435456?Eu:Ru.flags&268435456&&qc===BYe(Ru.symbol,qc)?ga:Eu.flags&128?Eu:Ru.flags&128&&Ru.value===qc?Ru:Eu.flags&8?Eu:Ru.flags&8?Pg(+qc):Eu.flags&32?Eu:Ru.flags&32?Pg(+qc):Eu.flags&256?Eu:Ru.flags&256&&Ru.value===+qc?Ru:Eu.flags&64?Eu:Ru.flags&64?uVt(qc):Eu.flags&2048?Eu:Ru.flags&2048&&rT(Ru.value)===qc?Ru:Eu.flags&16?Eu:Ru.flags&16?qc==="true"?Dt:qc==="false"?Ji:ti:Eu.flags&512?Eu:Ru.flags&512&&Ru.intrinsicName===qc?Ru:Eu.flags&32768?Eu:Ru.flags&32768&&Ru.intrinsicName===qc?Ru:Eu.flags&65536?Eu:Ru.flags&65536&&Ru.intrinsicName===qc?Ru:Eu:Eu,Si);if(!(Ym.flags&131072)){Ne(Ym,pl);continue}}}}Ne(ga,pl)}}function Ys(ln,kn){Ne(Gm(ln),Gm(kn)),Ne(Tb(ln),Tb(kn));let ko=WS(ln),$n=WS(kn);ko&&$n&&Ne(ko,$n)}function _l(ln,kn){var ko,$n;if(_r(ln)&4&&_r(kn)&4&&(ln.target===kn.target||Eh(ln)&&Eh(kn))){Pn(fl(ln),fl(kn),ZEe(ln.target));return}if(Dp(ln)&&Dp(kn)&&Ys(ln,kn),_r(kn)&32&&!kn.declaration.nameType){let ss=Gm(kn);if(Qr(ln,kn,ss))return}if(!cVt(ln,kn)){if(rw(ln)){if(Ba(kn)){let ss=VS(ln),ga=VS(kn),pl=fl(kn),ru=kn.target.elementFlags;if(Ba(ln)&&zzt(ln,kn)){for(let gu=0;gu0){let ga=Bs(kn,ko),pl=ga.length;for(let ru=0;ru1){let d=Di(n,yDe);if(d.length){let m=Fr(d,2);return Fo(Di(n,v=>!yDe(v)),[m])}}return n}function gVt(n){return n.priority&416?wa(n.contraCandidates):Fzt(n.contraCandidates)}function yVt(n,d){let m=hVt(n.candidates),v=mVt(n.typeParameter)||_D(n.typeParameter),C=!v&&n.topLevel&&(n.isFixed||!iVt(d,n.typeParameter)),E=v?Uo(m,x_):C?Uo(m,ow):m,L=n.priority&416?Fr(E,2):Ozt(E);return Ap(L)}function vDe(n,d){let m=n.inferences[d];if(!m.inferredType){let v,C;if(n.signature){let L=m.candidates?yVt(m,n.signature):void 0,J=m.contraCandidates?gVt(m):void 0;if(L||J){let ee=L&&(!J||!(L.flags&131073)&&Lt(m.contraCandidates,oe=>fa(L,oe))&&Et(n.inferences,oe=>oe!==m&&V_(oe.typeParameter)!==m.typeParameter||Et(oe.candidates,pe=>fa(pe,L))));v=ee?L:J,C=ee?J:L}else if(n.flags&1)v=Rn;else{let ee=YT(m.typeParameter);ee&&(v=Oo(ee,$Wt(qWt(n,d),n.nonFixingMapper)))}}else v=BQe(m);m.inferredType=v||bDe(!!(n.flags&2));let E=V_(m.typeParameter);if(E){let L=Oo(E,n.nonFixingMapper);(!v||!n.compareTypes(v,om(L,v)))&&(m.inferredType=C&&n.compareTypes(C,om(L,C))?C:L)}}return m.inferredType}function bDe(n){return n?je:Y}function SDe(n){let d=[];for(let m=0;mvf(d)||$h(d)||L_(d)))}function N$(n,d,m,v){switch(n.kind){case 80:if(!eT(n)){let L=s_(n);return L!==ct?`${v?ac(v):"-1"}|${rf(d)}|${rf(m)}|${Ca(L)}`:void 0}case 110:return`0|${v?ac(v):"-1"}|${rf(d)}|${rf(m)}`;case 235:case 217:return N$(n.expression,d,m,v);case 166:let C=N$(n.left,d,m,v);return C&&`${C}.${n.right.escapedText}`;case 211:case 212:let E=xD(n);if(E!==void 0){let L=N$(n.expression,d,m,v);return L&&`${L}.${E}`}if(nl(n)&&et(n.argumentExpression)){let L=s_(n.argumentExpression);if(MA(L)||kB(L)&&!j$(L)){let J=N$(n.expression,d,m,v);return J&&`${J}.@${Ca(L)}`}}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${ac(n)}#${rf(d)}`}}function of(n,d){switch(d.kind){case 217:case 235:return of(n,d.expression);case 226:return Hd(d)&&of(n,d.left)||Yn(d)&&d.operatorToken.kind===28&&of(n,d.right)}switch(n.kind){case 236:return d.kind===236&&n.keywordToken===d.keywordToken&&n.name.escapedText===d.name.escapedText;case 80:case 81:return eT(n)?d.kind===110:d.kind===80&&s_(n)===s_(d)||(Ur(d)||Wa(d))&&im(s_(n))===sr(d);case 110:return d.kind===110;case 108:return d.kind===108;case 235:case 217:return of(n.expression,d);case 211:case 212:let m=xD(n);if(m!==void 0){let v=il(d)?xD(d):void 0;if(v!==void 0)return v===m&&of(n.expression,d.expression)}if(nl(n)&&nl(d)&&et(n.argumentExpression)&&et(d.argumentExpression)){let v=s_(n.argumentExpression);if(v===s_(d.argumentExpression)&&(MA(v)||kB(v)&&!j$(v)))return of(n.expression,d.expression)}break;case 166:return il(d)&&n.right.escapedText===xD(d)&&of(n.left,d.expression);case 226:return Yn(n)&&n.operatorToken.kind===28&&of(n.right,d)}return!1}function xD(n){if(lr(n))return n.name.escapedText;if(nl(n))return vVt(n);if(Wa(n)){let d=eo(n);return d?Hl(d):void 0}if(To(n))return""+n.parent.parameters.indexOf(n)}function CDe(n){return n.flags&8192?n.escapedName:n.flags&384?Hl(""+n.value):void 0}function vVt(n){return Am(n.argumentExpression)?Hl(n.argumentExpression.text):Xc(n.argumentExpression)?bVt(n.argumentExpression):void 0}function bVt(n){let d=Ml(n,111551,!0);if(!d||!(MA(d)||d.flags&8))return;let m=d.valueDeclaration;if(m===void 0)return;let v=$m(m);if(v){let C=CDe(v);if(C!==void 0)return C}if(iE(m)&&AS(m,n)){let C=HM(m);if(C){let E=Rs(m.parent)?Mo(m):wf(C);return E&&CDe(E)}if(_S(m))return JI(m.name)}}function JQe(n,d){for(;il(n);)if(n=n.expression,of(n,d))return!0;return!1}function CD(n,d){for(;qf(n);)if(n=n.expression,of(n,d))return!0;return!1}function dF(n,d){if(n&&n.flags&1048576){let m=WXe(n,d);if(m&&_u(m)&2)return m.links.isDiscriminantProperty===void 0&&(m.links.isDiscriminantProperty=(m.links.checkFlags&192)===192&&!NA(Wn(m))),!!m.links.isDiscriminantProperty}return!1}function qQe(n,d){let m;for(let v of n)if(dF(d,v.escapedName)){if(m){m.push(v);continue}m=[v]}return m}function SVt(n,d){let m=new Map,v=0;for(let C of n)if(C.flags&61603840){let E=Mu(C,d);if(E){if(!hB(E))return;let L=!1;wD(E,J=>{let ee=rf(x_(J)),oe=m.get(ee);oe?oe!==Y&&(m.set(ee,Y),L=!0):m.set(ee,C)}),L||v++}}return v>=10&&v*2>=n.length?m:void 0}function A$(n){let d=n.types;if(!(d.length<10||_r(n)&32768||er(d,m=>!!(m.flags&59506688))<10)){if(n.keyPropertyName===void 0){let m=re(d,C=>C.flags&59506688?re(yc(C),E=>b0(Wn(E))?E.escapedName:void 0):void 0),v=m&&SVt(d,m);n.keyPropertyName=v?m:"",n.constituentMap=v}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function P$(n,d){var m;let v=(m=n.constituentMap)==null?void 0:m.get(rf(x_(d)));return v!==Y?v:void 0}function $Qe(n,d){let m=A$(n),v=m&&Mu(d,m);return v&&P$(n,v)}function xVt(n,d){let m=A$(n),v=m&&St(d.properties,E=>E.symbol&&E.kind===303&&E.symbol.escapedName===m&&V$(E.initializer)),C=v&&lG(v.initializer);return C&&P$(n,C)}function GQe(n,d){return of(n,d)||JQe(n,d)}function KQe(n,d){if(n.arguments){for(let m of n.arguments)if(GQe(d,m)||CD(m,d))return!0}return!!(n.expression.kind===211&&GQe(d,n.expression.expression))}function kDe(n){return n.id<=0&&(n.id=h5e,h5e++),n.id}function CVt(n,d){if(!(n.flags&1048576))return fa(n,d);for(let m of n.types)if(fa(m,d))return!0;return!1}function kVt(n,d){if(n===d)return n;if(d.flags&131072)return d;let m=`A${rf(n)},${rf(d)}`;return l0(m)??ES(m,wVt(n,d))}function wVt(n,d){let m=qu(n,C=>CVt(d,C)),v=d.flags&512&&i2(d)?Nl(m,PA):m;return fa(d,v)?v:n}function wDe(n){if(_r(n)&256)return!1;let d=y0(n);return!!(d.callSignatures.length||d.constructSignatures.length||d.members.get("bind")&&o2(n,_d))}function H6(n,d){return TDe(n,d)&d}function S0(n,d){return H6(n,d)!==0}function TDe(n,d){n.flags&467927040&&(n=Cf(n)||Y);let m=n.flags;if(m&268435460)return he?16317953:16776705;if(m&134217856){let v=m&128&&n.value==="";return he?v?12123649:7929345:v?12582401:16776705}if(m&40)return he?16317698:16776450;if(m&256){let v=n.value===0;return he?v?12123394:7929090:v?12582146:16776450}if(m&64)return he?16317188:16775940;if(m&2048){let v=NQe(n);return he?v?12122884:7928580:v?12581636:16775940}return m&16?he?16316168:16774920:m&528?he?n===Ji||n===_n?12121864:7927560:n===Ji||n===_n?12580616:16774920:m&524288?d&(he?83427327:83886079)?_r(n)&16&&Nb(n)?he?83427327:83886079:wDe(n)?he?7880640:16728e3:he?7888800:16736160:0:m&16384?9830144:m&32768?26607360:m&65536?42917664:m&12288?he?7925520:16772880:m&67108864?he?7888800:16736160:m&131072?0:m&1048576?Of(n.types,(v,C)=>v|TDe(C,d),0):m&2097152?TVt(n,d):83886079}function TVt(n,d){let m=hu(n,402784252),v=0,C=134217727;for(let E of n.types)if(!(m&&E.flags&524288)){let L=TDe(E,d);v|=L,C&=L}return v&8256|C&134209471}function lg(n,d){return qu(n,m=>S0(m,d))}function kD(n,d){let m=YQe(lg(he&&n.flags&2?rc:n,d));if(he)switch(d){case 524288:return XQe(m,65536,131072,33554432,Wt);case 1048576:return XQe(m,131072,65536,16777216,$e);case 2097152:case 4194304:return Nl(m,v=>S0(v,262144)?Uzt(v):v)}return m}function XQe(n,d,m,v,C){let E=H6(n,50528256);if(!(E&d))return n;let L=Fr([Ts,C]);return Nl(n,J=>S0(J,d)?wa([J,!(E&v)&&S0(J,m)?L:Ts]):J)}function YQe(n){return n===rc?Y:n}function EDe(n,d){return d?Fr([fi(n),wf(d)]):n}function QQe(n,d){var m;let v=Db(d);if(!uh(v))return _t;let C=dh(v);return Mu(n,C)||xB((m=TA(n,C))==null?void 0:m.type)||_t}function ZQe(n,d){return Pp(n,lF)&&wQe(n,d)||xB($S(65,n,$e,void 0))||_t}function xB(n){return n&&($.noUncheckedIndexedAccess?Fr([n,se]):n)}function eZe(n){return Hf($S(65,n,$e,void 0)||_t)}function EVt(n){return n.parent.kind===209&&DDe(n.parent)||n.parent.kind===303&&DDe(n.parent.parent)?EDe(L$(n),n.right):wf(n.right)}function DDe(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function DVt(n,d){return ZQe(L$(n),n.elements.indexOf(d))}function IVt(n){return eZe(L$(n.parent))}function tZe(n){return QQe(L$(n.parent),n.name)}function NVt(n){return EDe(tZe(n),n.objectAssignmentInitializer)}function L$(n){let{parent:d}=n;switch(d.kind){case 249:return Qe;case 250:return mG(d)||_t;case 226:return EVt(d);case 220:return $e;case 209:return DVt(d,n);case 230:return IVt(d);case 303:return tZe(d);case 304:return NVt(d)}return _t}function AVt(n){let d=n.parent,m=nZe(d.parent),v=d.kind===206?QQe(m,n.propertyName||n.name):n.dotDotDotToken?eZe(m):ZQe(m,d.elements.indexOf(n));return EDe(v,n.initializer)}function iZe(n){return rr(n).resolvedType||wf(n)}function PVt(n){return n.initializer?iZe(n.initializer):n.parent.parent.kind===249?Qe:n.parent.parent.kind===250&&mG(n.parent.parent)||_t}function nZe(n){return n.kind===260?PVt(n):AVt(n)}function LVt(n){return n.kind===260&&n.initializer&&Ch(n.initializer)||n.kind!==208&&n.parent.kind===226&&Ch(n.parent.right)}function s2(n){switch(n.kind){case 217:return s2(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return s2(n.left);case 28:return s2(n.right)}}return n}function rZe(n){let{parent:d}=n;return d.kind===217||d.kind===226&&d.operatorToken.kind===64&&d.left===n||d.kind===226&&d.operatorToken.kind===28&&d.right===n?rZe(d):n}function OVt(n){return n.kind===296?x_(wf(n.expression)):Si}function uce(n){let d=rr(n);if(!d.switchTypes){d.switchTypes=[];for(let m of n.caseBlock.clauses)d.switchTypes.push(OVt(m))}return d.switchTypes}function oZe(n){if(Lt(n.caseBlock.clauses,m=>m.kind===296&&!xc(m.expression)))return;let d=[];for(let m of n.caseBlock.clauses){let v=m.kind===296?m.expression.text:void 0;d.push(v&&!sn(d,v)?v:void 0)}return d}function FVt(n,d){return n.flags&1048576?!re(n.types,m=>!sn(d,m)):sn(d,n)}function fF(n,d){return!!(n===d||n.flags&131072||d.flags&1048576&&MVt(n,d))}function MVt(n,d){if(n.flags&1048576){for(let m of n.types)if(!v1(d.types,m))return!1;return!0}return n.flags&1056&&bae(n)===d?!0:v1(d.types,n)}function wD(n,d){return n.flags&1048576?re(n.types,d):d(n)}function Dh(n,d){return n.flags&1048576?Lt(n.types,d):d(n)}function Pp(n,d){return n.flags&1048576?Et(n.types,d):d(n)}function RVt(n,d){return n.flags&3145728?Et(n.types,d):d(n)}function qu(n,d){if(n.flags&1048576){let m=n.types,v=Di(m,d);if(v===m)return n;let C=n.origin,E;if(C&&C.flags&1048576){let L=C.types,J=Di(L,ee=>!!(ee.flags&1048576)||d(ee));if(L.length-J.length===m.length-v.length){if(J.length===1)return J[0];E=TEe(1048576,J)}}return DEe(v,n.objectFlags&16809984,void 0,void 0,E)}return n.flags&131072||d(n)?n:Si}function dce(n,d){return qu(n,m=>m!==d)}function BVt(n){return n.flags&1048576?n.types.length:1}function Nl(n,d,m){if(n.flags&131072)return n;if(!(n.flags&1048576))return d(n);let v=n.origin,C=v&&v.flags&1048576?v.types:n.types,E,L=!1;for(let J of C){let ee=J.flags&1048576?Nl(J,d,m):d(J);L||(L=J!==ee),ee&&(E?E.push(ee):E=[ee])}return L?E&&Fr(E,m?0:1):n}function sZe(n,d,m,v){return n.flags&1048576&&m?Fr(_i(n.types,d),1,m,v):Nl(n,d)}function _F(n,d){return qu(n,m=>(m.flags&d)!==0)}function aZe(n,d){return hu(n,134217804)&&hu(d,402655616)?Nl(n,m=>m.flags&4?_F(d,402653316):hD(m)&&!hu(d,402653188)?_F(d,128):m.flags&8?_F(d,264):m.flags&64?_F(d,2112):m):n}function U6(n){return n.flags===0}function TD(n){return n.flags===0?n.type:n}function J6(n,d){return d?{flags:0,type:n.flags&131072?Rn:n}:n}function jVt(n){let d=M(256);return d.elementType=n,d}function IDe(n){return ht[n.id]||(ht[n.id]=jVt(n))}function cZe(n,d){let m=vB(Ab(lG(d)));return fF(m,n.elementType)?n:IDe(Fr([n.elementType,m]))}function WVt(n){return n.flags&131072?gc:Hf(n.flags&1048576?Fr(n.types,2):n)}function zVt(n){return n.finalArrayType||(n.finalArrayType=WVt(n.elementType))}function O$(n){return _r(n)&256?zVt(n):n}function VVt(n){return _r(n)&256?n.elementType:Si}function HVt(n){let d=!1;for(let m of n)if(!(m.flags&131072)){if(!(_r(m)&256))return!1;d=!0}return d}function lZe(n){let d=rZe(n),m=d.parent,v=lr(m)&&(m.name.escapedText==="length"||m.parent.kind===213&&et(m.name)&&wZ(m.name)),C=m.kind===212&&m.expression===d&&m.parent.kind===226&&m.parent.operatorToken.kind===64&&m.parent.left===m&&!nS(m.parent)&&kf(wf(m.argumentExpression),296);return v||C}function UVt(n){return(Ur(n)||ls(n)||ep(n)||To(n))&&!!(Yu(n)||Jn(n)&&Qb(n)&&n.initializer&&Ex(n.initializer)&&Up(n.initializer))}function fce(n,d){if(n=Fu(n),n.flags&8752)return Wn(n);if(n.flags&7){if(_u(n)&262144){let v=n.links.syntheticOrigin;if(v&&fce(v))return Wn(n)}let m=n.valueDeclaration;if(m){if(UVt(m))return Wn(n);if(Ur(m)&&m.parent.parent.kind===250){let v=m.parent.parent,C=F$(v.expression,void 0);if(C){let E=v.awaitModifier?15:13;return $S(E,C,$e,void 0)}}d&&Xs(d,Mn(m,S._0_needs_an_explicit_type_annotation,Lo(n)))}}}function F$(n,d){if(!(n.flags&67108864))switch(n.kind){case 80:let m=im(s_(n));return fce(m,d);case 110:return dHt(n);case 108:return yce(n);case 211:{let v=F$(n.expression,d);if(v){let C=n.name,E;if(xo(C)){if(!v.symbol)return;E=da(v,rR(v.symbol,C.escapedText))}else E=da(v,C.escapedText);return E&&fce(E,d)}return}case 217:return F$(n.expression,d)}}function M$(n){let d=rr(n),m=d.effectsSignature;if(m===void 0){let v;if(Yn(n)){let L=$6(n.right);v=NIe(L)}else n.parent.kind===244?v=F$(n.expression,void 0):n.expression.kind!==108&&(qf(n)?v=ky(gB(Ho(n.expression),n.expression),n.expression):v=$6(n.expression));let C=Bs(v&&S_(v)||Y,0),E=C.length===1&&!C[0].typeParameters?C[0]:Lt(C,uZe)?K6(n):void 0;m=d.effectsSignature=E&&uZe(E)?E:ri}return m===ri?void 0:m}function uZe(n){return!!(wh(n)||n.declaration&&(M6(n.declaration)||Y).flags&131072)}function JVt(n,d){if(n.kind===1||n.kind===3)return d.arguments[n.parameterIndex];let m=fc(d.expression);return il(m)?fc(m.expression):void 0}function qVt(n){let d=Ri(n,DQ),m=en(n),v=V0(m,d.statements.pos);Ga.add(kd(m,v.start,v.length,S.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function R$(n){let d=_ce(n,!1);return tg=n,Mk=d,d}function B$(n){let d=fc(n,!0);return d.kind===97||d.kind===226&&(d.operatorToken.kind===56&&(B$(d.left)||B$(d.right))||d.operatorToken.kind===57&&B$(d.left)&&B$(d.right))}function _ce(n,d){for(;;){if(n===tg)return Mk;let m=n.flags;if(m&4096){if(!d){let v=kDe(n),C=Hx[v];return C!==void 0?C:Hx[v]=_ce(n,!0)}d=!1}if(m&368)n=n.antecedent;else if(m&512){let v=M$(n.node);if(v){let C=wh(v);if(C&&C.kind===3&&!C.type){let E=n.node.arguments[C.parameterIndex];if(E&&B$(E))return!1}if(vc(v).flags&131072)return!1}n=n.antecedent}else{if(m&4)return Lt(n.antecedent,v=>_ce(v,!1));if(m&8){let v=n.antecedent;if(v===void 0||v.length===0)return!1;n=v[0]}else if(m&128){let v=n.node;if(v.clauseStart===v.clauseEnd&&Qet(v.switchStatement))return!1;n=n.antecedent}else if(m&1024){tg=void 0;let v=n.node.target,C=v.antecedent;v.antecedent=n.node.antecedents;let E=_ce(n.antecedent,!1);return v.antecedent=C,E}else return!(m&1)}}}function pce(n,d){for(;;){let m=n.flags;if(m&4096){if(!d){let v=kDe(n),C=a1[v];return C!==void 0?C:a1[v]=pce(n,!0)}d=!1}if(m&496)n=n.antecedent;else if(m&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(m&4)return Et(n.antecedent,v=>pce(v,!1));if(m&8)n=n.antecedent[0];else if(m&1024){let v=n.node.target,C=v.antecedent;v.antecedent=n.node.antecedents;let E=pce(n.antecedent,!1);return v.antecedent=C,E}else return!!(m&1)}}}function NDe(n){switch(n.kind){case 110:return!0;case 80:if(!eT(n)){let m=s_(n);return MA(m)||kB(m)&&!j$(m)||!!m.valueDeclaration&&Yc(m.valueDeclaration)}break;case 211:case 212:return NDe(n.expression)&&C0(rr(n).resolvedSymbol||ct);case 206:case 207:let d=$0(n.parent);return To(d)||k0e(d)?!ADe(d):Ur(d)&&JB(d)}return!1}function Fb(n,d,m=d,v,C=(E=>(E=kr(n,YM))==null?void 0:E.flowNode)()){let E,L=!1,J=0;if(pb)return _t;if(!C)return d;kS++;let ee=iv,oe=TD(Ne(C));iv=ee;let pe=_r(oe)&256&&lZe(n)?gc:O$(oe);if(pe===Xi||n.parent&&n.parent.kind===235&&!(pe.flags&131072)&&lg(pe,2097152).flags&131072)return d;return pe;function Me(){return L?E:(L=!0,E=N$(n,d,m,v))}function Ne(ii){var Wi;if(J===2e3)return(Wi=jn)==null||Wi.instant(jn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:ii.id}),pb=!0,qVt(n),_t;J++;let pn;for(;;){let wn=ii.flags;if(wn&4096){for(let Wr=ee;Wr=0&&pn.parameterIndex!(Wr.flags&163840)):Wi.kind===221&&CD(Wi.expression,n)&&(wn=ga(wn,ii.node,Wr=>!(Wr.flags&131072||Wr.flags&128&&Wr.value==="undefined"))));let ar=Qr(Wi,wn);ar&&(wn=Ys(wn,ar,ii.node))}return J6(wn,U6(pn))}function $i(ii){let Wi=[],pn=!1,wn=!1,ar;for(let Wr of ii.antecedent){if(!ar&&Wr.flags&128&&Wr.node.clauseStart===Wr.node.clauseEnd){ar=Wr;continue}let Sa=Ne(Wr),Na=TD(Sa);if(Na===d&&d===m)return Na;jc(Wi,Na),fF(Na,m)||(pn=!0),U6(Sa)&&(wn=!0)}if(ar){let Wr=Ne(ar),Sa=TD(Wr);if(!(Sa.flags&131072)&&!sn(Wi,Sa)&&!Qet(ar.node.switchStatement)){if(Sa===d&&d===m)return Sa;Wi.push(Sa),fF(Sa,m)||(pn=!0),U6(Wr)&&(wn=!0)}}return J6(Zn(Wi,pn?2:1),wn)}function Ni(ii){let Wi=kDe(ii),pn=g_[Wi]||(g_[Wi]=new Map),wn=Me();if(!wn)return d;let ar=pn.get(wn);if(ar)return ar;for(let Ve=o1;Ve{let Ve=CA(Zc,wn)||Y;return!(Ve.flags&131072)&&!(Na.flags&131072)&&S$(Na,Ve)})}function ra(ii,Wi,pn,wn,ar){if((pn===37||pn===38)&&ii.flags&1048576){let Wr=A$(ii);if(Wr&&Wr===xD(Wi)){let Sa=P$(ii,wf(wn));if(Sa)return pn===(ar?37:38)?Sa:b0(Mu(Sa,Wr)||Y)?dce(ii,Sa):ii}}return Cr(ii,Wi,Wr=>ko(Wr,pn,wn,ar))}function Ys(ii,Wi,pn){if(pn.clauseStartP$(ii,Wr)||Y));if(ar!==Y)return ar}return Cr(ii,Wi,wn=>pl(wn,pn))}function _l(ii,Wi,pn){if(of(n,Wi))return kD(ii,pn?4194304:8388608);he&&pn&&CD(Wi,n)&&(ii=kD(ii,2097152));let wn=Qr(Wi,ii);return wn?Cr(ii,wn,ar=>lg(ar,pn?4194304:8388608)):ii}function us(ii,Wi,pn){let wn=da(ii,Wi);return wn?!!(wn.flags&16777216||_u(wn)&48)||pn:!!TA(ii,Wi)||!pn}function Gl(ii,Wi,pn){let wn=dh(Wi);if(Dh(ii,Wr=>us(Wr,wn,!0)))return qu(ii,Wr=>us(Wr,wn,pn));if(pn){let Wr=Kjt();if(Wr)return wa([ii,B6(Wr,[Wi,Y])])}return ii}function af(ii,Wi,pn,wn,ar){return ar=ar!==(pn.kind===112)!=(wn!==38&&wn!==36),xm(ii,Wi,ar)}function nu(ii,Wi,pn){switch(Wi.operatorToken.kind){case 64:case 76:case 77:case 78:return _l(xm(ii,Wi.right,pn),Wi.left,pn);case 35:case 36:case 37:case 38:let wn=Wi.operatorToken.kind,ar=s2(Wi.left),Wr=s2(Wi.right);if(ar.kind===221&&xc(Wr))return $n(ii,ar,wn,Wr,pn);if(Wr.kind===221&&xc(ar))return $n(ii,Wr,wn,ar,pn);if(of(n,ar))return ko(ii,wn,Wr,pn);if(of(n,Wr))return ko(ii,wn,ar,pn);he&&(CD(ar,n)?ii=kn(ii,wn,Wr,pn):CD(Wr,n)&&(ii=kn(ii,wn,ar,pn)));let Sa=Qr(ar,ii);if(Sa)return ra(ii,Sa,wn,Wr,pn);let Na=Qr(Wr,ii);if(Na)return ra(ii,Na,wn,ar,pn);if(qc(ar))return Ym(ii,wn,Wr,pn);if(qc(Wr))return Ym(ii,wn,ar,pn);if(M3(Wr)&&!il(ar))return af(ii,ar,Wr,wn,pn);if(M3(ar)&&!il(Wr))return af(ii,Wr,ar,wn,pn);break;case 104:return Eu(ii,Wi,pn);case 103:if(xo(Wi.left))return ln(ii,Wi,pn);let Zc=s2(Wi.right);if(yB(ii)&&il(n)&&of(n.expression,Zc)){let Ve=wf(Wi.left);if(uh(Ve)&&xD(n)===dh(Ve))return lg(ii,pn?524288:65536)}if(of(n,Zc)){let Ve=wf(Wi.left);if(uh(Ve))return Gl(ii,Ve,pn)}break;case 28:return xm(ii,Wi.right,pn);case 56:return pn?xm(xm(ii,Wi.left,!0),Wi.right,!0):Fr([xm(ii,Wi.left,!1),xm(ii,Wi.right,!1)]);case 57:return pn?Fr([xm(ii,Wi.left,!0),xm(ii,Wi.right,!0)]):xm(xm(ii,Wi.left,!1),Wi.right,!1)}return ii}function ln(ii,Wi,pn){let wn=s2(Wi.right);if(!of(n,wn))return ii;B.assertNode(Wi.left,xo);let ar=Ice(Wi.left);if(ar===void 0)return ii;let Wr=ar.parent,Sa=cd(B.checkDefined(ar.valueDeclaration,"should always have a declaration"))?Wn(Wr):Qc(Wr);return GS(ii,Sa,pn,!0)}function kn(ii,Wi,pn,wn){let ar=Wi===35||Wi===37,Wr=Wi===35||Wi===36?98304:32768,Sa=wf(pn);return ar!==wn&&Pp(Sa,Zc=>!!(Zc.flags&Wr))||ar===wn&&Pp(Sa,Zc=>!(Zc.flags&(3|Wr)))?kD(ii,2097152):ii}function ko(ii,Wi,pn,wn){if(ii.flags&1)return ii;(Wi===36||Wi===38)&&(wn=!wn);let ar=wf(pn),Wr=Wi===35||Wi===36;if(ar.flags&98304){if(!he)return ii;let Sa=Wr?wn?262144:2097152:ar.flags&65536?wn?131072:1048576:wn?65536:524288;return kD(ii,Sa)}if(wn){if(!Wr&&(ii.flags&2||Dh(ii,mv))){if(ar.flags&469893116||mv(ar))return ar;if(ar.flags&524288)return Li}let Sa=qu(ii,Na=>S$(Na,ar)||Wr&&Jzt(Na,ar));return aZe(Sa,ar)}return b0(ar)?qu(ii,Sa=>!(TQe(Sa)&&S$(Sa,ar))):ii}function $n(ii,Wi,pn,wn,ar){(pn===36||pn===38)&&(ar=!ar);let Wr=s2(Wi.expression);if(!of(n,Wr)){he&&CD(Wr,n)&&ar===(wn.text!=="undefined")&&(ii=kD(ii,2097152));let Sa=Qr(Wr,ii);return Sa?Cr(ii,Sa,Na=>ss(Na,wn,ar)):ii}return ss(ii,wn,ar)}function ss(ii,Wi,pn){return pn?ru(ii,Wi.text):kD(ii,Xve.get(Wi.text)||32768)}function ga(ii,{switchStatement:Wi,clauseStart:pn,clauseEnd:wn},ar){return pn!==wn&&Et(uce(Wi).slice(pn,wn),ar)?lg(ii,2097152):ii}function pl(ii,{switchStatement:Wi,clauseStart:pn,clauseEnd:wn}){let ar=uce(Wi);if(!ar.length)return ii;let Wr=ar.slice(pn,wn),Sa=pn===wn||sn(Wr,Si);if(ii.flags&2&&!Sa){let Ie;for(let vi=0;viS$(Na,Ie)),Na);if(!Sa)return Zc;let Ve=qu(ii,Ie=>!(TQe(Ie)&&sn(ar,Ie.flags&32768?$e:x_(Rzt(Ie)))));return Zc.flags&131072?Ve:Fr([Zc,Ve])}function ru(ii,Wi){switch(Wi){case"string":return Va(ii,Qe,1);case"number":return Va(ii,ei,2);case"bigint":return Va(ii,In,4);case"boolean":return Va(ii,ti,8);case"symbol":return Va(ii,li,16);case"object":return ii.flags&1?ii:Fr([Va(ii,Li,32),Va(ii,Wt,131072)]);case"function":return ii.flags&1?ii:Va(ii,_d,64);case"undefined":return Va(ii,$e,65536)}return Va(ii,Li,128)}function Va(ii,Wi,pn){return Nl(ii,wn=>xy(wn,Wi,Hm)?S0(wn,pn)?wn:Si:o2(Wi,wn)?Wi:S0(wn,pn)?wa([wn,Wi]):Si)}function $d(ii,{switchStatement:Wi,clauseStart:pn,clauseEnd:wn}){let ar=oZe(Wi);if(!ar)return ii;let Wr=zi(Wi.caseBlock.clauses,Zc=>Zc.kind===297);if(pn===wn||Wr>=pn&&WrH6(Ve,Zc)===Zc)}let Na=ar.slice(pn,wn);return Fr(_i(Na,Zc=>Zc?ru(ii,Zc):Si))}function gu(ii,{switchStatement:Wi,clauseStart:pn,clauseEnd:wn}){let ar=zi(Wi.caseBlock.clauses,Na=>Na.kind===297),Wr=pn===wn||ar>=pn&&arNa.kind===296?xm(ii,Na.expression,!0):Si))}function qc(ii){return(lr(ii)&&mr(ii.name)==="constructor"||nl(ii)&&xc(ii.argumentExpression)&&ii.argumentExpression.text==="constructor")&&of(n,ii.expression)}function Ym(ii,Wi,pn,wn){if(wn?Wi!==35&&Wi!==37:Wi!==36&&Wi!==38)return ii;let ar=wf(pn);if(!cNe(ar)&&!on(ar))return ii;let Wr=da(ar,"prototype");if(!Wr)return ii;let Sa=Wn(Wr),Na=pc(Sa)?void 0:Sa;if(!Na||Na===Ou||Na===_d)return ii;if(pc(ii))return Na;return qu(ii,Ve=>Zc(Ve,Na));function Zc(Ve,Ie){return Ve.flags&524288&&_r(Ve)&1||Ie.flags&524288&&_r(Ie)&1?Ve.symbol===Ie.symbol:o2(Ve,Ie)}}function Eu(ii,Wi,pn){let wn=s2(Wi.left);if(!of(n,wn))return pn&&he&&CD(wn,n)?kD(ii,2097152):ii;let ar=Wi.right,Wr=wf(ar);if(!nw(Wr,Ou))return ii;let Sa=M$(Wi),Na=Sa&&wh(Sa);if(Na&&Na.kind===1&&Na.parameterIndex===0)return GS(ii,Na.type,pn,!0);if(!nw(Wr,_d))return ii;let Zc=Nl(Wr,Ru);return pc(ii)&&(Zc===Ou||Zc===_d)||!pn&&!(Zc.flags&524288&&!mv(Zc))?ii:GS(ii,Zc,pn,!0)}function Ru(ii){let Wi=Mu(ii,"prototype");if(Wi&&!pc(Wi))return Wi;let pn=Bs(ii,1);return pn.length?Fr(_i(pn,wn=>vc(sB(wn)))):Ts}function GS(ii,Wi,pn,wn){let ar=ii.flags&1048576?`N${rf(ii)},${rf(Wi)},${(pn?1:0)|(wn?2:0)}`:void 0;return l0(ar)??ES(ar,Z6(ii,Wi,pn,wn))}function Z6(ii,Wi,pn,wn){if(!pn){if(ii===Wi)return Si;if(wn)return qu(ii,Zc=>!nw(Zc,Wi));let Na=GS(ii,Wi,!0,!1);return qu(ii,Zc=>!fF(Zc,Na))}if(ii.flags&3||ii===Wi)return Wi;let ar=wn?nw:o2,Wr=ii.flags&1048576?A$(ii):void 0,Sa=Nl(Wi,Na=>{let Zc=Wr&&Mu(Na,Wr),Ve=Zc&&P$(ii,Zc),Ie=Nl(Ve||ii,wn?vi=>nw(vi,Na)?vi:nw(Na,vi)?Na:Si:vi=>b$(vi,Na)?vi:b$(Na,vi)?Na:o2(vi,Na)?vi:o2(Na,vi)?Na:Si);return Ie.flags&131072?Nl(ii,vi=>hu(vi,465829888)&&ar(Na,Cf(vi)||Y)?wa([vi,Na]):Si):Ie});return Sa.flags&131072?o2(Wi,ii)?Wi:fa(ii,Wi)?ii:fa(Wi,ii)?Wi:wa([ii,Wi]):Sa}function CF(ii,Wi,pn){if(KQe(Wi,n)){let wn=pn||!Y2(Wi)?M$(Wi):void 0,ar=wn&&wh(wn);if(ar&&(ar.kind===0||ar.kind===1))return kF(ii,ar,Wi,pn)}if(yB(ii)&&il(n)&&lr(Wi.expression)){let wn=Wi.expression;if(of(n.expression,s2(wn.expression))&&et(wn.name)&&wn.name.escapedText==="hasOwnProperty"&&Wi.arguments.length===1){let ar=Wi.arguments[0];if(xc(ar)&&xD(n)===Hl(ar.text))return lg(ii,pn?524288:65536)}}return ii}function kF(ii,Wi,pn,wn){if(Wi.type&&!(pc(ii)&&(Wi.type===Ou||Wi.type===_d))){let ar=JVt(Wi,pn);if(ar){if(of(n,ar))return GS(ii,Wi.type,wn,!1);he&&CD(ar,n)&&(wn&&!S0(Wi.type,65536)||!wn&&Pp(Wi.type,$$))&&(ii=kD(ii,2097152));let Wr=Qr(ar,ii);if(Wr)return Cr(ii,Wr,Sa=>GS(Sa,Wi.type,wn,!1))}}return ii}function xm(ii,Wi,pn){if(dz(Wi)||Yn(Wi.parent)&&(Wi.parent.operatorToken.kind===61||Wi.parent.operatorToken.kind===78)&&Wi.parent.left===Wi)return uw(ii,Wi,pn);switch(Wi.kind){case 80:if(!of(n,Wi)&&P<5){let wn=s_(Wi);if(MA(wn)){let ar=wn.valueDeclaration;if(ar&&Ur(ar)&&!ar.type&&ar.initializer&&NDe(n)){P++;let Wr=xm(ii,ar.initializer,pn);return P--,Wr}}}case 110:case 108:case 211:case 212:return _l(ii,Wi,pn);case 213:return CF(ii,Wi,pn);case 217:case 235:return xm(ii,Wi.expression,pn);case 226:return nu(ii,Wi,pn);case 224:if(Wi.operator===54)return xm(ii,Wi.operand,!pn);break}return ii}function uw(ii,Wi,pn){if(of(n,Wi))return kD(ii,pn?2097152:262144);let wn=Qr(Wi,ii);return wn?Cr(ii,wn,ar=>lg(ar,pn?2097152:262144)):ii}}function $Vt(n,d){if(n=im(n),(d.kind===80||d.kind===81)&&(sO(d)&&(d=d.parent),Kg(d)&&(!nS(d)||oN(d)))){let m=ece(oN(d)&&d.kind===211?Dce(d,void 0,!0):wf(d));if(im(rr(d).resolvedSymbol)===n)return m}return Xy(d)&&z0(d.parent)&&uD(d.parent)?pae(d.parent.symbol):HZ(d)&&oN(d.parent)?aC(n):cC(n)}function CB(n){return Ri(n.parent,d=>vs(d)&&!qw(d)||d.kind===268||d.kind===307||d.kind===172)}function j$(n){return!dZe(n,void 0)}function dZe(n,d){let m=Ri(n.valueDeclaration,mce);if(!m)return!1;let v=rr(m);return v.flags&131072||(v.flags|=131072,GVt(m)||_Ze(m)),!n.lastAssignmentPos||d&&n.lastAssignmentPosd.kind!==232&&fZe(d.name))}function GVt(n){return!!Ri(n.parent,d=>mce(d)&&!!(rr(d).flags&131072))}function mce(n){return Oc(n)||mo(n)}function _Ze(n){switch(n.kind){case 80:if(nS(n)){let v=s_(n);if(kB(v)&&v.lastAssignmentPos!==Number.MAX_VALUE){let C=Ri(n,mce),E=Ri(v.valueDeclaration,mce);v.lastAssignmentPos=C===E?KVt(n,v.valueDeclaration):Number.MAX_VALUE}}return;case 281:let d=n.parent.parent,m=n.propertyName||n.name;if(!n.isTypeOnly&&!d.isTypeOnly&&!d.moduleSpecifier&&m.kind!==11){let v=Ml(m,111551,!0,!0);v&&kB(v)&&(v.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}io(n)||ws(n,_Ze)}function KVt(n,d){let m=n.pos;for(;n&&n.pos>d.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:m=n.end}n=n.parent}return m}function MA(n){return n.flags&3&&(XDe(n)&6)!==0}function kB(n){let d=n.valueDeclaration&&$0(n.valueDeclaration);return!!d&&(To(d)||Ur(d)&&(mT(d.parent)||XVt(d)))}function XVt(n){return!!(n.parent.flags&1)&&!(GC(n)&32||n.parent.parent.kind===243&&Zb(n.parent.parent.parent))}function YVt(n){let d=rr(n);if(d.parameterInitializerContainsUndefined===void 0){if(!av(n,8))return N6(n.symbol),!0;let m=!!S0(mF(n,0),16777216);if(!cv())return N6(n.symbol),!0;d.parameterInitializerContainsUndefined??(d.parameterInitializerContainsUndefined=m)}return d.parameterInitializerContainsUndefined}function QVt(n,d){return he&&d.kind===169&&d.initializer&&S0(n,16777216)&&!YVt(d)?lg(n,524288):n}function ZVt(n,d){let m=d.parent;return m.kind===211||m.kind===166||m.kind===213&&m.expression===d||m.kind===214&&m.expression===d||m.kind===212&&m.expression===d&&!(Dh(n,mZe)&&yD(wf(m.argumentExpression)))}function pZe(n){return n.flags&2097152?Lt(n.types,pZe):!!(n.flags&465829888&&fv(n).flags&1146880)}function mZe(n){return n.flags&2097152?Lt(n.types,mZe):!!(n.flags&465829888&&!hu(fv(n),98304))}function eHt(n,d){let m=(et(n)||lr(n)||nl(n))&&!((ny(n.parent)||SE(n.parent))&&n.parent.tagName===n)&&(d&&d&32?H_(n,8):H_(n,void 0));return m&&!NA(m)}function PDe(n,d,m){return j6(n)&&(n=n.baseType),!(m&&m&2)&&Dh(n,pZe)&&(ZVt(n,d)||eHt(d,m))?Nl(n,fv):n}function hZe(n){return!!Ri(n,d=>{let m=d.parent;return m===void 0?"quit":ll(m)?m.expression===d&&Xc(d):Gf(m)?m.name===d||m.propertyName===d:!1})}function RA(n,d,m,v){if(nt&&!(n.flags&33554432&&!ep(n)&&!ls(n)))switch(d){case 1:return hce(n);case 2:return gZe(n,m,v);case 3:return yZe(n);case 4:return LDe(n);case 5:return vZe(n);case 6:return bZe(n);case 7:return SZe(n);case 8:return xZe(n);case 0:{if(et(n)&&(Kg(n)||jf(n.parent)||Dd(n.parent)&&n.parent.moduleReference===n)&&TZe(n)){if(gM(n.parent)&&(lr(n.parent)?n.parent.expression:n.parent.left)!==n)return;hce(n);return}if(gM(n)){let C=n;for(;gM(C);){if(U0(C))return;C=C.parent}return gZe(n)}return ll(n)?yZe(n):Mf(n)||xE(n)?LDe(n):Dd(n)?sE(n)||ele(n)?bZe(n):void 0:Gf(n)?SZe(n):((Oc(n)||Z0(n))&&vZe(n),!$.emitDecoratorMetadata||!hT(n)||!Pm(n)||!n.modifiers||!RM(_e,n,n.parent,n.parent.parent)?void 0:xZe(n))}default:B.assertNever(d,`Unhandled reference hint: ${d}`)}}function hce(n){let d=s_(n);d&&d!==Ue&&d!==ct&&!eT(n)&&W$(d,n)}function gZe(n,d,m){let v=lr(n)?n.expression:n.left;if(bx(v)||!et(v))return;let C=s_(v);if(!C||C===ct)return;if(Jh($)||Cx($)&&hZe(n)){W$(C,n);return}let E=m||Tu(v);if(pc(E)||E===Rn){W$(C,n);return}let L=d;if(!L&&!m){let J=lr(n)?n.name:n.right,ee=xo(J)&&G$(J.escapedText,J),oe=ak(n),pe=S_(oe!==0||eIe(n)?Ap(E):E);L=xo(J)?ee&&Nce(pe,ee)||void 0:da(pe,J.escapedText)}L&&(HB(L)||L.flags&8&&n.parent.kind===306)||W$(C,n)}function yZe(n){if(et(n.expression)){let d=n.expression,m=im(Ml(d,-1,!0,!0,n));m&&W$(m,d)}}function LDe(n){if(!GDe(n)){let d=Ga&&$.jsx===2?S.Cannot_find_name_0:void 0,m=rv(n),v=Mf(n)?n.tagName:n,C;if(xE(n)&&m==="null"||(C=ni(v,m,111551,d,!0)),C&&(C.isReferenced=-1,nt&&C.flags&2097152&&!my(C)&&gce(C)),xE(n)){let E=en(n),L=aA(E);L&&ni(v,L,111551,d,!0)}}}function vZe(n){if(te<2&&Vu(n)&2){let d=Up(n);tHt(d)}}function bZe(n){Ar(n,32)&&CZe(n)}function SZe(n){if(!n.parent.parent.moduleSpecifier&&!n.isTypeOnly&&!n.parent.parent.isTypeOnly){let d=n.propertyName||n.name;if(d.kind===11)return;let m=ni(d,d.escapedText,2998271,void 0,!0);if(!(m&&(m===Ge||m===Ke||m.declarations&&Zb(lD(m.declarations[0]))))){let v=m&&(m.flags&2097152?xf(m):m);(!v||n_(v)&111551)&&(CZe(n),hce(d))}return}}function xZe(n){if($.emitDecoratorMetadata){let d=St(n.modifiers,Td);if(!d)return;switch(Pd(d,16),n.kind){case 263:let m=Hv(n);if(m)for(let L of m.parameters)q6(Gce(L));break;case 177:case 178:let v=n.kind===177?178:177,C=bl(sr(n),v);q6(uD(n)||C&&uD(C));break;case 174:for(let L of n.parameters)q6(Gce(L));q6(Up(n));break;case 172:q6(Yu(n));break;case 169:q6(Gce(n));let E=n.parent;for(let L of E.parameters)q6(Gce(L));q6(Up(E));break}}}function W$(n,d){if(nt&&BT(n,111551)&&!tN(d)){let m=xf(n);n_(n,!0)&1160127&&(Jh($)||Cx($)&&hZe(d)||!HB(im(m)))&&gce(n)}}function gce(n){B.assert(nt);let d=Po(n);if(!d.referenced){d.referenced=!0;let m=i_(n);if(!m)return B.fail();if(sE(m)&&n_(Fu(n))&111551){let v=hp(m.moduleReference);hce(v)}}}function CZe(n){let d=sr(n),m=xf(d);m&&(m===ct||n_(d,!0)&111551&&!HB(m))&&gce(d)}function kZe(n,d){if(!n)return;let m=hp(n),v=(n.kind===80?788968:1920)|2097152,C=ni(m,m.escapedText,v,void 0,!0);if(C&&C.flags&2097152){if(nt&&nm(C)&&!HB(xf(C))&&!my(C))gce(C);else if(d&&Jh($)&&p_($)>=5&&!nm(C)&&!Lt(C.declarations,_x)){let E=ot(n,S.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),L=St(C.declarations||F,vm);L&&Xs(E,Mn(L,S._0_was_imported_here,mr(m)))}}}function tHt(n){kZe(n&&MM(n),!1)}function q6(n){let d=WIe(n);d&&G_(d)&&kZe(d,!0)}function iHt(n,d){var m;let v=Wn(n),C=n.valueDeclaration;if(C){if(Wa(C)&&!C.initializer&&!C.dotDotDotToken&&C.parent.elements.length>=2){let E=C.parent.parent,L=$0(E);if(L.kind===260&&f2(L)&6||L.kind===169){let J=rr(E);if(!(J.flags&4194304)){J.flags|=4194304;let ee=We(E,0),oe=ee&&Nl(ee,fv);if(J.flags&=-4194305,oe&&oe.flags&1048576&&!(L.kind===169&&ADe(L))){let pe=C.parent,Me=Fb(pe,oe,oe,void 0,d.flowNode);return Me.flags&131072?Si:Dc(C,Me,!0)}}}}if(To(C)&&!C.type&&!C.initializer&&!C.dotDotDotToken){let E=C.parent;if(E.parameters.length>=2&&Vae(E)){let L=TB(E);if(L&&L.parameters.length===1&&Xf(L)){let J=iF(Oo(Wn(L.parameters[0]),(m=a2(E))==null?void 0:m.nonFixingMapper));if(J.flags&1048576&&Pp(J,Ba)&&!Lt(E.parameters,ADe)){let ee=Fb(E,J,J,void 0,d.flowNode),oe=E.parameters.indexOf(C)-(Qw(E)?1:0);return Ip(ee,Pg(oe))}}}}}return v}function wZe(n,d){if(eT(n))return;if(d===Ue){if(nIe(n)){ot(n,S.arguments_cannot_be_referenced_in_property_initializers);return}let E=_m(n);if(E)for(te<2&&(E.kind===219?ot(n,S.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):Ar(E,1024)&&ot(n,S.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),rr(E).flags|=512;E&&rl(E);)E=_m(E),E&&(rr(E).flags|=512);return}let m=im(d),v=ZIe(m,n);yb(v)&&AEe(n,v)&&v.declarations&&vb(n,v.declarations,n.escapedText);let C=m.valueDeclaration;if(C&&m.flags&32&&jr(C)&&C.name!==n){let E=f_(n,!1,!1);for(;E.kind!==307&&E.parent!==C;)E=f_(E,!1,!1);E.kind!==307&&(rr(C).flags|=262144,rr(E).flags|=262144,rr(n).flags|=536870912)}aHt(n,d)}function nHt(n,d){if(eT(n))return z$(n);let m=s_(n);if(m===ct)return _t;if(wZe(n,m),m===Ue)return nIe(n)?_t:Wn(m);TZe(n)&&RA(n,1);let v=im(m),C=v.valueDeclaration;if(C&&C.kind===208&&sn(s1,C.parent)&&Ri(n,Bn=>Bn===C.parent))return Ii;let E=iHt(v,n),L=ak(n);if(L){if(!(v.flags&3)&&!(Jn(n)&&v.flags&512)){let Bn=v.flags&384?S.Cannot_assign_to_0_because_it_is_an_enum:v.flags&32?S.Cannot_assign_to_0_because_it_is_a_class:v.flags&1536?S.Cannot_assign_to_0_because_it_is_a_namespace:v.flags&16?S.Cannot_assign_to_0_because_it_is_a_function:v.flags&2097152?S.Cannot_assign_to_0_because_it_is_an_import:S.Cannot_assign_to_0_because_it_is_not_a_variable;return ot(n,Bn,Lo(m)),_t}if(C0(v))return v.flags&3?ot(n,S.Cannot_assign_to_0_because_it_is_a_constant,Lo(m)):ot(n,S.Cannot_assign_to_0_because_it_is_a_read_only_property,Lo(m)),_t}let J=v.flags&2097152;if(v.flags&3){if(L===1)return gZ(n)?Ab(E):E}else if(J)C=i_(m);else return E;if(!C)return E;E=PDe(E,n,d);let ee=$0(C).kind===169,oe=CB(C),pe=CB(n),Me=pe!==oe,Ne=n.parent&&n.parent.parent&&Qv(n.parent)&&DDe(n.parent.parent),vt=m.flags&134217728,Ot=E===It||E===gc,jt=Ot&&n.parent.kind===235;for(;pe!==oe&&(pe.kind===218||pe.kind===219||Vz(pe))&&(MA(v)&&E!==gc||kB(v)&&dZe(v,n));)pe=CB(pe);let xi=ee||J||Me||Ne||vt||rHt(n,C)||E!==It&&E!==gc&&(!he||(E.flags&16387)!==0||tN(n)||xDe(n)||n.parent.kind===281)||n.parent.kind===235||C.kind===260&&C.exclamationToken||C.flags&33554432,Pi=jt?$e:xi?ee?QVt(E,C):E:Ot?$e:hC(E),Pn=jt?Pb(Fb(n,E,Pi,pe)):Fb(n,E,Pi,pe);if(!lZe(n)&&(E===It||E===gc)){if(Pn===It||Pn===gc)return Se&&(ot(cs(C),S.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Lo(m),Dn(Pn)),ot(n,S.Variable_0_implicitly_has_an_1_type,Lo(m),Dn(Pn))),zB(Pn)}else if(!xi&&!V6(E)&&V6(Pn))return ot(n,S.Variable_0_is_used_before_being_assigned,Lo(m)),E;return L?Ab(Pn):Pn}function rHt(n,d){if(Wa(d)){let m=Ri(n,Wa);return m&&$0(m)===$0(d)}}function TZe(n){var d;let m=n.parent;if(m){if(lr(m)&&m.expression===n||Gf(m)&&m.isTypeOnly)return!1;let v=(d=m.parent)==null?void 0:d.parent;if(v&&Nu(v)&&v.isTypeOnly)return!1}return!0}function oHt(n,d){return!!Ri(n,m=>m===d?"quit":vs(m)||m.parent&&ls(m.parent)&&!cd(m.parent)&&m.parent.initializer===m)}function sHt(n,d){return Ri(n,m=>m===d?"quit":m===d.initializer||m===d.condition||m===d.incrementor||m===d.statement)}function ODe(n){return Ri(n,d=>!d||TZ(d)?"quit":hx(d,!1))}function aHt(n,d){if(te>=2||!(d.flags&34)||!d.valueDeclaration||mo(d.valueDeclaration)||d.valueDeclaration.parent.kind===299)return;let m=Gg(d.valueDeclaration),v=oHt(n,m),C=ODe(m);if(C){if(v){let E=!0;if(gk(m)){let L=ck(d.valueDeclaration,261);if(L&&L.parent===m){let J=sHt(n.parent,m);if(J){let ee=rr(J);ee.flags|=8192;let oe=ee.capturedBlockScopeBindings||(ee.capturedBlockScopeBindings=[]);jc(oe,d),J===m.initializer&&(E=!1)}}}E&&(rr(C).flags|=4096)}if(gk(m)){let E=ck(d.valueDeclaration,261);E&&E.parent===m&&lHt(n,m)&&(rr(d.valueDeclaration).flags|=65536)}rr(d.valueDeclaration).flags|=32768}v&&(rr(d.valueDeclaration).flags|=16384)}function cHt(n,d){let m=rr(n);return!!m&&sn(m.capturedBlockScopeBindings,sr(d))}function lHt(n,d){let m=n;for(;m.parent.kind===217;)m=m.parent;let v=!1;if(nS(m))v=!0;else if(m.parent.kind===224||m.parent.kind===225){let C=m.parent;v=C.operator===46||C.operator===47}return v?!!Ri(m,C=>C===d?"quit":C===d.statement):!1}function FDe(n,d){if(rr(n).flags|=2,d.kind===172||d.kind===176){let m=d.parent;rr(m).flags|=4}else rr(d).flags|=4}function EZe(n){return oE(n)?n:vs(n)?void 0:ws(n,EZe)}function MDe(n){let d=sr(n),m=Qc(d);return Yr(m)===tt}function DZe(n,d,m){let v=d.parent;Yw(v)&&!MDe(v)&&YM(n)&&n.flowNode&&!pce(n.flowNode,!1)&&ot(n,m)}function uHt(n,d){ls(d)&&cd(d)&&_e&&d.initializer&&rM(d.initializer,n.pos)&&Pm(d.parent)&&ot(n,S.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function z$(n){let d=tN(n),m=f_(n,!0,!0),v=!1,C=!1;for(m.kind===176&&DZe(n,m,S.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(m.kind===219&&(m=f_(m,!1,!C),v=!0),m.kind===167){m=f_(m,!v,!1),C=!0;continue}break}if(uHt(n,m),C)ot(n,S.this_cannot_be_referenced_in_a_computed_property_name);else switch(m.kind){case 267:ot(n,S.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:ot(n,S.this_cannot_be_referenced_in_current_location);break}!d&&v&&te<2&&FDe(n,m);let E=RDe(n,!0,m);if(Re){let L=Wn(Ke);if(E===L&&v)ot(n,S.The_containing_arrow_function_captures_the_global_value_of_this);else if(!E){let J=ot(n,S.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!mo(m)){let ee=RDe(m);ee&&ee!==L&&Xs(J,Mn(m,S.An_outer_value_of_this_is_shadowed_by_this_container))}}}return E||je}function RDe(n,d=!0,m=f_(n,!1,!1)){let v=Jn(n);if(vs(m)&&(!WDe(n)||Qw(m))){let C=B2e(m)||v&&_Ht(m);if(!C){let E=fHt(m);if(v&&E){let L=Ho(E).symbol;L&&L.members&&L.flags&16&&(C=Qc(L).thisType)}else Ty(m)&&(C=Qc(cc(m.symbol)).thisType);C||(C=BDe(m))}if(C)return Fb(n,C)}if(jr(m.parent)){let C=sr(m.parent),E=ia(m)?Wn(C):Qc(C).thisType;return Fb(n,E)}if(mo(m))if(m.commonJsModuleIndicator){let C=sr(m);return C&&Wn(C)}else{if(m.externalModuleIndicator)return $e;if(d)return Wn(Ke)}}function dHt(n){let d=f_(n,!1,!1);if(vs(d)){let m=Km(d);if(m.thisParameter)return fce(m.thisParameter)}if(jr(d.parent)){let m=sr(d.parent);return ia(d)?Wn(m):Qc(m).thisType}}function fHt(n){if(n.kind===218&&Yn(n.parent)&&Su(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&Yn(n.parent.parent)&&Su(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&Yn(n.parent.parent.parent)&&Su(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&ed(n.parent)&&et(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&ba(n.parent.parent)&&Gs(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&Su(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(pu(n)&&et(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&ba(n.parent)&&Gs(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&Su(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function _Ht(n){let d=az(n);if(d&&d.typeExpression)return yo(d.typeExpression);let m=nF(n);if(m)return ew(m)}function pHt(n,d){return!!Ri(n,m=>Oc(m)?"quit":m.kind===169&&m.parent===d)}function yce(n){let d=n.parent.kind===213&&n.parent.expression===n,m=OM(n,!0),v=m,C=!1,E=!1;if(!d){for(;v&&v.kind===219;)Ar(v,1024)&&(E=!0),v=OM(v,!0),C=te<2;v&&Ar(v,1024)&&(E=!0)}let L=0;if(!v||!pe(v)){let Me=Ri(n,Ne=>Ne===v?"quit":Ne.kind===167);return Me&&Me.kind===167?ot(n,S.super_cannot_be_referenced_in_a_computed_property_name):d?ot(n,S.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!v||!v.parent||!(jr(v.parent)||v.parent.kind===210)?ot(n,S.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):ot(n,S.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),_t}if(!d&&m.kind===176&&DZe(n,v,S.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),ia(v)||d?(L=32,!d&&te>=2&&te<=8&&(ls(v)||Yl(v))&&Ihe(n.parent,Me=>{(!mo(Me)||Vp(Me))&&(rr(Me).flags|=2097152)})):L=16,rr(n).flags|=L,v.kind===174&&E&&(mp(n.parent)&&nS(n.parent)?rr(v).flags|=256:rr(v).flags|=128),C&&FDe(n.parent,v),v.parent.kind===210)return te<2?(ot(n,S.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_t):je;let J=v.parent;if(!Yw(J))return ot(n,S.super_can_only_be_referenced_in_a_derived_class),_t;if(MDe(J))return d?_t:tt;let ee=Qc(sr(J)),oe=ee&&dl(ee)[0];if(!oe)return _t;if(v.kind===176&&pHt(n,v))return ot(n,S.super_cannot_be_referenced_in_constructor_arguments),_t;return L===32?Yr(ee):om(oe,ee.thisType);function pe(Me){return d?Me.kind===176:jr(Me.parent)||Me.parent.kind===210?ia(Me)?Me.kind===174||Me.kind===173||Me.kind===177||Me.kind===178||Me.kind===172||Me.kind===175:Me.kind===174||Me.kind===173||Me.kind===177||Me.kind===178||Me.kind===172||Me.kind===171||Me.kind===176:!1}}function IZe(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function NZe(n){return _r(n)&4&&n.target===Nd?fl(n)[0]:void 0}function mHt(n){return Nl(n,d=>d.flags&2097152?re(d.types,NZe):NZe(d))}function AZe(n,d){let m=n,v=d;for(;v;){let C=mHt(v);if(C)return C;if(m.parent.kind!==303)break;m=m.parent.parent,v=cw(m,void 0)}}function BDe(n){if(n.kind===219)return;if(Vae(n)){let m=TB(n);if(m){let v=m.thisParameter;if(v)return Wn(v)}}let d=Jn(n);if(Re||d){let m=IZe(n);if(m){let C=cw(m,void 0),E=AZe(m,C);return E?Oo(E,_De(a2(m))):Ap(C?Pb(C):Tu(m))}let v=Ky(n.parent);if(Hd(v)){let C=v.left;if(il(C)){let{expression:E}=C;if(d&&et(E)){let L=en(v);if(L.commonJsModuleIndicator&&s_(E)===L.symbol)return}return Ap(Tu(E))}}}}function PZe(n){let d=n.parent;if(!Vae(d))return;let m=qw(d);if(m&&m.arguments){let C=Oce(m),E=d.parameters.indexOf(n);if(n.dotDotDotToken)return dIe(C,E,C.length,je,void 0,0);let L=rr(m),J=L.resolvedSignature;L.resolvedSignature=Pt;let ee=E0)return ui(m.name,!0,!1)}}function vHt(n,d){let m=_m(n);if(m){let v=vce(m,d);if(v){let C=Vu(m);if(C&1){let E=(C&2)!==0;v.flags&1048576&&(v=qu(v,J=>!!u2(1,J,E)));let L=u2(1,v,(C&2)!==0);if(!L)return;v=L}if(C&2){let E=Nl(v,qS);return E&&Fr([E,Ket(E)])}return v}}}function bHt(n,d){let m=H_(n,d);if(m){let v=qS(m);return v&&Fr([v,Ket(v)])}}function SHt(n,d){let m=_m(n);if(m){let v=Vu(m),C=vce(m,d);if(C){let E=(v&2)!==0;if(!n.asteriskToken&&C.flags&1048576&&(C=qu(C,L=>!!u2(1,L,E))),n.asteriskToken){let L=YIe(C,E),J=L?.yieldType??Rn,ee=H_(n,d)??Rn,oe=L?.nextType??Y,pe=jce(J,ee,oe,!1);if(E){let Me=jce(J,ee,oe,!0);return Fr([pe,Me])}return pe}return u2(0,C,E)}}}function WDe(n){let d=!1;for(;n.parent&&!vs(n.parent);){if(To(n.parent)&&(d||n.parent.initializer===n))return!0;Wa(n.parent)&&n.parent.initializer===n&&(d=!0),n=n.parent}return!1}function LZe(n,d){let m=!!(Vu(d)&2),v=vce(d,void 0);if(v)return u2(n,v,m)||void 0}function vce(n,d){let m=M6(n);if(m)return m;let v=JDe(n);if(v&&!kae(v)){let E=vc(v),L=Vu(n);return L&1?qu(E,J=>!!(J.flags&58998787)||FIe(J,L,void 0)):L&2?qu(E,J=>!!(J.flags&58998787)||!!yF(J)):E}let C=qw(n);if(C)return H_(C,d)}function OZe(n,d){let v=Oce(n).indexOf(d);return v===-1?void 0:zDe(n,v)}function zDe(n,d){if(fm(n))return d===0?Qe:d===1?fYe(!1):je;let m=rr(n).resolvedSignature===un?un:K6(n);if(Mf(n)&&d===0)return Cce(m,n);let v=m.parameters.length-1;return Xf(m)&&d>=v?Ip(Wn(m.parameters[v]),Pg(d-v),256):x0(m,d)}function xHt(n){let d=wIe(n);return d?pD(d):void 0}function CHt(n,d){if(n.parent.kind===215)return OZe(n.parent,d)}function kHt(n,d){let m=n.parent,{left:v,operatorToken:C,right:E}=m;switch(C.kind){case 64:case 77:case 76:case 78:return n===E?THt(m):void 0;case 57:case 61:let L=H_(m,d);return n===E&&(L&&L.pattern||!L&&!Zhe(m))?wf(v):L;case 56:case 28:return n===E?H_(m,d):void 0;default:return}}function wHt(n){if($g(n)&&n.symbol)return n.symbol;if(et(n))return s_(n);if(lr(n)){let m=wf(n.expression);return xo(n.name)?d(m,n.name):da(m,n.name.escapedText)}if(nl(n)){let m=Tu(n.argumentExpression);if(!uh(m))return;let v=wf(n.expression);return da(v,dh(m))}return;function d(m,v){let C=G$(v.escapedText,v);return C&&Nce(m,C)}}function THt(n){var d,m;let v=Su(n);switch(v){case 0:case 4:let C=wHt(n.left),E=C&&C.valueDeclaration;if(E&&(ls(E)||ep(E))){let ee=Yu(E);return ee&&Oo(yo(ee),Po(C).mapper)||(ls(E)?E.initializer&&wf(n.left):void 0)}return v===0?wf(n.left):FZe(n);case 5:if(bce(n,v))return FZe(n);if(!$g(n.left)||!n.left.symbol)return wf(n.left);{let ee=n.left.symbol.valueDeclaration;if(!ee)return;let oe=ea(n.left,il),pe=Yu(ee);if(pe)return yo(pe);if(et(oe.expression)){let Me=oe.expression,Ne=ni(Me,Me.escapedText,111551,void 0,!0);if(Ne){let vt=Ne.valueDeclaration&&Yu(Ne.valueDeclaration);if(vt){let Ot=X1(oe);if(Ot!==void 0)return aw(yo(vt),Ot)}return}}return Jn(ee)||ee===n.left?void 0:wf(n.left)}case 1:case 6:case 3:case 2:let L;v!==2&&(L=$g(n.left)?(d=n.left.symbol)==null?void 0:d.valueDeclaration:void 0),L||(L=(m=n.symbol)==null?void 0:m.valueDeclaration);let J=L&&Yu(L);return J?yo(J):void 0;case 7:case 8:case 9:return B.fail("Does not apply");default:return B.assertNever(v)}}function bce(n,d=Su(n)){if(d===4)return!0;if(!Jn(n)||d!==5||!et(n.left.expression))return!1;let m=n.left.expression.escapedText,v=ni(n.left,m,111551,void 0,!0,!0);return $z(v?.valueDeclaration)}function FZe(n){if(!n.symbol)return wf(n.left);if(n.symbol.valueDeclaration){let C=Yu(n.symbol.valueDeclaration);if(C){let E=yo(C);if(E)return E}}let d=ea(n.left,il);if(!zh(f_(d.expression,!1,!1)))return;let m=z$(d.expression),v=X1(d);return v!==void 0&&aw(m,v)||void 0}function EHt(n){return!!(_u(n)&262144&&!n.links.type&&oC(n,0)>=0)}function aw(n,d,m){return Nl(n,v=>{var C;if(Dp(v)&&t$(v)!==2){let E=Gm(v),L=Cf(E)||E,J=m||sp(So(d));if(fa(J,L))return Fae(v,J)}else if(v.flags&3670016){let E=da(v,d);if(E)return EHt(E)?void 0:Lb(Wn(E),!!(E.flags&16777216));if(Ba(v)&&Kv(d)&&+d>=0){let L=uF(v,v.target.fixedLength,0,!1,!0);if(L)return L}return(C=tEe(iEe(v),m||sp(So(d))))==null?void 0:C.type}},!0)}function MZe(n,d){if(B.assert(zh(n)),!(n.flags&67108864))return VDe(n,d)}function VDe(n,d){let m=n.parent,v=ed(n)&&jDe(n,d);if(v)return v;let C=cw(m,d);if(C){if(O6(n)){let E=sr(n);return aw(C,E.escapedName,Po(E).nameType)}if(Y1(n)){let E=cs(n);if(E&&Ma(E)){let L=Ho(E.expression),J=uh(L)&&aw(C,dh(L));if(J)return J}}if(n.name){let E=Db(n.name);return Nl(C,L=>{var J;return(J=tEe(iEe(L),E))==null?void 0:J.type},!0)}}}function DHt(n){let d,m;for(let v=0;v{if(Ba(E)){if((v===void 0||dC)?m-d:0,J=L>0&&E.target.combinedFlags&12?aB(E.target,3):0;return L>0&&L<=J?fl(E)[VS(E)-L]:uF(E,v===void 0?E.target.fixedLength:Math.min(E.target.fixedLength,v),m===void 0||C===void 0?J:Math.min(J,m-C),!1,!0)}return(!v||dUS(ee)?Ip(ee,Pg(L)):ee,!0))}function AHt(n,d){let m=n.parent;return vz(m)?H_(n,d):Yv(m)?NHt(m,n,d):void 0}function RZe(n,d){if(ry(n)){let m=cw(n.parent,d);return!m||pc(m)?void 0:aw(m,wO(n.name))}else return H_(n.parent,d)}function V$(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return V$(n.expression);case 294:return!n.expression||V$(n.expression)}return!1}function PHt(n,d){let m=`D${ac(n)},${rf(d)}`;return l0(m)??ES(m,xVt(d,n)??YEe(d,Fo(_i(Di(n.properties,v=>v.symbol?v.kind===303?V$(v.initializer)&&dF(d,v.symbol.escapedName):v.kind===304?dF(d,v.symbol.escapedName):!1:!1),v=>[()=>lG(v.kind===303?v.initializer:v.name),v.symbol.escapedName]),_i(Di(yc(d),v=>{var C;return!!(v.flags&16777216)&&!!((C=n?.symbol)!=null&&C.members)&&!n.symbol.members.has(v.escapedName)&&dF(d,v.escapedName)}),v=>[()=>$e,v.escapedName])),fa))}function LHt(n,d){let m=`D${ac(n)},${rf(d)}`,v=l0(m);if(v)return v;let C=J$(ED(n));return ES(m,YEe(d,Fo(_i(Di(n.properties,E=>!!E.symbol&&E.kind===291&&dF(d,E.symbol.escapedName)&&(!E.initializer||V$(E.initializer))),E=>[E.initializer?()=>lG(E.initializer):()=>Dt,E.symbol.escapedName]),_i(Di(yc(d),E=>{var L;if(!(E.flags&16777216)||!((L=n?.symbol)!=null&&L.members))return!1;let J=n.parent.parent;return E.escapedName===C&&Yv(J)&&i4(J.children).length?!1:!n.symbol.members.has(E.escapedName)&&dF(d,E.escapedName)}),E=>[()=>$e,E.escapedName])),fa))}function cw(n,d){let m=zh(n)?MZe(n,d):H_(n,d),v=Sce(m,n,d);if(v&&!(d&&d&2&&v.flags&8650752)){let C=Nl(v,E=>_r(E)&32?E:S_(E),!0);return C.flags&1048576&&ba(n)?PHt(n,C):C.flags&1048576&&pT(n)?LHt(n,C):C}}function Sce(n,d,m){if(n&&hu(n,465829888)){let v=a2(d);if(v&&m&1&&Lt(v.inferences,Sqt))return xce(n,v.nonFixingMapper);if(v?.returnMapper){let C=xce(n,v.returnMapper);return C.flags&1048576&&v1(C.types,_n)&&v1(C.types,Nt)?qu(C,E=>E!==_n&&E!==Nt):C}}return n}function xce(n,d){return n.flags&465829888?Oo(n,d):n.flags&1048576?Fr(_i(n.types,m=>xce(m,d)),0):n.flags&2097152?wa(_i(n.types,m=>xce(m,d))):n}function H_(n,d){var m;if(n.flags&67108864)return;let v=jZe(n,!d);if(v>=0)return mb[v];let{parent:C}=n;switch(C.kind){case 260:case 169:case 172:case 171:case 208:return yHt(n,d);case 219:case 253:return vHt(n,d);case 229:return SHt(C,d);case 223:return bHt(C,d);case 213:case 214:return OZe(C,n);case 170:return xHt(C);case 216:case 234:return qg(C.type)?H_(C,d):yo(C.type);case 226:return kHt(n,d);case 303:case 304:return VDe(C,d);case 305:return H_(C.parent,d);case 209:{let E=C,L=cw(E,d),J=VP(E.elements,n),ee=(m=rr(E)).spreadIndices??(m.spreadIndices=DHt(E.elements));return HDe(L,J,E.elements.length,ee.first,ee.last)}case 227:return IHt(n,d);case 239:return B.assert(C.parent.kind===228),CHt(C.parent,n);case 217:{if(Jn(C)){if(See(C))return yo(xee(C));let E=KC(C);if(E&&!qg(E.typeExpression.type))return yo(E.typeExpression.type)}return H_(C,d)}case 235:return H_(C,d);case 238:return yo(C.type);case 277:return $m(C);case 294:return AHt(C,d);case 291:case 293:return RZe(C,d);case 286:case 285:return RHt(C,d);case 301:return MHt(C)}}function BZe(n){H$(n,H_(n,void 0),!0)}function H$(n,d,m){ig[nv]=n,mb[nv]=d,Rk[nv]=m,nv++}function wB(){nv--}function jZe(n,d){for(let m=nv-1;m>=0;m--)if(n===ig[m]&&(d||!Rk[m]))return m;return-1}function OHt(n,d){Bk[Xe]=n,Vx[Xe]=d,Xe++}function FHt(){Xe--}function a2(n){for(let d=Xe-1;d>=0;d--)if(Xw(n,Bk[d]))return Vx[d]}function MHt(n){return aw(gEe(!1),rH(n))}function RHt(n,d){if(ny(n)&&d!==4){let m=jZe(n.parent,!d);if(m>=0)return mb[m]}return zDe(n,0)}function Cce(n,d){return ket(d)!==0?BHt(n,d):zHt(n,d)}function BHt(n,d){let m=CIe(n,Y);m=WZe(d,ED(d),m);let v=c2(Mm.IntrinsicAttributes,d);return le(v)||(m=Zq(v,m)),m}function jHt(n,d){if(n.compositeSignatures){let v=[];for(let C of n.compositeSignatures){let E=vc(C);if(pc(E))return E;let L=Mu(E,d);if(!L)return;v.push(L)}return wa(v)}let m=vc(n);return pc(m)?m:Mu(m,d)}function WHt(n){if(jA(n.tagName)){let m=KZe(n),v=Fce(n,m);return pD(v)}let d=Tu(n.tagName);if(d.flags&128){let m=GZe(d,n);if(!m)return _t;let v=Fce(n,m);return pD(v)}return d}function WZe(n,d,m){let v=lUt(d);if(v){let C=WHt(n),E=QZe(v,Jn(n),C,m);if(E)return E}return m}function zHt(n,d){let m=ED(d),v=dUt(m),C=v===void 0?CIe(n,Y):v===""?vc(n):jHt(n,v);if(!C)return v&&K(d.attributes.properties)&&ot(d,S.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,So(v)),Y;if(C=WZe(d,m,C),pc(C))return C;{let E=C,L=c2(Mm.IntrinsicClassAttributes,d);if(!le(L)){let ee=Ag(L.symbol),oe=vc(n),pe;if(ee){let Me=uC([oe],ee,by(ee),Jn(d));pe=Oo(L,Np(ee,Me))}else pe=L;E=Zq(pe,E)}let J=c2(Mm.IntrinsicAttributes,d);return le(J)||(E=Zq(J,E)),E}}function VHt(n){return Rf($,"noImplicitAny")?Of(n,(d,m)=>d===m||!d?d:TXe(d.typeParameters,m.typeParameters)?JHt(d,m):void 0):void 0}function HHt(n,d,m){if(!n||!d)return n||d;let v=Fr([Wn(n),Oo(Wn(d),m)]);return SD(n,v)}function UHt(n,d,m){let v=Lp(n),C=Lp(d),E=v>=C?n:d,L=E===n?d:n,J=E===n?v:C,ee=hv(n)||hv(d),oe=ee&&!hv(E),pe=new Array(J+(oe?1:0));for(let Me=0;Me=Ey(E)&&Me>=Ey(L),Pi=Me>=v?void 0:pF(n,Me),Pn=Me>=C?void 0:pF(d,Me),Bn=Pi===Pn?Pi:Pi?Pn?void 0:Pi:Pn,$i=Aa(1|(xi&&!jt?16777216:0),Bn||`arg${Me}`);$i.links.type=jt?Hf(Ot):Ot,pe[Me]=$i}if(oe){let Me=Aa(1,"args");Me.links.type=Hf(x0(L,J)),L===d&&(Me.links.type=Oo(Me.links.type,m)),pe[J]=Me}return pe}function JHt(n,d){let m=n.typeParameters||d.typeParameters,v;n.typeParameters&&d.typeParameters&&(v=Np(d.typeParameters,n.typeParameters));let C=n.declaration,E=UHt(n,d,v),L=HHt(n.thisParameter,d.thisParameter,v),J=Math.max(n.minArgumentCount,d.minArgumentCount),ee=g1(C,m,L,E,void 0,void 0,J,(n.flags|d.flags)&167);return ee.compositeKind=2097152,ee.compositeSignatures=Fo(n.compositeKind===2097152&&n.compositeSignatures||[n],[d]),v&&(ee.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?r2(n.mapper,v):v),ee}function UDe(n,d){let m=Bs(n,0),v=Di(m,C=>!qHt(C,d));return v.length===1?v[0]:VHt(v)}function qHt(n,d){let m=0;for(;m{let L=u.getTokenEnd();if(v.category===3&&m&&L===m.start&&C===m.length){let J=aN(d.fileName,d.text,L,C,v,E);Xs(m,J)}else(!m||L!==m.start)&&(m=kd(d,L,C,v,E),Ga.add(m))}),u.setText(d.text,n.pos,n.end-n.pos);try{return u.scan(),B.assert(u.reScanSlashToken(!0)===14,"Expected scanner to rescan RegularExpressionLiteral"),!!m}finally{u.setText(""),u.setOnError(void 0)}}return!1}function GHt(n){let d=rr(n);return d.flags&1||(d.flags|=1,r(()=>$Ht(n))),wu}function KHt(n,d){te<2&&Pd(n,$.downlevelIteration?1536:1024);let m=Ho(n.expression,d);return $S(33,m,$e,n.expression)}function XHt(n){return n.isSpread?Ip(n.type,ei):n.type}function BA(n){return n.kind===208&&!!n.initializer||n.kind===303&&BA(n.initializer)||n.kind===304&&!!n.objectAssignmentInitializer||n.kind===226&&n.operatorToken.kind===64}function YHt(n){let d=Ky(n.parent);return fh(d)&&W0(d.parent)}function zZe(n,d,m){let v=n.elements,C=v.length,E=[],L=[];BZe(n);let J=nS(n),ee=hF(n),oe=cw(n,void 0),pe=YHt(n)||!!oe&&Dh(oe,Ne=>lF(Ne)||Dp(Ne)&&!Ne.nameType&&!!dB(Ne.target||Ne)),Me=!1;for(let Ne=0;NeL[vt]&8?fC(Ne,ei)||je:Ne),2):he?gi:Bt,ee))}function VZe(n){if(!(_r(n)&4))return n;let d=n.literalType;return d||(d=n.literalType=ZXe(n),d.objectFlags|=147456),d}function QHt(n){switch(n.kind){case 167:return ZHt(n);case 80:return Kv(n.escapedText);case 9:case 11:return Kv(n.text);default:return!1}}function ZHt(n){return kf(Cy(n),296)}function Cy(n){let d=rr(n.expression);if(!d.resolvedType){if((L_(n.parent.parent)||jr(n.parent.parent)||vf(n.parent.parent))&&Yn(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return d.resolvedType=_t;if(d.resolvedType=Ho(n.expression),ls(n.parent)&&!cd(n.parent)&&Qu(n.parent.parent)){let m=Gg(n.parent.parent),v=ODe(m);v&&(rr(v).flags|=4096,rr(n).flags|=32768,rr(n.parent.parent).flags|=32768)}(d.resolvedType.flags&98304||!kf(d.resolvedType,402665900)&&!fa(d.resolvedType,ai))&&ot(n,S.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return d.resolvedType}function eUt(n){var d;let m=(d=n.declarations)==null?void 0:d[0];return Kv(n.escapedName)||m&&pf(m)&&QHt(m.name)}function HZe(n){var d;let m=(d=n.declarations)==null?void 0:d[0];return oR(n)||m&&pf(m)&&Ma(m.name)&&kf(Cy(m.name),4096)}function qDe(n,d,m,v){let C=[];for(let L=d;L0&&(L=t2(L,$i(),n.symbol,Ot,oe),E=[],C=ta(),xi=!1,Pi=!1,Pn=!1);let Qr=v0(Ho(Ni.expression,d&2));if(U$(Qr)){let Cr=REe(Qr,oe);if(v&&JZe(Cr,v,Ni),Bn=E.length,le(L))continue;L=t2(L,Cr,n.symbol,Ot,oe)}else ot(Ni,S.Spread_types_may_only_be_created_from_object_types),L=_t;continue}else B.assert(Ni.kind===177||Ni.kind===178),zA(Ni);wr&&!(wr.flags&8576)?fa(wr,ai)&&(fa(wr,ei)?Pi=!0:fa(wr,li)?Pn=!0:xi=!0,m&&(jt=!0)):C.set(Zn.escapedName,Zn),E.push(Zn)}if(wB(),le(L))return _t;if(L!==Ts)return E.length>0&&(L=t2(L,$i(),n.symbol,Ot,oe),E=[],C=ta(),xi=!1,Pi=!1),Nl(L,Ni=>Ni===Ts?$i():Ni);return $i();function $i(){let Ni=[];xi&&Ni.push(qDe(n,Bn,E,Qe)),Pi&&Ni.push(qDe(n,Bn,E,ei)),Pn&&Ni.push(qDe(n,Bn,E,li));let Zn=Io(n.symbol,C,F,F,Ni);return Zn.objectFlags|=Ot|128|131072,vt&&(Zn.objectFlags|=4096),jt&&(Zn.objectFlags|=512),m&&(Zn.pattern=n),Zn}}function U$(n){let d=AQe(Nl(n,fv));return!!(d.flags&126615553||d.flags&3145728&&Et(d.types,U$))}function iUt(n){KDe(n)}function nUt(n,d){return zA(n),q$(n)||je}function rUt(n){KDe(n.openingElement),jA(n.closingElement.tagName)?Tce(n.closingElement):Ho(n.closingElement.tagName),wce(n)}function oUt(n,d){return zA(n),q$(n)||je}function sUt(n){KDe(n.openingFragment);let d=en(n);return BV($)&&($.jsxFactory||d.pragmas.has("jsx"))&&!$.jsxFragmentFactory&&!d.pragmas.has("jsxfrag")&&ot(n,$.jsxFactory?S.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:S.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),wce(n),q$(n)||je}function $De(n){return n.includes("-")}function jA(n){return et(n)&&n4(n.escapedText)||e0(n)}function UZe(n,d){return n.initializer?gF(n.initializer,d):Dt}function aUt(n,d=0){let m=n.attributes,v=H_(m,0),C=he?ta():void 0,E=ta(),L=e_,J=!1,ee,oe=!1,pe=2048,Me=J$(ED(n));for(let Ot of m.properties){let jt=Ot.symbol;if(ry(Ot)){let xi=UZe(Ot,d);pe|=_r(xi)&458752;let Pi=Aa(4|jt.flags,jt.escapedName);if(Pi.declarations=jt.declarations,Pi.parent=jt.parent,jt.valueDeclaration&&(Pi.valueDeclaration=jt.valueDeclaration),Pi.links.type=xi,Pi.links.target=jt,E.set(Pi.escapedName,Pi),C?.set(Pi.escapedName,Pi),wO(Ot.name)===Me&&(oe=!0),v){let Pn=da(v,jt.escapedName);Pn&&Pn.declarations&&yb(Pn)&&et(Ot.name)&&vb(Ot.name,Pn.declarations,Ot.name.escapedText)}if(v&&d&2&&!(d&4)&&Xm(Ot)){let Pn=a2(m);B.assert(Pn);let Bn=Ot.initializer.expression;dDe(Pn,Bn,xi)}}else{B.assert(Ot.kind===293),E.size>0&&(L=t2(L,vt(),m.symbol,pe,!1),E=ta());let xi=v0(Ho(Ot.expression,d&2));pc(xi)&&(J=!0),U$(xi)?(L=t2(L,xi,m.symbol,pe,!1),C&&JZe(xi,C,Ot)):(ot(Ot.expression,S.Spread_types_may_only_be_created_from_object_types),ee=ee?wa([ee,xi]):xi)}}J||E.size>0&&(L=t2(L,vt(),m.symbol,pe,!1));let Ne=n.parent.kind===284?n.parent:void 0;if(Ne&&Ne.openingElement===n&&i4(Ne.children).length>0){let Ot=wce(Ne,d);if(!J&&Me&&Me!==""){oe&&ot(m,S._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,So(Me));let jt=cw(n.attributes,void 0),xi=jt&&aw(jt,Me),Pi=Aa(4,Me);Pi.links.type=Ot.length===1?Ot[0]:xi&&Dh(xi,lF)?pv(Ot):Hf(Fr(Ot)),Pi.valueDeclaration=U.createPropertySignature(void 0,So(Me),void 0,void 0),ic(Pi.valueDeclaration,m),Pi.valueDeclaration.symbol=Pi;let Pn=ta();Pn.set(Me,Pi),L=t2(L,Io(m.symbol,Pn,F,F,F),m.symbol,pe,!1)}}if(J)return je;if(ee&&L!==e_)return wa([ee,L]);return ee||(L===e_?vt():L);function vt(){pe|=8192;let Ot=Io(m.symbol,E,F,F,F);return Ot.objectFlags|=pe|128|131072,Ot}}function wce(n,d){let m=[];for(let v of n.children)if(v.kind===12)v.containsOnlyTriviaWhiteSpaces||m.push(Qe);else{if(v.kind===294&&!v.expression)continue;m.push(gF(v,d))}return m}function JZe(n,d,m){for(let v of yc(n))if(!(v.flags&16777216)){let C=d.get(v.escapedName);if(C){let E=ot(C.valueDeclaration,S._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,So(C.escapedName));Xs(E,Mn(m,S.This_spread_always_overwrites_this_property))}}}function cUt(n,d){return aUt(n.parent,d)}function c2(n,d){let m=ED(d),v=m&&W_(m),C=v&&qd(v,n,788968);return C?Qc(C):_t}function Tce(n){let d=rr(n);if(!d.resolvedSymbol){let m=c2(Mm.IntrinsicElements,n);if(le(m))return Se&&ot(n,S.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,So(Mm.IntrinsicElements)),d.resolvedSymbol=ct;{if(!et(n.tagName)&&!e0(n.tagName))return B.fail();let v=e0(n.tagName)?_N(n.tagName):n.tagName.escapedText,C=da(m,v);if(C)return d.jsxFlags|=1,d.resolvedSymbol=C;let E=git(m,sp(So(v)));return E?(d.jsxFlags|=2,d.resolvedSymbol=E):CA(m,v)?(d.jsxFlags|=2,d.resolvedSymbol=m.symbol):(ot(n,S.Property_0_does_not_exist_on_type_1,Cee(n.tagName),"JSX."+Mm.IntrinsicElements),d.resolvedSymbol=ct)}}return d.resolvedSymbol}function GDe(n){let d=n&&en(n),m=d&&rr(d);if(m&&m.jsxImplicitImportContainer===!1)return;if(m&&m.jsxImplicitImportContainer)return m.jsxImplicitImportContainer;let v=WV(jV($,d),$);if(!v)return;let E=$f($)===1?S.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:S.Cannot_find_module_0_or_its_corresponding_type_declarations,L=VXt(d,v),J=hA(L||n,v,E,n),ee=J&&J!==ct?cc(Fu(J)):void 0;return m&&(m.jsxImplicitImportContainer=ee||!1),ee}function ED(n){let d=n&&rr(n);if(d&&d.jsxNamespace)return d.jsxNamespace;if(!d||d.jsxNamespace!==!1){let v=GDe(n);if(!v||v===ct){let C=rv(n);v=ni(n,C,1920,void 0,!1)}if(v){let C=Fu(qd(W_(Fu(v)),Mm.JSX,1920));if(C&&C!==ct)return d&&(d.jsxNamespace=C),C}d&&(d.jsxNamespace=!1)}let m=Fu(W6(Mm.JSX,1920,void 0));if(m!==ct)return m}function qZe(n,d){let m=d&&qd(d.exports,n,788968),v=m&&Qc(m),C=v&&yc(v);if(C){if(C.length===0)return"";if(C.length===1)return C[0].escapedName;C.length>1&&m.declarations&&ot(m.declarations[0],S.The_global_type_JSX_0_may_not_have_more_than_one_property,So(n))}}function lUt(n){return n&&qd(n.exports,Mm.LibraryManagedAttributes,788968)}function uUt(n){return n&&qd(n.exports,Mm.ElementType,788968)}function dUt(n){return qZe(Mm.ElementAttributesPropertyNameContainer,n)}function J$(n){return qZe(Mm.ElementChildrenAttributeNameContainer,n)}function $Ze(n,d){if(n.flags&4)return[Pt];if(n.flags&128){let C=GZe(n,d);return C?[Fce(d,C)]:(ot(d,S.Property_0_does_not_exist_on_type_1,n.value,"JSX."+Mm.IntrinsicElements),F)}let m=S_(n),v=Bs(m,1);return v.length===0&&(v=Bs(m,0)),v.length===0&&m.flags&1048576&&(v=U2e(_i(m.types,C=>$Ze(C,d)))),v}function GZe(n,d){let m=c2(Mm.IntrinsicElements,d);if(!le(m)){let v=n.value,C=da(m,Hl(v));if(C)return Wn(C);let E=Zk(m,Qe);return E||void 0}return je}function fUt(n,d,m){if(n===1){let C=YZe(m);C&&Th(d,C,em,m.tagName,S.Its_return_type_0_is_not_a_valid_JSX_element,v)}else if(n===0){let C=XZe(m);C&&Th(d,C,em,m.tagName,S.Its_instance_type_0_is_not_a_valid_JSX_element,v)}else{let C=YZe(m),E=XZe(m);if(!C||!E)return;let L=Fr([C,E]);Th(d,L,em,m.tagName,S.Its_element_type_0_is_not_a_valid_JSX_element,v)}function v(){let C=Jl(m.tagName);return bs(void 0,S._0_cannot_be_used_as_a_JSX_component,C)}}function KZe(n){var d;B.assert(jA(n.tagName));let m=rr(n);if(!m.resolvedJsxElementAttributesType){let v=Tce(n);if(m.jsxFlags&1)return m.resolvedJsxElementAttributesType=Wn(v)||_t;if(m.jsxFlags&2){let C=e0(n.tagName)?_N(n.tagName):n.tagName.escapedText;return m.resolvedJsxElementAttributesType=((d=TA(c2(Mm.IntrinsicElements,n),C))==null?void 0:d.type)||_t}else return m.resolvedJsxElementAttributesType=_t}return m.resolvedJsxElementAttributesType}function XZe(n){let d=c2(Mm.ElementClass,n);if(!le(d))return d}function q$(n){return c2(Mm.Element,n)}function YZe(n){let d=q$(n);if(d)return Fr([d,Wt])}function _Ut(n){let d=ED(n);if(!d)return;let m=uUt(d);if(!m)return;let v=QZe(m,Jn(n));if(!(!v||le(v)))return v}function QZe(n,d,...m){let v=Qc(n);if(n.flags&524288){let C=Po(n).typeParameters;if(K(C)>=m.length){let E=uC(m,C,m.length,d);return K(E)===0?v:B6(n,E)}}if(K(v.typeParameters)>=m.length){let C=uC(m,v.typeParameters,m.length,d);return Eb(v,C)}}function pUt(n){let d=c2(Mm.IntrinsicElements,n);return d?yc(d):F}function mUt(n){($.jsx||0)===0&&ot(n,S.Cannot_use_JSX_unless_the_jsx_flag_is_provided),q$(n)===void 0&&Se&&ot(n,S.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function KDe(n){let d=Mf(n);if(d&&_Xt(n),mUt(n),LDe(n),d){let m=n,v=K6(m);Rce(v,n);let C=_Ut(m);if(C!==void 0){let E=m.tagName,L=jA(E)?sp(Cee(E)):Ho(E);Th(L,C,em,E,S.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let J=Jl(E);return bs(void 0,S._0_cannot_be_used_as_a_JSX_component,J)})}else fUt(ket(m),vc(v),m)}}function Ece(n,d,m){if(n.flags&524288&&(XT(n,d)||TA(n,d)||tB(d)&&y1(n,Qe)||m&&$De(d)))return!0;if(n.flags&33554432)return Ece(n.baseType,d,m);if(n.flags&3145728&&EB(n)){for(let v of n.types)if(Ece(v,d,m))return!0}return!1}function EB(n){return!!(n.flags&524288&&!(_r(n)&512)||n.flags&67108864||n.flags&33554432&&EB(n.baseType)||n.flags&1048576&&Lt(n.types,EB)||n.flags&2097152&&Et(n.types,EB))}function hUt(n,d){if(mXt(n),n.expression){let m=Ho(n.expression,d);return n.dotDotDotToken&&m!==je&&!Eh(m)&&ot(n,S.JSX_spread_child_must_be_an_array_type),m}else return _t}function XDe(n){return n.valueDeclaration?f2(n.valueDeclaration):0}function YDe(n){if(n.flags&8192||_u(n)&4)return!0;if(Jn(n.valueDeclaration)){let d=n.valueDeclaration.parent;return d&&Yn(d)&&Su(d)===3}}function QDe(n,d,m,v,C,E=!0){let L=E?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return ZZe(n,d,m,v,C,L)}function ZZe(n,d,m,v,C,E){var L;let J=lh(C,m);if(d){if(te<2&&eet(C))return E&&ot(E,S.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(J&64)return E&&ot(E,S.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Lo(C),Dn(OA(C))),!1;if(!(J&256)&&((L=C.declarations)!=null&&L.some(Xme)))return E&&ot(E,S.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Lo(C)),!1}if(J&64&&eet(C)&&(FM(n)||Xhe(n)||Om(n.parent)&&$z(n.parent.parent))){let oe=eb(bm(C));if(oe&&lKt(n))return E&&ot(E,S.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Lo(C),Hh(oe.name)),!1}if(!(J&6))return!0;if(J&2){let oe=eb(bm(C));return nNe(n,oe)?!0:(E&&ot(E,S.Property_0_is_private_and_only_accessible_within_class_1,Lo(C),Dn(OA(C))),!1)}if(d)return!0;let ee=mit(n,oe=>{let pe=Qc(sr(oe));return bQe(pe,C,m)});return!ee&&(ee=gUt(n),ee=ee&&bQe(ee,C,m),J&256||!ee)?(E&&ot(E,S.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Lo(C),Dn(OA(C)||v)),!1):J&256?!0:(v.flags&262144&&(v=v.isThisType?V_(v):Cf(v)),!v||!A6(v,ee)?(E&&ot(E,S.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Lo(C),Dn(ee),Dn(v)),!1):!0)}function gUt(n){let d=yUt(n),m=d?.type&&yo(d.type);if(m)m.flags&262144&&(m=V_(m));else{let v=f_(n,!1,!1);vs(v)&&(m=BDe(v))}if(m&&_r(m)&7)return dD(m)}function yUt(n){let d=f_(n,!1,!1);return d&&vs(d)?Qw(d):void 0}function eet(n){return!!w$(n,d=>!(d.flags&8192))}function $6(n){return ky(Ho(n),n)}function $$(n){return S0(n,50331648)}function ZDe(n){return $$(n)?Pb(n):n}function vUt(n,d){let m=Xc(n)?zp(n):void 0;if(n.kind===106){ot(n,S.The_value_0_cannot_be_used_here,"null");return}if(m!==void 0&&m.length<100){if(et(n)&&m==="undefined"){ot(n,S.The_value_0_cannot_be_used_here,"undefined");return}ot(n,d&16777216?d&33554432?S._0_is_possibly_null_or_undefined:S._0_is_possibly_undefined:S._0_is_possibly_null,m)}else ot(n,d&16777216?d&33554432?S.Object_is_possibly_null_or_undefined:S.Object_is_possibly_undefined:S.Object_is_possibly_null)}function bUt(n,d){ot(n,d&16777216?d&33554432?S.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:S.Cannot_invoke_an_object_which_is_possibly_undefined:S.Cannot_invoke_an_object_which_is_possibly_null)}function tet(n,d,m){if(he&&n.flags&2){if(Xc(d)){let C=zp(d);if(C.length<100)return ot(d,S._0_is_of_type_unknown,C),_t}return ot(d,S.Object_is_of_type_unknown),_t}let v=H6(n,50331648);if(v&50331648){m(d,v);let C=Pb(n);return C.flags&229376?_t:C}return n}function ky(n,d){return tet(n,d,vUt)}function iet(n,d){let m=ky(n,d);if(m.flags&16384){if(Xc(d)){let v=zp(d);if(et(d)&&v==="undefined")return ot(d,S.The_value_0_cannot_be_used_here,v),m;if(v.length<100)return ot(d,S._0_is_possibly_undefined,v),m}ot(d,S.Object_is_possibly_undefined)}return m}function Dce(n,d,m){return n.flags&64?SUt(n,d):tIe(n,n.expression,$6(n.expression),n.name,d,m)}function SUt(n,d){let m=Ho(n.expression),v=gB(m,n.expression);return tce(tIe(n,n.expression,ky(v,n.expression),n.name,d),n,v!==m)}function net(n,d){let m=Xz(n)&&bx(n.left)?ky(z$(n.left),n.left):$6(n.left);return tIe(n,n.left,m,n.right,d)}function eIe(n){for(;n.parent.kind===217;)n=n.parent;return W0(n.parent)&&n.parent.expression===n}function G$(n,d){for(let m=Jz(d);m;m=Zd(m)){let{symbol:v}=m,C=rR(v,n),E=v.members&&v.members.get(C)||v.exports&&v.exports.get(C);if(E)return E}}function xUt(n){if(!Zd(n))return Gi(n,S.Private_identifiers_are_not_allowed_outside_class_bodies);if(!CH(n.parent)){if(!Kg(n))return Gi(n,S.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);let d=Yn(n.parent)&&n.parent.operatorToken.kind===103;if(!Ice(n)&&!d)return Gi(n,S.Cannot_find_name_0,mr(n))}return!1}function CUt(n){xUt(n);let d=Ice(n);return d&&X$(d,void 0,!1),je}function Ice(n){if(!Kg(n))return;let d=rr(n);return d.resolvedSymbol===void 0&&(d.resolvedSymbol=G$(n.escapedText,n)),d.resolvedSymbol}function Nce(n,d){return da(n,d.escapedName)}function kUt(n,d,m){let v,C=yc(n);C&&re(C,L=>{let J=L.valueDeclaration;if(J&&pf(J)&&xo(J.name)&&J.name.escapedText===d.escapedText)return v=L,!0});let E=xh(d);if(v){let L=B.checkDefined(v.valueDeclaration),J=B.checkDefined(Zd(L));if(m?.valueDeclaration){let ee=m.valueDeclaration,oe=Zd(ee);if(B.assert(!!oe),Ri(oe,pe=>J===pe)){let pe=ot(d,S.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,E,Dn(n));return Xs(pe,Mn(ee,S.The_shadowing_declaration_of_0_is_defined_here,E),Mn(L,S.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,E)),!0}}return ot(d,S.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,E,xh(J.name||Zte)),!0}return!1}function ret(n,d){return(kb(d)||FM(n)&&h1(d))&&f_(n,!0,!1)===sC(d)}function tIe(n,d,m,v,C,E){let L=rr(d).resolvedSymbol,J=ak(n),ee=S_(J!==0||eIe(n)?Ap(m):m),oe=pc(ee)||ee===Rn,pe;if(xo(v)){(te<9||te<99||!ce)&&(J!==0&&Pd(n,1048576),J!==1&&Pd(n,524288));let Ne=G$(v.escapedText,v);if(J&&Ne&&Ne.valueDeclaration&&pu(Ne.valueDeclaration)&&Gi(v,S.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,mr(v)),oe){if(Ne)return le(ee)?_t:ee;if(Jz(v)===void 0)return Gi(v,S.Private_identifiers_are_not_allowed_outside_class_bodies),je}if(pe=Ne&&Nce(m,Ne),pe===void 0){if(kUt(m,v,Ne))return _t;let vt=Jz(v);vt&&W3(en(vt),$.checkJs)&&Gi(v,S.Private_field_0_must_be_declared_in_an_enclosing_class,mr(v))}else pe.flags&65536&&!(pe.flags&32768)&&J!==1&&ot(n,S.Private_accessor_was_defined_without_a_getter)}else{if(oe)return et(d)&&L&&RA(n,2,void 0,m),le(ee)?_t:ee;pe=da(ee,v.escapedText,zce(ee),n.kind===166)}RA(n,2,pe,m);let Me;if(pe){let Ne=ZIe(pe,v);if(yb(Ne)&&AEe(n,Ne)&&Ne.declarations&&vb(v,Ne.declarations,v.escapedText),wUt(pe,n,v),X$(pe,n,_et(d,L)),rr(n).resolvedSymbol=pe,QDe(n,d.kind===108,oN(n),ee,pe),ttt(n,pe,J))return ot(v,S.Cannot_assign_to_0_because_it_is_a_read_only_property,mr(v)),_t;Me=ret(n,pe)?It:E||EV(n)?aC(pe):Wn(pe)}else{let Ne=!xo(v)&&(J===0||!gD(m)||kO(m))?TA(ee,v.escapedText):void 0;if(!(Ne&&Ne.type)){let vt=iIe(n,m.symbol,!0);return!vt&&cB(m)?je:m.symbol===Ke?(Ke.exports.has(v.escapedText)&&Ke.exports.get(v.escapedText).flags&418?ot(v,S.Property_0_does_not_exist_on_type_1,So(v.escapedText),Dn(m)):Se&&ot(v,S.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Dn(m)),je):(v.escapedText&&!JE(n)&&set(v,kO(m)?ee:m,vt),_t)}Ne.isReadonly&&(nS(n)||yZ(n))&&ot(n,S.Index_signature_in_type_0_only_permits_reading,Dn(ee)),Me=Ne.type,$.noUncheckedIndexedAccess&&ak(n)!==1&&(Me=Fr([Me,se])),$.noPropertyAccessFromIndexSignature&&lr(n)&&ot(v,S.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,So(v.escapedText)),Ne.declaration&&DS(Ne.declaration)&&vb(v,[Ne.declaration],v.escapedText)}return oet(n,pe,Me,v,C)}function iIe(n,d,m){var v;let C=en(n);if(C&&$.checkJs===void 0&&C.checkJsDirective===void 0&&(C.scriptKind===1||C.scriptKind===2)){let E=re(d?.declarations,en),L=!d?.valueDeclaration||!jr(d.valueDeclaration)||((v=d.valueDeclaration.heritageClauses)==null?void 0:v.length)||iS(!1,d.valueDeclaration);return!(C!==E&&E&&Zb(E))&&!(m&&d&&d.flags&32&&L)&&!(n&&m&&lr(n)&&n.expression.kind===110&&L)}return!1}function oet(n,d,m,v,C){let E=ak(n);if(E===1)return Lb(m,!!(d&&d.flags&16777216));if(d&&!(d.flags&98311)&&!(d.flags&8192&&m.flags&1048576)&&!rle(d.declarations))return m;if(m===It)return wb(n,d);m=PDe(m,n,C);let L=!1;if(he&&ve&&il(n)&&n.expression.kind===110){let ee=d&&d.valueDeclaration;if(ee&&iit(ee)&&!ia(ee)){let oe=CB(n);oe.kind===176&&oe.parent===ee.parent&&!(ee.flags&33554432)&&(L=!0)}}else he&&d&&d.valueDeclaration&&lr(d.valueDeclaration)&&qM(d.valueDeclaration)&&CB(n)===CB(d.valueDeclaration)&&(L=!0);let J=Fb(n,m,L?hC(m):m);return L&&!V6(m)&&V6(J)?(ot(v,S.Property_0_is_used_before_being_assigned,Lo(d)),m):E?Ab(J):J}function wUt(n,d,m){let{valueDeclaration:v}=n;if(!v||en(d).isDeclarationFile)return;let C,E=mr(m);nIe(d)&&!rjt(v)&&!(il(d)&&il(d.expression))&&!AS(v,m)&&!(pu(v)&&ple(v)&256)&&(ce||!TUt(n))?C=ot(m,S.Property_0_is_used_before_its_initialization,E):v.kind===263&&d.parent.kind!==183&&!(v.flags&33554432)&&!AS(v,m)&&(C=ot(m,S.Class_0_used_before_its_declaration,E)),C&&Xs(C,Mn(v,S._0_is_declared_here,E))}function nIe(n){return!!Ri(n,d=>{switch(d.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Ds(d.parent)&&Yl(d.parent.parent)?!0:"quit";default:return Kg(d)?!1:"quit"}})}function TUt(n){if(!(n.parent.flags&32))return!1;let d=Wn(n.parent);for(;;){if(d=d.symbol&&EUt(d),!d)return!1;let m=da(d,n.escapedName);if(m&&m.valueDeclaration)return!0}}function EUt(n){let d=dl(n);if(d.length!==0)return wa(d)}function set(n,d,m){let v,C;if(!xo(n)&&d.flags&1048576&&!(d.flags&402784252)){for(let L of d.types)if(!da(L,n.escapedText)&&!TA(L,n.escapedText)){v=bs(v,S.Property_0_does_not_exist_on_type_1,Hc(n),Dn(L));break}}if(aet(n.escapedText,d)){let L=Hc(n),J=Dn(d);v=bs(v,S.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,L,J,J+"."+L)}else{let L=MB(d);if(L&&da(L,n.escapedText))v=bs(v,S.Property_0_does_not_exist_on_type_1,Hc(n),Dn(d)),C=Mn(n,S.Did_you_forget_to_use_await);else{let J=Hc(n),ee=Dn(d),oe=NUt(J,d);if(oe!==void 0)v=bs(v,S.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,J,ee,oe);else{let pe=rIe(n,d);if(pe!==void 0){let Me=fu(pe),Ne=m?S.Property_0_may_not_exist_on_type_1_Did_you_mean_2:S.Property_0_does_not_exist_on_type_1_Did_you_mean_2;v=bs(v,Ne,J,ee,Me),C=pe.valueDeclaration&&Mn(pe.valueDeclaration,S._0_is_declared_here,Me)}else{let Me=DUt(d)?S.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:S.Property_0_does_not_exist_on_type_1;v=bs(Z2e(v,d),Me,J,ee)}}}}let E=zv(en(n),n,v);C&&Xs(E,C),u0(!m||v.code!==S.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,E)}function DUt(n){return $.lib&&!$.lib.includes("dom")&&RVt(n,d=>d.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(So(d.symbol.escapedName)))&&Nb(n)}function aet(n,d){let m=d.symbol&&da(Wn(d.symbol),n);return m!==void 0&&!!m.valueDeclaration&&ia(m.valueDeclaration)}function IUt(n){let d=xh(n),v=JQ().get(d);return v&&CP(v.keys())}function NUt(n,d){let m=S_(d).symbol;if(!m)return;let v=fu(m),E=JQ().get(v);if(E){for(let[L,J]of E)if(sn(J,n))return L}}function cet(n,d){return K$(n,yc(d),106500)}function rIe(n,d){let m=yc(d);if(typeof n!="string"){let v=n.parent;lr(v)&&(m=Di(m,C=>pet(v,d,C))),n=mr(n)}return K$(n,m,111551)}function uet(n,d){let m=fs(n)?n:mr(n),v=yc(d);return(m==="for"?St(v,E=>fu(E)==="htmlFor"):m==="class"?St(v,E=>fu(E)==="className"):void 0)??K$(m,v,111551)}function det(n,d){let m=rIe(n,d);return m&&fu(m)}function AUt(n,d,m){let v=qd(n,d,m);if(v)return v;let C;return n===Be?C=ro(["string","number","boolean","object","bigint","symbol"],L=>n.has(L.charAt(0).toUpperCase()+L.slice(1))?Aa(524288,L):void 0).concat(as(n.values())):C=as(n.values()),K$(So(d),C,m)}function fet(n,d,m){return B.assert(d!==void 0,"outername should always be defined"),Ci(n,d,m,void 0,!1,!1)}function oIe(n,d){return d.exports&&K$(mr(n),tC(d),2623475)}function PUt(n,d,m){function v(L){let J=XT(n,L);if(J){let ee=ID(Wn(J));return!!ee&&Ey(ee)>=1&&fa(m,x0(ee,0))}return!1}let C=nS(d)?"set":"get";if(!v(C))return;let E=hR(d.expression);return E===void 0?E=C:E+="."+C,E}function LUt(n,d){let m=d.types.filter(v=>!!(v.flags&128));return Rw(n.value,m,v=>v.value)}function K$(n,d,m){return Rw(n,d,v);function v(C){let E=fu(C);if(!Ro(E,'"')){if(C.flags&m)return E;if(C.flags&2097152){let L=x6(C);if(L&&L.flags&m)return E}}}}function X$(n,d,m){let v=n&&n.flags&106500&&n.valueDeclaration;if(!v)return;let C=Jp(v,2),E=n.valueDeclaration&&pf(n.valueDeclaration)&&xo(n.valueDeclaration.name);if(!(!C&&!E)&&!(d&&EV(d)&&!(n.flags&65536))){if(m){let L=Ri(d,Oc);if(L&&L.symbol===n)return}(_u(n)&1?Po(n).target:n).isReferenced=-1}}function _et(n,d){return n.kind===110||!!d&&Xc(n)&&d===s_(hp(n))}function OUt(n,d){switch(n.kind){case 211:return sIe(n,n.expression.kind===108,d,Ap(Ho(n.expression)));case 166:return sIe(n,!1,d,Ap(Ho(n.left)));case 205:return sIe(n,!1,d,yo(n))}}function pet(n,d,m){return aIe(n,n.kind===211&&n.expression.kind===108,!1,d,m)}function sIe(n,d,m,v){if(pc(v))return!0;let C=da(v,m);return!!C&&aIe(n,d,!1,v,C)}function aIe(n,d,m,v,C){if(pc(v))return!0;if(C.valueDeclaration&&u_(C.valueDeclaration)){let E=Zd(C.valueDeclaration);return!qf(n)&&!!Ri(n,L=>L===E)}return ZZe(n,d,m,v,C)}function FUt(n){let d=n.initializer;if(d.kind===261){let m=d.declarations[0];if(m&&!Rs(m.name))return sr(m)}else if(d.kind===80)return s_(d)}function MUt(n){return r_(n).length===1&&!!y1(n,ei)}function RUt(n){let d=fc(n);if(d.kind===80){let m=s_(d);if(m.flags&3){let v=n,C=n.parent;for(;C;){if(C.kind===249&&v===C.statement&&FUt(C)===m&&MUt(wf(C.expression)))return!0;v=C,C=C.parent}}}return!1}function BUt(n,d){return n.flags&64?jUt(n,d):met(n,$6(n.expression),d)}function jUt(n,d){let m=Ho(n.expression),v=gB(m,n.expression);return tce(met(n,ky(v,n.expression),d),n,v!==m)}function met(n,d,m){let v=ak(n)!==0||eIe(n)?Ap(d):d,C=n.argumentExpression,E=Ho(C);if(le(v)||v===Rn)return v;if(zce(v)&&!xc(C))return ot(C,S.A_const_enum_member_can_only_be_accessed_using_a_string_literal),_t;let L=RUt(C)?ei:E,J=ak(n),ee;J===0?ee=32:(ee=4|(gD(v)&&!kO(v)?2:0),J===2&&(ee|=32));let oe=fC(v,L,ee,n)||_t;return Ctt(oet(n,rr(n).resolvedSymbol,oe,C,m),n)}function het(n){return W0(n)||pk(n)||Mf(n)}function DD(n){return het(n)&&re(n.typeArguments,Ia),n.kind===215?Ho(n.template):Mf(n)?Ho(n.attributes):Yn(n)?Ho(n.left):W0(n)&&re(n.arguments,d=>{Ho(d)}),Pt}function wy(n){return DD(n),ri}function WUt(n,d,m){let v,C,E=0,L,J=-1,ee;B.assert(!d.length);for(let oe of n){let pe=oe.declaration&&sr(oe.declaration),Me=oe.declaration&&oe.declaration.parent;!C||pe===C?v&&Me===v?L=L+1:(v=Me,L=E):(L=E=d.length,v=Me),C=pe,S5e(oe)?(J++,ee=J,E++):ee=L,d.splice(ee,0,m?TBt(oe,m):oe)}}function Ace(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function cIe(n){return zi(n,Ace)}function get(n){return!!(n.flags&16384)}function zUt(n){return!!(n.flags&49155)}function Pce(n,d,m,v=!1){let C,E=!1,L=Lp(m),J=Ey(m);if(n.kind===215)if(C=d.length,n.template.kind===228){let ee=pa(n.template.templateSpans);E=Ul(ee.literal)||!!ee.literal.isUnterminated}else{let ee=n.template;B.assert(ee.kind===15),E=!!ee.isUnterminated}else if(n.kind===170)C=Tet(n,m);else if(n.kind===226)C=1;else if(Mf(n)){if(E=n.attributes.end===n.end,E)return!0;C=J===0?d.length:1,L=d.length===0?L:1,J=Math.min(J,1)}else if(n.arguments){C=v?d.length+1:d.length,E=n.arguments.end===n.end;let ee=cIe(d);if(ee>=0)return ee>=Ey(m)&&(hv(m)||eeL)return!1;if(E||C>=J)return!0;for(let ee=C;ee=v&&d.length<=m}function yet(n,d){let m;return!!(n.target&&(m=l2(n.target,d))&&NA(m))}function ID(n){return DB(n,0,!1)}function vet(n){return DB(n,0,!1)||DB(n,1,!1)}function DB(n,d,m){if(n.flags&524288){let v=y0(n);if(m||v.properties.length===0&&v.indexInfos.length===0){if(d===0&&v.callSignatures.length===1&&v.constructSignatures.length===0)return v.callSignatures[0];if(d===1&&v.constructSignatures.length===1&&v.callSignatures.length===0)return v.constructSignatures[0]}}}function bet(n,d,m,v){let C=bB(KXe(n),n,0,v),E=IB(d),L=m&&(E&&E.flags&262144?m.nonFixingMapper:m.mapper),J=L?LA(d,L):d;return cDe(J,n,(ee,oe)=>{Ob(C.inferences,ee,oe)}),m||lDe(d,n,(ee,oe)=>{Ob(C.inferences,ee,oe,128)}),oB(n,SDe(C),Jn(d.declaration))}function VUt(n,d,m,v){let C=Cce(d,n),E=X6(n.attributes,C,v,m);return Ob(v.inferences,E,C),SDe(v)}function xet(n){if(!n)return wi;let d=Ho(n);return Oge(n)?d:I3(n.parent)?Pb(d):qf(n.parent)?ece(d):d}function uIe(n,d,m,v,C){if(Mf(n))return VUt(n,d,v,C);if(n.kind!==170&&n.kind!==226){let ee=Et(d.typeParameters,pe=>!!YT(pe)),oe=H_(n,ee?8:0);if(oe){let pe=vc(d);if(gC(pe)){let Me=a2(n);if(!(!ee&&H_(n,8)!==oe)){let jt=_De(Yzt(Me,1)),xi=Oo(oe,jt),Pi=ID(xi),Pn=Pi&&Pi.typeParameters?pD(aEe(Pi,Pi.typeParameters)):xi;Ob(C.inferences,Pn,pe,128)}let vt=bB(d.typeParameters,d,C.flags),Ot=Oo(oe,Me&&Me.returnMapper);Ob(vt.inferences,Ot,pe),C.returnMapper=Lt(vt.inferences,Y6)?_De(tVt(vt)):void 0}}}let E=NB(d),L=E?Math.min(Lp(d)-1,m.length):m.length;if(E&&E.flags&262144){let ee=St(C.inferences,oe=>oe.typeParameter===E);ee&&(ee.impliedArity=zi(m,Ace,L)<0?m.length-L:void 0)}let J=ew(d);if(J&&gC(J)){let ee=wet(n);Ob(C.inferences,xet(ee),J)}for(let ee=0;ee=m-1){let pe=n[m-1];if(Ace(pe)){let Me=pe.kind===237?pe.type:X6(pe.expression,v,C,E);return US(Me)?Cet(Me):Hf($S(33,Me,$e,pe.kind===230?pe.expression:pe),L)}}let J=[],ee=[],oe=[];for(let pe=d;pebs(void 0,S.Type_0_does_not_satisfy_the_constraint_1):void 0,Me=v||S.Type_0_does_not_satisfy_the_constraint_1;J||(J=Np(E,L));let Ne=L[ee];if(!o_(Ne,om(Oo(oe,J),Ne),m?d[ee]:void 0,Me,pe))return}}return L}function ket(n){if(jA(n.tagName))return 2;let d=S_(Ho(n.tagName));return K(Bs(d,1))?0:K(Bs(d,0))?1:2}function HUt(n,d,m,v,C,E,L){let J=Cce(d,n),ee=X6(n.attributes,J,void 0,v),oe=v&4?vB(ee):ee;return pe()&&qEe(oe,J,m,C?n.tagName:void 0,n.attributes,void 0,E,L);function pe(){var Me;if(GDe(n))return!0;let Ne=(ny(n)||SE(n))&&!(jA(n.tagName)||e0(n.tagName))?Ho(n.tagName):void 0;if(!Ne)return!0;let vt=Bs(Ne,0);if(!K(vt))return!0;let Ot=Iit(n);if(!Ot)return!0;let jt=Ml(Ot,111551,!0,!1,n);if(!jt)return!0;let xi=Wn(jt),Pi=Bs(xi,0);if(!K(Pi))return!0;let Pn=!1,Bn=0;for(let Ni of Pi){let Zn=x0(Ni,0),wr=Bs(Zn,0);if(K(wr))for(let Qr of wr){if(Pn=!0,hv(Qr))return!0;let Cr=Lp(Qr);Cr>Bn&&(Bn=Cr)}}if(!Pn)return!0;let $i=1/0;for(let Ni of vt){let Zn=Ey(Ni);Zn<$i&&($i=Zn)}if($i<=Bn)return!0;if(C){let Ni=Mn(n.tagName,S.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,zp(n.tagName),$i,zp(Ot),Bn),Zn=(Me=ug(n.tagName))==null?void 0:Me.valueDeclaration;Zn&&Xs(Ni,Mn(Zn,S._0_is_declared_here,zp(n.tagName))),L&&L.skipLogging&&(L.errors||(L.errors=[])).push(Ni),L.skipLogging||Ga.add(Ni)}return!1}}function Lce(n){return n=fc(n),xH(n)?fc(n.expression):n}function Y$(n,d,m,v,C,E,L,J){let ee={errors:void 0,skipLogging:!0};if(Mf(n))return HUt(n,m,v,C,E,L,ee)?void 0:(B.assert(!E||!!ee.errors,"jsx should have errors when reporting errors"),ee.errors||F);let oe=ew(m);if(oe&&oe!==wi&&!(uT(n)||Gs(n)&&mp(n.expression))){let Ot=wet(n),jt=xet(Ot),xi=E?Ot||n:void 0,Pi=S.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Th(jt,oe,v,xi,Pi,L,ee))return B.assert(!E||!!ee.errors,"this parameter should have errors when reporting errors"),ee.errors||F}let pe=S.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Me=NB(m),Ne=Me?Math.min(Lp(m)-1,d.length):d.length;for(let Ot=0;Ot{C.push(E.expression)}),C}if(n.kind===170)return UUt(n);if(n.kind===226)return[n.left];if(Mf(n))return n.attributes.properties.length>0||ny(n)&&n.parent.children.length>0?[n.attributes]:F;let d=n.arguments||F,m=cIe(d);if(m>=0){let v=d.slice(0,m);for(let C=m;C{var oe;let pe=L.target.elementFlags[ee],Me=Q$(E,pe&4?Hf(J):J,!!(pe&12),(oe=L.target.labeledElementDeclarations)==null?void 0:oe[ee]);v.push(Me)}):v.push(E)}return v}return d}function UUt(n){let d=n.expression,m=wIe(n);if(m){let v=[];for(let C of m.parameters){let E=Wn(C);v.push(Q$(d,E))}return v}return B.fail()}function Tet(n,d){return $.experimentalDecorators?JUt(n,d):Math.min(Math.max(Lp(d),1),2)}function JUt(n,d){switch(n.parent.kind){case 263:case 231:return 1;case 172:return G0(n.parent)?3:2;case 174:case 177:case 178:return d.parameters.length<=2?2:3;case 169:return 3;default:return B.fail()}}function Eet(n){let d=en(n),{start:m,length:v}=rE(d,lr(n.expression)?n.expression.name:n.expression);return{start:m,length:v,sourceFile:d}}function Z$(n,d,...m){if(Gs(n)){let{sourceFile:v,start:C,length:E}=Eet(n);return"message"in d?kd(v,C,E,d,...m):iZ(v,d)}else return"message"in d?Mn(n,d,...m):zv(en(n),n,d)}function qUt(n){return W0(n)?lr(n.expression)?n.expression.name:n.expression:pk(n)?lr(n.tag)?n.tag.name:n.tag:Mf(n)?n.tagName:n}function $Ut(n){if(!Gs(n)||!et(n.expression))return!1;let d=ni(n.expression,n.expression.escapedText,111551,void 0,!1),m=d?.valueDeclaration;if(!m||!To(m)||!Ex(m.parent)||!uT(m.parent.parent)||!et(m.parent.parent.expression))return!1;let v=yEe(!1);return v?ug(m.parent.parent.expression,!0)===v:!1}function Det(n,d,m,v){var C;let E=cIe(m);if(E>-1)return Mn(m[E],S.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let L=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,ee=Number.NEGATIVE_INFINITY,oe=Number.POSITIVE_INFINITY,pe;for(let jt of d){let xi=Ey(jt),Pi=Lp(jt);xiee&&(ee=xi),m.lengthC?L=Math.min(L,ee):oe1&&(Bn=Zn(Ne,l1,Ot,$i)),Bn||(Bn=Zn(Ne,em,Ot,$i)),Bn)return Bn;if(Bn=KUt(n,Ne,vt,!!m,v),rr(n).resolvedSignature=Bn,pe)if(!E&&oe&&(E=S.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),xi)if(xi.length===1||xi.length>3){let wr=xi[xi.length-1],Qr;xi.length>3&&(Qr=bs(Qr,S.The_last_overload_gave_the_following_error),Qr=bs(Qr,S.No_overload_matches_this_call)),E&&(Qr=bs(Qr,E));let Cr=Y$(n,vt,wr,em,0,!0,()=>Qr,void 0);if(Cr)for(let ra of Cr)wr.declaration&&xi.length>3&&Xs(ra,Mn(wr.declaration,S.The_last_overload_is_declared_here)),Ni(wr,ra),Ga.add(ra);else B.fail("No error for last overload signature")}else{let wr=[],Qr=0,Cr=Number.MAX_VALUE,ra=0,Ys=0;for(let nu of xi){let kn=Y$(n,vt,nu,em,0,!0,()=>bs(void 0,S.Overload_0_of_1_2_gave_the_following_error,Ys+1,Ne.length,Xk(nu)),void 0);kn?(kn.length<=Cr&&(Cr=kn.length,ra=Ys),Qr=Math.max(Qr,kn.length),wr.push(kn)):B.fail("No error for 3 or fewer overload signatures"),Ys++}let _l=Qr>1?wr[ra]:tc(wr);B.assert(_l.length>0,"No errors reported for 3 or fewer overload signatures");let us=bs(_i(_l,Phe),S.No_overload_matches_this_call);E&&(us=bs(us,E));let Gl=[...vo(_l,nu=>nu.relatedInformation)],af;if(Et(_l,nu=>nu.start===_l[0].start&&nu.length===_l[0].length&&nu.file===_l[0].file)){let{file:nu,start:ln,length:kn}=_l[0];af={file:nu,start:ln,length:kn,code:us.code,category:us.category,messageText:us,relatedInformation:Gl}}else af=zv(en(n),qUt(n),us,Gl);Ni(xi[0],af),Ga.add(af)}else if(Pi)Ga.add(Det(n,[Pi],vt,E));else if(Pn)fIe(Pn,n.typeArguments,!0,E);else{let wr=Di(d,Qr=>lIe(Qr,Me));wr.length===0?Ga.add(GUt(n,d,Me,E)):Ga.add(Det(n,wr,vt,E))}return Bn;function Ni(wr,Qr){var Cr,ra;let Ys=xi,_l=Pi,us=Pn,Gl=((ra=(Cr=wr.declaration)==null?void 0:Cr.symbol)==null?void 0:ra.declarations)||F,nu=Gl.length>1?St(Gl,ln=>Oc(ln)&&jh(ln.body)):void 0;if(nu){let ln=Km(nu),kn=!ln.typeParameters;Zn([ln],em,kn)&&Xs(Qr,Mn(nu,S.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}xi=Ys,Pi=_l,Pn=us}function Zn(wr,Qr,Cr,ra=!1){var Ys,_l;if(xi=void 0,Pi=void 0,Pn=void 0,Cr){let us=wr[0];if(Lt(Me)||!Pce(n,vt,us,ra))return;if(Y$(n,vt,us,Qr,0,!1,void 0,void 0)){xi=[us];return}return us}for(let us=0;us$n===kn)&&(Gl=pjt(Gl));let ko;if(Lt(Me)){if(ko=fIe(Gl,Me,!1),!ko){Pn=Gl;continue}}else nu=bB(Gl.typeParameters,Gl,Jn(n)?2:0),ko=b1(uIe(n,Gl,vt,jt|8,nu),nu.nonFixingMapper),jt|=nu.flags&4?8:0;if(af=oB(Gl,ko,Jn(Gl.declaration),nu&&nu.inferredTypeParameters),NB(Gl)&&!Pce(n,vt,af,ra)){Pi=af;continue}}else af=Gl;if(Y$(n,vt,af,Qr,jt,!1,void 0,nu)){(xi||(xi=[])).push(af);continue}if(jt){if(jt=0,nu){let ln=b1(uIe(n,Gl,vt,jt,nu),nu.mapper);if(af=oB(Gl,ln,Jn(Gl.declaration),nu.inferredTypeParameters),NB(Gl)&&!Pce(n,vt,af,ra)){Pi=af;continue}}if(Y$(n,vt,af,Qr,jt,!1,void 0,nu)){(xi||(xi=[])).push(af);continue}}return wr[us]=af,af}}}function KUt(n,d,m,v,C){return B.assert(d.length>0),zA(n),v||d.length===1||d.some(E=>!!E.typeParameters)?QUt(n,d,m,C):XUt(d)}function XUt(n){let d=ro(n,ee=>ee.thisParameter),m;d.length&&(m=Iet(d,d.map(iG)));let{min:v,max:C}=h0e(n,YUt),E=[];for(let ee=0;eeXf(pe)?eel2(pe,ee))))}let L=ro(n,ee=>Xf(ee)?pa(ee.parameters):void 0),J=128;if(L.length!==0){let ee=Hf(Fr(ro(n,GXe),2));E.push(Net(L,ee)),J|=1}return n.some(S5e)&&(J|=2),g1(n[0].declaration,void 0,m,E,wa(n.map(vc)),void 0,v,J)}function YUt(n){let d=n.parameters.length;return Xf(n)?d-1:d}function Iet(n,d){return Net(n,Fr(d,2))}function Net(n,d){return SD(Ta(n),d)}function QUt(n,d,m,v){let C=tJt(d,At===void 0?m.length:At),E=d[C],{typeParameters:L}=E;if(!L)return E;let J=het(n)?n.typeArguments:void 0,ee=J?wae(E,ZUt(J,L,Jn(n))):eJt(n,L,E,m,v);return d[C]=ee,ee}function ZUt(n,d,m){let v=n.map(VA);for(;v.length>d.length;)v.pop();for(;v.length=d)return C;L>v&&(v=L,m=C)}return m}function iJt(n,d,m){if(n.expression.kind===108){let ee=yce(n.expression);if(pc(ee)){for(let oe of n.arguments)Ho(oe);return Pt}if(!le(ee)){let oe=J0(Zd(n));if(oe){let pe=ao(ee,oe.typeArguments,oe);return G6(n,pe,d,m,0)}}return DD(n)}let v,C=Ho(n.expression);if(Y2(n)){let ee=gB(C,n.expression);v=ee===C?0:N3(n)?16:8,C=ee}else v=0;if(C=tet(C,n.expression,bUt),C===Rn)return Nr;let E=S_(C);if(le(E))return wy(n);let L=Bs(E,0),J=Bs(E,1).length;if(eG(C,E,L.length,J))return!le(C)&&n.typeArguments&&ot(n,S.Untyped_function_calls_may_not_accept_type_arguments),DD(n);if(!L.length){if(J)ot(n,S.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Dn(C));else{let ee;if(n.arguments.length===1){let oe=en(n).text;Jf(oe.charCodeAt(Ea(oe,n.expression.end,!0)-1))&&(ee=Mn(n.expression,S.Are_you_missing_a_semicolon))}pIe(n.expression,E,0,ee)}return wy(n)}return m&8&&!n.typeArguments&&L.some(nJt)?(ftt(n,m),un):L.some(ee=>Jn(ee.declaration)&&!!gQ(ee.declaration))?(ot(n,S.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Dn(C)),wy(n)):G6(n,L,d,m,v)}function nJt(n){return!!(n.typeParameters&&cNe(vc(n)))}function eG(n,d,m,v){return pc(n)||pc(d)&&!!(n.flags&262144)||!m&&!v&&!(d.flags&1048576)&&!(v0(d).flags&131072)&&fa(n,_d)}function rJt(n,d,m){let v=$6(n.expression);if(v===Rn)return Nr;if(v=S_(v),le(v))return wy(n);if(pc(v))return n.typeArguments&&ot(n,S.Untyped_function_calls_may_not_accept_type_arguments),DD(n);let C=Bs(v,1);if(C.length){if(!oJt(n,C[0]))return wy(n);if(Aet(C,J=>!!(J.flags&4)))return ot(n,S.Cannot_create_an_instance_of_an_abstract_class),wy(n);let L=v.symbol&&eb(v.symbol);return L&&Ar(L,64)?(ot(n,S.Cannot_create_an_instance_of_an_abstract_class),wy(n)):G6(n,C,d,m,0)}let E=Bs(v,0);if(E.length){let L=G6(n,E,d,m,0);return Se||(L.declaration&&!Ty(L.declaration)&&vc(L)!==wi&&ot(n,S.Only_a_void_function_can_be_called_with_the_new_keyword),ew(L)===wi&&ot(n,S.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),L}return pIe(n.expression,v,1),wy(n)}function Aet(n,d){return ds(n)?Lt(n,m=>Aet(m,d)):n.compositeKind===1048576?Lt(n.compositeSignatures,d):d(n)}function _Ie(n,d){let m=dl(d);if(!K(m))return!1;let v=m[0];if(v.flags&2097152){let C=v.types,E=DXe(C),L=0;for(let J of v.types){if(!E[L]&&_r(J)&3&&(J.symbol===n||_Ie(n,J)))return!0;L++}return!1}return v.symbol===n?!0:_Ie(n,v)}function oJt(n,d){if(!d||!d.declaration)return!0;let m=d.declaration,v=iN(m,6);if(!v||m.kind!==176)return!0;let C=eb(m.parent.symbol),E=Qc(m.parent.symbol);if(!nNe(n,C)){let L=Zd(n);if(L&&v&4){let J=VA(L);if(_Ie(m.parent.symbol,J))return!0}return v&2&&ot(n,S.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Dn(E)),v&4&&ot(n,S.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Dn(E)),!1}return!0}function Pet(n,d,m){let v,C=m===0,E=WA(d),L=E&&Bs(E,m).length>0;if(d.flags&1048576){let ee=d.types,oe=!1;for(let pe of ee)if(Bs(pe,m).length!==0){if(oe=!0,v)break}else if(v||(v=bs(v,C?S.Type_0_has_no_call_signatures:S.Type_0_has_no_construct_signatures,Dn(pe)),v=bs(v,C?S.Not_all_constituents_of_type_0_are_callable:S.Not_all_constituents_of_type_0_are_constructable,Dn(d))),oe)break;oe||(v=bs(void 0,C?S.No_constituent_of_type_0_is_callable:S.No_constituent_of_type_0_is_constructable,Dn(d))),v||(v=bs(v,C?S.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:S.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Dn(d)))}else v=bs(v,C?S.Type_0_has_no_call_signatures:S.Type_0_has_no_construct_signatures,Dn(d));let J=C?S.This_expression_is_not_callable:S.This_expression_is_not_constructable;if(Gs(n.parent)&&n.parent.arguments.length===0){let{resolvedSymbol:ee}=rr(n);ee&&ee.flags&32768&&(J=S.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:bs(v,J),relatedMessage:L?S.Did_you_forget_to_use_await:void 0}}function pIe(n,d,m,v){let{messageChain:C,relatedMessage:E}=Pet(n,d,m),L=zv(en(n),n,C);if(E&&Xs(L,Mn(n,E)),Gs(n.parent)){let{start:J,length:ee}=Eet(n.parent);L.start=J,L.length=ee}Ga.add(L),Let(d,m,v?Xs(L,v):L)}function Let(n,d,m){if(!n.symbol)return;let v=Po(n.symbol).originatingImport;if(v&&!fm(v)){let C=Bs(Wn(Po(n.symbol).target),d);if(!C||!C.length)return;Xs(m,Mn(v,S.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 sJt(n,d,m){let v=Ho(n.tag),C=S_(v);if(le(C))return wy(n);let E=Bs(C,0),L=Bs(C,1).length;if(eG(v,C,E.length,L))return DD(n);if(!E.length){if(yf(n.parent)){let J=Mn(n.tag,S.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 Ga.add(J),wy(n)}return pIe(n.tag,C,0),wy(n)}return G6(n,E,d,m,0)}function aJt(n){switch(n.parent.kind){case 263:case 231:return S.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return S.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return S.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return S.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return B.fail()}}function cJt(n,d,m){let v=Ho(n.expression),C=S_(v);if(le(C))return wy(n);let E=Bs(C,0),L=Bs(C,1).length;if(eG(v,C,E.length,L))return DD(n);if(dJt(n,E)&&!O_(n.expression)){let ee=Jl(n.expression,!1);return ot(n,S._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,ee),wy(n)}let J=aJt(n);if(!E.length){let ee=Pet(n.expression,C,0),oe=bs(ee.messageChain,J),pe=zv(en(n.expression),n.expression,oe);return ee.relatedMessage&&Xs(pe,Mn(n.expression,ee.relatedMessage)),Ga.add(pe),Let(C,0,pe),wy(n)}return G6(n,E,d,m,0,J)}function Fce(n,d){let m=ED(n),v=m&&W_(m),C=v&&qd(v,Mm.Element,788968),E=C&&Ae.symbolToEntityName(C,788968,n),L=U.createFunctionTypeNode(void 0,[U.createParameterDeclaration(void 0,void 0,"props",void 0,Ae.typeToTypeNode(d,n))],E?U.createTypeReferenceNode(E,void 0):U.createKeywordTypeNode(133)),J=Aa(1,"props");return J.links.type=d,g1(L,void 0,void 0,[J],C?Qc(C):_t,void 0,1,0)}function lJt(n,d,m){if(jA(n.tagName)){let L=KZe(n),J=Fce(n,L);return pC(X6(n.attributes,Cce(J,n),void 0,0),L,n.tagName,n.attributes),K(n.typeArguments)&&(re(n.typeArguments,Ia),Ga.add(HP(en(n),n.typeArguments,S.Expected_0_type_arguments_but_got_1,0,K(n.typeArguments)))),J}let v=Ho(n.tagName),C=S_(v);if(le(C))return wy(n);let E=$Ze(v,n);return eG(v,C,E.length,0)?DD(n):E.length===0?(ot(n.tagName,S.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Jl(n.tagName)),wy(n)):G6(n,E,d,m,0)}function uJt(n,d,m){let v=Ho(n.right);if(!pc(v)){let C=NIe(v);if(C){let E=S_(C);if(le(E))return wy(n);let L=Bs(E,0),J=Bs(E,1);if(eG(C,E,L.length,J.length))return DD(n);if(L.length)return G6(n,L,d,m,0)}else if(!(ale(v)||o2(v,_d)))return ot(n.right,S.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),wy(n)}return Pt}function dJt(n,d){return d.length&&Et(d,m=>m.minArgumentCount===0&&!Xf(m)&&m.parameters.length1?Tu(n.arguments[1]):void 0;for(let E=2;E{let L=Ap(C);Hae(E,L)||fQe(C,E,m,S.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)})}function bJt(n){let d=Ho(n.expression),m=gB(d,n.expression);return tce(Pb(m),n,m!==d)}function SJt(n){return n.flags&64?bJt(n):Pb(Ho(n.expression))}function Wet(n){if(Pit(n),re(n.typeArguments,Ia),n.kind===233){let m=Ky(n.parent);m.kind===226&&m.operatorToken.kind===104&&Xw(n,m.right)&&ot(n,S.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let d=n.kind===233?Ho(n.expression):bx(n.exprName)?z$(n.exprName):Ho(n.exprName);return zet(d,n)}function zet(n,d){let m=d.typeArguments;if(n===Rn||le(n)||!Lt(m))return n;let v=!1,C,E=J(n),L=v?C:n;return L&&Ga.add(HP(en(d),m,S.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Dn(L))),E;function J(oe){let pe=!1,Me=!1,Ne=vt(oe);return v||(v=Me),pe&&!Me&&(C??(C=oe)),Ne;function vt(Ot){if(Ot.flags&524288){let jt=y0(Ot),xi=ee(jt.callSignatures),Pi=ee(jt.constructSignatures);if(pe||(pe=jt.callSignatures.length!==0||jt.constructSignatures.length!==0),Me||(Me=xi.length!==0||Pi.length!==0),xi!==jt.callSignatures||Pi!==jt.constructSignatures){let Pn=Io(Aa(0,"__instantiationExpression"),jt.members,xi,Pi,jt.indexInfos);return Pn.objectFlags|=8388608,Pn.node=d,Pn}}else if(Ot.flags&58982400){let jt=Cf(Ot);if(jt){let xi=vt(jt);if(xi!==jt)return xi}}else{if(Ot.flags&1048576)return Nl(Ot,J);if(Ot.flags&2097152)return wa(Uo(Ot.types,vt))}return Ot}}function ee(oe){let pe=Di(oe,Me=>!!Me.typeParameters&&lIe(Me,m));return Uo(pe,Me=>{let Ne=fIe(Me,m,!0);return Ne?oB(Me,Ne,Jn(Me.declaration)):Me})}}function xJt(n){return Ia(n.type),yIe(n.expression,n.type)}function yIe(n,d,m){let v=Ho(n,m),C=yo(d);if(le(C))return C;let E=Ri(d.parent,L=>L.kind===238||L.kind===350);return pC(v,C,E,n,S.Type_0_does_not_satisfy_the_expected_type_1),v}function CJt(n){return wXt(n),n.keywordToken===105?vIe(n):n.keywordToken===102?kJt(n):B.assertNever(n.keywordToken)}function Vet(n){switch(n.keywordToken){case 102:return dYe();case 105:let d=vIe(n);return le(d)?_t:zJt(d);default:B.assertNever(n.keywordToken)}}function vIe(n){let d=Khe(n);if(d)if(d.kind===176){let m=sr(d.parent);return Wn(m)}else{let m=sr(d);return Wn(m)}else return ot(n,S.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),_t}function kJt(n){ne===100||ne===199?en(n).impliedNodeFormat!==99&&ot(n,S.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ne<6&&ne!==4&&ot(n,S.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);let d=en(n);return B.assert(!!(d.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?uYe():_t}function iG(n){let d=n.valueDeclaration;return md(Wn(n),!1,!!d&&(Qb(d)||m4(d)))}function bIe(n,d,m){switch(n.name.kind){case 80:{let v=n.name.escapedText;return n.dotDotDotToken?m&12?v:`${v}_${d}`:m&3?v:`${v}_n`}case 207:{if(n.dotDotDotToken){let v=n.name.elements,C=kr(Lc(v),Wa),E=v.length-(C?.dotDotDotToken?1:0);if(d=v-1)return d===v-1?E:Hf(Ip(E,ei));let L=[],J=[],ee=[];for(let oe=d;oe!(ee&1)),J=L<0?E.target.fixedLength:L;J>0&&(C=n.parameters.length-1+J)}}if(C===void 0){if(!m&&n.flags&32)return 0;C=n.minArgumentCount}if(v)return C;for(let E=C-1;E>=0;E--){let L=x0(n,E);if(qu(L,get).flags&131072)break;C=E}n.resolvedMinArgumentCount=C}return n.resolvedMinArgumentCount}function hv(n){if(Xf(n)){let d=Wn(n.parameters[n.parameters.length-1]);return!Ba(d)||!!(d.target.combinedFlags&12)}return!1}function IB(n){if(Xf(n)){let d=Wn(n.parameters[n.parameters.length-1]);if(!Ba(d))return pc(d)?Mc:d;if(d.target.combinedFlags&12)return aF(d,d.target.fixedLength)}}function NB(n){let d=IB(n);return d&&!Eh(d)&&!pc(d)?d:void 0}function xIe(n){return CIe(n,Si)}function CIe(n,d){return n.parameters.length>0?x0(n,0):d}function qet(n,d,m){let v=n.parameters.length-(Xf(n)?1:0);for(let C=0;C=0);let E=Ol(v.parent)?Wn(sr(v.parent.parent)):yit(v.parent),L=Ol(v.parent)?$e:vit(v.parent),J=Pg(C),ee=Dg("target",E),oe=Dg("propertyKey",L),pe=Dg("parameterIndex",J);m.decoratorSignature=BB(void 0,void 0,[ee,oe,pe],wi);break}case 174:case 177:case 178:case 172:{let v=d;if(!jr(v.parent))break;let C=yit(v),E=Dg("target",C),L=vit(v),J=Dg("propertyKey",L),ee=ls(v)?wi:bYe(VA(v));if(!ls(d)||G0(d)){let pe=bYe(VA(v)),Me=Dg("descriptor",pe);m.decoratorSignature=BB(void 0,void 0,[E,J,Me],Fr([ee,wi]))}else m.decoratorSignature=BB(void 0,void 0,[E,J],Fr([ee,wi]));break}}return m.decoratorSignature===Pt?void 0:m.decoratorSignature}function wIe(n){return _e?WJt(n):jJt(n)}function oG(n){let d=u$(!0);return d!==Bo?(n=qS(vF(n))||Y,Eb(d,[n])):Y}function Ket(n){let d=mYe(!0);return d!==Bo?(n=qS(vF(n))||Y,Eb(d,[n])):Y}function sG(n,d){let m=oG(d);return m===Y?(ot(n,fm(n)?S.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:S.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),_t):(yEe(!0)||ot(n,fm(n)?S.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:S.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),m)}function zJt(n){let d=Aa(0,"NewTargetExpression"),m=Aa(4,"target",8);m.parent=d,m.links.type=n;let v=ta([m]);return d.members=v,Io(d,v,F,F,F)}function Bce(n,d){if(!n.body)return _t;let m=Vu(n),v=(m&2)!==0,C=(m&1)!==0,E,L,J,ee=wi;if(n.body.kind!==241)E=Tu(n.body,d&&d&-9),v&&(E=vF(RB(E,!1,n,S.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(C){let oe=Zet(n,d);oe?oe.length>0&&(E=Fr(oe,2)):ee=Si;let{yieldTypes:pe,nextTypes:Me}=VJt(n,d);L=Lt(pe)?Fr(pe,2):void 0,J=Lt(Me)?wa(Me):void 0}else{let oe=Zet(n,d);if(!oe)return m&2?sG(n,Si):Si;if(oe.length===0){let pe=vce(n,void 0),Me=pe&&(hG(pe,m)||wi).flags&32768?$e:wi;return m&2?sG(n,Me):Me}E=Fr(oe,2)}if(E||L||J){if(L&&oce(n,L,3),E&&oce(n,E,1),J&&oce(n,J,2),E&&b0(E)||L&&b0(L)||J&&b0(J)){let oe=JDe(n),pe=oe?oe===Km(n)?C?void 0:E:Sce(vc(oe),n,void 0):void 0;C?(L=sDe(L,pe,0,v),E=sDe(E,pe,1,v),J=sDe(J,pe,2,v)):E=jzt(E,pe,v)}L&&(L=Ap(L)),E&&(E=Ap(E)),J&&(J=Ap(J))}return C?jce(L||Si,E||ee,J||LZe(2,n)||Y,v):v?oG(E||ee):E||ee}function jce(n,d,m,v){let C=v?Ya:ml,E=C.getGlobalGeneratorType(!1);if(n=C.resolveIterationType(n,void 0)||Y,d=C.resolveIterationType(d,void 0)||Y,E===Bo){let L=C.getGlobalIterableIteratorType(!1);return L!==Bo?sF(L,[n,d,m]):(C.getGlobalIterableIteratorType(!0),Ts)}return sF(E,[n,d,m])}function VJt(n,d){let m=[],v=[],C=(Vu(n)&2)!==0;return Rhe(n.body,E=>{let L=E.expression?Ho(E.expression,d):Bt;jc(m,Xet(E,L,je,C));let J;if(E.asteriskToken){let ee=Qce(L,C?19:17,E.expression);J=ee&&ee.nextType}else J=H_(E,void 0);J&&jc(v,J)}),{yieldTypes:m,nextTypes:v}}function Xet(n,d,m,v){let C=n.expression||n,E=n.asteriskToken?$S(v?19:17,d,m,C):d;return v?WA(E,C,n.asteriskToken?S.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:S.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):E}function Yet(n,d,m){let v=0;for(let C=0;C=d?m[C]:void 0;v|=E!==void 0?Xve.get(E)||32768:0}return v}function Qet(n){let d=rr(n);if(d.isExhaustive===void 0){d.isExhaustive=0;let m=HJt(n);d.isExhaustive===0&&(d.isExhaustive=m)}else d.isExhaustive===0&&(d.isExhaustive=!1);return d.isExhaustive}function HJt(n){if(n.expression.kind===221){let v=oZe(n);if(!v)return!1;let C=fv(Tu(n.expression.expression)),E=Yet(0,0,v);return C.flags&3?(556800&E)===556800:!Dh(C,L=>H6(L,E)===E)}let d=Tu(n.expression);if(!hB(d))return!1;let m=uce(n);return!m.length||Lt(m,Mzt)?!1:FVt(Nl(d,x_),m)}function TIe(n){return n.endFlowNode&&R$(n.endFlowNode)}function Zet(n,d){let m=Vu(n),v=[],C=TIe(n),E=!1;if(tS(n.body,L=>{let J=L.expression;if(J){if(J=fc(J,!0),m&2&&J.kind===223&&(J=fc(J.expression,!0)),J.kind===213&&J.expression.kind===80&&Tu(J.expression).symbol===cc(n.symbol)&&(!Ex(n.symbol.valueDeclaration)||NDe(J.expression))){E=!0;return}let ee=Tu(J,d&&d&-9);m&2&&(ee=vF(RB(ee,!1,n,S.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),ee.flags&131072&&(E=!0),jc(v,ee)}else C=!0}),!(v.length===0&&!C&&(E||UJt(n))))return he&&v.length&&C&&!(Ty(n)&&v.some(L=>L.symbol===n.symbol))&&jc(v,$e),v}function UJt(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function JJt(n){switch(n.kind){case 176:case 177:case 178:return}if(Vu(n)!==0)return;let m;if(n.body&&n.body.kind!==241)m=n.body;else if(tS(n.body,C=>{if(m||!C.expression)return!0;m=C.expression})||!m||TIe(n))return;return qJt(n,m)}function qJt(n,d){if(d=fc(d,!0),!!(Tu(d).flags&16))return re(n.parameters,(v,C)=>{let E=Wn(v.symbol);if(!E||E.flags&16||!et(v.name)||j$(v.symbol)||Jy(v))return;let L=$Jt(n,d,v,E);if(L)return rB(1,So(v.name.escapedText),C,L)})}function $Jt(n,d,m,v){let C=d.flowNode||d.parent.kind===253&&d.parent.flowNode||ev(2,void 0,void 0),E=ev(32,d,C),L=Fb(m.name,v,v,n,E);if(L===v)return;let J=ev(64,d,C);return Fb(m.name,v,L,n,J).flags&131072?L:void 0}function EIe(n,d){r(m);return;function m(){let v=Vu(n),C=d&&hG(d,v);if(C&&(hu(C,16384)||C.flags&32769)||n.kind===173||Ul(n.body)||n.body.kind!==241||!TIe(n))return;let E=n.flags&1024,L=Up(n)||n;if(C&&C.flags&131072)ot(L,S.A_function_returning_never_cannot_have_a_reachable_end_point);else if(C&&!E)ot(L,S.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(C&&he&&!fa($e,C))ot(L,S.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if($.noImplicitReturns){if(!C){if(!E)return;let J=vc(Km(n));if(qtt(n,J))return}ot(L,S.Not_all_code_paths_return_a_value)}}}function ett(n,d){if(B.assert(n.kind!==174||zh(n)),zA(n),Yc(n)&&bF(n,n.name),d&&d&4&&Xm(n)){if(!Up(n)&&!ZV(n)){let v=TB(n);if(v&&gC(vc(v))){let C=rr(n);if(C.contextFreeType)return C.contextFreeType;let E=Bce(n,d),L=g1(void 0,void 0,void 0,F,E,void 0,0,64),J=Io(n.symbol,q,[L],F,F);return J.objectFlags|=262144,C.contextFreeType=J}}return Ua}return!fle(n)&&n.kind===218&&dNe(n),GJt(n,d),Wn(sr(n))}function GJt(n,d){let m=rr(n);if(!(m.flags&64)){let v=TB(n);if(!(m.flags&64)){m.flags|=64;let C=mc(Bs(Wn(sr(n)),0));if(!C)return;if(Xm(n))if(v){let E=a2(n),L;if(d&&d&2){qet(C,v,E);let J=IB(v);J&&J.flags&262144&&(L=LA(v,E.nonFixingMapper))}L||(L=E?LA(v,E.mapper):v),EJt(C,L)}else DJt(C);else if(v&&!n.typeParameters&&v.parameters.length>n.parameters.length){let E=a2(n);d&&d&2&&qet(C,v,E)}if(v&&!M6(n)&&!C.resolvedReturnType){let E=Bce(n,d);C.resolvedReturnType||(C.resolvedReturnType=E)}LB(n)}}}function KJt(n){B.assert(n.kind!==174||zh(n));let d=Vu(n),m=M6(n);if(EIe(n,m),n.body)if(Up(n)||vc(Km(n)),n.body.kind===241)Ia(n.body);else{let v=Ho(n.body),C=m&&hG(m,d);if(C){let E=Lce(n.body);if((d&3)===2){let L=RB(v,!1,E,S.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);pC(L,C,E,E)}else pC(v,C,E,E)}}}function Wce(n,d,m,v=!1){if(!fa(d,Cs)){let C=v&&yF(d);return Vk(n,!!C&&fa(C,Cs),m),!1}return!0}function XJt(n){if(!Gs(n)||!cE(n))return!1;let d=Tu(n.arguments[2]);if(Mu(d,"value")){let C=da(d,"writable"),E=C&&Wn(C);if(!E||E===Ji||E===_n)return!0;if(C&&C.valueDeclaration&&ed(C.valueDeclaration)){let L=C.valueDeclaration.initializer,J=Ho(L);if(J===Ji||J===_n)return!0}return!1}return!da(d,"set")}function C0(n){return!!(_u(n)&8||n.flags&4&&lh(n)&8||n.flags&3&&XDe(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||Lt(n.declarations,XJt))}function ttt(n,d,m){var v,C;if(m===0)return!1;if(C0(d)){if(d.flags&4&&il(n)&&n.expression.kind===110){let E=_m(n);if(!(E&&(E.kind===176||Ty(E))))return!0;if(d.valueDeclaration){let L=Yn(d.valueDeclaration),J=E.parent===d.valueDeclaration.parent,ee=E===d.valueDeclaration.parent,oe=L&&((v=d.parent)==null?void 0:v.valueDeclaration)===E.parent,pe=L&&((C=d.parent)==null?void 0:C.valueDeclaration)===E;return!(J||ee||oe||pe)}}return!0}if(il(n)){let E=fc(n.expression);if(E.kind===80){let L=rr(E).resolvedSymbol;if(L.flags&2097152){let J=i_(L);return!!J&&J.kind===274}}}return!1}function AB(n,d,m){let v=Cu(n,7);return v.kind!==80&&!il(v)?(ot(n,d),!1):v.flags&64?(ot(n,m),!1):!0}function YJt(n){Ho(n.expression);let d=fc(n.expression);if(!il(d))return ot(d,S.The_operand_of_a_delete_operator_must_be_a_property_reference),ti;lr(d)&&xo(d.name)&&ot(d,S.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let m=rr(d),v=im(m.resolvedSymbol);return v&&(C0(v)?ot(d,S.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):QJt(d,v)),ti}function QJt(n,d){let m=Wn(d);he&&!(m.flags&131075)&&!(ke?d.flags&16777216:S0(m,16777216))&&ot(n,S.The_operand_of_a_delete_operator_must_be_optional)}function ZJt(n){return Ho(n.expression),VE}function eqt(n){return zA(n),Bt}function itt(n){let d=!1,m=Uz(n);if(m&&Yl(m)){let v=Ax(n)?S.await_expression_cannot_be_used_inside_a_class_static_block:S.await_using_statements_cannot_be_used_inside_a_class_static_block;ot(n,v),d=!0}else if(!(n.flags&65536))if(qz(n)){let v=en(n);if(!vC(v)){let C;if(!HI(v,$)){C??(C=V0(v,n.pos));let E=Ax(n)?S.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:S.await_using_statements_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,L=kd(v,C.start,C.length,E);Ga.add(L),d=!0}switch(ne){case 100:case 199:if(v.impliedNodeFormat===1){C??(C=V0(v,n.pos)),Ga.add(kd(v,C.start,C.length,S.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),d=!0;break}case 7:case 99:case 200:case 4:if(te>=4)break;default:C??(C=V0(v,n.pos));let E=Ax(n)?S.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;Ga.add(kd(v,C.start,C.length,E)),d=!0;break}}}else{let v=en(n);if(!vC(v)){let C=V0(v,n.pos),E=Ax(n)?S.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:S.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,L=kd(v,C.start,C.length,E);if(m&&m.kind!==176&&!(Vu(m)&2)){let J=Mn(m,S.Did_you_mean_to_mark_this_function_as_async);Xs(L,J)}Ga.add(L),d=!0}}return Ax(n)&&WDe(n)&&(ot(n,S.await_expressions_cannot_be_used_in_a_parameter_initializer),d=!0),d}function tqt(n){r(()=>itt(n));let d=Ho(n.expression),m=RB(d,!0,n,S.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return m===d&&!le(m)&&!(d.flags&3)&&u0(!1,Mn(n,S.await_has_no_effect_on_the_type_of_this_expression)),m}function iqt(n){let d=Ho(n.operand);if(d===Rn)return Rn;switch(n.operand.kind){case 9:switch(n.operator){case 41:return PA(Pg(-n.operand.text));case 40:return PA(Pg(+n.operand.text))}break;case 10:if(n.operator===41)return PA(h$({negative:!0,base10Value:bO(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return ky(d,n.operand),aG(d,12288)&&ot(n.operand,S.The_0_operator_cannot_be_applied_to_type_symbol,ua(n.operator)),n.operator===40?(aG(d,2112)&&ot(n.operand,S.Operator_0_cannot_be_applied_to_type_1,ua(n.operator),Dn(Ab(d))),ei):DIe(d);case 54:UIe(d,n.operand);let m=H6(d,12582912);return m===4194304?Ji:m===8388608?Dt:ti;case 46:case 47:return Wce(n.operand,ky(d,n.operand),S.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&AB(n.operand,S.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,S.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),DIe(d)}return _t}function nqt(n){let d=Ho(n.operand);return d===Rn?Rn:(Wce(n.operand,ky(d,n.operand),S.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&AB(n.operand,S.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,S.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),DIe(d))}function DIe(n){return hu(n,2112)?kf(n,3)||hu(n,296)?Cs:In:ei}function aG(n,d){if(hu(n,d))return!0;let m=fv(n);return!!m&&hu(m,d)}function hu(n,d){if(n.flags&d)return!0;if(n.flags&3145728){let m=n.types;for(let v of m)if(hu(v,d))return!0}return!1}function kf(n,d,m){return n.flags&d?!0:m&&n.flags&114691?!1:!!(d&296)&&fa(n,ei)||!!(d&2112)&&fa(n,In)||!!(d&402653316)&&fa(n,Qe)||!!(d&528)&&fa(n,ti)||!!(d&16384)&&fa(n,wi)||!!(d&131072)&&fa(n,Si)||!!(d&65536)&&fa(n,Wt)||!!(d&32768)&&fa(n,$e)||!!(d&4096)&&fa(n,li)||!!(d&67108864)&&fa(n,Li)}function PB(n,d,m){return n.flags&1048576?Et(n.types,v=>PB(v,d,m)):kf(n,d,m)}function zce(n){return!!(_r(n)&16)&&!!n.symbol&&IIe(n.symbol)}function IIe(n){return(n.flags&128)!==0}function NIe(n){let d=Vtt("hasInstance");if(PB(n,67108864)){let m=da(n,d);if(m){let v=Wn(m);if(v&&Bs(v,0).length!==0)return v}}}function rqt(n,d,m,v,C){if(m===Rn||v===Rn)return Rn;!pc(m)&&PB(m,402784252)&&ot(n,S.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),B.assert(xV(n.parent));let E=K6(n.parent,void 0,C);if(E===un)return Rn;let L=vc(E);return o_(L,ti,d,S.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),ti}function oqt(n){return Dh(n,d=>d===nc||!!(d.flags&2097152)&&mv(fv(d)))}function sqt(n,d,m,v){if(m===Rn||v===Rn)return Rn;if(xo(n)){if((te<9||te<99||!ce)&&Pd(n,2097152),!rr(n).resolvedSymbol&&Zd(n)){let C=iIe(n,v.symbol,!0);set(n,v,C)}}else o_(ky(m,n),ai,n);return o_(ky(v,d),Li,d)&&oqt(v)&&ot(d,S.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Dn(v)),ti}function aqt(n,d,m){let v=n.properties;if(he&&v.length===0)return ky(d,n);for(let C=0;CaF(oe,m)):Hf(v);return ND(J,ee,C)}}}}function ND(n,d,m,v){let C;if(n.kind===304){let E=n;E.objectAssignmentInitializer&&(he&&!S0(Ho(E.objectAssignmentInitializer),16777216)&&(d=lg(d,524288)),fqt(E.name,E.equalsToken,E.objectAssignmentInitializer,m)),C=n.name}else C=n;return C.kind===226&&C.operatorToken.kind===64&&(Oe(C,m),C=C.left,he&&(d=lg(d,524288))),C.kind===210?aqt(C,d,v):C.kind===209?cqt(C,d,m):lqt(C,d,m)}function lqt(n,d,m){let v=Ho(n,m),C=n.parent.kind===305?S.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:S.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,E=n.parent.kind===305?S.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:S.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return AB(n,C,E)&&pC(d,v,n,n),FP(n)&&Pd(n.parent,1048576),d}function cG(n){switch(n=fc(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return cG(n.whenTrue)&&cG(n.whenFalse);case 226:return Q1(n.operatorToken.kind)?!1:cG(n.left)&&cG(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function AIe(n,d){return(d.flags&98304)!==0||Hae(n,d)}function uqt(){let n=RH(d,m,v,C,E,L);return(Ne,vt)=>{let Ot=n(Ne,vt);return B.assertIsDefined(Ot),Ot};function d(Ne,vt,Ot){return vt?(vt.stackIndex++,vt.skip=!1,oe(vt,void 0),Me(vt,void 0)):vt={checkMode:Ot,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Jn(Ne)&&$I(Ne)?(vt.skip=!0,Me(vt,Ho(Ne.right,Ot)),vt):(dqt(Ne),Ne.operatorToken.kind===64&&(Ne.left.kind===210||Ne.left.kind===209)&&(vt.skip=!0,Me(vt,ND(Ne.left,Ho(Ne.right,Ot),Ot,Ne.right.kind===110))),vt)}function m(Ne,vt,Ot){if(!vt.skip)return J(vt,Ne)}function v(Ne,vt,Ot){if(!vt.skip){let jt=pe(vt);B.assertIsDefined(jt),oe(vt,jt),Me(vt,void 0);let xi=Ne.kind;if(bV(xi)){let Pi=Ot.parent;for(;Pi.kind===217||_R(Pi);)Pi=Pi.parent;(xi===56||hk(Pi))&&HIe(Ot.left,jt,hk(Pi)?Pi.thenStatement:void 0),fR(xi)&&UIe(jt,Ot.left)}}}function C(Ne,vt,Ot){if(!vt.skip)return J(vt,Ne)}function E(Ne,vt){let Ot;if(vt.skip)Ot=pe(vt);else{let jt=ee(vt);B.assertIsDefined(jt);let xi=pe(vt);B.assertIsDefined(xi),Ot=ott(Ne.left,Ne.operatorToken,Ne.right,jt,xi,vt.checkMode,Ne)}return vt.skip=!1,oe(vt,void 0),Me(vt,void 0),vt.stackIndex--,Ot}function L(Ne,vt,Ot){return Me(Ne,vt),Ne}function J(Ne,vt){if(Yn(vt))return vt;Me(Ne,Ho(vt,Ne.checkMode))}function ee(Ne){return Ne.typeStack[Ne.stackIndex]}function oe(Ne,vt){Ne.typeStack[Ne.stackIndex]=vt}function pe(Ne){return Ne.typeStack[Ne.stackIndex+1]}function Me(Ne,vt){Ne.typeStack[Ne.stackIndex+1]=vt}}function dqt(n){let{left:d,operatorToken:m,right:v}=n;if(m.kind===61){Yn(d)&&(d.operatorToken.kind===57||d.operatorToken.kind===56)&&Gi(d,S._0_and_1_operations_cannot_be_mixed_without_parentheses,ua(d.operatorToken.kind),ua(m.kind)),Yn(v)&&(v.operatorToken.kind===57||v.operatorToken.kind===56)&&Gi(v,S._0_and_1_operations_cannot_be_mixed_without_parentheses,ua(v.operatorToken.kind),ua(m.kind));let C=Cu(d,31),E=PIe(C);E!==3&&(n.parent.kind===226?ot(C,S.This_binary_expression_is_never_nullish_Are_you_missing_parentheses):E===1?ot(C,S.This_expression_is_always_nullish):ot(C,S.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}}function PIe(n){switch(n=Cu(n),n.kind){case 223:case 213:case 212:case 214:case 211:case 229:case 110:return 3;case 226:switch(n.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3}return 2;case 227:return PIe(n.whenTrue)|PIe(n.whenFalse);case 106:return 1;case 80:return s_(n)===Ge?1:3}return 2}function fqt(n,d,m,v,C){let E=d.kind;if(E===64&&(n.kind===210||n.kind===209))return ND(n,Ho(m,v),v,m.kind===110);let L;fR(E)?L=VB(n,v):L=Ho(n,v);let J=Ho(m,v);return ott(n,d,m,L,J,v,C)}function ott(n,d,m,v,C,E,L){let J=d.kind;switch(J){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(v===Rn||C===Rn)return Rn;v=ky(v,n),C=ky(C,m);let $i;if(v.flags&528&&C.flags&528&&($i=Ne(d.kind))!==void 0)return ot(L||d,S.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,ua(d.kind),ua($i)),ei;{let wr=Wce(n,v,S.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Qr=Wce(m,C,S.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Cr;if(kf(v,3)&&kf(C,3)||!(hu(v,2112)||hu(C,2112)))Cr=ei;else if(ee(v,C)){switch(J){case 50:case 73:xi();break;case 43:case 68:te<3&&ot(L,S.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Cr=In}else xi(ee),Cr=_t;if(wr&&Qr)switch(vt(Cr),J){case 48:case 71:case 49:case 72:case 50:case 73:let ra=Tt(m);typeof ra.value=="number"&&Math.abs(ra.value)>=32&&_y(_S(Ky(m.parent.parent)),L||d,S.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Jl(n),ua(J),ra.value%32);break;default:break}return Cr}case 40:case 65:if(v===Rn||C===Rn)return Rn;!kf(v,402653316)&&!kf(C,402653316)&&(v=ky(v,n),C=ky(C,m));let Ni;return kf(v,296,!0)&&kf(C,296,!0)?Ni=ei:kf(v,2112,!0)&&kf(C,2112,!0)?Ni=In:kf(v,402653316,!0)||kf(C,402653316,!0)?Ni=Qe:(pc(v)||pc(C))&&(Ni=le(v)||le(C)?_t:je),Ni&&!Me(J)?Ni:Ni?(J===65&&vt(Ni),Ni):(xi((Qr,Cr)=>kf(Qr,402655727)&&kf(Cr,402655727)),je);case 30:case 32:case 33:case 34:return Me(J)&&(v=rDe(ky(v,n)),C=rDe(ky(C,m)),jt((wr,Qr)=>{if(pc(wr)||pc(Qr))return!0;let Cr=fa(wr,Cs),ra=fa(Qr,Cs);return Cr&&ra||!Cr&&!ra&&S$(wr,Qr)})),ti;case 35:case 36:case 37:case 38:if(!(E&&E&64)){if((wQ(n)||wQ(m))&&(!Jn(n)||J===37||J===38)){let wr=J===35||J===37;ot(L,S.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,wr?"false":"true")}Pn(L,J,n,m),jt((wr,Qr)=>AIe(wr,Qr)||AIe(Qr,wr))}return ti;case 104:return rqt(n,m,v,C,E);case 103:return sqt(n,m,v,C);case 56:case 77:{let wr=S0(v,4194304)?Fr([Vzt(he?v:Ab(C)),C]):v;return J===77&&vt(C),wr}case 57:case 76:{let wr=S0(v,8388608)?Fr([Pb(AQe(v)),C],2):v;return J===76&&vt(C),wr}case 61:case 78:{let wr=S0(v,262144)?Fr([Pb(v),C],2):v;return J===78&&vt(C),wr}case 64:let Zn=Yn(n.parent)?Su(n.parent):0;return oe(Zn,C),Ot(Zn)?((!(C.flags&524288)||Zn!==2&&Zn!==6&&!Nb(C)&&!wDe(C)&&!(_r(C)&1))&&vt(C),v):(vt(C),C);case 28:if(!$.allowUnreachableCode&&cG(n)&&!pe(n.parent)){let wr=en(n),Qr=wr.text,Cr=Ea(Qr,n.pos);wr.parseDiagnostics.some(Ys=>Ys.code!==S.JSX_expressions_must_have_one_parent_element.code?!1:dQ(Ys,Cr))||ot(n,S.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return C;default:return B.fail()}function ee($i,Ni){return kf($i,2112)&&kf(Ni,2112)}function oe($i,Ni){if($i===2)for(let Zn of zS(Ni)){let wr=Wn(Zn);if(wr.symbol&&wr.symbol.flags&32){let Qr=Zn.escapedName,Cr=ni(Zn.valueDeclaration,Qr,788968,void 0,!1);Cr?.declarations&&Cr.declarations.some(kE)&&(ov(Cr,S.Duplicate_identifier_0,So(Qr),Zn),ov(Zn,S.Duplicate_identifier_0,So(Qr),Cr))}}}function pe($i){return $i.parent.kind===217&&Z_($i.left)&&$i.left.text==="0"&&(Gs($i.parent.parent)&&$i.parent.parent.expression===$i.parent||$i.parent.parent.kind===215)&&(il($i.right)||et($i.right)&&$i.right.escapedText==="eval")}function Me($i){let Ni=aG(v,12288)?n:aG(C,12288)?m:void 0;return Ni?(ot(Ni,S.The_0_operator_cannot_be_applied_to_type_symbol,ua($i)),!1):!0}function Ne($i){switch($i){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function vt($i){Q1(J)&&r(Ni);function Ni(){let Zn=v;if(r8(d.kind)&&n.kind===211&&(Zn=Dce(n,void 0,!0)),AB(n,S.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,S.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let wr;if(ke&&lr(n)&&hu($i,32768)){let Qr=Mu(wf(n.expression),n.name.escapedText);Jae($i,Qr)&&(wr=S.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}pC($i,Zn,n,m,wr)}}}function Ot($i){var Ni;switch($i){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let Zn=z_(n),wr=$I(m);return!!wr&&ba(wr)&&!!((Ni=Zn?.exports)!=null&&Ni.size);default:return!1}}function jt($i){return $i(v,C)?!1:(xi($i),!0)}function xi($i){let Ni=!1,Zn=L||d;if($i){let Ys=qS(v),_l=qS(C);Ni=!(Ys===v&&_l===C)&&!!(Ys&&_l)&&$i(Ys,_l)}let wr=v,Qr=C;!Ni&&$i&&([wr,Qr]=_qt(v,C,$i));let[Cr,ra]=K8(wr,Qr);Pi(Zn,Ni,Cr,ra)||Vk(Zn,Ni,S.Operator_0_cannot_be_applied_to_types_1_and_2,ua(d.kind),Cr,ra)}function Pi($i,Ni,Zn,wr){switch(d.kind){case 37:case 35:case 38:case 36:return Vk($i,Ni,S.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Zn,wr);default:return}}function Pn($i,Ni,Zn,wr){let Qr=Bn(fc(Zn)),Cr=Bn(fc(wr));if(Qr||Cr){let ra=ot($i,S.This_condition_will_always_return_0,ua(Ni===37||Ni===35?97:112));if(Qr&&Cr)return;let Ys=Ni===38||Ni===36?ua(54):"",_l=Qr?wr:Zn,us=fc(_l);Xs(ra,Mn(_l,S.Did_you_mean_0,`${Ys}Number.isNaN(${Xc(us)?zp(us):"..."})`))}}function Bn($i){if(et($i)&&$i.escapedText==="NaN"){let Ni=Gjt();return!!Ni&&Ni===s_($i)}return!1}}function _qt(n,d,m){let v=n,C=d,E=Ab(n),L=Ab(d);return m(E,L)||(v=E,C=L),[v,C]}function pqt(n){r(Me);let d=_m(n);if(!d)return je;let m=Vu(d);if(!(m&1))return je;let v=(m&2)!==0;n.asteriskToken&&(v&&te<5&&Pd(n,26624),!v&&te<2&&$.downlevelIteration&&Pd(n,256));let C=M6(d);C&&C.flags&1048576&&(C=qu(C,Ne=>FIe(Ne,m,void 0)));let E=C&&YIe(C,v),L=E&&E.yieldType||je,J=E&&E.nextType||je,ee=n.expression?Ho(n.expression):Bt,oe=Xet(n,ee,J,v);if(C&&oe&&pC(oe,L,n.expression||n,n.expression),n.asteriskToken)return $Ie(v?19:17,1,ee,n.expression)||je;if(C)return u2(2,C,v)||je;let pe=LZe(2,d);return pe||(pe=je,r(()=>{if(Se&&!x0e(n)){let Ne=H_(n,void 0);(!Ne||pc(Ne))&&ot(n,S.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),pe;function Me(){n.flags&16384||sf(n,S.A_yield_expression_is_only_allowed_in_a_generator_body),WDe(n)&&ot(n,S.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function mqt(n,d){let m=VB(n.condition,d);HIe(n.condition,m,n.whenTrue);let v=Ho(n.whenTrue,d),C=Ho(n.whenFalse,d);return Fr([v,C],2)}function stt(n){let d=n.parent;return O_(d)&&stt(d)||nl(d)&&d.argumentExpression===n}function hqt(n){let d=[n.head.text],m=[];for(let C of n.templateSpans){let E=Ho(C.expression);aG(E,12288)&&ot(C.expression,S.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),d.push(C.literal.text),m.push(fa(E,Ss)?E:Qe)}let v=n.parent.kind!==215&&Tt(n).value;return v?PA(sp(v)):hF(n)||stt(n)||Dh(H_(n,void 0)||Y,gqt)?mD(d,m):Qe}function gqt(n){return!!(n.flags&134217856||n.flags&58982400&&hu(Cf(n)||Y,402653316))}function yqt(n){return pT(n)&&!SE(n.parent)?n.parent.parent:n}function X6(n,d,m,v){let C=yqt(n);H$(C,d,!1),OHt(C,m);let E=Ho(n,v|1|(m?2:0));m&&m.intraExpressionInferenceSites&&(m.intraExpressionInferenceSites=void 0);let L=hu(E,2944)&&Hce(E,Sce(d,n,void 0))?x_(E):E;return FHt(),wB(),L}function Tu(n,d){if(d)return Ho(n,d);let m=rr(n);if(!m.resolvedType){let v=o1,C=Vm;o1=eg,Vm=void 0,m.resolvedType=Ho(n,d),Vm=C,o1=v}return m.resolvedType}function att(n){return n=fc(n,!0),n.kind===216||n.kind===234||TE(n)}function mF(n,d,m){let v=HM(n);if(Jn(n)){let E=nH(n);if(E)return yIe(v,E,d)}let C=OIe(v)||(m?X6(v,m,void 0,d||0):Tu(v,d));if(To(Wa(n)?FI(n):n)){if(n.name.kind===206&&JS(C))return vqt(C,n.name);if(n.name.kind===207&&Ba(C))return bqt(C,n.name)}return C}function vqt(n,d){let m;for(let E of d.elements)if(E.initializer){let L=ctt(E);L&&!da(n,L)&&(m=hi(m,E))}if(!m)return n;let v=ta();for(let E of zS(n))v.set(E.escapedName,E);for(let E of m){let L=Aa(16777220,ctt(E));L.links.type=Z(E,!1,!1),v.set(L.escapedName,L)}let C=Io(n.symbol,v,F,F,r_(n));return C.objectFlags=n.objectFlags,C}function ctt(n){let d=Db(n.propertyName||n.name);return uh(d)?dh(d):void 0}function bqt(n,d){if(n.target.combinedFlags&12||VS(n)>=d.elements.length)return n;let m=d.elements,v=e2(n).slice(),C=n.target.elementFlags.slice();for(let E=VS(n);EHce(n,v))}if(d.flags&58982400){let m=Cf(d)||Y;return hu(m,4)&&hu(n,128)||hu(m,8)&&hu(n,256)||hu(m,64)&&hu(n,2048)||hu(m,4096)&&hu(n,8192)||Hce(n,m)}return!!(d.flags&406847616&&hu(n,128)||d.flags&256&&hu(n,256)||d.flags&2048&&hu(n,2048)||d.flags&512&&hu(n,512)||d.flags&8192&&hu(n,8192))}return!1}function hF(n){let d=n.parent;return ZC(d)&&qg(d.type)||TE(d)&&qg(JO(d))||gIe(n)&&_D(H_(n,0))||(O_(d)||yf(d)||fh(d))&&hF(d)||(ed(d)||jf(d)||S4(d))&&hF(d.parent)}function gF(n,d,m){let v=Ho(n,d,m);return hF(n)||Whe(n)?x_(v):att(n)?v:oDe(v,Sce(H_(n,void 0),n,void 0))}function ltt(n,d){return n.name.kind===167&&Cy(n.name),gF(n.initializer,d)}function utt(n,d){Fit(n),n.name.kind===167&&Cy(n.name);let m=ett(n,d);return dtt(n,m,d)}function dtt(n,d,m){if(m&&m&10){let v=DB(d,0,!0),C=DB(d,1,!0),E=v||C;if(E&&E.typeParameters){let L=cw(n,2);if(L){let J=DB(Pb(L),v?0:1,!1);if(J&&!J.typeParameters){if(m&8)return ftt(n,m),Ua;let ee=a2(n),oe=ee.signature&&vc(ee.signature),pe=oe&&vet(oe);if(pe&&!pe.typeParameters&&!Et(ee.inferences,Y6)){let Me=kqt(ee,E.typeParameters),Ne=aEe(E,Me),vt=_i(ee.inferences,Ot=>fDe(Ot.typeParameter));if(cDe(Ne,J,(Ot,jt)=>{Ob(vt,Ot,jt,0,!0)}),Lt(vt,Y6)&&(lDe(Ne,J,(Ot,jt)=>{Ob(vt,Ot,jt)}),!xqt(ee.inferences,vt)))return Cqt(ee.inferences,vt),ee.inferredTypeParameters=Fo(ee.inferredTypeParameters,Me),pD(Ne)}return pD(bet(E,J,ee),vo(Vx,Me=>Me&&_i(Me.inferences,Ne=>Ne.typeParameter)).slice())}}}}return d}function ftt(n,d){if(d&2){let m=a2(n);m.flags|=4}}function Y6(n){return!!(n.candidates||n.contraCandidates)}function Sqt(n){return!!(n.candidates||n.contraCandidates||MXe(n.typeParameter))}function xqt(n,d){for(let m=0;mm.symbol.escapedName===d)}function wqt(n,d){let m=d.length;for(;m>1&&d.charCodeAt(m-1)>=48&&d.charCodeAt(m-1)<=57;)m--;let v=d.slice(0,m);for(let C=1;;C++){let E=v+C;if(!LIe(n,E))return E}}function _tt(n){let d=ID(n);if(d&&!d.typeParameters)return vc(d)}function Tqt(n){let d=Ho(n.expression),m=gB(d,n.expression),v=_tt(d);return v&&tce(v,n,m!==d)}function wf(n){let d=OIe(n);if(d)return d;if(n.flags&268435456&&Vm){let C=Vm[ac(n)];if(C)return C}let m=kS,v=Ho(n,64);if(kS!==m){let C=Vm||(Vm=[]);C[ac(n)]=v,S0e(n,n.flags|268435456)}return v}function OIe(n){let d=fc(n,!0);if(TE(d)){let m=JO(d);if(!qg(m))return yo(m)}if(d=fc(n),Ax(d)){let m=OIe(d.expression);return m?WA(m):void 0}if(Gs(d)&&d.expression.kind!==108&&!Y_(d,!0)&&!Oet(d))return Y2(d)?Tqt(d):_tt($6(d.expression));if(ZC(d)&&!qg(d.type))return yo(d.type);if(Q2(n)||M3(n))return Ho(n)}function lG(n){let d=rr(n);if(d.contextFreeType)return d.contextFreeType;H$(n,je,!1);let m=d.contextFreeType=Ho(n,4);return wB(),m}function Ho(n,d,m){var v,C;(v=jn)==null||v.push(jn.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let E=R;R=n,T=0;let L=Iqt(n,d,m),J=dtt(n,L,d);return zce(J)&&Eqt(n,J),R=E,(C=jn)==null||C.pop(),J}function Eqt(n,d){let m=n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&ole(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281;if(m||ot(n,S.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),$.isolatedModules||$.verbatimModuleSyntax&&m&&!ni(n,hp(n),2097152,void 0,!1,!0)){B.assert(!!(d.symbol.flags&128));let v=d.symbol.valueDeclaration,C=e.getRedirectReferenceForResolutionFromSourceOfProject(en(v).resolvedPath);v.flags&33554432&&!dk(n)&&(!C||!Cx(C.commandLine.options))&&ot(n,S.Cannot_access_ambient_const_enums_when_0_is_enabled,xt)}}function Dqt(n,d){if(dm(n)){if(See(n))return yIe(n.expression,xee(n),d);if(TE(n))return Bet(n,d)}return Ho(n.expression,d)}function Iqt(n,d,m){let v=n.kind;if(a)switch(v){case 231:case 218:case 219:a.throwIfCancellationRequested()}switch(v){case 80:return nHt(n,d);case 81:return CUt(n);case 110:return z$(n);case 108:return yce(n);case 106:return tt;case 15:case 11:return gDe(n)?$t:PA(sp(n.text));case 9:return Vit(n),PA(Pg(+n.text));case 10:return PXt(n),PA(h$({negative:!1,base10Value:bO(n.text)}));case 112:return Dt;case 97:return Ji;case 228:return hqt(n);case 14:return GHt(n);case 209:return zZe(n,d,m);case 210:return tUt(n,d);case 211:return Dce(n,d);case 166:return net(n,d);case 212:return BUt(n,d);case 213:if(n.expression.kind===102)return hJt(n);case 214:return mJt(n,d);case 215:return gJt(n);case 217:return Dqt(n,d);case 231:return vGt(n);case 218:case 219:return ett(n,d);case 221:return ZJt(n);case 216:case 234:return yJt(n,d);case 235:return SJt(n);case 233:return Wet(n);case 238:return xJt(n);case 236:return CJt(n);case 220:return YJt(n);case 222:return eqt(n);case 223:return tqt(n);case 224:return iqt(n);case 225:return nqt(n);case 226:return Oe(n,d);case 227:return mqt(n,d);case 230:return KHt(n,d);case 232:return Bt;case 229:return pqt(n);case 237:return XHt(n);case 294:return hUt(n,d);case 284:return oUt(n,d);case 285:return nUt(n,d);case 288:return sUt(n);case 292:return cUt(n,d);case 286:B.fail("Shouldn't ever directly check a JsxOpeningElement")}return _t}function ptt(n){C1(n),n.expression&&sf(n.expression,S.Type_expected),Ia(n.constraint),Ia(n.default);let d=GT(sr(n));Cf(d),YBt(d)||ot(n.default,S.Type_parameter_0_has_a_circular_default,Dn(d));let m=V_(d),v=YT(d);m&&v&&o_(v,om(Oo(m,n2(d,v)),v),n.default,S.Type_0_does_not_satisfy_the_constraint_1),zA(n),r(()=>SF(n.name,S.Type_parameter_name_cannot_be_0))}function Nqt(n){var d,m;if(vf(n.parent)||jr(n.parent)||$h(n.parent)){let v=GT(sr(n)),C=eDe(v)&24576;if(C){let E=sr(n.parent);if($h(n.parent)&&!(_r(Qc(E))&52))ot(n,S.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(C===8192||C===16384){(d=jn)==null||d.push(jn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:rf(Qc(E)),id:rf(v)});let L=k$(E,v,C===16384?H:$l),J=k$(E,v,C===16384?$l:H),ee=v;W=v,o_(L,J,n,S.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),W=ee,(m=jn)==null||m.pop()}}}}function mtt(n){C1(n),pG(n);let d=_m(n);Ar(n,31)&&(d.kind===176&&jh(d.body)||ot(n,S.A_parameter_property_is_only_allowed_in_a_constructor_implementation),d.kind===176&&et(n.name)&&n.name.escapedText==="constructor"&&ot(n.name,S.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&m4(n)&&Rs(n.name)&&d.body&&ot(n,S.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&et(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(d.parameters.indexOf(n)!==0&&ot(n,S.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(d.kind===176||d.kind===180||d.kind===185)&&ot(n,S.A_constructor_cannot_have_a_this_parameter),d.kind===219&&ot(n,S.An_arrow_function_cannot_have_a_this_parameter),(d.kind===177||d.kind===178)&&ot(n,S.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Rs(n.name)&&!fa(v0(Wn(n.symbol)),Ju)&&ot(n,S.A_rest_parameter_must_be_of_an_array_type)}function Aqt(n){let d=Pqt(n);if(!d){ot(n,S.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let m=Km(d),v=wh(m);if(!v)return;Ia(n.type);let{parameterName:C}=n;if(v.kind!==0&&v.kind!==2){if(v.parameterIndex>=0){if(Xf(m)&&v.parameterIndex===m.parameters.length-1)ot(C,S.A_type_predicate_cannot_reference_a_rest_parameter);else if(v.type){let E=()=>bs(void 0,S.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);o_(v.type,Wn(m.parameters[v.parameterIndex]),n.type,void 0,E)}}else if(C){let E=!1;for(let{name:L}of d.parameters)if(Rs(L)&&htt(L,C,v.parameterName)){E=!0;break}E||ot(n.parameterName,S.Cannot_find_parameter_0,v.parameterName)}}}function Pqt(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let d=n.parent;if(n===d.type)return d}}function htt(n,d,m){for(let v of n.elements){if(Ed(v))continue;let C=v.name;if(C.kind===80&&C.escapedText===m)return ot(d,S.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,m),!0;if((C.kind===207||C.kind===206)&&htt(C,d,m))return!0}}function LB(n){n.kind===181?aXt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&fle(n);let d=Vu(n);d&4||((d&3)===3&&te<5&&Pd(n,6144),(d&3)===2&&te<4&&Pd(n,64),d&3&&te<2&&Pd(n,128)),gG(dx(n)),hGt(n),re(n.parameters,mtt),n.type&&Ia(n.type),r(m);function m(){A$t(n);let v=Up(n),C=v;if(Jn(n)){let E=KC(n);if(E&&E.typeExpression&&pm(E.typeExpression.type)){let L=ID(yo(E.typeExpression));L&&L.declaration&&(v=Up(L.declaration),C=E.typeExpression.type)}}if(Se&&!v)switch(n.kind){case 180:ot(n,S.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:ot(n,S.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(v&&C){let E=Vu(n);if((E&5)===1){let L=yo(v);L===wi?ot(C,S.A_generator_cannot_have_a_void_type_annotation):FIe(L,E,C)}else(E&3)===2&&l$t(n,v,C)}n.kind!==181&&n.kind!==317&&yC(n)}}function FIe(n,d,m){let v=u2(0,n,(d&2)!==0)||je,C=u2(1,n,(d&2)!==0)||v,E=u2(2,n,(d&2)!==0)||Y,L=jce(v,C,E,!!(d&2));return o_(L,n,m)}function Lqt(n){let d=new Map,m=new Map,v=new Map;for(let E of n.members)if(E.kind===176)for(let L of E.parameters)Wp(L,E)&&!Rs(L.name)&&C(d,L.name,L.name.escapedText,3);else{let L=ia(E),J=E.name;if(!J)continue;let ee=xo(J),oe=ee&&L?16:0,pe=ee?v:L?m:d,Me=J&&mNe(J);if(Me)switch(E.kind){case 177:C(pe,J,Me,1|oe);break;case 178:C(pe,J,Me,2|oe);break;case 172:C(pe,J,Me,3|oe);break;case 174:C(pe,J,Me,8|oe);break}}function C(E,L,J,ee){let oe=E.get(J);if(oe)if((oe&16)!==(ee&16))ot(L,S.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Jl(L));else{let pe=!!(oe&8),Me=!!(ee&8);pe||Me?pe!==Me&&ot(L,S.Duplicate_identifier_0,Jl(L)):oe&ee&-17?ot(L,S.Duplicate_identifier_0,Jl(L)):E.set(J,oe|ee)}else E.set(J,ee)}}function Oqt(n){for(let d of n.members){let m=d.name;if(ia(d)&&m){let C=mNe(m);switch(C){case"name":case"length":case"caller":case"arguments":if(ce)break;case"prototype":let E=S.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,L=rC(sr(n));ot(m,E,C,L);break}}}}function gtt(n){let d=new Map;for(let m of n.members)if(m.kind===171){let v,C=m.name;switch(C.kind){case 11:case 9:v=C.text;break;case 80:v=mr(C);break;default:continue}d.get(v)?(ot(cs(m.symbol.valueDeclaration),S.Duplicate_identifier_0,v),ot(m.name,S.Duplicate_identifier_0,v)):d.set(v,!0)}}function MIe(n){if(n.kind===264){let m=sr(n);if(m.declarations&&m.declarations.length>0&&m.declarations[0]!==n)return}let d=cEe(sr(n));if(d?.declarations){let m=new Map;for(let v of d.declarations)v.parameters.length===1&&v.parameters[0].type&&wD(yo(v.parameters[0].type),C=>{let E=m.get(rf(C));E?E.declarations.push(v):m.set(rf(C),{type:C,declarations:[v]})});m.forEach(v=>{if(v.declarations.length>1)for(let C of v.declarations)ot(C,S.Duplicate_index_signature_for_type_0,Dn(v.type))})}}function ytt(n){!C1(n)&&!IXt(n)&&_le(n.name),pG(n),Uce(n),Ar(n,64)&&n.kind===172&&n.initializer&&ot(n,S.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Hc(n.name))}function Fqt(n){return xo(n.name)&&ot(n,S.Private_identifiers_are_not_allowed_outside_class_bodies),ytt(n)}function Mqt(n){Fit(n)||_le(n.name),pu(n)&&n.asteriskToken&&et(n.name)&&mr(n.name)==="constructor"&&ot(n.name,S.Class_constructor_may_not_be_a_generator),Ntt(n),Ar(n,64)&&n.kind===174&&n.body&&ot(n,S.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Hc(n.name)),xo(n.name)&&!Zd(n)&&ot(n,S.Private_identifiers_are_not_allowed_outside_class_bodies),Uce(n)}function Uce(n){if(xo(n.name)&&(te<9||te<99||!ce)){for(let d=Gg(n);d;d=Gg(d))rr(d).flags|=1048576;if(Qu(n.parent)){let d=ODe(n.parent);d&&(rr(n.name).flags|=32768,rr(d).flags|=4096)}}}function Rqt(n){C1(n),ws(n,Ia)}function Bqt(n){LB(n),EXt(n)||DXt(n),Ia(n.body);let d=sr(n),m=bl(d,n.kind);if(n===m&&qce(d),Ul(n.body))return;r(C);return;function v(E){return u_(E)?!0:E.kind===172&&!ia(E)&&!!E.initializer}function C(){let E=n.parent;if(Yw(E)){FDe(n.parent,E);let L=MDe(E),J=EZe(n.body);if(J){if(L&&ot(J,S.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ae&&(Lt(n.parent.members,v)||Lt(n.parameters,oe=>Ar(oe,31))))if(!jqt(J,n.body))ot(J,S.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{let oe;for(let pe of n.body.statements){if(Ud(pe)&&oE(Cu(pe.expression))){oe=pe;break}if(vtt(pe))break}oe===void 0&&ot(n,S.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 L||ot(n,S.Constructors_for_derived_classes_must_contain_a_super_call)}}}function jqt(n,d){let m=Ky(n.parent);return Ud(m)&&m.parent===d}function vtt(n){return n.kind===108||n.kind===110?!0:Ghe(n)?!1:!!ws(n,vtt)}function btt(n){et(n.name)&&mr(n.name)==="constructor"&&jr(n.parent)&&ot(n.name,S.Class_constructor_may_not_be_an_accessor),r(d),Ia(n.body),Uce(n);function d(){if(!fle(n)&&!hXt(n)&&_le(n.name),dG(n),LB(n),n.kind===177&&!(n.flags&33554432)&&jh(n.body)&&n.flags&512&&(n.flags&1024||ot(n.name,S.A_get_accessor_must_return_a_value)),n.name.kind===167&&Cy(n.name),O6(n)){let v=sr(n),C=bl(v,177),E=bl(v,178);if(C&&E&&!(HA(C)&1)){rr(C).flags|=1;let L=__(C),J=__(E);(L&64)!==(J&64)&&(ot(C.name,S.Accessors_must_both_be_abstract_or_non_abstract),ot(E.name,S.Accessors_must_both_be_abstract_or_non_abstract)),(L&4&&!(J&6)||L&2&&!(J&2))&&(ot(C.name,S.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),ot(E.name,S.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let m=Q9(sr(n));n.kind===177&&EIe(n,m)}}function Wqt(n){dG(n)}function zqt(n,d,m){return n.typeArguments&&m{let v=RIe(n);v&&Stt(n,v)});let m=rr(n).resolvedSymbol;m&&Lt(m.declarations,v=>fN(v)&&!!(v.flags&536870912))&&vb(tG(n),m.declarations,m.escapedName)}}function Hqt(n){let d=kr(n.parent,Cz);if(!d)return;let m=RIe(d);if(!m)return;let v=V_(m[d.typeArguments.indexOf(n)]);return v&&Oo(v,Np(m,Jce(d,m)))}function Uqt(n){aYe(n)}function Jqt(n){re(n.members,Ia),r(d);function d(){let m=YYe(n);Zce(m,m.symbol),MIe(n),gtt(n)}}function qqt(n){Ia(n.elementType)}function $qt(n){let d=!1,m=!1;for(let v of n.elements){let C=SEe(v);if(C&8){let E=yo(v.type);if(!US(E)){ot(v,S.A_rest_element_type_must_be_an_array_type);break}(Eh(E)||Ba(E)&&E.target.combinedFlags&4)&&(C|=4)}if(C&4){if(m){Gi(v,S.A_rest_element_cannot_follow_another_rest_element);break}m=!0}else if(C&2){if(m){Gi(v,S.An_optional_element_cannot_follow_a_rest_element);break}d=!0}else if(C&1&&d){Gi(v,S.A_required_element_cannot_follow_an_optional_element);break}}re(n.elements,Ia),yo(n)}function Gqt(n){re(n.types,Ia),yo(n)}function Ctt(n,d){if(!(n.flags&8388608))return n;let m=n.objectType,v=n.indexType,C=Dp(m)&&t$(m)===2?FYe(m,0):Sy(m,0),E=!!y1(m,ei);if(Pp(v,L=>fa(L,C)||E&&wA(L,ei)))return d.kind===212&&nS(d)&&_r(m)&32&&dv(m)&1&&ot(d,S.Index_signature_in_type_0_only_permits_reading,Dn(m)),n;if(gD(m)){let L=Oae(v,d);if(L){let J=wD(S_(m),ee=>da(ee,L));if(J&&lh(J)&6)return ot(d,S.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,So(L)),_t}}return ot(d,S.Type_0_cannot_be_used_to_index_type_1,Dn(v),Dn(m)),_t}function Kqt(n){Ia(n.objectType),Ia(n.indexType),Ctt(JYe(n),n)}function Xqt(n){Yqt(n),Ia(n.typeParameter),Ia(n.nameType),Ia(n.type),n.type||sw(n,je);let d=LEe(n),m=WS(d);if(m)o_(m,ai,n.nameType);else{let v=Gm(d);o_(v,ai,OP(n.typeParameter))}}function Yqt(n){var d;if((d=n.members)!=null&&d.length)return Gi(n.members[0],S.A_mapped_type_may_not_declare_properties_or_methods)}function Qqt(n){WEe(n)}function Zqt(n){yXt(n),Ia(n.type)}function e$t(n){ws(n,Ia)}function t$t(n){Ri(n,m=>m.parent&&m.parent.kind===194&&m.parent.extendsType===m)||Gi(n,S.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Ia(n.typeParameter);let d=sr(n.typeParameter);if(d.declarations&&d.declarations.length>1){let m=Po(d);if(!m.typeParametersChecked){m.typeParametersChecked=!0;let v=GT(d),C=fhe(d,168);if(!Ktt(C,[v],E=>[E])){let E=Lo(d);for(let L of C)ot(L.name,S.All_declarations_of_0_must_have_identical_constraints,E)}}}yC(n)}function i$t(n){for(let d of n.templateSpans){Ia(d.type);let m=yo(d.type);o_(m,Ss,d.type)}yo(n)}function n$t(n){Ia(n.argument),n.attributes&&z4(n.attributes,Gi),xtt(n)}function r$t(n){n.dotDotDotToken&&n.questionToken&&Gi(n,S.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&Gi(n.type,S.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&Gi(n.type,S.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Ia(n.type),yo(n)}function uG(n){return(Jp(n,2)||u_(n))&&!!(n.flags&33554432)}function OB(n,d){let m=ple(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){let v=Mz(n);v&&v.flags&128&&!(m&128)&&!(ty(n.parent)&&Hu(n.parent.parent)&&$y(n.parent.parent))&&(m|=32),m|=128}return m&d}function qce(n){r(()=>o$t(n))}function o$t(n){function d($i,Ni){return Ni!==void 0&&Ni.parent===$i[0].parent?Ni:$i[0]}function m($i,Ni,Zn,wr,Qr){if((wr^Qr)!==0){let ra=OB(d($i,Ni),Zn);Xl($i,Ys=>en(Ys).fileName).forEach(Ys=>{let _l=OB(d(Ys,Ni),Zn);for(let us of Ys){let Gl=OB(us,Zn)^ra,af=OB(us,Zn)^_l;af&32?ot(cs(us),S.Overload_signatures_must_all_be_exported_or_non_exported):af&128?ot(cs(us),S.Overload_signatures_must_all_be_ambient_or_non_ambient):Gl&6?ot(cs(us)||us,S.Overload_signatures_must_all_be_public_private_or_protected):Gl&64&&ot(cs(us),S.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function v($i,Ni,Zn,wr){if(Zn!==wr){let Qr=XI(d($i,Ni));re($i,Cr=>{XI(Cr)!==Qr&&ot(cs(Cr),S.Overload_signatures_must_all_be_optional_or_required)})}}let C=230,E=0,L=C,J=!1,ee=!0,oe=!1,pe,Me,Ne,vt=n.declarations,Ot=(n.flags&16384)!==0;function jt($i){if($i.name&&Ul($i.name))return;let Ni=!1,Zn=ws($i.parent,Qr=>{if(Ni)return Qr;Ni=Qr===$i});if(Zn&&Zn.pos===$i.end&&Zn.kind===$i.kind){let Qr=Zn.name||Zn,Cr=Zn.name;if($i.name&&Cr&&(xo($i.name)&&xo(Cr)&&$i.name.escapedText===Cr.escapedText||Ma($i.name)&&Ma(Cr)&&S1(Cy($i.name),Cy(Cr))||q0($i.name)&&q0(Cr)&&tO($i.name)===tO(Cr))){if(($i.kind===174||$i.kind===173)&&ia($i)!==ia(Zn)){let Ys=ia($i)?S.Function_overload_must_be_static:S.Function_overload_must_not_be_static;ot(Qr,Ys)}return}if(jh(Zn.body)){ot(Qr,S.Function_implementation_name_must_be_0,Hc($i.name));return}}let wr=$i.name||$i;Ot?ot(wr,S.Constructor_implementation_is_missing):Ar($i,64)?ot(wr,S.All_declarations_of_an_abstract_method_must_be_consecutive):ot(wr,S.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let xi=!1,Pi=!1,Pn=!1,Bn=[];if(vt)for(let $i of vt){let Ni=$i,Zn=Ni.flags&33554432,wr=Ni.parent&&(Ni.parent.kind===264||Ni.parent.kind===187)||Zn;if(wr&&(Ne=void 0),(Ni.kind===263||Ni.kind===231)&&!Zn&&(Pn=!0),Ni.kind===262||Ni.kind===174||Ni.kind===173||Ni.kind===176){Bn.push(Ni);let Qr=OB(Ni,C);E|=Qr,L&=Qr,J=J||XI(Ni),ee=ee&&XI(Ni);let Cr=jh(Ni.body);Cr&&pe?Ot?Pi=!0:xi=!0:Ne?.parent===Ni.parent&&Ne.end!==Ni.pos&&jt(Ne),Cr?pe||(pe=Ni):oe=!0,Ne=Ni,wr||(Me=Ni)}Jn($i)&&vs($i)&&$i.jsDoc&&(oe=K(hZ($i))>0)}if(Pi&&re(Bn,$i=>{ot($i,S.Multiple_constructor_implementations_are_not_allowed)}),xi&&re(Bn,$i=>{ot(cs($i)||$i,S.Duplicate_function_implementation)}),Pn&&!Ot&&n.flags&16&&vt){let $i=Di(vt,Ni=>Ni.kind===263).map(Ni=>Mn(Ni,S.Consider_adding_a_declare_modifier_to_this_class));re(vt,Ni=>{let Zn=Ni.kind===263?S.Class_declaration_cannot_implement_overload_list_for_0:Ni.kind===262?S.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Zn&&Xs(ot(cs(Ni)||Ni,Zn,fu(n)),...$i)})}if(Me&&!Me.body&&!Ar(Me,64)&&!Me.questionToken&&jt(Me),oe&&(vt&&(m(vt,pe,C,E,L),v(vt,pe,J,ee)),pe)){let $i=QT(n),Ni=Km(pe);for(let Zn of $i)if(!gzt(Ni,Zn)){let wr=Zn.declaration&&ob(Zn.declaration)?Zn.declaration.parent.tagName:Zn.declaration;Xs(ot(wr,S.This_overload_signature_is_not_compatible_with_its_implementation_signature),Mn(pe,S.The_implementation_signature_is_declared_here));break}}}function FB(n){r(()=>s$t(n))}function s$t(n){let d=n.localSymbol;if(!d&&(d=sr(n),!d.exportSymbol)||bl(d,n.kind)!==n)return;let m=0,v=0,C=0;for(let oe of d.declarations){let pe=ee(oe),Me=OB(oe,2080);Me&32?Me&2048?C|=pe:m|=pe:v|=pe}let E=m|v,L=m&v,J=C&E;if(L||J)for(let oe of d.declarations){let pe=ee(oe),Me=cs(oe);pe&J?ot(Me,S.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Hc(Me)):pe&L&&ot(Me,S.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Hc(Me))}function ee(oe){let pe=oe;switch(pe.kind){case 264:case 265:case 346:case 338:case 340:return 2;case 267:return d_(pe)||ab(pe)!==0?5:4;case 263:case 266:case 306:return 3;case 307:return 7;case 277:case 226:let Me=pe,Ne=ll(Me)?Me.expression:Me.right;if(!Xc(Ne))return 1;pe=Ne;case 271:case 274:case 273:let vt=0,Ot=xf(sr(pe));return re(Ot.declarations,jt=>{vt|=ee(jt)}),vt;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return B.failBadSyntaxKind(pe)}}}function yF(n,d,m,...v){let C=MB(n,d);return C&&WA(C,d,m,...v)}function MB(n,d,m){if(pc(n))return;let v=n;if(v.promisedTypeOfPromise)return v.promisedTypeOfPromise;if(gy(n,u$(!1)))return v.promisedTypeOfPromise=fl(n)[0];if(PB(fv(n),402915324))return;let C=Mu(n,"then");if(pc(C))return;let E=C?Bs(C,0):F;if(E.length===0){d&&ot(d,S.A_promise_must_have_a_then_method);return}let L,J;for(let pe of E){let Me=ew(pe);Me&&Me!==wi&&!xy(n,Me,l1)?L=Me:J=hi(J,pe)}if(!J){B.assertIsDefined(L),m&&(m.value=L),d&&ot(d,S.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Dn(n),Dn(L));return}let ee=lg(Fr(_i(J,xIe)),2097152);if(pc(ee))return;let oe=Bs(ee,0);if(oe.length===0){d&&ot(d,S.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return v.promisedTypeOfPromise=Fr(_i(oe,xIe),2)}function RB(n,d,m,v,...C){return(d?WA(n,m,v,...C):qS(n,m,v,...C))||_t}function ktt(n){if(PB(fv(n),402915324))return!1;let d=Mu(n,"then");return!!d&&Bs(lg(d,2097152),0).length>0}function $ce(n){var d;if(n.flags&16777216){let m=bEe(!1);return!!m&&n.aliasSymbol===m&&((d=n.aliasTypeArguments)==null?void 0:d.length)===1}return!1}function vF(n){return n.flags&1048576?Nl(n,vF):$ce(n)?n.aliasTypeArguments[0]:n}function wtt(n){if(pc(n)||$ce(n))return!1;if(gD(n)){let d=Cf(n);if(d?d.flags&3||Nb(d)||Dh(d,ktt):hu(n,8650752))return!0}return!1}function a$t(n){let d=bEe(!0);if(d)return B6(d,[vF(n)])}function c$t(n){return wtt(n)?a$t(n)??n:(B.assert($ce(n)||MB(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n)}function WA(n,d,m,...v){let C=qS(n,d,m,...v);return C&&c$t(C)}function qS(n,d,m,...v){if(pc(n)||$ce(n))return n;let C=n;if(C.awaitedTypeOfType)return C.awaitedTypeOfType;if(n.flags&1048576){if(Jx.lastIndexOf(n.id)>=0){d&&ot(d,S.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let J=d?oe=>qS(oe,d,m,...v):qS;Jx.push(n.id);let ee=Nl(n,J);return Jx.pop(),C.awaitedTypeOfType=ee}if(wtt(n))return C.awaitedTypeOfType=n;let E={value:void 0},L=MB(n,void 0,E);if(L){if(n.id===L.id||Jx.lastIndexOf(L.id)>=0){d&&ot(d,S.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Jx.push(n.id);let J=qS(L,d,m,...v);return Jx.pop(),J?C.awaitedTypeOfType=J:void 0}if(ktt(n)){if(d){B.assertIsDefined(m);let J;E.value&&(J=bs(J,S.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Dn(n),Dn(E.value))),J=bs(J,m,...v),Ga.add(zv(en(d),d,J))}return}return C.awaitedTypeOfType=n}function l$t(n,d,m){let v=yo(d);if(te>=2){if(le(v))return;let E=u$(!0);if(E!==Bo&&!gy(v,E)){C(S.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,d,m,Dn(qS(v)||wi));return}}else{if(RA(n,5),le(v))return;let E=MM(d);if(E===void 0){C(S.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,d,m,Dn(v));return}let L=Ml(E,111551,!0),J=L?Wn(L):_t;if(le(J)){E.kind===80&&E.escapedText==="Promise"&&dD(v)===u$(!1)?ot(m,S.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):C(S.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,d,m,zp(E));return}let ee=wjt(!0);if(ee===Ts){C(S.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,d,m,zp(E));return}let oe=S.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!o_(J,ee,m,oe,()=>d===m?void 0:bs(void 0,S.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let Me=E&&hp(E),Ne=qd(n.locals,Me.escapedText,111551);if(Ne){ot(Ne.valueDeclaration,S.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,mr(Me),zp(E));return}}RB(v,!1,n,S.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function C(E,L,J,ee){if(L===J)ot(J,E,ee);else{let oe=ot(J,S.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Xs(oe,Mn(L,E,ee))}}}function u$t(n){let d=en(n);if(!vC(d)){let m=n.expression;if(O_(m))return!1;let v=!0,C;for(;;){if(nb(m)||DN(m)){m=m.expression;continue}if(Gs(m)){v||(C=m),m.questionDotToken&&(C=m.questionDotToken),m=m.expression,v=!1;continue}if(lr(m)){m.questionDotToken&&(C=m.questionDotToken),m=m.expression,v=!1;continue}et(m)||(C=m);break}if(C)return Xs(ot(n.expression,S.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Mn(C,S.Invalid_syntax_in_decorator)),!0}return!1}function d$t(n){u$t(n);let d=K6(n);Rce(d,n);let m=vc(d);if(m.flags&1)return;let v=wIe(n);if(!v?.resolvedReturnType)return;let C,E=v.resolvedReturnType;switch(n.parent.kind){case 263:case 231:C=S.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!_e){C=S.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:C=S.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:C=S.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return B.failBadSyntaxKind(n.parent)}o_(m,E,n.expression,C)}function BB(n,d,m,v,C,E=m.length,L=0){let J=U.createFunctionTypeNode(void 0,F,U.createKeywordTypeNode(133));return g1(J,n,d,m,v,C,E,L)}function jIe(n,d,m,v,C,E,L){let J=BB(n,d,m,v,C,E,L);return pD(J)}function Ttt(n){return jIe(void 0,void 0,F,n)}function Ett(n){let d=Dg("value",n);return jIe(void 0,void 0,[d],wi)}function WIe(n){if(n)switch(n.kind){case 193:case 192:return Dtt(n.types);case 194:return Dtt([n.trueType,n.falseType]);case 196:case 202:return WIe(n.type);case 183:return n.typeName}}function Dtt(n){let d;for(let m of n){for(;m.kind===196||m.kind===202;)m=m.type;if(m.kind===146||!he&&(m.kind===201&&m.literal.kind===106||m.kind===157))continue;let v=WIe(m);if(!v)return;if(d){if(!et(d)||!et(v)||d.escapedText!==v.escapedText)return}else d=v}return d}function Gce(n){let d=Yu(n);return Jy(n)?oZ(d):d}function dG(n){if(!hT(n)||!Pm(n)||!n.modifiers||!RM(_e,n,n.parent,n.parent.parent))return;let d=St(n.modifiers,Td);if(d){_e?(Pd(d,8),n.kind===169&&Pd(d,32)):te<99&&(Pd(d,8),Zu(n)?n.name?Xtt(n)&&Pd(d,4194304):Pd(d,4194304):Qu(n)||(xo(n.name)&&(pu(n)||mx(n)||K_(n))&&Pd(d,4194304),Ma(n.name)&&Pd(d,8388608))),RA(n,8);for(let m of n.modifiers)Td(m)&&d$t(m)}}function f$t(n){r(d);function d(){Ntt(n),dNe(n),bF(n,n.name)}}function _$t(n){n.typeExpression||ot(n.name,S.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&SF(n.name,S.Type_alias_name_cannot_be_0),Ia(n.typeExpression),gG(dx(n))}function p$t(n){Ia(n.constraint);for(let d of n.typeParameters)Ia(d)}function m$t(n){Ia(n.typeExpression)}function h$t(n){Ia(n.typeExpression);let d=sk(n);if(d){let m=lz(d,NH);if(K(m)>1)for(let v=1;v0),m.length>1&&ot(m[1],S.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let v=Itt(n.class.expression),C=Yw(d);if(C){let E=Itt(C.expression);E&&v.escapedText!==E.escapedText&&ot(v,S.JSDoc_0_1_does_not_match_the_extends_2_clause,mr(n.tagName),mr(v),mr(E))}}function w$t(n){let d=Kw(n);d&&u_(d)&&ot(n,S.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Itt(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function Ntt(n){var d;dG(n),LB(n);let m=Vu(n);if(n.name&&n.name.kind===167&&Cy(n.name),O6(n)){let E=sr(n),L=n.localSymbol||E,J=(d=L.declarations)==null?void 0:d.find(ee=>ee.kind===n.kind&&!(ee.flags&524288));n===J&&qce(L),E.parent&&qce(E)}let v=n.kind===173?void 0:n.body;if(Ia(v),EIe(n,M6(n)),r(C),Jn(n)){let E=KC(n);E&&E.typeExpression&&!UDe(yo(E.typeExpression),n)&&ot(E.typeExpression.type,S.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function C(){Up(n)||(Ul(v)&&!uG(n)&&sw(n,je),m&1&&jh(v)&&vc(Km(n)))}}function yC(n){r(d);function d(){let m=en(n),v=c0.get(m.path);v||(v=[],c0.set(m.path,v)),v.push(n)}}function Att(n,d){for(let m of n)switch(m.kind){case 263:case 231:T$t(m,d),zIe(m,d);break;case 307:case 267:case 241:case 269:case 248:case 249:case 250:Ott(m,d);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:m.body&&Ott(m,d),zIe(m,d);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:zIe(m,d);break;case 195:E$t(m,d);break;default:B.assertNever(m,"Node should not have been registered for unused identifiers check")}}function Ptt(n,d,m){let v=cs(n)||n,C=fN(n)?S._0_is_declared_but_never_used:S._0_is_declared_but_its_value_is_never_read;m(n,0,Mn(v,C,d))}function jB(n){return et(n)&&mr(n).charCodeAt(0)===95}function T$t(n,d){for(let m of n.members)switch(m.kind){case 174:case 172:case 177:case 178:if(m.kind===178&&m.symbol.flags&32768)break;let v=sr(m);!v.isReferenced&&(Jp(m,2)||pf(m)&&xo(m.name))&&!(m.flags&33554432)&&d(m,0,Mn(m.name,S._0_is_declared_but_its_value_is_never_read,Lo(v)));break;case 176:for(let C of m.parameters)!C.symbol.isReferenced&&Ar(C,2)&&d(C,0,Mn(C.name,S.Property_0_is_declared_but_its_value_is_never_read,fu(C.symbol)));break;case 181:case 240:case 175:break;default:B.fail("Unexpected class member")}}function E$t(n,d){let{typeParameter:m}=n;VIe(m)&&d(n,1,Mn(n,S._0_is_declared_but_its_value_is_never_read,mr(m.name)))}function zIe(n,d){let m=sr(n).declarations;if(!m||pa(m)!==n)return;let v=dx(n),C=new Set;for(let E of v){if(!VIe(E))continue;let L=mr(E.name),{parent:J}=E;if(J.kind!==195&&J.typeParameters.every(VIe)){if(_p(C,J)){let ee=en(J),oe=Gh(J)?mee(J):hee(ee,J.typeParameters),Me=J.typeParameters.length===1?[S._0_is_declared_but_its_value_is_never_read,L]:[S.All_type_parameters_are_unused];d(E,1,kd(ee,oe.pos,oe.end-oe.pos,...Me))}}else d(E,1,Mn(E,S._0_is_declared_but_its_value_is_never_read,L))}}function VIe(n){return!(cc(n.symbol).isReferenced&262144)&&!jB(n.name)}function fG(n,d,m,v){let C=String(v(d)),E=n.get(C);E?E[1].push(m):n.set(C,[d,[m]])}function Ltt(n){return kr($0(n),To)}function D$t(n){return Wa(n)?Om(n.parent)?!!(n.propertyName&&jB(n.name)):jB(n.name):d_(n)||(Ur(n)&&tE(n.parent.parent)||Ftt(n))&&jB(n.name)}function Ott(n,d){let m=new Map,v=new Map,C=new Map;n.locals.forEach(E=>{if(!(E.flags&262144?!(E.flags&3&&!(E.isReferenced&3)):E.isReferenced||E.exportSymbol)&&E.declarations){for(let L of E.declarations)if(!D$t(L))if(Ftt(L))fG(m,N$t(L),L,ac);else if(Wa(L)&&Om(L.parent)){let J=pa(L.parent.elements);(L===J||!pa(L.parent.elements).dotDotDotToken)&&fG(v,L.parent,L,ac)}else if(Ur(L)){let J=f2(L)&7,ee=cs(L);(J!==4&&J!==6||!ee||!jB(ee))&&fG(C,L.parent,L,ac)}else{let J=E.valueDeclaration&&Ltt(E.valueDeclaration),ee=E.valueDeclaration&&cs(E.valueDeclaration);J&&ee?!Wp(J,J.parent)&&!Zw(J)&&!jB(ee)&&(Wa(L)&&fS(L.parent)?fG(v,L.parent,L,ac):d(J,1,Mn(ee,S._0_is_declared_but_its_value_is_never_read,fu(E)))):Ptt(L,fu(E),d)}}}),m.forEach(([E,L])=>{let J=E.parent;if((E.name?1:0)+(E.namedBindings?E.namedBindings.kind===274?1:E.namedBindings.elements.length:0)===L.length)d(J,0,L.length===1?Mn(J,S._0_is_declared_but_its_value_is_never_read,mr(Ta(L).name)):Mn(J,S.All_imports_in_import_declaration_are_unused));else for(let oe of L)Ptt(oe,mr(oe.name),d)}),v.forEach(([E,L])=>{let J=Ltt(E.parent)?1:0;if(E.elements.length===L.length)L.length===1&&E.parent.kind===260&&E.parent.parent.kind===261?fG(C,E.parent.parent,E.parent,ac):d(E,J,L.length===1?Mn(E,S._0_is_declared_but_its_value_is_never_read,_G(Ta(L).name)):Mn(E,S.All_destructured_elements_are_unused));else for(let ee of L)d(ee,J,Mn(ee,S._0_is_declared_but_its_value_is_never_read,_G(ee.name)))}),C.forEach(([E,L])=>{if(E.declarations.length===L.length)d(E,0,L.length===1?Mn(Ta(L).name,S._0_is_declared_but_its_value_is_never_read,_G(Ta(L).name)):Mn(E.parent.kind===243?E.parent:E,S.All_variables_are_unused));else for(let J of L)d(J,0,Mn(J,S._0_is_declared_but_its_value_is_never_read,_G(J.name)))})}function I$t(){var n;for(let d of Ux)if(!((n=sr(d))!=null&&n.isReferenced)){let m=FI(d);B.assert(lk(m),"Only parameter declaration should be checked here");let v=Mn(d.name,S._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Hc(d.name),Hc(d.propertyName));m.type||Xs(v,kd(en(m),m.end,0,S.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Hc(d.propertyName))),Ga.add(v)}}function _G(n){switch(n.kind){case 80:return mr(n);case 207:case 206:return _G(ea(Ta(n.elements),Wa).name);default:return B.assertNever(n)}}function Ftt(n){return n.kind===273||n.kind===276||n.kind===274}function N$t(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Kce(n){if(n.kind===241&&Mb(n),DQ(n)){let d=pb;re(n.statements,Ia),pb=d}else re(n.statements,Ia);n.locals&&yC(n)}function A$t(n){te>=2||!MQ(n)||n.flags&33554432||Ul(n.body)||re(n.parameters,d=>{d.name&&!Rs(d.name)&&d.name.escapedText===Ue.escapedName&&zk("noEmit",d,S.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function WB(n,d,m){if(d?.escapedText!==m||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(Zg(n)||Dd(n)||F_(n))&&_x(n))return!1;let v=$0(n);return!(To(v)&&Ul(v.parent.body))}function P$t(n){Ri(n,d=>HA(d)&4?(n.kind!==80?ot(cs(n),S.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):ot(n,S.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function L$t(n){Ri(n,d=>HA(d)&8?(n.kind!==80?ot(cs(n),S.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):ot(n,S.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function O$t(n,d){if(e.getEmitModuleFormatOfFile(en(n))>=5||!d||!WB(n,d,"require")&&!WB(n,d,"exports")||Hu(n)&&ab(n)!==1)return;let m=lD(n);m.kind===307&&Vp(m)&&zk("noEmit",d,S.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Hc(d),Hc(d))}function F$t(n,d){if(!d||te>=4||!WB(n,d,"Promise")||Hu(n)&&ab(n)!==1)return;let m=lD(n);m.kind===307&&Vp(m)&&m.flags&4096&&zk("noEmit",d,S.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Hc(d),Hc(d))}function M$t(n,d){te<=8&&(WB(n,d,"WeakMap")||WB(n,d,"WeakSet"))&&Eg.push(n)}function R$t(n){let d=Gg(n);HA(d)&1048576&&(B.assert(pf(n)&&et(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),zk("noEmit",n,S.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function B$t(n,d){d&&te>=2&&te<=8&&WB(n,d,"Reflect")&&TS.push(n)}function j$t(n){let d=!1;if(Qu(n)){for(let m of n.members)if(HA(m)&2097152){d=!0;break}}else if(Yc(n))HA(n)&2097152&&(d=!0);else{let m=Gg(n);m&&HA(m)&2097152&&(d=!0)}d&&(B.assert(pf(n)&&et(n.name),"The target of a Reflect collision check should be an identifier"),zk("noEmit",n,S.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Hc(n.name),"Reflect"))}function bF(n,d){d&&(O$t(n,d),F$t(n,d),M$t(n,d),B$t(n,d),jr(n)?(SF(d,S.Class_name_cannot_be_0),n.flags&33554432||mGt(d)):dT(n)&&SF(d,S.Enum_name_cannot_be_0))}function W$t(n){if(f2(n)&7||lk(n))return;let d=sr(n);if(d.flags&1){if(!et(n.name))return B.fail();let m=ni(n,n.name.escapedText,3,void 0,!1);if(m&&m!==d&&m.flags&2&&XDe(m)&7){let v=ck(m.valueDeclaration,261),C=v.parent.kind===243&&v.parent.parent?v.parent.parent:void 0;if(!(C&&(C.kind===241&&vs(C.parent)||C.kind===268||C.kind===267||C.kind===307))){let L=Lo(m);ot(n,S.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,L,L)}}}}function zB(n){return n===It?je:n===gc?Mc:n}function pG(n){var d;if(dG(n),Wa(n)||Ia(n.type),!n.name)return;if(n.name.kind===167&&(Cy(n.name),iE(n)&&n.initializer&&Tu(n.initializer)),Wa(n)){if(n.propertyName&&et(n.name)&&lk(n)&&Ul(_m(n).body)){Ux.push(n);return}Om(n.parent)&&n.dotDotDotToken&&te<5&&Pd(n,4),n.propertyName&&n.propertyName.kind===167&&Cy(n.propertyName);let C=n.parent.parent,E=n.dotDotDotToken?32:0,L=We(C,E),J=n.propertyName||n.name;if(L&&!Rs(J)){let ee=Db(J);if(uh(ee)){let oe=dh(ee),pe=da(L,oe);pe&&(X$(pe,void 0,!1),QDe(n,!!C.initializer&&C.initializer.kind===108,!1,L,pe))}}}if(Rs(n.name)&&(n.name.kind===207&&te<2&&$.downlevelIteration&&Pd(n,512),re(n.name.elements,Ia)),n.initializer&&lk(n)&&Ul(_m(n).body)){ot(n,S.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Rs(n.name)){if(xDe(n))return;let C=iE(n)&&n.initializer&&n.parent.parent.kind!==249,E=!Lt(n.name.elements,VW(Ed));if(C||E){let L=Xn(n);if(C){let J=Tu(n.initializer);he&&E?iet(J,n):pC(J,Xn(n),n,n.initializer)}E&&(fS(n.name)?$S(65,L,$e,n):he&&iet(L,n))}return}let m=sr(n);if(m.flags&2097152&&($w(n)||Qhe(n))){ile(n);return}n.name.kind===10&&ot(n.name,S.A_bigint_literal_cannot_be_used_as_a_property_name);let v=zB(Wn(m));if(n===m.valueDeclaration){let C=iE(n)&&HM(n);if(C&&!(Jn(n)&&ba(C)&&(C.properties.length===0||xx(n.name))&&!!((d=m.exports)!=null&&d.size))&&n.parent.parent.kind!==249){let L=Tu(C);pC(L,v,n,C,void 0);let J=f2(n)&7;if(J===6){let ee=Mjt(!0),oe=yYe(!0);if(ee!==Ts&&oe!==Ts){let pe=Fr([ee,oe,Wt,$e]);o_(kh(L,n),pe,C,S.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(J===4){let ee=yYe(!0);if(ee!==Ts){let oe=Fr([ee,Wt,$e]);o_(kh(L,n),oe,C,S.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}m.declarations&&m.declarations.length>1&&Lt(m.declarations,E=>E!==n&&qI(E)&&!Rtt(E,n))&&ot(n.name,S.All_declarations_of_0_must_have_identical_modifiers,Hc(n.name))}else{let C=zB(Xn(n));!le(v)&&!le(C)&&!S1(v,C)&&!(m.flags&67108864)&&Mtt(m.valueDeclaration,v,n,C),iE(n)&&n.initializer&&pC(Tu(n.initializer),C,n,n.initializer,void 0),m.valueDeclaration&&!Rtt(n,m.valueDeclaration)&&ot(n.name,S.All_declarations_of_0_must_have_identical_modifiers,Hc(n.name))}n.kind!==172&&n.kind!==171&&(FB(n),(n.kind===260||n.kind===208)&&W$t(n),bF(n,n.name))}function Mtt(n,d,m,v){let C=cs(m),E=m.kind===172||m.kind===171?S.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:S.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,L=Hc(C),J=ot(C,E,L,Dn(d),Dn(v));n&&Xs(J,Mn(n,S._0_was_also_declared_here,L))}function Rtt(n,d){if(n.kind===169&&d.kind===260||n.kind===260&&d.kind===169)return!0;if(XI(n)!==XI(d))return!1;let m=1358;return iN(n,m)===iN(d,m)}function z$t(n){var d,m;(d=jn)==null||d.push(jn.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),CXt(n),pG(n),(m=jn)==null||m.pop()}function V$t(n){return bXt(n),pG(n)}function Xce(n){let d=$1(n)&7;(d===4||d===6)&&te<99&&Pd(n,16777216),re(n.declarations,Ia)}function H$t(n){!C1(n)&&!pNe(n.declarationList)&&kXt(n),Xce(n.declarationList)}function U$t(n){Mb(n),Ho(n.expression)}function J$t(n){Mb(n);let d=VB(n.expression);HIe(n.expression,d,n.thenStatement),Ia(n.thenStatement),n.thenStatement.kind===242&&ot(n.thenStatement,S.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ia(n.elseStatement)}function HIe(n,d,m){if(!he)return;v(n,m);function v(E,L){for(E=fc(E),C(E,L);Yn(E)&&(E.operatorToken.kind===57||E.operatorToken.kind===61);)E=fc(E.left),C(E,L)}function C(E,L){let J=_R(E)?fc(E.right):E;if(Vv(J))return;if(_R(J)){v(J,L);return}let ee=J===E?d:Ho(J);if(ee.flags&1024&&lr(J)&&(rr(J.expression).resolvedSymbol??ct).flags&384){ot(J,S.This_condition_will_always_return_0,ee.value?"true":"false");return}let oe=lr(J)&&att(J.expression);if(!S0(ee,4194304)||oe)return;let pe=Bs(ee,0),Me=!!yF(ee);if(pe.length===0&&!Me)return;let Ne=et(J)?J:lr(J)?J.name:void 0,vt=Ne&&ug(Ne);if(!vt&&!Me)return;vt&&Yn(E.parent)&&$$t(E.parent,vt)||vt&&L&&q$t(E,L,Ne,vt)||(Me?Vk(J,!0,S.This_condition_will_always_return_true_since_this_0_is_always_defined,T6(ee)):ot(J,S.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function q$t(n,d,m,v){return!!ws(d,function C(E){if(et(E)){let L=ug(E);if(L&&L===v){if(et(n)||et(m)&&Yn(m.parent))return!0;let J=m.parent,ee=E.parent;for(;J&ⅇ){if(et(J)&&et(ee)||J.kind===110&&ee.kind===110)return ug(J)===ug(ee);if(lr(J)&&lr(ee)){if(ug(J.name)!==ug(ee.name))return!1;ee=ee.expression,J=J.expression}else if(Gs(J)&&Gs(ee))ee=ee.expression,J=J.expression;else return!1}}}return ws(E,C)})}function $$t(n,d){for(;Yn(n)&&n.operatorToken.kind===56;){if(ws(n.right,function v(C){if(et(C)){let E=ug(C);if(E&&E===d)return!0}return ws(C,v)}))return!0;n=n.parent}return!1}function G$t(n){Mb(n),Ia(n.statement),VB(n.expression)}function K$t(n){Mb(n),VB(n.expression),Ia(n.statement)}function UIe(n,d){if(n.flags&16384)ot(d,S.An_expression_of_type_void_cannot_be_tested_for_truthiness);else{let m=JIe(d);m!==3&&ot(d,m===1?S.This_kind_of_expression_is_always_truthy:S.This_kind_of_expression_is_always_falsy)}return n}function JIe(n){switch(n=Cu(n),n.kind){case 9:return n.text==="0"||n.text==="1"?3:1;case 209:case 219:case 10:case 231:case 218:case 284:case 285:case 210:case 14:return 1;case 222:case 106:return 2;case 15:case 11:return n.text?1:2;case 227:return JIe(n.whenTrue)|JIe(n.whenFalse);case 80:return s_(n)===Ge?2:3}return 3}function VB(n,d){return UIe(Ho(n,d),n)}function X$t(n){Mb(n)||n.initializer&&n.initializer.kind===261&&pNe(n.initializer),n.initializer&&(n.initializer.kind===261?Xce(n.initializer):Ho(n.initializer)),n.condition&&VB(n.condition),n.incrementor&&Ho(n.incrementor),Ia(n.statement),n.locals&&yC(n)}function Y$t(n){Oit(n);let d=Uz(n);if(n.awaitModifier?d&&Yl(d)?Gi(n.awaitModifier,S.for_await_loops_cannot_be_used_inside_a_class_static_block):(Vu(d)&6)===2&&te<5&&Pd(n,16384):$.downlevelIteration&&te<2&&Pd(n,256),n.initializer.kind===261)Xce(n.initializer);else{let m=n.initializer,v=mG(n);if(m.kind===209||m.kind===210)ND(m,v||_t);else{let C=Ho(m);AB(m,S.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,S.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),v&&pC(v,C,m,n.expression)}}Ia(n.statement),n.locals&&yC(n)}function Q$t(n){Oit(n);let d=ZDe(Ho(n.expression));if(n.initializer.kind===261){let m=n.initializer.declarations[0];m&&Rs(m.name)&&ot(m.name,S.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Xce(n.initializer)}else{let m=n.initializer,v=Ho(m);m.kind===209||m.kind===210?ot(m,S.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):fa(CWt(d),v)?AB(m,S.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,S.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):ot(m,S.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(d===Si||!kf(d,126091264))&&ot(n.expression,S.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,Dn(d)),Ia(n.statement),n.locals&&yC(n)}function mG(n){let d=n.awaitModifier?15:13;return $S(d,$6(n.expression),$e,n.expression)}function $S(n,d,m,v){return pc(d)?d:qIe(n,d,m,v,!0)||je}function qIe(n,d,m,v,C){let E=(n&2)!==0;if(d===Si){v&&KIe(v,d,E);return}let L=te>=2,J=!L&&$.downlevelIteration,ee=$.noUncheckedIndexedAccess&&!!(n&128);if(L||J||E){let vt=Qce(d,n,L?v:void 0);if(C&&vt){let Ot=n&8?S.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?S.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?S.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?S.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;Ot&&o_(m,vt.nextType,v,Ot)}if(vt||L)return ee?xB(vt&&vt.yieldType):vt&&vt.yieldType}let oe=d,pe=!1;if(n&4){if(oe.flags&1048576){let vt=d.types,Ot=Di(vt,jt=>!(jt.flags&402653316));Ot!==vt&&(oe=Fr(Ot,2))}else oe.flags&402653316&&(oe=Si);if(pe=oe!==d,pe&&oe.flags&131072)return ee?xB(Qe):Qe}if(!US(oe)){if(v){let vt=!!(n&4)&&!pe,[Ot,jt]=Ne(vt,J);Vk(v,jt&&!!yF(oe),Ot,Dn(oe))}return pe?ee?xB(Qe):Qe:void 0}let Me=Zk(oe,ei);if(pe&&Me)return Me.flags&402653316&&!$.noUncheckedIndexedAccess?Qe:Fr(ee?[Me,Qe,$e]:[Me,Qe],2);return n&128?xB(Me):Me;function Ne(vt,Ot){var jt;return Ot?vt?[S.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[S.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:$Ie(n,0,d,void 0)?[S.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Z$t((jt=d.symbol)==null?void 0:jt.escapedName)?[S.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:vt?[S.Type_0_is_not_an_array_type_or_a_string_type,!0]:[S.Type_0_is_not_an_array_type,!0]}}function Z$t(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function $Ie(n,d,m,v){if(pc(m))return;let C=Qce(m,n,v);return C&&C[b5e(d)]}function lw(n=Si,d=Si,m=Y){if(n.flags&67359327&&d.flags&180227&&m.flags&180227){let v=cg([n,d,m]),C=hr.get(v);return C||(C={yieldType:n,returnType:d,nextType:m},hr.set(v,C)),C}return{yieldType:n,returnType:d,nextType:m}}function Btt(n){let d,m,v;for(let C of n)if(!(C===void 0||C===Pr)){if(C===oo)return oo;d=hi(d,C.yieldType),m=hi(m,C.returnType),v=hi(v,C.nextType)}return d||m||v?lw(d&&Fr(d),m&&Fr(m),v&&wa(v)):Pr}function Yce(n,d){return n[d]}function x1(n,d,m){return n[d]=m}function Qce(n,d,m){var v,C;if(pc(n))return oo;if(!(n.flags&1048576)){let oe=m?{errors:void 0}:void 0,pe=jtt(n,d,m,oe);if(pe===Pr){if(m){let Me=KIe(m,n,!!(d&2));oe?.errors&&Xs(Me,...oe.errors)}return}else if((v=oe?.errors)!=null&&v.length)for(let Me of oe.errors)Ga.add(Me);return pe}let E=d&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",L=Yce(n,E);if(L)return L===Pr?void 0:L;let J;for(let oe of n.types){let pe=m?{errors:void 0}:void 0,Me=jtt(oe,d,m,pe);if(Me===Pr){if(m){let Ne=KIe(m,n,!!(d&2));pe?.errors&&Xs(Ne,...pe.errors)}x1(n,E,Pr);return}else if((C=pe?.errors)!=null&&C.length)for(let Ne of pe.errors)Ga.add(Ne);J=hi(J,Me)}let ee=J?Btt(J):Pr;return x1(n,E,ee),ee===Pr?void 0:ee}function GIe(n,d){if(n===Pr)return Pr;if(n===oo)return oo;let{yieldType:m,returnType:v,nextType:C}=n;return d&&bEe(!0),lw(WA(m,d)||je,WA(v,d)||je,C)}function jtt(n,d,m,v){if(pc(n))return oo;let C=!1;if(d&2){let E=Wtt(n,Ya)||ztt(n,Ya);if(E)if(E===Pr&&m)C=!0;else return d&8?GIe(E,m):E}if(d&1){let E=Wtt(n,ml)||ztt(n,ml);if(E)if(E===Pr&&m)C=!0;else if(d&2){if(E!==Pr)return E=GIe(E,m),C?E:x1(n,"iterationTypesOfAsyncIterable",E)}else return E}if(d&2){let E=Htt(n,Ya,m,v,C);if(E!==Pr)return E}if(d&1){let E=Htt(n,ml,m,v,C);if(E!==Pr)return d&2?(E=GIe(E,m),C?E:x1(n,"iterationTypesOfAsyncIterable",E)):E}return Pr}function Wtt(n,d){return Yce(n,d.iterableCacheKey)}function ztt(n,d){if(gy(n,d.getGlobalIterableType(!1))||gy(n,d.getGlobalIteratorObjectType(!1))||gy(n,d.getGlobalIterableIteratorType(!1))||gy(n,d.getGlobalGeneratorType(!1))){let[m,v,C]=fl(n);return x1(n,d.iterableCacheKey,lw(d.resolveIterationType(m,void 0)||m,d.resolveIterationType(v,void 0)||v,C))}if(vae(n,d.getGlobalBuiltinIteratorTypes())){let[m]=fl(n),v=vEe(),C=Y;return x1(n,d.iterableCacheKey,lw(d.resolveIterationType(m,void 0)||m,d.resolveIterationType(v,void 0)||v,C))}}function Vtt(n){let d=_Ye(!1),m=d&&Mu(Wn(d),Hl(n));return m&&uh(m)?dh(m):`__@${n}`}function Htt(n,d,m,v,C){let E=da(n,Vtt(d.iteratorSymbolName)),L=E&&!(E.flags&16777216)?Wn(E):void 0;if(pc(L))return C?oo:x1(n,d.iterableCacheKey,oo);let J=L?Bs(L,0):void 0;if(!Lt(J))return C?Pr:x1(n,d.iterableCacheKey,Pr);let ee=wa(_i(J,vc)),oe=Utt(ee,d,m,v,C)??Pr;return C?oe:x1(n,d.iterableCacheKey,oe)}function KIe(n,d,m){let v=m?S.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:S.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,C=!!yF(d)||!m&&VR(n.parent)&&n.parent.expression===n&&d$(!1)!==Bo&&fa(d,sF(d$(!1),[je,je,je]));return Vk(n,C,v,Dn(d))}function eGt(n,d,m,v){return Utt(n,d,m,v,!1)}function Utt(n,d,m,v,C){if(pc(n))return oo;let E=tGt(n,d)||iGt(n,d);return E===Pr&&m&&(E=void 0,C=!0),E??(E=sGt(n,d,m,v,C)),E===Pr?void 0:E}function tGt(n,d){return Yce(n,d.iteratorCacheKey)}function iGt(n,d){if(gy(n,d.getGlobalIterableIteratorType(!1))||gy(n,d.getGlobalIteratorType(!1))||gy(n,d.getGlobalIteratorObjectType(!1))||gy(n,d.getGlobalGeneratorType(!1))){let[m,v,C]=fl(n);return x1(n,d.iteratorCacheKey,lw(m,v,C))}if(vae(n,d.getGlobalBuiltinIteratorTypes())){let[m]=fl(n),v=vEe(),C=Y;return x1(n,d.iteratorCacheKey,lw(m,v,C))}}function Jtt(n,d){let m=Mu(n,"done")||Ji;return fa(d===0?Ji:Dt,m)}function nGt(n){return Jtt(n,0)}function rGt(n){return Jtt(n,1)}function oGt(n){if(pc(n))return oo;let d=Yce(n,"iterationTypesOfIteratorResult");if(d)return d;if(gy(n,Ojt(!1))){let L=fl(n)[0];return x1(n,"iterationTypesOfIteratorResult",lw(L,void 0,void 0))}if(gy(n,Fjt(!1))){let L=fl(n)[0];return x1(n,"iterationTypesOfIteratorResult",lw(void 0,L,void 0))}let m=qu(n,nGt),v=m!==Si?Mu(m,"value"):void 0,C=qu(n,rGt),E=C!==Si?Mu(C,"value"):void 0;return!v&&!E?x1(n,"iterationTypesOfIteratorResult",Pr):x1(n,"iterationTypesOfIteratorResult",lw(v,E||wi,void 0))}function XIe(n,d,m,v,C){var E,L,J,ee;let oe=da(n,m);if(!oe&&m!=="next")return;let pe=oe&&!(m==="next"&&oe.flags&16777216)?m==="next"?Wn(oe):lg(Wn(oe),2097152):void 0;if(pc(pe))return oo;let Me=pe?Bs(pe,0):F;if(Me.length===0){if(v){let $i=m==="next"?d.mustHaveANextMethodDiagnostic:d.mustBeAMethodDiagnostic;C?(C.errors??(C.errors=[]),C.errors.push(Mn(v,$i,m))):ot(v,$i,m)}return m==="next"?Pr:void 0}if(pe?.symbol&&Me.length===1){let $i=d.getGlobalGeneratorType(!1),Ni=d.getGlobalIteratorType(!1),Zn=((L=(E=$i.symbol)==null?void 0:E.members)==null?void 0:L.get(m))===pe.symbol,wr=!Zn&&((ee=(J=Ni.symbol)==null?void 0:J.members)==null?void 0:ee.get(m))===pe.symbol;if(Zn||wr){let Qr=Zn?$i:Ni,{mapper:Cr}=pe;return lw(HS(Qr.typeParameters[0],Cr),HS(Qr.typeParameters[1],Cr),m==="next"?HS(Qr.typeParameters[2],Cr):void 0)}}let Ne,vt;for(let $i of Me)m!=="throw"&&Lt($i.parameters)&&(Ne=hi(Ne,x0($i,0))),vt=hi(vt,vc($i));let Ot,jt;if(m!=="throw"){let $i=Ne?Fr(Ne):Y;if(m==="next")jt=$i;else if(m==="return"){let Ni=d.resolveIterationType($i,v)||je;Ot=hi(Ot,Ni)}}let xi,Pi=vt?wa(vt):Si,Pn=d.resolveIterationType(Pi,v)||je,Bn=oGt(Pn);return Bn===Pr?(v&&(C?(C.errors??(C.errors=[]),C.errors.push(Mn(v,d.mustHaveAValueDiagnostic,m))):ot(v,d.mustHaveAValueDiagnostic,m)),xi=je,Ot=hi(Ot,je)):(xi=Bn.yieldType,Ot=hi(Ot,Bn.returnType)),lw(xi,Fr(Ot),jt)}function sGt(n,d,m,v,C){let E=Btt([XIe(n,d,"next",m,v),XIe(n,d,"return",m,v),XIe(n,d,"throw",m,v)]);return C?E:x1(n,d.iteratorCacheKey,E)}function u2(n,d,m){if(pc(d))return;let v=YIe(d,m);return v&&v[b5e(n)]}function YIe(n,d){if(pc(n))return oo;let m=d?2:1,v=d?Ya:ml;return Qce(n,m,void 0)||eGt(n,v,void 0,void 0)}function aGt(n){Mb(n)||vXt(n)}function hG(n,d){let m=!!(d&1),v=!!(d&2);if(m){let C=u2(1,n,v);return C?v?qS(vF(C)):C:_t}return v?qS(n)||_t:n}function qtt(n,d){let m=hG(d,Vu(n));return!!(m&&(hu(m,16384)||m.flags&32769))}function cGt(n){if(Mb(n))return;let d=Uz(n);if(d&&Yl(d)){sf(n,S.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!d){sf(n,S.A_return_statement_can_only_be_used_within_a_function_body);return}let m=Km(d),v=vc(m),C=Vu(d);if(he||n.expression||v.flags&131072){let E=n.expression?Tu(n.expression):$e;if(d.kind===178)n.expression&&ot(n,S.Setters_cannot_return_a_value);else if(d.kind===176)n.expression&&!pC(E,v,n,n.expression)&&ot(n,S.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(M6(d)){let L=hG(v,C)??v,J=C&2?RB(E,!1,n,S.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):E;L&&pC(J,L,n,n.expression)}}else d.kind!==176&&$.noImplicitReturns&&!qtt(d,v)&&ot(n,S.Not_all_code_paths_return_a_value)}function lGt(n){Mb(n)||n.flags&65536&&sf(n,S.with_statements_are_not_allowed_in_an_async_function_block),Ho(n.expression);let d=en(n);if(!vC(d)){let m=V0(d,n.pos).start,v=n.statement.pos;d2(d,m,v-m,S.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function uGt(n){Mb(n);let d,m=!1,v=Ho(n.expression);re(n.caseBlock.clauses,C=>{C.kind===297&&!m&&(d===void 0?d=C:(Gi(C,S.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),m=!0)),C.kind===296&&r(E(C)),re(C.statements,Ia),$.noFallthroughCasesInSwitch&&C.fallthroughFlowNode&&R$(C.fallthroughFlowNode)&&ot(C,S.Fallthrough_case_in_switch);function E(L){return()=>{let J=Ho(L.expression);AIe(v,J)||fQe(J,v,L.expression,void 0)}}}),n.caseBlock.locals&&yC(n.caseBlock)}function dGt(n){Mb(n)||Ri(n.parent,d=>vs(d)?"quit":d.kind===256&&d.label.escapedText===n.label.escapedText?(Gi(n.label,S.Duplicate_label_0,Jl(n.label)),!0):!1),Ia(n.statement)}function fGt(n){Mb(n)||et(n.expression)&&!n.expression.escapedText&&LXt(n,S.Line_break_not_permitted_here),n.expression&&Ho(n.expression)}function _Gt(n){Mb(n),Kce(n.tryBlock);let d=n.catchClause;if(d){if(d.variableDeclaration){let m=d.variableDeclaration;pG(m);let v=Yu(m);if(v){let C=yo(v);C&&!(C.flags&3)&&sf(v,S.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(m.initializer)sf(m.initializer,S.Catch_clause_variable_cannot_have_an_initializer);else{let C=d.block.locals;C&&K1(d.locals,E=>{let L=C.get(E);L?.valueDeclaration&&L.flags&2&&Gi(L.valueDeclaration,S.Cannot_redeclare_identifier_0_in_catch_clause,So(E))})}}Kce(d.block)}n.finallyBlock&&Kce(n.finallyBlock)}function Zce(n,d,m){let v=r_(n);if(v.length===0)return;for(let E of zS(n))m&&E.flags&4194304||$tt(n,E,DA(E,8576,!0),cC(E));let C=d.valueDeclaration;if(C&&jr(C)){for(let E of C.members)if(!ia(E)&&!O6(E)){let L=sr(E);$tt(n,L,wf(E.name.expression),cC(L))}}if(v.length>1)for(let E of v)pGt(n,E)}function $tt(n,d,m,v){let C=d.valueDeclaration,E=cs(C);if(E&&xo(E))return;let L=nEe(n,m),J=_r(n)&2?bl(n.symbol,264):void 0,ee=C&&C.kind===226||E&&E.kind===167?C:void 0,oe=bm(d)===n.symbol?C:void 0;for(let pe of L){let Me=pe.declaration&&bm(sr(pe.declaration))===n.symbol?pe.declaration:void 0,Ne=oe||Me||(J&&!Lt(dl(n),vt=>!!XT(vt,d.escapedName)&&!!Zk(vt,pe.keyType))?J:void 0);if(Ne&&!fa(v,pe.type)){let vt=fy(Ne,S.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Lo(d),Dn(v),Dn(pe.keyType),Dn(pe.type));ee&&Ne!==ee&&Xs(vt,Mn(ee,S._0_is_declared_here,Lo(d))),Ga.add(vt)}}}function pGt(n,d){let m=d.declaration,v=nEe(n,d.keyType),C=_r(n)&2?bl(n.symbol,264):void 0,E=m&&bm(sr(m))===n.symbol?m:void 0;for(let L of v){if(L===d)continue;let J=L.declaration&&bm(sr(L.declaration))===n.symbol?L.declaration:void 0,ee=E||J||(C&&!Lt(dl(n),oe=>!!y1(oe,d.keyType)&&!!Zk(oe,L.keyType))?C:void 0);ee&&!fa(d.type,L.type)&&ot(ee,S._0_index_type_1_is_not_assignable_to_2_index_type_3,Dn(d.keyType),Dn(d.type),Dn(L.keyType),Dn(L.type))}}function SF(n,d){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":ot(n,d,n.escapedText)}}function mGt(n){te>=1&&n.escapedText==="Object"&&e.getEmitModuleFormatOfFile(en(n))<5&&ot(n,S.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,G7[ne])}function hGt(n){let d=Di(YC(n),ph);if(!K(d))return;let m=Jn(n),v=new Set,C=new Set;if(re(n.parameters,({name:L},J)=>{et(L)&&v.add(L.escapedText),Rs(L)&&C.add(J)}),sEe(n)){let L=d.length-1,J=d[L];m&&J&&et(J.name)&&J.typeExpression&&J.typeExpression.type&&!v.has(J.name.escapedText)&&!C.has(L)&&!Eh(yo(J.typeExpression.type))&&ot(J.name,S.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,mr(J.name))}else re(d,({name:L,isNameFirst:J},ee)=>{C.has(ee)||et(L)&&v.has(L.escapedText)||(P_(L)?m&&ot(L,S.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,zp(L),zp(L.left)):J||_y(m,L,S.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,mr(L)))})}function gG(n){let d=!1;if(n)for(let v=0;v{v.default?(d=!0,gGt(v.default,n,C)):d&&ot(v,S.Required_type_parameters_may_not_follow_optional_type_parameters);for(let E=0;Ev)return!1;for(let ee=0;eecd(m)&&u_(m))&&Gi(d,S.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Ar(n,2048)&&sf(n,S.A_class_declaration_without_the_default_modifier_must_have_a_name),Ytt(n),re(n.members,Ia),yC(n)}function Ytt(n){rXt(n),dG(n),bF(n,n.name),gG(dx(n)),FB(n);let d=sr(n),m=Qc(d),v=om(m),C=Wn(d);Gtt(d),qce(d),Lqt(n),!!(n.flags&33554432)||Oqt(n);let L=J0(n);if(L){re(L.typeArguments,Ia),te<2&&Pd(L.parent,1);let oe=Yw(n);oe&&oe!==L&&Ho(oe.expression);let pe=dl(m);pe.length&&r(()=>{let Me=pe[0],Ne=Yr(m),vt=S_(Ne);if(CGt(vt,L),Ia(L.expression),Lt(L.typeArguments)){re(L.typeArguments,Ia);for(let jt of vr(vt,L.typeArguments,L))if(!Stt(L,jt.typeParameters))break}let Ot=om(Me,m.thisType);if(o_(v,Ot,void 0)?o_(C,sQe(vt),n.name||n,S.Class_static_side_0_incorrectly_extends_base_class_static_side_1):eit(n,v,Ot,S.Class_0_incorrectly_extends_base_class_1),Ne.flags&8650752&&(Qk(C)?Bs(Ne,1).some(xi=>xi.flags&4)&&!Ar(n,64)&&ot(n.name||n,S.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):ot(n.name||n,S.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(vt.symbol&&vt.symbol.flags&32)&&!(Ne.flags&8650752)){let jt=ao(vt,L.typeArguments,L);re(jt,xi=>!Ty(xi.declaration)&&!S1(vc(xi),Me))&&ot(L.expression,S.Base_constructors_must_all_have_the_same_return_type)}TGt(m,Me)})}xGt(n,m,v,C);let J=e4(n);if(J)for(let oe of J)(!Xc(oe.expression)||qf(oe.expression))&&ot(oe.expression,S.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),BIe(oe),r(ee(oe));r(()=>{Zce(m,d),Zce(C,d,!0),MIe(n),IGt(n)});function ee(oe){return()=>{let pe=v0(yo(oe));if(!le(pe))if(vy(pe)){let Me=pe.symbol&&pe.symbol.flags&32?S.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:S.Class_0_incorrectly_implements_interface_1,Ne=om(pe,m.thisType);o_(v,Ne,void 0)||eit(n,v,Ne,Me)}else ot(oe,S.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function xGt(n,d,m,v){let E=J0(n)&&dl(d),L=E?.length?om(Ta(E),d.thisType):void 0,J=Yr(d);for(let ee of n.members)BZ(ee)||(Ol(ee)&&re(ee.parameters,oe=>{Wp(oe,ee)&&Qtt(n,v,J,L,d,m,oe,!0)}),Qtt(n,v,J,L,d,m,ee,!1))}function Qtt(n,d,m,v,C,E,L,J,ee=!0){let oe=L.name&&ug(L.name)||ug(L);return oe?Ztt(n,d,m,v,C,E,vV(L),tT(L),ia(L),J,oe,ee?L:void 0):0}function Ztt(n,d,m,v,C,E,L,J,ee,oe,pe,Me){let Ne=Jn(n),vt=!!(n.flags&33554432);if(v&&(L||$.noImplicitOverride)){let Ot=ee?d:E,jt=ee?m:v,xi=da(Ot,pe.escapedName),Pi=da(jt,pe.escapedName),Pn=Dn(v);if(xi&&!Pi&&L){if(Me){let Bn=cet(fu(pe),jt);Bn?ot(Me,Ne?S.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:S.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Pn,Lo(Bn)):ot(Me,Ne?S.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:S.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Pn)}return 2}else if(xi&&Pi?.declarations&&$.noImplicitOverride&&!vt){let Bn=Lt(Pi.declarations,tT);if(L)return 0;if(Bn){if(J&&Bn)return Me&&ot(Me,S.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Pn),1}else{if(Me){let $i=oe?Ne?S.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:S.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Ne?S.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:S.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;ot(Me,$i,Pn)}return 1}}}else if(L){if(Me){let Ot=Dn(C);ot(Me,Ne?S.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:S.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,Ot)}return 2}return 0}function eit(n,d,m,v){let C=!1;for(let E of n.members){if(ia(E))continue;let L=E.name&&ug(E.name)||ug(E);if(L){let J=da(d,L.escapedName),ee=da(m,L.escapedName);if(J&&ee){let oe=()=>bs(void 0,S.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Lo(L),Dn(d),Dn(m));o_(Wn(J),Wn(ee),E.name||E,void 0,oe)||(C=!0)}}}C||o_(d,m,n.name||n,v)}function CGt(n,d){let m=Bs(n,1);if(m.length){let v=m[0].declaration;if(v&&Jp(v,2)){let C=eb(n.symbol);nNe(d,C)||ot(d,S.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,MS(n.symbol))}}}function kGt(n,d,m){if(!d.name)return 0;let v=sr(n),C=Qc(v),E=om(C),L=Wn(v),ee=J0(n)&&dl(C),oe=ee?.length?om(Ta(ee),C.thisType):void 0,pe=Yr(C),Me=d.parent?vV(d):Ar(d,16);return Ztt(n,L,pe,oe,C,E,Me,tT(d),ia(d),!1,m)}function Q6(n){return _u(n)&1?n.links.target:n}function wGt(n){return Di(n.declarations,d=>d.kind===263||d.kind===264)}function TGt(n,d){var m,v,C,E,L;let J=yc(d),ee=new Map;e:for(let oe of J){let pe=Q6(oe);if(pe.flags&4194304)continue;let Me=XT(n,pe.escapedName);if(!Me)continue;let Ne=Q6(Me),vt=lh(pe);if(B.assert(!!Ne,"derived should point to something, even if it is the base class' declaration."),Ne===pe){let Ot=eb(n.symbol);if(vt&64&&(!Ot||!Ar(Ot,64))){for(let Bn of dl(n)){if(Bn===d)continue;let $i=XT(Bn,pe.escapedName),Ni=$i&&Q6($i);if(Ni&&Ni!==pe)continue e}let jt=Dn(d),xi=Dn(n),Pi=Lo(oe),Pn=hi((m=ee.get(Ot))==null?void 0:m.missedProperties,Pi);ee.set(Ot,{baseTypeName:jt,typeName:xi,missedProperties:Pn})}}else{let Ot=lh(Ne);if(vt&2||Ot&2)continue;let jt,xi=pe.flags&98308,Pi=Ne.flags&98308;if(xi&&Pi){if((_u(pe)&6?(v=pe.declarations)!=null&&v.some($i=>tit($i,vt)):(C=pe.declarations)!=null&&C.every($i=>tit($i,vt)))||_u(pe)&262144||Ne.valueDeclaration&&Yn(Ne.valueDeclaration))continue;let Pn=xi!==4&&Pi===4;if(Pn||xi===4&&Pi!==4){let $i=Pn?S._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:S._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;ot(cs(Ne.valueDeclaration)||Ne.valueDeclaration,$i,Lo(pe),Dn(d),Dn(n))}else if(ce){let $i=(E=Ne.declarations)==null?void 0:E.find(Ni=>Ni.kind===172&&!Ni.initializer);if($i&&!(Ne.flags&33554432)&&!(vt&64)&&!(Ot&64)&&!((L=Ne.declarations)!=null&&L.some(Ni=>!!(Ni.flags&33554432)))){let Ni=AR(eb(n.symbol)),Zn=$i.name;if($i.exclamationToken||!Ni||!et(Zn)||!he||!nit(Zn,n,Ni)){let wr=S.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;ot(cs(Ne.valueDeclaration)||Ne.valueDeclaration,wr,Lo(pe),Dn(d))}}}continue}else if(YDe(pe)){if(YDe(Ne)||Ne.flags&4)continue;B.assert(!!(Ne.flags&98304)),jt=S.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else pe.flags&98304?jt=S.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:jt=S.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;ot(cs(Ne.valueDeclaration)||Ne.valueDeclaration,jt,Dn(d),Lo(pe),Dn(n))}}for(let[oe,pe]of ee)if(K(pe.missedProperties)===1)Qu(oe)?ot(oe,S.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ta(pe.missedProperties),pe.baseTypeName):ot(oe,S.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,pe.typeName,Ta(pe.missedProperties),pe.baseTypeName);else if(K(pe.missedProperties)>5){let Me=_i(pe.missedProperties.slice(0,4),vt=>`'${vt}'`).join(", "),Ne=K(pe.missedProperties)-4;Qu(oe)?ot(oe,S.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,pe.baseTypeName,Me,Ne):ot(oe,S.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,pe.typeName,pe.baseTypeName,Me,Ne)}else{let Me=_i(pe.missedProperties,Ne=>`'${Ne}'`).join(", ");Qu(oe)?ot(oe,S.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,pe.baseTypeName,Me):ot(oe,S.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,pe.typeName,pe.baseTypeName,Me)}}function tit(n,d){return d&64&&(!ls(n)||!n.initializer)||vf(n.parent)}function EGt(n,d,m){if(!K(d))return m;let v=new Map;re(m,C=>{v.set(C.escapedName,C)});for(let C of d){let E=yc(om(C,n.thisType));for(let L of E){let J=v.get(L.escapedName);J&&L.parent===J.parent&&v.delete(L.escapedName)}}return as(v.values())}function DGt(n,d){let m=dl(n);if(m.length<2)return!0;let v=new Map;re(V2e(n).declaredProperties,E=>{v.set(E.escapedName,{prop:E,containingType:n})});let C=!0;for(let E of m){let L=yc(om(E,n.thisType));for(let J of L){let ee=v.get(J.escapedName);if(!ee)v.set(J.escapedName,{prop:J,containingType:E});else if(ee.containingType!==n&&!Nzt(ee.prop,J)){C=!1;let pe=Dn(ee.containingType),Me=Dn(E),Ne=bs(void 0,S.Named_property_0_of_types_1_and_2_are_not_identical,Lo(J),pe,Me);Ne=bs(Ne,S.Interface_0_cannot_simultaneously_extend_types_1_and_2,Dn(n),pe,Me),Ga.add(zv(en(d),d,Ne))}}}return C}function IGt(n){if(!he||!ve||n.flags&33554432)return;let d=AR(n);for(let m of n.members)if(!(__(m)&128)&&!ia(m)&&iit(m)){let v=m.name;if(et(v)||xo(v)||Ma(v)){let C=Wn(sr(m));C.flags&3||V6(C)||(!d||!nit(v,C,d))&&ot(m.name,S.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Hc(v))}}}function iit(n){return n.kind===172&&!tT(n)&&!n.exclamationToken&&!n.initializer}function NGt(n,d,m,v,C){for(let E of m)if(E.pos>=v&&E.pos<=C){let L=U.createPropertyAccessExpression(U.createThis(),n);ic(L.expression,L),ic(L,E),L.flowNode=E.returnFlowNode;let J=Fb(L,d,hC(d));if(!V6(J))return!0}return!1}function nit(n,d,m){let v=Ma(n)?U.createElementAccessExpression(U.createThis(),n.expression):U.createPropertyAccessExpression(U.createThis(),n);ic(v.expression,v),ic(v,m),v.flowNode=m.returnFlowNode;let C=Fb(v,d,hC(d));return!V6(C)}function AGt(n){C1(n)||dXt(n),gG(n.typeParameters),r(()=>{SF(n.name,S.Interface_name_cannot_be_0),FB(n);let d=sr(n);Gtt(d);let m=bl(d,264);if(n===m){let v=Qc(d),C=om(v);if(DGt(v,n.name)){for(let E of dl(v))o_(C,om(E,v.thisType),n.name,S.Interface_0_incorrectly_extends_interface_1);Zce(v,d)}}gtt(n)}),re(Z3(n),d=>{(!Xc(d.expression)||qf(d.expression))&&ot(d.expression,S.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),BIe(d)}),re(n.members,Ia),r(()=>{MIe(n),yC(n)})}function PGt(n){if(C1(n),SF(n.name,S.Type_alias_name_cannot_be_0),FB(n),gG(n.typeParameters),n.type.kind===141){let d=K(n.typeParameters);(d===0?n.name.escapedText==="BuiltinIteratorReturn":d===1&&nie.has(n.name.escapedText))||ot(n.type,S.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else Ia(n.type),yC(n)}function rit(n){let d=rr(n);if(!(d.flags&1024)){d.flags|=1024;let m=0,v;for(let C of n.members){let E=LGt(C,m,v);rr(C).enumMemberValue=E,m=typeof E.value=="number"?E.value+1:void 0,v=C}}}function LGt(n,d,m){if(EM(n.name))ot(n.name,S.Computed_property_names_are_not_allowed_in_enums);else{let v=JI(n.name);Kv(v)&&!CO(v)&&ot(n.name,S.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return OGt(n);if(n.parent.flags&33554432&&!ik(n.parent))return wd(void 0);if(d===void 0)return ot(n.name,S.Enum_member_must_have_initializer),wd(void 0);if(Jh($)&&m?.initializer){let v=AD(m);typeof v.value=="number"&&!v.resolvedOtherFiles||ot(n.name,S.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return wd(d)}function OGt(n){let d=ik(n.parent),m=n.initializer,v=Tt(m,n);return v.value!==void 0?d&&typeof v.value=="number"&&!isFinite(v.value)?ot(m,isNaN(v.value)?S.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:S.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):Jh($)&&typeof v.value=="string"&&!v.isSyntacticallyString&&ot(m,S._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${mr(n.parent.name)}.${JI(n.name)}`):d?ot(m,S.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?ot(m,S.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):o_(Ho(m),ei,m,S.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),v}function oit(n,d){let m=Ml(n,111551,!0);if(!m)return wd(void 0);if(n.kind===80){let v=n;if(CO(v.escapedText)&&m===W6(v.escapedText,111551,void 0))return wd(+v.escapedText,!1)}if(m.flags&8)return d?sit(n,m,d):AD(m.valueDeclaration);if(MA(m)){let v=m.valueDeclaration;if(v&&Ur(v)&&!v.type&&v.initializer&&(!d||v!==d&&AS(v,d))){let C=Tt(v.initializer,v);return d&&en(d)!==en(v)?wd(C.value,!1,!0,!0):wd(C.value,C.isSyntacticallyString,C.resolvedOtherFiles,!0)}}return wd(void 0)}function FGt(n,d){let m=n.expression;if(Xc(m)&&xc(n.argumentExpression)){let v=Ml(m,111551,!0);if(v&&v.flags&384){let C=Hl(n.argumentExpression.text),E=v.exports.get(C);if(E)return B.assert(en(E.valueDeclaration)===en(v.valueDeclaration)),d?sit(n,E,d):AD(E.valueDeclaration)}}return wd(void 0)}function sit(n,d,m){let v=d.valueDeclaration;if(!v||v===m)return ot(n,S.Property_0_is_used_before_being_assigned,Lo(d)),wd(void 0);if(!AS(v,m))return ot(n,S.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),wd(0);let C=AD(v);return m.parent!==v.parent?wd(C.value,C.isSyntacticallyString,C.resolvedOtherFiles,!0):C}function MGt(n){r(()=>RGt(n))}function RGt(n){C1(n),bF(n,n.name),FB(n),n.members.forEach(BGt),rit(n);let d=sr(n),m=bl(d,n.kind);if(n===m){if(d.declarations&&d.declarations.length>1){let C=ik(n);re(d.declarations,E=>{dT(E)&&ik(E)!==C&&ot(cs(E),S.Enum_declarations_must_all_be_const_or_non_const)})}let v=!1;re(d.declarations,C=>{if(C.kind!==266)return!1;let E=C;if(!E.members.length)return!1;let L=E.members[0];L.initializer||(v?ot(L.name,S.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):v=!0)})}}function BGt(n){xo(n.name)&&ot(n,S.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&Ho(n.initializer)}function jGt(n){let d=n.declarations;if(d){for(let m of d)if((m.kind===263||m.kind===262&&jh(m.body))&&!(m.flags&33554432))return m}}function WGt(n,d){let m=Gg(n),v=Gg(d);return Zb(m)?Zb(v):Zb(v)?!1:m===v}function zGt(n){n.body&&(Ia(n.body),$y(n)||yC(n)),r(d);function d(){var m,v;let C=$y(n),E=n.flags&33554432;C&&!E&&ot(n.name,S.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let L=d_(n),J=L?S.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:S.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(yG(n,J))return;if(C1(n)||!E&&n.name.kind===11&&Gi(n.name,S.Only_ambient_modules_can_use_quoted_names),et(n.name)&&(bF(n,n.name),!(n.flags&2080))){let oe=en(n),pe=bhe(n),Me=V0(oe,pe);OT.add(kd(oe,Me.start,Me.length,S.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}FB(n);let ee=sr(n);if(ee.flags&512&&!E&&rie(n,Cx($))){if(Jh($)&&!en(n).externalModuleIndicator&&ot(n.name,S.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,xt),((m=ee.declarations)==null?void 0:m.length)>1){let oe=jGt(ee);oe&&(en(n)!==en(oe)?ot(n.name,S.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pospe.kind===95);oe&&ot(oe,S.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(L)if(Uw(n)){if((C||sr(n).flags&33554432)&&n.body)for(let pe of n.body.statements)QIe(pe,C)}else Zb(n.parent)?C?ot(n.name,S.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Od(Hh(n.name))&&ot(n.name,S.Ambient_module_declaration_cannot_specify_relative_module_name):C?ot(n.name,S.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):ot(n.name,S.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function QIe(n,d){switch(n.kind){case 243:for(let v of n.declarationList.declarations)QIe(v,d);break;case 277:case 278:sf(n,S.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:if(sE(n))break;case 272:sf(n,S.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let m=n.name;if(Rs(m)){for(let v of m.elements)QIe(v,d);break}case 263:case 266:case 262:case 264:case 267:case 265:if(d)return;break}}function VGt(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(Vv(n.expression)&&!xo(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function ele(n){let d=GI(n);if(!d||Ul(d))return!1;if(!Da(d))return ot(d,S.String_literal_expected),!1;let m=n.parent.kind===268&&d_(n.parent.parent);if(n.parent.kind!==307&&!m)return ot(d,n.kind===278?S.Export_declarations_are_not_permitted_in_a_namespace:S.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(m&&Od(d.text)&&!aD(n))return ot(n,S.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Dd(n)&&n.attributes){let v=n.attributes.token===118?S.Import_attribute_values_must_be_string_literal_expressions:S.Import_assertion_values_must_be_string_literal_expressions,C=!1;for(let E of n.attributes.elements)Da(E.value)||(C=!0,ot(E.value,v));return!C}return!0}function tle(n,d=!0){n===void 0||n.kind!==11||(d?(ne===5||ne===6)&&Gi(n,S.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):Gi(n,S.Identifier_expected))}function ile(n){var d,m,v,C;let E=sr(n),L=xf(E);if(L!==ct){if(E=cc(E.exportSymbol||E),Jn(n)&&!(L.flags&111551)&&!_x(n)){let oe=QC(n)?n.propertyName||n.name:pf(n)?n.name:n;if(B.assert(n.kind!==280),n.kind===281){let pe=ot(oe,S.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Me=(m=(d=en(n).symbol)==null?void 0:d.exports)==null?void 0:m.get(Hw(n.propertyName||n.name));if(Me===L){let Ne=(v=Me.declarations)==null?void 0:v.find(RP);Ne&&Xs(pe,Mn(Ne,S._0_is_automatically_exported_here,So(Me.escapedName)))}}else{B.assert(n.kind!==260);let pe=Ri(n,Im(ql,Dd)),Me=(pe&&((C=XP(pe))==null?void 0:C.text))??"...",Ne=So(et(oe)?oe.escapedText:E.escapedName);ot(oe,S._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Ne,`import("${Me}").${Ne}`)}return}let J=n_(L),ee=(E.flags&1160127?111551:0)|(E.flags&788968?788968:0)|(E.flags&1920?1920:0);if(J&ee){let oe=n.kind===281?S.Export_declaration_conflicts_with_exported_declaration_of_0:S.Import_declaration_conflicts_with_local_declaration_of_0;ot(n,oe,Lo(E))}else n.kind!==281&&$.isolatedModules&&!Ri(n,_x)&&E.flags&1160127&&ot(n,S.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Lo(E),xt);if(Jh($)&&!_x(n)&&!(n.flags&33554432)){let oe=my(E),pe=!(J&111551);if(pe||oe)switch(n.kind){case 273:case 276:case 271:{if($.verbatimModuleSyntax){B.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");let Me=$.verbatimModuleSyntax&&sE(n)?S.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:pe?S._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:S._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,Ne=vx(n.kind===276&&n.propertyName||n.name);FT(ot(n,Me,Ne),pe?void 0:oe,Ne)}pe&&n.kind===271&&Jp(n,32)&&ot(n,S.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,xt);break}case 281:if($.verbatimModuleSyntax||en(oe)!==en(n)){let Me=vx(n.propertyName||n.name),Ne=pe?ot(n,S.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,xt):ot(n,S._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Me,xt);FT(Ne,pe?void 0:oe,Me);break}}if($.verbatimModuleSyntax&&n.kind!==271&&!Jn(n)&&e.getEmitModuleFormatOfFile(en(n))===1?ot(n,S.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled):ne===200&&n.kind!==271&&n.kind!==260&&e.getEmitModuleFormatOfFile(en(n))===1&&ot(n,S.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),$.verbatimModuleSyntax&&!_x(n)&&!(n.flags&33554432)&&J&128){let Me=L.valueDeclaration,Ne=e.getRedirectReferenceForResolutionFromSourceOfProject(en(Me).resolvedPath);Me.flags&33554432&&(!Ne||!Cx(Ne.commandLine.options))&&ot(n,S.Cannot_access_ambient_const_enums_when_0_is_enabled,xt)}}if(F_(n)){let oe=ZIe(E,n);yb(oe)&&oe.declarations&&vb(n,oe.declarations,oe.escapedName)}}}function ZIe(n,d){if(!(n.flags&2097152)||yb(n)||!i_(n))return n;let m=xf(n);if(m===ct)return m;for(;n.flags&2097152;){let v=kce(n);if(v){if(v===m)break;if(v.declarations&&K(v.declarations))if(yb(v)){vb(d,v.declarations,v.escapedName);break}else{if(n===m)break;n=v}}else break}return m}function nle(n){bF(n,n.name),ile(n),n.kind===276&&(tle(n.propertyName),qy(n.propertyName||n.name)&&qv($)&&e.getEmitModuleFormatOfFile(en(n))<4&&Pd(n,131072))}function eNe(n){var d;let m=n.attributes;if(m){let v=gEe(!0);v!==Ts&&o_(ns(m),I$(v,32768),m);let C=zie(n),E=z4(m,C?Gi:void 0),L=n.attributes.token===118;if(C&&E)return;if((ne===199&&n.moduleSpecifier&&Um(n.moduleSpecifier))!==99&&ne!==99&&ne!==200){let oe=L?ne===199?S.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:S.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:ne===199?S.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:S.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return Gi(m,oe)}if(oy(n)||(ql(n)?(d=n.importClause)==null?void 0:d.isTypeOnly:n.isTypeOnly))return Gi(m,L?S.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:S.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(E)return Gi(m,S.resolution_mode_can_only_be_set_for_type_only_imports)}}function HGt(n){return x_(Tu(n.value))}function UGt(n){if(!yG(n,Jn(n)?S.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:S.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!C1(n)&&n.modifiers&&sf(n,S.An_import_declaration_cannot_have_modifiers),ele(n)){let d=n.importClause;d&&!FXt(d)?(d.name&&nle(d),d.namedBindings&&(d.namedBindings.kind===274?(nle(d.namedBindings),e.getEmitModuleFormatOfFile(en(n))<4&&qv($)&&Pd(n,65536)):rp(n,n.moduleSpecifier)&&re(d.namedBindings.elements,nle))):De&&!d&&rp(n,n.moduleSpecifier)}eNe(n)}}function JGt(n){if(!yG(n,Jn(n)?S.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:S.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(C1(n),sE(n)||ele(n)))if(nle(n),RA(n,6),n.moduleReference.kind!==283){let d=xf(sr(n));if(d!==ct){let m=n_(d);if(m&111551){let v=hp(n.moduleReference);Ml(v,112575).flags&1920||ot(v,S.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Hc(v))}m&788968&&SF(n.name,S.Import_name_cannot_be_0)}n.isTypeOnly&&Gi(n,S.An_import_alias_cannot_use_import_type)}else 5<=ne&&ne<=99&&!n.isTypeOnly&&!(n.flags&33554432)&&Gi(n,S.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)}function qGt(n){if(!yG(n,Jn(n)?S.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:S.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!C1(n)&&Ege(n)&&sf(n,S.An_export_declaration_cannot_have_modifiers),$Gt(n),!n.moduleSpecifier||ele(n))if(n.exportClause&&!Zy(n.exportClause)){re(n.exportClause.elements,GGt);let d=n.parent.kind===268&&d_(n.parent.parent),m=!d&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==307&&!d&&!m&&ot(n,S.Export_declarations_are_not_permitted_in_a_namespace)}else{let d=rp(n,n.moduleSpecifier);d&&nD(d)?ot(n.moduleSpecifier,S.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Lo(d)):n.exportClause&&(ile(n.exportClause),tle(n.exportClause.name)),e.getEmitModuleFormatOfFile(en(n))<4&&(n.exportClause?qv($)&&Pd(n,65536):Pd(n,32768))}eNe(n)}}function $Gt(n){var d;return n.isTypeOnly&&((d=n.exportClause)==null?void 0:d.kind)===279?Hit(n.exportClause):!1}function yG(n,d){let m=n.parent.kind===307||n.parent.kind===268||n.parent.kind===267;return m||sf(n,d),!m}function GGt(n){ile(n);let d=n.parent.parent.moduleSpecifier!==void 0;if(tle(n.propertyName,d),tle(n.name),yp($)&&D6(n.propertyName||n.name,!0),d)qv($)&&e.getEmitModuleFormatOfFile(en(n))<4&&qy(n.propertyName||n.name)&&Pd(n,131072);else{let m=n.propertyName||n.name;if(m.kind===11)return;let v=ni(m,m.escapedText,2998271,void 0,!0);v&&(v===Ge||v===Ke||v.declarations&&Zb(lD(v.declarations[0])))?ot(m,S.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,mr(m)):RA(n,7)}}function KGt(n){let d=n.isExportEquals?S.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:S.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(yG(n,d))return;let m=n.parent.kind===307?n.parent:n.parent.parent;if(m.kind===267&&!d_(m)){n.isExportEquals?ot(n,S.An_export_assignment_cannot_be_used_in_a_namespace):ot(n,S.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!C1(n)&&RZ(n)&&sf(n,S.An_export_assignment_cannot_have_modifiers);let v=Yu(n);v&&o_(Tu(n.expression),yo(v),n.expression);let C=!n.isExportEquals&&!(n.flags&33554432)&&$.verbatimModuleSyntax&&e.getEmitModuleFormatOfFile(en(n))===1;if(n.expression.kind===80){let E=n.expression,L=im(Ml(E,-1,!0,!0,n));if(L){RA(n,3);let J=my(L,111551);if(n_(L)&111551?(Tu(E),!C&&!(n.flags&33554432)&&$.verbatimModuleSyntax&&J&&ot(E,n.isExportEquals?S.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:S.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,mr(E))):!C&&!(n.flags&33554432)&&$.verbatimModuleSyntax&&ot(E,n.isExportEquals?S.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:S.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,mr(E)),!C&&!(n.flags&33554432)&&Jh($)&&!(L.flags&111551)){let ee=n_(L,!1,!0);L.flags&2097152&&ee&788968&&!(ee&111551)&&(!J||en(J)!==en(n))?ot(E,n.isExportEquals?S._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,mr(E),xt):J&&en(J)!==en(n)&&FT(ot(E,n.isExportEquals?S._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,mr(E),xt),J,mr(E))}}else Tu(E);yp($)&&D6(E,!0)}else Tu(n.expression);C&&ot(n,S.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),ait(m),n.flags&33554432&&!Xc(n.expression)&&Gi(n.expression,S.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(ne>=5&&ne!==200&&(n.flags&33554432&&e.getImpliedNodeFormatForEmit(en(n))===99||!(n.flags&33554432)&&e.getImpliedNodeFormatForEmit(en(n))!==1)?Gi(n,S.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ne===4&&!(n.flags&33554432)&&Gi(n,S.Export_assignment_is_not_supported_when_module_flag_is_system))}function XGt(n){return Vd(n.exports,(d,m)=>m!=="export=")}function ait(n){let d=sr(n),m=Po(d);if(!m.exportsChecked){let v=d.exports.get("export=");if(v&&XGt(d)){let E=i_(v)||v.valueDeclaration;E&&!aD(E)&&!Jn(E)&&ot(E,S.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let C=_1(d);C&&C.forEach(({declarations:E,flags:L},J)=>{if(J==="__export"||L&1920)return;let ee=er(E,zW(FDt,VW(vf)));if(!(L&524288&&ee<=2)&&ee>1&&!rle(E))for(let oe of E)y5e(oe)&&Ga.add(Mn(oe,S.Cannot_redeclare_exported_variable_0,So(J)))}),m.exportsChecked=!0}}function rle(n){return n&&n.length>1&&n.every(d=>Jn(d)&&il(d)&&(aE(d.expression)||Vv(d.expression)))}function Ia(n){if(n){let d=R;R=n,T=0,YGt(n),R=d}}function YGt(n){if(HA(n)&8388608)return;QM(n)&&re(n.jsDoc,({comment:m,tags:v})=>{cit(m),re(v,C=>{cit(C.comment),Jn(n)&&Ia(C)})});let d=n.kind;if(a)switch(d){case 267:case 263:case 264:case 262:a.throwIfCancellationRequested()}switch(d>=243&&d<=259&&YM(n)&&n.flowNode&&!R$(n.flowNode)&&_y($.allowUnreachableCode===!1,n,S.Unreachable_code_detected),d){case 168:return ptt(n);case 169:return mtt(n);case 172:return ytt(n);case 171:return Fqt(n);case 185:case 184:case 179:case 180:case 181:return LB(n);case 174:case 173:return Mqt(n);case 175:return Rqt(n);case 176:return Bqt(n);case 177:case 178:return btt(n);case 183:return BIe(n);case 182:return Aqt(n);case 186:return Uqt(n);case 187:return Jqt(n);case 188:return qqt(n);case 189:return $qt(n);case 192:case 193:return Gqt(n);case 196:case 190:case 191:return Ia(n.type);case 197:return Qqt(n);case 198:return Zqt(n);case 194:return e$t(n);case 195:return t$t(n);case 203:return i$t(n);case 205:return n$t(n);case 202:return r$t(n);case 328:return k$t(n);case 329:return C$t(n);case 346:case 338:case 340:return _$t(n);case 345:return p$t(n);case 344:return m$t(n);case 324:case 325:case 326:return g$t(n);case 341:return y$t(n);case 348:return v$t(n);case 317:b$t(n);case 315:case 314:case 312:case 313:case 322:lit(n),ws(n,Ia);return;case 318:QGt(n);return;case 309:return Ia(n.type);case 333:case 335:case 334:return w$t(n);case 350:return h$t(n);case 343:return S$t(n);case 351:return x$t(n);case 199:return Kqt(n);case 200:return Xqt(n);case 262:return f$t(n);case 241:case 268:return Kce(n);case 243:return H$t(n);case 244:return U$t(n);case 245:return J$t(n);case 246:return G$t(n);case 247:return K$t(n);case 248:return X$t(n);case 249:return Q$t(n);case 250:return Y$t(n);case 251:case 252:return aGt(n);case 253:return cGt(n);case 254:return lGt(n);case 255:return uGt(n);case 256:return dGt(n);case 257:return fGt(n);case 258:return _Gt(n);case 260:return z$t(n);case 208:return V$t(n);case 263:return SGt(n);case 264:return AGt(n);case 265:return PGt(n);case 266:return MGt(n);case 267:return zGt(n);case 272:return UGt(n);case 271:return JGt(n);case 278:return qGt(n);case 277:return KGt(n);case 242:case 259:Mb(n);return;case 282:return Wqt(n)}}function cit(n){ds(n)&&re(n,d=>{WI(d)&&Ia(d)})}function lit(n){if(!Jn(n))if(wH(n)||C4(n)){let d=ua(wH(n)?54:58),m=n.postfix?S._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:S._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,v=n.type,C=yo(v);Gi(n,m,d,Dn(C4(n)&&!(C===Si||C===wi)?Fr(hi([C,$e],n.postfix?void 0:Wt)):C))}else Gi(n,S.JSDoc_types_can_only_be_used_inside_documentation_comments)}function QGt(n){lit(n),Ia(n.type);let{parent:d}=n;if(To(d)&&k4(d.parent)){pa(d.parent.parameters)!==d&&ot(n,S.A_rest_parameter_must_be_last_in_a_parameter_list);return}yk(d)||ot(n,S.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let m=n.parent.parent;if(!ph(m)){ot(n,S.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let v=ZM(m);if(!v)return;let C=ok(m);(!C||pa(C.parameters).symbol!==v)&&ot(n,S.A_rest_parameter_must_be_last_in_a_parameter_list)}function ZGt(n){let d=yo(n.type),{parent:m}=n,v=n.parent.parent;if(yk(n.parent)&&ph(v)){let C=ok(v),E=qee(v.parent.parent);if(C||E){let L=Lc(E?v.parent.parent.typeExpression.parameters:C.parameters),J=ZM(v);if(!L||J&&L.symbol===J&&Jy(L))return Hf(d)}}return To(m)&&k4(m.parent)?Hf(d):md(d)}function zA(n){let d=en(n),m=rr(d);m.flags&1?B.assert(!m.deferredNodes,"A type-checked file should have no deferred nodes."):(m.deferredNodes||(m.deferredNodes=new Set),m.deferredNodes.add(n))}function uit(n){let d=rr(n);d.deferredNodes&&d.deferredNodes.forEach(eKt),d.deferredNodes=void 0}function eKt(n){var d,m;(d=jn)==null||d.push(jn.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let v=R;switch(R=n,T=0,n.kind){case 213:case 214:case 215:case 170:case 286:DD(n);break;case 218:case 219:case 174:case 173:KJt(n);break;case 177:case 178:btt(n);break;case 231:bGt(n);break;case 168:Nqt(n);break;case 285:iUt(n);break;case 284:rUt(n);break;case 216:case 234:case 217:vJt(n);break;case 222:Ho(n.expression);break;case 226:xV(n)&&DD(n);break}R=v,(m=jn)==null||m.pop()}function tKt(n,d){var m,v;(m=jn)==null||m.push(jn.Phase.Check,d?"checkSourceFileNodes":"checkSourceFile",{path:n.path},!0);let C=d?"beforeCheckNodes":"beforeCheck",E=d?"afterCheckNodes":"afterCheck";zl(C),d?nKt(n,d):iKt(n),zl(E),ih("Check",C,E),(v=jn)==null||v.pop()}function dit(n,d){if(d)return!1;switch(n){case 0:return!!$.noUnusedLocals;case 1:return!!$.noUnusedParameters;default:return B.assertNever(n)}}function fit(n){return c0.get(n.path)||F}function iKt(n){let d=rr(n);if(!(d.flags&1)){if(_4(n,$,e))return;zit(n),Ls(hb),Ls(wS),Ls(Eg),Ls(TS),Ls(Ux),d.flags&8388608&&(hb=d.potentialThisCollisions,wS=d.potentialNewTargetCollisions,Eg=d.potentialWeakMapSetCollisions,TS=d.potentialReflectCollisions,Ux=d.potentialUnusedRenamedBindingElementsInTypes),re(n.statements,Ia),Ia(n.endOfFileToken),uit(n),Vp(n)&&yC(n),r(()=>{!n.isDeclarationFile&&($.noUnusedLocals||$.noUnusedParameters)&&Att(fit(n),(m,v,C)=>{!VI(m)&&dit(v,!!(m.flags&33554432))&&Ga.add(C)}),n.isDeclarationFile||I$t()}),Vp(n)&&ait(n),hb.length&&(re(hb,P$t),Ls(hb)),wS.length&&(re(wS,L$t),Ls(wS)),Eg.length&&(re(Eg,R$t),Ls(Eg)),TS.length&&(re(TS,j$t),Ls(TS)),d.flags|=1}}function nKt(n,d){let m=rr(n);if(!(m.flags&1)){if(_4(n,$,e))return;zit(n),Ls(hb),Ls(wS),Ls(Eg),Ls(TS),Ls(Ux),re(d,Ia),uit(n),(m.potentialThisCollisions||(m.potentialThisCollisions=[])).push(...hb),(m.potentialNewTargetCollisions||(m.potentialNewTargetCollisions=[])).push(...wS),(m.potentialWeakMapSetCollisions||(m.potentialWeakMapSetCollisions=[])).push(...Eg),(m.potentialReflectCollisions||(m.potentialReflectCollisions=[])).push(...TS),(m.potentialUnusedRenamedBindingElementsInTypes||(m.potentialUnusedRenamedBindingElementsInTypes=[])).push(...Ux),m.flags|=8388608;for(let v of d){let C=rr(v);C.flags|=8388608}}}function _it(n,d,m){try{return a=d,rKt(n,m)}finally{a=void 0}}function tNe(){for(let n of t)n();t=[]}function iNe(n,d){tNe();let m=r;r=v=>v(),tKt(n,d),r=m}function rKt(n,d){if(n){tNe();let m=Ga.getGlobalDiagnostics(),v=m.length;iNe(n,d);let C=Ga.getDiagnostics(n.fileName);if(d)return C;let E=Ga.getGlobalDiagnostics();if(E!==m){let L=Js(m,E,_O);return Fo(L,C)}else if(v===0&&E.length>0)return Fo(E,C);return C}return re(e.getSourceFiles(),m=>iNe(m)),Ga.getDiagnostics()}function oKt(){return tNe(),Ga.getGlobalDiagnostics()}function sKt(n,d){if(n.flags&67108864)return[];let m=ta(),v=!1;return C(),m.delete("this"),rEe(m);function C(){for(;n;){switch(Uy(n)&&n.locals&&!Zb(n)&&L(n.locals,d),n.kind){case 307:if(!dd(n))break;case 267:J(sr(n).exports,d&2623475);break;case 266:L(sr(n).exports,d&8);break;case 231:n.name&&E(n.symbol,d);case 263:case 264:v||L(lC(sr(n)),d&788968);break;case 218:n.name&&E(n.symbol,d);break}Vhe(n)&&E(Ue,d),v=ia(n),n=n.parent}L(Be,d)}function E(ee,oe){if(a4(ee)&oe){let pe=ee.escapedName;m.has(pe)||m.set(pe,ee)}}function L(ee,oe){oe&&ee.forEach(pe=>{E(pe,oe)})}function J(ee,oe){oe&&ee.forEach(pe=>{!bl(pe,281)&&!bl(pe,280)&&pe.escapedName!=="default"&&E(pe,oe)})}}function aKt(n){return n.kind===80&&fN(n.parent)&&cs(n.parent)===n}function pit(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function cKt(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function mit(n,d){let m,v=Zd(n);for(;v&&!(m=d(v));)v=Zd(v);return m}function lKt(n){return!!Ri(n,d=>Ol(d)&&jh(d.body)||ls(d)?!0:jr(d)||Oc(d)?"quit":!1)}function nNe(n,d){return!!mit(n,m=>m===d)}function uKt(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function ole(n){return uKt(n)!==void 0}function dKt(n){switch(Su(n.parent.parent)){case 1:case 3:return z_(n.parent);case 5:if(lr(n.parent)&&c4(n.parent)===n)return;case 4:case 2:return sr(n.parent.parent)}}function fKt(n){let d=n.parent;for(;P_(d);)n=d,d=d.parent;if(d&&d.kind===205&&d.qualifier===n)return d}function _Kt(n){if(n.expression.kind===110){let d=f_(n,!1,!1);if(vs(d)){let m=IZe(d);if(m){let v=cw(m,void 0),C=AZe(m,v);return C&&!pc(C)}}}}function hit(n){if(Xy(n))return z_(n.parent);if(Jn(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!xo(n)&&!vk(n)&&!_Kt(n.parent)){let d=dKt(n);if(d)return d}if(n.parent.kind===277&&Xc(n)){let d=Ml(n,2998271,!0);if(d&&d!==ct)return d}else if(G_(n)&&ole(n)){let d=ck(n,271);return B.assert(d!==void 0),pA(n,!0)}if(G_(n)){let d=fKt(n);if(d){yo(d);let m=rr(n).resolvedSymbol;return m===ct?void 0:m}}for(;Lge(n);)n=n.parent;if(cKt(n)){let d=0;n.parent.kind===233?(d=U0(n)?788968:111551,SV(n.parent)&&(d|=111551)):d=1920,d|=2097152;let m=Xc(n)?Ml(n,d,!0):void 0;if(m)return m}if(n.parent.kind===341)return ZM(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===345){B.assert(!Jn(n));let d=oge(n.parent);return d&&d.symbol}if(Kg(n)){if(Ul(n))return;let d=Ri(n,Im(WI,zO,vk)),m=d?901119:111551;if(n.kind===80){if(GP(n)&&jA(n)){let C=Tce(n.parent);return C===ct?void 0:C}let v=Ml(n,m,!0,!0,ok(n));if(!v&&d){let C=Ri(n,Im(jr,vf));if(C)return vG(n,!0,sr(C))}if(v&&d){let C=Kw(n);if(C&&_S(C)&&C===v.valueDeclaration)return Ml(n,m,!0,!0,en(C))||v}return v}else{if(xo(n))return Ice(n);if(n.kind===211||n.kind===166){let v=rr(n);return v.resolvedSymbol?v.resolvedSymbol:(n.kind===211?(Dce(n,0),v.resolvedSymbol||(v.resolvedSymbol=git(Tu(n.expression),Db(n.name)))):net(n,0),!v.resolvedSymbol&&d&&P_(n)?vG(n):v.resolvedSymbol)}else if(vk(n))return vG(n)}}else if(pit(n)){let d=n.parent.kind===183?788968:1920,m=Ml(n,d,!1,!0);return m&&m!==ct?m:Iae(n)}if(n.parent.kind===182)return Ml(n,1)}function git(n,d){let m=nEe(n,d);if(m.length&&n.members){let v=Tae(y0(n).members);if(m===r_(n))return v;if(v){let C=Po(v),E=ro(m,J=>J.declaration),L=_i(E,ac).join(",");if(C.filteredIndexSymbolCache||(C.filteredIndexSymbolCache=new Map),C.filteredIndexSymbolCache.has(L))return C.filteredIndexSymbolCache.get(L);{let J=Aa(131072,"__index");return J.declarations=ro(m,ee=>ee.declaration),J.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:ug(J.declarations[0].parent),C.filteredIndexSymbolCache.set(L,J),J}}}}function vG(n,d,m){if(G_(n)){let L=Ml(n,901119,d,!0,ok(n));if(!L&&et(n)&&m&&(L=cc(qd(W_(m),n.escapedText,901119))),L)return L}let v=et(n)?m:vG(n.left,d,m),C=et(n)?n.escapedText:n.right.escapedText;if(v){let E=v.flags&111551&&da(Wn(v),"prototype"),L=E?Wn(E):Qc(v);return da(L,C)}}function ug(n,d){if(mo(n))return dd(n)?cc(n.symbol):void 0;let{parent:m}=n,v=m.parent;if(!(n.flags&67108864)){if(v5e(n)){let C=sr(m);return QC(n.parent)&&n.parent.propertyName===n?kce(C):C}else if(tR(n))return sr(m.parent);if(n.kind===80){if(ole(n))return hit(n);if(m.kind===208&&v.kind===206&&n===m.propertyName){let C=VA(v),E=da(C,n.escapedText);if(E)return E}else if(FO(m)&&m.name===n)return m.keywordToken===105&&mr(n)==="target"?vIe(m).symbol:m.keywordToken===102&&mr(n)==="meta"?dYe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!eT(n))return hit(n);case 110:let C=f_(n,!1,!1);if(vs(C)){let J=Km(C);if(J.thisParameter)return J.thisParameter}if(Kz(n))return Ho(n).symbol;case 197:return WEe(n).symbol;case 108:return Ho(n).symbol;case 137:let E=n.parent;return E&&E.kind===176?E.parent.symbol:void 0;case 11:case 15:if(nk(n.parent.parent)&&q3(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||Jn(n)&&oy(n.parent)&&n.parent.moduleSpecifier===n||Jn(n)&&Y_(n.parent,!1)||fm(n.parent)||dS(n.parent)&&eS(n.parent.parent)&&n.parent.parent.argument===n.parent)return rp(n,n,d);if(Gs(m)&&cE(m)&&m.arguments[1]===n)return sr(m);case 9:let L=nl(m)?m.argumentExpression===n?wf(m.expression):void 0:dS(m)&&lT(v)?yo(v.objectType):void 0;return L&&da(L,Hl(n.text));case 90:case 100:case 39:case 86:return z_(n.parent);case 205:return eS(n)?ug(n.argument.literal,d):void 0;case 95:return ll(n.parent)?B.checkDefined(n.parent.symbol):void 0;case 102:case 105:return FO(n.parent)?Vet(n.parent).symbol:void 0;case 104:if(Yn(n.parent)){let J=wf(n.parent.right),ee=NIe(J);return ee?.symbol??J.symbol}return;case 236:return Ho(n).symbol;case 295:if(GP(n)&&jA(n)){let J=Tce(n.parent);return J===ct?void 0:J}default:return}}}function pKt(n){if(et(n)&&lr(n.parent)&&n.parent.name===n){let d=Db(n),m=wf(n.parent.expression),v=m.flags&1048576?m.types:[m];return vo(v,C=>Di(r_(C),E=>wA(d,E.keyType)))}}function mKt(n){if(n&&n.kind===304)return Ml(n.name,2208703)}function hKt(n){if(Gf(n)){let d=n.propertyName||n.name;return n.parent.parent.moduleSpecifier?f1(n.parent.parent,n):d.kind===11?void 0:Ml(d,2998271)}else return Ml(n,2998271)}function VA(n){if(mo(n)&&!dd(n)||n.flags&67108864)return _t;let d=VZ(n),m=d&&op(sr(d.class));if(U0(n)){let v=yo(n);return m?om(v,m.thisType):v}if(Kg(n))return rNe(n);if(m&&!d.isImplements){let v=mc(dl(m));return v?om(v,m.thisType):_t}if(fN(n)){let v=sr(n);return Qc(v)}if(aKt(n)){let v=ug(n);return v?Qc(v):_t}if(Wa(n))return qm(n,!0,0)||_t;if(mf(n)){let v=sr(n);return v?Wn(v):_t}if(v5e(n)){let v=ug(n);return v?Wn(v):_t}if(Rs(n))return qm(n.parent,!0,0)||_t;if(ole(n)){let v=ug(n);if(v){let C=Qc(v);return le(C)?Wn(v):C}}return FO(n.parent)&&n.parent.keywordToken===n.kind?Vet(n.parent):bE(n)?gEe(!1):_t}function sle(n){if(B.assert(n.kind===210||n.kind===209),n.parent.kind===250){let C=mG(n.parent);return ND(n,C||_t)}if(n.parent.kind===226){let C=wf(n.parent.right);return ND(n,C||_t)}if(n.parent.kind===303){let C=ea(n.parent.parent,ba),E=sle(C)||_t,L=VP(C.properties,n.parent);return ntt(C,E,L)}let d=ea(n.parent,yf),m=sle(d)||_t,v=$S(65,m,$e,n.parent)||_t;return rtt(d,m,d.elements.indexOf(n),v)}function gKt(n){let d=sle(ea(n.parent.parent,R3));return d&&da(d,n.escapedText)}function rNe(n){return sO(n)&&(n=n.parent),x_(wf(n))}function yit(n){let d=z_(n.parent);return ia(n)?Wn(d):Qc(d)}function vit(n){let d=n.name;switch(d.kind){case 80:return sp(mr(d));case 9:case 11:return sp(d.text);case 167:let m=Cy(d);return kf(m,12288)?m:Qe;default:return B.fail("Unsupported property name.")}}function oNe(n){n=S_(n);let d=ta(yc(n)),m=Bs(n,0).length?gh:Bs(n,1).length?qe:void 0;return m&&re(yc(m),v=>{d.has(v.escapedName)||d.set(v.escapedName,v)}),Xr(d)}function ale(n){return Bs(n,0).length!==0||Bs(n,1).length!==0}function bit(n){let d=yKt(n);return d?vo(d,bit):[n]}function yKt(n){if(_u(n)&6)return ro(Po(n).containingType.types,d=>da(d,n.escapedName));if(n.flags&33554432){let{links:{leftSpread:d,rightSpread:m,syntheticOrigin:v}}=n;return d?[d,m]:v?[v]:AI(vKt(n))}}function vKt(n){let d,m=n;for(;m=Po(m).target;)d=m;return d}function bKt(n){if(yl(n))return!1;let d=_s(n,et);if(!d)return!1;let m=d.parent;return m?!((lr(m)||ed(m))&&m.name===d)&&UB(d)===Ue:!1}function SKt(n){return vM(n.parent)&&n===n.parent.name}function xKt(n,d){var m;let v=_s(n,et);if(v){let C=UB(v,SKt(v));if(C){if(C.flags&1048576){let L=cc(C.exportSymbol);if(!d&&L.flags&944&&!(L.flags&3))return;C=L}let E=bm(C);if(E){if(E.flags&512&&((m=E.valueDeclaration)==null?void 0:m.kind)===307){let L=E.valueDeclaration,J=en(v);return L!==J?void 0:L}return Ri(v.parent,L=>vM(L)&&sr(L)===E)}}}}function CKt(n){let d=$0e(n);if(d)return d;let m=_s(n,et);if(m){let v=jKt(m);if(BT(v,111551)&&!my(v,111551))return i_(v)}}function kKt(n){return n.valueDeclaration&&Wa(n.valueDeclaration)&&FI(n.valueDeclaration).parent.kind===299}function Sit(n){if(n.flags&418&&n.valueDeclaration&&!mo(n.valueDeclaration)){let d=Po(n);if(d.isDeclarationWithCollidingName===void 0){let m=Gg(n.valueDeclaration);if(ghe(m)||kKt(n))if(ni(m.parent,n.escapedName,111551,void 0,!1))d.isDeclarationWithCollidingName=!0;else if(sNe(n.valueDeclaration,16384)){let v=sNe(n.valueDeclaration,32768),C=hx(m,!1),E=m.kind===241&&hx(m.parent,!1);d.isDeclarationWithCollidingName=!whe(m)&&(!v||!C&&!E)}else d.isDeclarationWithCollidingName=!1}return d.isDeclarationWithCollidingName}return!1}function wKt(n){if(!yl(n)){let d=_s(n,et);if(d){let m=UB(d);if(m&&Sit(m))return m.valueDeclaration}}}function TKt(n){let d=_s(n,mf);if(d){let m=sr(d);if(m)return Sit(m)}return!1}function xit(n){switch(B.assert(nt),n.kind){case 271:return cle(sr(n));case 273:case 274:case 276:case 281:let d=sr(n);return!!d&&cle(d,!0);case 278:let m=n.exportClause;return!!m&&(Zy(m)||Lt(m.elements,xit));case 277:return n.expression&&n.expression.kind===80?cle(sr(n),!0):!0}return!1}function EKt(n){let d=_s(n,Dd);return d===void 0||d.parent.kind!==307||!sE(d)?!1:cle(sr(d))&&d.moduleReference&&!Ul(d.moduleReference)}function cle(n,d){if(!n)return!1;let m=en(n.valueDeclaration),v=m&&sr(m);Ep(v);let C=im(xf(n));return C===ct?!d||!my(n):!!(n_(n,d,!0)&111551)&&(Cx($)||!HB(C))}function HB(n){return IIe(n)||!!n.constEnumOnlyModule}function Cit(n,d){if(B.assert(nt),vm(n)){let m=sr(n),v=m&&Po(m);if(v?.referenced)return!0;let C=Po(m).aliasTarget;if(C&&__(n)&32&&n_(C)&111551&&(Cx($)||!HB(C)))return!0}return d?!!ws(n,m=>Cit(m,d)):!1}function kit(n){if(jh(n.body)){if(Yb(n)||z0(n))return!1;let d=sr(n),m=QT(d);return m.length>1||m.length===1&&m[0].declaration!==n}return!1}function DKt(n){let d=ule(n);if(!d)return!1;let m=yo(d);return V6(m)}function lle(n,d){return(IKt(n,d)||NKt(n))&&!DKt(n)}function IKt(n,d){return!he||s$(n)||ph(n)||!n.initializer?!1:Ar(n,31)?!!d&&Oc(d):!0}function NKt(n){return he&&s$(n)&&(ph(n)||!n.initializer)&&Ar(n,31)}function wit(n){let d=_s(n,v=>xu(v)||Ur(v));if(!d)return!1;let m;if(Ur(d)){if(d.type||!Jn(d)&&!JB(d))return!1;let v=G3(d);if(!v||!$g(v))return!1;m=sr(v)}else m=sr(d);return!m||!(m.flags&16|3)?!1:!!Vd(W_(m),v=>v.flags&111551&&pN(v.valueDeclaration))}function AKt(n){let d=_s(n,xu);if(!d)return F;let m=sr(d);return m&&yc(Wn(m))||F}function HA(n){var d;let m=n.id||0;return m<0||m>=Jc.length?0:((d=Jc[m])==null?void 0:d.flags)||0}function sNe(n,d){return PKt(n,d),!!(HA(n)&d)}function PKt(n,d){if(!$.noCheck&&vO(en(n),$)||rr(n).calculatedFlags&d)return;switch(d){case 16:case 32:return L(n);case 128:case 256:case 2097152:return E(n);case 512:case 8192:case 65536:case 262144:return ee(n);case 536870912:return pe(n);case 4096:case 32768:case 16384:return Ne(n);default:return B.assertNever(d,`Unhandled node check flag calculation: ${B.formatNodeCheckFlags(d)}`)}function v(Ot,jt){let xi=jt(Ot,Ot.parent);if(xi!=="skip")return xi||LN(Ot,jt)}function C(Ot){let jt=rr(Ot);if(jt.calculatedFlags&d)return"skip";jt.calculatedFlags|=2097536,L(Ot)}function E(Ot){v(Ot,C)}function L(Ot){let jt=rr(Ot);jt.calculatedFlags|=48,Ot.kind===108&&yce(Ot)}function J(Ot){let jt=rr(Ot);if(jt.calculatedFlags&d)return"skip";jt.calculatedFlags|=336384,pe(Ot)}function ee(Ot){v(Ot,J)}function oe(Ot){return Kg(Ot)||jf(Ot.parent)&&(Ot.parent.objectAssignmentInitializer??Ot.parent.name)===Ot}function pe(Ot){let jt=rr(Ot);if(jt.calculatedFlags|=536870912,et(Ot)&&(jt.calculatedFlags|=49152,oe(Ot)&&!(lr(Ot.parent)&&Ot.parent.name===Ot))){let xi=s_(Ot);xi&&xi!==ct&&wZe(Ot,xi)}}function Me(Ot){let jt=rr(Ot);if(jt.calculatedFlags&d)return"skip";jt.calculatedFlags|=53248,vt(Ot)}function Ne(Ot){let jt=Gg(Xy(Ot)?Ot.parent:Ot);v(jt,Me)}function vt(Ot){pe(Ot),Ma(Ot)&&Cy(Ot),xo(Ot)&&Cd(Ot.parent)&&Uce(Ot.parent)}}function AD(n){return rit(n.parent),rr(n).enumMemberValue??wd(void 0)}function Tit(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function aNe(n){if(n.kind===306)return AD(n).value;rr(n).resolvedSymbol||Tu(n);let d=rr(n).resolvedSymbol||(Xc(n)?Ml(n,111551,!0):void 0);if(d&&d.flags&8){let m=d.valueDeclaration;if(ik(m.parent))return AD(m).value}}function cNe(n){return!!(n.flags&524288)&&Bs(n,0).length>0}function LKt(n,d){var m;let v=_s(n,G_);if(!v||d&&(d=_s(d),!d))return 0;let C=!1;if(P_(v)){let pe=Ml(hp(v),111551,!0,!0,d);C=!!((m=pe?.declarations)!=null&&m.every(_x))}let E=Ml(v,111551,!0,!0,d),L=E&&E.flags&2097152?xf(E):E;C||(C=!!(E&&my(E,111551)));let J=Ml(v,788968,!0,!0,d),ee=J&&J.flags&2097152?xf(J):J;if(E||C||(C=!!(J&&my(J,788968))),L&&L===ee){let pe=yEe(!1);if(pe&&L===pe)return 9;let Me=Wn(L);if(Me&&on(Me))return C?10:1}if(!ee)return C?11:0;let oe=Qc(ee);return le(oe)?C?11:0:oe.flags&3?11:kf(oe,245760)?2:kf(oe,528)?6:kf(oe,296)?3:kf(oe,2112)?4:kf(oe,402653316)?5:Ba(oe)?7:kf(oe,12288)?8:cNe(oe)?10:Eh(oe)?7:11}function OKt(n,d,m,v,C){let E=_s(n,jhe);if(!E)return U.createToken(133);let L=sr(E),J=L&&!(L.flags&133120)?ow(Wn(L)):_t;return Ae.serializeTypeForDeclaration(E,J,L,d,m|1024,v,C)}function FKt(n){return vs(n)||ll(n)||qI(n)}function bG(n){n=_s(n,dM);let d=n.kind===178?177:178,m=bl(sr(n),d),v=m&&m.pos{if(!d)d=v.expression;else return d=void 0,!0}):d=m}return d}function MKt(n,d,m,v,C){let E=_s(n,vs);return E?Ae.serializeReturnTypeForSignature(Km(E),d,m|1024,v,C):U.createToken(133)}function RKt(n,d,m,v,C){let E=_s(n,Mt);if(!E)return U.createToken(133);let L=Ap(rNe(E));return Ae.expressionOrTypeToTypeNode(E,L,void 0,d,m|1024,v,C)}function BKt(n){return Be.has(Hl(n))}function UB(n,d){let m=rr(n).resolvedSymbol;if(m)return m;let v=n;if(d){let C=n.parent;mf(C)&&n===C.name&&(v=lD(C))}return ni(v,n.escapedText,3257279,void 0,!0)}function jKt(n){let d=rr(n).resolvedSymbol;return d&&d!==ct?d:ni(n,n.escapedText,3257279,void 0,!0,void 0)}function WKt(n){if(!yl(n)){let d=_s(n,et);if(d){let m=UB(d);if(m)return im(m).valueDeclaration}}}function zKt(n){if(!yl(n)){let d=_s(n,et);if(d){let m=UB(d);if(m)return Di(im(m).declarations,v=>{switch(v.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function VKt(n){return IM(n)||Ur(n)&&JB(n)?i2(Wn(sr(n))):!1}function HKt(n,d,m){let v=n.flags&1056?Ae.symbolToExpression(n.symbol,111551,d,void 0,void 0,m):n===Dt?U.createTrue():n===Ji&&U.createFalse();if(v)return v;let C=n.value;return typeof C=="object"?U.createBigIntLiteral(C):typeof C=="string"?U.createStringLiteral(C):C<0?U.createPrefixUnaryExpression(41,U.createNumericLiteral(-C)):U.createNumericLiteral(C)}function UKt(n,d){let m=Wn(sr(n));return HKt(m,n,d)}function Iit(n){return n?(rv(n),en(n).localJsxFactory||c1):c1}function lNe(n){if(n){let d=en(n);if(d){if(d.localJsxFragmentFactory)return d.localJsxFragmentFactory;let m=d.pragmas.get("jsxfrag"),v=ds(m)?m[0]:m;if(v)return d.localJsxFragmentFactory=FN(v.arguments.factory,te),d.localJsxFragmentFactory}}if($.jsxFragmentFactory)return FN($.jsxFragmentFactory,te)}function ule(n){let d=Yu(n);if(d)return d;if(n.kind===169&&n.parent.kind===178){let m=bG(n.parent).getAccessor;if(m)return Up(m)}}function JKt(n){let d=Up(n);if(d)return d;if(n.kind===177){let m=bG(n).setAccessor;if(m){let v=o4(m);if(v)return Yu(v)}}}function qKt(){return{getReferencedExportContainer:xKt,getReferencedImportDeclaration:CKt,getReferencedDeclarationWithCollidingName:wKt,isDeclarationWithCollidingName:TKt,isValueAliasDeclaration:d=>{let m=_s(d);return m&&nt?xit(m):!0},hasGlobalName:BKt,isReferencedAliasDeclaration:(d,m)=>{let v=_s(d);return v&&nt?Cit(v,m):!0},hasNodeCheckFlag:(d,m)=>{let v=_s(d);return v?sNe(v,m):!1},isTopLevelValueImportEqualsWithEntityName:EKt,isDeclarationVisible:Ng,isImplementationOfOverload:kit,requiresAddingImplicitUndefined:lle,isExpandoFunctionDeclaration:wit,getPropertiesOfContainerFunction:AKt,createTypeOfDeclaration:OKt,createReturnTypeOfSignatureDeclaration:MKt,createTypeOfExpression:RKt,createLiteralConstValue:UKt,isSymbolAccessible:m0,isEntityNameVisible:$9,getConstantValue:d=>{let m=_s(d,Tit);return m?aNe(m):void 0},getEnumMemberValue:d=>{let m=_s(d,_S);return m?AD(m):void 0},collectLinkedAliases:D6,markLinkedReferences:d=>{let m=_s(d);return m&&RA(m,0)},getReferencedValueDeclaration:WKt,getReferencedValueDeclarations:zKt,getTypeReferenceSerializationKind:LKt,isOptionalParameter:s$,isArgumentsLocalBinding:bKt,getExternalModuleFileFromDeclaration:d=>{let m=_s(d,Dhe);return m&&uNe(m)},isLiteralConstDeclaration:VKt,isLateBound:d=>{let m=_s(d,mf),v=m&&sr(m);return!!(v&&_u(v)&4096)},getJsxFactoryEntity:Iit,getJsxFragmentFactoryEntity:lNe,isBindingCapturedByNode:(d,m)=>{let v=_s(d),C=_s(m);return!!v&&!!C&&(Ur(C)||Wa(C))&&cHt(v,C)},getDeclarationStatementsForSourceFile:(d,m,v,C)=>{let E=_s(d);B.assert(E&&E.kind===307,"Non-sourcefile node passed into getDeclarationsForSourceFile");let L=sr(d);return L?(Ep(L),L.exports?Ae.symbolTableToDeclarationStatements(L.exports,d,m,v,C):[]):d.locals?Ae.symbolTableToDeclarationStatements(d.locals,d,m,v,C):[]},isImportRequiredByAugmentation:n,isDefinitelyReferenceToGlobalSymbolObject:Md};function n(d){let m=en(d);if(!m.symbol)return!1;let v=uNe(d);if(!v||v===m)return!1;let C=_1(m.symbol);for(let E of as(C.values()))if(E.mergeId){let L=cc(E);if(L.declarations){for(let J of L.declarations)if(en(J)===v)return!0}}return!1}}function uNe(n){let d=n.kind===267?kr(n.name,Da):GI(n),m=jT(d,d,void 0);if(m)return bl(m,307)}function $Kt(){for(let d of e.getSourceFiles())Uve(d,$);Au=new Map;let n;for(let d of e.getSourceFiles())if(!d.redirectInfo){if(!Vp(d)){let m=d.locals.get("globalThis");if(m?.declarations)for(let v of m.declarations)Ga.add(Mn(v,S.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));og(Be,d.locals)}d.jsGlobalAugmentations&&og(Be,d.jsGlobalAugmentations),d.patternAmbientModules&&d.patternAmbientModules.length&&(Lu=Fo(Lu,d.patternAmbientModules)),d.moduleAugmentations.length&&(n||(n=[])).push(d.moduleAugmentations),d.symbol&&d.symbol.globalExports&&d.symbol.globalExports.forEach((v,C)=>{Be.has(C)||Be.set(C,v)})}if(n)for(let d of n)for(let m of d)$y(m.parent)&&dA(m);if(NS(),Po(Ge).type=Bt,Po(Ue).type=iu("IArguments",0,!0),Po(ct).type=_t,Po(Ke).type=M(16,Ke),Qt=iu("Array",1,!0),Ou=iu("Object",0,!0),_d=iu("Function",0,!0),gh=Ee&&iu("CallableFunction",0,!0)||_d,qe=Ee&&iu("NewableFunction",0,!0)||_d,Jo=iu("String",0,!0),za=iu("Number",0,!0),Ja=iu("Boolean",0,!0),wu=iu("RegExp",0,!0),Mc=Hf(je),gc=Hf(It),gc===Ts&&(gc=Io(void 0,q,F,F,F)),hn=vYe("ReadonlyArray",1)||Qt,Ju=hn?sF(hn,[je]):Mc,Nd=vYe("ThisType",1),n)for(let d of n)for(let m of d)$y(m.parent)||dA(m);Au.forEach(({firstFile:d,secondFile:m,conflictingSymbols:v})=>{if(v.size<8)v.forEach(({isBlockScoped:C,firstFileLocations:E,secondFileLocations:L},J)=>{let ee=C?S.Cannot_redeclare_block_scoped_variable_0:S.Duplicate_identifier_0;for(let oe of E)uA(oe,ee,J,L);for(let oe of L)uA(oe,ee,J,E)});else{let C=as(v.keys()).join(", ");Ga.add(Xs(Mn(d,S.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,C),Mn(m,S.Conflicts_are_in_this_file))),Ga.add(Xs(Mn(m,S.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,C),Mn(d,S.Conflicts_are_in_this_file)))}}),Au=void 0}function Pd(n,d){if($.importHelpers){let m=en(n);if(HI(m,$)&&!(n.flags&33554432)){let v=KKt(m,n);if(v!==ct){let C=Po(v);if(C.requestedExternalEmitHelpers??(C.requestedExternalEmitHelpers=0),(C.requestedExternalEmitHelpers&d)!==d){let E=d&~C.requestedExternalEmitHelpers;for(let L=1;L<=16777216;L<<=1)if(E&L)for(let J of GKt(L)){let ee=Fu(qd(_1(v),Hl(J),111551));ee?L&524288?Lt(QT(ee),oe=>Lp(oe)>3)||ot(n,S.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,ek,J,4):L&1048576?Lt(QT(ee),oe=>Lp(oe)>4)||ot(n,S.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,ek,J,5):L&1024&&(Lt(QT(ee),oe=>Lp(oe)>2)||ot(n,S.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,ek,J,3)):ot(n,S.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,ek,J)}}C.requestedExternalEmitHelpers|=d}}}}function GKt(n){switch(n){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["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];default:return B.fail("Unrecognized helper")}}function KKt(n,d){let m=rr(n);return m.externalHelpersModule||(m.externalHelpersModule=hA(HXt(n),ek,S.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,d)||ct),m.externalHelpersModule}function C1(n){var d;let m=QKt(n)||XKt(n);if(m!==void 0)return m;if(To(n)&&Zw(n))return sf(n,S.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let v=mu(n)?n.declarationList.flags&7:0,C,E,L,J,ee,oe=0,pe=!1,Me=!1;for(let Ne of n.modifiers)if(Td(Ne)){if(RM(_e,n,n.parent,n.parent.parent)){if(_e&&(n.kind===177||n.kind===178)){let vt=bG(n);if(Pm(vt.firstAccessor)&&n===vt.secondAccessor)return sf(n,S.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!jh(n.body)?sf(n,S.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):sf(n,S.Decorators_are_not_valid_here);if(oe&-34849)return Gi(Ne,S.Decorators_are_not_valid_here);if(Me&&oe&98303){B.assertIsDefined(ee);let vt=en(Ne);return vC(vt)?!1:(Xs(ot(Ne,S.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Mn(ee,S.Decorator_used_before_export_here)),!0)}oe|=32768,oe&98303?oe&32&&(pe=!0):Me=!0,ee??(ee=Ne)}else{if(Ne.kind!==148){if(n.kind===171||n.kind===173)return Gi(Ne,S._0_modifier_cannot_appear_on_a_type_member,ua(Ne.kind));if(n.kind===181&&(Ne.kind!==126||!jr(n.parent)))return Gi(Ne,S._0_modifier_cannot_appear_on_an_index_signature,ua(Ne.kind))}if(Ne.kind!==103&&Ne.kind!==147&&Ne.kind!==87&&n.kind===168)return Gi(Ne,S._0_modifier_cannot_appear_on_a_type_parameter,ua(Ne.kind));switch(Ne.kind){case 87:{if(n.kind!==266&&n.kind!==168)return Gi(n,S.A_class_member_cannot_have_the_0_keyword,ua(87));let jt=Gh(n.parent)&&sk(n.parent)||n.parent;if(n.kind===168&&!(Oc(jt)||jr(jt)||Qy(jt)||g4(jt)||xN(jt)||WR(jt)||Z0(jt)))return Gi(Ne,S._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ua(Ne.kind));break}case 164:if(oe&16)return Gi(Ne,S._0_modifier_already_seen,"override");if(oe&128)return Gi(Ne,S._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(oe&8)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"override","readonly");if(oe&512)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"override","accessor");if(oe&1024)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"override","async");oe|=16,J=Ne;break;case 125:case 124:case 123:let vt=Y8(nN(Ne.kind));if(oe&7)return Gi(Ne,S.Accessibility_modifier_already_seen);if(oe&16)return Gi(Ne,S._0_modifier_must_precede_1_modifier,vt,"override");if(oe&256)return Gi(Ne,S._0_modifier_must_precede_1_modifier,vt,"static");if(oe&512)return Gi(Ne,S._0_modifier_must_precede_1_modifier,vt,"accessor");if(oe&8)return Gi(Ne,S._0_modifier_must_precede_1_modifier,vt,"readonly");if(oe&1024)return Gi(Ne,S._0_modifier_must_precede_1_modifier,vt,"async");if(n.parent.kind===268||n.parent.kind===307)return Gi(Ne,S._0_modifier_cannot_appear_on_a_module_or_namespace_element,vt);if(oe&64)return Ne.kind===123?Gi(Ne,S._0_modifier_cannot_be_used_with_1_modifier,vt,"abstract"):Gi(Ne,S._0_modifier_must_precede_1_modifier,vt,"abstract");if(u_(n))return Gi(Ne,S.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);oe|=nN(Ne.kind);break;case 126:if(oe&256)return Gi(Ne,S._0_modifier_already_seen,"static");if(oe&8)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"static","readonly");if(oe&1024)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"static","async");if(oe&512)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===307)return Gi(Ne,S._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return Gi(Ne,S._0_modifier_cannot_appear_on_a_parameter,"static");if(oe&64)return Gi(Ne,S._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(oe&16)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"static","override");oe|=256,C=Ne;break;case 129:if(oe&512)return Gi(Ne,S._0_modifier_already_seen,"accessor");if(oe&8)return Gi(Ne,S._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(oe&128)return Gi(Ne,S._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return Gi(Ne,S.accessor_modifier_can_only_appear_on_a_property_declaration);oe|=512;break;case 148:if(oe&8)return Gi(Ne,S._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return Gi(Ne,S.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(oe&512)return Gi(Ne,S._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");oe|=8;break;case 95:if($.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===307&&e.getEmitModuleFormatOfFile(en(n))===1)return Gi(Ne,S.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(oe&32)return Gi(Ne,S._0_modifier_already_seen,"export");if(oe&128)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"export","declare");if(oe&64)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"export","abstract");if(oe&1024)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"export","async");if(jr(n.parent))return Gi(Ne,S._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return Gi(Ne,S._0_modifier_cannot_appear_on_a_parameter,"export");if(v===4)return Gi(Ne,S._0_modifier_cannot_appear_on_a_using_declaration,"export");if(v===6)return Gi(Ne,S._0_modifier_cannot_appear_on_an_await_using_declaration,"export");oe|=32;break;case 90:let Ot=n.parent.kind===307?n.parent:n.parent.parent;if(Ot.kind===267&&!d_(Ot))return Gi(Ne,S.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(v===4)return Gi(Ne,S._0_modifier_cannot_appear_on_a_using_declaration,"default");if(v===6)return Gi(Ne,S._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(oe&32){if(pe)return Gi(ee,S.Decorators_are_not_valid_here)}else return Gi(Ne,S._0_modifier_must_precede_1_modifier,"export","default");oe|=2048;break;case 138:if(oe&128)return Gi(Ne,S._0_modifier_already_seen,"declare");if(oe&1024)return Gi(Ne,S._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(oe&16)return Gi(Ne,S._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(jr(n.parent)&&!ls(n))return Gi(Ne,S._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return Gi(Ne,S._0_modifier_cannot_appear_on_a_parameter,"declare");if(v===4)return Gi(Ne,S._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(v===6)return Gi(Ne,S._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return Gi(Ne,S.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(u_(n))return Gi(Ne,S._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(oe&512)return Gi(Ne,S._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");oe|=128,E=Ne;break;case 128:if(oe&64)return Gi(Ne,S._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return Gi(Ne,S.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&Ar(n.parent,64))){let jt=n.kind===172?S.Abstract_properties_can_only_appear_within_an_abstract_class:S.Abstract_methods_can_only_appear_within_an_abstract_class;return Gi(Ne,jt)}if(oe&256)return Gi(Ne,S._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(oe&2)return Gi(Ne,S._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(oe&1024&&L)return Gi(L,S._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(oe&16)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"abstract","override");if(oe&512)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(pf(n)&&n.name.kind===81)return Gi(Ne,S._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");oe|=64;break;case 134:if(oe&1024)return Gi(Ne,S._0_modifier_already_seen,"async");if(oe&128||n.parent.flags&33554432)return Gi(Ne,S._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return Gi(Ne,S._0_modifier_cannot_appear_on_a_parameter,"async");if(oe&64)return Gi(Ne,S._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");oe|=1024,L=Ne;break;case 103:case 147:{let jt=Ne.kind===103?8192:16384,xi=Ne.kind===103?"in":"out",Pi=Gh(n.parent)&&(sk(n.parent)||St((d=ZP(n.parent))==null?void 0:d.tags,kE))||n.parent;if(n.kind!==168||Pi&&!(vf(Pi)||jr(Pi)||$h(Pi)||kE(Pi)))return Gi(Ne,S._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,xi);if(oe&jt)return Gi(Ne,S._0_modifier_already_seen,xi);if(jt&8192&&oe&16384)return Gi(Ne,S._0_modifier_must_precede_1_modifier,"in","out");oe|=jt;break}}}return n.kind===176?oe&256?Gi(C,S._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):oe&16?Gi(J,S._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):oe&1024?Gi(L,S._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&oe&128?Gi(E,S.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&oe&31&&Rs(n.name)?Gi(n,S.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&oe&31&&n.dotDotDotToken?Gi(n,S.A_parameter_property_cannot_be_declared_using_a_rest_parameter):oe&1024?eXt(n,L):!1}function XKt(n){if(!n.modifiers)return!1;let d=YKt(n);return d&&sf(d,S.Modifiers_cannot_appear_here)}function dle(n,d){let m=St(n.modifiers,xa);return m&&m.kind!==d?m:void 0}function YKt(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return St(n.modifiers,xa);default:if(n.parent.kind===268||n.parent.kind===307)return;switch(n.kind){case 262:return dle(n,134);case 263:case 185:return dle(n,128);case 231:case 264:case 265:return St(n.modifiers,xa);case 243:return n.declarationList.flags&4?dle(n,135):St(n.modifiers,xa);case 266:return dle(n,87);default:B.assertNever(n)}}}function QKt(n){let d=ZKt(n);return d&&sf(d,S.Decorators_are_not_valid_here)}function ZKt(n){return lte(n)?St(n.modifiers,Td):void 0}function eXt(n,d){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return Gi(d,S._0_modifier_cannot_be_used_here,"async")}function UA(n,d=S.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?d2(n[0],n.end-1,1,d):!1}function Nit(n,d){if(n&&n.length===0){let m=n.pos-1,v=Ea(d.text,n.end)+1;return d2(d,m,v-m,S.Type_parameter_list_cannot_be_empty)}return!1}function tXt(n){let d=!1,m=n.length;for(let v=0;v!!d.initializer||Rs(d.name)||Jy(d))}function nXt(n){if(te>=3){let d=n.body&&Ds(n.body)&&ote(n.body.statements);if(d){let m=iXt(n.parameters);if(K(m)){re(m,C=>{Xs(ot(C,S.This_parameter_is_not_allowed_with_use_strict_directive),Mn(d,S.use_strict_directive_used_here))});let v=m.map((C,E)=>E===0?Mn(C,S.Non_simple_parameter_declared_here):Mn(C,S.and_here));return Xs(ot(d,S.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...v),!0}}}return!1}function fle(n){let d=en(n);return C1(n)||Nit(n.typeParameters,d)||tXt(n.parameters)||oXt(n,d)||Oc(n)&&nXt(n)}function rXt(n){let d=en(n);return uXt(n)||Nit(n.typeParameters,d)}function oXt(n,d){if(!rl(n))return!1;n.typeParameters&&!(K(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&d&&vu(d.fileName,[".mts",".cts"])&&Gi(n.typeParameters[0],S.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:m}=n,v=ma(d,m.pos).line,C=ma(d,m.end).line;return v!==C&&Gi(m,S.Line_terminator_not_permitted_before_arrow)}function sXt(n){let d=n.parameters[0];if(n.parameters.length!==1)return Gi(d?d.name:n,S.An_index_signature_must_have_exactly_one_parameter);if(UA(n.parameters,S.An_index_signature_cannot_have_a_trailing_comma),d.dotDotDotToken)return Gi(d.dotDotDotToken,S.An_index_signature_cannot_have_a_rest_parameter);if(RZ(d))return Gi(d.name,S.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(d.questionToken)return Gi(d.questionToken,S.An_index_signature_parameter_cannot_have_a_question_mark);if(d.initializer)return Gi(d.name,S.An_index_signature_parameter_cannot_have_an_initializer);if(!d.type)return Gi(d.name,S.An_index_signature_parameter_must_have_a_type_annotation);let m=yo(d.type);return Dh(m,v=>!!(v.flags&8576))||NA(m)?Gi(d.name,S.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Pp(m,Eae)?n.type?!1:Gi(n,S.An_index_signature_must_have_a_type_annotation):Gi(d.name,S.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function aXt(n){return C1(n)||sXt(n)}function cXt(n,d){if(d&&d.length===0){let m=en(n),v=d.pos-1,C=Ea(m.text,d.end)+1;return d2(m,v,C-v,S.Type_argument_list_cannot_be_empty)}return!1}function SG(n,d){return UA(d)||cXt(n,d)}function lXt(n){return n.questionDotToken||n.flags&64?Gi(n.template,S.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function Ait(n){let d=n.types;if(UA(d))return!0;if(d&&d.length===0){let m=ua(n.token);return d2(n,d.pos,0,S._0_list_cannot_be_empty,m)}return Lt(d,Pit)}function Pit(n){return nb(n)&&LO(n.expression)&&n.typeArguments?Gi(n,S.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):SG(n,n.typeArguments)}function uXt(n){let d=!1,m=!1;if(!C1(n)&&n.heritageClauses)for(let v of n.heritageClauses){if(v.token===96){if(d)return sf(v,S.extends_clause_already_seen);if(m)return sf(v,S.extends_clause_must_precede_implements_clause);if(v.types.length>1)return sf(v.types[1],S.Classes_can_only_extend_a_single_class);d=!0}else{if(B.assert(v.token===119),m)return sf(v,S.implements_clause_already_seen);m=!0}Ait(v)}}function dXt(n){let d=!1;if(n.heritageClauses)for(let m of n.heritageClauses){if(m.token===96){if(d)return sf(m,S.extends_clause_already_seen);d=!0}else return B.assert(m.token===119),sf(m,S.Interface_declaration_cannot_have_implements_clause);Ait(m)}return!1}function _le(n){if(n.kind!==167)return!1;let d=n;return d.expression.kind===226&&d.expression.operatorToken.kind===28?Gi(d.expression,S.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function dNe(n){if(n.asteriskToken){if(B.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return Gi(n.asteriskToken,S.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Gi(n.asteriskToken,S.An_overload_signature_cannot_be_declared_as_a_generator)}}function fNe(n,d){return!!n&&Gi(n,d)}function Lit(n,d){return!!n&&Gi(n,d)}function fXt(n,d){let m=new Map;for(let v of n.properties){if(v.kind===305){if(d){let L=fc(v.expression);if(yf(L)||ba(L))return Gi(v.expression,S.A_rest_element_cannot_contain_a_binding_pattern)}continue}let C=v.name;if(C.kind===167&&_le(C),v.kind===304&&!d&&v.objectAssignmentInitializer&&Gi(v.equalsToken,S.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),C.kind===81&&Gi(C,S.Private_identifiers_are_not_allowed_outside_class_bodies),Kh(v)&&v.modifiers)for(let L of v.modifiers)xa(L)&&(L.kind!==134||v.kind!==174)&&Gi(L,S._0_modifier_cannot_be_used_here,Jl(L));else if(Lye(v)&&v.modifiers)for(let L of v.modifiers)xa(L)&&Gi(L,S._0_modifier_cannot_be_used_here,Jl(L));let E;switch(v.kind){case 304:case 303:Lit(v.exclamationToken,S.A_definite_assignment_assertion_is_not_permitted_in_this_context),fNe(v.questionToken,S.An_object_member_cannot_be_declared_optional),C.kind===9&&Vit(C),C.kind===10&&u0(!0,Mn(C,S.A_bigint_literal_cannot_be_used_as_a_property_name)),E=4;break;case 174:E=8;break;case 177:E=1;break;case 178:E=2;break;default:B.assertNever(v,"Unexpected syntax kind:"+v.kind)}if(!d){let L=mNe(C);if(L===void 0)continue;let J=m.get(L);if(!J)m.set(L,E);else if(E&8&&J&8)Gi(C,S.Duplicate_identifier_0,Jl(C));else if(E&4&&J&4)Gi(C,S.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Jl(C));else if(E&3&&J&3)if(J!==3&&E!==J)m.set(L,E|J);else return Gi(C,S.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Gi(C,S.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function _Xt(n){pXt(n.tagName),SG(n,n.typeArguments);let d=new Map;for(let m of n.attributes.properties){if(m.kind===293)continue;let{name:v,initializer:C}=m,E=wO(v);if(!d.get(E))d.set(E,!0);else return Gi(v,S.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(C&&C.kind===294&&!C.expression)return Gi(C,S.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function pXt(n){if(lr(n)&&e0(n.expression))return Gi(n.expression,S.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(e0(n)&&BV($)&&!n4(n.namespace.escapedText))return Gi(n,S.React_components_cannot_include_JSX_namespace_names)}function mXt(n){if(n.expression&&UO(n.expression))return Gi(n.expression,S.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function Oit(n){if(Mb(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){let d=en(n);if(qz(n)){if(!vC(d))switch(HI(d,$)||Ga.add(Mn(n.awaitModifier,S.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)),ne){case 100:case 199:if(d.impliedNodeFormat===1){Ga.add(Mn(n.awaitModifier,S.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(te>=4)break;default:Ga.add(Mn(n.awaitModifier,S.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!vC(d)){let m=Mn(n.awaitModifier,S.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),v=_m(n);if(v&&v.kind!==176){B.assert((Vu(v)&2)===0,"Enclosing function should never be an async function.");let C=Mn(v,S.Did_you_mean_to_mark_this_function_as_async);Xs(m,C)}return Ga.add(m),!0}}if(VR(n)&&!(n.flags&65536)&&et(n.initializer)&&n.initializer.escapedText==="async")return Gi(n.initializer,S.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){let d=n.initializer;if(!pNe(d)){let m=d.declarations;if(!m.length)return!1;if(m.length>1){let C=n.kind===249?S.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:S.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return sf(d.declarations[1],C)}let v=m[0];if(v.initializer){let C=n.kind===249?S.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:S.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Gi(v.name,C)}if(v.type){let C=n.kind===249?S.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:S.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Gi(v,C)}}}return!1}function hXt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(te<2&&xo(n.name))return Gi(n.name,S.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Ar(n,64))return d2(n,n.end-1,1,S._0_expected,"{")}if(n.body){if(Ar(n,64))return Gi(n,S.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return Gi(n.body,S.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Gi(n.name,S.An_accessor_cannot_have_type_parameters);if(!gXt(n))return Gi(n.name,n.kind===177?S.A_get_accessor_cannot_have_parameters:S.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return Gi(n.name,S.A_set_accessor_cannot_have_a_return_type_annotation);let d=B.checkDefined(o4(n),"Return value does not match parameter count assertion.");if(d.dotDotDotToken)return Gi(d.dotDotDotToken,S.A_set_accessor_cannot_have_rest_parameter);if(d.questionToken)return Gi(d.questionToken,S.A_set_accessor_cannot_have_an_optional_parameter);if(d.initializer)return Gi(n.name,S.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function gXt(n){return _Ne(n)||n.parameters.length===(n.kind===177?0:1)}function _Ne(n){if(n.parameters.length===(n.kind===177?1:2))return Qw(n)}function yXt(n){if(n.operator===158){if(n.type.kind!==155)return Gi(n.type,S._0_expected,ua(155));let d=eR(n.parent);if(Jn(d)&&yk(d)){let m=Kw(d);m&&(d=YI(m)||m)}switch(d.kind){case 260:let m=d;if(m.name.kind!==80)return Gi(n,S.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!H3(m))return Gi(n,S.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(m.parent.flags&2))return Gi(d.name,S.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!ia(d)||!rO(d))return Gi(d.name,S.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Ar(d,8))return Gi(d.name,S.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Gi(n,S.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return sf(n,S.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ua(155))}function xF(n,d){if(xBt(n))return Gi(n,d)}function Fit(n){if(fle(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Ta(n.modifiers).kind===134))return sf(n,S.Modifiers_cannot_appear_here);if(fNe(n.questionToken,S.An_object_member_cannot_be_declared_optional))return!0;if(Lit(n.exclamationToken,S.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return d2(n,n.end-1,1,S._0_expected,"{")}if(dNe(n))return!0}if(jr(n.parent)){if(te<2&&xo(n.name))return Gi(n.name,S.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return xF(n.name,S.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(n.kind===174&&!n.body)return xF(n.name,S.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(n.parent.kind===264)return xF(n.name,S.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return xF(n.name,S.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 vXt(n){let d=n;for(;d;){if(MP(d))return Gi(n,S.Jump_target_cannot_cross_function_boundary);switch(d.kind){case 256:if(n.label&&d.label.escapedText===n.label.escapedText)return n.kind===251&&!hx(d.statement,!0)?Gi(n,S.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(hx(d,!1)&&!n.label)return!1;break}d=d.parent}if(n.label){let m=n.kind===252?S.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:S.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Gi(n,m)}else{let m=n.kind===252?S.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:S.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Gi(n,m)}}function bXt(n){if(n.dotDotDotToken){let d=n.parent.elements;if(n!==pa(d))return Gi(n,S.A_rest_element_must_be_last_in_a_destructuring_pattern);if(UA(d,S.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Gi(n.name,S.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return d2(n,n.initializer.pos-1,1,S.A_rest_element_cannot_have_an_initializer)}function Mit(n){return Am(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function SXt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function xXt(n){if((lr(n)||nl(n)&&Mit(n.argumentExpression))&&Xc(n.expression))return!!(Tu(n).flags&1056)}function Rit(n){let d=n.initializer;if(d){let m=!(Mit(d)||xXt(d)||d.kind===112||d.kind===97||SXt(d));if((IM(n)||Ur(n)&&JB(n))&&!n.type){if(m)return Gi(d,S.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Gi(d,S.Initializers_are_not_allowed_in_ambient_contexts)}}function CXt(n){let d=f2(n),m=d&7;if(Rs(n.name))switch(m){case 6:return Gi(n,S._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Gi(n,S._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(d&33554432)Rit(n);else if(!n.initializer){if(Rs(n.name)&&!Rs(n.parent))return Gi(n,S.A_destructuring_declaration_must_have_an_initializer);switch(m){case 6:return Gi(n,S._0_declarations_must_be_initialized,"await using");case 4:return Gi(n,S._0_declarations_must_be_initialized,"using");case 2:return Gi(n,S._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||d&33554432)){let v=n.initializer?S.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?S.A_definite_assignment_assertion_is_not_permitted_in_this_context:S.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Gi(n.exclamationToken,v)}return e.getEmitModuleFormatOfFile(en(n))<4&&!(n.parent.parent.flags&33554432)&&Ar(n.parent.parent,32)&&Bit(n.name),!!m&&jit(n.name)}function Bit(n){if(n.kind===80){if(mr(n)==="__esModule")return TXt("noEmit",n,S.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let d=n.elements;for(let m of d)if(!Ed(m))return Bit(m.name)}return!1}function jit(n){if(n.kind===80){if(n.escapedText==="let")return Gi(n,S.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let d=n.elements;for(let m of d)Ed(m)||jit(m.name)}return!1}function pNe(n){let d=n.declarations;if(UA(n.declarations))return!0;if(!n.declarations.length)return d2(n,d.pos,d.end-d.pos,S.Variable_declaration_list_cannot_be_empty);let m=n.flags&7;return(m===4||m===6)&&CH(n.parent)?Gi(n,m===4?S.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:S.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):m===6?itt(n):!1}function Wit(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return Wit(n.parent)}return!0}function kXt(n){if(!Wit(n.parent)){let d=f2(n.declarationList)&7;if(d){let m=d===1?"let":d===2?"const":d===4?"using":d===6?"await using":B.fail("Unknown BlockScope flag");return Gi(n,S._0_declarations_can_only_be_declared_inside_a_block,m)}}}function wXt(n){let d=n.name.escapedText;switch(n.keywordToken){case 105:if(d!=="target")return Gi(n.name,S._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,So(n.name.escapedText),ua(n.keywordToken),"target");break;case 102:if(d!=="meta")return Gi(n.name,S._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,So(n.name.escapedText),ua(n.keywordToken),"meta");break}}function vC(n){return n.parseDiagnostics.length>0}function sf(n,d,...m){let v=en(n);if(!vC(v)){let C=V0(v,n.pos);return Ga.add(kd(v,C.start,C.length,d,...m)),!0}return!1}function d2(n,d,m,v,...C){let E=en(n);return vC(E)?!1:(Ga.add(kd(E,d,m,v,...C)),!0)}function TXt(n,d,m,...v){let C=en(d);return vC(C)?!1:(zk(n,d,m,...v),!0)}function Gi(n,d,...m){let v=en(n);return vC(v)?!1:(Ga.add(Mn(n,d,...m)),!0)}function EXt(n){let d=Jn(n)?yV(n):void 0,m=n.typeParameters||d&&mc(d);if(m){let v=m.pos===m.end?m.pos:Ea(en(n).text,m.pos);return d2(n,v,m.end-v,S.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function DXt(n){let d=n.type||Up(n);if(d)return Gi(d,S.Type_annotation_cannot_appear_on_a_constructor_declaration)}function IXt(n){if(Ma(n.name)&&Yn(n.name.expression)&&n.name.expression.operatorToken.kind===103)return Gi(n.parent.members[0],S.A_mapped_type_may_not_declare_properties_or_methods);if(jr(n.parent)){if(Da(n.name)&&n.name.text==="constructor")return Gi(n.name,S.Classes_may_not_have_a_field_named_constructor);if(xF(n.name,S.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(te<2&&xo(n.name))return Gi(n.name,S.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(te<2&&K_(n))return Gi(n.name,S.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(K_(n)&&fNe(n.questionToken,S.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(xF(n.name,S.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(B.assertNode(n,ep),n.initializer)return Gi(n.initializer,S.An_interface_property_cannot_have_an_initializer)}else if(L_(n.parent)){if(xF(n.name,S.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(B.assertNode(n,ep),n.initializer)return Gi(n.initializer,S.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&Rit(n),ls(n)&&n.exclamationToken&&(!jr(n.parent)||!n.type||n.initializer||n.flags&33554432||ia(n)||tT(n))){let d=n.initializer?S.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?S.A_definite_assignment_assertion_is_not_permitted_in_this_context:S.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Gi(n.exclamationToken,d)}}function NXt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||Ar(n,2208)?!1:sf(n,S.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function AXt(n){for(let d of n.statements)if((mf(d)||d.kind===243)&&NXt(d))return!0;return!1}function zit(n){return!!(n.flags&33554432)&&AXt(n)}function Mb(n){if(n.flags&33554432){if(!rr(n).hasReportedStatementInAmbientContext&&(vs(n.parent)||mx(n.parent)))return rr(n).hasReportedStatementInAmbientContext=sf(n,S.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===307){let m=rr(n.parent);if(!m.hasReportedStatementInAmbientContext)return m.hasReportedStatementInAmbientContext=sf(n,S.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Vit(n){let d=Jl(n).includes("."),m=n.numericLiteralFlags&16;d||m||+n.text<=2**53-1||u0(!1,Mn(n,S.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function PXt(n){return!!(!(dS(n.parent)||mk(n.parent)&&dS(n.parent.parent))&&te<7&&Gi(n,S.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function LXt(n,d,...m){let v=en(n);if(!vC(v)){let C=V0(v,n.pos);return Ga.add(kd(v,Vl(C),0,d,...m)),!0}return!1}function OXt(){return hl||(hl=[],Be.forEach((n,d)=>{Kve.test(d)&&hl.push(n)})),hl}function FXt(n){var d;return n.isTypeOnly&&n.name&&n.namedBindings?Gi(n,S.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((d=n.namedBindings)==null?void 0:d.kind)===275?Hit(n.namedBindings):!1}function Hit(n){return!!re(n.elements,d=>{if(d.isTypeOnly)return sf(d,d.kind===276?S.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:S.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function MXt(n){if($.verbatimModuleSyntax&&ne===1)return Gi(n,S.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ne===5)return Gi(n,S.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return Gi(n,S.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let d=n.arguments;if(ne!==99&&ne!==199&&ne!==100&&ne!==200&&(UA(d),d.length>1)){let v=d[1];return Gi(v,S.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve)}if(d.length===0||d.length>2)return Gi(n,S.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let m=St(d,fh);return m?Gi(m,S.Argument_of_dynamic_import_cannot_be_spread_element):!1}function RXt(n,d){let m=_r(n);if(m&20&&d.flags&1048576)return St(d.types,v=>{if(v.flags&524288){let C=m&_r(v);if(C&4)return n.target===v.target;if(C&16)return!!n.aliasSymbol&&n.aliasSymbol===v.aliasSymbol}return!1})}function BXt(n,d){if(_r(n)&128&&Dh(d,US))return St(d.types,m=>!US(m))}function jXt(n,d){let m=0;if(Bs(n,m).length>0||(m=1,Bs(n,m).length>0))return St(d.types,C=>Bs(C,m).length>0)}function WXt(n,d){let m;if(!(n.flags&406978556)){let v=0;for(let C of d.types)if(!(C.flags&406978556)){let E=wa([Sy(n),Sy(C)]);if(E.flags&4194304)return C;if(b0(E)||E.flags&1048576){let L=E.flags&1048576?er(E.types,b0):1;L>=v&&(m=C,v=L)}}}return m}function zXt(n){if(hu(n,67108864)){let d=qu(n,m=>!(m.flags&402784252));if(!(d.flags&131072))return d}return n}function Uit(n,d,m){if(d.flags&1048576&&n.flags&2621440){let v=$Qe(d,n);if(v)return v;let C=yc(n);if(C){let E=qQe(C,d);if(E){let L=YEe(d,_i(E,J=>[()=>Wn(J),J.escapedName]),m);if(L!==d)return L}}}}function mNe(n){let d=uE(n);return d||(Ma(n)?CDe(wf(n.expression)):void 0)}function ple(n){return bn===n||(bn=n,an=GC(n)),an}function f2(n){return ci===n||(ci=n,Fi=$1(n)),Fi}function JB(n){let d=f2(n)&7;return d===2||d===4||d===6}function VXt(n,d){let m=$.importHelpers?1:0,v=n?.imports[m];return v&&B.assert(Uc(v)&&v.text===d,`Expected sourceFile.imports[${m}] to be the synthesized JSX runtime import`),v}function HXt(n){B.assert($.importHelpers,"Expected importHelpers to be enabled");let d=n.imports[0];return B.assert(d&&Uc(d)&&d.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),d}}function RDt(e){return!mx(e)}function y5e(e){return e.kind!==262&&e.kind!==174||!!e.body}function v5e(e){switch(e.parent.kind){case 276:case 281:return et(e)||e.kind===11;default:return Xy(e)}}var Mm;(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(Mm||(Mm={}));function b5e(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Xf(e){return!!(e.flags&1)}function S5e(e){return!!(e.flags&2)}function BDt(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Ps(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Ps(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,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,r)=>e.getModeForResolutionAtIndex(t,r)}}var Qve=class Bhi{constructor(t,r,a){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var u;r instanceof Bhi;)r=r.inner;this.inner=r,this.moduleResolverHost=a,this.context=t,this.canTrackSymbol=!!((u=this.inner)!=null&&u.trackSymbol)}trackSymbol(t,r,a){var u,f;if((u=this.inner)!=null&&u.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,a))return this.onDiagnosticReported(),!0;t.flags&262144||((f=this.context).trackedSymbols??(f.trackedSymbols=[])).push([t,r,a])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(t,r,a){var u;(u=this.inner)!=null&&u.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,a))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(t){var r;(r=this.inner)!=null&&r.reportInferenceFallback&&this.inner.reportInferenceFallback(t)}};function pt(e,t,r,a){if(e===void 0)return e;let u=t(e),f;if(u!==void 0)return ds(u)?f=(a||UDt)(u):f=u,B.assertNode(f,r),f}function mn(e,t,r,a,u){if(e===void 0)return e;let f=e.length;(a===void 0||a<0)&&(a=0),(u===void 0||u>f-a)&&(u=f-a);let p,y=-1,g=-1;a>0||uf-a)&&(u=f-a),x5e(e,t,r,a,u)}function x5e(e,t,r,a,u){let f,p=e.length;(a>0||u=2&&(u=jDt(u,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),u}function jDt(e,t){let r;for(let a=0;a{let p=ay,addSource:Se,setSourceContent:Re,addName:ie,addMapping:Oe,appendSourceMap:we,toJSON:Ge,toString:()=>JSON.stringify(Ge())};function Se(Ue){f();let gt=LI(a,Ue,e.getCurrentDirectory(),e.getCanonicalFileName,!0),xt=x.get(gt);return xt===void 0&&(xt=g.length,g.push(gt),y.push(Ue),x.set(gt,xt)),p(),xt}function Re(Ue,gt){if(f(),gt!==null){for(k||(k=[]);k.lengthgt||Ce===gt&&he>xt)}function Oe(Ue,gt,xt,nt,At,ci){B.assert(Ue>=_e,"generatedLine cannot backtrack"),B.assert(gt>=0,"generatedCharacter cannot be negative"),B.assert(xt===void 0||xt>=0,"sourceIndex cannot be negative"),B.assert(nt===void 0||nt>=0,"sourceLine cannot be negative"),B.assert(At===void 0||At>=0,"sourceCharacter cannot be negative"),f(),(ke(Ue,gt)||De(xt,nt,At))&&(Tt(),_e=Ue,ce=gt,ve=!1,be=!1,Ee=!0),xt!==void 0&&nt!==void 0&&At!==void 0&&(ae=xt,Ce=nt,he=At,ve=!0,ci!==void 0&&(ue=ci,be=!0)),p()}function we(Ue,gt,xt,nt,At,ci){B.assert(Ue>=_e,"generatedLine cannot backtrack"),B.assert(gt>=0,"generatedCharacter cannot be negative"),f();let Fi=[],bn,an=lie(xt.mappings);for(let ni of an){if(ci&&(ni.generatedLine>ci.line||ni.generatedLine===ci.line&&ni.generatedCharacter>ci.character))break;if(At&&(ni.generatedLine=1024&&Be()}function Tt(){if(!(!Ee||!Ae())){if(f(),W<_e){do Fe(59),W++;while(W<_e);z=0}else B.assertEqual(W,_e,"generatedLine cannot backtrack"),ne&&Fe(44);Ke(ce-z),z=ce,ve&&(Ke(ae-q),q=ae,Ke(Ce-G),G=Ce,Ke(he-$),$=he,be&&(Ke(ue-te),te=ue)),ne=!0,p()}}function Be(){P.length>0&&(R+=String.fromCharCode.apply(void 0,P),P.length=0)}function Ge(){return Tt(),Be(),{version:3,file:t,sourceRoot:r,sources:g,names:T,mappings:R,sourcesContent:k}}function Ke(Ue){Ue<0?Ue=(-Ue<<1)+1:Ue=Ue<<1;do{let gt=Ue&31;Ue=Ue>>5,Ue>0&&(gt=gt|32),Fe($Dt(gt))}while(Ue>0)}}var e1e=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,sie=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,aie=/^\s*(\/\/[@#] .*)?$/;function cie(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function t1e(e){for(let t=e.getLineCount()-1;t>=0;t--){let r=e.getLineText(t),a=sie.exec(r);if(a)return a[1].trimEnd();if(!r.match(aie))break}}function JDt(e){return typeof e=="string"||e===null}function qDt(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&ds(e.sources)&&Et(e.sources,fs)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||ds(e.sourcesContent)&&Et(e.sourcesContent,JDt))&&(e.names===void 0||e.names===null||ds(e.names)&&Et(e.names,fs))}function i1e(e){try{let t=JSON.parse(e);if(qDt(t))return t}catch{}}function lie(e){let t=!1,r=0,a=0,u=0,f=0,p=0,y=0,g=0,x;return{get pos(){return r},get error(){return x},get state(){return k(!0,!0)},next(){for(;!t&&r=e.length)return A("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let te=GDt(e.charCodeAt(r));if(te===-1)return A("Invalid character in VLQ"),-1;q=(te&32)!==0,$=$|(te&31)<>1,$=-$):$=$>>1,$}}function C5e(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 n1e(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function $Dt(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:B.fail(`${e}: not a base64 value`)}function GDt(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function k5e(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function w5e(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function KDt(e,t){return B.assert(e.sourceIndex===t.sourceIndex),Kc(e.sourcePosition,t.sourcePosition)}function XDt(e,t){return Kc(e.generatedPosition,t.generatedPosition)}function YDt(e){return e.sourcePosition}function QDt(e){return e.generatedPosition}function r1e(e,t,r){let a=Or(r),u=t.sourceRoot?ts(t.sourceRoot,a):a,f=ts(t.file,a),p=e.getSourceFileLike(f),y=t.sources.map(G=>ts(G,u)),g=new Map(y.map((G,$)=>[e.getCanonicalFileName(G),$])),x,k,T;return{getSourcePosition:q,getGeneratedPosition:z};function A(G){let $=p!==void 0?Q7(p,G.generatedLine,G.generatedCharacter,!0):-1,te,ne;if(n1e(G)){let _e=e.getSourceFileLike(y[G.sourceIndex]);te=t.sources[G.sourceIndex],ne=_e!==void 0?Q7(_e,G.sourceLine,G.sourceCharacter,!0):-1}return{generatedPosition:$,source:te,sourceIndex:G.sourceIndex,sourcePosition:ne,nameIndex:G.nameIndex}}function P(){if(x===void 0){let G=lie(t.mappings),$=as(G,A);G.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${G.error}`),x=F):x=$}return x}function R(G){if(T===void 0){let $=[];for(let te of P()){if(!k5e(te))continue;let ne=$[te.sourceIndex];ne||($[te.sourceIndex]=ne=[]),ne.push(te)}T=$.map(te=>zn(te,KDt,w5e))}return T[G]}function W(){if(k===void 0){let G=[];for(let $ of P())G.push($);k=zn(G,XDt,w5e)}return k}function z(G){let $=g.get(e.getCanonicalFileName(G.fileName));if($===void 0)return G;let te=R($);if(!Lt(te))return G;let ne=Ub(te,G.pos,YDt,Kc);ne<0&&(ne=~ne);let _e=te[ne];return _e===void 0||_e.sourceIndex!==$?G:{fileName:f,pos:_e.generatedPosition}}function q(G){let $=W();if(!Lt($))return G;let te=Ub($,G.pos,QDt,Kc);te<0&&(te=~te);let ne=$[te];return ne===void 0||!k5e(ne)?G:{fileName:y[ne.sourceIndex],pos:ne.sourcePosition}}}var uie={getSourcePosition:Gc,getGeneratedPosition:Gc};function R_(e){return e=El(e),e?ac(e):0}function T5e(e){return!e||!iy(e)&&!_h(e)?!1:Lt(e.elements,E5e)}function E5e(e){return qy(e.propertyName||e.name)}function n0(e,t){return r;function r(u){return u.kind===307?t(u):a(u)}function a(u){return e.factory.createBundle(_i(u.sourceFiles,t))}}function o1e(e){return!!YP(e)}function mU(e){if(YP(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!iy(t))return!1;let r=0;for(let a of t.elements)E5e(a)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&KI(e)}function die(e){return!mU(e)&&(KI(e)||!!e.importClause&&iy(e.importClause.namedBindings)&&T5e(e.importClause.namedBindings))}function fie(e,t){let r=e.getEmitResolver(),a=e.getCompilerOptions(),u=[],f=new ZDt,p=[],y=new Map,g=new Set,x,k=!1,T,A=!1,P=!1,R=!1;for(let G of t.statements)switch(G.kind){case 272:u.push(G),!P&&mU(G)&&(P=!0),!R&&die(G)&&(R=!0);break;case 271:G.moduleReference.kind===283&&u.push(G);break;case 278:if(G.moduleSpecifier)if(!G.exportClause)u.push(G),A=!0;else if(u.push(G),_h(G.exportClause))z(G),R||(R=T5e(G.exportClause));else{let $=G.exportClause.name,te=vx($);y.get(te)||(n8(p,R_(G),$),y.set(te,!0),x=hi(x,$)),P=!0}else z(G);break;case 277:G.isExportEquals&&!T&&(T=G);break;case 243:if(Ar(G,32))for(let $ of G.declarationList.declarations)x=D5e($,y,x,p);break;case 262:Ar(G,32)&&q(G,void 0,Ar(G,2048));break;case 263:if(Ar(G,32))if(Ar(G,2048))k||(n8(p,R_(G),e.factory.getDeclarationName(G)),k=!0);else{let $=G.name;$&&!y.get(mr($))&&(n8(p,R_(G),$),y.set(mr($),!0),x=hi(x,$))}break}let W=ste(e.factory,e.getEmitHelperFactory(),t,a,A,P,R);return W&&u.unshift(W),{externalImports:u,exportSpecifiers:f,exportEquals:T,hasExportStarsToExportValues:A,exportedBindings:p,exportedNames:x,exportedFunctions:g,externalHelpersImportDeclaration:W};function z(G){for(let $ of ea(G.exportClause,_h).elements){let te=vx($.name);if(!y.get(te)){let ne=$.propertyName||$.name;if(ne.kind!==11){G.moduleSpecifier||f.add(ne,$);let _e=r.getReferencedImportDeclaration(ne)||r.getReferencedValueDeclaration(ne);if(_e){if(_e.kind===262){q(_e,$.name,qy($.name));continue}n8(p,R_(_e),$.name)}}y.set(te,!0),x=hi(x,$.name)}}}function q(G,$,te){if(g.add(El(G,xu)),te)k||(n8(p,R_(G),$??e.factory.getDeclarationName(G)),k=!0);else{$??($=G.name);let ne=vx($);y.get(ne)||(n8(p,R_(G),$),y.set(ne,!0))}}}function D5e(e,t,r,a){if(Rs(e.name))for(let u of e.name.elements)Ed(u)||(r=D5e(u,t,r,a));else if(!yl(e.name)){let u=mr(e.name);t.get(u)||(t.set(u,!0),r=hi(r,e.name),sb(e.name)&&n8(a,R_(e),e.name))}return r}function n8(e,t,r){let a=e[t];return a?a.push(r):e[t]=a=[r],a}var B4=class Zue{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(Zue.toKey(t))}get(t){return this._map.get(Zue.toKey(t))}set(t,r){return this._map.set(Zue.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(Zue.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(Z2(t)||yl(t)){let r=t.emitNode.autoGenerate;if((r.flags&7)===4){let a=YR(t),u=Bv(a)&&a!==t?Zue.toKey(a):`(generated@${ac(a)})`;return bk(!1,r.prefix,u,r.suffix,Zue.toKey)}else{let a=`(auto@${r.id})`;return bk(!1,r.prefix,a,r.suffix,Zue.toKey)}}return xo(t)?mr(t).slice(1):mr(t)}},ZDt=class extends B4{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){let r=this.get(e);r&&(NI(r,t),r.length||this.delete(e))}};function yT(e){return xc(e)||e.kind===9||Q_(e.kind)||et(e)}function sy(e){return!et(e)&&yT(e)}function r8(e){return e>=65&&e<=79}function o8(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function hU(e){if(!Ud(e))return;let t=fc(e.expression);return oE(t)?t:void 0}function I5e(e,t,r){for(let a=t;atIt(a,t,r))}function eIt(e){return iIt(e)||Yl(e)}function yU(e){return Di(e.members,eIt)}function tIt(e,t,r){return ls(e)&&(!!e.initializer||!t)&&cd(e)===r}function iIt(e){return ls(e)&&cd(e)}function h5(e){return e.kind===172&&e.initializer!==void 0}function s1e(e){return!ia(e)&&(BI(e)||K_(e))&&xo(e.name)}function a1e(e){let t;if(e){let r=e.parameters,a=r.length>0&&Zw(r[0]),u=a?1:0,f=a?r.length-1:r.length;for(let p=0;pmie(r.privateEnv,t))}function sIt(e){return!e.initializer&&et(e.name)}function g5(e){return Et(e,sIt)}var u1e=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(u1e||{});function NE(e,t,r,a,u,f){let p=e,y;if(sS(e))for(y=e.right;Fge(e.left)||UZ(e.left);)if(sS(y))p=e=y,y=e.right;else return B.checkDefined(pt(y,t,Mt));let g,x={context:r,level:a,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:k,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:A=>pIt(r.factory,A),createObjectBindingOrAssignmentPattern:A=>hIt(r.factory,A),createArrayBindingOrAssignmentElement:yIt,visitor:t};if(y&&(y=pt(y,t,Mt),B.assert(y),et(y)&&d1e(e,y.escapedText)||f1e(e)?y=WN(x,y,!1,p):u?y=WN(x,y,!0,p):Uc(e)&&(p=y)),s8(x,e,y,p,sS(e)),y&&u){if(!Lt(g))return y;g.push(y)}return r.factory.inlineExpressions(g)||r.factory.createOmittedExpression();function k(A){g=hi(g,A)}function T(A,P,R,W){B.assertNode(A,f?et:Mt);let z=f?f(A,P,R):Ft(r.factory.createAssignment(B.checkDefined(pt(A,t,Mt)),P),R);z.original=W,k(z)}}function d1e(e,t){let r=Lx(e);return pM(r)?aIt(r,t):et(r)?r.escapedText===t:!1}function aIt(e,t){let r=D4(e);for(let a of r)if(d1e(a,t))return!0;return!1}function f1e(e){let t=MH(e);if(t&&Ma(t)&&!Q2(t.expression))return!0;let r=Lx(e);return!!r&&pM(r)&&cIt(r)}function cIt(e){return!!re(D4(e),f1e)}function vT(e,t,r,a,u,f=!1,p){let y,g=[],x=[],k={context:r,level:a,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:f,emitExpression:T,emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:P=>_It(r.factory,P),createObjectBindingOrAssignmentPattern:P=>mIt(r.factory,P),createArrayBindingOrAssignmentElement:P=>gIt(r.factory,P),visitor:t};if(Ur(e)){let P=KR(e);P&&(et(P)&&d1e(e,P.escapedText)||f1e(e))&&(P=WN(k,B.checkDefined(pt(P,k.visitor,Mt)),!1,P),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,P))}if(s8(k,e,u,e,p),y){let P=r.factory.createTempVariable(void 0);if(f){let R=r.factory.inlineExpressions(y);y=void 0,A(P,R,void 0,void 0)}else{r.hoistVariableDeclaration(P);let R=pa(g);R.pendingExpressions=hi(R.pendingExpressions,r.factory.createAssignment(P,R.value)),Fn(R.pendingExpressions,y),R.value=P}}for(let{pendingExpressions:P,name:R,value:W,location:z,original:q}of g){let G=r.factory.createVariableDeclaration(R,void 0,void 0,P?r.factory.inlineExpressions(hi(P,W)):W);G.original=q,Ft(G,z),x.push(G)}return x;function T(P){y=hi(y,P)}function A(P,R,W,z){B.assertNode(P,eE),y&&(R=r.factory.inlineExpressions(hi(y,R)),y=void 0),g.push({pendingExpressions:y,name:P,value:R,location:W,original:z})}}function s8(e,t,r,a,u){let f=Lx(t);if(!u){let p=pt(KR(t),e.visitor,Mt);p?r?(r=dIt(e,r,p,a),!sy(p)&&pM(f)&&(r=WN(e,r,!0,a))):r=p:r||(r=e.context.factory.createVoidZero())}IQ(f)?lIt(e,t,f,r,a):NQ(f)?uIt(e,t,f,r,a):e.emitBindingOrAssignment(f,r,a,t)}function lIt(e,t,r,a,u){let f=D4(r),p=f.length;if(p!==1){let x=!_M(t)||p!==0;a=WN(e,a,x,u)}let y,g;for(let x=0;x=1&&!(k.transformFlags&98304)&&!(Lx(k).transformFlags&98304)&&!Ma(T))y=hi(y,pt(k,e.visitor,Qme));else{y&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(y),a,u,r),y=void 0);let A=fIt(e,a,T);Ma(T)&&(g=hi(g,A.argumentExpression)),s8(e,k,A,k)}}}y&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(y),a,u,r)}function uIt(e,t,r,a,u){let f=D4(r),p=f.length;if(e.level<1&&e.downlevelIteration)a=WN(e,Ft(e.context.getEmitHelperFactory().createReadHelper(a,p>0&&FH(f[p-1])?void 0:p),u),!1,u);else if(p!==1&&(e.level<1||p===0)||Et(f,Ed)){let x=!_M(t)||p!==0;a=WN(e,a,x,u)}let y,g;for(let x=0;x=1)if(k.transformFlags&65536||e.hasTransformedPriorElement&&!A5e(k)){e.hasTransformedPriorElement=!0;let T=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(T),g=hi(g,[T,k]),y=hi(y,e.createArrayBindingOrAssignmentElement(T))}else y=hi(y,k);else{if(Ed(k))continue;if(FH(k)){if(x===p-1){let T=e.context.factory.createArraySliceCall(a,x);s8(e,k,T,k)}}else{let T=e.context.factory.createElementAccessExpression(a,x);s8(e,k,T,k)}}}if(y&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(y),a,u,r),g)for(let[x,k]of g)s8(e,k,x,k)}function A5e(e){let t=Lx(e);if(!t||Ed(t))return!0;let r=MH(e);if(r&&!q0(r))return!1;let a=KR(e);return a&&!sy(a)?!1:pM(t)?Et(D4(t),A5e):et(t)}function dIt(e,t,r,a){return t=WN(e,t,!0,a),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function fIt(e,t,r){let{factory:a}=e.context;if(Ma(r)){let u=WN(e,B.checkDefined(pt(r.expression,e.visitor,Mt)),!1,r);return e.context.factory.createElementAccessExpression(t,u)}else if(Am(r)||NO(r)){let u=a.cloneNode(r);return e.context.factory.createElementAccessExpression(t,u)}else{let u=e.context.factory.createIdentifier(mr(r));return e.context.factory.createPropertyAccessExpression(t,u)}}function WN(e,t,r,a){if(et(t)&&r)return t;{let u=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(u),e.emitExpression(Ft(e.context.factory.createAssignment(u,t),a))):e.emitBindingOrAssignment(u,t,a,void 0),u}}function _It(e,t){return B.assertEachNode(t,hz),e.createArrayBindingPattern(t)}function pIt(e,t){return B.assertEachNode(t,hM),e.createArrayLiteralExpression(_i(t,e.converters.convertToArrayAssignmentElement))}function mIt(e,t){return B.assertEachNode(t,Wa),e.createObjectBindingPattern(t)}function hIt(e,t){return B.assertEachNode(t,mM),e.createObjectLiteralExpression(_i(t,e.converters.convertToObjectAssignmentElement))}function gIt(e,t){return e.createBindingElement(void 0,void 0,t)}function yIt(e){return e}function vIt(e,t,r=e.createThis()){let a=e.createAssignment(t,r),u=e.createExpressionStatement(a),f=e.createBlock([u],!1),p=e.createClassStaticBlockDeclaration(f);return Bf(p).classThis=t,p}function a8(e){var t;if(!Yl(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return Ud(r)&&Hd(r.expression,!0)&&et(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function hie(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&Lt(e.members,a8)}function _1e(e,t,r,a){if(hie(t))return t;let u=vIt(e,r,a);t.name&&Fa(u.body.statements[0],t.name);let f=e.createNodeArray([u,...t.members]);Ft(f,t.members);let p=Zu(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,f):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,f);return Bf(p).classThis=r,p}function bU(e,t,r){let a=El(Cu(r));return(Zu(a)||xu(a))&&!a.name&&Ar(a,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function P5e(e,t,r){let{factory:a}=e;if(r!==void 0)return{assignedName:a.createStringLiteral(r),name:t};if(q0(t)||xo(t))return{assignedName:a.createStringLiteralFromNode(t),name:t};if(q0(t.expression)&&!et(t.expression))return{assignedName:a.createStringLiteralFromNode(t.expression),name:t};let u=a.getGeneratedNameForNode(t);e.hoistVariableDeclaration(u);let f=e.getEmitHelperFactory().createPropKeyHelper(t.expression),p=a.createAssignment(u,f),y=a.updateComputedPropertyName(t,p);return{assignedName:u,name:y}}function bIt(e,t,r=e.factory.createThis()){let{factory:a}=e,u=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),f=a.createExpressionStatement(u),p=a.createBlock([f],!1),y=a.createClassStaticBlockDeclaration(p);return Bf(y).assignedName=t,y}function zN(e){var t;if(!Yl(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return Ud(r)&&IO(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function SU(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&Lt(e.members,zN)}function gie(e){return!!e.name||SU(e)}function xU(e,t,r,a){if(SU(t))return t;let{factory:u}=e,f=bIt(e,r,a);t.name&&Fa(f.body.statements[0],t.name);let p=zi(t.members,a8)+1,y=t.members.slice(0,p),g=t.members.slice(p),x=u.createNodeArray([...y,f,...g]);return Ft(x,t.members),t=Zu(t)?u.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,x):u.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,x),Bf(t).assignedName=r,t}function j4(e,t,r,a){if(a&&Da(r)&&cZ(r))return t;let{factory:u}=e,f=Cu(t),p=Qu(f)?ea(xU(e,f,r),Qu):e.getEmitHelperFactory().createSetFunctionNameHelper(f,r);return u.restoreOuterExpressions(t,p)}function SIt(e,t,r,a){let{factory:u}=e,{assignedName:f,name:p}=P5e(e,t.name,a),y=j4(e,t.initializer,f,r);return u.updatePropertyAssignment(t,p,y)}function xIt(e,t,r,a){let{factory:u}=e,f=a!==void 0?u.createStringLiteral(a):bU(u,t.name,t.objectAssignmentInitializer),p=j4(e,t.objectAssignmentInitializer,f,r);return u.updateShorthandPropertyAssignment(t,t.name,p)}function CIt(e,t,r,a){let{factory:u}=e,f=a!==void 0?u.createStringLiteral(a):bU(u,t.name,t.initializer),p=j4(e,t.initializer,f,r);return u.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,p)}function kIt(e,t,r,a){let{factory:u}=e,f=a!==void 0?u.createStringLiteral(a):bU(u,t.name,t.initializer),p=j4(e,t.initializer,f,r);return u.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,p)}function wIt(e,t,r,a){let{factory:u}=e,f=a!==void 0?u.createStringLiteral(a):bU(u,t.name,t.initializer),p=j4(e,t.initializer,f,r);return u.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,p)}function TIt(e,t,r,a){let{factory:u}=e,{assignedName:f,name:p}=P5e(e,t.name,a),y=j4(e,t.initializer,f,r);return u.updatePropertyDeclaration(t,t.modifiers,p,t.questionToken??t.exclamationToken,t.type,y)}function EIt(e,t,r,a){let{factory:u}=e,f=a!==void 0?u.createStringLiteral(a):bU(u,t.left,t.right),p=j4(e,t.right,f,r);return u.updateBinaryExpression(t,t.left,t.operatorToken,p)}function DIt(e,t,r,a){let{factory:u}=e,f=a!==void 0?u.createStringLiteral(a):u.createStringLiteral(t.isExportEquals?"":"default"),p=j4(e,t.expression,f,r);return u.updateExportAssignment(t,t.modifiers,p)}function Gp(e,t,r,a){switch(t.kind){case 303:return SIt(e,t,r,a);case 304:return xIt(e,t,r,a);case 260:return CIt(e,t,r,a);case 169:return kIt(e,t,r,a);case 208:return wIt(e,t,r,a);case 172:return TIt(e,t,r,a);case 226:return EIt(e,t,r,a);case 277:return DIt(e,t,r,a)}}var p1e=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(p1e||{});function yie(e,t,r,a,u,f){let p=pt(t.tag,r,Mt);B.assert(p);let y=[void 0],g=[],x=[],k=t.template;if(f===0&&!NZ(k))return Qi(t,r,e);let{factory:T}=e;if(mE(k))g.push(m1e(T,k)),x.push(h1e(T,k,a));else{g.push(m1e(T,k.head)),x.push(h1e(T,k.head,a));for(let P of k.templateSpans)g.push(m1e(T,P.literal)),x.push(h1e(T,P.literal,a)),y.push(B.checkDefined(pt(P.expression,r,Mt)))}let A=e.getEmitHelperFactory().createTemplateObjectHelper(T.createArrayLiteralExpression(g),T.createArrayLiteralExpression(x));if(dd(a)){let P=T.createUniqueName("templateObject");u(P),y[0]=T.createLogicalOr(P,T.createAssignment(P,A))}else y[0]=A;return T.createCallExpression(p,void 0,y)}function m1e(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function h1e(e,t,r){let a=t.rawText;if(a===void 0){B.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),a=Vw(r,t);let u=t.kind===15||t.kind===18;a=a.substring(1,a.length-(u?1:2))}return a=a.replace(/\r\n?/g,` +`),Ft(e.createStringLiteral(a),t)}var IIt=!1;function g1e(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:a,resumeLexicalEnvironment:u,endLexicalEnvironment:f,hoistVariableDeclaration:p}=e,y=e.getEmitResolver(),g=e.getCompilerOptions(),x=Oa(g),k=p_(g),T=!!g.experimentalDecorators,A=g.emitDecoratorMetadata?v1e(e):void 0,P=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=Ko,e.onSubstituteNode=nc,e.enableSubstitution(211),e.enableSubstitution(212);let W,z,q,G,$,te,ne;return _e;function _e(H){return H.kind===308?ce(H):ae(H)}function ce(H){return t.createBundle(H.sourceFiles.map(ae))}function ae(H){if(H.isDeclarationFile)return H;W=H;let Ze=Ce(H,Ke);return ib(Ze,e.readEmitHelpers()),W=void 0,Ze}function Ce(H,Ze){let Pt=G,ri=$;he(H);let un=Ze(H);return G!==Pt&&($=ri),G=Pt,un}function he(H){switch(H.kind){case 307:case 269:case 268:case 241:G=H,$=void 0;break;case 263:case 262:if(Ar(H,128))break;H.name?rt(H):B.assert(H.kind===263||Ar(H,2048));break}}function ue(H){return Ce(H,Ee)}function Ee(H){return H.transformFlags&1?Ge(H):H}function ve(H){return Ce(H,be)}function be(H){switch(H.kind){case 272:case 271:case 277:case 278:return Re(H);default:return Ee(H)}}function Se(H){let Ze=_s(H);if(Ze===H||ll(H))return!1;if(!Ze||Ze.kind!==H.kind)return!0;switch(H.kind){case 272:if(B.assertNode(Ze,ql),H.importClause!==Ze.importClause||H.attributes!==Ze.attributes)return!0;break;case 271:if(B.assertNode(Ze,Dd),H.name!==Ze.name||H.isTypeOnly!==Ze.isTypeOnly||H.moduleReference!==Ze.moduleReference&&(G_(H.moduleReference)||G_(Ze.moduleReference)))return!0;break;case 278:if(B.assertNode(Ze,Nu),H.exportClause!==Ze.exportClause||H.attributes!==Ze.attributes)return!0;break}return!1}function Re(H){if(Se(H))return H.transformFlags&1?Qi(H,ue,e):H;switch(H.kind){case 272:return Ji(H);case 271:return Li(H);case 277:return ti(H);case 278:return li(H);default:B.fail("Unhandled ellided statement")}}function ie(H){return Ce(H,ke)}function ke(H){if(!(H.kind===278||H.kind===272||H.kind===273||H.kind===271&&H.moduleReference.kind===283))return H.transformFlags&1||Ar(H,32)?Ge(H):H}function De(H){return Ze=>Ce(Ze,Pt=>Oe(Pt,H))}function Oe(H,Ze){switch(H.kind){case 176:return si(H);case 172:return it(H,Ze);case 177:return na(H,Ze);case 178:return aa(H,Ze);case 174:return Dr(H,Ze);case 175:return Qi(H,ue,e);case 240:return H;case 181:return;default:return B.failBadSyntaxKind(H)}}function we(H){return Ze=>Ce(Ze,Pt=>Ae(Pt,H))}function Ae(H,Ze){switch(H.kind){case 303:case 304:case 305:return ue(H);case 177:return na(H,Ze);case 178:return aa(H,Ze);case 174:return Dr(H,Ze);default:return B.failBadSyntaxKind(H)}}function Fe(H){return Td(H)?void 0:ue(H)}function Tt(H){return xa(H)?void 0:ue(H)}function Be(H){if(!Td(H)&&!(nN(H.kind)&28895)&&!(z&&H.kind===95))return H}function Ge(H){if(_o(H)&&Ar(H,128))return t.createNotEmittedStatement(H);switch(H.kind){case 95:case 90:return z?void 0:H;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(H);case 270:return;case 264:return t.createNotEmittedStatement(H);case 263:return At(H);case 231:return ci(H);case 298:return Rr(H);case 233:return xn(H);case 210:return Ue(H);case 176:case 172:case 174:case 177:case 178:case 175:return B.fail("Class and object literal elements must be visited with their respective visitors");case 262:return Ai(H);case 218:return Ha(H);case 219:return ht(H);case 169:return Jt(H);case 217:return He(H);case 216:case 234:return ut(H);case 238:return je(H);case 213:return It(H);case 214:return mt(H);case 215:return $t(H);case 235:return bt(H);case 266:return nr(H);case 243:return ye(H);case 260:return ge(H);case 267:return Qe(H);case 271:return Li(H);case 285:return _t(H);case 286:return yi(H);default:return Qi(H,ue,e)}}function Ke(H){let Ze=Rf(g,"alwaysStrict")&&!(dd(H)&&k>=5)&&!Wh(H);return t.updateSourceFile(H,oie(H.statements,ve,e,0,Ze))}function Ue(H){return t.updateObjectLiteralExpression(H,mn(H.properties,we(H),G1))}function gt(H){let Ze=0;Lt(_ie(H,!0,!0))&&(Ze|=1);let Pt=J0(H);return Pt&&Cu(Pt.expression).kind!==106&&(Ze|=64),iS(T,H)&&(Ze|=2),J3(T,H)&&(Ze|=4),Vi(H)?Ze|=8:Ss(H)?Ze|=32:Cs(H)&&(Ze|=16),Ze}function xt(H){return!!(H.transformFlags&8192)}function nt(H){return Pm(H)||Lt(H.typeParameters)||Lt(H.heritageClauses,xt)||Lt(H.members,xt)}function At(H){let Ze=gt(H),Pt=x<=1&&!!(Ze&7);if(!nt(H)&&!iS(T,H)&&!Vi(H))return t.updateClassDeclaration(H,mn(H.modifiers,Be,xa),H.name,void 0,mn(H.heritageClauses,ue,$p),mn(H.members,De(H),Cd));Pt&&e.startLexicalEnvironment();let ri=Pt||Ze&8,un=ri?mn(H.modifiers,Tt,vl):mn(H.modifiers,ue,vl);Ze&2&&(un=bn(un,H));let Bi=ri&&!H.name||Ze&4||Ze&1?H.name??t.getGeneratedNameForNode(H):H.name,hr=t.updateClassDeclaration(H,un,Bi,void 0,mn(H.heritageClauses,ue,$p),Fi(H)),Pr=ja(H);Ze&1&&(Pr|=64),Hn(hr,Pr);let oo;if(Pt){let Ya=[hr],ml=qZ(Ea(W.text,H.members.end),20),Au=t.getInternalName(H),Pu=t.createPartiallyEmittedExpression(Au);p4(Pu,ml.end),Hn(Pu,3072);let ku=t.createReturnStatement(Pu);SO(ku,ml.pos),Hn(ku,3840),Ya.push(ku),Wv(Ya,e.endLexicalEnvironment());let hl=t.createImmediatelyInvokedArrowFunction(Ya);FR(hl,1);let Lu=t.createVariableDeclaration(t.getLocalName(H,!1,!1),void 0,void 0,hl);cr(Lu,H);let h_=t.createVariableStatement(void 0,t.createVariableDeclarationList([Lu],1));cr(h_,H),ud(h_,H),Fa(h_,Z1(H)),Kf(h_),oo=h_}else oo=hr;if(ri){if(Ze&8)return[oo,ks(H)];if(Ze&32)return[oo,t.createExportDefault(t.getLocalName(H,!1,!0))];if(Ze&16)return[oo,t.createExternalModuleExport(t.getDeclarationName(H,!1,!0))]}return oo}function ci(H){let Ze=mn(H.modifiers,Tt,vl);return iS(T,H)&&(Ze=bn(Ze,H)),t.updateClassExpression(H,Ze,H.name,void 0,mn(H.heritageClauses,ue,$p),Fi(H))}function Fi(H){let Ze=mn(H.members,De(H),Cd),Pt,ri=Hv(H),un=ri&&Di(ri.parameters,Nr=>Wp(Nr,ri));if(un)for(let Nr of un){let Bi=t.createPropertyDeclaration(void 0,Nr.name,void 0,void 0,void 0);cr(Bi,Nr),Pt=hi(Pt,Bi)}return Pt?(Pt=Fn(Pt,Ze),Ft(t.createNodeArray(Pt),H.members)):Ze}function bn(H,Ze){let Pt=ni(Ze,Ze);if(Lt(Pt)){let ri=[];Fn(ri,NY(H,XR)),Fn(ri,Di(H,Td)),Fn(ri,Pt),Fn(ri,Di(J_e(H,XR),xa)),H=Ft(t.createNodeArray(ri),H)}return H}function an(H,Ze,Pt){if(jr(Pt)&&aZ(T,Ze,Pt)){let ri=ni(Ze,Pt);if(Lt(ri)){let un=[];Fn(un,Di(H,Td)),Fn(un,ri),Fn(un,Di(H,xa)),H=Ft(t.createNodeArray(un),H)}}return H}function ni(H,Ze){if(T)return IIt?Sn(H,Ze):Ci(H,Ze)}function Ci(H,Ze){if(A){let Pt;if(nn(H)){let ri=r().createMetadataHelper("design:type",A.serializeTypeOfNode({currentLexicalScope:G,currentNameScope:Ze},H,Ze));Pt=hi(Pt,t.createDecorator(ri))}if(Gr(H)){let ri=r().createMetadataHelper("design:paramtypes",A.serializeParameterTypesOfNode({currentLexicalScope:G,currentNameScope:Ze},H,Ze));Pt=hi(Pt,t.createDecorator(ri))}if(Br(H)){let ri=r().createMetadataHelper("design:returntype",A.serializeReturnTypeOfNode({currentLexicalScope:G,currentNameScope:Ze},H));Pt=hi(Pt,t.createDecorator(ri))}return Pt}}function Sn(H,Ze){if(A){let Pt;if(nn(H)){let ri=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeTypeOfNode({currentLexicalScope:G,currentNameScope:Ze},H,Ze)));Pt=hi(Pt,ri)}if(Gr(H)){let ri=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeParameterTypesOfNode({currentLexicalScope:G,currentNameScope:Ze},H,Ze)));Pt=hi(Pt,ri)}if(Br(H)){let ri=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeReturnTypeOfNode({currentLexicalScope:G,currentNameScope:Ze},H)));Pt=hi(Pt,ri)}if(Pt){let ri=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(Pt,!0));return[t.createDecorator(ri)]}}}function nn(H){let Ze=H.kind;return Ze===174||Ze===177||Ze===178||Ze===172}function Br(H){return H.kind===174}function Gr(H){switch(H.kind){case 263:case 231:return Hv(H)!==void 0;case 174:case 177:case 178:return!0}return!1}function is(H,Ze){let Pt=H.name;return xo(Pt)?t.createIdentifier(""):Ma(Pt)?Ze&&!sy(Pt.expression)?t.getGeneratedNameForNode(Pt):Pt.expression:et(Pt)?t.createStringLiteral(mr(Pt)):t.cloneNode(Pt)}function Ao(H){let Ze=H.name;if(T&&Ma(Ze)&&Pm(H)){let Pt=pt(Ze.expression,ue,Mt);B.assert(Pt);let ri=xg(Pt);if(!sy(ri)){let un=t.getGeneratedNameForNode(Ze);return p(un),t.updateComputedPropertyName(Ze,t.createAssignment(un,Pt))}}return B.checkDefined(pt(Ze,ue,zu))}function Rr(H){if(H.token!==119)return Qi(H,ue,e)}function xn(H){return t.updateExpressionWithTypeArguments(H,B.checkDefined(pt(H.expression,ue,X_)),void 0)}function Eo(H){return!Ul(H.body)}function it(H,Ze){let Pt=H.flags&33554432||Ar(H,64);if(Pt&&!(T&&Pm(H)))return;let ri=jr(Ze)?Pt?mn(H.modifiers,Tt,vl):mn(H.modifiers,ue,vl):mn(H.modifiers,Fe,vl);return ri=an(ri,H,Ze),Pt?t.updatePropertyDeclaration(H,Fo(ri,t.createModifiersFromModifierFlags(128)),B.checkDefined(pt(H.name,ue,zu)),void 0,void 0,void 0):t.updatePropertyDeclaration(H,ri,Ao(H),void 0,void 0,pt(H.initializer,ue,Mt))}function si(H){if(Eo(H))return t.updateConstructorDeclaration(H,void 0,Ql(H.parameters,ue,e),Qn(H.body,H))}function dn(H,Ze,Pt,ri,un,Nr){let Bi=ri[un],hr=Ze[Bi];if(Fn(H,mn(Ze,ue,_o,Pt,Bi-Pt)),vE(hr)){let Pr=[];dn(Pr,hr.tryBlock.statements,0,ri,un+1,Nr);let oo=t.createNodeArray(Pr);Ft(oo,hr.tryBlock.statements),H.push(t.updateTryStatement(hr,t.updateBlock(hr.tryBlock,Pr),pt(hr.catchClause,ue,mT),pt(hr.finallyBlock,ue,Ds)))}else Fn(H,mn(Ze,ue,_o,Bi,1)),Fn(H,Nr);Fn(H,mn(Ze,ue,_o,Bi+1))}function Qn(H,Ze){let Pt=Ze&&Di(Ze.parameters,Pr=>Wp(Pr,Ze));if(!Lt(Pt))return Rm(H,ue,e);let ri=[];u();let un=t.copyPrologue(H.statements,ri,!1,ue),Nr=gU(H.statements,un),Bi=ro(Pt,Jr);Nr.length?dn(ri,H.statements,un,Nr,0,Bi):(Fn(ri,Bi),Fn(ri,mn(H.statements,ue,_o,un))),ri=t.mergeLexicalEnvironment(ri,f());let hr=t.createBlock(Ft(t.createNodeArray(ri),H.statements),!0);return Ft(hr,H),cr(hr,H),hr}function Jr(H){let Ze=H.name;if(!et(Ze))return;let Pt=ic(Ft(t.cloneNode(Ze),Ze),Ze.parent);Hn(Pt,3168);let ri=ic(Ft(t.cloneNode(Ze),Ze),Ze.parent);return Hn(ri,3072),Kf(OR(Ft(cr(t.createExpressionStatement(t.createAssignment(Ft(t.createPropertyAccessExpression(t.createThis(),Pt),H.name),ri)),H),uk(H,-1))))}function Dr(H,Ze){if(!(H.transformFlags&1))return H;if(!Eo(H))return;let Pt=jr(Ze)?mn(H.modifiers,ue,vl):mn(H.modifiers,Fe,vl);return Pt=an(Pt,H,Ze),t.updateMethodDeclaration(H,Pt,H.asteriskToken,Ao(H),void 0,void 0,Ql(H.parameters,ue,e),void 0,Rm(H.body,ue,e))}function Do(H){return!(Ul(H.body)&&Ar(H,64))}function na(H,Ze){if(!(H.transformFlags&1))return H;if(!Do(H))return;let Pt=jr(Ze)?mn(H.modifiers,ue,vl):mn(H.modifiers,Fe,vl);return Pt=an(Pt,H,Ze),t.updateGetAccessorDeclaration(H,Pt,Ao(H),Ql(H.parameters,ue,e),void 0,Rm(H.body,ue,e)||t.createBlock([]))}function aa(H,Ze){if(!(H.transformFlags&1))return H;if(!Do(H))return;let Pt=jr(Ze)?mn(H.modifiers,ue,vl):mn(H.modifiers,Fe,vl);return Pt=an(Pt,H,Ze),t.updateSetAccessorDeclaration(H,Pt,Ao(H),Ql(H.parameters,ue,e),Rm(H.body,ue,e)||t.createBlock([]))}function Ai(H){if(!Eo(H))return t.createNotEmittedStatement(H);let Ze=t.updateFunctionDeclaration(H,mn(H.modifiers,Be,xa),H.asteriskToken,H.name,void 0,Ql(H.parameters,ue,e),void 0,Rm(H.body,ue,e)||t.createBlock([]));if(Vi(H)){let Pt=[Ze];return hc(Pt,H),Pt}return Ze}function Ha(H){return Eo(H)?t.updateFunctionExpression(H,mn(H.modifiers,Be,xa),H.asteriskToken,H.name,void 0,Ql(H.parameters,ue,e),void 0,Rm(H.body,ue,e)||t.createBlock([])):t.createOmittedExpression()}function ht(H){return t.updateArrowFunction(H,mn(H.modifiers,Be,xa),void 0,Ql(H.parameters,ue,e),void 0,H.equalsGreaterThanToken,Rm(H.body,ue,e))}function Jt(H){if(Zw(H))return;let Ze=t.updateParameterDeclaration(H,mn(H.modifiers,Pt=>Td(Pt)?ue(Pt):void 0,vl),H.dotDotDotToken,B.checkDefined(pt(H.name,ue,eE)),void 0,void 0,pt(H.initializer,ue,Mt));return Ze!==H&&(ud(Ze,H),Ft(Ze,X0(H)),Fa(Ze,X0(H)),Hn(Ze.name,64)),Ze}function ye(H){if(Vi(H)){let Ze=uO(H.declarationList);return Ze.length===0?void 0:Ft(t.createExpressionStatement(t.inlineExpressions(_i(Ze,ct))),H)}else return Qi(H,ue,e)}function ct(H){let Ze=H.name;return Rs(Ze)?NE(H,ue,e,0,!1,Uu):Ft(t.createAssignment(Fc(Ze),B.checkDefined(pt(H.initializer,ue,Mt))),H)}function ge(H){let Ze=t.updateVariableDeclaration(H,B.checkDefined(pt(H.name,ue,eE)),void 0,void 0,pt(H.initializer,ue,Mt));return H.type&&U0e(Ze.name,H.type),Ze}function He(H){let Ze=Cu(H.expression,-23);if(ZC(Ze)||xH(Ze)){let Pt=pt(H.expression,ue,Mt);return B.assert(Pt),t.createPartiallyEmittedExpression(Pt,H)}return Qi(H,ue,e)}function ut(H){let Ze=pt(H.expression,ue,Mt);return B.assert(Ze),t.createPartiallyEmittedExpression(Ze,H)}function bt(H){let Ze=pt(H.expression,ue,X_);return B.assert(Ze),t.createPartiallyEmittedExpression(Ze,H)}function je(H){let Ze=pt(H.expression,ue,Mt);return B.assert(Ze),t.createPartiallyEmittedExpression(Ze,H)}function It(H){return t.updateCallExpression(H,B.checkDefined(pt(H.expression,ue,Mt)),void 0,mn(H.arguments,ue,Mt))}function mt(H){return t.updateNewExpression(H,B.checkDefined(pt(H.expression,ue,Mt)),void 0,mn(H.arguments,ue,Mt))}function $t(H){return t.updateTaggedTemplateExpression(H,B.checkDefined(pt(H.tag,ue,Mt)),void 0,B.checkDefined(pt(H.template,ue,jI)))}function _t(H){return t.updateJsxSelfClosingElement(H,B.checkDefined(pt(H.tagName,ue,B3)),void 0,B.checkDefined(pt(H.attributes,ue,pT)))}function yi(H){return t.updateJsxOpeningElement(H,B.checkDefined(pt(H.tagName,ue,B3)),void 0,B.checkDefined(pt(H.attributes,ue,pT)))}function Ii(H){return!ik(H)||Cx(g)}function nr(H){if(!Ii(H))return t.createNotEmittedStatement(H);let Ze=[],Pt=4,ri=tt(Ze,H);ri&&(k!==4||G!==W)&&(Pt|=1024);let un=fo(H),Nr=ka(H),Bi=Vi(H)?t.getExternalModuleOrNamespaceExportName(q,H,!1,!0):t.getDeclarationName(H,!1,!0),hr=t.createLogicalOr(Bi,t.createAssignment(Bi,t.createObjectLiteralExpression()));if(Vi(H)){let oo=t.getLocalName(H,!1,!0);hr=t.createAssignment(oo,hr)}let Pr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,un)],void 0,Y(H,Nr)),void 0,[hr]));return cr(Pr,H),ri&&(fk(Pr,void 0),hN(Pr,void 0)),Ft(Pr,H),Y0(Pr,Pt),Ze.push(Pr),Ze}function Y(H,Ze){let Pt=q;q=Ze;let ri=[];a();let un=_i(H.members,$e);return Wv(ri,f()),Fn(ri,un),q=Pt,t.createBlock(Ft(t.createNodeArray(ri),H.members),!0)}function $e(H){let Ze=is(H,!1),Pt=y.getEnumMemberValue(H),ri=Bt(H,Pt?.value),un=t.createAssignment(t.createElementAccessExpression(q,Ze),ri),Nr=typeof Pt?.value=="string"||Pt?.isSyntacticallyString?un:t.createAssignment(t.createElementAccessExpression(q,un),Ze);return Ft(t.createExpressionStatement(Ft(Nr,H)),H)}function Bt(H,Ze){return Ze!==void 0?typeof Ze=="string"?t.createStringLiteral(Ze):Ze<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Ze)):t.createNumericLiteral(Ze):(tf(),H.initializer?B.checkDefined(pt(H.initializer,ue,Mt)):t.createVoidZero())}function se(H){let Ze=_s(H,Hu);return Ze?rie(Ze,Cx(g)):!0}function rt(H){$||($=new Map);let Ze=Wt(H);$.has(Ze)||$.set(Ze,H)}function fe(H){if($){let Ze=Wt(H);return $.get(Ze)===H}return!0}function Wt(H){return B.assertNode(H.name,et),H.name.escapedText}function tt(H,Ze){let Pt=t.createVariableDeclaration(t.getLocalName(Ze,!1,!0)),ri=G.kind===307?0:1,un=t.createVariableStatement(mn(Ze.modifiers,Be,xa),t.createVariableDeclarationList([Pt],ri));return cr(Pt,Ze),fk(Pt,void 0),hN(Pt,void 0),cr(un,Ze),rt(Ze),fe(Ze)?(Ze.kind===266?Fa(un.declarationList,Ze):Fa(un,Ze),ud(un,Ze),Y0(un,2048),H.push(un),!0):!1}function Qe(H){if(!se(H))return t.createNotEmittedStatement(H);B.assertNode(H.name,et,"A TypeScript namespace should have an Identifier name."),Ts();let Ze=[],Pt=4,ri=tt(Ze,H);ri&&(k!==4||G!==W)&&(Pt|=1024);let un=fo(H),Nr=ka(H),Bi=Vi(H)?t.getExternalModuleOrNamespaceExportName(q,H,!1,!0):t.getDeclarationName(H,!1,!0),hr=t.createLogicalOr(Bi,t.createAssignment(Bi,t.createObjectLiteralExpression()));if(Vi(H)){let oo=t.getLocalName(H,!1,!0);hr=t.createAssignment(oo,hr)}let Pr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,un)],void 0,ei(H,Nr)),void 0,[hr]));return cr(Pr,H),ri&&(fk(Pr,void 0),hN(Pr,void 0)),Ft(Pr,H),Y0(Pr,Pt),Ze.push(Pr),Ze}function ei(H,Ze){let Pt=q,ri=z,un=$;q=Ze,z=H,$=void 0;let Nr=[];a();let Bi,hr;if(H.body)if(H.body.kind===268)Ce(H.body,oo=>Fn(Nr,mn(oo.statements,ie,_o))),Bi=H.body.statements,hr=H.body;else{let oo=Qe(H.body);oo&&(ds(oo)?Fn(Nr,oo):Nr.push(oo));let Ya=In(H).body;Bi=uk(Ya.statements,-1)}Wv(Nr,f()),q=Pt,z=ri,$=un;let Pr=t.createBlock(Ft(t.createNodeArray(Nr),Bi),!0);return Ft(Pr,hr),(!H.body||H.body.kind!==268)&&Hn(Pr,ja(Pr)|3072),Pr}function In(H){if(H.body.kind===267)return In(H.body)||H.body}function Ji(H){if(!H.importClause)return H;if(H.importClause.isTypeOnly)return;let Ze=pt(H.importClause,_n,Zg);return Ze?t.updateImportDeclaration(H,void 0,Ze,H.moduleSpecifier,H.attributes):void 0}function _n(H){B.assert(!H.isTypeOnly);let Ze=$l(H)?H.name:void 0,Pt=pt(H.namedBindings,Dt,OQ);return Ze||Pt?t.updateImportClause(H,!1,Ze,Pt):void 0}function Dt(H){if(H.kind===274)return $l(H)?H:void 0;{let Ze=g.verbatimModuleSyntax,Pt=mn(H.elements,Nt,F_);return Ze||Lt(Pt)?t.updateNamedImports(H,Pt):void 0}}function Nt(H){return!H.isTypeOnly&&$l(H)?H:void 0}function ti(H){return g.verbatimModuleSyntax||y.isValueAliasDeclaration(H)?Qi(H,ue,e):void 0}function li(H){if(H.isTypeOnly)return;if(!H.exportClause||Zy(H.exportClause))return H;let Ze=!!g.verbatimModuleSyntax,Pt=pt(H.exportClause,ri=>Rn(ri,Ze),CQ);return Pt?t.updateExportDeclaration(H,void 0,H.isTypeOnly,Pt,H.moduleSpecifier,H.attributes):void 0}function wi(H,Ze){let Pt=mn(H.elements,gi,Gf);return Ze||Lt(Pt)?t.updateNamedExports(H,Pt):void 0}function Si(H){return t.updateNamespaceExport(H,B.checkDefined(pt(H.name,ue,et)))}function Rn(H,Ze){return Zy(H)?Si(H):wi(H,Ze)}function gi(H){return!H.isTypeOnly&&(g.verbatimModuleSyntax||y.isValueAliasDeclaration(H))?H:void 0}function Xi(H){return $l(H)||!dd(W)&&y.isTopLevelValueImportEqualsWithEntityName(H)}function Li(H){if(H.isTypeOnly)return;if(nk(H))return $l(H)?Qi(H,ue,e):void 0;if(!Xi(H))return;let Ze=qR(t,H.moduleReference);return Hn(Ze,7168),Cs(H)||!Vi(H)?cr(Ft(t.createVariableStatement(mn(H.modifiers,Be,xa),t.createVariableDeclarationList([cr(t.createVariableDeclaration(H.name,void 0,void 0,Ze),H)])),H),H):cr(Zl(H.name,Ze,H),H)}function Vi(H){return z!==void 0&&Ar(H,32)}function ai(H){return z===void 0&&Ar(H,32)}function Cs(H){return ai(H)&&!Ar(H,2048)}function Ss(H){return ai(H)&&Ar(H,2048)}function ks(H){let Ze=t.createAssignment(t.getExternalModuleOrNamespaceExportName(q,H,!1,!0),t.getLocalName(H));Fa(Ze,ah(H.name?H.name.pos:H.pos,H.end));let Pt=t.createExpressionStatement(Ze);return Fa(Pt,ah(-1,H.end)),Pt}function hc(H,Ze){H.push(ks(Ze))}function Zl(H,Ze,Pt){return Ft(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(q,H,!1,!0),Ze)),Pt)}function Uu(H,Ze,Pt){return Ft(t.createAssignment(Fc(H),Ze),Pt)}function Fc(H){return t.getNamespaceMemberName(q,H,!1,!0)}function fo(H){let Ze=t.getGeneratedNameForNode(H);return Fa(Ze,H.name),Ze}function ka(H){return t.getGeneratedNameForNode(H)}function tf(){te&8||(te|=8,e.enableSubstitution(80))}function Ts(){te&2||(te|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function e_(H){return El(H).kind===267}function id(H){return El(H).kind===266}function Ko(H,Ze,Pt){let ri=ne,un=W;mo(Ze)&&(W=Ze),te&2&&e_(Ze)&&(ne|=2),te&8&&id(Ze)&&(ne|=8),P(H,Ze,Pt),ne=ri,W=un}function nc(H,Ze){return Ze=R(H,Ze),H===1?Bo(Ze):jf(Ze)?rc(Ze):Ze}function rc(H){if(te&2){let Ze=H.name,Pt=pi(Ze);if(Pt){if(H.objectAssignmentInitializer){let ri=t.createAssignment(Pt,H.objectAssignmentInitializer);return Ft(t.createPropertyAssignment(Ze,ri),H)}return Ft(t.createPropertyAssignment(Ze,Pt),H)}}return H}function Bo(H){switch(H.kind){case 80:return Ua(H);case 211:return Ac(H);case 212:return Wf(H)}return H}function Ua(H){return pi(H)||H}function pi(H){if(te&ne&&!yl(H)&&!sb(H)){let Ze=y.getReferencedExportContainer(H,!1);if(Ze&&Ze.kind!==307&&(ne&2&&Ze.kind===267||ne&8&&Ze.kind===266))return Ft(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ze),H),H)}}function Ac(H){return bp(H)}function Wf(H){return bp(H)}function nd(H){return H.replace(/\*\//g,"*_/")}function bp(H){let Ze=Fl(H);if(Ze!==void 0){V0e(H,Ze);let Pt=typeof Ze=="string"?t.createStringLiteral(Ze):Ze<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Ze)):t.createNumericLiteral(Ze);if(!g.removeComments){let ri=El(H,il);lH(Pt,3,` ${nd(Jl(ri))} `)}return Pt}return H}function Fl(H){if(!Jh(g))return lr(H)||nl(H)?y.getConstantValue(H):void 0}function $l(H){return g.verbatimModuleSyntax||Jn(H)||y.isReferencedAliasDeclaration(H)}}function y1e(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:a,endLexicalEnvironment:u,startLexicalEnvironment:f,resumeLexicalEnvironment:p,addBlockScopedVariable:y}=e,g=e.getEmitResolver(),x=e.getCompilerOptions(),k=Oa(x),T=xR(x),A=!!x.experimentalDecorators,P=!T,R=T&&k<9,W=P||R,z=k<9,q=k<99?-1:T?0:3,G=k<9,$=G&&k>=2,te=W||z||q===-1,ne=e.onSubstituteNode;e.onSubstituteNode=Wf;let _e=e.onEmitNode;e.onEmitNode=Ac;let ce=!1,ae,Ce,he,ue,Ee,ve=new Map,be=new Set,Se,Re,ie=!1,ke=!1;return n0(e,De);function De(H){if(H.isDeclarationFile||(Ee=void 0,ce=!!(Cg(H)&32),!te&&!ce))return H;let Ze=Qi(H,we,e);return ib(Ze,e.readEmitHelpers()),Ze}function Oe(H){switch(H.kind){case 129:return si()?void 0:H;default:return kr(H,xa)}}function we(H){if(!(H.transformFlags&16777216)&&!(H.transformFlags&134234112))return H;switch(H.kind){case 263:return Ii(H);case 231:return Y(H);case 175:case 172:return B.fail("Use `classElementVisitor` instead.");case 303:return nt(H);case 243:return At(H);case 260:return ci(H);case 169:return Fi(H);case 208:return bn(H);case 277:return an(H);case 81:return gt(H);case 211:return na(H);case 212:return aa(H);case 224:case 225:return Ai(H,!1);case 226:return ut(H,!1);case 217:return je(H,!1);case 213:return ye(H);case 244:return ht(H);case 215:return ct(H);case 248:return Ha(H);case 110:return se(H);case 262:case 218:return Gr(void 0,Ae,H);case 176:case 174:case 177:case 178:return Gr(H,Ae,H);default:return Ae(H)}}function Ae(H){return Qi(H,we,e)}function Fe(H){switch(H.kind){case 224:case 225:return Ai(H,!0);case 226:return ut(H,!0);case 355:return bt(H,!0);case 217:return je(H,!0);default:return we(H)}}function Tt(H){switch(H.kind){case 298:return Qi(H,Tt,e);case 233:return _t(H);default:return we(H)}}function Be(H){switch(H.kind){case 210:case 209:return pi(H);default:return we(H)}}function Ge(H){switch(H.kind){case 176:return Gr(H,Sn,H);case 177:case 178:case 174:return Gr(H,Br,H);case 172:return Gr(H,dn,H);case 175:return Gr(H,Bt,H);case 167:return Ci(H);case 240:return H;default:return vl(H)?Oe(H):we(H)}}function Ke(H){switch(H.kind){case 167:return Ci(H);default:return we(H)}}function Ue(H){switch(H.kind){case 172:return it(H);case 177:case 178:return Ge(H);default:B.assertMissingNode(H,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function gt(H){return!z||_o(H.parent)?H:cr(t.createIdentifier(""),H)}function xt(H){let Ze=ka(H.left);if(Ze){let Pt=pt(H.right,we,Mt);return cr(r().createClassPrivateFieldInHelper(Ze.brandCheckIdentifier,Pt),H)}return Qi(H,we,e)}function nt(H){return Hp(H,He)&&(H=Gp(e,H)),Qi(H,we,e)}function At(H){let Ze=ue;ue=[];let Pt=Qi(H,we,e),ri=Lt(ue)?[Pt,...ue]:Pt;return ue=Ze,ri}function ci(H){return Hp(H,He)&&(H=Gp(e,H)),Qi(H,we,e)}function Fi(H){return Hp(H,He)&&(H=Gp(e,H)),Qi(H,we,e)}function bn(H){return Hp(H,He)&&(H=Gp(e,H)),Qi(H,we,e)}function an(H){return Hp(H,He)&&(H=Gp(e,H,!0,H.isExportEquals?"":"default")),Qi(H,we,e)}function ni(H){return Lt(he)&&(O_(H)?(he.push(H.expression),H=t.updateParenthesizedExpression(H,t.inlineExpressions(he))):(he.push(H),H=t.inlineExpressions(he)),he=void 0),H}function Ci(H){let Ze=pt(H.expression,we,Mt);return t.updateComputedPropertyName(H,ni(Ze))}function Sn(H){return Se?Wt(H,Se):Ae(H)}function nn(H){return!!(z||cd(H)&&Cg(H)&32)}function Br(H){if(B.assert(!Pm(H)),!u_(H)||!nn(H))return Qi(H,Ge,e);let Ze=ka(H.name);if(B.assert(Ze,"Undeclared private name for property declaration."),!Ze.isValid)return H;let Pt=is(H);Pt&&Vi().push(t.createAssignment(Pt,t.createFunctionExpression(Di(H.modifiers,ri=>xa(ri)&&!SN(ri)&&!oye(ri)),H.asteriskToken,Pt,void 0,Ql(H.parameters,we,e),void 0,Rm(H.body,we,e))))}function Gr(H,Ze,Pt){if(H!==Re){let ri=Re;Re=H;let un=Ze(Pt);return Re=ri,un}return Ze(Pt)}function is(H){B.assert(xo(H.name));let Ze=ka(H.name);if(B.assert(Ze,"Undeclared private name for property declaration."),Ze.kind==="m")return Ze.methodName;if(Ze.kind==="a"){if(Yb(H))return Ze.getterName;if(z0(H))return Ze.setterName}}function Ao(){let H=Xi();return H.classThis??H.classConstructor??Se?.name}function Rr(H){let Ze=Q0(H),Pt=lS(H),ri=H.name,un=ri,Nr=ri;if(Ma(ri)&&!sy(ri.expression)){let Au=BH(ri);if(Au)un=t.updateComputedPropertyName(ri,pt(ri.expression,we,Mt)),Nr=t.updateComputedPropertyName(ri,Au.left);else{let Pu=t.createTempVariable(a);Fa(Pu,ri.expression);let ku=pt(ri.expression,we,Mt),hl=t.createAssignment(Pu,ku);Fa(hl,ri.expression),un=t.updateComputedPropertyName(ri,hl),Nr=t.updateComputedPropertyName(ri,Pu)}}let Bi=mn(H.modifiers,Oe,xa),hr=fte(t,H,Bi,H.initializer);cr(hr,H),Hn(hr,3072),Fa(hr,Pt);let Pr=ia(H)?Ao()??t.createThis():t.createThis(),oo=zye(t,H,Bi,un,Pr);cr(oo,H),ud(oo,Ze),Fa(oo,Pt);let Ya=t.createModifiersFromModifierFlags(K0(Bi)),ml=Vye(t,H,Ya,Nr,Pr);return cr(ml,H),Hn(ml,3072),Fa(ml,Pt),p5([hr,oo,ml],Ue,Cd)}function xn(H){if(nn(H)){let Ze=ka(H.name);if(B.assert(Ze,"Undeclared private name for property declaration."),!Ze.isValid)return H;if(Ze.isStatic&&!z){let Pt=In(H,t.createThis());if(Pt)return t.createClassStaticBlockDeclaration(t.createBlock([Pt],!0))}return}return P&&!ia(H)&&Ee?.data&&Ee.data.facts&16?t.updatePropertyDeclaration(H,mn(H.modifiers,we,vl),H.name,void 0,void 0,void 0):(Hp(H,He)&&(H=Gp(e,H)),t.updatePropertyDeclaration(H,mn(H.modifiers,Oe,xa),pt(H.name,Ke,zu),void 0,void 0,pt(H.initializer,we,Mt)))}function Eo(H){if(W&&!K_(H)){let Ze=Si(H.name,!!H.initializer||T);if(Ze&&Vi().push(...Hye(Ze)),ia(H)&&!z){let Pt=In(H,t.createThis());if(Pt){let ri=t.createClassStaticBlockDeclaration(t.createBlock([Pt]));return cr(ri,H),ud(ri,H),ud(Pt,{pos:-1,end:-1}),fk(Pt,void 0),hN(Pt,void 0),ri}}return}return t.updatePropertyDeclaration(H,mn(H.modifiers,Oe,xa),pt(H.name,Ke,zu),void 0,void 0,pt(H.initializer,we,Mt))}function it(H){return B.assert(!Pm(H),"Decorators should already have been transformed and elided."),u_(H)?xn(H):Eo(H)}function si(){return q===-1||q===3&&!!Ee?.data&&!!(Ee.data.facts&16)}function dn(H){return K_(H)&&(si()||cd(H)&&Cg(H)&32)?Rr(H):it(H)}function Qn(){return!!Re&&cd(Re)&&mx(Re)&&K_(El(Re))}function Jr(H){if(Qn()){let Ze=Cu(H);Ze.kind===110&&be.add(Ze)}}function Dr(H,Ze){return Ze=pt(Ze,we,Mt),Jr(Ze),Do(H,Ze)}function Do(H,Ze){switch(ud(Ze,uk(Ze,-1)),H.kind){case"a":return r().createClassPrivateFieldGetHelper(Ze,H.brandCheckIdentifier,H.kind,H.getterName);case"m":return r().createClassPrivateFieldGetHelper(Ze,H.brandCheckIdentifier,H.kind,H.methodName);case"f":return r().createClassPrivateFieldGetHelper(Ze,H.brandCheckIdentifier,H.kind,H.isStatic?H.variableName:void 0);case"untransformed":return B.fail("Access helpers should not be created for untransformed private elements");default:B.assertNever(H,"Unknown private element type")}}function na(H){if(xo(H.name)){let Ze=ka(H.name);if(Ze)return Ft(cr(Dr(Ze,H.expression),H),H)}if($&&Re&&mp(H)&&et(H.name)&&c8(Re)&&Ee?.data){let{classConstructor:Ze,superClassReference:Pt,facts:ri}=Ee.data;if(ri&1)return wi(H);if(Ze&&Pt){let un=t.createReflectGetCall(Pt,t.createStringLiteralFromNode(H.name),Ze);return cr(un,H.expression),Ft(un,H.expression),un}}return Qi(H,we,e)}function aa(H){if($&&Re&&mp(H)&&c8(Re)&&Ee?.data){let{classConstructor:Ze,superClassReference:Pt,facts:ri}=Ee.data;if(ri&1)return wi(H);if(Ze&&Pt){let un=t.createReflectGetCall(Pt,pt(H.argumentExpression,we,Mt),Ze);return cr(un,H.expression),Ft(un,H.expression),un}}return Qi(H,we,e)}function Ai(H,Ze){if(H.operator===46||H.operator===47){let Pt=fc(H.operand);if(FP(Pt)){let ri;if(ri=ka(Pt.name)){let un=pt(Pt.expression,we,Mt);Jr(un);let{readExpression:Nr,initializeExpression:Bi}=Jt(un),hr=Dr(ri,Nr),Pr=mk(H)||Ze?void 0:t.createTempVariable(a);return hr=AH(t,H,hr,a,Pr),hr=It(ri,Bi||Nr,hr,64),cr(hr,H),Ft(hr,H),Pr&&(hr=t.createComma(hr,Pr),Ft(hr,H)),hr}}else if($&&Re&&mp(Pt)&&c8(Re)&&Ee?.data){let{classConstructor:ri,superClassReference:un,facts:Nr}=Ee.data;if(Nr&1){let Bi=wi(Pt);return mk(H)?t.updatePrefixUnaryExpression(H,Bi):t.updatePostfixUnaryExpression(H,Bi)}if(ri&&un){let Bi,hr;if(lr(Pt)?et(Pt.name)&&(hr=Bi=t.createStringLiteralFromNode(Pt.name)):sy(Pt.argumentExpression)?hr=Bi=Pt.argumentExpression:(hr=t.createTempVariable(a),Bi=t.createAssignment(hr,pt(Pt.argumentExpression,we,Mt))),Bi&&hr){let Pr=t.createReflectGetCall(un,hr,ri);Ft(Pr,Pt);let oo=Ze?void 0:t.createTempVariable(a);return Pr=AH(t,H,Pr,a,oo),Pr=t.createReflectSetCall(un,Bi,Pr,ri),cr(Pr,H),Ft(Pr,H),oo&&(Pr=t.createComma(Pr,oo),Ft(Pr,H)),Pr}}}}return Qi(H,we,e)}function Ha(H){return t.updateForStatement(H,pt(H.initializer,Fe,rh),pt(H.condition,we,Mt),pt(H.incrementor,Fe,Mt),M_(H.statement,we,e))}function ht(H){return t.updateExpressionStatement(H,pt(H.expression,Fe,Mt))}function Jt(H){let Ze=Uc(H)?H:t.cloneNode(H);if(H.kind===110&&be.has(H)&&be.add(Ze),sy(H))return{readExpression:Ze,initializeExpression:void 0};let Pt=t.createTempVariable(a),ri=t.createAssignment(Pt,Ze);return{readExpression:Pt,initializeExpression:ri}}function ye(H){var Ze;if(FP(H.expression)&&ka(H.expression.name)){let{thisArg:Pt,target:ri}=t.createCallBinding(H.expression,a,k);return Y2(H)?t.updateCallChain(H,t.createPropertyAccessChain(pt(ri,we,Mt),H.questionDotToken,"call"),void 0,void 0,[pt(Pt,we,Mt),...mn(H.arguments,we,Mt)]):t.updateCallExpression(H,t.createPropertyAccessExpression(pt(ri,we,Mt),"call"),void 0,[pt(Pt,we,Mt),...mn(H.arguments,we,Mt)])}if($&&Re&&mp(H.expression)&&c8(Re)&&((Ze=Ee?.data)!=null&&Ze.classConstructor)){let Pt=t.createFunctionCallCall(pt(H.expression,we,Mt),Ee.data.classConstructor,mn(H.arguments,we,Mt));return cr(Pt,H),Ft(Pt,H),Pt}return Qi(H,we,e)}function ct(H){var Ze;if(FP(H.tag)&&ka(H.tag.name)){let{thisArg:Pt,target:ri}=t.createCallBinding(H.tag,a,k);return t.updateTaggedTemplateExpression(H,t.createCallExpression(t.createPropertyAccessExpression(pt(ri,we,Mt),"bind"),void 0,[pt(Pt,we,Mt)]),void 0,pt(H.template,we,jI))}if($&&Re&&mp(H.tag)&&c8(Re)&&((Ze=Ee?.data)!=null&&Ze.classConstructor)){let Pt=t.createFunctionBindCall(pt(H.tag,we,Mt),Ee.data.classConstructor,[]);return cr(Pt,H),Ft(Pt,H),t.updateTaggedTemplateExpression(H,Pt,void 0,pt(H.template,we,jI))}return Qi(H,we,e)}function ge(H){if(Ee&&ve.set(El(H),Ee),z){if(a8(H)){let ri=pt(H.body.statements[0].expression,we,Mt);return Hd(ri,!0)&&ri.left===ri.right?void 0:ri}if(zN(H))return pt(H.body.statements[0].expression,we,Mt);f();let Ze=Gr(H,ri=>mn(ri,we,_o),H.body.statements);Ze=t.mergeLexicalEnvironment(Ze,u());let Pt=t.createImmediatelyInvokedArrowFunction(Ze);return cr(fc(Pt.expression),H),Y0(fc(Pt.expression),4),cr(Pt,H),Ft(Pt,H),Pt}}function He(H){if(Qu(H)&&!H.name){let Ze=yU(H);return Lt(Ze,zN)?!1:(z||!!Cg(H))&&Lt(Ze,ri=>Yl(ri)||u_(ri)||W&&h5(ri))}return!1}function ut(H,Ze){if(sS(H)){let Pt=he;he=void 0,H=t.updateBinaryExpression(H,pt(H.left,Be,Mt),H.operatorToken,pt(H.right,we,Mt));let ri=Lt(he)?t.inlineExpressions(zr([...he,H])):H;return he=Pt,ri}if(Hd(H)){Hp(H,He)&&(H=Gp(e,H),B.assertNode(H,Hd));let Pt=Cu(H.left,9);if(FP(Pt)){let ri=ka(Pt.name);if(ri)return Ft(cr(It(ri,Pt.expression,H.right,H.operatorToken.kind),H),H)}else if($&&Re&&mp(H.left)&&c8(Re)&&Ee?.data){let{classConstructor:ri,superClassReference:un,facts:Nr}=Ee.data;if(Nr&1)return t.updateBinaryExpression(H,wi(H.left),H.operatorToken,pt(H.right,we,Mt));if(ri&&un){let Bi=nl(H.left)?pt(H.left.argumentExpression,we,Mt):et(H.left.name)?t.createStringLiteralFromNode(H.left.name):void 0;if(Bi){let hr=pt(H.right,we,Mt);if(r8(H.operatorToken.kind)){let oo=Bi;sy(Bi)||(oo=t.createTempVariable(a),Bi=t.createAssignment(oo,Bi));let Ya=t.createReflectGetCall(un,oo,ri);cr(Ya,H.left),Ft(Ya,H.left),hr=t.createBinaryExpression(Ya,o8(H.operatorToken.kind),hr),Ft(hr,H)}let Pr=Ze?void 0:t.createTempVariable(a);return Pr&&(hr=t.createAssignment(Pr,hr),Ft(Pr,H)),hr=t.createReflectSetCall(un,Bi,hr,ri),cr(hr,H),Ft(hr,H),Pr&&(hr=t.createComma(hr,Pr),Ft(hr,H)),hr}}}}return OIt(H)?xt(H):Qi(H,we,e)}function bt(H,Ze){let Pt=Ze?m5(H.elements,Fe):m5(H.elements,we,Fe);return t.updateCommaListExpression(H,Pt)}function je(H,Ze){let Pt=Ze?Fe:we,ri=pt(H.expression,Pt,Mt);return t.updateParenthesizedExpression(H,ri)}function It(H,Ze,Pt,ri){if(Ze=pt(Ze,we,Mt),Pt=pt(Pt,we,Mt),Jr(Ze),r8(ri)){let{readExpression:un,initializeExpression:Nr}=Jt(Ze);Ze=Nr||un,Pt=t.createBinaryExpression(Do(H,un),o8(ri),Pt)}switch(ud(Ze,uk(Ze,-1)),H.kind){case"a":return r().createClassPrivateFieldSetHelper(Ze,H.brandCheckIdentifier,Pt,H.kind,H.setterName);case"m":return r().createClassPrivateFieldSetHelper(Ze,H.brandCheckIdentifier,Pt,H.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(Ze,H.brandCheckIdentifier,Pt,H.kind,H.isStatic?H.variableName:void 0);case"untransformed":return B.fail("Access helpers should not be created for untransformed private elements");default:B.assertNever(H,"Unknown private element type")}}function mt(H){return Di(H.members,s1e)}function $t(H){var Ze;let Pt=0,ri=El(H);jr(ri)&&iS(A,ri)&&(Pt|=1),z&&(hie(H)||SU(H))&&(Pt|=2);let un=!1,Nr=!1,Bi=!1,hr=!1;for(let oo of H.members)ia(oo)?((oo.name&&(xo(oo.name)||K_(oo))&&z||K_(oo)&&q===-1&&!H.name&&!((Ze=H.emitNode)!=null&&Ze.classThis))&&(Pt|=2),(ls(oo)||Yl(oo))&&(G&&oo.transformFlags&16384&&(Pt|=8,Pt&1||(Pt|=2)),$&&oo.transformFlags&134217728&&(Pt&1||(Pt|=6)))):tT(El(oo))||(K_(oo)?(hr=!0,Bi||(Bi=u_(oo))):u_(oo)?(Bi=!0,g.hasNodeCheckFlag(oo,262144)&&(Pt|=2)):ls(oo)&&(un=!0,Nr||(Nr=!!oo.initializer)));return(R&&un||P&&Nr||z&&Bi||z&&hr&&q===-1)&&(Pt|=16),Pt}function _t(H){var Ze;if((((Ze=Ee?.data)==null?void 0:Ze.facts)||0)&4){let ri=t.createTempVariable(a,!0);return Xi().superClassReference=ri,t.updateExpressionWithTypeArguments(H,t.createAssignment(ri,pt(H.expression,we,Mt)),void 0)}return Qi(H,we,e)}function yi(H,Ze){var Pt;let ri=Se,un=he,Nr=Ee;Se=H,he=void 0,Rn();let Bi=Cg(H)&32;if(z||Bi){let oo=cs(H);if(oo&&et(oo))Li().data.className=oo;else if((Pt=H.emitNode)!=null&&Pt.assignedName&&Da(H.emitNode.assignedName)){if(H.emitNode.assignedName.textSourceNode&&et(H.emitNode.assignedName.textSourceNode))Li().data.className=H.emitNode.assignedName.textSourceNode;else if(pp(H.emitNode.assignedName.text,k)){let Ya=t.createIdentifier(H.emitNode.assignedName.text);Li().data.className=Ya}}}if(z){let oo=mt(H);Lt(oo)&&(Li().data.weakSetName=Fc("instances",oo[0].name))}let hr=$t(H);hr&&(Xi().facts=hr),hr&8&&ti();let Pr=Ze(H,hr);return gi(),B.assert(Ee===Nr),Se=ri,he=un,Pr}function Ii(H){return yi(H,nr)}function nr(H,Ze){var Pt,ri;let un;if(Ze&2)if(z&&((Pt=H.emitNode)!=null&&Pt.classThis))Xi().classConstructor=H.emitNode.classThis,un=t.createAssignment(H.emitNode.classThis,t.getInternalName(H));else{let hl=t.createTempVariable(a,!0);Xi().classConstructor=t.cloneNode(hl),un=t.createAssignment(hl,t.getInternalName(H))}(ri=H.emitNode)!=null&&ri.classThis&&(Xi().classThis=H.emitNode.classThis);let Nr=g.hasNodeCheckFlag(H,262144),Bi=Ar(H,32),hr=Ar(H,2048),Pr=mn(H.modifiers,Oe,xa),oo=mn(H.heritageClauses,Tt,$p),{members:Ya,prologue:ml}=rt(H),Au=[];if(un&&Vi().unshift(un),Lt(he)&&Au.push(t.createExpressionStatement(t.inlineExpressions(he))),P||z||Cg(H)&32){let hl=yU(H);Lt(hl)&&ei(Au,hl,t.getInternalName(H))}Au.length>0&&Bi&&hr&&(Pr=mn(Pr,hl=>XR(hl)?void 0:hl,xa),Au.push(t.createExportAssignment(void 0,!1,t.getLocalName(H,!1,!0))));let Pu=Xi().classConstructor;Nr&&Pu&&(Nt(),Ce[R_(H)]=Pu);let ku=t.updateClassDeclaration(H,Pr,H.name,void 0,oo,Ya);return Au.unshift(ku),ml&&Au.unshift(t.createExpressionStatement(ml)),Au}function Y(H){return yi(H,$e)}function $e(H,Ze){var Pt,ri,un;let Nr=!!(Ze&1),Bi=yU(H),hr=g.hasNodeCheckFlag(H,262144),Pr=g.hasNodeCheckFlag(H,32768),oo;function Ya(){var Ou;if(z&&((Ou=H.emitNode)!=null&&Ou.classThis))return Xi().classConstructor=H.emitNode.classThis;let _d=t.createTempVariable(Pr?y:a,!0);return Xi().classConstructor=t.cloneNode(_d),_d}(Pt=H.emitNode)!=null&&Pt.classThis&&(Xi().classThis=H.emitNode.classThis),Ze&2&&(oo??(oo=Ya()));let ml=mn(H.modifiers,Oe,xa),Au=mn(H.heritageClauses,Tt,$p),{members:Pu,prologue:ku}=rt(H),hl=t.updateClassExpression(H,ml,H.name,void 0,Au,Pu),Lu=[];if(ku&&Lu.push(ku),(z||Cg(H)&32)&&Lt(Bi,Ou=>Yl(Ou)||u_(Ou)||W&&h5(Ou))||Lt(he))if(Nr)B.assertIsDefined(ue,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Lt(he)&&Fn(ue,_i(he,t.createExpressionStatement)),Lt(Bi)&&ei(ue,Bi,((ri=H.emitNode)==null?void 0:ri.classThis)??t.getInternalName(H)),oo?Lu.push(t.createAssignment(oo,hl)):z&&((un=H.emitNode)!=null&&un.classThis)?Lu.push(t.createAssignment(H.emitNode.classThis,hl)):Lu.push(hl);else{if(oo??(oo=Ya()),hr){Nt();let Ou=t.cloneNode(oo);Ou.emitNode.autoGenerate.flags&=-9,Ce[R_(H)]=Ou}Lu.push(t.createAssignment(oo,hl)),Fn(Lu,he),Fn(Lu,Ji(Bi,oo)),Lu.push(t.cloneNode(oo))}else Lu.push(hl);return Lu.length>1&&(Y0(hl,131072),Lu.forEach(Kf)),t.inlineExpressions(Lu)}function Bt(H){if(!z)return Qi(H,we,e)}function se(H){if(G&&Re&&Yl(Re)&&Ee?.data){let{classThis:Ze,classConstructor:Pt}=Ee.data;return Ze??Pt??H}return H}function rt(H){let Ze=!!(Cg(H)&32);if(z||ce){for(let Bi of H.members)if(u_(Bi))if(nn(Bi))Uu(Bi,Bi.name,ai);else{let hr=Li();IE(hr,Bi.name,{kind:"untransformed"})}if(z&&Lt(mt(H))&&fe(),si()){for(let Bi of H.members)if(K_(Bi)){let hr=t.getGeneratedPrivateNameForNode(Bi.name,void 0,"_accessor_storage");if(z||Ze&&cd(Bi))Uu(Bi,hr,Cs);else{let Pr=Li();IE(Pr,hr,{kind:"untransformed"})}}}}let Pt=mn(H.members,Ge,Cd),ri;Lt(Pt,Ol)||(ri=Wt(void 0,H));let un,Nr;if(!z&&Lt(he)){let Bi=t.createExpressionStatement(t.inlineExpressions(he));if(Bi.transformFlags&134234112){let Pr=t.createTempVariable(a),oo=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([Bi]));un=t.createAssignment(Pr,oo),Bi=t.createExpressionStatement(t.createCallExpression(Pr,void 0,[]))}let hr=t.createBlock([Bi]);Nr=t.createClassStaticBlockDeclaration(hr),he=void 0}if(ri||Nr){let Bi,hr=St(Pt,a8),Pr=St(Pt,zN);Bi=hi(Bi,hr),Bi=hi(Bi,Pr),Bi=hi(Bi,ri),Bi=hi(Bi,Nr);let oo=hr||Pr?Di(Pt,Ya=>Ya!==hr&&Ya!==Pr):Pt;Bi=Fn(Bi,oo),Pt=Ft(t.createNodeArray(Bi),H.members)}return{members:Pt,prologue:un}}function fe(){let{weakSetName:H}=Li().data;B.assert(H,"weakSetName should be set in private identifier environment"),Vi().push(t.createAssignment(H,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function Wt(H,Ze){if(H=pt(H,we,Ol),!Ee?.data||!(Ee.data.facts&16))return H;let Pt=J0(Ze),ri=!!(Pt&&Cu(Pt.expression).kind!==106),un=Ql(H?H.parameters:void 0,we,e),Nr=Qe(Ze,H,ri);return Nr?H?(B.assert(un),t.updateConstructorDeclaration(H,void 0,un,Nr)):Kf(cr(Ft(t.createConstructorDeclaration(void 0,un??[],Nr),H||Ze),H)):H}function tt(H,Ze,Pt,ri,un,Nr,Bi){let hr=ri[un],Pr=Ze[hr];if(Fn(H,mn(Ze,we,_o,Pt,hr-Pt)),Pt=hr+1,vE(Pr)){let oo=[];tt(oo,Pr.tryBlock.statements,0,ri,un+1,Nr,Bi);let Ya=t.createNodeArray(oo);Ft(Ya,Pr.tryBlock.statements),H.push(t.updateTryStatement(Pr,t.updateBlock(Pr.tryBlock,oo),pt(Pr.catchClause,we,mT),pt(Pr.finallyBlock,we,Ds)))}else{for(Fn(H,mn(Ze,we,_o,hr,1));Pt!!ku.initializer||xo(ku.name)||G0(ku)));let Bi=mt(H),hr=Lt(Nr)||Lt(Bi);if(!Ze&&!hr)return Rm(void 0,we,e);p();let Pr=!Ze&&Pt,oo=0,Ya=[],ml=[],Au=t.createThis();if(li(ml,Bi,Au),Ze){let ku=Di(un,Lu=>Wp(El(Lu),Ze)),hl=Di(Nr,Lu=>!Wp(El(Lu),Ze));ei(ml,ku,Au),ei(ml,hl,Au)}else ei(ml,Nr,Au);if(Ze?.body){oo=t.copyPrologue(Ze.body.statements,Ya,!1,we);let ku=gU(Ze.body.statements,oo);if(ku.length)tt(Ya,Ze.body.statements,oo,ku,0,ml,Ze);else{for(;oo=Ya.length?Ze.body.multiLine??Ya.length>0:Ya.length>0;return Ft(t.createBlock(Ft(t.createNodeArray(Ya),((ri=Ze?.body)==null?void 0:ri.statements)??H.members),Pu),Ze?.body)}function ei(H,Ze,Pt){for(let ri of Ze){if(ia(ri)&&!z)continue;let un=In(ri,Pt);un&&H.push(un)}}function In(H,Ze){let Pt=Yl(H)?Gr(H,ge,H):_n(H,Ze);if(!Pt)return;let ri=t.createExpressionStatement(Pt);cr(ri,H),Y0(ri,ja(H)&3072),ud(ri,H);let un=El(H);return To(un)?(Fa(ri,un),OR(ri)):Fa(ri,X0(H)),fk(Pt,void 0),hN(Pt,void 0),G0(un)&&Y0(ri,3072),ri}function Ji(H,Ze){let Pt=[];for(let ri of H){let un=Yl(ri)?Gr(ri,ge,ri):Gr(ri,()=>_n(ri,Ze),void 0);un&&(Kf(un),cr(un,ri),Y0(un,ja(ri)&3072),Fa(un,X0(ri)),ud(un,ri),Pt.push(un))}return Pt}function _n(H,Ze){var Pt;let ri=Re,un=Dt(H,Ze);return un&&cd(H)&&((Pt=Ee?.data)!=null&&Pt.facts)&&(cr(un,H),Y0(un,4),Fa(un,lS(H.name)),ve.set(El(H),Ee)),Re=ri,un}function Dt(H,Ze){let Pt=!T;Hp(H,He)&&(H=Gp(e,H));let ri=G0(H)?t.getGeneratedPrivateNameForNode(H.name):Ma(H.name)&&!sy(H.name.expression)?t.updateComputedPropertyName(H.name,t.getGeneratedNameForNode(H.name)):H.name;if(cd(H)&&(Re=H),xo(ri)&&nn(H)){let Bi=ka(ri);if(Bi)return Bi.kind==="f"?Bi.isStatic?NIt(t,Bi.variableName,pt(H.initializer,we,Mt)):AIt(t,Ze,pt(H.initializer,we,Mt),Bi.brandCheckIdentifier):void 0;B.fail("Undeclared private name for property declaration.")}if((xo(ri)||cd(H))&&!H.initializer)return;let un=El(H);if(Ar(un,64))return;let Nr=pt(H.initializer,we,Mt);if(Wp(un,un.parent)&&et(ri)){let Bi=t.cloneNode(ri);Nr?(O_(Nr)&&$R(Nr.expression)&&IO(Nr.expression.left,"___runInitializers")&&TN(Nr.expression.right)&&Z_(Nr.expression.right.expression)&&(Nr=Nr.expression.left),Nr=t.inlineExpressions([Nr,Bi])):Nr=Bi,Hn(ri,3168),Fa(Bi,un.name),Hn(Bi,3072)}else Nr??(Nr=t.createVoidZero());if(Pt||xo(ri)){let Bi=wE(t,Ze,ri,ri);return Y0(Bi,1024),t.createAssignment(Bi,Nr)}else{let Bi=Ma(ri)?ri.expression:et(ri)?t.createStringLiteral(So(ri.escapedText)):ri,hr=t.createPropertyDescriptor({value:Nr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(Ze,Bi,hr)}}function Nt(){ae&1||(ae|=1,e.enableSubstitution(80),Ce=[])}function ti(){ae&2||(ae|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function li(H,Ze,Pt){if(!z||!Lt(Ze))return;let{weakSetName:ri}=Li().data;B.assert(ri,"weakSetName should be set in private identifier environment"),H.push(t.createExpressionStatement(PIt(t,Pt,ri)))}function wi(H){return lr(H)?t.updatePropertyAccessExpression(H,t.createVoidZero(),H.name):t.updateElementAccessExpression(H,t.createVoidZero(),pt(H.argumentExpression,we,Mt))}function Si(H,Ze){if(Ma(H)){let Pt=BH(H),ri=pt(H.expression,we,Mt),un=xg(ri),Nr=sy(un);if(!(!!Pt||Hd(un)&&yl(un.left))&&!Nr&&Ze){let hr=t.getGeneratedNameForNode(H);return g.hasNodeCheckFlag(H,32768)?y(hr):a(hr),t.createAssignment(hr,ri)}return Nr||et(un)?void 0:ri}}function Rn(){Ee={previous:Ee,data:void 0}}function gi(){Ee=Ee?.previous}function Xi(){return B.assert(Ee),Ee.data??(Ee.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Li(){return B.assert(Ee),Ee.privateEnv??(Ee.privateEnv=c1e({className:void 0,weakSetName:void 0}))}function Vi(){return he??(he=[])}function ai(H,Ze,Pt,ri,un,Nr,Bi){K_(H)?Zl(H,Ze,Pt,ri,un,Nr,Bi):ls(H)?Cs(H,Ze,Pt,ri,un,Nr,Bi):pu(H)?Ss(H,Ze,Pt,ri,un,Nr,Bi):Lm(H)?ks(H,Ze,Pt,ri,un,Nr,Bi):qp(H)&&hc(H,Ze,Pt,ri,un,Nr,Bi)}function Cs(H,Ze,Pt,ri,un,Nr,Bi){if(un){let hr=B.checkDefined(Pt.classThis??Pt.classConstructor,"classConstructor should be set in private identifier environment"),Pr=fo(Ze);IE(ri,Ze,{kind:"f",isStatic:!0,brandCheckIdentifier:hr,variableName:Pr,isValid:Nr})}else{let hr=fo(Ze);IE(ri,Ze,{kind:"f",isStatic:!1,brandCheckIdentifier:hr,isValid:Nr}),Vi().push(t.createAssignment(hr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Ss(H,Ze,Pt,ri,un,Nr,Bi){let hr=fo(Ze),Pr=un?B.checkDefined(Pt.classThis??Pt.classConstructor,"classConstructor should be set in private identifier environment"):B.checkDefined(ri.data.weakSetName,"weakSetName should be set in private identifier environment");IE(ri,Ze,{kind:"m",methodName:hr,brandCheckIdentifier:Pr,isStatic:un,isValid:Nr})}function ks(H,Ze,Pt,ri,un,Nr,Bi){let hr=fo(Ze,"_get"),Pr=un?B.checkDefined(Pt.classThis??Pt.classConstructor,"classConstructor should be set in private identifier environment"):B.checkDefined(ri.data.weakSetName,"weakSetName should be set in private identifier environment");Bi?.kind==="a"&&Bi.isStatic===un&&!Bi.getterName?Bi.getterName=hr:IE(ri,Ze,{kind:"a",getterName:hr,setterName:void 0,brandCheckIdentifier:Pr,isStatic:un,isValid:Nr})}function hc(H,Ze,Pt,ri,un,Nr,Bi){let hr=fo(Ze,"_set"),Pr=un?B.checkDefined(Pt.classThis??Pt.classConstructor,"classConstructor should be set in private identifier environment"):B.checkDefined(ri.data.weakSetName,"weakSetName should be set in private identifier environment");Bi?.kind==="a"&&Bi.isStatic===un&&!Bi.setterName?Bi.setterName=hr:IE(ri,Ze,{kind:"a",getterName:void 0,setterName:hr,brandCheckIdentifier:Pr,isStatic:un,isValid:Nr})}function Zl(H,Ze,Pt,ri,un,Nr,Bi){let hr=fo(Ze,"_get"),Pr=fo(Ze,"_set"),oo=un?B.checkDefined(Pt.classThis??Pt.classConstructor,"classConstructor should be set in private identifier environment"):B.checkDefined(ri.data.weakSetName,"weakSetName should be set in private identifier environment");IE(ri,Ze,{kind:"a",getterName:hr,setterName:Pr,brandCheckIdentifier:oo,isStatic:un,isValid:Nr})}function Uu(H,Ze,Pt){let ri=Xi(),un=Li(),Nr=mie(un,Ze),Bi=cd(H),hr=!LIt(Ze)&&Nr===void 0;Pt(H,Ze,ri,un,Bi,hr,Nr)}function Fc(H,Ze,Pt){let{className:ri}=Li().data,un=ri?{prefix:"_",node:ri,suffix:"_"}:"_",Nr=typeof H=="object"?t.getGeneratedNameForNode(H,24,un,Pt):typeof H=="string"?t.createUniqueName(H,16,un,Pt):t.createTempVariable(void 0,!0,un,Pt);return g.hasNodeCheckFlag(Ze,32768)?y(Nr):a(Nr),Nr}function fo(H,Ze){let Pt=V3(H);return Fc(Pt?.substring(1)??H,H,Ze)}function ka(H){let Ze=l1e(Ee,H);return Ze?.kind==="untransformed"?void 0:Ze}function tf(H){let Ze=t.getGeneratedNameForNode(H),Pt=ka(H.name);if(!Pt)return Qi(H,we,e);let ri=H.expression;return(FM(H)||mp(H)||!yT(H.expression))&&(ri=t.createTempVariable(a,!0),Vi().push(t.createBinaryExpression(ri,64,pt(H.expression,we,Mt)))),t.createAssignmentTargetWrapper(Ze,It(Pt,ri,Ze,64))}function Ts(H){if(ba(H)||yf(H))return pi(H);if(FP(H))return tf(H);if($&&Re&&mp(H)&&c8(Re)&&Ee?.data){let{classConstructor:Ze,superClassReference:Pt,facts:ri}=Ee.data;if(ri&1)return wi(H);if(Ze&&Pt){let un=nl(H)?pt(H.argumentExpression,we,Mt):et(H.name)?t.createStringLiteralFromNode(H.name):void 0;if(un){let Nr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Nr,t.createReflectSetCall(Pt,un,Nr,Ze))}}}return Qi(H,we,e)}function e_(H){if(Hp(H,He)&&(H=Gp(e,H)),Hd(H,!0)){let Ze=Ts(H.left),Pt=pt(H.right,we,Mt);return t.updateBinaryExpression(H,Ze,H.operatorToken,Pt)}return Ts(H)}function id(H){if(X_(H.expression)){let Ze=Ts(H.expression);return t.updateSpreadElement(H,Ze)}return Qi(H,we,e)}function Ko(H){if(hM(H)){if(fh(H))return id(H);if(!Ed(H))return e_(H)}return Qi(H,we,e)}function nc(H){let Ze=pt(H.name,we,zu);if(Hd(H.initializer,!0)){let Pt=e_(H.initializer);return t.updatePropertyAssignment(H,Ze,Pt)}if(X_(H.initializer)){let Pt=Ts(H.initializer);return t.updatePropertyAssignment(H,Ze,Pt)}return Qi(H,we,e)}function rc(H){return Hp(H,He)&&(H=Gp(e,H)),Qi(H,we,e)}function Bo(H){if(X_(H.expression)){let Ze=Ts(H.expression);return t.updateSpreadAssignment(H,Ze)}return Qi(H,we,e)}function Ua(H){return B.assertNode(H,mM),Qv(H)?Bo(H):jf(H)?rc(H):ed(H)?nc(H):Qi(H,we,e)}function pi(H){return yf(H)?t.updateArrayLiteralExpression(H,mn(H.elements,Ko,Mt)):t.updateObjectLiteralExpression(H,mn(H.properties,Ua,G1))}function Ac(H,Ze,Pt){let ri=El(Ze),un=ve.get(ri);if(un){let Nr=Ee,Bi=ke;Ee=un,ke=ie,ie=!Yl(ri)||!(Cg(ri)&32),_e(H,Ze,Pt),ie=ke,ke=Bi,Ee=Nr;return}switch(Ze.kind){case 218:if(rl(ri)||ja(Ze)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let Nr=Ee,Bi=ke;Ee=void 0,ke=ie,ie=!1,_e(H,Ze,Pt),ie=ke,ke=Bi,Ee=Nr;return}case 167:{let Nr=Ee,Bi=ie;Ee=Ee?.previous,ie=ke,_e(H,Ze,Pt),ie=Bi,Ee=Nr;return}}_e(H,Ze,Pt)}function Wf(H,Ze){return Ze=ne(H,Ze),H===1?nd(Ze):Ze}function nd(H){switch(H.kind){case 80:return Fl(H);case 110:return bp(H)}return H}function bp(H){if(ae&2&&Ee?.data&&!be.has(H)){let{facts:Ze,classConstructor:Pt,classThis:ri}=Ee.data,un=ie?ri??Pt:Pt;if(un)return Ft(cr(t.cloneNode(un),H),H);if(Ze&1&&A)return t.createParenthesizedExpression(t.createVoidZero())}return H}function Fl(H){return $l(H)||H}function $l(H){if(ae&1&&g.hasNodeCheckFlag(H,536870912)){let Ze=g.getReferencedValueDeclaration(H);if(Ze){let Pt=Ce[Ze.id];if(Pt){let ri=t.cloneNode(Pt);return Fa(ri,H),ud(ri,H),ri}}}}}function NIt(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function AIt(e,t,r,a){return e.createCallExpression(e.createPropertyAccessExpression(a,"set"),void 0,[t,r||e.createVoidZero()])}function PIt(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function LIt(e){return!Z2(e)&&e.escapedText==="#constructor"}function OIt(e){return xo(e.left)&&e.operatorToken.kind===103}function FIt(e){return ls(e)&&cd(e)}function c8(e){return Yl(e)||FIt(e)}function v1e(e){let{factory:t,hoistVariableDeclaration:r}=e,a=e.getEmitResolver(),u=e.getCompilerOptions(),f=Oa(u),p=Rf(u,"strictNullChecks"),y,g;return{serializeTypeNode:(he,ue)=>x(he,W,ue),serializeTypeOfNode:(he,ue,Ee)=>x(he,T,ue,Ee),serializeParameterTypesOfNode:(he,ue,Ee)=>x(he,A,ue,Ee),serializeReturnTypeOfNode:(he,ue)=>x(he,R,ue)};function x(he,ue,Ee,ve){let be=y,Se=g;y=he.currentLexicalScope,g=he.currentNameScope;let Re=ve===void 0?ue(Ee):ue(Ee,ve);return y=be,g=Se,Re}function k(he,ue){let Ee=Sx(ue.members,he);return Ee.setAccessor&&xge(Ee.setAccessor)||Ee.getAccessor&&Up(Ee.getAccessor)}function T(he,ue){switch(he.kind){case 172:case 169:return W(he.type);case 178:case 177:return W(k(he,ue));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function A(he,ue){let Ee=jr(he)?Hv(he):vs(he)&&jh(he.body)?he:void 0,ve=[];if(Ee){let be=P(Ee,ue),Se=be.length;for(let Re=0;Rebe.parent&&cT(be.parent)&&(be.parent.trueType===be||be.parent.falseType===be)))return t.createIdentifier("Object");let Ee=ne(he.typeName),ve=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(ve,Ee),"function"),void 0,ve,void 0,t.createIdentifier("Object"));case 1:return _e(he.typeName);case 2:return t.createVoidZero();case 4:return Ce("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return Ce("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return B.assertNever(ue)}}function te(he,ue){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(he),t.createStringLiteral("undefined")),ue)}function ne(he){if(he.kind===80){let ve=_e(he);return te(ve,ve)}if(he.left.kind===80)return te(_e(he.left),_e(he));let ue=ne(he.left),Ee=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(ue.left,t.createStrictInequality(t.createAssignment(Ee,ue.right),t.createVoidZero())),t.createPropertyAccessExpression(Ee,he.right))}function _e(he){switch(he.kind){case 80:let ue=ic(Ft(Sk.cloneNode(he),he),he.parent);return ue.original=void 0,ic(ue,_s(y)),ue;case 166:return ce(he)}}function ce(he){return t.createPropertyAccessExpression(_e(he.left),he.right)}function ae(he){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(he),"function"),void 0,t.createIdentifier(he),void 0,t.createIdentifier("Object"))}function Ce(he,ue){return fXR(si)||Td(si)?void 0:si,vl),an=X0(nt),ni=Tt(nt),Ci=p<2?t.getInternalName(nt,!1,!0):t.getLocalName(nt,!1,!0),Sn=mn(nt.heritageClauses,T,$p),nn=mn(nt.members,T,Cd),Br=[];({members:nn,decorationStatements:Br}=z(nt,nn));let Gr=p>=9&&!!ni&&Lt(nn,si=>ls(si)&&Ar(si,256)||Yl(si));Gr&&(nn=Ft(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(ni,t.createThis()))])),...nn]),nn));let is=t.createClassExpression(bn,At&&yl(At)?void 0:At,void 0,Sn,nn);cr(is,nt),Ft(is,an);let Ao=ni&&!Gr?t.createAssignment(ni,is):is,Rr=t.createVariableDeclaration(Ci,void 0,void 0,Ao);cr(Rr,nt);let xn=t.createVariableDeclarationList([Rr],1),Eo=t.createVariableStatement(void 0,xn);cr(Eo,nt),Ft(Eo,an),ud(Eo,nt);let it=[Eo];if(Fn(it,Br),ke(it,nt),ci)if(Fi){let si=t.createExportDefault(Ci);it.push(si)}else{let si=t.createExternalModuleExport(t.getDeclarationName(nt));it.push(si)}return it}function $(nt){return t.updateClassExpression(nt,mn(nt.modifiers,k,xa),nt.name,void 0,mn(nt.heritageClauses,T,$p),mn(nt.members,T,Cd))}function te(nt){return t.updateConstructorDeclaration(nt,mn(nt.modifiers,k,xa),mn(nt.parameters,T,To),pt(nt.body,T,Ds))}function ne(nt,At){return nt!==At&&(ud(nt,At),Fa(nt,X0(At))),nt}function _e(nt){return ne(t.updateMethodDeclaration(nt,mn(nt.modifiers,k,xa),nt.asteriskToken,B.checkDefined(pt(nt.name,T,zu)),void 0,void 0,mn(nt.parameters,T,To),void 0,pt(nt.body,T,Ds)),nt)}function ce(nt){return ne(t.updateGetAccessorDeclaration(nt,mn(nt.modifiers,k,xa),B.checkDefined(pt(nt.name,T,zu)),mn(nt.parameters,T,To),void 0,pt(nt.body,T,Ds)),nt)}function ae(nt){return ne(t.updateSetAccessorDeclaration(nt,mn(nt.modifiers,k,xa),B.checkDefined(pt(nt.name,T,zu)),mn(nt.parameters,T,To),pt(nt.body,T,Ds)),nt)}function Ce(nt){if(!(nt.flags&33554432||Ar(nt,128)))return ne(t.updatePropertyDeclaration(nt,mn(nt.modifiers,k,xa),B.checkDefined(pt(nt.name,T,zu)),void 0,void 0,pt(nt.initializer,T,Mt)),nt)}function he(nt){let At=t.updateParameterDeclaration(nt,Wye(t,nt.modifiers),nt.dotDotDotToken,B.checkDefined(pt(nt.name,T,eE)),void 0,void 0,pt(nt.initializer,T,Mt));return At!==nt&&(ud(At,nt),Ft(At,X0(nt)),Fa(At,X0(nt)),Hn(At.name,64)),At}function ue(nt){return IO(nt.expression,"___metadata")}function Ee(nt){if(!nt)return;let{false:At,true:ci}=N0(nt.decorators,ue),Fi=[];return Fn(Fi,_i(At,Oe)),Fn(Fi,vo(nt.parameters,we)),Fn(Fi,_i(ci,Oe)),Fi}function ve(nt,At,ci){Fn(nt,_i(Re(At,ci),Fi=>t.createExpressionStatement(Fi)))}function be(nt,At,ci){return BM(!0,nt,ci)&&At===ia(nt)}function Se(nt,At){return Di(nt.members,ci=>be(ci,At,nt))}function Re(nt,At){let ci=Se(nt,At),Fi;for(let bn of ci)Fi=hi(Fi,ie(nt,bn));return Fi}function ie(nt,At){let ci=vU(At,nt,!0),Fi=Ee(ci);if(!Fi)return;let bn=Ge(nt,At),an=Ae(At,!Ar(At,128)),ni=ls(At)&&!G0(At)?t.createVoidZero():t.createNull(),Ci=r().createDecorateHelper(Fi,bn,an,ni);return Hn(Ci,3072),Fa(Ci,X0(At)),Ci}function ke(nt,At){let ci=De(At);ci&&nt.push(cr(t.createExpressionStatement(ci),At))}function De(nt){let At=pie(nt),ci=Ee(At);if(!ci)return;let Fi=g&&g[R_(nt)],bn=p<2?t.getInternalName(nt,!1,!0):t.getDeclarationName(nt,!1,!0),an=r().createDecorateHelper(ci,bn),ni=t.createAssignment(bn,Fi?t.createAssignment(Fi,an):an);return Hn(ni,3072),Fa(ni,X0(nt)),ni}function Oe(nt){return B.checkDefined(pt(nt.expression,T,Mt))}function we(nt,At){let ci;if(nt){ci=[];for(let Fi of nt){let bn=r().createParamHelper(Oe(Fi),At);Ft(bn,Fi.expression),Hn(bn,3072),ci.push(bn)}}return ci}function Ae(nt,At){let ci=nt.name;return xo(ci)?t.createIdentifier(""):Ma(ci)?At&&!sy(ci.expression)?t.getGeneratedNameForNode(ci):ci.expression:et(ci)?t.createStringLiteral(mr(ci)):t.cloneNode(ci)}function Fe(){g||(e.enableSubstitution(80),g=[])}function Tt(nt){if(u.hasNodeCheckFlag(nt,262144)){Fe();let At=t.createUniqueName(nt.name&&!yl(nt.name)?mr(nt.name):"default");return g[R_(nt)]=At,a(At),At}}function Be(nt){return t.createPropertyAccessExpression(t.getDeclarationName(nt),"prototype")}function Ge(nt,At){return ia(At)?t.getDeclarationName(nt):Be(nt)}function Ke(nt,At){return At=y(nt,At),nt===1?Ue(At):At}function Ue(nt){switch(nt.kind){case 80:return gt(nt)}return nt}function gt(nt){return xt(nt)??nt}function xt(nt){if(g&&u.hasNodeCheckFlag(nt,536870912)){let At=u.getReferencedValueDeclaration(nt);if(At){let ci=g[At.id];if(ci){let Fi=t.cloneNode(ci);return Fa(Fi,nt),ud(Fi,nt),Fi}}}}}function S1e(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:a,endLexicalEnvironment:u,hoistVariableDeclaration:f}=e,p=Oa(e.getCompilerOptions()),y,g,x,k,T,A;return n0(e,P);function P(se){y=void 0,A=!1;let rt=Qi(se,ae,e);return ib(rt,e.readEmitHelpers()),A&&(mN(rt,32),A=!1),rt}function R(){switch(g=void 0,x=void 0,k=void 0,y?.kind){case"class":g=y.classInfo;break;case"class-element":g=y.next.classInfo,x=y.classThis,k=y.classSuper;break;case"name":let se=y.next.next.next;se?.kind==="class-element"&&(g=se.next.classInfo,x=se.classThis,k=se.classSuper);break}}function W(se){y={kind:"class",next:y,classInfo:se,savedPendingExpressions:T},T=void 0,R()}function z(){B.assert(y?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${y?.kind}' instead.`),T=y.savedPendingExpressions,y=y.next,R()}function q(se){var rt,fe;B.assert(y?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${y?.kind}' instead.`),y={kind:"class-element",next:y},(Yl(se)||ls(se)&&cd(se))&&(y.classThis=(rt=y.next.classInfo)==null?void 0:rt.classThis,y.classSuper=(fe=y.next.classInfo)==null?void 0:fe.classSuper),R()}function G(){var se;B.assert(y?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${y?.kind}' instead.`),B.assert(((se=y.next)==null?void 0:se.kind)==="class","Incorrect value for top.next.kind.",()=>{var rt;return`Expected top.next.kind to be 'class' but got '${(rt=y.next)==null?void 0:rt.kind}' instead.`}),y=y.next,R()}function $(){B.assert(y?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${y?.kind}' instead.`),y={kind:"name",next:y},R()}function te(){B.assert(y?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${y?.kind}' instead.`),y=y.next,R()}function ne(){y?.kind==="other"?(B.assert(!T),y.depth++):(y={kind:"other",next:y,depth:0,savedPendingExpressions:T},T=void 0,R())}function _e(){B.assert(y?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${y?.kind}' instead.`),y.depth>0?(B.assert(!T),y.depth--):(T=y.savedPendingExpressions,y=y.next,R())}function ce(se){return!!(se.transformFlags&33554432)||!!x&&!!(se.transformFlags&16384)||!!x&&!!k&&!!(se.transformFlags&134217728)}function ae(se){if(!ce(se))return se;switch(se.kind){case 170:return B.fail("Use `modifierVisitor` instead.");case 263:return De(se);case 231:return Oe(se);case 176:case 172:case 175:return B.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return an(se);case 226:return Br(se,!1);case 303:return Eo(se);case 260:return it(se);case 208:return si(se);case 277:return ht(se);case 110:return nt(se);case 248:return Sn(se);case 244:return nn(se);case 355:return is(se,!1);case 217:return Jt(se,!1);case 354:return ye(se,!1);case 213:return At(se);case 215:return ci(se);case 224:case 225:return Gr(se,!1);case 211:return Fi(se);case 212:return bn(se);case 167:return xn(se);case 174:case 178:case 177:case 218:case 262:{ne();let rt=Qi(se,Ce,e);return _e(),rt}default:return Qi(se,Ce,e)}}function Ce(se){switch(se.kind){case 170:return;default:return ae(se)}}function he(se){switch(se.kind){case 170:return;default:return se}}function ue(se){switch(se.kind){case 176:return Fe(se);case 174:return Ge(se);case 177:return Ke(se);case 178:return Ue(se);case 172:return xt(se);case 175:return gt(se);default:return ae(se)}}function Ee(se){switch(se.kind){case 224:case 225:return Gr(se,!0);case 226:return Br(se,!0);case 355:return is(se,!0);case 217:return Jt(se,!0);default:return ae(se)}}function ve(se){let rt=se.name&&et(se.name)&&!yl(se.name)?mr(se.name):se.name&&xo(se.name)&&!yl(se.name)?mr(se.name).slice(1):se.name&&Da(se.name)&&pp(se.name.text,99)?se.name.text:jr(se)?"class":"member";return Yb(se)&&(rt=`get_${rt}`),z0(se)&&(rt=`set_${rt}`),se.name&&xo(se.name)&&(rt=`private_${rt}`),ia(se)&&(rt=`static_${rt}`),"_"+rt}function be(se,rt){return t.createUniqueName(`${ve(se)}_${rt}`,24)}function Se(se,rt){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(se,void 0,void 0,rt)],1))}function Re(se){let rt=t.createUniqueName("_metadata",48),fe,Wt,tt=!1,Qe=!1,ei=!1,In,Ji,_n;if($P(!1,se)){let Dt=Lt(se.members,Nt=>(u_(Nt)||K_(Nt))&&cd(Nt));In=t.createUniqueName("_classThis",Dt?24:48)}for(let Dt of se.members){if(BI(Dt)&&BM(!1,Dt,se))if(cd(Dt)){if(!Wt){Wt=t.createUniqueName("_staticExtraInitializers",48);let Nt=r().createRunInitializersHelper(In??t.createThis(),Wt);Fa(Nt,se.name??Z1(se)),Ji??(Ji=[]),Ji.push(Nt)}}else{if(!fe){fe=t.createUniqueName("_instanceExtraInitializers",48);let Nt=r().createRunInitializersHelper(t.createThis(),fe);Fa(Nt,se.name??Z1(se)),_n??(_n=[]),_n.push(Nt)}fe??(fe=t.createUniqueName("_instanceExtraInitializers",48))}if(Yl(Dt)?zN(Dt)||(tt=!0):ls(Dt)&&(cd(Dt)?tt||(tt=!!Dt.initializer||Pm(Dt)):Qe||(Qe=!QQ(Dt))),(u_(Dt)||K_(Dt))&&cd(Dt)&&(ei=!0),Wt&&fe&&tt&&Qe&&ei)break}return{class:se,classThis:In,metadataReference:rt,instanceMethodExtraInitializersName:fe,staticMethodExtraInitializersName:Wt,hasStaticInitializers:tt,hasNonAmbientInstanceFields:Qe,hasStaticPrivateClassElements:ei,pendingStaticInitializers:Ji,pendingInstanceInitializers:_n}}function ie(se){a(),!gie(se)&&iS(!1,se)&&(se=xU(e,se,t.createStringLiteral("")));let rt=t.getLocalName(se,!1,!1,!0),fe=Re(se),Wt=[],tt,Qe,ei,In,Ji=!1,_n=ut(pie(se));_n&&(fe.classDecoratorsName=t.createUniqueName("_classDecorators",48),fe.classDescriptorName=t.createUniqueName("_classDescriptor",48),fe.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),B.assertIsDefined(fe.classThis),Wt.push(Se(fe.classDecoratorsName,t.createArrayLiteralExpression(_n)),Se(fe.classDescriptorName),Se(fe.classExtraInitializersName,t.createArrayLiteralExpression()),Se(fe.classThis)),fe.hasStaticPrivateClassElements&&(Ji=!0,A=!0));let Dt=nR(se.heritageClauses,96),Nt=Dt&&mc(Dt.types),ti=Nt&&pt(Nt.expression,ae,Mt);if(ti){fe.classSuper=t.createUniqueName("_classSuper",48);let Li=Cu(ti),Vi=Qu(Li)&&!Li.name||Yc(Li)&&!Li.name||rl(Li)?t.createComma(t.createNumericLiteral(0),ti):ti;Wt.push(Se(fe.classSuper,Vi));let ai=t.updateExpressionWithTypeArguments(Nt,fe.classSuper,void 0),Cs=t.updateHeritageClause(Dt,[ai]);In=t.createNodeArray([Cs])}let li=fe.classThis??t.createThis();W(fe),tt=hi(tt,Y(fe.metadataReference,fe.classSuper));let wi=se.members;if(wi=mn(wi,Li=>Ol(Li)?Li:ue(Li),Cd),wi=mn(wi,Li=>Ol(Li)?ue(Li):Li,Cd),T){let Li;for(let Vi of T){Vi=pt(Vi,function Cs(Ss){if(!(Ss.transformFlags&16384))return Ss;switch(Ss.kind){case 110:return Li||(Li=t.createUniqueName("_outerThis",16),Wt.unshift(Se(Li,t.createThis()))),Li;default:return Qi(Ss,Cs,e)}},Mt);let ai=t.createExpressionStatement(Vi);tt=hi(tt,ai)}T=void 0}if(z(),Lt(fe.pendingInstanceInitializers)&&!Hv(se)){let Li=we(se,fe);if(Li){let Vi=J0(se),ai=!!(Vi&&Cu(Vi.expression).kind!==106),Cs=[];if(ai){let ks=t.createSpreadElement(t.createIdentifier("arguments")),hc=t.createCallExpression(t.createSuper(),void 0,[ks]);Cs.push(t.createExpressionStatement(hc))}Fn(Cs,Li);let Ss=t.createBlock(Cs,!0);ei=t.createConstructorDeclaration(void 0,[],Ss)}}if(fe.staticMethodExtraInitializersName&&Wt.push(Se(fe.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),fe.instanceMethodExtraInitializersName&&Wt.push(Se(fe.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),fe.memberInfos&&Vd(fe.memberInfos,(Li,Vi)=>{ia(Vi)&&(Wt.push(Se(Li.memberDecoratorsName)),Li.memberInitializersName&&Wt.push(Se(Li.memberInitializersName,t.createArrayLiteralExpression())),Li.memberExtraInitializersName&&Wt.push(Se(Li.memberExtraInitializersName,t.createArrayLiteralExpression())),Li.memberDescriptorName&&Wt.push(Se(Li.memberDescriptorName)))}),fe.memberInfos&&Vd(fe.memberInfos,(Li,Vi)=>{ia(Vi)||(Wt.push(Se(Li.memberDecoratorsName)),Li.memberInitializersName&&Wt.push(Se(Li.memberInitializersName,t.createArrayLiteralExpression())),Li.memberExtraInitializersName&&Wt.push(Se(Li.memberExtraInitializersName,t.createArrayLiteralExpression())),Li.memberDescriptorName&&Wt.push(Se(Li.memberDescriptorName)))}),tt=Fn(tt,fe.staticNonFieldDecorationStatements),tt=Fn(tt,fe.nonStaticNonFieldDecorationStatements),tt=Fn(tt,fe.staticFieldDecorationStatements),tt=Fn(tt,fe.nonStaticFieldDecorationStatements),fe.classDescriptorName&&fe.classDecoratorsName&&fe.classExtraInitializersName&&fe.classThis){tt??(tt=[]);let Li=t.createPropertyAssignment("value",li),Vi=t.createObjectLiteralExpression([Li]),ai=t.createAssignment(fe.classDescriptorName,Vi),Cs=t.createPropertyAccessExpression(li,"name"),Ss=r().createESDecorateHelper(t.createNull(),ai,fe.classDecoratorsName,{kind:"class",name:Cs,metadata:fe.metadataReference},t.createNull(),fe.classExtraInitializersName),ks=t.createExpressionStatement(Ss);Fa(ks,Z1(se)),tt.push(ks);let hc=t.createPropertyAccessExpression(fe.classDescriptorName,"value"),Zl=t.createAssignment(fe.classThis,hc),Uu=t.createAssignment(rt,Zl);tt.push(t.createExpressionStatement(Uu))}if(tt.push($e(li,fe.metadataReference)),Lt(fe.pendingStaticInitializers)){for(let Li of fe.pendingStaticInitializers){let Vi=t.createExpressionStatement(Li);Fa(Vi,lS(Li)),Qe=hi(Qe,Vi)}fe.pendingStaticInitializers=void 0}if(fe.classExtraInitializersName){let Li=r().createRunInitializersHelper(li,fe.classExtraInitializersName),Vi=t.createExpressionStatement(Li);Fa(Vi,se.name??Z1(se)),Qe=hi(Qe,Vi)}tt&&Qe&&!fe.hasStaticInitializers&&(Fn(tt,Qe),Qe=void 0);let Si=tt&&t.createClassStaticBlockDeclaration(t.createBlock(tt,!0));Si&&Ji&&FR(Si,32);let Rn=Qe&&t.createClassStaticBlockDeclaration(t.createBlock(Qe,!0));if(Si||ei||Rn){let Li=[],Vi=wi.findIndex(zN);Si?(Fn(Li,wi,0,Vi+1),Li.push(Si),Fn(Li,wi,Vi+1)):Fn(Li,wi),ei&&Li.push(ei),Rn&&Li.push(Rn),wi=Ft(t.createNodeArray(Li),wi)}let gi=u(),Xi;if(_n){Xi=t.createClassExpression(void 0,void 0,void 0,In,wi),fe.classThis&&(Xi=_1e(t,Xi,fe.classThis));let Li=t.createVariableDeclaration(rt,void 0,void 0,Xi),Vi=t.createVariableDeclarationList([Li]),ai=fe.classThis?t.createAssignment(rt,fe.classThis):rt;Wt.push(t.createVariableStatement(void 0,Vi),t.createReturnStatement(ai))}else Xi=t.createClassExpression(void 0,se.name,void 0,In,wi),Wt.push(t.createReturnStatement(Xi));if(Ji){mN(Xi,32);for(let Li of Xi.members)(u_(Li)||K_(Li))&&cd(Li)&&mN(Li,32)}return cr(Xi,se),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(Wt,gi))}function ke(se){return iS(!1,se)||J3(!1,se)}function De(se){if(ke(se)){let rt=[],fe=El(se,jr)??se,Wt=fe.name?t.createStringLiteralFromNode(fe.name):t.createStringLiteral("default"),tt=Ar(se,32),Qe=Ar(se,2048);if(se.name||(se=xU(e,se,Wt)),tt&&Qe){let ei=ie(se);if(se.name){let In=t.createVariableDeclaration(t.getLocalName(se),void 0,void 0,ei);cr(In,se);let Ji=t.createVariableDeclarationList([In],1),_n=t.createVariableStatement(void 0,Ji);rt.push(_n);let Dt=t.createExportDefault(t.getDeclarationName(se));cr(Dt,se),ud(Dt,Q0(se)),Fa(Dt,Z1(se)),rt.push(Dt)}else{let In=t.createExportDefault(ei);cr(In,se),ud(In,Q0(se)),Fa(In,Z1(se)),rt.push(In)}}else{B.assertIsDefined(se.name,"A class declaration that is not a default export must have a name.");let ei=ie(se),In=tt?li=>bN(li)?void 0:he(li):he,Ji=mn(se.modifiers,In,xa),_n=t.getLocalName(se,!1,!0),Dt=t.createVariableDeclaration(_n,void 0,void 0,ei);cr(Dt,se);let Nt=t.createVariableDeclarationList([Dt],1),ti=t.createVariableStatement(Ji,Nt);if(cr(ti,se),ud(ti,Q0(se)),rt.push(ti),tt){let li=t.createExternalModuleExport(_n);cr(li,se),rt.push(li)}}return pg(rt)}else{let rt=mn(se.modifiers,he,xa),fe=mn(se.heritageClauses,ae,$p);W(void 0);let Wt=mn(se.members,ue,Cd);return z(),t.updateClassDeclaration(se,rt,se.name,void 0,fe,Wt)}}function Oe(se){if(ke(se)){let rt=ie(se);return cr(rt,se),rt}else{let rt=mn(se.modifiers,he,xa),fe=mn(se.heritageClauses,ae,$p);W(void 0);let Wt=mn(se.members,ue,Cd);return z(),t.updateClassExpression(se,rt,se.name,void 0,fe,Wt)}}function we(se,rt){if(Lt(rt.pendingInstanceInitializers)){let fe=[];return fe.push(t.createExpressionStatement(t.inlineExpressions(rt.pendingInstanceInitializers))),rt.pendingInstanceInitializers=void 0,fe}}function Ae(se,rt,fe,Wt,tt,Qe){let ei=Wt[tt],In=rt[ei];if(Fn(se,mn(rt,ae,_o,fe,ei-fe)),vE(In)){let Ji=[];Ae(Ji,In.tryBlock.statements,0,Wt,tt+1,Qe);let _n=t.createNodeArray(Ji);Ft(_n,In.tryBlock.statements),se.push(t.updateTryStatement(In,t.updateBlock(In.tryBlock,Ji),pt(In.catchClause,ae,mT),pt(In.finallyBlock,ae,Ds)))}else Fn(se,mn(rt,ae,_o,ei,1)),Fn(se,Qe);Fn(se,mn(rt,ae,_o,ei+1))}function Fe(se){q(se);let rt=mn(se.modifiers,he,xa),fe=mn(se.parameters,ae,To),Wt;if(se.body&&g){let tt=we(g.class,g);if(tt){let Qe=[],ei=t.copyPrologue(se.body.statements,Qe,!1,ae),In=gU(se.body.statements,ei);In.length>0?Ae(Qe,se.body.statements,ei,In,0,tt):(Fn(Qe,tt),Fn(Qe,mn(se.body.statements,ae,_o))),Wt=t.createBlock(Qe,!0),cr(Wt,se.body),Ft(Wt,se.body)}}return Wt??(Wt=pt(se.body,ae,Ds)),G(),t.updateConstructorDeclaration(se,rt,fe,Wt)}function Tt(se,rt){return se!==rt&&(ud(se,rt),Fa(se,Z1(rt))),se}function Be(se,rt,fe){let Wt,tt,Qe,ei,In,Ji;if(!rt){let Nt=mn(se.modifiers,he,xa);return $(),tt=Rr(se.name),te(),{modifiers:Nt,referencedName:Wt,name:tt,initializersName:Qe,descriptorName:Ji,thisArg:In}}let _n=ut(vU(se,rt.class,!1)),Dt=mn(se.modifiers,he,xa);if(_n){let Nt=be(se,"decorators"),ti=t.createArrayLiteralExpression(_n),li=t.createAssignment(Nt,ti),wi={memberDecoratorsName:Nt};rt.memberInfos??(rt.memberInfos=new Map),rt.memberInfos.set(se,wi),T??(T=[]),T.push(li);let Si=BI(se)||K_(se)?ia(se)?rt.staticNonFieldDecorationStatements??(rt.staticNonFieldDecorationStatements=[]):rt.nonStaticNonFieldDecorationStatements??(rt.nonStaticNonFieldDecorationStatements=[]):ls(se)&&!K_(se)?ia(se)?rt.staticFieldDecorationStatements??(rt.staticFieldDecorationStatements=[]):rt.nonStaticFieldDecorationStatements??(rt.nonStaticFieldDecorationStatements=[]):B.fail(),Rn=Lm(se)?"getter":qp(se)?"setter":pu(se)?"method":K_(se)?"accessor":ls(se)?"field":B.fail(),gi;if(et(se.name)||xo(se.name))gi={computed:!1,name:se.name};else if(q0(se.name))gi={computed:!0,name:t.createStringLiteralFromNode(se.name)};else{let Li=se.name.expression;q0(Li)&&!et(Li)?gi={computed:!0,name:t.createStringLiteralFromNode(Li)}:($(),{referencedName:Wt,name:tt}=Ao(se.name),gi={computed:!0,name:Wt},te())}let Xi={kind:Rn,name:gi,static:ia(se),private:xo(se.name),access:{get:ls(se)||Lm(se)||pu(se),set:ls(se)||qp(se)},metadata:rt.metadataReference};if(BI(se)){let Li=ia(se)?rt.staticMethodExtraInitializersName:rt.instanceMethodExtraInitializersName;B.assertIsDefined(Li);let Vi;u_(se)&&fe&&(Vi=fe(se,mn(Dt,Ss=>kr(Ss,AO),xa)),wi.memberDescriptorName=Ji=be(se,"descriptor"),Vi=t.createAssignment(Ji,Vi));let ai=r().createESDecorateHelper(t.createThis(),Vi??t.createNull(),Nt,Xi,t.createNull(),Li),Cs=t.createExpressionStatement(ai);Fa(Cs,Z1(se)),Si.push(Cs)}else if(ls(se)){Qe=wi.memberInitializersName??(wi.memberInitializersName=be(se,"initializers")),ei=wi.memberExtraInitializersName??(wi.memberExtraInitializersName=be(se,"extraInitializers")),ia(se)&&(In=rt.classThis);let Li;u_(se)&&G0(se)&&fe&&(Li=fe(se,void 0),wi.memberDescriptorName=Ji=be(se,"descriptor"),Li=t.createAssignment(Ji,Li));let Vi=r().createESDecorateHelper(K_(se)?t.createThis():t.createNull(),Li??t.createNull(),Nt,Xi,Qe,ei),ai=t.createExpressionStatement(Vi);Fa(ai,Z1(se)),Si.push(ai)}}return tt===void 0&&($(),tt=Rr(se.name),te()),!Lt(Dt)&&(pu(se)||ls(se))&&Hn(tt,1024),{modifiers:Dt,referencedName:Wt,name:tt,initializersName:Qe,extraInitializersName:ei,descriptorName:Ji,thisArg:In}}function Ge(se){q(se);let{modifiers:rt,name:fe,descriptorName:Wt}=Be(se,g,It);if(Wt)return G(),Tt(yi(rt,fe,Wt),se);{let tt=mn(se.parameters,ae,To),Qe=pt(se.body,ae,Ds);return G(),Tt(t.updateMethodDeclaration(se,rt,se.asteriskToken,fe,void 0,void 0,tt,void 0,Qe),se)}}function Ke(se){q(se);let{modifiers:rt,name:fe,descriptorName:Wt}=Be(se,g,mt);if(Wt)return G(),Tt(Ii(rt,fe,Wt),se);{let tt=mn(se.parameters,ae,To),Qe=pt(se.body,ae,Ds);return G(),Tt(t.updateGetAccessorDeclaration(se,rt,fe,tt,void 0,Qe),se)}}function Ue(se){q(se);let{modifiers:rt,name:fe,descriptorName:Wt}=Be(se,g,$t);if(Wt)return G(),Tt(nr(rt,fe,Wt),se);{let tt=mn(se.parameters,ae,To),Qe=pt(se.body,ae,Ds);return G(),Tt(t.updateSetAccessorDeclaration(se,rt,fe,tt,Qe),se)}}function gt(se){q(se);let rt;if(zN(se))rt=Qi(se,ae,e);else if(a8(se)){let fe=x;x=void 0,rt=Qi(se,ae,e),x=fe}else if(se=Qi(se,ae,e),rt=se,g&&(g.hasStaticInitializers=!0,Lt(g.pendingStaticInitializers))){let fe=[];for(let Qe of g.pendingStaticInitializers){let ei=t.createExpressionStatement(Qe);Fa(ei,lS(Qe)),fe.push(ei)}let Wt=t.createBlock(fe,!0);rt=[t.createClassStaticBlockDeclaration(Wt),rt],g.pendingStaticInitializers=void 0}return G(),rt}function xt(se){Hp(se,ni)&&(se=Gp(e,se,Ci(se.initializer))),q(se),B.assert(!QQ(se),"Not yet implemented.");let{modifiers:rt,name:fe,initializersName:Wt,extraInitializersName:tt,descriptorName:Qe,thisArg:ei}=Be(se,g,G0(se)?_t:void 0);a();let In=pt(se.initializer,ae,Mt);Wt&&(In=r().createRunInitializersHelper(ei??t.createThis(),Wt,In??t.createVoidZero())),ia(se)&&g&&In&&(g.hasStaticInitializers=!0);let Ji=u();if(Lt(Ji)&&(In=t.createImmediatelyInvokedArrowFunction([...Ji,t.createReturnStatement(In)])),g&&(ia(se)?(In=He(g,!0,In),tt&&(g.pendingStaticInitializers??(g.pendingStaticInitializers=[]),g.pendingStaticInitializers.push(r().createRunInitializersHelper(g.classThis??t.createThis(),tt)))):(In=He(g,!1,In),tt&&(g.pendingInstanceInitializers??(g.pendingInstanceInitializers=[]),g.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),tt))))),G(),G0(se)&&Qe){let _n=Q0(se),Dt=lS(se),Nt=se.name,ti=Nt,li=Nt;if(Ma(Nt)&&!sy(Nt.expression)){let Xi=BH(Nt);if(Xi)ti=t.updateComputedPropertyName(Nt,pt(Nt.expression,ae,Mt)),li=t.updateComputedPropertyName(Nt,Xi.left);else{let Li=t.createTempVariable(f);Fa(Li,Nt.expression);let Vi=pt(Nt.expression,ae,Mt),ai=t.createAssignment(Li,Vi);Fa(ai,Nt.expression),ti=t.updateComputedPropertyName(Nt,ai),li=t.updateComputedPropertyName(Nt,Li)}}let wi=mn(rt,Xi=>Xi.kind!==129?Xi:void 0,xa),Si=fte(t,se,wi,In);cr(Si,se),Hn(Si,3072),Fa(Si,Dt),Fa(Si.name,se.name);let Rn=Ii(wi,ti,Qe);cr(Rn,se),ud(Rn,_n),Fa(Rn,Dt);let gi=nr(wi,li,Qe);return cr(gi,se),Hn(gi,3072),Fa(gi,Dt),[Si,Rn,gi]}return Tt(t.updatePropertyDeclaration(se,rt,fe,void 0,void 0,In),se)}function nt(se){return x??se}function At(se){if(mp(se.expression)&&x){let rt=pt(se.expression,ae,Mt),fe=mn(se.arguments,ae,Mt),Wt=t.createFunctionCallCall(rt,x,fe);return cr(Wt,se),Ft(Wt,se),Wt}return Qi(se,ae,e)}function ci(se){if(mp(se.tag)&&x){let rt=pt(se.tag,ae,Mt),fe=t.createFunctionBindCall(rt,x,[]);cr(fe,se),Ft(fe,se);let Wt=pt(se.template,ae,jI);return t.updateTaggedTemplateExpression(se,fe,void 0,Wt)}return Qi(se,ae,e)}function Fi(se){if(mp(se)&&et(se.name)&&x&&k){let rt=t.createStringLiteralFromNode(se.name),fe=t.createReflectGetCall(k,rt,x);return cr(fe,se.expression),Ft(fe,se.expression),fe}return Qi(se,ae,e)}function bn(se){if(mp(se)&&x&&k){let rt=pt(se.argumentExpression,ae,Mt),fe=t.createReflectGetCall(k,rt,x);return cr(fe,se.expression),Ft(fe,se.expression),fe}return Qi(se,ae,e)}function an(se){Hp(se,ni)&&(se=Gp(e,se,Ci(se.initializer)));let rt=t.updateParameterDeclaration(se,void 0,se.dotDotDotToken,pt(se.name,ae,eE),void 0,void 0,pt(se.initializer,ae,Mt));return rt!==se&&(ud(rt,se),Ft(rt,X0(se)),Fa(rt,X0(se)),Hn(rt.name,64)),rt}function ni(se){return Qu(se)&&!se.name&&ke(se)}function Ci(se){let rt=Cu(se);return Qu(rt)&&!rt.name&&!iS(!1,rt)}function Sn(se){return t.updateForStatement(se,pt(se.initializer,Ee,rh),pt(se.condition,ae,Mt),pt(se.incrementor,Ee,Mt),M_(se.statement,ae,e))}function nn(se){return Qi(se,Ee,e)}function Br(se,rt){if(sS(se)){let fe=Ha(se.left),Wt=pt(se.right,ae,Mt);return t.updateBinaryExpression(se,fe,se.operatorToken,Wt)}if(Hd(se)){if(Hp(se,ni))return se=Gp(e,se,Ci(se.right)),Qi(se,ae,e);if(mp(se.left)&&x&&k){let fe=nl(se.left)?pt(se.left.argumentExpression,ae,Mt):et(se.left.name)?t.createStringLiteralFromNode(se.left.name):void 0;if(fe){let Wt=pt(se.right,ae,Mt);if(r8(se.operatorToken.kind)){let Qe=fe;sy(fe)||(Qe=t.createTempVariable(f),fe=t.createAssignment(Qe,fe));let ei=t.createReflectGetCall(k,Qe,x);cr(ei,se.left),Ft(ei,se.left),Wt=t.createBinaryExpression(ei,o8(se.operatorToken.kind),Wt),Ft(Wt,se)}let tt=rt?void 0:t.createTempVariable(f);return tt&&(Wt=t.createAssignment(tt,Wt),Ft(tt,se)),Wt=t.createReflectSetCall(k,fe,Wt,x),cr(Wt,se),Ft(Wt,se),tt&&(Wt=t.createComma(Wt,tt),Ft(Wt,se)),Wt}}}if(se.operatorToken.kind===28){let fe=pt(se.left,Ee,Mt),Wt=pt(se.right,rt?Ee:ae,Mt);return t.updateBinaryExpression(se,fe,se.operatorToken,Wt)}return Qi(se,ae,e)}function Gr(se,rt){if(se.operator===46||se.operator===47){let fe=fc(se.operand);if(mp(fe)&&x&&k){let Wt=nl(fe)?pt(fe.argumentExpression,ae,Mt):et(fe.name)?t.createStringLiteralFromNode(fe.name):void 0;if(Wt){let tt=Wt;sy(Wt)||(tt=t.createTempVariable(f),Wt=t.createAssignment(tt,Wt));let Qe=t.createReflectGetCall(k,tt,x);cr(Qe,se),Ft(Qe,se);let ei=rt?void 0:t.createTempVariable(f);return Qe=AH(t,se,Qe,f,ei),Qe=t.createReflectSetCall(k,Wt,Qe,x),cr(Qe,se),Ft(Qe,se),ei&&(Qe=t.createComma(Qe,ei),Ft(Qe,se)),Qe}}}return Qi(se,ae,e)}function is(se,rt){let fe=rt?m5(se.elements,Ee):m5(se.elements,ae,Ee);return t.updateCommaListExpression(se,fe)}function Ao(se){if(q0(se)||xo(se)){let Qe=t.createStringLiteralFromNode(se),ei=pt(se,ae,zu);return{referencedName:Qe,name:ei}}if(q0(se.expression)&&!et(se.expression)){let Qe=t.createStringLiteralFromNode(se.expression),ei=pt(se,ae,zu);return{referencedName:Qe,name:ei}}let rt=t.getGeneratedNameForNode(se);f(rt);let fe=r().createPropKeyHelper(pt(se.expression,ae,Mt)),Wt=t.createAssignment(rt,fe),tt=t.updateComputedPropertyName(se,ge(Wt));return{referencedName:rt,name:tt}}function Rr(se){return Ma(se)?xn(se):pt(se,ae,zu)}function xn(se){let rt=pt(se.expression,ae,Mt);return sy(rt)||(rt=ge(rt)),t.updateComputedPropertyName(se,rt)}function Eo(se){return Hp(se,ni)&&(se=Gp(e,se,Ci(se.initializer))),Qi(se,ae,e)}function it(se){return Hp(se,ni)&&(se=Gp(e,se,Ci(se.initializer))),Qi(se,ae,e)}function si(se){return Hp(se,ni)&&(se=Gp(e,se,Ci(se.initializer))),Qi(se,ae,e)}function dn(se){if(ba(se)||yf(se))return Ha(se);if(mp(se)&&x&&k){let rt=nl(se)?pt(se.argumentExpression,ae,Mt):et(se.name)?t.createStringLiteralFromNode(se.name):void 0;if(rt){let fe=t.createTempVariable(void 0),Wt=t.createAssignmentTargetWrapper(fe,t.createReflectSetCall(k,rt,fe,x));return cr(Wt,se),Ft(Wt,se),Wt}}return Qi(se,ae,e)}function Qn(se){if(Hd(se,!0)){Hp(se,ni)&&(se=Gp(e,se,Ci(se.right)));let rt=dn(se.left),fe=pt(se.right,ae,Mt);return t.updateBinaryExpression(se,rt,se.operatorToken,fe)}else return dn(se)}function Jr(se){if(X_(se.expression)){let rt=dn(se.expression);return t.updateSpreadElement(se,rt)}return Qi(se,ae,e)}function Dr(se){return B.assertNode(se,hM),fh(se)?Jr(se):Ed(se)?Qi(se,ae,e):Qn(se)}function Do(se){let rt=pt(se.name,ae,zu);if(Hd(se.initializer,!0)){let fe=Qn(se.initializer);return t.updatePropertyAssignment(se,rt,fe)}if(X_(se.initializer)){let fe=dn(se.initializer);return t.updatePropertyAssignment(se,rt,fe)}return Qi(se,ae,e)}function na(se){return Hp(se,ni)&&(se=Gp(e,se,Ci(se.objectAssignmentInitializer))),Qi(se,ae,e)}function aa(se){if(X_(se.expression)){let rt=dn(se.expression);return t.updateSpreadAssignment(se,rt)}return Qi(se,ae,e)}function Ai(se){return B.assertNode(se,mM),Qv(se)?aa(se):jf(se)?na(se):ed(se)?Do(se):Qi(se,ae,e)}function Ha(se){if(yf(se)){let rt=mn(se.elements,Dr,Mt);return t.updateArrayLiteralExpression(se,rt)}else{let rt=mn(se.properties,Ai,G1);return t.updateObjectLiteralExpression(se,rt)}}function ht(se){return Hp(se,ni)&&(se=Gp(e,se,Ci(se.expression))),Qi(se,ae,e)}function Jt(se,rt){let fe=rt?Ee:ae,Wt=pt(se.expression,fe,Mt);return t.updateParenthesizedExpression(se,Wt)}function ye(se,rt){let fe=rt?Ee:ae,Wt=pt(se.expression,fe,Mt);return t.updatePartiallyEmittedExpression(se,Wt)}function ct(se,rt){return Lt(se)&&(rt?O_(rt)?(se.push(rt.expression),rt=t.updateParenthesizedExpression(rt,t.inlineExpressions(se))):(se.push(rt),rt=t.inlineExpressions(se)):rt=t.inlineExpressions(se)),rt}function ge(se){let rt=ct(T,se);return B.assertIsDefined(rt),rt!==se&&(T=void 0),rt}function He(se,rt,fe){let Wt=ct(rt?se.pendingStaticInitializers:se.pendingInstanceInitializers,fe);return Wt!==fe&&(rt?se.pendingStaticInitializers=void 0:se.pendingInstanceInitializers=void 0),Wt}function ut(se){if(!se)return;let rt=[];return Fn(rt,_i(se.decorators,bt)),rt}function bt(se){let rt=pt(se.expression,ae,Mt);Hn(rt,3072);let fe=Cu(rt);if(il(fe)){let{target:Wt,thisArg:tt}=t.createCallBinding(rt,f,p,!0);return t.restoreOuterExpressions(rt,t.createFunctionBindCall(Wt,tt,[]))}return rt}function je(se,rt,fe,Wt,tt,Qe,ei){let In=t.createFunctionExpression(fe,Wt,void 0,void 0,Qe,void 0,ei??t.createBlock([]));cr(In,se),Fa(In,Z1(se)),Hn(In,3072);let Ji=tt==="get"||tt==="set"?tt:void 0,_n=t.createStringLiteralFromNode(rt,void 0),Dt=r().createSetFunctionNameHelper(In,_n,Ji),Nt=t.createPropertyAssignment(t.createIdentifier(tt),Dt);return cr(Nt,se),Fa(Nt,Z1(se)),Hn(Nt,3072),Nt}function It(se,rt){return t.createObjectLiteralExpression([je(se,se.name,rt,se.asteriskToken,"value",mn(se.parameters,ae,To),pt(se.body,ae,Ds))])}function mt(se,rt){return t.createObjectLiteralExpression([je(se,se.name,rt,void 0,"get",[],pt(se.body,ae,Ds))])}function $t(se,rt){return t.createObjectLiteralExpression([je(se,se.name,rt,void 0,"set",mn(se.parameters,ae,To),pt(se.body,ae,Ds))])}function _t(se,rt){return t.createObjectLiteralExpression([je(se,se.name,rt,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(se.name)))])),je(se,se.name,rt,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(se.name)),t.createIdentifier("value")))]))])}function yi(se,rt,fe){return se=mn(se,Wt=>SN(Wt)?Wt:void 0,xa),t.createGetAccessorDeclaration(se,rt,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(fe,t.createIdentifier("value")))]))}function Ii(se,rt,fe){return se=mn(se,Wt=>SN(Wt)?Wt:void 0,xa),t.createGetAccessorDeclaration(se,rt,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(fe,t.createIdentifier("get")),t.createThis(),[]))]))}function nr(se,rt,fe){return se=mn(se,Wt=>SN(Wt)?Wt:void 0,xa),t.createSetAccessorDeclaration(se,rt,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(fe,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Y(se,rt){let fe=t.createVariableDeclaration(se,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[rt?Bt(rt):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([fe],2))}function $e(se,rt){let fe=t.createObjectDefinePropertyCall(se,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:rt},!0));return Hn(t.createIfStatement(rt,t.createExpressionStatement(fe)),1)}function Bt(se){return t.createBinaryExpression(t.createElementAccessExpression(se,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function x1e(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:a,endLexicalEnvironment:u,hoistVariableDeclaration:f}=e,p=e.getEmitResolver(),y=e.getCompilerOptions(),g=Oa(y),x,k=0,T,A,P,R,W=[],z=0,q=e.onEmitNode,G=e.onSubstituteNode;return e.onEmitNode=nn,e.onSubstituteNode=Br,n0(e,$);function $(it){if(it.isDeclarationFile)return it;te(1,!1),te(2,!YQ(it,y));let si=Qi(it,ue,e);return ib(si,e.readEmitHelpers()),si}function te(it,si){z=si?z|it:z&~it}function ne(it){return(z&it)!==0}function _e(){return!ne(1)}function ce(){return ne(2)}function ae(it,si,dn){let Qn=it&~z;if(Qn){te(Qn,!0);let Jr=si(dn);return te(Qn,!1),Jr}return si(dn)}function Ce(it){return Qi(it,ue,e)}function he(it){switch(it.kind){case 218:case 262:case 174:case 177:case 178:case 176:return it;case 169:case 208:case 260:break;case 80:if(R&&p.isArgumentsLocalBinding(it))return R;break}return Qi(it,he,e)}function ue(it){if(!(it.transformFlags&256))return R?he(it):it;switch(it.kind){case 134:return;case 223:return ke(it);case 174:return ae(3,Oe,it);case 262:return ae(3,Fe,it);case 218:return ae(3,Tt,it);case 219:return ae(1,Be,it);case 211:return A&&lr(it)&&it.expression.kind===108&&A.add(it.name.escapedText),Qi(it,ue,e);case 212:return A&&it.expression.kind===108&&(P=!0),Qi(it,ue,e);case 177:return ae(3,we,it);case 178:return ae(3,Ae,it);case 176:return ae(3,De,it);case 263:case 231:return ae(3,Ce,it);default:return Qi(it,ue,e)}}function Ee(it){if(cge(it))switch(it.kind){case 243:return be(it);case 248:return ie(it);case 249:return Se(it);case 250:return Re(it);case 299:return ve(it);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return Qi(it,Ee,e);default:return B.assertNever(it,"Unhandled node.")}return ue(it)}function ve(it){let si=new Set;Ge(it.variableDeclaration,si);let dn;if(si.forEach((Qn,Jr)=>{T.has(Jr)&&(dn||(dn=new Set(T)),dn.delete(Jr))}),dn){let Qn=T;T=dn;let Jr=Qi(it,Ee,e);return T=Qn,Jr}else return Qi(it,Ee,e)}function be(it){if(Ke(it.declarationList)){let si=Ue(it.declarationList,!1);return si?t.createExpressionStatement(si):void 0}return Qi(it,ue,e)}function Se(it){return t.updateForInStatement(it,Ke(it.initializer)?Ue(it.initializer,!0):B.checkDefined(pt(it.initializer,ue,rh)),B.checkDefined(pt(it.expression,ue,Mt)),M_(it.statement,Ee,e))}function Re(it){return t.updateForOfStatement(it,pt(it.awaitModifier,ue,Ree),Ke(it.initializer)?Ue(it.initializer,!0):B.checkDefined(pt(it.initializer,ue,rh)),B.checkDefined(pt(it.expression,ue,Mt)),M_(it.statement,Ee,e))}function ie(it){let si=it.initializer;return t.updateForStatement(it,Ke(si)?Ue(si,!1):pt(it.initializer,ue,rh),pt(it.condition,ue,Mt),pt(it.incrementor,ue,Mt),M_(it.statement,Ee,e))}function ke(it){return _e()?Qi(it,ue,e):cr(Ft(t.createYieldExpression(void 0,pt(it.expression,ue,Mt)),it),it)}function De(it){let si=R;R=void 0;let dn=t.updateConstructorDeclaration(it,mn(it.modifiers,ue,xa),Ql(it.parameters,ue,e),ci(it));return R=si,dn}function Oe(it){let si,dn=Vu(it),Qn=R;R=void 0;let Jr=t.updateMethodDeclaration(it,mn(it.modifiers,ue,vl),it.asteriskToken,it.name,void 0,void 0,si=dn&2?bn(it):Ql(it.parameters,ue,e),void 0,dn&2?an(it,si):ci(it));return R=Qn,Jr}function we(it){let si=R;R=void 0;let dn=t.updateGetAccessorDeclaration(it,mn(it.modifiers,ue,vl),it.name,Ql(it.parameters,ue,e),void 0,ci(it));return R=si,dn}function Ae(it){let si=R;R=void 0;let dn=t.updateSetAccessorDeclaration(it,mn(it.modifiers,ue,vl),it.name,Ql(it.parameters,ue,e),ci(it));return R=si,dn}function Fe(it){let si,dn=R;R=void 0;let Qn=Vu(it),Jr=t.updateFunctionDeclaration(it,mn(it.modifiers,ue,vl),it.asteriskToken,it.name,void 0,si=Qn&2?bn(it):Ql(it.parameters,ue,e),void 0,Qn&2?an(it,si):Rm(it.body,ue,e));return R=dn,Jr}function Tt(it){let si,dn=R;R=void 0;let Qn=Vu(it),Jr=t.updateFunctionExpression(it,mn(it.modifiers,ue,xa),it.asteriskToken,it.name,void 0,si=Qn&2?bn(it):Ql(it.parameters,ue,e),void 0,Qn&2?an(it,si):Rm(it.body,ue,e));return R=dn,Jr}function Be(it){let si,dn=Vu(it);return t.updateArrowFunction(it,mn(it.modifiers,ue,xa),void 0,si=dn&2?bn(it):Ql(it.parameters,ue,e),void 0,it.equalsGreaterThanToken,dn&2?an(it,si):Rm(it.body,ue,e))}function Ge({name:it},si){if(et(it))si.add(it.escapedText);else for(let dn of it.elements)Ed(dn)||Ge(dn,si)}function Ke(it){return!!it&&ef(it)&&!(it.flags&7)&&it.declarations.some(At)}function Ue(it,si){gt(it);let dn=uO(it);return dn.length===0?si?pt(t.converters.convertToAssignmentElementTarget(it.declarations[0].name),ue,Mt):void 0:t.inlineExpressions(_i(dn,nt))}function gt(it){re(it.declarations,xt)}function xt({name:it}){if(et(it))f(it);else for(let si of it.elements)Ed(si)||xt(si)}function nt(it){let si=Fa(t.createAssignment(t.converters.convertToAssignmentElementTarget(it.name),it.initializer),it);return B.checkDefined(pt(si,ue,Mt))}function At({name:it}){if(et(it))return T.has(it.escapedText);for(let si of it.elements)if(!Ed(si)&&At(si))return!0;return!1}function ci(it){B.assertIsDefined(it.body);let si=A,dn=P;A=new Set,P=!1;let Qn=Rm(it.body,ue,e),Jr=El(it,Oc);if(g>=2&&(p.hasNodeCheckFlag(it,256)||p.hasNodeCheckFlag(it,128))&&(Vu(Jr)&3)!==3){if(Sn(),A.size){let Do=CU(t,p,it,A);W[ac(Do)]=!0;let na=Qn.statements.slice();Wv(na,[Do]),Qn=t.updateBlock(Qn,na)}P&&(p.hasNodeCheckFlag(it,256)?gN(Qn,_H):p.hasNodeCheckFlag(it,128)&&gN(Qn,fH))}return A=si,P=dn,Qn}function Fi(){B.assert(R);let it=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),si=t.createVariableStatement(void 0,[it]);return Kf(si),Y0(si,2097152),si}function bn(it){if(g5(it.parameters))return Ql(it.parameters,ue,e);let si=[];for(let Qn of it.parameters){if(Qn.initializer||Qn.dotDotDotToken){if(it.kind===219){let Dr=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));si.push(Dr)}break}let Jr=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Qn.name,8));si.push(Jr)}let dn=t.createNodeArray(si);return Ft(dn,it.parameters),dn}function an(it,si){let dn=g5(it.parameters)?void 0:Ql(it.parameters,ue,e);a();let Jr=El(it,vs).type,Dr=g<2?Ci(Jr):void 0,Do=it.kind===219,na=R,Ai=p.hasNodeCheckFlag(it,512)&&!R;Ai&&(R=t.createUniqueName("arguments"));let Ha;if(dn)if(Do){let ut=[];B.assert(si.length<=it.parameters.length);for(let bt=0;bt=2&&(p.hasNodeCheckFlag(it,256)||p.hasNodeCheckFlag(it,128));if(bt&&(Sn(),A.size)){let It=CU(t,p,it,A);W[ac(It)]=!0,Wv(ut,[It])}Ai&&Wv(ut,[Fi()]);let je=t.createBlock(ut,!0);Ft(je,it.body),bt&&P&&(p.hasNodeCheckFlag(it,256)?gN(je,_H):p.hasNodeCheckFlag(it,128)&&gN(je,fH)),He=je}return T=ht,Do||(A=Jt,P=ye,R=na),He}function ni(it,si){return Ds(it)?t.updateBlock(it,mn(it.statements,Ee,_o,si)):t.converters.convertToFunctionBlock(B.checkDefined(pt(it,Ee,yz)))}function Ci(it){let si=it&&MM(it);if(si&&G_(si)){let dn=p.getTypeReferenceSerializationKind(si);if(dn===1||dn===0)return si}}function Sn(){x&1||(x|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function nn(it,si,dn){if(x&1&&xn(si)){let Qn=(p.hasNodeCheckFlag(si,128)?128:0)|(p.hasNodeCheckFlag(si,256)?256:0);if(Qn!==k){let Jr=k;k=Qn,q(it,si,dn),k=Jr;return}}else if(x&&W[ac(si)]){let Qn=k;k=0,q(it,si,dn),k=Qn;return}q(it,si,dn)}function Br(it,si){return si=G(it,si),it===1&&k?Gr(si):si}function Gr(it){switch(it.kind){case 211:return is(it);case 212:return Ao(it);case 213:return Rr(it)}return it}function is(it){return it.expression.kind===108?Ft(t.createPropertyAccessExpression(t.createUniqueName("_super",48),it.name),it):it}function Ao(it){return it.expression.kind===108?Eo(it.argumentExpression,it):it}function Rr(it){let si=it.expression;if(mp(si)){let dn=lr(si)?is(si):Ao(si);return t.createCallExpression(t.createPropertyAccessExpression(dn,"call"),void 0,[t.createThis(),...it.arguments])}return it}function xn(it){let si=it.kind;return si===263||si===176||si===174||si===177||si===178}function Eo(it,si){return k&256?Ft(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[it]),"value"),si):Ft(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[it]),si)}}function CU(e,t,r,a){let u=t.hasNodeCheckFlag(r,256),f=[];return a.forEach((p,y)=>{let g=So(y),x=[];x.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Hn(e.createPropertyAccessExpression(Hn(e.createSuper(),8),g),8)))),u&&x.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(Hn(e.createPropertyAccessExpression(Hn(e.createSuper(),8),g),8),e.createIdentifier("v"))))),f.push(e.createPropertyAssignment(g,e.createObjectLiteralExpression(x)))}),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(f,!0)]))],2))}function C1e(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:a,endLexicalEnvironment:u,hoistVariableDeclaration:f}=e,p=e.getEmitResolver(),y=e.getCompilerOptions(),g=Oa(y),x=e.onEmitNode;e.onEmitNode=na;let k=e.onSubstituteNode;e.onSubstituteNode=aa;let T=!1,A,P,R,W=0,z=0,q,G,$,te,ne=[];return n0(e,he);function _e(ge,He){return z!==(z&~ge|He)}function ce(ge,He){let ut=z;return z=(z&~ge|He)&3,ut}function ae(ge){z=ge}function Ce(ge){G=hi(G,t.createVariableDeclaration(ge))}function he(ge){if(ge.isDeclarationFile)return ge;q=ge;let He=Be(ge);return ib(He,e.readEmitHelpers()),q=void 0,G=void 0,He}function ue(ge){return Re(ge,!1)}function Ee(ge){return Re(ge,!0)}function ve(ge){if(ge.kind!==134)return ge}function be(ge,He,ut,bt){if(_e(ut,bt)){let je=ce(ut,bt),It=ge(He);return ae(je),It}return ge(He)}function Se(ge){return Qi(ge,ue,e)}function Re(ge,He){if(!(ge.transformFlags&128))return ge;switch(ge.kind){case 223:return ie(ge);case 229:return ke(ge);case 253:return De(ge);case 256:return Oe(ge);case 210:return Ae(ge);case 226:return Ke(ge,He);case 355:return Ue(ge,He);case 299:return gt(ge);case 243:return xt(ge);case 260:return nt(ge);case 246:case 247:case 249:return be(Se,ge,0,2);case 250:return bn(ge,void 0);case 248:return be(ci,ge,0,2);case 222:return Fi(ge);case 176:return be(is,ge,2,1);case 174:return be(xn,ge,2,1);case 177:return be(Ao,ge,2,1);case 178:return be(Rr,ge,2,1);case 262:return be(Eo,ge,2,1);case 218:return be(si,ge,2,1);case 219:return be(it,ge,2,0);case 169:return Br(ge);case 244:return Fe(ge);case 217:return Tt(ge,He);case 215:return Ge(ge);case 211:return $&&lr(ge)&&ge.expression.kind===108&&$.add(ge.name.escapedText),Qi(ge,ue,e);case 212:return $&&ge.expression.kind===108&&(te=!0),Qi(ge,ue,e);case 263:case 231:return be(Se,ge,2,1);default:return Qi(ge,ue,e)}}function ie(ge){return P&2&&P&1?cr(Ft(t.createYieldExpression(void 0,r().createAwaitHelper(pt(ge.expression,ue,Mt))),ge),ge):Qi(ge,ue,e)}function ke(ge){if(P&2&&P&1){if(ge.asteriskToken){let He=pt(B.checkDefined(ge.expression),ue,Mt);return cr(Ft(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(ge,ge.asteriskToken,Ft(r().createAsyncDelegatorHelper(Ft(r().createAsyncValuesHelper(He),He)),He)))),ge),ge)}return cr(Ft(t.createYieldExpression(void 0,Ci(ge.expression?pt(ge.expression,ue,Mt):t.createVoidZero())),ge),ge)}return Qi(ge,ue,e)}function De(ge){return P&2&&P&1?t.updateReturnStatement(ge,Ci(ge.expression?pt(ge.expression,ue,Mt):t.createVoidZero())):Qi(ge,ue,e)}function Oe(ge){if(P&2){let He=sZ(ge);return He.kind===250&&He.awaitModifier?bn(He,ge):t.restoreEnclosingLabel(pt(He,ue,_o,t.liftToBlock),ge)}return Qi(ge,ue,e)}function we(ge){let He,ut=[];for(let bt of ge)if(bt.kind===305){He&&(ut.push(t.createObjectLiteralExpression(He)),He=void 0);let je=bt.expression;ut.push(pt(je,ue,Mt))}else He=hi(He,bt.kind===303?t.createPropertyAssignment(bt.name,pt(bt.initializer,ue,Mt)):pt(bt,ue,G1));return He&&ut.push(t.createObjectLiteralExpression(He)),ut}function Ae(ge){if(ge.transformFlags&65536){let He=we(ge.properties);He.length&&He[0].kind!==210&&He.unshift(t.createObjectLiteralExpression());let ut=He[0];if(He.length>1){for(let bt=1;bt=2&&(p.hasNodeCheckFlag(ge,256)||p.hasNodeCheckFlag(ge,128));if($t){Do();let yi=CU(t,p,ge,$);ne[ac(yi)]=!0,Wv(je,[yi])}je.push(mt);let _t=t.updateBlock(ge.body,je);return $t&&te&&(p.hasNodeCheckFlag(ge,256)?gN(_t,_H):p.hasNodeCheckFlag(ge,128)&&gN(_t,fH)),$=ut,te=bt,_t}function Jr(ge){a();let He=0,ut=[],bt=pt(ge.body,ue,yz)??t.createBlock([]);Ds(bt)&&(He=t.copyPrologue(bt.statements,ut,!1,ue)),Fn(ut,Dr(void 0,ge));let je=u();if(He>0||Lt(ut)||Lt(je)){let It=t.converters.convertToFunctionBlock(bt,!0);return Wv(ut,je),Fn(ut,It.statements.slice(He)),t.updateBlock(It,Ft(t.createNodeArray(ut),It.statements))}return bt}function Dr(ge,He){let ut=!1;for(let bt of He.parameters)if(ut){if(Rs(bt.name)){if(bt.name.elements.length>0){let je=vT(bt,ue,e,0,t.getGeneratedNameForNode(bt));if(Lt(je)){let It=t.createVariableDeclarationList(je),mt=t.createVariableStatement(void 0,It);Hn(mt,2097152),ge=hi(ge,mt)}}else if(bt.initializer){let je=t.getGeneratedNameForNode(bt),It=pt(bt.initializer,ue,Mt),mt=t.createAssignment(je,It),$t=t.createExpressionStatement(mt);Hn($t,2097152),ge=hi(ge,$t)}}else if(bt.initializer){let je=t.cloneNode(bt.name);Ft(je,bt.name),Hn(je,96);let It=pt(bt.initializer,ue,Mt);Y0(It,3168);let mt=t.createAssignment(je,It);Ft(mt,bt),Hn(mt,3072);let $t=t.createBlock([t.createExpressionStatement(mt)]);Ft($t,bt),Hn($t,3905);let _t=t.createTypeCheck(t.cloneNode(bt.name),"undefined"),yi=t.createIfStatement(_t,$t);Kf(yi),Ft(yi,bt),Hn(yi,2101056),ge=hi(ge,yi)}}else if(bt.transformFlags&65536){ut=!0;let je=vT(bt,ue,e,1,t.getGeneratedNameForNode(bt),!1,!0);if(Lt(je)){let It=t.createVariableDeclarationList(je),mt=t.createVariableStatement(void 0,It);Hn(mt,2097152),ge=hi(ge,mt)}}return ge}function Do(){A&1||(A|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function na(ge,He,ut){if(A&1&&ye(He)){let bt=(p.hasNodeCheckFlag(He,128)?128:0)|(p.hasNodeCheckFlag(He,256)?256:0);if(bt!==W){let je=W;W=bt,x(ge,He,ut),W=je;return}}else if(A&&ne[ac(He)]){let bt=W;W=0,x(ge,He,ut),W=bt;return}x(ge,He,ut)}function aa(ge,He){return He=k(ge,He),ge===1&&W?Ai(He):He}function Ai(ge){switch(ge.kind){case 211:return Ha(ge);case 212:return ht(ge);case 213:return Jt(ge)}return ge}function Ha(ge){return ge.expression.kind===108?Ft(t.createPropertyAccessExpression(t.createUniqueName("_super",48),ge.name),ge):ge}function ht(ge){return ge.expression.kind===108?ct(ge.argumentExpression,ge):ge}function Jt(ge){let He=ge.expression;if(mp(He)){let ut=lr(He)?Ha(He):ht(He);return t.createCallExpression(t.createPropertyAccessExpression(ut,"call"),void 0,[t.createThis(),...ge.arguments])}return ge}function ye(ge){let He=ge.kind;return He===263||He===176||He===174||He===177||He===178}function ct(ge,He){return W&256?Ft(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ge]),"value"),He):Ft(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ge]),He)}}function k1e(e){let t=e.factory;return n0(e,r);function r(f){return f.isDeclarationFile?f:Qi(f,a,e)}function a(f){if(!(f.transformFlags&64))return f;switch(f.kind){case 299:return u(f);default:return Qi(f,a,e)}}function u(f){return f.variableDeclaration?Qi(f,a,e):t.updateCatchClause(f,t.createVariableDeclaration(t.createTempVariable(void 0)),pt(f.block,a,Ds))}}function w1e(e){let{factory:t,hoistVariableDeclaration:r}=e;return n0(e,a);function a(R){return R.isDeclarationFile?R:Qi(R,u,e)}function u(R){if(!(R.transformFlags&32))return R;switch(R.kind){case 213:{let W=g(R,!1);return B.assertNotNode(W,IN),W}case 211:case 212:if(qf(R)){let W=k(R,!1,!1);return B.assertNotNode(W,IN),W}return Qi(R,u,e);case 226:return R.operatorToken.kind===61?A(R):Qi(R,u,e);case 220:return P(R);default:return Qi(R,u,e)}}function f(R){B.assertNotNode(R,fz);let W=[R];for(;!R.questionDotToken&&!pk(R);)R=ea(xg(R.expression),qf),B.assertNotNode(R,fz),W.unshift(R);return{expression:R.expression,chain:W}}function p(R,W,z){let q=x(R.expression,W,z);return IN(q)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,q.expression),q.thisArg):t.updateParenthesizedExpression(R,q)}function y(R,W,z){if(qf(R))return k(R,W,z);let q=pt(R.expression,u,Mt);B.assertNotNode(q,IN);let G;return W&&(yT(q)?G=q:(G=t.createTempVariable(r),q=t.createAssignment(G,q))),q=R.kind===211?t.updatePropertyAccessExpression(R,q,pt(R.name,u,et)):t.updateElementAccessExpression(R,q,pt(R.argumentExpression,u,Mt)),G?t.createSyntheticReferenceExpression(q,G):q}function g(R,W){if(qf(R))return k(R,W,!1);if(O_(R.expression)&&qf(fc(R.expression))){let z=p(R.expression,!0,!1),q=mn(R.arguments,u,Mt);return IN(z)?Ft(t.createFunctionCallCall(z.expression,z.thisArg,q),R):t.updateCallExpression(R,z,void 0,q)}return Qi(R,u,e)}function x(R,W,z){switch(R.kind){case 217:return p(R,W,z);case 211:case 212:return y(R,W,z);case 213:return g(R,W);default:return pt(R,u,Mt)}}function k(R,W,z){let{expression:q,chain:G}=f(R),$=x(xg(q),Y2(G[0]),!1),te=IN($)?$.thisArg:void 0,ne=IN($)?$.expression:$,_e=t.restoreOuterExpressions(q,ne,8);yT(ne)||(ne=t.createTempVariable(r),_e=t.createAssignment(ne,_e));let ce=ne,ae;for(let he=0;heRe&&Fn(ie,mn(be.statements,T,_o,Re,ke-Re));break}ke++}B.assert(kez(ie,Re))))],Re,Se===2)}return Qi(be,T,e)}function G(be,Se,Re,ie,ke){let De=[];for(let Ae=Se;Aet&&(t=a)}return t}function RIt(e){let t=0;for(let r of e){let a=vie(r.statements);if(a===2)return 2;a>t&&(t=a)}return t}function N1e(e){let{factory:t,getEmitHelperFactory:r}=e,a=e.getCompilerOptions(),u,f;return n0(e,T);function p(){if(f.filenameDeclaration)return f.filenameDeclaration.name;let Ge=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(u.fileName));return f.filenameDeclaration=Ge,f.filenameDeclaration.name}function y(Ge){return a.jsx===5?"jsxDEV":Ge?"jsxs":"jsx"}function g(Ge){let Ke=y(Ge);return k(Ke)}function x(){return k("Fragment")}function k(Ge){var Ke,Ue;let gt=Ge==="createElement"?f.importSpecifier:WV(f.importSpecifier,a),xt=(Ue=(Ke=f.utilizedImplicitRuntimeImports)==null?void 0:Ke.get(gt))==null?void 0:Ue.get(Ge);if(xt)return xt.name;f.utilizedImplicitRuntimeImports||(f.utilizedImplicitRuntimeImports=new Map);let nt=f.utilizedImplicitRuntimeImports.get(gt);nt||(nt=new Map,f.utilizedImplicitRuntimeImports.set(gt,nt));let At=t.createUniqueName(`_${Ge}`,112),ci=t.createImportSpecifier(!1,t.createIdentifier(Ge),At);return q0e(At,ci),nt.set(Ge,ci),At}function T(Ge){if(Ge.isDeclarationFile)return Ge;u=Ge,f={},f.importSpecifier=jV(a,Ge);let Ke=Qi(Ge,A,e);ib(Ke,e.readEmitHelpers());let Ue=Ke.statements;if(f.filenameDeclaration&&(Ue=nE(Ue.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([f.filenameDeclaration],2)))),f.utilizedImplicitRuntimeImports){for(let[gt,xt]of as(f.utilizedImplicitRuntimeImports.entries()))if(dd(Ge)){let nt=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(as(xt.values()))),t.createStringLiteral(gt),void 0);tb(nt,!1),Ue=nE(Ue.slice(),nt)}else if(Vp(Ge)){let nt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(as(xt.values(),At=>t.createBindingElement(void 0,At.propertyName,At.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(gt)]))],2));tb(nt,!1),Ue=nE(Ue.slice(),nt)}}return Ue!==Ke.statements&&(Ke=t.updateSourceFile(Ke,Ue)),f=void 0,Ke}function A(Ge){return Ge.transformFlags&2?P(Ge):Ge}function P(Ge){switch(Ge.kind){case 284:return G(Ge,!1);case 285:return $(Ge,!1);case 288:return te(Ge,!1);case 294:return Be(Ge);default:return Qi(Ge,A,e)}}function R(Ge){switch(Ge.kind){case 12:return ke(Ge);case 294:return Be(Ge);case 284:return G(Ge,!0);case 285:return $(Ge,!0);case 288:return te(Ge,!0);default:return B.failBadSyntaxKind(Ge)}}function W(Ge){return Ge.properties.some(Ke=>ed(Ke)&&(et(Ke.name)&&mr(Ke.name)==="__proto__"||Da(Ke.name)&&Ke.name.text==="__proto__"))}function z(Ge){let Ke=!1;for(let Ue of Ge.attributes.properties)if(NN(Ue)&&(!ba(Ue.expression)||Ue.expression.properties.some(Qv)))Ke=!0;else if(Ke&&ry(Ue)&&et(Ue.name)&&Ue.name.escapedText==="key")return!0;return!1}function q(Ge){return f.importSpecifier===void 0||z(Ge)}function G(Ge,Ke){return(q(Ge.openingElement)?Ce:ce)(Ge.openingElement,Ge.children,Ke,Ge)}function $(Ge,Ke){return(q(Ge)?Ce:ce)(Ge,void 0,Ke,Ge)}function te(Ge,Ke){return(f.importSpecifier===void 0?ue:he)(Ge.openingFragment,Ge.children,Ke,Ge)}function ne(Ge){let Ke=_e(Ge);return Ke&&t.createObjectLiteralExpression([Ke])}function _e(Ge){let Ke=i4(Ge);if(K(Ke)===1&&!Ke[0].dotDotDotToken){let gt=R(Ke[0]);return gt&&t.createPropertyAssignment("children",gt)}let Ue=ro(Ge,R);return K(Ue)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(Ue)):void 0}function ce(Ge,Ke,Ue,gt){let xt=Fe(Ge),nt=Ke&&Ke.length?_e(Ke):void 0,At=St(Ge.attributes.properties,bn=>!!bn.name&&et(bn.name)&&bn.name.escapedText==="key"),ci=At?Di(Ge.attributes.properties,bn=>bn!==At):Ge.attributes.properties,Fi=K(ci)?ve(ci,nt):t.createObjectLiteralExpression(nt?[nt]:F);return ae(xt,Fi,At,Ke||F,Ue,gt)}function ae(Ge,Ke,Ue,gt,xt,nt){var At;let ci=i4(gt),Fi=K(ci)>1||!!((At=ci[0])!=null&&At.dotDotDotToken),bn=[Ge,Ke];if(Ue&&bn.push(ie(Ue.initializer)),a.jsx===5){let ni=El(u);if(ni&&mo(ni)){Ue===void 0&&bn.push(t.createVoidZero()),bn.push(Fi?t.createTrue():t.createFalse());let Ci=ma(ni,nt.pos);bn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",p()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Ci.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Ci.character+1))])),bn.push(t.createThis())}}let an=Ft(t.createCallExpression(g(Fi),void 0,bn),nt);return xt&&Kf(an),an}function Ce(Ge,Ke,Ue,gt){let xt=Fe(Ge),nt=Ge.attributes.properties,At=K(nt)?ve(nt):t.createNull(),ci=f.importSpecifier===void 0?tte(t,e.getEmitResolver().getJsxFactoryEntity(u),a.reactNamespace,Ge):k("createElement"),Fi=Tye(t,ci,xt,At,ro(Ke,R),gt);return Ue&&Kf(Fi),Fi}function he(Ge,Ke,Ue,gt){let xt;if(Ke&&Ke.length){let nt=ne(Ke);nt&&(xt=nt)}return ae(x(),xt||t.createObjectLiteralExpression([]),void 0,Ke,Ue,gt)}function ue(Ge,Ke,Ue,gt){let xt=Eye(t,e.getEmitResolver().getJsxFactoryEntity(u),e.getEmitResolver().getJsxFragmentFactoryEntity(u),a.reactNamespace,ro(Ke,R),Ge,gt);return Ue&&Kf(xt),xt}function Ee(Ge){return ba(Ge.expression)&&!W(Ge.expression)?Uo(Ge.expression.properties,Ke=>B.checkDefined(pt(Ke,A,G1))):t.createSpreadAssignment(B.checkDefined(pt(Ge.expression,A,Mt)))}function ve(Ge,Ke){let Ue=Oa(a);return Ue&&Ue>=5?t.createObjectLiteralExpression(be(Ge,Ke)):Se(Ge,Ke)}function be(Ge,Ke){let Ue=tc(hd(Ge,NN,(gt,xt)=>tc(_i(gt,nt=>xt?Ee(nt):Re(nt)))));return Ke&&Ue.push(Ke),Ue}function Se(Ge,Ke){let Ue=[],gt=[];for(let nt of Ge){if(NN(nt)){if(ba(nt.expression)&&!W(nt.expression)){for(let At of nt.expression.properties){if(Qv(At)){xt(),Ue.push(B.checkDefined(pt(At.expression,A,Mt)));continue}gt.push(B.checkDefined(pt(At,A)))}continue}xt(),Ue.push(B.checkDefined(pt(nt.expression,A,Mt)));continue}gt.push(Re(nt))}return Ke&>.push(Ke),xt(),Ue.length&&!ba(Ue[0])&&Ue.unshift(t.createObjectLiteralExpression()),Fh(Ue)||r().createAssignHelper(Ue);function xt(){gt.length&&(Ue.push(t.createObjectLiteralExpression(gt)),gt=[])}}function Re(Ge){let Ke=Tt(Ge),Ue=ie(Ge.initializer);return t.createPropertyAssignment(Ke,Ue)}function ie(Ge){if(Ge===void 0)return t.createTrue();if(Ge.kind===11){let Ke=Ge.singleQuote!==void 0?Ge.singleQuote:!eV(Ge,u),Ue=t.createStringLiteral(Ae(Ge.text)||Ge.text,Ke);return Ft(Ue,Ge)}return Ge.kind===294?Ge.expression===void 0?t.createTrue():B.checkDefined(pt(Ge.expression,A,Mt)):Yv(Ge)?G(Ge,!1):SE(Ge)?$(Ge,!1):_T(Ge)?te(Ge,!1):B.failBadSyntaxKind(Ge)}function ke(Ge){let Ke=De(Ge.text);return Ke===void 0?void 0:t.createStringLiteral(Ke)}function De(Ge){let Ke,Ue=0,gt=-1;for(let xt=0;xt{if(nt)return T3(parseInt(nt,10));if(At)return T3(parseInt(At,16));{let Fi=BIt.get(ci);return Fi?T3(Fi):Ke}})}function Ae(Ge){let Ke=we(Ge);return Ke===Ge?void 0:Ke}function Fe(Ge){if(Ge.kind===284)return Fe(Ge.openingElement);{let Ke=Ge.tagName;return et(Ke)&&n4(Ke.escapedText)?t.createStringLiteral(mr(Ke)):e0(Ke)?t.createStringLiteral(mr(Ke.namespace)+":"+mr(Ke.name)):qR(t,Ke)}}function Tt(Ge){let Ke=Ge.name;if(et(Ke)){let Ue=mr(Ke);return/^[A-Z_]\w*$/i.test(Ue)?Ke:t.createStringLiteral(Ue)}return t.createStringLiteral(mr(Ke.namespace)+":"+mr(Ke.name))}function Be(Ge){let Ke=pt(Ge.expression,A,Mt);return Ge.dotDotDotToken?t.createSpreadElement(Ke):Ke}}var BIt=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 A1e(e){let{factory:t,hoistVariableDeclaration:r}=e;return n0(e,a);function a(g){return g.isDeclarationFile?g:Qi(g,u,e)}function u(g){if(!(g.transformFlags&512))return g;switch(g.kind){case 226:return f(g);default:return Qi(g,u,e)}}function f(g){switch(g.operatorToken.kind){case 68:return p(g);case 43:return y(g);default:return Qi(g,u,e)}}function p(g){let x,k,T=pt(g.left,u,Mt),A=pt(g.right,u,Mt);if(nl(T)){let P=t.createTempVariable(r),R=t.createTempVariable(r);x=Ft(t.createElementAccessExpression(Ft(t.createAssignment(P,T.expression),T.expression),Ft(t.createAssignment(R,T.argumentExpression),T.argumentExpression)),T),k=Ft(t.createElementAccessExpression(P,R),T)}else if(lr(T)){let P=t.createTempVariable(r);x=Ft(t.createPropertyAccessExpression(Ft(t.createAssignment(P,T.expression),T.expression),T.name),T),k=Ft(t.createPropertyAccessExpression(P,T.name),T)}else x=T,k=T;return Ft(t.createAssignment(x,Ft(t.createGlobalMethodCall("Math","pow",[k,A]),g)),g)}function y(g){let x=pt(g.left,u,Mt),k=pt(g.right,u,Mt);return Ft(t.createGlobalMethodCall("Math","pow",[x,k]),g)}}function F5e(e,t){return{kind:e,expression:t}}function P1e(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:a,resumeLexicalEnvironment:u,endLexicalEnvironment:f,hoistVariableDeclaration:p}=e,y=e.getCompilerOptions(),g=e.getEmitResolver(),x=e.onSubstituteNode,k=e.onEmitNode;e.onEmitNode=Sp,e.onSubstituteNode=yh;let T,A,P,R;function W(me){R=hi(R,t.createVariableDeclaration(me))}let z,q;return n0(e,G);function G(me){if(me.isDeclarationFile)return me;T=me,A=me.text;let wt=ve(me);return ib(wt,e.readEmitHelpers()),T=void 0,A=void 0,R=void 0,P=0,wt}function $(me,wt){let oi=P;return P=(P&~me|wt)&32767,oi}function te(me,wt,oi){P=(P&~wt|oi)&-32768|me}function ne(me){return(P&8192)!==0&&me.kind===253&&!me.expression}function _e(me){return me.transformFlags&4194304&&(qh(me)||hk(me)||uye(me)||RO(me)||BO(me)||x4(me)||WO(me)||vE(me)||mT(me)||Px(me)||hx(me,!1)||Ds(me))}function ce(me){return(me.transformFlags&1024)!==0||z!==void 0||P&8192&&_e(me)||hx(me,!1)&&fo(me)||(Cg(me)&1)!==0}function ae(me){return ce(me)?Ee(me,!1):me}function Ce(me){return ce(me)?Ee(me,!0):me}function he(me){if(ce(me)){let wt=El(me);if(ls(wt)&&cd(wt)){let oi=$(32670,16449),di=Ee(me,!1);return te(oi,229376,0),di}return Ee(me,!1)}return me}function ue(me){return me.kind===108?Zp(me,!0):ae(me)}function Ee(me,wt){switch(me.kind){case 126:return;case 263:return Fe(me);case 231:return Tt(me);case 169:return aa(me);case 262:return Ii(me);case 219:return _t(me);case 218:return yi(me);case 260:return _n(me);case 80:return we(me);case 261:return Qe(me);case 255:return be(me);case 269:return Se(me);case 241:return $e(me,!1);case 252:case 251:return Ae(me);case 256:return ti(me);case 246:case 247:return Si(me,void 0);case 248:return Rn(me,void 0);case 249:return Xi(me,void 0);case 250:return Li(me,void 0);case 244:return Bt(me);case 210:return ks(me);case 299:return Pr(me);case 304:return Au(me);case 167:return Pu(me);case 209:return hl(me);case 213:return Lu(me);case 214:return _d(me);case 217:return se(me,wt);case 226:return rt(me,wt);case 355:return fe(me,wt);case 15:case 16:case 17:case 18:return Ja(me);case 11:return wu(me);case 9:return Nd(me);case 215:return Mc(me);case 228:return gc(me);case 229:return ku(me);case 230:return za(me);case 108:return Zp(me,!1);case 110:return De(me);case 236:return Qh(me);case 174:return Ya(me);case 177:case 178:return ml(me);case 243:return tt(me);case 253:return ke(me);case 222:return Oe(me);default:return Qi(me,ae,e)}}function ve(me){let wt=$(8064,64),oi=[],di=[];a();let Zi=t.copyPrologue(me.statements,oi,!1,ae);return Fn(di,mn(me.statements,ae,_o,Zi)),R&&di.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(oi,f()),ge(oi,me),te(wt,0,0),t.updateSourceFile(me,Ft(t.createNodeArray(Fo(oi,di)),me.statements))}function be(me){if(z!==void 0){let wt=z.allowedNonLabeledJumps;z.allowedNonLabeledJumps|=2;let oi=Qi(me,ae,e);return z.allowedNonLabeledJumps=wt,oi}return Qi(me,ae,e)}function Se(me){let wt=$(7104,0),oi=Qi(me,ae,e);return te(wt,0,0),oi}function Re(me){return cr(t.createReturnStatement(ie()),me)}function ie(){return t.createUniqueName("_this",48)}function ke(me){return z?(z.nonLocalJumps|=8,ne(me)&&(me=Re(me)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),me.expression?B.checkDefined(pt(me.expression,ae,Mt)):t.createVoidZero())]))):ne(me)?Re(me):Qi(me,ae,e)}function De(me){return P|=65536,P&2&&!(P&16384)&&(P|=131072),z?P&2?(z.containsLexicalThis=!0,me):z.thisName||(z.thisName=t.createUniqueName("this")):me}function Oe(me){return Qi(me,Ce,e)}function we(me){return z&&g.isArgumentsLocalBinding(me)?z.argumentsName||(z.argumentsName=t.createUniqueName("arguments")):me.flags&256?cr(Ft(t.createIdentifier(So(me.escapedText)),me),me):me}function Ae(me){if(z){let wt=me.kind===252?2:4;if(!(me.label&&z.labels&&z.labels.get(mr(me.label))||!me.label&&z.allowedNonLabeledJumps&wt)){let di,Zi=me.label;Zi?me.kind===252?(di=`break-${Zi.escapedText}`,Ze(z,!0,mr(Zi),di)):(di=`continue-${Zi.escapedText}`,Ze(z,!1,mr(Zi),di)):me.kind===252?(z.nonLocalJumps|=2,di="break"):(z.nonLocalJumps|=4,di="continue");let Tn=t.createStringLiteral(di);if(z.loopOutParameters.length){let ur=z.loopOutParameters,qr;for(let Q=0;Qet(wt.name)&&!wt.initializer)}function At(me){if(oE(me))return!0;if(!(me.transformFlags&134217728))return!1;switch(me.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let wt=me;return Ma(wt.name)?!!ws(wt.name,At):!1}}return!!ws(me,At)}function ci(me,wt,oi,di){let Zi=!!oi&&Cu(oi.expression).kind!==106;if(!me)return xt(wt,Zi);let Tn=[],ur=[];u();let qr=t.copyStandardPrologue(me.body.statements,Tn,0);(di||At(me.body))&&(P|=8192),Fn(ur,mn(me.body.statements,ae,_o,qr));let Q=Zi||P&8192;Ha(Tn,me),ct(Tn,me,di),ut(Tn,me),Q?He(Tn,me,Do()):ge(Tn,me),t.mergeLexicalEnvironment(Tn,f()),Q&&!Dr(me.body)&&ur.push(t.createReturnStatement(ie()));let ze=t.createBlock(Ft(t.createNodeArray([...Tn,...ur]),me.body.statements),!0);return Ft(ze,me.body),Jr(ze,me.body,di)}function Fi(me){return yl(me)&&mr(me)==="_this"}function bn(me){return yl(me)&&mr(me)==="_super"}function an(me){return mu(me)&&me.declarationList.declarations.length===1&&ni(me.declarationList.declarations[0])}function ni(me){return Ur(me)&&Fi(me.name)&&!!me.initializer}function Ci(me){return Hd(me,!0)&&Fi(me.left)}function Sn(me){return Gs(me)&&lr(me.expression)&&bn(me.expression.expression)&&et(me.expression.name)&&(mr(me.expression.name)==="call"||mr(me.expression.name)==="apply")&&me.arguments.length>=1&&me.arguments[0].kind===110}function nn(me){return Yn(me)&&me.operatorToken.kind===57&&me.right.kind===110&&Sn(me.left)}function Br(me){return Yn(me)&&me.operatorToken.kind===56&&Yn(me.left)&&me.left.operatorToken.kind===38&&bn(me.left.left)&&me.left.right.kind===106&&Sn(me.right)&&mr(me.right.expression.name)==="apply"}function Gr(me){return Yn(me)&&me.operatorToken.kind===57&&me.right.kind===110&&Br(me.left)}function is(me){return Ci(me)&&nn(me.right)}function Ao(me){return Ci(me)&&Gr(me.right)}function Rr(me){return Sn(me)||nn(me)||is(me)||Br(me)||Gr(me)||Ao(me)}function xn(me){for(let wt=0;wt0;di--){let Zi=me.statements[di];if(qh(Zi)&&Zi.expression&&Fi(Zi.expression)){let Tn=me.statements[di-1],ur;if(Ud(Tn)&&is(Cu(Tn.expression)))ur=Tn.expression;else if(oi&&an(Tn)){let ze=Tn.declarationList.declarations[0];Rr(Cu(ze.initializer))&&(ur=t.createAssignment(ie(),ze.initializer))}if(!ur)break;let qr=t.createReturnStatement(ur);cr(qr,Tn),Ft(qr,Tn);let Q=t.createNodeArray([...me.statements.slice(0,di-1),qr,...me.statements.slice(di+1)]);return Ft(Q,me.statements),t.updateBlock(me,Q)}}return me}function it(me){if(an(me)){if(me.declarationList.declarations[0].initializer.kind===110)return}else if(Ci(me))return t.createPartiallyEmittedExpression(me.right,me);switch(me.kind){case 219:case 218:case 262:case 176:case 175:return me;case 177:case 178:case 174:case 172:{let wt=me;return Ma(wt.name)?t.replacePropertyName(wt,Qi(wt.name,it,void 0)):me}}return Qi(me,it,void 0)}function si(me,wt){if(wt.transformFlags&16384||P&65536||P&131072)return me;for(let oi of wt.statements)if(oi.transformFlags&134217728&&!hU(oi))return me;return t.updateBlock(me,mn(me.statements,it,_o))}function dn(me){if(Sn(me)&&me.arguments.length===2&&et(me.arguments[1])&&mr(me.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Ju(),t.createNull()),me);switch(me.kind){case 219:case 218:case 262:case 176:case 175:return me;case 177:case 178:case 174:case 172:{let wt=me;return Ma(wt.name)?t.replacePropertyName(wt,Qi(wt.name,dn,void 0)):me}}return Qi(me,dn,void 0)}function Qn(me){return t.updateBlock(me,mn(me.statements,dn,_o))}function Jr(me,wt,oi){let di=me;return me=xn(me),me=Eo(me,wt),me!==di&&(me=si(me,wt)),oi&&(me=Qn(me)),me}function Dr(me){if(me.kind===253)return!0;if(me.kind===245){let wt=me;if(wt.elseStatement)return Dr(wt.thenStatement)&&Dr(wt.elseStatement)}else if(me.kind===241){let wt=Lc(me.statements);if(wt&&Dr(wt))return!0}return!1}function Do(){return Hn(t.createThis(),8)}function na(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Ju(),t.createNull()),t.createFunctionApplyCall(Ju(),Do(),t.createIdentifier("arguments"))),Do())}function aa(me){if(!me.dotDotDotToken)return Rs(me.name)?cr(Ft(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(me),void 0,void 0,void 0),me),me):me.initializer?cr(Ft(t.createParameterDeclaration(void 0,void 0,me.name,void 0,void 0,void 0),me),me):me}function Ai(me){return me.initializer!==void 0||Rs(me.name)}function Ha(me,wt){if(!Lt(wt.parameters,Ai))return!1;let oi=!1;for(let di of wt.parameters){let{name:Zi,initializer:Tn,dotDotDotToken:ur}=di;ur||(Rs(Zi)?oi=ht(me,di,Zi,Tn)||oi:Tn&&(Jt(me,di,Zi,Tn),oi=!0))}return oi}function ht(me,wt,oi,di){return oi.elements.length>0?(nE(me,Hn(t.createVariableStatement(void 0,t.createVariableDeclarationList(vT(wt,ae,e,0,t.getGeneratedNameForNode(wt)))),2097152)),!0):di?(nE(me,Hn(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(wt),B.checkDefined(pt(di,ae,Mt)))),2097152)),!0):!1}function Jt(me,wt,oi,di){di=B.checkDefined(pt(di,ae,Mt));let Zi=t.createIfStatement(t.createTypeCheck(t.cloneNode(oi),"undefined"),Hn(Ft(t.createBlock([t.createExpressionStatement(Hn(Ft(t.createAssignment(Hn(ic(Ft(t.cloneNode(oi),oi),oi.parent),96),Hn(di,96|ja(di)|3072)),wt),3072))]),wt),3905));Kf(Zi),Ft(Zi,wt),Hn(Zi,2101056),nE(me,Zi)}function ye(me,wt){return!!(me&&me.dotDotDotToken&&!wt)}function ct(me,wt,oi){let di=[],Zi=Lc(wt.parameters);if(!ye(Zi,oi))return!1;let Tn=Zi.name.kind===80?ic(Ft(t.cloneNode(Zi.name),Zi.name),Zi.name.parent):t.createTempVariable(void 0);Hn(Tn,96);let ur=Zi.name.kind===80?t.cloneNode(Zi.name):Tn,qr=wt.parameters.length-1,Q=t.createLoopVariable();di.push(Hn(Ft(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Tn,void 0,void 0,t.createArrayLiteralExpression([]))])),Zi),2097152));let ze=t.createForStatement(Ft(t.createVariableDeclarationList([t.createVariableDeclaration(Q,void 0,void 0,t.createNumericLiteral(qr))]),Zi),Ft(t.createLessThan(Q,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),Zi),Ft(t.createPostfixIncrement(Q),Zi),t.createBlock([Kf(Ft(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ur,qr===0?Q:t.createSubtract(Q,t.createNumericLiteral(qr))),t.createElementAccessExpression(t.createIdentifier("arguments"),Q))),Zi))]));return Hn(ze,2097152),Kf(ze),di.push(ze),Zi.name.kind!==80&&di.push(Hn(Ft(t.createVariableStatement(void 0,t.createVariableDeclarationList(vT(Zi,ae,e,0,ur))),Zi),2097152)),VQ(me,di),!0}function ge(me,wt){return P&131072&&wt.kind!==219?(He(me,wt,t.createThis()),!0):!1}function He(me,wt,oi){Wm();let di=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie(),void 0,void 0,oi)]));Hn(di,2100224),Fa(di,wt),nE(me,di)}function ut(me,wt){if(P&32768){let oi;switch(wt.kind){case 219:return me;case 174:case 177:case 178:oi=t.createVoidZero();break;case 176:oi=t.createPropertyAccessExpression(Hn(t.createThis(),8),"constructor");break;case 262:case 218:oi=t.createConditionalExpression(t.createLogicalAnd(Hn(t.createThis(),8),t.createBinaryExpression(Hn(t.createThis(),8),104,t.getLocalName(wt))),void 0,t.createPropertyAccessExpression(Hn(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return B.failBadSyntaxKind(wt)}let di=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,oi)]));Hn(di,2100224),nE(me,di)}return me}function bt(me,wt){for(let oi of wt.members)switch(oi.kind){case 240:me.push(je(oi));break;case 174:me.push(It(i1(wt,oi),oi,wt));break;case 177:case 178:let di=Sx(wt.members,oi);oi===di.firstAccessor&&me.push(mt(i1(wt,oi),di,wt));break;case 176:case 175:break;default:B.failBadSyntaxKind(oi,T&&T.fileName);break}}function je(me){return Ft(t.createEmptyStatement(),me)}function It(me,wt,oi){let di=Q0(wt),Zi=lS(wt),Tn=nr(wt,wt,void 0,oi),ur=pt(wt.name,ae,zu);B.assert(ur);let qr;if(!xo(ur)&&xR(e.getCompilerOptions())){let ze=Ma(ur)?ur.expression:et(ur)?t.createStringLiteral(So(ur.escapedText)):ur;qr=t.createObjectDefinePropertyCall(me,ze,t.createPropertyDescriptor({value:Tn,enumerable:!1,writable:!0,configurable:!0}))}else{let ze=wE(t,me,ur,wt.name);qr=t.createAssignment(ze,Tn)}Hn(Tn,3072),Fa(Tn,Zi);let Q=Ft(t.createExpressionStatement(qr),wt);return cr(Q,wt),ud(Q,di),Hn(Q,96),Q}function mt(me,wt,oi){let di=t.createExpressionStatement($t(me,wt,oi,!1));return Hn(di,3072),Fa(di,lS(wt.firstAccessor)),di}function $t(me,{firstAccessor:wt,getAccessor:oi,setAccessor:di},Zi,Tn){let ur=ic(Ft(t.cloneNode(me),me),me.parent);Hn(ur,3136),Fa(ur,wt.name);let qr=pt(wt.name,ae,zu);if(B.assert(qr),xo(qr))return B.failBadSyntaxKind(qr,"Encountered unhandled private identifier while transforming ES2015.");let Q=nte(t,qr);Hn(Q,3104),Fa(Q,wt.name);let ze=[];if(oi){let gn=nr(oi,void 0,void 0,Zi);Fa(gn,lS(oi)),Hn(gn,1024);let lo=t.createPropertyAssignment("get",gn);ud(lo,Q0(oi)),ze.push(lo)}if(di){let gn=nr(di,void 0,void 0,Zi);Fa(gn,lS(di)),Hn(gn,1024);let lo=t.createPropertyAssignment("set",gn);ud(lo,Q0(di)),ze.push(lo)}ze.push(t.createPropertyAssignment("enumerable",oi||di?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let Ut=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[ur,Q,t.createObjectLiteralExpression(ze,!0)]);return Tn&&Kf(Ut),Ut}function _t(me){me.transformFlags&16384&&!(P&16384)&&(P|=131072);let wt=z;z=void 0;let oi=$(15232,66),di=t.createFunctionExpression(void 0,void 0,void 0,void 0,Ql(me.parameters,ae,e),void 0,Y(me));return Ft(di,me),cr(di,me),Hn(di,16),te(oi,0,0),z=wt,di}function yi(me){let wt=ja(me)&524288?$(32662,69):$(32670,65),oi=z;z=void 0;let di=Ql(me.parameters,ae,e),Zi=Y(me),Tn=P&32768?t.getLocalName(me):me.name;return te(wt,229376,0),z=oi,t.updateFunctionExpression(me,void 0,me.asteriskToken,Tn,void 0,di,void 0,Zi)}function Ii(me){let wt=z;z=void 0;let oi=$(32670,65),di=Ql(me.parameters,ae,e),Zi=Y(me),Tn=P&32768?t.getLocalName(me):me.name;return te(oi,229376,0),z=wt,t.updateFunctionDeclaration(me,mn(me.modifiers,ae,xa),me.asteriskToken,Tn,void 0,di,void 0,Zi)}function nr(me,wt,oi,di){let Zi=z;z=void 0;let Tn=di&&jr(di)&&!ia(me)?$(32670,73):$(32670,65),ur=Ql(me.parameters,ae,e),qr=Y(me);return P&32768&&!oi&&(me.kind===262||me.kind===218)&&(oi=t.getGeneratedNameForNode(me)),te(Tn,229376,0),z=Zi,cr(Ft(t.createFunctionExpression(void 0,me.asteriskToken,oi,void 0,ur,void 0,qr),wt),me)}function Y(me){let wt=!1,oi=!1,di,Zi,Tn=[],ur=[],qr=me.body,Q;if(u(),Ds(qr)&&(Q=t.copyStandardPrologue(qr.statements,Tn,0,!1),Q=t.copyCustomPrologue(qr.statements,ur,Q,ae,jz),Q=t.copyCustomPrologue(qr.statements,ur,Q,ae,Wz)),wt=Ha(ur,me)||wt,wt=ct(ur,me,!1)||wt,Ds(qr))Q=t.copyCustomPrologue(qr.statements,ur,Q,ae),di=qr.statements,Fn(ur,mn(qr.statements,ae,_o,Q)),!wt&&qr.multiLine&&(wt=!0);else{B.assert(me.kind===219),di=wV(qr,-1);let Ut=me.equalsGreaterThanToken;!Uc(Ut)&&!Uc(qr)&&(gR(Ut,qr,T)?oi=!0:wt=!0);let gn=pt(qr,ae,Mt),lo=t.createReturnStatement(gn);Ft(lo,qr),W0e(lo,qr),Hn(lo,2880),ur.push(lo),Zi=qr}if(t.mergeLexicalEnvironment(Tn,f()),ut(Tn,me),ge(Tn,me),Lt(Tn)&&(wt=!0),ur.unshift(...Tn),Ds(qr)&&Lr(ur,qr.statements))return qr;let ze=t.createBlock(Ft(t.createNodeArray(ur),di),wt);return Ft(ze,me.body),!wt&&oi&&Hn(ze,1),Zi&&j0e(ze,20,Zi),cr(ze,me.body),ze}function $e(me,wt){if(wt)return Qi(me,ae,e);let oi=P&256?$(7104,512):$(6976,128),di=Qi(me,ae,e);return te(oi,0,0),di}function Bt(me){return Qi(me,Ce,e)}function se(me,wt){return Qi(me,wt?Ce:ae,e)}function rt(me,wt){return sS(me)?NE(me,ae,e,0,!wt):me.operatorToken.kind===28?t.updateBinaryExpression(me,B.checkDefined(pt(me.left,Ce,Mt)),me.operatorToken,B.checkDefined(pt(me.right,wt?Ce:ae,Mt))):Qi(me,ae,e)}function fe(me,wt){if(wt)return Qi(me,Ce,e);let oi;for(let Zi=0;ZiQ.name)),qr=di?t.createYieldExpression(t.createToken(42),Hn(ur,8388608)):ur;if(Tn)Zi.push(t.createExpressionStatement(qr)),Fl(wt.loopOutParameters,1,0,Zi);else{let Q=t.createUniqueName("state"),ze=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Q,void 0,void 0,qr)]));if(Zi.push(ze),Fl(wt.loopOutParameters,1,0,Zi),wt.nonLocalJumps&8){let Ut;oi?(oi.nonLocalJumps|=8,Ut=t.createReturnStatement(Q)):Ut=t.createReturnStatement(t.createPropertyAccessExpression(Q,"value")),Zi.push(t.createIfStatement(t.createTypeCheck(Q,"object"),Ut))}if(wt.nonLocalJumps&2&&Zi.push(t.createIfStatement(t.createStrictEquality(Q,t.createStringLiteral("break")),t.createBreakStatement())),wt.labeledNonLocalBreaks||wt.labeledNonLocalContinues){let Ut=[];Pt(wt.labeledNonLocalBreaks,!0,Q,oi,Ut),Pt(wt.labeledNonLocalContinues,!1,Q,oi,Ut),Zi.push(t.createSwitchStatement(Q,t.createCaseBlock(Ut)))}}return Zi}function Ze(me,wt,oi,di){wt?(me.labeledNonLocalBreaks||(me.labeledNonLocalBreaks=new Map),me.labeledNonLocalBreaks.set(oi,di)):(me.labeledNonLocalContinues||(me.labeledNonLocalContinues=new Map),me.labeledNonLocalContinues.set(oi,di))}function Pt(me,wt,oi,di,Zi){me&&me.forEach((Tn,ur)=>{let qr=[];if(!di||di.labels&&di.labels.get(ur)){let Q=t.createIdentifier(ur);qr.push(wt?t.createBreakStatement(Q):t.createContinueStatement(Q))}else Ze(di,wt,ur,Tn),qr.push(t.createReturnStatement(oi));Zi.push(t.createCaseClause(t.createStringLiteral(Tn),qr))})}function ri(me,wt,oi,di,Zi){let Tn=wt.name;if(Rs(Tn))for(let ur of Tn.elements)Ed(ur)||ri(me,ur,oi,di,Zi);else{oi.push(t.createParameterDeclaration(void 0,void 0,Tn));let ur=g.hasNodeCheckFlag(wt,65536);if(ur||Zi){let qr=t.createUniqueName("out_"+mr(Tn)),Q=0;ur&&(Q|=1),gk(me)&&(me.initializer&&g.isBindingCapturedByNode(me.initializer,wt)&&(Q|=2),(me.condition&&g.isBindingCapturedByNode(me.condition,wt)||me.incrementor&&g.isBindingCapturedByNode(me.incrementor,wt))&&(Q|=1)),di.push({flags:Q,originalName:Tn,outParamName:qr})}}}function un(me,wt,oi,di){let Zi=wt.properties,Tn=Zi.length;for(let ur=di;urmu(Il)&&!!Ta(Il.declarationList.declarations).initializer,di=z;z=void 0;let Zi=mn(wt.statements,he,_o);z=di;let Tn=Di(Zi,oi),ur=Di(Zi,Il=>!oi(Il)),Q=ea(Ta(Tn),mu).declarationList.declarations[0],ze=Cu(Q.initializer),Ut=kr(ze,Hd);!Ut&&Yn(ze)&&ze.operatorToken.kind===28&&(Ut=kr(ze.left,Hd));let gn=ea(Ut?Cu(Ut.right):ze,Gs),lo=ea(Cu(gn.expression),Yc),Is=lo.body.statements,os=0,Ns=-1,Qa=[];if(Ut){let Il=kr(Is[os],Ud);Il&&(Qa.push(Il),os++),Qa.push(Is[os]),os++,Qa.push(t.createExpressionStatement(t.createAssignment(Ut.left,ea(Q.name,et))))}for(;!qh(Wg(Is,Ns));)Ns--;Fn(Qa,Is,os,Ns),Ns<-1&&Fn(Qa,Is,Ns+1);let Ra=kr(Wg(Is,Ns),qh);for(let Il of ur)qh(Il)&&Ra?.expression&&!et(Ra.expression)?Qa.push(Ra):Qa.push(Il);return Fn(Qa,Tn,1),t.restoreOuterExpressions(me.expression,t.restoreOuterExpressions(Q.initializer,t.restoreOuterExpressions(Ut&&Ut.right,t.updateCallExpression(gn,t.restoreOuterExpressions(gn.expression,t.updateFunctionExpression(lo,void 0,void 0,void 0,void 0,lo.parameters,void 0,t.updateBlock(lo.body,Qa))),void 0,gn.arguments))))}function Ou(me,wt){if(me.transformFlags&32768||me.expression.kind===108||mp(Cu(me.expression))){let{target:oi,thisArg:di}=t.createCallBinding(me.expression,p);me.expression.kind===108&&Hn(di,8);let Zi;if(me.transformFlags&32768?Zi=t.createFunctionApplyCall(B.checkDefined(pt(oi,ue,Mt)),me.expression.kind===108?di:B.checkDefined(pt(di,ae,Mt)),gh(me.arguments,!0,!1,!1)):Zi=Ft(t.createFunctionCallCall(B.checkDefined(pt(oi,ue,Mt)),me.expression.kind===108?di:B.checkDefined(pt(di,ae,Mt)),mn(me.arguments,ae,Mt)),me),me.expression.kind===108){let Tn=t.createLogicalOr(Zi,Do());Zi=wt?t.createAssignment(ie(),Tn):Tn}return cr(Zi,me)}return oE(me)&&(P|=131072),Qi(me,ae,e)}function _d(me){if(Lt(me.arguments,fh)){let{target:wt,thisArg:oi}=t.createCallBinding(t.createPropertyAccessExpression(me.expression,"bind"),p);return t.createNewExpression(t.createFunctionApplyCall(B.checkDefined(pt(wt,ae,Mt)),oi,gh(t.createNodeArray([t.createVoidZero(),...me.arguments]),!0,!1,!1)),void 0,[])}return Qi(me,ae,e)}function gh(me,wt,oi,di){let Zi=me.length,Tn=tc(hd(me,qe,(ze,Ut,gn,lo)=>Ut(ze,oi,di&&lo===Zi)));if(Tn.length===1){let ze=Tn[0];if(wt&&!y.downlevelIteration||vee(ze.expression)||IO(ze.expression,"___spreadArray"))return ze.expression}let ur=r(),qr=Tn[0].kind!==0,Q=qr?t.createArrayLiteralExpression():Tn[0].expression;for(let ze=qr?0:1;ze0&&di.push(t.createStringLiteral(oi.literal.text)),wt=t.createCallExpression(t.createPropertyAccessExpression(wt,"concat"),void 0,di)}return Ft(wt,me)}function Ju(){return t.createUniqueName("_super",48)}function Zp(me,wt){let oi=P&8&&!wt?t.createPropertyAccessExpression(cr(Ju(),me),"prototype"):Ju();return cr(oi,me),ud(oi,me),Fa(oi,me),oi}function Qh(me){return me.keywordToken===105&&me.name.escapedText==="target"?(P|=32768,t.createUniqueName("_newTarget",48)):me}function Sp(me,wt,oi){if(q&1&&vs(wt)){let di=$(32670,ja(wt)&16?81:65);k(me,wt,oi),te(di,0,0);return}k(me,wt,oi)}function hm(){q&2||(q|=2,e.enableSubstitution(80))}function Wm(){q&1||(q|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function yh(me,wt){return wt=x(me,wt),me===1?np(wt):et(wt)?t1(wt):wt}function t1(me){if(q&2&&!rte(me)){let wt=_s(me,et);if(wt&&Zh(wt))return Ft(t.getGeneratedNameForNode(wt),me)}return me}function Zh(me){switch(me.parent.kind){case 208:case 263:case 266:case 260:return me.parent.name===me&&g.isDeclarationWithCollidingName(me.parent)}return!1}function np(me){switch(me.kind){case 80:return Ad(me);case 110:return j_(me)}return me}function Ad(me){if(q&2&&!rte(me)){let wt=g.getReferencedDeclarationWithCollidingName(me);if(wt&&!(jr(wt)&&_b(wt,me)))return Ft(t.getGeneratedNameForNode(cs(wt)),me)}return me}function _b(me,wt){let oi=_s(wt);if(!oi||oi===me||oi.end<=me.pos||oi.pos>=me.end)return!1;let di=Gg(me);for(;oi;){if(oi===di||oi===me)return!1;if(Cd(oi)&&oi.parent===me)return!0;oi=oi.parent}return!1}function j_(me){return q&1&&P&16?Ft(ie(),me):me}function i1(me,wt){return ia(wt)?t.getInternalName(me):t.createPropertyAccessExpression(t.getInternalName(me),"prototype")}function zm(me,wt){if(!me||!wt||Lt(me.parameters))return!1;let oi=mc(me.body.statements);if(!oi||!Uc(oi)||oi.kind!==244)return!1;let di=oi.expression;if(!Uc(di)||di.kind!==213)return!1;let Zi=di.expression;if(!Uc(Zi)||Zi.kind!==108)return!1;let Tn=Fh(di.arguments);if(!Tn||!Uc(Tn)||Tn.kind!==230)return!1;let ur=Tn.expression;return et(ur)&&ur.escapedText==="arguments"}}function jIt(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}}function L1e(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:a,endLexicalEnvironment:u,hoistFunctionDeclaration:f,hoistVariableDeclaration:p}=e,y=e.getCompilerOptions(),g=Oa(y),x=e.getEmitResolver(),k=e.onSubstituteNode;e.onSubstituteNode=Bt;let T,A,P,R,W,z,q,G,$,te,ne=1,_e,ce,ae,Ce,he=0,ue=0,Ee,ve,be,Se,Re,ie,ke,De;return n0(e,Oe);function Oe(qe){if(qe.isDeclarationFile||!(qe.transformFlags&2048))return qe;let Qt=Qi(qe,we,e);return ib(Qt,e.readEmitHelpers()),Qt}function we(qe){let Qt=qe.transformFlags;return R?Ae(qe):P?Fe(qe):Oc(qe)&&qe.asteriskToken?Be(qe):Qt&2048?Qi(qe,we,e):qe}function Ae(qe){switch(qe.kind){case 246:return na(qe);case 247:return Ai(qe);case 255:return $t(qe);case 256:return yi(qe);default:return Fe(qe)}}function Fe(qe){switch(qe.kind){case 262:return Ge(qe);case 218:return Ke(qe);case 177:case 178:return Ue(qe);case 243:return xt(qe);case 248:return ht(qe);case 249:return ye(qe);case 252:return ut(qe);case 251:return ge(qe);case 253:return je(qe);default:return qe.transformFlags&1048576?Tt(qe):qe.transformFlags&4196352?Qi(qe,we,e):qe}}function Tt(qe){switch(qe.kind){case 226:return nt(qe);case 355:return bn(qe);case 227:return ni(qe);case 229:return Ci(qe);case 209:return Sn(qe);case 210:return Br(qe);case 212:return Gr(qe);case 213:return is(qe);case 214:return Ao(qe);default:return Qi(qe,we,e)}}function Be(qe){switch(qe.kind){case 262:return Ge(qe);case 218:return Ke(qe);default:return B.failBadSyntaxKind(qe)}}function Ge(qe){if(qe.asteriskToken)qe=cr(Ft(t.createFunctionDeclaration(qe.modifiers,void 0,qe.name,void 0,Ql(qe.parameters,we,e),void 0,gt(qe.body)),qe),qe);else{let Qt=P,hn=R;P=!1,R=!1,qe=Qi(qe,we,e),P=Qt,R=hn}if(P){f(qe);return}else return qe}function Ke(qe){if(qe.asteriskToken)qe=cr(Ft(t.createFunctionExpression(void 0,void 0,qe.name,void 0,Ql(qe.parameters,we,e),void 0,gt(qe.body)),qe),qe);else{let Qt=P,hn=R;P=!1,R=!1,qe=Qi(qe,we,e),P=Qt,R=hn}return qe}function Ue(qe){let Qt=P,hn=R;return P=!1,R=!1,qe=Qi(qe,we,e),P=Qt,R=hn,qe}function gt(qe){let Qt=[],hn=P,Jo=R,za=W,Ja=z,wu=q,Nd=G,Mc=$,gc=te,Ju=ne,Zp=_e,Qh=ce,Sp=ae,hm=Ce;P=!0,R=!1,W=void 0,z=void 0,q=void 0,G=void 0,$=void 0,te=void 0,ne=1,_e=void 0,ce=void 0,ae=void 0,Ce=t.createTempVariable(void 0),a();let Wm=t.copyPrologue(qe.statements,Qt,!1,we);Rr(qe.statements,Wm);let yh=Ze();return Wv(Qt,u()),Qt.push(t.createReturnStatement(yh)),P=hn,R=Jo,W=za,z=Ja,q=wu,G=Nd,$=Mc,te=gc,ne=Ju,_e=Zp,ce=Qh,ae=Sp,Ce=hm,Ft(t.createBlock(Qt,qe.multiLine),qe)}function xt(qe){if(qe.transformFlags&1048576){Qn(qe.declarationList);return}else{if(ja(qe)&2097152)return qe;for(let hn of qe.declarationList.declarations)p(hn.name);let Qt=uO(qe.declarationList);return Qt.length===0?void 0:Fa(t.createExpressionStatement(t.inlineExpressions(_i(Qt,Jr))),qe)}}function nt(qe){let Qt=EZ(qe);switch(Qt){case 0:return ci(qe);case 1:return At(qe);default:return B.assertNever(Qt)}}function At(qe){let{left:Qt,right:hn}=qe;if(Y(hn)){let Jo;switch(Qt.kind){case 211:Jo=t.updatePropertyAccessExpression(Qt,fe(B.checkDefined(pt(Qt.expression,we,X_))),Qt.name);break;case 212:Jo=t.updateElementAccessExpression(Qt,fe(B.checkDefined(pt(Qt.expression,we,X_))),fe(B.checkDefined(pt(Qt.argumentExpression,we,Mt))));break;default:Jo=B.checkDefined(pt(Qt,we,Mt));break}let za=qe.operatorToken.kind;return r8(za)?Ft(t.createAssignment(Jo,Ft(t.createBinaryExpression(fe(Jo),o8(za),B.checkDefined(pt(hn,we,Mt))),qe)),qe):t.updateBinaryExpression(qe,Jo,qe.operatorToken,B.checkDefined(pt(hn,we,Mt)))}return Qi(qe,we,e)}function ci(qe){return Y(qe.right)?Pge(qe.operatorToken.kind)?an(qe):qe.operatorToken.kind===28?Fi(qe):t.updateBinaryExpression(qe,fe(B.checkDefined(pt(qe.left,we,Mt))),qe.operatorToken,B.checkDefined(pt(qe.right,we,Mt))):Qi(qe,we,e)}function Fi(qe){let Qt=[];return hn(qe.left),hn(qe.right),t.inlineExpressions(Qt);function hn(Jo){Yn(Jo)&&Jo.operatorToken.kind===28?(hn(Jo.left),hn(Jo.right)):(Y(Jo)&&Qt.length>0&&(H(1,[t.createExpressionStatement(t.inlineExpressions(Qt))]),Qt=[]),Qt.push(B.checkDefined(pt(Jo,we,Mt))))}}function bn(qe){let Qt=[];for(let hn of qe.elements)Yn(hn)&&hn.operatorToken.kind===28?Qt.push(Fi(hn)):(Y(hn)&&Qt.length>0&&(H(1,[t.createExpressionStatement(t.inlineExpressions(Qt))]),Qt=[]),Qt.push(B.checkDefined(pt(hn,we,Mt))));return t.inlineExpressions(Qt)}function an(qe){let Qt=tt(),hn=Wt();return Bo(hn,B.checkDefined(pt(qe.left,we,Mt)),qe.left),qe.operatorToken.kind===56?Ac(Qt,hn,qe.left):pi(Qt,hn,qe.left),Bo(hn,B.checkDefined(pt(qe.right,we,Mt)),qe.right),Qe(Qt),hn}function ni(qe){if(Y(qe.whenTrue)||Y(qe.whenFalse)){let Qt=tt(),hn=tt(),Jo=Wt();return Ac(Qt,B.checkDefined(pt(qe.condition,we,Mt)),qe.condition),Bo(Jo,B.checkDefined(pt(qe.whenTrue,we,Mt)),qe.whenTrue),Ua(hn),Qe(Qt),Bo(Jo,B.checkDefined(pt(qe.whenFalse,we,Mt)),qe.whenFalse),Qe(hn),Jo}return Qi(qe,we,e)}function Ci(qe){let Qt=tt(),hn=pt(qe.expression,we,Mt);if(qe.asteriskToken){let Jo=ja(qe.expression)&8388608?hn:Ft(r().createValuesHelper(hn),qe);Wf(Jo,qe)}else nd(hn,qe);return Qe(Qt),Ko(qe)}function Sn(qe){return nn(qe.elements,void 0,void 0,qe.multiLine)}function nn(qe,Qt,hn,Jo){let za=$e(qe),Ja;if(za>0){Ja=Wt();let Mc=mn(qe,we,Mt,0,za);Bo(Ja,t.createArrayLiteralExpression(Qt?[Qt,...Mc]:Mc)),Qt=void 0}let wu=Of(qe,Nd,[],za);return Ja?t.createArrayConcatCall(Ja,[t.createArrayLiteralExpression(wu,Jo)]):Ft(t.createArrayLiteralExpression(Qt?[Qt,...wu]:wu,Jo),hn);function Nd(Mc,gc){if(Y(gc)&&Mc.length>0){let Ju=Ja!==void 0;Ja||(Ja=Wt()),Bo(Ja,Ju?t.createArrayConcatCall(Ja,[t.createArrayLiteralExpression(Mc,Jo)]):t.createArrayLiteralExpression(Qt?[Qt,...Mc]:Mc,Jo)),Qt=void 0,Mc=[]}return Mc.push(B.checkDefined(pt(gc,we,Mt))),Mc}}function Br(qe){let Qt=qe.properties,hn=qe.multiLine,Jo=$e(Qt),za=Wt();Bo(za,t.createObjectLiteralExpression(mn(Qt,we,G1,0,Jo),hn));let Ja=Of(Qt,wu,[],Jo);return Ja.push(hn?Kf(ic(Ft(t.cloneNode(za),za),za.parent)):za),t.inlineExpressions(Ja);function wu(Nd,Mc){Y(Mc)&&Nd.length>0&&(rc(t.createExpressionStatement(t.inlineExpressions(Nd))),Nd=[]);let gc=Dye(t,qe,Mc,za),Ju=pt(gc,we,Mt);return Ju&&(hn&&Kf(Ju),Nd.push(Ju)),Nd}}function Gr(qe){return Y(qe.argumentExpression)?t.updateElementAccessExpression(qe,fe(B.checkDefined(pt(qe.expression,we,X_))),B.checkDefined(pt(qe.argumentExpression,we,Mt))):Qi(qe,we,e)}function is(qe){if(!fm(qe)&&re(qe.arguments,Y)){let{target:Qt,thisArg:hn}=t.createCallBinding(qe.expression,p,g,!0);return cr(Ft(t.createFunctionApplyCall(fe(B.checkDefined(pt(Qt,we,X_))),hn,nn(qe.arguments)),qe),qe)}return Qi(qe,we,e)}function Ao(qe){if(re(qe.arguments,Y)){let{target:Qt,thisArg:hn}=t.createCallBinding(t.createPropertyAccessExpression(qe.expression,"bind"),p);return cr(Ft(t.createNewExpression(t.createFunctionApplyCall(fe(B.checkDefined(pt(Qt,we,Mt))),hn,nn(qe.arguments,t.createVoidZero())),void 0,[]),qe),qe)}return Qi(qe,we,e)}function Rr(qe,Qt=0){let hn=qe.length;for(let Jo=Qt;Jo0)break;za.push(Jr(wu))}za.length&&(rc(t.createExpressionStatement(t.inlineExpressions(za))),Jo+=za.length,za=[])}}function Jr(qe){return Fa(t.createAssignment(Fa(t.cloneNode(qe.name),qe.name),B.checkDefined(pt(qe.initializer,we,Mt))),qe)}function Dr(qe){if(Y(qe))if(Y(qe.thenStatement)||Y(qe.elseStatement)){let Qt=tt(),hn=qe.elseStatement?tt():void 0;Ac(qe.elseStatement?hn:Qt,B.checkDefined(pt(qe.expression,we,Mt)),qe.expression),xn(qe.thenStatement),qe.elseStatement&&(Ua(Qt),Qe(hn),xn(qe.elseStatement)),Qe(Qt)}else rc(pt(qe,we,_o));else rc(pt(qe,we,_o))}function Do(qe){if(Y(qe)){let Qt=tt(),hn=tt();gi(Qt),Qe(hn),xn(qe.statement),Qe(Qt),pi(hn,B.checkDefined(pt(qe.expression,we,Mt))),Xi()}else rc(pt(qe,we,_o))}function na(qe){return R?(Rn(),qe=Qi(qe,we,e),Xi(),qe):Qi(qe,we,e)}function aa(qe){if(Y(qe)){let Qt=tt(),hn=gi(Qt);Qe(Qt),Ac(hn,B.checkDefined(pt(qe.expression,we,Mt))),xn(qe.statement),Ua(Qt),Xi()}else rc(pt(qe,we,_o))}function Ai(qe){return R?(Rn(),qe=Qi(qe,we,e),Xi(),qe):Qi(qe,we,e)}function Ha(qe){if(Y(qe)){let Qt=tt(),hn=tt(),Jo=gi(hn);if(qe.initializer){let za=qe.initializer;ef(za)?Qn(za):rc(Ft(t.createExpressionStatement(B.checkDefined(pt(za,we,Mt))),za))}Qe(Qt),qe.condition&&Ac(Jo,B.checkDefined(pt(qe.condition,we,Mt))),xn(qe.statement),Qe(hn),qe.incrementor&&rc(Ft(t.createExpressionStatement(B.checkDefined(pt(qe.incrementor,we,Mt))),qe.incrementor)),Ua(Qt),Xi()}else rc(pt(qe,we,_o))}function ht(qe){R&&Rn();let Qt=qe.initializer;if(Qt&&ef(Qt)){for(let Jo of Qt.declarations)p(Jo.name);let hn=uO(Qt);qe=t.updateForStatement(qe,hn.length>0?t.inlineExpressions(_i(hn,Jr)):void 0,pt(qe.condition,we,Mt),pt(qe.incrementor,we,Mt),M_(qe.statement,we,e))}else qe=Qi(qe,we,e);return R&&Xi(),qe}function Jt(qe){if(Y(qe)){let Qt=Wt(),hn=Wt(),Jo=Wt(),za=t.createLoopVariable(),Ja=qe.initializer;p(za),Bo(Qt,B.checkDefined(pt(qe.expression,we,Mt))),Bo(hn,t.createArrayLiteralExpression()),rc(t.createForInStatement(Jo,Qt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(hn,"push"),void 0,[Jo])))),Bo(za,t.createNumericLiteral(0));let wu=tt(),Nd=tt(),Mc=gi(Nd);Qe(wu),Ac(Mc,t.createLessThan(za,t.createPropertyAccessExpression(hn,"length"))),Bo(Jo,t.createElementAccessExpression(hn,za)),Ac(Nd,t.createBinaryExpression(Jo,103,Qt));let gc;if(ef(Ja)){for(let Ju of Ja.declarations)p(Ju.name);gc=t.cloneNode(Ja.declarations[0].name)}else gc=B.checkDefined(pt(Ja,we,Mt)),B.assert(X_(gc));Bo(gc,Jo),xn(qe.statement),Qe(Nd),rc(t.createExpressionStatement(t.createPostfixIncrement(za))),Ua(wu),Xi()}else rc(pt(qe,we,_o))}function ye(qe){R&&Rn();let Qt=qe.initializer;if(ef(Qt)){for(let hn of Qt.declarations)p(hn.name);qe=t.updateForInStatement(qe,Qt.declarations[0].name,B.checkDefined(pt(qe.expression,we,Mt)),B.checkDefined(pt(qe.statement,we,_o,t.liftToBlock)))}else qe=Qi(qe,we,e);return R&&Xi(),qe}function ct(qe){let Qt=ka(qe.label?mr(qe.label):void 0);Qt>0?Ua(Qt,qe):rc(qe)}function ge(qe){if(R){let Qt=ka(qe.label&&mr(qe.label));if(Qt>0)return e_(Qt,qe)}return Qi(qe,we,e)}function He(qe){let Qt=fo(qe.label?mr(qe.label):void 0);Qt>0?Ua(Qt,qe):rc(qe)}function ut(qe){if(R){let Qt=fo(qe.label&&mr(qe.label));if(Qt>0)return e_(Qt,qe)}return Qi(qe,we,e)}function bt(qe){bp(pt(qe.expression,we,Mt),qe)}function je(qe){return id(pt(qe.expression,we,Mt),qe)}function It(qe){Y(qe)?(Dt(fe(B.checkDefined(pt(qe.expression,we,Mt)))),xn(qe.statement),Nt()):rc(pt(qe,we,_o))}function mt(qe){if(Y(qe.caseBlock)){let Qt=qe.caseBlock,hn=Qt.clauses.length,Jo=Vi(),za=fe(B.checkDefined(pt(qe.expression,we,Mt))),Ja=[],wu=-1;for(let gc=0;gc0)break;Mc.push(t.createCaseClause(B.checkDefined(pt(Zp.expression,we,Mt)),[e_(Ja[Ju],Zp.expression)]))}else gc++}Mc.length&&(rc(t.createSwitchStatement(za,t.createCaseBlock(Mc))),Nd+=Mc.length,Mc=[]),gc>0&&(Nd+=gc,gc=0)}wu>=0?Ua(Ja[wu]):Ua(Jo);for(let gc=0;gc=0;hn--){let Jo=G[hn];if(Zl(Jo)){if(Jo.labelText===qe)return!0}else break}return!1}function fo(qe){if(G)if(qe)for(let Qt=G.length-1;Qt>=0;Qt--){let hn=G[Qt];if(Zl(hn)&&hn.labelText===qe)return hn.breakLabel;if(hc(hn)&&Fc(qe,Qt-1))return hn.breakLabel}else for(let Qt=G.length-1;Qt>=0;Qt--){let hn=G[Qt];if(hc(hn))return hn.breakLabel}return 0}function ka(qe){if(G)if(qe)for(let Qt=G.length-1;Qt>=0;Qt--){let hn=G[Qt];if(Uu(hn)&&Fc(qe,Qt-1))return hn.continueLabel}else for(let Qt=G.length-1;Qt>=0;Qt--){let hn=G[Qt];if(Uu(hn))return hn.continueLabel}return 0}function tf(qe){if(qe!==void 0&&qe>0){te===void 0&&(te=[]);let Qt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return te[qe]===void 0?te[qe]=[Qt]:te[qe].push(Qt),Qt}return t.createOmittedExpression()}function Ts(qe){let Qt=t.createNumericLiteral(qe);return lH(Qt,3,jIt(qe)),Qt}function e_(qe,Qt){return B.assertLessThan(0,qe,"Invalid label"),Ft(t.createReturnStatement(t.createArrayLiteralExpression([Ts(3),tf(qe)])),Qt)}function id(qe,Qt){return Ft(t.createReturnStatement(t.createArrayLiteralExpression(qe?[Ts(2),qe]:[Ts(2)])),Qt)}function Ko(qe){return Ft(t.createCallExpression(t.createPropertyAccessExpression(Ce,"sent"),void 0,[]),qe)}function nc(){H(0)}function rc(qe){qe?H(1,[qe]):nc()}function Bo(qe,Qt,hn){H(2,[qe,Qt],hn)}function Ua(qe,Qt){H(3,[qe],Qt)}function pi(qe,Qt,hn){H(4,[qe,Qt],hn)}function Ac(qe,Qt,hn){H(5,[qe,Qt],hn)}function Wf(qe,Qt){H(7,[qe],Qt)}function nd(qe,Qt){H(6,[qe],Qt)}function bp(qe,Qt){H(8,[qe],Qt)}function Fl(qe,Qt){H(9,[qe],Qt)}function $l(){H(10)}function H(qe,Qt,hn){_e===void 0&&(_e=[],ce=[],ae=[]),$===void 0&&Qe(tt());let Jo=_e.length;_e[Jo]=qe,ce[Jo]=Qt,ae[Jo]=hn}function Ze(){he=0,ue=0,Ee=void 0,ve=!1,be=!1,Se=void 0,Re=void 0,ie=void 0,ke=void 0,De=void 0;let qe=Pt();return r().createGeneratorHelper(Hn(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Ce)],void 0,t.createBlock(qe,qe.length>0)),1048576))}function Pt(){if(_e){for(let qe=0;qe<_e.length;qe++)Ya(qe);un(_e.length)}else un(0);if(Se){let qe=t.createPropertyAccessExpression(Ce,"label"),Qt=t.createSwitchStatement(qe,t.createCaseBlock(Se));return[Kf(Qt)]}return Re||[]}function ri(){Re&&(Bi(!ve),ve=!1,be=!1,ue++)}function un(qe){Nr(qe)&&(hr(qe),De=void 0,ku(void 0,void 0)),Re&&Se&&Bi(!1),Pr()}function Nr(qe){if(!be)return!0;if(!$||!te)return!1;for(let Qt=0;Qt<$.length;Qt++)if($[Qt]===qe&&te[Qt])return!0;return!1}function Bi(qe){if(Se||(Se=[]),Re){if(De)for(let Qt=De.length-1;Qt>=0;Qt--){let hn=De[Qt];Re=[t.createWithStatement(hn.expression,t.createBlock(Re))]}if(ke){let{startLabel:Qt,catchLabel:hn,finallyLabel:Jo,endLabel:za}=ke;Re.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(Ce,"trys"),"push"),void 0,[t.createArrayLiteralExpression([tf(Qt),tf(hn),tf(Jo),tf(za)])]))),ke=void 0}qe&&Re.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ce,"label"),t.createNumericLiteral(ue+1))))}Se.push(t.createCaseClause(t.createNumericLiteral(ue),Re||[])),Re=void 0}function hr(qe){if($)for(let Qt=0;Qt<$.length;Qt++)$[Qt]===qe&&(ri(),Ee===void 0&&(Ee=[]),Ee[ue]===void 0?Ee[ue]=[Qt]:Ee[ue].push(Qt))}function Pr(){if(te!==void 0&&Ee!==void 0)for(let qe=0;qeQe.kind===11?r.createAssignment(r.createElementAccessExpression(r.createIdentifier("exports"),r.createStringLiteral(Qe.text)),tt):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(mr(Qe))),tt),r.createVoidZero())));for(let fe of z.exportedFunctions)ht($e,fe);hi($e,pt(z.externalHelpersImportDeclaration,Ee,_o)),Fn($e,mn(Y.statements,Ee,_o,se)),ue($e,!1),Wv($e,f());let rt=r.updateSourceFile(Y,Ft(r.createNodeArray($e),Y.statements));return ib(rt,e.readEmitHelpers()),rt}function _e(Y){let $e=r.createIdentifier("define"),Bt=GR(r,Y,x,y),se=Wh(Y)&&Y,{aliasedModuleNames:rt,unaliasedModuleNames:fe,importAliasNames:Wt}=ae(Y,!0),tt=r.updateSourceFile(Y,Ft(r.createNodeArray([r.createExpressionStatement(r.createCallExpression($e,void 0,[...Bt?[Bt]:[],r.createArrayLiteralExpression(se?F:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...rt,...fe]),se?se.statements.length?se.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...Wt],void 0,he(Y))]))]),Y.statements));return ib(tt,e.readEmitHelpers()),tt}function ce(Y){let{aliasedModuleNames:$e,unaliasedModuleNames:Bt,importAliasNames:se}=ae(Y,!1),rt=GR(r,Y,x,y),fe=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,Ft(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),Hn(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...rt?[rt]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...$e,...Bt]),r.createIdentifier("factory")]))])))],!0),void 0)),Wt=r.updateSourceFile(Y,Ft(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(fe,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...se],void 0,he(Y))]))]),Y.statements));return ib(Wt,e.readEmitHelpers()),Wt}function ae(Y,$e){let Bt=[],se=[],rt=[];for(let fe of Y.amdDependencies)fe.name?(Bt.push(r.createStringLiteral(fe.path)),rt.push(r.createParameterDeclaration(void 0,void 0,fe.name))):se.push(r.createStringLiteral(fe.path));for(let fe of z.externalImports){let Wt=PN(r,fe,W,x,g,y),tt=E4(r,fe,W);Wt&&($e&&tt?(Hn(tt,8),Bt.push(Wt),rt.push(r.createParameterDeclaration(void 0,void 0,tt))):se.push(Wt))}return{aliasedModuleNames:Bt,unaliasedModuleNames:se,importAliasNames:rt}}function Ce(Y){if(Dd(Y)||Nu(Y)||!PN(r,Y,W,x,g,y))return;let $e=E4(r,Y,W),Bt=is(Y,$e);if(Bt!==$e)return r.createExpressionStatement(r.createAssignment($e,Bt))}function he(Y){u();let $e=[],Bt=r.copyPrologue(Y.statements,$e,!0,Ee);te()&&hi($e,ct()),Lt(z.exportedNames)&&hi($e,r.createExpressionStatement(Of(z.exportedNames,(rt,fe)=>fe.kind===11?r.createAssignment(r.createElementAccessExpression(r.createIdentifier("exports"),r.createStringLiteral(fe.text)),rt):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(mr(fe))),rt),r.createVoidZero())));for(let rt of z.exportedFunctions)ht($e,rt);hi($e,pt(z.externalHelpersImportDeclaration,Ee,_o)),T===2&&Fn($e,ro(z.externalImports,Ce)),Fn($e,mn(Y.statements,Ee,_o,Bt)),ue($e,!0),Wv($e,f());let se=r.createBlock($e,!0);return G&&gN(se,WIt),se}function ue(Y,$e){if(z.exportEquals){let Bt=pt(z.exportEquals.expression,Se,Mt);if(Bt)if($e){let se=r.createReturnStatement(Bt);Ft(se,z.exportEquals),Hn(se,3840),Y.push(se)}else{let se=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Bt));Ft(se,z.exportEquals),Hn(se,3072),Y.push(se)}}}function Ee(Y){switch(Y.kind){case 272:return Ao(Y);case 271:return xn(Y);case 278:return Eo(Y);case 277:return it(Y);default:return ve(Y)}}function ve(Y){switch(Y.kind){case 243:return Qn(Y);case 262:return si(Y);case 263:return dn(Y);case 248:return De(Y,!0);case 249:return Oe(Y);case 250:return we(Y);case 246:return Ae(Y);case 247:return Fe(Y);case 256:return Tt(Y);case 254:return Be(Y);case 245:return Ge(Y);case 255:return Ke(Y);case 269:return Ue(Y);case 296:return gt(Y);case 297:return xt(Y);case 258:return nt(Y);case 299:return At(Y);case 241:return ci(Y);default:return Se(Y)}}function be(Y,$e){if(!(Y.transformFlags&276828160))return Y;switch(Y.kind){case 248:return De(Y,!1);case 244:return Fi(Y);case 217:return bn(Y,$e);case 354:return an(Y,$e);case 213:if(fm(Y)&&x.shouldTransformImportCall(W))return Ci(Y);break;case 226:if(sS(Y))return ke(Y,$e);break;case 224:case 225:return ni(Y,$e)}return Qi(Y,Se,e)}function Se(Y){return be(Y,!1)}function Re(Y){return be(Y,!0)}function ie(Y){if(ba(Y))for(let $e of Y.properties)switch($e.kind){case 303:if(ie($e.initializer))return!0;break;case 304:if(ie($e.name))return!0;break;case 305:if(ie($e.expression))return!0;break;case 174:case 177:case 178:return!1;default:B.assertNever($e,"Unhandled object member kind")}else if(yf(Y)){for(let $e of Y.elements)if(fh($e)){if(ie($e.expression))return!0}else if(ie($e))return!0}else if(et(Y))return K(nr(Y))>(PH(Y)?1:0);return!1}function ke(Y,$e){return ie(Y.left)?NE(Y,Se,e,0,!$e,Jr):Qi(Y,Se,e)}function De(Y,$e){if($e&&Y.initializer&&ef(Y.initializer)&&!(Y.initializer.flags&7)){let Bt=Ai(void 0,Y.initializer,!1);if(Bt){let se=[],rt=pt(Y.initializer,Re,ef),fe=r.createVariableStatement(void 0,rt);se.push(fe),Fn(se,Bt);let Wt=pt(Y.condition,Se,Mt),tt=pt(Y.incrementor,Re,Mt),Qe=M_(Y.statement,$e?ve:Se,e);return se.push(r.updateForStatement(Y,void 0,Wt,tt,Qe)),se}}return r.updateForStatement(Y,pt(Y.initializer,Re,rh),pt(Y.condition,Se,Mt),pt(Y.incrementor,Re,Mt),M_(Y.statement,$e?ve:Se,e))}function Oe(Y){if(ef(Y.initializer)&&!(Y.initializer.flags&7)){let $e=Ai(void 0,Y.initializer,!0);if(Lt($e)){let Bt=pt(Y.initializer,Re,rh),se=pt(Y.expression,Se,Mt),rt=M_(Y.statement,ve,e),fe=Ds(rt)?r.updateBlock(rt,[...$e,...rt.statements]):r.createBlock([...$e,rt],!0);return r.updateForInStatement(Y,Bt,se,fe)}}return r.updateForInStatement(Y,pt(Y.initializer,Re,rh),pt(Y.expression,Se,Mt),M_(Y.statement,ve,e))}function we(Y){if(ef(Y.initializer)&&!(Y.initializer.flags&7)){let $e=Ai(void 0,Y.initializer,!0),Bt=pt(Y.initializer,Re,rh),se=pt(Y.expression,Se,Mt),rt=M_(Y.statement,ve,e);return Lt($e)&&(rt=Ds(rt)?r.updateBlock(rt,[...$e,...rt.statements]):r.createBlock([...$e,rt],!0)),r.updateForOfStatement(Y,Y.awaitModifier,Bt,se,rt)}return r.updateForOfStatement(Y,Y.awaitModifier,pt(Y.initializer,Re,rh),pt(Y.expression,Se,Mt),M_(Y.statement,ve,e))}function Ae(Y){return r.updateDoStatement(Y,M_(Y.statement,ve,e),pt(Y.expression,Se,Mt))}function Fe(Y){return r.updateWhileStatement(Y,pt(Y.expression,Se,Mt),M_(Y.statement,ve,e))}function Tt(Y){return r.updateLabeledStatement(Y,Y.label,pt(Y.statement,ve,_o,r.liftToBlock)??Ft(r.createEmptyStatement(),Y.statement))}function Be(Y){return r.updateWithStatement(Y,pt(Y.expression,Se,Mt),B.checkDefined(pt(Y.statement,ve,_o,r.liftToBlock)))}function Ge(Y){return r.updateIfStatement(Y,pt(Y.expression,Se,Mt),pt(Y.thenStatement,ve,_o,r.liftToBlock)??r.createBlock([]),pt(Y.elseStatement,ve,_o,r.liftToBlock))}function Ke(Y){return r.updateSwitchStatement(Y,pt(Y.expression,Se,Mt),B.checkDefined(pt(Y.caseBlock,ve,BO)))}function Ue(Y){return r.updateCaseBlock(Y,mn(Y.clauses,ve,bz))}function gt(Y){return r.updateCaseClause(Y,pt(Y.expression,Se,Mt),mn(Y.statements,ve,_o))}function xt(Y){return Qi(Y,ve,e)}function nt(Y){return Qi(Y,ve,e)}function At(Y){return r.updateCatchClause(Y,Y.variableDeclaration,B.checkDefined(pt(Y.block,ve,Ds)))}function ci(Y){return Y=Qi(Y,ve,e),Y}function Fi(Y){return r.updateExpressionStatement(Y,pt(Y.expression,Re,Mt))}function bn(Y,$e){return r.updateParenthesizedExpression(Y,pt(Y.expression,$e?Re:Se,Mt))}function an(Y,$e){return r.updatePartiallyEmittedExpression(Y,pt(Y.expression,$e?Re:Se,Mt))}function ni(Y,$e){if((Y.operator===46||Y.operator===47)&&et(Y.operand)&&!yl(Y.operand)&&!sb(Y.operand)&&!GZ(Y.operand)){let Bt=nr(Y.operand);if(Bt){let se,rt=pt(Y.operand,Se,Mt);mk(Y)?rt=r.updatePrefixUnaryExpression(Y,rt):(rt=r.updatePostfixUnaryExpression(Y,rt),$e||(se=r.createTempVariable(p),rt=r.createAssignment(se,rt),Ft(rt,Y)),rt=r.createComma(rt,r.cloneNode(Y.operand)),Ft(rt,Y));for(let fe of Bt)q[ac(rt)]=!0,rt=He(fe,rt),Ft(rt,Y);return se&&(q[ac(rt)]=!0,rt=r.createComma(rt,se),Ft(rt,Y)),rt}}return Qi(Y,Se,e)}function Ci(Y){if(T===0&&k>=7)return Qi(Y,Se,e);let $e=PN(r,Y,W,x,g,y),Bt=pt(mc(Y.arguments),Se,Mt),se=$e&&(!Bt||!Da(Bt)||Bt.text!==$e.text)?$e:Bt,rt=!!(Y.transformFlags&16384);switch(y.module){case 2:return nn(se,rt);case 3:return Sn(se??r.createVoidZero(),rt);case 1:default:return Br(se)}}function Sn(Y,$e){if(G=!0,yT(Y)){let Bt=yl(Y)?Y:Da(Y)?r.createStringLiteralFromNode(Y):Hn(Ft(r.cloneNode(Y),Y),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Br(Y),void 0,nn(Bt,$e))}else{let Bt=r.createTempVariable(p);return r.createComma(r.createAssignment(Bt,Y),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Br(Bt,!0),void 0,nn(Bt,$e)))}}function nn(Y,$e){let Bt=r.createUniqueName("resolve"),se=r.createUniqueName("reject"),rt=[r.createParameterDeclaration(void 0,void 0,Bt),r.createParameterDeclaration(void 0,void 0,se)],fe=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([Y||r.createOmittedExpression()]),Bt,se]))]),Wt;k>=2?Wt=r.createArrowFunction(void 0,void 0,rt,void 0,void 0,fe):(Wt=r.createFunctionExpression(void 0,void 0,void 0,void 0,rt,void 0,fe),$e&&Hn(Wt,16));let tt=r.createNewExpression(r.createIdentifier("Promise"),void 0,[Wt]);return qv(y)?r.createCallExpression(r.createPropertyAccessExpression(tt,r.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):tt}function Br(Y,$e){let Bt=Y&&!sy(Y)&&!$e,se=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Bt?k>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(Y,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[Y])]:[]),rt=r.createCallExpression(r.createIdentifier("require"),void 0,Bt?[r.createIdentifier("s")]:Y?[Y]:[]);qv(y)&&(rt=a().createImportStarHelper(rt));let fe=Bt?[r.createParameterDeclaration(void 0,void 0,"s")]:[],Wt;return k>=2?Wt=r.createArrowFunction(void 0,void 0,fe,void 0,void 0,rt):Wt=r.createFunctionExpression(void 0,void 0,void 0,void 0,fe,void 0,r.createBlock([r.createReturnStatement(rt)])),r.createCallExpression(r.createPropertyAccessExpression(se,"then"),void 0,[Wt])}function Gr(Y,$e){return!qv(y)||Cg(Y)&2?$e:o1e(Y)?a().createImportStarHelper($e):$e}function is(Y,$e){return!qv(y)||Cg(Y)&2?$e:mU(Y)?a().createImportStarHelper($e):die(Y)?a().createImportDefaultHelper($e):$e}function Ao(Y){let $e,Bt=YP(Y);if(T!==2)if(Y.importClause){let se=[];Bt&&!KI(Y)?se.push(r.createVariableDeclaration(r.cloneNode(Bt.name),void 0,void 0,is(Y,Rr(Y)))):(se.push(r.createVariableDeclaration(r.getGeneratedNameForNode(Y),void 0,void 0,is(Y,Rr(Y)))),Bt&&KI(Y)&&se.push(r.createVariableDeclaration(r.cloneNode(Bt.name),void 0,void 0,r.getGeneratedNameForNode(Y)))),$e=hi($e,cr(Ft(r.createVariableStatement(void 0,r.createVariableDeclarationList(se,k>=2?2:0)),Y),Y))}else return cr(Ft(r.createExpressionStatement(Rr(Y)),Y),Y);else Bt&&KI(Y)&&($e=hi($e,r.createVariableStatement(void 0,r.createVariableDeclarationList([cr(Ft(r.createVariableDeclaration(r.cloneNode(Bt.name),void 0,void 0,r.getGeneratedNameForNode(Y)),Y),Y)],k>=2?2:0))));return $e=Do($e,Y),pg($e)}function Rr(Y){let $e=PN(r,Y,W,x,g,y),Bt=[];return $e&&Bt.push($e),r.createCallExpression(r.createIdentifier("require"),void 0,Bt)}function xn(Y){B.assert(nk(Y),"import= for internal module references should be handled in an earlier transformer.");let $e;return T!==2?Ar(Y,32)?$e=hi($e,cr(Ft(r.createExpressionStatement(He(Y.name,Rr(Y))),Y),Y)):$e=hi($e,cr(Ft(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(Y.name),void 0,void 0,Rr(Y))],k>=2?2:0)),Y),Y)):Ar(Y,32)&&($e=hi($e,cr(Ft(r.createExpressionStatement(He(r.getExportName(Y),r.getLocalName(Y))),Y),Y))),$e=na($e,Y),pg($e)}function Eo(Y){if(!Y.moduleSpecifier)return;let $e=r.getGeneratedNameForNode(Y);if(Y.exportClause&&_h(Y.exportClause)){let Bt=[];T!==2&&Bt.push(cr(Ft(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration($e,void 0,void 0,Rr(Y))])),Y),Y));for(let se of Y.exportClause.elements){let rt=se.propertyName||se.name,Wt=!!qv(y)&&!(Cg(Y)&2)&&qy(rt)?a().createImportDefaultHelper($e):$e,tt=rt.kind===11?r.createElementAccessExpression(Wt,rt):r.createPropertyAccessExpression(Wt,rt);Bt.push(cr(Ft(r.createExpressionStatement(He(se.name.kind===11?r.cloneNode(se.name):r.getExportName(se),tt,void 0,!0)),se),se))}return pg(Bt)}else if(Y.exportClause){let Bt=[];return Bt.push(cr(Ft(r.createExpressionStatement(He(r.cloneNode(Y.exportClause.name),Gr(Y,T!==2?Rr(Y):Lz(Y)||Y.exportClause.name.kind===11?$e:r.createIdentifier(mr(Y.exportClause.name))))),Y),Y)),pg(Bt)}else return cr(Ft(r.createExpressionStatement(a().createExportStarHelper(T!==2?Rr(Y):$e)),Y),Y)}function it(Y){if(!Y.isExportEquals)return ge(r.createIdentifier("default"),pt(Y.expression,Se,Mt),Y,!0)}function si(Y){let $e;return Ar(Y,32)?$e=hi($e,cr(Ft(r.createFunctionDeclaration(mn(Y.modifiers,ut,xa),Y.asteriskToken,r.getDeclarationName(Y,!0,!0),void 0,mn(Y.parameters,Se,To),void 0,Qi(Y.body,Se,e)),Y),Y)):$e=hi($e,Qi(Y,Se,e)),pg($e)}function dn(Y){let $e;return Ar(Y,32)?$e=hi($e,cr(Ft(r.createClassDeclaration(mn(Y.modifiers,ut,vl),r.getDeclarationName(Y,!0,!0),void 0,mn(Y.heritageClauses,Se,$p),mn(Y.members,Se,Cd)),Y),Y)):$e=hi($e,Qi(Y,Se,e)),$e=ht($e,Y),pg($e)}function Qn(Y){let $e,Bt,se;if(Ar(Y,32)){let rt,fe=!1;for(let Wt of Y.declarationList.declarations)if(et(Wt.name)&&sb(Wt.name))if(rt||(rt=mn(Y.modifiers,ut,xa)),Wt.initializer){let tt=r.updateVariableDeclaration(Wt,Wt.name,void 0,void 0,He(Wt.name,pt(Wt.initializer,Se,Mt)));Bt=hi(Bt,tt)}else Bt=hi(Bt,Wt);else if(Wt.initializer)if(!Rs(Wt.name)&&(rl(Wt.initializer)||Yc(Wt.initializer)||Qu(Wt.initializer))){let tt=r.createAssignment(Ft(r.createPropertyAccessExpression(r.createIdentifier("exports"),Wt.name),Wt.name),r.createIdentifier(Hh(Wt.name))),Qe=r.createVariableDeclaration(Wt.name,Wt.exclamationToken,Wt.type,pt(Wt.initializer,Se,Mt));Bt=hi(Bt,Qe),se=hi(se,tt),fe=!0}else se=hi(se,Dr(Wt));if(Bt&&($e=hi($e,r.updateVariableStatement(Y,rt,r.updateVariableDeclarationList(Y.declarationList,Bt)))),se){let Wt=cr(Ft(r.createExpressionStatement(r.inlineExpressions(se)),Y),Y);fe&&OR(Wt),$e=hi($e,Wt)}}else $e=hi($e,Qi(Y,Se,e));return $e=aa($e,Y),pg($e)}function Jr(Y,$e,Bt){let se=nr(Y);if(se){let rt=PH(Y)?$e:r.createAssignment(Y,$e);for(let fe of se)Hn(rt,8),rt=He(fe,rt,Bt);return rt}return r.createAssignment(Y,$e)}function Dr(Y){return Rs(Y.name)?NE(pt(Y,Se,yR),Se,e,0,!1,Jr):r.createAssignment(Ft(r.createPropertyAccessExpression(r.createIdentifier("exports"),Y.name),Y.name),Y.initializer?pt(Y.initializer,Se,Mt):r.createVoidZero())}function Do(Y,$e){if(z.exportEquals)return Y;let Bt=$e.importClause;if(!Bt)return Y;let se=new B4;Bt.name&&(Y=Jt(Y,se,Bt));let rt=Bt.namedBindings;if(rt)switch(rt.kind){case 274:Y=Jt(Y,se,rt);break;case 275:for(let fe of rt.elements)Y=Jt(Y,se,fe,!0);break}return Y}function na(Y,$e){return z.exportEquals?Y:Jt(Y,new B4,$e)}function aa(Y,$e){return Ai(Y,$e.declarationList,!1)}function Ai(Y,$e,Bt){if(z.exportEquals)return Y;for(let se of $e.declarations)Y=Ha(Y,se,Bt);return Y}function Ha(Y,$e,Bt){if(z.exportEquals)return Y;if(Rs($e.name))for(let se of $e.name.elements)Ed(se)||(Y=Ha(Y,se,Bt));else!yl($e.name)&&(!Ur($e)||$e.initializer||Bt)&&(Y=Jt(Y,new B4,$e));return Y}function ht(Y,$e){if(z.exportEquals)return Y;let Bt=new B4;if(Ar($e,32)){let se=Ar($e,2048)?r.createIdentifier("default"):r.getDeclarationName($e);Y=ye(Y,Bt,se,r.getLocalName($e),$e)}return $e.name&&(Y=Jt(Y,Bt,$e)),Y}function Jt(Y,$e,Bt,se){let rt=r.getDeclarationName(Bt),fe=z.exportSpecifiers.get(rt);if(fe)for(let Wt of fe)Y=ye(Y,$e,Wt.name,rt,Wt.name,void 0,se);return Y}function ye(Y,$e,Bt,se,rt,fe,Wt){if(Bt.kind!==11){if($e.has(Bt))return Y;$e.set(Bt,!0)}return Y=hi(Y,ge(Bt,se,rt,fe,Wt)),Y}function ct(){let Y=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])]));return Hn(Y,2097152),Y}function ge(Y,$e,Bt,se,rt){let fe=Ft(r.createExpressionStatement(He(Y,$e,void 0,rt)),Bt);return Kf(fe),se||Hn(fe,3072),fe}function He(Y,$e,Bt,se){return Ft(se?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(Y),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement($e)])))])]):r.createAssignment(Y.kind===11?r.createElementAccessExpression(r.createIdentifier("exports"),r.cloneNode(Y)):r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(Y)),$e),Bt)}function ut(Y){switch(Y.kind){case 95:case 90:return}return Y}function bt(Y,$e,Bt){$e.kind===307?(W=$e,z=R[R_(W)],P(Y,$e,Bt),W=void 0,z=void 0):P(Y,$e,Bt)}function je(Y,$e){return $e=A(Y,$e),$e.id&&q[$e.id]?$e:Y===1?mt($e):jf($e)?It($e):$e}function It(Y){let $e=Y.name,Bt=yi($e);if(Bt!==$e){if(Y.objectAssignmentInitializer){let se=r.createAssignment(Bt,Y.objectAssignmentInitializer);return Ft(r.createPropertyAssignment($e,se),Y)}return Ft(r.createPropertyAssignment($e,Bt),Y)}return Y}function mt(Y){switch(Y.kind){case 80:return yi(Y);case 213:return $t(Y);case 215:return _t(Y);case 226:return Ii(Y)}return Y}function $t(Y){if(et(Y.expression)){let $e=yi(Y.expression);if(q[ac($e)]=!0,!et($e)&&!(ja(Y.expression)&8192))return mN(r.updateCallExpression(Y,$e,void 0,Y.arguments),16)}return Y}function _t(Y){if(et(Y.tag)){let $e=yi(Y.tag);if(q[ac($e)]=!0,!et($e)&&!(ja(Y.tag)&8192))return mN(r.updateTaggedTemplateExpression(Y,$e,void 0,Y.template),16)}return Y}function yi(Y){var $e,Bt;if(ja(Y)&8192){let se=OH(W);return se?r.createPropertyAccessExpression(se,Y):Y}else if(!(yl(Y)&&!(Y.emitNode.autoGenerate.flags&64))&&!sb(Y)){let se=g.getReferencedExportContainer(Y,PH(Y));if(se&&se.kind===307)return Ft(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(Y)),Y);let rt=g.getReferencedImportDeclaration(Y);if(rt){if(Zg(rt))return Ft(r.createPropertyAccessExpression(r.getGeneratedNameForNode(rt.parent),r.createIdentifier("default")),Y);if(F_(rt)){let fe=rt.propertyName||rt.name,Wt=r.getGeneratedNameForNode(((Bt=($e=rt.parent)==null?void 0:$e.parent)==null?void 0:Bt.parent)||rt);return Ft(fe.kind===11?r.createElementAccessExpression(Wt,r.cloneNode(fe)):r.createPropertyAccessExpression(Wt,r.cloneNode(fe)),Y)}}}return Y}function Ii(Y){if(Q1(Y.operatorToken.kind)&&et(Y.left)&&(!yl(Y.left)||fM(Y.left))&&!sb(Y.left)){let $e=nr(Y.left);if($e){let Bt=Y;for(let se of $e)q[ac(Bt)]=!0,Bt=He(se,Bt,Y);return Bt}}return Y}function nr(Y){if(yl(Y)){if(fM(Y)){let $e=z?.exportSpecifiers.get(Y);if($e){let Bt=[];for(let se of $e)Bt.push(se.name);return Bt}}}else{let $e=g.getReferencedImportDeclaration(Y);if($e)return z?.exportedBindings[R_($e)];let Bt=new Set,se=g.getReferencedValueDeclarations(Y);if(se){for(let rt of se){let fe=z?.exportedBindings[R_(rt)];if(fe)for(let Wt of fe)Bt.add(Wt)}if(Bt.size)return as(Bt)}}}}var WIt={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function O1e(e){let{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:a,hoistVariableDeclaration:u}=e,f=e.getCompilerOptions(),p=e.getEmitResolver(),y=e.getEmitHost(),g=e.onSubstituteNode,x=e.onEmitNode;e.onSubstituteNode=He,e.onEmitNode=ge,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(307);let k=[],T=[],A=[],P=[],R,W,z,q,G,$,te;return n0(e,ne);function ne(Y){if(Y.isDeclarationFile||!(HI(Y,f)||Y.transformFlags&8388608))return Y;let $e=R_(Y);R=Y,$=Y,W=k[$e]=fie(e,Y),z=t.createUniqueName("exports"),T[$e]=z,q=P[$e]=t.createUniqueName("context");let Bt=_e(W.externalImports),se=ce(Y,Bt),rt=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,z),t.createParameterDeclaration(void 0,void 0,q)],void 0,se),fe=GR(t,Y,y,f),Wt=t.createArrayLiteralExpression(_i(Bt,Qe=>Qe.name)),tt=Hn(t.updateSourceFile(Y,Ft(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,fe?[fe,Wt,rt]:[Wt,rt]))]),Y.statements)),2048);return f.outFile||H0e(tt,se,Qe=>!Qe.scoped),te&&(A[$e]=te,te=void 0),R=void 0,W=void 0,z=void 0,q=void 0,G=void 0,$=void 0,tt}function _e(Y){let $e=new Map,Bt=[];for(let se of Y){let rt=PN(t,se,R,y,p,f);if(rt){let fe=rt.text,Wt=$e.get(fe);Wt!==void 0?Bt[Wt].externalImports.push(se):($e.set(fe,Bt.length),Bt.push({name:rt,externalImports:[se]}))}}return Bt}function ce(Y,$e){let Bt=[];r();let se=Rf(f,"alwaysStrict")||dd(R),rt=t.copyPrologue(Y.statements,Bt,se,ue);Bt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(q,t.createPropertyAccessExpression(q,"id")))]))),pt(W.externalHelpersImportDeclaration,ue,_o);let fe=mn(Y.statements,ue,_o,rt);Fn(Bt,G),Wv(Bt,a());let Wt=ae(Bt),tt=Y.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Qe=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",he(Wt,$e)),t.createPropertyAssignment("execute",t.createFunctionExpression(tt,void 0,void 0,void 0,[],void 0,t.createBlock(fe,!0)))],!0);return Bt.push(t.createReturnStatement(Qe)),t.createBlock(Bt,!0)}function ae(Y){if(!W.hasExportStarsToExportValues)return;if(!Lt(W.exportedNames)&&W.exportedFunctions.size===0&&W.exportSpecifiers.size===0){let rt=!1;for(let fe of W.externalImports)if(fe.kind===278&&fe.exportClause){rt=!0;break}if(!rt){let fe=Ce(void 0);return Y.push(fe),fe.name}}let $e=[];if(W.exportedNames)for(let rt of W.exportedNames)qy(rt)||$e.push(t.createPropertyAssignment(t.createStringLiteralFromNode(rt),t.createTrue()));for(let rt of W.exportedFunctions)Ar(rt,2048)||(B.assert(!!rt.name),$e.push(t.createPropertyAssignment(t.createStringLiteralFromNode(rt.name),t.createTrue())));let Bt=t.createUniqueName("exportedNames");Y.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Bt,void 0,void 0,t.createObjectLiteralExpression($e,!0))])));let se=Ce(Bt);return Y.push(se),se.name}function Ce(Y){let $e=t.createUniqueName("exportStar"),Bt=t.createIdentifier("m"),se=t.createIdentifier("n"),rt=t.createIdentifier("exports"),fe=t.createStrictInequality(se,t.createStringLiteral("default"));return Y&&(fe=t.createLogicalAnd(fe,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(Y,"hasOwnProperty"),void 0,[se])))),t.createFunctionDeclaration(void 0,void 0,$e,void 0,[t.createParameterDeclaration(void 0,void 0,Bt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(rt,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(se)]),Bt,t.createBlock([Hn(t.createIfStatement(fe,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(rt,se),t.createElementAccessExpression(Bt,se)))),1)])),t.createExpressionStatement(t.createCallExpression(z,void 0,[rt]))],!0))}function he(Y,$e){let Bt=[];for(let se of $e){let rt=re(se.externalImports,tt=>E4(t,tt,R)),fe=rt?t.getGeneratedNameForNode(rt):t.createUniqueName(""),Wt=[];for(let tt of se.externalImports){let Qe=E4(t,tt,R);switch(tt.kind){case 272:if(!tt.importClause)break;case 271:B.assert(Qe!==void 0),Wt.push(t.createExpressionStatement(t.createAssignment(Qe,fe))),Ar(tt,32)&&Wt.push(t.createExpressionStatement(t.createCallExpression(z,void 0,[t.createStringLiteral(mr(Qe)),fe])));break;case 278:if(B.assert(Qe!==void 0),tt.exportClause)if(_h(tt.exportClause)){let ei=[];for(let In of tt.exportClause.elements)ei.push(t.createPropertyAssignment(t.createStringLiteral(vx(In.name)),t.createElementAccessExpression(fe,t.createStringLiteral(vx(In.propertyName||In.name)))));Wt.push(t.createExpressionStatement(t.createCallExpression(z,void 0,[t.createObjectLiteralExpression(ei,!0)])))}else Wt.push(t.createExpressionStatement(t.createCallExpression(z,void 0,[t.createStringLiteral(vx(tt.exportClause.name)),fe])));else Wt.push(t.createExpressionStatement(t.createCallExpression(Y,void 0,[fe])));break}}Bt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,fe)],void 0,t.createBlock(Wt,!0)))}return t.createArrayLiteralExpression(Bt,!0)}function ue(Y){switch(Y.kind){case 272:return Ee(Y);case 271:return be(Y);case 278:return ve(Y);case 277:return Se(Y);default:return Fi(Y)}}function Ee(Y){let $e;return Y.importClause&&u(E4(t,Y,R)),pg(Be($e,Y))}function ve(Y){B.assertIsDefined(Y)}function be(Y){B.assert(nk(Y),"import= for internal module references should be handled in an earlier transformer.");let $e;return u(E4(t,Y,R)),pg(Ge($e,Y))}function Se(Y){if(Y.isExportEquals)return;let $e=pt(Y.expression,Dr,Mt);return At(t.createIdentifier("default"),$e,!0)}function Re(Y){Ar(Y,32)?G=hi(G,t.updateFunctionDeclaration(Y,mn(Y.modifiers,ct,vl),Y.asteriskToken,t.getDeclarationName(Y,!0,!0),void 0,mn(Y.parameters,Dr,To),void 0,pt(Y.body,Dr,Ds))):G=hi(G,Qi(Y,Dr,e)),G=gt(G,Y)}function ie(Y){let $e,Bt=t.getLocalName(Y);return u(Bt),$e=hi($e,Ft(t.createExpressionStatement(t.createAssignment(Bt,Ft(t.createClassExpression(mn(Y.modifiers,ct,vl),Y.name,void 0,mn(Y.heritageClauses,Dr,$p),mn(Y.members,Dr,Cd)),Y))),Y)),$e=gt($e,Y),pg($e)}function ke(Y){if(!Oe(Y.declarationList))return pt(Y,Dr,_o);let $e;if(AM(Y.declarationList)||NM(Y.declarationList)){let Bt=mn(Y.modifiers,ct,vl),se=[];for(let fe of Y.declarationList.declarations)se.push(t.updateVariableDeclaration(fe,t.getGeneratedNameForNode(fe.name),void 0,void 0,we(fe,!1)));let rt=t.updateVariableDeclarationList(Y.declarationList,se);$e=hi($e,t.updateVariableStatement(Y,Bt,rt))}else{let Bt,se=Ar(Y,32);for(let rt of Y.declarationList.declarations)rt.initializer?Bt=hi(Bt,we(rt,se)):De(rt);Bt&&($e=hi($e,Ft(t.createExpressionStatement(t.inlineExpressions(Bt)),Y)))}return $e=Ke($e,Y,!1),pg($e)}function De(Y){if(Rs(Y.name))for(let $e of Y.name.elements)Ed($e)||De($e);else u(t.cloneNode(Y.name))}function Oe(Y){return(ja(Y)&4194304)===0&&($.kind===307||(El(Y).flags&7)===0)}function we(Y,$e){let Bt=$e?Ae:Fe;return Rs(Y.name)?NE(Y,Dr,e,0,!1,Bt):Y.initializer?Bt(Y.name,pt(Y.initializer,Dr,Mt)):Y.name}function Ae(Y,$e,Bt){return Tt(Y,$e,Bt,!0)}function Fe(Y,$e,Bt){return Tt(Y,$e,Bt,!1)}function Tt(Y,$e,Bt,se){return u(t.cloneNode(Y)),se?ci(Y,Ii(Ft(t.createAssignment(Y,$e),Bt))):Ii(Ft(t.createAssignment(Y,$e),Bt))}function Be(Y,$e){if(W.exportEquals)return Y;let Bt=$e.importClause;if(!Bt)return Y;Bt.name&&(Y=xt(Y,Bt));let se=Bt.namedBindings;if(se)switch(se.kind){case 274:Y=xt(Y,se);break;case 275:for(let rt of se.elements)Y=xt(Y,rt);break}return Y}function Ge(Y,$e){return W.exportEquals?Y:xt(Y,$e)}function Ke(Y,$e,Bt){if(W.exportEquals)return Y;for(let se of $e.declarationList.declarations)(se.initializer||Bt)&&(Y=Ue(Y,se,Bt));return Y}function Ue(Y,$e,Bt){if(W.exportEquals)return Y;if(Rs($e.name))for(let se of $e.name.elements)Ed(se)||(Y=Ue(Y,se,Bt));else if(!yl($e.name)){let se;Bt&&(Y=nt(Y,$e.name,t.getLocalName($e)),se=mr($e.name)),Y=xt(Y,$e,se)}return Y}function gt(Y,$e){if(W.exportEquals)return Y;let Bt;if(Ar($e,32)){let se=Ar($e,2048)?t.createStringLiteral("default"):$e.name;Y=nt(Y,se,t.getLocalName($e)),Bt=Hh(se)}return $e.name&&(Y=xt(Y,$e,Bt)),Y}function xt(Y,$e,Bt){if(W.exportEquals)return Y;let se=t.getDeclarationName($e),rt=W.exportSpecifiers.get(se);if(rt)for(let fe of rt)vx(fe.name)!==Bt&&(Y=nt(Y,fe.name,se));return Y}function nt(Y,$e,Bt,se){return Y=hi(Y,At($e,Bt,se)),Y}function At(Y,$e,Bt){let se=t.createExpressionStatement(ci(Y,$e));return Kf(se),Bt||Hn(se,3072),se}function ci(Y,$e){let Bt=et(Y)?t.createStringLiteralFromNode(Y):Y;return Hn($e,ja($e)|3072),ud(t.createCallExpression(z,void 0,[Bt,$e]),$e)}function Fi(Y){switch(Y.kind){case 243:return ke(Y);case 262:return Re(Y);case 263:return ie(Y);case 248:return bn(Y,!0);case 249:return an(Y);case 250:return ni(Y);case 246:return nn(Y);case 247:return Br(Y);case 256:return Gr(Y);case 254:return is(Y);case 245:return Ao(Y);case 255:return Rr(Y);case 269:return xn(Y);case 296:return Eo(Y);case 297:return it(Y);case 258:return si(Y);case 299:return dn(Y);case 241:return Qn(Y);default:return Dr(Y)}}function bn(Y,$e){let Bt=$;return $=Y,Y=t.updateForStatement(Y,pt(Y.initializer,$e?Sn:Do,rh),pt(Y.condition,Dr,Mt),pt(Y.incrementor,Do,Mt),M_(Y.statement,$e?Fi:Dr,e)),$=Bt,Y}function an(Y){let $e=$;return $=Y,Y=t.updateForInStatement(Y,Sn(Y.initializer),pt(Y.expression,Dr,Mt),M_(Y.statement,Fi,e)),$=$e,Y}function ni(Y){let $e=$;return $=Y,Y=t.updateForOfStatement(Y,Y.awaitModifier,Sn(Y.initializer),pt(Y.expression,Dr,Mt),M_(Y.statement,Fi,e)),$=$e,Y}function Ci(Y){return ef(Y)&&Oe(Y)}function Sn(Y){if(Ci(Y)){let $e;for(let Bt of Y.declarations)$e=hi($e,we(Bt,!1)),Bt.initializer||De(Bt);return $e?t.inlineExpressions($e):t.createOmittedExpression()}else return pt(Y,Do,rh)}function nn(Y){return t.updateDoStatement(Y,M_(Y.statement,Fi,e),pt(Y.expression,Dr,Mt))}function Br(Y){return t.updateWhileStatement(Y,pt(Y.expression,Dr,Mt),M_(Y.statement,Fi,e))}function Gr(Y){return t.updateLabeledStatement(Y,Y.label,pt(Y.statement,Fi,_o,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}function is(Y){return t.updateWithStatement(Y,pt(Y.expression,Dr,Mt),B.checkDefined(pt(Y.statement,Fi,_o,t.liftToBlock)))}function Ao(Y){return t.updateIfStatement(Y,pt(Y.expression,Dr,Mt),pt(Y.thenStatement,Fi,_o,t.liftToBlock)??t.createBlock([]),pt(Y.elseStatement,Fi,_o,t.liftToBlock))}function Rr(Y){return t.updateSwitchStatement(Y,pt(Y.expression,Dr,Mt),B.checkDefined(pt(Y.caseBlock,Fi,BO)))}function xn(Y){let $e=$;return $=Y,Y=t.updateCaseBlock(Y,mn(Y.clauses,Fi,bz)),$=$e,Y}function Eo(Y){return t.updateCaseClause(Y,pt(Y.expression,Dr,Mt),mn(Y.statements,Fi,_o))}function it(Y){return Qi(Y,Fi,e)}function si(Y){return Qi(Y,Fi,e)}function dn(Y){let $e=$;return $=Y,Y=t.updateCatchClause(Y,Y.variableDeclaration,B.checkDefined(pt(Y.block,Fi,Ds))),$=$e,Y}function Qn(Y){let $e=$;return $=Y,Y=Qi(Y,Fi,e),$=$e,Y}function Jr(Y,$e){if(!(Y.transformFlags&276828160))return Y;switch(Y.kind){case 248:return bn(Y,!1);case 244:return na(Y);case 217:return aa(Y,$e);case 354:return Ai(Y,$e);case 226:if(sS(Y))return ht(Y,$e);break;case 213:if(fm(Y))return Ha(Y);break;case 224:case 225:return ye(Y,$e)}return Qi(Y,Dr,e)}function Dr(Y){return Jr(Y,!1)}function Do(Y){return Jr(Y,!0)}function na(Y){return t.updateExpressionStatement(Y,pt(Y.expression,Do,Mt))}function aa(Y,$e){return t.updateParenthesizedExpression(Y,pt(Y.expression,$e?Do:Dr,Mt))}function Ai(Y,$e){return t.updatePartiallyEmittedExpression(Y,pt(Y.expression,$e?Do:Dr,Mt))}function Ha(Y){let $e=PN(t,Y,R,y,p,f),Bt=pt(mc(Y.arguments),Dr,Mt),se=$e&&(!Bt||!Da(Bt)||Bt.text!==$e.text)?$e:Bt;return t.createCallExpression(t.createPropertyAccessExpression(q,t.createIdentifier("import")),void 0,se?[se]:[])}function ht(Y,$e){return Jt(Y.left)?NE(Y,Dr,e,0,!$e):Qi(Y,Dr,e)}function Jt(Y){if(Hd(Y,!0))return Jt(Y.left);if(fh(Y))return Jt(Y.expression);if(ba(Y))return Lt(Y.properties,Jt);if(yf(Y))return Lt(Y.elements,Jt);if(jf(Y))return Jt(Y.name);if(ed(Y))return Jt(Y.initializer);if(et(Y)){let $e=p.getReferencedExportContainer(Y);return $e!==void 0&&$e.kind===307}else return!1}function ye(Y,$e){if((Y.operator===46||Y.operator===47)&&et(Y.operand)&&!yl(Y.operand)&&!sb(Y.operand)&&!GZ(Y.operand)){let Bt=_t(Y.operand);if(Bt){let se,rt=pt(Y.operand,Dr,Mt);mk(Y)?rt=t.updatePrefixUnaryExpression(Y,rt):(rt=t.updatePostfixUnaryExpression(Y,rt),$e||(se=t.createTempVariable(u),rt=t.createAssignment(se,rt),Ft(rt,Y)),rt=t.createComma(rt,t.cloneNode(Y.operand)),Ft(rt,Y));for(let fe of Bt)rt=ci(fe,Ii(rt));return se&&(rt=t.createComma(rt,se),Ft(rt,Y)),rt}}return Qi(Y,Dr,e)}function ct(Y){switch(Y.kind){case 95:case 90:return}return Y}function ge(Y,$e,Bt){if($e.kind===307){let se=R_($e);R=$e,W=k[se],z=T[se],te=A[se],q=P[se],te&&delete A[se],x(Y,$e,Bt),R=void 0,W=void 0,z=void 0,q=void 0,te=void 0}else x(Y,$e,Bt)}function He(Y,$e){return $e=g(Y,$e),nr($e)?$e:Y===1?je($e):Y===4?ut($e):$e}function ut(Y){switch(Y.kind){case 304:return bt(Y)}return Y}function bt(Y){var $e,Bt;let se=Y.name;if(!yl(se)&&!sb(se)){let rt=p.getReferencedImportDeclaration(se);if(rt){if(Zg(rt))return Ft(t.createPropertyAssignment(t.cloneNode(se),t.createPropertyAccessExpression(t.getGeneratedNameForNode(rt.parent),t.createIdentifier("default"))),Y);if(F_(rt)){let fe=rt.propertyName||rt.name,Wt=t.getGeneratedNameForNode(((Bt=($e=rt.parent)==null?void 0:$e.parent)==null?void 0:Bt.parent)||rt);return Ft(t.createPropertyAssignment(t.cloneNode(se),fe.kind===11?t.createElementAccessExpression(Wt,t.cloneNode(fe)):t.createPropertyAccessExpression(Wt,t.cloneNode(fe))),Y)}}}return Y}function je(Y){switch(Y.kind){case 80:return It(Y);case 226:return mt(Y);case 236:return $t(Y)}return Y}function It(Y){var $e,Bt;if(ja(Y)&8192){let se=OH(R);return se?t.createPropertyAccessExpression(se,Y):Y}if(!yl(Y)&&!sb(Y)){let se=p.getReferencedImportDeclaration(Y);if(se){if(Zg(se))return Ft(t.createPropertyAccessExpression(t.getGeneratedNameForNode(se.parent),t.createIdentifier("default")),Y);if(F_(se)){let rt=se.propertyName||se.name,fe=t.getGeneratedNameForNode(((Bt=($e=se.parent)==null?void 0:$e.parent)==null?void 0:Bt.parent)||se);return Ft(rt.kind===11?t.createElementAccessExpression(fe,t.cloneNode(rt)):t.createPropertyAccessExpression(fe,t.cloneNode(rt)),Y)}}}return Y}function mt(Y){if(Q1(Y.operatorToken.kind)&&et(Y.left)&&(!yl(Y.left)||fM(Y.left))&&!sb(Y.left)){let $e=_t(Y.left);if($e){let Bt=Y;for(let se of $e)Bt=ci(se,Ii(Bt));return Bt}}return Y}function $t(Y){return JP(Y)?t.createPropertyAccessExpression(q,t.createIdentifier("meta")):Y}function _t(Y){let $e,Bt=yi(Y);if(Bt){let se=p.getReferencedExportContainer(Y,!1);se&&se.kind===307&&($e=hi($e,t.getDeclarationName(Bt))),$e=Fn($e,W?.exportedBindings[R_(Bt)])}else if(yl(Y)&&fM(Y)){let se=W?.exportSpecifiers.get(Y);if(se){let rt=[];for(let fe of se)rt.push(fe.name);return rt}}return $e}function yi(Y){if(!yl(Y)){let $e=p.getReferencedImportDeclaration(Y);if($e)return $e;let Bt=p.getReferencedValueDeclaration(Y);if(Bt&&W?.exportedBindings[R_(Bt)])return Bt;let se=p.getReferencedValueDeclarations(Y);if(se){for(let rt of se)if(rt!==Bt&&W?.exportedBindings[R_(rt)])return rt}return Bt}}function Ii(Y){return te===void 0&&(te=[]),te[ac(Y)]=!0,Y}function nr(Y){return te&&Y.id&&te[Y.id]}}function Sie(e){let{factory:t,getEmitHelperFactory:r}=e,a=e.getEmitHost(),u=e.getEmitResolver(),f=e.getCompilerOptions(),p=Oa(f),y=e.onEmitNode,g=e.onSubstituteNode;e.onEmitNode=te,e.onSubstituteNode=ne,e.enableEmitNotification(307),e.enableSubstitution(80);let x,k,T;return n0(e,A);function A(ce){if(ce.isDeclarationFile)return ce;if(dd(ce)||Jh(f)){k=ce,T=void 0;let ae=P(ce);return k=void 0,T&&(ae=t.updateSourceFile(ae,Ft(t.createNodeArray(VQ(ae.statements.slice(),T)),ae.statements))),!dd(ce)||p_(f)===200||Lt(ae.statements,yM)?ae:t.updateSourceFile(ae,Ft(t.createNodeArray([...ae.statements,JR(t)]),ae.statements))}return ce}function P(ce){let ae=ste(t,r(),ce,f);if(ae){let Ce=[],he=t.copyPrologue(ce.statements,Ce);return hi(Ce,ae),Fn(Ce,mn(ce.statements,R,_o,he)),t.updateSourceFile(ce,Ft(t.createNodeArray(Ce),ce.statements))}else return Qi(ce,R,e)}function R(ce){switch(ce.kind){case 271:return p_(f)>=100?z(ce):void 0;case 277:return G(ce);case 278:return $(ce)}return ce}function W(ce){let ae=PN(t,ce,B.checkDefined(k),a,u,f),Ce=[];if(ae&&Ce.push(ae),p_(f)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,Ce);if(!T){let ue=t.createUniqueName("_createRequire",48),Ee=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),ue)])),t.createStringLiteral("module"),void 0),ve=t.createUniqueName("__require",48),be=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ve,void 0,void 0,t.createCallExpression(t.cloneNode(ue),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],p>=2?2:0));T=[Ee,be]}let he=T[1].declarationList.declarations[0].name;return B.assertNode(he,et),t.createCallExpression(t.cloneNode(he),void 0,Ce)}function z(ce){B.assert(nk(ce),"import= for internal module references should be handled in an earlier transformer.");let ae;return ae=hi(ae,cr(Ft(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(ce.name),void 0,void 0,W(ce))],p>=2?2:0)),ce),ce)),ae=q(ae,ce),pg(ae)}function q(ce,ae){return Ar(ae,32)&&(ce=hi(ce,t.createExportDeclaration(void 0,ae.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,mr(ae.name))])))),ce}function G(ce){return ce.isExportEquals?p_(f)===200?cr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),ce.expression)),ce):void 0:ce}function $(ce){if(f.module!==void 0&&f.module>5||!ce.exportClause||!Zy(ce.exportClause)||!ce.moduleSpecifier)return ce;let ae=ce.exportClause.name,Ce=t.getGeneratedNameForNode(ae),he=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(Ce)),ce.moduleSpecifier,ce.attributes);cr(he,ce.exportClause);let ue=Lz(ce)?t.createExportDefault(Ce):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,Ce,ae)]));return cr(ue,ce),[he,ue]}function te(ce,ae,Ce){mo(ae)?((dd(ae)||Jh(f))&&f.importHelpers&&(x=new Map),y(ce,ae,Ce),x=void 0):y(ce,ae,Ce)}function ne(ce,ae){return ae=g(ce,ae),x&&et(ae)&&ja(ae)&8192?_e(ae):ae}function _e(ce){let ae=mr(ce),Ce=x.get(ae);return Ce||x.set(ae,Ce=t.createUniqueName(ae,48)),Ce}}function F1e(e){let t=e.onSubstituteNode,r=e.onEmitNode,a=Sie(e),u=e.onSubstituteNode,f=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;let p=bie(e),y=e.onSubstituteNode,g=e.onEmitNode,x=q=>e.getEmitHost().getEmitModuleFormatOfFile(q);e.onSubstituteNode=T,e.onEmitNode=A,e.enableSubstitution(307),e.enableEmitNotification(307);let k;return W;function T(q,G){return mo(G)?(k=G,t(q,G)):k?x(k)>=5?u(q,G):y(q,G):t(q,G)}function A(q,G,$){return mo(G)&&(k=G),k?x(k)>=5?f(q,G,$):g(q,G,$):r(q,G,$)}function P(q){return x(q)>=5?a:p}function R(q){if(q.isDeclarationFile)return q;k=q;let G=P(q)(q);return k=void 0,B.assert(mo(G)),G}function W(q){return q.kind===307?R(q):z(q)}function z(q){return e.factory.createBundle(_i(q.sourceFiles,R))}}function kU(e){return Ur(e)||ls(e)||ep(e)||Wa(e)||z0(e)||Yb(e)||WR(e)||xN(e)||pu(e)||Z0(e)||xu(e)||To(e)||Sl(e)||nb(e)||Dd(e)||$h(e)||Ol(e)||sT(e)||lr(e)||nl(e)||Yn(e)||Vh(e)}function M1e(e){if(z0(e)||Yb(e))return t;return Z0(e)||pu(e)?a:mS(e);function t(f){let p=r(f);return p!==void 0?{diagnosticMessage:p,errorNode:e,typeName:e.name}:void 0}function r(f){return ia(e)?f.errorModuleName?f.accessibility===2?S.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?f.errorModuleName?f.accessibility===2?S.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S.Public_property_0_of_exported_class_has_or_is_using_private_name_1:f.errorModuleName?S.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:S.Property_0_of_exported_interface_has_or_is_using_private_name_1}function a(f){let p=u(f);return p!==void 0?{diagnosticMessage:p,errorNode:e,typeName:e.name}:void 0}function u(f){return ia(e)?f.errorModuleName?f.accessibility===2?S.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?f.errorModuleName?f.accessibility===2?S.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S.Public_method_0_of_exported_class_has_or_is_using_private_name_1:f.errorModuleName?S.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:S.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function mS(e){if(Ur(e)||ls(e)||ep(e)||lr(e)||nl(e)||Yn(e)||Wa(e)||Ol(e))return r;return z0(e)||Yb(e)?a:WR(e)||xN(e)||pu(e)||Z0(e)||xu(e)||sT(e)?u:To(e)?Wp(e,e.parent)&&Ar(e.parent,2)?r:f:Sl(e)?y:nb(e)?g:Dd(e)?x:$h(e)||Vh(e)?k:B.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${B.formatSyntaxKind(e.kind)}`);function t(T){if(e.kind===260||e.kind===208)return T.errorModuleName?T.accessibility===2?S.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:S.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&Ar(e.parent,2))return ia(e)?T.errorModuleName?T.accessibility===2?S.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?T.errorModuleName?T.accessibility===2?S.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S.Public_property_0_of_exported_class_has_or_is_using_private_name_1:T.errorModuleName?S.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:S.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(T){let A=t(T);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function a(T){let A;return e.kind===178?ia(e)?A=T.errorModuleName?S.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:A=T.errorModuleName?S.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ia(e)?A=T.errorModuleName?T.accessibility===2?S.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:A=T.errorModuleName?T.accessibility===2?S.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:A,errorNode:e.name,typeName:e.name}}function u(T){let A;switch(e.kind){case 180:A=T.errorModuleName?S.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:A=T.errorModuleName?S.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:A=T.errorModuleName?S.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:ia(e)?A=T.errorModuleName?T.accessibility===2?S.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:S.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:S.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?A=T.errorModuleName?T.accessibility===2?S.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:S.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:S.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:A=T.errorModuleName?S.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:A=T.errorModuleName?T.accessibility===2?S.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:S.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:S.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return B.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:A,errorNode:e.name||e}}function f(T){let A=p(T);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function p(T){switch(e.parent.kind){case 176:return T.errorModuleName?T.accessibility===2?S.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:S.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return T.errorModuleName?S.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return T.errorModuleName?S.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return T.errorModuleName?S.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return ia(e.parent)?T.errorModuleName?T.accessibility===2?S.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:S.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?T.errorModuleName?T.accessibility===2?S.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:S.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T.errorModuleName?S.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return T.errorModuleName?T.accessibility===2?S.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:S.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return T.errorModuleName?T.accessibility===2?S.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:S.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return B.fail(`Unknown parent for parameter: ${B.formatSyntaxKind(e.parent.kind)}`)}}function y(){let T;switch(e.parent.kind){case 263:T=S.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:T=S.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:T=S.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:T=S.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:T=S.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:ia(e.parent)?T=S.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?T=S.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T=S.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:T=S.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:T=S.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:T=S.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return B.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:T,errorNode:e,typeName:e.name}}function g(){let T;return Zu(e.parent.parent)?T=$p(e.parent)&&e.parent.token===119?S.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?S.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:S.extends_clause_of_exported_class_has_or_is_using_private_name_0:T=S.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:T,errorNode:e,typeName:cs(e.parent.parent)}}function x(){return{diagnosticMessage:S.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function k(T){return{diagnosticMessage:T.errorModuleName?S.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:S.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Vh(e)?B.checkDefined(e.typeExpression):e.type,typeName:Vh(e)?cs(e):e.name}}}function R1e(e){let t={219:S.Add_a_return_type_to_the_function_expression,218:S.Add_a_return_type_to_the_function_expression,174:S.Add_a_return_type_to_the_method,177:S.Add_a_return_type_to_the_get_accessor_declaration,178:S.Add_a_type_to_parameter_of_the_set_accessor_declaration,262:S.Add_a_return_type_to_the_function_declaration,180:S.Add_a_return_type_to_the_function_declaration,169:S.Add_a_type_annotation_to_the_parameter_0,260:S.Add_a_type_annotation_to_the_variable_0,172:S.Add_a_type_annotation_to_the_property_0,171:S.Add_a_type_annotation_to_the_property_0,277:S.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},r={218:S.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,262:S.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,219:S.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,174:S.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,180:S.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,177:S.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:S.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,169:S.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,260:S.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:S.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,171:S.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,167:S.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,305:S.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,304:S.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,209:S.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,277:S.Default_exports_can_t_be_inferred_with_isolatedDeclarations,230:S.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return a;function a(z){if(Ri(z,$p))return Mn(z,S.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((U0(z)||aT(z.parent))&&(G_(z)||Xc(z)))return R(z);switch(B.type(z),z.kind){case 177:case 178:return f(z);case 167:case 304:case 305:return y(z);case 209:case 230:return g(z);case 174:case 180:case 218:case 219:case 262:return x(z);case 208:return k(z);case 172:case 260:return T(z);case 169:return A(z);case 303:return W(z.initializer);case 231:return P(z);default:return W(z)}}function u(z){let q=Ri(z,G=>ll(G)||_o(G)||Ur(G)||ls(G)||To(G));if(q)return ll(q)?q:qh(q)?Ri(q,G=>Oc(G)&&!Ol(G)):_o(q)?void 0:q}function f(z){let{getAccessor:q,setAccessor:G}=Sx(z.symbol.declarations,z),$=(z0(z)?z.parameters[0]:z)??z,te=Mn($,r[z.kind]);return G&&Xs(te,Mn(G,t[G.kind])),q&&Xs(te,Mn(q,t[q.kind])),te}function p(z,q){let G=u(z);if(G){let $=ll(G)||!G.name?"":Jl(G.name,!1);Xs(q,Mn(G,t[G.kind],$))}return q}function y(z){let q=Mn(z,r[z.kind]);return p(z,q),q}function g(z){let q=Mn(z,r[z.kind]);return p(z,q),q}function x(z){let q=Mn(z,r[z.kind]);return p(z,q),Xs(q,Mn(z,t[z.kind])),q}function k(z){return Mn(z,S.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function T(z){let q=Mn(z,r[z.kind]),G=Jl(z.name,!1);return Xs(q,Mn(z,t[z.kind],G)),q}function A(z){if(z0(z.parent))return f(z.parent);let q=e.requiresAddingImplicitUndefined(z,void 0);if(!q&&z.initializer)return W(z.initializer);let G=q?S.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations:r[z.kind],$=Mn(z,G),te=Jl(z.name,!1);return Xs($,Mn(z,t[z.kind],te)),$}function P(z){return W(z,S.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function R(z){let q=Mn(z,S.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Jl(z,!1));return p(z,q),q}function W(z,q){let G=u(z),$;if(G){let te=ll(G)||!G.name?"":Jl(G.name,!1),ne=Ri(z.parent,_e=>ll(_e)||(_o(_e)?"quit":!O_(_e)&&!jee(_e)&&!OO(_e)));G===ne?($=Mn(z,q??r[G.kind]),Xs($,Mn(G,t[G.kind],te))):($=Mn(z,q??S.Expression_type_can_t_be_inferred_with_isolatedDeclarations),Xs($,Mn(G,t[G.kind],te)),Xs($,Mn(z,S.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else $=Mn(z,q??S.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return $}}function B1e(e,t,r){let a=e.getCompilerOptions(),u=Di(mV(e,r),Qz);return sn(u,r)?S5(t,e,U,a,[r],[xie],!1).diagnostics:void 0}var y5=531469,v5=8;function xie(e){let t=()=>B.fail("Diagnostic emitted without context"),r=t,a=!0,u=!1,f=!1,p=!1,y=!1,g,x,k,T,{factory:A}=e,P=e.getEmitHost(),R={trackSymbol:ve,reportInaccessibleThisError:ke,reportInaccessibleUniqueSymbolError:Re,reportCyclicStructureError:ie,reportPrivateInBaseOfClassExpression:be,reportLikelyUnsafeImportRequiredError:De,reportTruncationError:Oe,moduleResolverHost:P,reportNonlocalAugmentation:we,reportNonSerializableProperty:Ae,reportInferenceFallback:ue},W,z,q,G,$,te,ne=e.getEmitResolver(),_e=e.getCompilerOptions(),ce=R1e(ne),{stripInternal:ae,isolatedDeclarations:Ce}=_e;return Tt;function he(ye){ne.getPropertiesOfContainerFunction(ye).forEach(ct=>{if(pN(ct.valueDeclaration)){let ge=Yn(ct.valueDeclaration)?ct.valueDeclaration.left:ct.valueDeclaration;e.addDiagnostic(Mn(ge,S.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function ue(ye){!Ce||N_(q)||en(ye)===q&&(Ur(ye)&&ne.isExpandoFunctionDeclaration(ye)?he(ye):e.addDiagnostic(ce(ye)))}function Ee(ye){if(ye.accessibility===0){if(ye.aliasesToMakeVisible)if(!x)x=ye.aliasesToMakeVisible;else for(let ct of ye.aliasesToMakeVisible)jc(x,ct)}else if(ye.accessibility!==3){let ct=r(ye);if(ct)return ct.typeName?e.addDiagnostic(Mn(ye.errorNode||ct.errorNode,ct.diagnosticMessage,Jl(ct.typeName),ye.errorSymbolName,ye.errorModuleName)):e.addDiagnostic(Mn(ye.errorNode||ct.errorNode,ct.diagnosticMessage,ye.errorSymbolName,ye.errorModuleName)),!0}return!1}function ve(ye,ct,ge){return ye.flags&262144?!1:Ee(ne.isSymbolAccessible(ye,ct,ge,!0))}function be(ye){(W||z)&&e.addDiagnostic(Xs(Mn(W||z,S.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,ye),...Ur((W||z).parent)?[Mn(W||z,S.Add_a_type_annotation_to_the_variable_0,Se())]:[]))}function Se(){return W?Hc(W):z&&cs(z)?Hc(cs(z)):z&&ll(z)?z.isExportEquals?"export=":"default":"(Missing)"}function Re(){(W||z)&&e.addDiagnostic(Mn(W||z,S.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Se(),"unique symbol"))}function ie(){(W||z)&&e.addDiagnostic(Mn(W||z,S.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Se()))}function ke(){(W||z)&&e.addDiagnostic(Mn(W||z,S.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Se(),"this"))}function De(ye){(W||z)&&e.addDiagnostic(Mn(W||z,S.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Se(),ye))}function Oe(){(W||z)&&e.addDiagnostic(Mn(W||z,S.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function we(ye,ct,ge){var He;let ut=(He=ct.declarations)==null?void 0:He.find(je=>en(je)===ye),bt=Di(ge.declarations,je=>en(je)!==ye);if(ut&&bt)for(let je of bt)e.addDiagnostic(Xs(Mn(je,S.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Mn(ut,S.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Ae(ye){(W||z)&&e.addDiagnostic(Mn(W||z,S.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,ye))}function Fe(ye){let ct=r;r=He=>He.errorNode&&kU(He.errorNode)?mS(He.errorNode)(He):{diagnosticMessage:He.errorModuleName?S.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:S.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:He.errorNode||ye};let ge=ne.getDeclarationStatementsForSourceFile(ye,y5,v5,R);return r=ct,ge}function Tt(ye){if(ye.kind===307&&ye.isDeclarationFile)return ye;if(ye.kind===308){u=!0,G=[],$=[],te=[];let mt=!1,$t=A.createBundle(_i(ye.sourceFiles,yi=>{if(yi.isDeclarationFile)return;if(mt=mt||yi.hasNoDefaultLib,q=yi,g=yi,x=void 0,T=!1,k=new Map,r=t,p=!1,y=!1,He(yi),Vp(yi)||Wh(yi)){f=!1,a=!1;let nr=N_(yi)?A.createNodeArray(Fe(yi)):mn(yi.statements,xn,_o);return A.updateSourceFile(yi,[A.createModuleDeclaration([A.createModifier(138)],A.createStringLiteral(LZ(e.getEmitHost(),yi)),A.createModuleBlock(Ft(A.createNodeArray(is(nr)),yi.statements)))],!0,[],[],!1,[])}a=!0;let Ii=N_(yi)?A.createNodeArray(Fe(yi)):mn(yi.statements,xn,_o);return A.updateSourceFile(yi,is(Ii),!0,[],[],!1,[])})),_t=Or(ff(u8(ye,P,!0).declarationFilePath));return $t.syntheticFileReferences=It(_t),$t.syntheticTypeReferences=bt(),$t.syntheticLibReferences=je(),$t.hasNoDefaultLib=mt,$t}a=!0,p=!1,y=!1,g=ye,q=ye,r=t,u=!1,f=!1,T=!1,x=void 0,k=new Map,G=[],$=[],te=[],He(q);let ct;if(N_(q))ct=A.createNodeArray(Fe(ye));else{let mt=mn(ye.statements,xn,_o);ct=Ft(A.createNodeArray(is(mt)),ye.statements),dd(ye)&&(!f||p&&!y)&&(ct=Ft(A.createNodeArray([...ct,JR(A)]),ct))}let ge=Or(ff(u8(ye,P,!0).declarationFilePath));return A.updateSourceFile(ye,ct,!0,It(ge),bt(),ye.hasNoDefaultLib,je());function He(mt){G=Fo(G,_i(mt.referencedFiles,$t=>[mt,$t])),$=Fo($,mt.typeReferenceDirectives),te=Fo(te,mt.libReferenceDirectives)}function ut(mt){let $t={...mt};return $t.pos=-1,$t.end=-1,$t}function bt(){return ro($,mt=>{if(mt.preserve)return ut(mt)})}function je(){return ro(te,mt=>{if(mt.preserve)return ut(mt)})}function It(mt){return ro(G,([$t,_t])=>{if(!_t.preserve)return;let yi=P.getSourceFileFromReference($t,_t);if(!yi)return;let Ii;if(yi.isDeclarationFile)Ii=yi.fileName;else{if(u&&sn(ye.sourceFiles,yi))return;let $e=u8(yi,P,!0);Ii=$e.declarationFilePath||$e.jsFilePath||yi.fileName}if(!Ii)return;let nr=LI(mt,Ii,P.getCurrentDirectory(),P.getCanonicalFileName,!1),Y=ut(_t);return Y.fileName=nr,Y})}}function Be(ye){if(ye.kind===80)return ye;return ye.kind===207?A.updateArrayBindingPattern(ye,mn(ye.elements,ct,hz)):A.updateObjectBindingPattern(ye,mn(ye.elements,ct,Wa));function ct(ge){return ge.kind===232?ge:(ge.propertyName&&Ma(ge.propertyName)&&Xc(ge.propertyName.expression)&&ni(ge.propertyName.expression,g),A.updateBindingElement(ge,ge.dotDotDotToken,ge.propertyName,Be(ge.name),void 0))}}function Ge(ye,ct,ge){let He;T||(He=r,r=mS(ye));let ut=A.updateParameterDeclaration(ye,VIt(A,ye,ct),ye.dotDotDotToken,Be(ye.name),ne.isOptionalParameter(ye)?ye.questionToken||A.createToken(58):void 0,gt(ye,ge||ye.type,!0),Ue(ye));return T||(r=He),ut}function Ke(ye){return R5e(ye)&&!!ye.initializer&&ne.isLiteralConstDeclaration(_s(ye))}function Ue(ye){if(Ke(ye)){let ct=A0e(ye.initializer);return oH(ct)||ue(ye),ne.createLiteralConstValue(_s(ye,R5e),R)}}function gt(ye,ct,ge){if(!ge&&Jp(ye,2)||Ke(ye))return;let He=ye.kind===169&&ne.requiresAddingImplicitUndefined(ye,g);if(ct&&!He)return pt(ct,Ao,io);W=ye.name;let ut;T||(ut=r,r=mS(ye));let bt;switch(ye.kind){case 169:case 171:case 172:case 208:case 260:bt=ne.createTypeOfDeclaration(ye,g,y5,v5,R);break;case 262:case 180:case 173:case 174:case 177:case 179:bt=ne.createReturnTypeOfSignatureDeclaration(ye,g,y5,v5,R);break;default:B.assertNever(ye)}return W=void 0,T||(r=ut),bt??A.createKeywordTypeNode(133)}function xt(ye){switch(ye=_s(ye),ye.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!ne.isDeclarationVisible(ye);case 260:return!At(ye);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function nt(ye){var ct;if(ye.body)return!0;let ge=(ct=ye.symbol.declarations)==null?void 0:ct.filter(He=>xu(He)&&!He.body);return!ge||ge.indexOf(ye)===ge.length-1}function At(ye){return Ed(ye)?!1:Rs(ye.name)?Lt(ye.name.elements,At):ne.isDeclarationVisible(ye)}function ci(ye,ct,ge){if(Jp(ye,2))return A.createNodeArray();let He=_i(ct,ut=>Ge(ut,ge));return He?A.createNodeArray(He,ct.hasTrailingComma):A.createNodeArray()}function Fi(ye,ct){let ge;if(!ct){let He=Qw(ye);He&&(ge=[Ge(He)])}if(qp(ye)){let He;if(!ct){let ut=o4(ye);if(ut){let bt=ht(ye,Sx(ba(ye.parent)?ye.parent.properties:ye.parent.members,ye));He=Ge(ut,void 0,bt)}}He||(He=A.createParameterDeclaration(void 0,void 0,"value")),ge=hi(ge,He)}return A.createNodeArray(ge||F)}function bn(ye,ct){return Jp(ye,2)?void 0:mn(ct,Ao,Sl)}function an(ye){return mo(ye)||$h(ye)||Hu(ye)||Zu(ye)||vf(ye)||vs(ye)||sT(ye)||yE(ye)}function ni(ye,ct){let ge=ne.isEntityNameVisible(ye,ct);Ee(ge)}function Ci(ye,ct){return dm(ye)&&dm(ct)&&(ye.jsDoc=ct.jsDoc),ud(ye,Q0(ct))}function Sn(ye,ct){if(ct){if(f=f||ye.kind!==267&&ye.kind!==205,xc(ct)&&u){let ge=gge(e.getEmitHost(),ne,ye);if(ge)return A.createStringLiteral(ge)}return ct}}function nn(ye){if(ne.isDeclarationVisible(ye))if(ye.moduleReference.kind===283){let ct=q3(ye);return A.updateImportEqualsDeclaration(ye,ye.modifiers,ye.isTypeOnly,ye.name,A.updateExternalModuleReference(ye.moduleReference,Sn(ye,ct)))}else{let ct=r;return r=mS(ye),ni(ye.moduleReference,g),r=ct,ye}}function Br(ye){if(!ye.importClause)return A.updateImportDeclaration(ye,ye.modifiers,ye.importClause,Sn(ye,ye.moduleSpecifier),Gr(ye.attributes));let ct=ye.importClause&&ye.importClause.name&&ne.isDeclarationVisible(ye.importClause)?ye.importClause.name:void 0;if(!ye.importClause.namedBindings)return ct&&A.updateImportDeclaration(ye,ye.modifiers,A.updateImportClause(ye.importClause,ye.importClause.isTypeOnly,ct,void 0),Sn(ye,ye.moduleSpecifier),Gr(ye.attributes));if(ye.importClause.namedBindings.kind===274){let He=ne.isDeclarationVisible(ye.importClause.namedBindings)?ye.importClause.namedBindings:void 0;return ct||He?A.updateImportDeclaration(ye,ye.modifiers,A.updateImportClause(ye.importClause,ye.importClause.isTypeOnly,ct,He),Sn(ye,ye.moduleSpecifier),Gr(ye.attributes)):void 0}let ge=ro(ye.importClause.namedBindings.elements,He=>ne.isDeclarationVisible(He)?He:void 0);if(ge&&ge.length||ct)return A.updateImportDeclaration(ye,ye.modifiers,A.updateImportClause(ye.importClause,ye.importClause.isTypeOnly,ct,ge&&ge.length?A.updateNamedImports(ye.importClause.namedBindings,ge):void 0),Sn(ye,ye.moduleSpecifier),Gr(ye.attributes));if(ne.isImportRequiredByAugmentation(ye))return Ce&&e.addDiagnostic(Mn(ye,S.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),A.updateImportDeclaration(ye,ye.modifiers,void 0,Sn(ye,ye.moduleSpecifier),Gr(ye.attributes))}function Gr(ye){let ct=z4(ye);return ye&&ct!==void 0?ye:void 0}function is(ye){for(;K(x);){let ge=x.shift();if(!Fz(ge))return B.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${B.formatSyntaxKind(ge.kind)}`);let He=a;a=ge.parent&&mo(ge.parent)&&!(dd(ge.parent)&&u);let ut=si(ge);a=He,k.set(R_(ge),ut)}return mn(ye,ct,_o);function ct(ge){if(Fz(ge)){let He=R_(ge);if(k.has(He)){let ut=k.get(He);return k.delete(He),ut&&((ds(ut)?Lt(ut,gz):gz(ut))&&(p=!0),mo(ge.parent)&&(ds(ut)?Lt(ut,yM):yM(ut))&&(f=!0)),ut}}return ge}}function Ao(ye){if(Do(ye))return;if(mf(ye)){if(xt(ye))return;if(Y1(ye)){if(Ce){if(!ne.isDefinitelyReferenceToGlobalSymbolObject(ye.name.expression)){if(Zu(ye.parent)||ba(ye.parent)){e.addDiagnostic(Mn(ye,S.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((vf(ye.parent)||L_(ye.parent))&&!Xc(ye.name.expression)){e.addDiagnostic(Mn(ye,S.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!ne.isLateBound(_s(ye))||!Xc(ye.name.expression))return}}if(vs(ye)&&ne.isImplementationOfOverload(ye)||lye(ye))return;let ct;an(ye)&&(ct=g,g=ye);let ge=r,He=kU(ye),ut=T,bt=(ye.kind===187||ye.kind===200)&&ye.parent.kind!==265;if((pu(ye)||Z0(ye))&&Jp(ye,2))return ye.symbol&&ye.symbol.declarations&&ye.symbol.declarations[0]!==ye?void 0:je(A.createPropertyDeclaration(Ai(ye),ye.name,void 0,void 0,void 0));if(He&&!T&&(r=mS(ye)),aT(ye)&&ni(ye.exprName,g),bt&&(T=!0),UIt(ye))switch(ye.kind){case 233:{(G_(ye.expression)||Xc(ye.expression))&&ni(ye.expression,g);let It=Qi(ye,Ao,e);return je(A.updateExpressionWithTypeArguments(It,It.expression,It.typeArguments))}case 183:{ni(ye.typeName,g);let It=Qi(ye,Ao,e);return je(A.updateTypeReferenceNode(It,It.typeName,It.typeArguments))}case 180:return je(A.updateConstructSignature(ye,bn(ye,ye.typeParameters),ci(ye,ye.parameters),gt(ye,ye.type)));case 176:{let It=A.createConstructorDeclaration(Ai(ye),ci(ye,ye.parameters,0),void 0);return je(It)}case 174:{if(xo(ye.name))return je(void 0);let It=A.createMethodDeclaration(Ai(ye),void 0,ye.name,ye.questionToken,bn(ye,ye.typeParameters),ci(ye,ye.parameters),gt(ye,ye.type),void 0);return je(It)}case 177:{if(xo(ye.name))return je(void 0);let It=ht(ye,Sx(ba(ye.parent)?ye.parent.properties:ye.parent.members,ye));return je(A.updateGetAccessorDeclaration(ye,Ai(ye),ye.name,Fi(ye,Jp(ye,2)),gt(ye,It),void 0))}case 178:return xo(ye.name)?je(void 0):je(A.updateSetAccessorDeclaration(ye,Ai(ye),ye.name,Fi(ye,Jp(ye,2)),void 0));case 172:return xo(ye.name)?je(void 0):je(A.updatePropertyDeclaration(ye,Ai(ye),ye.name,ye.questionToken,gt(ye,ye.type),Ue(ye)));case 171:return xo(ye.name)?je(void 0):je(A.updatePropertySignature(ye,Ai(ye),ye.name,ye.questionToken,gt(ye,ye.type)));case 173:return xo(ye.name)?je(void 0):je(A.updateMethodSignature(ye,Ai(ye),ye.name,ye.questionToken,bn(ye,ye.typeParameters),ci(ye,ye.parameters),gt(ye,ye.type)));case 179:return je(A.updateCallSignature(ye,bn(ye,ye.typeParameters),ci(ye,ye.parameters),gt(ye,ye.type)));case 181:return je(A.updateIndexSignature(ye,Ai(ye),ci(ye,ye.parameters),pt(ye.type,Ao,io)||A.createKeywordTypeNode(133)));case 260:return Rs(ye.name)?Qn(ye.name):(bt=!0,T=!0,je(A.updateVariableDeclaration(ye,ye.name,void 0,gt(ye,ye.type),Ue(ye))));case 168:return Rr(ye)&&(ye.default||ye.constraint)?je(A.updateTypeParameterDeclaration(ye,ye.modifiers,ye.name,void 0,void 0)):je(Qi(ye,Ao,e));case 194:{let It=pt(ye.checkType,Ao,io),mt=pt(ye.extendsType,Ao,io),$t=g;g=ye.trueType;let _t=pt(ye.trueType,Ao,io);g=$t;let yi=pt(ye.falseType,Ao,io);return B.assert(It),B.assert(mt),B.assert(_t),B.assert(yi),je(A.updateConditionalTypeNode(ye,It,mt,_t,yi))}case 184:return je(A.updateFunctionTypeNode(ye,mn(ye.typeParameters,Ao,Sl),ci(ye,ye.parameters),B.checkDefined(pt(ye.type,Ao,io))));case 185:return je(A.updateConstructorTypeNode(ye,Ai(ye),mn(ye.typeParameters,Ao,Sl),ci(ye,ye.parameters),B.checkDefined(pt(ye.type,Ao,io))));case 205:return eS(ye)?je(A.updateImportTypeNode(ye,A.updateLiteralTypeNode(ye.argument,Sn(ye,ye.argument.literal)),ye.attributes,ye.qualifier,mn(ye.typeArguments,Ao,io),ye.isTypeOf)):je(ye);default:B.assertNever(ye,`Attempted to process unhandled node kind: ${B.formatSyntaxKind(ye.kind)}`)}return kN(ye)&&ma(q,ye.pos).line===ma(q,ye.end).line&&Hn(ye,1),je(Qi(ye,Ao,e));function je(It){return It&&He&&Y1(ye)&&Dr(ye),an(ye)&&(g=ct),He&&!T&&(r=ge),bt&&(T=ut),It===ye?It:It&&cr(Ci(It,ye),ye)}}function Rr(ye){return ye.parent.kind===174&&Jp(ye.parent,2)}function xn(ye){if(!HIt(ye)||Do(ye))return;switch(ye.kind){case 278:return mo(ye.parent)&&(f=!0),y=!0,A.updateExportDeclaration(ye,ye.modifiers,ye.isTypeOnly,ye.exportClause,Sn(ye,ye.moduleSpecifier),Gr(ye.attributes));case 277:{if(mo(ye.parent)&&(f=!0),y=!0,ye.expression.kind===80)return ye;{let ge=A.createUniqueName("_default",16);r=()=>({diagnosticMessage:S.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:ye}),z=ye;let He=A.createVariableDeclaration(ge,void 0,ne.createTypeOfExpression(ye.expression,ye,y5,v5,R),void 0);z=void 0;let ut=A.createVariableStatement(a?[A.createModifier(138)]:[],A.createVariableDeclarationList([He],2));return Ci(ut,ye),OR(ye),[ut,A.updateExportAssignment(ye,ye.modifiers,ge)]}}}let ct=si(ye);return k.set(R_(ye),ct),ye}function Eo(ye){if(Dd(ye)||Jp(ye,2048)||!Kh(ye))return ye;let ct=A.createModifiersFromModifierFlags(__(ye)&131039);return A.replaceModifiers(ye,ct)}function it(ye,ct,ge,He){let ut=A.updateModuleDeclaration(ye,ct,ge,He);if(d_(ut)||ut.flags&32)return ut;let bt=A.createModuleDeclaration(ut.modifiers,ut.name,ut.body,ut.flags|32);return cr(bt,ut),Ft(bt,ut),bt}function si(ye){if(x)for(;l3(x,ye););if(Do(ye))return;switch(ye.kind){case 271:return nn(ye);case 272:return Br(ye)}if(mf(ye)&&xt(ye)||oy(ye)||vs(ye)&&ne.isImplementationOfOverload(ye))return;let ct;an(ye)&&(ct=g,g=ye);let ge=kU(ye),He=r;ge&&(r=mS(ye));let ut=a;switch(ye.kind){case 265:{a=!1;let je=bt(A.updateTypeAliasDeclaration(ye,Ai(ye),ye.name,mn(ye.typeParameters,Ao,Sl),B.checkDefined(pt(ye.type,Ao,io))));return a=ut,je}case 264:return bt(A.updateInterfaceDeclaration(ye,Ai(ye),ye.name,bn(ye,ye.typeParameters),Jt(ye.heritageClauses),mn(ye.members,Ao,Ww)));case 262:{let je=bt(A.updateFunctionDeclaration(ye,Ai(ye),void 0,ye.name,bn(ye,ye.typeParameters),ci(ye,ye.parameters),gt(ye,ye.type),void 0));if(je&&ne.isExpandoFunctionDeclaration(ye)&&nt(ye)){let It=ne.getPropertiesOfContainerFunction(ye);Ce&&he(ye);let mt=Sk.createModuleDeclaration(void 0,je.name||A.createIdentifier("_default"),A.createModuleBlock([]),32);ic(mt,g),mt.locals=ta(It),mt.symbol=It[0].parent;let $t=[],_t=ro(It,Bt=>{if(!pN(Bt.valueDeclaration))return;let se=So(Bt.escapedName);if(!pp(se,99))return;r=mS(Bt.valueDeclaration);let rt=ne.createTypeOfDeclaration(Bt.valueDeclaration,mt,y5,v5|2,R);r=He;let fe=ZI(se),Wt=fe?A.getGeneratedNameForNode(Bt.valueDeclaration):A.createIdentifier(se);fe&&$t.push([Wt,se]);let tt=A.createVariableDeclaration(Wt,void 0,rt,void 0);return A.createVariableStatement(fe?void 0:[A.createToken(95)],A.createVariableDeclarationList([tt]))});$t.length?_t.push(A.createExportDeclaration(void 0,!1,A.createNamedExports(_i($t,([Bt,se])=>A.createExportSpecifier(!1,Bt,se))))):_t=ro(_t,Bt=>A.replaceModifiers(Bt,0));let yi=A.createModuleDeclaration(Ai(ye),ye.name,A.createModuleBlock(_t),32);if(!Jp(je,2048))return[je,yi];let Ii=A.createModifiersFromModifierFlags(__(je)&-2081|128),nr=A.updateFunctionDeclaration(je,Ii,void 0,je.name,je.typeParameters,je.parameters,je.type,void 0),Y=A.updateModuleDeclaration(yi,Ii,yi.name,yi.body),$e=A.createExportAssignment(void 0,!1,yi.name);return mo(ye.parent)&&(f=!0),y=!0,[nr,Y,$e]}else return je}case 267:{a=!1;let je=ye.body;if(je&&je.kind===268){let It=p,mt=y;y=!1,p=!1;let $t=mn(je.statements,xn,_o),_t=is($t);ye.flags&33554432&&(p=!1),!$y(ye)&&!aa(_t)&&!y&&(p?_t=A.createNodeArray([..._t,JR(A)]):_t=mn(_t,Eo,_o));let yi=A.updateModuleBlock(je,_t);a=ut,p=It,y=mt;let Ii=Ai(ye);return bt(it(ye,Ii,Uw(ye)?Sn(ye,ye.name):ye.name,yi))}else{a=ut;let It=Ai(ye);a=!1,pt(je,xn);let mt=R_(je),$t=k.get(mt);return k.delete(mt),bt(it(ye,It,ye.name,$t))}}case 263:{W=ye.name,z=ye;let je=A.createNodeArray(Ai(ye)),It=bn(ye,ye.typeParameters),mt=Hv(ye),$t;if(mt){let $e=r;$t=zr(vo(mt.parameters,Bt=>{if(!Ar(Bt,31)||Do(Bt))return;if(r=mS(Bt),Bt.name.kind===80)return Ci(A.createPropertyDeclaration(Ai(Bt),Bt.name,Bt.questionToken,gt(Bt,Bt.type),Ue(Bt)),Bt);return se(Bt.name);function se(rt){let fe;for(let Wt of rt.elements)Ed(Wt)||(Rs(Wt.name)&&(fe=Fo(fe,se(Wt.name))),fe=fe||[],fe.push(A.createPropertyDeclaration(Ai(Bt),Wt.name,void 0,gt(Wt,void 0),void 0)));return fe}})),r=$e}let yi=Lt(ye.members,$e=>!!$e.name&&xo($e.name))?[A.createPropertyDeclaration(void 0,A.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Ii=Fo(Fo(yi,$t),mn(ye.members,Ao,Cd)),nr=A.createNodeArray(Ii),Y=J0(ye);if(Y&&!Xc(Y.expression)&&Y.expression.kind!==106){let $e=ye.name?So(ye.name.escapedText):"default",Bt=A.createUniqueName(`${$e}_base`,16);r=()=>({diagnosticMessage:S.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Y,typeName:ye.name});let se=A.createVariableDeclaration(Bt,void 0,ne.createTypeOfExpression(Y.expression,ye,y5,v5,R),void 0),rt=A.createVariableStatement(a?[A.createModifier(138)]:[],A.createVariableDeclarationList([se],2)),fe=A.createNodeArray(_i(ye.heritageClauses,Wt=>{if(Wt.token===96){let tt=r;r=mS(Wt.types[0]);let Qe=A.updateHeritageClause(Wt,_i(Wt.types,ei=>A.updateExpressionWithTypeArguments(ei,Bt,mn(ei.typeArguments,Ao,io))));return r=tt,Qe}return A.updateHeritageClause(Wt,mn(A.createNodeArray(Di(Wt.types,tt=>Xc(tt.expression)||tt.expression.kind===106)),Ao,nb))}));return[rt,bt(A.updateClassDeclaration(ye,je,ye.name,It,fe,nr))]}else{let $e=Jt(ye.heritageClauses);return bt(A.updateClassDeclaration(ye,je,ye.name,It,$e,nr))}}case 243:return bt(dn(ye));case 266:return bt(A.updateEnumDeclaration(ye,A.createNodeArray(Ai(ye)),ye.name,A.createNodeArray(ro(ye.members,je=>{if(Do(je))return;let It=ne.getEnumMemberValue(je),mt=It?.value;Ce&&je.initializer&&It?.hasExternalReferences&&!Ma(je.name)&&e.addDiagnostic(Mn(je,S.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));let $t=mt===void 0?void 0:typeof mt=="string"?A.createStringLiteral(mt):mt<0?A.createPrefixUnaryExpression(41,A.createNumericLiteral(-mt)):A.createNumericLiteral(mt);return Ci(A.updateEnumMember(je,je.name,$t),je)}))))}return B.assertNever(ye,`Unhandled top-level node in declaration emit: ${B.formatSyntaxKind(ye.kind)}`);function bt(je){return an(ye)&&(g=ct),ge&&(r=He),ye.kind===267&&(a=ut),je===ye?je:(z=void 0,W=void 0,je&&cr(Ci(je,ye),ye))}}function dn(ye){if(!re(ye.declarationList.declarations,At))return;let ct=mn(ye.declarationList.declarations,Ao,Ur);if(!K(ct))return;let ge=A.createNodeArray(Ai(ye)),He;return AM(ye.declarationList)||NM(ye.declarationList)?(He=A.createVariableDeclarationList(ct,2),cr(He,ye.declarationList),Ft(He,ye.declarationList),ud(He,ye.declarationList)):He=A.updateVariableDeclarationList(ye.declarationList,ct),A.updateVariableStatement(ye,ge,He)}function Qn(ye){return tc(ro(ye.elements,ct=>Jr(ct)))}function Jr(ye){if(ye.kind!==232&&ye.name)return At(ye)?Rs(ye.name)?Qn(ye.name):A.createVariableDeclaration(ye.name,void 0,gt(ye,void 0),void 0):void 0}function Dr(ye){let ct;T||(ct=r,r=M1e(ye)),W=ye.name,B.assert(Y1(ye));let He=ye.name.expression;ni(He,g),T||(r=ct),W=void 0}function Do(ye){return!!ae&&!!ye&&dhe(ye,q)}function na(ye){return ll(ye)||Nu(ye)}function aa(ye){return Lt(ye,na)}function Ai(ye){let ct=__(ye),ge=Ha(ye);return ct===ge?p5(ye.modifiers,He=>kr(He,xa),xa):A.createModifiersFromModifierFlags(ge)}function Ha(ye){let ct=130030,ge=a&&!zIt(ye)?128:0,He=ye.parent.kind===307;return(!He||u&&He&&dd(ye.parent))&&(ct^=128,ge=0),M5e(ye,ct,ge)}function ht(ye,ct){let ge=j1e(ye);return!ge&&ye!==ct.firstAccessor&&(ge=j1e(ct.firstAccessor),r=mS(ct.firstAccessor)),!ge&&ct.secondAccessor&&ye!==ct.secondAccessor&&(ge=j1e(ct.secondAccessor),r=mS(ct.secondAccessor)),ge}function Jt(ye){return A.createNodeArray(Di(_i(ye,ct=>A.updateHeritageClause(ct,mn(A.createNodeArray(Di(ct.types,ge=>Xc(ge.expression)||ct.token===96&&ge.expression.kind===106)),Ao,nb))),ct=>ct.types&&!!ct.types.length))}}function zIt(e){return e.kind===264}function VIt(e,t,r,a){return e.createModifiersFromModifierFlags(M5e(t,r,a))}function M5e(e,t=131070,r=0){let a=__(e)&t|r;return a&2048&&!(a&32)&&(a^=32),a&2048&&a&128&&(a^=128),a}function j1e(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function R5e(e){switch(e.kind){case 172:case 171:return!Jp(e,2);case 169:case 260:return!0}return!1}function HIt(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function UIt(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}function JIt(e){switch(e){case 200:return Sie;case 99:case 7:case 6:case 5:case 100:case 199:case 1:return F1e;case 4:return O1e;default:return bie}}var W1e={scriptTransformers:F,declarationTransformers:F};function z1e(e,t,r){return{scriptTransformers:qIt(e,t,r),declarationTransformers:$It(t)}}function qIt(e,t,r){if(r)return F;let a=Oa(e),u=p_(e),f=xR(e),p=[];return Fn(p,t&&_i(t.before,j5e)),p.push(g1e),e.experimentalDecorators&&p.push(b1e),BV(e)&&p.push(N1e),a<99&&p.push(E1e),!e.experimentalDecorators&&(a<99||!f)&&p.push(S1e),p.push(y1e),a<8&&p.push(T1e),a<7&&p.push(w1e),a<6&&p.push(k1e),a<5&&p.push(C1e),a<4&&p.push(x1e),a<3&&p.push(A1e),a<2&&(p.push(P1e),p.push(L1e)),p.push(JIt(u)),Fn(p,t&&_i(t.after,j5e)),p}function $It(e){let t=[];return t.push(xie),Fn(t,e&&_i(e.afterDeclarations,KIt)),t}function GIt(e){return t=>mye(t)?e.transformBundle(t):e.transformSourceFile(t)}function B5e(e,t){return r=>{let a=e(r);return typeof a=="function"?t(r,a):GIt(a)}}function j5e(e){return B5e(e,n0)}function KIt(e){return B5e(e,(t,r)=>r)}function l8(e,t){return t}function b5(e,t,r){r(e,t)}function S5(e,t,r,a,u,f,p){var y,g;let x=new Array(357),k,T,A,P=0,R=[],W=[],z=[],q=[],G=0,$=!1,te=[],ne=0,_e,ce,ae=l8,Ce=b5,he=0,ue=[],Ee={factory:r,getCompilerOptions:()=>a,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:l_(()=>K0e(Ee)),startLexicalEnvironment:Ge,suspendLexicalEnvironment:Ke,resumeLexicalEnvironment:Ue,endLexicalEnvironment:gt,setLexicalEnvironmentFlags:xt,getLexicalEnvironmentFlags:nt,hoistVariableDeclaration:Fe,hoistFunctionDeclaration:Tt,addInitializationStatement:Be,startBlockScope:At,endBlockScope:ci,addBlockScopedVariable:Fi,requestEmitHelper:bn,readEmitHelpers:an,enableSubstitution:ie,enableEmitNotification:Oe,isSubstitutionEnabled:ke,isEmitNotificationEnabled:we,get onSubstituteNode(){return ae},set onSubstituteNode(Ci){B.assert(he<1,"Cannot modify transformation hooks after initialization has completed."),B.assert(Ci!==void 0,"Value must not be 'undefined'"),ae=Ci},get onEmitNode(){return Ce},set onEmitNode(Ci){B.assert(he<1,"Cannot modify transformation hooks after initialization has completed."),B.assert(Ci!==void 0,"Value must not be 'undefined'"),Ce=Ci},addDiagnostic(Ci){ue.push(Ci)}};for(let Ci of u)Iee(en(_s(Ci)));zl("beforeTransform");let ve=f.map(Ci=>Ci(Ee)),be=Ci=>{for(let Sn of ve)Ci=Sn(Ci);return Ci};he=1;let Se=[];for(let Ci of u)(y=jn)==null||y.push(jn.Phase.Emit,"transformNodes",Ci.kind===307?{path:Ci.path}:{kind:Ci.kind,pos:Ci.pos,end:Ci.end}),Se.push((p?be:Re)(Ci)),(g=jn)==null||g.pop();return he=2,zl("afterTransform"),ih("transformTime","beforeTransform","afterTransform"),{transformed:Se,substituteNode:De,emitNodeWithNotification:Ae,isEmitNotificationEnabled:we,dispose:ni,diagnostics:ue};function Re(Ci){return Ci&&(!mo(Ci)||!Ci.isDeclarationFile)?be(Ci):Ci}function ie(Ci){B.assert(he<2,"Cannot modify the transformation context after transformation has completed."),x[Ci]|=1}function ke(Ci){return(x[Ci.kind]&1)!==0&&(ja(Ci)&8)===0}function De(Ci,Sn){return B.assert(he<3,"Cannot substitute a node after the result is disposed."),Sn&&ke(Sn)&&ae(Ci,Sn)||Sn}function Oe(Ci){B.assert(he<2,"Cannot modify the transformation context after transformation has completed."),x[Ci]|=2}function we(Ci){return(x[Ci.kind]&2)!==0||(ja(Ci)&4)!==0}function Ae(Ci,Sn,nn){B.assert(he<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Sn&&(we(Sn)?Ce(Ci,Sn,nn):nn(Ci,Sn))}function Fe(Ci){B.assert(he>0,"Cannot modify the lexical environment during initialization."),B.assert(he<2,"Cannot modify the lexical environment after transformation has completed.");let Sn=Hn(r.createVariableDeclaration(Ci),128);k?k.push(Sn):k=[Sn],P&1&&(P|=2)}function Tt(Ci){B.assert(he>0,"Cannot modify the lexical environment during initialization."),B.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),Hn(Ci,2097152),T?T.push(Ci):T=[Ci]}function Be(Ci){B.assert(he>0,"Cannot modify the lexical environment during initialization."),B.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),Hn(Ci,2097152),A?A.push(Ci):A=[Ci]}function Ge(){B.assert(he>0,"Cannot modify the lexical environment during initialization."),B.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),B.assert(!$,"Lexical environment is suspended."),R[G]=k,W[G]=T,z[G]=A,q[G]=P,G++,k=void 0,T=void 0,A=void 0,P=0}function Ke(){B.assert(he>0,"Cannot modify the lexical environment during initialization."),B.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),B.assert(!$,"Lexical environment is already suspended."),$=!0}function Ue(){B.assert(he>0,"Cannot modify the lexical environment during initialization."),B.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),B.assert($,"Lexical environment is not suspended."),$=!1}function gt(){B.assert(he>0,"Cannot modify the lexical environment during initialization."),B.assert(he<2,"Cannot modify the lexical environment after transformation has completed."),B.assert(!$,"Lexical environment is suspended.");let Ci;if(k||T||A){if(T&&(Ci=[...T]),k){let Sn=r.createVariableStatement(void 0,r.createVariableDeclarationList(k));Hn(Sn,2097152),Ci?Ci.push(Sn):Ci=[Sn]}A&&(Ci?Ci=[...Ci,...A]:Ci=[...A])}return G--,k=R[G],T=W[G],A=z[G],P=q[G],G===0&&(R=[],W=[],z=[],q=[]),Ci}function xt(Ci,Sn){P=Sn?P|Ci:P&~Ci}function nt(){return P}function At(){B.assert(he>0,"Cannot start a block scope during initialization."),B.assert(he<2,"Cannot start a block scope after transformation has completed."),te[ne]=_e,ne++,_e=void 0}function ci(){B.assert(he>0,"Cannot end a block scope during initialization."),B.assert(he<2,"Cannot end a block scope after transformation has completed.");let Ci=Lt(_e)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(_e.map(Sn=>r.createVariableDeclaration(Sn)),1))]:void 0;return ne--,_e=te[ne],ne===0&&(te=[]),Ci}function Fi(Ci){B.assert(ne>0,"Cannot add a block scoped variable outside of an iteration body."),(_e||(_e=[])).push(Ci)}function bn(Ci){if(B.assert(he>0,"Cannot modify the transformation context during initialization."),B.assert(he<2,"Cannot modify the transformation context after transformation has completed."),B.assert(!Ci.scoped,"Cannot request a scoped emit helper."),Ci.dependencies)for(let Sn of Ci.dependencies)bn(Sn);ce=hi(ce,Ci)}function an(){B.assert(he>0,"Cannot modify the transformation context during initialization."),B.assert(he<2,"Cannot modify the transformation context after transformation has completed.");let Ci=ce;return ce=void 0,Ci}function ni(){if(he<3){for(let Ci of u)Iee(en(_s(Ci)));k=void 0,R=void 0,T=void 0,W=void 0,ae=void 0,Ce=void 0,ce=void 0,he=3}}}var x5={factory:U,getCompilerOptions:()=>({}),getEmitResolver:la,getEmitHost:la,getEmitHelperFactory:la,startLexicalEnvironment:dc,resumeLexicalEnvironment:dc,suspendLexicalEnvironment:dc,endLexicalEnvironment:Fw,setLexicalEnvironmentFlags:dc,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:dc,hoistFunctionDeclaration:dc,addInitializationStatement:dc,startBlockScope:dc,endBlockScope:Fw,addBlockScopedVariable:dc,requestEmitHelper:dc,readEmitHelpers:la,enableSubstitution:dc,enableEmitNotification:dc,isSubstitutionEnabled:la,isEmitNotificationEnabled:la,onSubstituteNode:l8,onEmitNode:b5,addDiagnostic:dc},W5e=XIt();function V1e(e){return Tl(e,".tsbuildinfo")}function Cie(e,t,r,a=!1,u,f){let p=ds(r)?r:mV(e,r,a),y=e.getCompilerOptions();if(!u)if(y.outFile){if(p.length){let g=U.createBundle(p),x=t(u8(g,e,a),g);if(x)return x}}else for(let g of p){let x=t(u8(g,e,a),g);if(x)return x}if(f){let g=wk(y);if(g)return t({buildInfoPath:g},void 0)}}function wk(e){let t=e.configFilePath;if(!kie(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let r=e.outFile,a;if(r)a=A_(r);else{if(!t)return;let u=A_(t);a=e.outDir?e.rootDir?qC(e.outDir,Sg(e.rootDir,u,!0)):xr(e.outDir,Xu(u)):u}return a+".tsbuildinfo"}function kie(e){return nT(e)||!!e.tscBuild}function H1e(e,t){let r=e.outFile,a=e.emitDeclarationOnly?void 0:r,u=a&&z5e(a,e),f=t||yp(e)?A_(r)+".d.ts":void 0,p=f&&OV(e)?f+".map":void 0;return{jsFilePath:a,sourceMapFilePath:u,declarationFilePath:f,declarationMapPath:p}}function u8(e,t,r){let a=t.getCompilerOptions();if(e.kind===308)return H1e(a,r);{let u=yge(e.fileName,t,wU(e.fileName,a)),f=Wh(e),p=f&&J1(e.fileName,u,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,y=a.emitDeclarationOnly||p?void 0:u,g=!y||Wh(e)?void 0:z5e(y,a),x=r||yp(a)&&!f?vge(e.fileName,t):void 0,k=x&&OV(a)?x+".map":void 0;return{jsFilePath:y,sourceMapFilePath:g,declarationFilePath:x,declarationMapPath:k}}}function z5e(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function wU(e,t){return Tl(e,".json")?".json":t.jsx===1&&vu(e,[".jsx",".tsx"])?".jsx":vu(e,[".mts",".mjs"])?".mjs":vu(e,[".cts",".cjs"])?".cjs":".js"}function V5e(e,t,r,a){return r?qC(r,Sg(a(),e,t)):e}function W4(e,t,r,a=()=>VN(t,r)){return wie(e,t.options,r,a)}function wie(e,t,r,a){return Tx(V5e(e,r,t.declarationDir||t.outDir,a),_V(e))}function H5e(e,t,r,a=()=>VN(t,r)){if(t.options.emitDeclarationOnly)return;let u=Tl(e,".json"),f=Tie(e,t.options,r,a);return!u||J1(e,f,B.checkDefined(t.options.configFilePath),r)!==0?f:void 0}function Tie(e,t,r,a){return Tx(V5e(e,r,t.outDir,a),wU(e,t))}function U5e(){let e;return{addOutput:t,getOutputs:r};function t(a){a&&(e||(e=[])).push(a)}function r(){return e||F}}function J5e(e,t){let{jsFilePath:r,sourceMapFilePath:a,declarationFilePath:u,declarationMapPath:f}=H1e(e.options,!1);t(r),t(a),t(u),t(f)}function q5e(e,t,r,a,u){if(Jd(t))return;let f=H5e(t,e,r,u);if(a(f),!Tl(t,".json")&&(f&&e.options.sourceMap&&a(`${f}.map`),yp(e.options))){let p=W4(t,e,r,u);a(p),e.options.declarationMap&&a(`${p}.map`)}}function d8(e,t,r,a,u){let f;return e.rootDir?(f=ts(e.rootDir,r),u?.(e.rootDir)):e.composite&&e.configFilePath?(f=Or(ff(e.configFilePath)),u?.(f)):f=Y1e(t(),r,a),f&&f[f.length-1]!==wl&&(f+=wl),f}function VN({options:e,fileNames:t},r){return d8(e,()=>Di(t,a=>!(e.noEmitForJsFiles&&vu(a,d4))&&!Jd(a)),Or(ff(B.checkDefined(e.configFilePath))),df(!r))}function TU(e,t){let{addOutput:r,getOutputs:a}=U5e();if(e.options.outFile)J5e(e,r);else{let u=l_(()=>VN(e,t));for(let f of e.fileNames)q5e(e,f,t,r,u)}return r(wk(e.options)),a()}function $5e(e,t,r){t=$s(t),B.assert(sn(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:a,getOutputs:u}=U5e();return e.options.outFile?J5e(e,a):q5e(e,t,r,a),u()}function Eie(e,t){if(e.options.outFile){let{jsFilePath:u,declarationFilePath:f}=H1e(e.options,!1);return B.checkDefined(u||f,`project ${e.options.configFilePath} expected to have at least one output`)}let r=l_(()=>VN(e,t));for(let u of e.fileNames){if(Jd(u))continue;let f=H5e(u,e,t,r);if(f)return f;if(!Tl(u,".json")&&yp(e.options))return W4(u,e,t,r)}let a=wk(e.options);return a||B.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function Die(e,t){return!!t&&!!e}function Iie(e,t,r,{scriptTransformers:a,declarationTransformers:u},f,p,y,g){var x=t.getCompilerOptions(),k=x.sourceMap||x.inlineSourceMap||OV(x)?[]:void 0,T=x.listEmittedFiles?[]:void 0,A=cR(),P=aS(x),R=dR(P),{enter:W,exit:z}=PY("printTime","beforePrint","afterPrint"),q=!1;return W(),Cie(t,G,mV(t,r,y),y,p,!r&&!g),z(),{emitSkipped:q,diagnostics:A.getDiagnostics(),emittedFiles:T,sourceMaps:k};function G({jsFilePath:ve,sourceMapFilePath:be,declarationFilePath:Se,declarationMapPath:Re,buildInfoPath:ie},ke){var De,Oe,we,Ae,Fe,Tt;(De=jn)==null||De.push(jn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:ve}),te(ke,ve,be),(Oe=jn)==null||Oe.pop(),(we=jn)==null||we.push(jn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:Se}),ne(ke,Se,Re),(Ae=jn)==null||Ae.pop(),(Fe=jn)==null||Fe.push(jn.Phase.Emit,"emitBuildInfo",{buildInfoPath:ie}),$(ie),(Tt=jn)==null||Tt.pop()}function $(ve){if(!ve||r)return;if(t.isEmitBlocked(ve)){q=!0;return}let be=t.getBuildInfo()||{version:O};gV(t,A,ve,U1e(be),!1,void 0,{buildInfo:be}),T?.push(ve)}function te(ve,be,Se){if(!ve||f||!be)return;if(t.isEmitBlocked(be)||x.noEmit){q=!0;return}(mo(ve)?[ve]:Di(ve.sourceFiles,Qz)).forEach(De=>{(x.noCheck||!vO(De,x))&&ce(De)});let Re=S5(e,t,U,x,[ve],a,!1),ie={removeComments:x.removeComments,newLine:x.newLine,noEmitHelpers:x.noEmitHelpers,module:p_(x),moduleResolution:$f(x),target:Oa(x),sourceMap:x.sourceMap,inlineSourceMap:x.inlineSourceMap,inlineSources:x.inlineSources,extendedDiagnostics:x.extendedDiagnostics},ke=Bx(ie,{hasGlobalName:e.hasGlobalName,onEmitNode:Re.emitNodeWithNotification,isEmitNotificationEnabled:Re.isEmitNotificationEnabled,substituteNode:Re.substituteNode});B.assert(Re.transformed.length===1,"Should only see one output from the transform"),ae(be,Se,Re,ke,x),Re.dispose(),T&&(T.push(be),Se&&T.push(Se))}function ne(ve,be,Se){if(!ve||f===0)return;if(!be){(f||x.emitDeclarationOnly)&&(q=!0);return}let Re=mo(ve)?[ve]:ve.sourceFiles,ie=y?Re:Di(Re,Qz),ke=x.outFile?[U.createBundle(ie)]:ie;ie.forEach(we=>{(f&&!yp(x)||x.noCheck||Die(f,y)||!vO(we,x))&&_e(we)});let De=S5(e,t,U,x,ke,u,!1);if(K(De.diagnostics))for(let we of De.diagnostics)A.add(we);let Oe=!!De.diagnostics&&!!De.diagnostics.length||!!t.isEmitBlocked(be)||!!x.noEmit;if(q=q||Oe,!Oe||y){B.assert(De.transformed.length===1,"Should only see one output from the decl transform");let we={removeComments:x.removeComments,newLine:x.newLine,noEmitHelpers:!0,module:x.module,moduleResolution:x.moduleResolution,target:x.target,sourceMap:f!==2&&x.declarationMap,inlineSourceMap:x.inlineSourceMap,extendedDiagnostics:x.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},Ae=Bx(we,{hasGlobalName:e.hasGlobalName,onEmitNode:De.emitNodeWithNotification,isEmitNotificationEnabled:De.isEmitNotificationEnabled,substituteNode:De.substituteNode}),Fe=ae(be,Se,De,Ae,{sourceMap:we.sourceMap,sourceRoot:x.sourceRoot,mapRoot:x.mapRoot,extendedDiagnostics:x.extendedDiagnostics});T&&(Fe&&T.push(be),Se&&T.push(Se))}De.dispose()}function _e(ve){if(ll(ve)){ve.expression.kind===80&&e.collectLinkedAliases(ve.expression,!0);return}else if(Gf(ve)){e.collectLinkedAliases(ve.propertyName||ve.name,!0);return}ws(ve,_e)}function ce(ve){N_(ve)||LN(ve,be=>{if(Dd(be)&&!(oS(be)&32)||ql(be))return"skip";e.markLinkedReferences(be)})}function ae(ve,be,Se,Re,ie){let ke=Se.transformed[0],De=ke.kind===308?ke:void 0,Oe=ke.kind===307?ke:void 0,we=De?De.sourceFiles:[Oe],Ae;Ce(ie,ke)&&(Ae=Zve(t,Xu(ff(ve)),he(ie),ue(ie,ve,Oe),ie)),De?Re.writeBundle(De,R,Ae):Re.writeFile(Oe,R,Ae);let Fe;if(Ae){k&&k.push({inputSourceFileNames:Ae.getSources(),sourceMap:Ae.toJSON()});let Ge=Ee(ie,Ae,ve,be,Oe);if(Ge&&(R.isAtStartOfLine()||R.rawWrite(P),Fe=R.getTextPos(),R.writeComment(`//# sourceMappingURL=${Ge}`)),be){let Ke=Ae.toString();gV(t,A,be,Ke,!1,we)}}else R.writeLine();let Tt=R.getText(),Be={sourceMapUrlPos:Fe,diagnostics:Se.diagnostics};return gV(t,A,ve,Tt,!!x.emitBOM,we,Be),R.clear(),!Be.skippedDtsWrite}function Ce(ve,be){return(ve.sourceMap||ve.inlineSourceMap)&&(be.kind!==307||!Tl(be.fileName,".json"))}function he(ve){let be=ff(ve.sourceRoot||"");return be&&xd(be)}function ue(ve,be,Se){if(ve.sourceRoot)return t.getCommonSourceDirectory();if(ve.mapRoot){let Re=ff(ve.mapRoot);return Se&&(Re=Or(hV(Se.fileName,t,Re))),Vy(Re)===0&&(Re=xr(t.getCommonSourceDirectory(),Re)),Re}return Or($s(be))}function Ee(ve,be,Se,Re,ie){if(ve.inlineSourceMap){let De=be.toString();return`data:application/json;base64,${Rge(Sd,De)}`}let ke=Xu(ff(B.checkDefined(Re)));if(ve.mapRoot){let De=ff(ve.mapRoot);return ie&&(De=Or(hV(ie.fileName,t,De))),Vy(De)===0?(De=xr(t.getCommonSourceDirectory(),De),encodeURI(LI(Or($s(Se)),xr(De,ke),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(xr(De,ke))}return encodeURI(ke)}}function U1e(e){return JSON.stringify(e)}function Nie(e,t){return JZ(e,t)}var J1e={hasGlobalName:la,getReferencedExportContainer:la,getReferencedImportDeclaration:la,getReferencedDeclarationWithCollidingName:la,isDeclarationWithCollidingName:la,isValueAliasDeclaration:la,isReferencedAliasDeclaration:la,isTopLevelValueImportEqualsWithEntityName:la,hasNodeCheckFlag:la,isDeclarationVisible:la,isLateBound:e=>!1,collectLinkedAliases:la,markLinkedReferences:la,isImplementationOfOverload:la,requiresAddingImplicitUndefined:la,isExpandoFunctionDeclaration:la,getPropertiesOfContainerFunction:la,createTypeOfDeclaration:la,createReturnTypeOfSignatureDeclaration:la,createTypeOfExpression:la,createLiteralConstValue:la,isSymbolAccessible:la,isEntityNameVisible:la,getConstantValue:la,getEnumMemberValue:la,getReferencedValueDeclaration:la,getReferencedValueDeclarations:la,getTypeReferenceSerializationKind:la,isOptionalParameter:la,isArgumentsLocalBinding:la,getExternalModuleFileFromDeclaration:la,isLiteralConstDeclaration:la,getJsxFactoryEntity:la,getJsxFragmentFactoryEntity:la,isBindingCapturedByNode:la,getDeclarationStatementsForSourceFile:la,isImportRequiredByAugmentation:la,isDefinitelyReferenceToGlobalSymbolObject:la},q1e=l_(()=>Bx({})),bT=l_(()=>Bx({removeComments:!0})),$1e=l_(()=>Bx({removeComments:!0,neverAsciiEscape:!0})),Aie=l_(()=>Bx({removeComments:!0,omitTrailingSemicolon:!0}));function Bx(e={},t={}){var{hasGlobalName:r,onEmitNode:a=b5,isEmitNotificationEnabled:u,substituteNode:f=l8,onBeforeEmitNode:p,onAfterEmitNode:y,onBeforeEmitNodeArray:g,onAfterEmitNodeArray:x,onBeforeEmitToken:k,onAfterEmitToken:T}=t,A=!!e.extendedDiagnostics,P=!!e.omitBraceSourceMapPositions,R=aS(e),W=p_(e),z=new Map,q,G,$,te,ne,_e,ce,ae,Ce,he,ue,Ee,ve,be,Se,Re=e.preserveSourceNewlines,ie,ke,De,Oe=y6,we,Ae=!0,Fe,Tt,Be=-1,Ge,Ke=-1,Ue=-1,gt=-1,xt=-1,nt,At,ci=!1,Fi=!!e.removeComments,bn,an,{enter:ni,exit:Ci}=rFe(A,"commentTime","beforeComment","afterComment"),Sn=U.parenthesizer,nn={select:M=>M===0?Sn.parenthesizeLeadingTypeArgument:void 0},Br=Nd();return na(),{printNode:Gr,printList:is,printFile:Rr,printBundle:Ao,writeNode:xn,writeList:Eo,writeFile:si,writeBundle:it};function Gr(M,Te,Rt){switch(M){case 0:B.assert(mo(Te),"Expected a SourceFile node.");break;case 2:B.assert(et(Te),"Expected an Identifier node.");break;case 1:B.assert(Mt(Te),"Expected an Expression node.");break}switch(Te.kind){case 307:return Rr(Te);case 308:return Ao(Te)}return xn(M,Te,Rt,dn()),Qn()}function is(M,Te,Rt){return Eo(M,Te,Rt,dn()),Qn()}function Ao(M){return it(M,dn(),void 0),Qn()}function Rr(M){return si(M,dn(),void 0),Qn()}function xn(M,Te,Rt,Ei){let Xr=ke;Do(Ei,void 0),Jr(M,Te,Rt),na(),ke=Xr}function Eo(M,Te,Rt,Ei){let Xr=ke;Do(Ei,void 0),Rt&&Dr(Rt),sl(void 0,Te,M),na(),ke=Xr}function it(M,Te,Rt){we=!1;let Ei=ke;Do(Te,Rt),IS(M),Dg(M),Ii(M),Vk(M);for(let Xr of M.sourceFiles)Jr(0,Xr,Xr);na(),ke=Ei}function si(M,Te,Rt){we=!0;let Ei=ke;Do(Te,Rt),IS(M),Dg(M),Jr(0,M,M),na(),ke=Ei}function dn(){return De||(De=dR(R))}function Qn(){let M=De.getText();return De.clear(),M}function Jr(M,Te,Rt){Rt&&Dr(Rt),ge(M,Te,void 0)}function Dr(M){q=M,nt=void 0,At=void 0,M&&oD(M)}function Do(M,Te){M&&e.omitTrailingSemicolon&&(M=PZ(M)),ke=M,Fe=Te,Ae=!ke||!Fe}function na(){G=[],$=[],te=[],ne=new Set,_e=[],ce=new Map,ae=[],Ce=0,he=[],ue=0,Ee=[],ve=void 0,be=[],Se=void 0,q=void 0,nt=void 0,At=void 0,Do(void 0,void 0)}function aa(){return nt||(nt=Ov(B.checkDefined(q)))}function Ai(M,Te){M!==void 0&&ge(4,M,Te)}function Ha(M){M!==void 0&&ge(2,M,void 0)}function ht(M,Te){M!==void 0&&ge(1,M,Te)}function Jt(M){ge(Da(M)?6:4,M)}function ye(M){Re&&Cg(M)&4&&(Re=!1)}function ct(M){Re=M}function ge(M,Te,Rt){an=Rt,bt(0,M,Te)(M,Te),an=void 0}function He(M){return!Fi&&!mo(M)}function ut(M){return!Ae&&!mo(M)&&!Yz(M)}function bt(M,Te,Rt){switch(M){case 0:if(a!==b5&&(!u||u(Rt)))return It;case 1:if(f!==l8&&(bn=f(Te,Rt)||Rt)!==Rt)return an&&(bn=an(bn)),yi;case 2:if(He(Rt))return mA;case 3:if(ut(Rt))return HT;case 4:return mt;default:return B.assertNever(M)}}function je(M,Te,Rt){return bt(M+1,Te,Rt)}function It(M,Te){let Rt=je(0,M,Te);a(M,Te,Rt)}function mt(M,Te){if(p?.(Te),Re){let Rt=Re;ye(Te),$t(M,Te),ct(Rt)}else $t(M,Te);y?.(Te),an=void 0}function $t(M,Te,Rt=!0){if(Rt){let Ei=Nee(Te);if(Ei)return Bt(M,Te,Ei)}if(M===0)return _y(ea(Te,mo));if(M===2)return fe(ea(Te,et));if(M===6)return $e(ea(Te,Da),!0);if(M===3)return _t(ea(Te,Sl));if(M===7)return qi(ea(Te,bE));if(M===5)return B.assertNode(Te,Vee),j_(!0);if(M===4){switch(Te.kind){case 16:case 17:case 18:return $e(Te,!1);case 80:return fe(Te);case 81:return Wt(Te);case 166:return tt(Te);case 167:return ei(Te);case 168:return In(Te);case 169:return Ji(Te);case 170:return _n(Te);case 171:return Dt(Te);case 172:return Nt(Te);case 173:return ti(Te);case 174:return li(Te);case 175:return wi(Te);case 176:return Si(Te);case 177:case 178:return Rn(Te);case 179:return gi(Te);case 180:return Xi(Te);case 181:return Li(Te);case 182:return Cs(Te);case 183:return Ss(Te);case 184:return ks(Te);case 185:return tf(Te);case 186:return Ts(Te);case 187:return e_(Te);case 188:return id(Te);case 189:return nc(Te);case 190:return Bo(Te);case 192:return Ua(Te);case 193:return pi(Te);case 194:return Ac(Te);case 195:return Wf(Te);case 196:return nd(Te);case 233:return Sp(Te);case 197:return bp();case 198:return Fl(Te);case 199:return $l(Te);case 200:return H(Te);case 201:return Ze(Te);case 202:return rc(Te);case 203:return Pt(Te);case 204:return Vi(Te);case 205:return ri(Te);case 206:return un(Te);case 207:return Nr(Te);case 208:return Bi(Te);case 239:return Zh(Te);case 240:return ai();case 241:return np(Te);case 243:return _b(Te);case 242:return j_(!1);case 244:return i1(Te);case 245:return zm(Te);case 246:return wt(Te);case 247:return oi(Te);case 248:return di(Te);case 249:return Zi(Te);case 250:return Tn(Te);case 251:return qr(Te);case 252:return Q(Te);case 253:return os(Te);case 254:return Ns(Te);case 255:return Qa(Te);case 256:return Ra(Te);case 257:return Il(Te);case 258:return vh(Te);case 259:return Tg(Te);case 260:return a0(Te);case 261:return n1(Te);case 262:return CS(Te);case 263:return iv(Te);case 264:return kS(Te);case 265:return tg(Te);case 266:return Mk(Te);case 267:return Vm(Te);case 268:return ig(Te);case 269:return mb(Te);case 270:return dr(Te);case 271:return Rk(Te);case 272:return s1(Te);case 273:return Bk(Te);case 274:return Vx(Te);case 280:return so(Te);case 275:return Xe(Te);case 276:return dt(Te);case 277:return qt(Te);case 278:return bi(Te);case 279:return Gn(Te);case 281:return uo(Te);case 300:return En(Te);case 301:return tn(Te);case 282:return;case 283:return Jc(Te);case 12:return v_(Te);case 286:case 289:return rg(Te);case 287:case 290:return LT(Te);case 291:return a1(Te);case 292:return Hx(Te);case 293:return hb(Te);case 294:return Ux(Te);case 295:return Jx(Te);case 296:return zE(Te);case 297:return jk(Te);case 298:return OT(Te);case 299:return VE(Te);case 303:return Wk(Te);case 304:return c1(Te);case 305:return l1(Te);case 306:return Hm(Te);case 307:return _y(Te);case 308:return B.fail("Bundles should be printed using printBundle");case 309:return u0(Te);case 310:return g6(Te);case 312:return or("*");case 313:return or("?");case 314:return Fc(Te);case 315:return fo(Te);case 316:return ka(Te);case 317:return Uu(Te);case 191:case 318:return Ko(Te);case 319:return;case 320:return em(Te);case 322:return gb(Te);case 323:return kp(Te);case 327:case 332:case 337:return zf(Te);case 328:case 329:return Md(Te);case 330:case 331:return;case 333:case 334:case 335:case 336:return;case 338:return rv(Te);case 339:return aA(Te);case 341:case 348:return zk(Te);case 340:case 342:case 343:case 344:case 349:case 350:return tm(Te);case 345:return l0(Te);case 346:return ES(Te);case 347:return Cp(Te);case 351:return $x(Te);case 353:return}if(Mt(Te)&&(M=1,f!==l8)){let Ei=f(M,Te)||Te;Ei!==Te&&(Te=Ei,an&&(Te=an(Te)))}}if(M===1)switch(Te.kind){case 9:case 10:return Y(Te);case 11:case 14:case 15:return $e(Te,!1);case 80:return fe(Te);case 81:return Wt(Te);case 209:return hr(Te);case 210:return Pr(Te);case 211:return oo(Te);case 212:return ml(Te);case 213:return Au(Te);case 214:return Pu(Te);case 215:return ku(Te);case 216:return hl(Te);case 217:return Lu(Te);case 218:return h_(Te);case 219:return Ou(Te);case 220:return qe(Te);case 221:return Qt(Te);case 222:return hn(Te);case 223:return Jo(Te);case 224:return za(Te);case 225:return wu(Te);case 226:return Br(Te);case 227:return Mc(Te);case 228:return gc(Te);case 229:return Ju(Te);case 230:return Zp(Te);case 231:return Qh(Te);case 232:return;case 234:return hm(Te);case 235:return Wm(Te);case 233:return Sp(Te);case 238:return yh(Te);case 236:return t1(Te);case 237:return B.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return g_(Te);case 285:return ng(Te);case 288:return y_(Te);case 352:return B.fail("SyntaxList should not be printed");case 353:return;case 354:return vb(Te);case 355:return lA(Te);case 356:return B.fail("SyntheticReferenceExpression should not be printed")}if(Q_(Te.kind))return $E(Te,ys);if(kQ(Te.kind))return $E(Te,or);B.fail(`Unhandled SyntaxKind: ${B.formatSyntaxKind(Te.kind)}.`)}function _t(M){Ai(M.name),qn(),ys("in"),qn(),Ai(M.constraint)}function yi(M,Te){let Rt=je(1,M,Te);B.assertIsDefined(bn),Te=bn,bn=void 0,Rt(M,Te)}function Ii(M){let Te=!1,Rt=M.kind===308?M:void 0;if(Rt&&W===0)return;let Ei=Rt?Rt.sourceFiles.length:1;for(let Xr=0;Xr")}function Zl(M){qn(),Ai(M.type)}function Uu(M){ys("function"),bb(M,M.parameters),or(":"),Ai(M.type)}function Fc(M){or("?"),Ai(M.type)}function fo(M){or("!"),Ai(M.type)}function ka(M){Ai(M.type),or("=")}function tf(M){u1(M,M.modifiers),ys("new"),qn(),bh(M,hc,Zl)}function Ts(M){ys("typeof"),qn(),Ai(M.exprName),rr(M,M.typeArguments)}function e_(M){xb(M),re(M.members,ZE),or("{");let Te=ja(M)&1?768:32897;sl(M,M.members,Te|524288),or("}"),Ig(M)}function id(M){Ai(M.elementType,Sn.parenthesizeNonArrayTypeOfPostfixType),or("["),or("]")}function Ko(M){or("..."),Ai(M.type)}function nc(M){ze(23,M.pos,or,M);let Te=ja(M)&1?528:657;sl(M,M.elements,Te|524288,Sn.parenthesizeElementTypeOfTupleType),ze(24,M.elements.end,or,M)}function rc(M){Ai(M.dotDotDotToken),Ai(M.name),Ai(M.questionToken),ze(59,M.name.end,or,M),qn(),Ai(M.type)}function Bo(M){Ai(M.type,Sn.parenthesizeTypeOfOptionalType),or("?")}function Ua(M){sl(M,M.types,516,Sn.parenthesizeConstituentTypeOfUnionType)}function pi(M){sl(M,M.types,520,Sn.parenthesizeConstituentTypeOfIntersectionType)}function Ac(M){Ai(M.checkType,Sn.parenthesizeCheckTypeOfConditionalType),qn(),ys("extends"),qn(),Ai(M.extendsType,Sn.parenthesizeExtendsTypeOfConditionalType),qn(),or("?"),qn(),Ai(M.trueType),qn(),or(":"),qn(),Ai(M.falseType)}function Wf(M){ys("infer"),qn(),Ai(M.typeParameter)}function nd(M){or("("),Ai(M.type),or(")")}function bp(){ys("this")}function Fl(M){d1(M.operator,ys),qn();let Te=M.operator===148?Sn.parenthesizeOperandOfReadonlyTypeOperator:Sn.parenthesizeOperandOfTypeOperator;Ai(M.type,Te)}function $l(M){Ai(M.objectType,Sn.parenthesizeNonArrayTypeOfPostfixType),or("["),Ai(M.indexType),or("]")}function H(M){let Te=ja(M);or("{"),Te&1?qn():(t_(),i_()),M.readonlyToken&&(Ai(M.readonlyToken),M.readonlyToken.kind!==148&&ys("readonly"),qn()),or("["),ge(3,M.typeParameter),M.nameType&&(qn(),ys("as"),qn(),Ai(M.nameType)),or("]"),M.questionToken&&(Ai(M.questionToken),M.questionToken.kind!==58&&or("?")),or(":"),qn(),Ai(M.type),Vf(),Te&1?qn():(t_(),vm()),sl(M,M.members,2),or("}")}function Ze(M){ht(M.literal)}function Pt(M){Ai(M.head),sl(M,M.templateSpans,262144)}function ri(M){M.isTypeOf&&(ys("typeof"),qn()),ys("import"),or("("),Ai(M.argument),M.attributes&&(or(","),qn(),ge(7,M.attributes)),or(")"),M.qualifier&&(or("."),Ai(M.qualifier)),rr(M,M.typeArguments)}function un(M){or("{"),sl(M,M.elements,525136),or("}")}function Nr(M){or("["),sl(M,M.elements,524880),or("]")}function Bi(M){Ai(M.dotDotDotToken),M.propertyName&&(Ai(M.propertyName),or(":"),qn()),Ai(M.name),ov(M.initializer,M.name.end,M,Sn.parenthesizeExpressionForDisallowedComma)}function hr(M){let Te=M.elements,Rt=M.multiLine?65536:0;Sb(M,Te,8914|Rt,Sn.parenthesizeExpressionForDisallowedComma)}function Pr(M){xb(M),re(M.properties,ZE);let Te=ja(M)&131072;Te&&i_();let Rt=M.multiLine?65536:0,Ei=q&&q.languageVersion>=1&&!Wh(q)?64:0;sl(M,M.properties,526226|Ei|Rt),Te&&vm(),Ig(M)}function oo(M){ht(M.expression,Sn.parenthesizeLeftSideOfAccess);let Te=M.questionDotToken||Qg(U.createToken(25),M.expression.end,M.name.pos),Rt=f0(M,M.expression,Te),Ei=f0(M,Te,M.name);Um(Rt,!1),Te.kind!==29&&Ya(M.expression)&&!ke.hasTrailingComment()&&!ke.hasTrailingWhitespace()&&or("."),M.questionDotToken?Ai(Te):ze(Te.kind,M.expression.end,or,M),Um(Ei,!1),Ai(M.name),LS(Rt,Ei)}function Ya(M){if(M=xg(M),Z_(M)){let Te=f1(M,void 0,!0,!1);return!(M.numericLiteralFlags&448)&&!Te.includes(ua(25))&&!Te.includes("E")&&!Te.includes("e")}else if(il(M)){let Te=z0e(M);return typeof Te=="number"&&isFinite(Te)&&Te>=0&&Math.floor(Te)===Te}}function ml(M){ht(M.expression,Sn.parenthesizeLeftSideOfAccess),Ai(M.questionDotToken),ze(23,M.expression.end,or,M),ht(M.argumentExpression),ze(24,M.argumentExpression.end,or,M)}function Au(M){let Te=Cg(M)&16;Te&&(or("("),MT("0"),or(","),qn()),ht(M.expression,Sn.parenthesizeLeftSideOfAccess),Te&&or(")"),Ai(M.questionDotToken),rr(M,M.typeArguments),Sb(M,M.arguments,2576,Sn.parenthesizeExpressionForDisallowedComma)}function Pu(M){ze(105,M.pos,ys,M),qn(),ht(M.expression,Sn.parenthesizeExpressionOfNew),rr(M,M.typeArguments),Sb(M,M.arguments,18960,Sn.parenthesizeExpressionForDisallowedComma)}function ku(M){let Te=Cg(M)&16;Te&&(or("("),MT("0"),or(","),qn()),ht(M.tag,Sn.parenthesizeLeftSideOfAccess),Te&&or(")"),rr(M,M.typeArguments),qn(),ht(M.template)}function hl(M){or("<"),Ai(M.type),or(">"),ht(M.expression,Sn.parenthesizeOperandOfPrefixUnary)}function Lu(M){let Te=ze(21,M.pos,or,M),Rt=KE(M.expression,M);ht(M.expression,void 0),XE(M.expression,M),LS(Rt),ze(22,M.expression?M.expression.end:Te,or,M)}function h_(M){sv(M.name),r1(M)}function Ou(M){u1(M,M.modifiers),bh(M,_d,gh)}function _d(M){qd(M,M.typeParameters),HE(M,M.parameters),d0(M.type),qn(),Ai(M.equalsGreaterThanToken)}function gh(M){Ds(M.body)?c0(M.body):(qn(),ht(M.body,Sn.parenthesizeConciseBodyOfArrowFunction))}function qe(M){ze(91,M.pos,ys,M),qn(),ht(M.expression,Sn.parenthesizeOperandOfPrefixUnary)}function Qt(M){ze(114,M.pos,ys,M),qn(),ht(M.expression,Sn.parenthesizeOperandOfPrefixUnary)}function hn(M){ze(116,M.pos,ys,M),qn(),ht(M.expression,Sn.parenthesizeOperandOfPrefixUnary)}function Jo(M){ze(135,M.pos,ys,M),qn(),ht(M.expression,Sn.parenthesizeOperandOfPrefixUnary)}function za(M){d1(M.operator,PS),Ja(M)&&qn(),ht(M.operand,Sn.parenthesizeOperandOfPrefixUnary)}function Ja(M){let Te=M.operand;return Te.kind===224&&(M.operator===40&&(Te.operator===40||Te.operator===46)||M.operator===41&&(Te.operator===41||Te.operator===47))}function wu(M){ht(M.operand,Sn.parenthesizeOperandOfPostfixUnary),d1(M.operator,PS)}function Nd(){return RH(M,Te,Rt,Ei,Xr,void 0);function M(Zo,Wo){if(Wo){Wo.stackIndex++,Wo.preserveSourceNewlinesStack[Wo.stackIndex]=Re,Wo.containerPosStack[Wo.stackIndex]=Ue,Wo.containerEndStack[Wo.stackIndex]=gt,Wo.declarationListContainerEndStack[Wo.stackIndex]=xt;let Io=Wo.shouldEmitCommentsStack[Wo.stackIndex]=He(Zo),b_=Wo.shouldEmitSourceMapsStack[Wo.stackIndex]=ut(Zo);p?.(Zo),Io&&Zx(Zo),b_&&UT(Zo),ye(Zo)}else Wo={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Wo}function Te(Zo,Wo,Io){return jo(Zo,Io,"left")}function Rt(Zo,Wo,Io){let b_=Zo.kind!==28,nf=f0(Io,Io.left,Zo),p0=f0(Io,Zo,Io.right);Um(nf,b_),RS(Zo.pos),$E(Zo,Zo.kind===103?ys:PS),p1(Zo.end,!0),Um(p0,!0)}function Ei(Zo,Wo,Io){return jo(Zo,Io,"right")}function Xr(Zo,Wo){let Io=f0(Zo,Zo.left,Zo.operatorToken),b_=f0(Zo,Zo.operatorToken,Zo.right);if(LS(Io,b_),Wo.stackIndex>0){let nf=Wo.preserveSourceNewlinesStack[Wo.stackIndex],p0=Wo.containerPosStack[Wo.stackIndex],BS=Wo.containerEndStack[Wo.stackIndex],rm=Wo.declarationListContainerEndStack[Wo.stackIndex],JT=Wo.shouldEmitCommentsStack[Wo.stackIndex],Kk=Wo.shouldEmitSourceMapsStack[Wo.stackIndex];ct(nf),Kk&&sg(Zo),JT&&iD(Zo,p0,BS,rm),y?.(Zo),Wo.stackIndex--}}function jo(Zo,Wo,Io){let b_=Io==="left"?Sn.getParenthesizeLeftSideOfBinaryForOperator(Wo.operatorToken.kind):Sn.getParenthesizeRightSideOfBinaryForOperator(Wo.operatorToken.kind),nf=bt(0,1,Zo);if(nf===yi&&(B.assertIsDefined(bn),Zo=b_(ea(bn,Mt)),nf=je(1,1,Zo),bn=void 0),(nf===mA||nf===HT||nf===mt)&&Yn(Zo))return Zo;an=b_,nf(1,Zo)}}function Mc(M){let Te=f0(M,M.condition,M.questionToken),Rt=f0(M,M.questionToken,M.whenTrue),Ei=f0(M,M.whenTrue,M.colonToken),Xr=f0(M,M.colonToken,M.whenFalse);ht(M.condition,Sn.parenthesizeConditionOfConditionalExpression),Um(Te,!0),Ai(M.questionToken),Um(Rt,!0),ht(M.whenTrue,Sn.parenthesizeBranchOfConditionalExpression),LS(Te,Rt),Um(Ei,!0),Ai(M.colonToken),Um(Xr,!0),ht(M.whenFalse,Sn.parenthesizeBranchOfConditionalExpression),LS(Ei,Xr)}function gc(M){Ai(M.head),sl(M,M.templateSpans,262144)}function Ju(M){ze(127,M.pos,ys,M),Ai(M.asteriskToken),og(M.expression&&lo(M.expression),Is)}function Zp(M){ze(26,M.pos,or,M),ht(M.expression,Sn.parenthesizeExpressionForDisallowedComma)}function Qh(M){sv(M.name),pb(M)}function Sp(M){ht(M.expression,Sn.parenthesizeLeftSideOfAccess),rr(M,M.typeArguments)}function hm(M){ht(M.expression,void 0),M.type&&(qn(),ys("as"),qn(),Ai(M.type))}function Wm(M){ht(M.expression,Sn.parenthesizeLeftSideOfAccess),PS("!")}function yh(M){ht(M.expression,void 0),M.type&&(qn(),ys("satisfies"),qn(),Ai(M.type))}function t1(M){Jk(M.keywordToken,M.pos,or),or("."),Ai(M.name)}function Zh(M){ht(M.expression),Ai(M.literal)}function np(M){Ad(M,!M.multiLine&&S6(M))}function Ad(M,Te){ze(19,M.pos,or,M);let Rt=Te||ja(M)&1?768:129;sl(M,M.statements,Rt),ze(20,M.statements.end,or,M,!!(Rt&1))}function _b(M){ym(M,M.modifiers,!1),Ai(M.declarationList),Vf()}function j_(M){M?or(";"):Vf()}function i1(M){ht(M.expression,Sn.parenthesizeExpressionOfExpressionStatement),(!q||!Wh(q)||Uc(M.expression))&&Vf()}function zm(M){let Te=ze(101,M.pos,ys,M);qn(),ze(21,Te,or,M),ht(M.expression),ze(22,M.expression.end,or,M),NS(M,M.thenStatement),M.elseStatement&&(wp(M,M.thenStatement,M.elseStatement),ze(93,M.thenStatement.end,ys,M),M.elseStatement.kind===245?(qn(),Ai(M.elseStatement)):NS(M,M.elseStatement))}function me(M,Te){let Rt=ze(117,Te,ys,M);qn(),ze(21,Rt,or,M),ht(M.expression),ze(22,M.expression.end,or,M)}function wt(M){ze(92,M.pos,ys,M),NS(M,M.statement),Ds(M.statement)&&!Re?qn():wp(M,M.statement,M.expression),me(M,M.statement.end),Vf()}function oi(M){me(M,M.pos),NS(M,M.statement)}function di(M){let Te=ze(99,M.pos,ys,M);qn();let Rt=ze(21,Te,or,M);ur(M.initializer),Rt=ze(27,M.initializer?M.initializer.end:Rt,or,M),og(M.condition),Rt=ze(27,M.condition?M.condition.end:Rt,or,M),og(M.incrementor),ze(22,M.incrementor?M.incrementor.end:Rt,or,M),NS(M,M.statement)}function Zi(M){let Te=ze(99,M.pos,ys,M);qn(),ze(21,Te,or,M),ur(M.initializer),qn(),ze(103,M.initializer.end,ys,M),qn(),ht(M.expression),ze(22,M.expression.end,or,M),NS(M,M.statement)}function Tn(M){let Te=ze(99,M.pos,ys,M);qn(),dA(M.awaitModifier),ze(21,Te,or,M),ur(M.initializer),qn(),ze(165,M.initializer.end,ys,M),qn(),ht(M.expression),ze(22,M.expression.end,or,M),NS(M,M.statement)}function ur(M){M!==void 0&&(M.kind===261?Ai(M):ht(M))}function qr(M){ze(88,M.pos,ys,M),Gx(M.label),Vf()}function Q(M){ze(83,M.pos,ys,M),Gx(M.label),Vf()}function ze(M,Te,Rt,Ei,Xr){let jo=_s(Ei),Zo=jo&&jo.kind===Ei.kind,Wo=Te;if(Zo&&q&&(Te=Ea(q.text,Te)),Zo&&Ei.pos!==Wo){let Io=Xr&&q&&!ch(Wo,Te,q);Io&&i_(),RS(Wo),Io&&vm()}if(!P&&(M===19||M===20)?Te=Jk(M,Te,Rt,Ei):Te=d1(M,Rt,Te),Zo&&Ei.end!==Te){let Io=Ei.kind===294;p1(Te,!Io,Io)}return Te}function Ut(M){return M.kind===2||!!M.hasTrailingNewLine}function gn(M){if(!q)return!1;let Te=Mv(q.text,M.pos);if(Te){let Rt=_s(M);if(Rt&&O_(Rt.parent))return!0}return Lt(Te,Ut)||Lt(h4(M),Ut)?!0:zee(M)?M.pos!==M.expression.pos&&Lt(lx(q.text,M.expression.pos),Ut)?!0:gn(M.expression):!1}function lo(M){if(!Fi&&zee(M)&&gn(M)){let Te=_s(M);if(Te&&O_(Te)){let Rt=U.createParenthesizedExpression(M.expression);return cr(Rt,M),Ft(Rt,Te),Rt}return U.createParenthesizedExpression(M)}return M}function Is(M){return lo(Sn.parenthesizeExpressionForDisallowedComma(M))}function os(M){ze(107,M.pos,ys,M),og(M.expression&&lo(M.expression),lo),Vf()}function Ns(M){let Te=ze(118,M.pos,ys,M);qn(),ze(21,Te,or,M),ht(M.expression),ze(22,M.expression.end,or,M),NS(M,M.statement)}function Qa(M){let Te=ze(109,M.pos,ys,M);qn(),ze(21,Te,or,M),ht(M.expression),ze(22,M.expression.end,or,M),qn(),Ai(M.caseBlock)}function Ra(M){Ai(M.label),ze(59,M.label.end,or,M),qn(),Ai(M.statement)}function Il(M){ze(111,M.pos,ys,M),og(lo(M.expression),lo),Vf()}function vh(M){ze(113,M.pos,ys,M),qn(),Ai(M.tryBlock),M.catchClause&&(wp(M,M.tryBlock,M.catchClause),Ai(M.catchClause)),M.finallyBlock&&(wp(M,M.catchClause||M.tryBlock,M.finallyBlock),ze(98,(M.catchClause||M.tryBlock).end,ys,M),qn(),Ai(M.finallyBlock))}function Tg(M){Jk(89,M.pos,ys),Vf()}function a0(M){var Te,Rt,Ei;Ai(M.name),Ai(M.exclamationToken),d0(M.type),ov(M.initializer,((Te=M.type)==null?void 0:Te.end)??((Ei=(Rt=M.name.emitNode)==null?void 0:Rt.typeNode)==null?void 0:Ei.end)??M.name.end,M,Sn.parenthesizeExpressionForDisallowedComma)}function n1(M){if(NM(M))ys("await"),qn(),ys("using");else{let Te=Bz(M)?"let":UP(M)?"const":AM(M)?"using":"var";ys(Te)}qn(),sl(M,M.declarations,528)}function CS(M){r1(M)}function r1(M){ym(M,M.modifiers,!1),ys("function"),Ai(M.asteriskToken),qn(),Ha(M.name),bh(M,gm,Sh)}function bh(M,Te,Rt){let Ei=ja(M)&131072;Ei&&i_(),xb(M),re(M.parameters,Rd),Te(M),Rt(M),Ig(M),Ei&&vm()}function Sh(M){let Te=M.body;Te?c0(Te):Vf()}function ul(M){Vf()}function gm(M){qd(M,M.typeParameters),bb(M,M.parameters),d0(M.type)}function xp(M){if(ja(M)&1)return!0;if(M.multiLine||!Uc(M)&&q&&!fE(M,q)||OS(M,mc(M.statements),2)||GE(M,Lc(M.statements),2,M.statements))return!1;let Te;for(let Rt of M.statements){if(RT(Te,Rt,2)>0)return!1;Te=Rt}return!0}function c0(M){Rd(M),p?.(M),qn(),or("{"),i_();let Te=xp(M)?o1:eg;eC(M,M.statements,Te),vm(),Jk(20,M.statements.end,or,M),y?.(M)}function o1(M){eg(M,!0)}function eg(M,Te){let Rt=Aa(M.statements),Ei=ke.getTextPos();Ii(M),Rt===0&&Ei===ke.getTextPos()&&Te?(vm(),sl(M,M.statements,768),i_()):sl(M,M.statements,1,void 0,Rt)}function iv(M){pb(M)}function pb(M){ym(M,M.modifiers,!0),ze(86,X0(M).pos,ys,M),M.name&&(qn(),Ha(M.name));let Te=ja(M)&131072;Te&&i_(),qd(M,M.typeParameters),sl(M,M.heritageClauses,0),qn(),or("{"),xb(M),re(M.members,ZE),sl(M,M.members,129),Ig(M),or("}"),Te&&vm()}function kS(M){ym(M,M.modifiers,!1),ys("interface"),qn(),Ai(M.name),qd(M,M.typeParameters),sl(M,M.heritageClauses,512),qn(),or("{"),xb(M),re(M.members,ZE),sl(M,M.members,129),Ig(M),or("}")}function tg(M){ym(M,M.modifiers,!1),ys("type"),qn(),Ai(M.name),qd(M,M.typeParameters),qn(),or("="),qn(),Ai(M.type),Vf()}function Mk(M){ym(M,M.modifiers,!1),ys("enum"),qn(),Ai(M.name),qn(),or("{"),sl(M,M.members,145),or("}")}function Vm(M){ym(M,M.modifiers,!1),~M.flags&2048&&(ys(M.flags&32?"namespace":"module"),qn()),Ai(M.name);let Te=M.body;if(!Te)return Vf();for(;Te&&Hu(Te);)or("."),Ai(Te.name),Te=Te.body;qn(),Ai(Te)}function ig(M){xb(M),re(M.statements,Rd),Ad(M,S6(M)),Ig(M)}function mb(M){ze(19,M.pos,or,M),sl(M,M.clauses,129),ze(20,M.clauses.end,or,M,!0)}function Rk(M){ym(M,M.modifiers,!1),ze(102,M.modifiers?M.modifiers.end:M.pos,ys,M),qn(),M.isTypeOnly&&(ze(156,M.pos,ys,M),qn()),Ai(M.name),qn(),ze(64,M.name.end,or,M),qn(),nv(M.moduleReference),Vf()}function nv(M){M.kind===80?ht(M):Ai(M)}function s1(M){ym(M,M.modifiers,!1),ze(102,M.modifiers?M.modifiers.end:M.pos,ys,M),qn(),M.importClause&&(Ai(M.importClause),qn(),ze(161,M.importClause.end,ys,M),qn()),ht(M.moduleSpecifier),M.attributes&&Gx(M.attributes),Vf()}function Bk(M){M.isTypeOnly&&(ze(156,M.pos,ys,M),qn()),Ai(M.name),M.name&&M.namedBindings&&(ze(28,M.name.end,or,M),qn()),Ai(M.namedBindings)}function Vx(M){let Te=ze(42,M.pos,or,M);qn(),ze(130,Te,ys,M),qn(),Ai(M.name)}function Xe(M){Kn(M)}function dt(M){Es(M)}function qt(M){let Te=ze(95,M.pos,ys,M);qn(),M.isExportEquals?ze(64,Te,PS,M):ze(90,Te,ys,M),qn(),ht(M.expression,M.isExportEquals?Sn.getParenthesizeRightSideOfBinaryForOperator(64):Sn.parenthesizeExpressionOfExportDefault),Vf()}function bi(M){ym(M,M.modifiers,!1);let Te=ze(95,M.pos,ys,M);if(qn(),M.isTypeOnly&&(Te=ze(156,Te,ys,M),qn()),M.exportClause?Ai(M.exportClause):Te=ze(42,Te,or,M),M.moduleSpecifier){qn();let Rt=M.exportClause?M.exportClause.end:Te;ze(161,Rt,ys,M),qn(),ht(M.moduleSpecifier)}M.attributes&&Gx(M.attributes),Vf()}function qi(M){or("{"),qn(),ys(M.token===132?"assert":"with"),or(":"),qn();let Te=M.elements;sl(M,Te,526226),qn(),or("}")}function En(M){ze(M.token,M.pos,ys,M),qn();let Te=M.elements;sl(M,Te,526226)}function tn(M){Ai(M.name),or(":"),qn();let Te=M.value;if(!(ja(Te)&1024)){let Rt=Q0(Te);p1(Rt.pos)}Ai(Te)}function dr(M){let Te=ze(95,M.pos,ys,M);qn(),Te=ze(130,Te,ys,M),qn(),Te=ze(145,Te,ys,M),qn(),Ai(M.name),Vf()}function so(M){let Te=ze(42,M.pos,or,M);qn(),ze(130,Te,ys,M),qn(),Ai(M.name)}function Gn(M){Kn(M)}function uo(M){Es(M)}function Kn(M){or("{"),sl(M,M.elements,525136),or("}")}function Es(M){M.isTypeOnly&&(ys("type"),qn()),M.propertyName&&(Ai(M.propertyName),qn(),ze(130,M.propertyName.end,ys,M),qn()),Ai(M.name)}function Jc(M){ys("require"),or("("),ht(M.expression),or(")")}function g_(M){Ai(M.openingElement),sl(M,M.children,262144),Ai(M.closingElement)}function ng(M){or("<"),qx(M.tagName),rr(M,M.typeArguments),qn(),Ai(M.attributes),or("/>")}function y_(M){Ai(M.openingFragment),sl(M,M.children,262144),Ai(M.closingFragment)}function rg(M){if(or("<"),ny(M)){let Te=KE(M.tagName,M);qx(M.tagName),rr(M,M.typeArguments),M.attributes.properties&&M.attributes.properties.length>0&&qn(),Ai(M.attributes),XE(M.attributes,M),LS(Te)}or(">")}function v_(M){ke.writeLiteral(M.text)}function LT(M){or("")}function Hx(M){sl(M,M.properties,262656)}function a1(M){Ai(M.name),uA("=",or,M.initializer,Jt)}function hb(M){or("{..."),ht(M.expression),or("}")}function wS(M){let Te=!1;return tM(q?.text||"",M+1,()=>Te=!0),Te}function Eg(M){let Te=!1;return eM(q?.text||"",M+1,()=>Te=!0),Te}function TS(M){return wS(M)||Eg(M)}function Ux(M){var Te;if(M.expression||!Fi&&!Uc(M)&&TS(M.pos)){let Rt=q&&!Uc(M)&&ma(q,M.pos).line!==ma(q,M.end).line;Rt&&ke.increaseIndent();let Ei=ze(19,M.pos,or,M);Ai(M.dotDotDotToken),ht(M.expression),ze(20,((Te=M.expression)==null?void 0:Te.end)||Ei,or,M),Rt&&ke.decreaseIndent()}}function Jx(M){Ha(M.namespace),or(":"),Ha(M.name)}function qx(M){M.kind===80?ht(M):Ai(M)}function zE(M){ze(84,M.pos,ys,M),qn(),ht(M.expression,Sn.parenthesizeExpressionForDisallowedComma),Ga(M,M.statements,M.expression.end)}function jk(M){let Te=ze(90,M.pos,ys,M);Ga(M,M.statements,Te)}function Ga(M,Te,Rt){let Ei=Te.length===1&&(!q||Uc(M)||Uc(Te[0])||TV(M,Te[0],q)),Xr=163969;Ei?(Jk(59,Rt,or,M),qn(),Xr&=-130):ze(59,Rt,or,M),sl(M,Te,Xr)}function OT(M){qn(),d1(M.token,ys),qn(),sl(M,M.types,528)}function VE(M){let Te=ze(85,M.pos,ys,M);qn(),M.variableDeclaration&&(ze(21,Te,or,M),Ai(M.variableDeclaration),ze(22,M.variableDeclaration.end,or,M),qn()),Ai(M.block)}function Wk(M){Ai(M.name),or(":"),qn();let Te=M.initializer;if(!(ja(Te)&1024)){let Rt=Q0(Te);p1(Rt.pos)}ht(Te,Sn.parenthesizeExpressionForDisallowedComma)}function c1(M){Ai(M.name),M.objectAssignmentInitializer&&(qn(),or("="),qn(),ht(M.objectAssignmentInitializer,Sn.parenthesizeExpressionForDisallowedComma))}function l1(M){M.expression&&(ze(26,M.pos,or,M),ht(M.expression,Sn.parenthesizeExpressionForDisallowedComma))}function Hm(M){Ai(M.name),ov(M.initializer,M.name.end,M,Sn.parenthesizeExpressionForDisallowedComma)}function em(M){if(Oe("/**"),M.comment){let Te=uM(M.comment);if(Te){let Rt=Te.split(/\r\n?|\n/);for(let Ei of Rt)t_(),qn(),or("*"),qn(),Oe(Ei)}}M.tags&&(M.tags.length===1&&M.tags[0].kind===344&&!M.comment?(qn(),Ai(M.tags[0])):sl(M,M.tags,33)),qn(),Oe("*/")}function tm(M){fy(M.tagName),u0(M.typeExpression),ot(M.comment)}function Cp(M){fy(M.tagName),Ai(M.name),ot(M.comment)}function $x(M){fy(M.tagName),qn(),M.importClause&&(Ai(M.importClause),qn(),ze(161,M.importClause.end,ys,M),qn()),ht(M.moduleSpecifier),M.attributes&&Gx(M.attributes),ot(M.comment)}function g6(M){qn(),or("{"),Ai(M.name),or("}")}function Md(M){fy(M.tagName),qn(),or("{"),Ai(M.class),or("}"),ot(M.comment)}function l0(M){fy(M.tagName),u0(M.constraint),qn(),sl(M,M.typeParameters,528),ot(M.comment)}function ES(M){fy(M.tagName),M.typeExpression&&(M.typeExpression.kind===309?u0(M.typeExpression):(qn(),or("{"),Oe("Object"),M.typeExpression.isArrayType&&(or("["),or("]")),or("}"))),M.fullName&&(qn(),Ai(M.fullName)),ot(M.comment),M.typeExpression&&M.typeExpression.kind===322&&gb(M.typeExpression)}function rv(M){fy(M.tagName),M.name&&(qn(),Ai(M.name)),ot(M.comment),kp(M.typeExpression)}function aA(M){ot(M.comment),kp(M.typeExpression)}function zf(M){fy(M.tagName),ot(M.comment)}function gb(M){sl(M,U.createNodeArray(M.jsDocPropertyTags),33)}function kp(M){M.typeParameters&&sl(M,U.createNodeArray(M.typeParameters),33),M.parameters&&sl(M,U.createNodeArray(M.parameters),33),M.type&&(t_(),qn(),or("*"),qn(),Ai(M.type))}function zk(M){fy(M.tagName),u0(M.typeExpression),qn(),M.isBracketed&&or("["),Ai(M.name),M.isBracketed&&or("]"),ot(M.comment)}function fy(M){or("@"),Ai(M)}function ot(M){let Te=uM(M);Te&&(qn(),Oe(Te))}function u0(M){M&&(qn(),or("{"),Ai(M.type),or("}"))}function _y(M){t_();let Te=M.statements;if(Te.length===0||!H0(Te[0])||Uc(Te[0])){eC(M,Te,DS);return}DS(M)}function Vk(M){yb(!!M.hasNoDefaultLib,M.syntheticFileReferences||[],M.syntheticTypeReferences||[],M.syntheticLibReferences||[])}function cA(M){M.isDeclarationFile&&yb(M.hasNoDefaultLib,M.referencedFiles,M.typeReferenceDirectives,M.libReferenceDirectives)}function yb(M,Te,Rt,Ei){if(M&&(Uk('/// '),t_()),q&&q.moduleName&&(Uk(`/// `),t_()),q&&q.amdDependencies)for(let jo of q.amdDependencies)jo.name?Uk(`/// `):Uk(`/// `),t_();function Xr(jo,Zo){for(let Wo of Zo){let Io=Wo.resolutionMode?`resolution-mode="${Wo.resolutionMode===99?"import":"require"}" `:"",b_=Wo.preserve?'preserve="true" ':"";Uk(`/// `),t_()}}Xr("path",Te),Xr("types",Rt),Xr("lib",Ei)}function DS(M){let Te=M.statements;xb(M),re(M.statements,Rd),Ii(M);let Rt=zi(Te,Ei=>!H0(Ei));cA(M),sl(M,Te,1,void 0,Rt===-1?Te.length:Rt),Ig(M)}function vb(M){let Te=ja(M);!(Te&1024)&&M.pos!==M.expression.pos&&p1(M.expression.pos),ht(M.expression),!(Te&2048)&&M.end!==M.expression.end&&RS(M.expression.end)}function lA(M){Sb(M,M.elements,528,void 0)}function Aa(M,Te,Rt){let Ei=!!Te;for(let Xr=0;Xr=Rt.length||Zo===0;if(Io&&Ei&32768){g?.(Rt),x?.(Rt);return}Ei&15360&&(or(YIt(Ei)),Io&&Rt&&p1(Rt.pos,!0)),g?.(Rt),Io?Ei&1&&!(Re&&(!Te||q&&fE(Te,q)))?t_():Ei&256&&!(Ei&524288)&&qn():xh(M,Te,Rt,Ei,Xr,jo,Zo,Rt.hasTrailingComma,Rt),x?.(Rt),Ei&15360&&(Io&&Rt&&RS(Rt.end),or(QIt(Ei)))}function xh(M,Te,Rt,Ei,Xr,jo,Zo,Wo,Io){let b_=(Ei&262144)===0,nf=b_,p0=OS(Te,Rt[jo],Ei);p0?(t_(p0),nf=!1):Ei&256&&qn(),Ei&128&&i_();let BS=iNt(M,Xr),rm,JT=!1;for(let m0=0;m00){if(Ei&131||(i_(),JT=!0),nf&&Ei&60&&!Yg(m1.pos)){let xA=Q0(m1);p1(xA.pos,!!(Ei&512),!0)}t_(jS),nf=!1}else rm&&Ei&512&&qn()}if(nf){let jS=Q0(m1);p1(jS.pos)}else nf=b_;ie=m1.pos,BS(m1,M,Xr,m0),JT&&(vm(),JT=!1),rm=m1}let Kk=rm?ja(rm):0,qT=Fi||!!(Kk&2048),SA=Wo&&Ei&64&&Ei&16;SA&&(rm&&!qT?ze(28,rm.end,or,rm):or(",")),rm&&(Te?Te.end:-1)!==rm.end&&Ei&60&&!qT&&RS(SA&&Io?.end?Io.end:rm.end),Ei&128&&vm();let sD=GE(Te,Rt[jo+Zo-1],Ei,Io);sD?t_(sD):Ei&2097408&&qn()}function MT(M){ke.writeLiteral(M)}function JE(M){ke.writeStringLiteral(M)}function y6(M){ke.write(M)}function v6(M,Te){ke.writeSymbol(M,Te)}function or(M){ke.writePunctuation(M)}function Vf(){ke.writeTrailingSemicolon(";")}function ys(M){ke.writeKeyword(M)}function PS(M){ke.writeOperator(M)}function fA(M){ke.writeParameter(M)}function Uk(M){ke.writeComment(M)}function qn(){ke.writeSpace(" ")}function b6(M){ke.writeProperty(M)}function qE(M){ke.nonEscapingWrite?ke.nonEscapingWrite(M):ke.write(M)}function t_(M=1){for(let Te=0;Te0)}function i_(){ke.increaseIndent()}function vm(){ke.decreaseIndent()}function Jk(M,Te,Rt,Ei){return Ae?d1(M,Rt,Te):ag(Ei,M,Rt,Te,d1)}function $E(M,Te){k&&k(M),Te(ua(M.kind)),T&&T(M)}function d1(M,Te,Rt){let Ei=ua(M);return Te(Ei),Rt<0?Rt:Rt+Ei.length}function wp(M,Te,Rt){if(ja(M)&1)qn();else if(Re){let Ei=f0(M,Te,Rt);Ei?t_(Ei):qn()}else t_()}function py(M){let Te=M.split(/\r\n?|\n/),Rt=uhe(Te);for(let Ei of Te){let Xr=Rt?Ei.slice(Rt):Ei;Xr.length&&(t_(),Oe(Xr))}}function Um(M,Te){M?(i_(),t_(M)):Te&&qn()}function LS(M,Te){M&&vm(),Te&&vm()}function OS(M,Te,Rt){if(Rt&2||Re){if(Rt&65536)return 1;if(Te===void 0)return!M||q&&fE(M,q)?0:1;if(Te.pos===ie||Te.kind===12)return 0;if(q&&M&&!Yg(M.pos)&&!Uc(Te)&&(!Te.parent||El(Te.parent)===El(M)))return Re?Xx(Ei=>Vge(Te.pos,M.pos,q,Ei)):TV(M,Te,q)?0:1;if(YE(Te,Rt))return 1}return Rt&1?1:0}function RT(M,Te,Rt){if(Rt&2||Re){if(M===void 0||Te===void 0||Te.kind===12)return 0;if(q&&!Uc(M)&&!Uc(Te))return Re&&nD(M,Te)?Xx(Ei=>$Z(M,Te,q,Ei)):!Re&&Jm(M,Te)?gR(M,Te,q)?0:1:Rt&65536?1:0;if(YE(M,Rt)||YE(Te,Rt))return 1}else if(EO(Te))return 1;return Rt&1?1:0}function GE(M,Te,Rt,Ei){if(Rt&2||Re){if(Rt&65536)return 1;if(Te===void 0)return!M||q&&fE(M,q)?0:1;if(q&&M&&!Yg(M.pos)&&!Uc(Te)&&(!Te.parent||Te.parent===M)){if(Re){let Xr=Ei&&!Yg(Ei.end)?Ei.end:Te.end;return Xx(jo=>Hge(Xr,M.end,q,jo))}return jge(M,Te,q)?0:1}if(YE(Te,Rt))return 1}return Rt&1&&!(Rt&131072)?1:0}function Xx(M){B.assert(!!Re);let Te=M(!0);return Te===0?M(!1):Te}function KE(M,Te){let Rt=Re&&OS(Te,M,0);return Rt&&Um(Rt,!1),!!Rt}function XE(M,Te){let Rt=Re&&GE(Te,M,0,void 0);Rt&&t_(Rt)}function YE(M,Te){if(Uc(M)){let Rt=EO(M);return Rt===void 0?(Te&65536)!==0:Rt}return(Te&65536)!==0}function f0(M,Te,Rt){return ja(M)&262144?0:(M=qk(M),Te=qk(Te),Rt=qk(Rt),EO(Rt)?1:q&&!Uc(M)&&!Uc(Te)&&!Uc(Rt)?Re?Xx(Ei=>$Z(Te,Rt,q,Ei)):gR(Te,Rt,q)?0:1:0)}function S6(M){return M.statements.length===0&&(!q||gR(M,M,q))}function qk(M){for(;M.kind===217&&Uc(M);)M=M.expression;return M}function Yx(M,Te){if(yl(M)||Z2(M))return eD(M);if(Da(M)&&M.textSourceNode)return Yx(M.textSourceNode,Te);let Rt=q,Ei=!!Rt&&!!M.parent&&!Uc(M);if(Bv(M)){if(!Ei||en(M)!==El(Rt))return mr(M)}else if(e0(M)){if(!Ei||en(M)!==El(Rt))return TO(M)}else if(B.assertNode(M,Q2),!Ei)return M.text;return Vw(Rt,M,Te)}function f1(M,Te=q,Rt,Ei){if(M.kind===11&&M.textSourceNode){let jo=M.textSourceNode;if(et(jo)||xo(jo)||Z_(jo)||e0(jo)){let Zo=Z_(jo)?jo.text:Yx(jo);return Ei?`"${AZ(Zo)}"`:Rt||ja(M)&16777216?`"${Yy(Zo)}"`:`"${uV(Zo)}"`}else return f1(jo,en(jo),Rt,Ei)}let Xr=(Rt?1:0)|(Ei?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return xhe(M,Te,Xr)}function xb(M){ae.push(Ce),Ce=0,be.push(Se),!(M&&ja(M)&1048576)&&(he.push(ue),ue=0,_e.push(ce),ce=void 0,Ee.push(ve))}function Ig(M){Ce=ae.pop(),Se=be.pop(),!(M&&ja(M)&1048576)&&(ue=he.pop(),ce=_e.pop(),ve=Ee.pop())}function FS(M){(!ve||ve===Lc(Ee))&&(ve=new Set),ve.add(M)}function QE(M){(!Se||Se===Lc(be))&&(Se=new Set),Se.add(M)}function Rd(M){if(M)switch(M.kind){case 241:re(M.statements,Rd);break;case 256:case 254:case 246:case 247:Rd(M.statement);break;case 245:Rd(M.thenStatement),Rd(M.elseStatement);break;case 248:case 250:case 249:Rd(M.initializer),Rd(M.statement);break;case 255:Rd(M.caseBlock);break;case 269:re(M.clauses,Rd);break;case 296:case 297:re(M.statements,Rd);break;case 258:Rd(M.tryBlock),Rd(M.catchClause),Rd(M.finallyBlock);break;case 299:Rd(M.variableDeclaration),Rd(M.block);break;case 243:Rd(M.declarationList);break;case 261:re(M.declarations,Rd);break;case 260:case 169:case 208:case 263:sv(M.name);break;case 262:sv(M.name),ja(M)&1048576&&(re(M.parameters,Rd),Rd(M.body));break;case 206:case 207:re(M.elements,Rd);break;case 272:Rd(M.importClause);break;case 273:sv(M.name),Rd(M.namedBindings);break;case 274:sv(M.name);break;case 280:sv(M.name);break;case 275:re(M.elements,Rd);break;case 276:sv(M.propertyName||M.name);break}}function ZE(M){if(M)switch(M.kind){case 303:case 304:case 172:case 171:case 174:case 173:case 177:case 178:sv(M.name);break}}function sv(M){M&&(yl(M)||Z2(M)?eD(M):Rs(M)&&Rd(M))}function eD(M){let Te=M.emitNode.autoGenerate;if((Te.flags&7)===4)return $k(YR(M),xo(M),Te.flags,Te.prefix,Te.suffix);{let Rt=Te.id;return te[Rt]||(te[Rt]=C6(M))}}function $k(M,Te,Rt,Ei,Xr){let jo=ac(M),Zo=Te?$:G;return Zo[jo]||(Zo[jo]=Ml(M,Te,Rt??0,I4(Ei,eD),I4(Xr)))}function Cb(M,Te){return BT(M,Te)&&!Qx(M,Te)&&!ne.has(M)}function Qx(M,Te){let Rt,Ei;if(Te?(Rt=Se,Ei=be):(Rt=ve,Ei=Ee),Rt?.has(M))return!0;for(let Xr=Ei.length-1;Xr>=0;Xr--)if(Rt!==Ei[Xr]&&(Rt=Ei[Xr],Rt?.has(M)))return!0;return!1}function BT(M,Te){return q?Az(q,M,r):!0}function Fu(M,Te){for(let Rt=Te;Rt&&Xw(Rt,Te);Rt=Rt.nextContainer)if(Uy(Rt)&&Rt.locals){let Ei=Rt.locals.get(Hl(M));if(Ei&&Ei.flags&3257279)return!1}return!0}function xf(M){switch(M){case"":return ue;case"#":return Ce;default:return ce?.get(M)??0}}function x6(M,Te){switch(M){case"":ue=Te;break;case"#":Ce=Te;break;default:ce??(ce=new Map),ce.set(M,Te);break}}function n_(M,Te,Rt,Ei,Xr){Ei.length>0&&Ei.charCodeAt(0)===35&&(Ei=Ei.slice(1));let jo=bk(Rt,Ei,"",Xr),Zo=xf(jo);if(M&&!(Zo&M)){let Io=bk(Rt,Ei,M===268435456?"_i":"_n",Xr);if(Cb(Io,Rt))return Zo|=M,Rt?QE(Io):Te&&FS(Io),x6(jo,Zo),Io}for(;;){let Wo=Zo&268435455;if(Zo++,Wo!==8&&Wo!==13){let Io=Wo<26?"_"+String.fromCharCode(97+Wo):"_"+(Wo-26),b_=bk(Rt,Ei,Io,Xr);if(Cb(b_,Rt))return Rt?QE(b_):Te&&FS(b_),x6(jo,Zo),b_}}}function Tp(M,Te=Cb,Rt,Ei,Xr,jo,Zo){if(M.length>0&&M.charCodeAt(0)===35&&(M=M.slice(1)),jo.length>0&&jo.charCodeAt(0)===35&&(jo=jo.slice(1)),Rt){let Io=bk(Xr,jo,M,Zo);if(Te(Io,Xr))return Xr?QE(Io):Ei?FS(Io):ne.add(Io),Io}M.charCodeAt(M.length-1)!==95&&(M+="_");let Wo=1;for(;;){let Io=bk(Xr,jo,M+Wo,Zo);if(Te(Io,Xr))return Xr?QE(Io):Ei?FS(Io):ne.add(Io),Io;Wo++}}function _A(M){return Tp(M,BT,!0,!1,!1,"","")}function my(M){let Te=Yx(M.name);return Fu(Te,kr(M,Uy))?Te:Tp(Te,Cb,!1,!1,!1,"","")}function pA(M){let Te=GI(M),Rt=Da(Te)?khe(Te.text):"module";return Tp(Rt,Cb,!1,!1,!1,"","")}function MS(){return Tp("default",Cb,!1,!1,!1,"","")}function tD(){return Tp("class",Cb,!1,!1,!1,"","")}function q8(M,Te,Rt,Ei){return et(M.name)?$k(M.name,Te):n_(0,!1,Te,Rt,Ei)}function Ml(M,Te,Rt,Ei,Xr){switch(M.kind){case 80:case 81:return Tp(Yx(M),Cb,!!(Rt&16),!!(Rt&8),Te,Ei,Xr);case 267:case 266:return B.assert(!Ei&&!Xr&&!Te),my(M);case 272:case 278:return B.assert(!Ei&&!Xr&&!Te),pA(M);case 262:case 263:{B.assert(!Ei&&!Xr&&!Te);let jo=M.name;return jo&&!yl(jo)?Ml(jo,!1,Rt,Ei,Xr):MS()}case 277:return B.assert(!Ei&&!Xr&&!Te),MS();case 231:return B.assert(!Ei&&!Xr&&!Te),tD();case 174:case 177:case 178:return q8(M,Te,Ei,Xr);case 167:return n_(0,!0,Te,Ei,Xr);default:return n_(0,!1,Te,Ei,Xr)}}function C6(M){let Te=M.emitNode.autoGenerate,Rt=I4(Te.prefix,eD),Ei=I4(Te.suffix);switch(Te.flags&7){case 1:return n_(0,!!(Te.flags&8),xo(M),Rt,Ei);case 2:return B.assertNode(M,et),n_(268435456,!!(Te.flags&8),!1,Rt,Ei);case 3:return Tp(mr(M),Te.flags&32?BT:Cb,!!(Te.flags&16),!!(Te.flags&8),xo(M),Rt,Ei)}return B.fail(`Unsupported GeneratedIdentifierKind: ${B.formatEnum(Te.flags&7,jY,!0)}.`)}function mA(M,Te){let Rt=je(2,M,Te),Ei=Ue,Xr=gt,jo=xt;Zx(Te),Rt(M,Te),iD(Te,Ei,Xr,jo)}function Zx(M){let Te=ja(M),Rt=Q0(M);rp(M,Te,Rt.pos,Rt.end),Te&4096&&(Fi=!0)}function iD(M,Te,Rt,Ei){let Xr=ja(M),jo=Q0(M);Xr&4096&&(Fi=!1),jT(M,Xr,jo.pos,jo.end,Te,Rt,Ei);let Zo=J0e(M);Zo&&jT(M,Xr,Zo.pos,Zo.end,Te,Rt,Ei)}function rp(M,Te,Rt,Ei){ni(),ci=!1;let Xr=Rt<0||(Te&1024)!==0||M.kind===12,jo=Ei<0||(Te&2048)!==0||M.kind===12;(Rt>0||Ei>0)&&Rt!==Ei&&(Xr||tC(Rt,M.kind!==353),(!Xr||Rt>=0&&Te&1024)&&(Ue=Rt),(!jo||Ei>=0&&Te&2048)&&(gt=Ei,M.kind===261&&(xt=Ei))),re(h4(M),hA),Ci()}function jT(M,Te,Rt,Ei,Xr,jo,Zo){ni();let Wo=Ei<0||(Te&2048)!==0||M.kind===12;re(MR(M),WT),(Rt>0||Ei>0)&&Rt!==Ei&&(Ue=Xr,gt=jo,xt=Zo,!Wo&&M.kind!==353&&W_(Ei)),Ci()}function hA(M){(M.hasLeadingNewline||M.kind===2)&&ke.writeLine(),Ep(M),M.hasTrailingNewLine||M.kind===2?ke.writeLine():ke.writeSpace(" ")}function WT(M){ke.isAtStartOfLine()||ke.writeSpace(" "),Ep(M),M.hasTrailingNewLine&&ke.writeLine()}function Ep(M){let Te=gA(M),Rt=M.kind===3?OI(Te):void 0;s4(Te,Rt,ke,0,Te.length,R)}function gA(M){return M.kind===3?`/*${M.text}*/`:`//${M.text}`}function eC(M,Te,Rt){ni();let{pos:Ei,end:Xr}=Te,jo=ja(M),Zo=Ei<0||(jo&1024)!==0,Wo=Fi||Xr<0||(jo&2048)!==0;Zo||w6(Te),Ci(),jo&4096&&!Fi?(Fi=!0,Rt(M),Fi=!1):Rt(M),ni(),Wo||(tC(Te.end,!0),ci&&!ke.isAtStartOfLine()&&ke.writeLine()),Ci()}function Jm(M,Te){return M=El(M),M.parent&&M.parent===El(Te).parent}function nD(M,Te){if(Te.pos-1&&Ei.indexOf(Te)===Xr+1}function tC(M,Te){ci=!1,Te?M===0&&q?.isDeclarationFile?sr(M,zT):sr(M,yA):M===0&&sr(M,$8)}function $8(M,Te,Rt,Ei,Xr){Gk(M,Te)&&yA(M,Te,Rt,Ei,Xr)}function zT(M,Te,Rt,Ei,Xr){Gk(M,Te)||yA(M,Te,Rt,Ei,Xr)}function rD(M,Te){return e.onlyPrintJsDocStyle?_te(M,Te)||Pz(M,Te):!0}function yA(M,Te,Rt,Ei,Xr){!q||!rD(q.text,M)||(ci||(wge(aa(),ke,Xr,M),ci=!0),nm(M),s4(q.text,aa(),ke,M,Te,R),nm(Te),Ei?ke.writeLine():Rt===3&&ke.writeSpace(" "))}function RS(M){Fi||M===-1||tC(M,!0)}function W_(M){z_(M,_1)}function _1(M,Te,Rt,Ei){!q||!rD(q.text,M)||(ke.isAtStartOfLine()||ke.writeSpace(" "),nm(M),s4(q.text,aa(),ke,M,Te,R),nm(Te),Ei&&ke.writeLine())}function p1(M,Te,Rt){Fi||(ni(),z_(M,Te?_1:Rt?k6:cc),Ci())}function k6(M,Te,Rt){q&&(nm(M),s4(q.text,aa(),ke,M,Te,R),nm(Te),Rt===2&&ke.writeLine())}function cc(M,Te,Rt,Ei){q&&(nm(M),s4(q.text,aa(),ke,M,Te,R),nm(Te),Ei?ke.writeLine():ke.writeSpace(" "))}function sr(M,Te){q&&(Ue===-1||M!==Ue)&&(bm(M)?VT(Te):eM(q.text,M,Te,M))}function z_(M,Te){q&&(gt===-1||M!==gt&&M!==xt)&&tM(q.text,M,Te)}function bm(M){return At!==void 0&&pa(At).nodePos===M}function VT(M){if(!q)return;let Te=pa(At).detachedCommentEndPos;At.length-1?At.pop():At=void 0,eM(q.text,Te,M,Te)}function w6(M){let Te=q&&Tge(q.text,aa(),ke,vA,M,R,Fi);Te&&(At?At.push(Te):At=[Te])}function vA(M,Te,Rt,Ei,Xr,jo){!q||!rD(q.text,Ei)||(nm(Ei),s4(M,Te,Rt,Ei,Xr,jo),nm(Xr))}function Gk(M,Te){return!!q&&HQ(q.text,M,Te)}function HT(M,Te){let Rt=je(3,M,Te);UT(Te),Rt(M,Te),sg(Te)}function UT(M){let Te=ja(M),Rt=lS(M),Ei=Rt.source||Tt;M.kind!==353&&!(Te&32)&&Rt.pos>=0&&_0(Rt.source||Tt,im(Ei,Rt.pos)),Te&128&&(Ae=!0)}function sg(M){let Te=ja(M),Rt=lS(M);Te&128&&(Ae=!1),M.kind!==353&&!(Te&64)&&Rt.end>=0&&_0(Rt.source||Tt,Rt.end)}function im(M,Te){return M.skipTrivia?M.skipTrivia(Te):Ea(M.text,Te)}function nm(M){if(Ae||Yg(M)||bA(Tt))return;let{line:Te,character:Rt}=ma(Tt,M);Fe.addMapping(ke.getLine(),ke.getColumn(),Be,Te,Rt,void 0)}function _0(M,Te){if(M!==Tt){let Rt=Tt,Ei=Be;oD(M),nm(Te),pd(Rt,Ei)}else nm(Te)}function ag(M,Te,Rt,Ei,Xr){if(Ae||M&&Yz(M))return Xr(Te,Rt,Ei);let jo=M&&M.emitNode,Zo=jo&&jo.flags||0,Wo=jo&&jo.tokenSourceMapRanges&&jo.tokenSourceMapRanges[Te],Io=Wo&&Wo.source||Tt;return Ei=im(Io,Wo?Wo.pos:Ei),!(Zo&256)&&Ei>=0&&_0(Io,Ei),Ei=Xr(Te,Rt,Ei),Wo&&(Ei=Wo.end),!(Zo&512)&&Ei>=0&&_0(Io,Ei),Ei}function oD(M){if(!Ae){if(Tt=M,M===Ge){Be=Ke;return}bA(M)||(Be=Fe.addSource(M.fileName),e.inlineSources&&Fe.setSourceContent(Be,M.text),Ge=M,Ke=Be)}}function pd(M,Te){Tt=M,Be=Te}function bA(M){return Tl(M.fileName,".json")}}function XIt(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function YIt(e){return W5e[e&15360][0]}function QIt(e){return W5e[e&15360][1]}function ZIt(e,t,r,a){t(e)}function eNt(e,t,r,a){t(e,r.select(a))}function tNt(e,t,r,a){t(e,r)}function iNt(e,t){return e.length===1?ZIt:typeof t=="object"?eNt:tNt}function EU(e,t,r){if(!e.getDirectories||!e.readDirectory)return;let a=new Map,u=df(r);return{useCaseSensitiveFileNames:r,fileExists:P,readFile:(ae,Ce)=>e.readFile(ae,Ce),directoryExists:e.directoryExists&&R,getDirectories:z,readDirectory:q,createDirectory:e.createDirectory&&W,writeFile:e.writeFile&&A,addOrDeleteFileOrDirectory:te,addOrDeleteFile:ne,clearCache:ce,realpath:e.realpath&&G};function f(ae){return Vc(ae,t,u)}function p(ae){return a.get(xd(ae))}function y(ae){let Ce=p(Or(ae));return Ce&&(Ce.sortedAndCanonicalizedFiles||(Ce.sortedAndCanonicalizedFiles=Ce.files.map(u).sort(),Ce.sortedAndCanonicalizedDirectories=Ce.directories.map(u).sort()),Ce)}function g(ae){return Xu($s(ae))}function x(ae,Ce){var he;if(!e.realpath||xd(f(e.realpath(ae)))===Ce){let ue={files:_i(e.readDirectory(ae,void 0,void 0,["*.*"]),g)||[],directories:e.getDirectories(ae)||[]};return a.set(xd(Ce),ue),ue}if((he=e.directoryExists)!=null&&he.call(e,ae))return a.set(Ce,!1),!1}function k(ae,Ce){Ce=xd(Ce);let he=p(Ce);if(he)return he;try{return x(ae,Ce)}catch{B.assert(!a.has(xd(Ce)));return}}function T(ae,Ce){return H1(ae,Ce,Gc,Ff)>=0}function A(ae,Ce,he){let ue=f(ae),Ee=y(ue);return Ee&&_e(Ee,g(ae),!0),e.writeFile(ae,Ce,he)}function P(ae){let Ce=f(ae),he=y(Ce);return he&&T(he.sortedAndCanonicalizedFiles,u(g(ae)))||e.fileExists(ae)}function R(ae){let Ce=f(ae);return a.has(xd(Ce))||e.directoryExists(ae)}function W(ae){let Ce=f(ae),he=y(Ce);if(he){let ue=g(ae),Ee=u(ue),ve=he.sortedAndCanonicalizedDirectories;vn(ve,Ee,Ff)&&he.directories.push(ue)}e.createDirectory(ae)}function z(ae){let Ce=f(ae),he=k(ae,Ce);return he?he.directories.slice():e.getDirectories(ae)}function q(ae,Ce,he,ue,Ee){let ve=f(ae),be=k(ae,ve),Se;if(be!==void 0)return lee(ae,Ce,he,ue,r,t,Ee,Re,G);return e.readDirectory(ae,Ce,he,ue,Ee);function Re(ke){let De=f(ke);if(De===ve)return be||ie(ke,De);let Oe=k(ke,De);return Oe!==void 0?Oe||ie(ke,De):fee}function ie(ke,De){if(Se&&De===ve)return Se;let Oe={files:_i(e.readDirectory(ke,void 0,void 0,["*.*"]),g)||F,directories:e.getDirectories(ke)||F};return De===ve&&(Se=Oe),Oe}}function G(ae){return e.realpath?e.realpath(ae):ae}function $(ae){Rh(Or(ae),Ce=>a.delete(xd(Ce))?!0:void 0)}function te(ae,Ce){if(p(Ce)!==void 0){ce();return}let ue=y(Ce);if(!ue){$(Ce);return}if(!e.directoryExists){ce();return}let Ee=g(ae),ve={fileExists:e.fileExists(ae),directoryExists:e.directoryExists(ae)};return ve.directoryExists||T(ue.sortedAndCanonicalizedDirectories,u(Ee))?ce():_e(ue,Ee,ve.fileExists),ve}function ne(ae,Ce,he){if(he===1)return;let ue=y(Ce);ue?_e(ue,g(ae),he===0):$(Ce)}function _e(ae,Ce,he){let ue=ae.sortedAndCanonicalizedFiles,Ee=u(Ce);if(he)vn(ue,Ee,Ff)&&ae.files.push(Ce);else{let ve=H1(ue,Ee,Gc,Ff);if(ve>=0){ue.splice(ve,1);let be=ae.files.findIndex(Se=>u(Se)===Ee);ae.files.splice(be,1)}}}function ce(){a.clear()}}var G1e=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(G1e||{});function DU(e,t,r,a,u){var f;let p=gd(((f=t?.configFile)==null?void 0:f.extendedSourceFiles)||F,u);r.forEach((y,g)=>{p.has(g)||(y.projects.delete(e),y.close())}),p.forEach((y,g)=>{let x=r.get(g);x?x.projects.add(e):r.set(g,{projects:new Set([e]),watcher:a(y,g),close:()=>{let k=r.get(g);!k||k.projects.size!==0||(k.watcher.close(),r.delete(g))}})})}function Pie(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function IU(e,t,r){e.delete(t)&&e.forEach(({extendedResult:a},u)=>{var f;(f=a.extendedSourceFiles)!=null&&f.some(p=>r(p)===t)&&IU(e,u,r)})}function Lie(e,t,r){fO(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:kg})}function C5(e,t,r){t?fO(e,new Map(Object.entries(t)),{createNewValue:a,onDeleteValue:mh,onExistingValue:u}):gp(e,mh);function a(f,p){return{watcher:r(f,p),flags:p}}function u(f,p,y){f.flags!==p&&(f.watcher.close(),e.set(y,a(y,p)))}}function k5({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:a,options:u,program:f,extraFileExtensions:p,currentDirectory:y,useCaseSensitiveFileNames:g,writeLog:x,toPath:k,getScriptKind:T}){let A=HU(r);if(!A)return x(`Project: ${a} Detected ignored path: ${t}`),!0;if(r=A,r===e)return!1;if(DP(r)&&!(_0e(t,u,p)||q()))return x(`Project: ${a} Detected file add/remove of non supported extension: ${t}`),!0;if(hve(t,u.configFile.configFileSpecs,ts(Or(a),y),g,y))return x(`Project: ${a} Detected excluded file: ${t}`),!0;if(!f||u.outFile||u.outDir)return!1;if(Jd(r)){if(u.declarationDir)return!1}else if(!vu(r,d4))return!1;let P=A_(r),R=ds(f)?void 0:une(f)?f.getProgramOrUndefined():f,W=!R&&!ds(f)?f:void 0;if(z(P+".ts")||z(P+".tsx"))return x(`Project: ${a} Detected output file: ${t}`),!0;return!1;function z(G){return R?!!R.getSourceFileByPath(G):W?W.state.fileInfos.has(G):!!St(f,$=>k($)===G)}function q(){if(!T)return!1;switch(T(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return kx(u);case 6:return iT(u);case 0:return!1}}}function K1e(e,t){return e?e.isEmittedFile(t):!1}var X1e=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(X1e||{});function Oie(e,t,r,a){ome(t===2?r:dc);let u={watchFile:(W,z,q,G)=>e.watchFile(W,z,q,G),watchDirectory:(W,z,q,G)=>e.watchDirectory(W,z,(q&1)!==0,G)},f=t!==0?{watchFile:P("watchFile"),watchDirectory:P("watchDirectory")}:void 0,p=t===2?{watchFile:T,watchDirectory:A}:f||u,y=t===2?k:g8;return{watchFile:g("watchFile"),watchDirectory:g("watchDirectory")};function g(W){return(z,q,G,$,te,ne)=>{var _e;return ZH(z,W==="watchFile"?$?.excludeFiles:$?.excludeDirectories,x(),((_e=e.getCurrentDirectory)==null?void 0:_e.call(e))||"")?y(z,G,$,te,ne):p[W].call(void 0,z,q,G,$,te,ne)}}function x(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function k(W,z,q,G,$){return r(`ExcludeWatcher:: Added:: ${R(W,z,q,G,$,a)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(W,z,q,G,$,a)}`)}}function T(W,z,q,G,$,te){r(`FileWatcher:: Added:: ${R(W,q,G,$,te,a)}`);let ne=f.watchFile(W,z,q,G,$,te);return{close:()=>{r(`FileWatcher:: Close:: ${R(W,q,G,$,te,a)}`),ne.close()}}}function A(W,z,q,G,$,te){let ne=`DirectoryWatcher:: Added:: ${R(W,q,G,$,te,a)}`;r(ne);let _e=zc(),ce=f.watchDirectory(W,z,q,G,$,te),ae=zc()-_e;return r(`Elapsed:: ${ae}ms ${ne}`),{close:()=>{let Ce=`DirectoryWatcher:: Close:: ${R(W,q,G,$,te,a)}`;r(Ce);let he=zc();ce.close();let ue=zc()-he;r(`Elapsed:: ${ue}ms ${Ce}`)}}}function P(W){return(z,q,G,$,te,ne)=>u[W].call(void 0,z,(..._e)=>{let ce=`${W==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${_e[0]} ${_e[1]!==void 0?_e[1]:""}:: ${R(z,G,$,te,ne,a)}`;r(ce);let ae=zc();q.call(void 0,..._e);let Ce=zc()-ae;r(`Elapsed:: ${Ce}ms ${ce}`)},G,$,te,ne)}function R(W,z,q,G,$,te){return`WatchInfo: ${W} ${z} ${JSON.stringify(q)} ${te?te(G,$):$===void 0?G:`${G} ${$}`}`}}function w5(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function mh(e){e.watcher.close()}function Fie(e,t,r="tsconfig.json"){return Rh(e,a=>{let u=xr(a,r);return t(u)?u:void 0})}function Mie(e,t){let r=Or(t),a=jp(e)?e:xr(r,e);return $s(a)}function Y1e(e,t,r){let a;return re(e,f=>{let p=X7(f,t);if(p.pop(),!a){a=p;return}let y=Math.min(a.length,p.length);for(let g=0;g{let f;try{zl("beforeIORead"),f=e(r),zl("afterIORead"),ih("I/O Read","beforeIORead","afterIORead")}catch(p){u&&u(p.message),f=""}return f!==void 0?ON(r,f,a,t):void 0}}function Bie(e,t,r){return(a,u,f,p)=>{try{zl("beforeIOWrite"),FZ(a,u,f,e,t,r),zl("afterIOWrite"),ih("I/O Write","beforeIOWrite","afterIOWrite")}catch(y){p&&p(y.message)}}}function NU(e,t,r=Sd){let a=new Map,u=df(r.useCaseSensitiveFileNames);function f(k){return a.has(k)?!0:(x.directoryExists||r.directoryExists)(k)?(a.set(k,!0),!0):!1}function p(){return Or($s(r.getExecutingFilePath()))}let y=aS(e),g=r.realpath&&(k=>r.realpath(k)),x={getSourceFile:Rie(k=>x.readFile(k),t),getDefaultLibLocation:p,getDefaultLibFileName:k=>xr(p(),nM(k)),writeFile:Bie((k,T,A)=>r.writeFile(k,T,A),k=>(x.createDirectory||r.createDirectory)(k),k=>f(k)),getCurrentDirectory:l_(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:u,getNewLine:()=>y,fileExists:k=>r.fileExists(k),readFile:k=>r.readFile(k),trace:k=>r.write(k+y),directoryExists:k=>r.directoryExists(k),getEnvironmentVariable:k=>r.getEnvironmentVariable?r.getEnvironmentVariable(k):"",getDirectories:k=>r.getDirectories(k),realpath:g,readDirectory:(k,T,A,P,R)=>r.readDirectory(k,T,A,P,R),createDirectory:k=>r.createDirectory(k),createHash:Ps(r,r.createHash)};return x}function f8(e,t,r){let a=e.readFile,u=e.fileExists,f=e.directoryExists,p=e.createDirectory,y=e.writeFile,g=new Map,x=new Map,k=new Map,T=new Map,A=W=>{let z=t(W),q=g.get(z);return q!==void 0?q!==!1?q:void 0:P(z,W)},P=(W,z)=>{let q=a.call(e,z);return g.set(W,q!==void 0?q:!1),q};e.readFile=W=>{let z=t(W),q=g.get(z);return q!==void 0?q!==!1?q:void 0:!Tl(W,".json")&&!V1e(W)?a.call(e,W):P(z,W)};let R=r?(W,z,q,G)=>{let $=t(W),te=typeof z=="object"?z.impliedNodeFormat:void 0,ne=T.get(te),_e=ne?.get($);if(_e)return _e;let ce=r(W,z,q,G);return ce&&(Jd(W)||Tl(W,".json"))&&T.set(te,(ne||new Map).set($,ce)),ce}:void 0;return e.fileExists=W=>{let z=t(W),q=x.get(z);if(q!==void 0)return q;let G=u.call(e,W);return x.set(z,!!G),G},y&&(e.writeFile=(W,z,...q)=>{let G=t(W);x.delete(G);let $=g.get(G);$!==void 0&&$!==z?(g.delete(G),T.forEach(te=>te.delete(G))):R&&T.forEach(te=>{let ne=te.get(G);ne&&ne.text!==z&&te.delete(G)}),y.call(e,W,z,...q)}),f&&(e.directoryExists=W=>{let z=t(W),q=k.get(z);if(q!==void 0)return q;let G=f.call(e,W);return k.set(z,!!G),G},p&&(e.createDirectory=W=>{let z=t(W);k.delete(z),p.call(e,W)})),{originalReadFile:a,originalFileExists:u,originalDirectoryExists:f,originalCreateDirectory:p,originalWriteFile:y,getSourceFileWithCache:R,readFileWithCache:A}}function G5e(e,t,r){let a;return a=Fn(a,e.getConfigFileParsingDiagnostics()),a=Fn(a,e.getOptionsDiagnostics(r)),a=Fn(a,e.getSyntacticDiagnostics(t,r)),a=Fn(a,e.getGlobalDiagnostics(r)),a=Fn(a,e.getSemanticDiagnostics(t,r)),yp(e.getCompilerOptions())&&(a=Fn(a,e.getDeclarationDiagnostics(t,r))),PP(a||F)}function K5e(e,t){let r="";for(let a of e)r+=jie(a,t);return r}function jie(e,t){let r=`${q2(e)} TS${e.code}: ${ay(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:a,character:u}=ma(e.file,e.start),f=e.file.fileName;return`${b3(f,t.getCurrentDirectory(),y=>t.getCanonicalFileName(y))}(${a+1},${u+1}): `+r}return r}var Z1e=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(Z1e||{}),ebe="\x1B[7m",tbe=" ",X5e="\x1B[0m",Y5e="...",nNt=" ",Q5e=" ";function Z5e(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return B.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function ST(e,t){return t+e+X5e}function e9e(e,t,r,a,u,f){let{line:p,character:y}=ma(e,t),{line:g,character:x}=ma(e,t+r),k=ma(e,e.text.length).line,T=g-p>=4,A=(g+1+"").length;T&&(A=Math.max(Y5e.length,A));let P="";for(let R=p;R<=g;R++){P+=f.getNewLine(),T&&p+1r.getCanonicalFileName(g)):e.fileName,y="";return y+=a(p,"\x1B[96m"),y+=":",y+=a(`${u+1}`,"\x1B[93m"),y+=":",y+=a(`${f+1}`,"\x1B[93m"),y}function ibe(e,t){let r="";for(let a of e){if(a.file){let{file:u,start:f}=a;r+=Wie(u,f,t),r+=" - "}if(r+=ST(q2(a),Z5e(a.category)),r+=ST(` TS${a.code}: `,"\x1B[90m"),r+=ay(a.messageText,t.getNewLine()),a.file&&a.code!==S.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=e9e(a.file,a.start,a.length,"",Z5e(a.category),t)),a.relatedInformation){r+=t.getNewLine();for(let{file:u,start:f,length:p,messageText:y}of a.relatedInformation)u&&(r+=t.getNewLine(),r+=nNt+Wie(u,f,t),r+=e9e(u,f,p,Q5e,"\x1B[96m",t)),r+=t.getNewLine(),r+=Q5e+ay(y,t.getNewLine())}r+=t.getNewLine()}return r}function ay(e,t,r=0){if(fs(e))return e;if(e===void 0)return"";let a="";if(r){a+=t;for(let u=0;uVie(t,e,r)};function Uie(e,t,r,a,u){return{nameAndMode:PU,resolve:(f,p)=>jN(f,e,r,a,u,t,p)}}function rbe(e){return fs(e)?e:e.fileName}var r9e={getName:rbe,getMode:(e,t,r)=>AU(e,t&&RU(t,r))};function LU(e,t,r,a,u){return{nameAndMode:r9e,resolve:(f,p)=>Tve(f,e,r,a,t,u,p)}}function T5(e,t,r,a,u,f,p,y){if(e.length===0)return F;let g=[],x=new Map,k=y(t,r,a,f,p);for(let T of e){let A=k.nameAndMode.getName(T),P=k.nameAndMode.getMode(T,u,r?.commandLine.options||a),R=ZO(A,P),W=x.get(R);W||x.set(R,W=k.resolve(A,P)),g.push(W)}return g}function Jie(e,t){return OU(void 0,e,(r,a)=>r&&t(r,a))}function OU(e,t,r,a){let u;return f(e,t,void 0);function f(p,y,g){if(a){let x=a(p,g);if(x)return x}return re(y,(x,k)=>{if(x&&u?.has(x.sourceFile.path))return;let T=r(x,g,k);return T||!x?T:((u||(u=new Set)).add(x.sourceFile.path),f(x.commandLine.projectReferences,x.references,x))})}}var _8="__inferred type names__.ts";function FU(e,t,r){let a=e.configFilePath?Or(e.configFilePath):t;return xr(a,`__lib_node_modules_lookup_${r}__.ts`)}function qie(e){let t=e.split("."),r=t[1],a=2;for(;t[a]&&t[a]!=="d";)r+=(a===2?"/":"-")+t[a],a++;return"@typescript/lib-"+r}function o9e(e){return rx(e.fileName)}function s9e(e){let t=o9e(e);return vte.get(t)}function Tk(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function V4(e){return e.pos!==void 0}function p8(e,t){var r,a,u,f;let p=B.checkDefined(e.getSourceFileByPath(t.file)),{kind:y,index:g}=t,x,k,T;switch(y){case 3:let A=I5(p,g);if(T=(a=(r=e.getResolvedModuleFromModuleSpecifier(A,p))==null?void 0:r.resolvedModule)==null?void 0:a.packageId,A.pos===-1)return{file:p,packageId:T,text:A.text};x=Ea(p.text,A.pos),k=A.end;break;case 4:({pos:x,end:k}=p.referencedFiles[g]);break;case 5:({pos:x,end:k}=p.typeReferenceDirectives[g]),T=(f=(u=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(p.typeReferenceDirectives[g],p))==null?void 0:u.resolvedTypeReferenceDirective)==null?void 0:f.packageId;break;case 7:({pos:x,end:k}=p.libReferenceDirectives[g]);break;default:return B.assertNever(y)}return{file:p,pos:x,end:k,packageId:T}}function $ie(e,t,r,a,u,f,p,y,g,x){if(!e||y?.()||!Lr(e.getRootFileNames(),t))return!1;let k;if(!Lr(e.getProjectReferences(),x,W)||e.getSourceFiles().some(P))return!1;let T=e.getMissingFilePaths();if(T&&Vd(T,u))return!1;let A=e.getCompilerOptions();if(!XZ(A,r)||e.resolvedLibReferences&&Vd(e.resolvedLibReferences,(q,G)=>p(G)))return!1;if(A.configFile&&r.configFile)return A.configFile.text===r.configFile.text;return!0;function P(q){return!R(q)||f(q.path)}function R(q){return q.version===a(q.resolvedPath,q.fileName)}function W(q,G,$){return jQ(q,G)&&z(e.getResolvedProjectReferences()[$],q)}function z(q,G){if(q){if(sn(k,q))return!0;let te=H4(G),ne=g(te);return!ne||q.commandLine.options.configFile!==ne.options.configFile||!Lr(q.commandLine.fileNames,ne.fileNames)?!1:((k||(k=[])).push(q),!re(q.references,(_e,ce)=>!z(_e,q.commandLine.projectReferences[ce])))}let $=H4(G);return!g($)}}function xT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function E5(e,t,r,a){let u=MU(e,t,r,a);return typeof u=="object"?u.impliedNodeFormat:u}function MU(e,t,r,a){let u=$f(a),f=3<=u&&u<=99||Mx(e);return vu(e,[".d.mts",".mts",".mjs"])?99:vu(e,[".d.cts",".cts",".cjs"])?1:f&&vu(e,[".d.ts",".ts",".tsx",".js",".jsx"])?p():void 0;function p(){let y=e8(t,r,a),g=[];y.failedLookupLocations=g,y.affectingLocations=g;let x=t8(Or(e),y);return{impliedNodeFormat:x?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:g,packageJsonScope:x}}}var a9e=new Set([S.Cannot_redeclare_block_scoped_variable_0.code,S.A_module_cannot_have_multiple_default_exports.code,S.Another_export_default_is_here.code,S.The_first_export_default_is_here.code,S.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,S.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,S.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,S.constructor_is_a_reserved_word.code,S.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,S.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,S.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,S.Invalid_use_of_0_in_strict_mode.code,S.A_label_is_not_allowed_here.code,S.with_statements_are_not_allowed_in_strict_mode.code,S.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,S.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,S.A_class_declaration_without_the_default_modifier_must_have_a_name.code,S.A_class_member_cannot_have_the_0_keyword.code,S.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,S.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,S.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,S.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,S.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,S.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,S.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,S.A_destructuring_declaration_must_have_an_initializer.code,S.A_get_accessor_cannot_have_parameters.code,S.A_rest_element_cannot_contain_a_binding_pattern.code,S.A_rest_element_cannot_have_a_property_name.code,S.A_rest_element_cannot_have_an_initializer.code,S.A_rest_element_must_be_last_in_a_destructuring_pattern.code,S.A_rest_parameter_cannot_have_an_initializer.code,S.A_rest_parameter_must_be_last_in_a_parameter_list.code,S.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,S.A_return_statement_cannot_be_used_inside_a_class_static_block.code,S.A_set_accessor_cannot_have_rest_parameter.code,S.A_set_accessor_must_have_exactly_one_parameter.code,S.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,S.An_export_declaration_cannot_have_modifiers.code,S.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,S.An_import_declaration_cannot_have_modifiers.code,S.An_object_member_cannot_be_declared_optional.code,S.Argument_of_dynamic_import_cannot_be_spread_element.code,S.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,S.Cannot_redeclare_identifier_0_in_catch_clause.code,S.Catch_clause_variable_cannot_have_an_initializer.code,S.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,S.Classes_can_only_extend_a_single_class.code,S.Classes_may_not_have_a_field_named_constructor.code,S.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,S.Duplicate_label_0.code,S.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,S.for_await_loops_cannot_be_used_inside_a_class_static_block.code,S.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,S.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,S.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,S.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,S.Jump_target_cannot_cross_function_boundary.code,S.Line_terminator_not_permitted_before_arrow.code,S.Modifiers_cannot_appear_here.code,S.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,S.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,S.Private_identifiers_are_not_allowed_outside_class_bodies.code,S.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,S.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,S.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,S.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,S.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,S.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,S.Trailing_comma_not_allowed.code,S.Variable_declaration_list_cannot_be_empty.code,S._0_and_1_operations_cannot_be_mixed_without_parentheses.code,S._0_expected.code,S._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,S._0_list_cannot_be_empty.code,S._0_modifier_already_seen.code,S._0_modifier_cannot_appear_on_a_constructor_declaration.code,S._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,S._0_modifier_cannot_appear_on_a_parameter.code,S._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,S._0_modifier_cannot_be_used_here.code,S._0_modifier_must_precede_1_modifier.code,S._0_declarations_can_only_be_declared_inside_a_block.code,S._0_declarations_must_be_initialized.code,S.extends_clause_already_seen.code,S.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,S.Class_constructor_may_not_be_a_generator.code,S.Class_constructor_may_not_be_an_accessor.code,S.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,S.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,S.Private_field_0_must_be_declared_in_an_enclosing_class.code,S.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function rNt(e,t){return e?WP(e.getCompilerOptions(),t,xte):!1}function oNt(e,t,r,a,u,f){return{rootNames:e,options:t,host:r,oldProgram:a,configFileParsingDiagnostics:u,typeScriptVersion:f}}function D5(e,t,r,a,u){var f,p,y,g,x,k,T,A,P,R,W,z,q,G,$,te;let ne=ds(e)?oNt(e,t,r,a,u):e,{rootNames:_e,options:ce,configFileParsingDiagnostics:ae,projectReferences:Ce,typeScriptVersion:he}=ne,{oldProgram:ue}=ne;for(let Xe of nve)if(Nc(ce,Xe.name)&&typeof ce[Xe.name]=="string")throw new Error(`${Xe.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);let Ee=l_(()=>gm("ignoreDeprecations",S.Invalid_value_for_ignoreDeprecations)),ve,be,Se,Re,ie,ke,De,Oe=Dm(),we,Ae,Fe,Tt,Be,Ge,Ke,Ue,gt,xt,nt,At,ci,Fi,bn,an=typeof ce.maxNodeModuleJsDepth=="number"?ce.maxNodeModuleJsDepth:0,ni=0,Ci=new Map,Sn=new Map;(f=jn)==null||f.push(jn.Phase.Program,"createProgram",{configFilePath:ce.configFilePath,rootDir:ce.rootDir},!0),zl("beforeProgram");let nn=ne.host||Q1e(ce),Br=jU(nn),Gr=ce.noLib,is=l_(()=>nn.getDefaultLibFileName(ce)),Ao=nn.getDefaultLibLocation?nn.getDefaultLibLocation():Or(is()),Rr=cR(),xn=[],Eo=nn.getCurrentDirectory(),it=mO(ce),si=wR(ce,it),dn=new Map,Qn,Jr,Dr,Do,na=nn.hasInvalidatedResolutions||R0;nn.resolveModuleNameLiterals?(Do=nn.resolveModuleNameLiterals.bind(nn),Dr=(p=nn.getModuleResolutionCache)==null?void 0:p.call(nn)):nn.resolveModuleNames?(Do=(Xe,dt,qt,bi,qi,En)=>nn.resolveModuleNames(Xe.map(nbe),dt,En?.map(nbe),qt,bi,qi).map(tn=>tn?tn.extension!==void 0?{resolvedModule:tn}:{resolvedModule:{...tn,extension:gO(tn.resolvedFileName)}}:n9e),Dr=(y=nn.getModuleResolutionCache)==null?void 0:y.call(nn)):(Dr=O4(Eo,ur,ce),Do=(Xe,dt,qt,bi,qi)=>T5(Xe,dt,qt,bi,qi,nn,Dr,Uie));let aa;if(nn.resolveTypeReferenceDirectiveReferences)aa=nn.resolveTypeReferenceDirectiveReferences.bind(nn);else if(nn.resolveTypeReferenceDirectives)aa=(Xe,dt,qt,bi,qi)=>nn.resolveTypeReferenceDirectives(Xe.map(rbe),dt,qt,bi,qi?.impliedNodeFormat).map(En=>({resolvedTypeReferenceDirective:En}));else{let Xe=rU(Eo,ur,void 0,Dr?.getPackageJsonInfoCache(),Dr?.optionsToRedirectsKey);aa=(dt,qt,bi,qi,En)=>T5(dt,qt,bi,qi,En,nn,Xe,LU)}let Ai=nn.hasInvalidatedLibResolutions||R0,Ha;if(nn.resolveLibrary)Ha=nn.resolveLibrary.bind(nn);else{let Xe=O4(Eo,ur,ce,Dr?.getPackageJsonInfoCache());Ha=(dt,qt,bi)=>oU(dt,qt,bi,nn,Xe)}let ht=new Map,Jt=new Map,ye=Dm(),ct=!1,ge=new Map,He=new Map,ut=nn.useCaseSensitiveFileNames()?new Map:void 0,bt,je,It,mt,$t=!!((g=nn.useSourceOfProjectReferenceRedirect)!=null&&g.call(nn))&&!ce.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:_t,fileExists:yi,directoryExists:Ii}=sNt({compilerHost:nn,getSymlinkCache:Vm,useSourceOfProjectReferenceRedirect:$t,toPath:Vi,getResolvedProjectReferences:tf,getSourceOfProjectReferenceRedirect:Ad,forEachResolvedProjectReference:np}),nr=nn.readFile.bind(nn);(x=jn)==null||x.push(jn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!ue});let Y=rNt(ue,ce);(k=jn)==null||k.pop();let $e;if((T=jn)==null||T.push(jn.Phase.Program,"tryReuseStructureFromOldProgram",{}),$e=Uu(),(A=jn)==null||A.pop(),$e!==2){if(ve=[],be=[],Ce&&(bt||(bt=Ce.map(ze)),_e.length&&bt?.forEach((Xe,dt)=>{if(!Xe)return;let qt=Xe.commandLine.options.outFile;if($t){if(qt||p_(Xe.commandLine.options)===0)for(let bi of Xe.commandLine.fileNames)wu(bi,{kind:1,index:dt})}else if(qt)wu(Tx(qt,".d.ts"),{kind:2,index:dt});else if(p_(Xe.commandLine.options)===0){let bi=l_(()=>VN(Xe.commandLine,!nn.useCaseSensitiveFileNames()));for(let qi of Xe.commandLine.fileNames)!Jd(qi)&&!Tl(qi,".json")&&wu(W4(qi,Xe.commandLine,!nn.useCaseSensitiveFileNames(),bi),{kind:2,index:dt})}})),(P=jn)==null||P.push(jn.Phase.Program,"processRootFiles",{count:_e.length}),re(_e,(Xe,dt)=>Ou(Xe,!1,!1,{kind:0,index:dt})),(R=jn)==null||R.pop(),Ke??(Ke=_e.length?iU(ce,nn):F),Ue=L4(),Ke.length){(W=jn)==null||W.push(jn.Phase.Program,"processTypeReferences",{count:Ke.length});let Xe=ce.configFilePath?Or(ce.configFilePath):Eo,dt=xr(Xe,_8),qt=ks(Ke,dt);for(let bi=0;bi{Ou(di(dt),!0,!1,{kind:6,index:qt})})}Se=lc(ve,Xi).concat(be),ve=void 0,be=void 0,we=void 0}if(ue&&nn.onReleaseOldSourceFile){let Xe=ue.getSourceFiles();for(let dt of Xe){let qt=pi(dt.resolvedPath);(Y||!qt||qt.impliedNodeFormat!==dt.impliedNodeFormat||dt.resolvedPath===dt.path&&qt.resolvedPath!==dt.path)&&nn.onReleaseOldSourceFile(dt,ue.getCompilerOptions(),!!pi(dt.path),qt)}nn.getParsedCommandLine||ue.forEachResolvedProjectReference(dt=>{j_(dt.sourceFile.path)||nn.onReleaseOldSourceFile(dt.sourceFile,ue.getCompilerOptions(),!1,void 0)})}ue&&nn.onReleaseParsedCommandLine&&OU(ue.getProjectReferences(),ue.getResolvedProjectReferences(),(Xe,dt,qt)=>{let bi=dt?.commandLine.projectReferences[qt]||ue.getProjectReferences()[qt],qi=H4(bi);je?.has(Vi(qi))||nn.onReleaseParsedCommandLine(qi,Xe,ue.getCompilerOptions())}),ue=void 0,xt=void 0,At=void 0,Fi=void 0;let Bt={getRootFileNames:()=>_e,getSourceFile:Ua,getSourceFileByPath:pi,getSourceFiles:()=>Se,getMissingFilePaths:()=>He,getModuleResolutionCache:()=>Dr,getFilesByNameMap:()=>ge,getCompilerOptions:()=>ce,getSyntacticDiagnostics:Wf,getOptionsDiagnostics:ku,getGlobalDiagnostics:Lu,getSemanticDiagnostics:nd,getCachedSemanticDiagnostics:bp,getSuggestionDiagnostics:Pr,getDeclarationDiagnostics:H,getBindAndCheckDiagnostics:Fl,getProgramDiagnostics:$l,getTypeChecker:Ko,getClassifiableNames:Cs,getCommonSourceDirectory:ai,emit:nc,getCurrentDirectory:()=>Eo,getNodeCount:()=>Ko().getNodeCount(),getIdentifierCount:()=>Ko().getIdentifierCount(),getSymbolCount:()=>Ko().getSymbolCount(),getTypeCount:()=>Ko().getTypeCount(),getInstantiationCount:()=>Ko().getInstantiationCount(),getRelationCacheSizes:()=>Ko().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Ge,getAutomaticTypeDirectiveNames:()=>Ke,getAutomaticTypeDirectiveResolutions:()=>Ue,isSourceFileFromExternalLibrary:e_,isSourceFileDefaultLibrary:id,getModeForUsageLocation:ig,getEmitSyntaxForUsageLocation:mb,getModeForResolutionAtIndex:Rk,getSourceFileFromReference:Jo,getLibFileFromReference:hn,sourceFileToPackageName:Jt,redirectTargetsMap:ye,usesUriStyleNodeCoreModules:ct,resolvedModules:nt,resolvedTypeReferenceDirectiveNames:ci,resolvedLibReferences:gt,getResolvedModule:fe,getResolvedModuleFromModuleSpecifier:Wt,getResolvedTypeReferenceDirective:tt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:Qe,forEachResolvedModule:ei,forEachResolvedTypeReferenceDirective:In,getCurrentPackagesMap:()=>bn,typesPackageExists:Dt,packageBundlesTypes:Nt,isEmittedFile:tg,getConfigFileParsingDiagnostics:h_,getProjectReferences:Ts,getResolvedProjectReferences:tf,getProjectReferenceRedirect:Wm,getResolvedProjectReferenceToRedirect:Zh,getResolvedProjectReferenceByPath:j_,forEachResolvedProjectReference:np,isSourceOfProjectReferenceRedirect:_b,getRedirectReferenceForResolutionFromSourceOfProject:gi,getCompilerOptionsForFile:me,getDefaultResolutionModeForFile:nv,getEmitModuleFormatOfFile:Bk,getImpliedNodeFormatForEmit:s1,shouldTransformImportCall:Vx,emitBuildInfo:ka,fileExists:yi,readFile:nr,directoryExists:Ii,getSymlinkCache:Vm,realpath:($=nn.realpath)==null?void 0:$.bind(nn),useCaseSensitiveFileNames:()=>nn.useCaseSensitiveFileNames(),getCanonicalFileName:ur,getFileIncludeReasons:()=>Oe,structureIsReused:$e,writeFile:fo};return _t(),Ut(),zl("afterProgram"),ih("Program","beforeProgram","afterProgram"),(te=jn)==null||te.pop(),Bt;function se(){return xn&&(Ge?.forEach(Xe=>{switch(Xe.kind){case 1:return Rr.add(Ns(Xe.file&&pi(Xe.file),Xe.fileProcessingReason,Xe.diagnostic,Xe.args||F));case 0:return Rr.add(rt(Xe));case 2:return Xe.diagnostics.forEach(dt=>Rr.add(dt));default:B.assertNever(Xe)}}),xn.forEach(({file:Xe,diagnostic:dt,args:qt})=>Rr.add(Ns(Xe,void 0,dt,qt))),xn=void 0,Ae=void 0,Fe=void 0),Rr}function rt({reason:Xe}){let{file:dt,pos:qt,end:bi}=p8(Bt,Xe),qi=dt.libReferenceDirectives[Xe.index],En=o9e(qi),tn=EP(u3(En,"lib."),".d.ts"),dr=Rw(tn,WH,Gc);return kd(dt,B.checkDefined(qt),B.checkDefined(bi)-qt,dr?S.Cannot_find_lib_definition_for_0_Did_you_mean_1:S.Cannot_find_lib_definition_for_0,En,dr)}function fe(Xe,dt,qt){var bi;return(bi=nt?.get(Xe.path))==null?void 0:bi.get(dt,qt)}function Wt(Xe,dt){return dt??(dt=en(Xe)),B.assertIsDefined(dt,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),fe(dt,Xe.text,ig(dt,Xe))}function tt(Xe,dt,qt){var bi;return(bi=ci?.get(Xe.path))==null?void 0:bi.get(dt,qt)}function Qe(Xe,dt){return tt(dt,Xe.fileName,Xe.resolutionMode||dt.impliedNodeFormat)}function ei(Xe,dt){Ji(nt,Xe,dt)}function In(Xe,dt){Ji(ci,Xe,dt)}function Ji(Xe,dt,qt){var bi;qt?(bi=Xe?.get(qt.path))==null||bi.forEach((qi,En,tn)=>dt(qi,En,tn,qt.path)):Xe?.forEach((qi,En)=>qi.forEach((tn,dr,so)=>dt(tn,dr,so,En)))}function _n(){return bn||(bn=new Map,ei(({resolvedModule:Xe})=>{Xe?.packageId&&bn.set(Xe.packageId.name,Xe.extension===".d.ts"||!!bn.get(Xe.packageId.name))}),bn)}function Dt(Xe){return _n().has(lU(Xe))}function Nt(Xe){return!!_n().get(Xe)}function ti(Xe){var dt;(dt=Xe.resolutionDiagnostics)!=null&&dt.length&&(Ge??(Ge=[])).push({kind:2,diagnostics:Xe.resolutionDiagnostics})}function li(Xe,dt,qt,bi){if(nn.resolveModuleNameLiterals||!nn.resolveModuleNames)return ti(qt);if(!Dr||Od(dt))return;let qi=ts(Xe.originalFileName,Eo),En=Or(qi),tn=Rn(Xe),dr=Dr.getFromNonRelativeNameCache(dt,bi,En,tn);dr&&ti(dr)}function wi(Xe,dt,qt){var bi,qi;let En=ts(dt.originalFileName,Eo),tn=Rn(dt);(bi=jn)==null||bi.push(jn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:En}),zl("beforeResolveModule");let dr=Do(Xe,En,tn,ce,dt,qt);return zl("afterResolveModule"),ih("ResolveModule","beforeResolveModule","afterResolveModule"),(qi=jn)==null||qi.pop(),dr}function Si(Xe,dt,qt){var bi,qi;let En=fs(dt)?void 0:dt,tn=fs(dt)?dt:ts(dt.originalFileName,Eo),dr=En&&Rn(En);(bi=jn)==null||bi.push(jn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:tn}),zl("beforeResolveTypeReference");let so=aa(Xe,tn,dr,ce,En,qt);return zl("afterResolveTypeReference"),ih("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(qi=jn)==null||qi.pop(),so}function Rn(Xe){let dt=Zh(Xe.originalFileName);if(dt||!Jd(Xe.originalFileName))return dt;let qt=gi(Xe.path);if(qt)return qt;if(!nn.realpath||!ce.preserveSymlinks||!Xe.originalFileName.includes(Zv))return;let bi=Vi(nn.realpath(Xe.originalFileName));return bi===Xe.path?void 0:gi(bi)}function gi(Xe){let dt=Ad(Xe);if(fs(dt))return Zh(dt);if(dt)return np(qt=>{let bi=qt.commandLine.options.outFile;if(bi)return Vi(bi)===Xe?qt:void 0})}function Xi(Xe,dt){return Kc(Li(Xe),Li(dt))}function Li(Xe){if(nh(Ao,Xe.fileName,!1)){let dt=Xu(Xe.fileName);if(dt==="lib.d.ts"||dt==="lib.es6.d.ts")return 0;let qt=EP(u3(dt,"lib."),".d.ts"),bi=WH.indexOf(qt);if(bi!==-1)return bi+1}return WH.length+2}function Vi(Xe){return Vc(Xe,Eo,ur)}function ai(){if(ie===void 0){let Xe=Di(Se,dt=>dE(dt,Bt));ie=d8(ce,()=>ro(Xe,dt=>dt.isDeclarationFile?void 0:dt.fileName),Eo,ur,dt=>Q(Xe,dt))}return ie}function Cs(){var Xe;if(!De){Ko(),De=new Set;for(let dt of Se)(Xe=dt.classifiableNames)==null||Xe.forEach(qt=>De.add(qt))}return De}function Ss(Xe,dt){return hc({entries:Xe,containingFile:dt,containingSourceFile:dt,redirectedReference:Rn(dt),nameAndModeGetter:PU,resolutionWorker:wi,getResolutionFromOldProgram:(qt,bi)=>ue?.getResolvedModule(dt,qt,bi),getResolved:zI,canReuseResolutionsInFile:()=>dt===ue?.getSourceFile(dt.fileName)&&!na(dt.path),resolveToOwnAmbientModule:!0})}function ks(Xe,dt){let qt=fs(dt)?void 0:dt;return hc({entries:Xe,containingFile:dt,containingSourceFile:qt,redirectedReference:qt&&Rn(qt),nameAndModeGetter:r9e,resolutionWorker:Si,getResolutionFromOldProgram:(bi,qi)=>{var En;return qt?ue?.getResolvedTypeReferenceDirective(qt,bi,qi):(En=ue?.getAutomaticTypeDirectiveResolutions())==null?void 0:En.get(bi,qi)},getResolved:Ez,canReuseResolutionsInFile:()=>qt?qt===ue?.getSourceFile(qt.fileName)&&!na(qt.path):!na(Vi(dt))})}function hc({entries:Xe,containingFile:dt,containingSourceFile:qt,redirectedReference:bi,nameAndModeGetter:qi,resolutionWorker:En,getResolutionFromOldProgram:tn,getResolved:dr,canReuseResolutionsInFile:so,resolveToOwnAmbientModule:Gn}){if(!Xe.length)return F;if($e===0&&(!Gn||!qt.ambientModuleNames.length))return En(Xe,dt,void 0);let uo,Kn,Es,Jc,g_=so();for(let y_=0;y_Es[Kn[rg]]=y_),Es):ng}function Zl(){return!OU(ue.getProjectReferences(),ue.getResolvedProjectReferences(),(Xe,dt,qt)=>{let bi=(dt?dt.commandLine.projectReferences:Ce)[qt],qi=ze(bi);return Xe?!qi||qi.sourceFile!==Xe.sourceFile||!Lr(Xe.commandLine.fileNames,qi.commandLine.fileNames):qi!==void 0},(Xe,dt)=>{let qt=dt?j_(dt.sourceFile.path).commandLine.projectReferences:Ce;return!Lr(Xe,qt,jQ)})}function Uu(){var Xe;if(!ue)return 0;let dt=ue.getCompilerOptions();if(wz(dt,ce))return 0;let qt=ue.getRootFileNames();if(!Lr(qt,_e)||!Zl())return 0;Ce&&(bt=Ce.map(ze));let bi=[],qi=[];if($e=2,Vd(ue.getMissingFilePaths(),Gn=>nn.fileExists(Gn)))return 0;let En=ue.getSourceFiles(),tn;(Gn=>{Gn[Gn.Exists=0]="Exists",Gn[Gn.Modified=1]="Modified"})(tn||(tn={}));let dr=new Map;for(let Gn of En){let uo=Ju(Gn.fileName,Dr,nn,ce),Kn=nn.getSourceFileByPath?nn.getSourceFileByPath(Gn.fileName,Gn.resolvedPath,uo,void 0,Y):nn.getSourceFile(Gn.fileName,uo,void 0,Y);if(!Kn)return 0;Kn.packageJsonLocations=(Xe=uo.packageJsonLocations)!=null&&Xe.length?uo.packageJsonLocations:void 0,Kn.packageJsonScope=uo.packageJsonScope,B.assert(!Kn.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Es;if(Gn.redirectInfo){if(Kn!==Gn.redirectInfo.unredirected)return 0;Es=!1,Kn=Gn}else if(ue.redirectTargetsMap.has(Gn.path)){if(Kn!==Gn)return 0;Es=!1}else Es=Kn!==Gn;Kn.path=Gn.path,Kn.originalFileName=Gn.originalFileName,Kn.resolvedPath=Gn.resolvedPath,Kn.fileName=Gn.fileName;let Jc=ue.sourceFileToPackageName.get(Gn.path);if(Jc!==void 0){let g_=dr.get(Jc),ng=Es?1:0;if(g_!==void 0&&ng===1||g_===1)return 0;dr.set(Jc,ng)}Es?(Gn.impliedNodeFormat!==Kn.impliedNodeFormat?$e=1:Lr(Gn.libReferenceDirectives,Kn.libReferenceDirectives,_d)?Gn.hasNoDefaultLib!==Kn.hasNoDefaultLib?$e=1:Lr(Gn.referencedFiles,Kn.referencedFiles,_d)?(Qt(Kn),Lr(Gn.imports,Kn.imports,gh)&&Lr(Gn.moduleAugmentations,Kn.moduleAugmentations,gh)?(Gn.flags&12582912)!==(Kn.flags&12582912)?$e=1:Lr(Gn.typeReferenceDirectives,Kn.typeReferenceDirectives,_d)||($e=1):$e=1):$e=1:$e=1,qi.push(Kn)):na(Gn.path)&&($e=1,qi.push(Kn)),bi.push(Kn)}if($e!==2)return $e;for(let Gn of qi){let uo=l9e(Gn),Kn=Ss(uo,Gn);(At??(At=new Map)).set(Gn.path,Kn),zQ(uo,Kn,y_=>ue.getResolvedModule(Gn,y_.text,ig(Gn,y_)),mhe)&&($e=1);let Jc=Gn.typeReferenceDirectives,g_=ks(Jc,Gn);(Fi??(Fi=new Map)).set(Gn.path,g_),zQ(Jc,g_,y_=>ue.getResolvedTypeReferenceDirective(Gn,rbe(y_),AU(y_,Gn.impliedNodeFormat)),hhe)&&($e=1)}if($e!==2)return $e;if(_he(dt,ce)||ue.resolvedLibReferences&&Vd(ue.resolvedLibReferences,(Gn,uo)=>Zi(uo).actual!==Gn.actual))return 1;if(nn.hasChangedAutomaticTypeDirectiveNames){if(nn.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Ke=iU(ce,nn),!Lr(ue.getAutomaticTypeDirectiveNames(),Ke))return 1;He=ue.getMissingFilePaths(),B.assert(bi.length===ue.getSourceFiles().length);for(let Gn of bi)ge.set(Gn.path,Gn);return ue.getFilesByNameMap().forEach((Gn,uo)=>{if(!Gn){ge.set(uo,Gn);return}if(Gn.path===uo){ue.isSourceFileFromExternalLibrary(Gn)&&Sn.set(Gn.path,!0);return}ge.set(uo,ge.get(Gn.path))}),Se=bi,Oe=ue.getFileIncludeReasons(),Ge=ue.getFileProcessingDiagnostics(),Ke=ue.getAutomaticTypeDirectiveNames(),Ue=ue.getAutomaticTypeDirectiveResolutions(),Jt=ue.sourceFileToPackageName,ye=ue.redirectTargetsMap,ct=ue.usesUriStyleNodeCoreModules,nt=ue.resolvedModules,ci=ue.resolvedTypeReferenceDirectiveNames,gt=ue.resolvedLibReferences,bn=ue.getCurrentPackagesMap(),2}function Fc(Xe){return{getCanonicalFileName:ur,getCommonSourceDirectory:Bt.getCommonSourceDirectory,getCompilerOptions:Bt.getCompilerOptions,getCurrentDirectory:()=>Eo,getSourceFile:Bt.getSourceFile,getSourceFileByPath:Bt.getSourceFileByPath,getSourceFiles:Bt.getSourceFiles,isSourceFileFromExternalLibrary:e_,getResolvedProjectReferenceToRedirect:Zh,getProjectReferenceRedirect:Wm,isSourceOfProjectReferenceRedirect:_b,getSymlinkCache:Vm,writeFile:Xe||fo,isEmitBlocked:rc,shouldTransformImportCall:Vx,getEmitModuleFormatOfFile:Bk,getDefaultResolutionModeForFile:nv,getModeForResolutionAtIndex:Rk,readFile:dt=>nn.readFile(dt),fileExists:dt=>{let qt=Vi(dt);return pi(qt)?!0:He.has(qt)?!1:nn.fileExists(dt)},realpath:Ps(nn,nn.realpath),useCaseSensitiveFileNames:()=>nn.useCaseSensitiveFileNames(),getBuildInfo:()=>{var dt;return(dt=Bt.getBuildInfo)==null?void 0:dt.call(Bt)},getSourceFileFromReference:(dt,qt)=>Bt.getSourceFileFromReference(dt,qt),redirectTargetsMap:ye,getFileIncludeReasons:Bt.getFileIncludeReasons,createHash:Ps(nn,nn.createHash),getModuleResolutionCache:()=>Bt.getModuleResolutionCache(),trace:Ps(nn,nn.trace)}}function fo(Xe,dt,qt,bi,qi,En){nn.writeFile(Xe,dt,qt,bi,qi,En)}function ka(Xe){var dt,qt;(dt=jn)==null||dt.push(jn.Phase.Emit,"emitBuildInfo",{},!0),zl("beforeEmit");let bi=Iie(J1e,Fc(Xe),void 0,W1e,!1,!0);return zl("afterEmit"),ih("Emit","beforeEmit","afterEmit"),(qt=jn)==null||qt.pop(),bi}function tf(){return bt}function Ts(){return Ce}function e_(Xe){return!!Sn.get(Xe.path)}function id(Xe){if(!Xe.isDeclarationFile)return!1;if(Xe.hasNoDefaultLib)return!0;if(ce.noLib)return!1;let dt=nn.useCaseSensitiveFileNames()?Mw:sx;return ce.lib?Lt(ce.lib,qt=>{let bi=gt.get(qt);return!!bi&&dt(Xe.fileName,bi.actual)}):dt(Xe.fileName,is())}function Ko(){return ke||(ke=Yve(Bt))}function nc(Xe,dt,qt,bi,qi,En,tn){var dr,so;(dr=jn)==null||dr.push(jn.Phase.Emit,"emit",{path:Xe?.path},!0);let Gn=Pt(()=>Bo(Bt,Xe,dt,qt,bi,qi,En,tn));return(so=jn)==null||so.pop(),Gn}function rc(Xe){return dn.has(Vi(Xe))}function Bo(Xe,dt,qt,bi,qi,En,tn,dr){if(!tn){let Kn=Kie(Xe,dt,qt,bi);if(Kn)return Kn}let so=Ko(),Gn=so.getEmitResolver(ce.outFile?void 0:dt,bi,Die(qi,tn));zl("beforeEmit");let uo=so.runWithCancellationToken(bi,()=>Iie(Gn,Fc(qt),dt,z1e(ce,En,qi),qi,!1,tn,dr));return zl("afterEmit"),ih("Emit","beforeEmit","afterEmit"),uo}function Ua(Xe){return pi(Vi(Xe))}function pi(Xe){return ge.get(Xe)||void 0}function Ac(Xe,dt,qt){return PP(Xe?dt(Xe,qt):vo(Bt.getSourceFiles(),bi=>(qt&&qt.throwIfCancellationRequested(),dt(bi,qt))))}function Wf(Xe,dt){return Ac(Xe,Ze,dt)}function nd(Xe,dt,qt){return Ac(Xe,(bi,qi)=>ri(bi,qi,qt),dt)}function bp(Xe){return Tt?.get(Xe.path)}function Fl(Xe,dt){return un(Xe,dt,void 0)}function $l(Xe){var dt;if(_4(Xe,ce,Bt))return F;let qt=se().getDiagnostics(Xe.fileName);return(dt=Xe.commentDirectives)!=null&&dt.length?hr(Xe,Xe.commentDirectives,qt).diagnostics:qt}function H(Xe,dt){return Ac(Xe,Pu,dt)}function Ze(Xe){return N_(Xe)?(Xe.additionalSyntacticDiagnostics||(Xe.additionalSyntacticDiagnostics=Ya(Xe)),Fo(Xe.additionalSyntacticDiagnostics,Xe.parseDiagnostics)):Xe.parseDiagnostics}function Pt(Xe){try{return Xe()}catch(dt){throw dt instanceof h3&&(ke=void 0),dt}}function ri(Xe,dt,qt){return Fo(BU(un(Xe,dt,qt),ce),$l(Xe))}function un(Xe,dt,qt){if(qt)return Nr(Xe,dt,qt);let bi=Tt?.get(Xe.path);return bi||(Tt??(Tt=new Map)).set(Xe.path,bi=Nr(Xe,dt)),bi}function Nr(Xe,dt,qt){return Pt(()=>{if(_4(Xe,ce,Bt))return F;let bi=Ko();B.assert(!!Xe.bindDiagnostics);let qi=Xe.scriptKind===1||Xe.scriptKind===2,En=W3(Xe,ce.checkJs),tn=qi&&yO(Xe,ce),dr=Xe.bindDiagnostics,so=bi.getDiagnostics(Xe,dt,qt);return En&&(dr=Di(dr,Gn=>a9e.has(Gn.code)),so=Di(so,Gn=>a9e.has(Gn.code))),Bi(Xe,!En,!!qt,dr,so,tn?Xe.jsDocDiagnostics:void 0)})}function Bi(Xe,dt,qt,...bi){var qi;let En=tc(bi);if(!dt||!((qi=Xe.commentDirectives)!=null&&qi.length))return En;let{diagnostics:tn,directives:dr}=hr(Xe,Xe.commentDirectives,En);if(qt)return tn;for(let so of dr.getUnusedExpectations())tn.push(Lhe(Xe,so.range,S.Unused_ts_expect_error_directive));return tn}function hr(Xe,dt,qt){let bi=vhe(Xe,dt);return{diagnostics:qt.filter(En=>oo(En,bi)===-1),directives:bi}}function Pr(Xe,dt){return Pt(()=>Ko().getSuggestionDiagnostics(Xe,dt))}function oo(Xe,dt){let{file:qt,start:bi}=Xe;if(!qt)return-1;let qi=Ov(qt),En=NP(qi,bi).line-1;for(;En>=0;){if(dt.markUsed(En))return En;let tn=qt.text.slice(qi[En],qi[En+1]).trim();if(tn!==""&&!/^\s*\/\/.*$/.test(tn))return-1;En--}return-1}function Ya(Xe){return Pt(()=>{let dt=[];return qt(Xe,Xe),LN(Xe,qt,bi),dt;function qt(dr,so){switch(so.kind){case 169:case 172:case 174:if(so.questionToken===dr)return dt.push(tn(dr,S.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(so.type===dr)return dt.push(tn(dr,S.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(dr.kind){case 273:if(dr.isTypeOnly)return dt.push(tn(so,S._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(dr.isTypeOnly)return dt.push(tn(dr,S._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(dr.isTypeOnly)return dt.push(tn(dr,S._0_declarations_can_only_be_used_in_TypeScript_files,F_(dr)?"import...type":"export...type")),"skip";break;case 271:return dt.push(tn(dr,S.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(dr.isExportEquals)return dt.push(tn(dr,S.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(dr.token===119)return dt.push(tn(dr,S.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let uo=ua(120);return B.assertIsDefined(uo),dt.push(tn(dr,S._0_declarations_can_only_be_used_in_TypeScript_files,uo)),"skip";case 267:let Kn=dr.flags&32?ua(145):ua(144);return B.assertIsDefined(Kn),dt.push(tn(dr,S._0_declarations_can_only_be_used_in_TypeScript_files,Kn)),"skip";case 265:return dt.push(tn(dr,S.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return dr.body?void 0:(dt.push(tn(dr,S.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Es=B.checkDefined(ua(94));return dt.push(tn(dr,S._0_declarations_can_only_be_used_in_TypeScript_files,Es)),"skip";case 235:return dt.push(tn(dr,S.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return dt.push(tn(dr.type,S.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return dt.push(tn(dr.type,S.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:B.fail()}}function bi(dr,so){if(lte(so)){let Gn=St(so.modifiers,Td);Gn&&dt.push(tn(Gn,S.Decorators_are_not_valid_here))}else if(hT(so)&&so.modifiers){let Gn=zi(so.modifiers,Td);if(Gn>=0){if(To(so)&&!ce.experimentalDecorators)dt.push(tn(so.modifiers[Gn],S.Decorators_are_not_valid_here));else if(Zu(so)){let uo=zi(so.modifiers,bN);if(uo>=0){let Kn=zi(so.modifiers,gH);if(Gn>uo&&Kn>=0&&Gn=0&&Gn=0&&dt.push(Xs(tn(so.modifiers[Es],S.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),tn(so.modifiers[Gn],S.Decorator_used_before_export_here)))}}}}}switch(so.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(dr===so.typeParameters)return dt.push(En(dr,S.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(dr===so.modifiers)return qi(so.modifiers,so.kind===243),"skip";break;case 172:if(dr===so.modifiers){for(let Gn of dr)xa(Gn)&&Gn.kind!==126&&Gn.kind!==129&&dt.push(tn(Gn,S.The_0_modifier_can_only_be_used_in_TypeScript_files,ua(Gn.kind)));return"skip"}break;case 169:if(dr===so.modifiers&&Lt(dr,xa))return dt.push(En(dr,S.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(dr===so.typeArguments)return dt.push(En(dr,S.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function qi(dr,so){for(let Gn of dr)switch(Gn.kind){case 87:if(so)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:dt.push(tn(Gn,S.The_0_modifier_can_only_be_used_in_TypeScript_files,ua(Gn.kind)));break;case 126:case 95:case 90:case 129:}}function En(dr,so,...Gn){let uo=dr.pos;return kd(Xe,uo,dr.end-uo,so,...Gn)}function tn(dr,so,...Gn){return oh(Xe,dr,so,...Gn)}})}function ml(Xe,dt){let qt=Be?.get(Xe.path);return qt||(Be??(Be=new Map)).set(Xe.path,qt=Au(Xe,dt)),qt}function Au(Xe,dt){return Pt(()=>{let qt=Ko().getEmitResolver(Xe,dt);return B1e(Fc(dc),qt,Xe)||F})}function Pu(Xe,dt){return Xe.isDeclarationFile?F:ml(Xe,dt)}function ku(){return PP(Fo(se().getGlobalDiagnostics(),hl()))}function hl(){if(!ce.configFile)return F;let Xe=se().getDiagnostics(ce.configFile.fileName);return np(dt=>{Xe=Fo(Xe,se().getDiagnostics(dt.sourceFile.fileName))}),Xe}function Lu(){return _e.length?PP(Ko().getGlobalDiagnostics().slice()):F}function h_(){return ae||F}function Ou(Xe,dt,qt,bi){Ja($s(Xe),dt,qt,void 0,bi)}function _d(Xe,dt){return Xe.fileName===dt.fileName}function gh(Xe,dt){return Xe.kind===80?dt.kind===80&&Xe.escapedText===dt.escapedText:dt.kind===11&&Xe.text===dt.text}function qe(Xe,dt){let qt=U.createStringLiteral(Xe),bi=U.createImportDeclaration(void 0,void 0,qt);return mN(bi,2),ic(qt,bi),ic(bi,dt),qt.flags&=-17,bi.flags&=-17,qt}function Qt(Xe){if(Xe.imports)return;let dt=N_(Xe),qt=dd(Xe),bi,qi,En;if(dt||!Xe.isDeclarationFile&&(Jh(ce)||dd(Xe))){ce.importHelpers&&(bi=[qe(ek,Xe)]);let Gn=WV(jV(ce,Xe),ce);Gn&&(bi||(bi=[])).push(qe(Gn,Xe))}for(let Gn of Xe.statements)tn(Gn,!1);(Xe.flags&4194304||dt)&&dr(Xe),Xe.imports=bi||F,Xe.moduleAugmentations=qi||F,Xe.ambientModuleNames=En||F;return;function tn(Gn,uo){if(TM(Gn)){let Kn=GI(Gn);Kn&&Da(Kn)&&Kn.text&&(!uo||!Od(Kn.text))&&(tb(Gn,!1),bi=hi(bi,Kn),!ct&&ni===0&&!Xe.isDeclarationFile&&(ct=Ro(Kn.text,"node:")))}else if(Hu(Gn)&&d_(Gn)&&(uo||Ar(Gn,128)||Xe.isDeclarationFile)){Gn.name.parent=Gn;let Kn=Hh(Gn.name);if(qt||uo&&!Od(Kn))(qi||(qi=[])).push(Gn.name);else if(!uo){Xe.isDeclarationFile&&(En||(En=[])).push(Kn);let Es=Gn.body;if(Es)for(let Jc of Es.statements)tn(Jc,!0)}}}function dr(Gn){let uo=/import|require/g;for(;uo.exec(Gn.text)!==null;){let Kn=so(Gn,uo.lastIndex);if(dt&&Y_(Kn,!0))tb(Kn,!1),bi=hi(bi,Kn.arguments[0]);else if(fm(Kn)&&Kn.arguments.length>=1&&xc(Kn.arguments[0]))tb(Kn,!1),bi=hi(bi,Kn.arguments[0]);else if(eS(Kn))tb(Kn,!1),bi=hi(bi,Kn.argument.literal);else if(dt&&oy(Kn)){let Es=GI(Kn);Es&&Da(Es)&&Es.text&&(tb(Kn,!1),bi=hi(bi,Es))}}}function so(Gn,uo){let Kn=Gn,Es=Jc=>{if(Jc.pos<=uo&&(uoTl(qi,tn))){qt&&($v(qi)?qt(S.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Xe):qt(S.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Xe,"'"+tc(it).join("', '")+"'"));return}let En=dt(Xe);if(qt)if(En)Tk(bi)&&qi===nn.getCanonicalFileName(pi(bi.file).fileName)&&qt(S.A_file_cannot_have_a_reference_to_itself);else{let tn=Wm(Xe);tn?qt(S.Output_file_0_has_not_been_built_from_source_file_1,tn,Xe):qt(S.File_0_not_found,Xe)}return En}else{let qi=ce.allowNonTsExtensions&&dt(Xe);if(qi)return qi;if(qt&&ce.allowNonTsExtensions){qt(S.File_0_not_found,Xe);return}let En=re(it[0],tn=>dt(Xe+tn));return qt&&!En&&qt(S.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Xe,"'"+tc(it).join("', '")+"'"),En}}function Ja(Xe,dt,qt,bi,qi){za(Xe,En=>gc(En,dt,qt,qi,bi),(En,...tn)=>Qa(void 0,qi,En,tn),qi)}function wu(Xe,dt){return Ja(Xe,!1,!1,void 0,dt)}function Nd(Xe,dt,qt){!Tk(qt)&&Lt(Oe.get(dt.path),Tk)?Qa(dt,qt,S.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[dt.fileName,Xe]):Qa(dt,qt,S.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Xe,dt.fileName])}function Mc(Xe,dt,qt,bi,qi,En,tn){var dr;let so=Sk.createRedirectedSourceFile({redirectTarget:Xe,unredirected:dt});return so.fileName=qt,so.path=bi,so.resolvedPath=qi,so.originalFileName=En,so.packageJsonLocations=(dr=tn.packageJsonLocations)!=null&&dr.length?tn.packageJsonLocations:void 0,so.packageJsonScope=tn.packageJsonScope,Sn.set(bi,ni>0),so}function gc(Xe,dt,qt,bi,qi){var En,tn;(En=jn)==null||En.push(jn.Phase.Program,"findSourceFile",{fileName:Xe,isDefaultLib:dt||void 0,fileIncludeKind:WY[bi.kind]});let dr=Zp(Xe,dt,qt,bi,qi);return(tn=jn)==null||tn.pop(),dr}function Ju(Xe,dt,qt,bi){let qi=MU(ts(Xe,Eo),dt?.getPackageJsonInfoCache(),qt,bi),En=Oa(bi),tn=bR(bi);return typeof qi=="object"?{...qi,languageVersion:En,setExternalModuleIndicator:tn,jsDocParsingMode:qt.jsDocParsingMode}:{languageVersion:En,impliedNodeFormat:qi,setExternalModuleIndicator:tn,jsDocParsingMode:qt.jsDocParsingMode}}function Zp(Xe,dt,qt,bi,qi){var En;let tn=Vi(Xe);if($t){let Kn=Ad(tn);if(!Kn&&nn.realpath&&ce.preserveSymlinks&&Jd(Xe)&&Xe.includes(Zv)){let Es=Vi(nn.realpath(Xe));Es!==tn&&(Kn=Ad(Es))}if(Kn){let Es=fs(Kn)?gc(Kn,dt,qt,bi,qi):void 0;return Es&&Sp(Es,tn,Xe,void 0),Es}}let dr=Xe;if(ge.has(tn)){let Kn=ge.get(tn),Es=Qh(Kn||void 0,bi,!0);if(Kn&&Es&&ce.forceConsistentCasingInFileNames!==!1){let Jc=Kn.fileName;Vi(Jc)!==Vi(Xe)&&(Xe=Wm(Xe)||Xe);let ng=rQ(Jc,Eo),y_=rQ(Xe,Eo);ng!==y_&&Nd(Xe,Kn,bi)}return Kn&&Sn.get(Kn.path)&&ni===0?(Sn.set(Kn.path,!1),ce.noResolve||(i1(Kn,dt),zm(Kn)),ce.noLib||Tn(Kn),Ci.set(Kn.path,!1),qr(Kn)):Kn&&Ci.get(Kn.path)&&niQa(void 0,bi,S.Cannot_read_file_0_Colon_1,[Xe,Kn]),Y);if(qi){let Kn=tk(qi),Es=ht.get(Kn);if(Es){let Jc=Mc(Es,uo,Xe,tn,Vi(Xe),dr,Gn);return ye.add(Es.path,Xe),Sp(Jc,tn,Xe,so),Qh(Jc,bi,!1),Jt.set(tn,Iz(qi)),be.push(Jc),Jc}else uo&&(ht.set(Kn,uo),Jt.set(tn,Iz(qi)))}if(Sp(uo,tn,Xe,so),uo){if(Sn.set(tn,ni>0),uo.fileName=Xe,uo.path=tn,uo.resolvedPath=Vi(Xe),uo.originalFileName=dr,uo.packageJsonLocations=(En=Gn.packageJsonLocations)!=null&&En.length?Gn.packageJsonLocations:void 0,uo.packageJsonScope=Gn.packageJsonScope,Qh(uo,bi,!1),nn.useCaseSensitiveFileNames()){let Kn=rx(tn),Es=ut.get(Kn);Es?Nd(Xe,Es,bi):ut.set(Kn,uo)}Gr=Gr||uo.hasNoDefaultLib&&!qt,ce.noResolve||(i1(uo,dt),zm(uo)),ce.noLib||Tn(uo),qr(uo),dt?ve.push(uo):be.push(uo),(we??(we=new Set)).add(uo.path)}return uo}function Qh(Xe,dt,qt){return Xe&&(!qt||!Tk(dt)||!we?.has(dt.file))?(Oe.add(Xe.path,dt),!0):!1}function Sp(Xe,dt,qt,bi){bi?(hm(qt,bi,Xe),hm(qt,dt,Xe||!1)):hm(qt,dt,Xe)}function hm(Xe,dt,qt){ge.set(dt,qt),qt!==void 0?He.delete(dt):He.set(dt,Xe)}function Wm(Xe){let dt=yh(Xe);return dt&&t1(dt,Xe)}function yh(Xe){if(!(!bt||!bt.length||Jd(Xe)||Tl(Xe,".json")))return Zh(Xe)}function t1(Xe,dt){let qt=Xe.commandLine.options.outFile;return qt?Tx(qt,".d.ts"):W4(dt,Xe.commandLine,!nn.useCaseSensitiveFileNames())}function Zh(Xe){It===void 0&&(It=new Map,np(qt=>{Vi(ce.configFilePath)!==qt.sourceFile.path&&qt.commandLine.fileNames.forEach(bi=>It.set(Vi(bi),qt.sourceFile.path))}));let dt=It.get(Vi(Xe));return dt&&j_(dt)}function np(Xe){return Jie(bt,Xe)}function Ad(Xe){if(Jd(Xe))return mt===void 0&&(mt=new Map,np(dt=>{let qt=dt.commandLine.options.outFile;if(qt){let bi=Tx(qt,".d.ts");mt.set(Vi(bi),!0)}else{let bi=l_(()=>VN(dt.commandLine,!nn.useCaseSensitiveFileNames()));re(dt.commandLine.fileNames,qi=>{if(!Jd(qi)&&!Tl(qi,".json")){let En=W4(qi,dt.commandLine,!nn.useCaseSensitiveFileNames(),bi);mt.set(Vi(En),qi)}})}})),mt.get(Xe)}function _b(Xe){return $t&&!!Zh(Xe)}function j_(Xe){if(je)return je.get(Xe)||void 0}function i1(Xe,dt){re(Xe.referencedFiles,(qt,bi)=>{Ja(Mie(qt.fileName,Xe.fileName),dt,!1,void 0,{kind:4,file:Xe.path,index:bi})})}function zm(Xe){let dt=Xe.typeReferenceDirectives;if(!dt.length)return;let qt=Fi?.get(Xe.path)||ks(dt,Xe),bi=L4();(ci??(ci=new Map)).set(Xe.path,bi);for(let qi=0;qi{let bi=s9e(dt);bi?Ou(di(bi),!0,!0,{kind:7,file:Xe.path,index:qt}):(Ge||(Ge=[])).push({kind:0,reason:{kind:7,file:Xe.path,index:qt}})})}function ur(Xe){return nn.getCanonicalFileName(Xe)}function qr(Xe){if(Qt(Xe),Xe.imports.length||Xe.moduleAugmentations.length){let dt=l9e(Xe),qt=At?.get(Xe.path)||Ss(dt,Xe);B.assert(qt.length===dt.length);let bi=me(Xe),qi=L4();(nt??(nt=new Map)).set(Xe.path,qi);for(let En=0;Enan,g_=Es&&!Xie(bi,tn,Xe)&&!bi.noResolve&&Endd(tn)&&!tn.isDeclarationFile);if(ce.isolatedModules||ce.verbatimModuleSyntax)ce.module===0&&dt<2&&ce.isolatedModules&&ul(S.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),ce.preserveConstEnums===!1&&ul(S.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,ce.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(qt&&dt<2&&ce.module===0){let tn=rE(qt,typeof qt.externalModuleIndicator=="boolean"?qt:qt.externalModuleIndicator);Rr.add(kd(qt,tn.start,tn.length,S.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Xe&&!ce.emitDeclarationOnly){if(ce.module&&!(ce.module===2||ce.module===4))ul(S.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(ce.module===void 0&&qt){let tn=rE(qt,typeof qt.externalModuleIndicator=="boolean"?qt:qt.externalModuleIndicator);Rr.add(kd(qt,tn.start,tn.length,S.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(iT(ce)&&($f(ce)===1?ul(S.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):FV(ce)||ul(S.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),ce.outDir||ce.rootDir||ce.sourceRoot||ce.mapRoot||yp(ce)&&ce.declarationDir){let tn=ai();ce.outDir&&tn===""&&Se.some(dr=>Vy(dr.fileName)>1)&&ul(S.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}ce.checkJs&&!kx(ce)&&ul(S.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),ce.emitDeclarationOnly&&(yp(ce)||ul(S.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),ce.emitDecoratorMetadata&&!ce.experimentalDecorators&&ul(S.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),ce.jsxFactory?(ce.reactNamespace&&ul(S.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(ce.jsx===4||ce.jsx===5)&&ul(S.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",t5.get(""+ce.jsx)),FN(ce.jsxFactory,dt)||gm("jsxFactory",S.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,ce.jsxFactory)):ce.reactNamespace&&!pp(ce.reactNamespace,dt)&&gm("reactNamespace",S.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,ce.reactNamespace),ce.jsxFragmentFactory&&(ce.jsxFactory||ul(S.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(ce.jsx===4||ce.jsx===5)&&ul(S.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",t5.get(""+ce.jsx)),FN(ce.jsxFragmentFactory,dt)||gm("jsxFragmentFactory",S.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,ce.jsxFragmentFactory)),ce.reactNamespace&&(ce.jsx===4||ce.jsx===5)&&ul(S.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",t5.get(""+ce.jsx)),ce.jsxImportSource&&ce.jsx===2&&ul(S.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",t5.get(""+ce.jsx));let bi=p_(ce);ce.verbatimModuleSyntax&&(bi===2||bi===3||bi===4)&&ul(S.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),ce.allowImportingTsExtensions&&!(ce.noEmit||ce.emitDeclarationOnly)&&gm("allowImportingTsExtensions",S.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let qi=$f(ce);if(ce.resolvePackageJsonExports&&!u4(qi)&&ul(S.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),ce.resolvePackageJsonImports&&!u4(qi)&&ul(S.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),ce.customConditions&&!u4(qi)&&ul(S.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),qi===100&&!CR(bi)&&bi!==200&&gm("moduleResolution",S.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),G7[bi]&&100<=bi&&bi<=199&&!(3<=qi&&qi<=99)){let tn=G7[bi];gm("moduleResolution",S.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,tn,tn)}else if(g3[qi]&&3<=qi&&qi<=99&&!(100<=bi&&bi<=199)){let tn=g3[qi];gm("module",S.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,tn,tn)}if(!ce.noEmit&&!ce.suppressOutputPathCheck){let tn=Fc(),dr=new Set;Cie(tn,so=>{ce.emitDeclarationOnly||En(so.jsFilePath,dr),En(so.declarationFilePath,dr)})}function En(tn,dr){if(tn){let so=Vi(tn);if(ge.has(so)){let uo;ce.configFilePath||(uo=bs(void 0,S.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)),uo=bs(uo,S.Cannot_write_file_0_because_it_would_overwrite_input_file,tn),kS(tn,AV(uo))}let Gn=nn.useCaseSensitiveFileNames()?so:rx(so);dr.has(Gn)?kS(tn,Dl(S.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,tn)):dr.add(Gn)}}}function gn(){let Xe=ce.ignoreDeprecations;if(Xe){if(Xe==="5.0")return new Ug(Xe);Ee()}return Ug.zero}function lo(Xe,dt,qt,bi){let qi=new Ug(Xe),En=new Ug(dt),tn=new Ug(he||D),dr=gn(),so=En.compareTo(tn)!==1,Gn=!so&&dr.compareTo(qi)===-1;(so||Gn)&&bi((uo,Kn,Es)=>{so?Kn===void 0?qt(uo,Kn,Es,S.Option_0_has_been_removed_Please_remove_it_from_your_configuration,uo):qt(uo,Kn,Es,S.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,uo,Kn):Kn===void 0?qt(uo,Kn,Es,S.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,uo,dt,Xe):qt(uo,Kn,Es,S.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,uo,Kn,dt,Xe)})}function Is(){function Xe(dt,qt,bi,qi,...En){if(bi){let tn=bs(void 0,S.Use_0_instead,bi),dr=bs(tn,qi,...En);c0(!qt,dt,void 0,dr)}else c0(!qt,dt,void 0,qi,...En)}lo("5.0","5.5",Xe,dt=>{ce.target===0&&dt("target","ES3"),ce.noImplicitUseStrict&&dt("noImplicitUseStrict"),ce.keyofStringsOnly&&dt("keyofStringsOnly"),ce.suppressExcessPropertyErrors&&dt("suppressExcessPropertyErrors"),ce.suppressImplicitAnyIndexErrors&&dt("suppressImplicitAnyIndexErrors"),ce.noStrictGenericChecks&&dt("noStrictGenericChecks"),ce.charset&&dt("charset"),ce.out&&dt("out",void 0,"outFile"),ce.importsNotUsedAsValues&&dt("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),ce.preserveValueImports&&dt("preserveValueImports",void 0,"verbatimModuleSyntax")})}function os(Xe,dt,qt){function bi(qi,En,tn,dr,...so){xp(dt,qt,dr,...so)}lo("5.0","5.5",bi,qi=>{Xe.prepend&&qi("prepend")})}function Ns(Xe,dt,qt,bi){let qi,En=Xe&&Oe.get(Xe.path),tn,dr,so=Tk(dt)?dt:void 0,Gn,uo,Kn=Xe&&Ae?.get(Xe.path),Es;Kn?(Kn.fileIncludeReasonDetails?(qi=new Set(En),En?.forEach(y_)):En?.forEach(ng),uo=Kn.redirectInfo):(En?.forEach(ng),uo=Xe&&fne(Xe,me(Xe))),dt&&ng(dt);let Jc=qi?.size!==En?.length;so&&qi?.size===1&&(qi=void 0),qi&&Kn&&(Kn.details&&!Jc?Es=bs(Kn.details,qt,...bi||F):Kn.fileIncludeReasonDetails&&(Jc?rg()?tn=hi(Kn.fileIncludeReasonDetails.next.slice(0,En.length),tn[0]):tn=[...Kn.fileIncludeReasonDetails.next,tn[0]]:rg()?tn=Kn.fileIncludeReasonDetails.next.slice(0,En.length):Gn=Kn.fileIncludeReasonDetails)),Es||(Gn||(Gn=qi&&bs(tn,S.The_file_is_in_the_program_because_Colon)),Es=bs(uo?Gn?[Gn,...uo]:uo:Gn,qt,...bi||F)),Xe&&(Kn?(!Kn.fileIncludeReasonDetails||!Jc&&Gn)&&(Kn.fileIncludeReasonDetails=Gn):(Ae??(Ae=new Map)).set(Xe.path,Kn={fileIncludeReasonDetails:Gn,redirectInfo:uo}),!Kn.details&&!Jc&&(Kn.details=Es.next));let g_=so&&p8(Bt,so);return g_&&V4(g_)?Rz(g_.file,g_.pos,g_.end-g_.pos,Es,dr):AV(Es,dr);function ng(v_){qi?.has(v_)||((qi??(qi=new Set)).add(v_),(tn??(tn=[])).push(mne(Bt,v_)),y_(v_))}function y_(v_){!so&&Tk(v_)?so=v_:so!==v_&&(dr=hi(dr,Il(v_)))}function rg(){var v_;return((v_=Kn.fileIncludeReasonDetails.next)==null?void 0:v_.length)!==En?.length}}function Qa(Xe,dt,qt,bi){(Ge||(Ge=[])).push({kind:1,file:Xe&&Xe.path,fileProcessingReason:dt,diagnostic:qt,args:bi})}function Ra(Xe,dt,qt){xn.push({file:Xe,diagnostic:dt,args:qt})}function Il(Xe){let dt=Fe?.get(Xe);return dt===void 0&&(Fe??(Fe=new Map)).set(Xe,dt=vh(Xe)??!1),dt||void 0}function vh(Xe){if(Tk(Xe)){let bi=p8(Bt,Xe),qi;switch(Xe.kind){case 3:qi=S.File_is_included_via_import_here;break;case 4:qi=S.File_is_included_via_reference_here;break;case 5:qi=S.File_is_included_via_type_library_reference_here;break;case 7:qi=S.File_is_included_via_library_reference_here;break;default:B.assertNever(Xe)}return V4(bi)?kd(bi.file,bi.pos,bi.end-bi.pos,qi):void 0}if(!ce.configFile)return;let dt,qt;switch(Xe.kind){case 0:if(!ce.configFile.configFileSpecs)return;let bi=ts(_e[Xe.index],Eo),qi=_ne(Bt,bi);if(qi){dt=Hz(ce.configFile,"files",qi),qt=S.File_is_matched_by_files_list_specified_here;break}let En=pne(Bt,bi);if(!En||!fs(En))return;dt=Hz(ce.configFile,"include",En),qt=S.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let tn=B.checkDefined(bt?.[Xe.index]),dr=OU(Ce,bt,(Es,Jc,g_)=>Es===tn?{sourceFile:Jc?.sourceFile||ce.configFile,index:g_}:void 0);if(!dr)return;let{sourceFile:so,index:Gn}=dr,uo=LM(so,"references",Es=>yf(Es.initializer)?Es.initializer:void 0);return uo&&uo.elements.length>Gn?oh(so,uo.elements[Gn],Xe.kind===2?S.File_is_output_from_referenced_project_specified_here:S.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!ce.types)return;dt=Sh("types",Xe.typeReference),qt=S.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Xe.index!==void 0){dt=Sh("lib",ce.lib[Xe.index]),qt=S.File_is_library_specified_here;break}let Kn=MV(Oa(ce));dt=Kn?bh("target",Kn):void 0,qt=S.File_is_default_library_for_target_specified_here;break;default:B.assertNever(Xe)}return dt&&oh(ce.configFile,dt,qt)}function Tg(){let Xe=ce.suppressOutputPathCheck?void 0:wk(ce);OU(Ce,bt,(dt,qt,bi)=>{let qi=(qt?qt.commandLine.projectReferences:Ce)[bi],En=qt&&qt.sourceFile;if(os(qi,En,bi),!dt){xp(En,bi,S.File_0_not_found,qi.path);return}let tn=dt.commandLine.options;(!tn.composite||tn.noEmit)&&(qt?qt.commandLine.fileNames:_e).length&&(tn.composite||xp(En,bi,S.Referenced_project_0_must_have_setting_composite_Colon_true,qi.path),tn.noEmit&&xp(En,bi,S.Referenced_project_0_may_not_disable_emit,qi.path)),!qt&&Xe&&Xe===wk(tn)&&(xp(En,bi,S.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Xe,qi.path),dn.set(Vi(Xe),!0))})}function a0(Xe,dt,qt,...bi){let qi=!0;r1(En=>{ba(En.initializer)&&qP(En.initializer,Xe,tn=>{let dr=tn.initializer;yf(dr)&&dr.elements.length>dt&&(Rr.add(oh(ce.configFile,dr.elements[dt],qt,...bi)),qi=!1)})}),qi&&o1(qt,...bi)}function n1(Xe,dt,qt,...bi){let qi=!0;r1(En=>{ba(En.initializer)&&pb(En.initializer,Xe,dt,void 0,qt,...bi)&&(qi=!1)}),qi&&o1(qt,...bi)}function CS(Xe,dt){return qP(eg(),Xe,dt)}function r1(Xe){return CS("paths",Xe)}function bh(Xe,dt){return CS(Xe,qt=>Da(qt.initializer)&&qt.initializer.text===dt?qt.initializer:void 0)}function Sh(Xe,dt){let qt=eg();return qt&&Jhe(qt,Xe,dt)}function ul(Xe,dt,qt,bi){c0(!0,dt,qt,Xe,dt,qt,bi)}function gm(Xe,dt,...qt){c0(!1,Xe,void 0,dt,...qt)}function xp(Xe,dt,qt,...bi){let qi=LM(Xe||ce.configFile,"references",En=>yf(En.initializer)?En.initializer:void 0);qi&&qi.elements.length>dt?Rr.add(oh(Xe||ce.configFile,qi.elements[dt],qt,...bi)):Rr.add(Dl(qt,...bi))}function c0(Xe,dt,qt,bi,...qi){let En=eg();(!En||!pb(En,Xe,dt,qt,bi,...qi))&&o1(bi,...qi)}function o1(Xe,...dt){let qt=iv();qt?"messageText"in Xe?Rr.add(zv(ce.configFile,qt.name,Xe)):Rr.add(oh(ce.configFile,qt.name,Xe,...dt)):"messageText"in Xe?Rr.add(AV(Xe)):Rr.add(Dl(Xe,...dt))}function eg(){if(Qn===void 0){let Xe=iv();Qn=Xe&&kr(Xe.initializer,ba)||!1}return Qn||void 0}function iv(){return Jr===void 0&&(Jr=qP(U3(ce.configFile),"compilerOptions",Gc)||!1),Jr||void 0}function pb(Xe,dt,qt,bi,qi,...En){let tn=!1;return qP(Xe,qt,dr=>{"messageText"in qi?Rr.add(zv(ce.configFile,dt?dr.name:dr.initializer,qi)):Rr.add(oh(ce.configFile,dt?dr.name:dr.initializer,qi,...En)),tn=!0},bi),tn}function kS(Xe,dt){dn.set(Vi(Xe),!0),Rr.add(dt)}function tg(Xe){if(ce.noEmit)return!1;let dt=Vi(Xe);if(pi(dt))return!1;let qt=ce.outFile;if(qt)return Mk(dt,qt)||Mk(dt,A_(qt)+".d.ts");if(ce.declarationDir&&nh(ce.declarationDir,dt,Eo,!nn.useCaseSensitiveFileNames()))return!0;if(ce.outDir)return nh(ce.outDir,dt,Eo,!nn.useCaseSensitiveFileNames());if(vu(dt,d4)||Jd(dt)){let bi=A_(dt);return!!pi(bi+".ts")||!!pi(bi+".tsx")}return!1}function Mk(Xe,dt){return J1(Xe,dt,Eo,!nn.useCaseSensitiveFileNames())===0}function Vm(){return nn.getSymlinkCache?nn.getSymlinkCache():(Re||(Re=see(Eo,ur)),Se&&!Re.hasProcessedResolutions()&&Re.setSymlinksFromResolutions(ei,In,Ue),Re)}function ig(Xe,dt){return Hie(Xe,dt,me(Xe))}function mb(Xe,dt){return i9e(Xe,dt,me(Xe))}function Rk(Xe,dt){return ig(Xe,I5(Xe,dt))}function nv(Xe){return RU(Xe,me(Xe))}function s1(Xe){return AE(Xe,me(Xe))}function Bk(Xe){return m8(Xe,me(Xe))}function Vx(Xe){return c9e(Xe,me(Xe))}}function c9e(e,t){let r=p_(t);return 100<=r&&r<=199||r===200?!1:m8(e,t)<5}function m8(e,t){return AE(e,t)??p_(t)}function AE(e,t){var r,a;let u=p_(t);if(100<=u&&u<=199)return e.impliedNodeFormat;if(e.impliedNodeFormat===1&&(((r=e.packageJsonScope)==null?void 0:r.contents.packageJsonContent.type)==="commonjs"||vu(e.fileName,[".cjs",".cts"])))return 1;if(e.impliedNodeFormat===99&&(((a=e.packageJsonScope)==null?void 0:a.contents.packageJsonContent.type)==="module"||vu(e.fileName,[".mjs",".mts"])))return 99}function RU(e,t){return nee(t)?AE(e,t):void 0}function sNt(e){let t,r=e.compilerHost.fileExists,a=e.compilerHost.directoryExists,u=e.compilerHost.getDirectories,f=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:dc,fileExists:g};e.compilerHost.fileExists=g;let p;return a&&(p=e.compilerHost.directoryExists=P=>a.call(e.compilerHost,P)?(T(P),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{let W=R.commandLine.options.outFile;if(W)t.add(Or(e.toPath(W)));else{let z=R.commandLine.options.declarationDir||R.commandLine.options.outDir;z&&t.add(e.toPath(z))}})),A(P,!1)):!1),u&&(e.compilerHost.getDirectories=P=>!e.getResolvedProjectReferences()||a&&a.call(e.compilerHost,P)?u.call(e.compilerHost,P):[]),f&&(e.compilerHost.realpath=P=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(P)))||f.call(e.compilerHost,P)}),{onProgramCreateComplete:y,fileExists:g,directoryExists:p};function y(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=a,e.compilerHost.getDirectories=u}function g(P){return r.call(e.compilerHost,P)?!0:!e.getResolvedProjectReferences()||!Jd(P)?!1:A(P,!0)}function x(P){let R=e.getSourceOfProjectReferenceRedirect(e.toPath(P));return R!==void 0?fs(R)?r.call(e.compilerHost,R):!0:void 0}function k(P){let R=e.toPath(P),W=`${R}${wl}`;return K1(t,z=>R===z||Ro(z,W)||Ro(R,`${z}/`))}function T(P){var R;if(!e.getResolvedProjectReferences()||xO(P)||!f||!P.includes(Zv))return;let W=e.getSymlinkCache(),z=xd(e.toPath(P));if((R=W.getSymlinkedDirectories())!=null&&R.has(z))return;let q=$s(f.call(e.compilerHost,P)),G;if(q===P||(G=xd(e.toPath(q)))===z){W.setSymlinkedDirectory(z,!1);return}W.setSymlinkedDirectory(P,{real:xd(q),realPath:G})}function A(P,R){var W;let z=R?ne=>x(ne):ne=>k(ne),q=z(P);if(q!==void 0)return q;let G=e.getSymlinkCache(),$=G.getSymlinkedDirectories();if(!$)return!1;let te=e.toPath(P);return te.includes(Zv)?R&&((W=G.getSymlinkedFiles())!=null&&W.has(te))?!0:Je($.entries(),([ne,_e])=>{if(!_e||!Ro(te,ne))return;let ce=z(te.replace(ne,_e.realPath));if(R&&ce){let ae=ts(P,e.compilerHost.getCurrentDirectory());G.setSymlinkedFile(te,`${_e.real}${ae.replace(new RegExp(ne,"i"),"")}`)}return ce})||!1:!1}}var Gie={diagnostics:F,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function Kie(e,t,r,a){let u=e.getCompilerOptions();if(u.noEmit)return t?Gie:e.emitBuildInfo(r,a);if(!u.noEmitOnError)return;let f=[...e.getOptionsDiagnostics(a),...e.getSyntacticDiagnostics(t,a),...e.getGlobalDiagnostics(a),...e.getSemanticDiagnostics(t,a)];if(f.length===0&&yp(e.getCompilerOptions())&&(f=e.getDeclarationDiagnostics(void 0,a)),!f.length)return;let p;if(!t){let y=e.emitBuildInfo(r,a);y.diagnostics&&(f=[...f,...y.diagnostics]),p=y.emittedFiles}return{diagnostics:f,sourceMaps:void 0,emittedFiles:p,emitSkipped:!0}}function BU(e,t){return Di(e,r=>!r.skippedOn||!t[r.skippedOn])}function jU(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,a,u,f,p){return B.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,a,u,f,p)},readFile:r=>t.readFile(r),directoryExists:Ps(t,t.directoryExists),getDirectories:Ps(t,t.getDirectories),realpath:Ps(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Fw,trace:e.trace?r=>e.trace(r):void 0}}function H4(e){return kne(e.path)}function Xie(e,{extension:t},{isDeclarationFile:r}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return a();case".jsx":return a()||u();case".js":case".mjs":case".cjs":return u();case".json":return f();default:return p()}function a(){return e.jsx?void 0:S.Module_0_was_resolved_to_1_but_jsx_is_not_set}function u(){return kx(e)||!Rf(e,"noImplicitAny")?void 0:S.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function f(){return iT(e)?void 0:S.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function p(){return r||e.allowArbitraryExtensions?void 0:S.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function l9e({imports:e,moduleAugmentations:t}){let r=e.map(a=>a);for(let a of t)a.kind===11&&r.push(a);return r}function I5({imports:e,moduleAugmentations:t},r){if(r(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(sbe||{}),r0;(e=>{function t(){function he(ue,Ee,ve){let be={getKeys:Se=>Ee.get(Se),getValues:Se=>ue.get(Se),keys:()=>ue.keys(),size:()=>ue.size,deleteKey:Se=>{(ve||(ve=new Set)).add(Se);let Re=ue.get(Se);return Re?(Re.forEach(ie=>a(Ee,ie,Se)),ue.delete(Se),!0):!1},set:(Se,Re)=>{ve?.delete(Se);let ie=ue.get(Se);return ue.set(Se,Re),ie?.forEach(ke=>{Re.has(ke)||a(Ee,ke,Se)}),Re.forEach(ke=>{ie?.has(ke)||r(Ee,ke,Se)}),be}};return be}return he(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(he,ue,Ee){let ve=he.get(ue);ve||(ve=new Set,he.set(ue,ve)),ve.add(Ee)}function a(he,ue,Ee){let ve=he.get(ue);return ve?.delete(Ee)?(ve.size||he.delete(ue),!0):!1}function u(he){return ro(he.declarations,ue=>{var Ee;return(Ee=en(ue))==null?void 0:Ee.resolvedPath})}function f(he,ue){let Ee=he.getSymbolAtLocation(ue);return Ee&&u(Ee)}function p(he,ue,Ee,ve){return Vc(he.getProjectReferenceRedirect(ue)||ue,Ee,ve)}function y(he,ue,Ee){let ve;if(ue.imports&&ue.imports.length>0){let ie=he.getTypeChecker();for(let ke of ue.imports){let De=f(ie,ke);De?.forEach(Re)}}let be=Or(ue.resolvedPath);if(ue.referencedFiles&&ue.referencedFiles.length>0)for(let ie of ue.referencedFiles){let ke=p(he,ie.fileName,be,Ee);Re(ke)}if(he.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ie})=>{if(!ie)return;let ke=ie.resolvedFileName,De=p(he,ke,be,Ee);Re(De)},ue),ue.moduleAugmentations.length){let ie=he.getTypeChecker();for(let ke of ue.moduleAugmentations){if(!Da(ke))continue;let De=ie.getSymbolAtLocation(ke);De&&Se(De)}}for(let ie of he.getTypeChecker().getAmbientModules())ie.declarations&&ie.declarations.length>1&&Se(ie);return ve;function Se(ie){if(ie.declarations)for(let ke of ie.declarations){let De=en(ke);De&&De!==ue&&Re(De.resolvedPath)}}function Re(ie){(ve||(ve=new Set)).add(ie)}}function g(he,ue){return ue&&!ue.referencedMap==!he}e.canReuseOldState=g;function x(he){return he.module!==0&&!he.outFile?t():void 0}e.createReferencedMap=x;function k(he,ue,Ee){var ve,be;let Se=new Map,Re=he.getCompilerOptions(),ie=x(Re),ke=g(ie,ue);he.getTypeChecker();for(let De of he.getSourceFiles()){let Oe=B.checkDefined(De.version,"Program intended to be used with Builder should have source files with versions set"),we=ke?(ve=ue.oldSignatures)==null?void 0:ve.get(De.resolvedPath):void 0,Ae=we===void 0?ke?(be=ue.fileInfos.get(De.resolvedPath))==null?void 0:be.signature:void 0:we||void 0;if(ie){let Fe=y(he,De,he.getCanonicalFileName);Fe&&ie.set(De.resolvedPath,Fe)}Se.set(De.resolvedPath,{version:Oe,signature:Ae,affectsGlobalScope:Re.outFile?void 0:_e(De)||void 0,impliedFormat:De.impliedNodeFormat})}return{fileInfos:Se,referencedMap:ie,useFileVersionAsSignature:!Ee&&!ke}}e.create=k;function T(he){he.allFilesExcludingDefaultLibraryFile=void 0,he.allFileNames=void 0}e.releaseCache=T;function A(he,ue,Ee,ve,be){var Se;let Re=P(he,ue,Ee,ve,be);return(Se=he.oldSignatures)==null||Se.clear(),Re}e.getFilesAffectedBy=A;function P(he,ue,Ee,ve,be){let Se=ue.getSourceFileByPath(Ee);return Se?z(he,ue,Se,ve,be)?(he.referencedMap?Ce:ae)(he,ue,Se,ve,be):[Se]:F}e.getFilesAffectedByWithOldState=P;function R(he,ue,Ee){he.fileInfos.get(Ee).signature=ue,(he.hasCalledUpdateShapeSignature||(he.hasCalledUpdateShapeSignature=new Set)).add(Ee)}e.updateSignatureOfFile=R;function W(he,ue,Ee,ve,be){he.emit(ue,(Se,Re,ie,ke,De,Oe)=>{B.assert(Jd(Se),`File extension for signature expected to be dts: Got:: ${Se}`),be(Zie(he,ue,Re,ve,Oe),De)},Ee,2,void 0,!0)}e.computeDtsSignature=W;function z(he,ue,Ee,ve,be,Se=he.useFileVersionAsSignature){var Re;if((Re=he.hasCalledUpdateShapeSignature)!=null&&Re.has(Ee.resolvedPath))return!1;let ie=he.fileInfos.get(Ee.resolvedPath),ke=ie.signature,De;return!Ee.isDeclarationFile&&!Se&&W(ue,Ee,ve,be,Oe=>{De=Oe,be.storeSignatureInfo&&(he.signatureInfo??(he.signatureInfo=new Map)).set(Ee.resolvedPath,0)}),De===void 0&&(De=Ee.version,be.storeSignatureInfo&&(he.signatureInfo??(he.signatureInfo=new Map)).set(Ee.resolvedPath,2)),(he.oldSignatures||(he.oldSignatures=new Map)).set(Ee.resolvedPath,ke||!1),(he.hasCalledUpdateShapeSignature||(he.hasCalledUpdateShapeSignature=new Set)).add(Ee.resolvedPath),ie.signature=De,De!==ke}e.updateShapeSignature=z;function q(he,ue,Ee){if(ue.getCompilerOptions().outFile||!he.referencedMap||_e(Ee))return G(he,ue);let be=new Set,Se=[Ee.resolvedPath];for(;Se.length;){let Re=Se.pop();if(!be.has(Re)){be.add(Re);let ie=he.referencedMap.getValues(Re);if(ie)for(let ke of ie.keys())Se.push(ke)}}return as(bd(be.keys(),Re=>{var ie;return((ie=ue.getSourceFileByPath(Re))==null?void 0:ie.fileName)??Re}))}e.getAllDependencies=q;function G(he,ue){if(!he.allFileNames){let Ee=ue.getSourceFiles();he.allFileNames=Ee===F?F:Ee.map(ve=>ve.fileName)}return he.allFileNames}function $(he,ue){let Ee=he.referencedMap.getKeys(ue);return Ee?as(Ee.keys()):[]}e.getReferencedByPaths=$;function te(he){for(let ue of he.statements)if(!Oz(ue))return!1;return!0}function ne(he){return Lt(he.moduleAugmentations,ue=>$y(ue.parent))}function _e(he){return ne(he)||!Vp(he)&&!Wh(he)&&!te(he)}function ce(he,ue,Ee){if(he.allFilesExcludingDefaultLibraryFile)return he.allFilesExcludingDefaultLibraryFile;let ve;Ee&&be(Ee);for(let Se of ue.getSourceFiles())Se!==Ee&&be(Se);return he.allFilesExcludingDefaultLibraryFile=ve||F,he.allFilesExcludingDefaultLibraryFile;function be(Se){ue.isSourceFileDefaultLibrary(Se)||(ve||(ve=[])).push(Se)}}e.getAllFilesExcludingDefaultLibraryFile=ce;function ae(he,ue,Ee){let ve=ue.getCompilerOptions();return ve&&ve.outFile?[Ee]:ce(he,ue,Ee)}function Ce(he,ue,Ee,ve,be){if(_e(Ee))return ce(he,ue,Ee);let Se=ue.getCompilerOptions();if(Se&&(Jh(Se)||Se.outFile))return[Ee];let Re=new Map;Re.set(Ee.resolvedPath,Ee);let ie=$(he,Ee.resolvedPath);for(;ie.length>0;){let ke=ie.pop();if(!Re.has(ke)){let De=ue.getSourceFileByPath(ke);Re.set(ke,De),De&&z(he,ue,De,ve,be)&&ie.push(...$(he,De.resolvedPath))}}return as(bd(Re.values(),ke=>ke))}})(r0||(r0={}));var abe=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(abe||{});function U4(e){return e.program!==void 0}function aNt(e){return B.assert(U4(e)),e}function jx(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),yp(e)&&(t=t|24),e.declarationMap&&(t=t|32),e.emitDeclarationOnly&&(t=t&56),t}function WU(e,t){let r=t&&(nx(t)?t:jx(t)),a=nx(e)?e:jx(e);if(r===a)return 0;if(!r||!a)return a;let u=r^a,f=0;return u&7&&(f=a&7),u&8&&(f=f|a&8),u&48&&(f=f|a&48),f}function cNt(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!K1(e,r=>!t.has(r))}function lNt(e,t){var r,a;let u=r0.create(e,t,!1);u.program=e;let f=e.getCompilerOptions();u.compilerOptions=f;let p=f.outFile;u.semanticDiagnosticsPerFile=new Map,p&&f.composite&&t?.outSignature&&p===t.compilerOptions.outFile&&(u.outSignature=t.outSignature&&u9e(f,t.compilerOptions,t.outSignature)),u.changedFilesSet=new Set,u.latestChangedDtsFile=f.composite?t?.latestChangedDtsFile:void 0,u.checkPending=u.compilerOptions.noCheck?!0:void 0;let y=r0.canReuseOldState(u.referencedMap,t),g=y?t.compilerOptions:void 0,x=y&&!i0e(f,g),k=f.composite&&t?.emitSignatures&&!p&&!r0e(f,t.compilerOptions),T=!0;y?((r=t.changedFilesSet)==null||r.forEach(q=>u.changedFilesSet.add(q)),!p&&((a=t.affectedFilesPendingEmit)!=null&&a.size)&&(u.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),u.seenAffectedFiles=new Set),u.programEmitPending=t.programEmitPending,p&&u.changedFilesSet.size&&(x=!1,T=!1),u.hasErrorsFromOldState=t.hasErrors):u.buildInfoEmitPending=nT(f);let A=u.referencedMap,P=y?t.referencedMap:void 0,R=x&&!f.skipLibCheck==!g.skipLibCheck,W=R&&!f.skipDefaultLibCheck==!g.skipDefaultLibCheck;if(u.fileInfos.forEach((q,G)=>{var $;let te,ne;if(!y||!(te=t.fileInfos.get(G))||te.version!==q.version||te.impliedFormat!==q.impliedFormat||!cNt(ne=A&&A.getValues(G),P&&P.getValues(G))||ne&&K1(ne,_e=>!u.fileInfos.has(_e)&&t.fileInfos.has(_e)))z(G);else{let _e=e.getSourceFileByPath(G),ce=T?($=t.emitDiagnosticsPerFile)==null?void 0:$.get(G):void 0;if(ce&&(u.emitDiagnosticsPerFile??(u.emitDiagnosticsPerFile=new Map)).set(G,t.hasReusableDiagnostic?f9e(ce,G,e):d9e(ce,e)),x){if(_e.isDeclarationFile&&!R||_e.hasNoDefaultLib&&!W)return;let ae=t.semanticDiagnosticsPerFile.get(G);ae&&(u.semanticDiagnosticsPerFile.set(G,t.hasReusableDiagnostic?f9e(ae,G,e):d9e(ae,e)),(u.semanticDiagnosticsFromOldState??(u.semanticDiagnosticsFromOldState=new Set)).add(G))}}if(k){let _e=t.emitSignatures.get(G);_e&&(u.emitSignatures??(u.emitSignatures=new Map)).set(G,u9e(f,t.compilerOptions,_e))}}),y&&Vd(t.fileInfos,(q,G)=>u.fileInfos.has(G)?!1:q.affectsGlobalScope?!0:(u.buildInfoEmitPending=!0,!!p)))r0.getAllFilesExcludingDefaultLibraryFile(u,e,void 0).forEach(q=>z(q.resolvedPath));else if(g){let q=n0e(f,g)?jx(f):WU(f,g);q!==0&&(p?u.changedFilesSet.size||(u.programEmitPending=u.programEmitPending?u.programEmitPending|q:q):(e.getSourceFiles().forEach(G=>{u.changedFilesSet.has(G.resolvedPath)||tne(u,G.resolvedPath,q)}),B.assert(!u.seenAffectedFiles||!u.seenAffectedFiles.size),u.seenAffectedFiles=u.seenAffectedFiles||new Set),u.buildInfoEmitPending=!0)}return y&&u.semanticDiagnosticsPerFile.size!==u.fileInfos.size&&t.checkPending!==u.checkPending&&(u.buildInfoEmitPending=!0),u;function z(q){u.changedFilesSet.add(q),p&&(x=!1,T=!1,u.semanticDiagnosticsFromOldState=void 0,u.semanticDiagnosticsPerFile.clear(),u.emitDiagnosticsPerFile=void 0),u.buildInfoEmitPending=!0,u.programEmitPending=void 0}}function u9e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:fs(r)?[r]:r[0]}function d9e(e,t){return e.length?Uo(e,r=>{if(fs(r.messageText))return r;let a=cbe(r.messageText,r.file,t,u=>{var f;return(f=u.repopulateInfo)==null?void 0:f.call(u)});return a===r.messageText?r:{...r,messageText:a}}):e}function cbe(e,t,r,a){let u=a(e);if(u===!0)return{...WQ(t),next:lbe(e.next,t,r,a)};if(u)return{...Dz(t,r,u.moduleReference,u.mode,u.packageName||u.moduleReference),next:lbe(e.next,t,r,a)};let f=lbe(e.next,t,r,a);return f===e.next?e:{...e,next:f}}function lbe(e,t,r,a){return Uo(e,u=>cbe(u,t,r,a))}function f9e(e,t,r){if(!e.length)return F;let a;return e.map(f=>{let p=_9e(f,t,r,u);p.reportsUnnecessary=f.reportsUnnecessary,p.reportsDeprecated=f.reportDeprecated,p.source=f.source,p.skippedOn=f.skippedOn;let{relatedInformation:y}=f;return p.relatedInformation=y?y.length?y.map(g=>_9e(g,t,r,u)):[]:void 0,p});function u(f){return a??(a=Or(ts(wk(r.getCompilerOptions()),r.getCurrentDirectory()))),Vc(f,a,r.getCanonicalFileName)}}function _9e(e,t,r,a){let{file:u}=e,f=u!==!1?r.getSourceFileByPath(u?a(u):t):void 0;return{...e,file:f,messageText:fs(e.messageText)?e.messageText:cbe(e.messageText,f,r,p=>p.info)}}function uNt(e){r0.releaseCache(e),e.program=void 0}function ube(e,t){B.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function p9e(e,t,r){for(var a;;){let{affectedFiles:u}=e;if(u){let y=e.seenAffectedFiles,g=e.affectedFilesIndex;for(;g{let y=r?f&55:f&7;y?e.affectedFilesPendingEmit.set(p,y):e.affectedFilesPendingEmit.delete(p)}),e.programEmitPending)){let f=r?e.programEmitPending&55:e.programEmitPending&7;f?e.programEmitPending=f:e.programEmitPending=void 0}}function zU(e,t,r,a){let u=WU(e,t);return r&&(u=u&56),a&&(u=u&8),u}function Yie(e){return e?8:56}function dNt(e,t,r){var a;if((a=e.affectedFilesPendingEmit)!=null&&a.size)return Vd(e.affectedFilesPendingEmit,(u,f)=>{var p;let y=e.program.getSourceFileByPath(f);if(!y||!dE(y,e.program)){e.affectedFilesPendingEmit.delete(f);return}let g=(p=e.seenEmittedFiles)==null?void 0:p.get(y.resolvedPath),x=zU(u,g,t,r);if(x)return{affectedFile:y,emitKind:x}})}function fNt(e,t){var r;if((r=e.emitDiagnosticsPerFile)!=null&&r.size)return Vd(e.emitDiagnosticsPerFile,(a,u)=>{var f;let p=e.program.getSourceFileByPath(u);if(!p||!dE(p,e.program)){e.emitDiagnosticsPerFile.delete(u);return}let y=((f=e.seenEmittedFiles)==null?void 0:f.get(p.resolvedPath))||0;if(!(y&Yie(t)))return{affectedFile:p,diagnostics:a,seenKind:y}})}function h9e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=e.program.getCompilerOptions();re(e.program.getSourceFiles(),r=>e.program.isSourceFileDefaultLibrary(r)&&!g0e(r,t,e.program)&&fbe(e,r.resolvedPath))}}function _Nt(e,t,r,a){if(fbe(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){h9e(e),r0.updateShapeSignature(e,e.program,t,r,a);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||pNt(e,t,r,a)}function dbe(e,t,r,a,u){if(fbe(e,t),!e.changedFilesSet.has(t)){let f=e.program.getSourceFileByPath(t);f&&(r0.updateShapeSignature(e,e.program,f,a,u,!0),r?tne(e,t,jx(e.compilerOptions)):yp(e.compilerOptions)&&tne(e,t,e.compilerOptions.declarationMap?56:24))}}function fbe(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function g9e(e,t){let r=B.checkDefined(e.oldSignatures).get(t)||void 0;return B.checkDefined(e.fileInfos.get(t)).signature!==r}function _be(e,t,r,a,u){var f;return(f=e.fileInfos.get(t))!=null&&f.affectsGlobalScope?(r0.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(p=>dbe(e,p.resolvedPath,r,a,u)),h9e(e),!0):!1}function pNt(e,t,r,a){var u,f;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath)||!g9e(e,t.resolvedPath))return;if(Jh(e.compilerOptions)){let g=new Map;g.set(t.resolvedPath,!0);let x=r0.getReferencedByPaths(e,t.resolvedPath);for(;x.length>0;){let k=x.pop();if(!g.has(k)){if(g.set(k,!0),_be(e,k,!1,r,a))return;if(dbe(e,k,!1,r,a),g9e(e,k)){let T=e.program.getSourceFileByPath(k);x.push(...r0.getReferencedByPaths(e,T.resolvedPath))}}}}let p=new Set,y=!!((u=t.symbol)!=null&&u.exports)&&!!Vd(t.symbol.exports,g=>{if(g.flags&128)return!0;let x=hf(g,e.program.getTypeChecker());return x===g?!1:(x.flags&128)!==0&&Lt(x.declarations,k=>en(k)===t)});(f=e.referencedMap.getKeys(t.resolvedPath))==null||f.forEach(g=>{if(_be(e,g,y,r,a))return!0;let x=e.referencedMap.getKeys(g);return x&&K1(x,k=>y9e(e,k,y,p,r,a))})}function y9e(e,t,r,a,u,f){var p;if(_p(a,t)){if(_be(e,t,r,u,f))return!0;dbe(e,t,r,u,f),(p=e.referencedMap.getKeys(t))==null||p.forEach(y=>y9e(e,y,r,a,u,f))}}function Qie(e,t,r,a){return e.compilerOptions.noCheck?F:Fo(mNt(e,t,r,a),e.program.getProgramDiagnostics(t))}function mNt(e,t,r,a){a??(a=e.semanticDiagnosticsPerFile);let u=t.resolvedPath,f=a.get(u);if(f)return BU(f,e.compilerOptions);let p=e.program.getBindAndCheckDiagnostics(t,r);return a.set(u,p),e.buildInfoEmitPending=!0,BU(p,e.compilerOptions)}function pbe(e){var t;return!!((t=e.options)!=null&&t.outFile)}function N5(e){return!!e.fileNames}function hNt(e){return!N5(e)&&!!e.root}function v9e(e){e.hasErrors===void 0&&(nT(e.compilerOptions)?e.hasErrors=!Lt(e.program.getSourceFiles(),t=>{var r,a;let u=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return u===void 0||!!u.length||!!((a=(r=e.emitDiagnosticsPerFile)==null?void 0:r.get(t.resolvedPath))!=null&&a.length)})&&(b9e(e)||Lt(e.program.getSourceFiles(),t=>!!e.program.getProgramDiagnostics(t).length)):e.hasErrors=Lt(e.program.getSourceFiles(),t=>{var r,a;let u=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!u?.length||!!((a=(r=e.emitDiagnosticsPerFile)==null?void 0:r.get(t.resolvedPath))!=null&&a.length)})||b9e(e))}function b9e(e){return!!e.program.getConfigFileParsingDiagnostics().length||!!e.program.getSyntacticDiagnostics().length||!!e.program.getOptionsDiagnostics().length||!!e.program.getGlobalDiagnostics().length}function S9e(e){return v9e(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}function gNt(e){var t,r;let a=e.program.getCurrentDirectory(),u=Or(ts(wk(e.compilerOptions),a)),f=e.latestChangedDtsFile?G(e.latestChangedDtsFile):void 0,p=[],y=new Map,g=new Set(e.program.getRootFileNames().map(ie=>Vc(ie,a,e.program.getCanonicalFileName)));if(v9e(e),!nT(e.compilerOptions))return{root:as(g,ke=>$(ke)),errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:O};let x=[];if(e.compilerOptions.outFile){let ie=as(e.fileInfos.entries(),([De,Oe])=>{let we=te(De);return _e(De,we),Oe.impliedFormat?{version:Oe.version,impliedFormat:Oe.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Oe.version});return{fileNames:p,fileInfos:ie,root:x,resolvedRoot:ce(),options:ae(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:he(),emitDiagnosticsPerFile:ue(),changeFileSet:Re(),outSignature:e.outSignature,latestChangedDtsFile:f,pendingEmit:e.programEmitPending?e.programEmitPending===jx(e.compilerOptions)?!1:e.programEmitPending:void 0,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:O}}let k,T,A,P=as(e.fileInfos.entries(),([ie,ke])=>{var De,Oe;let we=te(ie);_e(ie,we),B.assert(p[we-1]===$(ie));let Ae=(De=e.oldSignatures)==null?void 0:De.get(ie),Fe=Ae!==void 0?Ae||void 0:ke.signature;if(e.compilerOptions.composite){let Tt=e.program.getSourceFileByPath(ie);if(!Wh(Tt)&&dE(Tt,e.program)){let Be=(Oe=e.emitSignatures)==null?void 0:Oe.get(ie);Be!==Fe&&(A=hi(A,Be===void 0?we:[we,!fs(Be)&&Be[0]===Fe?F:Be]))}}return ke.version===Fe?ke.affectsGlobalScope||ke.impliedFormat?{version:ke.version,signature:void 0,affectsGlobalScope:ke.affectsGlobalScope,impliedFormat:ke.impliedFormat}:ke.version:Fe!==void 0?Ae===void 0?ke:{version:ke.version,signature:Fe,affectsGlobalScope:ke.affectsGlobalScope,impliedFormat:ke.impliedFormat}:{version:ke.version,signature:!1,affectsGlobalScope:ke.affectsGlobalScope,impliedFormat:ke.impliedFormat}}),R;(t=e.referencedMap)!=null&&t.size()&&(R=as(e.referencedMap.keys()).sort(Ff).map(ie=>[te(ie),ne(e.referencedMap.getValues(ie))]));let W=he(),z;if((r=e.affectedFilesPendingEmit)!=null&&r.size){let ie=jx(e.compilerOptions),ke=new Set;for(let De of as(e.affectedFilesPendingEmit.keys()).sort(Ff))if(_p(ke,De)){let Oe=e.program.getSourceFileByPath(De);if(!Oe||!dE(Oe,e.program))continue;let we=te(De),Ae=e.affectedFilesPendingEmit.get(De);z=hi(z,Ae===ie?we:Ae===24?[we]:[we,Ae])}}return{fileNames:p,fileIdsList:k,fileInfos:P,root:x,resolvedRoot:ce(),options:ae(e.compilerOptions),referencedMap:R,semanticDiagnosticsPerFile:W,emitDiagnosticsPerFile:ue(),changeFileSet:Re(),affectedFilesPendingEmit:z,emitSignatures:A,latestChangedDtsFile:f,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:O};function G(ie){return $(ts(ie,a))}function $(ie){return G2(Sg(u,ie,e.program.getCanonicalFileName))}function te(ie){let ke=y.get(ie);return ke===void 0&&(p.push($(ie)),y.set(ie,ke=p.length)),ke}function ne(ie){let ke=as(ie.keys(),te).sort(Kc),De=ke.join(),Oe=T?.get(De);return Oe===void 0&&(k=hi(k,ke),(T??(T=new Map)).set(De,Oe=k.length)),Oe}function _e(ie,ke){let De=e.program.getSourceFile(ie);if(!e.program.getFileIncludeReasons().get(De.path).some(Fe=>Fe.kind===0))return;if(!x.length)return x.push(ke);let Oe=x[x.length-1],we=ds(Oe);if(we&&Oe[1]===ke-1)return Oe[1]=ke;if(we||x.length===1||Oe!==ke-1)return x.push(ke);let Ae=x[x.length-2];return!nx(Ae)||Ae!==Oe-1?x.push(ke):(x[x.length-2]=[Ae,ke],x.length=x.length-1)}function ce(){let ie;return g.forEach(ke=>{let De=e.program.getSourceFileByPath(ke);De&&ke!==De.resolvedPath&&(ie=hi(ie,[te(De.resolvedPath),te(ke)]))}),ie}function ae(ie){let ke,{optionsNameMap:De}=A4();for(let Oe of mg(ie).sort(Ff)){let we=De.get(Oe.toLowerCase());we?.affectsBuildInfo&&((ke||(ke={}))[Oe]=Ce(we,ie[Oe]))}return ke}function Ce(ie,ke){if(ie){if(B.assert(ie.type!=="listOrElement"),ie.type==="list"){let De=ke;if(ie.element.isFilePath&&De.length)return De.map(G)}else if(ie.isFilePath)return G(ke)}return ke}function he(){let ie;return e.fileInfos.forEach((ke,De)=>{let Oe=e.semanticDiagnosticsPerFile.get(De);Oe?Oe.length&&(ie=hi(ie,[te(De),Ee(Oe,De)])):e.changedFilesSet.has(De)||(ie=hi(ie,te(De)))}),ie}function ue(){var ie;let ke;if(!((ie=e.emitDiagnosticsPerFile)!=null&&ie.size))return ke;for(let De of as(e.emitDiagnosticsPerFile.keys()).sort(Ff)){let Oe=e.emitDiagnosticsPerFile.get(De);ke=hi(ke,[te(De),Ee(Oe,De)])}return ke}function Ee(ie,ke){return B.assert(!!ie.length),ie.map(De=>{let Oe=ve(De,ke);Oe.reportsUnnecessary=De.reportsUnnecessary,Oe.reportDeprecated=De.reportsDeprecated,Oe.source=De.source,Oe.skippedOn=De.skippedOn;let{relatedInformation:we}=De;return Oe.relatedInformation=we?we.length?we.map(Ae=>ve(Ae,ke)):[]:void 0,Oe})}function ve(ie,ke){let{file:De}=ie;return{...ie,file:De?De.resolvedPath===ke?void 0:$(De.resolvedPath):!1,messageText:fs(ie.messageText)?ie.messageText:be(ie.messageText)}}function be(ie){if(ie.repopulateInfo)return{info:ie.repopulateInfo(),next:Se(ie.next)};let ke=Se(ie.next);return ke===ie.next?ie:{...ie,next:ke}}function Se(ie){return ie&&(re(ie,(ke,De)=>{let Oe=be(ke);if(ke===Oe)return;let we=De>0?ie.slice(0,De-1):[];we.push(Oe);for(let Ae=De+1;Ae(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(mbe||{});function VU(e,t,r,a,u,f){let p,y,g;return e===void 0?(B.assert(t===void 0),p=r,g=a,B.assert(!!g),y=g.getProgram()):ds(e)?(g=a,y=D5({rootNames:e,options:t,host:r,oldProgram:g&&g.getProgramOrUndefined(),configFileParsingDiagnostics:u,projectReferences:f}),p=r):(y=e,p=t,g=r,u=a),{host:p,newProgram:y,oldProgram:g,configFileParsingDiagnostics:u||F}}function x9e(e,t){return t?.sourceMapUrlPos!==void 0?e.substring(0,t.sourceMapUrlPos):e}function Zie(e,t,r,a,u){var f;r=x9e(r,u);let p;return(f=u?.diagnostics)!=null&&f.length&&(r+=u.diagnostics.map(x=>`${g(x)}${qW[x.category]}${x.code}: ${y(x.messageText)}`).join(` +`)),(a.createHash??y3)(r);function y(x){return fs(x)?x:x===void 0?"":x.next?x.messageText+x.next.map(y).join(` +`):x.messageText}function g(x){return x.file.resolvedPath===t.resolvedPath?`(${x.start},${x.length})`:(p===void 0&&(p=Or(t.resolvedPath)),`${G2(Sg(p,x.file.resolvedPath,e.getCanonicalFileName))}(${x.start},${x.length})`)}}function yNt(e,t,r){return(t.createHash??y3)(x9e(e,r))}function ene(e,{newProgram:t,host:r,oldProgram:a,configFileParsingDiagnostics:u}){let f=a&&a.state;if(f&&t===f.program&&u===t.getConfigFileParsingDiagnostics())return t=void 0,f=void 0,a;let p=lNt(t,f);t.getBuildInfo=()=>gNt(aNt(p)),t=void 0,a=void 0,f=void 0;let y=nne(p,u);return y.state=p,y.hasChangedEmitSignature=()=>!!p.hasChangedEmitSignature,y.getAllDependencies=G=>r0.getAllDependencies(p,B.checkDefined(p.program),G),y.getSemanticDiagnostics=q,y.getDeclarationDiagnostics=W,y.emit=P,y.releaseProgram=()=>uNt(p),e===0?y.getSemanticDiagnosticsOfNextAffectedFile=z:e===1?(y.getSemanticDiagnosticsOfNextAffectedFile=z,y.emitNextAffectedFile=T,y.emitBuildInfo=g):la(),y;function g(G,$){if(B.assert(U4(p)),S9e(p)){let te=p.program.emitBuildInfo(G||Ps(r,r.writeFile),$);return p.buildInfoEmitPending=!1,te}return Gie}function x(G,$,te,ne,_e){var ce,ae,Ce,he;B.assert(U4(p));let ue=p9e(p,$,r),Ee=jx(p.compilerOptions),ve=_e?8:te?Ee&56:Ee;if(!ue){if(p.compilerOptions.outFile){if(p.programEmitPending&&(ve=zU(p.programEmitPending,p.seenProgramEmit,te,_e),ve&&(ue=p.program)),!ue&&((ce=p.emitDiagnosticsPerFile)!=null&&ce.size)){let Re=p.seenProgramEmit||0;if(!(Re&Yie(_e))){p.seenProgramEmit=Yie(_e)|Re;let ie=[];return p.emitDiagnosticsPerFile.forEach(ke=>Fn(ie,ke)),{result:{emitSkipped:!0,diagnostics:ie},affected:p.program}}}}else{let Re=dNt(p,te,_e);if(Re)({affectedFile:ue,emitKind:ve}=Re);else{let ie=fNt(p,_e);if(ie)return(p.seenEmittedFiles??(p.seenEmittedFiles=new Map)).set(ie.affectedFile.resolvedPath,ie.seenKind|Yie(_e)),{result:{emitSkipped:!0,diagnostics:ie.diagnostics},affected:ie.affectedFile}}}if(!ue){if(_e||!S9e(p))return;let Re=p.program,ie=Re.emitBuildInfo(G||Ps(r,r.writeFile),$);return p.buildInfoEmitPending=!1,{result:ie,affected:Re}}}let be;ve&7&&(be=0),ve&56&&(be=be===void 0?1:void 0);let Se=_e?{emitSkipped:!0,diagnostics:p.program.getDeclarationDiagnostics(ue===p.program?void 0:ue,$)}:p.program.emit(ue===p.program?void 0:ue,A(G,ne),$,be,ne,void 0,!0);if(ue!==p.program){let Re=ue;p.seenAffectedFiles.add(Re.resolvedPath),p.affectedFilesIndex!==void 0&&p.affectedFilesIndex++,p.buildInfoEmitPending=!0;let ie=((ae=p.seenEmittedFiles)==null?void 0:ae.get(Re.resolvedPath))||0;(p.seenEmittedFiles??(p.seenEmittedFiles=new Map)).set(Re.resolvedPath,ve|ie);let ke=((Ce=p.affectedFilesPendingEmit)==null?void 0:Ce.get(Re.resolvedPath))||Ee,De=WU(ke,ve|ie);De?(p.affectedFilesPendingEmit??(p.affectedFilesPendingEmit=new Map)).set(Re.resolvedPath,De):(he=p.affectedFilesPendingEmit)==null||he.delete(Re.resolvedPath),Se.diagnostics.length&&(p.emitDiagnosticsPerFile??(p.emitDiagnosticsPerFile=new Map)).set(Re.resolvedPath,Se.diagnostics)}else p.changedFilesSet.clear(),p.programEmitPending=p.changedFilesSet.size?WU(Ee,ve):p.programEmitPending?WU(p.programEmitPending,ve):void 0,p.seenProgramEmit=ve|(p.seenProgramEmit||0),k(Se.diagnostics),p.buildInfoEmitPending=!0;return{result:Se,affected:ue}}function k(G){let $;G.forEach(te=>{if(!te.file)return;let ne=$?.get(te.file.resolvedPath);ne||($??($=new Map)).set(te.file.resolvedPath,ne=[]),ne.push(te)}),$&&(p.emitDiagnosticsPerFile=$)}function T(G,$,te,ne){return x(G,$,te,ne,!1)}function A(G,$){return B.assert(U4(p)),yp(p.compilerOptions)?(te,ne,_e,ce,ae,Ce)=>{var he,ue,Ee;if(Jd(te))if(p.compilerOptions.outFile){if(p.compilerOptions.composite){let be=ve(p.outSignature,void 0);if(!be)return Ce.skippedDtsWrite=!0;p.outSignature=be}}else{B.assert(ae?.length===1);let be;if(!$){let Se=ae[0],Re=p.fileInfos.get(Se.resolvedPath);if(Re.signature===Se.version){let ie=Zie(p.program,Se,ne,r,Ce);(he=Ce?.diagnostics)!=null&&he.length||(be=ie),ie!==Se.version&&(r.storeSignatureInfo&&(p.signatureInfo??(p.signatureInfo=new Map)).set(Se.resolvedPath,1),p.affectedFiles&&((ue=p.oldSignatures)==null?void 0:ue.get(Se.resolvedPath))===void 0&&(p.oldSignatures??(p.oldSignatures=new Map)).set(Se.resolvedPath,Re.signature||!1),Re.signature=ie)}}if(p.compilerOptions.composite){let Se=ae[0].resolvedPath;if(be=ve((Ee=p.emitSignatures)==null?void 0:Ee.get(Se),be),!be)return Ce.skippedDtsWrite=!0;(p.emitSignatures??(p.emitSignatures=new Map)).set(Se,be)}}G?G(te,ne,_e,ce,ae,Ce):r.writeFile?r.writeFile(te,ne,_e,ce,ae,Ce):p.program.writeFile(te,ne,_e,ce,ae,Ce);function ve(be,Se){let Re=!be||fs(be)?be:be[0];if(Se??(Se=yNt(ne,r,Ce)),Se===Re){if(be===Re)return;Ce?Ce.differsOnlyInMap=!0:Ce={differsOnlyInMap:!0}}else p.hasChangedEmitSignature=!0,p.latestChangedDtsFile=te;return Se}}:G||Ps(r,r.writeFile)}function P(G,$,te,ne,_e){B.assert(U4(p)),e===1&&ube(p,G);let ce=Kie(y,G,$,te);if(ce)return ce;if(!G)if(e===1){let Ce=[],he=!1,ue,Ee=[],ve;for(;ve=T($,te,ne,_e);)he=he||ve.result.emitSkipped,ue=Fn(ue,ve.result.diagnostics),Ee=Fn(Ee,ve.result.emittedFiles),Ce=Fn(Ce,ve.result.sourceMaps);return{emitSkipped:he,diagnostics:ue||F,emittedFiles:Ee,sourceMaps:Ce}}else m9e(p,ne,!1);let ae=p.program.emit(G,A($,_e),te,ne,_e);return R(G,ne,!1,ae.diagnostics),ae}function R(G,$,te,ne){!G&&e!==1&&(m9e(p,$,te),k(ne))}function W(G,$){var te;if(B.assert(U4(p)),e===1){ube(p,G);let ne,_e;for(;ne=x(void 0,$,void 0,void 0,!0);)G||(_e=Fn(_e,ne.result.diagnostics));return(G?(te=p.emitDiagnosticsPerFile)==null?void 0:te.get(G.resolvedPath):_e)||F}else{let ne=p.program.getDeclarationDiagnostics(G,$);return R(G,void 0,!0,ne),ne}}function z(G,$){for(B.assert(U4(p));;){let te=p9e(p,G,r),ne;if(te)if(te!==p.program){let _e=te;if((!$||!$(_e))&&(ne=Qie(p,_e,G)),p.seenAffectedFiles.add(_e.resolvedPath),p.affectedFilesIndex++,p.buildInfoEmitPending=!0,!ne)continue}else{let _e,ce=new Map;p.program.getSourceFiles().forEach(ae=>_e=Fn(_e,Qie(p,ae,G,ce))),p.semanticDiagnosticsPerFile=ce,ne=_e||F,p.changedFilesSet.clear(),p.programEmitPending=jx(p.compilerOptions),p.compilerOptions.noCheck||(p.checkPending=void 0),p.buildInfoEmitPending=!0}else{p.checkPending&&!p.compilerOptions.noCheck&&(p.checkPending=void 0,p.buildInfoEmitPending=!0);return}return{result:ne,affected:te}}}function q(G,$){if(B.assert(U4(p)),ube(p,G),G)return Qie(p,G,$);for(;;){let ne=z($);if(!ne)break;if(ne.affected===p.program)return ne.result}let te;for(let ne of p.program.getSourceFiles())te=Fn(te,Qie(p,ne,$));return p.checkPending&&!p.compilerOptions.noCheck&&(p.checkPending=void 0,p.buildInfoEmitPending=!0),te||F}}function tne(e,t,r){var a,u;let f=((a=e.affectedFilesPendingEmit)==null?void 0:a.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,f|r),(u=e.emitDiagnosticsPerFile)==null||u.delete(t)}function hbe(e){return fs(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:fs(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function gbe(e,t){return nx(e)?t:e[1]||24}function ybe(e,t){return e||jx(t||{})}function vbe(e,t,r){var a,u,f,p;let y=Or(ts(t,r.getCurrentDirectory())),g=df(r.useCaseSensitiveFileNames()),x,k=(a=e.fileNames)==null?void 0:a.map(W),T,A=e.latestChangedDtsFile?z(e.latestChangedDtsFile):void 0,P=new Map,R=new Set(_i(e.changeFileSet,q));if(pbe(e))e.fileInfos.forEach((_e,ce)=>{let ae=q(ce+1);P.set(ae,fs(_e)?{version:_e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:_e)}),x={fileInfos:P,compilerOptions:e.options?KH(e.options,z):{},semanticDiagnosticsPerFile:te(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:ne(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:R,latestChangedDtsFile:A,outSignature:e.outSignature,programEmitPending:e.pendingEmit===void 0?void 0:ybe(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{T=(u=e.fileIdsList)==null?void 0:u.map(ae=>new Set(ae.map(q)));let _e=(f=e.options)!=null&&f.composite&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach((ae,Ce)=>{let he=q(Ce+1),ue=hbe(ae);P.set(he,ue),_e&&ue.signature&&_e.set(he,ue.signature)}),(p=e.emitSignatures)==null||p.forEach(ae=>{if(nx(ae))_e.delete(q(ae));else{let Ce=q(ae[0]);_e.set(Ce,!fs(ae[1])&&!ae[1].length?[_e.get(Ce)]:ae[1])}});let ce=e.affectedFilesPendingEmit?jx(e.options||{}):void 0;x={fileInfos:P,compilerOptions:e.options?KH(e.options,z):{},referencedMap:$(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:te(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:ne(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:R,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&gd(e.affectedFilesPendingEmit,ae=>q(nx(ae)?ae:ae[0]),ae=>gbe(ae,ce)),latestChangedDtsFile:A,emitSignatures:_e?.size?_e:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:x,getProgram:la,getProgramOrUndefined:Fw,releaseProgram:dc,getCompilerOptions:()=>x.compilerOptions,getSourceFile:la,getSourceFiles:la,getOptionsDiagnostics:la,getGlobalDiagnostics:la,getConfigFileParsingDiagnostics:la,getSyntacticDiagnostics:la,getDeclarationDiagnostics:la,getSemanticDiagnostics:la,emit:la,getAllDependencies:la,getCurrentDirectory:la,emitNextAffectedFile:la,getSemanticDiagnosticsOfNextAffectedFile:la,emitBuildInfo:la,close:dc,hasChangedEmitSignature:R0};function W(_e){return Vc(_e,y,g)}function z(_e){return ts(_e,y)}function q(_e){return k[_e-1]}function G(_e){return T[_e-1]}function $(_e,ce){let ae=r0.createReferencedMap(ce);return!ae||!_e||_e.forEach(([Ce,he])=>ae.set(q(Ce),G(he))),ae}function te(_e){let ce=new Map(bd(P.keys(),ae=>R.has(ae)?void 0:[ae,F]));return _e?.forEach(ae=>{nx(ae)?ce.delete(q(ae)):ce.set(q(ae[0]),ae[1])}),ce}function ne(_e){return _e&&gd(_e,ce=>q(ce[0]),ce=>ce[1])}}function ine(e,t,r){let a=Or(ts(t,r.getCurrentDirectory())),u=df(r.useCaseSensitiveFileNames()),f=new Map,p=0,y=new Map,g=new Map(e.resolvedRoot);return e.fileInfos.forEach((k,T)=>{let A=Vc(e.fileNames[T],a,u),P=fs(k)?k:k.version;if(f.set(A,P),pVc(f,a,u))}function nne(e,t){return{state:void 0,getProgram:r,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:a=>r().getSourceFile(a),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:a=>r().getOptionsDiagnostics(a),getGlobalDiagnostics:a=>r().getGlobalDiagnostics(a),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(a,u)=>r().getSyntacticDiagnostics(a,u),getDeclarationDiagnostics:(a,u)=>r().getDeclarationDiagnostics(a,u),getSemanticDiagnostics:(a,u)=>r().getSemanticDiagnostics(a,u),emit:(a,u,f,p,y)=>r().emit(a,u,f,p,y),emitBuildInfo:(a,u)=>r().emitBuildInfo(a,u),getAllDependencies:la,getCurrentDirectory:()=>r().getCurrentDirectory(),close:dc};function r(){return B.checkDefined(e.program)}}function C9e(e,t,r,a,u,f){return ene(0,VU(e,t,r,a,u,f))}function rne(e,t,r,a,u,f){return ene(1,VU(e,t,r,a,u,f))}function k9e(e,t,r,a,u,f){let{newProgram:p,configFileParsingDiagnostics:y}=VU(e,t,r,a,u,f);return nne({program:p,compilerOptions:p.getCompilerOptions()},y)}function HU(e){return Wl(e,"/node_modules/.staging")?EP(e,"/.staging"):Lt(KW,t=>e.includes(t))?void 0:e}function Sbe(e,t){if(t<=1)return 1;let r=1,a=e[0].search(/[a-z]:/i)===0;if(e[0]!==wl&&!a&&e[1].search(/[a-z]\$$/i)===0){if(t===2)return 2;r=2,a=!0}return a&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function UU(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let r=Sbe(e,t);return t>r+1}function xbe(e){return T9e(Or(e))}function w9e(e,t){if(t.lengthu.length+1?kbe(g,y,Math.max(u.length+1,x+1),T):{dir:r,dirPath:a,nonRecursive:!0}:E9e(g,y,y.length-1,x,k,u,T,p)}function E9e(e,t,r,a,u,f,p,y){if(u!==-1)return kbe(e,t,u+1,p);let g=!0,x=r;if(!y){for(let k=0;k=r&&a+2vNt(a,u,f,e,r,t,p)}}function vNt(e,t,r,a,u,f,p){let y=JU(e),g=jN(r,a,u,y,t,f,p);if(!e.getGlobalCache)return g;let x=e.getGlobalCache();if(x!==void 0&&!Od(r)&&!(g.resolvedModule&&XV(g.resolvedModule.extension))){let{resolvedModule:k,failedLookupLocations:T,affectingLocations:A,resolutionDiagnostics:P}=Wve(B.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,u,y,x,t);if(k)return g.resolvedModule=k,g.failedLookupLocations=P4(g.failedLookupLocations,T),g.affectingLocations=P4(g.affectingLocations,A),g.resolutionDiagnostics=P4(g.resolutionDiagnostics,P),g}return g}function sne(e,t,r){let a,u,f,p=new Set,y=new Set,g=new Set,x=new Map,k=new Map,T=!1,A,P,R,W,z,q=!1,G=l_(()=>e.getCurrentDirectory()),$=e.getCachedDirectoryStructureHost(),te=new Map,ne=O4(G(),e.getCanonicalFileName,e.getCompilationSettings()),_e=new Map,ce=rU(G(),e.getCanonicalFileName,e.getCompilationSettings(),ne.getPackageJsonInfoCache(),ne.optionsToRedirectsKey),ae=new Map,Ce=O4(G(),e.getCanonicalFileName,Wte(e.getCompilationSettings()),ne.getPackageJsonInfoCache()),he=new Map,ue=new Map,Ee=Tbe(t,G),ve=e.toPath(Ee),be=zd(ve),Se=new Map,Re=new Map,ie=new Map,ke=new Map;return{rootDirForResolution:t,resolvedModuleNames:te,resolvedTypeReferenceDirectives:_e,resolvedLibraries:ae,resolvedFileToResolution:x,resolutionsWithFailedLookups:y,resolutionsWithOnlyAffectingLocations:g,directoryWatchesOfFailedLookups:he,fileWatchesOfAffectingLocations:ue,packageDirWatchers:Re,dirPathToSymlinkPackageRefCount:ie,watchFailedLookupLocationsOfExternalModuleResolutions:ni,getModuleResolutionCache:()=>ne,startRecordingFilesWithChangedResolutions:we,finishRecordingFilesWithChangedResolutions:Ae,startCachingPerDirectoryResolution:Be,finishCachingPerDirectoryResolution:Ke,resolveModuleNameLiterals:ci,resolveTypeReferenceDirectiveReferences:At,resolveLibrary:Fi,resolveSingleModuleNameWithoutWatching:bn,removeResolutionsFromProjectReferenceRedirects:Jr,removeResolutionsOfFile:Dr,hasChangedAutomaticTypeDirectiveNames:()=>T,invalidateResolutionOfFile:na,invalidateResolutionsOfFailedLookupLocations:ht,setFilesWithInvalidatedNonRelativeUnresolvedImports:aa,createHasInvalidatedResolutions:Tt,isFileWithInvalidatedNonRelativeUnresolvedImports:Fe,updateTypeRootsWatch:ut,closeTypeRootsWatch:ge,clear:De,onChangesAffectModuleResolution:Oe};function De(){gp(he,mh),gp(ue,mh),Se.clear(),Re.clear(),ie.clear(),p.clear(),ge(),te.clear(),_e.clear(),x.clear(),y.clear(),g.clear(),R=void 0,W=void 0,z=void 0,P=void 0,A=void 0,q=!1,ne.clear(),ce.clear(),ne.update(e.getCompilationSettings()),ce.update(e.getCompilationSettings()),Ce.clear(),k.clear(),ae.clear(),T=!1}function Oe(){q=!0,ne.clearAllExceptPackageJsonInfoCache(),ce.clearAllExceptPackageJsonInfoCache(),ne.update(e.getCompilationSettings()),ce.update(e.getCompilationSettings())}function we(){a=[]}function Ae(){let je=a;return a=void 0,je}function Fe(je){if(!f)return!1;let It=f.get(je);return!!It&&!!It.length}function Tt(je,It){ht();let mt=u;return u=void 0,{hasInvalidatedResolutions:$t=>je($t)||q||!!mt?.has($t)||Fe($t),hasInvalidatedLibResolutions:$t=>{var _t;return It($t)||!!((_t=ae?.get($t))!=null&&_t.isInvalidated)}}}function Be(){ne.isReadonly=void 0,ce.isReadonly=void 0,Ce.isReadonly=void 0,ne.getPackageJsonInfoCache().isReadonly=void 0,ne.clearAllExceptPackageJsonInfoCache(),ce.clearAllExceptPackageJsonInfoCache(),Ce.clearAllExceptPackageJsonInfoCache(),is(),Se.clear()}function Ge(je){ae.forEach((It,mt)=>{var $t;($t=je?.resolvedLibReferences)!=null&&$t.has(mt)||(it(It,e.toPath(FU(e.getCompilationSettings(),G(),mt)),zI),ae.delete(mt))})}function Ke(je,It){f=void 0,q=!1,is(),je!==It&&(Ge(je),je?.getSourceFiles().forEach(mt=>{var $t;let _t=(($t=mt.packageJsonLocations)==null?void 0:$t.length)??0,yi=k.get(mt.resolvedPath)??F;for(let Ii=yi.length;Ii<_t;Ii++)Br(mt.packageJsonLocations[Ii],!1);if(yi.length>_t)for(let Ii=_t;Ii{let _t=je?.getSourceFileByPath($t);(!_t||_t.resolvedPath!==$t)&&(mt.forEach(yi=>ue.get(yi).files--),k.delete($t))})),he.forEach(gt),ue.forEach(xt),Re.forEach(Ue),T=!1,ne.isReadonly=!0,ce.isReadonly=!0,Ce.isReadonly=!0,ne.getPackageJsonInfoCache().isReadonly=!0,Se.clear()}function Ue(je,It){je.dirPathToWatcher.size===0&&Re.delete(It)}function gt(je,It){je.refCount===0&&(he.delete(It),je.watcher.close())}function xt(je,It){var mt;je.files===0&&je.resolutions===0&&!((mt=je.symlinks)!=null&&mt.size)&&(ue.delete(It),je.watcher.close())}function nt({entries:je,containingFile:It,containingSourceFile:mt,redirectedReference:$t,options:_t,perFileCache:yi,reusedNames:Ii,loader:nr,getResolutionWithResolvedFileName:Y,deferWatchingNonRelativeResolution:$e,shouldRetryResolution:Bt,logChanges:se}){let rt=e.toPath(It),fe=yi.get(rt)||yi.set(rt,L4()).get(rt),Wt=[],tt=se&&Fe(rt),Qe=e.getCurrentProgram(),ei=Qe&&Qe.getResolvedProjectReferenceToRedirect(It),In=ei?!$t||$t.sourceFile.path!==ei.sourceFile.path:!!$t,Ji=L4();for(let Dt of je){let Nt=nr.nameAndMode.getName(Dt),ti=nr.nameAndMode.getMode(Dt,mt,$t?.commandLine.options||_t),li=fe.get(Nt,ti);if(!Ji.has(Nt,ti)&&(q||In||!li||li.isInvalidated||tt&&!Od(Nt)&&Bt(li))){let wi=li;li=nr.resolve(Nt,ti),e.onDiscoveredSymlink&&bNt(li)&&e.onDiscoveredSymlink(),fe.set(Nt,ti,li),li!==wi&&(ni(Nt,li,rt,Y,$e),wi&&it(wi,rt,Y)),se&&a&&!_n(wi,li)&&(a.push(rt),se=!1)}else{let wi=JU(e);if(Ox(_t,wi)&&!Ji.has(Nt,ti)){let Si=Y(li);Qo(wi,yi===te?Si?.resolvedFileName?Si.packageId?S.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:S.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:S.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Si?.resolvedFileName?Si.packageId?S.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:S.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:S.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Nt,It,Si?.resolvedFileName,Si?.packageId&&tk(Si.packageId))}}B.assert(li!==void 0&&!li.isInvalidated),Ji.set(Nt,ti,!0),Wt.push(li)}return Ii?.forEach(Dt=>Ji.set(nr.nameAndMode.getName(Dt),nr.nameAndMode.getMode(Dt,mt,$t?.commandLine.options||_t),!0)),fe.size()!==Ji.size()&&fe.forEach((Dt,Nt,ti)=>{Ji.has(Nt,ti)||(it(Dt,rt,Y),fe.delete(Nt,ti))}),Wt;function _n(Dt,Nt){if(Dt===Nt)return!0;if(!Dt||!Nt)return!1;let ti=Y(Dt),li=Y(Nt);return ti===li?!0:!ti||!li?!1:ti.resolvedFileName===li.resolvedFileName}}function At(je,It,mt,$t,_t,yi){return nt({entries:je,containingFile:It,containingSourceFile:_t,redirectedReference:mt,options:$t,reusedNames:yi,perFileCache:_e,loader:LU(It,mt,$t,JU(e),ce),getResolutionWithResolvedFileName:Ez,shouldRetryResolution:Ii=>Ii.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function ci(je,It,mt,$t,_t,yi){return nt({entries:je,containingFile:It,containingSourceFile:_t,redirectedReference:mt,options:$t,reusedNames:yi,perFileCache:te,loader:Ebe(It,mt,$t,e,ne),getResolutionWithResolvedFileName:zI,shouldRetryResolution:Ii=>!Ii.resolvedModule||!hO(Ii.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function Fi(je,It,mt,$t){let _t=JU(e),yi=ae?.get($t);if(!yi||yi.isInvalidated){let Ii=yi;yi=oU(je,It,mt,_t,Ce);let nr=e.toPath(It);ni(je,yi,nr,zI,!1),ae.set($t,yi),Ii&&it(Ii,nr,zI)}else if(Ox(mt,_t)){let Ii=zI(yi);Qo(_t,Ii?.resolvedFileName?Ii.packageId?S.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:S.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:S.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,je,It,Ii?.resolvedFileName,Ii?.packageId&&tk(Ii.packageId))}return yi}function bn(je,It){var mt,$t;let _t=e.toPath(It),yi=te.get(_t),Ii=yi?.get(je,void 0);if(Ii&&!Ii.isInvalidated)return Ii;let nr=(mt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:mt.call(e,ne),Y=JU(e),$e=jN(je,It,e.getCompilationSettings(),Y,ne);return($t=e.afterResolveSingleModuleNameWithoutWatching)==null||$t.call(e,ne,je,It,$e,nr),$e}function an(je){return Wl(je,"/node_modules/@types")}function ni(je,It,mt,$t,_t){if((It.files??(It.files=new Set)).add(mt),It.files.size!==1)return;!_t||Od(je)?Sn(It):p.add(It);let yi=$t(It);if(yi&&yi.resolvedFileName){let Ii=e.toPath(yi.resolvedFileName),nr=x.get(Ii);nr||x.set(Ii,nr=new Set),nr.add(It)}}function Ci(je,It){let mt=e.toPath(je),$t=one(je,mt,Ee,ve,be,G,e.preferNonRecursiveWatch);if($t){let{dir:_t,dirPath:yi,nonRecursive:Ii,packageDir:nr,packageDirPath:Y}=$t;yi===ve?(B.assert(Ii),B.assert(!nr),It=!0):Rr(_t,yi,nr,Y,Ii)}return It}function Sn(je){var It;B.assert(!!((It=je.files)!=null&&It.size));let{failedLookupLocations:mt,affectingLocations:$t,alternateResult:_t}=je;if(!mt?.length&&!$t?.length&&!_t)return;(mt?.length||_t)&&y.add(je);let yi=!1;if(mt)for(let Ii of mt)yi=Ci(Ii,yi);_t&&(yi=Ci(_t,yi)),yi&&Rr(Ee,ve,void 0,void 0,!0),nn(je,!mt?.length&&!_t)}function nn(je,It){var mt;B.assert(!!((mt=je.files)!=null&&mt.size));let{affectingLocations:$t}=je;if($t?.length){It&&g.add(je);for(let _t of $t)Br(_t,!0)}}function Br(je,It){let mt=ue.get(je);if(mt){It?mt.resolutions++:mt.files++;return}let $t=je,_t=!1,yi;e.realpath&&($t=e.realpath(je),je!==$t&&(_t=!0,yi=ue.get($t)));let Ii=It?1:0,nr=It?0:1;if(!_t||!yi){let Y={watcher:Cbe(e.toPath($t))?e.watchAffectingFileLocation($t,($e,Bt)=>{$?.addOrDeleteFile($e,e.toPath($t),Bt),Gr($t,ne.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):h8,resolutions:_t?0:Ii,files:_t?0:nr,symlinks:void 0};ue.set($t,Y),_t&&(yi=Y)}if(_t){B.assert(!!yi);let Y={watcher:{close:()=>{var $e;let Bt=ue.get($t);($e=Bt?.symlinks)!=null&&$e.delete(je)&&!Bt.symlinks.size&&!Bt.resolutions&&!Bt.files&&(ue.delete($t),Bt.watcher.close())}},resolutions:Ii,files:nr,symlinks:void 0};ue.set(je,Y),(yi.symlinks??(yi.symlinks=new Set)).add(je)}}function Gr(je,It){var mt;let $t=ue.get(je);$t?.resolutions&&(P??(P=new Set)).add(je),$t?.files&&(A??(A=new Set)).add(je),(mt=$t?.symlinks)==null||mt.forEach(_t=>Gr(_t,It)),It?.delete(e.toPath(je))}function is(){p.forEach(Sn),p.clear()}function Ao(je,It,mt,$t,_t){B.assert(!_t);let yi=Se.get($t),Ii=Re.get($t);if(yi===void 0){let $e=e.realpath(mt);yi=$e!==mt&&e.toPath($e)!==$t,Se.set($t,yi),Ii?Ii.isSymlink!==yi&&(Ii.dirPathToWatcher.forEach(Bt=>{si(Ii.isSymlink?$t:It),Bt.watcher=Y()}),Ii.isSymlink=yi):Re.set($t,Ii={dirPathToWatcher:new Map,isSymlink:yi})}else B.assertIsDefined(Ii),B.assert(yi===Ii.isSymlink);let nr=Ii.dirPathToWatcher.get(It);nr?nr.refCount++:(Ii.dirPathToWatcher.set(It,{watcher:Y(),refCount:1}),yi&&ie.set(It,(ie.get(It)??0)+1));function Y(){return yi?xn(mt,$t,_t):xn(je,It,_t)}}function Rr(je,It,mt,$t,_t){!$t||!e.realpath?xn(je,It,_t):Ao(je,It,mt,$t,_t)}function xn(je,It,mt){let $t=he.get(It);return $t?(B.assert(!!mt==!!$t.nonRecursive),$t.refCount++):he.set(It,$t={watcher:dn(je,It,mt),refCount:1,nonRecursive:mt}),$t}function Eo(je,It){let mt=e.toPath(je),$t=one(je,mt,Ee,ve,be,G,e.preferNonRecursiveWatch);if($t){let{dirPath:_t,packageDirPath:yi}=$t;if(_t===ve)It=!0;else if(yi&&e.realpath){let Ii=Re.get(yi),nr=Ii.dirPathToWatcher.get(_t);if(nr.refCount--,nr.refCount===0&&(si(Ii.isSymlink?yi:_t),Ii.dirPathToWatcher.delete(_t),Ii.isSymlink)){let Y=ie.get(_t)-1;Y===0?ie.delete(_t):ie.set(_t,Y)}}else si(_t)}return It}function it(je,It,mt){if(B.checkDefined(je.files).delete(It),je.files.size)return;je.files=void 0;let $t=mt(je);if($t&&$t.resolvedFileName){let nr=e.toPath($t.resolvedFileName),Y=x.get(nr);Y?.delete(je)&&!Y.size&&x.delete(nr)}let{failedLookupLocations:_t,affectingLocations:yi,alternateResult:Ii}=je;if(y.delete(je)){let nr=!1;if(_t)for(let Y of _t)nr=Eo(Y,nr);Ii&&(nr=Eo(Ii,nr)),nr&&si(ve)}else yi?.length&&g.delete(je);if(yi)for(let nr of yi){let Y=ue.get(nr);Y.resolutions--}}function si(je){let It=he.get(je);It.refCount--}function dn(je,It,mt){return e.watchDirectoryOfFailedLookupLocation(je,$t=>{let _t=e.toPath($t);$&&$.addOrDeleteFileOrDirectory($t,_t),Ai(_t,It===_t)},mt?0:1)}function Qn(je,It,mt){let $t=je.get(It);$t&&($t.forEach(_t=>it(_t,It,mt)),je.delete(It))}function Jr(je){if(!Tl(je,".json"))return;let It=e.getCurrentProgram();if(!It)return;let mt=It.getResolvedProjectReferenceByPath(je);mt&&mt.commandLine.fileNames.forEach($t=>Dr(e.toPath($t)))}function Dr(je){Qn(te,je,zI),Qn(_e,je,Ez)}function Do(je,It){if(!je)return!1;let mt=!1;return je.forEach($t=>{if(!($t.isInvalidated||!It($t))){$t.isInvalidated=mt=!0;for(let _t of B.checkDefined($t.files))(u??(u=new Set)).add(_t),T=T||Wl(_t,_8)}}),mt}function na(je){Dr(je);let It=T;Do(x.get(je),UC)&&T&&!It&&e.onChangedAutomaticTypeDirectiveNames()}function aa(je){B.assert(f===je||f===void 0),f=je}function Ai(je,It){if(It)(z||(z=new Set)).add(je);else{let mt=HU(je);if(!mt||(je=mt,e.fileIsOpen(je)))return!1;let $t=Or(je);if(an(je)||ZW(je)||an($t)||ZW($t))(R||(R=new Set)).add(je),(W||(W=new Set)).add(je);else{if(K1e(e.getCurrentProgram(),je)||Tl(je,".map"))return!1;(R||(R=new Set)).add(je);let _t=l5(je,!0);_t&&(W||(W=new Set)).add(_t)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ha(){let je=ne.getPackageJsonInfoCache().getInternalMap();je&&(R||W||z)&&je.forEach((It,mt)=>ye(mt)?je.delete(mt):void 0)}function ht(){var je;if(q)return A=void 0,Ha(),(R||W||z||P)&&Do(ae,Jt),R=void 0,W=void 0,z=void 0,P=void 0,!0;let It=!1;return A&&((je=e.getCurrentProgram())==null||je.getSourceFiles().forEach(mt=>{Lt(mt.packageJsonLocations,$t=>A.has($t))&&((u??(u=new Set)).add(mt.path),It=!0)}),A=void 0),!R&&!W&&!z&&!P||(It=Do(y,Jt)||It,Ha(),R=void 0,W=void 0,z=void 0,It=Do(g,ct)||It,P=void 0),It}function Jt(je){var It;return ct(je)?!0:!R&&!W&&!z?!1:((It=je.failedLookupLocations)==null?void 0:It.some(mt=>ye(e.toPath(mt))))||!!je.alternateResult&&ye(e.toPath(je.alternateResult))}function ye(je){return R?.has(je)||Je(W?.keys()||[],It=>Ro(je,It)?!0:void 0)||Je(z?.keys()||[],It=>je.length>It.length&&Ro(je,It)&&(iQ(It)||je[It.length]===wl)?!0:void 0)}function ct(je){var It;return!!P&&((It=je.affectingLocations)==null?void 0:It.some(mt=>P.has(mt)))}function ge(){gp(ke,kg)}function He(je){return bt(je)?e.watchTypeRootsDirectory(je,It=>{let mt=e.toPath(It);$&&$.addOrDeleteFileOrDirectory(It,mt),T=!0,e.onChangedAutomaticTypeDirectiveNames();let $t=wbe(je,e.toPath(je),ve,be,G,e.preferNonRecursiveWatch,_t=>he.has(_t)||ie.has(_t));$t&&Ai(mt,$t===mt)},1):h8}function ut(){let je=e.getCompilationSettings();if(je.types){ge();return}let It=QO(je,{getCurrentDirectory:G});It?fO(ke,new Set(It),{createNewValue:He,onDeleteValue:kg}):ge()}function bt(je){return e.getCompilationSettings().typeRoots?!0:xbe(e.toPath(je))}}function bNt(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var D9e=Sd?{getCurrentDirectory:()=>Sd.getCurrentDirectory(),getNewLine:()=>Sd.newLine,getCanonicalFileName:df(Sd.useCaseSensitiveFileNames)}:void 0;function HN(e,t){let r=e===Sd&&D9e?D9e:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:df(e.useCaseSensitiveFileNames)};if(!t)return u=>e.write(jie(u,r));let a=new Array(1);return u=>{a[0]=u,e.write(ibe(a,r)+r.getNewLine()),a[0]=void 0}}function I9e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&sn(N9e,t.code)?(e.clearScreen(),!0):!1}var N9e=[S.Starting_compilation_in_watch_mode.code,S.File_change_detected_Starting_incremental_compilation.code];function SNt(e,t){return sn(N9e,e.code)?t+t:t}function A5(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function ane(e,t){return t?(r,a,u)=>{I9e(e,r,u);let f=`[${ST(A5(e),"\x1B[90m")}] `;f+=`${ay(r.messageText,e.newLine)}${a+a}`,e.write(f)}:(r,a,u)=>{let f="";I9e(e,r,u)||(f+=a),f+=`${A5(e)} - `,f+=`${ay(r.messageText,e.newLine)}${SNt(r,a)}`,e.write(f)}}function Dbe(e,t,r,a,u,f){let p=u;p.onUnRecoverableConfigFileDiagnostic=g=>L9e(u,f,g);let y=n5(e,t,p,r,a);return p.onUnRecoverableConfigFileDiagnostic=void 0,y}function qU(e){return er(e,t=>t.category===1)}function $U(e){return Di(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;let a=St(e,u=>u.file!==void 0&&u.file.fileName===r);if(a!==void 0){let{line:u}=ma(a.file,a.start);return{fileName:r,line:u+1}}})}function cne(e){return e===1?S.Found_1_error_Watching_for_file_changes:S.Found_0_errors_Watching_for_file_changes}function A9e(e,t){let r=ST(":"+e.line,"\x1B[90m");return v3(e.fileName)&&v3(t)?Sg(t,e.fileName,!1)+r:e.fileName+r}function lne(e,t,r,a){if(e===0)return"";let u=t.filter(k=>k!==void 0),f=u.map(k=>`${k.fileName}:${k.line}`).filter((k,T,A)=>A.indexOf(k)===T),p=u[0]&&A9e(u[0],a.getCurrentDirectory()),y;e===1?y=t[0]!==void 0?[S.Found_1_error_in_0,p]:[S.Found_1_error]:y=f.length===0?[S.Found_0_errors,e]:f.length===1?[S.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,p]:[S.Found_0_errors_in_1_files,e,f.length];let g=Dl(...y),x=f.length>1?xNt(u,a):"";return`${r}${ay(g.messageText,r)}${r}${r}${x}`}function xNt(e,t){let r=e.filter((T,A,P)=>A===P.findIndex(R=>R?.fileName===T?.fileName));if(r.length===0)return"";let a=T=>Math.log(T)*Math.LOG10E+1,u=r.map(T=>[T,er(e,A=>A.fileName===T.fileName)]),f=CY(u,0,T=>T[1]),p=S.Errors_Files.message,y=p.split(" ")[0].length,g=Math.max(y,a(f)),x=Math.max(a(f)-y,0),k="";return k+=" ".repeat(x)+p+` +`,u.forEach(T=>{let[A,P]=T,R=Math.log(P)*Math.LOG10E+1|0,W=R{t(a.fileName)})}function dne(e,t){var r,a;let u=e.getFileIncludeReasons(),f=p=>b3(p,e.getCurrentDirectory(),e.getCanonicalFileName);for(let p of e.getSourceFiles())t(`${J4(p,f)}`),(r=u.get(p.path))==null||r.forEach(y=>t(` ${mne(e,y,f).messageText}`)),(a=fne(p,e.getCompilerOptionsForFile(p),f))==null||a.forEach(y=>t(` ${y.messageText}`))}function fne(e,t,r){var a;let u;if(e.path!==e.resolvedPath&&(u??(u=[])).push(bs(void 0,S.File_is_output_of_project_reference_source_0,J4(e.originalFileName,r))),e.redirectInfo&&(u??(u=[])).push(bs(void 0,S.File_redirects_to_file_0,J4(e.redirectInfo.redirectTarget,r))),Vp(e))switch(AE(e,t)){case 99:e.packageJsonScope&&(u??(u=[])).push(bs(void 0,S.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,J4(pa(e.packageJsonLocations),r)));break;case 1:e.packageJsonScope?(u??(u=[])).push(bs(void 0,e.packageJsonScope.contents.packageJsonContent.type?S.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:S.File_is_CommonJS_module_because_0_does_not_have_field_type,J4(pa(e.packageJsonLocations),r))):(a=e.packageJsonLocations)!=null&&a.length&&(u??(u=[])).push(bs(void 0,S.File_is_CommonJS_module_because_package_json_was_not_found));break}return u}function _ne(e,t){var r;let a=e.getCompilerOptions().configFile;if(!((r=a?.configFileSpecs)!=null&&r.validatedFilesSpec))return;let u=e.getCanonicalFileName(t),f=Or(ts(a.fileName,e.getCurrentDirectory())),p=zi(a.configFileSpecs.validatedFilesSpec,y=>e.getCanonicalFileName(ts(y,f))===u);return p!==-1?a.configFileSpecs.validatedFilesSpecBeforeSubstitution[p]:void 0}function pne(e,t){var r,a;let u=e.getCompilerOptions().configFile;if(!((r=u?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(u.configFileSpecs.isDefaultIncludeSpec)return!0;let f=Tl(t,".json"),p=Or(ts(u.fileName,e.getCurrentDirectory())),y=e.useCaseSensitiveFileNames(),g=zi((a=u?.configFileSpecs)==null?void 0:a.validatedIncludeSpecs,x=>{if(f&&!Wl(x,".json"))return!1;let k=c0e(x,p,"files");return!!k&&wx(`(${k})$`,y).test(t)});return g!==-1?u.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[g]:void 0}function mne(e,t,r){var a,u;let f=e.getCompilerOptions();if(Tk(t)){let p=p8(e,t),y=V4(p)?p.file.text.substring(p.pos,p.end):`"${p.text}"`,g;switch(B.assert(V4(p)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:V4(p)?g=p.packageId?S.Imported_via_0_from_file_1_with_packageId_2:S.Imported_via_0_from_file_1:p.text===ek?g=p.packageId?S.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:S.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:g=p.packageId?S.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:S.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:B.assert(!p.packageId),g=S.Referenced_via_0_from_file_1;break;case 5:g=p.packageId?S.Type_library_referenced_via_0_from_file_1_with_packageId_2:S.Type_library_referenced_via_0_from_file_1;break;case 7:B.assert(!p.packageId),g=S.Library_referenced_via_0_from_file_1;break;default:B.assertNever(t)}return bs(void 0,g,y,J4(p.file,r),p.packageId&&tk(p.packageId))}switch(t.kind){case 0:if(!((a=f.configFile)!=null&&a.configFileSpecs))return bs(void 0,S.Root_file_specified_for_compilation);let p=ts(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(_ne(e,p))return bs(void 0,S.Part_of_files_list_in_tsconfig_json);let g=pne(e,p);return fs(g)?bs(void 0,S.Matched_by_include_pattern_0_in_1,g,J4(f.configFile,r)):bs(void 0,g?S.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:S.Root_file_specified_for_compilation);case 1:case 2:let x=t.kind===2,k=B.checkDefined((u=e.getResolvedProjectReferences())==null?void 0:u[t.index]);return bs(void 0,f.outFile?x?S.Output_from_referenced_project_0_included_because_1_specified:S.Source_from_referenced_project_0_included_because_1_specified:x?S.Output_from_referenced_project_0_included_because_module_is_specified_as_none:S.Source_from_referenced_project_0_included_because_module_is_specified_as_none,J4(k.sourceFile.fileName,r),f.outFile?"--outFile":"--out");case 8:{let T=f.types?t.packageId?[S.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,tk(t.packageId)]:[S.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[S.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,tk(t.packageId)]:[S.Entry_point_for_implicit_type_library_0,t.typeReference];return bs(void 0,...T)}case 6:{if(t.index!==void 0)return bs(void 0,S.Library_0_specified_in_compilerOptions,f.lib[t.index]);let T=MV(Oa(f)),A=T?[S.Default_library_for_target_0,T]:[S.Default_library];return bs(void 0,...A)}default:B.assertNever(t)}}function J4(e,t){let r=fs(e)?e:e.fileName;return t?t(r):r}function GU(e,t,r,a,u,f,p,y){let g=e.getCompilerOptions(),x=e.getConfigFileParsingDiagnostics().slice(),k=x.length;Fn(x,e.getSyntacticDiagnostics(void 0,f)),x.length===k&&(Fn(x,e.getOptionsDiagnostics(f)),g.listFilesOnly||(Fn(x,e.getGlobalDiagnostics(f)),x.length===k&&Fn(x,e.getSemanticDiagnostics(void 0,f)),g.noEmit&&yp(g)&&x.length===k&&Fn(x,e.getDeclarationDiagnostics(void 0,f))));let T=g.listFilesOnly?{emitSkipped:!0,diagnostics:F}:e.emit(void 0,u,f,p,y);Fn(x,T.diagnostics);let A=PP(x);if(A.forEach(t),r){let P=e.getCurrentDirectory();re(T.emittedFiles,R=>{let W=ts(R,P);r(`TSFILE: ${W}`)}),CNt(e,r)}return a&&a(qU(A),$U(A)),{emitResult:T,diagnostics:A}}function hne(e,t,r,a,u,f,p,y){let{emitResult:g,diagnostics:x}=GU(e,t,r,a,u,f,p,y);return g.emitSkipped&&x.length>0?1:x.length>0?2:0}var h8={close:dc},g8=()=>h8;function gne(e=Sd,t){return{onWatchStatusChange:t||ane(e),watchFile:Ps(e,e.watchFile)||g8,watchDirectory:Ps(e,e.watchDirectory)||g8,setTimeout:Ps(e,e.setTimeout)||dc,clearTimeout:Ps(e,e.clearTimeout)||dc,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var Fd={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",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function yne(e,t){let r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,a=r!==0?f=>e.trace(f):dc,u=Oie(e,r,a);return u.writeLog=a,u}function vne(e,t,r=e){let a=e.useCaseSensitiveFileNames(),u={getSourceFile:Rie((f,p)=>p?e.readFile(f,p):u.readFile(f),void 0),getDefaultLibLocation:Ps(e,e.getDefaultLibLocation),getDefaultLibFileName:f=>e.getDefaultLibFileName(f),writeFile:Bie((f,p,y)=>e.writeFile(f,p,y),f=>e.createDirectory(f),f=>e.directoryExists(f)),getCurrentDirectory:l_(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>a,getCanonicalFileName:df(a),getNewLine:()=>aS(t()),fileExists:f=>e.fileExists(f),readFile:f=>e.readFile(f),trace:Ps(e,e.trace),directoryExists:Ps(r,r.directoryExists),getDirectories:Ps(r,r.getDirectories),realpath:Ps(e,e.realpath),getEnvironmentVariable:Ps(e,e.getEnvironmentVariable)||(()=>""),createHash:Ps(e,e.createHash),readDirectory:Ps(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return u}function KU(e,t){if(t.match(e1e)){let r=t.length,a=r;for(let u=r-1;u>=0;u--){let f=t.charCodeAt(u);switch(f){case 10:u&&t.charCodeAt(u-1)===13&&u--;case 13:break;default:if(f<127||!Jf(f)){a=u;continue}break}let p=t.substring(a,r);if(p.match(sie)){t=t.substring(0,a);break}else if(!p.match(aie))break;r=a}}return(e.createHash||y3)(t)}function XU(e){let t=e.getSourceFile;e.getSourceFile=(...r)=>{let a=t.call(e,...r);return a&&(a.version=KU(e,a.text)),a}}function bne(e,t){let r=l_(()=>Or($s(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:l_(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:a=>xr(r(),nM(a)),fileExists:a=>e.fileExists(a),readFile:(a,u)=>e.readFile(a,u),directoryExists:a=>e.directoryExists(a),getDirectories:a=>e.getDirectories(a),readDirectory:(a,u,f,p,y)=>e.readDirectory(a,u,f,p,y),realpath:Ps(e,e.realpath),getEnvironmentVariable:Ps(e,e.getEnvironmentVariable),trace:a=>e.write(a+e.newLine),createDirectory:a=>e.createDirectory(a),writeFile:(a,u,f)=>e.writeFile(a,u,f),createHash:Ps(e,e.createHash),createProgram:t||rne,storeSignatureInfo:e.storeSignatureInfo,now:Ps(e,e.now)}}function P9e(e=Sd,t,r,a){let u=p=>e.write(p+e.newLine),f=bne(e,t);return Lv(f,gne(e,a)),f.afterProgramCreate=p=>{let y=p.getCompilerOptions(),g=aS(y);GU(p,r,u,x=>f.onWatchStatusChange(Dl(cne(x),x),g,y,x))},f}function L9e(e,t,r){t(r),e.exit(1)}function Sne({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:a,system:u,createProgram:f,reportDiagnostic:p,reportWatchStatus:y}){let g=p||HN(u),x=P9e(u,f,g,y);return x.onUnRecoverableConfigFileDiagnostic=k=>L9e(u,g,k),x.configFileName=e,x.optionsToExtend=t,x.watchOptionsToExtend=r,x.extraFileExtensions=a,x}function xne({rootFiles:e,options:t,watchOptions:r,projectReferences:a,system:u,createProgram:f,reportDiagnostic:p,reportWatchStatus:y}){let g=P9e(u,f,p||HN(u),y);return g.rootFiles=e,g.options=t,g.watchOptions=r,g.projectReferences=a,g}function Ibe(e){let t=e.system||Sd,r=e.host||(e.host=QU(e.options,t)),a=Nbe(e),u=hne(a,e.reportDiagnostic||HN(t),f=>r.trace&&r.trace(f),e.reportErrorSummary||e.options.pretty?(f,p)=>t.write(lne(f,p,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(a),u}function YU(e,t){let r=wk(e);if(!r)return;let a;if(t.getBuildInfo)a=t.getBuildInfo(r,e.configFilePath);else{let u=t.readFile(r);if(!u)return;a=Nie(r,u)}if(!(!a||a.version!==O||!N5(a)))return vbe(a,r,t)}function QU(e,t=Sd){let r=NU(e,void 0,t);return r.createHash=Ps(t,t.createHash),r.storeSignatureInfo=t.storeSignatureInfo,XU(r),f8(r,a=>Vc(a,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Nbe({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:a,host:u,createProgram:f}){u=u||QU(t),f=f||rne;let p=YU(t,u);return f(e,t,u,p,r,a)}function O9e(e,t,r,a,u,f,p,y){return ds(e)?xne({rootFiles:e,options:t,watchOptions:y,projectReferences:p,system:r,createProgram:a,reportDiagnostic:u,reportWatchStatus:f}):Sne({configFileName:e,optionsToExtend:t,watchOptionsToExtend:p,extraFileExtensions:y,system:r,createProgram:a,reportDiagnostic:u,reportWatchStatus:f})}function Cne(e){let t,r,a,u,f,p,y,g,x=e.extendedConfigCache,k=!1,T=new Map,A,P=!1,R=e.useCaseSensitiveFileNames(),W=e.getCurrentDirectory(),{configFileName:z,optionsToExtend:q={},watchOptionsToExtend:G,extraFileExtensions:$,createProgram:te}=e,{rootFiles:ne,options:_e,watchOptions:ce,projectReferences:ae}=e,Ce,he,ue=!1,Ee=!1,ve=z===void 0?void 0:EU(e,W,R),be=ve||e,Se=jU(e,be),Re=bn();z&&e.configFileParsingResult&&(aa(e.configFileParsingResult),Re=bn()),Ao(S.Starting_compilation_in_watch_mode),z&&!e.configFileParsingResult&&(Re=aS(q),B.assert(!ne),na(),Re=bn()),B.assert(_e),B.assert(ne);let{watchFile:ie,watchDirectory:ke,writeLog:De}=yne(e,_e),Oe=df(R);De(`Current directory: ${W} CaseSensitiveFileNames: ${R}`);let we;z&&(we=ie(z,dn,2e3,ce,Fd.ConfigFile));let Ae=vne(e,()=>_e,be);XU(Ae);let Fe=Ae.getSourceFile;Ae.getSourceFile=(mt,...$t)=>nn(mt,an(mt),...$t),Ae.getSourceFileByPath=nn,Ae.getNewLine=()=>Re,Ae.fileExists=Sn,Ae.onReleaseOldSourceFile=is,Ae.onReleaseParsedCommandLine=ht,Ae.toPath=an,Ae.getCompilationSettings=()=>_e,Ae.useSourceOfProjectReferenceRedirect=Ps(e,e.useSourceOfProjectReferenceRedirect),Ae.preferNonRecursiveWatch=e.preferNonRecursiveWatch,Ae.watchDirectoryOfFailedLookupLocation=(mt,$t,_t)=>ke(mt,$t,_t,ce,Fd.FailedLookupLocations),Ae.watchAffectingFileLocation=(mt,$t)=>ie(mt,$t,2e3,ce,Fd.AffectingFileLocation),Ae.watchTypeRootsDirectory=(mt,$t,_t)=>ke(mt,$t,_t,ce,Fd.TypeRoots),Ae.getCachedDirectoryStructureHost=()=>ve,Ae.scheduleInvalidateResolutionsOfFailedLookupLocations=Eo,Ae.onInvalidatedResolution=si,Ae.onChangedAutomaticTypeDirectiveNames=si,Ae.fileIsOpen=R0,Ae.getCurrentProgram=nt,Ae.writeLog=De,Ae.getParsedCommandLine=Ai;let Tt=sne(Ae,z?Or(ts(z,W)):W,!1);Ae.resolveModuleNameLiterals=Ps(e,e.resolveModuleNameLiterals),Ae.resolveModuleNames=Ps(e,e.resolveModuleNames),!Ae.resolveModuleNameLiterals&&!Ae.resolveModuleNames&&(Ae.resolveModuleNameLiterals=Tt.resolveModuleNameLiterals.bind(Tt)),Ae.resolveTypeReferenceDirectiveReferences=Ps(e,e.resolveTypeReferenceDirectiveReferences),Ae.resolveTypeReferenceDirectives=Ps(e,e.resolveTypeReferenceDirectives),!Ae.resolveTypeReferenceDirectiveReferences&&!Ae.resolveTypeReferenceDirectives&&(Ae.resolveTypeReferenceDirectiveReferences=Tt.resolveTypeReferenceDirectiveReferences.bind(Tt)),Ae.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Tt.resolveLibrary.bind(Tt),Ae.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Ps(e,e.getModuleResolutionCache):()=>Tt.getModuleResolutionCache();let Ge=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Ps(e,e.hasInvalidatedResolutions)||UC:R0,Ke=e.resolveLibrary?Ps(e,e.hasInvalidatedLibResolutions)||UC:R0;return t=YU(_e,Ae),At(),ut(),z&&je(an(z),_e,ce,Fd.ExtendedConfigFile),z?{getCurrentProgram:xt,getProgram:Jr,close:Ue,getResolutionCache:gt}:{getCurrentProgram:xt,getProgram:Jr,updateRootFileNames:Fi,close:Ue,getResolutionCache:gt};function Ue(){xn(),Tt.clear(),gp(T,mt=>{mt&&mt.fileWatcher&&(mt.fileWatcher.close(),mt.fileWatcher=void 0)}),we&&(we.close(),we=void 0),x?.clear(),x=void 0,g&&(gp(g,mh),g=void 0),u&&(gp(u,mh),u=void 0),a&&(gp(a,kg),a=void 0),y&&(gp(y,mt=>{var $t;($t=mt.watcher)==null||$t.close(),mt.watcher=void 0,mt.watchedDirectories&&gp(mt.watchedDirectories,mh),mt.watchedDirectories=void 0}),y=void 0),t=void 0}function gt(){return Tt}function xt(){return t}function nt(){return t&&t.getProgramOrUndefined()}function At(){De("Synchronizing program"),B.assert(_e),B.assert(ne),xn();let mt=xt();P&&(Re=bn(),mt&&wz(mt.getCompilerOptions(),_e)&&Tt.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:$t,hasInvalidatedLibResolutions:_t}=Tt.createHasInvalidatedResolutions(Ge,Ke),{originalReadFile:yi,originalFileExists:Ii,originalDirectoryExists:nr,originalCreateDirectory:Y,originalWriteFile:$e,readFileWithCache:Bt}=f8(Ae,an);return $ie(nt(),ne,_e,se=>Gr(se,Bt),se=>Ae.fileExists(se),$t,_t,Rr,Ai,ae)?Ee&&(k&&Ao(S.File_change_detected_Starting_incremental_compilation),t=te(void 0,void 0,Ae,t,he,ae),Ee=!1):(k&&Ao(S.File_change_detected_Starting_incremental_compilation),ci($t,_t)),k=!1,e.afterProgramCreate&&mt!==t&&e.afterProgramCreate(t),Ae.readFile=yi,Ae.fileExists=Ii,Ae.directoryExists=nr,Ae.createDirectory=Y,Ae.writeFile=$e,t}function ci(mt,$t){De("CreatingProgramWith::"),De(` roots: ${JSON.stringify(ne)}`),De(` options: ${JSON.stringify(_e)}`),ae&&De(` projectReferences: ${JSON.stringify(ae)}`);let _t=P||!nt();P=!1,Ee=!1,Tt.startCachingPerDirectoryResolution(),Ae.hasInvalidatedResolutions=mt,Ae.hasInvalidatedLibResolutions=$t,Ae.hasChangedAutomaticTypeDirectiveNames=Rr;let yi=nt();if(t=te(ne,_e,Ae,t,he,ae),Tt.finishCachingPerDirectoryResolution(t.getProgram(),yi),Lie(t.getProgram(),a||(a=new Map),ge),_t&&Tt.updateTypeRootsWatch(),A){for(let Ii of A)a.has(Ii)||T.delete(Ii);A=void 0}}function Fi(mt){B.assert(!z,"Cannot update root file names with config file watch mode"),ne=mt,si()}function bn(){return aS(_e||q)}function an(mt){return Vc(mt,W,Oe)}function ni(mt){return typeof mt=="boolean"}function Ci(mt){return typeof mt.version=="boolean"}function Sn(mt){let $t=an(mt);return ni(T.get($t))?!1:be.fileExists(mt)}function nn(mt,$t,_t,yi,Ii){let nr=T.get($t);if(ni(nr))return;let Y=typeof _t=="object"?_t.impliedNodeFormat:void 0;if(nr===void 0||Ii||Ci(nr)||nr.sourceFile.impliedNodeFormat!==Y){let $e=Fe(mt,_t,yi);if(nr)$e?(nr.sourceFile=$e,nr.version=$e.version,nr.fileWatcher||(nr.fileWatcher=Jt($t,mt,ye,250,ce,Fd.SourceFile))):(nr.fileWatcher&&nr.fileWatcher.close(),T.set($t,!1));else if($e){let Bt=Jt($t,mt,ye,250,ce,Fd.SourceFile);T.set($t,{sourceFile:$e,version:$e.version,fileWatcher:Bt})}else T.set($t,!1);return $e}return nr.sourceFile}function Br(mt){let $t=T.get(mt);$t!==void 0&&(ni($t)?T.set(mt,{version:!1}):$t.version=!1)}function Gr(mt,$t){let _t=T.get(mt);if(!_t)return;if(_t.version)return _t.version;let yi=$t(mt);return yi!==void 0?KU(Ae,yi):void 0}function is(mt,$t,_t){let yi=T.get(mt.resolvedPath);yi!==void 0&&(ni(yi)?(A||(A=[])).push(mt.path):yi.sourceFile===mt&&(yi.fileWatcher&&yi.fileWatcher.close(),T.delete(mt.resolvedPath),_t||Tt.removeResolutionsOfFile(mt.path)))}function Ao(mt){e.onWatchStatusChange&&e.onWatchStatusChange(Dl(mt),Re,_e||q)}function Rr(){return Tt.hasChangedAutomaticTypeDirectiveNames()}function xn(){return p?(e.clearTimeout(p),p=void 0,!0):!1}function Eo(){if(!e.setTimeout||!e.clearTimeout)return Tt.invalidateResolutionsOfFailedLookupLocations();let mt=xn();De(`Scheduling invalidateFailedLookup${mt?", Cancelled earlier one":""}`),p=e.setTimeout(it,250,"timerToInvalidateFailedLookupResolutions")}function it(){p=void 0,Tt.invalidateResolutionsOfFailedLookupLocations()&&si()}function si(){!e.setTimeout||!e.clearTimeout||(f&&e.clearTimeout(f),De("Scheduling update"),f=e.setTimeout(Qn,250,"timerToUpdateProgram"))}function dn(){B.assert(!!z),r=2,si()}function Qn(){f=void 0,k=!0,Jr()}function Jr(){switch(r){case 1:Dr();break;case 2:Do();break;default:At();break}return xt()}function Dr(){De("Reloading new file names and options"),B.assert(_e),B.assert(z),r=0,ne=XO(_e.configFile.configFileSpecs,ts(Or(z),W),_e,Se,$),QH(ne,ts(z,W),_e.configFile.configFileSpecs,he,ue)&&(Ee=!0),At()}function Do(){B.assert(z),De(`Reloading config file: ${z}`),r=0,ve&&ve.clearCache(),na(),P=!0,At(),ut(),je(an(z),_e,ce,Fd.ExtendedConfigFile)}function na(){B.assert(z),aa(n5(z,q,Se,x||(x=new Map),G,$))}function aa(mt){ne=mt.fileNames,_e=mt.options,ce=mt.watchOptions,ae=mt.projectReferences,Ce=mt.wildcardDirectories,he=xT(mt).slice(),ue=KO(mt.raw),Ee=!0}function Ai(mt){let $t=an(mt),_t=y?.get($t);if(_t){if(!_t.updateLevel)return _t.parsedCommandLine;if(_t.parsedCommandLine&&_t.updateLevel===1&&!e.getParsedCommandLine){De("Reloading new file names and options"),B.assert(_e);let Ii=XO(_t.parsedCommandLine.options.configFile.configFileSpecs,ts(Or(mt),W),_e,Se);return _t.parsedCommandLine={..._t.parsedCommandLine,fileNames:Ii},_t.updateLevel=void 0,_t.parsedCommandLine}}De(`Loading config file: ${mt}`);let yi=e.getParsedCommandLine?e.getParsedCommandLine(mt):Ha(mt);return _t?(_t.parsedCommandLine=yi,_t.updateLevel=void 0):(y||(y=new Map)).set($t,_t={parsedCommandLine:yi}),It(mt,$t,_t),yi}function Ha(mt){let $t=Se.onUnRecoverableConfigFileDiagnostic;Se.onUnRecoverableConfigFileDiagnostic=dc;let _t=n5(mt,void 0,Se,x||(x=new Map),G);return Se.onUnRecoverableConfigFileDiagnostic=$t,_t}function ht(mt){var $t;let _t=an(mt),yi=y?.get(_t);yi&&(y.delete(_t),yi.watchedDirectories&&gp(yi.watchedDirectories,mh),($t=yi.watcher)==null||$t.close(),Pie(_t,g))}function Jt(mt,$t,_t,yi,Ii,nr){return ie($t,(Y,$e)=>_t(Y,$e,mt),yi,Ii,nr)}function ye(mt,$t,_t){ct(mt,_t,$t),$t===2&&T.has(_t)&&Tt.invalidateResolutionOfFile(_t),Br(_t),si()}function ct(mt,$t,_t){ve&&ve.addOrDeleteFile(mt,$t,_t)}function ge(mt,$t){return y?.has(mt)?h8:Jt(mt,$t,He,500,ce,Fd.MissingFile)}function He(mt,$t,_t){ct(mt,_t,$t),$t===0&&a.has(_t)&&(a.get(_t).close(),a.delete(_t),Br(_t),si())}function ut(){C5(u||(u=new Map),Ce,bt)}function bt(mt,$t){return ke(mt,_t=>{B.assert(z),B.assert(_e);let yi=an(_t);ve&&ve.addOrDeleteFileOrDirectory(_t,yi),Br(yi),!k5({watchedDirPath:an(mt),fileOrDirectory:_t,fileOrDirectoryPath:yi,configFileName:z,extraFileExtensions:$,options:_e,program:xt()||ne,currentDirectory:W,useCaseSensitiveFileNames:R,writeLog:De,toPath:an})&&r!==2&&(r=1,si())},$t,ce,Fd.WildcardDirectory)}function je(mt,$t,_t,yi){DU(mt,$t,g||(g=new Map),(Ii,nr)=>ie(Ii,(Y,$e)=>{var Bt;ct(Ii,nr,$e),x&&IU(x,nr,an);let se=(Bt=g.get(nr))==null?void 0:Bt.projects;se?.size&&se.forEach(rt=>{if(z&&an(z)===rt)r=2;else{let fe=y?.get(rt);fe&&(fe.updateLevel=2),Tt.removeResolutionsFromProjectReferenceRedirects(rt)}si()})},2e3,_t,yi),an)}function It(mt,$t,_t){var yi,Ii,nr,Y;_t.watcher||(_t.watcher=ie(mt,($e,Bt)=>{ct(mt,$t,Bt);let se=y?.get($t);se&&(se.updateLevel=2),Tt.removeResolutionsFromProjectReferenceRedirects($t),si()},2e3,((yi=_t.parsedCommandLine)==null?void 0:yi.watchOptions)||ce,Fd.ConfigFileOfReferencedProject)),C5(_t.watchedDirectories||(_t.watchedDirectories=new Map),(Ii=_t.parsedCommandLine)==null?void 0:Ii.wildcardDirectories,($e,Bt)=>{var se;return ke($e,rt=>{let fe=an(rt);ve&&ve.addOrDeleteFileOrDirectory(rt,fe),Br(fe);let Wt=y?.get($t);Wt?.parsedCommandLine&&(k5({watchedDirPath:an($e),fileOrDirectory:rt,fileOrDirectoryPath:fe,configFileName:mt,options:Wt.parsedCommandLine.options,program:Wt.parsedCommandLine.fileNames,currentDirectory:W,useCaseSensitiveFileNames:R,writeLog:De,toPath:an})||Wt.updateLevel!==2&&(Wt.updateLevel=1,si()))},Bt,((se=_t.parsedCommandLine)==null?void 0:se.watchOptions)||ce,Fd.WildcardDirectoryOfReferencedProject)}),je($t,(nr=_t.parsedCommandLine)==null?void 0:nr.options,((Y=_t.parsedCommandLine)==null?void 0:Y.watchOptions)||ce,Fd.ExtendedConfigOfReferencedProject)}}var Abe=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",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))(Abe||{});function kne(e){return Tl(e,".json")?e:xr(e,"tsconfig.json")}var kNt=new Date(-864e13);function wNt(e,t,r){let a=e.get(t),u;return a||(u=r(),e.set(t,u)),a||u}function Pbe(e,t){return wNt(e,t,()=>new Map)}function wne(e){return e.now?e.now():new Date}function UN(e){return!!e&&!!e.buildOrder}function P5(e){return UN(e)?e.buildOrder:e}function ZU(e,t){return r=>{let a=t?`[${ST(A5(e),"\x1B[90m")}] `:`${A5(e)} - `;a+=`${ay(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(a)}}function F9e(e,t,r,a){let u=bne(e,t);return u.getModifiedTime=e.getModifiedTime?f=>e.getModifiedTime(f):Fw,u.setModifiedTime=e.setModifiedTime?(f,p)=>e.setModifiedTime(f,p):dc,u.deleteFile=e.deleteFile?f=>e.deleteFile(f):dc,u.reportDiagnostic=r||HN(e),u.reportSolutionBuilderStatus=a||ZU(e),u.now=Ps(e,e.now),u}function Lbe(e=Sd,t,r,a,u){let f=F9e(e,t,r,a);return f.reportErrorSummary=u,f}function Obe(e=Sd,t,r,a,u){let f=F9e(e,t,r,a),p=gne(e,u);return Lv(f,p),f}function TNt(e){let t={};return zH.forEach(r=>{Nc(e,r.name)&&(t[r.name]=e[r.name])}),t.tscBuild=!0,t}function Fbe(e,t,r){return iBe(!1,e,t,r)}function Mbe(e,t,r,a){return iBe(!0,e,t,r,a)}function ENt(e,t,r,a,u){let f=t,p=t,y=TNt(a),g=vne(f,()=>W.projectCompilerOptions);XU(g),g.getParsedCommandLine=z=>q4(W,z,tv(W,z)),g.resolveModuleNameLiterals=Ps(f,f.resolveModuleNameLiterals),g.resolveTypeReferenceDirectiveReferences=Ps(f,f.resolveTypeReferenceDirectiveReferences),g.resolveLibrary=Ps(f,f.resolveLibrary),g.resolveModuleNames=Ps(f,f.resolveModuleNames),g.resolveTypeReferenceDirectives=Ps(f,f.resolveTypeReferenceDirectives),g.getModuleResolutionCache=Ps(f,f.getModuleResolutionCache);let x,k;!g.resolveModuleNameLiterals&&!g.resolveModuleNames&&(x=O4(g.getCurrentDirectory(),g.getCanonicalFileName),g.resolveModuleNameLiterals=(z,q,G,$,te)=>T5(z,q,G,$,te,f,x,Uie),g.getModuleResolutionCache=()=>x),!g.resolveTypeReferenceDirectiveReferences&&!g.resolveTypeReferenceDirectives&&(k=rU(g.getCurrentDirectory(),g.getCanonicalFileName,void 0,x?.getPackageJsonInfoCache(),x?.optionsToRedirectsKey),g.resolveTypeReferenceDirectiveReferences=(z,q,G,$,te)=>T5(z,q,G,$,te,f,k,LU));let T;g.resolveLibrary||(T=O4(g.getCurrentDirectory(),g.getCanonicalFileName,void 0,x?.getPackageJsonInfoCache()),g.resolveLibrary=(z,q,G)=>oU(z,q,G,f,T)),g.getBuildInfo=(z,q)=>$9e(W,z,tv(W,q),void 0);let{watchFile:A,watchDirectory:P,writeLog:R}=yne(p,a),W={host:f,hostWithWatch:p,parseConfigFileHost:jU(f),write:Ps(f,f.trace),options:a,baseCompilerOptions:y,rootNames:r,baseWatchOptions:u,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:g,moduleResolutionCache:x,typeReferenceDirectiveResolutionCache:k,libraryResolutionCache:T,buildOrder:void 0,readFileWithCache:z=>f.readFile(z),projectCompilerOptions:y,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:A,watchDirectory:P,writeLog:R};return W}function wg(e,t){return Vc(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function tv(e,t){let{resolvedConfigFilePaths:r}=e,a=r.get(t);if(a!==void 0)return a;let u=wg(e,t);return r.set(t,u),u}function M9e(e){return!!e.options}function DNt(e,t){let r=e.configFileCache.get(t);return r&&M9e(r)?r:void 0}function q4(e,t,r){let{configFileCache:a}=e,u=a.get(r);if(u)return M9e(u)?u:void 0;zl("SolutionBuilder::beforeConfigFileParsing");let f,{parseConfigFileHost:p,baseCompilerOptions:y,baseWatchOptions:g,extendedConfigCache:x,host:k}=e,T;return k.getParsedCommandLine?(T=k.getParsedCommandLine(t),T||(f=Dl(S.File_0_not_found,t))):(p.onUnRecoverableConfigFileDiagnostic=A=>f=A,T=n5(t,y,p,x,g),p.onUnRecoverableConfigFileDiagnostic=dc),a.set(r,T||f),zl("SolutionBuilder::afterConfigFileParsing"),ih("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),T}function L5(e,t){return kne(qC(e.compilerHost.getCurrentDirectory(),t))}function R9e(e,t){let r=new Map,a=new Map,u=[],f,p;for(let g of t)y(g);return p?{buildOrder:f||F,circularDiagnostics:p}:f||F;function y(g,x){let k=tv(e,g);if(a.has(k))return;if(r.has(k)){x||(p||(p=[])).push(Dl(S.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,u.join(`\r +`)));return}r.set(k,!0),u.push(g);let T=q4(e,g,k);if(T&&T.projectReferences)for(let A of T.projectReferences){let P=L5(e,A.path);y(P,x||A.circular)}u.pop(),a.set(k,!0),(f||(f=[])).push(g)}}function eJ(e){return e.buildOrder||INt(e)}function INt(e){let t=R9e(e,e.rootNames.map(u=>L5(e,u)));e.resolvedConfigFilePaths.clear();let r=new Set(P5(t).map(u=>tv(e,u))),a={onDeleteValue:dc};return Uv(e.configFileCache,r,a),Uv(e.projectStatus,r,a),Uv(e.builderPrograms,r,a),Uv(e.diagnostics,r,a),Uv(e.projectPendingBuild,r,a),Uv(e.projectErrorsReported,r,a),Uv(e.buildInfoCache,r,a),Uv(e.outputTimeStamps,r,a),Uv(e.lastCachedPackageJsonLookups,r,a),e.watch&&(Uv(e.allWatchedConfigFiles,r,{onDeleteValue:kg}),e.allWatchedExtendedConfigFiles.forEach(u=>{u.projects.forEach(f=>{r.has(f)||u.projects.delete(f)}),u.close()}),Uv(e.allWatchedWildcardDirectories,r,{onDeleteValue:u=>u.forEach(mh)}),Uv(e.allWatchedInputFiles,r,{onDeleteValue:u=>u.forEach(kg)}),Uv(e.allWatchedPackageJsonFiles,r,{onDeleteValue:u=>u.forEach(kg)})),e.buildOrder=t}function B9e(e,t,r){let a=t&&L5(e,t),u=eJ(e);if(UN(u))return u;if(a){let p=tv(e,a);if(zi(u,g=>tv(e,g)===p)===-1)return}let f=a?R9e(e,[a]):u;return B.assert(!UN(f)),B.assert(!r||a!==void 0),B.assert(!r||f[f.length-1]===a),r?f.slice(0,f.length-1):f}function j9e(e){e.cache&&Rbe(e);let{compilerHost:t,host:r}=e,a=e.readFileWithCache,u=t.getSourceFile,{originalReadFile:f,originalFileExists:p,originalDirectoryExists:y,originalCreateDirectory:g,originalWriteFile:x,getSourceFileWithCache:k,readFileWithCache:T}=f8(r,A=>wg(e,A),(...A)=>u.call(t,...A));e.readFileWithCache=T,t.getSourceFile=k,e.cache={originalReadFile:f,originalFileExists:p,originalDirectoryExists:y,originalCreateDirectory:g,originalWriteFile:x,originalReadFileWithCache:a,originalGetSourceFile:u}}function Rbe(e){if(!e.cache)return;let{cache:t,host:r,compilerHost:a,extendedConfigCache:u,moduleResolutionCache:f,typeReferenceDirectiveResolutionCache:p,libraryResolutionCache:y}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,a.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,u.clear(),f?.clear(),p?.clear(),y?.clear(),e.cache=void 0}function W9e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function z9e({projectPendingBuild:e},t,r){let a=e.get(t);(a===void 0||ae.projectPendingBuild.set(tv(e,a),0)),t&&t.throwIfCancellationRequested()}var Bbe=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(Bbe||{});function H9e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function NNt(e,t,r,a,u){let f=!0;return{kind:1,project:t,projectPath:r,buildOrder:u,getCompilerOptions:()=>a.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{K9e(e,a,r),f=!1},done:()=>(f&&K9e(e,a,r),zl("SolutionBuilder::Timestamps only updates"),H9e(e,r))}}function ANt(e,t,r,a,u,f,p){let y=0,g,x;return{kind:0,project:t,projectPath:r,buildOrder:p,getCompilerOptions:()=>u.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>T(Gc),getProgram:()=>T(z=>z.getProgramOrUndefined()),getSourceFile:z=>T(q=>q.getSourceFile(z)),getSourceFiles:()=>A(z=>z.getSourceFiles()),getOptionsDiagnostics:z=>A(q=>q.getOptionsDiagnostics(z)),getGlobalDiagnostics:z=>A(q=>q.getGlobalDiagnostics(z)),getConfigFileParsingDiagnostics:()=>A(z=>z.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(z,q)=>A(G=>G.getSyntacticDiagnostics(z,q)),getAllDependencies:z=>A(q=>q.getAllDependencies(z)),getSemanticDiagnostics:(z,q)=>A(G=>G.getSemanticDiagnostics(z,q)),getSemanticDiagnosticsOfNextAffectedFile:(z,q)=>T(G=>G.getSemanticDiagnosticsOfNextAffectedFile&&G.getSemanticDiagnosticsOfNextAffectedFile(z,q)),emit:(z,q,G,$,te)=>z||$?T(ne=>{var _e,ce;return ne.emit(z,q,G,$,te||((ce=(_e=e.host).getCustomTransformers)==null?void 0:ce.call(_e,t)))}):(W(0,G),R(q,G,te)),done:k};function k(z,q,G){return W(3,z,q,G),zl("SolutionBuilder::Projects built"),H9e(e,r)}function T(z){return W(0),g&&z(g)}function A(z){return T(z)||F}function P(){var z,q,G;if(B.assert(g===void 0),e.options.dry){Kp(e,S.A_non_dry_build_would_build_project_0,t),x=1,y=2;return}if(e.options.verbose&&Kp(e,S.Building_project_0,t),u.fileNames.length===0){O5(e,r,xT(u)),x=0,y=2;return}let{host:$,compilerHost:te}=e;if(e.projectCompilerOptions=u.options,(z=e.moduleResolutionCache)==null||z.update(u.options),(q=e.typeReferenceDirectiveResolutionCache)==null||q.update(u.options),g=$.createProgram(u.fileNames,u.options,te,PNt(e,r,u),xT(u),u.projectReferences),e.watch){let ne=(G=e.moduleResolutionCache)==null?void 0:G.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(r,ne&&new Set(as(ne.values(),_e=>e.host.realpath&&(nU(_e)||_e.directoryExists)?e.host.realpath(xr(_e.packageDirectory,"package.json")):xr(_e.packageDirectory,"package.json")))),e.builderPrograms.set(r,g)}y++}function R(z,q,G){var $,te,ne;B.assertIsDefined(g),B.assert(y===1);let{host:_e,compilerHost:ce}=e,ae=new Map,Ce=g.getCompilerOptions(),he=nT(Ce),ue,Ee,{emitResult:ve,diagnostics:be}=GU(g,Se=>_e.reportDiagnostic(Se),e.write,void 0,(Se,Re,ie,ke,De,Oe)=>{var we;let Ae=wg(e,Se);if(ae.set(wg(e,Se),Se),Oe?.buildInfo){Ee||(Ee=wne(e.host));let Tt=(we=g.hasChangedEmitSignature)==null?void 0:we.call(g),Be=Dne(e,Se,r);Be?(Be.buildInfo=Oe.buildInfo,Be.modifiedTime=Ee,Tt&&(Be.latestChangedDtsTime=Ee)):e.buildInfoCache.set(r,{path:wg(e,Se),buildInfo:Oe.buildInfo,modifiedTime:Ee,latestChangedDtsTime:Tt?Ee:void 0})}let Fe=Oe?.differsOnlyInMap?PI(e.host,Se):void 0;(z||ce.writeFile)(Se,Re,ie,ke,De,Oe),Oe?.differsOnlyInMap?e.host.setModifiedTime(Se,Fe):!he&&e.watch&&(ue||(ue=Wbe(e,r))).set(Ae,Ee||(Ee=wne(e.host)))},q,void 0,G||((te=($=e.host).getCustomTransformers)==null?void 0:te.call($,t)));return(!Ce.noEmitOnError||!be.length)&&(ae.size||f.type!==8)&&G9e(e,u,r,S.Updating_unchanged_output_timestamps_of_project_0,ae),e.projectErrorsReported.set(r,!0),x=(ne=g.hasChangedEmitSignature)!=null&&ne.call(g)?0:2,be.length?(e.diagnostics.set(r,be),e.projectStatus.set(r,{type:0,reason:"it had errors"}),x|=4):(e.diagnostics.delete(r),e.projectStatus.set(r,{type:1,oldestOutputFileName:I0(ae.values())??Eie(u,!_e.useCaseSensitiveFileNames())})),LNt(e,g),y=2,ve}function W(z,q,G,$){for(;y<=z&&y<3;){let te=y;switch(y){case 0:P();break;case 1:R(G,q,$);break;case 2:RNt(e,t,r,a,u,p,B.checkDefined(x)),y++;break;case 3:default:}B.assert(y>te)}}}function U9e(e,t,r){if(!e.projectPendingBuild.size||UN(t))return;let{options:a,projectPendingBuild:u}=e;for(let f=0;f{let P=B.checkDefined(e.filesWatched.get(y));B.assert(Tne(P)),P.modifiedTime=A,P.callbacks.forEach(R=>R(k,T,A))},a,u,f,p);e.filesWatched.set(y,{callbacks:[r],watcher:x,modifiedTime:g})}return{close:()=>{let x=B.checkDefined(e.filesWatched.get(y));B.assert(Tne(x)),x.callbacks.length===1?(e.filesWatched.delete(y),mh(x)):NI(x.callbacks,r)}}}function Wbe(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function Dne(e,t,r){let a=wg(e,t),u=e.buildInfoCache.get(r);return u?.path===a?u:void 0}function $9e(e,t,r,a){let u=wg(e,t),f=e.buildInfoCache.get(r);if(f!==void 0&&f.path===u)return f.buildInfo||void 0;let p=e.readFileWithCache(t),y=p?Nie(t,p):void 0;return e.buildInfoCache.set(r,{path:u,buildInfo:y||!1,modifiedTime:a||Bp}),y}function zbe(e,t,r,a){let u=q9e(e,t);if(rte&&($=be,te=Se),_e.add(Re)}let ae;if(z?(ce||(ce=ine(z,T,k)),ae=Vd(ce.roots,(be,Se)=>_e.has(Se)?void 0:Se)):ae=re(bbe(W,T,k),be=>_e.has(be)?void 0:be),ae)return{type:10,buildInfoFile:T,inputFile:ae};if(!A){let be=TU(t,!k.useCaseSensitiveFileNames()),Se=Wbe(e,r);for(let Re of be){if(Re===T)continue;let ie=wg(e,Re),ke=Se?.get(ie);if(ke||(ke=PI(e.host,Re),Se?.set(ie,ke)),ke===Bp)return{type:3,missingOutputFileName:Re};if(kezbe(e,be,q,G));if(ue)return ue;let Ee=e.lastCachedPackageJsonLookups.get(r),ve=Ee&&K1(Ee,be=>zbe(e,be,q,G));return ve||{type:Ce?2:ne?15:1,newestInputFileTime:te,newestInputFileName:$,oldestOutputFileName:G}}function FNt(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Vbe(e,t,r){if(t===void 0)return{type:0,reason:"config file deleted mid-build"};let a=e.projectStatus.get(r);if(a!==void 0)return a;zl("SolutionBuilder::beforeUpToDateCheck");let u=ONt(e,t,r);return zl("SolutionBuilder::afterUpToDateCheck"),ih("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,u),u}function G9e(e,t,r,a,u){if(t.options.noEmit)return;let f,p=wk(t.options),y=nT(t.options);if(p&&y){u?.has(wg(e,p))||(e.options.verbose&&Kp(e,a,t.options.configFilePath),e.host.setModifiedTime(p,f=wne(e.host)),Dne(e,p,r).modifiedTime=f),e.outputTimeStamps.delete(r);return}let{host:g}=e,x=TU(t,!g.useCaseSensitiveFileNames()),k=Wbe(e,r),T=k?new Set:void 0;if(!u||x.length!==u.size){let A=!!e.options.verbose;for(let P of x){let R=wg(e,P);u?.has(R)||(A&&(A=!1,Kp(e,a,t.options.configFilePath)),g.setModifiedTime(P,f||(f=wne(e.host))),P===p?Dne(e,p,r).modifiedTime=f:k&&(k.set(R,f),T.add(R)))}}k?.forEach((A,P)=>{!u?.has(P)&&!T.has(P)&&k.delete(P)})}function MNt(e,t,r){if(!t.composite)return;let a=B.checkDefined(e.buildInfoCache.get(r));if(a.latestChangedDtsTime!==void 0)return a.latestChangedDtsTime||void 0;let u=a.buildInfo&&N5(a.buildInfo)&&a.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(ts(a.buildInfo.latestChangedDtsFile,Or(a.path))):void 0;return a.latestChangedDtsTime=u||!1,u}function K9e(e,t,r){if(e.options.dry)return Kp(e,S.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);G9e(e,t,r,S.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:Eie(t,!e.host.useCaseSensitiveFileNames())})}function RNt(e,t,r,a,u,f,p){if(!(e.options.stopBuildOnErrors&&p&4)&&u.options.composite)for(let y=a+1;ye.diagnostics.has(tv(e,x)))?g?2:1:0}function Y9e(e,t,r){zl("SolutionBuilder::beforeClean");let a=jNt(e,t,r);return zl("SolutionBuilder::afterClean"),ih("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),a}function jNt(e,t,r){let a=B9e(e,t,r);if(!a)return 3;if(UN(a))return Ine(e,a.circularDiagnostics),4;let{options:u,host:f}=e,p=u.dry?[]:void 0;for(let y of a){let g=tv(e,y),x=q4(e,y,g);if(x===void 0){nBe(e,g);continue}let k=TU(x,!f.useCaseSensitiveFileNames());if(!k.length)continue;let T=new Set(x.fileNames.map(A=>wg(e,A)));for(let A of k)T.has(wg(e,A))||f.fileExists(A)&&(p?p.push(A):(f.deleteFile(A),Hbe(e,g,0)))}return p&&Kp(e,S.A_non_dry_build_would_delete_the_following_files_Colon_0,p.map(y=>`\r + * ${y}`).join("")),0}function Hbe(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,W9e(e,t),z9e(e,t,r),j9e(e)}function tJ(e,t,r){e.reportFileChangeDetected=!0,Hbe(e,t,r),Q9e(e,250,!0)}function Q9e(e,t,r){let{hostWithWatch:a}=e;!a.setTimeout||!a.clearTimeout||(e.timerToBuildInvalidatedProject&&a.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=a.setTimeout(WNt,t,"timerToBuildInvalidatedProject",e,r))}function WNt(e,t,r){zl("SolutionBuilder::beforeBuild");let a=zNt(t,r);zl("SolutionBuilder::afterBuild"),ih("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a&&rBe(t,a)}function zNt(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),qbe(e,S.File_change_detected_Starting_incremental_compilation));let r=0,a=eJ(e),u=jbe(e,a,!1);if(u)for(u.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let f=U9e(e,a,!1);if(!f)break;if(f.kind!==1&&(t||r===5)){Q9e(e,100,!1);return}J9e(e,f,a).done(),f.kind!==1&&r++}return Rbe(e),a}function Z9e(e,t,r,a){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,Ene(e,t,()=>tJ(e,r,2),2e3,a?.watchOptions,Fd.ConfigFile,t))}function eBe(e,t,r){DU(t,r?.options,e.allWatchedExtendedConfigFiles,(a,u)=>Ene(e,a,()=>{var f;return(f=e.allWatchedExtendedConfigFiles.get(u))==null?void 0:f.projects.forEach(p=>tJ(e,p,2))},2e3,r?.watchOptions,Fd.ExtendedConfigFile),a=>wg(e,a))}function tBe(e,t,r,a){e.watch&&C5(Pbe(e.allWatchedWildcardDirectories,r),a.wildcardDirectories,(u,f)=>e.watchDirectory(u,p=>{var y;k5({watchedDirPath:wg(e,u),fileOrDirectory:p,fileOrDirectoryPath:wg(e,p),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:a.options,program:e.builderPrograms.get(r)||((y=DNt(e,r))==null?void 0:y.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:g=>e.writeLog(g),toPath:g=>wg(e,g)})||tJ(e,r,1)},f,a?.watchOptions,Fd.WildcardDirectory,t))}function Ube(e,t,r,a){e.watch&&fO(Pbe(e.allWatchedInputFiles,r),new Set(a.fileNames),{createNewValue:u=>Ene(e,u,()=>tJ(e,r,0),250,a?.watchOptions,Fd.SourceFile,t),onDeleteValue:kg})}function Jbe(e,t,r,a){!e.watch||!e.lastCachedPackageJsonLookups||fO(Pbe(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:u=>Ene(e,u,()=>tJ(e,r,0),2e3,a?.watchOptions,Fd.PackageJson,t),onDeleteValue:kg})}function VNt(e,t){if(e.watchAllProjectsPending){zl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of P5(t)){let a=tv(e,r),u=q4(e,r,a);Z9e(e,r,a,u),eBe(e,a,u),u&&(tBe(e,r,a,u),Ube(e,r,a,u),Jbe(e,r,a,u))}zl("SolutionBuilder::afterWatcherCreation"),ih("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function HNt(e){gp(e.allWatchedConfigFiles,kg),gp(e.allWatchedExtendedConfigFiles,mh),gp(e.allWatchedWildcardDirectories,t=>gp(t,mh)),gp(e.allWatchedInputFiles,t=>gp(t,kg)),gp(e.allWatchedPackageJsonFiles,t=>gp(t,kg))}function iBe(e,t,r,a,u){let f=ENt(e,t,r,a,u);return{build:(p,y,g,x)=>X9e(f,p,y,g,x),clean:p=>Y9e(f,p),buildReferences:(p,y,g,x)=>X9e(f,p,y,g,x,!0),cleanReferences:p=>Y9e(f,p,!0),getNextInvalidatedProject:p=>(V9e(f,p),jbe(f,eJ(f),!1)),getBuildOrder:()=>eJ(f),getUpToDateStatusOfProject:p=>{let y=L5(f,p),g=tv(f,y);return Vbe(f,q4(f,y,g),g)},invalidateProject:(p,y)=>Hbe(f,p,y||0),close:()=>HNt(f)}}function bf(e,t){return b3(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Kp(e,t,...r){e.host.reportSolutionBuilderStatus(Dl(t,...r))}function qbe(e,t,...r){var a,u;(u=(a=e.hostWithWatch).onWatchStatusChange)==null||u.call(a,Dl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function Ine({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function O5(e,t,r){Ine(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function nBe(e,t){O5(e,t,[e.configFileCache.get(t)])}function rBe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:a}=e,u=0,f=[];UN(t)?(oBe(e,t.buildOrder),Ine(e,t.circularDiagnostics),r&&(u+=qU(t.circularDiagnostics)),r&&(f=[...f,...$U(t.circularDiagnostics)])):(t.forEach(p=>{let y=tv(e,p);e.projectErrorsReported.has(y)||Ine(e,a.get(y)||F)}),r&&a.forEach(p=>u+=qU(p)),r&&a.forEach(p=>[...f,...$U(p)])),e.watch?qbe(e,cne(u),u):e.host.reportErrorSummary&&e.host.reportErrorSummary(u,f)}function oBe(e,t){e.options.verbose&&Kp(e,S.Projects_in_this_build_Colon_0,t.map(r=>`\r + * `+bf(e,r)).join(""))}function UNt(e,t,r){switch(r.type){case 5:return Kp(e,S.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,bf(e,t),bf(e,r.outOfDateOutputFileName),bf(e,r.newerInputFileName));case 6:return Kp(e,S.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,bf(e,t),bf(e,r.outOfDateOutputFileName),bf(e,r.newerProjectName));case 3:return Kp(e,S.Project_0_is_out_of_date_because_output_file_1_does_not_exist,bf(e,t),bf(e,r.missingOutputFileName));case 4:return Kp(e,S.Project_0_is_out_of_date_because_there_was_error_reading_file_1,bf(e,t),bf(e,r.fileName));case 7:return Kp(e,S.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,bf(e,t),bf(e,r.buildInfoFile));case 8:return Kp(e,S.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,bf(e,t),bf(e,r.buildInfoFile));case 9:return Kp(e,S.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,bf(e,t),bf(e,r.buildInfoFile));case 10:return Kp(e,S.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,bf(e,t),bf(e,r.buildInfoFile),bf(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Kp(e,S.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,bf(e,t),bf(e,r.newestInputFileName||""),bf(e,r.oldestOutputFileName||""));break;case 2:return Kp(e,S.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,bf(e,t));case 15:return Kp(e,S.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,bf(e,t));case 11:return Kp(e,S.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,bf(e,t),bf(e,r.upstreamProjectName));case 12:return Kp(e,r.upstreamProjectBlocked?S.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:S.Project_0_can_t_be_built_because_its_dependency_1_has_errors,bf(e,t),bf(e,r.upstreamProjectName));case 0:return Kp(e,S.Project_0_is_out_of_date_because_1,bf(e,t),r.reason);case 14:return Kp(e,S.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,bf(e,t),r.version,O);case 17:return Kp(e,S.Project_0_is_being_forcibly_rebuilt,bf(e,t));case 16:case 13:break;default:}}function Nne(e,t,r){e.options.verbose&&UNt(e,t,r)}var $be=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))($be||{});function JNt(e){let t=qNt();return re(e.getSourceFiles(),r=>{let a=$Nt(e,r),u=Ov(r).length;t.set(a,t.get(a)+u)}),t}function qNt(){let e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}function $Nt(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";let r=t.path;return vu(r,uee)?"TypeScript":vu(r,d4)?"JavaScript":Tl(r,".json")?"JSON":"Other"}function Ane(e,t,r){return iJ(e,r)?HN(e,!0):t}function sBe(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function iJ(e,t){return!t||typeof t.pretty>"u"?sBe(e):t.pretty}function aBe(e){return e.options.all?lc(i0,(t,r)=>U7(t.name,r.name)):Di(i0.slice(),t=>!!t.showInSimplifiedHelpView)}function Pne(e){e.write(tp(S.Version_0,O)+e.newLine)}function Lne(e){if(!sBe(e))return{bold:k=>k,blue:k=>k,blueBackground:k=>k,brightWhite:k=>k};function r(k){return`\x1B[1m${k}\x1B[22m`}let a=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),u=e.getEnvironmentVariable("WT_SESSION"),f=e.getEnvironmentVariable("TERM_PROGRAM")&&e.getEnvironmentVariable("TERM_PROGRAM")==="vscode";function p(k){return a&&!u&&!f?x(k):`\x1B[94m${k}\x1B[39m`}let y=e.getEnvironmentVariable("COLORTERM")==="truecolor"||e.getEnvironmentVariable("TERM")==="xterm-256color";function g(k){return y?`\x1B[48;5;68m${k}\x1B[39;49m`:`\x1B[44m${k}\x1B[39;49m`}function x(k){return`\x1B[97m${k}\x1B[39m`}return{bold:r,blue:p,brightWhite:x,blueBackground:g}}function cBe(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function GNt(e,t,r,a){var u;let f=[],p=Lne(e),y=cBe(t),g=R(t),x=typeof t.defaultValueDescription=="object"?tp(t.defaultValueDescription):T(t.defaultValueDescription,t.type==="list"||t.type==="listOrElement"?t.element.type:t.type),k=((u=e.getWidthOfTerminal)==null?void 0:u.call(e))??0;if(k>=80){let W="";t.description&&(W=tp(t.description)),f.push(...P(y,W,r,a,k,!0),e.newLine),A(g,t)&&(g&&f.push(...P(g.valueType,g.possibleValues,r,a,k,!1),e.newLine),x&&f.push(...P(tp(S.default_Colon),x,r,a,k,!1),e.newLine)),f.push(e.newLine)}else{if(f.push(p.blue(y),e.newLine),t.description){let W=tp(t.description);f.push(W)}if(f.push(e.newLine),A(g,t)){if(g&&f.push(`${g.valueType} ${g.possibleValues}`),x){g&&f.push(e.newLine);let W=tp(S.default_Colon);f.push(`${W} ${x}`)}f.push(e.newLine)}f.push(e.newLine)}return f;function T(W,z){return W!==void 0&&typeof z=="object"?as(z.entries()).filter(([,q])=>q===W).map(([q])=>q).join("/"):String(W)}function A(W,z){let q=["string"],G=[void 0,"false","n/a"],$=z.defaultValueDescription;return!(z.category===S.Command_line_Options||sn(q,W?.possibleValues)&&sn(G,$))}function P(W,z,q,G,$,te){let ne=[],_e=!0,ce=z,ae=$-G;for(;ce.length>0;){let Ce="";_e?(Ce=W.padStart(q),Ce=Ce.padEnd(G),Ce=te?p.blue(Ce):Ce):Ce="".padStart(G);let he=ce.substr(0,ae);ce=ce.slice(ae),ne.push(`${Ce}${he}`),_e=!1}return ne}function R(W){if(W.type==="object")return;return{valueType:z(W),possibleValues:q(W)};function z(G){switch(B.assert(G.type!=="listOrElement"),G.type){case"string":case"number":case"boolean":return tp(S.type_Colon);case"list":return tp(S.one_or_more_Colon);default:return tp(S.one_of_Colon)}}function q(G){let $;switch(G.type){case"string":case"number":case"boolean":$=G.type;break;case"list":case"listOrElement":$=q(G.element);break;case"object":$="";break;default:let te={};return G.type.forEach((ne,_e)=>{var ce;(ce=G.deprecatedKeys)!=null&&ce.has(_e)||(te[ne]||(te[ne]=[])).push(_e)}),Object.entries(te).map(([,ne])=>ne.join("/")).join(", ")}return $}}}function lBe(e,t){let r=0;for(let p of t){let y=cBe(p).length;r=r>y?r:y}let a=r+2,u=a+2,f=[];for(let p of t){let y=GNt(e,p,a,u);f=[...f,...y]}return f[f.length-2]!==e.newLine&&f.push(e.newLine),f}function F5(e,t,r,a,u,f){let p=[];if(p.push(Lne(e).bold(t)+e.newLine+e.newLine),u&&p.push(u+e.newLine+e.newLine),!a)return p=[...p,...lBe(e,r)],f&&p.push(f+e.newLine+e.newLine),p;let y=new Map;for(let g of r){if(!g.category)continue;let x=tp(g.category),k=y.get(x)??[];k.push(g),y.set(x,k)}return y.forEach((g,x)=>{p.push(`### ${x}${e.newLine}${e.newLine}`),p=[...p,...lBe(e,g)]}),f&&p.push(f+e.newLine+e.newLine),p}function KNt(e,t){let r=Lne(e),a=[...One(e,`${tp(S.tsc_Colon_The_TypeScript_Compiler)} - ${tp(S.Version_0,O)}`)];a.push(r.bold(tp(S.COMMON_COMMANDS))+e.newLine+e.newLine),p("tsc",S.Compiles_the_current_project_tsconfig_json_in_the_working_directory),p("tsc app.ts util.ts",S.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),p("tsc -b",S.Build_a_composite_project_in_the_working_directory),p("tsc --init",S.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),p("tsc -p ./path/to/tsconfig.json",S.Compiles_the_TypeScript_project_located_at_the_specified_path),p("tsc --help --all",S.An_expanded_version_of_this_information_showing_all_possible_compiler_options),p(["tsc --noEmit","tsc --target esnext"],S.Compiles_the_current_project_with_additional_settings);let u=t.filter(y=>y.isCommandLineOnly||y.category===S.Command_line_Options),f=t.filter(y=>!sn(u,y));a=[...a,...F5(e,tp(S.COMMAND_LINE_FLAGS),u,!1,void 0,void 0),...F5(e,tp(S.COMMON_COMPILER_OPTIONS),f,!1,void 0,lN(S.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(let y of a)e.write(y);function p(y,g){let x=typeof y=="string"?[y]:y;for(let k of x)a.push(" "+r.blue(k)+e.newLine);a.push(" "+tp(g)+e.newLine+e.newLine)}}function XNt(e,t,r,a){let u=[...One(e,`${tp(S.tsc_Colon_The_TypeScript_Compiler)} - ${tp(S.Version_0,O)}`)];u=[...u,...F5(e,tp(S.ALL_COMPILER_OPTIONS),t,!0,void 0,lN(S.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],u=[...u,...F5(e,tp(S.WATCH_OPTIONS),a,!1,tp(S.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],u=[...u,...F5(e,tp(S.BUILD_OPTIONS),r,!1,lN(S.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,"https://aka.ms/tsc-composite-builds"))];for(let f of u)e.write(f)}function uBe(e,t){let r=[...One(e,`${tp(S.tsc_Colon_The_TypeScript_Compiler)} - ${tp(S.Version_0,O)}`)];r=[...r,...F5(e,tp(S.BUILD_OPTIONS),t,!1,lN(S.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,"https://aka.ms/tsc-composite-builds"))];for(let a of r)e.write(a)}function One(e,t){var r;let a=Lne(e),u=[],f=((r=e.getWidthOfTerminal)==null?void 0:r.call(e))??0,p=5,y=a.blueBackground("".padStart(p)),g=a.blueBackground(a.brightWhite("TS ".padStart(p)));if(f>=t.length+p){let k=(f>120?120:f)-p;u.push(t.padEnd(k)+y+e.newLine),u.push("".padStart(k)+g+e.newLine)}else u.push(t+e.newLine),u.push(e.newLine);return u}function dBe(e,t){t.options.all?XNt(e,aBe(t),Cte,MN):KNt(e,aBe(t))}function fBe(e,t,r){let a=HN(e);if(r.options.build)return a(Dl(S.Option_build_must_be_the_first_command_line_argument)),e.exit(1);let u;if(r.options.locale&&mQ(r.options.locale,e,r.errors),r.errors.length>0)return r.errors.forEach(a),e.exit(1);if(r.options.init)return eAt(e,a,r.options,r.fileNames),e.exit(0);if(r.options.version)return Pne(e),e.exit(0);if(r.options.help||r.options.all)return dBe(e,r),e.exit(0);if(r.options.watch&&r.options.listFilesOnly)return a(Dl(S.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(r.options.project){if(r.fileNames.length!==0)return a(Dl(S.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);let y=$s(r.options.project);if(!y||e.directoryExists(y)){if(u=xr(y,"tsconfig.json"),!e.fileExists(u))return a(Dl(S.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,r.options.project)),e.exit(1)}else if(u=y,!e.fileExists(u))return a(Dl(S.The_specified_path_does_not_exist_Colon_0,r.options.project)),e.exit(1)}else if(r.fileNames.length===0){let y=$s(e.getCurrentDirectory());u=Fie(y,g=>e.fileExists(g))}if(r.fileNames.length===0&&!u)return r.options.showConfig?a(Dl(S.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,$s(e.getCurrentDirectory()))):(Pne(e),dBe(e,r)),e.exit(1);let f=e.getCurrentDirectory(),p=KH(r.options,y=>ts(y,f));if(u){let y=new Map,g=Dbe(u,p,y,r.watchOptions,e,a);if(p.showConfig)return g.errors.length!==0?(a=Ane(e,a,g.options),g.errors.forEach(a),e.exit(1)):(e.write(JSON.stringify(Ate(g,u,e),null,4)+e.newLine),e.exit(0));if(a=Ane(e,a,g.options),KZ(g.options))return Kbe(e,a)?void 0:YNt(e,t,a,g,p,r.watchOptions,y);nT(g.options)?hBe(e,t,a,g):mBe(e,t,a,g)}else{if(p.showConfig)return e.write(JSON.stringify(Ate(r,xr(f,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(a=Ane(e,a,p),KZ(p))return Kbe(e,a)?void 0:QNt(e,t,a,r.fileNames,p,r.watchOptions);nT(p)?hBe(e,t,a,{...r,options:p}):mBe(e,t,a,{...r,options:p})}}function Gbe(e){if(e.length>0&&e[0].charCodeAt(0)===45){let t=e[0].slice(e[0].charCodeAt(1)===45?2:1).toLowerCase();return t==="build"||t==="b"}return!1}function _Be(e,t,r){if(Gbe(r)){let{buildOptions:u,watchOptions:f,projects:p,errors:y}=lve(r.slice(1));if(u.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(u.generateCpuProfile,()=>pBe(e,t,u,f,p,y));else return pBe(e,t,u,f,p,y)}let a=ave(r,u=>e.readFile(u));if(a.options.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(a.options.generateCpuProfile,()=>fBe(e,t,a));else return fBe(e,t,a)}function Kbe(e,t){return!e.watchFile||!e.watchDirectory?(t(Dl(S.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0):!1}var nJ=2;function pBe(e,t,r,a,u,f){let p=Ane(e,HN(e),r);if(r.locale&&mQ(r.locale,e,f),f.length>0)return f.forEach(p),e.exit(1);if(r.help||u.length===0)return Pne(e),uBe(e,i5),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||r.clean&&!e.deleteFile)return p(Dl(S.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(r.watch){if(Kbe(e,p))return;let T=Obe(e,void 0,p,ZU(e,iJ(e,r)),Ybe(e,r));T.jsDocParsingMode=nJ;let A=bBe(e,r);gBe(e,t,T,A);let P=T.onWatchStatusChange,R=!1;T.onWatchStatusChange=(z,q,G,$)=>{P?.(z,q,G,$),R&&(z.code===S.Found_0_errors_Watching_for_file_changes.code||z.code===S.Found_1_error_Watching_for_file_changes.code)&&Qbe(W,A)};let W=Mbe(T,u,r,a);return W.build(),Qbe(W,A),R=!0,W}let y=Lbe(e,void 0,p,ZU(e,iJ(e,r)),Xbe(e,r));y.jsDocParsingMode=nJ;let g=bBe(e,r);gBe(e,t,y,g);let x=Fbe(y,u,r),k=r.clean?x.clean():x.build();return Qbe(x,g),ipe(),e.exit(k)}function Xbe(e,t){return iJ(e,t)?(r,a)=>e.write(lne(r,a,e.newLine,e)):void 0}function mBe(e,t,r,a){let{fileNames:u,options:f,projectReferences:p}=a,y=NU(f,void 0,e);y.jsDocParsingMode=nJ;let g=y.getCurrentDirectory(),x=df(y.useCaseSensitiveFileNames());f8(y,P=>Vc(P,g,x)),Zbe(e,f,!1);let k={rootNames:u,options:f,projectReferences:p,host:y,configFileParsingDiagnostics:xT(a)},T=D5(k),A=hne(T,r,P=>e.write(P+e.newLine),Xbe(e,f));return Mne(e,T,void 0),t(T),e.exit(A)}function hBe(e,t,r,a){let{options:u,fileNames:f,projectReferences:p}=a;Zbe(e,u,!1);let y=QU(u,e);y.jsDocParsingMode=nJ;let g=Ibe({host:y,system:e,rootNames:f,options:u,configFileParsingDiagnostics:xT(a),projectReferences:p,reportDiagnostic:r,reportErrorSummary:Xbe(e,u),afterProgramEmitAndDiagnostics:x=>{Mne(e,x.getProgram(),void 0),t(x)}});return e.exit(g)}function gBe(e,t,r,a){yBe(e,r,!0),r.afterProgramEmitAndDiagnostics=u=>{Mne(e,u.getProgram(),a),t(u)}}function yBe(e,t,r){let a=t.createProgram;t.createProgram=(u,f,p,y,g,x)=>(B.assert(u!==void 0||f===void 0&&!!y),f!==void 0&&Zbe(e,f,r),a(u,f,p,y,g,x))}function vBe(e,t,r){r.jsDocParsingMode=nJ,yBe(e,r,!1);let a=r.afterProgramCreate;r.afterProgramCreate=u=>{a(u),Mne(e,u.getProgram(),void 0),t(u)}}function Ybe(e,t){return ane(e,iJ(e,t))}function YNt(e,t,r,a,u,f,p){let y=Sne({configFileName:a.options.configFilePath,optionsToExtend:u,watchOptionsToExtend:f,system:e,reportDiagnostic:r,reportWatchStatus:Ybe(e,a.options)});return vBe(e,t,y),y.configFileParsingResult=a,y.extendedConfigCache=p,Cne(y)}function QNt(e,t,r,a,u,f){let p=xne({rootFiles:a,options:u,watchOptions:f,system:e,reportDiagnostic:r,reportWatchStatus:Ybe(e,u)});return vBe(e,t,p),Cne(p)}function bBe(e,t){if(e===Sd&&t.extendedDiagnostics)return OY(),ZNt()}function ZNt(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:r,clear:a};function t(u){let f=e?.get(u.name);f?f.type===2?f.value=Math.max(f.value,u.value):f.value+=u.value:(e??(e=new Map)).set(u.name,u)}function r(u){e?.forEach(u)}function a(){e=void 0}}function Qbe(e,t){if(!t)return;if(!Z_e()){Sd.write(S.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` +`);return}let r=[];r.push({name:"Projects in scope",value:P5(e.getBuildOrder()).length,type:1}),a("SolutionBuilder::Projects built"),a("SolutionBuilder::Timestamps only updates"),a("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics(f=>{f.name=`Aggregate ${f.name}`,r.push(f)}),LY((f,p)=>{Fne(f)&&r.push({name:`${u(f)} time`,value:p,type:0})}),epe(),OY(),t.clear(),CBe(Sd,r);function a(f){let p=sFe(f);p&&r.push({name:u(f),value:p,type:1})}function u(f){return f.replace("SolutionBuilder::","")}}function SBe(e,t){return e===Sd&&(t.diagnostics||t.extendedDiagnostics)}function xBe(e,t){return e===Sd&&t.generateTrace}function Zbe(e,t,r){SBe(e,t)&&OY(e),xBe(e,t)&&tpe(r?"build":"project",t.generateTrace,t.configFilePath)}function Fne(e){return Ro(e,"SolutionBuilder::")}function Mne(e,t,r){var a;let u=t.getCompilerOptions();xBe(e,u)&&((a=jn)==null||a.stopTracing());let f;if(SBe(e,u)){f=[];let x=e.getMemoryUsage?e.getMemoryUsage():-1;y("Files",t.getSourceFiles().length);let k=JNt(t);if(u.extendedDiagnostics)for(let[z,q]of k.entries())y("Lines of "+z,q);else y("Lines",Ye(k.values(),(z,q)=>z+q,0));y("Identifiers",t.getIdentifierCount()),y("Symbols",t.getSymbolCount()),y("Types",t.getTypeCount()),y("Instantiations",t.getInstantiationCount()),x>=0&&p({name:"Memory used",value:x,type:2},!0);let T=Z_e(),A=T?m3("Program"):0,P=T?m3("Bind"):0,R=T?m3("Check"):0,W=T?m3("Emit"):0;if(u.extendedDiagnostics){let z=t.getRelationCacheSizes();y("Assignability cache size",z.assignable),y("Identity cache size",z.identity),y("Subtype cache size",z.subtype),y("Strict subtype cache size",z.strictSubtype),T&&LY((q,G)=>{Fne(q)||g(`${q} time`,G,!0)})}else T&&(g("I/O read",m3("I/O Read"),!0),g("I/O write",m3("I/O Write"),!0),g("Parse time",A,!0),g("Bind time",P,!0),g("Check time",R,!0),g("Emit time",W,!0));T&&g("Total time",A+P+R+W,!1),CBe(e,f),T?r?(LY(z=>{Fne(z)||cFe(z)}),aFe(z=>{Fne(z)||lFe(z)})):epe():e.write(S.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` +`)}function p(x,k){f.push(x),k&&r?.addAggregateStatistic(x)}function y(x,k){p({name:x,value:k,type:1},!0)}function g(x,k,T){p({name:x,value:k,type:0},T)}}function CBe(e,t){let r=0,a=0;for(let u of t){u.name.length>r&&(r=u.name.length);let f=kBe(u);f.length>a&&(a=f.length)}for(let u of t)e.write(`${u.name}:`.padEnd(r+2)+kBe(u).toString().padStart(a)+e.newLine)}function kBe(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:B.assertNever(e.type)}}function eAt(e,t,r,a){let u=e.getCurrentDirectory(),f=$s(xr(u,"tsconfig.json"));if(e.fileExists(f))t(Dl(S.A_tsconfig_json_file_is_already_defined_at_Colon_0,f));else{e.writeFile(f,pve(r,a,e.newLine));let p=[e.newLine,...One(e,"Created a new tsconfig.json with:")];p.push(_ve(r,e.newLine)+e.newLine+e.newLine),p.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(let y of p)e.write(y)}}function eSe(e,t){let r=Rf(e,"strictNullChecks");return{typeFromExpression:G,serializeTypeOfDeclaration:f,serializeReturnTypeForSignature:p,serializeTypeOfExpression:u};function a(ie,ke){return ie!==void 0&&(!ke||ie&&be(ie))?!0:void 0}function u(ie,ke,De,Oe){return G(ie,ke,!1,De,Oe)??R(ie,ke)}function f(ie,ke){switch(ie.kind){case 171:return a(Yu(ie));case 169:return T(ie,ke);case 260:return k(ie,ke);case 172:return A(ie,ke);case 208:return P(ie,ke);case 277:return u(ie.expression,ke,void 0,!0);case 211:case 212:case 226:return a(Yu(ie))||P(ie,ke);case 303:return G(ie.initializer,ke)||P(ie,ke);default:B.assertNever(ie,`Node needs to be an inferrable node, found ${B.formatSyntaxKind(ie.kind)}`)}}function p(ie,ke){switch(ie.kind){case 177:return x(ie,ke);case 174:case 262:case 180:case 173:case 179:case 176:case 178:case 181:case 184:case 185:case 218:case 219:case 317:case 323:return Se(ie,ke);default:B.assertNever(ie,`Node needs to be an inferrable node, found ${B.formatSyntaxKind(ie.kind)}`)}}function y(ie){if(ie)return ie.kind===177?Up(ie):ie.parameters.length>0?Yu(ie.parameters[0]):void 0}function g(ie,ke){let De=y(ie);return!De&&ie!==ke.firstAccessor&&(De=y(ke.firstAccessor)),!De&&ke.secondAccessor&&ie!==ke.secondAccessor&&(De=y(ke.secondAccessor)),De}function x(ie,ke){let De=t.getAllAccessorDeclarations(ie),Oe=g(ie,De);return Oe?a(Oe):De.getAccessor?Se(De.getAccessor,ke):!1}function k(ie,ke){let De=Yu(ie);if(De)return a(De);let Oe;return ie.initializer&&(t.isExpandoFunctionDeclaration(ie)||(Oe=G(ie.initializer,ke,void 0,void 0,Mhe(ie)))),Oe??P(ie,ke)}function T(ie,ke){let De=ie.parent;if(De.kind===178)return x(De,ke);let Oe=Yu(ie),we=t.requiresAddingImplicitUndefined(ie,ke.enclosingDeclaration),Ae;return Oe?Ae=a(Oe,we):ie.initializer&&et(ie.name)&&(Ae=G(ie.initializer,ke,void 0,we)),Ae??P(ie,ke)}function A(ie,ke){let De=Yu(ie);if(De)return a(De);let Oe;if(ie.initializer){let we=IM(ie);Oe=G(ie.initializer,ke,void 0,void 0,we)}return Oe??P(ie,ke)}function P(ie,ke){return ke.tracker.reportInferenceFallback(ie),!1}function R(ie,ke){return ke.tracker.reportInferenceFallback(ie),!1}function W(ie,ke){return ke.tracker.reportInferenceFallback(ie),!1}function z(ie,ke,De){return ie.kind===177?Se(ie,De):(De.tracker.reportInferenceFallback(ie),!1)}function q(ie,ke,De,Oe){return qg(ke)?G(ie,De,!0,Oe):(Oe&&!be(ke)&&De.tracker.reportInferenceFallback(ke),a(ke))}function G(ie,ke,De=!1,Oe=!1,we=!1){switch(ie.kind){case 217:return TE(ie)?q(ie.expression,JO(ie),ke,Oe):G(ie.expression,ke,De,Oe);case 80:if(t.isUndefinedIdentifierExpression(ie))return!0;break;case 106:return!0;case 219:case 218:return $(ie,ke);case 216:case 234:let Ae=ie;return q(Ae.expression,Ae.type,ke,Oe);case 224:let Fe=ie;if(oH(Fe)&&(Fe.operand.kind===10||Fe.operand.kind===9))return ve();break;case 9:return ve();case 228:if(!De&&!we)return!0;break;case 15:case 11:return ve();case 10:return ve();case 112:case 97:return ve();case 209:return ne(ie,ke,De);case 210:return ce(ie,ke,De);case 231:return R(ie,ke)}}function $(ie,ke){let De=a(ie.type)??Se(ie,ke),Oe=he(ie.typeParameters),we=ie.parameters.every(Ae=>Ce(Ae,ke));return De&&Oe&&we}function te(ie,ke,De){if(!De)return ke.tracker.reportInferenceFallback(ie),!1;for(let Oe of ie.elements)if(Oe.kind===230)return ke.tracker.reportInferenceFallback(Oe),!1;return!0}function ne(ie,ke,De){if(!te(ie,ke,De))return!1;let Oe=!0;for(let we of ie.elements)B.assert(we.kind!==230),we.kind!==232&&(Oe=(G(we,ke,De)??R(we,ke))&&Oe);return!0}function _e(ie,ke){let De=!0;for(let Oe of ie.properties){if(Oe.flags&262144){De=!1;break}if(Oe.kind===304||Oe.kind===305)ke.tracker.reportInferenceFallback(Oe),De=!1;else if(Oe.name.flags&262144){De=!1;break}else if(Oe.name.kind===81)De=!1;else if(Oe.name.kind===167){let we=Oe.name.expression;!oH(we,!1)&&!t.isDefinitelyReferenceToGlobalSymbolObject(we)&&(ke.tracker.reportInferenceFallback(Oe.name),De=!1)}}return De}function ce(ie,ke,De){if(!_e(ie,ke))return!1;let Oe=!0;for(let we of ie.properties){B.assert(!jf(we)&&!Qv(we));let Ae=we.name;switch(we.kind){case 174:Oe=!!ue(we,Ae,ke)&&Oe;break;case 303:Oe=!!ae(we,Ae,ke,De)&&Oe;break;case 178:case 177:Oe=!!Ee(we,Ae,ke)&&Oe;break}}return Oe}function ae(ie,ke,De,Oe){return G(ie.initializer,De,Oe)??P(ie,De)}function Ce(ie,ke){return T(ie,ke)}function he(ie){return ie?.every(ke=>a(ke.constraint)&&a(ke.default))??!0}function ue(ie,ke,De){let Oe=Se(ie,De),we=he(ie.typeParameters),Ae=ie.parameters.every(Fe=>Ce(Fe,De));return Oe&&we&&Ae}function Ee(ie,ke,De){let Oe=t.getAllAccessorDeclarations(ie),we=Oe.getAccessor&&y(Oe.getAccessor),Ae=Oe.setAccessor&&y(Oe.setAccessor);if(we!==void 0&&Ae!==void 0){let Fe=ie.parameters.every(Tt=>Ce(Tt,De));return Yb(ie)?Fe&&a(we):Fe}else if(Oe.firstAccessor===ie){let Fe=we??Ae;return Fe?a(Fe):z(ie,Oe,De)}return!1}function ve(){return!0}function be(ie){return!r||Q_(ie.kind)||ie.kind===201||ie.kind===184||ie.kind===185||ie.kind===188||ie.kind===189||ie.kind===187||ie.kind===203||ie.kind===197?!0:ie.kind===196?be(ie.type):ie.kind===192||ie.kind===193?ie.types.every(be):!1}function Se(ie,ke){let De,Oe=Up(ie);return Oe&&(De=a(Oe)),!De&&QI(ie)&&(De=Re(ie,ke)),De??W(ie,ke)}function Re(ie,ke){let De;if(ie&&!Ul(ie.body)){if(Vu(ie)&3)return;let Oe=ie.body;Oe&&Ds(Oe)?tS(Oe,we=>{if(!De)De=we.expression;else return De=void 0,!0}):De=Oe}if(De)return G(De,ke)}}var cy={};_(cy,{NameValidationResult:()=>OBe,discoverTypings:()=>rAt,isTypingUpToDate:()=>IBe,loadSafeList:()=>iAt,loadTypesMap:()=>nAt,nodeCoreModuleList:()=>ABe,nodeCoreModules:()=>PBe,nonRelativeModuleNameForTypingCache:()=>LBe,renderPackageNameValidationFailure:()=>sAt,validatePackageName:()=>oAt});var rJ="action::set",oJ="action::invalidate",sJ="action::packageInstalled",Rne="event::typesRegistry",Bne="event::beginInstallTypes",jne="event::endInstallTypes",tSe="event::initializationFailed",M5="action::watchTypingLocations",Wne;(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(Wne||(Wne={}));function wBe(e){return Sd.args.includes(e)}function TBe(e){let t=Sd.args.indexOf(e);return t>=0&&t`node:${e}`),ABe=[...NBe,...tAt],PBe=new Set(ABe);function LBe(e){return PBe.has(e)?"node":e}function iAt(e,t){let r=r5(t,a=>e.readFile(a));return new Map(Object.entries(r.config))}function nAt(e,t){var r;let a=r5(t,u=>e.readFile(u));if((r=a.config)!=null&&r.simpleMap)return new Map(Object.entries(a.config.simpleMap))}function rAt(e,t,r,a,u,f,p,y,g,x){if(!p||!p.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let k=new Map;r=ro(r,te=>{let ne=$s(te);if($v(ne))return ne});let T=[];p.include&&q(p.include,"Explicitly included types");let A=p.exclude||[];if(!x.types){let te=new Set(r.map(Or));te.add(a),te.forEach(ne=>{G(ne,"bower.json","bower_components",T),G(ne,"package.json","node_modules",T)})}if(p.disableFilenameBasedTypeAcquisition||$(r),y){let te=hs(y.map(LBe),Mw,Ff);q(te,"Inferred typings from unresolved imports")}for(let te of A)k.delete(te)&&t&&t(`Typing for ${te} is in exclude list, will be ignored.`);f.forEach((te,ne)=>{let _e=g.get(ne);k.get(ne)===!1&&_e!==void 0&&IBe(te,_e)&&k.set(ne,te.typingLocation)});let P=[],R=[];k.forEach((te,ne)=>{te?R.push(te):P.push(ne)});let W={cachedTypingPaths:R,newTypingNames:P,filesToWatch:T};return t&&t(`Finished typings discovery:${Ek(W)}`),W;function z(te){k.has(te)||k.set(te,!1)}function q(te,ne){t&&t(`${ne}: ${JSON.stringify(te)}`),re(te,z)}function G(te,ne,_e,ce){let ae=xr(te,ne),Ce,he;e.fileExists(ae)&&(ce.push(ae),Ce=r5(ae,be=>e.readFile(be)).config,he=vo([Ce.dependencies,Ce.devDependencies,Ce.optionalDependencies,Ce.peerDependencies],mg),q(he,`Typing names in '${ae}' dependencies`));let ue=xr(te,_e);if(ce.push(ue),!e.directoryExists(ue))return;let Ee=[],ve=he?he.map(be=>xr(ue,be,ne)):e.readDirectory(ue,[".json"],void 0,void 0,3).filter(be=>{if(Xu(be)!==ne)return!1;let Se=zd($s(be)),Re=Se[Se.length-3][0]==="@";return Re&&rx(Se[Se.length-4])===_e||!Re&&rx(Se[Se.length-3])===_e});t&&t(`Searching for typing names in ${ue}; all files: ${JSON.stringify(ve)}`);for(let be of ve){let Se=$s(be),ie=r5(Se,De=>e.readFile(De)).config;if(!ie.name)continue;let ke=ie.types||ie.typings;if(ke){let De=ts(ke,Or(Se));e.fileExists(De)?(t&&t(` Package '${ie.name}' provides its own types.`),k.set(ie.name,De)):t&&t(` Package '${ie.name}' provides its own types but they are missing.`)}else Ee.push(ie.name)}q(Ee," Found package names")}function $(te){let ne=ro(te,ce=>{if(!$v(ce))return;let ae=A_(rx(Xu(ce))),Ce=EY(ae);return u.get(Ce)});ne.length&&q(ne,"Inferred typings from file names"),Lt(te,ce=>Tl(ce,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),z("react"))}}var OBe=(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))(OBe||{}),FBe=214;function oAt(e){return iSe(e,!0)}function iSe(e,t){if(!e)return 1;if(e.length>FBe)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){let a=iSe(r[1],!1);if(a!==0)return{name:r[1],isScopeName:!0,result:a};let u=iSe(r[2],!1);return u!==0?{name:r[2],isScopeName:!1,result:u}:0}}return encodeURIComponent(e)!==e?5:0}function sAt(e,t){return typeof e=="object"?MBe(t,e.result,e.name,e.isScopeName):MBe(t,e,t,!1)}function MBe(e,t,r,a){let u=a?"Scope":"Package";switch(t){case 1:return`'${e}':: ${u} name '${r}' cannot be empty`;case 2:return`'${e}':: ${u} name '${r}' should be less than ${FBe} characters`;case 3:return`'${e}':: ${u} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${u} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${u} name '${r}' contains non URI safe characters`;case 0:return B.fail();default:B.assertNever(t)}}var aJ;(e=>{class t{constructor(u){this.text=u}getText(u,f){return u===0&&f===this.text.length?this.text:this.text.substring(u,f)}getLength(){return this.text.length}getChangeRange(){}}function r(a){return new t(a)}e.fromString=r})(aJ||(aJ={}));var nSe=(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))(nSe||{}),rSe=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(rSe||{}),oSe=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(oSe||{}),Xh={},sSe=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(sSe||{}),zne=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(zne||{}),Vne=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Vne||{}),aSe=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(aSe||{}),cSe=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(cSe||{}),lSe=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(lSe||{}),Hne=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(Hne||{});function cJ(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` +`,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,indentSwitchCase:!0}}var RBe=cJ(` +`),lJ=(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))(lJ||{}),uSe=(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))(uSe||{}),dSe=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(dSe||{}),fSe=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(fSe||{}),_Se=(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))(_Se||{}),pSe=(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))(pSe||{}),mSe=(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.variableUsingElement="using",e.variableAwaitUsingElement="await using",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))(mSe||{}),hSe=(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))(hSe||{}),gSe=(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))(gSe||{}),Une=(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))(Une||{}),m_=Rv(99,!0),ySe=(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))(ySe||{});function uJ(e){switch(e.kind){case 260:return Jn(e)&&vQ(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 346:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return d_(e)||ab(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 307:return 5}return 7}function PE(e){e=rre(e);let t=e.parent;return e.kind===307?1:ll(t)||Gf(t)||rb(t)||F_(t)||Zg(t)||Dd(t)&&e===t.name?7:dJ(e)?aAt(e):Xy(e)?uJ(t):G_(e)&&Ri(e,Im(zO,WI,vk))?7:dAt(e)?2:cAt(e)?4:Sl(t)?(B.assert(Gh(t.parent)),2):dS(t)?3:1}function aAt(e){let t=e.kind===166?e:P_(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function dJ(e){for(;e.parent.kind===166;)e=e.parent;return sE(e.parent)&&e.parent.moduleReference===e}function cAt(e){return lAt(e)||uAt(e)}function lAt(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function uAt(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){let a=t.parent.parent.parent;return a.kind===263&&t.parent.parent.token===119||a.kind===264&&t.parent.parent.token===96}return!1}function dAt(e){switch(sO(e)&&(e=e.parent),e.kind){case 110:return!Kg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return U0(e.parent)}return!1}function Jne(e,t=!1,r=!1){return R5(e,Gs,$ne,t,r)}function v8(e,t=!1,r=!1){return R5(e,uT,$ne,t,r)}function qne(e,t=!1,r=!1){return R5(e,W0,$ne,t,r)}function vSe(e,t=!1,r=!1){return R5(e,pk,fAt,t,r)}function bSe(e,t=!1,r=!1){return R5(e,Td,$ne,t,r)}function SSe(e,t=!1,r=!1){return R5(e,Mf,_At,t,r)}function $ne(e){return e.expression}function fAt(e){return e.tag}function _At(e){return e.tagName}function R5(e,t,r,a,u){let f=a?pAt(e):fJ(e);return u&&(f=Cu(f)),!!f&&!!f.parent&&t(f.parent)&&r(f.parent)===f}function fJ(e){return $4(e)?e.parent:e}function pAt(e){return $4(e)||Yne(e)?e.parent:e}function _J(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function B5(e,t){return lr(e.expression)?e.expression.name.text===t:!1}function j5(e){var t;return et(e)&&((t=kr(e.parent,A3))==null?void 0:t.label)===e}function Gne(e){var t;return et(e)&&((t=kr(e.parent,Px))==null?void 0:t.label)===e}function Kne(e){return Gne(e)||j5(e)}function Xne(e){var t;return((t=kr(e.parent,BP))==null?void 0:t.tagName)===e}function xSe(e){var t;return((t=kr(e.parent,P_))==null?void 0:t.right)===e}function $4(e){var t;return((t=kr(e.parent,lr))==null?void 0:t.name)===e}function Yne(e){var t;return((t=kr(e.parent,nl))==null?void 0:t.argumentExpression)===e}function Qne(e){var t;return((t=kr(e.parent,Hu))==null?void 0:t.name)===e}function Zne(e){var t;return et(e)&&((t=kr(e.parent,vs))==null?void 0:t.name)===e}function pJ(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return cs(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function CSe(e){return nk(e.parent.parent)&&q3(e.parent.parent)===e}function LE(e){for(Vh(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 307:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function CT(e){switch(e.kind){case 307:return dd(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 338:case 346:return"type";case 266:return"enum";case 260:return t(e);case 208:return t($0(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:let{initializer:r}=e;return vs(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Ar(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let a=Su(e),{right:u}=e;switch(a){case 7:case 8:case 9:case 0:return"";case 1:case 2:let p=CT(u);return p===""?"const":p;case 3:return Yc(u)?"method":"property";case 4:return"property";case 5:return Yc(u)?"method":"property";case 6:return"local class";default:return""}case 80:return Zg(e.parent)?"alias":"";case 277:let f=CT(e.expression);return f===""?"const":f;default:return""}function t(r){return UP(r)?"const":Bz(r)?"let":"var"}}function G4(e){switch(e.kind){case 110:return!0;case 80:return MZ(e)&&e.parent.kind===169;default:return!1}}var mAt=/^\/\/\/\s*=r.end}function z5(e,t,r){return e.pos<=t&&e.end>=r}function S8(e,t,r){return hJ(e.pos,e.end,t,r)}function mJ(e,t,r,a){return hJ(e.getStart(t),e.end,r,a)}function hJ(e,t,r,a){let u=Math.max(e,r),f=Math.min(t,a);return ua.kind===t)}function gJ(e){let t=St(e.parent.getChildren(),r=>T4(r)&&Xp(r,e));return B.assert(!t||sn(t.getChildren(),e)),t}function BBe(e){return e.kind===90}function hAt(e){return e.kind===86}function gAt(e){return e.kind===100}function yAt(e){if(pf(e))return e.name;if(Zu(e)){let t=e.modifiers&&St(e.modifiers,BBe);if(t)return t}if(Qu(e)){let t=St(e.getChildren(),hAt);if(t)return t}}function vAt(e){if(pf(e))return e.name;if(xu(e)){let t=St(e.modifiers,BBe);if(t)return t}if(Yc(e)){let t=St(e.getChildren(),gAt);if(t)return t}}function bAt(e){let t;return Ri(e,r=>(io(r)&&(t=r),!P_(r.parent)&&!io(r.parent)&&!Ww(r.parent))),t}function yJ(e,t){if(e.flags&16777216)return;let r=OJ(e,t);if(r)return r;let a=bAt(e);return a&&t.getTypeAtLocation(a)}function SAt(e,t){if(!t)switch(e.kind){case 263:case 231:return yAt(e);case 262:case 218:return vAt(e);case 176:return e}if(pf(e))return e.name}function jBe(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(iy(e.importClause.namedBindings)){let r=Fh(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Xv(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function WBe(e,t){if(e.exportClause){if(_h(e.exportClause))return Fh(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Zy(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function xAt(e){if(e.types.length===1)return e.types[0].expression}function zBe(e,t){let{parent:r}=e;if(xa(e)&&(t||e.kind!==90)?Kh(r)&&sn(r.modifiers,e):e.kind===86?Zu(r)||Qu(e):e.kind===100?xu(r)||Yc(e):e.kind===120?vf(r):e.kind===94?dT(r):e.kind===156?$h(r):e.kind===145||e.kind===144?Hu(r):e.kind===102?Dd(r):e.kind===139?Lm(r):e.kind===153&&qp(r)){let a=SAt(r,t);if(a)return a}if((e.kind===115||e.kind===87||e.kind===121)&&ef(r)&&r.declarations.length===1){let a=r.declarations[0];if(et(a.name))return a.name}if(e.kind===156){if(Zg(r)&&r.isTypeOnly){let a=jBe(r.parent,t);if(a)return a}if(Nu(r)&&r.isTypeOnly){let a=WBe(r,t);if(a)return a}}if(e.kind===130){if(F_(r)&&r.propertyName||Gf(r)&&r.propertyName||Xv(r)||Zy(r))return r.name;if(Nu(r)&&r.exportClause&&Zy(r.exportClause))return r.exportClause.name}if(e.kind===102&&ql(r)){let a=jBe(r,t);if(a)return a}if(e.kind===95){if(Nu(r)){let a=WBe(r,t);if(a)return a}if(ll(r))return Cu(r.expression)}if(e.kind===149&&rb(r))return r.expression;if(e.kind===161&&(ql(r)||Nu(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&$p(r)&&r.token===e.kind){let a=xAt(r);if(a)return a}if(e.kind===96){if(Sl(r)&&r.constraint&&pm(r.constraint))return r.constraint.typeName;if(cT(r)&&pm(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&hE(r))return r.typeParameter.name;if(e.kind===103&&Sl(r)&&yE(r.parent))return r.name;if(e.kind===143&&_k(r)&&r.operator===143&&pm(r.type))return r.type.typeName;if(e.kind===148&&_k(r)&&r.operator===148&&zR(r.type)&&pm(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&uT(r)||e.kind===116&&TN(r)||e.kind===114&&b4(r)||e.kind===135&&Ax(r)||e.kind===127&&SH(r)||e.kind===91&&cye(r))&&r.expression)return Cu(r.expression);if((e.kind===103||e.kind===104)&&Yn(r)&&r.operatorToken===e)return Cu(r.right);if(e.kind===130&&OO(r)&&pm(r.type))return r.type.typeName;if(e.kind===103&&CH(r)||e.kind===165&&VR(r))return Cu(r.expression)}return e}function rre(e){return zBe(e,!1)}function vJ(e){return zBe(e,!0)}function ip(e,t){return K4(e,t,r=>q0(r)||Q_(r.kind)||xo(r))}function K4(e,t,r){return VBe(e,t,!1,r,!1)}function go(e,t){return VBe(e,t,!0,void 0,!1)}function VBe(e,t,r,a,u){let f=e,p;e:for(;;){let g=f.getChildren(e),x=Ub(g,t,(k,T)=>T,(k,T)=>{let A=g[k].getEnd();if(At?1:y(g[k],P,A)?g[k-1]&&y(g[k-1])?1:0:a&&P===t&&g[k-1]&&g[k-1].getEnd()===t&&y(g[k-1])?1:-1});if(p)return p;if(x>=0&&g[x]){f=g[x];continue e}return f}function y(g,x,k){if(k??(k=g.getEnd()),kt))return!1;if(tr.getStart(e)&&t(f.pos<=e.pos&&f.end>e.end||f.pos===e.end)&&PSe(f,r)?a(f):void 0)}}function fd(e,t,r,a){let u=f(r||t);return B.assert(!(u&&bJ(u))),u;function f(p){if(HBe(p)&&p.kind!==1)return p;let y=p.getChildren(t),g=Ub(y,e,(k,T)=>T,(k,T)=>e=y[k-1].end?0:1:-1);if(g>=0&&y[g]){let k=y[g];if(e=e||!PSe(k,t)||bJ(k)){let P=DSe(y,g,t,p.kind);return P?!a&&Sz(P)&&P.getChildren(t).length?f(P):ESe(P,t):void 0}else return f(k)}B.assert(r!==void 0||p.kind===307||p.kind===1||Sz(p));let x=DSe(y,y.length,t,p.kind);return x&&ESe(x,t)}}function HBe(e){return MI(e)&&!bJ(e)}function ESe(e,t){if(HBe(e))return e;let r=e.getChildren(t);if(r.length===0)return e;let a=DSe(r,r.length,t,e.kind);return a&&ESe(a,t)}function DSe(e,t,r,a){for(let u=t-1;u>=0;u--){let f=e[u];if(bJ(f))u===0&&(a===12||a===285)&&B.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(PSe(e[u],r))return e[u]}}function JN(e,t,r=fd(t,e)){if(r&&TQ(r)){let a=r.getStart(e),u=r.getEnd();if(ar.getStart(e)}function NSe(e,t){let r=go(e,t);return!!(yN(r)||r.kind===19&&jO(r.parent)&&Yv(r.parent.parent)||r.kind===30&&Mf(r.parent)&&Yv(r.parent.parent))}function SJ(e,t){function r(a){for(;a;)if(a.kind>=285&&a.kind<=294||a.kind===12||a.kind===30||a.kind===32||a.kind===80||a.kind===20||a.kind===19||a.kind===44)a=a.parent;else if(a.kind===284){if(t>a.getStart(e))return!0;a=a.parent}else return!1;return!1}return r(go(e,t))}function xJ(e,t,r){let a=ua(e.kind),u=ua(t),f=e.getFullStart(),p=r.text.lastIndexOf(u,f);if(p===-1)return;if(r.text.lastIndexOf(a,f-1)!!f.typeParameters&&f.typeParameters.length>=t)}function are(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,a=0,u=0;for(;r;){switch(r.kind){case 30:if(r=fd(r.getFullStart(),t),r&&r.kind===29&&(r=fd(r.getFullStart(),t)),!r||!et(r))return;if(!a)return Xy(r)?void 0:{called:r,nTypeArguments:u};a--;break;case 50:a=3;break;case 49:a=2;break;case 32:a++;break;case 20:if(r=xJ(r,19,t),!r)return;break;case 22:if(r=xJ(r,21,t),!r)return;break;case 24:if(r=xJ(r,23,t),!r)return;break;case 28:u++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(io(r))break;return}r=fd(r.getFullStart(),t)}}function hS(e,t,r){return td.getRangeOfEnclosingComment(e,t,void 0,r)}function ASe(e,t){let r=go(e,t);return!!Ri(r,t0)}function PSe(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function x8(e,t=0){let r=[],a=mf(e)?pQ(e)&~t:0;return a&2&&r.push("private"),a&4&&r.push("protected"),a&1&&r.push("public"),(a&256||Yl(e))&&r.push("static"),a&64&&r.push("abstract"),a&32&&r.push("export"),a&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function LSe(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(vs(e)||e.kind===263||e.kind===264)return e.typeParameters}function CJ(e){return e===2||e===3}function cre(e){return!!(e===11||e===14||fx(e))}function UBe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function OSe(e){if(!e.isIntersection())return!1;let{types:t,checker:r}=e;return t.length===2&&(UBe(r,t[0],t[1])||UBe(r,t[1],t[0]))}function U5(e,t,r){return fx(e.kind)&&e.getStart(r){let r=ac(t);return!e[r]&&(e[r]=!0)}}function qN(e){return e.getText(0,e.getLength())}function q5(e,t){let r="";for(let a=0;a!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function BSe(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function hre(e){return!!e.module||Oa(e)>=2||!!e.noEmit}function $N(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Ps(t,t.readFile),useCaseSensitiveFileNames:Ps(t,t.useCaseSensitiveFileNames),getSymlinkCache:Ps(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Ps(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Ps(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:Ps(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:r=>e.getDefaultResolutionModeForFile(r),getModeForResolutionAtIndex:(r,a)=>e.getModeForResolutionAtIndex(r,a)}}function gre(e,t){return{...$N(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function EJ(e){return e===2||e>=3&&e<=99||e===100}function Wx(e,t,r,a,u){return U.createImportDeclaration(void 0,e||t?U.createImportClause(!!u,e,t&&t.length?U.createNamedImports(t):void 0):void 0,typeof r=="string"?k8(r,a):r,void 0)}function k8(e,t){return U.createStringLiteral(e,t===0)}var jSe=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(jSe||{});function yre(e,t){return eV(e,t)?1:0}function mm(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=Gy(e)&&e.imports&&St(e.imports,a=>Da(a)&&!Uc(a.parent));return r?yre(r,e):1}}function vre(e){switch(e){case 0:return"'";case 1:return'"';default:return B.assertNever(e)}}function bre(e){let t=DJ(e);return t===void 0?void 0:So(t)}function DJ(e){return e.escapedName!=="default"?e.escapedName:Le(e.declarations,t=>{let r=cs(t);return r&&r.kind===80?r.escapedText:void 0})}function IJ(e){return xc(e)&&(rb(e.parent)||ql(e.parent)||oy(e.parent)||Y_(e.parent,!1)&&e.parent.arguments[0]===e||fm(e.parent)&&e.parent.arguments[0]===e)}function G5(e){return Wa(e)&&Om(e.parent)&&et(e.name)&&!e.propertyName}function NJ(e,t){let r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function K5(e,t,r){if(e)for(;e.parent;){if(mo(e.parent)||!kAt(r,e.parent,t))return e;e=e.parent}}function kAt(e,t,r){return dQ(e,t.getStart(r))&&t.getEnd()<=Vl(e)}function Y4(e,t){return Kh(e)?St(e.modifiers,r=>r.kind===t):void 0}function Sre(e,t,r,a,u){var f;let y=(ds(r)?r[0]:r).kind===243?zM:UI,g=Di(t.statements,y),{comparer:x,isSorted:k}=Fk.getOrganizeImportsStringComparerWithDetection(g,u),T=ds(r)?lc(r,(A,P)=>Fk.compareImportsOrRequireStatements(A,P,x)):[r];if(!g?.length){if(Gy(t))e.insertNodesAtTopOfFile(t,T,a);else for(let A of T)e.insertStatementsInNewFile(t.fileName,[A],(f=El(A))==null?void 0:f.getSourceFile());return}if(B.assert(Gy(t)),g&&k)for(let A of T){let P=Fk.getImportDeclarationInsertionIndex(g,A,x);if(P===0){let R=g[0]===t.statements[0]?{leadingTriviaOption:Vn.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,g[0],A,!1,R)}else{let R=g[P-1];e.insertNodeAfter(t,R,A)}}else{let A=Lc(g);A?e.insertNodesAfter(t,A,T):e.insertNodesAtTopOfFile(t,T,a)}}function xre(e,t){return B.assert(e.isTypeOnly),ea(e.getChildAt(0,t),qBe)}function Q4(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function Cre(e,t,r){return(r?Mw:sx)(e.fileName,t.fileName)&&Q4(e.textSpan,t.textSpan)}function kre(e){return(t,r)=>Cre(t,r,e)}function wre(e,t){if(e){for(let r=0;rTo(r)?!0:Wa(r)||Om(r)||fS(r)?!1:"quit")}var zSe=wAt();function wAt(){let e=j3*10,t,r,a,u;k();let f=T=>y(T,17);return{displayParts:()=>{let T=t.length&&t[t.length-1].text;return u>e&&T&&T!=="..."&&(Fv(T.charCodeAt(T.length-1))||t.push(vp(" ",16)),t.push(vp("...",15))),t},writeKeyword:T=>y(T,5),writeOperator:T=>y(T,12),writePunctuation:T=>y(T,15),writeTrailingSemicolon:T=>y(T,15),writeSpace:T=>y(T,16),writeStringLiteral:T=>y(T,8),writeParameter:T=>y(T,13),writeProperty:T=>y(T,14),writeLiteral:T=>y(T,8),writeSymbol:g,writeLine:x,write:f,writeComment:f,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:la,getIndent:()=>a,increaseIndent:()=>{a++},decreaseIndent:()=>{a--},clear:k};function p(){if(!(u>e)&&r){let T=dV(a);T&&(u+=T.length,t.push(vp(T,16))),r=!1}}function y(T,A){u>e||(p(),u+=T.length,t.push(vp(T,A)))}function g(T,A){u>e||(p(),u+=T.length,t.push(TAt(T,A)))}function x(){u>e||(u+=1,t.push(Z4()),r=!0)}function k(){t=[],r=!0,a=0,u=0}}function TAt(e,t){return vp(e,r(t));function r(a){let u=a.flags;return u&3?Ere(a)?13:9:u&4||u&32768||u&65536?14:u&8?19:u&16?20:u&32?1:u&64?4:u&384?2:u&1536?11:u&8192?10:u&262144?18:u&524288||u&2097152?0:17}}function vp(e,t){return{text:e,kind:lJ[t]}}function tu(){return vp(" ",16)}function Yp(e){return vp(ua(e),5)}function Yf(e){return vp(ua(e),15)}function T8(e){return vp(ua(e),12)}function VSe(e){return vp(e,13)}function HSe(e){return vp(e,14)}function Dre(e){let t=K2(e);return t===void 0?Bm(e):Yp(t)}function Bm(e){return vp(e,17)}function USe(e){return vp(e,0)}function JSe(e){return vp(e,18)}function qSe(e){return vp(e,24)}function EAt(e,t){return{text:e,kind:lJ[23],target:{fileName:en(t).fileName,textSpan:B_(t)}}}function $Be(e){return vp(e,22)}function $Se(e,t){var r;let a=hye(e)?"link":gye(e)?"linkcode":"linkplain",u=[$Be(`{@${a} `)];if(!e.name)e.text&&u.push(qSe(e.text));else{let f=t?.getSymbolAtLocation(e.name),p=f&&t?Are(f,t):void 0,y=IAt(e.text),g=Jl(e.name)+e.text.slice(0,y),x=DAt(e.text.slice(y)),k=p?.valueDeclaration||((r=p?.declarations)==null?void 0:r[0]);if(k)u.push(EAt(g,k)),x&&u.push(qSe(x));else{let T=y===0||e.text.charCodeAt(y)===124&&g.charCodeAt(g.length-1)!==32?" ":"";u.push(qSe(g+T+x))}}return u.push($Be("}")),u}function DAt(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,a++,!r)return a}return 0}var NAt=` +`;function cb(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||NAt}function Z4(){return vp(` +`,6)}function Dk(e){try{return e(zSe),zSe.displayParts()}finally{zSe.clear()}}function X5(e,t,r,a=0){return Dk(u=>{e.writeType(t,r,a|1024|16384,u)})}function E8(e,t,r,a,u=0){return Dk(f=>{e.writeSymbol(t,r,a,u|8,f)})}function Ire(e,t,r,a=0){return a|=25632,Dk(u=>{e.writeSignature(t,r,a,void 0,u)})}function GSe(e){return!!e.parent&&QC(e.parent)&&e.parent.propertyName===e}function Nre(e,t){return UV(e,t.getScriptKind&&t.getScriptKind(e))}function Are(e,t){let r=e;for(;AAt(r)||jv(r)&&r.links.target;)jv(r)&&r.links.target?r=r.links.target:r=hf(r,t);return r}function AAt(e){return(e.flags&2097152)!==0}function KSe(e,t){return Ca(hf(e,t))}function XSe(e,t){for(;Fv(e.charCodeAt(t));)t+=1;return t}function PJ(e,t){for(;t>-1&&j0(e.charCodeAt(t));)t-=1;return t+1}function _c(e,t=!0){let r=e&&GBe(e);return r&&!t&&Qp(r),tb(r,!1)}function Y5(e,t,r){let a=r(e);return a?cr(a,e):a=GBe(e,r),a&&!t&&Qp(a),a}function GBe(e,t){let r=t?f=>Y5(f,!0,t):_c,u=Qi(e,r,void 0,t?f=>f&&Pre(f,!0,t):f=>f&&wT(f),r);if(u===e){let f=Da(e)?cr(U.createStringLiteralFromNode(e),e):Z_(e)?cr(U.createNumericLiteral(e.text,e.numericLiteralFlags),e):U.cloneNode(e);return Ft(f,e)}return u.parent=void 0,u}function wT(e,t=!0){if(e){let r=U.createNodeArray(e.map(a=>_c(a,t)),e.hasTrailingComma);return Ft(r,e),r}return e}function Pre(e,t,r){return U.createNodeArray(e.map(a=>Y5(a,t,r)),e.hasTrailingComma)}function Qp(e){Lre(e),YSe(e)}function Lre(e){QSe(e,1024,LAt)}function YSe(e){QSe(e,2048,YZ)}function OE(e,t){let r=e.getSourceFile(),a=r.text;PAt(e,a)?e6(e,t,r):Z5(e,t,r),D8(e,t,r)}function PAt(e,t){let r=e.getFullStart(),a=e.getStart();for(let u=r;ut)}function FE(e,t){let r=e;for(let a=1;!Az(t,r);a++)r=`${e}_${a}`;return r}function Q5(e,t,r,a){let u=0,f=-1;for(let{fileName:p,textChanges:y}of e){B.assert(p===t);for(let g of y){let{span:x,newText:k}=g,T=OAt(k,Yy(r));if(T!==-1&&(f=x.start+u+T,!a))return f;u+=k.length-x.length}}return B.assert(a),B.assert(f>=0),f}function e6(e,t,r,a,u){eM(r.text,e.pos,ZSe(t,r,a,u,DO))}function D8(e,t,r,a,u){tM(r.text,e.end,ZSe(t,r,a,u,lH))}function Z5(e,t,r,a,u){tM(r.text,e.pos,ZSe(t,r,a,u,DO))}function ZSe(e,t,r,a,u){return(f,p,y,g)=>{y===3?(f+=2,p-=2):f+=2,u(e,r||y,t.text.slice(f,p),a!==void 0?a:g)}}function OAt(e,t){if(Ro(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function LJ(e){return Yn(e)&&e.operatorToken.kind===28||ba(e)||(OO(e)||xH(e))&&ba(e.expression)}function OJ(e,t,r){let a=Ky(e.parent);switch(a.kind){case 214:return t.getContextualType(a,r);case 226:{let{left:u,operatorToken:f,right:p}=a;return FJ(f.kind)?t.getTypeAtLocation(e===p?u:p):t.getContextualType(e,r)}case 296:return Fre(a,t);default:return t.getContextualType(e,r)}}function I8(e,t,r){let a=mm(e,t),u=JSON.stringify(r);return a===0?`'${sh(u).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:u}function FJ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function exe(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function Ore(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function Fre(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var Mre="anonymous function";function N8(e,t,r,a){let u=r.getTypeChecker(),f=!0,p=()=>f=!1,y=u.typeToTypeNode(e,t,1,8,{trackSymbol:(g,x,k)=>(f=f&&u.isSymbolAccessible(g,x,k,!1).accessibility===0,!f),reportInaccessibleThisError:p,reportPrivateInBaseOfClassExpression:p,reportInaccessibleUniqueSymbolError:p,moduleResolverHost:gre(r,a)});return f?y:void 0}function txe(e){return e===179||e===180||e===181||e===171||e===173}function KBe(e){return e===262||e===176||e===174||e===177||e===178}function XBe(e){return e===267}function ixe(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}var FAt=Im(txe,KBe,XBe,ixe);function MAt(e,t){let r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(txe(e.kind)){if(r&&r.kind===28)return!1}else if(XBe(e.kind)){let y=pa(e.getChildren(t));if(y&&ty(y))return!1}else if(KBe(e.kind)){let y=pa(e.getChildren(t));if(y&&Jw(y))return!1}else if(!ixe(e.kind))return!1;if(e.kind===246)return!0;let a=Ri(e,y=>!y.parent),u=kT(e,a,t);if(!u||u.kind===20)return!0;let f=t.getLineAndCharacterOfPosition(e.getEnd()).line,p=t.getLineAndCharacterOfPosition(u.getStart(t)).line;return f!==p}function MJ(e,t,r){let a=Ri(t,u=>u.end!==e?"quit":FAt(u.kind));return!!a&&MAt(a,r)}function e9(e){let t=0,r=0,a=5;return ws(e,function u(f){if(ixe(f.kind)){let p=f.getLastToken(e);p?.kind===27?t++:r++}else if(txe(f.kind)){let p=f.getLastToken(e);if(p?.kind===27)t++;else if(p&&p.kind!==28){let y=ma(e,p.getStart(e)).line,g=ma(e,V0(e,p.end).start).line;y!==g&&r++}}return t+r>=a?!0:ws(f,u)}),t===0&&r<=1?!0:t/r>1/a}function RJ(e,t){return nxe(e,e.getDirectories,t)||[]}function Rre(e,t,r,a,u){return nxe(e,e.readDirectory,t,r,a,u)||F}function t9(e,t){return nxe(e,e.fileExists,t)}function BJ(e,t){return jJ(()=>Xg(t,e))||!1}function jJ(e){try{return e()}catch{return}}function nxe(e,t,...r){return jJ(()=>t&&t.apply(e,r))}function Bre(e,t,r){let a=[];return Rh(e,u=>{if(u===r)return!0;let f=xr(u,"package.json");t9(t,f)&&a.push(f)}),a}function rxe(e,t){let r;return Rh(e,a=>{if(a==="node_modules"||(r=Fie(a,u=>t9(t,u),"package.json"),r))return!0}),r}function RAt(e,t){if(!t.fileExists)return[];let r=[];return Rh(Or(e),a=>{let u=xr(a,"package.json");if(t.fileExists(u)){let f=jre(u,t);f&&r.push(f)}}),r}function jre(e,t){if(!t.readFile)return;let r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],a=t.readFile(e)||"",u=kV(a),f={};if(u)for(let g of r){let x=u[g];if(!x)continue;let k=new Map;for(let T in x)k.set(T,x[T]);f[g]=k}let p=[[1,f.dependencies],[2,f.devDependencies],[8,f.optionalDependencies],[4,f.peerDependencies]];return{...f,parseable:!!u,fileName:e,get:y,has(g,x){return!!y(g,x)}};function y(g,x=15){for(let[k,T]of p)if(T&&x&k){let A=T.get(g);if(A!==void 0)return A}}}function t6(e,t,r){let a=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||RAt(e.fileName,r)).filter(R=>R.parseable),u,f,p;return{allowsImportingAmbientModule:g,getSourceFileInfo:x,allowsImportingSpecifier:k};function y(R){let W=P(R);for(let z of a)if(z.has(W)||z.has(lU(W)))return!0;return!1}function g(R,W){if(!a.length||!R.valueDeclaration)return!0;if(!f)f=new Map;else{let te=f.get(R);if(te!==void 0)return te}let z=sh(R.getName());if(T(z))return f.set(R,!0),!0;let q=R.valueDeclaration.getSourceFile(),G=A(q.fileName,W);if(typeof G>"u")return f.set(R,!0),!0;let $=y(G)||y(z);return f.set(R,$),$}function x(R,W){if(!a.length)return{importable:!0,packageName:void 0};if(!p)p=new Map;else{let $=p.get(R);if($!==void 0)return $}let z=A(R.fileName,W);if(!z){let $={importable:!0,packageName:z};return p.set(R,$),$}let G={importable:y(z),packageName:z};return p.set(R,G),G}function k(R){return!a.length||T(R)||Nm(R)||jp(R)?!0:y(R)}function T(R){return!!(Gy(e)&&N_(e)&&cy.nodeCoreModules.has(R)&&(u===void 0&&(u=WJ(e)),u))}function A(R,W){if(!R.includes("node_modules"))return;let z=pS.getNodeModulesPackageName(r.getCompilationSettings(),e,R,W,t);if(z&&!Nm(z)&&!jp(z))return P(z)}function P(R){let W=zd(i8(R)).slice(1);return Ro(W[0],"@")?`${W[0]}/${W[1]}`:W[0]}}function WJ(e){return Lt(e.imports,({text:t})=>cy.nodeCoreModules.has(t))}function i9(e){return sn(zd(e),"node_modules")}function YBe(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function oxe(e,t){let r=B_(e),a=Ub(t,r,Gc,jW);if(a>=0){let u=t[a];return B.assertEqual(u.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),ea(u,YBe)}}function sxe(e,t){var r;let a=Ub(t,e.start,p=>p.start,Kc);for(a<0&&(a=~a);((r=t[a-1])==null?void 0:r.start)===e.start;)a--;let u=[],f=Vl(e);for(;;){let p=kr(t[a],YBe);if(!p||p.start>f)break;bme(e,p)&&u.push(p),a++}return u}function GN({startPosition:e,endPosition:t}){return bu(e,t===void 0?e:t)}function Wre(e,t){let r=go(e,t.start);return Ri(r,u=>u.getStart(e)Vl(t)?"quit":Mt(u)&&Q4(t,B_(u,e)))}function zre(e,t,r=Gc){return e?ds(e)?r(_i(e,t)):t(e,0):void 0}function Vre(e){return ds(e)?Ta(e):e}function zJ(e,t,r){return e.escapedName==="export="||e.escapedName==="default"?Hre(e)||n9(BAt(e),t,!!r):e.name}function Hre(e){return Le(e.declarations,t=>{var r,a,u;return ll(t)?(r=kr(Cu(t.expression),et))==null?void 0:r.text:Gf(t)&&t.symbol.flags===2097152?(a=kr(t.propertyName,et))==null?void 0:a.text:(u=kr(cs(t),et))==null?void 0:u.text})}function BAt(e){var t;return B.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${B.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{let a=B.formatSyntaxKind(r.kind),u=Jn(r),{expression:f}=r;return(u?"[JS]":"")+a+(f?` (expression: ${B.formatSyntaxKind(f.kind)})`:"")}).join(", ")}.`)}function n9(e,t,r){return r9(A_(sh(e.name)),t,r)}function r9(e,t,r){let a=Xu(EP(e,"/index")),u="",f=!0,p=a.charCodeAt(0);Hy(p,t)?(u+=String.fromCharCode(p),r&&(u=u.toUpperCase())):f=!1;for(let y=1;ye.length)return!1;for(let u=0;u{if(cy.nodeCoreModules.has(a.text))return Ro(a.text,"node:")})??t.usesUriStyleNodeCoreModules}function o9(e){return e===` +`?1:0}function TT(e){return ds(e)?Jv(gs(e[0]),e.slice(1)):gs(e)}function UJ({options:e},t){let r=!e.semicolons||e.semicolons==="ignore",a=e.semicolons==="remove"||r&&!e9(t);return{...e,semicolons:a?"remove":"ignore"}}function Jre(e){return e===2||e===3}function i6(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function JJ(e,t){let r=new Set,a=new Set,u=new Set;for(let y of t)if(!WO(y)){let g=fc(y.expression);if(Q2(g))switch(g.kind){case 15:case 11:r.add(g.text);break;case 9:a.add(parseInt(g.text));break;case 10:let x=y0e(Wl(g.text,"n")?g.text.slice(0,-1):g.text);x&&u.add(rT(x));break}else{let x=e.getSymbolAtLocation(y.expression);if(x&&x.valueDeclaration&&_S(x.valueDeclaration)){let k=e.getConstantValue(x.valueDeclaration);k!==void 0&&f(k)}}}return{addValue:f,hasValue:p};function f(y){switch(typeof y){case"string":r.add(y);break;case"number":a.add(y)}}function p(y){switch(typeof y){case"string":return r.has(y);case"number":return a.has(y);case"object":return u.has(rT(y))}}}function qre(e,t,r,a){var u;let f=typeof e=="string"?e:e.fileName;if(!$v(f))return!1;let p=typeof e=="string"?t.getCompilerOptions():t.getCompilerOptionsForFile(e),y=p_(p),g=typeof e=="string"?{fileName:e,impliedNodeFormat:E5(Vc(e,r.getCurrentDirectory(),rS(r)),(u=t.getPackageJsonInfoCache)==null?void 0:u.call(t),r,p)}:e,x=AE(g,p);if(x===99)return!1;if(x===1||p.verbatimModuleSyntax&&y===1)return!0;if(p.verbatimModuleSyntax&&CR(y))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return a}function KN(e){switch(e.kind){case 241:case 307:case 268:case 296:return!0;default:return!1}}function qJ(e,t,r,a){var u;let f=MU(e,(u=r.getPackageJsonInfoCache)==null?void 0:u.call(r),a,r.getCompilerOptions()),p,y;return typeof f=="object"&&(p=f.impliedNodeFormat,y=f.packageJsonScope),{path:Vc(e,r.getCurrentDirectory(),r.getCanonicalFileName),fileName:e,externalModuleIndicator:t===99?!0:void 0,commonJsModuleIndicator:t===1?!0:void 0,impliedNodeFormat:p,packageJsonScope:y,statements:F,imports:F}}var cxe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(cxe||{}),lxe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(lxe||{});function $re(e){let t=1,r=Dm(),a=new Map,u=new Map,f,p={isUsableByFile:P=>P===f,isEmpty:()=>!r.size,clear:()=>{r.clear(),a.clear(),f=void 0},add:(P,R,W,z,q,G,$,te)=>{P!==f&&(p.clear(),f=P);let ne;if(q){let Re=tH(q.fileName);if(Re){let{topLevelNodeModulesIndex:ie,topLevelPackageNameIndex:ke,packageRootIndex:De}=Re;if(ne=d5(i8(q.fileName.substring(ke+1,De))),Ro(P,q.path.substring(0,ie))){let Oe=u.get(ne),we=q.fileName.substring(0,ke+1);if(Oe){let Ae=Oe.indexOf(Zv);ie>Ae&&u.set(ne,we)}else u.set(ne,we)}}}let ce=G===1&&aO(R)||R,ae=G===0||jP(ce)?So(W):WAt(ce,te,void 0),Ce=typeof ae=="string"?ae:ae[0],he=typeof ae=="string"?void 0:ae[1],ue=sh(z.name),Ee=t++,ve=hf(R,te),be=R.flags&33554432?void 0:R,Se=z.flags&33554432?void 0:z;(!be||!Se)&&a.set(Ee,[R,z]),r.add(g(Ce,R,Od(ue)?void 0:ue,te),{id:Ee,symbolTableKey:W,symbolName:Ce,capitalizedSymbolName:he,moduleName:ue,moduleFile:q,moduleFileName:q?.fileName,packageName:ne,exportKind:G,targetFlags:ve.flags,isFromPackageJson:$,symbol:be,moduleSymbol:Se})},get:(P,R)=>{if(P!==f)return;let W=r.get(R);return W?.map(y)},search:(P,R,W,z)=>{if(P===f)return Vd(r,(q,G)=>{let{symbolName:$,ambientModuleName:te}=x(G),ne=R&&q[0].capitalizedSymbolName||$;if(W(ne,q[0].targetFlags)){let ce=q.map(y).filter((ae,Ce)=>A(ae,q[Ce].packageName));if(ce.length){let ae=z(ce,ne,!!te,G);if(ae!==void 0)return ae}}})},releaseSymbols:()=>{a.clear()},onFileChanged:(P,R,W)=>k(P)&&k(R)?!1:f&&f!==R.path||W&&WJ(P)!==WJ(R)||!Lr(P.moduleAugmentations,R.moduleAugmentations)||!T(P,R)?(p.clear(),!0):(f=R.path,!1)};return B.isDebugging&&Object.defineProperty(p,"__cache",{value:r}),p;function y(P){if(P.symbol&&P.moduleSymbol)return P;let{id:R,exportKind:W,targetFlags:z,isFromPackageJson:q,moduleFileName:G}=P,[$,te]=a.get(R)||F;if($&&te)return{symbol:$,moduleSymbol:te,moduleFileName:G,exportKind:W,targetFlags:z,isFromPackageJson:q};let ne=(q?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),_e=P.moduleSymbol||te||B.checkDefined(P.moduleFile?ne.getMergedSymbol(P.moduleFile.symbol):ne.tryFindAmbientModule(P.moduleName)),ce=P.symbol||$||B.checkDefined(W===2?ne.resolveExternalModuleSymbol(_e):ne.tryGetMemberInModuleExportsAndProperties(So(P.symbolTableKey),_e),`Could not find symbol '${P.symbolName}' by key '${P.symbolTableKey}' in module ${_e.name}`);return a.set(R,[ce,_e]),{symbol:ce,moduleSymbol:_e,moduleFileName:G,exportKind:W,targetFlags:z,isFromPackageJson:q}}function g(P,R,W,z){let q=W||"";return`${P.length} ${Ca(hf(R,z))} ${P} ${q}`}function x(P){let R=P.indexOf(" "),W=P.indexOf(" ",R+1),z=parseInt(P.substring(0,R),10),q=P.substring(W+1),G=q.substring(0,z),$=q.substring(z+1);return{symbolName:G,ambientModuleName:$===""?void 0:$}}function k(P){return!P.commonJsModuleIndicator&&!P.externalModuleIndicator&&!P.moduleAugmentations&&!P.ambientModuleNames}function T(P,R){if(!Lr(P.ambientModuleNames,R.ambientModuleNames))return!1;let W=-1,z=-1;for(let q of R.ambientModuleNames){let G=$=>GQ($)&&$.name.text===q;if(W=zi(P.statements,G,W+1),z=zi(R.statements,G,z+1),P.statements[W]!==R.statements[z])return!1}return!0}function A(P,R){if(!R||!P.moduleFileName)return!0;let W=e.getGlobalTypingsCacheLocation();if(W&&Ro(P.moduleFileName,W))return!0;let z=u.get(R);return!z||Ro(P.moduleFileName,z)}}function Gre(e,t,r,a,u,f,p){var y;if(t===r)return!1;let g=p?.get(t.path,r.path,a,{});if(g?.isBlockedByPackageJsonDependencies!==void 0)return!g.isBlockedByPackageJsonDependencies||!!g.packageName&&s9(t,g.packageName);let x=rS(f),k=(y=f.getGlobalTypingsCacheLocation)==null?void 0:y.call(f),T=!!pS.forEachFileNameOfModule(t.fileName,r.fileName,f,!1,A=>{let P=e.getSourceFile(A);return(P===r||!P)&&jAt(t.fileName,A,x,k)});if(u){let A=T?u.getSourceFileInfo(r,f):void 0;return p?.setBlockedByPackageJsonDependencies(t.path,r.path,a,{},A?.packageName,!A?.importable),!!A?.importable||!!A?.packageName&&s9(t,A.packageName)}return T}function s9(e,t){return e.imports&&e.imports.some(r=>r.text===t||r.text.startsWith(t+"/"))}function jAt(e,t,r,a){let u=Rh(t,p=>Xu(p)==="node_modules"?p:void 0),f=u&&Or(r(u));return f===void 0||Ro(r(e),f)||!!a&&Ro(r(a),f)}function Kre(e,t,r,a,u){var f,p;let y=eN(t),g=r.autoImportFileExcludePatterns&&QBe(r,y);ZBe(e.getTypeChecker(),e.getSourceFiles(),g,t,(k,T)=>u(k,T,e,!1));let x=a&&((f=t.getPackageJsonAutoImportProvider)==null?void 0:f.call(t));if(x){let k=zc(),T=e.getTypeChecker();ZBe(x.getTypeChecker(),x.getSourceFiles(),g,t,(A,P)=>{(P&&!e.getSourceFile(P.fileName)||!P&&!T.resolveName(A.name,void 0,1536,!1))&&u(A,P,x,!0)}),(p=t.log)==null||p.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${zc()-k}`)}}function QBe(e,t){return ro(e.autoImportFileExcludePatterns,r=>{let a=VV(r,"","exclude");return a?wx(a,t):void 0})}function ZBe(e,t,r,a,u){var f;let p=r&&eje(r,a);for(let y of e.getAmbientModules())!y.name.includes("*")&&!(r&&((f=y.declarations)!=null&&f.every(g=>p(g.getSourceFile()))))&&u(y,void 0);for(let y of t)Vp(y)&&!p?.(y)&&u(e.getMergedSymbol(y.symbol),y)}function eje(e,t){var r;let a=(r=t.getSymlinkCache)==null?void 0:r.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:u,path:f})=>{if(e.some(p=>p.test(u)))return!0;if(a?.size&&Mx(u)){let p=Or(u);return Rh(Or(f),y=>{let g=a.get(xd(y));if(g)return g.some(x=>e.some(k=>k.test(u.replace(p,x))));p=Or(p)})??!1}return!1}}function uxe(e,t){return t.autoImportFileExcludePatterns?eje(QBe(t,eN(e)),e):()=>!1}function a9(e,t,r,a,u){var f,p,y,g,x;let k=zc();(f=t.getPackageJsonAutoImportProvider)==null||f.call(t);let T=((p=t.getCachedExportInfoMap)==null?void 0:p.call(t))||$re({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var P;return(P=t.getPackageJsonAutoImportProvider)==null?void 0:P.call(t)},getGlobalTypingsCacheLocation:()=>{var P;return(P=t.getGlobalTypingsCacheLocation)==null?void 0:P.call(t)}});if(T.isUsableByFile(e.path))return(y=t.log)==null||y.call(t,"getExportInfoMap: cache hit"),T;(g=t.log)==null||g.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let A=0;try{Kre(r,t,a,!0,(P,R,W,z)=>{++A%100===0&&u?.throwIfCancellationRequested();let q=new Map,G=W.getTypeChecker(),$=$J(P,G);$&&tje($.symbol,G)&&T.add(e.path,$.symbol,$.exportKind===1?"default":"export=",P,R,$.exportKind,z,G),G.forEachExportAndPropertyOfModule(P,(te,ne)=>{te!==$?.symbol&&tje(te,G)&&Uh(q,ne)&&T.add(e.path,te,ne,P,R,0,z,G)})})}catch(P){throw T.clear(),P}return(x=t.log)==null||x.call(t,`getExportInfoMap: done in ${zc()-k} ms`),T}function $J(e,t){let r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};let a=t.tryGetMemberInModuleExports("default",e);if(a)return{symbol:a,exportKind:1}}function tje(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!oR(e)&&!_ge(e)}function WAt(e,t,r){let a;return GJ(e,t,r,(u,f)=>(a=f?[u,f]:u,!0)),B.checkDefined(a)}function GJ(e,t,r,a){let u,f=e,p=new Map;for(;f;){let y=Hre(f);if(y){let g=a(y);if(g)return g}if(f.escapedName!=="default"&&f.escapedName!=="export="){let g=a(f.name);if(g)return g}if(u=hi(u,f),!Uh(p,f))break;f=f.flags&2097152?t.getImmediateAliasedSymbol(f):void 0}for(let y of u??F)if(y.parent&&jP(y.parent)){let g=a(n9(y.parent,r,!1),n9(y.parent,r,!0));if(g)return g}}function ije(){let e=Rv(99,!1);function t(a,u,f){return UAt(r(a,u,f),a)}function r(a,u,f){let p=0,y=0,g=[],{prefix:x,pushTemplate:k}=$At(u);a=x+a;let T=x.length;k&&g.push(16),e.setText(a);let A=0,P=[],R=0;do{p=e.scan(),t4(p)||(W(),y=p);let z=e.getTokenEnd();if(HAt(e.getTokenStart(),z,T,XAt(p),P),z>=a.length){let q=VAt(e,p,Lc(g));q!==void 0&&(A=q)}}while(p!==1);function W(){switch(p){case 44:case 69:!zAt[y]&&e.reScanSlashToken()===14&&(p=14);break;case 30:y===80&&R++;break;case 32:R>0&&R--;break;case 133:case 154:case 150:case 136:case 155:R>0&&!f&&(p=80);break;case 16:g.push(p);break;case 19:g.length>0&&g.push(p);break;case 20:if(g.length>0){let z=Lc(g);z===16?(p=e.reScanTemplateToken(!1),p===18?g.pop():B.assertEqual(p,17,"Should have been a template middle.")):(B.assertEqual(z,19,"Should have been an open brace"),g.pop())}break;default:if(!Q_(p))break;(y===25||Q_(y)&&Q_(p)&&!qAt(y,p))&&(p=80)}}return{endOfLineState:A,spans:P}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}var zAt=Go([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function VAt(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;let a=e.getTokenText(),u=a.length-1,f=0;for(;a.charCodeAt(u-f)===92;)f++;return f&1?a.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(fx(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return B.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function HAt(e,t,r,a,u){if(a===8)return;e===0&&r>0&&(e+=r);let f=t-e;f>0&&u.push(e-r,f,a)}function UAt(e,t){let r=[],a=e.spans,u=0;for(let p=0;p=0){let k=y-u;k>0&&r.push({length:k,classification:4})}r.push({length:g,classification:JAt(x)}),u=y+g}let f=t.length-u;return f>0&&r.push({length:f,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function JAt(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 qAt(e,t){if(!lre(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function $At(e){switch(e){case 3:return{prefix:`"\\ +`};case 2:return{prefix:`'\\ +`};case 1:return{prefix:`/* +`};case 4:return{prefix:"`\n"};case 5:return{prefix:`} +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return B.assertNever(e)}}function GAt(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function KAt(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function XAt(e){if(Q_(e))return 3;if(GAt(e)||KAt(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return fx(e)?6:2}}function dxe(e,t,r,a,u){return oje(Xre(e,t,r,a,u))}function nje(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function Xre(e,t,r,a,u){let f=[];return r.forEachChild(function y(g){if(!(!g||!oM(u,g.pos,g.getFullWidth()))){if(nje(t,g.kind),et(g)&&!Ul(g)&&a.has(g.escapedText)){let x=e.getSymbolAtLocation(g),k=x&&rje(x,PE(g),e);k&&p(g.getStart(r),g.getEnd(),k)}g.forEachChild(y)}}),{spans:f,endOfLineState:0};function p(y,g,x){let k=g-y;B.assert(k>0,`Classification had non-positive length of ${k}`),f.push(y),f.push(k),f.push(x)}}function rje(e,t,r){let a=e.getFlags();if(a&2885600)return a&32?11:a&384?12:a&524288?16:a&1536?t&4||t&1&&YAt(e)?14:void 0:a&2097152?rje(r.getAliasedSymbol(e),t,r):t&2?a&64?13:a&262144?15:void 0:void 0}function YAt(e){return Lt(e.declarations,t=>Hu(t)&&ab(t)===1)}function QAt(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 oje(e){B.assert(e.spans.length%3===0);let t=e.spans,r=[];for(let a=0;a])*)(\/>)?)?/m,ae=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,Ce=t.text.substr(ne,_e),he=ce.exec(Ce);if(!he||!he[3]||!(he[3]in $W))return!1;let ue=ne;T(ue,he[1].length),ue+=he[1].length,g(ue,he[2].length,10),ue+=he[2].length,g(ue,he[3].length,21),ue+=he[3].length;let Ee=he[4],ve=ue;for(;;){let Se=ae.exec(Ee);if(!Se)break;let Re=ue+Se.index+Se[1].length;Re>ve&&(T(ve,Re-ve),ve=Re),g(ve,Se[2].length,22),ve+=Se[2].length,Se[3].length&&(T(ve,Se[3].length),ve+=Se[3].length),g(ve,Se[4].length,5),ve+=Se[4].length,Se[5].length&&(T(ve,Se[5].length),ve+=Se[5].length),g(ve,Se[6].length,24),ve+=Se[6].length}ue+=he[4].length,ue>ve&&T(ve,ue-ve),he[5]&&(g(ue,he[5].length,10),ue+=he[5].length);let be=ne+_e;return ue=0),ae>0){let Ce=_e||$(ne.kind,ne);Ce&&g(ce,ae,Ce)}return!0}function G(ne){switch(ne.parent&&ne.parent.kind){case 286:if(ne.parent.tagName===ne)return 19;break;case 287:if(ne.parent.tagName===ne)return 20;break;case 285:if(ne.parent.tagName===ne)return 21;break;case 291:if(ne.parent.name===ne)return 22;break}}function $(ne,_e){if(Q_(ne))return 3;if((ne===30||ne===32)&&_e&&LSe(_e.parent))return 10;if(SZ(ne)){if(_e){let ce=_e.parent;if(ne===64&&(ce.kind===260||ce.kind===172||ce.kind===169||ce.kind===291)||ce.kind===226||ce.kind===224||ce.kind===225||ce.kind===227)return 5}return 10}else{if(ne===9)return 4;if(ne===10)return 25;if(ne===11)return _e&&_e.parent.kind===291?24:6;if(ne===14)return 6;if(fx(ne))return 6;if(ne===12)return 23;if(ne===80){if(_e){switch(_e.parent.kind){case 263:return _e.parent.name===_e?11:void 0;case 168:return _e.parent.name===_e?15:void 0;case 264:return _e.parent.name===_e?13:void 0;case 266:return _e.parent.name===_e?12:void 0;case 267:return _e.parent.name===_e?14:void 0;case 169:return _e.parent.name===_e?bx(_e)?3:17:void 0}if(qg(_e.parent))return 3}return 2}}}function te(ne){if(ne&&sM(a,u,ne.pos,ne.getFullWidth())){nje(e,ne.kind);for(let _e of ne.getChildren(t))q(_e)||te(_e)}}}var KJ;(e=>{function t(ue,Ee,ve,be,Se){let Re=ip(ve,be);if(Re.parent&&(ny(Re.parent)&&Re.parent.tagName===Re||fT(Re.parent))){let{openingElement:ie,closingElement:ke}=Re.parent.parent,De=[ie,ke].map(({tagName:Oe})=>r(Oe,ve));return[{fileName:ve.fileName,highlightSpans:De}]}return a(be,Re,ue,Ee,Se)||u(Re,ve)}e.getDocumentHighlights=t;function r(ue,Ee){return{fileName:Ee.fileName,textSpan:B_(ue,Ee),kind:"none"}}function a(ue,Ee,ve,be,Se){let Re=new Set(Se.map(Oe=>Oe.fileName)),ie=ol.getReferenceEntriesForNode(ue,Ee,ve,Se,be,void 0,Re);if(!ie)return;let ke=$c(ie.map(ol.toHighlightSpan),Oe=>Oe.fileName,Oe=>Oe.span),De=df(ve.useCaseSensitiveFileNames());return as(bd(ke.entries(),([Oe,we])=>{if(!Re.has(Oe)){if(!ve.redirectTargetsMap.has(Vc(Oe,ve.getCurrentDirectory(),De)))return;let Ae=ve.getSourceFile(Oe);Oe=St(Se,Tt=>!!Tt.redirectInfo&&Tt.redirectInfo.redirectTarget===Ae).fileName,B.assert(Re.has(Oe))}return{fileName:Oe,highlightSpans:we}}))}function u(ue,Ee){let ve=f(ue,Ee);return ve&&[{fileName:Ee.fileName,highlightSpans:ve}]}function f(ue,Ee){switch(ue.kind){case 101:case 93:return hk(ue.parent)?ae(ue.parent,Ee):void 0;case 107:return be(ue.parent,qh,te);case 111:return be(ue.parent,Uee,$);case 113:case 85:case 98:let Re=ue.kind===85?ue.parent.parent:ue.parent;return be(Re,vE,G);case 109:return be(ue.parent,RO,q);case 84:case 90:return WO(ue.parent)||x4(ue.parent)?be(ue.parent.parent.parent,RO,q):void 0;case 83:case 88:return be(ue.parent,A3,z);case 99:case 117:case 92:return be(ue.parent,ie=>hx(ie,!0),W);case 137:return ve(Ol,[137]);case 139:case 153:return ve(mx,[139,153]);case 135:return be(ue.parent,Ax,ne);case 134:return Se(ne(ue));case 127:return Se(_e(ue));case 103:case 147:return;default:return px(ue.kind)&&(mf(ue.parent)||mu(ue.parent))?Se(A(ue.kind,ue.parent)):void 0}function ve(Re,ie){return be(ue.parent,Re,ke=>{var De;return ro((De=kr(ke,$g))==null?void 0:De.symbol.declarations,Oe=>Re(Oe)?St(Oe.getChildren(Ee),we=>sn(ie,we.kind)):void 0)})}function be(Re,ie,ke){return ie(Re)?Se(ke(Re,Ee)):void 0}function Se(Re){return Re&&Re.map(ie=>r(ie,Ee))}}function p(ue){return Uee(ue)?[ue]:vE(ue)?Fo(ue.catchClause?p(ue.catchClause):ue.tryBlock&&p(ue.tryBlock),ue.finallyBlock&&p(ue.finallyBlock)):vs(ue)?void 0:x(ue,p)}function y(ue){let Ee=ue;for(;Ee.parent;){let ve=Ee.parent;if(Jw(ve)||ve.kind===307)return ve;if(vE(ve)&&ve.tryBlock===Ee&&ve.catchClause)return Ee;Ee=ve}}function g(ue){return A3(ue)?[ue]:vs(ue)?void 0:x(ue,g)}function x(ue,Ee){let ve=[];return ue.forEachChild(be=>{let Se=Ee(be);Se!==void 0&&ve.push(...II(Se))}),ve}function k(ue,Ee){let ve=T(Ee);return!!ve&&ve===ue}function T(ue){return Ri(ue,Ee=>{switch(Ee.kind){case 255:if(ue.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!ue.label||he(Ee,ue.label.escapedText);default:return vs(Ee)&&"quit"}})}function A(ue,Ee){return ro(P(Ee,nN(ue)),ve=>Y4(ve,ue))}function P(ue,Ee){let ve=ue.parent;switch(ve.kind){case 268:case 307:case 241:case 296:case 297:return Ee&64&&Zu(ue)?[...ue.members,ue]:ve.statements;case 176:case 174:case 262:return[...ve.parameters,...jr(ve.parent)?ve.parent.members:[]];case 263:case 231:case 264:case 187:let be=ve.members;if(Ee&15){let Se=St(ve.members,Ol);if(Se)return[...be,...Se.parameters]}else if(Ee&64)return[...be,ve];return be;default:return}}function R(ue,Ee,...ve){return Ee&&sn(ve,Ee.kind)?(ue.push(Ee),!0):!1}function W(ue){let Ee=[];if(R(Ee,ue.getFirstToken(),99,117,92)&&ue.kind===246){let ve=ue.getChildren();for(let be=ve.length-1;be>=0&&!R(Ee,ve[be],117);be--);}return re(g(ue.statement),ve=>{k(ue,ve)&&R(Ee,ve.getFirstToken(),83,88)}),Ee}function z(ue){let Ee=T(ue);if(Ee)switch(Ee.kind){case 248:case 249:case 250:case 246:case 247:return W(Ee);case 255:return q(Ee)}}function q(ue){let Ee=[];return R(Ee,ue.getFirstToken(),109),re(ue.caseBlock.clauses,ve=>{R(Ee,ve.getFirstToken(),84,90),re(g(ve),be=>{k(ue,be)&&R(Ee,be.getFirstToken(),83)})}),Ee}function G(ue,Ee){let ve=[];if(R(ve,ue.getFirstToken(),113),ue.catchClause&&R(ve,ue.catchClause.getFirstToken(),85),ue.finallyBlock){let be=Tc(ue,98,Ee);R(ve,be,98)}return ve}function $(ue,Ee){let ve=y(ue);if(!ve)return;let be=[];return re(p(ve),Se=>{be.push(Tc(Se,111,Ee))}),Jw(ve)&&tS(ve,Se=>{be.push(Tc(Se,107,Ee))}),be}function te(ue,Ee){let ve=_m(ue);if(!ve)return;let be=[];return tS(ea(ve.body,Ds),Se=>{be.push(Tc(Se,107,Ee))}),re(p(ve.body),Se=>{be.push(Tc(Se,111,Ee))}),be}function ne(ue){let Ee=_m(ue);if(!Ee)return;let ve=[];return Ee.modifiers&&Ee.modifiers.forEach(be=>{R(ve,be,134)}),ws(Ee,be=>{ce(be,Se=>{Ax(Se)&&R(ve,Se.getFirstToken(),135)})}),ve}function _e(ue){let Ee=_m(ue);if(!Ee)return;let ve=[];return ws(Ee,be=>{ce(be,Se=>{SH(Se)&&R(ve,Se.getFirstToken(),127)})}),ve}function ce(ue,Ee){Ee(ue),!vs(ue)&&!jr(ue)&&!vf(ue)&&!Hu(ue)&&!$h(ue)&&!io(ue)&&ws(ue,ve=>ce(ve,Ee))}function ae(ue,Ee){let ve=Ce(ue,Ee),be=[];for(let Se=0;Se=Re.end;De--)if(!j0(Ee.text.charCodeAt(De))){ke=!1;break}if(ke){be.push({fileName:Ee.fileName,textSpan:bu(Re.getStart(),ie.end),kind:"reference"}),Se++;continue}}be.push(r(ve[Se],Ee))}return be}function Ce(ue,Ee){let ve=[];for(;hk(ue.parent)&&ue.parent.elseStatement===ue;)ue=ue.parent;for(;;){let be=ue.getChildren(Ee);R(ve,be[0],101);for(let Se=be.length-1;Se>=0&&!R(ve,be[Se],93);Se--);if(!ue.elseStatement||!hk(ue.elseStatement))break;ue=ue.elseStatement}return ve}function he(ue,Ee){return!!Ri(ue.parent,ve=>Px(ve)?ve.label.escapedText===Ee:"quit")}})(KJ||(KJ={}));function c9(e){return!!e.sourceFile}function _xe(e,t,r){return Qre(e,t,r)}function Qre(e,t="",r,a){let u=new Map,f=df(!!e);function p(){let z=as(u.keys()).filter(q=>q&&q.charAt(0)==="_").map(q=>{let G=u.get(q),$=[];return G.forEach((te,ne)=>{c9(te)?$.push({name:ne,scriptKind:te.sourceFile.scriptKind,refCount:te.languageServiceRefCount}):te.forEach((_e,ce)=>$.push({name:ne,scriptKind:ce,refCount:_e.languageServiceRefCount}))}),$.sort((te,ne)=>ne.refCount-te.refCount),{bucket:q,sourceFiles:$}});return JSON.stringify(z,void 0,2)}function y(z){return typeof z.getCompilationSettings=="function"?z.getCompilationSettings():z}function g(z,q,G,$,te,ne){let _e=Vc(z,t,f),ce=Zre(y(q));return x(z,_e,q,ce,G,$,te,ne)}function x(z,q,G,$,te,ne,_e,ce){return P(z,q,G,$,te,ne,!0,_e,ce)}function k(z,q,G,$,te,ne){let _e=Vc(z,t,f),ce=Zre(y(q));return T(z,_e,q,ce,G,$,te,ne)}function T(z,q,G,$,te,ne,_e,ce){return P(z,q,y(G),$,te,ne,!1,_e,ce)}function A(z,q){let G=c9(z)?z:z.get(B.checkDefined(q,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return B.assert(q===void 0||!G||G.sourceFile.scriptKind===q,`Script kind should match provided ScriptKind:${q} and sourceFile.scriptKind: ${G?.sourceFile.scriptKind}, !entry: ${!G}`),G}function P(z,q,G,$,te,ne,_e,ce,ae){var Ce,he,ue,Ee;ce=UV(z,ce);let ve=y(G),be=G===ve?void 0:G,Se=ce===6?100:Oa(ve),Re=typeof ae=="object"?ae:{languageVersion:Se,impliedNodeFormat:be&&E5(q,(Ee=(ue=(he=(Ce=be.getCompilerHost)==null?void 0:Ce.call(be))==null?void 0:he.getModuleResolutionCache)==null?void 0:ue.call(he))==null?void 0:Ee.getPackageJsonInfoCache(),be,ve),setExternalModuleIndicator:bR(ve),jsDocParsingMode:r};Re.languageVersion=Se,B.assertEqual(r,Re.jsDocParsingMode);let ie=u.size,ke=pxe($,Re.impliedNodeFormat),De=Hg(u,ke,()=>new Map);if(jn){u.size>ie&&jn.instant(jn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:ve.configFilePath,key:ke});let Fe=!Jd(q)&&Vd(u,(Tt,Be)=>Be!==ke&&Tt.has(q)&&Be);Fe&&jn.instant(jn.Phase.Session,"documentRegistryBucketOverlap",{path:q,key1:Fe,key2:ke})}let Oe=De.get(q),we=Oe&&A(Oe,ce);if(!we&&a){let Fe=a.getDocument(ke,q);Fe&&Fe.scriptKind===ce&&Fe.text===qN(te)&&(B.assert(_e),we={sourceFile:Fe,languageServiceRefCount:0},Ae())}if(we)we.sourceFile.version!==ne&&(we.sourceFile=Aoe(we.sourceFile,te,ne,te.getChangeRange(we.sourceFile.scriptSnapshot)),a&&a.setDocument(ke,q,we.sourceFile)),_e&&we.languageServiceRefCount++;else{let Fe=dq(z,te,Re,ne,!1,ce);a&&a.setDocument(ke,q,Fe),we={sourceFile:Fe,languageServiceRefCount:1},Ae()}return B.assert(we.languageServiceRefCount!==0),we.sourceFile;function Ae(){if(!Oe)De.set(q,we);else if(c9(Oe)){let Fe=new Map;Fe.set(Oe.sourceFile.scriptKind,Oe),Fe.set(ce,we),De.set(q,Fe)}else Oe.set(ce,we)}}function R(z,q,G,$){let te=Vc(z,t,f),ne=Zre(q);return W(te,ne,G,$)}function W(z,q,G,$){let te=B.checkDefined(u.get(pxe(q,$))),ne=te.get(z),_e=A(ne,G);_e.languageServiceRefCount--,B.assert(_e.languageServiceRefCount>=0),_e.languageServiceRefCount===0&&(c9(ne)?te.delete(z):(ne.delete(G),ne.size===1&&te.set(z,Je(ne.values(),Gc))))}return{acquireDocument:g,acquireDocumentWithKey:x,updateDocument:k,updateDocumentWithKey:T,releaseDocument:R,releaseDocumentWithKey:W,getKeyForCompilationSettings:Zre,getDocumentRegistryBucketKeyWithMode:pxe,reportStats:p,getBuckets:()=>u}}function Zre(e){return jte(e,xte)}function pxe(e,t){return t?`${e}|${t}`:e}function mxe(e,t,r,a,u,f,p){let y=eN(a),g=df(y),x=eoe(t,r,g,p),k=eoe(r,t,g,p);return Vn.ChangeTracker.with({host:a,formatContext:u,preferences:f},T=>{ePt(e,T,x,t,r,a.getCurrentDirectory(),y),tPt(e,T,x,k,a,g)})}function eoe(e,t,r,a){let u=r(e);return p=>{let y=a&&a.tryGetSourcePosition({fileName:p,pos:0}),g=f(y?y.fileName:p);return y?g===void 0?void 0:ZAt(y.fileName,g,p,r):g};function f(p){if(r(p)===u)return t;let y=aee(p,u,r);return y===void 0?void 0:t+"/"+y}}function ZAt(e,t,r,a){let u=S3(e,t,a);return hxe(Or(r),u)}function ePt(e,t,r,a,u,f,p){let{configFile:y}=e.getCompilerOptions();if(!y)return;let g=Or(y.fileName),x=U3(y);if(!x)return;gxe(x,(P,R)=>{switch(R){case"files":case"include":case"exclude":{if(k(P)||R!=="include"||!yf(P.initializer))return;let z=ro(P.initializer.elements,G=>Da(G)?G.text:void 0);if(z.length===0)return;let q=HV(g,[],z,p,f);wx(B.checkDefined(q.includeFilePattern),p).test(a)&&!wx(B.checkDefined(q.includeFilePattern),p).test(u)&&t.insertNodeAfter(y,pa(P.initializer.elements),U.createStringLiteral(A(u)));return}case"compilerOptions":gxe(P.initializer,(W,z)=>{let q=Tte(z);B.assert(q?.type!=="listOrElement"),q&&(q.isFilePath||q.type==="list"&&q.element.isFilePath)?k(W):z==="paths"&&gxe(W.initializer,G=>{if(yf(G.initializer))for(let $ of G.initializer.elements)T($)})});return}});function k(P){let R=yf(P.initializer)?P.initializer.elements:[P.initializer],W=!1;for(let z of R)W=T(z)||W;return W}function T(P){if(!Da(P))return!1;let R=hxe(g,P.text),W=r(R);return W!==void 0?(t.replaceRangeWithText(y,aje(P,y),A(W)),!0):!1}function A(P){return Sg(g,P,!p)}}function tPt(e,t,r,a,u,f){let p=e.getSourceFiles();for(let y of p){let g=r(y.fileName),x=g??y.fileName,k=Or(x),T=a(y.fileName),A=T||y.fileName,P=Or(A),R=g!==void 0||T!==void 0;rPt(y,t,W=>{if(!Nm(W))return;let z=hxe(P,W),q=r(z);return q===void 0?void 0:G2(Sg(k,q,f))},W=>{let z=e.getTypeChecker().getSymbolAtLocation(W);if(z?.declarations&&z.declarations.some(G=>d_(G)))return;let q=T!==void 0?sje(W,jN(W.text,A,e.getCompilerOptions(),u),r,p):nPt(z,W,y,e,u,r);return q!==void 0&&(q.updated||R&&Nm(W.text))?pS.updateModuleSpecifier(e.getCompilerOptions(),y,x,q.newFileName,$N(e,u),W.text):void 0})}}function iPt(e,t){return $s(xr(e,t))}function hxe(e,t){return G2(iPt(e,t))}function nPt(e,t,r,a,u,f){if(e){let p=St(e.declarations,mo).fileName,y=f(p);return y===void 0?{newFileName:p,updated:!1}:{newFileName:y,updated:!0}}else{let p=a.getModeForUsageLocation(r,t),y=u.resolveModuleNameLiterals||!u.resolveModuleNames?a.getResolvedModuleFromModuleSpecifier(t,r):u.getResolvedModuleWithFailedLookupLocationsFromCache&&u.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,p);return sje(t,y,f,a.getSourceFiles())}}function sje(e,t,r,a){if(!t)return;if(t.resolvedModule){let g=y(t.resolvedModule.resolvedFileName);if(g)return g}let u=re(t.failedLookupLocations,f)||Nm(e.text)&&re(t.failedLookupLocations,p);if(u)return u;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function f(g){let x=r(g);return x&&St(a,k=>k.fileName===x)?p(g):void 0}function p(g){return Wl(g,"/package.json")?void 0:y(g)}function y(g){let x=r(g);return x&&{newFileName:x,updated:!0}}}function rPt(e,t,r,a){for(let u of e.referencedFiles||F){let f=r(u.fileName);f!==void 0&&f!==e.text.slice(u.pos,u.end)&&t.replaceRangeWithText(e,u,f)}for(let u of e.imports){let f=a(u);f!==void 0&&f!==u.text&&t.replaceRangeWithText(e,aje(u,e),f)}}function aje(e,t){return ah(e.getStart(t)+1,e.end-1)}function gxe(e,t){if(ba(e))for(let r of e.properties)ed(r)&&Da(r.name)&&t(r,r.name.text)}var toe=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(toe||{});function A8(e,t){return{kind:e,isCaseSensitive:t}}function yxe(e){let t=new Map,r=e.trim().split(".").map(a=>cPt(a.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>A8(2,!0),getFullMatch:()=>A8(2,!0),patternContainsDots:!1};if(!r.some(a=>!a.subWordTextChunks.length))return{getFullMatch:(a,u)=>oPt(a,u,r,t),getMatchForLastSegmentOfPattern:a=>vxe(a,pa(r),t),patternContainsDots:r.length>1}}function oPt(e,t,r,a){if(!vxe(t,pa(r),a)||r.length-1>e.length)return;let f;for(let p=r.length-2,y=e.length-1;p>=0;p-=1,y-=1)f=uje(f,vxe(e[y],r[p],a));return f}function cje(e,t){let r=t.get(e);return r||t.set(e,r=wxe(e)),r}function lje(e,t,r){let a=lPt(e,t.textLowerCase);if(a===0)return A8(t.text.length===e.length?0:1,Ro(e,t.text));if(t.isLowerCase){if(a===-1)return;let u=cje(e,r);for(let f of u)if(bxe(e,f,t.text,!0))return A8(2,bxe(e,f,t.text,!1));if(t.text.length0)return A8(2,!0);if(t.characterSpans.length>0){let u=cje(e,r),f=dje(e,u,t,!1)?!0:dje(e,u,t,!0)?!1:void 0;if(f!==void 0)return A8(3,f)}}}function vxe(e,t,r){if(ioe(t.totalTextChunk.text,f=>f!==32&&f!==42)){let f=lje(e,t.totalTextChunk,r);if(f)return f}let a=t.subWordTextChunks,u;for(let f of a)u=uje(u,lje(e,f,r));return u}function uje(e,t){return kY([e,t],sPt)}function sPt(e,t){return e===void 0?1:t===void 0?-1:Kc(e.kind,t.kind)||JC(!e.isCaseSensitive,!t.isCaseSensitive)}function bxe(e,t,r,a,u={start:0,length:r.length}){return u.length<=t.length&&mje(0,u.length,f=>aPt(r.charCodeAt(u.start+f),e.charCodeAt(t.start+f),a))}function aPt(e,t,r){return r?Sxe(e)===Sxe(t):e===t}function dje(e,t,r,a){let u=r.characterSpans,f=0,p=0,y,g;for(;;){if(p===u.length)return!0;if(f===t.length)return!1;let x=t[f],k=!1;for(;p=65&&e<=90)return!0;if(e<127||!tz(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function fje(e){if(e>=97&&e<=122)return!0;if(e<127||!tz(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function lPt(e,t){let r=e.length-t.length;for(let a=0;a<=r;a++)if(ioe(t,(u,f)=>Sxe(e.charCodeAt(f+a))===u))return a;return-1}function Sxe(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function xxe(e){return e>=48&&e<=57}function uPt(e){return n6(e)||fje(e)||xxe(e)||e===95||e===36}function dPt(e){let t=[],r=0,a=0;for(let u=0;u0&&(t.push(Cxe(e.substr(r,a))),a=0)}return a>0&&t.push(Cxe(e.substr(r,a))),t}function Cxe(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:kxe(e)}}function kxe(e){return _je(e,!1)}function wxe(e){return _je(e,!0)}function _je(e,t){let r=[],a=0;for(let u=1;uTxe(a)&&a!==95,t,r)}function fPt(e,t,r){return t!==r&&t+1t(e.charCodeAt(u),u))}function hje(e,t=!0,r=!1){let a={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},u=[],f,p,y,g=0,x=!1;function k(){return p=y,y=m_.scan(),y===19?g++:y===20&&g--,y}function T(){let ne=m_.getTokenValue(),_e=m_.getTokenStart();return{fileName:ne,pos:_e,end:_e+ne.length}}function A(){f||(f=[]),f.push({ref:T(),depth:g})}function P(){u.push(T()),R()}function R(){g===0&&(x=!0)}function W(){let ne=m_.getToken();return ne===138?(ne=k(),ne===144&&(ne=k(),ne===11&&A()),!0):!1}function z(){if(p===25)return!1;let ne=m_.getToken();if(ne===102){if(ne=k(),ne===21){if(ne=k(),ne===11||ne===15)return P(),!0}else{if(ne===11)return P(),!0;if(ne===156&&m_.lookAhead(()=>{let ce=m_.scan();return ce!==161&&(ce===42||ce===19||ce===80||Q_(ce))})&&(ne=k()),ne===80||Q_(ne))if(ne=k(),ne===161){if(ne=k(),ne===11)return P(),!0}else if(ne===64){if(G(!0))return!0}else if(ne===28)ne=k();else return!0;if(ne===19){for(ne=k();ne!==20&&ne!==1;)ne=k();ne===20&&(ne=k(),ne===161&&(ne=k(),ne===11&&P()))}else ne===42&&(ne=k(),ne===130&&(ne=k(),(ne===80||Q_(ne))&&(ne=k(),ne===161&&(ne=k(),ne===11&&P()))))}return!0}return!1}function q(){let ne=m_.getToken();if(ne===95){if(R(),ne=k(),ne===156&&m_.lookAhead(()=>{let ce=m_.scan();return ce===42||ce===19})&&(ne=k()),ne===19){for(ne=k();ne!==20&&ne!==1;)ne=k();ne===20&&(ne=k(),ne===161&&(ne=k(),ne===11&&P()))}else if(ne===42)ne=k(),ne===161&&(ne=k(),ne===11&&P());else if(ne===102&&(ne=k(),ne===156&&m_.lookAhead(()=>{let ce=m_.scan();return ce===80||Q_(ce)})&&(ne=k()),(ne===80||Q_(ne))&&(ne=k(),ne===64&&G(!0))))return!0;return!0}return!1}function G(ne,_e=!1){let ce=ne?k():m_.getToken();return ce===149?(ce=k(),ce===21&&(ce=k(),(ce===11||_e&&ce===15)&&P()),!0):!1}function $(){let ne=m_.getToken();if(ne===80&&m_.getTokenValue()==="define"){if(ne=k(),ne!==21)return!0;if(ne=k(),ne===11||ne===15)if(ne=k(),ne===28)ne=k();else return!0;if(ne!==23)return!0;for(ne=k();ne!==24&&ne!==1;)(ne===11||ne===15)&&P(),ne=k();return!0}return!1}function te(){for(m_.setText(e),k();m_.getToken()!==1;){if(m_.getToken()===16){let ne=[m_.getToken()];e:for(;K(ne);){let _e=m_.scan();switch(_e){case 1:break e;case 102:z();break;case 16:ne.push(_e);break;case 19:K(ne)&&ne.push(_e);break;case 20:K(ne)&&(Lc(ne)===16?m_.reScanTemplateToken(!1)===18&&ne.pop():ne.pop());break}}k()}W()||z()||q()||r&&(G(!1,!0)||$())||k()}m_.setText(void 0)}if(t&&te(),gte(a,e),yte(a,dc),x){if(f)for(let ne of f)u.push(ne.ref);return{referencedFiles:a.referencedFiles,typeReferenceDirectives:a.typeReferenceDirectives,libReferenceDirectives:a.libReferenceDirectives,importedFiles:u,isLibFile:!!a.hasNoDefaultLib,ambientExternalModules:void 0}}else{let ne;if(f)for(let _e of f)_e.depth===0?(ne||(ne=[]),ne.push(_e.ref.fileName)):u.push(_e.ref);return{referencedFiles:a.referencedFiles,typeReferenceDirectives:a.typeReferenceDirectives,libReferenceDirectives:a.libReferenceDirectives,importedFiles:u,isLibFile:!!a.hasNoDefaultLib,ambientExternalModules:ne}}}var pPt=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function Exe(e){let t=df(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),a=new Map,u=new Map;return{tryGetSourcePosition:y,tryGetGeneratedPosition:g,toLineColumnOffset:A,clearCache:P,documentPositionMappers:u};function f(R){return Vc(R,r,t)}function p(R,W){let z=f(R),q=u.get(z);if(q)return q;let G;if(e.getDocumentPositionMapper)G=e.getDocumentPositionMapper(R,W);else if(e.readFile){let $=T(R);G=$&&noe({getSourceFileLike:T,getCanonicalFileName:t,log:te=>e.log(te)},R,cie($.text,Ov($)),te=>!e.fileExists||e.fileExists(te)?e.readFile(te):void 0)}return u.set(z,G||uie),G||uie}function y(R){if(!Jd(R.fileName)||!x(R.fileName))return;let z=p(R.fileName).getSourcePosition(R);return!z||z===R?void 0:y(z)||z}function g(R){if(Jd(R.fileName))return;let W=x(R.fileName);if(!W)return;let z=e.getProgram();if(z.isSourceOfProjectReferenceRedirect(W.fileName))return;let G=z.getCompilerOptions().outFile,$=G?A_(G)+".d.ts":fV(R.fileName,z.getCompilerOptions(),z);if($===void 0)return;let te=p($,R.fileName).getGeneratedPosition(R);return te===R?void 0:te}function x(R){let W=e.getProgram();if(!W)return;let z=f(R),q=W.getSourceFileByPath(z);return q&&q.resolvedPath===z?q:void 0}function k(R){let W=f(R),z=a.get(W);if(z!==void 0)return z||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){a.set(W,!1);return}let q=e.readFile(R),G=q?mPt(q):!1;return a.set(W,G),G||void 0}function T(R){return e.getSourceFileLike?e.getSourceFileLike(R):x(R)||k(R)}function A(R,W){return T(R).getLineAndCharacterOfPosition(W)}function P(){a.clear(),u.clear()}}function noe(e,t,r,a){let u=t1e(r);if(u){let y=pPt.exec(u);if(y){if(y[1]){let g=y[1];return gje(e,Bge(Sd,g),t)}u=void 0}}let f=[];u&&f.push(u),f.push(t+".map");let p=u&&ts(u,Or(t));for(let y of f){let g=ts(y,Or(t)),x=a(g,p);if(fs(x))return gje(e,x,g);if(x!==void 0)return x||void 0}}function gje(e,t,r){let a=i1e(t);if(!(!a||!a.sources||!a.file||!a.mappings)&&!(a.sourcesContent&&a.sourcesContent.some(fs)))return r1e(e,a,r)}function mPt(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return NP(Ov(this),r)}}}var Dxe=new Map;function roe(e,t,r){var a;t.getSemanticDiagnostics(e,r);let u=[],f=t.getTypeChecker();!(t.getImpliedNodeFormatForEmit(e)===1||vu(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(BSe(t)||hre(t.getCompilerOptions()))&&hPt(e)&&u.push(Mn(bPt(e.commonJsModuleIndicator),S.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let y=N_(e);if(Dxe.clear(),g(e),uN(t.getCompilerOptions()))for(let x of e.imports){let k=K3(x),T=gPt(k);if(!T)continue;let A=(a=t.getResolvedModuleFromModuleSpecifier(x,e))==null?void 0:a.resolvedModule,P=A&&t.getSourceFile(A.resolvedFileName);P&&P.externalModuleIndicator&&P.externalModuleIndicator!==!0&&ll(P.externalModuleIndicator)&&P.externalModuleIndicator.isExportEquals&&u.push(Mn(T,S.Import_may_be_converted_to_a_default_import))}return Fn(u,e.bindSuggestionDiagnostics),Fn(u,t.getSuggestionDiagnostics(e,r)),u.sort((x,k)=>x.start-k.start),u;function g(x){if(y)xPt(x,f)&&u.push(Mn(Ur(x.parent)?x.parent.name:x,S.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(mu(x)&&x.parent===e&&x.declarationList.flags&2&&x.declarationList.declarations.length===1){let T=x.declarationList.declarations[0].initializer;T&&Y_(T,!0)&&u.push(Mn(T,S.require_call_may_be_converted_to_an_import))}let k=Qf.getJSDocTypedefNodes(x);for(let T of k)u.push(Mn(T,S.JSDoc_typedef_may_be_converted_to_TypeScript_type));Qf.parameterShouldGetTypeFromJSDoc(x)&&u.push(Mn(x.name||x,S.JSDoc_types_may_be_moved_to_TypeScript_types))}aoe(x)&&yPt(x,f,u),x.forEachChild(g)}}function hPt(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Y_(yje(r.initializer),!0));case 244:{let{expression:r}=t;if(!Yn(r))return Y_(r,!0);let a=Su(r);return a===1||a===2}default:return!1}})}function yje(e){return lr(e)?yje(e.expression):e}function gPt(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Da(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function yPt(e,t,r){vPt(e,t)&&!Dxe.has(xje(e))&&r.push(Mn(!e.name&&Ur(e.parent)&&et(e.parent.name)?e.parent.name:e,S.This_may_be_converted_to_an_async_function))}function vPt(e,t){return!eO(e)&&e.body&&Ds(e.body)&&SPt(e.body,t)&&ooe(e,t)}function ooe(e,t){let r=t.getSignatureFromDeclaration(e),a=r?t.getReturnTypeOfSignature(r):void 0;return!!a&&!!t.getPromisedTypeOfPromise(a)}function bPt(e){return Yn(e)?e.left:e}function SPt(e,t){return!!tS(e,r=>XJ(r,t))}function XJ(e,t){return qh(e)&&!!e.expression&&soe(e.expression,t)}function soe(e,t){if(!vje(e)||!bje(e)||!e.arguments.every(a=>Sje(a,t)))return!1;let r=e.expression.expression;for(;vje(r)||lr(r);)if(Gs(r)){if(!bje(r)||!r.arguments.every(a=>Sje(a,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function vje(e){return Gs(e)&&(B5(e,"then")||B5(e,"catch")||B5(e,"finally"))}function bje(e){let t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.lengtha.kind===106||et(a)&&a.text==="undefined")}function Sje(e,t){switch(e.kind){case 262:case 218:if(Vu(e)&1)return!1;case 219:Dxe.set(xje(e),!0);case 106:return!0;case 80:case 211:{let a=t.getSymbolAtLocation(e);return a?t.isUndefinedSymbol(a)||Lt(hf(a,t).declarations,u=>vs(u)||Qb(u)&&!!u.initializer&&vs(u.initializer)):!1}default:return!1}}function xje(e){return`${e.pos.toString()}:${e.end.toString()}`}function xPt(e,t){var r,a,u,f;if(Yc(e)){if(Ur(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;let p=t.getSymbolOfExpando(e,!1);return!!(p&&((a=p.exports)!=null&&a.size||(u=p.members)!=null&&u.size))}return xu(e)?!!((f=e.symbol.members)!=null&&f.size):!1}function aoe(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var CPt=new Set(["isolatedModules"]);function Ixe(e,t){return kje(e,t,!1)}function Cje(e,t){return kje(e,t,!0)}var kPt=`/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number {} +interface Object {} +interface RegExp {} +interface String {} +interface Array { length: number; [n: number]: T; } +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +}`,YJ="lib.d.ts",Nxe;function kje(e,t,r){Nxe??(Nxe=ON(YJ,kPt,{languageVersion:99}));let a=[],u=t.compilerOptions?coe(t.compilerOptions,a):{},f=uq();for(let W in f)Nc(f,W)&&u[W]===void 0&&(u[W]=f[W]);for(let W of ive)u.verbatimModuleSyntax&&CPt.has(W.name)||(u[W.name]=W.transpileOptionValue);u.suppressOutputPathCheck=!0,u.allowNonTsExtensions=!0,r?(u.declaration=!0,u.emitDeclarationOnly=!0,u.isolatedDeclarations=!0):(u.declaration=!1,u.declarationMap=!1);let p=aS(u),y={getSourceFile:W=>W===$s(g)?x:W===$s(YJ)?Nxe:void 0,writeFile:(W,z)=>{Tl(W,".map")?(B.assertEqual(T,void 0,"Unexpected multiple source map outputs, file:",W),T=z):(B.assertEqual(k,void 0,"Unexpected multiple outputs, file:",W),k=z)},getDefaultLibFileName:()=>YJ,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:W=>W,getCurrentDirectory:()=>"",getNewLine:()=>p,fileExists:W=>W===g||!!r&&W===YJ,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},g=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),x=ON(g,e,{languageVersion:Oa(u),impliedNodeFormat:E5(Vc(g,"",y.getCanonicalFileName),void 0,y,u),setExternalModuleIndicator:bR(u),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(x.moduleName=t.moduleName),t.renamedDependencies&&(x.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let k,T,P=D5(r?[g,YJ]:[g],u,y);t.reportDiagnostics&&(Fn(a,P.getSyntacticDiagnostics(x)),Fn(a,P.getOptionsDiagnostics()));let R=P.emit(void 0,void 0,void 0,r,t.transformers,r);return Fn(a,R.diagnostics),k===void 0?B.fail("Output generation failed"):{outputText:k,diagnostics:a,sourceMapText:T}}function wje(e,t,r,a,u){let f=Ixe(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!a,moduleName:u});return Fn(a,f.diagnostics),f.outputText}var Axe;function coe(e,t){Axe=Axe||Di(i0,r=>typeof r.type=="object"&&!Vd(r.type,a=>typeof a!="number")),e=ure(e);for(let r of Axe){if(!Nc(e,r.name))continue;let a=e[r.name];fs(a)?e[r.name]=UH(r,a,t):Vd(r.type,u=>u===a)||t.push(rve(r))}return e}var Pxe={};_(Pxe,{getNavigateToItems:()=>Tje});function Tje(e,t,r,a,u,f,p){let y=yxe(a);if(!y)return F;let g=[],x=e.length===1?e[0]:void 0;for(let k of e)r.throwIfCancellationRequested(),!(f&&k.isDeclarationFile)&&(Eje(k,!!p,x)||k.getNamedDeclarations().forEach((T,A)=>{wPt(y,A,T,t,k.fileName,!!p,x,g)}));return g.sort(IPt),(u===void 0?g:g.slice(0,u)).map(NPt)}function Eje(e,t,r){return e!==r&&t&&(i9(e.path)||e.hasNoDefaultLib)}function wPt(e,t,r,a,u,f,p,y){let g=e.getMatchForLastSegmentOfPattern(t);if(g){for(let x of r)if(TPt(x,a,f,p))if(e.patternContainsDots){let k=e.getFullMatch(DPt(x),t);k&&y.push({name:t,fileName:u,matchKind:k.kind,isCaseSensitive:k.isCaseSensitive,declaration:x})}else y.push({name:t,fileName:u,matchKind:g.kind,isCaseSensitive:g.isCaseSensitive,declaration:x})}}function TPt(e,t,r,a){var u;switch(e.kind){case 273:case 276:case 271:let f=t.getSymbolAtLocation(e.name),p=t.getAliasedSymbol(f);return f.escapedName!==p.escapedName&&!((u=p.declarations)!=null&&u.every(y=>Eje(y.getSourceFile(),r,a)));default:return!0}}function EPt(e,t){let r=cs(e);return!!r&&(Dje(r,t)||r.kind===167&&Lxe(r.expression,t))}function Lxe(e,t){return Dje(e,t)||lr(e)&&(t.push(e.name.text),!0)&&Lxe(e.expression,t)}function Dje(e,t){return q0(e)&&(t.push(Hh(e)),!0)}function DPt(e){let t=[],r=cs(e);if(r&&r.kind===167&&!Lxe(r.expression,t))return F;t.shift();let a=LE(e);for(;a;){if(!EPt(a,t))return F;a=LE(a)}return t.reverse(),t}function IPt(e,t){return Kc(e.matchKind,t.matchKind)||J7(e.name,t.name)}function NPt(e){let t=e.declaration,r=LE(t),a=r&&cs(r);return{name:e.name,kind:CT(t),kindModifiers:x8(t),matchKind:toe[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:B_(t),containerName:a?a.text:"",containerKind:a?CT(r):""}}var Oxe={};_(Oxe,{getNavigationBarItems:()=>Nje,getNavigationTree:()=>Aje});var APt=/\s+/g,Fxe=150,loe,l9,QJ=[],vS,Ije=[],r6,Mxe=[];function Nje(e,t){loe=t,l9=e;try{return _i(MPt(Oje(e)),RPt)}finally{Pje()}}function Aje(e,t){loe=t,l9=e;try{return Hje(Oje(e))}finally{Pje()}}function Pje(){l9=void 0,loe=void 0,QJ=[],vS=void 0,Mxe=[]}function ZJ(e){return P8(e.getText(l9))}function uoe(e){return e.node.kind}function Lje(e,t){e.children?e.children.push(t):e.children=[t]}function Oje(e){B.assert(!QJ.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};vS=t;for(let r of e.statements)XN(r);return Ik(),B.assert(!vS&&!QJ.length),t}function ET(e,t){Lje(vS,Rxe(e,t))}function Rxe(e,t){return{node:e,name:t||(mf(e)||Mt(e)?cs(e):void 0),additionalNodes:void 0,parent:vS,children:void 0,indent:vS.indent+1}}function Fje(e){r6||(r6=new Map),r6.set(e,!0)}function Mje(e){for(let t=0;t0;a--){let u=r[a];DT(e,u)}return[r.length-1,r[0]]}function DT(e,t){let r=Rxe(e,t);Lje(vS,r),QJ.push(vS),Ije.push(r6),r6=void 0,vS=r}function Ik(){vS.children&&(doe(vS.children,vS),Wxe(vS.children)),vS=QJ.pop(),r6=Ije.pop()}function Nk(e,t,r){DT(e,r),XN(t),Ik()}function Bje(e){e.initializer&&jPt(e.initializer)?(DT(e),ws(e.initializer,XN),Ik()):Nk(e,e.initializer)}function Bxe(e){let t=cs(e);if(t===void 0)return!1;if(Ma(t)){let r=t.expression;return Xc(r)||Z_(r)||Am(r)}return!!t}function XN(e){if(loe.throwIfCancellationRequested(),!(!e||MI(e)))switch(e.kind){case 176:let t=e;Nk(t,t.body);for(let p of t.parameters)Wp(p,t)&&ET(p);break;case 174:case 177:case 178:case 173:Bxe(e)&&Nk(e,e.body);break;case 172:Bxe(e)&&Bje(e);break;case 171:Bxe(e)&&ET(e);break;case 273:let r=e;r.name&&ET(r.name);let{namedBindings:a}=r;if(a)if(a.kind===274)ET(a);else for(let p of a.elements)ET(p);break;case 304:Nk(e,e.name);break;case 305:let{expression:u}=e;et(u)?ET(e,u):ET(e);break;case 208:case 303:case 260:{let p=e;Rs(p.name)?XN(p.name):Bje(p);break}case 262:let f=e.name;f&&et(f)&&Fje(f.text),Nk(e,e.body);break;case 219:case 218:Nk(e,e.body);break;case 266:DT(e);for(let p of e.members)BPt(p)||ET(p);Ik();break;case 263:case 231:case 264:DT(e);for(let p of e.members)XN(p);Ik();break;case 267:Nk(e,Jje(e).body);break;case 277:{let p=e.expression,y=ba(p)||Gs(p)?p:rl(p)||Yc(p)?p.body:void 0;y?(DT(e),XN(y),Ik()):ET(e);break}case 281:case 271:case 181:case 179:case 180:case 265:ET(e);break;case 213:case 226:{let p=Su(e);switch(p){case 1:case 2:Nk(e,e.right);return;case 6:case 3:{let y=e,g=y.left,x=p===3?g.expression:g,k=0,T;et(x.expression)?(Fje(x.expression.text),T=x.expression):[k,T]=Rje(y,x.expression),p===6?ba(y.right)&&y.right.properties.length>0&&(DT(y,T),ws(y.right,XN),Ik()):Yc(y.right)||rl(y.right)?Nk(e,y.right,T):(DT(y,T),Nk(e,y.right,g.name),Ik()),Mje(k);return}case 7:case 9:{let y=e,g=p===7?y.arguments[0]:y.arguments[0].expression,x=y.arguments[1],[k,T]=Rje(e,g);DT(e,T),DT(e,Ft(U.createIdentifier(x.text),x)),XN(e.arguments[2]),Ik(),Ik(),Mje(k);return}case 5:{let y=e,g=y.left,x=g.expression;if(et(x)&&X1(g)!=="prototype"&&r6&&r6.has(x.text)){Yc(y.right)||rl(y.right)?Nk(e,y.right,x):Gw(g)&&(DT(y,x),Nk(y.left,y.right,JM(g)),Ik());return}break}case 4:case 0:case 8:break;default:B.assertNever(p)}}default:dm(e)&&re(e.jsDoc,p=>{re(p.tags,y=>{Vh(y)&&ET(y)})}),ws(e,XN)}}function doe(e,t){let r=new Map;rs(e,(a,u)=>{let f=a.name||cs(a.node),p=f&&ZJ(f);if(!p)return!0;let y=r.get(p);if(!y)return r.set(p,a),!0;if(y instanceof Array){for(let g of y)if(jje(g,a,u,t))return!1;return y.push(a),!0}else{let g=y;return jje(g,a,u,t)?!1:(r.set(p,[g,a]),!0)}})}var u9={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function PPt(e,t,r,a){function u(y){return Yc(y)||xu(y)||Ur(y)}let f=Yn(t.node)||Gs(t.node)?Su(t.node):0,p=Yn(e.node)||Gs(e.node)?Su(e.node):0;if(u9[f]&&u9[p]||u(e.node)&&u9[f]||u(t.node)&&u9[p]||Zu(e.node)&&jxe(e.node)&&u9[f]||Zu(t.node)&&u9[p]||Zu(e.node)&&jxe(e.node)&&u(t.node)||Zu(t.node)&&u(e.node)&&jxe(e.node)){let y=e.additionalNodes&&Lc(e.additionalNodes)||e.node;if(!Zu(e.node)&&!Zu(t.node)||u(e.node)||u(t.node)){let x=u(e.node)?e.node:u(t.node)?t.node:void 0;if(x!==void 0){let k=Ft(U.createConstructorDeclaration(void 0,[],void 0),x),T=Rxe(k);T.indent=e.indent+1,T.children=e.node===x?e.children:t.children,e.children=e.node===x?Fo([T],t.children||[t]):Fo(e.children||[{...e}],[T])}else(e.children||t.children)&&(e.children=Fo(e.children||[{...e}],t.children||[t]),e.children&&(doe(e.children,e),Wxe(e.children)));y=e.node=Ft(U.createClassDeclaration(void 0,e.name||U.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Fo(e.children,t.children),e.children&&doe(e.children,e);let g=t.node;return a.children[r-1].node.end===y.end?Ft(y,{pos:y.pos,end:g.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(Ft(U.createClassDeclaration(void 0,e.name||U.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return f!==0}function jje(e,t,r,a){return PPt(e,t,r,a)?!0:LPt(e.node,t.node,a)?(OPt(e,t),!0):!1}function LPt(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(Wje(e,r)&&Wje(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return ia(e)===ia(t);case 267:return zje(e,t)&&Hxe(e)===Hxe(t);default:return!0}}function jxe(e){return!!(e.flags&16)}function Wje(e,t){let r=ty(e.parent)?e.parent.parent:e.parent;return r===t.node||sn(t.additionalNodes,r)}function zje(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||zje(e.body,t.body))}function OPt(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=Fo(e.children,t.children),e.children&&(doe(e.children,e),Wxe(e.children))}function Wxe(e){e.sort(FPt)}function FPt(e,t){return J7(Vje(e.node),Vje(t.node))||Kc(uoe(e),uoe(t))}function Vje(e){if(e.kind===267)return Uje(e);let t=cs(e);if(t&&zu(t)){let r=uE(t);return r&&So(r)}switch(e.kind){case 218:case 219:case 231:return $je(e);default:return}}function zxe(e,t){if(e.kind===267)return P8(Uje(e));if(t){let r=et(t)?t.text:nl(t)?`[${ZJ(t.argumentExpression)}]`:ZJ(t);if(r.length>0)return P8(r)}switch(e.kind){case 307:let r=e;return dd(r)?`"${Yy(Xu(A_($s(r.fileName))))}"`:"";case 277:return ll(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return oS(e)&2048?"default":$je(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function MPt(e){let t=[];function r(u){if(a(u)&&(t.push(u),u.children))for(let f of u.children)r(f)}return r(e),t;function a(u){if(u.children)return!0;switch(uoe(u)){case 263:case 231:case 266:case 264:case 267:case 307:case 265:case 346:case 338:return!0;case 219:case 262:case 218:return f(u);default:return!1}function f(p){if(!p.node.body)return!1;switch(uoe(p.parent)){case 268:case 307:case 174:case 176:return!0;default:return!1}}}}function Hje(e){return{text:zxe(e.node,e.name),kind:CT(e.node),kindModifiers:qje(e.node),spans:Vxe(e),nameSpan:e.name&&Uxe(e.name),childItems:_i(e.children,Hje)}}function RPt(e){return{text:zxe(e.node,e.name),kind:CT(e.node),kindModifiers:qje(e.node),spans:Vxe(e),childItems:_i(e.children,t)||Mxe,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:zxe(r.node,r.name),kind:CT(r.node),kindModifiers:x8(r.node),spans:Vxe(r),childItems:Mxe,indent:0,bolded:!1,grayed:!1}}}function Vxe(e){let t=[Uxe(e.node)];if(e.additionalNodes)for(let r of e.additionalNodes)t.push(Uxe(r));return t}function Uje(e){return d_(e)?Jl(e.name):Hxe(e)}function Hxe(e){let t=[Hh(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Hh(e.name));return t.join(".")}function Jje(e){return e.body&&Hu(e.body)?Jje(e.body):e}function BPt(e){return!e.name||e.name.kind===167}function Uxe(e){return e.kind===307?yS(e):B_(e,l9)}function qje(e){return e.parent&&e.parent.kind===260&&(e=e.parent),x8(e)}function $je(e){let{parent:t}=e;if(e.name&&xM(e.name)>0)return P8(Hc(e.name));if(Ur(t))return P8(Hc(t.name));if(Yn(t)&&t.operatorToken.kind===64)return ZJ(t.left).replace(APt,"");if(ed(t))return ZJ(t.name);if(oS(e)&2048)return"default";if(jr(e))return"";if(Gs(t)){let r=Gje(t.expression);if(r!==void 0){if(r=P8(r),r.length>Fxe)return`${r} callback`;let a=P8(ro(t.arguments,u=>xc(u)||jI(u)?u.getText(l9):void 0).join(", "));return`${r}(${a}) callback`}}return""}function Gje(e){if(et(e))return e.text;if(lr(e)){let t=Gje(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function jPt(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function P8(e){return e=e.length>Fxe?e.substring(0,Fxe)+"...":e,e.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var YN={};_(YN,{addExportsInOldFile:()=>tCe,addImportsForMovedSymbols:()=>iCe,addNewFileToTsconfig:()=>eCe,addOrRemoveBracesToArrowFunction:()=>F4t,addTargetFileImports:()=>dCe,containsJsx:()=>oCe,convertArrowFunctionOrFunctionExpression:()=>W4t,convertParamsToDestructuredObject:()=>Y4t,convertStringOrTemplateLiteral:()=>m6t,convertToOptionalChainExpression:()=>w6t,createNewFileName:()=>rCe,doChangeNamedToNamespaceOrDefault:()=>eWe,extractSymbol:()=>$We,generateGetAccessorAndSetAccessor:()=>cLt,getApplicableRefactors:()=>WPt,getEditsForRefactor:()=>zPt,getExistingLocals:()=>lCe,getIdentifierForNode:()=>uCe,getNewStatementsAndRemoveFromOldFile:()=>Zxe,getStatementsToMove:()=>d9,getUsageInfo:()=>eq,inferFunctionReturnType:()=>lLt,isRefactorErrorInfo:()=>lb,refactorKindBeginsWith:()=>Ak,registerRefactor:()=>e1});var Jxe=new Map;function e1(e,t){Jxe.set(e,t)}function WPt(e,t){return as(qa(Jxe.values(),r=>{var a;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((a=r.kinds)!=null&&a.some(u=>Ak(u,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function zPt(e,t,r,a){let u=Jxe.get(t);return u&&u.getEditsForAction(e,r,a)}var qxe="Convert export",foe={name:"Convert default export to named export",description:gs(S.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},_oe={name:"Convert named export to default export",description:gs(S.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};e1(qxe,{kinds:[foe.kind,_oe.kind],getAvailableActions:function(t){let r=Kje(t,t.triggerReason==="invoked");if(!r)return F;if(!lb(r)){let a=r.wasDefault?foe:_oe;return[{name:qxe,description:a.description,actions:[a]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:qxe,description:gs(S.Convert_default_export_to_named_export),actions:[{...foe,notApplicableReason:r.error},{..._oe,notApplicableReason:r.error}]}]:F},getEditsForAction:function(t,r){B.assert(r===foe.name||r===_oe.name,"Unexpected action name");let a=Kje(t);return B.assert(a&&!lb(a),"Expected applicable refactor info"),{edits:Vn.ChangeTracker.with(t,f=>VPt(t.file,t.program,a,f,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function Kje(e,t=!0){let{file:r,program:a}=e,u=GN(e),f=go(r,u.start),p=f.parent&&oS(f.parent)&32&&t?f.parent:K5(f,r,u);if(!p||!mo(p.parent)&&!(ty(p.parent)&&d_(p.parent.parent)))return{error:gs(S.Could_not_find_export_statement)};let y=a.getTypeChecker(),g=$Pt(p.parent,y),x=oS(p)||(ll(p)&&!p.isExportEquals?2080:0),k=!!(x&2048);if(!(x&32)||!k&&g.exports.has("default"))return{error:gs(S.This_file_already_has_a_default_export)};let T=A=>et(A)&&y.getSymbolAtLocation(A)?void 0:{error:gs(S.Can_only_convert_named_export)};switch(p.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let A=p;return A.name?T(A.name)||{exportNode:A,exportName:A.name,wasDefault:k,exportingModuleSymbol:g}:void 0}case 243:{let A=p;if(!(A.declarationList.flags&2)||A.declarationList.declarations.length!==1)return;let P=Ta(A.declarationList.declarations);return P.initializer?(B.assert(!k,"Can't have a default flag here"),T(P.name)||{exportNode:A,exportName:P.name,wasDefault:k,exportingModuleSymbol:g}):void 0}case 277:{let A=p;return A.isExportEquals?void 0:T(A.expression)||{exportNode:A,exportName:A.expression,wasDefault:k,exportingModuleSymbol:g}}default:return}}function VPt(e,t,r,a,u){HPt(e,r,a,t.getTypeChecker()),UPt(t,r,a,u)}function HPt(e,{wasDefault:t,exportNode:r,exportName:a},u,f){if(t)if(ll(r)&&!r.isExportEquals){let p=r.expression,y=Xje(p.text,p.text);u.replaceNode(e,r,U.createExportDeclaration(void 0,!1,U.createNamedExports([y])))}else u.delete(e,B.checkDefined(Y4(r,90),"Should find a default keyword in modifier list"));else{let p=B.checkDefined(Y4(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:u.insertNodeAfter(e,p,U.createToken(90));break;case 243:let y=Ta(r.declarationList.declarations);if(!ol.Core.isSymbolReferencedInFile(a,f,e)&&!y.type){u.replaceNode(e,r,U.createExportDefault(B.checkDefined(y.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:u.deleteModifier(e,p),u.insertNodeAfter(e,r,U.createExportDefault(U.createIdentifier(a.text)));break;default:B.fail(`Unexpected exportNode kind ${r.kind}`)}}}function UPt(e,{wasDefault:t,exportName:r,exportingModuleSymbol:a},u,f){let p=e.getTypeChecker(),y=B.checkDefined(p.getSymbolAtLocation(r),"Export name should resolve to a symbol");ol.Core.eachExportReference(e.getSourceFiles(),p,f,y,a,r.text,t,g=>{if(r===g)return;let x=g.getSourceFile();t?JPt(x,g,u,r.text):qPt(x,g,u)})}function JPt(e,t,r,a){let{parent:u}=t;switch(u.kind){case 211:r.replaceNode(e,t,U.createIdentifier(a));break;case 276:case 281:{let p=u;r.replaceNode(e,p,$xe(a,p.name.text));break}case 273:{let p=u;B.assert(p.name===t,"Import clause name should match provided ref");let y=$xe(a,t.text),{namedBindings:g}=p;if(!g)r.replaceNode(e,t,U.createNamedImports([y]));else if(g.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:g.getStart(e)});let x=Da(p.parent.moduleSpecifier)?yre(p.parent.moduleSpecifier,e):1,k=Wx(void 0,[$xe(a,t.text)],p.parent.moduleSpecifier,x);r.insertNodeAfter(e,p.parent,k)}else r.delete(e,t),r.insertNodeAtEndOfList(e,g.elements,y);break}case 205:let f=u;r.replaceNode(e,u,U.createImportTypeNode(f.argument,f.attributes,U.createIdentifier(a),f.typeArguments,f.isTypeOf));break;default:B.failBadSyntaxKind(u)}}function qPt(e,t,r){let a=t.parent;switch(a.kind){case 211:r.replaceNode(e,t,U.createIdentifier("default"));break;case 276:{let u=U.createIdentifier(a.name.text);a.parent.elements.length===1?r.replaceNode(e,a.parent,u):(r.delete(e,a),r.insertNodeBefore(e,a.parent,u));break}case 281:{r.replaceNode(e,a,Xje("default",a.name.text));break}default:B.assertNever(a,`Unexpected parent kind ${a.kind}`)}}function $xe(e,t){return U.createImportSpecifier(!1,e===t?void 0:U.createIdentifier(e),U.createIdentifier(t))}function Xje(e,t){return U.createExportSpecifier(!1,e===t?void 0:U.createIdentifier(e),U.createIdentifier(t))}function $Pt(e,t){if(mo(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&Uw(r.valueDeclaration)?t.getMergedSymbol(r):r}var Gxe="Convert import",poe={0:{name:"Convert namespace import to named imports",description:gs(S.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:gs(S.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:gs(S.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};e1(Gxe,{kinds:T2(poe).map(e=>e.kind),getAvailableActions:function(t){let r=Yje(t,t.triggerReason==="invoked");if(!r)return F;if(!lb(r)){let a=poe[r.convertTo];return[{name:Gxe,description:a.description,actions:[a]}]}return t.preferences.provideRefactorNotApplicableReason?T2(poe).map(a=>({name:Gxe,description:a.description,actions:[{...a,notApplicableReason:r.error}]})):F},getEditsForAction:function(t,r){B.assert(Lt(T2(poe),f=>f.name===r),"Unexpected action name");let a=Yje(t);return B.assert(a&&!lb(a),"Expected applicable refactor info"),{edits:Vn.ChangeTracker.with(t,f=>GPt(t.file,t.program,f,a)),renameFilename:void 0,renameLocation:void 0}}});function Yje(e,t=!0){let{file:r}=e,a=GN(e),u=go(r,a.start),f=t?Ri(u,Im(ql,oy)):K5(u,r,a);if(f===void 0||!(ql(f)||oy(f)))return{error:"Selection is not an import declaration."};let p=a.start+a.length,y=kT(f,f.parent,r);if(y&&p>y.getStart())return;let{importClause:g}=f;return g?g.namedBindings?g.namedBindings.kind===274?{convertTo:0,import:g.namedBindings}:Qje(e.program,g)?{convertTo:1,import:g.namedBindings}:{convertTo:2,import:g.namedBindings}:{error:gs(S.Could_not_find_namespace_import_or_named_imports)}:{error:gs(S.Could_not_find_import_clause)}}function Qje(e,t){return uN(e.getCompilerOptions())&&YPt(t.parent.moduleSpecifier,e.getTypeChecker())}function GPt(e,t,r,a){let u=t.getTypeChecker();a.convertTo===0?KPt(e,u,r,a.import,uN(t.getCompilerOptions())):eWe(e,t,r,a.import,a.convertTo===1)}function KPt(e,t,r,a,u){let f=!1,p=[],y=new Map;ol.Core.eachSymbolReferenceInFile(a.name,t,e,T=>{if(!gM(T.parent))f=!0;else{let A=Zje(T.parent).text;t.resolveName(A,T,-1,!0)&&y.set(A,!0),B.assert(XPt(T.parent)===T,"Parent expression should match id"),p.push(T.parent)}});let g=new Map;for(let T of p){let A=Zje(T).text,P=g.get(A);P===void 0&&g.set(A,P=y.has(A)?FE(A,e):A),r.replaceNode(e,T,U.createIdentifier(P))}let x=[];g.forEach((T,A)=>{x.push(U.createImportSpecifier(!1,T===A?void 0:U.createIdentifier(A),U.createIdentifier(T)))});let k=a.parent.parent;if(f&&!u&&ql(k))r.insertNodeAfter(e,k,tWe(k,void 0,x));else{let T=f?U.createIdentifier(a.name.text):void 0;r.replaceNode(e,a.parent,iWe(T,x))}}function Zje(e){return lr(e)?e.name:e.right}function XPt(e){return lr(e)?e.expression:e.left}function eWe(e,t,r,a,u=Qje(t,a.parent)){let f=t.getTypeChecker(),p=a.parent.parent,{moduleSpecifier:y}=p,g=new Set;a.elements.forEach(R=>{let W=f.getSymbolAtLocation(R.name);W&&g.add(W)});let x=y&&Da(y)?r9(y.text,99):"module";function k(R){return!!ol.Core.eachSymbolReferenceInFile(R.name,f,e,W=>{let z=f.resolveName(x,W,-1,!0);return z?g.has(z)?Gf(W.parent):!0:!1})}let A=a.elements.some(k)?FE(x,e):x,P=new Set;for(let R of a.elements){let W=R.propertyName||R.name;ol.Core.eachSymbolReferenceInFile(R.name,f,e,z=>{let q=W.kind===11?U.createElementAccessExpression(U.createIdentifier(A),U.cloneNode(W)):U.createPropertyAccessExpression(U.createIdentifier(A),U.cloneNode(W));jf(z.parent)?r.replaceNode(e,z.parent,U.createPropertyAssignment(z.text,q)):Gf(z.parent)?P.add(R):r.replaceNode(e,z,q)})}if(r.replaceNode(e,a,u?U.createIdentifier(A):U.createNamespaceImport(U.createIdentifier(A))),P.size&&ql(p)){let R=as(P.values(),W=>U.createImportSpecifier(W.isTypeOnly,W.propertyName&&U.cloneNode(W.propertyName),U.cloneNode(W.name)));r.insertNodeAfter(e,a.parent.parent,tWe(p,void 0,R))}}function YPt(e,t){let r=t.resolveExternalModuleName(e);if(!r)return!1;let a=t.resolveExternalModuleSymbol(r);return r!==a}function tWe(e,t,r){return U.createImportDeclaration(void 0,iWe(t,r),e.moduleSpecifier,void 0)}function iWe(e,t){return U.createImportClause(!1,e,t&&t.length?U.createNamedImports(t):void 0)}var Kxe="Extract type",moe={name:"Extract to type alias",description:gs(S.Extract_to_type_alias),kind:"refactor.extract.type"},hoe={name:"Extract to interface",description:gs(S.Extract_to_interface),kind:"refactor.extract.interface"},goe={name:"Extract to typedef",description:gs(S.Extract_to_typedef),kind:"refactor.extract.typedef"};e1(Kxe,{kinds:[moe.kind,hoe.kind,goe.kind],getAvailableActions:function(t){let{info:r,affectedTextRange:a}=nWe(t,t.triggerReason==="invoked");return r?lb(r)?t.preferences.provideRefactorNotApplicableReason?[{name:Kxe,description:gs(S.Extract_type),actions:[{...goe,notApplicableReason:r.error},{...moe,notApplicableReason:r.error},{...hoe,notApplicableReason:r.error}]}]:F:[{name:Kxe,description:gs(S.Extract_type),actions:r.isJS?[goe]:hi([moe],r.typeElements&&hoe)}].map(f=>({...f,actions:f.actions.map(p=>({...p,range:a?{start:{line:ma(t.file,a.pos).line,offset:ma(t.file,a.pos).character},end:{line:ma(t.file,a.end).line,offset:ma(t.file,a.end).character}}:void 0}))})):F},getEditsForAction:function(t,r){let{file:a}=t,{info:u}=nWe(t);B.assert(u&&!lb(u),"Expected to find a range to extract");let f=FE("NewType",a),p=Vn.ChangeTracker.with(t,x=>{switch(r){case moe.name:return B.assert(!u.isJS,"Invalid actionName/JS combo"),e4t(x,a,f,u);case goe.name:return B.assert(u.isJS,"Invalid actionName/JS combo"),i4t(x,t,a,f,u);case hoe.name:return B.assert(!u.isJS&&!!u.typeElements,"Invalid actionName/JS combo"),t4t(x,a,f,u);default:B.fail("Unexpected action name")}}),y=a.fileName,g=Q5(p,y,f,!1);return{edits:p,renameFilename:y,renameLocation:g}}});function nWe(e,t=!0){let{file:r,startPosition:a}=e,u=N_(r),f=kJ(GN(e)),p=f.pos===f.end&&t,y=QPt(r,a,f,p);if(!y||!io(y))return{info:{error:gs(S.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let g=e.program.getTypeChecker(),x=n4t(y,u);if(x===void 0)return{info:{error:gs(S.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let k=r4t(y,x);if(!io(k))return{info:{error:gs(S.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let T=[];(Nx(k.parent)||wN(k.parent))&&f.end>y.end&&Fn(T,k.parent.types.filter(z=>mJ(z,r,f.pos,f.end)));let A=T.length>1?T:k,{typeParameters:P,affectedTextRange:R}=ZPt(g,A,x,r);if(!P)return{info:{error:gs(S.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let W=yoe(g,A);return{info:{isJS:u,selection:A,enclosingNode:x,typeParameters:P,typeElements:W},affectedTextRange:R}}function QPt(e,t,r,a){let u=[()=>go(e,t),()=>K4(e,t,()=>!0)];for(let f of u){let p=f(),y=mJ(p,e,r.pos,r.end),g=Ri(p,x=>x.parent&&io(x)&&!IT(r,x.parent,e)&&(a||y));if(g)return g}}function yoe(e,t){if(t){if(ds(t)){let r=[];for(let a of t){let u=yoe(e,a);if(!u)return;Fn(r,u)}return r}if(wN(t)){let r=[],a=new Map;for(let u of t.types){let f=yoe(e,u);if(!f||!f.every(p=>p.name&&Uh(a,$5(p.name))))return;Fn(r,f)}return r}else{if(gE(t))return yoe(e,t.type);if(L_(t))return t.members}}}function IT(e,t,r){return z5(e,Ea(r.text,t.pos),t.end)}function ZPt(e,t,r,a){let u=[],f=II(t),p={pos:f[0].getStart(a),end:f[f.length-1].end};for(let g of f)if(y(g))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:u,affectedTextRange:p};function y(g){if(pm(g)){if(et(g.typeName)){let x=g.typeName,k=e.resolveName(x.text,x,262144,!0);for(let T of k?.declarations||F)if(Sl(T)&&T.getSourceFile()===a){if(T.name.escapedText===x.escapedText&&IT(T,p,a))return!0;if(IT(r,T,a)&&!IT(p,T,a)){jc(u,T);break}}}}else if(hE(g)){let x=Ri(g,k=>cT(k)&&IT(k.extendsType,g,a));if(!x||!IT(p,x,a))return!0}else if(CN(g)||v4(g)){let x=Ri(g.parent,vs);if(x&&x.type&&IT(x.type,g,a)&&!IT(p,x,a))return!0}else if(aT(g)){if(et(g.exprName)){let x=e.resolveName(g.exprName.text,g.exprName,111551,!1);if(x?.valueDeclaration&&IT(r,x.valueDeclaration,a)&&!IT(p,x.valueDeclaration,a))return!0}else if(bx(g.exprName.left)&&!IT(p,g.parent,a))return!0}return a&&kN(g)&&ma(a,g.pos).line===ma(a,g.end).line&&Hn(g,1),ws(g,y)}}function e4t(e,t,r,a){let{enclosingNode:u,typeParameters:f}=a,{firstTypeNode:p,lastTypeNode:y,newTypeNode:g}=Xxe(a),x=U.createTypeAliasDeclaration(void 0,r,f.map(k=>U.updateTypeParameterDeclaration(k,k.modifiers,k.name,k.constraint,void 0)),g);e.insertNodeBefore(t,u,Pee(x),!0),e.replaceNodeRange(t,p,y,U.createTypeReferenceNode(r,f.map(k=>U.createTypeReferenceNode(k.name,void 0))),{leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.ExcludeWhitespace})}function t4t(e,t,r,a){var u;let{enclosingNode:f,typeParameters:p,typeElements:y}=a,g=U.createInterfaceDeclaration(void 0,r,p,void 0,y);Ft(g,(u=y[0])==null?void 0:u.parent),e.insertNodeBefore(t,f,Pee(g),!0);let{firstTypeNode:x,lastTypeNode:k}=Xxe(a);e.replaceNodeRange(t,x,k,U.createTypeReferenceNode(r,p.map(T=>U.createTypeReferenceNode(T.name,void 0))),{leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.ExcludeWhitespace})}function i4t(e,t,r,a,u){var f;II(u.selection).forEach(R=>{Hn(R,7168)});let{enclosingNode:p,typeParameters:y}=u,{firstTypeNode:g,lastTypeNode:x,newTypeNode:k}=Xxe(u),T=U.createJSDocTypedefTag(U.createIdentifier("typedef"),U.createJSDocTypeExpression(k),U.createIdentifier(a)),A=[];re(y,R=>{let W=OP(R),z=U.createTypeParameterDeclaration(void 0,R.name),q=U.createJSDocTemplateTag(U.createIdentifier("template"),W&&ea(W,yk),[z]);A.push(q)});let P=U.createJSDocComment(void 0,U.createNodeArray(Fo(A,[T])));if(t0(p)){let R=p.getStart(r),W=cb(t.host,(f=t.formatContext)==null?void 0:f.options);e.insertNodeAt(r,p.getStart(r),P,{suffix:W+W+r.text.slice(PJ(r.text,R-1),R)})}else e.insertNodeBefore(r,p,P,!0);e.replaceNodeRange(r,g,x,U.createTypeReferenceNode(a,y.map(R=>U.createTypeReferenceNode(R.name,void 0))))}function Xxe(e){return ds(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Nx(e.selection[0].parent)?U.createUnionTypeNode(e.selection):U.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function n4t(e,t){return Ri(e,_o)||(t?Ri(e,t0):void 0)}function r4t(e,t){return Ri(e,r=>r===t?"quit":!!(Nx(r.parent)||wN(r.parent)))??e}var voe="Move to file",Yxe=gs(S.Move_to_file),Qxe={name:"Move to file",description:Yxe,kind:"refactor.move.file"};e1(voe,{kinds:[Qxe.kind],getAvailableActions:function(t,r){let a=t.file,u=d9(t);if(!r)return F;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){let f=Ri(go(a,t.startPosition),KN),p=Ri(go(a,t.endPosition),KN);if(f&&!mo(f)&&p&&!mo(p))return F}if(t.preferences.allowTextChangesInNewFiles&&u){let f={start:{line:ma(a,u.all[0].getStart(a)).line,offset:ma(a,u.all[0].getStart(a)).character},end:{line:ma(a,pa(u.all).end).line,offset:ma(a,pa(u.all).end).character}};return[{name:voe,description:Yxe,actions:[{...Qxe,range:f}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:voe,description:Yxe,actions:[{...Qxe,notApplicableReason:gs(S.Selection_is_not_a_valid_statement_or_statements)}]}]:F},getEditsForAction:function(t,r,a){B.assert(r===voe,"Wrong refactor invoked");let u=B.checkDefined(d9(t)),{host:f,program:p}=t;B.assert(a,"No interactive refactor arguments available");let y=a.targetFile;return $v(y)||dN(y)?f.fileExists(y)&&p.getSourceFile(y)===void 0?rWe(gs(S.Cannot_move_statements_to_the_selected_file)):{edits:Vn.ChangeTracker.with(t,x=>o4t(t,t.file,a.targetFile,t.program,u,x,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:rWe(gs(S.Cannot_move_to_file_selected_file_is_invalid))}});function rWe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function o4t(e,t,r,a,u,f,p,y){let g=a.getTypeChecker(),x=!p.fileExists(r),k=x?qJ(r,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,a,p):B.checkDefined(a.getSourceFile(r)),T=Qf.createImportAdder(t,e.program,e.preferences,e.host),A=Qf.createImportAdder(k,e.program,e.preferences,e.host);Zxe(t,k,eq(t,u.all,g,x?void 0:lCe(k,u.all,g)),f,u,a,p,y,A,T),x&&eCe(a,f,t.fileName,r,rS(p))}function Zxe(e,t,r,a,u,f,p,y,g,x){let k=f.getTypeChecker(),T=NY(e.statements,H0),A=!qre(t.fileName,f,p,!!e.commonJsModuleIndicator),P=mm(e,y);iCe(r.oldFileImportsFromTargetFile,t.fileName,x,f),a4t(e,u.all,r.unusedImportsFromOldFile,x),x.writeFixes(a,P),s4t(e,u.ranges,a),c4t(a,f,p,e,r.movedSymbols,t.fileName,P),tCe(e,r.targetFileImportsFromOldFile,a,A),dCe(e,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,k,f,g),!Gy(t)&&T.length&&a.insertStatementsInNewFile(t.fileName,T,e),g.writeFixes(a,P);let R=p4t(e,u.all,as(r.oldFileImportsFromTargetFile.keys()),A);Gy(t)&&t.statements.length>0?A4t(a,f,R,t,u):Gy(t)?a.insertNodesAtEndOfFile(t,R,!1):a.insertStatementsInNewFile(t.fileName,g.hasFixes()?[4,...R]:R,e)}function eCe(e,t,r,a,u){let f=e.getCompilerOptions().configFile;if(!f)return;let p=$s(xr(r,"..",a)),y=S3(f.fileName,p,u),g=f.statements[0]&&kr(f.statements[0].expression,ba),x=g&&St(g.properties,k=>ed(k)&&Da(k.name)&&k.name.text==="files");x&&yf(x.initializer)&&t.insertNodeInListAfter(f,pa(x.initializer.elements),U.createStringLiteral(y),x.initializer.elements)}function s4t(e,t,r){for(let{first:a,afterLast:u}of t)r.deleteNodeRangeExcludingEnd(e,a,u)}function a4t(e,t,r,a){for(let u of e.statements)sn(t,u)||sWe(u,f=>{aWe(f,p=>{r.has(p.symbol)&&a.removeExistingImport(p)})})}function tCe(e,t,r,a){let u=X4();t.forEach((f,p)=>{if(p.declarations)for(let y of p.declarations){if(!cCe(y))continue;let g=x4t(y);if(!g)continue;let x=dWe(y);u(x)&&C4t(e,x,g,r,a)}})}function c4t(e,t,r,a,u,f,p){let y=t.getTypeChecker();for(let g of t.getSourceFiles())if(g!==a)for(let x of g.statements)sWe(x,k=>{if(y.getSymbolAtLocation(f4t(k))!==a.symbol)return;let T=z=>{let q=Wa(z.parent)?NJ(y,z.parent):hf(y.getSymbolAtLocation(z),y);return!!q&&u.has(q)};m4t(g,k,e,T);let A=qC(Or(ts(a.fileName,t.getCurrentDirectory())),f);if(TP(!t.useCaseSensitiveFileNames())(A,g.fileName)===0)return;let P=pS.getModuleSpecifier(t.getCompilerOptions(),g,g.fileName,A,$N(t,r)),R=v4t(k,k8(P,p),T);R&&e.insertNodeAfter(g,x,R);let W=l4t(k);W&&u4t(e,g,y,u,P,W,k,p)})}function l4t(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return kr(e.name,et);default:return B.assertNever(e,`Unexpected node kind ${e.kind}`)}}function u4t(e,t,r,a,u,f,p,y){let g=r9(u,99),x=!1,k=[];if(ol.Core.eachSymbolReferenceInFile(f,r,t,T=>{lr(T.parent)&&(x=x||!!r.resolveName(g,T,-1,!0),a.has(r.getSymbolAtLocation(T.parent.name))&&k.push(T))}),k.length){let T=x?FE(g,t):g;for(let A of k)e.replaceNode(t,A,U.createIdentifier(T));e.insertNodeAfter(t,p,d4t(p,g,u,y))}}function d4t(e,t,r,a){let u=U.createIdentifier(t),f=k8(r,a);switch(e.kind){case 272:return U.createImportDeclaration(void 0,U.createImportClause(!1,void 0,U.createNamespaceImport(u)),f,void 0);case 271:return U.createImportEqualsDeclaration(void 0,!1,u,U.createExternalModuleReference(f));case 260:return U.createVariableDeclaration(u,void 0,void 0,oWe(f));default:return B.assertNever(e,`Unexpected node kind ${e.kind}`)}}function oWe(e){return U.createCallExpression(U.createIdentifier("require"),void 0,[e])}function f4t(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function sWe(e,t){if(ql(e))Da(e.moduleSpecifier)&&t(e);else if(Dd(e))rb(e.moduleReference)&&xc(e.moduleReference.expression)&&t(e);else if(mu(e))for(let r of e.declarationList.declarations)r.initializer&&Y_(r.initializer,!0)&&t(r)}function aWe(e,t){var r,a,u,f,p;if(e.kind===272){if((r=e.importClause)!=null&&r.name&&t(e.importClause),((u=(a=e.importClause)==null?void 0:a.namedBindings)==null?void 0:u.kind)===274&&t(e.importClause.namedBindings),((p=(f=e.importClause)==null?void 0:f.namedBindings)==null?void 0:p.kind)===275)for(let y of e.importClause.namedBindings.elements)t(y)}else if(e.kind===271)t(e);else if(e.kind===260){if(e.name.kind===80)t(e);else if(e.name.kind===206)for(let y of e.name.elements)et(y.name)&&t(y)}}function iCe(e,t,r,a){for(let[u,f]of e){let p=zJ(u,Oa(a.getCompilerOptions())),y=u.name==="default"&&u.parent?1:0;r.addImportForNonExistentExport(p,t,y,u.flags,f)}}function _4t(e,t,r,a=2){return U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(e,void 0,t,r)],a))}function p4t(e,t,r,a){return vo(t,u=>{if(lWe(u)&&!cWe(e,u,a)&&aCe(u,f=>{var p;return r.includes(B.checkDefined((p=kr(f,$g))==null?void 0:p.symbol))})){let f=h4t(_c(u),a);if(f)return f}return _c(u)})}function cWe(e,t,r,a){var u;return r?!Ud(t)&&Ar(t,32)||!!(a&&e.symbol&&((u=e.symbol.exports)!=null&&u.has(a.escapedText))):!!e.symbol&&!!e.symbol.exports&&nCe(t).some(f=>e.symbol.exports.has(Hl(f)))}function m4t(e,t,r,a){if(t.kind===272&&t.importClause){let{name:u,namedBindings:f}=t.importClause;if((!u||a(u))&&(!f||f.kind===275&&f.elements.length!==0&&f.elements.every(p=>a(p.name))))return r.delete(e,t)}aWe(t,u=>{u.name&&et(u.name)&&a(u.name)&&r.delete(e,u)})}function lWe(e){return B.assert(mo(e.parent),"Node parent should be a SourceFile"),mWe(e)||mu(e)}function h4t(e,t){return t?[g4t(e)]:y4t(e)}function g4t(e){let t=Kh(e)?Fo([U.createModifier(95)],Bw(e)):void 0;switch(e.kind){case 262:return U.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:let r=hT(e)?ux(e):void 0;return U.updateClassDeclaration(e,Fo(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return U.updateVariableStatement(e,t,e.declarationList);case 267:return U.updateModuleDeclaration(e,t,e.name,e.body);case 266:return U.updateEnumDeclaration(e,t,e.name,e.members);case 265:return U.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return U.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return U.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return B.fail();default:return B.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function y4t(e){return[e,...nCe(e).map(uWe)]}function uWe(e){return U.createExpressionStatement(U.createBinaryExpression(U.createPropertyAccessExpression(U.createIdentifier("exports"),U.createIdentifier(e)),64,U.createIdentifier(e)))}function nCe(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return ro(e.declarationList.declarations,t=>et(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return F;case 244:return B.fail("Can't export an ExpressionStatement");default:return B.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function v4t(e,t,r){switch(e.kind){case 272:{let a=e.importClause;if(!a)return;let u=a.name&&r(a.name)?a.name:void 0,f=a.namedBindings&&b4t(a.namedBindings,r);return u||f?U.createImportDeclaration(void 0,U.createImportClause(a.isTypeOnly,u,f),_c(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{let a=S4t(e.name,r);return a?_4t(a,e.type,oWe(t),e.parent.flags):void 0}default:return B.assertNever(e,`Unexpected import kind ${e.kind}`)}}function b4t(e,t){if(e.kind===274)return t(e.name)?e:void 0;{let r=e.elements.filter(a=>t(a.name));return r.length?U.createNamedImports(r):void 0}}function S4t(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{let r=e.elements.filter(a=>a.propertyName||!et(a.name)||t(a.name));return r.length?U.createObjectBindingPattern(r):void 0}}}function x4t(e){return Ud(e)?kr(e.expression.left.name,et):kr(e.name,et)}function dWe(e){switch(e.kind){case 260:return e.parent.parent;case 208:return dWe(ea(e.parent.parent,t=>Ur(t)||Wa(t)));default:return e}}function C4t(e,t,r,a,u){if(!cWe(e,t,u,r))if(u)Ud(t)||a.insertExportModifier(e,t);else{let f=nCe(t);f.length!==0&&a.insertNodesAfter(e,t,f.map(uWe))}}function rCe(e,t,r,a){let u=t.getTypeChecker();if(a){let f=eq(e,a.all,u),p=Or(e.fileName),y=gO(e.fileName);return xr(p,D4t(I4t(f.oldFileImportsFromTargetFile,f.movedSymbols),y,p,r))+y}return""}function k4t(e){let{file:t}=e,r=kJ(GN(e)),{statements:a}=t,u=zi(a,x=>x.end>r.pos);if(u===-1)return;let f=a[u],p=hWe(t,f);p&&(u=p.start);let y=zi(a,x=>x.end>=r.end,u);y!==-1&&r.end<=a[y].getStart()&&y--;let g=hWe(t,a[y]);return g&&(y=g.end),{toMove:a.slice(u,y===-1?a.length:y+1),afterLast:y===-1?void 0:a[y+1]}}function d9(e){let t=k4t(e);if(t===void 0)return;let r=[],a=[],{toMove:u,afterLast:f}=t;return yw(u,w4t,(p,y)=>{for(let g=p;g!!(t.transformFlags&2))}function w4t(e){return!T4t(e)&&!H0(e)}function T4t(e){switch(e.kind){case 272:return!0;case 271:return!Ar(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Y_(t.initializer,!0));default:return!1}}function eq(e,t,r,a=new Set,u){var f;let p=new Set,y=new Map,g=new Map,x=A(oCe(t));x&&y.set(x,[!1,kr((f=x.declarations)==null?void 0:f[0],P=>F_(P)||Zg(P)||Xv(P)||Dd(P)||Wa(P)||Ur(P))]);for(let P of t)aCe(P,R=>{p.add(B.checkDefined(Ud(R)?r.getSymbolAtLocation(R.expression.left):R.symbol,"Need a symbol here"))});let k=new Set;for(let P of t)sCe(P,r,u,(R,W)=>{if(!(!R.declarations||E4t(r,R))){if(a.has(hf(R,r))){k.add(R);return}for(let z of R.declarations)if(fWe(z)){let q=y.get(R);y.set(R,[(q===void 0||q)&&W,kr(z,G=>F_(G)||Zg(G)||Xv(G)||Dd(G)||Wa(G)||Ur(G))])}else cCe(z)&&N4t(z)===e&&!p.has(R)&&g.set(R,W)}});for(let P of y.keys())k.add(P);let T=new Map;for(let P of e.statements)sn(t,P)||(x&&P.transformFlags&2&&k.delete(x),sCe(P,r,u,(R,W)=>{p.has(R)&&T.set(R,W),k.delete(R)}));return{movedSymbols:p,targetFileImportsFromOldFile:g,oldFileImportsFromTargetFile:T,oldImportsNeededByTargetFile:y,unusedImportsFromOldFile:k};function A(P){if(P===void 0)return;let R=r.getJsxNamespace(P),W=r.resolveName(R,P,1920,!0);return W&&Lt(W.declarations,fWe)?W:void 0}}function E4t(e,t){return!!e.resolveName(t.name,void 0,788968,!1)}function D4t(e,t,r,a){let u=e;for(let f=1;;f++){let p=xr(r,u+t);if(!a.fileExists(p))return u;u=`${e}.${f}`}}function I4t(e,t){return K1(e,bre)||K1(t,bre)||"newFile"}function sCe(e,t,r,a){e.forEachChild(function u(f){if(et(f)&&!Xy(f)){if(r&&!Xp(r,f))return;let p=t.getSymbolAtLocation(f);p&&a(p,dk(f))}else f.forEachChild(u)})}function aCe(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return Le(e.declarationList.declarations,r=>pWe(r.name,t));case 244:{let{expression:r}=e;return Yn(r)&&Su(r)===1?t(e):void 0}}}function fWe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return _We(e);case 208:return Ur(e.parent.parent)&&_We(e.parent.parent);default:return!1}}function _We(e){return mo(e.parent.parent.parent)&&!!e.initializer&&Y_(e.initializer,!0)}function cCe(e){return mWe(e)&&mo(e.parent)||Ur(e)&&mo(e.parent.parent.parent)}function N4t(e){return Ur(e)?e.parent.parent.parent:e.parent}function pWe(e,t){switch(e.kind){case 80:return t(ea(e.parent,r=>Ur(r)||Wa(r)));case 207:case 206:return Le(e.elements,r=>Ed(r)?void 0:pWe(r.name,t));default:return B.assertNever(e,`Unexpected name kind ${e.kind}`)}}function mWe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function A4t(e,t,r,a,u){var f;let p=new Set,y=(f=a.symbol)==null?void 0:f.exports;if(y){let x=t.getTypeChecker(),k=new Map;for(let T of u.all)lWe(T)&&Ar(T,32)&&aCe(T,A=>{var P;let R=$g(A)?(P=y.get(A.symbol.escapedName))==null?void 0:P.declarations:void 0,W=Le(R,z=>Nu(z)?z:Gf(z)?kr(z.parent.parent,Nu):void 0);W&&W.moduleSpecifier&&k.set(W,(k.get(W)||new Set).add(A))});for(let[T,A]of as(k))if(T.exportClause&&_h(T.exportClause)&&K(T.exportClause.elements)){let P=T.exportClause.elements,R=Di(P,W=>St(hf(W.symbol,x).declarations,z=>cCe(z)&&A.has(z))===void 0);if(K(R)===0){e.deleteNode(a,T),p.add(T);continue}K(R)Nu(x)&&!!x.moduleSpecifier&&!p.has(x));g?e.insertNodesBefore(a,g,r,!0):e.insertNodesAfter(a,a.statements[a.statements.length-1],r)}function hWe(e,t){if(Oc(t)){let r=t.symbol.declarations;if(r===void 0||K(r)<=1||!sn(r,t))return;let a=r[0],u=r[K(r)-1],f=ro(r,g=>en(g)===e&&_o(g)?g:void 0),p=zi(e.statements,g=>g.end>=u.end),y=zi(e.statements,g=>g.end>=a.end);return{toMove:f,start:y,end:p}}}function lCe(e,t,r){let a=new Set;for(let u of e.imports){let f=K3(u);if(ql(f)&&f.importClause&&f.importClause.namedBindings&&iy(f.importClause.namedBindings))for(let p of f.importClause.namedBindings.elements){let y=r.getSymbolAtLocation(p.propertyName||p.name);y&&a.add(hf(y,r))}if(WM(f.parent)&&Om(f.parent.name))for(let p of f.parent.name.elements){let y=r.getSymbolAtLocation(p.propertyName||p.name);y&&a.add(hf(y,r))}}for(let u of t)sCe(u,r,void 0,f=>{let p=hf(f,r);p.valueDeclaration&&en(p.valueDeclaration).path===e.path&&a.add(p)});return a}function lb(e){return e.error!==void 0}function Ak(e,t){return t?e.substr(0,t.length)===t:!0}function uCe(e,t,r,a){return lr(e)&&!jr(t)&&!r.resolveName(e.name.text,e,111551,!1)&&!xo(e.name)&&!X2(e.name)?e.name.text:FE(jr(t)?"newProperty":"newLocal",a)}function dCe(e,t,r,a,u,f){t.forEach(([p,y],g)=>{var x;let k=hf(g,a);a.isUnknownSymbol(k)?f.addVerbatimImport(B.checkDefined(y??Ri((x=g.declarations)==null?void 0:x[0],Ehe))):f.addImportFromExportedSymbol(k,p,y)}),iCe(r,e.fileName,f,u)}var tq="Inline variable",fCe=gs(S.Inline_variable),_Ce={name:tq,description:fCe,kind:"refactor.inline.variable"};e1(tq,{kinds:[_Ce.kind],getAvailableActions(e){let{file:t,program:r,preferences:a,startPosition:u,triggerReason:f}=e,p=gWe(t,u,f==="invoked",r);return p?YN.isRefactorErrorInfo(p)?a.provideRefactorNotApplicableReason?[{name:tq,description:fCe,actions:[{..._Ce,notApplicableReason:p.error}]}]:F:[{name:tq,description:fCe,actions:[_Ce]}]:F},getEditsForAction(e,t){B.assert(t===tq,"Unexpected refactor invoked");let{file:r,program:a,startPosition:u}=e,f=gWe(r,u,!0,a);if(!f||YN.isRefactorErrorInfo(f))return;let{references:p,declaration:y,replacement:g}=f;return{edits:Vn.ChangeTracker.with(e,k=>{for(let T of p){let A=Da(g)&&et(T)&&Ky(T.parent);A&&S4(A)&&!pk(A.parent.parent)?L4t(k,r,A,g):k.replaceNode(r,T,P4t(T,g))}k.delete(r,y)})}}});function gWe(e,t,r,a){var u,f;let p=a.getTypeChecker(),y=ip(e,t),g=y.parent;if(et(y)){if(yR(g)&&H3(g)&&et(g.name)){if(((u=p.getMergedSymbol(g.symbol).declarations)==null?void 0:u.length)!==1)return{error:gs(S.Variables_with_multiple_declarations_cannot_be_inlined)};if(yWe(g))return;let x=vWe(g,p,e);return x&&{references:x,declaration:g,replacement:g.initializer}}if(r){let x=p.resolveName(y.text,y,111551,!1);if(x=x&&p.getMergedSymbol(x),((f=x?.declarations)==null?void 0:f.length)!==1)return{error:gs(S.Variables_with_multiple_declarations_cannot_be_inlined)};let k=x.declarations[0];if(!yR(k)||!H3(k)||!et(k.name)||yWe(k))return;let T=vWe(k,p,e);return T&&{references:T,declaration:k,replacement:k.initializer}}return{error:gs(S.Could_not_find_variable_to_inline)}}}function yWe(e){let t=ea(e.parent.parent,mu);return Lt(t.modifiers,bN)}function vWe(e,t,r){let a=[],u=ol.Core.eachSymbolReferenceInFile(e.name,t,r,f=>{if(ol.isWriteAccessForReference(f)&&!jf(f.parent)||Gf(f.parent)||ll(f.parent)||aT(f.parent)||rM(e,f.pos))return!0;a.push(f)});return a.length===0||u?void 0:a}function P4t(e,t){t=_c(t);let{parent:r}=e;return Mt(r)&&(iO(t)O4t(t.file,t.program,a,f,t.host,t,t.preferences)),renameFilename:void 0,renameLocation:void 0}}});function O4t(e,t,r,a,u,f,p){let y=t.getTypeChecker(),g=eq(e,r.all,y),x=rCe(e,t,u,r),k=qJ(x,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,u),T=Qf.createImportAdder(e,f.program,f.preferences,f.host),A=Qf.createImportAdder(k,f.program,f.preferences,f.host);Zxe(e,k,g,a,r,t,u,p,A,T),eCe(t,a,e.fileName,x,rS(u))}var F4t={},hCe="Convert overload list to single signature",bWe=gs(S.Convert_overload_list_to_single_signature),SWe={name:hCe,description:bWe,kind:"refactor.rewrite.function.overloadList"};e1(hCe,{kinds:[SWe.kind],getEditsForAction:R4t,getAvailableActions:M4t});function M4t(e){let{file:t,startPosition:r,program:a}=e;return CWe(t,r,a)?[{name:hCe,description:bWe,actions:[SWe]}]:F}function R4t(e){let{file:t,startPosition:r,program:a}=e,u=CWe(t,r,a);if(!u)return;let f=a.getTypeChecker(),p=u[u.length-1],y=p;switch(p.kind){case 173:{y=U.updateMethodSignature(p,p.modifiers,p.name,p.questionToken,p.typeParameters,x(u),p.type);break}case 174:{y=U.updateMethodDeclaration(p,p.modifiers,p.asteriskToken,p.name,p.questionToken,p.typeParameters,x(u),p.type,p.body);break}case 179:{y=U.updateCallSignature(p,p.typeParameters,x(u),p.type);break}case 176:{y=U.updateConstructorDeclaration(p,p.modifiers,x(u),p.body);break}case 180:{y=U.updateConstructSignature(p,p.typeParameters,x(u),p.type);break}case 262:{y=U.updateFunctionDeclaration(p,p.modifiers,p.asteriskToken,p.name,p.typeParameters,x(u),p.type,p.body);break}default:return B.failBadSyntaxKind(p,"Unhandled signature kind in overload list conversion refactoring")}if(y===p)return;return{renameFilename:void 0,renameLocation:void 0,edits:Vn.ChangeTracker.with(e,A=>{A.replaceNodeRange(t,u[0],u[u.length-1],y)})};function x(A){let P=A[A.length-1];return Oc(P)&&P.body&&(A=A.slice(0,A.length-1)),U.createNodeArray([U.createParameterDeclaration(void 0,U.createToken(26),"args",void 0,U.createUnionTypeNode(_i(A,k)))])}function k(A){let P=_i(A.parameters,T);return Hn(U.createTupleTypeNode(P),Lt(P,R=>!!K(h4(R)))?0:1)}function T(A){B.assert(et(A.name));let P=Ft(U.createNamedTupleMember(A.dotDotDotToken,A.name,A.questionToken,A.type||U.createKeywordTypeNode(133)),A),R=A.symbol&&A.symbol.getDocumentationComment(f);if(R){let W=p9(R);W.length&&fk(P,[{text:`* +${W.split(` +`).map(z=>` * ${z}`).join(` +`)} + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return P}}function xWe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function CWe(e,t,r){let a=go(e,t),u=Ri(a,xWe);if(!u||Oc(u)&&u.body&&b8(u.body,t))return;let f=r.getTypeChecker(),p=u.symbol;if(!p)return;let y=p.declarations;if(K(y)<=1||!Et(y,A=>en(A)===e)||!xWe(y[0]))return;let g=y[0].kind;if(!Et(y,A=>A.kind===g))return;let x=y;if(Lt(x,A=>!!A.typeParameters||Lt(A.parameters,P=>!!P.modifiers||!et(P.name))))return;let k=ro(x,A=>f.getSignatureFromDeclaration(A));if(K(k)!==K(y))return;let T=f.getReturnTypeOfSignature(k[0]);if(Et(k,A=>f.getReturnTypeOfSignature(A)===T))return x}var gCe="Add or remove braces in an arrow function",kWe=gs(S.Add_or_remove_braces_in_an_arrow_function),boe={name:"Add braces to arrow function",description:gs(S.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},nq={name:"Remove braces from arrow function",description:gs(S.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};e1(gCe,{kinds:[nq.kind],getEditsForAction:j4t,getAvailableActions:B4t});function B4t(e){let{file:t,startPosition:r,triggerReason:a}=e,u=wWe(t,r,a==="invoked");return u?lb(u)?e.preferences.provideRefactorNotApplicableReason?[{name:gCe,description:kWe,actions:[{...boe,notApplicableReason:u.error},{...nq,notApplicableReason:u.error}]}]:F:[{name:gCe,description:kWe,actions:[u.addBraces?boe:nq]}]:F}function j4t(e,t){let{file:r,startPosition:a}=e,u=wWe(r,a);B.assert(u&&!lb(u),"Expected applicable refactor info");let{expression:f,returnStatement:p,func:y}=u,g;if(t===boe.name){let k=U.createReturnStatement(f);g=U.createBlock([k],!0),e6(f,k,r,3,!0)}else if(t===nq.name&&p){let k=f||U.createVoidZero();g=LJ(k)?U.createParenthesizedExpression(k):k,Z5(p,g,r,3,!1),e6(p,g,r,3,!1),D8(p,g,r,3,!1)}else B.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Vn.ChangeTracker.with(e,k=>{k.replaceNode(r,y.body,g)})}}function wWe(e,t,r=!0,a){let u=go(e,t),f=_m(u);if(!f)return{error:gs(S.Could_not_find_a_containing_arrow_function)};if(!rl(f))return{error:gs(S.Containing_function_is_not_an_arrow_function)};if(!(!Xp(f,u)||Xp(f.body,u)&&!r)){if(Ak(boe.kind,a)&&Mt(f.body))return{func:f,addBraces:!0,expression:f.body};if(Ak(nq.kind,a)&&Ds(f.body)&&f.body.statements.length===1){let p=Ta(f.body.statements);if(qh(p)){let y=p.expression&&ba(l4(p.expression,!1))?U.createParenthesizedExpression(p.expression):p.expression;return{func:f,addBraces:!1,expression:y,returnStatement:p}}}}}var W4t={},TWe="Convert arrow function or function expression",z4t=gs(S.Convert_arrow_function_or_function_expression),rq={name:"Convert to anonymous function",description:gs(S.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},oq={name:"Convert to named function",description:gs(S.Convert_to_named_function),kind:"refactor.rewrite.function.named"},sq={name:"Convert to arrow function",description:gs(S.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};e1(TWe,{kinds:[rq.kind,oq.kind,sq.kind],getEditsForAction:H4t,getAvailableActions:V4t});function V4t(e){let{file:t,startPosition:r,program:a,kind:u}=e,f=DWe(t,r,a);if(!f)return F;let{selectedVariableDeclaration:p,func:y}=f,g=[],x=[];if(Ak(oq.kind,u)){let k=p||rl(y)&&Ur(y.parent)?void 0:gs(S.Could_not_convert_to_named_function);k?x.push({...oq,notApplicableReason:k}):g.push(oq)}if(Ak(rq.kind,u)){let k=!p&&rl(y)?void 0:gs(S.Could_not_convert_to_anonymous_function);k?x.push({...rq,notApplicableReason:k}):g.push(rq)}if(Ak(sq.kind,u)){let k=Yc(y)?void 0:gs(S.Could_not_convert_to_arrow_function);k?x.push({...sq,notApplicableReason:k}):g.push(sq)}return[{name:TWe,description:z4t,actions:g.length===0&&e.preferences.provideRefactorNotApplicableReason?x:g}]}function H4t(e,t){let{file:r,startPosition:a,program:u}=e,f=DWe(r,a,u);if(!f)return;let{func:p}=f,y=[];switch(t){case rq.name:y.push(...$4t(e,p));break;case oq.name:let g=q4t(p);if(!g)return;y.push(...G4t(e,p,g));break;case sq.name:if(!Yc(p))return;y.push(...K4t(e,p));break;default:return B.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:y}}function EWe(e){let t=!1;return e.forEachChild(function r(a){if(G4(a)){t=!0;return}!jr(a)&&!xu(a)&&!Yc(a)&&ws(a,r)}),t}function DWe(e,t,r){let a=go(e,t),u=r.getTypeChecker(),f=J4t(e,u,a.parent);if(f&&!EWe(f.body)&&!u.containsArgumentsReference(f))return{selectedVariableDeclaration:!0,func:f};let p=_m(a);if(p&&(Yc(p)||rl(p))&&!Xp(p.body,a)&&!EWe(p.body)&&!u.containsArgumentsReference(p))return Yc(p)&&NWe(e,u,p)?void 0:{selectedVariableDeclaration:!1,func:p}}function U4t(e){return Ur(e)||ef(e)&&e.declarations.length===1}function J4t(e,t,r){if(!U4t(r))return;let u=(Ur(r)?r:Ta(r.declarations)).initializer;if(u&&(rl(u)||Yc(u)&&!NWe(e,t,u)))return u}function IWe(e){if(Mt(e)){let t=U.createReturnStatement(e),r=e.getSourceFile();return Ft(t,e),Qp(t),Z5(e,t,r,void 0,!0),U.createBlock([t],!0)}else return e}function q4t(e){let t=e.parent;if(!Ur(t)||!H3(t))return;let r=t.parent,a=r.parent;if(!(!ef(r)||!mu(a)||!et(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:a,name:t.name}}function $4t(e,t){let{file:r}=e,a=IWe(t.body),u=U.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,a);return Vn.ChangeTracker.with(e,f=>f.replaceNode(r,t,u))}function G4t(e,t,r){let{file:a}=e,u=IWe(t.body),{variableDeclaration:f,variableDeclarationList:p,statement:y,name:g}=r;Lre(y);let x=GC(f)&32|__(t),k=U.createModifiersFromModifierFlags(x),T=U.createFunctionDeclaration(K(k)?k:void 0,t.asteriskToken,g,t.typeParameters,t.parameters,t.type,u);return p.declarations.length===1?Vn.ChangeTracker.with(e,A=>A.replaceNode(a,y,T)):Vn.ChangeTracker.with(e,A=>{A.delete(a,f),A.insertNodeAfter(a,y,T)})}function K4t(e,t){let{file:r}=e,u=t.body.statements[0],f;X4t(t.body,u)?(f=u.expression,Qp(f),OE(u,f)):f=t.body;let p=U.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,U.createToken(39),f);return Vn.ChangeTracker.with(e,y=>y.replaceNode(r,t,p))}function X4t(e,t){return e.statements.length===1&&qh(t)&&!!t.expression}function NWe(e,t,r){return!!r.name&&ol.Core.isSymbolReferencedInFile(r.name,t,e)}var Y4t={},Soe="Convert parameters to destructured object",Q4t=1,AWe=gs(S.Convert_parameters_to_destructured_object),PWe={name:Soe,description:AWe,kind:"refactor.rewrite.parameters.toDestructured"};e1(Soe,{kinds:[PWe.kind],getEditsForAction:e6t,getAvailableActions:Z4t});function Z4t(e){let{file:t,startPosition:r}=e;return N_(t)||!FWe(t,r,e.program.getTypeChecker())?F:[{name:Soe,description:AWe,actions:[PWe]}]}function e6t(e,t){B.assert(t===Soe,"Unexpected action name");let{file:r,startPosition:a,program:u,cancellationToken:f,host:p}=e,y=FWe(r,a,u.getTypeChecker());if(!y||!f)return;let g=i6t(y,u,f);return g.valid?{renameFilename:void 0,renameLocation:void 0,edits:Vn.ChangeTracker.with(e,k=>t6t(r,u,p,k,y,g))}:{edits:[]}}function t6t(e,t,r,a,u,f){let p=f.signature,y=_i(jWe(u,t,r),k=>_c(k));if(p){let k=_i(jWe(p,t,r),T=>_c(T));x(p,k)}x(u,y);let g=zn(f.functionCalls,(k,T)=>Kc(k.pos,T.pos));for(let k of g)if(k.arguments&&k.arguments.length){let T=_c(f6t(u,k.arguments),!0);a.replaceNodeRange(en(k),Ta(k.arguments),pa(k.arguments),T,{leadingTriviaOption:Vn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Vn.TrailingTriviaOption.Include})}function x(k,T){a.replaceNodeRangeWithNodes(e,Ta(k.parameters),pa(k.parameters),T,{joiner:", ",indentation:0,leadingTriviaOption:Vn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Vn.TrailingTriviaOption.Include})}}function i6t(e,t,r){let a=p6t(e),u=Ol(e)?_6t(e):[],f=hs([...a,...u],ox),p=t.getTypeChecker(),y=vo(f,T=>ol.getReferenceEntriesForNode(-1,T,t,t.getSourceFiles(),r)),g=x(y);return Et(g.declarations,T=>sn(f,T))||(g.valid=!1),g;function x(T){let A={accessExpressions:[],typeUsages:[]},P={functionCalls:[],declarations:[],classReferences:A,valid:!0},R=_i(a,k),W=_i(u,k),z=Ol(e),q=_i(a,G=>yCe(G,p));for(let G of T){if(G.kind===ol.EntryKind.Span){P.valid=!1;continue}if(sn(q,k(G.node))){if(s6t(G.node.parent)){P.signature=G.node.parent;continue}let te=OWe(G);if(te){P.functionCalls.push(te);continue}}let $=yCe(G.node,p);if($&&sn(q,$)){let te=vCe(G);if(te){P.declarations.push(te);continue}}if(sn(R,k(G.node))||v8(G.node)){if(LWe(G))continue;let ne=vCe(G);if(ne){P.declarations.push(ne);continue}let _e=OWe(G);if(_e){P.functionCalls.push(_e);continue}}if(z&&sn(W,k(G.node))){if(LWe(G))continue;let ne=vCe(G);if(ne){P.declarations.push(ne);continue}let _e=n6t(G);if(_e){A.accessExpressions.push(_e);continue}if(Zu(e.parent)){let ce=r6t(G);if(ce){A.typeUsages.push(ce);continue}}}P.valid=!1}return P}function k(T){let A=p.getSymbolAtLocation(T);return A&&Are(A,p)}}function yCe(e,t){let r=m9(e);if(r){let a=t.getContextualTypeForObjectLiteralElement(r),u=a?.getSymbol();if(u&&!(_u(u)&6))return u}}function LWe(e){let t=e.node;if(F_(t.parent)||Zg(t.parent)||Dd(t.parent)||Xv(t.parent)||Gf(t.parent)||ll(t.parent))return t}function vCe(e){if(mf(e.node.parent))return e.node}function OWe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 213:case 214:let a=kr(r,W0);if(a&&a.expression===t)return a;break;case 211:let u=kr(r,lr);if(u&&u.parent&&u.name===t){let p=kr(u.parent,W0);if(p&&p.expression===u)return p}break;case 212:let f=kr(r,nl);if(f&&f.parent&&f.argumentExpression===t){let p=kr(f.parent,W0);if(p&&p.expression===f)return p}break}}}function n6t(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 211:let a=kr(r,lr);if(a&&a.expression===t)return a;break;case 212:let u=kr(r,nl);if(u&&u.expression===t)return u;break}}}function r6t(e){let t=e.node;if(PE(t)===2||SV(t.parent))return t}function FWe(e,t,r){let a=K4(e,t),u=qhe(a);if(!o6t(a)&&u&&a6t(u,r)&&Xp(u,a)&&!(u.body&&Xp(u.body,a)))return u}function o6t(e){let t=Ri(e,RP);if(t){let r=Ri(t,a=>!RP(a));return!!r&&Oc(r)}return!1}function s6t(e){return Z0(e)&&(vf(e.parent)||L_(e.parent))}function a6t(e,t){var r;if(!c6t(e.parameters,t))return!1;switch(e.kind){case 262:return MWe(e)&&aq(e,t);case 174:if(ba(e.parent)){let a=yCe(e.name,t);return((r=a?.declarations)==null?void 0:r.length)===1&&aq(e,t)}return aq(e,t);case 176:return Zu(e.parent)?MWe(e.parent)&&aq(e,t):RWe(e.parent.parent)&&aq(e,t);case 218:case 219:return RWe(e.parent)}return!1}function aq(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function MWe(e){return e.name?!0:!!Y4(e,90)}function c6t(e,t){return u6t(e)>=Q4t&&Et(e,r=>l6t(r,t))}function l6t(e,t){if(Jy(e)){let r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&et(e.name)}function RWe(e){return Ur(e)&&UP(e)&&et(e.name)&&!e.type}function bCe(e){return e.length>0&&G4(e[0].name)}function u6t(e){return bCe(e)?e.length-1:e.length}function BWe(e){return bCe(e)&&(e=U.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function d6t(e,t){return et(t)&&Hh(t)===e?U.createShorthandPropertyAssignment(e):U.createPropertyAssignment(e,t)}function f6t(e,t){let r=BWe(e.parameters),a=Jy(pa(r)),u=a?t.slice(0,r.length-1):t,f=_i(u,(y,g)=>{let x=xoe(r[g]),k=d6t(x,y);return Qp(k.name),ed(k)&&Qp(k.initializer),OE(y,k),k});if(a&&t.length>=r.length){let y=t.slice(r.length-1),g=U.createPropertyAssignment(xoe(pa(r)),U.createArrayLiteralExpression(y));f.push(g)}return U.createObjectLiteralExpression(f,!1)}function jWe(e,t,r){let a=t.getTypeChecker(),u=BWe(e.parameters),f=_i(u,k),p=U.createObjectBindingPattern(f),y=T(u),g;Et(u,R)&&(g=U.createObjectLiteralExpression());let x=U.createParameterDeclaration(void 0,void 0,p,void 0,y,g);if(bCe(e.parameters)){let W=e.parameters[0],z=U.createParameterDeclaration(void 0,void 0,W.name,void 0,W.type);return Qp(z.name),OE(W.name,z.name),W.type&&(Qp(z.type),OE(W.type,z.type)),U.createNodeArray([z,x])}return U.createNodeArray([x]);function k(W){let z=U.createBindingElement(void 0,void 0,xoe(W),Jy(W)&&R(W)?U.createArrayLiteralExpression():W.initializer);return Qp(z),W.initializer&&z.initializer&&OE(W.initializer,z.initializer),z}function T(W){let z=_i(W,A);return Y0(U.createTypeLiteralNode(z),1)}function A(W){let z=W.type;!z&&(W.initializer||Jy(W))&&(z=P(W));let q=U.createPropertySignature(void 0,xoe(W),R(W)?U.createToken(58):W.questionToken,z);return Qp(q),OE(W.name,q.name),W.type&&q.type&&OE(W.type,q.type),q}function P(W){let z=a.getTypeAtLocation(W);return N8(z,W,t,r)}function R(W){if(Jy(W)){let z=a.getTypeAtLocation(W);return!a.isTupleType(z)}return a.isOptionalParameter(W)}}function xoe(e){return Hh(e.name)}function _6t(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[B.checkDefined(Y4(t,90),"Nameless class declaration should be a default export")];case 231:let a=e.parent,u=e.parent.parent,f=a.name;return f?[f,u.name]:[u.name]}}function p6t(e){switch(e.kind){case 262:return e.name?[e.name]:[B.checkDefined(Y4(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let r=B.checkDefined(Tc(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return B.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var m6t={},SCe="Convert to template string",xCe=gs(S.Convert_to_template_string),CCe={name:SCe,description:xCe,kind:"refactor.rewrite.string"};e1(SCe,{kinds:[CCe.kind],getEditsForAction:g6t,getAvailableActions:h6t});function h6t(e){let{file:t,startPosition:r}=e,a=WWe(t,r),u=kCe(a),f=Da(u),p={name:SCe,description:xCe,actions:[]};return f&&e.triggerReason!=="invoked"?F:Kg(u)&&(f||Yn(u)&&wCe(u).isValidConcatenation)?(p.actions.push(CCe),[p]):e.preferences.provideRefactorNotApplicableReason?(p.actions.push({...CCe,notApplicableReason:gs(S.Can_only_convert_string_concatenations_and_string_literals)}),[p]):F}function WWe(e,t){let r=go(e,t),a=kCe(r);return!wCe(a).isValidConcatenation&&O_(a.parent)&&Yn(a.parent.parent)?a.parent.parent:r}function g6t(e,t){let{file:r,startPosition:a}=e,u=WWe(r,a);switch(t){case xCe:return{edits:y6t(e,u)};default:return B.fail("invalid action")}}function y6t(e,t){let r=kCe(t),a=e.file,u=C6t(wCe(r),a),f=lx(a.text,r.end);if(f){let p=f[f.length-1],y={pos:f[0].pos,end:p.end};return Vn.ChangeTracker.with(e,g=>{g.deleteRange(a,y),g.replaceNode(a,r,u)})}else return Vn.ChangeTracker.with(e,p=>p.replaceNode(a,r,u))}function v6t(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function kCe(e){return Ri(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(Yn(r.parent)&&v6t(r.parent));default:return"quit"}})||e}function wCe(e){let t=p=>{if(!Yn(p))return{nodes:[p],operators:[],validOperators:!0,hasString:Da(p)||mE(p)};let{nodes:y,operators:g,hasString:x,validOperators:k}=t(p.left);if(!(x||Da(p.right)||bH(p.right)))return{nodes:[p],operators:[],hasString:!1,validOperators:!0};let T=p.operatorToken.kind===40,A=k&&T;return y.push(p.right),g.push(p.operatorToken),{nodes:y,operators:g,hasString:!0,validOperators:A}},{nodes:r,operators:a,validOperators:u,hasString:f}=t(e);return{nodes:r,operators:a,isValidConcatenation:u&&f}}var b6t=(e,t)=>(r,a)=>{r(a,u)=>{for(;a.length>0;){let f=a.shift();D8(e[f],u,t,3,!1),r(f,u)}};function x6t(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function zWe(e){let t=vN(e)||Oee(e)?-2:-1;return Jl(e).slice(1,t)}function VWe(e,t){let r=[],a="",u="";for(;e{HWe($);let ne=te===A.templateSpans.length-1,_e=$.literal.text+(ne?R:""),ce=zWe($.literal)+(ne?W:"");return U.createTemplateSpan($.expression,q&&ne?U.createTemplateTail(_e,ce):U.createTemplateMiddle(_e,ce))});x.push(...G)}else{let G=q?U.createTemplateTail(R,W):U.createTemplateMiddle(R,W);u(z,G),x.push(U.createTemplateSpan(A,G))}}return U.createTemplateExpression(k,x)}function HWe(e){let t=e.getSourceFile();D8(e,e.expression,t,3,!1),Z5(e.expression,e.expression,t,3,!1)}function k6t(e){return O_(e)&&(HWe(e),e=e.expression),e}var w6t={},Coe="Convert to optional chain expression",TCe=gs(S.Convert_to_optional_chain_expression),ECe={name:Coe,description:TCe,kind:"refactor.rewrite.expression.optionalChain"};e1(Coe,{kinds:[ECe.kind],getEditsForAction:E6t,getAvailableActions:T6t});function T6t(e){let t=UWe(e,e.triggerReason==="invoked");return t?lb(t)?e.preferences.provideRefactorNotApplicableReason?[{name:Coe,description:TCe,actions:[{...ECe,notApplicableReason:t.error}]}]:F:[{name:Coe,description:TCe,actions:[ECe]}]:F}function E6t(e,t){let r=UWe(e);return B.assert(r&&!lb(r),"Expected applicable refactor info"),{edits:Vn.ChangeTracker.with(e,u=>F6t(e.file,e.program.getTypeChecker(),u,r,t)),renameFilename:void 0,renameLocation:void 0}}function koe(e){return Yn(e)||EN(e)}function D6t(e){return Ud(e)||qh(e)||mu(e)}function woe(e){return koe(e)||D6t(e)}function UWe(e,t=!0){let{file:r,program:a}=e,u=GN(e),f=u.length===0;if(f&&!t)return;let p=go(r,u.start),y=V5(r,u.start+u.length),g=bu(p.pos,y&&y.end>=p.pos?y.getEnd():p.getEnd()),x=f?L6t(p):P6t(p,g),k=x&&woe(x)?O6t(x):void 0;if(!k)return{error:gs(S.Could_not_find_convertible_access_expression)};let T=a.getTypeChecker();return EN(k)?I6t(k,T):N6t(k)}function I6t(e,t){let r=e.condition,a=ICe(e.whenTrue);if(!a||t.isNullableType(t.getTypeAtLocation(a)))return{error:gs(S.Could_not_find_convertible_access_expression)};if((lr(r)||et(r))&&DCe(r,a.expression))return{finalExpression:a,occurrences:[r],expression:e};if(Yn(r)){let u=JWe(a.expression,r);return u?{finalExpression:a,occurrences:u,expression:e}:{error:gs(S.Could_not_find_matching_access_expressions)}}}function N6t(e){if(e.operatorToken.kind!==56)return{error:gs(S.Can_only_convert_logical_AND_access_chains)};let t=ICe(e.right);if(!t)return{error:gs(S.Could_not_find_convertible_access_expression)};let r=JWe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:gs(S.Could_not_find_matching_access_expressions)}}function JWe(e,t){let r=[];for(;Yn(t)&&t.operatorToken.kind===56;){let u=DCe(fc(e),fc(t.right));if(!u)break;r.push(u),e=u,t=t.left}let a=DCe(e,t);return a&&r.push(a),r.length>0?r:void 0}function DCe(e,t){if(!(!et(t)&&!lr(t)&&!nl(t)))return A6t(e,t)?t:void 0}function A6t(e,t){for(;(Gs(e)||lr(e)||nl(e))&&f9(e)!==f9(t);)e=e.expression;for(;lr(e)&&lr(t)||nl(e)&&nl(t);){if(f9(e)!==f9(t))return!1;e=e.expression,t=t.expression}return et(e)&&et(t)&&e.getText()===t.getText()}function f9(e){if(et(e)||Am(e))return e.getText();if(lr(e))return f9(e.name);if(nl(e))return f9(e.argumentExpression)}function P6t(e,t){for(;e.parent;){if(woe(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function L6t(e){for(;e.parent;){if(woe(e)&&!woe(e.parent))return e;e=e.parent}}function O6t(e){if(koe(e))return e;if(mu(e)){let t=YI(e),r=t?.initializer;return r&&koe(r)?r:void 0}return e.expression&&koe(e.expression)?e.expression:void 0}function ICe(e){if(e=fc(e),Yn(e))return ICe(e.left);if((lr(e)||nl(e)||Gs(e))&&!qf(e))return e}function qWe(e,t,r){if(lr(t)||nl(t)||Gs(t)){let a=qWe(e,t.expression,r),u=r.length>0?r[r.length-1]:void 0,f=u?.getText()===t.expression.getText();if(f&&r.pop(),Gs(t))return f?U.createCallChain(a,U.createToken(29),t.typeArguments,t.arguments):U.createCallChain(a,t.questionDotToken,t.typeArguments,t.arguments);if(lr(t))return f?U.createPropertyAccessChain(a,U.createToken(29),t.name):U.createPropertyAccessChain(a,t.questionDotToken,t.name);if(nl(t))return f?U.createElementAccessChain(a,U.createToken(29),t.argumentExpression):U.createElementAccessChain(a,t.questionDotToken,t.argumentExpression)}return t}function F6t(e,t,r,a,u){let{finalExpression:f,occurrences:p,expression:y}=a,g=p[p.length-1],x=qWe(t,f,p);x&&(lr(x)||nl(x)||Gs(x))&&(Yn(y)?r.replaceNodeRange(e,g,f,x):EN(y)&&r.replaceNode(e,y,U.createBinaryExpression(x,U.createToken(61),y.whenFalse)))}var $We={};_($We,{Messages:()=>Sf,RangeFacts:()=>XWe,getRangeToExtract:()=>NCe,getRefactorActionsToExtractSymbol:()=>GWe,getRefactorEditsToExtractSymbol:()=>KWe});var L8="Extract Symbol",O8={name:"Extract Constant",description:gs(S.Extract_constant),kind:"refactor.extract.constant"},F8={name:"Extract Function",description:gs(S.Extract_function),kind:"refactor.extract.function"};e1(L8,{kinds:[O8.kind,F8.kind],getEditsForAction:KWe,getAvailableActions:GWe});function GWe(e){let t=e.kind,r=NCe(e.file,GN(e),e.triggerReason==="invoked"),a=r.targetRange;if(a===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return F;let W=[];return Ak(F8.kind,t)&&W.push({name:L8,description:F8.description,actions:[{...F8,notApplicableReason:R(r.errors)}]}),Ak(O8.kind,t)&&W.push({name:L8,description:O8.description,actions:[{...O8,notApplicableReason:R(r.errors)}]}),W}let{affectedTextRange:u,extractions:f}=z6t(a,e);if(f===void 0)return F;let p=[],y=new Map,g,x=[],k=new Map,T,A=0;for(let{functionExtraction:W,constantExtraction:z}of f){if(Ak(F8.kind,t)){let q=W.description;W.errors.length===0?y.has(q)||(y.set(q,!0),p.push({description:q,name:`function_scope_${A}`,kind:F8.kind,range:{start:{line:ma(e.file,u.pos).line,offset:ma(e.file,u.pos).character},end:{line:ma(e.file,u.end).line,offset:ma(e.file,u.end).character}}})):g||(g={description:q,name:`function_scope_${A}`,notApplicableReason:R(W.errors),kind:F8.kind})}if(Ak(O8.kind,t)){let q=z.description;z.errors.length===0?k.has(q)||(k.set(q,!0),x.push({description:q,name:`constant_scope_${A}`,kind:O8.kind,range:{start:{line:ma(e.file,u.pos).line,offset:ma(e.file,u.pos).character},end:{line:ma(e.file,u.end).line,offset:ma(e.file,u.end).character}}})):T||(T={description:q,name:`constant_scope_${A}`,notApplicableReason:R(z.errors),kind:O8.kind})}A++}let P=[];return p.length?P.push({name:L8,description:gs(S.Extract_function),actions:p}):e.preferences.provideRefactorNotApplicableReason&&g&&P.push({name:L8,description:gs(S.Extract_function),actions:[g]}),x.length?P.push({name:L8,description:gs(S.Extract_constant),actions:x}):e.preferences.provideRefactorNotApplicableReason&&T&&P.push({name:L8,description:gs(S.Extract_constant),actions:[T]}),P.length?P:F;function R(W){let z=W[0].messageText;return typeof z!="string"&&(z=z.messageText),z}}function KWe(e,t){let a=NCe(e.file,GN(e)).targetRange,u=/^function_scope_(\d+)$/.exec(t);if(u){let p=+u[1];return B.assert(isFinite(p),"Expected to parse a finite number from the function scope index"),j6t(a,e,p)}let f=/^constant_scope_(\d+)$/.exec(t);if(f){let p=+f[1];return B.assert(isFinite(p),"Expected to parse a finite number from the constant scope index"),W6t(a,e,p)}B.fail("Unrecognized action name")}var Sf;(e=>{function t(r){return{message:r,code:0,category:3,key:r}}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")})(Sf||(Sf={}));var XWe=(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))(XWe||{});function NCe(e,t,r=!0){let{length:a}=t;if(a===0&&!r)return{errors:[kd(e,t.start,a,Sf.cannotExtractEmpty)]};let u=a===0&&r,f=TSe(e,t.start),p=V5(e,Vl(t)),y=f&&p&&r?M6t(f,p,e):t,g=u?aLt(f):K5(f,e,y),x=u?g:K5(p,e,y),k=0,T;if(!g||!x)return{errors:[kd(e,t.start,a,Sf.cannotExtractRange)]};if(g.flags&16777216)return{errors:[kd(e,t.start,a,Sf.cannotExtractJSDoc)]};if(g.parent!==x.parent)return{errors:[kd(e,t.start,a,Sf.cannotExtractRange)]};if(g!==x){if(!KN(g.parent))return{errors:[kd(e,t.start,a,Sf.cannotExtractRange)]};let G=[];for(let $ of g.parent.statements){if($===g||G.length){let te=q($);if(te)return{errors:te};G.push($)}if($===x)break}return G.length?{targetRange:{range:G,facts:k,thisNode:T}}:{errors:[kd(e,t.start,a,Sf.cannotExtractRange)]}}if(qh(g)&&!g.expression)return{errors:[kd(e,t.start,a,Sf.cannotExtractRange)]};let A=R(g),P=W(A)||q(A);if(P)return{errors:P};return{targetRange:{range:R6t(A),facts:k,thisNode:T}};function R(G){if(qh(G)){if(G.expression)return G.expression}else if(mu(G)||ef(G)){let $=mu(G)?G.declarationList.declarations:G.declarations,te=0,ne;for(let _e of $)_e.initializer&&(te++,ne=_e.initializer);if(te===1)return ne}else if(Ur(G)&&G.initializer)return G.initializer;return G}function W(G){if(et(Ud(G)?G.expression:G))return[Mn(G,Sf.cannotExtractIdentifier)]}function z(G,$){let te=G;for(;te!==$;){if(te.kind===172){ia(te)&&(k|=32);break}else if(te.kind===169){_m(te).kind===176&&(k|=32);break}else te.kind===174&&ia(te)&&(k|=32);te=te.parent}}function q(G){let $;if((Ce=>{Ce[Ce.None=0]="None",Ce[Ce.Break=1]="Break",Ce[Ce.Continue=2]="Continue",Ce[Ce.Return=4]="Return"})($||($={})),B.assert(G.pos<=G.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),B.assert(!Yg(G.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!_o(G)&&!(Kg(G)&&YWe(G))&&!FCe(G))return[Mn(G,Sf.statementOrExpressionExpected)];if(G.flags&33554432)return[Mn(G,Sf.cannotExtractAmbientBlock)];let te=Zd(G);te&&z(G,te);let ne,_e=4,ce;if(ae(G),k&8){let Ce=f_(G,!1,!1);(Ce.kind===262||Ce.kind===174&&Ce.parent.kind===210||Ce.kind===218)&&(k|=16)}return ne;function ae(Ce){if(ne)return!0;if(mf(Ce)){let ue=Ce.kind===260?Ce.parent.parent:Ce;if(Ar(ue,32))return(ne||(ne=[])).push(Mn(Ce,Sf.cannotExtractExportedEntity)),!0}switch(Ce.kind){case 272:return(ne||(ne=[])).push(Mn(Ce,Sf.cannotExtractImport)),!0;case 277:return(ne||(ne=[])).push(Mn(Ce,Sf.cannotExtractExportedEntity)),!0;case 108:if(Ce.parent.kind===213){let ue=Zd(Ce);if(ue===void 0||ue.pos=t.start+t.length)return(ne||(ne=[])).push(Mn(Ce,Sf.cannotExtractSuper)),!0}else k|=8,T=Ce;break;case 219:ws(Ce,function ue(Ee){if(G4(Ee))k|=8,T=Ce;else{if(jr(Ee)||vs(Ee)&&!rl(Ee))return!1;ws(Ee,ue)}});case 263:case 262:mo(Ce.parent)&&Ce.parent.externalModuleIndicator===void 0&&(ne||(ne=[])).push(Mn(Ce,Sf.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let he=_e;switch(Ce.kind){case 245:_e&=-5;break;case 258:_e=0;break;case 241:Ce.parent&&Ce.parent.kind===258&&Ce.parent.finallyBlock===Ce&&(_e=4);break;case 297:case 296:_e|=1;break;default:hx(Ce,!1)&&(_e|=3);break}switch(Ce.kind){case 197:case 110:k|=8,T=Ce;break;case 256:{let ue=Ce.label;(ce||(ce=[])).push(ue.escapedText),ws(Ce,ae),ce.pop();break}case 252:case 251:{let ue=Ce.label;ue?sn(ce,ue.escapedText)||(ne||(ne=[])).push(Mn(Ce,Sf.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_e&(Ce.kind===252?1:2)||(ne||(ne=[])).push(Mn(Ce,Sf.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:k|=4;break;case 229:k|=2;break;case 253:_e&4?k|=1:(ne||(ne=[])).push(Mn(Ce,Sf.cannotExtractRangeContainingConditionalReturnStatement));break;default:ws(Ce,ae);break}_e=he}}}function M6t(e,t,r){let a=e.getStart(r),u=t.getEnd();return r.text.charCodeAt(u)===59&&u++,{start:a,length:u-a}}function R6t(e){if(_o(e))return[e];if(Kg(e))return Ud(e.parent)?[e.parent]:e;if(FCe(e))return e}function ACe(e){return rl(e)?LQ(e.body):Oc(e)||mo(e)||ty(e)||jr(e)}function B6t(e){let t=bS(e.range)?Ta(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let a=Zd(t);if(a){let u=Ri(t,Oc);return u?[u,a]:[a]}}let r=[];for(;;)if(t=t.parent,t.kind===169&&(t=Ri(t,a=>Oc(a)).parent),ACe(t)&&(r.push(t),t.kind===307))return r}function j6t(e,t,r){let{scopes:a,readsAndWrites:{target:u,usagesPerScope:f,functionErrorsPerScope:p,exposedVariableDeclarations:y}}=PCe(e,t);return B.assert(!p[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),$6t(u,a[r],f[r],y,e,t)}function W6t(e,t,r){let{scopes:a,readsAndWrites:{target:u,usagesPerScope:f,constantErrorsPerScope:p,exposedVariableDeclarations:y}}=PCe(e,t);B.assert(!p[r].length,"The extraction went missing? How?"),B.assert(y.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let g=Mt(u)?u:u.statements[0].expression;return G6t(g,a[r],f[r],e.facts,t)}function z6t(e,t){let{scopes:r,affectedTextRange:a,readsAndWrites:{functionErrorsPerScope:u,constantErrorsPerScope:f}}=PCe(e,t),p=r.map((y,g)=>{let x=V6t(y),k=H6t(y),T=Oc(y)?U6t(y):jr(y)?J6t(y):q6t(y),A,P;return T===1?(A=Jv(gs(S.Extract_to_0_in_1_scope),[x,"global"]),P=Jv(gs(S.Extract_to_0_in_1_scope),[k,"global"])):T===0?(A=Jv(gs(S.Extract_to_0_in_1_scope),[x,"module"]),P=Jv(gs(S.Extract_to_0_in_1_scope),[k,"module"])):(A=Jv(gs(S.Extract_to_0_in_1),[x,T]),P=Jv(gs(S.Extract_to_0_in_1),[k,T])),g===0&&!jr(y)&&(P=Jv(gs(S.Extract_to_0_in_enclosing_scope),[k])),{functionExtraction:{description:A,errors:u[g]},constantExtraction:{description:P,errors:f[g]}}});return{affectedTextRange:a,extractions:p}}function PCe(e,t){let{file:r}=t,a=B6t(e),u=oLt(e,r),f=sLt(e,a,u,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:a,affectedTextRange:u,readsAndWrites:f}}function V6t(e){return Oc(e)?"inner function":jr(e)?"method":"function"}function H6t(e){return jr(e)?"readonly field":"constant"}function U6t(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:Mre;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:B.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function J6t(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function q6t(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function $6t(e,t,{usages:r,typeParameterUsages:a,substitutions:u},f,p,y){let g=y.program.getTypeChecker(),x=Oa(y.program.getCompilerOptions()),k=Qf.createImportAdder(y.file,y.program,y.preferences,y.host),T=t.getSourceFile(),A=FE(jr(t)?"newMethod":"newFunction",T),P=Jn(t),R=U.createIdentifier(A),W,z=[],q=[],G;r.forEach((we,Ae)=>{let Fe;if(!P){let Be=g.getTypeOfSymbolAtLocation(we.symbol,we.node);Be=g.getBaseTypeOfLiteralType(Be),Fe=Qf.typeToAutoImportableTypeNode(g,k,Be,t,x,1,8)}let Tt=U.createParameterDeclaration(void 0,void 0,Ae,void 0,Fe);z.push(Tt),we.usage===2&&(G||(G=[])).push(we),q.push(U.createIdentifier(Ae))});let $=as(a.values(),we=>({type:we,declaration:X6t(we,y.startPosition)}));$.sort(Y6t);let te=$.length===0?void 0:ro($,({declaration:we})=>we),ne=te!==void 0?te.map(we=>U.createTypeReferenceNode(we.name,void 0)):void 0;if(Mt(e)&&!P){let we=g.getContextualType(e);W=g.typeToTypeNode(we,t,1,8)}let{body:_e,returnValueProperty:ce}=Z6t(e,f,G,u,!!(p.facts&1));Qp(_e);let ae,Ce=!!(p.facts&16);if(jr(t)){let we=P?[]:[U.createModifier(123)];p.facts&32&&we.push(U.createModifier(126)),p.facts&4&&we.push(U.createModifier(134)),ae=U.createMethodDeclaration(we.length?we:void 0,p.facts&2?U.createToken(42):void 0,R,void 0,te,z,W,_e)}else Ce&&z.unshift(U.createParameterDeclaration(void 0,void 0,"this",void 0,g.typeToTypeNode(g.getTypeAtLocation(p.thisNode),t,1,8),void 0)),ae=U.createFunctionDeclaration(p.facts&4?[U.createToken(134)]:void 0,p.facts&2?U.createToken(42):void 0,R,te,z,W,_e);let he=Vn.ChangeTracker.fromContext(y),ue=(bS(p.range)?pa(p.range):p.range).end,Ee=iLt(ue,t);Ee?he.insertNodeBefore(y.file,Ee,ae,!0):he.insertNodeAtEndOfScope(y.file,t,ae),k.writeFixes(he);let ve=[],be=Q6t(t,p,A);Ce&&q.unshift(U.createIdentifier("this"));let Se=U.createCallExpression(Ce?U.createPropertyAccessExpression(be,"call"):be,ne,q);if(p.facts&2&&(Se=U.createYieldExpression(U.createToken(42),Se)),p.facts&4&&(Se=U.createAwaitExpression(Se)),OCe(e)&&(Se=U.createJsxExpression(void 0,Se)),f.length&&!G)if(B.assert(!ce,"Expected no returnValueProperty"),B.assert(!(p.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),f.length===1){let we=f[0];ve.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(_c(we.name),void 0,_c(we.type),Se)],we.parent.flags)))}else{let we=[],Ae=[],Fe=f[0].parent.flags,Tt=!1;for(let Ge of f){we.push(U.createBindingElement(void 0,void 0,_c(Ge.name)));let Ke=g.typeToTypeNode(g.getBaseTypeOfLiteralType(g.getTypeAtLocation(Ge)),t,1,8);Ae.push(U.createPropertySignature(void 0,Ge.symbol.name,void 0,Ke)),Tt=Tt||Ge.type!==void 0,Fe=Fe&Ge.parent.flags}let Be=Tt?U.createTypeLiteralNode(Ae):void 0;Be&&Hn(Be,1),ve.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(U.createObjectBindingPattern(we),void 0,Be,Se)],Fe)))}else if(f.length||G){if(f.length)for(let Ae of f){let Fe=Ae.parent.flags;Fe&2&&(Fe=Fe&-3|1),ve.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(Ae.symbol.name,void 0,Oe(Ae.type))],Fe)))}ce&&ve.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(ce,void 0,Oe(W))],1)));let we=LCe(f,G);ce&&we.unshift(U.createShorthandPropertyAssignment(ce)),we.length===1?(B.assert(!ce,"Shouldn't have returnValueProperty here"),ve.push(U.createExpressionStatement(U.createAssignment(we[0].name,Se))),p.facts&1&&ve.push(U.createReturnStatement())):(ve.push(U.createExpressionStatement(U.createAssignment(U.createObjectLiteralExpression(we),Se))),ce&&ve.push(U.createReturnStatement(U.createIdentifier(ce))))}else p.facts&1?ve.push(U.createReturnStatement(Se)):bS(p.range)?ve.push(U.createExpressionStatement(Se)):ve.push(Se);bS(p.range)?he.replaceNodeRangeWithNodes(y.file,Ta(p.range),pa(p.range),ve):he.replaceNodeWithNodes(y.file,p.range,ve);let Re=he.getChanges(),ke=(bS(p.range)?Ta(p.range):p.range).getSourceFile().fileName,De=Q5(Re,ke,A,!1);return{renameFilename:ke,renameLocation:De,edits:Re};function Oe(we){if(we===void 0)return;let Ae=_c(we),Fe=Ae;for(;gE(Fe);)Fe=Fe.type;return Nx(Fe)&&St(Fe.types,Tt=>Tt.kind===157)?Ae:U.createUnionTypeNode([Ae,U.createKeywordTypeNode(157)])}}function G6t(e,t,{substitutions:r},a,u){let f=u.program.getTypeChecker(),p=t.getSourceFile(),y=uCe(e,t,f,p),g=Jn(t),x=g||!f.isContextSensitive(e)?void 0:f.typeToTypeNode(f.getContextualType(e),t,1,8),k=eLt(fc(e),r);({variableType:x,initializer:k}=W(x,k)),Qp(k);let T=Vn.ChangeTracker.fromContext(u);if(jr(t)){B.assert(!g,"Cannot extract to a JS class");let z=[];z.push(U.createModifier(123)),a&32&&z.push(U.createModifier(126)),z.push(U.createModifier(148));let q=U.createPropertyDeclaration(z,y,void 0,x,k),G=U.createPropertyAccessExpression(a&32?U.createIdentifier(t.name.getText()):U.createThis(),U.createIdentifier(y));OCe(e)&&(G=U.createJsxExpression(void 0,G));let $=e.pos,te=nLt($,t);T.insertNodeBefore(u.file,te,q,!0),T.replaceNode(u.file,e,G)}else{let z=U.createVariableDeclaration(y,void 0,x,k),q=K6t(e,t);if(q){T.insertNodeBefore(u.file,q,z);let G=U.createIdentifier(y);T.replaceNode(u.file,e,G)}else if(e.parent.kind===244&&t===Ri(e,ACe)){let G=U.createVariableStatement(void 0,U.createVariableDeclarationList([z],2));T.replaceNode(u.file,e.parent,G)}else{let G=U.createVariableStatement(void 0,U.createVariableDeclarationList([z],2)),$=rLt(e,t);if($.pos===0?T.insertNodeAtTopOfFile(u.file,G,!1):T.insertNodeBefore(u.file,$,G,!1),e.parent.kind===244)T.delete(u.file,e.parent);else{let te=U.createIdentifier(y);OCe(e)&&(te=U.createJsxExpression(void 0,te)),T.replaceNode(u.file,e,te)}}}let A=T.getChanges(),P=e.getSourceFile().fileName,R=Q5(A,P,y,!0);return{renameFilename:P,renameLocation:R,edits:A};function W(z,q){if(z===void 0)return{variableType:z,initializer:q};if(!Yc(q)&&!rl(q)||q.typeParameters)return{variableType:z,initializer:q};let G=f.getTypeAtLocation(e),$=Fh(f.getSignaturesOfType(G,0));if(!$)return{variableType:z,initializer:q};if($.getTypeParameters())return{variableType:z,initializer:q};let te=[],ne=!1;for(let _e of q.parameters)if(_e.type)te.push(_e);else{let ce=f.getTypeAtLocation(_e);ce===f.getAnyType()&&(ne=!0),te.push(U.updateParameterDeclaration(_e,_e.modifiers,_e.dotDotDotToken,_e.name,_e.questionToken,_e.type||f.typeToTypeNode(ce,t,1,8),_e.initializer))}if(ne)return{variableType:z,initializer:q};if(z=void 0,rl(q))q=U.updateArrowFunction(q,Kh(e)?Bw(e):void 0,q.typeParameters,te,q.type||f.typeToTypeNode($.getReturnType(),t,1,8),q.equalsGreaterThanToken,q.body);else{if($&&$.thisParameter){let _e=mc(te);if(!_e||et(_e.name)&&_e.name.escapedText!=="this"){let ce=f.getTypeOfSymbolAtLocation($.thisParameter,e);te.splice(0,0,U.createParameterDeclaration(void 0,void 0,"this",void 0,f.typeToTypeNode(ce,t,1,8)))}}q=U.updateFunctionExpression(q,Kh(e)?Bw(e):void 0,q.asteriskToken,q.name,q.typeParameters,te,q.type||f.typeToTypeNode($.getReturnType(),t,1),q.body)}return{variableType:z,initializer:q}}}function K6t(e,t){let r;for(;e!==void 0&&e!==t;){if(Ur(e)&&e.initializer===r&&ef(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function X6t(e,t){let r,a=e.symbol;if(a&&a.declarations)for(let u of a.declarations)(r===void 0||u.pos0;if(Ds(e)&&!f&&a.size===0)return{body:U.createBlock(e.statements,!0),returnValueProperty:void 0};let p,y=!1,g=U.createNodeArray(Ds(e)?e.statements.slice(0):[_o(e)?e:U.createReturnStatement(fc(e))]);if(f||a.size){let k=mn(g,x,_o).slice();if(f&&!u&&_o(e)){let T=LCe(t,r);T.length===1?k.push(U.createReturnStatement(T[0].name)):k.push(U.createReturnStatement(U.createObjectLiteralExpression(T)))}return{body:U.createBlock(k,!0),returnValueProperty:p}}else return{body:U.createBlock(g,!0),returnValueProperty:void 0};function x(k){if(!y&&qh(k)&&f){let T=LCe(t,r);return k.expression&&(p||(p="__return"),T.unshift(U.createPropertyAssignment(p,pt(k.expression,x,Mt)))),T.length===1?U.createReturnStatement(T[0].name):U.createReturnStatement(U.createObjectLiteralExpression(T))}else{let T=y;y=y||Oc(k)||jr(k);let A=a.get(ac(k).toString()),P=A?_c(A):Qi(k,x,void 0);return y=T,P}}}function eLt(e,t){return t.size?r(e):e;function r(a){let u=t.get(ac(a).toString());return u?_c(u):Qi(a,r,void 0)}}function tLt(e){if(Oc(e)){let t=e.body;if(Ds(t))return t.statements}else{if(ty(e)||mo(e))return e.statements;if(jr(e))return e.members;}return F}function iLt(e,t){return St(tLt(t),r=>r.pos>=e&&Oc(r)&&!Ol(r))}function nLt(e,t){let r=t.members;B.assert(r.length>0,"Found no members");let a,u=!0;for(let f of r){if(f.pos>e)return a||r[0];if(u&&!ls(f)){if(a!==void 0)return f;u=!1}a=f}return a===void 0?B.fail():a}function rLt(e,t){B.assert(!jr(t));let r;for(let a=e;a!==t;a=a.parent)ACe(a)&&(r=a);for(let a=(r||e).parent;;a=a.parent){if(KN(a)){let u;for(let f of a.statements){if(f.pos>e.pos)break;u=f}return!u&&x4(a)?(B.assert(RO(a.parent.parent),"Grandparent isn't a switch statement"),a.parent.parent):B.checkDefined(u,"prevStatement failed to get set")}B.assert(a!==t,"Didn't encounter a block-like before encountering scope")}}function LCe(e,t){let r=_i(e,u=>U.createShorthandPropertyAssignment(u.symbol.name)),a=_i(t,u=>U.createShorthandPropertyAssignment(u.symbol.name));return r===void 0?a:a===void 0?r:r.concat(a)}function bS(e){return ds(e)}function oLt(e,t){return bS(e.range)?{pos:Ta(e.range).getStart(t),end:pa(e.range).getEnd()}:e.range}function sLt(e,t,r,a,u,f){let p=new Map,y=[],g=[],x=[],k=[],T=[],A=new Map,P=[],R,W=bS(e.range)?e.range.length===1&&Ud(e.range[0])?e.range[0].expression:void 0:e.range,z;if(W===void 0){let ve=e.range,be=Ta(ve).getStart(),Se=pa(ve).end;z=kd(a,be,Se-be,Sf.expressionExpected)}else u.getTypeAtLocation(W).flags&147456&&(z=Mn(W,Sf.uselessConstantType));for(let ve of t){y.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),g.push(new Map),x.push([]);let be=[];z&&be.push(z),jr(ve)&&Jn(ve)&&be.push(Mn(ve,Sf.cannotExtractToJSClass)),rl(ve)&&!Ds(ve.body)&&be.push(Mn(ve,Sf.cannotExtractToExpressionArrowFunction)),k.push(be)}let q=new Map,G=bS(e.range)?U.createBlock(e.range):e.range,$=bS(e.range)?Ta(e.range):e.range,te=ne($);if(ce(G),te&&!bS(e.range)&&!ry(e.range)){let ve=u.getContextualType(e.range);_e(ve)}if(p.size>0){let ve=new Map,be=0;for(let Se=$;Se!==void 0&&be{y[be].typeParameterUsages.set(ie,Re)}),be++),eZ(Se))for(let Re of dx(Se)){let ie=u.getTypeAtLocation(Re);p.has(ie.id.toString())&&ve.set(ie.id.toString(),ie)}B.assert(be===t.length,"Should have iterated all scopes")}if(T.length){let ve=ZQ(t[0],t[0].parent)?t[0]:Gg(t[0]);ws(ve,he)}for(let ve=0;ve0&&(be.usages.size>0||be.typeParameterUsages.size>0)){let ie=bS(e.range)?e.range[0]:e.range;k[ve].push(Mn(ie,Sf.cannotAccessVariablesFromNestedScopes))}e.facts&16&&jr(t[ve])&&x[ve].push(Mn(e.thisNode,Sf.cannotExtractFunctionsContainingThisToMethod));let Se=!1,Re;if(y[ve].usages.forEach(ie=>{ie.usage===2&&(Se=!0,ie.symbol.flags&106500&&ie.symbol.valueDeclaration&&Jp(ie.symbol.valueDeclaration,8)&&(Re=ie.symbol.valueDeclaration))}),B.assert(bS(e.range)||P.length===0,"No variable declarations expected if something was extracted"),Se&&!bS(e.range)){let ie=Mn(e.range,Sf.cannotWriteInExpression);x[ve].push(ie),k[ve].push(ie)}else if(Re&&ve>0){let ie=Mn(Re,Sf.cannotExtractReadonlyPropertyInitializerOutsideConstructor);x[ve].push(ie),k[ve].push(ie)}else if(R){let ie=Mn(R,Sf.cannotExtractExportedEntity);x[ve].push(ie),k[ve].push(ie)}}return{target:G,usagesPerScope:y,functionErrorsPerScope:x,constantErrorsPerScope:k,exposedVariableDeclarations:P};function ne(ve){return!!Ri(ve,be=>eZ(be)&&dx(be).length!==0)}function _e(ve){let be=u.getSymbolWalker(()=>(f.throwIfCancellationRequested(),!0)),{visitedTypes:Se}=be.walkType(ve);for(let Re of Se)Re.isTypeParameter()&&p.set(Re.id.toString(),Re)}function ce(ve,be=1){if(te){let Se=u.getTypeAtLocation(ve);_e(Se)}if(mf(ve)&&ve.symbol&&T.push(ve),Hd(ve))ce(ve.left,2),ce(ve.right);else if(ehe(ve))ce(ve.operand,2);else if(lr(ve)||nl(ve))ws(ve,ce);else if(et(ve)){if(!ve.parent||P_(ve.parent)&&ve!==ve.parent.left||lr(ve.parent)&&ve!==ve.parent.expression)return;ae(ve,be,U0(ve))}else ws(ve,ce)}function ae(ve,be,Se){let Re=Ce(ve,be,Se);if(Re)for(let ie=0;ie=be)return ie;if(q.set(ie,be),ke){for(let we of y)we.usages.get(ve.text)&&we.usages.set(ve.text,{usage:be,symbol:Re,node:ve});return ie}let De=Re.getDeclarations(),Oe=De&&St(De,we=>we.getSourceFile()===a);if(Oe&&!z5(r,Oe.getStart(),Oe.end)){if(e.facts&2&&be===2){let we=Mn(ve,Sf.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Ae of x)Ae.push(we);for(let Ae of k)Ae.push(we)}for(let we=0;weRe.symbol===be);if(Se)if(Ur(Se)){let Re=Se.symbol.id.toString();A.has(Re)||(P.push(Se),A.set(Re,!0))}else R=R||Se}ws(ve,he)}function ue(ve){return ve.parent&&jf(ve.parent)&&ve.parent.name===ve?u.getShorthandAssignmentValueSymbol(ve.parent):u.getSymbolAtLocation(ve)}function Ee(ve,be,Se){if(!ve)return;let Re=ve.getDeclarations();if(Re&&Re.some(ke=>ke.parent===be))return U.createIdentifier(ve.name);let ie=Ee(ve.parent,be,Se);if(ie!==void 0)return Se?U.createQualifiedName(ie,U.createIdentifier(ve.name)):U.createPropertyAccessExpression(ie,ve.name)}}function aLt(e){return Ri(e,t=>t.parent&&YWe(t)&&!Yn(t.parent))}function YWe(e){let{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function OCe(e){return FCe(e)||(Yv(e)||SE(e)||_T(e))&&(Yv(e.parent)||_T(e.parent))}function FCe(e){return Da(e)&&e.parent&&ry(e.parent)}var cLt={},Toe="Generate 'get' and 'set' accessors",MCe=gs(S.Generate_get_and_set_accessors),RCe={name:Toe,description:MCe,kind:"refactor.rewrite.property.generateAccessors"};e1(Toe,{kinds:[RCe.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;let a=Qf.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);B.assert(a&&!lb(a),"Expected applicable refactor info");let u=Qf.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!u)return;let f=t.file.fileName,p=a.renameAccessor?a.accessorName:a.fieldName,g=(et(p)?0:-1)+Q5(u,f,p.text,To(a.declaration));return{renameFilename:f,renameLocation:g,edits:u}},getAvailableActions(e){if(!e.endPosition)return F;let t=Qf.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?lb(t)?e.preferences.provideRefactorNotApplicableReason?[{name:Toe,description:MCe,actions:[{...RCe,notApplicableReason:t.error}]}]:F:[{name:Toe,description:MCe,actions:[RCe]}]:F}});var lLt={},Eoe="Infer function return type",BCe=gs(S.Infer_function_return_type),Doe={name:Eoe,description:BCe,kind:"refactor.rewrite.function.returnType"};e1(Eoe,{kinds:[Doe.kind],getEditsForAction:uLt,getAvailableActions:dLt});function uLt(e){let t=QWe(e);if(t&&!lb(t))return{renameFilename:void 0,renameLocation:void 0,edits:Vn.ChangeTracker.with(e,a=>fLt(e.file,a,t.declaration,t.returnTypeNode))}}function dLt(e){let t=QWe(e);return t?lb(t)?e.preferences.provideRefactorNotApplicableReason?[{name:Eoe,description:BCe,actions:[{...Doe,notApplicableReason:t.error}]}]:F:[{name:Eoe,description:BCe,actions:[Doe]}]:F}function fLt(e,t,r,a){let u=Tc(r,22,e),f=rl(r)&&u===void 0,p=f?Ta(r.parameters):u;p&&(f&&(t.insertNodeBefore(e,p,U.createToken(21)),t.insertNodeAfter(e,p,U.createToken(22))),t.insertNodeAt(e,p.end,a,{prefix:": "}))}function QWe(e){if(Jn(e.file)||!Ak(Doe.kind,e.kind))return;let t=ip(e.file,e.startPosition),r=Ri(t,p=>Ds(p)||p.parent&&rl(p.parent)&&(p.kind===39||p.parent.body===p)?"quit":_Lt(p));if(!r||!r.body||r.type)return{error:gs(S.Return_type_must_be_inferred_from_a_function)};let a=e.program.getTypeChecker(),u;if(a.isImplementationOfOverload(r)){let p=a.getTypeAtLocation(r).getCallSignatures();p.length>1&&(u=a.getUnionType(ro(p,y=>y.getReturnType())))}if(!u){let p=a.getSignatureFromDeclaration(r);if(p){let y=a.getTypePredicateOfSignature(p);if(y&&y.type){let g=a.typePredicateToTypePredicateNode(y,r,1,8);if(g)return{declaration:r,returnTypeNode:g}}else u=a.getReturnTypeOfSignature(p)}}if(!u)return{error:gs(S.Could_not_determine_function_return_type)};let f=a.typeToTypeNode(u,r,1,8);if(f)return{declaration:r,returnTypeNode:f}}function _Lt(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}var ZWe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(ZWe||{}),eze=(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))(eze||{}),tze=(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))(tze||{});function ize(e,t,r,a){let u=jCe(e,t,r,a);B.assert(u.spans.length%3===0);let f=u.spans,p=[];for(let y=0;y{u.push(p.getStart(t),p.getWidth(t),(y+1<<8)+g)},a),u}function mLt(e,t,r,a,u){let f=e.getTypeChecker(),p=!1;function y(g){switch(g.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:u.throwIfCancellationRequested()}if(!g||!oM(r,g.pos,g.getFullWidth())||g.getFullWidth()===0)return;let x=p;if((Yv(g)||SE(g))&&(p=!0),jO(g)&&(p=!1),et(g)&&!p&&!vLt(g)&&!CO(g.escapedText)){let k=f.getSymbolAtLocation(g);if(k){k.flags&2097152&&(k=f.getAliasedSymbol(k));let T=hLt(k,PE(g));if(T!==void 0){let A=0;g.parent&&(Wa(g.parent)||oze.get(g.parent.kind)===T)&&g.parent.name===g&&(A=1),T===6&&rze(g)&&(T=9),T=gLt(f,g,T);let P=k.valueDeclaration;if(P){let R=GC(P),W=$1(P);R&256&&(A|=2),R&1024&&(A|=4),T!==0&&T!==2&&(R&8||W&2||k.getFlags()&8)&&(A|=8),(T===7||T===10)&&yLt(P,t)&&(A|=32),e.isSourceFileDefaultLibrary(P.getSourceFile())&&(A|=16)}else k.declarations&&k.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(A|=16);a(g,T,A)}}}ws(g,y),p=x}y(t)}function hLt(e,t){let r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let a=e.valueDeclaration||e.declarations&&e.declarations[0];return a&&Wa(a)&&(a=nze(a)),a&&oze.get(a.kind)}function gLt(e,t,r){if(r===7||r===9||r===6){let a=e.getTypeAtLocation(t);if(a){let u=f=>f(a)||a.isUnion()&&a.types.some(f);if(r!==6&&u(f=>f.getConstructSignatures().length>0))return 0;if(u(f=>f.getCallSignatures().length>0)&&!u(f=>f.getProperties().length>0)||bLt(t))return r===9?11:10}}return r}function yLt(e,t){return Wa(e)&&(e=nze(e)),Ur(e)?(!mo(e.parent.parent.parent)||mT(e.parent))&&e.getSourceFile()===t:xu(e)?!mo(e.parent)&&e.getSourceFile()===t:!1}function nze(e){for(;;)if(Wa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function vLt(e){let t=e.parent;return t&&(Zg(t)||F_(t)||Xv(t))}function bLt(e){for(;rze(e);)e=e.parent;return Gs(e.parent)&&e.parent.expression===e}function rze(e){return P_(e.parent)&&e.parent.right===e||lr(e.parent)&&e.parent.name===e}var oze=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]]),sze="0.8";function aze(e,t,r,a){let u=_z(e)?new WCe(e,t,r):e===80?new lze(80,t,r):e===81?new uze(81,t,r):new cze(e,t,r);return u.parent=a,u.flags=a.flags&101441536,u}var WCe=class{constructor(e,t,r){this.pos=t,this.end=r,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}assertHasRealPosition(e){B.assert(!Yg(this.pos)&&!Yg(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return en(this)}getStart(e,t){return this.assertHasRealPosition(),yx(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=en(this)){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"),Zee(this,e)??xye(this,e,SLt(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=St(t,a=>a.kind<309||a.kind>351);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=Lc(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return ws(this,e,t)}};function SLt(e,t){let r=[];if(Sz(e))return e.forEachChild(p=>{r.push(p)}),r;m_.setText((t||e.getSourceFile()).text);let a=e.pos,u=p=>{cq(r,a,p.pos,e),r.push(p),a=p.end},f=p=>{cq(r,a,p.pos,e),r.push(xLt(p,e)),a=p.end};return re(e.jsDoc,u),a=e.pos,e.forEachChild(u,f),cq(r,a,e.end,e),m_.setText(void 0),r}function cq(e,t,r,a){for(m_.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function Ioe(e,t){if(!e)return F;let r=Ok.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(dze))){let a=new Set;for(let u of e){let f=fze(t,u,p=>{var y;if(!a.has(p))return a.add(p),u.kind===177||u.kind===178?p.getContextualJsDocTags(u,t):((y=p.declarations)==null?void 0:y.length)===1?p.getJsDocTags(t):void 0});f&&(r=[...f,...r])}}return r}function lq(e,t){if(!e)return F;let r=Ok.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(dze))){let a=new Set;for(let u of e){let f=fze(t,u,p=>{if(!a.has(p))return a.add(p),u.kind===177||u.kind===178?p.getContextualDocumentationComment(u,t):p.getDocumentationComment(t)});f&&(r=r.length===0?f.slice():f.concat(Z4(),r))}}return r}function fze(e,t,r){var a;let u=((a=t.parent)==null?void 0:a.kind)===176?t.parent.parent:t.parent;if(!u)return;let f=cd(t);return Le(Q3(u),p=>{let y=e.getTypeAtLocation(p),g=f&&y.symbol?e.getTypeOfSymbol(y.symbol):y,x=e.getPropertyOfType(g,t.symbol.name);return x?r(x):void 0})}var TLt=class extends WCe{constructor(e,t,r){super(e,t,r)}update(e,t){return pte(this,e,t)}getLineAndCharacterOfPosition(e){return ma(this,e)}getLineStarts(){return Ov(this)}getPositionOfLineAndCharacter(e,t,r){return iz(Ov(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),a;t+1>=r.length&&(a=this.getEnd()),a||(a=r[t+1]-1);let u=this.getFullText();return u[a]===` +`&&u[a-1]==="\r"?a-1:a}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=Dm();return this.forEachChild(u),e;function t(f){let p=a(f);p&&e.add(p,f)}function r(f){let p=e.get(f);return p||e.set(f,p=[]),p}function a(f){let p=oz(f);return p&&(Ma(p)&&lr(p.expression)?p.expression.name.text:zu(p)?$5(p):void 0)}function u(f){switch(f.kind){case 262:case 218:case 174:case 173:let p=f,y=a(p);if(y){let k=r(y),T=Lc(k);T&&p.parent===T.parent&&p.symbol===T.symbol?p.body&&!T.body&&(k[k.length-1]=p):k.push(p)}ws(f,u);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(f),ws(f,u);break;case 169:if(!Ar(f,31))break;case 260:case 208:{let k=f;if(Rs(k.name)){ws(k.name,u);break}k.initializer&&u(k.initializer)}case 306:case 172:case 171:t(f);break;case 278:let g=f;g.exportClause&&(_h(g.exportClause)?re(g.exportClause.elements,u):u(g.exportClause.name));break;case 272:let x=f.importClause;x&&(x.name&&t(x.name),x.namedBindings&&(x.namedBindings.kind===274?t(x.namedBindings):re(x.namedBindings.elements,u)));break;case 226:Su(f)!==0&&t(f);default:ws(f,u)}}}},ELt=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(a=>a)}getLineAndCharacterOfPosition(e){return ma(this,e)}};function DLt(){return{getNodeConstructor:()=>WCe,getTokenConstructor:()=>cze,getIdentifierConstructor:()=>lze,getPrivateIdentifierConstructor:()=>uze,getSourceFileConstructor:()=>TLt,getSymbolConstructor:()=>CLt,getTypeConstructor:()=>kLt,getSignatureConstructor:()=>wLt,getSourceMapSourceConstructor:()=>ELt}}function _9(e){let t=!0;for(let a in e)if(Nc(e,a)&&!_ze(a)){t=!1;break}if(t)return e;let r={};for(let a in e)if(Nc(e,a)){let u=_ze(a)?a:a.charAt(0).toLowerCase()+a.substr(1);r[u]=e[a]}return r}function _ze(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function p9(e){return e?_i(e,t=>t.text).join(""):""}function uq(){return{target:1,jsx:1}}function Noe(){return Qf.getSupportedErrorCodes()}var ILt=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,a,u,f,p,y,g;let x=this.host.getScriptSnapshot(e);if(!x)throw new Error("Could not find file: '"+e+"'.");let k=Nre(e,this.host),T=this.host.getScriptVersion(e),A;if(this.currentFileName!==e){let P={languageVersion:99,impliedNodeFormat:E5(Vc(e,this.host.getCurrentDirectory(),((a=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:a.getCanonicalFileName)||rS(this.host)),(g=(y=(p=(f=(u=this.host).getCompilerHost)==null?void 0:f.call(u))==null?void 0:p.getModuleResolutionCache)==null?void 0:y.call(p))==null?void 0:g.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:bR(this.host.getCompilationSettings()),jsDocParsingMode:0};A=dq(e,x,P,T,!0,k)}else if(this.currentFileVersion!==T){let P=x.getChangeRange(this.currentFileScriptSnapshot);A=Aoe(this.currentSourceFile,x,T,P)}return A&&(this.currentFileVersion=T,this.currentFileName=e,this.currentFileScriptSnapshot=x,this.currentSourceFile=A),this.currentSourceFile}};function pze(e,t,r){e.version=r,e.scriptSnapshot=t}function dq(e,t,r,a,u,f){let p=ON(e,qN(t),r,u,f);return pze(p,t,a),p}function Aoe(e,t,r,a,u){if(a&&r!==e.version){let p,y=a.span.start!==0?e.text.substr(0,a.span.start):"",g=Vl(a.span)!==e.text.length?e.text.substr(Vl(a.span)):"";if(a.newLength===0)p=y&&g?y+g:y||g;else{let k=t.getText(a.span.start,a.span.start+a.newLength);p=y&&g?y+k+g:y?y+k:k+g}let x=pte(e,p,a,u);return pze(x,t,r),x.nameTable=void 0,e!==x&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),x}let f={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return dq(e.fileName,t,f,r,!0,e.scriptKind)}var NLt={isCancellationRequested:R0,throwIfCancellationRequested:dc},ALt=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=jn)==null||e.instant(jn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new h3}},VCe=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=zc();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=jn)==null||e.instant(jn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new h3}},mze=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],PLt=[...mze,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"];function HCe(e,t=_xe(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),r){var a;let u;r===void 0?u=0:typeof r=="boolean"?u=r?2:0:u=r;let f=new ILt(e),p,y,g=0,x=e.getCancellationToken?new ALt(e.getCancellationToken()):NLt,k=e.getCurrentDirectory();Xge((a=e.getLocalizedDiagnosticMessages)==null?void 0:a.bind(e));function T(Dt){e.log&&e.log(Dt)}let A=eN(e),P=df(A),R=Exe({useCaseSensitiveFileNames:()=>A,getCurrentDirectory:()=>k,getProgram:G,fileExists:Ps(e,e.fileExists),readFile:Ps(e,e.readFile),getDocumentPositionMapper:Ps(e,e.getDocumentPositionMapper),getSourceFileLike:Ps(e,e.getSourceFileLike),log:T});function W(Dt){let Nt=p.getSourceFile(Dt);if(!Nt){let ti=new Error(`Could not find source file: '${Dt}'.`);throw ti.ProgramFiles=p.getSourceFiles().map(li=>li.fileName),ti}return Nt}function z(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():q()}function q(){var Dt,Nt,ti;if(B.assert(u!==2),e.getProjectVersion){let Ko=e.getProjectVersion();if(Ko){if(y===Ko&&!((Dt=e.hasChangedAutomaticTypeDirectiveNames)!=null&&Dt.call(e)))return;y=Ko}}let li=e.getTypeRootsVersion?e.getTypeRootsVersion():0;g!==li&&(T("TypeRoots version has changed; provide new program"),p=void 0,g=li);let wi=e.getScriptFileNames().slice(),Si=e.getCompilationSettings()||uq(),Rn=e.hasInvalidatedResolutions||R0,gi=Ps(e,e.hasInvalidatedLibResolutions)||R0,Xi=Ps(e,e.hasChangedAutomaticTypeDirectiveNames),Li=(Nt=e.getProjectReferences)==null?void 0:Nt.call(e),Vi,ai={getSourceFile:e_,getSourceFileByPath:id,getCancellationToken:()=>x,getCanonicalFileName:P,useCaseSensitiveFileNames:()=>A,getNewLine:()=>aS(Si),getDefaultLibFileName:Ko=>e.getDefaultLibFileName(Ko),writeFile:dc,getCurrentDirectory:()=>k,fileExists:Ko=>e.fileExists(Ko),readFile:Ko=>e.readFile&&e.readFile(Ko),getSymlinkCache:Ps(e,e.getSymlinkCache),realpath:Ps(e,e.realpath),directoryExists:Ko=>Xg(Ko,e),getDirectories:Ko=>e.getDirectories?e.getDirectories(Ko):[],readDirectory:(Ko,nc,rc,Bo,Ua)=>(B.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Ko,nc,rc,Bo,Ua)),onReleaseOldSourceFile:Ts,onReleaseParsedCommandLine:ka,hasInvalidatedResolutions:Rn,hasInvalidatedLibResolutions:gi,hasChangedAutomaticTypeDirectiveNames:Xi,trace:Ps(e,e.trace),resolveModuleNames:Ps(e,e.resolveModuleNames),getModuleResolutionCache:Ps(e,e.getModuleResolutionCache),createHash:Ps(e,e.createHash),resolveTypeReferenceDirectives:Ps(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Ps(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Ps(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Ps(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Ps(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Fc,jsDocParsingMode:e.jsDocParsingMode},Cs=ai.getSourceFile,{getSourceFileWithCache:Ss}=f8(ai,Ko=>Vc(Ko,k,P),(...Ko)=>Cs.call(ai,...Ko));ai.getSourceFile=Ss,(ti=e.setCompilerHost)==null||ti.call(e,ai);let ks={useCaseSensitiveFileNames:A,fileExists:Ko=>ai.fileExists(Ko),readFile:Ko=>ai.readFile(Ko),directoryExists:Ko=>ai.directoryExists(Ko),getDirectories:Ko=>ai.getDirectories(Ko),realpath:ai.realpath,readDirectory:(...Ko)=>ai.readDirectory(...Ko),trace:ai.trace,getCurrentDirectory:ai.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:dc},hc=t.getKeyForCompilationSettings(Si),Zl=new Set;if($ie(p,wi,Si,(Ko,nc)=>e.getScriptVersion(nc),Ko=>ai.fileExists(Ko),Rn,gi,Xi,Fc,Li)){ai=void 0,Vi=void 0,Zl=void 0;return}p=D5({rootNames:wi,options:Si,host:ai,oldProgram:p,projectReferences:Li}),ai=void 0,Vi=void 0,Zl=void 0,R.clearCache(),p.getTypeChecker();return;function Fc(Ko){let nc=Vc(Ko,k,P),rc=Vi?.get(nc);if(rc!==void 0)return rc||void 0;let Bo=e.getParsedCommandLine?e.getParsedCommandLine(Ko):fo(Ko);return(Vi||(Vi=new Map)).set(nc,Bo||!1),Bo}function fo(Ko){let nc=e_(Ko,100);if(nc)return nc.path=Vc(Ko,k,P),nc.resolvedPath=nc.path,nc.originalFileName=nc.fileName,s5(nc,ks,ts(Or(Ko),k),void 0,ts(Ko,k))}function ka(Ko,nc,rc){var Bo;e.getParsedCommandLine?(Bo=e.onReleaseParsedCommandLine)==null||Bo.call(e,Ko,nc,rc):nc&&tf(nc.sourceFile,rc)}function tf(Ko,nc){let rc=t.getKeyForCompilationSettings(nc);t.releaseDocumentWithKey(Ko.resolvedPath,rc,Ko.scriptKind,Ko.impliedNodeFormat)}function Ts(Ko,nc,rc,Bo){var Ua;tf(Ko,nc),(Ua=e.onReleaseOldSourceFile)==null||Ua.call(e,Ko,nc,rc,Bo)}function e_(Ko,nc,rc,Bo){return id(Ko,Vc(Ko,k,P),nc,rc,Bo)}function id(Ko,nc,rc,Bo,Ua){B.assert(ai,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let pi=e.getScriptSnapshot(Ko);if(!pi)return;let Ac=Nre(Ko,e),Wf=e.getScriptVersion(Ko);if(!Ua){let nd=p&&p.getSourceFileByPath(nc);if(nd){if(Ac===nd.scriptKind||Zl.has(nd.resolvedPath))return t.updateDocumentWithKey(Ko,nc,e,hc,pi,Wf,Ac,rc);t.releaseDocumentWithKey(nd.resolvedPath,t.getKeyForCompilationSettings(p.getCompilerOptions()),nd.scriptKind,nd.impliedNodeFormat),Zl.add(nd.resolvedPath)}}return t.acquireDocumentWithKey(Ko,nc,e,hc,pi,Wf,Ac,rc)}}function G(){if(u===2){B.assert(p===void 0);return}return z(),p}function $(){var Dt;return(Dt=e.getPackageJsonAutoImportProvider)==null?void 0:Dt.call(e)}function te(Dt,Nt){let ti=p.getTypeChecker(),li=wi();if(!li)return!1;for(let Rn of Dt)for(let gi of Rn.references){let Xi=Si(gi);if(B.assertIsDefined(Xi),Nt.has(gi)||ol.isDeclarationOfSymbol(Xi,li)){Nt.add(gi),gi.isDefinition=!0;let Li=AJ(gi,R,Ps(e,e.fileExists));Li&&Nt.add(Li)}else gi.isDefinition=!1}return!0;function wi(){for(let Rn of Dt)for(let gi of Rn.references){if(Nt.has(gi)){let Li=Si(gi);return B.assertIsDefined(Li),ti.getSymbolAtLocation(Li)}let Xi=AJ(gi,R,Ps(e,e.fileExists));if(Xi&&Nt.has(Xi)){let Li=Si(Xi);if(Li)return ti.getSymbolAtLocation(Li)}}}function Si(Rn){let gi=p.getSourceFile(Rn.fileName);if(!gi)return;let Xi=ip(gi,Rn.textSpan.start);return ol.Core.getAdjustedNode(Xi,{use:ol.FindReferencesUse.References})}}function ne(){if(p){let Dt=t.getKeyForCompilationSettings(p.getCompilerOptions());re(p.getSourceFiles(),Nt=>t.releaseDocumentWithKey(Nt.resolvedPath,Dt,Nt.scriptKind,Nt.impliedNodeFormat)),p=void 0}}function _e(){ne(),e=void 0}function ce(Dt){return z(),p.getSyntacticDiagnostics(W(Dt),x).slice()}function ae(Dt){z();let Nt=W(Dt),ti=p.getSemanticDiagnostics(Nt,x);if(!yp(p.getCompilerOptions()))return ti.slice();let li=p.getDeclarationDiagnostics(Nt,x);return[...ti,...li]}function Ce(Dt,Nt){z();let ti=W(Dt),li=p.getCompilerOptions();if(_4(ti,li,p)||!vO(ti,li)||p.getCachedSemanticDiagnostics(ti))return;let wi=he(ti,Nt);if(!wi)return;let Si=_Q(wi.map(gi=>bu(gi.getFullStart(),gi.getEnd())));return{diagnostics:p.getSemanticDiagnostics(ti,x,wi).slice(),spans:Si}}function he(Dt,Nt){let ti=[],li=_Q(Nt.map(wi=>yS(wi)));for(let wi of li){let Si=ue(Dt,wi);if(!Si)return;ti.push(...Si)}if(ti.length)return ti}function ue(Dt,Nt){if(fQ(Nt,Dt))return;let ti=V5(Dt,Vl(Nt))||Dt,li=Ri(ti,Si=>Sme(Si,Nt)),wi=[];if(Ee(Nt,li,wi),Dt.end===Nt.start+Nt.length&&wi.push(Dt.endOfFileToken),!Lt(wi,mo))return wi}function Ee(Dt,Nt,ti){return ve(Nt,Dt)?fQ(Dt,Nt)?(be(Nt,ti),!0):KN(Nt)?Se(Dt,Nt,ti):jr(Nt)?Re(Dt,Nt,ti):(be(Nt,ti),!0):!1}function ve(Dt,Nt){let ti=Nt.start+Nt.length;return Dt.posNt.start}function be(Dt,Nt){for(;Dt.parent&&!I0e(Dt);)Dt=Dt.parent;Nt.push(Dt)}function Se(Dt,Nt,ti){let li=[];return Nt.statements.filter(Si=>Ee(Dt,Si,li)).length===Nt.statements.length?(be(Nt,ti),!0):(ti.push(...li),!1)}function Re(Dt,Nt,ti){var li,wi,Si;let Rn=Li=>wme(Li,Dt);if((li=Nt.modifiers)!=null&&li.some(Rn)||Nt.name&&Rn(Nt.name)||(wi=Nt.typeParameters)!=null&&wi.some(Rn)||(Si=Nt.heritageClauses)!=null&&Si.some(Rn))return be(Nt,ti),!0;let gi=[];return Nt.members.filter(Li=>Ee(Dt,Li,gi)).length===Nt.members.length?(be(Nt,ti),!0):(ti.push(...gi),!1)}function ie(Dt){return z(),roe(W(Dt),p,x)}function ke(){return z(),[...p.getOptionsDiagnostics(x),...p.getGlobalDiagnostics(x)]}function De(Dt,Nt,ti=Xh,li){let wi={...ti,includeCompletionsForModuleExports:ti.includeCompletionsForModuleExports||ti.includeExternalModuleExports,includeCompletionsWithInsertText:ti.includeCompletionsWithInsertText||ti.includeInsertTextCompletions};return z(),nA.getCompletionsAtPosition(e,p,T,W(Dt),Nt,wi,ti.triggerCharacter,ti.triggerKind,x,li&&td.getFormatContext(li,e),ti.includeSymbol)}function Oe(Dt,Nt,ti,li,wi,Si=Xh,Rn){return z(),nA.getCompletionEntryDetails(p,T,W(Dt),Nt,{name:ti,source:wi,data:Rn},e,li&&td.getFormatContext(li,e),Si,x)}function we(Dt,Nt,ti,li,wi=Xh){return z(),nA.getCompletionEntrySymbol(p,T,W(Dt),Nt,{name:ti,source:li},e,wi)}function Ae(Dt,Nt){z();let ti=W(Dt),li=ip(ti,Nt);if(li===ti)return;let wi=p.getTypeChecker(),Si=Tt(li),Rn=MLt(Si,wi);if(!Rn||wi.isUnknownSymbol(Rn)){let ai=Be(ti,Si,Nt)?wi.getTypeAtLocation(Si):void 0;return ai&&{kind:"",kindModifiers:"",textSpan:B_(Si,ti),displayParts:wi.runWithCancellationToken(x,Cs=>X5(Cs,ai,LE(Si))),documentation:ai.symbol?ai.symbol.getDocumentationComment(wi):void 0,tags:ai.symbol?ai.symbol.getJsDocTags(wi):void 0}}let{symbolKind:gi,displayParts:Xi,documentation:Li,tags:Vi}=wi.runWithCancellationToken(x,ai=>SS.getSymbolDisplayPartsDocumentationAndSymbolKind(ai,Rn,ti,LE(Si),Si));return{kind:gi,kindModifiers:SS.getSymbolModifiers(wi,Rn),textSpan:B_(Si,ti),displayParts:Xi,documentation:Li,tags:Vi}}function Fe(Dt,Nt){return z(),zse.pasteEditsProvider(W(Dt.targetFile),Dt.pastedText,Dt.pasteLocations,Dt.copiedFrom?{file:W(Dt.copiedFrom.file),range:Dt.copiedFrom.range}:void 0,e,Dt.preferences,td.getFormatContext(Nt,e),x)}function Tt(Dt){return uT(Dt.parent)&&Dt.pos===Dt.parent.pos?Dt.parent.expression:y4(Dt.parent)&&Dt.pos===Dt.parent.pos||JP(Dt.parent)&&Dt.parent.name===Dt||e0(Dt.parent)?Dt.parent:Dt}function Be(Dt,Nt,ti){switch(Nt.kind){case 80:return Nt.flags&16777216&&!Jn(Nt)&&(Nt.parent.kind===171&&Nt.parent.name===Nt||Ri(Nt,li=>li.kind===169))?!1:!Kne(Nt)&&!Xne(Nt)&&!qg(Nt.parent);case 211:case 166:return!hS(Dt,ti);case 110:case 197:case 108:case 202:return!0;case 236:return JP(Nt);default:return!1}}function Ge(Dt,Nt,ti,li){return z(),c6.getDefinitionAtPosition(p,W(Dt),Nt,ti,li)}function Ke(Dt,Nt){return z(),c6.getDefinitionAndBoundSpan(p,W(Dt),Nt)}function Ue(Dt,Nt){return z(),c6.getTypeDefinitionAtPosition(p.getTypeChecker(),W(Dt),Nt)}function gt(Dt,Nt){return z(),ol.getImplementationsAtPosition(p,x,p.getSourceFiles(),W(Dt),Nt)}function xt(Dt,Nt,ti){let li=$s(Dt);B.assert(ti.some(Rn=>$s(Rn)===li)),z();let wi=ro(ti,Rn=>p.getSourceFile(Rn)),Si=W(Dt);return KJ.getDocumentHighlights(p,x,Si,Nt,wi)}function nt(Dt,Nt,ti,li,wi){z();let Si=W(Dt),Rn=vJ(ip(Si,Nt));if(Oq.nodeIsEligibleForRename(Rn))if(et(Rn)&&(ny(Rn.parent)||fT(Rn.parent))&&n4(Rn.escapedText)){let{openingElement:gi,closingElement:Xi}=Rn.parent.parent;return[gi,Xi].map(Li=>{let Vi=B_(Li.tagName,Si);return{fileName:Si.fileName,textSpan:Vi,...ol.toContextSpan(Vi,Si,Li.parent)}})}else{let gi=mm(Si,wi??Xh),Xi=typeof wi=="boolean"?wi:wi?.providePrefixAndSuffixTextForRename;return ci(Rn,Nt,{findInStrings:ti,findInComments:li,providePrefixAndSuffixTextForRename:Xi,use:ol.FindReferencesUse.Rename},(Li,Vi,ai)=>ol.toRenameLocation(Li,Vi,ai,Xi||!1,gi))}}function At(Dt,Nt){return z(),ci(ip(W(Dt),Nt),Nt,{use:ol.FindReferencesUse.References},ol.toReferenceEntry)}function ci(Dt,Nt,ti,li){z();let wi=ti&&ti.use===ol.FindReferencesUse.Rename?p.getSourceFiles().filter(Si=>!p.isSourceFileDefaultLibrary(Si)):p.getSourceFiles();return ol.findReferenceOrRenameEntries(p,x,wi,Dt,Nt,ti,li)}function Fi(Dt,Nt){return z(),ol.findReferencedSymbols(p,x,p.getSourceFiles(),W(Dt),Nt)}function bn(Dt){return z(),ol.Core.getReferencesForFileName(Dt,p,p.getSourceFiles()).map(ol.toReferenceEntry)}function an(Dt,Nt,ti,li=!1,wi=!1){z();let Si=ti?[W(ti)]:p.getSourceFiles();return Tje(Si,p.getTypeChecker(),x,Dt,Nt,li,wi)}function ni(Dt,Nt,ti){z();let li=W(Dt),wi=e.getCustomTransformers&&e.getCustomTransformers();return obe(p,li,!!Nt,x,wi,ti)}function Ci(Dt,Nt,{triggerReason:ti}=Xh){z();let li=W(Dt);return I9.getSignatureHelpItems(p,li,Nt,ti,x)}function Sn(Dt){return f.getCurrentSourceFile(Dt)}function nn(Dt,Nt,ti){let li=f.getCurrentSourceFile(Dt),wi=ip(li,Nt);if(wi===li)return;switch(wi.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Si=wi;for(;;)if($4(Si)||xSe(Si))Si=Si.parent;else if(Qne(Si))if(Si.parent.parent.kind===267&&Si.parent.parent.body===Si.parent)Si=Si.parent.parent.name;else break;else break;return bu(Si.getStart(),wi.getEnd())}function Br(Dt,Nt){let ti=f.getCurrentSourceFile(Dt);return Loe.spanInSourceFileAtLocation(ti,Nt)}function Gr(Dt){return Nje(f.getCurrentSourceFile(Dt),x)}function is(Dt){return Aje(f.getCurrentSourceFile(Dt),x)}function Ao(Dt,Nt,ti){return z(),(ti||"original")==="2020"?ize(p,x,W(Dt),Nt):dxe(p.getTypeChecker(),x,W(Dt),p.getClassifiableNames(),Nt)}function Rr(Dt,Nt,ti){return z(),(ti||"original")==="original"?Xre(p.getTypeChecker(),x,W(Dt),p.getClassifiableNames(),Nt):jCe(p,x,W(Dt),Nt)}function xn(Dt,Nt){return fxe(x,f.getCurrentSourceFile(Dt),Nt)}function Eo(Dt,Nt){return Yre(x,f.getCurrentSourceFile(Dt),Nt)}function it(Dt){let Nt=f.getCurrentSourceFile(Dt);return Tse.collectElements(Nt,x)}let si=new Map(Object.entries({19:20,21:22,23:24,32:30}));si.forEach((Dt,Nt)=>si.set(Dt.toString(),Number(Nt)));function dn(Dt,Nt){let ti=f.getCurrentSourceFile(Dt),li=K4(ti,Nt),wi=li.getStart(ti)===Nt?si.get(li.kind.toString()):void 0,Si=wi&&Tc(li.parent,wi,ti);return Si?[B_(li,ti),B_(Si,ti)].sort((Rn,gi)=>Rn.start-gi.start):F}function Qn(Dt,Nt,ti){let li=zc(),wi=_9(ti),Si=f.getCurrentSourceFile(Dt);T("getIndentationAtPosition: getCurrentSourceFile: "+(zc()-li)),li=zc();let Rn=td.SmartIndenter.getIndentation(Nt,Si,wi);return T("getIndentationAtPosition: computeIndentation : "+(zc()-li)),Rn}function Jr(Dt,Nt,ti,li){let wi=f.getCurrentSourceFile(Dt);return td.formatSelection(Nt,ti,wi,td.getFormatContext(_9(li),e))}function Dr(Dt,Nt){return td.formatDocument(f.getCurrentSourceFile(Dt),td.getFormatContext(_9(Nt),e))}function Do(Dt,Nt,ti,li){let wi=f.getCurrentSourceFile(Dt),Si=td.getFormatContext(_9(li),e);if(!hS(wi,Nt))switch(ti){case"{":return td.formatOnOpeningCurly(Nt,wi,Si);case"}":return td.formatOnClosingCurly(Nt,wi,Si);case";":return td.formatOnSemicolon(Nt,wi,Si);case` +`:return td.formatOnEnter(Nt,wi,Si)}return[]}function na(Dt,Nt,ti,li,wi,Si=Xh){z();let Rn=W(Dt),gi=bu(Nt,ti),Xi=td.getFormatContext(wi,e);return vo(hs(li,ox,Kc),Li=>(x.throwIfCancellationRequested(),Qf.getFixes({errorCode:Li,sourceFile:Rn,span:gi,program:p,host:e,cancellationToken:x,formatContext:Xi,preferences:Si})))}function aa(Dt,Nt,ti,li=Xh){z(),B.assert(Dt.type==="file");let wi=W(Dt.fileName),Si=td.getFormatContext(ti,e);return Qf.getAllFixes({fixId:Nt,sourceFile:wi,program:p,host:e,cancellationToken:x,formatContext:Si,preferences:li})}function Ai(Dt,Nt,ti=Xh){z(),B.assert(Dt.type==="file");let li=W(Dt.fileName);if(VI(li))return F;let wi=td.getFormatContext(Nt,e),Si=Dt.mode??(Dt.skipDestructiveCodeActions?"SortAndCombine":"All");return Fk.organizeImports(li,wi,e,p,ti,Si)}function Ha(Dt,Nt,ti,li=Xh){return mxe(G(),Dt,Nt,e,td.getFormatContext(ti,e),li,R)}function ht(Dt,Nt){let ti=typeof Dt=="string"?Nt:Dt;return ds(ti)?Promise.all(ti.map(li=>Jt(li))):Jt(ti)}function Jt(Dt){let Nt=ti=>Vc(ti,k,P);return B.assertEqual(Dt.type,"install package"),e.installPackage?e.installPackage({fileName:Nt(Dt.file),packageName:Dt.packageName}):Promise.reject("Host does not implement `installPackage`")}function ye(Dt,Nt,ti,li){let wi=li?td.getFormatContext(li,e).options:void 0;return Ok.getDocCommentTemplateAtPosition(cb(e,wi),f.getCurrentSourceFile(Dt),Nt,ti)}function ct(Dt,Nt,ti){if(ti===60)return!1;let li=f.getCurrentSourceFile(Dt);if(JN(li,Nt))return!1;if(ISe(li,Nt))return ti===123;if(ore(li,Nt))return!1;switch(ti){case 39:case 34:case 96:return!hS(li,Nt)}return!0}function ge(Dt,Nt){let ti=f.getCurrentSourceFile(Dt),li=fd(Nt,ti);if(!li)return;let wi=li.kind===32&&ny(li.parent)?li.parent.parent:yN(li)&&Yv(li.parent)?li.parent:void 0;if(wi&&$t(wi))return{newText:``};let Si=li.kind===32&&xE(li.parent)?li.parent.parent:yN(li)&&_T(li.parent)?li.parent:void 0;if(Si&&_t(Si))return{newText:""}}function He(Dt,Nt){let ti=f.getCurrentSourceFile(Dt),li=fd(Nt,ti);if(!li||li.parent.kind===307)return;let wi="[a-zA-Z0-9:\\-\\._$]*";if(_T(li.parent.parent)){let Si=li.parent.parent.openingFragment,Rn=li.parent.parent.closingFragment;if(VI(Si)||VI(Rn))return;let gi=Si.getStart(ti)+1,Xi=Rn.getStart(ti)+2;return Nt!==gi&&Nt!==Xi?void 0:{ranges:[{start:gi,length:0},{start:Xi,length:0}],wordPattern:wi}}else{let Si=Ri(li.parent,Ss=>!!(ny(Ss)||fT(Ss)));if(!Si)return;B.assert(ny(Si)||fT(Si),"tag should be opening or closing element");let Rn=Si.parent.openingElement,gi=Si.parent.closingElement,Xi=Rn.tagName.getStart(ti),Li=Rn.tagName.end,Vi=gi.tagName.getStart(ti),ai=gi.tagName.end;return Xi===Rn.getStart(ti)||Vi===gi.getStart(ti)||Li===Rn.getEnd()||ai===gi.getEnd()||!(Xi<=Nt&&Nt<=Li||Vi<=Nt&&Nt<=ai)||Rn.tagName.getText(ti)!==gi.tagName.getText(ti)?void 0:{ranges:[{start:Xi,length:Li-Xi},{start:Vi,length:ai-Vi}],wordPattern:wi}}}function ut(Dt,Nt){return{lineStarts:Dt.getLineStarts(),firstLine:Dt.getLineAndCharacterOfPosition(Nt.pos).line,lastLine:Dt.getLineAndCharacterOfPosition(Nt.end).line}}function bt(Dt,Nt,ti){let li=f.getCurrentSourceFile(Dt),wi=[],{lineStarts:Si,firstLine:Rn,lastLine:gi}=ut(li,Nt),Xi=ti||!1,Li=Number.MAX_VALUE,Vi=new Map,ai=new RegExp(/\S/),Cs=SJ(li,Si[Rn]),Ss=Cs?"{/*":"//";for(let ks=Rn;ks<=gi;ks++){let hc=li.text.substring(Si[ks],li.getLineEndOfPosition(Si[ks])),Zl=ai.exec(hc);Zl&&(Li=Math.min(Li,Zl.index),Vi.set(ks.toString(),Zl.index),hc.substr(Zl.index,Ss.length)!==Ss&&(Xi=ti===void 0||ti))}for(let ks=Rn;ks<=gi;ks++){if(Rn!==gi&&Si[ks]===Nt.end)continue;let hc=Vi.get(ks.toString());hc!==void 0&&(Cs?wi.push(...je(Dt,{pos:Si[ks]+Li,end:li.getLineEndOfPosition(Si[ks])},Xi,Cs)):Xi?wi.push({newText:Ss,span:{length:0,start:Si[ks]+Li}}):li.text.substr(Si[ks]+hc,Ss.length)===Ss&&wi.push({newText:"",span:{length:Ss.length,start:Si[ks]+hc}}))}return wi}function je(Dt,Nt,ti,li){var wi;let Si=f.getCurrentSourceFile(Dt),Rn=[],{text:gi}=Si,Xi=!1,Li=ti||!1,Vi=[],{pos:ai}=Nt,Cs=li!==void 0?li:SJ(Si,ai),Ss=Cs?"{/*":"/*",ks=Cs?"*/}":"*/",hc=Cs?"\\{\\/\\*":"\\/\\*",Zl=Cs?"\\*\\/\\}":"\\*\\/";for(;ai<=Nt.end;){let Uu=gi.substr(ai,Ss.length)===Ss?Ss.length:0,Fc=hS(Si,ai+Uu);if(Fc)Cs&&(Fc.pos--,Fc.end++),Vi.push(Fc.pos),Fc.kind===3&&Vi.push(Fc.end),Xi=!0,ai=Fc.end+1;else{let fo=gi.substring(ai,Nt.end).search(`(${hc})|(${Zl})`);Li=ti!==void 0?ti:Li||!WSe(gi,ai,fo===-1?Nt.end:ai+fo),ai=fo===-1?Nt.end+1:ai+fo+ks.length}}if(Li||!Xi){((wi=hS(Si,Nt.pos))==null?void 0:wi.kind)!==2&&vn(Vi,Nt.pos,Kc),vn(Vi,Nt.end,Kc);let Uu=Vi[0];gi.substr(Uu,Ss.length)!==Ss&&Rn.push({newText:Ss,span:{length:0,start:Uu}});for(let Fc=1;Fc0?Uu-ks.length:0,fo=gi.substr(Fc,ks.length)===ks?ks.length:0;Rn.push({newText:"",span:{length:Ss.length,start:Uu-fo}})}return Rn}function It(Dt,Nt){let ti=f.getCurrentSourceFile(Dt),{firstLine:li,lastLine:wi}=ut(ti,Nt);return li===wi&&Nt.pos!==Nt.end?je(Dt,Nt,!0):bt(Dt,Nt,!0)}function mt(Dt,Nt){let ti=f.getCurrentSourceFile(Dt),li=[],{pos:wi}=Nt,{end:Si}=Nt;wi===Si&&(Si+=SJ(ti,wi)?2:1);for(let Rn=wi;Rn<=Si;Rn++){let gi=hS(ti,Rn);if(gi){switch(gi.kind){case 2:li.push(...bt(Dt,{end:gi.end,pos:gi.pos+1},!1));break;case 3:li.push(...je(Dt,{end:gi.end,pos:gi.pos+1},!1))}Rn=gi.end+1}}return li}function $t({openingElement:Dt,closingElement:Nt,parent:ti}){return!Ck(Dt.tagName,Nt.tagName)||Yv(ti)&&Ck(Dt.tagName,ti.openingElement.tagName)&&$t(ti)}function _t({closingFragment:Dt,parent:Nt}){return!!(Dt.flags&262144)||_T(Nt)&&_t(Nt)}function yi(Dt,Nt,ti){let li=f.getCurrentSourceFile(Dt),wi=td.getRangeOfEnclosingComment(li,Nt);return wi&&(!ti||wi.kind===3)?yS(wi):void 0}function Ii(Dt,Nt){z();let ti=W(Dt);x.throwIfCancellationRequested();let li=ti.text,wi=[];if(Nt.length>0&&!Xi(ti.fileName)){let Li=Rn(),Vi;for(;Vi=Li.exec(li);){x.throwIfCancellationRequested();let ai=3;B.assert(Vi.length===Nt.length+ai);let Cs=Vi[1],Ss=Vi.index+Cs.length;if(!hS(ti,Ss))continue;let ks;for(let Zl=0;Zl"("+Si(Fc.text)+")").join("|")+")",ks=/(?:$|\*\/)/.source,hc=/(?:.*?)/.source,Zl="("+Ss+hc+")",Uu=Cs+Zl+ks;return new RegExp(Uu,"gim")}function gi(Li){return Li>=97&&Li<=122||Li>=65&&Li<=90||Li>=48&&Li<=57}function Xi(Li){return Li.includes("/node_modules/")}}function nr(Dt,Nt,ti){return z(),Oq.getRenameInfo(p,W(Dt),Nt,ti||{})}function Y(Dt,Nt,ti,li,wi,Si){let[Rn,gi]=typeof Nt=="number"?[Nt,void 0]:[Nt.pos,Nt.end];return{file:Dt,startPosition:Rn,endPosition:gi,program:G(),host:e,formatContext:td.getFormatContext(li,e),cancellationToken:x,preferences:ti,triggerReason:wi,kind:Si}}function $e(Dt,Nt,ti){return{file:Dt,program:G(),host:e,span:Nt,preferences:ti,cancellationToken:x}}function Bt(Dt,Nt){return Ise.getSmartSelectionRange(Nt,f.getCurrentSourceFile(Dt))}function se(Dt,Nt,ti=Xh,li,wi,Si){z();let Rn=W(Dt);return YN.getApplicableRefactors(Y(Rn,Nt,ti,Xh,li,wi),Si)}function rt(Dt,Nt,ti=Xh){z();let li=W(Dt),wi=B.checkDefined(p.getSourceFiles()),Si=gO(Dt),Rn=d9(Y(li,Nt,ti,Xh)),gi=oCe(Rn?.all),Xi=ro(wi,Li=>{let Vi=gO(Li.fileName);return!p?.isSourceFileFromExternalLibrary(li)&&!(li===W(Li.fileName)||Si===".ts"&&Vi===".d.ts"||Si===".d.ts"&&Ro(Xu(Li.fileName),"lib.")&&Vi===".d.ts")&&(Si===Vi||(Si===".tsx"&&Vi===".ts"||Si===".jsx"&&Vi===".js")&&!gi)?Li.fileName:void 0});return{newFileName:rCe(li,p,e,Rn),files:Xi}}function fe(Dt,Nt,ti,li,wi,Si=Xh,Rn){z();let gi=W(Dt);return YN.getEditsForRefactor(Y(gi,ti,Si,Nt),li,wi,Rn)}function Wt(Dt,Nt){return Nt===0?{line:0,character:0}:R.toLineColumnOffset(Dt,Nt)}function tt(Dt,Nt){z();let ti=QN.resolveCallHierarchyDeclaration(p,ip(W(Dt),Nt));return ti&&zre(ti,li=>QN.createCallHierarchyItem(p,li))}function Qe(Dt,Nt){z();let ti=W(Dt),li=Vre(QN.resolveCallHierarchyDeclaration(p,Nt===0?ti:ip(ti,Nt)));return li?QN.getIncomingCalls(p,li,x):[]}function ei(Dt,Nt){z();let ti=W(Dt),li=Vre(QN.resolveCallHierarchyDeclaration(p,Nt===0?ti:ip(ti,Nt)));return li?QN.getOutgoingCalls(p,li):[]}function In(Dt,Nt,ti=Xh){z();let li=W(Dt);return Cse.provideInlayHints($e(li,Nt,ti))}function Ji(Dt,Nt,ti,li,wi){return kse.mapCode(f.getCurrentSourceFile(Dt),Nt,ti,e,td.getFormatContext(li,e),wi)}let _n={dispose:_e,cleanupSemanticCache:ne,getSyntacticDiagnostics:ce,getSemanticDiagnostics:ae,getRegionSemanticDiagnostics:Ce,getSuggestionDiagnostics:ie,getCompilerOptionsDiagnostics:ke,getSyntacticClassifications:xn,getSemanticClassifications:Ao,getEncodedSyntacticClassifications:Eo,getEncodedSemanticClassifications:Rr,getCompletionsAtPosition:De,getCompletionEntryDetails:Oe,getCompletionEntrySymbol:we,getSignatureHelpItems:Ci,getQuickInfoAtPosition:Ae,getDefinitionAtPosition:Ge,getDefinitionAndBoundSpan:Ke,getImplementationAtPosition:gt,getTypeDefinitionAtPosition:Ue,getReferencesAtPosition:At,findReferences:Fi,getFileReferences:bn,getDocumentHighlights:xt,getNameOrDottedNameSpan:nn,getBreakpointStatementAtPosition:Br,getNavigateToItems:an,getRenameInfo:nr,getSmartSelectionRange:Bt,findRenameLocations:nt,getNavigationBarItems:Gr,getNavigationTree:is,getOutliningSpans:it,getTodoComments:Ii,getBraceMatchingAtPosition:dn,getIndentationAtPosition:Qn,getFormattingEditsForRange:Jr,getFormattingEditsForDocument:Dr,getFormattingEditsAfterKeystroke:Do,getDocCommentTemplateAtPosition:ye,isValidBraceCompletionAtPosition:ct,getJsxClosingTagAtPosition:ge,getLinkedEditingRangeAtPosition:He,getSpanOfEnclosingComment:yi,getCodeFixesAtPosition:na,getCombinedCodeFix:aa,applyCodeActionCommand:ht,organizeImports:Ai,getEditsForFileRename:Ha,getEmitOutput:ni,getNonBoundSourceFile:Sn,getProgram:G,getCurrentProgram:()=>p,getAutoImportProvider:$,updateIsDefinitionOfReferencedSymbols:te,getApplicableRefactors:se,getEditsForRefactor:fe,getMoveToRefactoringFileSuggestions:rt,toLineColumnOffset:Wt,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:tt,provideCallHierarchyIncomingCalls:Qe,provideCallHierarchyOutgoingCalls:ei,toggleLineComment:bt,toggleMultilineComment:je,commentSelection:It,uncommentSelection:mt,provideInlayHints:In,getSupportedCodeFixes:Noe,getPasteEdits:Fe,mapCode:Ji};switch(u){case 0:break;case 1:mze.forEach(Dt=>_n[Dt]=()=>{throw new Error(`LanguageService Operation: ${Dt} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:PLt.forEach(Dt=>_n[Dt]=()=>{throw new Error(`LanguageService Operation: ${Dt} not allowed in LanguageServiceMode.Syntactic`)});break;default:B.assertNever(u)}return _n}function Poe(e){return e.nameTable||LLt(e),e.nameTable}function LLt(e){let t=e.nameTable=new Map;e.forEachChild(function r(a){if(et(a)&&!Xne(a)&&a.escapedText||Am(a)&&OLt(a)){let u=tO(a);t.set(u,t.get(u)===void 0?a.pos:-1)}else if(xo(a)){let u=a.escapedText;t.set(u,t.get(u)===void 0?a.pos:-1)}if(ws(a,r),dm(a))for(let u of a.jsDoc)ws(u,r)})}function OLt(e){return Xy(e)||e.parent.kind===283||RLt(e)||tR(e)}function m9(e){let t=FLt(e);return t&&(ba(t.parent)||pT(t.parent))?t:void 0}function FLt(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return FQ(e.parent.parent)?e.parent.parent:void 0;case 80:return FQ(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function MLt(e,t){let r=m9(e);if(r){let a=t.getContextualType(r.parent),u=a&&fq(r,t,a,!1);if(u&&u.length===1)return Ta(u)}return t.getSymbolAtLocation(e)}function fq(e,t,r,a){let u=$5(e.name);if(!u)return F;if(!r.isUnion()){let y=r.getProperty(u);return y?[y]:F}let f=ba(e.parent)||pT(e.parent)?Di(r.types,y=>!t.isTypeInvalidDueToUnionDiscriminant(y,e.parent)):r.types,p=ro(f,y=>y.getProperty(u));if(a&&(p.length===0||p.length===r.types.length)){let y=r.getProperty(u);if(y)return[y]}return!f.length&&!p.length?ro(r.types,y=>y.getProperty(u)):hs(p,ox)}function RLt(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function UCe(e){if(Sd)return xr(Or($s(Sd.getExecutingFilePath())),nM(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}Gge(DLt());function hze(e,t,r){let a=[];r=coe(r,a);let u=ds(e)?e:[e],f=S5(void 0,void 0,U,r,u,t,!0);return f.diagnostics=Fo(f.diagnostics,a),f}var Loe={};_(Loe,{spanInSourceFileAtLocation:()=>BLt});function BLt(e,t){if(e.isDeclarationFile)return;let r=go(e,t),a=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>a){let T=fd(r.pos,e);if(!T||e.getLineAndCharacterOfPosition(T.getEnd()).line!==a)return;r=T}if(r.flags&33554432)return;return k(r);function u(T,A){let P=hT(T)?Mi(T.modifiers,Td):void 0,R=P?Ea(e.text,P.end):T.getStart(e);return bu(R,(A||T).getEnd())}function f(T,A){return u(T,kT(A,A.parent,e))}function p(T,A){return T&&a===e.getLineAndCharacterOfPosition(T.getStart(e)).line?k(T):k(A)}function y(T,A,P){if(T){let R=T.indexOf(A);if(R>=0){let W=R,z=R+1;for(;W>0&&P(T[W-1]);)W--;for(;z0)return k(ke.declarations[0])}else return k(ie.initializer)}function ne(ie){if(ie.initializer)return te(ie);if(ie.condition)return u(ie.condition);if(ie.incrementor)return u(ie.incrementor)}function _e(ie){let ke=re(ie.elements,De=>De.kind!==232?De:void 0);return ke?k(ke):ie.parent.kind===208?u(ie.parent):A(ie.parent)}function ce(ie){B.assert(ie.kind!==207&&ie.kind!==206);let ke=ie.kind===209?ie.elements:ie.properties,De=re(ke,Oe=>Oe.kind!==232?Oe:void 0);return De?k(De):u(ie.parent.kind===226?ie.parent:ie)}function ae(ie){switch(ie.parent.kind){case 266:let ke=ie.parent;return p(fd(ie.pos,e,ie.parent),ke.members.length?ke.members[0]:ke.getLastToken(e));case 263:let De=ie.parent;return p(fd(ie.pos,e,ie.parent),De.members.length?De.members[0]:De.getLastToken(e));case 269:return p(ie.parent.parent,ie.parent.clauses[0])}return k(ie.parent)}function Ce(ie){switch(ie.parent.kind){case 268:if(ab(ie.parent.parent)!==1)return;case 266:case 263:return u(ie);case 241:if(Jw(ie.parent))return u(ie);case 299:return k(Lc(ie.parent.statements));case 269:let ke=ie.parent,De=Lc(ke.clauses);return De?k(Lc(De.statements)):void 0;case 206:let Oe=ie.parent;return k(Lc(Oe.elements)||Oe);default:if(gS(ie.parent)){let we=ie.parent;return u(Lc(we.properties)||we)}return k(ie.parent)}}function he(ie){switch(ie.parent.kind){case 207:let ke=ie.parent;return u(Lc(ke.elements)||ke);default:if(gS(ie.parent)){let De=ie.parent;return u(Lc(De.elements)||De)}return k(ie.parent)}}function ue(ie){return ie.parent.kind===246||ie.parent.kind===213||ie.parent.kind===214?g(ie):ie.parent.kind===217?x(ie):k(ie.parent)}function Ee(ie){switch(ie.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return g(ie);default:return k(ie.parent)}}function ve(ie){return vs(ie.parent)||ie.parent.kind===303||ie.parent.kind===169?g(ie):k(ie.parent)}function be(ie){return ie.parent.kind===216?x(ie):k(ie.parent)}function Se(ie){return ie.parent.kind===246?f(ie,ie.parent.expression):k(ie.parent)}function Re(ie){return ie.parent.kind===250?x(ie):k(ie.parent)}}}var QN={};_(QN,{createCallHierarchyItem:()=>JCe,getIncomingCalls:()=>qLt,getOutgoingCalls:()=>i3t,resolveCallHierarchyDeclaration:()=>kze});function jLt(e){return(Yc(e)||Qu(e))&&pf(e)}function gze(e){return ls(e)||Ur(e)}function h9(e){return(Yc(e)||rl(e)||Qu(e))&&gze(e.parent)&&e===e.parent.initializer&&et(e.parent.name)&&(!!($1(e.parent)&2)||ls(e.parent))}function yze(e){return mo(e)||Hu(e)||xu(e)||Yc(e)||Zu(e)||Qu(e)||Yl(e)||pu(e)||Z0(e)||Lm(e)||qp(e)}function o6(e){return mo(e)||Hu(e)&&et(e.name)||xu(e)||Zu(e)||Yl(e)||pu(e)||Z0(e)||Lm(e)||qp(e)||jLt(e)||h9(e)}function vze(e){return mo(e)?e:pf(e)?e.name:h9(e)?e.parent.name:B.checkDefined(e.modifiers&&St(e.modifiers,bze))}function bze(e){return e.kind===90}function Sze(e,t){let r=vze(t);return r&&e.getSymbolAtLocation(r)}function WLt(e,t){if(mo(t))return{text:t.fileName,pos:0,end:0};if((xu(t)||Zu(t))&&!pf(t)){let u=t.modifiers&&St(t.modifiers,bze);if(u)return{text:"default",pos:u.getStart(),end:u.getEnd()}}if(Yl(t)){let u=t.getSourceFile(),f=Ea(u.text,X0(t).pos),p=f+6,y=e.getTypeChecker(),g=y.getSymbolAtLocation(t.parent);return{text:`${g?`${y.symbolToString(g,t.parent)} `:""}static {}`,pos:f,end:p}}let r=h9(t)?t.parent.name:B.checkDefined(cs(t),"Expected call hierarchy item to have a name"),a=et(r)?mr(r):Am(r)?r.text:Ma(r)&&Am(r.expression)?r.expression.text:void 0;if(a===void 0){let u=e.getTypeChecker(),f=u.getSymbolAtLocation(r);f&&(a=u.symbolToString(f,t))}if(a===void 0){let u=Aie();a=zP(f=>u.writeNode(4,t,t.getSourceFile(),f))}return{text:a,pos:r.getStart(),end:r.getEnd()}}function zLt(e){var t,r,a,u;if(h9(e))return ls(e.parent)&&jr(e.parent.parent)?Qu(e.parent.parent)?(t=sz(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():ty(e.parent.parent.parent.parent)&&et(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(a=sz(e.parent))==null?void 0:a.getText():(u=cs(e.parent))==null?void 0:u.getText();case 262:case 263:case 267:if(ty(e.parent)&&et(e.parent.parent.name))return e.parent.parent.name.getText()}}function xze(e,t){if(t.body)return t;if(Ol(t))return Hv(t.parent);if(xu(t)||pu(t)){let r=Sze(e,t);return r&&r.valueDeclaration&&Oc(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function Cze(e,t){let r=Sze(e,t),a;if(r&&r.declarations){let u=Ow(r.declarations),f=_i(r.declarations,g=>({file:g.getSourceFile().fileName,pos:g.pos}));u.sort((g,x)=>Ff(f[g].file,f[x].file)||f[g].pos-f[x].pos);let p=_i(u,g=>r.declarations[g]),y;for(let g of p)o6(g)&&((!y||y.parent!==g.parent||y.end!==g.pos)&&(a=hi(a,g)),y=g)}return a}function Ooe(e,t){return Yl(t)?t:Oc(t)?xze(e,t)??Cze(e,t)??t:Cze(e,t)??t}function kze(e,t){let r=e.getTypeChecker(),a=!1;for(;;){if(o6(t))return Ooe(r,t);if(yze(t)){let u=Ri(t,o6);return u&&Ooe(r,u)}if(Xy(t)){if(o6(t.parent))return Ooe(r,t.parent);if(yze(t.parent)){let u=Ri(t.parent,o6);return u&&Ooe(r,u)}return gze(t.parent)&&t.parent.initializer&&h9(t.parent.initializer)?t.parent.initializer:void 0}if(Ol(t))return o6(t.parent)?t.parent:void 0;if(t.kind===126&&Yl(t.parent)){t=t.parent;continue}if(Ur(t)&&t.initializer&&h9(t.initializer))return t.initializer;if(!a){let u=r.getSymbolAtLocation(t);if(u&&(u.flags&2097152&&(u=r.getAliasedSymbol(u)),u.valueDeclaration)){a=!0,t=u.valueDeclaration;continue}}return}}function JCe(e,t){let r=t.getSourceFile(),a=WLt(e,t),u=zLt(t),f=CT(t),p=x8(t),y=bu(Ea(r.text,t.getFullStart(),!1,!0),t.getEnd()),g=bu(a.pos,a.end);return{file:r.fileName,kind:f,kindModifiers:p,name:a.text,containerName:u,span:y,selectionSpan:g}}function VLt(e){return e!==void 0}function HLt(e){if(e.kind===ol.EntryKind.Node){let{node:t}=e;if(qne(t,!0,!0)||vSe(t,!0,!0)||bSe(t,!0,!0)||SSe(t,!0,!0)||$4(t)||Yne(t)){let r=t.getSourceFile();return{declaration:Ri(t,o6)||r,range:_re(t,r)}}}}function wze(e){return ac(e.declaration)}function ULt(e,t){return{from:e,fromSpans:t}}function JLt(e,t){return ULt(JCe(e,t[0].declaration),_i(t,r=>yS(r.range)))}function qLt(e,t,r){if(mo(t)||Hu(t)||Yl(t))return[];let a=vze(t),u=Di(ol.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),a,0,{use:ol.FindReferencesUse.References},HLt),VLt);return u?Xl(u,wze,f=>JLt(e,f)):[]}function $Lt(e,t){function r(u){let f=pk(u)?u.tag:Mf(u)?u.tagName:il(u)||Yl(u)?u:u.expression,p=kze(e,f);if(p){let y=_re(f,u.getSourceFile());if(ds(p))for(let g of p)t.push({declaration:g,range:y});else t.push({declaration:p,range:y})}}function a(u){if(u&&!(u.flags&33554432)){if(o6(u)){if(jr(u))for(let f of u.members)f.name&&Ma(f.name)&&a(f.name.expression);return}switch(u.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(u);return;case 216:case 234:a(u.expression);return;case 260:case 169:a(u.name),a(u.initializer);return;case 213:r(u),a(u.expression),re(u.arguments,a);return;case 214:r(u),a(u.expression),re(u.arguments,a);return;case 215:r(u),a(u.tag),a(u.template);return;case 286:case 285:r(u),a(u.tagName),a(u.attributes);return;case 170:r(u),a(u.expression);return;case 211:case 212:r(u),ws(u,a);break;case 238:a(u.expression);return}U0(u)||ws(u,a)}}return a}function GLt(e,t){re(e.statements,t)}function KLt(e,t){!Ar(e,128)&&e.body&&ty(e.body)&&re(e.body.statements,t)}function XLt(e,t,r){let a=xze(e,t);a&&(re(a.parameters,r),r(a.body))}function YLt(e,t){t(e.body)}function QLt(e,t){re(e.modifiers,t);let r=Yw(e);r&&t(r.expression);for(let a of e.members)Kh(a)&&re(a.modifiers,t),ls(a)?t(a.initializer):Ol(a)&&a.body?(re(a.parameters,t),t(a.body)):Yl(a)&&t(a)}function ZLt(e,t){let r=[],a=$Lt(e,r);switch(t.kind){case 307:GLt(t,a);break;case 267:KLt(t,a);break;case 262:case 218:case 219:case 174:case 177:case 178:XLt(e.getTypeChecker(),t,a);break;case 263:case 231:QLt(t,a);break;case 175:YLt(t,a);break;default:B.assertNever(t)}return r}function e3t(e,t){return{to:e,fromSpans:t}}function t3t(e,t){return e3t(JCe(e,t[0].declaration),_i(t,r=>yS(r.range)))}function i3t(e,t){return t.flags&33554432||Z0(t)?[]:Xl(ZLt(e,t),wze,r=>t3t(e,r))}var qCe={};_(qCe,{v2020:()=>Tze});var Tze={};_(Tze,{TokenEncodingConsts:()=>ZWe,TokenModifier:()=>tze,TokenType:()=>eze,getEncodedSemanticClassifications:()=>jCe,getSemanticClassifications:()=>ize});var Qf={};_(Qf,{PreserveOptionalFlags:()=>RJe,addNewNodeForMemberSymbol:()=>BJe,codeFixAll:()=>Ec,createCodeFixAction:()=>Ks,createCodeFixActionMaybeFixAll:()=>KCe,createCodeFixActionWithoutFixAll:()=>s0,createCombinedCodeActions:()=>ZN,createFileTextChanges:()=>Eze,createImportAdder:()=>AT,createImportSpecifierResolver:()=>dOt,createMissingMemberNodes:()=>pwe,createSignatureDeclarationFromCallExpression:()=>mwe,createSignatureDeclarationFromSignature:()=>ase,createStubbedBody:()=>bq,eachDiagnostic:()=>eA,findAncestorMatchingSpan:()=>Swe,generateAccessorFromProperty:()=>JJe,getAccessorConvertiblePropertyAtPosition:()=>GJe,getAllFixes:()=>s3t,getAllSupers:()=>xwe,getFixes:()=>o3t,getImportCompletionAction:()=>fOt,getImportKind:()=>qoe,getJSDocTypedefNodes:()=>lOt,getNoopSymbolTrackerWithResolver:()=>a6,getPromoteTypeOnlyCompletionAction:()=>_Ot,getSupportedErrorCodes:()=>n3t,importFixName:()=>$Ve,importSymbols:()=>ME,parameterShouldGetTypeFromJSDoc:()=>iVe,registerCodeFix:()=>ha,setJsonCompilerOptionValue:()=>vwe,setJsonCompilerOptionValues:()=>ywe,tryGetAutoImportableReferenceFromTypeNode:()=>PT,typePredicateToAutoImportableTypeNode:()=>WJe,typeToAutoImportableTypeNode:()=>vq});var $Ce=Dm(),GCe=new Map;function s0(e,t,r){return XCe(e,TT(r),t,void 0,void 0)}function Ks(e,t,r,a,u,f){return XCe(e,TT(r),t,a,TT(u),f)}function KCe(e,t,r,a,u,f){return XCe(e,TT(r),t,a,u&&TT(u),f)}function XCe(e,t,r,a,u,f){return{fixName:e,description:t,changes:r,fixId:a,fixAllDescription:u,commands:f?[f]:void 0}}function ha(e){for(let t of e.errorCodes)YCe=void 0,$Ce.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)B.assert(!GCe.has(t)),GCe.set(t,e)}var YCe;function n3t(){return YCe??(YCe=as($Ce.keys()))}function r3t(e,t){let{errorCodes:r}=e,a=0;for(let f of t)if(sn(r,f.code)&&a++,a>1)break;let u=a<2;return({fixId:f,fixAllDescription:p,...y})=>u?y:{...y,fixId:f,fixAllDescription:p}}function o3t(e){let t=Dze(e),r=$Ce.get(String(e.errorCode));return vo(r,a=>_i(a.getCodeActions(e),r3t(a,t)))}function s3t(e){return GCe.get(ea(e.fixId,fs)).getAllCodeActions(e)}function ZN(e,t){return{changes:e,commands:t}}function Eze(e,t){return{fileName:e,textChanges:t}}function Ec(e,t,r){let a=[],u=Vn.ChangeTracker.with(e,f=>eA(e,t,p=>r(f,p,a)));return ZN(u,a.length===0?void 0:a)}function eA(e,t,r){for(let a of Dze(e))sn(t,a.code)&&r(a)}function Dze({program:e,sourceFile:t,cancellationToken:r}){let a=[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...roe(t,e,r)];return yp(e.getCompilerOptions())&&a.push(...e.getDeclarationDiagnostics(t,r)),a}var QCe="addConvertToUnknownForNonOverlappingTypes",Ize=[S.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];ha({errorCodes:Ize,getCodeActions:function(t){let r=Aze(t.sourceFile,t.span.start);if(r===void 0)return;let a=Vn.ChangeTracker.with(t,u=>Nze(u,t.sourceFile,r));return[Ks(QCe,a,S.Add_unknown_conversion_for_non_overlapping_types,QCe,S.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[QCe],getAllCodeActions:e=>Ec(e,Ize,(t,r)=>{let a=Aze(r.file,r.start);a&&Nze(t,r.file,a)})});function Nze(e,t,r){let a=OO(r)?U.createAsExpression(r.expression,U.createKeywordTypeNode(159)):U.createTypeAssertion(U.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,a)}function Aze(e,t){if(!Jn(e))return Ri(go(e,t),r=>OO(r)||jee(r))}ha({errorCodes:[S.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,S.await_using_statements_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,S.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(t){let{sourceFile:r}=t,a=Vn.ChangeTracker.with(t,u=>{let f=U.createExportDeclaration(void 0,!1,U.createNamedExports([]),void 0);u.insertNodeAtEndOfScope(r,r,f)});return[s0("addEmptyExportDeclaration",a,S.Add_export_to_make_this_file_into_a_module)]}});var ZCe="addMissingAsync",Pze=[S.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,S.Type_0_is_not_assignable_to_type_1.code,S.Type_0_is_not_comparable_to_type_1.code];ha({fixIds:[ZCe],errorCodes:Pze,getCodeActions:function(t){let{sourceFile:r,errorCode:a,cancellationToken:u,program:f,span:p}=t,y=St(f.getTypeChecker().getDiagnostics(r,u),c3t(p,a)),g=y&&y.relatedInformation&&St(y.relatedInformation,T=>T.code===S.Did_you_mean_to_mark_this_function_as_async.code),x=Oze(r,g);return x?[Lze(t,x,T=>Vn.ChangeTracker.with(t,T))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,r=new Set;return Ec(e,Pze,(a,u)=>{let f=u.relatedInformation&&St(u.relatedInformation,g=>g.code===S.Did_you_mean_to_mark_this_function_as_async.code),p=Oze(t,f);return p?Lze(e,p,g=>(g(a),[]),r):void 0})}});function Lze(e,t,r,a){let u=r(f=>a3t(f,e.sourceFile,t,a));return Ks(ZCe,u,S.Add_async_modifier_to_containing_function,ZCe,S.Add_all_missing_async_modifiers)}function a3t(e,t,r,a){if(a&&a.has(ac(r)))return;a?.add(ac(r));let u=U.replaceModifiers(_c(r,!0),U.createNodeArray(U.createModifiersFromModifierFlags(oS(r)|1024)));e.replaceNode(t,r,u)}function Oze(e,t){if(!t)return;let r=go(e,t.start);return Ri(r,u=>u.getStart(e)Vl(t)?"quit":(rl(u)||pu(u)||Yc(u)||xu(u))&&Q4(t,B_(u,e)))}function c3t(e,t){return({start:r,length:a,relatedInformation:u,code:f})=>nx(r)&&nx(a)&&Q4({start:r,length:a},e)&&f===t&&!!u&&Lt(u,p=>p.code===S.Did_you_mean_to_mark_this_function_as_async.code)}var eke="addMissingAwait",Fze=S.Property_0_does_not_exist_on_type_1.code,Mze=[S.This_expression_is_not_callable.code,S.This_expression_is_not_constructable.code],tke=[S.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,S.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,S.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,S.Operator_0_cannot_be_applied_to_type_1.code,S.Operator_0_cannot_be_applied_to_types_1_and_2.code,S.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,S.This_condition_will_always_return_true_since_this_0_is_always_defined.code,S.Type_0_is_not_an_array_type.code,S.Type_0_is_not_an_array_type_or_a_string_type.code,S.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,S.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,S.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,S.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,S.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,S.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Fze,...Mze];ha({fixIds:[eke],errorCodes:tke,getCodeActions:function(t){let{sourceFile:r,errorCode:a,span:u,cancellationToken:f,program:p}=t,y=Rze(r,a,u,f,p);if(!y)return;let g=t.program.getTypeChecker(),x=k=>Vn.ChangeTracker.with(t,k);return zr([Bze(t,y,a,g,x),jze(t,y,a,g,x)])},getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:a}=e,u=e.program.getTypeChecker(),f=new Set;return Ec(e,tke,(p,y)=>{let g=Rze(t,y.code,y,a,r);if(!g)return;let x=k=>(k(p),[]);return Bze(e,g,y.code,u,x,f)||jze(e,g,y.code,u,x,f)})}});function Rze(e,t,r,a,u){let f=Wre(e,r);return f&&l3t(e,t,r,a,u)&&Wze(f)?f:void 0}function Bze(e,t,r,a,u,f){let{sourceFile:p,program:y,cancellationToken:g}=e,x=u3t(t,p,g,y,a);if(x){let k=u(T=>{re(x.initializers,({expression:A})=>ike(T,r,p,a,A,f)),f&&x.needsSecondPassForFixAll&&ike(T,r,p,a,t,f)});return s0("addMissingAwaitToInitializer",k,x.initializers.length===1?[S.Add_await_to_initializer_for_0,x.initializers[0].declarationSymbol.name]:S.Add_await_to_initializers)}}function jze(e,t,r,a,u,f){let p=u(y=>ike(y,r,e.sourceFile,a,t,f));return Ks(eke,p,S.Add_await,eke,S.Fix_all_expressions_possibly_missing_await)}function l3t(e,t,r,a,u){let p=u.getTypeChecker().getDiagnostics(e,a);return Lt(p,({start:y,length:g,relatedInformation:x,code:k})=>nx(y)&&nx(g)&&Q4({start:y,length:g},r)&&k===t&&!!x&&Lt(x,T=>T.code===S.Did_you_forget_to_use_await.code))}function u3t(e,t,r,a,u){let f=d3t(e,u);if(!f)return;let p=f.isCompleteFix,y;for(let g of f.identifiers){let x=u.getSymbolAtLocation(g);if(!x)continue;let k=kr(x.valueDeclaration,Ur),T=k&&kr(k.name,et),A=ck(k,243);if(!k||!A||k.type||!k.initializer||A.getSourceFile()!==t||Ar(A,32)||!T||!Wze(k.initializer)){p=!1;continue}let P=a.getSemanticDiagnostics(t,r);if(ol.Core.eachSymbolReferenceInFile(T,u,t,W=>g!==W&&!f3t(W,P,t,u))){p=!1;continue}(y||(y=[])).push({expression:k.initializer,declarationSymbol:x})}return y&&{initializers:y,needsSecondPassForFixAll:!p}}function d3t(e,t){if(lr(e.parent)&&et(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(et(e))return{identifiers:[e],isCompleteFix:!0};if(Yn(e)){let r,a=!0;for(let u of[e.left,e.right]){let f=t.getTypeAtLocation(u);if(t.getPromisedTypeOfPromise(f)){if(!et(u)){a=!1;continue}(r||(r=[])).push(u)}}return r&&{identifiers:r,isCompleteFix:a}}}function f3t(e,t,r,a){let u=lr(e.parent)?e.parent.name:Yn(e.parent)?e.parent:e,f=St(t,p=>p.start===u.getStart(r)&&p.start+p.length===u.getEnd());return f&&sn(tke,f.code)||a.getTypeAtLocation(u).flags&1}function Wze(e){return e.flags&65536||!!Ri(e,t=>t.parent&&rl(t.parent)&&t.parent.body===t||Ds(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function ike(e,t,r,a,u,f){if(VR(u.parent)&&!u.parent.awaitModifier){let p=a.getTypeAtLocation(u),y=a.getAnyAsyncIterableType();if(y&&a.isTypeAssignableTo(p,y)){let g=u.parent;e.replaceNode(r,g,U.updateForOfStatement(g,U.createToken(135),g.initializer,g.expression,g.statement));return}}if(Yn(u))for(let p of[u.left,u.right]){if(f&&et(p)){let x=a.getSymbolAtLocation(p);if(x&&f.has(Ca(x)))continue}let y=a.getTypeAtLocation(p),g=a.getPromisedTypeOfPromise(y)?U.createAwaitExpression(p):p;e.replaceNode(r,p,g)}else if(t===Fze&&lr(u.parent)){if(f&&et(u.parent.expression)){let p=a.getSymbolAtLocation(u.parent.expression);if(p&&f.has(Ca(p)))return}e.replaceNode(r,u.parent.expression,U.createParenthesizedExpression(U.createAwaitExpression(u.parent.expression))),zze(e,u.parent.expression,r)}else if(sn(Mze,t)&&W0(u.parent)){if(f&&et(u)){let p=a.getSymbolAtLocation(u);if(p&&f.has(Ca(p)))return}e.replaceNode(r,u,U.createParenthesizedExpression(U.createAwaitExpression(u))),zze(e,u,r)}else{if(f&&Ur(u.parent)&&et(u.parent.name)){let p=a.getSymbolAtLocation(u.parent.name);if(p&&!_p(f,Ca(p)))return}e.replaceNode(r,u,U.createAwaitExpression(u))}}function zze(e,t,r){let a=fd(t.pos,r);a&&MJ(a.end,a.parent,r)&&e.insertText(r,t.getStart(r),";")}var nke="addMissingConst",Vze=[S.Cannot_find_name_0.code,S.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];ha({errorCodes:Vze,getCodeActions:function(t){let r=Vn.ChangeTracker.with(t,a=>Hze(a,t.sourceFile,t.span.start,t.program));if(r.length>0)return[Ks(nke,r,S.Add_const_to_unresolved_variable,nke,S.Add_const_to_all_unresolved_variables)]},fixIds:[nke],getAllCodeActions:e=>{let t=new Set;return Ec(e,Vze,(r,a)=>Hze(r,a.file,a.start,e.program,t))}});function Hze(e,t,r,a,u){let f=go(t,r),p=Ri(f,x=>tE(x.parent)?x.parent.initializer===x:_3t(x)?!1:"quit");if(p)return Foe(e,p,t,u);let y=f.parent;if(Yn(y)&&y.operatorToken.kind===64&&Ud(y.parent))return Foe(e,f,t,u);if(yf(y)){let x=a.getTypeChecker();return Et(y.elements,k=>p3t(k,x))?Foe(e,y,t,u):void 0}let g=Ri(f,x=>Ud(x.parent)?!0:m3t(x)?!1:"quit");if(g){let x=a.getTypeChecker();return Uze(g,x)?Foe(e,g,t,u):void 0}}function Foe(e,t,r,a){(!a||_p(a,t))&&e.insertModifierBefore(r,87,t)}function _3t(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function p3t(e,t){let r=et(e)?e:Hd(e,!0)&&et(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function m3t(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function Uze(e,t){return Yn(e)?e.operatorToken.kind===28?Et([e.left,e.right],r=>Uze(r,t)):e.operatorToken.kind===64&&et(e.left)&&!t.getSymbolAtLocation(e.left):!1}var rke="addMissingDeclareProperty",Jze=[S.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];ha({errorCodes:Jze,getCodeActions:function(t){let r=Vn.ChangeTracker.with(t,a=>qze(a,t.sourceFile,t.span.start));if(r.length>0)return[Ks(rke,r,S.Prefix_with_declare,rke,S.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[rke],getAllCodeActions:e=>{let t=new Set;return Ec(e,Jze,(r,a)=>qze(r,a.file,a.start,t))}});function qze(e,t,r,a){let u=go(t,r);if(!et(u))return;let f=u.parent;f.kind===172&&(!a||_p(a,f))&&e.insertModifierBefore(t,138,f)}var oke="addMissingInvocationForDecorator",$ze=[S._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];ha({errorCodes:$ze,getCodeActions:function(t){let r=Vn.ChangeTracker.with(t,a=>Gze(a,t.sourceFile,t.span.start));return[Ks(oke,r,S.Call_decorator_expression,oke,S.Add_to_all_uncalled_decorators)]},fixIds:[oke],getAllCodeActions:e=>Ec(e,$ze,(t,r)=>Gze(t,r.file,r.start))});function Gze(e,t,r){let a=go(t,r),u=Ri(a,Td);B.assert(!!u,"Expected position to be owned by a decorator.");let f=U.createCallExpression(u.expression,void 0,void 0);e.replaceNode(t,u.expression,f)}var ske="addNameToNamelessParameter",Kze=[S.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];ha({errorCodes:Kze,getCodeActions:function(t){let r=Vn.ChangeTracker.with(t,a=>Xze(a,t.sourceFile,t.span.start));return[Ks(ske,r,S.Add_parameter_name,ske,S.Add_names_to_all_parameters_without_names)]},fixIds:[ske],getAllCodeActions:e=>Ec(e,Kze,(t,r)=>Xze(t,r.file,r.start))});function Xze(e,t,r){let a=go(t,r),u=a.parent;if(!To(u))return B.fail("Tried to add a parameter name to a non-parameter: "+B.formatSyntaxKind(a.kind));let f=u.parent.parameters.indexOf(u);B.assert(!u.type,"Tried to add a parameter name to a parameter that already had one."),B.assert(f>-1,"Parameter not found in parent parameter list.");let p=u.name.getEnd(),y=U.createTypeReferenceNode(u.name,void 0),g=Yze(t,u);for(;g;)y=U.createArrayTypeNode(y),p=g.getEnd(),g=Yze(t,g);let x=U.createParameterDeclaration(u.modifiers,u.dotDotDotToken,"arg"+f,u.questionToken,u.dotDotDotToken&&!zR(y)?U.createArrayTypeNode(y):y,u.initializer);e.replaceRange(t,ah(u.getStart(t),p),x)}function Yze(e,t){let r=kT(t.name,t.parent,e);if(r&&r.kind===23&&fS(r.parent)&&To(r.parent.parent))return r.parent.parent}var Qze="addOptionalPropertyUndefined",h3t=[S.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,S.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,S.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];ha({errorCodes:h3t,getCodeActions(e){let t=e.program.getTypeChecker(),r=g3t(e.sourceFile,e.span,t);if(!r.length)return;let a=Vn.ChangeTracker.with(e,u=>v3t(u,r));return[s0(Qze,a,S.Add_undefined_to_optional_property_type)]},fixIds:[Qze]});function g3t(e,t,r){var a,u;let f=Zze(Wre(e,t),r);if(!f)return F;let{source:p,target:y}=f,g=y3t(p,y,r)?r.getTypeAtLocation(y.expression):r.getTypeAtLocation(y);return(u=(a=g.symbol)==null?void 0:a.declarations)!=null&&u.some(x=>en(x).fileName.match(/\.d\.ts$/))?F:r.getExactOptionalProperties(g)}function y3t(e,t,r){return lr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function Zze(e,t){var r;if(e){if(Yn(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Ur(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Gs(e.parent)){let a=t.getSymbolAtLocation(e.parent.expression);if(!a?.valueDeclaration||!RI(a.valueDeclaration.kind)||!Mt(e))return;let u=e.parent.arguments.indexOf(e);if(u===-1)return;let f=a.valueDeclaration.parameters[u].name;if(et(f))return{source:e,target:f}}else if(ed(e.parent)&&et(e.parent.name)||jf(e.parent)){let a=Zze(e.parent.parent,t);if(!a)return;let u=t.getPropertyOfType(t.getTypeAtLocation(a.target),e.parent.name.text),f=(r=u?.declarations)==null?void 0:r[0];return f?{source:ed(e.parent)?e.parent.initializer:e.parent.name,target:f}:void 0}}else return}function v3t(e,t){for(let r of t){let a=r.valueDeclaration;if(a&&(ep(a)||ls(a))&&a.type){let u=U.createUnionTypeNode([...a.type.kind===192?a.type.types:[a.type],U.createTypeReferenceNode("undefined")]);e.replaceNode(a.getSourceFile(),a.type,u)}}}var ake="annotateWithTypeFromJSDoc",eVe=[S.JSDoc_types_may_be_moved_to_TypeScript_types.code];ha({errorCodes:eVe,getCodeActions(e){let t=tVe(e.sourceFile,e.span.start);if(!t)return;let r=Vn.ChangeTracker.with(e,a=>rVe(a,e.sourceFile,t));return[Ks(ake,r,S.Annotate_with_type_from_JSDoc,ake,S.Annotate_everything_with_types_from_JSDoc)]},fixIds:[ake],getAllCodeActions:e=>Ec(e,eVe,(t,r)=>{let a=tVe(r.file,r.start);a&&rVe(t,r.file,a)})});function tVe(e,t){let r=go(e,t);return kr(To(r.parent)?r.parent.parent:r.parent,iVe)}function iVe(e){return b3t(e)&&nVe(e)}function nVe(e){return Oc(e)?e.parameters.some(nVe)||!e.type&&!!lM(e):!e.type&&!!XC(e)}function rVe(e,t,r){if(Oc(r)&&(lM(r)||r.parameters.some(a=>!!XC(a)))){if(!r.typeParameters){let u=yV(r);u.length&&e.insertTypeParameters(t,r,u)}let a=rl(r)&&!Tc(r,21,t);a&&e.insertNodeBefore(t,Ta(r.parameters),U.createToken(21));for(let u of r.parameters)if(!u.type){let f=XC(u);f&&e.tryInsertTypeAnnotation(t,u,pt(f,NT,io))}if(a&&e.insertNodeAfter(t,pa(r.parameters),U.createToken(22)),!r.type){let u=lM(r);u&&e.tryInsertTypeAnnotation(t,r,pt(u,NT,io))}}else{let a=B.checkDefined(XC(r),"A JSDocType for this declaration should exist");B.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,pt(a,NT,io))}}function b3t(e){return Oc(e)||e.kind===260||e.kind===171||e.kind===172}function NT(e){switch(e.kind){case 312:case 313:return U.createTypeReferenceNode("any",F);case 316:return x3t(e);case 315:return NT(e.type);case 314:return C3t(e);case 318:return k3t(e);case 317:return w3t(e);case 183:return E3t(e);case 322:return S3t(e);default:let t=Qi(e,NT,void 0);return Hn(t,1),t}}function S3t(e){let t=U.createTypeLiteralNode(_i(e.jsDocPropertyTags,r=>U.createPropertySignature(void 0,et(r.name)?r.name:r.name.right,IR(r)?U.createToken(58):void 0,r.typeExpression&&pt(r.typeExpression.type,NT,io)||U.createKeywordTypeNode(133))));return Hn(t,1),t}function x3t(e){return U.createUnionTypeNode([pt(e.type,NT,io),U.createTypeReferenceNode("undefined",F)])}function C3t(e){return U.createUnionTypeNode([pt(e.type,NT,io),U.createTypeReferenceNode("null",F)])}function k3t(e){return U.createArrayTypeNode(pt(e.type,NT,io))}function w3t(e){return U.createFunctionTypeNode(F,e.parameters.map(T3t),e.type??U.createKeywordTypeNode(133))}function T3t(e){let t=e.parent.parameters.indexOf(e),r=e.type.kind===318&&t===e.parent.parameters.length-1,a=e.name||(r?"rest":"arg"+t),u=r?U.createToken(26):e.dotDotDotToken;return U.createParameterDeclaration(e.modifiers,u,a,e.questionToken,pt(e.type,NT,io),e.initializer)}function E3t(e){let t=e.typeName,r=e.typeArguments;if(et(e.typeName)){if(Zz(e))return D3t(e);let a=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":a=a.toLowerCase();break;case"array":case"date":case"promise":a=a[0].toUpperCase()+a.slice(1);break}t=U.createIdentifier(a),(a==="Array"||a==="Promise")&&!e.typeArguments?r=U.createNodeArray([U.createTypeReferenceNode("any",F)]):r=mn(e.typeArguments,NT,io)}return U.createTypeReferenceNode(t,r)}function D3t(e){let t=U.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,U.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=U.createTypeLiteralNode([U.createIndexSignature(void 0,[t],e.typeArguments[1])]);return Hn(r,1),r}var cke="convertFunctionToEs6Class",oVe=[S.This_constructor_function_may_be_converted_to_a_class_declaration.code];ha({errorCodes:oVe,getCodeActions(e){let t=Vn.ChangeTracker.with(e,r=>sVe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[Ks(cke,t,S.Convert_function_to_an_ES2015_class,cke,S.Convert_all_constructor_functions_to_classes)]},fixIds:[cke],getAllCodeActions:e=>Ec(e,oVe,(t,r)=>sVe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});function sVe(e,t,r,a,u,f){let p=a.getSymbolAtLocation(go(t,r));if(!p||!p.valueDeclaration||!(p.flags&19))return;let y=p.valueDeclaration;if(xu(y)||Yc(y))e.replaceNode(t,y,k(y));else if(Ur(y)){let T=x(y);if(!T)return;let A=y.parent.parent;ef(y.parent)&&y.parent.declarations.length>1?(e.delete(t,y),e.insertNodeAfter(t,A,T)):e.replaceNode(t,A,T)}function g(T){let A=[];return T.exports&&T.exports.forEach(W=>{if(W.name==="prototype"&&W.declarations){let z=W.declarations[0];if(W.declarations.length===1&&lr(z)&&Yn(z.parent)&&z.parent.operatorToken.kind===64&&ba(z.parent.right)){let q=z.parent.right;R(q.symbol,void 0,A)}}else R(W,[U.createToken(126)],A)}),T.members&&T.members.forEach((W,z)=>{var q,G,$,te;if(z==="constructor"&&W.valueDeclaration){let ne=(te=($=(G=(q=T.exports)==null?void 0:q.get("prototype"))==null?void 0:G.declarations)==null?void 0:$[0])==null?void 0:te.parent;ne&&Yn(ne)&&ba(ne.right)&&Lt(ne.right.properties,Roe)||e.delete(t,W.valueDeclaration.parent);return}R(W,void 0,A)}),A;function P(W,z){return il(W)?lr(W)&&Roe(W)?!0:vs(z):Et(W.properties,q=>!!(pu(q)||dM(q)||ed(q)&&Yc(q.initializer)&&q.name||Roe(q)))}function R(W,z,q){if(!(W.flags&8192)&&!(W.flags&4096))return;let G=W.valueDeclaration,$=G.parent,te=$.right;if(!P(G,te)||Lt(q,Ce=>{let he=cs(Ce);return!!(he&&et(he)&&mr(he)===fu(W))}))return;let ne=$.parent&&$.parent.kind===244?$.parent:$;if(e.delete(t,ne),!te){q.push(U.createPropertyDeclaration(z,W.name,void 0,void 0,void 0));return}if(il(G)&&(Yc(te)||rl(te))){let Ce=mm(t,u),he=I3t(G,f,Ce);he&&_e(q,te,he);return}else if(ba(te)){re(te.properties,Ce=>{(pu(Ce)||dM(Ce))&&q.push(Ce),ed(Ce)&&Yc(Ce.initializer)&&_e(q,Ce.initializer,Ce.name),Roe(Ce)});return}else{if(N_(t)||!lr(G))return;let Ce=U.createPropertyDeclaration(z,G.name,void 0,void 0,te);e6($.parent,Ce,t),q.push(Ce);return}function _e(Ce,he,ue){return Yc(he)?ce(Ce,he,ue):ae(Ce,he,ue)}function ce(Ce,he,ue){let Ee=Fo(z,Moe(he,134)),ve=U.createMethodDeclaration(Ee,void 0,ue,void 0,void 0,he.parameters,void 0,he.body);e6($,ve,t),Ce.push(ve)}function ae(Ce,he,ue){let Ee=he.body,ve;Ee.kind===241?ve=Ee:ve=U.createBlock([U.createReturnStatement(Ee)]);let be=Fo(z,Moe(he,134)),Se=U.createMethodDeclaration(be,void 0,ue,void 0,void 0,he.parameters,void 0,ve);e6($,Se,t),Ce.push(Se)}}}function x(T){let A=T.initializer;if(!A||!Yc(A)||!et(T.name))return;let P=g(T.symbol);A.body&&P.unshift(U.createConstructorDeclaration(void 0,A.parameters,A.body));let R=Moe(T.parent.parent,95);return U.createClassDeclaration(R,T.name,void 0,void 0,P)}function k(T){let A=g(p);T.body&&A.unshift(U.createConstructorDeclaration(void 0,T.parameters,T.body));let P=Moe(T,95);return U.createClassDeclaration(P,T.name,void 0,void 0,A)}}function Moe(e,t){return Kh(e)?Di(e.modifiers,r=>r.kind===t):void 0}function Roe(e){return e.name?!!(et(e.name)&&e.name.text==="constructor"):!1}function I3t(e,t,r){if(lr(e))return e.name;let a=e.argumentExpression;if(Z_(a))return a;if(xc(a))return pp(a.text,Oa(t))?U.createIdentifier(a.text):mE(a)?U.createStringLiteral(a.text,r===0):a}var lke="convertToAsyncFunction",aVe=[S.This_may_be_converted_to_an_async_function.code],Boe=!0;ha({errorCodes:aVe,getCodeActions(e){Boe=!0;let t=Vn.ChangeTracker.with(e,r=>cVe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return Boe?[Ks(lke,t,S.Convert_to_async_function,lke,S.Convert_all_to_async_functions)]:[]},fixIds:[lke],getAllCodeActions:e=>Ec(e,aVe,(t,r)=>cVe(t,r.file,r.start,e.program.getTypeChecker()))});function cVe(e,t,r,a){let u=go(t,r),f;if(et(u)&&Ur(u.parent)&&u.parent.initializer&&Oc(u.parent.initializer)?f=u.parent.initializer:f=kr(_m(go(t,r)),aoe),!f)return;let p=new Map,y=Jn(f),g=A3t(f,a),x=P3t(f,a,p);if(!ooe(x,a))return;let k=x.body&&Ds(x.body)?N3t(x.body,a):F,T={checker:a,synthNamesMap:p,setOfExpressionsToReturn:g,isInJSFile:y};if(!k.length)return;let A=Ea(t.text,X0(f).pos);e.insertModifierAt(t,A,134,{suffix:" "});for(let P of k)if(ws(P,function R(W){if(Gs(W)){let z=s6(W,W,T,!1);if(tA())return!0;e.replaceNodeWithNodes(t,P,z)}else if(!vs(W)&&(ws(W,R),tA()))return!0}),tA())return}function N3t(e,t){let r=[];return tS(e,a=>{XJ(a,t)&&r.push(a)}),r}function A3t(e,t){if(!e.body)return new Set;let r=new Set;return ws(e.body,function a(u){g9(u,t,"then")?(r.add(ac(u)),re(u.arguments,a)):g9(u,t,"catch")||g9(u,t,"finally")?(r.add(ac(u)),ws(u,a)):uVe(u,t)?r.add(ac(u)):ws(u,a)}),r}function g9(e,t,r){if(!Gs(e))return!1;let u=B5(e,r)&&t.getTypeAtLocation(e);return!!(u&&t.getPromisedTypeOfPromise(u))}function lVe(e,t){return(_r(e)&4)!==0&&e.target===t}function joe(e,t,r){if(e.expression.name.escapedText==="finally")return;let a=r.getTypeAtLocation(e.expression.expression);if(lVe(a,r.getPromiseType())||lVe(a,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Wg(e.arguments,0))return Wg(e.typeArguments,0);if(t===Wg(e.arguments,1))return Wg(e.typeArguments,1)}else return Wg(e.typeArguments,0)}function uVe(e,t){return Mt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function P3t(e,t,r){let a=new Map,u=Dm();return ws(e,function f(p){if(!et(p)){ws(p,f);return}let y=t.getSymbolAtLocation(p);if(y){let g=t.getTypeAtLocation(p),x=hVe(g,t),k=Ca(y).toString();if(x&&!To(p.parent)&&!Oc(p.parent)&&!r.has(k)){let T=mc(x.parameters),A=T?.valueDeclaration&&To(T.valueDeclaration)&&kr(T.valueDeclaration.name,et)||U.createUniqueName("result",16),P=dVe(A,u);r.set(k,P),u.add(A.text,y)}else if(p.parent&&(To(p.parent)||Ur(p.parent)||Wa(p.parent))){let T=p.text,A=u.get(T);if(A&&A.some(P=>P!==y)){let P=dVe(p,u);a.set(k,P.identifier),r.set(k,P),u.add(T,y)}else{let P=_c(p);r.set(k,M8(P)),u.add(T,y)}}}}),Y5(e,!0,f=>{if(Wa(f)&&et(f.name)&&Om(f.parent)){let p=t.getSymbolAtLocation(f.name),y=p&&a.get(String(Ca(p)));if(y&&y.text!==(f.name||f.propertyName).getText())return U.createBindingElement(f.dotDotDotToken,f.propertyName||f.name,y,f.initializer)}else if(et(f)){let p=t.getSymbolAtLocation(f),y=p&&a.get(String(Ca(p)));if(y)return U.createIdentifier(y.text)}})}function dVe(e,t){let r=(t.get(e.text)||F).length,a=r===0?e:U.createIdentifier(e.text+"_"+r);return M8(a)}function tA(){return!Boe}function Pk(){return Boe=!1,F}function s6(e,t,r,a,u){if(g9(t,r.checker,"then"))return F3t(t,Wg(t.arguments,0),Wg(t.arguments,1),r,a,u);if(g9(t,r.checker,"catch"))return pVe(t,Wg(t.arguments,0),r,a,u);if(g9(t,r.checker,"finally"))return O3t(t,Wg(t.arguments,0),r,a,u);if(lr(t))return s6(e,t.expression,r,a,u);let f=r.checker.getTypeAtLocation(t);return f&&r.checker.getPromisedTypeOfPromise(f)?(B.assertNode(El(t).parent,lr),M3t(e,t,r,a,u)):Pk()}function Woe({checker:e},t){if(t.kind===106)return!0;if(et(t)&&!yl(t)&&mr(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function L3t(e){let t=U.createUniqueName(e.identifier.text,16);return M8(t)}function fVe(e,t,r){let a;return r&&!v9(e,t)&&(y9(r)?(a=r,t.synthNamesMap.forEach((u,f)=>{if(u.identifier.text===r.identifier.text){let p=L3t(r);t.synthNamesMap.set(f,p)}})):a=M8(U.createUniqueName("result",16),r.types),_ke(a)),a}function _Ve(e,t,r,a,u){let f=[],p;if(a&&!v9(e,t)){p=_c(_ke(a));let y=a.types,g=t.checker.getUnionType(y,2),x=t.isInJSFile?void 0:t.checker.typeToTypeNode(g,void 0,void 0),k=[U.createVariableDeclaration(p,void 0,x)],T=U.createVariableStatement(void 0,U.createVariableDeclarationList(k,1));f.push(T)}return f.push(r),u&&p&&j3t(u)&&f.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(_c(bVe(u)),void 0,void 0,p)],2))),f}function O3t(e,t,r,a,u){if(!t||Woe(r,t))return s6(e,e.expression.expression,r,a,u);let f=fVe(e,r,u),p=s6(e,e.expression.expression,r,!0,f);if(tA())return Pk();let y=dke(t,a,void 0,void 0,e,r);if(tA())return Pk();let g=U.createBlock(p),x=U.createBlock(y),k=U.createTryStatement(g,void 0,x);return _Ve(e,r,k,f,u)}function pVe(e,t,r,a,u){if(!t||Woe(r,t))return s6(e,e.expression.expression,r,a,u);let f=yVe(t,r),p=fVe(e,r,u),y=s6(e,e.expression.expression,r,!0,p);if(tA())return Pk();let g=dke(t,a,p,f,e,r);if(tA())return Pk();let x=U.createBlock(y),k=U.createCatchClause(f&&_c(_q(f)),U.createBlock(g)),T=U.createTryStatement(x,k,void 0);return _Ve(e,r,T,p,u)}function F3t(e,t,r,a,u,f){if(!t||Woe(a,t))return pVe(e,r,a,u,f);if(r&&!Woe(a,r))return Pk();let p=yVe(t,a),y=s6(e.expression.expression,e.expression.expression,a,!0,p);if(tA())return Pk();let g=dke(t,u,f,p,e,a);return tA()?Pk():Fo(y,g)}function M3t(e,t,r,a,u){if(v9(e,r)){let f=_c(t);return a&&(f=U.createAwaitExpression(f)),[U.createReturnStatement(f)]}return zoe(u,U.createAwaitExpression(t),void 0)}function zoe(e,t,r){return!e||vVe(e)?[U.createExpressionStatement(t)]:y9(e)&&e.hasBeenDeclared?[U.createExpressionStatement(U.createAssignment(_c(fke(e)),t))]:[U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(_c(_q(e)),void 0,r,t)],2))]}function uke(e,t){if(t&&e){let r=U.createUniqueName("result",16);return[...zoe(M8(r),e,t),U.createReturnStatement(r)]}return[U.createReturnStatement(e)]}function dke(e,t,r,a,u,f){var p;switch(e.kind){case 106:break;case 211:case 80:if(!a)break;let y=U.createCallExpression(_c(e),void 0,y9(a)?[fke(a)]:[]);if(v9(u,f))return uke(y,joe(u,e,f.checker));let g=f.checker.getTypeAtLocation(e),x=f.checker.getSignaturesOfType(g,0);if(!x.length)return Pk();let k=x[0].getReturnType(),T=zoe(r,U.createAwaitExpression(y),joe(u,e,f.checker));return r&&r.types.push(f.checker.getAwaitedType(k)||k),T;case 218:case 219:{let A=e.body,P=(p=hVe(f.checker.getTypeAtLocation(e),f.checker))==null?void 0:p.getReturnType();if(Ds(A)){let R=[],W=!1;for(let z of A.statements)if(qh(z))if(W=!0,XJ(z,f.checker))R=R.concat(gVe(f,z,t,r));else{let q=P&&z.expression?mVe(f.checker,P,z.expression):z.expression;R.push(...uke(q,joe(u,e,f.checker)))}else{if(t&&tS(z,UC))return Pk();R.push(z)}return v9(u,f)?R.map(z=>_c(z)):R3t(R,r,f,W)}else{let R=soe(A,f.checker)?gVe(f,U.createReturnStatement(A),t,r):F;if(R.length>0)return R;if(P){let W=mVe(f.checker,P,A);if(v9(u,f))return uke(W,joe(u,e,f.checker));{let z=zoe(r,W,void 0);return r&&r.types.push(f.checker.getAwaitedType(P)||P),z}}else return Pk()}}default:return Pk()}return F}function mVe(e,t,r){let a=_c(r);return e.getPromisedTypeOfPromise(t)?U.createAwaitExpression(a):a}function hVe(e,t){let r=t.getSignaturesOfType(e,0);return Lc(r)}function R3t(e,t,r,a){let u=[];for(let f of e)if(qh(f)){if(f.expression){let p=uVe(f.expression,r.checker)?U.createAwaitExpression(f.expression):f.expression;t===void 0?u.push(U.createExpressionStatement(p)):y9(t)&&t.hasBeenDeclared?u.push(U.createExpressionStatement(U.createAssignment(fke(t),p))):u.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(_q(t),void 0,void 0,p)],2)))}}else u.push(_c(f));return!a&&t!==void 0&&u.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(_q(t),void 0,void 0,U.createIdentifier("undefined"))],2))),u}function gVe(e,t,r,a){let u=[];return ws(t,function f(p){if(Gs(p)){let y=s6(p,p,e,r,a);if(u=u.concat(y),u.length>0)return}else vs(p)||ws(p,f)}),u}function yVe(e,t){let r=[],a;if(Oc(e)){if(e.parameters.length>0){let g=e.parameters[0].name;a=u(g)}}else et(e)?a=f(e):lr(e)&&et(e.name)&&(a=f(e.name));if(!a||"identifier"in a&&a.identifier.text==="undefined")return;return a;function u(g){if(et(g))return f(g);let x=vo(g.elements,k=>Ed(k)?[]:[u(k.name)]);return B3t(g,x)}function f(g){let x=y(g),k=p(x);return k&&t.synthNamesMap.get(Ca(k).toString())||M8(g,r)}function p(g){var x;return((x=kr(g,$g))==null?void 0:x.symbol)??t.checker.getSymbolAtLocation(g)}function y(g){return g.original?g.original:g}}function vVe(e){return e?y9(e)?!e.identifier.text:Et(e.elements,vVe):!0}function M8(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function B3t(e,t=F,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function fke(e){return e.hasBeenReferenced=!0,e.identifier}function _q(e){return y9(e)?_ke(e):bVe(e)}function bVe(e){for(let t of e.elements)_q(t);return e.bindingPattern}function _ke(e){return e.hasBeenDeclared=!0,e.identifier}function y9(e){return e.kind===0}function j3t(e){return e.kind===1}function v9(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(ac(e.original))}ha({errorCodes:[S.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:r,preferences:a}=e,u=Vn.ChangeTracker.with(e,f=>{if(z3t(t,r.getTypeChecker(),f,Oa(r.getCompilerOptions()),mm(t,a)))for(let y of r.getSourceFiles())W3t(y,t,r,f,mm(y,a))});return[s0("convertToEsModule",u,S.Convert_to_ES_module)]}});function W3t(e,t,r,a,u){var f;for(let p of e.imports){let y=(f=r.getResolvedModuleFromModuleSpecifier(p,e))==null?void 0:f.resolvedModule;if(!y||y.resolvedFileName!==t.fileName)continue;let g=K3(p);switch(g.kind){case 271:a.replaceNode(e,g,Wx(g.name,void 0,p,u));break;case 213:Y_(g,!1)&&a.replaceNode(e,g,U.createPropertyAccessExpression(_c(g),"default"));break}}}function z3t(e,t,r,a,u){let f={original:eOt(e),additional:new Set},p=V3t(e,t,f);H3t(e,p,r);let y=!1,g;for(let x of Di(e.statements,mu)){let k=xVe(e,x,r,t,f,a,u);k&&Tz(k,g??(g=new Map))}for(let x of Di(e.statements,k=>!mu(k))){let k=U3t(e,x,t,r,f,a,p,g,u);y=y||k}return g?.forEach((x,k)=>{r.replaceNode(e,k,x)}),y}function V3t(e,t,r){let a=new Map;return SVe(e,u=>{let{text:f}=u.name;!a.has(f)&&(CZ(u.name)||t.resolveName(f,u,111551,!0))&&a.set(f,Voe(`_${f}`,r))}),a}function H3t(e,t,r){SVe(e,(a,u)=>{if(u)return;let{text:f}=a.name;r.replaceNode(e,a,U.createIdentifier(t.get(f)||f))})}function SVe(e,t){e.forEachChild(function r(a){if(lr(a)&&gT(e,a.expression)&&et(a.name)){let{parent:u}=a;t(a,Yn(u)&&u.left===a&&u.operatorToken.kind===64)}a.forEachChild(r)})}function U3t(e,t,r,a,u,f,p,y,g){switch(t.kind){case 243:return xVe(e,t,a,r,u,f,g),!1;case 244:{let{expression:x}=t;switch(x.kind){case 213:return Y_(x,!0)&&a.replaceNode(e,t,Wx(void 0,void 0,x.arguments[0],g)),!1;case 226:{let{operatorToken:k}=x;return k.kind===64&&q3t(e,r,x,a,p,y)}}}default:return!1}}function xVe(e,t,r,a,u,f,p){let{declarationList:y}=t,g=!1,x=_i(y.declarations,k=>{let{name:T,initializer:A}=k;if(A){if(gT(e,A))return g=!0,R8([]);if(Y_(A,!0))return g=!0,Q3t(T,A.arguments[0],a,u,f,p);if(lr(A)&&Y_(A.expression,!0))return g=!0,J3t(T,A.name.text,A.expression.arguments[0],u,p)}return R8([U.createVariableStatement(void 0,U.createVariableDeclarationList([k],y.flags))])});if(g){r.replaceNodeWithNodes(e,t,vo(x,T=>T.newImports));let k;return re(x,T=>{T.useSitesToUnqualify&&Tz(T.useSitesToUnqualify,k??(k=new Map))}),k}}function J3t(e,t,r,a,u){switch(e.kind){case 206:case 207:{let f=Voe(t,a);return R8([TVe(f,t,r,u),Hoe(void 0,e,U.createIdentifier(f))])}case 80:return R8([TVe(e.text,t,r,u)]);default:return B.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function q3t(e,t,r,a,u,f){let{left:p,right:y}=r;if(!lr(p))return!1;if(gT(e,p))if(gT(e,y))a.delete(e,r.parent);else{let g=ba(y)?$3t(y,f):Y_(y,!0)?K3t(y.arguments[0],t):void 0;return g?(a.replaceNodeWithNodes(e,r.parent,g[0]),g[1]):(a.replaceRangeWithText(e,ah(p.getStart(e),y.pos),"export default"),!0)}else gT(e,p.expression)&&G3t(e,r,a,u);return!1}function $3t(e,t){let r=Hb(e.properties,a=>{switch(a.kind){case 177:case 178:case 304:case 305:return;case 303:return et(a.name)?Y3t(a.name.text,a.initializer,t):void 0;case 174:return et(a.name)?wVe(a.name.text,[U.createToken(95)],a,t):void 0;default:B.assertNever(a,`Convert to ES6 got invalid prop kind ${a.kind}`)}});return r&&[r,!1]}function G3t(e,t,r,a){let{text:u}=t.left.name,f=a.get(u);if(f!==void 0){let p=[Hoe(void 0,f,t.right),hke([U.createExportSpecifier(!1,f,u)])];r.replaceNodeWithNodes(e,t.parent,p)}else X3t(t,e,r)}function K3t(e,t){let r=e.text,a=t.getSymbolAtLocation(e),u=a?a.exports:X;return u.has("export=")?[[pke(r)],!0]:u.has("default")?u.size>1?[[CVe(r),pke(r)],!0]:[[pke(r)],!0]:[[CVe(r)],!1]}function CVe(e){return hke(void 0,e)}function pke(e){return hke([U.createExportSpecifier(!1,void 0,"default")],e)}function X3t({left:e,right:t,parent:r},a,u){let f=e.name.text;if((Yc(t)||rl(t)||Qu(t))&&(!t.name||t.name.text===f)){u.replaceRange(a,{pos:e.getStart(a),end:t.getStart(a)},U.createToken(95),{suffix:" "}),t.name||u.insertName(a,t,f);let p=Tc(r,27,a);p&&u.delete(a,p)}else u.replaceNodeRangeWithNodes(a,e.expression,Tc(e,25,a),[U.createToken(95),U.createToken(87)],{joiner:" ",suffix:" "})}function Y3t(e,t,r){let a=[U.createToken(95)];switch(t.kind){case 218:{let{name:f}=t;if(f&&f.text!==e)return u()}case 219:return wVe(e,a,t,r);case 231:return iOt(e,a,t,r);default:return u()}function u(){return Hoe(a,U.createIdentifier(e),mke(t,r))}}function mke(e,t){if(!t||!Lt(as(t.keys()),a=>Xp(e,a)))return e;return ds(e)?Pre(e,!0,r):Y5(e,!0,r);function r(a){if(a.kind===211){let u=t.get(a);return t.delete(a),u}}}function Q3t(e,t,r,a,u,f){switch(e.kind){case 206:{let p=Hb(e.elements,y=>y.dotDotDotToken||y.initializer||y.propertyName&&!et(y.propertyName)||!et(y.name)?void 0:EVe(y.propertyName&&y.propertyName.text,y.name.text));if(p)return R8([Wx(void 0,p,t,f)])}case 207:{let p=Voe(r9(t.text,u),a);return R8([Wx(U.createIdentifier(p),void 0,t,f),Hoe(void 0,_c(e),U.createIdentifier(p))])}case 80:return Z3t(e,t,r,a,f);default:return B.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function Z3t(e,t,r,a,u){let f=r.getSymbolAtLocation(e),p=new Map,y=!1,g;for(let k of a.original.get(e.text)){if(r.getSymbolAtLocation(k)!==f||k===e)continue;let{parent:T}=k;if(lr(T)){let{name:{text:A}}=T;if(A==="default"){y=!0;let P=k.getText();(g??(g=new Map)).set(T,U.createIdentifier(P))}else{B.assert(T.expression===k,"Didn't expect expression === use");let P=p.get(A);P===void 0&&(P=Voe(A,a),p.set(A,P)),(g??(g=new Map)).set(T,U.createIdentifier(P))}}else y=!0}let x=p.size===0?void 0:as(wc(p.entries(),([k,T])=>U.createImportSpecifier(!1,k===T?void 0:U.createIdentifier(k),U.createIdentifier(T))));return x||(y=!0),R8([Wx(y?_c(e):void 0,x,t,u)],g)}function Voe(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function eOt(e){let t=Dm();return kVe(e,r=>t.add(r.text,r)),t}function kVe(e,t){et(e)&&tOt(e)&&t(e),e.forEachChild(r=>kVe(r,t))}function tOt(e){let{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function wVe(e,t,r,a){return U.createFunctionDeclaration(Fo(t,wT(r.modifiers)),_c(r.asteriskToken),e,wT(r.typeParameters),wT(r.parameters),_c(r.type),U.converters.convertToFunctionBlock(mke(r.body,a)))}function iOt(e,t,r,a){return U.createClassDeclaration(Fo(t,wT(r.modifiers)),e,wT(r.typeParameters),wT(r.heritageClauses),mke(r.members,a))}function TVe(e,t,r,a){return t==="default"?Wx(U.createIdentifier(e),void 0,r,a):Wx(void 0,[EVe(t,e)],r,a)}function EVe(e,t){return U.createImportSpecifier(!1,e!==void 0&&e!==t?U.createIdentifier(e):void 0,U.createIdentifier(t))}function Hoe(e,t,r){return U.createVariableStatement(e,U.createVariableDeclarationList([U.createVariableDeclaration(t,void 0,void 0,r)],2))}function hke(e,t){return U.createExportDeclaration(void 0,!1,e&&U.createNamedExports(e),t===void 0?void 0:U.createStringLiteral(t))}function R8(e,t){return{newImports:e,useSitesToUnqualify:t}}var gke="correctQualifiedNameToIndexedAccessType",DVe=[S.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];ha({errorCodes:DVe,getCodeActions(e){let t=IVe(e.sourceFile,e.span.start);if(!t)return;let r=Vn.ChangeTracker.with(e,u=>NVe(u,e.sourceFile,t)),a=`${t.left.text}["${t.right.text}"]`;return[Ks(gke,r,[S.Rewrite_as_the_indexed_access_type_0,a],gke,S.Rewrite_all_as_indexed_access_types)]},fixIds:[gke],getAllCodeActions:e=>Ec(e,DVe,(t,r)=>{let a=IVe(r.file,r.start);a&&NVe(t,r.file,a)})});function IVe(e,t){let r=Ri(go(e,t),P_);return B.assert(!!r,"Expected position to be owned by a qualified name."),et(r.left)?r:void 0}function NVe(e,t,r){let a=r.right.text,u=U.createIndexedAccessTypeNode(U.createTypeReferenceNode(r.left,void 0),U.createLiteralTypeNode(U.createStringLiteral(a)));e.replaceNode(t,r,u)}var yke=[S.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],vke="convertToTypeOnlyExport";ha({errorCodes:yke,getCodeActions:function(t){let r=Vn.ChangeTracker.with(t,a=>PVe(a,AVe(t.span,t.sourceFile),t));if(r.length)return[Ks(vke,r,S.Convert_to_type_only_export,vke,S.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[vke],getAllCodeActions:function(t){let r=new Map;return Ec(t,yke,(a,u)=>{let f=AVe(u,t.sourceFile);f&&Uh(r,ac(f.parent.parent))&&PVe(a,f,t)})}});function AVe(e,t){return kr(go(t,e.start).parent,Gf)}function PVe(e,t,r){if(!t)return;let a=t.parent,u=a.parent,f=nOt(t,r);if(f.length===a.elements.length)e.insertModifierBefore(r.sourceFile,156,a);else{let p=U.updateExportDeclaration(u,u.modifiers,!1,U.updateNamedExports(a,Di(a.elements,g=>!sn(f,g))),u.moduleSpecifier,void 0),y=U.createExportDeclaration(void 0,!0,U.createNamedExports(f),u.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,u,p,{leadingTriviaOption:Vn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Vn.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,u,y)}}function nOt(e,t){let r=e.parent;if(r.elements.length===1)return r.elements;let a=sxe(B_(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Di(r.elements,u=>{var f;return u===e||((f=oxe(u,a))==null?void 0:f.code)===yke[0]})}var LVe=[S._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,S._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],Uoe="convertToTypeOnlyImport";ha({errorCodes:LVe,getCodeActions:function(t){var r;let a=OVe(t.sourceFile,t.span.start);if(a){let u=Vn.ChangeTracker.with(t,y=>pq(y,t.sourceFile,a)),f=a.kind===276&&ql(a.parent.parent.parent)&&FVe(a,t.sourceFile,t.program)?Vn.ChangeTracker.with(t,y=>pq(y,t.sourceFile,a.parent.parent.parent)):void 0,p=Ks(Uoe,u,a.kind===276?[S.Use_type_0,((r=a.propertyName)==null?void 0:r.text)??a.name.text]:S.Use_import_type,Uoe,S.Fix_all_with_type_only_imports);return Lt(f)?[s0(Uoe,f,S.Use_import_type),p]:[p]}},fixIds:[Uoe],getAllCodeActions:function(t){let r=new Set;return Ec(t,LVe,(a,u)=>{let f=OVe(u.file,u.start);f?.kind===272&&!r.has(f)?(pq(a,u.file,f),r.add(f)):f?.kind===276&&ql(f.parent.parent.parent)&&!r.has(f.parent.parent.parent)&&FVe(f,u.file,t.program)?(pq(a,u.file,f.parent.parent.parent),r.add(f.parent.parent.parent)):f?.kind===276&&pq(a,u.file,f)})}});function OVe(e,t){let{parent:r}=go(e,t);return F_(r)||ql(r)&&r.importClause?r:void 0}function FVe(e,t,r){if(e.parent.parent.name)return!1;let a=e.parent.elements.filter(f=>!f.isTypeOnly);if(a.length===1)return!0;let u=r.getTypeChecker();for(let f of a)if(ol.Core.eachSymbolReferenceInFile(f.name,u,t,y=>{let g=u.getSymbolAtLocation(y);return!!g&&u.symbolIsValue(g)||!dk(y)}))return!1;return!0}function pq(e,t,r){var a;if(F_(r))e.replaceNode(t,r,U.updateImportSpecifier(r,!0,r.propertyName,r.name));else{let u=r.importClause;if(u.name&&u.namedBindings)e.replaceNodeWithNodes(t,r,[U.createImportDeclaration(wT(r.modifiers,!0),U.createImportClause(!0,_c(u.name,!0),void 0),_c(r.moduleSpecifier,!0),_c(r.attributes,!0)),U.createImportDeclaration(wT(r.modifiers,!0),U.createImportClause(!0,void 0,_c(u.namedBindings,!0)),_c(r.moduleSpecifier,!0),_c(r.attributes,!0))]);else{let f=((a=u.namedBindings)==null?void 0:a.kind)===275?U.updateNamedImports(u.namedBindings,Uo(u.namedBindings.elements,y=>U.updateImportSpecifier(y,!1,y.propertyName,y.name))):u.namedBindings,p=U.updateImportDeclaration(r,r.modifiers,U.updateImportClause(u,!0,u.name,f),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,p)}}}var bke="convertTypedefToType",MVe=[S.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];ha({fixIds:[bke],errorCodes:MVe,getCodeActions(e){let t=cb(e.host,e.formatContext.options),r=go(e.sourceFile,e.span.start);if(!r)return;let a=Vn.ChangeTracker.with(e,u=>RVe(u,r,e.sourceFile,t));if(a.length>0)return[Ks(bke,a,S.Convert_typedef_to_TypeScript_type,bke,S.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Ec(e,MVe,(t,r)=>{let a=cb(e.host,e.formatContext.options),u=go(r.file,r.start);u&&RVe(t,u,r.file,a,!0)})});function RVe(e,t,r,a,u=!1){if(!kE(t))return;let f=oOt(t);if(!f)return;let p=t.parent,{leftSibling:y,rightSibling:g}=rOt(t),x=p.getStart(),k="";!y&&p.comment&&(x=BVe(p,p.getStart(),t.getStart()),k=`${a} */${a}`),y&&(u&&kE(y)?(x=t.getStart(),k=""):(x=BVe(p,y.getStart(),t.getStart()),k=`${a} */${a}`));let T=p.getEnd(),A="";g&&(u&&kE(g)?(T=g.getStart(),A=`${a}${a}`):(T=g.getStart(),A=`${a}/**${a} * `)),e.replaceRange(r,{pos:x,end:T},f,{prefix:k,suffix:A})}function rOt(e){let t=e.parent,r=t.getChildCount()-1,a=t.getChildren().findIndex(p=>p.getStart()===e.getStart()&&p.getEnd()===e.getEnd()),u=a>0?t.getChildAt(a-1):void 0,f=a0;u--)if(!/[*/\s]/.test(a.substring(u-1,u)))return t+u;return r}function oOt(e){var t;let{typeExpression:r}=e;if(!r)return;let a=(t=e.name)==null?void 0:t.getText();if(a){if(r.kind===322)return sOt(a,r);if(r.kind===309)return aOt(a,r)}}function sOt(e,t){let r=jVe(t);if(Lt(r))return U.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function aOt(e,t){let r=_c(t.type);if(r)return U.createTypeAliasDeclaration(void 0,U.createIdentifier(e),void 0,r)}function jVe(e){let t=e.jsDocPropertyTags;return Lt(t)?ro(t,a=>{var u;let f=cOt(a),p=(u=a.typeExpression)==null?void 0:u.type,y=a.isBracketed,g;if(p&&CE(p)){let x=jVe(p);g=U.createTypeLiteralNode(x)}else p&&(g=_c(p));if(g&&f){let x=y?U.createToken(58):void 0;return U.createPropertySignature(void 0,f,x,g)}}):void 0}function cOt(e){return e.name.kind===80?e.name.text:e.name.right.text}function lOt(e){return dm(e)?vo(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(a=>kE(a))}):[]}var Ske="convertLiteralTypeToMappedType",WVe=[S._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];ha({errorCodes:WVe,getCodeActions:function(t){let{sourceFile:r,span:a}=t,u=zVe(r,a.start);if(!u)return;let{name:f,constraint:p}=u,y=Vn.ChangeTracker.with(t,g=>VVe(g,r,u));return[Ks(Ske,y,[S.Convert_0_to_1_in_0,p,f],Ske,S.Convert_all_type_literals_to_mapped_type)]},fixIds:[Ske],getAllCodeActions:e=>Ec(e,WVe,(t,r)=>{let a=zVe(r.file,r.start);a&&VVe(t,r.file,a)})});function zVe(e,t){let r=go(e,t);if(et(r)){let a=ea(r.parent.parent,ep),u=r.getText(e);return{container:ea(a.parent,L_),typeNode:a.type,constraint:u,name:u==="K"?"P":"K"}}}function VVe(e,t,{container:r,typeNode:a,constraint:u,name:f}){e.replaceNode(t,r,U.createMappedTypeNode(void 0,U.createTypeParameterDeclaration(void 0,f,U.createTypeReferenceNode(u)),void 0,void 0,a,void 0))}var HVe=[S.Class_0_incorrectly_implements_interface_1.code,S.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],xke="fixClassIncorrectlyImplementsInterface";ha({errorCodes:HVe,getCodeActions(e){let{sourceFile:t,span:r}=e,a=UVe(t,r.start);return ro(e4(a),u=>{let f=Vn.ChangeTracker.with(e,p=>qVe(e,u,t,a,p,e.preferences));return f.length===0?void 0:Ks(xke,f,[S.Implement_interface_0,u.getText(t)],xke,S.Implement_all_unimplemented_interfaces)})},fixIds:[xke],getAllCodeActions(e){let t=new Map;return Ec(e,HVe,(r,a)=>{let u=UVe(a.file,a.start);if(Uh(t,ac(u)))for(let f of e4(u))qVe(e,f,a.file,u,r,e.preferences)})}});function UVe(e,t){return B.checkDefined(Zd(go(e,t)),"There should be a containing class")}function JVe(e){return!e.valueDeclaration||!(__(e.valueDeclaration)&2)}function qVe(e,t,r,a,u,f){let p=e.program.getTypeChecker(),y=uOt(a,p),g=p.getTypeAtLocation(t),k=p.getPropertiesOfType(g).filter(zW(JVe,z=>!y.has(z.escapedName))),T=p.getTypeAtLocation(a),A=St(a.members,z=>Ol(z));T.getNumberIndexType()||R(g,1),T.getStringIndexType()||R(g,0);let P=AT(r,e.program,f,e.host);pwe(a,k,r,e,f,P,z=>W(r,a,z)),P.writeFixes(u);function R(z,q){let G=p.getIndexInfoOfType(z,q);G&&W(r,a,p.indexInfoToIndexSignatureDeclaration(G,a,void 0,void 0,a6(e)))}function W(z,q,G){A?u.insertNodeAfter(z,A,G):u.insertMemberAtStart(z,q,G)}}function uOt(e,t){let r=J0(e);if(!r)return ta();let a=t.getTypeAtLocation(r),u=t.getPropertiesOfType(a);return ta(u.filter(JVe))}var $Ve="import",GVe="fixMissingImport",KVe=[S.Cannot_find_name_0.code,S.Cannot_find_name_0_Did_you_mean_1.code,S.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,S.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,S.Cannot_find_namespace_0.code,S._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,S._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,S.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,S._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,S.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,S.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,S.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,S.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.code,S.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,S.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.code,S.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.code,S.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,S.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.code,S.Cannot_find_namespace_0_Did_you_mean_1.code];ha({errorCodes:KVe,getCodeActions(e){let{errorCode:t,preferences:r,sourceFile:a,span:u,program:f}=e,p=iHe(e,t,u.start,!0);if(p)return p.map(({fix:y,symbolName:g,errorIdentifierText:x})=>kke(e,a,g,y,g!==x,f,r))},fixIds:[GVe],getAllCodeActions:e=>{let{sourceFile:t,program:r,preferences:a,host:u,cancellationToken:f}=e,p=XVe(t,r,!0,a,u,f);return eA(e,KVe,y=>p.addImportFromDiagnostic(y,e)),ZN(Vn.ChangeTracker.with(e,p.writeFixes))}});function AT(e,t,r,a,u){return XVe(e,t,!1,r,a,u)}function XVe(e,t,r,a,u,f){let p=t.getCompilerOptions(),y=[],g=[],x=new Map,k=new Set,T=new Set,A=new Map;return{addImportFromDiagnostic:W,addImportFromExportedSymbol:z,writeFixes:te,hasFixes:_e,addImportForUnresolvedIdentifier:R,addImportForNonExistentExport:q,removeExistingImport:G,addVerbatimImport:P};function P(ce){T.add(ce)}function R(ce,ae,Ce){let he=SOt(ce,ae,Ce);!he||!he.length||$(Ta(he))}function W(ce,ae){let Ce=iHe(ae,ce.code,ce.start,r);!Ce||!Ce.length||$(Ta(Ce))}function z(ce,ae,Ce){var he,ue;let Ee=B.checkDefined(ce.parent),ve=zJ(ce,Oa(p)),be=t.getTypeChecker(),Se=be.getMergedSymbol(hf(ce,be)),Re=ZVe(e,Se,ve,Ee,!1,t,u,a,f);if(!Re){B.assert((he=a.autoImportFileExcludePatterns)==null?void 0:he.length);return}let ie=hq(e,t),ke=YVe(e,Re,t,void 0,!!ae,ie,u,a);if(ke){let De=((ue=kr(Ce?.name,et))==null?void 0:ue.text)??ve;Ce&&O3(Ce)&&(ke.kind===3||ke.kind===2)&&ke.addAsTypeOnly===1&&(ke={...ke,addAsTypeOnly:2}),$({fix:ke,symbolName:De??ve,errorIdentifierText:void 0})}}function q(ce,ae,Ce,he,ue){let Ee=t.getSourceFile(ae),ve=hq(e,t);if(Ee&&Ee.symbol){let{fixes:be}=mq([{exportKind:Ce,isFromPackageJson:!1,moduleFileName:ae,moduleSymbol:Ee.symbol,targetFlags:he}],void 0,ue,ve,t,e,u,a);be.length&&$({fix:be[0],symbolName:ce,errorIdentifierText:ce})}else{let be=qJ(ae,99,t,u),Se=pS.getLocalModuleSpecifierBetweenFileNames(e,ae,p,$N(t,u),a),Re=qoe(be,Ce,t),ie=Joe(ue,!0,void 0,he,t.getTypeChecker(),p);$({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:Se,importKind:Re,addAsTypeOnly:ie,useRequire:ve},symbolName:ce,errorIdentifierText:ce})}}function G(ce){ce.kind===273&&B.assertIsDefined(ce.name,"ImportClause should have a name if it's being removed"),k.add(ce)}function $(ce){var ae,Ce;let{fix:he,symbolName:ue}=ce;switch(he.kind){case 0:y.push(he);break;case 1:g.push(he);break;case 2:{let{importClauseOrBindingPattern:Se,importKind:Re,addAsTypeOnly:ie}=he,ke=x.get(Se);if(ke||x.set(Se,ke={importClauseOrBindingPattern:Se,defaultImport:void 0,namedImports:new Map}),Re===0){let De=ke?.namedImports.get(ue);ke.namedImports.set(ue,Ee(De,ie))}else B.assert(ke.defaultImport===void 0||ke.defaultImport.name===ue,"(Add to Existing) Default import should be missing or match symbolName"),ke.defaultImport={name:ue,addAsTypeOnly:Ee((ae=ke.defaultImport)==null?void 0:ae.addAsTypeOnly,ie)};break}case 3:{let{moduleSpecifier:Se,importKind:Re,useRequire:ie,addAsTypeOnly:ke}=he,De=ve(Se,Re,ie,ke);switch(B.assert(De.useRequire===ie,"(Add new) Tried to add an `import` and a `require` for the same module"),Re){case 1:B.assert(De.defaultImport===void 0||De.defaultImport.name===ue,"(Add new) Default import should be missing or match symbolName"),De.defaultImport={name:ue,addAsTypeOnly:Ee((Ce=De.defaultImport)==null?void 0:Ce.addAsTypeOnly,ke)};break;case 0:let Oe=(De.namedImports||(De.namedImports=new Map)).get(ue);De.namedImports.set(ue,Ee(Oe,ke));break;case 3:if(p.verbatimModuleSyntax){let we=(De.namedImports||(De.namedImports=new Map)).get(ue);De.namedImports.set(ue,Ee(we,ke))}else B.assert(De.namespaceLikeImport===void 0||De.namespaceLikeImport.name===ue,"Namespacelike import shoudl be missing or match symbolName"),De.namespaceLikeImport={importKind:Re,name:ue,addAsTypeOnly:ke};break;case 2:B.assert(De.namespaceLikeImport===void 0||De.namespaceLikeImport.name===ue,"Namespacelike import shoudl be missing or match symbolName"),De.namespaceLikeImport={importKind:Re,name:ue,addAsTypeOnly:ke};break}break}case 4:break;default:B.assertNever(he,`fix wasn't never - got kind ${he.kind}`)}function Ee(Se,Re){return Math.max(Se??0,Re)}function ve(Se,Re,ie,ke){let De=be(Se,!0),Oe=be(Se,!1),we=A.get(De),Ae=A.get(Oe),Fe={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ie};return Re===1&&ke===2?we||(A.set(De,Fe),Fe):ke===1&&(we||Ae)?we||Ae:Ae||(A.set(Oe,Fe),Fe)}function be(Se,Re){return`${Re?1:0}|${Se}`}}function te(ce,ae){var Ce,he;let ue;Gy(e)&&e.imports.length===0&&ae!==void 0?ue=ae:ue=mm(e,a);for(let be of y)wke(ce,e,be);for(let be of g)dHe(ce,e,be,ue);let Ee;if(k.size){B.assert(Gy(e),"Cannot remove imports from a future source file");let be=new Set(ro([...k],De=>Ri(De,ql))),Se=new Set(ro([...k],De=>Ri(De,WM))),Re=[...be].filter(De=>{var Oe,we,Ae;return!x.has(De.importClause)&&(!((Oe=De.importClause)!=null&&Oe.name)||k.has(De.importClause))&&(!kr((we=De.importClause)==null?void 0:we.namedBindings,Xv)||k.has(De.importClause.namedBindings))&&(!kr((Ae=De.importClause)==null?void 0:Ae.namedBindings,iy)||Et(De.importClause.namedBindings.elements,Fe=>k.has(Fe)))}),ie=[...Se].filter(De=>(De.name.kind!==206||!x.has(De.name))&&(De.name.kind!==206||Et(De.name.elements,Oe=>k.has(Oe)))),ke=[...be].filter(De=>{var Oe,we;return((Oe=De.importClause)==null?void 0:Oe.namedBindings)&&Re.indexOf(De)===-1&&!((we=x.get(De.importClause))!=null&&we.namedImports)&&(De.importClause.namedBindings.kind===274||Et(De.importClause.namedBindings.elements,Ae=>k.has(Ae)))});for(let De of[...Re,...ie])ce.delete(e,De);for(let De of ke)ce.replaceNode(e,De.importClause,U.updateImportClause(De.importClause,De.importClause.isTypeOnly,De.importClause.name,void 0));for(let De of k){let Oe=Ri(De,ql);Oe&&Re.indexOf(Oe)===-1&&ke.indexOf(Oe)===-1?De.kind===273?ce.delete(e,De.name):(B.assert(De.kind===276,"NamespaceImport should have been handled earlier"),(Ce=x.get(Oe.importClause))!=null&&Ce.namedImports?(Ee??(Ee=new Set)).add(De):ce.delete(e,De)):De.kind===208?(he=x.get(De.parent))!=null&&he.namedImports?(Ee??(Ee=new Set)).add(De):ce.delete(e,De):De.kind===271&&ce.delete(e,De)}}x.forEach(({importClauseOrBindingPattern:be,defaultImport:Se,namedImports:Re})=>{uHe(ce,e,be,Se,as(Re.entries(),([ie,ke])=>({addAsTypeOnly:ke,name:ie})),Ee,a)});let ve;A.forEach(({useRequire:be,defaultImport:Se,namedImports:Re,namespaceLikeImport:ie},ke)=>{let De=ke.slice(2),we=(be?pHe:_He)(De,ue,Se,Re&&as(Re.entries(),([Ae,Fe])=>({addAsTypeOnly:Fe,name:Ae})),ie,p,a);ve=tl(ve,we)}),ve=tl(ve,ne()),ve&&Sre(ce,e,ve,!0,a)}function ne(){if(!T.size)return;let ce=new Set(ro([...T],Ce=>Ri(Ce,ql))),ae=new Set(ro([...T],Ce=>Ri(Ce,zM)));return[...ro([...T],Ce=>Ce.kind===271?_c(Ce,!0):void 0),...[...ce].map(Ce=>{var he;return T.has(Ce)?_c(Ce,!0):_c(U.updateImportDeclaration(Ce,Ce.modifiers,Ce.importClause&&U.updateImportClause(Ce.importClause,Ce.importClause.isTypeOnly,T.has(Ce.importClause)?Ce.importClause.name:void 0,T.has(Ce.importClause.namedBindings)?Ce.importClause.namedBindings:(he=kr(Ce.importClause.namedBindings,iy))!=null&&he.elements.some(ue=>T.has(ue))?U.updateNamedImports(Ce.importClause.namedBindings,Ce.importClause.namedBindings.elements.filter(ue=>T.has(ue))):void 0),Ce.moduleSpecifier,Ce.attributes),!0)}),...[...ae].map(Ce=>T.has(Ce)?_c(Ce,!0):_c(U.updateVariableStatement(Ce,Ce.modifiers,U.updateVariableDeclarationList(Ce.declarationList,ro(Ce.declarationList.declarations,he=>T.has(he)?he:U.updateVariableDeclaration(he,he.name.kind===206?U.updateObjectBindingPattern(he.name,he.name.elements.filter(ue=>T.has(ue))):he.name,he.exclamationToken,he.type,he.initializer)))),!0))]}function _e(){return y.length>0||g.length>0||x.size>0||A.size>0||T.size>0||k.size>0}}function dOt(e,t,r,a){let u=t6(e,a,r),f=eHe(e,t);return{getModuleSpecifierForBestExportInfo:p};function p(y,g,x,k){let{fixes:T,computedWithoutCacheCount:A}=mq(y,g,x,!1,t,e,r,a,f,k),P=rHe(T,e,t,u,r,a);return P&&{...P,computedWithoutCacheCount:A}}}function fOt(e,t,r,a,u,f,p,y,g,x,k,T){let A;r?(A=a9(a,p,y,k,T).get(a.path,r),B.assertIsDefined(A,"Some exportInfo should match the specified exportMapKey")):(A=nQ(sh(t.name))?[pOt(e,u,t,y,p)]:ZVe(a,e,u,t,f,y,p,k,T),B.assertIsDefined(A,"Some exportInfo should match the specified symbol / moduleSymbol"));let P=hq(a,y),R=dk(go(a,x)),W=B.checkDefined(YVe(a,A,y,x,R,P,p,k));return{moduleSpecifier:W.moduleSpecifier,codeAction:QVe(kke({host:p,formatContext:g,preferences:k},a,u,W,!1,y,k))}}function _Ot(e,t,r,a,u,f){let p=r.getCompilerOptions(),y=kP(Cke(e,r.getTypeChecker(),t,p)),g=cHe(e,t,y,r),x=y!==t.text;return g&&QVe(kke({host:a,formatContext:u,preferences:f},e,y,g,x,r,f))}function YVe(e,t,r,a,u,f,p,y){let g=t6(e,y,p);return rHe(mq(t,a,u,f,r,e,p,y).fixes,e,r,g,p,y)}function QVe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function ZVe(e,t,r,a,u,f,p,y,g){let x=tHe(f,p),k=y.autoImportFileExcludePatterns&&uxe(p,y),T=f.getTypeChecker().getMergedSymbol(a),A=k&&T.declarations&&bl(T,307),P=A&&k(A);return a9(e,p,f,y,g).search(e.path,u,R=>R===r,R=>{if(x(R[0].isFromPackageJson).getMergedSymbol(hf(R[0].symbol,x(R[0].isFromPackageJson)))===t&&(P||R.some(W=>W.moduleSymbol===a||W.symbol.parent===a)))return R})}function pOt(e,t,r,a,u){var f,p;let y=x(a.getTypeChecker(),!1);if(y)return y;let g=(p=(f=u.getPackageJsonAutoImportProvider)==null?void 0:f.call(u))==null?void 0:p.getTypeChecker();return B.checkDefined(g&&x(g,!0),"Could not find symbol in specified module for code actions");function x(k,T){let A=$J(r,k);if(A&&hf(A.symbol,k)===e)return{symbol:A.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:A.exportKind,targetFlags:hf(e,k).flags,isFromPackageJson:T};let P=k.tryGetMemberInModuleExportsAndProperties(t,r);if(P&&hf(P,k)===e)return{symbol:P,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:hf(e,k).flags,isFromPackageJson:T}}}function mq(e,t,r,a,u,f,p,y,g=Gy(f)?eHe(f,u):void 0,x){let k=u.getTypeChecker(),T=g?vo(e,g.getImportsForExportInfo):F,A=t!==void 0&&mOt(T,t),P=gOt(T,r,k,u.getCompilerOptions());if(P)return{computedWithoutCacheCount:0,fixes:[...A?[A]:F,P]};let{fixes:R,computedWithoutCacheCount:W=0}=vOt(e,T,u,f,t,r,a,p,y,x);return{computedWithoutCacheCount:W,fixes:[...A?[A]:F,...R]}}function mOt(e,t){return Le(e,({declaration:r,importKind:a})=>{var u;if(a!==0)return;let f=hOt(r),p=f&&((u=XP(r))==null?void 0:u.text);if(p)return{kind:0,namespacePrefix:f,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:p}})}function hOt(e){var t,r,a;switch(e.kind){case 260:return(t=kr(e.name,et))==null?void 0:t.text;case 271:return e.name.text;case 351:case 272:return(a=kr((r=e.importClause)==null?void 0:r.namedBindings,Xv))==null?void 0:a.name.text;default:return B.assertNever(e)}}function Joe(e,t,r,a,u,f){return e?r&&f.verbatimModuleSyntax&&(!(a&111551)||u.getTypeOnlyAliasDeclaration(r))?2:1:4}function gOt(e,t,r,a){let u;for(let p of e){let y=f(p);if(!y)continue;let g=O3(y.importClauseOrBindingPattern);if(y.addAsTypeOnly!==4&&g||y.addAsTypeOnly===4&&!g)return y;u??(u=y)}return u;function f({declaration:p,importKind:y,symbol:g,targetFlags:x}){if(y===3||y===2||p.kind===271)return;if(p.kind===260)return(y===0||y===1)&&p.name.kind===206?{kind:2,importClauseOrBindingPattern:p.name,importKind:y,moduleSpecifierKind:void 0,moduleSpecifier:p.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:k}=p;if(!k||!xc(p.moduleSpecifier))return;let{name:T,namedBindings:A}=k;if(k.isTypeOnly&&!(y===0&&A))return;let P=Joe(t,!1,g,x,r,a);if(!(y===1&&(T||P===2&&A))&&!(y===0&&A?.kind===274))return{kind:2,importClauseOrBindingPattern:k,importKind:y,moduleSpecifierKind:void 0,moduleSpecifier:p.moduleSpecifier.text,addAsTypeOnly:P}}}function eHe(e,t){let r=t.getTypeChecker(),a;for(let u of e.imports){let f=K3(u);if(WM(f.parent)){let p=r.resolveExternalModuleName(u);p&&(a||(a=Dm())).add(Ca(p),f.parent)}else if(f.kind===272||f.kind===271||f.kind===351){let p=r.getSymbolAtLocation(u);p&&(a||(a=Dm())).add(Ca(p),f)}}return{getImportsForExportInfo:({moduleSymbol:u,exportKind:f,targetFlags:p,symbol:y})=>{let g=a?.get(Ca(u));if(!g||N_(e)&&!(p&111551)&&!Et(g,oy))return F;let x=qoe(e,f,t);return g.map(k=>({declaration:k,importKind:x,symbol:y,targetFlags:p}))}}}function hq(e,t){if(!$v(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let r=t.getCompilerOptions();if(r.configFile)return p_(r)<5;if(Eke(e,t)===1)return!0;if(Eke(e,t)===99)return!1;for(let a of t.getSourceFiles())if(!(a===e||!N_(a)||t.isSourceFileFromExternalLibrary(a))){if(a.commonJsModuleIndicator&&!a.externalModuleIndicator)return!0;if(a.externalModuleIndicator&&!a.commonJsModuleIndicator)return!1}return!0}function tHe(e,t){return B0(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function yOt(e,t,r,a,u,f,p,y,g){let x=$v(t.fileName),k=e.getCompilerOptions(),T=$N(e,p),A=tHe(e,p),P=$f(k),R=EJ(P),W=g?G=>pS.tryGetModuleSpecifiersFromCache(G.moduleSymbol,t,T,y):(G,$)=>pS.getModuleSpecifiersWithCacheInfo(G.moduleSymbol,$,k,t,T,y,void 0,!0),z=0,q=vo(f,(G,$)=>{let te=A(G.isFromPackageJson),{computedWithoutCache:ne,moduleSpecifiers:_e,kind:ce}=W(G,te)??{},ae=!!(G.targetFlags&111551),Ce=Joe(a,!0,G.symbol,G.targetFlags,te,k);return z+=ne?1:0,ro(_e,he=>{if(R&&Mx(he))return;if(!ae&&x&&r!==void 0)return{kind:1,moduleSpecifierKind:ce,moduleSpecifier:he,usagePosition:r,exportInfo:G,isReExport:$>0};let ue=qoe(t,G.exportKind,e),Ee;if(r!==void 0&&ue===3&&G.exportKind===0){let ve=te.resolveExternalModuleSymbol(G.moduleSymbol),be;ve!==G.moduleSymbol&&(be=GJ(ve,te,Oa(k),Gc)),be||(be=n9(G.moduleSymbol,Oa(k),!1)),Ee={namespacePrefix:be,usagePosition:r}}return{kind:3,moduleSpecifierKind:ce,moduleSpecifier:he,importKind:ue,useRequire:u,addAsTypeOnly:Ce,exportInfo:G,isReExport:$>0,qualification:Ee}})});return{computedWithoutCacheCount:z,fixes:q}}function vOt(e,t,r,a,u,f,p,y,g,x){let k=Le(t,T=>bOt(T,f,p,r.getTypeChecker(),r.getCompilerOptions()));return k?{fixes:[k]}:yOt(r,a,u,f,p,e,y,g,x)}function bOt({declaration:e,importKind:t,symbol:r,targetFlags:a},u,f,p,y){var g;let x=(g=XP(e))==null?void 0:g.text;if(x){let k=f?4:Joe(u,!0,r,a,p,y);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:x,importKind:t,addAsTypeOnly:k,useRequire:f}}}function iHe(e,t,r,a){let u=go(e.sourceFile,r),f;if(t===S._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)f=wOt(e,u);else if(et(u))if(t===S._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let y=kP(Cke(e.sourceFile,e.program.getTypeChecker(),u,e.program.getCompilerOptions())),g=cHe(e.sourceFile,u,y,e.program);return g&&[{fix:g,symbolName:y,errorIdentifierText:u.text}]}else f=aHe(e,u,a);else return;let p=t6(e.sourceFile,e.preferences,e.host);return f&&nHe(f,e.sourceFile,e.program,p,e.host,e.preferences)}function nHe(e,t,r,a,u,f){let p=y=>Vc(y,u.getCurrentDirectory(),rS(u));return lc(e,(y,g)=>JC(!!y.isJsxNamespaceFix,!!g.isJsxNamespaceFix)||Kc(y.fix.kind,g.fix.kind)||oHe(y.fix,g.fix,t,r,f,a.allowsImportingSpecifier,p))}function SOt(e,t,r){let a=aHe(e,t,r),u=t6(e.sourceFile,e.preferences,e.host);return a&&nHe(a,e.sourceFile,e.program,u,e.host,e.preferences)}function rHe(e,t,r,a,u,f){if(Lt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((p,y)=>oHe(y,p,t,r,f,a.allowsImportingSpecifier,g=>Vc(g,u.getCurrentDirectory(),rS(u)))===-1?y:p)}function oHe(e,t,r,a,u,f,p){return e.kind!==0&&t.kind!==0?JC(t.moduleSpecifierKind!=="node_modules"||f(t.moduleSpecifier),e.moduleSpecifierKind!=="node_modules"||f(e.moduleSpecifier))||xOt(e,t,u)||kOt(e.moduleSpecifier,t.moduleSpecifier,r,a)||JC(sHe(e,r.path,p),sHe(t,r.path,p))||TR(e.moduleSpecifier,t.moduleSpecifier):0}function xOt(e,t,r){return r.importModuleSpecifierPreference==="non-relative"||r.importModuleSpecifierPreference==="project-relative"?JC(e.moduleSpecifierKind==="relative",t.moduleSpecifierKind==="relative"):0}function sHe(e,t,r){var a;if(e.isReExport&&((a=e.exportInfo)!=null&&a.moduleFileName)&&COt(e.exportInfo.moduleFileName)){let u=r(Or(e.exportInfo.moduleFileName));return Ro(t,u)}return!1}function COt(e){return Xu(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function kOt(e,t,r,a){return Ro(e,"node:")&&!Ro(t,"node:")?HJ(r,a)?-1:1:Ro(t,"node:")&&!Ro(e,"node:")?HJ(r,a)?1:-1:0}function wOt({sourceFile:e,program:t,host:r,preferences:a},u){let f=t.getTypeChecker(),p=TOt(u,f);if(!p)return;let y=f.getAliasedSymbol(p),g=p.name,x=[{symbol:p,moduleSymbol:y,moduleFileName:void 0,exportKind:3,targetFlags:y.flags,isFromPackageJson:!1}],k=hq(e,t);return mq(x,void 0,!1,k,t,e,r,a).fixes.map(A=>{var P;return{fix:A,symbolName:g,errorIdentifierText:(P=kr(u,et))==null?void 0:P.text}})}function TOt(e,t){let r=et(e)?t.getSymbolAtLocation(e):void 0;if(DV(r))return r;let{parent:a}=e;if(Mf(a)&&a.tagName===e||xE(a)){let u=t.resolveName(t.getJsxNamespace(a),Mf(a)?e:a,111551,!1);if(DV(u))return u}}function qoe(e,t,r,a){if(r.getCompilerOptions().verbatimModuleSyntax&&LOt(e,r)===1)return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return NOt(e,r.getCompilerOptions(),!!a);case 3:return EOt(e,r,!!a);default:return B.assertNever(t)}}function EOt(e,t,r){if(uN(t.getCompilerOptions()))return 1;let a=p_(t.getCompilerOptions());switch(a){case 2:case 1:case 3:return $v(e.fileName)&&(e.externalModuleIndicator||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return Eke(e,t)===99?2:3;default:return B.assertNever(a,`Unexpected moduleKind ${a}`)}}function aHe({sourceFile:e,program:t,cancellationToken:r,host:a,preferences:u},f,p){let y=t.getTypeChecker(),g=t.getCompilerOptions();return vo(Cke(e,y,f,g),x=>{if(x==="default")return;let k=dk(f),T=hq(e,t),A=IOt(x,GP(f),PE(f),r,e,t,p,a,u);return as(qa(A.values(),P=>mq(P,f.getStart(e),k,T,t,e,a,u).fixes),P=>({fix:P,symbolName:x,errorIdentifierText:f.text,isJsxNamespaceFix:x!==f.text}))})}function cHe(e,t,r,a){let u=a.getTypeChecker(),f=u.resolveName(r,t,111551,!0);if(!f)return;let p=u.getTypeOnlyAliasDeclaration(f);if(!(!p||en(p)!==e))return{kind:4,typeOnlyAliasDeclaration:p}}function Cke(e,t,r,a){let u=r.parent;if((Mf(u)||fT(u))&&u.tagName===r&&Jre(a.jsx)){let f=t.getJsxNamespace(e);if(DOt(f,r,t))return!n4(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,f]:[f]}return[r.text]}function DOt(e,t,r){if(n4(t.text))return!0;let a=r.resolveName(e,t,111551,!0);return!a||Lt(a.declarations,_x)&&!(a.flags&111551)}function IOt(e,t,r,a,u,f,p,y,g){var x;let k=Dm(),T=t6(u,g,y),A=(x=y.getModuleSpecifierCache)==null?void 0:x.call(y),P=B0(W=>$N(W?y.getPackageJsonAutoImportProvider():f,y));function R(W,z,q,G,$,te){let ne=P(te);if(z&&Gre($,u,z,g,T,ne,A)||!z&&T.allowsImportingAmbientModule(W,ne)||s9(u,sh(W.name))){let _e=$.getTypeChecker();k.add(KSe(q,_e).toString(),{symbol:q,moduleSymbol:W,moduleFileName:z?.fileName,exportKind:G,targetFlags:hf(q,_e).flags,isFromPackageJson:te})}}return Kre(f,y,g,p,(W,z,q,G)=>{let $=q.getTypeChecker();a.throwIfCancellationRequested();let te=q.getCompilerOptions(),ne=$J(W,$);ne&&hHe($.getSymbolFlags(ne.symbol),r)&&GJ(ne.symbol,$,Oa(te),(ce,ae)=>(t?ae??ce:ce)===e)&&R(W,z,ne.symbol,ne.exportKind,q,G);let _e=$.tryGetMemberInModuleExportsAndProperties(e,W);_e&&hHe($.getSymbolFlags(_e),r)&&R(W,z,_e,0,q,G)}),k}function NOt(e,t,r){let a=uN(t),u=$v(e.fileName);if(!u&&p_(t)>=5)return a?1:2;if(u)return e.externalModuleIndicator||r?a?1:2:3;for(let f of e.statements??F)if(Dd(f)&&!Ul(f.moduleReference))return 3;return a?1:3}function kke(e,t,r,a,u,f,p){let y,g=Vn.ChangeTracker.with(e,x=>{y=AOt(x,t,r,a,u,f,p)});return Ks($Ve,g,y,GVe,S.Add_all_missing_imports)}function AOt(e,t,r,a,u,f,p){let y=mm(t,p);switch(a.kind){case 0:return wke(e,t,a),[S.Change_0_to_1,r,`${a.namespacePrefix}.${r}`];case 1:return dHe(e,t,a,y),[S.Change_0_to_1,r,fHe(a.moduleSpecifier,y)+r];case 2:{let{importClauseOrBindingPattern:g,importKind:x,addAsTypeOnly:k,moduleSpecifier:T}=a;uHe(e,t,g,x===1?{name:r,addAsTypeOnly:k}:void 0,x===0?[{name:r,addAsTypeOnly:k}]:F,void 0,p);let A=sh(T);return u?[S.Import_0_from_1,r,A]:[S.Update_import_from_0,A]}case 3:{let{importKind:g,moduleSpecifier:x,addAsTypeOnly:k,useRequire:T,qualification:A}=a,P=T?pHe:_He,R=g===1?{name:r,addAsTypeOnly:k}:void 0,W=g===0?[{name:r,addAsTypeOnly:k}]:void 0,z=g===2||g===3?{importKind:g,name:A?.namespacePrefix||r,addAsTypeOnly:k}:void 0;return Sre(e,t,P(x,y,R,W,z,f.getCompilerOptions(),p),!0,p),A&&wke(e,t,A),u?[S.Import_0_from_1,r,x]:[S.Add_import_from_0,x]}case 4:{let{typeOnlyAliasDeclaration:g}=a,x=POt(e,g,f,t,p);return x.kind===276?[S.Remove_type_from_import_of_0_from_1,r,lHe(x.parent.parent)]:[S.Remove_type_from_import_declaration_from_0,lHe(x)]}default:return B.assertNever(a,`Unexpected fix kind ${a.kind}`)}}function lHe(e){var t,r;return e.kind===271?((r=kr((t=kr(e.moduleReference,rb))==null?void 0:t.expression,xc))==null?void 0:r.text)||e.moduleReference.getText():ea(e.parent.moduleSpecifier,Da).text}function POt(e,t,r,a,u){let f=r.getCompilerOptions(),p=f.verbatimModuleSyntax;switch(t.kind){case 276:if(t.isTypeOnly){if(t.parent.elements.length>1){let g=U.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:x}=Fk.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,u,a),k=Fk.getImportSpecifierInsertionIndex(t.parent.elements,g,x);if(k!==t.parent.elements.indexOf(t))return e.delete(a,t),e.insertImportSpecifierAtIndex(a,g,t.parent,k),t}return e.deleteRange(a,{pos:yx(t.getFirstToken()),end:yx(t.propertyName??t.name)}),t}else return B.assert(t.parent.parent.isTypeOnly),y(t.parent.parent),t.parent.parent;case 273:return y(t),t;case 274:return y(t.parent),t.parent;case 271:return e.deleteRange(a,t.getChildAt(1)),t;default:B.failBadSyntaxKind(t)}function y(g){var x;if(e.delete(a,xre(g,a)),!f.allowImportingTsExtensions){let k=XP(g.parent),T=k&&((x=r.getResolvedModuleFromModuleSpecifier(k,a))==null?void 0:x.resolvedModule);if(T?.resolvedUsingTsExtension){let A=Y7(k.text,wU(k.text,f));e.replaceNode(a,k,U.createStringLiteral(A))}}if(p){let k=kr(g.namedBindings,iy);if(k&&k.elements.length>1){Fk.getNamedImportSpecifierComparerWithDetection(g.parent,u,a).isSorted!==!1&&t.kind===276&&k.elements.indexOf(t)!==0&&(e.delete(a,t),e.insertImportSpecifierAtIndex(a,t,k,0));for(let A of k.elements)A!==t&&!A.isTypeOnly&&e.insertModifierBefore(a,156,A)}}}}function uHe(e,t,r,a,u,f,p){var y;if(r.kind===206){if(f&&r.elements.some(T=>f.has(T))){e.replaceNode(t,r,U.createObjectBindingPattern([...r.elements.filter(T=>!f.has(T)),...a?[U.createBindingElement(void 0,"default",a.name)]:F,...u.map(T=>U.createBindingElement(void 0,void 0,T.name))]));return}a&&k(r,a.name,"default");for(let T of u)k(r,T.name,void 0);return}let g=r.isTypeOnly&&Lt([a,...u],T=>T?.addAsTypeOnly===4),x=r.namedBindings&&((y=kr(r.namedBindings,iy))==null?void 0:y.elements);if(a&&(B.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),U.createIdentifier(a.name),{suffix:", "})),u.length){let{specifierComparer:T,isSorted:A}=Fk.getNamedImportSpecifierComparerWithDetection(r.parent,p,t),P=lc(u.map(R=>U.createImportSpecifier((!r.isTypeOnly||g)&&$oe(R,p),void 0,U.createIdentifier(R.name))),T);if(f)e.replaceNode(t,r.namedBindings,U.updateNamedImports(r.namedBindings,lc([...x.filter(R=>!f.has(R)),...P],T)));else if(x?.length&&A!==!1){let R=g&&x?U.updateNamedImports(r.namedBindings,Uo(x,W=>U.updateImportSpecifier(W,!0,W.propertyName,W.name))).elements:x;for(let W of P){let z=Fk.getImportSpecifierInsertionIndex(R,W,T);e.insertImportSpecifierAtIndex(t,W,r.namedBindings,z)}}else if(x?.length)for(let R of P)e.insertNodeInListAfter(t,pa(x),R,x);else if(P.length){let R=U.createNamedImports(P);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,B.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(g&&(e.delete(t,xre(r,t)),x))for(let T of x)e.insertModifierBefore(t,156,T);function k(T,A,P){let R=U.createBindingElement(void 0,P,A);T.elements.length?e.insertNodeInListAfter(t,pa(T.elements),R):e.replaceNode(t,T,U.createObjectBindingPattern([R]))}}function wke(e,t,{namespacePrefix:r,usagePosition:a}){e.insertText(t,a,r+".")}function dHe(e,t,{moduleSpecifier:r,usagePosition:a},u){e.insertText(t,a,fHe(r,u))}function fHe(e,t){let r=vre(t);return`import(${r}${e}${r}).`}function Tke({addAsTypeOnly:e}){return e===2}function $oe(e,t){return Tke(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function _He(e,t,r,a,u,f,p){let y=k8(e,t),g;if(r!==void 0||a?.length){let x=(!r||Tke(r))&&Et(a,Tke)||(f.verbatimModuleSyntax||p.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!Lt(a,k=>k.addAsTypeOnly===4);g=tl(g,Wx(r&&U.createIdentifier(r.name),a?.map(k=>U.createImportSpecifier(!x&&$oe(k,p),void 0,U.createIdentifier(k.name))),e,t,x))}if(u){let x=u.importKind===3?U.createImportEqualsDeclaration(void 0,$oe(u,p),U.createIdentifier(u.name),U.createExternalModuleReference(y)):U.createImportDeclaration(void 0,U.createImportClause($oe(u,p),void 0,U.createNamespaceImport(U.createIdentifier(u.name))),y,void 0);g=tl(g,x)}return B.checkDefined(g)}function pHe(e,t,r,a,u){let f=k8(e,t),p;if(r||a?.length){let y=a?.map(({name:x})=>U.createBindingElement(void 0,void 0,x))||[];r&&y.unshift(U.createBindingElement(void 0,"default",r.name));let g=mHe(U.createObjectBindingPattern(y),f);p=tl(p,g)}if(u){let y=mHe(u.name,f);p=tl(p,y)}return B.checkDefined(p)}function mHe(e,t){return U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(typeof e=="string"?U.createIdentifier(e):e,void 0,void 0,U.createCallExpression(U.createIdentifier("require"),void 0,[t]))],2))}function hHe(e,t){return t===7?!0:t&1?!!(e&111551):t&2?!!(e&788968):t&4?!!(e&1920):!1}function Eke(e,t){return Gy(e)?t.getImpliedNodeFormatForEmit(e):AE(e,t.getCompilerOptions())}function LOt(e,t){return Gy(e)?t.getEmitModuleFormatOfFile(e):m8(e,t.getCompilerOptions())}var Dke="addMissingConstraint",gHe=[S.Type_0_is_not_comparable_to_type_1.code,S.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,S.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,S.Type_0_is_not_assignable_to_type_1.code,S.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,S.Property_0_is_incompatible_with_index_signature.code,S.Property_0_in_type_1_is_not_assignable_to_type_2.code,S.Type_0_does_not_satisfy_the_constraint_1.code];ha({errorCodes:gHe,getCodeActions(e){let{sourceFile:t,span:r,program:a,preferences:u,host:f}=e,p=yHe(a,t,r);if(p===void 0)return;let y=Vn.ChangeTracker.with(e,g=>vHe(g,a,u,f,t,p));return[Ks(Dke,y,S.Add_extends_constraint,Dke,S.Add_extends_constraint_to_all_type_parameters)]},fixIds:[Dke],getAllCodeActions:e=>{let{program:t,preferences:r,host:a}=e,u=new Map;return ZN(Vn.ChangeTracker.with(e,f=>{eA(e,gHe,p=>{let y=yHe(t,p.file,_f(p.start,p.length));if(y&&Uh(u,ac(y.declaration)))return vHe(f,t,r,a,p.file,y)})}))}});function yHe(e,t,r){let a=St(e.getSemanticDiagnostics(t),p=>p.start===r.start&&p.length===r.length);if(a===void 0||a.relatedInformation===void 0)return;let u=St(a.relatedInformation,p=>p.code===S.This_type_parameter_might_need_an_extends_0_constraint.code);if(u===void 0||u.file===void 0||u.start===void 0||u.length===void 0)return;let f=Swe(u.file,_f(u.start,u.length));if(f!==void 0&&(et(f)&&Sl(f.parent)&&(f=f.parent),Sl(f))){if(yE(f.parent))return;let p=go(t,r.start),y=e.getTypeChecker();return{constraint:FOt(y,p)||OOt(u.messageText),declaration:f,token:p}}}function vHe(e,t,r,a,u,f){let{declaration:p,constraint:y}=f,g=t.getTypeChecker();if(fs(y))e.insertText(u,p.name.end,` extends ${y}`);else{let x=Oa(t.getCompilerOptions()),k=a6({program:t,host:a}),T=AT(u,t,r,a),A=vq(g,T,y,void 0,x,void 0,void 0,k);A&&(e.replaceNode(u,p,U.updateTypeParameterDeclaration(p,void 0,p.name,A,p.default)),T.writeFixes(e))}}function OOt(e){let[,t]=ay(e,` +`,0).match(/`extends (.*)`/)||[];return t}function FOt(e,t){return io(t.parent)?e.getTypeArgumentConstraint(t.parent):(Mt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var bHe="fixOverrideModifier",b9="fixAddOverrideModifier",gq="fixRemoveOverrideModifier",SHe=[S.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,S.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,S.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,S.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,S.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,S.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,S.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,S.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,S.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],xHe={[S.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:S.Add_override_modifier,fixId:b9,fixAllDescriptions:S.Add_all_missing_override_modifiers},[S.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:S.Add_override_modifier,fixId:b9,fixAllDescriptions:S.Add_all_missing_override_modifiers},[S.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:S.Remove_override_modifier,fixId:gq,fixAllDescriptions:S.Remove_all_unnecessary_override_modifiers},[S.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:S.Remove_override_modifier,fixId:gq,fixAllDescriptions:S.Remove_override_modifier},[S.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:S.Add_override_modifier,fixId:b9,fixAllDescriptions:S.Add_all_missing_override_modifiers},[S.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:S.Add_override_modifier,fixId:b9,fixAllDescriptions:S.Add_all_missing_override_modifiers},[S.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:S.Add_override_modifier,fixId:b9,fixAllDescriptions:S.Remove_all_unnecessary_override_modifiers},[S.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:S.Remove_override_modifier,fixId:gq,fixAllDescriptions:S.Remove_all_unnecessary_override_modifiers},[S.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:S.Remove_override_modifier,fixId:gq,fixAllDescriptions:S.Remove_all_unnecessary_override_modifiers}};ha({errorCodes:SHe,getCodeActions:function(t){let{errorCode:r,span:a}=t,u=xHe[r];if(!u)return F;let{descriptions:f,fixId:p,fixAllDescriptions:y}=u,g=Vn.ChangeTracker.with(t,x=>CHe(x,t,r,a.start));return[KCe(bHe,g,f,p,y)]},fixIds:[bHe,b9,gq],getAllCodeActions:e=>Ec(e,SHe,(t,r)=>{let{code:a,start:u}=r,f=xHe[a];!f||f.fixId!==e.fixId||CHe(t,e,a,u)})});function CHe(e,t,r,a){switch(r){case S.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case S.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case S.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case S.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case S.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return MOt(e,t.sourceFile,a);case S.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case S.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case S.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case S.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return ROt(e,t.sourceFile,a);default:B.fail("Unexpected error code: "+r)}}function MOt(e,t,r){let a=wHe(t,r);if(N_(t)){e.addJSDocTags(t,a,[U.createJSDocOverrideTag(U.createIdentifier("override"))]);return}let u=a.modifiers||F,f=St(u,SN),p=St(u,nye),y=St(u,T=>lre(T.kind)),g=Mi(u,Td),x=p?p.end:f?f.end:y?y.end:g?Ea(t.text,g.end):a.getStart(t),k=y||f||p?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,x,164,k)}function ROt(e,t,r){let a=wHe(t,r);if(N_(t)){e.filterJSDocTags(t,a,VW(EH));return}let u=St(a.modifiers,rye);B.assertIsDefined(u),e.deleteModifier(t,u)}function kHe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Wp(e,e.parent);default:return!1}}function wHe(e,t){let r=go(e,t),a=Ri(r,u=>jr(u)?"quit":kHe(u));return B.assert(a&&kHe(a)),a}var Ike="fixNoPropertyAccessFromIndexSignature",THe=[S.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];ha({errorCodes:THe,fixIds:[Ike],getCodeActions(e){let{sourceFile:t,span:r,preferences:a}=e,u=DHe(t,r.start),f=Vn.ChangeTracker.with(e,p=>EHe(p,e.sourceFile,u,a));return[Ks(Ike,f,[S.Use_element_access_for_0,u.name.text],Ike,S.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ec(e,THe,(t,r)=>EHe(t,r.file,DHe(r.file,r.start),e.preferences))});function EHe(e,t,r,a){let u=mm(t,a),f=U.createStringLiteral(r.name.text,u===0);e.replaceNode(t,r,uz(r)?U.createElementAccessChain(r.expression,r.questionDotToken,f):U.createElementAccessExpression(r.expression,f))}function DHe(e,t){return ea(go(e,t).parent,lr)}var Nke="fixImplicitThis",IHe=[S.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];ha({errorCodes:IHe,getCodeActions:function(t){let{sourceFile:r,program:a,span:u}=t,f,p=Vn.ChangeTracker.with(t,y=>{f=NHe(y,r,u.start,a.getTypeChecker())});return f?[Ks(Nke,p,f,Nke,S.Fix_all_implicit_this_errors)]:F},fixIds:[Nke],getAllCodeActions:e=>Ec(e,IHe,(t,r)=>{NHe(t,r.file,r.start,e.program.getTypeChecker())})});function NHe(e,t,r,a){let u=go(t,r);if(!G4(u))return;let f=f_(u,!1,!1);if(!(!xu(f)&&!Yc(f))&&!mo(f_(f,!1,!1))){let p=B.checkDefined(Tc(f,100,t)),{name:y}=f,g=B.checkDefined(f.body);return Yc(f)?y&&ol.Core.isSymbolReferencedInFile(y,a,t,g)?void 0:(e.delete(t,p),y&&e.delete(t,y),e.insertText(t,g.pos," =>"),[S.Convert_function_expression_0_to_arrow_function,y?y.text:Mre]):(e.replaceNode(t,p,U.createToken(87)),e.insertText(t,y.end," = "),e.insertText(t,g.pos," =>"),[S.Convert_function_declaration_0_to_arrow_function,y.text])}}var Ake="fixImportNonExportedMember",AHe=[S.Module_0_declares_1_locally_but_it_is_not_exported.code];ha({errorCodes:AHe,fixIds:[Ake],getCodeActions(e){let{sourceFile:t,span:r,program:a}=e,u=PHe(t,r.start,a);if(u===void 0)return;let f=Vn.ChangeTracker.with(e,p=>BOt(p,a,u));return[Ks(Ake,f,[S.Export_0_from_module_1,u.exportName.node.text,u.moduleSpecifier],Ake,S.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return ZN(Vn.ChangeTracker.with(e,r=>{let a=new Map;eA(e,AHe,u=>{let f=PHe(u.file,u.start,t);if(f===void 0)return;let{exportName:p,node:y,moduleSourceFile:g}=f;if(Goe(g,p.isTypeOnly)===void 0&&DR(y))r.insertExportModifier(g,y);else{let x=a.get(g)||{typeOnlyExports:[],exports:[]};p.isTypeOnly?x.typeOnlyExports.push(p):x.exports.push(p),a.set(g,x)}}),a.forEach((u,f)=>{let p=Goe(f,!0);p&&p.isTypeOnly?(Pke(r,t,f,u.typeOnlyExports,p),Pke(r,t,f,u.exports,Goe(f,!1))):Pke(r,t,f,[...u.exports,...u.typeOnlyExports],p)})}))}});function PHe(e,t,r){var a,u;let f=go(e,t);if(et(f)){let p=Ri(f,ql);if(p===void 0)return;let y=Da(p.moduleSpecifier)?p.moduleSpecifier:void 0;if(y===void 0)return;let g=(a=r.getResolvedModuleFromModuleSpecifier(y,e))==null?void 0:a.resolvedModule;if(g===void 0)return;let x=r.getSourceFile(g.resolvedFileName);if(x===void 0||i6(r,x))return;let k=x.symbol,T=(u=kr(k.valueDeclaration,Uy))==null?void 0:u.locals;if(T===void 0)return;let A=T.get(f.escapedText);if(A===void 0)return;let P=jOt(A);return P===void 0?void 0:{exportName:{node:f,isTypeOnly:fN(P)},node:P,moduleSourceFile:x,moduleSpecifier:y.text}}}function BOt(e,t,{exportName:r,node:a,moduleSourceFile:u}){let f=Goe(u,r.isTypeOnly);f?LHe(e,t,u,f,[r]):DR(a)?e.insertExportModifier(u,a):OHe(e,t,u,[r])}function Pke(e,t,r,a,u){K(a)&&(u?LHe(e,t,r,u,a):OHe(e,t,r,a))}function Goe(e,t){let r=a=>Nu(a)&&(t&&a.isTypeOnly||!a.isTypeOnly);return Mi(e.statements,r)}function LHe(e,t,r,a,u){let f=a.exportClause&&_h(a.exportClause)?a.exportClause.elements:U.createNodeArray([]),p=!a.isTypeOnly&&!!(Jh(t.getCompilerOptions())||St(f,y=>y.isTypeOnly));e.replaceNode(r,a,U.updateExportDeclaration(a,a.modifiers,a.isTypeOnly,U.createNamedExports(U.createNodeArray([...f,...FHe(u,p)],f.hasTrailingComma)),a.moduleSpecifier,a.attributes))}function OHe(e,t,r,a){e.insertNodeAtEndOfScope(r,r,U.createExportDeclaration(void 0,!1,U.createNamedExports(FHe(a,Jh(t.getCompilerOptions()))),void 0,void 0))}function FHe(e,t){return U.createNodeArray(_i(e,r=>U.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function jOt(e){if(e.valueDeclaration===void 0)return mc(e.declarations);let t=e.valueDeclaration,r=Ur(t)?kr(t.parent.parent,mu):void 0;return r&&K(r.declarationList.declarations)===1?r:t}var Lke="fixIncorrectNamedTupleSyntax",WOt=[S.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,S.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];ha({errorCodes:WOt,getCodeActions:function(t){let{sourceFile:r,span:a}=t,u=zOt(r,a.start),f=Vn.ChangeTracker.with(t,p=>VOt(p,r,u));return[Ks(Lke,f,S.Move_labeled_tuple_element_modifiers_to_labels,Lke,S.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Lke]});function zOt(e,t){let r=go(e,t);return Ri(r,a=>a.kind===202)}function VOt(e,t,r){if(!r)return;let a=r.type,u=!1,f=!1;for(;a.kind===190||a.kind===191||a.kind===196;)a.kind===190?u=!0:a.kind===191&&(f=!0),a=a.type;let p=U.updateNamedTupleMember(r,r.dotDotDotToken||(f?U.createToken(26):void 0),r.name,r.questionToken||(u?U.createToken(58):void 0),a);p!==r&&e.replaceNode(t,r,p)}var MHe="fixSpelling",RHe=[S.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,S.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,S.Cannot_find_name_0_Did_you_mean_1.code,S.Could_not_find_name_0_Did_you_mean_1.code,S.Cannot_find_namespace_0_Did_you_mean_1.code,S.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,S.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,S._0_has_no_exported_member_named_1_Did_you_mean_2.code,S.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,S.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,S.No_overload_matches_this_call.code,S.Type_0_is_not_assignable_to_type_1.code];ha({errorCodes:RHe,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,a=BHe(t,e.span.start,e,r);if(!a)return;let{node:u,suggestedSymbol:f}=a,p=Oa(e.host.getCompilationSettings()),y=Vn.ChangeTracker.with(e,g=>jHe(g,t,u,f,p));return[Ks("spelling",y,[S.Change_spelling_to_0,fu(f)],MHe,S.Fix_all_detected_spelling_errors)]},fixIds:[MHe],getAllCodeActions:e=>Ec(e,RHe,(t,r)=>{let a=BHe(r.file,r.start,e,r.code),u=Oa(e.host.getCompilationSettings());a&&jHe(t,e.sourceFile,a.node,a.suggestedSymbol,u)})});function BHe(e,t,r,a){let u=go(e,t),f=u.parent;if((a===S.No_overload_matches_this_call.code||a===S.Type_0_is_not_assignable_to_type_1.code)&&!ry(f))return;let p=r.program.getTypeChecker(),y;if(lr(f)&&f.name===u){B.assert(Bv(u),"Expected an identifier for spelling (property access)");let g=p.getTypeAtLocation(f.expression);f.flags&64&&(g=p.getNonNullableType(g)),y=p.getSuggestedSymbolForNonexistentProperty(u,g)}else if(Yn(f)&&f.operatorToken.kind===103&&f.left===u&&xo(u)){let g=p.getTypeAtLocation(f.right);y=p.getSuggestedSymbolForNonexistentProperty(u,g)}else if(P_(f)&&f.right===u){let g=p.getSymbolAtLocation(f.left);g&&g.flags&1536&&(y=p.getSuggestedSymbolForNonexistentModule(f.right,g))}else if(F_(f)&&f.name===u){B.assertNode(u,et,"Expected an identifier for spelling (import)");let g=Ri(u,ql),x=UOt(r,g,e);x&&x.symbol&&(y=p.getSuggestedSymbolForNonexistentModule(u,x.symbol))}else if(ry(f)&&f.name===u){B.assertNode(u,et,"Expected an identifier for JSX attribute");let g=Ri(u,Mf),x=p.getContextualTypeForArgumentAtIndex(g,0);y=p.getSuggestedSymbolForNonexistentJSXAttribute(u,x)}else if(vV(f)&&Cd(f)&&f.name===u){let g=Ri(u,jr),x=g?J0(g):void 0,k=x?p.getTypeAtLocation(x):void 0;k&&(y=p.getSuggestedSymbolForNonexistentClassMember(Jl(u),k))}else{let g=PE(u),x=Jl(u);B.assert(x!==void 0,"name should be defined"),y=p.getSuggestedSymbolForNonexistentSymbol(u,x,HOt(g))}return y===void 0?void 0:{node:u,suggestedSymbol:y}}function jHe(e,t,r,a,u){let f=fu(a);if(!pp(f,u)&&lr(r.parent)){let p=a.valueDeclaration;p&&pf(p)&&xo(p.name)?e.replaceNode(t,r,U.createIdentifier(f)):e.replaceNode(t,r.parent,U.createElementAccessExpression(r.parent.expression,U.createStringLiteral(f)))}else e.replaceNode(t,r,U.createIdentifier(f))}function HOt(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function UOt(e,t,r){var a;if(!t||!xc(t.moduleSpecifier))return;let u=(a=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,r))==null?void 0:a.resolvedModule;if(u)return e.program.getSourceFile(u.resolvedFileName)}var Oke="returnValueCorrect",Fke="fixAddReturnStatement",Mke="fixRemoveBracesFromArrowFunctionBody",Rke="fixWrapTheBlockWithParen",WHe=[S.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,S.Type_0_is_not_assignable_to_type_1.code,S.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];ha({errorCodes:WHe,fixIds:[Fke,Mke,Rke],getCodeActions:function(t){let{program:r,sourceFile:a,span:{start:u},errorCode:f}=t,p=VHe(r.getTypeChecker(),a,u,f);if(p)return p.kind===0?hi([qOt(t,p.expression,p.statement)],rl(p.declaration)?$Ot(t,p.declaration,p.expression,p.commentSource):void 0):[GOt(t,p.declaration,p.expression)]},getAllCodeActions:e=>Ec(e,WHe,(t,r)=>{let a=VHe(e.program.getTypeChecker(),r.file,r.start,r.code);if(a)switch(e.fixId){case Fke:HHe(t,r.file,a.expression,a.statement);break;case Mke:if(!rl(a.declaration))return;UHe(t,r.file,a.declaration,a.expression,a.commentSource,!1);break;case Rke:if(!rl(a.declaration))return;JHe(t,r.file,a.declaration,a.expression);break;default:B.fail(JSON.stringify(e.fixId))}})});function zHe(e,t,r){let a=e.createSymbol(4,t.escapedText);a.links.type=e.getTypeAtLocation(r);let u=ta([a]);return e.createAnonymousType(void 0,u,[],[],[])}function Bke(e,t,r,a){if(!t.body||!Ds(t.body)||K(t.body.statements)!==1)return;let u=Ta(t.body.statements);if(Ud(u)&&jke(e,t,e.getTypeAtLocation(u.expression),r,a))return{declaration:t,kind:0,expression:u.expression,statement:u,commentSource:u.expression};if(Px(u)&&Ud(u.statement)){let f=U.createObjectLiteralExpression([U.createPropertyAssignment(u.label,u.statement.expression)]),p=zHe(e,u.label,u.statement.expression);if(jke(e,t,p,r,a))return rl(t)?{declaration:t,kind:1,expression:f,statement:u,commentSource:u.statement.expression}:{declaration:t,kind:0,expression:f,statement:u,commentSource:u.statement.expression}}else if(Ds(u)&&K(u.statements)===1){let f=Ta(u.statements);if(Px(f)&&Ud(f.statement)){let p=U.createObjectLiteralExpression([U.createPropertyAssignment(f.label,f.statement.expression)]),y=zHe(e,f.label,f.statement.expression);if(jke(e,t,y,r,a))return{declaration:t,kind:0,expression:p,statement:u,commentSource:f}}}}function jke(e,t,r,a,u){if(u){let f=e.getSignatureFromDeclaration(t);if(f){Ar(t,1024)&&(r=e.createPromiseType(r));let p=e.createSignature(t,f.typeParameters,f.thisParameter,f.parameters,r,void 0,f.minArgumentCount,f.flags);r=e.createAnonymousType(void 0,ta(),[p],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,a)}function VHe(e,t,r,a){let u=go(t,r);if(!u.parent)return;let f=Ri(u.parent,Oc);switch(a){case S.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!f||!f.body||!f.type||!Xp(f.type,u)?void 0:Bke(e,f,e.getTypeFromTypeNode(f.type),!1);case S.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!f||!Gs(f.parent)||!f.body)return;let p=f.parent.arguments.indexOf(f);if(p===-1)return;let y=e.getContextualTypeForArgumentAtIndex(f.parent,p);return y?Bke(e,f,y,!0):void 0;case S.Type_0_is_not_assignable_to_type_1.code:if(!Xy(u)||!qI(u.parent)&&!ry(u.parent))return;let g=JOt(u.parent);return!g||!Oc(g)||!g.body?void 0:Bke(e,g,e.getTypeAtLocation(u.parent),!0)}}function JOt(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(jO(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 348:case 341:return}}function HHe(e,t,r,a){Qp(r);let u=e9(t);e.replaceNode(t,a,U.createReturnStatement(r),{leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.Exclude,suffix:u?";":void 0})}function UHe(e,t,r,a,u,f){let p=f||LJ(a)?U.createParenthesizedExpression(a):a;Qp(u),OE(u,p),e.replaceNode(t,r.body,p)}function JHe(e,t,r,a){e.replaceNode(t,r.body,U.createParenthesizedExpression(a))}function qOt(e,t,r){let a=Vn.ChangeTracker.with(e,u=>HHe(u,e.sourceFile,t,r));return Ks(Oke,a,S.Add_a_return_statement,Fke,S.Add_all_missing_return_statement)}function $Ot(e,t,r,a){let u=Vn.ChangeTracker.with(e,f=>UHe(f,e.sourceFile,t,r,a,!1));return Ks(Oke,u,S.Remove_braces_from_arrow_function_body,Mke,S.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function GOt(e,t,r){let a=Vn.ChangeTracker.with(e,u=>JHe(u,e.sourceFile,t,r));return Ks(Oke,a,S.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Rke,S.Wrap_all_object_literal_with_parentheses)}var Lk="fixMissingMember",Koe="fixMissingProperties",Xoe="fixMissingAttributes",Yoe="fixMissingFunctionDeclaration",qHe=[S.Property_0_does_not_exist_on_type_1.code,S.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,S.Property_0_is_missing_in_type_1_but_required_in_type_2.code,S.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,S.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,S.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,S.Cannot_find_name_0.code];ha({errorCodes:qHe,getCodeActions(e){let t=e.program.getTypeChecker(),r=$He(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let a=Vn.ChangeTracker.with(e,u=>nUe(u,e,r));return[Ks(Koe,a,S.Add_missing_properties,Koe,S.Add_all_missing_properties)]}if(r.kind===4){let a=Vn.ChangeTracker.with(e,u=>iUe(u,e,r));return[Ks(Xoe,a,S.Add_missing_attributes,Xoe,S.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){let a=Vn.ChangeTracker.with(e,u=>tUe(u,e,r));return[Ks(Yoe,a,[S.Add_missing_function_declaration_0,r.token.text],Yoe,S.Add_all_missing_function_declarations)]}if(r.kind===1){let a=Vn.ChangeTracker.with(e,u=>eUe(u,e.program.getTypeChecker(),r));return[Ks(Lk,a,[S.Add_missing_enum_member_0,r.token.text],Lk,S.Add_all_missing_members)]}return Fo(ZOt(e,r),KOt(e,r))}},fixIds:[Lk,Yoe,Koe,Xoe],getAllCodeActions:e=>{let{program:t,fixId:r}=e,a=t.getTypeChecker(),u=new Map,f=new Map;return ZN(Vn.ChangeTracker.with(e,p=>{eA(e,qHe,y=>{let g=$He(y.file,y.start,y.code,a,e.program);if(!(!g||!Uh(u,ac(g.parentDeclaration)+"#"+(g.kind===3?g.identifier:g.token.text)))){if(r===Yoe&&(g.kind===2||g.kind===5))tUe(p,e,g);else if(r===Koe&&g.kind===3)nUe(p,e,g);else if(r===Xoe&&g.kind===4)iUe(p,e,g);else if(g.kind===1&&eUe(p,a,g),g.kind===0){let{parentDeclaration:x,token:k}=g,T=Hg(f,x,()=>[]);T.some(A=>A.token.text===k.text)||T.push(g)}}}),f.forEach((y,g)=>{let x=L_(g)?void 0:xwe(g,a);for(let k of y){if(x?.some(q=>{let G=f.get(q);return!!G&&G.some(({token:$})=>$.text===k.token.text)}))continue;let{parentDeclaration:T,declSourceFile:A,modifierFlags:P,token:R,call:W,isJSFile:z}=k;if(W&&!xo(R))ZHe(e,p,W,R,P&256,T,A);else if(z&&!vf(T)&&!L_(T))GHe(p,A,T,R,!!(P&256));else{let q=XHe(a,T,R);YHe(p,A,T,R.text,q,P&256)}}})}))}});function $He(e,t,r,a,u){var f;let p=go(e,t),y=p.parent;if(r===S.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(p.kind===19&&ba(y)&&Gs(y.parent)))return;let P=zi(y.parent.arguments,q=>q===y);if(P<0)return;let R=a.getResolvedSignature(y.parent);if(!(R&&R.declaration&&R.parameters[P]))return;let W=R.parameters[P].valueDeclaration;if(!(W&&To(W)&&et(W.name)))return;let z=as(a.getUnmatchedProperties(a.getTypeAtLocation(y),a.getParameterType(R,P),!1,!1));return K(z)?{kind:3,token:W.name,identifier:W.name.text,properties:z,parentDeclaration:y}:void 0}if(p.kind===19&&ba(y)){let P=a.getContextualType(y)||a.getTypeAtLocation(y),R=as(a.getUnmatchedProperties(a.getTypeAtLocation(y),P,!1,!1));return K(R)?{kind:3,token:y,identifier:"",properties:R,parentDeclaration:y}:void 0}if(!Bv(p))return;if(et(p)&&Qb(y)&&y.initializer&&ba(y.initializer)){let P=a.getContextualType(p)||a.getTypeAtLocation(p),R=as(a.getUnmatchedProperties(a.getTypeAtLocation(y.initializer),P,!1,!1));return K(R)?{kind:3,token:p,identifier:p.text,properties:R,parentDeclaration:y.initializer}:void 0}if(et(p)&&Mf(p.parent)){let P=Oa(u.getCompilerOptions()),R=t8t(a,P,p.parent);return K(R)?{kind:4,token:p,attributes:R,parentDeclaration:p.parent}:void 0}if(et(p)){let P=(f=a.getContextualType(p))==null?void 0:f.getNonNullableType();if(P&&_r(P)&16){let R=mc(a.getSignaturesOfType(P,0));return R===void 0?void 0:{kind:5,token:p,signature:R,sourceFile:e,parentDeclaration:rUe(p)}}if(Gs(y)&&y.expression===p)return{kind:2,token:p,call:y,sourceFile:e,modifierFlags:0,parentDeclaration:rUe(p)}}if(!lr(y))return;let g=mre(a.getTypeAtLocation(y.expression)),x=g.symbol;if(!x||!x.declarations)return;if(et(p)&&Gs(y.parent)){let P=St(x.declarations,Hu),R=P?.getSourceFile();if(P&&R&&!i6(u,R))return{kind:2,token:p,call:y.parent,sourceFile:R,modifierFlags:32,parentDeclaration:P};let W=St(x.declarations,mo);if(e.commonJsModuleIndicator)return;if(W&&!i6(u,W))return{kind:2,token:p,call:y.parent,sourceFile:W,modifierFlags:32,parentDeclaration:W}}let k=St(x.declarations,jr);if(!k&&xo(p))return;let T=k||St(x.declarations,P=>vf(P)||L_(P));if(T&&!i6(u,T.getSourceFile())){let P=!L_(T)&&(g.target||g)!==a.getDeclaredTypeOfSymbol(x);if(P&&(xo(p)||vf(T)))return;let R=T.getSourceFile(),W=L_(T)?0:(P?256:0)|(Ure(p.text)?2:0),z=N_(R),q=kr(y.parent,Gs);return{kind:0,token:p,call:q,modifierFlags:W,parentDeclaration:T,declSourceFile:R,isJSFile:z}}let A=St(x.declarations,dT);if(A&&!(g.flags&1056)&&!xo(p)&&!i6(u,A.getSourceFile()))return{kind:1,token:p,parentDeclaration:A}}function KOt(e,t){return t.isJSFile?AI(XOt(e,t)):YOt(e,t)}function XOt(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:a,token:u}){if(vf(t)||L_(t))return;let f=Vn.ChangeTracker.with(e,y=>GHe(y,r,t,u,!!(a&256)));if(f.length===0)return;let p=a&256?S.Initialize_static_property_0:xo(u)?S.Declare_a_private_field_named_0:S.Initialize_property_0_in_the_constructor;return Ks(Lk,f,[p,u.text],Lk,S.Add_all_missing_members)}function GHe(e,t,r,a,u){let f=a.text;if(u){if(r.kind===231)return;let p=r.name.getText(),y=KHe(U.createIdentifier(p),f);e.insertNodeAfter(t,r,y)}else if(xo(a)){let p=U.createPropertyDeclaration(void 0,f,void 0,void 0,void 0),y=QHe(r);y?e.insertNodeAfter(t,y,p):e.insertMemberAtStart(t,r,p)}else{let p=Hv(r);if(!p)return;let y=KHe(U.createThis(),f);e.insertNodeAtConstructorEnd(t,p,y)}}function KHe(e,t){return U.createExpressionStatement(U.createAssignment(U.createPropertyAccessExpression(e,t),iA()))}function YOt(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:a,token:u}){let f=u.text,p=a&256,y=XHe(e.program.getTypeChecker(),t,u),g=k=>Vn.ChangeTracker.with(e,T=>YHe(T,r,t,f,y,k)),x=[Ks(Lk,g(a&256),[p?S.Declare_static_property_0:S.Declare_property_0,f],Lk,S.Add_all_missing_members)];return p||xo(u)||(a&2&&x.unshift(s0(Lk,g(2),[S.Declare_private_property_0,f])),x.push(QOt(e,r,t,u.text,y))),x}function XHe(e,t,r){let a;if(r.parent.parent.kind===226){let u=r.parent.parent,f=r.parent===u.left?u.right:u.left,p=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(f)));a=e.typeToTypeNode(p,t,1,8)}else{let u=e.getContextualType(r.parent);a=u?e.typeToTypeNode(u,void 0,1,8):void 0}return a||U.createKeywordTypeNode(133)}function YHe(e,t,r,a,u,f){let p=f?U.createNodeArray(U.createModifiersFromModifierFlags(f)):void 0,y=jr(r)?U.createPropertyDeclaration(p,a,void 0,u,void 0):U.createPropertySignature(void 0,a,void 0,u),g=QHe(r);g?e.insertNodeAfter(t,g,y):e.insertMemberAtStart(t,r,y)}function QHe(e){let t;for(let r of e.members){if(!ls(r))break;t=r}return t}function QOt(e,t,r,a,u){let f=U.createKeywordTypeNode(154),p=U.createParameterDeclaration(void 0,void 0,"x",void 0,f,void 0),y=U.createIndexSignature(void 0,[p],u),g=Vn.ChangeTracker.with(e,x=>x.insertMemberAtStart(t,r,y));return s0(Lk,g,[S.Add_index_signature_for_property_0,a])}function ZOt(e,t){let{parentDeclaration:r,declSourceFile:a,modifierFlags:u,token:f,call:p}=t;if(p===void 0)return;let y=f.text,g=k=>Vn.ChangeTracker.with(e,T=>ZHe(e,T,p,f,k,r,a)),x=[Ks(Lk,g(u&256),[u&256?S.Declare_static_method_0:S.Declare_method_0,y],Lk,S.Add_all_missing_members)];return u&2&&x.unshift(s0(Lk,g(2),[S.Declare_private_method_0,y])),x}function ZHe(e,t,r,a,u,f,p){let y=AT(p,e.program,e.preferences,e.host),g=jr(f)?174:173,x=mwe(g,e,y,r,a,u,f),k=i8t(f,r);k?t.insertNodeAfter(p,k,x):t.insertMemberAtStart(p,f,x),y.writeFixes(t)}function eUe(e,t,{token:r,parentDeclaration:a}){let u=Lt(a.members,g=>{let x=t.getTypeAtLocation(g);return!!(x&&x.flags&402653316)}),f=a.getSourceFile(),p=U.createEnumMember(r,u?U.createStringLiteral(r.text):void 0),y=Lc(a.members);y?e.insertNodeInListAfter(f,y,p,a.members):e.insertMemberAtStart(f,a,p)}function tUe(e,t,r){let a=mm(t.sourceFile,t.preferences),u=AT(t.sourceFile,t.program,t.preferences,t.host),f=r.kind===2?mwe(262,t,u,r.call,mr(r.token),r.modifierFlags,r.parentDeclaration):ase(262,t,a,r.signature,bq(S.Function_not_implemented.message,a),r.token,void 0,void 0,void 0,u);f===void 0&&B.fail("fixMissingFunctionDeclaration codefix got unexpected error."),qh(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,f,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,f),u.writeFixes(e)}function iUe(e,t,r){let a=AT(t.sourceFile,t.program,t.preferences,t.host),u=mm(t.sourceFile,t.preferences),f=t.program.getTypeChecker(),p=r.parentDeclaration.attributes,y=Lt(p.properties,NN),g=_i(r.attributes,T=>{let A=Qoe(t,f,a,u,f.getTypeOfSymbol(T),r.parentDeclaration),P=U.createIdentifier(T.name),R=U.createJsxAttribute(P,U.createJsxExpression(void 0,A));return ic(P,R),R}),x=U.createJsxAttributes(y?[...g,...p.properties]:[...p.properties,...g]),k={prefix:p.pos===p.end?" ":void 0};e.replaceNode(t.sourceFile,p,x,k),a.writeFixes(e)}function nUe(e,t,r){let a=AT(t.sourceFile,t.program,t.preferences,t.host),u=mm(t.sourceFile,t.preferences),f=Oa(t.program.getCompilerOptions()),p=t.program.getTypeChecker(),y=_i(r.properties,x=>{let k=Qoe(t,p,a,u,p.getTypeOfSymbol(x),r.parentDeclaration);return U.createPropertyAssignment(n8t(x,f,u,p),k)}),g={leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,U.createObjectLiteralExpression([...r.parentDeclaration.properties,...y],!0),g),a.writeFixes(e)}function Qoe(e,t,r,a,u,f){if(u.flags&3)return iA();if(u.flags&134217732)return U.createStringLiteral("",a===0);if(u.flags&8)return U.createNumericLiteral(0);if(u.flags&64)return U.createBigIntLiteral("0n");if(u.flags&16)return U.createFalse();if(u.flags&1056){let p=u.symbol.exports?I0(u.symbol.exports.values()):u.symbol,y=t.symbolToExpression(u.symbol.parent?u.symbol.parent:u.symbol,111551,void 0,64);return p===void 0||y===void 0?U.createNumericLiteral(0):U.createPropertyAccessExpression(y,t.symbolToString(p))}if(u.flags&256)return U.createNumericLiteral(u.value);if(u.flags&2048)return U.createBigIntLiteral(u.value);if(u.flags&128)return U.createStringLiteral(u.value,a===0);if(u.flags&512)return u===t.getFalseType()||u===t.getFalseType(!0)?U.createFalse():U.createTrue();if(u.flags&65536)return U.createNull();if(u.flags&1048576)return Le(u.types,y=>Qoe(e,t,r,a,y,f))??iA();if(t.isArrayLikeType(u))return U.createArrayLiteralExpression();if(e8t(u)){let p=_i(t.getPropertiesOfType(u),y=>{let g=Qoe(e,t,r,a,t.getTypeOfSymbol(y),f);return U.createPropertyAssignment(y.name,g)});return U.createObjectLiteralExpression(p,!0)}if(_r(u)&16){if(St(u.symbol.declarations||F,Im(Qy,Z0,pu))===void 0)return iA();let y=t.getSignaturesOfType(u,0);return y===void 0?iA():ase(218,e,a,y[0],bq(S.Function_not_implemented.message,a),void 0,void 0,void 0,f,r)??iA()}if(_r(u)&1){let p=eb(u.symbol);if(p===void 0||tT(p))return iA();let y=Hv(p);return y&&K(y.parameters)?iA():U.createNewExpression(U.createIdentifier(u.symbol.name),void 0,void 0)}return iA()}function iA(){return U.createIdentifier("undefined")}function e8t(e){return e.flags&524288&&(_r(e)&128||e.symbol&&kr(Fh(e.symbol.declarations),L_))}function t8t(e,t,r){let a=e.getContextualType(r.attributes);if(a===void 0)return F;let u=a.getProperties();if(!K(u))return F;let f=new Set;for(let p of r.attributes.properties)if(ry(p)&&f.add(wO(p.name)),NN(p)){let y=e.getTypeAtLocation(p.expression);for(let g of y.getProperties())f.add(g.escapedName)}return Di(u,p=>pp(p.name,t,1)&&!(p.flags&16777216||_u(p)&48||f.has(p.escapedName)))}function i8t(e,t){if(L_(e))return;let r=Ri(t,a=>pu(a)||Ol(a));return r&&r.parent===e?r:void 0}function n8t(e,t,r,a){if(jv(e)){let u=a.symbolToNode(e,111551,void 0,void 0,1);if(u&&Ma(u))return u}return eH(e.name,t,r===0,!1,!1)}function rUe(e){if(Ri(e,jO)){let t=Ri(e.parent,qh);if(t)return t}return en(e)}var Wke="addMissingNewOperator",oUe=[S.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];ha({errorCodes:oUe,getCodeActions(e){let{sourceFile:t,span:r}=e,a=Vn.ChangeTracker.with(e,u=>sUe(u,t,r));return[Ks(Wke,a,S.Add_missing_new_operator_to_call,Wke,S.Add_missing_new_operator_to_all_calls)]},fixIds:[Wke],getAllCodeActions:e=>Ec(e,oUe,(t,r)=>sUe(t,e.sourceFile,r))});function sUe(e,t,r){let a=ea(r8t(t,r),Gs),u=U.createNewExpression(a.expression,a.typeArguments,a.arguments);e.replaceNode(t,a,u)}function r8t(e,t){let r=go(e,t.start),a=Vl(t);for(;r.endtse(y,e.program,e.preferences,e.host,a,u)),[K(u)>1?S.Add_missing_parameters_to_0:S.Add_missing_parameter_to_0,r],Zoe,S.Add_all_missing_parameters)),K(f)&&hi(p,Ks(ese,Vn.ChangeTracker.with(e,y=>tse(y,e.program,e.preferences,e.host,a,f)),[K(f)>1?S.Add_optional_parameters_to_0:S.Add_optional_parameter_to_0,r],ese,S.Add_all_optional_parameters)),p},getAllCodeActions:e=>Ec(e,aUe,(t,r)=>{let a=cUe(e.sourceFile,e.program,r.start);if(a){let{declarations:u,newParameters:f,newOptionalParameters:p}=a;e.fixId===Zoe&&tse(t,e.program,e.preferences,e.host,u,f),e.fixId===ese&&tse(t,e.program,e.preferences,e.host,u,p)}})});function cUe(e,t,r){let a=go(e,r),u=Ri(a,Gs);if(u===void 0||K(u.arguments)===0)return;let f=t.getTypeChecker(),p=f.getTypeAtLocation(u.expression),y=Di(p.symbol.declarations,lUe);if(y===void 0)return;let g=Lc(y);if(g===void 0||g.body===void 0||i6(t,g.getSourceFile()))return;let x=o8t(g);if(x===void 0)return;let k=[],T=[],A=K(g.parameters),P=K(u.arguments);if(A>P)return;let R=[g,...a8t(g,y)];for(let W=0,z=0,q=0;W{let g=en(y),x=AT(g,t,r,a);K(y.parameters)?e.replaceNodeRangeWithNodes(g,Ta(y.parameters),pa(y.parameters),uUe(x,p,y,f),{joiner:", ",indentation:0,leadingTriviaOption:Vn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Vn.TrailingTriviaOption.Include}):re(uUe(x,p,y,f),(k,T)=>{K(y.parameters)===0&&T===0?e.insertNodeAt(g,y.parameters.end,k):e.insertNodeAtEndOfList(g,y.parameters,k)}),x.writeFixes(e)})}function lUe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function uUe(e,t,r,a){let u=_i(r.parameters,f=>U.createParameterDeclaration(f.modifiers,f.dotDotDotToken,f.name,f.questionToken,f.type,f.initializer));for(let{pos:f,declaration:p}of a){let y=f>0?u[f-1]:void 0;u.splice(f,0,U.updateParameterDeclaration(p,p.modifiers,p.dotDotDotToken,p.name,y&&y.questionToken?U.createToken(58):p.questionToken,u8t(e,p.type,t),p.initializer))}return u}function a8t(e,t){let r=[];for(let a of t)if(c8t(a)){if(K(a.parameters)===K(e.parameters)){r.push(a);continue}if(K(a.parameters)>K(e.parameters))return[]}return r}function c8t(e){return lUe(e)&&e.body===void 0}function dUe(e,t,r){return U.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function l8t(e,t){return K(e)&&Lt(e,r=>tEc(e,_Ue,(t,r,a)=>{let u=mUe(r.file,r.start);if(u!==void 0)switch(e.fixId){case zke:{let f=hUe(u,e.host,r.code);f&&a.push(pUe(r.file.fileName,f));break}default:B.fail(`Bad fixId: ${e.fixId}`)}})});function pUe(e,t){return{type:"install package",file:e,packageName:t}}function mUe(e,t){let r=kr(go(e,t),Da);if(!r)return;let a=r.text,{packageName:u}=aU(a);return Od(u)?void 0:u}function hUe(e,t,r){var a;return r===fUe?cy.nodeCoreModules.has(e)?"@types/node":void 0:(a=t.isKnownTypesPackageName)!=null&&a.call(t,e)?lU(e):void 0}var gUe=[S.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,S.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,S.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,S.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,S.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,S.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],Vke="fixClassDoesntImplementInheritedAbstractMember";ha({errorCodes:gUe,getCodeActions:function(t){let{sourceFile:r,span:a}=t,u=Vn.ChangeTracker.with(t,f=>vUe(yUe(r,a.start),r,t,f,t.preferences));return u.length===0?void 0:[Ks(Vke,u,S.Implement_inherited_abstract_class,Vke,S.Implement_all_inherited_abstract_classes)]},fixIds:[Vke],getAllCodeActions:function(t){let r=new Map;return Ec(t,gUe,(a,u)=>{let f=yUe(u.file,u.start);Uh(r,ac(f))&&vUe(f,t.sourceFile,t,a,t.preferences)})}});function yUe(e,t){let r=go(e,t);return ea(r.parent,jr)}function vUe(e,t,r,a,u){let f=J0(e),p=r.program.getTypeChecker(),y=p.getTypeAtLocation(f),g=p.getPropertiesOfType(y).filter(f8t),x=AT(t,r.program,u,r.host);pwe(e,g,t,r,u,x,k=>a.insertMemberAtStart(t,e,k)),x.writeFixes(a)}function f8t(e){let t=oS(Ta(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Hke="classSuperMustPrecedeThisAccess",bUe=[S.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];ha({errorCodes:bUe,getCodeActions(e){let{sourceFile:t,span:r}=e,a=xUe(t,r.start);if(!a)return;let{constructor:u,superCall:f}=a,p=Vn.ChangeTracker.with(e,y=>SUe(y,t,u,f));return[Ks(Hke,p,S.Make_super_call_the_first_statement_in_the_constructor,Hke,S.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Hke],getAllCodeActions(e){let{sourceFile:t}=e,r=new Map;return Ec(e,bUe,(a,u)=>{let f=xUe(u.file,u.start);if(!f)return;let{constructor:p,superCall:y}=f;Uh(r,ac(p.parent))&&SUe(a,t,p,y)})}});function SUe(e,t,r,a){e.insertNodeAtConstructorStart(t,r,a),e.delete(t,a)}function xUe(e,t){let r=go(e,t);if(r.kind!==110)return;let a=_m(r),u=CUe(a.body);return u&&!u.expression.arguments.some(f=>lr(f)&&f.expression===r)?{constructor:a,superCall:u}:void 0}function CUe(e){return Ud(e)&&oE(e.expression)?e:vs(e)?void 0:ws(e,CUe)}var Uke="constructorForDerivedNeedSuperCall",kUe=[S.Constructors_for_derived_classes_must_contain_a_super_call.code];ha({errorCodes:kUe,getCodeActions(e){let{sourceFile:t,span:r}=e,a=wUe(t,r.start),u=Vn.ChangeTracker.with(e,f=>TUe(f,t,a));return[Ks(Uke,u,S.Add_missing_super_call,Uke,S.Add_all_missing_super_calls)]},fixIds:[Uke],getAllCodeActions:e=>Ec(e,kUe,(t,r)=>TUe(t,e.sourceFile,wUe(r.file,r.start)))});function wUe(e,t){let r=go(e,t);return B.assert(Ol(r.parent),"token should be at the constructor declaration"),r.parent}function TUe(e,t,r){let a=U.createExpressionStatement(U.createCallExpression(U.createSuper(),void 0,F));e.insertNodeAtConstructorStart(t,r,a)}var EUe="fixEnableJsxFlag",DUe=[S.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];ha({errorCodes:DUe,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let a=Vn.ChangeTracker.with(t,u=>IUe(u,r));return[s0(EUe,a,S.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[EUe],getAllCodeActions:e=>Ec(e,DUe,t=>{let{configFile:r}=e.program.getCompilerOptions();r!==void 0&&IUe(t,r)})});function IUe(e,t){vwe(e,t,"jsx",U.createStringLiteral("react"))}var Jke="fixNaNEquality",NUe=[S.This_condition_will_always_return_0.code];ha({errorCodes:NUe,getCodeActions(e){let{sourceFile:t,span:r,program:a}=e,u=AUe(a,t,r);if(u===void 0)return;let{suggestion:f,expression:p,arg:y}=u,g=Vn.ChangeTracker.with(e,x=>PUe(x,t,y,p));return[Ks(Jke,g,[S.Use_0,f],Jke,S.Use_Number_isNaN_in_all_conditions)]},fixIds:[Jke],getAllCodeActions:e=>Ec(e,NUe,(t,r)=>{let a=AUe(e.program,r.file,_f(r.start,r.length));a&&PUe(t,r.file,a.arg,a.expression)})});function AUe(e,t,r){let a=St(e.getSemanticDiagnostics(t),p=>p.start===r.start&&p.length===r.length);if(a===void 0||a.relatedInformation===void 0)return;let u=St(a.relatedInformation,p=>p.code===S.Did_you_mean_0.code);if(u===void 0||u.file===void 0||u.start===void 0||u.length===void 0)return;let f=Swe(u.file,_f(u.start,u.length));if(f!==void 0&&Mt(f)&&Yn(f.parent))return{suggestion:_8t(u.messageText),expression:f.parent,arg:f}}function PUe(e,t,r,a){let u=U.createCallExpression(U.createPropertyAccessExpression(U.createIdentifier("Number"),U.createIdentifier("isNaN")),void 0,[r]),f=a.operatorToken.kind;e.replaceNode(t,a,f===38||f===36?U.createPrefixUnaryExpression(54,u):u)}function _8t(e){let[,t]=ay(e,` +`,0).match(/'(.*)'/)||[];return t}ha({errorCodes:[S.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,S.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,S.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let r=t.program.getCompilerOptions(),{configFile:a}=r;if(a===void 0)return;let u=[],f=p_(r);if(f>=5&&f<99){let x=Vn.ChangeTracker.with(t,k=>{vwe(k,a,"module",U.createStringLiteral("esnext"))});u.push(s0("fixModuleOption",x,[S.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let y=Oa(r);if(y<4||y>99){let x=Vn.ChangeTracker.with(t,k=>{if(!U3(a))return;let A=[["target",U.createStringLiteral("es2017")]];f===1&&A.push(["module",U.createStringLiteral("commonjs")]),ywe(k,a,A)});u.push(s0("fixTargetOption",x,[S.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return u.length?u:void 0}});var qke="fixPropertyAssignment",LUe=[S.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];ha({errorCodes:LUe,fixIds:[qke],getCodeActions(e){let{sourceFile:t,span:r}=e,a=FUe(t,r.start),u=Vn.ChangeTracker.with(e,f=>OUe(f,e.sourceFile,a));return[Ks(qke,u,[S.Change_0_to_1,"=",":"],qke,[S.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ec(e,LUe,(t,r)=>OUe(t,r.file,FUe(r.file,r.start)))});function OUe(e,t,r){e.replaceNode(t,r,U.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function FUe(e,t){return ea(go(e,t).parent,jf)}var $ke="extendsInterfaceBecomesImplements",MUe=[S.Cannot_extend_an_interface_0_Did_you_mean_implements.code];ha({errorCodes:MUe,getCodeActions(e){let{sourceFile:t}=e,r=RUe(t,e.span.start);if(!r)return;let{extendsToken:a,heritageClauses:u}=r,f=Vn.ChangeTracker.with(e,p=>BUe(p,t,a,u));return[Ks($ke,f,S.Change_extends_to_implements,$ke,S.Change_all_extended_interfaces_to_implements)]},fixIds:[$ke],getAllCodeActions:e=>Ec(e,MUe,(t,r)=>{let a=RUe(r.file,r.start);a&&BUe(t,r.file,a.extendsToken,a.heritageClauses)})});function RUe(e,t){let r=go(e,t),a=Zd(r).heritageClauses,u=a[0].getFirstToken();return u.kind===96?{extendsToken:u,heritageClauses:a}:void 0}function BUe(e,t,r,a){if(e.replaceNode(t,r,U.createToken(119)),a.length===2&&a[0].token===96&&a[1].token===119){let u=a[1].getFirstToken(),f=u.getFullStart();e.replaceRange(t,{pos:f,end:f},U.createToken(28));let p=t.text,y=u.end;for(;yVUe(u,t,r));return[Ks(Gke,a,[S.Add_0_to_unresolved_variable,r.className||"this"],Gke,S.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[Gke],getAllCodeActions:e=>Ec(e,WUe,(t,r)=>{let a=zUe(r.file,r.start,r.code);a&&VUe(t,e.sourceFile,a)})});function zUe(e,t,r){let a=go(e,t);if(et(a)||xo(a))return{node:a,className:r===jUe?Zd(a).name.text:void 0}}function VUe(e,t,{node:r,className:a}){Qp(r),e.replaceNode(t,r,U.createPropertyAccessExpression(a?U.createIdentifier(a):U.createThis(),r))}var Kke="fixInvalidJsxCharacters_expression",ise="fixInvalidJsxCharacters_htmlEntity",HUe=[S.Unexpected_token_Did_you_mean_or_gt.code,S.Unexpected_token_Did_you_mean_or_rbrace.code];ha({errorCodes:HUe,fixIds:[Kke,ise],getCodeActions(e){let{sourceFile:t,preferences:r,span:a}=e,u=Vn.ChangeTracker.with(e,p=>Xke(p,r,t,a.start,!1)),f=Vn.ChangeTracker.with(e,p=>Xke(p,r,t,a.start,!0));return[Ks(Kke,u,S.Wrap_invalid_character_in_an_expression_container,Kke,S.Wrap_all_invalid_characters_in_an_expression_container),Ks(ise,f,S.Convert_invalid_character_to_its_html_entity_code,ise,S.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ec(e,HUe,(t,r)=>Xke(t,e.preferences,r.file,r.start,e.fixId===ise))}});var UUe={">":">","}":"}"};function p8t(e){return Nc(UUe,e)}function Xke(e,t,r,a,u){let f=r.getText()[a];if(!p8t(f))return;let p=u?UUe[f]:`{${I8(r,t,f)}}`;e.replaceRangeWithText(r,{pos:a,end:a+1},p)}var nse="deleteUnmatchedParameter",JUe="renameUnmatchedParameter",qUe=[S.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];ha({fixIds:[nse,JUe],errorCodes:qUe,getCodeActions:function(t){let{sourceFile:r,span:a}=t,u=[],f=$Ue(r,a.start);if(f)return hi(u,m8t(t,f)),hi(u,h8t(t,f)),u},getAllCodeActions:function(t){let r=new Map;return ZN(Vn.ChangeTracker.with(t,a=>{eA(t,qUe,({file:u,start:f})=>{let p=$Ue(u,f);p&&r.set(p.signature,hi(r.get(p.signature),p.jsDocParameterTag))}),r.forEach((u,f)=>{if(t.fixId===nse){let p=new Set(u);a.filterJSDocTags(f.getSourceFile(),f,y=>!p.has(y))}})}))}});function m8t(e,{name:t,jsDocHost:r,jsDocParameterTag:a}){let u=Vn.ChangeTracker.with(e,f=>f.filterJSDocTags(e.sourceFile,r,p=>p!==a));return Ks(nse,u,[S.Delete_unused_param_tag_0,t.getText(e.sourceFile)],nse,S.Delete_all_unused_param_tags)}function h8t(e,{name:t,jsDocHost:r,signature:a,jsDocParameterTag:u}){if(!K(a.parameters))return;let f=e.sourceFile,p=YC(a),y=new Set;for(let T of p)ph(T)&&et(T.name)&&y.add(T.name.escapedText);let g=Le(a.parameters,T=>et(T.name)&&!y.has(T.name.escapedText)?T.name.getText(f):void 0);if(g===void 0)return;let x=U.updateJSDocParameterTag(u,u.tagName,U.createIdentifier(g),u.isBracketed,u.typeExpression,u.isNameFirst,u.comment),k=Vn.ChangeTracker.with(e,T=>T.replaceJSDocComment(f,r,_i(p,A=>A===u?x:A)));return s0(JUe,k,[S.Rename_param_tag_name_0_to_1,t.getText(f),g])}function $Ue(e,t){let r=go(e,t);if(r.parent&&ph(r.parent)&&et(r.parent.name)){let a=r.parent,u=Kw(a),f=ok(a);if(u&&f)return{jsDocHost:u,signature:f,name:r.parent.name,jsDocParameterTag:a}}}var Yke="fixUnreferenceableDecoratorMetadata",g8t=[S.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];ha({errorCodes:g8t,getCodeActions:e=>{let t=y8t(e.sourceFile,e.program,e.span.start);if(!t)return;let r=Vn.ChangeTracker.with(e,f=>t.kind===276&&b8t(f,e.sourceFile,t,e.program)),a=Vn.ChangeTracker.with(e,f=>v8t(f,e.sourceFile,t,e.program)),u;return r.length&&(u=hi(u,s0(Yke,r,S.Convert_named_imports_to_namespace_import))),a.length&&(u=hi(u,s0(Yke,a,S.Use_import_type))),u},fixIds:[Yke]});function y8t(e,t,r){let a=kr(go(e,r),et);if(!a||a.parent.kind!==183)return;let f=t.getTypeChecker().getSymbolAtLocation(a);return St(f?.declarations||F,Im(Zg,F_,Dd))}function v8t(e,t,r,a){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}let u=r.kind===273?r:r.parent.parent;if(u.name&&u.namedBindings)return;let f=a.getTypeChecker();rge(u,y=>{if(hf(y.symbol,f).flags&111551)return!0})||e.insertModifierBefore(t,156,u)}function b8t(e,t,r,a){YN.doChangeNamedToNamespaceOrDefault(t,a,e,r.parent)}var yq="unusedIdentifier",Qke="unusedIdentifier_prefix",Zke="unusedIdentifier_delete",rse="unusedIdentifier_deleteImports",ewe="unusedIdentifier_infer",GUe=[S._0_is_declared_but_its_value_is_never_read.code,S._0_is_declared_but_never_used.code,S.Property_0_is_declared_but_its_value_is_never_read.code,S.All_imports_in_import_declaration_are_unused.code,S.All_destructured_elements_are_unused.code,S.All_variables_are_unused.code,S.All_type_parameters_are_unused.code];ha({errorCodes:GUe,getCodeActions(e){let{errorCode:t,sourceFile:r,program:a,cancellationToken:u}=e,f=a.getTypeChecker(),p=a.getSourceFiles(),y=go(r,e.span.start);if(Gh(y))return[B8(Vn.ChangeTracker.with(e,T=>T.delete(r,y)),S.Remove_template_tag)];if(y.kind===30){let T=Vn.ChangeTracker.with(e,A=>XUe(A,r,y));return[B8(T,S.Remove_type_parameters)]}let g=YUe(y);if(g){let T=Vn.ChangeTracker.with(e,A=>A.delete(r,g));return[Ks(yq,T,[S.Remove_import_from_0,Jge(g)],rse,S.Delete_all_unused_imports)]}else if(twe(y)){let T=Vn.ChangeTracker.with(e,A=>ose(r,y,A,f,p,a,u,!1));if(T.length)return[Ks(yq,T,[S.Remove_unused_declaration_for_Colon_0,y.getText(r)],rse,S.Delete_all_unused_imports)]}if(Om(y.parent)||fS(y.parent)){if(To(y.parent.parent)){let T=y.parent.elements,A=[T.length>1?S.Remove_unused_declarations_for_Colon_0:S.Remove_unused_declaration_for_Colon_0,_i(T,P=>P.getText(r)).join(", ")];return[B8(Vn.ChangeTracker.with(e,P=>S8t(P,r,y.parent)),A)]}return[B8(Vn.ChangeTracker.with(e,T=>x8t(e,T,r,y.parent)),S.Remove_unused_destructuring_declaration)]}if(QUe(r,y))return[B8(Vn.ChangeTracker.with(e,T=>ZUe(T,r,y.parent)),S.Remove_variable_statement)];if(et(y)&&xu(y.parent))return[B8(Vn.ChangeTracker.with(e,T=>I8t(T,r,y.parent)),[S.Remove_unused_declaration_for_Colon_0,y.getText(r)])];let x=[];if(y.kind===140){let T=Vn.ChangeTracker.with(e,P=>KUe(P,r,y)),A=ea(y.parent,hE).typeParameter.name.text;x.push(Ks(yq,T,[S.Replace_infer_0_with_unknown,A],ewe,S.Replace_all_unused_infer_with_unknown))}else{let T=Vn.ChangeTracker.with(e,A=>ose(r,y,A,f,p,a,u,!1));if(T.length){let A=Ma(y.parent)?y.parent:y;x.push(B8(T,[S.Remove_unused_declaration_for_Colon_0,A.getText(r)]))}}let k=Vn.ChangeTracker.with(e,T=>eJe(T,t,r,y));return k.length&&x.push(Ks(yq,k,[S.Prefix_0_with_an_underscore,y.getText(r)],Qke,S.Prefix_all_unused_declarations_with_where_possible)),x},fixIds:[Qke,Zke,rse,ewe],getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:a}=e,u=r.getTypeChecker(),f=r.getSourceFiles();return Ec(e,GUe,(p,y)=>{let g=go(t,y.start);switch(e.fixId){case Qke:eJe(p,y.code,t,g);break;case rse:{let x=YUe(g);x?p.delete(t,x):twe(g)&&ose(t,g,p,u,f,r,a,!0);break}case Zke:{if(g.kind===140||twe(g))break;if(Gh(g))p.delete(t,g);else if(g.kind===30)XUe(p,t,g);else if(Om(g.parent)){if(g.parent.parent.initializer)break;(!To(g.parent.parent)||tJe(g.parent.parent,u,f))&&p.delete(t,g.parent.parent)}else{if(fS(g.parent.parent)&&g.parent.parent.parent.initializer)break;QUe(t,g)?ZUe(p,t,g.parent):ose(t,g,p,u,f,r,a,!0)}break}case ewe:g.kind===140&&KUe(p,t,g);break;default:B.fail(JSON.stringify(e.fixId))}})}});function KUe(e,t,r){e.replaceNode(t,r.parent,U.createKeywordTypeNode(159))}function B8(e,t){return Ks(yq,e,t,Zke,S.Delete_all_unused_declarations)}function XUe(e,t,r){e.delete(t,B.checkDefined(ea(r.parent,tZ).typeParameters,"The type parameter to delete should exist"))}function twe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function YUe(e){return e.kind===102?kr(e.parent,ql):void 0}function QUe(e,t){return ef(t.parent)&&Ta(t.parent.getChildren(e))===t}function ZUe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function S8t(e,t,r){re(r.elements,a=>e.delete(t,a))}function x8t(e,t,r,{parent:a}){if(Ur(a)&&a.initializer&&zw(a.initializer))if(ef(a.parent)&&K(a.parent.declarations)>1){let u=a.parent.parent,f=u.getStart(r),p=u.end;t.delete(r,a),t.insertNodeAt(r,p,a.initializer,{prefix:cb(e.host,e.formatContext.options)+r.text.slice(PJ(r.text,f-1),f),suffix:e9(r)?";":""})}else t.replaceNode(r,a.parent,a.initializer);else t.delete(r,a)}function eJe(e,t,r,a){t!==S.Property_0_is_declared_but_its_value_is_never_read.code&&(a.kind===140&&(a=ea(a.parent,hE).typeParameter.name),et(a)&&C8t(a)&&(e.replaceNode(r,a,U.createIdentifier(`_${a.text}`)),To(a.parent)&&LP(a.parent).forEach(u=>{et(u.name)&&e.replaceNode(r,u.name,U.createIdentifier(`_${u.name.text}`))})))}function C8t(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function ose(e,t,r,a,u,f,p,y){k8t(t,r,e,a,u,f,p,y),et(t)&&ol.Core.eachSymbolReferenceInFile(t,a,e,g=>{lr(g.parent)&&g.parent.name===g&&(g=g.parent),!y&&D8t(g)&&r.delete(e,g.parent.parent)})}function k8t(e,t,r,a,u,f,p,y){let{parent:g}=e;if(To(g))w8t(t,r,g,a,u,f,p,y);else if(!(y&&et(e)&&ol.Core.isSymbolReferencedInFile(e,a,r))){let x=Zg(g)?e:Ma(g)?g.parent:g;B.assert(x!==r,"should not delete whole source file"),t.delete(r,x)}}function w8t(e,t,r,a,u,f,p,y=!1){if(T8t(a,t,r,u,f,p,y))if(r.modifiers&&r.modifiers.length>0&&(!et(r.name)||ol.Core.isSymbolReferencedInFile(r.name,a,t)))for(let g of r.modifiers)xa(g)&&e.deleteModifier(t,g);else!r.initializer&&tJe(r,a,u)&&e.delete(t,r)}function tJe(e,t,r){let a=e.parent.parameters.indexOf(e);return!ol.Core.someSignatureUsage(e.parent,r,t,(u,f)=>!f||f.arguments.length>a)}function T8t(e,t,r,a,u,f,p){let{parent:y}=r;switch(y.kind){case 174:case 176:let g=y.parameters.indexOf(r),x=pu(y)?y.name:y,k=ol.Core.getReferencedSymbolsForNode(y.pos,x,u,a,f);if(k){for(let T of k)for(let A of T.references)if(A.kind===ol.EntryKind.Node){let P=PO(A.node)&&Gs(A.node.parent)&&A.node.parent.arguments.length>g,R=lr(A.node.parent)&&PO(A.node.parent.expression)&&Gs(A.node.parent.parent)&&A.node.parent.parent.arguments.length>g,W=(pu(A.node.parent)||Z0(A.node.parent))&&A.node.parent!==r.parent&&A.node.parent.parameters.length>g;if(P||R||W)return!1}}return!0;case 262:return y.name&&E8t(e,t,y.name)?iJe(y,r,p):!0;case 218:case 219:return iJe(y,r,p);case 178:return!1;case 177:return!0;default:return B.failBadSyntaxKind(y)}}function E8t(e,t,r){return!!ol.Core.eachSymbolReferenceInFile(r,e,t,a=>et(a)&&Gs(a.parent)&&a.parent.arguments.includes(a))}function iJe(e,t,r){let a=e.parameters,u=a.indexOf(t);return B.assert(u!==-1,"The parameter should already be in the list"),r?a.slice(u+1).every(f=>et(f.name)&&!f.symbol.isReferenced):u===a.length-1}function D8t(e){return(Yn(e.parent)&&e.parent.left===e||(Wee(e.parent)||mk(e.parent))&&e.parent.operand===e)&&Ud(e.parent.parent)}function I8t(e,t,r){let a=r.symbol.declarations;if(a)for(let u of a)e.delete(t,u)}var iwe="fixUnreachableCode",nJe=[S.Unreachable_code_detected.code];ha({errorCodes:nJe,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;let r=Vn.ChangeTracker.with(e,a=>rJe(a,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[Ks(iwe,r,S.Remove_unreachable_code,iwe,S.Remove_all_unreachable_code)]},fixIds:[iwe],getAllCodeActions:e=>Ec(e,nJe,(t,r)=>rJe(t,r.file,r.start,r.length,r.code))});function rJe(e,t,r,a,u){let f=go(t,r),p=Ri(f,_o);if(p.getStart(t)!==f.getStart(t)){let g=JSON.stringify({statementKind:B.formatSyntaxKind(p.kind),tokenKind:B.formatSyntaxKind(f.kind),errorCode:u,start:r,length:a});B.fail("Token and statement should start at the same point. "+g)}let y=(Ds(p.parent)?p.parent:p).parent;if(!Ds(p.parent)||p===Ta(p.parent.statements))switch(y.kind){case 245:if(y.elseStatement){if(Ds(p.parent))break;e.replaceNode(t,p,U.createBlock(F));return}case 247:case 248:e.delete(t,y);return}if(Ds(p.parent)){let g=r+a,x=B.checkDefined(N8t(pee(p.parent.statements,p),k=>k.possJe(r,e.sourceFile,e.span.start));return[Ks(nwe,t,S.Remove_unused_label,nwe,S.Remove_all_unused_labels)]},fixIds:[nwe],getAllCodeActions:e=>Ec(e,oJe,(t,r)=>sJe(t,r.file,r.start))});function sJe(e,t,r){let a=go(t,r),u=ea(a.parent,Px),f=a.getStart(t),p=u.statement.getStart(t),y=ch(f,p,t)?p:Ea(t.text,Tc(u,59,t).end,!0);e.deleteRange(t,{pos:f,end:y})}var aJe="fixJSDocTypes_plain",rwe="fixJSDocTypes_nullable",cJe=[S.JSDoc_types_can_only_be_used_inside_documentation_comments.code,S._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,S._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];ha({errorCodes:cJe,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),a=uJe(t,e.span.start,r);if(!a)return;let{typeNode:u,type:f}=a,p=u.getText(t),y=[g(f,aJe,S.Change_all_jsdoc_style_types_to_TypeScript)];return u.kind===314&&y.push(g(f,rwe,S.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),y;function g(x,k,T){let A=Vn.ChangeTracker.with(e,P=>lJe(P,t,u,x,r));return Ks("jdocTypes",A,[S.Change_0_to_1,p,r.typeToString(x)],k,T)}},fixIds:[aJe,rwe],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:a}=e,u=r.getTypeChecker();return Ec(e,cJe,(f,p)=>{let y=uJe(p.file,p.start,u);if(!y)return;let{typeNode:g,type:x}=y,k=g.kind===314&&t===rwe?u.getNullableType(x,32768):x;lJe(f,a,g,k,u)})}});function lJe(e,t,r,a,u){e.replaceNode(t,r,u.typeToTypeNode(a,r,void 0))}function uJe(e,t,r){let a=Ri(go(e,t),A8t),u=a&&a.type;return u&&{typeNode:u,type:P8t(r,u)}}function A8t(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function P8t(e,t){if(C4(t)){let r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(hi([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var owe="fixMissingCallParentheses",dJe=[S.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];ha({errorCodes:dJe,fixIds:[owe],getCodeActions(e){let{sourceFile:t,span:r}=e,a=_Je(t,r.start);if(!a)return;let u=Vn.ChangeTracker.with(e,f=>fJe(f,e.sourceFile,a));return[Ks(owe,u,S.Add_missing_call_parentheses,owe,S.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ec(e,dJe,(t,r)=>{let a=_Je(r.file,r.start);a&&fJe(t,r.file,a)})});function fJe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function _Je(e,t){let r=go(e,t);if(lr(r.parent)){let a=r.parent;for(;lr(a.parent);)a=a.parent;return a.name}if(et(r))return r}var pJe="fixMissingTypeAnnotationOnExports",swe="add-annotation",awe="add-type-assertion",L8t="extract-expression",mJe=[S.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,S.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,S.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,S.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,S.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,S.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,S.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,S.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,S.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,S.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,S.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,S.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,S.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,S.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,S.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,S.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,S.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,S.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,S.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations.code,S.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,S.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],O8t=new Set([177,174,172,262,218,219,260,169,277,263,206,207]),hJe=531469,gJe=1;ha({errorCodes:mJe,fixIds:[pJe],getCodeActions(e){let t=[];return j8(swe,t,e,0,r=>r.addTypeAnnotation(e.span)),j8(swe,t,e,1,r=>r.addTypeAnnotation(e.span)),j8(swe,t,e,2,r=>r.addTypeAnnotation(e.span)),j8(awe,t,e,0,r=>r.addInlineAssertion(e.span)),j8(awe,t,e,1,r=>r.addInlineAssertion(e.span)),j8(awe,t,e,2,r=>r.addInlineAssertion(e.span)),j8(L8t,t,e,0,r=>r.extractAsVariable(e.span)),t},getAllCodeActions:e=>{let t=yJe(e,0,r=>{eA(e,mJe,a=>{r.addTypeAnnotation(a)})});return ZN(t.textChanges)}});function j8(e,t,r,a,u){let f=yJe(r,a,u);f.result&&f.textChanges.length&&t.push(Ks(e,f.textChanges,f.result,pJe,S.Add_all_missing_type_annotations))}function yJe(e,t,r){let a={typeNode:void 0,mutatedTarget:!1},u=Vn.ChangeTracker.fromContext(e),f=e.sourceFile,p=e.program,y=p.getTypeChecker(),g=Oa(p.getCompilerOptions()),x=AT(e.sourceFile,e.program,e.preferences,e.host),k=new Set,T=new Set,A=Bx({preserveSourceNewlines:!1}),P=r({addTypeAnnotation:R,addInlineAssertion:$,extractAsVariable:te});return x.writeFixes(u),{result:P,textChanges:u.getChanges()};function R(Ue){e.cancellationToken.throwIfCancellationRequested();let gt=go(f,Ue.start),xt=ne(gt);if(xt)return xu(xt)?W(xt):_e(xt);let nt=Ge(gt);if(nt)return _e(nt)}function W(Ue){var gt;if(T?.has(Ue))return;T?.add(Ue);let xt=y.getTypeAtLocation(Ue),nt=y.getPropertiesOfType(xt);if(!Ue.name||nt.length===0)return;let At=[];for(let bn of nt)pp(bn.name,Oa(p.getCompilerOptions()))&&(bn.valueDeclaration&&Ur(bn.valueDeclaration)||At.push(U.createVariableStatement([U.createModifier(95)],U.createVariableDeclarationList([U.createVariableDeclaration(bn.name,void 0,Ae(y.getTypeOfSymbol(bn),Ue),void 0)]))));if(At.length===0)return;let ci=[];(gt=Ue.modifiers)!=null&>.some(bn=>bn.kind===95)&&ci.push(U.createModifier(95)),ci.push(U.createModifier(138));let Fi=U.createModuleDeclaration(ci,Ue.name,U.createModuleBlock(At),101441696);return u.insertNodeAfter(f,Ue,Fi),[S.Annotate_types_of_properties_expando_function_in_a_namespace]}function z(Ue){return!Xc(Ue)&&!Gs(Ue)&&!ba(Ue)&&!yf(Ue)}function q(Ue,gt){return z(Ue)&&(Ue=U.createParenthesizedExpression(Ue)),U.createAsExpression(Ue,gt)}function G(Ue,gt){return z(Ue)&&(Ue=U.createParenthesizedExpression(Ue)),U.createAsExpression(U.createSatisfiesExpression(Ue,_c(gt)),gt)}function $(Ue){e.cancellationToken.throwIfCancellationRequested();let gt=go(f,Ue.start);if(ne(gt))return;let nt=Ke(gt,Ue);if(!nt||QI(nt)||QI(nt.parent))return;let At=Mt(nt),ci=jf(nt);if(!ci&&mf(nt)||Ri(nt,Rs)||Ri(nt,_S)||At&&(Ri(nt,$p)||Ri(nt,io))||fh(nt))return;let Fi=Ri(nt,Ur),bn=Fi&&y.getTypeAtLocation(Fi);if(bn&&bn.flags&8192||!(At||ci))return;let{typeNode:an,mutatedTarget:ni}=Se(nt,bn);if(!(!an||ni))return ci?u.insertNodeAt(f,nt.end,q(_c(nt.name),an),{prefix:": "}):At?u.replaceNode(f,nt,G(_c(nt),an)):B.assertNever(nt),[S.Add_satisfies_and_an_inline_type_assertion_with_0,Be(an)]}function te(Ue){e.cancellationToken.throwIfCancellationRequested();let gt=go(f,Ue.start),xt=Ke(gt,Ue);if(!xt||QI(xt)||QI(xt.parent)||!Mt(xt))return;if(yf(xt))return u.replaceNode(f,xt,q(xt,U.createTypeReferenceNode("const"))),[S.Mark_array_literal_as_const];let At=Ri(xt,ed);if(At){if(At===xt.parent&&Xc(xt))return;let ci=U.createUniqueName(uCe(xt,f,y,f),16),Fi=xt,bn=xt;if(fh(Fi)&&(Fi=Ky(Fi.parent),Oe(Fi.parent)?bn=Fi=Fi.parent:bn=q(Fi,U.createTypeReferenceNode("const"))),Xc(Fi))return;let an=U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(ci,void 0,void 0,bn)],2)),ni=Ri(xt,_o);return u.insertNodeBefore(f,ni,an),u.replaceNode(f,Fi,U.createAsExpression(U.cloneNode(ci),U.createTypeQueryNode(U.cloneNode(ci)))),[S.Extract_to_variable_and_replace_with_0_as_typeof_0,Be(ci)]}}function ne(Ue){let gt=Ri(Ue,xt=>_o(xt)?"quit":pN(xt));if(gt&&pN(gt)){let xt=gt;if(Yn(xt)&&(xt=xt.left,!pN(xt)))return;let nt=y.getTypeAtLocation(xt.expression);if(!nt)return;let At=y.getPropertiesOfType(nt);if(Lt(At,ci=>ci.valueDeclaration===gt||ci.valueDeclaration===gt.parent)){let ci=nt.symbol.valueDeclaration;if(ci){if(Ex(ci)&&Ur(ci.parent))return ci.parent;if(xu(ci))return ci}}}}function _e(Ue){if(!k?.has(Ue))switch(k?.add(Ue),Ue.kind){case 169:case 172:case 260:return Tt(Ue);case 219:case 218:case 262:case 174:case 177:return ce(Ue,f);case 277:return ae(Ue);case 263:return Ce(Ue);case 206:case 207:return ue(Ue);default:throw new Error(`Cannot find a fix for the given node ${Ue.kind}`)}}function ce(Ue,gt){if(Ue.type)return;let{typeNode:xt}=Se(Ue);if(xt)return u.tryInsertTypeAnnotation(gt,Ue,xt),[S.Add_return_type_0,Be(xt)]}function ae(Ue){if(Ue.isExportEquals)return;let{typeNode:gt}=Se(Ue.expression);if(!gt)return;let xt=U.createUniqueName("_default");return u.replaceNodeWithNodes(f,Ue,[U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(xt,void 0,gt,Ue.expression)],2)),U.updateExportAssignment(Ue,Ue?.modifiers,xt)]),[S.Extract_default_export_to_variable]}function Ce(Ue){var gt,xt;let nt=(gt=Ue.heritageClauses)==null?void 0:gt.find(Ci=>Ci.token===96),At=nt?.types[0];if(!At)return;let{typeNode:ci}=Se(At.expression);if(!ci)return;let Fi=U.createUniqueName(Ue.name?Ue.name.text+"Base":"Anonymous",16),bn=U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(Fi,void 0,ci,At.expression)],2));u.insertNodeBefore(f,Ue,bn);let an=lx(f.text,At.end),ni=((xt=an?.[an.length-1])==null?void 0:xt.end)??At.end;return u.replaceRange(f,{pos:At.getFullStart(),end:ni},Fi,{prefix:" "}),[S.Extract_base_class_to_variable]}let he;(Ue=>{Ue[Ue.Text=0]="Text",Ue[Ue.Computed=1]="Computed",Ue[Ue.ArrayAccess=2]="ArrayAccess",Ue[Ue.Identifier=3]="Identifier"})(he||(he={}));function ue(Ue){var gt;let xt=Ue.parent,nt=Ue.parent.parent.parent;if(!xt.initializer)return;let At,ci=[];if(et(xt.initializer))At={expression:{kind:3,identifier:xt.initializer}};else{let an=U.createUniqueName("dest",16);At={expression:{kind:3,identifier:an}},ci.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(an,void 0,void 0,xt.initializer)],2)))}let Fi=[];fS(Ue)?Ee(Ue,Fi,At):ve(Ue,Fi,At);let bn=new Map;for(let an of Fi){if(an.element.propertyName&&Ma(an.element.propertyName)){let Ci=an.element.propertyName.expression,Sn=U.getGeneratedNameForNode(Ci),nn=U.createVariableDeclaration(Sn,void 0,void 0,Ci),Br=U.createVariableDeclarationList([nn],2),Gr=U.createVariableStatement(void 0,Br);ci.push(Gr),bn.set(Ci,Sn)}let ni=an.element.name;if(fS(ni))Ee(ni,Fi,an);else if(Om(ni))ve(ni,Fi,an);else{let{typeNode:Ci}=Se(ni),Sn=be(an,bn);if(an.element.initializer){let Br=(gt=an.element)==null?void 0:gt.propertyName,Gr=U.createUniqueName(Br&&et(Br)?Br.text:"temp",16);ci.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(Gr,void 0,void 0,Sn)],2))),Sn=U.createConditionalExpression(U.createBinaryExpression(Gr,U.createToken(37),U.createIdentifier("undefined")),U.createToken(58),an.element.initializer,U.createToken(59),Sn)}let nn=Ar(nt,32)?[U.createToken(95)]:void 0;ci.push(U.createVariableStatement(nn,U.createVariableDeclarationList([U.createVariableDeclaration(ni,void 0,Ci,Sn)],2)))}}return nt.declarationList.declarations.length>1&&ci.push(U.updateVariableStatement(nt,nt.modifiers,U.updateVariableDeclarationList(nt.declarationList,nt.declarationList.declarations.filter(an=>an!==Ue.parent)))),u.replaceNodeWithNodes(f,nt,ci),[S.Extract_binding_expressions_to_variable]}function Ee(Ue,gt,xt){for(let nt=0;nt=0;--At){let ci=xt[At].expression;ci.kind===0?nt=U.createPropertyAccessChain(nt,void 0,U.createIdentifier(ci.text)):ci.kind===1?nt=U.createElementAccessExpression(nt,gt.get(ci.computed)):ci.kind===2&&(nt=U.createElementAccessExpression(nt,ci.arrayIndex))}return nt}function Se(Ue,gt){if(t===1)return we(Ue);let xt;if(QI(Ue)){let ci=y.getSignatureFromDeclaration(Ue);if(ci){let Fi=y.getTypePredicateOfSignature(ci);if(Fi)return Fi.type?{typeNode:Fe(Fi,Ri(Ue,mf)??f,At(Fi.type)),mutatedTarget:!1}:a;xt=y.getReturnTypeOfSignature(ci)}}else xt=y.getTypeAtLocation(Ue);if(!xt)return a;if(t===2){gt&&(xt=gt);let ci=y.getWidenedLiteralType(xt);if(y.isTypeAssignableTo(ci,xt))return a;xt=ci}let nt=Ri(Ue,mf)??f;return To(Ue)&&y.requiresAddingImplicitUndefined(Ue,nt)&&(xt=y.getUnionType([y.getUndefinedType(),xt],0)),{typeNode:Ae(xt,nt,At(xt)),mutatedTarget:!1};function At(ci){return(Ur(Ue)||ls(Ue)&&Ar(Ue,264))&&ci.flags&8192?1048576:0}}function Re(Ue){return U.createTypeQueryNode(_c(Ue))}function ie(Ue,gt="temp"){let xt=!!Ri(Ue,Oe);return xt?De(Ue,gt,xt,nt=>nt.elements,fh,U.createSpreadElement,nt=>U.createArrayLiteralExpression(nt,!0),nt=>U.createTupleTypeNode(nt.map(U.createRestTypeNode))):a}function ke(Ue,gt="temp"){let xt=!!Ri(Ue,Oe);return De(Ue,gt,xt,nt=>nt.properties,Qv,U.createSpreadAssignment,nt=>U.createObjectLiteralExpression(nt,!0),U.createIntersectionTypeNode)}function De(Ue,gt,xt,nt,At,ci,Fi,bn){let an=[],ni=[],Ci,Sn=Ri(Ue,_o);for(let Gr of nt(Ue))At(Gr)?(Br(),Xc(Gr.expression)?(an.push(Re(Gr.expression)),ni.push(Gr)):nn(Gr.expression)):(Ci??(Ci=[])).push(Gr);if(ni.length===0)return a;return Br(),u.replaceNode(f,Ue,Fi(ni)),{typeNode:bn(an),mutatedTarget:!0};function nn(Gr){let is=U.createUniqueName(gt+"_Part"+(ni.length+1),16),Ao=xt?U.createAsExpression(Gr,U.createTypeReferenceNode("const")):Gr,Rr=U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(is,void 0,void 0,Ao)],2));u.insertNodeBefore(f,Sn,Rr),an.push(Re(is)),ni.push(ci(is))}function Br(){Ci&&(nn(Fi(Ci)),Ci=void 0)}}function Oe(Ue){return ZC(Ue)&&qg(Ue.type)}function we(Ue){if(To(Ue))return a;if(jf(Ue))return{typeNode:Re(Ue.name),mutatedTarget:!1};if(Xc(Ue))return{typeNode:Re(Ue),mutatedTarget:!1};if(Oe(Ue))return we(Ue.expression);if(yf(Ue)){let gt=Ri(Ue,Ur),xt=gt&&et(gt.name)?gt.name.text:void 0;return ie(Ue,xt)}if(ba(Ue)){let gt=Ri(Ue,Ur),xt=gt&&et(gt.name)?gt.name.text:void 0;return ke(Ue,xt)}if(Ur(Ue)&&Ue.initializer)return we(Ue.initializer);if(EN(Ue)){let{typeNode:gt,mutatedTarget:xt}=we(Ue.whenTrue);if(!gt)return a;let{typeNode:nt,mutatedTarget:At}=we(Ue.whenFalse);return nt?{typeNode:U.createUnionTypeNode([gt,nt]),mutatedTarget:xt||At}:a}return a}function Ae(Ue,gt,xt=0){let nt=!1,At=vq(y,x,Ue,gt,g,hJe|xt,gJe,{moduleResolverHost:p,trackSymbol(){return!0},reportTruncationError(){nt=!0}});return nt?U.createKeywordTypeNode(133):At}function Fe(Ue,gt,xt=0){let nt=!1,At=WJe(y,x,Ue,gt,g,hJe|xt,gJe,{moduleResolverHost:p,trackSymbol(){return!0},reportTruncationError(){nt=!0}});return nt?U.createKeywordTypeNode(133):At}function Tt(Ue){let{typeNode:gt}=Se(Ue);if(gt)return Ue.type?u.replaceNode(en(Ue),Ue.type,gt):u.tryInsertTypeAnnotation(en(Ue),Ue,gt),[S.Add_annotation_of_type_0,Be(gt)]}function Be(Ue){Hn(Ue,1);let gt=A.printNode(4,Ue,f);return gt.length>j3?gt.substring(0,j3-3)+"...":(Hn(Ue,0),gt)}function Ge(Ue){return Ri(Ue,gt=>O8t.has(gt.kind)&&(!Om(gt)&&!fS(gt)||Ur(gt.parent)))}function Ke(Ue,gt){for(;Ue&&Ue.endSJe(f,t,a));return[Ks(cwe,u,S.Add_async_modifier_to_containing_function,cwe,S.Add_all_missing_async_modifiers)]},fixIds:[cwe],getAllCodeActions:function(t){let r=new Map;return Ec(t,vJe,(a,u)=>{let f=bJe(u.file,u.start);!f||!Uh(r,ac(f.insertBefore))||SJe(a,t.sourceFile,f)})}});function F8t(e){if(e.type)return e.type;if(Ur(e.parent)&&e.parent.type&&Qy(e.parent.type))return e.parent.type.type}function bJe(e,t){let r=go(e,t),a=_m(r);if(!a)return;let u;switch(a.kind){case 174:u=a.name;break;case 262:case 218:u=Tc(a,100,e);break;case 219:let f=a.typeParameters?30:21;u=Tc(a,f,e)||Ta(a.parameters);break;default:return}return u&&{insertBefore:u,returnType:F8t(a)}}function SJe(e,t,{insertBefore:r,returnType:a}){if(a){let u=MM(a);(!u||u.kind!==80||u.text!=="Promise")&&e.replaceNode(t,a,U.createTypeReferenceNode("Promise",U.createNodeArray([a])))}e.insertModifierBefore(t,134,r)}var xJe=[S._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,S._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],lwe="fixPropertyOverrideAccessor";ha({errorCodes:xJe,getCodeActions(e){let t=CJe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[Ks(lwe,t,S.Generate_get_and_set_accessors,lwe,S.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[lwe],getAllCodeActions:e=>Ec(e,xJe,(t,r)=>{let a=CJe(r.file,r.start,r.length,r.code,e);if(a)for(let u of a)t.pushRaw(e.sourceFile,u)})});function CJe(e,t,r,a,u){let f,p;if(a===S._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)f=t,p=t+r;else if(a===S._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let y=u.program.getTypeChecker(),g=go(e,t).parent;B.assert(mx(g),"error span of fixPropertyOverrideAccessor should only be on an accessor");let x=g.parent;B.assert(jr(x),"erroneous accessors should only be inside classes");let k=Fh(xwe(x,y));if(!k)return[];let T=So(JI(g.name)),A=y.getPropertyOfType(y.getTypeAtLocation(k),T);if(!A||!A.valueDeclaration)return[];f=A.valueDeclaration.pos,p=A.valueDeclaration.end,e=en(A.valueDeclaration)}else B.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+a);return JJe(e,u.program,f,p,u,S.Generate_get_and_set_accessors.message)}var uwe="inferFromUsage",kJe=[S.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,S.Variable_0_implicitly_has_an_1_type.code,S.Parameter_0_implicitly_has_an_1_type.code,S.Rest_parameter_0_implicitly_has_an_any_type.code,S.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,S._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,S.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,S.Member_0_implicitly_has_an_1_type.code,S.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,S.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,S.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,S.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,S.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,S._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,S.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,S.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,S.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];ha({errorCodes:kJe,getCodeActions(e){let{sourceFile:t,program:r,span:{start:a},errorCode:u,cancellationToken:f,host:p,preferences:y}=e,g=go(t,a),x,k=Vn.ChangeTracker.with(e,A=>{x=wJe(A,t,g,u,r,f,UC,p,y)}),T=x&&cs(x);return!T||k.length===0?void 0:[Ks(uwe,k,[M8t(u,g),Jl(T)],uwe,S.Infer_all_types_from_usage)]},fixIds:[uwe],getAllCodeActions(e){let{sourceFile:t,program:r,cancellationToken:a,host:u,preferences:f}=e,p=X4();return Ec(e,kJe,(y,g)=>{wJe(y,t,go(g.file,g.start),g.code,r,a,p,u,f)})}});function M8t(e,t){switch(e){case S.Parameter_0_implicitly_has_an_1_type.code:case S.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return qp(_m(t))?S.Infer_type_of_0_from_usage:S.Infer_parameter_types_from_usage;case S.Rest_parameter_0_implicitly_has_an_any_type.code:case S.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return S.Infer_parameter_types_from_usage;case S.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return S.Infer_this_type_of_0_from_usage;default:return S.Infer_type_of_0_from_usage}}function R8t(e){switch(e){case S.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return S.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case S.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return S.Variable_0_implicitly_has_an_1_type.code;case S.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return S.Parameter_0_implicitly_has_an_1_type.code;case S.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return S.Rest_parameter_0_implicitly_has_an_any_type.code;case S.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return S.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case S._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return S._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case S.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return S.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case S.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return S.Member_0_implicitly_has_an_1_type.code}return e}function wJe(e,t,r,a,u,f,p,y,g){if(!F3(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;let{parent:x}=r,k=AT(t,u,g,y);switch(a=R8t(a),a){case S.Member_0_implicitly_has_an_1_type.code:case S.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Ur(x)&&p(x)||ls(x)||ep(x))return TJe(e,k,t,x,u,y,f),k.writeFixes(e),x;if(lr(x)){let P=S9(x.name,u,f),R=N8(P,x,u,y);if(R){let W=U.createJSDocTypeTag(void 0,U.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,ea(x.parent.parent,Ud),[W])}return k.writeFixes(e),x}return;case S.Variable_0_implicitly_has_an_1_type.code:{let P=u.getTypeChecker().getSymbolAtLocation(r);return P&&P.valueDeclaration&&Ur(P.valueDeclaration)&&p(P.valueDeclaration)?(TJe(e,k,en(P.valueDeclaration),P.valueDeclaration,u,y,f),k.writeFixes(e),P.valueDeclaration):void 0}}let T=_m(r);if(T===void 0)return;let A;switch(a){case S.Parameter_0_implicitly_has_an_1_type.code:if(qp(T)){EJe(e,k,t,T,u,y,f),A=T;break}case S.Rest_parameter_0_implicitly_has_an_any_type.code:if(p(T)){let P=ea(x,To);B8t(e,k,t,P,T,u,y,f),A=P}break;case S.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case S._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Lm(T)&&et(T.name)&&(sse(e,k,t,T,S9(T.name,u,f),u,y),A=T);break;case S.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:qp(T)&&(EJe(e,k,t,T,u,y,f),A=T);break;case S.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Vn.isThisTypeAnnotatable(T)&&p(T)&&(j8t(e,t,T,u,y,f),A=T);break;default:return B.fail(String(a))}return k.writeFixes(e),A}function TJe(e,t,r,a,u,f,p){et(a.name)&&sse(e,t,r,a,S9(a.name,u,p),u,f)}function B8t(e,t,r,a,u,f,p,y){if(!et(a.name))return;let g=V8t(u,r,f,y);if(B.assert(u.parameters.length===g.length,"Parameter count and inference count should match"),Jn(u))DJe(e,r,g,f,p);else{let x=rl(u)&&!Tc(u,21,r);x&&e.insertNodeBefore(r,Ta(u.parameters),U.createToken(21));for(let{declaration:k,type:T}of g)k&&!k.type&&!k.initializer&&sse(e,t,r,k,T,f,p);x&&e.insertNodeAfter(r,pa(u.parameters),U.createToken(22))}}function j8t(e,t,r,a,u,f){let p=IJe(r,t,a,f);if(!p||!p.length)return;let y=fwe(a,p,f).thisParameter(),g=N8(y,r,a,u);g&&(Jn(r)?W8t(e,t,r,g):e.tryInsertThisTypeAnnotation(t,r,g))}function W8t(e,t,r,a){e.addJSDocTags(t,r,[U.createJSDocThisTag(void 0,U.createJSDocTypeExpression(a))])}function EJe(e,t,r,a,u,f,p){let y=mc(a.parameters);if(y&&et(a.name)&&et(y.name)){let g=S9(a.name,u,p);g===u.getTypeChecker().getAnyType()&&(g=S9(y.name,u,p)),Jn(a)?DJe(e,r,[{declaration:y,type:g}],u,f):sse(e,t,r,y,g,u,f)}}function sse(e,t,r,a,u,f,p){let y=N8(u,a,f,p);if(y)if(Jn(r)&&a.kind!==171){let g=Ur(a)?kr(a.parent.parent,mu):a;if(!g)return;let x=U.createJSDocTypeExpression(y),k=Lm(a)?U.createJSDocReturnTag(void 0,x,void 0):U.createJSDocTypeTag(void 0,x,void 0);e.addJSDocTags(r,g,[k])}else z8t(y,a,r,e,t,Oa(f.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,a,y)}function z8t(e,t,r,a,u,f){let p=PT(e,f);return p&&a.tryInsertTypeAnnotation(r,t,p.typeNode)?(re(p.symbols,y=>u.addImportFromExportedSymbol(y,!0)),!0):!1}function DJe(e,t,r,a,u){let f=r.length&&r[0].declaration.parent;if(!f)return;let p=ro(r,y=>{let g=y.declaration;if(g.initializer||XC(g)||!et(g.name))return;let x=y.type&&N8(y.type,g,a,u);if(x){let k=U.cloneNode(g.name);return Hn(k,7168),{name:U.cloneNode(g.name),param:g,isOptional:!!y.isOptional,typeNode:x}}});if(p.length)if(rl(f)||Yc(f)){let y=rl(f)&&!Tc(f,21,t);y&&e.insertNodeBefore(t,Ta(f.parameters),U.createToken(21)),re(p,({typeNode:g,param:x})=>{let k=U.createJSDocTypeTag(void 0,U.createJSDocTypeExpression(g)),T=U.createJSDocComment(void 0,[k]);e.insertNodeAt(t,x.getStart(t),T,{suffix:" "})}),y&&e.insertNodeAfter(t,pa(f.parameters),U.createToken(22))}else{let y=_i(p,({name:g,typeNode:x,isOptional:k})=>U.createJSDocParameterTag(void 0,g,!!k,U.createJSDocTypeExpression(x),!1,void 0));e.addJSDocTags(t,f,y)}}function dwe(e,t,r){return ro(ol.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),a=>a.kind!==ol.EntryKind.Span?kr(a.node,et):void 0)}function S9(e,t,r){let a=dwe(e,t,r);return fwe(t,a,r).single()}function V8t(e,t,r,a){let u=IJe(e,t,r,a);return u&&fwe(r,u,a).parameters(e)||e.parameters.map(f=>({declaration:f,type:et(f.name)?S9(f.name,r,a):r.getTypeChecker().getAnyType()}))}function IJe(e,t,r,a){let u;switch(e.kind){case 176:u=Tc(e,137,t);break;case 219:case 218:let f=e.parent;u=(Ur(f)||ls(f))&&et(f.name)?f.name:e.name;break;case 262:case 174:case 173:u=e.name;break}if(u)return dwe(u,r,a)}function fwe(e,t,r){let a=e.getTypeChecker(),u={string:()=>a.getStringType(),number:()=>a.getNumberType(),Array:Ae=>a.createArrayType(Ae),Promise:Ae=>a.createPromiseType(Ae)},f=[a.getStringType(),a.getNumberType(),a.createArrayType(a.getAnyType()),a.createPromiseType(a.getAnyType())];return{single:g,parameters:x,thisParameter:k};function p(){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}}function y(Ae){let Fe=new Map;for(let Be of Ae)Be.properties&&Be.properties.forEach((Ge,Ke)=>{Fe.has(Ke)||Fe.set(Ke,[]),Fe.get(Ke).push(Ge)});let Tt=new Map;return Fe.forEach((Be,Ge)=>{Tt.set(Ge,y(Be))}),{isNumber:Ae.some(Be=>Be.isNumber),isString:Ae.some(Be=>Be.isString),isNumberOrString:Ae.some(Be=>Be.isNumberOrString),candidateTypes:vo(Ae,Be=>Be.candidateTypes),properties:Tt,calls:vo(Ae,Be=>Be.calls),constructs:vo(Ae,Be=>Be.constructs),numberIndex:re(Ae,Be=>Be.numberIndex),stringIndex:re(Ae,Be=>Be.stringIndex),candidateThisTypes:vo(Ae,Be=>Be.candidateThisTypes),inferredTypes:void 0}}function g(){return Ce(T(t))}function x(Ae){if(t.length===0||!Ae.parameters)return;let Fe=p();for(let Be of t)r.throwIfCancellationRequested(),A(Be,Fe);let Tt=[...Fe.constructs||[],...Fe.calls||[]];return Ae.parameters.map((Be,Ge)=>{let Ke=[],Ue=Jy(Be),gt=!1;for(let nt of Tt)if(nt.argumentTypes.length<=Ge)gt=Jn(Ae),Ke.push(a.getUndefinedType());else if(Ue)for(let At=Ge;AtTt.every(Ge=>!Ge(Be)))}function ae(Ae){return Ce(ue(Ae))}function Ce(Ae){if(!Ae.length)return a.getAnyType();let Fe=a.getUnionType([a.getStringType(),a.getNumberType()]),Be=ce(Ae,[{high:Ke=>Ke===a.getStringType()||Ke===a.getNumberType(),low:Ke=>Ke===Fe},{high:Ke=>!(Ke.flags&16385),low:Ke=>!!(Ke.flags&16385)},{high:Ke=>!(Ke.flags&114689)&&!(_r(Ke)&16),low:Ke=>!!(_r(Ke)&16)}]),Ge=Be.filter(Ke=>_r(Ke)&16);return Ge.length&&(Be=Be.filter(Ke=>!(_r(Ke)&16)),Be.push(he(Ge))),a.getWidenedType(a.getUnionType(Be.map(a.getBaseTypeOfLiteralType),2))}function he(Ae){if(Ae.length===1)return Ae[0];let Fe=[],Tt=[],Be=[],Ge=[],Ke=!1,Ue=!1,gt=Dm();for(let At of Ae){for(let bn of a.getPropertiesOfType(At))gt.add(bn.escapedName,bn.valueDeclaration?a.getTypeOfSymbolAtLocation(bn,bn.valueDeclaration):a.getAnyType());Fe.push(...a.getSignaturesOfType(At,0)),Tt.push(...a.getSignaturesOfType(At,1));let ci=a.getIndexInfoOfType(At,0);ci&&(Be.push(ci.type),Ke=Ke||ci.isReadonly);let Fi=a.getIndexInfoOfType(At,1);Fi&&(Ge.push(Fi.type),Ue=Ue||Fi.isReadonly)}let xt=oI(gt,(At,ci)=>{let Fi=ci.lengtha.getBaseTypeOfLiteralType(gt)),Ue=(Be=Ae.calls)!=null&&Be.length?Ee(Ae):void 0;return Ue&&Ke?Ge.push(a.getUnionType([Ue,...Ke],2)):(Ue&&Ge.push(Ue),K(Ke)&&Ge.push(...Ke)),Ge.push(...ve(Ae)),Ge}function Ee(Ae){let Fe=new Map;Ae.properties&&Ae.properties.forEach((Ke,Ue)=>{let gt=a.createSymbol(4,Ue);gt.links.type=ae(Ke),Fe.set(Ue,gt)});let Tt=Ae.calls?[De(Ae.calls)]:[],Be=Ae.constructs?[De(Ae.constructs)]:[],Ge=Ae.stringIndex?[a.createIndexInfo(a.getStringType(),ae(Ae.stringIndex),!1)]:[];return a.createAnonymousType(void 0,Fe,Tt,Be,Ge)}function ve(Ae){if(!Ae.properties||!Ae.properties.size)return[];let Fe=f.filter(Tt=>be(Tt,Ae));return 0Se(Tt,Ae)):[]}function be(Ae,Fe){return Fe.properties?!Vd(Fe.properties,(Tt,Be)=>{let Ge=a.getTypeOfPropertyOfType(Ae,Be);return Ge?Tt.calls?!a.getSignaturesOfType(Ge,0).length||!a.isTypeAssignableTo(Ge,ke(Tt.calls)):!a.isTypeAssignableTo(Ge,ae(Tt)):!0}):!1}function Se(Ae,Fe){if(!(_r(Ae)&4)||!Fe.properties)return Ae;let Tt=Ae.target,Be=Fh(Tt.typeParameters);if(!Be)return Ae;let Ge=[];return Fe.properties.forEach((Ke,Ue)=>{let gt=a.getTypeOfPropertyOfType(Tt,Ue);B.assert(!!gt,"generic should have all the properties of its reference."),Ge.push(...Re(gt,ae(Ke),Be))}),u[Ae.symbol.escapedName](Ce(Ge))}function Re(Ae,Fe,Tt){if(Ae===Tt)return[Fe];if(Ae.flags&3145728)return vo(Ae.types,Ke=>Re(Ke,Fe,Tt));if(_r(Ae)&4&&_r(Fe)&4){let Ke=a.getTypeArguments(Ae),Ue=a.getTypeArguments(Fe),gt=[];if(Ke&&Ue)for(let xt=0;xtGe.argumentTypes.length));for(let Ge=0;GeUe.argumentTypes[Ge]||a.getUndefinedType())),Ae.some(Ue=>Ue.argumentTypes[Ge]===void 0)&&(Ke.flags|=16777216),Fe.push(Ke)}let Be=ae(y(Ae.map(Ge=>Ge.return_)));return a.createSignature(void 0,void 0,void 0,Fe,Be,void 0,Tt,0)}function Oe(Ae,Fe){Fe&&!(Fe.flags&1)&&!(Fe.flags&131072)&&(Ae.candidateTypes||(Ae.candidateTypes=[])).push(Fe)}function we(Ae,Fe){Fe&&!(Fe.flags&1)&&!(Fe.flags&131072)&&(Ae.candidateThisTypes||(Ae.candidateThisTypes=[])).push(Fe)}}var _we="fixReturnTypeInAsyncFunction",NJe=[S.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];ha({errorCodes:NJe,fixIds:[_we],getCodeActions:function(t){let{sourceFile:r,program:a,span:u}=t,f=a.getTypeChecker(),p=AJe(r,a.getTypeChecker(),u.start);if(!p)return;let{returnTypeNode:y,returnType:g,promisedTypeNode:x,promisedType:k}=p,T=Vn.ChangeTracker.with(t,A=>PJe(A,r,y,x));return[Ks(_we,T,[S.Replace_0_with_Promise_1,f.typeToString(g),f.typeToString(k)],_we,S.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ec(e,NJe,(t,r)=>{let a=AJe(r.file,e.program.getTypeChecker(),r.start);a&&PJe(t,r.file,a.returnTypeNode,a.promisedTypeNode)})});function AJe(e,t,r){if(Jn(e))return;let a=go(e,r),u=Ri(a,Oc),f=u?.type;if(!f)return;let p=t.getTypeFromTypeNode(f),y=t.getAwaitedType(p)||t.getVoidType(),g=t.typeToTypeNode(y,f,void 0);if(g)return{returnTypeNode:f,returnType:p,promisedTypeNode:g,promisedType:y}}function PJe(e,t,r,a){e.replaceNode(t,r,U.createTypeReferenceNode("Promise",[a]))}var LJe="disableJsDiagnostics",OJe="disableJsDiagnostics",FJe=ro(Object.keys(S),e=>{let t=S[e];return t.category===1?t.code:void 0});ha({errorCodes:FJe,getCodeActions:function(t){let{sourceFile:r,program:a,span:u,host:f,formatContext:p}=t;if(!Jn(r)||!yO(r,a.getCompilerOptions()))return;let y=r.checkJsDirective?"":cb(f,p.options),g=[s0(LJe,[Eze(r.fileName,[J5(r.checkJsDirective?bu(r.checkJsDirective.pos,r.checkJsDirective.end):_f(0,0),`// @ts-nocheck${y}`)])],S.Disable_checking_for_this_file)];return Vn.isValidLocationToAddComment(r,u.start)&&g.unshift(Ks(LJe,Vn.ChangeTracker.with(t,x=>MJe(x,r,u.start)),S.Ignore_this_error_message,OJe,S.Add_ts_ignore_to_all_error_messages)),g},fixIds:[OJe],getAllCodeActions:e=>{let t=new Set;return Ec(e,FJe,(r,a)=>{Vn.isValidLocationToAddComment(a.file,a.start)&&MJe(r,a.file,a.start,t)})}});function MJe(e,t,r,a){let{line:u}=ma(t,r);(!a||_p(a,u))&&e.insertCommentBeforeLine(t,u,r," @ts-ignore")}function pwe(e,t,r,a,u,f,p){let y=e.symbol.members;for(let g of t)y.has(g.escapedName)||BJe(g,e,r,a,u,f,p,void 0)}function a6(e){return{trackSymbol:()=>!1,moduleResolverHost:gre(e.program,e.host)}}var RJe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(RJe||{});function BJe(e,t,r,a,u,f,p,y,g=3,x=!1){let k=e.getDeclarations(),T=mc(k),A=a.program.getTypeChecker(),P=Oa(a.program.getCompilerOptions()),R=T?.kind??171,W=ve(e,T),z=T?__(T):0,q=z&256;q|=z&1?1:z&4?4:0,T&&K_(T)&&(q|=512);let G=ae(),$=A.getWidenedType(A.getTypeOfSymbolAtLocation(e,t)),te=!!(e.flags&16777216),ne=!!(t.flags&33554432)||x,_e=mm(r,u);switch(R){case 171:case 172:let be=1;be|=_e===0?268435456:0;let Se=A.typeToTypeNode($,t,be,8,a6(a));if(f){let ie=PT(Se,P);ie&&(Se=ie.typeNode,ME(f,ie.symbols))}p(U.createPropertyDeclaration(G,T?he(W):e.getName(),te&&g&2?U.createToken(58):void 0,Se,void 0));break;case 177:case 178:{B.assertIsDefined(k);let ie=A.typeToTypeNode($,t,void 0,void 0,a6(a)),ke=Sx(k,T),De=ke.secondAccessor?[ke.firstAccessor,ke.secondAccessor]:[ke.firstAccessor];if(f){let Oe=PT(ie,P);Oe&&(ie=Oe.typeNode,ME(f,Oe.symbols))}for(let Oe of De)if(Lm(Oe))p(U.createGetAccessorDeclaration(G,he(W),F,Ee(ie),ue(y,_e,ne)));else{B.assertNode(Oe,qp,"The counterpart to a getter should be a setter");let we=o4(Oe),Ae=we&&et(we.name)?mr(we.name):void 0;p(U.createSetAccessorDeclaration(G,he(W),hwe(1,[Ae],[Ee(ie)],1,!1),ue(y,_e,ne)))}break}case 173:case 174:B.assertIsDefined(k);let Re=$.isUnion()?vo($.types,ie=>ie.getCallSignatures()):$.getCallSignatures();if(!Lt(Re))break;if(k.length===1){B.assert(Re.length===1,"One declaration implies one signature");let ie=Re[0];ce(_e,ie,G,he(W),ue(y,_e,ne));break}for(let ie of Re)ie.declaration&&ie.declaration.flags&33554432||ce(_e,ie,G,he(W));if(!ne)if(k.length>Re.length){let ie=A.getSignatureFromDeclaration(k[k.length-1]);ce(_e,ie,G,he(W),ue(y,_e))}else B.assert(k.length===Re.length,"Declarations and signatures should match count"),p(q8t(A,a,t,Re,he(W),te&&!!(g&1),G,_e,y));break}function ce(be,Se,Re,ie,ke){let De=ase(174,a,be,Se,ke,ie,Re,te&&!!(g&1),t,f);De&&p(De)}function ae(){let be;return q&&(be=tl(be,U.createModifiersFromModifierFlags(q))),Ce()&&(be=hi(be,U.createToken(164))),be&&U.createNodeArray(be)}function Ce(){return!!(a.program.getCompilerOptions().noImplicitOverride&&T&&tT(T))}function he(be){return et(be)&&be.escapedText==="constructor"?U.createComputedPropertyName(U.createStringLiteral(mr(be),_e===0)):_c(be,!1)}function ue(be,Se,Re){return Re?void 0:_c(be,!1)||gwe(Se)}function Ee(be){return _c(be,!1)}function ve(be,Se){if(_u(be)&262144){let Re=be.links.nameType;if(Re&&uh(Re))return U.createIdentifier(So(dh(Re)))}return _c(cs(Se),!1)}}function ase(e,t,r,a,u,f,p,y,g,x){let k=t.program,T=k.getTypeChecker(),A=Oa(k.getCompilerOptions()),P=Jn(g),R=524545|(r===0?268435456:0),W=T.signatureToSignatureDeclaration(a,e,g,R,8,a6(t));if(!W)return;let z=P?void 0:W.typeParameters,q=W.parameters,G=P?void 0:_c(W.type);if(x){if(z){let _e=Uo(z,ce=>{let ae=ce.constraint,Ce=ce.default;if(ae){let he=PT(ae,A);he&&(ae=he.typeNode,ME(x,he.symbols))}if(Ce){let he=PT(Ce,A);he&&(Ce=he.typeNode,ME(x,he.symbols))}return U.updateTypeParameterDeclaration(ce,ce.modifiers,ce.name,ae,Ce)});z!==_e&&(z=Ft(U.createNodeArray(_e,z.hasTrailingComma),z))}let ne=Uo(q,_e=>{let ce=P?void 0:_e.type;if(ce){let ae=PT(ce,A);ae&&(ce=ae.typeNode,ME(x,ae.symbols))}return U.updateParameterDeclaration(_e,_e.modifiers,_e.dotDotDotToken,_e.name,P?void 0:_e.questionToken,ce,_e.initializer)});if(q!==ne&&(q=Ft(U.createNodeArray(ne,q.hasTrailingComma),q)),G){let _e=PT(G,A);_e&&(G=_e.typeNode,ME(x,_e.symbols))}}let $=y?U.createToken(58):void 0,te=W.asteriskToken;if(Yc(W))return U.updateFunctionExpression(W,p,W.asteriskToken,kr(f,et),z,q,G,u??W.body);if(rl(W))return U.updateArrowFunction(W,p,z,q,G,W.equalsGreaterThanToken,u??W.body);if(pu(W))return U.updateMethodDeclaration(W,p,te,f??U.createIdentifier(""),$,z,q,G,u);if(xu(W))return U.updateFunctionDeclaration(W,p,W.asteriskToken,kr(f,et),z,q,G,u??W.body)}function mwe(e,t,r,a,u,f,p){let y=mm(t.sourceFile,t.preferences),g=Oa(t.program.getCompilerOptions()),x=a6(t),k=t.program.getTypeChecker(),T=Jn(p),{typeArguments:A,arguments:P,parent:R}=a,W=T?void 0:k.getContextualType(a),z=_i(P,Ce=>et(Ce)?Ce.text:lr(Ce)&&et(Ce.name)?Ce.name.text:void 0),q=T?[]:_i(P,Ce=>k.getTypeAtLocation(Ce)),{argumentTypeNodes:G,argumentTypeParameters:$}=U8t(k,r,q,p,g,1,8,x),te=f?U.createNodeArray(U.createModifiersFromModifierFlags(f)):void 0,ne=SH(R)?U.createToken(42):void 0,_e=T?void 0:H8t(k,$,A),ce=hwe(P.length,z,G,void 0,T),ae=T||W===void 0?void 0:k.typeToTypeNode(W,p,void 0,void 0,x);switch(e){case 174:return U.createMethodDeclaration(te,ne,u,void 0,_e,ce,ae,gwe(y));case 173:return U.createMethodSignature(te,u,void 0,_e,ce,ae===void 0?U.createKeywordTypeNode(159):ae);case 262:return B.assert(typeof u=="string"||et(u),"Unexpected name"),U.createFunctionDeclaration(te,ne,u,_e,ce,ae,bq(S.Function_not_implemented.message,y));default:B.fail("Unexpected kind")}}function H8t(e,t,r){let a=new Set(t.map(f=>f[0])),u=new Map(t);if(r){let f=r.filter(y=>!t.some(g=>{var x;return e.getTypeAtLocation(y)===((x=g[1])==null?void 0:x.argumentType)})),p=a.size+f.length;for(let y=0;a.size{var p;return U.createTypeParameterDeclaration(void 0,f,(p=u.get(f))==null?void 0:p.constraint)})}function jJe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function vq(e,t,r,a,u,f,p,y){let g=e.typeToTypeNode(r,a,f,p,y);if(g&&ey(g)){let x=PT(g,u);x&&(ME(t,x.symbols),g=x.typeNode)}return _c(g)}function WJe(e,t,r,a,u,f,p,y){let g=e.typePredicateToTypePredicateNode(r,a,f,p,y);if(g?.type&&ey(g.type)){let x=PT(g.type,u);x&&(ME(t,x.symbols),g=U.updateTypePredicateNode(g,g.assertsModifier,g.parameterName,x.typeNode))}return _c(g)}function zJe(e){return e.isUnionOrIntersection()?e.types.some(zJe):e.flags&262144}function U8t(e,t,r,a,u,f,p,y){let g=[],x=new Map;for(let k=0;k=a?U.createToken(58):void 0,u?void 0:r?.[y]||U.createKeywordTypeNode(159),void 0);f.push(k)}return f}function q8t(e,t,r,a,u,f,p,y,g){let x=a[0],k=a[0].minArgumentCount,T=!1;for(let W of a)k=Math.min(W.minArgumentCount,k),Xf(W)&&(T=!0),W.parameters.length>=x.parameters.length&&(!Xf(W)||Xf(x))&&(x=W);let A=x.parameters.length-(Xf(x)?1:0),P=x.parameters.map(W=>W.name),R=hwe(A,P,void 0,k,!1);if(T){let W=U.createParameterDeclaration(void 0,U.createToken(26),P[A]||"rest",A>=k?U.createToken(58):void 0,U.createArrayTypeNode(U.createKeywordTypeNode(159)),void 0);R.push(W)}return G8t(p,u,f,void 0,R,$8t(a,e,t,r),y,g)}function $8t(e,t,r,a){if(K(e)){let u=t.getUnionType(_i(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(u,a,1,8,a6(r))}}function G8t(e,t,r,a,u,f,p,y){return U.createMethodDeclaration(e,void 0,t,r?U.createToken(58):void 0,a,u,f,y||gwe(p))}function gwe(e){return bq(S.Method_not_implemented.message,e)}function bq(e,t){return U.createBlock([U.createThrowStatement(U.createNewExpression(U.createIdentifier("Error"),void 0,[U.createStringLiteral(e,t===0)]))],!0)}function ywe(e,t,r){let a=U3(t);if(!a)return;let u=HJe(a,"compilerOptions");if(u===void 0){e.insertNodeAtObjectStart(t,a,bwe("compilerOptions",U.createObjectLiteralExpression(r.map(([p,y])=>bwe(p,y)),!0)));return}let f=u.initializer;if(ba(f))for(let[p,y]of r){let g=HJe(f,p);g===void 0?e.insertNodeAtObjectStart(t,f,bwe(p,y)):e.replaceNode(t,g.initializer,y)}}function vwe(e,t,r,a){ywe(e,t,[[r,a]])}function bwe(e,t){return U.createPropertyAssignment(U.createStringLiteral(e),t)}function HJe(e,t){return St(e.properties,r=>ed(r)&&!!r.name&&Da(r.name)&&r.name.text===t)}function PT(e,t){let r,a=pt(e,u,io);if(r&&a)return{typeNode:a,symbols:r};function u(f){if(eS(f)&&f.qualifier){let p=hp(f.qualifier);if(!p.symbol)return Qi(f,u,void 0);let y=zJ(p.symbol,t),g=y!==p.text?UJe(f.qualifier,U.createIdentifier(y)):f.qualifier;r=hi(r,p.symbol);let x=mn(f.typeArguments,u,io);return U.createTypeReferenceNode(g,x)}return Qi(f,u,void 0)}}function UJe(e,t){return e.kind===80?t:U.createQualifiedName(UJe(e.left,t),e.right)}function ME(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Swe(e,t){let r=Vl(t),a=go(e,t.start);for(;a.endf.replaceNode(t,r,a));return s0(XJe,u,[S.Replace_import_with_0,u[0].textChanges[0].newText])}ha({errorCodes:[S.This_expression_is_not_callable.code,S.This_expression_is_not_constructable.code],getCodeActions:aFt});function aFt(e){let t=e.sourceFile,r=S.This_expression_is_not_callable.code===e.errorCode?213:214,a=Ri(go(t,e.span.start),f=>f.kind===r);if(!a)return[];let u=a.expression;return QJe(e,u)}ha({errorCodes:[S.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,S.Type_0_does_not_satisfy_the_constraint_1.code,S.Type_0_is_not_assignable_to_type_1.code,S.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,S.Type_predicate_0_is_not_assignable_to_1.code,S.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,S._0_index_type_1_is_not_assignable_to_2_index_type_3.code,S.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,S.Property_0_in_type_1_is_not_assignable_to_type_2.code,S.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,S.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:cFt});function cFt(e){let t=e.sourceFile,r=Ri(go(t,e.span.start),a=>a.getStart()===e.span.start&&a.getEnd()===e.span.start+e.span.length);return r?QJe(e,r):[]}function QJe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&jv(r.symbol)&&r.symbol.links.originatingImport))return[];let a=[],u=r.symbol.links.originatingImport;if(fm(u)||Fn(a,sFt(e,u)),Mt(t)&&!(pf(t.parent)&&t.parent.name===t)){let f=e.sourceFile,p=Vn.ChangeTracker.with(e,y=>y.replaceNode(f,t,U.createPropertyAccessExpression(t,"default"),{}));a.push(s0(XJe,p,S.Use_synthetic_default_member))}return a}var Cwe="strictClassInitialization",kwe="addMissingPropertyDefiniteAssignmentAssertions",wwe="addMissingPropertyUndefinedType",Twe="addMissingPropertyInitializer",ZJe=[S.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];ha({errorCodes:ZJe,getCodeActions:function(t){let r=eqe(t.sourceFile,t.span.start);if(!r)return;let a=[];return hi(a,uFt(t,r)),hi(a,lFt(t,r)),hi(a,dFt(t,r)),a},fixIds:[kwe,wwe,Twe],getAllCodeActions:e=>Ec(e,ZJe,(t,r)=>{let a=eqe(r.file,r.start);if(a)switch(e.fixId){case kwe:tqe(t,r.file,a.prop);break;case wwe:iqe(t,r.file,a);break;case Twe:let u=e.program.getTypeChecker(),f=rqe(u,a.prop);if(!f)return;nqe(t,r.file,a.prop,f);break;default:B.fail(JSON.stringify(e.fixId))}})});function eqe(e,t){let r=go(e,t);if(et(r)&&ls(r.parent)){let a=Yu(r.parent);if(a)return{type:a,prop:r.parent,isJs:Jn(r.parent)}}}function lFt(e,t){if(t.isJs)return;let r=Vn.ChangeTracker.with(e,a=>tqe(a,e.sourceFile,t.prop));return Ks(Cwe,r,[S.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],kwe,S.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function tqe(e,t,r){Qp(r);let a=U.updatePropertyDeclaration(r,r.modifiers,r.name,U.createToken(54),r.type,r.initializer);e.replaceNode(t,r,a)}function uFt(e,t){let r=Vn.ChangeTracker.with(e,a=>iqe(a,e.sourceFile,t));return Ks(Cwe,r,[S.Add_undefined_type_to_property_0,t.prop.name.getText()],wwe,S.Add_undefined_type_to_all_uninitialized_properties)}function iqe(e,t,r){let a=U.createKeywordTypeNode(157),u=Nx(r.type)?r.type.types.concat(a):[r.type,a],f=U.createUnionTypeNode(u);r.isJs?e.addJSDocTags(t,r.prop,[U.createJSDocTypeTag(void 0,U.createJSDocTypeExpression(f))]):e.replaceNode(t,r.type,f)}function dFt(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),a=rqe(r,t.prop);if(!a)return;let u=Vn.ChangeTracker.with(e,f=>nqe(f,e.sourceFile,t.prop,a));return Ks(Cwe,u,[S.Add_initializer_to_property_0,t.prop.name.getText()],Twe,S.Add_initializers_to_all_uninitialized_properties)}function nqe(e,t,r,a){Qp(r);let u=U.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,a);e.replaceNode(t,r,u)}function rqe(e,t){return oqe(e,e.getTypeFromTypeNode(t.type))}function oqe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?U.createFalse():U.createTrue();if(t.isStringLiteral())return U.createStringLiteral(t.value);if(t.isNumberLiteral())return U.createNumericLiteral(t.value);if(t.flags&2048)return U.createBigIntLiteral(t.value);if(t.isUnion())return Le(t.types,r=>oqe(e,r));if(t.isClass()){let r=eb(t.symbol);if(!r||Ar(r,64))return;let a=Hv(r);return a&&a.parameters.length?void 0:U.createNewExpression(U.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return U.createArrayLiteralExpression()}var Ewe="requireInTs",sqe=[S.require_call_may_be_converted_to_an_import.code];ha({errorCodes:sqe,getCodeActions(e){let t=cqe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;let r=Vn.ChangeTracker.with(e,a=>aqe(a,e.sourceFile,t));return[Ks(Ewe,r,S.Convert_require_to_import,Ewe,S.Convert_all_require_to_import)]},fixIds:[Ewe],getAllCodeActions:e=>Ec(e,sqe,(t,r)=>{let a=cqe(r.file,e.program,r.start,e.preferences);a&&aqe(t,e.sourceFile,a)})});function aqe(e,t,r){let{allowSyntheticDefaults:a,defaultImportName:u,namedImports:f,statement:p,moduleSpecifier:y}=r;e.replaceNode(t,p,u&&!a?U.createImportEqualsDeclaration(void 0,!1,u,U.createExternalModuleReference(y)):U.createImportDeclaration(void 0,U.createImportClause(!1,u,f),y,void 0))}function cqe(e,t,r,a){let{parent:u}=go(e,r);Y_(u,!0)||B.failBadSyntaxKind(u);let f=ea(u.parent,Ur),p=mm(e,a),y=kr(f.name,et),g=Om(f.name)?fFt(f.name):void 0;if(y||g){let x=Ta(u.arguments);return{allowSyntheticDefaults:uN(t.getCompilerOptions()),defaultImportName:y,namedImports:g,statement:ea(f.parent.parent,mu),moduleSpecifier:mE(x)?U.createStringLiteral(x.text,p===0):x}}}function fFt(e){let t=[];for(let r of e.elements){if(!et(r.name)||r.initializer)return;t.push(U.createImportSpecifier(!1,kr(r.propertyName,et),r.name))}if(t.length)return U.createNamedImports(t)}var Dwe="useDefaultImport",lqe=[S.Import_may_be_converted_to_a_default_import.code];ha({errorCodes:lqe,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,a=uqe(t,r);if(!a)return;let u=Vn.ChangeTracker.with(e,f=>dqe(f,t,a,e.preferences));return[Ks(Dwe,u,S.Convert_to_default_import,Dwe,S.Convert_all_to_default_imports)]},fixIds:[Dwe],getAllCodeActions:e=>Ec(e,lqe,(t,r)=>{let a=uqe(r.file,r.start);a&&dqe(t,r.file,a,e.preferences)})});function uqe(e,t){let r=go(e,t);if(!et(r))return;let{parent:a}=r;if(Dd(a)&&rb(a.moduleReference))return{importNode:a,name:r,moduleSpecifier:a.moduleReference.expression};if(Xv(a)&&ql(a.parent.parent)){let u=a.parent.parent;return{importNode:u,name:r,moduleSpecifier:u.moduleSpecifier}}}function dqe(e,t,r,a){e.replaceNode(t,r.importNode,Wx(r.name,void 0,r.moduleSpecifier,mm(t,a)))}var Iwe="useBigintLiteral",fqe=[S.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];ha({errorCodes:fqe,getCodeActions:function(t){let r=Vn.ChangeTracker.with(t,a=>_qe(a,t.sourceFile,t.span));if(r.length>0)return[Ks(Iwe,r,S.Convert_to_a_bigint_numeric_literal,Iwe,S.Convert_all_to_bigint_numeric_literals)]},fixIds:[Iwe],getAllCodeActions:e=>Ec(e,fqe,(t,r)=>_qe(t,r.file,r))});function _qe(e,t,r){let a=kr(go(t,r.start),Z_);if(!a)return;let u=a.getText(t)+"n";e.replaceNode(t,a,U.createBigIntLiteral(u))}var _Ft="fixAddModuleReferTypeMissingTypeof",Nwe=_Ft,pqe=[S.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];ha({errorCodes:pqe,getCodeActions:function(t){let{sourceFile:r,span:a}=t,u=mqe(r,a.start),f=Vn.ChangeTracker.with(t,p=>hqe(p,r,u));return[Ks(Nwe,f,S.Add_missing_typeof,Nwe,S.Add_missing_typeof)]},fixIds:[Nwe],getAllCodeActions:e=>Ec(e,pqe,(t,r)=>hqe(t,e.sourceFile,mqe(r.file,r.start)))});function mqe(e,t){let r=go(e,t);return B.assert(r.kind===102,"This token should be an ImportKeyword"),B.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function hqe(e,t,r){let a=U.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,a)}var Awe="wrapJsxInFragment",gqe=[S.JSX_expressions_must_have_one_parent_element.code];ha({errorCodes:gqe,getCodeActions:function(t){let{sourceFile:r,span:a}=t,u=yqe(r,a.start);if(!u)return;let f=Vn.ChangeTracker.with(t,p=>vqe(p,r,u));return[Ks(Awe,f,S.Wrap_in_JSX_fragment,Awe,S.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Awe],getAllCodeActions:e=>Ec(e,gqe,(t,r)=>{let a=yqe(e.sourceFile,r.start);a&&vqe(t,e.sourceFile,a)})});function yqe(e,t){let u=go(e,t).parent.parent;if(!(!Yn(u)&&(u=u.parent,!Yn(u)))&&Ul(u.operatorToken))return u}function vqe(e,t,r){let a=pFt(r);a&&e.replaceNode(t,r,U.createJsxFragment(U.createJsxOpeningFragment(),a,U.createJsxJsxClosingFragment()))}function pFt(e){let t=[],r=e;for(;;)if(Yn(r)&&Ul(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),SM(r.right))return t.push(r.right),t;if(Yn(r.right)){r=r.right;continue}else return}else return}var Pwe="wrapDecoratorInParentheses",bqe=[S.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];ha({errorCodes:bqe,getCodeActions:function(t){let r=Vn.ChangeTracker.with(t,a=>Sqe(a,t.sourceFile,t.span.start));return[Ks(Pwe,r,S.Wrap_in_parentheses,Pwe,S.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[Pwe],getAllCodeActions:e=>Ec(e,bqe,(t,r)=>Sqe(t,r.file,r.start))});function Sqe(e,t,r){let a=go(t,r),u=Ri(a,Td);B.assert(!!u,"Expected position to be owned by a decorator.");let f=U.createParenthesizedExpression(u.expression);e.replaceNode(t,u.expression,f)}var Lwe="fixConvertToMappedObjectType",xqe=[S.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];ha({errorCodes:xqe,getCodeActions:function(t){let{sourceFile:r,span:a}=t,u=Cqe(r,a.start);if(!u)return;let f=Vn.ChangeTracker.with(t,y=>kqe(y,r,u)),p=mr(u.container.name);return[Ks(Lwe,f,[S.Convert_0_to_mapped_object_type,p],Lwe,[S.Convert_0_to_mapped_object_type,p])]},fixIds:[Lwe],getAllCodeActions:e=>Ec(e,xqe,(t,r)=>{let a=Cqe(r.file,r.start);a&&kqe(t,r.file,a)})});function Cqe(e,t){let r=go(e,t),a=kr(r.parent.parent,sT);if(!a)return;let u=vf(a.parent)?a.parent:kr(a.parent.parent,$h);if(u)return{indexSignature:a,container:u}}function mFt(e,t){return U.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function kqe(e,t,{indexSignature:r,container:a}){let f=(vf(a)?a.members:a.type.members).filter(k=>!sT(k)),p=Ta(r.parameters),y=U.createTypeParameterDeclaration(void 0,ea(p.name,et),p.type),g=U.createMappedTypeNode(rO(r)?U.createModifier(148):void 0,y,void 0,r.questionToken,r.type,void 0),x=U.createIntersectionTypeNode([...Q3(a),g,...f.length?[U.createTypeLiteralNode(f)]:F]);e.replaceNode(t,a,mFt(a,x))}var wqe="removeAccidentalCallParentheses",hFt=[S.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];ha({errorCodes:hFt,getCodeActions(e){let t=Ri(go(e.sourceFile,e.span.start),Gs);if(!t)return;let r=Vn.ChangeTracker.with(e,a=>{a.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[s0(wqe,r,S.Remove_parentheses)]},fixIds:[wqe]});var Owe="removeUnnecessaryAwait",Tqe=[S.await_has_no_effect_on_the_type_of_this_expression.code];ha({errorCodes:Tqe,getCodeActions:function(t){let r=Vn.ChangeTracker.with(t,a=>Eqe(a,t.sourceFile,t.span));if(r.length>0)return[Ks(Owe,r,S.Remove_unnecessary_await,Owe,S.Remove_all_unnecessary_uses_of_await)]},fixIds:[Owe],getAllCodeActions:e=>Ec(e,Tqe,(t,r)=>Eqe(t,r.file,r))});function Eqe(e,t,r){let a=kr(go(t,r.start),y=>y.kind===135),u=a&&kr(a.parent,Ax);if(!u)return;let f=u;if(O_(u.parent)){let y=l4(u.expression,!1);if(et(y)){let g=fd(u.parent.pos,t);g&&g.kind!==105&&(f=u.parent)}}e.replaceNode(t,f,u.expression)}var Dqe=[S.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],Fwe="splitTypeOnlyImport";ha({errorCodes:Dqe,fixIds:[Fwe],getCodeActions:function(t){let r=Vn.ChangeTracker.with(t,a=>Nqe(a,Iqe(t.sourceFile,t.span),t));if(r.length)return[Ks(Fwe,r,S.Split_into_two_separate_import_declarations,Fwe,S.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ec(e,Dqe,(t,r)=>{Nqe(t,Iqe(e.sourceFile,r),e)})});function Iqe(e,t){return Ri(go(e,t.start),ql)}function Nqe(e,t,r){if(!t)return;let a=B.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,U.updateImportDeclaration(t,t.modifiers,U.updateImportClause(a,a.isTypeOnly,a.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,U.createImportDeclaration(void 0,U.updateImportClause(a,a.isTypeOnly,void 0,a.namedBindings),t.moduleSpecifier,t.attributes))}var Mwe="fixConvertConstToLet",Aqe=[S.Cannot_assign_to_0_because_it_is_a_constant.code];ha({errorCodes:Aqe,getCodeActions:function(t){let{sourceFile:r,span:a,program:u}=t,f=Pqe(r,a.start,u);if(f===void 0)return;let p=Vn.ChangeTracker.with(t,y=>Lqe(y,r,f.token));return[KCe(Mwe,p,S.Convert_const_to_let,Mwe,S.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,r=new Map;return ZN(Vn.ChangeTracker.with(e,a=>{eA(e,Aqe,u=>{let f=Pqe(u.file,u.start,t);if(f&&Uh(r,Ca(f.symbol)))return Lqe(a,u.file,f.token)})}))},fixIds:[Mwe]});function Pqe(e,t,r){var a;let f=r.getTypeChecker().getSymbolAtLocation(go(e,t));if(f===void 0)return;let p=kr((a=f?.valueDeclaration)==null?void 0:a.parent,ef);if(p===void 0)return;let y=Tc(p,87,e);if(y!==void 0)return{symbol:f,token:y}}function Lqe(e,t,r){e.replaceNode(t,r,U.createToken(121))}var Rwe="fixExpectedComma",gFt=S._0_expected.code,Oqe=[gFt];ha({errorCodes:Oqe,getCodeActions(e){let{sourceFile:t}=e,r=Fqe(t,e.span.start,e.errorCode);if(!r)return;let a=Vn.ChangeTracker.with(e,u=>Mqe(u,t,r));return[Ks(Rwe,a,[S.Change_0_to_1,";",","],Rwe,[S.Change_0_to_1,";",","])]},fixIds:[Rwe],getAllCodeActions:e=>Ec(e,Oqe,(t,r)=>{let a=Fqe(r.file,r.start,r.code);a&&Mqe(t,e.sourceFile,a)})});function Fqe(e,t,r){let a=go(e,t);return a.kind===27&&a.parent&&(ba(a.parent)||yf(a.parent))?{node:a}:void 0}function Mqe(e,t,{node:r}){let a=U.createToken(28);e.replaceNode(t,r,a)}var yFt="addVoidToPromise",Rqe="addVoidToPromise",Bqe=[S.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,S.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];ha({errorCodes:Bqe,fixIds:[Rqe],getCodeActions(e){let t=Vn.ChangeTracker.with(e,r=>jqe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[Ks(yFt,t,S.Add_void_to_Promise_resolved_without_a_value,Rqe,S.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ec(e,Bqe,(t,r)=>jqe(t,r.file,r,e.program,new Set))}});function jqe(e,t,r,a,u){let f=go(t,r.start);if(!et(f)||!Gs(f.parent)||f.parent.expression!==f||f.parent.arguments.length!==0)return;let p=a.getTypeChecker(),y=p.getSymbolAtLocation(f),g=y?.valueDeclaration;if(!g||!To(g)||!uT(g.parent.parent)||u?.has(g))return;u?.add(g);let x=vFt(g.parent.parent);if(Lt(x)){let k=x[0],T=!Nx(k)&&!gE(k)&&gE(U.createUnionTypeNode([k,U.createKeywordTypeNode(116)]).types[0]);T&&e.insertText(t,k.pos,"("),e.insertText(t,k.end,T?") | void":" | void")}else{let k=p.getResolvedSignature(f.parent),T=k?.parameters[0],A=T&&p.getTypeOfSymbolAtLocation(T,g.parent.parent);Jn(g)?(!A||A.flags&3)&&(e.insertText(t,g.parent.parent.end,")"),e.insertText(t,Ea(t.text,g.parent.parent.pos),"/** @type {Promise} */(")):(!A||A.flags&2)&&e.insertText(t,g.parent.parent.expression.end,"")}}function vFt(e){var t;if(Jn(e)){if(O_(e.parent)){let r=(t=KC(e.parent))==null?void 0:t.typeExpression.type;if(r&&pm(r)&&et(r.typeName)&&mr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var nA={};_(nA,{CompletionKind:()=>n$e,CompletionSource:()=>zqe,SortText:()=>Zf,StringCompletions:()=>yse,SymbolOriginInfoKind:()=>Vqe,createCompletionDetails:()=>Cq,createCompletionDetailsForSymbol:()=>Jwe,getCompletionEntriesFromSymbols:()=>Hwe,getCompletionEntryDetails:()=>XFt,getCompletionEntrySymbol:()=>QFt,getCompletionsAtPosition:()=>EFt,getDefaultCommitCharacters:()=>RE,getPropertiesForObjectExpression:()=>mse,moduleSpecifierResolutionCacheAttemptLimit:()=>Wqe,moduleSpecifierResolutionLimit:()=>Bwe});var Bwe=100,Wqe=1e3,Zf={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return`${e}\0${t}\0`},SortBelow(e){return e+"1"}},zqe=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(zqe||{}),Vqe=(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))(Vqe||{});function bFt(e){return!!(e.kind&1)}function SFt(e){return!!(e.kind&2)}function Sq(e){return!!(e&&e.kind&4)}function W8(e){return!!(e&&e.kind===32)}function xFt(e){return Sq(e)||W8(e)||jwe(e)}function CFt(e){return(Sq(e)||W8(e))&&!!e.isFromPackageJson}function kFt(e){return!!(e.kind&8)}function wFt(e){return!!(e.kind&16)}function Hqe(e){return!!(e&&e.kind&64)}function Uqe(e){return!!(e&&e.kind&128)}function TFt(e){return!!(e&&e.kind&256)}function jwe(e){return!!(e&&e.kind&512)}function Jqe(e,t,r,a,u,f,p,y,g){var x,k,T,A;let P=zc(),R=p||SR(a.getCompilerOptions())||((x=f.autoImportSpecifierExcludeRegexes)==null?void 0:x.length),W=!1,z=0,q=0,G=0,$=0,te=g({tryResolve:_e,skippedAny:()=>W,resolvedAny:()=>q>0,resolvedBeyondLimit:()=>q>Bwe}),ne=$?` (${(G/$*100).toFixed(1)}% hit rate)`:"";return(k=t.log)==null||k.call(t,`${e}: resolved ${q} module specifiers, plus ${z} ambient and ${G} from cache${ne}`),(T=t.log)==null||T.call(t,`${e}: response is ${W?"incomplete":"complete"}`),(A=t.log)==null||A.call(t,`${e}: ${zc()-P}`),te;function _e(ce,ae){if(ae){let Ee=r.getModuleSpecifierForBestExportInfo(ce,u,y);return Ee&&z++,Ee||"failed"}let Ce=R||f.allowIncompleteCompletions&&q{let R=ro(g.entries,W=>{var z;if(!W.hasAction||!W.source||!W.data||qqe(W.data))return W;if(!v$e(W.name,k))return;let{origin:q}=B.checkDefined(o$e(W.name,W.data,a,u)),G=T.get(t.path,W.data.exportMapKey),$=G&&P.tryResolve(G,!Od(sh(q.moduleSymbol.name)));if($==="skipped")return W;if(!$||$==="failed"){(z=u.log)==null||z.call(u,`Unexpected failure resolving auto import for '${W.name}' from '${W.source}'`);return}let te={...q,kind:32,moduleSpecifier:$.moduleSpecifier};return W.data=e$e(te),W.source=Vwe(te),W.sourceDisplay=[Bm(te.moduleSpecifier)],W});return P.skippedAny()||(g.isIncomplete=void 0),R});return g.entries=A,g.flags=(g.flags||0)|4,g.optionalReplacementSpan=Xqe(x),g}function Wwe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:RE(!1)}}function $qe(e,t,r,a,u,f){let p=go(e,t);if(!BP(p)&&!t0(p))return[];let y=t0(p)?p:p.parent;if(!t0(y))return[];let g=y.parent;if(!vs(g))return[];let x=N_(e),k=u.includeCompletionsWithSnippetText||void 0,T=er(y.tags,A=>ph(A)&&A.getEnd()<=t);return ro(g.parameters,A=>{if(!LP(A).length){if(et(A.name)){let P={tabstop:1},R=A.name.text,W=x9(R,A.initializer,A.dotDotDotToken,x,!1,!1,r,a,u),z=k?x9(R,A.initializer,A.dotDotDotToken,x,!1,!0,r,a,u,P):void 0;return f&&(W=W.slice(1),z&&(z=z.slice(1))),{name:W,kind:"parameter",sortText:Zf.LocationPriority,insertText:k?z:void 0,isSnippet:k}}else if(A.parent.parameters.indexOf(A)===T){let P=`param${T}`,R=Gqe(P,A.name,A.initializer,A.dotDotDotToken,x,!1,r,a,u),W=k?Gqe(P,A.name,A.initializer,A.dotDotDotToken,x,!0,r,a,u):void 0,z=R.join(aS(a)+"* "),q=W?.join(aS(a)+"* ");return f&&(z=z.slice(1),q&&(q=q.slice(1))),{name:z,kind:"parameter",sortText:Zf.LocationPriority,insertText:k?q:void 0,isSnippet:k}}}})}function Gqe(e,t,r,a,u,f,p,y,g){if(!u)return[x9(e,r,a,u,!1,f,p,y,g,{tabstop:1})];return x(e,t,r,a,{tabstop:1});function x(T,A,P,R,W){if(Om(A)&&!R){let q={tabstop:W.tabstop},G=x9(T,P,R,u,!0,f,p,y,g,q),$=[];for(let te of A.elements){let ne=k(T,te,q);if(ne)$.push(...ne);else{$=void 0;break}}if($)return W.tabstop=q.tabstop,[G,...$]}return[x9(T,P,R,u,!1,f,p,y,g,W)]}function k(T,A,P){if(!A.propertyName&&et(A.name)||et(A.name)){let R=A.propertyName?V3(A.propertyName):A.name.text;if(!R)return;let W=`${T}.${R}`;return[x9(W,A.initializer,A.dotDotDotToken,u,!1,f,p,y,g,P)]}else if(A.propertyName){let R=V3(A.propertyName);return R&&x(`${T}.${R}`,A.name,A.initializer,A.dotDotDotToken,P)}}}function x9(e,t,r,a,u,f,p,y,g,x){if(f&&B.assertIsDefined(x),t&&(e=IFt(e,t)),f&&(e=oT(e)),a){let k="*";if(u)B.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),k="Object";else{if(t){let P=p.getTypeAtLocation(t.parent);if(!(P.flags&16385)){let R=t.getSourceFile(),z=mm(R,g)===0?268435456:0,q=p.typeToTypeNode(P,Ri(t,vs),z);if(q){let G=f?use({removeComments:!0,module:y.module,moduleResolution:y.moduleResolution,target:y.target}):Bx({removeComments:!0,module:y.module,moduleResolution:y.moduleResolution,target:y.target});Hn(q,1),k=G.printNode(4,q,R)}}}f&&k==="*"&&(k=`\${${x.tabstop++}:${k}}`)}let T=!u&&r?"...":"",A=f?`\${${x.tabstop++}}`:"";return`@param {${T}${k}} ${e} ${A}`}else{let k=f?`\${${x.tabstop++}}`:"";return`@param ${e} ${k}`}}function IFt(e,t){let r=t.getText().trim();return r.includes(` +`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function NFt(e){return{name:ua(e),kind:"keyword",kindModifiers:"",sortText:Zf.GlobalsOrKeywords}}function AFt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice(),defaultCommitCharacters:RE(t)}}function Kqe(e,t,r){return{kind:4,keywordCompletions:a$e(e,t),isNewIdentifierLocation:r}}function PFt(e){switch(e){case 156:return 8;default:B.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function Xqe(e){return e?.kind===80?B_(e):void 0}function LFt(e,t,r,a,u,f,p,y,g,x){let{symbols:k,contextToken:T,completionKind:A,isInSnippetScope:P,isNewIdentifierLocation:R,location:W,propertyAccessToConvert:z,keywordFilters:q,symbolToOriginInfoMap:G,recommendedCompletion:$,isJsxInitializer:te,isTypeOnlyLocation:ne,isJsxIdentifierExpected:_e,isRightOfOpenTag:ce,isRightOfDotOrQuestionDot:ae,importStatementCompletion:Ce,insideJsDocTagTypeExpression:he,symbolToSortTextMap:ue,hasUnresolvedAutoImports:Ee}=f,ve=f.literals,be=r.getTypeChecker();if(vR(e.scriptKind)===1){let Oe=FFt(W,e);if(Oe)return Oe}let Se=Ri(T,x4);if(Se&&(sye(T)||Xw(T,Se.expression))){let Oe=JJ(be,Se.parent.clauses);ve=ve.filter(we=>!Oe.hasValue(we)),k.forEach((we,Ae)=>{if(we.valueDeclaration&&_S(we.valueDeclaration)){let Fe=be.getConstantValue(we.valueDeclaration);Fe!==void 0&&Oe.hasValue(Fe)&&(G[Ae]={kind:256})}})}let Re=Vo(),ie=Yqe(e,a);if(ie&&!R&&(!k||k.length===0)&&q===0)return;let ke=Hwe(k,Re,void 0,T,W,g,e,t,r,Oa(a),u,A,p,a,y,ne,z,_e,te,Ce,$,G,ue,_e,ce,x);if(q!==0)for(let Oe of a$e(q,!he&&N_(e)))(ne&&C8(K2(Oe.name))||!ne&&g7t(Oe.name)||!ke.has(Oe.name))&&(ke.add(Oe.name),vn(Re,Oe,xq,void 0,!0));for(let Oe of r7t(T,g))ke.has(Oe.name)||(ke.add(Oe.name),vn(Re,Oe,xq,void 0,!0));for(let Oe of ve){let we=RFt(e,p,Oe);ke.add(we.name),vn(Re,we,xq,void 0,!0)}ie||MFt(e,W.pos,ke,Oa(a),Re);let De;if(p.includeCompletionsWithInsertText&&T&&!ce&&!ae&&(De=Ri(T,BO))){let Oe=Qqe(De,e,p,a,t,r,y);Oe&&Re.push(Oe.entry)}return{flags:f.flags,isGlobalCompletion:P,isIncomplete:p.allowIncompleteCompletions&&Ee?!0:void 0,isMemberCompletion:OFt(A),isNewIdentifierLocation:R,optionalReplacementSpan:Xqe(W),entries:Re,defaultCommitCharacters:RE(R)}}function Yqe(e,t){return!N_(e)||!!yO(e,t)}function Qqe(e,t,r,a,u,f,p){let y=e.clauses,g=f.getTypeChecker(),x=g.getTypeAtLocation(e.parent.expression);if(x&&x.isUnion()&&Et(x.types,k=>k.isLiteral())){let k=JJ(g,y),T=Oa(a),A=mm(t,r),P=Qf.createImportAdder(t,f,r,u),R=[];for(let ne of x.types)if(ne.flags&1024){B.assert(ne.symbol,"An enum member type should have a symbol"),B.assert(ne.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let _e=ne.symbol.valueDeclaration&&g.getConstantValue(ne.symbol.valueDeclaration);if(_e!==void 0){if(k.hasValue(_e))continue;k.addValue(_e)}let ce=Qf.typeToAutoImportableTypeNode(g,P,ne,e,T);if(!ce)return;let ae=cse(ce,T,A);if(!ae)return;R.push(ae)}else if(!k.hasValue(ne.value))switch(typeof ne.value){case"object":R.push(ne.value.negative?U.createPrefixUnaryExpression(41,U.createBigIntLiteral({negative:!1,base10Value:ne.value.base10Value})):U.createBigIntLiteral(ne.value));break;case"number":R.push(ne.value<0?U.createPrefixUnaryExpression(41,U.createNumericLiteral(-ne.value)):U.createNumericLiteral(ne.value));break;case"string":R.push(U.createStringLiteral(ne.value,A===0));break}if(R.length===0)return;let W=_i(R,ne=>U.createCaseClause(ne,[])),z=cb(u,p?.options),q=use({removeComments:!0,module:a.module,moduleResolution:a.moduleResolution,target:a.target,newLine:o9(z)}),G=p?ne=>q.printAndFormatNode(4,ne,t,p):ne=>q.printNode(4,ne,t),$=_i(W,(ne,_e)=>r.includeCompletionsWithSnippetText?`${G(ne)}$${_e+1}`:`${G(ne)}`).join(z);return{entry:{name:`${q.printNode(4,W[0],t)} ...`,kind:"",sortText:Zf.GlobalsOrKeywords,insertText:$,hasAction:P.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:P}}}function cse(e,t,r){switch(e.kind){case 183:let a=e.typeName;return lse(a,t,r);case 199:let u=cse(e.objectType,t,r),f=cse(e.indexType,t,r);return u&&f&&U.createElementAccessExpression(u,f);case 201:let p=e.literal;switch(p.kind){case 11:return U.createStringLiteral(p.text,r===0);case 9:return U.createNumericLiteral(p.text,p.numericLiteralFlags)}return;case 196:let y=cse(e.type,t,r);return y&&(et(y)?y:U.createParenthesizedExpression(y));case 186:return lse(e.exprName,t,r);case 205:B.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function lse(e,t,r){if(et(e))return e;let a=So(e.right.escapedText);return bee(a,t)?U.createPropertyAccessExpression(lse(e.left,t,r),a):U.createElementAccessExpression(lse(e.left,t,r),U.createStringLiteral(a,r===0))}function OFt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function FFt(e,t){let r=Ri(e,a=>{switch(a.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){let a=!!Tc(r,32,t),p=r.parent.openingElement.tagName.getText(t)+(a?"":">"),y=B_(r.tagName),g={name:p,kind:"class",kindModifiers:void 0,sortText:Zf.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:y,entries:[g],defaultCommitCharacters:RE(!1)}}}function MFt(e,t,r,a,u){Poe(e).forEach((f,p)=>{if(f===t)return;let y=So(p);!r.has(y)&&pp(y,a)&&(r.add(y),vn(u,{name:y,kind:"warning",kindModifiers:"",sortText:Zf.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},xq))})}function zwe(e,t,r){return typeof r=="object"?rT(r)+"n":fs(r)?I8(e,t,r):JSON.stringify(r)}function RFt(e,t,r){return{name:zwe(e,t,r),kind:"string",kindModifiers:"",sortText:Zf.LocationPriority,commitCharacters:[]}}function BFt(e,t,r,a,u,f,p,y,g,x,k,T,A,P,R,W,z,q,G,$,te,ne,_e,ce){var ae,Ce;let he,ue,Ee=dre(r,f),ve,be,Se=Vwe(T),Re,ie,ke,De=g.getTypeChecker(),Oe=T&&wFt(T),we=T&&SFt(T)||k;if(T&&bFt(T))he=k?`this${Oe?"?.":""}[${t$e(p,G,x)}]`:`this${Oe?"?.":"."}${x}`;else if((we||Oe)&&P){he=we?k?`[${t$e(p,G,x)}]`:`[${x}]`:x,(Oe||P.questionDotToken)&&(he=`?.${he}`);let Be=Tc(P,25,p)||Tc(P,29,p);if(!Be)return;let Ge=Ro(x,P.name.text)?P.name.end:Be.end;Ee=bu(Be.getStart(p),Ge)}if(R&&(he===void 0&&(he=x),he=`{${he}}`,typeof R!="boolean"&&(Ee=B_(R,p))),T&&kFt(T)&&P){he===void 0&&(he=x);let Be=fd(P.pos,p),Ge="";Be&&MJ(Be.end,Be.parent,p)&&(Ge=";"),Ge+=`(await ${P.expression.getText()})`,he=k?`${Ge}${he}`:`${Ge}${Oe?"?.":"."}${he}`;let Ue=kr(P.parent,Ax)?P.parent:P.expression;Ee=bu(Ue.getStart(p),P.end)}if(W8(T)&&(Re=[Bm(T.moduleSpecifier)],W&&({insertText:he,replacementSpan:Ee}=qFt(x,W,T,z,p,g,G),be=G.includeCompletionsWithSnippetText?!0:void 0)),T?.kind===64&&(ie=!0),$===0&&a&&((ae=fd(a.pos,p,a))==null?void 0:ae.kind)!==28&&(pu(a.parent.parent)||Lm(a.parent.parent)||qp(a.parent.parent)||Qv(a.parent)||((Ce=Ri(a.parent,ed))==null?void 0:Ce.getLastToken(p))===a||jf(a.parent)&&ma(p,a.getEnd()).line!==ma(p,f).line)&&(Se="ObjectLiteralMemberWithComma/",ie=!0),G.includeCompletionsWithClassMemberSnippets&&G.includeCompletionsWithInsertText&&$===3&&WFt(e,u,p)){let Be,Ge=Zqe(y,g,q,G,x,e,u,f,a,te);if(Ge)({insertText:he,filterText:ue,isSnippet:be,importAdder:Be}=Ge),(Be?.hasFixes()||Ge.eraseRange)&&(ie=!0,Se="ClassMemberSnippet/");else return}if(T&&Uqe(T)&&({insertText:he,isSnippet:be,labelDetails:ke}=T,G.useLabelDetailsInCompletionEntries||(x=x+ke.detail,ke=void 0),Se="ObjectLiteralMethodSnippet/",t=Zf.SortBelow(t)),ne&&!_e&&G.includeCompletionsWithSnippetText&&G.jsxAttributeCompletionStyle&&G.jsxAttributeCompletionStyle!=="none"&&!(ry(u.parent)&&u.parent.initializer)){let Be=G.jsxAttributeCompletionStyle==="braces",Ge=De.getTypeOfSymbolAtLocation(e,u);G.jsxAttributeCompletionStyle==="auto"&&!(Ge.flags&528)&&!(Ge.flags&1048576&&St(Ge.types,Ke=>!!(Ke.flags&528)))&&(Ge.flags&402653316||Ge.flags&1048576&&Et(Ge.types,Ke=>!!(Ke.flags&402686084||OSe(Ke)))?(he=`${oT(x)}=${I8(p,G,"$1")}`,be=!0):Be=!0),Be&&(he=`${oT(x)}={$1}`,be=!0)}if(he!==void 0&&!G.includeCompletionsWithInsertText)return;(Sq(T)||W8(T))&&(ve=e$e(T),ie=!W);let Ae=Ri(u,IV);if(Ae){let Be=Oa(y.getCompilationSettings());if(!pp(x,Be))he=JSON.stringify(x),Ae.kind===275&&(he+=" as "+jFt(x,Be));else if(Ae.kind===275){let Ge=K2(x);Ge&&(Ge===135||xZ(Ge))&&(he=`${x} as ${x}_`)}}let Fe=SS.getSymbolKind(De,e,u),Tt=Fe==="warning"||Fe==="string"?[]:void 0;return{name:x,kind:Fe,kindModifiers:SS.getSymbolModifiers(De,e),sortText:t,source:Se,hasAction:ie?!0:void 0,isRecommended:$Ft(e,A,De)||void 0,insertText:he,filterText:ue,replacementSpan:Ee,sourceDisplay:Re,labelDetails:ke,isSnippet:be,isPackageJsonImport:CFt(T)||void 0,isImportStatementCompletion:!!W||void 0,data:ve,commitCharacters:Tt,...ce?{symbol:e}:void 0}}function jFt(e,t){let r=!1,a="",u;for(let f=0;f=65536?2:1)u=e.codePointAt(f),u!==void 0&&(f===0?Hy(u,t):q1(u,t))?(r&&(a+="_"),a+=String.fromCodePoint(u),r=!1):r=!0;return r&&(a+="_"),a||"_"}function WFt(e,t,r){return Jn(t)?!1:!!(e.flags&106500)&&(jr(t)||t.parent&&t.parent.parent&&Cd(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&jr(t.parent.parent)||t.parent&&T4(t)&&jr(t.parent))}function Zqe(e,t,r,a,u,f,p,y,g,x){let k=Ri(p,jr);if(!k)return;let T,A=u,P=u,R=t.getTypeChecker(),W=p.getSourceFile(),z=use({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,omitTrailingSemicolon:!1,newLine:o9(cb(e,x?.options))}),q=Qf.createImportAdder(W,t,a,e),G;if(a.includeCompletionsWithSnippetText){T=!0;let Ce=U.createEmptyStatement();G=U.createBlock([Ce],!0),Aee(Ce,{kind:0,order:0})}else G=U.createBlock([],!0);let $=0,{modifiers:te,range:ne,decorators:_e}=zFt(g,W,y),ce=te&64&&k.modifierFlagsCache&64,ae=[];if(Qf.addNewNodeForMemberSymbol(f,k,W,{program:t,host:e},a,q,Ce=>{let he=0;ce&&(he|=64),Cd(Ce)&&R.getMemberOverrideModifierStatus(k,Ce,f)===1&&(he|=16),ae.length||($=Ce.modifierFlagsCache|he),Ce=U.replaceModifiers(Ce,$),ae.push(Ce)},G,Qf.PreserveOptionalFlags.Property,!!ce),ae.length){let Ce=f.flags&8192,he=$|16|1;Ce?he|=1024:he|=136;let ue=te&he;if(te&~he)return;if($&4&&ue&1&&($&=-5),ue!==0&&!(ue&1)&&($&=-2),$|=ue,ae=ae.map(ve=>U.replaceModifiers(ve,$)),_e?.length){let ve=ae[ae.length-1];hT(ve)&&(ae[ae.length-1]=U.replaceDecoratorsAndModifiers(ve,_e.concat(Bw(ve)||[])))}let Ee=131073;x?A=z.printAndFormatSnippetList(Ee,U.createNodeArray(ae),W,x):A=z.printSnippetList(Ee,U.createNodeArray(ae),W)}return{insertText:A,filterText:P,isSnippet:T,importAdder:q,eraseRange:ne}}function zFt(e,t,r){if(!e||ma(t,r).line>ma(t,e.getEnd()).line)return{modifiers:0};let a=0,u,f,p={pos:r,end:r};if(ls(e.parent)&&(f=VFt(e))){e.parent.modifiers&&(a|=K0(e.parent.modifiers)&98303,u=e.parent.modifiers.filter(Td)||[],p.pos=Math.min(...e.parent.modifiers.map(g=>g.getStart(t))));let y=nN(f);a&y||(a|=y,p.pos=Math.min(p.pos,e.getStart(t))),e.parent.name!==e&&(p.end=e.parent.name.getStart(t))}return{modifiers:a,decorators:u,range:p.posy.getSignaturesOfType($,0).length>0);if(G.length===1)P=G[0];else return}if(y.getSignaturesOfType(P,0).length!==1)return;let W=y.typeToTypeNode(P,t,A,void 0,Qf.getNoopSymbolTrackerWithResolver({program:a,host:u}));if(!W||!Qy(W))return;let z;if(f.includeCompletionsWithSnippetText){let G=U.createEmptyStatement();z=U.createBlock([G],!0),Aee(G,{kind:0,order:0})}else z=U.createBlock([],!0);let q=W.parameters.map(G=>U.createParameterDeclaration(void 0,G.dotDotDotToken,G.name,void 0,void 0,G.initializer));return U.createMethodDeclaration(void 0,void 0,x,void 0,void 0,q,void 0,z)}default:return}}function use(e){let t,r=Vn.createWriter(aS(e)),a=Bx(e,r),u={...r,write:A=>f(A,()=>r.write(A)),nonEscapingWrite:r.write,writeLiteral:A=>f(A,()=>r.writeLiteral(A)),writeStringLiteral:A=>f(A,()=>r.writeStringLiteral(A)),writeSymbol:(A,P)=>f(A,()=>r.writeSymbol(A,P)),writeParameter:A=>f(A,()=>r.writeParameter(A)),writeComment:A=>f(A,()=>r.writeComment(A)),writeProperty:A=>f(A,()=>r.writeProperty(A))};return{printSnippetList:p,printAndFormatSnippetList:g,printNode:x,printAndFormatNode:T};function f(A,P){let R=oT(A);if(R!==A){let W=r.getTextPos();P();let z=r.getTextPos();t=hi(t||(t=[]),{newText:R,span:{start:W,length:z-W}})}else P()}function p(A,P,R){let W=y(A,P,R);return t?Vn.applyChanges(W,t):W}function y(A,P,R){return t=void 0,u.clear(),a.writeList(A,P,R,u),u.getText()}function g(A,P,R,W){let z={text:y(A,P,R),getLineAndCharacterOfPosition(te){return ma(this,te)}},q=UJ(W,R),G=vo(P,te=>{let ne=Vn.assignPositionsToNode(te);return td.formatNodeGivenIndentation(ne,z,R.languageVariant,0,0,{...W,options:q})}),$=t?lc(Fo(G,t),(te,ne)=>jW(te.span,ne.span)):G;return Vn.applyChanges(z.text,$)}function x(A,P,R){let W=k(A,P,R);return t?Vn.applyChanges(W,t):W}function k(A,P,R){return t=void 0,u.clear(),a.writeNode(A,P,R,u),u.getText()}function T(A,P,R,W){let z={text:k(A,P,R),getLineAndCharacterOfPosition(ne){return ma(this,ne)}},q=UJ(W,R),G=Vn.assignPositionsToNode(P),$=td.formatNodeGivenIndentation(G,z,R.languageVariant,0,0,{...W,options:q}),te=t?lc(Fo($,t),(ne,_e)=>jW(ne.span,_e.span)):$;return Vn.applyChanges(z.text,te)}}function e$e(e){let t=e.fileName?void 0:sh(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return W8(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:sh(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function JFt(e,t,r){let a=e.exportName==="default",u=!!e.isPackageJsonImport;return qqe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:a,isFromPackageJson:u}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:a,isFromPackageJson:u}}function qFt(e,t,r,a,u,f,p){let y=t.replacementSpan,g=oT(I8(u,p,r.moduleSpecifier)),x=r.isDefaultExport?1:r.exportName==="export="?2:0,k=p.includeCompletionsWithSnippetText?"$1":"",T=Qf.getImportKind(u,x,f,!0),A=t.couldBeTypeOnlyImportSpecifier,P=t.isTopLevelTypeOnly?` ${ua(156)} `:" ",R=A?`${ua(156)} `:"",W=a?";":"";switch(T){case 3:return{replacementSpan:y,insertText:`import${P}${oT(e)}${k} = require(${g})${W}`};case 1:return{replacementSpan:y,insertText:`import${P}${oT(e)}${k} from ${g}${W}`};case 2:return{replacementSpan:y,insertText:`import${P}* as ${oT(e)} from ${g}${W}`};case 0:return{replacementSpan:y,insertText:`import${P}{ ${R}${oT(e)}${k} } from ${g}${W}`}}}function t$e(e,t,r){return/^\d+$/.test(r)?r:I8(e,t,r)}function $Ft(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Vwe(e){if(Sq(e))return sh(e.moduleSymbol.name);if(W8(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function Hwe(e,t,r,a,u,f,p,y,g,x,k,T,A,P,R,W,z,q,G,$,te,ne,_e,ce,ae,Ce=!1){let he=zc(),ue=p7t(a,u),Ee=e9(p),ve=g.getTypeChecker(),be=new Map;for(let ie=0;ieKe.getSourceFile()===u.getSourceFile()));be.set(we,Ge),vn(t,Be,xq,void 0,!0)}return k("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(zc()-he)),{has:ie=>be.has(ie),add:ie=>be.set(ie,!0)};function Se(ie,ke){var De;let Oe=ie.flags;if(!mo(u)){if(ll(u.parent))return!0;if(kr(ue,Ur)&&ie.valueDeclaration===ue)return!1;let we=ie.valueDeclaration??((De=ie.declarations)==null?void 0:De[0]);if(ue&&we&&(Sl(ue)&&Sl(we)||To(ue)&&To(we))){let Fe=we.pos,Tt=To(ue)?ue.parent.parameters:hE(ue.parent)?void 0:ue.parent.typeParameters;if(Fe>=ue.pos&&Tt&&Fezwe(r,p,$)===u.name);return G!==void 0?{type:"literal",literal:G}:Le(x,($,te)=>{let ne=P[te],_e=fse($,Oa(y),ne,A,g.isJsxIdentifierExpected);return _e&&_e.name===u.name&&(u.source==="ClassMemberSnippet/"&&$.flags&106500||u.source==="ObjectLiteralMethodSnippet/"&&$.flags&8196||Vwe(ne)===u.source||u.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:$,location:T,origin:ne,contextToken:R,previousToken:W,isJsxInitializer:z,isTypeOnlyLocation:q}:void 0})||{type:"none"}}function XFt(e,t,r,a,u,f,p,y,g){let x=e.getTypeChecker(),k=e.getCompilerOptions(),{name:T,source:A,data:P}=u,{previousToken:R,contextToken:W}=dse(a,r);if(JN(r,a,R))return yse.getStringLiteralCompletionDetails(T,r,a,R,e,f,g,y);let z=i$e(e,t,r,a,u,f,y);switch(z.type){case"request":{let{request:q}=z;switch(q.kind){case 1:return Ok.getJSDocTagNameCompletionDetails(T);case 2:return Ok.getJSDocTagCompletionDetails(T);case 3:return Ok.getJSDocParameterNameCompletionDetails(T);case 4:return Lt(q.keywordCompletions,G=>G.name===T)?Uwe(T,"keyword",5):void 0;default:return B.assertNever(q)}}case"symbol":{let{symbol:q,location:G,contextToken:$,origin:te,previousToken:ne}=z,{codeActions:_e,sourceDisplay:ce}=YFt(T,G,$,te,q,e,f,k,r,a,ne,p,y,P,A,g),ae=jwe(te)?te.symbolName:q.name;return Jwe(q,ae,x,r,G,g,_e,ce)}case"literal":{let{literal:q}=z;return Uwe(zwe(r,y,q),"string",typeof q=="string"?8:7)}case"cases":{let q=Qqe(W.parent,r,y,e.getCompilerOptions(),f,e,void 0);if(q?.importAdder.hasFixes()){let{entry:G,importAdder:$}=q,te=Vn.ChangeTracker.with({host:f,formatContext:p,preferences:y},$.writeFixes);return{name:G.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:te,description:TT([S.Includes_imports_of_types_referenced_by_0,T])}]}}return{name:T,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return s$e().some(q=>q.name===T)?Uwe(T,"keyword",5):void 0;default:B.assertNever(z)}}function Uwe(e,t,r){return Cq(e,"",t,[vp(e,r)])}function Jwe(e,t,r,a,u,f,p,y){let{displayParts:g,documentation:x,symbolKind:k,tags:T}=r.runWithCancellationToken(f,A=>SS.getSymbolDisplayPartsDocumentationAndSymbolKind(A,e,a,u,u,7));return Cq(t,SS.getSymbolModifiers(r,e),k,g,x,T,p,y)}function Cq(e,t,r,a,u,f,p,y){return{name:e,kindModifiers:t,kind:r,displayParts:a,documentation:u,tags:f,codeActions:p,source:y,sourceDisplay:y}}function YFt(e,t,r,a,u,f,p,y,g,x,k,T,A,P,R,W){if(P?.moduleSpecifier&&k&&p$e(r||k,g).replacementSpan)return{codeActions:void 0,sourceDisplay:[Bm(P.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){let{importAdder:_e,eraseRange:ce}=Zqe(p,f,y,A,e,u,t,x,r,T);if(_e?.hasFixes()||ce)return{sourceDisplay:void 0,codeActions:[{changes:Vn.ChangeTracker.with({host:p,formatContext:T,preferences:A},Ce=>{_e&&_e.writeFixes(Ce),ce&&Ce.deleteRange(g,ce)}),description:_e?.hasFixes()?TT([S.Includes_imports_of_types_referenced_by_0,e]):TT([S.Update_modifiers_of_0,e])}]}}if(Hqe(a)){let _e=Qf.getPromoteTypeOnlyCompletionAction(g,a.declaration.name,f,p,T,A);return B.assertIsDefined(_e,"Expected to have a code action for promoting type-only alias"),{codeActions:[_e],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){let _e=Vn.ChangeTracker.with({host:p,formatContext:T,preferences:A},ce=>ce.insertText(g,r.end,","));if(_e)return{sourceDisplay:void 0,codeActions:[{changes:_e,description:TT([S.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!a||!(Sq(a)||W8(a)))return{codeActions:void 0,sourceDisplay:void 0};let z=a.isFromPackageJson?p.getPackageJsonAutoImportProvider().getTypeChecker():f.getTypeChecker(),{moduleSymbol:q}=a,G=z.getMergedSymbol(hf(u.exportSymbol||u,z)),$=r?.kind===30&&Mf(r.parent),{moduleSpecifier:te,codeAction:ne}=Qf.getImportCompletionAction(G,q,P?.exportMapKey,g,e,$,p,f,T,k&&et(k)?k.getStart(g):x,A,W);return B.assert(!P?.moduleSpecifier||te===P.moduleSpecifier),{sourceDisplay:[Bm(te)],codeActions:[ne]}}function QFt(e,t,r,a,u,f,p){let y=i$e(e,t,r,a,u,f,p);return y.type==="symbol"?y.symbol:void 0}var n$e=(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))(n$e||{});function ZFt(e,t,r){return Le(t&&(t.isUnion()?t.types:[t]),a=>{let u=a&&a.symbol;return u&&u.flags&424&&!Uge(u)?qwe(u,e,r):void 0})}function e7t(e,t,r,a){let{parent:u}=e;switch(e.kind){case 80:return OJ(e,a);case 64:switch(u.kind){case 260:return a.getContextualType(u.initializer);case 226:return a.getTypeAtLocation(u.left);case 291:return a.getContextualTypeForJsxAttribute(u);default:return}case 105:return a.getContextualType(u);case 84:let f=kr(u,x4);return f?Fre(f,a):void 0;case 19:return jO(u)&&!Yv(u.parent)&&!_T(u.parent)?a.getContextualTypeForJsxAttribute(u.parent):void 0;default:let p=I9.getArgumentInfoForCompletions(e,t,r,a);return p?a.getContextualTypeForArgumentAtIndex(p.invocation,p.argumentIndex):FJ(e.kind)&&Yn(u)&&FJ(u.operatorToken.kind)?a.getTypeAtLocation(u.left):a.getContextualType(e,4)||a.getContextualType(e)}}function qwe(e,t,r){let a=r.getAccessibleSymbolChain(e,t,-1,!1);return a?Ta(a):e.parent&&(t7t(e.parent)?e:qwe(e.parent,t,r))}function t7t(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===307))}function r$e(e,t,r,a,u,f,p,y,g,x){let k=e.getTypeChecker(),T=Yqe(r,a),A=zc(),P=go(r,u);t("getCompletionData: Get current token: "+(zc()-A)),A=zc();let R=hS(r,u,P);t("getCompletionData: Is inside comment: "+(zc()-A));let W=!1,z=!1,q=!1;if(R){if(ASe(r,u)){if(r.text.charCodeAt(u-1)===64)return{kind:1};{let Qe=Yh(u,r);if(!/[^*|\s(/)]/.test(r.text.substring(Qe,u)))return{kind:2}}}let tt=o7t(P,u);if(tt){if(tt.tagName.pos<=u&&u<=tt.tagName.end)return{kind:1};if(oy(tt))z=!0;else{let Qe=Fi(tt);if(Qe&&(P=go(r,u),(!P||!Xy(P)&&(P.parent.kind!==348||P.parent.name!==P))&&(W=Wt(Qe))),!W&&ph(tt)&&(Ul(tt.name)||tt.name.pos<=u&&u<=tt.name.end))return{kind:3,tag:tt}}}if(!W&&!z){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}A=zc();let G=!W&&!z&&N_(r),$=dse(u,r),te=$.previousToken,ne=$.contextToken;t("getCompletionData: Get previous token: "+(zc()-A));let _e=P,ce,ae=!1,Ce=!1,he=!1,ue=!1,Ee=!1,ve=!1,be,Se=ip(r,u),Re=0,ie=!1,ke=0;if(ne){let tt=p$e(ne,r);if(tt.keywordCompletion){if(tt.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[NFt(tt.keywordCompletion)],isNewIdentifierLocation:tt.isNewIdentifierLocation};Re=PFt(tt.keywordCompletion)}if(tt.replacementSpan&&f.includeCompletionsForImportStatements&&f.includeCompletionsWithInsertText&&(ke|=2,be=tt,ie=tt.isNewIdentifierLocation),!tt.replacementSpan&&Do(ne))return t("Returning an empty list because completion was requested in an invalid position."),Re?Kqe(Re,G,aa()):void 0;let Qe=ne.parent;if(ne.kind===25||ne.kind===29)switch(ae=ne.kind===25,Ce=ne.kind===29,Qe.kind){case 211:ce=Qe,_e=ce.expression;let ei=c4(ce);if(Ul(ei)||(Gs(_e)||vs(_e))&&_e.end===ne.pos&&_e.getChildCount(r)&&pa(_e.getChildren(r)).kind!==22)return;break;case 166:_e=Qe.left;break;case 267:_e=Qe.name;break;case 205:_e=Qe;break;case 236:_e=Qe.getFirstToken(r),B.assert(_e.kind===102||_e.kind===105);break;default:return}else if(!be){if(Qe&&Qe.kind===211&&(ne=Qe,Qe=Qe.parent),P.parent===Se)switch(P.kind){case 32:(P.parent.kind===284||P.parent.kind===286)&&(Se=P);break;case 44:P.parent.kind===285&&(Se=P);break}switch(Qe.kind){case 287:ne.kind===44&&(ue=!0,Se=ne);break;case 226:if(!_$e(Qe))break;case 285:case 284:case 286:ve=!0,ne.kind===30&&(he=!0,Se=ne);break;case 294:case 293:(te.kind===20||te.kind===80&&te.parent.kind===291)&&(ve=!0);break;case 291:if(Qe.initializer===te&&te.end$N(tt?y.getPackageJsonAutoImportProvider():e,y));if(ae||Ce)bn();else if(he)Ae=k.getJsxIntrinsicTagNamesAt(Se),B.assertEachIsDefined(Ae,"getJsxIntrinsicTagNames() should all be defined"),Sn(),Oe=1,Re=0;else if(ue){let tt=ne.parent.parent.openingElement.tagName,Qe=k.getSymbolAtLocation(tt);Qe&&(Ae=[Qe]),Oe=1,Re=0}else if(!Sn())return Re?Kqe(Re,G,ie):void 0;t("getCompletionData: Semantic work: "+(zc()-De));let gt=te&&e7t(te,u,r,k),nt=!kr(te,xc)&&!ve?ro(gt&&(gt.isUnion()?gt.types:[gt]),tt=>tt.isLiteral()&&!(tt.flags&1024)?tt.value:void 0):[],At=te&>&&ZFt(te,gt,k);return{kind:0,symbols:Ae,completionKind:Oe,isInSnippetScope:q,propertyAccessToConvert:ce,isNewIdentifierLocation:ie,location:Se,keywordFilters:Re,literals:nt,symbolToOriginInfoMap:Tt,recommendedCompletion:At,previousToken:te,contextToken:ne,isJsxInitializer:Ee,insideJsDocTagTypeExpression:W,symbolToSortTextMap:Be,isTypeOnlyLocation:Ke,isJsxIdentifierExpected:ve,isRightOfOpenTag:he,isRightOfDotOrQuestionDot:ae||Ce,importStatementCompletion:be,hasUnresolvedAutoImports:we,flags:ke};function ci(tt){switch(tt.kind){case 341:case 348:case 342:case 344:case 346:case 349:case 350:return!0;case 345:return!!tt.constraint;default:return!1}}function Fi(tt){if(ci(tt)){let Qe=Gh(tt)?tt.constraint:tt.typeExpression;return Qe&&Qe.kind===309?Qe:void 0}if(AN(tt)||IH(tt))return tt.class}function bn(){Oe=2;let tt=eS(_e),Qe=tt&&!_e.isTypeOf||U0(_e.parent)||H5(ne,r,k),ei=dJ(_e);if(G_(_e)||tt||lr(_e)){let In=Hu(_e.parent);In&&(ie=!0);let Ji=k.getSymbolAtLocation(_e);if(Ji&&(Ji=hf(Ji,k),Ji.flags&1920)){let _n=k.getExportsOfModule(Ji);B.assertEachIsDefined(_n,"getExportsOfModule() should all be defined");let Dt=li=>k.isValidPropertyAccess(tt?_e:_e.parent,li.name),Nt=li=>Gwe(li,k),ti=In?li=>{var wi;return!!(li.flags&1920)&&!((wi=li.declarations)!=null&&wi.every(Si=>Si.parent===_e.parent))}:ei?li=>Nt(li)||Dt(li):Qe||W?Nt:Dt;for(let li of _n)ti(li)&&Ae.push(li);if(!Qe&&!W&&Ji.declarations&&Ji.declarations.some(li=>li.kind!==307&&li.kind!==267&&li.kind!==266)){let li=k.getTypeOfSymbolAtLocation(Ji,_e).getNonOptionalType(),wi=!1;if(li.isNullableType()){let Si=ae&&!Ce&&f.includeAutomaticOptionalChainCompletions!==!1;(Si||Ce)&&(li=li.getNonNullableType(),Si&&(wi=!0))}an(li,!!(_e.flags&65536),wi)}return}}if(!Qe||tN(_e)){k.tryGetThisTypeAt(_e,!1);let In=k.getTypeAtLocation(_e).getNonOptionalType();if(Qe)an(In.getNonNullableType(),!1,!1);else{let Ji=!1;if(In.isNullableType()){let _n=ae&&!Ce&&f.includeAutomaticOptionalChainCompletions!==!1;(_n||Ce)&&(In=In.getNonNullableType(),_n&&(Ji=!0))}an(In,!!(_e.flags&65536),Ji)}}}function an(tt,Qe,ei){ie=!!tt.getStringIndexType(),Ce&&Lt(tt.getCallSignatures())&&(ie=!0);let In=_e.kind===205?_e:_e.parent;if(T)for(let Ji of tt.getApparentProperties())k.isValidPropertyAccessForCompletions(In,tt,Ji)&&ni(Ji,!1,ei);else Ae.push(...Di(hse(tt,k),Ji=>k.isValidPropertyAccessForCompletions(In,tt,Ji)));if(Qe&&f.includeCompletionsWithInsertText){let Ji=k.getPromisedTypeOfPromise(tt);if(Ji)for(let _n of Ji.getApparentProperties())k.isValidPropertyAccessForCompletions(In,Ji,_n)&&ni(_n,!0,ei)}}function ni(tt,Qe,ei){var In;let Ji=Le(tt.declarations,ti=>kr(cs(ti),Ma));if(Ji){let ti=Ci(Ji.expression),li=ti&&k.getSymbolAtLocation(ti),wi=li&&qwe(li,ne,k),Si=wi&&Ca(wi);if(Si&&Uh(Ge,Si)){let Rn=Ae.length;Ae.push(wi);let gi=wi.parent;if(!gi||!jP(gi)||k.tryGetMemberInModuleExportsAndProperties(wi.name,gi)!==wi)Tt[Rn]={kind:Nt(2)};else{let Xi=Od(sh(gi.name))?(In=Nz(gi))==null?void 0:In.fileName:void 0,{moduleSpecifier:Li}=(Fe||(Fe=Qf.createImportSpecifierResolver(r,e,y,f))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Xi,isFromPackageJson:!1,moduleSymbol:gi,symbol:wi,targetFlags:hf(wi,k).flags}],u,dk(Se))||{};if(Li){let Vi={kind:Nt(6),moduleSymbol:gi,isDefaultExport:!1,symbolName:wi.name,exportName:wi.name,fileName:Xi,moduleSpecifier:Li};Tt[Rn]=Vi}}}else if(f.includeCompletionsWithInsertText){if(Si&&Ge.has(Si))return;Dt(tt),_n(tt),Ae.push(tt)}}else Dt(tt),_n(tt),Ae.push(tt);function _n(ti){d7t(ti)&&(Be[Ca(ti)]=Zf.LocalDeclarationPriority)}function Dt(ti){f.includeCompletionsWithInsertText&&(Qe&&Uh(Ge,Ca(ti))?Tt[Ae.length]={kind:Nt(8)}:ei&&(Tt[Ae.length]={kind:16}))}function Nt(ti){return ei?ti|16:ti}}function Ci(tt){return et(tt)?tt:lr(tt)?Ci(tt.expression):void 0}function Sn(){return(Ha()||ht()||Gr()||Jt()||ye()||ct()||nn()||ge()||Br()||(is(),1))===1}function nn(){return ut(ne)?(Oe=5,ie=!0,Re=4,1):0}function Br(){let tt=je(ne),Qe=tt&&k.getContextualType(tt.attributes);if(!Qe)return 0;let ei=tt&&k.getContextualType(tt.attributes,4);return Ae=Fo(Ae,fe(mse(Qe,ei,tt.attributes,k),tt.attributes.properties)),$e(),Oe=3,ie=!1,1}function Gr(){return be?(ie=!0,si(),1):0}function is(){Re=bt(ne)?5:1,Oe=1,ie=aa(),te!==ne&&B.assert(!!te,"Expected 'contextToken' to be defined when different from 'previousToken'.");let tt=te!==ne?te.getStart():u,Qe=Dr(ne,tt,r)||r;q=Rr(Qe);let ei=(Ke?0:111551)|788968|1920|2097152,In=te&&!dk(te);Ae=Fo(Ae,k.getSymbolsInScope(Qe,ei)),B.assertEachIsDefined(Ae,"getSymbolsInScope() should all be defined");for(let Ji=0;JiDt.getSourceFile()===r)&&(Be[Ca(_n)]=Zf.GlobalsOrKeywords),In&&!(_n.flags&111551)){let Dt=_n.declarations&&St(_n.declarations,O3);if(Dt){let Nt={kind:64,declaration:Dt};Tt[Ji]=Nt}}}if(f.includeCompletionsWithInsertText&&Qe.kind!==307){let Ji=k.tryGetThisTypeAt(Qe,!1,jr(Qe.parent)?Qe:void 0);if(Ji&&!u7t(Ji,r,k))for(let _n of hse(Ji,k))Tt[Ae.length]={kind:1},Ae.push(_n),Be[Ca(_n)]=Zf.SuggestedClassMembers}si(),Ke&&(Re=ne&&ZC(ne.parent)?6:7)}function Ao(){var tt;return be?!0:f.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||hre(e.getCompilerOptions())?!0:((tt=e.getSymlinkCache)==null?void 0:tt.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||RSe(e):!1}function Rr(tt){switch(tt.kind){case 307:case 228:case 294:case 241:return!0;default:return _o(tt)}}function xn(){return W||z||!!be&&_x(Se.parent)||!Eo(ne)&&(H5(ne,r,k)||U0(Se)||it(ne))}function Eo(tt){return tt&&(tt.kind===114&&(tt.parent.kind===186||b4(tt.parent))||tt.kind===131&&tt.parent.kind===182)}function it(tt){if(tt){let Qe=tt.parent.kind;switch(tt.kind){case 59:return Qe===172||Qe===171||Qe===169||Qe===260||RI(Qe);case 64:return Qe===265||Qe===168;case 130:return Qe===234;case 30:return Qe===183||Qe===216;case 96:return Qe===168;case 152:return Qe===238}}return!1}function si(){var tt,Qe;if(!Ao()||(B.assert(!p?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),p&&!p.source))return;ke|=1;let In=te===ne&&be?"":te&&et(te)?te.text.toLowerCase():"",Ji=(tt=y.getModuleSpecifierCache)==null?void 0:tt.call(y),_n=a9(r,y,e,f,x),Dt=(Qe=y.getPackageJsonAutoImportProvider)==null?void 0:Qe.call(y),Nt=p?void 0:t6(r,f,y);Jqe("collectAutoImports",y,Fe||(Fe=Qf.createImportSpecifierResolver(r,e,y,f)),e,u,f,!!be,dk(Se),li=>{_n.search(r.path,he,(wi,Si)=>{if(!pp(wi,Oa(y.getCompilationSettings()))||!p&&ZI(wi)||!Ke&&!be&&!(Si&111551)||Ke&&!(Si&790504))return!1;let Rn=wi.charCodeAt(0);return he&&(Rn<65||Rn>90)?!1:p?!0:v$e(wi,In)},(wi,Si,Rn,gi)=>{if(p&&!Lt(wi,Ss=>p.source===sh(Ss.moduleSymbol.name))||(wi=Di(wi,ti),!wi.length))return;let Xi=li.tryResolve(wi,Rn)||{};if(Xi==="failed")return;let Li=wi[0],Vi;Xi!=="skipped"&&({exportInfo:Li=wi[0],moduleSpecifier:Vi}=Xi);let ai=Li.exportKind===1,Cs=ai&&aO(B.checkDefined(Li.symbol))||B.checkDefined(Li.symbol);dn(Cs,{kind:Vi?32:4,moduleSpecifier:Vi,symbolName:Si,exportMapKey:gi,exportName:Li.exportKind===2?"export=":B.checkDefined(Li.symbol).name,fileName:Li.moduleFileName,isDefaultExport:ai,moduleSymbol:Li.moduleSymbol,isFromPackageJson:Li.isFromPackageJson})}),we=li.skippedAny(),ke|=li.resolvedAny()?8:0,ke|=li.resolvedBeyondLimit()?16:0});function ti(li){let wi=kr(li.moduleSymbol.valueDeclaration,mo);if(!wi){let Si=sh(li.moduleSymbol.name);return cy.nodeCoreModules.has(Si)&&Ro(Si,"node:")!==HJ(r,e)?!1:(Nt?.allowsImportingAmbientModule(li.moduleSymbol,Ue(li.isFromPackageJson))??!0)||s9(r,Si)}return Gre(li.isFromPackageJson?Dt:e,r,wi,f,Nt,Ue(li.isFromPackageJson),Ji)}}function dn(tt,Qe){let ei=Ca(tt);Be[ei]!==Zf.GlobalsOrKeywords&&(Tt[Ae.length]=Qe,Be[ei]=be?Zf.LocationPriority:Zf.AutoImportSuggestions,Ae.push(tt))}function Qn(tt,Qe){Jn(Se)||tt.forEach(ei=>{if(!Jr(ei))return;let In=fse(ei,Oa(a),void 0,0,!1);if(!In)return;let{name:Ji}=In,_n=HFt(ei,Ji,Qe,e,y,a,f,g);if(!_n)return;let Dt={kind:128,..._n};ke|=32,Tt[Ae.length]=Dt,Ae.push(ei)})}function Jr(tt){return!!(tt.flags&8196)}function Dr(tt,Qe,ei){let In=tt;for(;In&&!tre(In,Qe,ei);)In=In.parent;return In}function Do(tt){let Qe=zc(),ei=Ai(tt)||mt(tt)||yi(tt)||na(tt)||NO(tt);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(zc()-Qe)),ei}function na(tt){if(tt.kind===12)return!0;if(tt.kind===32&&tt.parent){if(Se===tt.parent&&(Se.kind===286||Se.kind===285))return!1;if(tt.parent.kind===286)return Se.parent.kind!==286;if(tt.parent.kind===287||tt.parent.kind===285)return!!tt.parent.parent&&tt.parent.parent.kind===284}return!1}function aa(){if(ne){let tt=ne.parent.kind,Qe=pse(ne);switch(Qe){case 28:return tt===213||tt===176||tt===214||tt===209||tt===226||tt===184||tt===210;case 21:return tt===213||tt===176||tt===214||tt===217||tt===196;case 23:return tt===209||tt===181||tt===167;case 144:case 145:case 102:return!0;case 25:return tt===267;case 19:return tt===263||tt===210;case 64:return tt===260||tt===226;case 16:return tt===228;case 17:return tt===239;case 134:return tt===174||tt===304;case 42:return tt===174}if(kq(Qe))return!0}return!1}function Ai(tt){return(Lee(tt)||TQ(tt))&&(W5(tt,u)||u===tt.end&&(!!tt.isUnterminated||Lee(tt)))}function Ha(){let tt=c7t(ne);if(!tt)return 0;let ei=(wN(tt.parent)?tt.parent:void 0)||tt,In=f$e(ei,k);if(!In)return 0;let Ji=k.getTypeFromTypeNode(ei),_n=hse(In,k),Dt=hse(Ji,k),Nt=new Set;return Dt.forEach(ti=>Nt.add(ti.escapedName)),Ae=Fo(Ae,Di(_n,ti=>!Nt.has(ti.escapedName))),Oe=0,ie=!0,1}function ht(){if(ne?.kind===26)return 0;let tt=Ae.length,Qe=i7t(ne,u,r);if(!Qe)return 0;Oe=0;let ei,In;if(Qe.kind===210){let Ji=f7t(Qe,k);if(Ji===void 0)return Qe.flags&67108864?2:0;let _n=k.getContextualType(Qe,4),Dt=(_n||Ji).getStringIndexType(),Nt=(_n||Ji).getNumberIndexType();if(ie=!!Dt||!!Nt,ei=mse(Ji,_n,Qe,k),In=Qe.properties,ei.length===0&&!Nt)return 0}else{B.assert(Qe.kind===206),ie=!1;let Ji=$0(Qe.parent);if(!qI(Ji))return B.fail("Root declaration is not variable-like.");let _n=Qb(Ji)||!!Yu(Ji)||Ji.parent.parent.kind===250;if(!_n&&Ji.kind===169&&(Mt(Ji.parent)?_n=!!k.getContextualType(Ji.parent):(Ji.parent.kind===174||Ji.parent.kind===178)&&(_n=Mt(Ji.parent.parent)&&!!k.getContextualType(Ji.parent.parent))),_n){let Dt=k.getTypeAtLocation(Qe);if(!Dt)return 2;ei=k.getPropertiesOfType(Dt).filter(Nt=>k.isPropertyAccessible(Qe,!1,!1,Dt,Nt)),In=Qe.elements}}if(ei&&ei.length>0){let Ji=nr(ei,B.checkDefined(In));Ae=Fo(Ae,Ji),$e(),Qe.kind===210&&f.includeCompletionsWithObjectLiteralMethodSnippets&&f.includeCompletionsWithInsertText&&(se(tt),Qn(Ji,Qe))}return 1}function Jt(){if(!ne)return 0;let tt=ne.kind===19||ne.kind===28?kr(ne.parent,IV):TJ(ne)?kr(ne.parent.parent,IV):void 0;if(!tt)return 0;TJ(ne)||(Re=8);let{moduleSpecifier:Qe}=tt.kind===275?tt.parent.parent:tt.parent;if(!Qe)return ie=!0,tt.kind===275?2:0;let ei=k.getSymbolAtLocation(Qe);if(!ei)return ie=!0,2;Oe=3,ie=!1;let In=k.getExportsAndPropertiesOfModule(ei),Ji=new Set(tt.elements.filter(Dt=>!Wt(Dt)).map(Dt=>Hw(Dt.propertyName||Dt.name))),_n=In.filter(Dt=>Dt.escapedName!=="default"&&!Ji.has(Dt.escapedName));return Ae=Fo(Ae,_n),_n.length||(Re=0),1}function ye(){if(ne===void 0)return 0;let tt=ne.kind===19||ne.kind===28?kr(ne.parent,bE):ne.kind===59?kr(ne.parent.parent,bE):void 0;if(tt===void 0)return 0;let Qe=new Set(tt.elements.map(rH));return Ae=Di(k.getTypeAtLocation(tt).getApparentProperties(),ei=>!Qe.has(ei.escapedName)),1}function ct(){var tt;let Qe=ne&&(ne.kind===19||ne.kind===28)?kr(ne.parent,_h):void 0;if(!Qe)return 0;let ei=Ri(Qe,Im(mo,Hu));return Oe=5,ie=!1,(tt=ei.locals)==null||tt.forEach((In,Ji)=>{var _n,Dt;Ae.push(In),(Dt=(_n=ei.symbol)==null?void 0:_n.exports)!=null&&Dt.has(Ji)&&(Be[Ca(In)]=Zf.OptionalMember)}),1}function ge(){let tt=a7t(r,ne,Se,u);if(!tt)return 0;if(Oe=3,ie=!0,Re=ne.kind===42?0:jr(tt)?2:3,!jr(tt))return 1;let Qe=ne.kind===27?ne.parent.parent:ne.parent,ei=Cd(Qe)?__(Qe):0;if(ne.kind===80&&!Wt(ne))switch(ne.getText()){case"private":ei=ei|2;break;case"static":ei=ei|256;break;case"override":ei=ei|16;break}if(Yl(Qe)&&(ei|=256),!(ei&2)){let In=jr(tt)&&ei&16?AI(J0(tt)):Q3(tt),Ji=vo(In,_n=>{let Dt=k.getTypeAtLocation(_n);return ei&256?Dt?.symbol&&k.getPropertiesOfType(k.getTypeOfSymbolAtLocation(Dt.symbol,tt)):Dt&&k.getPropertiesOfType(Dt)});Ae=Fo(Ae,rt(Ji,tt.members,ei)),re(Ae,(_n,Dt)=>{let Nt=_n?.valueDeclaration;if(Nt&&Cd(Nt)&&Nt.name&&Ma(Nt.name)){let ti={kind:512,symbolName:k.symbolToString(_n)};Tt[Dt]=ti}})}return 1}function He(tt){return!!tt.parent&&To(tt.parent)&&Ol(tt.parent.parent)&&(F3(tt.kind)||Xy(tt))}function ut(tt){if(tt){let Qe=tt.parent;switch(tt.kind){case 21:case 28:return Ol(tt.parent)?tt.parent:void 0;default:if(He(tt))return Qe.parent}}}function bt(tt){if(tt){let Qe,ei=Ri(tt.parent,In=>jr(In)?"quit":Oc(In)&&Qe===In.body?!0:(Qe=In,!1));return ei&&ei}}function je(tt){if(tt){let Qe=tt.parent;switch(tt.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Qe&&(Qe.kind===285||Qe.kind===286)){if(tt.kind===32){let ei=fd(tt.pos,r,void 0);if(!Qe.typeArguments||ei&&ei.kind===44)break}return Qe}else if(Qe.kind===291)return Qe.parent.parent;break;case 11:if(Qe&&(Qe.kind===291||Qe.kind===293))return Qe.parent.parent;break;case 20:if(Qe&&Qe.kind===294&&Qe.parent&&Qe.parent.kind===291)return Qe.parent.parent.parent;if(Qe&&Qe.kind===293)return Qe.parent.parent;break}}}function It(tt,Qe){return r.getLineEndOfPosition(tt.getEnd())=tt.pos;case 25:return ei===207;case 59:return ei===208;case 23:return ei===207;case 21:return ei===299||_t(ei);case 19:return ei===266;case 30:return ei===263||ei===231||ei===264||ei===265||RI(ei);case 126:return ei===172&&!jr(Qe.parent);case 26:return ei===169||!!Qe.parent&&Qe.parent.kind===207;case 125:case 123:case 124:return ei===169&&!Ol(Qe.parent);case 130:return ei===276||ei===281||ei===274;case 139:case 153:return!gse(tt);case 80:{if(ei===276&&tt===Qe.name&&tt.text==="type"||Ri(tt.parent,Ur)&&It(tt,u))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return ei!==276;case 42:return vs(tt.parent)&&!pu(tt.parent)}if(kq(pse(tt))&&gse(tt)||He(tt)&&(!et(tt)||F3(pse(tt))||Wt(tt)))return!1;switch(pse(tt)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return ls(tt.parent)}if(Ri(tt.parent,jr)&&tt===te&&$t(tt,u))return!1;let Ji=ck(tt.parent,172);if(Ji&&tt!==te&&jr(te.parent.parent)&&u<=te.end){if($t(tt,te.end))return!1;if(tt.kind!==64&&(h5(Ji)||xz(Ji)))return!0}return Xy(tt)&&!jf(tt.parent)&&!ry(tt.parent)&&!((jr(tt.parent)||vf(tt.parent)||Sl(tt.parent))&&(tt!==te||u>te.end))}function $t(tt,Qe){return tt.kind!==64&&(tt.kind===27||!ch(tt.end,Qe,r))}function _t(tt){return RI(tt)&&tt!==176}function yi(tt){if(tt.kind===9){let Qe=tt.getFullText();return Qe.charAt(Qe.length-1)==="."}return!1}function Ii(tt){return tt.parent.kind===261&&!H5(tt,r,k)}function nr(tt,Qe){if(Qe.length===0)return tt;let ei=new Set,In=new Set;for(let _n of Qe){if(_n.kind!==303&&_n.kind!==304&&_n.kind!==208&&_n.kind!==174&&_n.kind!==177&&_n.kind!==178&&_n.kind!==305||Wt(_n))continue;let Dt;if(Qv(_n))Y(_n,ei);else if(Wa(_n)&&_n.propertyName)_n.propertyName.kind===80&&(Dt=_n.propertyName.escapedText);else{let Nt=cs(_n);Dt=Nt&&q0(Nt)?tO(Nt):void 0}Dt!==void 0&&In.add(Dt)}let Ji=tt.filter(_n=>!In.has(_n.escapedName));return Bt(ei,Ji),Ji}function Y(tt,Qe){let ei=tt.expression,In=k.getSymbolAtLocation(ei),Ji=In&&k.getTypeOfSymbolAtLocation(In,ei),_n=Ji&&Ji.properties;_n&&_n.forEach(Dt=>{Qe.add(Dt.name)})}function $e(){Ae.forEach(tt=>{if(tt.flags&16777216){let Qe=Ca(tt);Be[Qe]=Be[Qe]??Zf.OptionalMember}})}function Bt(tt,Qe){if(tt.size!==0)for(let ei of Qe)tt.has(ei.name)&&(Be[Ca(ei)]=Zf.MemberDeclaredBySpreadAssignment)}function se(tt){for(let Qe=tt;Qe!In.has(Ji.escapedName)&&!!Ji.declarations&&!(lh(Ji)&2)&&!(Ji.valueDeclaration&&u_(Ji.valueDeclaration)))}function fe(tt,Qe){let ei=new Set,In=new Set;for(let _n of Qe)Wt(_n)||(_n.kind===291?ei.add(wO(_n.name)):NN(_n)&&Y(_n,In));let Ji=tt.filter(_n=>!ei.has(_n.escapedName));return Bt(In,Ji),Ji}function Wt(tt){return tt.getStart(r)<=u&&u<=tt.getEnd()}}function i7t(e,t,r){var a;if(e){let{parent:u}=e;switch(e.kind){case 19:case 28:if(ba(u)||Om(u))return u;break;case 42:return pu(u)?kr(u.parent,ba):void 0;case 134:return kr(u.parent,ba);case 80:if(e.text==="async"&&jf(e.parent))return e.parent.parent;{if(ba(e.parent.parent)&&(Qv(e.parent)||jf(e.parent)&&ma(r,e.getEnd()).line!==ma(r,t).line))return e.parent.parent;let p=Ri(u,ed);if(p?.getLastToken(r)===e&&ba(p.parent))return p.parent}break;default:if((a=u.parent)!=null&&a.parent&&(pu(u.parent)||Lm(u.parent)||qp(u.parent))&&ba(u.parent.parent))return u.parent.parent;if(Qv(u)&&ba(u.parent))return u.parent;let f=Ri(u,ed);if(e.kind!==59&&f?.getLastToken(r)===e&&ba(f.parent))return f.parent}}}function dse(e,t){let r=fd(e,t);return r&&e<=r.end&&(Bv(r)||Q_(r.kind))?{contextToken:fd(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function o$e(e,t,r,a){let u=t.isPackageJsonImport?a.getPackageJsonAutoImportProvider():r,f=u.getTypeChecker(),p=t.ambientModuleName?f.tryFindAmbientModule(t.ambientModuleName):t.fileName?f.getMergedSymbol(B.checkDefined(u.getSourceFile(t.fileName)).symbol):void 0;if(!p)return;let y=t.exportName==="export="?f.resolveExternalModuleSymbol(p):f.tryGetMemberInModuleExportsAndProperties(t.exportName,p);return y?(y=t.exportName==="default"&&aO(y)||y,{symbol:y,origin:JFt(t,e,p)}):void 0}function fse(e,t,r,a,u){if(TFt(r))return;let f=xFt(r)?r.symbolName:e.name;if(f===void 0||e.flags&1536&&VM(f.charCodeAt(0))||oR(e))return;let p={name:f,needsConvertPropertyAccess:!1};if(pp(f,t,u?1:0)||e.valueDeclaration&&u_(e.valueDeclaration))return p;if(e.flags&2097152)return{name:f,needsConvertPropertyAccess:!0};switch(a){case 3:return jwe(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(f),needsConvertPropertyAccess:!1};case 2:case 1:return f.charCodeAt(0)===32?void 0:{name:f,needsConvertPropertyAccess:!0};case 5:case 4:return p;default:B.assertNever(a)}}var _se=[],s$e=l_(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:ua(t),kind:"keyword",kindModifiers:"",sortText:Zf.GlobalsOrKeywords});return e});function a$e(e,t){if(!t)return c$e(e);let r=e+8+1;return _se[r]||(_se[r]=c$e(e).filter(a=>!n7t(K2(a.name))))}function c$e(e){return _se[e]||(_se[e]=s$e().filter(t=>{let r=K2(t.name);switch(e){case 0:return!1;case 1:return u$e(r)||r===138||r===144||r===156||r===145||r===128||C8(r)&&r!==157;case 5:return u$e(r);case 2:return kq(r);case 3:return l$e(r);case 4:return F3(r);case 6:return C8(r)||r===87;case 7:return C8(r);case 8:return r===156;default:return B.assertNever(e)}}))}function n7t(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function l$e(e){return e===148}function kq(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return EQ(e)}}function u$e(e){return e===134||e===135||e===160||e===130||e===152||e===156||!sV(e)&&!kq(e)}function pse(e){return et(e)?X2(e)??0:e.kind}function r7t(e,t){let r=[];if(e){let a=e.getSourceFile(),u=e.parent,f=a.getLineAndCharacterOfPosition(e.end).line,p=a.getLineAndCharacterOfPosition(t).line;(ql(u)||Nu(u)&&u.moduleSpecifier)&&e===u.moduleSpecifier&&f===p&&r.push({name:ua(132),kind:"keyword",kindModifiers:"",sortText:Zf.GlobalsOrKeywords})}return r}function o7t(e,t){return Ri(e,r=>BP(r)&&b8(r,t)?!0:t0(r)?"quit":!1)}function mse(e,t,r,a){let u=t&&t!==e,f=a.getUnionType(Di(e.flags&1048576?e.types:[e],x=>!a.getPromisedTypeOfPromise(x))),p=u&&!(t.flags&3)?a.getUnionType([f,t]):f,y=s7t(p,r,a);return p.isClass()&&d$e(y)?[]:u?Di(y,g):y;function g(x){return K(x.declarations)?Lt(x.declarations,k=>k.parent!==r):!0}}function s7t(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(Di(e.types,a=>!(a.flags&402784252||r.isArrayLikeType(a)||r.isTypeInvalidDueToUnionDiscriminant(a,t)||r.typeHasCallOrConstructSignatures(a)||a.isClass()&&d$e(a.getApparentProperties())))):e.getApparentProperties()}function d$e(e){return Lt(e,t=>!!(lh(t)&6))}function hse(e,t){return e.isUnion()?B.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):B.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function a7t(e,t,r,a){switch(r.kind){case 352:return kr(r.parent,sN);case 1:let u=kr(Lc(ea(r.parent,mo).statements),sN);if(u&&!Tc(u,20,e))return u;break;case 81:if(kr(r.parent,ls))return Ri(r,jr);break;case 80:{if(X2(r)||ls(r.parent)&&r.parent.initializer===r)return;if(gse(r))return Ri(r,sN)}}if(t){if(r.kind===137||et(t)&&ls(t.parent)&&jr(r))return Ri(t,jr);switch(t.kind){case 64:return;case 27:case 20:return gse(r)&&r.parent.name===r?r.parent.parent:kr(r,sN);case 19:case 28:return kr(t.parent,sN);default:if(sN(r)){if(ma(e,t.getEnd()).line!==ma(e,a).line)return r;let u=jr(t.parent.parent)?kq:l$e;return u(t.kind)||t.kind===42||et(t)&&u(X2(t)??0)?t.parent.parent:void 0}return}}}function c7t(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(L_(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&L_(t.parent))return t.parent;break}}function f$e(e,t){if(!e)return;if(io(e)&&Cz(e.parent))return t.getTypeArgumentConstraint(e);let r=f$e(e.parent,t);if(r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function gse(e){return e.parent&&mz(e.parent)&&sN(e.parent.parent)}function l7t(e,t,r,a){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&exe(r)&&a===r.getStart(e)+1;case"#":return!!r&&xo(r)&&!!Zd(r);case"<":return!!r&&r.kind===30&&(!Yn(r.parent)||_$e(r.parent));case"/":return!!r&&(xc(r)?!!KM(r):r.kind===44&&fT(r.parent));case" ":return!!r&&LO(r)&&r.parent.kind===307;default:return B.assertNever(t)}}function _$e({left:e}){return Ul(e)}function u7t(e,t,r){let a=r.resolveName("self",void 0,111551,!1);if(a&&r.getTypeOfSymbolAtLocation(a,t)===e)return!0;let u=r.resolveName("global",void 0,111551,!1);if(u&&r.getTypeOfSymbolAtLocation(u,t)===e)return!0;let f=r.resolveName("globalThis",void 0,111551,!1);return!!(f&&r.getTypeOfSymbolAtLocation(f,t)===e)}function d7t(e){return!!(e.valueDeclaration&&__(e.valueDeclaration)&256&&jr(e.valueDeclaration.parent))}function f7t(e,t){let r=t.getContextualType(e);if(r)return r;let a=Ky(e.parent);if(Yn(a)&&a.operatorToken.kind===64&&e===a.left)return t.getTypeAtLocation(a);if(Mt(a))return t.getContextualType(a)}function p$e(e,t){var r,a,u;let f,p=!1,y=g();return{isKeywordOnlyCompletion:p,keywordCompletion:f,isNewIdentifierLocation:!!(y||f===156),isTopLevelTypeOnly:!!((a=(r=kr(y,ql))==null?void 0:r.importClause)!=null&&a.isTypeOnly)||!!((u=kr(y,Dd))!=null&&u.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!y&&h$e(y,e),replacementSpan:_7t(y)};function g(){let x=e.parent;if(Dd(x)){let k=x.getLastToken(t);if(et(e)&&k!==e){f=161,p=!0;return}return f=e.kind===156?void 0:156,$we(x.moduleReference)?x:void 0}if(h$e(x,e)&&g$e(x.parent))return x;if(iy(x)||Xv(x)){if(!x.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(f=156),g$e(x))if(e.kind===20||e.kind===80)p=!0,f=161;else return x.parent.parent;return}if(Nu(x)&&e.kind===42||_h(x)&&e.kind===20){p=!0,f=161;return}if(LO(e)&&mo(x))return f=156,e;if(LO(e)&&ql(x))return f=156,$we(x.moduleSpecifier)?x:void 0}}function _7t(e){var t;if(!e)return;let r=Ri(e,Im(ql,Dd,oy))??e,a=r.getSourceFile();if(fE(r,a))return B_(r,a);B.assert(r.kind!==102&&r.kind!==276);let u=r.kind===272||r.kind===351?m$e((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,f={pos:r.getFirstToken().getStart(),end:u.pos};if(fE(f,a))return yS(f)}function m$e(e){var t;return St((t=kr(e,iy))==null?void 0:t.elements,r=>{var a;return!r.propertyName&&ZI(r.name.text)&&((a=fd(r.name.pos,e.getSourceFile(),e))==null?void 0:a.kind)!==28})}function h$e(e,t){return F_(e)&&(e.isTypeOnly||t===e.name&&TJ(t))}function g$e(e){if(!$we(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(iy(e)){let t=m$e(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function $we(e){var t;return Ul(e)?!0:!((t=kr(rb(e)?e.expression:e,xc))!=null&&t.text)}function p7t(e,t){if(!e)return;let r=Ri(e,u=>Jw(u)||y$e(u)||Rs(u)?"quit":(To(u)||Sl(u))&&!sT(u.parent)),a=Ri(t,u=>Jw(u)||y$e(u)||Rs(u)?"quit":Ur(u));return r||a}function y$e(e){return e.parent&&rl(e.parent)&&(e.parent.body===e||e.kind===39)}function Gwe(e,t,r=new Map){return a(e)||a(hf(e.exportSymbol||e,t));function a(u){return!!(u.flags&788968)||t.isUnknownSymbol(u)||!!(u.flags&1536)&&Uh(r,Ca(u))&&t.getExportsOfModule(u).some(f=>Gwe(f,t,r))}}function m7t(e,t){let r=hf(e,t).declarations;return!!K(r)&&Et(r,VJ)}function v$e(e,t){if(t.length===0)return!0;let r=!1,a,u=0,f=e.length;for(let p=0;pb7t,getStringLiteralCompletions:()=>y7t});var b$e={directory:0,script:1,"external module name":2};function Kwe(){let e=new Map;function t(r){let a=e.get(r.name);(!a||b$e[a.kind]({name:Yy(P.value,T),kindModifiers:"",kind:"string",sortText:Zf.LocationPriority,replacementSpan:dre(t,g),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:k,entries:A,defaultCommitCharacters:RE(e.isNewIdentifier)}}default:return B.assertNever(e)}}function b7t(e,t,r,a,u,f,p,y){if(!a||!xc(a))return;let g=C$e(t,a,r,u,f,y);return g&&S7t(e,a,g,t,u.getTypeChecker(),p)}function S7t(e,t,r,a,u,f){switch(r.kind){case 0:{let p=St(r.paths,y=>y.name===e);return p&&Cq(e,x$e(p.extension),p.kind,[Bm(e)])}case 1:{let p=St(r.symbols,y=>y.name===e);return p&&Jwe(p,p.name,u,a,t,f)}case 2:return St(r.types,p=>p.value===e)?Cq(e,"","string",[Bm(e)]):void 0;default:return B.assertNever(r)}}function S$e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:u,kind:f,span:p,extension:y})=>({name:u,kind:f,kindModifiers:x$e(y),sortText:Zf.LocationPriority,replacementSpan:p})),defaultCommitCharacters:RE(!0)}}function x$e(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 B.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return B.assertNever(e)}}function C$e(e,t,r,a,u,f){let p=a.getTypeChecker(),y=Xwe(t.parent);switch(y.kind){case 201:{let te=Xwe(y.parent);return te.kind===205?{kind:0,paths:T$e(e,t,a,u,f)}:g(te)}case 303:return ba(y.parent)&&y.name===t?k7t(p,y.parent):x()||x(0);case 212:{let{expression:te,argumentExpression:ne}=y;return t===fc(ne)?k$e(p.getTypeAtLocation(te)):void 0}case 213:case 214:case 291:if(!W7t(t)&&!fm(y)){let te=I9.getArgumentInfoForCompletions(y.kind===291?y.parent:t,r,e,p);return te&&C7t(te.invocation,t,te,p)||x(0)}case 272:case 278:case 283:case 351:return{kind:0,paths:T$e(e,t,a,u,f)};case 296:let k=JJ(p,y.parent.clauses),T=x();return T?{kind:2,types:T.types.filter(te=>!k.hasValue(te.value)),isNewIdentifier:!1}:void 0;case 276:case 281:let P=y;if(P.propertyName&&t!==P.propertyName)return;let R=P.parent,{moduleSpecifier:W}=R.kind===275?R.parent.parent:R.parent;if(!W)return;let z=p.getSymbolAtLocation(W);if(!z)return;let q=p.getExportsAndPropertiesOfModule(z),G=new Set(R.elements.map(te=>Hw(te.propertyName||te.name)));return{kind:1,symbols:q.filter(te=>te.escapedName!=="default"&&!G.has(te.escapedName)),hasIndexSignature:!1};default:return x()||x(0)}function g(k){switch(k.kind){case 233:case 183:{let P=Ri(y,R=>R.parent===k);return P?{kind:2,types:vse(p.getTypeArgumentConstraint(P)),isNewIdentifier:!1}:void 0}case 199:let{indexType:T,objectType:A}=k;return b8(T,r)?k$e(p.getTypeFromTypeNode(A)):void 0;case 192:{let P=g(Xwe(k.parent));if(!P)return;let R=x7t(k,y);return P.kind===1?{kind:1,symbols:P.symbols.filter(W=>!sn(R,W.name)),hasIndexSignature:P.hasIndexSignature}:{kind:2,types:P.types.filter(W=>!sn(R,W.value)),isNewIdentifier:!1}}default:return}}function x(k=4){let T=vse(OJ(t,p,k));if(T.length)return{kind:2,types:T,isNewIdentifier:!1}}}function Xwe(e){switch(e.kind){case 196:return eR(e);case 217:return Ky(e);default:return e}}function x7t(e,t){return ro(e.types,r=>r!==t&&dS(r)&&Da(r.literal)?r.literal.text:void 0)}function C7t(e,t,r,a){let u=!1,f=new Map,p=Mf(e)?B.checkDefined(Ri(t.parent,ry)):t,y=a.getCandidateSignaturesForStringLiteralCompletions(e,p),g=vo(y,x=>{if(!Xf(x)&&r.argumentCount>x.parameters.length)return;let k=x.getTypeParameterAtPosition(r.argumentIndex);if(Mf(e)){let T=a.getTypeOfPropertyOfType(k,NR(p.name));T&&(k=T)}return u=u||!!(k.flags&4),vse(k,f)});return K(g)?{kind:2,types:g,isNewIdentifier:u}:void 0}function k$e(e){return e&&{kind:1,symbols:Di(e.getApparentProperties(),t=>!(t.valueDeclaration&&u_(t.valueDeclaration))),hasIndexSignature:Ore(e)}}function k7t(e,t){let r=e.getContextualType(t);if(!r)return;let a=e.getContextualType(t,4);return{kind:1,symbols:mse(r,a,t,e),hasIndexSignature:Ore(r)}}function vse(e,t=new Map){return e?(e=mre(e),e.isUnion()?vo(e.types,r=>vse(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Uh(t,e.value)?[e]:F):F}function z8(e,t,r){return{name:e,kind:t,extension:r}}function Ywe(e){return z8(e,"directory",void 0)}function w$e(e,t,r){let a=M7t(e,t),u=e.length===0?void 0:_f(t,e.length);return r.map(({name:f,kind:p,extension:y})=>f.includes(wl)||f.includes(XW)?{name:f,kind:p,extension:y,span:u}:{name:f,kind:p,extension:y,span:a})}function T$e(e,t,r,a,u){return w$e(t.text,t.getStart(e)+1,w7t(e,t,r,a,u))}function w7t(e,t,r,a,u){let f=ff(t.text),p=xc(t)?r.getModeForUsageLocation(e,t):void 0,y=e.path,g=Or(y),x=r.getCompilerOptions(),k=r.getTypeChecker(),T=Qwe(x,1,e,k,u,p);return R7t(f)||!x.baseUrl&&!x.paths&&(jp(f)||lme(f))?T7t(f,g,r,a,y,T):N7t(f,g,p,r,a,T)}function Qwe(e,t,r,a,u,f){return{extensionsToSearch:tc(E7t(e,a)),referenceKind:t,importingSourceFile:r,endingPreference:u?.importModuleSpecifierEnding,resolutionMode:f}}function T7t(e,t,r,a,u,f){let p=r.getCompilerOptions();return p.rootDirs?I7t(p.rootDirs,e,t,f,r,a,u):as(C9(e,t,f,r,a,!0,u).values())}function E7t(e,t){let r=t?ro(t.getAmbientModules(),f=>{let p=f.name.slice(1,-1);if(!(!p.startsWith("*.")||p.includes("/")))return p.slice(1)}):[],a=[...mO(e),r],u=$f(e);return EJ(u)?wR(e,a):a}function D7t(e,t,r,a){e=e.map(f=>xd($s(jp(f)?f:xr(t,f))));let u=Le(e,f=>nh(f,r,t,a)?r.substr(f.length):void 0);return hs([...e.map(f=>xr(f,u)),r].map(f=>$C(f)),Mw,Ff)}function I7t(e,t,r,a,u,f,p){let g=u.getCompilerOptions().project||f.getCurrentDirectory(),x=!(f.useCaseSensitiveFileNames&&f.useCaseSensitiveFileNames()),k=D7t(e,g,r,x);return hs(vo(k,T=>as(C9(t,T,a,u,f,!0,p).values())),(T,A)=>T.name===A.name&&T.kind===A.kind&&T.extension===A.extension)}function C9(e,t,r,a,u,f,p,y=Kwe()){var g;e===void 0&&(e=""),e=ff(e),cx(e)||(e=Or(e)),e===""&&(e="."+wl),e=xd(e);let x=qC(t,e),k=cx(x)?x:Or(x);if(!f){let R=rxe(k,u);if(R){let z=cO(R,u).typesVersions;if(typeof z=="object"){let q=(g=tU(z))==null?void 0:g.paths;if(q){let G=Or(R),$=x.slice(xd(G).length);if(D$e(y,$,G,r,a,u,q))return y}}}}let T=!(u.useCaseSensitiveFileNames&&u.useCaseSensitiveFileNames());if(!BJ(u,k))return y;let A=Rre(u,k,r.extensionsToSearch,void 0,["./*"]);if(A)for(let R of A){if(R=$s(R),p&&J1(R,p,t,T)===0)continue;let{name:W,extension:z}=E$e(Xu(R),a,r,!1);y.add(z8(W,"script",z))}let P=RJ(u,k);if(P)for(let R of P){let W=Xu($s(R));W!=="@types"&&y.add(Ywe(W))}return y}function E$e(e,t,r,a){let u=pS.tryGetRealFileNameForNonJsDeclarationFileName(e);if(u)return{name:u,extension:Gv(u)};if(r.referenceKind===0)return{name:e,extension:Gv(e)};let f=pS.getModuleSpecifierPreferences({importModuleSpecifierEnding:r.endingPreference},t,t.getCompilerOptions(),r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(a&&(f=f.filter(y=>y!==0&&y!==1)),f[0]===3){if(vu(e,kR))return{name:e,extension:Gv(e)};let y=pS.tryGetJSExtensionForFile(e,t.getCompilerOptions());return y?{name:Tx(e,y),extension:y}:{name:e,extension:Gv(e)}}if(!a&&(f[0]===0||f[0]===1)&&vu(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:A_(e),extension:Gv(e)};let p=pS.tryGetJSExtensionForFile(e,t.getCompilerOptions());return p?{name:Tx(e,p),extension:p}:{name:e,extension:Gv(e)}}function D$e(e,t,r,a,u,f,p){let y=x=>p[x],g=(x,k)=>{let T=f4(x),A=f4(k),P=typeof T=="object"?T.prefix.length:x.length,R=typeof A=="object"?A.prefix.length:k.length;return Kc(R,P)};return I$e(e,!1,t,r,a,u,f,mg(p),y,g)}function I$e(e,t,r,a,u,f,p,y,g,x){let k=[],T;for(let A of y){if(A===".")continue;let P=A.replace(/^\.\//,""),R=g(A);if(R){let W=f4(P);if(!W)continue;let z=typeof W=="object"&&WW(W,r);z&&(T===void 0||x(A,T)===-1)&&(T=A,k=k.filter(G=>!G.matchedPattern)),(typeof W=="string"||T===void 0||x(A,T)!==1)&&k.push({matchedPattern:z,results:A7t(P,R,r,a,u,t&&z,f,p).map(({name:G,kind:$,extension:te})=>z8(G,$,te))})}}return k.forEach(A=>A.results.forEach(P=>e.add(P))),T!==void 0}function N7t(e,t,r,a,u,f){let p=a.getTypeChecker(),y=a.getCompilerOptions(),{baseUrl:g,paths:x}=y,k=Kwe(),T=$f(y);if(g){let P=$s(xr(u.getCurrentDirectory(),g));C9(e,P,f,a,u,!1,void 0,k)}if(x){let P=pV(y,u);D$e(k,e,P,f,a,u,x)}let A=A$e(e);for(let P of L7t(e,A,p))k.add(z8(P,"external module name",void 0));if(O$e(u,a,t,A,f,k),EJ(T)){let P=!1;if(A===void 0)for(let R of F7t(u,t)){let W=z8(R,"external module name",void 0);k.has(W.name)||(P=!0,k.add(W))}if(!P){let R=W=>{let z=xr(W,"node_modules");BJ(u,z)&&C9(e,z,f,a,u,!1,void 0,k)};if(A&&SR(y)){let W=R;R=z=>{let q=zd(e);q.shift();let G=q.shift();if(!G)return W(z);if(Ro(G,"@")){let ne=q.shift();if(!ne)return W(z);G=xr(G,ne)}let $=xr(z,"node_modules",G),te=xr($,"package.json");if(t9(u,te)){let _e=cO(te,u).exports;if(_e){if(typeof _e!="object"||_e===null)return;let ce=mg(_e),ae=q.join("/")+(q.length&&cx(e)?"/":""),Ce=Fx(y,r);I$e(k,!0,ae,$,f,a,u,ce,he=>AI(N$e(_e[he],Ce)),$te);return}}return W(z)}}Rh(t,R)}}return as(k.values())}function N$e(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!ds(e)){for(let r in e)if(r==="default"||t.includes(r)||u5(t,r)){let a=e[r];return N$e(a,t)}}}function A$e(e){return Zwe(e)?cx(e)?e:Or(e):void 0}function A7t(e,t,r,a,u,f,p,y){if(!Wl(e,"*"))return e.includes("*")?F:k(e,"script");let g=e.slice(0,e.length-1),x=IY(r,g);if(x===void 0)return e[e.length-2]==="/"?k(g,"directory"):vo(t,A=>{var P;return(P=P$e("",a,A,u,f,p,y))==null?void 0:P.map(({name:R,...W})=>({name:g+R,...W}))});return vo(t,T=>P$e(x,a,T,u,f,p,y));function k(T,A){return Ro(T,r)?[{name:$C(T),kind:A,extension:void 0}]:F}}function P$e(e,t,r,a,u,f,p){if(!p.readDirectory)return;let y=f4(r);if(y===void 0||fs(y))return;let g=qC(y.prefix),x=cx(y.prefix)?g:Or(g),k=cx(y.prefix)?"":Xu(g),T=Zwe(e),A=T?cx(e)?e:Or(e):void 0,P=T?xr(x,k+A):x,R=$s(y.suffix),W=R&&_V("_"+R),z=W?[Tx(R,W),R]:[R],q=$s(xr(t,P)),G=T?q:xd(q)+k,$=R?z.map(ce=>"**/*"+ce):["./*"],te=ro(Rre(p,q,a.extensionsToSearch,void 0,$),ce=>{let ae=_e(ce);if(ae){if(Zwe(ae))return Ywe(zd(L$e(ae))[1]);let{name:Ce,extension:he}=E$e(ae,f,a,u);return z8(Ce,"script",he)}}),ne=R?F:ro(RJ(p,q),ce=>ce==="node_modules"?void 0:Ywe(ce));return[...te,...ne];function _e(ce){return Le(z,ae=>{let Ce=P7t($s(ce),G,ae);return Ce===void 0?void 0:L$e(Ce)})}}function P7t(e,t,r){return Ro(e,t)&&Wl(e,r)?e.slice(t.length,e.length-r.length):void 0}function L$e(e){return e[0]===wl?e.slice(1):e}function L7t(e,t,r){let u=r.getAmbientModules().map(f=>sh(f.name)).filter(f=>Ro(f,e)&&!f.includes("*"));if(t!==void 0){let f=xd(t);return u.map(p=>u3(p,f))}return u}function O7t(e,t,r,a){let u=r.getCompilerOptions(),f=go(e,t),p=Mv(e.text,f.pos),y=p&&St(p,W=>t>=W.pos&&t<=W.end);if(!y)return;let g=e.text.slice(y.pos,t),x=B7t.exec(g);if(!x)return;let[,k,T,A]=x,P=Or(e.path),R=T==="path"?C9(A,P,Qwe(u,0,e),r,a,!0,e.path):T==="types"?O$e(a,r,P,A$e(A),Qwe(u,1,e)):B.fail();return w$e(A,y.pos+k.length,as(R.values()))}function O$e(e,t,r,a,u,f=Kwe()){let p=t.getCompilerOptions(),y=new Map,g=jJ(()=>QO(p,e))||F;for(let k of g)x(k);for(let k of Bre(r,e)){let T=xr(Or(k),"node_modules/@types");x(T)}return f;function x(k){if(BJ(e,k))for(let T of RJ(e,k)){let A=d5(T);if(!(p.types&&!sn(p.types,A)))if(a===void 0)y.has(A)||(f.add(z8(A,"external module name",void 0)),y.set(A,!0));else{let P=xr(k,T),R=aee(a,A,rS(e));R!==void 0&&C9(R,P,u,t,e,!1,void 0,f)}}}}function F7t(e,t){if(!e.readFile||!e.fileExists)return F;let r=[];for(let a of Bre(t,e)){let u=cO(a,e);for(let f of j7t){let p=u[f];if(p)for(let y in p)Nc(p,y)&&!Ro(y,"@types/")&&r.push(y)}}return r}function M7t(e,t){let r=Math.max(e.lastIndexOf(wl),e.lastIndexOf(XW)),a=r!==-1?r+1:0,u=e.length-a;return u===0||pp(e.substr(a,u),99)?void 0:_f(t+a,u)}function R7t(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}var B7t=/^(\/\/\/\s*rA,DefinitionKind:()=>z$e,EntryKind:()=>V$e,ExportKind:()=>F$e,FindReferencesUse:()=>H$e,ImportExport:()=>M$e,createImportTracker:()=>eTe,findModuleReferences:()=>R$e,findReferenceOrRenameEntries:()=>eMt,findReferencedSymbols:()=>Y7t,getContextNode:()=>BE,getExportInfo:()=>tTe,getImplementationsAtPosition:()=>Z7t,getImportOrExportSymbol:()=>W$e,getReferenceEntriesForNode:()=>J$e,isContextWithStartAndEndNode:()=>nTe,isDeclarationOfSymbol:()=>X$e,isWriteAccessForReference:()=>oTe,toContextSpan:()=>rTe,toHighlightSpan:()=>aMt,toReferenceEntry:()=>G$e,toRenameLocation:()=>iMt});function eTe(e,t,r,a){let u=U7t(e,r,a);return(f,p,y)=>{let{directImports:g,indirectUsers:x}=z7t(e,t,u,p,r,a);return{indirectUsers:x,...V7t(g,f,p.exportKind,r,y)}}}var F$e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(F$e||{}),M$e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(M$e||{});function z7t(e,t,r,{exportingModuleSymbol:a,exportKind:u},f,p){let y=X4(),g=X4(),x=[],k=!!a.globalExports,T=k?void 0:[];return P(a),{directImports:x,indirectUsers:A()};function A(){if(k)return e;if(a.declarations)for(let $ of a.declarations)Uw($)&&t.has($.getSourceFile().fileName)&&q($);return T.map(en)}function P($){let te=G($);if(te){for(let ne of te)if(y(ne))switch(p&&p.throwIfCancellationRequested(),ne.kind){case 213:if(fm(ne)){R(ne);break}if(!k){let ce=ne.parent;if(u===2&&ce.kind===260){let{name:ae}=ce;if(ae.kind===80){x.push(ae);break}}}break;case 80:break;case 271:z(ne,ne.name,Ar(ne,32),!1);break;case 272:case 351:x.push(ne);let _e=ne.importClause&&ne.importClause.namedBindings;_e&&_e.kind===274?z(ne,_e.name,!1,!0):!k&&KI(ne)&&q(wq(ne));break;case 278:ne.exportClause?ne.exportClause.kind===280?q(wq(ne),!0):x.push(ne):P(K7t(ne,f));break;case 205:!k&&ne.isTypeOf&&!ne.qualifier&&W(ne)&&q(ne.getSourceFile(),!0),x.push(ne);break;default:B.failBadSyntaxKind(ne,"Unexpected import kind.")}}}function R($){let te=Ri($,bse)||$.getSourceFile();q(te,!!W($,!0))}function W($,te=!1){return Ri($,ne=>te&&bse(ne)?"quit":Kh(ne)&&Lt(ne.modifiers,bN))}function z($,te,ne,_e){if(u===2)_e||x.push($);else if(!k){let ce=wq($);B.assert(ce.kind===307||ce.kind===267),ne||H7t(ce,te,f)?q(ce,!0):q(ce)}}function q($,te=!1){if(B.assert(!k),!g($)||(T.push($),!te))return;let _e=f.getMergedSymbol($.symbol);if(!_e)return;B.assert(!!(_e.flags&1536));let ce=G(_e);if(ce)for(let ae of ce)ey(ae)||q(wq(ae),!0)}function G($){return r.get(Ca($).toString())}}function V7t(e,t,r,a,u){let f=[],p=[];function y(A,P){f.push([A,P])}if(e)for(let A of e)g(A);return{importSearches:f,singleReferences:p};function g(A){if(A.kind===271){iTe(A)&&x(A.name);return}if(A.kind===80){x(A);return}if(A.kind===205){if(A.qualifier){let W=hp(A.qualifier);W.escapedText===fu(t)&&p.push(W)}else r===2&&p.push(A.argument.literal);return}if(A.moduleSpecifier.kind!==11)return;if(A.kind===278){A.exportClause&&_h(A.exportClause)&&k(A.exportClause);return}let{name:P,namedBindings:R}=A.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 274:x(R.name);break;case 275:(r===0||r===1)&&k(R);break;default:B.assertNever(R)}if(P&&(r===1||r===2)&&(!u||P.escapedText===DJ(t))){let W=a.getSymbolAtLocation(P);y(P,W)}}function x(A){r===2&&(!u||T(A.escapedText))&&y(A,a.getSymbolAtLocation(A))}function k(A){if(A)for(let P of A.elements){let{name:R,propertyName:W}=P;if(T(Hw(W||R)))if(W)p.push(W),(!u||Hw(R)===t.escapedName)&&y(R,a.getSymbolAtLocation(R));else{let z=P.kind===281&&P.propertyName?a.getExportSpecifierLocalTargetSymbol(P):a.getSymbolAtLocation(R);y(R,z)}}}function T(A){return A===t.escapedName||r!==0&&A==="default"}}function H7t(e,t,r){let a=r.getSymbolAtLocation(t);return!!B$e(e,u=>{if(!Nu(u))return;let{exportClause:f,moduleSpecifier:p}=u;return!p&&f&&_h(f)&&f.elements.some(y=>r.getExportSpecifierLocalTargetSymbol(y)===a)})}function R$e(e,t,r){var a;let u=[],f=e.getTypeChecker();for(let p of t){let y=r.valueDeclaration;if(y?.kind===307){for(let g of p.referencedFiles)e.getSourceFileFromReference(p,g)===y&&u.push({kind:"reference",referencingFile:p,ref:g});for(let g of p.typeReferenceDirectives){let x=(a=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(g,p))==null?void 0:a.resolvedTypeReferenceDirective;x!==void 0&&x.resolvedFileName===y.fileName&&u.push({kind:"reference",referencingFile:p,ref:g})}}j$e(p,(g,x)=>{f.getSymbolAtLocation(x)===r&&u.push(Uc(g)?{kind:"implicit",literal:x,referencingFile:p}:{kind:"import",literal:x})})}return u}function U7t(e,t,r){let a=new Map;for(let u of e)r&&r.throwIfCancellationRequested(),j$e(u,(f,p)=>{let y=t.getSymbolAtLocation(p);if(y){let g=Ca(y).toString(),x=a.get(g);x||a.set(g,x=[]),x.push(f)}});return a}function B$e(e,t){return re(e.kind===307?e.statements:e.body.statements,r=>t(r)||bse(r)&&re(r.body&&r.body.statements,t))}function j$e(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t(K3(r),r);else B$e(e,r=>{switch(r.kind){case 278:case 272:{let a=r;a.moduleSpecifier&&Da(a.moduleSpecifier)&&t(a,a.moduleSpecifier);break}case 271:{let a=r;iTe(a)&&t(a,a.moduleReference.expression);break}}})}function W$e(e,t,r,a){return a?u():u()||f();function u(){var g;let{parent:x}=e,k=x.parent;if(t.exportSymbol)return x.kind===211?(g=t.declarations)!=null&&g.some(P=>P===x)&&Yn(k)?A(k,!1):void 0:p(t.exportSymbol,y(x));{let P=q7t(x,e);if(P&&Ar(P,32))return Dd(P)&&P.moduleReference===e?a?void 0:{kind:0,symbol:r.getSymbolAtLocation(P.name)}:p(t,y(P));if(Zy(x))return p(t,0);if(ll(x))return T(x);if(ll(k))return T(k);if(Yn(x))return A(x,!0);if(Yn(k))return A(k,!0);if(kE(x)||qee(x))return p(t,0)}function T(P){if(!P.symbol.parent)return;let R=P.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:P.symbol.parent,exportKind:R}}}function A(P,R){let W;switch(Su(P)){case 1:W=0;break;case 2:W=2;break;default:return}let z=R?r.getSymbolAtLocation(ZZ(ea(P.left,il))):t;return z&&p(z,W)}}function f(){if(!$7t(e))return;let x=r.getImmediateAliasedSymbol(t);if(!x||(x=G7t(x,r),x.escapedName==="export="&&(x=J7t(x,r),x===void 0)))return;let k=DJ(x);if(k===void 0||k==="default"||k===t.escapedName)return{kind:0,symbol:x}}function p(g,x){let k=tTe(g,x,r);return k&&{kind:1,symbol:g,exportInfo:k}}function y(g){return Ar(g,2048)?1:0}}function J7t(e,t){var r,a;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let u=B.checkDefined(e.valueDeclaration);if(ll(u))return(r=kr(u.expression,$g))==null?void 0:r.symbol;if(Yn(u))return(a=kr(u.right,$g))==null?void 0:a.symbol;if(mo(u))return u.symbol}function q7t(e,t){let r=Ur(e)?e:Wa(e)?FI(e):void 0;return r?e.name!==t||mT(r.parent)?void 0:mu(r.parent.parent)?r.parent.parent:void 0:e}function $7t(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&iTe(t);case 276:return!t.propertyName;case 273:case 274:return B.assert(t.name===e),!0;case 208:return Jn(e)&&$w(t.parent.parent);default:return!1}}function tTe(e,t,r){let a=e.parent;if(!a)return;let u=r.getMergedSymbol(a);return jP(u)?{exportingModuleSymbol:u,exportKind:t}:void 0}function G7t(e,t){if(e.declarations)for(let r of e.declarations){if(Gf(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(lr(r)&&Vv(r.expression)&&!xo(r.name))return t.getSymbolAtLocation(r);if(jf(r)&&Yn(r.parent.parent)&&Su(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function K7t(e,t){return t.getMergedSymbol(wq(e).symbol)}function wq(e){if(e.kind===213||e.kind===351)return e.getSourceFile();let{parent:t}=e;return t.kind===307?t:(B.assert(t.kind===268),ea(t.parent,bse))}function bse(e){return e.kind===267&&e.name.kind===11}function iTe(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var z$e=(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))(z$e||{}),V$e=(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))(V$e||{});function ub(e,t=1){return{kind:t,node:e.name||e,context:X7t(e)}}function nTe(e){return e&&e.kind===void 0}function X7t(e){if(mf(e))return BE(e);if(e.parent){if(!mf(e.parent)&&!ll(e.parent)){if(Jn(e)){let r=Yn(e.parent)?e.parent:il(e.parent)&&Yn(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&Su(r)!==0)return BE(r)}if(ny(e.parent)||fT(e.parent))return e.parent.parent;if(SE(e.parent)||Px(e.parent)||A3(e.parent))return e.parent;if(xc(e)){let r=KM(e);if(r){let a=Ri(r,u=>mf(u)||_o(u)||BP(u));return mf(a)?BE(a):a}}let t=Ri(e,Ma);return t?BE(t.parent):void 0}if(e.parent.name===e||Ol(e.parent)||ll(e.parent)||(QC(e.parent)||Wa(e.parent))&&e.parent.propertyName===e||e.kind===90&&Ar(e.parent,2080))return BE(e.parent)}}function BE(e){if(e)switch(e.kind){case 260:return!ef(e.parent)||e.parent.declarations.length!==1?e:mu(e.parent.parent)?e.parent.parent:tE(e.parent.parent)?BE(e.parent.parent):e.parent;case 208:return BE(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return Ud(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return gS(e.parent)?BE(Ri(e.parent,t=>Yn(t)||tE(t))):e;case 255:return{start:St(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function rTe(e,t,r){if(!r)return;let a=nTe(r)?Eq(r.start,t,r.end):Eq(r,t);return a.start!==e.start||a.length!==e.length?{contextSpan:a}:void 0}var H$e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(H$e||{});function Y7t(e,t,r,a,u){let f=ip(a,u),p={use:1},y=rA.getReferencedSymbolsForNode(u,f,e,r,t,p),g=e.getTypeChecker(),x=rA.getAdjustedNode(f,p),k=Q7t(x)?g.getSymbolAtLocation(x):void 0;return!y||!y.length?void 0:ro(y,({definition:T,references:A})=>T&&{definition:g.runWithCancellationToken(t,P=>tMt(T,P,f)),references:A.map(P=>nMt(P,k))})}function Q7t(e){return e.kind===90||!!Y3(e)||tR(e)||e.kind===137&&Ol(e.parent)}function Z7t(e,t,r,a,u){let f=ip(a,u),p,y=U$e(e,t,r,f,u);if(f.parent.kind===211||f.parent.kind===208||f.parent.kind===212||f.kind===108)p=y&&[...y];else if(y){let x=H7(y),k=new Map;for(;!x.isEmpty();){let T=x.dequeue();if(!Uh(k,ac(T.node)))continue;p=hi(p,T);let A=U$e(e,t,r,T.node,T.node.pos);A&&x.enqueue(...A)}}let g=e.getTypeChecker();return _i(p,x=>oMt(x,g))}function U$e(e,t,r,a,u){if(a.kind===307)return;let f=e.getTypeChecker();if(a.parent.kind===304){let p=[];return rA.getReferenceEntriesForShorthandPropertyAssignment(a,f,y=>p.push(ub(y))),p}else if(a.kind===108||mp(a.parent)){let p=f.getSymbolAtLocation(a);return p.valueDeclaration&&[ub(p.valueDeclaration)]}else return J$e(u,a,e,r,t,{implementations:!0,use:1})}function eMt(e,t,r,a,u,f,p){return _i(q$e(rA.getReferencedSymbolsForNode(u,a,e,r,t,f)),y=>p(y,a,e.getTypeChecker()))}function J$e(e,t,r,a,u,f={},p=new Set(a.map(y=>y.fileName))){return q$e(rA.getReferencedSymbolsForNode(e,t,r,a,u,f,p))}function q$e(e){return e&&vo(e,t=>t.references)}function tMt(e,t,r){let a=(()=>{switch(e.type){case 0:{let{symbol:k}=e,{displayParts:T,kind:A}=$$e(k,t,r),P=T.map(z=>z.text).join(""),R=k.declarations&&mc(k.declarations),W=R?cs(R)||R:r;return{...Tq(W),name:P,kind:A,displayParts:T,context:BE(R)}}case 1:{let{node:k}=e;return{...Tq(k),name:k.text,kind:"label",displayParts:[vp(k.text,17)]}}case 2:{let{node:k}=e,T=ua(k.kind);return{...Tq(k),name:T,kind:"keyword",displayParts:[{text:T,kind:"keyword"}]}}case 3:{let{node:k}=e,T=t.getSymbolAtLocation(k),A=T&&SS.getSymbolDisplayPartsDocumentationAndSymbolKind(t,T,k.getSourceFile(),LE(k),k).displayParts||[Bm("this")];return{...Tq(k),name:"this",kind:"var",displayParts:A}}case 4:{let{node:k}=e;return{...Tq(k),name:k.text,kind:"var",displayParts:[vp(Jl(k),8)]}}case 5:return{textSpan:yS(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[vp(`"${e.reference.fileName}"`,8)]};default:return B.assertNever(e)}})(),{sourceFile:u,textSpan:f,name:p,kind:y,displayParts:g,context:x}=a;return{containerKind:"",containerName:"",fileName:u.fileName,kind:y,name:p,textSpan:f,displayParts:g,...rTe(f,u,x)}}function Tq(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:Eq(Ma(e)?e.expression:e,t)}}function $$e(e,t,r){let a=rA.getIntersectingMeaningFromDeclarations(r,e),u=e.declarations&&mc(e.declarations)||r,{displayParts:f,symbolKind:p}=SS.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,u.getSourceFile(),u,u,a);return{displayParts:f,kind:p}}function iMt(e,t,r,a,u){return{...Sse(e),...a&&rMt(e,t,r,u)}}function nMt(e,t){let r=G$e(e);return t?{...r,isDefinition:e.kind!==0&&X$e(e.node,t)}:r}function G$e(e){let t=Sse(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:r,node:a}=e;return{...t,isWriteAccess:oTe(a),isInString:r===2?!0:void 0}}function Sse(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),r=Eq(e.node,t);return{textSpan:r,fileName:t.fileName,...rTe(r,t,e.context)}}}function rMt(e,t,r,a){if(e.kind!==0&&(et(t)||xc(t))){let{node:u,kind:f}=e,p=u.parent,y=t.text,g=jf(p);if(g||G5(p)&&p.name===u&&p.dotDotDotToken===void 0){let x={prefixText:y+": "},k={suffixText:": "+y};if(f===3)return x;if(f===4)return k;if(g){let T=p.parent;return ba(T)&&Yn(T.parent)&&Vv(T.parent.left)?x:k}else return x}else if(F_(p)&&!p.propertyName){let x=Gf(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return sn(x.declarations,p)?{prefixText:y+" as "}:Xh}else if(Gf(p)&&!p.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:y+" as "}:{suffixText:" as "+y}}if(e.kind!==0&&Z_(e.node)&&il(e.node.parent)){let u=vre(a);return{prefixText:u,suffixText:u}}return Xh}function oMt(e,t){let r=Sse(e);if(e.kind!==0){let{node:a}=e;return{...r,...sMt(a,t)}}else return{...r,kind:"",displayParts:[]}}function sMt(e,t){let r=t.getSymbolAtLocation(mf(e)&&e.name?e.name:e);return r?$$e(r,t,e):e.kind===210?{kind:"interface",displayParts:[Yf(21),Bm("object literal"),Yf(22)]}:e.kind===231?{kind:"local class",displayParts:[Yf(21),Bm("anonymous local class"),Yf(22)]}:{kind:CT(e),displayParts:[]}}function aMt(e){let t=Sse(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let r=oTe(e.node),a={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:a}}function Eq(e,t,r){let a=e.getStart(t),u=(r||e).getEnd();return xc(e)&&u-a>2&&(B.assert(r===void 0),a+=1,u-=1),r?.kind===269&&(u=r.getFullStart()),bu(a,u)}function K$e(e){return e.kind===0?e.textSpan:Eq(e.node,e.node.getSourceFile())}function oTe(e){let t=Y3(e);return!!t&&cMt(t)||e.kind===90||oN(e)}function X$e(e,t){var r;if(!t)return!1;let a=Y3(e)||(e.kind===90?e.parent:tR(e)||e.kind===137&&Ol(e.parent)?e.parent.parent:void 0),u=a&&Yn(a)?a.left:void 0;return!!(a&&((r=t.declarations)!=null&&r.some(f=>f===a||f===u)))}function cMt(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 338:case 346:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!gS(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||mT(e.parent);case 173:case 171:case 348:case 341:return!1;default:return B.failBadSyntaxKind(e)}}var rA;(e=>{function t(ht,Jt,ye,ct,ge,He={},ut=new Set(ct.map(bt=>bt.fileName))){var bt,je;if(Jt=r(Jt,He),mo(Jt)){let nr=c6.getReferenceAtPosition(Jt,ht,ye);if(!nr?.file)return;let Y=ye.getTypeChecker().getMergedSymbol(nr.file.symbol);if(Y)return x(ye,Y,!1,ct,ut);let $e=ye.getFileIncludeReasons();return $e?[{definition:{type:5,reference:nr.reference,file:Jt},references:u(nr.file,$e,ye)||F}]:void 0}if(!He.implementations){let nr=T(Jt,ct,ge);if(nr)return nr}let It=ye.getTypeChecker(),mt=It.getSymbolAtLocation(Ol(Jt)&&Jt.parent.name||Jt);if(!mt){if(!He.implementations&&xc(Jt)){if(IJ(Jt)){let nr=ye.getFileIncludeReasons(),Y=(je=(bt=ye.getResolvedModuleFromModuleSpecifier(Jt))==null?void 0:bt.resolvedModule)==null?void 0:je.resolvedFileName,$e=Y?ye.getSourceFile(Y):void 0;if($e)return[{definition:{type:4,node:Jt},references:u($e,nr,ye)||F}]}return Rr(Jt,ct,It,ge)}return}if(mt.escapedName==="export=")return x(ye,mt.parent,!1,ct,ut);let $t=p(mt,ye,ct,ge,He,ut);if($t&&!(mt.flags&33554432))return $t;let _t=f(Jt,mt,It),yi=_t&&p(_t,ye,ct,ge,He,ut),Ii=A(mt,Jt,ct,ut,It,ge,He);return y(ye,$t,Ii,yi)}e.getReferencedSymbolsForNode=t;function r(ht,Jt){return Jt.use===1?ht=rre(ht):Jt.use===2&&(ht=vJ(ht)),ht}e.getAdjustedNode=r;function a(ht,Jt,ye,ct=new Set(ye.map(ge=>ge.fileName))){var ge,He;let ut=(ge=Jt.getSourceFile(ht))==null?void 0:ge.symbol;if(ut)return((He=x(Jt,ut,!1,ye,ct)[0])==null?void 0:He.references)||F;let bt=Jt.getFileIncludeReasons(),je=Jt.getSourceFile(ht);return je&&bt&&u(je,bt,Jt)||F}e.getReferencesForFileName=a;function u(ht,Jt,ye){let ct,ge=Jt.get(ht.path)||F;for(let He of ge)if(Tk(He)){let ut=ye.getSourceFileByPath(He.file),bt=p8(ye,He);V4(bt)&&(ct=hi(ct,{kind:0,fileName:ut.fileName,textSpan:yS(bt)}))}return ct}function f(ht,Jt,ye){if(ht.parent&&HR(ht.parent)){let ct=ye.getAliasedSymbol(Jt),ge=ye.getMergedSymbol(ct);if(ct!==ge)return ge}}function p(ht,Jt,ye,ct,ge,He){let ut=ht.flags&1536&&ht.declarations&&St(ht.declarations,mo);if(!ut)return;let bt=ht.exports.get("export="),je=x(Jt,ht,!!bt,ye,He);if(!bt||!He.has(ut.fileName))return je;let It=Jt.getTypeChecker();return ht=hf(bt,It),y(Jt,je,A(ht,void 0,ye,He,It,ct,ge))}function y(ht,...Jt){let ye;for(let ct of Jt)if(!(!ct||!ct.length)){if(!ye){ye=ct;continue}for(let ge of ct){if(!ge.definition||ge.definition.type!==0){ye.push(ge);continue}let He=ge.definition.symbol,ut=zi(ye,je=>!!je.definition&&je.definition.type===0&&je.definition.symbol===He);if(ut===-1){ye.push(ge);continue}let bt=ye[ut];ye[ut]={definition:bt.definition,references:bt.references.concat(ge.references).sort((je,It)=>{let mt=g(ht,je),$t=g(ht,It);if(mt!==$t)return Kc(mt,$t);let _t=K$e(je),yi=K$e(It);return _t.start!==yi.start?Kc(_t.start,yi.start):Kc(_t.length,yi.length)})}}}return ye}function g(ht,Jt){let ye=Jt.kind===0?ht.getSourceFile(Jt.fileName):Jt.node.getSourceFile();return ht.getSourceFiles().indexOf(ye)}function x(ht,Jt,ye,ct,ge){B.assert(!!Jt.valueDeclaration);let He=ro(R$e(ht,ct,Jt),bt=>{if(bt.kind==="import"){let je=bt.literal.parent;if(dS(je)){let It=ea(je.parent,ey);if(ye&&!It.qualifier)return}return ub(bt.literal)}else if(bt.kind==="implicit"){let je=bt.literal.text!==ek&&LN(bt.referencingFile,It=>It.transformFlags&2?Yv(It)||SE(It)||_T(It)?It:void 0:"skip")||bt.referencingFile.statements[0]||bt.referencingFile;return ub(je)}else return{kind:0,fileName:bt.referencingFile.fileName,textSpan:yS(bt.ref)}});if(Jt.declarations)for(let bt of Jt.declarations)switch(bt.kind){case 307:break;case 267:ge.has(bt.getSourceFile().fileName)&&He.push(ub(bt.name));break;default:B.assert(!!(Jt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let ut=Jt.exports.get("export=");if(ut?.declarations)for(let bt of ut.declarations){let je=bt.getSourceFile();if(ge.has(je.fileName)){let It=Yn(bt)&&lr(bt.left)?bt.left.expression:ll(bt)?B.checkDefined(Tc(bt,95,je)):cs(bt)||bt;He.push(ub(It))}}return He.length?[{definition:{type:0,symbol:Jt},references:He}]:F}function k(ht){return ht.kind===148&&_k(ht.parent)&&ht.parent.operator===148}function T(ht,Jt,ye){if(C8(ht.kind))return ht.kind===116&&TN(ht.parent)||ht.kind===148&&!k(ht)?void 0:De(Jt,ht.kind,ye,ht.kind===148?k:void 0);if(JP(ht.parent)&&ht.parent.name===ht)return ke(Jt,ye);if(SN(ht)&&Yl(ht.parent))return[{definition:{type:2,node:ht},references:[ub(ht)]}];if(j5(ht)){let ct=_J(ht.parent,ht.text);return ct&&Re(ct.parent,ct)}else if(Gne(ht))return Re(ht.parent,ht);if(G4(ht))return Ao(ht,Jt,ye);if(ht.kind===108)return Gr(ht)}function A(ht,Jt,ye,ct,ge,He,ut){let bt=Jt&&W(ht,Jt,ge,!Ha(ut))||ht,je=Jt?Jr(Jt,bt):7,It=[],mt=new G(ye,ct,Jt?R(Jt):0,ge,He,je,ut,It),$t=!Ha(ut)||!bt.declarations?void 0:St(bt.declarations,Gf);if($t)Be($t.name,bt,$t,mt.createSearch(Jt,ht,void 0),mt,!0,!0);else if(Jt&&Jt.kind===90&&bt.escapedName==="default"&&bt.parent)xt(Jt,bt,mt),$(Jt,bt,{exportingModuleSymbol:bt.parent,exportKind:1},mt);else{let _t=mt.createSearch(Jt,bt,void 0,{allSearchSymbols:Jt?Eo(bt,Jt,ge,ut.use===2,!!ut.providePrefixAndSuffixTextForRename,!!ut.implementations):[bt]});P(bt,mt,_t)}return It}function P(ht,Jt,ye){let ct=Ce(ht);if(ct)we(ct,ct.getSourceFile(),ye,Jt,!(mo(ct)&&!sn(Jt.sourceFiles,ct)));else for(let ge of Jt.sourceFiles)Jt.cancellationToken.throwIfCancellationRequested(),ce(ge,ye,Jt)}function R(ht){switch(ht.kind){case 176:case 137:return 1;case 80:if(jr(ht.parent))return B.assert(ht.parent.name===ht),2;default:return 0}}function W(ht,Jt,ye,ct){let{parent:ge}=Jt;return Gf(ge)&&ct?Ge(Jt,ht,ge,ye):Le(ht.declarations,He=>{if(!He.parent){if(ht.flags&33554432)return;B.fail(`Unexpected symbol at ${B.formatSyntaxKind(Jt.kind)}: ${B.formatSymbol(ht)}`)}return L_(He.parent)&&Nx(He.parent.parent)?ye.getPropertyOfType(ye.getTypeFromTypeNode(He.parent.parent),ht.name):void 0})}let z;(ht=>{ht[ht.None=0]="None",ht[ht.Constructor=1]="Constructor",ht[ht.Class=2]="Class"})(z||(z={}));function q(ht){if(!(ht.flags&33555968))return;let Jt=ht.declarations&&St(ht.declarations,ye=>!mo(ye)&&!Hu(ye));return Jt&&Jt.symbol}class G{constructor(Jt,ye,ct,ge,He,ut,bt,je){this.sourceFiles=Jt,this.sourceFilesSet=ye,this.specialSearchKind=ct,this.checker=ge,this.cancellationToken=He,this.searchMeaning=ut,this.options=bt,this.result=je,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=X4(),this.markSeenReExportRHS=X4(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Jt){return this.sourceFilesSet.has(Jt.fileName)}getImportSearches(Jt,ye){return this.importTracker||(this.importTracker=eTe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Jt,ye,this.options.use===2)}createSearch(Jt,ye,ct,ge={}){let{text:He=sh(fu(aO(ye)||q(ye)||ye)),allSearchSymbols:ut=[ye]}=ge,bt=Hl(He),je=this.options.implementations&&Jt?Ai(Jt,ye,this.checker):void 0;return{symbol:ye,comingFrom:ct,text:He,escapedText:bt,parents:je,allSearchSymbols:ut,includes:It=>sn(ut,It)}}referenceAdder(Jt){let ye=Ca(Jt),ct=this.symbolIdToReferences[ye];return ct||(ct=this.symbolIdToReferences[ye]=[],this.result.push({definition:{type:0,symbol:Jt},references:ct})),(ge,He)=>ct.push(ub(ge,He))}addStringOrCommentReference(Jt,ye){this.result.push({definition:void 0,references:[{kind:0,fileName:Jt,textSpan:ye}]})}markSearchedSymbols(Jt,ye){let ct=ac(Jt),ge=this.sourceFileToSeenSymbols[ct]||(this.sourceFileToSeenSymbols[ct]=new Set),He=!1;for(let ut of ye)He=_p(ge,Ca(ut))||He;return He}}function $(ht,Jt,ye,ct){let{importSearches:ge,singleReferences:He,indirectUsers:ut}=ct.getImportSearches(Jt,ye);if(He.length){let bt=ct.referenceAdder(Jt);for(let je of He)ne(je,ct)&&bt(je)}for(let[bt,je]of ge)Oe(bt.getSourceFile(),ct.createSearch(bt,je,1),ct);if(ut.length){let bt;switch(ye.exportKind){case 0:bt=ct.createSearch(ht,Jt,1);break;case 1:bt=ct.options.use===2?void 0:ct.createSearch(ht,Jt,1,{text:"default"});break;case 2:break}if(bt)for(let je of ut)ce(je,bt,ct)}}function te(ht,Jt,ye,ct,ge,He,ut,bt){let je=eTe(ht,new Set(ht.map(_t=>_t.fileName)),Jt,ye),{importSearches:It,indirectUsers:mt,singleReferences:$t}=je(ct,{exportKind:ut?1:0,exportingModuleSymbol:ge},!1);for(let[_t]of It)bt(_t);for(let _t of $t)et(_t)&&ey(_t.parent)&&bt(_t);for(let _t of mt)for(let yi of be(_t,ut?"default":He)){let Ii=Jt.getSymbolAtLocation(yi),nr=Lt(Ii?.declarations,Y=>!!kr(Y,ll));et(yi)&&!QC(yi.parent)&&(Ii===ct||nr)&&bt(yi)}}e.eachExportReference=te;function ne(ht,Jt){return Ae(ht,Jt)?Jt.options.use!==2?!0:!et(ht)&&!QC(ht.parent)?!1:!(QC(ht.parent)&&qy(ht)):!1}function _e(ht,Jt){if(ht.declarations)for(let ye of ht.declarations){let ct=ye.getSourceFile();Oe(ct,Jt.createSearch(ye,ht,0),Jt,Jt.includesSourceFile(ct))}}function ce(ht,Jt,ye){Poe(ht).get(Jt.escapedText)!==void 0&&Oe(ht,Jt,ye)}function ae(ht,Jt){return gS(ht.parent.parent)?Jt.getPropertySymbolOfDestructuringAssignment(ht):void 0}function Ce(ht){let{declarations:Jt,flags:ye,parent:ct,valueDeclaration:ge}=ht;if(ge&&(ge.kind===218||ge.kind===231))return ge;if(!Jt)return;if(ye&8196){let bt=St(Jt,je=>Jp(je,2)||u_(je));return bt?ck(bt,263):void 0}if(Jt.some(G5))return;let He=ct&&!(ht.flags&262144);if(He&&!(jP(ct)&&!ct.globalExports))return;let ut;for(let bt of Jt){let je=LE(bt);if(ut&&ut!==je||!je||je.kind===307&&!Vp(je))return;if(ut=je,Yc(ut)){let It;for(;It=mZ(ut);)ut=It}}return He?ut.getSourceFile():ut}function he(ht,Jt,ye,ct=ye){return ue(ht,Jt,ye,()=>!0,ct)||!1}e.isSymbolReferencedInFile=he;function ue(ht,Jt,ye,ct,ge=ye){let He=Wp(ht.parent,ht.parent.parent)?Ta(Jt.getSymbolsOfParameterPropertyDeclaration(ht.parent,ht.text)):Jt.getSymbolAtLocation(ht);if(He)for(let ut of be(ye,He.name,ge)){if(!et(ut)||ut===ht||ut.escapedText!==ht.escapedText)continue;let bt=Jt.getSymbolAtLocation(ut);if(bt===He||Jt.getShorthandAssignmentValueSymbol(ut.parent)===He||Gf(ut.parent)&&Ge(ut,bt,ut.parent,Jt)===He){let je=ct(ut);if(je)return je}}}e.eachSymbolReferenceInFile=ue;function Ee(ht,Jt){return Di(be(Jt,ht),ge=>!!Y3(ge)).reduce((ge,He)=>{let ut=ct(He);return!Lt(ge.declarationNames)||ut===ge.depth?(ge.declarationNames.push(He),ge.depth=ut):utmt===ge)&&ct(ut,je))return!0}return!1}e.someSignatureUsage=ve;function be(ht,Jt,ye=ht){return ro(Se(ht,Jt,ye),ct=>{let ge=ip(ht,ct);return ge===ht?void 0:ge})}function Se(ht,Jt,ye=ht){let ct=[];if(!Jt||!Jt.length)return ct;let ge=ht.text,He=ge.length,ut=Jt.length,bt=ge.indexOf(Jt,ye.pos);for(;bt>=0&&!(bt>ye.end);){let je=bt+ut;(bt===0||!q1(ge.charCodeAt(bt-1),99))&&(je===He||!q1(ge.charCodeAt(je),99))&&ct.push(bt),bt=ge.indexOf(Jt,bt+ut+1)}return ct}function Re(ht,Jt){let ye=ht.getSourceFile(),ct=Jt.text,ge=ro(be(ye,ct,ht),He=>He===Jt||j5(He)&&_J(He,ct)===Jt?ub(He):void 0);return[{definition:{type:1,node:Jt},references:ge}]}function ie(ht,Jt){switch(ht.kind){case 81:if(vk(ht.parent))return!0;case 80:return ht.text.length===Jt.length;case 15:case 11:{let ye=ht;return ye.text.length===Jt.length&&(pJ(ye)||Qne(ht)||CSe(ht)||Gs(ht.parent)&&cE(ht.parent)&&ht.parent.arguments[1]===ht||QC(ht.parent))}case 9:return pJ(ht)&&ht.text.length===Jt.length;case 90:return Jt.length===7;default:return!1}}function ke(ht,Jt){let ye=vo(ht,ct=>(Jt.throwIfCancellationRequested(),ro(be(ct,"meta",ct),ge=>{let He=ge.parent;if(JP(He))return ub(He)})));return ye.length?[{definition:{type:2,node:ye[0].node},references:ye}]:void 0}function De(ht,Jt,ye,ct){let ge=vo(ht,He=>(ye.throwIfCancellationRequested(),ro(be(He,ua(Jt),He),ut=>{if(ut.kind===Jt&&(!ct||ct(ut)))return ub(ut)})));return ge.length?[{definition:{type:2,node:ge[0].node},references:ge}]:void 0}function Oe(ht,Jt,ye,ct=!0){return ye.cancellationToken.throwIfCancellationRequested(),we(ht,ht,Jt,ye,ct)}function we(ht,Jt,ye,ct,ge){if(ct.markSearchedSymbols(Jt,ye.allSearchSymbols))for(let He of Se(Jt,ye.text,ht))Fe(Jt,He,ye,ct,ge)}function Ae(ht,Jt){return!!(PE(ht)&Jt.searchMeaning)}function Fe(ht,Jt,ye,ct,ge){let He=ip(ht,Jt);if(!ie(He,ye.text)){!ct.options.implementations&&(ct.options.findInStrings&&JN(ht,Jt)||ct.options.findInComments&&MSe(ht,Jt))&&ct.addStringOrCommentReference(ht.fileName,_f(Jt,ye.text.length));return}if(!Ae(He,ct))return;let ut=ct.checker.getSymbolAtLocation(He);if(!ut)return;let bt=He.parent;if(F_(bt)&&bt.propertyName===He)return;if(Gf(bt)){B.assert(He.kind===80||He.kind===11),Be(He,ut,bt,ye,ct,ge);return}if(P3(bt)&&bt.isNameFirst&&bt.typeExpression&&CE(bt.typeExpression.type)&&bt.typeExpression.type.jsDocPropertyTags&&K(bt.typeExpression.type.jsDocPropertyTags)){Tt(bt.typeExpression.type.jsDocPropertyTags,He,ye,ct);return}let je=Qn(ye,ut,He,ct);if(!je){gt(ut,ye,ct);return}switch(ct.specialSearchKind){case 0:ge&&xt(He,je,ct);break;case 1:nt(He,ht,ye,ct);break;case 2:At(He,ye,ct);break;default:B.assertNever(ct.specialSearchKind)}Jn(He)&&Wa(He.parent)&&$w(He.parent.parent.parent)&&(ut=He.parent.symbol,!ut)||Ue(He,ut,ye,ct)}function Tt(ht,Jt,ye,ct){let ge=ct.referenceAdder(ye.symbol);xt(Jt,ye.symbol,ct),re(ht,He=>{P_(He.name)&&ge(He.name.left)})}function Be(ht,Jt,ye,ct,ge,He,ut){B.assert(!ut||!!ge.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:bt,propertyName:je,name:It}=ye,mt=bt.parent,$t=Ge(ht,Jt,ye,ge.checker);if(!ut&&!ct.includes($t))return;if(je?ht===je?(mt.moduleSpecifier||_t(),He&&ge.options.use!==2&&ge.markSeenReExportRHS(It)&&xt(It,B.checkDefined(ye.symbol),ge)):ge.markSeenReExportRHS(ht)&&_t():ge.options.use===2&&qy(It)||_t(),!Ha(ge.options)||ut){let Ii=qy(ht)||qy(ye.name)?1:0,nr=B.checkDefined(ye.symbol),Y=tTe(nr,Ii,ge.checker);Y&&$(ht,nr,Y,ge)}if(ct.comingFrom!==1&&mt.moduleSpecifier&&!je&&!Ha(ge.options)){let yi=ge.checker.getExportSpecifierLocalTargetSymbol(ye);yi&&_e(yi,ge)}function _t(){He&&xt(ht,$t,ge)}}function Ge(ht,Jt,ye,ct){return Ke(ht,ye)&&ct.getExportSpecifierLocalTargetSymbol(ye)||Jt}function Ke(ht,Jt){let{parent:ye,propertyName:ct,name:ge}=Jt;return B.assert(ct===ht||ge===ht),ct?ct===ht:!ye.parent.moduleSpecifier}function Ue(ht,Jt,ye,ct){let ge=W$e(ht,Jt,ct.checker,ye.comingFrom===1);if(!ge)return;let{symbol:He}=ge;ge.kind===0?Ha(ct.options)||_e(He,ct):$(ht,He,ge.exportInfo,ct)}function gt({flags:ht,valueDeclaration:Jt},ye,ct){let ge=ct.checker.getShorthandAssignmentValueSymbol(Jt),He=Jt&&cs(Jt);!(ht&33554432)&&He&&ye.includes(ge)&&xt(He,ge,ct)}function xt(ht,Jt,ye){let{kind:ct,symbol:ge}="kind"in Jt?Jt:{kind:void 0,symbol:Jt};if(ye.options.use===2&&ht.kind===90)return;let He=ye.referenceAdder(ge);ye.options.implementations?Ci(ht,He,ye):He(ht,ct)}function nt(ht,Jt,ye,ct){v8(ht)&&xt(ht,ye.symbol,ct);let ge=()=>ct.referenceAdder(ye.symbol);if(jr(ht.parent))B.assert(ht.kind===90||ht.parent.name===ht),ci(ye.symbol,Jt,ge());else{let He=aa(ht);He&&(bn(He,ge()),ni(He,ct))}}function At(ht,Jt,ye){xt(ht,Jt.symbol,ye);let ct=ht.parent;if(ye.options.use===2||!jr(ct))return;B.assert(ct.name===ht);let ge=ye.referenceAdder(Jt.symbol);for(let He of ct.members)BI(He)&&ia(He)&&He.body&&He.body.forEachChild(function ut(bt){bt.kind===110?ge(bt):!vs(bt)&&!jr(bt)&&bt.forEachChild(ut)})}function ci(ht,Jt,ye){let ct=Fi(ht);if(ct&&ct.declarations)for(let ge of ct.declarations){let He=Tc(ge,137,Jt);B.assert(ge.kind===176&&!!He),ye(He)}ht.exports&&ht.exports.forEach(ge=>{let He=ge.valueDeclaration;if(He&&He.kind===174){let ut=He.body;ut&&na(ut,110,bt=>{v8(bt)&&ye(bt)})}})}function Fi(ht){return ht.members&&ht.members.get("__constructor")}function bn(ht,Jt){let ye=Fi(ht.symbol);if(ye&&ye.declarations)for(let ct of ye.declarations){B.assert(ct.kind===176);let ge=ct.body;ge&&na(ge,108,He=>{Jne(He)&&Jt(He)})}}function an(ht){return!!Fi(ht.symbol)}function ni(ht,Jt){if(an(ht))return;let ye=ht.symbol,ct=Jt.createSearch(void 0,ye,void 0);P(ye,Jt,ct)}function Ci(ht,Jt,ye){if(Xy(ht)&&Dr(ht.parent)){Jt(ht);return}if(ht.kind!==80)return;ht.parent.kind===304&&Do(ht,ye.checker,Jt);let ct=Sn(ht);if(ct){Jt(ct);return}let ge=Ri(ht,bt=>!P_(bt.parent)&&!io(bt.parent)&&!Ww(bt.parent)),He=ge.parent;if(xz(He)&&He.type===ge&&ye.markSeenContainingTypeReference(He))if(Qb(He))ut(He.initializer);else if(vs(He)&&He.body){let bt=He.body;bt.kind===241?tS(bt,je=>{je.expression&&ut(je.expression)}):ut(bt)}else ZC(He)&&ut(He.expression);function ut(bt){nn(bt)&&Jt(bt)}}function Sn(ht){return et(ht)||lr(ht)?Sn(ht.parent):nb(ht)?kr(ht.parent.parent,Im(jr,vf)):void 0}function nn(ht){switch(ht.kind){case 217:return nn(ht.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function Br(ht,Jt,ye,ct){if(ht===Jt)return!0;let ge=Ca(ht)+","+Ca(Jt),He=ye.get(ge);if(He!==void 0)return He;ye.set(ge,!1);let ut=!!ht.declarations&&ht.declarations.some(bt=>Q3(bt).some(je=>{let It=ct.getTypeAtLocation(je);return!!It&&!!It.symbol&&Br(It.symbol,Jt,ye,ct)}));return ye.set(ge,ut),ut}function Gr(ht){let Jt=OM(ht,!1);if(!Jt)return;let ye=256;switch(Jt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:ye&=oS(Jt),Jt=Jt.parent;break;default:return}let ct=Jt.getSourceFile(),ge=ro(be(ct,"super",Jt),He=>{if(He.kind!==108)return;let ut=OM(He,!1);return ut&&ia(ut)===!!ye&&ut.parent.symbol===Jt.symbol?ub(He):void 0});return[{definition:{type:0,symbol:Jt.symbol},references:ge}]}function is(ht){return ht.kind===80&&ht.parent.kind===169&&ht.parent.name===ht}function Ao(ht,Jt,ye){let ct=f_(ht,!1,!1),ge=256;switch(ct.kind){case 174:case 173:if(zh(ct)){ge&=oS(ct),ct=ct.parent;break}case 172:case 171:case 176:case 177:case 178:ge&=oS(ct),ct=ct.parent;break;case 307:if(dd(ct)||is(ht))return;case 262:case 218:break;default:return}let He=vo(ct.kind===307?Jt:[ct.getSourceFile()],bt=>(ye.throwIfCancellationRequested(),be(bt,"this",mo(ct)?bt:ct).filter(je=>{if(!G4(je))return!1;let It=f_(je,!1,!1);if(!$g(It))return!1;switch(ct.kind){case 218:case 262:return ct.symbol===It.symbol;case 174:case 173:return zh(ct)&&ct.symbol===It.symbol;case 231:case 263:case 210:return It.parent&&$g(It.parent)&&ct.symbol===It.parent.symbol&&ia(It)===!!ge;case 307:return It.kind===307&&!dd(It)&&!is(je)}}))).map(bt=>ub(bt));return[{definition:{type:3,node:Le(He,bt=>To(bt.node.parent)?bt.node:void 0)||ht},references:He}]}function Rr(ht,Jt,ye,ct){let ge=yJ(ht,ye),He=vo(Jt,ut=>(ct.throwIfCancellationRequested(),ro(be(ut,ht.text),bt=>{if(xc(bt)&&bt.text===ht.text)if(ge){let je=yJ(bt,ye);if(ge!==ye.getStringType()&&(ge===je||xn(bt,ye)))return ub(bt,2)}else return mE(bt)&&!fE(bt,ut)?void 0:ub(bt,2)})));return[{definition:{type:4,node:ht},references:He}]}function xn(ht,Jt){if(ep(ht.parent))return Jt.getPropertyOfType(Jt.getTypeAtLocation(ht.parent.parent),ht.text)}function Eo(ht,Jt,ye,ct,ge,He){let ut=[];return it(ht,Jt,ye,ct,!(ct&&ge),(bt,je,It)=>{It&&dn(ht)!==dn(It)&&(It=void 0),ut.push(It||je||bt)},()=>!He),ut}function it(ht,Jt,ye,ct,ge,He,ut){let bt=m9(Jt);if(bt){let Ii=ye.getShorthandAssignmentValueSymbol(Jt.parent);if(Ii&&ct)return He(Ii,void 0,void 0,3);let nr=ye.getContextualType(bt.parent),Y=nr&&Le(fq(bt,ye,nr,!0),rt=>_t(rt,4));if(Y)return Y;let $e=ae(Jt,ye),Bt=$e&&He($e,void 0,void 0,4);if(Bt)return Bt;let se=Ii&&He(Ii,void 0,void 0,3);if(se)return se}let je=f(Jt,ht,ye);if(je){let Ii=He(je,void 0,void 0,1);if(Ii)return Ii}let It=_t(ht);if(It)return It;if(ht.valueDeclaration&&Wp(ht.valueDeclaration,ht.valueDeclaration.parent)){let Ii=ye.getSymbolsOfParameterPropertyDeclaration(ea(ht.valueDeclaration,To),ht.name);return B.assert(Ii.length===2&&!!(Ii[0].flags&1)&&!!(Ii[1].flags&4)),_t(ht.flags&1?Ii[1]:Ii[0])}let mt=bl(ht,281);if(!ct||mt&&!mt.propertyName){let Ii=mt&&ye.getExportSpecifierLocalTargetSymbol(mt);if(Ii){let nr=He(Ii,void 0,void 0,1);if(nr)return nr}}if(!ct){let Ii;return ge?Ii=G5(Jt.parent)?NJ(ye,Jt.parent):void 0:Ii=yi(ht,ye),Ii&&_t(Ii,4)}if(B.assert(ct),ge){let Ii=yi(ht,ye);return Ii&&_t(Ii,4)}function _t(Ii,nr){return Le(ye.getRootSymbols(Ii),Y=>He(Ii,Y,void 0,nr)||(Y.parent&&Y.parent.flags&96&&ut(Y)?si(Y.parent,Y.name,ye,$e=>He(Ii,Y,$e,nr)):void 0))}function yi(Ii,nr){let Y=bl(Ii,208);if(Y&&G5(Y))return NJ(nr,Y)}}function si(ht,Jt,ye,ct){let ge=new Map;return He(ht);function He(ut){if(!(!(ut.flags&96)||!Uh(ge,Ca(ut))))return Le(ut.declarations,bt=>Le(Q3(bt),je=>{let It=ye.getTypeAtLocation(je),mt=It&&It.symbol&&ye.getPropertyOfType(It,Jt);return It&&mt&&(Le(ye.getRootSymbols(mt),ct)||He(It.symbol))}))}}function dn(ht){return ht.valueDeclaration?!!(__(ht.valueDeclaration)&256):!1}function Qn(ht,Jt,ye,ct){let{checker:ge}=ct;return it(Jt,ye,ge,!1,ct.options.use!==2||!!ct.options.providePrefixAndSuffixTextForRename,(He,ut,bt,je)=>(bt&&dn(Jt)!==dn(bt)&&(bt=void 0),ht.includes(bt||ut||He)?{symbol:ut&&!(_u(He)&6)?ut:He,kind:je}:void 0),He=>!(ht.parents&&!ht.parents.some(ut=>Br(He.parent,ut,ct.inheritsFromCache,ge))))}function Jr(ht,Jt){let ye=PE(ht),{declarations:ct}=Jt;if(ct){let ge;do{ge=ye;for(let He of ct){let ut=uJ(He);ut&ye&&(ye|=ut)}}while(ye!==ge)}return ye}e.getIntersectingMeaningFromDeclarations=Jr;function Dr(ht){return ht.flags&33554432?!(vf(ht)||$h(ht)):qI(ht)?Qb(ht):Oc(ht)?!!ht.body:jr(ht)||vM(ht)}function Do(ht,Jt,ye){let ct=Jt.getSymbolAtLocation(ht),ge=Jt.getShorthandAssignmentValueSymbol(ct.valueDeclaration);if(ge)for(let He of ge.getDeclarations())uJ(He)&1&&ye(He)}e.getReferenceEntriesForShorthandPropertyAssignment=Do;function na(ht,Jt,ye){ws(ht,ct=>{ct.kind===Jt&&ye(ct),na(ct,Jt,ye)})}function aa(ht){return zZ(fJ(ht).parent)}function Ai(ht,Jt,ye){let ct=$4(ht)?ht.parent:void 0,ge=ct&&ye.getTypeAtLocation(ct.expression),He=ro(ge&&(ge.isUnionOrIntersection()?ge.types:ge.symbol===Jt.parent?void 0:[ge]),ut=>ut.symbol&&ut.symbol.flags&96?ut.symbol:void 0);return He.length===0?void 0:He}function Ha(ht){return ht.use===2&&ht.providePrefixAndSuffixTextForRename}})(rA||(rA={}));var c6={};_(c6,{createDefinitionInfo:()=>w9,getDefinitionAndBoundSpan:()=>mMt,getDefinitionAtPosition:()=>Y$e,getReferenceAtPosition:()=>Z$e,getTypeDefinitionAtPosition:()=>_Mt});function Y$e(e,t,r,a,u){var f;let p=Z$e(t,r,e),y=p&&[bMt(p.reference.fileName,p.fileName,p.unverified)]||F;if(p?.file)return y;let g=ip(t,r);if(g===t)return;let{parent:x}=g,k=e.getTypeChecker();if(g.kind===164||et(g)&&EH(x)&&x.tagName===g)return uMt(k,g)||F;if(j5(g)){let z=_J(g.parent,g.text);return z?[sTe(k,z,"label",g.text,void 0)]:void 0}switch(g.kind){case 107:let z=Ri(g.parent,G=>Yl(G)?"quit":Oc(G));return z?[Dq(k,z)]:void 0;case 90:if(!WO(g.parent))break;case 84:let q=Ri(g.parent,RO);if(q)return[vMt(q,t)];break}if(g.kind===135){let z=Ri(g,G=>Oc(G));return z&&Lt(z.modifiers,G=>G.kind===134)?[Dq(k,z)]:void 0}if(g.kind===127){let z=Ri(g,G=>Oc(G));return z&&z.asteriskToken?[Dq(k,z)]:void 0}if(SN(g)&&Yl(g.parent)){let z=g.parent.parent,{symbol:q,failedAliasResolution:G}=xse(z,k,u),$=Di(z.members,Yl),te=q?k.symbolToString(q,z):"",ne=g.getSourceFile();return _i($,_e=>{let{pos:ce}=X0(_e);return ce=Ea(ne.text,ce),sTe(k,_e,"constructor","static {}",te,!1,G,{start:ce,length:6})})}let{symbol:T,failedAliasResolution:A}=xse(g,k,u),P=g;if(a&&A){let z=re([g,...T?.declarations||F],G=>Ri(G,The)),q=z&&XP(z);q&&({symbol:T,failedAliasResolution:A}=xse(q,k,u),P=q)}if(!T&&IJ(P)){let z=(f=e.getResolvedModuleFromModuleSpecifier(P,t))==null?void 0:f.resolvedModule;if(z)return[{name:P.text,fileName:z.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:_f(0,0),failedAliasResolution:A,isAmbient:Jd(z.resolvedFileName),unverified:P!==g}]}if(!T)return Fo(y,hMt(g,k));if(a&&Et(T.declarations,z=>z.getSourceFile().fileName===t.fileName))return;let R=xMt(k,g);if(R&&!(Mf(g.parent)&&CMt(R))){let z=Dq(k,R,A),q=$=>$!==R;if(k.getRootSymbols(T).some($=>lMt($,R))){if(!Ol(R))return[z];q=$=>$!==R&&(Zu($)||Qu($))}let G=V8(k,T,g,A,q)||F;return g.kind===108?[z,...G]:[...G,z]}if(g.parent.kind===304){let z=k.getShorthandAssignmentValueSymbol(T.valueDeclaration),q=z?.declarations?z.declarations.map(G=>w9(G,k,z,g,!1,A)):F;return Fo(q,Q$e(k,g))}if(zu(g)&&Wa(x)&&Om(x.parent)&&g===(x.propertyName||x.name)){let z=$5(g),q=k.getTypeAtLocation(x.parent);return z===void 0?F:vo(q.isUnion()?q.types:[q],G=>{let $=G.getProperty(z);return $&&V8(k,$,g)})}let W=Q$e(k,g);return Fo(y,W.length?W:V8(k,T,g,A))}function lMt(e,t){var r;return e===t.symbol||e===t.symbol.parent||Hd(t.parent)||!zw(t.parent)&&e===((r=kr(t.parent,$g))==null?void 0:r.symbol)}function Q$e(e,t){let r=m9(t);if(r){let a=r&&e.getContextualType(r.parent);if(a)return vo(fq(r,e,a,!1),u=>V8(e,u,t))}return F}function uMt(e,t){let r=Ri(t,Cd);if(!(r&&r.name))return;let a=Ri(r,jr);if(!a)return;let u=J0(a);if(!u)return;let f=fc(u.expression),p=Qu(f)?f.symbol:e.getSymbolAtLocation(f);if(!p)return;let y=So(JI(r.name)),g=cd(r)?e.getPropertyOfType(e.getTypeOfSymbol(p),y):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(p),y);if(g)return V8(e,g,t)}function Z$e(e,t,r){var a,u;let f=T9(e.referencedFiles,t);if(f){let g=r.getSourceFileFromReference(e,f);return g&&{reference:f,fileName:g.fileName,file:g,unverified:!1}}let p=T9(e.typeReferenceDirectives,t);if(p){let g=(a=r.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(p,e))==null?void 0:a.resolvedTypeReferenceDirective,x=g&&r.getSourceFile(g.resolvedFileName);return x&&{reference:p,fileName:x.fileName,file:x,unverified:!1}}let y=T9(e.libReferenceDirectives,t);if(y){let g=r.getLibFileFromReference(y);return g&&{reference:y,fileName:g.fileName,file:g,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let g=K4(e,t),x;if(IJ(g)&&Od(g.text)&&(x=r.getResolvedModuleFromModuleSpecifier(g,e))){let k=(u=x.resolvedModule)==null?void 0:u.resolvedFileName,T=k||qC(Or(e.fileName),g.text);return{file:r.getSourceFile(T),fileName:T,reference:{pos:g.getStart(),end:g.getEnd(),fileName:g.text},unverified:!k}}}}var eGe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function dMt(e,t){let r=t.symbol.name;if(!eGe.has(r))return!1;let a=e.resolveName(r,void 0,788968,!1);return!!a&&a===t.target.symbol}function tGe(e,t){if(!t.aliasSymbol)return!1;let r=t.aliasSymbol.name;if(!eGe.has(r))return!1;let a=e.resolveName(r,void 0,788968,!1);return!!a&&a===t.aliasSymbol}function fMt(e,t,r,a){var u,f;if(_r(t)&4&&dMt(e,t))return k9(e.getTypeArguments(t)[0],e,r,a);if(tGe(e,t)&&t.aliasTypeArguments)return k9(t.aliasTypeArguments[0],e,r,a);if(_r(t)&32&&t.target&&tGe(e,t.target)){let p=(f=(u=t.aliasSymbol)==null?void 0:u.declarations)==null?void 0:f[0];if(p&&$h(p)&&pm(p.type)&&p.type.typeArguments)return k9(e.getTypeAtLocation(p.type.typeArguments[0]),e,r,a)}return[]}function _Mt(e,t,r){let a=ip(t,r);if(a===t)return;if(JP(a.parent)&&a.parent.name===a)return k9(e.getTypeAtLocation(a.parent),e,a.parent,!1);let{symbol:u,failedAliasResolution:f}=xse(a,e,!1);if(!u)return;let p=e.getTypeOfSymbolAtLocation(u,a),y=pMt(u,p,e),g=y&&k9(y,e,a,f),[x,k]=g&&g.length!==0?[y,g]:[p,k9(p,e,a,f)];return k.length?[...fMt(e,x,a,f),...k]:!(u.flags&111551)&&u.flags&788968?V8(e,hf(u,e),a,f):void 0}function k9(e,t,r,a){return vo(e.isUnion()&&!(e.flags&32)?e.types:[e],u=>u.symbol&&V8(t,u.symbol,r,a))}function pMt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Ur(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let a=t.getCallSignatures();if(a.length===1)return r.getReturnTypeOfSignature(Ta(a))}}function mMt(e,t,r){let a=Y$e(e,t,r);if(!a||a.length===0)return;let u=T9(t.referencedFiles,r)||T9(t.typeReferenceDirectives,r)||T9(t.libReferenceDirectives,r);if(u)return{definitions:a,textSpan:yS(u)};let f=ip(t,r),p=_f(f.getStart(),f.getWidth());return{definitions:a,textSpan:p}}function hMt(e,t){return ro(t.getIndexInfosAtLocation(e),r=>r.declaration&&Dq(t,r.declaration))}function xse(e,t,r){let a=t.getSymbolAtLocation(e),u=!1;if(a?.declarations&&a.flags&2097152&&!r&&gMt(e,a.declarations[0])){let f=t.getAliasedSymbol(a);if(f.declarations)return{symbol:f};u=!0}return{symbol:a,failedAliasResolution:u}}function gMt(e,t){return e.kind!==80&&(e.kind!==11||!QC(e.parent))?!1:e.parent===t?!0:t.kind!==274}function yMt(e){if(!$3(e))return!1;let t=Ri(e,r=>Hd(r)?!0:$3(r)?!1:"quit");return!!t&&Su(t)===5}function V8(e,t,r,a,u){let f=u!==void 0?Di(t.declarations,u):t.declarations,p=!u&&(x()||k());if(p)return p;let y=Di(f,A=>!yMt(A)),g=Lt(y)?y:f;return _i(g,A=>w9(A,e,t,r,!1,a));function x(){if(t.flags&32&&!(t.flags&19)&&(v8(r)||r.kind===137)){let A=St(f,jr);return A&&T(A.members,!0)}}function k(){return qne(r)||Zne(r)?T(f,!1):void 0}function T(A,P){if(!A)return;let R=A.filter(P?Ol:vs),W=R.filter(z=>!!z.body);return R.length?W.length!==0?W.map(z=>w9(z,e,t,r)):[w9(pa(R),e,t,r,!1,a)]:void 0}}function w9(e,t,r,a,u,f){let p=t.symbolToString(r),y=SS.getSymbolKind(t,r,a),g=r.parent?t.symbolToString(r.parent,a):"";return sTe(t,e,y,p,g,u,f)}function sTe(e,t,r,a,u,f,p,y){let g=t.getSourceFile();if(!y){let x=cs(t)||t;y=B_(x,g)}return{fileName:g.fileName,textSpan:y,kind:r,name:a,containerKind:void 0,containerName:u,...ol.toContextSpan(y,g,ol.getContextNode(t)),isLocal:!aTe(e,t),isAmbient:!!(t.flags&33554432),unverified:f,failedAliasResolution:p}}function vMt(e,t){let r=ol.getContextNode(e),a=B_(nTe(r)?r.start:r,t);return{fileName:t.fileName,textSpan:a,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...ol.toContextSpan(a,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function aTe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Qb(t.parent)&&t.parent.initializer===t)return aTe(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(Jp(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return aTe(e,t.parent);default:return!1}}function Dq(e,t,r){return w9(t,e,t.symbol,t,!1,r)}function T9(e,t){return St(e,r=>rM(r,t))}function bMt(e,t,r){return{fileName:t,textSpan:bu(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function SMt(e){let t=Ri(e,a=>!$4(a)),r=t?.parent;return r&&zw(r)&&Gz(r)===t?r:void 0}function xMt(e,t){let r=SMt(t),a=r&&e.getResolvedSignature(r);return kr(a&&a.declaration,u=>vs(u)&&!Qy(u))}function CMt(e){switch(e.kind){case 176:case 185:case 179:case 180:return!0;default:return!1}}var Cse={};_(Cse,{provideInlayHints:()=>EMt});var kMt=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function wMt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function TMt(e){return e.includeInlayParameterNameHints==="literals"}function cTe(e){return e.interactiveInlayHints===!0}function EMt(e){let{file:t,program:r,span:a,cancellationToken:u,preferences:f}=e,p=t.text,y=r.getCompilerOptions(),g=mm(t,f),x=r.getTypeChecker(),k=[];return T(t),k;function T(De){if(!(!De||De.getFullWidth()===0)){switch(De.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:u.throwIfCancellationRequested()}if(oM(a,De.pos,De.getFullWidth())&&!(io(De)&&!nb(De)))return f.includeInlayVariableTypeHints&&Ur(De)||f.includeInlayPropertyDeclarationTypeHints&&ls(De)?G(De):f.includeInlayEnumMemberValueHints&&_S(De)?z(De):wMt(f)&&(Gs(De)||uT(De))?$(De):(f.includeInlayFunctionParameterTypeHints&&Oc(De)&&ZV(De)&&Ce(De),f.includeInlayFunctionLikeReturnTypeHints&&A(De)&&ce(De)),ws(De,T)}}function A(De){return rl(De)||Yc(De)||xu(De)||pu(De)||Lm(De)}function P(De,Oe,we,Ae){let Fe=`${Ae?"...":""}${De}`,Tt;cTe(f)?(Tt=[ke(Fe,Oe),{text:":"}],Fe=""):Fe+=":",k.push({text:Fe,position:we,kind:"Parameter",whitespaceAfter:!0,displayParts:Tt})}function R(De,Oe){k.push({text:typeof De=="string"?`: ${De}`:"",displayParts:typeof De=="string"?void 0:[{text:": "},...De],position:Oe,kind:"Type",whitespaceBefore:!0})}function W(De,Oe){k.push({text:`= ${De}`,position:Oe,kind:"Enum",whitespaceBefore:!0})}function z(De){if(De.initializer)return;let Oe=x.getConstantValue(De);Oe!==void 0&&W(Oe.toString(),De.end)}function q(De){return De.symbol&&De.symbol.flags&1536}function G(De){if(De.initializer===void 0&&!(ls(De)&&!(x.getTypeAtLocation(De).flags&1))||Rs(De.name)||Ur(De)&&!ie(De)||Yu(De))return;let we=x.getTypeAtLocation(De);if(q(we))return;let Ae=ve(we);if(Ae){let Fe=typeof Ae=="string"?Ae:Ae.map(Be=>Be.text).join("");if(f.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&sx(De.name.getText(),Fe))return;R(Ae,De.name.end)}}function $(De){let Oe=De.arguments;if(!Oe||!Oe.length)return;let we=[],Ae=x.getResolvedSignatureForSignatureHelp(De,we);if(!Ae||!we.length)return;let Fe=0;for(let Tt of Oe){let Be=fc(Tt);if(TMt(f)&&!_e(Be)){Fe++;continue}let Ge=0;if(fh(Be)){let Ue=x.getTypeAtLocation(Be.expression);if(x.isTupleType(Ue)){let{elementFlags:gt,fixedLength:xt}=Ue.target;if(xt===0)continue;let nt=zi(gt,ci=>!(ci&1));(nt<0?xt:nt)>0&&(Ge=nt<0?xt:nt)}}let Ke=x.getParameterIdentifierInfoAtPosition(Ae,Fe);if(Fe=Fe+(Ge||1),Ke){let{parameter:Ue,parameterName:gt,isRestParameter:xt}=Ke;if(!(f.includeInlayParameterNameHintsWhenArgumentMatchesName||!te(Be,gt))&&!xt)continue;let At=So(gt);if(ne(Be,At))continue;P(At,Ue,Tt.getStart(),xt)}}}function te(De,Oe){return et(De)?De.text===Oe:lr(De)?De.name.text===Oe:!1}function ne(De,Oe){if(!pp(Oe,Oa(y),vR(t.scriptKind)))return!1;let we=Mv(p,De.pos);if(!we?.length)return!1;let Ae=kMt(Oe);return Lt(we,Fe=>Ae.test(p.substring(Fe.pos,Fe.end)))}function _e(De){switch(De.kind){case 224:{let Oe=De.operand;return Q2(Oe)||et(Oe)&&CO(Oe.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let Oe=De.escapedText;return Re(Oe)||CO(Oe)}}return Q2(De)}function ce(De){if(rl(De)&&!Tc(De,21,t)||Up(De)||!De.body)return;let we=x.getSignatureFromDeclaration(De);if(!we)return;let Ae=x.getTypePredicateOfSignature(we);if(Ae?.type){let Be=be(Ae);if(Be){R(Be,ae(De));return}}let Fe=x.getReturnTypeOfSignature(we);if(q(Fe))return;let Tt=ve(Fe);Tt&&R(Tt,ae(De))}function ae(De){let Oe=Tc(De,22,t);return Oe?Oe.end:De.parameters.end}function Ce(De){let Oe=x.getSignatureFromDeclaration(De);if(Oe)for(let we=0;we{let Fe=x.typeToTypeNode(De,void 0,71286784);B.assertIsDefined(Fe,"should always get typenode"),we.writeNode(4,Fe,t,Ae)})}function Ee(De){let we=bT();return zP(Ae=>{let Fe=x.typePredicateToTypePredicateNode(De,void 0,71286784);B.assertIsDefined(Fe,"should always get typePredicateNode"),we.writeNode(4,Fe,t,Ae)})}function ve(De){if(!cTe(f))return ue(De);let we=x.typeToTypeNode(De,void 0,71286784);return B.assertIsDefined(we,"should always get typeNode"),Se(we)}function be(De){if(!cTe(f))return Ee(De);let we=x.typePredicateToTypePredicateNode(De,void 0,71286784);return B.assertIsDefined(we,"should always get typenode"),Se(we)}function Se(De){let Oe=[];return we(De),Oe;function we(Be){var Ge,Ke;if(!Be)return;let Ue=ua(Be.kind);if(Ue){Oe.push({text:Ue});return}if(Q2(Be)){Oe.push({text:Tt(Be)});return}switch(Be.kind){case 80:B.assertNode(Be,et);let gt=mr(Be),xt=Be.symbol&&Be.symbol.declarations&&Be.symbol.declarations.length&&cs(Be.symbol.declarations[0]);xt?Oe.push(ke(gt,xt)):Oe.push({text:gt});break;case 166:B.assertNode(Be,P_),we(Be.left),Oe.push({text:"."}),we(Be.right);break;case 182:B.assertNode(Be,CN),Be.assertsModifier&&Oe.push({text:"asserts "}),we(Be.parameterName),Be.type&&(Oe.push({text:" is "}),we(Be.type));break;case 183:B.assertNode(Be,pm),we(Be.typeName),Be.typeArguments&&(Oe.push({text:"<"}),Fe(Be.typeArguments,", "),Oe.push({text:">"}));break;case 168:B.assertNode(Be,Sl),Be.modifiers&&Fe(Be.modifiers," "),we(Be.name),Be.constraint&&(Oe.push({text:" extends "}),we(Be.constraint)),Be.default&&(Oe.push({text:" = "}),we(Be.default));break;case 169:B.assertNode(Be,To),Be.modifiers&&Fe(Be.modifiers," "),Be.dotDotDotToken&&Oe.push({text:"..."}),we(Be.name),Be.questionToken&&Oe.push({text:"?"}),Be.type&&(Oe.push({text:": "}),we(Be.type));break;case 185:B.assertNode(Be,g4),Oe.push({text:"new "}),Ae(Be),Oe.push({text:" => "}),we(Be.type);break;case 186:B.assertNode(Be,aT),Oe.push({text:"typeof "}),we(Be.exprName),Be.typeArguments&&(Oe.push({text:"<"}),Fe(Be.typeArguments,", "),Oe.push({text:">"}));break;case 187:B.assertNode(Be,L_),Oe.push({text:"{"}),Be.members.length&&(Oe.push({text:" "}),Fe(Be.members,"; "),Oe.push({text:" "})),Oe.push({text:"}"});break;case 188:B.assertNode(Be,zR),we(Be.elementType),Oe.push({text:"[]"});break;case 189:B.assertNode(Be,kN),Oe.push({text:"["}),Fe(Be.elements,", "),Oe.push({text:"]"});break;case 202:B.assertNode(Be,y4),Be.dotDotDotToken&&Oe.push({text:"..."}),we(Be.name),Be.questionToken&&Oe.push({text:"?"}),Oe.push({text:": "}),we(Be.type);break;case 190:B.assertNode(Be,yH),we(Be.type),Oe.push({text:"?"});break;case 191:B.assertNode(Be,vH),Oe.push({text:"..."}),we(Be.type);break;case 192:B.assertNode(Be,Nx),Fe(Be.types," | ");break;case 193:B.assertNode(Be,wN),Fe(Be.types," & ");break;case 194:B.assertNode(Be,cT),we(Be.checkType),Oe.push({text:" extends "}),we(Be.extendsType),Oe.push({text:" ? "}),we(Be.trueType),Oe.push({text:" : "}),we(Be.falseType);break;case 195:B.assertNode(Be,hE),Oe.push({text:"infer "}),we(Be.typeParameter);break;case 196:B.assertNode(Be,gE),Oe.push({text:"("}),we(Be.type),Oe.push({text:")"});break;case 198:B.assertNode(Be,_k),Oe.push({text:`${ua(Be.operator)} `}),we(Be.type);break;case 199:B.assertNode(Be,lT),we(Be.objectType),Oe.push({text:"["}),we(Be.indexType),Oe.push({text:"]"});break;case 200:B.assertNode(Be,yE),Oe.push({text:"{ "}),Be.readonlyToken&&(Be.readonlyToken.kind===40?Oe.push({text:"+"}):Be.readonlyToken.kind===41&&Oe.push({text:"-"}),Oe.push({text:"readonly "})),Oe.push({text:"["}),we(Be.typeParameter),Be.nameType&&(Oe.push({text:" as "}),we(Be.nameType)),Oe.push({text:"]"}),Be.questionToken&&(Be.questionToken.kind===40?Oe.push({text:"+"}):Be.questionToken.kind===41&&Oe.push({text:"-"}),Oe.push({text:"?"})),Oe.push({text:": "}),Be.type&&we(Be.type),Oe.push({text:"; }"});break;case 201:B.assertNode(Be,dS),we(Be.literal);break;case 184:B.assertNode(Be,Qy),Ae(Be),Oe.push({text:" => "}),we(Be.type);break;case 205:B.assertNode(Be,ey),Be.isTypeOf&&Oe.push({text:"typeof "}),Oe.push({text:"import("}),we(Be.argument),Be.assertions&&(Oe.push({text:", { assert: "}),Fe(Be.assertions.assertClause.elements,", "),Oe.push({text:" }"})),Oe.push({text:")"}),Be.qualifier&&(Oe.push({text:"."}),we(Be.qualifier)),Be.typeArguments&&(Oe.push({text:"<"}),Fe(Be.typeArguments,", "),Oe.push({text:">"}));break;case 171:B.assertNode(Be,ep),(Ge=Be.modifiers)!=null&&Ge.length&&(Fe(Be.modifiers," "),Oe.push({text:" "})),we(Be.name),Be.questionToken&&Oe.push({text:"?"}),Be.type&&(Oe.push({text:": "}),we(Be.type));break;case 181:B.assertNode(Be,sT),Oe.push({text:"["}),Fe(Be.parameters,", "),Oe.push({text:"]"}),Be.type&&(Oe.push({text:": "}),we(Be.type));break;case 173:B.assertNode(Be,Z0),(Ke=Be.modifiers)!=null&&Ke.length&&(Fe(Be.modifiers," "),Oe.push({text:" "})),we(Be.name),Be.questionToken&&Oe.push({text:"?"}),Ae(Be),Be.type&&(Oe.push({text:": "}),we(Be.type));break;case 179:B.assertNode(Be,xN),Ae(Be),Be.type&&(Oe.push({text:": "}),we(Be.type));break;case 207:B.assertNode(Be,fS),Oe.push({text:"["}),Fe(Be.elements,", "),Oe.push({text:"]"});break;case 206:B.assertNode(Be,Om),Oe.push({text:"{"}),Be.elements.length&&(Oe.push({text:" "}),Fe(Be.elements,", "),Oe.push({text:" "})),Oe.push({text:"}"});break;case 208:B.assertNode(Be,Wa),we(Be.name);break;case 224:B.assertNode(Be,mk),Oe.push({text:ua(Be.operator)}),we(Be.operand);break;case 203:B.assertNode(Be,aye),we(Be.head),Be.templateSpans.forEach(we);break;case 16:B.assertNode(Be,vN),Oe.push({text:Tt(Be)});break;case 204:B.assertNode(Be,Bee),we(Be.type),we(Be.literal);break;case 17:B.assertNode(Be,Oee),Oe.push({text:Tt(Be)});break;case 18:B.assertNode(Be,pH),Oe.push({text:Tt(Be)});break;case 197:B.assertNode(Be,v4),Oe.push({text:"this"});break;default:B.failBadSyntaxKind(Be)}}function Ae(Be){Be.typeParameters&&(Oe.push({text:"<"}),Fe(Be.typeParameters,", "),Oe.push({text:">"})),Oe.push({text:"("}),Fe(Be.parameters,", "),Oe.push({text:")"})}function Fe(Be,Ge){Be.forEach((Ke,Ue)=>{Ue>0&&Oe.push({text:Ge}),we(Ke)})}function Tt(Be){switch(Be.kind){case 11:return g===0?`'${Yy(Be.text,39)}'`:`"${Yy(Be.text,34)}"`;case 16:case 17:case 18:{let Ge=Be.rawText??IZ(Yy(Be.text,96));switch(Be.kind){case 16:return"`"+Ge+"${";case 17:return"}"+Ge+"${";case 18:return"}"+Ge+"`"}}}return Be.text}}function Re(De){return De==="undefined"}function ie(De){if((lk(De)||Ur(De)&&UP(De))&&De.initializer){let Oe=fc(De.initializer);return!(_e(Oe)||uT(Oe)||ba(Oe)||ZC(Oe))}return!0}function ke(De,Oe){let we=Oe.getSourceFile();return{text:De,span:B_(Oe,we),file:we.fileName}}}var Ok={};_(Ok,{getDocCommentTemplateAtPosition:()=>BMt,getJSDocParameterNameCompletionDetails:()=>RMt,getJSDocParameterNameCompletions:()=>MMt,getJSDocTagCompletionDetails:()=>cGe,getJSDocTagCompletions:()=>FMt,getJSDocTagNameCompletionDetails:()=>OMt,getJSDocTagNameCompletions:()=>LMt,getJsDocCommentsFromDeclarations:()=>DMt,getJsDocTagsFromDeclarations:()=>AMt});var iGe=["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","import","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"],nGe,rGe;function DMt(e,t){let r=[];return wre(e,a=>{for(let u of NMt(a)){let f=t0(u)&&u.tags&&St(u.tags,y=>y.kind===327&&(y.tagName.escapedText==="inheritDoc"||y.tagName.escapedText==="inheritdoc"));if(u.comment===void 0&&!f||t0(u)&&a.kind!==346&&a.kind!==338&&u.tags&&u.tags.some(y=>y.kind===346||y.kind===338)&&!u.tags.some(y=>y.kind===341||y.kind===342))continue;let p=u.comment?l6(u.comment,t):[];f&&f.comment&&(p=p.concat(l6(f.comment,t))),sn(r,p,IMt)||r.push(p)}}),tc(Ct(r,[Z4()]))}function IMt(e,t){return Lr(e,t,(r,a)=>r.kind===a.kind&&r.text===a.text)}function NMt(e){switch(e.kind){case 341:case 348:return[e];case 338:case 346:return[e,e.parent];case 323:if(w4(e.parent))return[e.parent.parent];default:return pZ(e)}}function AMt(e,t){let r=[];return wre(e,a=>{let u=YC(a);if(!(u.some(f=>f.kind===346||f.kind===338)&&!u.some(f=>f.kind===341||f.kind===342)))for(let f of u)r.push({name:f.tagName.text,text:aGe(f,t)}),r.push(...oGe(sGe(f),t))}),r}function oGe(e,t){return vo(e,r=>Fo([{name:r.tagName.text,text:aGe(r,t)}],oGe(sGe(r),t)))}function sGe(e){return P3(e)&&e.isNameFirst&&e.typeExpression&&CE(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function l6(e,t){return typeof e=="string"?[Bm(e)]:vo(e,r=>r.kind===321?[Bm(r.text)]:$Se(r,t))}function aGe(e,t){let{comment:r,kind:a}=e,u=PMt(a);switch(a){case 349:let y=e.typeExpression;return y?f(y):r===void 0?void 0:l6(r,t);case 329:return f(e.class);case 328:return f(e.class);case 345:let g=e,x=[];if(g.constraint&&x.push(Bm(g.constraint.getText())),K(g.typeParameters)){K(x)&&x.push(tu());let T=g.typeParameters[g.typeParameters.length-1];re(g.typeParameters,A=>{x.push(u(A.getText())),T!==A&&x.push(Yf(28),tu())})}return r&&x.push(tu(),...l6(r,t)),x;case 344:case 350:return f(e.typeExpression);case 346:case 338:case 348:case 341:case 347:let{name:k}=e;return k?f(k):r===void 0?void 0:l6(r,t);default:return r===void 0?void 0:l6(r,t)}function f(y){return p(y.getText())}function p(y){return r?y.match(/^https?$/)?[Bm(y),...l6(r,t)]:[u(y),tu(),...l6(r,t)]:[Bm(y)]}}function PMt(e){switch(e){case 341:return VSe;case 348:return HSe;case 345:return JSe;case 346:case 338:return USe;default:return Bm}}function LMt(){return nGe||(nGe=_i(iGe,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:nA.SortText.LocationPriority})))}var OMt=cGe;function FMt(){return rGe||(rGe=_i(iGe,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:nA.SortText.LocationPriority})))}function cGe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[Bm(e)],documentation:F,tags:void 0,codeActions:void 0}}function MMt(e){if(!et(e.name))return F;let t=e.name.text,r=e.parent,a=r.parent;return vs(a)?ro(a.parameters,u=>{if(!et(u.name))return;let f=u.name.text;if(!(r.tags.some(p=>p!==e&&ph(p)&&et(p.name)&&p.name.escapedText===f)||t!==void 0&&!Ro(f,t)))return{name:f,kind:"parameter",kindModifiers:"",sortText:nA.SortText.LocationPriority}}):[]}function RMt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[Bm(e)],documentation:F,tags:void 0,codeActions:void 0}}function BMt(e,t,r,a){let u=go(t,r),f=Ri(u,t0);if(f&&(f.comment!==void 0||K(f.tags)))return;let p=u.getStart(t);if(!f&&p0;if(W&&!G){let $=z+e+P+" * ",te=p===r?e+P:"";return{newText:$+e+W+P+q+te,caretOffset:$.length}}return{newText:z+q,caretOffset:3}}function jMt(e,t){let{text:r}=e,a=Yh(t,e),u=a;for(;u<=t&&j0(r.charCodeAt(u));u++);return r.slice(a,u)}function WMt(e,t,r,a){return e.map(({name:u,dotDotDotToken:f},p)=>{let y=u.kind===80?u.text:"param"+p;return`${r} * @param ${t?f?"{...any} ":"{any} ":""}${y}${a}`}).join("")}function zMt(e,t){return`${e} * @returns${t}`}function VMt(e,t){return phe(e,r=>lTe(r,t))}function lTe(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:let r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:Iq(r,t)};case 303:return lTe(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{let u=e;return u.type&&Qy(u.type)?{commentOwner:e,parameters:u.type.parameters,hasReturn:Iq(u.type,t)}:{commentOwner:e}}case 243:{let f=e.declarationList.declarations,p=f.length===1&&f[0].initializer?HMt(f[0].initializer):void 0;return p?{commentOwner:e,parameters:p.parameters,hasReturn:Iq(p,t)}:{commentOwner:e}}case 307:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return lTe(e.expression,t);case 226:{let u=e;return Su(u)===0?"quit":vs(u.right)?{commentOwner:e,parameters:u.right.parameters,hasReturn:Iq(u.right,t)}:{commentOwner:e}}case 172:let a=e.initializer;if(a&&(Yc(a)||rl(a)))return{commentOwner:e,parameters:a.parameters,hasReturn:Iq(a,t)}}}function Iq(e,t){return!!t?.generateReturnInDocTemplate&&(Qy(e)||rl(e)&&Mt(e.body)||Oc(e)&&e.body&&Ds(e.body)&&!!tS(e.body,r=>r))}function HMt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return St(e.members,Ol)}}var kse={};_(kse,{mapCode:()=>UMt});function UMt(e,t,r,a,u,f){return Vn.ChangeTracker.with({host:a,formatContext:u,preferences:f},p=>{let y=t.map(x=>JMt(e,x)),g=r&&tc(r);for(let x of y)qMt(e,p,x,g)})}function JMt(e,t){let r=[{parse:()=>ON("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:f=>f.statements},{parse:()=>ON("__mapcode_class_content_nodes.ts",`class __class { +${t} +}`,e.languageVersion,!0,e.scriptKind),body:f=>f.statements[0].members}],a=[];for(let{parse:f,body:p}of r){let y=f(),g=p(y);if(g.length&&y.parseDiagnostics.length===0)return g;g.length&&a.push({sourceFile:y,body:g})}a.sort((f,p)=>f.sourceFile.parseDiagnostics.length-p.sourceFile.parseDiagnostics.length);let{body:u}=a[0];return u}function qMt(e,t,r,a){Cd(r[0])||Ww(r[0])?$Mt(e,t,r,a):GMt(e,t,r,a)}function $Mt(e,t,r,a){let u;if(!a||!a.length?u=St(e.statements,Im(jr,vf)):u=re(a,p=>Ri(go(e,p.start),Im(jr,vf))),!u)return;let f=u.members.find(p=>r.some(y=>Nq(y,p)));if(f){let p=Mi(u.members,y=>r.some(g=>Nq(g,y)));re(r,wse),t.replaceNodeRangeWithNodes(e,f,p,r);return}re(r,wse),t.insertNodesAfter(e,u.members[u.members.length-1],r)}function GMt(e,t,r,a){if(!a?.length){t.insertNodesAtEndOfFile(e,r,!1);return}for(let f of a){let p=Ri(go(e,f.start),y=>Im(Ds,mo)(y)&&Lt(y.statements,g=>r.some(x=>Nq(x,g))));if(p){let y=p.statements.find(g=>r.some(x=>Nq(x,g)));if(y){let g=Mi(p.statements,x=>r.some(k=>Nq(k,x)));re(r,wse),t.replaceNodeRangeWithNodes(e,y,g,r);return}}}let u=e.statements;for(let f of a){let p=Ri(go(e,f.start),Ds);if(p){u=p.statements;break}}re(r,wse),t.insertNodesAfter(e,u[u.length-1],r)}function Nq(e,t){var r,a,u,f,p,y;return e.kind!==t.kind?!1:e.kind===176?e.kind===t.kind:pf(e)&&pf(t)?e.name.getText()===t.name.getText():hk(e)&&hk(t)||Hee(e)&&Hee(t)?e.expression.getText()===t.expression.getText():gk(e)&&gk(t)?((r=e.initializer)==null?void 0:r.getText())===((a=t.initializer)==null?void 0:a.getText())&&((u=e.incrementor)==null?void 0:u.getText())===((f=t.incrementor)==null?void 0:f.getText())&&((p=e.condition)==null?void 0:p.getText())===((y=t.condition)==null?void 0:y.getText()):tE(e)&&tE(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():Px(e)&&Px(t)?e.label.getText()===t.label.getText():e.getText()===t.getText()}function wse(e){lGe(e),e.parent=void 0}function lGe(e){e.pos=-1,e.end=-1,e.forEachChild(lGe)}var Fk={};_(Fk,{compareImportsOrRequireStatements:()=>gTe,compareModuleSpecifiers:()=>_Rt,getImportDeclarationInsertionIndex:()=>lRt,getImportSpecifierInsertionIndex:()=>uRt,getNamedImportSpecifierComparerWithDetection:()=>cRt,getOrganizeImportsStringComparerWithDetection:()=>aRt,organizeImports:()=>KMt,testCoalesceExports:()=>fRt,testCoalesceImports:()=>dRt});function KMt(e,t,r,a,u,f){let p=Vn.ChangeTracker.fromContext({host:r,formatContext:t,preferences:u}),y=f==="SortAndCombine"||f==="All",g=y,x=f==="RemoveUnused"||f==="All",k=e.statements.filter(ql),T=dTe(e,k),{comparersToTest:A,typeOrdersToTest:P}=uTe(u),R=A[0],W={moduleSpecifierComparer:typeof u.organizeImportsIgnoreCase=="boolean"?R:void 0,namedImportComparer:typeof u.organizeImportsIgnoreCase=="boolean"?R:void 0,typeOrder:u.organizeImportsTypeOrder};if(typeof u.organizeImportsIgnoreCase!="boolean"&&({comparer:W.moduleSpecifierComparer}=fGe(T,A)),!W.typeOrder||typeof u.organizeImportsIgnoreCase!="boolean"){let $=mTe(k,A,P);if($){let{namedImportComparer:te,typeOrder:ne}=$;W.namedImportComparer=W.namedImportComparer??te,W.typeOrder=W.typeOrder??ne}}T.forEach($=>q($,W)),f!=="RemoveUnused"&&YMt(e).forEach($=>G($,W.namedImportComparer));for(let $ of e.statements.filter(d_)){if(!$.body)continue;if(dTe(e,$.body.statements.filter(ql)).forEach(ne=>q(ne,W)),f!=="RemoveUnused"){let ne=$.body.statements.filter(Nu);G(ne,W.namedImportComparer)}}return p.getChanges();function z($,te){if(K($)===0)return;Hn($[0],1024);let ne=g?Xl($,ae=>Aq(ae.moduleSpecifier)):[$],_e=y?lc(ne,(ae,Ce)=>_Te(ae[0].moduleSpecifier,Ce[0].moduleSpecifier,W.moduleSpecifierComparer??R)):ne,ce=vo(_e,ae=>Aq(ae[0].moduleSpecifier)||ae[0].moduleSpecifier===void 0?te(ae):ae);if(ce.length===0)p.deleteNodes(e,$,{leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.Include},!0);else{let ae={leadingTriviaOption:Vn.LeadingTriviaOption.Exclude,trailingTriviaOption:Vn.TrailingTriviaOption.Include,suffix:cb(r,t.options)};p.replaceNodeWithNodes(e,$[0],ce,ae);let Ce=p.nodeHasTrailingComment(e,$[0],ae);p.deleteNodes(e,$.slice(1),{trailingTriviaOption:Vn.TrailingTriviaOption.Include},Ce)}}function q($,te){let ne=te.moduleSpecifierComparer??R,_e=te.namedImportComparer??R,ce=te.typeOrder??"last",ae=D9({organizeImportsTypeOrder:ce},_e);z($,he=>(x&&(he=QMt(he,e,a)),g&&(he=uGe(he,ne,ae,e)),y&&(he=lc(he,(ue,Ee)=>gTe(ue,Ee,ne))),he))}function G($,te){let ne=D9(u,te);z($,_e=>dGe(_e,ne))}}function uTe(e){return{comparersToTest:typeof e.organizeImportsIgnoreCase=="boolean"?[hTe(e,e.organizeImportsIgnoreCase)]:[hTe(e,!0),hTe(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function dTe(e,t){let r=Rv(e.languageVersion,!1,e.languageVariant),a=[],u=0;for(let f of t)a[u]&&XMt(e,f,r)&&u++,a[u]||(a[u]=[]),a[u].push(f);return a}function XMt(e,t,r){let a=t.getFullStart(),u=t.getStart();r.setText(e.text,a,u-a);let f=0;for(;r.getTokenStart()=2))return!0;return!1}function YMt(e){let t=[],r=e.statements,a=K(r),u=0,f=0;for(;udTe(e,p))}function QMt(e,t,r){let a=r.getTypeChecker(),u=r.getCompilerOptions(),f=a.getJsxNamespace(t),p=a.getJsxFragmentFactory(t),y=!!(t.transformFlags&2),g=[];for(let k of e){let{importClause:T,moduleSpecifier:A}=k;if(!T){g.push(k);continue}let{name:P,namedBindings:R}=T;if(P&&!x(P)&&(P=void 0),R)if(Xv(R))x(R.name)||(R=void 0);else{let W=R.elements.filter(z=>x(z.name));W.length{if(p.attributes){let y=p.attributes.token+" ";for(let g of lc(p.attributes.elements,(x,k)=>Ff(x.name.text,k.name.text)))y+=g.name.text+":",y+=xc(g.value)?`"${g.value.text}"`:g.value.getText()+" ";return y}return""}),f=[];for(let p in u){let y=u[p],{importWithoutClause:g,typeOnlyImports:x,regularImports:k}=ZMt(y);g&&f.push(g);for(let T of[k,x]){let A=T===x,{defaultImports:P,namespaceImports:R,namedImports:W}=T;if(!A&&P.length===1&&R.length===1&&W.length===0){let ae=P[0];f.push(E9(ae,ae.importClause.name,R[0].importClause.namedBindings));continue}let z=lc(R,(ae,Ce)=>t(ae.importClause.namedBindings.name.text,Ce.importClause.namedBindings.name.text));for(let ae of z)f.push(E9(ae,void 0,ae.importClause.namedBindings));let q=mc(P),G=mc(W),$=q??G;if(!$)continue;let te,ne=[];if(P.length===1)te=P[0].importClause.name;else for(let ae of P)ne.push(U.createImportSpecifier(!1,U.createIdentifier("default"),ae.importClause.name));ne.push(...iRt(W));let _e=U.createNodeArray(lc(ne,r),G?.importClause.namedBindings.elements.hasTrailingComma),ce=_e.length===0?te?void 0:U.createNamedImports(F):G?U.updateNamedImports(G.importClause.namedBindings,_e):U.createNamedImports(_e);a&&ce&&G?.importClause.namedBindings&&!fE(G.importClause.namedBindings,a)&&Hn(ce,2),A&&te&&ce?(f.push(E9($,te,void 0)),f.push(E9(G??$,void 0,ce))):f.push(E9($,te,ce))}}return f}function dGe(e,t){if(e.length===0)return e;let{exportWithoutClause:r,namedExports:a,typeOnlyExports:u}=p(e),f=[];r&&f.push(r);for(let y of[a,u]){if(y.length===0)continue;let g=[];g.push(...vo(y,T=>T.exportClause&&_h(T.exportClause)?T.exportClause.elements:F));let x=lc(g,t),k=y[0];f.push(U.updateExportDeclaration(k,k.modifiers,k.isTypeOnly,k.exportClause&&(_h(k.exportClause)?U.updateNamedExports(k.exportClause,x):U.updateNamespaceExport(k.exportClause,k.exportClause.name)),k.moduleSpecifier,k.attributes))}return f;function p(y){let g,x=[],k=[];for(let T of y)T.exportClause===void 0?g=g||T:T.isTypeOnly?k.push(T):x.push(T);return{exportWithoutClause:g,namedExports:x,typeOnlyExports:k}}}function E9(e,t,r){return U.updateImportDeclaration(e,e.modifiers,U.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function fTe(e,t,r,a){switch(a?.organizeImportsTypeOrder){case"first":return JC(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return JC(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function _Te(e,t,r){let a=e===void 0?void 0:Aq(e),u=t===void 0?void 0:Aq(t);return JC(a===void 0,u===void 0)||JC(Od(a),Od(u))||r(a,u)}function eRt(e){return e.map(t=>Aq(pTe(t))||"")}function pTe(e){var t;switch(e.kind){case 271:return(t=kr(e.moduleReference,rb))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function tRt(e,t){let r=Da(t)&&t.text;return fs(r)&&Lt(e.moduleAugmentations,a=>Da(a)&&a.text===r)}function iRt(e){return vo(e,t=>_i(nRt(t),r=>r.name&&r.propertyName&&Hw(r.name)===Hw(r.propertyName)?U.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function nRt(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&iy(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function fGe(e,t){let r=[];return e.forEach(a=>{r.push(eRt(a))}),pGe(r,t)}function mTe(e,t,r){let a=!1,u=e.filter(g=>{var x,k;let T=(k=kr((x=g.importClause)==null?void 0:x.namedBindings,iy))==null?void 0:k.elements;return T?.length?(!a&&T.some(A=>A.isTypeOnly)&&T.some(A=>!A.isTypeOnly)&&(a=!0),!0):!1});if(u.length===0)return;let f=u.map(g=>{var x,k;return(k=kr((x=g.importClause)==null?void 0:x.namedBindings,iy))==null?void 0:k.elements}).filter(g=>g!==void 0);if(!a||r.length===0){let g=pGe(f.map(x=>x.map(k=>k.name.text)),t);return{namedImportComparer:g.comparer,typeOrder:r.length===1?r[0]:void 0,isSorted:g.isSorted}}let p={first:1/0,last:1/0,inline:1/0},y={first:t[0],last:t[0],inline:t[0]};for(let g of t){let x={first:0,last:0,inline:0};for(let k of f)for(let T of r)x[T]=(x[T]??0)+_Ge(k,(A,P)=>fTe(A,P,g,{organizeImportsTypeOrder:T}));for(let k of r){let T=k;x[T]0&&r++;return r}function pGe(e,t){let r,a=1/0;for(let u of t){let f=0;for(let p of e){if(p.length<=1)continue;let y=_Ge(p,u);f+=y}ffTe(a,u,r,e)}function cRt(e,t,r){let{comparersToTest:a,typeOrdersToTest:u}=uTe(t),f=mTe([e],a,u),p=D9(t,a[0]),y;if(typeof t.organizeImportsIgnoreCase!="boolean"||!t.organizeImportsTypeOrder){if(f){let{namedImportComparer:g,typeOrder:x,isSorted:k}=f;y=k,p=D9({organizeImportsTypeOrder:x},g)}else if(r){let g=mTe(r.statements.filter(ql),a,u);if(g){let{namedImportComparer:x,typeOrder:k,isSorted:T}=g;y=T,p=D9({organizeImportsTypeOrder:k},x)}}}return{specifierComparer:p,isSorted:y}}function lRt(e,t,r){let a=H1(e,t,Gc,(u,f)=>gTe(u,f,r));return a<0?~a:a}function uRt(e,t,r){let a=H1(e,t,Gc,r);return a<0?~a:a}function gTe(e,t,r){return _Te(pTe(e),pTe(t),r)||rRt(e,t)}function dRt(e,t,r,a){let u=Pq(t),f=D9({organizeImportsTypeOrder:a?.organizeImportsTypeOrder},u);return uGe(e,u,f,r)}function fRt(e,t,r){return dGe(e,(u,f)=>fTe(u,f,Pq(t),{organizeImportsTypeOrder:r?.organizeImportsTypeOrder??"last"}))}function _Rt(e,t,r){let a=Pq(!!r);return _Te(e,t,a)}var Tse={};_(Tse,{collectElements:()=>pRt});function pRt(e,t){let r=[];return mRt(e,t,r),hRt(e,r),r.sort((a,u)=>a.textSpan.start-u.textSpan.start),r}function mRt(e,t,r){let a=40,u=0,f=[...e.statements,e.endOfFileToken],p=f.length;for(;u1&&a.push(Lq(f,p,"comment"))}}function gGe(e,t,r,a){yN(e)||yTe(e.pos,t,r,a)}function Lq(e,t,r){return oA(bu(e,t),r)}function yRt(e,t){switch(e.kind){case 241:if(vs(e.parent))return vRt(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return k(e.parent);case 258:let P=e.parent;if(P.tryBlock===e)return k(e.parent);if(P.finallyBlock===e){let R=Tc(P,98,t);if(R)return k(R)}default:return oA(B_(e,t),"code")}case 268:return k(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return k(e);case 189:return k(e,!1,!kN(e.parent),23);case 296:case 297:return T(e.statements);case 210:return x(e);case 209:return x(e,23);case 284:return f(e);case 288:return p(e);case 285:case 286:return y(e.attributes);case 228:case 15:return g(e);case 207:return k(e,!1,!Wa(e.parent),23);case 219:return u(e);case 213:return a(e);case 217:return A(e);case 275:case 279:case 300:return r(e)}function r(P){if(!P.elements.length)return;let R=Tc(P,19,t),W=Tc(P,20,t);if(!(!R||!W||ch(R.pos,W.pos,t)))return Ese(R,W,P,t,!1,!1)}function a(P){if(!P.arguments.length)return;let R=Tc(P,21,t),W=Tc(P,22,t);if(!(!R||!W||ch(R.pos,W.pos,t)))return Ese(R,W,P,t,!1,!0)}function u(P){if(Ds(P.body)||O_(P.body)||ch(P.body.getFullStart(),P.body.getEnd(),t))return;let R=bu(P.body.getFullStart(),P.body.getEnd());return oA(R,"code",B_(P))}function f(P){let R=bu(P.openingElement.getStart(t),P.closingElement.getEnd()),W=P.openingElement.tagName.getText(t),z="<"+W+">...";return oA(R,"code",R,!1,z)}function p(P){let R=bu(P.openingFragment.getStart(t),P.closingFragment.getEnd());return oA(R,"code",R,!1,"<>...")}function y(P){if(P.properties.length!==0)return Lq(P.getStart(t),P.getEnd(),"code")}function g(P){if(!(P.kind===15&&P.text.length===0))return Lq(P.getStart(t),P.getEnd(),"code")}function x(P,R=19){return k(P,!1,!yf(P.parent)&&!Gs(P.parent),R)}function k(P,R=!1,W=!0,z=19,q=z===19?20:24){let G=Tc(e,z,t),$=Tc(e,q,t);return G&&$&&Ese(G,$,P,t,R,W)}function T(P){return P.length?oA(yS(P),"code"):void 0}function A(P){if(ch(P.getStart(),P.getEnd(),t))return;let R=bu(P.getStart(),P.getEnd());return oA(R,"code",B_(P))}}function vRt(e,t,r){let a=bRt(e,t,r),u=Tc(t,20,r);return a&&u&&Ese(a,u,e,r,e.kind!==219)}function Ese(e,t,r,a,u=!1,f=!0){let p=bu(f?e.getFullStart():e.getStart(a),t.getEnd());return oA(p,"code",B_(r,a),u)}function oA(e,t,r=e,a=!1,u="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:u,autoCollapse:a}}function bRt(e,t,r){if(zge(e.parameters,r)){let a=Tc(e,21,r);if(a)return a}return Tc(t,19,r)}var Oq={};_(Oq,{getRenameInfo:()=>SRt,nodeIsEligibleForRename:()=>vGe});function SRt(e,t,r,a){let u=vJ(ip(t,r));if(vGe(u)){let f=xRt(u,e.getTypeChecker(),t,e,a);if(f)return f}return Dse(S.You_cannot_rename_this_element)}function xRt(e,t,r,a,u){let f=t.getSymbolAtLocation(e);if(!f){if(xc(e)){let A=yJ(e,t);if(A&&(A.flags&128||A.flags&1048576&&Et(A.types,P=>!!(P.flags&128))))return vTe(e.text,e.text,"string","",e,r)}else if(Kne(e)){let A=Jl(e);return vTe(A,A,"label","",e,r)}return}let{declarations:p}=f;if(!p||p.length===0)return;if(p.some(A=>CRt(a,A)))return Dse(S.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(et(e)&&e.escapedText==="default"&&f.parent&&f.parent.flags&1536)return;if(xc(e)&&KM(e))return u.allowRenameOfImportPath?wRt(e,r,f):void 0;let y=kRt(r,f,t,u);if(y)return Dse(y);let g=SS.getSymbolKind(t,f,e),x=GSe(e)||Am(e)&&e.parent.kind===167?sh(Hh(e)):void 0,k=x||t.symbolToString(f),T=x||t.getFullyQualifiedName(f);return vTe(k,T,g,SS.getSymbolModifiers(t,f),e,r)}function CRt(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Tl(r.fileName,".d.ts")}function kRt(e,t,r,a){if(!a.providePrefixAndSuffixTextForRename&&t.flags&2097152){let p=t.declarations&&St(t.declarations,y=>F_(y));p&&!p.propertyName&&(t=r.getAliasedSymbol(t))}let{declarations:u}=t;if(!u)return;let f=yGe(e.path);if(f===void 0)return Lt(u,p=>i9(p.getSourceFile().path))?S.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let p of u){let y=yGe(p.getSourceFile().path);if(y){let g=Math.min(f.length,y.length);for(let x=0;x<=g;x++)if(Ff(f[x],y[x])!==0)return S.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function yGe(e){let t=zd(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function wRt(e,t,r){if(!Od(e.text))return Dse(S.You_cannot_rename_a_module_via_a_global_import);let a=r.declarations&&St(r.declarations,mo);if(!a)return;let u=Wl(e.text,"/index")||Wl(e.text,"/index.js")?void 0:z_e(A_(a.fileName),"/index"),f=u===void 0?a.fileName:u,p=u===void 0?"module":"directory",y=e.text.lastIndexOf("/")+1,g=_f(e.getStart(t)+1+y,e.text.length-y);return{canRename:!0,fileToRename:f,kind:p,displayName:f,fullDisplayName:e.text,kindModifiers:"",triggerSpan:g}}function vTe(e,t,r,a,u,f){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:a,triggerSpan:TRt(u,f)}}function Dse(e){return{canRename:!1,localizedErrorMessage:gs(e)}}function TRt(e,t){let r=e.getStart(t),a=e.getWidth(t);return xc(e)&&(r+=1,a-=2),_f(r,a)}function vGe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return pJ(e);default:return!1}}var I9={};_(I9,{getArgumentInfoForCompletions:()=>ARt,getSignatureHelpItems:()=>ERt});function ERt(e,t,r,a,u){let f=e.getTypeChecker(),p=V5(t,r);if(!p)return;let y=!!a&&a.kind==="characterTyped";if(y&&(JN(t,r,p)||hS(t,r)))return;let g=!!a&&a.kind==="invoked",x=URt(p,r,t,f,g);if(!x)return;u.throwIfCancellationRequested();let k=DRt(x,f,t,p,y);return u.throwIfCancellationRequested(),k?f.runWithCancellationToken(u,T=>k.kind===0?EGe(k.candidates,k.resolvedSignature,x,t,T):qRt(k.symbol,x,t,T)):N_(t)?NRt(x,e,u):void 0}function DRt({invocation:e,argumentCount:t},r,a,u,f){switch(e.kind){case 0:{if(f&&!IRt(u,e.node,a))return;let p=[],y=r.getResolvedSignatureForSignatureHelp(e.node,p,t);return p.length===0?void 0:{kind:0,candidates:p,resolvedSignature:y}}case 1:{let{called:p}=e;if(f&&!bGe(u,a,et(p)?p.parent:p))return;let y=sre(p,t,r);if(y.length!==0)return{kind:0,candidates:y,resolvedSignature:Ta(y)};let g=r.getSymbolAtLocation(p);return g&&{kind:1,symbol:g}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return B.assertNever(e)}}function IRt(e,t,r){if(!W0(t))return!1;let a=t.getChildren(r);switch(e.kind){case 21:return sn(a,e);case 28:{let u=gJ(e);return!!u&&sn(a,u)}case 30:return bGe(e,r,t.expression);default:return!1}}function NRt(e,t,r){if(e.invocation.kind===2)return;let a=wGe(e.invocation),u=lr(a)?a.name.text:void 0,f=t.getTypeChecker();return u===void 0?void 0:Le(t.getSourceFiles(),p=>Le(p.getNamedDeclarations().get(u),y=>{let g=y.symbol&&f.getTypeOfSymbolAtLocation(y.symbol,y),x=g&&g.getCallSignatures();if(x&&x.length)return f.runWithCancellationToken(r,k=>EGe(x,x[0],e,p,k,!0))}))}function bGe(e,t,r){let a=e.getFullStart(),u=e.parent;for(;u;){let f=fd(a,t,u,!0);if(f)return Xp(r,f);u=u.parent}return B.fail("Could not find preceding token")}function ARt(e,t,r,a){let u=xGe(e,t,r,a);return!u||u.isTypeParameterList||u.invocation.kind!==0?void 0:{invocation:u.invocation.node,argumentCount:u.argumentCount,argumentIndex:u.argumentIndex}}function SGe(e,t,r,a){let u=PRt(e,r,a);if(!u)return;let{list:f,argumentIndex:p}=u,y=WRt(a,f),g=VRt(f,r);return{list:f,argumentIndex:p,argumentCount:y,argumentsSpan:g}}function PRt(e,t,r){if(e.kind===30||e.kind===21)return{list:JRt(e.parent,e,t),argumentIndex:0};{let a=gJ(e);return a&&{list:a,argumentIndex:jRt(r,a,e)}}}function xGe(e,t,r,a){let{parent:u}=e;if(W0(u)){let f=u,p=SGe(e,t,r,a);if(!p)return;let{list:y,argumentIndex:g,argumentCount:x,argumentsSpan:k}=p;return{isTypeParameterList:!!u.typeArguments&&u.typeArguments.pos===y.pos,invocation:{kind:0,node:f},argumentsSpan:k,argumentIndex:g,argumentCount:x}}else{if(mE(e)&&pk(u))return U5(e,t,r)?STe(u,0,r):void 0;if(vN(e)&&u.parent.kind===215){let f=u,p=f.parent;B.assert(f.kind===228);let y=U5(e,t,r)?0:1;return STe(p,y,r)}else if(S4(u)&&pk(u.parent.parent)){let f=u,p=u.parent.parent;if(pH(e)&&!U5(e,t,r))return;let y=f.parent.templateSpans.indexOf(f),g=zRt(y,e,t,r);return STe(p,g,r)}else if(Mf(u)){let f=u.attributes.pos,p=Ea(r.text,u.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:u},argumentsSpan:_f(f,p-f),argumentIndex:0,argumentCount:1}}else{let f=are(e,r);if(f){let{called:p,nTypeArguments:y}=f,g={kind:1,called:p},x=bu(p.getStart(r),e.end);return{isTypeParameterList:!0,invocation:g,argumentsSpan:x,argumentIndex:y,argumentCount:y+1}}return}}}function LRt(e,t,r,a){return ORt(e,t,r,a)||xGe(e,t,r,a)}function CGe(e){return Yn(e.parent)?CGe(e.parent):e}function bTe(e){return Yn(e.left)?bTe(e.left)+1:2}function ORt(e,t,r,a){let u=FRt(e);if(u===void 0)return;let f=MRt(u,r,t,a);if(f===void 0)return;let{contextualType:p,argumentIndex:y,argumentCount:g,argumentsSpan:x}=f,k=p.getNonNullableType(),T=k.symbol;if(T===void 0)return;let A=Lc(k.getCallSignatures());return A===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:A,node:e,symbol:RRt(T)},argumentsSpan:x,argumentIndex:y,argumentCount:g}}function FRt(e){switch(e.kind){case 21:case 28:return e;default:return Ri(e.parent,t=>To(t)?!0:Wa(t)||Om(t)||fS(t)?!1:"quit")}}function MRt(e,t,r,a){let{parent:u}=e;switch(u.kind){case 217:case 174:case 218:case 219:let f=SGe(e,r,t,a);if(!f)return;let{argumentIndex:p,argumentCount:y,argumentsSpan:g}=f,x=pu(u)?a.getContextualTypeForObjectLiteralElement(u):a.getContextualType(u);return x&&{contextualType:x,argumentIndex:p,argumentCount:y,argumentsSpan:g};case 226:{let k=CGe(u),T=a.getContextualType(k),A=e.kind===21?0:bTe(u)-1,P=bTe(k);return T&&{contextualType:T,argumentIndex:A,argumentCount:P,argumentsSpan:B_(u)}}default:return}}function RRt(e){return e.name==="__type"&&Le(e.declarations,t=>{var r;return Qy(t)?(r=kr(t.parent,$g))==null?void 0:r.symbol:void 0})||e}function BRt(e,t){let r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){let{elementFlags:a,fixedLength:u}=r.target;if(u===0)return 0;let f=zi(a,p=>!(p&1));return f<0?u:f}return 0}function jRt(e,t,r){return kGe(e,t,r)}function WRt(e,t){return kGe(e,t,void 0)}function kGe(e,t,r){let a=t.getChildren(),u=0,f=!1;for(let p of a){if(r&&p===r)return!f&&p.kind===28&&u++,u;if(fh(p)){u+=BRt(p,e),f=!0;continue}if(p.kind!==28){u++,f=!0;continue}if(f){f=!1;continue}u++}return r?u:a.length&&pa(a).kind===28?u+1:u}function zRt(e,t,r,a){return B.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),$me(t)?U5(t,r,a)?0:e+2:e+1}function STe(e,t,r){let a=mE(e.template)?1:e.template.templateSpans.length+1;return t!==0&&B.assertLessThan(t,a),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:HRt(e,r),argumentIndex:t,argumentCount:a}}function VRt(e,t){let r=e.getFullStart(),a=Ea(t.text,e.getEnd(),!1);return _f(r,a-r)}function HRt(e,t){let r=e.template,a=r.getStart(),u=r.getEnd();return r.kind===228&&pa(r.templateSpans).literal.getFullWidth()===0&&(u=Ea(t.text,u,!1)),_f(a,u-a)}function URt(e,t,r,a,u){for(let f=e;!mo(f)&&(u||!Ds(f));f=f.parent){B.assert(Xp(f.parent,f),"Not a subspan",()=>`Child: ${B.formatSyntaxKind(f.kind)}, parent: ${B.formatSyntaxKind(f.parent.kind)}`);let p=LRt(f,t,r,a);if(p)return p}}function JRt(e,t,r){let a=e.getChildren(r),u=a.indexOf(t);return B.assert(u>=0&&a.length>u+1),a[u+1]}function wGe(e){return e.kind===0?Gz(e.node):e.called}function TGe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var Fq=70246400;function EGe(e,t,{isTypeParameterList:r,argumentCount:a,argumentsSpan:u,invocation:f,argumentIndex:p},y,g,x){var k;let T=TGe(f),A=f.kind===2?f.symbol:g.getSymbolAtLocation(wGe(f))||x&&((k=t.declaration)==null?void 0:k.symbol),P=A?E8(g,A,x?y:void 0,void 0):F,R=_i(e,$=>GRt($,P,r,g,T,y)),W=0,z=0;for(let $=0;$1)){let ne=0;for(let _e of te){if(_e.isVariadic||_e.parameters.length>=a){W=z+ne;break}ne++}}z+=te.length}B.assert(W!==-1);let q={items:kl(R,Gc),applicableSpan:u,selectedItemIndex:W,argumentIndex:p,argumentCount:a},G=q.items[W];if(G.isVariadic){let $=zi(G.parameters,te=>!!te.isRest);-1<$&&$IGe(T,r,a,u,p)),g=e.getDocumentationComment(r),x=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...f,Yf(30)],suffixDisplayParts:[Yf(32)],separatorDisplayParts:DGe,parameters:y,documentation:g,tags:x}}var DGe=[Yf(28),tu()];function GRt(e,t,r,a,u,f){let p=(r?XRt:YRt)(e,a,u,f);return _i(p,({isVariadic:y,parameters:g,prefix:x,suffix:k})=>{let T=[...t,...x],A=[...k,...KRt(e,u,a)],P=e.getDocumentationComment(a),R=e.getJsDocTags();return{isVariadic:y,prefixDisplayParts:T,suffixDisplayParts:A,separatorDisplayParts:DGe,parameters:g,documentation:P,tags:R}})}function KRt(e,t,r){return Dk(a=>{a.writePunctuation(":"),a.writeSpace(" ");let u=r.getTypePredicateOfSignature(e);u?r.writeTypePredicate(u,t,void 0,a):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,a)})}function XRt(e,t,r,a){let u=(e.target||e).typeParameters,f=bT(),p=(u||F).map(g=>IGe(g,t,r,a,f)),y=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,Fq)]:[];return t.getExpandedParameters(e).map(g=>{let x=U.createNodeArray([...y,..._i(g,T=>t.symbolToParameterDeclaration(T,r,Fq))]),k=Dk(T=>{f.writeList(2576,x,a,T)});return{isVariadic:!1,parameters:p,prefix:[Yf(30)],suffix:[Yf(32),...k]}})}function YRt(e,t,r,a){let u=bT(),f=Dk(g=>{if(e.typeParameters&&e.typeParameters.length){let x=U.createNodeArray(e.typeParameters.map(k=>t.typeParameterToDeclaration(k,r,Fq)));u.writeList(53776,x,a,g)}}),p=t.getExpandedParameters(e),y=t.hasEffectiveRestParameter(e)?p.length===1?g=>!0:g=>{var x;return!!(g.length&&((x=kr(g[g.length-1],jv))==null?void 0:x.links.checkFlags)&32768)}:g=>!1;return p.map(g=>({isVariadic:y(g),parameters:g.map(x=>QRt(x,t,r,a,u)),prefix:[...f,Yf(21)],suffix:[Yf(22)]}))}function QRt(e,t,r,a,u){let f=Dk(g=>{let x=t.symbolToParameterDeclaration(e,r,Fq);u.writeNode(4,x,a,g)}),p=t.isOptionalParameter(e.valueDeclaration),y=jv(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:f,isOptional:p,isRest:y}}function IGe(e,t,r,a,u){let f=Dk(p=>{let y=t.typeParameterToDeclaration(e,r,Fq);u.writeNode(4,y,a,p)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:f,isOptional:!1,isRest:!1}}var Ise={};_(Ise,{getSmartSelectionRange:()=>ZRt});function ZRt(e,t){var r,a;let u={textSpan:bu(t.getFullStart(),t.getEnd())},f=t;e:for(;;){let g=i5t(f);if(!g.length)break;for(let x=0;xe)break e;let P=Fh(lx(t.text,T.end));if(P&&P.kind===2&&y(P.pos,P.end),e5t(t,e,T)){if(LQ(T)&&Oc(f)&&!ch(T.getStart(t),T.getEnd(),t)&&p(T.getStart(t),T.getEnd()),Ds(T)||S4(T)||vN(T)||pH(T)||k&&vN(k)||ef(T)&&mu(f)||T4(T)&&ef(f)||Ur(T)&&T4(f)&&g.length===1||yk(T)||ob(T)||CE(T)){f=T;break}if(S4(f)&&A&&pz(A)){let q=T.getFullStart()-2,G=A.getStart()+1;p(q,G)}let R=T4(T)&&n5t(k)&&r5t(A)&&!ch(k.getStart(),A.getStart(),t),W=R?k.getEnd():T.getStart(),z=R?A.getStart():o5t(t,T);if(dm(T)&&((r=T.jsDoc)!=null&&r.length)&&p(Ta(T.jsDoc).getStart(),z),T4(T)){let q=T.getChildren()[0];q&&dm(q)&&((a=q.jsDoc)!=null&&a.length)&&q.getStart()!==T.pos&&(W=Math.min(W,Ta(q.jsDoc).getStart()))}p(W,z),(Da(T)||jI(T))&&p(W+1,z-1),f=T;break}if(x===g.length-1)break e}}return u;function p(g,x){if(g!==x){let k=bu(g,x);(!u||!Q4(k,u.textSpan)&&kme(k,e))&&(u={textSpan:k,...u&&{parent:u}})}}function y(g,x){p(g,x);let k=g;for(;t.text.charCodeAt(k)===47;)k++;p(k,x)}}function e5t(e,t,r){return B.assert(r.pos<=t),ty===e.readonlyToken||y.kind===148||y===e.questionToken||y.kind===58),p=N9(f,({kind:y})=>y===23||y===168||y===24);return[r,A9(Nse(p,({kind:y})=>y===59)),u]}if(ep(e)){let r=N9(e.getChildren(),p=>p===e.name||sn(e.modifiers,p)),a=((t=r[0])==null?void 0:t.kind)===320?r[0]:void 0,u=a?r.slice(1):r,f=Nse(u,({kind:p})=>p===59);return a?[a,A9(f)]:f}if(To(e)){let r=N9(e.getChildren(),u=>u===e.dotDotDotToken||u===e.name),a=N9(r,u=>u===r[0]||u===e.questionToken);return Nse(a,({kind:u})=>u===64)}return Wa(e)?Nse(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function N9(e,t){let r=[],a;for(let u of e)t(u)?(a=a||[],a.push(u)):(a&&(r.push(A9(a)),a=void 0),r.push(u));return a&&r.push(A9(a)),r}function Nse(e,t,r=!0){if(e.length<2)return e;let a=zi(e,t);if(a===-1)return e;let u=e.slice(0,a),f=e[a],p=pa(e),y=r&&p.kind===27,g=e.slice(a+1,y?e.length-1:void 0),x=zr([u.length?A9(u):void 0,f,g.length?A9(g):void 0]);return y?x.concat(p):x}function A9(e){return B.assertGreaterThanOrEqual(e.length,1),Qg(Sk.createSyntaxList(e),e[0].pos,pa(e).end)}function n5t(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function r5t(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function o5t(e,t){switch(t.kind){case 341:case 338:case 348:case 346:case 343:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var SS={};_(SS,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>a5t,getSymbolKind:()=>AGe,getSymbolModifiers:()=>s5t});var NGe=70246400;function AGe(e,t,r){let a=PGe(e,t,r);if(a!=="")return a;let u=a4(t);return u&32?bl(t,231)?"local class":"class":u&384?"enum":u&524288?"type":u&64?"interface":u&262144?"type parameter":u&8?"enum member":u&2097152?"alias":u&1536?"module":a}function PGe(e,t,r){let a=e.getRootSymbols(t);if(a.length===1&&Ta(a).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&Mt(r)||eT(r))return"parameter";let u=a4(t);if(u&3)return Ere(t)?"parameter":t.valueDeclaration&&UP(t.valueDeclaration)?"const":t.valueDeclaration&&AM(t.valueDeclaration)?"using":t.valueDeclaration&&NM(t.valueDeclaration)?"await using":re(t.declarations,Bz)?"let":FGe(t)?"local var":"var";if(u&16)return FGe(t)?"local function":"function";if(u&32768)return"getter";if(u&65536)return"setter";if(u&8192)return"method";if(u&16384)return"constructor";if(u&131072)return"index";if(u&4){if(u&33554432&&t.links.checkFlags&6){let f=re(e.getRootSymbols(t),p=>{if(p.getFlags()&98311)return"property"});return f||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function LGe(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,a=K(r)&&VJ(t)&&Lt(r,f=>!VJ(f))?65536:0,u=x8(t,a);if(u)return u.split(",")}return[]}function s5t(e,t){if(!t)return"";let r=new Set(LGe(t));if(t.flags&2097152){let a=e.getAliasedSymbol(t);a!==t&&re(LGe(a),u=>{r.add(u)})}return t.flags&16777216&&r.add("optional"),r.size>0?as(r.values()).join(","):""}function OGe(e,t,r,a,u,f,p,y){var g;let x=[],k=[],T=[],A=a4(t),P=p&1?PGe(e,t,u):"",R=!1,W=u.kind===110&&Kz(u)||eT(u),z,q,G=!1;if(u.kind===110&&!W)return{displayParts:[Yp(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(P!==""||A&32||A&2097152){if(P==="getter"||P==="setter"){let be=St(t.declarations,Se=>Se.name===u);if(be)switch(be.kind){case 177:P="getter";break;case 178:P="setter";break;case 172:P="accessor";break;default:B.assertNever(be)}else P="property"}let Ee;if(f??(f=W?e.getTypeAtLocation(u):e.getTypeOfSymbolAtLocation(t,u)),u.parent&&u.parent.kind===211){let be=u.parent.name;(be===u||be&&be.getFullWidth()===0)&&(u=u.parent)}let ve;if(W0(u)?ve=u:(Jne(u)||v8(u)||u.parent&&(Mf(u.parent)||pk(u.parent))&&vs(t.valueDeclaration))&&(ve=u.parent),ve){Ee=e.getResolvedSignature(ve);let be=ve.kind===214||Gs(ve)&&ve.expression.kind===108,Se=be?f.getConstructSignatures():f.getCallSignatures();if(Ee&&!sn(Se,Ee.target)&&!sn(Se,Ee)&&(Ee=Se.length?Se[0]:void 0),Ee){switch(be&&A&32?(P="constructor",ae(f.symbol,P)):A&2097152?(P="alias",Ce(P),x.push(tu()),be&&(Ee.flags&4&&(x.push(Yp(128)),x.push(tu())),x.push(Yp(105)),x.push(tu())),ce(t)):ae(t,P),P){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":x.push(Yf(59)),x.push(tu()),!(_r(f)&16)&&f.symbol&&(Fn(x,E8(e,f.symbol,a,void 0,5)),x.push(Z4())),be&&(Ee.flags&4&&(x.push(Yp(128)),x.push(tu())),x.push(Yp(105)),x.push(tu())),he(Ee,Se,262144);break;default:he(Ee,Se)}R=!0,G=Se.length>1}}else if(Zne(u)&&!(A&98304)||u.kind===137&&u.parent.kind===176){let be=u.parent;if(t.declarations&&St(t.declarations,Re=>Re===(u.kind===137?be.parent:be))){let Re=be.kind===176?f.getNonNullableType().getConstructSignatures():f.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(be)?Ee=Re[0]:Ee=e.getSignatureFromDeclaration(be),be.kind===176?(P="constructor",ae(f.symbol,P)):ae(be.kind===179&&!(f.symbol.flags&2048||f.symbol.flags&4096)?f.symbol:t,P),Ee&&he(Ee,Re),R=!0,G=Re.length>1}}}if(A&32&&!R&&!W&&(ne(),bl(t,231)?Ce("local class"):x.push(Yp(86)),x.push(tu()),ce(t),ue(t,r)),A&64&&p&2&&(te(),x.push(Yp(120)),x.push(tu()),ce(t),ue(t,r)),A&524288&&p&2&&(te(),x.push(Yp(156)),x.push(tu()),ce(t),ue(t,r),x.push(tu()),x.push(T8(64)),x.push(tu()),Fn(x,X5(e,u.parent&&qg(u.parent)?e.getTypeAtLocation(u.parent):e.getDeclaredTypeOfSymbol(t),a,8388608))),A&384&&(te(),Lt(t.declarations,Ee=>dT(Ee)&&ik(Ee))&&(x.push(Yp(87)),x.push(tu())),x.push(Yp(94)),x.push(tu()),ce(t)),A&1536&&!W){te();let Ee=bl(t,267),ve=Ee&&Ee.name&&Ee.name.kind===80;x.push(Yp(ve?145:144)),x.push(tu()),ce(t)}if(A&262144&&p&2)if(te(),x.push(Yf(21)),x.push(Bm("type parameter")),x.push(Yf(22)),x.push(tu()),ce(t),t.parent)_e(),ce(t.parent,a),ue(t.parent,a);else{let Ee=bl(t,168);if(Ee===void 0)return B.fail();let ve=Ee.parent;if(ve)if(vs(ve)){_e();let be=e.getSignatureFromDeclaration(ve);ve.kind===180?(x.push(Yp(105)),x.push(tu())):ve.kind!==179&&ve.name&&ce(ve.symbol),Fn(x,Ire(e,be,r,32))}else $h(ve)&&(_e(),x.push(Yp(156)),x.push(tu()),ce(ve.symbol),ue(ve.symbol,r))}if(A&8){P="enum member",ae(t,"enum member");let Ee=(g=t.declarations)==null?void 0:g[0];if(Ee?.kind===306){let ve=e.getConstantValue(Ee);ve!==void 0&&(x.push(tu()),x.push(T8(64)),x.push(tu()),x.push(vp(Che(ve),typeof ve=="number"?7:8)))}}if(t.flags&2097152){if(te(),!R||k.length===0&&T.length===0){let Ee=e.getAliasedSymbol(t);if(Ee!==t&&Ee.declarations&&Ee.declarations.length>0){let ve=Ee.declarations[0],be=cs(ve);if(be&&!R){let Se=Oz(ve)&&Ar(ve,128),Re=t.name!=="default"&&!Se,ie=OGe(e,Ee,en(ve),a,be,f,p,Re?t:Ee);x.push(...ie.displayParts),x.push(Z4()),z=ie.documentation,q=ie.tags}else z=Ee.getContextualDocumentationComment(ve,e),q=Ee.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:x.push(Yp(95)),x.push(tu()),x.push(Yp(145));break;case 277:x.push(Yp(95)),x.push(tu()),x.push(Yp(t.declarations[0].isExportEquals?64:90));break;case 281:x.push(Yp(95));break;default:x.push(Yp(102))}x.push(tu()),ce(t),re(t.declarations,Ee=>{if(Ee.kind===271){let ve=Ee;if(nk(ve))x.push(tu()),x.push(T8(64)),x.push(tu()),x.push(Yp(149)),x.push(Yf(21)),x.push(vp(Jl(q3(ve)),8)),x.push(Yf(22));else{let be=e.getSymbolAtLocation(ve.moduleReference);be&&(x.push(tu()),x.push(T8(64)),x.push(tu()),ce(be,a))}return!0}})}if(!R)if(P!==""){if(f){if(W?(te(),x.push(Yp(110))):ae(t,P),P==="property"||P==="accessor"||P==="getter"||P==="setter"||P==="JSX attribute"||A&3||P==="local var"||P==="index"||P==="using"||P==="await using"||W){if(x.push(Yf(59)),x.push(tu()),f.symbol&&f.symbol.flags&262144&&P!=="index"){let Ee=Dk(ve=>{let be=e.typeParameterToDeclaration(f,a,NGe);$().writeNode(4,be,en(_s(a)),ve)});Fn(x,Ee)}else Fn(x,X5(e,f,a));if(jv(t)&&t.links.target&&jv(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let Ee=t.links.target.links.tupleLabelDeclaration;B.assertNode(Ee.name,et),x.push(tu()),x.push(Yf(21)),x.push(Bm(mr(Ee.name))),x.push(Yf(22))}}else if(A&16||A&8192||A&16384||A&131072||A&98304||P==="method"){let Ee=f.getNonNullableType().getCallSignatures();Ee.length&&(he(Ee[0],Ee),G=Ee.length>1)}}}else P=AGe(e,t,u);if(k.length===0&&!G&&(k=t.getContextualDocumentationComment(a,e)),k.length===0&&A&4&&t.parent&&t.declarations&&re(t.parent.declarations,Ee=>Ee.kind===307))for(let Ee of t.declarations){if(!Ee.parent||Ee.parent.kind!==226)continue;let ve=e.getSymbolAtLocation(Ee.parent.right);if(ve&&(k=ve.getDocumentationComment(e),T=ve.getJsDocTags(e),k.length>0))break}if(k.length===0&&et(u)&&t.valueDeclaration&&Wa(t.valueDeclaration)){let Ee=t.valueDeclaration,ve=Ee.parent,be=Ee.propertyName||Ee.name;if(et(be)&&Om(ve)){let Se=Hh(be),Re=e.getTypeAtLocation(ve);k=Le(Re.isUnion()?Re.types:[Re],ie=>{let ke=ie.getProperty(Se);return ke?ke.getDocumentationComment(e):void 0})||F}}return T.length===0&&!G&&(T=t.getContextualJsDocTags(a,e)),k.length===0&&z&&(k=z),T.length===0&&q&&(T=q),{displayParts:x,documentation:k,symbolKind:P,tags:T.length===0?void 0:T};function $(){return bT()}function te(){x.length&&x.push(Z4()),ne()}function ne(){y&&(Ce("alias"),x.push(tu()))}function _e(){x.push(tu()),x.push(Yp(103)),x.push(tu())}function ce(Ee,ve){let be;y&&Ee===t&&(Ee=y),P==="index"&&(be=e.getIndexInfosOfIndexSymbol(Ee));let Se=[];Ee.flags&131072&&be?(Ee.parent&&(Se=E8(e,Ee.parent)),Se.push(Yf(23)),be.forEach((Re,ie)=>{Se.push(...X5(e,Re.keyType)),ie!==be.length-1&&(Se.push(tu()),Se.push(Yf(52)),Se.push(tu()))}),Se.push(Yf(24))):Se=E8(e,Ee,ve||r,void 0,7),Fn(x,Se),t.flags&16777216&&x.push(Yf(58))}function ae(Ee,ve){te(),ve&&(Ce(ve),Ee&&!Lt(Ee.declarations,be=>rl(be)||(Yc(be)||Qu(be))&&!be.name)&&(x.push(tu()),ce(Ee)))}function Ce(Ee){switch(Ee){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":x.push(Dre(Ee));return;default:x.push(Yf(21)),x.push(Dre(Ee)),x.push(Yf(22));return}}function he(Ee,ve,be=0){Fn(x,Ire(e,Ee,a,be|32)),ve.length>1&&(x.push(tu()),x.push(Yf(21)),x.push(T8(40)),x.push(vp((ve.length-1).toString(),7)),x.push(tu()),x.push(Bm(ve.length===2?"overload":"overloads")),x.push(Yf(22))),k=Ee.getDocumentationComment(e),T=Ee.getJsDocTags(),ve.length>1&&k.length===0&&T.length===0&&(k=ve[0].getDocumentationComment(e),T=ve[0].getJsDocTags().filter(Se=>Se.name!=="deprecated"))}function ue(Ee,ve){let be=Dk(Se=>{let Re=e.symbolToTypeParameterDeclarations(Ee,ve,NGe);$().writeList(53776,Re,en(_s(ve)),Se)});Fn(x,be)}}function a5t(e,t,r,a,u,f=PE(u),p){return OGe(e,t,r,a,u,void 0,f,p)}function FGe(e){return e.parent?!1:re(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!Jw(r);r=r.parent)if(r.kind===307||r.kind===268)return!1;return!0})}var Vn={};_(Vn,{ChangeTracker:()=>u5t,LeadingTriviaOption:()=>BGe,TrailingTriviaOption:()=>jGe,applyChanges:()=>TTe,assignPositionsToNode:()=>Ose,createWriter:()=>zGe,deleteNode:()=>db,isThisTypeAnnotatable:()=>l5t,isValidLocationToAddComment:()=>VGe});function MGe(e){let t=e.__pos;return B.assert(typeof t=="number"),t}function xTe(e,t){B.assert(typeof t=="number"),e.__pos=t}function RGe(e){let t=e.__end;return B.assert(typeof t=="number"),t}function CTe(e,t){B.assert(typeof t=="number"),e.__end=t}var BGe=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(BGe||{}),jGe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(jGe||{});function WGe(e,t){return Ea(e,t,!1,!0)}function c5t(e,t){let r=t;for(;r0?1:0,A=gx(nO(e,x)+T,e);return A=WGe(e.text,A),gx(nO(e,A),e)}function kTe(e,t,r){let{end:a}=t,{trailingTriviaOption:u}=r;if(u===2){let f=lx(e.text,a);if(f){let p=nO(e,t.end);for(let y of f){if(y.kind===2||nO(e,y.pos)>p)break;if(nO(e,y.end)>p)return Ea(e.text,y.end,!0,!0)}}}}function u6(e,t,r){var a;let{end:u}=t,{trailingTriviaOption:f}=r;if(f===0)return u;if(f===1){let g=Fo(lx(e.text,u),Mv(e.text,u)),x=(a=g?.[g.length-1])==null?void 0:a.end;return x||u}let p=kTe(e,t,r);if(p)return p;let y=Ea(e.text,u,!0);return y!==u&&(f===2||Jf(e.text.charCodeAt(y-1)))?y:u}function Ase(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function l5t(e){return Yc(e)||xu(e)}var u5t=class iYt{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new iYt(cb(t.host,t.formatContext.options),t.formatContext)}static with(t,r){let a=iYt.fromContext(t);return r(a),a.getChanges()}pushRaw(t,r){B.assertEqual(t.fileName,r.fileName);for(let a of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:a.newText,range:kJ(a.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,a={leadingTriviaOption:1}){this.deleteRange(t,L9(t,r,r,a))}deleteNodes(t,r,a={leadingTriviaOption:1},u){for(let f of r){let p=jE(t,f,a,u),y=u6(t,f,a);this.deleteRange(t,{pos:p,end:y}),u=!!kTe(t,f,a)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:Ea(t.text,r.end,!0)})}deleteNodeRange(t,r,a,u={leadingTriviaOption:1}){let f=jE(t,r,u),p=u6(t,a,u);this.deleteRange(t,{pos:f,end:p})}deleteNodeRangeExcludingEnd(t,r,a,u={leadingTriviaOption:1}){let f=jE(t,r,u),p=a===void 0?t.text.length:jE(t,a,u);this.deleteRange(t,{pos:f,end:p})}replaceRange(t,r,a,u={}){this.changes.push({kind:1,sourceFile:t,range:r,options:u,node:a})}replaceNode(t,r,a,u=P9){this.replaceRange(t,L9(t,r,r,u),a,u)}replaceNodeRange(t,r,a,u,f=P9){this.replaceRange(t,L9(t,r,a,f),u,f)}replaceRangeWithNodes(t,r,a,u={}){this.changes.push({kind:2,sourceFile:t,range:r,options:u,nodes:a})}replaceNodeWithNodes(t,r,a,u=P9){this.replaceRangeWithNodes(t,L9(t,r,r,u),a,u)}replaceNodeWithText(t,r,a){this.replaceRangeWithText(t,L9(t,r,r,P9),a)}replaceNodeRangeWithNodes(t,r,a,u,f=P9){this.replaceRangeWithNodes(t,L9(t,r,a,f),u,f)}nodeHasTrailingComment(t,r,a=P9){return!!kTe(t,r,a)}nextCommaToken(t,r){let a=kT(r,r.parent,t);return a&&a.kind===28?a:void 0}replacePropertyAssignment(t,r,a){let u=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,a,{suffix:u})}insertNodeAt(t,r,a,u={}){this.replaceRange(t,ah(r),a,u)}insertNodesAt(t,r,a,u={}){this.replaceRangeWithNodes(t,ah(r),a,u)}insertNodeAtTopOfFile(t,r,a){this.insertAtTopOfFile(t,r,a)}insertNodesAtTopOfFile(t,r,a){this.insertAtTopOfFile(t,r,a)}insertAtTopOfFile(t,r,a){let u=y5t(t),f={prefix:u===0?void 0:this.newLineCharacter,suffix:(Jf(t.text.charCodeAt(u))?"":this.newLineCharacter)+(a?this.newLineCharacter:"")};ds(r)?this.insertNodesAt(t,u,r,f):this.insertNodeAt(t,u,r,f)}insertNodesAtEndOfFile(t,r,a){this.insertAtEndOfFile(t,r,a)}insertAtEndOfFile(t,r,a){let u=t.end+1,f={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(a?this.newLineCharacter:"")};this.insertNodesAt(t,u,r,f)}insertStatementsInNewFile(t,r,a){this.newFileChanges||(this.newFileChanges=Dm()),this.newFileChanges.add(t,{oldFile:a,statements:r})}insertFirstParameter(t,r,a){let u=mc(r);u?this.insertNodeBefore(t,u,a):this.insertNodeAt(t,r.pos,a)}insertNodeBefore(t,r,a,u=!1,f={}){this.insertNodeAt(t,jE(t,r,f),a,this.getOptionsForInsertNodeBefore(r,a,u))}insertNodesBefore(t,r,a,u=!1,f={}){this.insertNodesAt(t,jE(t,r,f),a,this.getOptionsForInsertNodeBefore(r,Ta(a),u))}insertModifierAt(t,r,a,u={}){this.insertNodeAt(t,r,U.createToken(a),u)}insertModifierBefore(t,r,a){return this.insertModifierAt(t,a.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,a,u){let f=gx(r,t),p=XSe(t.text,f),y=VGe(t,p),g=K4(t,y?p:a),x=t.text.slice(f,p),k=`${y?"":this.newLineCharacter}//${u}${this.newLineCharacter}${x}`;this.insertText(t,g.getStart(t),k)}insertJsdocCommentBefore(t,r,a){let u=r.getStart(t);if(r.jsDoc)for(let y of r.jsDoc)this.deleteRange(t,{pos:Yh(y.getStart(t),t),end:u6(t,y,{})});let f=PJ(t.text,u-1),p=t.text.slice(f,u);this.insertNodeAt(t,u,a,{suffix:this.newLineCharacter+p})}createJSDocText(t,r){let a=vo(r.jsDoc,f=>fs(f.comment)?U.createJSDocText(f.comment):f.comment),u=Fh(r.jsDoc);return u&&ch(u.pos,u.end,t)&&K(a)===0?void 0:U.createNodeArray(Ct(a,U.createJSDocText(` +`)))}replaceJSDocComment(t,r,a){this.insertJsdocCommentBefore(t,d5t(r),U.createJSDocComment(this.createJSDocText(t,r),U.createNodeArray(a)))}addJSDocTags(t,r,a){let u=kl(r.jsDoc,p=>p.tags),f=a.filter(p=>!u.some((y,g)=>{let x=f5t(y,p);return x&&(u[g]=x),!!x}));this.replaceJSDocComment(t,r,[...u,...f])}filterJSDocTags(t,r,a){this.replaceJSDocComment(t,r,Di(kl(r.jsDoc,u=>u.tags),a))}replaceRangeWithText(t,r,a){this.changes.push({kind:3,sourceFile:t,range:r,text:a})}insertText(t,r,a){this.replaceRangeWithText(t,ah(r),a)}tryInsertTypeAnnotation(t,r,a){let u;if(vs(r)){if(u=Tc(r,22,t),!u){if(!rl(r))return!1;u=Ta(r.parameters)}}else u=(r.kind===260?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,u.end,a,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,a){let u=Tc(r,21,t).getStart(t)+1,f=r.parameters.length?", ":"";this.insertNodeAt(t,u,a,{prefix:"this: ",suffix:f})}insertTypeParameters(t,r,a){let u=(Tc(r,21,t)||Ta(r.parameters)).getStart(t);this.insertNodesAt(t,u,a,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,a){return _o(t)||Cd(t)?{suffix:a?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Ur(t)?{suffix:", "}:To(t)?To(r)?{suffix:", "}:{}:Da(t)&&ql(t.parent)||iy(t)?{suffix:", "}:F_(t)?{suffix:","+(a?this.newLineCharacter:" ")}:B.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,a){let u=mc(r.body.statements);!u||!r.body.multiLine?this.replaceConstructorBody(t,r,[a,...r.body.statements]):this.insertNodeBefore(t,u,a)}insertNodeAtConstructorStartAfterSuperCall(t,r,a){let u=St(r.body.statements,f=>Ud(f)&&oE(f.expression));!u||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,a]):this.insertNodeAfter(t,u,a)}insertNodeAtConstructorEnd(t,r,a){let u=Lc(r.body.statements);!u||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,a]):this.insertNodeAfter(t,u,a)}replaceConstructorBody(t,r,a){this.replaceNode(t,r.body,U.createBlock(a,!0))}insertNodeAtEndOfScope(t,r,a){let u=jE(t,r.getLastToken(),{});this.insertNodeAt(t,u,a,{prefix:Jf(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,a){this.insertNodeAtStartWorker(t,r,a)}insertNodeAtObjectStart(t,r,a){this.insertNodeAtStartWorker(t,r,a)}insertNodeAtStartWorker(t,r,a){let u=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,Pse(r).pos,a,this.getInsertNodeAtStartInsertOptions(t,r,u))}guessIndentationFromExistingMembers(t,r){let a,u=r;for(let f of Pse(r)){if(TV(u,f,t))return;let p=f.getStart(t),y=td.SmartIndenter.findFirstNonWhitespaceColumn(Yh(p,t),p,t,this.formatContext.options);if(a===void 0)a=y;else if(y!==a)return;u=f}return a}computeIndentationForNewMember(t,r){let a=r.getStart(t);return td.SmartIndenter.findFirstNonWhitespaceColumn(Yh(a,t),a,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,a){let f=Pse(r).length===0,p=Uh(this.classesWithNodesInsertedAtStart,ac(r),{node:r,sourceFile:t}),y=ba(r)&&(!Wh(t)||!f),g=ba(r)&&Wh(t)&&f&&!p;return{indentation:a,prefix:(g?",":"")+this.newLineCharacter,suffix:y?",":vf(r)&&f?";":""}}insertNodeAfterComma(t,r,a){let u=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,a);this.insertNodeAt(t,u,a,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,a){let u=this.insertNodeAfterWorker(t,r,a);this.insertNodeAt(t,u,a,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,a){this.insertNodeAt(t,r.end,a,{prefix:", "})}insertNodesAfter(t,r,a){let u=this.insertNodeAfterWorker(t,r,Ta(a));this.insertNodesAt(t,u,a,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,a){return v5t(r,a)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,ah(r.end),U.createToken(27)),u6(t,r,{})}getInsertNodeAfterOptions(t,r){let a=this.getInsertNodeAfterOptionsWorker(r);return{...a,prefix:r.end===t.end&&_o(r)?a.prefix?` +${a.prefix}`:` +`:a.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return B.assert(_o(t)||mz(t)),{suffix:this.newLineCharacter}}}insertName(t,r,a){if(B.assert(!r.name),r.kind===219){let u=Tc(r,39,t),f=Tc(r,21,t);f?(this.insertNodesAt(t,f.getStart(t),[U.createToken(100),U.createIdentifier(a)],{joiner:" "}),db(this,t,u)):(this.insertText(t,Ta(r.parameters).getStart(t),`function ${a}(`),this.replaceRange(t,u,U.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[U.createToken(19),U.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[U.createToken(27),U.createToken(20)],{joiner:" "}))}else{let u=Tc(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,u,U.createIdentifier(a),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,a,u){let f=a.elements[u-1];f?this.insertNodeInListAfter(t,f,r):this.insertNodeBefore(t,a.elements[0],r,!ch(a.elements[0].getStart(),a.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,a,u=td.SmartIndenter.getContainingList(r,t)){if(!u){B.fail("node is not a list element");return}let f=VP(u,r);if(f<0)return;let p=r.getEnd();if(f!==u.length-1){let y=go(t,r.end);if(y&&Ase(r,y)){let g=u[f+1],x=WGe(t.text,g.getFullStart()),k=`${ua(y.kind)}${t.text.substring(y.end,x)}`;this.insertNodesAt(t,x,[a],{suffix:k})}}else{let y=r.getStart(t),g=Yh(y,t),x,k=!1;if(u.length===1)x=28;else{let T=fd(r.pos,t);x=Ase(r,T)?T.kind:28,k=Yh(u[f-1].getStart(t),t)!==g}if((c5t(t.text,r.end)||!ch(u.pos,u.end,t))&&(k=!0),k){this.replaceRange(t,ah(p),U.createToken(x));let T=td.SmartIndenter.findFirstNonWhitespaceColumn(g,y,t,this.formatContext.options),A=Ea(t.text,p,!0,!1);for(;A!==p&&Jf(t.text.charCodeAt(A-1));)A--;this.replaceRange(t,ah(A),a,{indentation:T,prefix:this.newLineCharacter})}else this.replaceRange(t,ah(p),a,{prefix:`${ua(x)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,mee(r),U.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{let[a,u]=p5t(t,r);if(a!==void 0&&u!==void 0){let f=Pse(t).length===0,p=ch(a,u,r);f&&p&&a!==u-1&&this.deleteRange(r,ah(a,u-1)),p&&this.insertText(r,u-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:r,node:a}of this.deletedNodes)this.deletedNodes.some(u=>u.sourceFile===r&&kSe(u.node,a))||(ds(a)?this.deleteRange(r,hee(r,a)):ETe.deleteDeclaration(this,t,r,a));t.forEach(r=>{let a=r.getSourceFile(),u=td.SmartIndenter.getContainingList(r,a);if(r!==pa(u))return;let f=Vr(u,p=>!t.has(p),u.length-2);f!==-1&&this.deleteRange(a,{pos:u[f].end,end:wTe(a,u[f+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let r=Lse.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((a,u)=>{r.push(Lse.newFileChanges(u,a,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,a){this.insertStatementsInNewFile(r,a,t)}};function d5t(e){if(e.kind!==219)return e;let t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function f5t(e,t){if(e.kind===t.kind)switch(e.kind){case 341:{let r=e,a=t;return et(r.name)&&et(a.name)&&r.name.escapedText===a.name.escapedText?U.createJSDocParameterTag(void 0,a.name,!1,a.typeExpression,a.isNameFirst,r.comment):void 0}case 342:return U.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 344:return U.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function wTe(e,t){return Ea(e.text,jE(e,t,{leadingTriviaOption:1}),!1,!0)}function _5t(e,t,r,a){let u=wTe(e,a);if(r===void 0||ch(u6(e,t,{}),u,e))return u;let f=fd(a.getStart(e),e);if(Ase(t,f)){let p=fd(t.getStart(e),e);if(Ase(r,p)){let y=Ea(e.text,f.getEnd(),!0,!0);if(ch(p.getStart(e),f.getStart(e),e))return Jf(e.text.charCodeAt(y-1))?y-1:y;if(Jf(e.text.charCodeAt(y)))return y}}return u}function p5t(e,t){let r=Tc(e,19,t),a=Tc(e,20,t);return[r?.end,a?.end]}function Pse(e){return ba(e)?e.properties:e.members}var Lse;(e=>{function t(y,g,x,k){return ro(Xl(y,T=>T.sourceFile.path),T=>{let A=T[0].sourceFile,P=lc(T,(W,z)=>W.range.pos-z.range.pos||W.range.end-z.range.end);for(let W=0;W`${JSON.stringify(P[W].range)} and ${JSON.stringify(P[W+1].range)}`);let R=ro(P,W=>{let z=yS(W.range),q=W.kind===1?en(El(W.node))??W.sourceFile:W.kind===2?en(El(W.nodes[0]))??W.sourceFile:W.sourceFile,G=u(W,q,A,g,x,k);if(!(z.length===G.length&&axe(q.text,G,z.start)))return J5(z,G)});return R.length>0?{fileName:A.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(y,g,x,k){let T=a(JV(y),g,x,k);return{fileName:y,textChanges:[J5(_f(0,0),T)],isNewFile:!0}}e.newFileChanges=r;function a(y,g,x,k){let T=vo(g,R=>R.statements.map(W=>W===4?"":p(W,R.oldFile,x).text)).join(x),A=ON("any file name",T,{languageVersion:99,jsDocParsingMode:1},!0,y),P=td.formatDocument(A,k);return TTe(T,P)+x}e.newFileChangesWorker=a;function u(y,g,x,k,T,A){var P;if(y.kind===0)return"";if(y.kind===3)return y.text;let{options:R={},range:{pos:W}}=y,z=$=>f($,g,x,W,R,k,T,A),q=y.kind===2?y.nodes.map($=>EP(z($),k)).join(((P=y.options)==null?void 0:P.joiner)||k):z(y.node),G=R.indentation!==void 0||Yh(W,g)===W?q:q.replace(/^\s+/,"");return(R.prefix||"")+G+(!R.suffix||Wl(G,R.suffix)?"":R.suffix)}function f(y,g,x,k,{indentation:T,prefix:A,delta:P},R,W,z){let{node:q,text:G}=p(y,g,R);z&&z(q,G);let $=UJ(W,g),te=T!==void 0?T:td.SmartIndenter.getIndentation(k,x,$,A===R||Yh(k,g)===k);P===void 0&&(P=td.SmartIndenter.shouldIndentChildNode($,y)&&$.indentSize||0);let ne={text:G,getLineAndCharacterOfPosition(ce){return ma(this,ce)}},_e=td.formatNodeGivenIndentation(q,ne,g.languageVariant,te,P,{...W,options:$});return TTe(G,_e)}function p(y,g,x){let k=zGe(x),T=o9(x);return Bx({newLine:T,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},k).writeNode(4,y,g,k),{text:k.getText(),node:Ose(y)}}e.getNonformattedText=p})(Lse||(Lse={}));function TTe(e,t){for(let r=t.length-1;r>=0;r--){let{span:a,newText:u}=t[r];e=`${e.substring(0,a.start)}${u}${e.substring(Vl(a))}`}return e}function m5t(e){return Ea(e,0)===e.length}var h5t={...x5,factory:PR(x5.factory.flags|1,x5.factory.baseFactory)};function Ose(e){let t=Qi(e,Ose,h5t,g5t,Ose),r=Uc(t)?t:Object.create(t);return Qg(r,MGe(e),RGe(e)),r}function g5t(e,t,r,a,u){let f=mn(e,t,r,a,u);if(!f)return f;B.assert(e);let p=f===e?U.createNodeArray(f.slice(0)):f;return Qg(p,MGe(e),RGe(e)),p}function zGe(e){let t=0,r=dR(e),a=ie=>{ie&&xTe(ie,t)},u=ie=>{ie&&CTe(ie,t)},f=ie=>{ie&&xTe(ie,t)},p=ie=>{ie&&CTe(ie,t)},y=ie=>{ie&&xTe(ie,t)},g=ie=>{ie&&CTe(ie,t)};function x(ie,ke){if(ke||!m5t(ie)){t=r.getTextPos();let De=0;for(;Fv(ie.charCodeAt(ie.length-De-1));)De++;t-=De}}function k(ie){r.write(ie),x(ie,!1)}function T(ie){r.writeComment(ie)}function A(ie){r.writeKeyword(ie),x(ie,!1)}function P(ie){r.writeOperator(ie),x(ie,!1)}function R(ie){r.writePunctuation(ie),x(ie,!1)}function W(ie){r.writeTrailingSemicolon(ie),x(ie,!1)}function z(ie){r.writeParameter(ie),x(ie,!1)}function q(ie){r.writeProperty(ie),x(ie,!1)}function G(ie){r.writeSpace(ie),x(ie,!1)}function $(ie){r.writeStringLiteral(ie),x(ie,!1)}function te(ie,ke){r.writeSymbol(ie,ke),x(ie,!1)}function ne(ie){r.writeLine(ie)}function _e(){r.increaseIndent()}function ce(){r.decreaseIndent()}function ae(){return r.getText()}function Ce(ie){r.rawWrite(ie),x(ie,!1)}function he(ie){r.writeLiteral(ie),x(ie,!0)}function ue(){return r.getTextPos()}function Ee(){return r.getLine()}function ve(){return r.getColumn()}function be(){return r.getIndent()}function Se(){return r.isAtStartOfLine()}function Re(){r.clear(),t=0}return{onBeforeEmitNode:a,onAfterEmitNode:u,onBeforeEmitNodeArray:f,onAfterEmitNodeArray:p,onBeforeEmitToken:y,onAfterEmitToken:g,write:k,writeComment:T,writeKeyword:A,writeOperator:P,writePunctuation:R,writeTrailingSemicolon:W,writeParameter:z,writeProperty:q,writeSpace:G,writeStringLiteral:$,writeSymbol:te,writeLine:ne,increaseIndent:_e,decreaseIndent:ce,getText:ae,rawWrite:Ce,writeLiteral:he,getTextPos:ue,getLine:Ee,getColumn:ve,getIndent:be,isAtStartOfLine:Se,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:Re}}function y5t(e){let t;for(let x of e.statements)if(H0(x))t=x;else break;let r=0,a=e.text;if(t)return r=t.end,g(),r;let u=nz(a);u!==void 0&&(r=u.length,g());let f=Mv(a,r);if(!f)return r;let p,y;for(let x of f){if(x.kind===3){if(Pz(a,x.pos)){p={range:x,pinnedOrTripleSlash:!0};continue}}else if(HQ(a,x.pos,x.end)){p={range:x,pinnedOrTripleSlash:!0};continue}if(p){if(p.pinnedOrTripleSlash)break;let k=e.getLineAndCharacterOfPosition(x.pos).line,T=e.getLineAndCharacterOfPosition(p.range.end).line;if(k>=T+2)break}if(e.statements.length){y===void 0&&(y=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let k=e.getLineAndCharacterOfPosition(x.end).line;if(y{function t(f,p,y,g){switch(g.kind){case 169:{let P=g.parent;rl(P)&&P.parameters.length===1&&!Tc(P,21,y)?f.replaceNodeWithText(y,g,"()"):O9(f,p,y,g);break}case 272:case 271:let x=y.imports.length&&g===Ta(y.imports).parent||g===St(y.statements,UI);db(f,y,g,{leadingTriviaOption:x?0:dm(g)?2:3});break;case 208:let k=g.parent;k.kind===207&&g!==pa(k.elements)?db(f,y,g):O9(f,p,y,g);break;case 260:u(f,p,y,g);break;case 168:O9(f,p,y,g);break;case 276:let A=g.parent;A.elements.length===1?a(f,y,A):O9(f,p,y,g);break;case 274:a(f,y,g);break;case 27:db(f,y,g,{trailingTriviaOption:0});break;case 100:db(f,y,g,{leadingTriviaOption:0});break;case 263:case 262:db(f,y,g,{leadingTriviaOption:dm(g)?2:3});break;default:g.parent?Zg(g.parent)&&g.parent.name===g?r(f,y,g.parent):Gs(g.parent)&&sn(g.parent.arguments,g)?O9(f,p,y,g):db(f,y,g):db(f,y,g)}}e.deleteDeclaration=t;function r(f,p,y){if(!y.namedBindings)db(f,p,y.parent);else{let g=y.name.getStart(p),x=go(p,y.name.end);if(x&&x.kind===28){let k=Ea(p.text,x.end,!1,!0);f.deleteRange(p,{pos:g,end:k})}else db(f,p,y.name)}}function a(f,p,y){if(y.parent.name){let g=B.checkDefined(go(p,y.pos-1));f.deleteRange(p,{pos:g.getStart(p),end:y.end})}else{let g=ck(y,272);db(f,p,g)}}function u(f,p,y,g){let{parent:x}=g;if(x.kind===299){f.deleteNodeRange(y,Tc(x,21,y),Tc(x,22,y));return}if(x.declarations.length!==1){O9(f,p,y,g);return}let k=x.parent;switch(k.kind){case 250:case 249:f.replaceNode(y,g,U.createObjectLiteralExpression());break;case 248:db(f,y,x);break;case 243:db(f,y,k,{leadingTriviaOption:dm(k)?2:3});break;default:B.assertNever(k)}}})(ETe||(ETe={}));function db(e,t,r,a={leadingTriviaOption:1}){let u=jE(t,r,a),f=u6(t,r,a);e.deleteRange(t,{pos:u,end:f})}function O9(e,t,r,a){let u=B.checkDefined(td.SmartIndenter.getContainingList(a,r)),f=VP(u,a);if(B.assert(f!==-1),u.length===1){db(e,r,a);return}B.assert(!t.has(a),"Deleting a node twice"),t.add(a),e.deleteRange(r,{pos:wTe(r,a),end:f===u.length-1?u6(r,a,{}):_5t(r,a,u[f-1],u[f+1])})}var td={};_(td,{FormattingContext:()=>UGe,FormattingRequestKind:()=>HGe,RuleAction:()=>JGe,RuleFlags:()=>qGe,SmartIndenter:()=>uy,anyContext:()=>Fse,createTextRangeWithKind:()=>jse,formatDocument:()=>u9t,formatNodeGivenIndentation:()=>g9t,formatOnClosingCurly:()=>l9t,formatOnEnter:()=>s9t,formatOnOpeningCurly:()=>c9t,formatOnSemicolon:()=>a9t,formatSelection:()=>d9t,getAllRules:()=>$Ge,getFormatContext:()=>Q5t,getFormattingScanner:()=>DTe,getIndentationString:()=>VTe,getRangeOfEnclosingComment:()=>yKe});var HGe=(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))(HGe||{}),UGe=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,a,u){this.currentTokenSpan=B.checkDefined(e),this.currentTokenParent=B.checkDefined(t),this.nextTokenSpan=B.checkDefined(r),this.nextTokenParent=B.checkDefined(a),this.contextNode=B.checkDefined(u),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let 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 this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){let t=Tc(e,19,this.sourceFile),r=Tc(e,20,this.sourceFile);if(t&&r){let a=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,u=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return a===u}return!1}},b5t=Rv(99,!1,0),S5t=Rv(99,!1,1);function DTe(e,t,r,a,u){let f=t===1?S5t:b5t;f.setText(e),f.resetTokenState(r);let p=!0,y,g,x,k,T,A=u({advance:P,readTokenInfo:ne,readEOFTokenRange:ce,isOnToken:ae,isOnEOF:Ce,getCurrentLeadingTrivia:()=>y,lastTrailingTriviaWasNewLine:()=>p,skipToEndOf:ue,skipToStartOf:Ee,getTokenFullStart:()=>T?.token.pos??f.getTokenStart(),getStartPos:()=>T?.token.pos??f.getTokenStart()});return T=void 0,f.setText(void 0),A;function P(){T=void 0,f.getTokenFullStart()!==r?p=!!g&&pa(g).kind===4:f.scan(),y=void 0,g=void 0;let be=f.getTokenFullStart();for(;be(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))(JGe||{}),qGe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(qGe||{});function $Ge(){let e=[];for(let _e=0;_e<=165;_e++)_e!==1&&e.push(_e);function t(..._e){return{tokens:e.filter(ce=>!_e.some(ae=>ae===ce)),isSpecific:!1}}let r={tokens:e,isSpecific:!1},a=H8([...e,3]),u=H8([...e,1]),f=KGe(83,165),p=KGe(30,79),y=[103,104,165,130,142,152],g=[46,47,55,54],x=[9,10,80,21,23,19,110,105],k=[80,21,110,105],T=[80,22,24,105],A=[80,21,110,105],P=[80,22,24,105],R=[2,3],W=[80,...pre],z=a,q=H8([80,32,3,86,95,102]),G=H8([22,3,92,113,98,93,85]),$=[Er("IgnoreBeforeComment",r,R,Fse,1),Er("IgnoreAfterLineComment",2,r,Fse,1),Er("NotSpaceBeforeColon",r,59,[wo,Mq,QGe],16),Er("SpaceAfterColon",59,r,[wo,Mq,B5t],4),Er("NoSpaceBeforeQuestionMark",r,58,[wo,Mq,QGe],16),Er("SpaceAfterQuestionMarkInConditionalOperator",58,r,[wo,w5t],4),Er("NoSpaceAfterQuestionMark",58,r,[wo,k5t],16),Er("NoSpaceBeforeDot",r,[25,29],[wo,Y5t],16),Er("NoSpaceAfterDot",[25,29],r,[wo],16),Er("NoSpaceBetweenImportParenInImportType",102,21,[wo,M5t],16),Er("NoSpaceAfterUnaryPrefixOperator",g,x,[wo,Mq],16),Er("NoSpaceAfterUnaryPreincrementOperator",46,k,[wo],16),Er("NoSpaceAfterUnaryPredecrementOperator",47,A,[wo],16),Er("NoSpaceBeforeUnaryPostincrementOperator",T,46,[wo,pKe],16),Er("NoSpaceBeforeUnaryPostdecrementOperator",P,47,[wo,pKe],16),Er("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[wo,zx],4),Er("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[wo,zx],4),Er("SpaceAfterAddWhenFollowedByPreincrement",40,46,[wo,zx],4),Er("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[wo,zx],4),Er("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[wo,zx],4),Er("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[wo,zx],4),Er("NoSpaceAfterCloseBrace",20,[28,27],[wo],16),Er("NewLineBeforeCloseBraceInBlockContext",a,20,[eKe],8),Er("SpaceAfterCloseBrace",20,t(22),[wo,D5t],4),Er("SpaceBetweenCloseBraceAndElse",20,93,[wo],4),Er("SpaceBetweenCloseBraceAndWhile",20,117,[wo],4),Er("NoSpaceBetweenEmptyBraceBrackets",19,20,[wo,sKe],16),Er("SpaceAfterConditionalClosingParen",22,23,[Rq],4),Er("NoSpaceBetweenFunctionKeywordAndStar",100,42,[nKe],16),Er("SpaceAfterStarInGeneratorDeclaration",42,80,[nKe],4),Er("SpaceAfterFunctionInFuncDecl",100,r,[WE],4),Er("NewLineAfterOpenBraceInBlockContext",19,r,[eKe],8),Er("SpaceAfterGetSetInMember",[139,153],80,[WE],4),Er("NoSpaceBetweenYieldKeywordAndStar",127,42,[wo,_Ke],16),Er("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[wo,_Ke],4),Er("NoSpaceBetweenReturnAndSemicolon",107,27,[wo],16),Er("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[wo],4),Er("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[wo,z5t],4),Er("NoSpaceBeforeOpenParenInFuncCall",r,21,[wo,A5t,P5t],16),Er("SpaceBeforeBinaryKeywordOperator",r,y,[wo,zx],4),Er("SpaceAfterBinaryKeywordOperator",y,r,[wo,zx],4),Er("SpaceAfterVoidOperator",116,r,[wo,q5t],4),Er("SpaceBetweenAsyncAndOpenParen",134,21,[F5t,wo],4),Er("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[wo],4),Er("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[wo],16),Er("SpaceBeforeJsxAttribute",r,80,[R5t,wo],4),Er("SpaceBeforeSlashInJsxOpeningElement",r,44,[uKe,wo],4),Er("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[uKe,wo],16),Er("NoSpaceBeforeEqualInJsxAttribute",r,64,[cKe,wo],16),Er("NoSpaceAfterEqualInJsxAttribute",64,r,[cKe,wo],16),Er("NoSpaceBeforeJsxNamespaceColon",80,59,[lKe],16),Er("NoSpaceAfterJsxNamespaceColon",59,80,[lKe],16),Er("NoSpaceAfterModuleImport",[144,149],21,[wo],16),Er("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[wo],4),Er("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[wo],4),Er("SpaceAfterModuleName",11,19,[V5t],4),Er("SpaceBeforeArrow",r,39,[wo],4),Er("SpaceAfterArrow",39,r,[wo],4),Er("NoSpaceAfterEllipsis",26,80,[wo],16),Er("NoSpaceAfterOptionalParameters",58,[22,28],[wo,Mq],16),Er("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[wo,H5t],16),Er("NoSpaceBeforeOpenAngularBracket",W,30,[wo,Bq],16),Er("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[wo,Bq],16),Er("NoSpaceAfterOpenAngularBracket",30,r,[wo,Bq],16),Er("NoSpaceBeforeCloseAngularBracket",r,32,[wo,Bq],16),Er("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[wo,Bq,E5t,J5t],16),Er("SpaceBeforeAt",[22,80],60,[wo],4),Er("NoSpaceAfterAt",60,r,[wo],16),Er("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[W5t],4),Er("NoSpaceBeforeNonNullAssertionOperator",r,54,[wo,$5t],16),Er("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[wo,U5t],16),Er("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[wo],4)],te=[Er("SpaceAfterConstructor",137,21,[jm("insertSpaceAfterConstructor"),wo],4),Er("NoSpaceAfterConstructor",137,21,[ly("insertSpaceAfterConstructor"),wo],16),Er("SpaceAfterComma",28,r,[jm("insertSpaceAfterCommaDelimiter"),wo,FTe,L5t,O5t],4),Er("NoSpaceAfterComma",28,r,[ly("insertSpaceAfterCommaDelimiter"),wo,FTe],16),Er("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[jm("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),WE],4),Er("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[ly("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),WE],16),Er("SpaceAfterKeywordInControl",f,21,[jm("insertSpaceAfterKeywordsInControlFlowStatements"),Rq],4),Er("NoSpaceAfterKeywordInControl",f,21,[ly("insertSpaceAfterKeywordsInControlFlowStatements"),Rq],16),Er("SpaceAfterOpenParen",21,r,[jm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),wo],4),Er("SpaceBeforeCloseParen",r,22,[jm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),wo],4),Er("SpaceBetweenOpenParens",21,21,[jm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),wo],4),Er("NoSpaceBetweenParens",21,22,[wo],16),Er("NoSpaceAfterOpenParen",21,r,[ly("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),wo],16),Er("NoSpaceBeforeCloseParen",r,22,[ly("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),wo],16),Er("SpaceAfterOpenBracket",23,r,[jm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),wo],4),Er("SpaceBeforeCloseBracket",r,24,[jm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),wo],4),Er("NoSpaceBetweenBrackets",23,24,[wo],16),Er("NoSpaceAfterOpenBracket",23,r,[ly("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),wo],16),Er("NoSpaceBeforeCloseBracket",r,24,[ly("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),wo],16),Er("SpaceAfterOpenBrace",19,r,[YGe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ZGe],4),Er("SpaceBeforeCloseBrace",r,20,[YGe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ZGe],4),Er("NoSpaceBetweenEmptyBraceBrackets",19,20,[wo,sKe],16),Er("NoSpaceAfterOpenBrace",19,r,[ITe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),wo],16),Er("NoSpaceBeforeCloseBrace",r,20,[ITe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),wo],16),Er("SpaceBetweenEmptyBraceBrackets",19,20,[jm("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Er("NoSpaceBetweenEmptyBraceBrackets",19,20,[ITe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),wo],16),Er("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[jm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),aKe],4,1),Er("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[jm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),wo],4),Er("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[ly("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),aKe],16,1),Er("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[ly("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),wo],16),Er("SpaceAfterOpenBraceInJsxExpression",19,r,[jm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),wo,Rse],4),Er("SpaceBeforeCloseBraceInJsxExpression",r,20,[jm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),wo,Rse],4),Er("NoSpaceAfterOpenBraceInJsxExpression",19,r,[ly("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),wo,Rse],16),Er("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[ly("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),wo,Rse],16),Er("SpaceAfterSemicolonInFor",27,r,[jm("insertSpaceAfterSemicolonInForStatements"),wo,ATe],4),Er("NoSpaceAfterSemicolonInFor",27,r,[ly("insertSpaceAfterSemicolonInForStatements"),wo,ATe],16),Er("SpaceBeforeBinaryOperator",r,p,[jm("insertSpaceBeforeAndAfterBinaryOperators"),wo,zx],4),Er("SpaceAfterBinaryOperator",p,r,[jm("insertSpaceBeforeAndAfterBinaryOperators"),wo,zx],4),Er("NoSpaceBeforeBinaryOperator",r,p,[ly("insertSpaceBeforeAndAfterBinaryOperators"),wo,zx],16),Er("NoSpaceAfterBinaryOperator",p,r,[ly("insertSpaceBeforeAndAfterBinaryOperators"),wo,zx],16),Er("SpaceBeforeOpenParenInFuncDecl",r,21,[jm("insertSpaceBeforeFunctionParenthesis"),wo,WE],4),Er("NoSpaceBeforeOpenParenInFuncDecl",r,21,[ly("insertSpaceBeforeFunctionParenthesis"),wo,WE],16),Er("NewLineBeforeOpenBraceInControl",G,19,[jm("placeOpenBraceOnNewLineForControlBlocks"),Rq,OTe],8,1),Er("NewLineBeforeOpenBraceInFunction",z,19,[jm("placeOpenBraceOnNewLineForFunctions"),WE,OTe],8,1),Er("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",q,19,[jm("placeOpenBraceOnNewLineForFunctions"),rKe,OTe],8,1),Er("SpaceAfterTypeAssertion",32,r,[jm("insertSpaceAfterTypeAssertion"),wo,RTe],4),Er("NoSpaceAfterTypeAssertion",32,r,[ly("insertSpaceAfterTypeAssertion"),wo,RTe],16),Er("SpaceBeforeTypeAnnotation",r,[58,59],[jm("insertSpaceBeforeTypeAnnotation"),wo,PTe],4),Er("NoSpaceBeforeTypeAnnotation",r,[58,59],[ly("insertSpaceBeforeTypeAnnotation"),wo,PTe],16),Er("NoOptionalSemicolon",27,u,[XGe("semicolons","remove"),K5t],32),Er("OptionalSemicolon",r,u,[XGe("semicolons","insert"),X5t],64)],ne=[Er("NoSpaceBeforeSemicolon",r,27,[wo],16),Er("SpaceBeforeOpenBraceInControl",G,19,[NTe("placeOpenBraceOnNewLineForControlBlocks"),Rq,MTe,LTe],4,1),Er("SpaceBeforeOpenBraceInFunction",z,19,[NTe("placeOpenBraceOnNewLineForFunctions"),WE,Mse,MTe,LTe],4,1),Er("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",q,19,[NTe("placeOpenBraceOnNewLineForFunctions"),rKe,MTe,LTe],4,1),Er("NoSpaceBeforeComma",r,28,[wo],16),Er("NoSpaceBeforeOpenBracket",t(134,84),23,[wo],16),Er("NoSpaceAfterCloseBracket",24,r,[wo,j5t],16),Er("SpaceAfterSemicolon",27,r,[wo],4),Er("SpaceBetweenForAndAwaitKeyword",99,135,[wo],4),Er("SpaceBetweenDotDotDotAndTypeName",26,W,[wo],16),Er("SpaceBetweenStatements",[22,92,93,84],r,[wo,FTe,x5t],4),Er("SpaceAfterTryCatchFinally",[113,85,98],19,[wo],4)];return[...$,...te,...ne]}function Er(e,t,r,a,u,f=0){return{leftTokenRange:GGe(t),rightTokenRange:GGe(r),rule:{debugName:e,context:a,action:u,flags:f}}}function H8(e){return{tokens:e,isSpecific:!0}}function GGe(e){return typeof e=="number"?H8([e]):ds(e)?H8(e):e}function KGe(e,t,r=[]){let a=[];for(let u=e;u<=t;u++)sn(r,u)||a.push(u);return H8(a)}function XGe(e,t){return r=>r.options&&r.options[e]===t}function jm(e){return t=>t.options&&Nc(t.options,e)&&!!t.options[e]}function ITe(e){return t=>t.options&&Nc(t.options,e)&&!t.options[e]}function ly(e){return t=>!t.options||!Nc(t.options,e)||!t.options[e]}function NTe(e){return t=>!t.options||!Nc(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function YGe(e){return t=>!t.options||!Nc(t.options,e)||!!t.options[e]}function ATe(e){return e.contextNode.kind===248}function x5t(e){return!ATe(e)}function zx(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function Mq(e){return!zx(e)}function QGe(e){return!PTe(e)}function PTe(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||RI(t)}function C5t(e){return ls(e.contextNode)&&e.contextNode.questionToken}function k5t(e){return!C5t(e)}function w5t(e){return e.contextNode.kind===227||e.contextNode.kind===194}function LTe(e){return e.TokensAreOnSameLine()||Mse(e)}function ZGe(e){return e.contextNode.kind===206||e.contextNode.kind===200||T5t(e)}function OTe(e){return Mse(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function eKe(e){return tKe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function T5t(e){return tKe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function tKe(e){return iKe(e.contextNode)}function Mse(e){return iKe(e.nextTokenParent)}function iKe(e){if(oKe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function WE(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function E5t(e){return!WE(e)}function nKe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function rKe(e){return oKe(e.contextNode)}function oKe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function D5t(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function Rq(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function sKe(e){return e.contextNode.kind===210}function I5t(e){return e.contextNode.kind===213}function N5t(e){return e.contextNode.kind===214}function A5t(e){return I5t(e)||N5t(e)}function P5t(e){return e.currentTokenSpan.kind!==28}function L5t(e){return e.nextTokenSpan.kind!==24}function O5t(e){return e.nextTokenSpan.kind!==22}function F5t(e){return e.contextNode.kind===219}function M5t(e){return e.contextNode.kind===205}function wo(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function aKe(e){return e.contextNode.kind!==12}function FTe(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function Rse(e){return e.contextNode.kind===294||e.contextNode.kind===293}function R5t(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function cKe(e){return e.contextNode.kind===291}function B5t(e){return e.nextTokenParent.kind!==295}function lKe(e){return e.nextTokenParent.kind===295}function uKe(e){return e.contextNode.kind===285}function j5t(e){return!WE(e)&&!Mse(e)}function W5t(e){return e.TokensAreOnSameLine()&&Pm(e.contextNode)&&dKe(e.currentTokenParent)&&!dKe(e.nextTokenParent)}function dKe(e){for(;e&&Mt(e);)e=e.parent;return e&&e.kind===170}function z5t(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function MTe(e){return e.formattingRequestKind!==2}function V5t(e){return e.contextNode.kind===267}function H5t(e){return e.contextNode.kind===187}function U5t(e){return e.contextNode.kind===180}function fKe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function Bq(e){return fKe(e.currentTokenSpan,e.currentTokenParent)||fKe(e.nextTokenSpan,e.nextTokenParent)}function RTe(e){return e.contextNode.kind===216}function J5t(e){return!RTe(e)}function q5t(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function _Ke(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function $5t(e){return e.contextNode.kind===235}function pKe(e){return!G5t(e)}function G5t(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function K5t(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(t4(t)){let f=e.nextTokenParent===e.currentTokenParent?kT(e.currentTokenParent,Ri(e.currentTokenParent,p=>!p.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!f)return!0;t=f.kind,r=f.getStart(e.sourceFile)}let a=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,u=e.sourceFile.getLineAndCharacterOfPosition(r).line;return a===u?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!ep(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:ls(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function X5t(e){return MJ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Y5t(e){return!lr(e.contextNode)||!Z_(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Q5t(e,t){return{options:e,getRules:Z5t(),host:t}}var BTe;function Z5t(){return BTe===void 0&&(BTe=t9t($Ge())),BTe}function e9t(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function t9t(e){let t=i9t(e);return r=>{let a=t[mKe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(a){let u=[],f=0;for(let p of a){let y=~e9t(f);p.action&y&&Et(p.context,g=>g(r))&&(u.push(p),f|=p.action)}if(u.length)return u}}}function i9t(e){let t=new Array(jTe*jTe),r=new Array(t.length);for(let a of e){let u=a.leftTokenRange.isSpecific&&a.rightTokenRange.isSpecific;for(let f of a.leftTokenRange.tokens)for(let p of a.rightTokenRange.tokens){let y=mKe(f,p),g=t[y];g===void 0&&(g=t[y]=[]),n9t(g,a.rule,u,r,y)}}return t}function mKe(e,t){return B.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*jTe+t}var U8=5,Bse=31,jTe=166,F9=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=U8*1]="StopRulesAny",e[e.ContextRulesSpecific=U8*2]="ContextRulesSpecific",e[e.ContextRulesAny=U8*3]="ContextRulesAny",e[e.NoContextRulesSpecific=U8*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=U8*5]="NoContextRulesAny",e))(F9||{});function n9t(e,t,r,a,u){let f=t.action&3?r?0:F9.StopRulesAny:t.context!==Fse?r?F9.ContextRulesSpecific:F9.ContextRulesAny:r?F9.NoContextRulesSpecific:F9.NoContextRulesAny,p=a[u]||0;e.splice(r9t(p,f),0,t),a[u]=o9t(p,f)}function r9t(e,t){let r=0;for(let a=0;a<=t;a+=U8)r+=e&Bse,e>>=U8;return r}function o9t(e,t){let r=(e>>t&Bse)+1;return B.assert((r&Bse)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Bse<B.formatSyntaxKind(r)}),a}function s9t(e,t,r){let a=t.getLineAndCharacterOfPosition(e).line;if(a===0)return[];let u=CM(a,t);for(;j0(t.text.charCodeAt(u));)u--;Jf(t.text.charCodeAt(u))&&u--;let f={pos:gx(a-1,t),end:u+1};return jq(f,t,r,2)}function a9t(e,t,r){let a=WTe(e,27,t);return hKe(zTe(a),t,r,3)}function c9t(e,t,r){let a=WTe(e,19,t);if(!a)return[];let u=a.parent,f=zTe(u),p={pos:Yh(f.getStart(t),t),end:e};return jq(p,t,r,4)}function l9t(e,t,r){let a=WTe(e,20,t);return hKe(zTe(a),t,r,5)}function u9t(e,t){let r={pos:0,end:e.text.length};return jq(r,e,t,0)}function d9t(e,t,r,a){let u={pos:Yh(e,r),end:t};return jq(u,r,a,1)}function WTe(e,t,r){let a=fd(e,r);return a&&a.kind===t&&e===a.getEnd()?a:void 0}function zTe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!f9t(t.parent,t);)t=t.parent;return t}function f9t(e,t){switch(e.kind){case 263:case 264:return Xp(e.members,t);case 267:let r=e.body;return!!r&&r.kind===268&&Xp(r.statements,t);case 307:case 241:case 268:return Xp(e.statements,t);case 299:return Xp(e.block.statements,t)}return!1}function _9t(e,t){return r(t);function r(a){let u=ws(a,f=>ere(f.getStart(t),f.end,e)&&f);if(u){let f=r(u);if(f)return f}return a}}function p9t(e,t){if(!e.length)return u;let r=e.filter(f=>S8(t,f.start,f.start+f.length)).sort((f,p)=>f.start-p.start);if(!r.length)return u;let a=0;return f=>{for(;;){if(a>=r.length)return!1;let p=r[a];if(f.end<=p.start)return!1;if(hJ(f.pos,f.end,p.start,p.start+p.length))return!0;a++}};function u(){return!1}}function m9t(e,t,r){let a=e.getStart(r);if(a===t.pos&&e.end===t.end)return a;let u=fd(t.pos,r);return!u||u.end>=t.pos?e.pos:u.end}function h9t(e,t,r){let a=-1,u;for(;e;){let f=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(a!==-1&&f!==a)break;if(uy.shouldIndentChildNode(t,e,u,r))return t.indentSize;a=f,u=e,e=e.parent}return 0}function g9t(e,t,r,a,u,f){let p={pos:e.pos,end:e.end};return DTe(t.text,r,p.pos,p.end,y=>gKe(p,e,a,u,y,f,1,g=>!1,t))}function hKe(e,t,r,a){if(!e)return[];let u={pos:Yh(e.getStart(t),t),end:e.end};return jq(u,t,r,a)}function jq(e,t,r,a){let u=_9t(e,t);return DTe(t.text,t.languageVariant,m9t(u,e,t),e.end,f=>gKe(e,u,uy.getIndentationForNode(u,e,t,r.options),h9t(u,r.options,t),f,r,a,p9t(t.parseDiagnostics,e),t))}function gKe(e,t,r,a,u,{options:f,getRules:p,host:y},g,x,k){var T;let A=new UGe(k,g,f),P,R,W,z,q,G=-1,$=[];if(u.advance(),u.isOnToken()){let Ge=k.getLineAndCharacterOfPosition(t.getStart(k)).line,Ke=Ge;Pm(t)&&(Ke=k.getLineAndCharacterOfPosition(UQ(t,k)).line),Ce(t,t,Ge,Ke,r,a)}let te=u.getCurrentLeadingTrivia();if(te){let Ge=uy.nodeWillIndentChild(f,t,void 0,k,!1)?r+f.indentSize:r;he(te,Ge,!0,Ke=>{Ee(Ke,k.getLineAndCharacterOfPosition(Ke.pos),t,t,void 0),be(Ke.pos,Ge,!1)}),f.trimTrailingWhitespace!==!1&&Oe(te)}if(R&&u.getTokenFullStart()>=e.end){let Ge=u.isOnEOF()?u.readEOFTokenRange():u.isOnToken()?u.readTokenInfo(t).token:void 0;if(Ge&&Ge.pos===P){let Ke=((T=fd(Ge.end,k,t))==null?void 0:T.parent)||W;ve(Ge,k.getLineAndCharacterOfPosition(Ge.pos).line,Ke,R,z,W,Ke,void 0)}}return $;function ne(Ge,Ke,Ue,gt,xt){if(S8(gt,Ge,Ke)||z5(gt,Ge,Ke)){if(xt!==-1)return xt}else{let nt=k.getLineAndCharacterOfPosition(Ge).line,At=Yh(Ge,k),ci=uy.findFirstNonWhitespaceColumn(At,Ge,k,f);if(nt!==Ue||Ge===ci){let Fi=uy.getBaseIndentation(f);return Fi>ci?Fi:ci}}return-1}function _e(Ge,Ke,Ue,gt,xt,nt){let At=uy.shouldIndentChildNode(f,Ge)?f.indentSize:0;return nt===Ke?{indentation:Ke===q?G:xt.getIndentation(),delta:Math.min(f.indentSize,xt.getDelta(Ge)+At)}:Ue===-1?Ge.kind===21&&Ke===q?{indentation:G,delta:xt.getDelta(Ge)}:uy.childStartsOnTheSameLineWithElseInIfStatement(gt,Ge,Ke,k)||uy.childIsUnindentedBranchOfConditionalExpression(gt,Ge,Ke,k)||uy.argumentStartsOnSameLineAsPreviousArgument(gt,Ge,Ke,k)?{indentation:xt.getIndentation(),delta:At}:{indentation:xt.getIndentation()+xt.getDelta(Ge),delta:At}:{indentation:Ue,delta:At}}function ce(Ge){if(Kh(Ge)){let Ke=St(Ge.modifiers,xa,zi(Ge.modifiers,Td));if(Ke)return Ke.kind}switch(Ge.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(Ge.asteriskToken)return 42;case 172:case 169:let Ke=cs(Ge);if(Ke)return Ke.kind}}function ae(Ge,Ke,Ue,gt){return{getIndentationForComment:(At,ci,Fi)=>{switch(At){case 20:case 24:case 22:return Ue+nt(Fi)}return ci!==-1?ci:Ue},getIndentationForToken:(At,ci,Fi,bn)=>!bn&&xt(At,ci,Fi)?Ue+nt(Fi):Ue,getIndentation:()=>Ue,getDelta:nt,recomputeIndentation:(At,ci)=>{uy.shouldIndentChildNode(f,ci,Ge,k)&&(Ue+=At?f.indentSize:-f.indentSize,gt=uy.shouldIndentChildNode(f,Ge)?f.indentSize:0)}};function xt(At,ci,Fi){switch(ci){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Fi.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(Fi.kind!==200)return!1;break}return Ke!==At&&!(Pm(Ge)&&ci===ce(Ge))}function nt(At){return uy.nodeWillIndentChild(f,Ge,At,k,!0)?gt:0}}function Ce(Ge,Ke,Ue,gt,xt,nt){if(!S8(e,Ge.getStart(k),Ge.getEnd()))return;let At=ae(Ge,Ue,xt,nt),ci=Ke;for(ws(Ge,ni=>{Fi(ni,-1,Ge,At,Ue,gt,!1)},ni=>{bn(ni,Ge,Ue,At)});u.isOnToken()&&u.getTokenFullStart()Math.min(Ge.end,e.end))break;an(ni,Ge,At,Ge)}function Fi(ni,Ci,Sn,nn,Br,Gr,is,Ao){if(B.assert(!Uc(ni)),Ul(ni)||yhe(Sn,ni))return Ci;let Rr=ni.getStart(k),xn=k.getLineAndCharacterOfPosition(Rr).line,Eo=xn;Pm(ni)&&(Eo=k.getLineAndCharacterOfPosition(UQ(ni,k)).line);let it=-1;if(is&&Xp(e,Sn)&&(it=ne(Rr,ni.end,Br,e,Ci),it!==-1&&(Ci=it)),!S8(e,ni.pos,ni.end))return ni.ende.end)return Ci;if(Qn.token.end>Rr){Qn.token.pos>Rr&&u.skipToStartOf(ni);break}an(Qn,Ge,nn,Ge)}if(!u.isOnToken()||u.getTokenFullStart()>=e.end)return Ci;if(MI(ni)){let Qn=u.readTokenInfo(ni);if(ni.kind!==12)return B.assert(Qn.token.end===ni.end,"Token end is child end"),an(Qn,Ge,nn,ni),Ci}let si=ni.kind===170?xn:Gr,dn=_e(ni,xn,it,Ge,nn,si);return Ce(ni,ci,xn,Eo,dn.indentation,dn.delta),ci=Ge,Ao&&Sn.kind===209&&Ci===-1&&(Ci=dn.indentation),Ci}function bn(ni,Ci,Sn,nn){B.assert(jw(ni)),B.assert(!Uc(ni));let Br=y9t(Ci,ni),Gr=nn,is=Sn;if(!S8(e,ni.pos,ni.end)){ni.endni.pos)break;if(xn.token.kind===Br){is=k.getLineAndCharacterOfPosition(xn.token.pos).line,an(xn,Ci,nn,Ci);let Eo;if(G!==-1)Eo=G;else{let it=Yh(xn.token.pos,k);Eo=uy.findFirstNonWhitespaceColumn(it,xn.token.pos,k,f)}Gr=ae(Ci,Sn,Eo,f.indentSize)}else an(xn,Ci,nn,Ci)}let Ao=-1;for(let xn=0;xnbe(dn.pos,si,!1))}Eo!==-1&&it&&(be(ni.token.pos,Eo,Ao===1),q=xn.line,G=Eo)}u.advance(),ci=Ci}}function he(Ge,Ke,Ue,gt){for(let xt of Ge){let nt=Xp(e,xt);switch(xt.kind){case 3:nt&&ie(xt,Ke,!Ue),Ue=!1;break;case 2:Ue&&nt&>(xt),Ue=!1;break;case 4:Ue=!0;break}}return Ue}function ue(Ge,Ke,Ue,gt){for(let xt of Ge)if(CJ(xt.kind)&&Xp(e,xt)){let nt=k.getLineAndCharacterOfPosition(xt.pos);Ee(xt,nt,Ke,Ue,gt)}}function Ee(Ge,Ke,Ue,gt,xt){let nt=x(Ge),At=0;if(!nt)if(R)At=ve(Ge,Ke.line,Ue,R,z,W,gt,xt);else{let ci=k.getLineAndCharacterOfPosition(e.pos);ke(ci.line,Ke.line)}return R=Ge,P=Ge.end,W=Ue,z=Ke.line,At}function ve(Ge,Ke,Ue,gt,xt,nt,At,ci){A.updateContext(gt,nt,Ge,Ue,At);let Fi=p(A),bn=A.options.trimTrailingWhitespace!==!1,an=0;return Fi?Pe(Fi,ni=>{if(an=Be(ni,gt,xt,Ge,Ke),ci)switch(an){case 2:Ue.getStart(k)===Ge.pos&&ci.recomputeIndentation(!1,At);break;case 1:Ue.getStart(k)===Ge.pos&&ci.recomputeIndentation(!0,At);break;default:B.assert(an===0)}bn=bn&&!(ni.action&16)&&ni.flags!==1}):bn=bn&&Ge.kind!==1,Ke!==xt&&bn&&ke(xt,Ke,gt),an}function be(Ge,Ke,Ue){let gt=VTe(Ke,f);if(Ue)Fe(Ge,0,gt);else{let xt=k.getLineAndCharacterOfPosition(Ge),nt=gx(xt.line,k);(Ke!==Se(nt,xt.character)||Re(gt,nt))&&Fe(nt,xt.character,gt)}}function Se(Ge,Ke){let Ue=0;for(let gt=0;gt0){let Gr=VTe(Br,f);Fe(Sn,nn.character,Gr)}else Ae(Sn,nn.character)}}function ke(Ge,Ke,Ue){for(let gt=Ge;gtnt)continue;let At=De(xt,nt);At!==-1&&(B.assert(At===xt||!j0(k.text.charCodeAt(At-1))),Ae(At,nt+1-At))}}function De(Ge,Ke){let Ue=Ke;for(;Ue>=Ge&&j0(k.text.charCodeAt(Ue));)Ue--;return Ue!==Ke?Ue+1:-1}function Oe(Ge){let Ke=R?R.end:e.pos;for(let Ue of Ge)CJ(Ue.kind)&&(KeW5(x,t)||t===x.end&&(x.kind===2||t===e.getFullWidth()))}function y9t(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function v9t(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var Wse,M9,R9;function VTe(e,t){if((!Wse||Wse.tabSize!==t.tabSize||Wse.indentSize!==t.indentSize)&&(Wse={tabSize:t.tabSize,indentSize:t.indentSize},M9=R9=void 0),t.convertTabsToSpaces){let a,u=Math.floor(e/t.indentSize),f=e%t.indentSize;return R9||(R9=[]),R9[u]===void 0?(a=q5(" ",t.indentSize*u),R9[u]=a):a=R9[u],f?a+q5(" ",f):a}else{let a=Math.floor(e/t.tabSize),u=e-a*t.tabSize,f;return M9||(M9=[]),M9[a]===void 0?M9[a]=f=q5(" ",a):f=M9[a],u?f+q5(" ",u):f}}var uy;(e=>{let t;(ie=>{ie[ie.Unknown=-1]="Unknown"})(t||(t={}));function r(ie,ke,De,Oe=!1){if(ie>ke.text.length)return y(De);if(De.indentStyle===0)return 0;let we=fd(ie,ke,void 0,!0),Ae=yKe(ke,ie,we||null);if(Ae&&Ae.kind===3)return a(ke,ie,De,Ae);if(!we)return y(De);if(cre(we.kind)&&we.getStart(ke)<=ie&&ie=0),we<=Ae)return Ee(gx(Ae,ie),ke,ie,De);let Fe=gx(we,ie),{column:Tt,character:Be}=ue(Fe,ke,ie,De);return Tt===0?Tt:ie.text.charCodeAt(Fe+Be)===42?Tt-1:Tt}function u(ie,ke,De){let Oe=ke;for(;Oe>0;){let Ae=ie.text.charCodeAt(Oe);if(!Fv(Ae))break;Oe--}let we=Yh(Oe,ie);return Ee(we,Oe,ie,De)}function f(ie,ke,De,Oe,we,Ae){let Fe,Tt=De;for(;Tt;){if(tre(Tt,ke,ie)&&Se(Ae,Tt,Fe,ie,!0)){let Ge=R(Tt,ie),Ke=P(De,Tt,Oe,ie),Ue=Ke!==0?we&&Ke===2?Ae.indentSize:0:Oe!==Ge.line?Ae.indentSize:0;return g(Tt,Ge,void 0,Ue,ie,!0,Ae)}let Be=ae(Tt,ie,Ae,!0);if(Be!==-1)return Be;Fe=Tt,Tt=Tt.parent}return y(Ae)}function p(ie,ke,De,Oe){let we=De.getLineAndCharacterOfPosition(ie.getStart(De));return g(ie,we,ke,0,De,!1,Oe)}e.getIndentationForNode=p;function y(ie){return ie.baseIndentSize||0}e.getBaseIndentation=y;function g(ie,ke,De,Oe,we,Ae,Fe){var Tt;let Be=ie.parent;for(;Be;){let Ge=!0;if(De){let xt=ie.getStart(we);Ge=xtDe.end}let Ke=x(Be,ie,we),Ue=Ke.line===ke.line||z(Be,ie,ke.line,we);if(Ge){let xt=(Tt=$(ie,we))==null?void 0:Tt[0],nt=!!xt&&R(xt,we).line>Ke.line,At=ae(ie,we,Fe,nt);if(At!==-1||(At=T(ie,Be,ke,Ue,we,Fe),At!==-1))return At+Oe}Se(Fe,Be,ie,we,Ae)&&!Ue&&(Oe+=Fe.indentSize);let gt=W(Be,ie,ke.line,we);ie=Be,Be=ie.parent,ke=gt?we.getLineAndCharacterOfPosition(ie.getStart(we)):Ke}return Oe+y(Fe)}function x(ie,ke,De){let Oe=$(ke,De),we=Oe?Oe.pos:ie.getStart(De);return De.getLineAndCharacterOfPosition(we)}function k(ie,ke,De){let Oe=wSe(ie);return Oe&&Oe.listItemIndex>0?Ce(Oe.list.getChildren(),Oe.listItemIndex-1,ke,De):-1}function T(ie,ke,De,Oe,we,Ae){return(mf(ie)||bM(ie))&&(ke.kind===307||!Oe)?he(De,we,Ae):-1}let A;(ie=>{ie[ie.Unknown=0]="Unknown",ie[ie.OpenBrace=1]="OpenBrace",ie[ie.CloseBrace=2]="CloseBrace"})(A||(A={}));function P(ie,ke,De,Oe){let we=kT(ie,ke,Oe);if(!we)return 0;if(we.kind===19)return 1;if(we.kind===20){let Ae=R(we,Oe).line;return De===Ae?2:0}return 0}function R(ie,ke){return ke.getLineAndCharacterOfPosition(ie.getStart(ke))}function W(ie,ke,De,Oe){if(!(Gs(ie)&&sn(ie.arguments,ke)))return!1;let we=ie.expression.getEnd();return ma(Oe,we).line===De}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=W;function z(ie,ke,De,Oe){if(ie.kind===245&&ie.elseStatement===ke){let we=Tc(ie,93,Oe);return B.assert(we!==void 0),R(we,Oe).line===De}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=z;function q(ie,ke,De,Oe){if(EN(ie)&&(ke===ie.whenTrue||ke===ie.whenFalse)){let we=ma(Oe,ie.condition.end).line;if(ke===ie.whenTrue)return De===we;{let Ae=R(ie.whenTrue,Oe).line,Fe=ma(Oe,ie.whenTrue.end).line;return we===Ae&&Fe===De}}return!1}e.childIsUnindentedBranchOfConditionalExpression=q;function G(ie,ke,De,Oe){if(W0(ie)){if(!ie.arguments)return!1;let we=St(ie.arguments,Be=>Be.pos===ke.pos);if(!we)return!1;let Ae=ie.arguments.indexOf(we);if(Ae===0)return!1;let Fe=ie.arguments[Ae-1],Tt=ma(Oe,Fe.getEnd()).line;if(De===Tt)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=G;function $(ie,ke){return ie.parent&&ne(ie.getStart(ke),ie.getEnd(),ie.parent,ke)}e.getContainingList=$;function te(ie,ke,De){return ke&&ne(ie,ie,ke,De)}function ne(ie,ke,De,Oe){switch(De.kind){case 183:return we(De.typeArguments);case 210:return we(De.properties);case 209:return we(De.elements);case 187:return we(De.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return we(De.typeParameters)||we(De.parameters);case 177:return we(De.parameters);case 263:case 231:case 264:case 265:case 345:return we(De.typeParameters);case 214:case 213:return we(De.typeArguments)||we(De.arguments);case 261:return we(De.declarations);case 275:case 279:return we(De.elements);case 206:case 207:return we(De.elements)}function we(Ae){return Ae&&z5(_e(De,Ae,Oe),ie,ke)?Ae:void 0}}function _e(ie,ke,De){let Oe=ie.getChildren(De);for(let we=1;we=0&&ke=0;Fe--){if(ie[Fe].kind===28)continue;if(De.getLineAndCharacterOfPosition(ie[Fe].end).line!==Ae.line)return he(Ae,De,Oe);Ae=R(ie[Fe],De)}return-1}function he(ie,ke,De){let Oe=ke.getPositionOfLineAndCharacter(ie.line,0);return Ee(Oe,Oe+ie.character,ke,De)}function ue(ie,ke,De,Oe){let we=0,Ae=0;for(let Fe=ie;FeS9t});var b9t="providePostPasteEdits";function S9t(e,t,r,a,u,f,p,y){return{edits:Vn.ChangeTracker.with({host:u,formatContext:p,preferences:f},x=>x9t(e,t,r,a,u,f,p,y,x)),fixId:b9t}}function x9t(e,t,r,a,u,f,p,y,g){let x;t.length!==r.length&&(x=t.length===1?t[0]:t.join(cb(p.host,p.options)));let k=[],T=e.text;for(let P=r.length-1;P>=0;P--){let{pos:R,end:W}=r[P];T=x?T.slice(0,R)+x+T.slice(W):T.slice(0,R)+t[P]+T.slice(W)}let A;B.checkDefined(u.runWithTemporaryFileUpdate).call(u,e.fileName,T,(P,R,W)=>{if(A=Qf.createImportAdder(W,P,f,u),a?.range){B.assert(a.range.length===t.length),a.range.forEach(G=>{let $=a.file.statements,te=zi($,_e=>_e.end>G.pos);if(te===-1)return;let ne=zi($,_e=>_e.end>=G.end,te);ne!==-1&&G.end<=$[ne].getStart()&&ne--,k.push(...$.slice(te,ne===-1?$.length:ne+1))});let z=eq(a.file,k,R.getTypeChecker(),lCe(W,k,R.getTypeChecker()),{pos:a.range[0].pos,end:a.range[a.range.length-1].end});B.assertIsDefined(R);let q=!qre(e.fileName,R,u,!!a.file.commonJsModuleIndicator);tCe(a.file,z.targetFileImportsFromOldFile,g,q),dCe(a.file,z.oldImportsNeededByTargetFile,z.targetFileImportsFromOldFile,R.getTypeChecker(),P,A)}else{let z={sourceFile:W,program:R,cancellationToken:y,host:u,preferences:f,formatContext:p},q=0;r.forEach((G,$)=>{let te=G.end-G.pos,ne=x??t[$],_e=G.pos+q,ce=_e+ne.length,ae={pos:_e,end:ce};q+=ne.length-te;let Ce=Ri(go(z.sourceFile,ae.pos),he=>Xp(he,ae));Ce&&ws(Ce,function he(ue){if(et(ue)&&b8(ae,ue.getStart(W))&&!P?.getTypeChecker().resolveName(ue.text,ue,-1,!1))return A.addImportForUnresolvedIdentifier(z,ue,!0);ue.forEachChild(he)})})}A.writeFixes(g,mm(a?a.file:e,f))}),A.hasFixes()&&r.forEach((P,R)=>{g.replaceRangeWithText(e,{pos:P.pos,end:P.end},x??t[R])})}var vKe={};_(vKe,{ANONYMOUS:()=>Mre,AccessFlags:()=>Tpe,AssertionLevel:()=>M_e,AssignmentDeclarationKind:()=>Fpe,AssignmentKind:()=>sge,Associativity:()=>pge,BreakpointResolver:()=>Loe,BuilderFileEmit:()=>abe,BuilderProgramKind:()=>mbe,BuilderState:()=>r0,CallHierarchy:()=>QN,CharacterCodes:()=>qpe,CheckFlags:()=>xpe,CheckMode:()=>tie,ClassificationType:()=>Une,ClassificationTypeNames:()=>gSe,CommentDirectiveType:()=>ape,Comparison:()=>j,CompletionInfoFlags:()=>uSe,CompletionTriggerKind:()=>Vne,Completions:()=>nA,ContainerFlags:()=>Hve,ContextFlags:()=>ppe,Debug:()=>B,DiagnosticCategory:()=>qW,Diagnostics:()=>S,DocumentHighlights:()=>KJ,ElementFlags:()=>wpe,EmitFlags:()=>XY,EmitHint:()=>Ype,EmitOnly:()=>lpe,EndOfLineState:()=>_Se,ExitStatus:()=>upe,ExportKind:()=>lxe,Extension:()=>$pe,ExternalEmitHelpers:()=>Xpe,FileIncludeKind:()=>WY,FilePreprocessingDiagnosticsKind:()=>cpe,FileSystemEntryKind:()=>sme,FileWatcherEventKind:()=>nme,FindAllReferences:()=>ol,FlattenLevel:()=>u1e,FlowFlags:()=>JW,ForegroundColorEscapeSequences:()=>Z1e,FunctionFlags:()=>fge,GeneratedIdentifierFlags:()=>jY,GetLiteralTextFlags:()=>She,GoToDefinition:()=>c6,HighlightSpanKind:()=>cSe,IdentifierNameMap:()=>B4,ImportKind:()=>cxe,ImportsNotUsedAsValues:()=>zpe,IndentStyle:()=>lSe,IndexFlags:()=>Epe,IndexKind:()=>Npe,InferenceFlags:()=>Lpe,InferencePriority:()=>Ppe,InlayHintKind:()=>aSe,InlayHints:()=>Cse,InternalEmitFlags:()=>Gpe,InternalNodeBuilderFlags:()=>hpe,InternalSymbolName:()=>Cpe,IntersectionFlags:()=>_pe,InvalidatedProjectKind:()=>Bbe,JSDocParsingMode:()=>ime,JsDoc:()=>Ok,JsTyping:()=>cy,JsxEmit:()=>Wpe,JsxFlags:()=>npe,JsxReferenceKind:()=>Dpe,LanguageFeatureMinimumTarget:()=>Kpe,LanguageServiceMode:()=>oSe,LanguageVariant:()=>Upe,LexicalEnvironmentFlags:()=>Zpe,ListFormat:()=>eme,LogLevel:()=>q_e,MapCode:()=>kse,MemberOverrideStatus:()=>dpe,ModifierFlags:()=>RY,ModuleDetectionKind:()=>Mpe,ModuleInstanceState:()=>zve,ModuleKind:()=>G7,ModuleResolutionKind:()=>g3,ModuleSpecifierEnding:()=>d0e,NavigateTo:()=>Pxe,NavigationBar:()=>Oxe,NewLineKind:()=>Vpe,NodeBuilderFlags:()=>mpe,NodeCheckFlags:()=>HY,NodeFactoryFlags:()=>B0e,NodeFlags:()=>MY,NodeResolutionFeatures:()=>Ave,ObjectFlags:()=>JY,OperationCanceledException:()=>h3,OperatorPrecedence:()=>mge,OrganizeImports:()=>Fk,OrganizeImportsMode:()=>zne,OuterExpressionKinds:()=>Qpe,OutliningElementsCollector:()=>Tse,OutliningSpanKind:()=>dSe,OutputFileType:()=>fSe,PackageJsonAutoImportPreference:()=>rSe,PackageJsonDependencyGroup:()=>nSe,PatternMatchKind:()=>toe,PollingInterval:()=>YY,PollingWatchKind:()=>jpe,PragmaKindFlags:()=>tme,PredicateSemantics:()=>rpe,PrivateIdentifierKind:()=>G0e,ProcessLevel:()=>p1e,ProgramUpdateLevel:()=>G1e,QuotePreference:()=>jSe,RegularExpressionFlags:()=>ope,RelationComparisonResult:()=>BY,Rename:()=>Oq,ScriptElementKind:()=>mSe,ScriptElementKindModifier:()=>hSe,ScriptKind:()=>$Y,ScriptSnapshot:()=>aJ,ScriptTarget:()=>Hpe,SemanticClassificationFormat:()=>sSe,SemanticMeaning:()=>ySe,SemicolonPreference:()=>Hne,SignatureCheckMode:()=>iie,SignatureFlags:()=>qY,SignatureHelp:()=>I9,SignatureInfo:()=>sbe,SignatureKind:()=>Ipe,SmartSelectionRange:()=>Ise,SnippetKind:()=>KY,StatisticType:()=>$be,StructureIsReused:()=>zY,SymbolAccessibility:()=>vpe,SymbolDisplay:()=>SS,SymbolDisplayPartKind:()=>lJ,SymbolFlags:()=>VY,SymbolFormatFlags:()=>ype,SyntaxKind:()=>FY,Ternary:()=>Ope,ThrottledCancellationToken:()=>VCe,TokenClass:()=>pSe,TokenFlags:()=>spe,TransformFlags:()=>GY,TypeFacts:()=>eie,TypeFlags:()=>UY,TypeFormatFlags:()=>gpe,TypeMapKind:()=>Ape,TypePredicateKind:()=>bpe,TypeReferenceSerializationKind:()=>Spe,UnionReduction:()=>fpe,UpToDateStatusType:()=>Abe,VarianceFlags:()=>kpe,Version:()=>Ug,VersionRange:()=>UW,WatchDirectoryFlags:()=>Jpe,WatchDirectoryKind:()=>Bpe,WatchFileKind:()=>Rpe,WatchLogLevel:()=>X1e,WatchType:()=>Fd,accessPrivateIdentifier:()=>l1e,addEmitFlags:()=>Y0,addEmitHelper:()=>gN,addEmitHelpers:()=>ib,addInternalEmitFlags:()=>mN,addNodeFactoryPatcher:()=>F7e,addObjectAllocatorPatcher:()=>S7e,addRange:()=>Fn,addRelatedInfo:()=>Xs,addSyntheticLeadingComment:()=>DO,addSyntheticTrailingComment:()=>lH,addToSeen:()=>Uh,advancedAsyncSuperHelper:()=>_H,affectsDeclarationPathOptionDeclarations:()=>eve,affectsEmitOptionDeclarations:()=>Zye,allKeysStartWithDot:()=>cU,altDirectorySeparator:()=>XW,and:()=>zW,append:()=>hi,appendIfUnique:()=>Qd,arrayFrom:()=>as,arrayIsEqualTo:()=>Lr,arrayIsHomogeneous:()=>b0e,arrayOf:()=>TK,arrayReverseIterator:()=>E0,arrayToMap:()=>gd,arrayToMultiMap:()=>$c,arrayToNumericMap:()=>Go,assertType:()=>Q8e,assign:()=>vw,asyncSuperHelper:()=>fH,attachFileToDiagnostics:()=>cN,base64decode:()=>Bge,base64encode:()=>Rge,binarySearch:()=>H1,binarySearchKey:()=>Ub,bindSourceFile:()=>Uve,breakIntoCharacterSpans:()=>kxe,breakIntoWordSpans:()=>wxe,buildLinkParts:()=>$Se,buildOpts:()=>i5,buildOverload:()=>xKe,bundlerModuleNameResolver:()=>Pve,canBeConvertedToAsync:()=>aoe,canEmitTsBuildInfo:()=>kie,canHaveDecorators:()=>hT,canHaveExportModifier:()=>DR,canHaveFlowNode:()=>YM,canHaveIllegalDecorators:()=>lte,canHaveIllegalModifiers:()=>Lye,canHaveIllegalType:()=>aMe,canHaveIllegalTypeParameters:()=>Pye,canHaveJSDoc:()=>QM,canHaveLocals:()=>Uy,canHaveModifiers:()=>Kh,canHaveModuleSpecifier:()=>nge,canHaveSymbol:()=>$g,canIncludeBindAndCheckDiagnostics:()=>vO,canJsonReportNoInputFiles:()=>KO,canProduceDiagnostics:()=>kU,canUsePropertyAccess:()=>bee,canWatchAffectingLocation:()=>Cbe,canWatchAtTypes:()=>xbe,canWatchDirectoryOrFile:()=>UU,cartesianProduct:()=>U_e,cast:()=>ea,chainBundle:()=>n0,chainDiagnosticMessages:()=>bs,changeAnyExtension:()=>Y7,changeCompilerHostLikeToUseCache:()=>f8,changeExtension:()=>Tx,changeFullExtension:()=>QW,changesAffectModuleResolution:()=>wz,changesAffectingProgramStructure:()=>_he,characterCodeToRegularExpressionFlag:()=>cQ,childIsDecorated:()=>J3,classElementOrClassElementParameterIsDecorated:()=>aZ,classHasClassThisAssignment:()=>hie,classHasDeclaredOrExplicitlyAssignedName:()=>gie,classHasExplicitlyAssignedName:()=>SU,classOrConstructorParameterIsDecorated:()=>iS,classicNameResolver:()=>jve,classifier:()=>qCe,cleanExtendedConfigCache:()=>IU,clear:()=>Ls,clearMap:()=>gp,clearSharedExtendedConfigFileWatcher:()=>Pie,climbPastPropertyAccess:()=>fJ,clone:()=>LC,cloneCompilerOptions:()=>ure,closeFileWatcher:()=>kg,closeFileWatcherOf:()=>mh,codefix:()=>Qf,collapseTextChangeRangesAcrossMultipleVersions:()=>Dme,collectExternalModuleInfo:()=>fie,combine:()=>tl,combinePaths:()=>xr,commandLineOptionOfCustomType:()=>nve,commentPragmas:()=>$W,commonOptionsWithBuild:()=>zH,compact:()=>zr,compareBooleans:()=>JC,compareDataObjects:()=>XZ,compareDiagnostics:()=>_O,compareEmitHelpers:()=>X0e,compareNumberOfDirectorySeparators:()=>TR,comparePaths:()=>J1,comparePathsCaseInsensitive:()=>SFe,comparePathsCaseSensitive:()=>bFe,comparePatternKeys:()=>$te,compareProperties:()=>W_e,compareStringsCaseInsensitive:()=>U7,compareStringsCaseInsensitiveEslintCompatible:()=>R_e,compareStringsCaseSensitive:()=>Ff,compareStringsCaseSensitiveUI:()=>J7,compareTextSpans:()=>jW,compareValues:()=>Kc,compilerOptionsAffectDeclarationPath:()=>r0e,compilerOptionsAffectEmit:()=>n0e,compilerOptionsAffectSemanticDiagnostics:()=>i0e,compilerOptionsDidYouMeanDiagnostics:()=>JH,compilerOptionsIndicateEsModules:()=>hre,computeCommonSourceDirectoryOfFilenames:()=>Y1e,computeLineAndCharacterOfPosition:()=>NP,computeLineOfPosition:()=>x3,computeLineStarts:()=>OI,computePositionOfLineAndCharacter:()=>iz,computeSignatureWithDiagnostics:()=>Zie,computeSuggestionDiagnostics:()=>roe,computedOptions:()=>ld,concatenate:()=>Fo,concatenateDiagnosticMessageChains:()=>Yge,consumesNodeCoreModules:()=>WJ,contains:()=>sn,containsIgnoredPath:()=>xO,containsObjectRestOrSpread:()=>QR,containsParseError:()=>VI,containsPath:()=>nh,convertCompilerOptionsForTelemetry:()=>vve,convertCompilerOptionsFromJson:()=>mRe,convertJsonOption:()=>EE,convertToBase64:()=>Mge,convertToJson:()=>o5,convertToObject:()=>fve,convertToOptionsWithAbsolutePaths:()=>KH,convertToRelativePath:()=>b3,convertToTSConfig:()=>Ate,convertTypeAcquisitionFromJson:()=>hRe,copyComments:()=>OE,copyEntries:()=>Tz,copyLeadingComments:()=>e6,copyProperties:()=>Lv,copyTrailingAsLeadingComments:()=>Z5,copyTrailingComments:()=>D8,couldStartTrivia:()=>mme,countWhere:()=>er,createAbstractBuilder:()=>k9e,createAccessorPropertyBackingField:()=>fte,createAccessorPropertyGetRedirector:()=>zye,createAccessorPropertySetRedirector:()=>Vye,createBaseNodeFactory:()=>L0e,createBinaryExpressionTrampoline:()=>RH,createBuilderProgram:()=>ene,createBuilderProgramUsingIncrementalBuildInfo:()=>vbe,createBuilderStatusReporter:()=>ZU,createCacheableExportInfoMap:()=>$re,createCachedDirectoryStructureHost:()=>EU,createClassifier:()=>ije,createCommentDirectivesMap:()=>vhe,createCompilerDiagnostic:()=>Dl,createCompilerDiagnosticForInvalidCustomType:()=>rve,createCompilerDiagnosticFromMessageChain:()=>AV,createCompilerHost:()=>Q1e,createCompilerHostFromProgramHost:()=>vne,createCompilerHostWorker:()=>NU,createDetachedDiagnostic:()=>aN,createDiagnosticCollection:()=>cR,createDiagnosticForFileFromMessageChain:()=>iZ,createDiagnosticForNode:()=>Mn,createDiagnosticForNodeArray:()=>HP,createDiagnosticForNodeArrayFromMessageChain:()=>DM,createDiagnosticForNodeFromMessageChain:()=>zv,createDiagnosticForNodeInSourceFile:()=>oh,createDiagnosticForRange:()=>Lhe,createDiagnosticMessageChainFromDiagnostic:()=>Phe,createDiagnosticReporter:()=>HN,createDocumentPositionMapper:()=>r1e,createDocumentRegistry:()=>_xe,createDocumentRegistryInternal:()=>Qre,createEmitAndSemanticDiagnosticsBuilderProgram:()=>rne,createEmitHelperFactory:()=>K0e,createEmptyExports:()=>JR,createEvaluator:()=>N0e,createExpressionForJsxElement:()=>Tye,createExpressionForJsxFragment:()=>Eye,createExpressionForObjectLiteralElementLike:()=>Dye,createExpressionForPropertyName:()=>nte,createExpressionFromEntityName:()=>qR,createExternalHelpersImportDeclarationIfNeeded:()=>ste,createFileDiagnostic:()=>kd,createFileDiagnosticFromMessageChain:()=>Rz,createFlowNode:()=>ev,createForOfBindingStatement:()=>ite,createFutureSourceFile:()=>qJ,createGetCanonicalFileName:()=>df,createGetIsolatedDeclarationErrors:()=>R1e,createGetSourceFile:()=>Rie,createGetSymbolAccessibilityDiagnosticForNode:()=>mS,createGetSymbolAccessibilityDiagnosticForNodeName:()=>M1e,createGetSymbolWalker:()=>Jve,createIncrementalCompilerHost:()=>QU,createIncrementalProgram:()=>Nbe,createJsxFactoryExpression:()=>tte,createLanguageService:()=>HCe,createLanguageServiceSourceFile:()=>dq,createMemberAccessForPropertyName:()=>wE,createModeAwareCache:()=>L4,createModeAwareCacheKey:()=>ZO,createModeMismatchDetails:()=>WQ,createModuleNotFoundChain:()=>Dz,createModuleResolutionCache:()=>O4,createModuleResolutionLoader:()=>Uie,createModuleResolutionLoaderUsingGlobalCache:()=>Ebe,createModuleSpecifierResolutionHost:()=>$N,createMultiMap:()=>Dm,createNameResolver:()=>wee,createNodeConverters:()=>M0e,createNodeFactory:()=>PR,createOptionNameMap:()=>HH,createOverload:()=>Vse,createPackageJsonImportFilter:()=>t6,createPackageJsonInfo:()=>jre,createParenthesizerRules:()=>O0e,createPatternMatcher:()=>yxe,createPrinter:()=>Bx,createPrinterWithDefaults:()=>q1e,createPrinterWithRemoveComments:()=>bT,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>$1e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Aie,createProgram:()=>D5,createProgramHost:()=>bne,createPropertyNameNodeForIdentifierOrLiteral:()=>eH,createQueue:()=>H7,createRange:()=>ah,createRedirectedBuilderProgram:()=>nne,createResolutionCache:()=>sne,createRuntimeTypeSerializer:()=>v1e,createScanner:()=>Rv,createSemanticDiagnosticsBuilderProgram:()=>C9e,createSet:()=>xY,createSolutionBuilder:()=>Fbe,createSolutionBuilderHost:()=>Lbe,createSolutionBuilderWithWatch:()=>Mbe,createSolutionBuilderWithWatchHost:()=>Obe,createSortedArray:()=>Vo,createSourceFile:()=>ON,createSourceMapGenerator:()=>Zve,createSourceMapSource:()=>j7e,createSuperAccessVariableStatement:()=>CU,createSymbolTable:()=>ta,createSymlinkCache:()=>see,createSyntacticTypeNodeBuilder:()=>eSe,createSystemWatchFunctions:()=>ame,createTextChange:()=>J5,createTextChangeFromStartLength:()=>wJ,createTextChangeRange:()=>aM,createTextRangeFromNode:()=>_re,createTextRangeFromSpan:()=>kJ,createTextSpan:()=>_f,createTextSpanFromBounds:()=>bu,createTextSpanFromNode:()=>B_,createTextSpanFromRange:()=>yS,createTextSpanFromStringLiteralLikeContent:()=>fre,createTextWriter:()=>dR,createTokenRange:()=>qZ,createTypeChecker:()=>Yve,createTypeReferenceDirectiveResolutionCache:()=>rU,createTypeReferenceResolutionLoader:()=>LU,createWatchCompilerHost:()=>O9e,createWatchCompilerHostOfConfigFile:()=>Sne,createWatchCompilerHostOfFilesAndCompilerOptions:()=>xne,createWatchFactory:()=>yne,createWatchHost:()=>gne,createWatchProgram:()=>Cne,createWatchStatusReporter:()=>ane,createWriteFileMeasuringIO:()=>Bie,declarationNameToString:()=>Hc,decodeMappings:()=>lie,decodedTextSpanIntersectsWith:()=>sM,deduplicate:()=>hs,defaultInitCompilerOptions:()=>kte,defaultMaximumTruncationLength:()=>j3,diagnosticCategoryName:()=>q2,diagnosticToString:()=>TT,diagnosticsEqualityComparer:()=>PV,directoryProbablyExists:()=>Xg,directorySeparator:()=>wl,displayPart:()=>vp,displayPartsToString:()=>p9,disposeEmitNodes:()=>Iee,documentSpansEqual:()=>Cre,dumpTracingLegend:()=>ipe,elementAt:()=>Wg,elideNodes:()=>Wye,emitDetachedComments:()=>Tge,emitFiles:()=>Iie,emitFilesAndReportErrors:()=>GU,emitFilesAndReportErrorsAndGetExitStatus:()=>hne,emitModuleKindIsNonNodeESM:()=>CR,emitNewLineBeforeLeadingCommentOfPosition:()=>wge,emitResolverSkipsTypeChecking:()=>Die,emitSkippedWithNoDiagnostics:()=>Gie,emptyArray:()=>F,emptyFileSystemEntries:()=>fee,emptyMap:()=>X,emptyOptions:()=>Xh,endsWith:()=>Wl,ensurePathIsNonModuleName:()=>G2,ensureScriptKind:()=>UV,ensureTrailingDirectorySeparator:()=>xd,entityNameToString:()=>zp,enumerateInsertsAndDeletes:()=>HW,equalOwnProperties:()=>SY,equateStringsCaseInsensitive:()=>sx,equateStringsCaseSensitive:()=>Mw,equateValues:()=>ox,escapeJsxAttributeString:()=>AZ,escapeLeadingUnderscores:()=>Hl,escapeNonAsciiString:()=>uV,escapeSnippetText:()=>oT,escapeString:()=>Yy,escapeTemplateSubstitution:()=>IZ,evaluatorResult:()=>wd,every:()=>Et,executeCommandLine:()=>_Be,expandPreOrPostfixIncrementOrDecrementExpression:()=>AH,explainFiles:()=>dne,explainIfFileIsRedirectAndImpliedFormat:()=>fne,exportAssignmentIsAlias:()=>iR,expressionResultIsUnused:()=>x0e,extend:()=>bw,extensionFromPath:()=>gO,extensionIsTS:()=>XV,extensionsNotSupportingExtensionlessResolution:()=>GV,externalHelpersModuleNameText:()=>ek,factory:()=>U,fileContainsPackageImport:()=>s9,fileExtensionIs:()=>Tl,fileExtensionIsOneOf:()=>vu,fileIncludeReasonToDiagnostics:()=>mne,fileShouldUseJavaScriptRequire:()=>qre,filter:()=>Di,filterMutate:()=>rs,filterSemanticDiagnostics:()=>BU,find:()=>St,findAncestor:()=>Ri,findBestPatternMatch:()=>DY,findChildOfKind:()=>Tc,findComputedPropertyNameCacheAssignment:()=>BH,findConfigFile:()=>Fie,findConstructorDeclaration:()=>AR,findContainingList:()=>gJ,findDiagnosticForNode:()=>oxe,findFirstNonJsxWhitespaceToken:()=>TSe,findIndex:()=>zi,findLast:()=>Mi,findLastIndex:()=>Vr,findListItemInfo:()=>wSe,findModifier:()=>Y4,findNextToken:()=>kT,findPackageJson:()=>rxe,findPackageJsons:()=>Bre,findPrecedingMatchingToken:()=>xJ,findPrecedingToken:()=>fd,findSuperStatementIndexPath:()=>gU,findTokenOnLeftOfPosition:()=>V5,findUseStrictPrologue:()=>ote,first:()=>Ta,firstDefined:()=>Le,firstDefinedIterator:()=>Je,firstIterator:()=>CP,firstOrOnly:()=>Vre,firstOrUndefined:()=>mc,firstOrUndefinedIterator:()=>I0,fixupCompilerOptions:()=>coe,flatMap:()=>vo,flatMapIterator:()=>qa,flatMapToMutable:()=>kl,flatten:()=>tc,flattenCommaList:()=>Hye,flattenDestructuringAssignment:()=>NE,flattenDestructuringBinding:()=>vT,flattenDiagnosticMessageText:()=>ay,forEach:()=>re,forEachAncestor:()=>phe,forEachAncestorDirectory:()=>Rh,forEachChild:()=>ws,forEachChildRecursively:()=>LN,forEachEmittedFile:()=>Cie,forEachEnclosingBlockScopeContainer:()=>Ihe,forEachEntry:()=>Vd,forEachExternalModuleToImportFrom:()=>Kre,forEachImportClauseDeclaration:()=>rge,forEachKey:()=>K1,forEachLeadingCommentRange:()=>eM,forEachNameInAccessChainWalkingLeft:()=>qge,forEachNameOfDefaultExport:()=>GJ,forEachPropertyAssignment:()=>qP,forEachResolvedProjectReference:()=>Jie,forEachReturnStatement:()=>tS,forEachRight:()=>Pe,forEachTrailingCommentRange:()=>tM,forEachTsConfigPropArray:()=>LM,forEachUnique:()=>wre,forEachYieldExpression:()=>Rhe,formatColorAndReset:()=>ST,formatDiagnostic:()=>jie,formatDiagnostics:()=>K5e,formatDiagnosticsWithColorAndContext:()=>ibe,formatGeneratedName:()=>bk,formatGeneratedNamePart:()=>I4,formatLocation:()=>Wie,formatMessage:()=>lN,formatStringFromArgs:()=>Jv,formatting:()=>td,generateDjb2Hash:()=>y3,generateTSConfig:()=>pve,getAdjustedReferenceLocation:()=>rre,getAdjustedRenameLocation:()=>vJ,getAliasDeclarationFromName:()=>vZ,getAllAccessorDeclarations:()=>Sx,getAllDecoratorsOfClass:()=>pie,getAllDecoratorsOfClassElement:()=>vU,getAllJSDocTags:()=>lz,getAllJSDocTagsOfKind:()=>UFe,getAllKeys:()=>c3,getAllProjectOutputs:()=>TU,getAllSuperTypeNodes:()=>Q3,getAllowJSCompilerOption:()=>kx,getAllowSyntheticDefaultImports:()=>uN,getAncestor:()=>ck,getAnyExtensionFromPath:()=>IP,getAreDeclarationMapsEnabled:()=>OV,getAssignedExpandoInitializer:()=>$I,getAssignedName:()=>sz,getAssignmentDeclarationKind:()=>Su,getAssignmentDeclarationPropertyAccessKind:()=>qM,getAssignmentTargetKind:()=>ak,getAutomaticTypeDirectiveNames:()=>iU,getBaseFileName:()=>Xu,getBinaryOperatorPrecedence:()=>aR,getBuildInfo:()=>Nie,getBuildInfoFileVersionMap:()=>ine,getBuildInfoText:()=>U1e,getBuildOrderFromAnyBuildOrder:()=>P5,getBuilderCreationParameters:()=>VU,getBuilderFileEmit:()=>jx,getCanonicalDiagnostic:()=>Ohe,getCheckFlags:()=>_u,getClassExtendsHeritageElement:()=>Yw,getClassLikeDeclarationOfSymbol:()=>eb,getCombinedLocalAndExportSymbolFlags:()=>a4,getCombinedModifierFlags:()=>GC,getCombinedNodeFlags:()=>$1,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>pQ,getCommentRange:()=>Q0,getCommonSourceDirectory:()=>d8,getCommonSourceDirectoryOfConfig:()=>VN,getCompilerOptionValue:()=>RV,getCompilerOptionsDiffValue:()=>_ve,getConditions:()=>Fx,getConfigFileParsingDiagnostics:()=>xT,getConstantValue:()=>z0e,getContainerFlags:()=>Kte,getContainerNode:()=>LE,getContainingClass:()=>Zd,getContainingClassExcludingClassDecorators:()=>Jz,getContainingClassStaticBlock:()=>$he,getContainingFunction:()=>_m,getContainingFunctionDeclaration:()=>qhe,getContainingFunctionOrClassStaticBlock:()=>Uz,getContainingNodeArray:()=>C0e,getContainingObjectLiteralElement:()=>m9,getContextualTypeFromParent:()=>OJ,getContextualTypeFromParentOrAncestorTypeNode:()=>yJ,getDeclarationDiagnostics:()=>B1e,getDeclarationEmitExtensionForPath:()=>_V,getDeclarationEmitOutputFilePath:()=>vge,getDeclarationEmitOutputFilePathWorker:()=>fV,getDeclarationFileExtension:()=>hte,getDeclarationFromName:()=>Y3,getDeclarationModifierFlagsFromSymbol:()=>lh,getDeclarationOfKind:()=>bl,getDeclarationsOfKind:()=>fhe,getDeclaredExpandoInitializer:()=>G3,getDecorators:()=>ux,getDefaultCompilerOptions:()=>uq,getDefaultFormatCodeSettings:()=>cJ,getDefaultLibFileName:()=>nM,getDefaultLibFilePath:()=>UCe,getDefaultLikeExportInfo:()=>$J,getDefaultLikeExportNameFromDeclaration:()=>Hre,getDefaultResolutionModeForFileWorker:()=>RU,getDiagnosticText:()=>tp,getDiagnosticsWithinSpan:()=>sxe,getDirectoryPath:()=>Or,getDirectoryToWatchFailedLookupLocation:()=>one,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>wbe,getDocumentPositionMapper:()=>noe,getDocumentSpansEqualityComparer:()=>kre,getESModuleInterop:()=>qv,getEditsForFileRename:()=>mxe,getEffectiveBaseTypeNode:()=>J0,getEffectiveConstraintOfTypeParameter:()=>OP,getEffectiveContainerForJSDocTemplateTag:()=>nV,getEffectiveImplementsTypeNodes:()=>e4,getEffectiveInitializer:()=>HM,getEffectiveJSDocHost:()=>sk,getEffectiveModifierFlags:()=>__,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Nge,getEffectiveModifierFlagsNoCache:()=>Age,getEffectiveReturnTypeNode:()=>Up,getEffectiveSetAccessorTypeAnnotationNode:()=>kge,getEffectiveTypeAnnotationNode:()=>Yu,getEffectiveTypeParameterDeclarations:()=>dx,getEffectiveTypeRoots:()=>QO,getElementOrPropertyAccessArgumentExpressionOrName:()=>iV,getElementOrPropertyAccessName:()=>X1,getElementsOfBindingOrAssignmentPattern:()=>D4,getEmitDeclarations:()=>yp,getEmitFlags:()=>ja,getEmitHelpers:()=>uH,getEmitModuleDetectionKind:()=>Zge,getEmitModuleFormatOfFileWorker:()=>m8,getEmitModuleKind:()=>p_,getEmitModuleResolutionKind:()=>$f,getEmitScriptTarget:()=>Oa,getEmitStandardClassFields:()=>ree,getEnclosingBlockScopeContainer:()=>Gg,getEnclosingContainer:()=>Mz,getEncodedSemanticClassifications:()=>Xre,getEncodedSyntacticClassifications:()=>Yre,getEndLinePosition:()=>CM,getEntityNameFromTypeNode:()=>MM,getEntrypointsFromPackageJsonInfo:()=>Ute,getErrorCountForSummary:()=>qU,getErrorSpanForNode:()=>rE,getErrorSummaryText:()=>lne,getEscapedTextOfIdentifierOrLiteral:()=>tO,getEscapedTextOfJsxAttributeName:()=>wO,getEscapedTextOfJsxNamespacedName:()=>_N,getExpandoInitializer:()=>rk,getExportAssignmentExpression:()=>bZ,getExportInfoMap:()=>a9,getExportNeedsImportStarHelper:()=>o1e,getExpressionAssociativity:()=>EZ,getExpressionPrecedence:()=>iO,getExternalHelpersModuleName:()=>OH,getExternalModuleImportEqualsDeclarationExpression:()=>q3,getExternalModuleName:()=>GI,getExternalModuleNameFromDeclaration:()=>gge,getExternalModuleNameFromPath:()=>OZ,getExternalModuleNameLiteral:()=>PN,getExternalModuleRequireArgument:()=>lZ,getFallbackOptions:()=>w5,getFileEmitOutput:()=>obe,getFileMatcherPatterns:()=>HV,getFileNamesFromConfigSpecs:()=>XO,getFileWatcherEventKind:()=>eQ,getFilesInErrorForSummary:()=>$U,getFirstConstructorWithBody:()=>Hv,getFirstIdentifier:()=>hp,getFirstNonSpaceCharacterPosition:()=>XSe,getFirstProjectOutput:()=>Eie,getFixableErrorSpanExpression:()=>Wre,getFormatCodeSettingsForWriting:()=>UJ,getFullWidth:()=>xM,getFunctionFlags:()=>Vu,getHeritageClause:()=>nR,getHostSignatureFromJSDoc:()=>ok,getIdentifierAutoGenerate:()=>V7e,getIdentifierGeneratedImportReference:()=>$0e,getIdentifierTypeArguments:()=>pE,getImmediatelyInvokedFunctionExpression:()=>qw,getImpliedNodeFormatForEmitWorker:()=>AE,getImpliedNodeFormatForFile:()=>E5,getImpliedNodeFormatForFileWorker:()=>MU,getImportNeedsImportDefaultHelper:()=>die,getImportNeedsImportStarHelper:()=>mU,getIndentString:()=>dV,getInferredLibraryNameResolveFrom:()=>FU,getInitializedVariables:()=>uO,getInitializerOfBinaryExpression:()=>_Z,getInitializerOfBindingOrAssignmentElement:()=>KR,getInterfaceBaseTypeNodes:()=>Z3,getInternalEmitFlags:()=>Cg,getInvokedExpression:()=>Gz,getIsFileExcluded:()=>uxe,getIsolatedModules:()=>Jh,getJSDocAugmentsTag:()=>Bme,getJSDocClassTag:()=>gQ,getJSDocCommentRanges:()=>rZ,getJSDocCommentsAndTags:()=>pZ,getJSDocDeprecatedTag:()=>yQ,getJSDocDeprecatedTagNoCache:()=>Jme,getJSDocEnumTag:()=>vQ,getJSDocHost:()=>Kw,getJSDocImplementsTags:()=>jme,getJSDocOverloadTags:()=>hZ,getJSDocOverrideTagNoCache:()=>Ume,getJSDocParameterTags:()=>LP,getJSDocParameterTagsNoCache:()=>Ome,getJSDocPrivateTag:()=>WFe,getJSDocPrivateTagNoCache:()=>zme,getJSDocProtectedTag:()=>zFe,getJSDocProtectedTagNoCache:()=>Vme,getJSDocPublicTag:()=>jFe,getJSDocPublicTagNoCache:()=>Wme,getJSDocReadonlyTag:()=>VFe,getJSDocReadonlyTagNoCache:()=>Hme,getJSDocReturnTag:()=>qme,getJSDocReturnType:()=>lM,getJSDocRoot:()=>ZP,getJSDocSatisfiesExpressionType:()=>xee,getJSDocSatisfiesTag:()=>bQ,getJSDocTags:()=>YC,getJSDocTemplateTag:()=>HFe,getJSDocThisTag:()=>az,getJSDocType:()=>XC,getJSDocTypeAliasName:()=>cte,getJSDocTypeAssertionType:()=>JO,getJSDocTypeParameterDeclarations:()=>yV,getJSDocTypeParameterTags:()=>Fme,getJSDocTypeParameterTagsNoCache:()=>Mme,getJSDocTypeTag:()=>KC,getJSXImplicitImportBase:()=>jV,getJSXRuntimeImport:()=>WV,getJSXTransformEnabled:()=>BV,getKeyForCompilerOptions:()=>jte,getLanguageVariant:()=>vR,getLastChild:()=>YZ,getLeadingCommentRanges:()=>Mv,getLeadingCommentRangesOfNode:()=>nZ,getLeftmostAccessExpression:()=>c4,getLeftmostExpression:()=>l4,getLibraryNameFromLibFileName:()=>qie,getLineAndCharacterOfPosition:()=>ma,getLineInfo:()=>cie,getLineOfLocalPosition:()=>nO,getLineStartPositionForPosition:()=>Yh,getLineStarts:()=>Ov,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Hge,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Vge,getLinesBetweenPositions:()=>C3,getLinesBetweenRangeEndAndRangeStart:()=>$Z,getLinesBetweenRangeEndPositions:()=>v7e,getLiteralText:()=>xhe,getLocalNameForExternalImport:()=>E4,getLocalSymbolForExportDefault:()=>aO,getLocaleSpecificMessage:()=>gs,getLocaleTimeString:()=>A5,getMappedContextSpan:()=>Tre,getMappedDocumentSpan:()=>AJ,getMappedLocation:()=>w8,getMatchedFileSpec:()=>_ne,getMatchedIncludeSpec:()=>pne,getMeaningFromDeclaration:()=>uJ,getMeaningFromLocation:()=>PE,getMembersOfDeclaration:()=>Bhe,getModeForFileReference:()=>AU,getModeForResolutionAtIndex:()=>t9e,getModeForUsageLocation:()=>Vie,getModifiedTime:()=>PI,getModifiers:()=>Bw,getModuleInstanceState:()=>ab,getModuleNameStringLiteralAt:()=>I5,getModuleSpecifierEndingPreference:()=>f0e,getModuleSpecifierResolverHost:()=>gre,getNameForExportedSymbol:()=>zJ,getNameFromImportAttribute:()=>rH,getNameFromIndexInfo:()=>Nhe,getNameFromPropertyName:()=>$5,getNameOfAccessExpression:()=>ZZ,getNameOfCompilerOptionValue:()=>Pte,getNameOfDeclaration:()=>cs,getNameOfExpando:()=>uZ,getNameOfJSDocTypedef:()=>Lme,getNameOfScriptTarget:()=>MV,getNameOrArgument:()=>JM,getNameTable:()=>Poe,getNamespaceDeclarationNode:()=>YP,getNewLineCharacter:()=>aS,getNewLineKind:()=>o9,getNewLineOrDefaultFromHost:()=>cb,getNewTargetContainer:()=>Khe,getNextJSDocCommentLocation:()=>mZ,getNodeChildren:()=>Zee,getNodeForGeneratedName:()=>YR,getNodeId:()=>ac,getNodeKind:()=>CT,getNodeModifiers:()=>x8,getNodeModulePathParts:()=>tH,getNonAssignedNameOfDeclaration:()=>oz,getNonAssignmentOperatorForCompoundAssignment:()=>o8,getNonAugmentationDeclaration:()=>XQ,getNonDecoratorTokenPosOfNode:()=>UQ,getNonIncrementalBuildInfoRoots:()=>bbe,getNonModifierTokenPosOfNode:()=>bhe,getNormalizedAbsolutePath:()=>ts,getNormalizedAbsolutePathWithoutRoot:()=>rQ,getNormalizedPathComponents:()=>X7,getObjectFlags:()=>_r,getOperatorAssociativity:()=>DZ,getOperatorPrecedence:()=>sR,getOptionFromName:()=>Tte,getOptionsForLibraryResolution:()=>Wte,getOptionsNameMap:()=>A4,getOrCreateEmitNode:()=>Bf,getOrUpdate:()=>Hg,getOriginalNode:()=>El,getOriginalNodeId:()=>R_,getOutputDeclarationFileName:()=>W4,getOutputDeclarationFileNameWorker:()=>wie,getOutputExtension:()=>wU,getOutputFileNames:()=>$5e,getOutputJSFileNameWorker:()=>Tie,getOutputPathsFor:()=>u8,getOwnEmitOutputFilePath:()=>yge,getOwnKeys:()=>mg,getOwnValues:()=>T2,getPackageJsonTypesVersionsPaths:()=>tU,getPackageNameFromTypesPackageName:()=>i8,getPackageScopeForPath:()=>t8,getParameterSymbolFromJSDoc:()=>ZM,getParentNodeInSpan:()=>K5,getParseTreeNode:()=>_s,getParsedCommandLineOfConfigFile:()=>n5,getPathComponents:()=>zd,getPathFromPathComponents:()=>Xb,getPathUpdater:()=>eoe,getPathsBasePath:()=>pV,getPatternFromSpec:()=>c0e,getPendingEmitKindWithSeen:()=>zU,getPositionOfLineAndCharacter:()=>Q7,getPossibleGenericSignatures:()=>sre,getPossibleOriginalInputExtensionForExtension:()=>bge,getPossibleTypeArgumentsInfo:()=>are,getPreEmitDiagnostics:()=>G5e,getPrecedingNonSpaceCharacterPosition:()=>PJ,getPrivateIdentifier:()=>mie,getProperties:()=>_ie,getProperty:()=>V7,getPropertyArrayElementValue:()=>Jhe,getPropertyAssignmentAliasLikeExpression:()=>dge,getPropertyNameForPropertyNameNode:()=>uE,getPropertyNameFromType:()=>dh,getPropertyNameOfBindingOrAssignmentElement:()=>ate,getPropertySymbolFromBindingElement:()=>NJ,getPropertySymbolsFromContextualType:()=>fq,getQuoteFromPreference:()=>vre,getQuotePreference:()=>mm,getRangesWhere:()=>yw,getRefactorContextSpan:()=>GN,getReferencedFileLocation:()=>p8,getRegexFromPattern:()=>wx,getRegularExpressionForWildcard:()=>pO,getRegularExpressionsForWildcards:()=>zV,getRelativePathFromDirectory:()=>Sg,getRelativePathFromFile:()=>S3,getRelativePathToDirectoryOrUrl:()=>LI,getRenameLocation:()=>Q5,getReplacementSpanForContextToken:()=>dre,getResolutionDiagnostic:()=>Xie,getResolutionModeOverride:()=>z4,getResolveJsonModule:()=>iT,getResolvePackageJsonExports:()=>SR,getResolvePackageJsonImports:()=>LV,getResolvedExternalModuleName:()=>LZ,getResolvedModuleFromResolution:()=>zI,getResolvedTypeReferenceDirectiveFromResolution:()=>Ez,getRestIndicatorOfBindingOrAssignmentElement:()=>FH,getRestParameterElementType:()=>oZ,getRightMostAssignedExpression:()=>UM,getRootDeclaration:()=>$0,getRootDirectoryOfResolutionCache:()=>Tbe,getRootLength:()=>Vy,getScriptKind:()=>Nre,getScriptKindFromFileName:()=>JV,getScriptTargetFeatures:()=>JQ,getSelectedEffectiveModifierFlags:()=>iN,getSelectedSyntacticModifierFlags:()=>Dge,getSemanticClassifications:()=>dxe,getSemanticJsxChildren:()=>i4,getSetAccessorTypeAnnotationNode:()=>xge,getSetAccessorValueParameter:()=>o4,getSetExternalModuleIndicator:()=>bR,getShebang:()=>nz,getSingleVariableOfVariableStatement:()=>YI,getSnapshotText:()=>qN,getSnippetElement:()=>Nee,getSourceFileOfModule:()=>Nz,getSourceFileOfNode:()=>en,getSourceFilePathInNewDir:()=>hV,getSourceFileVersionAsHashFromText:()=>KU,getSourceFilesToEmit:()=>mV,getSourceMapRange:()=>lS,getSourceMapper:()=>Exe,getSourceTextOfNodeFromSourceFile:()=>Vw,getSpanOfTokenAtPosition:()=>V0,getSpellingSuggestion:()=>Rw,getStartPositionOfLine:()=>gx,getStartPositionOfRange:()=>lO,getStartsOnNewLine:()=>EO,getStaticPropertiesAndClassStaticBlock:()=>yU,getStrictOptionValue:()=>Rf,getStringComparer:()=>TP,getSubPatternFromSpec:()=>VV,getSuperCallFromStatement:()=>hU,getSuperContainer:()=>OM,getSupportedCodeFixes:()=>Noe,getSupportedExtensions:()=>mO,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>wR,getSwitchedType:()=>Fre,getSymbolId:()=>Ca,getSymbolNameForPrivateIdentifier:()=>rR,getSymbolTarget:()=>Are,getSyntacticClassifications:()=>fxe,getSyntacticModifierFlags:()=>oS,getSyntacticModifierFlagsNoCache:()=>jZ,getSynthesizedDeepClone:()=>_c,getSynthesizedDeepCloneWithReplacements:()=>Y5,getSynthesizedDeepClones:()=>wT,getSynthesizedDeepClonesWithReplacements:()=>Pre,getSyntheticLeadingComments:()=>h4,getSyntheticTrailingComments:()=>MR,getTargetLabel:()=>_J,getTargetOfBindingOrAssignmentElement:()=>Lx,getTemporaryModuleResolutionState:()=>e8,getTextOfConstantValue:()=>Che,getTextOfIdentifierOrLiteral:()=>Hh,getTextOfJSDocComment:()=>uM,getTextOfJsxAttributeName:()=>NR,getTextOfJsxNamespacedName:()=>TO,getTextOfNode:()=>Jl,getTextOfNodeFromSourceText:()=>z3,getTextOfPropertyName:()=>JI,getThisContainer:()=>f_,getThisParameter:()=>Qw,getTokenAtPosition:()=>go,getTokenPosOfNode:()=>yx,getTokenSourceMapRange:()=>W7e,getTouchingPropertyName:()=>ip,getTouchingToken:()=>K4,getTrailingCommentRanges:()=>lx,getTrailingSemicolonDeferringWriter:()=>PZ,getTransformers:()=>z1e,getTsBuildInfoEmitOutputFilePath:()=>wk,getTsConfigObjectLiteralExpression:()=>U3,getTsConfigPropArrayElementValue:()=>Hz,getTypeAnnotationNode:()=>Cge,getTypeArgumentOrTypeParameterList:()=>LSe,getTypeKeywordOfTypeOnlyImport:()=>xre,getTypeNode:()=>J0e,getTypeNodeIfAccessible:()=>N8,getTypeParameterFromJsDoc:()=>oge,getTypeParameterOwner:()=>FFe,getTypesPackageName:()=>lU,getUILocale:()=>B_e,getUniqueName:()=>FE,getUniqueSymbolId:()=>KSe,getUseDefineForClassFields:()=>xR,getWatchErrorSummaryDiagnosticMessage:()=>cne,getWatchFactory:()=>Oie,group:()=>Xl,groupBy:()=>N0,guessIndentation:()=>uhe,handleNoEmitOptions:()=>Kie,handleWatchOptionsConfigDirTemplateSubstitution:()=>XH,hasAbstractModifier:()=>tT,hasAccessorModifier:()=>G0,hasAmbientModifier:()=>BZ,hasChangesInResolutions:()=>zQ,hasContextSensitiveParameters:()=>ZV,hasDecorators:()=>Pm,hasDocComment:()=>ASe,hasDynamicName:()=>Y1,hasEffectiveModifier:()=>Jp,hasEffectiveModifiers:()=>RZ,hasEffectiveReadonlyModifier:()=>rO,hasExtension:()=>DP,hasImplementationTSFileExtension:()=>u0e,hasIndexSignature:()=>Ore,hasInferredType:()=>P0e,hasInitializer:()=>Qb,hasInvalidEscape:()=>NZ,hasJSDocNodes:()=>dm,hasJSDocParameterTags:()=>Rme,hasJSFileExtension:()=>$v,hasJsonModuleEmitEnabled:()=>FV,hasOnlyExpressionInitializer:()=>iE,hasOverrideModifier:()=>vV,hasPossibleExternalModuleReference:()=>Dhe,hasProperty:()=>Nc,hasPropertyAccessExpressionWithName:()=>B5,hasQuestionToken:()=>XI,hasRecordedExternalHelpers:()=>Aye,hasResolutionModeOverride:()=>D0e,hasRestParameter:()=>MQ,hasScopeMarker:()=>ihe,hasStaticModifier:()=>cd,hasSyntacticModifier:()=>Ar,hasSyntacticModifiers:()=>Ege,hasTSFileExtension:()=>dN,hasTabstop:()=>w0e,hasTrailingDirectorySeparator:()=>cx,hasType:()=>xz,hasTypeArguments:()=>l7e,hasZeroOrOneAsteriskCharacter:()=>oee,hostGetCanonicalFileName:()=>rS,hostUsesCaseSensitiveFileNames:()=>eN,idText:()=>mr,identifierIsThisKeyword:()=>MZ,identifierToKeywordKind:()=>X2,identity:()=>Gc,identitySourceMapConsumer:()=>uie,ignoreSourceNewlines:()=>Pee,ignoredPaths:()=>KW,importFromModuleSpecifier:()=>K3,importSyntaxAffectsModuleResolution:()=>nee,indexOfAnyCharCode:()=>gr,indexOfNode:()=>VP,indicesOf:()=>Ow,inferredTypesContainingFile:()=>_8,injectClassNamedEvaluationHelperBlockIfMissing:()=>xU,injectClassThisAssignmentIfMissing:()=>_1e,insertImports:()=>Sre,insertSorted:()=>vn,insertStatementAfterCustomPrologue:()=>nE,insertStatementAfterStandardPrologue:()=>i7e,insertStatementsAfterCustomPrologue:()=>VQ,insertStatementsAfterStandardPrologue:()=>Wv,intersperse:()=>Ct,intrinsicTagNameToString:()=>Cee,introducesArgumentsExoticObject:()=>Vhe,inverseJsxOptionMap:()=>t5,isAbstractConstructorSymbol:()=>Uge,isAbstractModifier:()=>nye,isAccessExpression:()=>il,isAccessibilityModifier:()=>lre,isAccessor:()=>mx,isAccessorModifier:()=>oye,isAliasableExpression:()=>rV,isAmbientModule:()=>d_,isAmbientPropertyDeclaration:()=>QQ,isAnyDirectorySeparator:()=>tQ,isAnyImportOrBareOrAccessedRequire:()=>The,isAnyImportOrReExport:()=>TM,isAnyImportOrRequireStatement:()=>Ehe,isAnyImportSyntax:()=>UI,isAnySupportedFileExtension:()=>P7e,isApplicableVersionedTypesKey:()=>u5,isArgumentExpressionOfElementAccess:()=>Yne,isArray:()=>ds,isArrayBindingElement:()=>hz,isArrayBindingOrAssignmentElement:()=>hM,isArrayBindingOrAssignmentPattern:()=>NQ,isArrayBindingPattern:()=>fS,isArrayLiteralExpression:()=>yf,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>gS,isArrayTypeNode:()=>zR,isArrowFunction:()=>rl,isAsExpression:()=>OO,isAssertClause:()=>dye,isAssertEntry:()=>Y7e,isAssertionExpression:()=>ZC,isAssertsKeyword:()=>tye,isAssignmentDeclaration:()=>$3,isAssignmentExpression:()=>Hd,isAssignmentOperator:()=>Q1,isAssignmentPattern:()=>R3,isAssignmentTarget:()=>nS,isAsteriskToken:()=>BR,isAsyncFunction:()=>eO,isAsyncModifier:()=>AO,isAutoAccessorPropertyDeclaration:()=>K_,isAwaitExpression:()=>Ax,isAwaitKeyword:()=>Ree,isBigIntLiteral:()=>NO,isBinaryExpression:()=>Yn,isBinaryLogicalOperator:()=>fR,isBinaryOperatorToken:()=>jye,isBindableObjectDefinePropertyCall:()=>cE,isBindableStaticAccessExpression:()=>Gw,isBindableStaticElementAccessExpression:()=>tV,isBindableStaticNameExpression:()=>lE,isBindingElement:()=>Wa,isBindingElementOfBareOrAccessedRequire:()=>Qhe,isBindingName:()=>eE,isBindingOrAssignmentElement:()=>Qme,isBindingOrAssignmentPattern:()=>pM,isBindingPattern:()=>Rs,isBlock:()=>Ds,isBlockLike:()=>KN,isBlockOrCatchScoped:()=>qQ,isBlockScope:()=>ZQ,isBlockScopedContainerTopLevel:()=>whe,isBooleanLiteral:()=>M3,isBreakOrContinueStatement:()=>A3,isBreakStatement:()=>G7e,isBuild:()=>Gbe,isBuildInfoFile:()=>V1e,isBuilderProgram:()=>une,isBundle:()=>mye,isCallChain:()=>Y2,isCallExpression:()=>Gs,isCallExpressionTarget:()=>Jne,isCallLikeExpression:()=>zw,isCallLikeOrFunctionLikeExpression:()=>AQ,isCallOrNewExpression:()=>W0,isCallOrNewExpressionTarget:()=>qne,isCallSignatureDeclaration:()=>xN,isCallToHelper:()=>IO,isCaseBlock:()=>BO,isCaseClause:()=>x4,isCaseKeyword:()=>sye,isCaseOrDefaultClause:()=>bz,isCatchClause:()=>mT,isCatchClauseVariableDeclaration:()=>k0e,isCatchClauseVariableDeclarationOrBindingElement:()=>$Q,isCheckJsEnabledForFile:()=>yO,isCircularBuildOrder:()=>UN,isClassDeclaration:()=>Zu,isClassElement:()=>Cd,isClassExpression:()=>Qu,isClassInstanceProperty:()=>Xme,isClassLike:()=>jr,isClassMemberModifier:()=>EQ,isClassNamedEvaluationHelperBlock:()=>zN,isClassOrTypeElement:()=>mz,isClassStaticBlockDeclaration:()=>Yl,isClassThisAssignmentBlock:()=>a8,isColonToken:()=>Z0e,isCommaExpression:()=>$R,isCommaListExpression:()=>MO,isCommaSequence:()=>UO,isCommaToken:()=>Q0e,isComment:()=>CJ,isCommonJsExportPropertyAssignment:()=>zz,isCommonJsExportedExpression:()=>Whe,isCompoundAssignment:()=>r8,isComputedNonLiteralName:()=>EM,isComputedPropertyName:()=>Ma,isConciseBody:()=>yz,isConditionalExpression:()=>EN,isConditionalTypeNode:()=>cT,isConstAssertion:()=>kee,isConstTypeReference:()=>qg,isConstructSignatureDeclaration:()=>WR,isConstructorDeclaration:()=>Ol,isConstructorTypeNode:()=>g4,isContextualKeyword:()=>sV,isContinueStatement:()=>$7e,isCustomPrologue:()=>PM,isDebuggerStatement:()=>K7e,isDeclaration:()=>mf,isDeclarationBindingElement:()=>_M,isDeclarationFileName:()=>Jd,isDeclarationName:()=>Xy,isDeclarationNameOfEnumOrNamespace:()=>GZ,isDeclarationReadonly:()=>IM,isDeclarationStatement:()=>she,isDeclarationWithTypeParameterChildren:()=>tZ,isDeclarationWithTypeParameters:()=>eZ,isDecorator:()=>Td,isDecoratorTarget:()=>bSe,isDefaultClause:()=>WO,isDefaultImport:()=>KI,isDefaultModifier:()=>gH,isDefaultedExpandoInitializer:()=>Zhe,isDeleteExpression:()=>cye,isDeleteTarget:()=>yZ,isDeprecatedDeclaration:()=>VJ,isDestructuringAssignment:()=>sS,isDiskPathRoot:()=>iQ,isDoStatement:()=>q7e,isDocumentRegistryEntry:()=>c9,isDotDotDotToken:()=>mH,isDottedName:()=>pR,isDynamicName:()=>cV,isEffectiveExternalModule:()=>HI,isEffectiveStrictModeSourceFile:()=>YQ,isElementAccessChain:()=>SQ,isElementAccessExpression:()=>nl,isEmittedFileOfProgram:()=>K1e,isEmptyArrayLiteral:()=>Fge,isEmptyBindingElement:()=>Nme,isEmptyBindingPattern:()=>Ime,isEmptyObjectLiteral:()=>UZ,isEmptyStatement:()=>Vee,isEmptyStringLiteral:()=>cZ,isEntityName:()=>G_,isEntityNameExpression:()=>Xc,isEnumConst:()=>ik,isEnumDeclaration:()=>dT,isEnumMember:()=>_S,isEqualityOperatorKind:()=>FJ,isEqualsGreaterThanToken:()=>eye,isExclamationToken:()=>jR,isExcludedFile:()=>hve,isExclusivelyTypeOnlyImportOrExport:()=>zie,isExpandoPropertyDeclaration:()=>pN,isExportAssignment:()=>ll,isExportDeclaration:()=>Nu,isExportModifier:()=>bN,isExportName:()=>PH,isExportNamespaceAsDefaultDeclaration:()=>Lz,isExportOrDefaultModifier:()=>XR,isExportSpecifier:()=>Gf,isExportsIdentifier:()=>aE,isExportsOrModuleExportsOrAlias:()=>gT,isExpression:()=>Mt,isExpressionNode:()=>Kg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>CSe,isExpressionOfOptionalChainRoot:()=>dz,isExpressionStatement:()=>Ud,isExpressionWithTypeArguments:()=>nb,isExpressionWithTypeArgumentsInClassExtendsClause:()=>SV,isExternalModule:()=>dd,isExternalModuleAugmentation:()=>Uw,isExternalModuleImportEqualsDeclaration:()=>nk,isExternalModuleIndicator:()=>yM,isExternalModuleNameRelative:()=>Od,isExternalModuleReference:()=>rb,isExternalModuleSymbol:()=>jP,isExternalOrCommonJsModule:()=>Vp,isFileLevelReservedGeneratedIdentifier:()=>fM,isFileLevelUniqueName:()=>Az,isFileProbablyExternalModule:()=>ZR,isFirstDeclarationOfSymbolParameter:()=>Ere,isFixablePromiseHandler:()=>soe,isForInOrOfStatement:()=>tE,isForInStatement:()=>CH,isForInitializer:()=>rh,isForOfStatement:()=>VR,isForStatement:()=>gk,isFullSourceFile:()=>Gy,isFunctionBlock:()=>Jw,isFunctionBody:()=>LQ,isFunctionDeclaration:()=>xu,isFunctionExpression:()=>Yc,isFunctionExpressionOrArrowFunction:()=>Ex,isFunctionLike:()=>vs,isFunctionLikeDeclaration:()=>Oc,isFunctionLikeKind:()=>RI,isFunctionLikeOrClassStaticBlockDeclaration:()=>MP,isFunctionOrConstructorTypeNode:()=>Yme,isFunctionOrModuleBlock:()=>DQ,isFunctionSymbol:()=>ige,isFunctionTypeNode:()=>Qy,isGeneratedIdentifier:()=>yl,isGeneratedPrivateIdentifier:()=>Z2,isGetAccessor:()=>Yb,isGetAccessorDeclaration:()=>Lm,isGetOrSetAccessorDeclaration:()=>dM,isGlobalScopeAugmentation:()=>$y,isGlobalSourceFile:()=>Zb,isGrammarError:()=>yhe,isHeritageClause:()=>$p,isHoistedFunction:()=>jz,isHoistedVariableStatement:()=>Wz,isIdentifier:()=>et,isIdentifierANonContextualKeyword:()=>CZ,isIdentifierName:()=>uge,isIdentifierOrThisTypeNode:()=>Fye,isIdentifierPart:()=>q1,isIdentifierStart:()=>Hy,isIdentifierText:()=>pp,isIdentifierTypePredicate:()=>Hhe,isIdentifierTypeReference:()=>v0e,isIfStatement:()=>hk,isIgnoredFileFromWildCardWatching:()=>k5,isImplicitGlob:()=>cee,isImportAttribute:()=>fye,isImportAttributeName:()=>Kme,isImportAttributes:()=>bE,isImportCall:()=>fm,isImportClause:()=>Zg,isImportDeclaration:()=>ql,isImportEqualsDeclaration:()=>Dd,isImportKeyword:()=>LO,isImportMeta:()=>JP,isImportOrExportSpecifier:()=>QC,isImportOrExportSpecifierName:()=>GSe,isImportSpecifier:()=>F_,isImportTypeAssertionContainer:()=>X7e,isImportTypeNode:()=>ey,isImportableFile:()=>Gre,isInComment:()=>hS,isInCompoundLikeAssignment:()=>gZ,isInExpressionContext:()=>Kz,isInJSDoc:()=>jM,isInJSFile:()=>Jn,isInJSXText:()=>NSe,isInJsonFile:()=>Yz,isInNonReferenceComment:()=>MSe,isInReferenceComment:()=>FSe,isInRightSideOfInternalImportEqualsDeclaration:()=>dJ,isInString:()=>JN,isInTemplateString:()=>ore,isInTopLevelContext:()=>qz,isInTypeQuery:()=>tN,isIncrementalBuildInfo:()=>N5,isIncrementalBundleEmitBuildInfo:()=>pbe,isIncrementalCompilation:()=>nT,isIndexSignatureDeclaration:()=>sT,isIndexedAccessTypeNode:()=>lT,isInferTypeNode:()=>hE,isInfinityOrNaNString:()=>CO,isInitializedProperty:()=>h5,isInitializedVariable:()=>yR,isInsideJsxElement:()=>SJ,isInsideJsxElementOrAttribute:()=>ISe,isInsideNodeModules:()=>i9,isInsideTemplateLiteral:()=>U5,isInstanceOfExpression:()=>xV,isInstantiatedModule:()=>rie,isInterfaceDeclaration:()=>vf,isInternalDeclaration:()=>dhe,isInternalModuleImportEqualsDeclaration:()=>sE,isInternalName:()=>rte,isIntersectionTypeNode:()=>wN,isIntrinsicJsxName:()=>n4,isIterationStatement:()=>hx,isJSDoc:()=>t0,isJSDocAllType:()=>yye,isJSDocAugmentsTag:()=>AN,isJSDocAuthorTag:()=>tMe,isJSDocCallbackTag:()=>qee,isJSDocClassTag:()=>bye,isJSDocCommentContainingNode:()=>Sz,isJSDocConstructSignature:()=>QP,isJSDocDeprecatedTag:()=>Yee,isJSDocEnumTag:()=>UR,isJSDocFunctionType:()=>k4,isJSDocImplementsTag:()=>IH,isJSDocImportTag:()=>oy,isJSDocIndexSignature:()=>Zz,isJSDocLikeText:()=>_te,isJSDocLink:()=>hye,isJSDocLinkCode:()=>gye,isJSDocLinkLike:()=>WI,isJSDocLinkPlain:()=>Z7e,isJSDocMemberName:()=>vk,isJSDocNameReference:()=>zO,isJSDocNamepathType:()=>eMe,isJSDocNamespaceBody:()=>KFe,isJSDocNode:()=>RP,isJSDocNonNullableType:()=>wH,isJSDocNullableType:()=>C4,isJSDocOptionalParameter:()=>iH,isJSDocOptionalType:()=>Jee,isJSDocOverloadTag:()=>w4,isJSDocOverrideTag:()=>EH,isJSDocParameterTag:()=>ph,isJSDocPrivateTag:()=>Gee,isJSDocPropertyLikeTag:()=>P3,isJSDocPropertyTag:()=>Sye,isJSDocProtectedTag:()=>Kee,isJSDocPublicTag:()=>$ee,isJSDocReadonlyTag:()=>Xee,isJSDocReturnTag:()=>DH,isJSDocSatisfiesExpression:()=>See,isJSDocSatisfiesTag:()=>NH,isJSDocSeeTag:()=>iMe,isJSDocSignature:()=>ob,isJSDocTag:()=>BP,isJSDocTemplateTag:()=>Gh,isJSDocThisTag:()=>Qee,isJSDocThrowsTag:()=>rMe,isJSDocTypeAlias:()=>Vh,isJSDocTypeAssertion:()=>TE,isJSDocTypeExpression:()=>yk,isJSDocTypeLiteral:()=>CE,isJSDocTypeTag:()=>VO,isJSDocTypedefTag:()=>kE,isJSDocUnknownTag:()=>nMe,isJSDocUnknownType:()=>vye,isJSDocVariadicType:()=>TH,isJSXTagName:()=>GP,isJsonEqual:()=>YV,isJsonSourceFile:()=>Wh,isJsxAttribute:()=>ry,isJsxAttributeLike:()=>vz,isJsxAttributeName:()=>E0e,isJsxAttributes:()=>pT,isJsxChild:()=>SM,isJsxClosingElement:()=>fT,isJsxClosingFragment:()=>pye,isJsxElement:()=>Yv,isJsxExpression:()=>jO,isJsxFragment:()=>_T,isJsxNamespacedName:()=>e0,isJsxOpeningElement:()=>ny,isJsxOpeningFragment:()=>xE,isJsxOpeningLikeElement:()=>Mf,isJsxOpeningLikeElementTagName:()=>SSe,isJsxSelfClosingElement:()=>SE,isJsxSpreadAttribute:()=>NN,isJsxTagNameExpression:()=>B3,isJsxText:()=>yN,isJumpStatementTarget:()=>j5,isKeyword:()=>Q_,isKeywordOrPunctuation:()=>oV,isKnownSymbol:()=>oR,isLabelName:()=>Kne,isLabelOfLabeledStatement:()=>Gne,isLabeledStatement:()=>Px,isLateVisibilityPaintedStatement:()=>Fz,isLeftHandSideExpression:()=>X_,isLet:()=>Bz,isLineBreak:()=>Jf,isLiteralComputedPropertyDeclarationName:()=>tR,isLiteralExpression:()=>Q2,isLiteralExpressionOfObject:()=>wQ,isLiteralImportTypeNode:()=>eS,isLiteralKind:()=>L3,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>pJ,isLiteralTypeLiteral:()=>the,isLiteralTypeNode:()=>dS,isLocalName:()=>sb,isLogicalOperator:()=>Pge,isLogicalOrCoalescingAssignmentExpression:()=>WZ,isLogicalOrCoalescingAssignmentOperator:()=>oO,isLogicalOrCoalescingBinaryExpression:()=>_R,isLogicalOrCoalescingBinaryOperator:()=>bV,isMappedTypeNode:()=>yE,isMemberName:()=>Bv,isMetaProperty:()=>FO,isMethodDeclaration:()=>pu,isMethodOrAccessor:()=>BI,isMethodSignature:()=>Z0,isMinusToken:()=>Mee,isMissingDeclaration:()=>Q7e,isMissingPackageJsonInfo:()=>Dve,isModifier:()=>xa,isModifierKind:()=>px,isModifierLike:()=>vl,isModuleAugmentationExternal:()=>KQ,isModuleBlock:()=>ty,isModuleBody:()=>nhe,isModuleDeclaration:()=>Hu,isModuleExportName:()=>kH,isModuleExportsAccessExpression:()=>Vv,isModuleIdentifier:()=>dZ,isModuleName:()=>Bye,isModuleOrEnumDeclaration:()=>vM,isModuleReference:()=>che,isModuleSpecifierLike:()=>IJ,isModuleWithStringLiteralName:()=>Oz,isNameOfFunctionDeclaration:()=>Zne,isNameOfModuleDeclaration:()=>Qne,isNamedDeclaration:()=>pf,isNamedEvaluation:()=>Hp,isNamedEvaluationSource:()=>kZ,isNamedExportBindings:()=>CQ,isNamedExports:()=>_h,isNamedImportBindings:()=>OQ,isNamedImports:()=>iy,isNamedImportsOrExports:()=>IV,isNamedTupleMember:()=>y4,isNamespaceBody:()=>GFe,isNamespaceExport:()=>Zy,isNamespaceExportDeclaration:()=>HR,isNamespaceImport:()=>Xv,isNamespaceReexportDeclaration:()=>Yhe,isNewExpression:()=>uT,isNewExpressionTarget:()=>v8,isNoSubstitutionTemplateLiteral:()=>mE,isNodeArray:()=>jw,isNodeArrayMultiLine:()=>zge,isNodeDescendantOf:()=>Xw,isNodeKind:()=>_z,isNodeLikeSystem:()=>AY,isNodeModulesDirectory:()=>ZW,isNodeWithPossibleHoistedDeclaration:()=>cge,isNonContextualKeyword:()=>xZ,isNonGlobalAmbientModule:()=>GQ,isNonNullAccess:()=>T0e,isNonNullChain:()=>fz,isNonNullExpression:()=>DN,isNonStaticMethodOrAccessorWithPrivateName:()=>s1e,isNotEmittedStatement:()=>_ye,isNullishCoalesce:()=>xQ,isNumber:()=>nx,isNumericLiteral:()=>Z_,isNumericLiteralName:()=>Kv,isObjectBindingElementWithoutPropertyName:()=>G5,isObjectBindingOrAssignmentElement:()=>mM,isObjectBindingOrAssignmentPattern:()=>IQ,isObjectBindingPattern:()=>Om,isObjectLiteralElement:()=>FQ,isObjectLiteralElementLike:()=>G1,isObjectLiteralExpression:()=>ba,isObjectLiteralMethod:()=>zh,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Vz,isObjectTypeDeclaration:()=>sN,isOmittedExpression:()=>Ed,isOptionalChain:()=>qf,isOptionalChainRoot:()=>I3,isOptionalDeclaration:()=>m4,isOptionalJSDocPropertyLikeTag:()=>IR,isOptionalTypeNode:()=>yH,isOuterExpression:()=>LH,isOutermostOptionalChain:()=>N3,isOverrideModifier:()=>rye,isPackageJsonInfo:()=>nU,isPackedArrayLiteral:()=>vee,isParameter:()=>To,isParameterPropertyDeclaration:()=>Wp,isParameterPropertyModifier:()=>F3,isParenthesizedExpression:()=>O_,isParenthesizedTypeNode:()=>gE,isParseTreeNode:()=>D3,isPartOfParameterDeclaration:()=>lk,isPartOfTypeNode:()=>U0,isPartOfTypeQuery:()=>Xz,isPartiallyEmittedExpression:()=>zee,isPatternMatch:()=>WW,isPinnedComment:()=>Pz,isPlainJsFile:()=>W3,isPlusToken:()=>Fee,isPossiblyTypeArgumentPosition:()=>H5,isPostfixUnaryExpression:()=>Wee,isPrefixUnaryExpression:()=>mk,isPrimitiveLiteralValue:()=>oH,isPrivateIdentifier:()=>xo,isPrivateIdentifierClassElementDeclaration:()=>u_,isPrivateIdentifierPropertyAccessExpression:()=>FP,isPrivateIdentifierSymbol:()=>_ge,isProgramUptoDate:()=>$ie,isPrologueDirective:()=>H0,isPropertyAccessChain:()=>uz,isPropertyAccessEntityNameExpression:()=>mR,isPropertyAccessExpression:()=>lr,isPropertyAccessOrQualifiedName:()=>gM,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Zme,isPropertyAssignment:()=>ed,isPropertyDeclaration:()=>ls,isPropertyName:()=>zu,isPropertyNameLiteral:()=>q0,isPropertySignature:()=>ep,isPrototypeAccess:()=>xx,isPrototypePropertyAssignment:()=>$M,isPunctuation:()=>SZ,isPushOrUnshiftIdentifier:()=>wZ,isQualifiedName:()=>P_,isQuestionDotToken:()=>hH,isQuestionOrExclamationToken:()=>Oye,isQuestionOrPlusOrMinusToken:()=>Rye,isQuestionToken:()=>Ix,isReadonlyKeyword:()=>iye,isReadonlyKeywordOrPlusOrMinusToken:()=>Mye,isRecognizedTripleSlashComment:()=>HQ,isReferenceFileLocation:()=>V4,isReferencedFile:()=>Tk,isRegularExpressionLiteral:()=>Lee,isRequireCall:()=>Y_,isRequireVariableStatement:()=>zM,isRestParameter:()=>Jy,isRestTypeNode:()=>vH,isReturnStatement:()=>qh,isReturnStatementWithFixablePromiseHandler:()=>XJ,isRightSideOfAccessExpression:()=>HZ,isRightSideOfInstanceofExpression:()=>Oge,isRightSideOfPropertyAccess:()=>$4,isRightSideOfQualifiedName:()=>xSe,isRightSideOfQualifiedNameOrPropertyAccess:()=>sO,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Lge,isRootedDiskPath:()=>jp,isSameEntityName:()=>KP,isSatisfiesExpression:()=>xH,isSemicolonClassElement:()=>lye,isSetAccessor:()=>z0,isSetAccessorDeclaration:()=>qp,isShiftOperatorOrHigher:()=>ute,isShorthandAmbientModuleSymbol:()=>wM,isShorthandPropertyAssignment:()=>jf,isSideEffectImport:()=>Tee,isSignedNumericLiteral:()=>aV,isSimpleCopiableExpression:()=>yT,isSimpleInlineableExpression:()=>sy,isSimpleParameterList:()=>g5,isSingleOrDoubleQuote:()=>VM,isSourceElement:()=>I0e,isSourceFile:()=>mo,isSourceFileFromLibrary:()=>i6,isSourceFileJS:()=>N_,isSourceFileNotJson:()=>Qz,isSourceMapping:()=>n1e,isSpecialPropertyDeclaration:()=>tge,isSpreadAssignment:()=>Qv,isSpreadElement:()=>fh,isStatement:()=>_o,isStatementButNotDeclaration:()=>bM,isStatementOrBlock:()=>ahe,isStatementWithLocals:()=>ghe,isStatic:()=>ia,isStaticModifier:()=>SN,isString:()=>fs,isStringANonContextualKeyword:()=>ZI,isStringAndEmptyAnonymousObjectIntersection:()=>OSe,isStringDoubleQuoted:()=>eV,isStringLiteral:()=>Da,isStringLiteralLike:()=>xc,isStringLiteralOrJsxExpression:()=>lhe,isStringLiteralOrTemplate:()=>exe,isStringOrNumericLiteralLike:()=>Am,isStringOrRegularExpressionOrTemplateLiteral:()=>cre,isStringTextContainingNode:()=>TQ,isSuperCall:()=>oE,isSuperKeyword:()=>PO,isSuperProperty:()=>mp,isSupportedSourceFileName:()=>_0e,isSwitchStatement:()=>RO,isSyntaxList:()=>T4,isSyntheticExpression:()=>J7e,isSyntheticReference:()=>IN,isTagName:()=>Xne,isTaggedTemplateExpression:()=>pk,isTaggedTemplateTag:()=>vSe,isTemplateExpression:()=>bH,isTemplateHead:()=>vN,isTemplateLiteral:()=>jI,isTemplateLiteralKind:()=>fx,isTemplateLiteralToken:()=>$me,isTemplateLiteralTypeNode:()=>aye,isTemplateLiteralTypeSpan:()=>Bee,isTemplateMiddle:()=>Oee,isTemplateMiddleOrTemplateTail:()=>pz,isTemplateSpan:()=>S4,isTemplateTail:()=>pH,isTextWhiteSpaceLike:()=>WSe,isThis:()=>G4,isThisContainerOrFunctionBlock:()=>Ghe,isThisIdentifier:()=>bx,isThisInTypeQuery:()=>eT,isThisInitializedDeclaration:()=>$z,isThisInitializedObjectBindingExpression:()=>Xhe,isThisProperty:()=>FM,isThisTypeNode:()=>v4,isThisTypeParameter:()=>kO,isThisTypePredicate:()=>Uhe,isThrowStatement:()=>Uee,isToken:()=>MI,isTokenKind:()=>kQ,isTraceEnabled:()=>Ox,isTransientSymbol:()=>jv,isTrivia:()=>t4,isTryStatement:()=>vE,isTupleTypeNode:()=>kN,isTypeAlias:()=>XM,isTypeAliasDeclaration:()=>$h,isTypeAssertionExpression:()=>jee,isTypeDeclaration:()=>fN,isTypeElement:()=>Ww,isTypeKeyword:()=>C8,isTypeKeywordTokenOrIdentifier:()=>TJ,isTypeLiteralNode:()=>L_,isTypeNode:()=>io,isTypeNodeKind:()=>QZ,isTypeOfExpression:()=>b4,isTypeOnlyExportDeclaration:()=>Gme,isTypeOnlyImportDeclaration:()=>O3,isTypeOnlyImportOrExportDeclaration:()=>_x,isTypeOperatorNode:()=>_k,isTypeParameterDeclaration:()=>Sl,isTypePredicateNode:()=>CN,isTypeQueryNode:()=>aT,isTypeReferenceNode:()=>pm,isTypeReferenceType:()=>Cz,isTypeUsableAsPropertyName:()=>uh,isUMDExportSymbol:()=>DV,isUnaryExpression:()=>PQ,isUnaryExpressionWithWrite:()=>ehe,isUnicodeIdentifierStart:()=>tz,isUnionTypeNode:()=>Nx,isUrl:()=>lme,isValidBigIntString:()=>QV,isValidESSymbolDeclaration:()=>zhe,isValidTypeOnlyAliasUseSite:()=>dk,isValueSignatureDeclaration:()=>QI,isVarAwaitUsing:()=>NM,isVarConst:()=>UP,isVarConstLike:()=>Mhe,isVarUsing:()=>AM,isVariableDeclaration:()=>Ur,isVariableDeclarationInVariableStatement:()=>H3,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>$w,isVariableDeclarationInitializedToRequire:()=>WM,isVariableDeclarationList:()=>ef,isVariableLike:()=>qI,isVariableLikeOrAccessor:()=>jhe,isVariableStatement:()=>mu,isVoidExpression:()=>TN,isWatchSet:()=>KZ,isWhileStatement:()=>Hee,isWhiteSpaceLike:()=>Fv,isWhiteSpaceSingleLine:()=>j0,isWithStatement:()=>uye,isWriteAccess:()=>oN,isWriteOnlyAccess:()=>EV,isYieldExpression:()=>SH,jsxModeNeedsExplicitImport:()=>Jre,keywordPart:()=>Yp,last:()=>pa,lastOrUndefined:()=>Lc,length:()=>K,libMap:()=>vte,libs:()=>WH,lineBreakPart:()=>Z4,loadModuleFromGlobalCache:()=>Wve,loadWithModeAwareCache:()=>T5,makeIdentifierFromModuleName:()=>khe,makeImport:()=>Wx,makeStringLiteral:()=>k8,mangleScopedPackageName:()=>M4,map:()=>_i,mapAllOrFail:()=>Hb,mapDefined:()=>ro,mapDefinedIterator:()=>bd,mapEntries:()=>oI,mapIterator:()=>wc,mapOneOrMany:()=>zre,mapToDisplayParts:()=>Dk,matchFiles:()=>lee,matchPatternOrExact:()=>_ee,matchedText:()=>H_e,matchesExclude:()=>ZH,maxBy:()=>CY,maybeBind:()=>Ps,maybeSetLocalizedDiagnosticMessages:()=>Xge,memoize:()=>l_,memoizeOne:()=>B0,min:()=>kY,minAndMax:()=>h0e,missingFileModifiedTime:()=>Bp,modifierToFlag:()=>nN,modifiersToFlags:()=>K0,moduleExportNameIsDefault:()=>qy,moduleExportNameTextEscaped:()=>Hw,moduleExportNameTextUnescaped:()=>vx,moduleOptionDeclaration:()=>Xye,moduleResolutionIsEqualTo:()=>mhe,moduleResolutionNameAndModeGetter:()=>PU,moduleResolutionOptionDeclarations:()=>Ste,moduleResolutionSupportsPackageJsonExportsAndImports:()=>u4,moduleResolutionUsesNodeModules:()=>EJ,moduleSpecifierToValidIdentifier:()=>r9,moduleSpecifiers:()=>pS,moduleSymbolToValidIdentifier:()=>n9,moveEmitHelpers:()=>H0e,moveRangeEnd:()=>wV,moveRangePastDecorators:()=>Z1,moveRangePastModifiers:()=>X0,moveRangePos:()=>uk,moveSyntheticComments:()=>W0e,mutateMap:()=>fO,mutateMapSkippingNewValues:()=>Uv,needsParentheses:()=>LJ,needsScopeMarker:()=>gz,newCaseClauseTracker:()=>JJ,newPrivateEnvironment:()=>c1e,noEmitNotification:()=>b5,noEmitSubstitution:()=>l8,noTransformers:()=>W1e,noTruncationMaximumTruncationLength:()=>BQ,nodeCanBeDecorated:()=>RM,nodeHasName:()=>cM,nodeIsDecorated:()=>$P,nodeIsMissing:()=>Ul,nodeIsPresent:()=>jh,nodeIsSynthesized:()=>Uc,nodeModuleNameResolver:()=>Lve,nodeModulesPathPart:()=>Zv,nodeNextJsonConfigResolver:()=>Ove,nodeOrChildIsDecorated:()=>BM,nodeOverlapsWithStartEnd:()=>mJ,nodePosToString:()=>QFe,nodeSeenTracker:()=>X4,nodeStartsNewLexicalEnvironment:()=>TZ,noop:()=>dc,noopFileWatcher:()=>h8,normalizePath:()=>$s,normalizeSlashes:()=>ff,normalizeSpans:()=>_Q,not:()=>VW,notImplemented:()=>la,notImplementedResolver:()=>J1e,nullNodeConverters:()=>R0e,nullParenthesizerRules:()=>F0e,nullTransformationContext:()=>x5,objectAllocator:()=>gf,operatorPart:()=>T8,optionDeclarations:()=>i0,optionMapToObject:()=>$H,optionsAffectingProgramStructure:()=>tve,optionsForBuild:()=>Cte,optionsForWatch:()=>MN,optionsHaveChanges:()=>WP,or:()=>Im,orderedRemoveItem:()=>l3,orderedRemoveItemAt:()=>ax,packageIdToPackageName:()=>Iz,packageIdToString:()=>tk,parameterIsThisKeyword:()=>Zw,parameterNamePart:()=>VSe,parseBaseNodeFactory:()=>Uye,parseBigInt:()=>y0e,parseBuildCommand:()=>lve,parseCommandLine:()=>ave,parseCommandLineWorker:()=>wte,parseConfigFileTextToJson:()=>Ete,parseConfigFileWithSystem:()=>Dbe,parseConfigHostFromCompilerHostLike:()=>jU,parseCustomTypeOption:()=>UH,parseIsolatedEntityName:()=>FN,parseIsolatedJSDocComment:()=>qye,parseJSDocTypeExpressionForTests:()=>DMe,parseJsonConfigFileContent:()=>nRe,parseJsonSourceFileConfigFileContent:()=>s5,parseJsonText:()=>e5,parseListTypeOption:()=>ove,parseNodeFactory:()=>Sk,parseNodeModuleFromPath:()=>l5,parsePackageName:()=>aU,parsePseudoBigInt:()=>bO,parseValidBigInt:()=>gee,pasteEdits:()=>zse,patchWriteFileEnsuringDirectory:()=>cme,pathContainsNodeModules:()=>Mx,pathIsAbsolute:()=>v3,pathIsBareSpecifier:()=>nQ,pathIsRelative:()=>Nm,patternText:()=>V_e,performIncrementalCompilation:()=>Ibe,performance:()=>Y_e,positionBelongsToNode:()=>tre,positionIsASICandidate:()=>MJ,positionIsSynthesized:()=>Yg,positionsAreOnSameLine:()=>ch,preProcessFile:()=>hje,probablyUsesSemicolons:()=>e9,processCommentPragmas:()=>gte,processPragmasIntoFields:()=>yte,processTaggedTemplateExpression:()=>yie,programContainsEsModules:()=>BSe,programContainsModules:()=>RSe,projectReferenceIsEqualTo:()=>jQ,propertyNamePart:()=>HSe,pseudoBigIntToString:()=>rT,punctuationPart:()=>Yf,pushIfUnique:()=>jc,quote:()=>I8,quotePreferenceFromString:()=>yre,rangeContainsPosition:()=>b8,rangeContainsPositionExclusive:()=>W5,rangeContainsRange:()=>Xp,rangeContainsRangeExclusive:()=>kSe,rangeContainsStartEnd:()=>z5,rangeEndIsOnSameLineAsRangeStart:()=>gR,rangeEndPositionsAreOnSameLine:()=>jge,rangeEquals:()=>D0,rangeIsOnSingleLine:()=>fE,rangeOfNode:()=>mee,rangeOfTypeParameters:()=>hee,rangeOverlapsWithStartEnd:()=>S8,rangeStartIsOnSameLineAsRangeEnd:()=>Wge,rangeStartPositionsAreOnSameLine:()=>TV,readBuilderProgram:()=>YU,readConfigFile:()=>r5,readJson:()=>cO,readJsonConfigFile:()=>uve,readJsonOrUndefined:()=>JZ,reduceEachLeadingCommentRange:()=>gme,reduceEachTrailingCommentRange:()=>yme,reduceLeft:()=>Of,reduceLeftIterator:()=>Ye,reducePathComponents:()=>$2,refactor:()=>YN,regExpEscape:()=>E7e,regularExpressionFlagToCharacterCode:()=>TFe,relativeComplement:()=>Js,removeAllComments:()=>OR,removeEmitHelper:()=>z7e,removeExtension:()=>ER,removeFileExtension:()=>A_,removeIgnoredPath:()=>HU,removeMinAndVersionNumbers:()=>EY,removePrefix:()=>u3,removeSuffix:()=>EP,removeTrailingDirectorySeparator:()=>$C,repeatString:()=>q5,replaceElement:()=>wP,replaceFirstStar:()=>_E,resolutionExtensionIsTSOrJson:()=>hO,resolveConfigFileProjectName:()=>kne,resolveJSModule:()=>Nve,resolveLibrary:()=>oU,resolveModuleName:()=>jN,resolveModuleNameFromCache:()=>LRe,resolvePackageNameToPackageJson:()=>Bte,resolvePath:()=>qC,resolveProjectReferencePath:()=>H4,resolveTripleslashReference:()=>Mie,resolveTypeReferenceDirective:()=>Tve,resolvingEmptyArray:()=>RQ,returnFalse:()=>R0,returnNoopFileWatcher:()=>g8,returnTrue:()=>UC,returnUndefined:()=>Fw,returnsPromise:()=>ooe,sameFlatMap:()=>Wy,sameMap:()=>Uo,sameMapping:()=>C5e,scanTokenAtPosition:()=>Fhe,scanner:()=>m_,semanticDiagnosticsOptionDeclarations:()=>Qye,serializeCompilerOptions:()=>GH,server:()=>CKe,servicesVersion:()=>sze,setCommentRange:()=>ud,setConfigFileInOptions:()=>Lte,setConstantValue:()=>V0e,setEmitFlags:()=>Hn,setGetSourceFileAsHashVersioned:()=>XU,setIdentifierAutoGenerate:()=>RR,setIdentifierGeneratedImportReference:()=>q0e,setIdentifierTypeArguments:()=>uS,setInternalEmitFlags:()=>FR,setLocalizedDiagnosticMessages:()=>Kge,setNodeChildren:()=>xye,setNodeFlags:()=>S0e,setObjectAllocator:()=>Gge,setOriginalNode:()=>cr,setParent:()=>ic,setParentRecursive:()=>tb,setPrivateIdentifier:()=>IE,setSnippetElement:()=>Aee,setSourceMapRange:()=>Fa,setStackTraceLimit:()=>uFe,setStartsOnNewLine:()=>cH,setSyntheticLeadingComments:()=>fk,setSyntheticTrailingComments:()=>hN,setSys:()=>hFe,setSysLog:()=>ome,setTextRange:()=>Ft,setTextRangeEnd:()=>p4,setTextRangePos:()=>SO,setTextRangePosEnd:()=>Qg,setTextRangePosWidth:()=>yee,setTokenSourceMapRange:()=>j0e,setTypeNode:()=>U0e,setUILocale:()=>j_e,setValueDeclaration:()=>GM,shouldAllowImportingTsExtension:()=>R4,shouldPreserveConstEnums:()=>Cx,shouldUseUriStyleNodeCoreModules:()=>HJ,showModuleSpecifier:()=>Jge,signatureHasRestParameter:()=>Xf,signatureToDisplayParts:()=>Ire,single:()=>kP,singleElementArray:()=>AI,singleIterator:()=>Kb,singleOrMany:()=>pg,singleOrUndefined:()=>Fh,skipAlias:()=>hf,skipConstraint:()=>mre,skipOuterExpressions:()=>Cu,skipParentheses:()=>fc,skipPartiallyEmittedExpressions:()=>xg,skipTrivia:()=>Ea,skipTypeChecking:()=>_4,skipTypeCheckingIgnoringNoCheck:()=>g0e,skipTypeParentheses:()=>X3,skipWhile:()=>J_e,sliceAfter:()=>pee,some:()=>Lt,sortAndDeduplicate:()=>zn,sortAndDeduplicateDiagnostics:()=>PP,sourceFileAffectingCompilerOptions:()=>xte,sourceFileMayBeEmitted:()=>dE,sourceMapCommentRegExp:()=>sie,sourceMapCommentRegExpDontCareLineStart:()=>e1e,spacePart:()=>tu,spanMap:()=>hd,startEndContainsRange:()=>ere,startEndOverlapsWithStartEnd:()=>hJ,startOnNewLine:()=>Kf,startTracing:()=>tpe,startsWith:()=>Ro,startsWithDirectory:()=>sQ,startsWithUnderscore:()=>Ure,startsWithUseStrict:()=>Iye,stringContainsAt:()=>axe,stringToToken:()=>K2,stripQuotes:()=>sh,supportedDeclarationExtensions:()=>$V,supportedJSExtensionsFlat:()=>d4,supportedLocaleDirectories:()=>Pme,supportedTSExtensionsFlat:()=>uee,supportedTSImplementationExtensions:()=>kR,suppressLeadingAndTrailingTrivia:()=>Qp,suppressLeadingTrivia:()=>Lre,suppressTrailingTrivia:()=>YSe,symbolEscapedNameNoDefault:()=>DJ,symbolName:()=>fu,symbolNameNoDefault:()=>bre,symbolToDisplayParts:()=>E8,sys:()=>Sd,sysLog:()=>K7,tagNamesAreEquivalent:()=>Ck,takeWhile:()=>NY,targetOptionDeclaration:()=>bte,testFormatSettings:()=>RBe,textChangeRangeIsUnchanged:()=>Eme,textChangeRangeNewSpan:()=>E3,textChanges:()=>Vn,textOrKeywordPart:()=>Dre,textPart:()=>Bm,textRangeContainsPositionInclusive:()=>rM,textRangeContainsTextSpan:()=>Sme,textRangeIntersectsWithTextSpan:()=>wme,textSpanContainsPosition:()=>dQ,textSpanContainsTextRange:()=>fQ,textSpanContainsTextSpan:()=>bme,textSpanEnd:()=>Vl,textSpanIntersection:()=>Tme,textSpanIntersectsWith:()=>oM,textSpanIntersectsWithPosition:()=>kme,textSpanIntersectsWithTextSpan:()=>Cme,textSpanIsEmpty:()=>vme,textSpanOverlap:()=>xme,textSpanOverlapsWith:()=>OFe,textSpansEqual:()=>Q4,textToKeywordObj:()=>ez,timestamp:()=>zc,toArray:()=>II,toBuilderFileEmit:()=>gbe,toBuilderStateFileInfoForMultiEmit:()=>hbe,toEditorSettings:()=>_9,toFileNameLowerCase:()=>rx,toPath:()=>Vc,toProgramEmitPending:()=>ybe,toSorted:()=>lc,tokenIsIdentifierOrKeyword:()=>$_,tokenIsIdentifierOrKeywordOrGreaterThan:()=>dme,tokenToString:()=>ua,trace:()=>Qo,tracing:()=>jn,tracingEnabled:()=>$7,transferSourceFileChildren:()=>Cye,transform:()=>hze,transformClassFields:()=>y1e,transformDeclarations:()=>xie,transformECMAScriptModule:()=>Sie,transformES2015:()=>P1e,transformES2016:()=>A1e,transformES2017:()=>x1e,transformES2018:()=>C1e,transformES2019:()=>k1e,transformES2020:()=>w1e,transformES2021:()=>T1e,transformESDecorators:()=>S1e,transformESNext:()=>E1e,transformGenerators:()=>L1e,transformImpliedNodeFormatDependentModule:()=>F1e,transformJsx:()=>N1e,transformLegacyDecorators:()=>b1e,transformModule:()=>bie,transformNamedEvaluation:()=>Gp,transformNodes:()=>S5,transformSystemModule:()=>O1e,transformTypeScript:()=>g1e,transpile:()=>wje,transpileDeclaration:()=>Cje,transpileModule:()=>Ixe,transpileOptionValueCompilerOptions:()=>ive,tryAddToSet:()=>_p,tryAndIgnoreErrors:()=>jJ,tryCast:()=>kr,tryDirectoryExists:()=>BJ,tryExtractTSExtension:()=>CV,tryFileExists:()=>t9,tryGetClassExtendingExpressionWithTypeArguments:()=>zZ,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>VZ,tryGetDirectories:()=>RJ,tryGetExtensionFromPath:()=>Gv,tryGetImportFromModuleSpecifier:()=>KM,tryGetJSDocSatisfiesTypeNode:()=>nH,tryGetModuleNameFromFile:()=>GR,tryGetModuleSpecifierFromDeclaration:()=>XP,tryGetNativePerformanceHooks:()=>X_e,tryGetPropertyAccessOrIdentifierToString:()=>hR,tryGetPropertyNameOfBindingOrAssignmentElement:()=>MH,tryGetSourceMappingURL:()=>t1e,tryGetTextOfPropertyName:()=>V3,tryParseJson:()=>kV,tryParsePattern:()=>f4,tryParsePatterns:()=>KV,tryParseRawSourceMap:()=>i1e,tryReadDirectory:()=>Rre,tryReadFile:()=>GO,tryRemoveDirectoryPrefix:()=>aee,tryRemoveExtension:()=>m0e,tryRemovePrefix:()=>IY,tryRemoveSuffix:()=>z_e,typeAcquisitionDeclarations:()=>VH,typeAliasNamePart:()=>USe,typeDirectiveIsEqualTo:()=>hhe,typeKeywords:()=>pre,typeParameterNamePart:()=>JSe,typeToDisplayParts:()=>X5,unchangedPollThresholds:()=>GW,unchangedTextChangeRange:()=>rz,unescapeLeadingUnderscores:()=>So,unmangleScopedPackageName:()=>d5,unorderedRemoveItem:()=>NI,unreachableCodeIsError:()=>e0e,unsetNodeChildren:()=>ete,unusedLabelIsError:()=>t0e,unwrapInnermostStatementOfLabel:()=>sZ,unwrapParenthesizedExpression:()=>A0e,updateErrorForNoInputFiles:()=>QH,updateLanguageServiceSourceFile:()=>Aoe,updateMissingFilePathsWatch:()=>Lie,updateResolutionField:()=>P4,updateSharedExtendedConfigFileWatcher:()=>DU,updateSourceFile:()=>pte,updateWatchingWildcardDirectories:()=>C5,usingSingleLineStringWriter:()=>zP,utf16EncodeAsString:()=>T3,validateLocaleAndSetLanguage:()=>mQ,version:()=>O,versionMajorMinor:()=>D,visitArray:()=>p5,visitCommaListElements:()=>m5,visitEachChild:()=>Qi,visitFunctionBody:()=>Rm,visitIterationBody:()=>M_,visitLexicalEnvironment:()=>oie,visitNode:()=>pt,visitNodes:()=>mn,visitParameterList:()=>Ql,walkUpBindingElementsAndPatterns:()=>FI,walkUpOuterExpressions:()=>Nye,walkUpParenthesizedExpressions:()=>Ky,walkUpParenthesizedTypes:()=>eR,walkUpParenthesizedTypesAndGetParentAndChild:()=>lge,whitespaceOrMapCommentRegExp:()=>aie,writeCommentRange:()=>s4,writeFile:()=>gV,writeFileEnsuringDirectories:()=>FZ,zipWith:()=>ft});var C9t=!0,bKe;function k9t(){return bKe??(bKe=new Ug(O))}function SKe(e,t,r,a,u){let f=t?"DeprecationError: ":"DeprecationWarning: ";return f+=`'${e}' `,f+=a?`has been deprecated since v${a}`:"is deprecated",f+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",f+=u?` ${Jv(u,[e])}`:"",f}function w9t(e,t,r,a){let u=SKe(e,!0,t,r,a);return()=>{throw new TypeError(u)}}function T9t(e,t,r,a){let u=!1;return()=>{C9t&&!u&&(B.log.warn(SKe(e,!1,t,r,a)),u=!0)}}function E9t(e,t={}){let r=typeof t.typeScriptVersion=="string"?new Ug(t.typeScriptVersion):t.typeScriptVersion??k9t(),a=typeof t.errorAfter=="string"?new Ug(t.errorAfter):t.errorAfter,u=typeof t.warnAfter=="string"?new Ug(t.warnAfter):t.warnAfter,f=typeof t.since=="string"?new Ug(t.since):t.since??u,p=t.error||a&&r.compareTo(a)>=0,y=!u||r.compareTo(u)>=0;return p?w9t(e,a,f,t.message):y?T9t(e,a,f,t.message):dc}function D9t(e,t){return function(){return e(),t.apply(this,arguments)}}function I9t(e,t){let r=E9t(t?.name??B.getFunctionName(e),t);return D9t(r,e)}function Vse(e,t,r,a){if(Object.defineProperty(f,"name",{...Object.getOwnPropertyDescriptor(f,"name"),value:e}),a)for(let p of Object.keys(a)){let y=+p;!isNaN(y)&&Nc(t,`${y}`)&&(t[y]=I9t(t[y],{...a[y],name:e}))}let u=N9t(t,r);return f;function f(...p){let y=u(p),g=y!==void 0?t[y]:void 0;if(typeof g=="function")return g(...p);throw new TypeError("Invalid arguments")}}function N9t(e,t){return r=>{for(let a=0;Nc(e,`${a}`)&&Nc(t,`${a}`);a++){let u=t[a];if(u(r))return a}}}function xKe(e){return{overload:t=>({bind:r=>({finish:()=>Vse(e,t,r),deprecate:a=>({finish:()=>Vse(e,t,r,a)})})})}}var CKe={};_(CKe,{ActionInvalidate:()=>oJ,ActionPackageInstalled:()=>sJ,ActionSet:()=>rJ,ActionWatchTypingLocations:()=>M5,Arguments:()=>Wne,AutoImportProviderProject:()=>d2e,AuxiliaryProject:()=>l2e,CharRangeSection:()=>F2e,CloseFileWatcherEvent:()=>tae,CommandNames:()=>eXe,ConfigFileDiagEvent:()=>Xse,ConfiguredProject:()=>f2e,ConfiguredProjectLoadKind:()=>y2e,CreateDirectoryWatcherEvent:()=>eae,CreateFileWatcherEvent:()=>Zse,Errors:()=>fb,EventBeginInstallTypes:()=>Bne,EventEndInstallTypes:()=>jne,EventInitializationFailed:()=>tSe,EventTypesRegistry:()=>Rne,ExternalProject:()=>Use,GcTimer:()=>ZTe,InferredProject:()=>c2e,LargeFileReferencedEvent:()=>Kse,LineIndex:()=>J9,LineLeaf:()=>Uq,LineNode:()=>h6,LogLevel:()=>UTe,Msg:()=>JTe,OpenFileInfoTelemetryEvent:()=>_2e,Project:()=>sA,ProjectInfoTelemetryEvent:()=>Qse,ProjectKind:()=>j9,ProjectLanguageServiceStateEvent:()=>Yse,ProjectLoadingFinishEvent:()=>Gse,ProjectLoadingStartEvent:()=>$se,ProjectService:()=>w2e,ProjectsUpdatedInBackgroundEvent:()=>zq,ScriptInfo:()=>n2e,ScriptVersionCache:()=>fae,Session:()=>oXe,TextStorage:()=>i2e,ThrottledOperations:()=>QTe,TypingsInstallerAdapter:()=>dXe,allFilesAreJsOrDts:()=>o2e,allRootFilesAreJsOrDts:()=>r2e,asNormalizedPath:()=>EKe,convertCompilerOptions:()=>Vq,convertFormatOptions:()=>_6,convertScriptKindName:()=>nae,convertTypeAcquisition:()=>m2e,convertUserPreferences:()=>h2e,convertWatchOptions:()=>H9,countEachFileTypes:()=>W9,createInstallTypingsRequest:()=>qTe,createModuleSpecifierCache:()=>D2e,createNormalizedPathMap:()=>DKe,createPackageJsonCache:()=>I2e,createSortedArray:()=>YTe,emptyArray:()=>Id,findArgument:()=>TBe,formatDiagnosticToProtocol:()=>U9,formatMessage:()=>N2e,getBaseConfigFileName:()=>Hse,getLocationInNewDocument:()=>O2e,hasArgument:()=>wBe,hasNoTypeScriptSource:()=>s2e,indent:()=>y8,isBackgroundProject:()=>V9,isConfigFile:()=>T2e,isConfiguredProject:()=>xS,isDynamicFileName:()=>B9,isExternalProject:()=>z9,isInferredProject:()=>f6,isInferredProjectName:()=>$Te,isProjectDeferredClose:()=>Wq,makeAutoImportProviderProjectName:()=>KTe,makeAuxiliaryProjectName:()=>XTe,makeInferredProjectName:()=>GTe,maxFileSize:()=>qse,maxProgramSizeForNonTsFiles:()=>Jse,normalizedPathToPath:()=>d6,nowString:()=>EBe,nullCancellationToken:()=>YKe,nullTypingsInstaller:()=>Hq,protocol:()=>e2e,stringifyIndented:()=>Ek,toEvent:()=>A2e,toNormalizedPath:()=>xl,tryConvertScriptKindName:()=>iae,typingsInstaller:()=>HTe,updateProjectIfDirty:()=>hh});var HTe={};_(HTe,{TypingsInstaller:()=>L9t,getNpmCommandForInstallation:()=>wKe,installNpmPackages:()=>P9t,typingsName:()=>TKe});var A9t={isEnabled:()=>!1,writeLine:dc};function kKe(e,t,r,a){try{let u=jN(t,xr(e,"index.d.ts"),{moduleResolution:2},r);return u.resolvedModule&&u.resolvedModule.resolvedFileName}catch(u){a.isEnabled()&&a.writeLine(`Failed to resolve ${t} in folder '${e}': ${u.message}`);return}}function P9t(e,t,r,a){let u=!1;for(let f=r.length;f>0;){let p=wKe(e,t,r,f);f=p.remaining,u=a(p.command)||u}return u}function wKe(e,t,r,a){let u=r.length-a,f,p=a;for(;f=`${e} install --ignore-scripts ${(p===r.length?r:r.slice(u,u+p)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(f.length<8e3);)p=p-Math.floor(p/2);return{command:f,remaining:a-p}}var L9t=class{constructor(e,t,r,a,u,f=A9t){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=a,this.throttleLimit=u,this.log=f,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${a}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{let t={};this.typesRegistry.forEach((a,u)=>{t[u]=a});let r={kind:Rne,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:B.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:M5,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${Ek(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=cy.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){let{fileName:t,packageName:r,projectName:a,projectRootPath:u,id:f}=e,p=Rh(Or(t),y=>{if(this.installTypingHost.fileExists(xr(y,"package.json")))return y})||u;if(p)this.installWorker(-1,[r],p,y=>{let g=y?`Package ${r} installed.`:`There was an error installing ${r}.`,x={kind:sJ,projectName:a,id:f,success:y,message:g};this.sendResponse(x)});else{let y={kind:sJ,projectName:a,id:f,success:!1,message:"Could not determine a project root path."};this.sendResponse(y)}}initializeSafeList(){if(this.typesMapLocation){let e=cy.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=cy.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let t=xr(e,"package.json"),r=xr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){let a=JSON.parse(this.installTypingHost.readFile(t)),u=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${Ek(a)}`),this.log.writeLine(`Loaded content of '${r}':${Ek(u)}`)),a.devDependencies&&u.dependencies)for(let f in a.devDependencies){if(!Nc(u.dependencies,f))continue;let p=Xu(f);if(!p)continue;let y=kKe(e,p,this.installTypingHost,this.log);if(!y){this.missingTypingsSet.add(p);continue}let g=this.packageNameToTypingLocation.get(p);if(g){if(g.typingLocation===y)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${p} from '${y}' conflicts with existing typing file '${g}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${p}' => '${y}'`);let x=V7(u.dependencies,f),k=x&&x.version;if(!k)continue;let T={typingLocation:y,version:new Ug(k)};this.packageNameToTypingLocation.set(p,T)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return ro(e,t=>{let r=M4(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}let a=cy.validatePackageName(t);if(a!==cy.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(cy.renderPackageNameValidationFailure(a,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&cy.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){let t=xr(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,a){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(a)}`);let u=this.filterTypings(a);if(u.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);let f=this.installRunCount;this.installRunCount++,this.sendResponse({kind:Bne,eventId:f,typingsInstallerVersion:O,projectName:e.projectName});let p=u.map(TKe);this.installTypingsAsync(f,p,t,y=>{try{if(!y){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(u)}`);for(let x of u)this.missingTypingsSet.add(x);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(p)}`);let g=[];for(let x of u){let k=kKe(t,x,this.installTypingHost,this.log);if(!k){this.missingTypingsSet.add(x);continue}let T=this.typesRegistry.get(x),A=new Ug(T[`ts${D}`]||T[this.latestDistTag]),P={typingLocation:k,version:A};this.packageNameToTypingLocation.set(x,P),g.push(k)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(g)}`),this.sendResponse(this.createSetTypings(e,r.concat(g)))}finally{let g={kind:jne,eventId:f,projectName:e.projectName,packagesToInstall:p,installSuccess:y,typingsInstallerVersion:O};this.sendResponse(g)}})}ensureDirectoryExists(e,t){let r=Or(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let r=this.projectWatchers.get(e),a=new Set(t);!r||K1(a,u=>!r.has(u))||K1(r,u=>!a.has(u))?(this.projectWatchers.set(e,a),this.sendResponse({kind:M5,projectName:e,files:t})):this.sendResponse({kind:M5,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:rJ}}installTypingsAsync(e,t,r,a){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:a}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}};function TKe(e){return`@types/${e}@ts${D}`}var UTe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(UTe||{}),Id=YTe(),JTe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(JTe||{});function qTe(e,t,r,a){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:a,kind:"discover"}}var fb;(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function a(u,f){throw new Error(`Project '${f.getProjectName()}' does not contain document '${u}'`)}e.ThrowProjectDoesNotContainDocument=a})(fb||(fb={}));function xl(e){return $s(e)}function d6(e,t,r){let a=jp(e)?e:ts(e,t);return r(a)}function EKe(e){return e}function DKe(){let e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function $Te(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function GTe(e){return`/dev/null/inferredProject${e}*`}function KTe(e){return`/dev/null/autoImportProviderProject${e}*`}function XTe(e){return`/dev/null/auxiliaryProject${e}*`}function YTe(){return[]}var QTe=class jhi{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,a){let u=this.pendingTimeouts.get(t);u&&this.host.clearTimeout(u),this.pendingTimeouts.set(t,this.host.setTimeout(jhi.run,r,t,this,a)),this.logger&&this.logger.info(`Scheduled: ${t}${u?", Cancelled earlier one":""}`)}cancel(t){let r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,a){r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),a()}},ZTe=class Whi{constructor(t,r,a){this.host=t,this.delay=r,this.logger=a}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(Whi.run,this.delay,this))}static run(t){t.timerId=void 0;let r=t.logger.hasLevel(2),a=r&&t.host.getMemoryUsage();if(t.host.gc(),r){let u=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${a}, after ${u}`)}}};function Hse(e){let t=Xu(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}var e2e={};_(e2e,{ClassificationType:()=>Une,CommandTypes:()=>t2e,CompletionTriggerKind:()=>Vne,IndentStyle:()=>PKe,JsxEmit:()=>LKe,ModuleKind:()=>OKe,ModuleResolutionKind:()=>FKe,NewLineKind:()=>MKe,OrganizeImportsMode:()=>zne,PollingWatchKind:()=>AKe,ScriptTarget:()=>RKe,SemicolonPreference:()=>Hne,WatchDirectoryKind:()=>NKe,WatchFileKind:()=>IKe});var t2e=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e))(t2e||{}),IKe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(IKe||{}),NKe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(NKe||{}),AKe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(AKe||{}),PKe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(PKe||{}),LKe=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(LKe||{}),OKe=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.NodeNext="nodenext",e.Preserve="preserve",e))(OKe||{}),FKe=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(FKe||{}),MKe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(MKe||{}),RKe=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(RKe||{}),i2e=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return B.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=qN(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},a=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===Bp.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||Bp).getTime()),a}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=aJ.fromString(B.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let r=this.getLineMap(),a=r[e],u=e+1t===void 0?t=this.host.readFile(r)||"":t;if(!dN(this.info.fileName)){let u=this.host.getFileSize?this.host.getFileSize(r):a().length;if(u>qse)return B.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${u}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,u),{text:"",fileSize:u}}return{text:a()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=fae.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=fae.fromString(B.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(B.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return B.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=OI(B.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};let t=this.getLineMap();return cie(this.text,t)}};function B9(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&Xu(e)[0]==="^"||e.includes(":^")&&!e.includes(wl)}var n2e=class{constructor(e,t,r,a,u,f){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=a,this.path=u,this.containingProjects=[],this.isDynamic=B9(t),this.textStorage=new i2e(e,this,f),(a||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||JV(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){B.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return sn(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:l3(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){xS(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!f6(e)&&e.addMissingFileRoot(t.fileName)}Ls(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return fb.ThrowNoProject();case 1:return Wq(this.containingProjects[0])||V9(this.containingProjects[0])?fb.ThrowNoProject():this.containingProjects[0];default:let e,t,r,a;for(let u=0;u!e.isOrphan())}isContainedByBackgroundProject(){return Lt(this.containingProjects,V9)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){O9t(e);let t=this.textStorage.positionToLineOffset(e);return F9t(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!fs(this.sourceMapFilePath)&&(mh(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function O9t(e){B.assert(typeof e=="number",`Expected position ${e} to be a number.`),B.assert(e>=0,"Expected position to be non-negative.")}function F9t(e){B.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),B.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),B.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),B.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var j9=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(j9||{});function W9(e,t=!1){let r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let a of e){let u=t?a.textStorage.getTelemetryFileSize():0;switch(a.scriptKind){case 1:r.js+=1,r.jsSize+=u;break;case 2:r.jsx+=1,r.jsxSize+=u;break;case 3:Jd(a.fileName)?(r.dts+=1,r.dtsSize+=u):(r.ts+=1,r.tsSize+=u);break;case 4:r.tsx+=1,r.tsxSize+=u;break;case 7:r.deferred+=1,r.deferredSize+=u;break}}return r}function M9t(e){let t=W9(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function r2e(e){let t=W9(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function o2e(e){let t=W9(e.getScriptInfos());return t.ts===0&&t.tsx===0}function s2e(e){return!e.some(t=>Tl(t,".ts")&&!Jd(t)||Tl(t,".tsx"))}function a2e(e){return e.generatedFilePath!==void 0}function BKe(e,t){if(e===t||(e||Id).length===0&&(t||Id).length===0)return!0;let r=new Map,a=0;for(let u of e)r.get(u)!==!0&&(r.set(u,!0),a++);for(let u of t){let f=r.get(u);if(f===void 0)return!1;f===!0&&(r.set(u,!1),a--)}return a===0}function R9t(e,t){return e.enable!==t.enable||!BKe(e.include,t.include)||!BKe(e.exclude,t.exclude)}function B9t(e,t){return kx(e)!==kx(t)}function j9t(e,t){return e===t?!1:!Lr(e,t)}var sA=class zhi{constructor(t,r,a,u,f,p,y,g,x,k,T){switch(this.projectKind=r,this.projectService=a,this.documentRegistry=u,this.compilerOptions=y,this.compileOnSaveEnabled=g,this.watchOptions=x,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=R0,this.dirty=!1,this.typingFiles=Id,this.moduleSpecifierCache=D2e(this),this.createHash=Ps(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=cy.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=k,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(T),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new VCe(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(f||kx(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=uq(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),a.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:B.assertNever(a.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let A=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=P=>this.writeLog(P):A.trace&&(this.trace=P=>A.trace(P)),this.realpath=Ps(A,A.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||A.preferNonRecursiveWatch,this.resolutionCache=sne(this,this.currentDirectory,!0),this.languageService=HCe(this,this.documentRegistry,this.projectService.serverMode),p&&this.disableLanguageService(p),this.markAsDirty(),V9(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return hh(this),o2e(this)}isJsOnlyProject(){return hh(this),M9t(this)}static resolveModule(t,r,a,u){return zhi.importServicePluginSync({name:t},[r],a,u).resolvedModule}static importServicePluginSync(t,r,a,u){B.assertIsDefined(a.require);let f,p;for(let y of r){let g=ff(a.resolvePath(xr(y,"node_modules")));u(`Loading ${t.name} from ${y} (resolved to ${g})`);let x=a.require(g,t.name);if(!x.error){p=x.module;break}let k=x.error.stack||x.error.message||JSON.stringify(x.error);(f??(f=[])).push(`Failed to load module '${t.name}' from ${g}: ${k}`)}return{pluginConfigEntry:t,resolvedModule:p,errorLogs:f}}static async importServicePluginAsync(t,r,a,u){B.assertIsDefined(a.importPlugin);let f,p;for(let y of r){let g=xr(y,"node_modules");u(`Dynamically importing ${t.name} from ${y} (resolved to ${g})`);let x;try{x=await a.importPlugin(g,t.name)}catch(T){x={module:void 0,error:T}}if(!x.error){p=x.module;break}let k=x.error.stack||x.error.message||JSON.stringify(x.error);(f??(f=[])).push(`Failed to dynamically import module '${t.name}' from ${g}: ${k}`)}return{pluginConfigEntry:t,resolvedModule:p,errorLogs:f}}isKnownTypesPackageName(t){return this.projectService.typingsInstaller.isKnownTypesPackageName(t)}installPackage(t){return this.projectService.typingsInstaller.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}getSymlinkCache(){return this.symlinks||(this.symlinks=see(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return F;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Fn(t,this.typingFiles)||F}getOrCreateScriptInfoAndAttachToProject(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);if(r){let a=this.rootFilesMap.get(r.path);a&&a.info!==r&&(a.info=r),r.attachToProject(this)}return r}getScriptKind(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);return r&&r.getLatestVersion()}getScriptSnapshot(t){let r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=Or($s(this.projectService.getExecutingFilePath()));return xr(t,nM(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,a,u,f){return this.directoryStructureHost.readDirectory(t,r,a,u,f)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){let r=this.toPath(t);return!!this.projectService.getScriptInfoForPath(r)||!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,a,u,f,p){return this.resolutionCache.resolveModuleNameLiterals(t,r,a,u,f,p)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,a,u,f,p){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,a,u,f,p)}resolveLibrary(t,r,a,u){return this.resolutionCache.resolveLibrary(t,r,a,u)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return Vc(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,a){return this.projectService.watchFactory.watchDirectory(t,r,a,this.projectService.getWatchOptions(this),Fd.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),Fd.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,a){return this.projectService.watchFactory.watchDirectory(t,r,a,this.projectService.getWatchOptions(this),Fd.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return Di(this.projectErrors,t=>!t.file)||Id}getAllProjectErrors(){return this.projectErrors||Id}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&hh(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(hh(this),this.builderState=r0.create(this.program,this.builderState,!0),ro(r0.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:Id};let{emitSkipped:a,diagnostics:u,outputFiles:f}=this.getLanguageService().getEmitOutput(t.fileName);if(!a){for(let p of f){let y=ts(p.name,this.currentDirectory);r(y,p.text,p.writeByteOrderMark)}if(this.builderState&&yp(this.compilerOptions)){let p=f.filter(y=>Jd(y.name));if(p.length===1){let y=this.program.getSourceFile(t.fileName),g=this.projectService.host.createHash?this.projectService.host.createHash(p[0].text):y3(p[0].text);r0.updateSignatureOfFile(this.builderState,g,y.resolvedPath)}}}return{emitSkipped:a,diagnostics:u}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(B.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t.enable||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return lc(vo(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(a){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${a}`),a.stack&&this.projectService.logger.info(a.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){let r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),re(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r)),this.rootFilesMap.forEach(r=>{var a;return(a=r.info)==null?void 0:a.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(gp(this.missingFilesMap,kg),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){let r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFilesMap===void 0}hasRoots(){var t;return!!((t=this.rootFilesMap)!=null&&t.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&as(bd(this.rootFilesMap.values(),t=>{var r;return(r=t.info)==null?void 0:r.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return as(bd(this.rootFilesMap.values(),t=>t.info))}getScriptInfos(){return this.languageServiceEnabled?_i(this.program.getSourceFiles(),t=>{let r=this.projectService.getScriptInfoForPath(t.resolvedPath);return B.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.getRootScriptInfos()}getExcludedFiles(){return Id}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let u=this.getRootFiles();if(this.compilerOptions){let f=UCe(this.compilerOptions);f&&(u||(u=[])).push(f)}return u}let a=[];for(let u of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(u)||a.push(u.fileName);if(!r){let u=this.program.getCompilerOptions().configFile;if(u&&(a.push(u.fileName),u.extendedSourceFiles))for(let f of u.extendedSourceFiles)a.push(f)}return a}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){let r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(let a of r.extendedSourceFiles)if(t===a)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){let a=this.projectService.getScriptInfoForNormalizedPath(t);return a&&(a.isScriptOpen()||!r)?this.containsScriptInfo(a):!1}isRoot(t){var r,a;return((a=(r=this.rootFilesMap)==null?void 0:r.get(t.path))==null?void 0:a.info)===t}addRoot(t,r){B.assert(!this.isRoot(t)),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,a){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),a&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var t;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(t=this.autoImportProviderHost)==null||t.markAsDirty()}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(t,r,a,u){(!u||t.resolvedPath===t.path&&u.resolvedPath!==t.path)&&this.detachScriptInfoFromProject(t.fileName,a)}updateFromProject(){hh(this)}updateGraph(){var t,r;(t=jn)==null||t.push(jn.Phase.Session,"updateGraph",{name:this.projectName,kind:j9[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();let a=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let f=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Id;for(let y of f)this.cachedUnresolvedImportsPerFile.delete(y);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((a||f.length)&&(this.lastCachedUnresolvedImportsList=W9t(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(u)):this.lastCachedUnresolvedImportsList=void 0;let p=this.projectProgramVersion===0&&a;return a&&this.projectProgramVersion++,u&&this.markAutoImportProviderAsDirty(),p&&this.getPackageJsonAutoImportProvider(),(r=jn)==null||r.pop(),!a}enqueueInstallTypingsForProject(t){let r=this.getTypeAcquisition();if(!r||!r.enable||this.projectService.typingsInstaller===Hq)return;let a=this.typingsCache;(t||!a||R9t(r,a.typeAcquisition)||B9t(this.getCompilationSettings(),a.compilerOptions)||j9t(this.lastCachedUnresolvedImportsList,a.unresolvedImports))&&(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:r,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,r,this.lastCachedUnresolvedImportsList))}updateTypingFiles(t,r,a,u){this.typingsCache={compilerOptions:t,typeAcquisition:r,unresolvedImports:a};let f=!r||!r.enable?Id:lc(u);HW(f,this.typingFiles,TP(!this.useCaseSensitiveFileNames()),dc,p=>this.detachScriptInfoFromProject(p))&&(this.typingFiles=f,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&gp(this.typingWatchers,kg),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:oJ})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let a=(u,f)=>{let p=this.toPath(u);r.delete(p),this.typingWatchers.has(p)||this.typingWatchers.set(p,f==="FileWatcher"?this.projectService.watchFactory.watchFile(u,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),Fd.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(u,y=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Tl(y,".json"))return this.writeLog("Ignoring files that are not *.json");if(J1(y,xr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),Fd.TypingInstallerLocationDirectory,this))};for(let u of t){let f=Xu(u);if(f==="package.json"||f==="bower.json"){a(u,"FileWatcher");continue}if(nh(this.currentDirectory,u,this.currentDirectory,!this.useCaseSensitiveFileNames())){let p=u.indexOf(wl,this.currentDirectory.length+1);a(p!==-1?u.substr(0,p):u,"DirectoryWatcher");continue}if(nh(this.projectService.typingsInstaller.globalTypingsCacheLocation,u,this.currentDirectory,!this.useCaseSensitiveFileNames())){a(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}a(u,"DirectoryWatcher")}r.forEach((u,f)=>{u.close(),this.typingWatchers.delete(f)})}getCurrentProgram(){return this.program}removeExistingTypings(t){if(!t.length)return t;let r=iU(this.getCompilerOptions(),this.directoryStructureHost);return Di(t,a=>!r.includes(a))}updateGraphWorker(){var t,r;let a=this.languageService.getCurrentProgram();B.assert(a===this.program),B.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let u=zc(),{hasInvalidatedResolutions:f,hasInvalidatedLibResolutions:p}=this.resolutionCache.createHasInvalidatedResolutions(R0,R0);this.hasInvalidatedResolutions=f,this.hasInvalidatedLibResolutions=p,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=jn)==null||t.push(jn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,a),(r=jn)==null||r.pop(),B.assert(a===void 0||this.program!==void 0);let y=!1;if(this.program&&(!a||this.program!==a&&this.program.structureIsReused!==2)){if(y=!0,this.rootFilesMap.forEach((k,T)=>{var A;let P=this.program.getSourceFileByPath(T),R=k.info;!P||((A=k.info)==null?void 0:A.path)===P.resolvedPath||(k.info=this.projectService.getScriptInfo(P.fileName),B.assert(k.info.isAttached(this)),R?.detachFromProject(this))}),Lie(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(k,T)=>this.addMissingFileWatcher(k,T)),this.generatedFilesMap){let k=this.compilerOptions.outFile;a2e(this.generatedFilesMap)?(!k||!this.isValidGeneratedFileWatcher(A_(k)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():k?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((T,A)=>{let P=this.program.getSourceFileByPath(A);(!P||P.resolvedPath!==A||!this.isValidGeneratedFileWatcher(fV(P.fileName,this.compilerOptions,this.program),T))&&(mh(T),this.generatedFilesMap.delete(A))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||a&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&a&&this.program&&K1(this.changedFilesForExportMapCache,k=>{let T=a.getSourceFileByPath(k),A=this.program.getSourceFileByPath(k);return!T||!A?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(T,A,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let g=this.externalFiles||Id;this.externalFiles=this.getExternalFiles(),HW(this.externalFiles,g,TP(!this.useCaseSensitiveFileNames()),k=>{let T=this.projectService.getOrCreateScriptInfoNotOpenedByClient(k,this.currentDirectory,this.directoryStructureHost,!1);T?.attachToProject(this)},k=>this.detachScriptInfoFromProject(k));let x=zc()-u;return this.sendPerformanceEvent("UpdateGraph",x),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${y}${this.program?` structureIsReused:: ${zY[this.program.structureIsReused]}`:""} Elapsed: ${x}ms`),this.projectService.logger.isTestLogger?this.program!==a?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==a&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),y}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r){let a=this.projectService.getScriptInfo(t);a&&(a.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(a.path))}addMissingFileWatcher(t,r){var a;if(xS(this)){let f=this.projectService.configFileExistenceInfoCache.get(t);if((a=f?.config)!=null&&a.projects.has(this.canonicalConfigFilePath))return h8}let u=this.projectService.watchFactory.watchFile(ts(r,this.currentDirectory),(f,p)=>{xS(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(f,t,p),p===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),u.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),Fd.MissingFile,this);return u}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let a=this.toPath(r);if(this.generatedFilesMap){if(a2e(this.generatedFilesMap)){B.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(a))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(a,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),Fd.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(a2e(this.generatedFilesMap)?mh(this.generatedFilesMap):gp(this.generatedFilesMap,mh),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?fb.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,a){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending +`;if(!this.program)return` Files (0) NoProgram +`;let u=this.program.getSourceFiles(),f=` Files (${u.length}) +`;if(t){for(let p of u)f+=` ${p.fileName}${a?` ${p.version} ${JSON.stringify(p.text)}`:""} +`;r&&(f+=` + +`,dne(this.program,p=>f+=` ${p} +`))}return f}print(t,r,a){var u;this.writeLog(`Project '${this.projectName}' (${j9[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),a&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(u=this.noDtsResolutionProject)==null||u.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;let a=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),wz(a,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var a,u;let f=r?g=>as(g.entries(),([x,k])=>({fileName:x,isSourceOfProjectReferenceRedirect:k})):g=>as(g.keys());this.isInitialLoadPending()||hh(this);let p={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:f6(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},y=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!y)return{info:p,projectErrors:this.getGlobalProjectErrors()};let g=this.lastReportedFileNames,x=((a=this.externalFiles)==null?void 0:a.map(W=>({fileName:xl(W),isSourceOfProjectReferenceRedirect:!1})))||Id,k=gd(this.getFileNamesWithRedirectInfo(!!r).concat(x),W=>W.fileName,W=>W.isSourceOfProjectReferenceRedirect),T=new Map,A=new Map,P=y?as(y.keys()):[],R=[];return Vd(k,(W,z)=>{g.has(z)?r&&W!==g.get(z)&&R.push({fileName:z,isSourceOfProjectReferenceRedirect:W}):T.set(z,W)}),Vd(g,(W,z)=>{k.has(z)||A.set(z,W)}),this.lastReportedFileNames=k,this.lastReportedVersion=this.projectProgramVersion,{info:p,changes:{added:f(T),removed:f(A),updated:r?P.map(W=>({fileName:W,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(W)})):P,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let g=this.getFileNamesWithRedirectInfo(!!r),x=((u=this.externalFiles)==null?void 0:u.map(T=>({fileName:xl(T),isSourceOfProjectReferenceRedirect:!1})))||Id,k=g.concat(x);return this.lastReportedFileNames=gd(k,T=>T.fileName,T=>T.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:p,files:r?k:k.map(T=>T.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,xr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let a=this.getGlobalPluginSearchPaths();for(let u of this.projectService.globalPlugins)u&&(t.plugins&&t.plugins.some(f=>f.name===u)||(this.projectService.logger.info(`Loading global plugin ${u}`),this.enablePlugin({name:u,global:!0},a)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}let a={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},u=t({typescript:vKe}),f=u.create(a);for(let p of Object.keys(this.languageService))p in f||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${p} in created LS. Patching.`),f[p]=this.languageService[p]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=f,this.plugins.push({name:r.name,module:u})}catch(a){this.projectService.logger.info(`Plugin activation failed: ${a}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(a=>a.name===t).forEach(a=>{a.module.onConfigurationChanged&&a.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?Id:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(xr(this.currentDirectory,_8),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=$re(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||i9(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,a;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(hh(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let u=this.includePackageJsonAutoImports();if(u){(t=jn)==null||t.push(jn.Phase.Session,"getPackageJsonAutoImportProvider");let f=zc();if(this.autoImportProviderHost=d2e.create(u,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return hh(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",zc()-f),(r=jn)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(a=jn)==null||a.pop()}}isDefaultProjectForOpenFiles(){return!!Vd(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return B.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new l2e(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}runWithTemporaryFileUpdate(t,r,a){var u,f,p,y;let g=this.program,x=B.checkDefined((u=this.program)==null?void 0:u.getSourceFile(t),"Expected file to be part of program"),k=B.checkDefined(x.getFullText());(f=this.getScriptInfo(t))==null||f.editContent(0,k.length,r),this.updateGraph();try{a(this.program,g,(p=this.program)==null?void 0:p.getSourceFile(t))}finally{(y=this.getScriptInfo(t))==null||y.editContent(0,r.length,k)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:F,lib:F,noLib:!0}}};function W9t(e,t){var r,a;let u=e.getSourceFiles();(r=jn)==null||r.push(jn.Phase.Session,"getUnresolvedImports",{count:u.length});let f=e.getTypeChecker().getAmbientModules().map(y=>sh(y.getName())),p=zn(vo(u,y=>z9t(e,y,f,t)));return(a=jn)==null||a.pop(),p}function z9t(e,t,r,a){return Hg(a,t.path,()=>{let u;return e.forEachResolvedModule(({resolvedModule:f},p)=>{(!f||!hO(f.extension))&&!Od(p)&&!r.some(y=>y===p)&&(u=hi(u,aU(p).packageName))},t),u||Id})}var c2e=class extends sA{constructor(e,t,r,a,u,f,p){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,a,e.host,f),this._isJsInferredProject=!1,this.typeAcquisition=p,this.projectRootPath=u&&e.toCanonicalFileName(u),!u&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=ure(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){B.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Et(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){re(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:r2e(this),include:F,exclude:F}}},l2e=class extends sA{constructor(e,t,r,a){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,a)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},u2e=class nYt extends sA{constructor(t,r,a,u){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,a,!1,void 0,u,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=Ps(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Ps(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,a,u){var f,p;if(!t)return F;let y=r.getCurrentProgram();if(!y)return F;let g=zc(),x,k,T=xr(r.currentDirectory,_8),A=r.getPackageJsonsForAutoImport(xr(r.currentDirectory,T));for(let te of A)(f=te.dependencies)==null||f.forEach((ne,_e)=>q(_e)),(p=te.peerDependencies)==null||p.forEach((ne,_e)=>q(_e));let P=0;if(x){let te=r.getSymlinkCache();for(let ne of as(x.keys())){if(t===2&&P>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),F;let _e=Bte(ne,r.currentDirectory,u,a,y.getModuleResolutionCache());if(_e){let ae=G(_e,y,te);if(ae){P+=z(ae);continue}}if(!re([r.currentDirectory,r.getGlobalTypingsCacheLocation()],ae=>{if(ae){let Ce=Bte(`@types/${ne}`,ae,u,a,y.getModuleResolutionCache());if(Ce){let he=G(Ce,y,te);return P+=z(he),!0}}})&&_e&&u.allowJs&&u.maxNodeModuleJsDepth){let ae=G(_e,y,te,!0);P+=z(ae)}}}let R=y.getResolvedProjectReferences(),W=0;return R?.length&&r.projectService.getHostPreferences().includeCompletionsForModuleExports&&R.forEach(te=>{if(te?.commandLine.options.outFile)W+=z($([Tx(te.commandLine.options.outFile,".d.ts")]));else if(te){let ne=l_(()=>VN(te.commandLine,!r.useCaseSensitiveFileNames()));W+=z($(ro(te.commandLine.fileNames,_e=>!Jd(_e)&&!Tl(_e,".json")&&!y.getSourceFile(_e)?W4(_e,te.commandLine,!r.useCaseSensitiveFileNames(),ne):void 0)))}}),k?.size&&r.log(`AutoImportProviderProject: found ${k.size} root files in ${P} dependencies ${W} referenced projects in ${zc()-g} ms`),k?as(k.values()):F;function z(te){return te?.length?(k??(k=new Set),te.forEach(ne=>k.add(ne)),1):0}function q(te){Ro(te,"@types/")||(x||(x=new Set)).add(te)}function G(te,ne,_e,ce){var ae;let Ce=Ute(te,u,a,ne.getModuleResolutionCache(),ce);if(Ce){let he=(ae=a.realpath)==null?void 0:ae.call(a,te.packageDirectory),ue=he?r.toPath(he):void 0,Ee=ue&&ue!==r.toPath(te.packageDirectory);return Ee&&_e.setSymlinkedDirectory(te.packageDirectory,{real:xd(he),realPath:xd(ue)}),$(Ce,Ee?ve=>ve.replace(te.packageDirectory,he):void 0)}}function $(te,ne){return ro(te,_e=>{let ce=ne?ne(_e):_e;if(!y.getSourceFile(ce)&&!(ne&&y.getSourceFile(_e)))return ce})}}static create(t,r,a,u){if(t===0)return;let f={...r.getCompilerOptions(),...this.compilerOptionsOverrides},p=this.getRootFileNames(t,r,a,f);if(p.length)return new nYt(r,p,u,f)}isEmpty(){return!Lt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=nYt.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let r=this.getCurrentProgram(),a=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),a}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||F}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}};u2e.maxDependencies=10,u2e.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:F,lib:F,noLib:!0};var d2e=u2e,f2e=class extends sA{constructor(e,t,r,a,u,f){super(e,1,r,a,!1,void 0,{},!1,void 0,u,Or(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.isInitialLoadPending=UC,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=f}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=$s(e),r=this.projectService.toCanonicalFileName(t),a=this.projectService.configFileExistenceInfoCache.get(r);return a||this.projectService.configFileExistenceInfoCache.set(r,a={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,a,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,a,this),a.exists?a.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName($s(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;let e=this.dirty;this.isInitialLoadPending=R0;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let a=B.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,a),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),t===2||r&&(!e||!this.triggerFileForConfigFileDiag||this.getCurrentProgram().structureIsReused===2)?this.triggerFileForConfigFileDiag=void 0:this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){B.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){let t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let a=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let u=Or(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${u} to search paths`),a.unshift(u)}if(e.plugins)for(let u of e.plugins)this.enablePlugin(u,a);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return Di(this.projectErrors,e=>!e.file)||Id}getAllProjectErrors(){return this.projectErrors||Id}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return QO(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){QH(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},Use=class extends sA{constructor(e,t,r,a,u,f,p,y){super(e,2,t,r,!0,u,a,f,y,t.host,Or(p||ff(e))),this.externalProjectName=e,this.compileOnSaveEnabled=f,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function f6(e){return e.projectKind===0}function xS(e){return e.projectKind===1}function z9(e){return e.projectKind===2}function V9(e){return e.projectKind===3||e.projectKind===4}function Wq(e){return xS(e)&&!!e.deferredClose}var Jse=20*1024*1024,qse=4*1024*1024,zq="projectsUpdatedInBackground",$se="projectLoadingStart",Gse="projectLoadingFinish",Kse="largeFileReferenced",Xse="configFileDiag",Yse="projectLanguageServiceState",Qse="projectInfo",_2e="openFileInfo",Zse="createFileWatcher",eae="createDirectoryWatcher",tae="closeFileWatcher",jKe="*ensureProjectForOpenFiles*";function WKe(e){let t=new Map;for(let r of e)if(typeof r.type=="object"){let a=r.type;a.forEach(u=>{B.assert(typeof u=="number")}),t.set(r.name,a)}return t}var V9t=WKe(i0),H9t=WKe(MN),U9t=new Map(Object.entries({none:0,block:1,smart:2})),p2e={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function _6(e){return fs(e.indentStyle)&&(e.indentStyle=U9t.get(e.indentStyle.toLowerCase()),B.assert(e.indentStyle!==void 0)),e}function Vq(e){return V9t.forEach((t,r)=>{let a=e[r];fs(a)&&(e[r]=t.get(a.toLowerCase()))}),e}function H9(e,t){let r,a;return MN.forEach(u=>{let f=e[u.name];if(f===void 0)return;let p=H9t.get(u.name);(r||(r={}))[u.name]=p?fs(f)?p.get(f.toLowerCase()):f:EE(u,f,t||"",a||(a=[]))}),r&&{watchOptions:r,errors:a}}function m2e(e){let t;return VH.forEach(r=>{let a=e[r.name];a!==void 0&&((t||(t={}))[r.name]=a)}),t}function iae(e){return fs(e)?nae(e):e}function nae(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function h2e(e){let{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}var rae={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){let a=IP(e);a&&Lt(t,u=>u.extension===a?(r=u.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>Lt(t,r=>r.isMixedContent&&Tl(e,r.extension))},oae={getFileName:e=>e.fileName,getScriptKind:e=>iae(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function zKe(e,t){for(let r of t)if(r.getProjectName()===e)return r}var Hq={isKnownTypesPackageName:R0,installPackage:la,enqueueInstallTypingsRequest:dc,attach:dc,onProjectClosed:dc,globalTypingsCacheLocation:void 0},g2e={close:dc};function VKe(e,t){if(!(!t||sae(e)))return t.get(e.path)}function J9t(e){return!!e.containingProjects}function sae(e){return!!e.configFileInfo}var y2e=(e=>(e[e.Find=0]="Find",e[e.Create=1]="Create",e[e.Reload=2]="Reload",e))(y2e||{});function q9t(e,t,r,a,u,f,p,y){for(;;){if(!t.isInitialLoadPending()&&(!t.getCompilerOptions().composite||t.getCompilerOptions().disableSolutionSearching))return;let g=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0},a===0);if(!g)return;let x=t.projectService.findCreateOrReloadConfiguredProject(g,a,u,f,void 0,p,!0,y);if(!x)return;x.project.isInitialLoadPending()&&t.getCompilerOptions().composite&&x.project.setPotentialProjectReference(t.canonicalConfigFilePath);let k=r(x.project);if(k)return k;t=x.project}}function HKe(e,t,r,a,u,f,p,y){var g;let x=(g=e.getCurrentProgram())==null?void 0:g.getResolvedProjectReferences();if(!x)return;let k=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(k){let P=xl(k.sourceFile.fileName),R=e.projectService.findConfiguredProjectByProjectName(P,f);if(R){let W=A(R);if(W)return W}else if(a!==0){let W=v2e(x,e.getCompilerOptions(),(z,q)=>k===z?T(z,q):void 0,a,e.projectService);if(W)return W}}return v2e(x,e.getCompilerOptions(),(P,R)=>k!==P?T(P,R):void 0,a,e.projectService);function T(P,R){let W=e.projectService.findCreateOrReloadConfiguredProject(xl(P.sourceFile.fileName),R,u,f,p,y);return W&&(R===a?r(W.project,W.sentConfigFileDiag):A(W.project))}function A(P){let R=!1;switch(a){case 1:R=$Ke(P,p);break;case 2:R=P.projectService.reloadConfiguredProjectClearingSemanticCache(P,u,y);break;case 0:break;default:B.assertNever(a)}let W=r(P,R);if(W)return W}}function v2e(e,t,r,a,u,f){let p=t.disableReferencedProjectLoad?0:a;return re(e,y=>{if(!y)return;let g=xl(y.sourceFile.fileName),x=u.toCanonicalFileName(g),k=f?.get(x);if(k!==void 0&&k>=p)return;let T=r(y,p);return T||((f||(f=new Map)).set(x,p),y.references&&v2e(y.references,y.commandLine.options,r,p,u,f))})}function UKe(e,t){return e.potentialProjectReferences&&K1(e.potentialProjectReferences,t)}function $9t(e,t,r,a){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?UKe(e,a):re(e.getProjectReferences(),r)}function b2e(e,t,r){let a=r&&e.projectService.configuredProjects.get(r);return a&&t(a)}function JKe(e,t){return $9t(e,r=>b2e(e,t,r.sourceFile.path),r=>b2e(e,t,e.toPath(H4(r))),r=>b2e(e,t,r))}function G9t(e,t){return`${fs(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function S2e(e){return!e.isScriptOpen()&&e.mTime!==void 0}function hh(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function qKe(e,t,r){if(!r&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;let a=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!r)return a===2;let u=e.projectService.sendConfigFileDiagEvent(e,t,r);return e.triggerFileForConfigFileDiag=void 0,u}function $Ke(e,t){if(t){if(qKe(e,t,!1))return!0}else hh(e);return!1}function GKe(e){return`Creating possible configured project for ${e.fileName} to open`}function aae(e){return`User requested reload projects: ${e}`}function x2e(e){xS(e)&&(e.projectOptions=!0)}function C2e(e){let t=1;return()=>e(t++)}function k2e(){return{idToCallbacks:new Map,pathToId:new Map}}function KKe(e,t){return!!t&&!!e.eventHandler&&!!e.session}function K9t(e,t){if(!KKe(e,t))return;let r=k2e(),a=k2e(),u=k2e(),f=1;return e.session.addProtocolHandler("watchChange",P=>(x(P.arguments),{responseRequired:!1})),{watchFile:p,watchDirectory:y,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function p(P,R){return g(r,P,R,W=>({eventName:Zse,data:{id:W,path:P}}))}function y(P,R,W){return g(W?u:a,P,R,z=>({eventName:eae,data:{id:z,path:P,recursive:!!W,ignoreUpdate:P.endsWith("/node_modules")?void 0:!0}}))}function g({pathToId:P,idToCallbacks:R},W,z,q){let G=e.toPath(W),$=P.get(G);$||P.set(G,$=f++);let te=R.get($);return te||(R.set($,te=new Set),e.eventHandler(q($))),te.add(z),{close(){let ne=R.get($);ne?.delete(z)&&(ne.size||(R.delete($),P.delete(G),e.eventHandler({eventName:tae,data:{id:$}})))}}}function x(P){ds(P)?P.forEach(k):k(P)}function k({id:P,created:R,deleted:W,updated:z}){T(P,R,0),T(P,W,2),T(P,z,1)}function T(P,R,W){R?.length&&(A(r,P,R,(z,q)=>z(q,W)),A(a,P,R,(z,q)=>z(q)),A(u,P,R,(z,q)=>z(q)))}function A(P,R,W,z){var q;(q=P.idToCallbacks.get(R))==null||q.forEach(G=>{W.forEach($=>z(G,ff($)))})}}var XKe=class rYt{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=C2e(GTe),this.newAutoImportProviderProjectName=C2e(KTe),this.newAuxiliaryProjectName=C2e(XTe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=p2e,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=dc,this.verifyDocumentRegistry=dc,this.verifyProgram=dc,this.onProjectCreation=dc;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||Hq,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||Id,this.pluginProbeLocations=t.pluginProbeLocations||Id,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?xr(Or(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Dm()),this.currentDirectory=xl(this.host.getCurrentDirectory()),this.toCanonicalFileName=df(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?xd(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new QTe(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:cJ(this.host.newLine),preferences:Xh,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=Qre(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let a=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,u=a!==0?f=>this.logger.info(f):dc;this.packageJsonCache=I2e(this),this.watchFactory=this.serverMode!==0?{watchFile:g8,watchDirectory:g8}:Oie(K9t(this,t.canUseWatchEvents)||this.host,a,u,G9t),this.canUseWatchEvents=KKe(this,t.canUseWatchEvents),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return Vc(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return ts(t,this.host.getCurrentDirectory())}setDocument(t,r,a){let u=B.checkDefined(this.getScriptInfoForPath(r));u.cacheSourceFile={key:t,sourceFile:a}}getDocument(t,r){let a=this.getScriptInfoForPath(r);return a&&a.cacheSourceFile&&a.cacheSourceFile.key===t?a.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;let a={eventName:Yse,data:{project:t,languageServiceEnabled:r}};this.eventHandler(a)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let r=JSON.parse(t);for(let a of Object.keys(r.typesMap))r.typesMap[a].match=new RegExp(r.typesMap[a].match,"i");this.safelist=r.typesMap;for(let a in r.simpleMap)Nc(r.simpleMap,a)&&this.legacySafelist.set(a,r.simpleMap[a].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=p2e,this.legacySafelist.clear()}}updateTypingsForProject(t){let r=this.findProject(t.projectName);if(r)switch(t.kind){case rJ:r.updateTypingFiles(t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings);return;case oJ:r.enqueueInstallTypingsForProject(!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(jKe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(Wq(t)||(t.markAsDirty(),V9(t)))return;let r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&hh(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:zq,data:{openFiles:as(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;let a={eventName:Kse,data:{file:t,fileSize:r,maxFileSize:qse}};this.eventHandler(a)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let a={eventName:$se,data:{project:t,reason:r}};this.eventHandler(a)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let r={eventName:Gse,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(let a of t)r&&a.clearSourceMapperCache(),this.delayUpdateProjectGraph(a);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){B.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let a=Vq(t),u=H9(t,r),f=m2e(t);a.allowNonTsExtensions=!0;let p=r&&this.toCanonicalFileName(r);p?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(p,a),this.watchOptionsForInferredProjectsPerProjectRoot.set(p,u||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(p,f)):(this.compilerOptionsForInferredProjects=a,this.watchOptionsForInferredProjects=u,this.typeAcquisitionForInferredProjects=f);for(let y of this.inferredProjects)(p?y.projectRootPath===p:!y.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(y.projectRootPath))&&(y.setCompilerOptions(a),y.setTypeAcquisition(f),y.setWatchOptions(u?.watchOptions),y.setProjectErrors(u?.errors),y.compileOnSaveEnabled=a.compileOnSave,y.markAsDirty(),this.delayUpdateProjectGraph(y));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return $Te(t)?zKe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(xl(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){let r=fs(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t){var r;let a=fs(t)?this.getScriptInfoForNormalizedPath(t):t;if(a)return(r=this.pendingOpenFileProjectUpdates)!=null&&r.delete(a.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(a,1),a.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(a,this.openFiles.get(a.path))),this.tryGetDefaultProjectForFile(a)}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let r=fs(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(fs(t)?t:t.fileName),fb.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let r=a=>{t=hh(a)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){B.assert(!t.isScriptOpen()),r===2?this.handleDeletedFile(t,!0):(t.deferredDelete&&(t.deferredDelete=void 0),t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(fs(t.sourceMapFilePath)){let r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r?.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,a)=>this.delayUpdateProjectsOfScriptInfoPath(a))}delayUpdateProjectsOfScriptInfoPath(t){let r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t,r){B.assert(!t.isScriptOpen()),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t),t.detachAllProjects(),r?(t.delayReloadNonMixedContentFile(),t.deferredDelete=!0):this.deleteScriptInfo(t)}watchWildcardDirectory(t,r,a,u){let f=this.watchFactory.watchDirectory(t,y=>this.onWildCardDirectoryWatcherInvoke(t,a,u,p,y),r,this.getWatchOptionsFromProjectWatchOptions(u.parsedCommandLine.watchOptions,Or(a)),Fd.WildcardDirectory,a),p={packageJsonWatches:void 0,close(){var y;f&&(f.close(),f=void 0,(y=p.packageJsonWatches)==null||y.forEach(g=>{g.projects.delete(p),g.close()}),p.packageJsonWatches=void 0)}};return p}onWildCardDirectoryWatcherInvoke(t,r,a,u,f){let p=this.toPath(f),y=a.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(f,p);if(Xu(p)==="package.json"&&!i9(p)&&(y&&y.fileExists||!y&&this.host.fileExists(f))){let x=this.getNormalizedAbsolutePath(f);this.logger.info(`Config: ${r} Detected new package.json: ${x}`),this.packageJsonCache.addOrUpdate(x,p),this.watchPackageJsonFile(x,p,u)}y?.fileExists||this.sendSourceFileChange(p);let g=this.findConfiguredProjectByProjectName(r);k5({watchedDirPath:this.toPath(t),fileOrDirectory:f,fileOrDirectoryPath:p,configFileName:r,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:a.parsedCommandLine.options,program:g?.getCurrentProgram()||a.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:x=>this.logger.info(x),toPath:x=>this.toPath(x),getScriptKind:g?x=>g.getScriptKind(x):void 0})||(a.updateLevel!==2&&(a.updateLevel=1),a.projects.forEach((x,k)=>{var T;if(!x)return;let A=this.getConfiguredProjectByCanonicalConfigFilePath(k);if(!A)return;if(g!==A&&this.getHostPreferences().includeCompletionsForModuleExports){let R=this.toPath(r);St((T=A.getCurrentProgram())==null?void 0:T.getResolvedProjectReferences(),W=>W?.sourceFile.path===R)&&A.markAutoImportProviderAsDirty()}let P=g===A?1:0;if(!(A.pendingUpdateLevel>P))if(this.openFiles.has(p))if(B.checkDefined(this.getScriptInfoForPath(p)).isAttached(A)){let W=Math.max(P,A.openFileWatchTriggered.get(p)||0);A.openFileWatchTriggered.set(p,W)}else A.pendingUpdateLevel=P,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(A);else A.pendingUpdateLevel=P,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(A)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){let a=this.configFileExistenceInfoCache.get(t);if(!a?.config)return!1;let u=!1;return a.config.updateLevel=2,a.config.projects.forEach((f,p)=>{var y;let g=this.getConfiguredProjectByCanonicalConfigFilePath(p);if(g)if(u=!0,p===t){if(g.isInitialLoadPending())return;g.pendingUpdateLevel=2,g.pendingUpdateReason=r,this.delayUpdateProjectGraph(g),g.markAutoImportProviderAsDirty()}else{let x=this.toPath(t);g.resolutionCache.removeResolutionsFromProjectReferenceRedirects(x),this.delayUpdateProjectGraph(g),this.getHostPreferences().includeCompletionsForModuleExports&&St((y=g.getCurrentProgram())==null?void 0:y.getResolvedProjectReferences(),k=>k?.sourceFile.path===x)&&g.markAutoImportProviderAsDirty()}}),u}onConfigFileChanged(t,r,a){let u=this.configFileExistenceInfoCache.get(r),f=this.getConfiguredProjectByCanonicalConfigFilePath(r),p=f?.deferredClose;a===2?(u.exists=!1,f&&(f.deferredClose=!0)):(u.exists=!0,p&&(f.deferredClose=void 0,f.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(r,"Change in config file detected");let y=new Set(f?[f]:void 0);this.openFiles.forEach((g,x)=>{var k,T;let A=this.configFileForOpenFiles.get(x);if(!((k=u.openFilesImpactedByConfigFile)!=null&&k.has(x)))return;this.configFileForOpenFiles.delete(x);let P=this.getScriptInfoForPath(x),R=this.getConfigFileNameForFile(P,!1);if(!R)return;let W=this.findConfiguredProjectByProjectName(R)??this.createConfiguredProject(R,`Change in config file ${t} detected, ${GKe(P)}`);(T=this.pendingOpenFileProjectUpdates)!=null&&T.has(x)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(x,A),_p(y,W)&&W.isInitialLoadPending()&&this.delayUpdateProjectGraph(W)}),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),B.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>B.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(as(bd(this.filenameToScriptInfo.values(),a=>a.isAttached(t)?{fileName:a.fileName,projects:a.containingProjects.map(u=>u.projectName),hasMixedContent:a.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:NI(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:NI(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){B.assert(t.isOrphan());let a=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:Or(jp(t.fileName)?t.fileName:ts(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(a.addRoot(t),t.containingProjects[0]!==a&&(l3(t.containingProjects,a),t.containingProjects.unshift(a)),a.updateGraph(),!this.useSingleInferredProject&&!a.projectRootPath)for(let u of this.inferredProjects){if(u===a||u.isOrphan())continue;let f=u.getRootScriptInfos();B.assert(f.length===1||!!u.projectRootPath),f.length===1&&re(f[0].containingProjects,p=>p!==f[0].containingProjects[0]&&!p.isOrphan())&&u.removeFile(f[0],!0,!0)}return a}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{let a=this.getScriptInfoForPath(r);a.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(a,t)})}closeOpenFile(t,r){var a;let u=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(u),this.stopWatchingConfigFilesForScriptInfo(t);let f=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(f)===t&&this.openFilesWithNonRootedDiskPath.delete(f);let p=!1;for(let y of t.containingProjects){if(xS(y)){t.hasMixedContent&&t.registerFileUpdate();let g=y.openFileWatchTriggered.get(t.path);g!==void 0&&(y.openFileWatchTriggered.delete(t.path),y.pendingUpdateLevelthis.onConfigFileChanged(t,r,x),2e3,this.getWatchOptionsFromProjectWatchOptions((f=(u=p?.config)==null?void 0:u.parsedCommandLine)==null?void 0:f.watchOptions,Or(t)),Fd.ConfigFile,a));let y=p.config.projects;y.set(a.canonicalConfigFilePath,y.get(a.canonicalConfigFilePath)||!1)}releaseParsedConfig(t,r){var a,u,f;let p=this.configFileExistenceInfoCache.get(t);(a=p.config)!=null&&a.projects.delete(r.canonicalConfigFilePath)&&((u=p.config)!=null&&u.projects.size||(p.config=void 0,Pie(t,this.sharedExtendedConfigFileWatchers),B.checkDefined(p.watcher),(f=p.openFilesImpactedByConfigFile)!=null&&f.size?p.inferredProjectRoots?UU(zd(Or(t)))||(p.watcher.close(),p.watcher=g2e):(p.watcher.close(),p.watcher=void 0):(p.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}stopWatchingConfigFilesForScriptInfo(t){if(this.serverMode!==0)return;let r=this.rootOfInferredProjects.delete(t),a=t.isScriptOpen();a&&!r||this.forEachConfigFileLocation(t,u=>{var f,p,y;let g=this.configFileExistenceInfoCache.get(u);if(g){if(a){if(!((f=g?.openFilesImpactedByConfigFile)!=null&&f.has(t.path)))return}else if(!((p=g.openFilesImpactedByConfigFile)!=null&&p.delete(t.path)))return;r&&(g.inferredProjectRoots--,g.watcher&&!g.config&&!g.inferredProjectRoots&&(g.watcher.close(),g.watcher=void 0)),!((y=g.openFilesImpactedByConfigFile)!=null&&y.size)&&!g.config&&(B.assert(!g.watcher),this.configFileExistenceInfoCache.delete(u))}})}startWatchingConfigFilesForInferredProjectRoot(t){this.serverMode===0&&(B.assert(t.isScriptOpen()),this.rootOfInferredProjects.add(t),this.forEachConfigFileLocation(t,(r,a)=>{let u=this.configFileExistenceInfoCache.get(r);u?u.inferredProjectRoots=(u.inferredProjectRoots??0)+1:(u={exists:this.host.fileExists(a),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(r,u)),(u.openFilesImpactedByConfigFile??(u.openFilesImpactedByConfigFile=new Set)).add(t.path),u.watcher||(u.watcher=UU(zd(Or(r)))?this.watchFactory.watchFile(a,(f,p)=>this.onConfigFileChanged(a,r,p),2e3,this.hostConfiguration.watchOptions,Fd.ConfigFileForInferredRoot):g2e)}))}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;B.assert(!J9t(t)||this.openFiles.has(t.path));let a=this.openFiles.get(t.path);if(B.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let f=Or(t.fileName),p=()=>nh(a,f,this.currentDirectory,!this.host.useCaseSensitiveFileNames),y=!a||!p(),g=!sae(t);do{if(g){let k=d6(f,this.currentDirectory,this.toCanonicalFileName),T=xr(f,"tsconfig.json"),A=r(xr(k,"tsconfig.json"),T);if(A)return T;let P=xr(f,"jsconfig.json");if(A=r(xr(k,"jsconfig.json"),P),A)return P;if(ZW(k))break}let x=Or(f);if(x===f)break;f=x,g=!0}while(y||p())}findDefaultConfiguredProject(t){var r;return t.isScriptOpen()?(r=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,0))==null?void 0:r.defaultProject:void 0}getConfigFileNameForFileFromCache(t,r){if(r){let a=VKe(t,this.pendingOpenFileProjectUpdates);if(a!==void 0)return a}return VKe(t,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(t,r){this.openFiles.has(t.path)&&(sae(t)||this.configFileForOpenFiles.set(t.path,r||!1))}getConfigFileNameForFile(t,r){let a=this.getConfigFileNameForFileFromCache(t,r);if(a!==void 0)return a||void 0;if(r)return;let u=this.forEachConfigFileLocation(t,(f,p)=>this.configFileExists(p,f,t));return this.logger.info(`getConfigFileNameForFile:: File: ${t.fileName} ProjectRootPath: ${this.openFiles.get(t.path)}:: Result: ${u}`),this.setConfigFileNameForFileInCache(t,u),u}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(E2e),this.configuredProjects.forEach(E2e),this.inferredProjects.forEach(E2e),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{let a=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${a.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${a.containingProjects.map(u=>u.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t,r){let a=this.toCanonicalFileName(t),u=this.getConfiguredProjectByCanonicalConfigFilePath(a);return r?u:u?.deferredClose?void 0:u}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return zKe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,a,u){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let f=Jse;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(y=>f-=y||0);let p=0;for(let y of a){let g=u.getFileName(y);if(!dN(g)&&(p+=this.host.getFileSize(g),p>Jse||p>f)){let x=a.map(k=>u.getFileName(k)).filter(k=>!dN(k)).map(k=>({name:k,size:this.host.getFileSize(k)})).sort((k,T)=>T.size-k.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${p}). Largest files: ${x.map(k=>`${k.name}:${k.size}`).join(", ")}`),g}}this.projectToSizeMap.set(t,p)}createExternalProject(t,r,a,u,f){let p=Vq(a),y=H9(a,Or(ff(t))),g=new Use(t,this,this.documentRegistry,p,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,p,r,oae),a.compileOnSave===void 0?!0:a.compileOnSave,void 0,y?.watchOptions);return g.setProjectErrors(y?.errors),g.excludedFiles=f,this.addFilesToNonInferredProject(g,r,oae,u),this.externalProjects.push(g),g}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){x2e(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){x2e(t);return}let r=xS(t)?t.projectOptions:void 0;x2e(t);let a={projectId:this.host.createSHA256Hash(t.projectName),fileStats:W9(t.getScriptInfos(),!0),compilerOptions:vve(t.getCompilationSettings()),typeAcquisition:f(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:u(),projectType:t instanceof Use?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:O};this.eventHandler({eventName:Qse,data:a});function u(){return xS(t)&&Hse(t.getConfigFilePath())||"other"}function f({enable:p,include:y,exclude:g}){return{enable:p,include:y!==void 0&&y.length!==0,exclude:g!==void 0&&g.length!==0}}}addFilesToNonInferredProject(t,r,a,u){this.updateNonInferredProjectFiles(t,r,a),t.setTypeAcquisition(u),t.markAsDirty()}createConfiguredProject(t,r){var a;(a=jn)==null||a.instant(jn.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);let u=this.toCanonicalFileName(t),f=this.configFileExistenceInfoCache.get(u);f?f.exists=!0:this.configFileExistenceInfoCache.set(u,f={exists:!0}),f.config||(f.config={cachedDirectoryStructureHost:EU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let p=new f2e(t,u,this,this.documentRegistry,f.config.cachedDirectoryStructureHost,r);return B.assert(!this.configuredProjects.has(u)),this.configuredProjects.set(u,p),this.createConfigFileWatcherForParsedConfig(t,u,p),p}loadConfiguredProject(t,r){var a,u;(a=jn)==null||a.push(jn.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);let f=$s(t.getConfigFilePath()),p=this.ensureParsedConfigUptoDate(f,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),y=p.config.parsedCommandLine;B.assert(!!y.fileNames);let g=y.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:y.raw.extends!==void 0,configHasFilesProperty:y.raw.files!==void 0,configHasIncludeProperty:y.raw.include!==void 0,configHasExcludeProperty:y.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=KO(y.raw),t.setProjectErrors(y.options.configFile.parseDiagnostics),t.updateReferences(y.projectReferences);let x=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,g,y.fileNames,rae);x?(t.disableLanguageService(x),this.configFileExistenceInfoCache.forEach((T,A)=>this.stopWatchingWildCards(A,t))):(t.setCompilerOptions(g),t.setWatchOptions(y.watchOptions),t.enableLanguageService(),this.watchWildcards(f,p,t)),t.enablePluginsWithOptions(g);let k=y.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,k,rae,g,y.typeAcquisition,y.compileOnSave,y.watchOptions),(u=jn)==null||u.pop()}ensureParsedConfigUptoDate(t,r,a,u){var f,p,y;if(a.config){if(!a.config.updateLevel)return a;if(a.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,a.config),a}let g=((f=a.config)==null?void 0:f.cachedDirectoryStructureHost)||EU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),x=GO(t,W=>this.host.readFile(W)),k=e5(t,fs(x)?x:""),T=k.parseDiagnostics;fs(x)||T.push(x);let A=Or(t),P=s5(k,g,A,void 0,t,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);P.errors.length&&T.push(...P.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:P.fileNames,options:P.options,watchOptions:P.watchOptions,projectReferences:P.projectReferences},void 0," ")}`);let R=(p=a.config)==null?void 0:p.parsedCommandLine;return a.config?(a.config.parsedCommandLine=P,a.config.watchedDirectoriesStale=!0,a.config.updateLevel=void 0):a.config={parsedCommandLine:P,cachedDirectoryStructureHost:g,projects:new Map},!R&&!YV(this.getWatchOptionsFromProjectWatchOptions(void 0,A),this.getWatchOptionsFromProjectWatchOptions(P.watchOptions,A))&&((y=a.watcher)==null||y.close(),a.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,u),DU(r,P.options,this.sharedExtendedConfigFileWatchers,(W,z)=>this.watchFactory.watchFile(W,()=>{var q;IU(this.extendedConfigCache,z,$=>this.toPath($));let G=!1;(q=this.sharedExtendedConfigFileWatchers.get(z))==null||q.projects.forEach($=>{G=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange($,`Change in extended config file ${W} detected`)||G}),G&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,Fd.ExtendedConfigFile,t),W=>this.toPath(W)),a}watchWildcards(t,{exists:r,config:a},u){if(a.projects.set(u.canonicalConfigFilePath,!0),r){if(a.watchedDirectories&&!a.watchedDirectoriesStale)return;a.watchedDirectoriesStale=!1,C5(a.watchedDirectories||(a.watchedDirectories=new Map),a.parsedCommandLine.wildcardDirectories,(f,p)=>this.watchWildcardDirectory(f,p,t,a))}else{if(a.watchedDirectoriesStale=!1,!a.watchedDirectories)return;gp(a.watchedDirectories,mh),a.watchedDirectories=void 0}}stopWatchingWildCards(t,r){let a=this.configFileExistenceInfoCache.get(t);!a.config||!a.config.projects.get(r.canonicalConfigFilePath)||(a.config.projects.set(r.canonicalConfigFilePath,!1),!Vd(a.config.projects,Gc)&&(a.config.watchedDirectories&&(gp(a.config.watchedDirectories,mh),a.config.watchedDirectories=void 0),a.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,a){var u;let f=t.getRootFilesMap(),p=new Map;for(let y of r){let g=a.getFileName(y),x=xl(g),k=B9(x),T;if(!k&&!t.fileExists(g)){T=d6(x,this.currentDirectory,this.toCanonicalFileName);let A=f.get(T);A?(((u=A.info)==null?void 0:u.path)===T&&(t.removeFile(A.info,!1,!0),A.info=void 0),A.fileName=x):f.set(T,{fileName:x})}else{let A=a.getScriptKind(y,this.hostConfiguration.extraFileExtensions),P=a.hasMixedContent(y,this.hostConfiguration.extraFileExtensions),R=B.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(x,t.currentDirectory,A,P,t.directoryStructureHost,!1));T=R.path;let W=f.get(T);!W||W.info!==R?(t.addRoot(R,x),R.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(R)):W.fileName=x}p.set(T,!0)}f.size>p.size&&f.forEach((y,g)=>{p.has(g)||(y.info?t.removeFile(y.info,t.fileExists(y.info.fileName),!0):f.delete(g))})}updateRootAndOptionsOfNonInferredProject(t,r,a,u,f,p,y){t.setCompilerOptions(u),t.setWatchOptions(y),p!==void 0&&(t.compileOnSaveEnabled=p),this.addFilesToNonInferredProject(t,r,a,f)}reloadFileNamesOfConfiguredProject(t){let r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),rae),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;B.assert(r.updateLevel===1);let a=r.parsedCommandLine.options.configFile.configFileSpecs,u=XO(a,Or(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:u},u}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,rae)}reloadConfiguredProjectClearingSemanticCache(t,r,a){return _p(a,t)?(this.clearSemanticCache(t),this.reloadConfiguredProject(t,aae(r)),!0):!1}reloadConfiguredProject(t,r){t.isInitialLoadPending=R0,t.pendingUpdateReason=void 0,t.pendingUpdateLevel=0,t.getCachedDirectoryStructureHost().clearCache(),this.loadConfiguredProject(t,r),qKe(t,t.triggerFileForConfigFileDiag??t.getConfigFilePath(),!0)}clearSemanticCache(t){t.originalConfiguredProjects=void 0,t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r,a){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;let u=t.getLanguageService().getCompilerOptionsDiagnostics();return u.push(...t.getAllProjectErrors()),!a&&u.length===(t.configDiagDiagnosticsReported??0)?!1:(t.configDiagDiagnosticsReported=u.length,this.eventHandler({eventName:Xse,data:{configFileName:t.getConfigFilePath(),diagnostics:u,triggerFile:r??t.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){let u=this.toCanonicalFileName(r);for(let f of this.inferredProjects)if(f.projectRootPath===u)return f;return this.createInferredProject(r,!1,r)}let a;for(let u of this.inferredProjects)u.projectRootPath&&nh(u.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(a&&a.projectRootPath.length>u.projectRootPath.length||(a=u));return a}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){B.assert(!this.useSingleInferredProject);let r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let a of this.inferredProjects)if(!a.projectRootPath&&a.isOrphan()&&a.canonicalCurrentDirectory===r)return a;return this.createInferredProject(t)}createInferredProject(t,r,a){let u=a&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(a)||this.compilerOptionsForInferredProjects,f,p;a&&(f=this.watchOptionsForInferredProjectsPerProjectRoot.get(a),p=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(a)),f===void 0&&(f=this.watchOptionsForInferredProjects),p===void 0&&(p=this.typeAcquisitionForInferredProjects),f=f||void 0;let y=new c2e(this,this.documentRegistry,u,f?.watchOptions,a,t,p);return y.setProjectErrors(f?.errors),r?this.inferredProjects.unshift(y):this.inferredProjects.push(y),y}getOrCreateScriptInfoNotOpenedByClient(t,r,a,u){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(xl(t),r,void 0,void 0,a,u)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(xl(t))}getScriptInfoOrConfig(t){let r=xl(t),a=this.getScriptInfoForNormalizedPath(r);if(a)return a;let u=this.configuredProjects.get(this.toPath(t));return u&&u.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let r=as(bd(this.filenameToScriptInfo.entries(),a=>a[1].deferredDelete?void 0:a),([a,u])=>({path:a,fileName:u.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. +All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){let u=t.getRealpathIfDifferent();u&&re(this.realpathToScriptInfos.get(u),a),re(this.realpathToScriptInfos.get(t.path),a)}return r;function a(u){if(u!==t)for(let f of u.containingProjects)f.languageServiceEnabled&&!f.isOrphan()&&!f.getCompilerOptions().preserveSymlinks&&!t.isAttached(f)&&(r?Vd(r,(p,y)=>y===u.path?!1:sn(p,f))||r.add(u.path,f):(r=Dm(),r.add(u.path,f)))}}watchClosedScriptInfo(t){if(B.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Ro(t.path,this.globalCacheLocationDirectoryPath))){let r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(a,u)=>this.onSourceFileChanged(t,u),500,this.hostConfiguration.watchOptions,Fd.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let a=this.watchFactory.watchDirectory(t,f=>{var p;let y=HU(this.toPath(f));if(!y)return;let g=Xu(y);if((p=u.affectedModuleSpecifierCacheProjects)!=null&&p.size&&(g==="package.json"||g==="node_modules")&&u.affectedModuleSpecifierCacheProjects.forEach(x=>{var k;(k=x.getModuleSpecifierCache())==null||k.clear()}),u.refreshScriptInfoRefCount)if(r===y)this.refreshScriptInfosInDirectory(r);else{let x=this.filenameToScriptInfo.get(y);x?S2e(x)&&this.refreshScriptInfo(x):DP(y)||this.refreshScriptInfosInDirectory(y)}},1,this.hostConfiguration.watchOptions,Fd.NodeModules),u={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var f;a&&!u.refreshScriptInfoRefCount&&!((f=u.affectedModuleSpecifierCacheProjects)!=null&&f.size)&&(a.close(),a=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,u),u}watchPackageJsonsInNodeModules(t,r){var a;let u=this.toPath(t),f=this.nodeModulesWatchers.get(u)||this.createNodeModulesWatcher(t,u);return B.assert(!((a=f.affectedModuleSpecifierCacheProjects)!=null&&a.has(r))),(f.affectedModuleSpecifierCacheProjects||(f.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var p;(p=f.affectedModuleSpecifierCacheProjects)==null||p.delete(r),f.close()}}}watchClosedScriptInfoInNodeModules(t){let r=t+"/node_modules",a=this.toPath(r),u=this.nodeModulesWatchers.get(a)||this.createNodeModulesWatcher(r,a);return u.refreshScriptInfoRefCount++,{close:()=>{u.refreshScriptInfoRefCount--,u.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||Bp).getTime()}refreshScriptInfo(t){let r=this.getModifiedTime(t);if(r!==t.mTime){let a=eQ(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,a)}}refreshScriptInfosInDirectory(t){t=t+wl,this.filenameToScriptInfo.forEach(r=>{S2e(r)&&Ro(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,a,u,f,p){if(jp(t)||B9(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,a,!!u,f,p);let y=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(y)return y}getOrCreateScriptInfoForNormalizedPath(t,r,a,u,f,p){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,a,u,!!f,p,!1)}getOrCreateScriptInfoWorker(t,r,a,u,f,p,y,g){B.assert(u===void 0||a,"ScriptInfo needs to be opened by client to be able to set its user defined content");let x=d6(t,r,this.toCanonicalFileName),k=this.filenameToScriptInfo.get(x);if(k){if(k.deferredDelete){if(B.assert(!k.isDynamic),!a&&!(y||this.host).fileExists(t))return g?k:void 0;k.deferredDelete=void 0}}else{let T=B9(t);if(B.assert(jp(t)||T||a,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:as(this.openFilesWithNonRootedDiskPath.keys())})} +Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),B.assert(!jp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:as(this.openFilesWithNonRootedDiskPath.keys())})} +Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),B.assert(!T||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:as(this.openFilesWithNonRootedDiskPath.keys())})} +Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!a&&!T&&!(y||this.host).fileExists(t))return;k=new n2e(this.host,t,f,p,x,this.filenameToScriptInfoVersion.get(x)),this.filenameToScriptInfo.set(k.path,k),this.filenameToScriptInfoVersion.delete(k.path),a?!jp(t)&&(!T||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),k):this.watchClosedScriptInfo(k)}return a&&(this.stopWatchingScriptInfo(k),k.open(u),p&&k.registerFileUpdate()),k}getScriptInfoForNormalizedPath(t){return!jp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(d6(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){let r=this.filenameToScriptInfo.get(t);return!r||!r.deferredDelete?r:void 0}getDocumentPositionMapper(t,r,a){let u=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host,!1);if(!u){a&&t.addGeneratedFileWatch(r,a);return}if(u.getSnapshot(),fs(u.sourceMapFilePath)){let x=this.getScriptInfoForPath(u.sourceMapFilePath);if(x&&(x.getSnapshot(),x.documentPositionMapper!==void 0))return x.sourceInfos=this.addSourceInfoToSourceMap(a,t,x.sourceInfos),x.documentPositionMapper?x.documentPositionMapper:void 0;u.sourceMapFilePath=void 0}else if(u.sourceMapFilePath){u.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(a,t,u.sourceMapFilePath.sourceInfos);return}else if(u.sourceMapFilePath!==void 0)return;let f,p=(x,k)=>{let T=this.getOrCreateScriptInfoNotOpenedByClient(x,t.currentDirectory,this.host,!0);if(f=T||k,!T||T.deferredDelete)return;let A=T.getSnapshot();return T.documentPositionMapper!==void 0?T.documentPositionMapper:qN(A)},y=t.projectName,g=noe({getCanonicalFileName:this.toCanonicalFileName,log:x=>this.logger.info(x),getSourceFileLike:x=>this.getSourceFileLike(x,y,u)},u.fileName,u.textStorage.getLineInfo(),p);return p=void 0,f?fs(f)?u.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?f:ts(f,t.currentDirectory),u.path),sourceInfos:this.addSourceInfoToSourceMap(a,t)}:(u.sourceMapFilePath=f.path,f.declarationInfoPath=u.path,f.deferredDelete||(f.documentPositionMapper=g||!1),f.sourceInfos=this.addSourceInfoToSourceMap(a,t,f.sourceInfos)):u.sourceMapFilePath=!1,g}addSourceInfoToSourceMap(t,r,a){if(t){let u=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost,!1);(a||(a=new Set)).add(u.path)}return a}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{let u=this.getScriptInfoForPath(r);u&&u.sourceMapFilePath&&!fs(u.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(u.containingProjects,!0),this.delayUpdateSourceInfoProjects(u.sourceMapFilePath.sourceInfos),u.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Fd.MissingSourceMapFile)}getSourceFileLike(t,r,a){let u=r.projectName?r:this.findProject(r);if(u){let p=u.toPath(t),y=u.getSourceFile(p);if(y&&y.resolvedPath===p)return y}let f=this.getOrCreateScriptInfoNotOpenedByClient(t,(u||this).currentDirectory,u?u.directoryStructureHost:this.host,!1);if(f){if(a&&fs(a.sourceMapFilePath)&&f!==a){let p=this.getScriptInfoForPath(a.sourceMapFilePath);p&&(p.sourceInfos??(p.sourceInfos=new Set)).add(f.path)}return f.cacheSourceFile?f.cacheSourceFile.sourceFile:(f.sourceFileLike||(f.sourceFileLike={get text(){return B.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:p=>{let y=f.positionToLineOffset(p);return{line:y.line-1,character:y.offset-1}},getPositionOfLineAndCharacter:(p,y,g)=>f.lineOffsetToPosition(p+1,y+1,g)}),f.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){let a=this.getScriptInfoForNormalizedPath(xl(t.file));a&&(a.setOptions(_6(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,..._6(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:a,includePackageJsonAutoImports:u,includeCompletionsForModuleExports:f}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},a&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(p=>p.forEach(y=>{!y.deferredClose&&!y.isClosed()&&y.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(y)&&y.updateGraph()})),(u!==t.preferences.includePackageJsonAutoImports||!!f!=!!t.preferences.includeCompletionsForModuleExports)&&this.forEachProject(p=>{p.onAutoImportProviderSettingsChanged()})}if(t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions){let a=(r=H9(t.watchOptions))==null?void 0:r.watchOptions,u=XH(a,this.currentDirectory);this.hostConfiguration.watchOptions=u,this.hostConfiguration.beforeSubstitution=u===a?void 0:a,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions(),t.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(t,r){let a=this.hostConfiguration.beforeSubstitution?XH(this.hostConfiguration.beforeSubstitution,r):this.hostConfiguration.watchOptions;return t&&a?{...a,...t}:t||a}closeLog(){this.logger.close()}sendSourceFileChange(t){this.filenameToScriptInfo.forEach(r=>{if(this.openFiles.has(r.path)||!r.fileWatcher)return;let a=l_(()=>this.host.fileExists(r.fileName)?r.deferredDelete?0:1:2);if(t){if(S2e(r)||!r.path.startsWith(t)||a()===2&&r.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${r.fileName}:: ${a()}`)}this.onSourceFileChanged(r,a())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((a,u)=>{this.throttledOperations.cancel(u),this.pendingProjectUpdates.delete(u)}),this.throttledOperations.cancel(jKe),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(a=>{a.config&&(a.config.updateLevel=2)}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(a=>{this.clearSemanticCache(a),a.updateGraph()});let t=new Set,r=new Set;this.externalProjectToConfiguredProjectMap.forEach((a,u)=>{let f=`Reloading configured project in external project: ${u}`;a.forEach(p=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?(p.isInitialLoadPending()||(this.clearSemanticCache(p),p.pendingUpdateLevel=2,p.pendingUpdateReason=aae(f)),r.add(p)):this.reloadConfiguredProjectClearingSemanticCache(p,f,t)})}),this.openFiles.forEach((a,u)=>{let f=this.getScriptInfoForPath(u);St(f.containingProjects,z9)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(f,2,t,r)}),r.forEach(a=>t.add(a)),this.inferredProjects.forEach(a=>this.clearSemanticCache(a)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(t,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(t){B.assert(t.containingProjects.length>0);let r=t.containingProjects[0];!r.isOrphan()&&f6(r)&&r.isRoot(t)&&re(t.containingProjects,a=>a!==r&&!a.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();let t=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,t?.forEach((r,a)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(a),1)),this.openFiles.forEach((r,a)=>{let u=this.getScriptInfoForPath(a);u.isOrphan()?this.assignOrphanScriptInfoToInferredProject(u,r):this.removeRootOfInferredProjectIfNowPartOfOtherProject(u)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(hh),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,a,u){return this.openClientFileWithNormalizedPath(xl(t),r,a,!1,u?xl(u):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){let a=t.isSourceOfProjectReferenceRedirect(r.fileName),u=a?r:t.getSourceMapper().tryGetSourcePosition(r);if(!u)return;let{fileName:f}=u,p=this.getScriptInfo(f);if(!p&&!this.host.fileExists(f))return;let y={fileName:xl(f),path:this.toPath(f)},g=this.getConfigFileNameForFile(y,!1);if(!g)return;let x=this.findConfiguredProjectByProjectName(g);if(!x){if(t.getCompilerOptions().disableReferencedProjectLoad)return a?r:p?.containingProjects.length?u:r;x=this.createConfiguredProject(g,`Creating project for original file: ${y.fileName}${r!==u?" for location: "+r.fileName:""}`)}hh(x);let k=P=>{let R=this.getScriptInfo(f);return R&&P.containsScriptInfo(R)&&!P.isSourceOfProjectReferenceRedirect(R.path)};if(x.isSolution()||!k(x)){if(x=HKe(x,f,P=>k(P)?P:void 0,1,`Creating project referenced in solution ${x.projectName} to find possible configured project for original file: ${y.fileName}${r!==u?" for location: "+r.fileName:""}`),!x)return;if(x===t)return u}A(x);let T=this.getScriptInfo(f);if(!T||!T.containingProjects.length)return;return T.containingProjects.forEach(P=>{xS(P)&&A(P)}),u;function A(P){(t.originalConfiguredProjects??(t.originalConfiguredProjects=new Set)).add(P.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return St(this.externalProjects,r=>(hh(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,a,u,f){let p=this.getOrCreateScriptInfoWorker(t,f?this.getNormalizedAbsolutePath(f):this.currentDirectory,!0,r,a,!!u,void 0,!0);return this.openFiles.set(p.path,f),p}assignProjectToOpenedScriptInfo(t){let r,a,u=this.findExternalProjectContainingOpenScriptInfo(t),f,p;if(!u&&this.serverMode===0){let y=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,1);y&&(f=y.seenProjects,p=y.sentConfigDiag,y.defaultProject&&(r=y.defaultProject.getConfigFilePath(),a=y.defaultProject.getAllProjectErrors()))}return t.containingProjects.forEach(hh),t.isOrphan()&&(f?.forEach(y=>{p.has(y)||this.sendConfigFileDiagEvent(y,t.fileName,!0)}),B.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),B.assert(!t.isOrphan()),{configFileName:r,configFileErrors:a,retainProjects:f}}findCreateOrReloadConfiguredProject(t,r,a,u,f,p,y,g){let x=this.findConfiguredProjectByProjectName(t,u),k=!1;switch(r){case 0:if(!x)return;break;case 1:x??(x=this.createConfiguredProject(t,a)),k=!y&&$Ke(x,f);break;case 2:x??(x=this.createConfiguredProject(t,aae(a))),k=!g&&this.reloadConfiguredProjectClearingSemanticCache(x,a,p),g&&!g.has(x)&&!p.has(x)&&(x.pendingUpdateLevel=2,x.pendingUpdateReason=aae(a),g.add(x));break;default:B.assertNever(r)}return{project:x,sentConfigFileDiag:k}}tryFindDefaultConfiguredProjectForOpenScriptInfo(t,r,a,u){let f=this.getConfigFileNameForFile(t,r===0);if(!f)return;let p=this.findCreateOrReloadConfiguredProject(f,r,GKe(t),a,t.fileName,u);if(!p)return;let y=new Set,g=new Set(p.sentConfigFileDiag?[p.project]:void 0),x,k;return T(p.project),{defaultProject:x??k,sentConfigDiag:g,seenProjects:y};function T(R){return A(R)?x:P(R)}function A(R){if(!_p(y,R))return;let W=R.containsScriptInfo(t);if(W&&!R.isSourceOfProjectReferenceRedirect(t.path))return x=R;k??(k=W?R:void 0)}function P(R){return HKe(R,t.path,(W,z)=>(z&&g.add(W),A(W)),r,`Creating project referenced in solution ${R.projectName} to find possible configured project for ${t.fileName} to open`,a,t.fileName,u)}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,r,a,u){let f=r===0,p=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,r,f,a);if(!p)return;let{defaultProject:y,seenProjects:g}=p;return y&&q9t(t,y,x=>{g.add(x)},r,`Creating project possibly referencing default composite project ${y.getProjectName()} of open file ${t.fileName}`,f,a,u),p}loadAncestorProjectTree(t){t??(t=new Set(bd(this.configuredProjects.entries(),([u,f])=>f.isInitialLoadPending()?void 0:u)));let r=new Set,a=as(this.configuredProjects.values());for(let u of a)UKe(u,f=>t.has(f))&&hh(u),this.ensureProjectChildren(u,t,r)}ensureProjectChildren(t,r,a){var u;if(!_p(a,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let f=(u=t.getCurrentProgram())==null?void 0:u.getResolvedProjectReferences();if(f)for(let p of f){if(!p)continue;let y=Jie(p.references,k=>r.has(k.sourceFile.path)?k:void 0);if(!y)continue;let g=xl(p.sourceFile.fileName),x=this.findConfiguredProjectByProjectName(g)??this.createConfiguredProject(g,`Creating project referenced by : ${t.projectName} as it references project ${y.sourceFile.fileName}`);hh(x),this.ensureProjectChildren(x,r,a)}}cleanupConfiguredProjects(t,r,a){this.getOrphanConfiguredProjects(t,a,r).forEach(u=>this.removeProject(u))}cleanupProjectsAndScriptInfos(t,r,a){this.cleanupConfiguredProjects(t,a,r);for(let u of this.inferredProjects.slice())u.isOrphan()&&this.removeProject(u);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(t){this.configFileExistenceInfoCache.forEach((r,a)=>{var u,f;!((u=r.config)!=null&&u.parsedCommandLine)||sn(r.config.parsedCommandLine.fileNames,t.fileName,this.host.useCaseSensitiveFileNames?Mw:sx)||(f=r.config.watchedDirectories)==null||f.forEach((p,y)=>{nh(y,t.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${a}:: wildcard for open scriptInfo:: ${t.fileName}`),this.onWildCardDirectoryWatcherInvoke(y,a,r.config,p.watcher,t.fileName))})})}openClientFileWithNormalizedPath(t,r,a,u,f){let p=this.getScriptInfoForPath(d6(t,f?this.getNormalizedAbsolutePath(f):this.currentDirectory,this.toCanonicalFileName)),y=this.getOrCreateOpenScriptInfo(t,r,a,u,f);!p&&y&&!y.isDynamic&&this.tryInvokeWildCardDirectories(y);let{retainProjects:g,...x}=this.assignProjectToOpenedScriptInfo(y);return this.cleanupProjectsAndScriptInfos(g,new Set([y.path]),void 0),this.telemetryOnOpenFile(y),this.printProjects(),x}getOrphanConfiguredProjects(t,r,a){let u=new Set(this.configuredProjects.values()),f=x=>{x.originalConfiguredProjects&&(xS(x)||!x.isOrphan())&&x.originalConfiguredProjects.forEach((k,T)=>{let A=this.getConfiguredProjectByCanonicalConfigFilePath(T);return A&&g(A)})};return t?.forEach(g),this.inferredProjects.forEach(f),this.externalProjects.forEach(f),this.externalProjectToConfiguredProjectMap.forEach((x,k)=>{a?.has(k)||x.forEach(g)}),this.openFiles.forEach((x,k)=>{if(r?.has(k))return;let T=this.getScriptInfoForPath(k);if(St(T.containingProjects,z9))return;let A=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(T,0);A?.defaultProject&&A?.seenProjects.forEach(g)}),this.configuredProjects.forEach(x=>{u.has(x)&&(y(x)||JKe(x,p))&&g(x)}),u;function p(x){return!u.has(x)||y(x)}function y(x){var k,T;return(x.deferredClose||x.projectService.hasPendingProjectUpdate(x))&&!!((T=(k=x.projectService.configFileExistenceInfoCache.get(x.canonicalConfigFilePath))==null?void 0:k.openFilesImpactedByConfigFile)!=null&&T.size)}function g(x){u.delete(x)&&(f(x),JKe(x,g))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.deferredDelete){if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let a;if(fs(r.sourceMapFilePath)){let u=this.filenameToScriptInfo.get(r.sourceMapFilePath);a=u?.sourceInfos}else a=r.sourceMapFilePath.sourceInfos;if(!a||!K1(a,u=>{let f=this.getScriptInfoForPath(u);return!!f&&(f.isScriptOpen()||!f.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let a;if(fs(r.sourceMapFilePath)){let u=this.filenameToScriptInfo.get(r.sourceMapFilePath);u?.deferredDelete?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(u.fileName,r.path),sourceInfos:u.sourceInfos}:t.delete(r.sourceMapFilePath),a=u?.sourceInfos}else a=r.sourceMapFilePath.sourceInfos;a&&a.forEach((u,f)=>t.delete(f))}}}),t.forEach(r=>this.deleteScriptInfo(r))}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Uh(this.allJsFilesForOpenFileTelemetry,t.path))return;let r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;let a=r.getSourceFile(t.path),u=!!a&&!!a.checkJsDirective;this.eventHandler({eventName:_2e,data:{info:{checkJs:u}}})}closeClientFile(t,r){let a=this.getScriptInfoForNormalizedPath(xl(t)),u=a?this.closeOpenFile(a,r):!1;return r||this.printProjects(),u}collectChanges(t,r,a,u){for(let f of r){let p=St(t,y=>y.projectName===f.getProjectName());u.push(f.getChangesSinceVersion(p&&p.version,a))}}synchronizeProjectList(t,r){let a=[];return this.collectChanges(t,this.externalProjects,r,a),this.collectChanges(t,bd(this.configuredProjects.values(),u=>u.deferredClose?void 0:u),r,a),this.collectChanges(t,this.inferredProjects,r,a),a}applyChangesInOpenFiles(t,r,a){let u,f,p=!1;if(t)for(let g of t){(u??(u=[])).push(this.getScriptInfoForPath(d6(xl(g.fileName),g.projectRootPath?this.getNormalizedAbsolutePath(g.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));let x=this.getOrCreateOpenScriptInfo(xl(g.fileName),g.content,iae(g.scriptKind),g.hasMixedContent,g.projectRootPath?xl(g.projectRootPath):void 0);(f||(f=[])).push(x)}if(r)for(let g of r){let x=this.getScriptInfo(g.fileName);B.assert(!!x),this.applyChangesToFile(x,g.changes)}if(a)for(let g of a)p=this.closeClientFile(g,!0)||p;let y;re(u,(g,x)=>!g&&f[x]&&!f[x].isDynamic?this.tryInvokeWildCardDirectories(f[x]):void 0),f?.forEach(g=>{var x;return(x=this.assignProjectToOpenedScriptInfo(g).retainProjects)==null?void 0:x.forEach(k=>(y??(y=new Set)).add(k))}),p&&this.assignOrphanScriptInfosToInferredProject(),f?(this.cleanupProjectsAndScriptInfos(y,new Set(f.map(g=>g.path)),void 0),f.forEach(g=>this.telemetryOnOpenFile(g)),this.printProjects()):K(a)&&this.printProjects()}applyChangesToFile(t,r){for(let a of r)t.editContent(a.span.start,a.span.start+a.span.length,a.newText)}closeExternalProject(t,r){let a=xl(t);if(this.externalProjectToConfiguredProjectMap.get(a))this.externalProjectToConfiguredProjectMap.delete(a);else{let f=this.findExternalProjectByProjectName(t);f&&this.removeProject(f)}r&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(t){let r=new Set(this.externalProjects.map(a=>a.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((a,u)=>r.add(u));for(let a of t)this.openExternalProject(a,!1),r.delete(a.projectFileName);r.forEach(a=>this.closeExternalProject(a,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=p2e}applySafeList(t){let r=t.typeAcquisition;B.assert(!!r,"proj.typeAcquisition should be set by now");let a=this.applySafeListWorker(t,t.rootFiles,r);return a?.excludedFiles??[]}applySafeListWorker(t,r,a){if(a.enable===!1||a.disableFilenameBasedTypeAcquisition)return;let u=a.include||(a.include=[]),f=[],p=r.map(T=>ff(T.fileName));for(let T of Object.keys(this.safelist)){let A=this.safelist[T];for(let P of p)if(A.match.test(P)){if(this.logger.info(`Excluding files based on rule ${T} matching file '${P}'`),A.types)for(let R of A.types)u.includes(R)||u.push(R);if(A.exclude)for(let R of A.exclude){let W=P.replace(A.match,(...z)=>R.map(q=>typeof q=="number"?fs(z[q])?rYt.escapeFilenameForRegex(z[q]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${T} - not enough groups`),"\\*"):q).join(""));f.includes(W)||f.push(W)}else{let R=rYt.escapeFilenameForRegex(P);f.includes(R)||f.push(R)}}}let y=f.map(T=>new RegExp(T,"i")),g,x;for(let T=0;TA.test(p[T])))k(T);else{if(a.enable){let A=Xu(rx(p[T]));if(Tl(A,"js")){let P=A_(A),R=EY(P),W=this.legacySafelist.get(R);if(W!==void 0){this.logger.info(`Excluded '${p[T]}' because it matched ${R} from the legacy safelist`),k(T),u.includes(W)||u.push(W);continue}}}/^.+[.-]min\.js$/.test(p[T])?k(T):g?.push(r[T])}return x?{rootFiles:g,excludedFiles:x}:void 0;function k(T){x||(B.assert(!g),g=r.slice(0,T),x=[]),x.push(p[T])}}openExternalProject(t,r){let a=this.findExternalProjectByProjectName(t.projectFileName),u,f=[];for(let p of t.rootFiles){let y=xl(p.fileName);if(Hse(y)){if(this.serverMode===0&&this.host.fileExists(y)){let g=this.findConfiguredProjectByProjectName(y);g||(g=this.createConfiguredProject(y,`Creating configured project in external project: ${t.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||g.updateGraph()),(u??(u=new Set)).add(g),B.assert(!g.isClosed())}}else f.push(p)}if(u)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,u),a&&this.removeProject(a);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);let p=t.typeAcquisition||{};p.include=p.include||[],p.exclude=p.exclude||[],p.enable===void 0&&(p.enable=s2e(f.map(x=>x.fileName)));let y=this.applySafeListWorker(t,f,p),g=y?.excludedFiles??[];if(f=y?.rootFiles??f,a){a.excludedFiles=g;let x=Vq(t.options),k=H9(t.options,a.getCurrentDirectory()),T=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,x,f,oae);T?a.disableLanguageService(T):a.enableLanguageService(),a.setProjectErrors(k?.errors),this.updateRootAndOptionsOfNonInferredProject(a,f,oae,x,p,t.options.compileOnSave,k?.watchOptions),a.updateGraph()}else this.createExternalProject(t.projectFileName,f,t.options,p,g).updateGraph()}r&&(this.cleanupConfiguredProjects(u,new Set(t.projectFileName)),this.printProjects())}hasDeferredExtension(){for(let t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,a){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${a.join(",")}`),!r.name||Od(r.name)||/[\\/]\.\.?(?:$|[\\/])/.test(r.name)){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let u=sA.importServicePluginAsync(r,a,this.host,p=>this.logger.info(p));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let f=this.pendingPluginEnablements.get(t);f||this.pendingPluginEnablements.set(t,f=[]),f.push(u);return}this.endEnablePlugin(t,sA.importServicePluginSync(r,a,this.host,u=>this.logger.info(u)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:a,errorLogs:u}){var f;if(a){let p=(f=this.currentPluginConfigOverrides)==null?void 0:f.get(r.name);if(p){let y=r.name;r=p,r.name=y}t.enableProxy(a,r)}else re(u,p=>this.logger.info(p)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let t=as(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){B.assert(this.currentPluginEnablementPromise===void 0);let r=!1;await Promise.all(_i(t,async([a,u])=>{let f=await Promise.all(u);if(a.isClosed()||Wq(a)){this.logger.info(`Cancelling plugin enabling for ${a.getProjectName()} as it is ${a.isClosed()?"closed":"deferred close"}`);return}r=!0;for(let p of f)this.endEnablePlugin(a,p);this.delayUpdateProjectGraph(a)})),this.currentPluginEnablementPromise=void 0,r&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,a){let u=this.packageJsonCache,f=a&&this.toPath(a),p=[],y=g=>{switch(u.directoryHasPackageJson(g)){case 3:return u.searchDirectoryAndAncestors(g),y(g);case-1:let x=xr(g,"package.json");this.watchPackageJsonFile(x,this.toPath(x),r);let k=u.getInDirectory(g);k&&p.push(k)}if(f&&f===g)return!0};return Rh(Or(t),y),p}getNearestAncestorDirectoryWithPackageJson(t){return Rh(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists(xr(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,a){B.assert(a!==void 0);let u=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!u){let f=this.watchFactory.watchFile(t,(p,y)=>{switch(y){case 0:case 1:this.packageJsonCache.addOrUpdate(p,r),this.onPackageJsonChange(u);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(u),u.projects.clear(),u.close()}},250,this.hostConfiguration.watchOptions,Fd.PackageJson);u={projects:new Set,close:()=>{var p;u.projects.size||!f||(f.close(),f=void 0,(p=this.packageJsonFilesMap)==null||p.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,u)}u.projects.add(a),(a.packageJsonWatches??(a.packageJsonWatches=new Set)).add(u)}onPackageJsonChange(t){t.projects.forEach(r=>{var a;return(a=r.onPackageJsonChange)==null?void 0:a.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=X9t())}};XKe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var w2e=XKe;function X9t(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function T2e(e){return e.kind!==void 0}function E2e(e){e.print(!1,!1,!1)}function D2e(e){let t,r,a,u={get(g,x,k,T){if(!(!r||a!==p(g,k,T)))return r.get(x)},set(g,x,k,T,A,P,R){if(f(g,k,T).set(x,y(A,P,R,void 0,!1)),R){for(let W of P)if(W.isInNodeModules){let z=W.path.substring(0,W.path.indexOf(Zv)+Zv.length-1),q=e.toPath(z);t?.has(q)||(t||(t=new Map)).set(q,e.watchNodeModulesForPackageJsonChanges(z))}}},setModulePaths(g,x,k,T,A){let P=f(g,k,T),R=P.get(x);R?R.modulePaths=A:P.set(x,y(void 0,A,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(g,x,k,T,A,P){let R=f(g,k,T),W=R.get(x);W?(W.isBlockedByPackageJsonDependencies=P,W.packageName=A):R.set(x,y(void 0,void 0,void 0,A,P))},clear(){t?.forEach(kg),r?.clear(),t?.clear(),a=void 0},count(){return r?r.size:0}};return B.isDebugging&&Object.defineProperty(u,"__cache",{get:()=>r}),u;function f(g,x,k){let T=p(g,x,k);return r&&a!==T&&u.clear(),a=T,r||(r=new Map)}function p(g,x,k){return`${g},${x.importModuleSpecifierEnding},${x.importModuleSpecifierPreference},${k.overrideImportMode}`}function y(g,x,k,T,A){return{kind:g,modulePaths:x,moduleSpecifiers:k,packageName:T,isBlockedByPackageJsonDependencies:A}}}function I2e(e){let t=new Map,r=new Map;return{addOrUpdate:a,invalidate:u,delete:p=>{t.delete(p),r.set(Or(p),!0)},getInDirectory:p=>t.get(e.toPath(xr(p,"package.json")))||void 0,directoryHasPackageJson:p=>f(e.toPath(p)),searchDirectoryAndAncestors:p=>{Rh(p,y=>{let g=e.toPath(y);if(f(g)!==3)return!0;let x=xr(y,"package.json");t9(e,x)?a(x,xr(g,"package.json")):r.set(g,!0)})}};function a(p,y){let g=B.checkDefined(jre(p,e.host));t.set(y,g),r.delete(Or(y))}function u(p){t.delete(p),r.delete(Or(p))}function f(p){return t.has(xr(p,"package.json"))?-1:r.has(p)?0:3}}var YKe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function Y9t(e){let t=e[0],r=e[1];return(1e9*t+r)/1e6}function QKe(e,t){if((f6(e)||z9(e))&&e.isJsOnlyProject()){let r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function Q9t(e){return yp(e)||!!e.emitDecoratorMetadata}function ZKe(e,t,r){let a=t.getScriptInfoForNormalizedPath(e);return{start:a.positionToLineOffset(r.start),end:a.positionToLineOffset(r.start+r.length),text:ay(r.messageText,` +`),code:r.code,category:q2(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:_i(r.relatedInformation,cae)}}function cae(e){return e.file?{span:{start:p6(ma(e.file,e.start)),end:p6(ma(e.file,e.start+e.length)),file:e.file.fileName},message:ay(e.messageText,` +`),category:q2(e),code:e.code}:{message:ay(e.messageText,` +`),category:q2(e),code:e.code}}function p6(e){return{line:e.line+1,offset:e.character+1}}function U9(e,t){let r=e.file&&p6(ma(e.file,e.start)),a=e.file&&p6(ma(e.file,e.start+e.length)),u=ay(e.messageText,` +`),{code:f,source:p}=e,y=q2(e),g={start:r,end:a,text:u,code:f,category:y,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:p,relatedInformation:_i(e.relatedInformation,cae)};return t?{...g,fileName:e.file&&e.file.fileName}:g}function Z9t(e,t){return e.every(r=>Vl(r.span){this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t),this.performanceData)},e))}delay(e,t,r){let a=this.requestId;B.assert(a===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(a,()=>this.executeAction(r),this.performanceData)},t,e))}executeAction(e){var t,r,a,u,f,p;let y=!1;try{this.operationHost.isCancellationRequested()?(y=!0,(t=jn)==null||t.instant(jn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=jn)==null||r.push(jn.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(a=jn)==null||a.pop())}catch(g){(u=jn)==null||u.popAll(),y=!0,g instanceof h3?(f=jn)==null||f.instant(jn.Phase.Session,"stepCanceled",{seq:this.requestId}):((p=jn)==null||p.instant(jn.Phase.Session,"stepError",{seq:this.requestId,message:g.message}),this.operationHost.logError(g,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(y||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function A2e(e,t){return{seq:0,type:"event",event:e,body:t}}function tBt(e,t,r,a){let u=kl(ds(r)?r:r.projects,f=>a(f,e));return!ds(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((f,p)=>{let y=t(p);u.push(...vo(f,g=>a(g,y)))}),hs(u,ox)}function lae(e){return xY(({textSpan:t})=>t.start+100003*t.length,kre(e))}function iBt(e,t,r,a,u,f,p){let y=tXe(e,t,r,!0,(k,T)=>k.getLanguageService().findRenameLocations(T.fileName,T.pos,a,u,f),(k,T)=>T(J8(k)));if(ds(y))return y;let g=[],x=lae(p);return y.forEach((k,T)=>{for(let A of k)!x.has(A)&&!uae(J8(A),T)&&(g.push(A),x.add(A))}),g}function nBt(e,t,r){let a=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),u=a&&mc(a);return u&&!u.isLocal?{fileName:u.fileName,pos:u.textSpan.start}:void 0}function rBt(e,t,r,a,u){var f,p;let y=tXe(e,t,r,!1,(T,A)=>(u.info(`Finding references to ${A.fileName} position ${A.pos} in project ${T.getProjectName()}`),T.getLanguageService().findReferences(A.fileName,A.pos)),(T,A)=>{A(J8(T.definition));for(let P of T.references)A(J8(P))});if(ds(y))return y;let g=y.get(t);if(((p=(f=g?.[0])==null?void 0:f.references[0])==null?void 0:p.isDefinition)===void 0)y.forEach(T=>{for(let A of T)for(let P of A.references)delete P.isDefinition});else{let T=lae(a);for(let P of g)for(let R of P.references)if(R.isDefinition){T.add(R);break}let A=new Set;for(;;){let P=!1;if(y.forEach((R,W)=>{if(A.has(W))return;W.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,T)&&(A.add(W),P=!0)}),!P)break}y.forEach((P,R)=>{if(!A.has(R))for(let W of P)for(let z of W.references)z.isDefinition=!1})}let x=[],k=lae(a);return y.forEach((T,A)=>{for(let P of T){let R=uae(J8(P.definition),A),W=R===void 0?P.definition:{...P.definition,textSpan:_f(R.pos,P.definition.textSpan.length),fileName:R.fileName,contextSpan:aBt(P.definition,A)},z=St(x,q=>Cre(q.definition,W,a));z||(z={definition:W,references:[]},x.push(z));for(let q of P.references)!k.has(q)&&!uae(J8(q),A)&&(k.add(q),z.references.push(q))}}),x.filter(T=>T.references.length!==0)}function P2e(e,t,r){for(let a of ds(e)?e:e.projects)r(a,t);!ds(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((a,u)=>{for(let f of a)r(f,u)})}function tXe(e,t,r,a,u,f){let p=new Map,y=H7();y.enqueue({project:t,location:r}),P2e(e,r.fileName,(W,z)=>{let q={fileName:z,pos:r.pos};y.enqueue({project:W,location:q})});let g=t.projectService,x=t.getCancellationToken(),k=nBt(t,r,a),T=l_(()=>t.isSourceOfProjectReferenceRedirect(k.fileName)?k:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(k)),A=l_(()=>t.isSourceOfProjectReferenceRedirect(k.fileName)?k:t.getLanguageService().getSourceMapper().tryGetSourcePosition(k)),P=new Set;e:for(;!y.isEmpty();){for(;!y.isEmpty();){if(x.isCancellationRequested())break e;let{project:W,location:z}=y.dequeue();if(p.has(W)||iXe(W,z)||(hh(W),!W.containsFile(xl(z.fileName))))continue;let q=R(W,z);p.set(W,q??Id),P.add(sBt(W))}k&&(g.loadAncestorProjectTree(P),g.forEachEnabledProject(W=>{if(x.isCancellationRequested()||p.has(W))return;let z=oBt(k,W,T,A);z&&y.enqueue({project:W,location:z})}))}if(p.size===1)return CP(p.values());return p;function R(W,z){let q=u(W,z);if(q){for(let G of q)f(G,$=>{let te=g.getOriginalLocationEnsuringConfiguredProject(W,$);if(!te)return;let ne=g.getScriptInfo(te.fileName);for(let ce of ne.containingProjects)!ce.isOrphan()&&!p.has(ce)&&y.enqueue({project:ce,location:te});let _e=g.getSymlinkedProjects(ne);_e&&_e.forEach((ce,ae)=>{for(let Ce of ce)!Ce.isOrphan()&&!p.has(Ce)&&y.enqueue({project:Ce,location:{fileName:ae,pos:te.pos}})})});return q}}}function oBt(e,t,r,a){if(t.containsFile(xl(e.fileName))&&!iXe(t,e))return e;let u=r();if(u&&t.containsFile(xl(u.fileName)))return u;let f=a();return f&&t.containsFile(xl(f.fileName))?f:void 0}function iXe(e,t){if(!t)return!1;let r=e.getLanguageService().getProgram();if(!r)return!1;let a=r.getSourceFile(t.fileName);return!!a&&a.resolvedPath!==a.path&&a.resolvedPath!==e.toPath(t.fileName)}function sBt(e){return xS(e)?e.canonicalConfigFilePath:e.getProjectName()}function J8({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function uae(e,t){return w8(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function nXe(e,t){return AJ(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function aBt(e,t){return Tre(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}var rXe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits"],cBt=[...rXe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],oXe=class tut{constructor(t){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{let f={version:O};return this.requiredResponse(f)},openExternalProject:f=>(this.projectService.openExternalProject(f.arguments,!0),this.requiredResponse(!0)),openExternalProjects:f=>(this.projectService.openExternalProjects(f.arguments.projects),this.requiredResponse(!0)),closeExternalProject:f=>(this.projectService.closeExternalProject(f.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:f=>{let p=this.projectService.synchronizeProjectList(f.arguments.knownProjects,f.arguments.includeProjectReferenceRedirectInfo);if(!p.some(g=>g.projectErrors&&g.projectErrors.length!==0))return this.requiredResponse(p);let y=_i(p,g=>!g.projectErrors||g.projectErrors.length===0?g:{info:g.info,changes:g.changes,files:g.files,projectErrors:this.convertToDiagnosticsWithLinePosition(g.projectErrors,void 0)});return this.requiredResponse(y)},updateOpen:f=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(f.arguments.openFiles&&wc(f.arguments.openFiles,p=>({fileName:p.file,content:p.fileContent,scriptKind:p.scriptKindName,projectRootPath:p.projectRootPath})),f.arguments.changedFiles&&wc(f.arguments.changedFiles,p=>({fileName:p.fileName,changes:bd(E0(p.textChanges),y=>{let g=B.checkDefined(this.projectService.getScriptInfo(p.fileName)),x=g.lineOffsetToPosition(y.start.line,y.start.offset),k=g.lineOffsetToPosition(y.end.line,y.end.offset);return x>=0?{span:{start:x,length:k-x},newText:y.newText}:void 0})})),f.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:f=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(f.arguments.openFiles,f.arguments.changedFiles&&wc(f.arguments.changedFiles,p=>({fileName:p.fileName,changes:E0(p.changes)})),f.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:f=>this.requiredResponse(this.getDefinition(f.arguments,!0)),"definition-full":f=>this.requiredResponse(this.getDefinition(f.arguments,!1)),definitionAndBoundSpan:f=>this.requiredResponse(this.getDefinitionAndBoundSpan(f.arguments,!0)),"definitionAndBoundSpan-full":f=>this.requiredResponse(this.getDefinitionAndBoundSpan(f.arguments,!1)),findSourceDefinition:f=>this.requiredResponse(this.findSourceDefinition(f.arguments)),"emit-output":f=>this.requiredResponse(this.getEmitOutput(f.arguments)),typeDefinition:f=>this.requiredResponse(this.getTypeDefinition(f.arguments)),implementation:f=>this.requiredResponse(this.getImplementation(f.arguments,!0)),"implementation-full":f=>this.requiredResponse(this.getImplementation(f.arguments,!1)),references:f=>this.requiredResponse(this.getReferences(f.arguments,!0)),"references-full":f=>this.requiredResponse(this.getReferences(f.arguments,!1)),rename:f=>this.requiredResponse(this.getRenameLocations(f.arguments,!0)),"renameLocations-full":f=>this.requiredResponse(this.getRenameLocations(f.arguments,!1)),"rename-full":f=>this.requiredResponse(this.getRenameInfo(f.arguments)),open:f=>(this.openClientFile(xl(f.arguments.file),f.arguments.fileContent,nae(f.arguments.scriptKindName),f.arguments.projectRootPath?xl(f.arguments.projectRootPath):void 0),this.notRequired(f)),quickinfo:f=>this.requiredResponse(this.getQuickInfoWorker(f.arguments,!0)),"quickinfo-full":f=>this.requiredResponse(this.getQuickInfoWorker(f.arguments,!1)),getOutliningSpans:f=>this.requiredResponse(this.getOutliningSpans(f.arguments,!0)),outliningSpans:f=>this.requiredResponse(this.getOutliningSpans(f.arguments,!1)),todoComments:f=>this.requiredResponse(this.getTodoComments(f.arguments)),indentation:f=>this.requiredResponse(this.getIndentation(f.arguments)),nameOrDottedNameSpan:f=>this.requiredResponse(this.getNameOrDottedNameSpan(f.arguments)),breakpointStatement:f=>this.requiredResponse(this.getBreakpointStatement(f.arguments)),braceCompletion:f=>this.requiredResponse(this.isValidBraceCompletion(f.arguments)),docCommentTemplate:f=>this.requiredResponse(this.getDocCommentTemplate(f.arguments)),getSpanOfEnclosingComment:f=>this.requiredResponse(this.getSpanOfEnclosingComment(f.arguments)),fileReferences:f=>this.requiredResponse(this.getFileReferences(f.arguments,!0)),"fileReferences-full":f=>this.requiredResponse(this.getFileReferences(f.arguments,!1)),format:f=>this.requiredResponse(this.getFormattingEditsForRange(f.arguments)),formatonkey:f=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(f.arguments)),"format-full":f=>this.requiredResponse(this.getFormattingEditsForDocumentFull(f.arguments)),"formatonkey-full":f=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(f.arguments)),"formatRange-full":f=>this.requiredResponse(this.getFormattingEditsForRangeFull(f.arguments)),completionInfo:f=>this.requiredResponse(this.getCompletions(f.arguments,"completionInfo")),completions:f=>this.requiredResponse(this.getCompletions(f.arguments,"completions")),"completions-full":f=>this.requiredResponse(this.getCompletions(f.arguments,"completions-full")),completionEntryDetails:f=>this.requiredResponse(this.getCompletionEntryDetails(f.arguments,!1)),"completionEntryDetails-full":f=>this.requiredResponse(this.getCompletionEntryDetails(f.arguments,!0)),compileOnSaveAffectedFileList:f=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(f.arguments)),compileOnSaveEmitFile:f=>this.requiredResponse(this.emitFile(f.arguments)),signatureHelp:f=>this.requiredResponse(this.getSignatureHelpItems(f.arguments,!0)),"signatureHelp-full":f=>this.requiredResponse(this.getSignatureHelpItems(f.arguments,!1)),"compilerOptionsDiagnostics-full":f=>this.requiredResponse(this.getCompilerOptionsDiagnostics(f.arguments)),"encodedSyntacticClassifications-full":f=>this.requiredResponse(this.getEncodedSyntacticClassifications(f.arguments)),"encodedSemanticClassifications-full":f=>this.requiredResponse(this.getEncodedSemanticClassifications(f.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:f=>this.requiredResponse(this.getSemanticDiagnosticsSync(f.arguments)),syntacticDiagnosticsSync:f=>this.requiredResponse(this.getSyntacticDiagnosticsSync(f.arguments)),suggestionDiagnosticsSync:f=>this.requiredResponse(this.getSuggestionDiagnosticsSync(f.arguments)),geterr:f=>(this.errorCheck.startNew(p=>this.getDiagnostics(p,f.arguments.delay,f.arguments.files)),this.notRequired(void 0)),geterrForProject:f=>(this.errorCheck.startNew(p=>this.getDiagnosticsForProject(p,f.arguments.delay,f.arguments.file)),this.notRequired(void 0)),change:f=>(this.change(f.arguments),this.notRequired(f)),configure:f=>(this.projectService.setHostConfiguration(f.arguments),this.notRequired(f)),reload:f=>(this.reload(f.arguments),this.requiredResponse({reloadFinished:!0})),saveto:f=>{let p=f.arguments;return this.saveToTmp(p.file,p.tmpfile),this.notRequired(f)},close:f=>{let p=f.arguments;return this.closeClientFile(p.file),this.notRequired(f)},navto:f=>this.requiredResponse(this.getNavigateToItems(f.arguments,!0)),"navto-full":f=>this.requiredResponse(this.getNavigateToItems(f.arguments,!1)),brace:f=>this.requiredResponse(this.getBraceMatching(f.arguments,!0)),"brace-full":f=>this.requiredResponse(this.getBraceMatching(f.arguments,!1)),navbar:f=>this.requiredResponse(this.getNavigationBarItems(f.arguments,!0)),"navbar-full":f=>this.requiredResponse(this.getNavigationBarItems(f.arguments,!1)),navtree:f=>this.requiredResponse(this.getNavigationTree(f.arguments,!0)),"navtree-full":f=>this.requiredResponse(this.getNavigationTree(f.arguments,!1)),documentHighlights:f=>this.requiredResponse(this.getDocumentHighlights(f.arguments,!0)),"documentHighlights-full":f=>this.requiredResponse(this.getDocumentHighlights(f.arguments,!1)),compilerOptionsForInferredProjects:f=>(this.setCompilerOptionsForInferredProjects(f.arguments),this.requiredResponse(!0)),projectInfo:f=>this.requiredResponse(this.getProjectInfo(f.arguments)),reloadProjects:f=>(this.projectService.reloadProjects(),this.notRequired(f)),jsxClosingTag:f=>this.requiredResponse(this.getJsxClosingTag(f.arguments)),linkedEditingRange:f=>this.requiredResponse(this.getLinkedEditingRange(f.arguments)),getCodeFixes:f=>this.requiredResponse(this.getCodeFixes(f.arguments,!0)),"getCodeFixes-full":f=>this.requiredResponse(this.getCodeFixes(f.arguments,!1)),getCombinedCodeFix:f=>this.requiredResponse(this.getCombinedCodeFix(f.arguments,!0)),"getCombinedCodeFix-full":f=>this.requiredResponse(this.getCombinedCodeFix(f.arguments,!1)),applyCodeActionCommand:f=>this.requiredResponse(this.applyCodeActionCommand(f.arguments)),getSupportedCodeFixes:f=>this.requiredResponse(this.getSupportedCodeFixes(f.arguments)),getApplicableRefactors:f=>this.requiredResponse(this.getApplicableRefactors(f.arguments)),getEditsForRefactor:f=>this.requiredResponse(this.getEditsForRefactor(f.arguments,!0)),getMoveToRefactoringFileSuggestions:f=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(f.arguments)),getPasteEdits:f=>this.requiredResponse(this.getPasteEdits(f.arguments)),"getEditsForRefactor-full":f=>this.requiredResponse(this.getEditsForRefactor(f.arguments,!1)),organizeImports:f=>this.requiredResponse(this.organizeImports(f.arguments,!0)),"organizeImports-full":f=>this.requiredResponse(this.organizeImports(f.arguments,!1)),getEditsForFileRename:f=>this.requiredResponse(this.getEditsForFileRename(f.arguments,!0)),"getEditsForFileRename-full":f=>this.requiredResponse(this.getEditsForFileRename(f.arguments,!1)),configurePlugin:f=>(this.configurePlugin(f.arguments),this.notRequired(f)),selectionRange:f=>this.requiredResponse(this.getSmartSelectionRange(f.arguments,!0)),"selectionRange-full":f=>this.requiredResponse(this.getSmartSelectionRange(f.arguments,!1)),prepareCallHierarchy:f=>this.requiredResponse(this.prepareCallHierarchy(f.arguments)),provideCallHierarchyIncomingCalls:f=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(f.arguments)),provideCallHierarchyOutgoingCalls:f=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(f.arguments)),toggleLineComment:f=>this.requiredResponse(this.toggleLineComment(f.arguments,!0)),"toggleLineComment-full":f=>this.requiredResponse(this.toggleLineComment(f.arguments,!1)),toggleMultilineComment:f=>this.requiredResponse(this.toggleMultilineComment(f.arguments,!0)),"toggleMultilineComment-full":f=>this.requiredResponse(this.toggleMultilineComment(f.arguments,!1)),commentSelection:f=>this.requiredResponse(this.commentSelection(f.arguments,!0)),"commentSelection-full":f=>this.requiredResponse(this.commentSelection(f.arguments,!1)),uncommentSelection:f=>this.requiredResponse(this.uncommentSelection(f.arguments,!0)),"uncommentSelection-full":f=>this.requiredResponse(this.uncommentSelection(f.arguments,!1)),provideInlayHints:f=>this.requiredResponse(this.provideInlayHints(f.arguments)),mapCode:f=>this.requiredResponse(this.mapCode(f.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||Hq,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(f=>this.defaultEventHandler(f)):void 0;let a={executeWithRequestId:(f,p,y)=>this.executeWithRequestId(f,p,y),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(f,p)=>this.logError(f,p),sendRequestCompletedEvent:(f,p)=>this.sendRequestCompletedEvent(f,p),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new eBt(a);let u={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new w2e(u),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new ZTe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:rXe.forEach(f=>this.handlers.set(f,p=>{throw new Error(`Request: ${p.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:cBt.forEach(f=>this.handlers.set(f,p=>{throw new Error(`Request: ${p.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:B.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t,r){this.event({request_seq:t,performanceData:r&&sXe(r)},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}addDiagnosticsPerformanceData(t,r,a){var u,f;this.performanceData||(this.performanceData={});let p=(u=this.performanceData.diagnosticsDuration)==null?void 0:u.get(t);p||((f=this.performanceData).diagnosticsDuration??(f.diagnosticsDuration=new Map)).set(t,p={}),p[r]=a}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case zq:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case $se:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case Gse:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case Kse:case Zse:case eae:case tae:this.event(t.data,t.eventName);break;case Xse:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:_i(t.data.diagnostics,r=>U9(r,!0))},t.eventName);break;case Yse:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case Qse:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},zq))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,a){let u="Exception on executing command "+r;if(t.message&&(u+=`: +`+y8(t.message),t.stack&&(u+=` +`+y8(t.stack))),this.logger.hasLevel(3)){if(a)try{let{file:f,project:p}=this.getFileAndProject(a),y=p.getScriptInfoForNormalizedPath(f);if(y){let g=qN(y.getSnapshot());u+=` + +File text of ${a.file}:${y8(g)} +`}}catch{}if(t.ProgramFiles){u+=` + +Program files: ${JSON.stringify(t.ProgramFiles)} +`,u+=` + +Projects:: +`;let f=0,p=y=>{u+=` +Project '${y.projectName}' (${j9[y.projectKind]}) ${f} +`,u+=y.filesToString(!0),u+=` +----------------------------------------------- +`,f++};this.projectService.externalProjects.forEach(p),this.projectService.configuredProjects.forEach(p),this.projectService.inferredProjects.forEach(p)}}this.logger.msg(u,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${Ek(t)}`);return}this.writeMessage(t)}writeMessage(t){let r=N2e(t,this.logger,this.byteLength,this.host.newLine);this.host.write(r)}event(t,r){this.send(A2e(r,t))}doOutput(t,r,a,u,f,p){let y={seq:0,type:"response",command:r,request_seq:a,success:u,performanceData:f&&sXe(f)};if(u){let g;if(ds(t))y.body=t,g=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:x,...k}=t;y.body=k,g=x}else y.body=t;else y.body=t;g&&(y.metadata=g)}else B.assert(t===void 0);p&&(y.message=p),this.send(y)}semanticCheck(t,r){var a,u;let f=zc();(a=jn)==null||a.push(jn.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let p=QKe(r,t)?Id:r.getLanguageService().getSemanticDiagnostics(t).filter(y=>!!y.file);this.sendDiagnosticsEvent(t,r,p,"semanticDiag",f),(u=jn)==null||u.pop()}syntacticCheck(t,r){var a,u;let f=zc();(a=jn)==null||a.push(jn.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag",f),(u=jn)==null||u.pop()}suggestionCheck(t,r){var a,u;let f=zc();(a=jn)==null||a.push(jn.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag",f),(u=jn)==null||u.pop()}regionSemanticCheck(t,r,a){var u,f,p;let y=zc();(u=jn)==null||u.push(jn.Phase.Session,"regionSemanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let g;if(!this.shouldDoRegionCheck(t)||!(g=r.getLanguageService().getRegionSemanticDiagnostics(t,a))){(f=jn)==null||f.pop();return}this.sendDiagnosticsEvent(t,r,g.diagnostics,"regionSemanticDiag",y,g.spans),(p=jn)==null||p.pop()}shouldDoRegionCheck(t){var r;let a=(r=this.projectService.getScriptInfoForNormalizedPath(t))==null?void 0:r.textStorage.getLineInfo().getLineCount();return!!(a&&a>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(t,r,a,u,f,p){try{let y=B.checkDefined(r.getScriptInfo(t)),g=zc()-f,x={file:t,diagnostics:a.map(k=>ZKe(t,r,k)),spans:p?.map(k=>dy(k,y))};this.event(x,u),this.addDiagnosticsPerformanceData(t,u,g)}catch(y){this.logError(y,u)}}updateErrorCheck(t,r,a,u=!0){if(r.length===0)return;B.assert(!this.suppressDiagnosticEvents);let f=this.changeSeq,p=Math.min(a,200),y=0,g=()=>{if(y++,r.length>y)return t.delay("checkOne",p,k)},x=(T,A)=>{if(this.semanticCheck(T,A),this.changeSeq===f){if(this.getPreferences(T).disableSuggestions)return g();t.immediate("suggestionCheck",()=>{this.suggestionCheck(T,A),g()})}},k=()=>{if(this.changeSeq!==f)return;let T,A=r[y];if(fs(A)?A=this.toPendingErrorCheck(A):"ranges"in A&&(T=A.ranges,A=this.toPendingErrorCheck(A.file)),!A)return g();let{fileName:P,project:R}=A;if(hh(R),!!R.containsFile(P,u)&&(this.syntacticCheck(P,R),this.changeSeq===f)){if(R.projectService.serverMode!==0)return g();if(T)return t.immediate("regionSemanticCheck",()=>{let W=this.projectService.getScriptInfoForNormalizedPath(P);W&&this.regionSemanticCheck(P,R,T.map(z=>this.getRange({file:P,...z},W))),this.changeSeq===f&&t.immediate("semanticCheck",()=>x(P,R))});t.immediate("semanticCheck",()=>x(P,R))}};r.length>y&&this.changeSeq===f&&t.delay("checkOne",a,k)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(let a of r)a.getLanguageService(!1).cleanupSemanticCache(),a.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",as(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t);return a.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){let{file:r,project:a}=this.getFileAndProject(t),u=t.format==="2020"?"2020":"original";return a.getLanguageService().getEncodedSemanticClassifications(r,t,u)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){let r=this.getProject(t.projectFileName),a=xl(t.file);return{configFile:r&&r.hasConfigFile(a)?a:void 0,project:r}}getConfigFileDiagnostics(t,r,a){let u=r.getAllProjectErrors(),f=r.getLanguageService().getCompilerOptionsDiagnostics(),p=Di(Fo(u,f),y=>!!y.file&&y.file.fileName===t);return a?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(p):_i(p,y=>U9(y,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:ay(r.messageText,this.host.newLine),start:r.start,length:r.length,category:q2(r),code:r.code,source:r.source,startLocation:r.file&&p6(ma(r.file,r.start)),endLocation:r.file&&p6(ma(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:_i(r.relatedInformation,cae)}))}getCompilerOptionsDiagnostics(t){let r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(Di(r.getLanguageService().getCompilerOptionsDiagnostics(),a=>!a.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(a=>({message:ay(a.messageText,this.host.newLine),start:a.start,length:a.length,category:q2(a),code:a.code,source:a.source,startLocation:r&&r.positionToLineOffset(a.start),endLocation:r&&r.positionToLineOffset(a.start+a.length),reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated,relatedInformation:_i(a.relatedInformation,cae)}))}getDiagnosticsWorker(t,r,a,u){let{project:f,file:p}=this.getFileAndProject(t);if(r&&QKe(f,p))return Id;let y=f.getScriptInfoForNormalizedPath(p),g=a(f,p);return u?this.convertToDiagnosticsWithLinePosition(g,y):g.map(x=>ZKe(p,f,x))}getDefinition(t,r){let{file:a,project:u}=this.getFileAndProject(t),f=this.getPositionInFile(t,a),p=this.mapDefinitionInfoLocations(u.getLanguageService().getDefinitionAtPosition(a,f)||Id,u);return r?this.mapDefinitionInfo(p,u):p.map(tut.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(a=>{let u=nXe(a,r);return u?{...u,containerKind:a.containerKind,containerName:a.containerName,kind:a.kind,name:a.name,failedAliasResolution:a.failedAliasResolution,...a.unverified&&{unverified:a.unverified}}:a})}getDefinitionAndBoundSpan(t,r){let{file:a,project:u}=this.getFileAndProject(t),f=this.getPositionInFile(t,a),p=B.checkDefined(u.getScriptInfo(a)),y=u.getLanguageService().getDefinitionAndBoundSpan(a,f);if(!y||!y.definitions)return{definitions:Id,textSpan:void 0};let g=this.mapDefinitionInfoLocations(y.definitions,u),{textSpan:x}=y;return r?{definitions:this.mapDefinitionInfo(g,u),textSpan:dy(x,p)}:{definitions:g.map(tut.mapToOriginalLocation),textSpan:x}}findSourceDefinition(t){var r;let{file:a,project:u}=this.getFileAndProject(t),f=this.getPositionInFile(t,a),p=u.getLanguageService().getDefinitionAtPosition(a,f),y=this.mapDefinitionInfoLocations(p||Id,u).slice();if(this.projectService.serverMode===0&&(!Lt(y,P=>xl(P.fileName)!==a&&!P.isAmbient)||Lt(y,P=>!!P.failedAliasResolution))){let P=xY(q=>q.textSpan.start,kre(this.host.useCaseSensitiveFileNames));y?.forEach(q=>P.add(q));let R=u.getNoDtsResolutionProject(a),W=R.getLanguageService(),z=(r=W.getDefinitionAtPosition(a,f,!0,!1))==null?void 0:r.filter(q=>xl(q.fileName)!==a);if(Lt(z))for(let q of z){if(q.unverified){let G=T(q,u.getLanguageService().getProgram(),W.getProgram());if(Lt(G)){for(let $ of G)P.add($);continue}}P.add(q)}else{let q=y.filter(G=>xl(G.fileName)!==a&&G.isAmbient);for(let G of Lt(q)?q:k()){let $=x(G.fileName,a,R);if(!$)continue;let te=this.projectService.getOrCreateScriptInfoNotOpenedByClient($,R.currentDirectory,R.directoryStructureHost,!1);if(!te)continue;R.containsScriptInfo(te)||(R.addRoot(te),R.updateGraph());let ne=W.getProgram(),_e=B.checkDefined(ne.getSourceFile($));for(let ce of A(G.name,_e,ne))P.add(ce)}}y=as(P.values())}return y=y.filter(P=>!P.isAmbient&&!P.failedAliasResolution),this.mapDefinitionInfo(y,u);function x(P,R,W){var z,q,G;let $=tH(P);if($&&P.lastIndexOf(Zv)===$.topLevelNodeModulesIndex){let te=P.substring(0,$.packageRootIndex),ne=(z=u.getModuleResolutionCache())==null?void 0:z.getPackageJsonInfoCache(),_e=u.getCompilationSettings(),ce=t8(ts(te,u.getCurrentDirectory()),e8(ne,u,_e));if(!ce)return;let ae=Ute(ce,{moduleResolution:2},u,u.getModuleResolutionCache()),Ce=P.substring($.topLevelPackageNameIndex+1,$.packageRootIndex),he=i8(d5(Ce)),ue=u.toPath(P);if(ae&&Lt(ae,Ee=>u.toPath(Ee)===ue))return(q=W.resolutionCache.resolveSingleModuleNameWithoutWatching(he,R).resolvedModule)==null?void 0:q.resolvedFileName;{let Ee=P.substring($.packageRootIndex+1),ve=`${he}/${A_(Ee)}`;return(G=W.resolutionCache.resolveSingleModuleNameWithoutWatching(ve,R).resolvedModule)==null?void 0:G.resolvedFileName}}}function k(){let P=u.getLanguageService(),R=P.getProgram(),W=ip(R.getSourceFile(a),f);return(xc(W)||et(W))&&il(W.parent)&&qge(W,z=>{var q;if(z===W)return;let G=(q=P.getDefinitionAtPosition(a,z.getStart(),!0,!1))==null?void 0:q.filter($=>xl($.fileName)!==a&&$.isAmbient).map($=>({fileName:$.fileName,name:Hh(W)}));if(Lt(G))return G})||Id}function T(P,R,W){var z;let q=W.getSourceFile(P.fileName);if(!q)return;let G=ip(R.getSourceFile(a),f),$=R.getTypeChecker().getSymbolAtLocation(G),te=$&&bl($,276);if(!te)return;let ne=((z=te.propertyName)==null?void 0:z.text)||te.name.text;return A(ne,q,W)}function A(P,R,W){let z=ol.Core.getTopMostDeclarationNamesInFile(P,R);return ro(z,q=>{let G=W.getTypeChecker().getSymbolAtLocation(q),$=Y3(q);if(G&&$)return c6.createDefinitionInfo($,W.getTypeChecker(),G,$,!0)})}}getEmitOutput(t){let{file:r,project:a}=this.getFileAndProject(t);if(!a.shouldEmitFile(a.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let u=a.getLanguageService().getEmitOutput(r);return t.richResponse?{...u,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(u.diagnostics):u.diagnostics.map(f=>U9(f,!0))}:u}mapJSDocTagInfo(t,r,a){return t?t.map(u=>{var f;return{...u,text:a?this.mapDisplayParts(u.text,r):(f=u.text)==null?void 0:f.map(p=>p.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(a=>a.kind!=="linkName"?a:{...a,target:this.toFileSpan(a.target.fileName,a.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,a){return t.map(u=>({...u,documentation:this.mapDisplayParts(u.documentation,r),parameters:u.parameters.map(f=>({...f,documentation:this.mapDisplayParts(f.documentation,r)})),tags:this.mapJSDocTagInfo(u.tags,r,a)}))}mapDefinitionInfo(t,r){return t.map(a=>({...this.toFileSpanWithContext(a.fileName,a.textSpan,a.contextSpan,r),...a.unverified&&{unverified:a.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(B.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,a){let u=a.getLanguageService(),f=u.toLineColumnOffset(t,r.start),p=u.toLineColumnOffset(t,Vl(r));return{file:t,start:{line:f.line+1,offset:f.character+1},end:{line:p.line+1,offset:p.character+1}}}toFileSpanWithContext(t,r,a,u){let f=this.toFileSpan(t,r,u),p=a&&this.toFileSpan(t,a,u);return p?{...f,contextStart:p.start,contextEnd:p.end}:f}getTypeDefinition(t){let{file:r,project:a}=this.getFileAndProject(t),u=this.getPositionInFile(t,r),f=this.mapDefinitionInfoLocations(a.getLanguageService().getTypeDefinitionAtPosition(r,u)||Id,a);return this.mapDefinitionInfo(f,a)}mapImplementationLocations(t,r){return t.map(a=>{let u=nXe(a,r);return u?{...u,kind:a.kind,displayParts:a.displayParts}:a})}getImplementation(t,r){let{file:a,project:u}=this.getFileAndProject(t),f=this.getPositionInFile(t,a),p=this.mapImplementationLocations(u.getLanguageService().getImplementationAtPosition(a,f)||Id,u);return r?p.map(({fileName:y,textSpan:g,contextSpan:x})=>this.toFileSpanWithContext(y,g,x,u)):p.map(tut.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?Id:this.getDiagnosticsWorker(t,!1,(a,u)=>a.getLanguageService().getSyntacticDiagnostics(u),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{configFile:r,project:a}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,a,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(u,f)=>u.getLanguageService().getSemanticDiagnostics(f).filter(p=>!!p.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?Id:this.getDiagnosticsWorker(t,!0,(a,u)=>a.getLanguageService().getSuggestionDiagnostics(u),!!t.includeLinePosition)}getJsxClosingTag(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.getPositionInFile(t,r),f=a.getJsxClosingTagAtPosition(r,u);return f===void 0?void 0:{newText:f.newText,caretOffset:0}}getLinkedEditingRange(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.getPositionInFile(t,r),f=a.getLinkedEditingRangeAtPosition(r,u),p=this.projectService.getScriptInfoForNormalizedPath(r);if(!(p===void 0||f===void 0))return uBt(f,p)}getDocumentHighlights(t,r){let{file:a,project:u}=this.getFileAndProject(t),f=this.getPositionInFile(t,a),p=u.getLanguageService().getDocumentHighlights(a,f,t.filesToSearch);return p?r?p.map(({fileName:y,highlightSpans:g})=>{let x=u.getScriptInfo(y);return{file:y,highlightSpans:g.map(({textSpan:k,kind:T,contextSpan:A})=>({...L2e(k,A,x),kind:T}))}}):p:Id}provideInlayHints(t){let{file:r,project:a}=this.getFileAndProject(t),u=this.projectService.getScriptInfoForNormalizedPath(r);return a.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(p=>{let{position:y,displayParts:g}=p;return{...p,position:u.positionToLineOffset(y),displayParts:g?.map(({text:x,span:k,file:T})=>{if(k){B.assertIsDefined(T,"Target file should be defined together with its span.");let A=this.projectService.getScriptInfo(T);return{text:x,span:{start:A.positionToLineOffset(k.start),end:A.positionToLineOffset(k.start+k.length),file:T}}}else return{text:x}})}})}mapCode(t){var r;let a=this.getHostFormatOptions(),u=this.getHostPreferences(),{file:f,languageService:p}=this.getFileAndLanguageServiceForSyntacticOperation(t),y=this.projectService.getScriptInfoForNormalizedPath(f),g=(r=t.mapping.focusLocations)==null?void 0:r.map(k=>k.map(T=>{let A=y.lineOffsetToPosition(T.start.line,T.start.offset),P=y.lineOffsetToPosition(T.end.line,T.end.offset);return{start:A,length:P-A}})),x=p.mapCode(f,t.mapping.contents,g,a,u);return this.mapTextChangesToCodeEdits(x)}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,a,u){let{project:f}=this.getFileAndProjectWorker(t,r);return hh(f),{configFileName:f.getProjectName(),languageServiceDisabled:!f.languageServiceEnabled,fileNames:a?f.getFileNames(!1,u):void 0}}getRenameInfo(t){let{file:r,project:a}=this.getFileAndProject(t),u=this.getPositionInFile(t,r),f=this.getPreferences(r);return a.getLanguageService().getRenameInfo(r,u,f)}getProjects(t,r,a){let u,f;if(t.projectFileName){let p=this.getProject(t.projectFileName);p&&(u=[p])}else{let p=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(p)r||this.projectService.ensureDefaultProjectForFile(p);else return a?Id:(this.projectService.logErrorForScriptInfoNotFound(t.file),fb.ThrowNoProject());u=p.containingProjects,f=this.projectService.getSymlinkedProjects(p)}return u=Di(u,p=>p.languageServiceEnabled&&!p.isOrphan()),!a&&(!u||!u.length)&&!f?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),fb.ThrowNoProject()):f?{projects:u,symLinkedProjects:f}:u}getDefaultProject(t){if(t.projectFileName){let a=this.getProject(t.projectFileName);if(a)return a;if(!t.file)return fb.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){let a=xl(t.file),u=this.getPositionInFile(t,a),f=this.getProjects(t),p=this.getDefaultProject(t),y=this.getPreferences(a),g=this.mapRenameInfo(p.getLanguageService().getRenameInfo(a,u,y),B.checkDefined(this.projectService.getScriptInfo(a)));if(!g.canRename)return r?{info:g,locs:[]}:[];let x=iBt(f,p,{fileName:t.file,pos:u},!!t.findInStrings,!!t.findInComments,y,this.host.useCaseSensitiveFileNames);return r?{info:g,locs:this.toSpanGroups(x)}:x}mapRenameInfo(t,r){if(t.canRename){let{canRename:a,fileToRename:u,displayName:f,fullDisplayName:p,kind:y,kindModifiers:g,triggerSpan:x}=t;return{canRename:a,fileToRename:u,displayName:f,fullDisplayName:p,kind:y,kindModifiers:g,triggerSpan:dy(x,r)}}else return t}toSpanGroups(t){let r=new Map;for(let{fileName:a,textSpan:u,contextSpan:f,originalContextSpan:p,originalTextSpan:y,originalFileName:g,...x}of t){let k=r.get(a);k||r.set(a,k={file:a,locs:[]});let T=B.checkDefined(this.projectService.getScriptInfo(a));k.locs.push({...L2e(u,f,T),...x})}return as(r.values())}getReferences(t,r){let a=xl(t.file),u=this.getProjects(t),f=this.getPositionInFile(t,a),p=rBt(u,this.getDefaultProject(t),{fileName:t.file,pos:f},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return p;let y=this.getPreferences(a),g=this.getDefaultProject(t),x=g.getScriptInfoForNormalizedPath(a),k=g.getLanguageService().getQuickInfoAtPosition(a,f),T=k?p9(k.displayParts):"",A=k&&k.textSpan,P=A?x.positionToLineOffset(A.start).offset:0,R=A?x.getSnapshot().getText(A.start,Vl(A)):"";return{refs:vo(p,z=>z.references.map(q=>cXe(this.projectService,q,y))),symbolName:R,symbolStartOffset:P,symbolDisplayString:T}}getFileReferences(t,r){let a=this.getProjects(t),u=t.file,f=this.getPreferences(xl(u)),p=[],y=lae(this.host.useCaseSensitiveFileNames);return P2e(a,void 0,x=>{if(x.getCancellationToken().isCancellationRequested())return;let k=x.getLanguageService().getFileReferences(u);if(k)for(let T of k)y.has(T)||(p.push(T),y.add(T))}),r?{refs:p.map(x=>cXe(this.projectService,x,f)),symbolName:`"${t.file}"`}:p}openClientFile(t,r,a,u){this.projectService.openClientFileWithNormalizedPath(t,r,a,!1,u)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){let a=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,a)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:r,project:a}=this.getFileAndProject(t);return{file:r,languageService:a.getLanguageService(!1)}}getFileAndProjectWorker(t,r){let a=xl(t),u=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(a);return{file:a,project:u}}getOutliningSpans(t,r){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(t),f=u.getOutliningSpans(a);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(a);return f.map(y=>({textSpan:dy(y.textSpan,p),hintSpan:dy(y.hintSpan,p),bannerText:y.bannerText,autoCollapse:y.autoCollapse,kind:y.kind}))}else return f}getTodoComments(t){let{file:r,project:a}=this.getFileAndProject(t);return a.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.getPositionInFile(t,r);return a.getDocCommentTemplateAtPosition(r,u,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=t.onlyMultiLine,f=this.getPositionInFile(t,r);return a.getSpanOfEnclosingComment(r,f,u)}getIndentation(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.getPositionInFile(t,r),f=t.options?_6(t.options):this.getFormatOptions(r),p=a.getIndentationAtPosition(r,u,f);return{position:u,indentation:p}}getBreakpointStatement(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.getPositionInFile(t,r);return a.getBreakpointStatementAtPosition(r,u)}getNameOrDottedNameSpan(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.getPositionInFile(t,r);return a.getNameOrDottedNameSpan(r,u,u)}isValidBraceCompletion(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.getPositionInFile(t,r);return a.isValidBraceCompletionAtPosition(r,u,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){let{file:a,project:u}=this.getFileAndProject(t),f=this.projectService.getScriptInfoForNormalizedPath(a),p=u.getLanguageService().getQuickInfoAtPosition(a,this.getPosition(t,f));if(!p)return;let y=!!this.getPreferences(a).displayPartsForJSDoc;if(r){let g=p9(p.displayParts);return{kind:p.kind,kindModifiers:p.kindModifiers,start:f.positionToLineOffset(p.textSpan.start),end:f.positionToLineOffset(Vl(p.textSpan)),displayString:g,documentation:y?this.mapDisplayParts(p.documentation,u):p9(p.documentation),tags:this.mapJSDocTagInfo(p.tags,u,y)}}else return y?p:{...p,tags:this.mapJSDocTagInfo(p.tags,u,!1)}}getFormattingEditsForRange(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.projectService.getScriptInfoForNormalizedPath(r),f=u.lineOffsetToPosition(t.line,t.offset),p=u.lineOffsetToPosition(t.endLine,t.endOffset),y=a.getFormattingEditsForRange(r,f,p,this.getFormatOptions(r));if(y)return y.map(g=>this.convertTextChangeToCodeEdit(g,u))}getFormattingEditsForRangeFull(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=t.options?_6(t.options):this.getFormatOptions(r);return a.getFormattingEditsForRange(r,t.position,t.endPosition,u)}getFormattingEditsForDocumentFull(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=t.options?_6(t.options):this.getFormatOptions(r);return a.getFormattingEditsForDocument(r,u)}getFormattingEditsAfterKeystrokeFull(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=t.options?_6(t.options):this.getFormatOptions(r);return a.getFormattingEditsAfterKeystroke(r,t.position,t.key,u)}getFormattingEditsAfterKeystroke(t){let{file:r,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.projectService.getScriptInfoForNormalizedPath(r),f=u.lineOffsetToPosition(t.line,t.offset),p=this.getFormatOptions(r),y=a.getFormattingEditsAfterKeystroke(r,f,t.key,p);if(t.key===` +`&&(!y||y.length===0||Z9t(y,f))){let{lineText:g,absolutePosition:x}=u.textStorage.getAbsolutePositionAndLineText(t.line);if(g&&g.search("\\S")<0){let k=a.getIndentationAtPosition(r,f,p),T=0,A,P;for(A=0,P=g.length;A({start:u.positionToLineOffset(g.span.start),end:u.positionToLineOffset(Vl(g.span)),newText:g.newText?g.newText:""}))}getCompletions(t,r){let{file:a,project:u}=this.getFileAndProject(t),f=this.projectService.getScriptInfoForNormalizedPath(a),p=this.getPosition(t,f),y=u.getLanguageService().getCompletionsAtPosition(a,p,{...h2e(this.getPreferences(a)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},u.projectService.getFormatCodeOptions(a));if(y===void 0)return;if(r==="completions-full")return y;let g=t.prefix||"",x=ro(y.entries,T=>{if(y.isMemberCompletion||Ro(T.name.toLowerCase(),g.toLowerCase())){let A=T.replacementSpan?dy(T.replacementSpan,f):void 0;return{...T,replacementSpan:A,hasAction:T.hasAction||void 0,symbol:void 0}}});return r==="completions"?(y.metadata&&(x.metadata=y.metadata),x):{...y,optionalReplacementSpan:y.optionalReplacementSpan&&dy(y.optionalReplacementSpan,f),entries:x}}getCompletionEntryDetails(t,r){let{file:a,project:u}=this.getFileAndProject(t),f=this.projectService.getScriptInfoForNormalizedPath(a),p=this.getPosition(t,f),y=u.projectService.getFormatCodeOptions(a),g=!!this.getPreferences(a).displayPartsForJSDoc,x=ro(t.entryNames,k=>{let{name:T,source:A,data:P}=typeof k=="string"?{name:k,source:void 0,data:void 0}:k;return u.getLanguageService().getCompletionEntryDetails(a,p,T,y,A,this.getPreferences(a),P?ea(P,mBt):void 0)});return r?g?x:x.map(k=>({...k,tags:this.mapJSDocTagInfo(k.tags,u,!1)})):x.map(k=>({...k,codeActions:_i(k.codeActions,T=>this.mapCodeAction(T)),documentation:this.mapDisplayParts(k.documentation,u),tags:this.mapJSDocTagInfo(k.tags,u,g)}))}getCompileOnSaveAffectedFileList(t){let r=this.getProjects(t,!0,!0),a=this.projectService.getScriptInfo(t.file);return a?tBt(a,u=>this.projectService.getScriptInfoForPath(u),r,(u,f)=>{if(!u.compileOnSaveEnabled||!u.languageServiceEnabled||u.isOrphan())return;let p=u.getCompilationSettings();if(!(p.noEmit||Jd(f.fileName)&&!Q9t(p)))return{projectFileName:u.getProjectName(),fileNames:u.getCompileOnSaveAffectedFileList(f),projectUsesOutFile:!!p.outFile}}):Id}emitFile(t){let{file:r,project:a}=this.getFileAndProject(t);if(a||fb.ThrowNoProject(),!a.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let u=a.getScriptInfo(r),{emitSkipped:f,diagnostics:p}=a.emitFile(u,(y,g,x)=>this.host.writeFile(y,g,x));return t.richResponse?{emitSkipped:f,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(p):p.map(y=>U9(y,!0))}:!f}getSignatureHelpItems(t,r){let{file:a,project:u}=this.getFileAndProject(t),f=this.projectService.getScriptInfoForNormalizedPath(a),p=this.getPosition(t,f),y=u.getLanguageService().getSignatureHelpItems(a,p,t),g=!!this.getPreferences(a).displayPartsForJSDoc;if(y&&r){let x=y.applicableSpan;return{...y,applicableSpan:{start:f.positionToLineOffset(x.start),end:f.positionToLineOffset(x.start+x.length)},items:this.mapSignatureHelpItems(y.items,u,g)}}else return g||!y?y:{...y,items:y.items.map(x=>({...x,tags:this.mapJSDocTagInfo(x.tags,u,!1)}))}}toPendingErrorCheck(t){let r=xl(t),a=this.projectService.tryGetDefaultProjectForFile(r);return a&&{fileName:r,project:a}}getDiagnostics(t,r,a){this.suppressDiagnosticEvents||a.length>0&&this.updateErrorCheck(t,a,r)}change(t){let r=this.projectService.getScriptInfo(t.file);B.assert(!!r),r.textStorage.switchToScriptVersionCache();let a=r.lineOffsetToPosition(t.line,t.offset),u=r.lineOffsetToPosition(t.endLine,t.endOffset);a>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,Kb({span:{start:a,length:u-a},newText:t.insertString})))}reload(t){let r=xl(t.file),a=t.tmpfile===void 0?void 0:xl(t.tmpfile),u=this.projectService.getScriptInfoForNormalizedPath(r);u&&(this.changeSeq++,u.reloadFromFile(a))}saveToTmp(t,r){let a=this.projectService.getScriptInfo(t);a&&a.saveTo(r)}closeClientFile(t){if(!t)return;let r=$s(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return _i(t,a=>({text:a.text,kind:a.kind,kindModifiers:a.kindModifiers,spans:a.spans.map(u=>dy(u,r)),childItems:this.mapLocationNavigationBarItems(a.childItems,r),indent:a.indent}))}getNavigationBarItems(t,r){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(t),f=u.getNavigationBarItems(a);return f?r?this.mapLocationNavigationBarItems(f,this.projectService.getScriptInfoForNormalizedPath(a)):f:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(a=>dy(a,r)),nameSpan:t.nameSpan&&dy(t.nameSpan,r),childItems:_i(t.childItems,a=>this.toLocationNavigationTree(a,r))}}getNavigationTree(t,r){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(t),f=u.getNavigationTree(a);return f?r?this.toLocationNavigationTree(f,this.projectService.getScriptInfoForNormalizedPath(a)):f:void 0}getNavigateToItems(t,r){let a=this.getFullNavigateToItems(t);return r?vo(a,({project:u,navigateToItems:f})=>f.map(p=>{let y=u.getScriptInfo(p.fileName),g={name:p.name,kind:p.kind,kindModifiers:p.kindModifiers,isCaseSensitive:p.isCaseSensitive,matchKind:p.matchKind,file:p.fileName,start:y.positionToLineOffset(p.textSpan.start),end:y.positionToLineOffset(Vl(p.textSpan))};return p.kindModifiers&&p.kindModifiers!==""&&(g.kindModifiers=p.kindModifiers),p.containerName&&p.containerName.length>0&&(g.containerName=p.containerName),p.containerKind&&p.containerKind.length>0&&(g.containerKind=p.containerKind),g})):vo(a,({navigateToItems:u})=>u)}getFullNavigateToItems(t){let{currentFileOnly:r,searchValue:a,maxResultCount:u,projectFileName:f}=t;if(r){B.assertIsDefined(t.file);let{file:A,project:P}=this.getFileAndProject(t);return[{project:P,navigateToItems:P.getLanguageService().getNavigateToItems(a,u,A)}]}let p=this.getHostPreferences(),y=[],g=new Map;if(!t.file&&!f)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(A=>x(A));else{let A=this.getProjects(t);P2e(A,void 0,P=>x(P))}return y;function x(A){let P=A.getLanguageService().getNavigateToItems(a,u,void 0,A.isNonTsProject(),p.excludeLibrarySymbolsInNavTo),R=Di(P,W=>k(W)&&!uae(J8(W),A));R.length&&y.push({project:A,navigateToItems:R})}function k(A){let P=A.name;if(!g.has(P))return g.set(P,[A]),!0;let R=g.get(P);for(let W of R)if(T(W,A))return!1;return R.push(A),!0}function T(A,P){return A===P?!0:!A||!P?!1:A.containerKind===P.containerKind&&A.containerName===P.containerName&&A.fileName===P.fileName&&A.isCaseSensitive===P.isCaseSensitive&&A.kind===P.kind&&A.kindModifiers===P.kindModifiers&&A.matchKind===P.matchKind&&A.name===P.name&&A.textSpan.start===P.textSpan.start&&A.textSpan.length===P.textSpan.length}}getSupportedCodeFixes(t){if(!t)return Noe();if(t.file){let{file:a,project:u}=this.getFileAndProject(t);return u.getLanguageService().getSupportedCodeFixes(a)}let r=this.getProject(t.projectFileName);return r||fb.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let a,u;return this.isLocation(t)?a=f(t):u=this.getRange(t,r),B.checkDefined(a===void 0?u:a);function f(p){return p.position!==void 0?p.position:r.lineOffsetToPosition(p.line,p.offset)}}getRange(t,r){let{startPosition:a,endPosition:u}=this.getStartAndEndPosition(t,r);return{pos:a,end:u}}getApplicableRefactors(t){let{file:r,project:a}=this.getFileAndProject(t),u=a.getScriptInfoForNormalizedPath(r);return a.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,u),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions).map(p=>({...p,actions:p.actions.map(y=>({...y,range:y.range?{start:p6({line:y.range.start.line,character:y.range.start.offset}),end:p6({line:y.range.end.line,character:y.range.end.offset})}:void 0}))}))}getEditsForRefactor(t,r){let{file:a,project:u}=this.getFileAndProject(t),f=u.getScriptInfoForNormalizedPath(a),p=u.getLanguageService().getEditsForRefactor(a,this.getFormatOptions(a),this.extractPositionOrRange(t,f),t.refactor,t.action,this.getPreferences(a),t.interactiveRefactorArguments);if(p===void 0)return{edits:[]};if(r){let{renameFilename:y,renameLocation:g,edits:x}=p,k;if(y!==void 0&&g!==void 0){let T=u.getScriptInfoForNormalizedPath(xl(y));k=O2e(qN(T.getSnapshot()),y,g,x)}return{renameLocation:k,renameFilename:y,edits:this.mapTextChangesToCodeEdits(x),notApplicableReason:p.notApplicableReason}}return p}getMoveToRefactoringFileSuggestions(t){let{file:r,project:a}=this.getFileAndProject(t),u=a.getScriptInfoForNormalizedPath(r);return a.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,u),this.getPreferences(r))}getPasteEdits(t){let{file:r,project:a}=this.getFileAndProject(t),u=t.copiedFrom?{file:t.copiedFrom.file,range:t.copiedFrom.spans.map(p=>this.getRange({file:t.copiedFrom.file,startLine:p.start.line,startOffset:p.start.offset,endLine:p.end.line,endOffset:p.end.offset},a.getScriptInfoForNormalizedPath(xl(t.copiedFrom.file))))}:void 0,f=a.getLanguageService().getPasteEdits({targetFile:r,pastedText:t.pastedText,pasteLocations:t.pasteLocations.map(p=>this.getRange({file:r,startLine:p.start.line,startOffset:p.start.offset,endLine:p.end.line,endOffset:p.end.offset},a.getScriptInfoForNormalizedPath(r))),copiedFrom:u,preferences:this.getPreferences(r)},this.getFormatOptions(r));return f&&this.mapPasteEditsAction(f)}organizeImports(t,r){B.assert(t.scope.type==="file");let{file:a,project:u}=this.getFileAndProject(t.scope.args),f=u.getLanguageService().organizeImports({fileName:a,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(a),this.getPreferences(a));return r?this.mapTextChangesToCodeEdits(f):f}getEditsForFileRename(t,r){let a=xl(t.oldFilePath),u=xl(t.newFilePath),f=this.getHostFormatOptions(),p=this.getHostPreferences(),y=new Set,g=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(x=>{let k=x.getLanguageService().getEditsForFileRename(a,u,f,p),T=[];for(let A of k)y.has(A.fileName)||(g.push(A),T.push(A.fileName));for(let A of T)y.add(A)}),r?g.map(x=>this.mapTextChangeToCodeEdit(x)):g}getCodeFixes(t,r){let{file:a,project:u}=this.getFileAndProject(t),f=u.getScriptInfoForNormalizedPath(a),{startPosition:p,endPosition:y}=this.getStartAndEndPosition(t,f),g;try{g=u.getLanguageService().getCodeFixesAtPosition(a,p,y,t.errorCodes,this.getFormatOptions(a),this.getPreferences(a))}catch(x){let k=u.getLanguageService(),T=[...k.getSyntacticDiagnostics(a),...k.getSemanticDiagnostics(a),...k.getSuggestionDiagnostics(a)].map(P=>sM(p,y-p,P.start,P.length)&&P.code),A=t.errorCodes.find(P=>!T.includes(P));throw A!==void 0&&(x.message=`BADCLIENT: Bad error code, ${A} not found in range ${p}..${y} (found: ${T.join(", ")}); could have caused this error: +${x.message}`),x}return r?g.map(x=>this.mapCodeFixAction(x)):g}getCombinedCodeFix({scope:t,fixId:r},a){B.assert(t.type==="file");let{file:u,project:f}=this.getFileAndProject(t.args),p=f.getLanguageService().getCombinedCodeFix({type:"file",fileName:u},r,this.getFormatOptions(u),this.getPreferences(u));return a?{changes:this.mapTextChangesToCodeEdits(p.changes),commands:p.commands}:p}applyCodeActionCommand(t){let r=t.command;for(let a of II(r)){let{file:u,project:f}=this.getFileAndProject(a);f.getLanguageService().applyCodeActionCommand(a,this.getFormatOptions(u)).then(p=>{},p=>{})}return{}}getStartAndEndPosition(t,r){let a,u;return t.startPosition!==void 0?a=t.startPosition:(a=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=a),t.endPosition!==void 0?u=t.endPosition:(u=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=u),{startPosition:a,endPosition:u}}mapCodeAction({description:t,changes:r,commands:a}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:a}}mapCodeFixAction({fixName:t,description:r,changes:a,commands:u,fixId:f,fixAllDescription:p}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(a),commands:u,fixId:f,fixAllDescription:p}}mapPasteEditsAction({edits:t,fixId:r}){return{edits:this.mapTextChangesToCodeEdits(t),fixId:r}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){let r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),B.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(a=>lBt(a,r))}:fBt(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(t),f=this.projectService.getScriptInfoForNormalizedPath(a),p=this.getPosition(t,f),y=u.getBraceMatchingAtPosition(a,p);return y?r?y.map(g=>dy(g,f)):y:void 0}getDiagnosticsForProject(t,r,a){if(this.suppressDiagnosticEvents)return;let{fileNames:u,languageServiceDisabled:f}=this.getProjectInfoWorker(a,void 0,!0,!0);if(f)return;let p=u.filter(W=>!W.includes("lib.d.ts"));if(p.length===0)return;let y=[],g=[],x=[],k=[],T=xl(a),A=this.projectService.ensureDefaultProjectForFile(T);for(let W of p)this.getCanonicalFileName(W)===this.getCanonicalFileName(a)?y.push(W):this.projectService.getScriptInfo(W).isScriptOpen()?g.push(W):Jd(W)?k.push(W):x.push(W);let R=[...y,...g,...x,...k].map(W=>({fileName:W,project:A}));this.updateErrorCheck(t,R,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){let{locations:a}=t,{file:u,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(t),p=B.checkDefined(this.projectService.getScriptInfo(u));return _i(a,y=>{let g=this.getPosition(y,p),x=f.getSmartSelectionRange(u,g);return r?this.mapSelectionRange(x,p):x})}toggleLineComment(t,r){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(t),f=this.projectService.getScriptInfo(a),p=this.getRange(t,f),y=u.toggleLineComment(a,p);if(r){let g=this.projectService.getScriptInfoForNormalizedPath(a);return y.map(x=>this.convertTextChangeToCodeEdit(x,g))}return y}toggleMultilineComment(t,r){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(t),f=this.projectService.getScriptInfoForNormalizedPath(a),p=this.getRange(t,f),y=u.toggleMultilineComment(a,p);if(r){let g=this.projectService.getScriptInfoForNormalizedPath(a);return y.map(x=>this.convertTextChangeToCodeEdit(x,g))}return y}commentSelection(t,r){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(t),f=this.projectService.getScriptInfoForNormalizedPath(a),p=this.getRange(t,f),y=u.commentSelection(a,p);if(r){let g=this.projectService.getScriptInfoForNormalizedPath(a);return y.map(x=>this.convertTextChangeToCodeEdit(x,g))}return y}uncommentSelection(t,r){let{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(t),f=this.projectService.getScriptInfoForNormalizedPath(a),p=this.getRange(t,f),y=u.uncommentSelection(a,p);if(r){let g=this.projectService.getScriptInfoForNormalizedPath(a);return y.map(x=>this.convertTextChangeToCodeEdit(x,g))}return y}mapSelectionRange(t,r){let a={textSpan:dy(t.textSpan,r)};return t.parent&&(a.parent=this.mapSelectionRange(t.parent,r)),a}getScriptInfoFromProjectService(t){let r=xl(t),a=this.projectService.getScriptInfoForNormalizedPath(r);return a||(this.projectService.logErrorForScriptInfoNotFound(r),fb.ThrowNoProject())}toProtocolCallHierarchyItem(t){let r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:dy(t.span,r),selectionSpan:dy(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){let r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(a=>dy(a,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(a=>dy(a,r))}}prepareCallHierarchy(t){let{file:r,project:a}=this.getFileAndProject(t),u=this.projectService.getScriptInfoForNormalizedPath(r);if(u){let f=this.getPosition(t,u),p=a.getLanguageService().prepareCallHierarchy(r,f);return p&&zre(p,y=>this.toProtocolCallHierarchyItem(y))}}provideCallHierarchyIncomingCalls(t){let{file:r,project:a}=this.getFileAndProject(t),u=this.getScriptInfoFromProjectService(r);return a.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,u)).map(p=>this.toProtocolCallHierarchyIncomingCall(p))}provideCallHierarchyOutgoingCalls(t){let{file:r,project:a}=this.getFileAndProject(t),u=this.getScriptInfoFromProjectService(r);return a.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,u)).map(p=>this.toProtocolCallHierarchyOutgoingCall(p,u))}getCanonicalFileName(t){let r=this.host.useCaseSensitiveFileNames?t:rx(t);return $s(r)}exit(){}notRequired(t){return t&&this.doOutput(void 0,t.command,t.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(t){return{response:t,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){B.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){B.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r,a){let u=this.performanceData;try{return this.performanceData=a,this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t),this.performanceData=u}}executeCommand(t){let r=this.handlers.get(t.command);if(r){let a=this.executeWithRequestId(t.seq,()=>r(t),void 0);return this.projectService.enableRequestedPlugins(),a}else return this.logger.msg(`Unrecognized JSON command:${Ek(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,void 0,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,a,u,f,p,y,g;this.gcTimer.scheduleCollect();let x,k=this.performanceData;this.logger.hasLevel(2)&&(x=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${y8(this.toStringMessage(t))}`));let T,A;try{T=this.parseMessage(t),A=T.arguments&&T.arguments.file?T.arguments:void 0,(r=jn)==null||r.instant(jn.Phase.Session,"request",{seq:T.seq,command:T.command}),(a=jn)==null||a.push(jn.Phase.Session,"executeCommand",{seq:T.seq,command:T.command},!0);let{response:P,responseRequired:R,performanceData:W}=this.executeCommand(T);if((u=jn)==null||u.pop(),this.logger.hasLevel(2)){let z=Y9t(this.hrtime(x)).toFixed(4);R?this.logger.perftrc(`${T.seq}::${T.command}: elapsed time (in milliseconds) ${z}`):this.logger.perftrc(`${T.seq}::${T.command}: async elapsed time (in milliseconds) ${z}`)}(f=jn)==null||f.instant(jn.Phase.Session,"response",{seq:T.seq,command:T.command,success:!!P}),P?this.doOutput(P,T.command,T.seq,!0,W):R&&this.doOutput(void 0,T.command,T.seq,!1,W,"No content available.")}catch(P){if((p=jn)==null||p.popAll(),P instanceof h3){(y=jn)==null||y.instant(jn.Phase.Session,"commandCanceled",{seq:T?.seq,command:T?.command}),this.doOutput({canceled:!0},T.command,T.seq,!0,this.performanceData);return}this.logErrorWorker(P,this.toStringMessage(t),A),(g=jn)==null||g.instant(jn.Phase.Session,"commandError",{seq:T?.seq,command:T?.command,message:P.message}),this.doOutput(void 0,T?T.command:"unknown",T?T.seq:0,!1,this.performanceData,"Error processing request. "+P.message+` +`+P.stack)}finally{this.performanceData=k}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function sXe(e){let t=e.diagnosticsDuration&&as(e.diagnosticsDuration,([r,a])=>({...a,file:r}));return{...e,diagnosticsDuration:t}}function dy(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Vl(e))}}function L2e(e,t,r){let a=dy(e,r),u=t&&dy(t,r);return u?{...a,contextStart:u.start,contextEnd:u.end}:a}function lBt(e,t){return{start:aXe(t,e.span.start),end:aXe(t,Vl(e.span)),newText:e.newText}}function aXe(e,t){return T2e(e)?dBt(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function uBt(e,t){let r=e.ranges.map(a=>({start:t.positionToLineOffset(a.start),end:t.positionToLineOffset(a.start+a.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function dBt(e){return{line:e.line+1,offset:e.character+1}}function fBt(e){B.assert(e.textChanges.length===1);let t=Ta(e.textChanges);return B.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function O2e(e,t,r,a){let u=_Bt(e,t,a),{line:f,character:p}=NP(OI(u),r);return{line:f+1,offset:p+1}}function _Bt(e,t,r){for(let{fileName:a,textChanges:u}of r)if(a===t)for(let f=u.length-1;f>=0;f--){let{newText:p,span:{start:y,length:g}}=u[f];e=e.slice(0,y)+p+e.slice(y+g)}return e}function cXe(e,{fileName:t,textSpan:r,contextSpan:a,isWriteAccess:u,isDefinition:f},{disableLineTextInReferences:p}){let y=B.checkDefined(e.getScriptInfo(t)),g=L2e(r,a,y),x=p?void 0:pBt(y,g);return{file:t,...g,lineText:x,isWriteAccess:u,isDefinition:f}}function pBt(e,t){let r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Vl(r)).replace(/\r|\n/g,"")}function mBt(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var m6=4,F2e=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(F2e||{}),hBt=class{constructor(){this.goSubtree=!0,this.lineIndex=new J9,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new h6,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let a=J9.linesFromText(e).lines;a.length>1&&a[a.length-1]===""&&a.pop();let u,f;for(let y=this.endBranch.length-1;y>=0;y--)this.endBranch[y].updateCounts(),this.endBranch[y].charCount()===0&&(f=this.endBranch[y],y>0?u=this.endBranch[y-1]:u=this.branchNode);f&&u.remove(f);let p=this.startPath[this.startPath.length-1];if(a.length>0)if(p.text=a[0],a.length>1){let y=new Array(a.length-1),g=p;for(let T=1;T=0;){let T=this.startPath[x];y=T.insertAt(g,y),x--,g=T}let k=y.length;for(;k>0;){let T=new h6;T.add(this.lineIndex.root),y=T.insertAt(this.lineIndex.root,y),k=y.length,this.lineIndex.root=T}this.lineIndex.root.updateCounts()}else for(let y=this.startPath.length-2;y>=0;y--)this.startPath[y].updateCounts();else{this.startPath[this.startPath.length-2].remove(p);for(let g=this.startPath.length-2;g>=0;g--)this.startPath[g].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,a,u){let f=this.stack[this.stack.length-1];this.state===2&&u===1&&(this.state=1,this.branchNode=f,this.lineCollectionAtBranch=r);let p;function y(g){return g.isLeaf()?new Uq(""):new h6}switch(u){case 0:this.goSubtree=!1,this.state!==4&&f.add(r);break;case 1:this.state===4?this.goSubtree=!1:(p=y(r),f.add(p),this.startPath.push(p));break;case 2:this.state!==4?(p=y(r),f.add(p),this.startPath.push(p)):r.isLeaf()||(p=y(r),f.add(p),this.endBranch.push(p));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(p=y(r),f.add(p),this.endBranch.push(p));break;case 5:this.goSubtree=!1,this.state!==1&&f.add(r);break}this.goSubtree&&this.stack.push(p)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},gBt=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return aM(_f(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},dae=class EK{constructor(){this.changes=[],this.versions=new Array(EK.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%EK.maxVersions}currentVersionToIndex(){return this.currentVersion%EK.maxVersions}edit(t,r,a){this.changes.push(new gBt(t,r,a)),(this.changes.length>EK.changeNumberThreshold||r>EK.changeLengthThreshold||a&&a.length>EK.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(let a of this.changes)r=r.edit(a.pos,a.deleteLen,a.insertedText);t=new lXe(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=EK.maxVersions&&(this.minVersion=this.currentVersion-EK.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){let r=this._getSnapshot().index,{lineText:a,absolutePosition:u}=r.lineNumberToInfo(t+1),f=a!==void 0?a.length:r.absolutePositionOfStartOfLine(t+2)-u;return _f(u,f)}getTextChangesBetweenVersions(t,r){if(t=this.minVersion){let a=[];for(let u=t+1;u<=r;u++){let f=this.versions[this.versionToIndex(u)];for(let p of f.changesSincePreviousVersion)a.push(p.getTextChangeRange())}return Dme(a)}else return;else return rz}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let r=new EK,a=new lXe(0,r,new J9);r.versions[r.currentVersion]=a;let u=J9.linesFromText(t);return a.index.load(u.lines),r}};dae.changeNumberThreshold=8,dae.changeLengthThreshold=256,dae.maxVersions=8;var fae=dae,lXe=class Vhi{constructor(t,r,a,u=Id){this.version=t,this.cache=r,this.index=a,this.changesSincePreviousVersion=u}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof Vhi&&this.cache===t.cache)return this.version<=t.version?rz:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},J9=class oYt{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{oneBasedLine:r,zeroBasedColumn:a}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:a+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){let r=this.getLineCount();if(t<=r){let{position:a,leaf:u}=this.root.lineNumberToInfo(t,0);return{absolutePosition:a,lineText:u&&u.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let r=[];for(let a=0;a0&&t{a=a.concat(p.text.substring(u,u+f))}}),a}getLength(){return this.root.charCount()}every(t,r,a){a||(a=this.root.charCount());let u={goSubtree:!0,done:!1,leaf(f,p,y){t(y,f,p)||(this.done=!0)}};return this.walk(r,a-r,u),!u.done}edit(t,r,a){if(this.root.charCount()===0)return B.assert(r===0),a!==void 0?(this.load(oYt.linesFromText(a).lines),this):void 0;{let u;if(this.checkEdits){let y=this.getText(0,this.root.charCount());u=y.slice(0,t)+a+y.slice(t+r)}let f=new hBt,p=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let y=this.getText(t,1);a?a=y+a:a=y,r=0,p=!0}else if(r>0){let y=t+r,{zeroBasedColumn:g,lineText:x}=this.positionToColumnAndLineText(y);g===0&&(r+=x.length,a=a?a+x:x)}if(this.root.walk(t,r,f),f.insertLines(a,p),this.checkEdits){let y=f.lineIndex.getText(0,f.lineIndex.getLength());B.assert(u===y,"buffer edit mismatch")}return f.lineIndex}}static buildTreeFromBottom(t){if(t.length0?a[u]=f:a.pop(),{lines:a,lineMap:r}}},h6=class sYt{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,a,u,f){return a.pre&&a.pre(t,r,this.children[u],this,f),a.goSubtree?(this.children[u].walk(t,r,a),a.post&&a.post(t,r,this.children[u],this,f)):a.goSubtree=!0,a.done}skipChild(t,r,a,u,f){u.pre&&!u.done&&(u.pre(t,r,this.children[a],this,f),u.goSubtree=!0)}walk(t,r,a){let u=0,f=this.children[u].charCount(),p=t;for(;p>=f;)this.skipChild(p,r,u,a,0),p-=f,u++,f=this.children[u].charCount();if(p+r<=f){if(this.execWalk(p,r,a,u,2))return}else{if(this.execWalk(p,f-p,a,u,1))return;let y=r-(f-p);for(u++,f=this.children[u].charCount();y>f;){if(this.execWalk(0,f,a,u,3))return;y-=f,u++,f=this.children[u].charCount()}if(y>0&&this.execWalk(0,y,a,u,4))return}if(a.pre){let y=this.children.length;if(ur)return f.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:f.text}:f.charOffsetToLineInfo(t,r);r-=f.charCount(),t+=f.lineCount()}let a=this.lineCount();if(a===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let u=B.checkDefined(this.lineNumberToInfo(a,0).leaf);return{oneBasedLine:a,zeroBasedColumn:u.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(let a of this.children){let u=a.lineCount();if(u>=t)return a.isLeaf()?{position:r,leaf:a}:a.lineNumberToInfo(t,r);t-=u,r+=a.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r,a=this.children.length;t++;let u=t;if(t=0;A--)g[A].children.length===0&&g.pop()}p&&g.push(p),this.updateCounts();for(let k=0;k{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:u,reject:f})});return this.installer.send(r),a}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,a){let u=qTe(t,r,a);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${Ek(u)}`),this.activeRequestCount0?this.activeRequestCount--:B.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let u=this.requestQueue.dequeue();if(this.requestMap.get(u.projectName)===u){this.requestMap.delete(u.projectName),this.scheduleRequest(u);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${u.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case M5:this.projectService.watchTypingLocations(t);break;default:}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${Ek(t)}`),this.installer.send(t)},Hhi.requestDelayMillis,`${t.projectName}::${t.kind}`)}};uXe.requestDelayMillis=100;var dXe=uXe,fXe={};_(fXe,{ActionInvalidate:()=>oJ,ActionPackageInstalled:()=>sJ,ActionSet:()=>rJ,ActionWatchTypingLocations:()=>M5,Arguments:()=>Wne,AutoImportProviderProject:()=>d2e,AuxiliaryProject:()=>l2e,CharRangeSection:()=>F2e,CloseFileWatcherEvent:()=>tae,CommandNames:()=>eXe,ConfigFileDiagEvent:()=>Xse,ConfiguredProject:()=>f2e,ConfiguredProjectLoadKind:()=>y2e,CreateDirectoryWatcherEvent:()=>eae,CreateFileWatcherEvent:()=>Zse,Errors:()=>fb,EventBeginInstallTypes:()=>Bne,EventEndInstallTypes:()=>jne,EventInitializationFailed:()=>tSe,EventTypesRegistry:()=>Rne,ExternalProject:()=>Use,GcTimer:()=>ZTe,InferredProject:()=>c2e,LargeFileReferencedEvent:()=>Kse,LineIndex:()=>J9,LineLeaf:()=>Uq,LineNode:()=>h6,LogLevel:()=>UTe,Msg:()=>JTe,OpenFileInfoTelemetryEvent:()=>_2e,Project:()=>sA,ProjectInfoTelemetryEvent:()=>Qse,ProjectKind:()=>j9,ProjectLanguageServiceStateEvent:()=>Yse,ProjectLoadingFinishEvent:()=>Gse,ProjectLoadingStartEvent:()=>$se,ProjectService:()=>w2e,ProjectsUpdatedInBackgroundEvent:()=>zq,ScriptInfo:()=>n2e,ScriptVersionCache:()=>fae,Session:()=>oXe,TextStorage:()=>i2e,ThrottledOperations:()=>QTe,TypingsInstallerAdapter:()=>dXe,allFilesAreJsOrDts:()=>o2e,allRootFilesAreJsOrDts:()=>r2e,asNormalizedPath:()=>EKe,convertCompilerOptions:()=>Vq,convertFormatOptions:()=>_6,convertScriptKindName:()=>nae,convertTypeAcquisition:()=>m2e,convertUserPreferences:()=>h2e,convertWatchOptions:()=>H9,countEachFileTypes:()=>W9,createInstallTypingsRequest:()=>qTe,createModuleSpecifierCache:()=>D2e,createNormalizedPathMap:()=>DKe,createPackageJsonCache:()=>I2e,createSortedArray:()=>YTe,emptyArray:()=>Id,findArgument:()=>TBe,formatDiagnosticToProtocol:()=>U9,formatMessage:()=>N2e,getBaseConfigFileName:()=>Hse,getLocationInNewDocument:()=>O2e,hasArgument:()=>wBe,hasNoTypeScriptSource:()=>s2e,indent:()=>y8,isBackgroundProject:()=>V9,isConfigFile:()=>T2e,isConfiguredProject:()=>xS,isDynamicFileName:()=>B9,isExternalProject:()=>z9,isInferredProject:()=>f6,isInferredProjectName:()=>$Te,isProjectDeferredClose:()=>Wq,makeAutoImportProviderProjectName:()=>KTe,makeAuxiliaryProjectName:()=>XTe,makeInferredProjectName:()=>GTe,maxFileSize:()=>qse,maxProgramSizeForNonTsFiles:()=>Jse,normalizedPathToPath:()=>d6,nowString:()=>EBe,nullCancellationToken:()=>YKe,nullTypingsInstaller:()=>Hq,protocol:()=>e2e,stringifyIndented:()=>Ek,toEvent:()=>A2e,toNormalizedPath:()=>xl,tryConvertScriptKindName:()=>iae,typingsInstaller:()=>HTe,updateProjectIfDirty:()=>hh}),typeof console<"u"&&(B.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:return console.log(t);case 4:return console.log(t)}}})})({get exports(){return Mhi},set exports(l){Mhi=l,typeof iut<"u"&&iut.exports&&(iut.exports=l)}})});function l7(l,i=0){return l[l.length-(1+i)]}function Qhi(l){if(l.length===0)throw new Error("Invalid tail call");return[l.slice(0,l.length-1),l[l.length-1]]}function Op(l,i,o=(s,c)=>s===c){if(l===i)return!0;if(!l||!i||l.length!==i.length)return!1;for(let s=0,c=l.length;so(l[s],i))}function uMi(l,i){let o=0,s=l-1;for(;o<=s;){let c=(o+s)/2|0,_=i(c);if(_<0)o=c+1;else if(_>0)s=c-1;else return c}return-(o+1)}function cut(l,i,o){if(l=l|0,l>=i.length)throw new TypeError("invalid index");let s=i[Math.floor(i.length*Math.random())],c=[],_=[],h=[];for(let b of i){let w=o(b,s);w<0?c.push(b):w>0?_.push(b):h.push(b)}return l!!i)}function dYt(l){let i=0;for(let o=0;o0}function PL(l,i=o=>o){let o=new Set;return l.filter(s=>{let c=i(s);return o.has(c)?!1:(o.add(c),!0)})}function L4e(l,i){return l.length>0?l[0]:i}function sI(l,i){let o=typeof i=="number"?l:0;typeof i=="number"?o=l:(o=0,i=l);let s=[];if(o<=i)for(let c=o;ci;c--)s.push(c);return s}function ide(l,i,o){let s=l.slice(0,i),c=l.slice(i);return s.concat(o,c)}function fut(l,i){let o=l.indexOf(i);o>-1&&(l.splice(o,1),l.unshift(i))}function Qit(l,i){let o=l.indexOf(i);o>-1&&(l.splice(o,1),l.push(i))}function Zit(l,i){for(let o of i)l.push(o)}function O4e(l){return Array.isArray(l)?l:[l]}function dMi(l,i,o){let s=tgi(l,i),c=l.length,_=o.length;l.length=c+_;for(let h=c-1;h>=s;h--)l[h+_]=l[h];for(let h=0;h<_;h++)l[h+s]=o[h]}function fYt(l,i,o,s){let c=tgi(l,i),_=l.splice(c,o);return _===void 0&&(_=[]),dMi(l,c,s),_}function tgi(l,i){return i<0?Math.max(i+l.length,0):Math.min(i,l.length)}function Sw(l,i){return(o,s)=>i(l(o),l(s))}function igi(...l){return(i,o)=>{for(let s of l){let c=s(i,o);if(!Yit.isNeitherLessOrGreaterThan(c))return c}return Yit.neitherLessOrGreaterThan}}function _ut(l){return(i,o)=>-l(i,o)}var Yit,rP,ngi,nP,wG,lut,su=Ht(()=>{(function(l){function i(_){return _<0}l.isLessThan=i;function o(_){return _<=0}l.isLessThanOrEqual=o;function s(_){return _>0}l.isGreaterThan=s;function c(_){return _===0}l.isNeitherLessOrGreaterThan=c,l.greaterThan=1,l.lessThan=-1,l.neitherLessOrGreaterThan=0})(Yit||(Yit={}));rP=(l,i)=>l-i,ngi=(l,i)=>rP(l?1:0,i?1:0);nP=class{constructor(i){this.items=i,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(i){let o=this.firstIdx;for(;o=0&&i(this.items[o]);)o--;let s=o===this.lastIdx?null:this.items.slice(o+1,this.lastIdx+1);return this.lastIdx=o,s}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){let i=this.items[this.firstIdx];return this.firstIdx++,i}takeCount(i){let o=this.items.slice(this.firstIdx,this.firstIdx+i);return this.firstIdx+=i,o}},wG=class l{constructor(i){this.iterate=i}toArray(){let i=[];return this.iterate(o=>(i.push(o),!0)),i}filter(i){return new l(o=>this.iterate(s=>i(s)?o(s):!0))}map(i){return new l(o=>this.iterate(s=>o(i(s))))}findLast(i){let o;return this.iterate(s=>(i(s)&&(o=s),!0)),o}findLastMaxBy(i){let o,s=!0;return this.iterate(c=>((s||Yit.isGreaterThan(i(c,o)))&&(s=!1,o=c),!0)),o}};wG.empty=new wG(l=>{});lut=class l{constructor(i){this._indexMap=i}static createSortPermutation(i,o){let s=Array.from(i.keys()).sort((c,_)=>o(i[c],i[_]));return new l(s)}apply(i){return i.map((o,s)=>i[this._indexMap[s]])}inverse(){let i=this._indexMap.slice();for(let o=0;o"u"}function IF(l){return!qA(l)}function qA(l){return E2(l)||l===null}function Xd(l,i){if(!l)throw new Error(i?`Unexpected type, expected '${i}'`:"Unexpected type")}function Vj(l){if(qA(l))throw new Error("Assertion Failed: argument is undefined or null");return l}function nde(l){return typeof l=="function"}function ogi(l,i){let o=Math.min(l.length,i.length);for(let s=0;s{});function Hj(l){if(!l||typeof l!="object"||l instanceof RegExp)return l;let i=Array.isArray(l)?[]:{};return Object.entries(l).forEach(([o,s])=>{i[o]=s&&typeof s=="object"?Hj(s):s}),i}function sgi(l){if(!l||typeof l!="object")return l;let i=[l];for(;i.length>0;){let o=i.shift();Object.freeze(o);for(let s in o)if(agi.call(o,s)){let c=o[s];typeof c=="object"&&!Object.isFrozen(c)&&!rgi(c)&&i.push(c)}}return l}function mut(l,i){return pYt(l,i,new Set)}function pYt(l,i,o){if(qA(l))return l;let s=i(l);if(typeof s<"u")return s;if(Array.isArray(l)){let c=[];for(let _ of l)c.push(pYt(_,i,o));return c}if(OC(l)){if(o.has(l))throw new Error("Cannot clone recursive data-structure");o.add(l);let c={};for(let _ in l)agi.call(l,_)&&(c[_]=pYt(l[_],i,o));return o.delete(l),c}return l}function vNe(l,i,o=!0){return OC(l)?(OC(i)&&Object.keys(i).forEach(s=>{s in l?o&&(OC(l[s])&&OC(i[s])?vNe(l[s],i[s],o):l[s]=i[s]):l[s]=i[s]}),l):i}function D2(l,i){if(l===i)return!0;if(l==null||i===null||i===void 0||typeof l!=typeof i||typeof l!="object"||Array.isArray(l)!==Array.isArray(i))return!1;let o,s;if(Array.isArray(l)){if(l.length!==i.length)return!1;for(o=0;ofunction(){let _=Array.prototype.slice.call(arguments,0);return i(c,_)},s={};for(let c of l)s[c]=o(c);return s}var agi,oP=Ht(()=>{cm();agi=Object.prototype.hasOwnProperty});function lgi(l,i){let o;return i.length===0?o=l:o=l.replace(/\{(\d+)\}/g,(s,c)=>{let _=c[0],h=i[_],b=s;return typeof h=="string"?b=h:(typeof h=="number"||typeof h=="boolean"||h===void 0||h===null)&&(b=String(h)),b}),pMi&&(o="\uFF3B"+o.replace(/[aouei]/g,"$&$&")+"\uFF3D"),o}function de(l,i,...o){return lgi(i,o)}function yu(l,i,...o){let s=lgi(i,o);return{value:s,original:s}}var pMi,Fs=Ht(()=>{pMi=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0});function but(){if(!fgi){fgi=!0;let l=new Uint8Array(2);l[0]=1,l[1]=2,dgi=new Uint16Array(l.buffer)[0]===513}return dgi}var mYt,hYt,M4e,tnt,int,ent,mMi,_gi,yYt,hMi,vYt,gMi,pgi,hut,gut,ugi,yMi,TG,gle,tL,mgi,vMi,gYt,Ny,uu,w1,LL,d7,bMi,hgi,$A,yut,AK,ggi,SMi,vut,xw,dgi,fgi,bYt,ygi,vgi,bgi,Sgi,uf=Ht(()=>{Fs();M4e="en",tnt=!1,int=!1,ent=!1,mMi=!1,_gi=!1,yYt=!1,hMi=!1,vYt=!1,gMi=!1,pgi=!1,gut=M4e,ugi=M4e,gle=globalThis;typeof gle.vscode<"u"&&typeof gle.vscode.process<"u"?tL=gle.vscode.process:typeof process<"u"&&typeof((mYt=process==null?void 0:process.versions)===null||mYt===void 0?void 0:mYt.node)=="string"&&(tL=process);mgi=typeof((hYt=tL?.versions)===null||hYt===void 0?void 0:hYt.electron)=="string",vMi=mgi&&tL?.type==="renderer";if(typeof tL=="object"){tnt=tL.platform==="win32",int=tL.platform==="darwin",ent=tL.platform==="linux",mMi=ent&&!!tL.env.SNAP&&!!tL.env.SNAP_REVISION,hMi=mgi,gMi=!!tL.env.CI||!!tL.env.BUILD_ARTIFACTSTAGINGDIRECTORY,hut=M4e,gut=M4e;let l=tL.env.VSCODE_NLS_CONFIG;if(l)try{let i=JSON.parse(l),o=i.availableLanguages["*"];hut=i.locale,ugi=i.osLocale,gut=o||M4e,yMi=i._translationsConfigFile}catch{}_gi=!0}else typeof navigator=="object"&&!vMi?(TG=navigator.userAgent,tnt=TG.indexOf("Windows")>=0,int=TG.indexOf("Macintosh")>=0,vYt=(TG.indexOf("Macintosh")>=0||TG.indexOf("iPad")>=0||TG.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ent=TG.indexOf("Linux")>=0,pgi=TG?.indexOf("Mobi")>=0,yYt=!0,hut=(de({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||M4e,gut=hut,ugi=navigator.language):console.error("Unable to resolve platform.");gYt=0;int?gYt=1:tnt?gYt=3:ent&&(gYt=2);Ny=tnt,uu=int,w1=ent,LL=_gi,d7=yYt,bMi=yYt&&typeof gle.importScripts=="function",hgi=bMi?gle.origin:void 0,$A=vYt,yut=pgi,AK=TG,ggi=gut,SMi=typeof gle.postMessage=="function"&&!gle.importScripts,vut=(()=>{if(SMi){let l=[];gle.addEventListener("message",o=>{if(o.data&&o.data.vscodeScheduleAsyncWork)for(let s=0,c=l.length;s{let s=++i;l.push({id:s,callback:o}),gle.postMessage({vscodeScheduleAsyncWork:s},"*")}}return l=>setTimeout(l)})(),xw=int||vYt?2:tnt?1:3,dgi=!0,fgi=!1;bYt=!!(AK&&AK.indexOf("Chrome")>=0),ygi=!!(AK&&AK.indexOf("Firefox")>=0),vgi=!!(!bYt&&AK&&AK.indexOf("Safari")>=0),bgi=!!(AK&&AK.indexOf("Edg/")>=0),Sgi=!!(AK&&AK.indexOf("Android")>=0)});var _2,nnt=Ht(()=>{_2={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}});var jd,sP=Ht(()=>{(function(l){function i(Ye){return Ye&&typeof Ye=="object"&&typeof Ye[Symbol.iterator]=="function"}l.is=i;let o=Object.freeze([]);function s(){return o}l.empty=s;function*c(Ye){yield Ye}l.single=c;function _(Ye){return i(Ye)?Ye:c(Ye)}l.wrap=_;function h(Ye){return Ye||o}l.from=h;function*b(Ye){for(let ft=Ye.length-1;ft>=0;ft--)yield Ye[ft]}l.reverse=b;function w(Ye){return!Ye||Ye[Symbol.iterator]().next().done===!0}l.isEmpty=w;function D(Ye){return Ye[Symbol.iterator]().next().value}l.first=D;function O(Ye,ft){for(let Ct of Ye)if(ft(Ct))return!0;return!1}l.some=O;function j(Ye,ft){for(let Ct of Ye)if(ft(Ct))return Ct}l.find=j;function*F(Ye,ft){for(let Ct of Ye)ft(Ct)&&(yield Ct)}l.filter=F;function*X(Ye,ft){let Ct=0;for(let Et of Ye)yield ft(Et,Ct++)}l.map=X;function*K(...Ye){for(let ft of Ye)yield*ft}l.concat=K;function re(Ye,ft,Ct){let Et=Ct;for(let St of Ye)Et=ft(Et,St);return Et}l.reduce=re;function*Pe(Ye,ft,Ct=Ye.length){for(ft<0&&(ft+=Ye.length),Ct<0?Ct+=Ye.length:Ct>Ye.length&&(Ct=Ye.length);ft{kC=class l{constructor(i){this.element=i,this.next=l.Undefined,this.prev=l.Undefined}};kC.Undefined=new kC(void 0);L1=class{constructor(){this._first=kC.Undefined,this._last=kC.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===kC.Undefined}clear(){let i=this._first;for(;i!==kC.Undefined;){let o=i.next;i.prev=kC.Undefined,i.next=kC.Undefined,i=o}this._first=kC.Undefined,this._last=kC.Undefined,this._size=0}unshift(i){return this._insert(i,!1)}push(i){return this._insert(i,!0)}_insert(i,o){let s=new kC(i);if(this._first===kC.Undefined)this._first=s,this._last=s;else if(o){let _=this._last;this._last=s,s.prev=_,_.next=s}else{let _=this._first;this._first=s,s.next=_,_.prev=s}this._size+=1;let c=!1;return()=>{c||(c=!0,this._remove(s))}}shift(){if(this._first!==kC.Undefined){let i=this._first.element;return this._remove(this._first),i}}pop(){if(this._last!==kC.Undefined){let i=this._last.element;return this._remove(this._last),i}}_remove(i){if(i.prev!==kC.Undefined&&i.next!==kC.Undefined){let o=i.prev;o.next=i.next,i.next.prev=o}else i.prev===kC.Undefined&&i.next===kC.Undefined?(this._first=kC.Undefined,this._last=kC.Undefined):i.next===kC.Undefined?(this._last=this._last.prev,this._last.next=kC.Undefined):i.prev===kC.Undefined&&(this._first=this._first.next,this._first.prev=kC.Undefined);this._size-=1}*[Symbol.iterator](){let i=this._first;for(;i!==kC.Undefined;)yield i.element,i=i.next}}});function xMi(l=""){let i="(-?\\d*\\.\\d\\w*)|([^";for(let o of SYt)l.indexOf(o)>=0||(i+="\\"+o);return i+="\\s]+)",new RegExp(i,"g")}function ont(l){let i=rnt;if(l&&l instanceof RegExp)if(l.global)i=l;else{let o="g";l.ignoreCase&&(o+="i"),l.multiline&&(o+="m"),l.unicode&&(o+="u"),i=new RegExp(l.source,o)}return i.lastIndex=0,i}function rde(l,i,o,s,c){if(i=ont(i),c||(c=jd.first(xgi)),o.length>c.maxLen){let D=l-c.maxLen/2;return D<0?D=0:s+=D,o=o.substring(D,l+c.maxLen/2),rde(l,i,o,s,c)}let _=Date.now(),h=l-1-s,b=-1,w=null;for(let D=1;!(Date.now()-_>=c.timeBudget);D++){let O=h-c.windowSize*D;i.lastIndex=Math.max(0,O);let j=CMi(i,o,h,b);if(!j&&w||(w=j,O<=0))break;b=O}if(w){let D={word:w[0],startColumn:s+1+w.index,endColumn:s+1+w.index+w[0].length};return i.lastIndex=0,D}return null}function CMi(l,i,o,s){let c;for(;c=l.exec(i);){let _=c.index||0;if(_<=o&&l.lastIndex>=o)return c;if(s>0&&_>s)return null}return null}var SYt,rnt,xgi,R4e=Ht(()=>{sP();f7();SYt="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";rnt=xMi();xgi=new L1;xgi.unshift({maxLen:1e3,windowSize:15,timeBudget:150})});function Sut(l,i){if(typeof l!="object"||typeof i!="object"||!l||!i)return new ode(i,l!==i);if(Array.isArray(l)||Array.isArray(i)){let s=Array.isArray(l)&&Array.isArray(i)&&Op(l,i);return new ode(i,!s)}let o=!1;for(let s in i)if(i.hasOwnProperty(s)){let c=Sut(l[s],i[s]);c.didChange&&(l[s]=c.newValue,o=!0)}return new ode(l,o)}function Cl(l,i){return typeof l>"u"?i:l==="false"?!1:!!l}function cde(l,i,o,s){if(typeof l>"u")return i;let c=parseInt(l,10);return isNaN(c)?i:(c=Math.max(o,c),c=Math.min(s,c),c|0)}function kgi(l,i,o,s){if(typeof l>"u")return i;let c=_7.float(l,i);return _7.clamp(c,o,s)}function Jb(l,i,o,s){return typeof l!="string"?i:s&&l in s?s[l]:o.indexOf(l)===-1?i:l}function kMi(l){switch(l){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}function wMi(l){switch(l){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}function TMi(l){switch(l){case"line":return p2.Line;case"block":return p2.Block;case"underline":return p2.Underline;case"line-thin":return p2.LineThin;case"block-outline":return p2.BlockOutline;case"underline-thin":return p2.UnderlineThin}}function EMi(l){return l==="ctrlCmd"?uu?"metaKey":"ctrlKey":"altKey"}function xNe(l){let i=l.get(98);return i==="editable"?l.get(91):i!=="on"}function Cgi(l,i){if(typeof l!="string")return i;switch(l){case"hidden":return 2;case"visible":return 3;default:return 1}}function j4e(l,i,o){let s=o.indexOf(l);return s===-1?i:o[s]}function oa(l){return lde[l.id]=l,l}var EG,W4e,snt,yv,ode,SNe,sde,Mp,Ay,_7,iL,O1,B4e,xYt,CYt,p2,kYt,wYt,TYt,AF,ade,EYt,DYt,z4e,IYt,NYt,ant,AYt,KB,PYt,LYt,OYt,FYt,MYt,RYt,BYt,jYt,WYt,zYt,VYt,HYt,UYt,JYt,NF,nL,qYt,$Yt,GYt,KYt,XYt,YYt,QYt,ZYt,eQt,tQt,iQt,nQt,DMi,IMi,NMi,MD,lde,OL,FC=Ht(()=>{su();oP();uf();nnt();R4e();Fs();EG=8,W4e=class{constructor(i){this._values=i}hasChanged(i){return this._values[i]}},snt=class{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}},yv=class{constructor(i,o,s,c){this.id=i,this.name=o,this.defaultValue=s,this.schema=c}applyUpdate(i,o){return Sut(i,o)}compute(i,o,s){return s}},ode=class{constructor(i,o){this.newValue=i,this.didChange=o}};SNe=class{constructor(i){this.schema=void 0,this.id=i,this.name="_never_",this.defaultValue=void 0}applyUpdate(i,o){return Sut(i,o)}validate(i){return this.defaultValue}},sde=class{constructor(i,o,s,c){this.id=i,this.name=o,this.defaultValue=s,this.schema=c}applyUpdate(i,o){return Sut(i,o)}validate(i){return typeof i>"u"?this.defaultValue:i}compute(i,o,s){return s}};Mp=class extends sde{constructor(i,o,s,c=void 0){typeof c<"u"&&(c.type="boolean",c.default=s),super(i,o,s,c)}validate(i){return Cl(i,this.defaultValue)}};Ay=class l extends sde{static clampedInt(i,o,s,c){return cde(i,o,s,c)}constructor(i,o,s,c,_,h=void 0){typeof h<"u"&&(h.type="integer",h.default=s,h.minimum=c,h.maximum=_),super(i,o,s,h),this.minimum=c,this.maximum=_}validate(i){return l.clampedInt(i,this.defaultValue,this.minimum,this.maximum)}};_7=class l extends sde{static clamp(i,o,s){return is?s:i}static float(i,o){if(typeof i=="number")return i;if(typeof i>"u")return o;let s=parseFloat(i);return isNaN(s)?o:s}constructor(i,o,s,c,_){typeof _<"u"&&(_.type="number",_.default=s),super(i,o,s,_),this.validationFn=c}validate(i){return this.validationFn(l.float(i,this.defaultValue))}},iL=class l extends sde{static string(i,o){return typeof i!="string"?o:i}constructor(i,o,s,c=void 0){typeof c<"u"&&(c.type="string",c.default=s),super(i,o,s,c)}validate(i){return l.string(i,this.defaultValue)}};O1=class extends sde{constructor(i,o,s,c,_=void 0){typeof _<"u"&&(_.type="string",_.enum=c,_.default=s),super(i,o,s,_),this._allowedValues=c}validate(i){return Jb(i,this.defaultValue,this._allowedValues)}},B4e=class extends yv{constructor(i,o,s,c,_,h,b=void 0){typeof b<"u"&&(b.type="string",b.enum=_,b.default=c),super(i,o,s,b),this._allowedValues=_,this._convert=h}validate(i){return typeof i!="string"?this.defaultValue:this._allowedValues.indexOf(i)===-1?this.defaultValue:this._convert(i)}};xYt=class extends yv{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[de("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),de("accessibilitySupport.on","Optimize for usage with a Screen Reader."),de("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:de("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(i){switch(i){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(i,o,s){return s===0?i.accessibilitySupport:s}},CYt=class extends yv{constructor(){let i={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",i,{"editor.comments.insertSpace":{type:"boolean",default:i.insertSpace,description:de("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:i.ignoreEmptyLines,description:de("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{insertSpace:Cl(o.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Cl(o.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}};(function(l){l[l.Line=1]="Line",l[l.Block=2]="Block",l[l.Underline=3]="Underline",l[l.LineThin=4]="LineThin",l[l.BlockOutline=5]="BlockOutline",l[l.UnderlineThin=6]="UnderlineThin"})(p2||(p2={}));kYt=class extends SNe{constructor(){super(142)}compute(i,o,s){let c=["monaco-editor"];return o.get(39)&&c.push(o.get(39)),i.extraEditorClassName&&c.push(i.extraEditorClassName),o.get(74)==="default"?c.push("mouse-default"):o.get(74)==="copy"&&c.push("mouse-copy"),o.get(111)&&c.push("showUnused"),o.get(140)&&c.push("showDeprecated"),c.join(" ")}},wYt=class extends Mp{constructor(){super(37,"emptySelectionClipboard",!0,{description:de("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(i,o,s){return s&&i.emptySelectionClipboard}},TYt=class extends yv{constructor(){let i={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",i,{"editor.find.cursorMoveOnType":{type:"boolean",default:i.cursorMoveOnType,description:de("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:i.seedSearchStringFromSelection,enumDescriptions:[de("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),de("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),de("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:de("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:i.autoFindInSelection,enumDescriptions:[de("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),de("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),de("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:de("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:i.globalFindClipboard,description:de("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:uu},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:i.addExtraSpaceOnTop,description:de("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:i.loop,description:de("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{cursorMoveOnType:Cl(o.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof i.seedSearchStringFromSelection=="boolean"?i.seedSearchStringFromSelection?"always":"never":Jb(o.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof i.autoFindInSelection=="boolean"?i.autoFindInSelection?"always":"never":Jb(o.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Cl(o.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Cl(o.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Cl(o.loop,this.defaultValue.loop)}}},AF=class l extends yv{constructor(){super(51,"fontLigatures",l.OFF,{anyOf:[{type:"boolean",description:de("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:de("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:de("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(i){return typeof i>"u"?this.defaultValue:typeof i=="string"?i==="false"||i.length===0?l.OFF:i==="true"?l.ON:i:i?l.ON:l.OFF}};AF.OFF='"liga" off, "calt" off';AF.ON='"liga" on, "calt" on';ade=class l extends yv{constructor(){super(54,"fontVariations",l.OFF,{anyOf:[{type:"boolean",description:de("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:de("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:de("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(i){return typeof i>"u"?this.defaultValue:typeof i=="string"?i==="false"?l.OFF:i==="true"?l.TRANSLATE:i:i?l.TRANSLATE:l.OFF}compute(i,o,s){return i.fontInfo.fontVariationSettings}};ade.OFF="normal";ade.TRANSLATE="translate";EYt=class extends SNe{constructor(){super(50)}compute(i,o,s){return i.fontInfo}},DYt=class extends sde{constructor(){super(52,"fontSize",MD.fontSize,{type:"number",minimum:6,maximum:100,default:MD.fontSize,description:de("fontSize","Controls the font size in pixels.")})}validate(i){let o=_7.float(i,this.defaultValue);return o===0?MD.fontSize:_7.clamp(o,6,100)}compute(i,o,s){return i.fontInfo.fontSize}},z4e=class l extends yv{constructor(){super(53,"fontWeight",MD.fontWeight,{anyOf:[{type:"number",minimum:l.MINIMUM_VALUE,maximum:l.MAXIMUM_VALUE,errorMessage:de("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:l.SUGGESTION_VALUES}],default:MD.fontWeight,description:de("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(i){return i==="normal"||i==="bold"?i:String(Ay.clampedInt(i,MD.fontWeight,l.MINIMUM_VALUE,l.MAXIMUM_VALUE))}};z4e.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];z4e.MINIMUM_VALUE=1;z4e.MAXIMUM_VALUE=1e3;IYt=class extends yv{constructor(){let i={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},o={type:"string",enum:["peek","gotoAndPeek","goto"],default:i.multiple,enumDescriptions:[de("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),de("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),de("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},s=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",i,{"editor.gotoLocation.multiple":{deprecationMessage:de("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:de("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...o},"editor.gotoLocation.multipleTypeDefinitions":{description:de("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...o},"editor.gotoLocation.multipleDeclarations":{description:de("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...o},"editor.gotoLocation.multipleImplementations":{description:de("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...o},"editor.gotoLocation.multipleReferences":{description:de("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...o},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:i.alternativeDefinitionCommand,enum:s,description:de("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:i.alternativeTypeDefinitionCommand,enum:s,description:de("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:i.alternativeDeclarationCommand,enum:s,description:de("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:i.alternativeImplementationCommand,enum:s,description:de("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:i.alternativeReferenceCommand,enum:s,description:de("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(i){var o,s,c,_,h;if(!i||typeof i!="object")return this.defaultValue;let b=i;return{multiple:Jb(b.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(o=b.multipleDefinitions)!==null&&o!==void 0?o:Jb(b.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(s=b.multipleTypeDefinitions)!==null&&s!==void 0?s:Jb(b.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(c=b.multipleDeclarations)!==null&&c!==void 0?c:Jb(b.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(_=b.multipleImplementations)!==null&&_!==void 0?_:Jb(b.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(h=b.multipleReferences)!==null&&h!==void 0?h:Jb(b.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:iL.string(b.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:iL.string(b.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:iL.string(b.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:iL.string(b.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:iL.string(b.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}},NYt=class extends yv{constructor(){let i={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",i,{"editor.hover.enabled":{type:"boolean",default:i.enabled,description:de("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:i.delay,minimum:0,maximum:1e4,description:de("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:i.sticky,description:de("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:i.hidingDelay,description:de("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:i.above,description:de("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{enabled:Cl(o.enabled,this.defaultValue.enabled),delay:Ay.clampedInt(o.delay,this.defaultValue.delay,0,1e4),sticky:Cl(o.sticky,this.defaultValue.sticky),hidingDelay:Ay.clampedInt(o.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:Cl(o.above,this.defaultValue.above)}}},ant=class l extends SNe{constructor(){super(145)}compute(i,o,s){return l.computeLayout(o,{memory:i.memory,outerWidth:i.outerWidth,outerHeight:i.outerHeight,isDominatedByLongLines:i.isDominatedByLongLines,lineHeight:i.fontInfo.lineHeight,viewLineCount:i.viewLineCount,lineNumbersDigitCount:i.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:i.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:i.fontInfo.maxDigitWidth,pixelRatio:i.pixelRatio,glyphMarginDecorationLaneCount:i.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(i){let o=i.height/i.lineHeight,s=Math.floor(i.paddingTop/i.lineHeight),c=Math.floor(i.paddingBottom/i.lineHeight);i.scrollBeyondLastLine&&(c=Math.max(c,o-1));let _=(s+i.viewLineCount+c)/(i.pixelRatio*i.height),h=Math.floor(i.viewLineCount/_);return{typicalViewportLineCount:o,extraLinesBeforeFirstLine:s,extraLinesBeyondLastLine:c,desiredRatio:_,minimapLineCount:h}}static _computeMinimapLayout(i,o){let s=i.outerWidth,c=i.outerHeight,_=i.pixelRatio;if(!i.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(_*c),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:c};let h=o.stableMinimapLayoutInput,b=h&&i.outerHeight===h.outerHeight&&i.lineHeight===h.lineHeight&&i.typicalHalfwidthCharacterWidth===h.typicalHalfwidthCharacterWidth&&i.pixelRatio===h.pixelRatio&&i.scrollBeyondLastLine===h.scrollBeyondLastLine&&i.paddingTop===h.paddingTop&&i.paddingBottom===h.paddingBottom&&i.minimap.enabled===h.minimap.enabled&&i.minimap.side===h.minimap.side&&i.minimap.size===h.minimap.size&&i.minimap.showSlider===h.minimap.showSlider&&i.minimap.renderCharacters===h.minimap.renderCharacters&&i.minimap.maxColumn===h.minimap.maxColumn&&i.minimap.scale===h.minimap.scale&&i.verticalScrollbarWidth===h.verticalScrollbarWidth&&i.isViewportWrapping===h.isViewportWrapping,w=i.lineHeight,D=i.typicalHalfwidthCharacterWidth,O=i.scrollBeyondLastLine,j=i.minimap.renderCharacters,F=_>=2?Math.round(i.minimap.scale*2):i.minimap.scale,X=i.minimap.maxColumn,K=i.minimap.size,re=i.minimap.side,Pe=i.verticalScrollbarWidth,Le=i.viewLineCount,Je=i.remainingWidth,Ye=i.isViewportWrapping,ft=j?2:3,Ct=Math.floor(_*c),Et=Ct/_,St=!1,Mi=!1,zi=ft*F,Vr=F/_,sn=1;if(K==="fill"||K==="fit"){let{typicalViewportLineCount:wc,extraLinesBeforeFirstLine:Uo,extraLinesBeyondLastLine:tc,desiredRatio:vo,minimapLineCount:kl}=l.computeContainedMinimapLineCount({viewLineCount:Le,scrollBeyondLastLine:O,paddingTop:i.paddingTop,paddingBottom:i.paddingBottom,height:c,lineHeight:w,pixelRatio:_});if(Le/kl>1)St=!0,Mi=!0,F=1,zi=1,Vr=F/_;else{let Wy=!1,Hb=F+1;if(K==="fit"){let ro=Math.ceil((Uo+Le+tc)*zi);Ye&&b&&Je<=o.stableFitRemainingWidth?(Wy=!0,Hb=o.stableFitMaxMinimapScale):Wy=ro>Ct}if(K==="fill"||Wy){St=!0;let ro=F;zi=Math.min(w*_,Math.max(1,Math.floor(1/vo))),Ye&&b&&Je<=o.stableFitRemainingWidth&&(Hb=o.stableFitMaxMinimapScale),F=Math.min(Hb,Math.max(1,Math.floor(zi/ft))),F>ro&&(sn=Math.min(2,F/ro)),Vr=F/_/sn,Ct=Math.ceil(Math.max(wc,Uo+Le+tc)*zi),Ye?(o.stableMinimapLayoutInput=i,o.stableFitRemainingWidth=Je,o.stableFitMaxMinimapScale=F):(o.stableMinimapLayoutInput=null,o.stableFitRemainingWidth=0)}}}let gr=Math.floor(X*Vr),er=Math.min(gr,Math.max(0,Math.floor((Je-Pe-2)*Vr/(D+Vr)))+EG),Di=Math.floor(_*er),rs=Di/_;Di=Math.floor(Di*sn);let Ls=j?1:2,_i=re==="left"?0:s-er-Pe;return{renderMinimap:Ls,minimapLeft:_i,minimapWidth:er,minimapHeightIsEditorHeight:St,minimapIsSampling:Mi,minimapScale:F,minimapLineHeight:zi,minimapCanvasInnerWidth:Di,minimapCanvasInnerHeight:Ct,minimapCanvasOuterWidth:rs,minimapCanvasOuterHeight:Et}}static computeLayout(i,o){let s=o.outerWidth|0,c=o.outerHeight|0,_=o.lineHeight|0,h=o.lineNumbersDigitCount|0,b=o.typicalHalfwidthCharacterWidth,w=o.maxDigitWidth,D=o.pixelRatio,O=o.viewLineCount,j=i.get(137),F=j==="inherit"?i.get(136):j,X=F==="inherit"?i.get(132):F,K=i.get(135),re=o.isDominatedByLongLines,Pe=i.get(57),Le=i.get(68).renderType!==0,Je=i.get(69),Ye=i.get(105),ft=i.get(84),Ct=i.get(73),Et=i.get(103),St=Et.verticalScrollbarSize,Mi=Et.verticalHasArrows,zi=Et.arrowSize,Vr=Et.horizontalScrollbarSize,sn=i.get(43),gr=i.get(110)!=="never",er=i.get(66);sn&&gr&&(er+=16);let Di=0;if(Le){let Hg=Math.max(h,Je);Di=Math.round(Hg*w)}let rs=0;Pe&&(rs=_*o.glyphMarginDecorationLaneCount);let Ls=0,_i=Ls+rs,wc=_i+Di,Uo=wc+er,tc=s-rs-Di-er,vo=!1,kl=!1,qa=-1;F==="inherit"&&re?(vo=!0,kl=!0):X==="on"||X==="bounded"?kl=!0:X==="wordWrapColumn"&&(qa=K);let Wy=l._computeMinimapLayout({outerWidth:s,outerHeight:c,lineHeight:_,typicalHalfwidthCharacterWidth:b,pixelRatio:D,scrollBeyondLastLine:Ye,paddingTop:ft.top,paddingBottom:ft.bottom,minimap:Ct,verticalScrollbarWidth:St,viewLineCount:O,remainingWidth:tc,isViewportWrapping:kl},o.memory||new snt);Wy.renderMinimap!==0&&Wy.minimapLeft===0&&(Ls+=Wy.minimapWidth,_i+=Wy.minimapWidth,wc+=Wy.minimapWidth,Uo+=Wy.minimapWidth);let Hb=tc-Wy.minimapWidth,ro=Math.max(1,Math.floor((Hb-St-2)/b)),bd=Mi?zi:0;return kl&&(qa=Math.max(1,ro),X==="bounded"&&(qa=Math.min(qa,K))),{width:s,height:c,glyphMarginLeft:Ls,glyphMarginWidth:rs,glyphMarginDecorationLaneCount:o.glyphMarginDecorationLaneCount,lineNumbersLeft:_i,lineNumbersWidth:Di,decorationsLeft:wc,decorationsWidth:er,contentLeft:Uo,contentWidth:Hb,minimap:Wy,viewportColumn:ro,isWordWrapMinified:vo,isViewportWrapping:kl,wrappingColumn:qa,verticalScrollbarWidth:St,horizontalScrollbarHeight:Vr,overviewRuler:{top:bd,width:St,height:c-2*bd,right:0}}}},AYt=class extends yv{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[de("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),de("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:de("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(i){return Jb(i,"simple",["simple","advanced"])}compute(i,o,s){return o.get(2)===2?"advanced":s}};(function(l){l.Off="off",l.OnCode="onCode",l.On="on"})(KB||(KB={}));PYt=class extends yv{constructor(){let i={enabled:KB.On};super(65,"lightbulb",i,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[KB.Off,KB.OnCode,KB.On],default:i.enabled,enumDescriptions:[de("editor.lightbulb.enabled.off","Disable the code action menu."),de("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),de("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:de("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(i){return!i||typeof i!="object"?this.defaultValue:{enabled:Jb(i.enabled,this.defaultValue.enabled,[KB.Off,KB.OnCode,KB.On])}}},LYt=class extends yv{constructor(){let i={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",i,{"editor.stickyScroll.enabled":{type:"boolean",default:i.enabled,description:de("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:i.maxLineCount,minimum:1,maximum:20,description:de("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:i.defaultModel,description:de("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:i.scrollWithEditor,description:de("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{enabled:Cl(o.enabled,this.defaultValue.enabled),maxLineCount:Ay.clampedInt(o.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Jb(o.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:Cl(o.scrollWithEditor,this.defaultValue.scrollWithEditor)}}},OYt=class extends yv{constructor(){let i={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",i,{"editor.inlayHints.enabled":{type:"string",default:i.enabled,description:de("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[de("editor.inlayHints.on","Inlay hints are enabled"),de("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",uu?"Ctrl+Option":"Ctrl+Alt"),de("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",uu?"Ctrl+Option":"Ctrl+Alt"),de("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:i.fontSize,markdownDescription:de("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:i.fontFamily,markdownDescription:de("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:i.padding,description:de("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return typeof o.enabled=="boolean"&&(o.enabled=o.enabled?"on":"off"),{enabled:Jb(o.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Ay.clampedInt(o.fontSize,this.defaultValue.fontSize,0,100),fontFamily:iL.string(o.fontFamily,this.defaultValue.fontFamily),padding:Cl(o.padding,this.defaultValue.padding)}}},FYt=class extends yv{constructor(){super(66,"lineDecorationsWidth",10)}validate(i){return typeof i=="string"&&/^\d+(\.\d+)?ch$/.test(i)?-parseFloat(i.substring(0,i.length-2)):Ay.clampedInt(i,this.defaultValue,0,1e3)}compute(i,o,s){return s<0?Ay.clampedInt(-s*i.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):s}},MYt=class extends _7{constructor(){super(67,"lineHeight",MD.lineHeight,i=>_7.clamp(i,0,150),{markdownDescription:de("lineHeight",`Controls the line height. + - Use 0 to automatically compute the line height from the font size. + - Values between 0 and 8 will be used as a multiplier with the font size. + - Values greater than or equal to 8 will be used as effective values.`)})}compute(i,o,s){return i.fontInfo.lineHeight}},RYt=class extends yv{constructor(){let i={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",i,{"editor.minimap.enabled":{type:"boolean",default:i.enabled,description:de("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:i.autohide,description:de("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[de("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),de("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),de("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:i.size,description:de("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:i.side,description:de("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:i.showSlider,description:de("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:i.scale,minimum:1,maximum:3,enum:[1,2,3],description:de("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:i.renderCharacters,description:de("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:i.maxColumn,description:de("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:i.showRegionSectionHeaders,description:de("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:i.showMarkSectionHeaders,description:de("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:i.sectionHeaderFontSize,description:de("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:i.sectionHeaderLetterSpacing,description:de("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(i){var o,s;if(!i||typeof i!="object")return this.defaultValue;let c=i;return{enabled:Cl(c.enabled,this.defaultValue.enabled),autohide:Cl(c.autohide,this.defaultValue.autohide),size:Jb(c.size,this.defaultValue.size,["proportional","fill","fit"]),side:Jb(c.side,this.defaultValue.side,["right","left"]),showSlider:Jb(c.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Cl(c.renderCharacters,this.defaultValue.renderCharacters),scale:Ay.clampedInt(c.scale,1,1,3),maxColumn:Ay.clampedInt(c.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:Cl(c.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:Cl(c.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:_7.clamp((o=c.sectionHeaderFontSize)!==null&&o!==void 0?o:this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:_7.clamp((s=c.sectionHeaderLetterSpacing)!==null&&s!==void 0?s:this.defaultValue.sectionHeaderLetterSpacing,0,5)}}};BYt=class extends yv{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:de("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:de("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{top:Ay.clampedInt(o.top,0,0,1e3),bottom:Ay.clampedInt(o.bottom,0,0,1e3)}}},jYt=class extends yv{constructor(){let i={enabled:!0,cycle:!0};super(86,"parameterHints",i,{"editor.parameterHints.enabled":{type:"boolean",default:i.enabled,description:de("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:i.cycle,description:de("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{enabled:Cl(o.enabled,this.defaultValue.enabled),cycle:Cl(o.cycle,this.defaultValue.cycle)}}},WYt=class extends SNe{constructor(){super(143)}compute(i,o,s){return i.pixelRatio}},zYt=class extends yv{constructor(){let i={other:"on",comments:"off",strings:"off"},o=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[de("on","Quick suggestions show inside the suggest widget"),de("inline","Quick suggestions show as ghost text"),de("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",i,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:o,default:i.strings,description:de("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:o,default:i.comments,description:de("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:o,default:i.other,description:de("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:i,markdownDescription:de("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=i}validate(i){if(typeof i=="boolean"){let D=i?"on":"off";return{comments:D,strings:D,other:D}}if(!i||typeof i!="object")return this.defaultValue;let{other:o,comments:s,strings:c}=i,_=["on","inline","off"],h,b,w;return typeof o=="boolean"?h=o?"on":"off":h=Jb(o,this.defaultValue.other,_),typeof s=="boolean"?b=s?"on":"off":b=Jb(s,this.defaultValue.comments,_),typeof c=="boolean"?w=c?"on":"off":w=Jb(c,this.defaultValue.strings,_),{other:h,comments:b,strings:w}}},VYt=class extends yv{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[de("lineNumbers.off","Line numbers are not rendered."),de("lineNumbers.on","Line numbers are rendered as absolute number."),de("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),de("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:de("lineNumbers","Controls the display of line numbers.")})}validate(i){let o=this.defaultValue.renderType,s=this.defaultValue.renderFn;return typeof i<"u"&&(typeof i=="function"?(o=4,s=i):i==="interval"?o=3:i==="relative"?o=2:i==="on"?o=1:o=0),{renderType:o,renderFn:s}}};HYt=class extends yv{constructor(){let i=[],o={type:"number",description:de("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",i,{type:"array",items:{anyOf:[o,{type:["object"],properties:{column:o,color:{type:"string",description:de("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:i,description:de("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(i){if(Array.isArray(i)){let o=[];for(let s of i)if(typeof s=="number")o.push({column:Ay.clampedInt(s,0,0,1e4),color:null});else if(s&&typeof s=="object"){let c=s;o.push({column:Ay.clampedInt(c.column,0,0,1e4),color:c.color})}return o.sort((s,c)=>s.column-c.column),o}return this.defaultValue}},UYt=class extends yv{constructor(){super(92,"readOnlyMessage",void 0)}validate(i){return!i||typeof i!="object"?this.defaultValue:i}};JYt=class extends yv{constructor(){let i={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",i,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[de("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),de("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),de("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:de("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[de("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),de("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),de("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:de("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:i.verticalScrollbarSize,description:de("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:i.horizontalScrollbarSize,description:de("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:i.scrollByPage,description:de("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:i.ignoreHorizontalScrollbarInContentHeight,description:de("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i,s=Ay.clampedInt(o.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),c=Ay.clampedInt(o.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Ay.clampedInt(o.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Cgi(o.vertical,this.defaultValue.vertical),horizontal:Cgi(o.horizontal,this.defaultValue.horizontal),useShadows:Cl(o.useShadows,this.defaultValue.useShadows),verticalHasArrows:Cl(o.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Cl(o.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Cl(o.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Cl(o.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:s,horizontalSliderSize:Ay.clampedInt(o.horizontalSliderSize,s,0,1e3),verticalScrollbarSize:c,verticalSliderSize:Ay.clampedInt(o.verticalSliderSize,c,0,1e3),scrollByPage:Cl(o.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:Cl(o.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}},NF="inUntrustedWorkspace",nL={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"},qYt=class extends yv{constructor(){let i={nonBasicASCII:NF,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:NF,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",i,{[nL.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,NF],default:i.nonBasicASCII,description:de("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[nL.invisibleCharacters]:{restricted:!0,type:"boolean",default:i.invisibleCharacters,description:de("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[nL.ambiguousCharacters]:{restricted:!0,type:"boolean",default:i.ambiguousCharacters,description:de("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[nL.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,NF],default:i.includeComments,description:de("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[nL.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,NF],default:i.includeStrings,description:de("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[nL.allowedCharacters]:{restricted:!0,type:"object",default:i.allowedCharacters,description:de("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[nL.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:i.allowedLocales,description:de("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(i,o){let s=!1;o.allowedCharacters&&i&&(D2(i.allowedCharacters,o.allowedCharacters)||(i={...i,allowedCharacters:o.allowedCharacters},s=!0)),o.allowedLocales&&i&&(D2(i.allowedLocales,o.allowedLocales)||(i={...i,allowedLocales:o.allowedLocales},s=!0));let c=super.applyUpdate(i,o);return s?new ode(c.newValue,!0):c}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{nonBasicASCII:j4e(o.nonBasicASCII,NF,[!0,!1,NF]),invisibleCharacters:Cl(o.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Cl(o.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:j4e(o.includeComments,NF,[!0,!1,NF]),includeStrings:j4e(o.includeStrings,NF,[!0,!1,NF]),allowedCharacters:this.validateBooleanMap(i.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(i.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(i,o){if(typeof i!="object"||!i)return o;let s={};for(let[c,_]of Object.entries(i))_===!0&&(s[c]=!0);return s}},$Yt=class extends yv{constructor(){let i={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",i,{"editor.inlineSuggest.enabled":{type:"boolean",default:i.enabled,description:de("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:i.showToolbar,enum:["always","onHover","never"],enumDescriptions:[de("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),de("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),de("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:de("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:i.suppressSuggestions,description:de("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:i.fontFamily,description:de("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{enabled:Cl(o.enabled,this.defaultValue.enabled),mode:Jb(o.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Jb(o.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:Cl(o.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:Cl(o.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:iL.string(o.fontFamily,this.defaultValue.fontFamily)}}},GYt=class extends yv{constructor(){let i={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",i,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:i.enabled,description:de("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:i.showToolbar,enum:["always","onHover","never"],enumDescriptions:[de("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),de("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),de("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:de("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:i.fontFamily,description:de("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:i.backgroundColoring,description:de("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{enabled:Cl(o.enabled,this.defaultValue.enabled),showToolbar:Jb(o.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:iL.string(o.fontFamily,this.defaultValue.fontFamily),keepOnBlur:Cl(o.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:Cl(o.backgroundColoring,this.defaultValue.backgroundColoring)}}},KYt=class extends yv{constructor(){let i={enabled:_2.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:_2.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",i,{"editor.bracketPairColorization.enabled":{type:"boolean",default:i.enabled,markdownDescription:de("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:i.independentColorPoolPerBracketType,description:de("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{enabled:Cl(o.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Cl(o.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}},XYt=class extends yv{constructor(){let i={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",i,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[de("editor.guides.bracketPairs.true","Enables bracket pair guides."),de("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),de("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:i.bracketPairs,description:de("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[de("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),de("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),de("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:i.bracketPairsHorizontal,description:de("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:i.highlightActiveBracketPair,description:de("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:i.indentation,description:de("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[de("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),de("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),de("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:i.highlightActiveIndentation,description:de("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{bracketPairs:j4e(o.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:j4e(o.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Cl(o.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Cl(o.indentation,this.defaultValue.indentation),highlightActiveIndentation:j4e(o.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}};YYt=class extends yv{constructor(){let i={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",i,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[de("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),de("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:i.insertMode,description:de("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:i.filterGraceful,description:de("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:i.localityBonus,description:de("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:i.shareSuggestSelections,markdownDescription:de("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[de("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),de("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),de("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),de("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:i.selectionMode,markdownDescription:de("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:i.snippetsPreventQuickSuggestions,description:de("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:i.showIcons,description:de("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:i.showStatusBar,description:de("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:i.preview,description:de("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:i.showInlineDetails,description:de("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:de("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:de("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:de("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{insertMode:Jb(o.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Cl(o.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Cl(o.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Cl(o.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Cl(o.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Jb(o.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Cl(o.showIcons,this.defaultValue.showIcons),showStatusBar:Cl(o.showStatusBar,this.defaultValue.showStatusBar),preview:Cl(o.preview,this.defaultValue.preview),previewMode:Jb(o.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Cl(o.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Cl(o.showMethods,this.defaultValue.showMethods),showFunctions:Cl(o.showFunctions,this.defaultValue.showFunctions),showConstructors:Cl(o.showConstructors,this.defaultValue.showConstructors),showDeprecated:Cl(o.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Cl(o.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Cl(o.showFields,this.defaultValue.showFields),showVariables:Cl(o.showVariables,this.defaultValue.showVariables),showClasses:Cl(o.showClasses,this.defaultValue.showClasses),showStructs:Cl(o.showStructs,this.defaultValue.showStructs),showInterfaces:Cl(o.showInterfaces,this.defaultValue.showInterfaces),showModules:Cl(o.showModules,this.defaultValue.showModules),showProperties:Cl(o.showProperties,this.defaultValue.showProperties),showEvents:Cl(o.showEvents,this.defaultValue.showEvents),showOperators:Cl(o.showOperators,this.defaultValue.showOperators),showUnits:Cl(o.showUnits,this.defaultValue.showUnits),showValues:Cl(o.showValues,this.defaultValue.showValues),showConstants:Cl(o.showConstants,this.defaultValue.showConstants),showEnums:Cl(o.showEnums,this.defaultValue.showEnums),showEnumMembers:Cl(o.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Cl(o.showKeywords,this.defaultValue.showKeywords),showWords:Cl(o.showWords,this.defaultValue.showWords),showColors:Cl(o.showColors,this.defaultValue.showColors),showFiles:Cl(o.showFiles,this.defaultValue.showFiles),showReferences:Cl(o.showReferences,this.defaultValue.showReferences),showFolders:Cl(o.showFolders,this.defaultValue.showFolders),showTypeParameters:Cl(o.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Cl(o.showSnippets,this.defaultValue.showSnippets),showUsers:Cl(o.showUsers,this.defaultValue.showUsers),showIssues:Cl(o.showIssues,this.defaultValue.showIssues)}}},QYt=class extends yv{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:de("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:de("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(i){return!i||typeof i!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Cl(i.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:Cl(i.selectSubwords,this.defaultValue.selectSubwords)}}},ZYt=class extends yv{constructor(){let i=[];super(130,"wordSegmenterLocales",i,{anyOf:[{description:de("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:de("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(i){if(typeof i=="string"&&(i=[i]),Array.isArray(i)){let o=[];for(let s of i)if(typeof s=="string")try{Intl.Segmenter.supportedLocalesOf(s).length>0&&o.push(s)}catch{}return o}return this.defaultValue}},eQt=class extends yv{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[de("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),de("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),de("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),de("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:de("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(i){switch(i){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(i,o,s){return o.get(2)===2?0:s}},tQt=class extends SNe{constructor(){super(146)}compute(i,o,s){let c=o.get(145);return{isDominatedByLongLines:i.isDominatedByLongLines,isWordWrapMinified:c.isWordWrapMinified,isViewportWrapping:c.isViewportWrapping,wrappingColumn:c.wrappingColumn}}},iQt=class extends yv{constructor(){let i={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",i,{"editor.dropIntoEditor.enabled":{type:"boolean",default:i.enabled,markdownDescription:de("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:de("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[de("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),de("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{enabled:Cl(o.enabled,this.defaultValue.enabled),showDropSelector:Jb(o.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}},nQt=class extends yv{constructor(){let i={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",i,{"editor.pasteAs.enabled":{type:"boolean",default:i.enabled,markdownDescription:de("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:de("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[de("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),de("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(i){if(!i||typeof i!="object")return this.defaultValue;let o=i;return{enabled:Cl(o.enabled,this.defaultValue.enabled),showPasteSelector:Jb(o.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}},DMi="Consolas, 'Courier New', monospace",IMi="Menlo, Monaco, 'Courier New', monospace",NMi="'Droid Sans Mono', 'monospace', monospace",MD={fontFamily:uu?IMi:w1?NMi:DMi,fontWeight:"normal",fontSize:uu?12:14,lineHeight:0,letterSpacing:0},lde=[];OL={acceptSuggestionOnCommitCharacter:oa(new Mp(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:de("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:oa(new O1(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",de("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:de("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:oa(new xYt),accessibilityPageSize:oa(new Ay(3,"accessibilityPageSize",10,1,1073741824,{description:de("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:oa(new iL(4,"ariaLabel",de("editorViewAccessibleLabel","Editor content"))),ariaRequired:oa(new Mp(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:oa(new Mp(8,"screenReaderAnnounceInlineSuggestion",!0,{description:de("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:oa(new O1(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",de("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),de("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:de("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:oa(new O1(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",de("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),de("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:de("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:oa(new O1(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",de("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:de("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:oa(new O1(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",de("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:de("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:oa(new O1(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",de("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),de("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:de("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:oa(new B4e(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],kMi,{enumDescriptions:[de("editor.autoIndent.none","The editor will not insert indentation automatically."),de("editor.autoIndent.keep","The editor will keep the current line's indentation."),de("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),de("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),de("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:de("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:oa(new Mp(13,"automaticLayout",!1)),autoSurround:oa(new O1(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[de("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),de("editor.autoSurround.quotes","Surround with quotes but not brackets."),de("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:de("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:oa(new KYt),bracketPairGuides:oa(new XYt),stickyTabStops:oa(new Mp(116,"stickyTabStops",!1,{description:de("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:oa(new Mp(17,"codeLens",!0,{description:de("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:oa(new iL(18,"codeLensFontFamily","",{description:de("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:oa(new Ay(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:de("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:oa(new Mp(20,"colorDecorators",!0,{description:de("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:oa(new O1(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[de("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),de("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),de("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:de("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:oa(new Ay(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:de("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:oa(new Mp(22,"columnSelection",!1,{description:de("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:oa(new CYt),contextmenu:oa(new Mp(24,"contextmenu",!0)),copyWithSyntaxHighlighting:oa(new Mp(25,"copyWithSyntaxHighlighting",!0,{description:de("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:oa(new B4e(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],wMi,{description:de("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:oa(new O1(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[de("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),de("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),de("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:de("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:oa(new B4e(28,"cursorStyle",p2.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],TMi,{description:de("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:oa(new Ay(29,"cursorSurroundingLines",0,0,1073741824,{description:de("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:oa(new O1(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[de("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),de("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:de("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:oa(new Ay(31,"cursorWidth",0,0,1073741824,{markdownDescription:de("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:oa(new Mp(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:oa(new Mp(33,"disableMonospaceOptimizations",!1)),domReadOnly:oa(new Mp(34,"domReadOnly",!1)),dragAndDrop:oa(new Mp(35,"dragAndDrop",!0,{description:de("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:oa(new wYt),dropIntoEditor:oa(new iQt),stickyScroll:oa(new LYt),experimentalWhitespaceRendering:oa(new O1(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[de("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),de("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),de("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:de("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:oa(new iL(39,"extraEditorClassName","")),fastScrollSensitivity:oa(new _7(40,"fastScrollSensitivity",5,l=>l<=0?5:l,{markdownDescription:de("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:oa(new TYt),fixedOverflowWidgets:oa(new Mp(42,"fixedOverflowWidgets",!1)),folding:oa(new Mp(43,"folding",!0,{description:de("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:oa(new O1(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[de("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),de("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:de("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:oa(new Mp(45,"foldingHighlight",!0,{description:de("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:oa(new Mp(46,"foldingImportsByDefault",!1,{description:de("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:oa(new Ay(47,"foldingMaximumRegions",5e3,10,65e3,{description:de("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:oa(new Mp(48,"unfoldOnClickAfterEndOfLine",!1,{description:de("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:oa(new iL(49,"fontFamily",MD.fontFamily,{description:de("fontFamily","Controls the font family.")})),fontInfo:oa(new EYt),fontLigatures2:oa(new AF),fontSize:oa(new DYt),fontWeight:oa(new z4e),fontVariations:oa(new ade),formatOnPaste:oa(new Mp(55,"formatOnPaste",!1,{description:de("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:oa(new Mp(56,"formatOnType",!1,{description:de("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:oa(new Mp(57,"glyphMargin",!0,{description:de("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:oa(new IYt),hideCursorInOverviewRuler:oa(new Mp(59,"hideCursorInOverviewRuler",!1,{description:de("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:oa(new NYt),inDiffEditor:oa(new Mp(61,"inDiffEditor",!1)),letterSpacing:oa(new _7(64,"letterSpacing",MD.letterSpacing,l=>_7.clamp(l,-5,20),{description:de("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:oa(new PYt),lineDecorationsWidth:oa(new FYt),lineHeight:oa(new MYt),lineNumbers:oa(new VYt),lineNumbersMinChars:oa(new Ay(69,"lineNumbersMinChars",5,1,300)),linkedEditing:oa(new Mp(70,"linkedEditing",!1,{description:de("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:oa(new Mp(71,"links",!0,{description:de("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:oa(new O1(72,"matchBrackets","always",["always","near","never"],{description:de("matchBrackets","Highlight matching brackets.")})),minimap:oa(new RYt),mouseStyle:oa(new O1(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:oa(new _7(75,"mouseWheelScrollSensitivity",1,l=>l===0?1:l,{markdownDescription:de("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:oa(new Mp(76,"mouseWheelZoom",!1,{markdownDescription:uu?de("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):de("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:oa(new Mp(77,"multiCursorMergeOverlapping",!0,{description:de("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:oa(new B4e(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],EMi,{markdownEnumDescriptions:[de("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),de("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:de({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:oa(new O1(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[de("multiCursorPaste.spread","Each cursor pastes a single line of the text."),de("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:de("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:oa(new Ay(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:de("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:oa(new O1(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[de("occurrencesHighlight.off","Does not highlight occurrences."),de("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),de("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:de("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:oa(new Mp(82,"overviewRulerBorder",!0,{description:de("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:oa(new Ay(83,"overviewRulerLanes",3,0,3)),padding:oa(new BYt),pasteAs:oa(new nQt),parameterHints:oa(new jYt),peekWidgetDefaultFocus:oa(new O1(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[de("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),de("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:de("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:oa(new Mp(88,"definitionLinkOpensInPeek",!1,{description:de("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:oa(new zYt),quickSuggestionsDelay:oa(new Ay(90,"quickSuggestionsDelay",10,0,1073741824,{description:de("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:oa(new Mp(91,"readOnly",!1)),readOnlyMessage:oa(new UYt),renameOnType:oa(new Mp(93,"renameOnType",!1,{description:de("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:de("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:oa(new Mp(94,"renderControlCharacters",!0,{description:de("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:oa(new O1(95,"renderFinalNewline",w1?"dimmed":"on",["off","on","dimmed"],{description:de("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:oa(new O1(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",de("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:de("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:oa(new Mp(97,"renderLineHighlightOnlyWhenFocus",!1,{description:de("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:oa(new O1(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:oa(new O1(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",de("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),de("renderWhitespace.selection","Render whitespace characters only on selected text."),de("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:de("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:oa(new Ay(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:oa(new Mp(101,"roundedSelection",!0,{description:de("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:oa(new HYt),scrollbar:oa(new JYt),scrollBeyondLastColumn:oa(new Ay(104,"scrollBeyondLastColumn",4,0,1073741824,{description:de("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:oa(new Mp(105,"scrollBeyondLastLine",!0,{description:de("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:oa(new Mp(106,"scrollPredominantAxis",!0,{description:de("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:oa(new Mp(107,"selectionClipboard",!0,{description:de("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:w1})),selectionHighlight:oa(new Mp(108,"selectionHighlight",!0,{description:de("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:oa(new Mp(109,"selectOnLineNumbers",!0)),showFoldingControls:oa(new O1(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[de("showFoldingControls.always","Always show the folding controls."),de("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),de("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:de("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:oa(new Mp(111,"showUnused",!0,{description:de("showUnused","Controls fading out of unused code.")})),showDeprecated:oa(new Mp(140,"showDeprecated",!0,{description:de("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:oa(new OYt),snippetSuggestions:oa(new O1(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[de("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),de("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),de("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),de("snippetSuggestions.none","Do not show snippet suggestions.")],description:de("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:oa(new QYt),smoothScrolling:oa(new Mp(114,"smoothScrolling",!1,{description:de("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:oa(new Ay(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:oa(new YYt),inlineSuggest:oa(new $Yt),inlineEdit:oa(new GYt),inlineCompletionsAccessibilityVerbose:oa(new Mp(149,"inlineCompletionsAccessibilityVerbose",!1,{description:de("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:oa(new Ay(119,"suggestFontSize",0,0,1e3,{markdownDescription:de("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:oa(new Ay(120,"suggestLineHeight",0,0,1e3,{markdownDescription:de("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:oa(new Mp(121,"suggestOnTriggerCharacters",!0,{description:de("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:oa(new O1(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[de("suggestSelection.first","Always select the first suggestion."),de("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),de("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:de("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:oa(new O1(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[de("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),de("tabCompletion.off","Disable tab completions."),de("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:de("tabCompletion","Enables tab completions.")})),tabIndex:oa(new Ay(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:oa(new qYt),unusualLineTerminators:oa(new O1(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[de("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),de("unusualLineTerminators.off","Unusual line terminators are ignored."),de("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:de("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:oa(new Mp(127,"useShadowDOM",!0)),useTabStops:oa(new Mp(128,"useTabStops",!0,{description:de("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:oa(new O1(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[de("wordBreak.normal","Use the default line break rule."),de("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:de("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:oa(new ZYt),wordSeparators:oa(new iL(131,"wordSeparators",SYt,{description:de("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:oa(new O1(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[de("wordWrap.off","Lines will never wrap."),de("wordWrap.on","Lines will wrap at the viewport width."),de({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),de({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:de({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:oa(new iL(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:oa(new iL(134,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:oa(new Ay(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:de({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:oa(new O1(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:oa(new O1(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:oa(new kYt),defaultColorDecorators:oa(new Mp(147,"defaultColorDecorators",!1,{markdownDescription:de("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:oa(new WYt),tabFocusMode:oa(new Mp(144,"tabFocusMode",!1,{markdownDescription:de("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:oa(new ant),wrappingInfo:oa(new tQt),wrappingIndent:oa(new eQt),wrappingStrategy:oa(new AYt)}});function Sc(l){I2(l)||wgi.onUnexpectedError(l)}function Rp(l){I2(l)||wgi.onUnexpectedExternalError(l)}function oQt(l){if(l instanceof Error){let{name:i,message:o}=l,s=l.stacktrace||l.stack;return{$isError:!0,name:i,message:o,stack:s,noTelemetry:cnt.isErrorNoTelemetry(l)}}return l}function I2(l){return l instanceof aP?!0:l instanceof Error&&l.name===xut&&l.message===xut}function Tgi(){let l=new Error(xut);return l.name=l.message,l}function RD(l){return l?new Error(`Illegal argument: ${l}`):new Error("Illegal argument")}function V4e(l){return l?new Error(`Illegal state: ${l}`):new Error("Illegal state")}var rQt,wgi,xut,aP,Cut,cnt,C_,Pl=Ht(()=>{rQt=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(i){setTimeout(()=>{throw i.stack?cnt.isErrorNoTelemetry(i)?new cnt(i.message+` + +`+i.stack):new Error(i.message+` + +`+i.stack):i},0)}}emit(i){this.listeners.forEach(o=>{o(i)})}onUnexpectedError(i){this.unexpectedErrorHandler(i),this.emit(i)}onUnexpectedExternalError(i){this.unexpectedErrorHandler(i)}},wgi=new rQt;xut="Canceled";aP=class extends Error{constructor(){super(xut),this.name=this.message}};Cut=class extends Error{constructor(i){super("NotSupported"),i&&(this.message=i)}},cnt=class l extends Error{constructor(i){super(i),this.name="CodeExpectedError"}static fromError(i){if(i instanceof l)return i;let o=new l;return o.message=i.message,o.stack=i.stack,o}static isErrorNoTelemetry(i){return i.name==="CodeExpectedError"}},C_=class l extends Error{constructor(i){super(i||"An unexpected bug occurred."),Object.setPrototypeOf(this,l.prototype)}}});function PF(l,i){let o=this,s=!1,c;return function(){if(s)return c;if(s=!0,i)try{c=l.apply(o,arguments)}finally{i()}else c=l.apply(o,arguments);return c}}var ude=Ht(()=>{});function PMi(l){LF=l}function CNe(l){return LF?.trackDisposable(l),l}function kNe(l){LF?.markAsDisposed(l)}function kut(l,i){LF?.setParent(l,i)}function LMi(l,i){if(LF)for(let o of l)LF.setParent(o,i)}function fde(l){return LF?.markAsSingleton(l),l}function _de(l){return typeof l=="object"&&l!==null&&typeof l.dispose=="function"&&l.dispose.length===0}function a_(l){if(jd.is(l)){let i=[];for(let o of l)if(o)try{o.dispose()}catch(s){i.push(s)}if(i.length===1)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(l)?[]:l}else if(l)return l.dispose(),l}function BD(...l){let i=Qs(()=>a_(l));return LMi(l,i),i}function Qs(l){let i=CNe({dispose:PF(()=>{kNe(i),l()})});return i}var AMi,LF,pr,Ui,Nh,wut,Tut,dde,$r=Ht(()=>{ude();sP();AMi=!1,LF=null;if(AMi){let l="__is_disposable_tracked__";PMi(new class{trackDisposable(i){let o=new Error("Potentially leaked disposable").stack;setTimeout(()=>{i[l]||console.log(o)},3e3)}setParent(i,o){if(i&&i!==Ui.None)try{i[l]=!0}catch{}}markAsDisposed(i){if(i&&i!==Ui.None)try{i[l]=!0}catch{}}markAsSingleton(i){}})}pr=class l{constructor(){this._toDispose=new Set,this._isDisposed=!1,CNe(this)}dispose(){this._isDisposed||(kNe(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{a_(this._toDispose)}finally{this._toDispose.clear()}}add(i){if(!i)return i;if(i===this)throw new Error("Cannot register a disposable on itself!");return kut(i,this),this._isDisposed?l.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(i),i}deleteAndLeak(i){i&&this._toDispose.has(i)&&(this._toDispose.delete(i),kut(i,null))}};pr.DISABLE_DISPOSED_WARNING=!1;Ui=class{constructor(){this._store=new pr,CNe(this),kut(this._store,this)}dispose(){kNe(this),this._store.dispose()}_register(i){if(i===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(i)}};Ui.None=Object.freeze({dispose(){}});Nh=class{constructor(){this._isDisposed=!1,CNe(this)}get value(){return this._isDisposed?void 0:this._value}set value(i){var o;this._isDisposed||i===this._value||((o=this._value)===null||o===void 0||o.dispose(),i&&kut(i,this),this._value=i)}clear(){this.value=void 0}dispose(){var i;this._isDisposed=!0,kNe(this),(i=this._value)===null||i===void 0||i.dispose(),this._value=void 0}},wut=class{constructor(i){this._disposable=i,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}},Tut=class{constructor(i){this.object=i}dispose(){}},dde=class{constructor(){this._store=new Map,this._isDisposed=!1,CNe(this)}dispose(){kNe(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{a_(this._store.values())}finally{this._store.clear()}}get(i){return this._store.get(i)}set(i,o,s=!1){var c;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),s||(c=this._store.get(i))===null||c===void 0||c.dispose(),this._store.set(i,o)}deleteAndDispose(i){var o;(o=this._store.get(i))===null||o===void 0||o.dispose(),this._store.delete(i)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}});var OMi,A0,rL=Ht(()=>{OMi=globalThis.performance&&typeof globalThis.performance.now=="function",A0=class l{static create(i){return new l(i)}constructor(i){this._now=OMi&&i===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}});var FMi,Dgi,MMi,Yo,unt,Igi,sQt,dnt,aQt,cQt,H4e,RMi,BMi,lnt,fn,Ngi,Eut,XB,U4e,Dut,Iut,PK,fnt,Pa=Ht(()=>{Pl();ude();$r();f7();rL();FMi=!1,Dgi=!1,MMi=!1;(function(l){l.None=()=>Ui.None;function i(gr){if(MMi){let{onDidAddListener:er}=gr,Di=dnt.create(),rs=0;gr.onDidAddListener=()=>{++rs===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),Di.print()),er?.()}}}function o(gr,er){return F(gr,()=>{},0,void 0,!0,void 0,er)}l.defer=o;function s(gr){return(er,Di=null,rs)=>{let Ls=!1,_i;return _i=gr(wc=>{if(!Ls)return _i?_i.dispose():Ls=!0,er.call(Di,wc)},null,rs),Ls&&_i.dispose(),_i}}l.once=s;function c(gr,er,Di){return O((rs,Ls=null,_i)=>gr(wc=>rs.call(Ls,er(wc)),null,_i),Di)}l.map=c;function _(gr,er,Di){return O((rs,Ls=null,_i)=>gr(wc=>{er(wc),rs.call(Ls,wc)},null,_i),Di)}l.forEach=_;function h(gr,er,Di){return O((rs,Ls=null,_i)=>gr(wc=>er(wc)&&rs.call(Ls,wc),null,_i),Di)}l.filter=h;function b(gr){return gr}l.signal=b;function w(...gr){return(er,Di=null,rs)=>{let Ls=BD(...gr.map(_i=>_i(wc=>er.call(Di,wc))));return j(Ls,rs)}}l.any=w;function D(gr,er,Di,rs){let Ls=Di;return c(gr,_i=>(Ls=er(Ls,_i),Ls),rs)}l.reduce=D;function O(gr,er){let Di,rs={onWillAddFirstListener(){Di=gr(Ls.fire,Ls)},onDidRemoveLastListener(){Di?.dispose()}};er||i(rs);let Ls=new fn(rs);return er?.add(Ls),Ls.event}function j(gr,er){return er instanceof Array?er.push(gr):er&&er.add(gr),gr}function F(gr,er,Di=100,rs=!1,Ls=!1,_i,wc){let Uo,tc,vo,kl=0,qa,Wy={leakWarningThreshold:_i,onWillAddFirstListener(){Uo=gr(ro=>{kl++,tc=er(tc,ro),rs&&!vo&&(Hb.fire(tc),tc=void 0),qa=()=>{let bd=tc;tc=void 0,vo=void 0,(!rs||kl>1)&&Hb.fire(bd),kl=0},typeof Di=="number"?(clearTimeout(vo),vo=setTimeout(qa,Di)):vo===void 0&&(vo=0,queueMicrotask(qa))})},onWillRemoveListener(){Ls&&kl>0&&qa?.()},onDidRemoveLastListener(){qa=void 0,Uo.dispose()}};wc||i(Wy);let Hb=new fn(Wy);return wc?.add(Hb),Hb.event}l.debounce=F;function X(gr,er=0,Di){return l.debounce(gr,(rs,Ls)=>rs?(rs.push(Ls),rs):[Ls],er,void 0,!0,void 0,Di)}l.accumulate=X;function K(gr,er=(rs,Ls)=>rs===Ls,Di){let rs=!0,Ls;return h(gr,_i=>{let wc=rs||!er(_i,Ls);return rs=!1,Ls=_i,wc},Di)}l.latch=K;function re(gr,er,Di){return[l.filter(gr,er,Di),l.filter(gr,rs=>!er(rs),Di)]}l.split=re;function Pe(gr,er=!1,Di=[],rs){let Ls=Di.slice(),_i=gr(tc=>{Ls?Ls.push(tc):Uo.fire(tc)});rs&&rs.add(_i);let wc=()=>{Ls?.forEach(tc=>Uo.fire(tc)),Ls=null},Uo=new fn({onWillAddFirstListener(){_i||(_i=gr(tc=>Uo.fire(tc)),rs&&rs.add(_i))},onDidAddFirstListener(){Ls&&(er?setTimeout(wc):wc())},onDidRemoveLastListener(){_i&&_i.dispose(),_i=null}});return rs&&rs.add(Uo),Uo.event}l.buffer=Pe;function Le(gr,er){return(rs,Ls,_i)=>{let wc=er(new Ye);return gr(function(Uo){let tc=wc.evaluate(Uo);tc!==Je&&rs.call(Ls,tc)},void 0,_i)}}l.chain=Le;let Je=Symbol("HaltChainable");class Ye{constructor(){this.steps=[]}map(er){return this.steps.push(er),this}forEach(er){return this.steps.push(Di=>(er(Di),Di)),this}filter(er){return this.steps.push(Di=>er(Di)?Di:Je),this}reduce(er,Di){let rs=Di;return this.steps.push(Ls=>(rs=er(rs,Ls),rs)),this}latch(er=(Di,rs)=>Di===rs){let Di=!0,rs;return this.steps.push(Ls=>{let _i=Di||!er(Ls,rs);return Di=!1,rs=Ls,_i?Ls:Je}),this}evaluate(er){for(let Di of this.steps)if(er=Di(er),er===Je)break;return er}}function ft(gr,er,Di=rs=>rs){let rs=(...Uo)=>wc.fire(Di(...Uo)),Ls=()=>gr.on(er,rs),_i=()=>gr.removeListener(er,rs),wc=new fn({onWillAddFirstListener:Ls,onDidRemoveLastListener:_i});return wc.event}l.fromNodeEventEmitter=ft;function Ct(gr,er,Di=rs=>rs){let rs=(...Uo)=>wc.fire(Di(...Uo)),Ls=()=>gr.addEventListener(er,rs),_i=()=>gr.removeEventListener(er,rs),wc=new fn({onWillAddFirstListener:Ls,onDidRemoveLastListener:_i});return wc.event}l.fromDOMEventEmitter=Ct;function Et(gr){return new Promise(er=>s(gr)(er))}l.toPromise=Et;function St(gr){let er=new fn;return gr.then(Di=>{er.fire(Di)},()=>{er.fire(void 0)}).finally(()=>{er.dispose()}),er.event}l.fromPromise=St;function Mi(gr,er,Di){return er(Di),gr(rs=>er(rs))}l.runAndSubscribe=Mi;class zi{constructor(er,Di){this._observable=er,this._counter=0,this._hasChanged=!1;let rs={onWillAddFirstListener:()=>{er.addObserver(this)},onDidRemoveLastListener:()=>{er.removeObserver(this)}};Di||i(rs),this.emitter=new fn(rs),Di&&Di.add(this.emitter)}beginUpdate(er){this._counter++}handlePossibleChange(er){}handleChange(er,Di){this._hasChanged=!0}endUpdate(er){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Vr(gr,er){return new zi(gr,er).emitter.event}l.fromObservable=Vr;function sn(gr){return(er,Di,rs)=>{let Ls=0,_i=!1,wc={beginUpdate(){Ls++},endUpdate(){Ls--,Ls===0&&(gr.reportChanges(),_i&&(_i=!1,er.call(Di)))},handlePossibleChange(){},handleChange(){_i=!0}};gr.addObserver(wc),gr.reportChanges();let Uo={dispose(){gr.removeObserver(wc)}};return rs instanceof pr?rs.add(Uo):Array.isArray(rs)&&rs.push(Uo),Uo}}l.fromObservableLight=sn})(Yo||(Yo={}));unt=class l{constructor(i){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${i}_${l._idPool++}`,l.all.add(this)}start(i){this._stopWatch=new A0,this.listenerCount=i}stop(){if(this._stopWatch){let i=this._stopWatch.elapsed();this.durations.push(i),this.elapsedOverall+=i,this.invocationCount+=1,this._stopWatch=void 0}}};unt.all=new Set;unt._idPool=0;Igi=-1,sQt=class{constructor(i,o,s=Math.random().toString(18).slice(2,5)){this._errorHandler=i,this.threshold=o,this.name=s,this._warnCountdown=0}dispose(){var i;(i=this._stacks)===null||i===void 0||i.clear()}check(i,o){let s=this.threshold;if(s<=0||o{let _=this._stacks.get(i.value)||0;this._stacks.set(i.value,_-1)}}getMostFrequentStack(){if(!this._stacks)return;let i,o=0;for(let[s,c]of this._stacks)(!i||o{if(l instanceof H4e)i(l);else for(let o=0;o{typeof l=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(l))}):void 0,fn=class{constructor(i){var o,s,c,_,h,b;this._size=0,this._options=i,this._leakageMon=Igi>0||!((o=this._options)===null||o===void 0)&&o.leakWarningThreshold?new sQt((s=i?.onListenerError)!==null&&s!==void 0?s:Sc,(_=(c=this._options)===null||c===void 0?void 0:c.leakWarningThreshold)!==null&&_!==void 0?_:Igi):void 0,this._perfMon=!((h=this._options)===null||h===void 0)&&h._profName?new unt(this._options._profName):void 0,this._deliveryQueue=(b=this._options)===null||b===void 0?void 0:b.deliveryQueue}dispose(){var i,o,s,c;if(!this._disposed){if(this._disposed=!0,((i=this._deliveryQueue)===null||i===void 0?void 0:i.current)===this&&this._deliveryQueue.reset(),this._listeners){if(Dgi){let _=this._listeners;queueMicrotask(()=>{BMi(_,h=>{var b;return(b=h.stack)===null||b===void 0?void 0:b.print()})})}this._listeners=void 0,this._size=0}(s=(o=this._options)===null||o===void 0?void 0:o.onDidRemoveLastListener)===null||s===void 0||s.call(o),(c=this._leakageMon)===null||c===void 0||c.dispose()}}get event(){var i;return(i=this._event)!==null&&i!==void 0||(this._event=(o,s,c)=>{var _,h,b,w,D,O,j;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let Pe=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(Pe);let Le=(_=this._leakageMon.getMostFrequentStack())!==null&&_!==void 0?_:["UNKNOWN stack",-1],Je=new cQt(`${Pe}. HINT: Stack shows most frequent listener (${Le[1]}-times)`,Le[0]);return(((h=this._options)===null||h===void 0?void 0:h.onListenerError)||Sc)(Je),Ui.None}if(this._disposed)return Ui.None;s&&(o=o.bind(s));let F=new H4e(o),X,K;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(F.stack=dnt.create(),X=this._leakageMon.check(F.stack,this._size+1)),Dgi&&(F.stack=K??dnt.create()),this._listeners?this._listeners instanceof H4e?((j=this._deliveryQueue)!==null&&j!==void 0||(this._deliveryQueue=new Eut),this._listeners=[this._listeners,F]):this._listeners.push(F):((w=(b=this._options)===null||b===void 0?void 0:b.onWillAddFirstListener)===null||w===void 0||w.call(b,this),this._listeners=F,(O=(D=this._options)===null||D===void 0?void 0:D.onDidAddFirstListener)===null||O===void 0||O.call(D,this)),this._size++;let re=Qs(()=>{lnt?.unregister(re),X?.(),this._removeListener(F)});if(c instanceof pr?c.add(re):Array.isArray(c)&&c.push(re),lnt){let Pe=new Error().stack.split(` +`).slice(2).join(` +`).trim();lnt.register(re,Pe,re)}return re}),this._event}_removeListener(i){var o,s,c,_;if((s=(o=this._options)===null||o===void 0?void 0:o.onWillRemoveListener)===null||s===void 0||s.call(o,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(_=(c=this._options)===null||c===void 0?void 0:c.onDidRemoveLastListener)===null||_===void 0||_.call(c,this),this._size=0;return}let h=this._listeners,b=h.indexOf(i);if(b===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,h[b]=void 0;let w=this._deliveryQueue.current===this;if(this._size*RMi<=h.length){let D=0;for(let O=0;O0}},Ngi=()=>new Eut,Eut=class{constructor(){this.i=-1,this.end=0}enqueue(i,o,s){this.i=0,this.end=s,this.current=i,this.value=o}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},XB=class extends fn{constructor(i){super(i),this._isPaused=0,this._eventQueue=new L1,this._mergeFn=i?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){let i=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(i))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(i){this._size&&(this._isPaused!==0?this._eventQueue.push(i):super.fire(i))}},U4e=class extends XB{constructor(i){var o;super(i),this._delay=(o=i.delay)!==null&&o!==void 0?o:100}fire(i){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(i)}},Dut=class extends fn{constructor(i){super(i),this._queuedEvents=[],this._mergeFn=i?.merge}fire(i){this.hasListeners()&&(this._queuedEvents.push(i),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(o=>super.fire(o)),this._queuedEvents=[]}))}},Iut=class{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new fn({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(i){let o={event:i,listener:null};return this.events.push(o),this.hasListeners&&this.hook(o),Qs(PF(()=>{this.hasListeners&&this.unhook(o);let c=this.events.indexOf(o);this.events.splice(c,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(i=>this.hook(i))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(i=>this.unhook(i))}hook(i){i.listener=i.event(o=>this.emitter.fire(o))}unhook(i){var o;(o=i.listener)===null||o===void 0||o.dispose(),i.listener=null}dispose(){var i;this.emitter.dispose();for(let o of this.events)(i=o.listener)===null||i===void 0||i.dispose();this.events=[]}},PK=class{constructor(){this.data=[]}wrapEvent(i,o,s){return(c,_,h)=>i(b=>{var w;let D=this.data[this.data.length-1];if(!o){D?D.buffers.push(()=>c.call(_,b)):c.call(_,b);return}let O=D;if(!O){c.call(_,o(s,b));return}(w=O.items)!==null&&w!==void 0||(O.items=[]),O.items.push(b),O.buffers.length===0&&D.buffers.push(()=>{var j;(j=O.reducedResult)!==null&&j!==void 0||(O.reducedResult=s?O.items.reduce(o,s):O.items.reduce(o)),c.call(_,O.reducedResult)})},void 0,h)}bufferEvents(i){let o={buffers:new Array};this.data.push(o);let s=i();return this.data.pop(),o.buffers.forEach(c=>c()),s}},fnt=class{constructor(){this.listening=!1,this.inputEvent=Yo.None,this.inputEventListener=Ui.None,this.emitter=new fn({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(i){this.inputEvent=i,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=i(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}});function lQt(l){let i=new k_;return l.add({dispose(){i.cancel()}}),i.token}var Agi,Du,J4e,k_,am=Ht(()=>{Pa();Agi=Object.freeze(function(l,i){let o=setTimeout(l.bind(i),0);return{dispose(){clearTimeout(o)}}});(function(l){function i(o){return o===l.None||o===l.Cancelled||o instanceof J4e?!0:!o||typeof o!="object"?!1:typeof o.isCancellationRequested=="boolean"&&typeof o.onCancellationRequested=="function"}l.isCancellationToken=i,l.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Yo.None}),l.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Agi})})(Du||(Du={}));J4e=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Agi:(this._emitter||(this._emitter=new fn),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},k_=class{constructor(i){this._token=void 0,this._parentListener=void 0,this._parentListener=i&&i.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new J4e),this._token}cancel(){this._token?this._token instanceof J4e&&this._token.cancel():this._token=Du.Cancelled}dispose(i=!1){var o;i&&this.cancel(),(o=this._parentListener)===null||o===void 0||o.dispose(),this._token?this._token instanceof J4e&&this._token.dispose():this._token=Du.None}}});function vv(l,i){let o=(i&65535)<<16>>>0;return(l|o)>>>0}var _nt,Nut,uQt,dQt,_Qt,WMi,zMi,VMi,HMi,Aut,fQt,Uj,p7=Ht(()=>{_nt=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(i,o){this._keyCodeToStr[i]=o,this._strToKeyCode[o.toLowerCase()]=i}keyCodeToStr(i){return this._keyCodeToStr[i]}strToKeyCode(i){return this._strToKeyCode[i.toLowerCase()]||0}},Nut=new _nt,uQt=new _nt,dQt=new _nt,_Qt=new Array(230),WMi={},zMi=[],VMi=Object.create(null),HMi=Object.create(null),Aut=[],fQt=[];for(let l=0;l<=193;l++)Aut[l]=-1;for(let l=0;l<=132;l++)fQt[l]=-1;(function(){let l="",i=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",l,l],[1,1,"Hyper",0,l,0,l,l,l],[1,2,"Super",0,l,0,l,l,l],[1,3,"Fn",0,l,0,l,l,l],[1,4,"FnLock",0,l,0,l,l,l],[1,5,"Suspend",0,l,0,l,l,l],[1,6,"Resume",0,l,0,l,l,l],[1,7,"Turbo",0,l,0,l,l,l],[1,8,"Sleep",0,l,0,"VK_SLEEP",l,l],[1,9,"WakeUp",0,l,0,l,l,l],[0,10,"KeyA",31,"A",65,"VK_A",l,l],[0,11,"KeyB",32,"B",66,"VK_B",l,l],[0,12,"KeyC",33,"C",67,"VK_C",l,l],[0,13,"KeyD",34,"D",68,"VK_D",l,l],[0,14,"KeyE",35,"E",69,"VK_E",l,l],[0,15,"KeyF",36,"F",70,"VK_F",l,l],[0,16,"KeyG",37,"G",71,"VK_G",l,l],[0,17,"KeyH",38,"H",72,"VK_H",l,l],[0,18,"KeyI",39,"I",73,"VK_I",l,l],[0,19,"KeyJ",40,"J",74,"VK_J",l,l],[0,20,"KeyK",41,"K",75,"VK_K",l,l],[0,21,"KeyL",42,"L",76,"VK_L",l,l],[0,22,"KeyM",43,"M",77,"VK_M",l,l],[0,23,"KeyN",44,"N",78,"VK_N",l,l],[0,24,"KeyO",45,"O",79,"VK_O",l,l],[0,25,"KeyP",46,"P",80,"VK_P",l,l],[0,26,"KeyQ",47,"Q",81,"VK_Q",l,l],[0,27,"KeyR",48,"R",82,"VK_R",l,l],[0,28,"KeyS",49,"S",83,"VK_S",l,l],[0,29,"KeyT",50,"T",84,"VK_T",l,l],[0,30,"KeyU",51,"U",85,"VK_U",l,l],[0,31,"KeyV",52,"V",86,"VK_V",l,l],[0,32,"KeyW",53,"W",87,"VK_W",l,l],[0,33,"KeyX",54,"X",88,"VK_X",l,l],[0,34,"KeyY",55,"Y",89,"VK_Y",l,l],[0,35,"KeyZ",56,"Z",90,"VK_Z",l,l],[0,36,"Digit1",22,"1",49,"VK_1",l,l],[0,37,"Digit2",23,"2",50,"VK_2",l,l],[0,38,"Digit3",24,"3",51,"VK_3",l,l],[0,39,"Digit4",25,"4",52,"VK_4",l,l],[0,40,"Digit5",26,"5",53,"VK_5",l,l],[0,41,"Digit6",27,"6",54,"VK_6",l,l],[0,42,"Digit7",28,"7",55,"VK_7",l,l],[0,43,"Digit8",29,"8",56,"VK_8",l,l],[0,44,"Digit9",30,"9",57,"VK_9",l,l],[0,45,"Digit0",21,"0",48,"VK_0",l,l],[1,46,"Enter",3,"Enter",13,"VK_RETURN",l,l],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",l,l],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",l,l],[1,49,"Tab",2,"Tab",9,"VK_TAB",l,l],[1,50,"Space",10,"Space",32,"VK_SPACE",l,l],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,l,0,l,l,l],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",l,l],[1,64,"F1",59,"F1",112,"VK_F1",l,l],[1,65,"F2",60,"F2",113,"VK_F2",l,l],[1,66,"F3",61,"F3",114,"VK_F3",l,l],[1,67,"F4",62,"F4",115,"VK_F4",l,l],[1,68,"F5",63,"F5",116,"VK_F5",l,l],[1,69,"F6",64,"F6",117,"VK_F6",l,l],[1,70,"F7",65,"F7",118,"VK_F7",l,l],[1,71,"F8",66,"F8",119,"VK_F8",l,l],[1,72,"F9",67,"F9",120,"VK_F9",l,l],[1,73,"F10",68,"F10",121,"VK_F10",l,l],[1,74,"F11",69,"F11",122,"VK_F11",l,l],[1,75,"F12",70,"F12",123,"VK_F12",l,l],[1,76,"PrintScreen",0,l,0,l,l,l],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",l,l],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",l,l],[1,79,"Insert",19,"Insert",45,"VK_INSERT",l,l],[1,80,"Home",14,"Home",36,"VK_HOME",l,l],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",l,l],[1,82,"Delete",20,"Delete",46,"VK_DELETE",l,l],[1,83,"End",13,"End",35,"VK_END",l,l],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",l,l],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",l],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",l],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",l],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",l],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",l,l],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",l,l],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",l,l],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",l,l],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",l,l],[1,94,"NumpadEnter",3,l,0,l,l,l],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",l,l],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",l,l],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",l,l],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",l,l],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",l,l],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",l,l],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",l,l],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",l,l],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",l,l],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",l,l],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",l,l],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",l,l],[1,107,"ContextMenu",58,"ContextMenu",93,l,l,l],[1,108,"Power",0,l,0,l,l,l],[1,109,"NumpadEqual",0,l,0,l,l,l],[1,110,"F13",71,"F13",124,"VK_F13",l,l],[1,111,"F14",72,"F14",125,"VK_F14",l,l],[1,112,"F15",73,"F15",126,"VK_F15",l,l],[1,113,"F16",74,"F16",127,"VK_F16",l,l],[1,114,"F17",75,"F17",128,"VK_F17",l,l],[1,115,"F18",76,"F18",129,"VK_F18",l,l],[1,116,"F19",77,"F19",130,"VK_F19",l,l],[1,117,"F20",78,"F20",131,"VK_F20",l,l],[1,118,"F21",79,"F21",132,"VK_F21",l,l],[1,119,"F22",80,"F22",133,"VK_F22",l,l],[1,120,"F23",81,"F23",134,"VK_F23",l,l],[1,121,"F24",82,"F24",135,"VK_F24",l,l],[1,122,"Open",0,l,0,l,l,l],[1,123,"Help",0,l,0,l,l,l],[1,124,"Select",0,l,0,l,l,l],[1,125,"Again",0,l,0,l,l,l],[1,126,"Undo",0,l,0,l,l,l],[1,127,"Cut",0,l,0,l,l,l],[1,128,"Copy",0,l,0,l,l,l],[1,129,"Paste",0,l,0,l,l,l],[1,130,"Find",0,l,0,l,l,l],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",l,l],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",l,l],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",l,l],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",l,l],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",l,l],[1,136,"KanaMode",0,l,0,l,l,l],[0,137,"IntlYen",0,l,0,l,l,l],[1,138,"Convert",0,l,0,l,l,l],[1,139,"NonConvert",0,l,0,l,l,l],[1,140,"Lang1",0,l,0,l,l,l],[1,141,"Lang2",0,l,0,l,l,l],[1,142,"Lang3",0,l,0,l,l,l],[1,143,"Lang4",0,l,0,l,l,l],[1,144,"Lang5",0,l,0,l,l,l],[1,145,"Abort",0,l,0,l,l,l],[1,146,"Props",0,l,0,l,l,l],[1,147,"NumpadParenLeft",0,l,0,l,l,l],[1,148,"NumpadParenRight",0,l,0,l,l,l],[1,149,"NumpadBackspace",0,l,0,l,l,l],[1,150,"NumpadMemoryStore",0,l,0,l,l,l],[1,151,"NumpadMemoryRecall",0,l,0,l,l,l],[1,152,"NumpadMemoryClear",0,l,0,l,l,l],[1,153,"NumpadMemoryAdd",0,l,0,l,l,l],[1,154,"NumpadMemorySubtract",0,l,0,l,l,l],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",l,l],[1,156,"NumpadClearEntry",0,l,0,l,l,l],[1,0,l,5,"Ctrl",17,"VK_CONTROL",l,l],[1,0,l,4,"Shift",16,"VK_SHIFT",l,l],[1,0,l,6,"Alt",18,"VK_MENU",l,l],[1,0,l,57,"Meta",91,"VK_COMMAND",l,l],[1,157,"ControlLeft",5,l,0,"VK_LCONTROL",l,l],[1,158,"ShiftLeft",4,l,0,"VK_LSHIFT",l,l],[1,159,"AltLeft",6,l,0,"VK_LMENU",l,l],[1,160,"MetaLeft",57,l,0,"VK_LWIN",l,l],[1,161,"ControlRight",5,l,0,"VK_RCONTROL",l,l],[1,162,"ShiftRight",4,l,0,"VK_RSHIFT",l,l],[1,163,"AltRight",6,l,0,"VK_RMENU",l,l],[1,164,"MetaRight",57,l,0,"VK_RWIN",l,l],[1,165,"BrightnessUp",0,l,0,l,l,l],[1,166,"BrightnessDown",0,l,0,l,l,l],[1,167,"MediaPlay",0,l,0,l,l,l],[1,168,"MediaRecord",0,l,0,l,l,l],[1,169,"MediaFastForward",0,l,0,l,l,l],[1,170,"MediaRewind",0,l,0,l,l,l],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",l,l],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",l,l],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",l,l],[1,174,"Eject",0,l,0,l,l,l],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",l,l],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",l,l],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",l,l],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",l,l],[1,179,"LaunchApp1",0,l,0,"VK_MEDIA_LAUNCH_APP1",l,l],[1,180,"SelectTask",0,l,0,l,l,l],[1,181,"LaunchScreenSaver",0,l,0,l,l,l],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",l,l],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",l,l],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",l,l],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",l,l],[1,186,"BrowserStop",0,l,0,"VK_BROWSER_STOP",l,l],[1,187,"BrowserRefresh",0,l,0,"VK_BROWSER_REFRESH",l,l],[1,188,"BrowserFavorites",0,l,0,"VK_BROWSER_FAVORITES",l,l],[1,189,"ZoomToggle",0,l,0,l,l,l],[1,190,"MailReply",0,l,0,l,l,l],[1,191,"MailForward",0,l,0,l,l,l],[1,192,"MailSend",0,l,0,l,l,l],[1,0,l,114,"KeyInComposition",229,l,l,l],[1,0,l,116,"ABNT_C2",194,"VK_ABNT_C2",l,l],[1,0,l,96,"OEM_8",223,"VK_OEM_8",l,l],[1,0,l,0,l,0,"VK_KANA",l,l],[1,0,l,0,l,0,"VK_HANGUL",l,l],[1,0,l,0,l,0,"VK_JUNJA",l,l],[1,0,l,0,l,0,"VK_FINAL",l,l],[1,0,l,0,l,0,"VK_HANJA",l,l],[1,0,l,0,l,0,"VK_KANJI",l,l],[1,0,l,0,l,0,"VK_CONVERT",l,l],[1,0,l,0,l,0,"VK_NONCONVERT",l,l],[1,0,l,0,l,0,"VK_ACCEPT",l,l],[1,0,l,0,l,0,"VK_MODECHANGE",l,l],[1,0,l,0,l,0,"VK_SELECT",l,l],[1,0,l,0,l,0,"VK_PRINT",l,l],[1,0,l,0,l,0,"VK_EXECUTE",l,l],[1,0,l,0,l,0,"VK_SNAPSHOT",l,l],[1,0,l,0,l,0,"VK_HELP",l,l],[1,0,l,0,l,0,"VK_APPS",l,l],[1,0,l,0,l,0,"VK_PROCESSKEY",l,l],[1,0,l,0,l,0,"VK_PACKET",l,l],[1,0,l,0,l,0,"VK_DBE_SBCSCHAR",l,l],[1,0,l,0,l,0,"VK_DBE_DBCSCHAR",l,l],[1,0,l,0,l,0,"VK_ATTN",l,l],[1,0,l,0,l,0,"VK_CRSEL",l,l],[1,0,l,0,l,0,"VK_EXSEL",l,l],[1,0,l,0,l,0,"VK_EREOF",l,l],[1,0,l,0,l,0,"VK_PLAY",l,l],[1,0,l,0,l,0,"VK_ZOOM",l,l],[1,0,l,0,l,0,"VK_NONAME",l,l],[1,0,l,0,l,0,"VK_PA1",l,l],[1,0,l,0,l,0,"VK_OEM_CLEAR",l,l]],o=[],s=[];for(let c of i){let[_,h,b,w,D,O,j,F,X]=c;if(s[h]||(s[h]=!0,zMi[h]=b,VMi[b]=h,HMi[b.toLowerCase()]=h,_&&(Aut[h]=w,w!==0&&w!==3&&w!==5&&w!==4&&w!==6&&w!==57&&(fQt[w]=h))),!o[w]){if(o[w]=!0,!D)throw new Error(`String representation missing for key code ${w} around scan code ${b}`);Nut.define(w,D),uQt.define(w,F||D),dQt.define(w,X||F||D)}O&&(_Qt[O]=w),j&&(WMi[j]=w)}fQt[3]=46})();(function(l){function i(b){return Nut.keyCodeToStr(b)}l.toString=i;function o(b){return Nut.strToKeyCode(b)}l.fromString=o;function s(b){return uQt.keyCodeToStr(b)}l.toUserSettingsUS=s;function c(b){return dQt.keyCodeToStr(b)}l.toUserSettingsGeneral=c;function _(b){return uQt.strToKeyCode(b)||dQt.strToKeyCode(b)}l.fromUserSettings=_;function h(b){if(b>=98&&b<=113)return null;switch(b){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Nut.keyCodeToStr(b)}l.toElectronAccelerator=h})(Uj||(Uj={}))});var q4e,pQt,pnt,mnt,Pgi,mQt=Ht(()=>{uf();pQt=globalThis.vscode;if(typeof pQt<"u"&&typeof pQt.process<"u"){let l=pQt.process;q4e={get platform(){return l.platform},get arch(){return l.arch},get env(){return l.env},cwd(){return l.cwd()}}}else typeof process<"u"?q4e={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:q4e={get platform(){return Ny?"win32":uu?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};pnt=q4e.cwd,mnt=q4e.env,Pgi=q4e.platform});function XMi(l,i){if(l===null||typeof l!="object")throw new Put(i,"Object",l)}function N2(l,i){if(typeof l!="string")throw new Put(i,"string",l)}function Lg(l){return l===cP||l===m7}function hQt(l){return l===cP}function mde(l){return l>=JMi&&l<=$Mi||l>=qMi&&l<=GMi}function Lut(l,i,o,s){let c="",_=0,h=-1,b=0,w=0;for(let D=0;D<=l.length;++D){if(D2){let O=c.lastIndexOf(o);O===-1?(c="",_=0):(c=c.slice(0,O),_=c.length-1-c.lastIndexOf(o)),h=D,b=0;continue}else if(c.length!==0){c="",_=0,h=D,b=0;continue}}i&&(c+=c.length>0?`${o}..`:"..",_=2)}else c.length>0?c+=`${o}${l.slice(h+1,D)}`:c=l.slice(h+1,D),_=D-h-1;h=D,b=0}else w===hde&&b!==-1?++b:b=-1}return c}function Lgi(l,i){XMi(i,"pathObject");let o=i.dir||i.root,s=i.base||`${i.name||""}${i.ext||""}`;return o?o===i.root?`${o}${s}`:`${o}${l}${s}`:s}var JMi,qMi,$Mi,GMi,hde,cP,m7,pde,KMi,Put,gde,FL,YMi,F1,Out,Ogi,Fgi,Fut,Jj,Mgi,OF,DG=Ht(()=>{mQt();JMi=65,qMi=97,$Mi=90,GMi=122,hde=46,cP=47,m7=92,pde=58,KMi=63,Put=class extends Error{constructor(i,o,s){let c;typeof o=="string"&&o.indexOf("not ")===0?(c="must not be",o=o.replace(/^not /,"")):c="must be";let _=i.indexOf(".")!==-1?"property":"argument",h=`The "${i}" ${_} ${c} of type ${o}`;h+=`. Received type ${typeof s}`,super(h),this.code="ERR_INVALID_ARG_TYPE"}};gde=Pgi==="win32";FL={resolve(...l){let i="",o="",s=!1;for(let c=l.length-1;c>=-1;c--){let _;if(c>=0){if(_=l[c],N2(_,"path"),_.length===0)continue}else i.length===0?_=pnt():(_=mnt[`=${i}`]||pnt(),(_===void 0||_.slice(0,2).toLowerCase()!==i.toLowerCase()&&_.charCodeAt(2)===m7)&&(_=`${i}\\`));let h=_.length,b=0,w="",D=!1,O=_.charCodeAt(0);if(h===1)Lg(O)&&(b=1,D=!0);else if(Lg(O))if(D=!0,Lg(_.charCodeAt(1))){let j=2,F=j;for(;j2&&Lg(_.charCodeAt(2))&&(D=!0,b=3));if(w.length>0)if(i.length>0){if(w.toLowerCase()!==i.toLowerCase())continue}else i=w;if(s){if(i.length>0)break}else if(o=`${_.slice(b)}\\${o}`,s=D,D&&i.length>0)break}return o=Lut(o,!s,"\\",Lg),s?`${i}\\${o}`:`${i}${o}`||"."},normalize(l){N2(l,"path");let i=l.length;if(i===0)return".";let o=0,s,c=!1,_=l.charCodeAt(0);if(i===1)return hQt(_)?"\\":l;if(Lg(_))if(c=!0,Lg(l.charCodeAt(1))){let b=2,w=b;for(;b2&&Lg(l.charCodeAt(2))&&(c=!0,o=3));let h=o0&&Lg(l.charCodeAt(i-1))&&(h+="\\"),s===void 0?c?`\\${h}`:h:c?`${s}\\${h}`:`${s}${h}`},isAbsolute(l){N2(l,"path");let i=l.length;if(i===0)return!1;let o=l.charCodeAt(0);return Lg(o)||i>2&&mde(o)&&l.charCodeAt(1)===pde&&Lg(l.charCodeAt(2))},join(...l){if(l.length===0)return".";let i,o;for(let _=0;_0&&(i===void 0?i=o=h:i+=`\\${h}`)}if(i===void 0)return".";let s=!0,c=0;if(typeof o=="string"&&Lg(o.charCodeAt(0))){++c;let _=o.length;_>1&&Lg(o.charCodeAt(1))&&(++c,_>2&&(Lg(o.charCodeAt(2))?++c:s=!1))}if(s){for(;c=2&&(i=`\\${i.slice(c)}`)}return FL.normalize(i)},relative(l,i){if(N2(l,"from"),N2(i,"to"),l===i)return"";let o=FL.resolve(l),s=FL.resolve(i);if(o===s||(l=o.toLowerCase(),i=s.toLowerCase(),l===i))return"";let c=0;for(;cc&&l.charCodeAt(_-1)===m7;)_--;let h=_-c,b=0;for(;bb&&i.charCodeAt(w-1)===m7;)w--;let D=w-b,O=hO){if(i.charCodeAt(b+F)===m7)return s.slice(b+F+1);if(F===2)return s.slice(b+F)}h>O&&(l.charCodeAt(c+F)===m7?j=F:F===2&&(j=3)),j===-1&&(j=0)}let X="";for(F=c+j+1;F<=_;++F)(F===_||l.charCodeAt(F)===m7)&&(X+=X.length===0?"..":"\\..");return b+=j,X.length>0?`${X}${s.slice(b,w)}`:(s.charCodeAt(b)===m7&&++b,s.slice(b,w))},toNamespacedPath(l){if(typeof l!="string"||l.length===0)return l;let i=FL.resolve(l);if(i.length<=2)return l;if(i.charCodeAt(0)===m7){if(i.charCodeAt(1)===m7){let o=i.charCodeAt(2);if(o!==KMi&&o!==hde)return`\\\\?\\UNC\\${i.slice(2)}`}}else if(mde(i.charCodeAt(0))&&i.charCodeAt(1)===pde&&i.charCodeAt(2)===m7)return`\\\\?\\${i}`;return l},dirname(l){N2(l,"path");let i=l.length;if(i===0)return".";let o=-1,s=0,c=l.charCodeAt(0);if(i===1)return Lg(c)?l:".";if(Lg(c)){if(o=s=1,Lg(l.charCodeAt(1))){let b=2,w=b;for(;b2&&Lg(l.charCodeAt(2))?3:2,s=o);let _=-1,h=!0;for(let b=i-1;b>=s;--b)if(Lg(l.charCodeAt(b))){if(!h){_=b;break}}else h=!1;if(_===-1){if(o===-1)return".";_=o}return l.slice(0,_)},basename(l,i){i!==void 0&&N2(i,"ext"),N2(l,"path");let o=0,s=-1,c=!0,_;if(l.length>=2&&mde(l.charCodeAt(0))&&l.charCodeAt(1)===pde&&(o=2),i!==void 0&&i.length>0&&i.length<=l.length){if(i===l)return"";let h=i.length-1,b=-1;for(_=l.length-1;_>=o;--_){let w=l.charCodeAt(_);if(Lg(w)){if(!c){o=_+1;break}}else b===-1&&(c=!1,b=_+1),h>=0&&(w===i.charCodeAt(h)?--h===-1&&(s=_):(h=-1,s=b))}return o===s?s=b:s===-1&&(s=l.length),l.slice(o,s)}for(_=l.length-1;_>=o;--_)if(Lg(l.charCodeAt(_))){if(!c){o=_+1;break}}else s===-1&&(c=!1,s=_+1);return s===-1?"":l.slice(o,s)},extname(l){N2(l,"path");let i=0,o=-1,s=0,c=-1,_=!0,h=0;l.length>=2&&l.charCodeAt(1)===pde&&mde(l.charCodeAt(0))&&(i=s=2);for(let b=l.length-1;b>=i;--b){let w=l.charCodeAt(b);if(Lg(w)){if(!_){s=b+1;break}continue}c===-1&&(_=!1,c=b+1),w===hde?o===-1?o=b:h!==1&&(h=1):o!==-1&&(h=-1)}return o===-1||c===-1||h===0||h===1&&o===c-1&&o===s+1?"":l.slice(o,c)},format:Lgi.bind(null,"\\"),parse(l){N2(l,"path");let i={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return i;let o=l.length,s=0,c=l.charCodeAt(0);if(o===1)return Lg(c)?(i.root=i.dir=l,i):(i.base=i.name=l,i);if(Lg(c)){if(s=1,Lg(l.charCodeAt(1))){let j=2,F=j;for(;j0&&(i.root=l.slice(0,s));let _=-1,h=s,b=-1,w=!0,D=l.length-1,O=0;for(;D>=s;--D){if(c=l.charCodeAt(D),Lg(c)){if(!w){h=D+1;break}continue}b===-1&&(w=!1,b=D+1),c===hde?_===-1?_=D:O!==1&&(O=1):_!==-1&&(O=-1)}return b!==-1&&(_===-1||O===0||O===1&&_===b-1&&_===h+1?i.base=i.name=l.slice(h,b):(i.name=l.slice(h,_),i.base=l.slice(h,b),i.ext=l.slice(_,b))),h>0&&h!==s?i.dir=l.slice(0,h-1):i.dir=i.root,i},sep:"\\",delimiter:";",win32:null,posix:null},YMi=(()=>{if(gde){let l=/\\/g;return()=>{let i=pnt().replace(l,"/");return i.slice(i.indexOf("/"))}}return()=>pnt()})(),F1={resolve(...l){let i="",o=!1;for(let s=l.length-1;s>=-1&&!o;s--){let c=s>=0?l[s]:YMi();N2(c,"path"),c.length!==0&&(i=`${c}/${i}`,o=c.charCodeAt(0)===cP)}return i=Lut(i,!o,"/",hQt),o?`/${i}`:i.length>0?i:"."},normalize(l){if(N2(l,"path"),l.length===0)return".";let i=l.charCodeAt(0)===cP,o=l.charCodeAt(l.length-1)===cP;return l=Lut(l,!i,"/",hQt),l.length===0?i?"/":o?"./":".":(o&&(l+="/"),i?`/${l}`:l)},isAbsolute(l){return N2(l,"path"),l.length>0&&l.charCodeAt(0)===cP},join(...l){if(l.length===0)return".";let i;for(let o=0;o0&&(i===void 0?i=s:i+=`/${s}`)}return i===void 0?".":F1.normalize(i)},relative(l,i){if(N2(l,"from"),N2(i,"to"),l===i||(l=F1.resolve(l),i=F1.resolve(i),l===i))return"";let o=1,s=l.length,c=s-o,_=1,h=i.length-_,b=cb){if(i.charCodeAt(_+D)===cP)return i.slice(_+D+1);if(D===0)return i.slice(_+D)}else c>b&&(l.charCodeAt(o+D)===cP?w=D:D===0&&(w=0));let O="";for(D=o+w+1;D<=s;++D)(D===s||l.charCodeAt(D)===cP)&&(O+=O.length===0?"..":"/..");return`${O}${i.slice(_+w)}`},toNamespacedPath(l){return l},dirname(l){if(N2(l,"path"),l.length===0)return".";let i=l.charCodeAt(0)===cP,o=-1,s=!0;for(let c=l.length-1;c>=1;--c)if(l.charCodeAt(c)===cP){if(!s){o=c;break}}else s=!1;return o===-1?i?"/":".":i&&o===1?"//":l.slice(0,o)},basename(l,i){i!==void 0&&N2(i,"ext"),N2(l,"path");let o=0,s=-1,c=!0,_;if(i!==void 0&&i.length>0&&i.length<=l.length){if(i===l)return"";let h=i.length-1,b=-1;for(_=l.length-1;_>=0;--_){let w=l.charCodeAt(_);if(w===cP){if(!c){o=_+1;break}}else b===-1&&(c=!1,b=_+1),h>=0&&(w===i.charCodeAt(h)?--h===-1&&(s=_):(h=-1,s=b))}return o===s?s=b:s===-1&&(s=l.length),l.slice(o,s)}for(_=l.length-1;_>=0;--_)if(l.charCodeAt(_)===cP){if(!c){o=_+1;break}}else s===-1&&(c=!1,s=_+1);return s===-1?"":l.slice(o,s)},extname(l){N2(l,"path");let i=-1,o=0,s=-1,c=!0,_=0;for(let h=l.length-1;h>=0;--h){let b=l.charCodeAt(h);if(b===cP){if(!c){o=h+1;break}continue}s===-1&&(c=!1,s=h+1),b===hde?i===-1?i=h:_!==1&&(_=1):i!==-1&&(_=-1)}return i===-1||s===-1||_===0||_===1&&i===s-1&&i===o+1?"":l.slice(i,s)},format:Lgi.bind(null,"/"),parse(l){N2(l,"path");let i={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return i;let o=l.charCodeAt(0)===cP,s;o?(i.root="/",s=1):s=0;let c=-1,_=0,h=-1,b=!0,w=l.length-1,D=0;for(;w>=s;--w){let O=l.charCodeAt(w);if(O===cP){if(!b){_=w+1;break}continue}h===-1&&(b=!1,h=w+1),O===hde?c===-1?c=w:D!==1&&(D=1):c!==-1&&(D=-1)}if(h!==-1){let O=_===0&&o?1:_;c===-1||D===0||D===1&&c===h-1&&c===_+1?i.base=i.name=l.slice(O,h):(i.name=l.slice(O,c),i.base=l.slice(O,h),i.ext=l.slice(c,h))}return _>0?i.dir=l.slice(0,_-1):o&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};F1.win32=FL.win32=FL;F1.posix=FL.posix=F1;Out=gde?FL.normalize:F1.normalize,Ogi=gde?FL.resolve:F1.resolve,Fgi=gde?FL.relative:F1.relative,Fut=gde?FL.dirname:F1.dirname,Jj=gde?FL.basename:F1.basename,Mgi=gde?FL.extname:F1.extname,OF=gde?FL.sep:F1.sep});function tRi(l,i){if(!l.scheme&&i)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${l.authority}", path: "${l.path}", query: "${l.query}", fragment: "${l.fragment}"}`);if(l.scheme&&!QMi.test(l.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(l.path){if(l.authority){if(!ZMi.test(l.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(eRi.test(l.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function iRi(l,i){return!l&&!i?"file":l}function nRi(l,i){switch(l){case"https":case"http":case"file":i?i[0]!==IG&&(i=IG+i):i=IG;break}return i}function Rgi(l,i,o){let s,c=-1;for(let _=0;_=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===45||h===46||h===95||h===126||i&&h===47||o&&h===91||o&&h===93||o&&h===58)c!==-1&&(s+=encodeURIComponent(l.substring(c,_)),c=-1),s!==void 0&&(s+=l.charAt(_));else{s===void 0&&(s=l.substr(0,_));let b=Wgi[h];b!==void 0?(c!==-1&&(s+=encodeURIComponent(l.substring(c,_)),c=-1),s+=b):c===-1&&(c=_)}}return c!==-1&&(s+=encodeURIComponent(l.substring(c))),s!==void 0?s:l}function oRi(l){let i;for(let o=0;o1&&l.scheme==="file"?o=`//${l.authority}${l.path}`:l.path.charCodeAt(0)===47&&(l.path.charCodeAt(1)>=65&&l.path.charCodeAt(1)<=90||l.path.charCodeAt(1)>=97&&l.path.charCodeAt(1)<=122)&&l.path.charCodeAt(2)===58?i?o=l.path.substr(1):o=l.path[1].toLowerCase()+l.path.substr(2):o=l.path,Ny&&(o=o.replace(/\//g,"\\")),o}function gQt(l,i){let o=i?oRi:Rgi,s="",{scheme:c,authority:_,path:h,query:b,fragment:w}=l;if(c&&(s+=c,s+=":"),(_||c==="file")&&(s+=IG,s+=IG),_){let D=_.indexOf("@");if(D!==-1){let O=_.substr(0,D);_=_.substr(D+1),D=O.lastIndexOf(":"),D===-1?s+=o(O,!1,!1):(s+=o(O.substr(0,D),!1,!1),s+=":",s+=o(O.substr(D+1),!1,!0)),s+="@"}_=_.toLowerCase(),D=_.lastIndexOf(":"),D===-1?s+=o(_,!1,!0):(s+=o(_.substr(0,D),!1,!0),s+=_.substr(D))}if(h){if(h.length>=3&&h.charCodeAt(0)===47&&h.charCodeAt(2)===58){let D=h.charCodeAt(1);D>=65&&D<=90&&(h=`/${String.fromCharCode(D+32)}:${h.substr(3)}`)}else if(h.length>=2&&h.charCodeAt(1)===58){let D=h.charCodeAt(0);D>=65&&D<=90&&(h=`${String.fromCharCode(D+32)}:${h.substr(2)}`)}s+=o(h,!0,!1)}return b&&(s+="?",s+=o(b,!1,!1)),w&&(s+="#",s+=i?w:Rgi(w,!1,!1)),s}function zgi(l){try{return decodeURIComponent(l)}catch{return l.length>3?l.substr(0,3)+zgi(l.substr(3)):l}}function Rut(l){return l.match(Bgi)?l.replace(Bgi,i=>zgi(i)):l}var QMi,ZMi,eRi,wC,IG,rRi,Ka,jgi,yde,Wgi,Bgi,Lh=Ht(()=>{DG();uf();QMi=/^\w[\w\d+.-]*$/,ZMi=/^\//,eRi=/^\/\//;wC="",IG="/",rRi=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Ka=class l{static isUri(i){return i instanceof l?!0:i?typeof i.authority=="string"&&typeof i.fragment=="string"&&typeof i.path=="string"&&typeof i.query=="string"&&typeof i.scheme=="string"&&typeof i.fsPath=="string"&&typeof i.with=="function"&&typeof i.toString=="function":!1}constructor(i,o,s,c,_,h=!1){typeof i=="object"?(this.scheme=i.scheme||wC,this.authority=i.authority||wC,this.path=i.path||wC,this.query=i.query||wC,this.fragment=i.fragment||wC):(this.scheme=iRi(i,h),this.authority=o||wC,this.path=nRi(this.scheme,s||wC),this.query=c||wC,this.fragment=_||wC,tRi(this,h))}get fsPath(){return hnt(this,!1)}with(i){if(!i)return this;let{scheme:o,authority:s,path:c,query:_,fragment:h}=i;return o===void 0?o=this.scheme:o===null&&(o=wC),s===void 0?s=this.authority:s===null&&(s=wC),c===void 0?c=this.path:c===null&&(c=wC),_===void 0?_=this.query:_===null&&(_=wC),h===void 0?h=this.fragment:h===null&&(h=wC),o===this.scheme&&s===this.authority&&c===this.path&&_===this.query&&h===this.fragment?this:new yde(o,s,c,_,h)}static parse(i,o=!1){let s=rRi.exec(i);return s?new yde(s[2]||wC,Rut(s[4]||wC),Rut(s[5]||wC),Rut(s[7]||wC),Rut(s[9]||wC),o):new yde(wC,wC,wC,wC,wC)}static file(i){let o=wC;if(Ny&&(i=i.replace(/\\/g,IG)),i[0]===IG&&i[1]===IG){let s=i.indexOf(IG,2);s===-1?(o=i.substring(2),i=IG):(o=i.substring(2,s),i=i.substring(s)||IG)}return new yde("file",o,i,wC,wC)}static from(i,o){return new yde(i.scheme,i.authority,i.path,i.query,i.fragment,o)}static joinPath(i,...o){if(!i.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let s;return Ny&&i.scheme==="file"?s=l.file(FL.join(hnt(i,!0),...o)).path:s=F1.join(i.path,...o),i.with({path:s})}toString(i=!1){return gQt(this,i)}toJSON(){return this}static revive(i){var o,s;if(i){if(i instanceof l)return i;{let c=new yde(i);return c._formatted=(o=i.external)!==null&&o!==void 0?o:null,c._fsPath=i._sep===jgi&&(s=i.fsPath)!==null&&s!==void 0?s:null,c}}else return i}},jgi=Ny?1:void 0,yde=class extends Ka{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=hnt(this,!1)),this._fsPath}toString(i=!1){return i?gQt(this,!0):(this._formatted||(this._formatted=gQt(this,!1)),this._formatted)}toJSON(){let i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=jgi),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i}},Wgi={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};Bgi=/(%[0-9A-Za-z][0-9A-Za-z])+/g});var Cn,Ll=Ht(()=>{Cn=class l{constructor(i,o){this.lineNumber=i,this.column=o}with(i=this.lineNumber,o=this.column){return i===this.lineNumber&&o===this.column?this:new l(i,o)}delta(i=0,o=0){return this.with(this.lineNumber+i,this.column+o)}equals(i){return l.equals(this,i)}static equals(i,o){return!i&&!o?!0:!!i&&!!o&&i.lineNumber===o.lineNumber&&i.column===o.column}isBefore(i){return l.isBefore(this,i)}static isBefore(i,o){return i.lineNumber{Ll();Vt=class l{constructor(i,o,s,c){i>s||i===s&&o>c?(this.startLineNumber=s,this.startColumn=c,this.endLineNumber=i,this.endColumn=o):(this.startLineNumber=i,this.startColumn=o,this.endLineNumber=s,this.endColumn=c)}isEmpty(){return l.isEmpty(this)}static isEmpty(i){return i.startLineNumber===i.endLineNumber&&i.startColumn===i.endColumn}containsPosition(i){return l.containsPosition(this,i)}static containsPosition(i,o){return!(o.lineNumberi.endLineNumber||o.lineNumber===i.startLineNumber&&o.columni.endColumn)}static strictContainsPosition(i,o){return!(o.lineNumberi.endLineNumber||o.lineNumber===i.startLineNumber&&o.column<=i.startColumn||o.lineNumber===i.endLineNumber&&o.column>=i.endColumn)}containsRange(i){return l.containsRange(this,i)}static containsRange(i,o){return!(o.startLineNumberi.endLineNumber||o.endLineNumber>i.endLineNumber||o.startLineNumber===i.startLineNumber&&o.startColumni.endColumn)}strictContainsRange(i){return l.strictContainsRange(this,i)}static strictContainsRange(i,o){return!(o.startLineNumberi.endLineNumber||o.endLineNumber>i.endLineNumber||o.startLineNumber===i.startLineNumber&&o.startColumn<=i.startColumn||o.endLineNumber===i.endLineNumber&&o.endColumn>=i.endColumn)}plusRange(i){return l.plusRange(this,i)}static plusRange(i,o){let s,c,_,h;return o.startLineNumberi.endLineNumber?(_=o.endLineNumber,h=o.endColumn):o.endLineNumber===i.endLineNumber?(_=o.endLineNumber,h=Math.max(o.endColumn,i.endColumn)):(_=i.endLineNumber,h=i.endColumn),new l(s,c,_,h)}intersectRanges(i){return l.intersectRanges(this,i)}static intersectRanges(i,o){let s=i.startLineNumber,c=i.startColumn,_=i.endLineNumber,h=i.endColumn,b=o.startLineNumber,w=o.startColumn,D=o.endLineNumber,O=o.endColumn;return sD?(_=D,h=O):_===D&&(h=Math.min(h,O)),s>_||s===_&&c>h?null:new l(s,c,_,h)}equalsRange(i){return l.equalsRange(this,i)}static equalsRange(i,o){return!i&&!o?!0:!!i&&!!o&&i.startLineNumber===o.startLineNumber&&i.startColumn===o.startColumn&&i.endLineNumber===o.endLineNumber&&i.endColumn===o.endColumn}getEndPosition(){return l.getEndPosition(this)}static getEndPosition(i){return new Cn(i.endLineNumber,i.endColumn)}getStartPosition(){return l.getStartPosition(this)}static getStartPosition(i){return new Cn(i.startLineNumber,i.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(i,o){return new l(this.startLineNumber,this.startColumn,i,o)}setStartPosition(i,o){return new l(i,o,this.endLineNumber,this.endColumn)}collapseToStart(){return l.collapseToStart(this)}static collapseToStart(i){return new l(i.startLineNumber,i.startColumn,i.startLineNumber,i.startColumn)}collapseToEnd(){return l.collapseToEnd(this)}static collapseToEnd(i){return new l(i.endLineNumber,i.endColumn,i.endLineNumber,i.endColumn)}delta(i){return new l(this.startLineNumber+i,this.startColumn,this.endLineNumber+i,this.endColumn)}static fromPositions(i,o=i){return new l(i.lineNumber,i.column,o.lineNumber,o.column)}static lift(i){return i?new l(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):null}static isIRange(i){return i&&typeof i.startLineNumber=="number"&&typeof i.startColumn=="number"&&typeof i.endLineNumber=="number"&&typeof i.endColumn=="number"}static areIntersectingOrTouching(i,o){return!(i.endLineNumberi.startLineNumber}toJSON(){return this}}});var ya,hg=Ht(()=>{Ll();ca();ya=class l extends Vt{constructor(i,o,s,c){super(i,o,s,c),this.selectionStartLineNumber=i,this.selectionStartColumn=o,this.positionLineNumber=s,this.positionColumn=c}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(i){return l.selectionsEqual(this,i)}static selectionsEqual(i,o){return i.selectionStartLineNumber===o.selectionStartLineNumber&&i.selectionStartColumn===o.selectionStartColumn&&i.positionLineNumber===o.positionLineNumber&&i.positionColumn===o.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(i,o){return this.getDirection()===0?new l(this.startLineNumber,this.startColumn,i,o):new l(i,o,this.startLineNumber,this.startColumn)}getPosition(){return new Cn(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Cn(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(i,o){return this.getDirection()===0?new l(i,o,this.endLineNumber,this.endColumn):new l(this.endLineNumber,this.endColumn,i,o)}static fromPositions(i,o=i){return new l(i.lineNumber,i.column,o.lineNumber,o.column)}static fromRange(i,o){return o===0?new l(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new l(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}static liftSelection(i){return new l(i.selectionStartLineNumber,i.selectionStartColumn,i.positionLineNumber,i.positionColumn)}static selectionsArrEqual(i,o){if(i&&!o||!i&&o)return!1;if(!i&&!o)return!0;if(i.length!==o.length)return!1;for(let s=0,c=i.length;s{cm();yQt=Object.create(null)});var Vgi,Hgi=Ht(()=>{gnt();Vgi={add:Yt("add",6e4),plus:Yt("plus",6e4),gistNew:Yt("gist-new",6e4),repoCreate:Yt("repo-create",6e4),lightbulb:Yt("lightbulb",60001),lightBulb:Yt("light-bulb",60001),repo:Yt("repo",60002),repoDelete:Yt("repo-delete",60002),gistFork:Yt("gist-fork",60003),repoForked:Yt("repo-forked",60003),gitPullRequest:Yt("git-pull-request",60004),gitPullRequestAbandoned:Yt("git-pull-request-abandoned",60004),recordKeys:Yt("record-keys",60005),keyboard:Yt("keyboard",60005),tag:Yt("tag",60006),gitPullRequestLabel:Yt("git-pull-request-label",60006),tagAdd:Yt("tag-add",60006),tagRemove:Yt("tag-remove",60006),person:Yt("person",60007),personFollow:Yt("person-follow",60007),personOutline:Yt("person-outline",60007),personFilled:Yt("person-filled",60007),gitBranch:Yt("git-branch",60008),gitBranchCreate:Yt("git-branch-create",60008),gitBranchDelete:Yt("git-branch-delete",60008),sourceControl:Yt("source-control",60008),mirror:Yt("mirror",60009),mirrorPublic:Yt("mirror-public",60009),star:Yt("star",60010),starAdd:Yt("star-add",60010),starDelete:Yt("star-delete",60010),starEmpty:Yt("star-empty",60010),comment:Yt("comment",60011),commentAdd:Yt("comment-add",60011),alert:Yt("alert",60012),warning:Yt("warning",60012),search:Yt("search",60013),searchSave:Yt("search-save",60013),logOut:Yt("log-out",60014),signOut:Yt("sign-out",60014),logIn:Yt("log-in",60015),signIn:Yt("sign-in",60015),eye:Yt("eye",60016),eyeUnwatch:Yt("eye-unwatch",60016),eyeWatch:Yt("eye-watch",60016),circleFilled:Yt("circle-filled",60017),primitiveDot:Yt("primitive-dot",60017),closeDirty:Yt("close-dirty",60017),debugBreakpoint:Yt("debug-breakpoint",60017),debugBreakpointDisabled:Yt("debug-breakpoint-disabled",60017),debugHint:Yt("debug-hint",60017),terminalDecorationSuccess:Yt("terminal-decoration-success",60017),primitiveSquare:Yt("primitive-square",60018),edit:Yt("edit",60019),pencil:Yt("pencil",60019),info:Yt("info",60020),issueOpened:Yt("issue-opened",60020),gistPrivate:Yt("gist-private",60021),gitForkPrivate:Yt("git-fork-private",60021),lock:Yt("lock",60021),mirrorPrivate:Yt("mirror-private",60021),close:Yt("close",60022),removeClose:Yt("remove-close",60022),x:Yt("x",60022),repoSync:Yt("repo-sync",60023),sync:Yt("sync",60023),clone:Yt("clone",60024),desktopDownload:Yt("desktop-download",60024),beaker:Yt("beaker",60025),microscope:Yt("microscope",60025),vm:Yt("vm",60026),deviceDesktop:Yt("device-desktop",60026),file:Yt("file",60027),fileText:Yt("file-text",60027),more:Yt("more",60028),ellipsis:Yt("ellipsis",60028),kebabHorizontal:Yt("kebab-horizontal",60028),mailReply:Yt("mail-reply",60029),reply:Yt("reply",60029),organization:Yt("organization",60030),organizationFilled:Yt("organization-filled",60030),organizationOutline:Yt("organization-outline",60030),newFile:Yt("new-file",60031),fileAdd:Yt("file-add",60031),newFolder:Yt("new-folder",60032),fileDirectoryCreate:Yt("file-directory-create",60032),trash:Yt("trash",60033),trashcan:Yt("trashcan",60033),history:Yt("history",60034),clock:Yt("clock",60034),folder:Yt("folder",60035),fileDirectory:Yt("file-directory",60035),symbolFolder:Yt("symbol-folder",60035),logoGithub:Yt("logo-github",60036),markGithub:Yt("mark-github",60036),github:Yt("github",60036),terminal:Yt("terminal",60037),console:Yt("console",60037),repl:Yt("repl",60037),zap:Yt("zap",60038),symbolEvent:Yt("symbol-event",60038),error:Yt("error",60039),stop:Yt("stop",60039),variable:Yt("variable",60040),symbolVariable:Yt("symbol-variable",60040),array:Yt("array",60042),symbolArray:Yt("symbol-array",60042),symbolModule:Yt("symbol-module",60043),symbolPackage:Yt("symbol-package",60043),symbolNamespace:Yt("symbol-namespace",60043),symbolObject:Yt("symbol-object",60043),symbolMethod:Yt("symbol-method",60044),symbolFunction:Yt("symbol-function",60044),symbolConstructor:Yt("symbol-constructor",60044),symbolBoolean:Yt("symbol-boolean",60047),symbolNull:Yt("symbol-null",60047),symbolNumeric:Yt("symbol-numeric",60048),symbolNumber:Yt("symbol-number",60048),symbolStructure:Yt("symbol-structure",60049),symbolStruct:Yt("symbol-struct",60049),symbolParameter:Yt("symbol-parameter",60050),symbolTypeParameter:Yt("symbol-type-parameter",60050),symbolKey:Yt("symbol-key",60051),symbolText:Yt("symbol-text",60051),symbolReference:Yt("symbol-reference",60052),goToFile:Yt("go-to-file",60052),symbolEnum:Yt("symbol-enum",60053),symbolValue:Yt("symbol-value",60053),symbolRuler:Yt("symbol-ruler",60054),symbolUnit:Yt("symbol-unit",60054),activateBreakpoints:Yt("activate-breakpoints",60055),archive:Yt("archive",60056),arrowBoth:Yt("arrow-both",60057),arrowDown:Yt("arrow-down",60058),arrowLeft:Yt("arrow-left",60059),arrowRight:Yt("arrow-right",60060),arrowSmallDown:Yt("arrow-small-down",60061),arrowSmallLeft:Yt("arrow-small-left",60062),arrowSmallRight:Yt("arrow-small-right",60063),arrowSmallUp:Yt("arrow-small-up",60064),arrowUp:Yt("arrow-up",60065),bell:Yt("bell",60066),bold:Yt("bold",60067),book:Yt("book",60068),bookmark:Yt("bookmark",60069),debugBreakpointConditionalUnverified:Yt("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:Yt("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:Yt("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:Yt("debug-breakpoint-data-unverified",60072),debugBreakpointData:Yt("debug-breakpoint-data",60073),debugBreakpointDataDisabled:Yt("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:Yt("debug-breakpoint-log-unverified",60074),debugBreakpointLog:Yt("debug-breakpoint-log",60075),debugBreakpointLogDisabled:Yt("debug-breakpoint-log-disabled",60075),briefcase:Yt("briefcase",60076),broadcast:Yt("broadcast",60077),browser:Yt("browser",60078),bug:Yt("bug",60079),calendar:Yt("calendar",60080),caseSensitive:Yt("case-sensitive",60081),check:Yt("check",60082),checklist:Yt("checklist",60083),chevronDown:Yt("chevron-down",60084),chevronLeft:Yt("chevron-left",60085),chevronRight:Yt("chevron-right",60086),chevronUp:Yt("chevron-up",60087),chromeClose:Yt("chrome-close",60088),chromeMaximize:Yt("chrome-maximize",60089),chromeMinimize:Yt("chrome-minimize",60090),chromeRestore:Yt("chrome-restore",60091),circleOutline:Yt("circle-outline",60092),circle:Yt("circle",60092),debugBreakpointUnverified:Yt("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:Yt("terminal-decoration-incomplete",60092),circleSlash:Yt("circle-slash",60093),circuitBoard:Yt("circuit-board",60094),clearAll:Yt("clear-all",60095),clippy:Yt("clippy",60096),closeAll:Yt("close-all",60097),cloudDownload:Yt("cloud-download",60098),cloudUpload:Yt("cloud-upload",60099),code:Yt("code",60100),collapseAll:Yt("collapse-all",60101),colorMode:Yt("color-mode",60102),commentDiscussion:Yt("comment-discussion",60103),creditCard:Yt("credit-card",60105),dash:Yt("dash",60108),dashboard:Yt("dashboard",60109),database:Yt("database",60110),debugContinue:Yt("debug-continue",60111),debugDisconnect:Yt("debug-disconnect",60112),debugPause:Yt("debug-pause",60113),debugRestart:Yt("debug-restart",60114),debugStart:Yt("debug-start",60115),debugStepInto:Yt("debug-step-into",60116),debugStepOut:Yt("debug-step-out",60117),debugStepOver:Yt("debug-step-over",60118),debugStop:Yt("debug-stop",60119),debug:Yt("debug",60120),deviceCameraVideo:Yt("device-camera-video",60121),deviceCamera:Yt("device-camera",60122),deviceMobile:Yt("device-mobile",60123),diffAdded:Yt("diff-added",60124),diffIgnored:Yt("diff-ignored",60125),diffModified:Yt("diff-modified",60126),diffRemoved:Yt("diff-removed",60127),diffRenamed:Yt("diff-renamed",60128),diff:Yt("diff",60129),diffSidebyside:Yt("diff-sidebyside",60129),discard:Yt("discard",60130),editorLayout:Yt("editor-layout",60131),emptyWindow:Yt("empty-window",60132),exclude:Yt("exclude",60133),extensions:Yt("extensions",60134),eyeClosed:Yt("eye-closed",60135),fileBinary:Yt("file-binary",60136),fileCode:Yt("file-code",60137),fileMedia:Yt("file-media",60138),filePdf:Yt("file-pdf",60139),fileSubmodule:Yt("file-submodule",60140),fileSymlinkDirectory:Yt("file-symlink-directory",60141),fileSymlinkFile:Yt("file-symlink-file",60142),fileZip:Yt("file-zip",60143),files:Yt("files",60144),filter:Yt("filter",60145),flame:Yt("flame",60146),foldDown:Yt("fold-down",60147),foldUp:Yt("fold-up",60148),fold:Yt("fold",60149),folderActive:Yt("folder-active",60150),folderOpened:Yt("folder-opened",60151),gear:Yt("gear",60152),gift:Yt("gift",60153),gistSecret:Yt("gist-secret",60154),gist:Yt("gist",60155),gitCommit:Yt("git-commit",60156),gitCompare:Yt("git-compare",60157),compareChanges:Yt("compare-changes",60157),gitMerge:Yt("git-merge",60158),githubAction:Yt("github-action",60159),githubAlt:Yt("github-alt",60160),globe:Yt("globe",60161),grabber:Yt("grabber",60162),graph:Yt("graph",60163),gripper:Yt("gripper",60164),heart:Yt("heart",60165),home:Yt("home",60166),horizontalRule:Yt("horizontal-rule",60167),hubot:Yt("hubot",60168),inbox:Yt("inbox",60169),issueReopened:Yt("issue-reopened",60171),issues:Yt("issues",60172),italic:Yt("italic",60173),jersey:Yt("jersey",60174),json:Yt("json",60175),kebabVertical:Yt("kebab-vertical",60176),key:Yt("key",60177),law:Yt("law",60178),lightbulbAutofix:Yt("lightbulb-autofix",60179),linkExternal:Yt("link-external",60180),link:Yt("link",60181),listOrdered:Yt("list-ordered",60182),listUnordered:Yt("list-unordered",60183),liveShare:Yt("live-share",60184),loading:Yt("loading",60185),location:Yt("location",60186),mailRead:Yt("mail-read",60187),mail:Yt("mail",60188),markdown:Yt("markdown",60189),megaphone:Yt("megaphone",60190),mention:Yt("mention",60191),milestone:Yt("milestone",60192),gitPullRequestMilestone:Yt("git-pull-request-milestone",60192),mortarBoard:Yt("mortar-board",60193),move:Yt("move",60194),multipleWindows:Yt("multiple-windows",60195),mute:Yt("mute",60196),noNewline:Yt("no-newline",60197),note:Yt("note",60198),octoface:Yt("octoface",60199),openPreview:Yt("open-preview",60200),package:Yt("package",60201),paintcan:Yt("paintcan",60202),pin:Yt("pin",60203),play:Yt("play",60204),run:Yt("run",60204),plug:Yt("plug",60205),preserveCase:Yt("preserve-case",60206),preview:Yt("preview",60207),project:Yt("project",60208),pulse:Yt("pulse",60209),question:Yt("question",60210),quote:Yt("quote",60211),radioTower:Yt("radio-tower",60212),reactions:Yt("reactions",60213),references:Yt("references",60214),refresh:Yt("refresh",60215),regex:Yt("regex",60216),remoteExplorer:Yt("remote-explorer",60217),remote:Yt("remote",60218),remove:Yt("remove",60219),replaceAll:Yt("replace-all",60220),replace:Yt("replace",60221),repoClone:Yt("repo-clone",60222),repoForcePush:Yt("repo-force-push",60223),repoPull:Yt("repo-pull",60224),repoPush:Yt("repo-push",60225),report:Yt("report",60226),requestChanges:Yt("request-changes",60227),rocket:Yt("rocket",60228),rootFolderOpened:Yt("root-folder-opened",60229),rootFolder:Yt("root-folder",60230),rss:Yt("rss",60231),ruby:Yt("ruby",60232),saveAll:Yt("save-all",60233),saveAs:Yt("save-as",60234),save:Yt("save",60235),screenFull:Yt("screen-full",60236),screenNormal:Yt("screen-normal",60237),searchStop:Yt("search-stop",60238),server:Yt("server",60240),settingsGear:Yt("settings-gear",60241),settings:Yt("settings",60242),shield:Yt("shield",60243),smiley:Yt("smiley",60244),sortPrecedence:Yt("sort-precedence",60245),splitHorizontal:Yt("split-horizontal",60246),splitVertical:Yt("split-vertical",60247),squirrel:Yt("squirrel",60248),starFull:Yt("star-full",60249),starHalf:Yt("star-half",60250),symbolClass:Yt("symbol-class",60251),symbolColor:Yt("symbol-color",60252),symbolConstant:Yt("symbol-constant",60253),symbolEnumMember:Yt("symbol-enum-member",60254),symbolField:Yt("symbol-field",60255),symbolFile:Yt("symbol-file",60256),symbolInterface:Yt("symbol-interface",60257),symbolKeyword:Yt("symbol-keyword",60258),symbolMisc:Yt("symbol-misc",60259),symbolOperator:Yt("symbol-operator",60260),symbolProperty:Yt("symbol-property",60261),wrench:Yt("wrench",60261),wrenchSubaction:Yt("wrench-subaction",60261),symbolSnippet:Yt("symbol-snippet",60262),tasklist:Yt("tasklist",60263),telescope:Yt("telescope",60264),textSize:Yt("text-size",60265),threeBars:Yt("three-bars",60266),thumbsdown:Yt("thumbsdown",60267),thumbsup:Yt("thumbsup",60268),tools:Yt("tools",60269),triangleDown:Yt("triangle-down",60270),triangleLeft:Yt("triangle-left",60271),triangleRight:Yt("triangle-right",60272),triangleUp:Yt("triangle-up",60273),twitter:Yt("twitter",60274),unfold:Yt("unfold",60275),unlock:Yt("unlock",60276),unmute:Yt("unmute",60277),unverified:Yt("unverified",60278),verified:Yt("verified",60279),versions:Yt("versions",60280),vmActive:Yt("vm-active",60281),vmOutline:Yt("vm-outline",60282),vmRunning:Yt("vm-running",60283),watch:Yt("watch",60284),whitespace:Yt("whitespace",60285),wholeWord:Yt("whole-word",60286),window:Yt("window",60287),wordWrap:Yt("word-wrap",60288),zoomIn:Yt("zoom-in",60289),zoomOut:Yt("zoom-out",60290),listFilter:Yt("list-filter",60291),listFlat:Yt("list-flat",60292),listSelection:Yt("list-selection",60293),selection:Yt("selection",60293),listTree:Yt("list-tree",60294),debugBreakpointFunctionUnverified:Yt("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:Yt("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:Yt("debug-breakpoint-function-disabled",60296),debugStackframeActive:Yt("debug-stackframe-active",60297),circleSmallFilled:Yt("circle-small-filled",60298),debugStackframeDot:Yt("debug-stackframe-dot",60298),terminalDecorationMark:Yt("terminal-decoration-mark",60298),debugStackframe:Yt("debug-stackframe",60299),debugStackframeFocused:Yt("debug-stackframe-focused",60299),debugBreakpointUnsupported:Yt("debug-breakpoint-unsupported",60300),symbolString:Yt("symbol-string",60301),debugReverseContinue:Yt("debug-reverse-continue",60302),debugStepBack:Yt("debug-step-back",60303),debugRestartFrame:Yt("debug-restart-frame",60304),debugAlt:Yt("debug-alt",60305),callIncoming:Yt("call-incoming",60306),callOutgoing:Yt("call-outgoing",60307),menu:Yt("menu",60308),expandAll:Yt("expand-all",60309),feedback:Yt("feedback",60310),gitPullRequestReviewer:Yt("git-pull-request-reviewer",60310),groupByRefType:Yt("group-by-ref-type",60311),ungroupByRefType:Yt("ungroup-by-ref-type",60312),account:Yt("account",60313),gitPullRequestAssignee:Yt("git-pull-request-assignee",60313),bellDot:Yt("bell-dot",60314),debugConsole:Yt("debug-console",60315),library:Yt("library",60316),output:Yt("output",60317),runAll:Yt("run-all",60318),syncIgnored:Yt("sync-ignored",60319),pinned:Yt("pinned",60320),githubInverted:Yt("github-inverted",60321),serverProcess:Yt("server-process",60322),serverEnvironment:Yt("server-environment",60323),pass:Yt("pass",60324),issueClosed:Yt("issue-closed",60324),stopCircle:Yt("stop-circle",60325),playCircle:Yt("play-circle",60326),record:Yt("record",60327),debugAltSmall:Yt("debug-alt-small",60328),vmConnect:Yt("vm-connect",60329),cloud:Yt("cloud",60330),merge:Yt("merge",60331),export:Yt("export",60332),graphLeft:Yt("graph-left",60333),magnet:Yt("magnet",60334),notebook:Yt("notebook",60335),redo:Yt("redo",60336),checkAll:Yt("check-all",60337),pinnedDirty:Yt("pinned-dirty",60338),passFilled:Yt("pass-filled",60339),circleLargeFilled:Yt("circle-large-filled",60340),circleLarge:Yt("circle-large",60341),circleLargeOutline:Yt("circle-large-outline",60341),combine:Yt("combine",60342),gather:Yt("gather",60342),table:Yt("table",60343),variableGroup:Yt("variable-group",60344),typeHierarchy:Yt("type-hierarchy",60345),typeHierarchySub:Yt("type-hierarchy-sub",60346),typeHierarchySuper:Yt("type-hierarchy-super",60347),gitPullRequestCreate:Yt("git-pull-request-create",60348),runAbove:Yt("run-above",60349),runBelow:Yt("run-below",60350),notebookTemplate:Yt("notebook-template",60351),debugRerun:Yt("debug-rerun",60352),workspaceTrusted:Yt("workspace-trusted",60353),workspaceUntrusted:Yt("workspace-untrusted",60354),workspaceUnknown:Yt("workspace-unknown",60355),terminalCmd:Yt("terminal-cmd",60356),terminalDebian:Yt("terminal-debian",60357),terminalLinux:Yt("terminal-linux",60358),terminalPowershell:Yt("terminal-powershell",60359),terminalTmux:Yt("terminal-tmux",60360),terminalUbuntu:Yt("terminal-ubuntu",60361),terminalBash:Yt("terminal-bash",60362),arrowSwap:Yt("arrow-swap",60363),copy:Yt("copy",60364),personAdd:Yt("person-add",60365),filterFilled:Yt("filter-filled",60366),wand:Yt("wand",60367),debugLineByLine:Yt("debug-line-by-line",60368),inspect:Yt("inspect",60369),layers:Yt("layers",60370),layersDot:Yt("layers-dot",60371),layersActive:Yt("layers-active",60372),compass:Yt("compass",60373),compassDot:Yt("compass-dot",60374),compassActive:Yt("compass-active",60375),azure:Yt("azure",60376),issueDraft:Yt("issue-draft",60377),gitPullRequestClosed:Yt("git-pull-request-closed",60378),gitPullRequestDraft:Yt("git-pull-request-draft",60379),debugAll:Yt("debug-all",60380),debugCoverage:Yt("debug-coverage",60381),runErrors:Yt("run-errors",60382),folderLibrary:Yt("folder-library",60383),debugContinueSmall:Yt("debug-continue-small",60384),beakerStop:Yt("beaker-stop",60385),graphLine:Yt("graph-line",60386),graphScatter:Yt("graph-scatter",60387),pieChart:Yt("pie-chart",60388),bracket:Yt("bracket",60175),bracketDot:Yt("bracket-dot",60389),bracketError:Yt("bracket-error",60390),lockSmall:Yt("lock-small",60391),azureDevops:Yt("azure-devops",60392),verifiedFilled:Yt("verified-filled",60393),newline:Yt("newline",60394),layout:Yt("layout",60395),layoutActivitybarLeft:Yt("layout-activitybar-left",60396),layoutActivitybarRight:Yt("layout-activitybar-right",60397),layoutPanelLeft:Yt("layout-panel-left",60398),layoutPanelCenter:Yt("layout-panel-center",60399),layoutPanelJustify:Yt("layout-panel-justify",60400),layoutPanelRight:Yt("layout-panel-right",60401),layoutPanel:Yt("layout-panel",60402),layoutSidebarLeft:Yt("layout-sidebar-left",60403),layoutSidebarRight:Yt("layout-sidebar-right",60404),layoutStatusbar:Yt("layout-statusbar",60405),layoutMenubar:Yt("layout-menubar",60406),layoutCentered:Yt("layout-centered",60407),target:Yt("target",60408),indent:Yt("indent",60409),recordSmall:Yt("record-small",60410),errorSmall:Yt("error-small",60411),terminalDecorationError:Yt("terminal-decoration-error",60411),arrowCircleDown:Yt("arrow-circle-down",60412),arrowCircleLeft:Yt("arrow-circle-left",60413),arrowCircleRight:Yt("arrow-circle-right",60414),arrowCircleUp:Yt("arrow-circle-up",60415),layoutSidebarRightOff:Yt("layout-sidebar-right-off",60416),layoutPanelOff:Yt("layout-panel-off",60417),layoutSidebarLeftOff:Yt("layout-sidebar-left-off",60418),blank:Yt("blank",60419),heartFilled:Yt("heart-filled",60420),map:Yt("map",60421),mapHorizontal:Yt("map-horizontal",60421),foldHorizontal:Yt("fold-horizontal",60421),mapFilled:Yt("map-filled",60422),mapHorizontalFilled:Yt("map-horizontal-filled",60422),foldHorizontalFilled:Yt("fold-horizontal-filled",60422),circleSmall:Yt("circle-small",60423),bellSlash:Yt("bell-slash",60424),bellSlashDot:Yt("bell-slash-dot",60425),commentUnresolved:Yt("comment-unresolved",60426),gitPullRequestGoToChanges:Yt("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:Yt("git-pull-request-new-changes",60428),searchFuzzy:Yt("search-fuzzy",60429),commentDraft:Yt("comment-draft",60430),send:Yt("send",60431),sparkle:Yt("sparkle",60432),insert:Yt("insert",60433),mic:Yt("mic",60434),thumbsdownFilled:Yt("thumbsdown-filled",60435),thumbsupFilled:Yt("thumbsup-filled",60436),coffee:Yt("coffee",60437),snake:Yt("snake",60438),game:Yt("game",60439),vr:Yt("vr",60440),chip:Yt("chip",60441),piano:Yt("piano",60442),music:Yt("music",60443),micFilled:Yt("mic-filled",60444),repoFetch:Yt("repo-fetch",60445),copilot:Yt("copilot",60446),lightbulbSparkle:Yt("lightbulb-sparkle",60447),robot:Yt("robot",60448),sparkleFilled:Yt("sparkle-filled",60449),diffSingle:Yt("diff-single",60450),diffMultiple:Yt("diff-multiple",60451),surroundWith:Yt("surround-with",60452),share:Yt("share",60453),gitStash:Yt("git-stash",60454),gitStashApply:Yt("git-stash-apply",60455),gitStashPop:Yt("git-stash-pop",60456),vscode:Yt("vscode",60457),vscodeInsiders:Yt("vscode-insiders",60458),codeOss:Yt("code-oss",60459),runCoverage:Yt("run-coverage",60460),runAllCoverage:Yt("run-all-coverage",60461),coverage:Yt("coverage",60462),githubProject:Yt("github-project",60463),mapVertical:Yt("map-vertical",60464),foldVertical:Yt("fold-vertical",60464),mapVerticalFilled:Yt("map-vertical-filled",60465),foldVerticalFilled:Yt("fold-vertical-filled",60465),goToSearch:Yt("go-to-search",60466),percentage:Yt("percentage",60467),sortPercentage:Yt("sort-percentage",60467),attach:Yt("attach",60468)}});var aRi,Xo,Og=Ht(()=>{gnt();Hgi();aRi={dialogError:Yt("dialog-error","error"),dialogWarning:Yt("dialog-warning","warning"),dialogInfo:Yt("dialog-info","info"),dialogClose:Yt("dialog-close","close"),treeItemExpanded:Yt("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:Yt("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:Yt("tree-filter-on-type-off","list-selection"),treeFilterClear:Yt("tree-filter-clear","close"),treeItemLoading:Yt("tree-item-loading","loading"),menuSelection:Yt("menu-selection","check"),menuSubmenu:Yt("menu-submenu","chevron-right"),menuBarMore:Yt("menubar-more","more"),scrollbarButtonLeft:Yt("scrollbar-button-left","triangle-left"),scrollbarButtonRight:Yt("scrollbar-button-right","triangle-right"),scrollbarButtonUp:Yt("scrollbar-button-up","triangle-up"),scrollbarButtonDown:Yt("scrollbar-button-down","triangle-down"),toolBarMore:Yt("toolbar-more","more"),quickInputBack:Yt("quick-input-back","arrow-left"),dropDownButton:Yt("drop-down-button",60084),symbolCustomColor:Yt("symbol-customcolor",60252),exportIcon:Yt("export",60332),workspaceUnspecified:Yt("workspace-unspecified",60355),newLine:Yt("newline",60394),thumbsDownFilled:Yt("thumbsdown-filled",60435),thumbsUpFilled:Yt("thumbsup-filled",60436),gitFetch:Yt("git-fetch",60445),lightbulbSparkleAutofix:Yt("lightbulb-sparkle-autofix",60447),debugBreakpointPending:Yt("debug-breakpoint-pending",60377)},Xo={...Vgi,...aRi}});var jut,vQt,Ugi=Ht(()=>{Pa();$r();jut=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new fn,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(i){this._onDidChange.fire({changedLanguages:i,changedColorMap:!1})}register(i,o){return this._tokenizationSupports.set(i,o),this.handleChange([i]),Qs(()=>{this._tokenizationSupports.get(i)===o&&(this._tokenizationSupports.delete(i),this.handleChange([i]))})}get(i){return this._tokenizationSupports.get(i)||null}registerFactory(i,o){var s;(s=this._factories.get(i))===null||s===void 0||s.dispose();let c=new vQt(this,i,o);return this._factories.set(i,c),Qs(()=>{let _=this._factories.get(i);!_||_!==c||(this._factories.delete(i),_.dispose())})}async getOrCreate(i){let o=this.get(i);if(o)return o;let s=this._factories.get(i);return!s||s.isResolved?null:(await s.resolve(),this.get(i))}isResolved(i){if(this.get(i))return!0;let s=this._factories.get(i);return!!(!s||s.isResolved)}setColorMap(i){this._colorMap=i,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},vQt=class extends Ui{get isResolved(){return this._isResolved}constructor(i,o,s){super(),this._registry=i,this._languageId=o,this._factory=s,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){let i=await this._factory.tokenizationSupport;this._isResolved=!0,i&&!this._isDisposed&&this._register(this._registry.register(this._languageId,i))}}});function Jgi(l){return l&&Ka.isUri(l.uri)&&Vt.isIRange(l.range)&&(Vt.isIRange(l.originSelectionRange)||Vt.isIRange(l.targetSelectionRange))}function qgi(l,i){return de("symbolAriaLabel","{0} ({1})",l,cRi[i])}var NG,vde,yle,oL,wNe,qj,$4e,TNe,YB,ENe,cRi,G4e,ML,Wut,DNe,zut,ynt,Vut,Oh,vnt,Fg=Ht(()=>{Og();Lh();ca();Ugi();Fs();NG=class{constructor(i,o,s){this.offset=i,this.type=o,this.language=s,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}},vde=class{constructor(i,o){this.tokens=i,this.endState=o,this._tokenizationResultBrand=void 0}},yle=class{constructor(i,o){this.tokens=i,this.endState=o,this._encodedTokenizationResultBrand=void 0}};(function(l){l[l.Increase=0]="Increase",l[l.Decrease=1]="Decrease"})(oL||(oL={}));(function(l){let i=new Map;i.set(0,Xo.symbolMethod),i.set(1,Xo.symbolFunction),i.set(2,Xo.symbolConstructor),i.set(3,Xo.symbolField),i.set(4,Xo.symbolVariable),i.set(5,Xo.symbolClass),i.set(6,Xo.symbolStruct),i.set(7,Xo.symbolInterface),i.set(8,Xo.symbolModule),i.set(9,Xo.symbolProperty),i.set(10,Xo.symbolEvent),i.set(11,Xo.symbolOperator),i.set(12,Xo.symbolUnit),i.set(13,Xo.symbolValue),i.set(15,Xo.symbolEnum),i.set(14,Xo.symbolConstant),i.set(15,Xo.symbolEnum),i.set(16,Xo.symbolEnumMember),i.set(17,Xo.symbolKeyword),i.set(27,Xo.symbolSnippet),i.set(18,Xo.symbolText),i.set(19,Xo.symbolColor),i.set(20,Xo.symbolFile),i.set(21,Xo.symbolReference),i.set(22,Xo.symbolCustomColor),i.set(23,Xo.symbolFolder),i.set(24,Xo.symbolTypeParameter),i.set(25,Xo.account),i.set(26,Xo.issues);function o(_){let h=i.get(_);return h||(console.info("No codicon found for CompletionItemKind "+_),h=Xo.symbolProperty),h}l.toIcon=o;let s=new Map;s.set("method",0),s.set("function",1),s.set("constructor",2),s.set("field",3),s.set("variable",4),s.set("class",5),s.set("struct",6),s.set("interface",7),s.set("module",8),s.set("property",9),s.set("event",10),s.set("operator",11),s.set("unit",12),s.set("value",13),s.set("constant",14),s.set("enum",15),s.set("enum-member",16),s.set("enumMember",16),s.set("keyword",17),s.set("snippet",27),s.set("text",18),s.set("color",19),s.set("file",20),s.set("reference",21),s.set("customcolor",22),s.set("folder",23),s.set("type-parameter",24),s.set("typeParameter",24),s.set("account",25),s.set("issue",26);function c(_,h){let b=s.get(_);return typeof b>"u"&&!h&&(b=9),b}l.fromString=c})(wNe||(wNe={}));(function(l){l[l.Automatic=0]="Automatic",l[l.Explicit=1]="Explicit"})(qj||(qj={}));$4e=class{constructor(i,o,s,c){this.range=i,this.text=o,this.completionKind=s,this.isSnippetText=c}equals(i){return Vt.lift(this.range).equalsRange(i.range)&&this.text===i.text&&this.completionKind===i.completionKind&&this.isSnippetText===i.isSnippetText}};(function(l){l[l.Automatic=0]="Automatic",l[l.PasteAs=1]="PasteAs"})(TNe||(TNe={}));(function(l){l[l.Invoke=1]="Invoke",l[l.TriggerCharacter=2]="TriggerCharacter",l[l.ContentChange=3]="ContentChange"})(YB||(YB={}));(function(l){l[l.Text=0]="Text",l[l.Read=1]="Read",l[l.Write=2]="Write"})(ENe||(ENe={}));cRi={17:de("Array","array"),16:de("Boolean","boolean"),4:de("Class","class"),13:de("Constant","constant"),8:de("Constructor","constructor"),9:de("Enum","enumeration"),21:de("EnumMember","enumeration member"),23:de("Event","event"),7:de("Field","field"),0:de("File","file"),11:de("Function","function"),10:de("Interface","interface"),19:de("Key","key"),5:de("Method","method"),1:de("Module","module"),2:de("Namespace","namespace"),20:de("Null","null"),15:de("Number","number"),18:de("Object","object"),24:de("Operator","operator"),3:de("Package","package"),6:de("Property","property"),14:de("String","string"),22:de("Struct","struct"),25:de("TypeParameter","type parameter"),12:de("Variable","variable")};(function(l){let i=new Map;i.set(0,Xo.symbolFile),i.set(1,Xo.symbolModule),i.set(2,Xo.symbolNamespace),i.set(3,Xo.symbolPackage),i.set(4,Xo.symbolClass),i.set(5,Xo.symbolMethod),i.set(6,Xo.symbolProperty),i.set(7,Xo.symbolField),i.set(8,Xo.symbolConstructor),i.set(9,Xo.symbolEnum),i.set(10,Xo.symbolInterface),i.set(11,Xo.symbolFunction),i.set(12,Xo.symbolVariable),i.set(13,Xo.symbolConstant),i.set(14,Xo.symbolString),i.set(15,Xo.symbolNumber),i.set(16,Xo.symbolBoolean),i.set(17,Xo.symbolArray),i.set(18,Xo.symbolObject),i.set(19,Xo.symbolKey),i.set(20,Xo.symbolNull),i.set(21,Xo.symbolEnumMember),i.set(22,Xo.symbolStruct),i.set(23,Xo.symbolEvent),i.set(24,Xo.symbolOperator),i.set(25,Xo.symbolTypeParameter);function o(s){let c=i.get(s);return c||(console.info("No codicon found for SymbolKind "+s),c=Xo.symbolProperty),c}l.toIcon=o})(G4e||(G4e={}));ML=class l{static fromValue(i){switch(i){case"comment":return l.Comment;case"imports":return l.Imports;case"region":return l.Region}return new l(i)}constructor(i){this.value=i}};ML.Comment=new ML("comment");ML.Imports=new ML("imports");ML.Region=new ML("region");(function(l){l[l.AIGenerated=1]="AIGenerated"})(Wut||(Wut={}));(function(l){l[l.Invoke=0]="Invoke",l[l.Automatic=1]="Automatic"})(DNe||(DNe={}));(function(l){function i(o){return!o||typeof o!="object"?!1:typeof o.id=="string"&&typeof o.title=="string"}l.is=i})(zut||(zut={}));(function(l){l[l.Type=1]="Type",l[l.Parameter=2]="Parameter"})(ynt||(ynt={}));Vut=class{constructor(i){this.createSupport=i,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(i=>{i&&i.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}},Oh=new jut;(function(l){l[l.Invoke=0]="Invoke",l[l.Automatic=1]="Automatic"})(vnt||(vnt={}))});var Hut,Uut,Jut,qut,$ut,Gut,Kut,Xut,Yut,Qut,Zut,edt,tdt,idt,ndt,rdt,odt,sdt,adt,cdt,ldt,udt,ddt,fdt,_dt,pdt,mdt,hdt,gdt,ydt,vdt,bdt,Sdt,xdt,Cdt,kdt,wdt,Tdt,Edt,Ddt,Idt,Ndt,Adt,Pdt,Ldt,Odt,Fdt=Ht(()=>{(function(l){l[l.Unknown=0]="Unknown",l[l.Disabled=1]="Disabled",l[l.Enabled=2]="Enabled"})(Hut||(Hut={}));(function(l){l[l.Invoke=1]="Invoke",l[l.Auto=2]="Auto"})(Uut||(Uut={}));(function(l){l[l.None=0]="None",l[l.KeepWhitespace=1]="KeepWhitespace",l[l.InsertAsSnippet=4]="InsertAsSnippet"})(Jut||(Jut={}));(function(l){l[l.Method=0]="Method",l[l.Function=1]="Function",l[l.Constructor=2]="Constructor",l[l.Field=3]="Field",l[l.Variable=4]="Variable",l[l.Class=5]="Class",l[l.Struct=6]="Struct",l[l.Interface=7]="Interface",l[l.Module=8]="Module",l[l.Property=9]="Property",l[l.Event=10]="Event",l[l.Operator=11]="Operator",l[l.Unit=12]="Unit",l[l.Value=13]="Value",l[l.Constant=14]="Constant",l[l.Enum=15]="Enum",l[l.EnumMember=16]="EnumMember",l[l.Keyword=17]="Keyword",l[l.Text=18]="Text",l[l.Color=19]="Color",l[l.File=20]="File",l[l.Reference=21]="Reference",l[l.Customcolor=22]="Customcolor",l[l.Folder=23]="Folder",l[l.TypeParameter=24]="TypeParameter",l[l.User=25]="User",l[l.Issue=26]="Issue",l[l.Snippet=27]="Snippet"})(qut||(qut={}));(function(l){l[l.Deprecated=1]="Deprecated"})($ut||($ut={}));(function(l){l[l.Invoke=0]="Invoke",l[l.TriggerCharacter=1]="TriggerCharacter",l[l.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Gut||(Gut={}));(function(l){l[l.EXACT=0]="EXACT",l[l.ABOVE=1]="ABOVE",l[l.BELOW=2]="BELOW"})(Kut||(Kut={}));(function(l){l[l.NotSet=0]="NotSet",l[l.ContentFlush=1]="ContentFlush",l[l.RecoverFromMarkers=2]="RecoverFromMarkers",l[l.Explicit=3]="Explicit",l[l.Paste=4]="Paste",l[l.Undo=5]="Undo",l[l.Redo=6]="Redo"})(Xut||(Xut={}));(function(l){l[l.LF=1]="LF",l[l.CRLF=2]="CRLF"})(Yut||(Yut={}));(function(l){l[l.Text=0]="Text",l[l.Read=1]="Read",l[l.Write=2]="Write"})(Qut||(Qut={}));(function(l){l[l.None=0]="None",l[l.Keep=1]="Keep",l[l.Brackets=2]="Brackets",l[l.Advanced=3]="Advanced",l[l.Full=4]="Full"})(Zut||(Zut={}));(function(l){l[l.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",l[l.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",l[l.accessibilitySupport=2]="accessibilitySupport",l[l.accessibilityPageSize=3]="accessibilityPageSize",l[l.ariaLabel=4]="ariaLabel",l[l.ariaRequired=5]="ariaRequired",l[l.autoClosingBrackets=6]="autoClosingBrackets",l[l.autoClosingComments=7]="autoClosingComments",l[l.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",l[l.autoClosingDelete=9]="autoClosingDelete",l[l.autoClosingOvertype=10]="autoClosingOvertype",l[l.autoClosingQuotes=11]="autoClosingQuotes",l[l.autoIndent=12]="autoIndent",l[l.automaticLayout=13]="automaticLayout",l[l.autoSurround=14]="autoSurround",l[l.bracketPairColorization=15]="bracketPairColorization",l[l.guides=16]="guides",l[l.codeLens=17]="codeLens",l[l.codeLensFontFamily=18]="codeLensFontFamily",l[l.codeLensFontSize=19]="codeLensFontSize",l[l.colorDecorators=20]="colorDecorators",l[l.colorDecoratorsLimit=21]="colorDecoratorsLimit",l[l.columnSelection=22]="columnSelection",l[l.comments=23]="comments",l[l.contextmenu=24]="contextmenu",l[l.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",l[l.cursorBlinking=26]="cursorBlinking",l[l.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",l[l.cursorStyle=28]="cursorStyle",l[l.cursorSurroundingLines=29]="cursorSurroundingLines",l[l.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",l[l.cursorWidth=31]="cursorWidth",l[l.disableLayerHinting=32]="disableLayerHinting",l[l.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",l[l.domReadOnly=34]="domReadOnly",l[l.dragAndDrop=35]="dragAndDrop",l[l.dropIntoEditor=36]="dropIntoEditor",l[l.emptySelectionClipboard=37]="emptySelectionClipboard",l[l.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",l[l.extraEditorClassName=39]="extraEditorClassName",l[l.fastScrollSensitivity=40]="fastScrollSensitivity",l[l.find=41]="find",l[l.fixedOverflowWidgets=42]="fixedOverflowWidgets",l[l.folding=43]="folding",l[l.foldingStrategy=44]="foldingStrategy",l[l.foldingHighlight=45]="foldingHighlight",l[l.foldingImportsByDefault=46]="foldingImportsByDefault",l[l.foldingMaximumRegions=47]="foldingMaximumRegions",l[l.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",l[l.fontFamily=49]="fontFamily",l[l.fontInfo=50]="fontInfo",l[l.fontLigatures=51]="fontLigatures",l[l.fontSize=52]="fontSize",l[l.fontWeight=53]="fontWeight",l[l.fontVariations=54]="fontVariations",l[l.formatOnPaste=55]="formatOnPaste",l[l.formatOnType=56]="formatOnType",l[l.glyphMargin=57]="glyphMargin",l[l.gotoLocation=58]="gotoLocation",l[l.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",l[l.hover=60]="hover",l[l.inDiffEditor=61]="inDiffEditor",l[l.inlineSuggest=62]="inlineSuggest",l[l.inlineEdit=63]="inlineEdit",l[l.letterSpacing=64]="letterSpacing",l[l.lightbulb=65]="lightbulb",l[l.lineDecorationsWidth=66]="lineDecorationsWidth",l[l.lineHeight=67]="lineHeight",l[l.lineNumbers=68]="lineNumbers",l[l.lineNumbersMinChars=69]="lineNumbersMinChars",l[l.linkedEditing=70]="linkedEditing",l[l.links=71]="links",l[l.matchBrackets=72]="matchBrackets",l[l.minimap=73]="minimap",l[l.mouseStyle=74]="mouseStyle",l[l.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",l[l.mouseWheelZoom=76]="mouseWheelZoom",l[l.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",l[l.multiCursorModifier=78]="multiCursorModifier",l[l.multiCursorPaste=79]="multiCursorPaste",l[l.multiCursorLimit=80]="multiCursorLimit",l[l.occurrencesHighlight=81]="occurrencesHighlight",l[l.overviewRulerBorder=82]="overviewRulerBorder",l[l.overviewRulerLanes=83]="overviewRulerLanes",l[l.padding=84]="padding",l[l.pasteAs=85]="pasteAs",l[l.parameterHints=86]="parameterHints",l[l.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",l[l.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",l[l.quickSuggestions=89]="quickSuggestions",l[l.quickSuggestionsDelay=90]="quickSuggestionsDelay",l[l.readOnly=91]="readOnly",l[l.readOnlyMessage=92]="readOnlyMessage",l[l.renameOnType=93]="renameOnType",l[l.renderControlCharacters=94]="renderControlCharacters",l[l.renderFinalNewline=95]="renderFinalNewline",l[l.renderLineHighlight=96]="renderLineHighlight",l[l.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",l[l.renderValidationDecorations=98]="renderValidationDecorations",l[l.renderWhitespace=99]="renderWhitespace",l[l.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",l[l.roundedSelection=101]="roundedSelection",l[l.rulers=102]="rulers",l[l.scrollbar=103]="scrollbar",l[l.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",l[l.scrollBeyondLastLine=105]="scrollBeyondLastLine",l[l.scrollPredominantAxis=106]="scrollPredominantAxis",l[l.selectionClipboard=107]="selectionClipboard",l[l.selectionHighlight=108]="selectionHighlight",l[l.selectOnLineNumbers=109]="selectOnLineNumbers",l[l.showFoldingControls=110]="showFoldingControls",l[l.showUnused=111]="showUnused",l[l.snippetSuggestions=112]="snippetSuggestions",l[l.smartSelect=113]="smartSelect",l[l.smoothScrolling=114]="smoothScrolling",l[l.stickyScroll=115]="stickyScroll",l[l.stickyTabStops=116]="stickyTabStops",l[l.stopRenderingLineAfter=117]="stopRenderingLineAfter",l[l.suggest=118]="suggest",l[l.suggestFontSize=119]="suggestFontSize",l[l.suggestLineHeight=120]="suggestLineHeight",l[l.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",l[l.suggestSelection=122]="suggestSelection",l[l.tabCompletion=123]="tabCompletion",l[l.tabIndex=124]="tabIndex",l[l.unicodeHighlighting=125]="unicodeHighlighting",l[l.unusualLineTerminators=126]="unusualLineTerminators",l[l.useShadowDOM=127]="useShadowDOM",l[l.useTabStops=128]="useTabStops",l[l.wordBreak=129]="wordBreak",l[l.wordSegmenterLocales=130]="wordSegmenterLocales",l[l.wordSeparators=131]="wordSeparators",l[l.wordWrap=132]="wordWrap",l[l.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",l[l.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",l[l.wordWrapColumn=135]="wordWrapColumn",l[l.wordWrapOverride1=136]="wordWrapOverride1",l[l.wordWrapOverride2=137]="wordWrapOverride2",l[l.wrappingIndent=138]="wrappingIndent",l[l.wrappingStrategy=139]="wrappingStrategy",l[l.showDeprecated=140]="showDeprecated",l[l.inlayHints=141]="inlayHints",l[l.editorClassName=142]="editorClassName",l[l.pixelRatio=143]="pixelRatio",l[l.tabFocusMode=144]="tabFocusMode",l[l.layoutInfo=145]="layoutInfo",l[l.wrappingInfo=146]="wrappingInfo",l[l.defaultColorDecorators=147]="defaultColorDecorators",l[l.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",l[l.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(edt||(edt={}));(function(l){l[l.TextDefined=0]="TextDefined",l[l.LF=1]="LF",l[l.CRLF=2]="CRLF"})(tdt||(tdt={}));(function(l){l[l.LF=0]="LF",l[l.CRLF=1]="CRLF"})(idt||(idt={}));(function(l){l[l.Left=1]="Left",l[l.Center=2]="Center",l[l.Right=3]="Right"})(ndt||(ndt={}));(function(l){l[l.Increase=0]="Increase",l[l.Decrease=1]="Decrease"})(rdt||(rdt={}));(function(l){l[l.None=0]="None",l[l.Indent=1]="Indent",l[l.IndentOutdent=2]="IndentOutdent",l[l.Outdent=3]="Outdent"})(odt||(odt={}));(function(l){l[l.Both=0]="Both",l[l.Right=1]="Right",l[l.Left=2]="Left",l[l.None=3]="None"})(sdt||(sdt={}));(function(l){l[l.Type=1]="Type",l[l.Parameter=2]="Parameter"})(adt||(adt={}));(function(l){l[l.Automatic=0]="Automatic",l[l.Explicit=1]="Explicit"})(cdt||(cdt={}));(function(l){l[l.Invoke=0]="Invoke",l[l.Automatic=1]="Automatic"})(ldt||(ldt={}));(function(l){l[l.DependsOnKbLayout=-1]="DependsOnKbLayout",l[l.Unknown=0]="Unknown",l[l.Backspace=1]="Backspace",l[l.Tab=2]="Tab",l[l.Enter=3]="Enter",l[l.Shift=4]="Shift",l[l.Ctrl=5]="Ctrl",l[l.Alt=6]="Alt",l[l.PauseBreak=7]="PauseBreak",l[l.CapsLock=8]="CapsLock",l[l.Escape=9]="Escape",l[l.Space=10]="Space",l[l.PageUp=11]="PageUp",l[l.PageDown=12]="PageDown",l[l.End=13]="End",l[l.Home=14]="Home",l[l.LeftArrow=15]="LeftArrow",l[l.UpArrow=16]="UpArrow",l[l.RightArrow=17]="RightArrow",l[l.DownArrow=18]="DownArrow",l[l.Insert=19]="Insert",l[l.Delete=20]="Delete",l[l.Digit0=21]="Digit0",l[l.Digit1=22]="Digit1",l[l.Digit2=23]="Digit2",l[l.Digit3=24]="Digit3",l[l.Digit4=25]="Digit4",l[l.Digit5=26]="Digit5",l[l.Digit6=27]="Digit6",l[l.Digit7=28]="Digit7",l[l.Digit8=29]="Digit8",l[l.Digit9=30]="Digit9",l[l.KeyA=31]="KeyA",l[l.KeyB=32]="KeyB",l[l.KeyC=33]="KeyC",l[l.KeyD=34]="KeyD",l[l.KeyE=35]="KeyE",l[l.KeyF=36]="KeyF",l[l.KeyG=37]="KeyG",l[l.KeyH=38]="KeyH",l[l.KeyI=39]="KeyI",l[l.KeyJ=40]="KeyJ",l[l.KeyK=41]="KeyK",l[l.KeyL=42]="KeyL",l[l.KeyM=43]="KeyM",l[l.KeyN=44]="KeyN",l[l.KeyO=45]="KeyO",l[l.KeyP=46]="KeyP",l[l.KeyQ=47]="KeyQ",l[l.KeyR=48]="KeyR",l[l.KeyS=49]="KeyS",l[l.KeyT=50]="KeyT",l[l.KeyU=51]="KeyU",l[l.KeyV=52]="KeyV",l[l.KeyW=53]="KeyW",l[l.KeyX=54]="KeyX",l[l.KeyY=55]="KeyY",l[l.KeyZ=56]="KeyZ",l[l.Meta=57]="Meta",l[l.ContextMenu=58]="ContextMenu",l[l.F1=59]="F1",l[l.F2=60]="F2",l[l.F3=61]="F3",l[l.F4=62]="F4",l[l.F5=63]="F5",l[l.F6=64]="F6",l[l.F7=65]="F7",l[l.F8=66]="F8",l[l.F9=67]="F9",l[l.F10=68]="F10",l[l.F11=69]="F11",l[l.F12=70]="F12",l[l.F13=71]="F13",l[l.F14=72]="F14",l[l.F15=73]="F15",l[l.F16=74]="F16",l[l.F17=75]="F17",l[l.F18=76]="F18",l[l.F19=77]="F19",l[l.F20=78]="F20",l[l.F21=79]="F21",l[l.F22=80]="F22",l[l.F23=81]="F23",l[l.F24=82]="F24",l[l.NumLock=83]="NumLock",l[l.ScrollLock=84]="ScrollLock",l[l.Semicolon=85]="Semicolon",l[l.Equal=86]="Equal",l[l.Comma=87]="Comma",l[l.Minus=88]="Minus",l[l.Period=89]="Period",l[l.Slash=90]="Slash",l[l.Backquote=91]="Backquote",l[l.BracketLeft=92]="BracketLeft",l[l.Backslash=93]="Backslash",l[l.BracketRight=94]="BracketRight",l[l.Quote=95]="Quote",l[l.OEM_8=96]="OEM_8",l[l.IntlBackslash=97]="IntlBackslash",l[l.Numpad0=98]="Numpad0",l[l.Numpad1=99]="Numpad1",l[l.Numpad2=100]="Numpad2",l[l.Numpad3=101]="Numpad3",l[l.Numpad4=102]="Numpad4",l[l.Numpad5=103]="Numpad5",l[l.Numpad6=104]="Numpad6",l[l.Numpad7=105]="Numpad7",l[l.Numpad8=106]="Numpad8",l[l.Numpad9=107]="Numpad9",l[l.NumpadMultiply=108]="NumpadMultiply",l[l.NumpadAdd=109]="NumpadAdd",l[l.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",l[l.NumpadSubtract=111]="NumpadSubtract",l[l.NumpadDecimal=112]="NumpadDecimal",l[l.NumpadDivide=113]="NumpadDivide",l[l.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",l[l.ABNT_C1=115]="ABNT_C1",l[l.ABNT_C2=116]="ABNT_C2",l[l.AudioVolumeMute=117]="AudioVolumeMute",l[l.AudioVolumeUp=118]="AudioVolumeUp",l[l.AudioVolumeDown=119]="AudioVolumeDown",l[l.BrowserSearch=120]="BrowserSearch",l[l.BrowserHome=121]="BrowserHome",l[l.BrowserBack=122]="BrowserBack",l[l.BrowserForward=123]="BrowserForward",l[l.MediaTrackNext=124]="MediaTrackNext",l[l.MediaTrackPrevious=125]="MediaTrackPrevious",l[l.MediaStop=126]="MediaStop",l[l.MediaPlayPause=127]="MediaPlayPause",l[l.LaunchMediaPlayer=128]="LaunchMediaPlayer",l[l.LaunchMail=129]="LaunchMail",l[l.LaunchApp2=130]="LaunchApp2",l[l.Clear=131]="Clear",l[l.MAX_VALUE=132]="MAX_VALUE"})(udt||(udt={}));(function(l){l[l.Hint=1]="Hint",l[l.Info=2]="Info",l[l.Warning=4]="Warning",l[l.Error=8]="Error"})(ddt||(ddt={}));(function(l){l[l.Unnecessary=1]="Unnecessary",l[l.Deprecated=2]="Deprecated"})(fdt||(fdt={}));(function(l){l[l.Inline=1]="Inline",l[l.Gutter=2]="Gutter"})(_dt||(_dt={}));(function(l){l[l.Normal=1]="Normal",l[l.Underlined=2]="Underlined"})(pdt||(pdt={}));(function(l){l[l.UNKNOWN=0]="UNKNOWN",l[l.TEXTAREA=1]="TEXTAREA",l[l.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",l[l.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",l[l.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",l[l.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",l[l.CONTENT_TEXT=6]="CONTENT_TEXT",l[l.CONTENT_EMPTY=7]="CONTENT_EMPTY",l[l.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",l[l.CONTENT_WIDGET=9]="CONTENT_WIDGET",l[l.OVERVIEW_RULER=10]="OVERVIEW_RULER",l[l.SCROLLBAR=11]="SCROLLBAR",l[l.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",l[l.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(mdt||(mdt={}));(function(l){l[l.AIGenerated=1]="AIGenerated"})(hdt||(hdt={}));(function(l){l[l.Invoke=0]="Invoke",l[l.Automatic=1]="Automatic"})(gdt||(gdt={}));(function(l){l[l.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",l[l.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",l[l.TOP_CENTER=2]="TOP_CENTER"})(ydt||(ydt={}));(function(l){l[l.Left=1]="Left",l[l.Center=2]="Center",l[l.Right=4]="Right",l[l.Full=7]="Full"})(vdt||(vdt={}));(function(l){l[l.Word=0]="Word",l[l.Line=1]="Line",l[l.Suggest=2]="Suggest"})(bdt||(bdt={}));(function(l){l[l.Left=0]="Left",l[l.Right=1]="Right",l[l.None=2]="None",l[l.LeftOfInjectedText=3]="LeftOfInjectedText",l[l.RightOfInjectedText=4]="RightOfInjectedText"})(Sdt||(Sdt={}));(function(l){l[l.Off=0]="Off",l[l.On=1]="On",l[l.Relative=2]="Relative",l[l.Interval=3]="Interval",l[l.Custom=4]="Custom"})(xdt||(xdt={}));(function(l){l[l.None=0]="None",l[l.Text=1]="Text",l[l.Blocks=2]="Blocks"})(Cdt||(Cdt={}));(function(l){l[l.Smooth=0]="Smooth",l[l.Immediate=1]="Immediate"})(kdt||(kdt={}));(function(l){l[l.Auto=1]="Auto",l[l.Hidden=2]="Hidden",l[l.Visible=3]="Visible"})(wdt||(wdt={}));(function(l){l[l.LTR=0]="LTR",l[l.RTL=1]="RTL"})(Tdt||(Tdt={}));(function(l){l.Off="off",l.OnCode="onCode",l.On="on"})(Edt||(Edt={}));(function(l){l[l.Invoke=1]="Invoke",l[l.TriggerCharacter=2]="TriggerCharacter",l[l.ContentChange=3]="ContentChange"})(Ddt||(Ddt={}));(function(l){l[l.File=0]="File",l[l.Module=1]="Module",l[l.Namespace=2]="Namespace",l[l.Package=3]="Package",l[l.Class=4]="Class",l[l.Method=5]="Method",l[l.Property=6]="Property",l[l.Field=7]="Field",l[l.Constructor=8]="Constructor",l[l.Enum=9]="Enum",l[l.Interface=10]="Interface",l[l.Function=11]="Function",l[l.Variable=12]="Variable",l[l.Constant=13]="Constant",l[l.String=14]="String",l[l.Number=15]="Number",l[l.Boolean=16]="Boolean",l[l.Array=17]="Array",l[l.Object=18]="Object",l[l.Key=19]="Key",l[l.Null=20]="Null",l[l.EnumMember=21]="EnumMember",l[l.Struct=22]="Struct",l[l.Event=23]="Event",l[l.Operator=24]="Operator",l[l.TypeParameter=25]="TypeParameter"})(Idt||(Idt={}));(function(l){l[l.Deprecated=1]="Deprecated"})(Ndt||(Ndt={}));(function(l){l[l.Hidden=0]="Hidden",l[l.Blink=1]="Blink",l[l.Smooth=2]="Smooth",l[l.Phase=3]="Phase",l[l.Expand=4]="Expand",l[l.Solid=5]="Solid"})(Adt||(Adt={}));(function(l){l[l.Line=1]="Line",l[l.Block=2]="Block",l[l.Underline=3]="Underline",l[l.LineThin=4]="LineThin",l[l.BlockOutline=5]="BlockOutline",l[l.UnderlineThin=6]="UnderlineThin"})(Pdt||(Pdt={}));(function(l){l[l.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",l[l.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",l[l.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",l[l.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Ldt||(Ldt={}));(function(l){l[l.None=0]="None",l[l.Same=1]="Same",l[l.Indent=2]="Indent",l[l.DeepIndent=3]="DeepIndent"})(Odt||(Odt={}))});function Mdt(){return{editor:void 0,languages:void 0,CancellationTokenSource:k_,Emitter:fn,KeyCode:udt,KeyMod:NNe,Position:Cn,Range:Vt,Selection:ya,SelectionDirection:Tdt,MarkerSeverity:ddt,MarkerTag:fdt,Uri:Ka,Token:NG}}var NNe,SQt=Ht(()=>{am();Pa();p7();Lh();Ll();ca();hg();Fg();Fdt();NNe=class{static chord(i,o){return vv(i,o)}};NNe.CtrlCmd=2048;NNe.Shift=1024;NNe.Alt=512;NNe.WinCtrl=256});function $gi(l,i){let o=l;typeof o.vscodeWindowId!="number"&&Object.defineProperty(o,"vscodeWindowId",{get:()=>i})}var D_,GA=Ht(()=>{D_=window});function Ggi(l){return l}var Rdt,bnt,xQt=Ht(()=>{Rdt=class{constructor(i,o){this.lastCache=void 0,this.lastArgKey=void 0,typeof i=="function"?(this._fn=i,this._computeKey=Ggi):(this._fn=o,this._computeKey=i.getCacheKey)}get(i){let o=this._computeKey(i);return this.lastArgKey!==o&&(this.lastArgKey=o,this.lastCache=this._fn(i)),this.lastCache}},bnt=class{get cachedValues(){return this._map}constructor(i,o){this._map=new Map,this._map2=new Map,typeof i=="function"?(this._fn=i,this._computeKey=Ggi):(this._fn=o,this._computeKey=i.getCacheKey)}get(i){let o=this._computeKey(i);if(this._map2.has(o))return this._map2.get(o);let s=this._fn(i);return this._map.set(i,s),this._map2.set(o,s),s}}});var TC,AG=Ht(()=>{TC=class{constructor(i){this.executor=i,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(i){this._error=i}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}});function Bdt(l){return!l||typeof l!="string"?!0:l.trim().length===0}function QB(l,...i){return i.length===0?l:l.replace(lRi,function(o,s){let c=parseInt(s,10);return isNaN(c)||c<0||c>=i.length?o:i[c]})}function Xgi(l){return l.replace(/[<>"'&]/g,i=>{switch(i){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return i})}function bde(l){return l.replace(/[<>&]/g,function(i){switch(i){case"<":return"<";case">":return">";case"&":return"&";default:return i}})}function Cw(l){return l.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Ygi(l,i=" "){let o=vle(l,i);return kQt(o,i)}function vle(l,i){if(!l||!i)return l;let o=i.length;if(o===0||l.length===0)return l;let s=0;for(;l.indexOf(i,s)===s;)s=s+o;return l.substring(s)}function kQt(l,i){if(!l||!i)return l;let o=i.length,s=l.length;if(o===0||s===0)return l;let c=s,_=-1;for(;_=l.lastIndexOf(i,c-1),!(_===-1||_+o!==c);){if(_===0)return"";c=_}return l.substring(0,c)}function Qgi(l){return l.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Zgi(l){return l.replace(/\*/g,"")}function jdt(l,i,o={}){if(!l)throw new Error("Cannot create regex from empty string");i||(l=Cw(l)),o.wholeWord&&(/\B/.test(l.charAt(0))||(l="\\b"+l),/\B/.test(l.charAt(l.length-1))||(l=l+"\\b"));let s="";return o.global&&(s+="g"),o.matchCase||(s+="i"),o.multiline&&(s+="m"),o.unicode&&(s+="u"),new RegExp(l,s)}function e0i(l){return l.source==="^"||l.source==="^$"||l.source==="$"||l.source==="^\\s*$"?!1:!!(l.exec("")&&l.lastIndex===0)}function KA(l){return l.split(/\r\n|\r|\n/)}function t0i(l){var i;let o=[],s=l.split(/(\r\n|\r|\n)/);for(let c=0;c=0;o--){let s=l.charCodeAt(o);if(s!==32&&s!==9)return o}return-1}function Sde(l,i){return li?1:0}function Wdt(l,i,o=0,s=l.length,c=0,_=i.length){for(;oD)return 1}let h=s-o,b=_-c;return hb?1:0}function Cnt(l,i){return X4e(l,i,0,l.length,0,i.length)}function X4e(l,i,o=0,s=l.length,c=0,_=i.length){for(;o=128||D>=128)return Wdt(l.toLowerCase(),i.toLowerCase(),o,s,c,_);LK(w)&&(w-=32),LK(D)&&(D-=32);let O=w-D;if(O!==0)return O}let h=s-o,b=_-c;return hb?1:0}function knt(l){return l>=48&&l<=57}function LK(l){return l>=97&&l<=122}function ZB(l){return l>=65&&l<=90}function ble(l,i){return l.length===i.length&&X4e(l,i)===0}function Y4e(l,i){let o=i.length;return i.length>l.length?!1:X4e(l,i,0,o)===0}function FF(l,i){let o=Math.min(l.length,i.length),s;for(s=0;s1){let s=l.charCodeAt(i-2);if(E1(s))return zdt(s,o)}return o}function wnt(l,i){return new ANe(l,i).nextGraphemeLength()}function wQt(l,i){return new ANe(l,i).prevGraphemeLength()}function i0i(l,i){i>0&&MK(l.charCodeAt(i))&&i--;let o=i+wnt(l,i);return[o-wQt(l,o),o]}function dRi(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function PG(l){return CQt||(CQt=dRi()),CQt.test(l)}function RK(l){return fRi.test(l)}function Vdt(l){return TQt.test(l)}function ej(l){return l>=11904&&l<=55215||l>=63744&&l<=64255||l>=65281&&l<=65374}function Tnt(l){return l>=127462&&l<=127487||l===8986||l===8987||l===9200||l===9203||l>=9728&&l<=10175||l===11088||l===11093||l>=127744&&l<=128591||l>=128640&&l<=128764||l>=128992&&l<=129008||l>=129280&&l<=129535||l>=129648&&l<=129782}function Z4e(l){return!!(l&&l.length>0&&l.charCodeAt(0)===65279)}function r0i(l,i=!1){return l?(i&&(l=l.replace(/\\./g,"")),l.toLowerCase()!==l):!1}function Hdt(l){return l=l%(2*26),l<26?String.fromCharCode(97+l):String.fromCharCode(65+l-26)}function Kgi(l,i){return l===0?i!==5&&i!==7:l===2&&i===3?!1:l===4||l===2||l===3||i===4||i===2||i===3?!0:!(l===8&&(i===8||i===9||i===11||i===12)||(l===11||l===9)&&(i===9||i===10)||(l===12||l===10)&&i===10||i===5||i===13||i===7||l===1||l===13&&i===14||l===6&&i===6)}function _Ri(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function o0i(l,i){if(l===0)return 0;let o=pRi(l,i);if(o!==void 0)return o;let s=new Snt(i,l);return s.prevCodePoint(),s.offset}function pRi(l,i){let o=new Snt(i,l),s=o.prevCodePoint();for(;mRi(s)||s===65039||s===8419;){if(o.offset===0)return;s=o.prevCodePoint()}if(!Tnt(s))return;let c=o.offset;return c>0&&o.prevCodePoint()===8205&&(c=o.offset),c}function mRi(l){return 127995<=l&&l<=127999}var K4e,lRi,Snt,ANe,CQt,fRi,TQt,n0i,xnt,Udt,OK,FK,Bl=Ht(()=>{xQt();AG();lRi=/{(\d+)}/g;Snt=class{get offset(){return this._offset}constructor(i,o=0){this._str=i,this._len=i.length,this._offset=o}setOffset(i){this._offset=i}prevCodePoint(){let i=uRi(this._str,this._offset);return this._offset-=i>=65536?2:1,i}nextCodePoint(){let i=Q4e(this._str,this._len,this._offset);return this._offset+=i>=65536?2:1,i}eol(){return this._offset>=this._len}},ANe=class{get offset(){return this._iterator.offset}constructor(i,o=0){this._iterator=new Snt(i,o)}nextGraphemeLength(){let i=xnt.getInstance(),o=this._iterator,s=o.offset,c=i.getGraphemeBreakType(o.nextCodePoint());for(;!o.eol();){let _=o.offset,h=i.getGraphemeBreakType(o.nextCodePoint());if(Kgi(c,h)){o.setOffset(_);break}c=h}return o.offset-s}prevGraphemeLength(){let i=xnt.getInstance(),o=this._iterator,s=o.offset,c=i.getGraphemeBreakType(o.prevCodePoint());for(;o.offset>0;){let _=o.offset,h=i.getGraphemeBreakType(o.prevCodePoint());if(Kgi(h,c)){o.setOffset(_);break}c=h}return s-o.offset}eol(){return this._iterator.eol()}};fRi=/^[\t\n\r\x20-\x7E]*$/;TQt=/[\u2028\u2029]/;n0i="\uFEFF";xnt=class l{static getInstance(){return l._INSTANCE||(l._INSTANCE=new l),l._INSTANCE}constructor(){this._data=_Ri()}getGraphemeBreakType(i){if(i<32)return i===10?3:i===13?2:4;if(i<127)return 0;let o=this._data,s=o.length/3,c=1;for(;c<=s;)if(io[3*c+1])c=2*c+1;else return o[3*c+2];return 0}};xnt._INSTANCE=null;Udt="\xA0",OK=class{static getInstance(i){return K4e.cache.get(Array.from(i))}static getLocales(){return K4e._locales.value}constructor(i){this.confusableDictionary=i}isAmbiguous(i){return this.confusableDictionary.has(i)}getPrimaryConfusable(i){return this.confusableDictionary.get(i)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};K4e=OK;OK.ambiguousCharacterData=new TC(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));OK.cache=new Rdt({getCacheKey:JSON.stringify},l=>{function i(D){let O=new Map;for(let j=0;j!D.startsWith("_")&&D in c);_.length===0&&(_=["_default"]);let h;for(let D of _){let O=i(c[D]);h=s(h,O)}let b=i(c._common),w=o(b,h);return new K4e(w)});OK._locales=new TC(()=>Object.keys(K4e.ambiguousCharacterData.value).filter(l=>!l.startsWith("_")));FK=class l{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(l.getRawData())),this._data}static isInvisibleCharacter(i){return l.getData().has(i)}static get codePoints(){return l.getData()}};FK._data=void 0});var s0i=Ht(()=>{});function EQt(l,i,o){typeof i=="string"&&(i=l.matchMedia(i)),i.addEventListener("change",o)}function a0i(l){return Ent.INSTANCE.getZoomFactor(l)}function c0i(){return Jdt}var Ent,e6e,m2,LG,xde,MF,qdt,Prn,DQt,Jdt,RL=Ht(()=>{GA();Ent=class{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(i){var o;return(o=this.mapWindowIdToZoomFactor.get(this.getWindowId(i)))!==null&&o!==void 0?o:1}getWindowId(i){return i.vscodeWindowId}};Ent.INSTANCE=new Ent;e6e=navigator.userAgent,m2=e6e.indexOf("Firefox")>=0,LG=e6e.indexOf("AppleWebKit")>=0,xde=e6e.indexOf("Chrome")>=0,MF=!xde&&e6e.indexOf("Safari")>=0,qdt=!xde&&!MF&&LG,Prn=e6e.indexOf("Electron/")>=0,DQt=e6e.indexOf("Android")>=0,Jdt=!1;if(typeof D_.matchMedia=="function"){let l=D_.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),i=D_.matchMedia("(display-mode: fullscreen)");Jdt=l.matches,EQt(D_,l,({matches:o})=>{Jdt&&i.matches||(Jdt=o)})}});var t6e,$dt=Ht(()=>{RL();GA();uf();t6e={clipboard:{writeText:LL||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:LL||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:LL||c0i()?0:navigator.keyboard||MF?1:2,touch:"ontouchstart"in D_||navigator.maxTouchPoints>0,pointerEvents:D_.PointerEvent&&("ontouchstart"in D_||navigator.maxTouchPoints>0)}});function Int(l,i){if(typeof l=="number"){if(l===0)return null;let o=(l&65535)>>>0,s=(l&4294901760)>>>16;return s!==0?new Dnt([Gdt(o,i),Gdt(s,i)]):new Dnt([Gdt(o,i)])}else{let o=[];for(let s=0;s{Pl();tj=class l{constructor(i,o,s,c,_){this.ctrlKey=i,this.shiftKey=o,this.altKey=s,this.metaKey=c,this.keyCode=_}equals(i){return i instanceof l&&this.ctrlKey===i.ctrlKey&&this.shiftKey===i.shiftKey&&this.altKey===i.altKey&&this.metaKey===i.metaKey&&this.keyCode===i.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},Dnt=class{constructor(i){if(i.length===0)throw RD("chords");this.chords=i}},Kdt=class{constructor(i,o,s,c,_,h){this.ctrlKey=i,this.shiftKey=o,this.altKey=s,this.metaKey=c,this.keyLabel=_,this.keyAriaLabel=h}},Xdt=class{}});function hRi(l){if(l.charCode){let o=String.fromCharCode(l.charCode).toUpperCase();return Uj.fromString(o)}let i=l.keyCode;if(i===3)return 7;if(m2)switch(i){case 59:return 85;case 60:if(w1)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(uu)return 57;break}else if(LG){if(uu&&i===93)return 57;if(!uu&&i===92)return 57}return _Qt[i]||0}var gRi,yRi,vRi,bRi,w_,jD=Ht(()=>{RL();p7();LNe();uf();gRi=uu?256:2048,yRi=512,vRi=1024,bRi=uu?2048:256,w_=class{constructor(i){var o;this._standardKeyboardEventBrand=!0;let s=i;this.browserEvent=s,this.target=s.target,this.ctrlKey=s.ctrlKey,this.shiftKey=s.shiftKey,this.altKey=s.altKey,this.metaKey=s.metaKey,this.altGraphKey=(o=s.getModifierState)===null||o===void 0?void 0:o.call(s,"AltGraph"),this.keyCode=hRi(s),this.code=s.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(i){return this._asKeybinding===i}_computeKeybinding(){let i=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(i=this.keyCode);let o=0;return this.ctrlKey&&(o|=gRi),this.altKey&&(o|=yRi),this.shiftKey&&(o|=vRi),this.metaKey&&(o|=bRi),o|=i,o}_computeKeyCodeChord(){let i=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(i=this.keyCode),new tj(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,i)}}});function SRi(l){if(!l.parent||l.parent===l)return null;try{let i=l.location,o=l.parent.location;if(i.origin!=="null"&&o.origin!=="null"&&i.origin!==o.origin)return null}catch{return null}return l.parent}var l0i,Ydt,u0i=Ht(()=>{l0i=new WeakMap;Ydt=class{static getSameOriginWindowChain(i){let o=l0i.get(i);if(!o){o=[],l0i.set(i,o);let s=i,c;do c=SRi(s),c?o.push({window:new WeakRef(s),iframeElement:s.frameElement||null}):o.push({window:new WeakRef(s),iframeElement:null}),s=c;while(s)}return o.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(i,o){var s,c;if(!o||i===o)return{top:0,left:0};let _=0,h=0,b=this.getSameOriginWindowChain(i);for(let w of b){let D=w.window.deref();if(_+=(s=D?.scrollY)!==null&&s!==void 0?s:0,h+=(c=D?.scrollX)!==null&&c!==void 0?c:0,D===o||!w.iframeElement)break;let O=w.iframeElement.getBoundingClientRect();_+=O.top,h+=O.left}return{top:_,left:h}}}});var h2,ij,h7=Ht(()=>{RL();u0i();uf();h2=class{constructor(i,o){this.timestamp=Date.now(),this.browserEvent=o,this.leftButton=o.button===0,this.middleButton=o.button===1,this.rightButton=o.button===2,this.buttons=o.buttons,this.target=o.target,this.detail=o.detail||1,o.type==="dblclick"&&(this.detail=2),this.ctrlKey=o.ctrlKey,this.shiftKey=o.shiftKey,this.altKey=o.altKey,this.metaKey=o.metaKey,typeof o.pageX=="number"?(this.posx=o.pageX,this.posy=o.pageY):(this.posx=o.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=o.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);let s=Ydt.getPositionOfChildWindowRelativeToAncestorWindow(i,o.view);this.posx-=s.left,this.posy-=s.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},ij=class{constructor(i,o=0,s=0){var c;this.browserEvent=i||null,this.target=i?i.target||i.targetNode||i.srcElement:null,this.deltaY=s,this.deltaX=o;let _=!1;if(xde){let h=navigator.userAgent.match(/Chrome\/(\d+)/);_=(h?parseInt(h[1]):123)<=122}if(i){let h=i,b=i,w=((c=i.view)===null||c===void 0?void 0:c.devicePixelRatio)||1;if(typeof h.wheelDeltaY<"u")_?this.deltaY=h.wheelDeltaY/(120*w):this.deltaY=h.wheelDeltaY/120;else if(typeof b.VERTICAL_AXIS<"u"&&b.axis===b.VERTICAL_AXIS)this.deltaY=-b.detail/3;else if(i.type==="wheel"){let D=i;D.deltaMode===D.DOM_DELTA_LINE?m2&&!uu?this.deltaY=-i.deltaY/3:this.deltaY=-i.deltaY:this.deltaY=-i.deltaY/40}if(typeof h.wheelDeltaX<"u")MF&&Ny?this.deltaX=-(h.wheelDeltaX/120):_?this.deltaX=h.wheelDeltaX/(120*w):this.deltaX=h.wheelDeltaX/120;else if(typeof b.HORIZONTAL_AXIS<"u"&&b.axis===b.HORIZONTAL_AXIS)this.deltaX=-i.detail/3;else if(i.type==="wheel"){let D=i;D.deltaMode===D.DOM_DELTA_LINE?m2&&!uu?this.deltaX=-i.deltaX/3:this.deltaX=-i.deltaX:this.deltaX=-i.deltaX/40}this.deltaY===0&&this.deltaX===0&&i.wheelDelta&&(_?this.deltaY=i.wheelDelta/(120*w):this.deltaY=i.wheelDelta/120)}}preventDefault(){var i;(i=this.browserEvent)===null||i===void 0||i.preventDefault()}stopPropagation(){var i;(i=this.browserEvent)===null||i===void 0||i.stopPropagation()}}});var Qdt,IQt=Ht(()=>{Qdt=Symbol("MicrotaskDelay")});function tft(l){return!!l&&typeof l.then=="function"}function Mg(l){let i=new k_,o=l(i.token),s=new Promise((c,_)=>{let h=i.token.onCancellationRequested(()=>{h.dispose(),_(new aP)});Promise.resolve(o).then(b=>{h.dispose(),i.dispose(),c(b)},b=>{h.dispose(),i.dispose(),_(b)})});return new class{cancel(){i.cancel(),i.dispose()}then(c,_){return s.then(c,_)}catch(c){return this.then(void 0,c)}finally(c){return s.finally(c)}}}function BK(l,i,o){return new Promise((s,c)=>{let _=i.onCancellationRequested(()=>{_.dispose(),s(o)});l.then(s,c).finally(()=>_.dispose())})}function sL(l,i){return i?new Promise((o,s)=>{let c=setTimeout(()=>{_.dispose(),o()},l),_=i.onCancellationRequested(()=>{clearTimeout(c),_.dispose(),s(new aP)})}):Mg(o=>sL(l,o))}function g7(l,i=0,o){let s=setTimeout(()=>{l(),o&&c.dispose()},i),c=Qs(()=>{clearTimeout(s),o?.deleteAndLeak(c)});return o?.add(c),c}function Ant(l,i=s=>!!s,o=null){let s=0,c=l.length,_=()=>{if(s>=c)return Promise.resolve(o);let h=l[s++];return Promise.resolve(h()).then(w=>i(w)?Promise.resolve(w):_())};return _()}function d0i(l){let i=new k_,o=l(i.token);return new AQt(i,async s=>{let c=i.token.onCancellationRequested(()=>{c.dispose(),i.dispose(),s.reject(new aP)});try{for await(let _ of o){if(i.token.isCancellationRequested)return;s.emitOne(_)}c.dispose(),i.dispose()}catch(_){c.dispose(),i.dispose(),s.reject(_)}})}var NQt,xRi,CRi,kw,n6e,MC,Cde,Bd,PQt,i6e,Nnt,Zdt,$j,eft,WD,AQt,Bu=Ht(()=>{am();Pl();Pa();$r();uf();IQt();NQt=class{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(i){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=i,!this.queuedPromise){let o=()=>{if(this.queuedPromise=null,this.isDisposed)return;let s=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,s};this.queuedPromise=new Promise(s=>{this.activePromise.then(o,o).then(s)})}return new Promise((o,s)=>{this.queuedPromise.then(o,s)})}return this.activePromise=i(),new Promise((o,s)=>{this.activePromise.then(c=>{this.activePromise=null,o(c)},c=>{this.activePromise=null,s(c)})})}dispose(){this.isDisposed=!0}},xRi=(l,i)=>{let o=!0,s=setTimeout(()=>{o=!1,i()},l);return{isTriggered:()=>o,dispose:()=>{clearTimeout(s),o=!1}}},CRi=l=>{let i=!0;return queueMicrotask(()=>{i&&(i=!1,l())}),{isTriggered:()=>i,dispose:()=>{i=!1}}},kw=class{constructor(i){this.defaultDelay=i,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(i,o=this.defaultDelay){this.task=i,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((c,_)=>{this.doResolve=c,this.doReject=_}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let c=this.task;return this.task=null,c()}}));let s=()=>{var c;this.deferred=null,(c=this.doResolve)===null||c===void 0||c.call(this,null)};return this.deferred=o===Qdt?CRi(s):xRi(o,s),this.completionPromise}isTriggered(){var i;return!!(!((i=this.deferred)===null||i===void 0)&&i.isTriggered())}cancel(){var i;this.cancelTimeout(),this.completionPromise&&((i=this.doReject)===null||i===void 0||i.call(this,new aP),this.completionPromise=null)}cancelTimeout(){var i;(i=this.deferred)===null||i===void 0||i.dispose(),this.deferred=null}dispose(){this.cancel()}},n6e=class{constructor(i){this.delayer=new kw(i),this.throttler=new NQt}trigger(i,o){return this.delayer.trigger(()=>this.throttler.queue(i),o)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}};MC=class{constructor(i,o){this._isDisposed=!1,this._token=-1,typeof i=="function"&&typeof o=="number"&&this.setIfNotSet(i,o)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(i,o){if(this._isDisposed)throw new C_("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,i()},o)}setIfNotSet(i,o){if(this._isDisposed)throw new C_("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,i()},o))}},Cde=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){var i;(i=this.disposable)===null||i===void 0||i.dispose(),this.disposable=void 0}cancelAndSet(i,o,s=globalThis){if(this.isDisposed)throw new C_("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();let c=s.setInterval(()=>{i()},o);this.disposable=Qs(()=>{s.clearInterval(c),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},Bd=class{constructor(i,o){this.timeoutToken=-1,this.runner=i,this.timeout=o,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(i=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,i)}get delay(){return this.timeout}set delay(i){this.timeout=i}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var i;(i=this.runner)===null||i===void 0||i.call(this)}};(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?i6e=(l,i)=>{vut(()=>{if(o)return;let s=Date.now()+15;i(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,s-Date.now())}}))});let o=!1;return{dispose(){o||(o=!0)}}}:i6e=(l,i,o)=>{let s=l.requestIdleCallback(i,typeof o=="number"?{timeout:o}:void 0),c=!1;return{dispose(){c||(c=!0,l.cancelIdleCallback(s))}}},PQt=l=>i6e(globalThis,l)})();Nnt=class{constructor(i,o){this._didRun=!1,this._executor=()=>{try{this._value=o()}catch(s){this._error=s}finally{this._didRun=!0}},this._handle=i6e(i,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}},Zdt=class extends Nnt{constructor(i){super(globalThis,i)}},$j=class{get isRejected(){var i;return((i=this.outcome)===null||i===void 0?void 0:i.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((i,o)=>{this.completeCallback=i,this.errorCallback=o})}complete(i){return new Promise(o=>{this.completeCallback(i),this.outcome={outcome:0,value:i},o()})}error(i){return new Promise(o=>{this.errorCallback(i),this.outcome={outcome:1,value:i},o()})}cancel(){return this.error(new aP)}};(function(l){async function i(s){let c,_=await Promise.all(s.map(h=>h.then(b=>b,b=>{c||(c=b)})));if(typeof c<"u")throw c;return _}l.settled=i;function o(s){return new Promise(async(c,_)=>{try{await s(c,_)}catch(h){_(h)}})}l.withAsyncBody=o})(eft||(eft={}));WD=class l{static fromArray(i){return new l(o=>{o.emitMany(i)})}static fromPromise(i){return new l(async o=>{o.emitMany(await i)})}static fromPromises(i){return new l(async o=>{await Promise.all(i.map(async s=>o.emitOne(await s)))})}static merge(i){return new l(async o=>{await Promise.all(i.map(async s=>{for await(let c of s)o.emitOne(c)}))})}constructor(i,o){this._state=0,this._results=[],this._error=null,this._onReturn=o,this._onStateChanged=new fn,queueMicrotask(async()=>{let s={emitOne:c=>this.emitOne(c),emitMany:c=>this.emitMany(c),reject:c=>this.reject(c)};try{await Promise.resolve(i(s)),this.resolve()}catch(c){this.reject(c)}finally{s.emitOne=void 0,s.emitMany=void 0,s.reject=void 0}})}[Symbol.asyncIterator](){let i=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(i{var o;return(o=this._onReturn)===null||o===void 0||o.call(this),{done:!0,value:void 0}}}}static map(i,o){return new l(async s=>{for await(let c of i)s.emitOne(o(c))})}map(i){return l.map(this,i)}static filter(i,o){return new l(async s=>{for await(let c of i)o(c)&&s.emitOne(c)})}filter(i){return l.filter(this,i)}static coalesce(i){return l.filter(i,o=>!!o)}coalesce(){return l.coalesce(this)}static async toPromise(i){let o=[];for await(let s of i)o.push(s);return o}toPromise(){return l.toPromise(this)}emitOne(i){this._state===0&&(this._results.push(i),this._onStateChanged.fire())}emitMany(i){this._state===0&&(this._results=this._results.concat(i),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(i){this._state===0&&(this._state=2,this._error=i,this._onStateChanged.fire())}};WD.EMPTY=WD.fromArray([]);AQt=class extends WD{constructor(i,o){super(o),this._source=i}cancel(){this._source.cancel()}}});function Gj(l){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c0&&arguments[0]!==void 0?arguments[0]:VRi(),i=gd=>x0i(gd);if(i.version="3.0.5",i.removed=[],!l||!l.document||l.document.nodeType!==9)return i.isSupported=!1,i;let o=l.document,s=o.currentScript,{document:c}=l,{DocumentFragment:_,HTMLTemplateElement:h,Node:b,Element:w,NodeFilter:D,NamedNodeMap:O=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:j,DOMParser:F,trustedTypes:X}=l,K=w.prototype,re=ift(K,"cloneNode"),Pe=ift(K,"nextSibling"),Le=ift(K,"childNodes"),Je=ift(K,"parentNode");if(typeof h=="function"){let gd=c.createElement("template");gd.content&&gd.content.ownerDocument&&(c=gd.content.ownerDocument)}let Ye,ft="",{implementation:Ct,createNodeIterator:Et,createDocumentFragment:St,getElementsByTagName:Mi}=c,{importNode:zi}=o,Vr={};i.isSupported=typeof v0i=="function"&&typeof Je=="function"&&Ct&&Ct.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:sn,ERB_EXPR:gr,TMPLIT_EXPR:er,DATA_ATTR:Di,ARIA_ATTR:rs,IS_SCRIPT_OR_DATA:Ls,ATTR_WHITESPACE:_i}=y0i,{IS_ALLOWED_URI:wc}=y0i,Uo=null,tc=zg({},[...p0i,...OQt,...FQt,...MQt,...m0i]),vo=null,kl=zg({},[...h0i,...RQt,...g0i,...nft]),qa=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Wy=null,Hb=null,ro=!0,bd=!0,Hg=!1,_p=!0,Kb=!1,hd=!1,oI=!1,Lt=!1,yw=!1,Fo=!1,PC=!1,Ow=!0,Que=!1,F_e="user-content-",hs=!0,es=!1,Vo={},vn=null,zn=zg({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Lr=null,zr=zg({},["audio","video","img","source","image","track"]),Js=null,hi=zg({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tl="http://www.w3.org/1998/Math/MathML",lu="http://www.w3.org/2000/svg",Fn="http://www.w3.org/1999/xhtml",jc=Fn,Qd=!1,bg=null,lc=zg({},[tl,lu,Fn],LQt),E0,D0=["application/xhtml+xml","text/html"],Wg="text/html",mc,I0=null,Ta=c.createElement("form"),CP=function(Go){return Go instanceof RegExp||Go instanceof Function},Lc=function(Go){if(!(I0&&I0===Go)){if((!Go||typeof Go!="object")&&(Go={}),Go=r6e(Go),E0=D0.indexOf(Go.PARSER_MEDIA_TYPE)===-1?E0=Wg:E0=Go.PARSER_MEDIA_TYPE,mc=E0==="application/xhtml+xml"?LQt:rft,Uo="ALLOWED_TAGS"in Go?zg({},Go.ALLOWED_TAGS,mc):tc,vo="ALLOWED_ATTR"in Go?zg({},Go.ALLOWED_ATTR,mc):kl,bg="ALLOWED_NAMESPACES"in Go?zg({},Go.ALLOWED_NAMESPACES,LQt):lc,Js="ADD_URI_SAFE_ATTR"in Go?zg(r6e(hi),Go.ADD_URI_SAFE_ATTR,mc):hi,Lr="ADD_DATA_URI_TAGS"in Go?zg(r6e(zr),Go.ADD_DATA_URI_TAGS,mc):zr,vn="FORBID_CONTENTS"in Go?zg({},Go.FORBID_CONTENTS,mc):zn,Wy="FORBID_TAGS"in Go?zg({},Go.FORBID_TAGS,mc):{},Hb="FORBID_ATTR"in Go?zg({},Go.FORBID_ATTR,mc):{},Vo="USE_PROFILES"in Go?Go.USE_PROFILES:!1,ro=Go.ALLOW_ARIA_ATTR!==!1,bd=Go.ALLOW_DATA_ATTR!==!1,Hg=Go.ALLOW_UNKNOWN_PROTOCOLS||!1,_p=Go.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Kb=Go.SAFE_FOR_TEMPLATES||!1,hd=Go.WHOLE_DOCUMENT||!1,yw=Go.RETURN_DOM||!1,Fo=Go.RETURN_DOM_FRAGMENT||!1,PC=Go.RETURN_TRUSTED_TYPE||!1,Lt=Go.FORCE_BODY||!1,Ow=Go.SANITIZE_DOM!==!1,Que=Go.SANITIZE_NAMED_PROPS||!1,hs=Go.KEEP_CONTENT!==!1,es=Go.IN_PLACE||!1,wc=Go.ALLOWED_URI_REGEXP||b0i,jc=Go.NAMESPACE||Fn,qa=Go.CUSTOM_ELEMENT_HANDLING||{},Go.CUSTOM_ELEMENT_HANDLING&&CP(Go.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(qa.tagNameCheck=Go.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Go.CUSTOM_ELEMENT_HANDLING&&CP(Go.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(qa.attributeNameCheck=Go.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Go.CUSTOM_ELEMENT_HANDLING&&typeof Go.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(qa.allowCustomizedBuiltInElements=Go.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Kb&&(bd=!1),Fo&&(yw=!0),Vo&&(Uo=zg({},[...m0i]),vo=[],Vo.html===!0&&(zg(Uo,p0i),zg(vo,h0i)),Vo.svg===!0&&(zg(Uo,OQt),zg(vo,RQt),zg(vo,nft)),Vo.svgFilters===!0&&(zg(Uo,FQt),zg(vo,RQt),zg(vo,nft)),Vo.mathMl===!0&&(zg(Uo,MQt),zg(vo,g0i),zg(vo,nft))),Go.ADD_TAGS&&(Uo===tc&&(Uo=r6e(Uo)),zg(Uo,Go.ADD_TAGS,mc)),Go.ADD_ATTR&&(vo===kl&&(vo=r6e(vo)),zg(vo,Go.ADD_ATTR,mc)),Go.ADD_URI_SAFE_ATTR&&zg(Js,Go.ADD_URI_SAFE_ATTR,mc),Go.FORBID_CONTENTS&&(vn===zn&&(vn=r6e(vn)),zg(vn,Go.FORBID_CONTENTS,mc)),hs&&(Uo["#text"]=!0),hd&&zg(Uo,["html","head","body"]),Uo.table&&(zg(Uo,["tbody"]),delete Wy.tbody),Go.TRUSTED_TYPES_POLICY){if(typeof Go.TRUSTED_TYPES_POLICY.createHTML!="function")throw Lnt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Go.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Lnt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ye=Go.TRUSTED_TYPES_POLICY,ft=Ye.createHTML("")}else Ye===void 0&&(Ye=HRi(X,s)),Ye!==null&&typeof ft=="string"&&(ft=Ye.createHTML(""));RF&&RF(Go),I0=Go}},pa=zg({},["mi","mo","mn","ms","mtext"]),Fh=zg({},["foreignobject","desc","title","annotation-xml"]),kP=zg({},["title","style","font","a","script"]),pg=zg({},OQt);zg(pg,FQt),zg(pg,LRi);let wP=zg({},MQt);zg(wP,ORi);let H1=function(Go){let $c=Je(Go);(!$c||!$c.tagName)&&($c={namespaceURI:jc,tagName:"template"});let Xl=rft(Go.tagName),N0=rft($c.tagName);return bg[Go.namespaceURI]?Go.namespaceURI===lu?$c.namespaceURI===Fn?Xl==="svg":$c.namespaceURI===tl?Xl==="svg"&&(N0==="annotation-xml"||pa[N0]):!!pg[Xl]:Go.namespaceURI===tl?$c.namespaceURI===Fn?Xl==="math":$c.namespaceURI===lu?Xl==="math"&&Fh[N0]:!!wP[Xl]:Go.namespaceURI===Fn?$c.namespaceURI===lu&&!Fh[N0]||$c.namespaceURI===tl&&!pa[N0]?!1:!wP[Xl]&&(kP[Xl]||!pg[Xl]):!!(E0==="application/xhtml+xml"&&bg[Go.namespaceURI]):!1},Ub=function(Go){Pnt(i.removed,{element:Go});try{Go.parentNode.removeChild(Go)}catch{Go.remove()}},Of=function(Go,$c){try{Pnt(i.removed,{attribute:$c.getAttributeNode(Go),from:$c})}catch{Pnt(i.removed,{attribute:null,from:$c})}if($c.removeAttribute(Go),Go==="is"&&!vo[Go])if(yw||Fo)try{Ub($c)}catch{}else try{$c.setAttribute(Go,"")}catch{}},U1=function(Go){let $c,Xl;if(Lt)Go=""+Go;else{let bw=IRi(Go,/^[\r\n\t ]+/);Xl=bw&&bw[0]}E0==="application/xhtml+xml"&&jc===Fn&&(Go=''+Go+"");let N0=Ye?Ye.createHTML(Go):Go;if(jc===Fn)try{$c=new F().parseFromString(N0,E0)}catch{}if(!$c||!$c.documentElement){$c=Ct.createDocument(jc,"template",null);try{$c.documentElement.innerHTML=Qd?ft:N0}catch{}}let LC=$c.body||$c.documentElement;return Go&&Xl&&LC.insertBefore(c.createTextNode(Xl),LC.childNodes[0]||null),jc===Fn?Mi.call($c,hd?"html":"body")[0]:hd?$c.documentElement:LC},Nc=function(Go){return Et.call(Go.ownerDocument||Go,Go,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,null,!1)},V7=function(Go){return Go instanceof j&&(typeof Go.nodeName!="string"||typeof Go.textContent!="string"||typeof Go.removeChild!="function"||!(Go.attributes instanceof O)||typeof Go.removeAttribute!="function"||typeof Go.setAttribute!="function"||typeof Go.namespaceURI!="string"||typeof Go.insertBefore!="function"||typeof Go.hasChildNodes!="function")},mg=function(Go){return typeof b=="object"?Go instanceof b:Go&&typeof Go=="object"&&typeof Go.nodeType=="number"&&typeof Go.nodeName=="string"},c3=function(Go,$c,Xl){Vr[Go]&&DRi(Vr[Go],N0=>{N0.call(i,$c,Xl,I0)})},T2=function(Go){let $c;if(c3("beforeSanitizeElements",Go,null),V7(Go))return Ub(Go),!0;let Xl=mc(Go.nodeName);if(c3("uponSanitizeElement",Go,{tagName:Xl,allowedTags:Uo}),Go.hasChildNodes()&&!mg(Go.firstElementChild)&&(!mg(Go.content)||!mg(Go.content.firstElementChild))&&nj(/<[/\w]/g,Go.innerHTML)&&nj(/<[/\w]/g,Go.textContent))return Ub(Go),!0;if(!Uo[Xl]||Wy[Xl]){if(!Wy[Xl]&&as(Xl)&&(qa.tagNameCheck instanceof RegExp&&nj(qa.tagNameCheck,Xl)||qa.tagNameCheck instanceof Function&&qa.tagNameCheck(Xl)))return!1;if(hs&&!vn[Xl]){let N0=Je(Go)||Go.parentNode,LC=Le(Go)||Go.childNodes;if(LC&&N0){let bw=LC.length;for(let Lv=bw-1;Lv>=0;--Lv)N0.insertBefore(re(LC[Lv],!0),Pe(Go))}}return Ub(Go),!0}return Go instanceof w&&!H1(Go)||(Xl==="noscript"||Xl==="noembed"||Xl==="noframes")&&nj(/<\/no(script|embed|frames)/i,Go.innerHTML)?(Ub(Go),!0):(Kb&&Go.nodeType===3&&($c=Go.textContent,$c=OG($c,sn," "),$c=OG($c,gr," "),$c=OG($c,er," "),Go.textContent!==$c&&(Pnt(i.removed,{element:Go.cloneNode()}),Go.textContent=$c)),c3("afterSanitizeElements",Go,null),!1)},TK=function(Go,$c,Xl){if(Ow&&($c==="id"||$c==="name")&&(Xl in c||Xl in Ta))return!1;if(!(bd&&!Hb[$c]&&nj(Di,$c))){if(!(ro&&nj(rs,$c))){if(!vo[$c]||Hb[$c]){if(!(as(Go)&&(qa.tagNameCheck instanceof RegExp&&nj(qa.tagNameCheck,Go)||qa.tagNameCheck instanceof Function&&qa.tagNameCheck(Go))&&(qa.attributeNameCheck instanceof RegExp&&nj(qa.attributeNameCheck,$c)||qa.attributeNameCheck instanceof Function&&qa.attributeNameCheck($c))||$c==="is"&&qa.allowCustomizedBuiltInElements&&(qa.tagNameCheck instanceof RegExp&&nj(qa.tagNameCheck,Xl)||qa.tagNameCheck instanceof Function&&qa.tagNameCheck(Xl))))return!1}else if(!Js[$c]){if(!nj(wc,OG(Xl,_i,""))){if(!(($c==="src"||$c==="xlink:href"||$c==="href")&&Go!=="script"&&NRi(Xl,"data:")===0&&Lr[Go])){if(!(Hg&&!nj(Ls,OG(Xl,_i,"")))){if(Xl)return!1}}}}}}return!0},as=function(Go){return Go.indexOf("-")>0},vw=function(Go){let $c,Xl,N0,LC;c3("beforeSanitizeAttributes",Go,null);let{attributes:bw}=Go;if(!bw)return;let Lv={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:vo};for(LC=bw.length;LC--;){$c=bw[LC];let{name:Ps,namespaceURI:Dm}=$c;if(Xl=Ps==="value"?$c.value:ARi($c.value),N0=mc(Ps),Lv.attrName=N0,Lv.attrValue=Xl,Lv.keepAttr=!0,Lv.forceKeepAttr=void 0,c3("uponSanitizeAttribute",Go,Lv),Xl=Lv.attrValue,Lv.forceKeepAttr||(Of(Ps,Go),!Lv.keepAttr))continue;if(!_p&&nj(/\/>/i,Xl)){Of(Ps,Go);continue}Kb&&(Xl=OG(Xl,sn," "),Xl=OG(Xl,gr," "),Xl=OG(Xl,er," "));let E4e=mc(Go.nodeName);if(TK(E4e,N0,Xl)){if(Que&&(N0==="id"||N0==="name")&&(Of(Ps,Go),Xl=F_e+Xl),Ye&&typeof X=="object"&&typeof X.getAttributeType=="function"&&!Dm)switch(X.getAttributeType(E4e,N0)){case"TrustedHTML":{Xl=Ye.createHTML(Xl);break}case"TrustedScriptURL":{Xl=Ye.createScriptURL(Xl);break}}try{Dm?Go.setAttributeNS(Dm,Ps,Xl):Go.setAttribute(Ps,Xl),_0i(i.removed)}catch{}}}c3("afterSanitizeAttributes",Go,null)},SY=function gd(Go){let $c,Xl=Nc(Go);for(c3("beforeSanitizeShadowDOM",Go,null);$c=Xl.nextNode();)c3("uponSanitizeShadowNode",$c,null),!T2($c)&&($c.content instanceof _&&gd($c.content),vw($c));c3("afterSanitizeShadowDOM",Go,null)};return i.sanitize=function(gd){let Go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$c,Xl,N0,LC;if(Qd=!gd,Qd&&(gd=""),typeof gd!="string"&&!mg(gd))if(typeof gd.toString=="function"){if(gd=gd.toString(),typeof gd!="string")throw Lnt("dirty is not a string, aborting")}else throw Lnt("toString is not a function");if(!i.isSupported)return gd;if(oI||Lc(Go),i.removed=[],typeof gd=="string"&&(es=!1),es){if(gd.nodeName){let Ps=mc(gd.nodeName);if(!Uo[Ps]||Wy[Ps])throw Lnt("root node is forbidden and cannot be sanitized in-place")}}else if(gd instanceof b)$c=U1(""),Xl=$c.ownerDocument.importNode(gd,!0),Xl.nodeType===1&&Xl.nodeName==="BODY"||Xl.nodeName==="HTML"?$c=Xl:$c.appendChild(Xl);else{if(!yw&&!Kb&&!hd&&gd.indexOf("<")===-1)return Ye&&PC?Ye.createHTML(gd):gd;if($c=U1(gd),!$c)return yw?null:PC?ft:""}$c&&Lt&&Ub($c.firstChild);let bw=Nc(es?gd:$c);for(;N0=bw.nextNode();)T2(N0)||(N0.content instanceof _&&SY(N0.content),vw(N0));if(es)return gd;if(yw){if(Fo)for(LC=St.call($c.ownerDocument);$c.firstChild;)LC.appendChild($c.firstChild);else LC=$c;return(vo.shadowroot||vo.shadowrootmode)&&(LC=zi.call(o,LC,!0)),LC}let Lv=hd?$c.outerHTML:$c.innerHTML;return hd&&Uo["!doctype"]&&$c.ownerDocument&&$c.ownerDocument.doctype&&$c.ownerDocument.doctype.name&&nj(S0i,$c.ownerDocument.doctype.name)&&(Lv=" +`+Lv),Kb&&(Lv=OG(Lv,sn," "),Lv=OG(Lv,gr," "),Lv=OG(Lv,er," ")),Ye&&PC?Ye.createHTML(Lv):Lv},i.setConfig=function(gd){Lc(gd),oI=!0},i.clearConfig=function(){I0=null,oI=!1},i.isValidAttribute=function(gd,Go,$c){I0||Lc({});let Xl=mc(gd),N0=mc(Go);return TK(Xl,N0,$c)},i.addHook=function(gd,Go){typeof Go=="function"&&(Vr[gd]=Vr[gd]||[],Pnt(Vr[gd],Go))},i.removeHook=function(gd){if(Vr[gd])return _0i(Vr[gd])},i.removeHooks=function(gd){Vr[gd]&&(Vr[gd]=[])},i.removeAllHooks=function(){Vr={}},i}var v0i,f0i,kRi,wRi,TRi,RF,FG,ERi,BQt,jQt,DRi,_0i,Pnt,rft,LQt,IRi,OG,NRi,ARi,nj,Lnt,p0i,OQt,FQt,LRi,MQt,ORi,m0i,h0i,RQt,g0i,nft,FRi,MRi,RRi,BRi,jRi,b0i,WRi,zRi,S0i,y0i,VRi,HRi,jK,Qrn,Zrn,oft,eon,ton,ion,sft,aft,non,ron,cft=Ht(()=>{({entries:v0i,setPrototypeOf:f0i,isFrozen:kRi,getPrototypeOf:wRi,getOwnPropertyDescriptor:TRi}=Object),{freeze:RF,seal:FG,create:ERi}=Object,{apply:BQt,construct:jQt}=typeof Reflect<"u"&&Reflect;BQt||(BQt=function(i,o,s){return i.apply(o,s)});RF||(RF=function(i){return i});FG||(FG=function(i){return i});jQt||(jQt=function(i,o){return new i(...o)});DRi=Gj(Array.prototype.forEach),_0i=Gj(Array.prototype.pop),Pnt=Gj(Array.prototype.push),rft=Gj(String.prototype.toLowerCase),LQt=Gj(String.prototype.toString),IRi=Gj(String.prototype.match),OG=Gj(String.prototype.replace),NRi=Gj(String.prototype.indexOf),ARi=Gj(String.prototype.trim),nj=Gj(RegExp.prototype.test),Lnt=PRi(TypeError);p0i=RF(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),OQt=RF(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),FQt=RF(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),LRi=RF(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),MQt=RF(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ORi=RF(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),m0i=RF(["#text"]),h0i=RF(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),RQt=RF(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),g0i=RF(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),nft=RF(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),FRi=FG(/\{\{[\w\W]*|[\w\W]*\}\}/gm),MRi=FG(/<%[\w\W]*|[\w\W]*%>/gm),RRi=FG(/\${[\w\W]*}/gm),BRi=FG(/^data-[\-\w.\u00B7-\uFFFF]/),jRi=FG(/^aria-[\-\w]+$/),b0i=FG(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),WRi=FG(/^(?:\w+script|data):/i),zRi=FG(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),S0i=FG(/^html$/i),y0i=Object.freeze({__proto__:null,MUSTACHE_EXPR:FRi,ERB_EXPR:MRi,TMPLIT_EXPR:RRi,DATA_ATTR:BRi,ARIA_ATTR:jRi,IS_ALLOWED_URI:b0i,IS_SCRIPT_OR_DATA:WRi,ATTR_WHITESPACE:zRi,DOCTYPE_NAME:S0i}),VRi=()=>typeof window>"u"?null:window,HRi=function(i,o){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let s=null,c="data-tt-policy-suffix";o&&o.hasAttribute(c)&&(s=o.getAttribute(c));let _="dompurify"+(s?"#"+s:"");try{return i.createPolicy(_,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+_+" could not be created."),null}};jK=x0i(),Qrn=jK.version,Zrn=jK.isSupported,oft=jK.sanitize,eon=jK.setConfig,ton=jK.clearConfig,ion=jK.isValidAttribute,sft=jK.addHook,aft=jK.removeHook,non=jK.removeHooks,ron=jK.removeAllHooks});function Ont(l,i){return Ka.isUri(l)?ble(l.scheme,i):Y4e(l,i+":")}function Fnt(l,...i){return i.some(o=>Ont(l,o))}var Kl,URi,WQt,zQt,JRi,lft,uft,k0i,cI=Ht(()=>{Pl();uf();Bl();Lh();DG();(function(l){l.inMemory="inmemory",l.vscode="vscode",l.internal="private",l.walkThrough="walkThrough",l.walkThroughSnippet="walkThroughSnippet",l.http="http",l.https="https",l.file="file",l.mailto="mailto",l.untitled="untitled",l.data="data",l.command="command",l.vscodeRemote="vscode-remote",l.vscodeRemoteResource="vscode-remote-resource",l.vscodeManagedRemoteResource="vscode-managed-remote-resource",l.vscodeUserData="vscode-userdata",l.vscodeCustomEditor="vscode-custom-editor",l.vscodeNotebookCell="vscode-notebook-cell",l.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",l.vscodeNotebookCellOutput="vscode-notebook-cell-output",l.vscodeInteractiveInput="vscode-interactive-input",l.vscodeSettings="vscode-settings",l.vscodeWorkspaceTrust="vscode-workspace-trust",l.vscodeTerminal="vscode-terminal",l.vscodeChatCodeBlock="vscode-chat-code-block",l.vscodeCopilotBackingChatCodeBlock="vscode-copilot-chat-code-block",l.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",l.vscodeChatSesssion="vscode-chat-editor",l.webviewPanel="webview-panel",l.vscodeWebview="vscode-webview",l.extension="extension",l.vscodeFileResource="vscode-file",l.tmp="tmp",l.vsls="vsls",l.vscodeSourceControl="vscode-scm",l.commentsInput="comment",l.codeSetting="code-setting"})(Kl||(Kl={}));URi="tkn",WQt=class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(i){this._preferredWebSchema=i}get _remoteResourcesPath(){return F1.join(this._serverRootPath,Kl.vscodeRemoteResource)}rewrite(i){if(this._delegate)try{return this._delegate(i)}catch(b){return Sc(b),i}let o=i.authority,s=this._hosts[o];s&&s.indexOf(":")!==-1&&s.indexOf("[")===-1&&(s=`[${s}]`);let c=this._ports[o],_=this._connectionTokens[o],h=`path=${encodeURIComponent(i.path)}`;return typeof _=="string"&&(h+=`&${URi}=${encodeURIComponent(_)}`),Ka.from({scheme:d7?this._preferredWebSchema:Kl.vscodeRemoteResource,authority:`${s}:${c}`,path:this._remoteResourcesPath,query:h})}},zQt=new WQt,JRi="vscode-app",lft=class l{uriToBrowserUri(i){return i.scheme===Kl.vscodeRemote?zQt.rewrite(i):i.scheme===Kl.file&&(LL||hgi===`${Kl.vscodeFileResource}://${l.FALLBACK_AUTHORITY}`)?i.with({scheme:Kl.vscodeFileResource,authority:i.authority||l.FALLBACK_AUTHORITY,query:null,fragment:null}):i}};lft.FALLBACK_AUTHORITY=JRi;uft=new lft;(function(l){let i=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);l.CoopAndCoep=Object.freeze(i.get("3"));let o="vscode-coi";function s(_){let h;typeof _=="string"?h=new URL(_).searchParams:_ instanceof URL?h=_.searchParams:Ka.isUri(_)&&(h=new URL(_.toString(!0)).searchParams);let b=h?.get(o);if(b)return i.get(b)}l.getHeadersFromQuery=s;function c(_,h,b){if(!globalThis.crossOriginIsolated)return;let w=h&&b?"3":b?"2":"1";_ instanceof URLSearchParams?_.set(o,w):_[o]=w}l.addSearchParam=c})(k0i||(k0i={}))});function kde(l){return Bnt(l,0)}function Bnt(l,i){switch(typeof l){case"object":return l===null?xle(349,i):Array.isArray(l)?$Ri(l,i):GRi(l,i);case"string":return dft(l,i);case"boolean":return qRi(l,i);case"number":return xle(l,i);case"undefined":return xle(937,i);default:return xle(617,i)}}function xle(l,i){return(i<<5)-i+l|0}function qRi(l,i){return xle(l?433:863,i)}function dft(l,i){i=xle(149417,i);for(let o=0,s=l.length;oBnt(s,o),i)}function GRi(l,i){return i=xle(181387,i),Object.keys(l).sort().reduce((o,s)=>(o=dft(s,o),Bnt(l[s],o)),i)}function VQt(l,i,o=32){let s=o-i,c=~((1<>>s)>>>0}function w0i(l,i=0,o=l.byteLength,s=0){for(let c=0;co.toString(16).padStart(2,"0")).join(""):KRi((l>>>0).toString(16),i/4)}var Rnt,wde=Ht(()=>{Bl();Rnt=class l{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(i){let o=i.length;if(o===0)return;let s=this._buff,c=this._buffLen,_=this._leftoverHighSurrogate,h,b;for(_!==0?(h=_,b=-1,_=0):(h=i.charCodeAt(0),b=0);;){let w=h;if(E1(h))if(b+1>>6,i[o++]=128|(s&63)>>>0):s<65536?(i[o++]=224|(s&61440)>>>12,i[o++]=128|(s&4032)>>>6,i[o++]=128|(s&63)>>>0):(i[o++]=240|(s&1835008)>>>18,i[o++]=128|(s&258048)>>>12,i[o++]=128|(s&4032)>>>6,i[o++]=128|(s&63)>>>0),o>=64&&(this._step(),o-=64,this._totalLen+=64,i[0]=i[64],i[1]=i[65],i[2]=i[66]),o}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Mnt(this._h0)+Mnt(this._h1)+Mnt(this._h2)+Mnt(this._h3)+Mnt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,w0i(this._buff,this._buffLen),this._buffLen>56&&(this._step(),w0i(this._buff));let i=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(i/4294967296),!1),this._buffDV.setUint32(60,i%4294967296,!1),this._step()}_step(){let i=l._bigBlock32,o=this._buffDV;for(let j=0;j<64;j+=4)i.setUint32(j,o.getUint32(j,!1),!1);for(let j=64;j<320;j+=4)i.setUint32(j,VQt(i.getUint32(j-12,!1)^i.getUint32(j-32,!1)^i.getUint32(j-56,!1)^i.getUint32(j-64,!1),1),!1);let s=this._h0,c=this._h1,_=this._h2,h=this._h3,b=this._h4,w,D,O;for(let j=0;j<80;j++)j<20?(w=c&_|~c&h,D=1518500249):j<40?(w=c^_^h,D=1859775393):j<60?(w=c&_|c&h|_&h,D=2400959708):(w=c^_^h,D=3395469782),O=VQt(s,5)+w+b+D+i.getUint32(j*4,!1)&4294967295,b=h,h=_,_=VQt(c,30),c=s,s=O;this._h0=this._h0+s&4294967295,this._h1=this._h1+c&4294967295,this._h2=this._h2+_&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+b&4294967295}};Rnt._bigBlock32=new DataView(new ArrayBuffer(320))});function I1(l){for(;l.firstChild;)l.firstChild.remove()}function Tr(l,i,o,s){return new UQt(l,i,o,s)}function N0i(l,i){return function(o){return i(new h2(l,o))}}function YRi(l){return function(i){return l(new w_(i))}}function QRi(l,i,o){return Tr(l,$A&&t6e.pointerEvents?$o.POINTER_DOWN:$o.MOUSE_DOWN,i,o)}function FNe(l,i,o){return i6e(l,i,o)}function znt(l){return Xa(l).getComputedStyle(l,null)}function jL(l,i){let o=Xa(l),s=o.document;if(l!==s.body)return new Fp(l.clientWidth,l.clientHeight);if($A&&o?.visualViewport)return new Fp(o.visualViewport.width,o.visualViewport.height);if(o?.innerWidth&&o.innerHeight)return new Fp(o.innerWidth,o.innerHeight);if(s.body&&s.body.clientWidth&&s.body.clientHeight)return new Fp(s.body.clientWidth,s.body.clientHeight);if(s.documentElement&&s.documentElement.clientWidth&&s.documentElement.clientHeight)return new Fp(s.documentElement.clientWidth,s.documentElement.clientHeight);if(i)return jL(i);throw new Error("Unable to figure out browser width and height")}function _ft(l){let i=l.offsetParent,o=l.offsetTop,s=l.offsetLeft;for(;(l=l.parentNode)!==null&&l!==l.ownerDocument.body&&l!==l.ownerDocument.documentElement;){o-=l.scrollTop;let c=O0i(l)?null:znt(l);c&&(s-=c.direction!=="rtl"?l.scrollLeft:-l.scrollLeft),l===i&&(s+=BL.getBorderLeftWidth(l),o+=BL.getBorderTopWidth(l),o+=l.offsetTop,s+=l.offsetLeft,i=l.offsetParent)}return{left:s,top:o}}function P0i(l,i,o){typeof i=="number"&&(l.style.width=`${i}px`),typeof o=="number"&&(l.style.height=`${o}px`)}function Qm(l){let i=l.getBoundingClientRect(),o=Xa(l);return{left:i.left+o.scrollX,top:i.top+o.scrollY,width:i.width,height:i.height}}function pft(l){let i=l,o=1;do{let s=znt(i).zoom;s!=null&&s!=="1"&&(o*=s),i=i.parentElement}while(i!==null&&i!==i.ownerDocument.documentElement);return o}function zD(l){let i=BL.getMarginLeft(l)+BL.getMarginRight(l);return l.offsetWidth+i}function mft(l){let i=BL.getBorderLeftWidth(l)+BL.getBorderRightWidth(l),o=BL.getPaddingLeft(l)+BL.getPaddingRight(l);return l.offsetWidth-i-o}function L0i(l){let i=BL.getBorderTopWidth(l)+BL.getBorderBottomWidth(l),o=BL.getPaddingTop(l)+BL.getPaddingBottom(l);return l.offsetHeight-i-o}function rj(l){let i=BL.getMarginTop(l)+BL.getMarginBottom(l);return l.offsetHeight+i}function D1(l,i){return!!i?.contains(l)}function ZRi(l,i,o){for(;l&&l.nodeType===l.ELEMENT_NODE;){if(l.classList.contains(i))return l;if(o){if(typeof o=="string"){if(l.classList.contains(o))return null}else if(l===o)return null}l=l.parentNode}return null}function hft(l,i,o){return!!ZRi(l,i,o)}function O0i(l){return l&&!!l.host&&!!l.mode}function MNe(l){return!!MG(l)}function MG(l){for(var i;l.parentNode;){if(l===((i=l.ownerDocument)===null||i===void 0?void 0:i.body))return null;l=l.parentNode}return O0i(l)?l:null}function qb(){let l=kle().activeElement;for(;l?.shadowRoot;)l=l.shadowRoot.activeElement;return l}function RNe(l){return qb()===l}function gft(l){return D1(qb(),l)}function kle(){var l;return XRi()<=1?D_.document:(l=Array.from(E0i()).map(({window:o})=>o.document).find(o=>o.hasFocus()))!==null&&l!==void 0?l:D_.document}function c6e(){var l,i;return(i=(l=kle().defaultView)===null||l===void 0?void 0:l.window)!==null&&i!==void 0?i:D_}function yft(){return new JQt}function ww(l=D_.document.head,i,o){let s=document.createElement("style");if(s.type="text/css",s.media="screen",i?.(s),l.appendChild(s),o&&o.add(Qs(()=>l.removeChild(s))),l===D_.document.head){let c=new Set;GQt.set(s,c);for(let{window:_,disposables:h}of E0i()){if(_===D_)continue;let b=h.add(e5i(s,c,_));o?.add(b)}}return s}function e5i(l,i,o){var s,c;let _=new pr,h=l.cloneNode(!0);o.document.head.appendChild(h),_.add(Qs(()=>o.document.head.removeChild(h)));for(let b of M0i(l))(s=h.sheet)===null||s===void 0||s.insertRule(b.cssText,(c=h.sheet)===null||c===void 0?void 0:c.cssRules.length);return _.add(t5i.observe(l,_,{childList:!0})(()=>{h.textContent=l.textContent})),i.add(h),_.add(Qs(()=>i.delete(h))),_}function F0i(){return HQt||(HQt=ww()),HQt}function M0i(l){var i,o;return!((i=l?.sheet)===null||i===void 0)&&i.rules?l.sheet.rules:!((o=l?.sheet)===null||o===void 0)&&o.cssRules?l.sheet.cssRules:[]}function l6e(l,i,o=F0i()){var s,c;if(!(!o||!i)){(s=o.sheet)===null||s===void 0||s.insertRule(`${l} {${i}}`,0);for(let _ of(c=GQt.get(o))!==null&&c!==void 0?c:[])l6e(l,i,_)}}function vft(l,i=F0i()){var o,s;if(!i)return;let c=M0i(i),_=[];for(let h=0;h=0;h--)(o=i.sheet)===null||o===void 0||o.deleteRule(_[h]);for(let h of(s=GQt.get(i))!==null&&s!==void 0?s:[])vft(l,h)}function i5i(l){return typeof l.selectorText=="string"}function Py(l){return l instanceof HTMLElement||l instanceof Xa(l).HTMLElement}function KQt(l){return l instanceof HTMLAnchorElement||l instanceof Xa(l).HTMLAnchorElement}function u6e(l){return l instanceof MouseEvent||l instanceof Xa(l).MouseEvent}function RG(l){return l instanceof KeyboardEvent||l instanceof Xa(l).KeyboardEvent}function R0i(l){let i=l;return!!(i&&typeof i.preventDefault=="function"&&typeof i.stopPropagation=="function")}function B0i(l){let i=[];for(let o=0;l&&l.nodeType===l.ELEMENT_NODE;o++)i[o]=l.scrollTop,l=l.parentNode;return i}function j0i(l,i){for(let o=0;l&&l.nodeType===l.ELEMENT_NODE;o++)l.scrollTop!==i[o]&&(l.scrollTop=i[o]),l=l.parentNode}function lI(l){return new qQt(l)}function W0i(l,i){return l.after(i),i}function bo(l,...i){if(l.append(...i),i.length===1&&typeof i[0]!="string")return i[0]}function d6e(l,i){return l.insertBefore(i,l.firstChild),i}function N1(l,...i){l.innerText="",bo(l,...i)}function z0i(l,i,o,...s){let c=n5i.exec(i);if(!c)throw new Error("Bad use of emmet");let _=c[1]||"div",h;return l!==Wnt.HTML?h=document.createElementNS(l,_):h=document.createElement(_),c[3]&&(h.id=c[3]),c[4]&&(h.className=c[4].replace(/\./g," ").trim()),o&&Object.entries(o).forEach(([b,w])=>{typeof w>"u"||(/^on\w+$/.test(b)?h[b]=w:b==="selected"?w&&h.setAttribute(b,"true"):h.setAttribute(b,w))}),h.append(...s),h}function No(l,i,...o){return z0i(Wnt.HTML,l,i,...o)}function V0i(l,...i){l?A2(...i):y2(...i)}function A2(...l){for(let i of l)i.style.display="",i.removeAttribute("aria-hidden")}function y2(...l){for(let i of l)i.style.display="none",i.setAttribute("aria-hidden","true")}function XQt(l,i){let o=l.devicePixelRatio*i;return Math.max(1,Math.floor(o))/l.devicePixelRatio}function bft(l){D_.open(l,"_blank","noopener")}function H0i(l,i){let o=()=>{i(),s=g2(l,o)},s=g2(l,o);return Qs(()=>s.dispose())}function y7(l){return l?`url('${uft.uriToBrowserUri(l).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function Sft(l){return`'${l.replace(/'/g,"%27")}'`}function oj(l,i){if(l!==void 0){let o=l.match(/^\s*var\((.+)\)$/);if(o){let s=o[1].split(",",2);return s.length===2&&(i=oj(s[1].trim(),i)),`var(${s[0]}, ${i})`}return l}return i}function U0i(l,i=!1){let o=document.createElement("a");return sft("afterSanitizeAttributes",s=>{for(let c of["href","src"])if(s.hasAttribute(c)){let _=s.getAttribute(c);if(c==="href"&&_.startsWith("#"))continue;if(o.href=_,!l.includes(o.protocol.replace(/:$/,""))){if(i&&c==="src"&&o.href.startsWith("data:"))continue;s.removeAttribute(c)}}}),Qs(()=>{aft("afterSanitizeAttributes")})}function T_(l,...i){let o,s;Array.isArray(i[0])?(o={},s=i[0]):(o=i[0]||{},s=i[1]);let c=r5i.exec(l);if(!c||!c.groups)throw new Error("Bad use of h");let _=c.groups.tag||"div",h=document.createElement(_);c.groups.id&&(h.id=c.groups.id);let b=[];if(c.groups.class)for(let D of c.groups.class.split("."))D!==""&&b.push(D);if(o.className!==void 0)for(let D of o.className.split("."))D!==""&&b.push(D);b.length>0&&(h.className=b.join(" "));let w={};if(c.groups.name&&(w[c.groups.name]=h),s)for(let D of s)Py(D)?h.appendChild(D):typeof D=="string"?h.append(D):"root"in D&&(Object.assign(w,D),h.appendChild(D.root));for(let[D,O]of Object.entries(o))if(D!=="className")if(D==="style")for(let[j,F]of Object.entries(O))h.style.setProperty(T0i(j),typeof F=="number"?F+"px":""+F);else D==="tabIndex"?h.tabIndex=O:h.setAttribute(T0i(D),O.toString());return w.root=h,w}function T0i(l){return l.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var yon,Xa,von,E0i,XRi,o6e,$Qt,bon,ONe,D0i,I0i,UQt,Cm,A0i,s6e,a6e,g2,Tde,jnt,BL,Fp,GQt,JQt,t5i,HQt,$o,Kd,qQt,n5i,Wnt,J0i,Son,Cle,fft,r5i,va=Ht(()=>{RL();$dt();jD();h7();Bu();Pl();Pa();cft();$r();cI();uf();wde();GA();({registerWindow:yon,getWindow:Xa,getDocument:von,getWindows:E0i,getWindowsCount:XRi,getWindowId:o6e,getWindowById:$Qt,hasWindow:bon,onDidRegisterWindow:ONe,onWillUnregisterWindow:D0i,onDidUnregisterWindow:I0i}=function(){let l=new Map;$gi(D_,1);let i={window:D_,disposables:new pr};l.set(D_.vscodeWindowId,i);let o=new fn,s=new fn,c=new fn;function _(h,b){let w=typeof h=="number"?l.get(h):void 0;return w??(b?i:void 0)}return{onDidRegisterWindow:o.event,onWillUnregisterWindow:c.event,onDidUnregisterWindow:s.event,registerWindow(h){if(l.has(h.vscodeWindowId))return Ui.None;let b=new pr,w={window:h,disposables:b.add(new pr)};return l.set(h.vscodeWindowId,w),b.add(Qs(()=>{l.delete(h.vscodeWindowId),s.fire(h)})),b.add(Tr(h,$o.BEFORE_UNLOAD,()=>{c.fire(h)})),o.fire(w),b},getWindows(){return l.values()},getWindowsCount(){return l.size},getWindowId(h){return h.vscodeWindowId},hasWindow(h){return l.has(h)},getWindowById:_,getWindow(h){var b;let w=h;if(!((b=w?.ownerDocument)===null||b===void 0)&&b.defaultView)return w.ownerDocument.defaultView.window;let D=h;return D?.view?D.view.window:D_},getDocument(h){return Xa(h).document}}}());UQt=class{constructor(i,o,s,c){this._node=i,this._type=o,this._handler=s,this._options=c||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}};Cm=function(i,o,s,c){let _=s;return o==="click"||o==="mousedown"||o==="contextmenu"?_=N0i(Xa(i),s):(o==="keydown"||o==="keypress"||o==="keyup")&&(_=YRi(s)),Tr(i,o,_,c)},A0i=function(i,o,s){let c=N0i(Xa(i),o);return QRi(i,c,s)};s6e=class extends Nnt{constructor(i,o){super(i,o)}},Tde=class extends Cde{constructor(i){super(),this.defaultTarget=i&&Xa(i)}cancelAndSet(i,o,s){return super.cancelAndSet(i,o,s??this.defaultTarget)}},jnt=class{constructor(i,o=0){this._runner=i,this.priority=o,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(i){Sc(i)}}static sort(i,o){return o.priority-i.priority}};(function(){let l=new Map,i=new Map,o=new Map,s=new Map,c=_=>{var h;o.set(_,!1);let b=(h=l.get(_))!==null&&h!==void 0?h:[];for(i.set(_,b),l.set(_,[]),s.set(_,!0);b.length>0;)b.sort(jnt.sort),b.shift().execute();s.set(_,!1)};g2=(_,h,b=0)=>{let w=o6e(_),D=new jnt(h,b),O=l.get(w);return O||(O=[],l.set(w,O)),O.push(D),o.get(w)||(o.set(w,!0),_.requestAnimationFrame(()=>c(w))),D},a6e=(_,h,b)=>{let w=o6e(_);if(s.get(w)){let D=new jnt(h,b),O=i.get(w);return O||(O=[],i.set(w,O)),O.push(D),D}else return g2(_,h,b)}})();BL=class l{static convertToPixels(i,o){return parseFloat(o)||0}static getDimension(i,o,s){let c=znt(i),_=c?c.getPropertyValue(o):"0";return l.convertToPixels(i,_)}static getBorderLeftWidth(i){return l.getDimension(i,"border-left-width","borderLeftWidth")}static getBorderRightWidth(i){return l.getDimension(i,"border-right-width","borderRightWidth")}static getBorderTopWidth(i){return l.getDimension(i,"border-top-width","borderTopWidth")}static getBorderBottomWidth(i){return l.getDimension(i,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(i){return l.getDimension(i,"padding-left","paddingLeft")}static getPaddingRight(i){return l.getDimension(i,"padding-right","paddingRight")}static getPaddingTop(i){return l.getDimension(i,"padding-top","paddingTop")}static getPaddingBottom(i){return l.getDimension(i,"padding-bottom","paddingBottom")}static getMarginLeft(i){return l.getDimension(i,"margin-left","marginLeft")}static getMarginTop(i){return l.getDimension(i,"margin-top","marginTop")}static getMarginRight(i){return l.getDimension(i,"margin-right","marginRight")}static getMarginBottom(i){return l.getDimension(i,"margin-bottom","marginBottom")}},Fp=class l{constructor(i,o){this.width=i,this.height=o}with(i=this.width,o=this.height){return i!==this.width||o!==this.height?new l(i,o):this}static is(i){return typeof i=="object"&&typeof i.height=="number"&&typeof i.width=="number"}static lift(i){return i instanceof l?i:new l(i.width,i.height)}static equals(i,o){return i===o?!0:!i||!o?!1:i.width===o.width&&i.height===o.height}};Fp.None=new Fp(0,0);GQt=new Map;JQt=class{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(i){i!==this._currentCssStyle&&(this._currentCssStyle=i,this._styleSheet?this._styleSheet.innerText=i:this._styleSheet=ww(D_.document.head,o=>o.innerText=i))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}};t5i=new class{constructor(){this.mutationObservers=new Map}observe(l,i,o){let s=this.mutationObservers.get(l);s||(s=new Map,this.mutationObservers.set(l,s));let c=kde(o),_=s.get(c);if(_)_.users+=1;else{let h=new fn,b=new MutationObserver(D=>h.fire(D));b.observe(l,o);let w=_={users:1,observer:b,onDidMutate:h.event};i.add(Qs(()=>{w.users-=1,w.users===0&&(h.dispose(),b.disconnect(),s?.delete(c),s?.size===0&&this.mutationObservers.delete(l))})),s.set(c,_)}return _.onDidMutate}},HQt=null;$o={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:LG?"webkitAnimationStart":"animationstart",ANIMATION_END:LG?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:LG?"webkitAnimationIteration":"animationiteration"};Kd={stop:(l,i)=>(l.preventDefault(),i&&l.stopPropagation(),l)};qQt=class l extends Ui{static hasFocusWithin(i){if(Py(i)){let o=MG(i),s=o?o.activeElement:i.ownerDocument.activeElement;return D1(s,i)}else{let o=i;return D1(o.document.activeElement,o.document)}}constructor(i){super(),this._onDidFocus=this._register(new fn),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new fn),this.onDidBlur=this._onDidBlur.event;let o=l.hasFocusWithin(i),s=!1,c=()=>{s=!1,o||(o=!0,this._onDidFocus.fire())},_=()=>{o&&(s=!0,(Py(i)?Xa(i):i).setTimeout(()=>{s&&(s=!1,o=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{l.hasFocusWithin(i)!==o&&(o?_():c())},this._register(Tr(i,$o.FOCUS,c,!0)),this._register(Tr(i,$o.BLUR,_,!0)),Py(i)&&(this._register(Tr(i,$o.FOCUS_IN,()=>this._refreshStateHandler())),this._register(Tr(i,$o.FOCUS_OUT,()=>this._refreshStateHandler())))}};n5i=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;(function(l){l.HTML="http://www.w3.org/1999/xhtml",l.SVG="http://www.w3.org/2000/svg"})(Wnt||(Wnt={}));No.SVG=function(l,i,...o){return z0i(Wnt.SVG,l,i,...o)};zQt.setPreferredWebSchema(/^https:/.test(D_.location.href)?"https":"http");J0i=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]),Son=Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0}),Cle=class l extends fn{constructor(){super(),this._subscriptions=new pr,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(Yo.runAndSubscribe(ONe,({window:i,disposables:o})=>this.registerListeners(i,o),{window:D_,disposables:this._subscriptions}))}registerListeners(i,o){o.add(Tr(i,"keydown",s=>{if(s.defaultPrevented)return;let c=new w_(s);if(!(c.keyCode===6&&s.repeat)){if(s.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(s.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(s.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(s.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(c.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=s.altKey,this._keyStatus.ctrlKey=s.ctrlKey,this._keyStatus.metaKey=s.metaKey,this._keyStatus.shiftKey=s.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=s,this.fire(this._keyStatus))}},!0)),o.add(Tr(i,"keyup",s=>{s.defaultPrevented||(!s.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!s.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!s.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!s.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=s.altKey,this._keyStatus.ctrlKey=s.ctrlKey,this._keyStatus.metaKey=s.metaKey,this._keyStatus.shiftKey=s.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=s,this.fire(this._keyStatus)))},!0)),o.add(Tr(i.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),o.add(Tr(i.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),o.add(Tr(i.document.body,"mousemove",s=>{s.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),o.add(Tr(i,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return l.instance||(l.instance=new l),l.instance}dispose(){super.dispose(),this._subscriptions.dispose()}},fft=class extends Ui{constructor(i,o){super(),this.element=i,this.callbacks=o,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(Tr(this.element,$o.DRAG_START,i=>{var o,s;(s=(o=this.callbacks).onDragStart)===null||s===void 0||s.call(o,i)})),this.callbacks.onDrag&&this._register(Tr(this.element,$o.DRAG,i=>{var o,s;(s=(o=this.callbacks).onDrag)===null||s===void 0||s.call(o,i)})),this._register(Tr(this.element,$o.DRAG_ENTER,i=>{var o,s;this.counter++,this.dragStartTime=i.timeStamp,(s=(o=this.callbacks).onDragEnter)===null||s===void 0||s.call(o,i)})),this._register(Tr(this.element,$o.DRAG_OVER,i=>{var o,s;i.preventDefault(),(s=(o=this.callbacks).onDragOver)===null||s===void 0||s.call(o,i,i.timeStamp-this.dragStartTime)})),this._register(Tr(this.element,$o.DRAG_LEAVE,i=>{var o,s;this.counter--,this.counter===0&&(this.dragStartTime=0,(s=(o=this.callbacks).onDragLeave)===null||s===void 0||s.call(o,i))})),this._register(Tr(this.element,$o.DRAG_END,i=>{var o,s;this.counter=0,this.dragStartTime=0,(s=(o=this.callbacks).onDragEnd)===null||s===void 0||s.call(o,i)})),this._register(Tr(this.element,$o.DROP,i=>{var o,s;this.counter=0,this.dragStartTime=0,(s=(o=this.callbacks).onDrop)===null||s===void 0||s.call(o,i)}))}},r5i=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/});var YQt,QQt,ZQt,Ede,xft=Ht(()=>{va();Pa();$r();YQt=class extends Ui{constructor(i){super(),this._onDidChange=this._register(new fn),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(i,!0),this._mediaQueryList=null,this._handleChange(i,!1)}_handleChange(i,o){var s;(s=this._mediaQueryList)===null||s===void 0||s.removeEventListener("change",this._listener),this._mediaQueryList=i.matchMedia(`(resolution: ${i.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),o&&this._onDidChange.fire()}},QQt=class extends Ui{get value(){return this._value}constructor(i){super(),this._onDidChange=this._register(new fn),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(i);let o=this._register(new YQt(i));this._register(o.onDidChange(()=>{this._value=this._getPixelRatio(i),this._onDidChange.fire(this._value)}))}_getPixelRatio(i){let o=document.createElement("canvas").getContext("2d"),s=i.devicePixelRatio||1,c=o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1;return s/c}},ZQt=class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(i){let o=o6e(i),s=this.mapWindowIdToPixelRatioMonitor.get(o);return s||(s=fde(new QQt(i)),this.mapWindowIdToPixelRatioMonitor.set(o,s),fde(Yo.once(I0i)(({vscodeWindowId:c})=>{c===o&&(s?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(o))}))),s}getInstance(i){return this._getOrCreatePixelRatioMonitor(i)}},Ede=new ZQt});function BG(l){return typeof l=="number"?`${l}px`:l}function cf(l){return new Vnt(l)}var Vnt,Tw=Ht(()=>{Vnt=class{constructor(i){this.domNode=i,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(i){let o=BG(i);this._maxWidth!==o&&(this._maxWidth=o,this.domNode.style.maxWidth=this._maxWidth)}setWidth(i){let o=BG(i);this._width!==o&&(this._width=o,this.domNode.style.width=this._width)}setHeight(i){let o=BG(i);this._height!==o&&(this._height=o,this.domNode.style.height=this._height)}setTop(i){let o=BG(i);this._top!==o&&(this._top=o,this.domNode.style.top=this._top)}setLeft(i){let o=BG(i);this._left!==o&&(this._left=o,this.domNode.style.left=this._left)}setBottom(i){let o=BG(i);this._bottom!==o&&(this._bottom=o,this.domNode.style.bottom=this._bottom)}setRight(i){let o=BG(i);this._right!==o&&(this._right=o,this.domNode.style.right=this._right)}setPaddingLeft(i){let o=BG(i);this._paddingLeft!==o&&(this._paddingLeft=o,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(i){this._fontFamily!==i&&(this._fontFamily=i,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(i){this._fontWeight!==i&&(this._fontWeight=i,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(i){let o=BG(i);this._fontSize!==o&&(this._fontSize=o,this.domNode.style.fontSize=this._fontSize)}setFontStyle(i){this._fontStyle!==i&&(this._fontStyle=i,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(i){this._fontFeatureSettings!==i&&(this._fontFeatureSettings=i,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(i){this._fontVariationSettings!==i&&(this._fontVariationSettings=i,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(i){this._textDecoration!==i&&(this._textDecoration=i,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(i){let o=BG(i);this._lineHeight!==o&&(this._lineHeight=o,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(i){let o=BG(i);this._letterSpacing!==o&&(this._letterSpacing=o,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(i){this._className!==i&&(this._className=i,this.domNode.className=this._className)}toggleClassName(i,o){this.domNode.classList.toggle(i,o),this._className=this.domNode.className}setDisplay(i){this._display!==i&&(this._display=i,this.domNode.style.display=this._display)}setPosition(i){this._position!==i&&(this._position=i,this.domNode.style.position=this._position)}setVisibility(i){this._visibility!==i&&(this._visibility=i,this.domNode.style.visibility=this._visibility)}setColor(i){this._color!==i&&(this._color=i,this.domNode.style.color=this._color)}setBackgroundColor(i){this._backgroundColor!==i&&(this._backgroundColor=i,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(i){this._layerHint!==i&&(this._layerHint=i,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(i){this._boxShadow!==i&&(this._boxShadow=i,this.domNode.style.boxShadow=i)}setContain(i){this._contain!==i&&(this._contain=i,this.domNode.style.contain=this._contain)}setAttribute(i,o){this.domNode.setAttribute(i,o)}removeAttribute(i){this.domNode.removeAttribute(i)}appendChild(i){this.domNode.appendChild(i.domNode)}removeChild(i){this.domNode.removeChild(i.domNode)}}});function Iv(l,i){l instanceof Vnt?(l.setFontFamily(i.getMassagedFontFamily()),l.setFontWeight(i.fontWeight),l.setFontSize(i.fontSize),l.setFontFeatureSettings(i.fontFeatureSettings),l.setFontVariationSettings(i.fontVariationSettings),l.setLineHeight(i.lineHeight),l.setLetterSpacing(i.letterSpacing)):(l.style.fontFamily=i.getMassagedFontFamily(),l.style.fontWeight=i.fontWeight,l.style.fontSize=i.fontSize+"px",l.style.fontFeatureSettings=i.fontFeatureSettings,l.style.fontVariationSettings=i.fontVariationSettings,l.style.lineHeight=i.lineHeight+"px",l.style.letterSpacing=i.letterSpacing+"px")}var v7=Ht(()=>{Tw()});function q0i(l,i,o){new eZt(i,o).read(l)}var Cft,eZt,$0i=Ht(()=>{v7();Cft=class{constructor(i,o){this.chr=i,this.type=o,this.width=0}fulfill(i){this.width=i}},eZt=class l{constructor(i,o){this._bareFontInfo=i,this._requests=o,this._container=null,this._testElements=null}read(i){this._createDomElements(),i.document.body.appendChild(this._container),this._readFromDomElements(),i.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let i=document.createElement("div");i.style.position="absolute",i.style.top="-50000px",i.style.width="50000px";let o=document.createElement("div");Iv(o,this._bareFontInfo),i.appendChild(o);let s=document.createElement("div");Iv(s,this._bareFontInfo),s.style.fontWeight="bold",i.appendChild(s);let c=document.createElement("div");Iv(c,this._bareFontInfo),c.style.fontStyle="italic",i.appendChild(c);let _=[];for(let h of this._requests){let b;h.type===0&&(b=o),h.type===2&&(b=s),h.type===1&&(b=c),b.appendChild(document.createElement("br"));let w=document.createElement("span");l._render(w,h),b.appendChild(w),_.push(w)}this._container=i,this._testElements=_}static _render(i,o){if(o.chr===" "){let s="\xA0";for(let c=0;c<8;c++)s+=s;i.innerText=s}else{let s=o.chr;for(let c=0;c<8;c++)s+=s;i.textContent=s}}_readFromDomElements(){for(let i=0,o=this._requests.length;i{Pa();lP=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new fn,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(l){l=Math.min(Math.max(-5,l),20),this._zoomLevel!==l&&(this._zoomLevel=l,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}});var s5i,tZt,BNe,a5i,jNe,kft=Ht(()=>{uf();FC();f6e();s5i=uu?1.5:1.35,tZt=8,BNe=class l{static createFromValidatedSettings(i,o,s){let c=i.get(49),_=i.get(53),h=i.get(52),b=i.get(51),w=i.get(54),D=i.get(67),O=i.get(64);return l._create(c,_,h,b,w,D,O,o,s)}static _create(i,o,s,c,_,h,b,w,D){h===0?h=s5i*s:h{va();xft();Pa();$r();$0i();FC();kft();iZt=class extends Ui{constructor(){super(...arguments),this._cache=new Map,this._evictUntrustedReadingsTimeout=-1,this._onDidChange=this._register(new fn),this.onDidChange=this._onDidChange.event}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache.clear(),this._onDidChange.fire()}_ensureCache(i){let o=o6e(i),s=this._cache.get(o);return s||(s=new nZt,this._cache.set(o,s)),s}_writeToCache(i,o,s){this._ensureCache(i).put(o,s),!s.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=i.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(i)},5e3))}_evictUntrustedReadings(i){let o=this._ensureCache(i),s=o.getValues(),c=!1;for(let _ of s)_.isTrusted||(c=!0,o.remove(_));c&&this._onDidChange.fire()}readFontInfo(i,o){let s=this._ensureCache(i);if(!s.has(o)){let c=this._actualReadFontInfo(i,o);(c.typicalHalfwidthCharacterWidth<=2||c.typicalFullwidthCharacterWidth<=2||c.spaceWidth<=2||c.maxDigitWidth<=2)&&(c=new jNe({pixelRatio:Ede.getInstance(i).value,fontFamily:c.fontFamily,fontWeight:c.fontWeight,fontSize:c.fontSize,fontFeatureSettings:c.fontFeatureSettings,fontVariationSettings:c.fontVariationSettings,lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,isMonospace:c.isMonospace,typicalHalfwidthCharacterWidth:Math.max(c.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(c.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:c.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(c.spaceWidth,5),middotWidth:Math.max(c.middotWidth,5),wsmiddotWidth:Math.max(c.wsmiddotWidth,5),maxDigitWidth:Math.max(c.maxDigitWidth,5)},!1)),this._writeToCache(i,o,c)}return s.get(o)}_createRequest(i,o,s,c){let _=new Cft(i,o);return s.push(_),c?.push(_),_}_actualReadFontInfo(i,o){let s=[],c=[],_=this._createRequest("n",0,s,c),h=this._createRequest("\uFF4D",0,s,null),b=this._createRequest(" ",0,s,c),w=this._createRequest("0",0,s,c),D=this._createRequest("1",0,s,c),O=this._createRequest("2",0,s,c),j=this._createRequest("3",0,s,c),F=this._createRequest("4",0,s,c),X=this._createRequest("5",0,s,c),K=this._createRequest("6",0,s,c),re=this._createRequest("7",0,s,c),Pe=this._createRequest("8",0,s,c),Le=this._createRequest("9",0,s,c),Je=this._createRequest("\u2192",0,s,c),Ye=this._createRequest("\uFFEB",0,s,null),ft=this._createRequest("\xB7",0,s,c),Ct=this._createRequest("\u2E31",0,s,null),Et="|/-_ilm%";for(let sn=0,gr=Et.length;sn.001){Mi=!1;break}}let Vr=!0;return Mi&&Ye.width!==zi&&(Vr=!1),Ye.width>Je.width&&(Vr=!1),new jNe({pixelRatio:Ede.getInstance(i).value,fontFamily:o.fontFamily,fontWeight:o.fontWeight,fontSize:o.fontSize,fontFeatureSettings:o.fontFeatureSettings,fontVariationSettings:o.fontVariationSettings,lineHeight:o.lineHeight,letterSpacing:o.letterSpacing,isMonospace:Mi,typicalHalfwidthCharacterWidth:_.width,typicalFullwidthCharacterWidth:h.width,canUseHalfwidthRightwardsArrow:Vr,spaceWidth:b.width,middotWidth:ft.width,wsmiddotWidth:Ct.width,maxDigitWidth:St},!0)}},nZt=class{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(i){let o=i.getId();return!!this._values[o]}get(i){let o=i.getId();return this._values[o]}put(i,o){let s=i.getId();this._keys[s]=i,this._values[s]=o}remove(i){let o=i.getId();delete this._keys[o],delete this._values[o]}getValues(){return Object.keys(this._keys).map(i=>this._values[i])}},Hnt=new iZt});function c5i(l,i,o){i[Kj.DI_TARGET]===i?i[Kj.DI_DEPENDENCIES].push({id:l,index:o}):(i[Kj.DI_DEPENDENCIES]=[{id:l,index:o}],i[Kj.DI_TARGET]=i)}function Wc(l){if(Kj.serviceIds.has(l))return Kj.serviceIds.get(l);let i=function(o,s,c){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");c5i(i,o,c)};return i.toString=()=>l,Kj.serviceIds.set(l,i),i}var Kj,qs,kc=Ht(()=>{(function(l){l.serviceIds=new Map,l.DI_TARGET="$di$target",l.DI_DEPENDENCIES="$di$dependencies";function i(o){return o[l.DI_DEPENDENCIES]||[]}l.getServiceDependencies=i})(Kj||(Kj={}));qs=Wc("instantiationService")});var $u,$b=Ht(()=>{kc();$u=Wc("codeEditorService")});var lm,XA=Ht(()=>{kc();lm=Wc("modelService")});var XS,b7=Ht(()=>{kc();XS=Wc("textModelService")});function WK(l){var i,o;return{id:l.id,label:l.label,tooltip:(i=l.tooltip)!==null&&i!==void 0?i:l.label,class:l.class,enabled:(o=l.enabled)!==null&&o!==void 0?o:!0,checked:l.checked,run:async(...s)=>l.run(...s)}}var EC,BF,bv,sj,Unt,Ew=Ht(()=>{Pa();$r();Fs();EC=class extends Ui{constructor(i,o="",s="",c=!0,_){super(),this._onDidChange=this._register(new fn),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=i,this._label=o,this._cssClass=s,this._enabled=c,this._actionCallback=_}get id(){return this._id}get label(){return this._label}set label(i){this._setLabel(i)}_setLabel(i){this._label!==i&&(this._label=i,this._onDidChange.fire({label:i}))}get tooltip(){return this._tooltip||""}set tooltip(i){this._setTooltip(i)}_setTooltip(i){this._tooltip!==i&&(this._tooltip=i,this._onDidChange.fire({tooltip:i}))}get class(){return this._cssClass}set class(i){this._setClass(i)}_setClass(i){this._cssClass!==i&&(this._cssClass=i,this._onDidChange.fire({class:i}))}get enabled(){return this._enabled}set enabled(i){this._setEnabled(i)}_setEnabled(i){this._enabled!==i&&(this._enabled=i,this._onDidChange.fire({enabled:i}))}get checked(){return this._checked}set checked(i){this._setChecked(i)}_setChecked(i){this._checked!==i&&(this._checked=i,this._onDidChange.fire({checked:i}))}async run(i,o){this._actionCallback&&await this._actionCallback(i)}},BF=class extends Ui{constructor(){super(...arguments),this._onWillRun=this._register(new fn),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new fn),this.onDidRun=this._onDidRun.event}async run(i,o){if(!i.enabled)return;this._onWillRun.fire({action:i});let s;try{await this.runAction(i,o)}catch(c){s=c}this._onDidRun.fire({action:i,error:s})}async runAction(i,o){await i.run(o)}},bv=class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...i){let o=[];for(let s of i)s.length&&(o.length?o=[...o,new l,...s]:o=s);return o}async run(){}};bv.ID="vs.actions.separator";sj=class{get actions(){return this._actions}constructor(i,o,s,c){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=i,this.label=o,this.class=c,this._actions=s}async run(){}},Unt=class l extends EC{constructor(){super(l.ID,de("submenu.empty","(empty)"),void 0,!1)}};Unt.ID="vs.actions.empty"});var oZt,uc,P0=Ht(()=>{Og();(function(l){function i(o){return o&&typeof o=="object"&&typeof o.id=="string"}l.isThemeColor=i})(oZt||(oZt={}));(function(l){l.iconNameSegment="[A-Za-z0-9]+",l.iconNameExpression="[A-Za-z0-9-]+",l.iconModifierExpression="~[A-Za-z]+",l.iconNameCharacter="[A-Za-z0-9~-]";let i=new RegExp(`^(${l.iconNameExpression})(${l.iconModifierExpression})?$`);function o(F){let X=i.exec(F.id);if(!X)return o(Xo.error);let[,K,re]=X,Pe=["codicon","codicon-"+K];return re&&Pe.push("codicon-modifier-"+re.substring(1)),Pe}l.asClassNameArray=o;function s(F){return o(F).join(" ")}l.asClassName=s;function c(F){return"."+o(F).join(".")}l.asCSSSelector=c;function _(F){return F&&typeof F=="object"&&typeof F.id=="string"&&(typeof F.color>"u"||oZt.isThemeColor(F.color))}l.isThemeIcon=_;let h=new RegExp(`^\\$\\((${l.iconNameExpression}(?:${l.iconModifierExpression})?)\\)$`);function b(F){let X=h.exec(F);if(!X)return;let[,K]=X;return{id:K}}l.fromString=b;function w(F){return{id:F}}l.fromId=w;function D(F,X){let K=F.id,re=K.lastIndexOf("~");return re!==-1&&(K=K.substring(0,re)),X&&(K=`${K}~${X}`),{id:K}}l.modify=D;function O(F){let X=F.id.lastIndexOf("~");if(X!==-1)return F.id.substring(X+1)}l.getModifier=O;function j(F,X){var K,re;return F.id===X.id&&((K=F.color)===null||K===void 0?void 0:K.id)===((re=X.color)===null||re===void 0?void 0:re.id)}l.isEqual=j})(uc||(uc={}))});var c_,Ku,gg=Ht(()=>{Pa();sP();$r();f7();cm();kc();c_=Wc("commandService"),Ku=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new fn,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(l,i){if(!l)throw new Error("invalid command");if(typeof l=="string"){if(!i)throw new Error("invalid command");return this.registerCommand({id:l,handler:i})}if(l.metadata&&Array.isArray(l.metadata.args)){let h=[];for(let w of l.metadata.args)h.push(w.constraint);let b=l.handler;l.handler=function(w,...D){return ogi(D,h),b(w,...D)}}let{id:o}=l,s=this._commands.get(o);s||(s=new L1,this._commands.set(o,s));let c=s.unshift(l),_=Qs(()=>{c();let h=this._commands.get(o);h?.isEmpty()&&this._commands.delete(o)});return this._onDidRegisterCommand.fire(o),_}registerCommandAlias(l,i){return Ku.registerCommand(l,(o,...s)=>o.get(c_).executeCommand(i,...s))}getCommand(l){let i=this._commands.get(l);if(!(!i||i.isEmpty()))return jd.first(i)}getCommands(){let l=new Map;for(let i of this._commands.keys()){let o=this.getCommand(i);o&&l.set(i,o)}return l}};Ku.registerCommand("noop",()=>{})});function sZt(...l){switch(l.length){case 1:return de("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",l[0]);case 2:return de("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",l[0],l[1]);case 3:return de("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",l[0],l[1],l[2]);default:return}}var l5i,u5i,zK,G0i=Ht(()=>{Pl();Fs();l5i=de("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),u5i=de("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."),zK=class l{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(i){switch(i.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return i.isTripleEq?"===":"==";case 4:return i.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return i.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return i.lexeme;case 18:return i.lexeme;case 19:return i.lexeme;case 20:return"EOF";default:throw V4e(`unhandled token type: ${JSON.stringify(i)}; have you forgotten to add a case?`)}}reset(i){return this._input=i,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let o=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:o})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let o=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:o})}else this._match(126)?this._addToken(9):this._error(sZt("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(sZt("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(sZt("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(i){return this._isAtEnd()||this._input.charCodeAt(this._current)!==i?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(i){this._tokens.push({type:i,offset:this._start})}_error(i){let o=this._start,s=this._input.substring(this._start,this._current),c={type:19,offset:this._start,lexeme:s};this._errors.push({offset:o,lexeme:s,additionalInfo:i}),this._tokens.push(c)}_string(){this.stringRe.lastIndex=this._start;let i=this.stringRe.exec(this._input);if(i){this._current=this._start+i[0].length;let o=this._input.substring(this._start,this._current),s=l._keywords.get(o);s?this._addToken(s):this._tokens.push({type:17,lexeme:o,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(l5i);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let i=this._current,o=!1,s=!1;for(;;){if(i>=this._input.length){this._current=i,this._error(u5i);return}let _=this._input.charCodeAt(i);if(o)o=!1;else if(_===47&&!s){i++;break}else _===91?s=!0:_===92?o=!0:_===93&&(s=!1);i++}for(;i=this._input.length}};zK._regexFlags=new Set(["i","g","s","m","y","u"].map(l=>l.charCodeAt(0)));zK._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])});function Q0i(l,i){let o=l?l.substituteConstants():void 0,s=i?i.substituteConstants():void 0;return!o&&!s?!0:!o||!s?!1:o.equals(s)}function Jnt(l,i){return l.cmp(i)}function Fft(l,i){if(typeof l=="string"){let o=parseFloat(l);isNaN(o)||(l=o)}return typeof l=="string"||typeof l=="number"?i(l):QA.INSTANCE}function Z0i(l){let i=null;for(let o=0,s=l.length;oi?1:0}function HNe(l,i,o,s){return lo?1:is?1:0}function Oft(l,i){if(l.type===0||i.type===1)return!0;if(l.type===9)return i.type===9?X0i(l.expr,i.expr):!1;if(i.type===9){for(let o of i.expr)if(Oft(l,o))return!0;return!1}if(l.type===6){if(i.type===6)return X0i(i.expr,l.expr);for(let o of l.expr)if(Oft(o,i))return!0;return!1}return l.equals(i)}function X0i(l,i){let o=0,s=0;for(;o{uf();Bl();G0i();kc();Fs();YA=new Map;YA.set("false",!1);YA.set("true",!0);YA.set("isMac",uu);YA.set("isLinux",w1);YA.set("isWindows",Ny);YA.set("isWeb",d7);YA.set("isMacNative",uu&&!d7);YA.set("isEdge",bgi);YA.set("isFirefox",ygi);YA.set("isChrome",bYt);YA.set("isSafari",vgi);d5i=Object.prototype.hasOwnProperty,f5i={regexParsingWithErrorRecovery:!0},_5i=de("contextkey.parser.error.emptyString","Empty context key expression"),p5i=de("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),m5i=de("contextkey.parser.error.noInAfterNot","'in' after 'not'."),K0i=de("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),h5i=de("contextkey.parser.error.unexpectedToken","Unexpected token"),g5i=de("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y5i=de("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),v5i=de("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?"),wft=class l{constructor(i=f5i){this._config=i,this._scanner=new zK,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(i){if(i===""){this._parsingErrors.push({message:_5i,offset:0,lexeme:"",additionalInfo:p5i});return}this._tokens=this._scanner.reset(i).scan(),this._current=0,this._parsingErrors=[];try{let o=this._expr();if(!this._isAtEnd()){let s=this._peek(),c=s.type===17?g5i:void 0;throw this._parsingErrors.push({message:h5i,offset:s.offset,lexeme:zK.getLexeme(s),additionalInfo:c}),l._parseError}return o}catch(o){if(o!==l._parseError)throw o;return}}_expr(){return this._or()}_or(){let i=[this._and()];for(;this._matchOne(16);){let o=this._and();i.push(o)}return i.length===1?i[0]:po.or(...i)}_and(){let i=[this._term()];for(;this._matchOne(15);){let o=this._term();i.push(o)}return i.length===1?i[0]:po.and(...i)}_term(){if(this._matchOne(2)){let i=this._peek();switch(i.type){case 11:return this._advance(),QA.INSTANCE;case 12:return this._advance(),uP.INSTANCE;case 0:{this._advance();let o=this._expr();return this._consume(1,K0i),o?.negate()}case 17:return this._advance(),VNe.create(i.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",i)}}return this._primary()}_primary(){let i=this._peek();switch(i.type){case 11:return this._advance(),po.true();case 12:return this._advance(),po.false();case 0:{this._advance();let o=this._expr();return this._consume(1,K0i),o}case 17:{let o=i.lexeme;if(this._advance(),this._matchOne(9)){let c=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),c.type!==10)throw this._errExpectedButGot("REGEX",c);let _=c.lexeme,h=_.lastIndexOf("/"),b=h===_.length-1?void 0:this._removeFlagsGY(_.substring(h+1)),w;try{w=new RegExp(_.substring(1,h),b)}catch{throw this._errExpectedButGot("REGEX",c)}return qnt.create(o,w)}switch(c.type){case 10:case 19:{let _=[c.lexeme];this._advance();let h=this._peek(),b=0;for(let F=0;F=0){let D=_.slice(b+1,w),O=_[w+1]==="i"?"i":"";try{h=new RegExp(D,O)}catch{throw this._errExpectedButGot("REGEX",c)}}}if(h===null)throw this._errExpectedButGot("REGEX",c);return qnt.create(o,h)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,m5i);let c=this._value();return po.notIn(o,c)}switch(this._peek().type){case 3:{this._advance();let c=this._value();if(this._previous().type===18)return po.equals(o,c);switch(c){case"true":return po.has(o);case"false":return po.not(o);default:return po.equals(o,c)}}case 4:{this._advance();let c=this._value();if(this._previous().type===18)return po.notEquals(o,c);switch(c){case"true":return po.not(o);case"false":return po.has(o);default:return po.notEquals(o,c)}}case 5:return this._advance(),Aft.create(o,this._value());case 6:return this._advance(),Pft.create(o,this._value());case 7:return this._advance(),Ift.create(o,this._value());case 8:return this._advance(),Nft.create(o,this._value());case 13:return this._advance(),po.in(o,this._value());default:return po.has(o)}}case 20:throw this._parsingErrors.push({message:y5i,offset:i.offset,lexeme:"",additionalInfo:v5i}),l._parseError;default:throw this._errExpectedButGot(`true | false | KEY + | KEY '=~' REGEX + | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){let i=this._peek();switch(i.type){case 17:case 18:return this._advance(),i.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(i){return i.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(i){return this._check(i)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(i,o){if(this._check(i))return this._advance();throw this._errExpectedButGot(o,this._peek())}_errExpectedButGot(i,o,s){let c=de("contextkey.parser.error.expectedButGot",`Expected: {0} +Received: '{1}'.`,i,zK.getLexeme(o)),_=o.offset,h=zK.getLexeme(o);return this._parsingErrors.push({message:c,offset:_,lexeme:h,additionalInfo:s}),l._parseError}_check(i){return this._peek().type===i}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};wft._parseError=new Error;po=class{static false(){return QA.INSTANCE}static true(){return uP.INSTANCE}static has(i){return WNe.create(i)}static equals(i,o){return zNe.create(i,o)}static notEquals(i,o){return Dft.create(i,o)}static regex(i,o){return qnt.create(i,o)}static in(i,o){return Tft.create(i,o)}static notIn(i,o){return Eft.create(i,o)}static not(i){return VNe.create(i)}static and(...i){return Lft.create(i,null,!0)}static or(...i){return $nt.create(i,null,!0)}static deserialize(i){return i==null?void 0:this._parser.parse(i)}};po._parser=new wft({regexParsingWithErrorRecovery:!1});QA=class{constructor(){this.type=0}cmp(i){return this.type-i.type}equals(i){return i.type===this.type}substituteConstants(){return this}evaluate(i){return!1}serialize(){return"false"}keys(){return[]}negate(){return uP.INSTANCE}};QA.INSTANCE=new QA;uP=class{constructor(){this.type=1}cmp(i){return this.type-i.type}equals(i){return i.type===this.type}substituteConstants(){return this}evaluate(i){return!0}serialize(){return"true"}keys(){return[]}negate(){return QA.INSTANCE}};uP.INSTANCE=new uP;WNe=class l{static create(i,o=null){let s=YA.get(i);return typeof s=="boolean"?s?uP.INSTANCE:QA.INSTANCE:new l(i,o)}constructor(i,o){this.key=i,this.negated=o,this.type=2}cmp(i){return i.type!==this.type?this.type-i.type:eyi(this.key,i.key)}equals(i){return i.type===this.type?this.key===i.key:!1}substituteConstants(){let i=YA.get(this.key);return typeof i=="boolean"?i?uP.INSTANCE:QA.INSTANCE:this}evaluate(i){return!!i.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=VNe.create(this.key,this)),this.negated}},zNe=class l{static create(i,o,s=null){if(typeof o=="boolean")return o?WNe.create(i,s):VNe.create(i,s);let c=YA.get(i);return typeof c=="boolean"?o===(c?"true":"false")?uP.INSTANCE:QA.INSTANCE:new l(i,o,s)}constructor(i,o,s){this.key=i,this.value=o,this.negated=s,this.type=4}cmp(i){return i.type!==this.type?this.type-i.type:HNe(this.key,this.value,i.key,i.value)}equals(i){return i.type===this.type?this.key===i.key&&this.value===i.value:!1}substituteConstants(){let i=YA.get(this.key);if(typeof i=="boolean"){let o=i?"true":"false";return this.value===o?uP.INSTANCE:QA.INSTANCE}return this}evaluate(i){return i.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Dft.create(this.key,this.value,this)),this.negated}},Tft=class l{static create(i,o){return new l(i,o)}constructor(i,o){this.key=i,this.valueKey=o,this.type=10,this.negated=null}cmp(i){return i.type!==this.type?this.type-i.type:HNe(this.key,this.valueKey,i.key,i.valueKey)}equals(i){return i.type===this.type?this.key===i.key&&this.valueKey===i.valueKey:!1}substituteConstants(){return this}evaluate(i){let o=i.getValue(this.valueKey),s=i.getValue(this.key);return Array.isArray(o)?o.includes(s):typeof s=="string"&&typeof o=="object"&&o!==null?d5i.call(o,s):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=Eft.create(this.key,this.valueKey)),this.negated}},Eft=class l{static create(i,o){return new l(i,o)}constructor(i,o){this.key=i,this.valueKey=o,this.type=11,this._negated=Tft.create(i,o)}cmp(i){return i.type!==this.type?this.type-i.type:this._negated.cmp(i._negated)}equals(i){return i.type===this.type?this._negated.equals(i._negated):!1}substituteConstants(){return this}evaluate(i){return!this._negated.evaluate(i)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}},Dft=class l{static create(i,o,s=null){if(typeof o=="boolean")return o?VNe.create(i,s):WNe.create(i,s);let c=YA.get(i);return typeof c=="boolean"?o===(c?"true":"false")?QA.INSTANCE:uP.INSTANCE:new l(i,o,s)}constructor(i,o,s){this.key=i,this.value=o,this.negated=s,this.type=5}cmp(i){return i.type!==this.type?this.type-i.type:HNe(this.key,this.value,i.key,i.value)}equals(i){return i.type===this.type?this.key===i.key&&this.value===i.value:!1}substituteConstants(){let i=YA.get(this.key);if(typeof i=="boolean"){let o=i?"true":"false";return this.value===o?QA.INSTANCE:uP.INSTANCE}return this}evaluate(i){return i.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=zNe.create(this.key,this.value,this)),this.negated}},VNe=class l{static create(i,o=null){let s=YA.get(i);return typeof s=="boolean"?s?QA.INSTANCE:uP.INSTANCE:new l(i,o)}constructor(i,o){this.key=i,this.negated=o,this.type=3}cmp(i){return i.type!==this.type?this.type-i.type:eyi(this.key,i.key)}equals(i){return i.type===this.type?this.key===i.key:!1}substituteConstants(){let i=YA.get(this.key);return typeof i=="boolean"?i?QA.INSTANCE:uP.INSTANCE:this}evaluate(i){return!i.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=WNe.create(this.key,this)),this.negated}};Ift=class l{static create(i,o,s=null){return Fft(o,c=>new l(i,c,s))}constructor(i,o,s){this.key=i,this.value=o,this.negated=s,this.type=12}cmp(i){return i.type!==this.type?this.type-i.type:HNe(this.key,this.value,i.key,i.value)}equals(i){return i.type===this.type?this.key===i.key&&this.value===i.value:!1}substituteConstants(){return this}evaluate(i){return typeof this.value=="string"?!1:parseFloat(i.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Pft.create(this.key,this.value,this)),this.negated}},Nft=class l{static create(i,o,s=null){return Fft(o,c=>new l(i,c,s))}constructor(i,o,s){this.key=i,this.value=o,this.negated=s,this.type=13}cmp(i){return i.type!==this.type?this.type-i.type:HNe(this.key,this.value,i.key,i.value)}equals(i){return i.type===this.type?this.key===i.key&&this.value===i.value:!1}substituteConstants(){return this}evaluate(i){return typeof this.value=="string"?!1:parseFloat(i.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Aft.create(this.key,this.value,this)),this.negated}},Aft=class l{static create(i,o,s=null){return Fft(o,c=>new l(i,c,s))}constructor(i,o,s){this.key=i,this.value=o,this.negated=s,this.type=14}cmp(i){return i.type!==this.type?this.type-i.type:HNe(this.key,this.value,i.key,i.value)}equals(i){return i.type===this.type?this.key===i.key&&this.value===i.value:!1}substituteConstants(){return this}evaluate(i){return typeof this.value=="string"?!1:parseFloat(i.getValue(this.key))new l(i,c,s))}constructor(i,o,s){this.key=i,this.value=o,this.negated=s,this.type=15}cmp(i){return i.type!==this.type?this.type-i.type:HNe(this.key,this.value,i.key,i.value)}equals(i){return i.type===this.type?this.key===i.key&&this.value===i.value:!1}substituteConstants(){return this}evaluate(i){return typeof this.value=="string"?!1:parseFloat(i.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Ift.create(this.key,this.value,this)),this.negated}},qnt=class l{static create(i,o){return new l(i,o)}constructor(i,o){this.key=i,this.regexp=o,this.type=7,this.negated=null}cmp(i){if(i.type!==this.type)return this.type-i.type;if(this.keyi.key)return 1;let o=this.regexp?this.regexp.source:"",s=i.regexp?i.regexp.source:"";return os?1:0}equals(i){if(i.type===this.type){let o=this.regexp?this.regexp.source:"",s=i.regexp?i.regexp.source:"";return this.key===i.key&&o===s}return!1}substituteConstants(){return this}evaluate(i){let o=i.getValue(this.key);return this.regexp?this.regexp.test(o):!1}serialize(){let i=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${i}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=aZt.create(this)),this.negated}},aZt=class l{static create(i){return new l(i)}constructor(i){this._actual=i,this.type=8}cmp(i){return i.type!==this.type?this.type-i.type:this._actual.cmp(i._actual)}equals(i){return i.type===this.type?this._actual.equals(i._actual):!1}substituteConstants(){return this}evaluate(i){return!this._actual.evaluate(i)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}};Lft=class l{static create(i,o,s){return l._normalizeArr(i,o,s)}constructor(i,o){this.expr=i,this.negated=o,this.type=6}cmp(i){if(i.type!==this.type)return this.type-i.type;if(this.expr.lengthi.expr.length)return 1;for(let o=0,s=this.expr.length;o1;){let h=c[c.length-1];if(h.type!==9)break;c.pop();let b=c.pop(),w=c.length===0,D=$nt.create(h.expr.map(O=>l.create([O,b],null,s)),null,w);D&&(c.push(D),c.sort(Jnt))}if(c.length===1)return c[0];if(s){for(let h=0;hi.serialize()).join(" && ")}keys(){let i=[];for(let o of this.expr)i.push(...o.keys());return i}negate(){if(!this.negated){let i=[];for(let o of this.expr)i.push(o.negate());this.negated=$nt.create(i,this,!0)}return this.negated}},$nt=class l{static create(i,o,s){return l._normalizeArr(i,o,s)}constructor(i,o){this.expr=i,this.negated=o,this.type=9}cmp(i){if(i.type!==this.type)return this.type-i.type;if(this.expr.lengthi.expr.length)return 1;for(let o=0,s=this.expr.length;oi.serialize()).join(" || ")}keys(){let i=[];for(let o of this.expr)i.push(...o.keys());return i}negate(){if(!this.negated){let i=[];for(let o of this.expr)i.push(o.negate());for(;i.length>1;){let o=i.shift(),s=i.shift(),c=[];for(let _ of Y0i(o))for(let h of Y0i(s))c.push(Lft.create([_,h],null,!1));i.unshift(l.create(c,null,!1))}this.negated=l.create(i,this,!0)}return this.negated}},Ms=class l extends WNe{static all(){return l._info.values()}constructor(i,o,s){super(i,null),this._defaultValue=o,typeof s=="object"?l._info.push({...s,key:i}):s!==!0&&l._info.push({key:i,description:s,type:o!=null?typeof o:void 0})}bindTo(i){return i.createKey(this.key,this._defaultValue)}getValue(i){return i.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(i){return zNe.create(this.key,i)}};Ms._info=[];La=Wc("contextKeyService")});function Mft(l,i){if(!l)throw new Error(i?`Assertion failed (${i})`:"Assertion Failed")}function Dde(l,i="Unreachable"){throw new Error(i)}function cZt(l){l||Sc(new C_("Soft Assertion Failed"))}function Xj(l){if(!l()){debugger;l(),Sc(new C_("Assertion Failed"))}}function _6e(l,i){let o=0;for(;o{Pl()});var lZt,q_,RC=Ht(()=>{Yj();cm();lZt=class{constructor(){this.data=new Map}add(i,o){Mft(CC(i)),Mft(OC(o)),Mft(!this.data.has(i),"There is already an extension with this id"),this.data.set(i,o)}as(i){return this.data.get(i)||null}},q_=new lZt});function x5i(l,i){if(l.weight1!==i.weight1)return l.weight1-i.weight1;if(l.command&&i.command){if(l.commandi.command)return 1}return l.weight2-i.weight2}var uZt,fw,S5i,wle=Ht(()=>{LNe();uf();gg();RC();$r();f7();uZt=class l{constructor(){this._coreKeybindings=new L1,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(i){if(xw===1){if(i&&i.win)return i.win}else if(xw===2){if(i&&i.mac)return i.mac}else if(i&&i.linux)return i.linux;return i}registerKeybindingRule(i){let o=l.bindToCurrentPlatform(i),s=new pr;if(o&&o.primary){let c=Int(o.primary,xw);c&&s.add(this._registerDefaultKeybinding(c,i.id,i.args,i.weight,0,i.when))}if(o&&Array.isArray(o.secondary))for(let c=0,_=o.secondary.length;c<_;c++){let h=o.secondary[c],b=Int(h,xw);b&&s.add(this._registerDefaultKeybinding(b,i.id,i.args,i.weight,-c-1,i.when))}return s}registerCommandAndKeybindingRule(i){return BD(this.registerKeybindingRule(i),Ku.registerCommand(i))}_registerDefaultKeybinding(i,o,s,c,_,h){let b=this._coreKeybindings.push({keybinding:i,command:o,commandArgs:s,when:h,weight1:c,weight2:_,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,Qs(()=>{b(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(x5i)),this._cachedMergedKeybindings.slice(0)}},fw=new uZt,S5i={EditorModes:"platform.keybindingsRegistry"};q_.add(S5i.EditorModes,fw)});function Nde(l){return l.command!==void 0}function iyi(l){return l.submenu!==void 0}function Ah(l){let i=[],o=new l,{f1:s,menu:c,keybinding:_,...h}=o.desc;if(Ku.getCommand(h.id))throw new Error(`Cannot register two commands with the same id: ${h.id}`);if(i.push(Ku.registerCommand({id:h.id,handler:(b,...w)=>o.run(b,...w),metadata:h.metadata})),Array.isArray(c))for(let b of c)i.push(Rb.appendMenuItem(b.id,{command:{...h,precondition:b.precondition===null?void 0:h.precondition},...b}));else c&&i.push(Rb.appendMenuItem(c.id,{command:{...h,precondition:c.precondition===null?void 0:h.precondition},...c}));if(s&&(i.push(Rb.appendMenuItem(ki.CommandPalette,{command:h,when:h.precondition})),i.push(Rb.addCommand(h))),Array.isArray(_))for(let b of _)i.push(fw.registerKeybindingRule({...b,id:h.id,when:h.precondition?po.and(h.precondition,b.when):b.when}));else _&&i.push(fw.registerKeybindingRule({..._,id:h.id,when:h.precondition?po.and(h.precondition,_.when):_.when}));return{dispose(){a_(i)}}}var C5i,tyi,Bft,ki,Dw,Ide,Rb,Qj,P2,BC,Vg=Ht(()=>{Ew();P0();Pa();$r();f7();gg();du();kc();wle();C5i=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},tyi=function(l,i){return function(o,s){i(o,s,l)}};ki=class l{constructor(i){if(l._instances.has(i))throw new TypeError(`MenuId with identifier '${i}' already exists. Use MenuId.for(ident) or a unique identifier`);l._instances.set(i,this),this.id=i}};ki._instances=new Map;ki.CommandPalette=new ki("CommandPalette");ki.DebugBreakpointsContext=new ki("DebugBreakpointsContext");ki.DebugCallStackContext=new ki("DebugCallStackContext");ki.DebugConsoleContext=new ki("DebugConsoleContext");ki.DebugVariablesContext=new ki("DebugVariablesContext");ki.NotebookVariablesContext=new ki("NotebookVariablesContext");ki.DebugHoverContext=new ki("DebugHoverContext");ki.DebugWatchContext=new ki("DebugWatchContext");ki.DebugToolBar=new ki("DebugToolBar");ki.DebugToolBarStop=new ki("DebugToolBarStop");ki.EditorContext=new ki("EditorContext");ki.SimpleEditorContext=new ki("SimpleEditorContext");ki.EditorContent=new ki("EditorContent");ki.EditorLineNumberContext=new ki("EditorLineNumberContext");ki.EditorContextCopy=new ki("EditorContextCopy");ki.EditorContextPeek=new ki("EditorContextPeek");ki.EditorContextShare=new ki("EditorContextShare");ki.EditorTitle=new ki("EditorTitle");ki.EditorTitleRun=new ki("EditorTitleRun");ki.EditorTitleContext=new ki("EditorTitleContext");ki.EditorTitleContextShare=new ki("EditorTitleContextShare");ki.EmptyEditorGroup=new ki("EmptyEditorGroup");ki.EmptyEditorGroupContext=new ki("EmptyEditorGroupContext");ki.EditorTabsBarContext=new ki("EditorTabsBarContext");ki.EditorTabsBarShowTabsSubmenu=new ki("EditorTabsBarShowTabsSubmenu");ki.EditorTabsBarShowTabsZenModeSubmenu=new ki("EditorTabsBarShowTabsZenModeSubmenu");ki.EditorActionsPositionSubmenu=new ki("EditorActionsPositionSubmenu");ki.ExplorerContext=new ki("ExplorerContext");ki.ExplorerContextShare=new ki("ExplorerContextShare");ki.ExtensionContext=new ki("ExtensionContext");ki.GlobalActivity=new ki("GlobalActivity");ki.CommandCenter=new ki("CommandCenter");ki.CommandCenterCenter=new ki("CommandCenterCenter");ki.LayoutControlMenuSubmenu=new ki("LayoutControlMenuSubmenu");ki.LayoutControlMenu=new ki("LayoutControlMenu");ki.MenubarMainMenu=new ki("MenubarMainMenu");ki.MenubarAppearanceMenu=new ki("MenubarAppearanceMenu");ki.MenubarDebugMenu=new ki("MenubarDebugMenu");ki.MenubarEditMenu=new ki("MenubarEditMenu");ki.MenubarCopy=new ki("MenubarCopy");ki.MenubarFileMenu=new ki("MenubarFileMenu");ki.MenubarGoMenu=new ki("MenubarGoMenu");ki.MenubarHelpMenu=new ki("MenubarHelpMenu");ki.MenubarLayoutMenu=new ki("MenubarLayoutMenu");ki.MenubarNewBreakpointMenu=new ki("MenubarNewBreakpointMenu");ki.PanelAlignmentMenu=new ki("PanelAlignmentMenu");ki.PanelPositionMenu=new ki("PanelPositionMenu");ki.ActivityBarPositionMenu=new ki("ActivityBarPositionMenu");ki.MenubarPreferencesMenu=new ki("MenubarPreferencesMenu");ki.MenubarRecentMenu=new ki("MenubarRecentMenu");ki.MenubarSelectionMenu=new ki("MenubarSelectionMenu");ki.MenubarShare=new ki("MenubarShare");ki.MenubarSwitchEditorMenu=new ki("MenubarSwitchEditorMenu");ki.MenubarSwitchGroupMenu=new ki("MenubarSwitchGroupMenu");ki.MenubarTerminalMenu=new ki("MenubarTerminalMenu");ki.MenubarViewMenu=new ki("MenubarViewMenu");ki.MenubarHomeMenu=new ki("MenubarHomeMenu");ki.OpenEditorsContext=new ki("OpenEditorsContext");ki.OpenEditorsContextShare=new ki("OpenEditorsContextShare");ki.ProblemsPanelContext=new ki("ProblemsPanelContext");ki.SCMInputBox=new ki("SCMInputBox");ki.SCMChangesSeparator=new ki("SCMChangesSeparator");ki.SCMIncomingChanges=new ki("SCMIncomingChanges");ki.SCMIncomingChangesContext=new ki("SCMIncomingChangesContext");ki.SCMIncomingChangesSetting=new ki("SCMIncomingChangesSetting");ki.SCMOutgoingChanges=new ki("SCMOutgoingChanges");ki.SCMOutgoingChangesContext=new ki("SCMOutgoingChangesContext");ki.SCMOutgoingChangesSetting=new ki("SCMOutgoingChangesSetting");ki.SCMIncomingChangesAllChangesContext=new ki("SCMIncomingChangesAllChangesContext");ki.SCMIncomingChangesHistoryItemContext=new ki("SCMIncomingChangesHistoryItemContext");ki.SCMOutgoingChangesAllChangesContext=new ki("SCMOutgoingChangesAllChangesContext");ki.SCMOutgoingChangesHistoryItemContext=new ki("SCMOutgoingChangesHistoryItemContext");ki.SCMChangeContext=new ki("SCMChangeContext");ki.SCMResourceContext=new ki("SCMResourceContext");ki.SCMResourceContextShare=new ki("SCMResourceContextShare");ki.SCMResourceFolderContext=new ki("SCMResourceFolderContext");ki.SCMResourceGroupContext=new ki("SCMResourceGroupContext");ki.SCMSourceControl=new ki("SCMSourceControl");ki.SCMSourceControlInline=new ki("SCMSourceControlInline");ki.SCMSourceControlTitle=new ki("SCMSourceControlTitle");ki.SCMTitle=new ki("SCMTitle");ki.SearchContext=new ki("SearchContext");ki.SearchActionMenu=new ki("SearchActionContext");ki.StatusBarWindowIndicatorMenu=new ki("StatusBarWindowIndicatorMenu");ki.StatusBarRemoteIndicatorMenu=new ki("StatusBarRemoteIndicatorMenu");ki.StickyScrollContext=new ki("StickyScrollContext");ki.TestItem=new ki("TestItem");ki.TestItemGutter=new ki("TestItemGutter");ki.TestMessageContext=new ki("TestMessageContext");ki.TestMessageContent=new ki("TestMessageContent");ki.TestPeekElement=new ki("TestPeekElement");ki.TestPeekTitle=new ki("TestPeekTitle");ki.TouchBarContext=new ki("TouchBarContext");ki.TitleBarContext=new ki("TitleBarContext");ki.TitleBarTitleContext=new ki("TitleBarTitleContext");ki.TunnelContext=new ki("TunnelContext");ki.TunnelPrivacy=new ki("TunnelPrivacy");ki.TunnelProtocol=new ki("TunnelProtocol");ki.TunnelPortInline=new ki("TunnelInline");ki.TunnelTitle=new ki("TunnelTitle");ki.TunnelLocalAddressInline=new ki("TunnelLocalAddressInline");ki.TunnelOriginInline=new ki("TunnelOriginInline");ki.ViewItemContext=new ki("ViewItemContext");ki.ViewContainerTitle=new ki("ViewContainerTitle");ki.ViewContainerTitleContext=new ki("ViewContainerTitleContext");ki.ViewTitle=new ki("ViewTitle");ki.ViewTitleContext=new ki("ViewTitleContext");ki.CommentEditorActions=new ki("CommentEditorActions");ki.CommentThreadTitle=new ki("CommentThreadTitle");ki.CommentThreadActions=new ki("CommentThreadActions");ki.CommentThreadAdditionalActions=new ki("CommentThreadAdditionalActions");ki.CommentThreadTitleContext=new ki("CommentThreadTitleContext");ki.CommentThreadCommentContext=new ki("CommentThreadCommentContext");ki.CommentTitle=new ki("CommentTitle");ki.CommentActions=new ki("CommentActions");ki.CommentsViewThreadActions=new ki("CommentsViewThreadActions");ki.InteractiveToolbar=new ki("InteractiveToolbar");ki.InteractiveCellTitle=new ki("InteractiveCellTitle");ki.InteractiveCellDelete=new ki("InteractiveCellDelete");ki.InteractiveCellExecute=new ki("InteractiveCellExecute");ki.InteractiveInputExecute=new ki("InteractiveInputExecute");ki.IssueReporter=new ki("IssueReporter");ki.NotebookToolbar=new ki("NotebookToolbar");ki.NotebookStickyScrollContext=new ki("NotebookStickyScrollContext");ki.NotebookCellTitle=new ki("NotebookCellTitle");ki.NotebookCellDelete=new ki("NotebookCellDelete");ki.NotebookCellInsert=new ki("NotebookCellInsert");ki.NotebookCellBetween=new ki("NotebookCellBetween");ki.NotebookCellListTop=new ki("NotebookCellTop");ki.NotebookCellExecute=new ki("NotebookCellExecute");ki.NotebookCellExecuteGoTo=new ki("NotebookCellExecuteGoTo");ki.NotebookCellExecutePrimary=new ki("NotebookCellExecutePrimary");ki.NotebookDiffCellInputTitle=new ki("NotebookDiffCellInputTitle");ki.NotebookDiffCellMetadataTitle=new ki("NotebookDiffCellMetadataTitle");ki.NotebookDiffCellOutputsTitle=new ki("NotebookDiffCellOutputsTitle");ki.NotebookOutputToolbar=new ki("NotebookOutputToolbar");ki.NotebookOutlineFilter=new ki("NotebookOutlineFilter");ki.NotebookOutlineActionMenu=new ki("NotebookOutlineActionMenu");ki.NotebookEditorLayoutConfigure=new ki("NotebookEditorLayoutConfigure");ki.NotebookKernelSource=new ki("NotebookKernelSource");ki.BulkEditTitle=new ki("BulkEditTitle");ki.BulkEditContext=new ki("BulkEditContext");ki.TimelineItemContext=new ki("TimelineItemContext");ki.TimelineTitle=new ki("TimelineTitle");ki.TimelineTitleContext=new ki("TimelineTitleContext");ki.TimelineFilterSubMenu=new ki("TimelineFilterSubMenu");ki.AccountsContext=new ki("AccountsContext");ki.SidebarTitle=new ki("SidebarTitle");ki.PanelTitle=new ki("PanelTitle");ki.AuxiliaryBarTitle=new ki("AuxiliaryBarTitle");ki.AuxiliaryBarHeader=new ki("AuxiliaryBarHeader");ki.TerminalInstanceContext=new ki("TerminalInstanceContext");ki.TerminalEditorInstanceContext=new ki("TerminalEditorInstanceContext");ki.TerminalNewDropdownContext=new ki("TerminalNewDropdownContext");ki.TerminalTabContext=new ki("TerminalTabContext");ki.TerminalTabEmptyAreaContext=new ki("TerminalTabEmptyAreaContext");ki.TerminalStickyScrollContext=new ki("TerminalStickyScrollContext");ki.WebviewContext=new ki("WebviewContext");ki.InlineCompletionsActions=new ki("InlineCompletionsActions");ki.InlineEditActions=new ki("InlineEditActions");ki.NewFile=new ki("NewFile");ki.MergeInput1Toolbar=new ki("MergeToolbar1Toolbar");ki.MergeInput2Toolbar=new ki("MergeToolbar2Toolbar");ki.MergeBaseToolbar=new ki("MergeBaseToolbar");ki.MergeInputResultToolbar=new ki("MergeToolbarResultToolbar");ki.InlineSuggestionToolbar=new ki("InlineSuggestionToolbar");ki.InlineEditToolbar=new ki("InlineEditToolbar");ki.ChatContext=new ki("ChatContext");ki.ChatCodeBlock=new ki("ChatCodeblock");ki.ChatCompareBlock=new ki("ChatCompareBlock");ki.ChatMessageTitle=new ki("ChatMessageTitle");ki.ChatExecute=new ki("ChatExecute");ki.ChatExecuteSecondary=new ki("ChatExecuteSecondary");ki.ChatInputSide=new ki("ChatInputSide");ki.AccessibleView=new ki("AccessibleView");ki.MultiDiffEditorFileToolbar=new ki("MultiDiffEditorFileToolbar");ki.DiffEditorHunkToolbar=new ki("DiffEditorHunkToolbar");ki.DiffEditorSelectionToolbar=new ki("DiffEditorSelectionToolbar");Dw=Wc("menuService"),Ide=class l{static for(i){let o=this._all.get(i);return o||(o=new l(i),this._all.set(i,o)),o}static merge(i){let o=new Set;for(let s of i)s instanceof l&&o.add(s.id);return o}constructor(i){this.id=i,this.has=o=>o===i}};Ide._all=new Map;Rb=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Dut({merge:Ide.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(l){return this._commands.set(l.id,l),this._onDidChangeMenu.fire(Ide.for(ki.CommandPalette)),Qs(()=>{this._commands.delete(l.id)&&this._onDidChangeMenu.fire(Ide.for(ki.CommandPalette))})}getCommand(l){return this._commands.get(l)}getCommands(){let l=new Map;return this._commands.forEach((i,o)=>l.set(o,i)),l}appendMenuItem(l,i){let o=this._menuItems.get(l);o||(o=new L1,this._menuItems.set(l,o));let s=o.push(i);return this._onDidChangeMenu.fire(Ide.for(l)),Qs(()=>{s(),this._onDidChangeMenu.fire(Ide.for(l))})}appendMenuItems(l){let i=new pr;for(let{id:o,item:s}of l)i.add(this.appendMenuItem(o,s));return i}getMenuItems(l){let i;return this._menuItems.has(l)?i=[...this._menuItems.get(l)]:i=[],l===ki.CommandPalette&&this._appendImplicitItems(i),i}_appendImplicitItems(l){let i=new Set;for(let o of l)Nde(o)&&(i.add(o.command.id),o.alt&&i.add(o.alt.id));this._commands.forEach((o,s)=>{i.has(s)||l.push({command:o})})}},Qj=class extends sj{constructor(i,o,s){super(`submenuitem.${i.submenu.id}`,typeof i.title=="string"?i.title:i.title.value,s,"submenu"),this.item=i,this.hideActions=o}},P2=Bft=class{static label(i,o){return o?.renderShortTitle&&i.shortTitle?typeof i.shortTitle=="string"?i.shortTitle:i.shortTitle.value:typeof i.title=="string"?i.title:i.title.value}constructor(i,o,s,c,_,h,b){var w,D;this.hideActions=c,this.menuKeybinding=_,this._commandService=b,this.id=i.id,this.label=Bft.label(i,s),this.tooltip=(D=typeof i.tooltip=="string"?i.tooltip:(w=i.tooltip)===null||w===void 0?void 0:w.value)!==null&&D!==void 0?D:"",this.enabled=!i.precondition||h.contextMatchesRules(i.precondition),this.checked=void 0;let O;if(i.toggled){let j=i.toggled.condition?i.toggled:{condition:i.toggled};this.checked=h.contextMatchesRules(j.condition),this.checked&&j.tooltip&&(this.tooltip=typeof j.tooltip=="string"?j.tooltip:j.tooltip.value),this.checked&&uc.isThemeIcon(j.icon)&&(O=j.icon),this.checked&&j.title&&(this.label=typeof j.title=="string"?j.title:j.title.value)}O||(O=uc.isThemeIcon(i.icon)?i.icon:void 0),this.item=i,this.alt=o?new Bft(o,void 0,s,c,void 0,h,b):void 0,this._options=s,this.class=O&&uc.asClassName(O)}run(...i){var o,s;let c=[];return!((o=this._options)===null||o===void 0)&&o.arg&&(c=[...c,this._options.arg]),!((s=this._options)===null||s===void 0)&&s.shouldForwardArgs&&(c=[...c,...i]),this._commandService.executeCommand(this.id,...c)}};P2=Bft=C5i([tyi(5,La),tyi(6,c_)],P2);BC=class{constructor(i){this.desc=i}}});var Ly,dP=Ht(()=>{kc();Ly=Wc("telemetryService")});function k5i(l){switch(l){case VD.Trace:return"trace";case VD.Debug:return"debug";case VD.Info:return"info";case VD.Warning:return"warn";case VD.Error:return"error";case VD.Off:return"off"}}var Nv,VD,nyi,jft,Wft,zft,qsn,aL=Ht(()=>{Pa();$r();du();kc();Nv=Wc("logService");(function(l){l[l.Off=0]="Off",l[l.Trace=1]="Trace",l[l.Debug=2]="Debug",l[l.Info=3]="Info",l[l.Warning=4]="Warning",l[l.Error=5]="Error"})(VD||(VD={}));nyi=VD.Info,jft=class extends Ui{constructor(){super(...arguments),this.level=nyi,this._onDidChangeLogLevel=this._register(new fn),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(i){this.level!==i&&(this.level=i,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(i){return this.level!==VD.Off&&this.level<=i}},Wft=class extends jft{constructor(i=nyi,o=!0){super(),this.useColors=o,this.setLevel(i)}trace(i,...o){this.checkLogLevel(VD.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",i,...o):console.log(i,...o))}debug(i,...o){this.checkLogLevel(VD.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",i,...o):console.log(i,...o))}info(i,...o){this.checkLogLevel(VD.Info)&&(this.useColors?console.log("%c INFO","color: #33f",i,...o):console.log(i,...o))}warn(i,...o){this.checkLogLevel(VD.Warning)&&(this.useColors?console.log("%c WARN","color: #993",i,...o):console.log(i,...o))}error(i,...o){this.checkLogLevel(VD.Error)&&(this.useColors?console.log("%c ERR","color: #f33",i,...o):console.error(i,...o))}},zft=class extends jft{constructor(i){super(),this.loggers=i,i.length&&this.setLevel(i[0].getLevel())}setLevel(i){for(let o of this.loggers)o.setLevel(i);super.setLevel(i)}trace(i,...o){for(let s of this.loggers)s.trace(i,...o)}debug(i,...o){for(let s of this.loggers)s.debug(i,...o)}info(i,...o){for(let s of this.loggers)s.info(i,...o)}warn(i,...o){for(let s of this.loggers)s.warn(i,...o)}error(i,...o){for(let s of this.loggers)s.error(i,...o)}dispose(){for(let i of this.loggers)i.dispose();super.dispose()}};qsn=new Ms("logLevel",k5i(VD.Info))});function WF(l,i){Ku.registerCommand(l,function(o,...s){let c=o.get(qs),[_,h]=s;Xd(Ka.isUri(_)),Xd(Cn.isIPosition(h));let b=o.get(lm).getModel(_);if(b){let w=Cn.lift(h);return c.invokeFunction(i,b,w,...s.slice(2))}return o.get(XS).createModelReference(_).then(w=>new Promise((D,O)=>{try{let j=c.invokeFunction(i,w.object.textEditorModel,Cn.lift(h),s.slice(2));D(j)}catch(j){O(j)}}).finally(()=>{w.dispose()}))})}function Zs(l){return jF.INSTANCE.registerEditorCommand(l),l}function zo(l){let i=new l;return jF.INSTANCE.registerEditorAction(i),i}function dZt(l){return jF.INSTANCE.registerEditorAction(l),l}function ryi(l){jF.INSTANCE.registerEditorAction(l)}function Al(l,i,o){jF.INSTANCE.registerEditorContribution(l,i,o)}function Knt(l){return l.register(),l}var UNe,Tle,Vft,w0,zs,Gnt,cL,Ade,w5i,jF,fZt,_Zt,oyi,sd=Ht(()=>{Fs();Lh();$b();Ll();XA();b7();Vg();gg();du();kc();wle();RC();dP();cm();aL();va();UNe=class{constructor(i){this.id=i.id,this.precondition=i.precondition,this._kbOpts=i.kbOpts,this._menuOpts=i.menuOpts,this.metadata=i.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){let i=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(let o of i){let s=o.kbExpr;this.precondition&&(s?s=po.and(s,this.precondition):s=this.precondition);let c={id:this.id,weight:o.weight,args:o.args,when:s,primary:o.primary,secondary:o.secondary,win:o.win,linux:o.linux,mac:o.mac};fw.registerKeybindingRule(c)}}Ku.registerCommand({id:this.id,handler:(i,o)=>this.runCommand(i,o),metadata:this.metadata})}_registerMenuItem(i){Rb.appendMenuItem(i.menuId,{group:i.group,command:{id:this.id,title:i.title,icon:i.icon,precondition:this.precondition},when:i.when,order:i.order})}},Tle=class extends UNe{constructor(){super(...arguments),this._implementations=[]}addImplementation(i,o,s,c){return this._implementations.push({priority:i,name:o,implementation:s,when:c}),this._implementations.sort((_,h)=>h.priority-_.priority),{dispose:()=>{for(let _=0;_{if(b.get(La).contextMatchesRules(s??void 0))return c(b,h,o)})}runCommand(i,o){return l.runEditorCommand(i,o,this.precondition,(s,c,_)=>this.runEditorCommand(s,c,_))}},zs=class l extends w0{static convertOptions(i){let o;Array.isArray(i.menuOpts)?o=i.menuOpts:i.menuOpts?o=[i.menuOpts]:o=[];function s(c){return c.menuId||(c.menuId=ki.EditorContext),c.title||(c.title=i.label),c.when=po.and(i.precondition,c.when),c}return Array.isArray(i.contextMenuOpts)?o.push(...i.contextMenuOpts.map(s)):i.contextMenuOpts&&o.push(s(i.contextMenuOpts)),i.menuOpts=o,i}constructor(i){super(l.convertOptions(i)),this.label=i.label,this.alias=i.alias}runEditorCommand(i,o,s){return this.reportTelemetry(i,o),this.run(i,o,s||{})}reportTelemetry(i,o){i.get(Ly).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}},Gnt=class extends zs{constructor(){super(...arguments),this._implementations=[]}addImplementation(i,o){return this._implementations.push([i,o]),this._implementations.sort((s,c)=>c[0]-s[0]),{dispose:()=>{for(let s=0;s{var h,b;let w=_.get(La),D=_.get(Nv);if(!w.contextMatchesRules((h=this.desc.precondition)!==null&&h!==void 0?h:void 0)){D.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,(b=this.desc.precondition)===null||b===void 0?void 0:b.serialize());return}return this.runEditorCommand(_,c,...o)})}};(function(l){function i(h){return jF.INSTANCE.getEditorCommand(h)}l.getEditorCommand=i;function o(){return jF.INSTANCE.getEditorActions()}l.getEditorActions=o;function s(){return jF.INSTANCE.getEditorContributions()}l.getEditorContributions=s;function c(h){return jF.INSTANCE.getEditorContributions().filter(b=>h.indexOf(b.id)>=0)}l.getSomeEditorContributions=c;function _(){return jF.INSTANCE.getDiffEditorContributions()}l.getDiffEditorContributions=_})(Ade||(Ade={}));w5i={EditorCommonContributions:"editor.contributions"},jF=class{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(i,o,s){this.editorContributions.push({id:i,ctor:o,instantiation:s})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(i){i.register(),this.editorActions.push(i)}getEditorActions(){return this.editorActions}registerEditorCommand(i){i.register(),this.editorCommands[i.id]=i}getEditorCommand(i){return this.editorCommands[i]||null}};jF.INSTANCE=new jF;q_.add(w5i.EditorCommonContributions,jF.INSTANCE);fZt=Knt(new Tle({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:ki.MenubarEditMenu,group:"1_do",title:de({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:ki.CommandPalette,group:"",title:de("undo","Undo"),order:1}]}));Knt(new Vft(fZt,{id:"default:undo",precondition:void 0}));_Zt=Knt(new Tle({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:ki.MenubarEditMenu,group:"1_do",title:de({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:ki.CommandPalette,group:"",title:de("redo","Redo"),order:1}]}));Knt(new Vft(_Zt,{id:"default:redo",precondition:void 0}));oyi=Knt(new Tle({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:ki.MenubarSelectionMenu,group:"1_basic",title:de({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:ki.CommandPalette,group:"",title:de("selectAll","Select All"),order:1}]}))});function Xnt(l){d7&&(syi||(syi=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(l.message))}function ayi(l){return l[0]==="o"&&l[1]==="n"&&ZB(l.charCodeAt(2))}function cyi(l){return/^onDynamic/.test(l)&&ZB(l.charCodeAt(9))}function E5i(l,i,o){let s=h=>function(){let b=Array.prototype.slice.call(arguments,0);return i(h,b)},c=h=>function(b){return o(h,b)},_={};for(let h of l){if(cyi(h)){_[h]=c(h);continue}if(ayi(h)){_[h]=o(h,void 0);continue}_[h]=s(h)}return _}var T5i,syi,pZt,Hft,mZt,hZt,gZt,yZt,Uft,vZt=Ht(()=>{Pl();Pa();$r();oP();uf();Bl();T5i="$initialize",syi=!1;pZt=class{constructor(i,o,s,c){this.vsWorker=i,this.req=o,this.method=s,this.args=c,this.type=0}},Hft=class{constructor(i,o,s,c){this.vsWorker=i,this.seq=o,this.res=s,this.err=c,this.type=1}},mZt=class{constructor(i,o,s,c){this.vsWorker=i,this.req=o,this.eventName=s,this.arg=c,this.type=2}},hZt=class{constructor(i,o,s){this.vsWorker=i,this.req=o,this.event=s,this.type=3}},gZt=class{constructor(i,o){this.vsWorker=i,this.req=o,this.type=4}},yZt=class{constructor(i){this._workerId=-1,this._handler=i,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(i){this._workerId=i}sendMessage(i,o){let s=String(++this._lastSentReq);return new Promise((c,_)=>{this._pendingReplies[s]={resolve:c,reject:_},this._send(new pZt(this._workerId,s,i,o))})}listen(i,o){let s=null,c=new fn({onWillAddFirstListener:()=>{s=String(++this._lastSentReq),this._pendingEmitters.set(s,c),this._send(new mZt(this._workerId,s,i,o))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(s),this._send(new gZt(this._workerId,s)),s=null}});return c.event}handleMessage(i){!i||!i.vsWorker||this._workerId!==-1&&i.vsWorker!==this._workerId||this._handleMessage(i)}_handleMessage(i){switch(i.type){case 1:return this._handleReplyMessage(i);case 0:return this._handleRequestMessage(i);case 2:return this._handleSubscribeEventMessage(i);case 3:return this._handleEventMessage(i);case 4:return this._handleUnsubscribeEventMessage(i)}}_handleReplyMessage(i){if(!this._pendingReplies[i.seq]){console.warn("Got reply to unknown seq");return}let o=this._pendingReplies[i.seq];if(delete this._pendingReplies[i.seq],i.err){let s=i.err;i.err.$isError&&(s=new Error,s.name=i.err.name,s.message=i.err.message,s.stack=i.err.stack),o.reject(s);return}o.resolve(i.res)}_handleRequestMessage(i){let o=i.req;this._handler.handleMessage(i.method,i.args).then(c=>{this._send(new Hft(this._workerId,o,c,void 0))},c=>{c.detail instanceof Error&&(c.detail=oQt(c.detail)),this._send(new Hft(this._workerId,o,void 0,oQt(c)))})}_handleSubscribeEventMessage(i){let o=i.req,s=this._handler.handleEvent(i.eventName,i.arg)(c=>{this._send(new hZt(this._workerId,o,c))});this._pendingEvents.set(o,s)}_handleEventMessage(i){if(!this._pendingEmitters.has(i.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(i.req).fire(i.event)}_handleUnsubscribeEventMessage(i){if(!this._pendingEvents.has(i.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(i.req).dispose(),this._pendingEvents.delete(i.req)}_send(i){let o=[];if(i.type===0)for(let s=0;s{this._protocol.handleMessage(O)},O=>{c?.(O)})),this._protocol=new yZt({sendMessage:(O,j)=>{this._worker.postMessage(O,j)},handleMessage:(O,j)=>{if(typeof s[O]!="function")return Promise.reject(new Error("Missing method "+O+" on main thread host."));try{return Promise.resolve(s[O].apply(s,j))}catch(F){return Promise.reject(F)}},handleEvent:(O,j)=>{if(cyi(O)){let F=s[O].call(s,j);if(typeof F!="function")throw new Error(`Missing dynamic event ${O} on main thread host.`);return F}if(ayi(O)){let F=s[O];if(typeof F!="function")throw new Error(`Missing event ${O} on main thread host.`);return F}throw new Error(`Malformed event name ${O}`)}}),this._protocol.setWorkerId(this._worker.getId());let _=null,h=globalThis.require;typeof h<"u"&&typeof h.getConfig=="function"?_=h.getConfig():typeof globalThis.requirejs<"u"&&(_=globalThis.requirejs.s.contexts._.config);let b=F4e(s);this._onModuleLoaded=this._protocol.sendMessage(T5i,[this._worker.getId(),JSON.parse(JSON.stringify(_)),o,b]);let w=(O,j)=>this._request(O,j),D=(O,j)=>this._protocol.listen(O,j);this._lazyProxy=new Promise((O,j)=>{c=j,this._onModuleLoaded.then(F=>{O(E5i(F,w,D))},F=>{j(F),this._onError("Worker failed to load "+o,F)})})}getProxyObject(){return this._lazyProxy}_request(i,o){return new Promise((s,c)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(i,o).then(s,c)},c)})}_onError(i,o){console.error(i),console.info(o)}}});function fP(l,i){var o;let s=globalThis.MonacoEnvironment;if(s?.createTrustedTypesPolicy)try{return s.createTrustedTypesPolicy(l,i)}catch(c){Sc(c);return}try{return(o=D_.trustedTypes)===null||o===void 0?void 0:o.createPolicy(l,i)}catch(c){Sc(c);return}}var VK=Ht(()=>{GA();Pl()});function D5i(l){let i=globalThis.MonacoEnvironment;if(i){if(typeof i.getWorker=="function")return i.getWorker("workerMain.js",l);if(typeof i.getWorkerUrl=="function"){let o=i.getWorkerUrl("workerMain.js",l);return new Worker(lyi?lyi.createScriptURL(o):o,{name:l})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function I5i(l){return typeof l.then=="function"}var lyi,bZt,Ynt,uyi=Ht(()=>{VK();Pl();vZt();$r();lyi=fP("defaultWorkerFactory",{createScriptURL:l=>l});bZt=class extends Ui{constructor(i,o,s,c,_){super(),this.id=o,this.label=s;let h=D5i(s);I5i(h)?this.worker=h:this.worker=Promise.resolve(h),this.postMessage(i,[]),this.worker.then(b=>{b.onmessage=function(w){c(w.data)},b.onmessageerror=_,typeof b.addEventListener=="function"&&b.addEventListener("error",_)}),this._register(Qs(()=>{var b;(b=this.worker)===null||b===void 0||b.then(w=>{w.onmessage=null,w.onmessageerror=null,w.removeEventListener("error",_),w.terminate()}),this.worker=null}))}getId(){return this.id}postMessage(i,o){var s;(s=this.worker)===null||s===void 0||s.then(c=>{try{c.postMessage(i,o)}catch(_){Sc(_),Sc(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:_}))}})}},Ynt=class l{constructor(i){this._label=i,this._webWorkerFailedBeforeError=!1}create(i,o,s){let c=++l.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new bZt(i,c,this._label||"anonymous"+c,o,_=>{Xnt(_),this._webWorkerFailedBeforeError=_,s(_)})}};Ynt.LAST_WORKER_ID=0});function Qnt(l,i,o){l.has(i)?l.get(i).push(o):l.set(i,[o])}var Bb,p6e,Jft,Pde=Ht(()=>{(function(l){l[l.None=0]="None",l[l.Indent=1]="Indent",l[l.IndentOutdent=2]="IndentOutdent",l[l.Outdent=3]="Outdent"})(Bb||(Bb={}));p6e=class{constructor(i){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=i.open,this.close=i.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(i.notIn))for(let o=0,s=i.notIn.length;o{Pde();m6e=class l{constructor(i){if(i.autoClosingPairs?this._autoClosingPairs=i.autoClosingPairs.map(o=>new p6e(o)):i.brackets?this._autoClosingPairs=i.brackets.map(o=>new p6e({open:o[0],close:o[1]})):this._autoClosingPairs=[],i.__electricCharacterSupport&&i.__electricCharacterSupport.docComment){let o=i.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new p6e({open:o.open,close:o.close||""}))}this._autoCloseBeforeForQuotes=typeof i.autoCloseBefore=="string"?i.autoCloseBefore:l.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof i.autoCloseBefore=="string"?i.autoCloseBefore:l.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=i.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(i){return i?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}};m6e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])> + `;m6e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])> + `});function HK(l,i){let o=l.getCount(),s=l.findTokenIndexAtOffset(i),c=l.getLanguageId(s),_=s;for(;_+10&&l.getLanguageId(h-1)===c;)h--;return new SZt(l,c,h,_+1,l.getStartOffset(h),l.getEndOffset(_))}function Zj(l){return(l&3)!==0}var SZt,h6e=Ht(()=>{SZt=class{constructor(i,o,s,c,_,h){this._scopedLineTokensBrand=void 0,this._actual=i,this.languageId=o,this._firstTokenIndex=s,this._lastTokenIndex=c,this.firstCharOffset=_,this._lastCharOffset=h,this.languageIdCodec=i.languageIdCodec}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getLineLength(){return this._lastCharOffset-this.firstCharOffset}getActualLineContentBefore(i){return this._actual.getLineContent().substring(0,this.firstCharOffset+i)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(i){return this._actual.findTokenIndexAtOffset(i+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(i){return this._actual.getStandardTokenType(i+this._firstTokenIndex)}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0)}}});function _yi(l,i){return l[i+0]<<0>>>0|l[i+1]<<8>>>0}function pyi(l,i,o){l[o+0]=i&255,i=i>>>8,l[o+1]=i&255}function aj(l,i){return l[i]*2**24+l[i+1]*2**16+l[i+2]*2**8+l[i+3]}function cj(l,i,o){l[o+3]=i,i=i>>>8,l[o+2]=i,i=i>>>8,l[o+1]=i,i=i>>>8,l[o]=i}function CZt(l,i){return l[i]}function kZt(l,i,o){l[o]=i}var fyi,Nan,xZt,g6e,y6e=Ht(()=>{AG();fyi=typeof Buffer<"u",Nan=new TC(()=>new Uint8Array(256)),g6e=class l{static wrap(i){return fyi&&!Buffer.isBuffer(i)&&(i=Buffer.from(i.buffer,i.byteOffset,i.byteLength)),new l(i)}constructor(i){this.buffer=i,this.byteLength=this.buffer.byteLength}toString(){return fyi?this.buffer.toString():(xZt||(xZt=new TextDecoder),xZt.decode(this.buffer))}}});function myi(){return TZt||(TZt=new TextDecoder("UTF-16LE")),TZt}function N5i(){return EZt||(EZt=new TextDecoder("UTF-16BE")),EZt}function IZt(){return DZt||(DZt=but()?myi():N5i()),DZt}function hyi(l,i,o){let s=new Uint16Array(l.buffer,i,o);return o>0&&(s[0]===65279||s[0]===65534)?A5i(l,i,o):myi().decode(s)}function A5i(l,i,o){let s=[],c=0;for(let _=0;_{Bl();uf();y6e();S7=class{constructor(i){this._capacity=i|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(this._bufferLength===0)return"";let i=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return IZt().decode(i)}_flushBuffer(){let i=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[i]:this._completedStrings[this._completedStrings.length]=i}appendCharCode(i){let o=this._capacity-this._bufferLength;o<=1&&(o===0||E1(i))&&this._flushBuffer(),this._buffer[this._bufferLength++]=i}appendASCIICharCode(i){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=i}appendString(i){let o=i.length;if(this._bufferLength+o>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=i;return}for(let s=0;s[h[0].toLowerCase(),h[1].toLowerCase()]);let o=[];for(let h=0;h{let[w,D]=h,[O,j]=b;return w===O||w===j||D===O||D===j},c=(h,b)=>{let w=Math.min(h,b),D=Math.max(h,b);for(let O=0;O0&&_.push({open:b,close:w})}return _}function gyi(l,i,o,s){for(let c=0,_=i.length;c<_;c++){if(c===o)continue;let h=i[c];for(let b of h.open)b.indexOf(l)>=0&&s.push(b);for(let b of h.close)b.indexOf(l)>=0&&s.push(b)}}function yyi(l,i){return l.length-i.length}function $ft(l){if(l.length<=1)return l;let i=[],o=new Set;for(let s of l)o.has(s)||(i.push(s),o.add(s));return i}function O5i(l,i,o,s){let c=[];c=c.concat(l),c=c.concat(i);for(let _=0,h=c.length;_{Bl();Ele();ca();NZt=class l{constructor(i,o,s,c,_,h){this._richEditBracketBrand=void 0,this.languageId=i,this.index=o,this.open=s,this.close=c,this.forwardRegex=_,this.reversedRegex=h,this._openSet=l._toSet(this.open),this._closeSet=l._toSet(this.close)}isOpen(i){return this._openSet.has(i)}isClose(i){return this._closeSet.has(i)}static _toSet(i){let o=new Set;for(let s of i)o.add(s);return o}};qft=class{constructor(i,o){this._richEditBracketsBrand=void 0;let s=L5i(o);this.brackets=s.map((c,_)=>new NZt(i,_,c.open,c.close,O5i(c.open,c.close,s,_),F5i(c.open,c.close,s,_))),this.forwardRegex=M5i(this.brackets),this.reversedRegex=R5i(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(let c of this.brackets){for(let _ of c.open)this.textIsBracket[_]=c,this.textIsOpenBracket[_]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,_.length);for(let _ of c.close)this.textIsBracket[_]=c,this.textIsOpenBracket[_]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,_.length)}}};AZt=function(){function l(s){let c=new Uint16Array(s.length),_=0;for(let h=s.length-1;h>=0;h--)c[_++]=s.charCodeAt(h);return IZt().decode(c)}let i=null,o=null;return function(c){return i!==c&&(i=c,o=l(i)),o}}(),WL=class{static _findPrevBracketInText(i,o,s,c){let _=s.match(i);if(!_)return null;let h=s.length-(_.index||0),b=_[0].length,w=c+h;return new Vt(o,w-b+1,o,w+1)}static findPrevBracketInRange(i,o,s,c,_){let b=AZt(s).substring(s.length-_,s.length-c);return this._findPrevBracketInText(i,o,b,c)}static findNextBracketInText(i,o,s,c){let _=s.match(i);if(!_)return null;let h=_.index||0,b=_[0].length;if(b===0)return null;let w=c+h;return new Vt(o,w+1,o,w+1+b)}static findNextBracketInRange(i,o,s,c,_){let h=s.substring(c,_);return this.findNextBracketInText(i,o,h,c)}}});var Gft,vyi=Ht(()=>{su();h6e();Znt();Gft=class{constructor(i){this._richEditBrackets=i}getElectricCharacters(){let i=[];if(this._richEditBrackets)for(let o of this._richEditBrackets.brackets)for(let s of o.close){let c=s.charAt(s.length-1);i.push(c)}return PL(i)}onElectricCharacter(i,o,s){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;let c=o.findTokenIndexAtOffset(s-1);if(Zj(o.getStandardTokenType(c)))return null;let _=this._richEditBrackets.reversedRegex,h=o.getLineContent().substring(0,s-1)+i,b=WL.findPrevBracketInRange(_,1,h,0,h.length);if(!b)return null;let w=h.substring(b.startColumn-1,b.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[w])return null;let O=o.getActualLineContentBefore(b.startColumn-1);return/^\s*$/.test(O)?{matchOpenBracket:w}:null}}});function Kft(l){return l.global&&(l.lastIndex=0),!0}var Xft,byi=Ht(()=>{Xft=class{constructor(i){this._indentationRules=i}shouldIncrease(i){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&Kft(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(i))}shouldDecrease(i){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&Kft(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(i))}shouldIndentNextLine(i){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&Kft(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(i))}shouldIgnore(i){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&Kft(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(i))}getIndentMetadata(i){let o=0;return this.shouldIncrease(i)&&(o+=1),this.shouldDecrease(i)&&(o+=2),this.shouldIndentNextLine(i)&&(o+=4),this.shouldIgnore(i)&&(o+=8),o}}});var Yft,Syi=Ht(()=>{Pl();Bl();Pde();Yft=class l{constructor(i){i=i||{},i.brackets=i.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],i.brackets.forEach(o=>{let s=l._createOpenBracketRegExp(o[0]),c=l._createCloseBracketRegExp(o[1]);s&&c&&this._brackets.push({open:o[0],openRegExp:s,close:o[1],closeRegExp:c})}),this._regExpRules=i.onEnterRules||[]}onEnter(i,o,s,c){if(i>=3)for(let _=0,h=this._regExpRules.length;_D.reg?(D.reg.lastIndex=0,D.reg.test(D.text)):!0))return b.action}if(i>=2&&s.length>0&&c.length>0)for(let _=0,h=this._brackets.length;_=2&&s.length>0){for(let _=0,h=this._brackets.length;_"u"?o:_}function kyi(l){return l.replace(/[\[\]]/g,"")}var gl,Rg=Ht(()=>{kc();gl=Wc("configurationService")});var up,v2=Ht(()=>{kc();up=Wc("languageService")});var zF,Zft=Ht(()=>{zF=class{constructor(i,o=[],s=!1){this.ctor=i,this.staticArguments=o,this.supportsDelayedInstantiation=s}}});function Ld(l,i,o){i instanceof zF||(i=new zF(i,[],!!o)),wyi.push([l,i])}function OZt(){return wyi}var wyi,HD=Ht(()=>{Zft();wyi=[]});var Fy,Lde=Ht(()=>{Fy=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})});function j5i(l){return l.length>0&&l.charAt(l.length-1)==="#"?l.substring(0,l.length-1):l}var JNe,FZt,W5i,e_t=Ht(()=>{Pa();RC();JNe={JSONContribution:"base.contributions.json"};FZt=class{constructor(){this._onDidChangeSchema=new fn,this.schemasById={}}registerSchema(i,o){this.schemasById[j5i(i)]=o,this._onDidChangeSchema.fire(i)}notifySchemaChanged(i){this._onDidChangeSchema.fire(i)}},W5i=new FZt;q_.add(JNe.JSONContribution,W5i)});function trt(l){let i=[];if(Dle.test(l)){let o=Eyi.exec(l);for(;o?.length;){let s=o[1].trim();s&&i.push(s),o=Eyi.exec(l)}}return PL(i)}function z5i(l){switch(Array.isArray(l)?l[0]:l){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}function V5i(l,i){var o,s,c,_;return l.trim()?Dle.test(l)?de("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",l):i_t.getConfigurationProperties()[l]!==void 0?de("config.property.duplicate","Cannot register '{0}'. This property is already registered.",l):!((o=i.policy)===null||o===void 0)&&o.name&&i_t.getPolicyConfigurations().get((s=i.policy)===null||s===void 0?void 0:s.name)!==void 0?de("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",l,(c=i.policy)===null||c===void 0?void 0:c.name,i_t.getPolicyConfigurations().get((_=i.policy)===null||_===void 0?void 0:_.name)):null:de("config.property.empty","Cannot register an empty property")}var uI,MZt,RZt,BZt,jZt,WZt,t_t,ert,Tyi,zZt,Dyi,Eyi,qNe,Dle,i_t,UK=Ht(()=>{su();Pa();cm();Fs();Rg();e_t();RC();uI={Configuration:"base.contributions.configuration"},MZt={properties:{},patternProperties:{}},RZt={properties:{},patternProperties:{}},BZt={properties:{},patternProperties:{}},jZt={properties:{},patternProperties:{}},WZt={properties:{},patternProperties:{}},t_t={properties:{},patternProperties:{}},ert="vscode://schemas/settings/resourceLanguage",Tyi=q_.as(JNe.JSONContribution),zZt=class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new fn,this._onDidUpdateConfiguration=new fn,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:de("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},Tyi.registerSchema(ert,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(i,o=!0){this.registerConfigurations([i],o)}registerConfigurations(i,o=!0){let s=new Set;this.doRegisterConfigurations(i,o,s),Tyi.registerSchema(ert,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:s})}registerDefaultConfigurations(i){let o=new Set;this.doRegisterDefaultConfigurations(i,o),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:o,defaultsOverrides:!0})}doRegisterDefaultConfigurations(i,o){var s;let c=[];for(let{overrides:_,source:h}of i)for(let b in _)if(o.add(b),Dle.test(b)){let w=this.configurationDefaultsOverrides.get(b),D=(s=w?.valuesSources)!==null&&s!==void 0?s:new Map;if(h)for(let X of Object.keys(_[b]))D.set(X,h);let O={...w?.value||{},..._[b]};this.configurationDefaultsOverrides.set(b,{source:h,value:O,valuesSources:D});let j=kyi(b),F={type:"object",default:O,description:de("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",j),$ref:ert,defaultDefaultValue:O,source:CC(h)?void 0:h,defaultValueSource:h};c.push(...trt(b)),this.configurationProperties[b]=F,this.defaultLanguageConfigurationOverridesNode.properties[b]=F}else{this.configurationDefaultsOverrides.set(b,{value:_[b],source:h});let w=this.configurationProperties[b];w&&(this.updatePropertyDefaultValue(b,w),this.updateSchema(b,w))}this.doRegisterOverrideIdentifiers(c)}registerOverrideIdentifiers(i){this.doRegisterOverrideIdentifiers(i),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(i){for(let o of i)this.overrideIdentifiers.add(o);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(i,o,s){i.forEach(c=>{this.validateAndRegisterProperties(c,o,c.extensionInfo,c.restrictedProperties,void 0,s),this.configurationContributors.push(c),this.registerJSONConfiguration(c)})}validateAndRegisterProperties(i,o=!0,s,c,_=3,h){var b;_=qA(i.scope)?_:i.scope;let w=i.properties;if(w)for(let O in w){let j=w[O];if(o&&V5i(O,j)){delete w[O];continue}if(j.source=s,j.defaultDefaultValue=w[O].default,this.updatePropertyDefaultValue(O,j),Dle.test(O)?j.scope=void 0:(j.scope=qA(j.scope)?_:j.scope,j.restricted=qA(j.restricted)?!!c?.includes(O):j.restricted),w[O].hasOwnProperty("included")&&!w[O].included){this.excludedConfigurationProperties[O]=w[O],delete w[O];continue}else this.configurationProperties[O]=w[O],!((b=w[O].policy)===null||b===void 0)&&b.name&&this.policyConfigurations.set(w[O].policy.name,O);!w[O].deprecationMessage&&w[O].markdownDeprecationMessage&&(w[O].deprecationMessage=w[O].markdownDeprecationMessage),h.add(O)}let D=i.allOf;if(D)for(let O of D)this.validateAndRegisterProperties(O,o,s,c,_,h)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(i){let o=s=>{let c=s.properties;if(c)for(let h in c)this.updateSchema(h,c[h]);let _=s.allOf;_?.forEach(o)};o(i)}updateSchema(i,o){switch(MZt.properties[i]=o,o.scope){case 1:RZt.properties[i]=o;break;case 2:BZt.properties[i]=o;break;case 6:jZt.properties[i]=o;break;case 3:WZt.properties[i]=o;break;case 4:t_t.properties[i]=o;break;case 5:t_t.properties[i]=o,this.resourceLanguageSettingsSchema.properties[i]=o;break}}updateOverridePropertyPatternKey(){for(let i of this.overrideIdentifiers.values()){let o=`[${i}]`,s={type:"object",description:de("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:de("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:ert};this.updatePropertyDefaultValue(o,s),MZt.properties[o]=s,RZt.properties[o]=s,BZt.properties[o]=s,jZt.properties[o]=s,WZt.properties[o]=s,t_t.properties[o]=s}}registerOverridePropertyPatternKey(){let i={type:"object",description:de("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:de("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:ert};MZt.patternProperties[qNe]=i,RZt.patternProperties[qNe]=i,BZt.patternProperties[qNe]=i,jZt.patternProperties[qNe]=i,WZt.patternProperties[qNe]=i,t_t.patternProperties[qNe]=i,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(i,o){let s=this.configurationDefaultsOverrides.get(i),c=s?.value,_=s?.source;E2(c)&&(c=o.defaultDefaultValue,_=void 0),E2(c)&&(c=z5i(o.type)),o.default=c,o.defaultValueSource=_}},Dyi="\\[([^\\]]+)\\]",Eyi=new RegExp(Dyi,"g"),qNe=`^(${Dyi})+$`,Dle=new RegExp(qNe);i_t=new zZt;q_.add(uI.Configuration,i_t)});var H5i,VZt,Ode,_w,U5i,lj=Ht(()=>{Fs();Pa();RC();Lde();UK();H5i={ModesRegistry:"editor.modesRegistry"},VZt=class{constructor(){this._onDidChangeLanguages=new fn,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(i){return this._languages.push(i),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let o=0,s=this._languages.length;oi!==""&&o!=="")}var n_t,r_t,HZt,UZt,Nyi=Ht(()=>{xQt();Znt();n_t=class{constructor(i,o){this.languageId=i;let s=o.brackets?Iyi(o.brackets):[],c=new bnt(b=>{let w=new Set;return{info:new HZt(this,b,w),closing:w}}),_=new bnt(b=>{let w=new Set,D=new Set;return{info:new UZt(this,b,w,D),opening:w,openingColorized:D}});for(let[b,w]of s){let D=c.get(b),O=_.get(w);D.closing.add(O.info),O.opening.add(D.info)}let h=o.colorizedBracketPairs?Iyi(o.colorizedBracketPairs):s.filter(b=>!(b[0]==="<"&&b[1]===">"));for(let[b,w]of h){let D=c.get(b),O=_.get(w);D.closing.add(O.info),O.openingColorized.add(D.info),O.opening.add(D.info)}this._openingBrackets=new Map([...c.cachedValues].map(([b,w])=>[b,w.info])),this._closingBrackets=new Map([..._.cachedValues].map(([b,w])=>[b,w.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(i){return this._openingBrackets.get(i)}getClosingBracketInfo(i){return this._closingBrackets.get(i)}getBracketInfo(i){return this.getOpeningBracketInfo(i)||this.getClosingBracketInfo(i)}getBracketRegExp(i){let o=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return v6e(o,i)}};r_t=class{constructor(i,o){this.config=i,this.bracketText=o}get languageId(){return this.config.languageId}},HZt=class extends r_t{constructor(i,o,s){super(i,o),this.openedBrackets=s,this.isOpeningBracket=!0}},UZt=class extends r_t{constructor(i,o,s,c){super(i,o),this.openingBrackets=s,this.openingColorizedBrackets=c,this.isOpeningBracket=!1}closes(i){return i.config!==this.config?!1:this.openingBrackets.has(i)}closesColorized(i){return i.config!==this.config?!1:this.openingColorizedBrackets.has(i)}getOpeningBrackets(){return[...this.openingBrackets]}}});function q5i(l,i,o,s){let c=i.getLanguageConfiguration(l);if(!c){if(!s.isRegisteredLanguageId(l))return new b6e(l,{});c=new b6e(l,{})}let _=$5i(c.languageId,o),h=Lyi([c.underlyingConfig,_]);return new b6e(c.languageId,h)}function $5i(l,i){let o=i.getValue(qZt.brackets,{overrideIdentifier:l}),s=i.getValue(qZt.colorizedBracketPairs,{overrideIdentifier:l});return{brackets:Pyi(o),colorizedBracketPairs:Pyi(s)}}function Pyi(l){if(Array.isArray(l))return l.map(i=>{if(!(!Array.isArray(i)||i.length!==2))return[i[0],i[1]]}).filter(i=>!!i)}function a_t(l,i,o){let s=l.getLineContent(i),c=Tm(s);return c.length>o-1&&(c=c.substring(0,o-1)),c}function Lyi(l){let i={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(let o of l)i={comments:o.comments||i.comments,brackets:o.brackets||i.brackets,wordPattern:o.wordPattern||i.wordPattern,indentationRules:o.indentationRules||i.indentationRules,onEnterRules:o.onEnterRules||i.onEnterRules,autoClosingPairs:o.autoClosingPairs||i.autoClosingPairs,surroundingPairs:o.surroundingPairs||i.surroundingPairs,autoCloseBefore:o.autoCloseBefore||i.autoCloseBefore,folding:o.folding||i.folding,colorizedBracketPairs:o.colorizedBracketPairs||i.colorizedBracketPairs,__electricCharacterSupport:o.__electricCharacterSupport||i.__electricCharacterSupport};return i}var J5i,Ayi,irt,Pf,JZt,qZt,$Zt,o_t,s_t,GZt,b6e,R1=Ht(()=>{Pa();$r();Bl();R4e();Pde();dyi();vyi();byi();Syi();Znt();kc();Rg();v2();HD();lj();Nyi();J5i=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Ayi=function(l,i){return function(o,s){i(o,s,l)}},irt=class{constructor(i){this.languageId=i}affects(i){return this.languageId?this.languageId===i:!0}},Pf=Wc("languageConfigurationService"),JZt=class extends Ui{constructor(i,o){super(),this.configurationService=i,this.languageService=o,this._registry=this._register(new GZt),this.onDidChangeEmitter=this._register(new fn),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;let s=new Set(Object.values(qZt));this._register(this.configurationService.onDidChangeConfiguration(c=>{let _=c.change.keys.some(b=>s.has(b)),h=c.change.overrides.filter(([b,w])=>w.some(D=>s.has(D))).map(([b])=>b);if(_)this.configurations.clear(),this.onDidChangeEmitter.fire(new irt(void 0));else for(let b of h)this.languageService.isRegisteredLanguageId(b)&&(this.configurations.delete(b),this.onDidChangeEmitter.fire(new irt(b)))})),this._register(this._registry.onDidChange(c=>{this.configurations.delete(c.languageId),this.onDidChangeEmitter.fire(new irt(c.languageId))}))}register(i,o,s){return this._registry.register(i,o,s)}getLanguageConfiguration(i){let o=this.configurations.get(i);return o||(o=q5i(i,this._registry,this.configurationService,this.languageService),this.configurations.set(i,o)),o}};JZt=J5i([Ayi(0,gl),Ayi(1,up)],JZt);qZt={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};$Zt=class{constructor(i){this.languageId=i,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(i,o){let s=new o_t(i,o,++this._order);return this._entries.push(s),this._resolved=null,Qs(()=>{for(let c=0;ci.configuration)))}};o_t=class{constructor(i,o,s){this.configuration=i,this.priority=o,this.order=s}static cmp(i,o){return i.priority===o.priority?i.order-o.order:i.priority-o.priority}},s_t=class{constructor(i){this.languageId=i}},GZt=class extends Ui{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new fn),this.onDidChange=this._onDidChange.event,this._register(this.register(_w,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(i,o,s=0){let c=this._entries.get(i);c||(c=new $Zt(i),this._entries.set(i,c));let _=c.register(o,s);return this._onDidChange.fire(new s_t(i)),Qs(()=>{_.dispose(),this._onDidChange.fire(new s_t(i))})}getLanguageConfiguration(i){let o=this._entries.get(i);return o?.getResolvedConfiguration()||null}},b6e=class l{constructor(i,o){this.languageId=i,this.underlyingConfig=o,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new Yft(this.underlyingConfig):null,this.comments=l._handleComments(this.underlyingConfig),this.characterPair=new m6e(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||rnt,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new Xft(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new n_t(i,this.underlyingConfig)}getWordDefinition(){return ont(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new qft(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new Gft(this.brackets)),this._electricCharacter}onEnter(i,o,s,c){return this._onEnterSupport?this._onEnterSupport.onEnter(i,o,s,c):null}getAutoClosingPairs(){return new Jft(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(i){return this.characterPair.getAutoCloseBeforeSet(i)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(i){let o=i.comments;if(!o)return null;let s={};if(o.lineComment&&(s.lineCommentToken=o.lineComment),o.blockComment){let[c,_]=o.blockComment;s.blockCommentStartToken=c,s.blockCommentEndToken=_}return s}};Ld(Pf,JZt,1)});var jG,Oyi=Ht(()=>{jG=class{constructor(i,o,s,c){this.originalStart=i,this.originalLength=o,this.modifiedStart=s,this.modifiedLength=c}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}});function Fyi(l,i,o){return new Ile(new c_t(l),new c_t(i)).ComputeDiff(o).changes}var c_t,Fde,Mde,l_t,Ile,nrt=Ht(()=>{Oyi();wde();c_t=class{constructor(i){this.source=i}getElements(){let i=this.source,o=new Int32Array(i.length);for(let s=0,c=i.length;s0||this.m_modifiedCount>0)&&this.m_changes.push(new jG(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(i,o){this.m_originalStart=Math.min(this.m_originalStart,i),this.m_modifiedStart=Math.min(this.m_modifiedStart,o),this.m_originalCount++}AddModifiedElement(i,o){this.m_originalStart=Math.min(this.m_originalStart,i),this.m_modifiedStart=Math.min(this.m_modifiedStart,o),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},Ile=class l{constructor(i,o,s=null){this.ContinueProcessingPredicate=s,this._originalSequence=i,this._modifiedSequence=o;let[c,_,h]=l._getElements(i),[b,w,D]=l._getElements(o);this._hasStrings=h&&D,this._originalStringElements=c,this._originalElementsOrHash=_,this._modifiedStringElements=b,this._modifiedElementsOrHash=w,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(i){return i.length>0&&typeof i[0]=="string"}static _getElements(i){let o=i.getElements();if(l._isStringArray(o)){let s=new Int32Array(o.length);for(let c=0,_=o.length;c<_;c++)s[c]=dft(o[c],0);return[o,s,!0]}return o instanceof Int32Array?[[],o,!1]:[[],new Int32Array(o),!1]}ElementsAreEqual(i,o){return this._originalElementsOrHash[i]!==this._modifiedElementsOrHash[o]?!1:this._hasStrings?this._originalStringElements[i]===this._modifiedStringElements[o]:!0}ElementsAreStrictEqual(i,o){if(!this.ElementsAreEqual(i,o))return!1;let s=l._getStrictElement(this._originalSequence,i),c=l._getStrictElement(this._modifiedSequence,o);return s===c}static _getStrictElement(i,o){return typeof i.getStrictElement=="function"?i.getStrictElement(o):null}OriginalElementsAreEqual(i,o){return this._originalElementsOrHash[i]!==this._originalElementsOrHash[o]?!1:this._hasStrings?this._originalStringElements[i]===this._originalStringElements[o]:!0}ModifiedElementsAreEqual(i,o){return this._modifiedElementsOrHash[i]!==this._modifiedElementsOrHash[o]?!1:this._hasStrings?this._modifiedStringElements[i]===this._modifiedStringElements[o]:!0}ComputeDiff(i){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,i)}_ComputeDiff(i,o,s,c,_){let h=[!1],b=this.ComputeDiffRecursive(i,o,s,c,h);return _&&(b=this.PrettifyChanges(b)),{quitEarly:h[0],changes:b}}ComputeDiffRecursive(i,o,s,c,_){for(_[0]=!1;i<=o&&s<=c&&this.ElementsAreEqual(i,s);)i++,s++;for(;o>=i&&c>=s&&this.ElementsAreEqual(o,c);)o--,c--;if(i>o||s>c){let j;return s<=c?(Fde.Assert(i===o+1,"originalStart should only be one more than originalEnd"),j=[new jG(i,0,s,c-s+1)]):i<=o?(Fde.Assert(s===c+1,"modifiedStart should only be one more than modifiedEnd"),j=[new jG(i,o-i+1,s,0)]):(Fde.Assert(i===o+1,"originalStart should only be one more than originalEnd"),Fde.Assert(s===c+1,"modifiedStart should only be one more than modifiedEnd"),j=[]),j}let h=[0],b=[0],w=this.ComputeRecursionPoint(i,o,s,c,h,b,_),D=h[0],O=b[0];if(w!==null)return w;if(!_[0]){let j=this.ComputeDiffRecursive(i,D,s,O,_),F=[];return _[0]?F=[new jG(D+1,o-(D+1)+1,O+1,c-(O+1)+1)]:F=this.ComputeDiffRecursive(D+1,o,O+1,c,_),this.ConcatenateChanges(j,F)}return[new jG(i,o-i+1,s,c-s+1)]}WALKTRACE(i,o,s,c,_,h,b,w,D,O,j,F,X,K,re,Pe,Le,Je){let Ye=null,ft=null,Ct=new l_t,Et=o,St=s,Mi=X[0]-Pe[0]-c,zi=-1073741824,Vr=this.m_forwardHistory.length-1;do{let sn=Mi+i;sn===Et||sn=0&&(D=this.m_forwardHistory[Vr],i=D[0],Et=1,St=D.length-1)}while(--Vr>=-1);if(Ye=Ct.getReverseChanges(),Je[0]){let sn=X[0]+1,gr=Pe[0]+1;if(Ye!==null&&Ye.length>0){let er=Ye[Ye.length-1];sn=Math.max(sn,er.getOriginalEnd()),gr=Math.max(gr,er.getModifiedEnd())}ft=[new jG(sn,F-sn+1,gr,re-gr+1)]}else{Ct=new l_t,Et=h,St=b,Mi=X[0]-Pe[0]-w,zi=1073741824,Vr=Le?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let sn=Mi+_;sn===Et||sn=O[sn+1]?(j=O[sn+1]-1,K=j-Mi-w,j>zi&&Ct.MarkNextChange(),zi=j+1,Ct.AddOriginalElement(j+1,K+1),Mi=sn+1-_):(j=O[sn-1],K=j-Mi-w,j>zi&&Ct.MarkNextChange(),zi=j,Ct.AddModifiedElement(j+1,K+1),Mi=sn-1-_),Vr>=0&&(O=this.m_reverseHistory[Vr],_=O[0],Et=1,St=O.length-1)}while(--Vr>=-1);ft=Ct.getChanges()}return this.ConcatenateChanges(Ye,ft)}ComputeRecursionPoint(i,o,s,c,_,h,b){let w=0,D=0,O=0,j=0,F=0,X=0;i--,s--,_[0]=0,h[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let K=o-i+(c-s),re=K+1,Pe=new Int32Array(re),Le=new Int32Array(re),Je=c-s,Ye=o-i,ft=i-s,Ct=o-c,St=(Ye-Je)%2===0;Pe[Je]=i,Le[Ye]=o,b[0]=!1;for(let Mi=1;Mi<=K/2+1;Mi++){let zi=0,Vr=0;O=this.ClipDiagonalBound(Je-Mi,Mi,Je,re),j=this.ClipDiagonalBound(Je+Mi,Mi,Je,re);for(let gr=O;gr<=j;gr+=2){gr===O||grzi+Vr&&(zi=w,Vr=D),!St&&Math.abs(gr-Ye)<=Mi-1&&w>=Le[gr])return _[0]=w,h[0]=D,er<=Le[gr]&&Mi<=1448?this.WALKTRACE(Je,O,j,ft,Ye,F,X,Ct,Pe,Le,w,o,_,D,c,h,St,b):null}let sn=(zi-i+(Vr-s)-Mi)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(zi,sn))return b[0]=!0,_[0]=zi,h[0]=Vr,sn>0&&Mi<=1448?this.WALKTRACE(Je,O,j,ft,Ye,F,X,Ct,Pe,Le,w,o,_,D,c,h,St,b):(i++,s++,[new jG(i,o-i+1,s,c-s+1)]);F=this.ClipDiagonalBound(Ye-Mi,Mi,Ye,re),X=this.ClipDiagonalBound(Ye+Mi,Mi,Ye,re);for(let gr=F;gr<=X;gr+=2){gr===F||gr=Le[gr+1]?w=Le[gr+1]-1:w=Le[gr-1],D=w-(gr-Ye)-Ct;let er=w;for(;w>i&&D>s&&this.ElementsAreEqual(w,D);)w--,D--;if(Le[gr]=w,St&&Math.abs(gr-Je)<=Mi&&w<=Pe[gr])return _[0]=w,h[0]=D,er>=Pe[gr]&&Mi<=1448?this.WALKTRACE(Je,O,j,ft,Ye,F,X,Ct,Pe,Le,w,o,_,D,c,h,St,b):null}if(Mi<=1447){let gr=new Int32Array(j-O+2);gr[0]=Je-O+1,Mde.Copy2(Pe,O,gr,1,j-O+1),this.m_forwardHistory.push(gr),gr=new Int32Array(X-F+2),gr[0]=Ye-F+1,Mde.Copy2(Le,F,gr,1,X-F+1),this.m_reverseHistory.push(gr)}}return this.WALKTRACE(Je,O,j,ft,Ye,F,X,Ct,Pe,Le,w,o,_,D,c,h,St,b)}PrettifyChanges(i){for(let o=0;o0,b=s.modifiedLength>0;for(;s.originalStart+s.originalLength=0;o--){let s=i[o],c=0,_=0;if(o>0){let j=i[o-1];c=j.originalStart+j.originalLength,_=j.modifiedStart+j.modifiedLength}let h=s.originalLength>0,b=s.modifiedLength>0,w=0,D=this._boundaryScore(s.originalStart,s.originalLength,s.modifiedStart,s.modifiedLength);for(let j=1;;j++){let F=s.originalStart-j,X=s.modifiedStart-j;if(FD&&(D=re,w=j)}s.originalStart-=w,s.modifiedStart-=w;let O=[null];if(o>0&&this.ChangesOverlap(i[o-1],i[o],O)){i[o-1]=O[0],i.splice(o,1),o++;continue}}if(this._hasStrings)for(let o=1,s=i.length;o0&&X>w&&(w=X,D=j,O=F)}return w>0?[D,O]:null}_contiguousSequenceScore(i,o,s){let c=0;for(let _=0;_=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[i])}_OriginalRegionIsBoundary(i,o){if(this._OriginalIsBoundary(i)||this._OriginalIsBoundary(i-1))return!0;if(o>0){let s=i+o;if(this._OriginalIsBoundary(s-1)||this._OriginalIsBoundary(s))return!0}return!1}_ModifiedIsBoundary(i){return i<=0||i>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[i])}_ModifiedRegionIsBoundary(i,o){if(this._ModifiedIsBoundary(i)||this._ModifiedIsBoundary(i-1))return!0;if(o>0){let s=i+o;if(this._ModifiedIsBoundary(s-1)||this._ModifiedIsBoundary(s))return!0}return!1}_boundaryScore(i,o,s,c){let _=this._OriginalRegionIsBoundary(i,o)?1:0,h=this._ModifiedRegionIsBoundary(s,c)?1:0;return _+h}ConcatenateChanges(i,o){let s=[];if(i.length===0||o.length===0)return o.length>0?o:i;if(this.ChangesOverlap(i[i.length-1],o[0],s)){let c=new Array(i.length+o.length-1);return Mde.Copy(i,0,c,0,i.length-1),c[i.length-1]=s[0],Mde.Copy(o,1,c,i.length,o.length-1),c}else{let c=new Array(i.length+o.length);return Mde.Copy(i,0,c,0,i.length),Mde.Copy(o,0,c,i.length,o.length),c}}ChangesOverlap(i,o,s){if(Fde.Assert(i.originalStart<=o.originalStart,"Left change is not less than or equal to right change"),Fde.Assert(i.modifiedStart<=o.modifiedStart,"Left change is not less than or equal to right change"),i.originalStart+i.originalLength>=o.originalStart||i.modifiedStart+i.modifiedLength>=o.modifiedStart){let c=i.originalStart,_=i.originalLength,h=i.modifiedStart,b=i.modifiedLength;return i.originalStart+i.originalLength>=o.originalStart&&(_=o.originalStart+o.originalLength-i.originalStart),i.modifiedStart+i.modifiedLength>=o.modifiedStart&&(b=o.modifiedStart+o.modifiedLength-i.modifiedStart),s[0]=new jG(c,_,h,b),!0}else return s[0]=null,!1}ClipDiagonalBound(i,o,s,c){if(i>=0&&i255?255:l|0}function GNe(l){return l<0?0:l>4294967295?4294967295:l|0}var rrt=Ht(()=>{});var u_t,d_t,f_t,KZt=Ht(()=>{su();rrt();u_t=class{constructor(i){this.values=i,this.prefixSum=new Uint32Array(i.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(i,o){i=GNe(i);let s=this.values,c=this.prefixSum,_=o.length;return _===0?!1:(this.values=new Uint32Array(s.length+_),this.values.set(s.subarray(0,i),0),this.values.set(s.subarray(i),i+_),this.values.set(o,i),i-1=0&&this.prefixSum.set(c.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(i,o){return i=GNe(i),o=GNe(o),this.values[i]===o?!1:(this.values[i]=o,i-1=s.length)return!1;let _=s.length-i;return o>=_&&(o=_),o===0?!1:(this.values=new Uint32Array(s.length-o),this.values.set(s.subarray(0,i),0),this.values.set(s.subarray(i+o),i),this.prefixSum=new Uint32Array(this.values.length),i-1=0&&this.prefixSum.set(c.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(i){return i<0?0:(i=GNe(i),this._getPrefixSum(i))}_getPrefixSum(i){if(i<=this.prefixSumValidIndex[0])return this.prefixSum[i];let o=this.prefixSumValidIndex[0]+1;o===0&&(this.prefixSum[0]=this.values[0],o++),i>=this.values.length&&(i=this.values.length-1);for(let s=o;s<=i;s++)this.prefixSum[s]=this.prefixSum[s-1]+this.values[s];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],i),this.prefixSum[i]}getIndexOf(i){i=Math.floor(i),this.getTotalSum();let o=0,s=this.values.length-1,c=0,_=0,h=0;for(;o<=s;)if(c=o+(s-o)/2|0,_=this.prefixSum[c],h=_-this.values[c],i=_)o=c+1;else break;return new f_t(c,i-h)}},d_t=class{constructor(i){this._values=i,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(i){return this._ensureValid(),i===0?0:this._prefixSum[i-1]}getIndexOf(i){this._ensureValid();let o=this._indexBySum[i],s=o>0?this._prefixSum[o-1]:0;return new f_t(o,i-s)}removeValues(i,o){this._values.splice(i,o),this._invalidate(i)}insertValues(i,o){this._values=ide(this._values,i,o),this._invalidate(i)}_invalidate(i){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,i-1)}_ensureValid(){if(!this._isValid){for(let i=this._validEndIndex+1,o=this._values.length;i0?this._prefixSum[i-1]:0;this._prefixSum[i]=c+s;for(let _=0;_{Bl();Ll();KZt();__t=class{constructor(i,o,s,c){this._uri=i,this._lines=o,this._eol=s,this._versionId=c,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(i){i.eol&&i.eol!==this._eol&&(this._eol=i.eol,this._lineStarts=null);let o=i.changes;for(let s of o)this._acceptDeleteRange(s.range),this._acceptInsertText(new Cn(s.range.startLineNumber,s.range.startColumn),s.text);this._versionId=i.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let i=this._eol.length,o=this._lines.length,s=new Uint32Array(o);for(let c=0;c{rrt();Nle=class l{constructor(i){let o=$Ne(i);this._defaultValue=o,this._asciiMap=l._createAsciiMap(o),this._map=new Map}static _createAsciiMap(i){let o=new Uint8Array(256);return o.fill(i),o}set(i,o){let s=$Ne(o);i>=0&&i<256?this._asciiMap[i]=s:this._map.set(i,s)}get(i){return i>=0&&i<256?this._asciiMap[i]:this._map.get(i)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}},Ale=class{constructor(){this._actual=new Nle(0)}add(i){this._actual.set(i,1)}has(i){return this._actual.get(i)===1}clear(){return this._actual.clear()}}});function G5i(){return XZt===null&&(XZt=new QZt([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),XZt}function K5i(){if(ort===null){ort=new Nle(0);let l=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let o=0;o{KNe();YZt=class{constructor(i,o,s){let c=new Uint8Array(i*o);for(let _=0,h=i*o;_o&&(o=w),b>s&&(s=b),D>s&&(s=D)}o++,s++;let c=new YZt(s,o,0);for(let _=0,h=i.length;_=this._maxCharCode?0:this._states.get(i,o)}},XZt=null;ort=null;ZZt=class l{static _createLink(i,o,s,c,_){let h=_-1;do{let b=o.charCodeAt(h);if(i.get(b)!==2)break;h--}while(h>c);if(c>0){let b=o.charCodeAt(c-1),w=o.charCodeAt(h);(b===40&&w===41||b===91&&w===93||b===123&&w===125)&&h--}return{range:{startLineNumber:s,startColumn:c+1,endLineNumber:s,endColumn:h+2},url:o.substring(c,h+1)}}static computeLinks(i,o=G5i()){let s=K5i(),c=[];for(let _=1,h=i.getLineCount();_<=h;_++){let b=i.getLineContent(_),w=b.length,D=0,O=0,j=0,F=1,X=!1,K=!1,re=!1,Pe=!1;for(;D{S6e=class{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(i,o,s,c,_){if(i&&o){let h=this.doNavigateValueSet(o,_);if(h)return{range:i,value:h}}if(s&&c){let h=this.doNavigateValueSet(c,_);if(h)return{range:s,value:h}}return null}doNavigateValueSet(i,o){let s=this.numberReplace(i,o);return s!==null?s:this.textReplace(i,o)}numberReplace(i,o){let s=Math.pow(10,i.length-(i.lastIndexOf(".")+1)),c=Number(i),_=parseFloat(i);return!isNaN(c)&&!isNaN(_)&&c===_?c===0&&!o?null:(c=Math.floor(c*s),c+=o?s:-s,String(c/s)):null}textReplace(i,o){return this.valueSetsReplace(this._defaultValueSet,i,o)}valueSetsReplace(i,o,s){let c=null;for(let _=0,h=i.length;c===null&&_=0?(c+=s?1:-1,c<0?c=i.length-1:c%=i.length,i[c]):null}};S6e.INSTANCE=new S6e});function X5i(l){return Array.isArray(l)}var Wyi,zyi,eei,B1,tei,iei,L2,p_t,Rde,UD=Ht(()=>{eei=class{constructor(i,o){this.uri=i,this.value=o}};B1=class l{constructor(i,o){if(this[Wyi]="ResourceMap",i instanceof l)this.map=new Map(i.map),this.toKey=o??l.defaultToKey;else if(X5i(i)){this.map=new Map,this.toKey=o??l.defaultToKey;for(let[s,c]of i)this.set(s,c)}else this.map=new Map,this.toKey=i??l.defaultToKey}set(i,o){return this.map.set(this.toKey(i),new eei(i,o)),this}get(i){var o;return(o=this.map.get(this.toKey(i)))===null||o===void 0?void 0:o.value}has(i){return this.map.has(this.toKey(i))}get size(){return this.map.size}clear(){this.map.clear()}delete(i){return this.map.delete(this.toKey(i))}forEach(i,o){typeof o<"u"&&(i=i.bind(o));for(let[s,c]of this.map)i(c.value,c.uri,this)}*values(){for(let i of this.map.values())yield i.value}*keys(){for(let i of this.map.values())yield i.uri}*entries(){for(let i of this.map.values())yield[i.uri,i.value]}*[(Wyi=Symbol.toStringTag,Symbol.iterator)](){for(let[,i]of this.map)yield[i.uri,i.value]}};B1.defaultToKey=l=>l.toString();tei=class{constructor(){this[zyi]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var i;return(i=this._head)===null||i===void 0?void 0:i.value}get last(){var i;return(i=this._tail)===null||i===void 0?void 0:i.value}has(i){return this._map.has(i)}get(i,o=0){let s=this._map.get(i);if(s)return o!==0&&this.touch(s,o),s.value}set(i,o,s=0){let c=this._map.get(i);if(c)c.value=o,s!==0&&this.touch(c,s);else{switch(c={key:i,value:o,next:void 0,previous:void 0},s){case 0:this.addItemLast(c);break;case 1:this.addItemFirst(c);break;case 2:this.addItemLast(c);break;default:this.addItemLast(c);break}this._map.set(i,c),this._size++}return this}delete(i){return!!this.remove(i)}remove(i){let o=this._map.get(i);if(o)return this._map.delete(i),this.removeItem(o),this._size--,o.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let i=this._head;return this._map.delete(i.key),this.removeItem(i),this._size--,i.value}forEach(i,o){let s=this._state,c=this._head;for(;c;){if(o?i.bind(o)(c.value,c.key,this):i(c.value,c.key,this),this._state!==s)throw new Error("LinkedMap got modified during iteration.");c=c.next}}keys(){let i=this,o=this._state,s=this._head,c={[Symbol.iterator](){return c},next(){if(i._state!==o)throw new Error("LinkedMap got modified during iteration.");if(s){let _={value:s.key,done:!1};return s=s.next,_}else return{value:void 0,done:!0}}};return c}values(){let i=this,o=this._state,s=this._head,c={[Symbol.iterator](){return c},next(){if(i._state!==o)throw new Error("LinkedMap got modified during iteration.");if(s){let _={value:s.value,done:!1};return s=s.next,_}else return{value:void 0,done:!0}}};return c}entries(){let i=this,o=this._state,s=this._head,c={[Symbol.iterator](){return c},next(){if(i._state!==o)throw new Error("LinkedMap got modified during iteration.");if(s){let _={value:[s.key,s.value],done:!1};return s=s.next,_}else return{value:void 0,done:!0}}};return c}[(zyi=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(i){if(i>=this.size)return;if(i===0){this.clear();return}let o=this._head,s=this.size;for(;o&&s>i;)this._map.delete(o.key),o=o.next,s--;this._head=o,this._size=s,o&&(o.previous=void 0),this._state++}trimNew(i){if(i>=this.size)return;if(i===0){this.clear();return}let o=this._tail,s=this.size;for(;o&&s>i;)this._map.delete(o.key),o=o.previous,s--;this._tail=o,this._size=s,o&&(o.next=void 0),this._state++}addItemFirst(i){if(!this._head&&!this._tail)this._tail=i;else if(this._head)i.next=this._head,this._head.previous=i;else throw new Error("Invalid list");this._head=i,this._state++}addItemLast(i){if(!this._head&&!this._tail)this._head=i;else if(this._tail)i.previous=this._tail,this._tail.next=i;else throw new Error("Invalid list");this._tail=i,this._state++}removeItem(i){if(i===this._head&&i===this._tail)this._head=void 0,this._tail=void 0;else if(i===this._head){if(!i.next)throw new Error("Invalid list");i.next.previous=void 0,this._head=i.next}else if(i===this._tail){if(!i.previous)throw new Error("Invalid list");i.previous.next=void 0,this._tail=i.previous}else{let o=i.next,s=i.previous;if(!o||!s)throw new Error("Invalid list");o.previous=s,s.next=o}i.next=void 0,i.previous=void 0,this._state++}touch(i,o){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(o!==1&&o!==2)){if(o===1){if(i===this._head)return;let s=i.next,c=i.previous;i===this._tail?(c.next=void 0,this._tail=c):(s.previous=c,c.next=s),i.previous=void 0,i.next=this._head,this._head.previous=i,this._head=i,this._state++}else if(o===2){if(i===this._tail)return;let s=i.next,c=i.previous;i===this._head?(s.previous=void 0,this._head=s):(s.previous=c,c.next=s),i.next=void 0,i.previous=this._tail,this._tail.next=i,this._tail=i,this._state++}}}toJSON(){let i=[];return this.forEach((o,s)=>{i.push([s,o])}),i}fromJSON(i){this.clear();for(let[o,s]of i)this.set(o,s)}},iei=class extends tei{constructor(i,o=1){super(),this._limit=i,this._ratio=Math.min(Math.max(0,o),1)}get limit(){return this._limit}set limit(i){this._limit=i,this.checkTrim()}get(i,o=2){return super.get(i,o)}peek(i){return super.get(i,0)}set(i,o){return super.set(i,o,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},L2=class extends iei{constructor(i,o=1){super(i,o)}trim(i){this.trimOld(i)}set(i,o){return super.set(i,o),this.checkTrim(),this}},p_t=class{constructor(i){if(this._m1=new Map,this._m2=new Map,i)for(let[o,s]of i)this.set(o,s)}clear(){this._m1.clear(),this._m2.clear()}set(i,o){this._m1.set(i,o),this._m2.set(o,i)}get(i){return this._m1.get(i)}getKey(i){return this._m2.get(i)}delete(i){let o=this._m1.get(i);return o===void 0?!1:(this._m1.delete(i),this._m2.delete(o),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}},Rde=class{constructor(){this.map=new Map}add(i,o){let s=this.map.get(i);s||(s=new Set,this.map.set(i,s)),s.add(o)}delete(i,o){let s=this.map.get(i);s&&(s.delete(o),s.size===0&&this.map.delete(i))}forEach(i,o){let s=this.map.get(i);s&&s.forEach(o)}get(i){let o=this.map.get(i);return o||new Set}}});function _P(l,i){let o=`${l}/${i.join(",")}`,s=Vyi.get(o);return s||(s=new nei(l,i),Vyi.set(o,s)),s}var nei,Vyi,x6e=Ht(()=>{UD();KNe();nei=class extends Nle{constructor(i,o){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=o,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let s=0,c=i.length;so)break;s=c}return s}findNextIntlWordAtOrAfterOffset(i,o){for(let s of this._getIntlSegmenterWordsOnLine(i))if(!(s.index{oP();(function(l){l[l.Left=1]="Left",l[l.Center=2]="Center",l[l.Right=4]="Right",l[l.Full=7]="Full"})(JD||(JD={}));(function(l){l[l.Left=1]="Left",l[l.Center=2]="Center",l[l.Right=3]="Right"})(zL||(zL={}));(function(l){l[l.Both=0]="Both",l[l.Right=1]="Right",l[l.Left=2]="Left",l[l.None=3]="None"})(VL||(VL={}));Bde=class{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(i){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,i.tabSize|0),i.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,i.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!i.insertSpaces,this.defaultEOL=i.defaultEOL|0,this.trimAutoWhitespace=!!i.trimAutoWhitespace,this.bracketPairColorizationOptions=i.bracketPairColorizationOptions}equals(i){return this.tabSize===i.tabSize&&this._indentSizeIsTabSize===i._indentSizeIsTabSize&&this.indentSize===i.indentSize&&this.insertSpaces===i.insertSpaces&&this.defaultEOL===i.defaultEOL&&this.trimAutoWhitespace===i.trimAutoWhitespace&&D2(this.bracketPairColorizationOptions,i.bracketPairColorizationOptions)}createChangeEvent(i){return{tabSize:this.tabSize!==i.tabSize,indentSize:this.indentSize!==i.indentSize,insertSpaces:this.insertSpaces!==i.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==i.trimAutoWhitespace}}},JK=class{constructor(i,o){this._findMatchBrand=void 0,this.range=i,this.matches=o}};C6e=class{constructor(i,o,s,c,_,h){this.identifier=i,this.range=o,this.text=s,this.forceMoveMarkers=c,this.isAutoWhitespaceEdit=_,this._isTracked=h}},m_t=class{constructor(i,o,s){this.regex=i,this.wordSeparators=o,this.simpleSearch=s}},h_t=class{constructor(i,o,s){this.reverseEdits=i,this.changes=o,this.trimAutoWhitespaceLineNumbers=s}}});function Z5i(l){if(!l||l.length===0)return!1;for(let i=0,o=l.length;i=o)break;let c=l.charCodeAt(i);if(c===110||c===114||c===87)return!0}}return!1}function jde(l,i,o){if(!o)return new JK(l,null);let s=[];for(let c=0,_=i.length;c<_;c++)s[c]=i[c];return new JK(l,s)}function e9i(l,i,o,s,c){if(s===0)return!0;let _=i.charCodeAt(s-1);if(l.get(_)!==0||_===13||_===10)return!0;if(c>0){let h=i.charCodeAt(s);if(l.get(h)!==0)return!0}return!1}function t9i(l,i,o,s,c){if(s+c===o)return!0;let _=i.charCodeAt(s+c);if(l.get(_)!==0||_===13||_===10)return!0;if(c>0){let h=i.charCodeAt(s+c-1);if(l.get(h)!==0)return!0}return!1}function v_t(l,i,o,s,c){return e9i(l,i,o,s,c)&&t9i(l,i,o,s,c)}var Q5i,WG,y_t,XNe,qK,srt=Ht(()=>{Bl();x6e();Ll();ca();b2();Q5i=999,WG=class{constructor(i,o,s,c){this.searchString=i,this.isRegex=o,this.matchCase=s,this.wordSeparators=c}parseSearchRequest(){if(this.searchString==="")return null;let i;this.isRegex?i=Z5i(this.searchString):i=this.searchString.indexOf(` +`)>=0;let o=null;try{o=jdt(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:i,global:!0,unicode:!0})}catch{return null}if(!o)return null;let s=!this.isRegex&&!i;return s&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(s=this.matchCase),new m_t(o,this.wordSeparators?_P(this.wordSeparators,[]):null,s?this.searchString:null)}};y_t=class{constructor(i){let o=[],s=0;for(let c=0,_=i.length;c<_;c++)i.charCodeAt(c)===10&&(o[s++]=c);this._lineFeedsOffsets=o}findLineFeedCountBeforeOffset(i){let o=this._lineFeedsOffsets,s=0,c=o.length-1;if(c===-1||i<=o[0])return 0;for(;s>0);o[_]>=i?c=_-1:o[_+1]>=i?(s=_,c=_):s=_+1}return s+1}},XNe=class{static findMatches(i,o,s,c,_){let h=o.parseSearchRequest();return h?h.regex.multiline?this._doFindMatchesMultiline(i,s,new qK(h.wordSeparators,h.regex),c,_):this._doFindMatchesLineByLine(i,s,h,c,_):[]}static _getMultilineMatchRange(i,o,s,c,_,h){let b,w=0;c?(w=c.findLineFeedCountBeforeOffset(_),b=o+_+w):b=o+_;let D;if(c){let X=c.findLineFeedCountBeforeOffset(_+h.length)-w;D=b+h.length+X}else D=b+h.length;let O=i.getPositionAt(b),j=i.getPositionAt(D);return new Vt(O.lineNumber,O.column,j.lineNumber,j.column)}static _doFindMatchesMultiline(i,o,s,c,_){let h=i.getOffsetAt(o.getStartPosition()),b=i.getValueInRange(o,1),w=i.getEOL()===`\r +`?new y_t(b):null,D=[],O=0,j;for(s.reset(0);j=s.next(b);)if(D[O++]=jde(this._getMultilineMatchRange(i,h,b,w,j.index,j[0]),j,c),O>=_)return D;return D}static _doFindMatchesLineByLine(i,o,s,c,_){let h=[],b=0;if(o.startLineNumber===o.endLineNumber){let D=i.getLineContent(o.startLineNumber).substring(o.startColumn-1,o.endColumn-1);return b=this._findMatchesInLine(s,D,o.startLineNumber,o.startColumn-1,b,h,c,_),h}let w=i.getLineContent(o.startLineNumber).substring(o.startColumn-1);b=this._findMatchesInLine(s,w,o.startLineNumber,o.startColumn-1,b,h,c,_);for(let D=o.startLineNumber+1;D=w))return _;return _}let O=new qK(i.wordSeparators,i.regex),j;O.reset(0);do if(j=O.next(o),j&&(h[_++]=jde(new Vt(s,j.index+1+c,s,j.index+1+j[0].length+c),j,b),_>=w))return _;while(j);return _}static findNextMatch(i,o,s,c){let _=o.parseSearchRequest();if(!_)return null;let h=new qK(_.wordSeparators,_.regex);return _.regex.multiline?this._doFindNextMatchMultiline(i,s,h,c):this._doFindNextMatchLineByLine(i,s,h,c)}static _doFindNextMatchMultiline(i,o,s,c){let _=new Cn(o.lineNumber,1),h=i.getOffsetAt(_),b=i.getLineCount(),w=i.getValueInRange(new Vt(_.lineNumber,_.column,b,i.getLineMaxColumn(b)),1),D=i.getEOL()===`\r +`?new y_t(w):null;s.reset(o.column-1);let O=s.next(w);return O?jde(this._getMultilineMatchRange(i,h,w,D,O.index,O[0]),O,c):o.lineNumber!==1||o.column!==1?this._doFindNextMatchMultiline(i,new Cn(1,1),s,c):null}static _doFindNextMatchLineByLine(i,o,s,c){let _=i.getLineCount(),h=o.lineNumber,b=i.getLineContent(h),w=this._findFirstMatchInLine(s,b,h,o.column,c);if(w)return w;for(let D=1;D<=_;D++){let O=(h+D-1)%_,j=i.getLineContent(O+1),F=this._findFirstMatchInLine(s,j,O+1,1,c);if(F)return F}return null}static _findFirstMatchInLine(i,o,s,c,_){i.reset(c-1);let h=i.next(o);return h?jde(new Vt(s,h.index+1,s,h.index+1+h[0].length),h,_):null}static findPreviousMatch(i,o,s,c){let _=o.parseSearchRequest();if(!_)return null;let h=new qK(_.wordSeparators,_.regex);return _.regex.multiline?this._doFindPreviousMatchMultiline(i,s,h,c):this._doFindPreviousMatchLineByLine(i,s,h,c)}static _doFindPreviousMatchMultiline(i,o,s,c){let _=this._doFindMatchesMultiline(i,new Vt(1,1,o.lineNumber,o.column),s,c,10*Q5i);if(_.length>0)return _[_.length-1];let h=i.getLineCount();return o.lineNumber!==h||o.column!==i.getLineMaxColumn(h)?this._doFindPreviousMatchMultiline(i,new Cn(h,i.getLineMaxColumn(h)),s,c):null}static _doFindPreviousMatchLineByLine(i,o,s,c){let _=i.getLineCount(),h=o.lineNumber,b=i.getLineContent(h).substring(0,o.column-1),w=this._findLastMatchInLine(s,b,h,c);if(w)return w;for(let D=1;D<=_;D++){let O=(_+h-D-1)%_,j=i.getLineContent(O+1),F=this._findLastMatchInLine(s,j,O+1,c);if(F)return F}return null}static _findLastMatchInLine(i,o,s,c){let _=null,h;for(i.reset(0);h=i.next(o);)_=jde(new Vt(s,h.index+1,s,h.index+1+h[0].length),h,c);return _}};qK=class{constructor(i,o){this._wordSeparators=i,this._searchRegex=o,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(i){this._searchRegex.lastIndex=i,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(i){let o=i.length,s;do{if(this._prevMatchStartIndex+this._prevMatchLength===o||(s=this._searchRegex.exec(i),!s))return null;let c=s.index,_=s[0].length;if(c===this._prevMatchStartIndex&&_===this._prevMatchLength){if(_===0){Q4e(i,o,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=c,this._prevMatchLength=_,!this._wordSeparators||v_t(this._wordSeparators,i,o,c,_))return s}while(s);return null}}});function i9i(l,i){return`[${Cw(l.map(s=>String.fromCodePoint(s)).join(""))}]`}function Uyi(l){return l===" "||l===` +`||l===" "}var YNe,b_t,rei=Ht(()=>{ca();srt();Bl();Yj();R4e();YNe=class{static computeUnicodeHighlights(i,o,s){let c=s?s.startLineNumber:1,_=s?s.endLineNumber:i.getLineCount(),h=new b_t(o),b=h.getCandidateCodePoints(),w;b==="allNonBasicAscii"?w=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):w=new RegExp(`${i9i(Array.from(b))}`,"g");let D=new qK(null,w),O=[],j=!1,F,X=0,K=0,re=0;e:for(let Pe=c,Le=_;Pe<=Le;Pe++){let Je=i.getLineContent(Pe),Ye=Je.length;D.reset(0);do if(F=D.next(Je),F){let ft=F.index,Ct=F.index+F[0].length;if(ft>0){let zi=Je.charCodeAt(ft-1);E1(zi)&&ft--}if(Ct+1=1e3){j=!0;break e}O.push(new Vt(Pe,ft+1,Pe,Ct+1))}}while(F)}return{ranges:O,hasMore:j,ambiguousCharacterCount:X,invisibleCharacterCount:K,nonBasicAsciiCharacterCount:re}}static computeUnicodeHighlightReason(i,o){let s=new b_t(o);switch(s.shouldHighlightNonBasicASCII(i,null)){case 0:return null;case 2:return{kind:1};case 3:{let _=i.codePointAt(0),h=s.ambiguousCharacters.getPrimaryConfusable(_),b=OK.getLocales().filter(w=>!OK.getInstance(new Set([...o.allowedLocales,w])).isAmbiguous(_));return{kind:0,confusableWith:String.fromCodePoint(h),notAmbiguousInLocales:b}}case 1:return{kind:2}}}};b_t=class{constructor(i){this.options=i,this.allowedCodePoints=new Set(i.allowedCodePoints),this.ambiguousCharacters=OK.getInstance(new Set(i.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let i=new Set;if(this.options.invisibleCharacters)for(let o of FK.codePoints)Uyi(String.fromCodePoint(o))||i.add(o);if(this.options.ambiguousCharacters)for(let o of this.ambiguousCharacters.getConfusableCodePoints())i.add(o);for(let o of this.allowedCodePoints)i.delete(o);return i}shouldHighlightNonBasicASCII(i,o){let s=i.codePointAt(0);if(this.allowedCodePoints.has(s))return 0;if(this.options.nonBasicASCII)return 1;let c=!1,_=!1;if(o)for(let h of o){let b=h.codePointAt(0),w=RK(h);c=c||w,!w&&!this.ambiguousCharacters.isAmbiguous(b)&&!FK.isInvisibleCharacter(b)&&(_=!0)}return!c&&_?0:this.options.invisibleCharacters&&!Uyi(i)&&FK.isInvisibleCharacter(s)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(s)?3:0}}});var Wde,k6e,S_t=Ht(()=>{Wde=class{constructor(i,o,s){this.changes=i,this.moves=o,this.hitTimeout=s}},k6e=class{constructor(i,o){this.lineRangeMapping=i,this.changes=o}}});var Wd,x_t,HL=Ht(()=>{Pl();Wd=class l{static addRange(i,o){let s=0;for(;so))return new l(i,o)}static ofLength(i){return new l(0,i)}static ofStartAndLength(i,o){return new l(i,i+o)}constructor(i,o){if(this.start=i,this.endExclusive=o,i>o)throw new C_(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(i){return new l(this.start+i,this.endExclusive+i)}deltaStart(i){return new l(this.start+i,this.endExclusive)}deltaEnd(i){return new l(this.start,this.endExclusive+i)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(i){return this.start<=i&&i=i.endExclusive}slice(i){return i.slice(this.start,this.endExclusive)}substring(i){return i.substring(this.start,this.endExclusive)}clip(i){if(this.isEmpty)throw new C_(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,i))}clipCyclic(i){if(this.isEmpty)throw new C_(`Invalid clipping range: ${this.toString()}`);return i=this.endExclusive?this.start+(i-this.start)%this.length:i}forEach(i){for(let o=this.start;oi.toString()).join(", ")}intersectsStrict(i){let o=0;for(;oi+o.length,0)}}});function Ple(l,i){let o=n9i(l,i);if(o!==-1)return l[o]}function n9i(l,i,o=l.length-1){for(let s=o;s>=0;s--){let c=l[s];if(i(c))return s}return-1}function Lle(l,i){let o=QNe(l,i);return o===-1?void 0:l[o]}function QNe(l,i,o=0,s=l.length){let c=o,_=s;for(;c<_;){let h=Math.floor((c+_)/2);i(l[h])?c=h+1:_=h}return c-1}function Jyi(l,i){let o=zde(l,i);return o===l.length?void 0:l[o]}function zde(l,i,o=0,s=l.length){let c=o,_=s;for(;c<_;){let h=Math.floor((c+_)/2);i(l[h])?_=h:c=h+1}return c}function art(l,i){if(l.length===0)return;let o=l[0];for(let s=1;s0&&(o=c)}return o}function qyi(l,i){if(l.length===0)return;let o=l[0];for(let s=1;s=0&&(o=c)}return o}function $yi(l,i){return art(l,(o,s)=>-i(o,s))}function Gyi(l,i){if(l.length===0)return-1;let o=0;for(let s=1;s0&&(o=s)}return o}function Kyi(l,i){for(let o of l){let s=i(o);if(s!==void 0)return s}}var w6e,VF=Ht(()=>{w6e=class l{constructor(i){this._array=i,this._findLastMonotonousLastIdx=0}findLastMonotonous(i){if(l.assertInvariants){if(this._prevFindLastPredicate){for(let s of this._array)if(this._prevFindLastPredicate(s)&&!i(s))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=i}let o=QNe(this._array,i,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=o+1,o===-1?void 0:this._array[o]}};w6e.assertInvariants=!1});var Iu,uj,lL=Ht(()=>{Pl();HL();ca();VF();Iu=class l{static fromRangeInclusive(i){return new l(i.startLineNumber,i.endLineNumber+1)}static joinMany(i){if(i.length===0)return[];let o=new uj(i[0].slice());for(let s=1;so)throw new C_(`startLineNumber ${i} cannot be after endLineNumberExclusive ${o}`);this.startLineNumber=i,this.endLineNumberExclusive=o}contains(i){return this.startLineNumber<=i&&ic.endLineNumberExclusive>=i.startLineNumber),s=QNe(this._normalizedRanges,c=>c.startLineNumber<=i.endLineNumberExclusive)+1;if(o===s)this._normalizedRanges.splice(o,0,i);else if(o===s-1){let c=this._normalizedRanges[o];this._normalizedRanges[o]=c.join(i)}else{let c=this._normalizedRanges[o].join(this._normalizedRanges[s-1]).join(i);this._normalizedRanges.splice(o,s-o,c)}}contains(i){let o=Lle(this._normalizedRanges,s=>s.startLineNumber<=i);return!!o&&o.endLineNumberExclusive>i}intersects(i){let o=Lle(this._normalizedRanges,s=>s.startLineNumberi.startLineNumber}getUnion(i){if(this._normalizedRanges.length===0)return i;if(i._normalizedRanges.length===0)return this;let o=[],s=0,c=0,_=null;for(;s=h.startLineNumber?_=new Iu(_.startLineNumber,Math.max(_.endLineNumberExclusive,h.endLineNumberExclusive)):(o.push(_),_=h)}return _!==null&&o.push(_),new l(o)}subtractFrom(i){let o=zde(this._normalizedRanges,h=>h.endLineNumberExclusive>=i.startLineNumber),s=QNe(this._normalizedRanges,h=>h.startLineNumber<=i.endLineNumberExclusive)+1;if(o===s)return new l([i]);let c=[],_=i.startLineNumber;for(let h=o;h_&&c.push(new Iu(_,b.startLineNumber)),_=b.endLineNumberExclusive}return _i.toString()).join(", ")}getIntersection(i){let o=[],s=0,c=0;for(;so.delta(i)))}}});var O2,Ole=Ht(()=>{Ll();ca();O2=class l{static betweenPositions(i,o){return i.lineNumber===o.lineNumber?new l(0,o.column-i.column):new l(o.lineNumber-i.lineNumber,o.column-1)}static ofRange(i){return l.betweenPositions(i.getStartPosition(),i.getEndPosition())}static ofText(i){let o=0,s=0;for(let c of i)c===` +`?(o++,s=0):s++;return new l(o,s)}constructor(i,o){this.lineCount=i,this.columnCount=o}isGreaterThanOrEqualTo(i){return this.lineCount!==i.lineCount?this.lineCount>i.lineCount:this.columnCount>=i.columnCount}createRange(i){return this.lineCount===0?new Vt(i.lineNumber,i.column,i.lineNumber,i.column+this.columnCount):new Vt(i.lineNumber,i.column,i.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(i){return this.lineCount===0?new Cn(i.lineNumber,i.column+this.columnCount):new Cn(i.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};O2.zero=new O2(0,0)});var C_t,Xyi=Ht(()=>{HL();Ole();C_t=class{constructor(i){this.text=i,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let o=0;o{Yj();Pl();Ll();Xyi();ca();Ole();Vde=class{constructor(i){this.edits=i,Xj(()=>_6e(i,(o,s)=>o.range.getEndPosition().isBeforeOrEqual(s.range.getStartPosition())))}apply(i){let o="",s=new Cn(1,1);for(let _ of this.edits){let h=_.range,b=h.getStartPosition(),w=h.getEndPosition(),D=Yyi(s,b);D.isEmpty()||(o+=i.getValueOfRange(D)),o+=_.text,s=w}let c=Yyi(s,i.endPositionExclusive);return c.isEmpty()||(o+=i.getValueOfRange(c)),o}applyToString(i){let o=new oei(i);return this.apply(o)}getNewRanges(){let i=[],o=0,s=0,c=0;for(let _ of this.edits){let h=O2.ofText(_.text),b=Cn.lift({lineNumber:_.range.startLineNumber+s,column:_.range.startColumn+(_.range.startLineNumber===o?c:0)}),w=h.createRange(b);i.push(w),s=w.endLineNumber-_.range.endLineNumber,c=w.endColumn-_.range.endColumn,o=_.range.endLineNumber}return i}},uL=class{constructor(i,o){this.range=i,this.text=o}};crt=class{get endPositionExclusive(){return this.length.addToPosition(new Cn(1,1))}},oei=class extends crt{constructor(i){super(),this.value=i,this._t=new C_t(this.value)}getValueOfRange(i){return this._t.getOffsetRange(i).substring(this.value)}get length(){return this._t.textLength}}});var pP,mP,UL,$K=Ht(()=>{Pl();lL();ca();Fle();pP=class l{static inverse(i,o,s){let c=[],_=1,h=1;for(let w of i){let D=new l(new Iu(_,w.original.startLineNumber),new Iu(h,w.modified.startLineNumber));D.modified.isEmpty||c.push(D),_=w.original.endLineNumberExclusive,h=w.modified.endLineNumberExclusive}let b=new l(new Iu(_,o+1),new Iu(h,s+1));return b.modified.isEmpty||c.push(b),c}static clip(i,o,s){let c=[];for(let _ of i){let h=_.original.intersect(o),b=_.modified.intersect(s);h&&!h.isEmpty&&b&&!b.isEmpty&&c.push(new l(h,b))}return c}constructor(i,o){this.original=i,this.modified=o}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new l(this.modified,this.original)}join(i){return new l(this.original.join(i.original),this.modified.join(i.modified))}toRangeMapping(){let i=this.original.toInclusiveRange(),o=this.modified.toInclusiveRange();if(i&&o)return new UL(i,o);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new C_("not a valid diff");return new UL(new Vt(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Vt(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new UL(new Vt(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Vt(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}},mP=class l extends pP{static fromRangeMappings(i){let o=Iu.join(i.map(c=>Iu.fromRangeInclusive(c.originalRange))),s=Iu.join(i.map(c=>Iu.fromRangeInclusive(c.modifiedRange)));return new l(o,s,i)}constructor(i,o,s){super(i,o),this.innerChanges=s}flip(){var i;return new l(this.modified,this.original,(i=this.innerChanges)===null||i===void 0?void 0:i.map(o=>o.flip()))}withInnerChangesFromLineRanges(){return new l(this.original,this.modified,[this.toRangeMapping()])}},UL=class l{constructor(i,o){this.originalRange=i,this.modifiedRange=o}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new l(this.modifiedRange,this.originalRange)}toTextEdit(i){let o=i.getValueOfRange(this.modifiedRange);return new uL(this.originalRange,o)}}});function Zyi(l,i,o,s){return new Ile(l,i,o).ComputeDiff(s)}function o9i(l){if(l.length<=1)return l;let i=[l[0]],o=i[0];for(let s=1,c=l.length;s!0;let i=Date.now();return()=>Date.now()-i{nrt();S_t();$K();Bl();ca();Yj();lL();r9i=3,k_t=class{computeDiff(i,o,s){var c;let h=new aei(i,o,{maxComputationTime:s.maxComputationTimeMs,shouldIgnoreTrimWhitespace:s.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),b=[],w=null;for(let D of h.changes){let O;D.originalEndLineNumber===0?O=new Iu(D.originalStartLineNumber+1,D.originalStartLineNumber+1):O=new Iu(D.originalStartLineNumber,D.originalEndLineNumber+1);let j;D.modifiedEndLineNumber===0?j=new Iu(D.modifiedStartLineNumber+1,D.modifiedStartLineNumber+1):j=new Iu(D.modifiedStartLineNumber,D.modifiedEndLineNumber+1);let F=new mP(O,j,(c=D.charChanges)===null||c===void 0?void 0:c.map(X=>new UL(new Vt(X.originalStartLineNumber,X.originalStartColumn,X.originalEndLineNumber,X.originalEndColumn),new Vt(X.modifiedStartLineNumber,X.modifiedStartColumn,X.modifiedEndLineNumber,X.modifiedEndColumn))));w&&(w.modified.endLineNumberExclusive===F.modified.startLineNumber||w.original.endLineNumberExclusive===F.original.startLineNumber)&&(F=new mP(w.original.join(F.original),w.modified.join(F.modified),w.innerChanges&&F.innerChanges?w.innerChanges.concat(F.innerChanges):void 0),b.pop()),b.push(F),w=F}return Xj(()=>_6e(b,(D,O)=>O.original.startLineNumber-D.original.endLineNumberExclusive===O.modified.startLineNumber-D.modified.endLineNumberExclusive&&D.original.endLineNumberExclusive(i===10?"\\n":String.fromCharCode(i))+`-(${this._lineNumbers[o]},${this._columns[o]})`).join(", ")+"]"}_assertIndex(i,o){if(i<0||i>=o.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(i){return i>0&&i===this._lineNumbers.length?this.getEndLineNumber(i-1):(this._assertIndex(i,this._lineNumbers),this._lineNumbers[i])}getEndLineNumber(i){return i===-1?this.getStartLineNumber(i+1):(this._assertIndex(i,this._lineNumbers),this._charCodes[i]===10?this._lineNumbers[i]+1:this._lineNumbers[i])}getStartColumn(i){return i>0&&i===this._columns.length?this.getEndColumn(i-1):(this._assertIndex(i,this._columns),this._columns[i])}getEndColumn(i){return i===-1?this.getStartColumn(i+1):(this._assertIndex(i,this._columns),this._charCodes[i]===10?1:this._columns[i]+1)}},T6e=class l{constructor(i,o,s,c,_,h,b,w){this.originalStartLineNumber=i,this.originalStartColumn=o,this.originalEndLineNumber=s,this.originalEndColumn=c,this.modifiedStartLineNumber=_,this.modifiedStartColumn=h,this.modifiedEndLineNumber=b,this.modifiedEndColumn=w}static createFromDiffChange(i,o,s){let c=o.getStartLineNumber(i.originalStart),_=o.getStartColumn(i.originalStart),h=o.getEndLineNumber(i.originalStart+i.originalLength-1),b=o.getEndColumn(i.originalStart+i.originalLength-1),w=s.getStartLineNumber(i.modifiedStart),D=s.getStartColumn(i.modifiedStart),O=s.getEndLineNumber(i.modifiedStart+i.modifiedLength-1),j=s.getEndColumn(i.modifiedStart+i.modifiedLength-1);return new l(c,_,h,b,w,D,O,j)}};lrt=class l{constructor(i,o,s,c,_){this.originalStartLineNumber=i,this.originalEndLineNumber=o,this.modifiedStartLineNumber=s,this.modifiedEndLineNumber=c,this.charChanges=_}static createFromDiffResult(i,o,s,c,_,h,b){let w,D,O,j,F;if(o.originalLength===0?(w=s.getStartLineNumber(o.originalStart)-1,D=0):(w=s.getStartLineNumber(o.originalStart),D=s.getEndLineNumber(o.originalStart+o.originalLength-1)),o.modifiedLength===0?(O=c.getStartLineNumber(o.modifiedStart)-1,j=0):(O=c.getStartLineNumber(o.modifiedStart),j=c.getEndLineNumber(o.modifiedStart+o.modifiedLength-1)),h&&o.originalLength>0&&o.originalLength<20&&o.modifiedLength>0&&o.modifiedLength<20&&_()){let X=s.createCharSequence(i,o.originalStart,o.originalStart+o.originalLength-1),K=c.createCharSequence(i,o.modifiedStart,o.modifiedStart+o.modifiedLength-1);if(X.getElements().length>0&&K.getElements().length>0){let re=Zyi(X,K,_,!0).changes;b&&(re=o9i(re)),F=[];for(let Pe=0,Le=re.length;Pe1&&re>1;){let Pe=F.charCodeAt(K-2),Le=X.charCodeAt(re-2);if(Pe!==Le)break;K--,re--}(K>1||re>1)&&this._pushTrimWhitespaceCharChange(c,_+1,1,K,h+1,1,re)}{let K=lei(F,1),re=lei(X,1),Pe=F.length+1,Le=X.length+1;for(;K{su();Pl();HL();GK=class l{static trivial(i,o){return new l([new qD(Wd.ofLength(i.length),Wd.ofLength(o.length))],!1)}static trivialTimedOut(i,o){return new l([new qD(Wd.ofLength(i.length),Wd.ofLength(o.length))],!0)}constructor(i,o){this.diffs=i,this.hitTimeout=o}},qD=class l{static invert(i,o){let s=[];return uut(i,(c,_)=>{s.push(l.fromOffsetPairs(c?c.getEndExclusives():x7.zero,_?_.getStarts():new x7(o,(c?c.seq2Range.endExclusive-c.seq1Range.endExclusive:0)+o)))}),s}static fromOffsetPairs(i,o){return new l(new Wd(i.offset1,o.offset1),new Wd(i.offset2,o.offset2))}constructor(i,o){this.seq1Range=i,this.seq2Range=o}swap(){return new l(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(i){return new l(this.seq1Range.join(i.seq1Range),this.seq2Range.join(i.seq2Range))}delta(i){return i===0?this:new l(this.seq1Range.delta(i),this.seq2Range.delta(i))}deltaStart(i){return i===0?this:new l(this.seq1Range.deltaStart(i),this.seq2Range.deltaStart(i))}deltaEnd(i){return i===0?this:new l(this.seq1Range.deltaEnd(i),this.seq2Range.deltaEnd(i))}intersect(i){let o=this.seq1Range.intersect(i.seq1Range),s=this.seq2Range.intersect(i.seq2Range);if(!(!o||!s))return new l(o,s)}getStarts(){return new x7(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new x7(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},x7=class l{constructor(i,o){this.offset1=i,this.offset2=o}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(i){return i===0?this:new l(this.offset1+i,this.offset2+i)}equals(i){return this.offset1===i.offset1&&this.offset2===i.offset2}};x7.zero=new x7(0,0);x7.max=new x7(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);KK=class{isValid(){return!0}};KK.instance=new KK;T_t=class{constructor(i){if(this.timeout=i,this.startTime=Date.now(),this.valid=!0,i<=0)throw new C_("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime{D6e=class{constructor(i,o){this.width=i,this.height=o,this.array=[],this.array=new Array(i*o)}get(i,o){return this.array[i+o*this.width]}set(i,o,s){this.array[i+o*this.width]=s}};I6e=class l{static getKey(i){let o=this.chrKeys.get(i);return o===void 0&&(o=this.chrKeys.size,this.chrKeys.set(i,o)),o}constructor(i,o,s){this.range=i,this.lines=o,this.source=s,this.histogram=[];let c=0;for(let _=i.startLineNumber-1;_{HL();E6e();E_t();D_t=class{compute(i,o,s=KK.instance,c){if(i.length===0||o.length===0)return GK.trivial(i,o);let _=new D6e(i.length,o.length),h=new D6e(i.length,o.length),b=new D6e(i.length,o.length);for(let K=0;K0&&re>0&&h.get(K-1,re-1)===3&&(Je+=b.get(K-1,re-1)),Je+=c?c(K,re):1):Je=-1;let Ye=Math.max(Pe,Le,Je);if(Ye===Je){let ft=K>0&&re>0?b.get(K-1,re-1):0;b.set(K,re,ft+1),h.set(K,re,3)}else Ye===Pe?(b.set(K,re,0),h.set(K,re,1)):Ye===Le&&(b.set(K,re,0),h.set(K,re,2));_.set(K,re,Ye)}let w=[],D=i.length,O=o.length;function j(K,re){(K+1!==D||re+1!==O)&&w.push(new qD(new Wd(K+1,D),new Wd(re+1,O))),D=K,O=re}let F=i.length-1,X=o.length-1;for(;F>=0&&X>=0;)h.get(F,X)===3?(j(F,X),F--,X--):h.get(F,X)===1?F--:X--;return j(-1,-1),w.reverse(),new GK(w,!1)}}});var N6e,I_t,uei,dei,fei=Ht(()=>{HL();E6e();N6e=class{compute(i,o,s=KK.instance){if(i.length===0||o.length===0)return GK.trivial(i,o);let c=i,_=o;function h(re,Pe){for(;rec.length||Ct>_.length)continue;let Et=h(ft,Ct);w.set(O,Et);let St=ft===Je?D.get(O+1):D.get(O-1);if(D.set(O,Et!==ft?new I_t(St,ft,Ct,Et-ft):St),w.get(O)===c.length&&w.get(O)-O===_.length)break e}}let j=D.get(O),F=[],X=c.length,K=_.length;for(;;){let re=j?j.x+j.length:0,Pe=j?j.y+j.length:0;if((re!==X||Pe!==K)&&F.push(new qD(new Wd(re,X),new Wd(Pe,K))),!j)break;X=j.x,K=j.y,j=j.prev}return F.reverse(),new GK(F,!1)}},I_t=class{constructor(i,o,s,c){this.prev=i,this.x=o,this.y=s,this.length=c}},uei=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(i){return i<0?(i=-i-1,this.negativeArr[i]):this.positiveArr[i]}set(i,o){if(i<0){if(i=-i-1,i>=this.negativeArr.length){let s=this.negativeArr;this.negativeArr=new Int32Array(s.length*2),this.negativeArr.set(s)}this.negativeArr[i]=o}else{if(i>=this.positiveArr.length){let s=this.positiveArr;this.positiveArr=new Int32Array(s.length*2),this.positiveArr.set(s)}this.positiveArr[i]=o}}},dei=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(i){return i<0?(i=-i-1,this.negativeArr[i]):this.positiveArr[i]}set(i,o){i<0?(i=-i-1,this.negativeArr[i]=o):this.positiveArr[i]=o}}});function _ei(l){return l>=97&&l<=122||l>=65&&l<=90||l>=48&&l<=57}function ivi(l){return s9i[l]}function nvi(l){return l===10?8:l===13?7:urt(l)?6:l>=97&&l<=122?0:l>=65&&l<=90?1:l>=48&&l<=57?2:l===-1?3:l===44||l===59?5:4}var Hde,s9i,pei=Ht(()=>{VF();HL();Ll();ca();E_t();Hde=class{constructor(i,o,s){this.lines=i,this.considerWhitespaceChanges=s,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let c=!1;o.start>0&&o.endExclusive>=i.length&&(o=new Wd(o.start-1,o.endExclusive),c=!0),this.lineRange=o,this.firstCharOffsetByLine[0]=0;for(let _=this.lineRange.start;_String.fromCharCode(o)).join("")}getElement(i){return this.elements[i]}get length(){return this.elements.length}getBoundaryScore(i){let o=nvi(i>0?this.elements[i-1]:-1),s=nvi(is<=i);return new Cn(this.lineRange.start+o+1,i-this.firstCharOffsetByLine[o]+this.additionalOffsetByLine[o]+1)}translateRange(i){return Vt.fromPositions(this.translateOffset(i.start),this.translateOffset(i.endExclusive))}findWordContaining(i){if(i<0||i>=this.elements.length||!_ei(this.elements[i]))return;let o=i;for(;o>0&&_ei(this.elements[o-1]);)o--;let s=i;for(;sh<=i.start))!==null&&o!==void 0?o:0,_=(s=Jyi(this.firstCharOffsetByLine,h=>i.endExclusive<=h))!==null&&s!==void 0?s:this.elements.length;return new Wd(c,_)}};s9i={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10}});function ovi(l,i,o,s,c,_){let{moves:h,excludedChanges:b}=c9i(l,i,o,_);if(!_.isValid())return[];let w=l.filter(O=>!b.has(O)),D=l9i(w,s,c,i,o,_);return Zit(h,D),h=u9i(h),h=h.filter(O=>{let j=O.original.toOffsetRange().slice(i).map(X=>X.trim());return j.join(` +`).length>=15&&a9i(j,X=>X.length>=2)>=2}),h=d9i(l,h),h}function a9i(l,i){let o=0;for(let s of l)i(s)&&o++;return o}function c9i(l,i,o,s){let c=[],_=l.filter(w=>w.modified.isEmpty&&w.original.length>=3).map(w=>new I6e(w.original,i,w)),h=new Set(l.filter(w=>w.original.isEmpty&&w.modified.length>=3).map(w=>new I6e(w.modified,o,w))),b=new Set;for(let w of _){let D=-1,O;for(let j of h){let F=w.computeSimilarity(j);F>D&&(D=F,O=j)}if(D>.9&&O&&(h.delete(O),c.push(new pP(w.range,O.range)),b.add(w.source),b.add(O.source)),!s.isValid())return{moves:c,excludedChanges:b}}return{moves:c,excludedChanges:b}}function l9i(l,i,o,s,c,_){let h=[],b=new Rde;for(let F of l)for(let X=F.original.startLineNumber;XF.modified.startLineNumber,rP));for(let F of l){let X=[];for(let K=F.modified.startLineNumber;K{for(let ft of X)if(ft.originalLineRange.endLineNumberExclusive+1===Je.endLineNumberExclusive&&ft.modifiedLineRange.endLineNumberExclusive+1===Pe.endLineNumberExclusive){ft.originalLineRange=new Iu(ft.originalLineRange.startLineNumber,Je.endLineNumberExclusive),ft.modifiedLineRange=new Iu(ft.modifiedLineRange.startLineNumber,Pe.endLineNumberExclusive),Le.push(ft);return}let Ye={modifiedLineRange:Pe,originalLineRange:Je};w.push(Ye),Le.push(Ye)}),X=Le}if(!_.isValid())return[]}w.sort(_ut(Sw(F=>F.modifiedLineRange.length,rP)));let D=new uj,O=new uj;for(let F of w){let X=F.modifiedLineRange.startLineNumber-F.originalLineRange.startLineNumber,K=D.subtractFrom(F.modifiedLineRange),re=O.subtractFrom(F.originalLineRange).getWithDelta(X),Pe=K.getIntersection(re);for(let Le of Pe.ranges){if(Le.length<3)continue;let Je=Le,Ye=Le.delta(-X);h.push(new pP(Ye,Je)),D.addRange(Je),O.addRange(Ye)}}h.sort(Sw(F=>F.original.startLineNumber,rP));let j=new w6e(l);for(let F=0;FEt.original.startLineNumber<=X.original.startLineNumber),re=Lle(l,Et=>Et.modified.startLineNumber<=X.modified.startLineNumber),Pe=Math.max(X.original.startLineNumber-K.original.startLineNumber,X.modified.startLineNumber-re.modified.startLineNumber),Le=j.findLastMonotonous(Et=>Et.original.startLineNumberEt.modified.startLineNumbers.length||St>c.length||D.contains(St)||O.contains(Et)||!rvi(s[Et-1],c[St-1],_))break}ft>0&&(O.addRange(new Iu(X.original.startLineNumber-ft,X.original.startLineNumber)),D.addRange(new Iu(X.modified.startLineNumber-ft,X.modified.startLineNumber)));let Ct;for(Ct=0;Cts.length||St>c.length||D.contains(St)||O.contains(Et)||!rvi(s[Et-1],c[St-1],_))break}Ct>0&&(O.addRange(new Iu(X.original.endLineNumberExclusive,X.original.endLineNumberExclusive+Ct)),D.addRange(new Iu(X.modified.endLineNumberExclusive,X.modified.endLineNumberExclusive+Ct))),(ft>0||Ct>0)&&(h[F]=new pP(new Iu(X.original.startLineNumber-ft,X.original.endLineNumberExclusive+Ct),new Iu(X.modified.startLineNumber-ft,X.modified.endLineNumberExclusive+Ct)))}return h}function rvi(l,i,o){if(l.trim()===i.trim())return!0;if(l.length>300&&i.length>300)return!1;let c=new N6e().compute(new Hde([l],new Wd(0,1),!1),new Hde([i],new Wd(0,1),!1),o),_=0,h=qD.invert(c.diffs,l.length);for(let O of h)O.seq1Range.forEach(j=>{urt(l.charCodeAt(j))||_++});function b(O){let j=0;for(let F=0;Fi.length?l:i);return _/w>.6&&w>10}function u9i(l){if(l.length===0)return l;l.sort(Sw(o=>o.original.startLineNumber,rP));let i=[l[0]];for(let o=1;o=0&&h>=0&&_+h<=2){i[i.length-1]=s.join(c);continue}i.push(c)}return i}function d9i(l,i){let o=new w6e(l);return i=i.filter(s=>{let c=o.findLastMonotonous(b=>b.original.startLineNumberb.modified.startLineNumber{E6e();$K();su();VF();UD();lL();HL();pei();E_t();fei()});function drt(l,i,o){let s=o;return s=avi(l,i,s),s=avi(l,i,s),s=f9i(l,i,s),s}function avi(l,i,o){if(o.length===0)return o;let s=[];s.push(o[0]);for(let _=1;_0&&(b=b.delta(D))}c.push(b)}return s.length>0&&c.push(s[s.length-1]),c}function f9i(l,i,o){if(!l.getBoundaryScore||!i.getBoundaryScore)return o;for(let s=0;s0?o[s-1]:void 0,_=o[s],h=s+1=s.start&&l.seq2Range.start-h>=c.start&&o.isStronglyEqual(l.seq2Range.start-h,l.seq2Range.endExclusive-h)&&h<100;)h++;h--;let b=0;for(;l.seq1Range.start+bD&&(D=K,w=O)}return l.delta(w)}function lvi(l,i,o){let s=[];for(let c of o){let _=s[s.length-1];if(!_){s.push(c);continue}c.seq1Range.start-_.seq1Range.endExclusive<=2||c.seq2Range.start-_.seq2Range.endExclusive<=2?s[s.length-1]=new qD(_.seq1Range.join(c.seq1Range),_.seq2Range.join(c.seq2Range)):s.push(c)}return s}function uvi(l,i,o){let s=qD.invert(o,l.length),c=[],_=new x7(0,0);function h(w,D){if(w.offset1<_.offset1||w.offset2<_.offset2)return;let O=l.findWordContaining(w.offset1),j=i.findWordContaining(w.offset2);if(!O||!j)return;let F=new qD(O,j),X=F.intersect(D),K=X.seq1Range.length,re=X.seq2Range.length;for(;s.length>0;){let Pe=s[0];if(!(Pe.seq1Range.intersects(F.seq1Range)||Pe.seq2Range.intersects(F.seq2Range)))break;let Je=l.findWordContaining(Pe.seq1Range.start),Ye=i.findWordContaining(Pe.seq2Range.start),ft=new qD(Je,Ye),Ct=ft.intersect(Pe);if(K+=Ct.seq1Range.length,re+=Ct.seq2Range.length,F=F.join(ft),F.seq1Range.endExclusive>=Pe.seq1Range.endExclusive)s.shift();else break}K+re<(F.seq1Range.length+F.seq2Range.length)*2/3&&c.push(F),_=F.getEndExclusives()}for(;s.length>0;){let w=s.shift();w.seq1Range.isEmpty||(h(w.getStarts(),w),h(w.getEndExclusives().delta(-1),w))}return _9i(o,c)}function _9i(l,i){let o=[];for(;l.length>0||i.length>0;){let s=l[0],c=i[0],_;s&&(!c||s.seq1Range.start0&&o[o.length-1].seq1Range.endExclusive>=_.seq1Range.start?o[o.length-1]=o[o.length-1].join(_):o.push(_)}return o}function dvi(l,i,o){let s=o;if(s.length===0)return s;let c=0,_;do{_=!1;let h=[s[0]];for(let b=1;b5||X.seq1Range.length+X.seq2Range.length>5)},w=s[b],D=h[h.length-1];O(D,w)?(_=!0,h[h.length-1]=h[h.length-1].join(w)):h.push(w)}s=h}while(c++<10&&_);return s}function fvi(l,i,o){let s=o;if(s.length===0)return s;let c=0,_;do{_=!1;let b=[s[0]];for(let w=1;w5||re.length>500)return!1;let Le=l.getText(re).trim();if(Le.length>20||Le.split(/\r\n|\r|\n/).length>1)return!1;let Je=l.countLinesIn(X.seq1Range),Ye=X.seq1Range.length,ft=i.countLinesIn(X.seq2Range),Ct=X.seq2Range.length,Et=l.countLinesIn(K.seq1Range),St=K.seq1Range.length,Mi=i.countLinesIn(K.seq2Range),zi=K.seq2Range.length,Vr=2*40+50;function sn(gr){return Math.min(gr,Vr)}return Math.pow(Math.pow(sn(Je*40+Ye),1.5)+Math.pow(sn(ft*40+Ct),1.5),1.5)+Math.pow(Math.pow(sn(Et*40+St),1.5)+Math.pow(sn(Mi*40+zi),1.5),1.5)>(Vr**1.5)**1.5*1.3},D=s[w],O=b[b.length-1];j(O,D)?(_=!0,b[b.length-1]=b[b.length-1].join(D)):b.push(D)}s=b}while(c++<10&&_);let h=[];return egi(s,(b,w,D)=>{let O=w;function j(Le){return Le.length>0&&Le.trim().length<=3&&w.seq1Range.length+w.seq2Range.length>100}let F=l.extendToFullLines(w.seq1Range),X=l.getText(new Wd(F.start,w.seq1Range.start));j(X)&&(O=O.deltaStart(-X.length));let K=l.getText(new Wd(w.seq1Range.endExclusive,F.endExclusive));j(K)&&(O=O.deltaEnd(K.length));let re=qD.fromOffsetPairs(b?b.getEndExclusives():x7.zero,D?D.getStarts():x7.max),Pe=O.intersect(re);h.length>0&&Pe.getStarts().equals(h[h.length-1].getEndExclusives())?h[h.length-1]=h[h.length-1].join(Pe):h.push(Pe)}),h}var mei=Ht(()=>{su();HL();E6e()});function _vi(l){let i=0;for(;i{frt=class{constructor(i,o){this.trimmedHash=i,this.lines=o}getElement(i){return this.trimmedHash[i]}get length(){return this.trimmedHash.length}getBoundaryScore(i){let o=i===0?0:_vi(this.lines[i-1]),s=i===this.lines.length?0:_vi(this.lines[i]);return 1e3-(o+s)}getText(i){return this.lines.slice(i.start,i.endExclusive).join(` +`)}isStronglyEqual(i,o){return this.lines[i]===this.lines[o]}}});function mvi(l,i,o,s=!1){let c=[];for(let _ of P4e(l.map(h=>p9i(h,i,o)),(h,b)=>h.original.overlapOrTouch(b.original)||h.modified.overlapOrTouch(b.modified))){let h=_[0],b=_[_.length-1];c.push(new mP(h.original.join(b.original),h.modified.join(b.modified),_.map(w=>w.innerChanges[0])))}return Xj(()=>!s&&c.length>0&&(c[0].modified.startLineNumber!==c[0].original.startLineNumber||o.length-c[c.length-1].modified.endLineNumberExclusive!==i.length-c[c.length-1].original.endLineNumberExclusive)?!1:_6e(c,(_,h)=>h.original.startLineNumber-_.original.endLineNumberExclusive===h.modified.startLineNumber-_.modified.endLineNumberExclusive&&_.original.endLineNumberExclusive=o[l.modifiedRange.startLineNumber-1].length&&l.originalRange.startColumn-1>=i[l.originalRange.startLineNumber-1].length&&l.originalRange.startLineNumber<=l.originalRange.endLineNumber+c&&l.modifiedRange.startLineNumber<=l.modifiedRange.endLineNumber+c&&(s=1);let _=new Iu(l.originalRange.startLineNumber+s,l.originalRange.endLineNumber+1+c),h=new Iu(l.modifiedRange.startLineNumber+s,l.modifiedRange.endLineNumber+1+c);return new mP(_,h,[l])}var A6e,hei=Ht(()=>{su();Yj();lL();HL();ca();E6e();tvi();fei();svi();mei();pvi();pei();S_t();$K();A6e=class{constructor(){this.dynamicProgrammingDiffing=new D_t,this.myersDiffingAlgorithm=new N6e}computeDiff(i,o,s){if(i.length<=1&&Op(i,o,(Ct,Et)=>Ct===Et))return new Wde([],[],!1);if(i.length===1&&i[0].length===0||o.length===1&&o[0].length===0)return new Wde([new mP(new Iu(1,i.length+1),new Iu(1,o.length+1),[new UL(new Vt(1,1,i.length,i[i.length-1].length+1),new Vt(1,1,o.length,o[o.length-1].length+1))])],[],!1);let c=s.maxComputationTimeMs===0?KK.instance:new T_t(s.maxComputationTimeMs),_=!s.ignoreTrimWhitespace,h=new Map;function b(Ct){let Et=h.get(Ct);return Et===void 0&&(Et=h.size,h.set(Ct,Et)),Et}let w=i.map(Ct=>b(Ct.trim())),D=o.map(Ct=>b(Ct.trim())),O=new frt(w,i),j=new frt(D,o),F=O.length+j.length<1700?this.dynamicProgrammingDiffing.compute(O,j,c,(Ct,Et)=>i[Ct]===o[Et]?o[Et].length===0?.1:1+Math.log(1+o[Et].length):.99):this.myersDiffingAlgorithm.compute(O,j,c),X=F.diffs,K=F.hitTimeout;X=drt(O,j,X),X=dvi(O,j,X);let re=[],Pe=Ct=>{if(_)for(let Et=0;EtCt.seq1Range.start-Le===Ct.seq2Range.start-Je);let Et=Ct.seq1Range.start-Le;Pe(Et),Le=Ct.seq1Range.endExclusive,Je=Ct.seq2Range.endExclusive;let St=this.refineDiff(i,o,Ct,c,_);St.hitTimeout&&(K=!0);for(let Mi of St.mappings)re.push(Mi)}Pe(i.length-Le);let Ye=mvi(re,i,o),ft=[];return s.computeMoves&&(ft=this.computeMoves(Ye,i,o,w,D,c,_)),Xj(()=>{function Ct(St,Mi){if(St.lineNumber<1||St.lineNumber>Mi.length)return!1;let zi=Mi[St.lineNumber-1];return!(St.column<1||St.column>zi.length+1)}function Et(St,Mi){return!(St.startLineNumber<1||St.startLineNumber>Mi.length+1||St.endLineNumberExclusive<1||St.endLineNumberExclusive>Mi.length+1)}for(let St of Ye){if(!St.innerChanges)return!1;for(let Mi of St.innerChanges)if(!(Ct(Mi.modifiedRange.getStartPosition(),o)&&Ct(Mi.modifiedRange.getEndPosition(),o)&&Ct(Mi.originalRange.getStartPosition(),i)&&Ct(Mi.originalRange.getEndPosition(),i)))return!1;if(!Et(St.modified,o)||!Et(St.original,i))return!1}return!0}),new Wde(Ye,ft,K)}computeMoves(i,o,s,c,_,h,b){return ovi(i,o,s,c,_,h).map(O=>{let j=this.refineDiff(o,s,new qD(O.original.toOffsetRange(),O.modified.toOffsetRange()),h,b),F=mvi(j.mappings,o,s,!0);return new k6e(O,F)})}refineDiff(i,o,s,c,_){let h=new Hde(i,s.seq1Range,_),b=new Hde(o,s.seq2Range,_),w=h.length+b.length<500?this.dynamicProgrammingDiffing.compute(h,b,c):this.myersDiffingAlgorithm.compute(h,b,c),D=w.diffs;return D=drt(h,b,D),D=uvi(h,b,D),D=lvi(h,b,D),D=fvi(h,b,D),{mappings:D.map(j=>new UL(h.translateRange(j.seq1Range),b.translateRange(j.seq2Range))),hitTimeout:w.hitTimeout}}}});var gei,hvi=Ht(()=>{evi();hei();gei={getLegacy:()=>new k_t,getDefault:()=>new A6e}});function Ude(l,i){let o=Math.pow(10,i);return Math.round(l*o)/o}var Lf,XK,zG,Kr,j1=Ht(()=>{Lf=class{constructor(i,o,s,c=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,i))|0,this.g=Math.min(255,Math.max(0,o))|0,this.b=Math.min(255,Math.max(0,s))|0,this.a=Ude(Math.max(Math.min(1,c),0),3)}static equals(i,o){return i.r===o.r&&i.g===o.g&&i.b===o.b&&i.a===o.a}},XK=class l{constructor(i,o,s,c){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,i),0)|0,this.s=Ude(Math.max(Math.min(1,o),0),3),this.l=Ude(Math.max(Math.min(1,s),0),3),this.a=Ude(Math.max(Math.min(1,c),0),3)}static equals(i,o){return i.h===o.h&&i.s===o.s&&i.l===o.l&&i.a===o.a}static fromRGBA(i){let o=i.r/255,s=i.g/255,c=i.b/255,_=i.a,h=Math.max(o,s,c),b=Math.min(o,s,c),w=0,D=0,O=(b+h)/2,j=h-b;if(j>0){switch(D=Math.min(O<=.5?j/(2*O):j/(2-2*O),1),h){case o:w=(s-c)/j+(s1&&(s-=1),s<1/6?i+(o-i)*6*s:s<1/2?o:s<2/3?i+(o-i)*(2/3-s)*6:i}static toRGBA(i){let o=i.h/360,{s,l:c,a:_}=i,h,b,w;if(s===0)h=b=w=c;else{let D=c<.5?c*(1+s):c+s-c*s,O=2*c-D;h=l._hue2rgb(O,D,o+1/3),b=l._hue2rgb(O,D,o),w=l._hue2rgb(O,D,o-1/3)}return new Lf(Math.round(h*255),Math.round(b*255),Math.round(w*255),_)}},zG=class l{constructor(i,o,s,c){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,i),0)|0,this.s=Ude(Math.max(Math.min(1,o),0),3),this.v=Ude(Math.max(Math.min(1,s),0),3),this.a=Ude(Math.max(Math.min(1,c),0),3)}static equals(i,o){return i.h===o.h&&i.s===o.s&&i.v===o.v&&i.a===o.a}static fromRGBA(i){let o=i.r/255,s=i.g/255,c=i.b/255,_=Math.max(o,s,c),h=Math.min(o,s,c),b=_-h,w=_===0?0:b/_,D;return b===0?D=0:_===o?D=((s-c)/b%6+6)%6:_===s?D=(c-o)/b+2:D=(o-s)/b+4,new l(Math.round(D*60),w,_,i.a)}static toRGBA(i){let{h:o,s,v:c,a:_}=i,h=c*s,b=h*(1-Math.abs(o/60%2-1)),w=c-h,[D,O,j]=[0,0,0];return o<60?(D=h,O=b):o<120?(D=b,O=h):o<180?(O=h,j=b):o<240?(O=b,j=h):o<300?(D=b,j=h):o<=360&&(D=h,j=b),D=Math.round((D+w)*255),O=Math.round((O+w)*255),j=Math.round((j+w)*255),new Lf(D,O,j,_)}},Kr=class l{static fromHex(i){return l.Format.CSS.parseHex(i)||l.red}static equals(i,o){return!i&&!o?!0:!i||!o?!1:i.equals(o)}get hsla(){return this._hsla?this._hsla:XK.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:zG.fromRGBA(this.rgba)}constructor(i){if(i)if(i instanceof Lf)this.rgba=i;else if(i instanceof XK)this._hsla=i,this.rgba=XK.toRGBA(i);else if(i instanceof zG)this._hsva=i,this.rgba=zG.toRGBA(i);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(i){return!!i&&Lf.equals(this.rgba,i.rgba)&&XK.equals(this.hsla,i.hsla)&&zG.equals(this.hsva,i.hsva)}getRelativeLuminance(){let i=l._relativeLuminanceForComponent(this.rgba.r),o=l._relativeLuminanceForComponent(this.rgba.g),s=l._relativeLuminanceForComponent(this.rgba.b),c=.2126*i+.7152*o+.0722*s;return Ude(c,4)}static _relativeLuminanceForComponent(i){let o=i/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(i){let o=this.getRelativeLuminance(),s=i.getRelativeLuminance();return o>s}isDarkerThan(i){let o=this.getRelativeLuminance(),s=i.getRelativeLuminance();return o0)for(let c of s){let _=c.filter(D=>D!==void 0),h=_[1],b=_[2];if(!b)continue;let w;if(h==="rgb"){let D=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;w=gvi(_rt(l,c),prt(b,D),!1)}else if(h==="rgba"){let D=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;w=gvi(_rt(l,c),prt(b,D),!0)}else if(h==="hsl"){let D=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;w=yvi(_rt(l,c),prt(b,D),!1)}else if(h==="hsla"){let D=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;w=yvi(_rt(l,c),prt(b,D),!0)}else h==="#"&&(w=m9i(_rt(l,c),h+b));w&&i.push(w)}return i}function bvi(l){return!l||typeof l.getValue!="function"||typeof l.positionAt!="function"?[]:h9i(l)}var Svi=Ht(()=>{j1()});function Cvi(l,i){var o;let s=[];if(i.findRegionSectionHeaders&&(!((o=i.foldingRules)===null||o===void 0)&&o.markers)){let c=y9i(l,i);s=s.concat(c)}if(i.findMarkSectionHeaders){let c=v9i(l);s=s.concat(c)}return s}function y9i(l,i){let o=[],s=l.getLineCount();for(let c=1;c<=s;c++){let _=l.getLineContent(c),h=_.match(i.foldingRules.markers.start);if(h){let b={startLineNumber:c,startColumn:h[0].length+1,endLineNumber:c,endColumn:_.length+1};if(b.endColumn>b.startColumn){let w={range:b,...kvi(_.substring(h[0].length)),shouldBeInComments:!1};(w.text||w.hasSeparatorLine)&&o.push(w)}}}return o}function v9i(l){let i=[],o=l.getLineCount();for(let s=1;s<=o;s++){let c=l.getLineContent(s);b9i(c,s,i)}return i}function b9i(l,i,o){xvi.lastIndex=0;let s=xvi.exec(l);if(s){let c=s.indices[1][0]+1,_=s.indices[1][1]+1,h={startLineNumber:i,startColumn:c,endLineNumber:i,endColumn:_};if(h.endColumn>h.startColumn){let b={range:h,...kvi(s[1]),shouldBeInComments:!0};(b.text||b.hasSeparatorLine)&&o.push(b)}}}function kvi(l){l=l.trim();let i=l.startsWith("-");return l=l.replace(g9i,""),{text:l,hasSeparatorLine:i}}var xvi,g9i,wvi=Ht(()=>{xvi=new RegExp("\\bMARK:\\s*(.*)$","d"),g9i=/^-+|-+$/g});var vei,ZNe,Tvi=Ht(()=>{nrt();Lh();Ll();ca();Myi();R4e();Byi();jyi();SQt();rL();rei();hvi();oP();Svi();wvi();vei=class extends __t{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(i){let o=[];for(let s=0;sthis._lines.length)o=this._lines.length,s=this._lines[o-1].length+1,c=!0;else{let _=this._lines[o-1].length+1;s<1?(s=1,c=!0):s>_&&(s=_,c=!0)}return c?{lineNumber:o,column:s}:i}},ZNe=class l{constructor(i,o){this._host=i,this._models=Object.create(null),this._foreignModuleFactory=o,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(i){return this._models[i]}_getModels(){let i=[];return Object.keys(this._models).forEach(o=>i.push(this._models[o])),i}acceptNewModel(i){this._models[i.url]=new vei(Ka.parse(i.url),i.lines,i.EOL,i.versionId)}acceptModelChanged(i,o){if(!this._models[i])return;this._models[i].onEvents(o)}acceptRemovedModel(i){this._models[i]&&delete this._models[i]}async computeUnicodeHighlights(i,o,s){let c=this._getModel(i);return c?YNe.computeUnicodeHighlights(c,o,s):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(i,o){let s=this._getModel(i);return s?Cvi(s,o):[]}async computeDiff(i,o,s,c){let _=this._getModel(i),h=this._getModel(o);return!_||!h?null:l.computeDiff(_,h,s,c)}static computeDiff(i,o,s,c){let _=c==="advanced"?gei.getDefault():gei.getLegacy(),h=i.getLinesContent(),b=o.getLinesContent(),w=_.computeDiff(h,b,s),D=w.changes.length>0?!1:this._modelsAreIdentical(i,o);function O(j){return j.map(F=>{var X;return[F.original.startLineNumber,F.original.endLineNumberExclusive,F.modified.startLineNumber,F.modified.endLineNumberExclusive,(X=F.innerChanges)===null||X===void 0?void 0:X.map(K=>[K.originalRange.startLineNumber,K.originalRange.startColumn,K.originalRange.endLineNumber,K.originalRange.endColumn,K.modifiedRange.startLineNumber,K.modifiedRange.startColumn,K.modifiedRange.endLineNumber,K.modifiedRange.endColumn])]})}return{identical:D,quitEarly:w.hitTimeout,changes:O(w.changes),moves:w.moves.map(j=>[j.lineRangeMapping.original.startLineNumber,j.lineRangeMapping.original.endLineNumberExclusive,j.lineRangeMapping.modified.startLineNumber,j.lineRangeMapping.modified.endLineNumberExclusive,O(j.changes)])}}static _modelsAreIdentical(i,o){let s=i.getLineCount(),c=o.getLineCount();if(s!==c)return!1;for(let _=1;_<=s;_++){let h=i.getLineContent(_),b=o.getLineContent(_);if(h!==b)return!1}return!0}async computeMoreMinimalEdits(i,o,s){let c=this._getModel(i);if(!c)return o;let _=[],h;o=o.slice(0).sort((w,D)=>{if(w.range&&D.range)return Vt.compareRangesUsingStarts(w.range,D.range);let O=w.range?0:1,j=D.range?0:1;return O-j});let b=0;for(let w=1;wl._diffLimit){_.push({range:w,text:D});continue}let F=Fyi(j,D,s),X=c.offsetAt(Vt.lift(w).getStartPosition());for(let K of F){let re=c.positionAt(X+K.originalStart),Pe=c.positionAt(X+K.originalStart+K.originalLength),Le={text:D.substr(K.modifiedStart,K.modifiedLength),range:{startLineNumber:re.lineNumber,startColumn:re.column,endLineNumber:Pe.lineNumber,endColumn:Pe.column}};c.getValueInRange(Le.range)!==Le.text&&_.push(Le)}}return typeof h=="number"&&_.push({eol:h,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),_}async computeLinks(i){let o=this._getModel(i);return o?Ryi(o):null}async computeDefaultDocumentColors(i){let o=this._getModel(i);return o?bvi(o):null}async textualSuggest(i,o,s,c){let _=new A0,h=new RegExp(s,c),b=new Set;e:for(let w of i){let D=this._getModel(w);if(D){for(let O of D.words(h))if(!(O===o||!isNaN(Number(O)))&&(b.add(O),b.size>l._suggestionsLimit))break e}}return{words:Array.from(b),duration:_.elapsed()}}async computeWordRanges(i,o,s,c){let _=this._getModel(i);if(!_)return Object.create(null);let h=new RegExp(s,c),b=Object.create(null);for(let w=o.startLineNumber;wthis._host.fhr(b,w)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(h,o),Promise.resolve(F4e(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(i,o){if(!this._foreignModule||typeof this._foreignModule[i]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+i));try{return Promise.resolve(this._foreignModule[i].apply(this._foreignModule,o))}catch(s){return Promise.reject(s)}}};ZNe._diffLimit=1e5;ZNe._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=Mdt())});var P6e,N_t,mrt=Ht(()=>{kc();P6e=Wc("textResourceConfigurationService"),N_t=Wc("textResourcePropertiesService")});var js,dp=Ht(()=>{kc();js=Wc("ILanguageFeaturesService")});function eAe(l,i){let o=l.getModel(i);return!(!o||o.isTooLargeForSyncing())}var S9i,hrt,Evi,Dvi,A_t,bei,Sei,xei,P_t,grt,tAe,L_t=Ht(()=>{Bu();$r();vZt();uyi();ca();R1();Tvi();XA();mrt();su();aL();rL();Pl();dp();S_t();$K();lL();GA();va();S9i=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},hrt=function(l,i){return function(o,s){i(o,s,l)}},Evi=60*1e3,Dvi=5*60*1e3;A_t=class extends Ui{constructor(i,o,s,c,_){super(),this._modelService=i,this._workerManager=this._register(new Sei(this._modelService,c)),this._logService=s,this._register(_.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(h,b)=>eAe(this._modelService,h.uri)?this._workerManager.withWorker().then(w=>w.computeLinks(h.uri)).then(w=>w&&{links:w}):Promise.resolve({links:[]})})),this._register(_.completionProvider.register("*",new bei(this._workerManager,o,this._modelService,c)))}dispose(){super.dispose()}canComputeUnicodeHighlights(i){return eAe(this._modelService,i)}computedUnicodeHighlights(i,o,s){return this._workerManager.withWorker().then(c=>c.computedUnicodeHighlights(i,o,s))}async computeDiff(i,o,s,c){let _=await this._workerManager.withWorker().then(w=>w.computeDiff(i,o,s,c));if(!_)return null;return{identical:_.identical,quitEarly:_.quitEarly,changes:b(_.changes),moves:_.moves.map(w=>new k6e(new pP(new Iu(w[0],w[1]),new Iu(w[2],w[3])),b(w[4])))};function b(w){return w.map(D=>{var O;return new mP(new Iu(D[0],D[1]),new Iu(D[2],D[3]),(O=D[4])===null||O===void 0?void 0:O.map(j=>new UL(new Vt(j[0],j[1],j[2],j[3]),new Vt(j[4],j[5],j[6],j[7]))))})}}computeMoreMinimalEdits(i,o,s=!1){if(k1(o)){if(!eAe(this._modelService,i))return Promise.resolve(o);let c=A0.create(),_=this._workerManager.withWorker().then(h=>h.computeMoreMinimalEdits(i,o,s));return _.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",i.toString(!0),c.elapsed())),Promise.race([_,sL(1e3).then(()=>o)])}else return Promise.resolve(void 0)}canNavigateValueSet(i){return eAe(this._modelService,i)}navigateValueSet(i,o,s){return this._workerManager.withWorker().then(c=>c.navigateValueSet(i,o,s))}canComputeWordRanges(i){return eAe(this._modelService,i)}computeWordRanges(i,o){return this._workerManager.withWorker().then(s=>s.computeWordRanges(i,o))}findSectionHeaders(i,o){return this._workerManager.withWorker().then(s=>s.findSectionHeaders(i,o))}};A_t=S9i([hrt(0,lm),hrt(1,P6e),hrt(2,Nv),hrt(3,Pf),hrt(4,js)],A_t);bei=class{constructor(i,o,s,c){this.languageConfigurationService=c,this._debugDisplayName="wordbasedCompletions",this._workerManager=i,this._configurationService=o,this._modelService=s}async provideCompletionItems(i,o){let s=this._configurationService.getValue(i.uri,o,"editor");if(s.wordBasedSuggestions==="off")return;let c=[];if(s.wordBasedSuggestions==="currentDocument")eAe(this._modelService,i.uri)&&c.push(i.uri);else for(let j of this._modelService.getModels())eAe(this._modelService,j.uri)&&(j===i?c.unshift(j.uri):(s.wordBasedSuggestions==="allDocuments"||j.getLanguageId()===i.getLanguageId())&&c.push(j.uri));if(c.length===0)return;let _=this.languageConfigurationService.getLanguageConfiguration(i.getLanguageId()).getWordDefinition(),h=i.getWordAtPosition(o),b=h?new Vt(o.lineNumber,h.startColumn,o.lineNumber,h.endColumn):Vt.fromPositions(o),w=b.setEndPosition(o.lineNumber,o.column),O=await(await this._workerManager.withWorker()).textualSuggest(c,h?.word,_);if(O)return{duration:O.duration,suggestions:O.words.map(j=>({kind:18,label:j,insertText:j,range:{insert:w,replace:b}}))}}},Sei=class extends Ui{constructor(i,o){super(),this.languageConfigurationService=o,this._modelService=i,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new Tde).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(Dvi/2),D_),this._register(this._modelService.onModelRemoved(c=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>Dvi&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new tAe(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}},xei=class extends Ui{constructor(i,o,s){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=i,this._modelService=o,!s){let c=new Cde;c.cancelAndSet(()=>this._checkStopModelSync(),Math.round(Evi/2)),this._register(c)}}dispose(){for(let i in this._syncedModels)a_(this._syncedModels[i]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(i,o){for(let s of i){let c=s.toString();this._syncedModels[c]||this._beginModelSync(s,o),this._syncedModels[c]&&(this._syncedModelsLastUsedTime[c]=new Date().getTime())}}_checkStopModelSync(){let i=new Date().getTime(),o=[];for(let s in this._syncedModelsLastUsedTime)i-this._syncedModelsLastUsedTime[s]>Evi&&o.push(s);for(let s of o)this._stopModelSync(s)}_beginModelSync(i,o){let s=this._modelService.getModel(i);if(!s||!o&&s.isTooLargeForSyncing())return;let c=i.toString();this._proxy.acceptNewModel({url:s.uri.toString(),lines:s.getLinesContent(),EOL:s.getEOL(),versionId:s.getVersionId()});let _=new pr;_.add(s.onDidChangeContent(h=>{this._proxy.acceptModelChanged(c.toString(),h)})),_.add(s.onWillDispose(()=>{this._stopModelSync(c)})),_.add(Qs(()=>{this._proxy.acceptRemovedModel(c)})),this._syncedModels[c]=_}_stopModelSync(i){let o=this._syncedModels[i];delete this._syncedModels[i],delete this._syncedModelsLastUsedTime[i],a_(o)}},P_t=class{constructor(i){this._instance=i,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}},grt=class{constructor(i){this._workerClient=i}fhr(i,o){return this._workerClient.fhr(i,o)}},tAe=class extends Ui{constructor(i,o,s,c){super(),this.languageConfigurationService=c,this._disposed=!1,this._modelService=i,this._keepIdleModels=o,this._workerFactory=new Ynt(s),this._worker=null,this._modelManager=null}fhr(i,o){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new Uft(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new grt(this)))}catch(i){Xnt(i),this._worker=new P_t(new ZNe(new grt(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,i=>(Xnt(i),this._worker=new P_t(new ZNe(new grt(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(i){return this._modelManager||(this._modelManager=this._register(new xei(i,this._modelService,this._keepIdleModels))),this._modelManager}async _withSyncedResources(i,o=!1){return this._disposed?Promise.reject(Tgi()):this._getProxy().then(s=>(this._getOrCreateModelManager(s).ensureSyncedResources(i,o),s))}computedUnicodeHighlights(i,o,s){return this._withSyncedResources([i]).then(c=>c.computeUnicodeHighlights(i.toString(),o,s))}computeDiff(i,o,s,c){return this._withSyncedResources([i,o],!0).then(_=>_.computeDiff(i.toString(),o.toString(),s,c))}computeMoreMinimalEdits(i,o,s){return this._withSyncedResources([i]).then(c=>c.computeMoreMinimalEdits(i.toString(),o,s))}computeLinks(i){return this._withSyncedResources([i]).then(o=>o.computeLinks(i.toString()))}computeDefaultDocumentColors(i){return this._withSyncedResources([i]).then(o=>o.computeDefaultDocumentColors(i.toString()))}async textualSuggest(i,o,s){let c=await this._withSyncedResources(i),_=s.source,h=s.flags;return c.textualSuggest(i.map(b=>b.toString()),o,_,h)}computeWordRanges(i,o){return this._withSyncedResources([i]).then(s=>{let c=this._modelService.getModel(i);if(!c)return Promise.resolve(null);let _=this.languageConfigurationService.getLanguageConfiguration(c.getLanguageId()).getWordDefinition(),h=_.source,b=_.flags;return s.computeWordRanges(i.toString(),o,h,b)})}navigateValueSet(i,o,s){return this._withSyncedResources([i]).then(c=>{let _=this._modelService.getModel(i);if(!_)return null;let h=this.languageConfigurationService.getLanguageConfiguration(_.getLanguageId()).getWordDefinition(),b=h.source,w=h.flags;return c.navigateValueSet(i.toString(),o,s,b,w)})}findSectionHeaders(i,o){return this._withSyncedResources([i]).then(s=>s.findSectionHeaders(i.toString(),o))}dispose(){super.dispose(),this._disposed=!0}}});function Ivi(l,i,o){return new Cei(l,i,o)}var Cei,Nvi=Ht(()=>{oP();L_t();Cei=class extends tAe{constructor(i,o,s){super(i,s.keepIdleModels||!1,s.label,o),this._foreignModuleId=s.moduleId,this._foreignModuleCreateData=s.createData||null,this._foreignModuleHost=s.host||null,this._foreignProxy=null}fhr(i,o){if(!this._foreignModuleHost||typeof this._foreignModuleHost[i]!="function")return Promise.reject(new Error("Missing method "+i+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[i].apply(this._foreignModuleHost,o))}catch(s){return Promise.reject(s)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(i=>{let o=this._foreignModuleHost?F4e(this._foreignModuleHost):[];return i.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,o).then(s=>{this._foreignModuleCreateData=null;let c=(b,w)=>i.fmr(b,w),_=(b,w)=>function(){let D=Array.prototype.slice.call(arguments,0);return w(b,D)},h={};for(let b of s)h[b]=_(b,c);return h})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(i){return this._withSyncedResources(i).then(o=>this.getProxy())}}});var Mle,yrt=Ht(()=>{Mle={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}});function L6e(l,i){return new vde([new NG(0,"",l)],i)}function Jde(l,i){let o=new Uint32Array(2);return o[0]=0,o[1]=(l<<0|0|0|32768|2<<24)>>>0,new yle(o,i===null?YK:i)}var YK,O6e=Ht(()=>{Fg();YK=new class{clone(){return this}equals(l){return this===l}}});var QS,iAe=Ht(()=>{QS=class{static getLanguageId(i){return(i&255)>>>0}static getTokenType(i){return(i&768)>>>8}static containsBalancedBrackets(i){return(i&1024)!==0}static getFontStyle(i){return(i&30720)>>>11}static getForeground(i){return(i&16744448)>>>15}static getBackground(i){return(i&4278190080)>>>24}static getClassNameFromMetadata(i){let s="mtk"+this.getForeground(i),c=this.getFontStyle(i);return c&1&&(s+=" mtki"),c&2&&(s+=" mtkb"),c&4&&(s+=" mtku"),c&8&&(s+=" mtks"),s}static getInlineStyleFromMetadata(i,o){let s=this.getForeground(i),c=this.getFontStyle(i),_=`color: ${o[s]};`;c&1&&(_+="font-style: italic;"),c&2&&(_+="font-weight: bold;");let h="";return c&4&&(h+=" underline"),c&8&&(h+=" line-through"),h&&(_+=`text-decoration:${h};`),_}static getPresentationFromMetadata(i){let o=this.getForeground(i),s=this.getFontStyle(i);return{foreground:o,italic:!!(s&1),bold:!!(s&2),underline:!!(s&4),strikethrough:!!(s&8)}}}});function Pvi(l,i){let o=i.lineNumber;if(!l.tokenization.isCheapToTokenize(o))return;l.tokenization.forceTokenization(o);let s=l.tokenization.getLineTokens(o),c=s.findTokenIndexAtOffset(i.column-1);return s.getStandardTokenType(c)}var jb,kei,eW=Ht(()=>{iAe();jb=class l{static createEmpty(i,o){let s=l.defaultTokenMetadata,c=new Uint32Array(2);return c[0]=i.length,c[1]=s,new l(c,i,o)}static createFromTextAndMetadata(i,o){let s=0,c="",_=new Array;for(let{text:h,metadata:b}of i)_.push(s+h.length,b),s+=h.length,c+=h;return new l(new Uint32Array(_),c,o)}constructor(i,o,s){this._lineTokensBrand=void 0,this._tokens=i,this._tokensCount=this._tokens.length>>>1,this._text=o,this.languageIdCodec=s}equals(i){return i instanceof l?this.slicedEquals(i,0,this._tokensCount):!1}slicedEquals(i,o,s){if(this._text!==i._text||this._tokensCount!==i._tokensCount)return!1;let c=o<<1,_=c+(s<<1);for(let h=c;h<_;h++)if(this._tokens[h]!==i._tokens[h])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(i){return i>0?this._tokens[i-1<<1]:0}getMetadata(i){return this._tokens[(i<<1)+1]}getLanguageId(i){let o=this._tokens[(i<<1)+1],s=QS.getLanguageId(o);return this.languageIdCodec.decodeLanguageId(s)}getStandardTokenType(i){let o=this._tokens[(i<<1)+1];return QS.getTokenType(o)}getForeground(i){let o=this._tokens[(i<<1)+1];return QS.getForeground(o)}getClassName(i){let o=this._tokens[(i<<1)+1];return QS.getClassNameFromMetadata(o)}getInlineStyle(i,o){let s=this._tokens[(i<<1)+1];return QS.getInlineStyleFromMetadata(s,o)}getPresentation(i){let o=this._tokens[(i<<1)+1];return QS.getPresentationFromMetadata(o)}getEndOffset(i){return this._tokens[i<<1]}findTokenIndexAtOffset(i){return l.findIndexInTokensArray(this._tokens,i)}inflate(){return this}sliceAndInflate(i,o,s){return new kei(this,i,o,s)}static convertToEndOffset(i,o){let c=(i.length>>>1)-1;for(let _=0;_>>1)-1;for(;so&&(c=_)}return s}withInserted(i){if(i.length===0)return this;let o=0,s=0,c="",_=new Array,h=0;for(;;){let b=oh){c+=this._text.substring(h,w.offset);let D=this._tokens[(o<<1)+1];_.push(c.length,D),h=w.offset}c+=w.text,_.push(c.length,w.tokenMetadata),s++}else break}return new l(new Uint32Array(_),c,this.languageIdCodec)}getTokenText(i){let o=this.getStartOffset(i),s=this.getEndOffset(i);return this._text.substring(o,s)}forEach(i){let o=this.getCount();for(let s=0;s>>0;kei=class l{constructor(i,o,s,c){this._source=i,this._startOffset=o,this._endOffset=s,this._deltaOffset=c,this._firstTokenIndex=i.findTokenIndexAtOffset(o),this.languageIdCodec=i.languageIdCodec,this._tokensCount=0;for(let _=this._firstTokenIndex,h=i.getCount();_=s);_++)this._tokensCount++}getMetadata(i){return this._source.getMetadata(this._firstTokenIndex+i)}getLanguageId(i){return this._source.getLanguageId(this._firstTokenIndex+i)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(i){return i instanceof l?this._startOffset===i._startOffset&&this._endOffset===i._endOffset&&this._deltaOffset===i._deltaOffset&&this._source.slicedEquals(i._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getStandardTokenType(i){return this._source.getStandardTokenType(this._firstTokenIndex+i)}getForeground(i){return this._source.getForeground(this._firstTokenIndex+i)}getEndOffset(i){let o=this._source.getEndOffset(this._firstTokenIndex+i);return Math.min(this._endOffset,o)-this._startOffset+this._deltaOffset}getClassName(i){return this._source.getClassName(this._firstTokenIndex+i)}getInlineStyle(i,o){return this._source.getInlineStyle(this._firstTokenIndex+i,o)}getPresentation(i){return this._source.getPresentation(this._firstTokenIndex+i)}findTokenIndexAtOffset(i){return this._source.findTokenIndexAtOffset(i+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(i){let o=this._firstTokenIndex+i,s=this._source.getStartOffset(o),c=this._source.getEndOffset(o),_=this._source.getTokenText(o);return sthis._endOffset&&(_=_.substring(0,_.length-(c-this._endOffset))),_}forEach(i){for(let o=0;o{Bl();dI=class l{constructor(i,o,s,c){this.startColumn=i,this.endColumn=o,this.className=s,this.type=c,this._lineDecorationBrand=void 0}static _equals(i,o){return i.startColumn===o.startColumn&&i.endColumn===o.endColumn&&i.className===o.className&&i.type===o.type}static equalsArr(i,o){let s=i.length,c=o.length;if(s!==c)return!1;for(let _=0;_=_||(b[w++]=new l(Math.max(1,D.startColumn-c+1),Math.min(h+1,D.endColumn-c+1),D.className,D.type));return b}static filter(i,o,s,c){if(i.length===0)return[];let _=[],h=0;for(let b=0,w=i.length;bo||O.isEmpty()&&(D.type===0||D.type===3))continue;let j=O.startLineNumber===o?O.startColumn:s,F=O.endLineNumber===o?O.endColumn:c;_[h++]=new l(j,F,D.inlineClassName,D.type)}return _}static _typeCompare(i,o){let s=[2,0,1,3];return s[i]-s[o]}static compare(i,o){if(i.startColumn!==o.startColumn)return i.startColumn-o.startColumn;if(i.endColumn!==o.endColumn)return i.endColumn-o.endColumn;let s=l._typeCompare(i.type,o.type);return s!==0?s:i.className!==o.className?i.className0&&this.stopOffsets[0]0&&o=i){this.stopOffsets.splice(c,0,i),this.classNames.splice(c,0,o),this.metadata.splice(c,0,s);break}this.count++}},F_t=class{static normalize(i,o){if(o.length===0)return[];let s=[],c=new wei,_=0;for(let h=0,b=o.length;h1){let re=i.charCodeAt(D-2);E1(re)&&D--}if(O>1){let re=i.charCodeAt(O-2);E1(re)&&O--}let X=D-1,K=O-2;_=c.consumeLowerThan(X,_,s),c.count===0&&(_=X),c.insert(K,j,F)}return c.consumeLowerThan(1073741824,_,s),s}}});var pw,Lvi=Ht(()=>{pw=class{constructor(i,o,s,c){this.endIndex=i,this.type=o,this.metadata=s,this.containsRTL=c,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}});function Rle(l,i){if(l.lineContent.length===0){if(l.lineDecorations.length>0){i.appendString("");let o=0,s=0,c=0;for(let h of l.lineDecorations)(h.type===1||h.type===2)&&(i.appendString(''),h.type===1&&(c|=1,o++),h.type===2&&(c|=2,s++));i.appendString("");let _=new brt(1,o+s);return _.setColumnInfo(1,o,0,0),new Srt(_,!1,c)}return i.appendString(""),new Srt(new brt(0,0),!1,0)}return D9i(x9i(l),i)}function M6e(l){let i=new S7(1e4),o=Rle(l,i);return new Tei(o.characterMapping,i.build(),o.containsRTL,o.containsForeignElements)}function x9i(l){let i=l.lineContent,o,s,c;l.stopRenderingLineAfter!==-1&&l.stopRenderingLineAfter0){for(let b=0,w=l.lineDecorations.length;b0&&(_[h++]=new pw(s,"",0,!1));let b=s;for(let w=0,D=o.getCount();w=c){let X=i?PG(l.substring(b,c)):!1;_[h++]=new pw(c,j,0,X);break}let F=i?PG(l.substring(b,O)):!1;_[h++]=new pw(O,j,0,F),b=O}return _}function k9i(l,i,o){let s=0,c=[],_=0;if(o)for(let h=0,b=i.length;h=50&&(c[_++]=new pw(X+1,O,j,F),K=X+1,X=-1);K!==D&&(c[_++]=new pw(D,O,j,F))}else c[_++]=w;s=D}else for(let h=0,b=i.length;h50){let j=w.type,F=w.metadata,X=w.containsRTL,K=Math.ceil(O/50);for(let re=1;re=8234&&l<=8238||l>=8294&&l<=8297||l>=8206&&l<=8207||l===1564}function w9i(l,i){let o=[],s=new pw(0,"",0,!1),c=0;for(let _ of i){let h=_.endIndex;for(;cs.endIndex&&(s=new pw(c,_.type,_.metadata,_.containsRTL),o.push(s)),s=new pw(c+1,"mtkcontrol",_.metadata,!1),o.push(s))}c>s.endIndex&&(s=new pw(h,_.type,_.metadata,_.containsRTL),o.push(s))}return o}function T9i(l,i,o,s){let c=l.continuesWithWrappedLine,_=l.fauxIndentLength,h=l.tabSize,b=l.startVisibleColumn,w=l.useMonospaceOptimizations,D=l.selectionsOnLine,O=l.renderWhitespace===1,j=l.renderWhitespace===3,F=l.renderSpaceWidth!==l.spaceWidth,X=[],K=0,re=0,Pe=s[re].type,Le=s[re].containsRTL,Je=s[re].endIndex,Ye=s.length,ft=!1,Ct=M1(i),Et;Ct===-1?(ft=!0,Ct=o,Et=o):Et=aI(i);let St=!1,Mi=0,zi=D&&D[Mi],Vr=b%h;for(let gr=_;gr=zi.endOffset&&(Mi++,zi=D&&D[Mi]);let Di;if(grEt)Di=!0;else if(er===9)Di=!0;else if(er===32)if(O)if(St)Di=!0;else{let rs=gr+1gr),Di&&j&&(Di=ft||gr>Et),Di&&Le&&gr>=Ct&&gr<=Et&&(Di=!1),St){if(!Di||!w&&Vr>=h){if(F){let rs=K>0?X[K-1].endIndex:_;for(let Ls=rs+1;Ls<=gr;Ls++)X[K++]=new pw(Ls,"mtkw",1,!1)}else X[K++]=new pw(gr,"mtkw",1,!1);Vr=Vr%h}}else(gr===Je||Di&&gr>_)&&(X[K++]=new pw(gr,Pe,0,Le),Vr=Vr%h);for(er===9?Vr=h:ej(er)?Vr+=2:Vr++,St=Di;gr===Je&&(re++,re0?i.charCodeAt(o-1):0,er=o>1?i.charCodeAt(o-2):0;gr===32&&er!==32&&er!==9||(sn=!0)}else sn=!0;if(sn)if(F){let gr=K>0?X[K-1].endIndex:_;for(let er=gr+1;er<=o;er++)X[K++]=new pw(er,"mtkw",1,!1)}else X[K++]=new pw(o,"mtkw",1,!1);else X[K++]=new pw(o,Pe,0,Le);return X}function E9i(l,i,o,s){s.sort(dI.compare);let c=F_t.normalize(l,s),_=c.length,h=0,b=[],w=0,D=0;for(let j=0,F=o.length;jD&&(D=Je.startOffset,b[w++]=new pw(D,re,Pe,Le)),Je.endOffset+1<=K)D=Je.endOffset+1,b[w++]=new pw(D,re+" "+Je.className,Pe|Je.metadata,Le),h++;else{D=K,b[w++]=new pw(D,re+" "+Je.className,Pe|Je.metadata,Le);break}}K>D&&(D=K,b[w++]=new pw(D,re,Pe,Le))}let O=o[o.length-1].endIndex;if(h<_&&c[h].startOffset===O)for(;h<_&&c[h].startOffset===O;){let j=c[h];b[w++]=new pw(D,j.className,j.metadata,!1),h++}return b}function D9i(l,i){let o=l.fontIsMonospace,s=l.canUseHalfwidthRightwardsArrow,c=l.containsForeignElements,_=l.lineContent,h=l.len,b=l.isOverflowing,w=l.overflowingCharCount,D=l.parts,O=l.fauxIndentLength,j=l.tabSize,F=l.startVisibleColumn,X=l.containsRTL,K=l.spaceWidth,re=l.renderSpaceCharCode,Pe=l.renderWhitespace,Le=l.renderControlCharacters,Je=new brt(h+1,D.length),Ye=!1,ft=0,Ct=F,Et=0,St=0,Mi=0;X?i.appendString(''):i.appendString("");for(let zi=0,Vr=D.length;zi=O&&(tc+=kl)}}for(Ls&&(i.appendString(' style="width:'),i.appendString(String(K*wc)),i.appendString('px"')),i.appendASCIICharCode(62);ft1?i.appendCharCode(8594):i.appendCharCode(65515);for(let kl=2;kl<=vo;kl++)i.appendCharCode(160)}else tc=2,vo=1,i.appendCharCode(re),i.appendCharCode(8204);Et+=tc,St+=vo,ft>=O&&(Ct+=vo)}}else for(i.appendASCIICharCode(62);ft=O&&(Ct+=tc)}_i?Mi++:Mi=0,ft>=h&&!Ye&&sn.isPseudoAfter()&&(Ye=!0,Je.setColumnInfo(ft+1,zi,Et,St)),i.appendString("")}return Ye||Je.setColumnInfo(h+1,D.length-1,Et,St),b&&(i.appendString(''),i.appendString(de("showMore","Show more ({0})",N9i(w))),i.appendString("")),i.appendString(""),new Srt(Je,X,c)}function I9i(l){return l.toString(16).toUpperCase().padStart(4,"0")}function N9i(l){return l<1024?de("overflow.chars","{0} chars",l):l<1024*1024?`${(l/1024).toFixed(1)} KB`:`${(l/1024/1024).toFixed(1)} MB`}var F6e,JL,vrt,brt,Srt,Tei,Eei,qde=Ht(()=>{Fs();Bl();Ele();nAe();Lvi();F6e=class{constructor(i,o){this.startOffset=i,this.endOffset=o}equals(i){return this.startOffset===i.startOffset&&this.endOffset===i.endOffset}},JL=class{constructor(i,o,s,c,_,h,b,w,D,O,j,F,X,K,re,Pe,Le,Je,Ye){this.useMonospaceOptimizations=i,this.canUseHalfwidthRightwardsArrow=o,this.lineContent=s,this.continuesWithWrappedLine=c,this.isBasicASCII=_,this.containsRTL=h,this.fauxIndentLength=b,this.lineTokens=w,this.lineDecorations=D.sort(dI.compare),this.tabSize=O,this.startVisibleColumn=j,this.spaceWidth=F,this.stopRenderingLineAfter=re,this.renderWhitespace=Pe==="all"?4:Pe==="boundary"?1:Pe==="selection"?2:Pe==="trailing"?3:0,this.renderControlCharacters=Le,this.fontLigatures=Je,this.selectionsOnLine=Ye&&Ye.sort((Et,St)=>Et.startOffset>>16}static getCharIndex(i){return(i&65535)>>>0}constructor(i,o){this.length=i,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(i,o,s,c){let _=(o<<16|s<<0)>>>0;this._data[i-1]=_,this._horizontalOffset[i-1]=c}getHorizontalOffset(i){return this._horizontalOffset.length===0?0:this._horizontalOffset[i-1]}charOffsetToPartData(i){return this.length===0?0:i<0?this._data[0]:i>=this.length?this._data[this.length-1]:this._data[i]}getDomPosition(i){let o=this.charOffsetToPartData(i-1),s=l.getPartIndex(o),c=l.getCharIndex(o);return new vrt(s,c)}getColumn(i,o){return this.partDataToCharOffset(i.partIndex,o,i.charIndex)+1}partDataToCharOffset(i,o,s){if(this.length===0)return 0;let c=(i<<16|s<<0)>>>0,_=0,h=this.length-1;for(;_+1>>1,Pe=this._data[re];if(Pe===c)return re;Pe>c?h=re:_=re}if(_===h)return _;let b=this._data[_],w=this._data[h];if(b===c)return _;if(w===c)return h;let D=l.getPartIndex(b),O=l.getCharIndex(b),j=l.getPartIndex(w),F;D!==j?F=o:F=l.getCharIndex(w);let X=s-O,K=F-s;return X<=K?_:h}},Srt=class{constructor(i,o,s){this._renderLineOutputBrand=void 0,this.characterMapping=i,this.containsRTL=o,this.containsForeignElements=s}};Tei=class{constructor(i,o,s,c){this.characterMapping=i,this.html=o,this.containsRTL=s,this.containsForeignElements=c}};Eei=class{constructor(i,o,s,c,_,h,b,w,D,O,j,F,X,K,re,Pe){this.fontIsMonospace=i,this.canUseHalfwidthRightwardsArrow=o,this.lineContent=s,this.len=c,this.isOverflowing=_,this.overflowingCharCount=h,this.parts=b,this.containsForeignElements=w,this.fauxIndentLength=D,this.tabSize=O,this.startVisibleColumn=j,this.containsRTL=F,this.spaceWidth=X,this.renderSpaceCharCode=K,this.renderWhitespace=re,this.renderControlCharacters=Pe}}});var xrt,M_t,rAe,dL,Ble,R_t,R6e,oAe,tW=Ht(()=>{su();Bl();ca();xrt=class{constructor(i,o,s,c){this._viewportBrand=void 0,this.top=i|0,this.left=o|0,this.width=s|0,this.height=c|0}},M_t=class{constructor(i,o){this.tabSize=i,this.data=o}},rAe=class{constructor(i,o,s,c,_,h,b){this._viewLineDataBrand=void 0,this.content=i,this.continuesWithWrappedLine=o,this.minColumn=s,this.maxColumn=c,this.startVisibleColumn=_,this.tokens=h,this.inlineDecorations=b}},dL=class l{constructor(i,o,s,c,_,h,b,w,D,O){this.minColumn=i,this.maxColumn=o,this.content=s,this.continuesWithWrappedLine=c,this.isBasicASCII=l.isBasicASCII(s,h),this.containsRTL=l.containsRTL(s,this.isBasicASCII,_),this.tokens=b,this.inlineDecorations=w,this.tabSize=D,this.startVisibleColumn=O}static isBasicASCII(i,o){return o?RK(i):!0}static containsRTL(i,o,s){return!o&&s?PG(i):!1}},Ble=class{constructor(i,o,s){this.range=i,this.inlineClassName=o,this.type=s}},R_t=class{constructor(i,o,s,c){this.startOffset=i,this.endOffset=o,this.inlineClassName=s,this.inlineClassNameAffectsLetterSpacing=c}toInlineDecoration(i){return new Ble(new Vt(i,this.startOffset+1,i,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}},R6e=class{constructor(i,o){this._viewModelDecorationBrand=void 0,this.range=i,this.options=o}},oAe=class l{constructor(i,o,s){this.color=i,this.zIndex=o,this.data=s}static compareByRenderingProps(i,o){return i.zIndex===o.zIndex?i.coloro.color?1:0:i.zIndex-o.zIndex}static equals(i,o){return i.color===o.color&&i.zIndex===o.zIndex&&Op(i.data,o.data)}static equalsArr(i,o){return Op(i,o,l.equals)}}});function A9i(l){return Array.isArray(l)}function Fvi(l){return!A9i(l)}function Dei(l){return typeof l=="string"}function Iei(l){return!Dei(l)}function $de(l){return!l}function VG(l,i){return l.ignoreCase&&i?i.toLowerCase():i}function Nei(l){return l.replace(/[&<>'"_]/g,"-")}function Mvi(l,i){console.log(`${l.languageId}: ${i}`)}function My(l,i){return new Error(`${l.languageId}: ${i}`)}function QK(l,i,o,s,c){let _=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,h=null;return i.replace(_,function(b,w,D,O,j,F,X,K,re){return $de(D)?$de(O)?!$de(j)&&j0;){let s=l.tokenizer[o];if(s)return s;let c=o.lastIndexOf(".");c<0?o=null:o=o.substr(0,c)}return null}function Bvi(l,i){let o=i;for(;o&&o.length>0;){if(l.stateNames[o])return!0;let c=o.lastIndexOf(".");c<0?o=null:o=o.substr(0,c)}return!1}var Aei=Ht(()=>{});function O9i(l,i){if(!i)return null;i=VG(l,i);let o=l.brackets;for(let s of o){if(s.open===i)return{token:s.token,bracketType:1};if(s.close===i)return{token:s.token,bracketType:-1}}return null}var P9i,L9i,Pei,Wvi,sAe,j6e,B6e,ZK,krt,Lei,Oei,aAe,Fei=Ht(()=>{$r();Fg();O6e();Aei();Rg();P9i=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},L9i=function(l,i){return function(o,s){i(o,s,l)}},Wvi=5,sAe=class{static create(i,o){return this._INSTANCE.create(i,o)}constructor(i){this._maxCacheDepth=i,this._entries=Object.create(null)}create(i,o){if(i!==null&&i.depth>=this._maxCacheDepth)return new j6e(i,o);let s=j6e.getStackElementId(i);s.length>0&&(s+="|"),s+=o;let c=this._entries[s];return c||(c=new j6e(i,o),this._entries[s]=c,c)}};sAe._INSTANCE=new sAe(Wvi);j6e=class l{constructor(i,o){this.parent=i,this.state=o,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(i){let o="";for(;i!==null;)o.length>0&&(o+="|"),o+=i.state,i=i.parent;return o}static _equals(i,o){for(;i!==null&&o!==null;){if(i===o)return!0;if(i.state!==o.state)return!1;i=i.parent,o=o.parent}return i===null&&o===null}equals(i){return l._equals(this,i)}push(i){return sAe.create(this,i)}pop(){return this.parent}popall(){let i=this;for(;i.parent;)i=i.parent;return i}switchTo(i){return sAe.create(this.parent,i)}},B6e=class l{constructor(i,o){this.languageId=i,this.state=o}equals(i){return this.languageId===i.languageId&&this.state.equals(i.state)}clone(){return this.state.clone()===this.state?this:new l(this.languageId,this.state)}},ZK=class{static create(i,o){return this._INSTANCE.create(i,o)}constructor(i){this._maxCacheDepth=i,this._entries=Object.create(null)}create(i,o){if(o!==null)return new krt(i,o);if(i!==null&&i.depth>=this._maxCacheDepth)return new krt(i,o);let s=j6e.getStackElementId(i),c=this._entries[s];return c||(c=new krt(i,null),this._entries[s]=c,c)}};ZK._INSTANCE=new ZK(Wvi);krt=class l{constructor(i,o){this.stack=i,this.embeddedLanguageData=o}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:ZK.create(this.stack,this.embeddedLanguageData)}equals(i){return!(i instanceof l)||!this.stack.equals(i.stack)?!1:this.embeddedLanguageData===null&&i.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||i.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(i.embeddedLanguageData)}},Lei=class{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(i){this._languageId=i}emit(i,o){this._lastTokenType===o&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=o,this._lastTokenLanguage=this._languageId,this._tokens.push(new NG(i,o,this._languageId)))}nestedLanguageTokenize(i,o,s,c){let _=s.languageId,h=s.state,b=Oh.get(_);if(!b)return this.enterLanguage(_),this.emit(c,""),h;let w=b.tokenize(i,o,h);if(c!==0)for(let D of w.tokens)this._tokens.push(new NG(D.offset+c,D.type,D.language));else this._tokens=this._tokens.concat(w.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,w.endState}finalize(i){return new vde(this._tokens,i)}},Oei=class l{constructor(i,o){this._languageService=i,this._theme=o,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(i){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(i)}emit(i,o){let s=this._theme.match(this._currentLanguageId,o)|1024;this._lastTokenMetadata!==s&&(this._lastTokenMetadata=s,this._tokens.push(i),this._tokens.push(s))}static _merge(i,o,s){let c=i!==null?i.length:0,_=o.length,h=s!==null?s.length:0;if(c===0&&_===0&&h===0)return new Uint32Array(0);if(c===0&&_===0)return s;if(_===0&&h===0)return i;let b=new Uint32Array(c+_+h);i!==null&&b.set(i);for(let w=0;w<_;w++)b[c+w]=o[w];return s!==null&&b.set(s,c+_),b}nestedLanguageTokenize(i,o,s,c){let _=s.languageId,h=s.state,b=Oh.get(_);if(!b)return this.enterLanguage(_),this.emit(c,""),h;let w=b.tokenizeEncoded(i,o,h);if(c!==0)for(let D=0,O=w.tokens.length;D{if(h)return;let w=!1;for(let D=0,O=b.changedLanguages.length;D{b.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))}))}getLoadStatus(){let i=[];for(let o in this._embeddedLanguages){let s=Oh.get(o);if(s){if(s instanceof Pei){let c=s.getLoadStatus();c.loaded===!1&&i.push(c.promise)}continue}Oh.isResolved(o)||i.push(Oh.getOrCreate(o))}return i.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(i).then(o=>{})}}getInitialState(){let i=sAe.create(null,this._lexer.start);return ZK.create(i,null)}tokenize(i,o,s){if(i.length>=this._maxTokenizationLineLength)return L6e(this._languageId,s);let c=new Lei,_=this._tokenize(i,o,s,c);return c.finalize(_)}tokenizeEncoded(i,o,s){if(i.length>=this._maxTokenizationLineLength)return Jde(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),s);let c=new Oei(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),_=this._tokenize(i,o,s,c);return c.finalize(_)}_tokenize(i,o,s,c){return s.embeddedLanguageData?this._nestedTokenize(i,o,s,0,c):this._myTokenize(i,o,s,0,c)}_findLeavingNestedLanguageOffset(i,o){let s=this._lexer.tokenizer[o.stack.state];if(!s&&(s=Crt(this._lexer,o.stack.state),!s))throw My(this._lexer,"tokenizer state is not defined: "+o.stack.state);let c=-1,_=!1;for(let h of s){if(!Iei(h.action)||h.action.nextEmbedded!=="@pop")continue;_=!0;let b=h.resolveRegex(o.stack.state),w=b.source;if(w.substr(0,4)==="^(?:"&&w.substr(w.length-1,1)===")"){let O=(b.ignoreCase?"i":"")+(b.unicode?"u":"");b=new RegExp(w.substr(4,w.length-5),O)}let D=i.search(b);D===-1||D!==0&&h.matchOnlyAtLineStart||(c===-1||D0&&_.nestedLanguageTokenize(b,!1,s.embeddedLanguageData,c);let w=i.substring(h);return this._myTokenize(w,o,s,c+h,_)}_safeRuleName(i){return i?i.name:"(unknown)"}_myTokenize(i,o,s,c,_){_.enterLanguage(this._languageId);let h=i.length,b=o&&this._lexer.includeLF?i+` +`:i,w=b.length,D=s.embeddedLanguageData,O=s.stack,j=0,F=null,X=!0;for(;X||j=w)break;X=!1;let zi=this._lexer.tokenizer[Le];if(!zi&&(zi=Crt(this._lexer,Le),!zi))throw My(this._lexer,"tokenizer state is not defined: "+Le);let Vr=b.substr(j);for(let sn of zi)if((j===0||!sn.matchOnlyAtLineStart)&&(Je=Vr.match(sn.resolveRegex(Le)),Je)){Ye=Je[0],ft=sn.action;break}}if(Je||(Je=[""],Ye=""),ft||(j=this._lexer.maxStack)throw My(this._lexer,"maximum tokenizer stack size reached: ["+O.state+","+O.parent.state+",...]");O=O.push(Le)}else if(ft.next==="@pop"){if(O.depth<=1)throw My(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(Ct));O=O.pop()}else if(ft.next==="@popall")O=O.popall();else{let zi=QK(this._lexer,ft.next,Ye,Je,Le);if(zi[0]==="@"&&(zi=zi.substr(1)),Crt(this._lexer,zi))O=O.push(zi);else throw My(this._lexer,"trying to set a next state '"+zi+"' that is undefined in rule: "+this._safeRuleName(Ct))}}ft.log&&typeof ft.log=="string"&&Mvi(this._lexer,this._lexer.languageId+": "+QK(this._lexer,ft.log,Ye,Je,Le))}if(St===null)throw My(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(Ct));let Mi=zi=>{let Vr=this._languageService.getLanguageIdByLanguageName(zi)||this._languageService.getLanguageIdByMimeType(zi)||zi,sn=this._getNestedEmbeddedLanguageData(Vr);if(j0)throw My(this._lexer,"groups cannot be nested: "+this._safeRuleName(Ct));if(Je.length!==St.length+1)throw My(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(Ct));let zi=0;for(let Vr=1;Vr{let h=()=>{let b=M9i(l,i,o,s);if(o instanceof aAe){let w=o.getLoadStatus();if(w.loaded===!1){w.promise.then(h,_);return}}c(b)};h()})}function zvi(l,i,o){let s=[],_=new Uint32Array(2);_[0]=0,_[1]=33587200;for(let h=0,b=l.length;h")}return s.join("")}function M9i(l,i,o,s){let c=[],_=o.getInitialState();for(let h=0,b=l.length;h"),_=D.endState}return c.join("")}var Mei,W6e,Vvi=Ht(()=>{VK();Bl();Fg();eW();qde();tW();Fei();Mei=fP("standaloneColorizer",{createHTML:l=>l}),W6e=class{static colorizeElement(i,o,s,c){c=c||{};let _=c.theme||"vs",h=c.mimeType||s.getAttribute("lang")||s.getAttribute("data-lang");if(!h)return console.error("Mode not detected"),Promise.resolve();let b=o.getLanguageIdByMimeType(h)||h;i.setTheme(_);let w=s.firstChild?s.firstChild.nodeValue:"";s.className+=" "+_;let D=O=>{var j;let F=(j=Mei?.createHTML(O))!==null&&j!==void 0?j:O;s.innerHTML=F};return this.colorize(o,w||"",b,c).then(D,O=>console.error(O))}static async colorize(i,o,s,c){let _=i.languageIdCodec,h=4;c&&typeof c.tabSize=="number"&&(h=c.tabSize),Z4e(o)&&(o=o.substr(1));let b=KA(o);if(!i.isRegisteredLanguageId(s))return zvi(b,h,_);let w=await Oh.getOrCreate(s);return w?F9i(b,h,w,_):zvi(b,h,_)}static colorizeLine(i,o,s,c,_=4){let h=dL.isBasicASCII(i,o),b=dL.containsRTL(i,h,s);return M6e(new JL(!1,!0,i,!1,h,b,0,c,[],_,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(i,o,s=4){let c=i.getLineContent(o);i.tokenization.forceTokenization(o);let h=i.tokenization.getLineTokens(o).inflate();return this.colorizeLine(c,i.mightContainNonBasicASCII(),i.mightContainRTL(),h,s)}}});var Hvi=Ht(()=>{});function Jvi(l){cAe=document.createElement("div"),cAe.className="monaco-aria-container";let i=()=>{let s=document.createElement("div");return s.className="monaco-alert",s.setAttribute("role","alert"),s.setAttribute("aria-atomic","true"),cAe.appendChild(s),s};B_t=i(),Rei=i();let o=()=>{let s=document.createElement("div");return s.className="monaco-status",s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true"),cAe.appendChild(s),s};j_t=o(),Bei=o(),l.appendChild(cAe)}function ZS(l){cAe&&(B_t.textContent!==l?(I1(Rei),W_t(B_t,l)):(I1(B_t),W_t(Rei,l)))}function hP(l){cAe&&(j_t.textContent!==l?(I1(Bei),W_t(j_t,l)):(I1(j_t),W_t(Bei,l)))}function W_t(l,i){I1(l),i.length>Uvi&&(i=i.substr(0,Uvi)),l.textContent=i,l.style.visibility="hidden",l.style.visibility="visible"}var Uvi,cAe,B_t,Rei,j_t,Bei,$D=Ht(()=>{va();Hvi();Uvi=2e4});var z6e,z_t=Ht(()=>{kc();z6e=Wc("markerDecorationsService")});var R9i,B9i,Trt,qvi=Ht(()=>{z_t();sd();R9i=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},B9i=function(l,i){return function(o,s){i(o,s,l)}},Trt=class{constructor(i,o){}dispose(){}};Trt.ID="editor.contrib.markerDecorations";Trt=R9i([B9i(1,z6e)],Trt);Al(Trt.ID,Trt,0)});var $vi=Ht(()=>{});var V6e,jei=Ht(()=>{$r();Pa();va();V6e=class extends Ui{constructor(i,o){super(),this._onDidChange=this._register(new fn),this.onDidChange=this._onDidChange.event,this._referenceDomElement=i,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,o)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let i=null,o=()=>{i?this.observe({width:i.width,height:i.height}):this.observe()},s=!1,c=!1,_=()=>{if(s&&!c)try{s=!1,c=!0,o()}finally{g2(Xa(this._referenceDomElement),()=>{c=!1,_()})}};this._resizeObserver=new ResizeObserver(h=>{h&&h[0]&&h[0].contentRect?i={width:h[0].contentRect.width,height:h[0].contentRect.height}:i=null,s=!0,_()}),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(i){this.measureReferenceDomElement(!0,i)}measureReferenceDomElement(i,o){let s=0,c=0;o?(s=o.width,c=o.height):this._referenceDomElement&&(s=this._referenceDomElement.clientWidth,c=this._referenceDomElement.clientHeight),s=Math.max(5,s),c=Math.max(5,c),(this._width!==s||this._height!==c)&&(this._width=s,this._height=c,i&&this._onDidChange.fire())}}});function HG(l,i){H6e.items.push(new H6e(l,i))}function HF(l,i){HG(l,(o,s,c)=>{if(typeof o<"u"){for(let[_,h]of i)if(o===_){c(l,h);return}}})}function Gvi(l){H6e.items.forEach(i=>i.apply(l))}var H6e,j9i,Kvi=Ht(()=>{H6e=class l{constructor(i,o){this.key=i,this.migrate=o}apply(i){let o=l._read(i,this.key),s=_=>l._read(i,_),c=(_,h)=>l._write(i,_,h);this.migrate(o,s,c)}static _read(i,o){if(typeof i>"u")return;let s=o.indexOf(".");if(s>=0){let c=o.substring(0,s);return this._read(i[c],o.substring(s+1))}return i[o]}static _write(i,o,s){let c=o.indexOf(".");if(c>=0){let _=o.substring(0,c);i[_]=i[_]||{},this._write(i[_],o.substring(c+1),s);return}i[o]=s}};H6e.items=[];HF("wordWrap",[[!0,"on"],[!1,"off"]]);HF("lineNumbers",[[!0,"on"],[!1,"off"]]);HF("cursorBlinking",[["visible","solid"]]);HF("renderWhitespace",[[!0,"boundary"],[!1,"none"]]);HF("renderLineHighlight",[[!0,"line"],[!1,"none"]]);HF("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]);HF("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]);HF("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]);HF("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]);HF("autoIndent",[[!1,"advanced"],[!0,"full"]]);HF("matchBrackets",[[!0,"always"],[!1,"never"]]);HF("renderFinalNewline",[[!0,"on"],[!1,"off"]]);HF("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]);HF("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]);HF("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]);HG("autoClosingBrackets",(l,i,o)=>{l===!1&&(o("autoClosingBrackets","never"),typeof i("autoClosingQuotes")>"u"&&o("autoClosingQuotes","never"),typeof i("autoSurround")>"u"&&o("autoSurround","never"))});HG("renderIndentGuides",(l,i,o)=>{typeof l<"u"&&(o("renderIndentGuides",void 0),typeof i("guides.indentation")>"u"&&o("guides.indentation",!!l))});HG("highlightActiveIndentGuide",(l,i,o)=>{typeof l<"u"&&(o("highlightActiveIndentGuide",void 0),typeof i("guides.highlightActiveIndentation")>"u"&&o("guides.highlightActiveIndentation",!!l))});j9i={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};HG("suggest.filteredTypes",(l,i,o)=>{if(l&&typeof l=="object"){for(let s of Object.entries(j9i))l[s[0]]===!1&&typeof i(`suggest.${s[1]}`)>"u"&&o(`suggest.${s[1]}`,!1);o("suggest.filteredTypes",void 0)}});HG("quickSuggestions",(l,i,o)=>{if(typeof l=="boolean"){let s=l?"on":"off";o("quickSuggestions",{comments:s,strings:s,other:s})}});HG("experimental.stickyScroll.enabled",(l,i,o)=>{typeof l=="boolean"&&(o("experimental.stickyScroll.enabled",void 0),typeof i("stickyScroll.enabled")>"u"&&o("stickyScroll.enabled",l))});HG("experimental.stickyScroll.maxLineCount",(l,i,o)=>{typeof l=="number"&&(o("experimental.stickyScroll.maxLineCount",void 0),typeof i("stickyScroll.maxLineCount")>"u"&&o("stickyScroll.maxLineCount",l))});HG("codeActionsOnSave",(l,i,o)=>{if(l&&typeof l=="object"){let s=!1,c={};for(let _ of Object.entries(l))typeof _[1]=="boolean"?(s=!0,c[_[0]]=_[1]?"explicit":"never"):c[_[0]]=_[1];s&&o("codeActionsOnSave",c)}});HG("codeActionWidget.includeNearbyQuickfixes",(l,i,o)=>{typeof l=="boolean"&&(o("codeActionWidget.includeNearbyQuickfixes",void 0),typeof i("codeActionWidget.includeNearbyQuickFixes")>"u"&&o("codeActionWidget.includeNearbyQuickFixes",l))});HG("lightbulb.enabled",(l,i,o)=>{typeof l=="boolean"&&o("lightbulb.enabled",l?void 0:"off")})});var Wei,jle,V_t=Ht(()=>{Pa();Wei=class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new fn,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(i){this._tabFocus=i,this._onDidChangeTabFocus.fire(this._tabFocus)}},jle=new Wei});var YS,lAe,fL=Ht(()=>{du();kc();YS=Wc("accessibilityService"),lAe=new Ms("accessibilityModeEnabled",!1)});function V9i(l){let i=0;for(;l;)l=Math.floor(l/10),i++;return i||1}function H9i(){let l="";return!MF&&!qdt&&(l+="no-user-select "),MF&&(l+="no-minimap-shadow ",l+="enable-user-select "),uu&&(l+="mac "),l}function Xvi(l){let i=Hj(l);return Gvi(i),i}var W9i,z9i,H_t,zei,Vei,uAe,Yvi=Ht(()=>{RL();su();Pa();$r();oP();uf();jei();rZt();Kvi();V_t();FC();f6e();kft();fL();va();xft();W9i=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},z9i=function(l,i){return function(o,s){i(o,s,l)}},H_t=class extends Ui{constructor(i,o,s,c,_){super(),this._accessibilityService=_,this._onDidChange=this._register(new fn),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new fn),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new snt,this.isSimpleWidget=i,this.contextMenuId=o,this._containerObserver=this._register(new V6e(c,s.dimension)),this._targetWindowId=Xa(c).vscodeWindowId,this._rawOptions=Xvi(s),this._validatedOptions=uAe.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(lP.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(jle.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(Hnt.onDidChange(()=>this._recomputeOptions())),this._register(Ede.getInstance(Xa(c)).onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){let i=this._computeOptions(),o=uAe.checkEquals(this.options,i);o!==null&&(this.options=i,this._onDidChangeFast.fire(o),this._onDidChange.fire(o))}_computeOptions(){let i=this._readEnvConfiguration(),o=BNe.createFromValidatedSettings(this._validatedOptions,i.pixelRatio,this.isSimpleWidget),s=this._readFontInfo(o),c={memory:this._computeOptionsMemory,outerWidth:i.outerWidth,outerHeight:i.outerHeight-this._reservedHeight,fontInfo:s,extraEditorClassName:i.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:i.emptySelectionClipboard,pixelRatio:i.pixelRatio,tabFocusMode:jle.getTabFocusMode(),accessibilitySupport:i.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return uAe.computeOptions(this._validatedOptions,c)}_readEnvConfiguration(){return{extraEditorClassName:H9i(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:LG||m2,pixelRatio:Ede.getInstance($Qt(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(i){return Hnt.readFontInfo($Qt(this._targetWindowId,!0).window,i)}getRawOptions(){return this._rawOptions}updateOptions(i){let o=Xvi(i);uAe.applyUpdate(this._rawOptions,o)&&(this._validatedOptions=uAe.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(i){this._containerObserver.observe(i)}setIsDominatedByLongLines(i){this._isDominatedByLongLines!==i&&(this._isDominatedByLongLines=i,this._recomputeOptions())}setModelLineCount(i){let o=V9i(i);this._lineNumbersDigitCount!==o&&(this._lineNumbersDigitCount=o,this._recomputeOptions())}setViewLineCount(i){this._viewLineCount!==i&&(this._viewLineCount=i,this._recomputeOptions())}setReservedHeight(i){this._reservedHeight!==i&&(this._reservedHeight=i,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(i){this._glyphMarginDecorationLaneCount!==i&&(this._glyphMarginDecorationLaneCount=i,this._recomputeOptions())}};H_t=W9i([z9i(4,YS)],H_t);zei=class{constructor(){this._values=[]}_read(i){return this._values[i]}get(i){return this._values[i]}_write(i,o){this._values[i]=o}},Vei=class{constructor(){this._values=[]}_read(i){if(i>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[i]}get(i){return this._read(i)}_write(i,o){this._values[i]=o}},uAe=class l{static validateOptions(i){let o=new zei;for(let s of lde){let c=s.name==="_never_"?void 0:i[s.name];o._write(s.id,s.validate(c))}return o}static computeOptions(i,o){let s=new Vei;for(let c of lde)s._write(c.id,c.compute(o,s,i._read(c.id)));return s}static _deepEquals(i,o){if(typeof i!="object"||typeof o!="object"||!i||!o)return i===o;if(Array.isArray(i)||Array.isArray(o))return Array.isArray(i)&&Array.isArray(o)?Op(i,o):!1;if(Object.keys(i).length!==Object.keys(o).length)return!1;for(let s in i)if(!l._deepEquals(i[s],o[s]))return!1;return!0}static checkEquals(i,o){let s=[],c=!1;for(let _ of lde){let h=!l._deepEquals(i._read(_.id),o._read(_.id));s[_.id]=h,h&&(c=!0)}return c?new W4e(s):null}static applyUpdate(i,o){let s=!1;for(let c of lde)if(o.hasOwnProperty(c.name)){let _=c.applyUpdate(i[c.name],o[c.name]);i[c.name]=_.newValue,s=s||_.didChange}return s}}});var eX,Hei=Ht(()=>{(function(l){let i={total:0,min:Number.MAX_VALUE,max:0},o={...i},s={...i},c={...i},_=0,h={keydown:0,input:0,render:0};function b(){Le(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),h.keydown=1,queueMicrotask(w)}l.onKeyDown=b;function w(){h.keydown===1&&(performance.mark("keydown/end"),h.keydown=2)}function D(){performance.mark("input/start"),h.input=1,Pe()}l.onBeforeInput=D;function O(){h.input===0&&D(),queueMicrotask(j)}l.onInput=O;function j(){h.input===1&&(performance.mark("input/end"),h.input=2)}function F(){Le()}l.onKeyUp=F;function X(){Le()}l.onSelectionChange=X;function K(){h.keydown===2&&h.input===2&&h.render===0&&(performance.mark("render/start"),h.render=1,queueMicrotask(re),Pe())}l.onRenderStart=K;function re(){h.render===1&&(performance.mark("render/end"),h.render=2)}function Pe(){setTimeout(Le)}function Le(){h.keydown===2&&h.input===2&&h.render===2&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),Je("keydown",i),Je("input",o),Je("render",s),Je("inputlatency",c),_++,Ye())}function Je(St,Mi){let zi=performance.getEntriesByName(St)[0].duration;Mi.total+=zi,Mi.min=Math.min(Mi.min,zi),Mi.max=Math.max(Mi.max,zi)}function Ye(){performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),h.keydown=0,h.input=0,h.render=0}function ft(){if(_===0)return;let St={keydown:Ct(i),input:Ct(o),render:Ct(s),total:Ct(c),sampleCount:_};return Et(i),Et(o),Et(s),Et(c),_=0,St}l.getAndClearMeasurements=ft;function Ct(St){return{average:St.total/_,max:St.max,min:St.min}}function Et(St){St.total=0,St.min=Number.MAX_VALUE,St.max=0}})(eX||(eX={}))});var dj,U6e=Ht(()=>{va();$r();dj=class{constructor(){this._hooks=new pr,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(i,o){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let s=this._onStopCallback;this._onStopCallback=null,i&&s&&s(o)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(i,o,s,c,_){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=c,this._onStopCallback=_;let h=i;try{i.setPointerCapture(o),this._hooks.add(Qs(()=>{try{i.releasePointerCapture(o)}catch{}}))}catch{h=Xa(i)}this._hooks.add(Tr(h,$o.POINTER_MOVE,b=>{if(b.buttons!==s){this.stopMonitoring(!0);return}b.preventDefault(),this._pointerMoveCallback(b)})),this._hooks.add(Tr(h,$o.POINTER_UP,b=>this.stopMonitoring(!0)))}}});function U_t(l){return`--vscode-${l.replace(/\./g,"-")}`}function ec(l){return`var(${U_t(l)})`}function Zvi(l,i){return`var(${U_t(l)}, ${i})`}function cn(l,i,o,s,c){return J_t.registerColor(l,i,o,s,c)}function U9i(l,i){var o,s,c,_;switch(l.op){case 0:return(o=UG(l.value,i))===null||o===void 0?void 0:o.darken(l.factor);case 1:return(s=UG(l.value,i))===null||s===void 0?void 0:s.lighten(l.factor);case 2:return(c=UG(l.value,i))===null||c===void 0?void 0:c.transparent(l.factor);case 3:{let h=UG(l.background,i);return h?(_=UG(l.value,i))===null||_===void 0?void 0:_.makeOpaque(h):UG(l.value,i)}case 4:for(let h of l.values){let b=UG(h,i);if(b)return b}return;case 6:return UG(i.defines(l.if)?l.then:l.else,i);case 5:{let h=UG(l.value,i);if(!h)return;let b=UG(l.background,i);return b?h.isDarkerThan(b)?Kr.getLighterColor(h,b,l.factor).transparent(l.transparency):Kr.getDarkerColor(h,b,l.factor).transparent(l.transparency):h.transparent(l.factor*l.transparency)}default:throw Dde(l)}}function tX(l,i){return{op:0,value:l,factor:i}}function C7(l,i){return{op:1,value:l,factor:i}}function cl(l,i){return{op:2,value:l,factor:i}}function dAe(...l){return{op:4,values:l}}function e1i(l,i,o){return{op:6,if:l,then:i,else:o}}function qei(l,i,o,s){return{op:5,value:l,background:i,factor:o,transparency:s}}function UG(l,i){if(l!==null){if(typeof l=="string")return l[0]==="#"?Kr.fromHex(l):i.getColor(l);if(l instanceof Kr)return l;if(typeof l=="object")return U9i(l,i)}}var Jei,Uei,J_t,t1i,i1i,Qvi,iW=Ht(()=>{Yj();Bu();j1();Pa();e_t();RC();Jei={ColorContribution:"base.contributions.colors"},Uei=class{constructor(){this._onDidChangeSchema=new fn,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(i,o,s,c=!1,_){let h={id:i,description:s,defaults:o,needsTransparency:c,deprecationMessage:_};this.colorsById[i]=h;let b={type:"string",description:s,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return _&&(b.deprecationMessage=_),c&&(b.pattern="^#(?:(?[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",b.patternErrorMessage="This color must be transparent or it will obscure content"),this.colorSchema.properties[i]=b,this.colorReferenceSchema.enum.push(i),this.colorReferenceSchema.enumDescriptions.push(s),this._onDidChangeSchema.fire(),i}getColors(){return Object.keys(this.colorsById).map(i=>this.colorsById[i])}resolveDefaultColor(i,o){let s=this.colorsById[i];if(s&&s.defaults){let c=s.defaults[o.type];return UG(c,o)}}getColorSchema(){return this.colorSchema}toString(){let i=(o,s)=>{let c=o.indexOf(".")===-1?0:1,_=s.indexOf(".")===-1?0:1;return c!==_?c-_:o.localeCompare(s)};return Object.keys(this.colorsById).sort(i).map(o=>`- \`${o}\`: ${this.colorsById[o].description}`).join(` +`)}},J_t=new Uei;q_.add(Jei.ColorContribution,J_t);t1i="vscode://schemas/workbench-colors",i1i=q_.as(JNe.JSONContribution);i1i.registerSchema(t1i,J_t.getColorSchema());Qvi=new Bd(()=>i1i.notifySchemaChanged(t1i),200);J_t.onDidChangeSchema(()=>{Qvi.isScheduled()||Qvi.schedule()})});var sa,Xfn,Yfn,Qfn,fj,_L,If,fg,Zfn,n1i,e_n,t_n,i_n,n_n,r_n,o_n,s_n,Wle=Ht(()=>{Fs();j1();iW();sa=cn("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},de("foreground","Overall foreground color. This color is only used if not overridden by a component.")),Xfn=cn("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},de("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),Yfn=cn("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},de("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),Qfn=cn("descriptionForeground",{light:"#717171",dark:cl(sa,.7),hcDark:cl(sa,.7),hcLight:cl(sa,.7)},de("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),fj=cn("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},de("iconForeground","The default color for icons in the workbench.")),_L=cn("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},de("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),If=cn("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},de("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),fg=cn("contrastActiveBorder",{light:null,dark:null,hcDark:_L,hcLight:_L},de("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),Zfn=cn("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},de("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),n1i=cn("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},de("textLinkForeground","Foreground color for links in text.")),e_n=cn("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},de("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),t_n=cn("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:Kr.black,hcLight:"#292929"},de("textSeparatorForeground","Color for text separators.")),i_n=cn("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},de("textPreformatForeground","Foreground color for preformatted text segments.")),n_n=cn("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},de("textPreformatBackground","Background color for preformatted text segments.")),r_n=cn("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},de("textBlockQuoteBackground","Background color for block quotes in text.")),o_n=cn("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:Kr.white,hcLight:"#292929"},de("textBlockQuoteBorder","Border color for block quotes in text.")),s_n=cn("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:Kr.black,hcLight:"#F2F2F2"},de("textCodeBlockBackground","Background color for code blocks in text."))});var d_n,J6e,r1i,fAe,_Ae,pAe,mAe,o1i,q_t=Ht(()=>{Fs();j1();iW();Wle();d_n=cn("sash.hoverBorder",{dark:_L,light:_L,hcDark:_L,hcLight:_L},de("sashActiveBorder","Border color of active sashes.")),J6e=cn("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:Kr.black,hcLight:"#0F4A85"},de("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),r1i=cn("badge.foreground",{dark:Kr.white,light:"#333",hcDark:Kr.white,hcLight:Kr.white},de("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),fAe=cn("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},de("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),_Ae=cn("scrollbarSlider.background",{dark:Kr.fromHex("#797979").transparent(.4),light:Kr.fromHex("#646464").transparent(.4),hcDark:cl(If,.6),hcLight:cl(If,.4)},de("scrollbarSliderBackground","Scrollbar slider background color.")),pAe=cn("scrollbarSlider.hoverBackground",{dark:Kr.fromHex("#646464").transparent(.7),light:Kr.fromHex("#646464").transparent(.7),hcDark:cl(If,.8),hcLight:cl(If,.8)},de("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),mAe=cn("scrollbarSlider.activeBackground",{dark:Kr.fromHex("#BFBFBF").transparent(.4),light:Kr.fromHex("#000000").transparent(.6),hcDark:If,hcLight:If},de("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),o1i=cn("progressBar.background",{dark:Kr.fromHex("#0E70C0"),light:Kr.fromHex("#0E70C0"),hcDark:If,hcLight:If},de("progressBarBackground","Background color of the progress bar that can show for long running operations."))});var jC,pL,g_n,y_n,v_n,b_n,Av,JG,qG,S_n,x_n,_j,u1i,Drt,S2,Gde,C_n,F2,Kde,d1i,k_n,f1i,zle,_1i,$ei,Irt,w_n,T_n,p1i,pj,m1i,E_n,D_n,rW,h1i,I_n,Ert,N_n,X_t,A_n,iX,nX,g1i,y1i,v1i,b1i,$_t,P_n,L_n,O_n,F_n,M_n,R_n,G_t,K_t,S1i,x1i,B_n,j_n,W_n,z_n,C1i,k1i,V_n,H_n,U_n,J_n,q_n,$_n,G_n,mj,Y_t,s1i,K_n,X_n,w1i,T1i,Gei,E1i,Y_n,D1i,a1i,c1i,l1i,nW,K6e,q6e,Q_n,$6e,Z_n,G6e,epn,X6e,tpn,ipn,npn,Q_t,Y6e,I1i,N1i,A1i,Xde=Ht(()=>{Fs();j1();iW();Wle();q_t();jC=cn("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:Kr.black,hcLight:Kr.white},de("editorBackground","Editor background color.")),pL=cn("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:Kr.white,hcLight:sa},de("editorForeground","Editor default foreground color.")),g_n=cn("editorStickyScroll.background",{light:jC,dark:jC,hcDark:jC,hcLight:jC},de("editorStickyScrollBackground","Background color of sticky scroll in the editor")),y_n=cn("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:Kr.fromHex("#0F4A85").transparent(.1)},de("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),v_n=cn("editorStickyScroll.border",{dark:null,light:null,hcDark:If,hcLight:If},de("editorStickyScrollBorder","Border color of sticky scroll in the editor")),b_n=cn("editorStickyScroll.shadow",{dark:fAe,light:fAe,hcDark:fAe,hcLight:fAe},de("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),Av=cn("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:Kr.white},de("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),JG=cn("editorWidget.foreground",{dark:sa,light:sa,hcDark:sa,hcLight:sa},de("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),qG=cn("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:If,hcLight:If},de("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),S_n=cn("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},de("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),x_n=cn("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},de("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),_j=cn("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},de("editorError.foreground","Foreground color of error squigglies in the editor.")),u1i=cn("editorError.border",{dark:null,light:null,hcDark:Kr.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},de("errorBorder","If set, color of double underlines for errors in the editor.")),Drt=cn("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},de("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),S2=cn("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},de("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),Gde=cn("editorWarning.border",{dark:null,light:null,hcDark:Kr.fromHex("#FFCC00").transparent(.8),hcLight:Kr.fromHex("#FFCC00").transparent(.8)},de("warningBorder","If set, color of double underlines for warnings in the editor.")),C_n=cn("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},de("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),F2=cn("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},de("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Kde=cn("editorInfo.border",{dark:null,light:null,hcDark:Kr.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},de("infoBorder","If set, color of double underlines for infos in the editor.")),d1i=cn("editorHint.foreground",{dark:Kr.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},de("editorHint.foreground","Foreground color of hint squigglies in the editor.")),k_n=cn("editorHint.border",{dark:null,light:null,hcDark:Kr.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},de("hintBorder","If set, color of double underlines for hints in the editor.")),f1i=cn("editorLink.activeForeground",{dark:"#4E94CE",light:Kr.blue,hcDark:Kr.cyan,hcLight:"#292929"},de("activeLinkForeground","Color of active links.")),zle=cn("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},de("editorSelectionBackground","Color of the editor selection.")),_1i=cn("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:Kr.white},de("editorSelectionForeground","Color of the selected text for high contrast.")),$ei=cn("editor.inactiveSelectionBackground",{light:cl(zle,.5),dark:cl(zle,.5),hcDark:cl(zle,.7),hcLight:cl(zle,.5)},de("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Irt=cn("editor.selectionHighlightBackground",{light:qei(zle,jC,.3,.6),dark:qei(zle,jC,.3,.6),hcDark:null,hcLight:null},de("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),w_n=cn("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:fg,hcLight:fg},de("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),T_n=cn("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},de("editorFindMatch","Color of the current search match.")),p1i=cn("editor.findMatchForeground",{light:null,dark:null,hcDark:null,hcLight:null},de("editorFindMatchForeground","Text color of the current search match.")),pj=cn("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},de("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),m1i=cn("editor.findMatchHighlightForeground",{light:null,dark:null,hcDark:null,hcLight:null},de("findMatchHighlightForeground","Foreground color of the other search matches."),!0),E_n=cn("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},de("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),D_n=cn("editor.findMatchBorder",{light:null,dark:null,hcDark:fg,hcLight:fg},de("editorFindMatchBorder","Border color of the current search match.")),rW=cn("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:fg,hcLight:fg},de("findMatchHighlightBorder","Border color of the other search matches.")),h1i=cn("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:cl(fg,.4),hcLight:cl(fg,.4)},de("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),I_n=cn("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},de("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Ert=cn("editorHoverWidget.background",{light:Av,dark:Av,hcDark:Av,hcLight:Av},de("hoverBackground","Background color of the editor hover.")),N_n=cn("editorHoverWidget.foreground",{light:JG,dark:JG,hcDark:JG,hcLight:JG},de("hoverForeground","Foreground color of the editor hover.")),X_t=cn("editorHoverWidget.border",{light:qG,dark:qG,hcDark:qG,hcLight:qG},de("hoverBorder","Border color of the editor hover.")),A_n=cn("editorHoverWidget.statusBarBackground",{dark:C7(Ert,.2),light:tX(Ert,.05),hcDark:Av,hcLight:Av},de("statusBarBackground","Background color of the editor hover status bar.")),iX=cn("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:Kr.white,hcLight:Kr.black},de("editorInlayHintForeground","Foreground color of inline hints")),nX=cn("editorInlayHint.background",{dark:cl(J6e,.1),light:cl(J6e,.1),hcDark:cl(Kr.white,.1),hcLight:cl(J6e,.1)},de("editorInlayHintBackground","Background color of inline hints")),g1i=cn("editorInlayHint.typeForeground",{dark:iX,light:iX,hcDark:iX,hcLight:iX},de("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),y1i=cn("editorInlayHint.typeBackground",{dark:nX,light:nX,hcDark:nX,hcLight:nX},de("editorInlayHintBackgroundTypes","Background color of inline hints for types")),v1i=cn("editorInlayHint.parameterForeground",{dark:iX,light:iX,hcDark:iX,hcLight:iX},de("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),b1i=cn("editorInlayHint.parameterBackground",{dark:nX,light:nX,hcDark:nX,hcLight:nX},de("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),$_t=cn("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},de("editorLightBulbForeground","The color used for the lightbulb actions icon.")),P_n=cn("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},de("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),L_n=cn("editorLightBulbAi.foreground",{dark:$_t,light:$_t,hcDark:$_t,hcLight:$_t},de("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),O_n=cn("editor.snippetTabstopHighlightBackground",{dark:new Kr(new Lf(124,124,124,.3)),light:new Kr(new Lf(10,50,100,.2)),hcDark:new Kr(new Lf(124,124,124,.3)),hcLight:new Kr(new Lf(10,50,100,.2))},de("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),F_n=cn("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},de("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),M_n=cn("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},de("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),R_n=cn("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new Kr(new Lf(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},de("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),G_t=new Kr(new Lf(155,185,85,.2)),K_t=new Kr(new Lf(255,0,0,.2)),S1i=cn("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},de("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),x1i=cn("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},de("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),B_n=cn("diffEditor.insertedLineBackground",{dark:G_t,light:G_t,hcDark:null,hcLight:null},de("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),j_n=cn("diffEditor.removedLineBackground",{dark:K_t,light:K_t,hcDark:null,hcLight:null},de("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),W_n=cn("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},de("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),z_n=cn("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},de("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),C1i=cn("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},de("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),k1i=cn("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},de("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),V_n=cn("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},de("diffEditorInsertedOutline","Outline color for the text that got inserted.")),H_n=cn("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},de("diffEditorRemovedOutline","Outline color for text that got removed.")),U_n=cn("diffEditor.border",{dark:null,light:null,hcDark:If,hcLight:If},de("diffEditorBorder","Border color between the two text editors.")),J_n=cn("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},de("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),q_n=cn("diffEditor.unchangedRegionBackground",{dark:"sideBar.background",light:"sideBar.background",hcDark:"sideBar.background",hcLight:"sideBar.background"},de("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),$_n=cn("diffEditor.unchangedRegionForeground",{dark:"foreground",light:"foreground",hcDark:"foreground",hcLight:"foreground"},de("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),G_n=cn("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},de("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),mj=cn("widget.shadow",{dark:cl(Kr.black,.36),light:cl(Kr.black,.16),hcDark:null,hcLight:null},de("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),Y_t=cn("widget.border",{dark:null,light:null,hcDark:If,hcLight:If},de("widgetBorder","Border color of widgets such as find/replace inside the editor.")),s1i=cn("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},de("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),K_n=cn("toolbar.hoverOutline",{dark:null,light:null,hcDark:fg,hcLight:fg},de("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),X_n=cn("toolbar.activeBackground",{dark:C7(s1i,.1),light:tX(s1i,.1),hcDark:null,hcLight:null},de("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),w1i=cn("breadcrumb.foreground",{light:cl(sa,.8),dark:cl(sa,.8),hcDark:cl(sa,.8),hcLight:cl(sa,.8)},de("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),T1i=cn("breadcrumb.background",{light:jC,dark:jC,hcDark:jC,hcLight:jC},de("breadcrumbsBackground","Background color of breadcrumb items.")),Gei=cn("breadcrumb.focusForeground",{light:tX(sa,.2),dark:C7(sa,.1),hcDark:C7(sa,.1),hcLight:C7(sa,.1)},de("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),E1i=cn("breadcrumb.activeSelectionForeground",{light:tX(sa,.2),dark:C7(sa,.1),hcDark:C7(sa,.1),hcLight:C7(sa,.1)},de("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),Y_n=cn("breadcrumbPicker.background",{light:Av,dark:Av,hcDark:Av,hcLight:Av},de("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),D1i=.5,a1i=Kr.fromHex("#40C8AE").transparent(D1i),c1i=Kr.fromHex("#40A6FF").transparent(D1i),l1i=Kr.fromHex("#606060").transparent(.4),nW=.4,K6e=1,q6e=cn("merge.currentHeaderBackground",{dark:a1i,light:a1i,hcDark:null,hcLight:null},de("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Q_n=cn("merge.currentContentBackground",{dark:cl(q6e,nW),light:cl(q6e,nW),hcDark:cl(q6e,nW),hcLight:cl(q6e,nW)},de("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),$6e=cn("merge.incomingHeaderBackground",{dark:c1i,light:c1i,hcDark:null,hcLight:null},de("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),Z_n=cn("merge.incomingContentBackground",{dark:cl($6e,nW),light:cl($6e,nW),hcDark:cl($6e,nW),hcLight:cl($6e,nW)},de("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),G6e=cn("merge.commonHeaderBackground",{dark:l1i,light:l1i,hcDark:null,hcLight:null},de("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),epn=cn("merge.commonContentBackground",{dark:cl(G6e,nW),light:cl(G6e,nW),hcDark:cl(G6e,nW),hcLight:cl(G6e,nW)},de("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),X6e=cn("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},de("mergeBorder","Border color on headers and the splitter in inline merge-conflicts.")),tpn=cn("editorOverviewRuler.currentContentForeground",{dark:cl(q6e,K6e),light:cl(q6e,K6e),hcDark:X6e,hcLight:X6e},de("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),ipn=cn("editorOverviewRuler.incomingContentForeground",{dark:cl($6e,K6e),light:cl($6e,K6e),hcDark:X6e,hcLight:X6e},de("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),npn=cn("editorOverviewRuler.commonContentForeground",{dark:cl(G6e,K6e),light:cl(G6e,K6e),hcDark:X6e,hcLight:X6e},de("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),Q_t=cn("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},de("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Y6e=cn("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},de("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),I1i=cn("problemsErrorIcon.foreground",{dark:_j,light:_j,hcDark:_j,hcLight:_j},de("problemsErrorIconForeground","The color used for the problems error icon.")),N1i=cn("problemsWarningIcon.foreground",{dark:S2,light:S2,hcDark:S2,hcLight:S2},de("problemsWarningIconForeground","The color used for the problems warning icon.")),A1i=cn("problemsInfoIcon.foreground",{dark:F2,light:F2,hcDark:F2,hcLight:F2},de("problemsInfoIconForeground","The color used for the problems info icon."))});var Yde,Nrt,Kei,P1i,L1i,O1i,F1i,M1i,lpn,upn,dpn,Xei=Ht(()=>{Fs();j1();iW();Xde();q_t();Yde=cn("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},de("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Nrt=cn("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},de("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),Kei=cn("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},de("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),P1i=cn("minimap.infoHighlight",{dark:F2,light:F2,hcDark:Kde,hcLight:Kde},de("minimapInfo","Minimap marker color for infos.")),L1i=cn("minimap.warningHighlight",{dark:S2,light:S2,hcDark:Gde,hcLight:Gde},de("overviewRuleWarning","Minimap marker color for warnings.")),O1i=cn("minimap.errorHighlight",{dark:new Kr(new Lf(255,18,18,.7)),light:new Kr(new Lf(255,18,18,.7)),hcDark:new Kr(new Lf(255,50,50,1)),hcLight:"#B5200D"},de("minimapError","Minimap marker color for errors.")),F1i=cn("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},de("minimapBackground","Minimap background color.")),M1i=cn("minimap.foregroundOpacity",{dark:Kr.fromHex("#000f"),light:Kr.fromHex("#000f"),hcDark:Kr.fromHex("#000f"),hcLight:Kr.fromHex("#000f")},de("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),lpn=cn("minimapSlider.background",{light:cl(_Ae,.5),dark:cl(_Ae,.5),hcDark:cl(_Ae,.5),hcLight:cl(_Ae,.5)},de("minimapSliderBackground","Minimap slider background color.")),upn=cn("minimapSlider.hoverBackground",{light:cl(pAe,.5),dark:cl(pAe,.5),hcDark:cl(pAe,.5),hcLight:cl(pAe,.5)},de("minimapSliderHoverBackground","Minimap slider background color when hovering.")),dpn=cn("minimapSlider.activeBackground",{light:cl(mAe,.5),dark:cl(mAe,.5),hcDark:cl(mAe,.5),hcLight:cl(mAe,.5)},de("minimapSliderActiveBackground","Minimap slider background color when clicked on."))});var gpn,ypn,vpn,bpn,Spn,xpn,Cpn,kpn,R1i=Ht(()=>{Fs();iW();Wle();Xde();Xei();gpn=cn("charts.foreground",{dark:sa,light:sa,hcDark:sa,hcLight:sa},de("chartsForeground","The foreground color used in charts.")),ypn=cn("charts.lines",{dark:cl(sa,.5),light:cl(sa,.5),hcDark:cl(sa,.5),hcLight:cl(sa,.5)},de("chartsLines","The color used for horizontal lines in charts.")),vpn=cn("charts.red",{dark:_j,light:_j,hcDark:_j,hcLight:_j},de("chartsRed","The red color used in chart visualizations.")),bpn=cn("charts.blue",{dark:F2,light:F2,hcDark:F2,hcLight:F2},de("chartsBlue","The blue color used in chart visualizations.")),Spn=cn("charts.yellow",{dark:S2,light:S2,hcDark:S2,hcLight:S2},de("chartsYellow","The yellow color used in chart visualizations.")),xpn=cn("charts.orange",{dark:Yde,light:Yde,hcDark:Yde,hcLight:Yde},de("chartsOrange","The orange color used in chart visualizations.")),Cpn=cn("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},de("chartsGreen","The green color used in chart visualizations.")),kpn=cn("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},de("chartsPurple","The purple color used in chart visualizations."))});var Art,ept,tpt,eLe,Npn,GG,tLe,Apn,B1i,j1i,W1i,z1i,V1i,H1i,U1i,J1i,q1i,oW,$1i,$G,Qde,Q6e,G1i,Z6e,K1i,X1i,Y1i,Z_t,Q1i,Z1i,Ppn,ebi,tbi,Lpn,ibi,nbi,rbi,obi,Yei=Ht(()=>{Fs();j1();iW();Wle();Xde();Art=cn("input.background",{dark:"#3C3C3C",light:Kr.white,hcDark:Kr.black,hcLight:Kr.white},de("inputBoxBackground","Input box background.")),ept=cn("input.foreground",{dark:sa,light:sa,hcDark:sa,hcLight:sa},de("inputBoxForeground","Input box foreground.")),tpt=cn("input.border",{dark:null,light:null,hcDark:If,hcLight:If},de("inputBoxBorder","Input box border.")),eLe=cn("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:If,hcLight:If},de("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),Npn=cn("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},de("inputOption.hoverBackground","Background color of activated options in input fields.")),GG=cn("inputOption.activeBackground",{dark:cl(_L,.4),light:cl(_L,.2),hcDark:Kr.transparent,hcLight:Kr.transparent},de("inputOption.activeBackground","Background hover color of options in input fields.")),tLe=cn("inputOption.activeForeground",{dark:Kr.white,light:Kr.black,hcDark:sa,hcLight:sa},de("inputOption.activeForeground","Foreground color of activated options in input fields.")),Apn=cn("input.placeholderForeground",{light:cl(sa,.5),dark:cl(sa,.5),hcDark:cl(sa,.7),hcLight:cl(sa,.7)},de("inputPlaceholderForeground","Input box foreground color for placeholder text.")),B1i=cn("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:Kr.black,hcLight:Kr.white},de("inputValidationInfoBackground","Input validation background color for information severity.")),j1i=cn("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:sa},de("inputValidationInfoForeground","Input validation foreground color for information severity.")),W1i=cn("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:If,hcLight:If},de("inputValidationInfoBorder","Input validation border color for information severity.")),z1i=cn("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:Kr.black,hcLight:Kr.white},de("inputValidationWarningBackground","Input validation background color for warning severity.")),V1i=cn("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:sa},de("inputValidationWarningForeground","Input validation foreground color for warning severity.")),H1i=cn("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:If,hcLight:If},de("inputValidationWarningBorder","Input validation border color for warning severity.")),U1i=cn("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:Kr.black,hcLight:Kr.white},de("inputValidationErrorBackground","Input validation background color for error severity.")),J1i=cn("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:sa},de("inputValidationErrorForeground","Input validation foreground color for error severity.")),q1i=cn("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:If,hcLight:If},de("inputValidationErrorBorder","Input validation border color for error severity.")),oW=cn("dropdown.background",{dark:"#3C3C3C",light:Kr.white,hcDark:Kr.black,hcLight:Kr.white},de("dropdownBackground","Dropdown background.")),$1i=cn("dropdown.listBackground",{dark:null,light:null,hcDark:Kr.black,hcLight:Kr.white},de("dropdownListBackground","Dropdown list background.")),$G=cn("dropdown.foreground",{dark:"#F0F0F0",light:sa,hcDark:Kr.white,hcLight:sa},de("dropdownForeground","Dropdown foreground.")),Qde=cn("dropdown.border",{dark:oW,light:"#CECECE",hcDark:If,hcLight:If},de("dropdownBorder","Dropdown border.")),Q6e=cn("button.foreground",{dark:Kr.white,light:Kr.white,hcDark:Kr.white,hcLight:Kr.white},de("buttonForeground","Button foreground color.")),G1i=cn("button.separator",{dark:cl(Q6e,.4),light:cl(Q6e,.4),hcDark:cl(Q6e,.4),hcLight:cl(Q6e,.4)},de("buttonSeparator","Button separator color.")),Z6e=cn("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},de("buttonBackground","Button background color.")),K1i=cn("button.hoverBackground",{dark:C7(Z6e,.2),light:tX(Z6e,.2),hcDark:Z6e,hcLight:Z6e},de("buttonHoverBackground","Button background color when hovering.")),X1i=cn("button.border",{dark:If,light:If,hcDark:If,hcLight:If},de("buttonBorder","Button border color.")),Y1i=cn("button.secondaryForeground",{dark:Kr.white,light:Kr.white,hcDark:Kr.white,hcLight:sa},de("buttonSecondaryForeground","Secondary button foreground color.")),Z_t=cn("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:Kr.white},de("buttonSecondaryBackground","Secondary button background color.")),Q1i=cn("button.secondaryHoverBackground",{dark:C7(Z_t,.2),light:tX(Z_t,.2),hcDark:null,hcLight:null},de("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),Z1i=cn("checkbox.background",{dark:oW,light:oW,hcDark:oW,hcLight:oW},de("checkbox.background","Background color of checkbox widget.")),Ppn=cn("checkbox.selectBackground",{dark:Av,light:Av,hcDark:Av,hcLight:Av},de("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),ebi=cn("checkbox.foreground",{dark:$G,light:$G,hcDark:$G,hcLight:$G},de("checkbox.foreground","Foreground color of checkbox widget.")),tbi=cn("checkbox.border",{dark:Qde,light:Qde,hcDark:Qde,hcLight:Qde},de("checkbox.border","Border color of checkbox widget.")),Lpn=cn("checkbox.selectBorder",{dark:fj,light:fj,hcDark:fj,hcLight:fj},de("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),ibi=cn("keybindingLabel.background",{dark:new Kr(new Lf(128,128,128,.17)),light:new Kr(new Lf(221,221,221,.4)),hcDark:Kr.transparent,hcLight:Kr.transparent},de("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),nbi=cn("keybindingLabel.foreground",{dark:Kr.fromHex("#CCCCCC"),light:Kr.fromHex("#555555"),hcDark:Kr.white,hcLight:sa},de("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),rbi=cn("keybindingLabel.border",{dark:new Kr(new Lf(51,51,51,.6)),light:new Kr(new Lf(204,204,204,.4)),hcDark:new Kr(new Lf(111,195,223)),hcLight:If},de("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),obi=cn("keybindingLabel.bottomBorder",{dark:new Kr(new Lf(68,68,68,.6)),light:new Kr(new Lf(187,187,187,.4)),hcDark:new Kr(new Lf(111,195,223)),hcLight:sa},de("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut."))});var sbi,abi,cbi,lbi,sW,hj,hAe,ubi,dbi,fbi,_bi,pbi,Qei,Zei,mbi,hbi,k7,Prt,jpn,Wpn,zpn,gbi,ybi,vbi,bbi,Vpn,Hpn,Upn,iLe,Sbi,xbi,Cbi,ipt=Ht(()=>{Fs();j1();iW();Wle();Xde();sbi=cn("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},de("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),abi=cn("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},de("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),cbi=cn("list.focusOutline",{dark:_L,light:_L,hcDark:fg,hcLight:fg},de("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),lbi=cn("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},de("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),sW=cn("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:Kr.fromHex("#0F4A85").transparent(.1)},de("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),hj=cn("list.activeSelectionForeground",{dark:Kr.white,light:Kr.white,hcDark:null,hcLight:null},de("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),hAe=cn("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},de("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ubi=cn("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:Kr.fromHex("#0F4A85").transparent(.1)},de("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),dbi=cn("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},de("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),fbi=cn("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},de("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),_bi=cn("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},de("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),pbi=cn("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},de("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Qei=cn("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:Kr.white.transparent(.1),hcLight:Kr.fromHex("#0F4A85").transparent(.1)},de("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Zei=cn("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},de("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),mbi=cn("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},de("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),hbi=cn("list.dropBetweenBackground",{dark:fj,light:fj,hcDark:null,hcLight:null},de("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),k7=cn("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:_L,hcLight:_L},de("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Prt=cn("list.focusHighlightForeground",{dark:k7,light:e1i(sW,k7,"#BBE7FF"),hcDark:k7,hcLight:k7},de("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),jpn=cn("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},de("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),Wpn=cn("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},de("listErrorForeground","Foreground color of list items containing errors.")),zpn=cn("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},de("listWarningForeground","Foreground color of list items containing warnings.")),gbi=cn("listFilterWidget.background",{light:tX(Av,0),dark:C7(Av,0),hcDark:Av,hcLight:Av},de("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),ybi=cn("listFilterWidget.outline",{dark:Kr.transparent,light:Kr.transparent,hcDark:"#f38518",hcLight:"#007ACC"},de("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),vbi=cn("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:If,hcLight:If},de("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),bbi=cn("listFilterWidget.shadow",{dark:mj,light:mj,hcDark:mj,hcLight:mj},de("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),Vpn=cn("list.filterMatchBackground",{dark:pj,light:pj,hcDark:null,hcLight:null},de("listFilterMatchHighlight","Background color of the filtered match.")),Hpn=cn("list.filterMatchBorder",{dark:rW,light:rW,hcDark:If,hcLight:fg},de("listFilterMatchHighlightBorder","Border color of the filtered match.")),Upn=cn("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},de("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),iLe=cn("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},de("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Sbi=cn("tree.inactiveIndentGuidesStroke",{dark:cl(iLe,.4),light:cl(iLe,.4),hcDark:cl(iLe,.4),hcLight:cl(iLe,.4)},de("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),xbi=cn("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},de("tableColumnsBorder","Table border color between columns.")),Cbi=cn("tree.tableOddRowsBackground",{dark:cl(sa,.04),light:cl(sa,.04),hcDark:null,hcLight:null},de("tableOddRowsBackgroundColor","Background color for odd table rows."))});var kbi,wbi,Tbi,Ebi,Dbi,Ibi,Nbi,Abi=Ht(()=>{Fs();iW();Wle();Yei();ipt();kbi=cn("menu.border",{dark:null,light:null,hcDark:If,hcLight:If},de("menuBorder","Border color of menus.")),wbi=cn("menu.foreground",{dark:$G,light:$G,hcDark:$G,hcLight:$G},de("menuForeground","Foreground color of menu items.")),Tbi=cn("menu.background",{dark:oW,light:oW,hcDark:oW,hcLight:oW},de("menuBackground","Background color of menu items.")),Ebi=cn("menu.selectionForeground",{dark:hj,light:hj,hcDark:hj,hcLight:hj},de("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Dbi=cn("menu.selectionBackground",{dark:sW,light:sW,hcDark:sW,hcLight:sW},de("menuSelectionBackground","Background color of the selected menu item in menus.")),Ibi=cn("menu.selectionBorder",{dark:null,light:null,hcDark:fg,hcLight:fg},de("menuSelectionBorder","Border color of the selected menu item in menus.")),Nbi=cn("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:If,hcLight:If},de("menuSeparatorBackground","Color of a separator menu item in menus."))});var eti,Lbi,Obi,npt,Fbi,Pbi,aW,Vle,cW,Mbi=Ht(()=>{Fs();j1();iW();Xde();ipt();eti=cn("quickInput.background",{dark:Av,light:Av,hcDark:Av,hcLight:Av},de("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),Lbi=cn("quickInput.foreground",{dark:JG,light:JG,hcDark:JG,hcLight:JG},de("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),Obi=cn("quickInputTitle.background",{dark:new Kr(new Lf(255,255,255,.105)),light:new Kr(new Lf(0,0,0,.06)),hcDark:"#000000",hcLight:Kr.white},de("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),npt=cn("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:Kr.white,hcLight:"#0F4A85"},de("pickerGroupForeground","Quick picker color for grouping labels.")),Fbi=cn("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:Kr.white,hcLight:"#0F4A85"},de("pickerGroupBorder","Quick picker color for grouping borders.")),Pbi=cn("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,de("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),aW=cn("quickInputList.focusForeground",{dark:hj,light:hj,hcDark:hj,hcLight:hj},de("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),Vle=cn("quickInputList.focusIconForeground",{dark:hAe,light:hAe,hcDark:hAe,hcLight:hAe},de("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),cW=cn("quickInputList.focusBackground",{dark:dAe(Pbi,sW),light:dAe(Pbi,sW),hcDark:null,hcLight:null},de("quickInput.listFocusBackground","Quick picker background color for the focused item."))});var omn,smn,amn,Rbi=Ht(()=>{Fs();iW();Wle();Xde();omn=cn("search.resultsInfoForeground",{light:sa,dark:cl(sa,.65),hcDark:sa,hcLight:sa},de("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),smn=cn("searchEditor.findMatchBackground",{light:cl(pj,.66),dark:cl(pj,.66),hcDark:pj,hcLight:pj},de("searchEditor.queryMatch","Color of the Search Editor query matches.")),amn=cn("searchEditor.findMatchBorder",{light:cl(rW,.66),dark:cl(rW,.66),hcDark:rW,hcLight:rW},de("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))});var Sv=Ht(()=>{iW();Wle();R1i();Xde();Yei();ipt();Abi();Xei();q_t();Mbi();Rbi()});function apt(l){let i=Qm(l);return new tti(i.left,i.top,i.width,i.height)}function cpt(l,i,o){let s=i.width/l.offsetWidth,c=i.height/l.offsetHeight,_=(o.x-i.x)/s,h=(o.y-i.y)/c;return new iti(_,h)}function q9i(l){return l.replace(/(^[A-Z])/,([i])=>i.toLowerCase()).replace(/([A-Z])/g,([i])=>`-${i.toLowerCase()}`)}var Zde,Lrt,tti,iti,lW,rpt,opt,spt,gAe,nti,nLe=Ht(()=>{va();U6e();h7();Bu();$r();Sv();Zde=class{constructor(i,o){this.x=i,this.y=o,this._pageCoordinatesBrand=void 0}toClientCoordinates(i){return new Lrt(this.x-i.scrollX,this.y-i.scrollY)}},Lrt=class{constructor(i,o){this.clientX=i,this.clientY=o,this._clientCoordinatesBrand=void 0}toPageCoordinates(i){return new Zde(this.clientX+i.scrollX,this.clientY+i.scrollY)}},tti=class{constructor(i,o,s,c){this.x=i,this.y=o,this.width=s,this.height=c,this._editorPagePositionBrand=void 0}},iti=class{constructor(i,o){this.x=i,this.y=o,this._positionRelativeToEditorBrand=void 0}};lW=class extends h2{constructor(i,o,s){super(Xa(s),i),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=o,this.pos=new Zde(this.posx,this.posy),this.editorPos=apt(s),this.relativePos=cpt(s,this.editorPos,this.pos)}},rpt=class{constructor(i){this._editorViewDomNode=i}_create(i){return new lW(i,!1,this._editorViewDomNode)}onContextMenu(i,o){return Tr(i,"contextmenu",s=>{o(this._create(s))})}onMouseUp(i,o){return Tr(i,"mouseup",s=>{o(this._create(s))})}onMouseDown(i,o){return Tr(i,$o.MOUSE_DOWN,s=>{o(this._create(s))})}onPointerDown(i,o){return Tr(i,$o.POINTER_DOWN,s=>{o(this._create(s),s.pointerId)})}onMouseLeave(i,o){return Tr(i,$o.MOUSE_LEAVE,s=>{o(this._create(s))})}onMouseMove(i,o){return Tr(i,"mousemove",s=>o(this._create(s)))}},opt=class{constructor(i){this._editorViewDomNode=i}_create(i){return new lW(i,!1,this._editorViewDomNode)}onPointerUp(i,o){return Tr(i,"pointerup",s=>{o(this._create(s))})}onPointerDown(i,o){return Tr(i,$o.POINTER_DOWN,s=>{o(this._create(s),s.pointerId)})}onPointerLeave(i,o){return Tr(i,$o.POINTER_LEAVE,s=>{o(this._create(s))})}onPointerMove(i,o){return Tr(i,"pointermove",s=>o(this._create(s)))}},spt=class extends Ui{constructor(i){super(),this._editorViewDomNode=i,this._globalPointerMoveMonitor=this._register(new dj),this._keydownListener=null}startMonitoring(i,o,s,c,_){this._keydownListener=Cm(i.ownerDocument,"keydown",h=>{h.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,h.browserEvent)},!0),this._globalPointerMoveMonitor.startMonitoring(i,o,s,h=>{c(new lW(h,!0,this._editorViewDomNode))},h=>{this._keydownListener.dispose(),_(h)})}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}},gAe=class l{constructor(i){this._editor=i,this._instanceId=++l._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new Bd(()=>this.garbageCollect(),1e3)}createClassNameRef(i){let o=this.getOrCreateRule(i);return o.increaseRefCount(),{className:o.className,dispose:()=>{o.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(i){let o=this.computeUniqueKey(i),s=this._rules.get(o);if(!s){let c=this._counter++;s=new nti(o,`dyn-rule-${this._instanceId}-${c}`,MNe(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,i),this._rules.set(o,s)}return s}computeUniqueKey(i){return JSON.stringify(i)}garbageCollect(){for(let i of this._rules.values())i.hasReferences()||(this._rules.delete(i.key),i.dispose())}};gAe._idPool=0;nti=class{constructor(i,o,s,c){this.key=i,this.className=o,this.properties=c,this._referenceCount=0,this._styleElementDisposables=new pr,this._styleElement=ww(s,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(i,o){let s=`.${i} {`;for(let c in o){let _=o[c],h;typeof _=="object"?h=ec(_.id):h=_;let b=q9i(c);s+=` + ${b}: ${h};`}return s+=` +}`,s}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}});var uW,rLe=Ht(()=>{$r();uW=class extends Ui{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(i){return!1}onCompositionEnd(i){return!1}onConfigurationChanged(i){return!1}onCursorStateChanged(i){return!1}onDecorationsChanged(i){return!1}onFlushed(i){return!1}onFocusChanged(i){return!1}onLanguageConfigurationChanged(i){return!1}onLineMappingChanged(i){return!1}onLinesChanged(i){return!1}onLinesDeleted(i){return!1}onLinesInserted(i){return!1}onRevealRangeRequest(i){return!1}onScrollChanged(i){return!1}onThemeChanged(i){return!1}onTokensChanged(i){return!1}onTokensColorsChanged(i){return!1}onZonesChanged(i){return!1}handleEvents(i){let o=!1;for(let s=0,c=i.length;s{rLe();W1=class extends uW{constructor(i){super(),this._context=i,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}},GD=class{static write(i,o){i.setAttribute("data-mprt",String(o))}static read(i){let o=i.getAttribute("data-mprt");return o===null?0:parseInt(o,10)}static collect(i,o){let s=[],c=0;for(;i&&i!==i.ownerDocument.body&&i!==o;)i.nodeType===i.ELEMENT_NODE&&(s[c++]=this.read(i)),i=i.parentElement;let _=new Uint8Array(c);for(let h=0;h{rti=class{constructor(i,o){this._restrictedRenderingContextBrand=void 0,this._viewLayout=i,this.viewportData=o,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;let s=this._viewLayout.getCurrentViewport();this.scrollTop=s.top,this.scrollLeft=s.left,this.viewportWidth=s.width,this.viewportHeight=s.height}getScrolledTopFromAbsoluteTop(i){return i-this.scrollTop}getVerticalOffsetForLineNumber(i,o){return this._viewLayout.getVerticalOffsetForLineNumber(i,o)}getVerticalOffsetAfterLineNumber(i,o){return this._viewLayout.getVerticalOffsetAfterLineNumber(i,o)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}},lpt=class extends rti{constructor(i,o,s){super(i,o),this._renderingContextBrand=void 0,this._viewLines=s}linesVisibleRangesForRange(i,o){return this._viewLines.linesVisibleRangesForRange(i,o)}visibleRangeForPosition(i){return this._viewLines.visibleRangeForPosition(i)}},upt=class{constructor(i,o,s,c){this.outsideRenderedLine=i,this.lineNumber=o,this.ranges=s,this.continuesOnNextLine=c}},oLe=class l{static from(i){let o=new Array(i.length);for(let s=0,c=i.length;s{sLe();yAe=class{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(i,o){i.selectNodeContents(o)}static _readClientRects(i,o,s,c,_){let h=this._createRange();try{return h.setStart(i,o),h.setEnd(s,c),h.getClientRects()}catch{return null}finally{this._detachRange(h,_)}}static _mergeAdjacentRanges(i){if(i.length===1)return i;i.sort(KG.compare);let o=[],s=0,c=i[0];for(let _=1,h=i.length;_=b.left?c.width=Math.max(c.width,b.left+b.width-c.left):(o[s++]=c,c=b)}return o[s++]=c,o}static _createHorizontalRangesFromClientRects(i,o,s){if(!i||i.length===0)return null;let c=[];for(let _=0,h=i.length;_w)return null;if(o=Math.min(w,Math.max(0,o)),c=Math.min(w,Math.max(0,c)),o===c&&s===_&&s===0&&!i.children[o].firstChild){let F=i.children[o].getClientRects();return h.markDidDomLayout(),this._createHorizontalRangesFromClientRects(F,h.clientRectDeltaLeft,h.clientRectScale)}o!==c&&c>0&&_===0&&(c--,_=1073741824);let D=i.children[o].firstChild,O=i.children[c].firstChild;if((!D||!O)&&(!D&&s===0&&o>0&&(D=i.children[o-1].firstChild,s=1073741824),!O&&_===0&&c>0&&(O=i.children[c-1].firstChild,_=1073741824)),!D||!O)return null;s=Math.min(D.textContent.length,Math.max(0,s)),_=Math.min(O.textContent.length,Math.max(0,_));let j=this._readClientRects(D,s,O,_,h.endNode);return h.markDidDomLayout(),this._createHorizontalRangesFromClientRects(j,h.clientRectDeltaLeft,h.clientRectScale)}}});function ZA(l){return l===UF.HIGH_CONTRAST_DARK||l===UF.HIGH_CONTRAST_LIGHT}function rX(l){return l===UF.DARK||l===UF.HIGH_CONTRAST_DARK}var UF,dW=Ht(()=>{(function(l){l.DARK="dark",l.LIGHT="light",l.HIGH_CONTRAST_DARK="hcDark",l.HIGH_CONTRAST_LIGHT="hcLight"})(UF||(UF={}))});function G9i(l,i,o,s,c){return new oti(l,i,o,s,c)}function K9i(l,i,o,s,c){return new fpt(l,i,o,s,c)}function _pt(l,i,o){let s=i.textContent.length,c=-1;for(;i;)i=i.previousSibling,c++;return l.getColumn(new vrt(c,o),s)}var $9i,cLe,Frt,fW,aLe,fpt,oti,jbi,ppt=Ht(()=>{RL();Tw();uf();Bbi();sLe();nAe();qde();dW();FC();$9i=function(){return LL?!0:!(w1||m2||MF)}(),cLe=!0,Frt=class{constructor(i,o){this.themeType=o;let s=i.options,c=s.get(50);s.get(38)==="off"?this.renderWhitespace=s.get(99):this.renderWhitespace="none",this.renderControlCharacters=s.get(94),this.spaceWidth=c.spaceWidth,this.middotWidth=c.middotWidth,this.wsmiddotWidth=c.wsmiddotWidth,this.useMonospaceOptimizations=c.isMonospace&&!s.get(33),this.canUseHalfwidthRightwardsArrow=c.canUseHalfwidthRightwardsArrow,this.lineHeight=s.get(67),this.stopRenderingLineAfter=s.get(117),this.fontLigatures=s.get(51)}equals(i){return this.themeType===i.themeType&&this.renderWhitespace===i.renderWhitespace&&this.renderControlCharacters===i.renderControlCharacters&&this.spaceWidth===i.spaceWidth&&this.middotWidth===i.middotWidth&&this.wsmiddotWidth===i.wsmiddotWidth&&this.useMonospaceOptimizations===i.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===i.canUseHalfwidthRightwardsArrow&&this.lineHeight===i.lineHeight&&this.stopRenderingLineAfter===i.stopRenderingLineAfter&&this.fontLigatures===i.fontLigatures}},fW=class l{constructor(i){this._options=i,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(i){if(this._renderedViewLine)this._renderedViewLine.domNode=cf(i);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(i){this._isMaybeInvalid=!0,this._options=i}onSelectionChanged(){return ZA(this._options.themeType)||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(i,o,s,c,_){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;let h=c.getViewLineRenderingData(i),b=this._options,w=dI.filter(h.inlineDecorations,i,h.minColumn,h.maxColumn),D=null;if(ZA(b.themeType)||this._options.renderWhitespace==="selection"){let X=c.selections;for(let K of X){if(K.endLineNumberi)continue;let re=K.startLineNumber===i?K.startColumn:h.minColumn,Pe=K.endLineNumber===i?K.endColumn:h.maxColumn;re');let j=Rle(O,_);_.appendString("");let F=null;return cLe&&$9i&&h.isBasicASCII&&b.useMonospaceOptimizations&&j.containsForeignElements===0&&(F=new aLe(this._renderedViewLine?this._renderedViewLine.domNode:null,O,j.characterMapping)),F||(F=jbi(this._renderedViewLine?this._renderedViewLine.domNode:null,O,j.characterMapping,j.containsRTL,j.containsForeignElements)),this._renderedViewLine=F,!0}layoutLine(i,o,s){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(o),this._renderedViewLine.domNode.setHeight(s))}getWidth(i){return this._renderedViewLine?this._renderedViewLine.getWidth(i):0}getWidthIsFast(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0}needsMonospaceFontCheck(){return this._renderedViewLine?this._renderedViewLine instanceof aLe:!1}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof aLe?this._renderedViewLine.monospaceAssumptionsAreValid():cLe}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof aLe&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(i,o,s,c){if(!this._renderedViewLine)return null;o=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,o)),s=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,s));let _=this._renderedViewLine.input.stopRenderingLineAfter;if(_!==-1&&o>_+1&&s>_+1)return new Ort(!0,[new KG(this.getWidth(c),0)]);_!==-1&&o>_+1&&(o=_+1),_!==-1&&s>_+1&&(s=_+1);let h=this._renderedViewLine.getVisibleRangesForRange(i,o,s,c);return h&&h.length>0?new Ort(!1,h):null}getColumnOfNodeOffset(i,o){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(i,o):1}};fW.CLASS_NAME="view-line";aLe=class{constructor(i,o,s){this._cachedWidth=-1,this.domNode=i,this.input=o;let c=Math.floor(o.lineContent.length/300);if(c>0){this._keyColumnPixelOffsetCache=new Float32Array(c);for(let _=0;_=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),cLe=!1)}return cLe}toSlowRenderedLine(){return jbi(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(i,o,s,c){let _=this._getColumnPixelOffset(i,o,c),h=this._getColumnPixelOffset(i,s,c);return[new KG(_,h-_)]}_getColumnPixelOffset(i,o,s){if(o<=300){let D=this._characterMapping.getHorizontalOffset(o);return this._charWidth*D}let c=Math.floor((o-1)/300)-1,_=(c+1)*300+1,h=-1;if(this._keyColumnPixelOffsetCache&&(h=this._keyColumnPixelOffsetCache[c],h===-1&&(h=this._actualReadPixelOffset(i,_,s),this._keyColumnPixelOffsetCache[c]=h)),h===-1){let D=this._characterMapping.getHorizontalOffset(o);return this._charWidth*D}let b=this._characterMapping.getHorizontalOffset(_),w=this._characterMapping.getHorizontalOffset(o);return h+this._charWidth*(w-b)}_getReadingTarget(i){return i.domNode.firstChild}_actualReadPixelOffset(i,o,s){if(!this.domNode)return-1;let c=this._characterMapping.getDomPosition(o),_=yAe.readHorizontalRanges(this._getReadingTarget(this.domNode),c.partIndex,c.charIndex,c.partIndex,c.charIndex,s);return!_||_.length===0?-1:_[0].left}getColumnOfNodeOffset(i,o){return _pt(this._characterMapping,i,o)}},fpt=class{constructor(i,o,s,c,_){if(this.domNode=i,this.input=o,this._characterMapping=s,this._isWhitespaceOnly=/^\s*$/.test(o.lineContent),this._containsForeignElements=_,this._cachedWidth=-1,this._pixelOffsetCache=null,!c||this._characterMapping.length===0){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let h=0,b=this._characterMapping.length;h<=b;h++)this._pixelOffsetCache[h]=-1}}_getReadingTarget(i){return i.domNode.firstChild}getWidth(i){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,i?.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(i,o,s,c){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){let _=this._readPixelOffset(this.domNode,i,o,c);if(_===-1)return null;let h=this._readPixelOffset(this.domNode,i,s,c);return h===-1?null:[new KG(_,h-_)]}return this._readVisibleRangesForRange(this.domNode,i,o,s,c)}_readVisibleRangesForRange(i,o,s,c,_){if(s===c){let h=this._readPixelOffset(i,o,s,_);return h===-1?null:[new KG(h,0)]}else return this._readRawVisibleRangesForRange(i,s,c,_)}_readPixelOffset(i,o,s,c){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth(c);let _=this._getReadingTarget(i);return _.firstChild?(c.markDidDomLayout(),_.firstChild.offsetWidth):0}if(this._pixelOffsetCache!==null){let _=this._pixelOffsetCache[s];if(_!==-1)return _;let h=this._actualReadPixelOffset(i,o,s,c);return this._pixelOffsetCache[s]=h,h}return this._actualReadPixelOffset(i,o,s,c)}_actualReadPixelOffset(i,o,s,c){if(this._characterMapping.length===0){let w=yAe.readHorizontalRanges(this._getReadingTarget(i),0,0,0,0,c);return!w||w.length===0?-1:w[0].left}if(s===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth(c);let _=this._characterMapping.getDomPosition(s),h=yAe.readHorizontalRanges(this._getReadingTarget(i),_.partIndex,_.charIndex,_.partIndex,_.charIndex,c);if(!h||h.length===0)return-1;let b=h[0].left;if(this.input.isBasicASCII){let w=this._characterMapping.getHorizontalOffset(s),D=Math.round(this.input.spaceWidth*w);if(Math.abs(D-b)<=1)return D}return b}_readRawVisibleRangesForRange(i,o,s,c){if(o===1&&s===this._characterMapping.length)return[new KG(0,this.getWidth(c))];let _=this._characterMapping.getDomPosition(o),h=this._characterMapping.getDomPosition(s);return yAe.readHorizontalRanges(this._getReadingTarget(i),_.partIndex,_.charIndex,h.partIndex,h.charIndex,c)}getColumnOfNodeOffset(i,o){return _pt(this._characterMapping,i,o)}},oti=class extends fpt{_readVisibleRangesForRange(i,o,s,c,_){let h=super._readVisibleRangesForRange(i,o,s,c,_);if(!h||h.length===0||s===c||s===1&&c===this._characterMapping.length)return h;if(!this.input.containsRTL){let b=this._readPixelOffset(i,o,c,_);if(b!==-1){let w=h[h.length-1];w.left{Bl();xv=class l{static _nextVisibleColumn(i,o,s){return i===9?l.nextRenderTabStop(o,s):ej(i)||Tnt(i)?o+2:o+1}static visibleColumnFromColumn(i,o,s){let c=Math.min(o-1,i.length),_=i.substring(0,c),h=new ANe(_),b=0;for(;!h.eol();){let w=Q4e(_,c,h.offset);h.nextGraphemeLength(),b=this._nextVisibleColumn(w,b,s)}return b}static columnFromVisibleColumn(i,o,s){if(o<=0)return 1;let c=i.length,_=new ANe(i),h=0,b=1;for(;!_.eol();){let w=Q4e(i,c,_.offset);_.nextGraphemeLength();let D=this._nextVisibleColumn(w,h,s),O=_.offset+1;if(D>=o){let j=o-h;return D-o{_W();vAe=class l{static whitespaceVisibleColumn(i,o,s){let c=i.length,_=0,h=-1,b=-1;for(let w=0;w_.left+_.width)Pe=K.length;else{let Je=gpt.getInstance();for(let Ye=0;Ye{nLe();gP();ppt();Ll();ca();_W();va();sti();AG();oX=class{constructor(i=null){this.hitTarget=i,this.type=0}},mpt=class{get hitTarget(){return this.spanNode}constructor(i,o,s){this.position=i,this.spanNode=o,this.injectedText=s,this.type=1}};(function(l){function i(o,s,c){let _=o.getPositionFromDOMInfo(s,c);return _?new mpt(_,s,null):new oX(s)}l.createFromDOMInfo=i})(bAe||(bAe={}));hpt=class{constructor(i,o){this.lastViewCursorsRenderData=i,this.lastTextareaPosition=o}},KD=class{static _deduceRage(i,o=null){return!o&&i?new Vt(i.lineNumber,i.column,i.lineNumber,i.column):o??null}static createUnknown(i,o,s){return{type:0,element:i,mouseColumn:o,position:s,range:this._deduceRage(s)}}static createTextarea(i,o){return{type:1,element:i,mouseColumn:o,position:null,range:null}}static createMargin(i,o,s,c,_,h){return{type:i,element:o,mouseColumn:s,position:c,range:_,detail:h}}static createViewZone(i,o,s,c,_){return{type:i,element:o,mouseColumn:s,position:c,range:this._deduceRage(c),detail:_}}static createContentText(i,o,s,c,_){return{type:6,element:i,mouseColumn:o,position:s,range:this._deduceRage(s,c),detail:_}}static createContentEmpty(i,o,s,c){return{type:7,element:i,mouseColumn:o,position:s,range:this._deduceRage(s),detail:c}}static createContentWidget(i,o,s){return{type:9,element:i,mouseColumn:o,position:null,range:null,detail:s}}static createScrollbar(i,o,s){return{type:11,element:i,mouseColumn:o,position:s,range:this._deduceRage(s)}}static createOverlayWidget(i,o,s){return{type:12,element:i,mouseColumn:o,position:null,range:null,detail:s}}static createOutsideEditor(i,o,s,c){return{type:13,element:null,mouseColumn:i,position:o,range:this._deduceRage(o),outsidePosition:s,outsideDistance:c}}static _typeToString(i){return i===1?"TEXTAREA":i===2?"GUTTER_GLYPH_MARGIN":i===3?"GUTTER_LINE_NUMBERS":i===4?"GUTTER_LINE_DECORATIONS":i===5?"GUTTER_VIEW_ZONE":i===6?"CONTENT_TEXT":i===7?"CONTENT_EMPTY":i===8?"CONTENT_VIEW_ZONE":i===9?"CONTENT_WIDGET":i===10?"OVERVIEW_RULER":i===11?"SCROLLBAR":i===12?"OVERLAY_WIDGET":"UNKNOWN"}static toString(i){return this._typeToString(i.type)+": "+i.position+" - "+i.range+" - "+JSON.stringify(i.detail)}},eP=class{static isTextArea(i){return i.length===2&&i[0]===3&&i[1]===7}static isChildOfViewLines(i){return i.length>=4&&i[0]===3&&i[3]===8}static isStrictChildOfViewLines(i){return i.length>4&&i[0]===3&&i[3]===8}static isChildOfScrollableElement(i){return i.length>=2&&i[0]===3&&i[1]===6}static isChildOfMinimap(i){return i.length>=2&&i[0]===3&&i[1]===9}static isChildOfContentWidgets(i){return i.length>=4&&i[0]===3&&i[3]===1}static isChildOfOverflowGuard(i){return i.length>=1&&i[0]===3}static isChildOfOverflowingContentWidgets(i){return i.length>=1&&i[0]===2}static isChildOfOverlayWidgets(i){return i.length>=2&&i[0]===3&&i[1]===4}static isChildOfOverflowingOverlayWidgets(i){return i.length>=1&&i[0]===5}},lLe=class l{constructor(i,o,s){this.viewModel=i.viewModel;let c=i.configuration.options;this.layoutInfo=c.get(145),this.viewDomNode=o.viewDomNode,this.lineHeight=c.get(67),this.stickyTabStops=c.get(116),this.typicalHalfwidthCharacterWidth=c.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=s,this._context=i,this._viewHelper=o}getZoneAtCoord(i){return l.getZoneAtCoord(this._context,i)}static getZoneAtCoord(i,o){let s=i.viewLayout.getWhitespaceAtVerticalOffset(o);if(s){let c=s.verticalOffset+s.height/2,_=i.viewModel.getLineCount(),h=null,b,w=null;return s.afterLineNumber!==_&&(w=new Cn(s.afterLineNumber+1,1)),s.afterLineNumber>0&&(h=new Cn(s.afterLineNumber,i.viewModel.getLineMaxColumn(s.afterLineNumber))),w===null?b=h:h===null?b=w:o=i.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,uLe._getMouseColumn(this.mouseContentHorizontalOffset,i.typicalHalfwidthCharacterWidth))}},lti=class extends cti{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=GD.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(i,o,s,c,_){super(i,o,s,c),this.hitTestResult=new TC(()=>uLe.doHitTest(this._ctx,this)),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=i,this._eventTarget=_;let h=!!this._eventTarget;this._useHitTestTarget=!h}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset} + target: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&this.hitTestResult.value.hitTarget!==null&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(i=null){return i&&i.columnh.contentLeft+h.width)continue;let b=i.getVerticalOffsetForLineNumber(h.position.lineNumber);if(b<=_&&_<=b+h.height)return o.fulfillContentText(h.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(i,o){let s=i.getZoneAtCoord(o.mouseVerticalOffset);if(s){let c=o.isInContentArea?8:5;return o.fulfillViewZone(c,s.position,s)}return null}static _hitTestTextArea(i,o){return eP.isTextArea(o.targetPath)?i.lastRenderData.lastTextareaPosition?o.fulfillContentText(i.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):o.fulfillTextarea():null}static _hitTestMargin(i,o){if(o.isInMarginArea){let s=i.getFullLineRangeAtCoord(o.mouseVerticalOffset),c=s.range.getStartPosition(),_=Math.abs(o.relativePos.x),h={isAfterLines:s.isAfterLines,glyphMarginLeft:i.layoutInfo.glyphMarginLeft,glyphMarginWidth:i.layoutInfo.glyphMarginWidth,lineNumbersWidth:i.layoutInfo.lineNumbersWidth,offsetX:_};if(_-=i.layoutInfo.glyphMarginLeft,_<=i.layoutInfo.glyphMarginWidth){let b=i.viewModel.coordinatesConverter.convertViewPositionToModelPosition(s.range.getStartPosition()),w=i.viewModel.glyphLanes.getLanesAtLine(b.lineNumber);return h.glyphMarginLane=w[Math.floor(_/i.lineHeight)],o.fulfillMargin(2,c,s.range,h)}return _-=i.layoutInfo.glyphMarginWidth,_<=i.layoutInfo.lineNumbersWidth?o.fulfillMargin(3,c,s.range,h):(_-=i.layoutInfo.lineNumbersWidth,o.fulfillMargin(4,c,s.range,h))}return null}static _hitTestViewLines(i,o){if(!eP.isChildOfViewLines(o.targetPath))return null;if(i.isInTopPadding(o.mouseVerticalOffset))return o.fulfillContentEmpty(new Cn(1,1),Wbi);if(i.isAfterLines(o.mouseVerticalOffset)||i.isInBottomPadding(o.mouseVerticalOffset)){let c=i.viewModel.getLineCount(),_=i.viewModel.getLineMaxColumn(c);return o.fulfillContentEmpty(new Cn(c,_),Wbi)}if(eP.isStrictChildOfViewLines(o.targetPath)){let c=i.getLineNumberAtVerticalOffset(o.mouseVerticalOffset);if(i.viewModel.getLineLength(c)===0){let h=i.getLineWidth(c),b=ati(o.mouseContentHorizontalOffset-h);return o.fulfillContentEmpty(new Cn(c,1),b)}let _=i.getLineWidth(c);if(o.mouseContentHorizontalOffset>=_){let h=ati(o.mouseContentHorizontalOffset-_),b=new Cn(c,i.viewModel.getLineMaxColumn(c));return o.fulfillContentEmpty(b,h)}}let s=o.hitTestResult.value;return s.type===1?l.createMouseTargetFromHitTestPosition(i,o,s.spanNode,s.position,s.injectedText):o.wouldBenefitFromHitTestTargetSwitch?(o.switchToHitTestTarget(),this._createMouseTarget(i,o)):o.fulfillUnknown()}static _hitTestMinimap(i,o){if(eP.isChildOfMinimap(o.targetPath)){let s=i.getLineNumberAtVerticalOffset(o.mouseVerticalOffset),c=i.viewModel.getLineMaxColumn(s);return o.fulfillScrollbar(new Cn(s,c))}return null}static _hitTestScrollbarSlider(i,o){if(eP.isChildOfScrollableElement(o.targetPath)&&o.target&&o.target.nodeType===1){let s=o.target.className;if(s&&/\b(slider|scrollbar)\b/.test(s)){let c=i.getLineNumberAtVerticalOffset(o.mouseVerticalOffset),_=i.viewModel.getLineMaxColumn(c);return o.fulfillScrollbar(new Cn(c,_))}}return null}static _hitTestScrollbar(i,o){if(eP.isChildOfScrollableElement(o.targetPath)){let s=i.getLineNumberAtVerticalOffset(o.mouseVerticalOffset),c=i.viewModel.getLineMaxColumn(s);return o.fulfillScrollbar(new Cn(s,c))}return null}getMouseColumn(i){let o=this._context.configuration.options,s=o.get(145),c=this._context.viewLayout.getCurrentScrollLeft()+i.x-s.contentLeft;return l._getMouseColumn(c,o.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(i,o){return i<0?1:Math.round(i/o)+1}static createMouseTargetFromHitTestPosition(i,o,s,c,_){let h=c.lineNumber,b=c.column,w=i.getLineWidth(h);if(o.mouseContentHorizontalOffset>w){let Le=ati(o.mouseContentHorizontalOffset-w);return o.fulfillContentEmpty(c,Le)}let D=i.visibleRangeForPosition(h,b);if(!D)return o.fulfillUnknown(c);let O=D.left;if(Math.abs(o.mouseContentHorizontalOffset-O)<1)return o.fulfillContentText(c,null,{mightBeForeignElement:!!_,injectedText:_});let j=[];if(j.push({offset:D.left,column:b}),b>1){let Le=i.visibleRangeForPosition(h,b-1);Le&&j.push({offset:Le.left,column:b-1})}let F=i.viewModel.getLineMaxColumn(h);if(bLe.offset-Je.offset);let X=o.pos.toClientCoordinates(Xa(i.viewDomNode)),K=s.getBoundingClientRect(),re=K.left<=X.clientX&&X.clientX<=K.right,Pe=null;for(let Le=1;Le_)){let b=Math.floor((c+_)/2),w=o.pos.y+(b-o.mouseVerticalOffset);w<=o.editorPos.y&&(w=o.editorPos.y+1),w>=o.editorPos.y+o.editorPos.height&&(w=o.editorPos.y+o.editorPos.height-1);let D=new Zde(o.pos.x,w),O=this._actualDoHitTestWithCaretRangeFromPoint(i,D.toClientCoordinates(Xa(i.viewDomNode)));if(O.type===1)return O}return this._actualDoHitTestWithCaretRangeFromPoint(i,o.pos.toClientCoordinates(Xa(i.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(i,o){let s=MG(i.viewDomNode),c;if(s?typeof s.caretRangeFromPoint>"u"?c=X9i(s,o.clientX,o.clientY):c=s.caretRangeFromPoint(o.clientX,o.clientY):c=i.viewDomNode.ownerDocument.caretRangeFromPoint(o.clientX,o.clientY),!c||!c.startContainer)return new oX;let _=c.startContainer;if(_.nodeType===_.TEXT_NODE){let h=_.parentNode,b=h?h.parentNode:null,w=b?b.parentNode:null;return(w&&w.nodeType===w.ELEMENT_NODE?w.className:null)===fW.CLASS_NAME?bAe.createFromDOMInfo(i,h,c.startOffset):new oX(_.parentNode)}else if(_.nodeType===_.ELEMENT_NODE){let h=_.parentNode,b=h?h.parentNode:null;return(b&&b.nodeType===b.ELEMENT_NODE?b.className:null)===fW.CLASS_NAME?bAe.createFromDOMInfo(i,_,_.textContent.length):new oX(_)}return new oX}static _doHitTestWithCaretPositionFromPoint(i,o){let s=i.viewDomNode.ownerDocument.caretPositionFromPoint(o.clientX,o.clientY);if(s.offsetNode.nodeType===s.offsetNode.TEXT_NODE){let c=s.offsetNode.parentNode,_=c?c.parentNode:null,h=_?_.parentNode:null;return(h&&h.nodeType===h.ELEMENT_NODE?h.className:null)===fW.CLASS_NAME?bAe.createFromDOMInfo(i,s.offsetNode.parentNode,s.offset):new oX(s.offsetNode.parentNode)}if(s.offsetNode.nodeType===s.offsetNode.ELEMENT_NODE){let c=s.offsetNode.parentNode,_=c&&c.nodeType===c.ELEMENT_NODE?c.className:null,h=c?c.parentNode:null,b=h&&h.nodeType===h.ELEMENT_NODE?h.className:null;if(_===fW.CLASS_NAME){let w=s.offsetNode.childNodes[Math.min(s.offset,s.offsetNode.childNodes.length-1)];if(w)return bAe.createFromDOMInfo(i,w,0)}else if(b===fW.CLASS_NAME)return bAe.createFromDOMInfo(i,s.offsetNode,0)}return new oX(s.offsetNode)}static _snapToSoftTabBoundary(i,o){let s=o.getLineContent(i.lineNumber),{tabSize:c}=o.model.getOptions(),_=vAe.atomicPosition(s,i.column-1,c,2);return _!==-1?new Cn(i.lineNumber,_+1):i}static doHitTest(i,o){let s=new oX;if(typeof i.viewDomNode.ownerDocument.caretRangeFromPoint=="function"?s=this._doHitTestWithCaretRangeFromPoint(i,o):i.viewDomNode.ownerDocument.caretPositionFromPoint&&(s=this._doHitTestWithCaretPositionFromPoint(i,o.pos.toClientCoordinates(Xa(i.viewDomNode)))),s.type===1){let c=i.viewModel.getInjectedTextAt(s.position),_=i.viewModel.normalizePosition(s.position,2);(c||!_.equals(s.position))&&(s=new mpt(_,s.spanNode,c))}return s}};gpt=class l{static getInstance(){return l._INSTANCE||(l._INSTANCE=new l),l._INSTANCE}constructor(){this._cache={},this._canvas=document.createElement("canvas")}getCharWidth(i,o){let s=i+o;if(this._cache[s])return this._cache[s];let c=this._canvas.getContext("2d");c.font=o;let h=c.measureText(i).width;return this._cache[s]=h,h}};gpt._INSTANCE=null});function Cv(l,i,o){let s=null,c=null;if(typeof o.value=="function"?(s="value",c=o.value,c.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof o.get=="function"&&(s="get",c=o.get),!c)throw new Error("not supported");let _=`$memoize$${i}`;o[s]=function(...h){return this.hasOwnProperty(_)||Object.defineProperty(this,_,{configurable:!1,enumerable:!1,writable:!1,value:c.apply(this,h)}),this[_]}}var efe=Ht(()=>{});var Y9i,Zm,Ry,JF=Ht(()=>{va();GA();su();efe();Pa();$r();f7();Y9i=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_};(function(l){l.Tap="-monaco-gesturetap",l.Change="-monaco-gesturechange",l.Start="-monaco-gesturestart",l.End="-monaco-gesturesend",l.Contextmenu="-monaco-gesturecontextmenu"})(Zm||(Zm={}));Ry=class l extends Ui{constructor(){super(),this.dispatched=!1,this.targets=new L1,this.ignoreTargets=new L1,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(Yo.runAndSubscribe(ONe,({window:i,disposables:o})=>{o.add(Tr(i.document,"touchstart",s=>this.onTouchStart(s),{passive:!1})),o.add(Tr(i.document,"touchend",s=>this.onTouchEnd(i,s))),o.add(Tr(i.document,"touchmove",s=>this.onTouchMove(s),{passive:!1}))},{window:D_,disposables:this._store}))}static addTarget(i){if(!l.isTouchDevice())return Ui.None;l.INSTANCE||(l.INSTANCE=fde(new l));let o=l.INSTANCE.targets.push(i);return Qs(o)}static ignoreTarget(i){if(!l.isTouchDevice())return Ui.None;l.INSTANCE||(l.INSTANCE=fde(new l));let o=l.INSTANCE.ignoreTargets.push(i);return Qs(o)}static isTouchDevice(){return"ontouchstart"in D_||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(i){let o=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let s=0,c=i.targetTouches.length;s=l.HOLD_DELAY&&Math.abs(w.initialPageX-l7(w.rollingPageX))<30&&Math.abs(w.initialPageY-l7(w.rollingPageY))<30){let O=this.newGestureEvent(Zm.Contextmenu,w.initialTarget);O.pageX=l7(w.rollingPageX),O.pageY=l7(w.rollingPageY),this.dispatchEvent(O)}else if(c===1){let O=l7(w.rollingPageX),j=l7(w.rollingPageY),F=l7(w.rollingTimestamps)-w.rollingTimestamps[0],X=O-w.rollingPageX[0],K=j-w.rollingPageY[0],re=[...this.targets].filter(Pe=>w.initialTarget instanceof Node&&Pe.contains(w.initialTarget));this.inertia(i,re,s,Math.abs(X)/F,X>0?1:-1,O,Math.abs(K)/F,K>0?1:-1,j)}this.dispatchEvent(this.newGestureEvent(Zm.End,w.initialTarget)),delete this.activeTouches[b.identifier]}this.dispatched&&(o.preventDefault(),o.stopPropagation(),this.dispatched=!1)}newGestureEvent(i,o){let s=document.createEvent("CustomEvent");return s.initEvent(i,!1,!0),s.initialTarget=o,s.tapCount=0,s}dispatchEvent(i){if(i.type===Zm.Tap){let o=new Date().getTime(),s=0;o-this._lastSetTapCountTime>l.CLEAR_TAP_COUNT_TIME?s=1:s=2,this._lastSetTapCountTime=o,i.tapCount=s}else(i.type===Zm.Change||i.type===Zm.Contextmenu)&&(this._lastSetTapCountTime=0);if(i.initialTarget instanceof Node){for(let s of this.ignoreTargets)if(s.contains(i.initialTarget))return;let o=[];for(let s of this.targets)if(s.contains(i.initialTarget)){let c=0,_=i.initialTarget;for(;_&&_!==s;)c++,_=_.parentElement;o.push([c,s])}o.sort((s,c)=>s[0]-c[0]);for(let[s,c]of o)c.dispatchEvent(i),this.dispatched=!0}}inertia(i,o,s,c,_,h,b,w,D){this.handle=g2(i,()=>{let O=Date.now(),j=O-s,F=0,X=0,K=!0;c+=l.SCROLL_FRICTION*j,b+=l.SCROLL_FRICTION*j,c>0&&(K=!1,F=_*c*j),b>0&&(K=!1,X=w*b*j);let re=this.newGestureEvent(Zm.Change);re.translationX=F,re.translationY=X,o.forEach(Pe=>Pe.dispatchEvent(re)),K||this.inertia(i,o,O,c,_,h+F,b,w,D+X)})}onTouchMove(i){let o=Date.now();for(let s=0,c=i.changedTouches.length;s3&&(h.rollingPageX.shift(),h.rollingPageY.shift(),h.rollingTimestamps.shift()),h.rollingPageX.push(_.pageX),h.rollingPageY.push(_.pageY),h.rollingTimestamps.push(o)}this.dispatched&&(i.preventDefault(),i.stopPropagation(),this.dispatched=!1)}};Ry.SCROLL_FRICTION=-.005;Ry.HOLD_DELAY=700;Ry.CLEAR_TAP_COUNT_TIME=400;Y9i([Cv],Ry,"isTouchDevice",null)});var ex,gj=Ht(()=>{va();jD();h7();JF();$r();ex=class extends Ui{onclick(i,o){this._register(Tr(i,$o.CLICK,s=>o(new h2(Xa(i),s))))}onmousedown(i,o){this._register(Tr(i,$o.MOUSE_DOWN,s=>o(new h2(Xa(i),s))))}onmouseover(i,o){this._register(Tr(i,$o.MOUSE_OVER,s=>o(new h2(Xa(i),s))))}onmouseleave(i,o){this._register(Tr(i,$o.MOUSE_LEAVE,s=>o(new h2(Xa(i),s))))}onkeydown(i,o){this._register(Tr(i,$o.KEY_DOWN,s=>o(new w_(s))))}onkeyup(i,o){this._register(Tr(i,$o.KEY_UP,s=>o(new w_(s))))}oninput(i,o){this._register(Tr(i,$o.INPUT,o))}onblur(i,o){this._register(Tr(i,$o.BLUR,o))}onfocus(i,o){this._register(Tr(i,$o.FOCUS,o))}ignoreGesture(i){return Ry.ignoreTarget(i)}}});var tfe,ypt,vpt=Ht(()=>{U6e();gj();Bu();P0();va();tfe=11,ypt=class extends ex{constructor(i){super(),this._onActivate=i.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=i.bgWidth+"px",this.bgDomNode.style.height=i.bgHeight+"px",typeof i.top<"u"&&(this.bgDomNode.style.top="0px"),typeof i.left<"u"&&(this.bgDomNode.style.left="0px"),typeof i.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof i.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=i.className,this.domNode.classList.add(...uc.asClassNameArray(i.icon)),this.domNode.style.position="absolute",this.domNode.style.width=tfe+"px",this.domNode.style.height=tfe+"px",typeof i.top<"u"&&(this.domNode.style.top=i.top+"px"),typeof i.left<"u"&&(this.domNode.style.left=i.left+"px"),typeof i.bottom<"u"&&(this.domNode.style.bottom=i.bottom+"px"),typeof i.right<"u"&&(this.domNode.style.right=i.right+"px"),this._pointerMoveMonitor=this._register(new dj),this._register(Cm(this.bgDomNode,$o.POINTER_DOWN,o=>this._arrowPointerDown(o))),this._register(Cm(this.domNode,$o.POINTER_DOWN,o=>this._arrowPointerDown(o))),this._pointerdownRepeatTimer=this._register(new Tde),this._pointerdownScheduleRepeatTimer=this._register(new MC)}_arrowPointerDown(i){if(!i.target||!(i.target instanceof Element))return;let o=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,Xa(i))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(o,200),this._pointerMoveMonitor.startMonitoring(i.target,i.pointerId,i.buttons,s=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),i.preventDefault()}}});var bpt,zbi=Ht(()=>{Bu();$r();bpt=class extends Ui{constructor(i,o,s){super(),this._visibility=i,this._visibleClassName=o,this._invisibleClassName=s,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new MC)}setVisibility(i){this._visibility!==i&&(this._visibility=i,this._updateShouldBeVisible())}setShouldBeVisible(i){this._rawShouldBeVisible=i,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){let i=this._applyVisibilitySetting();this._shouldBeVisible!==i&&(this._shouldBeVisible=i,this.ensureVisibility())}setIsNeeded(i){this._isNeeded!==i&&(this._isNeeded=i,this.ensureVisibility())}setDomNode(i){this._domNode=i,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var i;(i=this._domNode)===null||i===void 0||i.setClassName(this._visibleClassName)},0))}_hide(i){var o;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(o=this._domNode)===null||o===void 0||o.setClassName(this._invisibleClassName+(i?" fade":"")))}}});var Q9i,dLe,dti=Ht(()=>{va();Tw();U6e();vpt();zbi();gj();uf();Q9i=140,dLe=class extends ex{constructor(i){super(),this._lazyRender=i.lazyRender,this._host=i.host,this._scrollable=i.scrollable,this._scrollByPage=i.scrollByPage,this._scrollbarState=i.scrollbarState,this._visibilityController=this._register(new bpt(i.visibility,"visible scrollbar "+i.extraScrollbarClassName,"invisible scrollbar "+i.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new dj),this._shouldRender=!0,this.domNode=cf(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(Tr(this.domNode.domNode,$o.POINTER_DOWN,o=>this._domNodePointerDown(o)))}_createArrow(i){let o=this._register(new ypt(i));this.domNode.domNode.appendChild(o.bgDomNode),this.domNode.domNode.appendChild(o.domNode)}_createSlider(i,o,s,c){this.slider=cf(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(i),this.slider.setLeft(o),typeof s=="number"&&this.slider.setWidth(s),typeof c=="number"&&this.slider.setHeight(c),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(Tr(this.slider.domNode,$o.POINTER_DOWN,_=>{_.button===0&&(_.preventDefault(),this._sliderPointerDown(_))})),this.onclick(this.slider.domNode,_=>{_.leftButton&&_.stopPropagation()})}_onElementSize(i){return this._scrollbarState.setVisibleSize(i)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(i){return this._scrollbarState.setScrollSize(i)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(i){return this._scrollbarState.setScrollPosition(i)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(i){i.target===this.domNode.domNode&&this._onPointerDown(i)}delegatePointerDown(i){let o=this.domNode.domNode.getClientRects()[0].top,s=o+this._scrollbarState.getSliderPosition(),c=o+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),_=this._sliderPointerPosition(i);s<=_&&_<=c?i.button===0&&(i.preventDefault(),this._sliderPointerDown(i)):this._onPointerDown(i)}_onPointerDown(i){let o,s;if(i.target===this.domNode.domNode&&typeof i.offsetX=="number"&&typeof i.offsetY=="number")o=i.offsetX,s=i.offsetY;else{let _=Qm(this.domNode.domNode);o=i.pageX-_.left,s=i.pageY-_.top}let c=this._pointerDownRelativePosition(o,s);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(c):this._scrollbarState.getDesiredScrollPositionFromOffset(c)),i.button===0&&(i.preventDefault(),this._sliderPointerDown(i))}_sliderPointerDown(i){if(!i.target||!(i.target instanceof Element))return;let o=this._sliderPointerPosition(i),s=this._sliderOrthogonalPointerPosition(i),c=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(i.target,i.pointerId,i.buttons,_=>{let h=this._sliderOrthogonalPointerPosition(_),b=Math.abs(h-s);if(Ny&&b>Q9i){this._setDesiredScrollPositionNow(c.getScrollPosition());return}let D=this._sliderPointerPosition(_)-o;this._setDesiredScrollPositionNow(c.getDesiredScrollPositionFromDelta(D))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(i){let o={};this.writeScrollPosition(o,i),this._scrollable.setScrollPositionNow(o)}updateScrollbarSize(i){this._updateScrollbarSize(i),this._scrollbarState.setScrollbarSize(i),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}});var ife,Spt=Ht(()=>{ife=class l{constructor(i,o,s,c,_,h){this._scrollbarSize=Math.round(o),this._oppositeScrollbarSize=Math.round(s),this._arrowSize=Math.round(i),this._visibleSize=c,this._scrollSize=_,this._scrollPosition=h,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new l(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(i){let o=Math.round(i);return this._visibleSize!==o?(this._visibleSize=o,this._refreshComputedValues(),!0):!1}setScrollSize(i){let o=Math.round(i);return this._scrollSize!==o?(this._scrollSize=o,this._refreshComputedValues(),!0):!1}setScrollPosition(i){let o=Math.round(i);return this._scrollPosition!==o?(this._scrollPosition=o,this._refreshComputedValues(),!0):!1}setScrollbarSize(i){this._scrollbarSize=Math.round(i)}setOppositeScrollbarSize(i){this._oppositeScrollbarSize=Math.round(i)}static _computeValues(i,o,s,c,_){let h=Math.max(0,s-i),b=Math.max(0,h-2*o),w=c>0&&c>s;if(!w)return{computedAvailableSize:Math.round(h),computedIsNeeded:w,computedSliderSize:Math.round(b),computedSliderRatio:0,computedSliderPosition:0};let D=Math.round(Math.max(20,Math.floor(s*b/c))),O=(b-D)/(c-s),j=_*O;return{computedAvailableSize:Math.round(h),computedIsNeeded:w,computedSliderSize:Math.round(D),computedSliderRatio:O,computedSliderPosition:Math.round(j)}}_refreshComputedValues(){let i=l._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=i.computedAvailableSize,this._computedIsNeeded=i.computedIsNeeded,this._computedSliderSize=i.computedSliderSize,this._computedSliderRatio=i.computedSliderRatio,this._computedSliderPosition=i.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(i){if(!this._computedIsNeeded)return 0;let o=i-this._arrowSize-this._computedSliderSize/2;return Math.round(o/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(i){if(!this._computedIsNeeded)return 0;let o=i-this._arrowSize,s=this._scrollPosition;return o{h7();dti();vpt();Spt();Og();xpt=class extends dLe{constructor(i,o,s){let c=i.getScrollDimensions(),_=i.getCurrentScrollPosition();if(super({lazyRender:o.lazyRender,host:s,scrollbarState:new ife(o.horizontalHasArrows?o.arrowSize:0,o.horizontal===2?0:o.horizontalScrollbarSize,o.vertical===2?0:o.verticalScrollbarSize,c.width,c.scrollWidth,_.scrollLeft),visibility:o.horizontal,extraScrollbarClassName:"horizontal",scrollable:i,scrollByPage:o.scrollByPage}),o.horizontalHasArrows){let h=(o.arrowSize-tfe)/2,b=(o.horizontalScrollbarSize-tfe)/2;this._createArrow({className:"scra",icon:Xo.scrollbarButtonLeft,top:b,left:h,bottom:void 0,right:void 0,bgWidth:o.arrowSize,bgHeight:o.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new ij(null,1,0))}),this._createArrow({className:"scra",icon:Xo.scrollbarButtonRight,top:b,left:void 0,bottom:void 0,right:h,bgWidth:o.arrowSize,bgHeight:o.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new ij(null,-1,0))})}this._createSlider(Math.floor((o.horizontalScrollbarSize-o.horizontalSliderSize)/2),0,void 0,o.horizontalSliderSize)}_updateSlider(i,o){this.slider.setWidth(i),this.slider.setLeft(o)}_renderDomNode(i,o){this.domNode.setWidth(i),this.domNode.setHeight(o),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(i){return this._shouldRender=this._onElementScrollSize(i.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(i.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(i.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(i,o){return i}_sliderPointerPosition(i){return i.pageX}_sliderOrthogonalPointerPosition(i){return i.pageY}_updateScrollbarSize(i){this.slider.setHeight(i)}writeScrollPosition(i,o){i.scrollLeft=o}updateOptions(i){this.updateScrollbarSize(i.horizontal===2?0:i.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(i.vertical===2?0:i.verticalScrollbarSize),this._visibilityController.setVisibility(i.horizontal),this._scrollByPage=i.scrollByPage}}});var Cpt,Hbi=Ht(()=>{h7();dti();vpt();Spt();Og();Cpt=class extends dLe{constructor(i,o,s){let c=i.getScrollDimensions(),_=i.getCurrentScrollPosition();if(super({lazyRender:o.lazyRender,host:s,scrollbarState:new ife(o.verticalHasArrows?o.arrowSize:0,o.vertical===2?0:o.verticalScrollbarSize,0,c.height,c.scrollHeight,_.scrollTop),visibility:o.vertical,extraScrollbarClassName:"vertical",scrollable:i,scrollByPage:o.scrollByPage}),o.verticalHasArrows){let h=(o.arrowSize-tfe)/2,b=(o.verticalScrollbarSize-tfe)/2;this._createArrow({className:"scra",icon:Xo.scrollbarButtonUp,top:h,left:b,bottom:void 0,right:void 0,bgWidth:o.verticalScrollbarSize,bgHeight:o.arrowSize,onActivate:()=>this._host.onMouseWheel(new ij(null,0,1))}),this._createArrow({className:"scra",icon:Xo.scrollbarButtonDown,top:void 0,left:b,bottom:h,right:void 0,bgWidth:o.verticalScrollbarSize,bgHeight:o.arrowSize,onActivate:()=>this._host.onMouseWheel(new ij(null,0,-1))})}this._createSlider(0,Math.floor((o.verticalScrollbarSize-o.verticalSliderSize)/2),o.verticalSliderSize,void 0)}_updateSlider(i,o){this.slider.setHeight(i),this.slider.setTop(o)}_renderDomNode(i,o){this.domNode.setWidth(o),this.domNode.setHeight(i),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(i){return this._shouldRender=this._onElementScrollSize(i.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(i.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(i.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(i,o){return o}_sliderPointerPosition(i){return i.pageY}_sliderOrthogonalPointerPosition(i){return i.pageX}_updateScrollbarSize(i){this.slider.setWidth(i)}writeScrollPosition(i,o){i.scrollTop=o}updateOptions(i){this.updateScrollbarSize(i.vertical===2?0:i.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(i.vertical),this._scrollByPage=i.scrollByPage}}});function fti(l,i){let o=i-l;return function(s){return l+o*tBi(s)}}function Z9i(l,i,o){return function(s){return s{Pa();$r();_ti=class l{constructor(i,o,s,c,_,h,b){this._forceIntegerValues=i,this._scrollStateBrand=void 0,this._forceIntegerValues&&(o=o|0,s=s|0,c=c|0,_=_|0,h=h|0,b=b|0),this.rawScrollLeft=c,this.rawScrollTop=b,o<0&&(o=0),c+o>s&&(c=s-o),c<0&&(c=0),_<0&&(_=0),b+_>h&&(b=h-_),b<0&&(b=0),this.width=o,this.scrollWidth=s,this.scrollLeft=c,this.height=_,this.scrollHeight=h,this.scrollTop=b}equals(i){return this.rawScrollLeft===i.rawScrollLeft&&this.rawScrollTop===i.rawScrollTop&&this.width===i.width&&this.scrollWidth===i.scrollWidth&&this.scrollLeft===i.scrollLeft&&this.height===i.height&&this.scrollHeight===i.scrollHeight&&this.scrollTop===i.scrollTop}withScrollDimensions(i,o){return new l(this._forceIntegerValues,typeof i.width<"u"?i.width:this.width,typeof i.scrollWidth<"u"?i.scrollWidth:this.scrollWidth,o?this.rawScrollLeft:this.scrollLeft,typeof i.height<"u"?i.height:this.height,typeof i.scrollHeight<"u"?i.scrollHeight:this.scrollHeight,o?this.rawScrollTop:this.scrollTop)}withScrollPosition(i){return new l(this._forceIntegerValues,this.width,this.scrollWidth,typeof i.scrollLeft<"u"?i.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof i.scrollTop<"u"?i.scrollTop:this.rawScrollTop)}createScrollEvent(i,o){let s=this.width!==i.width,c=this.scrollWidth!==i.scrollWidth,_=this.scrollLeft!==i.scrollLeft,h=this.height!==i.height,b=this.scrollHeight!==i.scrollHeight,w=this.scrollTop!==i.scrollTop;return{inSmoothScrolling:o,oldWidth:i.width,oldScrollWidth:i.scrollWidth,oldScrollLeft:i.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:i.height,oldScrollHeight:i.scrollHeight,oldScrollTop:i.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:s,scrollWidthChanged:c,scrollLeftChanged:_,heightChanged:h,scrollHeightChanged:b,scrollTopChanged:w}}},yj=class extends Ui{constructor(i){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new fn),this.onScroll=this._onScroll.event,this._smoothScrollDuration=i.smoothScrollDuration,this._scheduleAtNextAnimationFrame=i.scheduleAtNextAnimationFrame,this._state=new _ti(i.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(i){this._smoothScrollDuration=i}validateScrollPosition(i){return this._state.withScrollPosition(i)}getScrollDimensions(){return this._state}setScrollDimensions(i,o){var s;let c=this._state.withScrollDimensions(i,o);this._setState(c,!!this._smoothScrolling),(s=this._smoothScrolling)===null||s===void 0||s.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(i){let o=this._state.withScrollPosition(i);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(o,!1)}setScrollPositionSmooth(i,o){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(i);if(this._smoothScrolling){i={scrollLeft:typeof i.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:i.scrollLeft,scrollTop:typeof i.scrollTop>"u"?this._smoothScrolling.to.scrollTop:i.scrollTop};let s=this._state.withScrollPosition(i);if(this._smoothScrolling.to.scrollLeft===s.scrollLeft&&this._smoothScrolling.to.scrollTop===s.scrollTop)return;let c;o?c=new wpt(this._smoothScrolling.from,s,this._smoothScrolling.startTime,this._smoothScrolling.duration):c=this._smoothScrolling.combine(this._state,s,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=c}else{let s=this._state.withScrollPosition(i);this._smoothScrolling=wpt.start(this._state,s,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;let i=this._smoothScrolling.tick(),o=this._state.withScrollPosition(i);if(this._setState(o,!0),!!this._smoothScrolling){if(i.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(i,o){let s=this._state;s.equals(i)||(this._state=i,this._onScroll.fire(this._state.createScrollEvent(s,o)))}},kpt=class{constructor(i,o,s){this.scrollLeft=i,this.scrollTop=o,this.isDone=s}};wpt=class l{constructor(i,o,s,c){this.from=i,this.to=o,this.duration=c,this.startTime=s,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(i,o,s){if(Math.abs(i-o)>2.5*s){let _,h;return i{});function nBi(l){let i={lazyRender:typeof l.lazyRender<"u"?l.lazyRender:!1,className:typeof l.className<"u"?l.className:"",useShadows:typeof l.useShadows<"u"?l.useShadows:!0,handleMouseWheel:typeof l.handleMouseWheel<"u"?l.handleMouseWheel:!0,flipAxes:typeof l.flipAxes<"u"?l.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof l.consumeMouseWheelIfScrollbarIsNeeded<"u"?l.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof l.alwaysConsumeMouseWheel<"u"?l.alwaysConsumeMouseWheel:!1,scrollYToX:typeof l.scrollYToX<"u"?l.scrollYToX:!1,mouseWheelScrollSensitivity:typeof l.mouseWheelScrollSensitivity<"u"?l.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof l.fastScrollSensitivity<"u"?l.fastScrollSensitivity:5,scrollPredominantAxis:typeof l.scrollPredominantAxis<"u"?l.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof l.mouseWheelSmoothScroll<"u"?l.mouseWheelSmoothScroll:!0,arrowSize:typeof l.arrowSize<"u"?l.arrowSize:11,listenOnDomNode:typeof l.listenOnDomNode<"u"?l.listenOnDomNode:null,horizontal:typeof l.horizontal<"u"?l.horizontal:1,horizontalScrollbarSize:typeof l.horizontalScrollbarSize<"u"?l.horizontalScrollbarSize:10,horizontalSliderSize:typeof l.horizontalSliderSize<"u"?l.horizontalSliderSize:0,horizontalHasArrows:typeof l.horizontalHasArrows<"u"?l.horizontalHasArrows:!1,vertical:typeof l.vertical<"u"?l.vertical:1,verticalScrollbarSize:typeof l.verticalScrollbarSize<"u"?l.verticalScrollbarSize:10,verticalHasArrows:typeof l.verticalHasArrows<"u"?l.verticalHasArrows:!1,verticalSliderSize:typeof l.verticalSliderSize<"u"?l.verticalSliderSize:0,scrollByPage:typeof l.scrollByPage<"u"?l.scrollByPage:!1};return i.horizontalSliderSize=typeof l.horizontalSliderSize<"u"?l.horizontalSliderSize:i.horizontalScrollbarSize,i.verticalSliderSize=typeof l.verticalSliderSize<"u"?l.verticalSliderSize:i.verticalScrollbarSize,uu&&(i.className+=" mac"),i}var iBi,Jbi,qbi,pti,SAe,Mrt,_Le,sX,pW,vj=Ht(()=>{RL();va();Tw();h7();Vbi();Hbi();gj();Bu();Pa();$r();uf();fLe();Ubi();iBi=500,Jbi=50,qbi=!0,pti=class{constructor(i,o,s){this.timestamp=i,this.deltaX=o,this.deltaY=s,this.score=0}},SAe=class{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let i=1,o=0,s=1,c=this._rear;do{let _=c===this._front?i:Math.pow(2,-s);if(i-=_,o+=this._memory[c].score*_,c===this._front)break;c=(this._capacity+c-1)%this._capacity,s++}while(!0);return o<=.5}acceptStandardWheelEvent(i){if(xde){let o=Xa(i.browserEvent),s=a0i(o);this.accept(Date.now(),i.deltaX*s,i.deltaY*s)}else this.accept(Date.now(),i.deltaX,i.deltaY)}accept(i,o,s){let c=null,_=new pti(i,o,s);this._front===-1&&this._rear===-1?(this._memory[0]=_,this._front=0,this._rear=0):(c=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=_),_.score=this._computeScore(_,c)}_computeScore(i,o){if(Math.abs(i.deltaX)>0&&Math.abs(i.deltaY)>0)return 1;let s=.5;if((!this._isAlmostInt(i.deltaX)||!this._isAlmostInt(i.deltaY))&&(s+=.25),o){let c=Math.abs(i.deltaX),_=Math.abs(i.deltaY),h=Math.abs(o.deltaX),b=Math.abs(o.deltaY),w=Math.max(Math.min(c,h),1),D=Math.max(Math.min(_,b),1),O=Math.max(c,h),j=Math.max(_,b);O%w===0&&j%D===0&&(s-=.5)}return Math.min(Math.max(s,0),1)}_isAlmostInt(i){return Math.abs(Math.round(i)-i)<.01}};SAe.INSTANCE=new SAe;Mrt=class extends ex{get options(){return this._options}constructor(i,o,s){super(),this._onScroll=this._register(new fn),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new fn),i.style.overflow="hidden",this._options=nBi(o),this._scrollable=s,this._register(this._scrollable.onScroll(_=>{this._onWillScroll.fire(_),this._onDidScroll(_),this._onScroll.fire(_)}));let c={onMouseWheel:_=>this._onMouseWheel(_),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new Cpt(this._scrollable,this._options,c)),this._horizontalScrollbar=this._register(new xpt(this._scrollable,this._options,c)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(i),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=cf(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=cf(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=cf(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,_=>this._onMouseOver(_)),this.onmouseleave(this._listenOnDomNode,_=>this._onMouseLeave(_)),this._hideTimeout=this._register(new MC),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=a_(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(i){this._verticalScrollbar.delegatePointerDown(i)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(i){this._scrollable.setScrollDimensions(i,!1)}updateClassName(i){this._options.className=i,uu&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(i){typeof i.handleMouseWheel<"u"&&(this._options.handleMouseWheel=i.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof i.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=i.mouseWheelScrollSensitivity),typeof i.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=i.fastScrollSensitivity),typeof i.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=i.scrollPredominantAxis),typeof i.horizontal<"u"&&(this._options.horizontal=i.horizontal),typeof i.vertical<"u"&&(this._options.vertical=i.vertical),typeof i.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=i.horizontalScrollbarSize),typeof i.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=i.verticalScrollbarSize),typeof i.scrollByPage<"u"&&(this._options.scrollByPage=i.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(i){this._onMouseWheel(new ij(i))}_setListeningToMouseWheel(i){if(this._mouseWheelToDispose.length>0!==i&&(this._mouseWheelToDispose=a_(this._mouseWheelToDispose),i)){let s=c=>{this._onMouseWheel(new ij(c))};this._mouseWheelToDispose.push(Tr(this._listenOnDomNode,$o.MOUSE_WHEEL,s,{passive:!1}))}}_onMouseWheel(i){var o;if(!((o=i.browserEvent)===null||o===void 0)&&o.defaultPrevented)return;let s=SAe.INSTANCE;qbi&&s.acceptStandardWheelEvent(i);let c=!1;if(i.deltaY||i.deltaX){let h=i.deltaY*this._options.mouseWheelScrollSensitivity,b=i.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&b+h===0?b=h=0:Math.abs(h)>=Math.abs(b)?b=0:h=0),this._options.flipAxes&&([h,b]=[b,h]);let w=!uu&&i.browserEvent&&i.browserEvent.shiftKey;(this._options.scrollYToX||w)&&!b&&(b=h,h=0),i.browserEvent&&i.browserEvent.altKey&&(b=b*this._options.fastScrollSensitivity,h=h*this._options.fastScrollSensitivity);let D=this._scrollable.getFutureScrollPosition(),O={};if(h){let j=Jbi*h,F=D.scrollTop-(j<0?Math.floor(j):Math.ceil(j));this._verticalScrollbar.writeScrollPosition(O,F)}if(b){let j=Jbi*b,F=D.scrollLeft-(j<0?Math.floor(j):Math.ceil(j));this._horizontalScrollbar.writeScrollPosition(O,F)}O=this._scrollable.validateScrollPosition(O),(D.scrollLeft!==O.scrollLeft||D.scrollTop!==O.scrollTop)&&(qbi&&this._options.mouseWheelSmoothScroll&&s.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(O):this._scrollable.setScrollPositionNow(O),c=!0)}let _=c;!_&&this._options.alwaysConsumeMouseWheel&&(_=!0),!_&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(_=!0),_&&(i.preventDefault(),i.stopPropagation())}_onDidScroll(i){this._shouldRender=this._horizontalScrollbar.onDidScroll(i)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(i)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let i=this._scrollable.getCurrentScrollPosition(),o=i.scrollTop>0,s=i.scrollLeft>0,c=s?" left":"",_=o?" top":"",h=s||o?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${c}`),this._topShadowDomNode.setClassName(`shadow${_}`),this._topLeftShadowDomNode.setClassName(`shadow${h}${_}${c}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(i){this._mouseIsOver=!1,this._hide()}_onMouseOver(i){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),iBi)}},_Le=class extends Mrt{constructor(i,o){o=o||{},o.mouseWheelSmoothScroll=!1;let s=new yj({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:c=>g2(Xa(i),c)});super(i,o,s),this._register(s)}setScrollPosition(i){this._scrollable.setScrollPositionNow(i)}},sX=class extends Mrt{constructor(i,o,s){super(i,o,s)}setScrollPosition(i){i.reuseAnimation?this._scrollable.setScrollPositionSmooth(i,i.reuseAnimation):this._scrollable.setScrollPositionNow(i)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}},pW=class extends Mrt{constructor(i,o){o=o||{},o.mouseWheelSmoothScroll=!1;let s=new yj({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:c=>g2(Xa(i),c)});super(i,o,s),this._register(s),this._element=i,this._register(this.onScroll(c=>{c.scrollTopChanged&&(this._element.scrollTop=c.scrollTop),c.scrollLeftChanged&&(this._element.scrollLeft=c.scrollLeft)})),this.scanDomNode()}setScrollPosition(i){this._scrollable.setScrollPositionNow(i)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}});var pLe,mti,hti,gti,Tpt,$bi=Ht(()=>{va();h7();$r();uf();uti();nLe();f6e();Ll();hg();rLe();vj();pLe=class extends uW{constructor(i,o,s){super(),this._mouseLeaveMonitor=null,this._context=i,this.viewController=o,this.viewHelper=s,this.mouseTargetFactory=new uLe(this._context,s),this._mouseDownOperation=this._register(new mti(this._context,this.viewController,this.viewHelper,this.mouseTargetFactory,(h,b)=>this._createMouseTarget(h,b),h=>this._getMouseColumn(h))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(145).height;let c=new rpt(this.viewHelper.viewDomNode);this._register(c.onContextMenu(this.viewHelper.viewDomNode,h=>this._onContextMenu(h,!0))),this._register(c.onMouseMove(this.viewHelper.viewDomNode,h=>{this._onMouseMove(h),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=Tr(this.viewHelper.viewDomNode.ownerDocument,"mousemove",b=>{this.viewHelper.viewDomNode.contains(b.target)||this._onMouseLeave(new lW(b,!1,this.viewHelper.viewDomNode))}))})),this._register(c.onMouseUp(this.viewHelper.viewDomNode,h=>this._onMouseUp(h))),this._register(c.onMouseLeave(this.viewHelper.viewDomNode,h=>this._onMouseLeave(h)));let _=0;this._register(c.onPointerDown(this.viewHelper.viewDomNode,(h,b)=>{_=b})),this._register(Tr(this.viewHelper.viewDomNode,$o.POINTER_UP,h=>{this._mouseDownOperation.onPointerUp()})),this._register(c.onMouseDown(this.viewHelper.viewDomNode,h=>this._onMouseDown(h,_))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){let i=SAe.INSTANCE,o=0,s=lP.getZoomLevel(),c=!1,_=0,h=w=>{if(this.viewController.emitMouseWheel(w),!this._context.configuration.options.get(76))return;let D=new ij(w);if(i.acceptStandardWheelEvent(D),i.isPhysicalMouseWheel()){if(b(w)){let O=lP.getZoomLevel(),j=D.deltaY>0?1:-1;lP.setZoomLevel(O+j),D.preventDefault(),D.stopPropagation()}}else Date.now()-o>50&&(s=lP.getZoomLevel(),c=b(w),_=0),o=Date.now(),_+=D.deltaY,c&&(lP.setZoomLevel(s+_/5),D.preventDefault(),D.stopPropagation())};this._register(Tr(this.viewHelper.viewDomNode,$o.MOUSE_WHEEL,h,{capture:!0,passive:!1}));function b(w){return uu?(w.metaKey||w.ctrlKey)&&!w.shiftKey&&!w.altKey:w.ctrlKey&&!w.metaKey&&!w.shiftKey&&!w.altKey}}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(i){if(i.hasChanged(145)){let o=this._context.configuration.options.get(145).height;this._height!==o&&(this._height=o,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(i){return this._mouseDownOperation.onCursorStateChanged(i),!1}onFocusChanged(i){return!1}getTargetAtClientPoint(i,o){let c=new Lrt(i,o).toPageCoordinates(Xa(this.viewHelper.viewDomNode)),_=apt(this.viewHelper.viewDomNode);if(c.y<_.y||c.y>_.y+_.height||c.x<_.x||c.x>_.x+_.width)return null;let h=cpt(this.viewHelper.viewDomNode,_,c);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),_,c,h,null)}_createMouseTarget(i,o){let s=i.target;if(!this.viewHelper.viewDomNode.contains(s)){let c=MG(this.viewHelper.viewDomNode);c&&(s=c.elementsFromPoint(i.posx,i.posy).find(_=>this.viewHelper.viewDomNode.contains(_)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),i.editorPos,i.pos,i.relativePos,o?s:null)}_getMouseColumn(i){return this.mouseTargetFactory.getMouseColumn(i.relativePos)}_onContextMenu(i,o){this.viewController.emitContextMenu({event:i,target:this._createMouseTarget(i,o)})}_onMouseMove(i){this.mouseTargetFactory.mouseTargetIsWidget(i)||i.preventDefault(),!(this._mouseDownOperation.isActive()||i.timestamp{i.preventDefault(),this.viewHelper.focusTextArea()};if(O&&(c||h&&b))j(),this._mouseDownOperation.start(s.type,i,o);else if(_)i.preventDefault();else if(w){let F=s.detail;O&&this.viewHelper.shouldSuppressMouseDownOnViewZone(F.viewZoneId)&&(j(),this._mouseDownOperation.start(s.type,i,o),i.preventDefault())}else D&&this.viewHelper.shouldSuppressMouseDownOnWidget(s.detail)&&(j(),i.preventDefault());this.viewController.emitMouseDown({event:i,target:s})}},mti=class extends Ui{constructor(i,o,s,c,_,h){super(),this._context=i,this._viewController=o,this._viewHelper=s,this._mouseTargetFactory=c,this._createMouseTarget=_,this._getMouseColumn=h,this._mouseMoveMonitor=this._register(new spt(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new hti(this._context,this._viewHelper,this._mouseTargetFactory,(b,w,D)=>this._dispatchMouse(b,w,D))),this._mouseState=new Tpt,this._currentSelection=new ya(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(i){this._lastMouseEvent=i,this._mouseState.setModifiers(i);let o=this._findMousePosition(i,!1);o&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:i,target:o}):o.type===13&&(o.outsidePosition==="above"||o.outsidePosition==="below")?this._topBottomDragScrolling.start(o,i):(this._topBottomDragScrolling.stop(),this._dispatchMouse(o,!0,1)))}start(i,o,s){this._lastMouseEvent=o,this._mouseState.setStartedOnLineNumbers(i===3),this._mouseState.setStartButtons(o),this._mouseState.setModifiers(o);let c=this._findMousePosition(o,!0);if(!c||!c.position)return;this._mouseState.trySetCount(o.detail,c.position),o.detail=this._mouseState.count;let _=this._context.configuration.options;if(!_.get(91)&&_.get(35)&&!_.get(22)&&!this._mouseState.altKey&&o.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&c.type===6&&c.position&&this._currentSelection.containsPosition(c.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,s,o.buttons,h=>this._onMouseDownThenMove(h),h=>{let b=this._findMousePosition(this._lastMouseEvent,!1);RG(h)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:b?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(c,o.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,s,o.buttons,h=>this._onMouseDownThenMove(h),()=>this._stop()))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(i){this._currentSelection=i.selections[0]}_getPositionOutsideEditor(i){let o=i.editorPos,s=this._context.viewModel,c=this._context.viewLayout,_=this._getMouseColumn(i);if(i.posyo.y+o.height){let b=i.posy-o.y-o.height,w=c.getCurrentScrollTop()+i.relativePos.y,D=lLe.getZoneAtCoord(this._context,w);if(D){let j=this._helpPositionJumpOverViewZone(D);if(j)return KD.createOutsideEditor(_,j,"below",b)}let O=c.getLineNumberAtVerticalOffset(w);return KD.createOutsideEditor(_,new Cn(O,s.getLineMaxColumn(O)),"below",b)}let h=c.getLineNumberAtVerticalOffset(c.getCurrentScrollTop()+i.relativePos.y);if(i.posxo.x+o.width){let b=i.posx-o.x-o.width;return KD.createOutsideEditor(_,new Cn(h,s.getLineMaxColumn(h)),"right",b)}return null}_findMousePosition(i,o){let s=this._getPositionOutsideEditor(i);if(s)return s;let c=this._createMouseTarget(i,o);if(!c.position)return null;if(c.type===8||c.type===5){let h=this._helpPositionJumpOverViewZone(c.detail);if(h)return KD.createViewZone(c.type,c.element,c.mouseColumn,h,c.detail)}return c}_helpPositionJumpOverViewZone(i){let o=new Cn(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),s=i.positionBefore,c=i.positionAfter;return s&&c?s.isBefore(o)?s:c:null}_dispatchMouse(i,o,s){i.position&&this._viewController.dispatchMouse({position:i.position,mouseColumn:i.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:s,inSelectionMode:o,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:i.type===6&&i.detail.injectedText!==null})}},hti=class extends Ui{constructor(i,o,s,c){super(),this._context=i,this._viewHelper=o,this._mouseTargetFactory=s,this._dispatchMouse=c,this._operation=null}dispose(){super.dispose(),this.stop()}start(i,o){this._operation?this._operation.setPosition(i,o):this._operation=new gti(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,i,o)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}},gti=class extends Ui{constructor(i,o,s,c,_,h){super(),this._context=i,this._viewHelper=o,this._mouseTargetFactory=s,this._dispatchMouse=c,this._position=_,this._mouseEvent=h,this._lastTime=Date.now(),this._animationFrameDisposable=g2(Xa(h.browserEvent),()=>this._execute())}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(i,o){this._position=i,this._mouseEvent=o}_tick(){let i=Date.now(),o=i-this._lastTime;return this._lastTime=i,o}_getScrollSpeed(){let i=this._context.configuration.options.get(67),o=this._context.configuration.options.get(145).height/i,s=this._position.outsideDistance/i;return s<=1.5?Math.max(30,o*(1+s)):s<=3?Math.max(60,o*(2+s)):Math.max(200,o*(7+s))}_execute(){let i=this._context.configuration.options.get(67),o=this._getScrollSpeed(),s=this._tick(),c=o*(s/1e3)*i,_=this._position.outsidePosition==="above"?-c:c;this._context.viewModel.viewLayout.deltaScrollNow(0,_),this._viewHelper.renderNow();let h=this._context.viewLayout.getLinesViewportData(),b=this._position.outsidePosition==="above"?h.startLineNumber:h.endLineNumber,w;{let D=apt(this._viewHelper.viewDomNode),O=this._context.configuration.options.get(145).horizontalScrollbarHeight,j=new Zde(this._mouseEvent.pos.x,D.y+D.height-O-.1),F=cpt(this._viewHelper.viewDomNode,D,j);w=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),D,j,F,null)}(!w.position||w.position.lineNumber!==b)&&(this._position.outsidePosition==="above"?w=KD.createOutsideEditor(this._position.mouseColumn,new Cn(b,1),"above",this._position.outsideDistance):w=KD.createOutsideEditor(this._position.mouseColumn,new Cn(b,this._context.viewModel.getLineMaxColumn(b)),"below",this._position.outsideDistance)),this._dispatchMouse(w,!0,2),this._animationFrameDisposable=g2(Xa(w.element),()=>this._execute())}},Tpt=class l{get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(i){this._altKey=i.altKey,this._ctrlKey=i.ctrlKey,this._metaKey=i.metaKey,this._shiftKey=i.shiftKey}setStartButtons(i){this._leftButton=i.leftButton,this._middleButton=i.middleButton}setStartedOnLineNumbers(i){this._startedOnLineNumbers=i}trySetCount(i,o){let s=new Date().getTime();s-this._lastSetMouseDownCountTime>l.CLEAR_MOUSE_DOWN_COUNT_TIME&&(i=1),this._lastSetMouseDownCountTime=s,i>this._lastMouseDownCount+1&&(i=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(o)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=o,this._lastMouseDownCount=Math.min(i,this._lastMouseDownPositionEqualCount)}};Tpt.CLEAR_MOUSE_DOWN_COUNT_TIME=400});var Yd,mW=Ht(()=>{Pa();Yd=class{get event(){return this.emitter.event}constructor(i,o,s){let c=_=>this.emitter.fire(_);this.emitter=new fn({onWillAddFirstListener:()=>i.addEventListener(o,c,s),onDidRemoveLastListener:()=>i.removeEventListener(o,c,s)})}dispose(){this.emitter.dispose()}}});var qF,M2,Ept,yti=Ht(()=>{Bl();ca();qF=!1,M2=class l{constructor(i,o,s,c,_){this.value=i,this.selectionStart=o,this.selectionEnd=s,this.selection=c,this.newlineCountBeforeSelection=_}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(i,o){let s=i.getValue(),c=i.getSelectionStart(),_=i.getSelectionEnd(),h;if(o){let b=s.substring(0,c),w=o.value.substring(0,o.selectionStart);b===w&&(h=o.newlineCountBeforeSelection)}return new l(s,c,_,null,h)}collapseSelection(){return this.selectionStart===this.value.length?this:new l(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(i,o,s){qF&&console.log(`writeToTextArea ${i}: ${this.toString()}`),o.setValue(i,this.value),s&&o.setSelectionRange(i,this.selectionStart,this.selectionEnd)}deduceEditorPosition(i){var o,s,c,_,h,b,w,D;if(i<=this.selectionStart){let F=this.value.substring(i,this.selectionStart);return this._finishDeduceEditorPosition((s=(o=this.selection)===null||o===void 0?void 0:o.getStartPosition())!==null&&s!==void 0?s:null,F,-1)}if(i>=this.selectionEnd){let F=this.value.substring(this.selectionEnd,i);return this._finishDeduceEditorPosition((_=(c=this.selection)===null||c===void 0?void 0:c.getEndPosition())!==null&&_!==void 0?_:null,F,1)}let O=this.value.substring(this.selectionStart,i);if(O.indexOf("\u2026")===-1)return this._finishDeduceEditorPosition((b=(h=this.selection)===null||h===void 0?void 0:h.getStartPosition())!==null&&b!==void 0?b:null,O,1);let j=this.value.substring(i,this.selectionEnd);return this._finishDeduceEditorPosition((D=(w=this.selection)===null||w===void 0?void 0:w.getEndPosition())!==null&&D!==void 0?D:null,j,-1)}_finishDeduceEditorPosition(i,o,s){let c=0,_=-1;for(;(_=o.indexOf(` +`,_+1))!==-1;)c++;return[i,s*o.length,c]}static deduceInput(i,o,s){if(!i)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};qF&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${i.toString()}`),console.log(`CURRENT STATE: ${o.toString()}`));let c=Math.min(FF(i.value,o.value),i.selectionStart,o.selectionStart),_=Math.min(PNe(i.value,o.value),i.value.length-i.selectionEnd,o.value.length-o.selectionEnd),h=i.value.substring(c,i.value.length-_),b=o.value.substring(c,o.value.length-_),w=i.selectionStart-c,D=i.selectionEnd-c,O=o.selectionStart-c,j=o.selectionEnd-c;if(qF&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${h}>, selectionStart: ${w}, selectionEnd: ${D}`),console.log(`AFTER DIFFING CURRENT STATE: <${b}>, selectionStart: ${O}, selectionEnd: ${j}`)),O===j){let X=i.selectionStart-c;return qF&&console.log(`REMOVE PREVIOUS: ${X} chars`),{text:b,replacePrevCharCnt:X,replaceNextCharCnt:0,positionDelta:0}}let F=D-w;return{text:b,replacePrevCharCnt:F,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(i,o){if(!i)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(qF&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${i.toString()}`),console.log(`CURRENT STATE: ${o.toString()}`)),i.value===o.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:o.selectionEnd-i.selectionEnd};let s=Math.min(FF(i.value,o.value),i.selectionEnd),c=Math.min(PNe(i.value,o.value),i.value.length-i.selectionEnd),_=i.value.substring(s,i.value.length-c),h=o.value.substring(s,o.value.length-c),b=i.selectionStart-s,w=i.selectionEnd-s,D=o.selectionStart-s,O=o.selectionEnd-s;return qF&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${_}>, selectionStart: ${b}, selectionEnd: ${w}`),console.log(`AFTER DIFFING CURRENT STATE: <${h}>, selectionStart: ${D}, selectionEnd: ${O}`)),{text:h,replacePrevCharCnt:w,replaceNextCharCnt:_.length-w,positionDelta:O-h.length}}};M2.EMPTY=new M2("",0,0,null,void 0);Ept=class l{static _getPageOfLine(i,o){return Math.floor((i-1)/o)}static _getRangeForPage(i,o){let s=i*o,c=s+1,_=s+o;return new Vt(c,1,_+1,1)}static fromEditorSelection(i,o,s,c){let h=l._getPageOfLine(o.startLineNumber,s),b=l._getRangeForPage(h,s),w=l._getPageOfLine(o.endLineNumber,s),D=l._getRangeForPage(w,s),O=b.intersectRanges(new Vt(1,1,o.startLineNumber,o.startColumn));if(c&&i.getValueLengthInRange(O,1)>500){let Le=i.modifyPosition(O.getEndPosition(),-500);O=Vt.fromPositions(Le,O.getEndPosition())}let j=i.getValueInRange(O,1),F=i.getLineCount(),X=i.getLineMaxColumn(F),K=D.intersectRanges(new Vt(o.endLineNumber,o.endColumn,F,X));if(c&&i.getValueLengthInRange(K,1)>500){let Le=i.modifyPosition(K.getStartPosition(),500);K=Vt.fromPositions(K.getStartPosition(),Le)}let re=i.getValueInRange(K,1),Pe;if(h===w||h+1===w)Pe=i.getValueInRange(o,1);else{let Le=b.intersectRanges(o),Je=D.intersectRanges(o);Pe=i.getValueInRange(Le,1)+"\u2026"+i.getValueInRange(Je,1)}return c&&Pe.length>2*500&&(Pe=Pe.substring(0,500)+"\u2026"+Pe.substring(Pe.length-500,Pe.length)),new M2(j+Pe+re,j.length,j.length+Pe.length,o,O.endLineNumber-O.startLineNumber)}}});var rBi,Gbi,Rrt,Brt,nfe,vti,Dpt,Ipt,Npt,jrt=Ht(()=>{RL();va();mW();jD();Hei();Bu();Pa();$r();Lde();Bl();yti();hg();fL();aL();rBi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Gbi=function(l,i){return function(o,s){i(o,s,l)}};(function(l){l.Tap="-monaco-textarea-synthetic-tap"})(Rrt||(Rrt={}));Brt={forceCopyWithSyntaxHighlighting:!1},nfe=class{constructor(){this._lastState=null}set(i,o){this._lastState={lastCopiedValue:i,data:o}}get(i){return this._lastState&&this._lastState.lastCopiedValue===i?this._lastState.data:(this._lastState=null,null)}};nfe.INSTANCE=new nfe;vti=class{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(i){i=i||"";let o={text:i,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=i.length,o}},Dpt=class extends Ui{get textAreaState(){return this._textAreaState}constructor(i,o,s,c,_,h){super(),this._host=i,this._textArea=o,this._OS=s,this._browser=c,this._accessibilityService=_,this._logService=h,this._onFocus=this._register(new fn),this.onFocus=this._onFocus.event,this._onBlur=this._register(new fn),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new fn),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new fn),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new fn),this.onCut=this._onCut.event,this._onPaste=this._register(new fn),this.onPaste=this._onPaste.event,this._onType=this._register(new fn),this.onType=this._onType.event,this._onCompositionStart=this._register(new fn),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new fn),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new fn),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new fn),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new Nh),this._asyncTriggerCut=this._register(new Bd(()=>this._onCut.fire(),0)),this._textAreaState=M2.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(Yo.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new Bd(()=>this.writeNativeTextAreaContent("asyncFocusGain"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let b=null;this._register(this._textArea.onKeyDown(w=>{let D=new w_(w);(D.keyCode===114||this._currentComposition&&D.keyCode===1)&&D.stopPropagation(),D.equals(9)&&D.preventDefault(),b=D,this._onKeyDown.fire(D)})),this._register(this._textArea.onKeyUp(w=>{let D=new w_(w);this._onKeyUp.fire(D)})),this._register(this._textArea.onCompositionStart(w=>{qF&&console.log("[compositionstart]",w);let D=new vti;if(this._currentComposition){this._currentComposition=D;return}if(this._currentComposition=D,this._OS===2&&b&&b.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===w.data&&(b.code==="ArrowRight"||b.code==="ArrowLeft")){qF&&console.log("[compositionstart] Handling long press case on macOS + arrow key",w),D.handleCompositionUpdate("x"),this._onCompositionStart.fire({data:w.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:w.data});return}this._onCompositionStart.fire({data:w.data})})),this._register(this._textArea.onCompositionUpdate(w=>{qF&&console.log("[compositionupdate]",w);let D=this._currentComposition;if(!D)return;if(this._browser.isAndroid){let j=M2.readFromTextArea(this._textArea,this._textAreaState),F=M2.deduceAndroidCompositionInput(this._textAreaState,j);this._textAreaState=j,this._onType.fire(F),this._onCompositionUpdate.fire(w);return}let O=D.handleCompositionUpdate(w.data);this._textAreaState=M2.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(O),this._onCompositionUpdate.fire(w)})),this._register(this._textArea.onCompositionEnd(w=>{qF&&console.log("[compositionend]",w);let D=this._currentComposition;if(!D)return;if(this._currentComposition=null,this._browser.isAndroid){let j=M2.readFromTextArea(this._textArea,this._textAreaState),F=M2.deduceAndroidCompositionInput(this._textAreaState,j);this._textAreaState=j,this._onType.fire(F),this._onCompositionEnd.fire();return}let O=D.handleCompositionUpdate(w.data);this._textAreaState=M2.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(O),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(w=>{if(qF&&console.log("[input]",w),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;let D=M2.readFromTextArea(this._textArea,this._textAreaState),O=M2.deduceInput(this._textAreaState,D,this._OS===2);O.replacePrevCharCnt===0&&O.text.length===1&&(E1(O.text.charCodeAt(0))||O.text.charCodeAt(0)===127)||(this._textAreaState=D,(O.text!==""||O.replacePrevCharCnt!==0||O.replaceNextCharCnt!==0||O.positionDelta!==0)&&this._onType.fire(O))})),this._register(this._textArea.onCut(w=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(w),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(w=>{this._ensureClipboardGetsEditorSelection(w)})),this._register(this._textArea.onPaste(w=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),w.preventDefault(),!w.clipboardData)return;let[D,O]=Ipt.getTextData(w.clipboardData);D&&(O=O||nfe.INSTANCE.get(D),this._onPaste.fire({text:D,metadata:O}))})),this._register(this._textArea.onFocus(()=>{let w=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!w&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new Bd(()=>this.writeNativeTextAreaContent("asyncFocusGain"),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let i=0;return Tr(this._textArea.ownerDocument,"selectionchange",o=>{if(eX.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;let s=Date.now(),c=s-i;if(i=s,c<5)return;let _=s-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),_<100||!this._textAreaState.selection)return;let h=this._textArea.getValue();if(this._textAreaState.value!==h)return;let b=this._textArea.getSelectionStart(),w=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===b&&this._textAreaState.selectionEnd===w)return;let D=this._textAreaState.deduceEditorPosition(b),O=this._host.deduceModelPosition(D[0],D[1],D[2]),j=this._textAreaState.deduceEditorPosition(w),F=this._host.deduceModelPosition(j[0],j[1],j[2]),X=new ya(O.lineNumber,O.column,F.lineNumber,F.column);this._onSelectionChangeRequest.fire(X)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(i){this._hasFocus!==i&&(this._hasFocus=i,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(i,o){this._hasFocus||(o=o.collapseSelection()),o.writeToTextArea(i,this._textArea,this._hasFocus),this._textAreaState=o}writeNativeTextAreaContent(i){!this._accessibilityService.isScreenReaderOptimized()&&i==="render"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${i})`),this._setAndWriteTextAreaState(i,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(i){let o=this._host.getDataToCopy(),s={version:1,isFromEmptySelection:o.isFromEmptySelection,multicursorText:o.multicursorText,mode:o.mode};nfe.INSTANCE.set(this._browser.isFirefox?o.text.replace(/\r\n/g,` +`):o.text,s),i.preventDefault(),i.clipboardData&&Ipt.setTextData(i.clipboardData,o.text,o.html,s)}};Dpt=rBi([Gbi(4,YS),Gbi(5,Nv)],Dpt);Ipt={getTextData(l){let i=l.getData(Fy.text),o=null,s=l.getData("vscode-editor-data");if(typeof s=="string")try{o=JSON.parse(s),o.version!==1&&(o=null)}catch{}return i.length===0&&o===null&&l.files.length>0?[Array.prototype.slice.call(l.files,0).map(_=>_.name).join(` +`),null]:[i,o]},setTextData(l,i,o,s){l.setData(Fy.text,i),typeof o=="string"&&l.setData("text/html",o),l.setData("vscode-editor-data",JSON.stringify(s))}},Npt=class extends Ui{get ownerDocument(){return this._actual.ownerDocument}constructor(i){super(),this._actual=i,this.onKeyDown=this._register(new Yd(this._actual,"keydown")).event,this.onKeyUp=this._register(new Yd(this._actual,"keyup")).event,this.onCompositionStart=this._register(new Yd(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new Yd(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new Yd(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new Yd(this._actual,"beforeinput")).event,this.onInput=this._register(new Yd(this._actual,"input")).event,this.onCut=this._register(new Yd(this._actual,"cut")).event,this.onCopy=this._register(new Yd(this._actual,"copy")).event,this.onPaste=this._register(new Yd(this._actual,"paste")).event,this.onFocus=this._register(new Yd(this._actual,"focus")).event,this.onBlur=this._register(new Yd(this._actual,"blur")).event,this._onSyntheticTap=this._register(new fn),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown(()=>eX.onKeyDown())),this._register(this.onBeforeInput(()=>eX.onBeforeInput())),this._register(this.onInput(()=>eX.onInput())),this._register(this.onKeyUp(()=>eX.onKeyUp())),this._register(Tr(this._actual,Rrt.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){let i=MG(this._actual);return i?i.activeElement===this._actual:this._actual.isConnected?qb()===this._actual:!1}setIgnoreSelectionChangeTime(i){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(i,o){let s=this._actual;s.value!==o&&(this.setIgnoreSelectionChangeTime("setValue"),s.value=o)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(i,o,s){let c=this._actual,_=null,h=MG(c);h?_=h.activeElement:_=qb();let b=Xa(_),w=_===c,D=c.selectionStart,O=c.selectionEnd;if(w&&D===o&&O===s){m2&&b.parent!==b&&c.focus();return}if(w){this.setIgnoreSelectionChangeTime("setSelectionRange"),c.setSelectionRange(o,s),m2&&b.parent!==b&&c.focus();return}try{let j=B0i(c);this.setIgnoreSelectionChangeTime("setSelectionRange"),c.focus(),c.setSelectionRange(o,s),j0i(c,j)}catch{}}}});var bti,Sti,Apt,Kbi=Ht(()=>{$dt();va();JF();GA();$r();uf();$bi();jrt();nLe();bti=class extends pLe{constructor(i,o,s){super(i,o,s),this._register(Ry.addTarget(this.viewHelper.linesContentDomNode)),this._register(Tr(this.viewHelper.linesContentDomNode,Zm.Tap,_=>this.onTap(_))),this._register(Tr(this.viewHelper.linesContentDomNode,Zm.Change,_=>this.onChange(_))),this._register(Tr(this.viewHelper.linesContentDomNode,Zm.Contextmenu,_=>this._onContextMenu(new lW(_,!1,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(Tr(this.viewHelper.linesContentDomNode,"pointerdown",_=>{let h=_.pointerType;if(h==="mouse"){this._lastPointerType="mouse";return}else h==="touch"?this._lastPointerType="touch":this._lastPointerType="pen"}));let c=new opt(this.viewHelper.viewDomNode);this._register(c.onPointerMove(this.viewHelper.viewDomNode,_=>this._onMouseMove(_))),this._register(c.onPointerUp(this.viewHelper.viewDomNode,_=>this._onMouseUp(_))),this._register(c.onPointerLeave(this.viewHelper.viewDomNode,_=>this._onMouseLeave(_))),this._register(c.onPointerDown(this.viewHelper.viewDomNode,(_,h)=>this._onMouseDown(_,h)))}onTap(i){!i.initialTarget||!this.viewHelper.linesContentDomNode.contains(i.initialTarget)||(i.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(i,!1))}onChange(i){this._lastPointerType==="touch"&&this._context.viewModel.viewLayout.deltaScrollNow(-i.translationX,-i.translationY),this._lastPointerType==="pen"&&this._dispatchGesture(i,!0)}_dispatchGesture(i,o){let s=this._createMouseTarget(new lW(i,!1,this.viewHelper.viewDomNode),!1);s.position&&this.viewController.dispatchMouse({position:s.position,mouseColumn:s.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:i.tapCount,inSelectionMode:o,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:s.type===6&&s.detail.injectedText!==null})}_onMouseDown(i,o){i.browserEvent.pointerType!=="touch"&&super._onMouseDown(i,o)}},Sti=class extends pLe{constructor(i,o,s){super(i,o,s),this._register(Ry.addTarget(this.viewHelper.linesContentDomNode)),this._register(Tr(this.viewHelper.linesContentDomNode,Zm.Tap,c=>this.onTap(c))),this._register(Tr(this.viewHelper.linesContentDomNode,Zm.Change,c=>this.onChange(c))),this._register(Tr(this.viewHelper.linesContentDomNode,Zm.Contextmenu,c=>this._onContextMenu(new lW(c,!1,this.viewHelper.viewDomNode),!1)))}onTap(i){i.preventDefault(),this.viewHelper.focusTextArea();let o=this._createMouseTarget(new lW(i,!1,this.viewHelper.viewDomNode),!1);if(o.position){let s=document.createEvent("CustomEvent");s.initEvent(Rrt.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(s),this.viewController.moveTo(o.position,1)}}onChange(i){this._context.viewModel.viewLayout.deltaScrollNow(-i.translationX,-i.translationY)}},Apt=class extends Ui{constructor(i,o,s){super(),($A||Sgi&&yut)&&t6e.pointerEvents?this.handler=this._register(new bti(i,o,s)):D_.TouchEvent?this.handler=this._register(new Sti(i,o,s)):this.handler=this._register(new pLe(i,o,s))}getTargetAtClientPoint(i,o){return this.handler.getTargetAtClientPoint(i,o)}}});var Xbi=Ht(()=>{});var Ybi=Ht(()=>{});var qL,rfe=Ht(()=>{rLe();qL=class extends uW{}});function L0(l){return{id:l}}function Wrt(l){switch(l){case UF.DARK:return"vs-dark";case UF.HIGH_CONTRAST_DARK:return"hc-black";case UF.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}function WC(l){return Qbi.onColorThemeChange(l)}var Ph,Cti,xti,Qbi,Ppt,_g=Ht(()=>{Pa();$r();kc();RC();dW();Ph=Wc("themeService");Cti={ThemingContribution:"base.contributions.theming"},xti=class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new fn}onColorThemeChange(i){return this.themingParticipants.push(i),this.onThemingParticipantAddedEmitter.fire(i),Qs(()=>{let o=this.themingParticipants.indexOf(i);this.themingParticipants.splice(o,1)})}getThemingParticipants(){return this.themingParticipants}},Qbi=new xti;q_.add(Cti.ThemingContribution,Qbi);Ppt=class extends Ui{constructor(i){super(),this.themeService=i,this.theme=i.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(o=>this.onThemeChange(o)))}onThemeChange(i){this.theme=i,this.updateStyles()}updateStyles(){}}});var kti,wti,Ygn,Qgn,Zgn,e0n,hW,aX,Rpt,Zbi,Bpt,eSi,cX,tSi,Lpt,Opt,xAe,iSi,nSi,rSi,oSi,sSi,CAe,aSi,cSi,lSi,uSi,dSi,Fpt,t0n,fSi,i0n,n0n,r0n,o0n,_Si,pSi,s0n,a0n,mSi,c0n,l0n,u0n,Mpt,jpt,hSi,gSi,ySi,Wpt,zpt,Vpt,Hpt,Upt,Jpt,vSi,bSi,SSi,xSi,CSi,kSi,wSi,TSi,ESi,DSi,ISi,NSi,ASi,d0n,f0n,bj=Ht(()=>{Fs();j1();Sv();_g();kti=cn("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},de("lineHighlight","Background color for the highlight of line at the cursor position.")),wti=cn("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:If},de("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),Ygn=cn("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},de("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),Qgn=cn("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:fg,hcLight:fg},de("rangeHighlightBorder","Background color of the border around highlighted ranges.")),Zgn=cn("editor.symbolHighlightBackground",{dark:pj,light:pj,hcDark:null,hcLight:null},de("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),e0n=cn("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:fg,hcLight:fg},de("symbolHighlightBorder","Background color of the border around highlighted symbols.")),hW=cn("editorCursor.foreground",{dark:"#AEAFAD",light:Kr.black,hcDark:Kr.white,hcLight:"#0F4A85"},de("caret","Color of the editor cursor.")),aX=cn("editorCursor.background",null,de("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),Rpt=cn("editorMultiCursor.primary.foreground",{dark:hW,light:hW,hcDark:hW,hcLight:hW},de("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),Zbi=cn("editorMultiCursor.primary.background",{dark:aX,light:aX,hcDark:aX,hcLight:aX},de("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),Bpt=cn("editorMultiCursor.secondary.foreground",{dark:hW,light:hW,hcDark:hW,hcLight:hW},de("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),eSi=cn("editorMultiCursor.secondary.background",{dark:aX,light:aX,hcDark:aX,hcLight:aX},de("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),cX=cn("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},de("editorWhitespaces","Color of whitespace characters in the editor.")),tSi=cn("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:Kr.white,hcLight:"#292929"},de("editorLineNumbers","Color of editor line numbers.")),Lpt=cn("editorIndentGuide.background",{dark:cX,light:cX,hcDark:cX,hcLight:cX},de("editorIndentGuides","Color of the editor indentation guides."),!1,de("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),Opt=cn("editorIndentGuide.activeBackground",{dark:cX,light:cX,hcDark:cX,hcLight:cX},de("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,de("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),xAe=cn("editorIndentGuide.background1",{dark:Lpt,light:Lpt,hcDark:Lpt,hcLight:Lpt},de("editorIndentGuides1","Color of the editor indentation guides (1).")),iSi=cn("editorIndentGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorIndentGuides2","Color of the editor indentation guides (2).")),nSi=cn("editorIndentGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorIndentGuides3","Color of the editor indentation guides (3).")),rSi=cn("editorIndentGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorIndentGuides4","Color of the editor indentation guides (4).")),oSi=cn("editorIndentGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorIndentGuides5","Color of the editor indentation guides (5).")),sSi=cn("editorIndentGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorIndentGuides6","Color of the editor indentation guides (6).")),CAe=cn("editorIndentGuide.activeBackground1",{dark:Opt,light:Opt,hcDark:Opt,hcLight:Opt},de("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),aSi=cn("editorIndentGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),cSi=cn("editorIndentGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),lSi=cn("editorIndentGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),uSi=cn("editorIndentGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),dSi=cn("editorIndentGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),Fpt=cn("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:fg,hcLight:fg},de("editorActiveLineNumber","Color of editor active line number"),!1,de("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),t0n=cn("editorLineNumber.activeForeground",{dark:Fpt,light:Fpt,hcDark:Fpt,hcLight:Fpt},de("editorActiveLineNumber","Color of editor active line number")),fSi=cn("editorLineNumber.dimmedForeground",{dark:null,light:null,hcDark:null,hcLight:null},de("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),i0n=cn("editorRuler.foreground",{dark:"#5A5A5A",light:Kr.lightgrey,hcDark:Kr.white,hcLight:"#292929"},de("editorRuler","Color of the editor rulers.")),n0n=cn("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},de("editorCodeLensForeground","Foreground color of editor CodeLens")),r0n=cn("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},de("editorBracketMatchBackground","Background color behind matching brackets")),o0n=cn("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:If,hcLight:If},de("editorBracketMatchBorder","Color for matching brackets boxes")),_Si=cn("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},de("editorOverviewRulerBorder","Color of the overview ruler border.")),pSi=cn("editorOverviewRuler.background",null,de("editorOverviewRulerBackground","Background color of the editor overview ruler.")),s0n=cn("editorGutter.background",{dark:jC,light:jC,hcDark:jC,hcLight:jC},de("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),a0n=cn("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:Kr.fromHex("#fff").transparent(.8),hcLight:If},de("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),mSi=cn("editorUnnecessaryCode.opacity",{dark:Kr.fromHex("#000a"),light:Kr.fromHex("#0007"),hcDark:null,hcLight:null},de("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),c0n=cn("editorGhostText.border",{dark:null,light:null,hcDark:Kr.fromHex("#fff").transparent(.8),hcLight:Kr.fromHex("#292929").transparent(.8)},de("editorGhostTextBorder","Border color of ghost text in the editor.")),l0n=cn("editorGhostText.foreground",{dark:Kr.fromHex("#ffffff56"),light:Kr.fromHex("#0007"),hcDark:null,hcLight:null},de("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),u0n=cn("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},de("editorGhostTextBackground","Background color of the ghost text in the editor.")),Mpt=new Kr(new Lf(0,122,204,.6)),jpt=cn("editorOverviewRuler.rangeHighlightForeground",{dark:Mpt,light:Mpt,hcDark:Mpt,hcLight:Mpt},de("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),hSi=cn("editorOverviewRuler.errorForeground",{dark:new Kr(new Lf(255,18,18,.7)),light:new Kr(new Lf(255,18,18,.7)),hcDark:new Kr(new Lf(255,50,50,1)),hcLight:"#B5200D"},de("overviewRuleError","Overview ruler marker color for errors.")),gSi=cn("editorOverviewRuler.warningForeground",{dark:S2,light:S2,hcDark:Gde,hcLight:Gde},de("overviewRuleWarning","Overview ruler marker color for warnings.")),ySi=cn("editorOverviewRuler.infoForeground",{dark:F2,light:F2,hcDark:Kde,hcLight:Kde},de("overviewRuleInfo","Overview ruler marker color for infos.")),Wpt=cn("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},de("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),zpt=cn("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},de("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),Vpt=cn("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},de("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),Hpt=cn("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),Upt=cn("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),Jpt=cn("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),vSi=cn("editorBracketHighlight.unexpectedBracket.foreground",{dark:new Kr(new Lf(255,18,18,.8)),light:new Kr(new Lf(255,18,18,.8)),hcDark:new Kr(new Lf(255,50,50,1)),hcLight:""},de("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),bSi=cn("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),SSi=cn("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),xSi=cn("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),CSi=cn("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),kSi=cn("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),wSi=cn("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),TSi=cn("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),ESi=cn("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),DSi=cn("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),ISi=cn("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),NSi=cn("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),ASi=cn("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},de("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),d0n=cn("editorUnicodeHighlight.border",{dark:S2,light:S2,hcDark:S2,hcLight:S2},de("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),f0n=cn("editorUnicodeHighlight.background",{dark:Drt,light:Drt,hcDark:Drt,hcLight:Drt},de("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));WC((l,i)=>{let o=l.getColor(jC),s=l.getColor(kti),c=s&&!s.isTransparent()?s:o;c&&i.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${c}; }`)})});var kAe,Tti=Ht(()=>{Ybi();uf();rfe();Ll();ca();_g();bj();kAe=class l extends qL{constructor(i){super(),this._context=i,this._readConfig(),this._lastCursorModelPosition=new Cn(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){let i=this._context.configuration.options;this._lineHeight=i.get(67);let o=i.get(68);this._renderLineNumbers=o.renderType,this._renderCustomLineNumbers=o.renderFn,this._renderFinalNewline=i.get(95);let s=i.get(145);this._lineNumbersLeft=s.lineNumbersLeft,this._lineNumbersWidth=s.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){return this._readConfig(),!0}onCursorStateChanged(i){let o=i.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(o);let s=!1;return this._activeLineNumber!==o.lineNumber&&(this._activeLineNumber=o.lineNumber,s=!0),(this._renderLineNumbers===2||this._renderLineNumbers===3)&&(s=!0),s}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}onDecorationsChanged(i){return i.affectsLineNumber}_getLineRenderLineNumber(i){let o=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Cn(i,1));if(o.column!==1)return"";let s=o.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(s);if(this._renderLineNumbers===2){let c=Math.abs(this._lastCursorModelPosition.lineNumber-s);return c===0?''+s+"":String(c)}if(this._renderLineNumbers===3){if(this._lastCursorModelPosition.lineNumber===s||s%10===0)return String(s);let c=this._context.viewModel.getLineCount();return s===c?String(s):""}return String(s)}prepareRender(i){if(this._renderLineNumbers===0){this._renderResult=null;return}let o=w1?this._lineHeight%2===0?" lh-even":" lh-odd":"",s=i.visibleRange.startLineNumber,c=i.visibleRange.endLineNumber,_=this._context.viewModel.getDecorationsInViewport(i.visibleRange).filter(D=>!!D.options.lineNumberClassName);_.sort((D,O)=>Vt.compareRangesUsingEnds(D.range,O.range));let h=0,b=this._context.viewModel.getLineCount(),w=[];for(let D=s;D<=c;D++){let O=D-s,j=this._getLineRenderLineNumber(D),F="";for(;h<_.length&&_[h].range.endLineNumber${j}`}this._renderResult=w}render(i,o){if(!this._renderResult)return"";let s=o-i;return s<0||s>=this._renderResult.length?"":this._renderResult[s]}};kAe.CLASS_NAME="line-numbers";WC((l,i)=>{let o=l.getColor(tSi),s=l.getColor(fSi);s?i.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${s}; }`):o&&i.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${o.transparent(.4)}; }`)})});var PSi=Ht(()=>{});var ofe,Eti=Ht(()=>{PSi();Tw();gP();ofe=class l extends W1{constructor(i){super(i);let o=this._context.configuration.options,s=o.get(145);this._canUseLayerHinting=!o.get(32),this._contentLeft=s.contentLeft,this._glyphMarginLeft=s.glyphMarginLeft,this._glyphMarginWidth=s.glyphMarginWidth,this._domNode=cf(document.createElement("div")),this._domNode.setClassName(l.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=cf(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(l.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(i){let o=this._context.configuration.options,s=o.get(145);return this._canUseLayerHinting=!o.get(32),this._contentLeft=s.contentLeft,this._glyphMarginLeft=s.glyphMarginLeft,this._glyphMarginWidth=s.glyphMarginWidth,!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollTopChanged}prepareRender(i){}render(i){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");let o=i.scrollTop-i.bigNumbersDelta;this._domNode.setTop(-o);let s=Math.min(i.scrollHeight,1e6);this._domNode.setHeight(s),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(s)}};ofe.CLASS_NAME="glyph-margin";ofe.OUTER_CLASS_NAME="margin"});var LSi=Ht(()=>{});var Hle,qpt=Ht(()=>{LSi();Hle="monaco-mouse-cursor-text"});var Dti,wAe,Iti=Ht(()=>{Pa();Dti=class{constructor(){this._onDidChange=new fn,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}},wAe=new Dti});var ju,By=Ht(()=>{kc();ju=Wc("keybindingService")});function sBi(l,i,o,s){if(i.length===0)return 0;let c=l.createElement("div");c.style.position="absolute",c.style.top="-50000px",c.style.width="50000px";let _=l.createElement("span");Iv(_,o),_.style.whiteSpace="pre",_.style.tabSize=`${s*o.spaceWidth}px`,_.append(i),c.appendChild(_),l.body.appendChild(c);let h=_.offsetWidth;return l.body.removeChild(c),h}var oBi,OSi,Ati,Nti,$pt,FSi=Ht(()=>{Xbi();Fs();RL();Tw();uf();Bl();v7();jrt();yti();gP();Tti();Eti();FC();x6e();Ll();ca();hg();qpt();Fg();j1();Iti();By();kc();oBi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},OSi=function(l,i){return function(o,s){i(o,s,l)}},Ati=class{constructor(i,o,s,c,_){this._context=i,this.modelLineNumber=o,this.distanceToModelLineStart=s,this.widthOfHiddenLineTextBefore=c,this.distanceToModelLineEnd=_,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(i){let o=new Cn(this.modelLineNumber,this.distanceToModelLineStart+1),s=new Cn(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(o),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=i.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=i.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(i){return this._previousPresentation||(i?this._previousPresentation=i:this._previousPresentation={foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}},Nti=m2,$pt=class extends W1{constructor(i,o,s,c,_){super(i),this._keybindingService=c,this._instantiationService=_,this._primaryCursorPosition=new Cn(1,1),this._primaryCursorVisibleRange=null,this._viewController=o,this._visibleRangeProvider=s,this._scrollLeft=0,this._scrollTop=0;let h=this._context.configuration.options,b=h.get(145);this._setAccessibilityOptions(h),this._contentLeft=b.contentLeft,this._contentWidth=b.contentWidth,this._contentHeight=b.height,this._fontInfo=h.get(50),this._lineHeight=h.get(67),this._emptySelectionClipboard=h.get(37),this._copyWithSyntaxHighlighting=h.get(25),this._visibleTextArea=null,this._selections=[new ya(1,1,1,1)],this._modelSelections=[new ya(1,1,1,1)],this._lastRenderPosition=null,this.textArea=cf(document.createElement("textarea")),GD.write(this.textArea,7),this.textArea.setClassName(`inputarea ${Hle}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");let{tabSize:w}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=`${w*this._fontInfo.spaceWidth}px`,this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(h)),this.textArea.setAttribute("aria-required",h.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(h.get(124))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",de("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",h.get(91)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=cf(document.createElement("div")),this.textAreaCover.setPosition("absolute");let D={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:F=>this._context.viewModel.getLineMaxColumn(F),getValueInRange:(F,X)=>this._context.viewModel.getValueInRange(F,X),getValueLengthInRange:(F,X)=>this._context.viewModel.getValueLengthInRange(F,X),modifyPosition:(F,X)=>this._context.viewModel.modifyPosition(F,X)},O={getDataToCopy:()=>{let F=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,Ny),X=this._context.viewModel.model.getEOL(),K=this._emptySelectionClipboard&&this._modelSelections.length===1&&this._modelSelections[0].isEmpty(),re=Array.isArray(F)?F:null,Pe=Array.isArray(F)?F.join(X):F,Le,Je=null;if(Brt.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&Pe.length<65536){let Ye=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);Ye&&(Le=Ye.html,Je=Ye.mode)}return{isFromEmptySelection:K,multicursorText:re,text:Pe,html:Le,mode:Je}},getScreenReaderContent:()=>{if(this._accessibilitySupport===1){let F=this._selections[0];if(uu&&F.isEmpty()){let K=F.getStartPosition(),re=this._getWordBeforePosition(K);if(re.length===0&&(re=this._getCharacterBeforePosition(K)),re.length>0)return new M2(re,re.length,re.length,Vt.fromPositions(K),0)}if(uu&&!F.isEmpty()&&D.getValueLengthInRange(F,0)<500){let K=D.getValueInRange(F,0);return new M2(K,0,K.length,F,0)}if(MF&&!F.isEmpty()){let K="vscode-placeholder";return new M2(K,0,K.length,null,void 0)}return M2.EMPTY}if(DQt){let F=this._selections[0];if(F.isEmpty()){let X=F.getStartPosition(),[K,re]=this._getAndroidWordAtPosition(X);if(K.length>0)return new M2(K,re,re,Vt.fromPositions(X),0)}return M2.EMPTY}return Ept.fromEditorSelection(D,this._selections[0],this._accessibilityPageSize,this._accessibilitySupport===0)},deduceModelPosition:(F,X,K)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(F,X,K)},j=this._register(new Npt(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(Dpt,O,j,xw,{isAndroid:DQt,isChrome:xde,isFirefox:m2,isSafari:MF})),this._register(this._textAreaInput.onKeyDown(F=>{this._viewController.emitKeyDown(F)})),this._register(this._textAreaInput.onKeyUp(F=>{this._viewController.emitKeyUp(F)})),this._register(this._textAreaInput.onPaste(F=>{let X=!1,K=null,re=null;F.metadata&&(X=this._emptySelectionClipboard&&!!F.metadata.isFromEmptySelection,K=typeof F.metadata.multicursorText<"u"?F.metadata.multicursorText:null,re=F.metadata.mode),this._viewController.paste(F.text,X,K,re)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(F=>{F.replacePrevCharCnt||F.replaceNextCharCnt||F.positionDelta?(qF&&console.log(` => compositionType: <<${F.text}>>, ${F.replacePrevCharCnt}, ${F.replaceNextCharCnt}, ${F.positionDelta}`),this._viewController.compositionType(F.text,F.replacePrevCharCnt,F.replaceNextCharCnt,F.positionDelta)):(qF&&console.log(` => type: <<${F.text}>>`),this._viewController.type(F.text))})),this._register(this._textAreaInput.onSelectionChangeRequest(F=>{this._viewController.setSelection(F)})),this._register(this._textAreaInput.onCompositionStart(F=>{let X=this.textArea.domNode,K=this._modelSelections[0],{distanceToModelLineStart:re,widthOfHiddenTextBefore:Pe}=(()=>{let Je=X.value.substring(0,Math.min(X.selectionStart,X.selectionEnd)),Ye=Je.lastIndexOf(` +`),ft=Je.substring(Ye+1),Ct=ft.lastIndexOf(" "),Et=ft.length-Ct-1,St=K.getStartPosition(),Mi=Math.min(St.column-1,Et),zi=St.column-1-Mi,Vr=ft.substring(0,ft.length-Mi),{tabSize:sn}=this._context.viewModel.model.getOptions(),gr=sBi(this.textArea.domNode.ownerDocument,Vr,this._fontInfo,sn);return{distanceToModelLineStart:zi,widthOfHiddenTextBefore:gr}})(),{distanceToModelLineEnd:Le}=(()=>{let Je=X.value.substring(Math.max(X.selectionStart,X.selectionEnd)),Ye=Je.indexOf(` +`),ft=Ye===-1?Je:Je.substring(0,Ye),Ct=ft.indexOf(" "),Et=Ct===-1?ft.length:ft.length-Ct-1,St=K.getEndPosition(),Mi=Math.min(this._context.viewModel.model.getLineMaxColumn(St.lineNumber)-St.column,Et);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(St.lineNumber)-St.column-Mi}})();this._context.viewModel.revealRange("keyboard",!0,Vt.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new Ati(this._context,K.startLineNumber,re,Pe,Le),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${Hle} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(F=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${Hle}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.viewModel.setHasFocus(!1)})),this._register(wAe.onDidChange(()=>{this._ensureReadOnlyAttribute()}))}writeScreenReaderContent(i){this._textAreaInput.writeNativeTextAreaContent(i)}dispose(){super.dispose()}_getAndroidWordAtPosition(i){let o='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',s=this._context.viewModel.getLineContent(i.lineNumber),c=_P(o,[]),_=!0,h=i.column,b=!0,w=i.column,D=0;for(;D<50&&(_||b);){if(_&&h<=1&&(_=!1),_){let O=s.charCodeAt(h-2);c.get(O)!==0?_=!1:h--}if(b&&w>s.length&&(b=!1),b){let O=s.charCodeAt(w-1);c.get(O)!==0?b=!1:w++}D++}return[s.substring(h-1,w-1),i.column-h]}_getWordBeforePosition(i){let o=this._context.viewModel.getLineContent(i.lineNumber),s=_P(this._context.configuration.options.get(131),[]),c=i.column,_=0;for(;c>1;){let h=o.charCodeAt(c-2);if(s.get(h)!==0||_>50)return o.substring(c-1,i.column-1);_++,c--}return o.substring(0,i.column-1)}_getCharacterBeforePosition(i){if(i.column>1){let s=this._context.viewModel.getLineContent(i.lineNumber).charAt(i.column-2);if(!E1(s.charCodeAt(0)))return s}return""}_getAriaLabel(i){var o,s,c;if(i.get(2)===1){let h=(o=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode"))===null||o===void 0?void 0:o.getAriaLabel(),b=(s=this._keybindingService.lookupKeybinding("workbench.action.showCommands"))===null||s===void 0?void 0:s.getAriaLabel(),w=(c=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings"))===null||c===void 0?void 0:c.getAriaLabel(),D=de("accessibilityModeOff","The editor is not accessible at this time.");return h?de("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",D,h):b?de("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",D,b):w?de("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",D,w):D}return i.get(4)}_setAccessibilityOptions(i){this._accessibilitySupport=i.get(2);let o=i.get(3);this._accessibilitySupport===2&&o===OL.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=o;let c=i.get(145).wrappingColumn;if(c!==-1&&this._accessibilitySupport!==1){let _=i.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(c*_.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=Nti?0:1}onConfigurationChanged(i){let o=this._context.configuration.options,s=o.get(145);this._setAccessibilityOptions(o),this._contentLeft=s.contentLeft,this._contentWidth=s.contentWidth,this._contentHeight=s.height,this._fontInfo=o.get(50),this._lineHeight=o.get(67),this._emptySelectionClipboard=o.get(37),this._copyWithSyntaxHighlighting=o.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");let{tabSize:c}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=`${c*this._fontInfo.spaceWidth}px`,this.textArea.setAttribute("aria-label",this._getAriaLabel(o)),this.textArea.setAttribute("aria-required",o.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(o.get(124))),(i.hasChanged(34)||i.hasChanged(91))&&this._ensureReadOnlyAttribute(),i.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(i){return this._selections=i.selections.slice(0),this._modelSelections=i.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return this._scrollLeft=i.scrollLeft,this._scrollTop=i.scrollTop,!0}onZonesChanged(i){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(i){i.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",i.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),i.role&&this.textArea.setAttribute("role",i.role)}_ensureReadOnlyAttribute(){let i=this._context.configuration.options;!wAe.enabled||i.get(34)&&i.get(91)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(i){var o;this._primaryCursorPosition=new Cn(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=i.visibleRangeForPosition(this._primaryCursorPosition),(o=this._visibleTextArea)===null||o===void 0||o.prepareRender(i)}render(i){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){var i;if(this._visibleTextArea){let c=this._visibleTextArea.visibleTextareaStart,_=this._visibleTextArea.visibleTextareaEnd,h=this._visibleTextArea.startPosition,b=this._visibleTextArea.endPosition;if(h&&b&&c&&_&&_.left>=this._scrollLeft&&c.left<=this._scrollLeft+this._contentWidth){let w=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,D=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart)),O=this._visibleTextArea.widthOfHiddenLineTextBefore,j=this._contentLeft+c.left-this._scrollLeft,F=_.left-c.left+1;if(jthis._contentWidth&&(F=this._contentWidth);let X=this._context.viewModel.getViewLineData(h.lineNumber),K=X.tokens.findTokenIndexAtOffset(h.column-1),re=X.tokens.findTokenIndexAtOffset(b.column-1),Pe=K===re,Le=this._visibleTextArea.definePresentation(Pe?X.tokens.getPresentation(K):null);this.textArea.domNode.scrollTop=D*this._lineHeight,this.textArea.domNode.scrollLeft=O,this._doRender({lastRenderPosition:null,top:w,left:j,width:F,height:this._lineHeight,useCover:!1,color:(Oh.getColorMap()||[])[Le.foreground],italic:Le.italic,bold:Le.bold,underline:Le.underline,strikethrough:Le.strikethrough})}return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}let o=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(othis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}let s=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(s<0||s>this._contentHeight){this._renderAtTopLeft();return}if(uu||this._accessibilitySupport===2){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:s,left:this._textAreaWrapping?this._contentLeft:o,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;let c=(i=this._textAreaInput.textAreaState.newlineCountBeforeSelection)!==null&&i!==void 0?i:this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=c*this._lineHeight;return}this._doRender({lastRenderPosition:this._primaryCursorPosition,top:s,left:this._textAreaWrapping?this._contentLeft:o,width:this._textAreaWidth,height:Nti?0:1,useCover:!1})}_newlinecount(i){let o=0,s=-1;do{if(s=i.indexOf(` +`,s+1),s===-1)break;o++}while(!0);return o}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:Nti?0:1,useCover:!0})}_doRender(i){this._lastRenderPosition=i.lastRenderPosition;let o=this.textArea,s=this.textAreaCover;Iv(o,this._fontInfo),o.setTop(i.top),o.setLeft(i.left),o.setWidth(i.width),o.setHeight(i.height),o.setColor(i.color?Kr.Format.CSS.formatHex(i.color):""),o.setFontStyle(i.italic?"italic":""),i.bold&&o.setFontWeight("bold"),o.setTextDecoration(`${i.underline?" underline":""}${i.strikethrough?" line-through":""}`),s.setTop(i.useCover?i.top:0),s.setLeft(i.useCover?i.left:0),s.setWidth(i.useCover?i.width:0),s.setHeight(i.useCover?i.height:0);let c=this._context.configuration.options;c.get(57)?s.setClassName("monaco-editor-background textAreaCover "+ofe.OUTER_CLASS_NAME):c.get(68).renderType!==0?s.setClassName("monaco-editor-background textAreaCover "+kAe.CLASS_NAME):s.setClassName("monaco-editor-background textAreaCover")}};$pt=oBi([OSi(3,ju),OSi(4,qs)],$pt)});function aBi(l,i,o){let s=0;for(let _=0;_{Bl();_W()});function lX(l){return l==="'"||l==='"'||l==="`"}var cBi,lBi,uBi,Ule,I_,Pti,Lti,Iw,XD,Sj=Ht(()=>{Ll();ca();hg();h6e();_W();Gpt();cBi=()=>!0,lBi=()=>!1,uBi=l=>l===" "||l===" ",Ule=class{static shouldRecreate(i){return i.hasChanged(145)||i.hasChanged(131)||i.hasChanged(37)||i.hasChanged(77)||i.hasChanged(79)||i.hasChanged(80)||i.hasChanged(6)||i.hasChanged(7)||i.hasChanged(11)||i.hasChanged(9)||i.hasChanged(10)||i.hasChanged(14)||i.hasChanged(128)||i.hasChanged(50)||i.hasChanged(91)||i.hasChanged(130)}constructor(i,o,s,c){var _;this.languageConfigurationService=c,this._cursorMoveConfigurationBrand=void 0,this._languageId=i;let h=s.options,b=h.get(145),w=h.get(50);this.readOnly=h.get(91),this.tabSize=o.tabSize,this.indentSize=o.indentSize,this.insertSpaces=o.insertSpaces,this.stickyTabStops=h.get(116),this.lineHeight=w.lineHeight,this.typicalHalfwidthCharacterWidth=w.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(b.height/this.lineHeight)-2),this.useTabStops=h.get(128),this.wordSeparators=h.get(131),this.emptySelectionClipboard=h.get(37),this.copyWithSyntaxHighlighting=h.get(25),this.multiCursorMergeOverlapping=h.get(77),this.multiCursorPaste=h.get(79),this.multiCursorLimit=h.get(80),this.autoClosingBrackets=h.get(6),this.autoClosingComments=h.get(7),this.autoClosingQuotes=h.get(11),this.autoClosingDelete=h.get(9),this.autoClosingOvertype=h.get(10),this.autoSurround=h.get(14),this.autoIndent=h.get(12),this.wordSegmenterLocales=h.get(130),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(i,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(i,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(i,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(i).getAutoClosingPairs();let D=this.languageConfigurationService.getLanguageConfiguration(i).getSurroundingPairs();if(D)for(let j of D)this.surroundingPairs[j.open]=j.close;let O=this.languageConfigurationService.getLanguageConfiguration(i).comments;this.blockCommentStartToken=(_=O?.blockCommentStartToken)!==null&&_!==void 0?_:null}get electricChars(){var i;if(!this._electricChars){this._electricChars={};let o=(i=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)===null||i===void 0?void 0:i.getElectricCharacters();if(o)for(let s of o)this._electricChars[s]=!0}return this._electricChars}onElectricCharacter(i,o,s){let c=HK(o,s-1),_=this.languageConfigurationService.getLanguageConfiguration(c.languageId).electricCharacter;return _?_.onElectricCharacter(i,c,s-c.firstCharOffset):null}normalizeIndentation(i){return mLe(i,this.indentSize,this.insertSpaces)}_getShouldAutoClose(i,o,s){switch(o){case"beforeWhitespace":return uBi;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(i,s);case"always":return cBi;case"never":return lBi}}_getLanguageDefinedShouldAutoClose(i,o){let s=this.languageConfigurationService.getLanguageConfiguration(i).getAutoCloseBeforeSet(o);return c=>s.indexOf(c)!==-1}visibleColumnFromColumn(i,o){return xv.visibleColumnFromColumn(i.getLineContent(o.lineNumber),o.column,this.tabSize)}columnFromVisibleColumn(i,o,s){let c=xv.columnFromVisibleColumn(i.getLineContent(o),s,this.tabSize),_=i.getLineMinColumn(o);if(c<_)return _;let h=i.getLineMaxColumn(o);return c>h?h:c}},I_=class l{static fromModelState(i){return new Pti(i)}static fromViewState(i){return new Lti(i)}static fromModelSelection(i){let o=ya.liftSelection(i),s=new Iw(Vt.fromPositions(o.getSelectionStart()),0,0,o.getPosition(),0);return l.fromModelState(s)}static fromModelSelections(i){let o=[];for(let s=0,c=i.length;s{Sj();Ll();ca();sfe=class l{static columnSelect(i,o,s,c,_,h){let b=Math.abs(_-s)+1,w=s>_,D=c>h,O=ch||Lec||Pe0&&c--,l.columnSelect(i,o,s.fromViewLineNumber,s.fromViewVisualColumn,s.toViewLineNumber,c)}static columnSelectRight(i,o,s){let c=0,_=Math.min(s.fromViewLineNumber,s.toViewLineNumber),h=Math.max(s.fromViewLineNumber,s.toViewLineNumber);for(let w=_;w<=h;w++){let D=o.getLineMaxColumn(w),O=i.visibleColumnFromColumn(o,new Cn(w,D));c=Math.max(c,O)}let b=s.toViewVisualColumn;return b{hg();tx=class{constructor(i,o,s=!1){this._range=i,this._text=o,this.insertsAutoWhitespace=s}getEditOperations(i,o){o.addTrackedEditOperation(this._range,this._text)}computeCursorState(i,o){let c=o.getInverseEditOperations()[0].range;return ya.fromPositions(c.getEndPosition())}},Kpt=class{constructor(i,o){this._range=i,this._text=o}getEditOperations(i,o){o.addTrackedEditOperation(this._range,this._text)}computeCursorState(i,o){let c=o.getInverseEditOperations()[0].range;return ya.fromRange(c,0)}},TAe=class{constructor(i,o,s=!1){this._range=i,this._text=o,this.insertsAutoWhitespace=s}getEditOperations(i,o){o.addTrackedEditOperation(this._range,this._text)}computeCursorState(i,o){let c=o.getInverseEditOperations()[0].range;return ya.fromPositions(c.getStartPosition())}},EAe=class{constructor(i,o,s,c,_=!1){this._range=i,this._text=o,this._columnDeltaOffset=c,this._lineNumberDeltaOffset=s,this.insertsAutoWhitespace=_}getEditOperations(i,o){o.addTrackedEditOperation(this._range,this._text)}computeCursorState(i,o){let c=o.getInverseEditOperations()[0].range;return ya.fromPositions(c.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}},afe=class{constructor(i,o,s,c=!1){this._range=i,this._text=o,this._initialSelection=s,this._forceMoveMarkers=c,this._selectionId=null}getEditOperations(i,o){o.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=o.trackSelection(this._initialSelection)}computeCursorState(i,o){return o.getTrackedSelection(this._selectionId)}}});var zrt,z1,Xpt=Ht(()=>{Bl();_W();Ll();ca();sti();Sj();zrt=class{constructor(i,o,s){this._cursorPositionBrand=void 0,this.lineNumber=i,this.column=o,this.leftoverVisibleColumns=s}},z1=class l{static leftPosition(i,o){if(o.column>i.getLineMinColumn(o.lineNumber))return o.delta(void 0,-wQt(i.getLineContent(o.lineNumber),o.column-1));if(o.lineNumber>1){let s=o.lineNumber-1;return new Cn(s,i.getLineMaxColumn(s))}else return o}static leftPositionAtomicSoftTabs(i,o,s){if(o.column<=i.getLineIndentColumn(o.lineNumber)){let c=i.getLineMinColumn(o.lineNumber),_=i.getLineContent(o.lineNumber),h=vAe.atomicPosition(_,o.column-1,s,0);if(h!==-1&&h+1>=c)return new Cn(o.lineNumber,h+1)}return this.leftPosition(i,o)}static left(i,o,s){let c=i.stickyTabStops?l.leftPositionAtomicSoftTabs(o,s,i.tabSize):l.leftPosition(o,s);return new zrt(c.lineNumber,c.column,0)}static moveLeft(i,o,s,c,_){let h,b;if(s.hasSelection()&&!c)h=s.selection.startLineNumber,b=s.selection.startColumn;else{let w=s.position.delta(void 0,-(_-1)),D=o.normalizePosition(l.clipPositionColumn(w,o),0),O=l.left(i,o,D);h=O.lineNumber,b=O.column}return s.move(c,h,b,0)}static clipPositionColumn(i,o){return new Cn(i.lineNumber,l.clipRange(i.column,o.getLineMinColumn(i.lineNumber),o.getLineMaxColumn(i.lineNumber)))}static clipRange(i,o,s){return is?s:i}static rightPosition(i,o,s){return sO?(s=O,b?c=o.getLineMaxColumn(s):c=Math.min(o.getLineMaxColumn(s),c)):c=i.columnFromVisibleColumn(o,s,D),X?_=0:_=D-xv.visibleColumnFromColumn(o.getLineContent(s),c,i.tabSize),w!==void 0){let K=new Cn(s,c),re=o.normalizePosition(K,w);_=_+(c-re.column),s=re.lineNumber,c=re.column}return new zrt(s,c,_)}static down(i,o,s,c,_,h,b){return this.vertical(i,o,s,c,_,s+h,b,4)}static moveDown(i,o,s,c,_){let h,b;s.hasSelection()&&!c?(h=s.selection.endLineNumber,b=s.selection.endColumn):(h=s.position.lineNumber,b=s.position.column);let w=0,D;do if(D=l.down(i,o,h+w,b,s.leftoverVisibleColumns,_,!0),o.normalizePosition(new Cn(D.lineNumber,D.column),2).lineNumber>h)break;while(w++<10&&h+w1&&this._isBlankLine(o,_);)_--;for(;_>1&&!this._isBlankLine(o,_);)_--;return s.move(c,_,o.getLineMinColumn(_),0)}static moveToNextBlankLine(i,o,s,c){let _=o.getLineCount(),h=s.position.lineNumber;for(;h<_&&this._isBlankLine(o,h);)h++;for(;h<_&&!this._isBlankLine(o,h);)h++;return s.move(c,h,o.getLineMinColumn(h),0)}static moveToBeginningOfLine(i,o,s,c){let _=s.position.lineNumber,h=o.getLineMinColumn(_),b=o.getLineFirstNonWhitespaceColumn(_)||h,w;return s.position.column===b?w=h:w=b,s.move(c,_,w,0)}static moveToEndOfLine(i,o,s,c,_){let h=s.position.lineNumber,b=o.getLineMaxColumn(h);return s.move(c,h,b,_?1073741824-b:0)}static moveToBeginningOfBuffer(i,o,s,c){return s.move(c,1,1,0)}static moveToEndOfBuffer(i,o,s,c){let _=o.getLineCount(),h=o.getLineMaxColumn(_);return s.move(c,_,h,0)}}});var Jle,Ypt=Ht(()=>{Bl();DAe();Sj();_W();Xpt();ca();Ll();Jle=class l{static deleteRight(i,o,s,c){let _=[],h=i!==3;for(let b=0,w=c.length;b=F.length+1)return!1;let X=F.charAt(j.column-2),K=c.get(X);if(!K)return!1;if(lX(X)){if(s==="never")return!1}else if(o==="never")return!1;let re=F.charAt(j.column-1),Pe=!1;for(let Le of K)Le.open===X&&Le.close===re&&(Pe=!0);if(!Pe)return!1;if(i==="auto"){let Le=!1;for(let Je=0,Ye=b.length;Je1){let _=o.getLineContent(c.lineNumber),h=M1(_),b=h===-1?_.length+1:h+1;if(c.column<=b){let w=s.visibleColumnFromColumn(o,c),D=xv.prevIndentTabStop(w,s.indentSize),O=s.columnFromVisibleColumn(o,c.lineNumber,D);return new Vt(c.lineNumber,O,c.lineNumber,c.column)}}return Vt.fromPositions(l.getPositionAfterDeleteLeft(c,o),c)}static getPositionAfterDeleteLeft(i,o){if(i.column>1){let s=o0i(i.column-1,o.getLineContent(i.lineNumber));return i.with(void 0,s+1)}else if(i.lineNumber>1){let s=i.lineNumber-1;return new Cn(s,o.getLineMaxColumn(s))}else return i}static cut(i,o,s){let c=[],_=null;s.sort((h,b)=>Cn.compare(h.getStartPosition(),b.getEndPosition()));for(let h=0,b=s.length;h1&&_?.endLineNumber!==D.lineNumber?(O=D.lineNumber-1,j=o.getLineMaxColumn(D.lineNumber-1),F=D.lineNumber,X=o.getLineMaxColumn(D.lineNumber)):(O=D.lineNumber,j=1,F=D.lineNumber,X=o.getLineMaxColumn(D.lineNumber));let K=new Vt(O,j,F,X);_=K,K.isEmpty()?c[h]=null:c[h]=new tx(K,"")}else c[h]=null;else c[h]=new tx(w,"")}return new XD(0,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}});function Qpt(l){return l.filter(i=>!!i)}var mw,IAe,Vrt=Ht(()=>{Bl();Sj();Ypt();x6e();Ll();ca();mw=class l{static _createWord(i,o,s,c,_){return{start:c,end:_,wordType:o,nextCharClass:s}}static _createIntlWord(i,o){return{start:i.index,end:i.index+i.segment.length,wordType:1,nextCharClass:o}}static _findPreviousWordOnLine(i,o,s){let c=o.getLineContent(s.lineNumber);return this._doFindPreviousWordOnLine(c,i,s)}static _doFindPreviousWordOnLine(i,o,s){let c=0,_=o.findPrevIntlWordBeforeOrAtOffset(i,s.column-2);for(let h=s.column-2;h>=0;h--){let b=i.charCodeAt(h),w=o.get(b);if(_&&h===_.index)return this._createIntlWord(_,w);if(w===0){if(c===2)return this._createWord(i,c,w,h+1,this._findEndOfWord(i,o,c,h+1));c=1}else if(w===2){if(c===1)return this._createWord(i,c,w,h+1,this._findEndOfWord(i,o,c,h+1));c=2}else if(w===1&&c!==0)return this._createWord(i,c,w,h+1,this._findEndOfWord(i,o,c,h+1))}return c!==0?this._createWord(i,c,1,0,this._findEndOfWord(i,o,c,0)):null}static _findEndOfWord(i,o,s,c){let _=o.findNextIntlWordAtOrAfterOffset(i,c),h=i.length;for(let b=c;b=0;h--){let b=i.charCodeAt(h),w=o.get(b);if(_&&h===_.index)return h;if(w===1||s===1&&w===2||s===2&&w===0)return h+1}return 0}static moveWordLeft(i,o,s,c){let _=s.lineNumber,h=s.column;h===1&&_>1&&(_=_-1,h=o.getLineMaxColumn(_));let b=l._findPreviousWordOnLine(i,o,new Cn(_,h));if(c===0)return new Cn(_,b?b.start+1:1);if(c===1)return b&&b.wordType===2&&b.end-b.start===1&&b.nextCharClass===0&&(b=l._findPreviousWordOnLine(i,o,new Cn(_,b.start+1))),new Cn(_,b?b.start+1:1);if(c===3){for(;b&&b.wordType===2;)b=l._findPreviousWordOnLine(i,o,new Cn(_,b.start+1));return new Cn(_,b?b.start+1:1)}return b&&h<=b.end+1&&(b=l._findPreviousWordOnLine(i,o,new Cn(_,b.start+1))),new Cn(_,b?b.end+1:1)}static _moveWordPartLeft(i,o){let s=o.lineNumber,c=i.getLineMaxColumn(s);if(o.column===1)return s>1?new Cn(s-1,i.getLineMaxColumn(s-1)):o;let _=i.getLineContent(s);for(let h=o.column-1;h>1;h--){let b=_.charCodeAt(h-2),w=_.charCodeAt(h-1);if(b===95&&w!==95)return new Cn(s,h);if(b===45&&w!==45)return new Cn(s,h);if((LK(b)||knt(b))&&ZB(w))return new Cn(s,h);if(ZB(b)&&ZB(w)&&h+1=w.start+1&&(w=l._findNextWordOnLine(i,o,new Cn(_,w.end+1))),w?h=w.start+1:h=o.getLineMaxColumn(_);return new Cn(_,h)}static _moveWordPartRight(i,o){let s=o.lineNumber,c=i.getLineMaxColumn(s);if(o.column===c)return s1?D=1:(w--,D=c.getLineMaxColumn(w)):(O&&D<=O.end+1&&(O=l._findPreviousWordOnLine(s,c,new Cn(w,O.start+1))),O?D=O.end+1:D>1?D=1:(w--,D=c.getLineMaxColumn(w))),new Vt(w,D,b.lineNumber,b.column)}static deleteInsideWord(i,o,s){if(!s.isEmpty())return s;let c=new Cn(s.positionLineNumber,s.positionColumn),_=this._deleteInsideWordWhitespace(o,c);return _||this._deleteInsideWordDetermineDeleteRange(i,o,c)}static _charAtIsWhitespace(i,o){let s=i.charCodeAt(o);return s===32||s===9}static _deleteInsideWordWhitespace(i,o){let s=i.getLineContent(o.lineNumber),c=s.length;if(c===0)return null;let _=Math.max(o.column-2,0);if(!this._charAtIsWhitespace(s,_))return null;let h=Math.min(o.column-1,c-1);if(!this._charAtIsWhitespace(s,h))return null;for(;_>0&&this._charAtIsWhitespace(s,_-1);)_--;for(;h+11?new Vt(s.lineNumber-1,o.getLineMaxColumn(s.lineNumber-1),s.lineNumber,1):s.lineNumberj.start+1<=s.column&&s.column<=j.end+1,b=(j,F)=>(j=Math.min(j,s.column),F=Math.max(F,s.column),new Vt(s.lineNumber,j,s.lineNumber,F)),w=j=>{let F=j.start+1,X=j.end+1,K=!1;for(;X-1<_&&this._charAtIsWhitespace(c,X-1);)K=!0,X++;if(!K)for(;F>1&&this._charAtIsWhitespace(c,F-2);)F--;return b(F,X)},D=l._findPreviousWordOnLine(i,o,s);if(D&&h(D))return w(D);let O=l._findNextWordOnLine(i,o,s);return O&&h(O)?w(O):D&&O?b(D.end+1,O.start+1):D?b(D.start+1,D.end+1):O?b(O.start+1,O.end+1):b(1,_+1)}static _deleteWordPartLeft(i,o){if(!o.isEmpty())return o;let s=o.getPosition(),c=l._moveWordPartLeft(i,s);return new Vt(s.lineNumber,s.column,c.lineNumber,c.column)}static _findFirstNonWhitespaceChar(i,o){let s=i.length;for(let c=o;c=F.start+1&&(F=l._findNextWordOnLine(s,c,new Cn(w,F.end+1))),F?D=F.start+1:D{cm();Sj();Xpt();Vrt();Ll();ca();zC=class{static addCursorDown(i,o,s){let c=[],_=0;for(let h=0,b=o.length;hD&&(O=D,j=i.model.getLineMaxColumn(O)),I_.fromModelState(new Iw(new Vt(h.lineNumber,1,O,j),2,0,new Cn(O,j),0))}let w=o.modelState.selectionStart.getStartPosition().lineNumber;if(h.lineNumberw){let D=i.getLineCount(),O=b.lineNumber+1,j=1;return O>D&&(O=D,j=i.getLineMaxColumn(O)),I_.fromViewState(o.viewState.move(!0,O,j,0))}else{let D=o.modelState.selectionStart.getEndPosition();return I_.fromModelState(o.modelState.move(!0,D.lineNumber,D.column,0))}}static word(i,o,s,c){let _=i.model.validatePosition(c);return I_.fromModelState(mw.word(i.cursorConfig,i.model,o.modelState,s,_))}static cancelSelection(i,o){if(!o.modelState.hasSelection())return new I_(o.modelState,o.viewState);let s=o.viewState.position.lineNumber,c=o.viewState.position.column;return I_.fromViewState(new Iw(new Vt(s,c,s,c),0,0,new Cn(s,c),0))}static moveTo(i,o,s,c,_){if(s){if(o.modelState.selectionStartKind===1)return this.word(i,o,s,c);if(o.modelState.selectionStartKind===2)return this.line(i,o,s,c,_)}let h=i.model.validatePosition(c),b=_?i.coordinatesConverter.validateViewPosition(new Cn(_.lineNumber,_.column),h):i.coordinatesConverter.convertModelPositionToViewPosition(h);return I_.fromViewState(o.viewState.move(s,b.lineNumber,b.column,0))}static simpleMove(i,o,s,c,_,h){switch(s){case 0:return h===4?this._moveHalfLineLeft(i,o,c):this._moveLeft(i,o,c,_);case 1:return h===4?this._moveHalfLineRight(i,o,c):this._moveRight(i,o,c,_);case 2:return h===2?this._moveUpByViewLines(i,o,c,_):this._moveUpByModelLines(i,o,c,_);case 3:return h===2?this._moveDownByViewLines(i,o,c,_):this._moveDownByModelLines(i,o,c,_);case 4:return h===2?o.map(b=>I_.fromViewState(z1.moveToPrevBlankLine(i.cursorConfig,i,b.viewState,c))):o.map(b=>I_.fromModelState(z1.moveToPrevBlankLine(i.cursorConfig,i.model,b.modelState,c)));case 5:return h===2?o.map(b=>I_.fromViewState(z1.moveToNextBlankLine(i.cursorConfig,i,b.viewState,c))):o.map(b=>I_.fromModelState(z1.moveToNextBlankLine(i.cursorConfig,i.model,b.modelState,c)));case 6:return this._moveToViewMinColumn(i,o,c);case 7:return this._moveToViewFirstNonWhitespaceColumn(i,o,c);case 8:return this._moveToViewCenterColumn(i,o,c);case 9:return this._moveToViewMaxColumn(i,o,c);case 10:return this._moveToViewLastNonWhitespaceColumn(i,o,c);default:return null}}static viewportMove(i,o,s,c,_){let h=i.getCompletelyVisibleViewRange(),b=i.coordinatesConverter.convertViewRangeToModelRange(h);switch(s){case 11:{let w=this._firstLineNumberInRange(i.model,b,_),D=i.model.getLineFirstNonWhitespaceColumn(w);return[this._moveToModelPosition(i,o[0],c,w,D)]}case 13:{let w=this._lastLineNumberInRange(i.model,b,_),D=i.model.getLineFirstNonWhitespaceColumn(w);return[this._moveToModelPosition(i,o[0],c,w,D)]}case 12:{let w=Math.round((b.startLineNumber+b.endLineNumber)/2),D=i.model.getLineFirstNonWhitespaceColumn(w);return[this._moveToModelPosition(i,o[0],c,w,D)]}case 14:{let w=[];for(let D=0,O=o.length;Ds.endLineNumber-1?h=s.endLineNumber-1:_I_.fromViewState(z1.moveLeft(i.cursorConfig,i,_.viewState,s,c)))}static _moveHalfLineLeft(i,o,s){let c=[];for(let _=0,h=o.length;_I_.fromViewState(z1.moveRight(i.cursorConfig,i,_.viewState,s,c)))}static _moveHalfLineRight(i,o,s){let c=[];for(let _=0,h=o.length;_{Bl();h6e();eW();NAe=class{constructor(i,o,s){this._indentRulesSupport=o,this._indentationLineProcessor=new emt(i,s)}shouldIncrease(i,o){let s=this._indentationLineProcessor.getProcessedLine(i,o);return this._indentRulesSupport.shouldIncrease(s)}shouldDecrease(i,o){let s=this._indentationLineProcessor.getProcessedLine(i,o);return this._indentRulesSupport.shouldDecrease(s)}shouldIgnore(i,o){let s=this._indentationLineProcessor.getProcessedLine(i,o);return this._indentRulesSupport.shouldIgnore(s)}shouldIndentNextLine(i,o){let s=this._indentationLineProcessor.getProcessedLine(i,o);return this._indentRulesSupport.shouldIndentNextLine(s)}},AAe=class{constructor(i,o){this.model=i,this.indentationLineProcessor=new emt(i,o)}getProcessedTokenContextAroundRange(i){let o=this._getProcessedTokensBeforeRange(i),s=this._getProcessedTokensAfterRange(i),c=this._getProcessedPreviousLineTokens(i);return{beforeRangeProcessedTokens:o,afterRangeProcessedTokens:s,previousLineProcessedTokens:c}}_getProcessedTokensBeforeRange(i){this.model.tokenization.forceTokenization(i.startLineNumber);let o=this.model.tokenization.getLineTokens(i.startLineNumber),s=HK(o,i.startColumn-1),c;if(tmt(this.model,i.getStartPosition())){let h=i.startColumn-1-s.firstCharOffset,b=s.firstCharOffset,w=b+h;c=o.sliceAndInflate(b,w,0)}else{let h=i.startColumn-1;c=o.sliceAndInflate(0,h,0)}return this.indentationLineProcessor.getProcessedTokens(c)}_getProcessedTokensAfterRange(i){let o=i.isEmpty()?i.getStartPosition():i.getEndPosition();this.model.tokenization.forceTokenization(o.lineNumber);let s=this.model.tokenization.getLineTokens(o.lineNumber),c=HK(s,o.column-1),_=o.column-1-c.firstCharOffset,h=c.firstCharOffset+_,b=c.firstCharOffset+c.getLineLength(),w=s.sliceAndInflate(h,b,0);return this.indentationLineProcessor.getProcessedTokens(w)}_getProcessedPreviousLineTokens(i){let o=X=>{this.model.tokenization.forceTokenization(X);let K=this.model.tokenization.getLineTokens(X),re=this.model.getLineMaxColumn(X)-1;return HK(K,re)};this.model.tokenization.forceTokenization(i.startLineNumber);let s=this.model.tokenization.getLineTokens(i.startLineNumber),c=HK(s,i.startColumn-1),_=jb.createEmpty("",c.languageIdCodec),h=i.startLineNumber-1;if(h===0||!(c.firstCharOffset===0))return _;let D=o(h);if(!(c.languageId===D.languageId))return _;let j=D.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(j)}},emt=class{constructor(i,o){this.model=i,this.languageConfigurationService=o}getProcessedLine(i,o){var s,c;let _=(w,D)=>{let O=Tm(w);return D+w.substring(O.length)};(c=(s=this.model.tokenization).forceTokenization)===null||c===void 0||c.call(s,i);let h=this.model.tokenization.getLineTokens(i),b=this.getProcessedTokens(h).getLineContent();return o!==void 0&&(b=_(b,o)),b}getProcessedTokens(i){let o=w=>w===2||w===3||w===1,s=i.getLanguageId(0),_=this.languageConfigurationService.getLanguageConfiguration(s).bracketsNew.getBracketRegExp({global:!0}),h=[];return i.forEach(w=>{let D=i.getStandardTokenType(w),O=i.getTokenText(w);o(D)&&(O=O.replace(_,""));let j=i.getMetadata(w);h.push({text:O,metadata:j})}),jb.createFromTextAndMetadata(h,i.languageIdCodec)}}});function qle(l,i,o,s){i.tokenization.forceTokenization(o.startLineNumber);let c=i.getLanguageIdAtPosition(o.startLineNumber,o.startColumn),_=s.getLanguageConfiguration(c);if(!_)return null;let b=new AAe(i,s).getProcessedTokenContextAroundRange(o),w=b.previousLineProcessedTokens.getLineContent(),D=b.beforeRangeProcessedTokens.getLineContent(),O=b.afterRangeProcessedTokens.getLineContent(),j=_.onEnter(l,w,D,O);if(!j)return null;let F=j.indentAction,X=j.appendText,K=j.removeText||0;X?F===Bb.Indent&&(X=" "+X):F===Bb.Indent||F===Bb.IndentOutdent?X=" ":X="";let re=a_t(i,o.startLineNumber,o.startColumn);return K&&(re=re.substring(0,re.length-K)),{indentAction:F,appendText:X,removeText:K,indentation:re}}var nmt=Ht(()=>{Pde();R1();imt()});function PAe(l,i){if(i<=0)return"";Oti[l]||(Oti[l]=["",l]);let o=Oti[l];for(let s=o.length;s<=i;s++)o[s]=o[s-1]+l;return o[i]}var dBi,fBi,rmt,Oti,mL,Urt=Ht(()=>{Bl();_W();ca();hg();nmt();R1();dBi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},fBi=function(l,i){return function(o,s){i(o,s,l)}},Oti=Object.create(null);mL=rmt=class{static unshiftIndent(i,o,s,c,_){let h=xv.visibleColumnFromColumn(i,o,s);if(_){let b=PAe(" ",c),D=xv.prevIndentTabStop(h,c)/c;return PAe(b,D)}else{let b=" ",D=xv.prevRenderTabStop(h,s)/s;return PAe(b,D)}}static shiftIndent(i,o,s,c,_){let h=xv.visibleColumnFromColumn(i,o,s);if(_){let b=PAe(" ",c),D=xv.nextIndentTabStop(h,c)/c;return PAe(b,D)}else{let b=" ",D=xv.nextRenderTabStop(h,s)/s;return PAe(b,D)}}constructor(i,o,s){this._languageConfigurationService=s,this._opts=o,this._selection=i,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(i,o,s){this._useLastEditRangeForCursorEndPosition?i.addTrackedEditOperation(o,s):i.addEditOperation(o,s)}getEditOperations(i,o){let s=this._selection.startLineNumber,c=this._selection.endLineNumber;this._selection.endColumn===1&&s!==c&&(c=c-1);let{tabSize:_,indentSize:h,insertSpaces:b}=this._opts,w=s===c;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(i.getLineContent(s))&&(this._useLastEditRangeForCursorEndPosition=!0);let D=0,O=0;for(let j=s;j<=c;j++,D=O){O=0;let F=i.getLineContent(j),X=M1(F);if(this._opts.isUnshift&&(F.length===0||X===0)||!w&&!this._opts.isUnshift&&F.length===0)continue;if(X===-1&&(X=F.length),j>1&&xv.visibleColumnFromColumn(F,X+1,_)%h!==0&&i.tokenization.isCheapToTokenize(j-1)){let Pe=qle(this._opts.autoIndent,i,new Vt(j-1,i.getLineMaxColumn(j-1),j-1,i.getLineMaxColumn(j-1)),this._languageConfigurationService);if(Pe){if(O=D,Pe.appendText)for(let Le=0,Je=Pe.appendText.length;Le{ca();hg();omt=class{constructor(i,o,s){this._range=i,this._charBeforeSelection=o,this._charAfterSelection=s}getEditOperations(i,o){o.addTrackedEditOperation(new Vt(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),o.addTrackedEditOperation(new Vt(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(i,o){let s=o.getInverseEditOperations(),c=s[0].range,_=s[1].range;return new ya(c.endLineNumber,c.endColumn,_.endLineNumber,_.endColumn-this._charAfterSelection.length)}},smt=class{constructor(i,o,s){this._position=i,this._text=o,this._charAfter=s}getEditOperations(i,o){o.addTrackedEditOperation(new Vt(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(i,o){let c=o.getInverseEditOperations()[0].range;return new ya(c.endLineNumber,c.startColumn,c.endLineNumber,c.endColumn-this._charAfter.length)}}});function _Bi(l,i,o){let s=l.tokenization.getLanguageIdAtPosition(i,0);if(i>1){let c,_=-1;for(c=i-1;c>=1;c--){if(l.tokenization.getLanguageIdAtPosition(c,0)!==s)return _;let h=l.getLineContent(c);if(o.shouldIgnore(c)||/^\s+$/.test(h)||h===""){_=c;continue}return c}}return-1}function Jrt(l,i,o,s=!0,c){if(l<4)return null;let _=c.getLanguageConfiguration(i.tokenization.getLanguageId()).indentRulesSupport;if(!_)return null;let h=new NAe(i,_,c);if(o<=1)return{indentation:"",action:null};for(let w=o-1;w>0&&i.getLineContent(w)==="";w--)if(w===1)return{indentation:"",action:null};let b=_Bi(i,o,h);if(b<0)return null;if(b<1)return{indentation:"",action:null};if(h.shouldIncrease(b)||h.shouldIndentNextLine(b)){let w=i.getLineContent(b);return{indentation:Tm(w),action:Bb.Indent,line:b}}else if(h.shouldDecrease(b)){let w=i.getLineContent(b);return{indentation:Tm(w),action:null,line:b}}else{if(b===1)return{indentation:Tm(i.getLineContent(b)),action:null,line:b};let w=b-1,D=_.getIndentMetadata(i.getLineContent(w));if(!(D&3)&&D&4){let O=0;for(let j=w-1;j>0;j--)if(!h.shouldIndentNextLine(j)){O=j;break}return{indentation:Tm(i.getLineContent(O+1)),action:null,line:O+1}}if(s)return{indentation:Tm(i.getLineContent(b)),action:null,line:b};for(let O=b;O>0;O--){if(h.shouldIncrease(O))return{indentation:Tm(i.getLineContent(O)),action:Bb.Indent,line:O};if(h.shouldIndentNextLine(O)){let j=0;for(let F=O-1;F>0;F--)if(!h.shouldIndentNextLine(O)){j=F;break}return{indentation:Tm(i.getLineContent(j+1)),action:null,line:j+1}}else if(h.shouldDecrease(O))return{indentation:Tm(i.getLineContent(O)),action:null,line:O}}return{indentation:Tm(i.getLineContent(1)),action:null,line:1}}}function LAe(l,i,o,s,c,_){if(l<4)return null;let h=_.getLanguageConfiguration(o);if(!h)return null;let b=_.getLanguageConfiguration(o).indentRulesSupport;if(!b)return null;let w=new NAe(i,b,_),D=Jrt(l,i,s,void 0,_);if(D){let O=D.line;if(O!==void 0){let j=!0;for(let F=O;Fl.getLineCount()?null:s.getIndentMetadata(l.getLineContent(i))}function pBi(l,i,o){return{tokenization:{getLineTokens:c=>c===i?o:l.tokenization.getLineTokens(c),getLanguageId:()=>l.getLanguageId(),getLanguageIdAtPosition:(c,_)=>l.getLanguageIdAtPosition(c,_)},getLineContent:c=>c===i?o.getLineContent():l.getLineContent(c)}}var cmt=Ht(()=>{Bl();Pde();imt()});function Fti(l,i){return l===" "?i===5||i===6?6:5:4}function lmt(l,i){return zSi(l)&&!zSi(i)?!0:l===5?!1:WSi(l)!==WSi(i)}function WSi(l){return l===6||l===5?"space":l}function zSi(l){return l===4||l===5||l===6}var $L,qrt,umt,dmt=Ht(()=>{Pl();Bl();DAe();Urt();RSi();Sj();x6e();ca();Ll();Pde();R1();h6e();cmt();nmt();$L=class l{static indent(i,o,s){if(o===null||s===null)return[];let c=[];for(let _=0,h=s.length;_1){let b;for(b=s-1;b>=1;b--){let O=o.getLineContent(b);if(aI(O)>=0)break}if(b<1)return null;let w=o.getLineMaxColumn(b),D=qle(i.autoIndent,o,new Vt(b,w,b,w),i.languageConfigurationService);D&&(_=D.indentation+D.appendText)}return c&&(c===Bb.Indent&&(_=l.shiftIndent(i,_)),c===Bb.Outdent&&(_=l.unshiftIndent(i,_)),_=i.normalizeIndentation(_)),_||null}static _replaceJumpToNextIndent(i,o,s,c){let _="",h=s.getStartPosition();if(i.insertSpaces){let b=i.visibleColumnFromColumn(o,h),w=i.indentSize,D=w-b%w;for(let O=0;Othis._compositionType(s,O,_,h,b,w));return new XD(4,D,{shouldPushStackElementBefore:lmt(i,4),shouldPushStackElementAfter:!1})}static _compositionType(i,o,s,c,_,h){if(!o.isEmpty())return null;let b=o.getPosition(),w=Math.max(1,b.column-c),D=Math.min(i.getLineMaxColumn(b.lineNumber),b.column+_),O=new Vt(b.lineNumber,w,b.lineNumber,D);return i.getValueInRange(O)===s&&h===0?null:new EAe(O,s,0,h)}static _typeCommand(i,o,s){return s?new TAe(i,o,!0):new tx(i,o,!0)}static _enter(i,o,s,c){if(i.autoIndent===0)return l._typeCommand(c,` +`,s);if(!o.tokenization.isCheapToTokenize(c.getStartPosition().lineNumber)||i.autoIndent===1){let w=o.getLineContent(c.startLineNumber),D=Tm(w).substring(0,c.startColumn-1);return l._typeCommand(c,` +`+i.normalizeIndentation(D),s)}let _=qle(i.autoIndent,o,c,i.languageConfigurationService);if(_){if(_.indentAction===Bb.None)return l._typeCommand(c,` +`+i.normalizeIndentation(_.indentation+_.appendText),s);if(_.indentAction===Bb.Indent)return l._typeCommand(c,` +`+i.normalizeIndentation(_.indentation+_.appendText),s);if(_.indentAction===Bb.IndentOutdent){let w=i.normalizeIndentation(_.indentation),D=i.normalizeIndentation(_.indentation+_.appendText),O=` +`+D+` +`+w;return s?new TAe(c,O,!0):new EAe(c,O,-1,D.length-w.length,!0)}else if(_.indentAction===Bb.Outdent){let w=l.unshiftIndent(i,_.indentation);return l._typeCommand(c,` +`+i.normalizeIndentation(w+_.appendText),s)}}let h=o.getLineContent(c.startLineNumber),b=Tm(h).substring(0,c.startColumn-1);if(i.autoIndent>=4){let w=BSi(i.autoIndent,o,c,{unshiftIndent:D=>l.unshiftIndent(i,D),shiftIndent:D=>l.shiftIndent(i,D),normalizeIndentation:D=>i.normalizeIndentation(D)},i.languageConfigurationService);if(w){let D=i.visibleColumnFromColumn(o,c.getEndPosition()),O=c.endColumn,j=o.getLineContent(c.endLineNumber),F=M1(j);if(F>=0?c=c.setEndPosition(c.endLineNumber,Math.max(c.endColumn,F+1)):c=c.setEndPosition(c.endLineNumber,o.getLineMaxColumn(c.endLineNumber)),s)return new TAe(c,` +`+i.normalizeIndentation(w.afterEnter),!0);{let X=0;return O<=F+1&&(i.insertSpaces||(D=Math.ceil(D/i.indentSize)),X=Math.min(D+1-i.normalizeIndentation(w.afterEnter).length-1,0)),new EAe(c,` +`+i.normalizeIndentation(w.afterEnter),0,X,!0)}}}return l._typeCommand(c,` +`+i.normalizeIndentation(b),s)}static _isAutoIndentType(i,o,s){if(i.autoIndent<4)return!1;for(let c=0,_=s.length;c<_;c++)if(!o.tokenization.isCheapToTokenize(s[c].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(i,o,s,c){let _=a_t(o,s.startLineNumber,s.startColumn),h=jSi(i.autoIndent,o,s,c,{shiftIndent:b=>l.shiftIndent(i,b),unshiftIndent:b=>l.unshiftIndent(i,b)},i.languageConfigurationService);if(h===null)return null;if(h!==i.normalizeIndentation(_)){let b=o.getLineFirstNonWhitespaceColumn(s.startLineNumber);return b===0?l._typeCommand(new Vt(s.startLineNumber,1,s.endLineNumber,s.endColumn),i.normalizeIndentation(h)+c,!1):l._typeCommand(new Vt(s.startLineNumber,1,s.endLineNumber,s.endColumn),i.normalizeIndentation(h)+o.getLineContent(s.startLineNumber).substring(b-1,s.startColumn-1)+c,!1)}return null}static _isAutoClosingOvertype(i,o,s,c,_){if(i.autoClosingOvertype==="never"||!i.autoClosingPairs.autoClosingPairsCloseSingleChar.has(_))return!1;for(let h=0,b=s.length;h2?O.charCodeAt(D.column-2):0)===92&&F)return!1;if(i.autoClosingOvertype==="auto"){let K=!1;for(let re=0,Pe=c.length;reo.startsWith(w.open)),b=_.some(w=>o.startsWith(w.close));return!h&&b}static _findAutoClosingPairOpen(i,o,s,c){let _=i.autoClosingPairs.autoClosingPairsOpenByEnd.get(c);if(!_)return null;let h=null;for(let b of _)if(h===null||b.open.length>h.open.length){let w=!0;for(let D of s)if(o.getValueInRange(new Vt(D.lineNumber,D.column-b.open.length+1,D.lineNumber,D.column))+c!==b.open){w=!1;break}w&&(h=b)}return h}static _findContainedAutoClosingPair(i,o){if(o.open.length<=1)return null;let s=o.close.charAt(o.close.length-1),c=i.autoClosingPairs.autoClosingPairsCloseByEnd.get(s)||[],_=null;for(let h of c)h.open!==o.open&&o.open.includes(h.open)&&o.close.endsWith(h.close)&&(!_||h.open.length>_.open.length)&&(_=h);return _}static _getAutoClosingPairClose(i,o,s,c,_){for(let K of s)if(!K.isEmpty())return null;let h=s.map(K=>{let re=K.getPosition();return _?{lineNumber:re.lineNumber,beforeColumn:re.column-c.length,afterColumn:re.column}:{lineNumber:re.lineNumber,beforeColumn:re.column,afterColumn:re.column}}),b=this._findAutoClosingPairOpen(i,o,h.map(K=>new Cn(K.lineNumber,K.beforeColumn)),c);if(!b)return null;let w,D;if(lX(c)?(w=i.autoClosingQuotes,D=i.shouldAutoCloseBefore.quote):(i.blockCommentStartToken?b.open.includes(i.blockCommentStartToken):!1)?(w=i.autoClosingComments,D=i.shouldAutoCloseBefore.comment):(w=i.autoClosingBrackets,D=i.shouldAutoCloseBefore.bracket),w==="never")return null;let j=this._findContainedAutoClosingPair(i,b),F=j?j.close:"",X=!0;for(let K of h){let{lineNumber:re,beforeColumn:Pe,afterColumn:Le}=K,Je=o.getLineContent(re),Ye=Je.substring(0,Pe-1),ft=Je.substring(Le-1);if(ft.startsWith(F)||(X=!1),ft.length>0){let Mi=ft.charAt(0);if(!l._isBeforeClosingBrace(i,ft)&&!D(Mi))return null}if(b.open.length===1&&(c==="'"||c==='"')&&w!=="always"){let Mi=_P(i.wordSeparators,[]);if(Ye.length>0){let zi=Ye.charCodeAt(Ye.length-1);if(Mi.get(zi)===0)return null}}if(!o.tokenization.isCheapToTokenize(re))return null;o.tokenization.forceTokenization(re);let Ct=o.tokenization.getLineTokens(re),Et=HK(Ct,Pe-1);if(!b.shouldAutoClose(Et,Pe-Et.firstCharOffset))return null;let St=b.findNeutralCharacter();if(St){let Mi=o.tokenization.getTokenTypeIfInsertingCharacter(re,Pe,St);if(!b.isOK(Mi))return null}}return X?b.close.substring(0,b.close.length-F.length):b.close}static _runAutoClosingOpenCharType(i,o,s,c,_,h,b){let w=[];for(let D=0,O=c.length;Dnew tx(new Vt(F.positionLineNumber,F.positionColumn,F.positionLineNumber,F.positionColumn+1),"",!1));return new XD(4,j,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}let O=this._getAutoClosingPairClose(o,s,_,w,!0);return O!==null?this._runAutoClosingOpenCharType(i,o,s,_,w,!0,O):null}static typeWithInterceptors(i,o,s,c,_,h,b){if(!i&&b===` +`){let O=[];for(let j=0,F=_.length;j{Fs();du();(function(l){l.editorSimpleInput=new Ms("editorSimpleInput",!1,!0),l.editorTextFocus=new Ms("editorTextFocus",!1,de("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),l.focus=new Ms("editorFocus",!1,de("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),l.textInputFocus=new Ms("textInputFocus",!1,de("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),l.readOnly=new Ms("editorReadonly",!1,de("editorReadonly","Whether the editor is read-only")),l.inDiffEditor=new Ms("inDiffEditor",!1,de("inDiffEditor","Whether the context is a diff editor")),l.isEmbeddedDiffEditor=new Ms("isEmbeddedDiffEditor",!1,de("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),l.inMultiDiffEditor=new Ms("inMultiDiffEditor",!1,de("inMultiDiffEditor","Whether the context is a multi diff editor")),l.multiDiffEditorAllCollapsed=new Ms("multiDiffEditorAllCollapsed",void 0,de("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),l.hasChanges=new Ms("diffEditorHasChanges",!1,de("diffEditorHasChanges","Whether the diff editor has changes")),l.comparingMovedCode=new Ms("comparingMovedCode",!1,de("comparingMovedCode","Whether a moved code block is selected for comparison")),l.accessibleDiffViewerVisible=new Ms("accessibleDiffViewerVisible",!1,de("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),l.diffEditorRenderSideBySideInlineBreakpointReached=new Ms("diffEditorRenderSideBySideInlineBreakpointReached",!1,de("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),l.diffEditorInlineMode=new Ms("diffEditorInlineMode",!1,de("diffEditorInlineMode","Whether inline mode is active")),l.diffEditorOriginalWritable=new Ms("diffEditorOriginalWritable",!1,de("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),l.diffEditorModifiedWritable=new Ms("diffEditorModifiedWritable",!1,de("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),l.diffEditorOriginalUri=new Ms("diffEditorOriginalUri","",de("diffEditorOriginalUri","The uri of the original document")),l.diffEditorModifiedUri=new Ms("diffEditorModifiedUri","",de("diffEditorModifiedUri","The uri of the modified document")),l.columnSelection=new Ms("editorColumnSelection",!1,de("editorColumnSelection","Whether `editor.columnSelection` is enabled")),l.writable=l.readOnly.toNegated(),l.hasNonEmptySelection=new Ms("editorHasSelection",!1,de("editorHasSelection","Whether the editor has text selected")),l.hasOnlyEmptySelection=l.hasNonEmptySelection.toNegated(),l.hasMultipleSelections=new Ms("editorHasMultipleSelections",!1,de("editorHasMultipleSelections","Whether the editor has multiple selections")),l.hasSingleSelection=l.hasMultipleSelections.toNegated(),l.tabMovesFocus=new Ms("editorTabMovesFocus",!1,de("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),l.tabDoesNotMoveFocus=l.tabMovesFocus.toNegated(),l.isInEmbeddedEditor=new Ms("isInEmbeddedEditor",!1,!0),l.canUndo=new Ms("canUndo",!1,!0),l.canRedo=new Ms("canRedo",!1,!0),l.hoverVisible=new Ms("editorHoverVisible",!1,de("editorHoverVisible","Whether the editor hover is visible")),l.hoverFocused=new Ms("editorHoverFocused",!1,de("editorHoverFocused","Whether the editor hover is focused")),l.stickyScrollFocused=new Ms("stickyScrollFocused",!1,de("stickyScrollFocused","Whether the sticky scroll is focused")),l.stickyScrollVisible=new Ms("stickyScrollVisible",!1,de("stickyScrollVisible","Whether the sticky scroll is visible")),l.standaloneColorPickerVisible=new Ms("standaloneColorPickerVisible",!1,de("standaloneColorPickerVisible","Whether the standalone color picker is visible")),l.standaloneColorPickerFocused=new Ms("standaloneColorPickerFocused",!1,de("standaloneColorPickerFocused","Whether the standalone color picker is focused")),l.inCompositeEditor=new Ms("inCompositeEditor",void 0,de("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),l.notInCompositeEditor=l.inCompositeEditor.toNegated(),l.languageId=new Ms("editorLangId","",de("editorLangId","The language identifier of the editor")),l.hasCompletionItemProvider=new Ms("editorHasCompletionItemProvider",!1,de("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),l.hasCodeActionsProvider=new Ms("editorHasCodeActionsProvider",!1,de("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),l.hasCodeLensProvider=new Ms("editorHasCodeLensProvider",!1,de("editorHasCodeLensProvider","Whether the editor has a code lens provider")),l.hasDefinitionProvider=new Ms("editorHasDefinitionProvider",!1,de("editorHasDefinitionProvider","Whether the editor has a definition provider")),l.hasDeclarationProvider=new Ms("editorHasDeclarationProvider",!1,de("editorHasDeclarationProvider","Whether the editor has a declaration provider")),l.hasImplementationProvider=new Ms("editorHasImplementationProvider",!1,de("editorHasImplementationProvider","Whether the editor has an implementation provider")),l.hasTypeDefinitionProvider=new Ms("editorHasTypeDefinitionProvider",!1,de("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),l.hasHoverProvider=new Ms("editorHasHoverProvider",!1,de("editorHasHoverProvider","Whether the editor has a hover provider")),l.hasDocumentHighlightProvider=new Ms("editorHasDocumentHighlightProvider",!1,de("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),l.hasDocumentSymbolProvider=new Ms("editorHasDocumentSymbolProvider",!1,de("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),l.hasReferenceProvider=new Ms("editorHasReferenceProvider",!1,de("editorHasReferenceProvider","Whether the editor has a reference provider")),l.hasRenameProvider=new Ms("editorHasRenameProvider",!1,de("editorHasRenameProvider","Whether the editor has a rename provider")),l.hasSignatureHelpProvider=new Ms("editorHasSignatureHelpProvider",!1,de("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),l.hasInlayHintsProvider=new Ms("editorHasInlayHintsProvider",!1,de("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),l.hasDocumentFormattingProvider=new Ms("editorHasDocumentFormattingProvider",!1,de("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),l.hasDocumentSelectionFormattingProvider=new Ms("editorHasDocumentSelectionFormattingProvider",!1,de("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),l.hasMultipleDocumentFormattingProvider=new Ms("editorHasMultipleDocumentFormattingProvider",!1,de("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),l.hasMultipleDocumentSelectionFormattingProvider=new Ms("editorHasMultipleDocumentSelectionFormattingProvider",!1,de("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))})(ji||(ji={}))});function gLe(l,i){fw.registerKeybindingRule({id:l,primary:i,when:mBi,weight:th+1})}function VSi(l){return l.register(),l}function OAe(l,i){VSi(new fmt("default:"+l,l)),VSi(new fmt(l,l,i))}var th,Wb,fI,hLe,$rt,x2,mBi,cfe,fmt,Grt=Ht(()=>{Fs();RL();cm();$D();sd();$b();MSi();Sj();Ypt();Zpt();dmt();Ll();ca();km();du();wle();va();th=0,Wb=class extends w0{runEditorCommand(i,o,s){let c=o._getViewModel();c&&this.runCoreEditorCommand(c,s||{})}};(function(l){let i=function(s){if(!OC(s))return!1;let c=s;return!(!CC(c.to)||!E2(c.by)&&!CC(c.by)||!E2(c.value)&&!u7(c.value)||!E2(c.revealCursor)&&!put(c.revealCursor))};l.metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n * 'to': A mandatory direction value.\n ```\n 'up', 'down'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'page', 'halfPage', 'editor'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n ",constraint:i,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},l.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},l.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"};function o(s){let c;switch(s.to){case l.RawDirection.Up:c=1;break;case l.RawDirection.Right:c=2;break;case l.RawDirection.Down:c=3;break;case l.RawDirection.Left:c=4;break;default:return null}let _;switch(s.by){case l.RawUnit.Line:_=1;break;case l.RawUnit.WrappedLine:_=2;break;case l.RawUnit.Page:_=3;break;case l.RawUnit.HalfPage:_=4;break;case l.RawUnit.Editor:_=5;break;case l.RawUnit.Column:_=6;break;default:_=2}let h=Math.floor(s.value||1),b=!!s.revealCursor;return{direction:c,unit:_,value:h,revealCursor:b,select:!!s.select}}l.parse=o})(fI||(fI={}));(function(l){let i=function(o){if(!OC(o))return!1;let s=o;return!(!u7(s.lineNumber)&&!CC(s.lineNumber)||!E2(s.at)&&!CC(s.at))};l.metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n * 'lineNumber': A mandatory line number value.\n * 'at': Logical position at which line has to be revealed.\n ```\n 'top', 'center', 'bottom'\n ```\n ",constraint:i,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},l.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(hLe||(hLe={}));$rt=class{constructor(i){i.addImplementation(1e4,"code-editor",(o,s)=>{let c=o.get($u).getFocusedCodeEditor();return c&&c.hasTextFocus()?this._runEditorCommand(o,c,s):!1}),i.addImplementation(1e3,"generic-dom-input-textarea",(o,s)=>{let c=qb();return c&&["input","textarea"].indexOf(c.tagName.toLowerCase())>=0?(this.runDOMCommand(c),!0):!1}),i.addImplementation(0,"generic-dom",(o,s)=>{let c=o.get($u).getActiveCodeEditor();return c?(c.focus(),this._runEditorCommand(o,c,s)):!1})}_runEditorCommand(i,o,s){let c=this.runEditorCommand(i,o,s);return c||!0}};(function(l){class i extends Wb{constructor(Je){super(Je),this._inSelectionMode=Je.inSelectionMode}runCoreEditorCommand(Je,Ye){if(!Ye.position)return;Je.model.pushStackElement(),Je.setCursorStates(Ye.source,3,[zC.moveTo(Je,Je.getPrimaryCursorState(),this._inSelectionMode,Ye.position,Ye.viewPosition)])&&Ye.revealType!==2&&Je.revealAllCursors(Ye.source,!0,!0)}}l.MoveTo=Zs(new i({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),l.MoveToSelect=Zs(new i({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class o extends Wb{runCoreEditorCommand(Je,Ye){Je.model.pushStackElement();let ft=this._getColumnSelectResult(Je,Je.getPrimaryCursorState(),Je.getCursorColumnSelectData(),Ye);ft!==null&&(Je.setCursorStates(Ye.source,3,ft.viewStates.map(Ct=>I_.fromViewState(Ct))),Je.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:ft.fromLineNumber,fromViewVisualColumn:ft.fromVisualColumn,toViewLineNumber:ft.toLineNumber,toViewVisualColumn:ft.toVisualColumn}),ft.reversed?Je.revealTopMostCursor(Ye.source):Je.revealBottomMostCursor(Ye.source))}}l.ColumnSelect=Zs(new class extends o{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(Le,Je,Ye,ft){if(typeof ft.position>"u"||typeof ft.viewPosition>"u"||typeof ft.mouseColumn>"u")return null;let Ct=Le.model.validatePosition(ft.position),Et=Le.coordinatesConverter.validateViewPosition(new Cn(ft.viewPosition.lineNumber,ft.viewPosition.column),Ct),St=ft.doColumnSelect?Ye.fromViewLineNumber:Et.lineNumber,Mi=ft.doColumnSelect?Ye.fromViewVisualColumn:ft.mouseColumn-1;return sfe.columnSelect(Le.cursorConfig,Le,St,Mi,Et.lineNumber,ft.mouseColumn-1)}}),l.CursorColumnSelectLeft=Zs(new class extends o{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(Le,Je,Ye,ft){return sfe.columnSelectLeft(Le.cursorConfig,Le,Ye)}}),l.CursorColumnSelectRight=Zs(new class extends o{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(Le,Je,Ye,ft){return sfe.columnSelectRight(Le.cursorConfig,Le,Ye)}});class s extends o{constructor(Je){super(Je),this._isPaged=Je.isPaged}_getColumnSelectResult(Je,Ye,ft,Ct){return sfe.columnSelectUp(Je.cursorConfig,Je,ft,this._isPaged)}}l.CursorColumnSelectUp=Zs(new s({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:3600,linux:{primary:0}}})),l.CursorColumnSelectPageUp=Zs(new s({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:3595,linux:{primary:0}}}));class c extends o{constructor(Je){super(Je),this._isPaged=Je.isPaged}_getColumnSelectResult(Je,Ye,ft,Ct){return sfe.columnSelectDown(Je.cursorConfig,Je,ft,this._isPaged)}}l.CursorColumnSelectDown=Zs(new c({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:3602,linux:{primary:0}}})),l.CursorColumnSelectPageDown=Zs(new c({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:3596,linux:{primary:0}}}));class _ extends Wb{constructor(){super({id:"cursorMove",precondition:void 0,metadata:Hrt.metadata})}runCoreEditorCommand(Je,Ye){let ft=Hrt.parse(Ye);ft&&this._runCursorMove(Je,Ye.source,ft)}_runCursorMove(Je,Ye,ft){Je.model.pushStackElement(),Je.setCursorStates(Ye,3,_._move(Je,Je.getCursorStates(),ft)),Je.revealAllCursors(Ye,!0)}static _move(Je,Ye,ft){let Ct=ft.select,Et=ft.value;switch(ft.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return zC.simpleMove(Je,Ye,ft.direction,Ct,Et,ft.unit);case 11:case 13:case 12:case 14:return zC.viewportMove(Je,Ye,ft.direction,Ct,Et);default:return null}}}l.CursorMoveImpl=_,l.CursorMove=Zs(new _);class h extends Wb{constructor(Je){super(Je),this._staticArgs=Je.args}runCoreEditorCommand(Je,Ye){let ft=this._staticArgs;this._staticArgs.value===-1&&(ft={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:Ye.pageSize||Je.cursorConfig.pageSize}),Je.model.pushStackElement(),Je.setCursorStates(Ye.source,3,zC.simpleMove(Je,Je.getCursorStates(),ft.direction,ft.select,ft.value,ft.unit)),Je.revealAllCursors(Ye.source,!0)}}l.CursorLeft=Zs(new h({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),l.CursorLeftSelect=Zs(new h({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:1039}})),l.CursorRight=Zs(new h({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),l.CursorRightSelect=Zs(new h({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:1041}})),l.CursorUp=Zs(new h({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),l.CursorUpSelect=Zs(new h({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),l.CursorPageUp=Zs(new h({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:11}})),l.CursorPageUpSelect=Zs(new h({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:1035}})),l.CursorDown=Zs(new h({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),l.CursorDownSelect=Zs(new h({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),l.CursorPageDown=Zs(new h({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:12}})),l.CursorPageDownSelect=Zs(new h({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:1036}})),l.CreateCursor=Zs(new class extends Wb{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(Le,Je){if(!Je.position)return;let Ye;Je.wholeLine?Ye=zC.line(Le,Le.getPrimaryCursorState(),!1,Je.position,Je.viewPosition):Ye=zC.moveTo(Le,Le.getPrimaryCursorState(),!1,Je.position,Je.viewPosition);let ft=Le.getCursorStates();if(ft.length>1){let Ct=Ye.modelState?Ye.modelState.position:null,Et=Ye.viewState?Ye.viewState.position:null;for(let St=0,Mi=ft.length;StEt&&(Ct=Et);let St=new Vt(Ct,1,Ct,Le.model.getLineMaxColumn(Ct)),Mi=0;if(Ye.at)switch(Ye.at){case hLe.RawAtArgument.Top:Mi=3;break;case hLe.RawAtArgument.Center:Mi=1;break;case hLe.RawAtArgument.Bottom:Mi=4;break;default:break}let zi=Le.coordinatesConverter.convertModelRangeToViewRange(St);Le.revealRange(Je.source,!1,zi,Mi,0)}}),l.SelectAll=new class extends $rt{constructor(){super(oyi)}runDOMCommand(Le){m2&&(Le.focus(),Le.select()),Le.ownerDocument.execCommand("selectAll")}runEditorCommand(Le,Je,Ye){let ft=Je._getViewModel();ft&&this.runCoreEditorCommand(ft,Ye)}runCoreEditorCommand(Le,Je){Le.model.pushStackElement(),Le.setCursorStates("keyboard",3,[zC.selectAll(Le,Le.getPrimaryCursorState())])}},l.SetSelection=Zs(new class extends Wb{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(Le,Je){Je.selection&&(Le.model.pushStackElement(),Le.setCursorStates(Je.source,3,[I_.fromModelSelection(Je.selection)]))}})})(x2||(x2={}));mBi=po.and(ji.textInputFocus,ji.columnSelection);gLe(x2.CursorColumnSelectLeft.id,1039);gLe(x2.CursorColumnSelectRight.id,1041);gLe(x2.CursorColumnSelectUp.id,1040);gLe(x2.CursorColumnSelectPageUp.id,1035);gLe(x2.CursorColumnSelectDown.id,1042);gLe(x2.CursorColumnSelectPageDown.id,1036);(function(l){class i extends w0{runEditorCommand(s,c,_){let h=c._getViewModel();h&&this.runCoreEditingCommand(c,h,_||{})}}l.CoreEditingCommand=i,l.LineBreakInsert=Zs(new class extends i{constructor(){super({id:"lineBreakInsert",precondition:ji.writable,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(o,s,c){o.pushUndoStop(),o.executeCommands(this.id,$L.lineBreakInsert(s.cursorConfig,s.model,s.getCursorStates().map(_=>_.modelState.selection)))}}),l.Outdent=Zs(new class extends i{constructor(){super({id:"outdent",precondition:ji.writable,kbOpts:{weight:th,kbExpr:po.and(ji.editorTextFocus,ji.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(o,s,c){o.pushUndoStop(),o.executeCommands(this.id,$L.outdent(s.cursorConfig,s.model,s.getCursorStates().map(_=>_.modelState.selection))),o.pushUndoStop()}}),l.Tab=Zs(new class extends i{constructor(){super({id:"tab",precondition:ji.writable,kbOpts:{weight:th,kbExpr:po.and(ji.editorTextFocus,ji.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(o,s,c){o.pushUndoStop(),o.executeCommands(this.id,$L.tab(s.cursorConfig,s.model,s.getCursorStates().map(_=>_.modelState.selection))),o.pushUndoStop()}}),l.DeleteLeft=Zs(new class extends i{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(o,s,c){let[_,h]=Jle.deleteLeft(s.getPrevEditOperationType(),s.cursorConfig,s.model,s.getCursorStates().map(b=>b.modelState.selection),s.getCursorAutoClosedCharacters());_&&o.pushUndoStop(),o.executeCommands(this.id,h),s.setPrevEditOperationType(2)}}),l.DeleteRight=Zs(new class extends i{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:th,kbExpr:ji.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(o,s,c){let[_,h]=Jle.deleteRight(s.getPrevEditOperationType(),s.cursorConfig,s.model,s.getCursorStates().map(b=>b.modelState.selection));_&&o.pushUndoStop(),o.executeCommands(this.id,h),s.setPrevEditOperationType(3)}}),l.Undo=new class extends $rt{constructor(){super(fZt)}runDOMCommand(o){o.ownerDocument.execCommand("undo")}runEditorCommand(o,s,c){if(!(!s.hasModel()||s.getOption(91)===!0))return s.getModel().undo()}},l.Redo=new class extends $rt{constructor(){super(_Zt)}runDOMCommand(o){o.ownerDocument.execCommand("redo")}runEditorCommand(o,s,c){if(!(!s.hasModel()||s.getOption(91)===!0))return s.getModel().redo()}}})(cfe||(cfe={}));fmt=class extends UNe{constructor(i,o,s){super({id:i,precondition:void 0,metadata:s}),this._handlerId=o}runCommand(i,o){let s=i.get($u).getFocusedCodeEditor();s&&s.trigger("keyboard",this._handlerId,o)}};OAe("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});OAe("replacePreviousChar");OAe("compositionType");OAe("compositionStart");OAe("compositionEnd");OAe("paste");OAe("cut")});var _mt,HSi=Ht(()=>{Grt();Ll();uf();_mt=class{constructor(i,o,s,c){this.configuration=i,this.viewModel=o,this.userInputEvents=s,this.commandDelegate=c}paste(i,o,s,c){this.commandDelegate.paste(i,o,s,c)}type(i){this.commandDelegate.type(i)}compositionType(i,o,s,c){this.commandDelegate.compositionType(i,o,s,c)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(i){x2.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:i})}_validateViewColumn(i){let o=this.viewModel.getLineMinColumn(i.lineNumber);return i.column=4?this._selectAll():i.mouseDownCount===3?this._hasMulticursorModifier(i)?i.inSelectionMode?this._lastCursorLineSelectDrag(i.position,i.revealType):this._lastCursorLineSelect(i.position,i.revealType):i.inSelectionMode?this._lineSelectDrag(i.position,i.revealType):this._lineSelect(i.position,i.revealType):i.mouseDownCount===2?i.onInjectedText||(this._hasMulticursorModifier(i)?this._lastCursorWordSelect(i.position,i.revealType):i.inSelectionMode?this._wordSelectDrag(i.position,i.revealType):this._wordSelect(i.position,i.revealType)):this._hasMulticursorModifier(i)?this._hasNonMulticursorModifier(i)||(i.shiftKey?this._columnSelect(i.position,i.mouseColumn,!0):i.inSelectionMode?this._lastCursorMoveToSelect(i.position,i.revealType):this._createCursor(i.position,!1)):i.inSelectionMode?i.altKey?this._columnSelect(i.position,i.mouseColumn,!0):c?this._columnSelect(i.position,i.mouseColumn,!0):this._moveToSelect(i.position,i.revealType):this.moveTo(i.position,i.revealType)}_usualArgs(i,o){return i=this._validateViewColumn(i),{source:"mouse",position:this._convertViewToModelPosition(i),viewPosition:i,revealType:o}}moveTo(i,o){x2.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(i,o))}_moveToSelect(i,o){x2.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i,o))}_columnSelect(i,o,s){i=this._validateViewColumn(i),x2.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(i),viewPosition:i,mouseColumn:o,doColumnSelect:s})}_createCursor(i,o){i=this._validateViewColumn(i),x2.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(i),viewPosition:i,wholeLine:o})}_lastCursorMoveToSelect(i,o){x2.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i,o))}_wordSelect(i,o){x2.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i,o))}_wordSelectDrag(i,o){x2.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(i,o))}_lastCursorWordSelect(i,o){x2.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i,o))}_lineSelect(i,o){x2.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i,o))}_lineSelectDrag(i,o){x2.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(i,o))}_lastCursorLineSelect(i,o){x2.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(i,o))}_lastCursorLineSelectDrag(i,o){x2.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(i,o))}_selectAll(){x2.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(i){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i)}emitKeyDown(i){this.userInputEvents.emitKeyDown(i)}emitKeyUp(i){this.userInputEvents.emitKeyUp(i)}emitContextMenu(i){this.userInputEvents.emitContextMenu(i)}emitMouseMove(i){this.userInputEvents.emitMouseMove(i)}emitMouseLeave(i){this.userInputEvents.emitMouseLeave(i)}emitMouseUp(i){this.userInputEvents.emitMouseUp(i)}emitMouseDown(i){this.userInputEvents.emitMouseDown(i)}emitMouseDrag(i){this.userInputEvents.emitMouseDrag(i)}emitMouseDrop(i){this.userInputEvents.emitMouseDrop(i)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(i){this.userInputEvents.emitMouseWheel(i)}}});var Krt,yLe,Xrt,pmt=Ht(()=>{Tw();VK();Pl();Ele();Krt=class{constructor(i){this._createLine=i,this._set(1,[])}flush(){this._set(1,[])}_set(i,o){this._lines=o,this._rendLineNumberStart=i}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(i){let o=i-this._rendLineNumberStart;if(o<0||o>=this._lines.length)throw new C_("Illegal value for lineNumber");return this._lines[o]}onLinesDeleted(i,o){if(this.getCount()===0)return null;let s=this.getStartLineNumber(),c=this.getEndLineNumber();if(oc)return null;let _=0,h=0;for(let w=s;w<=c;w++){let D=w-this._rendLineNumberStart;i<=w&&w<=o&&(h===0?(_=D,h=1):h++)}if(i=c&&b<=_&&(this._lines[b-this._rendLineNumberStart].onContentChanged(),h=!0);return h}onLinesInserted(i,o){if(this.getCount()===0)return null;let s=o-i+1,c=this.getStartLineNumber(),_=this.getEndLineNumber();if(i<=c)return this._rendLineNumberStart+=s,null;if(i>_)return null;if(s+i>_)return this._lines.splice(i-this._rendLineNumberStart,_-i+1);let h=[];for(let j=0;js)continue;let w=Math.max(o,b.fromLineNumber),D=Math.min(s,b.toLineNumber);for(let O=w;O<=D;O++){let j=O-this._rendLineNumberStart;this._lines[j].onTokensChanged(),c=!0}}return c}},yLe=class{constructor(i){this._host=i,this.domNode=this._createDomNode(),this._linesCollection=new Krt(()=>this._host.createVisibleLine())}_createDomNode(){let i=cf(document.createElement("div"));return i.setClassName("view-layer"),i.setPosition("absolute"),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i}onConfigurationChanged(i){return!!i.hasChanged(145)}onFlushed(i){return this._linesCollection.flush(),!0}onLinesChanged(i){return this._linesCollection.onLinesChanged(i.fromLineNumber,i.count)}onLinesDeleted(i){let o=this._linesCollection.onLinesDeleted(i.fromLineNumber,i.toLineNumber);if(o)for(let s=0,c=o.length;so){let h=o,b=Math.min(s,_.rendLineNumberStart-1);h<=b&&(this._insertLinesBefore(_,h,b,c,o),_.linesLength+=b-h+1)}else if(_.rendLineNumberStart0&&(this._removeLinesBefore(_,h),_.linesLength-=h)}if(_.rendLineNumberStart=o,_.rendLineNumberStart+_.linesLength-1s){let h=Math.max(0,s-_.rendLineNumberStart+1),w=_.linesLength-1-h+1;w>0&&(this._removeLinesAfter(_,w),_.linesLength-=w)}return this._finishRendering(_,!1,c),_}_renderUntouchedLines(i,o,s,c,_){let h=i.rendLineNumberStart,b=i.lines;for(let w=o;w<=s;w++){let D=h+w;b[w].layoutLine(D,c[D-_],this.viewportData.lineHeight)}}_insertLinesBefore(i,o,s,c,_){let h=[],b=0;for(let w=o;w<=s;w++)h[b++]=this.host.createVisibleLine();i.lines=h.concat(i.lines)}_removeLinesBefore(i,o){for(let s=0;s=0;b--){let w=i.lines[b];c[b]&&(w.setDomNode(h),h=h.previousSibling)}}_finishRenderingInvalidLines(i,o,s){let c=document.createElement("div");l._ttPolicy&&(o=l._ttPolicy.createHTML(o)),c.innerHTML=o;for(let _=0;_l});Xrt._sb=new S7(1e5)});var mmt,Mti,hmt,gmt,USi=Ht(()=>{Tw();v7();pmt();gP();mmt=class extends W1{constructor(i){super(i),this._visibleLines=new yLe(this),this.domNode=this._visibleLines.domNode;let s=this._context.configuration.options.get(50);Iv(this.domNode,s),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let i=0,o=this._dynamicOverlays.length;is.shouldRender());for(let s=0,c=o.length;s'),_.appendString(h),_.appendString(""),!0)}layoutLine(i,o,s){this._domNode&&(this._domNode.setTop(o),this._domNode.setHeight(s))}},hmt=class extends mmt{constructor(i){super(i);let s=this._context.configuration.options.get(145);this._contentWidth=s.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(i){let s=this._context.configuration.options.get(145);return this._contentWidth=s.contentWidth,super.onConfigurationChanged(i)||!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollWidthChanged}_viewOverlaysRender(i){super._viewOverlaysRender(i),this.domNode.setWidth(Math.max(i.scrollWidth,this._contentWidth))}},gmt=class extends mmt{constructor(i){super(i);let o=this._context.configuration.options,s=o.get(145);this._contentLeft=s.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),Iv(this.domNode,o.get(50))}onConfigurationChanged(i){let o=this._context.configuration.options;Iv(this.domNode,o.get(50));let s=o.get(145);return this._contentLeft=s.contentLeft,super.onConfigurationChanged(i)||!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollHeightChanged}_viewOverlaysRender(i){super._viewOverlaysRender(i);let o=Math.min(i.scrollHeight,1e6);this.domNode.setHeight(o),this.domNode.setWidth(this._contentLeft)}}});var vLe,Rti=Ht(()=>{Ll();vLe=class l{constructor(i){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=i}emitKeyDown(i){var o;(o=this.onKeyDown)===null||o===void 0||o.call(this,i)}emitKeyUp(i){var o;(o=this.onKeyUp)===null||o===void 0||o.call(this,i)}emitContextMenu(i){var o;(o=this.onContextMenu)===null||o===void 0||o.call(this,this._convertViewToModelMouseEvent(i))}emitMouseMove(i){var o;(o=this.onMouseMove)===null||o===void 0||o.call(this,this._convertViewToModelMouseEvent(i))}emitMouseLeave(i){var o;(o=this.onMouseLeave)===null||o===void 0||o.call(this,this._convertViewToModelMouseEvent(i))}emitMouseDown(i){var o;(o=this.onMouseDown)===null||o===void 0||o.call(this,this._convertViewToModelMouseEvent(i))}emitMouseUp(i){var o;(o=this.onMouseUp)===null||o===void 0||o.call(this,this._convertViewToModelMouseEvent(i))}emitMouseDrag(i){var o;(o=this.onMouseDrag)===null||o===void 0||o.call(this,this._convertViewToModelMouseEvent(i))}emitMouseDrop(i){var o;(o=this.onMouseDrop)===null||o===void 0||o.call(this,this._convertViewToModelMouseEvent(i))}emitMouseDropCanceled(){var i;(i=this.onMouseDropCanceled)===null||i===void 0||i.call(this)}emitMouseWheel(i){var o;(o=this.onMouseWheel)===null||o===void 0||o.call(this,i)}_convertViewToModelMouseEvent(i){return i.target?{event:i.event,target:this._convertViewToModelMouseTarget(i.target)}:i}_convertViewToModelMouseTarget(i){return l.convertViewToModelMouseTarget(i,this._coordinatesConverter)}static convertViewToModelMouseTarget(i,o){let s={...i};return s.position&&(s.position=o.convertViewPositionToModelPosition(s.position)),s.range&&(s.range=o.convertViewRangeToModelRange(s.range)),(s.type===5||s.type===8)&&(s.detail=this.convertViewToModelViewZoneData(s.detail,o)),s}static convertViewToModelViewZoneData(i,o){return{viewZoneId:i.viewZoneId,positionBefore:i.positionBefore?o.convertViewPositionToModelPosition(i.positionBefore):i.positionBefore,positionAfter:i.positionAfter?o.convertViewPositionToModelPosition(i.positionAfter):i.positionAfter,position:o.convertViewPositionToModelPosition(i.position),afterLineNumber:o.convertViewPositionToModelPosition(new Cn(i.afterLineNumber,1)).lineNumber}}}});var JSi=Ht(()=>{});var ymt,qSi=Ht(()=>{Tw();JSi();gP();ymt=class extends W1{constructor(i){super(i),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=cf(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let i=!1,s=this._context.configuration.options.get(145),c=s.contentWidth-s.verticalScrollbarWidth;this.contentWidth!==c&&(this.contentWidth=c,i=!0);let _=s.contentLeft;return this.contentLeft!==_&&(this.contentLeft=_,i=!0),i}dispose(){super.dispose()}onConfigurationChanged(i){return this.update()}onScrollChanged(i){return i.scrollTopChanged||i.scrollLeftChanged}onDecorationsChanged(i){return!0}onZonesChanged(i){return!0}prepareRender(i){}render(i){var o;let s=0,c=i.getDecorationsInViewport();for(let _ of c){if(!_.options.blockClassName)continue;let h=this.blocks[s];h||(h=this.blocks[s]=cf(document.createElement("div")),this.domNode.appendChild(h));let b,w;_.options.blockIsAfterEnd?(b=i.getVerticalOffsetAfterLineNumber(_.range.endLineNumber,!1),w=i.getVerticalOffsetAfterLineNumber(_.range.endLineNumber,!0)):(b=i.getVerticalOffsetForLineNumber(_.range.startLineNumber,!0),w=_.range.isEmpty()&&!_.options.blockDoesNotCollapse?i.getVerticalOffsetForLineNumber(_.range.startLineNumber,!1):i.getVerticalOffsetAfterLineNumber(_.range.endLineNumber,!0));let[D,O,j,F]=(o=_.options.blockPadding)!==null&&o!==void 0?o:[0,0,0,0];h.setClassName("blockDecorations-block "+_.options.blockClassName),h.setLeft(this.contentLeft-F),h.setWidth(this.contentWidth+F+O),h.setTop(b-i.scrollTop-D),h.setHeight(w-b+D+j),s++}for(let _=s;_{va();Tw();gP();vmt=class extends W1{constructor(i,o){super(i),this._viewDomNode=o,this._widgets={},this.domNode=cf(document.createElement("div")),GD.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=cf(document.createElement("div")),GD.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(i){let o=Object.keys(this._widgets);for(let s of o)this._widgets[s].onConfigurationChanged(i);return!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLineMappingChanged(i){return this._updateAnchorsViewPositions(),!0}onLinesChanged(i){return this._updateAnchorsViewPositions(),!0}onLinesDeleted(i){return this._updateAnchorsViewPositions(),!0}onLinesInserted(i){return this._updateAnchorsViewPositions(),!0}onScrollChanged(i){return!0}onZonesChanged(i){return!0}_updateAnchorsViewPositions(){let i=Object.keys(this._widgets);for(let o of i)this._widgets[o].updateAnchorViewPosition()}addWidget(i){let o=new jti(this._context,this._viewDomNode,i);this._widgets[o.id]=o,o.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(o.domNode):this.domNode.appendChild(o.domNode),this.setShouldRender()}setWidgetPosition(i,o,s,c,_){this._widgets[i.getId()].setPosition(o,s,c,_),this.setShouldRender()}removeWidget(i){let o=i.getId();if(this._widgets.hasOwnProperty(o)){let s=this._widgets[o];delete this._widgets[o];let c=s.domNode.domNode;c.parentNode.removeChild(c),c.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(i){return this._widgets.hasOwnProperty(i)?this._widgets[i].suppressMouseDown:!1}onBeforeRender(i){let o=Object.keys(this._widgets);for(let s of o)this._widgets[s].onBeforeRender(i)}prepareRender(i){let o=Object.keys(this._widgets);for(let s of o)this._widgets[s].prepareRender(i)}render(i){let o=Object.keys(this._widgets);for(let s of o)this._widgets[s].render(i)}},jti=class{constructor(i,o,s){this._primaryAnchor=new FAe(null,null),this._secondaryAnchor=new FAe(null,null),this._context=i,this._viewDomNode=o,this._actual=s,this.domNode=cf(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;let c=this._context.configuration.options,_=c.get(145);this._fixedOverflowWidgets=c.get(42),this._contentWidth=_.contentWidth,this._contentLeft=_.contentLeft,this._lineHeight=c.get(67),this._affinity=null,this._preference=[],this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setDisplay("none"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(i){let o=this._context.configuration.options;if(this._lineHeight=o.get(67),i.hasChanged(145)){let s=o.get(145);this._contentLeft=s.contentLeft,this._contentWidth=s.contentWidth,this._maxWidth=this._getMaxWidth()}}updateAnchorViewPosition(){this._setPosition(this._affinity,this._primaryAnchor.modelPosition,this._secondaryAnchor.modelPosition)}_setPosition(i,o,s){this._affinity=i,this._primaryAnchor=c(o,this._context.viewModel,this._affinity),this._secondaryAnchor=c(s,this._context.viewModel,this._affinity);function c(_,h,b){if(!_)return new FAe(null,null);let w=h.model.validatePosition(_);if(h.coordinatesConverter.modelPositionIsVisible(w)){let D=h.coordinatesConverter.convertModelPositionToViewPosition(w,b??void 0);return new FAe(_,D)}return new FAe(_,null)}}_getMaxWidth(){let i=this.domNode.domNode.ownerDocument,o=i.defaultView;return this.allowEditorOverflow?o?.innerWidth||i.documentElement.offsetWidth||i.body.offsetWidth:this._contentWidth}setPosition(i,o,s,c){this._setPosition(c,i,o),this._preference=s,this._primaryAnchor.viewPosition&&this._preference&&this._preference.length>0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(i,o,s,c){let _=i.top,h=_,b=i.top+i.height,w=c.viewportHeight-b,D=_-s,O=h>=s,j=b,F=w>=s,X=i.left;return X+o>c.scrollLeft+c.viewportWidth&&(X=c.scrollLeft+c.viewportWidth-o),XD){let X=F-(D-c);F-=X,s-=X}if(F=Le,ft=X+s<=K.height-Je;return this._fixedOverflowWidgets?{fitsAbove:Ye,aboveTop:Math.max(F,Le),fitsBelow:ft,belowTop:X,left:Pe}:{fitsAbove:Ye,aboveTop:b,fitsBelow:ft,belowTop:w,left:re}}_prepareRenderWidgetAtExactPositionOverflowing(i){return new MAe(i.top,i.left+this._contentLeft)}_getAnchorsCoordinates(i){var o,s;let c=b(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),_=((o=this._secondaryAnchor.viewPosition)===null||o===void 0?void 0:o.lineNumber)===((s=this._primaryAnchor.viewPosition)===null||s===void 0?void 0:s.lineNumber)?this._secondaryAnchor.viewPosition:null,h=b(_,this._affinity,this._lineHeight);return{primary:c,secondary:h};function b(w,D,O){if(!w)return null;let j=i.visibleRangeForPosition(w);if(!j)return null;let F=w.column===1&&D===3?0:j.left,X=i.getVerticalOffsetForLineNumber(w.lineNumber)-i.scrollTop;return new bmt(X,F,O)}}_reduceAnchorCoordinates(i,o,s){if(!o)return i;let c=this._context.configuration.options.get(50),_=o.left;return _i.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(i){this._renderData=this._prepareRenderWidget(i)}render(i){var o;if(!this._renderData||this._renderData.kind==="offViewport"){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,((o=this._renderData)===null||o===void 0?void 0:o.kind)==="offViewport"&&this._renderData.preserveFocus?this.domNode.setTop(-1e3):this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&Bti(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+i.scrollTop-i.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&Bti(this._actual.afterRender,this._actual,this._renderData.position)}},FAe=class{constructor(i,o){this.modelPosition=i,this.viewPosition=o}},MAe=class{constructor(i,o){this.top=i,this.left=o,this._coordinateBrand=void 0}},bmt=class{constructor(i,o,s){this.top=i,this.left=o,this.height=s,this._anchorCoordinateBrand=void 0}}});var GSi=Ht(()=>{});var Smt,xmt,Cmt,KSi=Ht(()=>{GSi();rfe();bj();su();_g();hg();dW();Ll();Smt=class extends qL{constructor(i){super(),this._context=i;let o=this._context.configuration.options,s=o.get(145);this._renderLineHighlight=o.get(96),this._renderLineHighlightOnlyWhenFocus=o.get(97),this._wordWrap=s.isViewportWrapping,this._contentLeft=s.contentLeft,this._contentWidth=s.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new ya(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let i=!1,o=new Set;for(let _ of this._selections)o.add(_.positionLineNumber);let s=Array.from(o);s.sort((_,h)=>_-h),Op(this._cursorLineNumbers,s)||(this._cursorLineNumbers=s,i=!0);let c=this._selections.every(_=>_.isEmpty());return this._selectionIsEmpty!==c&&(this._selectionIsEmpty=c,i=!0),i}onThemeChanged(i){return this._readFromSelections()}onConfigurationChanged(i){let o=this._context.configuration.options,s=o.get(145);return this._renderLineHighlight=o.get(96),this._renderLineHighlightOnlyWhenFocus=o.get(97),this._wordWrap=s.isViewportWrapping,this._contentLeft=s.contentLeft,this._contentWidth=s.contentWidth,!0}onCursorStateChanged(i){return this._selections=i.selections,this._readFromSelections()}onFlushed(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollWidthChanged||i.scrollTopChanged}onZonesChanged(i){return!0}onFocusChanged(i){return this._renderLineHighlightOnlyWhenFocus?(this._focused=i.isFocused,!0):!1}prepareRender(i){if(!this._shouldRenderThis()){this._renderData=null;return}let o=i.visibleRange.startLineNumber,s=i.visibleRange.endLineNumber,c=[];for(let h=o;h<=s;h++){let b=h-o;c[b]=""}if(this._wordWrap){let h=this._renderOne(i,!1);for(let b of this._cursorLineNumbers){let w=this._context.viewModel.coordinatesConverter,D=w.convertViewPositionToModelPosition(new Cn(b,1)).lineNumber,O=w.convertModelPositionToViewPosition(new Cn(D,1)).lineNumber,j=w.convertModelPositionToViewPosition(new Cn(D,this._context.viewModel.model.getLineMaxColumn(D))).lineNumber,F=Math.max(O,o),X=Math.min(j,s);for(let K=F;K<=X;K++){let re=K-o;c[re]=h}}}let _=this._renderOne(i,!0);for(let h of this._cursorLineNumbers){if(hs)continue;let b=h-o;c[b]=_}this._renderData=c}render(i,o){if(!this._renderData)return"";let s=o-i;return s>=this._renderData.length?"":this._renderData[s]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}},xmt=class extends Smt{_renderOne(i,o){return`
`}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}},Cmt=class extends Smt{_renderOne(i,o){return`
`}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}};WC((l,i)=>{let o=l.getColor(kti);if(o&&(i.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${o}; }`),i.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${o}; border: none; }`)),!o||o.isTransparent()||l.defines(wti)){let s=l.getColor(wti);s&&(i.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${s}; }`),i.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${s}; }`),ZA(l.type)&&(i.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),i.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}})});var XSi=Ht(()=>{});var kmt,YSi=Ht(()=>{XSi();rfe();sLe();ca();kmt=class extends qL{constructor(i){super(),this._context=i;let o=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=o.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let o=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=o.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged||i.scrollWidthChanged}onZonesChanged(i){return!0}prepareRender(i){let o=i.getDecorationsInViewport(),s=[],c=0;for(let w=0,D=o.length;w{if(w.options.zIndexD.options.zIndex)return 1;let O=w.options.className,j=D.options.className;return Oj?1:Vt.compareRangesUsingStarts(w.range,D.range)});let _=i.visibleRange.startLineNumber,h=i.visibleRange.endLineNumber,b=[];for(let w=_;w<=h;w++){let D=w-_;b[D]=""}this._renderWholeLineDecorations(i,s,b),this._renderNormalDecorations(i,s,b),this._renderResult=b}_renderWholeLineDecorations(i,o,s){let c=i.visibleRange.startLineNumber,_=i.visibleRange.endLineNumber;for(let h=0,b=o.length;h',O=Math.max(w.range.startLineNumber,c),j=Math.min(w.range.endLineNumber,_);for(let F=O;F<=j;F++){let X=F-c;s[X]+=D}}}_renderNormalDecorations(i,o,s){var c;let _=i.visibleRange.startLineNumber,h=null,b=!1,w=null,D=!1;for(let O=0,j=o.length;O';b[F]+=Le}}}render(i,o){if(!this._renderResult)return"";let s=o-i;return s<0||s>=this._renderResult.length?"":this._renderResult[s]}}});var wmt,QSi=Ht(()=>{va();Tw();vj();gP();_g();wmt=class extends W1{constructor(i,o,s,c){super(i);let _=this._context.configuration.options,h=_.get(103),b=_.get(75),w=_.get(40),D=_.get(106),O={listenOnDomNode:s.domNode,className:"editor-scrollable "+Wrt(i.theme.type),useShadows:!1,lazyRender:!0,vertical:h.vertical,horizontal:h.horizontal,verticalHasArrows:h.verticalHasArrows,horizontalHasArrows:h.horizontalHasArrows,verticalScrollbarSize:h.verticalScrollbarSize,verticalSliderSize:h.verticalSliderSize,horizontalScrollbarSize:h.horizontalScrollbarSize,horizontalSliderSize:h.horizontalSliderSize,handleMouseWheel:h.handleMouseWheel,alwaysConsumeMouseWheel:h.alwaysConsumeMouseWheel,arrowSize:h.arrowSize,mouseWheelScrollSensitivity:b,fastScrollSensitivity:w,scrollPredominantAxis:D,scrollByPage:h.scrollByPage};this.scrollbar=this._register(new sX(o.domNode,O,this._context.viewLayout.getScrollable())),GD.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=cf(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();let j=(F,X,K)=>{let re={};if(X){let Pe=F.scrollTop;Pe&&(re.scrollTop=this._context.viewLayout.getCurrentScrollTop()+Pe,F.scrollTop=0)}if(K){let Pe=F.scrollLeft;Pe&&(re.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+Pe,F.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(re,1)};this._register(Tr(s.domNode,"scroll",F=>j(s.domNode,!0,!0))),this._register(Tr(o.domNode,"scroll",F=>j(o.domNode,!0,!1))),this._register(Tr(c.domNode,"scroll",F=>j(c.domNode,!0,!1))),this._register(Tr(this.scrollbarDomNode.domNode,"scroll",F=>j(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){let i=this._context.configuration.options,o=i.get(145);this.scrollbarDomNode.setLeft(o.contentLeft),i.get(73).side==="right"?this.scrollbarDomNode.setWidth(o.contentWidth+o.minimap.minimapWidth):this.scrollbarDomNode.setWidth(o.contentWidth),this.scrollbarDomNode.setHeight(o.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(i){this.scrollbar.delegateVerticalScrollbarPointerDown(i)}delegateScrollFromMouseWheelEvent(i){this.scrollbar.delegateScrollFromMouseWheelEvent(i)}onConfigurationChanged(i){if(i.hasChanged(103)||i.hasChanged(75)||i.hasChanged(40)){let o=this._context.configuration.options,s=o.get(103),c=o.get(75),_=o.get(40),h=o.get(106),b={vertical:s.vertical,horizontal:s.horizontal,verticalScrollbarSize:s.verticalScrollbarSize,horizontalScrollbarSize:s.horizontalScrollbarSize,scrollByPage:s.scrollByPage,handleMouseWheel:s.handleMouseWheel,mouseWheelScrollSensitivity:c,fastScrollSensitivity:_,scrollPredominantAxis:h};this.scrollbar.updateOptions(b)}return i.hasChanged(145)&&this._setLayout(),!0}onScrollChanged(i){return!0}onThemeChanged(i){return this.scrollbar.updateClassName("editor-scrollable "+Wrt(this._context.theme.type)),!0}prepareRender(i){}render(i){this.scrollbar.renderNow()}}});var ZSi=Ht(()=>{});var RAe,Wti,zti,bLe,Tmt,Vti,Hti,Uti,Emt=Ht(()=>{Tw();su();ZSi();rfe();gP();Ll();ca();b2();RAe=class{constructor(i,o,s,c,_){this.startLineNumber=i,this.endLineNumber=o,this.className=s,this.tooltip=c,this._decorationToRenderBrand=void 0,this.zIndex=_??0}},Wti=class{constructor(i,o,s){this.className=i,this.zIndex=o,this.tooltip=s}},zti=class{constructor(){this.decorations=[]}add(i){this.decorations.push(i)}getDecorations(){return this.decorations}},bLe=class extends qL{_render(i,o,s){let c=[];for(let b=i;b<=o;b++){let w=b-i;c[w]=new zti}if(s.length===0)return c;s.sort((b,w)=>b.className===w.className?b.startLineNumber===w.startLineNumber?b.endLineNumber-w.endLineNumber:b.startLineNumber-w.startLineNumber:b.classNamec)continue;let D=Math.max(b,s),O=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Cn(D,0)),j=this._context.viewModel.glyphLanes.getLanesAtLine(O.lineNumber).indexOf(_.preference.lane);o.push(new Hti(D,j,_.preference.zIndex,_))}}_collectSortedGlyphRenderRequests(i){let o=[];return this._collectDecorationBasedGlyphRenderRequest(i,o),this._collectWidgetBasedGlyphRenderRequest(i,o),o.sort((s,c)=>s.lineNumber===c.lineNumber?s.laneIndex===c.laneIndex?s.zIndex===c.zIndex?c.type===s.type?s.type===0&&c.type===0?s.className0;){let c=o.peek();if(!c)break;let _=o.takeWhile(b=>b.lineNumber===c.lineNumber&&b.laneIndex===c.laneIndex);if(!_||_.length===0)break;let h=_[0];if(h.type===0){let b=[];for(let w of _){if(w.zIndex!==h.zIndex||w.type!==h.type)break;(b.length===0||b[b.length-1]!==w.className)&&b.push(w.className)}s.push(h.accept(b.join(" ")))}else h.widget.renderInfo={lineNumber:h.lineNumber,laneIndex:h.laneIndex}}this._decorationGlyphsToRender=s}render(i){if(!this._glyphMargin){for(let s of Object.values(this._widgets))s.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){let s=this._managedDomNodes.pop();s?.domNode.remove()}return}let o=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(let s of Object.values(this._widgets))if(!s.renderInfo)s.domNode.setDisplay("none");else{let c=i.viewportData.relativeVerticalOffset[s.renderInfo.lineNumber-i.viewportData.startLineNumber],_=this._glyphMarginLeft+s.renderInfo.laneIndex*this._lineHeight;s.domNode.setDisplay("block"),s.domNode.setTop(c),s.domNode.setLeft(_),s.domNode.setWidth(o),s.domNode.setHeight(this._lineHeight)}for(let s=0;sthis._decorationGlyphsToRender.length;){let s=this._managedDomNodes.pop();s?.domNode.remove()}}},Vti=class{constructor(i,o,s,c){this.lineNumber=i,this.laneIndex=o,this.zIndex=s,this.className=c,this.type=0}accept(i){return new Uti(this.lineNumber,this.laneIndex,i)}},Hti=class{constructor(i,o,s,c){this.lineNumber=i,this.laneIndex=o,this.zIndex=s,this.widget=c,this.type=1}},Uti=class{constructor(i,o,s){this.lineNumber=i,this.laneIndex=o,this.combinedClassName=s}}});var exi=Ht(()=>{});var SLe,Jti=Ht(()=>{$r();SLe=class extends Ui{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}});function BAe(l,i){let o=0,s=0,c=l.length;for(;s{});var $le,gW,Gle,Imt=Ht(()=>{(function(l){l[l.Disabled=0]="Disabled",l[l.EnabledForActive=1]="EnabledForActive",l[l.Enabled=2]="Enabled"})($le||($le={}));gW=class{constructor(i,o,s,c,_,h){if(this.visibleColumn=i,this.column=o,this.className=s,this.horizontalLine=c,this.forWrappedLinesAfterColumn=_,this.forWrappedLinesBeforeOrAtColumn=h,i!==-1==(o!==-1))throw new Error}},Gle=class{constructor(i,o){this.top=i,this.endColumn=o}}});var Nmt,Yrt,qti=Ht(()=>{VF();Bl();_W();ca();Jti();Dmt();Imt();Pl();Nmt=class extends SLe{constructor(i,o){super(),this.textModel=i,this.languageConfigurationService=o}getLanguageConfiguration(i){return this.languageConfigurationService.getLanguageConfiguration(i)}_computeIndentLevel(i){return BAe(this.textModel.getLineContent(i+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(i,o,s){this.assertNotDisposed();let c=this.textModel.getLineCount();if(i<1||i>c)throw new C_("Illegal value for lineNumber");let _=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,h=!!(_&&_.offSide),b=-2,w=-1,D=-2,O=-1,j=St=>{if(b!==-1&&(b===-2||b>St-1)){b=-1,w=-1;for(let Mi=St-2;Mi>=0;Mi--){let zi=this._computeIndentLevel(Mi);if(zi>=0){b=Mi,w=zi;break}}}if(D===-2){D=-1,O=-1;for(let Mi=St;Mi=0){D=Mi,O=zi;break}}}},F=-2,X=-1,K=-2,re=-1,Pe=St=>{if(F===-2){F=-1,X=-1;for(let Mi=St-2;Mi>=0;Mi--){let zi=this._computeIndentLevel(Mi);if(zi>=0){F=Mi,X=zi;break}}}if(K!==-1&&(K===-2||K=0){K=Mi,re=zi;break}}}},Le=0,Je=!0,Ye=0,ft=!0,Ct=0,Et=0;for(let St=0;Je||ft;St++){let Mi=i-St,zi=i+St;St>1&&(Mi<1||Mi1&&(zi>c||zi>s)&&(ft=!1),St>5e4&&(Je=!1,ft=!1);let Vr=-1;if(Je&&Mi>=1){let gr=this._computeIndentLevel(Mi-1);gr>=0?(D=Mi-1,O=gr,Vr=Math.ceil(gr/this.textModel.getOptions().indentSize)):(j(Mi),Vr=this._getIndentLevelForWhitespaceLine(h,w,O))}let sn=-1;if(ft&&zi<=c){let gr=this._computeIndentLevel(zi-1);gr>=0?(F=zi-1,X=gr,sn=Math.ceil(gr/this.textModel.getOptions().indentSize)):(Pe(zi),sn=this._getIndentLevelForWhitespaceLine(h,X,re))}if(St===0){Et=Vr;continue}if(St===1){if(zi<=c&&sn>=0&&Et+1===sn){Je=!1,Le=zi,Ye=zi,Ct=sn;continue}if(Mi>=1&&Vr>=0&&Vr-1===Et){ft=!1,Le=Mi,Ye=Mi,Ct=Vr;continue}if(Le=i,Ye=i,Ct=Et,Ct===0)return{startLineNumber:Le,endLineNumber:Ye,indent:Ct}}Je&&(Vr>=Ct?Le=Mi:Je=!1),ft&&(sn>=Ct?Ye=zi:ft=!1)}return{startLineNumber:Le,endLineNumber:Ye,indent:Ct}}getLinesBracketGuides(i,o,s,c){var _;let h=[];for(let F=i;F<=o;F++)h.push([]);let b=!0,w=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new Vt(i,1,o,this.textModel.getLineMaxColumn(o))).toArray(),D;if(s&&w.length>0){let F=(i<=s.lineNumber&&s.lineNumber<=o?w:this.textModel.bracketPairs.getBracketPairsInRange(Vt.fromPositions(s)).toArray()).filter(X=>Vt.strictContainsPosition(X.range,s));D=(_=Ple(F,X=>b||X.range.startLineNumber!==X.range.endLineNumber))===null||_===void 0?void 0:_.range}let O=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,j=new Yrt;for(let F of w){if(!F.closingBracketRange)continue;let X=D&&F.range.equalsRange(D);if(!X&&!c.includeInactive)continue;let K=j.getInlineClassName(F.nestingLevel,F.nestingLevelOfEqualBracketType,O)+(c.highlightActive&&X?" "+j.activeClassName:""),re=F.openingBracketRange.getStartPosition(),Pe=F.closingBracketRange.getStartPosition(),Le=c.horizontalGuides===$le.Enabled||c.horizontalGuides===$le.EnabledForActive&&X;if(F.range.startLineNumber===F.range.endLineNumber){b&&Le&&h[F.range.startLineNumber-i].push(new gW(-1,F.openingBracketRange.getEndPosition().column,K,new Gle(!1,Pe.column),-1,-1));continue}let Je=this.getVisibleColumnFromPosition(Pe),Ye=this.getVisibleColumnFromPosition(F.openingBracketRange.getStartPosition()),ft=Math.min(Ye,Je,F.minVisibleColumnIndentation+1),Ct=!1;M1(this.textModel.getLineContent(F.closingBracketRange.startLineNumber))=i&&Ye>ft&&h[re.lineNumber-i].push(new gW(ft,-1,K,new Gle(!1,re.column),-1,-1)),Pe.lineNumber<=o&&Je>ft&&h[Pe.lineNumber-i].push(new gW(ft,-1,K,new Gle(!Ct,Pe.column),-1,-1)))}for(let F of h)F.sort((X,K)=>X.visibleColumn-K.visibleColumn);return h}getVisibleColumnFromPosition(i){return xv.visibleColumnFromColumn(this.textModel.getLineContent(i.lineNumber),i.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(i,o){this.assertNotDisposed();let s=this.textModel.getLineCount();if(i<1||i>s)throw new Error("Illegal value for startLineNumber");if(o<1||o>s)throw new Error("Illegal value for endLineNumber");let c=this.textModel.getOptions(),_=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,h=!!(_&&_.offSide),b=new Array(o-i+1),w=-2,D=-1,O=-2,j=-1;for(let F=i;F<=o;F++){let X=F-i,K=this._computeIndentLevel(F-1);if(K>=0){w=F-1,D=K,b[X]=Math.ceil(K/c.indentSize);continue}if(w===-2){w=-1,D=-1;for(let re=F-2;re>=0;re--){let Pe=this._computeIndentLevel(re);if(Pe>=0){w=re,D=Pe;break}}}if(O!==-1&&(O===-2||O=0){O=re,j=Pe;break}}}b[X]=this._getIndentLevelForWhitespaceLine(h,D,j)}return b}_getIndentLevelForWhitespaceLine(i,o,s){let c=this.textModel.getOptions();return o===-1||s===-1?0:o{exi();rfe();bj();_g();Ll();su();cm();qti();Imt();Amt=class extends qL{constructor(i){super(),this._context=i,this._primaryPosition=null;let o=this._context.configuration.options,s=o.get(146),c=o.get(50);this._spaceWidth=c.spaceWidth,this._maxIndentLeft=s.wrappingColumn===-1?-1:s.wrappingColumn*c.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=o.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let o=this._context.configuration.options,s=o.get(146),c=o.get(50);return this._spaceWidth=c.spaceWidth,this._maxIndentLeft=s.wrappingColumn===-1?-1:s.wrappingColumn*c.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=o.get(16),!0}onCursorStateChanged(i){var o;let c=i.selections[0].getPosition();return!((o=this._primaryPosition)===null||o===void 0)&&o.equals(c)?!1:(this._primaryPosition=c,!0)}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}onLanguageConfigurationChanged(i){return!0}prepareRender(i){var o,s,c,_;if(!this._bracketPairGuideOptions.indentation&&this._bracketPairGuideOptions.bracketPairs===!1){this._renderResult=null;return}let h=i.visibleRange.startLineNumber,b=i.visibleRange.endLineNumber,w=i.scrollWidth,D=this._primaryPosition,O=this.getGuidesByLine(h,Math.min(b+1,this._context.viewModel.getLineCount()),D),j=[];for(let F=h;F<=b;F++){let X=F-h,K=O[X],re="",Pe=(s=(o=i.visibleRangeForPosition(new Cn(F,1)))===null||o===void 0?void 0:o.left)!==null&&s!==void 0?s:0;for(let Le of K){let Je=Le.column===-1?Pe+(Le.visibleColumn-1)*this._spaceWidth:i.visibleRangeForPosition(new Cn(F,Le.column)).left;if(Je>w||this._maxIndentLeft>0&&Je>this._maxIndentLeft)break;let Ye=Le.horizontalLine?Le.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",ft=Le.horizontalLine?((_=(c=i.visibleRangeForPosition(new Cn(F,Le.horizontalLine.endColumn)))===null||c===void 0?void 0:c.left)!==null&&_!==void 0?_:Je+this._spaceWidth)-Je:this._spaceWidth;re+=`
`}j[X]=re}this._renderResult=j}getGuidesByLine(i,o,s){let c=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(i,o,s,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?$le.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?$le.EnabledForActive:$le.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,_=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(i,o):null,h=0,b=0,w=0;if(this._bracketPairGuideOptions.highlightActiveIndentation!==!1&&s){let j=this._context.viewModel.getActiveIndentGuide(s.lineNumber,i,o);h=j.startLineNumber,b=j.endLineNumber,w=j.indent}let{indentSize:D}=this._context.viewModel.model.getOptions(),O=[];for(let j=i;j<=o;j++){let F=new Array;O.push(F);let X=c?c[j-i]:[],K=new nP(X),re=_?_[j-i]:0;for(let Pe=1;Pe<=re;Pe++){let Le=(Pe-1)*D+1,Je=(this._bracketPairGuideOptions.highlightActiveIndentation==="always"||X.length===0)&&h<=j&&j<=b&&Pe===w;F.push(...K.takeWhile(ft=>ft.visibleColumn!0)||[])}return O}render(i,o){if(!this._renderResult)return"";let s=o-i;return s<0||s>=this._renderResult.length?"":this._renderResult[s]}};WC((l,i)=>{let o=[{bracketColor:Wpt,guideColor:bSi,guideColorActive:TSi},{bracketColor:zpt,guideColor:SSi,guideColorActive:ESi},{bracketColor:Vpt,guideColor:xSi,guideColorActive:DSi},{bracketColor:Hpt,guideColor:CSi,guideColorActive:ISi},{bracketColor:Upt,guideColor:kSi,guideColorActive:NSi},{bracketColor:Jpt,guideColor:wSi,guideColorActive:ASi}],s=new Yrt,c=[{indentColor:xAe,indentColorActive:CAe},{indentColor:iSi,indentColorActive:aSi},{indentColor:nSi,indentColorActive:cSi},{indentColor:rSi,indentColorActive:lSi},{indentColor:oSi,indentColorActive:uSi},{indentColor:sSi,indentColorActive:dSi}],_=o.map(b=>{var w,D;let O=l.getColor(b.bracketColor),j=l.getColor(b.guideColor),F=l.getColor(b.guideColorActive),X=xLe((w=xLe(j))!==null&&w!==void 0?w:O?.transparent(.3)),K=xLe((D=xLe(F))!==null&&D!==void 0?D:O);if(!(!X||!K))return{guideColor:X,guideColorActive:K}}).filter(IF),h=c.map(b=>{let w=l.getColor(b.indentColor),D=l.getColor(b.indentColorActive),O=xLe(w),j=xLe(D);if(!(!O||!j))return{indentColor:O,indentColorActive:j}}).filter(IF);if(_.length>0){for(let b=0;b<30;b++){let w=_[b%_.length];i.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(b).replace(/ /g,".")} { --guide-color: ${w.guideColor}; --guide-color-active: ${w.guideColorActive}; }`)}i.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),i.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),i.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),i.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),i.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),i.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(h.length>0){for(let b=0;b<30;b++){let w=h[b%h.length];i.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${b} { --indent-color: ${w.indentColor}; --indent-color-active: ${w.indentColorActive}; }`)}i.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),i.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}})});var ixi=Ht(()=>{});var CLe,nxi=Ht(()=>{CLe=class{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;let i=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=i.left,this._clientRectScale=i.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(i,o){this._domNode=i,this.endNode=o,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}});var $ti,Gti,Kti,Qrt,rxi=Ht(()=>{qpt();Bu();uf();ixi();v7();sLe();pmt();gP();nxi();ppt();Ll();ca();$ti=class{constructor(){this._currentVisibleRange=new Vt(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(i){this._currentVisibleRange=i}},Gti=class{constructor(i,o,s,c,_,h,b){this.minimalReveal=i,this.lineNumber=o,this.startColumn=s,this.endColumn=c,this.startScrollTop=_,this.stopScrollTop=h,this.scrollType=b,this.type="range",this.minLineNumber=o,this.maxLineNumber=o}},Kti=class{constructor(i,o,s,c,_){this.minimalReveal=i,this.selections=o,this.startScrollTop=s,this.stopScrollTop=c,this.scrollType=_,this.type="selections";let h=o[0].startLineNumber,b=o[0].endLineNumber;for(let w=1,D=o.length;w{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new Bd(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new $ti,this._horizontalRevealRequest=null,this._stickyScrollEnabled=c.get(115).enabled,this._maxNumberStickyLines=c.get(115).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new fW(this._viewLineOptions)}onConfigurationChanged(i){this._visibleLines.onConfigurationChanged(i),i.hasChanged(146)&&(this._maxLineWidth=0);let o=this._context.configuration.options,s=o.get(50),c=o.get(146);return this._lineHeight=o.get(67),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._isViewportWrapping=c.isViewportWrapping,this._revealHorizontalRightPadding=o.get(100),this._cursorSurroundingLines=o.get(29),this._cursorSurroundingLinesStyle=o.get(30),this._canUseLayerHinting=!o.get(32),this._stickyScrollEnabled=o.get(115).enabled,this._maxNumberStickyLines=o.get(115).maxLineCount,Iv(this.domNode,s),this._onOptionsMaybeChanged(),i.hasChanged(145)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){let i=this._context.configuration,o=new Frt(i,this._context.theme.type);if(!this._viewLineOptions.equals(o)){this._viewLineOptions=o;let s=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let _=s;_<=c;_++)this._visibleLines.getVisibleLine(_).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(i){let o=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber(),c=!1;for(let _=o;_<=s;_++)c=this._visibleLines.getVisibleLine(_).onSelectionChanged()||c;return c}onDecorationsChanged(i){{let o=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();for(let c=o;c<=s;c++)this._visibleLines.getVisibleLine(c).onDecorationsChanged()}return!0}onFlushed(i){let o=this._visibleLines.onFlushed(i);return this._maxLineWidth=0,o}onLinesChanged(i){return this._visibleLines.onLinesChanged(i)}onLinesDeleted(i){return this._visibleLines.onLinesDeleted(i)}onLinesInserted(i){return this._visibleLines.onLinesInserted(i)}onRevealRangeRequest(i){let o=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),i.source,i.minimalReveal,i.range,i.selections,i.verticalType);if(o===-1)return!1;let s=this._context.viewLayout.validateScrollPosition({scrollTop:o});i.revealHorizontal?i.range&&i.range.startLineNumber!==i.range.endLineNumber?s={scrollTop:s.scrollTop,scrollLeft:0}:i.range?this._horizontalRevealRequest=new Gti(i.minimalReveal,i.range.startLineNumber,i.range.startColumn,i.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),s.scrollTop,i.scrollType):i.selections&&i.selections.length>0&&(this._horizontalRevealRequest=new Kti(i.minimalReveal,i.selections,this._context.viewLayout.getCurrentScrollTop(),s.scrollTop,i.scrollType)):this._horizontalRevealRequest=null;let _=Math.abs(this._context.viewLayout.getCurrentScrollTop()-s.scrollTop)<=this._lineHeight?1:i.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(s,_),!0}onScrollChanged(i){if(this._horizontalRevealRequest&&i.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&i.scrollTopChanged){let o=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),s=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(i.scrollTops)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(i.scrollWidth),this._visibleLines.onScrollChanged(i)||!0}onTokensChanged(i){return this._visibleLines.onTokensChanged(i)}onZonesChanged(i){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(i)}onThemeChanged(i){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(i,o){let s=this._getViewLineDomNode(i);if(s===null)return null;let c=this._getLineNumberFor(s);if(c===-1||c<1||c>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(c)===1)return new Cn(c,1);let _=this._visibleLines.getStartLineNumber(),h=this._visibleLines.getEndLineNumber();if(c<_||c>h)return null;let b=this._visibleLines.getVisibleLine(c).getColumnOfNodeOffset(i,o),w=this._context.viewModel.getLineMinColumn(c);return bs)return-1;let c=new CLe(this.domNode.domNode,this._textRangeRestingSpot),_=this._visibleLines.getVisibleLine(i).getWidth(c);return this._updateLineWidthsSlowIfDomDidLayout(c),_}linesVisibleRangesForRange(i,o){if(this.shouldRender())return null;let s=i.endLineNumber,c=Vt.intersectRanges(i,this._lastRenderedData.getCurrentVisibleRange());if(!c)return null;let _=[],h=0,b=new CLe(this.domNode.domNode,this._textRangeRestingSpot),w=0;o&&(w=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Cn(c.startLineNumber,1)).lineNumber);let D=this._visibleLines.getStartLineNumber(),O=this._visibleLines.getEndLineNumber();for(let j=c.startLineNumber;j<=c.endLineNumber;j++){if(jO)continue;let F=j===c.startLineNumber?c.startColumn:1,X=j!==c.endLineNumber,K=X?this._context.viewModel.getLineMaxColumn(j):c.endColumn,re=this._visibleLines.getVisibleLine(j).getVisibleRangesForRange(j,F,K,b);if(re){if(o&&jthis._visibleLines.getEndLineNumber())return null;let c=new CLe(this.domNode.domNode,this._textRangeRestingSpot),_=this._visibleLines.getVisibleLine(i).getVisibleRangesForRange(i,o,s,c);return this._updateLineWidthsSlowIfDomDidLayout(c),_}visibleRangeForPosition(i){let o=this._visibleRangesForLineRange(i.lineNumber,i.column,i.column);return o?new dpt(o.outsideRenderedLine,o.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(i){i.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(i){let o=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber(),c=1,_=!0;for(let h=o;h<=s;h++){let b=this._visibleLines.getVisibleLine(h);if(i&&!b.getWidthIsFast()){_=!1;continue}c=Math.max(c,b.getWidth(null))}return _&&o===1&&s===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(c),_}_checkMonospaceFontAssumptions(){let i=-1,o=-1,s=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let _=s;_<=c;_++){let h=this._visibleLines.getVisibleLine(_);if(h.needsMonospaceFontCheck()){let b=h.getWidth(null);b>o&&(o=b,i=_)}}if(i!==-1&&!this._visibleLines.getVisibleLine(i).monospaceAssumptionsAreValid())for(let _=s;_<=c;_++)this._visibleLines.getVisibleLine(_).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(i){if(this._visibleLines.renderLines(i),this._lastRenderedData.setCurrentVisibleRange(i.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){let s=this._horizontalRevealRequest;if(i.startLineNumber<=s.minLineNumber&&s.maxLineNumber<=i.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();let c=this._computeScrollLeftToReveal(s);c&&(this._isViewportWrapping||this._ensureMaxLineWidth(c.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:c.scrollLeft},s.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),w1&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){let s=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let _=s;_<=c;_++)if(this._visibleLines.getVisibleLine(_).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");let o=this._context.viewLayout.getCurrentScrollTop()-i.bigNumbersDelta;this._linesContent.setTop(-o),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(i){let o=Math.ceil(i);this._maxLineWidth0){let Le=_[0].startLineNumber,Je=_[0].endLineNumber;for(let Ye=1,ft=_.length;Yew){if(!O)return-1;Pe=j}else if(h===5||h===6)if(h===6&&b<=j&&F<=D)Pe=b;else{let Le=Math.max(5*this._lineHeight,w*.2),Je=j-Le,Ye=F-w;Pe=Math.max(Ye,Je)}else if(h===1||h===2)if(h===2&&b<=j&&F<=D)Pe=b;else{let Le=(j+F)/2;Pe=Math.max(0,Le-w/2)}else Pe=this._computeMinimumScrolling(b,D,j,F,h===3,h===4);return Pe}_computeScrollLeftToReveal(i){let o=this._context.viewLayout.getCurrentViewport(),s=this._context.configuration.options.get(145),c=o.left,_=c+o.width-s.verticalScrollbarWidth,h=1073741824,b=0;if(i.type==="range"){let D=this._visibleRangesForLineRange(i.lineNumber,i.startColumn,i.endColumn);if(!D)return null;for(let O of D.ranges)h=Math.min(h,Math.round(O.left)),b=Math.max(b,Math.round(O.left+O.width))}else for(let D of i.selections){if(D.startLineNumber!==D.endLineNumber)return null;let O=this._visibleRangesForLineRange(D.startLineNumber,D.startColumn,D.endColumn);if(!O)return null;for(let j of O.ranges)h=Math.min(h,Math.round(j.left)),b=Math.max(b,Math.round(j.left+j.width))}return i.minimalReveal||(h=Math.max(0,h-l.HORIZONTAL_EXTRA_PX),b+=this._revealHorizontalRightPadding),i.type==="selections"&&b-h>o.width?null:{scrollLeft:this._computeMinimumScrolling(c,_,h,b),maxHorizontalOffset:b}}_computeMinimumScrolling(i,o,s,c,_,h){i=i|0,o=o|0,s=s|0,c=c|0,_=!!_,h=!!h;let b=o-i;if(c-so)return Math.max(0,c-b)}else return s;return i}};Qrt.HORIZONTAL_EXTRA_PX=30});var oxi=Ht(()=>{});var Pmt,sxi=Ht(()=>{oxi();Emt();Pmt=class extends bLe{constructor(i){super(),this._context=i;let s=this._context.configuration.options.get(145);this._decorationsLeft=s.decorationsLeft,this._decorationsWidth=s.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let s=this._context.configuration.options.get(145);return this._decorationsLeft=s.decorationsLeft,this._decorationsWidth=s.decorationsWidth,!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_getDecorations(i){var o,s;let c=i.getDecorationsInViewport(),_=[],h=0;for(let b=0,w=c.length;b',w=[];for(let D=o;D<=s;D++){let O=D-o,j=c[O].getDecorations(),F="";for(let X of j){let K='
{});var Lmt,cxi=Ht(()=>{axi();Emt();Lmt=class extends bLe{constructor(i){super(),this._context=i,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){return!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_getDecorations(i){let o=i.getDecorationsInViewport(),s=[],c=0;for(let _=0,h=o.length;_
';_[b]=D}this._renderResult=_}render(i,o){return this._renderResult?this._renderResult[o-i]:""}}});var lxi=Ht(()=>{});var xj,Xti=Ht(()=>{xj=class l{constructor(i,o,s,c){this._rgba8Brand=void 0,this.r=l._clamp(i),this.g=l._clamp(o),this.b=l._clamp(s),this.a=l._clamp(c)}equals(i){return this.r===i.r&&this.g===i.g&&this.b===i.b&&this.a===i.a}static _clamp(i){return i<0?0:i>255?255:i|0}};xj.Empty=new xj(0,0,0,0)});var jAe,Yti=Ht(()=>{Pa();$r();Xti();Fg();jAe=class l extends Ui{static getInstance(){return this._INSTANCE||(this._INSTANCE=fde(new l)),this._INSTANCE}constructor(){super(),this._onDidChange=new fn,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Oh.onDidChange(i=>{i.changedColorMap&&this._updateColorMap()}))}_updateColorMap(){let i=Oh.getColorMap();if(!i){this._colors=[xj.Empty],this._backgroundIsLight=!0;return}this._colors=[xj.Empty];for(let s=1;s=.5,this._onDidChange.fire(void 0)}getColor(i){return(i<1||i>=this._colors.length)&&(i=2),this._colors[i]}backgroundIsLight(){return this._backgroundIsLight}};jAe._INSTANCE=null});var uxi,dxi,Qti=Ht(()=>{uxi=(()=>{let l=[];for(let i=32;i<=126;i++)l.push(i);return l.push(65533),l})(),dxi=(l,i)=>(l-=32,l<0||l>96?i<=2?(l+96)%96:95:l)});var Zrt,fxi=Ht(()=>{Qti();rrt();Zrt=class l{constructor(i,o){this.scale=o,this._minimapCharRendererBrand=void 0,this.charDataNormal=l.soften(i,12/15),this.charDataLight=l.soften(i,50/60)}static soften(i,o){let s=new Uint8ClampedArray(i.length);for(let c=0,_=i.length;c<_;c++)s[c]=$Ne(i[c]*o);return s}renderChar(i,o,s,c,_,h,b,w,D,O,j){let F=1*this.scale,X=2*this.scale,K=j?1:X;if(o+F>i.width||s+K>i.height){console.warn("bad render request outside image data");return}let re=O?this.charDataLight:this.charDataNormal,Pe=dxi(c,D),Le=i.width*4,Je=b.r,Ye=b.g,ft=b.b,Ct=_.r-Je,Et=_.g-Ye,St=_.b-ft,Mi=Math.max(h,w),zi=i.data,Vr=Pe*F*X,sn=s*Le+o*4;for(let gr=0;gri.width||s+j>i.height){console.warn("bad render request outside image data");return}let F=i.width*4,X=.5*(_/255),K=h.r,re=h.g,Pe=h.b,Le=c.r-K,Je=c.g-re,Ye=c.b-Pe,ft=K+Le*X,Ct=re+Je*X,Et=Pe+Ye*X,St=Math.max(_,b),Mi=i.data,zi=s*F+o*4;for(let Vr=0;Vr{ude();_xi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},pxi=l=>{let i=new Uint8ClampedArray(l.length/2);for(let o=0;o>1]=_xi[l[o]]<<4|_xi[l[o+1]]&15;return i},Zti={1:PF(()=>pxi("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:PF(()=>pxi("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))}});var Omt,hxi=Ht(()=>{fxi();Qti();mxi();rrt();Omt=class l{static create(i,o){if(this.lastCreated&&i===this.lastCreated.scale&&o===this.lastFontFamily)return this.lastCreated;let s;return Zti[i]?s=new Zrt(Zti[i](),i):s=l.createFromSampleData(l.createSampleData(o).data,i),this.lastFontFamily=o,this.lastCreated=s,s}static createSampleData(i){let o=document.createElement("canvas"),s=o.getContext("2d");o.style.height="16px",o.height=16,o.width=96*10,o.style.width=96*10+"px",s.fillStyle="#ffffff",s.font=`bold 16px ${i}`,s.textBaseline="middle";let c=0;for(let _ of uxi)s.fillText(String.fromCharCode(_),c,16/2),c+=10;return s.getImageData(0,0,96*10,16)}static createFromSampleData(i,o){if(i.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");let c=l._downsample(i,o);return new Zrt(c,o)}static _downsampleChar(i,o,s,c,_){let h=1*_,b=2*_,w=c,D=0;for(let O=0;O0){let D=255/w;for(let O=0;O{uf();gxi=Ny?'"Segoe WPC", "Segoe UI", sans-serif':uu?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif'});var hBi,gBi,Fmt,eii,kLe,Mmt,tii,Rmt,Bmt,iii,jmt,vxi=Ht(()=>{lxi();va();Tw();U6e();$r();uf();Bl();pmt();gP();FC();ca();Xti();Yti();tW();Sv();hg();JF();hxi();ude();UD();yxi();hBi=140,gBi=2,Fmt=class l{constructor(i,o,s){let c=i.options,_=c.get(143),h=c.get(145),b=h.minimap,w=c.get(50),D=c.get(73);this.renderMinimap=b.renderMinimap,this.size=D.size,this.minimapHeightIsEditorHeight=b.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=c.get(105),this.paddingTop=c.get(84).top,this.paddingBottom=c.get(84).bottom,this.showSlider=D.showSlider,this.autohide=D.autohide,this.pixelRatio=_,this.typicalHalfwidthCharacterWidth=w.typicalHalfwidthCharacterWidth,this.lineHeight=c.get(67),this.minimapLeft=b.minimapLeft,this.minimapWidth=b.minimapWidth,this.minimapHeight=h.height,this.canvasInnerWidth=b.minimapCanvasInnerWidth,this.canvasInnerHeight=b.minimapCanvasInnerHeight,this.canvasOuterWidth=b.minimapCanvasOuterWidth,this.canvasOuterHeight=b.minimapCanvasOuterHeight,this.isSampling=b.minimapIsSampling,this.editorHeight=h.height,this.fontScale=b.minimapScale,this.minimapLineHeight=b.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=gxi,this.sectionHeaderFontSize=D.sectionHeaderFontSize*_,this.sectionHeaderLetterSpacing=D.sectionHeaderLetterSpacing,this.sectionHeaderFontColor=l._getSectionHeaderColor(o,s.getColor(1)),this.charRenderer=PF(()=>Omt.create(this.fontScale,w.fontFamily)),this.defaultBackgroundColor=s.getColor(2),this.backgroundColor=l._getMinimapBackground(o,this.defaultBackgroundColor),this.foregroundAlpha=l._getMinimapForegroundOpacity(o)}static _getMinimapBackground(i,o){let s=i.getColor(F1i);return s?new xj(s.rgba.r,s.rgba.g,s.rgba.b,Math.round(255*s.rgba.a)):o}static _getMinimapForegroundOpacity(i){let o=i.getColor(M1i);return o?xj._clamp(Math.round(255*o.rgba.a)):255}static _getSectionHeaderColor(i,o){let s=i.getColor(pL);return s?new xj(s.rgba.r,s.rgba.g,s.rgba.b,Math.round(255*s.rgba.a)):o}equals(i){return this.renderMinimap===i.renderMinimap&&this.size===i.size&&this.minimapHeightIsEditorHeight===i.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===i.scrollBeyondLastLine&&this.paddingTop===i.paddingTop&&this.paddingBottom===i.paddingBottom&&this.showSlider===i.showSlider&&this.autohide===i.autohide&&this.pixelRatio===i.pixelRatio&&this.typicalHalfwidthCharacterWidth===i.typicalHalfwidthCharacterWidth&&this.lineHeight===i.lineHeight&&this.minimapLeft===i.minimapLeft&&this.minimapWidth===i.minimapWidth&&this.minimapHeight===i.minimapHeight&&this.canvasInnerWidth===i.canvasInnerWidth&&this.canvasInnerHeight===i.canvasInnerHeight&&this.canvasOuterWidth===i.canvasOuterWidth&&this.canvasOuterHeight===i.canvasOuterHeight&&this.isSampling===i.isSampling&&this.editorHeight===i.editorHeight&&this.fontScale===i.fontScale&&this.minimapLineHeight===i.minimapLineHeight&&this.minimapCharWidth===i.minimapCharWidth&&this.sectionHeaderFontSize===i.sectionHeaderFontSize&&this.sectionHeaderLetterSpacing===i.sectionHeaderLetterSpacing&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(i.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(i.backgroundColor)&&this.foregroundAlpha===i.foregroundAlpha}},eii=class l{constructor(i,o,s,c,_,h,b,w,D){this.scrollTop=i,this.scrollHeight=o,this.sliderNeeded=s,this._computedSliderRatio=c,this.sliderTop=_,this.sliderHeight=h,this.topPaddingLineCount=b,this.startLineNumber=w,this.endLineNumber=D}getDesiredScrollTopFromDelta(i){return Math.round(this.scrollTop+i/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(i){return Math.round((i-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(i){let o=Math.max(this.startLineNumber,i.startLineNumber),s=Math.min(this.endLineNumber,i.endLineNumber);return o>s?null:[o,s]}getYForLineNumber(i,o){return+(i-this.startLineNumber+this.topPaddingLineCount)*o}static create(i,o,s,c,_,h,b,w,D,O,j){let F=i.pixelRatio,X=i.minimapLineHeight,K=Math.floor(i.canvasInnerHeight/X),re=i.lineHeight;if(i.minimapHeightIsEditorHeight){let Et=w*i.lineHeight+i.paddingTop+i.paddingBottom;i.scrollBeyondLastLine&&(Et+=Math.max(0,_-i.lineHeight-i.paddingBottom));let St=Math.max(1,Math.floor(_*_/Et)),Mi=Math.max(0,i.minimapHeight-St),zi=Mi/(O-_),Vr=D*zi,sn=Mi>0,gr=Math.floor(i.canvasInnerHeight/i.minimapLineHeight),er=Math.floor(i.paddingTop/i.lineHeight);return new l(D,O,sn,zi,Vr,St,er,1,Math.min(b,gr))}let Pe;if(h&&s!==b){let Et=s-o+1;Pe=Math.floor(Et*X/F)}else{let Et=_/re;Pe=Math.floor(Et*X/F)}let Le=Math.floor(i.paddingTop/re),Je=Math.floor(i.paddingBottom/re);if(i.scrollBeyondLastLine){let Et=_/re;Je=Math.max(Je,Et-1)}let Ye;if(Je>0){let Et=_/re;Ye=(Le+b+Je-Et-1)*X/F}else Ye=Math.max(0,(Le+b)*X/F-Pe);Ye=Math.min(i.minimapHeight-Pe,Ye);let ft=Ye/(O-_),Ct=D*ft;if(K>=Le+b+Je){let Et=Ye>0;return new l(D,O,Et,ft,Ct,Pe,Le,1,b)}else{let Et;o>1?Et=o+Le:Et=Math.max(1,D/re);let St,Mi=Math.max(1,Math.floor(Et-Ct*F/X));MiD&&(Mi=Math.min(Mi,j.startLineNumber),St=Math.max(St,j.topPaddingLineCount)),j.scrollTop=i.paddingTop?sn=(o-Mi+St+Vr)*X/F:sn=D/i.paddingTop*(St+Vr)*X/F,new l(D,O,!0,ft,sn,Pe,St,Mi,zi)}}},kLe=class{constructor(i){this.dy=i}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}};kLe.INVALID=new kLe(-1);Mmt=class{constructor(i,o,s){this.renderedLayout=i,this._imageData=o,this._renderedLines=new Krt(()=>kLe.INVALID),this._renderedLines._set(i.startLineNumber,s)}linesEquals(i){if(!this.scrollEquals(i))return!1;let s=this._renderedLines._get().lines;for(let c=0,_=s.length;c<_;c++)if(s[c].dy===-1)return!1;return!0}scrollEquals(i){return this.renderedLayout.startLineNumber===i.startLineNumber&&this.renderedLayout.endLineNumber===i.endLineNumber}_get(){let i=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:i.rendLineNumberStart,lines:i.lines}}onLinesChanged(i,o){return this._renderedLines.onLinesChanged(i,o)}onLinesDeleted(i,o){this._renderedLines.onLinesDeleted(i,o)}onLinesInserted(i,o){this._renderedLines.onLinesInserted(i,o)}onTokensChanged(i){return this._renderedLines.onTokensChanged(i)}},tii=class l{constructor(i,o,s,c){this._backgroundFillData=l._createBackgroundFillData(o,s,c),this._buffers=[i.createImageData(o,s),i.createImageData(o,s)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;let i=this._buffers[this._lastUsedBuffer];return i.data.set(this._backgroundFillData),i}static _createBackgroundFillData(i,o,s){let c=s.r,_=s.g,h=s.b,b=s.a,w=new Uint8ClampedArray(i*o*4),D=0;for(let O=0;O1){for(let Le=0,Je=c-1;Le0&&this.minimapLines[s-1]>=i;)s--;let c=this.modelLineToMinimapLine(o)-1;for(;c+1o)return null}return[s+1,c+1]}decorationLineRangeToMinimapLineRange(i,o){let s=this.modelLineToMinimapLine(i),c=this.modelLineToMinimapLine(o);return i!==o&&c===s&&(c===this.minimapLines.length?s>1&&s--:c++),[s,c]}onLinesDeleted(i){let o=i.toLineNumber-i.fromLineNumber+1,s=this.minimapLines.length,c=0;for(let _=this.minimapLines.length-1;_>=0&&!(this.minimapLines[_]=0&&!(this.minimapLines[s]0,scrollWidth:i.scrollWidth,scrollHeight:i.scrollHeight,viewportStartLineNumber:o,viewportEndLineNumber:s,viewportStartLineNumberVerticalOffset:i.getVerticalOffsetForLineNumber(o),scrollTop:i.scrollTop,scrollLeft:i.scrollLeft,viewportWidth:i.viewportWidth,viewportHeight:i.viewportHeight};this._actual.render(c)}_recreateLineSampling(){this._minimapSelections=null;let i=!!this._samplingState,[o,s]=Rmt.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=o,i&&this._samplingState)for(let c of s)switch(c.type){case"deleted":this._actual.onLinesDeleted(c.deleteFromLineNumber,c.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(c.insertFromLineNumber,c.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(i){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[i-1]):this._context.viewModel.getLineContent(i)}getLineMaxColumn(i){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[i-1]):this._context.viewModel.getLineMaxColumn(i)}getMinimapLinesRenderingData(i,o,s){if(this._samplingState){let c=[];for(let _=0,h=o-i+1;_{var _;return!(!((_=c.options.minimap)===null||_===void 0)&&_.sectionHeaderStyle)});if(this._samplingState){let c=[];for(let _ of s){if(!_.options.minimap)continue;let h=_.range,b=this._samplingState.modelLineToMinimapLine(h.startLineNumber),w=this._samplingState.modelLineToMinimapLine(h.endLineNumber);c.push(new R6e(new Vt(b,h.startColumn,w,h.endColumn),_.options))}return c}return s}getSectionHeaderDecorationsInViewport(i,o){let s=this.options.minimapLineHeight,_=this.options.sectionHeaderFontSize/s;return i=Math.floor(Math.max(1,i-_)),this._getMinimapDecorationsInViewport(i,o).filter(h=>{var b;return!!(!((b=h.options.minimap)===null||b===void 0)&&b.sectionHeaderStyle)})}_getMinimapDecorationsInViewport(i,o){let s;if(this._samplingState){let c=this._samplingState.minimapLines[i-1],_=this._samplingState.minimapLines[o-1];s=new Vt(c,1,_,this._context.viewModel.getLineMaxColumn(_))}else s=new Vt(i,1,o,this._context.viewModel.getLineMaxColumn(o));return this._context.viewModel.getMinimapDecorationsInRange(s)}getSectionHeaderText(i,o){var s;let c=(s=i.options.minimap)===null||s===void 0?void 0:s.sectionHeaderText;if(!c)return null;let _=this._sectionHeaderCache.get(c);if(_)return _;let h=o(c);return this._sectionHeaderCache.set(c,h),h}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(i){this._samplingState&&(i=this._samplingState.minimapLines[i-1]),this._context.viewModel.revealRange("mouse",!1,new Vt(i,1,i,1),1,0)}setScrollTop(i){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:i},1)}},iii=class l extends Ui{constructor(i,o){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=i,this._model=o,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(Kei),this._domNode=cf(document.createElement("div")),GD.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=cf(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=cf(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=cf(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=cf(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=cf(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=Cm(this._domNode.domNode,$o.POINTER_DOWN,s=>{if(s.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(s.button===0&&this._lastRenderData){let D=Qm(this._slider.domNode),O=D.top+D.height/2;this._startSliderDragging(s,O,this._lastRenderData.renderedLayout)}return}let _=this._model.options.minimapLineHeight,h=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*s.offsetY,w=Math.floor(h/_)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;w=Math.min(w,this._model.getLineCount()),this._model.revealLineNumber(w)}),this._sliderPointerMoveMonitor=new dj,this._sliderPointerDownListener=Cm(this._slider.domNode,$o.POINTER_DOWN,s=>{s.preventDefault(),s.stopPropagation(),s.button===0&&this._lastRenderData&&this._startSliderDragging(s,s.pageY,this._lastRenderData.renderedLayout)}),this._gestureDisposable=Ry.addTarget(this._domNode.domNode),this._sliderTouchStartListener=Tr(this._domNode.domNode,Zm.Start,s=>{s.preventDefault(),s.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(s))},{passive:!1}),this._sliderTouchMoveListener=Tr(this._domNode.domNode,Zm.Change,s=>{s.preventDefault(),s.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(s)},{passive:!1}),this._sliderTouchEndListener=Cm(this._domNode.domNode,Zm.End,s=>{s.preventDefault(),s.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(i,o,s){if(!i.target||!(i.target instanceof Element))return;let c=i.pageX;this._slider.toggleClassName("active",!0);let _=(h,b)=>{let w=Qm(this._domNode.domNode),D=Math.min(Math.abs(b-c),Math.abs(b-w.left),Math.abs(b-w.left-w.width));if(Ny&&D>hBi){this._model.setScrollTop(s.scrollTop);return}let O=h-o;this._model.setScrollTop(s.getDesiredScrollTopFromDelta(O))};i.pageY!==o&&_(i.pageY,c),this._sliderPointerMoveMonitor.startMonitoring(i.target,i.pointerId,i.buttons,h=>_(h.pageY,h.pageX),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(i){let o=this._domNode.domNode.getBoundingClientRect().top,s=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(i.pageY-o);this._model.setScrollTop(s)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){let i=["minimap"];return this._model.options.showSlider==="always"?i.push("slider-always"):i.push("slider-mouseover"),this._model.options.autohide&&i.push("autohide"),i.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new tii(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(i,o){return this._lastRenderData?this._lastRenderData.onLinesChanged(i,o):!1}onLinesDeleted(i,o){var s;return(s=this._lastRenderData)===null||s===void 0||s.onLinesDeleted(i,o),!0}onLinesInserted(i,o){var s;return(s=this._lastRenderData)===null||s===void 0||s.onLinesInserted(i,o),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(Kei),this._renderDecorations=!0,!0}onTokensChanged(i){return this._lastRenderData?this._lastRenderData.onTokensChanged(i):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(i){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}i.scrollLeft+i.viewportWidth>=i.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");let s=eii.create(this._model.options,i.viewportStartLineNumber,i.viewportEndLineNumber,i.viewportStartLineNumberVerticalOffset,i.viewportHeight,i.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),i.scrollTop,i.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(s.sliderNeeded?"block":"none"),this._slider.setTop(s.sliderTop),this._slider.setHeight(s.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(s.sliderHeight),this.renderDecorations(s),this._lastRenderData=this.renderLines(s)}renderDecorations(i){if(this._renderDecorations){this._renderDecorations=!1;let o=this._model.getSelections();o.sort(Vt.compareRangesUsingStarts);let s=this._model.getMinimapDecorationsInViewport(i.startLineNumber,i.endLineNumber);s.sort((F,X)=>(F.options.zIndex||0)-(X.options.zIndex||0));let{canvasInnerWidth:c,canvasInnerHeight:_}=this._model.options,h=this._model.options.minimapLineHeight,b=this._model.options.minimapCharWidth,w=this._model.getOptions().tabSize,D=this._decorationsCanvas.domNode.getContext("2d");D.clearRect(0,0,c,_);let O=new jmt(i.startLineNumber,i.endLineNumber,!1);this._renderSelectionLineHighlights(D,o,O,i,h),this._renderDecorationsLineHighlights(D,s,O,i,h);let j=new jmt(i.startLineNumber,i.endLineNumber,null);this._renderSelectionsHighlights(D,o,j,i,h,w,b,c),this._renderDecorationsHighlights(D,s,j,i,h,w,b,c),this._renderSectionHeaders(i)}}_renderSelectionLineHighlights(i,o,s,c,_){if(!this._selectionColor||this._selectionColor.isTransparent())return;i.fillStyle=this._selectionColor.transparent(.5).toString();let h=0,b=0;for(let w of o){let D=c.intersectWithViewport(w);if(!D)continue;let[O,j]=D;for(let K=O;K<=j;K++)s.set(K,!0);let F=c.getYForLineNumber(O,_),X=c.getYForLineNumber(j,_);b>=F||(b>h&&i.fillRect(EG,h,i.canvas.width,b-h),h=F),b=X}b>h&&i.fillRect(EG,h,i.canvas.width,b-h)}_renderDecorationsLineHighlights(i,o,s,c,_){let h=new Map;for(let b=o.length-1;b>=0;b--){let w=o[b],D=w.options.minimap;if(!D||D.position!==1)continue;let O=c.intersectWithViewport(w.range);if(!O)continue;let[j,F]=O,X=D.getColor(this._theme.value);if(!X||X.isTransparent())continue;let K=h.get(X.toString());K||(K=X.transparent(.5).toString(),h.set(X.toString(),K)),i.fillStyle=K;for(let re=j;re<=F;re++){if(s.has(re))continue;s.set(re,!0);let Pe=c.getYForLineNumber(j,_);i.fillRect(EG,Pe,i.canvas.width,_)}}}_renderSelectionsHighlights(i,o,s,c,_,h,b,w){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(let D of o){let O=c.intersectWithViewport(D);if(!O)continue;let[j,F]=O;for(let X=j;X<=F;X++)this.renderDecorationOnLine(i,s,D,this._selectionColor,c,X,_,_,h,b,w)}}_renderDecorationsHighlights(i,o,s,c,_,h,b,w){for(let D of o){let O=D.options.minimap;if(!O)continue;let j=c.intersectWithViewport(D.range);if(!j)continue;let[F,X]=j,K=O.getColor(this._theme.value);if(!(!K||K.isTransparent()))for(let re=F;re<=X;re++)switch(O.position){case 1:this.renderDecorationOnLine(i,s,D.range,K,c,re,_,_,h,b,w);continue;case 2:{let Pe=c.getYForLineNumber(re,_);this.renderDecoration(i,K,2,Pe,gBi,_);continue}}}}renderDecorationOnLine(i,o,s,c,_,h,b,w,D,O,j){let F=_.getYForLineNumber(h,w);if(F+b<0||F>this._model.options.canvasInnerHeight)return;let{startLineNumber:X,endLineNumber:K}=s,re=X===h?s.startColumn:1,Pe=K===h?s.endColumn:this._model.getLineMaxColumn(h),Le=this.getXOffsetForPosition(o,h,re,D,O,j),Je=this.getXOffsetForPosition(o,h,Pe,D,O,j);this.renderDecoration(i,c,Le,F,Je-Le,b)}getXOffsetForPosition(i,o,s,c,_,h){if(s===1)return EG;if((s-1)*_>=h)return h;let w=i.get(o);if(!w){let D=this._model.getLineContent(o);w=[EG];let O=EG;for(let j=1;j=h){w[j]=h;break}w[j]=K,O=K}i.set(o,w)}return s-1Pe.range.startLineNumber-Le.range.startLineNumber);let re=l._fitSectionHeader.bind(null,X,b-EG);for(let Pe of K){let Le=i.getYForLineNumber(Pe.range.startLineNumber,s)+c,Je=Le-c,Ye=Je+2,ft=this._model.getSectionHeaderText(Pe,re);l._renderSectionLabel(X,ft,((o=Pe.options.minimap)===null||o===void 0?void 0:o.sectionHeaderStyle)===2,D,j,b,Je,h,Le,Ye)}}static _fitSectionHeader(i,o,s){if(!s)return s;let c="\u2026",_=i.measureText(s).width,h=i.measureText(c).width;if(_<=o||_<=h)return s;let b=s.length,w=_/s.length,D=Math.floor((o-h)/w)-1,O=Math.ceil(D/2);for(;O>0&&/\s/.test(s[O-1]);)--O;return s.substring(0,O)+c+s.substring(b-(D-O))}static _renderSectionLabel(i,o,s,c,_,h,b,w,D,O){o&&(i.fillStyle=c,i.fillRect(0,b,h,w),i.fillStyle=_,i.fillText(o,EG,D)),s&&(i.beginPath(),i.moveTo(0,O),i.lineTo(h,O),i.closePath(),i.stroke())}renderLines(i){let o=i.startLineNumber,s=i.endLineNumber,c=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(i)){let rs=this._lastRenderData._get();return new Mmt(i,rs.imageData,rs.lines)}let _=this._getBuffer();if(!_)return null;let[h,b,w]=l._renderUntouchedLines(_,i.topPaddingLineCount,o,s,c,this._lastRenderData),D=this._model.getMinimapLinesRenderingData(o,s,w),O=this._model.getOptions().tabSize,j=this._model.options.defaultBackgroundColor,F=this._model.options.backgroundColor,X=this._model.options.foregroundAlpha,K=this._model.tokensColorTracker,re=K.backgroundIsLight(),Pe=this._model.options.renderMinimap,Le=this._model.options.charRenderer(),Je=this._model.options.fontScale,Ye=this._model.options.minimapCharWidth,Ct=(Pe===1?2:3)*Je,Et=c>Ct?Math.floor((c-Ct)/2):0,St=F.a/255,Mi=new xj(Math.round((F.r-j.r)*St+j.r),Math.round((F.g-j.g)*St+j.g),Math.round((F.b-j.b)*St+j.b),255),zi=i.topPaddingLineCount*c,Vr=[];for(let rs=0,Ls=s-o+1;rs=0&&snJe)return;let gr=Pe.charCodeAt(Ct);if(gr===9){let er=F-(Ct+Et)%F;Et+=er-1,ft+=er*h}else if(gr===32)ft+=h;else{let er=ej(gr)?2:1;for(let Di=0;DiJe)return}}}}},jmt=class{constructor(i,o,s){this._startLineNumber=i,this._endLineNumber=o,this._defaultValue=s,this._values=[];for(let c=0,_=this._endLineNumber-this._startLineNumber+1;c<_;c++)this._values[c]=s}has(i){return this.get(i)!==this._defaultValue}set(i,o){ithis._endLineNumber||(this._values[i-this._startLineNumber]=o)}get(i){return ithis._endLineNumber?this._defaultValue:this._values[i-this._startLineNumber]}}});var bxi=Ht(()=>{});var Wmt,Sxi=Ht(()=>{bxi();Tw();gP();va();Wmt=class extends W1{constructor(i,o){super(i),this._viewDomNode=o;let c=this._context.configuration.options.get(145);this._widgets={},this._verticalScrollbarWidth=c.verticalScrollbarWidth,this._minimapWidth=c.minimap.minimapWidth,this._horizontalScrollbarHeight=c.horizontalScrollbarHeight,this._editorHeight=c.height,this._editorWidth=c.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=cf(document.createElement("div")),GD.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=cf(document.createElement("div")),GD.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(i){let s=this._context.configuration.options.get(145);return this._verticalScrollbarWidth=s.verticalScrollbarWidth,this._minimapWidth=s.minimap.minimapWidth,this._horizontalScrollbarHeight=s.horizontalScrollbarHeight,this._editorHeight=s.height,this._editorWidth=s.width,!0}addWidget(i){let o=cf(i.getDomNode());this._widgets[i.getId()]={widget:i,preference:null,domNode:o},o.setPosition("absolute"),o.setAttribute("widgetId",i.getId()),i.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(o):this._domNode.appendChild(o),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(i,o){let s=this._widgets[i.getId()],c=o?o.preference:null,_=o?.stackOridinal;return s.preference===c&&s.stack===_?(this._updateMaxMinWidth(),!1):(s.preference=c,s.stack=_,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(i){let o=i.getId();if(this._widgets.hasOwnProperty(o)){let c=this._widgets[o].domNode.domNode;delete this._widgets[o],c.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){var i,o;let s=0,c=Object.keys(this._widgets);for(let _=0,h=c.length;_0);o.sort((c,_)=>(this._widgets[c].stack||0)-(this._widgets[_].stack||0));for(let c=0,_=o.length;c<_;c++){let h=o[c];this._renderWidget(this._widgets[h],s)}}}});var nii,zmt,xxi=Ht(()=>{Tw();j1();gP();Ll();Fg();bj();tW();su();nii=class{constructor(i,o){let s=i.options;this.lineHeight=s.get(67),this.pixelRatio=s.get(143),this.overviewRulerLanes=s.get(83),this.renderBorder=s.get(82);let c=o.getColor(_Si);this.borderColor=c?c.toString():null,this.hideCursor=s.get(59);let _=o.getColor(hW);this.cursorColorSingle=_?_.transparent(.7).toString():null;let h=o.getColor(Rpt);this.cursorColorPrimary=h?h.transparent(.7).toString():null;let b=o.getColor(Bpt);this.cursorColorSecondary=b?b.transparent(.7).toString():null,this.themeType=o.type;let w=s.get(73),D=w.enabled,O=w.side,j=o.getColor(pSi),F=Oh.getDefaultBackground();j?this.backgroundColor=j:D&&O==="right"?this.backgroundColor=F:this.backgroundColor=null;let K=s.get(145).overviewRuler;this.top=K.top,this.right=K.right,this.domWidth=K.width,this.domHeight=K.height,this.overviewRulerLanes===0?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);let[re,Pe]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=re,this.w=Pe}_initLanes(i,o,s){let c=o-i;if(s>=3){let _=Math.floor(c/3),h=Math.floor(c/3),b=c-_-h,w=i,D=w+_,O=w+_+b;return[[0,w,D,w,O,w,D,w],[0,_,b,_+b,h,_+b+h,b+h,_+b+h]]}else if(s===2){let _=Math.floor(c/2),h=c-_,b=i,w=b+_;return[[0,b,b,b,w,b,b,b],[0,_,_,_,h,_+h,_+h,_+h]]}else{let _=i,h=c;return[[0,_,_,_,_,_,_,_],[0,h,h,h,h,h,h,h]]}}equals(i){return this.lineHeight===i.lineHeight&&this.pixelRatio===i.pixelRatio&&this.overviewRulerLanes===i.overviewRulerLanes&&this.renderBorder===i.renderBorder&&this.borderColor===i.borderColor&&this.hideCursor===i.hideCursor&&this.cursorColorSingle===i.cursorColorSingle&&this.cursorColorPrimary===i.cursorColorPrimary&&this.cursorColorSecondary===i.cursorColorSecondary&&this.themeType===i.themeType&&Kr.equals(this.backgroundColor,i.backgroundColor)&&this.top===i.top&&this.right===i.right&&this.domWidth===i.domWidth&&this.domHeight===i.domHeight&&this.canvasWidth===i.canvasWidth&&this.canvasHeight===i.canvasHeight}},zmt=class extends W1{constructor(i){super(i),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=cf(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Oh.onDidChange(o=>{o.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[{position:new Cn(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(i){let o=new nii(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(o)?!1:(this._settings=o,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,i&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(i){return this._updateSettings(!1)?this._markRenderingIsNeeded():!1}onCursorStateChanged(i){this._cursorPositions=[];for(let o=0,s=i.selections.length;o1&&(c=o===0?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:i.selections[o].getPosition(),color:c})}return this._cursorPositions.sort((o,s)=>Cn.compare(o.position,s.position)),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(i){return i.affectsOverviewRuler?this._markRenderingIsMaybeNeeded():!1}onFlushed(i){return this._markRenderingIsNeeded()}onScrollChanged(i){return i.scrollHeightChanged?this._markRenderingIsNeeded():!1}onZonesChanged(i){return this._markRenderingIsNeeded()}onThemeChanged(i){return this._updateSettings(!1)?this._markRenderingIsNeeded():!1}getDomNode(){return this._domNode.domNode}prepareRender(i){}render(i){this._render(),this._actualShouldRender=0}_render(){let i=this._settings.backgroundColor;if(this._settings.overviewRulerLanes===0){this._domNode.setBackgroundColor(i?Kr.Format.CSS.formatHexA(i):""),this._domNode.setDisplay("none");return}let o=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(o.sort(oAe.compareByRenderingProps),this._actualShouldRender===1&&!oAe.equalsArr(this._renderedDecorations,o)&&(this._actualShouldRender=2),this._actualShouldRender===1&&!Op(this._renderedCursorPositions,this._cursorPositions,(K,re)=>K.position.lineNumber===re.position.lineNumber&&K.color===re.color)&&(this._actualShouldRender=2),this._actualShouldRender===1)return;this._renderedDecorations=o,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");let s=this._settings.canvasWidth,c=this._settings.canvasHeight,_=this._settings.lineHeight,h=this._context.viewLayout,b=this._context.viewLayout.getScrollHeight(),w=c/b,D=6*this._settings.pixelRatio|0,O=D/2|0,j=this._domNode.domNode.getContext("2d");i?i.isOpaque()?(j.fillStyle=Kr.Format.CSS.formatHexA(i),j.fillRect(0,0,s,c)):(j.clearRect(0,0,s,c),j.fillStyle=Kr.Format.CSS.formatHexA(i),j.fillRect(0,0,s,c)):j.clearRect(0,0,s,c);let F=this._settings.x,X=this._settings.w;for(let K of o){let re=K.color,Pe=K.data;j.fillStyle=re;let Le=0,Je=0,Ye=0;for(let ft=0,Ct=Pe.length/3;ftc&&(gr=c-O),zi=gr-O,Vr=gr+O}zi>Ye+1||Et!==Le?(ft!==0&&j.fillRect(F[Le],Je,X[Le],Ye-Je),Le=Et,Je=zi,Ye=Vr):Vr>Ye&&(Ye=Vr)}j.fillRect(F[Le],Je,X[Le],Ye-Je)}if(!this._settings.hideCursor){let K=2*this._settings.pixelRatio|0,re=K/2|0,Pe=this._settings.x[7],Le=this._settings.w[7],Je=-100,Ye=-100,ft=null;for(let Ct=0,Et=this._cursorPositions.length;Ctc&&(zi=c-re);let Vr=zi-re,sn=Vr+K;Vr>Ye+1||St!==ft?(Ct!==0&&ft&&j.fillRect(Pe,Je,Le,Ye-Je),Je=Vr,Ye=sn):sn>Ye&&(Ye=sn),ft=St,j.fillStyle=St}ft&&j.fillRect(Pe,Je,Le,Ye-Je)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(j.beginPath(),j.lineWidth=1,j.strokeStyle=this._settings.borderColor,j.moveTo(0,0),j.lineTo(0,c),j.stroke(),j.moveTo(0,0),j.lineTo(s,0),j.stroke())}}});var Vmt,eot,Hmt,rii=Ht(()=>{Vmt=class{constructor(i,o,s){this._colorZoneBrand=void 0,this.from=i|0,this.to=o|0,this.colorId=s|0}static compare(i,o){return i.colorId===o.colorId?i.from===o.from?i.to-o.to:i.from-o.from:i.colorId-o.colorId}},eot=class{constructor(i,o,s,c){this._overviewRulerZoneBrand=void 0,this.startLineNumber=i,this.endLineNumber=o,this.heightInLines=s,this.color=c,this._colorZone=null}static compare(i,o){return i.color===o.color?i.startLineNumber===o.startLineNumber?i.heightInLines===o.heightInLines?i.endLineNumber-o.endLineNumber:i.heightInLines-o.heightInLines:i.startLineNumber-o.startLineNumber:i.colors&&(re=s-Pe);let Le=O.color,Je=this._color2Id[Le];Je||(Je=++this._lastAssignedId,this._color2Id[Le]=Je,this._id2Color[Je]=Le);let Ye=new Vmt(re-Pe,re+Pe,Je);O.setColorZone(Ye),b.push(Ye)}return this._colorZonesInvalid=!1,b.sort(Vmt.compare),b}}});var Umt,Cxi=Ht(()=>{Tw();rii();rLe();Umt=class extends uW{constructor(i,o){super(),this._context=i;let s=this._context.configuration.options;this._domNode=cf(document.createElement("canvas")),this._domNode.setClassName(o),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new Hmt(c=>this._context.viewLayout.getVerticalOffsetForLineNumber(c)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(s.get(67)),this._zoneManager.setPixelRatio(s.get(143)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(i){let o=this._context.configuration.options;return i.hasChanged(67)&&(this._zoneManager.setLineHeight(o.get(67)),this._render()),i.hasChanged(143)&&(this._zoneManager.setPixelRatio(o.get(143)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(i){return this._render(),!0}onScrollChanged(i){return i.scrollHeightChanged&&(this._zoneManager.setOuterHeight(i.scrollHeight),this._render()),!0}onZonesChanged(i){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(i){this._domNode.setTop(i.top),this._domNode.setRight(i.right);let o=!1;o=this._zoneManager.setDOMWidth(i.width)||o,o=this._zoneManager.setDOMHeight(i.height)||o,o&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(i){this._zoneManager.setZones(i),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;let i=this._zoneManager.getCanvasWidth(),o=this._zoneManager.getCanvasHeight(),s=this._zoneManager.resolveColorZones(),c=this._zoneManager.getId2Color(),_=this._domNode.domNode.getContext("2d");return _.clearRect(0,0,i,o),s.length>0&&this._renderOneLane(_,s,c,i),!0}_renderOneLane(i,o,s,c){let _=0,h=0,b=0;for(let w of o){let D=w.colorId,O=w.from,j=w.to;D!==_?(i.fillRect(0,h,c,b-h),_=D,i.fillStyle=s[_],h=O,b=j):b>=O?b=Math.max(b,j):(i.fillRect(0,h,c,b-h),h=O,b=j)}i.fillRect(0,h,c,b-h)}}});var kxi=Ht(()=>{});var Jmt,wxi=Ht(()=>{kxi();Tw();gP();Jmt=class extends W1{constructor(i){super(i),this.domNode=cf(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];let o=this._context.configuration.options;this._rulers=o.get(102),this._typicalHalfwidthCharacterWidth=o.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(i){let o=this._context.configuration.options;return this._rulers=o.get(102),this._typicalHalfwidthCharacterWidth=o.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(i){return i.scrollHeightChanged}prepareRender(i){}_ensureRulersCount(){let i=this._renderedRulers.length,o=this._rulers.length;if(i===o)return;if(i0;){let b=cf(document.createElement("div"));b.setClassName("view-ruler"),b.setWidth(_),this.domNode.appendChild(b),this._renderedRulers.push(b),h--}return}let s=i-o;for(;s>0;){let c=this._renderedRulers.pop();this.domNode.removeChild(c),s--}}render(i){this._ensureRulersCount();for(let o=0,s=this._rulers.length;o{});var qmt,Exi=Ht(()=>{Txi();Tw();gP();qmt=class extends W1{constructor(i){super(i),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;let s=this._context.configuration.options.get(103);this._useShadows=s.useShadows,this._domNode=cf(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){let i=this._useShadows&&this._scrollTop>0;return this._shouldShow!==i?(this._shouldShow=i,!0):!1}getDomNode(){return this._domNode}_updateWidth(){let o=this._context.configuration.options.get(145);o.minimap.renderMinimap===0||o.minimap.minimapWidth>0&&o.minimap.minimapLeft===0?this._width=o.width:this._width=o.width-o.verticalScrollbarWidth}onConfigurationChanged(i){let s=this._context.configuration.options.get(103);return this._useShadows=s.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(i){return this._scrollTop=i.scrollTop,this._updateShouldShow()}prepareRender(i){}render(i){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}});var Dxi=Ht(()=>{});function yBi(l){return new oii(l)}function vBi(l){return new sii(l.lineNumber,l.ranges.map(yBi))}function $mt(l){return l<0?-l:l}var oii,sii,XG,Ixi=Ht(()=>{Dxi();rfe();Sv();_g();oii=class{constructor(i){this.left=i.left,this.width=i.width,this.startStyle=null,this.endStyle=null}},sii=class{constructor(i,o){this.lineNumber=i,this.ranges=o}};XG=class l extends qL{constructor(i){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=i;let o=this._context.configuration.options;this._roundedSelection=o.get(101),this._typicalHalfwidthCharacterWidth=o.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let o=this._context.configuration.options;return this._roundedSelection=o.get(101),this._typicalHalfwidthCharacterWidth=o.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(i){return this._selections=i.selections.slice(0),!0}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}_visibleRangesHaveGaps(i){for(let o=0,s=i.length;o1)return!0;return!1}_enrichVisibleRangesWithStyle(i,o,s){let c=this._typicalHalfwidthCharacterWidth/4,_=null,h=null;if(s&&s.length>0&&o.length>0){let b=o[0].lineNumber;if(b===i.startLineNumber)for(let D=0;!_&&D=0;D--)s[D].lineNumber===w&&(h=s[D].ranges[0]);_&&!_.startStyle&&(_=null),h&&!h.startStyle&&(h=null)}for(let b=0,w=o.length;b0){let K=o[b-1].ranges[0].left,re=o[b-1].ranges[0].left+o[b-1].ranges[0].width;$mt(O-K)K&&(F.top=1),$mt(j-re)'}_actualRenderOneSelection(i,o,s,c){if(c.length===0)return;let _=!!c[0].ranges[0].startStyle,h=c[0].lineNumber,b=c[c.length-1].lineNumber;for(let w=0,D=c.length;w1,D)}this._previousFrameVisibleRangesWithStyle=_,this._renderResult=o.map(([h,b])=>h+b)}render(i,o){if(!this._renderResult)return"";let s=o-i;return s<0||s>=this._renderResult.length?"":this._renderResult[s]}};XG.SELECTION_CLASS_NAME="selected-text";XG.SELECTION_TOP_LEFT="top-left-radius";XG.SELECTION_BOTTOM_LEFT="bottom-left-radius";XG.SELECTION_TOP_RIGHT="top-right-radius";XG.SELECTION_BOTTOM_RIGHT="bottom-right-radius";XG.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background";XG.ROUNDED_PIECE_WIDTH=10;WC((l,i)=>{let o=l.getColor(_1i);o&&!o.isTransparent()&&i.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${o}; }`)})});var Nxi=Ht(()=>{});var Gmt,uX,tot,Axi=Ht(()=>{va();Tw();Bl();v7();FC();Ll();ca();qpt();Gmt=class{constructor(i,o,s,c,_,h,b){this.top=i,this.left=o,this.paddingLeft=s,this.width=c,this.height=_,this.textContent=h,this.textContentClassName=b}};(function(l){l[l.Single=0]="Single",l[l.MultiPrimary=1]="MultiPrimary",l[l.MultiSecondary=2]="MultiSecondary"})(uX||(uX={}));tot=class{constructor(i,o){this._context=i;let s=this._context.configuration.options,c=s.get(50);this._cursorStyle=s.get(28),this._lineHeight=s.get(67),this._typicalHalfwidthCharacterWidth=c.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(s.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=cf(document.createElement("div")),this._domNode.setClassName(`cursor ${Hle}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),Iv(this._domNode,c),this._domNode.setDisplay("none"),this._position=new Cn(1,1),this._pluralityClass="",this.setPlurality(o),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(i){switch(i){default:case uX.Single:this._pluralityClass="";break;case uX.MultiPrimary:this._pluralityClass="cursor-primary";break;case uX.MultiSecondary:this._pluralityClass="cursor-secondary";break}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(i){let o=this._context.configuration.options,s=o.get(50);return this._cursorStyle=o.get(28),this._lineHeight=o.get(67),this._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(o.get(31),this._typicalHalfwidthCharacterWidth),Iv(this._domNode,s),!0}onCursorPositionChanged(i,o){return o?this._domNode.domNode.style.transitionProperty="none":this._domNode.domNode.style.transitionProperty="",this._position=i,!0}_getGraphemeAwarePosition(){let{lineNumber:i,column:o}=this._position,s=this._context.viewModel.getLineContent(i),[c,_]=i0i(s,o-1);return[new Cn(i,c+1),s.substring(c,_)]}_prepareRender(i){let o="",s="",[c,_]=this._getGraphemeAwarePosition();if(this._cursorStyle===p2.Line||this._cursorStyle===p2.LineThin){let F=i.visibleRangeForPosition(c);if(!F||F.outsideRenderedLine)return null;let X=Xa(this._domNode.domNode),K;this._cursorStyle===p2.Line?(K=XQt(X,this._lineCursorWidth>0?this._lineCursorWidth:2),K>2&&(o=_,s=this._getTokenClassName(c))):K=XQt(X,1);let re=F.left,Pe=0;K>=2&&re>=1&&(Pe=1,re-=Pe);let Le=i.getVerticalOffsetForLineNumber(c.lineNumber)-i.bigNumbersDelta;return new Gmt(Le,re,Pe,K,this._lineHeight,o,s)}let h=i.linesVisibleRangesForRange(new Vt(c.lineNumber,c.column,c.lineNumber,c.column+_.length),!1);if(!h||h.length===0)return null;let b=h[0];if(b.outsideRenderedLine||b.ranges.length===0)return null;let w=b.ranges[0],D=_===" "?this._typicalHalfwidthCharacterWidth:w.width<1?this._typicalHalfwidthCharacterWidth:w.width;this._cursorStyle===p2.Block&&(o=_,s=this._getTokenClassName(c));let O=i.getVerticalOffsetForLineNumber(c.lineNumber)-i.bigNumbersDelta,j=this._lineHeight;return(this._cursorStyle===p2.Underline||this._cursorStyle===p2.UnderlineThin)&&(O+=this._lineHeight-2,j=2),new Gmt(O,w.left,0,D,j,o,s)}_getTokenClassName(i){let o=this._context.viewModel.getViewLineData(i.lineNumber),s=o.tokens.findTokenIndexAtOffset(i.column-1);return o.tokens.getClassName(s)}prepareRender(i){this._renderData=this._prepareRender(i)}render(i){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${Hle} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}});var iot,Pxi=Ht(()=>{Nxi();Tw();Bu();gP();Axi();FC();bj();_g();dW();va();iot=class l extends W1{constructor(i){super(i);let o=this._context.configuration.options;this._readOnly=o.get(91),this._cursorBlinking=o.get(26),this._cursorStyle=o.get(28),this._cursorSmoothCaretAnimation=o.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new tot(this._context,uX.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=cf(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new MC,this._cursorFlatBlinkInterval=new Tde,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(i){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(i){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(i){let o=this._context.configuration.options;this._readOnly=o.get(91),this._cursorBlinking=o.get(26),this._cursorStyle=o.get(28),this._cursorSmoothCaretAnimation=o.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(i);for(let s=0,c=this._secondaryCursors.length;so.length){let _=this._secondaryCursors.length-o.length;for(let h=0;h<_;h++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let _=0;_{for(let c=0,_=i.ranges.length;c<_;c++)if(i.ranges[c].fromLineNumber<=s.lineNumber&&s.lineNumber<=i.ranges[c].toLineNumber)return!0;return!1};if(o(this._primaryCursor.getPosition()))return!0;for(let s of this._secondaryCursors)if(o(s.getPosition()))return!0;return!1}onZonesChanged(i){return!0}_getCursorBlinking(){return this._isComposingInput||!this._editorHasFocus?0:this._readOnly?5:this._cursorBlinking}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();let i=this._getCursorBlinking(),o=i===0,s=i===5;o?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!o&&!s&&(i===1?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},l.BLINK_INTERVAL,Xa(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},l.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let i="cursors-layer";switch(this._selectionIsEmpty||(i+=" has-selection"),this._cursorStyle){case p2.Line:i+=" cursor-line-style";break;case p2.Block:i+=" cursor-block-style";break;case p2.Underline:i+=" cursor-underline-style";break;case p2.LineThin:i+=" cursor-line-thin-style";break;case p2.BlockOutline:i+=" cursor-block-outline-style";break;case p2.UnderlineThin:i+=" cursor-underline-thin-style";break;default:i+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:i+=" cursor-blink";break;case 2:i+=" cursor-smooth";break;case 3:i+=" cursor-phase";break;case 4:i+=" cursor-expand";break;case 5:i+=" cursor-solid";break;default:i+=" cursor-solid"}else i+=" cursor-solid";return(this._cursorSmoothCaretAnimation==="on"||this._cursorSmoothCaretAnimation==="explicit")&&(i+=" cursor-smooth-caret-animation"),i}_show(){this._primaryCursor.show();for(let i=0,o=this._secondaryCursors.length;i{let o=[{class:".cursor",foreground:hW,background:aX},{class:".cursor-primary",foreground:Rpt,background:Zbi},{class:".cursor-secondary",foreground:Bpt,background:eSi}];for(let s of o){let c=l.getColor(s.foreground);if(c){let _=l.getColor(s.background);_||(_=c.opposite()),i.addRule(`.monaco-editor .cursors-layer ${s.class} { background-color: ${c}; border-color: ${c}; color: ${_}; }`),ZA(l.type)&&i.addRule(`.monaco-editor .cursors-layer.has-selection ${s.class} { border-left: 1px solid ${_}; border-right: 1px solid ${_}; }`)}}})});function bBi(l,i){try{return l(i)}catch(o){Sc(o)}}var aii,Kmt,Lxi=Ht(()=>{Tw();Pl();gP();Ll();aii=()=>{throw new Error("Invalid change accessor")},Kmt=class extends W1{constructor(i){super(i);let o=this._context.configuration.options,s=o.get(145);this._lineHeight=o.get(67),this._contentWidth=s.contentWidth,this._contentLeft=s.contentLeft,this.domNode=cf(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=cf(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){let i=this._context.viewLayout.getWhitespaces(),o=new Map;for(let c of i)o.set(c.id,c);let s=!1;return this._context.viewModel.changeWhitespace(c=>{let _=Object.keys(this._zones);for(let h=0,b=_.length;h{let c={addZone:_=>(o=!0,this._addZone(s,_)),removeZone:_=>{_&&(o=this._removeZone(s,_)||o)},layoutZone:_=>{_&&(o=this._layoutZone(s,_)||o)}};bBi(i,c),c.addZone=aii,c.removeZone=aii,c.layoutZone=aii}),o}_addZone(i,o){let s=this._computeWhitespaceProps(o),_={whitespaceId:i.insertWhitespace(s.afterViewLineNumber,this._getZoneOrdinal(o),s.heightInPx,s.minWidthInPx),delegate:o,isInHiddenArea:s.isInHiddenArea,isVisible:!1,domNode:cf(o.domNode),marginDomNode:o.marginDomNode?cf(o.marginDomNode):null};return this._safeCallOnComputedHeight(_.delegate,s.heightInPx),_.domNode.setPosition("absolute"),_.domNode.domNode.style.width="100%",_.domNode.setDisplay("none"),_.domNode.setAttribute("monaco-view-zone",_.whitespaceId),this.domNode.appendChild(_.domNode),_.marginDomNode&&(_.marginDomNode.setPosition("absolute"),_.marginDomNode.domNode.style.width="100%",_.marginDomNode.setDisplay("none"),_.marginDomNode.setAttribute("monaco-view-zone",_.whitespaceId),this.marginDomNode.appendChild(_.marginDomNode)),this._zones[_.whitespaceId]=_,this.setShouldRender(),_.whitespaceId}_removeZone(i,o){if(this._zones.hasOwnProperty(o)){let s=this._zones[o];return delete this._zones[o],i.removeWhitespace(s.whitespaceId),s.domNode.removeAttribute("monaco-visible-view-zone"),s.domNode.removeAttribute("monaco-view-zone"),s.domNode.domNode.parentNode.removeChild(s.domNode.domNode),s.marginDomNode&&(s.marginDomNode.removeAttribute("monaco-visible-view-zone"),s.marginDomNode.removeAttribute("monaco-view-zone"),s.marginDomNode.domNode.parentNode.removeChild(s.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(i,o){if(this._zones.hasOwnProperty(o)){let s=this._zones[o],c=this._computeWhitespaceProps(s.delegate);return s.isInHiddenArea=c.isInHiddenArea,i.changeOneWhitespace(s.whitespaceId,c.afterViewLineNumber,c.heightInPx),this._safeCallOnComputedHeight(s.delegate,c.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(i){return this._zones.hasOwnProperty(i)?!!this._zones[i].delegate.suppressMouseDown:!1}_heightInPixels(i){return typeof i.heightInPx=="number"?i.heightInPx:typeof i.heightInLines=="number"?this._lineHeight*i.heightInLines:this._lineHeight}_minWidthInPixels(i){return typeof i.minWidthInPx=="number"?i.minWidthInPx:0}_safeCallOnComputedHeight(i,o){if(typeof i.onComputedHeight=="function")try{i.onComputedHeight(o)}catch(s){Sc(s)}}_safeCallOnDomNodeTop(i,o){if(typeof i.onDomNodeTop=="function")try{i.onDomNodeTop(o)}catch(s){Sc(s)}}prepareRender(i){}render(i){let o=i.viewportData.whitespaceViewportData,s={},c=!1;for(let h of o)this._zones[h.id].isInHiddenArea||(s[h.id]=h,c=!0);let _=Object.keys(this._zones);for(let h=0,b=_.length;h{});var Xmt,Ymt,Fxi=Ht(()=>{Oxi();rfe();Bl();qde();Ll();bj();Xmt=class extends qL{constructor(i){super(),this._context=i,this._options=new Ymt(this._context.configuration),this._selection=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(i){let o=new Ymt(this._context.configuration);return this._options.equals(o)?i.hasChanged(145):(this._options=o,!0)}onCursorStateChanged(i){return this._selection=i.selections,this._options.renderWhitespace==="selection"}onDecorationsChanged(i){return!0}onFlushed(i){return!0}onLinesChanged(i){return!0}onLinesDeleted(i){return!0}onLinesInserted(i){return!0}onScrollChanged(i){return i.scrollTopChanged}onZonesChanged(i){return!0}prepareRender(i){if(this._options.renderWhitespace==="none"){this._renderResult=null;return}let o=i.visibleRange.startLineNumber,c=i.visibleRange.endLineNumber-o+1,_=new Array(c);for(let b=0;bb)continue;let X=F.startLineNumber===b?F.startColumn:D.minColumn,K=F.endLineNumber===b?F.endColumn:D.maxColumn;X=Vr.endOffset&&(zi++,Vr=s&&s[zi]),er!==9&&er!==32||F&&!Et&&gr<=Mi)continue;if(j&&gr>=St&&gr<=Mi&&er===32){let rs=gr-1>=0?b.charCodeAt(gr-1):0,Ls=gr+1=0?b.charCodeAt(gr-1):0;if(er===32&&rs!==32&&rs!==9)continue}if(s&&(!Vr||Vr.startOffset>gr||Vr.endOffset<=gr))continue;let Di=i.visibleRangeForPosition(new Cn(o,gr+1));Di&&(h?(sn=Math.max(sn,Di.left),er===9?Ct+=this._renderArrow(X,Pe,Di.left):Ct+=``):er===9?Ct+=`
${ft?"\uFFEB":"\u2192"}
`:Ct+=`
${String.fromCharCode(Ye)}
`)}return h?(sn=Math.round(sn+Pe),``+Ct+""):Ct}_renderArrow(i,o,s){let c=o/7,_=o,h=i/2,b=s,w={x:0,y:c/2},D={x:100/125*_,y:w.y},O={x:D.x-.2*D.x,y:D.y+.2*D.x},j={x:O.x+.1*D.x,y:O.y+.1*D.x},F={x:j.x+.35*D.x,y:j.y-.35*D.x},X={x:F.x,y:-F.y},K={x:j.x,y:-j.y},re={x:O.x,y:-O.y},Pe={x:D.x,y:-D.y},Le={x:w.x,y:-w.y};return``}render(i,o){if(!this._renderResult)return"";let s=o-i;return s<0||s>=this._renderResult.length?"":this._renderResult[s]}},Ymt=class{constructor(i){let o=i.options,s=o.get(50),c=o.get(38);c==="off"?(this.renderWhitespace="none",this.renderWithSVG=!1):c==="svg"?(this.renderWhitespace=o.get(99),this.renderWithSVG=!0):(this.renderWhitespace=o.get(99),this.renderWithSVG=!1),this.spaceWidth=s.spaceWidth,this.middotWidth=s.middotWidth,this.wsmiddotWidth=s.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=s.canUseHalfwidthRightwardsArrow,this.lineHeight=o.get(67),this.stopRenderingLineAfter=o.get(117)}equals(i){return this.renderWhitespace===i.renderWhitespace&&this.renderWithSVG===i.renderWithSVG&&this.spaceWidth===i.spaceWidth&&this.middotWidth===i.middotWidth&&this.wsmiddotWidth===i.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===i.canUseHalfwidthRightwardsArrow&&this.lineHeight===i.lineHeight&&this.stopRenderingLineAfter===i.stopRenderingLineAfter}}});var Qmt,Mxi=Ht(()=>{ca();Qmt=class{constructor(i,o,s,c){this.selections=i,this.startLineNumber=o.startLineNumber|0,this.endLineNumber=o.endLineNumber|0,this.relativeVerticalOffset=o.relativeVerticalOffset,this.bigNumbersDelta=o.bigNumbersDelta|0,this.lineHeight=o.lineHeight|0,this.whitespaceViewportData=s,this._model=c,this.visibleRange=new Vt(o.startLineNumber,this._model.getLineMinColumn(o.startLineNumber),o.endLineNumber,this._model.getLineMaxColumn(o.endLineNumber))}getViewLineRenderingData(i){return this._model.getViewportViewLineRenderingData(this.visibleRange,i)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}});var Zmt,Rxi=Ht(()=>{Zmt=class{get type(){return this._theme.type}get value(){return this._theme}constructor(i){this._theme=i}update(i){this._theme=i}getColor(i){return this._theme.getColor(i)}}});var eht,Bxi=Ht(()=>{Rxi();eht=class{constructor(i,o,s){this.configuration=i,this.theme=new Zmt(o),this.viewModel=s,this.viewLayout=s.viewLayout}addEventHandler(i){this.viewModel.addViewEventHandler(i)}removeEventHandler(i){this.viewModel.removeViewEventHandler(i)}}});function lfe(l){try{return l()}catch(i){return Sc(i),null}}var SBi,xBi,tht,not,jxi=Ht(()=>{va();Tw();Hei();Pl();uti();Kbi();FSi();sLe();HSi();USi();gP();Rti();qSi();$Si();KSi();YSi();QSi();Emt();txi();Tti();rxi();sxi();Eti();cxi();vxi();Sxi();xxi();Cxi();wxi();Exi();Ixi();Pxi();Lxi();Fxi();Ll();ca();hg();b2();rLe();Mxi();Bxi();kc();_g();SBi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},xBi=function(l,i){return function(o,s){i(o,s,l)}},tht=class extends uW{constructor(i,o,s,c,_,h,b){super(),this._instantiationService=b,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new ya(1,1,1,1)],this._renderAnimationFrame=null;let w=new _mt(o,c,_,i);this._context=new eht(o,s,c),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance($pt,this._context,w,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=cf(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=cf(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=cf(document.createElement("div")),GD.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new wmt(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Qrt(this._context,this._linesContent),this._viewZones=new Kmt(this._context),this._viewParts.push(this._viewZones);let D=new zmt(this._context);this._viewParts.push(D);let O=new qmt(this._context);this._viewParts.push(O);let j=new hmt(this._context);this._viewParts.push(j),j.addDynamicOverlay(new xmt(this._context)),j.addDynamicOverlay(new XG(this._context)),j.addDynamicOverlay(new Amt(this._context)),j.addDynamicOverlay(new kmt(this._context)),j.addDynamicOverlay(new Xmt(this._context));let F=new gmt(this._context);this._viewParts.push(F),F.addDynamicOverlay(new Cmt(this._context)),F.addDynamicOverlay(new Lmt(this._context)),F.addDynamicOverlay(new Pmt(this._context)),F.addDynamicOverlay(new kAe(this._context)),this._glyphMarginWidgets=new Tmt(this._context),this._viewParts.push(this._glyphMarginWidgets);let X=new ofe(this._context);X.getDomNode().appendChild(this._viewZones.marginDomNode),X.getDomNode().appendChild(F.getDomNode()),X.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(X),this._contentWidgets=new vmt(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new iot(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new Wmt(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);let K=new Jmt(this._context);this._viewParts.push(K);let re=new ymt(this._context);this._viewParts.push(re);let Pe=new Bmt(this._context);if(this._viewParts.push(Pe),D){let Le=this._scrollbar.getOverviewRulerLayoutInfo();Le.parent.insertBefore(D.getDomNode(),Le.insertBefore)}this._linesContent.appendChild(j.getDomNode()),this._linesContent.appendChild(K.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(X.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(O.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(Pe.getDomNode()),this._overflowGuardContainer.appendChild(re.domNode),this.domNode.appendChild(this._overflowGuardContainer),h?(h.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),h.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new Apt(this._context,w,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){let i=this._context.viewModel.model,o=this._context.viewModel.glyphLanes,s=[],c=0;s=s.concat(i.getAllMarginDecorations().map(_=>{var h,b,w;let D=(b=(h=_.options.glyphMargin)===null||h===void 0?void 0:h.position)!==null&&b!==void 0?b:zL.Center;return c=Math.max(c,_.range.endLineNumber),{range:_.range,lane:D,persist:(w=_.options.glyphMargin)===null||w===void 0?void 0:w.persistLane}})),s=s.concat(this._glyphMarginWidgets.getWidgets().map(_=>{let h=i.validateRange(_.preference.range);return c=Math.max(c,h.endLineNumber),{range:h,lane:_.preference.lane}})),s.sort((_,h)=>Vt.compareRangesUsingStarts(_.range,h.range)),o.reset(c);for(let _ of s)o.push(_.lane,_.range,_.persist);return o}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:i=>{this._textAreaHandler.textArea.domNode.dispatchEvent(i)},getLastRenderData:()=>{let i=this._viewCursors.getLastRenderData()||[],o=this._textAreaHandler.getLastRenderData();return new hpt(i,o)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:i=>this._viewZones.shouldSuppressMouseDownOnViewZone(i),shouldSuppressMouseDownOnWidget:i=>this._contentWidgets.shouldSuppressMouseDownOnWidget(i),getPositionFromDOMInfo:(i,o)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(i,o)),visibleRangeForPosition:(i,o)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new Cn(i,o))),getLineWidth:i=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(i))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:i=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(i))}}_applyLayout(){let o=this._context.configuration.options.get(145);this.domNode.setWidth(o.width),this.domNode.setHeight(o.height),this._overflowGuardContainer.setWidth(o.width),this._overflowGuardContainer.setHeight(o.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){let i=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(142)+" "+Wrt(this._context.theme.type)+i}handleEvents(i){super.handleEvents(i),this._scheduleRender()}onConfigurationChanged(i){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(i){return this._selections=i.selections,!1}onDecorationsChanged(i){return i.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(i){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(i){return this._context.theme.update(i.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(let i of this._viewParts)i.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new C_;if(this._renderAnimationFrame===null){let i=this._createCoordinatedRendering();this._renderAnimationFrame=not.INSTANCE.scheduleCoordinatedRendering({window:Xa(this.domNode.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new C_;try{return i.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new C_;return i.renderText()},prepareRender:(o,s)=>{if(this._store.isDisposed)throw new C_;return i.prepareRender(o,s)},render:(o,s)=>{if(this._store.isDisposed)throw new C_;return i.render(o,s)}})}}_flushAccumulatedAndRenderNow(){let i=this._createCoordinatedRendering();lfe(()=>i.prepareRenderText());let o=lfe(()=>i.renderText());if(o){let[s,c]=o;lfe(()=>i.prepareRender(s,c)),lfe(()=>i.render(s,c))}}_getViewPartsToRender(){let i=[],o=0;for(let s of this._viewParts)s.shouldRender()&&(i[o++]=s);return i}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;let i=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(i.requiredLanes)}eX.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let i=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&i.length===0)return null;let o=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(o.startLineNumber,o.endLineNumber,o.centeredLineNumber);let s=new Qmt(this._selections,o,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(s),this._viewLines.shouldRender()&&(this._viewLines.renderText(s),this._viewLines.onDidRender(),i=this._getViewPartsToRender()),[i,new lpt(this._context.viewLayout,s,this._viewLines)]},prepareRender:(i,o)=>{for(let s of i)s.prepareRender(o)},render:(i,o)=>{for(let s of i)s.render(o),s.onDidRender()}}}delegateVerticalScrollbarPointerDown(i){this._scrollbar.delegateVerticalScrollbarPointerDown(i)}delegateScrollFromMouseWheelEvent(i){this._scrollbar.delegateScrollFromMouseWheelEvent(i)}restoreState(i){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:i.scrollTop,scrollLeft:i.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(i,o){let s=this._context.viewModel.model.validatePosition({lineNumber:i,column:o}),c=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(s);this._flushAccumulatedAndRenderNow();let _=this._viewLines.visibleRangeForPosition(new Cn(c.lineNumber,c.column));return _?_.left:-1}getTargetAtClientPoint(i,o){let s=this._pointerHandler.getTargetAtClientPoint(i,o);return s?vLe.convertViewToModelMouseTarget(s,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(i){return new Umt(this._context,i)}change(i){this._viewZones.changeViewZones(i),this._scheduleRender()}render(i,o){if(o){this._viewLines.forceShouldRender();for(let s of this._viewParts)s.forceShouldRender()}i?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(i){this._textAreaHandler.writeScreenReaderContent(i)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(i){this._textAreaHandler.setAriaOptions(i)}addContentWidget(i){this._contentWidgets.addWidget(i.widget),this.layoutContentWidget(i),this._scheduleRender()}layoutContentWidget(i){var o,s,c,_,h,b,w,D;this._contentWidgets.setWidgetPosition(i.widget,(s=(o=i.position)===null||o===void 0?void 0:o.position)!==null&&s!==void 0?s:null,(_=(c=i.position)===null||c===void 0?void 0:c.secondaryPosition)!==null&&_!==void 0?_:null,(b=(h=i.position)===null||h===void 0?void 0:h.preference)!==null&&b!==void 0?b:null,(D=(w=i.position)===null||w===void 0?void 0:w.positionAffinity)!==null&&D!==void 0?D:null),this._scheduleRender()}removeContentWidget(i){this._contentWidgets.removeWidget(i.widget),this._scheduleRender()}addOverlayWidget(i){this._overlayWidgets.addWidget(i.widget),this.layoutOverlayWidget(i),this._scheduleRender()}layoutOverlayWidget(i){this._overlayWidgets.setWidgetPosition(i.widget,i.position)&&this._scheduleRender()}removeOverlayWidget(i){this._overlayWidgets.removeWidget(i.widget),this._scheduleRender()}addGlyphMarginWidget(i){this._glyphMarginWidgets.addWidget(i.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(i){let o=i.position;this._glyphMarginWidgets.setWidgetPosition(i.widget,o)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(i){this._glyphMarginWidgets.removeWidget(i.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};tht=SBi([xBi(6,qs)],tht);not=class{constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(i){return this._coordinatedRenderings.push(i),this._scheduleRender(i.window),{dispose:()=>{let o=this._coordinatedRenderings.indexOf(i);if(o!==-1&&(this._coordinatedRenderings.splice(o,1),this._coordinatedRenderings.length===0)){for(let[s,c]of this._animationFrameRunners)c.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(i){if(!this._animationFrameRunners.has(i)){let o=()=>{this._animationFrameRunners.delete(i),this._onRenderScheduled()};this._animationFrameRunners.set(i,a6e(i,o,100))}}_onRenderScheduled(){let i=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(let s of i)lfe(()=>s.prepareRenderText());let o=[];for(let s=0,c=i.length;s_.renderText())}for(let s=0,c=i.length;s_.prepareRender(b,w))}for(let s=0,c=i.length;s_.render(b,w))}}};not.INSTANCE=new not});function Wxi(l){return l==null?!0:l===VL.Right||l===VL.Both}function zxi(l){return l==null?!0:l===VL.Left||l===VL.Both}var Kle,wLe,cii=Ht(()=>{Yj();Ll();b2();Kle=class{constructor(i,o,s,c,_){this.injectionOffsets=i,this.injectionOptions=o,this.breakOffsets=s,this.breakOffsetsVisibleColumn=c,this.wrappedTextIndentLength=_}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(i){return i>0?this.wrappedTextIndentLength:0}getLineLength(i){let o=i>0?this.breakOffsets[i-1]:0,c=this.breakOffsets[i]-o;return i>0&&(c+=this.wrappedTextIndentLength),c}getMaxOutputOffset(i){return this.getLineLength(i)}translateToInputOffset(i,o){i>0&&(o=Math.max(0,o-this.wrappedTextIndentLength));let c=i===0?o:this.breakOffsets[i-1]+o;if(this.injectionOffsets!==null)for(let _=0;_this.injectionOffsets[_];_++)c0?this.breakOffsets[_-1]:0,o===0)if(i<=h)c=_-1;else if(i>w)s=_+1;else break;else if(i=w)s=_+1;else break}let b=i-h;return _>0&&(b+=this.wrappedTextIndentLength),new wLe(_,b)}normalizeOutputPosition(i,o,s){if(this.injectionOffsets!==null){let c=this.outputPositionToOffsetInInputWithInjections(i,o),_=this.normalizeOffsetInInputWithInjectionsAroundInjections(c,s);if(_!==c)return this.offsetInInputWithInjectionsToOutputPosition(_,s)}if(s===0){if(i>0&&o===this.getMinOutputOffset(i))return new wLe(i-1,this.getMaxOutputOffset(i-1))}else if(s===1){let c=this.getOutputLineCount()-1;if(i0&&(o=Math.max(0,o-this.wrappedTextIndentLength)),(i>0?this.breakOffsets[i-1]:0)+o}normalizeOffsetInInputWithInjectionsAroundInjections(i,o){let s=this.getInjectedTextAtOffset(i);if(!s)return i;if(o===2){if(i===s.offsetInInputWithInjections+s.length&&Wxi(this.injectionOptions[s.injectedTextIndex].cursorStops))return s.offsetInInputWithInjections+s.length;{let c=s.offsetInInputWithInjections;if(zxi(this.injectionOptions[s.injectedTextIndex].cursorStops))return c;let _=s.injectedTextIndex-1;for(;_>=0&&this.injectionOffsets[_]===this.injectionOffsets[s.injectedTextIndex]&&!(Wxi(this.injectionOptions[_].cursorStops)||(c-=this.injectionOptions[_].content.length,zxi(this.injectionOptions[_].cursorStops)));)_--;return c}}else if(o===1||o===4){let c=s.offsetInInputWithInjections+s.length,_=s.injectedTextIndex;for(;_+1=0&&this.injectionOffsets[_-1]===this.injectionOffsets[_];)c-=this.injectionOptions[_-1].content.length,_--;return c}Dde(o)}getInjectedText(i,o){let s=this.outputPositionToOffsetInInputWithInjections(i,o),c=this.getInjectedTextAtOffset(s);return c?{options:this.injectionOptions[c.injectedTextIndex]}:null}getInjectedTextAtOffset(i){let o=this.injectionOffsets,s=this.injectionOptions;if(o!==null){let c=0;for(let _=0;_i)break;if(i<=w)return{injectedTextIndex:_,offsetInInputWithInjections:b,length:h};c+=h}}}};wLe=class{constructor(i,o){this.outputLineIndex=i,this.outputOffset=o}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(i){return new Cn(i+this.outputLineIndex,this.outputOffset+1)}}});var iht,$F,rot,nht,rht,oht,WAe,TLe,ufe,dfe=Ht(()=>{iht=class{constructor(){this.changeType=1}},$F=class l{static applyInjectedText(i,o){if(!o||o.length===0)return i;let s="",c=0;for(let _ of o)s+=i.substring(c,_.column-1),c=_.column-1,s+=_.options.content;return s+=i.substring(c),s}static fromDecorations(i){let o=[];for(let s of i)s.options.before&&s.options.before.content.length>0&&o.push(new l(s.ownerId,s.range.startLineNumber,s.range.startColumn,s.options.before,0)),s.options.after&&s.options.after.content.length>0&&o.push(new l(s.ownerId,s.range.endLineNumber,s.range.endColumn,s.options.after,1));return o.sort((s,c)=>s.lineNumber===c.lineNumber?s.column===c.column?s.order-c.order:s.column-c.column:s.lineNumber-c.lineNumber),o}constructor(i,o,s,c,_){this.ownerId=i,this.lineNumber=o,this.column=s,this.options=c,this.order=_}},rot=class{constructor(i,o,s){this.changeType=2,this.lineNumber=i,this.detail=o,this.injectedText=s}},nht=class{constructor(i,o){this.changeType=3,this.fromLineNumber=i,this.toLineNumber=o}},rht=class{constructor(i,o,s,c){this.changeType=4,this.injectedTexts=c,this.fromLineNumber=i,this.toLineNumber=o,this.detail=s}},oht=class{constructor(){this.changeType=5}},WAe=class l{constructor(i,o,s,c){this.changes=i,this.versionId=o,this.isUndoing=s,this.isRedoing=c,this.resultingSelection=null}containsEvent(i){for(let o=0,s=this.changes.length;ors.options),Di=sn.map(rs=>rs.column-1);return new Kle(Di,er,[gr.length],[],0)}else return null}if(c===-1){let Vr=[];for(let sn=0,gr=i.length;snO?(gr=0,er=0):Di=O-_i}let rs=sn.substr(gr),Ls=wBi(rs,er,s,Di,re,X);Pe[Vr]=gr,Le[Vr]=er,Je[Vr]=rs,Ye[Vr]=Ls[0],ft[Vr]=Ls[1]}let Ct=re.build(),Et=(w=lii?.createHTML(Ct))!==null&&w!==void 0?w:Ct;K.innerHTML=Et,K.style.position="absolute",K.style.top="10000",h==="keepAll"?(K.style.wordBreak="keep-all",K.style.overflowWrap="anywhere"):(K.style.wordBreak="inherit",K.style.overflowWrap="break-word"),l.document.body.appendChild(K);let St=document.createRange(),Mi=Array.prototype.slice.call(K.children,0),zi=[];for(let Vr=0;Vrtc.options),wc=Uo.map(tc=>tc.column-1)):(_i=null,wc=null),zi[Vr]=new Kle(wc,_i,gr,Ls,Di)}return l.document.body.removeChild(K),zi}function wBi(l,i,o,s,c,_){if(_!==0){let F=String(_);c.appendString('
');let h=l.length,b=i,w=0,D=[],O=[],j=0");for(let F=0;F"),D[F]=w,O[F]=b;let X=j;j=F+1"),D[l.length]=w,O[l.length]=b,c.appendString("
"),[D,O]}function TBi(l,i,o,s){if(o.length<=1)return null;let c=Array.prototype.slice.call(i.children,0),_=[];try{dii(l,c,s,0,null,o.length-1,null,_)}catch(h){return console.log(h),null}return _.length===0?null:(_.push(o.length),_)}function dii(l,i,o,s,c,_,h,b){if(s===_||(c=c||uii(l,i,o[s],o[s+1]),h=h||uii(l,i,o[_],o[_+1]),Math.abs(c[0].top-h[0].top)<=.1))return;if(s+1===_){b.push(_);return}let w=s+(_-s)/2|0,D=uii(l,i,o[w],o[w+1]);dii(l,i,o,s,c,w,D,b),dii(l,i,o,w,D,_,h,b)}function uii(l,i,o,s){return l.setStart(i[o/16384|0].firstChild,o%16384),l.setEnd(i[s/16384|0].firstChild,s%16384),l.getClientRects()}var lii,sht,Vxi=Ht(()=>{VK();Bl();cm();v7();Ele();cii();dfe();lii=fP("domLineBreaksComputer",{createHTML:l=>l}),sht=class l{static create(i){return new l(new WeakRef(i))}constructor(i){this.targetWindow=i}createLineBreaksComputer(i,o,s,c,_){let h=[],b=[];return{addRequest:(w,D,O)=>{h.push(w),b.push(D)},finalize:()=>kBi(Vj(this.targetWindow.deref()),h,i,o,s,c,_,b)}}}});var aht,Hxi=Ht(()=>{va();Pl();$r();aht=class extends Ui{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new dde),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(i,o,s){this._editor=i,this._instantiationService=s;for(let c of o){if(this._pending.has(c.id)){Sc(new Error(`Cannot have two contributions with the same id ${c.id}`));continue}this._pending.set(c.id,c)}this._instantiateSome(0),this._register(FNe(Xa(this._editor.getDomNode()),()=>{this._instantiateSome(1)})),this._register(FNe(Xa(this._editor.getDomNode()),()=>{this._instantiateSome(2)})),this._register(FNe(Xa(this._editor.getDomNode()),()=>{this._instantiateSome(3)},5e3))}saveViewState(){let i={};for(let[o,s]of this._instances)typeof s.saveViewState=="function"&&(i[o]=s.saveViewState());return i}restoreViewState(i){for(let[o,s]of this._instances)typeof s.restoreViewState=="function"&&s.restoreViewState(i[o])}get(i){return this._instantiateById(i),this._instances.get(i)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){var i;return FNe(Xa((i=this._editor)===null||i===void 0?void 0:i.getDomNode()),()=>{this._instantiateSome(1)},50)}_instantiateSome(i){if(this._finishedInstantiation[i])return;this._finishedInstantiation[i]=!0;let o=this._findPendingContributionsByInstantiation(i);for(let s of o)this._instantiateById(s.id)}_findPendingContributionsByInstantiation(i){let o=[];for(let[,s]of this._pending)s.instantiation===i&&o.push(s);return o}_instantiateById(i){let o=this._pending.get(i);if(o){if(this._pending.delete(i),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{let s=this._instantiationService.createInstance(o.ctor,this._editor);this._instances.set(o.id,s),typeof s.restoreViewState=="function"&&o.instantiation!==0&&console.warn(`Editor contribution '${o.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(s){Sc(s)}}}}});var ELe,fii=Ht(()=>{ELe=class{constructor(i,o,s,c,_,h,b){this.id=i,this.label=o,this.alias=s,this.metadata=c,this._precondition=_,this._run=h,this._contextKeyService=b}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(i){return this.isSupported()?this._run(i):Promise.resolve(void 0)}}});function w7(l){let i=0,o=0,s=0,c=0;for(let _=0,h=l.length;_{});var oot,_ii,cht,Uxi=Ht(()=>{oot=class{constructor(i,o,s,c){this.range=i,this.nestingLevel=o,this.nestingLevelOfEqualBracketType=s,this.isInvalid=c}},_ii=class{constructor(i,o,s,c,_,h){this.range=i,this.openingBracketRange=o,this.closingBracketRange=s,this.nestingLevel=c,this.nestingLevelOfEqualBracketType=_,this.bracketPairNode=h}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}},cht=class extends _ii{constructor(i,o,s,c,_,h,b){super(i,o,s,c,_,h),this.minVisibleColumnIndentation=b}}});function Jxi(l,i,o,s){return l!==o?zb(o-l,s):zb(0,s-i)}function DLe(l){return l===0}function zb(l,i){return l*T7+i}function hL(l){let i=l,o=Math.floor(i/T7),s=i-o*T7;return new O2(o,s)}function qxi(l){return Math.floor(l/T7)}function Oy(l,i){let o=l+i;return i>=T7&&(o=o-l%T7),o}function $xi(l,i){return l.reduce((o,s)=>Oy(o,i(s)),C2)}function pii(l,i){return l===i}function VAe(l,i){let o=l,s=i;if(s-o<=0)return C2;let _=Math.floor(o/T7),h=Math.floor(s/T7),b=s-h*T7;if(_===h){let w=o-_*T7;return zb(0,b-w)}else return zb(h-_,b)}function Xle(l,i){return l=i}function _fe(l){return zb(l.lineNumber-1,l.column-1)}function pfe(l,i){let o=l,s=Math.floor(o/T7),c=o-s*T7,_=i,h=Math.floor(_/T7),b=_-h*T7;return new Vt(s+1,c+1,h+1,b+1)}function Gxi(l){let i=KA(l);return zb(i.length-1,i[i.length-1].length)}var C2,T7,dX=Ht(()=>{Bl();ca();Ole();C2=0;T7=2**26});var yW,lht,mii,sot=Ht(()=>{ca();dX();yW=class l{static fromModelContentChanges(i){return i.map(s=>{let c=Vt.lift(s.range);return new l(_fe(c.getStartPosition()),_fe(c.getEndPosition()),Gxi(s.text))}).reverse()}constructor(i,o,s){this.startOffset=i,this.endOffset=o,this.newLength=s}toString(){return`[${hL(this.startOffset)}...${hL(this.endOffset)}) -> ${hL(this.newLength)}`}},lht=class{constructor(i){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=i.map(o=>mii.from(o))}getOffsetBeforeChange(i){return this.adjustNextEdit(i),this.translateCurToOld(i)}getDistanceToNextChange(i){this.adjustNextEdit(i);let o=this.edits[this.nextEditIdx],s=o?this.translateOldToCur(o.offsetObj):null;return s===null?null:VAe(i,s)}translateOldToCur(i){return i.lineCount===this.deltaLineIdxInOld?zb(i.lineCount+this.deltaOldToNewLineCount,i.columnCount+this.deltaOldToNewColumnCount):zb(i.lineCount+this.deltaOldToNewLineCount,i.columnCount)}translateCurToOld(i){let o=hL(i);return o.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?zb(o.lineCount-this.deltaOldToNewLineCount,o.columnCount-this.deltaOldToNewColumnCount):zb(o.lineCount-this.deltaOldToNewLineCount,o.columnCount)}adjustNextEdit(i){for(;this.nextEditIdx{uht=[],R2=class l{static create(i,o){if(i<=128&&o.length===0){let s=l.cache[i];return s||(s=new l(i,o),l.cache[i]=s),s}return new l(i,o)}static getEmpty(){return this.empty}constructor(i,o){this.items=i,this.additionalItems=o}add(i,o){let s=o.getKey(i),c=s>>5;if(c===0){let h=1<{Pl();_W();dX();HAe();aot=class{get length(){return this._length}constructor(i){this._length=i}},cot=class l extends aot{static create(i,o,s){let c=i.length;return o&&(c=Oy(c,o.length)),s&&(c=Oy(c,s.length)),new l(c,i,o,s,o?o.missingOpeningBracketIds:R2.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(i){switch(i){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){let i=[];return i.push(this.openingBracket),this.child&&i.push(this.child),this.closingBracket&&i.push(this.closingBracket),i}constructor(i,o,s,c,_){super(i),this.openingBracket=o,this.child=s,this.closingBracket=c,this.missingOpeningBracketIds=_}canBeReused(i){return!(this.closingBracket===null||i.intersects(this.missingOpeningBracketIds))}deepClone(){return new l(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(i,o){return this.child?this.child.computeMinIndentation(Oy(i,this.openingBracket.length),o):Number.MAX_SAFE_INTEGER}},E7=class extends aot{static create23(i,o,s,c=!1){let _=i.length,h=i.missingOpeningBracketIds;if(i.listHeight!==o.listHeight)throw new Error("Invalid list heights");if(_=Oy(_,o.length),h=h.merge(o.missingOpeningBracketIds),s){if(i.listHeight!==s.listHeight)throw new Error("Invalid list heights");_=Oy(_,s.length),h=h.merge(s.missingOpeningBracketIds)}return c?new gii(_,i.listHeight+1,i,o,s,h):new lot(_,i.listHeight+1,i,o,s,h)}static getEmpty(){return new yii(C2,0,[],R2.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(i,o,s){super(i),this.listHeight=o,this._missingOpeningBracketIds=s,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();let i=this.childrenLength;if(i===0)return;let o=this.getChild(i-1),s=o.kind===4?o.toMutable():o;return o!==s&&this.setChild(i-1,s),s}makeFirstElementMutable(){if(this.throwIfImmutable(),this.childrenLength===0)return;let o=this.getChild(0),s=o.kind===4?o.toMutable():o;return o!==s&&this.setChild(0,s),s}canBeReused(i){if(i.intersects(this.missingOpeningBracketIds)||this.childrenLength===0)return!1;let o=this;for(;o.kind===4;){let s=o.childrenLength;if(s===0)throw new C_;o=o.getChild(s-1)}return o.canBeReused(i)}handleChildrenChanged(){this.throwIfImmutable();let i=this.childrenLength,o=this.getChild(0).length,s=this.getChild(0).missingOpeningBracketIds;for(let c=1;c{Pl();iAe();fot();dX();HAe();QG=class{constructor(i,o,s,c,_){this.length=i,this.kind=o,this.bracketId=s,this.bracketIds=c,this.astNode=_}},ALe=class{constructor(i,o){this.textModel=i,this.bracketTokens=o,this.reader=new vii(this.textModel,this.bracketTokens),this._offset=C2,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=i.getLineCount(),this.textBufferLastLineLength=i.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return zb(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(i){this.didPeek=!1,this._offset=Oy(this._offset,i);let o=hL(this._offset);this.reader.setPosition(o.lineCount,o.columnCount)}read(){let i;return this.peeked?(this.didPeek=!1,i=this.peeked):i=this.reader.read(),i&&(this._offset=Oy(this._offset,i.length)),i}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}},vii=class{constructor(i,o){this.textModel=i,this.bracketTokens=o,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=i.getLineCount(),this.textBufferLastLineLength=i.getLineLength(this.textBufferLineCount)}setPosition(i,o){i===this.lineIdx?(this.lineCharOffset=o,this.line!==null&&(this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=i,this.lineCharOffset=o,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){let _=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=_.length,_}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));let i=this.lineIdx,o=this.lineCharOffset,s=0;for(;;){let _=this.lineTokens,h=_.getCount(),b=null;if(this.lineTokenOffset1e3))break;if(s>1500)break}let c=Jxi(i,o,this.lineIdx,this.lineCharOffset);return new QG(c,0,-1,R2.getEmpty(),new YG(c))}},_ht=class{constructor(i,o){this.text=i,this._offset=C2,this.idx=0;let s=o.getRegExpStr(),c=s?new RegExp(s+`| +`,"gi"):null,_=[],h,b=0,w=0,D=0,O=0,j=[];for(let K=0;K<60;K++)j.push(new QG(zb(0,K),0,-1,R2.getEmpty(),new YG(zb(0,K))));let F=[];for(let K=0;K<60;K++)F.push(new QG(zb(1,K),0,-1,R2.getEmpty(),new YG(zb(1,K))));if(c)for(c.lastIndex=0;(h=c.exec(i))!==null;){let K=h.index,re=h[0];if(re===` +`)b++,w=K+1;else{if(D!==K){let Pe;if(O===b){let Le=K-D;if(Le{Bl();fot();dX();HAe();pht();bii=class l{static createFromLanguage(i,o){function s(_){return o.getKey(`${_.languageId}:::${_.bracketText}`)}let c=new Map;for(let _ of i.bracketsNew.openingBrackets){let h=zb(0,_.bracketText.length),b=s(_),w=R2.getEmpty().add(b,hii);c.set(_.bracketText,new QG(h,1,b,w,dot.create(h,_,w)))}for(let _ of i.bracketsNew.closingBrackets){let h=zb(0,_.bracketText.length),b=R2.getEmpty(),w=_.getOpeningBrackets();for(let D of w)b=b.add(s(D),hii);c.set(_.bracketText,new QG(h,2,s(w[0]),b,dot.create(h,_,b)))}return new l(c)}constructor(i){this.map=i,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{let i=[...this.map.keys()];return i.sort(),i.reverse(),i.map(o=>IBi(o)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){let i=this.getRegExpStr();this._regExpGlobal=i?new RegExp(i,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(i){return this.map.get(i.toLowerCase())}findClosingTokenText(i){for(let[o,s]of this.map)if(s.kind===2&&s.bracketIds.intersects(i))return o}get isEmpty(){return this.map.size===0}};PLe=class{constructor(i,o){this.denseKeyProvider=i,this.getLanguageConfiguration=o,this.languageIdToBracketTokens=new Map}didLanguageChange(i){return this.languageIdToBracketTokens.has(i)}getSingleLanguageBracketTokens(i){let o=this.languageIdToBracketTokens.get(i);return o||(o=bii.createFromLanguage(this.getLanguageConfiguration(i),this.denseKeyProvider),this.languageIdToBracketTokens.set(i,o)),o}}});function Xxi(l){if(l.length===0)return null;if(l.length===1)return l[0];let i=0;function o(){if(i>=l.length)return null;let h=i,b=l[h].listHeight;for(i++;i=2?Cii(h===0&&i===l.length?l:l.slice(h,i),!1):l[h]}let s=o(),c=o();if(!c)return s;for(let h=o();h;h=o())Kxi(s,c)<=Kxi(c,h)?(s=xii(s,c),c=h):c=xii(c,h);return xii(s,c)}function Cii(l,i=!1){if(l.length===0)return null;if(l.length===1)return l[0];let o=l.length;for(;o>3;){let s=o>>1;for(let c=0;c=3?l[2]:null,i)}function Kxi(l,i){return Math.abs(l.listHeight-i.listHeight)}function xii(l,i){return l.listHeight===i.listHeight?E7.create23(l,i,null,!1):l.listHeight>i.listHeight?NBi(l,i):ABi(i,l)}function NBi(l,i){l=l.toMutable();let o=l,s=[],c;for(;;){if(i.listHeight===o.listHeight){c=i;break}if(o.kind!==4)throw new Error("unexpected");s.push(o),o=o.makeLastElementMutable()}for(let _=s.length-1;_>=0;_--){let h=s[_];c?h.childrenLength>=3?c=E7.create23(h.unappendChild(),c,null,!1):(h.appendChildOfSameHeight(c),c=void 0):h.handleChildrenChanged()}return c?E7.create23(l,c,null,!1):l}function ABi(l,i){l=l.toMutable();let o=l,s=[];for(;i.listHeight!==o.listHeight;){if(o.kind!==4)throw new Error("unexpected");s.push(o),o=o.makeFirstElementMutable()}let c=i;for(let _=s.length-1;_>=0;_--){let h=s[_];c?h.childrenLength>=3?c=E7.create23(c,h.unprependChild(),null,!1):(h.prependChildOfSameHeight(c),c=void 0):h.handleChildrenChanged()}return c?E7.create23(c,l,null,!1):l}var Yxi=Ht(()=>{fot()});function kii(l,i=-1){for(;;){if(i++,i>=l.childrenLength)return-1;if(l.getChild(i))return i}}function _ot(l){return l.length>0?l[l.length-1]:void 0}var mht,Qxi=Ht(()=>{dX();mht=class{constructor(i){this.lastOffset=C2,this.nextNodes=[i],this.offsets=[C2],this.idxs=[]}readLongestNodeAt(i,o){if(Xle(i,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=i;;){let s=_ot(this.nextNodes);if(!s)return;let c=_ot(this.offsets);if(Xle(i,c))return;if(Xle(c,i))if(Oy(c,s.length)<=i)this.nextNodeAfterCurrent();else{let _=kii(s);_!==-1?(this.nextNodes.push(s.getChild(_)),this.offsets.push(c),this.idxs.push(_)):this.nextNodeAfterCurrent()}else{if(o(s))return this.nextNodeAfterCurrent(),s;{let _=kii(s);if(_===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(s.getChild(_)),this.offsets.push(c),this.idxs.push(_)}}}}nextNodeAfterCurrent(){for(;;){let i=_ot(this.offsets),o=_ot(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;let s=_ot(this.nextNodes),c=kii(s,this.idxs[this.idxs.length-1]);if(c!==-1){this.nextNodes.push(s.getChild(c)),this.offsets.push(Oy(i,o.length)),this.idxs[this.idxs.length-1]=c;break}else this.idxs.pop()}}}});function pot(l,i,o,s){return new wii(l,i,o,s).parseDocument()}var wii,Tii=Ht(()=>{fot();sot();HAe();dX();Yxi();Qxi();wii=class{constructor(i,o,s,c){if(this.tokenizer=i,this.createImmutableLists=c,this._itemsConstructed=0,this._itemsFromCache=0,s&&c)throw new Error("Not supported");this.oldNodeReader=s?new mht(s):void 0,this.positionMapper=new lht(o)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let i=this.parseList(R2.getEmpty(),0);return i||(i=E7.getEmpty()),i}parseList(i,o){let s=[];for(;;){let _=this.tryReadChildFromCache(i);if(!_){let h=this.tokenizer.peek();if(!h||h.kind===2&&h.bracketIds.intersects(i))break;_=this.parseChild(i,o+1)}_.kind===4&&_.childrenLength===0||s.push(_)}return this.oldNodeReader?Xxi(s):Cii(s,this.createImmutableLists)}tryReadChildFromCache(i){if(this.oldNodeReader){let o=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(o===null||!DLe(o)){let s=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),c=>o!==null&&!Xle(c.length,o)?!1:c.canBeReused(i));if(s)return this._itemsFromCache++,this.tokenizer.skip(s.length),s}}}parseChild(i,o){this._itemsConstructed++;let s=this.tokenizer.read();switch(s.kind){case 2:return new fht(s.bracketIds,s.length);case 0:return s.astNode;case 1:{if(o>300)return new YG(s.length);let c=i.merge(s.bracketIds),_=this.parseList(c,o+1),h=this.tokenizer.peek();return h&&h.kind===2&&(h.bracketId===s.bracketId||h.bracketIds.intersects(s.bracketIds))?(this.tokenizer.read(),cot.create(s.astNode,_,h.astNode)):cot.create(s.astNode,_,null)}default:throw new Error("unexpected")}}}});function LLe(l,i){if(l.length===0)return i;if(i.length===0)return l;let o=new nP(Zxi(l)),s=Zxi(i);s.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let c=o.dequeue();function _(D){if(D===void 0){let j=o.takeWhile(F=>!0)||[];return c&&j.unshift(c),j}let O=[];for(;c&&!DLe(D);){let[j,F]=c.splitAt(D);O.push(j),D=VAe(j.lengthAfter,D),c=F??o.dequeue()}return DLe(D)||O.push(new mot(!1,D,D)),O}let h=[];function b(D,O,j){if(h.length>0&&pii(h[h.length-1].endOffset,D)){let F=h[h.length-1];h[h.length-1]=new yW(F.startOffset,O,Oy(F.newLength,j))}else h.push({startOffset:D,endOffset:O,newLength:j})}let w=C2;for(let D of s){let O=_(D.lengthBefore);if(D.modified){let j=$xi(O,X=>X.lengthBefore),F=Oy(w,j);b(w,F,D.lengthAfter),w=F}else for(let j of O){let F=w;w=Oy(w,j.lengthBefore),j.modified&&b(F,w,j.lengthAfter)}}return h}function Zxi(l){let i=[],o=C2;for(let s of l){let c=VAe(o,s.startOffset);DLe(c)||i.push(new mot(!1,c,c));let _=VAe(s.startOffset,s.endOffset);i.push(new mot(!0,_,s.newLength)),o=s.endOffset}return i}var mot,Eii=Ht(()=>{su();sot();dX();mot=class l{constructor(i,o,s){this.modified=i,this.lengthBefore=o,this.lengthAfter=s}splitAt(i){let o=VAe(i,this.lengthAfter);return pii(o,C2)?[this,void 0]:this.modified?[new l(this.modified,this.lengthBefore,i),new l(this.modified,C2,o)]:[new l(this.modified,i,i),new l(this.modified,o,o)]}toString(){return`${this.modified?"M":"U"}:${hL(this.lengthBefore)} -> ${hL(this.lengthAfter)}`}}});function eCi(l,i,o,s){if(l.kind===4||l.kind===2){let c=[];for(let _ of l.children)o=Oy(i,_.length),c.push({nodeOffsetStart:i,nodeOffsetEnd:o}),i=o;for(let _=c.length-1;_>=0;_--){let{nodeOffsetStart:h,nodeOffsetEnd:b}=c[_];if(Xle(h,s)){let w=eCi(l.children[_],h,b,s);if(w)return w}}return null}else{if(l.kind===3)return null;if(l.kind===1){let c=pfe(i,o);return{bracketInfo:l.bracketInfo,range:c}}}return null}function tCi(l,i,o,s){if(l.kind===4||l.kind===2){for(let c of l.children){if(o=Oy(i,c.length),Xle(s,o)){let _=tCi(c,i,o,s);if(_)return _}i=o}return null}else{if(l.kind===3)return null;if(l.kind===1){let c=pfe(i,o);return{bracketInfo:l.bracketInfo,range:c}}}return null}function Dii(l,i,o,s,c,_,h,b,w,D,O=!1){if(h>200)return!0;e:for(;;)switch(l.kind){case 4:{let j=l.childrenLength;for(let F=0;F200)return!0;let D=!0;if(l.kind===2){let O=0;if(b){let X=b.get(l.openingBracket.text);X===void 0&&(X=0),O=X,X++,b.set(l.openingBracket.text,X)}let j=Oy(i,l.openingBracket.length),F=-1;if(_.includeMinIndentation&&(F=l.computeMinIndentation(i,_.textModel)),D=_.push(new cht(pfe(i,o),pfe(i,j),l.closingBracket?pfe(Oy(j,((w=l.child)===null||w===void 0?void 0:w.length)||C2),o):void 0,h,O,l,F)),i=j,D&&l.child){let X=l.child;if(o=Oy(i,X.length),ffe(i,c)&&ILe(o,s)&&(D=Nii(X,i,o,s,c,_,h+1,b),!D))return!1}b?.set(l.openingBracket.text,O)}else{let O=i;for(let j of l.children){let F=O;if(O=Oy(O,j.length),ffe(F,c)&&ffe(s,O)&&(D=Nii(j,F,O,s,c,_,h,b),!D))return!1}}return D}var hht,Iii,iCi=Ht(()=>{Pa();$r();Uxi();sot();Sii();dX();Tii();HAe();pht();su();Eii();hht=class extends Ui{didLanguageChange(i){return this.brackets.didLanguageChange(i)}constructor(i,o){if(super(),this.textModel=i,this.getLanguageConfiguration=o,this.didChangeEmitter=new fn,this.denseKeyProvider=new NLe,this.brackets=new PLe(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],i.tokenization.hasTokens)i.tokenization.backgroundTokenizationState===2?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{let s=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),c=new _ht(this.textModel.getValue(),s);this.initialAstWithoutTokens=pot(c,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(this.textModel.tokenization.backgroundTokenizationState===2){let i=this.initialAstWithoutTokens===void 0;this.initialAstWithoutTokens=void 0,i||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:i}){let o=i.map(s=>new yW(zb(s.fromLineNumber-1,0),zb(s.toLineNumber,0),zb(s.toLineNumber-s.fromLineNumber+1,0)));this.handleEdits(o,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(i){let o=yW.fromModelContentChanges(i.changes);this.handleEdits(o,!1)}handleEdits(i,o){let s=LLe(this.queuedTextEdits,i);this.queuedTextEdits=s,this.initialAstWithoutTokens&&!o&&(this.queuedTextEditsForInitialAstWithoutTokens=LLe(this.queuedTextEditsForInitialAstWithoutTokens,i))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(i,o,s){let _=o,h=new ALe(this.textModel,this.brackets);return pot(h,i,_,s)}getBracketsInRange(i,o){this.flushQueue();let s=zb(i.startLineNumber-1,i.startColumn-1),c=zb(i.endLineNumber-1,i.endColumn-1);return new wG(_=>{let h=this.initialAstWithoutTokens||this.astWithTokens;Dii(h,C2,h.length,s,c,_,0,0,new Map,o)})}getBracketPairsInRange(i,o){this.flushQueue();let s=_fe(i.getStartPosition()),c=_fe(i.getEndPosition());return new wG(_=>{let h=this.initialAstWithoutTokens||this.astWithTokens,b=new Iii(_,o,this.textModel);Nii(h,C2,h.length,s,c,b,0,new Map)})}getFirstBracketAfter(i){this.flushQueue();let o=this.initialAstWithoutTokens||this.astWithTokens;return tCi(o,C2,o.length,_fe(i))}getFirstBracketBefore(i){this.flushQueue();let o=this.initialAstWithoutTokens||this.astWithTokens;return eCi(o,C2,o.length,_fe(i))}};Iii=class{constructor(i,o,s){this.push=i,this.includeMinIndentation=o,this.textModel=s}}});function PBi(l,i){return{object:l,dispose:()=>i?.dispose()}}function Aii(l){if(typeof l>"u")return()=>!0;{let i=Date.now();return()=>Date.now()-i<=l}}function ght(l){return l instanceof ZG?null:l}var yht,ZG,nCi=Ht(()=>{su();Pa();$r();ca();h6e();Znt();iCi();yht=class extends Ui{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(i,o){super(),this.textModel=i,this.languageConfigurationService=o,this.bracketPairsTree=this._register(new Nh),this.onDidChangeEmitter=new fn,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(s=>{var c;(!s.languageId||!((c=this.bracketPairsTree.value)===null||c===void 0)&&c.object.didLanguageChange(s.languageId))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}handleDidChangeOptions(i){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(i){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(i){var o;(o=this.bracketPairsTree.value)===null||o===void 0||o.object.handleContentChanged(i)}handleDidChangeBackgroundTokenizationState(){var i;(i=this.bracketPairsTree.value)===null||i===void 0||i.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(i){var o;(o=this.bracketPairsTree.value)===null||o===void 0||o.object.handleDidChangeTokens(i)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){let i=new pr;this.bracketPairsTree.value=PBi(i.add(new hht(this.textModel,o=>this.languageConfigurationService.getLanguageConfiguration(o))),i),i.add(this.bracketPairsTree.value.object.onDidChange(o=>this.onDidChangeEmitter.fire(o))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(i){var o;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((o=this.bracketPairsTree.value)===null||o===void 0?void 0:o.object.getBracketPairsInRange(i,!1))||wG.empty}getBracketPairsInRangeWithMinIndentation(i){var o;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((o=this.bracketPairsTree.value)===null||o===void 0?void 0:o.object.getBracketPairsInRange(i,!0))||wG.empty}getBracketsInRange(i,o=!1){var s;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((s=this.bracketPairsTree.value)===null||s===void 0?void 0:s.object.getBracketsInRange(i,o))||wG.empty}findMatchingBracketUp(i,o,s){let c=this.textModel.validatePosition(o),_=this.textModel.getLanguageIdAtPosition(c.lineNumber,c.column);if(this.canBuildAST){let h=this.languageConfigurationService.getLanguageConfiguration(_).bracketsNew.getClosingBracketInfo(i);if(!h)return null;let b=this.getBracketPairsInRange(Vt.fromPositions(o,o)).findLast(w=>h.closes(w.openingBracketInfo));return b?b.openingBracketRange:null}else{let h=i.toLowerCase(),b=this.languageConfigurationService.getLanguageConfiguration(_).brackets;if(!b)return null;let w=b.textIsBracket[h];return w?ght(this._findMatchingBracketUp(w,c,Aii(s))):null}}matchBracket(i,o){if(this.canBuildAST){let s=this.getBracketPairsInRange(Vt.fromPositions(i,i)).filter(c=>c.closingBracketRange!==void 0&&(c.openingBracketRange.containsPosition(i)||c.closingBracketRange.containsPosition(i))).findLastMaxBy(Sw(c=>c.openingBracketRange.containsPosition(i)?c.openingBracketRange:c.closingBracketRange,Vt.compareRangesUsingStarts));return s?[s.openingBracketRange,s.closingBracketRange]:null}else{let s=Aii(o);return this._matchBracket(this.textModel.validatePosition(i),s)}}_establishBracketSearchOffsets(i,o,s,c){let _=o.getCount(),h=o.getLanguageId(c),b=Math.max(0,i.column-1-s.maxBracketLength);for(let D=c-1;D>=0;D--){let O=o.getEndOffset(D);if(O<=b)break;if(Zj(o.getStandardTokenType(D))||o.getLanguageId(D)!==h){b=O;break}}let w=Math.min(o.getLineContent().length,i.column-1+s.maxBracketLength);for(let D=c+1;D<_;D++){let O=o.getStartOffset(D);if(O>=w)break;if(Zj(o.getStandardTokenType(D))||o.getLanguageId(D)!==h){w=O;break}}return{searchStartOffset:b,searchEndOffset:w}}_matchBracket(i,o){let s=i.lineNumber,c=this.textModel.tokenization.getLineTokens(s),_=this.textModel.getLineContent(s),h=c.findTokenIndexAtOffset(i.column-1);if(h<0)return null;let b=this.languageConfigurationService.getLanguageConfiguration(c.getLanguageId(h)).brackets;if(b&&!Zj(c.getStandardTokenType(h))){let{searchStartOffset:w,searchEndOffset:D}=this._establishBracketSearchOffsets(i,c,b,h),O=null;for(;;){let j=WL.findNextBracketInRange(b.forwardRegex,s,_,w,D);if(!j)break;if(j.startColumn<=i.column&&i.column<=j.endColumn){let F=_.substring(j.startColumn-1,j.endColumn-1).toLowerCase(),X=this._matchFoundBracket(j,b.textIsBracket[F],b.textIsOpenBracket[F],o);if(X){if(X instanceof ZG)return null;O=X}}w=j.endColumn-1}if(O)return O}if(h>0&&c.getStartOffset(h)===i.column-1){let w=h-1,D=this.languageConfigurationService.getLanguageConfiguration(c.getLanguageId(w)).brackets;if(D&&!Zj(c.getStandardTokenType(w))){let{searchStartOffset:O,searchEndOffset:j}=this._establishBracketSearchOffsets(i,c,D,w),F=WL.findPrevBracketInRange(D.reversedRegex,s,_,O,j);if(F&&F.startColumn<=i.column&&i.column<=F.endColumn){let X=_.substring(F.startColumn-1,F.endColumn-1).toLowerCase(),K=this._matchFoundBracket(F,D.textIsBracket[X],D.textIsOpenBracket[X],o);if(K)return K instanceof ZG?null:K}}}return null}_matchFoundBracket(i,o,s,c){if(!o)return null;let _=s?this._findMatchingBracketDown(o,i.getEndPosition(),c):this._findMatchingBracketUp(o,i.getStartPosition(),c);return _?_ instanceof ZG?_:[i,_]:null}_findMatchingBracketUp(i,o,s){let c=i.languageId,_=i.reversedRegex,h=-1,b=0,w=(D,O,j,F)=>{for(;;){if(s&&++b%100===0&&!s())return ZG.INSTANCE;let X=WL.findPrevBracketInRange(_,D,O,j,F);if(!X)break;let K=O.substring(X.startColumn-1,X.endColumn-1).toLowerCase();if(i.isOpen(K)?h++:i.isClose(K)&&h--,h===0)return X;F=X.startColumn-1}return null};for(let D=o.lineNumber;D>=1;D--){let O=this.textModel.tokenization.getLineTokens(D),j=O.getCount(),F=this.textModel.getLineContent(D),X=j-1,K=F.length,re=F.length;D===o.lineNumber&&(X=O.findTokenIndexAtOffset(o.column-1),K=o.column-1,re=o.column-1);let Pe=!0;for(;X>=0;X--){let Le=O.getLanguageId(X)===c&&!Zj(O.getStandardTokenType(X));if(Le)Pe?K=O.getStartOffset(X):(K=O.getStartOffset(X),re=O.getEndOffset(X));else if(Pe&&K!==re){let Je=w(D,F,K,re);if(Je)return Je}Pe=Le}if(Pe&&K!==re){let Le=w(D,F,K,re);if(Le)return Le}}return null}_findMatchingBracketDown(i,o,s){let c=i.languageId,_=i.forwardRegex,h=1,b=0,w=(O,j,F,X)=>{for(;;){if(s&&++b%100===0&&!s())return ZG.INSTANCE;let K=WL.findNextBracketInRange(_,O,j,F,X);if(!K)break;let re=j.substring(K.startColumn-1,K.endColumn-1).toLowerCase();if(i.isOpen(re)?h++:i.isClose(re)&&h--,h===0)return K;F=K.endColumn-1}return null},D=this.textModel.getLineCount();for(let O=o.lineNumber;O<=D;O++){let j=this.textModel.tokenization.getLineTokens(O),F=j.getCount(),X=this.textModel.getLineContent(O),K=0,re=0,Pe=0;O===o.lineNumber&&(K=j.findTokenIndexAtOffset(o.column-1),re=o.column-1,Pe=o.column-1);let Le=!0;for(;K=1;b--){let w=this.textModel.tokenization.getLineTokens(b),D=w.getCount(),O=this.textModel.getLineContent(b),j=D-1,F=O.length,X=O.length;if(b===s.lineNumber){j=w.findTokenIndexAtOffset(s.column-1),F=s.column-1,X=s.column-1;let re=w.getLanguageId(j);c!==re&&(c=re,_=this.languageConfigurationService.getLanguageConfiguration(c).brackets,h=this.languageConfigurationService.getLanguageConfiguration(c).bracketsNew)}let K=!0;for(;j>=0;j--){let re=w.getLanguageId(j);if(c!==re){if(_&&h&&K&&F!==X){let Le=WL.findPrevBracketInRange(_.reversedRegex,b,O,F,X);if(Le)return this._toFoundBracket(h,Le);K=!1}c=re,_=this.languageConfigurationService.getLanguageConfiguration(c).brackets,h=this.languageConfigurationService.getLanguageConfiguration(c).bracketsNew}let Pe=!!_&&!Zj(w.getStandardTokenType(j));if(Pe)K?F=w.getStartOffset(j):(F=w.getStartOffset(j),X=w.getEndOffset(j));else if(h&&_&&K&&F!==X){let Le=WL.findPrevBracketInRange(_.reversedRegex,b,O,F,X);if(Le)return this._toFoundBracket(h,Le)}K=Pe}if(h&&_&&K&&F!==X){let re=WL.findPrevBracketInRange(_.reversedRegex,b,O,F,X);if(re)return this._toFoundBracket(h,re)}}return null}findNextBracket(i){var o;let s=this.textModel.validatePosition(i);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),((o=this.bracketPairsTree.value)===null||o===void 0?void 0:o.object.getFirstBracketAfter(s))||null;let c=this.textModel.getLineCount(),_=null,h=null,b=null;for(let w=s.lineNumber;w<=c;w++){let D=this.textModel.tokenization.getLineTokens(w),O=D.getCount(),j=this.textModel.getLineContent(w),F=0,X=0,K=0;if(w===s.lineNumber){F=D.findTokenIndexAtOffset(s.column-1),X=s.column-1,K=s.column-1;let Pe=D.getLanguageId(F);_!==Pe&&(_=Pe,h=this.languageConfigurationService.getLanguageConfiguration(_).brackets,b=this.languageConfigurationService.getLanguageConfiguration(_).bracketsNew)}let re=!0;for(;Fre.closingBracketRange!==void 0&&re.range.strictContainsRange(X));return K?[K.openingBracketRange,K.closingBracketRange]:null}let c=Aii(o),_=this.textModel.getLineCount(),h=new Map,b=[],w=(X,K)=>{if(!h.has(X)){let re=[];for(let Pe=0,Le=K?K.brackets.length:0;Pe{for(;;){if(c&&++D%100===0&&!c())return ZG.INSTANCE;let Je=WL.findNextBracketInRange(X.forwardRegex,K,re,Pe,Le);if(!Je)break;let Ye=re.substring(Je.startColumn-1,Je.endColumn-1).toLowerCase(),ft=X.textIsBracket[Ye];if(ft&&(ft.isOpen(Ye)?b[ft.index]++:ft.isClose(Ye)&&b[ft.index]--,b[ft.index]===-1))return this._matchFoundBracket(Je,ft,!1,c);Pe=Je.endColumn-1}return null},j=null,F=null;for(let X=s.lineNumber;X<=_;X++){let K=this.textModel.tokenization.getLineTokens(X),re=K.getCount(),Pe=this.textModel.getLineContent(X),Le=0,Je=0,Ye=0;if(X===s.lineNumber){Le=K.findTokenIndexAtOffset(s.column-1),Je=s.column-1,Ye=s.column-1;let Ct=K.getLanguageId(Le);j!==Ct&&(j=Ct,F=this.languageConfigurationService.getLanguageConfiguration(j).brackets,w(j,F))}let ft=!0;for(;Le{Pa();$r();ca();bj();_g();vht=class extends Ui{constructor(i){super(),this.textModel=i,this.colorProvider=new bht,this.onDidChangeEmitter=new fn,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=i.getOptions().bracketPairColorizationOptions,this._register(i.bracketPairs.onDidChange(o=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(i){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(i,o,s,c){return c?[]:o===void 0?[]:this.colorizationOptions.enabled?this.textModel.bracketPairs.getBracketsInRange(i,!0).map(h=>({id:`bracket${h.range.toString()}-${h.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(h,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:h.range})).toArray():[]}getAllDecorations(i,o){return i===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new Vt(1,1,this.textModel.getLineCount(),1),i,o):[]}},bht=class{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(i,o){return i.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(o?i.nestingLevelOfEqualBracketType:i.nestingLevel)}getInlineClassNameOfLevel(i){return`bracket-highlighting-${i%30}`}};WC((l,i)=>{let o=[Wpt,zpt,Vpt,Hpt,Upt,Jpt],s=new bht;i.addRule(`.monaco-editor .${s.unexpectedClosingBracketClassName} { color: ${l.getColor(vSi)}; }`);let c=o.map(_=>l.getColor(_)).filter(_=>!!_).filter(_=>!_.isTransparent());for(let _=0;_<30;_++){let h=c[_%c.length];i.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(_)} { color: ${h}; }`)}})});function Sht(l){return l.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}function oCi(l,i){return l===null||l.length===0?i:new Pii(l,i).compress()}var D7,Pii,Lii=Ht(()=>{y6e();Ele();D7=class l{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(i,o,s,c){this.oldPosition=i,this.oldText=o,this.newPosition=s,this.newText=c}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${Sht(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${Sht(this.oldText)}")`:`(replace@${this.oldPosition} "${Sht(this.oldText)}" with "${Sht(this.newText)}")`}static _writeStringSize(i){return 4+2*i.length}static _writeString(i,o,s){let c=o.length;cj(i,c,s),s+=4;for(let _=0;_l.length)return!1;if(o){if(!Y4e(l,i))return!1;if(i.length===l.length)return!0;let _=i.length;return i.charAt(i.length-1)===s&&_--,l.charAt(_)===s}return i.charAt(i.length-1)!==s&&(i+=s),l.indexOf(i)===0}function aCi(l){return l>=65&&l<=90||l>=97&&l<=122}function cCi(l,i=Ny){return i?aCi(l.charCodeAt(0))&&l.charCodeAt(1)===58:!1}var xht=Ht(()=>{DG();uf();Bl()});function eK(l){return hnt(l,!0)}var got,kv,Gwn,Kwn,OLe,Xwn,Ywn,dCi,YD,fCi,hfe,_Ci,pCi,mCi,Mii,Qwn,lCi,uCi,Zwn,eTn,fX,_I=Ht(()=>{xht();cI();DG();uf();Bl();Lh();got=class{constructor(i){this._ignorePathCasing=i}compare(i,o,s=!1){return i===o?0:Sde(this.getComparisonKey(i,s),this.getComparisonKey(o,s))}isEqual(i,o,s=!1){return i===o?!0:!i||!o?!1:this.getComparisonKey(i,s)===this.getComparisonKey(o,s)}getComparisonKey(i,o=!1){return i.with({path:this._ignorePathCasing(i)?i.path.toLowerCase():void 0,fragment:o?null:void 0}).toString()}isEqualOrParent(i,o,s=!1){if(i.scheme===o.scheme){if(i.scheme===Kl.file)return hot(eK(i),eK(o),this._ignorePathCasing(i))&&i.query===o.query&&(s||i.fragment===o.fragment);if(lCi(i.authority,o.authority))return hot(i.path,o.path,this._ignorePathCasing(i),"/")&&i.query===o.query&&(s||i.fragment===o.fragment)}return!1}joinPath(i,...o){return Ka.joinPath(i,...o)}basenameOrAuthority(i){return YD(i)||i.authority}basename(i){return F1.basename(i.path)}extname(i){return F1.extname(i.path)}dirname(i){if(i.path.length===0)return i;let o;return i.scheme===Kl.file?o=Ka.file(Fut(eK(i))).path:(o=F1.dirname(i.path),i.authority&&o.length&&o.charCodeAt(0)!==47&&(console.error(`dirname("${i.toString})) resulted in a relative path`),o="/")),i.with({path:o})}normalizePath(i){if(!i.path.length)return i;let o;return i.scheme===Kl.file?o=Ka.file(Out(eK(i))).path:o=F1.normalize(i.path),i.with({path:o})}relativePath(i,o){if(i.scheme!==o.scheme||!lCi(i.authority,o.authority))return;if(i.scheme===Kl.file){let _=Fgi(eK(i),eK(o));return Ny?Oii(_):_}let s=i.path||"/",c=o.path||"/";if(this._ignorePathCasing(i)){let _=0;for(let h=Math.min(s.length,c.length);_Fii(s).length&&s[s.length-1]===o}else{let s=i.path;return s.length>1&&s.charCodeAt(s.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(i.fsPath)}}removeTrailingPathSeparator(i,o=OF){return uCi(i,o)?i.with({path:i.path.substr(0,i.path.length-1)}):i}addTrailingPathSeparator(i,o=OF){let s=!1;if(i.scheme===Kl.file){let c=eK(i);s=c!==void 0&&c.length===Fii(c).length&&c[c.length-1]===o}else{o="/";let c=i.path;s=c.length===1&&c.charCodeAt(c.length-1)===47}return!s&&!uCi(i,o)?i.with({path:i.path+"/"}):i}},kv=new got(()=>!1),Gwn=new got(l=>l.scheme===Kl.file?!w1:!0),Kwn=new got(l=>!0),OLe=kv.isEqual.bind(kv),Xwn=kv.isEqualOrParent.bind(kv),Ywn=kv.getComparisonKey.bind(kv),dCi=kv.basenameOrAuthority.bind(kv),YD=kv.basename.bind(kv),fCi=kv.extname.bind(kv),hfe=kv.dirname.bind(kv),_Ci=kv.joinPath.bind(kv),pCi=kv.normalizePath.bind(kv),mCi=kv.relativePath.bind(kv),Mii=kv.resolvePath.bind(kv),Qwn=kv.isAbsolutePath.bind(kv),lCi=kv.isEqualAuthority.bind(kv),uCi=kv.hasTrailingPathSeparator.bind(kv),Zwn=kv.removeTrailingPathSeparator.bind(kv),eTn=kv.addTrailingPathSeparator.bind(kv);(function(l){l.META_DATA_LABEL="label",l.META_DATA_DESCRIPTION="description",l.META_DATA_SIZE="size",l.META_DATA_MIME="mime";function i(o){let s=new Map;o.path.substring(o.path.indexOf(";")+1,o.path.lastIndexOf(";")).split(";").forEach(h=>{let[b,w]=h.split(":");b&&w&&s.set(b,w)});let _=o.path.substring(0,o.path.indexOf(";"));return _&&s.set(l.META_DATA_MIME,_),s}l.parseMetaData=i})(fX||(fX={}))});function FLe(l){return l.toString()}function Bii(l){return l.getEOL()===` +`?0:1}function _X(l){return l?l instanceof Cht||l instanceof Rii:!1}var GF,Cht,Rii,kht,jii=Ht(()=>{Fs();Pl();hg();Lh();Lii();y6e();_I();GF=class l{static create(i,o){let s=i.getAlternativeVersionId(),c=Bii(i);return new l(s,s,c,c,o,o,[])}constructor(i,o,s,c,_,h,b){this.beforeVersionId=i,this.afterVersionId=o,this.beforeEOL=s,this.afterEOL=c,this.beforeCursorState=_,this.afterCursorState=h,this.changes=b}append(i,o,s,c,_){o.length>0&&(this.changes=oCi(this.changes,o)),this.afterEOL=s,this.afterVersionId=c,this.afterCursorState=_}static _writeSelectionsSize(i){return 4+4*4*(i?i.length:0)}static _writeSelections(i,o,s){if(cj(i,o?o.length:0,s),s+=4,o)for(let c of o)cj(i,c.selectionStartLineNumber,s),s+=4,cj(i,c.selectionStartColumn,s),s+=4,cj(i,c.positionLineNumber,s),s+=4,cj(i,c.positionColumn,s),s+=4;return s}static _readSelections(i,o,s){let c=aj(i,o);o+=4;for(let _=0;_o.toString()).join(", ")}matchesResource(i){return(Ka.isUri(this.model)?this.model:this.model.uri).toString()===i.toString()}setModel(i){this.model=i}canAppend(i){return this.model===i&&this._data instanceof GF}append(i,o,s,c,_){this._data instanceof GF&&this._data.append(i,o,s,c,_)}close(){this._data instanceof GF&&(this._data=this._data.serialize())}open(){this._data instanceof GF||(this._data=GF.deserialize(this._data))}undo(){if(Ka.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof GF&&(this._data=this._data.serialize());let i=GF.deserialize(this._data);this.model._applyUndo(i.changes,i.beforeEOL,i.beforeVersionId,i.beforeCursorState)}redo(){if(Ka.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof GF&&(this._data=this._data.serialize());let i=GF.deserialize(this._data);this.model._applyRedo(i.changes,i.afterEOL,i.afterVersionId,i.afterCursorState)}heapSize(){return this._data instanceof GF&&(this._data=this._data.serialize()),this._data.byteLength+168}},Rii=class{get resources(){return this._editStackElementsArr.map(i=>i.resource)}constructor(i,o,s){this.label=i,this.code=o,this.type=1,this._isOpen=!0,this._editStackElementsArr=s.slice(0),this._editStackElementsMap=new Map;for(let c of this._editStackElementsArr){let _=FLe(c.resource);this._editStackElementsMap.set(_,c)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(i){let o=FLe(i);return this._editStackElementsMap.has(o)}setModel(i){let o=FLe(Ka.isUri(i)?i:i.uri);this._editStackElementsMap.has(o)&&this._editStackElementsMap.get(o).setModel(i)}canAppend(i){if(!this._isOpen)return!1;let o=FLe(i.uri);return this._editStackElementsMap.has(o)?this._editStackElementsMap.get(o).canAppend(i):!1}append(i,o,s,c,_){let h=FLe(i.uri);this._editStackElementsMap.get(h).append(i,o,s,c,_)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(let i of this._editStackElementsArr)i.undo()}redo(){for(let i of this._editStackElementsArr)i.redo()}heapSize(i){let o=FLe(i);return this._editStackElementsMap.has(o)?this._editStackElementsMap.get(o).heapSize():0}split(){return this._editStackElementsArr}toString(){let i=[];for(let o of this._editStackElementsArr)i.push(`${YD(o.resource)}: ${o}`);return`{${i.join(", ")}}`}};kht=class l{constructor(i,o){this._model=i,this._undoRedoService=o}pushStackElement(){let i=this._undoRedoService.getLastElement(this._model.uri);_X(i)&&i.close()}popStackElement(){let i=this._undoRedoService.getLastElement(this._model.uri);_X(i)&&i.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(i,o){let s=this._undoRedoService.getLastElement(this._model.uri);if(_X(s)&&s.canAppend(this._model))return s;let c=new Cht(de("edit","Typing"),"undoredo.textBufferEdit",this._model,i);return this._undoRedoService.pushElement(c,o),c}pushEOL(i){let o=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(i),o.append(this._model,[],Bii(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(i,o,s,c){let _=this._getOrCreateEditStackElement(i,c),h=this._model.applyEdits(o,!0),b=l._computeCursorState(s,h),w=h.map((D,O)=>({index:O,textChange:D.textChange}));return w.sort((D,O)=>D.textChange.oldPosition===O.textChange.oldPosition?D.index-O.index:D.textChange.oldPosition-O.textChange.oldPosition),_.append(this._model,w.map(D=>D.textChange),Bii(this._model),this._model.getAlternativeVersionId(),b),b}static _computeCursorState(i,o){try{return i?i(o):null}catch(s){return Sc(s),null}}}});function FBi(l,i,o,s,c){c.spacesDiff=0,c.looksLikeAlignment=!1;let _;for(_=0;_0&&b>0||w>0&&D>0)return;let O=Math.abs(b-D),j=Math.abs(h-w);if(O===0){c.spacesDiff=j,j>0&&0<=w-1&&w-10?c++:ft>1&&_++,FBi(h,b,Pe,Ye,j),j.looksLikeAlignment&&!(o&&i===j.spacesDiff)))continue;let Et=j.spacesDiff;Et<=D&&O[Et]++,h=Pe,b=Ye}let F=o;c!==_&&(F=c<_);let X=i;if(F){let K=F?0:.1*s;w.forEach(re=>{let Pe=O[re];Pe>K&&(K=Pe,X=re)}),X===4&&O[4]>0&&O[2]>0&&O[2]>=O[4]/2&&(X=2)}return{insertSpaces:F,tabSize:X}}var Wii,hCi=Ht(()=>{Wii=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}});function GL(l){return(l.metadata&1)>>>0}function Pv(l,i){l.metadata=l.metadata&254|i<<0}function pI(l){return(l.metadata&2)>>>1===1}function wv(l,i){l.metadata=l.metadata&253|(i?1:0)<<1}function CCi(l){return(l.metadata&4)>>>2===1}function gCi(l,i){l.metadata=l.metadata&251|(i?1:0)<<2}function kCi(l){return(l.metadata&64)>>>6===1}function yCi(l,i){l.metadata=l.metadata&191|(i?1:0)<<6}function MBi(l){return(l.metadata&24)>>>3}function vCi(l,i){l.metadata=l.metadata&231|i<<3}function RBi(l){return(l.metadata&32)>>>5===1}function bCi(l,i){l.metadata=l.metadata&223|(i?1:0)<<5}function BBi(l){let i=l.root,o=0;for(;i!==J_;){if(i.left!==J_&&!pI(i.left)){i=i.left;continue}if(i.right!==J_&&!pI(i.right)){o+=i.delta,i=i.right;continue}i.start=o+i.start,i.end=o+i.end,i.delta=0,Yle(i),wv(i,!0),wv(i.left,!1),wv(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent}wv(l.root,!1)}function MLe(l,i,o,s){return lo||s===1?!1:s===2?!0:i}function jBi(l,i,o,s,c){let _=MBi(l),h=_===0||_===2,b=_===1||_===2,w=o-i,D=s,O=Math.min(w,D),j=l.start,F=!1,X=l.end,K=!1;i<=j&&X<=o&&RBi(l)&&(l.start=i,F=!0,l.end=i,K=!0);{let Pe=c?1:w>0?2:0;!F&&MLe(j,h,i,Pe)&&(F=!0),!K&&MLe(X,b,i,Pe)&&(K=!0)}if(O>0&&!c){let Pe=w>D?2:0;!F&&MLe(j,h,i+O,Pe)&&(F=!0),!K&&MLe(X,b,i+O,Pe)&&(K=!0)}{let Pe=c?1:0;!F&&MLe(j,h,o,Pe)&&(l.start=i+D,F=!0),!K&&MLe(X,b,o,Pe)&&(l.end=i+D,K=!0)}let re=D-w;F||(l.start=Math.max(0,j+re)),K||(l.end=Math.max(0,X+re)),l.start>l.end&&(l.end=l.start)}function WBi(l,i,o){let s=l.root,c=0,_=0,h=0,b=0,w=[],D=0;for(;s!==J_;){if(pI(s)){wv(s.left,!1),wv(s.right,!1),s===s.parent.right&&(c-=s.parent.delta),s=s.parent;continue}if(!pI(s.left)){if(_=c+s.maxEnd,_o){wv(s,!0);continue}if(b=c+s.end,b>=i&&(s.setCachedOffsets(h,b,0),w[D++]=s),wv(s,!0),s.right!==J_&&!pI(s.right)){c+=s.delta,s=s.right;continue}}return wv(l.root,!1),w}function zBi(l,i,o,s){let c=l.root,_=0,h=0,b=0,w=s-(o-i);for(;c!==J_;){if(pI(c)){wv(c.left,!1),wv(c.right,!1),c===c.parent.right&&(_-=c.parent.delta),Yle(c),c=c.parent;continue}if(!pI(c.left)){if(h=_+c.maxEnd,ho){c.start+=w,c.end+=w,c.delta+=w,(c.delta<-1073741824||c.delta>1073741824)&&(l.requestNormalizeDelta=!0),wv(c,!0);continue}if(wv(c,!0),c.right!==J_&&!pI(c.right)){_+=c.delta,c=c.right;continue}}wv(l.root,!1)}function VBi(l,i){let o=l.root,s=[],c=0;for(;o!==J_;){if(pI(o)){wv(o.left,!1),wv(o.right,!1),o=o.parent;continue}if(o.left!==J_&&!pI(o.left)){o=o.left;continue}if(o.ownerId===i&&(s[c++]=o),wv(o,!0),o.right!==J_&&!pI(o.right)){o=o.right;continue}}return wv(l.root,!1),s}function HBi(l){let i=l.root,o=[],s=0;for(;i!==J_;){if(pI(i)){wv(i.left,!1),wv(i.right,!1),i=i.parent;continue}if(i.left!==J_&&!pI(i.left)){i=i.left;continue}if(i.right!==J_&&!pI(i.right)){i=i.right;continue}o[s++]=i,wv(i,!0)}return wv(l.root,!1),o}function UBi(l,i,o,s,c){let _=l.root,h=0,b=0,w=0,D=[],O=0;for(;_!==J_;){if(pI(_)){wv(_.left,!1),wv(_.right,!1),_===_.parent.right&&(h-=_.parent.delta),_=_.parent;continue}if(_.left!==J_&&!pI(_.left)){_=_.left;continue}b=h+_.start,w=h+_.end,_.setCachedOffsets(b,w,s);let j=!0;if(i&&_.ownerId&&_.ownerId!==i&&(j=!1),o&&CCi(_)&&(j=!1),c&&!kCi(_)&&(j=!1),j&&(D[O++]=_),wv(_,!0),_.right!==J_&&!pI(_.right)){h+=_.delta,_=_.right;continue}}return wv(l.root,!1),D}function JBi(l,i,o,s,c,_,h){let b=l.root,w=0,D=0,O=0,j=0,F=[],X=0;for(;b!==J_;){if(pI(b)){wv(b.left,!1),wv(b.right,!1),b===b.parent.right&&(w-=b.parent.delta),b=b.parent;continue}if(!pI(b.left)){if(D=w+b.maxEnd,Do){wv(b,!0);continue}if(j=w+b.end,j>=i){b.setCachedOffsets(O,j,_);let K=!0;s&&b.ownerId&&b.ownerId!==s&&(K=!1),c&&CCi(b)&&(K=!1),h&&!kCi(b)&&(K=!1),K&&(F[X++]=b)}if(wv(b,!0),b.right!==J_&&!pI(b.right)){w+=b.delta,b=b.right;continue}}return wv(l.root,!1),F}function SCi(l,i){if(l.root===J_)return i.parent=J_,i.left=J_,i.right=J_,Pv(i,0),l.root=i,l.root;qBi(l,i),gfe(i.parent);let o=i;for(;o!==l.root&&GL(o.parent)===1;)if(o.parent===o.parent.parent.left){let s=o.parent.parent.right;GL(s)===1?(Pv(o.parent,0),Pv(s,0),Pv(o.parent.parent,1),o=o.parent.parent):(o===o.parent.right&&(o=o.parent,yot(l,o)),Pv(o.parent,0),Pv(o.parent.parent,1),vot(l,o.parent.parent))}else{let s=o.parent.parent.left;GL(s)===1?(Pv(o.parent,0),Pv(s,0),Pv(o.parent.parent,1),o=o.parent.parent):(o===o.parent.left&&(o=o.parent,vot(l,o)),Pv(o.parent,0),Pv(o.parent.parent,1),yot(l,o.parent.parent))}return Pv(l.root,0),i}function qBi(l,i){let o=0,s=l.root,c=i.start,_=i.end;for(;;)if(GBi(c,_,s.start+o,s.end+o)<0)if(s.left===J_){i.start-=o,i.end-=o,i.maxEnd-=o,s.left=i;break}else s=s.left;else if(s.right===J_){i.start-=o+s.delta,i.end-=o+s.delta,i.maxEnd-=o+s.delta,s.right=i;break}else o+=s.delta,s=s.right;i.parent=s,i.left=J_,i.right=J_,Pv(i,1)}function xCi(l,i){let o,s;if(i.left===J_?(o=i.right,s=i,o.delta+=i.delta,(o.delta<-1073741824||o.delta>1073741824)&&(l.requestNormalizeDelta=!0),o.start+=i.delta,o.end+=i.delta):i.right===J_?(o=i.left,s=i):(s=$Bi(i.right),o=s.right,o.start+=s.delta,o.end+=s.delta,o.delta+=s.delta,(o.delta<-1073741824||o.delta>1073741824)&&(l.requestNormalizeDelta=!0),s.start+=i.delta,s.end+=i.delta,s.delta=i.delta,(s.delta<-1073741824||s.delta>1073741824)&&(l.requestNormalizeDelta=!0)),s===l.root){l.root=o,Pv(o,0),i.detach(),Vii(),Yle(o),l.root.parent=J_;return}let c=GL(s)===1;if(s===s.parent.left?s.parent.left=o:s.parent.right=o,s===i?o.parent=s.parent:(s.parent===i?o.parent=s:o.parent=s.parent,s.left=i.left,s.right=i.right,s.parent=i.parent,Pv(s,GL(i)),i===l.root?l.root=s:i===i.parent.left?i.parent.left=s:i.parent.right=s,s.left!==J_&&(s.left.parent=s),s.right!==J_&&(s.right.parent=s)),i.detach(),c){gfe(o.parent),s!==i&&(gfe(s),gfe(s.parent)),Vii();return}gfe(o),gfe(o.parent),s!==i&&(gfe(s),gfe(s.parent));let _;for(;o!==l.root&&GL(o)===0;)o===o.parent.left?(_=o.parent.right,GL(_)===1&&(Pv(_,0),Pv(o.parent,1),yot(l,o.parent),_=o.parent.right),GL(_.left)===0&&GL(_.right)===0?(Pv(_,1),o=o.parent):(GL(_.right)===0&&(Pv(_.left,0),Pv(_,1),vot(l,_),_=o.parent.right),Pv(_,GL(o.parent)),Pv(o.parent,0),Pv(_.right,0),yot(l,o.parent),o=l.root)):(_=o.parent.left,GL(_)===1&&(Pv(_,0),Pv(o.parent,1),vot(l,o.parent),_=o.parent.left),GL(_.left)===0&&GL(_.right)===0?(Pv(_,1),o=o.parent):(GL(_.left)===0&&(Pv(_.right,0),Pv(_,1),yot(l,_),_=o.parent.left),Pv(_,GL(o.parent)),Pv(o.parent,0),Pv(_.left,0),vot(l,o.parent),o=l.root));Pv(o,0),Vii()}function $Bi(l){for(;l.left!==J_;)l=l.left;return l}function Vii(){J_.parent=J_,J_.delta=0,J_.start=0,J_.end=0}function yot(l,i){let o=i.right;o.delta+=i.delta,(o.delta<-1073741824||o.delta>1073741824)&&(l.requestNormalizeDelta=!0),o.start+=i.delta,o.end+=i.delta,i.right=o.left,o.left!==J_&&(o.left.parent=i),o.parent=i.parent,i.parent===J_?l.root=o:i===i.parent.left?i.parent.left=o:i.parent.right=o,o.left=i,i.parent=o,Yle(i),Yle(o)}function vot(l,i){let o=i.left;i.delta-=o.delta,(i.delta<-1073741824||i.delta>1073741824)&&(l.requestNormalizeDelta=!0),i.start-=o.delta,i.end-=o.delta,i.left=o.right,o.right!==J_&&(o.right.parent=i),o.parent=i.parent,i.parent===J_?l.root=o:i===i.parent.right?i.parent.right=o:i.parent.left=o,o.right=i,i.parent=o,Yle(i),Yle(o)}function wCi(l){let i=l.end;if(l.left!==J_){let o=l.left.maxEnd;o>i&&(i=o)}if(l.right!==J_){let o=l.right.maxEnd+l.delta;o>i&&(i=o)}return i}function Yle(l){l.maxEnd=wCi(l)}function gfe(l){for(;l!==J_;){let i=wCi(l);if(l.maxEnd===i)return;l.maxEnd=i,l=l.parent}}function GBi(l,i,o,s){return l===o?i-s:l-o}var bot,J_,RLe,TCi=Ht(()=>{bot=class{constructor(i,o,s){this.metadata=0,this.parent=this,this.left=this,this.right=this,Pv(this,1),this.start=o,this.end=s,this.delta=0,this.maxEnd=s,this.id=i,this.ownerId=0,this.options=null,gCi(this,!1),yCi(this,!1),vCi(this,1),bCi(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=o,this.cachedAbsoluteEnd=s,this.range=null,wv(this,!1)}reset(i,o,s,c){this.start=o,this.end=s,this.maxEnd=s,this.cachedVersionId=i,this.cachedAbsoluteStart=o,this.cachedAbsoluteEnd=s,this.range=c}setOptions(i){this.options=i;let o=this.options.className;gCi(this,o==="squiggly-error"||o==="squiggly-warning"||o==="squiggly-info"),yCi(this,this.options.glyphMarginClassName!==null),vCi(this,this.options.stickiness),bCi(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(i,o,s){this.cachedVersionId!==s&&(this.range=null),this.cachedVersionId=s,this.cachedAbsoluteStart=i,this.cachedAbsoluteEnd=o}detach(){this.parent=null,this.left=null,this.right=null}},J_=new bot(null,0,0);J_.parent=J_;J_.left=J_;J_.right=J_;Pv(J_,0);RLe=class{constructor(){this.root=J_,this.requestNormalizeDelta=!1}intervalSearch(i,o,s,c,_,h){return this.root===J_?[]:JBi(this,i,o,s,c,_,h)}search(i,o,s,c){return this.root===J_?[]:UBi(this,i,o,s,c)}collectNodesFromOwner(i){return VBi(this,i)}collectNodesPostOrder(){return HBi(this)}insert(i){SCi(this,i),this._normalizeDeltaIfNecessary()}delete(i){xCi(this,i),this._normalizeDeltaIfNecessary()}resolveNode(i,o){let s=i,c=0;for(;i!==this.root;)i===i.parent.right&&(c+=i.parent.delta),i=i.parent;let _=s.start+c,h=s.end+c;s.setCachedOffsets(_,h,o)}acceptReplace(i,o,s,c){let _=WBi(this,i,i+o);for(let h=0,b=_.length;h{BLe=class{constructor(i,o){this.piece=i,this.color=o,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==lf)return wht(this.right);let i=this;for(;i.parent!==lf&&i.parent.left!==i;)i=i.parent;return i.parent===lf?lf:i.parent}prev(){if(this.left!==lf)return Uii(this.left);let i=this;for(;i.parent!==lf&&i.parent.right!==i;)i=i.parent;return i.parent===lf?lf:i.parent}detach(){this.parent=null,this.left=null,this.right=null}},lf=new BLe(null,0);lf.parent=lf;lf.left=lf;lf.right=lf;lf.color=0});function DCi(l){let i;return l[l.length-1]<65536?i=new Uint16Array(l.length):i=new Uint32Array(l.length),i.set(l,0),i}function mX(l,i=!0){let o=[0],s=1;for(let c=0,_=l.length;c<_;c++){let h=l.charCodeAt(c);h===13?c+1<_&&l.charCodeAt(c+1)===10?(o[s++]=c+2,c++):o[s++]=c+1:h===10&&(o[s++]=c+1)}return i?DCi(o):o}function ICi(l,i){l.length=0,l[0]=0;let o=1,s=0,c=0,_=0,h=!0;for(let w=0,D=i.length;w126)&&(h=!1)}let b=new Gii(DCi(l),s,c,_,h);return l.length=0,b}var Qle,Gii,gL,hX,Kii,Xii,Tht,Yii=Ht(()=>{Ll();ca();b2();ECi();srt();Qle=65535;Gii=class{constructor(i,o,s,c,_){this.lineStarts=i,this.cr=o,this.lf=s,this.crlf=c,this.isBasicASCII=_}};gL=class{constructor(i,o,s,c,_){this.bufferIndex=i,this.start=o,this.end=s,this.lineFeedCnt=c,this.length=_}},hX=class{constructor(i,o){this.buffer=i,this.lineStarts=o}},Kii=class{constructor(i,o){this._pieces=[],this._tree=i,this._BOM=o,this._index=0,i.root!==lf&&i.iterate(i.root,s=>(s!==lf&&this._pieces.push(s.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}},Xii=class{constructor(i){this._limit=i,this._cache=[]}get(i){for(let o=this._cache.length-1;o>=0;o--){let s=this._cache[o];if(s.nodeStartOffset<=i&&s.nodeStartOffset+s.node.piece.length>=i)return s}return null}get2(i){for(let o=this._cache.length-1;o>=0;o--){let s=this._cache[o];if(s.nodeStartLineNumber&&s.nodeStartLineNumber=i)return s}return null}set(i){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(i)}validate(i){let o=!1,s=this._cache;for(let c=0;c=i){s[c]=null,o=!0;continue}}if(o){let c=[];for(let _ of s)_!==null&&c.push(_);this._cache=c}}},Tht=class{constructor(i,o,s){this.create(i,o,s)}create(i,o,s){this._buffers=[new hX("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=lf,this._lineCnt=1,this._length=0,this._EOL=o,this._EOLLength=o.length,this._EOLNormalized=s;let c=null;for(let _=0,h=i.length;_0){i[_].lineStarts||(i[_].lineStarts=mX(i[_].buffer));let b=new gL(_+1,{line:0,column:0},{line:i[_].lineStarts.length-1,column:i[_].buffer.length-i[_].lineStarts[i[_].lineStarts.length-1]},i[_].lineStarts.length-1,i[_].buffer.length);this._buffers.push(i[_]),c=this.rbInsertRight(c,b)}this._searchCache=new Xii(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(i){let o=Qle,s=o-Math.floor(o/3),c=s*2,_="",h=0,b=[];if(this.iterate(this.root,w=>{let D=this.getNodeContent(w),O=D.length;if(h<=s||h+O0){let w=_.replace(/\r\n|\r|\n/g,i);b.push(new hX(w,mX(w)))}this.create(b,i,!0)}getEOL(){return this._EOL}setEOL(i){this._EOL=i,this._EOLLength=this._EOL.length,this.normalizeEOL(i)}createSnapshot(i){return new Kii(this,i)}getOffsetAt(i,o){let s=0,c=this.root;for(;c!==lf;)if(c.left!==lf&&c.lf_left+1>=i)c=c.left;else if(c.lf_left+c.piece.lineFeedCnt+1>=i){s+=c.size_left;let _=this.getAccumulatedValue(c,i-c.lf_left-2);return s+=_+o-1}else i-=c.lf_left+c.piece.lineFeedCnt,s+=c.size_left+c.piece.length,c=c.right;return s}getPositionAt(i){i=Math.floor(i),i=Math.max(0,i);let o=this.root,s=0,c=i;for(;o!==lf;)if(o.size_left!==0&&o.size_left>=i)o=o.left;else if(o.size_left+o.piece.length>=i){let _=this.getIndexOf(o,i-o.size_left);if(s+=o.lf_left+_.index,_.index===0){let h=this.getOffsetAt(s+1,1),b=c-h;return new Cn(s+1,b+1)}return new Cn(s+1,_.remainder+1)}else if(i-=o.size_left+o.piece.length,s+=o.lf_left+o.piece.lineFeedCnt,o.right===lf){let _=this.getOffsetAt(s+1,1),h=c-i-_;return new Cn(s+1,h+1)}else o=o.right;return new Cn(1,1)}getValueInRange(i,o){if(i.startLineNumber===i.endLineNumber&&i.startColumn===i.endColumn)return"";let s=this.nodeAt2(i.startLineNumber,i.startColumn),c=this.nodeAt2(i.endLineNumber,i.endColumn),_=this.getValueInRange2(s,c);return o?o!==this._EOL||!this._EOLNormalized?_.replace(/\r\n|\r|\n/g,o):o===this.getEOL()&&this._EOLNormalized?_:_.replace(/\r\n|\r|\n/g,o):_}getValueInRange2(i,o){if(i.node===o.node){let b=i.node,w=this._buffers[b.piece.bufferIndex].buffer,D=this.offsetInBuffer(b.piece.bufferIndex,b.piece.start);return w.substring(D+i.remainder,D+o.remainder)}let s=i.node,c=this._buffers[s.piece.bufferIndex].buffer,_=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start),h=c.substring(_+i.remainder,_+s.piece.length);for(s=s.next();s!==lf;){let b=this._buffers[s.piece.bufferIndex].buffer,w=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start);if(s===o.node){h+=b.substring(w,w+o.remainder);break}else h+=b.substr(w,s.piece.length);s=s.next()}return h}getLinesContent(){let i=[],o=0,s="",c=!1;return this.iterate(this.root,_=>{if(_===lf)return!0;let h=_.piece,b=h.length;if(b===0)return!0;let w=this._buffers[h.bufferIndex].buffer,D=this._buffers[h.bufferIndex].lineStarts,O=h.start.line,j=h.end.line,F=D[O]+h.start.column;if(c&&(w.charCodeAt(F)===10&&(F++,b--),i[o++]=s,s="",c=!1,b===0))return!0;if(O===j)return!this._EOLNormalized&&w.charCodeAt(F+b-1)===13?(c=!0,s+=w.substr(F,b-1)):s+=w.substr(F,b),!0;s+=this._EOLNormalized?w.substring(F,Math.max(F,D[O+1]-this._EOLLength)):w.substring(F,D[O+1]).replace(/(\r\n|\r|\n)$/,""),i[o++]=s;for(let X=O+1;Xft+K,o.reset(0)):(Je=F.buffer,Ye=ft=>ft,o.reset(K));do if(Pe=o.next(Je),Pe){if(Ye(Pe.index)>=re)return O;this.positionInBuffer(i,Ye(Pe.index)-X,Le);let ft=this.getLineFeedCnt(i.piece.bufferIndex,_,Le),Ct=Le.line===_.line?Le.column-_.column+c:Le.column+1,Et=Ct+Pe[0].length;if(j[O++]=jde(new Vt(s+ft,Ct,s+ft,Et),Pe,w),Ye(Pe.index)+Pe[0].length>=re||O>=D)return O}while(Pe);return O}findMatchesLineByLine(i,o,s,c){let _=[],h=0,b=new qK(o.wordSeparators,o.regex),w=this.nodeAt2(i.startLineNumber,i.startColumn);if(w===null)return[];let D=this.nodeAt2(i.endLineNumber,i.endColumn);if(D===null)return[];let O=this.positionInBuffer(w.node,w.remainder),j=this.positionInBuffer(D.node,D.remainder);if(w.node===D.node)return this.findMatchesInNode(w.node,b,i.startLineNumber,i.startColumn,O,j,o,s,c,h,_),_;let F=i.startLineNumber,X=w.node;for(;X!==D.node;){let re=this.getLineFeedCnt(X.piece.bufferIndex,O,X.piece.end);if(re>=1){let Le=this._buffers[X.piece.bufferIndex].lineStarts,Je=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start),Ye=Le[O.line+re],ft=F===i.startLineNumber?i.startColumn:1;if(h=this.findMatchesInNode(X,b,F,ft,O,this.positionInBuffer(X,Ye-Je),o,s,c,h,_),h>=c)return _;F+=re}let Pe=F===i.startLineNumber?i.startColumn-1:0;if(F===i.endLineNumber){let Le=this.getLineContent(F).substring(Pe,i.endColumn-1);return h=this._findMatchesInLine(o,b,Le,i.endLineNumber,Pe,h,_,s,c),_}if(h=this._findMatchesInLine(o,b,this.getLineContent(F).substr(Pe),F,Pe,h,_,s,c),h>=c)return _;F++,w=this.nodeAt2(F,1),X=w.node,O=this.positionInBuffer(w.node,w.remainder)}if(F===i.endLineNumber){let re=F===i.startLineNumber?i.startColumn-1:0,Pe=this.getLineContent(F).substring(re,i.endColumn-1);return h=this._findMatchesInLine(o,b,Pe,i.endLineNumber,re,h,_,s,c),_}let K=F===i.startLineNumber?i.startColumn:1;return h=this.findMatchesInNode(D.node,b,F,K,O,j,o,s,c,h,_),_}_findMatchesInLine(i,o,s,c,_,h,b,w,D){let O=i.wordSeparators;if(!w&&i.simpleSearch){let F=i.simpleSearch,X=F.length,K=s.length,re=-X;for(;(re=s.indexOf(F,re+X))!==-1;)if((!O||v_t(O,s,K,re,X))&&(b[h++]=new JK(new Vt(c,re+1+_,c,re+1+X+_),null),h>=D))return h;return h}let j;o.reset(0);do if(j=o.next(s),j&&(b[h++]=jde(new Vt(c,j.index+1+_,c,j.index+1+j[0].length+_),j,w),h>=D))return h;while(j);return h}insert(i,o,s=!1){if(this._EOLNormalized=this._EOLNormalized&&s,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==lf){let{node:c,remainder:_,nodeStartOffset:h}=this.nodeAt(i),b=c.piece,w=b.bufferIndex,D=this.positionInBuffer(c,_);if(c.piece.bufferIndex===0&&b.end.line===this._lastChangeBufferPos.line&&b.end.column===this._lastChangeBufferPos.column&&h+b.length===i&&o.lengthi){let O=[],j=new gL(b.bufferIndex,D,b.end,this.getLineFeedCnt(b.bufferIndex,D,b.end),this.offsetInBuffer(w,b.end)-this.offsetInBuffer(w,D));if(this.shouldCheckCRLF()&&this.endWithCR(o)&&this.nodeCharCodeAt(c,_)===10){let re={line:j.start.line+1,column:0};j=new gL(j.bufferIndex,re,j.end,this.getLineFeedCnt(j.bufferIndex,re,j.end),j.length-1),o+=` +`}if(this.shouldCheckCRLF()&&this.startWithLF(o))if(this.nodeCharCodeAt(c,_-1)===13){let re=this.positionInBuffer(c,_-1);this.deleteNodeTail(c,re),o="\r"+o,c.piece.length===0&&O.push(c)}else this.deleteNodeTail(c,D);else this.deleteNodeTail(c,D);let F=this.createNewPieces(o);j.length>0&&this.rbInsertRight(c,j);let X=c;for(let K=0;K=0;h--)_=this.rbInsertLeft(_,c[h]);this.validateCRLFWithPrevNode(_),this.deleteNodes(s)}insertContentToNodeRight(i,o){this.adjustCarriageReturnFromNext(i,o)&&(i+=` +`);let s=this.createNewPieces(i),c=this.rbInsertRight(o,s[0]),_=c;for(let h=1;h=F)D=j+1;else break;return s?(s.line=j,s.column=w-X,null):{line:j,column:w-X}}getLineFeedCnt(i,o,s){if(s.column===0)return s.line-o.line;let c=this._buffers[i].lineStarts;if(s.line===c.length-1)return s.line-o.line;let _=c[s.line+1],h=c[s.line]+s.column;if(_>h+1)return s.line-o.line;let b=h-1;return this._buffers[i].buffer.charCodeAt(b)===13?s.line-o.line+1:s.line-o.line}offsetInBuffer(i,o){return this._buffers[i].lineStarts[o.line]+o.column}deleteNodes(i){for(let o=0;oQle){let O=[];for(;i.length>Qle;){let F=i.charCodeAt(Qle-1),X;F===13||F>=55296&&F<=56319?(X=i.substring(0,Qle-1),i=i.substring(Qle-1)):(X=i.substring(0,Qle),i=i.substring(Qle));let K=mX(X);O.push(new gL(this._buffers.length,{line:0,column:0},{line:K.length-1,column:X.length-K[K.length-1]},K.length-1,X.length)),this._buffers.push(new hX(X,K))}let j=mX(i);return O.push(new gL(this._buffers.length,{line:0,column:0},{line:j.length-1,column:i.length-j[j.length-1]},j.length-1,i.length)),this._buffers.push(new hX(i,j)),O}let o=this._buffers[0].buffer.length,s=mX(i,!1),c=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===o&&o!==0&&this.startWithLF(i)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},c=this._lastChangeBufferPos;for(let O=0;O=i-1)s=s.left;else if(s.lf_left+s.piece.lineFeedCnt>i-1){let w=this.getAccumulatedValue(s,i-s.lf_left-2),D=this.getAccumulatedValue(s,i-s.lf_left-1),O=this._buffers[s.piece.bufferIndex].buffer,j=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start);return h+=s.size_left,this._searchCache.set({node:s,nodeStartOffset:h,nodeStartLineNumber:b-(i-1-s.lf_left)}),O.substring(j+w,j+D-o)}else if(s.lf_left+s.piece.lineFeedCnt===i-1){let w=this.getAccumulatedValue(s,i-s.lf_left-2),D=this._buffers[s.piece.bufferIndex].buffer,O=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start);c=D.substring(O+w,O+s.piece.length);break}else i-=s.lf_left+s.piece.lineFeedCnt,h+=s.size_left+s.piece.length,s=s.right}for(s=s.next();s!==lf;){let h=this._buffers[s.piece.bufferIndex].buffer;if(s.piece.lineFeedCnt>0){let b=this.getAccumulatedValue(s,0),w=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start);return c+=h.substring(w,w+b-o),c}else{let b=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start);c+=h.substr(b,s.piece.length)}s=s.next()}return c}computeBufferMetadata(){let i=this.root,o=1,s=0;for(;i!==lf;)o+=i.lf_left+i.piece.lineFeedCnt,s+=i.size_left+i.piece.length,i=i.right;this._lineCnt=o,this._length=s,this._searchCache.validate(this._length)}getIndexOf(i,o){let s=i.piece,c=this.positionInBuffer(i,o),_=c.line-s.start.line;if(this.offsetInBuffer(s.bufferIndex,s.end)-this.offsetInBuffer(s.bufferIndex,s.start)===o){let h=this.getLineFeedCnt(i.piece.bufferIndex,s.start,c);if(h!==_)return{index:h,remainder:0}}return{index:_,remainder:c.column}}getAccumulatedValue(i,o){if(o<0)return 0;let s=i.piece,c=this._buffers[s.bufferIndex].lineStarts,_=s.start.line+o+1;return _>s.end.line?c[s.end.line]+s.end.column-c[s.start.line]-s.start.column:c[_]-c[s.start.line]-s.start.column}deleteNodeTail(i,o){let s=i.piece,c=s.lineFeedCnt,_=this.offsetInBuffer(s.bufferIndex,s.end),h=o,b=this.offsetInBuffer(s.bufferIndex,h),w=this.getLineFeedCnt(s.bufferIndex,s.start,h),D=w-c,O=b-_,j=s.length+O;i.piece=new gL(s.bufferIndex,s.start,h,w,j),pX(this,i,O,D)}deleteNodeHead(i,o){let s=i.piece,c=s.lineFeedCnt,_=this.offsetInBuffer(s.bufferIndex,s.start),h=o,b=this.getLineFeedCnt(s.bufferIndex,h,s.end),w=this.offsetInBuffer(s.bufferIndex,h),D=b-c,O=_-w,j=s.length+O;i.piece=new gL(s.bufferIndex,h,s.end,b,j),pX(this,i,O,D)}shrinkNode(i,o,s){let c=i.piece,_=c.start,h=c.end,b=c.length,w=c.lineFeedCnt,D=o,O=this.getLineFeedCnt(c.bufferIndex,c.start,D),j=this.offsetInBuffer(c.bufferIndex,o)-this.offsetInBuffer(c.bufferIndex,_);i.piece=new gL(c.bufferIndex,c.start,D,O,j),pX(this,i,j-b,O-w);let F=new gL(c.bufferIndex,s,h,this.getLineFeedCnt(c.bufferIndex,s,h),this.offsetInBuffer(c.bufferIndex,h)-this.offsetInBuffer(c.bufferIndex,s)),X=this.rbInsertRight(i,F);this.validateCRLFWithPrevNode(X)}appendToNode(i,o){this.adjustCarriageReturnFromNext(o,i)&&(o+=` +`);let s=this.shouldCheckCRLF()&&this.startWithLF(o)&&this.endWithCR(i),c=this._buffers[0].buffer.length;this._buffers[0].buffer+=o;let _=mX(o,!1);for(let X=0;X<_.length;X++)_[X]+=c;if(s){let X=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:c-X}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(_.slice(1));let h=this._buffers[0].lineStarts.length-1,b=this._buffers[0].buffer.length-this._buffers[0].lineStarts[h],w={line:h,column:b},D=i.piece.length+o.length,O=i.piece.lineFeedCnt,j=this.getLineFeedCnt(0,i.piece.start,w),F=j-O;i.piece=new gL(i.piece.bufferIndex,i.piece.start,w,j,D),this._lastChangeBufferPos=w,pX(this,i,o.length,F)}nodeAt(i){let o=this.root,s=this._searchCache.get(i);if(s)return{node:s.node,nodeStartOffset:s.nodeStartOffset,remainder:i-s.nodeStartOffset};let c=0;for(;o!==lf;)if(o.size_left>i)o=o.left;else if(o.size_left+o.piece.length>=i){c+=o.size_left;let _={node:o,remainder:i-o.size_left,nodeStartOffset:c};return this._searchCache.set(_),_}else i-=o.size_left+o.piece.length,c+=o.size_left+o.piece.length,o=o.right;return null}nodeAt2(i,o){let s=this.root,c=0;for(;s!==lf;)if(s.left!==lf&&s.lf_left>=i-1)s=s.left;else if(s.lf_left+s.piece.lineFeedCnt>i-1){let _=this.getAccumulatedValue(s,i-s.lf_left-2),h=this.getAccumulatedValue(s,i-s.lf_left-1);return c+=s.size_left,{node:s,remainder:Math.min(_+o-1,h),nodeStartOffset:c}}else if(s.lf_left+s.piece.lineFeedCnt===i-1){let _=this.getAccumulatedValue(s,i-s.lf_left-2);if(_+o-1<=s.piece.length)return{node:s,remainder:_+o-1,nodeStartOffset:c};o-=s.piece.length-_;break}else i-=s.lf_left+s.piece.lineFeedCnt,c+=s.size_left+s.piece.length,s=s.right;for(s=s.next();s!==lf;){if(s.piece.lineFeedCnt>0){let _=this.getAccumulatedValue(s,0),h=this.offsetOfNode(s);return{node:s,remainder:Math.min(o-1,_),nodeStartOffset:h}}else if(s.piece.length>=o-1){let _=this.offsetOfNode(s);return{node:s,remainder:o-1,nodeStartOffset:_}}else o-=s.piece.length;s=s.next()}return null}nodeCharCodeAt(i,o){if(i.piece.lineFeedCnt<1)return-1;let s=this._buffers[i.piece.bufferIndex],c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start)+o;return s.buffer.charCodeAt(c)}offsetOfNode(i){if(!i)return 0;let o=i.size_left;for(;i!==this.root;)i.parent.right===i&&(o+=i.parent.size_left+i.parent.piece.length),i=i.parent;return o}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===` +`)}startWithLF(i){if(typeof i=="string")return i.charCodeAt(0)===10;if(i===lf||i.piece.lineFeedCnt===0)return!1;let o=i.piece,s=this._buffers[o.bufferIndex].lineStarts,c=o.start.line,_=s[c]+o.start.column;return c===s.length-1||s[c+1]>_+1?!1:this._buffers[o.bufferIndex].buffer.charCodeAt(_)===10}endWithCR(i){return typeof i=="string"?i.charCodeAt(i.length-1)===13:i===lf||i.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(i,i.piece.length-1)===13}validateCRLFWithPrevNode(i){if(this.shouldCheckCRLF()&&this.startWithLF(i)){let o=i.prev();this.endWithCR(o)&&this.fixCRLF(o,i)}}validateCRLFWithNextNode(i){if(this.shouldCheckCRLF()&&this.endWithCR(i)){let o=i.next();this.startWithLF(o)&&this.fixCRLF(i,o)}}fixCRLF(i,o){let s=[],c=this._buffers[i.piece.bufferIndex].lineStarts,_;i.piece.end.column===0?_={line:i.piece.end.line-1,column:c[i.piece.end.line]-c[i.piece.end.line-1]-1}:_={line:i.piece.end.line,column:i.piece.end.column-1};let h=i.piece.length-1,b=i.piece.lineFeedCnt-1;i.piece=new gL(i.piece.bufferIndex,i.piece.start,_,b,h),pX(this,i,-1,-1),i.piece.length===0&&s.push(i);let w={line:o.piece.start.line+1,column:0},D=o.piece.length-1,O=this.getLineFeedCnt(o.piece.bufferIndex,w,o.piece.end);o.piece=new gL(o.piece.bufferIndex,w,o.piece.end,O,D),pX(this,o,-1,-1),o.piece.length===0&&s.push(o);let j=this.createNewPieces(`\r +`);this.rbInsertRight(i,j[0]);for(let F=0;F{Pa();Bl();ca();b2();Yii();zAe();Lii();$r();jLe=class l extends Ui{constructor(i,o,s,c,_,h,b){super(),this._onDidChangeContent=this._register(new fn),this._BOM=o,this._mightContainNonBasicASCII=!h,this._mightContainRTL=c,this._mightContainUnusualLineTerminators=_,this._pieceTree=new Tht(i,s,b)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(i){return this._pieceTree.createSnapshot(i?this._BOM:"")}getOffsetAt(i,o){return this._pieceTree.getOffsetAt(i,o)}getPositionAt(i){return this._pieceTree.getPositionAt(i)}getRangeAt(i,o){let s=i+o,c=this.getPositionAt(i),_=this.getPositionAt(s);return new Vt(c.lineNumber,c.column,_.lineNumber,_.column)}getValueInRange(i,o=0){if(i.isEmpty())return"";let s=this._getEndOfLine(o);return this._pieceTree.getValueInRange(i,s)}getValueLengthInRange(i,o=0){if(i.isEmpty())return 0;if(i.startLineNumber===i.endLineNumber)return i.endColumn-i.startColumn;let s=this.getOffsetAt(i.startLineNumber,i.startColumn),c=this.getOffsetAt(i.endLineNumber,i.endColumn),_=0,h=this._getEndOfLine(o),b=this.getEOL();if(h.length!==b.length){let w=h.length-b.length,D=i.endLineNumber-i.startLineNumber;_=w*D}return c-s+_}getCharacterCountInRange(i,o=0){if(this._mightContainNonBasicASCII){let s=0,c=i.startLineNumber,_=i.endLineNumber;for(let h=c;h<=_;h++){let b=this.getLineContent(h),w=h===c?i.startColumn-1:0,D=h===_?i.endColumn-1:b.length;for(let O=w;OPe.sortIndex-Le.sortIndex)}this._mightContainRTL=c,this._mightContainUnusualLineTerminators=_,this._mightContainNonBasicASCII=h;let X=this._doApplyEdits(w),K=null;if(o&&j.length>0){j.sort((re,Pe)=>Pe.lineNumber-re.lineNumber),K=[];for(let re=0,Pe=j.length;re0&&j[re-1].lineNumber===Le)continue;let Je=j[re].oldContent,Ye=this.getLineContent(Le);Ye.length===0||Ye===Je||M1(Ye)!==-1||K.push(Le)}}return this._onDidChangeContent.fire(),new h_t(F,X,K)}_reduceOperations(i){return i.length<1e3?i:[this._toSingleEditOperation(i)]}_toSingleEditOperation(i){let o=!1,s=i[0].range,c=i[i.length-1].range,_=new Vt(s.startLineNumber,s.startColumn,c.endLineNumber,c.endColumn),h=s.startLineNumber,b=s.startColumn,w=[];for(let X=0,K=i.length;X0&&w.push(re.text),h=Pe.endLineNumber,b=Pe.endColumn}let D=w.join(""),[O,j,F]=w7(D);return{sortIndex:0,identifier:i[0].identifier,range:_,rangeOffset:this.getOffsetAt(_.startLineNumber,_.startColumn),rangeLength:this.getValueLengthInRange(_,0),text:D,eolCount:O,firstLineLength:j,lastLineLength:F,forceMoveMarkers:o,isAutoWhitespaceEdit:!1}}_doApplyEdits(i){i.sort(l._sortOpsDescending);let o=[];for(let s=0;s0){let F=w.eolCount+1;F===1?j=new Vt(D,O,D,O+w.firstLineLength):j=new Vt(D,O,D+F-1,w.lastLineLength+1)}else j=new Vt(D,O,D,O);s=j.endLineNumber,c=j.endColumn,o.push(j),_=w}return o}static _sortOpsAscending(i,o){let s=Vt.compareRangesUsingEnds(i.range,o.range);return s===0?i.sortIndex-o.sortIndex:s}static _sortOpsDescending(i,o){let s=Vt.compareRangesUsingEnds(i.range,o.range);return s===0?o.sortIndex-i.sortIndex:-s}}});var Zii,wot,NCi=Ht(()=>{Bl();Yii();Qii();Zii=class{constructor(i,o,s,c,_,h,b,w,D){this._chunks=i,this._bom=o,this._cr=s,this._lf=c,this._crlf=_,this._containsRTL=h,this._containsUnusualLineTerminators=b,this._isBasicASCII=w,this._normalizeEOL=D}_getEOL(i){let o=this._cr+this._lf+this._crlf,s=this._cr+this._crlf;return o===0?i===1?` +`:`\r +`:s>o/2?`\r +`:` +`}create(i){let o=this._getEOL(i),s=this._chunks;if(this._normalizeEOL&&(o===`\r +`&&(this._cr>0||this._lf>0)||o===` +`&&(this._cr>0||this._crlf>0)))for(let _=0,h=s.length;_=55296&&o<=56319?(this._acceptChunk1(i.substr(0,i.length-1),!1),this._hasPreviousChar=!0,this._previousChar=o):(this._acceptChunk1(i,!1),this._hasPreviousChar=!1,this._previousChar=o)}_acceptChunk1(i,o){!o&&i.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+i):this._acceptChunk2(i))}_acceptChunk2(i){let o=ICi(this._tmpLineStarts,i);this.chunks.push(new hX(i,o.lineStarts)),this.cr+=o.cr,this.lf+=o.lf,this.crlf+=o.crlf,o.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=PG(i)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=Vdt(i)))}finish(i=!0){return this._finish(),new Zii(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,i)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let i=this.chunks[this.chunks.length-1];i.buffer+=String.fromCharCode(this._previousChar);let o=mX(i.buffer);i.lineStarts=o,this._previousChar===13&&this.cr++}}}});function KBi(l,i){let o=[];for(let s=0;s{su();Eht=class{constructor(i){this._default=i,this._store=[]}get(i){return i=this._store.length;)this._store[this._store.length]=this._default;this._store[i]=o}replace(i,o,s){if(i>=this._store.length)return;if(o===0){this.insert(i,s);return}else if(s===0){this.delete(i,o);return}let c=this._store.slice(0,i),_=this._store.slice(i+o),h=KBi(s,this._default);this._store=c.concat(h,_)}delete(i,o){o===0||i>=this._store.length||this._store.splice(i,o)}insert(i,o){if(o===0||i>=this._store.length)return;let s=[];for(let c=0;c{Dht=class{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(i,o){this._startLineNumber=i,this._tokens=o}getLineTokens(i){return this._tokens[i-this._startLineNumber]}appendLineTokens(i){this._tokens.push(i)}}});var UAe,eni=Ht(()=>{PCi();UAe=class{constructor(){this._tokens=[]}add(i,o){if(this._tokens.length>0){let s=this._tokens[this._tokens.length-1];if(s.endLineNumber+1===i){s.appendLineTokens(o);return}}this._tokens.push(new Dht(i,[o]))}finalize(){return this._tokens}}});function Tot(l,i,o,s,c,_){let h=null;if(o)try{h=o.tokenizeEncoded(s,c,_.clone())}catch(b){Sc(b)}return h||(h=Jde(l.encodeLanguageId(i),_)),jb.convertToEndOffset(h.tokens,s.length),h}var tni,Iht,WLe,ini,nni,Nht,LCi=Ht(()=>{Bu();Pl();uf();rL();zAe();lL();HL();O6e();ACi();eni();eW();tni=class{constructor(i,o){this.tokenizationSupport=o,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new WLe(i)}getStartState(i){return this.store.getStartState(i,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}},Iht=class extends tni{constructor(i,o,s,c){super(i,o),this._textModel=s,this._languageIdCodec=c}updateTokensUntilLine(i,o){let s=this._textModel.getLanguageId();for(;;){let c=this.getFirstInvalidLine();if(!c||c.lineNumber>o)break;let _=this._textModel.getLineContent(c.lineNumber),h=Tot(this._languageIdCodec,s,this.tokenizationSupport,_,!0,c.startState);i.add(c.lineNumber,h.tokens),this.store.setEndState(c.lineNumber,h.endState)}}getTokenTypeIfInsertingCharacter(i,o){let s=this.getStartState(i.lineNumber);if(!s)return 0;let c=this._textModel.getLanguageId(),_=this._textModel.getLineContent(i.lineNumber),h=_.substring(0,i.column-1)+o+_.substring(i.column-1),b=Tot(this._languageIdCodec,c,this.tokenizationSupport,h,!0,s),w=new jb(b.tokens,h,this._languageIdCodec);if(w.getCount()===0)return 0;let D=w.findTokenIndexAtOffset(i.column-1);return w.getStandardTokenType(D)}tokenizeLineWithEdit(i,o,s){let c=i.lineNumber,_=i.column,h=this.getStartState(c);if(!h)return null;let b=this._textModel.getLineContent(c),w=b.substring(0,_-1)+s+b.substring(_-1+o),D=this._textModel.getLanguageIdAtPosition(c,0),O=Tot(this._languageIdCodec,D,this.tokenizationSupport,w,!0,h);return new jb(O.tokens,w,this._languageIdCodec)}hasAccurateTokensForLine(i){let o=this.store.getFirstInvalidEndStateLineNumberOrMax();return i1&&b>=1;b--){let w=this._textModel.getLineFirstNonWhitespaceColumn(b);if(w!==0&&w0&&s>0&&(s--,o--),this._lineEndStates.replace(i.startLineNumber,s,o)}},nni=class{constructor(){this._ranges=[]}get min(){return this._ranges.length===0?null:this._ranges[0].start}delete(i){let o=this._ranges.findIndex(s=>s.contains(i));if(o!==-1){let s=this._ranges[o];s.start===i?s.endExclusive===i+1?this._ranges.splice(o,1):this._ranges[o]=new Wd(i+1,s.endExclusive):s.endExclusive===i+1?this._ranges[o]=new Wd(s.start,i):this._ranges.splice(o,1,new Wd(s.start,i),new Wd(i+1,s.endExclusive))}}addRange(i){Wd.addRange(i,this._ranges)}addRangeAndResize(i,o){let s=0;for(;!(s>=this._ranges.length||i.start<=this._ranges[s].endExclusive);)s++;let c=s;for(;!(c>=this._ranges.length||i.endExclusivei.toString()).join(" + ")}};Nht=class{constructor(i,o){this._tokenizerWithStateStore=i,this._backgroundTokenStore=o,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._isScheduled||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._isScheduled=!0,PQt(i=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(i)}))}_backgroundTokenizeWithDeadline(i){let o=Date.now()+i.timeRemaining(),s=()=>{this._isDisposed||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()1||this._tokenizeOneInvalidLine(o)>=i)break;while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(o.finalize()),this.checkFinished()}_hasLinesToTokenize(){return this._tokenizerWithStateStore?!this._tokenizerWithStateStore.store.allStatesValid():!1}_tokenizeOneInvalidLine(i){var o;let s=(o=this._tokenizerWithStateStore)===null||o===void 0?void 0:o.getFirstInvalidLine();return s?(this._tokenizerWithStateStore.updateTokensUntilLine(i,s.lineNumber),s.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(i,o){this._tokenizerWithStateStore.store.invalidateEndStateRange(new Iu(i,o))}}});function yX(l){return l instanceof Uint32Array?l:new Uint32Array(l)}var gX,vX,OCi=Ht(()=>{eW();gX=new Uint32Array(0).buffer,vX=class l{static deleteBeginning(i,o){return i===null||i===gX?i:l.delete(i,0,o)}static deleteEnding(i,o){if(i===null||i===gX)return i;let s=yX(i),c=s[s.length-2];return l.delete(i,o,c)}static delete(i,o,s){if(i===null||i===gX||o===s)return i;let c=yX(i),_=c.length>>>1;if(o===0&&c[c.length-2]===s)return gX;let h=jb.findIndexInTokensArray(c,o),b=h>0?c[h-1<<1]:0,w=c[h<<1];if(sO&&(c[D++]=K,c[D++]=c[(X<<1)+1],O=K)}if(D===c.length)return i;let F=new Uint32Array(D);return F.set(c.subarray(0,D),0),F.buffer}static append(i,o){if(o===gX)return i;if(i===gX)return o;if(i===null)return i;if(o===null)return null;let s=yX(i),c=yX(o),_=c.length>>>1,h=new Uint32Array(s.length+c.length);h.set(s,0);let b=s.length,w=s[s.length-2];for(let D=0;D<_;D++)h[b++]=c[D<<1]+w,h[b++]=c[(D<<1)+1];return h.buffer}static insert(i,o,s){if(i===null||i===gX)return i;let c=yX(i),_=c.length>>>1,h=jb.findIndexInTokensArray(c,o);h>0&&c[h-1<<1]===o&&h--;for(let b=h;b<_;b++)c[b<<1]+=s;return i}}});function FCi(l){return(l<<0|0|0|32768|2<<24|1024)>>>0}var Eot,MCi=Ht(()=>{su();Ll();OCi();eW();iAe();Eot=class l{constructor(i){this._lineTokens=[],this._len=0,this._languageIdCodec=i}flush(){this._lineTokens=[],this._len=0}get hasTokens(){return this._lineTokens.length>0}getTokens(i,o,s){let c=null;if(o1&&(_=QS.getLanguageId(c[1])!==i),!_)return gX}if(!c||c.length===0){let _=new Uint32Array(2);return _[0]=o,_[1]=FCi(i),_.buffer}return c[c.length-2]=o,c.byteOffset===0&&c.byteLength===c.buffer.byteLength?c.buffer:c}_ensureLine(i){for(;i>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(i,o){o!==0&&(i+o>this._len&&(o=this._len-i),this._lineTokens.splice(i,o),this._len-=o)}_insertLines(i,o){if(o===0)return;let s=[];for(let c=0;c=this._len)return;if(i.startLineNumber===i.endLineNumber){if(i.startColumn===i.endColumn)return;this._lineTokens[o]=vX.delete(this._lineTokens[o],i.startColumn-1,i.endColumn-1);return}this._lineTokens[o]=vX.deleteEnding(this._lineTokens[o],i.startColumn-1);let s=i.endLineNumber-1,c=null;s=this._len)){if(o===0){this._lineTokens[c]=vX.insert(this._lineTokens[c],i.column-1,s);return}this._lineTokens[c]=vX.deleteEnding(this._lineTokens[c],i.column-1),this._lineTokens[c]=vX.insert(this._lineTokens[c],i.column-1,s),this._insertLines(i.lineNumber,o)}}setMultilineTokens(i,o){if(i.length===0)return{changes:[]};let s=[];for(let c=0,_=i.length;c<_;c++){let h=i[c],b=0,w=0,D=!1;for(let O=h.startLineNumber;O<=h.endLineNumber;O++)D?(this.setTokens(o.getLanguageId(),O-1,o.getLineLength(O),h.getLineTokens(O),!1),w=O):this.setTokens(o.getLanguageId(),O-1,o.getLineLength(O),h.getLineTokens(O),!0)&&(D=!0,b=O,w=O);D&&s.push({fromLineNumber:b,toLineNumber:w})}return{changes:s}}}});var Aht,RCi=Ht(()=>{su();eW();Aht=class l{constructor(i){this._pieces=[],this._isComplete=!1,this._languageIdCodec=i}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(i,o){this._pieces=i||[],this._isComplete=o}setPartial(i,o){let s=i;if(o.length>0){let _=o[0].getRange(),h=o[o.length-1].getRange();if(!_||!h)return i;s=i.plusRange(_).plusRange(h)}let c=null;for(let _=0,h=this._pieces.length;_s.endLineNumber){c=c||{index:_};break}if(b.removeTokens(s),b.isEmpty()){this._pieces.splice(_,1),_--,h--;continue}if(b.endLineNumbers.endLineNumber){c=c||{index:_};continue}let[w,D]=b.split(s);if(w.isEmpty()){c=c||{index:_};continue}D.isEmpty()||(this._pieces.splice(_,1,w,D),_++,h++,c=c||{index:_})}return c=c||{index:this._pieces.length},o.length>0&&(this._pieces=ide(this._pieces,c.index,o)),s}isComplete(){return this._isComplete}addSparseTokens(i,o){if(o.getLineContent().length===0)return o;let s=this._pieces;if(s.length===0)return o;let c=l._findFirstPieceWithLine(s,i),_=s[c].getLineTokens(i);if(!_)return o;let h=o.getCount(),b=_.getCount(),w=0,D=[],O=0,j=0,F=(X,K)=>{X!==j&&(j=X,D[O++]=X,D[O++]=K)};for(let X=0;X>>0,Je=~Le>>>0;for(;wo)c=_-1;else{for(;_>s&&i[_-1].startLineNumber<=o&&o<=i[_-1].endLineNumber;)_--;return _}}return s}acceptEdit(i,o,s,c,_){for(let h of this._pieces)h.acceptEdit(i,o,s,c,_)}}});var Pht,rni,oni,BCi=Ht(()=>{su();Bu();Pl();Pa();$r();zAe();lL();Ll();R4e();Fg();Jti();LCi();eni();MCi();RCi();Pht=class l extends SLe{constructor(i,o,s,c,_,h){super(),this._languageService=i,this._languageConfigurationService=o,this._textModel=s,this._bracketPairsTextModelPart=c,this._languageId=_,this._attachedViews=h,this._semanticTokens=new Aht(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new fn),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new fn),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new fn),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new rni(this._languageService.languageIdCodec,this._textModel,()=>this._languageId,this._attachedViews)),this._register(this._languageConfigurationService.onDidChange(b=>{b.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})})),this._register(this.grammarTokens.onDidChangeTokens(b=>{this._emitModelTokensChangedEvent(b)})),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState(b=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))}handleDidChangeContent(i){if(i.isFlush)this._semanticTokens.flush();else if(!i.isEolChange)for(let o of i.changes){let[s,c,_]=w7(o.text);this._semanticTokens.acceptEdit(o.range,s,c,_,o.text.length>0?o.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(i)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(i){this.validateLineNumber(i);let o=this.grammarTokens.getLineTokens(i);return this._semanticTokens.addSparseTokens(i,o)}_emitModelTokensChangedEvent(i){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(i),this._onDidChangeTokens.fire(i))}validateLineNumber(i){if(i<1||i>this._textModel.getLineCount())throw new C_("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(i){this.validateLineNumber(i),this.grammarTokens.forceTokenization(i)}hasAccurateTokensForLine(i){return this.validateLineNumber(i),this.grammarTokens.hasAccurateTokensForLine(i)}isCheapToTokenize(i){return this.validateLineNumber(i),this.grammarTokens.isCheapToTokenize(i)}tokenizeIfCheap(i){this.validateLineNumber(i),this.grammarTokens.tokenizeIfCheap(i)}getTokenTypeIfInsertingCharacter(i,o,s){return this.grammarTokens.getTokenTypeIfInsertingCharacter(i,o,s)}tokenizeLineWithEdit(i,o,s){return this.grammarTokens.tokenizeLineWithEdit(i,o,s)}setSemanticTokens(i,o){this._semanticTokens.set(i,o),this._emitModelTokensChangedEvent({semanticTokensApplied:i!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(i,o){if(this.hasCompleteSemanticTokens())return;let s=this._textModel.validateRange(this._semanticTokens.setPartial(i,o));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:s.startLineNumber,toLineNumber:s.endLineNumber}]})}getWordAtPosition(i){this.assertNotDisposed();let o=this._textModel.validatePosition(i),s=this._textModel.getLineContent(o.lineNumber),c=this.getLineTokens(o.lineNumber),_=c.findTokenIndexAtOffset(o.column-1),[h,b]=l._findLanguageBoundaries(c,_),w=rde(o.column,this.getLanguageConfiguration(c.getLanguageId(_)).getWordDefinition(),s.substring(h,b),h);if(w&&w.startColumn<=i.column&&i.column<=w.endColumn)return w;if(_>0&&h===o.column-1){let[D,O]=l._findLanguageBoundaries(c,_-1),j=rde(o.column,this.getLanguageConfiguration(c.getLanguageId(_-1)).getWordDefinition(),s.substring(D,O),D);if(j&&j.startColumn<=i.column&&i.column<=j.endColumn)return j}return null}getLanguageConfiguration(i){return this._languageConfigurationService.getLanguageConfiguration(i)}static _findLanguageBoundaries(i,o){let s=i.getLanguageId(o),c=0;for(let h=o;h>=0&&i.getLanguageId(h)===s;h--)c=i.getStartOffset(h);let _=i.getLineContent().length;for(let h=o,b=i.getCount();h{let h=this.getLanguageId();_.changedLanguages.indexOf(h)!==-1&&this.resetTokenization()})),this.resetTokenization(),this._register(c.onDidChangeVisibleRanges(({view:_,state:h})=>{if(h){let b=this._attachedViewStates.get(_);b||(b=new oni(()=>this.refreshRanges(b.lineRanges)),this._attachedViewStates.set(_,b)),b.handleStateChange(h)}else this._attachedViewStates.deleteAndDispose(_)}))}resetTokenization(i=!0){var o;this._tokens.flush(),(o=this._debugBackgroundTokens)===null||o===void 0||o.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new WLe(this._textModel.getLineCount())),i&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});let s=()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];let h=Oh.get(this.getLanguageId());if(!h)return[null,null];let b;try{b=h.getInitialState()}catch(w){return Sc(w),[null,null]}return[h,b]},[c,_]=s();if(c&&_?this._tokenizer=new Iht(this._textModel.getLineCount(),c,this._textModel,this._languageIdCodec):this._tokenizer=null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){let h={setTokens:b=>{this.setTokens(b)},backgroundTokenizationFinished:()=>{if(this._backgroundTokenizationState===2)return;let b=2;this._backgroundTokenizationState=b,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(b,w)=>{var D;if(!this._tokenizer)return;let O=this._tokenizer.store.getFirstInvalidEndStateLineNumber();O!==null&&b>=O&&((D=this._tokenizer)===null||D===void 0||D.store.setEndState(b,w))}};c&&c.createBackgroundTokenizer&&!c.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=c.createBackgroundTokenizer(this._textModel,h)),!this._backgroundTokenizer.value&&!this._textModel.isTooLargeForTokenization()&&(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new Nht(this._tokenizer,h),this._defaultBackgroundTokenizer.handleChanges()),c?.backgroundTokenizerShouldOnlyVerifyTokens&&c.createBackgroundTokenizer?(this._debugBackgroundTokens=new Eot(this._languageIdCodec),this._debugBackgroundStates=new WLe(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=c.createBackgroundTokenizer(this._textModel,{setTokens:b=>{var w;(w=this._debugBackgroundTokens)===null||w===void 0||w.setMultilineTokens(b,this._textModel)},backgroundTokenizationFinished(){},setEndState:(b,w)=>{var D;(D=this._debugBackgroundStates)===null||D===void 0||D.setEndState(b,w)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){var i;(i=this._defaultBackgroundTokenizer)===null||i===void 0||i.handleChanges()}handleDidChangeContent(i){var o,s,c;if(i.isFlush)this.resetTokenization(!1);else if(!i.isEolChange){for(let _ of i.changes){let[h,b]=w7(_.text);this._tokens.acceptEdit(_.range,h,b),(o=this._debugBackgroundTokens)===null||o===void 0||o.acceptEdit(_.range,h,b)}(s=this._debugBackgroundStates)===null||s===void 0||s.acceptChanges(i.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(i.changes),(c=this._defaultBackgroundTokenizer)===null||c===void 0||c.handleChanges()}}setTokens(i){let{changes:o}=this._tokens.setMultilineTokens(i,this._textModel);return o.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:o}),{changes:o}}refreshAllVisibleLineTokens(){let i=Iu.joinMany([...this._attachedViewStates].map(([o,s])=>s.lineRanges));this.refreshRanges(i)}refreshRanges(i){for(let o of i)this.refreshRange(o.startLineNumber,o.endLineNumberExclusive-1)}refreshRange(i,o){var s,c;if(!this._tokenizer)return;i=Math.max(1,Math.min(this._textModel.getLineCount(),i)),o=Math.min(this._textModel.getLineCount(),o);let _=new UAe,{heuristicTokens:h}=this._tokenizer.tokenizeHeuristically(_,i,o),b=this.setTokens(_.finalize());if(h)for(let w of b.changes)(s=this._backgroundTokenizer.value)===null||s===void 0||s.requestTokens(w.fromLineNumber,w.toLineNumber+1);(c=this._defaultBackgroundTokenizer)===null||c===void 0||c.checkFinished()}forceTokenization(i){var o,s;let c=new UAe;(o=this._tokenizer)===null||o===void 0||o.updateTokensUntilLine(c,i),this.setTokens(c.finalize()),(s=this._defaultBackgroundTokenizer)===null||s===void 0||s.checkFinished()}hasAccurateTokensForLine(i){return this._tokenizer?this._tokenizer.hasAccurateTokensForLine(i):!0}isCheapToTokenize(i){return this._tokenizer?this._tokenizer.isCheapToTokenize(i):!0}tokenizeIfCheap(i){this.isCheapToTokenize(i)&&this.forceTokenization(i)}getLineTokens(i){var o;let s=this._textModel.getLineContent(i),c=this._tokens.getTokens(this._textModel.getLanguageId(),i-1,s);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>i&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>i){let _=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),i-1,s);!c.equals(_)&&(!((o=this._debugBackgroundTokenizer.value)===null||o===void 0)&&o.reportMismatchingTokens)&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(i)}return c}getTokenTypeIfInsertingCharacter(i,o,s){if(!this._tokenizer)return 0;let c=this._textModel.validatePosition(new Cn(i,o));return this.forceTokenization(c.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(c,s)}tokenizeLineWithEdit(i,o,s){if(!this._tokenizer)return null;let c=this._textModel.validatePosition(i);return this.forceTokenization(c.lineNumber),this._tokenizer.tokenizeLineWithEdit(c,o,s)}get hasTokens(){return this._tokens.hasTokens}},oni=class extends Ui{get lineRanges(){return this._lineRanges}constructor(i){super(),this._refreshTokens=i,this.runner=this._register(new Bd(()=>this.update(),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){Op(this._computedLineRanges,this._lineRanges,(i,o)=>i.equals(o))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(i){this._lineRanges=i.visibleLineRanges,i.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}});var yfe,Dot,JAe,tK,Iot=Ht(()=>{kc();yfe=Wc("undoRedoService"),Dot=class{constructor(i,o){this.resource=i,this.elements=o}},JAe=class l{constructor(){this.id=l._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}};JAe._ID=0;JAe.None=new JAe;tK=class l{constructor(){this.id=l._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}};tK._ID=0;tK.None=new tK});function YBi(l){let i=new wot;return i.acceptChunk(l),i.finish()}function QBi(l){let i=new wot,o;for(;typeof(o=l.read())=="string";)i.acceptChunk(o);return i.finish()}function jCi(l,i){let o;return typeof l=="string"?o=YBi(l):Hyi(l)?o=QBi(l):o=l,o.create(i)}function tji(l){let i=0;for(let o of l)if(o===" "||o===" ")i++;else break;return i}function ani(l){return!!(l.options.overviewRuler&&l.options.overviewRuler.color)}function iji(l){return!!l.after||!!l.before}function Oht(l){return!!l.options.after||!!l.options.before}function bX(l){return l.replace(/[^a-z0-9\-_]/gi," ")}function zCi(l){return l instanceof eu?l:eu.createDynamic(l)}var XBi,sni,qAe,Lht,ZBi,eji,cni,Not,vW,Fht,Mht,lni,uni,dni,SX,eu,WCi,fni,_ni,pni,mni,DC=Ht(()=>{su();j1();Pl();Pa();$r();Bl();Lh();zAe();Gpt();lL();Ll();ca();hg();nnt();v2();R1();b2();nCi();rCi();jii();qti();hCi();TCi();Qii();NCi();srt();BCi();dfe();Iot();XBi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},sni=function(l,i){return function(o,s){i(o,s,l)}};Lht=0,ZBi=999,eji=1e4,cni=class{constructor(i){this._source=i,this._eos=!1}read(){if(this._eos)return null;let i=[],o=0,s=0;do{let c=this._source.read();if(c===null)return this._eos=!0,o===0?null:i.join("");if(c.length>0&&(i[o++]=c,s+=c.length),s>=64*1024)return i.join("")}while(!0)}},Not=()=>{throw new Error("Invalid change accessor")},vW=qAe=class extends Ui{static resolveOptions(i,o){if(o.detectIndentation){let s=zii(i,o.tabSize,o.insertSpaces);return new Bde({tabSize:s.tabSize,indentSize:"tabSize",insertSpaces:s.insertSpaces,trimAutoWhitespace:o.trimAutoWhitespace,defaultEOL:o.defaultEOL,bracketPairColorizationOptions:o.bracketPairColorizationOptions})}return new Bde(o)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(i){return this._eventEmitter.slowEvent(o=>i(o.contentChangedEvent))}onDidChangeContentOrInjectedText(i){return BD(this._eventEmitter.fastEvent(o=>i(o)),this._onDidChangeInjectedText.event(o=>i(o)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(i,o,s,c=null,_,h,b){super(),this._undoRedoService=_,this._languageService=h,this._languageConfigurationService=b,this._onWillDispose=this._register(new fn),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new fni(X=>this.handleBeforeFireDecorationsChangedEvent(X))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new fn),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new fn),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new fn),this._eventEmitter=this._register(new _ni),this._languageSelectionListener=this._register(new Nh),this._deltaDecorationCallCnt=0,this._attachedViews=new pni,Lht++,this.id="$model"+Lht,this.isForSimpleWidget=s.isForSimpleWidget,typeof c>"u"||c===null?this._associatedResource=Ka.parse("inmemory://model/"+Lht):this._associatedResource=c,this._attachedEditorCount=0;let{textBuffer:w,disposable:D}=jCi(i,s.defaultEOL);this._buffer=w,this._bufferDisposable=D,this._options=qAe.resolveOptions(this._buffer,s);let O=typeof o=="string"?o:o.languageId;typeof o!="string"&&(this._languageSelectionListener.value=o.onDidChange(()=>this._setLanguage(o.languageId))),this._bracketPairs=this._register(new yht(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new Nmt(this,this._languageConfigurationService)),this._decorationProvider=this._register(new vht(this)),this._tokenizationTextModelPart=new Pht(this._languageService,this._languageConfigurationService,this,this._bracketPairs,O,this._attachedViews);let j=this._buffer.getLineCount(),F=this._buffer.getValueLengthInRange(new Vt(1,1,j,this._buffer.getLineLength(j)+1),0);s.largeFileOptimizations?(this._isTooLargeForTokenization=F>qAe.LARGE_FILE_SIZE_THRESHOLD||j>qAe.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=F>qAe.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=F>qAe._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=Hdt(Lht),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Fht,this._commandManager=new kht(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()})),this._languageService.requestRichLanguageFeatures(O)}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;let i=new jLe([],"",` +`,!1,!1,!0,!0);i.dispose(),this._buffer=i,this._bufferDisposable=Ui.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(i,o){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(o),this._bracketPairs.handleDidChangeContent(o),this._eventEmitter.fire(new ufe(i,o)))}setValue(i){if(this._assertNotDisposed(),i==null)throw RD();let{textBuffer:o,disposable:s}=jCi(i,this._options.defaultEOL);this._setValueFromTextBuffer(o,s)}_createContentChanged2(i,o,s,c,_,h,b,w){return{changes:[{range:i,rangeOffset:o,rangeLength:s,text:c}],eol:this._buffer.getEOL(),isEolChange:w,versionId:this.getVersionId(),isUndoing:_,isRedoing:h,isFlush:b}}_setValueFromTextBuffer(i,o){this._assertNotDisposed();let s=this.getFullModelRange(),c=this.getValueLengthInRange(s),_=this.getLineCount(),h=this.getLineMaxColumn(_);this._buffer=i,this._bufferDisposable.dispose(),this._bufferDisposable=o,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Fht,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new WAe([new iht],this._versionId,!1,!1),this._createContentChanged2(new Vt(1,1,_,h),0,c,this.getValue(),!1,!1,!0,!1))}setEOL(i){this._assertNotDisposed();let o=i===1?`\r +`:` +`;if(this._buffer.getEOL()===o)return;let s=this.getFullModelRange(),c=this.getValueLengthInRange(s),_=this.getLineCount(),h=this.getLineMaxColumn(_);this._onBeforeEOLChange(),this._buffer.setEOL(o),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new WAe([new oht],this._versionId,!1,!1),this._createContentChanged2(new Vt(1,1,_,h),0,c,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){let i=this.getVersionId(),o=this._decorationsTree.collectNodesPostOrder();for(let s=0,c=o.length;s0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let i=0,o=0,s=this._buffer.getLineCount();for(let c=1;c<=s;c++){let _=this._buffer.getLineLength(c);_>=eji?o+=_:i+=_}return o>i}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(i){this._assertNotDisposed();let o=typeof i.tabSize<"u"?i.tabSize:this._options.tabSize,s=typeof i.indentSize<"u"?i.indentSize:this._options.originalIndentSize,c=typeof i.insertSpaces<"u"?i.insertSpaces:this._options.insertSpaces,_=typeof i.trimAutoWhitespace<"u"?i.trimAutoWhitespace:this._options.trimAutoWhitespace,h=typeof i.bracketColorizationOptions<"u"?i.bracketColorizationOptions:this._options.bracketPairColorizationOptions,b=new Bde({tabSize:o,indentSize:s,insertSpaces:c,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:_,bracketPairColorizationOptions:h});if(this._options.equals(b))return;let w=this._options.createChangeEvent(b);this._options=b,this._bracketPairs.handleDidChangeOptions(w),this._decorationProvider.handleDidChangeOptions(w),this._onDidChangeOptions.fire(w)}detectIndentation(i,o){this._assertNotDisposed();let s=zii(this._buffer,o,i);this.updateOptions({insertSpaces:s.insertSpaces,tabSize:s.tabSize,indentSize:s.tabSize})}normalizeIndentation(i){return this._assertNotDisposed(),mLe(i,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(i=null){let o=this.findMatches(TQt.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(i,o.map(s=>({range:s.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(i){this._assertNotDisposed();let o=this._validatePosition(i.lineNumber,i.column,0);return this._buffer.getOffsetAt(o.lineNumber,o.column)}getPositionAt(i){this._assertNotDisposed();let o=Math.min(this._buffer.getLength(),Math.max(0,i));return this._buffer.getPositionAt(o)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(i){this._versionId=i}_overwriteAlternativeVersionId(i){this._alternativeVersionId=i}_overwriteInitialUndoRedoSnapshot(i){this._initialUndoRedoSnapshot=i}getValue(i,o=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new C_("Operation would exceed heap memory limits");let s=this.getFullModelRange(),c=this.getValueInRange(s,i);return o?this._buffer.getBOM()+c:c}createSnapshot(i=!1){return new cni(this._buffer.createSnapshot(i))}getValueLength(i,o=!1){this._assertNotDisposed();let s=this.getFullModelRange(),c=this.getValueLengthInRange(s,i);return o?this._buffer.getBOM().length+c:c}getValueInRange(i,o=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(i),o)}getValueLengthInRange(i,o=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(i),o)}getCharacterCountInRange(i,o=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(i),o)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(i){if(this._assertNotDisposed(),i<1||i>this.getLineCount())throw new C_("Illegal value for lineNumber");return this._buffer.getLineContent(i)}getLineLength(i){if(this._assertNotDisposed(),i<1||i>this.getLineCount())throw new C_("Illegal value for lineNumber");return this._buffer.getLineLength(i)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new C_("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),this._buffer.getEOL()===` +`?0:1}getLineMinColumn(i){return this._assertNotDisposed(),1}getLineMaxColumn(i){if(this._assertNotDisposed(),i<1||i>this.getLineCount())throw new C_("Illegal value for lineNumber");return this._buffer.getLineLength(i)+1}getLineFirstNonWhitespaceColumn(i){if(this._assertNotDisposed(),i<1||i>this.getLineCount())throw new C_("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(i)}getLineLastNonWhitespaceColumn(i){if(this._assertNotDisposed(),i<1||i>this.getLineCount())throw new C_("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(i)}_validateRangeRelaxedNoAllocations(i){let o=this._buffer.getLineCount(),s=i.startLineNumber,c=i.startColumn,_=Math.floor(typeof s=="number"&&!isNaN(s)?s:1),h=Math.floor(typeof c=="number"&&!isNaN(c)?c:1);if(_<1)_=1,h=1;else if(_>o)_=o,h=this.getLineMaxColumn(_);else if(h<=1)h=1;else{let j=this.getLineMaxColumn(_);h>=j&&(h=j)}let b=i.endLineNumber,w=i.endColumn,D=Math.floor(typeof b=="number"&&!isNaN(b)?b:1),O=Math.floor(typeof w=="number"&&!isNaN(w)?w:1);if(D<1)D=1,O=1;else if(D>o)D=o,O=this.getLineMaxColumn(D);else if(O<=1)O=1;else{let j=this.getLineMaxColumn(D);O>=j&&(O=j)}return s===_&&c===h&&b===D&&w===O&&i instanceof Vt&&!(i instanceof ya)?i:new Vt(_,h,D,O)}_isValidPosition(i,o,s){if(typeof i!="number"||typeof o!="number"||isNaN(i)||isNaN(o)||i<1||o<1||(i|0)!==i||(o|0)!==o)return!1;let c=this._buffer.getLineCount();if(i>c)return!1;if(o===1)return!0;let _=this.getLineMaxColumn(i);if(o>_)return!1;if(s===1){let h=this._buffer.getLineCharCode(i,o-2);if(E1(h))return!1}return!0}_validatePosition(i,o,s){let c=Math.floor(typeof i=="number"&&!isNaN(i)?i:1),_=Math.floor(typeof o=="number"&&!isNaN(o)?o:1),h=this._buffer.getLineCount();if(c<1)return new Cn(1,1);if(c>h)return new Cn(h,this.getLineMaxColumn(h));if(_<=1)return new Cn(c,1);let b=this.getLineMaxColumn(c);if(_>=b)return new Cn(c,b);if(s===1){let w=this._buffer.getLineCharCode(c,_-2);if(E1(w))return new Cn(c,_-1)}return new Cn(c,_)}validatePosition(i){return this._assertNotDisposed(),i instanceof Cn&&this._isValidPosition(i.lineNumber,i.column,1)?i:this._validatePosition(i.lineNumber,i.column,1)}_isValidRange(i,o){let s=i.startLineNumber,c=i.startColumn,_=i.endLineNumber,h=i.endColumn;if(!this._isValidPosition(s,c,0)||!this._isValidPosition(_,h,0))return!1;if(o===1){let b=c>1?this._buffer.getLineCharCode(s,c-2):0,w=h>1&&h<=this._buffer.getLineLength(_)?this._buffer.getLineCharCode(_,h-2):0,D=E1(b),O=E1(w);return!D&&!O}return!0}validateRange(i){if(this._assertNotDisposed(),i instanceof Vt&&!(i instanceof ya)&&this._isValidRange(i,1))return i;let s=this._validatePosition(i.startLineNumber,i.startColumn,0),c=this._validatePosition(i.endLineNumber,i.endColumn,0),_=s.lineNumber,h=s.column,b=c.lineNumber,w=c.column;{let D=h>1?this._buffer.getLineCharCode(_,h-2):0,O=w>1&&w<=this._buffer.getLineLength(b)?this._buffer.getLineCharCode(b,w-2):0,j=E1(D),F=E1(O);return!j&&!F?new Vt(_,h,b,w):_===b&&h===w?new Vt(_,h-1,b,w-1):j&&F?new Vt(_,h-1,b,w+1):j?new Vt(_,h-1,b,w):new Vt(_,h,b,w+1)}return new Vt(_,h,b,w)}modifyPosition(i,o){this._assertNotDisposed();let s=this.getOffsetAt(i)+o;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,s)))}getFullModelRange(){this._assertNotDisposed();let i=this.getLineCount();return new Vt(1,1,i,this.getLineMaxColumn(i))}findMatchesLineByLine(i,o,s,c){return this._buffer.findMatchesLineByLine(i,o,s,c)}findMatches(i,o,s,c,_,h,b=ZBi){this._assertNotDisposed();let w=null;o!==null&&(Array.isArray(o)||(o=[o]),o.every(j=>Vt.isIRange(j))&&(w=o.map(j=>this.validateRange(j)))),w===null&&(w=[this.getFullModelRange()]),w=w.sort((j,F)=>j.startLineNumber-F.startLineNumber||j.startColumn-F.startColumn);let D=[];D.push(w.reduce((j,F)=>Vt.areIntersecting(j,F)?j.plusRange(F):(D.push(j),F)));let O;if(!s&&i.indexOf(` +`)<0){let F=new WG(i,s,c,_).parseSearchRequest();if(!F)return[];O=X=>this.findMatchesLineByLine(X,F,h,b)}else O=j=>XNe.findMatches(this,new WG(i,s,c,_),j,h,b);return D.map(O).reduce((j,F)=>j.concat(F),[])}findNextMatch(i,o,s,c,_,h){this._assertNotDisposed();let b=this.validatePosition(o);if(!s&&i.indexOf(` +`)<0){let D=new WG(i,s,c,_).parseSearchRequest();if(!D)return null;let O=this.getLineCount(),j=new Vt(b.lineNumber,b.column,O,this.getLineMaxColumn(O)),F=this.findMatchesLineByLine(j,D,h,1);return XNe.findNextMatch(this,new WG(i,s,c,_),b,h),F.length>0||(j=new Vt(1,1,b.lineNumber,this.getLineMaxColumn(b.lineNumber)),F=this.findMatchesLineByLine(j,D,h,1),F.length>0)?F[0]:null}return XNe.findNextMatch(this,new WG(i,s,c,_),b,h)}findPreviousMatch(i,o,s,c,_,h){this._assertNotDisposed();let b=this.validatePosition(o);return XNe.findPreviousMatch(this,new WG(i,s,c,_),b,h)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(i){if((this.getEOL()===` +`?0:1)!==i)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(i){return i instanceof C6e?i:new C6e(i.identifier||null,this.validateRange(i.range),i.text,i.forceMoveMarkers||!1,i.isAutoWhitespaceEdit||!1,i._isTracked||!1)}_validateEditOperations(i){let o=[];for(let s=0,c=i.length;s({range:this.validateRange(b.range),text:b.text})),h=!0;if(i)for(let b=0,w=i.length;bD.endLineNumber,re=D.startLineNumber>X.endLineNumber;if(!K&&!re){O=!0;break}}if(!O){h=!1;break}}if(h)for(let b=0,w=this._trimAutoWhitespaceLines.length;bK.endLineNumber)&&!(D===K.startLineNumber&&K.startColumn===O&&K.isEmpty()&&re&&re.length>0&&re.charAt(0)===` +`)&&!(D===K.startLineNumber&&K.startColumn===1&&K.isEmpty()&&re&&re.length>0&&re.charAt(re.length-1)===` +`)){j=!1;break}}if(j){let F=new Vt(D,1,D,O);o.push(new C6e(null,F,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(i,o,s,c)}_applyUndo(i,o,s,c){let _=i.map(h=>{let b=this.getPositionAt(h.newPosition),w=this.getPositionAt(h.newEnd);return{range:new Vt(b.lineNumber,b.column,w.lineNumber,w.column),text:h.oldText}});this._applyUndoRedoEdits(_,o,!0,!1,s,c)}_applyRedo(i,o,s,c){let _=i.map(h=>{let b=this.getPositionAt(h.oldPosition),w=this.getPositionAt(h.oldEnd);return{range:new Vt(b.lineNumber,b.column,w.lineNumber,w.column),text:h.newText}});this._applyUndoRedoEdits(_,o,!1,!0,s,c)}_applyUndoRedoEdits(i,o,s,c,_,h){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=s,this._isRedoing=c,this.applyEdits(i,!1),this.setEOL(o),this._overwriteAlternativeVersionId(_)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(h),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(i,o=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();let s=this._validateEditOperations(i);return this._doApplyEdits(s,o)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(i,o){let s=this._buffer.getLineCount(),c=this._buffer.applyEdits(i,this._options.trimAutoWhitespace,o),_=this._buffer.getLineCount(),h=c.changes;if(this._trimAutoWhitespaceLines=c.trimAutoWhitespaceLineNumbers,h.length!==0){for(let D=0,O=h.length;D=0;zi--){let Vr=X+zi,sn=Ye+zi;Mi.takeFromEndWhile(er=>er.lineNumber>sn);let gr=Mi.takeFromEndWhile(er=>er.lineNumber===sn);b.push(new rot(Vr,this.getLineContent(sn),gr))}if(Le_i.lineNumber_i.lineNumber===Ls)}b.push(new rht(Vr+1,X+Pe,Di,er))}w+=Je}this._emitContentChangedEvent(new WAe(b,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:h,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return c.reverseEdits===null?void 0:c.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(i){if(i===null||i.size===0)return;let s=Array.from(i).map(c=>new rot(c,this.getLineContent(c),this._getInjectedTextInLine(c)));this._onDidChangeInjectedText.fire(new TLe(s))}changeDecorations(i,o=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(o,i)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(i,o){let s={addDecoration:(_,h)=>this._deltaDecorationsImpl(i,[],[{range:_,options:h}])[0],changeDecoration:(_,h)=>{this._changeDecorationImpl(_,h)},changeDecorationOptions:(_,h)=>{this._changeDecorationOptionsImpl(_,zCi(h))},removeDecoration:_=>{this._deltaDecorationsImpl(i,[_],[])},deltaDecorations:(_,h)=>_.length===0&&h.length===0?[]:this._deltaDecorationsImpl(i,_,h)},c=null;try{c=o(s)}catch(_){Sc(_)}return s.addDecoration=Not,s.changeDecoration=Not,s.changeDecorationOptions=Not,s.removeDecoration=Not,s.deltaDecorations=Not,c}deltaDecorations(i,o,s=0){if(this._assertNotDisposed(),i||(i=[]),i.length===0&&o.length===0)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),Sc(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(s,i,o)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(i){return this.getDecorationRange(i)}_setTrackedRange(i,o,s){let c=i?this._decorations[i]:null;if(!c)return o?this._deltaDecorationsImpl(0,[],[{range:o,options:WCi[s]}],!0)[0]:null;if(!o)return this._decorationsTree.delete(c),delete this._decorations[c.id],null;let _=this._validateRangeRelaxedNoAllocations(o),h=this._buffer.getOffsetAt(_.startLineNumber,_.startColumn),b=this._buffer.getOffsetAt(_.endLineNumber,_.endColumn);return this._decorationsTree.delete(c),c.reset(this.getVersionId(),h,b,_),c.setOptions(WCi[s]),this._decorationsTree.insert(c),c.id}removeAllDecorationsWithOwnerId(i){if(this._isDisposed)return;let o=this._decorationsTree.collectNodesFromOwner(i);for(let s=0,c=o.length;sthis.getLineCount()?[]:this.getLinesDecorations(i,i,o,s)}getLinesDecorations(i,o,s=0,c=!1,_=!1){let h=this.getLineCount(),b=Math.min(h,Math.max(1,i)),w=Math.min(h,Math.max(1,o)),D=this.getLineMaxColumn(w),O=new Vt(b,1,w,D),j=this._getDecorationsInRange(O,s,c,_);return Zit(j,this._decorationProvider.getDecorationsInRange(O,s,c)),j}getDecorationsInRange(i,o=0,s=!1,c=!1,_=!1){let h=this.validateRange(i),b=this._getDecorationsInRange(h,o,s,_);return Zit(b,this._decorationProvider.getDecorationsInRange(h,o,s,c)),b}getOverviewRulerDecorations(i=0,o=!1){return this._decorationsTree.getAll(this,i,o,!0,!1)}getInjectedTextDecorations(i=0){return this._decorationsTree.getAllInjectedText(this,i)}_getInjectedTextInLine(i){let o=this._buffer.getOffsetAt(i,1),s=o+this._buffer.getLineLength(i),c=this._decorationsTree.getInjectedTextInInterval(this,o,s,0);return $F.fromDecorations(c).filter(_=>_.lineNumber===i)}getAllDecorations(i=0,o=!1){let s=this._decorationsTree.getAll(this,i,o,!1,!1);return s=s.concat(this._decorationProvider.getAllDecorations(i,o)),s}getAllMarginDecorations(i=0){return this._decorationsTree.getAll(this,i,!1,!1,!0)}_getDecorationsInRange(i,o,s,c){let _=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),h=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);return this._decorationsTree.getAllInInterval(this,_,h,o,s,c)}getRangeAt(i,o){return this._buffer.getRangeAt(i,o-i)}_changeDecorationImpl(i,o){let s=this._decorations[i];if(!s)return;if(s.options.after){let b=this.getDecorationRange(i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(b.endLineNumber)}if(s.options.before){let b=this.getDecorationRange(i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(b.startLineNumber)}let c=this._validateRangeRelaxedNoAllocations(o),_=this._buffer.getOffsetAt(c.startLineNumber,c.startColumn),h=this._buffer.getOffsetAt(c.endLineNumber,c.endColumn);this._decorationsTree.delete(s),s.reset(this.getVersionId(),_,h,c),this._decorationsTree.insert(s),this._onDidChangeDecorations.checkAffectedAndFire(s.options),s.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(c.endLineNumber),s.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(c.startLineNumber)}_changeDecorationOptionsImpl(i,o){let s=this._decorations[i];if(!s)return;let c=!!(s.options.overviewRuler&&s.options.overviewRuler.color),_=!!(o.overviewRuler&&o.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(s.options),this._onDidChangeDecorations.checkAffectedAndFire(o),s.options.after||o.after){let w=this._decorationsTree.getNodeRange(this,s);this._onDidChangeDecorations.recordLineAffectedByInjectedText(w.endLineNumber)}if(s.options.before||o.before){let w=this._decorationsTree.getNodeRange(this,s);this._onDidChangeDecorations.recordLineAffectedByInjectedText(w.startLineNumber)}let h=c!==_,b=iji(o)!==Oht(s);h||b?(this._decorationsTree.delete(s),s.setOptions(o),this._decorationsTree.insert(s)):s.setOptions(o)}_deltaDecorationsImpl(i,o,s,c=!1){let _=this.getVersionId(),h=o.length,b=0,w=s.length,D=0;this._onDidChangeDecorations.beginDeferredEmit();try{let O=new Array(w);for(;bthis._setLanguage(i.languageId,o)),this._setLanguage(i.languageId,o))}_setLanguage(i,o){this.tokenization.setLanguageId(i,o),this._languageService.requestRichLanguageFeatures(i)}getLanguageIdAtPosition(i,o){return this.tokenization.getLanguageIdAtPosition(i,o)}getWordAtPosition(i){return this._tokenizationTextModelPart.getWordAtPosition(i)}getWordUntilPosition(i){return this._tokenizationTextModelPart.getWordUntilPosition(i)}normalizePosition(i,o){return i}getLineIndentColumn(i){return tji(this.getLineContent(i))+1}};vW._MODEL_SYNC_LIMIT=50*1024*1024;vW.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024;vW.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3;vW.LARGE_FILE_HEAP_OPERATION_THRESHOLD=256*1024*1024;vW.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:_2.tabSize,indentSize:_2.indentSize,insertSpaces:_2.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:_2.trimAutoWhitespace,largeFileOptimizations:_2.largeFileOptimizations,bracketPairColorizationOptions:_2.bracketPairColorizationOptions};vW=qAe=XBi([sni(4,yfe),sni(5,up),sni(6,Pf)],vW);Fht=class{constructor(){this._decorationsTree0=new RLe,this._decorationsTree1=new RLe,this._injectedTextDecorationsTree=new RLe}ensureAllNodesHaveRanges(i){this.getAll(i,0,!1,!1,!1)}_ensureNodesHaveRanges(i,o){for(let s of o)s.range===null&&(s.range=i.getRangeAt(s.cachedAbsoluteStart,s.cachedAbsoluteEnd));return o}getAllInInterval(i,o,s,c,_,h){let b=i.getVersionId(),w=this._intervalSearch(o,s,c,_,b,h);return this._ensureNodesHaveRanges(i,w)}_intervalSearch(i,o,s,c,_,h){let b=this._decorationsTree0.intervalSearch(i,o,s,c,_,h),w=this._decorationsTree1.intervalSearch(i,o,s,c,_,h),D=this._injectedTextDecorationsTree.intervalSearch(i,o,s,c,_,h);return b.concat(w).concat(D)}getInjectedTextInInterval(i,o,s,c){let _=i.getVersionId(),h=this._injectedTextDecorationsTree.intervalSearch(o,s,c,!1,_,!1);return this._ensureNodesHaveRanges(i,h).filter(b=>b.options.showIfCollapsed||!b.range.isEmpty())}getAllInjectedText(i,o){let s=i.getVersionId(),c=this._injectedTextDecorationsTree.search(o,!1,s,!1);return this._ensureNodesHaveRanges(i,c).filter(_=>_.options.showIfCollapsed||!_.range.isEmpty())}getAll(i,o,s,c,_){let h=i.getVersionId(),b=this._search(o,s,c,h,_);return this._ensureNodesHaveRanges(i,b)}_search(i,o,s,c,_){if(s)return this._decorationsTree1.search(i,o,c,_);{let h=this._decorationsTree0.search(i,o,c,_),b=this._decorationsTree1.search(i,o,c,_),w=this._injectedTextDecorationsTree.search(i,o,c,_);return h.concat(b).concat(w)}}collectNodesFromOwner(i){let o=this._decorationsTree0.collectNodesFromOwner(i),s=this._decorationsTree1.collectNodesFromOwner(i),c=this._injectedTextDecorationsTree.collectNodesFromOwner(i);return o.concat(s).concat(c)}collectNodesPostOrder(){let i=this._decorationsTree0.collectNodesPostOrder(),o=this._decorationsTree1.collectNodesPostOrder(),s=this._injectedTextDecorationsTree.collectNodesPostOrder();return i.concat(o).concat(s)}insert(i){Oht(i)?this._injectedTextDecorationsTree.insert(i):ani(i)?this._decorationsTree1.insert(i):this._decorationsTree0.insert(i)}delete(i){Oht(i)?this._injectedTextDecorationsTree.delete(i):ani(i)?this._decorationsTree1.delete(i):this._decorationsTree0.delete(i)}getNodeRange(i,o){let s=i.getVersionId();return o.cachedVersionId!==s&&this._resolveNode(o,s),o.range===null&&(o.range=i.getRangeAt(o.cachedAbsoluteStart,o.cachedAbsoluteEnd)),o.range}_resolveNode(i,o){Oht(i)?this._injectedTextDecorationsTree.resolveNode(i,o):ani(i)?this._decorationsTree1.resolveNode(i,o):this._decorationsTree0.resolveNode(i,o)}acceptReplace(i,o,s,c){this._decorationsTree0.acceptReplace(i,o,s,c),this._decorationsTree1.acceptReplace(i,o,s,c),this._injectedTextDecorationsTree.acceptReplace(i,o,s,c)}};Mht=class{constructor(i){this.color=i.color||"",this.darkColor=i.darkColor||""}},lni=class extends Mht{constructor(i){super(i),this._resolvedColor=null,this.position=typeof i.position=="number"?i.position:JD.Center}getColor(i){return this._resolvedColor||(i.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,i):this._resolvedColor=this._resolveColor(this.color,i)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(i,o){if(typeof i=="string")return i;let s=i?o.getColor(i.id):null;return s?s.toString():""}},uni=class{constructor(i){var o;this.position=(o=i?.position)!==null&&o!==void 0?o:zL.Center,this.persistLane=i?.persistLane}},dni=class extends Mht{constructor(i){var o,s;super(i),this.position=i.position,this.sectionHeaderStyle=(o=i.sectionHeaderStyle)!==null&&o!==void 0?o:null,this.sectionHeaderText=(s=i.sectionHeaderText)!==null&&s!==void 0?s:null}getColor(i){return this._resolvedColor||(i.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,i):this._resolvedColor=this._resolveColor(this.color,i)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(i,o){return typeof i=="string"?Kr.fromHex(i):o.getColor(i.id)}},SX=class l{static from(i){return i instanceof l?i:new l(i)}constructor(i){this.content=i.content||"",this.inlineClassName=i.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=i.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=i.attachedData||null,this.cursorStops=i.cursorStops||null}},eu=class l{static register(i){return new l(i)}static createDynamic(i){return new l(i)}constructor(i){var o,s,c,_,h,b;this.description=i.description,this.blockClassName=i.blockClassName?bX(i.blockClassName):null,this.blockDoesNotCollapse=(o=i.blockDoesNotCollapse)!==null&&o!==void 0?o:null,this.blockIsAfterEnd=(s=i.blockIsAfterEnd)!==null&&s!==void 0?s:null,this.blockPadding=(c=i.blockPadding)!==null&&c!==void 0?c:null,this.stickiness=i.stickiness||0,this.zIndex=i.zIndex||0,this.className=i.className?bX(i.className):null,this.shouldFillLineOnLineBreak=(_=i.shouldFillLineOnLineBreak)!==null&&_!==void 0?_:null,this.hoverMessage=i.hoverMessage||null,this.glyphMarginHoverMessage=i.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=i.lineNumberHoverMessage||null,this.isWholeLine=i.isWholeLine||!1,this.showIfCollapsed=i.showIfCollapsed||!1,this.collapseOnReplaceEdit=i.collapseOnReplaceEdit||!1,this.overviewRuler=i.overviewRuler?new lni(i.overviewRuler):null,this.minimap=i.minimap?new dni(i.minimap):null,this.glyphMargin=i.glyphMarginClassName?new uni(i.glyphMargin):null,this.glyphMarginClassName=i.glyphMarginClassName?bX(i.glyphMarginClassName):null,this.linesDecorationsClassName=i.linesDecorationsClassName?bX(i.linesDecorationsClassName):null,this.lineNumberClassName=i.lineNumberClassName?bX(i.lineNumberClassName):null,this.linesDecorationsTooltip=i.linesDecorationsTooltip?Xgi(i.linesDecorationsTooltip):null,this.firstLineDecorationClassName=i.firstLineDecorationClassName?bX(i.firstLineDecorationClassName):null,this.marginClassName=i.marginClassName?bX(i.marginClassName):null,this.inlineClassName=i.inlineClassName?bX(i.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=i.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=i.beforeContentClassName?bX(i.beforeContentClassName):null,this.afterContentClassName=i.afterContentClassName?bX(i.afterContentClassName):null,this.after=i.after?SX.from(i.after):null,this.before=i.before?SX.from(i.before):null,this.hideInCommentTokens=(h=i.hideInCommentTokens)!==null&&h!==void 0?h:!1,this.hideInStringTokens=(b=i.hideInStringTokens)!==null&&b!==void 0?b:!1}};eu.EMPTY=eu.register({description:"empty"});WCi=[eu.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),eu.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),eu.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),eu.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];fni=class extends Ui{constructor(i){super(),this.handleBeforeFire=i,this._actual=this._register(new fn),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var i;this._deferredCnt--,this._deferredCnt===0&&(this._shouldFireDeferred&&this.doFire(),(i=this._affectedInjectedTextLines)===null||i===void 0||i.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(i){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(i)}checkAffectedAndFire(i){var o,s;this._affectsMinimap||(this._affectsMinimap=!!(!((o=i.minimap)===null||o===void 0)&&o.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(!((s=i.overviewRuler)===null||s===void 0)&&s.color)),this._affectsGlyphMargin||(this._affectsGlyphMargin=!!i.glyphMarginClassName),this._affectsLineNumber||(this._affectsLineNumber=!!i.lineNumberClassName),this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){this._deferredCnt===0?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);let i={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(i)}},_ni=class extends Ui{constructor(){super(),this._fastEmitter=this._register(new fn),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new fn),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(i=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=i;let o=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(o),this._slowEmitter.fire(o)}}fire(i){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(i):this._deferredEvent=i;return}this._fastEmitter.fire(i),this._slowEmitter.fire(i)}},pni=class{constructor(){this._onDidChangeVisibleRanges=new fn,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){let i=new mni(o=>{this._onDidChangeVisibleRanges.fire({view:i,state:o})});return this._views.add(i),i}detachView(i){this._views.delete(i),this._onDidChangeVisibleRanges.fire({view:i,state:void 0})}},mni=class{constructor(i){this.handleStateChange=i}setVisibleLines(i,o){let s=i.map(c=>new Iu(c.startLineNumber,c.endLineNumber+1));this.handleStateChange({visibleLineRanges:s,stabilized:o})}}});function nji(l,i,o,s,c,_,h,b){if(c===-1)return null;let w=o.length;if(w<=1)return null;let D=b==="keepAll",O=i.breakOffsets,j=i.breakOffsetsVisibleColumn,F=HCi(o,s,c,_,h),X=c-F,K=gni,re=yni,Pe=0,Le=0,Je=0,Ye=c,ft=O.length,Ct=0;if(Ct>=0){let Et=Math.abs(j[Ct]-Ye);for(;Ct+1=Et)break;Et=St,Ct++}}for(;CtEt&&(Et=Le,St=Je);let Mi=0,zi=0,Vr=0,sn=0;if(St<=Ye){let er=St,Di=Et===0?0:o.charCodeAt(Et-1),rs=Et===0?0:l.get(Di),Ls=!0;for(let _i=Et;_iLe&&vni(Di,rs,Uo,tc,D)&&(Mi=wc,zi=er),er+=vo,er>Ye){wc>Le?(Vr=wc,sn=er-vo):(Vr=_i+1,sn=er),er-zi>X&&(Mi=0),Ls=!1;break}Di=Uo,rs=tc}if(Ls){Pe>0&&(K[Pe]=O[O.length-1],re[Pe]=j[O.length-1],Pe++);break}}if(Mi===0){let er=St,Di=o.charCodeAt(Et),rs=l.get(Di),Ls=!1;for(let _i=Et-1;_i>=Le;_i--){let wc=_i+1,Uo=o.charCodeAt(_i);if(Uo===9){Ls=!0;break}let tc,vo;if(MK(Uo)?(_i--,tc=0,vo=2):(tc=l.get(Uo),vo=ej(Uo)?_:1),er<=Ye){if(Vr===0&&(Vr=wc,sn=er),er<=Ye-X)break;if(vni(Uo,tc,Di,rs,D)){Mi=wc,zi=er;break}}er-=vo,Di=Uo,rs=tc}if(Mi!==0){let _i=X-(sn-zi);if(_i<=s){let wc=o.charCodeAt(Vr),Uo;E1(wc)?Uo=2:Uo=Aot(wc,sn,s,_),_i-Uo<0&&(Mi=0)}}if(Ls){Ct--;continue}}if(Mi===0&&(Mi=Vr,zi=sn),Mi<=Le){let er=o.charCodeAt(Le);E1(er)?(Mi=Le+2,zi=Je+2):(Mi=Le+1,zi=Je+Aot(er,Je,s,_))}for(Le=Mi,K[Pe]=Mi,Je=zi,re[Pe]=zi,Pe++,Ye=zi+X;Ct<0||Ct=gr)break;gr=er,Ct++}}return Pe===0?null:(K.length=Pe,re.length=Pe,gni=i.breakOffsets,yni=i.breakOffsetsVisibleColumn,i.breakOffsets=K,i.breakOffsetsVisibleColumn=re,i.wrappedTextIndentLength=F,i)}function rji(l,i,o,s,c,_,h,b){let w=$F.applyInjectedText(i,o),D,O;if(o&&o.length>0?(D=o.map(zi=>zi.options),O=o.map(zi=>zi.column-1)):(D=null,O=null),c===-1)return D?new Kle(O,D,[w.length],[],0):null;let j=w.length;if(j<=1)return D?new Kle(O,D,[w.length],[],0):null;let F=b==="keepAll",X=HCi(w,s,c,_,h),K=c-X,re=[],Pe=[],Le=0,Je=0,Ye=0,ft=c,Ct=w.charCodeAt(0),Et=l.get(Ct),St=Aot(Ct,0,s,_),Mi=1;E1(Ct)&&(St+=1,Ct=w.charCodeAt(1),Et=l.get(Ct),Mi++);for(let zi=Mi;zift&&((Je===0||St-Ye>K)&&(Je=Vr,Ye=St-er),re[Le]=Je,Pe[Le]=Ye,Le++,ft=Ye+K,Je=0),Ct=sn,Et=gr}return Le===0&&(!o||o.length===0)?null:(re[Le]=j,Pe[Le]=St,new Kle(O,D,re,Pe,X))}function Aot(l,i,o,s){return l===9?o-i%o:ej(l)||l<32?s:1}function VCi(l,i){return i-l%i}function vni(l,i,o,s,c){return o!==32&&(i===2&&s!==2||i!==1&&s===1||!c&&i===3&&s!==2||!c&&s===3&&i!==1)}function HCi(l,i,o,s,c){let _=0;if(c!==0){let h=M1(l);if(h!==-1){for(let w=0;wo&&(_=0)}}return _}var Rht,hni,gni,yni,UCi=Ht(()=>{Bl();KNe();dfe();cii();Rht=class l{static create(i){return new l(i.get(134),i.get(133))}constructor(i,o){this.classifier=new hni(i,o)}createLineBreaksComputer(i,o,s,c,_){let h=[],b=[],w=[];return{addRequest:(D,O,j)=>{h.push(D),b.push(O),w.push(j)},finalize:()=>{let D=i.typicalFullwidthCharacterWidth/i.typicalHalfwidthCharacterWidth,O=[];for(let j=0,F=h.length;j=0&&i<256?this._asciiMap[i]:i>=12352&&i<=12543||i>=13312&&i<=19903||i>=19968&&i<=40959?3:this._map.get(i)||this._defaultValue}},gni=[],yni=[]});var Pot,JCi=Ht(()=>{Sj();Ll();ca();hg();Pot=class l{constructor(i){this._selTrackedRange=null,this._trackSelection=!0,this._setState(i,new Iw(new Vt(1,1,1,1),0,0,new Cn(1,1),0),new Iw(new Vt(1,1,1,1),0,0,new Cn(1,1),0))}dispose(i){this._removeTrackedRange(i)}startTrackingSelection(i){this._trackSelection=!0,this._updateTrackedRange(i)}stopTrackingSelection(i){this._trackSelection=!1,this._removeTrackedRange(i)}_updateTrackedRange(i){this._trackSelection&&(this._selTrackedRange=i.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(i){this._selTrackedRange=i.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new I_(this.modelState,this.viewState)}readSelectionFromMarkers(i){let o=i.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!o.isEmpty()?ya.fromRange(o.collapseToEnd(),this.modelState.selection.getDirection()):ya.fromRange(o,this.modelState.selection.getDirection())}ensureValidState(i){this._setState(i,this.modelState,this.viewState)}setState(i,o,s){this._setState(i,o,s)}static _validatePositionWithCache(i,o,s,c){return o.equals(s)?c:i.normalizePosition(o,2)}static _validateViewState(i,o){let s=o.position,c=o.selectionStart.getStartPosition(),_=o.selectionStart.getEndPosition(),h=i.normalizePosition(s,2),b=this._validatePositionWithCache(i,c,s,h),w=this._validatePositionWithCache(i,_,c,b);return s.equals(h)&&c.equals(b)&&_.equals(w)?o:new Iw(Vt.fromPositions(b,w),o.selectionStartKind,o.selectionStartLeftoverVisibleColumns+c.column-b.column,h,o.leftoverVisibleColumns+s.column-h.column)}_setState(i,o,s){if(s&&(s=l._validateViewState(i.viewModel,s)),o){let c=i.model.validateRange(o.selectionStart),_=o.selectionStart.equalsRange(c)?o.selectionStartLeftoverVisibleColumns:0,h=i.model.validatePosition(o.position),b=o.position.equals(h)?o.leftoverVisibleColumns:0;o=new Iw(c,o.selectionStartKind,_,h,b)}else{if(!s)return;let c=i.model.validateRange(i.coordinatesConverter.convertViewRangeToModelRange(s.selectionStart)),_=i.model.validatePosition(i.coordinatesConverter.convertViewPositionToModelPosition(s.position));o=new Iw(c,s.selectionStartKind,s.selectionStartLeftoverVisibleColumns,_,s.leftoverVisibleColumns)}if(s){let c=i.coordinatesConverter.validateViewRange(s.selectionStart,o.selectionStart),_=i.coordinatesConverter.validateViewPosition(s.position,o.position);s=new Iw(c,o.selectionStartKind,o.selectionStartLeftoverVisibleColumns,_,o.leftoverVisibleColumns)}else{let c=i.coordinatesConverter.convertModelPositionToViewPosition(new Cn(o.selectionStart.startLineNumber,o.selectionStart.startColumn)),_=i.coordinatesConverter.convertModelPositionToViewPosition(new Cn(o.selectionStart.endLineNumber,o.selectionStart.endColumn)),h=new Vt(c.lineNumber,c.column,_.lineNumber,_.column),b=i.coordinatesConverter.convertModelPositionToViewPosition(o.position);s=new Iw(h,o.selectionStartKind,o.selectionStartLeftoverVisibleColumns,b,o.leftoverVisibleColumns)}this.modelState=o,this.viewState=s,this._updateTrackedRange(i)}}});var Lot,qCi=Ht(()=>{su();VF();Sj();JCi();Ll();ca();hg();Lot=class{constructor(i){this.context=i,this.cursors=[new Pot(i)],this.lastAddedCursorIndex=0}dispose(){for(let i of this.cursors)i.dispose(this.context)}startTrackingSelections(){for(let i of this.cursors)i.startTrackingSelection(this.context)}stopTrackingSelections(){for(let i of this.cursors)i.stopTrackingSelection(this.context)}updateContext(i){this.context=i}ensureValidState(){for(let i of this.cursors)i.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(i=>i.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(i=>i.asCursorState())}getViewPositions(){return this.cursors.map(i=>i.viewState.position)}getTopMostViewPosition(){return $yi(this.cursors,Sw(i=>i.viewState.position,Cn.compare)).viewState.position}getBottomMostViewPosition(){return qyi(this.cursors,Sw(i=>i.viewState.position,Cn.compare)).viewState.position}getSelections(){return this.cursors.map(i=>i.modelState.selection)}getViewSelections(){return this.cursors.map(i=>i.viewState.selection)}setSelections(i){this.setStates(I_.fromModelSelections(i))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(i){i!==null&&(this.cursors[0].setState(this.context,i[0].modelState,i[0].viewState),this._setSecondaryStates(i.slice(1)))}_setSecondaryStates(i){let o=this.cursors.length-1,s=i.length;if(os){let c=o-s;for(let _=0;_=i+1&&this.lastAddedCursorIndex--,this.cursors[i+1].dispose(this.context),this.cursors.splice(i+1,1)}normalize(){if(this.cursors.length===1)return;let i=this.cursors.slice(0),o=[];for(let s=0,c=i.length;ss.selection,Vt.compareRangesUsingStarts));for(let s=0;sj&&re.index--;i.splice(j,1),o.splice(O,1),this._removeSecondaryCursor(j-1),s--}}}}});var Oot,$Ci=Ht(()=>{Oot=class{constructor(i,o,s,c){this._cursorContextBrand=void 0,this.model=i,this.viewModel=o,this.coordinatesConverter=s,this.cursorConfig=c}}});var Bht,jht,Wht,zht,xX,$Ae,Vht,Hht,GAe,Fot,zLe,VLe,Zle,Uht,Jht,qht,$ht,Ght,Kht=Ht(()=>{Bht=class{constructor(){this.type=0}},jht=class{constructor(){this.type=1}},Wht=class{constructor(i){this.type=2,this._source=i}hasChanged(i){return this._source.hasChanged(i)}},zht=class{constructor(i,o,s){this.selections=i,this.modelSelections=o,this.reason=s,this.type=3}},xX=class{constructor(i){this.type=4,i?(this.affectsMinimap=i.affectsMinimap,this.affectsOverviewRuler=i.affectsOverviewRuler,this.affectsGlyphMargin=i.affectsGlyphMargin,this.affectsLineNumber=i.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}},$Ae=class{constructor(){this.type=5}},Vht=class{constructor(i){this.type=6,this.isFocused=i}},Hht=class{constructor(){this.type=7}},GAe=class{constructor(){this.type=8}},Fot=class{constructor(i,o){this.fromLineNumber=i,this.count=o,this.type=9}},zLe=class{constructor(i,o){this.type=10,this.fromLineNumber=i,this.toLineNumber=o}},VLe=class{constructor(i,o){this.type=11,this.fromLineNumber=i,this.toLineNumber=o}},Zle=class{constructor(i,o,s,c,_,h,b){this.source=i,this.minimalReveal=o,this.range=s,this.selections=c,this.verticalType=_,this.revealHorizontal=h,this.scrollType=b,this.type=12}},Uht=class{constructor(i){this.type=13,this.scrollWidth=i.scrollWidth,this.scrollLeft=i.scrollLeft,this.scrollHeight=i.scrollHeight,this.scrollTop=i.scrollTop,this.scrollWidthChanged=i.scrollWidthChanged,this.scrollLeftChanged=i.scrollLeftChanged,this.scrollHeightChanged=i.scrollHeightChanged,this.scrollTopChanged=i.scrollTopChanged}},Jht=class{constructor(i){this.theme=i,this.type=14}},qht=class{constructor(i){this.type=15,this.ranges=i}},$ht=class{constructor(){this.type=16}},Ght=class{constructor(){this.type=17}}});var Xht,bni,Yht,Qht,Zht,egt,tgt,igt,ngt,rgt,ogt,sgt,agt,cgt,lgt,ugt=Ht(()=>{Pa();$r();Xht=class extends Ui{constructor(){super(),this._onEvent=this._register(new fn),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(i){this._addOutgoingEvent(i),this._emitOutgoingEvents()}_addOutgoingEvent(i){for(let o=0,s=this._outgoingEvents.length;o0;){if(this._collector||this._isConsumingViewEventQueue)return;let i=this._outgoingEvents.shift();i.isNoOp()||this._onEvent.fire(i)}}addViewEventHandler(i){for(let o=0,s=this._eventHandlers.length;o0&&this._emitMany(o)}this._emitOutgoingEvents()}emitSingleViewEvent(i){try{this.beginEmitViewEvents().emitViewEvent(i)}finally{this.endEmitViewEvents()}}_emitMany(i){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(i):this._viewEventQueue=i,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){let i=this._viewEventQueue;this._viewEventQueue=null;let o=this._eventHandlers.slice(0);for(let s of o)s.handleEvents(i)}}},bni=class{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(i){this.viewEvents.push(i)}emitOutgoingEvent(i){this.outgoingEvents.push(i)}},Yht=class l{constructor(i,o,s,c){this.kind=0,this._oldContentWidth=i,this._oldContentHeight=o,this.contentWidth=s,this.contentHeight=c,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(i){return i.kind!==this.kind?null:new l(this._oldContentWidth,this._oldContentHeight,i.contentWidth,i.contentHeight)}},Qht=class l{constructor(i,o){this.kind=1,this.oldHasFocus=i,this.hasFocus=o}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(i){return i.kind!==this.kind?null:new l(this.oldHasFocus,i.hasFocus)}},Zht=class l{constructor(i,o,s,c,_,h,b,w){this.kind=2,this._oldScrollWidth=i,this._oldScrollLeft=o,this._oldScrollHeight=s,this._oldScrollTop=c,this.scrollWidth=_,this.scrollLeft=h,this.scrollHeight=b,this.scrollTop=w,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(i){return i.kind!==this.kind?null:new l(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,i.scrollWidth,i.scrollLeft,i.scrollHeight,i.scrollTop)}},egt=class{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(i){return i.kind!==this.kind?null:this}},tgt=class{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(i){return i.kind!==this.kind?null:this}},igt=class l{constructor(i,o,s,c,_,h,b){this.kind=6,this.oldSelections=i,this.selections=o,this.oldModelVersionId=s,this.modelVersionId=c,this.source=_,this.reason=h,this.reachedMaxCursorCount=b}static _selectionsAreEqual(i,o){if(!i&&!o)return!0;if(!i||!o)return!1;let s=i.length,c=o.length;if(s!==c)return!1;for(let _=0;_{Pl();Bl();qCi();Sj();$Ci();Ypt();dmt();ca();hg();dfe();Kht();$r();ugt();dgt=class extends Ui{constructor(i,o,s,c){super(),this._model=i,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=o,this._coordinatesConverter=s,this.context=new Oot(this._model,this._viewModel,this._coordinatesConverter,c),this._cursors=new Lot(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=a_(this._autoClosedActions),super.dispose()}updateConfiguration(i){this.context=new Oot(this._model,this._viewModel,this._coordinatesConverter,i),this._cursors.updateContext(this.context)}onLineMappingChanged(i){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(i,"viewModel",0,this.getCursorStates())}setHasFocus(i){this._hasFocus=i}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){let i=this._cursors.getSelections();for(let o=0;oh&&(c=c.slice(0,h),_=!0);let b=Mot.from(this._model,this);return this._cursors.setStates(c),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(i,o,s,b,_)}setCursorColumnSelectData(i){this._columnSelectData=i}revealAll(i,o,s,c,_,h){let b=this._cursors.getViewPositions(),w=null,D=null;b.length>1?D=this._cursors.getViewSelections():w=Vt.fromPositions(b[0],b[0]),i.emitViewEvent(new Zle(o,s,w,D,c,_,h))}revealPrimary(i,o,s,c,_,h){let w=[this._cursors.getPrimaryCursor().viewState.selection];i.emitViewEvent(new Zle(o,s,null,w,c,_,h))}saveState(){let i=[],o=this._cursors.getSelections();for(let s=0,c=o.length;s0){let _=I_.fromModelSelections(s.resultingSelection);this.setStates(i,"modelChange",s.isUndoing?5:s.isRedoing?6:2,_)&&this.revealAll(i,"modelChange",!1,0,!0,0)}else{let _=this._cursors.readSelectionFromMarkers();this.setStates(i,"modelChange",2,I_.fromModelSelections(_))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;let i=this._cursors.getPrimaryCursor(),o=i.viewState.selectionStart.getStartPosition(),s=i.viewState.position;return{isReal:!1,fromViewLineNumber:o.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,o),toViewLineNumber:s.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,s)}}getSelections(){return this._cursors.getSelections()}setSelections(i,o,s,c){this.setStates(i,o,c,I_.fromModelSelections(s))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(i){this._prevEditOperationType=i}_pushAutoClosedAction(i,o){let s=[],c=[];for(let b=0,w=i.length;b0&&this._pushAutoClosedAction(s,c),this._prevEditOperationType=i.type}i.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(i){(!i||i.length===0)&&(i=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(i),this._cursors.normalize()}_emitStateChangedIfNecessary(i,o,s,c,_){let h=Mot.from(this._model,this);if(h.equals(c))return!1;let b=this._cursors.getSelections(),w=this._cursors.getViewSelections();if(i.emitViewEvent(new zht(w,b,s)),!c||c.cursorState.length!==h.cursorState.length||h.cursorState.some((D,O)=>!D.modelState.equals(c.cursorState[O].modelState))){let D=c?c.cursorState.map(j=>j.modelState.selection):null,O=c?c.modelVersionId:0;i.emitOutgoingEvent(new igt(D,b,O,h.modelVersionId,o||"keyboard",s,_))}return!0}_findAutoClosingPairs(i){if(!i.length)return null;let o=[];for(let s=0,c=i.length;s=0)return null;let h=_.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!h)return null;let b=h[1],w=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(b);if(!w||w.length!==1)return null;let D=w[0].open,O=_.text.length-h[2].length-1,j=_.text.lastIndexOf(D,O-1);if(j===-1)return null;o.push([j,O])}return o}executeEdits(i,o,s,c){let _=null;o==="snippet"&&(_=this._findAutoClosingPairs(s)),_&&(s[0]._isTracked=!0);let h=[],b=[],w=this._model.pushEditOperations(this.getSelections(),s,D=>{if(_)for(let j=0,F=_.length;j0&&this._pushAutoClosedAction(h,b)}_executeEdit(i,o,s,c=0){if(this.context.cursorConfig.readOnly)return;let _=Mot.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),i()}catch(h){Sc(h)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(o,s,c,_,!1)&&this.revealAll(o,s,!1,0,!0,0)}getAutoClosedCharacters(){return fgt.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(i){this._compositionState=new Cni(this._model,this.getSelections())}endComposition(i,o){let s=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{o==="keyboard"&&this._executeEditOperation($L.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,s,this.getSelections(),this.getAutoClosedCharacters()))},i,o)}type(i,o,s){this._executeEdit(()=>{if(s==="keyboard"){let c=o.length,_=0;for(;_{let D=w.getPosition();return new ya(D.lineNumber,D.column+_,D.lineNumber,D.column+_)});this.setSelections(i,h,b,0)}return}this._executeEdit(()=>{this._executeEditOperation($L.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),o,s,c,_))},i,h)}paste(i,o,s,c,_){this._executeEdit(()=>{this._executeEditOperation($L.paste(this.context.cursorConfig,this._model,this.getSelections(),o,s,c||[]))},i,_,4)}cut(i,o){this._executeEdit(()=>{this._executeEditOperation(Jle.cut(this.context.cursorConfig,this._model,this.getSelections()))},i,o)}executeCommand(i,o,s){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new XD(0,[o],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},i,s)}executeCommands(i,o,s){this._executeEdit(()=>{this._executeEditOperation(new XD(0,o,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},i,s)}},Mot=class l{static from(i,o){return new l(i.getVersionId(),o.getCursorStates())}constructor(i,o){this.modelVersionId=i,this.cursorState=o}equals(i){if(!i||this.modelVersionId!==i.modelVersionId||this.cursorState.length!==i.cursorState.length)return!1;for(let o=0,s=this.cursorState.length;o=o.length||!o[s].strictContainsRange(i[s]))return!1;return!0}},Sni=class{static executeCommands(i,o,s){let c={model:i,selectionsBefore:o,trackedRanges:[],trackedRangesDirection:[]},_=this._innerExecuteCommands(c,s);for(let h=0,b=c.trackedRanges.length;h0&&(h[0]._isTracked=!0);let b=i.model.pushEditOperations(i.selectionsBefore,h,D=>{let O=[];for(let X=0;XX.identifier.minor-K.identifier.minor,F=[];for(let X=0;X0?(O[X].sort(j),F[X]=o[X].computeCursorState(i.model,{getInverseEditOperations:()=>O[X],getTrackedSelection:K=>{let re=parseInt(K,10),Pe=i.model._getTrackedRange(i.trackedRanges[re]);return i.trackedRangesDirection[re]===0?new ya(Pe.startLineNumber,Pe.startColumn,Pe.endLineNumber,Pe.endColumn):new ya(Pe.endLineNumber,Pe.endColumn,Pe.startLineNumber,Pe.startColumn)}})):F[X]=i.selectionsBefore[X];return F});b||(b=i.selectionsBefore);let w=[];for(let D in _)_.hasOwnProperty(D)&&w.push(parseInt(D,10));w.sort((D,O)=>O-D);for(let D of w)b.splice(D,1);return b}static _arrayIsEmpty(i){for(let o=0,s=i.length;o{Vt.isEmpty(j)&&F===""||c.push({identifier:{major:o,minor:_++},range:j,text:F,forceMoveMarkers:X,isAutoWhitespaceEdit:s.insertsAutoWhitespace})},b=!1,O={addEditOperation:h,addTrackedEditOperation:(j,F,X)=>{b=!0,h(j,F,X)},trackSelection:(j,F)=>{let X=ya.liftSelection(j),K;if(X.isEmpty())if(typeof F=="boolean")F?K=2:K=3;else{let Le=i.model.getLineMaxColumn(X.startLineNumber);X.startColumn===Le?K=2:K=3}else K=1;let re=i.trackedRanges.length,Pe=i.model._setTrackedRange(null,X,K);return i.trackedRanges[re]=Pe,i.trackedRangesDirection[re]=X.getDirection(),re.toString()}};try{s.getEditOperations(i.model,O)}catch(j){return Sc(j),{operations:[],hadTrackedEditOperation:!1}}return{operations:c,hadTrackedEditOperation:b}}static _getLoserCursorMap(i){i=i.slice(0),i.sort((s,c)=>-Vt.compareRangesUsingEnds(s.range,c.range));let o={};for(let s=1;s_.identifier.major?h=c.identifier.major:h=_.identifier.major,o[h.toString()]=!0;for(let b=0;b0&&s--}}return o}},xni=class{constructor(i,o,s){this.text=i,this.startSelection=o,this.endSelection=s}},Cni=class l{static _capture(i,o){let s=[];for(let c of o){if(c.startLineNumber!==c.endLineNumber)return null;s.push(new xni(i.getLineContent(c.startLineNumber),c.startColumn-1,c.endColumn-1))}return s}constructor(i,o){this._original=l._capture(i,o)}deduceOutcome(i,o){if(!this._original)return null;let s=l._capture(i,o);if(!s||this._original.length!==s.length)return null;let c=[];for(let _=0,h=this._original.length;_0;)h&&O?(K+=" ",O=!1):(K+=" ",O=!0),Pe--;break}case 60:K+="<",O=!1;break;case 62:K+=">",O=!1;break;case 38:K+="&",O=!1;break;case 0:K+="�",O=!1;break;case 65279:case 8232:case 8233:case 133:K+="\uFFFD",O=!1;break;case 13:K+="​",O=!1;break;case 32:h&&O?(K+=" ",O=!1):(K+=" ",O=!0);break;default:K+=String.fromCharCode(re),O=!1}}if(b+=`${K}`,X>c||w>=c)break}return b+="",b}function YCi(l,i,o){let s='
',c=KA(l),_=o.getInitialState();for(let h=0,b=c.length;h0&&(s+="
");let D=o.tokenizeEncoded(w,!0,_);jb.convertToEndOffset(D.tokens,w.length);let j=new jb(D.tokens,w,i).inflate(),F=0;for(let X=0,K=j.getCount();X${bde(w.substring(F,Pe))}`,F=Pe}_=D.endState}return s+="
",s}var XCi,kni=Ht(()=>{Bl();eW();Fg();O6e();XCi={getInitialState:()=>YK,tokenizeEncoded:(l,i,o)=>Jde(0,o)}});var wni,Tni,Rot,eki=Ht(()=>{Bl();wni=class{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(i){this._hasPending=!0,this._inserts.push(i)}change(i){this._hasPending=!0,this._changes.push(i)}remove(i){this._hasPending=!0,this._removes.push(i)}mustCommit(){return this._hasPending}commit(i){if(!this._hasPending)return;let o=this._inserts,s=this._changes,c=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],i._commitPendingChanges(o,s,c)}},Tni=class{constructor(i,o,s,c,_){this.id=i,this.afterLineNumber=o,this.ordinal=s,this.height=c,this.minWidth=_,this.prefixSum=0}},Rot=class l{constructor(i,o,s,c){this._instanceId=Hdt(++l.INSTANCE_COUNT),this._pendingChanges=new wni,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=i,this._lineHeight=o,this._paddingTop=s,this._paddingBottom=c}static findInsertionIndex(i,o,s){let c=0,_=i.length;for(;c<_;){let h=c+_>>>1;o===i[h].afterLineNumber?s{o=!0,c=c|0,_=_|0,h=h|0,b=b|0;let w=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new Tni(w,c,_,h,b)),w},changeOneWhitespace:(c,_,h)=>{o=!0,_=_|0,h=h|0,this._pendingChanges.change({id:c,newAfterLineNumber:_,newHeight:h})},removeWhitespace:c=>{o=!0,this._pendingChanges.remove({id:c})}})}finally{this._pendingChanges.commit(this)}return o}_commitPendingChanges(i,o,s){if((i.length>0||s.length>0)&&(this._minWidth=-1),i.length+o.length+s.length<=1){for(let w of i)this._insertWhitespace(w);for(let w of o)this._changeOneWhitespace(w.id,w.newAfterLineNumber,w.newHeight);for(let w of s){let D=this._findWhitespaceIndex(w.id);D!==-1&&this._removeWhitespace(D)}return}let c=new Set;for(let w of s)c.add(w.id);let _=new Map;for(let w of o)_.set(w.id,w);let h=w=>{let D=[];for(let O of w)if(!c.has(O.id)){if(_.has(O.id)){let j=_.get(O.id);O.afterLineNumber=j.newAfterLineNumber,O.height=j.newHeight}D.push(O)}return D},b=h(this._arr).concat(h(i));b.sort((w,D)=>w.afterLineNumber===D.afterLineNumber?w.ordinal-D.ordinal:w.afterLineNumber-D.afterLineNumber),this._arr=b,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(i){let o=l.findInsertionIndex(this._arr,i.afterLineNumber,i.ordinal);this._arr.splice(o,0,i),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,o-1)}_findWhitespaceIndex(i){let o=this._arr;for(let s=0,c=o.length;so&&(this._arr[s].afterLineNumber-=o-i+1)}}onLinesInserted(i,o){this._checkPendingChanges(),i=i|0,o=o|0,this._lineCount+=o-i+1;for(let s=0,c=this._arr.length;s=o.length||o[b+1].afterLineNumber>=i)return b;s=b+1|0}else c=b-1|0}return-1}_findFirstWhitespaceAfterLineNumber(i){i=i|0;let s=this._findLastWhitespaceBeforeLineNumber(i)+1;return s1?s=this._lineHeight*(i-1):s=0;let c=this.getWhitespaceAccumulatedHeightBeforeLineNumber(i-(o?1:0));return s+c+this._paddingTop}getVerticalOffsetAfterLineNumber(i,o=!1){this._checkPendingChanges(),i=i|0;let s=this._lineHeight*i,c=this.getWhitespaceAccumulatedHeightBeforeLineNumber(i+(o?1:0));return s+c+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let i=0;for(let o=0,s=this._arr.length;oo}isInTopPadding(i){return this._paddingTop===0?!1:(this._checkPendingChanges(),i=o-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(i){if(this._checkPendingChanges(),i=i|0,i<0)return 1;let o=this._lineCount|0,s=this._lineHeight,c=1,_=o;for(;c<_;){let h=(c+_)/2|0,b=this.getVerticalOffsetForLineNumber(h)|0;if(i>=b+s)c=h+1;else{if(i>=b)return h;_=h}}return c>o?o:c}getLinesViewportData(i,o){this._checkPendingChanges(),i=i|0,o=o|0;let s=this._lineHeight,c=this.getLineNumberAtOrAfterVerticalOffset(i)|0,_=this.getVerticalOffsetForLineNumber(c)|0,h=this._lineCount|0,b=this.getFirstWhitespaceIndexAfterLineNumber(c)|0,w=this.getWhitespacesCount()|0,D,O;b===-1?(b=w,O=h+1,D=0):(O=this.getAfterLineNumberForWhitespaceIndex(b)|0,D=this.getHeightForWhitespaceIndex(b)|0);let j=_,F=j,X=5e5,K=0;_>=X&&(K=Math.floor(_/X)*X,K=Math.floor(K/s)*s,F-=K);let re=[],Pe=i+(o-i)/2,Le=-1;for(let Ct=c;Ct<=h;Ct++){if(Le===-1){let Et=j,St=j+s;(Et<=Pe&&PePe)&&(Le=Ct)}for(j+=s,re[Ct-c]=F,F+=s;O===Ct;)F+=D,j+=D,b++,b>=w?O=h+1:(O=this.getAfterLineNumberForWhitespaceIndex(b)|0,D=this.getHeightForWhitespaceIndex(b)|0);if(j>=o){h=Ct;break}}Le===-1&&(Le=h);let Je=this.getVerticalOffsetForLineNumber(h)|0,Ye=c,ft=h;return Yeo&&ft--,{bigNumbersDelta:K,startLineNumber:c,endLineNumber:h,relativeVerticalOffset:re,centeredLineNumber:Le,completelyVisibleStartLineNumber:Ye,completelyVisibleEndLineNumber:ft,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(i){this._checkPendingChanges(),i=i|0;let o=this.getAfterLineNumberForWhitespaceIndex(i),s;o>=1?s=this._lineHeight*o:s=0;let c;return i>0?c=this.getWhitespacesAccumulatedHeight(i-1):c=0,s+c+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(i){this._checkPendingChanges(),i=i|0;let o=0,s=this.getWhitespacesCount()-1;if(s<0)return-1;let c=this.getVerticalOffsetForWhitespaceIndex(s),_=this.getHeightForWhitespaceIndex(s);if(i>=c+_)return-1;for(;o=b+w)o=h+1;else{if(i>=b)return h;s=h}}return o}getWhitespaceAtVerticalOffset(i){this._checkPendingChanges(),i=i|0;let o=this.getWhitespaceIndexAtOrAfterVerticallOffset(i);if(o<0||o>=this.getWhitespacesCount())return null;let s=this.getVerticalOffsetForWhitespaceIndex(o);if(s>i)return null;let c=this.getHeightForWhitespaceIndex(o),_=this.getIdForWhitespaceIndex(o),h=this.getAfterLineNumberForWhitespaceIndex(o);return{id:_,afterLineNumber:h,verticalOffset:s,height:c}}getWhitespaceViewportData(i,o){this._checkPendingChanges(),i=i|0,o=o|0;let s=this.getWhitespaceIndexAtOrAfterVerticallOffset(i),c=this.getWhitespacesCount()-1;if(s<0)return[];let _=[];for(let h=s;h<=c;h++){let b=this.getVerticalOffsetForWhitespaceIndex(h),w=this.getHeightForWhitespaceIndex(h);if(b>=o)break;_.push({id:this.getIdForWhitespaceIndex(h),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(h),verticalOffset:b,height:w})}return _}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(i){return this._checkPendingChanges(),i=i|0,this._arr[i].id}getAfterLineNumberForWhitespaceIndex(i){return this._checkPendingChanges(),i=i|0,this._arr[i].afterLineNumber}getHeightForWhitespaceIndex(i){return this._checkPendingChanges(),i=i|0,this._arr[i].height}};Rot.INSTANCE_COUNT=0});var oji,KAe,Eni,_gt,tki=Ht(()=>{Pa();$r();fLe();eki();tW();ugt();oji=125,KAe=class{constructor(i,o,s,c){i=i|0,o=o|0,s=s|0,c=c|0,i<0&&(i=0),o<0&&(o=0),s<0&&(s=0),c<0&&(c=0),this.width=i,this.contentWidth=o,this.scrollWidth=Math.max(i,o),this.height=s,this.contentHeight=c,this.scrollHeight=Math.max(s,c)}equals(i){return this.width===i.width&&this.contentWidth===i.contentWidth&&this.height===i.height&&this.contentHeight===i.contentHeight}},Eni=class extends Ui{constructor(i,o){super(),this._onDidContentSizeChange=this._register(new fn),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new KAe(0,0,0,0),this._scrollable=this._register(new yj({forceIntegerValues:!0,smoothScrollDuration:i,scheduleAtNextAnimationFrame:o})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(i){this._scrollable.setSmoothScrollDuration(i)}validateScrollPosition(i){return this._scrollable.validateScrollPosition(i)}getScrollDimensions(){return this._dimensions}setScrollDimensions(i){if(this._dimensions.equals(i))return;let o=this._dimensions;this._dimensions=i,this._scrollable.setScrollDimensions({width:i.width,scrollWidth:i.scrollWidth,height:i.height,scrollHeight:i.scrollHeight},!0);let s=o.contentWidth!==i.contentWidth,c=o.contentHeight!==i.contentHeight;(s||c)&&this._onDidContentSizeChange.fire(new Yht(o.contentWidth,o.contentHeight,i.contentWidth,i.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(i){this._scrollable.setScrollPositionNow(i)}setScrollPositionSmooth(i){this._scrollable.setScrollPositionSmooth(i)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}},_gt=class extends Ui{constructor(i,o,s){super(),this._configuration=i;let c=this._configuration.options,_=c.get(145),h=c.get(84);this._linesLayout=new Rot(o,c.get(67),h.top,h.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new Eni(0,s)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new KAe(_.contentWidth,0,_.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(114)?oji:0)}onConfigurationChanged(i){let o=this._configuration.options;if(i.hasChanged(67)&&this._linesLayout.setLineHeight(o.get(67)),i.hasChanged(84)){let s=o.get(84);this._linesLayout.setPadding(s.top,s.bottom)}if(i.hasChanged(145)){let s=o.get(145),c=s.contentWidth,_=s.height,h=this._scrollable.getScrollDimensions(),b=h.contentWidth;this._scrollable.setScrollDimensions(new KAe(c,h.contentWidth,_,this._getContentHeight(c,_,b)))}else this._updateHeight();i.hasChanged(114)&&this._configureSmoothScrollDuration()}onFlushed(i){this._linesLayout.onFlushed(i)}onLinesDeleted(i,o){this._linesLayout.onLinesDeleted(i,o)}onLinesInserted(i,o){this._linesLayout.onLinesInserted(i,o)}_getHorizontalScrollbarHeight(i,o){let c=this._configuration.options.get(103);return c.horizontal===2||i>=o?0:c.horizontalScrollbarSize}_getContentHeight(i,o,s){let c=this._configuration.options,_=this._linesLayout.getLinesTotalHeight();return c.get(105)?_+=Math.max(0,o-c.get(67)-c.get(84).bottom):c.get(103).ignoreHorizontalScrollbarInContentHeight||(_+=this._getHorizontalScrollbarHeight(i,s)),_}_updateHeight(){let i=this._scrollable.getScrollDimensions(),o=i.width,s=i.height,c=i.contentWidth;this._scrollable.setScrollDimensions(new KAe(o,i.contentWidth,s,this._getContentHeight(o,s,c)))}getCurrentViewport(){let i=this._scrollable.getScrollDimensions(),o=this._scrollable.getCurrentScrollPosition();return new xrt(o.scrollTop,o.scrollLeft,i.width,i.height)}getFutureViewport(){let i=this._scrollable.getScrollDimensions(),o=this._scrollable.getFutureScrollPosition();return new xrt(o.scrollTop,o.scrollLeft,i.width,i.height)}_computeContentWidth(){let i=this._configuration.options,o=this._maxLineWidth,s=i.get(146),c=i.get(50),_=i.get(145);if(s.isViewportWrapping){let h=i.get(73);return o>_.contentWidth+c.typicalHalfwidthCharacterWidth&&h.enabled&&h.side==="right"?o+_.verticalScrollbarWidth:o}else{let h=i.get(104)*c.typicalHalfwidthCharacterWidth,b=this._linesLayout.getWhitespaceMinWidth();return Math.max(o+h+_.verticalScrollbarWidth,b,this._overlayWidgetsMinWidth)}}setMaxLineWidth(i){this._maxLineWidth=i,this._updateContentWidth()}setOverlayWidgetsMinWidth(i){this._overlayWidgetsMinWidth=i,this._updateContentWidth()}_updateContentWidth(){let i=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new KAe(i.width,this._computeContentWidth(),i.height,i.contentHeight)),this._updateHeight()}saveState(){let i=this._scrollable.getFutureScrollPosition(),o=i.scrollTop,s=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(o),c=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(s);return{scrollTop:o,scrollTopWithoutViewZones:o-c,scrollLeft:i.scrollLeft}}changeWhitespace(i){let o=this._linesLayout.changeWhitespace(i);return o&&this.onHeightMaybeChanged(),o}getVerticalOffsetForLineNumber(i,o=!1){return this._linesLayout.getVerticalOffsetForLineNumber(i,o)}getVerticalOffsetAfterLineNumber(i,o=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(i,o)}isAfterLines(i){return this._linesLayout.isAfterLines(i)}isInTopPadding(i){return this._linesLayout.isInTopPadding(i)}isInBottomPadding(i){return this._linesLayout.isInBottomPadding(i)}getLineNumberAtVerticalOffset(i){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i)}getWhitespaceAtVerticalOffset(i){return this._linesLayout.getWhitespaceAtVerticalOffset(i)}getLinesViewportData(){let i=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(i.top,i.top+i.height)}getLinesViewportDataAtScrollTop(i){let o=this._scrollable.getScrollDimensions();return i+o.height>o.scrollHeight&&(i=o.scrollHeight-o.height),i<0&&(i=0),this._linesLayout.getLinesViewportData(i,i+o.height)}getWhitespaceViewportData(){let i=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(i.top,i.top+i.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(i){return this._scrollable.validateScrollPosition(i)}setScrollPosition(i,o){o===1?this._scrollable.setScrollPositionNow(i):this._scrollable.setScrollPositionSmooth(i)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(i,o){let s=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:s.scrollLeft+i,scrollTop:s.scrollTop+o})}}});function mgt(l,i){return!(i.options.hideInCommentTokens&&hgt(l,i)||i.options.hideInStringTokens&&ggt(l,i))}function hgt(l,i){return iki(l,i.range,o=>o===1)}function ggt(l,i){return iki(l,i.range,o=>o===2)}function iki(l,i,o){for(let s=i.startLineNumber;s<=i.endLineNumber;s++){let c=l.tokenization.getLineTokens(s),_=s===i.startLineNumber,h=s===i.endLineNumber,b=_?c.findTokenIndexAtOffset(i.startColumn-1):0;for(;bi.endColumn-1);){if(!o(c.getStandardTokenType(b)))return!1;b++}}return!0}var pgt,Dni=Ht(()=>{Ll();ca();tW();FC();pgt=class{constructor(i,o,s,c,_){this.editorId=i,this.model=o,this.configuration=s,this._linesCollection=c,this._coordinatesConverter=_,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(i){let o=i.id,s=this._decorationsCache[o];if(!s){let c=i.range,_=i.options,h;if(_.isWholeLine){let b=this._coordinatesConverter.convertModelPositionToViewPosition(new Cn(c.startLineNumber,1),0,!1,!0),w=this._coordinatesConverter.convertModelPositionToViewPosition(new Cn(c.endLineNumber,this.model.getLineMaxColumn(c.endLineNumber)),1);h=new Vt(b.lineNumber,b.column,w.lineNumber,w.column)}else h=this._coordinatesConverter.convertModelRangeToViewRange(c,1);s=new R6e(h,_),this._decorationsCache[o]=s}return s}getMinimapDecorationsInRange(i){return this._getDecorationsInRange(i,!0,!1).decorations}getDecorationsViewportData(i){let o=this._cachedModelDecorationsResolver!==null;return o=o&&i.equalsRange(this._cachedModelDecorationsResolverViewRange),o||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(i,!1,!1),this._cachedModelDecorationsResolverViewRange=i),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(i,o=!1,s=!1){let c=new Vt(i,this._linesCollection.getViewLineMinColumn(i),i,this._linesCollection.getViewLineMaxColumn(i));return this._getDecorationsInRange(c,o,s).inlineDecorations[0]}_getDecorationsInRange(i,o,s){let c=this._linesCollection.getDecorationsInRange(i,this.editorId,xNe(this.configuration.options),o,s),_=i.startLineNumber,h=i.endLineNumber,b=[],w=0,D=[];for(let O=_;O<=h;O++)D[O-_]=[];for(let O=0,j=c.length;O=Ini.length)for(let i=1;i<=l;i++)Ini[i]=sji(i);return Ini[l]}function sji(l){return new Array(l+1).join(" ")}var Nni,HLe,ULe,Ini,rki=Ht(()=>{eW();Ll();dfe();tW();Nni=class{constructor(i,o){this._projectionData=i,this._isVisible=o}isVisible(){return this._isVisible}setVisible(i){return this._isVisible=i,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(i,o,s){this._assertVisible();let c=s>0?this._projectionData.breakOffsets[s-1]:0,_=this._projectionData.breakOffsets[s],h;if(this._projectionData.injectionOffsets!==null){let b=this._projectionData.injectionOffsets.map((D,O)=>new $F(0,0,D+1,this._projectionData.injectionOptions[O],0));h=$F.applyInjectedText(i.getLineContent(o),b).substring(c,_)}else h=i.getValueInRange({startLineNumber:o,startColumn:c+1,endLineNumber:o,endColumn:_+1});return s>0&&(h=nki(this._projectionData.wrappedTextIndentLength)+h),h}getViewLineLength(i,o,s){return this._assertVisible(),this._projectionData.getLineLength(s)}getViewLineMinColumn(i,o,s){return this._assertVisible(),this._projectionData.getMinOutputOffset(s)+1}getViewLineMaxColumn(i,o,s){return this._assertVisible(),this._projectionData.getMaxOutputOffset(s)+1}getViewLineData(i,o,s){let c=new Array;return this.getViewLinesData(i,o,s,1,0,[!0],c),c[0]}getViewLinesData(i,o,s,c,_,h,b){this._assertVisible();let w=this._projectionData,D=w.injectionOffsets,O=w.injectionOptions,j=null;if(D){j=[];let X=0,K=0;for(let re=0;re0?w.breakOffsets[re-1]:0,Je=w.breakOffsets[re];for(;KJe)break;if(Le0?w.wrappedTextIndentLength:0,Mi=St+Math.max(ft-Le,0),zi=St+Math.min(Ct-Le,Je-Le);Mi!==zi&&Pe.push(new R_t(Mi,zi,Et.inlineClassName,Et.inlineClassNameAffectsLetterSpacing))}}if(Ct<=Je)X+=Ye,K++;else break}}}let F;D?F=i.tokenization.getLineTokens(o).withInserted(D.map((X,K)=>({offset:X,text:O[K].content,tokenMetadata:jb.defaultTokenMetadata}))):F=i.tokenization.getLineTokens(o);for(let X=s;X0?c.wrappedTextIndentLength:0,h=s>0?c.breakOffsets[s-1]:0,b=c.breakOffsets[s],w=i.sliceAndInflate(h,b,_),D=w.getLineContent();s>0&&(D=nki(c.wrappedTextIndentLength)+D);let O=this._projectionData.getMinOutputOffset(s)+1,j=D.length+1,F=s+1c+1?(o.push(new Vt(s,1,c,1)),s=b.startLineNumber,c=b.endLineNumber):b.endLineNumber>c&&(c=b.endLineNumber)}return o.push(new Vt(s,1,c,1)),o}var vgt,bgt,Sgt,Ani,xgt,Pni,oki=Ht(()=>{su();Ll();ca();Imt();DC();dfe();Kht();rki();KZt();tW();vgt=class{constructor(i,o,s,c,_,h,b,w,D,O){this._editorId=i,this.model=o,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=s,this._monospaceLineBreaksComputerFactory=c,this.fontInfo=_,this.tabSize=h,this.wrappingStrategy=b,this.wrappingColumn=w,this.wrappingIndent=D,this.wordBreak=O,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new Ani(this)}_constructLines(i,o){this.modelLineProjections=[],i&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));let s=this.model.getLinesContent(),c=this.model.getInjectedTextDecorations(this._editorId),_=s.length,h=this.createLineBreaksComputer(),b=new nP($F.fromDecorations(c));for(let re=0;re<_;re++){let Pe=b.takeWhile(Le=>Le.lineNumber===re+1);h.addRequest(s[re],Pe,o?o[re]:null)}let w=h.finalize(),D=[],O=this.hiddenAreasDecorationIds.map(re=>this.model.getDecorationRange(re)).sort(Vt.compareRangesUsingStarts),j=1,F=0,X=-1,K=X+1=j&&Pe<=F,Je=ygt(w[re],!Le);D[re]=Je.getViewLineCount(),this.modelLineProjections[re]=Je}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new d_t(D)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(i=>this.model.getDecorationRange(i))}setHiddenAreas(i){let o=i.map(F=>this.model.validateRange(F)),s=aji(o),c=this.hiddenAreasDecorationIds.map(F=>this.model.getDecorationRange(F)).sort(Vt.compareRangesUsingStarts);if(s.length===c.length){let F=!1;for(let X=0;X({range:F,options:eu.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,_);let h=s,b=1,w=0,D=-1,O=D+1=b&&X<=w?this.modelLineProjections[F].isVisible()&&(this.modelLineProjections[F]=this.modelLineProjections[F].setVisible(!1),K=!0):(j=!0,this.modelLineProjections[F].isVisible()||(this.modelLineProjections[F]=this.modelLineProjections[F].setVisible(!0),K=!0)),K){let re=this.modelLineProjections[F].getViewLineCount();this.projectedModelLineLineCounts.setValue(F,re)}}return j||this.setHiddenAreas([]),!0}modelPositionIsVisible(i,o){return i<1||i>this.modelLineProjections.length?!1:this.modelLineProjections[i-1].isVisible()}getModelLineViewLineCount(i){return i<1||i>this.modelLineProjections.length?1:this.modelLineProjections[i-1].getViewLineCount()}setTabSize(i){return this.tabSize===i?!1:(this.tabSize=i,this._constructLines(!1,null),!0)}setWrappingSettings(i,o,s,c,_){let h=this.fontInfo.equals(i),b=this.wrappingStrategy===o,w=this.wrappingColumn===s,D=this.wrappingIndent===c,O=this.wordBreak===_;if(h&&b&&w&&D&&O)return!1;let j=h&&b&&!w&&D&&O;this.fontInfo=i,this.wrappingStrategy=o,this.wrappingColumn=s,this.wrappingIndent=c,this.wordBreak=_;let F=null;if(j){F=[];for(let X=0,K=this.modelLineProjections.length;X2&&!this.modelLineProjections[o-2].isVisible(),h=o===1?1:this.projectedModelLineLineCounts.getPrefixSum(o-1)+1,b=0,w=[],D=[];for(let O=0,j=c.length;Ow?(O=this.projectedModelLineLineCounts.getPrefixSum(o-1)+1,j=O+w-1,K=j+1,re=K+(_-w)-1,D=!0):_o?o:i|0}getActiveIndentGuide(i,o,s){i=this._toValidViewLineNumber(i),o=this._toValidViewLineNumber(o),s=this._toValidViewLineNumber(s);let c=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),_=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),h=this.convertViewPositionToModelPosition(s,this.getViewLineMinColumn(s)),b=this.model.guides.getActiveIndentGuide(c.lineNumber,_.lineNumber,h.lineNumber),w=this.convertModelPositionToViewPosition(b.startLineNumber,1),D=this.convertModelPositionToViewPosition(b.endLineNumber,this.model.getLineMaxColumn(b.endLineNumber));return{startLineNumber:w.lineNumber,endLineNumber:D.lineNumber,indent:b.indent}}getViewLineInfo(i){i=this._toValidViewLineNumber(i);let o=this.projectedModelLineLineCounts.getIndexOf(i-1),s=o.index,c=o.remainder;return new bgt(s+1,c)}getMinColumnOfViewLine(i){return this.modelLineProjections[i.modelLineNumber-1].getViewLineMinColumn(this.model,i.modelLineNumber,i.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(i){return this.modelLineProjections[i.modelLineNumber-1].getViewLineMaxColumn(this.model,i.modelLineNumber,i.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(i){let o=this.modelLineProjections[i.modelLineNumber-1],s=o.getViewLineMinColumn(this.model,i.modelLineNumber,i.modelLineWrappedLineIdx),c=o.getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,s);return new Cn(i.modelLineNumber,c)}getModelEndPositionOfViewLine(i){let o=this.modelLineProjections[i.modelLineNumber-1],s=o.getViewLineMaxColumn(this.model,i.modelLineNumber,i.modelLineWrappedLineIdx),c=o.getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,s);return new Cn(i.modelLineNumber,c)}getViewLineInfosGroupedByModelRanges(i,o){let s=this.getViewLineInfo(i),c=this.getViewLineInfo(o),_=new Array,h=this.getModelStartPositionOfViewLine(s),b=new Array;for(let w=s.modelLineNumber;w<=c.modelLineNumber;w++){let D=this.modelLineProjections[w-1];if(D.isVisible()){let O=w===s.modelLineNumber?s.modelLineWrappedLineIdx:0,j=w===c.modelLineNumber?c.modelLineWrappedLineIdx+1:D.getViewLineCount();for(let F=O;F{if(X.forWrappedLinesAfterColumn!==-1&&this.modelLineProjections[O.modelLineNumber-1].getViewPositionOfModelPosition(0,X.forWrappedLinesAfterColumn).lineNumber>=O.modelLineWrappedLineIdx||X.forWrappedLinesBeforeOrAtColumn!==-1&&this.modelLineProjections[O.modelLineNumber-1].getViewPositionOfModelPosition(0,X.forWrappedLinesBeforeOrAtColumn).lineNumberO.modelLineWrappedLineIdx)return}let re=this.convertModelPositionToViewPosition(O.modelLineNumber,X.horizontalLine.endColumn),Pe=this.modelLineProjections[O.modelLineNumber-1].getViewPositionOfModelPosition(0,X.horizontalLine.endColumn);return Pe.lineNumber===O.modelLineWrappedLineIdx?new gW(X.visibleColumn,K,X.className,new Gle(X.horizontalLine.top,re.column),-1,-1):Pe.lineNumber!!X))}}return h}getViewLinesIndentGuides(i,o){i=this._toValidViewLineNumber(i),o=this._toValidViewLineNumber(o);let s=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),c=this.convertViewPositionToModelPosition(o,this.getViewLineMaxColumn(o)),_=[],h=[],b=[],w=s.lineNumber-1,D=c.lineNumber-1,O=null;for(let K=w;K<=D;K++){let re=this.modelLineProjections[K];if(re.isVisible()){let Pe=re.getViewLineNumberOfModelPosition(0,K===w?s.column:1),Le=re.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(K+1)),Je=Le-Pe+1,Ye=0;Je>1&&re.getViewLineMinColumn(this.model,K+1,Le)===1&&(Ye=Pe===0?1:2),h.push(Je),b.push(Ye),O===null&&(O=new Cn(K+1,0))}else O!==null&&(_=_.concat(this.model.guides.getLinesIndentGuides(O.lineNumber,K)),O=null)}O!==null&&(_=_.concat(this.model.guides.getLinesIndentGuides(O.lineNumber,c.lineNumber)),O=null);let j=o-i+1,F=new Array(j),X=0;for(let K=0,re=_.length;Ko&&(K=!0,X=o-_+1),j.getViewLinesData(this.model,D+1,F,X,_-i,s,w),_+=X,K)break}return w}validateViewPosition(i,o,s){i=this._toValidViewLineNumber(i);let c=this.projectedModelLineLineCounts.getIndexOf(i-1),_=c.index,h=c.remainder,b=this.modelLineProjections[_],w=b.getViewLineMinColumn(this.model,_+1,h),D=b.getViewLineMaxColumn(this.model,_+1,h);oD&&(o=D);let O=b.getModelColumnOfViewPosition(h,o);return this.model.validatePosition(new Cn(_+1,O)).equals(s)?new Cn(i,o):this.convertModelPositionToViewPosition(s.lineNumber,s.column)}validateViewRange(i,o){let s=this.validateViewPosition(i.startLineNumber,i.startColumn,o.getStartPosition()),c=this.validateViewPosition(i.endLineNumber,i.endColumn,o.getEndPosition());return new Vt(s.lineNumber,s.column,c.lineNumber,c.column)}convertViewPositionToModelPosition(i,o){let s=this.getViewLineInfo(i),c=this.modelLineProjections[s.modelLineNumber-1].getModelColumnOfViewPosition(s.modelLineWrappedLineIdx,o);return this.model.validatePosition(new Cn(s.modelLineNumber,c))}convertViewRangeToModelRange(i){let o=this.convertViewPositionToModelPosition(i.startLineNumber,i.startColumn),s=this.convertViewPositionToModelPosition(i.endLineNumber,i.endColumn);return new Vt(o.lineNumber,o.column,s.lineNumber,s.column)}convertModelPositionToViewPosition(i,o,s=2,c=!1,_=!1){let h=this.model.validatePosition(new Cn(i,o)),b=h.lineNumber,w=h.column,D=b-1,O=!1;if(_)for(;D0&&!this.modelLineProjections[D].isVisible();)D--,O=!0;if(D===0&&!this.modelLineProjections[D].isVisible())return new Cn(c?0:1,1);let j=1+this.projectedModelLineLineCounts.getPrefixSum(D),F;return O?_?F=this.modelLineProjections[D].getViewPositionOfModelPosition(j,1,s):F=this.modelLineProjections[D].getViewPositionOfModelPosition(j,this.model.getLineMaxColumn(D+1),s):F=this.modelLineProjections[b-1].getViewPositionOfModelPosition(j,w,s),F}convertModelRangeToViewRange(i,o=0){if(i.isEmpty()){let s=this.convertModelPositionToViewPosition(i.startLineNumber,i.startColumn,o);return Vt.fromPositions(s)}else{let s=this.convertModelPositionToViewPosition(i.startLineNumber,i.startColumn,1),c=this.convertModelPositionToViewPosition(i.endLineNumber,i.endColumn,0);return new Vt(s.lineNumber,s.column,c.lineNumber,c.column)}}getViewLineNumberOfModelPosition(i,o){let s=i-1;if(this.modelLineProjections[s].isVisible()){let _=1+this.projectedModelLineLineCounts.getPrefixSum(s);return this.modelLineProjections[s].getViewLineNumberOfModelPosition(_,o)}for(;s>0&&!this.modelLineProjections[s].isVisible();)s--;if(s===0&&!this.modelLineProjections[s].isVisible())return 1;let c=1+this.projectedModelLineLineCounts.getPrefixSum(s);return this.modelLineProjections[s].getViewLineNumberOfModelPosition(c,this.model.getLineMaxColumn(s+1))}getDecorationsInRange(i,o,s,c,_){let h=this.convertViewPositionToModelPosition(i.startLineNumber,i.startColumn),b=this.convertViewPositionToModelPosition(i.endLineNumber,i.endColumn);if(b.lineNumber-h.lineNumber<=i.endLineNumber-i.startLineNumber)return this.model.getDecorationsInRange(new Vt(h.lineNumber,1,b.lineNumber,b.column),o,s,c,_);let w=[],D=h.lineNumber-1,O=b.lineNumber-1,j=null;for(let re=D;re<=O;re++)if(this.modelLineProjections[re].isVisible())j===null&&(j=new Cn(re+1,re===D?h.column:1));else if(j!==null){let Le=this.model.getLineMaxColumn(re);w=w.concat(this.model.getDecorationsInRange(new Vt(j.lineNumber,j.column,re,Le),o,s,c)),j=null}j!==null&&(w=w.concat(this.model.getDecorationsInRange(new Vt(j.lineNumber,j.column,b.lineNumber,b.column),o,s,c)),j=null),w.sort((re,Pe)=>{let Le=Vt.compareRangesUsingStarts(re.range,Pe.range);return Le===0?re.idPe.id?1:0:Le});let F=[],X=0,K=null;for(let re of w){let Pe=re.id;K!==Pe&&(K=Pe,F[X++]=re)}return F}getInjectedTextAt(i){let o=this.getViewLineInfo(i.lineNumber);return this.modelLineProjections[o.modelLineNumber-1].getInjectedTextAt(o.modelLineWrappedLineIdx,i.column)}normalizePosition(i,o){let s=this.getViewLineInfo(i.lineNumber);return this.modelLineProjections[s.modelLineNumber-1].normalizePosition(s.modelLineWrappedLineIdx,i,o)}getLineIndentColumn(i){let o=this.getViewLineInfo(i);return o.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(o.modelLineNumber):0}};bgt=class{constructor(i,o){this.modelLineNumber=i,this.modelLineWrappedLineIdx=o}},Sgt=class{constructor(i,o){this.modelRange=i,this.viewLines=o}},Ani=class{constructor(i){this._lines=i}convertViewPositionToModelPosition(i){return this._lines.convertViewPositionToModelPosition(i.lineNumber,i.column)}convertViewRangeToModelRange(i){return this._lines.convertViewRangeToModelRange(i)}validateViewPosition(i,o){return this._lines.validateViewPosition(i.lineNumber,i.column,o)}validateViewRange(i,o){return this._lines.validateViewRange(i,o)}convertModelPositionToViewPosition(i,o,s,c){return this._lines.convertModelPositionToViewPosition(i.lineNumber,i.column,o,s,c)}convertModelRangeToViewRange(i,o){return this._lines.convertModelRangeToViewRange(i,o)}modelPositionIsVisible(i){return this._lines.modelPositionIsVisible(i.lineNumber,i.column)}getModelLineViewLineCount(i){return this._lines.getModelLineViewLineCount(i)}getViewLineNumberOfModelPosition(i,o){return this._lines.getViewLineNumberOfModelPosition(i,o)}},xgt=class{constructor(i){this.model=i}dispose(){}createCoordinatesConverter(){return new Pni(this)}getHiddenAreas(){return[]}setHiddenAreas(i){return!1}setTabSize(i){return!1}setWrappingSettings(i,o,s,c){return!1}createLineBreaksComputer(){let i=[];return{addRequest:(o,s,c)=>{i.push(null)},finalize:()=>i}}onModelFlushed(){}onModelLinesDeleted(i,o,s){return new zLe(o,s)}onModelLinesInserted(i,o,s,c){return new VLe(o,s)}onModelLineChanged(i,o,s){return[!1,new Fot(o,1),null,null]}acceptVersionId(i){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(i,o,s){return{startLineNumber:i,endLineNumber:i,indent:0}}getViewLinesBracketGuides(i,o,s){return new Array(o-i+1).fill([])}getViewLinesIndentGuides(i,o){let s=o-i+1,c=new Array(s);for(let _=0;_o)}getModelLineViewLineCount(i){return 1}getViewLineNumberOfModelPosition(i,o){return i}}});var XAe,Cgt,ski=Ht(()=>{b2();XAe=zL.Right,Cgt=class{constructor(i){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((i+1)*XAe/8))}reset(i){let o=Math.ceil((i+1)*XAe/8);this.lanes.length>>3]|=1<<_%8,this._requiredLanes=Math.max(this._requiredLanes,this.countAtLine(c))}}getLanesAtLine(i){let o=[],s=XAe*i;for(let c=0;c>>3]&1<>>3]&1<{su();Bu();j1();$r();uf();Bl();FC();KCi();Sj();Ll();ca();dfe();Fg();lj();kni();Kht();tki();Yti();tW();Dni();ugt();oki();ski();cji=!0,kgt=class extends Ui{constructor(i,o,s,c,_,h,b,w,D){if(super(),this.languageConfigurationService=b,this._themeService=w,this._attachedView=D,this.hiddenAreasModel=new Fni,this.previousHiddenAreas=[],this._editorId=i,this._configuration=o,this.model=s,this._eventDispatcher=new Xht,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new Ule(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._updateConfigurationViewLineCount=this._register(new Bd(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStart=Lni.create(this.model),this.glyphLanes=new Cgt(0),cji&&this.model.isTooLargeForTokenization())this._lines=new xgt(this.model);else{let O=this._configuration.options,j=O.get(50),F=O.get(139),X=O.get(146),K=O.get(138),re=O.get(129);this._lines=new vgt(this._editorId,this.model,c,_,j,this.model.getOptions().tabSize,F,X.wrappingColumn,K,re)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new dgt(s,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new _gt(this._configuration,this.getLineCount(),h)),this._register(this.viewLayout.onDidScroll(O=>{O.scrollTopChanged&&this._handleVisibleLinesChanged(),O.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Uht(O)),this._eventDispatcher.emitOutgoingEvent(new Zht(O.oldScrollWidth,O.oldScrollLeft,O.oldScrollHeight,O.oldScrollTop,O.scrollWidth,O.scrollLeft,O.scrollHeight,O.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(O=>{this._eventDispatcher.emitOutgoingEvent(O)})),this._decorations=new pgt(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(O=>{try{let j=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(j,O)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(jAe.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new $ht)})),this._register(this._themeService.onDidColorThemeChange(O=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new Jht(O))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(i){this._eventDispatcher.addViewEventHandler(i)}removeViewEventHandler(i){this._eventDispatcher.removeViewEventHandler(i)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){let i=this.viewLayout.getLinesViewportData(),o=new Vt(i.startLineNumber,this.getLineMinColumn(i.startLineNumber),i.endLineNumber,this.getLineMaxColumn(i.endLineNumber));return this._toModelVisibleRanges(o)}visibleLinesStabilized(){let i=this.getModelVisibleRanges();this._attachedView.setVisibleLines(i,!0)}_handleVisibleLinesChanged(){let i=this.getModelVisibleRanges();this._attachedView.setVisibleLines(i,!1)}setHasFocus(i){this._hasFocus=i,this._cursor.setHasFocus(i),this._eventDispatcher.emitSingleViewEvent(new Vht(i)),this._eventDispatcher.emitOutgoingEvent(new Qht(!i,i))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new Bht)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new jht)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){let i=new Cn(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),o=this.coordinatesConverter.convertViewPositionToModelPosition(i);return new wgt(o,this._viewportStart.startLineDelta)}return new wgt(null,0)}_onConfigurationChanged(i,o){let s=this._captureStableViewport(),c=this._configuration.options,_=c.get(50),h=c.get(139),b=c.get(146),w=c.get(138),D=c.get(129);this._lines.setWrappingSettings(_,h,b.wrappingColumn,w,D)&&(i.emitViewEvent(new $Ae),i.emitViewEvent(new GAe),i.emitViewEvent(new xX(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),o.hasChanged(91)&&(this._decorations.reset(),i.emitViewEvent(new xX(null))),o.hasChanged(98)&&(this._decorations.reset(),i.emitViewEvent(new xX(null))),i.emitViewEvent(new Wht(o)),this.viewLayout.onConfigurationChanged(o),s.recoverViewportStart(this.coordinatesConverter,this.viewLayout),Ule.shouldRecreate(o)&&(this.cursorConfig=new Ule(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(i=>{try{let s=this._eventDispatcher.beginEmitViewEvents(),c=!1,_=!1,h=i instanceof ufe?i.rawContentChangedEvent.changes:i.changes,b=i instanceof ufe?i.rawContentChangedEvent.versionId:null,w=this._lines.createLineBreaksComputer();for(let j of h)switch(j.changeType){case 4:{for(let F=0;F!re.ownerId||re.ownerId===this._editorId)),w.addRequest(X,K,null)}break}case 2:{let F=null;j.injectedText&&(F=j.injectedText.filter(X=>!X.ownerId||X.ownerId===this._editorId)),w.addRequest(j.detail,F,null);break}}let D=w.finalize(),O=new nP(D);for(let j of h)switch(j.changeType){case 1:{this._lines.onModelFlushed(),s.emitViewEvent(new $Ae),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),c=!0;break}case 3:{let F=this._lines.onModelLinesDeleted(b,j.fromLineNumber,j.toLineNumber);F!==null&&(s.emitViewEvent(F),this.viewLayout.onLinesDeleted(F.fromLineNumber,F.toLineNumber)),c=!0;break}case 4:{let F=O.takeCount(j.detail.length),X=this._lines.onModelLinesInserted(b,j.fromLineNumber,j.toLineNumber,F);X!==null&&(s.emitViewEvent(X),this.viewLayout.onLinesInserted(X.fromLineNumber,X.toLineNumber)),c=!0;break}case 2:{let F=O.dequeue(),[X,K,re,Pe]=this._lines.onModelLineChanged(b,j.lineNumber,F);_=X,K&&s.emitViewEvent(K),re&&(s.emitViewEvent(re),this.viewLayout.onLinesInserted(re.fromLineNumber,re.toLineNumber)),Pe&&(s.emitViewEvent(Pe),this.viewLayout.onLinesDeleted(Pe.fromLineNumber,Pe.toLineNumber));break}case 5:break}b!==null&&this._lines.acceptVersionId(b),this.viewLayout.onHeightMaybeChanged(),!c&&_&&(s.emitViewEvent(new GAe),s.emitViewEvent(new xX(null)),this._cursor.onLineMappingChanged(s),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}let o=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&o){let s=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(s){let c=this.coordinatesConverter.convertModelPositionToViewPosition(s.getStartPosition()),_=this.viewLayout.getVerticalOffsetForLineNumber(c.lineNumber);this.viewLayout.setScrollPosition({scrollTop:_+this._viewportStart.startLineDelta},1)}}try{let s=this._eventDispatcher.beginEmitViewEvents();i instanceof ufe&&s.emitOutgoingEvent(new agt(i.contentChangedEvent)),this._cursor.onModelContentChanged(s,i)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()})),this._register(this.model.onDidChangeTokens(i=>{let o=[];for(let s=0,c=i.ranges.length;s{this._eventDispatcher.emitSingleViewEvent(new Hht),this.cursorConfig=new Ule(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new sgt(i))})),this._register(this.model.onDidChangeLanguage(i=>{this.cursorConfig=new Ule(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new ogt(i))})),this._register(this.model.onDidChangeOptions(i=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{let o=this._eventDispatcher.beginEmitViewEvents();o.emitViewEvent(new $Ae),o.emitViewEvent(new GAe),o.emitViewEvent(new xX(null)),this._cursor.onLineMappingChanged(o),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new Ule(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new cgt(i))})),this._register(this.model.onDidChangeDecorations(i=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new xX(i)),this._eventDispatcher.emitOutgoingEvent(new rgt(i))}))}setHiddenAreas(i,o){var s;this.hiddenAreasModel.setHiddenAreas(o,i);let c=this.hiddenAreasModel.getMergedRanges();if(c===this.previousHiddenAreas)return;this.previousHiddenAreas=c;let _=this._captureStableViewport(),h=!1;try{let b=this._eventDispatcher.beginEmitViewEvents();h=this._lines.setHiddenAreas(c),h&&(b.emitViewEvent(new $Ae),b.emitViewEvent(new GAe),b.emitViewEvent(new xX(null)),this._cursor.onLineMappingChanged(b),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());let w=(s=_.viewportStartModelPosition)===null||s===void 0?void 0:s.lineNumber;w&&c.some(O=>O.startLineNumber<=w&&w<=O.endLineNumber)||_.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),h&&this._eventDispatcher.emitOutgoingEvent(new tgt)}getVisibleRangesPlusViewportAboveBelow(){let i=this._configuration.options.get(145),o=this._configuration.options.get(67),s=Math.max(20,Math.round(i.height/o)),c=this.viewLayout.getLinesViewportData(),_=Math.max(1,c.completelyVisibleStartLineNumber-s),h=Math.min(this.getLineCount(),c.completelyVisibleEndLineNumber+s);return this._toModelVisibleRanges(new Vt(_,this.getLineMinColumn(_),h,this.getLineMaxColumn(h)))}getVisibleRanges(){let i=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(i)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(i){let o=this.coordinatesConverter.convertViewRangeToModelRange(i),s=this._lines.getHiddenAreas();if(s.length===0)return[o];let c=[],_=0,h=o.startLineNumber,b=o.startColumn,w=o.endLineNumber,D=o.endColumn;for(let O=0,j=s.length;Ow||(h"u")return this._reduceRestoreStateCompatibility(i);let o=this.model.validatePosition(i.firstPosition),s=this.coordinatesConverter.convertModelPositionToViewPosition(o),c=this.viewLayout.getVerticalOffsetForLineNumber(s.lineNumber)-i.firstPositionDeltaTop;return{scrollLeft:i.scrollLeft,scrollTop:c}}_reduceRestoreStateCompatibility(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(i,o,s){this._viewportStart.update(this,i)}getActiveIndentGuide(i,o,s){return this._lines.getActiveIndentGuide(i,o,s)}getLinesIndentGuides(i,o){return this._lines.getViewLinesIndentGuides(i,o)}getBracketGuidesInRangeByLine(i,o,s,c){return this._lines.getViewLinesBracketGuides(i,o,s,c)}getLineContent(i){return this._lines.getViewLineContent(i)}getLineLength(i){return this._lines.getViewLineLength(i)}getLineMinColumn(i){return this._lines.getViewLineMinColumn(i)}getLineMaxColumn(i){return this._lines.getViewLineMaxColumn(i)}getLineFirstNonWhitespaceColumn(i){let o=M1(this.getLineContent(i));return o===-1?0:o+1}getLineLastNonWhitespaceColumn(i){let o=aI(this.getLineContent(i));return o===-1?0:o+2}getMinimapDecorationsInRange(i){return this._decorations.getMinimapDecorationsInRange(i)}getDecorationsInViewport(i){return this._decorations.getDecorationsViewportData(i).decorations}getInjectedTextAt(i){return this._lines.getInjectedTextAt(i)}getViewportViewLineRenderingData(i,o){let c=this._decorations.getDecorationsViewportData(i).inlineDecorations[o-i.startLineNumber];return this._getViewLineRenderingData(o,c)}getViewLineRenderingData(i){let o=this._decorations.getInlineDecorationsOnLine(i);return this._getViewLineRenderingData(i,o)}_getViewLineRenderingData(i,o){let s=this.model.mightContainRTL(),c=this.model.mightContainNonBasicASCII(),_=this.getTabSize(),h=this._lines.getViewLineData(i);return h.inlineDecorations&&(o=[...o,...h.inlineDecorations.map(b=>b.toInlineDecoration(i))]),new dL(h.minColumn,h.maxColumn,h.content,h.continuesWithWrappedLine,s,c,h.tokens,o,_,h.startVisibleColumn)}getViewLineData(i){return this._lines.getViewLineData(i)}getMinimapLinesRenderingData(i,o,s){let c=this._lines.getViewLinesData(i,o,s);return new M_t(this.getTabSize(),c)}getAllOverviewRulerDecorations(i){let o=this.model.getOverviewRulerDecorations(this._editorId,xNe(this._configuration.options)),s=new Oni;for(let c of o){let _=c.options,h=_.overviewRuler;if(!h)continue;let b=h.position;if(b===0)continue;let w=h.getColor(i.value),D=this.coordinatesConverter.getViewLineNumberOfModelPosition(c.range.startLineNumber,c.range.startColumn),O=this.coordinatesConverter.getViewLineNumberOfModelPosition(c.range.endLineNumber,c.range.endColumn);s.accept(w,_.zIndex,D,O,b)}return s.asArray}_invalidateDecorationsColorCache(){let i=this.model.getOverviewRulerDecorations();for(let o of i){let s=o.options.overviewRuler;s?.invalidateCachedColor();let c=o.options.minimap;c?.invalidateCachedColor()}}getValueInRange(i,o){let s=this.coordinatesConverter.convertViewRangeToModelRange(i);return this.model.getValueInRange(s,o)}getValueLengthInRange(i,o){let s=this.coordinatesConverter.convertViewRangeToModelRange(i);return this.model.getValueLengthInRange(s,o)}modifyPosition(i,o){let s=this.coordinatesConverter.convertViewPositionToModelPosition(i),c=this.model.modifyPosition(s,o);return this.coordinatesConverter.convertModelPositionToViewPosition(c)}deduceModelPositionRelativeToViewPosition(i,o,s){let c=this.coordinatesConverter.convertViewPositionToModelPosition(i);this.model.getEOL().length===2&&(o<0?o-=s:o+=s);let h=this.model.getOffsetAt(c)+o;return this.model.getPositionAt(h)}getPlainTextToCopy(i,o,s){let c=s?`\r +`:this.model.getEOL();i=i.slice(0),i.sort(Vt.compareRangesUsingStarts);let _=!1,h=!1;for(let w of i)w.isEmpty()?_=!0:h=!0;if(!h){if(!o)return"";let w=i.map(O=>O.startLineNumber),D="";for(let O=0;O0&&w[O-1]===w[O]||(D+=this.model.getLineContent(w[O])+c);return D}if(_&&o){let w=[],D=0;for(let O of i){let j=O.startLineNumber;O.isEmpty()?j!==D&&w.push(this.model.getLineContent(j)):w.push(this.model.getValueInRange(O,s?2:0)),D=j}return w.length===1?w[0]:w}let b=[];for(let w of i)w.isEmpty()||b.push(this.model.getValueInRange(w,s?2:0));return b.length===1?b[0]:b}getRichTextToCopy(i,o){let s=this.model.getLanguageId();if(s===_w||i.length!==1)return null;let c=i[0];if(c.isEmpty()){if(!o)return null;let O=c.startLineNumber;c=new Vt(O,this.model.getLineMinColumn(O),O,this.model.getLineMaxColumn(O))}let _=this._configuration.options.get(50),h=this._getColorMap(),w=/[:;\\\/<>]/.test(_.fontFamily)||_.fontFamily===MD.fontFamily,D;return w?D=MD.fontFamily:(D=_.fontFamily,D=D.replace(/"/g,"'"),/[,']/.test(D)||/[+ ]/.test(D)&&(D=`'${D}'`),D=`${D}, ${MD.fontFamily}`),{mode:s,html:`
`+this._getHTMLToCopy(c,h)+"
"}}_getHTMLToCopy(i,o){let s=i.startLineNumber,c=i.startColumn,_=i.endLineNumber,h=i.endColumn,b=this.getTabSize(),w="";for(let D=s;D<=_;D++){let O=this.model.tokenization.getLineTokens(D),j=O.getLineContent(),F=D===s?c-1:0,X=D===_?h-1:j.length;j===""?w+="
":w+=ZCi(j,O.inflate(),o,F,X,b,Ny)}return w}_getColorMap(){let i=Oh.getColorMap(),o=["#000000"];if(i)for(let s=1,c=i.length;sthis._cursor.setStates(c,i,o,s))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(i){this._cursor.setCursorColumnSelectData(i)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(i){this._cursor.setPrevEditOperationType(i)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(i,o,s=0){this._withViewEventsCollector(c=>this._cursor.setSelections(c,i,o,s))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(i){this._withViewEventsCollector(o=>this._cursor.restoreState(o,i))}_executeCursorEdit(i){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new ngt);return}this._withViewEventsCollector(i)}executeEdits(i,o,s){this._executeCursorEdit(c=>this._cursor.executeEdits(c,i,o,s))}startComposition(){this._executeCursorEdit(i=>this._cursor.startComposition(i))}endComposition(i){this._executeCursorEdit(o=>this._cursor.endComposition(o,i))}type(i,o){this._executeCursorEdit(s=>this._cursor.type(s,i,o))}compositionType(i,o,s,c,_){this._executeCursorEdit(h=>this._cursor.compositionType(h,i,o,s,c,_))}paste(i,o,s,c){this._executeCursorEdit(_=>this._cursor.paste(_,i,o,s,c))}cut(i){this._executeCursorEdit(o=>this._cursor.cut(o,i))}executeCommand(i,o){this._executeCursorEdit(s=>this._cursor.executeCommand(s,i,o))}executeCommands(i,o){this._executeCursorEdit(s=>this._cursor.executeCommands(s,i,o))}revealAllCursors(i,o,s=!1){this._withViewEventsCollector(c=>this._cursor.revealAll(c,i,s,0,o,0))}revealPrimaryCursor(i,o,s=!1){this._withViewEventsCollector(c=>this._cursor.revealPrimary(c,i,s,0,o,0))}revealTopMostCursor(i){let o=this._cursor.getTopMostViewPosition(),s=new Vt(o.lineNumber,o.column,o.lineNumber,o.column);this._withViewEventsCollector(c=>c.emitViewEvent(new Zle(i,!1,s,null,0,!0,0)))}revealBottomMostCursor(i){let o=this._cursor.getBottomMostViewPosition(),s=new Vt(o.lineNumber,o.column,o.lineNumber,o.column);this._withViewEventsCollector(c=>c.emitViewEvent(new Zle(i,!1,s,null,0,!0,0)))}revealRange(i,o,s,c,_){this._withViewEventsCollector(h=>h.emitViewEvent(new Zle(i,!1,s,null,c,o,_)))}changeWhitespace(i){this.viewLayout.changeWhitespace(i)&&(this._eventDispatcher.emitSingleViewEvent(new Ght),this._eventDispatcher.emitOutgoingEvent(new egt))}_withViewEventsCollector(i){try{let o=this._eventDispatcher.beginEmitViewEvents();return i(o)}finally{this._eventDispatcher.endEmitViewEvents()}}batchEvents(i){this._withViewEventsCollector(()=>{i()})}normalizePosition(i,o){return this._lines.normalizePosition(i,o)}getLineIndentColumn(i){return this._lines.getLineIndentColumn(i)}},Lni=class l{static create(i){let o=i._setTrackedRange(null,new Vt(1,1,1,1),1);return new l(i,1,!1,o,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(i,o,s,c,_){this._model=i,this._viewLineNumber=o,this._isValid=s,this._modelTrackedRange=c,this._startLineDelta=_}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(i,o){let s=i.coordinatesConverter.convertViewPositionToModelPosition(new Cn(o,i.getLineMinColumn(o))),c=i.model._setTrackedRange(this._modelTrackedRange,new Vt(s.lineNumber,s.column,s.lineNumber,s.column),1),_=i.viewLayout.getVerticalOffsetForLineNumber(o),h=i.viewLayout.getCurrentScrollTop();this._viewLineNumber=o,this._isValid=!0,this._modelTrackedRange=c,this._startLineDelta=h-_}invalidate(){this._isValid=!1}},Oni=class{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(i,o,s,c,_){let h=this._asMap[i];if(h){let b=h.data,w=b[b.length-3],D=b[b.length-1];if(w===_&&D+1>=s){c>D&&(b[b.length-1]=c);return}b.push(_,s,c)}else{let b=new oAe(i,o,[_,s,c]);this._asMap[i]=b,this.asArray.push(b)}}},Fni=class{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(i,o){let s=this.hiddenAreas.get(i);s&&aki(s,o)||(this.hiddenAreas.set(i,o),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;let i=Array.from(this.hiddenAreas.values()).reduce((o,s)=>lji(o,s),[]);return aki(this.ranges,i)?this.ranges:(this.ranges=i,this.ranges)}};wgt=class{constructor(i,o){this.viewportStartModelPosition=i,this.startLineDelta=o}recoverViewportStart(i,o){if(!this.viewportStartModelPosition)return;let s=i.convertModelPositionToViewPosition(this.viewportStartModelPosition),c=o.getVerticalOffsetForLineNumber(s.lineNumber);o.setScrollPosition({scrollTop:c+this.startLineDelta},1)}}});var bW,JLe=Ht(()=>{bW=class{constructor(...i){this._entries=new Map;for(let[o,s]of i)this.set(o,s)}set(i,o){let s=this._entries.get(i);return this._entries.set(i,o),s}get(i){return this._entries.get(i)}}});var Bot,jy,eue=Ht(()=>{Bl();(function(l){l[l.Ignore=0]="Ignore",l[l.Info=1]="Info",l[l.Warning=2]="Warning",l[l.Error=3]="Error"})(Bot||(Bot={}));(function(l){let i="error",o="warning",s="warn",c="info",_="ignore";function h(w){return w?ble(i,w)?l.Error:ble(o,w)||ble(s,w)?l.Warning:ble(c,w)?l.Info:l.Ignore:l.Ignore}l.fromValue=h;function b(w){switch(w){case l.Error:return i;case l.Warning:return o;case l.Info:return c;default:return _}}l.toString=b})(Bot||(Bot={}));jy=Bot});var vfe,Em,Tgt,QD=Ht(()=>{eue();kc();vfe=jy,Em=Wc("notificationService"),Tgt=class{}});function Mni(l){return fji+encodeURIComponent(l.toString())+_ji}function hji(l){return pji+encodeURIComponent(l.toString())+mji}var uji,tue,YAe,iue,dji,Rni,Egt,mI,Bni,jni,Wni,zni,fji,_ji,pji,mji,jot=Ht(()=>{qvi();va();Pl();Pa();$r();cI();$vi();v7();Yvi();V_t();sd();$b();jxi();Vxi();Rti();Hxi();FC();_W();bj();Ll();ca();hg();Vrt();fii();yrt();km();R1();DC();dp();UCi();cki();Fs();fL();gg();du();kc();JLe();QD();Sv();_g();Vg();uji=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},tue=function(l,i){return function(o,s){i(o,s,l)}},iue=YAe=class extends Ui{get isSimpleWidget(){return this._configuration.isSimpleWidget}get contextMenuId(){return this._configuration.contextMenuId}constructor(i,o,s,c,_,h,b,w,D,O,j,F){var X,K;super(),this.languageConfigurationService=j,this._deliveryQueue=Ngi(),this._contributions=this._register(new aht),this._onDidDispose=this._register(new fn),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new mI(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new Egt({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new Egt({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new mI(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new mI(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new mI(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new mI(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new mI(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new mI(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new mI(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new mI(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new mI(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new mI(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new mI(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new mI(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new mI(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new mI(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new mI(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new mI(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new mI(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new fn({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._updateCounter=0,this._onBeginUpdate=this._register(new fn),this.onBeginUpdate=this._onBeginUpdate.event,this._onEndUpdate=this._register(new fn),this.onEndUpdate=this._onEndUpdate.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),_.willCreateCodeEditor();let re={...o};this._domElement=i,this._overflowWidgetsDomNode=re.overflowWidgetsDomNode,delete re.overflowWidgetsDomNode,this._id=++dji,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=s.telemetryData,this._configuration=this._register(this._createConfiguration(s.isSimpleWidget||!1,(X=s.contextMenuId)!==null&&X!==void 0?X:s.isSimpleWidget?ki.SimpleEditorContext:ki.EditorContext,re,O)),this._register(this._configuration.onDidChange(Je=>{this._onDidChangeConfiguration.fire(Je);let Ye=this._configuration.options;if(Je.hasChanged(145)){let ft=Ye.get(145);this._onDidLayoutChange.fire(ft)}})),this._contextKeyService=this._register(b.createScoped(this._domElement)),this._notificationService=D,this._codeEditorService=_,this._commandService=h,this._themeService=w,this._register(new Bni(this,this._contextKeyService)),this._register(new jni(this,this._contextKeyService,F)),this._instantiationService=this._register(c.createChild(new bW([La,this._contextKeyService]))),this._modelData=null,this._focusTracker=new Wni(i,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={};let Pe;Array.isArray(s.contributions)?Pe=s.contributions:Pe=Ade.getEditorContributions(),this._contributions.initialize(this,Pe,this._instantiationService);for(let Je of Ade.getEditorActions()){if(this._actions.has(Je.id)){Sc(new Error(`Cannot have two actions with the same id ${Je.id}`));continue}let Ye=new ELe(Je.id,Je.label,Je.alias,Je.metadata,(K=Je.precondition)!==null&&K!==void 0?K:void 0,ft=>this._instantiationService.invokeFunction(Ct=>Promise.resolve(Je.runEditorCommand(Ct,this,ft))),this._contextKeyService);this._actions.set(Ye.id,Ye)}let Le=()=>!this._configuration.options.get(91)&&this._configuration.options.get(36).enabled;this._register(new fft(this._domElement,{onDragOver:Je=>{if(!Le())return;let Ye=this.getTargetAtClientPoint(Je.clientX,Je.clientY);Ye?.position&&this.showDropIndicatorAt(Ye.position)},onDrop:async Je=>{if(!Le()||(this.removeDropIndicator(),!Je.dataTransfer))return;let Ye=this.getTargetAtClientPoint(Je.clientX,Je.clientY);Ye?.position&&this._onDropIntoEditor.fire({position:Ye.position,event:Je})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(i){var o;(o=this._modelData)===null||o===void 0||o.view.writeScreenReaderContent(i)}_createConfiguration(i,o,s,c){return new H_t(i,o,s,this._domElement,c)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return Mle.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(i){return this._instantiationService.invokeFunction(i)}updateOptions(i){this._configuration.updateOptions(i||{})}getOptions(){return this._configuration.options}getOption(i){return this._configuration.options.get(i)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(i){return this._modelData?mw.getWordAtPosition(this._modelData.model,this._configuration.options.get(131),this._configuration.options.get(130),i):null}getValue(i=null){if(!this._modelData)return"";let o=!!(i&&i.preserveBOM),s=0;return i&&i.lineEnding&&i.lineEnding===` +`?s=1:i&&i.lineEnding&&i.lineEnding===`\r +`&&(s=2),this._modelData.model.getValue(s,o)}setValue(i){try{if(this._beginUpdate(),!this._modelData)return;this._modelData.model.setValue(i)}finally{this._endUpdate()}}getModel(){return this._modelData?this._modelData.model:null}setModel(i=null){var o;try{this._beginUpdate();let s=i;if(this._modelData===null&&s===null||this._modelData&&this._modelData.model===s)return;let c={oldModelUrl:((o=this._modelData)===null||o===void 0?void 0:o.model.uri)||null,newModelUrl:s?.uri||null};this._onWillChangeModel.fire(c);let _=this.hasTextFocus(),h=this._detachModel();this._attachModel(s),_&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(c),this._postDetachModelCleanup(h),this._contributionsDisposable=this._contributions.onAfterModelAttached()}finally{this._endUpdate()}}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(let i in this._decorationTypeSubtypes){let o=this._decorationTypeSubtypes[i];for(let s in o)this._removeDecorationType(i+"-"+s)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(i,o,s,c){let _=i.model.validatePosition({lineNumber:o,column:s}),h=i.viewModel.coordinatesConverter.convertModelPositionToViewPosition(_);return i.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(h.lineNumber,c)}getTopForLineNumber(i,o=!1){return this._modelData?YAe._getVerticalOffsetForPosition(this._modelData,i,1,o):-1}getTopForPosition(i,o){return this._modelData?YAe._getVerticalOffsetForPosition(this._modelData,i,o,!1):-1}static _getVerticalOffsetForPosition(i,o,s,c=!1){let _=i.model.validatePosition({lineNumber:o,column:s}),h=i.viewModel.coordinatesConverter.convertModelPositionToViewPosition(_);return i.viewModel.viewLayout.getVerticalOffsetForLineNumber(h.lineNumber,c)}getBottomForLineNumber(i,o=!1){return this._modelData?YAe._getVerticalOffsetAfterPosition(this._modelData,i,1,o):-1}setHiddenAreas(i,o){var s;(s=this._modelData)===null||s===void 0||s.viewModel.setHiddenAreas(i.map(c=>Vt.lift(c)),o)}getVisibleColumnFromPosition(i){if(!this._modelData)return i.column;let o=this._modelData.model.validatePosition(i),s=this._modelData.model.getOptions().tabSize;return xv.visibleColumnFromColumn(this._modelData.model.getLineContent(o.lineNumber),o.column,s)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(i,o="api"){if(this._modelData){if(!Cn.isIPosition(i))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(o,[{selectionStartLineNumber:i.lineNumber,selectionStartColumn:i.column,positionLineNumber:i.lineNumber,positionColumn:i.column}])}}_sendRevealRange(i,o,s,c){if(!this._modelData)return;if(!Vt.isIRange(i))throw new Error("Invalid arguments");let _=this._modelData.model.validateRange(i),h=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(_);this._modelData.viewModel.revealRange("api",s,h,o,c)}revealLine(i,o=0){this._revealLine(i,0,o)}revealLineInCenter(i,o=0){this._revealLine(i,1,o)}revealLineInCenterIfOutsideViewport(i,o=0){this._revealLine(i,2,o)}revealLineNearTop(i,o=0){this._revealLine(i,5,o)}_revealLine(i,o,s){if(typeof i!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Vt(i,1,i,1),o,!1,s)}revealPosition(i,o=0){this._revealPosition(i,0,!0,o)}revealPositionInCenter(i,o=0){this._revealPosition(i,1,!0,o)}revealPositionInCenterIfOutsideViewport(i,o=0){this._revealPosition(i,2,!0,o)}revealPositionNearTop(i,o=0){this._revealPosition(i,5,!0,o)}_revealPosition(i,o,s,c){if(!Cn.isIPosition(i))throw new Error("Invalid arguments");this._sendRevealRange(new Vt(i.lineNumber,i.column,i.lineNumber,i.column),o,s,c)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(i,o="api"){let s=ya.isISelection(i),c=Vt.isIRange(i);if(!s&&!c)throw new Error("Invalid arguments");if(s)this._setSelectionImpl(i,o);else if(c){let _={selectionStartLineNumber:i.startLineNumber,selectionStartColumn:i.startColumn,positionLineNumber:i.endLineNumber,positionColumn:i.endColumn};this._setSelectionImpl(_,o)}}_setSelectionImpl(i,o){if(!this._modelData)return;let s=new ya(i.selectionStartLineNumber,i.selectionStartColumn,i.positionLineNumber,i.positionColumn);this._modelData.viewModel.setSelections(o,[s])}revealLines(i,o,s=0){this._revealLines(i,o,0,s)}revealLinesInCenter(i,o,s=0){this._revealLines(i,o,1,s)}revealLinesInCenterIfOutsideViewport(i,o,s=0){this._revealLines(i,o,2,s)}revealLinesNearTop(i,o,s=0){this._revealLines(i,o,5,s)}_revealLines(i,o,s,c){if(typeof i!="number"||typeof o!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Vt(i,1,o,1),s,!1,c)}revealRange(i,o=0,s=!1,c=!0){this._revealRange(i,s?1:0,c,o)}revealRangeInCenter(i,o=0){this._revealRange(i,1,!0,o)}revealRangeInCenterIfOutsideViewport(i,o=0){this._revealRange(i,2,!0,o)}revealRangeNearTop(i,o=0){this._revealRange(i,5,!0,o)}revealRangeNearTopIfOutsideViewport(i,o=0){this._revealRange(i,6,!0,o)}revealRangeAtTop(i,o=0){this._revealRange(i,3,!0,o)}_revealRange(i,o,s,c){if(!Vt.isIRange(i))throw new Error("Invalid arguments");this._sendRevealRange(Vt.lift(i),o,s,c)}setSelections(i,o="api",s=0){if(this._modelData){if(!i||i.length===0)throw new Error("Invalid arguments");for(let c=0,_=i.length;c<_;c++)if(!ya.isISelection(i[c]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(o,i,s)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(i,o=1){if(this._modelData){if(typeof i!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:i},o)}}setScrollTop(i,o=1){if(this._modelData){if(typeof i!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:i},o)}}setScrollPosition(i,o=1){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(i,o)}hasPendingScrollAnimation(){return this._modelData?this._modelData.viewModel.viewLayout.hasPendingScrollAnimation():!1}saveViewState(){if(!this._modelData)return null;let i=this._contributions.saveViewState(),o=this._modelData.viewModel.saveCursorState(),s=this._modelData.viewModel.saveState();return{cursorState:o,viewState:s,contributionsState:i}}restoreViewState(i){if(!this._modelData||!this._modelData.hasRealView)return;let o=i;if(o&&o.cursorState&&o.viewState){let s=o.cursorState;Array.isArray(s)?s.length>0&&this._modelData.viewModel.restoreCursorState(s):this._modelData.viewModel.restoreCursorState([s]),this._contributions.restoreViewState(o.contributionsState||{});let c=this._modelData.viewModel.reduceRestoreState(o.viewState);this._modelData.view.restoreState(c)}}handleInitialized(){var i;(i=this._getViewModel())===null||i===void 0||i.visibleLinesStabilized()}getContribution(i){return this._contributions.get(i)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let i=this.getActions();return i=i.filter(o=>o.isSupported()),i}getAction(i){return this._actions.get(i)||null}trigger(i,o,s){s=s||{};try{switch(this._beginUpdate(),o){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(i);return;case"type":{let _=s;this._type(i,_.text||"");return}case"replacePreviousChar":{let _=s;this._compositionType(i,_.text||"",_.replaceCharCnt||0,0,0);return}case"compositionType":{let _=s;this._compositionType(i,_.text||"",_.replacePrevCharCnt||0,_.replaceNextCharCnt||0,_.positionDelta||0);return}case"paste":{let _=s;this._paste(i,_.text||"",_.pasteOnNewLine||!1,_.multicursorText||null,_.mode||null,_.clipboardEvent);return}case"cut":this._cut(i);return}let c=this.getAction(o);if(c){Promise.resolve(c.run(s)).then(void 0,Sc);return}if(!this._modelData||this._triggerEditorCommand(i,o,s))return;this._triggerCommand(o,s)}finally{this._endUpdate()}}_triggerCommand(i,o){this._commandService.executeCommand(i,o)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(i){this._modelData&&(this._modelData.viewModel.endComposition(i),this._onDidCompositionEnd.fire())}_type(i,o){!this._modelData||o.length===0||(i==="keyboard"&&this._onWillType.fire(o),this._modelData.viewModel.type(o,i),i==="keyboard"&&this._onDidType.fire(o))}_compositionType(i,o,s,c,_){this._modelData&&this._modelData.viewModel.compositionType(o,s,c,_,i)}_paste(i,o,s,c,_,h){if(!this._modelData)return;let b=this._modelData.viewModel,w=b.getSelection().getStartPosition();b.paste(o,s,c,i);let D=b.getSelection().getStartPosition();i==="keyboard"&&this._onDidPaste.fire({clipboardEvent:h,range:new Vt(w.lineNumber,w.column,D.lineNumber,D.column),languageId:_})}_cut(i){this._modelData&&this._modelData.viewModel.cut(i)}_triggerEditorCommand(i,o,s){let c=Ade.getEditorCommand(o);return c?(s=s||{},s.source=i,this._instantiationService.invokeFunction(_=>{Promise.resolve(c.runEditorCommand(_,this,s)).then(void 0,Sc)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(91)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(91)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(i,o,s){if(!this._modelData||this._configuration.options.get(91))return!1;let c;return s?Array.isArray(s)?c=()=>s:c=s:c=()=>null,this._modelData.viewModel.executeEdits(i,o,c),!0}executeCommand(i,o){this._modelData&&this._modelData.viewModel.executeCommand(o,i)}executeCommands(i,o){this._modelData&&this._modelData.viewModel.executeCommands(o,i)}createDecorationsCollection(i){return new zni(this,i)}changeDecorations(i){return this._modelData?this._modelData.model.changeDecorations(i,this._id):null}getLineDecorations(i){return this._modelData?this._modelData.model.getLineDecorations(i,this._id,xNe(this._configuration.options)):null}getDecorationsInRange(i){return this._modelData?this._modelData.model.getDecorationsInRange(i,this._id,xNe(this._configuration.options)):null}deltaDecorations(i,o){return this._modelData?i.length===0&&o.length===0?i:this._modelData.model.deltaDecorations(i,o,this._id):[]}removeDecorations(i){!this._modelData||i.length===0||this._modelData.model.changeDecorations(o=>{o.deltaDecorations(i,[])})}removeDecorationsByType(i){let o=this._decorationTypeKeysToIds[i];o&&this.changeDecorations(s=>s.deltaDecorations(o,[])),this._decorationTypeKeysToIds.hasOwnProperty(i)&&delete this._decorationTypeKeysToIds[i],this._decorationTypeSubtypes.hasOwnProperty(i)&&delete this._decorationTypeSubtypes[i]}getLayoutInfo(){return this._configuration.options.get(145)}createOverviewRuler(i){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(i)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarPointerDown(i){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarPointerDown(i)}delegateScrollFromMouseWheelEvent(i){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateScrollFromMouseWheelEvent(i)}layout(i,o=!1){this._configuration.observeContainer(i),o||this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(i){let o={widget:i,position:i.getPosition()};this._contentWidgets.hasOwnProperty(i.getId())&&console.warn("Overwriting a content widget with the same id:"+i.getId()),this._contentWidgets[i.getId()]=o,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(o)}layoutContentWidget(i){let o=i.getId();if(this._contentWidgets.hasOwnProperty(o)){let s=this._contentWidgets[o];s.position=i.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(s)}}removeContentWidget(i){let o=i.getId();if(this._contentWidgets.hasOwnProperty(o)){let s=this._contentWidgets[o];delete this._contentWidgets[o],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(s)}}addOverlayWidget(i){let o={widget:i,position:i.getPosition()};this._overlayWidgets.hasOwnProperty(i.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[i.getId()]=o,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(o)}layoutOverlayWidget(i){let o=i.getId();if(this._overlayWidgets.hasOwnProperty(o)){let s=this._overlayWidgets[o];s.position=i.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(s)}}removeOverlayWidget(i){let o=i.getId();if(this._overlayWidgets.hasOwnProperty(o)){let s=this._overlayWidgets[o];delete this._overlayWidgets[o],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(s)}}addGlyphMarginWidget(i){let o={widget:i,position:i.getPosition()};this._glyphMarginWidgets.hasOwnProperty(i.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[i.getId()]=o,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(o)}layoutGlyphMarginWidget(i){let o=i.getId();if(this._glyphMarginWidgets.hasOwnProperty(o)){let s=this._glyphMarginWidgets[o];s.position=i.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(s)}}removeGlyphMarginWidget(i){let o=i.getId();if(this._glyphMarginWidgets.hasOwnProperty(o)){let s=this._glyphMarginWidgets[o];delete this._glyphMarginWidgets[o],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(s)}}changeViewZones(i){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(i)}getTargetAtClientPoint(i,o){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(i,o)}getScrolledVisiblePosition(i){if(!this._modelData||!this._modelData.hasRealView)return null;let o=this._modelData.model.validatePosition(i),s=this._configuration.options,c=s.get(145),_=YAe._getVerticalOffsetForPosition(this._modelData,o.lineNumber,o.column)-this.getScrollTop(),h=this._modelData.view.getOffsetForColumn(o.lineNumber,o.column)+c.glyphMarginWidth+c.lineNumbersWidth+c.decorationsWidth-this.getScrollLeft();return{top:_,left:h,height:s.get(67)}}getOffsetForColumn(i,o){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(i,o)}render(i=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.viewModel.batchEvents(()=>{this._modelData.view.render(!0,i)})}setAriaOptions(i){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(i)}applyFontInfo(i){Iv(i,this._configuration.options.get(50))}setBanner(i,o){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=i,this._configuration.setReservedHeight(i?o:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(i){if(!i){this._modelData=null;return}let o=[];this._domElement.setAttribute("data-mode-id",i.getLanguageId()),this._configuration.setIsDominatedByLongLines(i.isDominatedByLongLines()),this._configuration.setModelLineCount(i.getLineCount());let s=i.onBeforeAttached(),c=new kgt(this._id,this._configuration,i,sht.create(Xa(this._domElement)),Rht.create(this._configuration.options),b=>g2(Xa(this._domElement),b),this.languageConfigurationService,this._themeService,s);o.push(i.onWillDispose(()=>this.setModel(null))),o.push(c.onEvent(b=>{switch(b.kind){case 0:this._onDidContentSizeChange.fire(b);break;case 1:this._editorTextFocus.setValue(b.hasFocus);break;case 2:this._onDidScrollChange.fire(b);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(b.reachedMaxCursorCount){let j=this.getOption(80),F=de("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",j);this._notificationService.prompt(vfe.Warning,F,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:de("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}let w=[];for(let j=0,F=b.selections.length;j{this._paste("keyboard",_,h,b,w)},type:_=>{this._type("keyboard",_)},compositionType:(_,h,b,w)=>{this._compositionType("keyboard",_,h,b,w)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:o={paste:(_,h,b,w)=>{let D={text:_,pasteOnNewLine:h,multicursorText:b,mode:w};this._commandService.executeCommand("paste",D)},type:_=>{let h={text:_};this._commandService.executeCommand("type",h)},compositionType:(_,h,b,w)=>{if(b||w){let D={text:_,replacePrevCharCnt:h,replaceNextCharCnt:b,positionDelta:w};this._commandService.executeCommand("compositionType",D)}else{let D={text:_,replaceCharCnt:h};this._commandService.executeCommand("replacePreviousChar",D)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};let s=new vLe(i.coordinatesConverter);return s.onKeyDown=_=>this._onKeyDown.fire(_),s.onKeyUp=_=>this._onKeyUp.fire(_),s.onContextMenu=_=>this._onContextMenu.fire(_),s.onMouseMove=_=>this._onMouseMove.fire(_),s.onMouseLeave=_=>this._onMouseLeave.fire(_),s.onMouseDown=_=>this._onMouseDown.fire(_),s.onMouseUp=_=>this._onMouseUp.fire(_),s.onMouseDrag=_=>this._onMouseDrag.fire(_),s.onMouseDrop=_=>this._onMouseDrop.fire(_),s.onMouseDropCanceled=_=>this._onMouseDropCanceled.fire(_),s.onMouseWheel=_=>this._onMouseWheel.fire(_),[new tht(o,this._configuration,this._themeService.getColorTheme(),i,s,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(i){i?.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){var i;if((i=this._contributionsDisposable)===null||i===void 0||i.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;let o=this._modelData.model,s=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),s&&this._domElement.contains(s)&&this._domElement.removeChild(s),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),o}_removeDecorationType(i){this._codeEditorService.removeDecorationType(i)}hasModel(){return this._modelData!==null}showDropIndicatorAt(i){let o=[{range:new Vt(i.lineNumber,i.column,i.lineNumber,i.column),options:YAe.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(o),this.revealPosition(i,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(i,o){this._contextKeyService.createKey(i,o)}_beginUpdate(){this._updateCounter++,this._updateCounter===1&&this._onBeginUpdate.fire()}_endUpdate(){this._updateCounter--,this._updateCounter===0&&this._onEndUpdate.fire()}};iue.dropIntoEditorDecorationOptions=eu.register({description:"workbench-dnd-target",className:"dnd-target"});iue=YAe=uji([tue(3,qs),tue(4,$u),tue(5,c_),tue(6,La),tue(7,Ph),tue(8,Em),tue(9,YS),tue(10,Pf),tue(11,js)],iue);dji=0,Rni=class{constructor(i,o,s,c,_,h){this.model=i,this.viewModel=o,this.view=s,this.hasRealView=c,this.listenersToRemove=_,this.attachedView=h}dispose(){a_(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}},Egt=class extends Ui{constructor(i){super(),this._emitterOptions=i,this._onDidChangeToTrue=this._register(new fn(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new fn(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(i){let o=i?2:1;this._value!==o&&(this._value=o,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}},mI=class extends fn{constructor(i,o){super({deliveryQueue:o}),this._contributions=i}fire(i){this._contributions.onBeforeInteractionEvent(),super.fire(i)}},Bni=class extends Ui{constructor(i,o){super(),this._editor=i,o.createKey("editorId",i.getId()),this._editorSimpleInput=ji.editorSimpleInput.bindTo(o),this._editorFocus=ji.focus.bindTo(o),this._textInputFocus=ji.textInputFocus.bindTo(o),this._editorTextFocus=ji.editorTextFocus.bindTo(o),this._tabMovesFocus=ji.tabMovesFocus.bindTo(o),this._editorReadonly=ji.readOnly.bindTo(o),this._inDiffEditor=ji.inDiffEditor.bindTo(o),this._editorColumnSelection=ji.columnSelection.bindTo(o),this._hasMultipleSelections=ji.hasMultipleSelections.bindTo(o),this._hasNonEmptySelection=ji.hasNonEmptySelection.bindTo(o),this._canUndo=ji.canUndo.bindTo(o),this._canRedo=ji.canRedo.bindTo(o),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._register(jle.onDidChangeTabFocus(s=>this._tabMovesFocus.set(s))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){let i=this._editor.getOptions();this._tabMovesFocus.set(jle.getTabFocusMode()),this._editorReadonly.set(i.get(91)),this._inDiffEditor.set(i.get(61)),this._editorColumnSelection.set(i.get(22))}_updateFromSelection(){let i=this._editor.getSelections();i?(this._hasMultipleSelections.set(i.length>1),this._hasNonEmptySelection.set(i.some(o=>!o.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){let i=this._editor.getModel();this._canUndo.set(!!(i&&i.canUndo())),this._canRedo.set(!!(i&&i.canRedo()))}},jni=class extends Ui{constructor(i,o,s){super(),this._editor=i,this._contextKeyService=o,this._languageFeaturesService=s,this._langId=ji.languageId.bindTo(o),this._hasCompletionItemProvider=ji.hasCompletionItemProvider.bindTo(o),this._hasCodeActionsProvider=ji.hasCodeActionsProvider.bindTo(o),this._hasCodeLensProvider=ji.hasCodeLensProvider.bindTo(o),this._hasDefinitionProvider=ji.hasDefinitionProvider.bindTo(o),this._hasDeclarationProvider=ji.hasDeclarationProvider.bindTo(o),this._hasImplementationProvider=ji.hasImplementationProvider.bindTo(o),this._hasTypeDefinitionProvider=ji.hasTypeDefinitionProvider.bindTo(o),this._hasHoverProvider=ji.hasHoverProvider.bindTo(o),this._hasDocumentHighlightProvider=ji.hasDocumentHighlightProvider.bindTo(o),this._hasDocumentSymbolProvider=ji.hasDocumentSymbolProvider.bindTo(o),this._hasReferenceProvider=ji.hasReferenceProvider.bindTo(o),this._hasRenameProvider=ji.hasRenameProvider.bindTo(o),this._hasSignatureHelpProvider=ji.hasSignatureHelpProvider.bindTo(o),this._hasInlayHintsProvider=ji.hasInlayHintsProvider.bindTo(o),this._hasDocumentFormattingProvider=ji.hasDocumentFormattingProvider.bindTo(o),this._hasDocumentSelectionFormattingProvider=ji.hasDocumentSelectionFormattingProvider.bindTo(o),this._hasMultipleDocumentFormattingProvider=ji.hasMultipleDocumentFormattingProvider.bindTo(o),this._hasMultipleDocumentSelectionFormattingProvider=ji.hasMultipleDocumentSelectionFormattingProvider.bindTo(o),this._isInEmbeddedEditor=ji.isInEmbeddedEditor.bindTo(o);let c=()=>this._update();this._register(i.onDidChangeModel(c)),this._register(i.onDidChangeModelLanguage(c)),this._register(s.completionProvider.onDidChange(c)),this._register(s.codeActionProvider.onDidChange(c)),this._register(s.codeLensProvider.onDidChange(c)),this._register(s.definitionProvider.onDidChange(c)),this._register(s.declarationProvider.onDidChange(c)),this._register(s.implementationProvider.onDidChange(c)),this._register(s.typeDefinitionProvider.onDidChange(c)),this._register(s.hoverProvider.onDidChange(c)),this._register(s.documentHighlightProvider.onDidChange(c)),this._register(s.documentSymbolProvider.onDidChange(c)),this._register(s.referenceProvider.onDidChange(c)),this._register(s.renameProvider.onDidChange(c)),this._register(s.documentFormattingEditProvider.onDidChange(c)),this._register(s.documentRangeFormattingEditProvider.onDidChange(c)),this._register(s.signatureHelpProvider.onDidChange(c)),this._register(s.inlayHintsProvider.onDidChange(c)),c()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()})}_update(){let i=this._editor.getModel();if(!i){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(i.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(i)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(i)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(i)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(i)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(i)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(i)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(i)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(i)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(i)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(i)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(i)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(i)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(i)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(i)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(i)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(i)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(i)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(i).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(i).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(i).length>1),this._isInEmbeddedEditor.set(i.uri.scheme===Kl.walkThroughSnippet||i.uri.scheme===Kl.vscodeChatCodeBlock)})}},Wni=class extends Ui{constructor(i,o){super(),this._onChange=this._register(new fn),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(lI(i)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus(()=>{this._hasDomElementFocus=!0,this._update()})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasDomElementFocus=!1,this._update()})),o&&(this._overflowWidgetsDomNode=this._register(lI(o)),this._register(this._overflowWidgetsDomNode.onDidFocus(()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()})),this._register(this._overflowWidgetsDomNode.onDidBlur(()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()})))}_update(){let i=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==i&&(this._hadFocus=i,this._onChange.fire(void 0))}hasFocus(){var i;return(i=this._hadFocus)!==null&&i!==void 0?i:!1}},zni=class{get length(){return this._decorationIds.length}constructor(i,o){this._editor=i,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(o)&&o.length>0&&this.set(o)}onDidChange(i,o,s){return this._editor.onDidChangeModelDecorations(c=>{this._isChangingDecorations||i.call(o,c)},s)}getRange(i){return!this._editor.hasModel()||i>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[i])}getRanges(){if(!this._editor.hasModel())return[];let i=this._editor.getModel(),o=[];for(let s of this._decorationIds){let c=i.getDecorationRange(s);c&&o.push(c)}return o}has(i){return this._decorationIds.includes(i.id)}clear(){this._decorationIds.length!==0&&this.set([])}set(i){try{this._isChangingDecorations=!0,this._editor.changeDecorations(o=>{this._decorationIds=o.deltaDecorations(this._decorationIds,i)})}finally{this._isChangingDecorations=!1}return this._decorationIds}append(i){let o=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations(s=>{o=s.deltaDecorations([],i),this._decorationIds=this._decorationIds.concat(o)})}finally{this._isChangingDecorations=!1}return o}},fji=encodeURIComponent("");pji=encodeURIComponent('');WC((l,i)=>{let o=l.getColor(_j);o&&i.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${Mni(o)}") repeat-x bottom left; }`);let s=l.getColor(S2);s&&i.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${Mni(s)}") repeat-x bottom left; }`);let c=l.getColor(F2);c&&i.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${Mni(c)}") repeat-x bottom left; }`);let _=l.getColor(d1i);_&&i.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${hji(_)}") no-repeat bottom left; }`);let h=l.getColor(mSi);h&&i.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${h.rgba.a}; }`)})});var gji,yji,Dgt,lki=Ht(()=>{Pa();$r();f7();_g();gji=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},yji=function(l,i){return function(o,s){i(o,s,l)}},Dgt=class extends Ui{constructor(i){super(),this._themeService=i,this._onWillCreateCodeEditor=this._register(new fn),this._onCodeEditorAdd=this._register(new fn),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new fn),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new fn),this._onDiffEditorAdd=this._register(new fn),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new fn),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new L1,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(i){this._codeEditors[i.getId()]=i,this._onCodeEditorAdd.fire(i)}removeCodeEditor(i){delete this._codeEditors[i.getId()]&&this._onCodeEditorRemove.fire(i)}listCodeEditors(){return Object.keys(this._codeEditors).map(i=>this._codeEditors[i])}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(i){this._diffEditors[i.getId()]=i,this._onDiffEditorAdd.fire(i)}listDiffEditors(){return Object.keys(this._diffEditors).map(i=>this._diffEditors[i])}getFocusedCodeEditor(){let i=null,o=this.listCodeEditors();for(let s of o){if(s.hasTextFocus())return s;s.hasWidgetFocus()&&(i=s)}return i}removeDecorationType(i){let o=this._decorationOptionProviders.get(i);o&&(o.refCount--,o.refCount<=0&&(this._decorationOptionProviders.delete(i),o.dispose(),this.listCodeEditors().forEach(s=>s.removeDecorationsByType(i))))}setModelProperty(i,o,s){let c=i.toString(),_;this._modelProperties.has(c)?_=this._modelProperties.get(c):(_=new Map,this._modelProperties.set(c,_)),_.set(o,s)}getModelProperty(i,o){let s=i.toString();if(this._modelProperties.has(s))return this._modelProperties.get(s).get(o)}async openCodeEditor(i,o,s){for(let c of this._codeEditorOpenHandlers){let _=await c(i,o,s);if(_!==null)return _}return null}registerCodeEditorOpenHandler(i){let o=this._codeEditorOpenHandlers.unshift(i);return Qs(o)}};Dgt=gji([yji(0,Ph)],Dgt)});var vji,uki,Wot,Vni=Ht(()=>{va();cI();lki();$b();du();HD();_g();vji=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},uki=function(l,i){return function(o,s){i(o,s,l)}},Wot=class extends Dgt{constructor(i,o){super(o),this._register(this.onCodeEditorAdd(()=>this._checkContextKey())),this._register(this.onCodeEditorRemove(()=>this._checkContextKey())),this._editorIsOpen=i.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler(async(s,c,_)=>c?this.doOpenEditor(c,s):null))}_checkContextKey(){let i=!1;for(let o of this.listCodeEditors())if(!o.isSimpleWidget){i=!0;break}this._editorIsOpen.set(i)}setActiveCodeEditor(i){this._activeCodeEditor=i}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(i,o){if(!this.findModel(i,o.resource)){if(o.resource){let _=o.resource.scheme;if(_===Kl.http||_===Kl.https)return bft(o.resource.toString()),i}return null}let c=o.options?o.options.selection:null;if(c)if(typeof c.endLineNumber=="number"&&typeof c.endColumn=="number")i.setSelection(c),i.revealRangeInCenter(c,1);else{let _={lineNumber:c.startLineNumber,column:c.startColumn};i.setPosition(_),i.revealPositionInCenter(_,1)}return i}findModel(i,o){let s=i.getModel();return s&&s.uri.toString()!==o.toString()?null:s}};Wot=vji([uki(0,La),uki(1,Ph)],Wot);Ld($u,Wot,0)});var KL,nue=Ht(()=>{kc();KL=Wc("layoutService")});var dki,fki,Igt,Ngt,Hni=Ht(()=>{va();GA();su();Pa();$b();HD();nue();dki=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},fki=function(l,i){return function(o,s){i(o,s,l)}},Igt=class{get mainContainer(){var i,o;return(o=(i=L4e(this._codeEditorService.listCodeEditors()))===null||i===void 0?void 0:i.getContainerDomNode())!==null&&o!==void 0?o:D_.document.body}get activeContainer(){var i,o;let s=(i=this._codeEditorService.getFocusedCodeEditor())!==null&&i!==void 0?i:this._codeEditorService.getActiveCodeEditor();return(o=s?.getContainerDomNode())!==null&&o!==void 0?o:this.mainContainer}get mainContainerDimension(){return jL(this.mainContainer)}get activeContainerDimension(){return jL(this.activeContainer)}get containers(){return FD(this._codeEditorService.listCodeEditors().map(i=>i.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){var i;(i=this._codeEditorService.getFocusedCodeEditor())===null||i===void 0||i.focus()}constructor(i){this._codeEditorService=i,this.onDidLayoutMainContainer=Yo.None,this.onDidLayoutActiveContainer=Yo.None,this.onDidLayoutContainer=Yo.None,this.onDidChangeActiveContainer=Yo.None,this.onDidAddContainer=Yo.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};Igt=dki([fki(0,$u)],Igt);Ngt=class extends Igt{get mainContainer(){return this._container}constructor(i,o){super(o),this._container=i}};Ngt=dki([fki(1,$u)],Ngt);Ld(KL,Igt,1)});var CX,qLe=Ht(()=>{kc();CX=Wc("dialogService")});function Agt(l){return l.scheme===Kl.file?l.fsPath:l.path}var bji,_ki,$Le,pki,GLe,Pgt,Lgt,Uni,Ogt,zot,mki,Jni,KLe,hki=Ht(()=>{Pl();$r();cI();eue();Fs();qLe();HD();QD();Iot();bji=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},_ki=function(l,i){return function(o,s){i(o,s,l)}},$Le=!1;pki=0,GLe=class{constructor(i,o,s,c,_,h,b){this.id=++pki,this.type=0,this.actual=i,this.label=i.label,this.confirmBeforeUndo=i.confirmBeforeUndo||!1,this.resourceLabel=o,this.strResource=s,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=c,this.groupOrder=_,this.sourceId=h,this.sourceOrder=b,this.isValid=!0}setValid(i){this.isValid=i}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}},Pgt=class{constructor(i,o){this.resourceLabel=i,this.reason=o}},Lgt=class{constructor(){this.elements=new Map}createMessage(){let i=[],o=[];for(let[,c]of this.elements)(c.reason===0?i:o).push(c.resourceLabel);let s=[];return i.length>0&&s.push(de({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",i.join(", "))),o.length>0&&s.push(de({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",o.join(", "))),s.join(` +`)}get size(){return this.elements.size}has(i){return this.elements.has(i)}set(i,o){this.elements.set(i,o)}delete(i){return this.elements.delete(i)}},Uni=class{constructor(i,o,s,c,_,h,b){this.id=++pki,this.type=1,this.actual=i,this.label=i.label,this.confirmBeforeUndo=i.confirmBeforeUndo||!1,this.resourceLabels=o,this.strResources=s,this.groupId=c,this.groupOrder=_,this.sourceId=h,this.sourceOrder=b,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(i,o,s){this.removedResources||(this.removedResources=new Lgt),this.removedResources.has(o)||this.removedResources.set(o,new Pgt(i,s))}setValid(i,o,s){s?this.invalidatedResources&&(this.invalidatedResources.delete(o),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new Lgt),this.invalidatedResources.has(o)||this.invalidatedResources.set(o,new Pgt(i,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}},Ogt=class{constructor(i,o){this.resourceLabel=i,this.strResource=o,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let i of this._past)i.type===1&&i.removeResource(this.resourceLabel,this.strResource,0);for(let i of this._future)i.type===1&&i.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let i=[];i.push(`* ${this.strResource}:`);for(let o=0;o=0;o--)i.push(` * [REDO] ${this._future[o]}`);return i.join(` +`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(i,o){i.type===1?i.setValid(this.resourceLabel,this.strResource,o):i.setValid(o)}setElementsValidFlag(i,o){for(let s of this._past)o(s.actual)&&this._setElementValidFlag(s,i);for(let s of this._future)o(s.actual)&&this._setElementValidFlag(s,i)}pushElement(i){for(let o of this._future)o.type===1&&o.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(i),this.versionId++}createSnapshot(i){let o=[];for(let s=0,c=this._past.length;s=0;s--)o.push(this._future[s].id);return new Dot(i,o)}restoreSnapshot(i){let o=i.elements.length,s=!0,c=0,_=-1;for(let b=0,w=this._past.length;b=o||D.id!==i.elements[c])&&(s=!1,_=0),!s&&D.type===1&&D.removeResource(this.resourceLabel,this.strResource,0)}let h=-1;for(let b=this._future.length-1;b>=0;b--,c++){let w=this._future[b];s&&(c>=o||w.id!==i.elements[c])&&(s=!1,h=b),!s&&w.type===1&&w.removeResource(this.resourceLabel,this.strResource,0)}_!==-1&&(this._past=this._past.slice(0,_)),h!==-1&&(this._future=this._future.slice(h+1)),this.versionId++}getElements(){let i=[],o=[];for(let s of this._past)i.push(s.actual);for(let s of this._future)o.push(s.actual);return{past:i,future:o}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(i,o){for(let s=this._past.length-1;s>=0;s--)if(this._past[s]===i){o.has(this.strResource)?this._past[s]=o.get(this.strResource):this._past.splice(s,1);break}this.versionId++}splitFutureWorkspaceElement(i,o){for(let s=this._future.length-1;s>=0;s--)if(this._future[s]===i){o.has(this.strResource)?this._future[s]=o.get(this.strResource):this._future.splice(s,1);break}this.versionId++}moveBackward(i){this._past.pop(),this._future.push(i),this.versionId++}moveForward(i){this._future.pop(),this._past.push(i),this.versionId++}},zot=class{constructor(i){this.editStacks=i,this._versionIds=[];for(let o=0,s=this.editStacks.length;oo.sourceOrder)&&(o=h,s=c)}return[o,s]}canUndo(i){if(i instanceof tK){let[,s]=this._findClosestUndoElementWithSource(i.id);return!!s}let o=this.getUriComparisonKey(i);return this._editStacks.has(o)?this._editStacks.get(o).hasPastElements():!1}_onError(i,o){Sc(i);for(let s of o.strResources)this.removeElements(s);this._notificationService.error(i)}_acquireLocks(i){for(let o of i.editStacks)if(o.locked)throw new Error("Cannot acquire edit stack lock");for(let o of i.editStacks)o.locked=!0;return()=>{for(let o of i.editStacks)o.locked=!1}}_safeInvokeWithLocks(i,o,s,c,_){let h=this._acquireLocks(s),b;try{b=o()}catch(w){return h(),c.dispose(),this._onError(w,i)}return b?b.then(()=>(h(),c.dispose(),_()),w=>(h(),c.dispose(),this._onError(w,i))):(h(),c.dispose(),_())}async _invokeWorkspacePrepare(i){if(typeof i.actual.prepareUndoRedo>"u")return Ui.None;let o=i.actual.prepareUndoRedo();return typeof o>"u"?Ui.None:o}_invokeResourcePrepare(i,o){if(i.actual.type!==1||typeof i.actual.prepareUndoRedo>"u")return o(Ui.None);let s=i.actual.prepareUndoRedo();return s?_de(s)?o(s):s.then(c=>o(c)):o(Ui.None)}_getAffectedEditStacks(i){let o=[];for(let s of i.strResources)o.push(this._editStacks.get(s)||mki);return new zot(o)}_tryToSplitAndUndo(i,o,s,c){if(o.canSplit())return this._splitPastWorkspaceElement(o,s),this._notificationService.warn(c),new KLe(this._undo(i,0,!0));for(let _ of o.strResources)this.removeElements(_);return this._notificationService.warn(c),new KLe}_checkWorkspaceUndo(i,o,s,c){if(o.removedResources)return this._tryToSplitAndUndo(i,o,o.removedResources,de({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",o.label,o.removedResources.createMessage()));if(c&&o.invalidatedResources)return this._tryToSplitAndUndo(i,o,o.invalidatedResources,de({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",o.label,o.invalidatedResources.createMessage()));let _=[];for(let b of s.editStacks)b.getClosestPastElement()!==o&&_.push(b.resourceLabel);if(_.length>0)return this._tryToSplitAndUndo(i,o,null,de({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",o.label,_.join(", ")));let h=[];for(let b of s.editStacks)b.locked&&h.push(b.resourceLabel);return h.length>0?this._tryToSplitAndUndo(i,o,null,de({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",o.label,h.join(", "))):s.isValid()?null:this._tryToSplitAndUndo(i,o,null,de({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",o.label))}_workspaceUndo(i,o,s){let c=this._getAffectedEditStacks(o),_=this._checkWorkspaceUndo(i,o,c,!1);return _?_.returnValue:this._confirmAndExecuteWorkspaceUndo(i,o,c,s)}_isPartOfUndoGroup(i){if(!i.groupId)return!1;for(let[,o]of this._editStacks){let s=o.getClosestPastElement();if(s){if(s===i){let c=o.getSecondClosestPastElement();if(c&&c.groupId===i.groupId)return!0}if(s.groupId===i.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(i,o,s,c){if(o.canSplit()&&!this._isPartOfUndoGroup(o)){let b;(function(O){O[O.All=0]="All",O[O.This=1]="This",O[O.Cancel=2]="Cancel"})(b||(b={}));let{result:w}=await this._dialogService.prompt({type:jy.Info,message:de("confirmWorkspace","Would you like to undo '{0}' across all files?",o.label),buttons:[{label:de({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",s.editStacks.length),run:()=>b.All},{label:de({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>b.This}],cancelButton:{run:()=>b.Cancel}});if(w===b.Cancel)return;if(w===b.This)return this._splitPastWorkspaceElement(o,null),this._undo(i,0,!0);let D=this._checkWorkspaceUndo(i,o,s,!1);if(D)return D.returnValue;c=!0}let _;try{_=await this._invokeWorkspacePrepare(o)}catch(b){return this._onError(b,o)}let h=this._checkWorkspaceUndo(i,o,s,!0);if(h)return _.dispose(),h.returnValue;for(let b of s.editStacks)b.moveBackward(o);return this._safeInvokeWithLocks(o,()=>o.actual.undo(),s,_,()=>this._continueUndoInGroup(o.groupId,c))}_resourceUndo(i,o,s){if(!o.isValid){i.flushAllElements();return}if(i.locked){let c=de({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",o.label);this._notificationService.warn(c);return}return this._invokeResourcePrepare(o,c=>(i.moveBackward(o),this._safeInvokeWithLocks(o,()=>o.actual.undo(),new zot([i]),c,()=>this._continueUndoInGroup(o.groupId,s))))}_findClosestUndoElementInGroup(i){if(!i)return[null,null];let o=null,s=null;for(let[c,_]of this._editStacks){let h=_.getClosestPastElement();h&&h.groupId===i&&(!o||h.groupOrder>o.groupOrder)&&(o=h,s=c)}return[o,s]}_continueUndoInGroup(i,o){if(!i)return;let[,s]=this._findClosestUndoElementInGroup(i);if(s)return this._undo(s,0,o)}undo(i){if(i instanceof tK){let[,o]=this._findClosestUndoElementWithSource(i.id);return o?this._undo(o,i.id,!1):void 0}return typeof i=="string"?this._undo(i,0,!1):this._undo(this.getUriComparisonKey(i),0,!1)}_undo(i,o=0,s){if(!this._editStacks.has(i))return;let c=this._editStacks.get(i),_=c.getClosestPastElement();if(!_)return;if(_.groupId){let[b,w]=this._findClosestUndoElementInGroup(_.groupId);if(_!==b&&w)return this._undo(w,o,s)}if((_.sourceId!==o||_.confirmBeforeUndo)&&!s)return this._confirmAndContinueUndo(i,o,_);try{return _.type===1?this._workspaceUndo(i,_,s):this._resourceUndo(c,_,s)}finally{$Le&&this._print("undo")}}async _confirmAndContinueUndo(i,o,s){if((await this._dialogService.confirm({message:de("confirmDifferentSource","Would you like to undo '{0}'?",s.label),primaryButton:de({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:de("confirmDifferentSource.no","No")})).confirmed)return this._undo(i,o,!0)}_findClosestRedoElementWithSource(i){if(!i)return[null,null];let o=null,s=null;for(let[c,_]of this._editStacks){let h=_.getClosestFutureElement();h&&h.sourceId===i&&(!o||h.sourceOrder0)return this._tryToSplitAndRedo(i,o,null,de({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",o.label,_.join(", ")));let h=[];for(let b of s.editStacks)b.locked&&h.push(b.resourceLabel);return h.length>0?this._tryToSplitAndRedo(i,o,null,de({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",o.label,h.join(", "))):s.isValid()?null:this._tryToSplitAndRedo(i,o,null,de({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",o.label))}_workspaceRedo(i,o){let s=this._getAffectedEditStacks(o),c=this._checkWorkspaceRedo(i,o,s,!1);return c?c.returnValue:this._executeWorkspaceRedo(i,o,s)}async _executeWorkspaceRedo(i,o,s){let c;try{c=await this._invokeWorkspacePrepare(o)}catch(h){return this._onError(h,o)}let _=this._checkWorkspaceRedo(i,o,s,!0);if(_)return c.dispose(),_.returnValue;for(let h of s.editStacks)h.moveForward(o);return this._safeInvokeWithLocks(o,()=>o.actual.redo(),s,c,()=>this._continueRedoInGroup(o.groupId))}_resourceRedo(i,o){if(!o.isValid){i.flushAllElements();return}if(i.locked){let s=de({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",o.label);this._notificationService.warn(s);return}return this._invokeResourcePrepare(o,s=>(i.moveForward(o),this._safeInvokeWithLocks(o,()=>o.actual.redo(),new zot([i]),s,()=>this._continueRedoInGroup(o.groupId))))}_findClosestRedoElementInGroup(i){if(!i)return[null,null];let o=null,s=null;for(let[c,_]of this._editStacks){let h=_.getClosestFutureElement();h&&h.groupId===i&&(!o||h.groupOrder{Vot=class{constructor(){this._n=1,this._val=0}update(i){return this._val=this._val+(i-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}},Fgt=class{constructor(i){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(i),this._values.fill(0,0,i)}update(i){let o=this._values[this._index];return this._values[this._index]=i,this._index=(this._index+1)%this._values.length,this._sum-=o,this._sum+=i,this._n{kc();XLe=Wc("environmentService")});var Sji,gki,Nw,Rgt,qni,$ni,Gni,Cj=Ht(()=>{wde();UD();QAe();Mgt();HD();kc();aL();cI();Sji=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},gki=function(l,i){return function(o,s){i(o,s,l)}},Nw=Wc("ILanguageFeatureDebounceService");(function(l){let i=new WeakMap,o=0;function s(c){let _=i.get(c);return _===void 0&&(_=++o,i.set(c,_)),_}l.of=s})(Rgt||(Rgt={}));qni=class{constructor(i){this._default=i}get(i){return this._default}update(i,o){return this._default}default(){return this._default}},$ni=class{constructor(i,o,s,c,_,h){this._logService=i,this._name=o,this._registry=s,this._default=c,this._min=_,this._max=h,this._cache=new L2(50,.7)}_key(i){return i.id+this._registry.all(i).reduce((o,s)=>Bnt(Rgt.of(s),o),0)}get(i){let o=this._key(i),s=this._cache.get(o);return s?k2(s.value,this._min,this._max):this.default()}update(i,o){let s=this._key(i),c=this._cache.get(s);c||(c=new Fgt(6),this._cache.set(s,c));let _=k2(c.update(o),this._min,this._max);return Ont(i.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${i.uri.toString()} is ${_}ms`),_}_overall(){let i=new Vot;for(let[,o]of this._cache)i.update(o.value);return i.value}default(){let i=this._overall()|0||this._default;return k2(i,this._min,this._max)}},Gni=class{constructor(i,o){this._logService=i,this._data=new Map,this._isDev=o.isExtensionDevelopment||!o.isBuilt}for(i,o,s){var c,_,h;let b=(c=s?.min)!==null&&c!==void 0?c:50,w=(_=s?.max)!==null&&_!==void 0?_:b**2,D=(h=s?.key)!==null&&h!==void 0?h:void 0,O=`${Rgt.of(i)},${b}${D?","+D:""}`,j=this._data.get(O);return j||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${o}] is disabled in developed mode`),j=new qni(b*1.5)):j=new $ni(this._logService,o,i,this._overallAverage()|0||b*1.5,b,w),this._data.set(O,j)),j}_overallAverage(){let i=new Vot;for(let o of this._data.values())i.update(o.default());return i.value}};Gni=Sji([gki(0,Nv),gki(1,XLe)],Gni);Ld(Nw,Gni,1)});var Bgt,Kni,jgt,yki=Ht(()=>{Ll();ca();zAe();Bgt=class l{static create(i,o){return new l(i,new Kni(o))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(i,o){this._startLineNumber=i,this._tokens=o,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(i){return this._startLineNumber<=i&&i<=this._endLineNumber?this._tokens.getLineTokens(i-this._startLineNumber):null}getRange(){let i=this._tokens.getRange();return i&&new Vt(this._startLineNumber+i.startLineNumber,i.startColumn,this._startLineNumber+i.endLineNumber,i.endColumn)}removeTokens(i){let o=i.startLineNumber-this._startLineNumber,s=i.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(o,i.startColumn-1,s,i.endColumn-1),this._updateEndLineNumber()}split(i){let o=i.startLineNumber-this._startLineNumber,s=i.endLineNumber-this._startLineNumber,[c,_,h]=this._tokens.split(o,i.startColumn-1,s,i.endColumn-1);return[new l(this._startLineNumber,c),new l(this._startLineNumber+h,_)]}applyEdit(i,o){let[s,c,_]=w7(o);this.acceptEdit(i,s,c,_,o.length>0?o.charCodeAt(0):0)}acceptEdit(i,o,s,c,_){this._acceptDeleteRange(i),this._acceptInsertText(new Cn(i.startLineNumber,i.startColumn),o,s,c,_),this._updateEndLineNumber()}_acceptDeleteRange(i){if(i.startLineNumber===i.endLineNumber&&i.startColumn===i.endColumn)return;let o=i.startLineNumber-this._startLineNumber,s=i.endLineNumber-this._startLineNumber;if(s<0){let _=s-o;this._startLineNumber-=_;return}let c=this._tokens.getMaxDeltaLine();if(!(o>=c+1)){if(o<0&&s>=c+1){this._startLineNumber=0,this._tokens.clear();return}if(o<0){let _=-o;this._startLineNumber-=_,this._tokens.acceptDeleteRange(i.startColumn-1,0,0,s,i.endColumn-1)}else this._tokens.acceptDeleteRange(0,o,i.startColumn-1,s,i.endColumn-1)}}_acceptInsertText(i,o,s,c,_){if(o===0&&s===0)return;let h=i.lineNumber-this._startLineNumber;if(h<0){this._startLineNumber+=o;return}let b=this._tokens.getMaxDeltaLine();h>=b+1||this._tokens.acceptInsertText(h,i.column-1,o,s,c,_)}},Kni=class l{constructor(i){this._tokens=i,this._tokenCount=i.length/4}toString(i){let o=[];for(let s=0;si)s=c-1;else{let h=c;for(;h>o&&this._getDeltaLine(h-1)===i;)h--;let b=c;for(;bi||F===i&&K>=o)&&(Fi||K===i&&Pe>=o){if(K_?re-=_-s:re=s;else if(X===o&&K===s)if(X===c&&re>_)re-=_-s;else{O=!0;continue}else if(X_)X=o,K=s,re=K+(re-_);else{O=!0;continue}else if(X>c){if(w===0&&!O){D=b;break}X-=w}else if(X===c&&K>=_)i&&X===0&&(K+=i,re+=i),X-=w,K-=_-s,re-=_-s;else throw new Error("Not possible!");let Le=4*D;h[Le]=X,h[Le+1]=K,h[Le+2]=re,h[Le+3]=Pe,D++}this._tokenCount=D}acceptInsertText(i,o,s,c,_,h){let b=s===0&&c===1&&(h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122),w=this._tokens,D=this._tokenCount;for(let O=0;OO&&s[5*Je]===0;)Je--;if(Je-1===O){let Ye=j;for(;Ye+1Et)i.warnOverlappingSemanticTokens(Ct,Et+1);else{let sn=i.getMetadata(zi,Vr,o);sn!==2147483647&&(K===0&&(K=Ct),F[X]=Ct-K,F[X+1]=Et,F[X+2]=Mi,F[X+3]=sn,X+=4,re=Ct,Pe=Mi)}w=Ct,D=Et,b++}X!==F.length&&(F=F.subarray(0,X));let Le=Bgt.create(K,F);h.push(Le)}return h}var xji,Xni,Wgt,Yni,zgt,Hgt=Ht(()=>{iAe();_g();aL();yki();v2();xji=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Xni=function(l,i){return function(o,s){i(o,s,l)}},Wgt=class{constructor(i,o,s,c){this._legend=i,this._themeService=o,this._languageService=s,this._logService=c,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new zgt}getMetadata(i,o,s){let c=this._languageService.languageIdCodec.encodeLanguageId(s),_=this._hashTable.get(i,o,c),h;if(_)h=_.metadata,this._logService.getLevel()===VD.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${i} / ${o}: foreground ${QS.getForeground(h)}, fontStyle ${QS.getFontStyle(h).toString(2)}`);else{let b=this._legend.tokenTypes[i],w=[];if(b){let D=o;for(let j=0;D>0&&j>1;D>0&&this._logService.getLevel()===VD.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${o.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),w.push("not-in-legend"));let O=this._themeService.getColorTheme().getTokenStyleMetadata(b,w,s);if(typeof O>"u")h=2147483647;else{if(h=0,typeof O.italic<"u"){let j=(O.italic?1:0)<<11;h|=j|1}if(typeof O.bold<"u"){let j=(O.bold?2:0)<<11;h|=j|2}if(typeof O.underline<"u"){let j=(O.underline?4:0)<<11;h|=j|4}if(typeof O.strikethrough<"u"){let j=(O.strikethrough?8:0)<<11;h|=j|8}if(O.foreground){let j=O.foreground<<15;h|=j|16}h===0&&(h=2147483647)}}else this._logService.getLevel()===VD.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${i} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),h=2147483647,b="not-in-legend";this._hashTable.add(i,o,c,h),this._logService.getLevel()===VD.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${i} (${b}) / ${o} (${w.join(" ")}): foreground ${QS.getForeground(h)}, fontStyle ${QS.getFontStyle(h).toString(2)}`)}return h}warnOverlappingSemanticTokens(i,o){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${i}, column ${o}`))}warnInvalidLengthSemanticTokens(i,o){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${i}, column ${o}`))}warnInvalidEditStart(i,o,s,c,_){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${i}, resultId: ${o}) at edit #${s}: The provided start offset ${c} is outside the previous data (length ${_}).`))}};Wgt=xji([Xni(1,Ph),Xni(2,up),Xni(3,Nv)],Wgt);Yni=class{constructor(i,o,s,c){this.tokenTypeIndex=i,this.tokenModifierSet=o,this.languageId=s,this.metadata=c,this.next=null}},zgt=class l{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=l._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){let _=this._elements;this._currentLengthIndex++,this._currentLength=l._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1{kc();ZAe=Wc("semanticTokensStylingService")});var Cji,Qni,Zni,vki=Ht(()=>{$r();v2();_g();aL();Hgt();Ugt();HD();Cji=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Qni=function(l,i){return function(o,s){i(o,s,l)}},Zni=class extends Ui{constructor(i,o,s){super(),this._themeService=i,this._logService=o,this._languageService=s,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}getStyling(i){return this._caches.has(i)||this._caches.set(i,new Wgt(i.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(i)}};Zni=Cji([Qni(0,Ph),Qni(1,Nv),Qni(2,up)],Zni);Ld(ZAe,Zni,1)});function Ski(l,i){switch(l){case 0:return"";case 1:return`${$gt}*?`;default:return`(?:${qgt}|${$gt}+${qgt}${i?`|${qgt}${$gt}+`:""})*?`}}function xki(l,i){if(!l)return[];let o=[],s=!1,c=!1,_="";for(let h of l){switch(h){case i:if(!s&&!c){o.push(_),_="";continue}break;case"{":s=!0;break;case"}":s=!1;break;case"[":c=!0;break;case"]":c=!1;break}_+=h}return _&&o.push(_),o}function Eki(l){if(!l)return"";let i="",o=xki(l,bki);if(o.every(s=>s===Jgt))i=".*";else{let s=!1;o.forEach((c,_)=>{if(c===Jgt){if(s)return;i+=Ski(2,_===o.length-1)}else{let h=!1,b="",w=!1,D="";for(let O of c){if(O!=="}"&&h){b+=O;continue}if(w&&(O!=="]"||!D)){let j;O==="-"?j=O:(O==="^"||O==="!")&&!D?j="^":O===bki?j="":j=Cw(O),D+=j;continue}switch(O){case"{":h=!0;continue;case"[":w=!0;continue;case"}":{let F=`(?:${xki(b,",").map(X=>Eki(X)).join("|")})`;i+=F,h=!1,b="";break}case"]":{i+="["+D+"]",w=!1,D="";break}case"?":i+=$gt;continue;case"*":i+=Ski(1);continue;default:i+=Cw(O)}}_tri(b,i)).filter(b=>b!==kX),l),s=o.length;if(!s)return kX;if(s===1)return o[0];let c=function(b,w){for(let D=0,O=o.length;D!!b.allBasenames);_&&(c.allBasenames=_.allBasenames);let h=o.reduce((b,w)=>w.allPaths?b.concat(w.allPaths):b,[]);return h.length&&(c.allPaths=h),c}function Tki(l,i,o){let s=OF===F1.sep,c=s?l:l.replace(kji,OF),_=OF+c,h=F1.sep+l,b;return o?b=function(w,D){return typeof w=="string"&&(w===c||w.endsWith(_)||!s&&(w===l||w.endsWith(h)))?i:null}:b=function(w,D){return typeof w=="string"&&(w===c||!s&&w===l)?i:null},b.allPaths=[(o?"*/":"./")+l],b}function Oji(l){try{let i=new RegExp(`^${Eki(l)}$`);return function(o){return i.lastIndex=0,typeof o=="string"&&i.test(o)?l:null}}catch{return kX}}function Dki(l,i,o){return!l||typeof i!="string"?!1:iri(l)(i,void 0,o)}function iri(l,i={}){if(!l)return kki;if(typeof l=="string"||Fji(l)){let o=tri(l,i);if(o===kX)return kki;let s=function(c,_){return!!o(c,_)};return o.allBasenames&&(s.allBasenames=o.allBasenames),o.allPaths&&(s.allPaths=o.allPaths),s}return Mji(l,i)}function Fji(l){let i=l;return i?typeof i.base=="string"&&typeof i.pattern=="string":!1}function Mji(l,i){let o=Iki(Object.getOwnPropertyNames(l).map(b=>Rji(b,l[b],i)).filter(b=>b!==kX)),s=o.length;if(!s)return kX;if(!o.some(b=>!!b.requiresSiblings)){if(s===1)return o[0];let b=function(O,j){let F;for(let X=0,K=o.length;X{for(let X of F){let K=await X;if(typeof K=="string")return K}return null})():null},w=o.find(O=>!!O.allBasenames);w&&(b.allBasenames=w.allBasenames);let D=o.reduce((O,j)=>j.allPaths?O.concat(j.allPaths):O,[]);return D.length&&(b.allPaths=D),b}let c=function(b,w,D){let O,j;for(let F=0,X=o.length;F{for(let F of j){let X=await F;if(typeof X=="string")return X}return null})():null},_=o.find(b=>!!b.allBasenames);_&&(c.allBasenames=_.allBasenames);let h=o.reduce((b,w)=>w.allPaths?b.concat(w.allPaths):b,[]);return h.length&&(c.allPaths=h),c}function Rji(l,i,o){if(i===!1)return kX;let s=tri(l,o);if(s===kX)return kX;if(typeof i=="boolean")return s;if(i){let c=i.when;if(typeof c=="string"){let _=(h,b,w,D)=>{if(!D||!s(h,b))return null;let O=c.replace("$(basename)",()=>w),j=D(O);return tft(j)?j.then(F=>F?l:null):j?l:null};return _.requiresSiblings=!0,_}}return s}function Iki(l,i){let o=l.filter(b=>!!b.basenames);if(o.length<2)return l;let s=o.reduce((b,w)=>{let D=w.basenames;return D?b.concat(D):b},[]),c;if(i){c=[];for(let b=0,w=s.length;b{let D=w.patterns;return D?b.concat(D):b},[]);let _=function(b,w){if(typeof b!="string")return null;if(!w){let O;for(O=b.length;O>0;O--){let j=b.charCodeAt(O-1);if(j===47||j===92)break}w=b.substr(O)}let D=s.indexOf(w);return D!==-1?c[D]:null};_.basenames=s,_.patterns=c,_.allBasenames=s;let h=l.filter(b=>!b.basenames);return h.push(_),h}var Jgt,bki,qgt,$gt,kji,wji,Tji,Eji,Dji,Iji,Nji,Cki,kki,kX,nri=Ht(()=>{Bu();xht();UD();DG();uf();Bl();Jgt="**",bki="/",qgt="[/\\\\]",$gt="[^/\\\\]",kji=/\//g;wji=/^\*\*\/\*\.[\w\.-]+$/,Tji=/^\*\*\/([\w\.-]+)\/?$/,Eji=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,Dji=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,Iji=/^\*\*((\/[\w\.-]+)+)\/?$/,Nji=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,Cki=new L2(1e4),kki=function(){return!1},kX=function(){return null}});function Hot(l,i,o,s,c,_){if(Array.isArray(l)){let h=0;for(let b of l){let w=Hot(b,i,o,s,c,_);if(w===10)return w;w>h&&(h=w)}return h}else{if(typeof l=="string")return s?l==="*"?5:l===o?10:0:0;if(l){let{language:h,pattern:b,scheme:w,hasAccessToAllModels:D,notebookType:O}=l;if(!s&&!D)return 0;O&&c&&(i=c);let j=0;if(w)if(w===i.scheme)j=10;else if(w==="*")j=5;else return 0;if(h)if(h===o)j=10;else if(h==="*")j=Math.max(j,5);else return 0;if(O)if(O===_)j=10;else if(O==="*"&&_!==void 0)j=Math.max(j,5);else return 0;if(b){let F;if(typeof b=="string"?F=b:F={...b,base:Out(b.base)},F===i.fsPath||Dki(F,i.fsPath))j=10;else return 0}return j}else return 0}}var rri=Ht(()=>{nri();DG()});function Nki(l){return typeof l=="string"?!1:Array.isArray(l)?l.every(Nki):!!l.exclusive}function Uot(l){return typeof l=="string"?!1:Array.isArray(l)?l.some(Uot):!!l.isBuiltin}var Ggt,A1,Aki=Ht(()=>{Pa();$r();b2();rri();Ggt=class{constructor(i,o,s,c){this.uri=i,this.languageId=o,this.notebookUri=s,this.notebookType=c}equals(i){var o,s;return this.notebookType===i.notebookType&&this.languageId===i.languageId&&this.uri.toString()===i.uri.toString()&&((o=this.notebookUri)===null||o===void 0?void 0:o.toString())===((s=i.notebookUri)===null||s===void 0?void 0:s.toString())}},A1=class l{constructor(i){this._notebookInfoResolver=i,this._clock=0,this._entries=[],this._onDidChange=new fn,this.onDidChange=this._onDidChange.event}register(i,o){let s={selector:i,provider:o,_score:-1,_time:this._clock++};return this._entries.push(s),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Qs(()=>{if(s){let c=this._entries.indexOf(s);c>=0&&(this._entries.splice(c,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),s=void 0)}})}has(i){return this.all(i).length>0}all(i){if(!i)return[];this._updateScores(i);let o=[];for(let s of this._entries)s._score>0&&o.push(s.provider);return o}ordered(i){let o=[];return this._orderedForEach(i,s=>o.push(s.provider)),o}orderedGroups(i){let o=[],s,c;return this._orderedForEach(i,_=>{s&&c===_._score?s.push(_.provider):(c=_._score,s=[_.provider],o.push(s))}),o}_orderedForEach(i,o){this._updateScores(i);for(let s of this._entries)s._score>0&&o(s)}_updateScores(i){var o,s;let c=(o=this._notebookInfoResolver)===null||o===void 0?void 0:o.call(this,i.uri),_=c?new Ggt(i.uri,i.getLanguageId(),c.uri,c.type):new Ggt(i.uri,i.getLanguageId(),void 0,void 0);if(!(!((s=this._lastCandidate)===null||s===void 0)&&s.equals(_))){this._lastCandidate=_;for(let h of this._entries)if(h._score=Hot(h.selector,_.uri,_.languageId,g_t(i),_.notebookUri,_.notebookType),Nki(h.selector)&&h._score>0){for(let b of this._entries)b._score=0;h._score=1e3;break}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(i,o){return i._scoreo._score?-1:Uot(i.selector)&&!Uot(o.selector)?1:!Uot(i.selector)&&Uot(o.selector)?-1:i._timeo._time?-1:0}}});var ori,Pki=Ht(()=>{Aki();dp();HD();ori=class{constructor(){this.referenceProvider=new A1(this._score.bind(this)),this.renameProvider=new A1(this._score.bind(this)),this.newSymbolNamesProvider=new A1(this._score.bind(this)),this.codeActionProvider=new A1(this._score.bind(this)),this.definitionProvider=new A1(this._score.bind(this)),this.typeDefinitionProvider=new A1(this._score.bind(this)),this.declarationProvider=new A1(this._score.bind(this)),this.implementationProvider=new A1(this._score.bind(this)),this.documentSymbolProvider=new A1(this._score.bind(this)),this.inlayHintsProvider=new A1(this._score.bind(this)),this.colorProvider=new A1(this._score.bind(this)),this.codeLensProvider=new A1(this._score.bind(this)),this.documentFormattingEditProvider=new A1(this._score.bind(this)),this.documentRangeFormattingEditProvider=new A1(this._score.bind(this)),this.onTypeFormattingEditProvider=new A1(this._score.bind(this)),this.signatureHelpProvider=new A1(this._score.bind(this)),this.hoverProvider=new A1(this._score.bind(this)),this.documentHighlightProvider=new A1(this._score.bind(this)),this.multiDocumentHighlightProvider=new A1(this._score.bind(this)),this.selectionRangeProvider=new A1(this._score.bind(this)),this.foldingRangeProvider=new A1(this._score.bind(this)),this.linkProvider=new A1(this._score.bind(this)),this.inlineCompletionsProvider=new A1(this._score.bind(this)),this.inlineEditProvider=new A1(this._score.bind(this)),this.completionProvider=new A1(this._score.bind(this)),this.linkedEditingRangeProvider=new A1(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new A1(this._score.bind(this)),this.documentSemanticTokensProvider=new A1(this._score.bind(this)),this.documentDropEditProvider=new A1(this._score.bind(this)),this.documentPasteEditProvider=new A1(this._score.bind(this))}_score(i){var o;return(o=this._notebookTypeResolver)===null||o===void 0?void 0:o.call(this,i)}};Ld(js,ori,1)});var Bji,Lki,yL,wX,rue=Ht(()=>{kc();$r();Rg();va();Bji=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Lki=function(l,i){return function(o,s){i(o,s,l)}},yL=Wc("hoverService"),wX=class extends Ui{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(i,o,s={},c,_){super(),this.placement=i,this.instantHover=o,this.overrideOptions=s,this.configurationService=c,this.hoverService=_,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new pr),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration(h=>{h.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))}))}showHover(i,o){let s=typeof this.overrideOptions=="function"?this.overrideOptions(i,o):this.overrideOptions;this.hoverDisposables.clear();let c=Py(i.target)?[i.target]:i.target.targetElements;for(let h of c)this.hoverDisposables.add(Cm(h,"keydown",b=>{b.equals(9)&&this.hoverService.hideHover()}));let _=Py(i.content)?void 0:i.content.toString();return this.hoverService.showHover({...i,...s,persistence:{hideOnKeyDown:!0,...s.persistence},id:_,appearance:{...i.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...s.appearance}},o)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime{kc();vL=Wc("contextViewService"),IC=Wc("contextMenuService")});var Oki=Ht(()=>{});var Fki=Ht(()=>{});function Xgt(l,i){return l&&i?de("acessibleViewHint","Inspect this in the accessible view with {0}.",i):l?de("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}var Kgt,bfe,YLe,Jot,qot,QLe=Ht(()=>{va();jD();vj();$r();Fki();Fs();Kgt=No,bfe=class extends Ui{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new pW(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}},YLe=class l extends Ui{static render(i,o,s){return new l(i,o,s)}constructor(i,o,s){super(),this.actionContainer=bo(i,Kgt("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=bo(this.actionContainer,Kgt("a.action")),this.action.setAttribute("role","button"),o.iconClass&&bo(this.action,Kgt(`span.icon.${o.iconClass}`));let c=bo(this.action,Kgt("span"));c.textContent=s?`${o.label} (${s})`:o.label,this._store.add(new Jot(this.actionContainer,o.run)),this._store.add(new qot(this.actionContainer,o.run,[3,10])),this.setEnabled(!0)}setEnabled(i){i?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}};Jot=class extends Ui{constructor(i,o){super(),this._register(Tr(i,$o.CLICK,s=>{s.stopPropagation(),s.preventDefault(),o(i)}))}},qot=class extends Ui{constructor(i,o,s){super(),this._register(Tr(i,$o.KEY_DOWN,c=>{let _=new w_(c);s.some(h=>_.equals(h))&&(c.stopPropagation(),c.preventDefault(),o(i))}))}}});function Mki(l){let i,o=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(l.fragment);return o&&(i={startLineNumber:parseInt(o[1]),startColumn:o[2]?parseInt(o[2]):1,endLineNumber:o[4]?parseInt(o[4]):void 0,endColumn:o[4]?o[5]?parseInt(o[5]):1:void 0},l=l.with({fragment:""})),{selection:i,uri:l}}var Gb,bL=Ht(()=>{kc();Gb=Wc("openerService")});function Rki(l,i={}){let o=Ygt(i);return o.textContent=l,o}function Bki(l,i={}){let o=Ygt(i);return jki(o,jji(l,!!i.renderCodeSegments),i.actionHandler,i.renderCodeSegments),o}function Ygt(l){let i=l.inline?"span":"div",o=document.createElement(i);return l.className&&(o.className=l.className),o}function jki(l,i,o,s){let c;if(i.type===2)c=document.createTextNode(i.content||"");else if(i.type===3)c=document.createElement("b");else if(i.type===4)c=document.createElement("i");else if(i.type===7&&s)c=document.createElement("code");else if(i.type===5&&o){let _=document.createElement("a");o.disposables.add(Cm(_,"click",h=>{o.callback(String(i.index),h)})),c=_}else i.type===8?c=document.createElement("br"):i.type===1&&(c=l);c&&l!==c&&l.appendChild(c),c&&Array.isArray(i.children)&&i.children.forEach(_=>{jki(c,_,o,s)})}function jji(l,i){let o={type:1,children:[]},s=0,c=o,_=[],h=new sri(l);for(;!h.eos();){let b=h.next(),w=b==="\\"&&ari(h.peek(),i)!==0;if(w&&(b=h.next()),!w&&Wji(b,i)&&b===h.peek()){h.advance(),c.type===2&&(c=_.pop());let D=ari(b,i);if(c.type===D||c.type===5&&D===6)c=_.pop();else{let O={type:D,children:[]};D===5&&(O.index=s,s++),c.children.push(O),_.push(c),c=O}}else if(b===` +`)c.type===2&&(c=_.pop()),c.children.push({type:8});else if(c.type!==2){let D={type:2,content:b};c.children.push(D),_.push(c),c=D}else c.content+=b}return c.type===2&&(c=_.pop()),_.length,o}function Wji(l,i){return ari(l,i)!==0}function ari(l,i){switch(l){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return i?7:0;default:return 0}}var sri,cri=Ht(()=>{va();sri=class{constructor(i){this.source=i,this.index=0}eos(){return this.index>=this.source.length}next(){let i=this.peek();return this.advance(),i}peek(){return this.source[this.index]}advance(){this.index++}}});function I7(l){let i=new Array,o,s=0,c=0;for(;(o=zji.exec(l))!==null;){c=o.index||0,s{va();P0();zji=new RegExp(`(\\\\)?\\$\\((${uc.iconNameExpression}(?:${uc.iconModifierExpression})?)\\)`,"g")});function Wki(l){let i=Vji(l);if(i&&i.length>0)return new Uint32Array(i)}function Vji(l){if(N7=0,EX(l,lri,4352),N7>0||(EX(l,uri,4449),N7>0)||(EX(l,dri,4520),N7>0)||(EX(l,ePe,12593),N7))return Sfe.subarray(0,N7);if(l>=44032&&l<=55203){let i=l-44032,o=i%588,s=Math.floor(i/588),c=Math.floor(o/28),_=o%28-1;if(s=0&&(_0)return Sfe.subarray(0,N7)}}function EX(l,i,o){l>=o&&l>8&&(Sfe[N7++]=l>>8&255),l>>16&&(Sfe[N7++]=l>>16&255))}var N7,Sfe,lri,uri,dri,ePe,zki=Ht(()=>{N7=0,Sfe=new Uint32Array(10);lri=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),uri=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),dri=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),ePe=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108])});function t0t(...l){return function(i,o){for(let s=0,c=l.length;s0?[{start:0,end:i.length}]:[]:null}function yri(l,i){let o=i.toLowerCase().indexOf(l.toLowerCase());return o===-1?null:[{start:o,end:o+l.length}]}function vri(l,i){return pri(l.toLowerCase(),i.toLowerCase(),0,0)}function pri(l,i,o,s){if(o===l.length)return[];if(s===i.length)return null;if(l[o]===i[s]){let c=null;return(c=pri(l,i,o+1,s+1))?xri({start:s,end:s+1},c):null}return pri(l,i,o,s+1)}function bri(l){return 97<=l&&l<=122}function i0t(l){return 65<=l&&l<=90}function Sri(l){return 48<=l&&l<=57}function $ki(l){return l===32||l===9||l===10||l===13}function e0t(l){return $ki(l)||Gki.has(l)}function Vki(l,i){return l===i||e0t(l)&&e0t(i)}function Hki(l){if(fri.has(l))return fri.get(l);let i,o=Wki(l);return o&&(i=o),fri.set(l,i),i}function Kki(l){return bri(l)||i0t(l)||Sri(l)}function xri(l,i){return i.length===0?i=[l]:l.end===i[0].start?i[0].start=l.start:i.unshift(l),i}function Xki(l,i){for(let o=i;o0&&!Kki(l.charCodeAt(o-1)))return o}return l.length}function mri(l,i,o,s){if(o===l.length)return[];if(s===i.length)return null;if(l[o]!==i[s].toLowerCase())return null;{let c=null,_=s+1;for(c=mri(l,i,o+1,s+1);!c&&(_=Xki(i,_)).6}function qji(l){let{upperPercent:i,lowerPercent:o,alphaPercent:s,numericPercent:c}=l;return o>.2&&i<.8&&s>.6&&c<.2}function $ji(l){let i=0,o=0,s=0,c=0;for(let _=0;_60&&(i=i.substring(0,60));let o=Uji(i);if(!qji(o)){if(!Jji(o))return null;i=i.toLowerCase()}let s=null,c=0;for(l=l.toLowerCase();c0&&e0t(l.charCodeAt(o-1)))return o;return l.length}function Cri(l,i,o=!1){if(typeof l!="string"||typeof i!="string")return null;let s=Uki.get(l);s||(s=new RegExp(Qgi(l),"i"),Uki.set(l,s));let c=s.exec(i);return c?[{start:c.index,end:c.index+c[0].length}]:o?Kji(l,i):Gji(l,i)}function ewi(l,i){let o=IX(l,l.toLowerCase(),0,i,i.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return o?wfe(o):null}function twi(l,i,o,s,c,_){let h=Math.min(13,l.length);for(;o"u")return[];let i=[],o=l[1];for(let s=l.length-1;s>1;s--){let c=l[s]+o,_=i[i.length-1];_&&_.end===c?_.end=c+1:i.push({start:c,end:c+1})}return i}function kri(){let l=[],i=[];for(let o=0;o<=Cfe;o++)i[o]=0;for(let o=0;o<=Cfe;o++)l.push(i.slice(0));return l}function iwi(l){let i=[];for(let o=0;o<=l;o++)i[o]=0;return i}function _ri(l,i,o,s,c){function _(b,w,D=" "){for(;b.length_(b,3)).join("|")} +`;for(let b=0;b<=o;b++)b===0?h+=" |":h+=`${i[b-1]}|`,h+=l[b].slice(0,c+1).map(w=>_(w.toString(),3)).join("|")+` +`;return h}function Yji(l,i,o,s){l=l.substr(i),o=o.substr(s),console.log(_ri(xfe,l,l.length,o,o.length)),console.log(_ri($ot,l,l.length,o,o.length)),console.log(_ri(DX,l,l.length,o,o.length))}function Qgt(l,i){if(i<0||i>=l.length)return!1;let o=l.codePointAt(i);switch(o){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!Tnt(o)}}function Jki(l,i){if(i<0||i>=l.length)return!1;switch(l.charCodeAt(i)){case 32:case 9:return!0;default:return!1}}function Zgt(l,i,o){return i[l]!==o[l]}function Qji(l,i,o,s,c,_,h=!1){for(;iCfe?Cfe:l.length,w=s.length>Cfe?Cfe:s.length;if(o>=b||_>=w||b-o>w-_||!Qji(i,o,b,c,_,w,!0))return;Zji(b,w,o,_,i,c);let D=1,O=1,j=o,F=_,X=[!1];for(D=1,j=o;jJe,zi=Mi?xfe[D][O-1]+(DX[D][O-1]>0?-5:0):0,Vr=F>Je+1&&DX[D][O-1]>0,sn=Vr?xfe[D][O-2]+(DX[D][O-2]>0?-5:0):0;if(Vr&&(!Mi||sn>=zi)&&(!Et||sn>=St))xfe[D][O]=sn,$ot[D][O]=3,DX[D][O]=0;else if(Mi&&(!Et||zi>=St))xfe[D][O]=zi,$ot[D][O]=2,DX[D][O]=0;else if(Et)xfe[D][O]=St,$ot[D][O]=1,DX[D][O]=DX[D-1][O-1]+1;else throw new Error("not possible")}}if(Xji&&Yji(l,o,s,_),!X[0]&&!h.firstMatchCanBeWeak)return;D--,O--;let K=[xfe[D][O],_],re=0,Pe=0;for(;D>=1;){let Je=O;do{let Ye=$ot[D][Je];if(Ye===3)Je=Je-2;else if(Ye===2)Je=Je-1;else break}while(Je>=1);re>1&&i[o+D-1]===c[_+O-1]&&!Zgt(Je+_-1,s,c)&&re+1>DX[D][Je]&&(Je=O),Je===O?re++:re=1,Pe||(Pe=Je),D--,O=Je-1,K.push(O)}w-_===b&&h.boostFullMatch&&(K[0]+=2);let Le=Pe-b;return K[0]-=Le,K}function Zji(l,i,o,s,c,_){let h=l-1,b=i-1;for(;h>=o&&b>=s;)c[h]===_[b]&&(gri[h]=b,h--),b--}function eWi(l,i,o,s,c,_,h,b,w,D,O){if(i[o]!==_[h])return Number.MIN_SAFE_INTEGER;let j=1,F=!1;return h===o-s?j=l[o]===c[h]?7:5:Zgt(h,c,_)&&(h===0||!Zgt(h-1,c,_))?(j=l[o]===c[h]?7:5,F=!0):Qgt(_,h)&&(h===0||!Qgt(_,h-1))?j=5:(Qgt(_,h-1)||Jki(_,h-1))&&(j=5,F=!0),j>1&&o===s&&(O[0]=!0),F||(F=Zgt(h,c,_)||Qgt(_,h-1)||Jki(_,h-1)),o===s?h>w&&(j-=F?3:5):D?j+=F?2:0:j+=F?0:1,h+1===b&&(j-=F?3:5),j}function rwi(l,i,o,s,c,_,h){return tWi(l,i,o,s,c,_,!0,h)}function tWi(l,i,o,s,c,_,h,b){let w=IX(l,i,o,s,c,_,b);if(w&&!h)return w;if(l.length>=3){let D=Math.min(7,l.length-1);for(let O=o+1;Ow[0])&&(w=F))}}}return w}function iWi(l,i){if(i+1>=l.length)return;let o=l[i],s=l[i+1];if(o!==s)return l.slice(0,i)+s+o+l.slice(i+2)}var TAn,tPe,Gki,fri,Gji,Kji,Uki,Cfe,nwi,gri,DX,xfe,$ot,Xji,XL,kfe,kj=Ht(()=>{UD();zki();Bl();TAn=qki.bind(void 0,!1),tPe=qki.bind(void 0,!0);Gki=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(l=>Gki.add(l.charCodeAt(0)));fri=new Map;Gji=t0t(tPe,Yki,yri),Kji=t0t(tPe,Yki,vri),Uki=new L2(1e4);Cfe=128;nwi=iwi(2*Cfe),gri=iwi(2*Cfe),DX=kri(),xfe=kri(),$ot=kri(),Xji=!1;(function(l){l.Default=[-100,0];function i(o){return!o||o.length===2&&o[0]===-100&&o[1]===0}l.isDefault=i})(XL||(XL={}));kfe=class{constructor(i,o){this.firstMatchCanBeWeak=i,this.boostFullMatch=o}};kfe.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}});function owi(l){return l.replace(rWi,(i,o)=>o?i:`\\${i}`)}function swi(l){return l.replace(oWi,i=>`\\${i}`)}function ZLe(l){return l.indexOf(nWi)===-1?l:l.replace(sWi,(i,o,s,c)=>s?i:o||c||"")}function awi(l){return l?l.replace(/\$\((.*?)\)/g,(i,o)=>` ${o} `).trim():""}function e3e(l){wri.lastIndex=0;let i="",o=[],s=0;for(;;){let c=wri.lastIndex,_=wri.exec(l),h=l.substring(c,_?.index);if(h.length>0){i+=h;for(let b=0;b{kj();Bl();P0();nWi="$(",Tri=new RegExp(`\\$\\(${uc.iconNameExpression}(?:${uc.iconModifierExpression})?\\)`,"g"),rWi=new RegExp(`(\\\\)?${Tri.source}`,"g");oWi=new RegExp(`\\\\${Tri.source}`,"g");sWi=new RegExp(`(\\s)?(\\\\)?${Tri.source}(\\s)?`,"g");wri=new RegExp(`\\$\\(${uc.iconNameCharacter}+\\)`,"g")});function sue(l){return YL(l)?!l.value:Array.isArray(l)?l.every(sue):!0}function YL(l){return l instanceof Vb?!0:l&&typeof l=="object"?typeof l.value=="string"&&(typeof l.isTrusted=="boolean"||typeof l.isTrusted=="object"||l.isTrusted===void 0)&&(typeof l.supportThemeIcons=="boolean"||l.supportThemeIcons===void 0):!1}function cwi(l,i){return l===i?!0:!l||!i?!1:l.value===i.value&&l.isTrusted===i.isTrusted&&l.supportThemeIcons===i.supportThemeIcons&&l.supportHtml===i.supportHtml&&(l.baseUri===i.baseUri||!!l.baseUri&&!!i.baseUri&&OLe(Ka.from(l.baseUri),Ka.from(i.baseUri)))}function aWi(l){return l.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function cWi(l,i){var o,s;let c=(s=(o=l.match(/^`+/gm))===null||o===void 0?void 0:o.reduce((h,b)=>h.length>b.length?h:b).length)!==null&&s!==void 0?s:0,_=c>=3?c+1:3;return[`${"`".repeat(_)}${i}`,l,`${"`".repeat(_)}`].join(` +`)}function Got(l){return l.replace(/"/g,""")}function r0t(l){return l&&l.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1")}function lwi(l){let i=[],o=l.split("|").map(c=>c.trim());l=o[0];let s=o[1];if(s){let c=/height=(\d+)/.exec(s),_=/width=(\d+)/.exec(s),h=c?c[1]:"",b=_?_[1]:"",w=isFinite(parseInt(b)),D=isFinite(parseInt(h));w&&i.push(`width="${b}"`),D&&i.push(`height="${h}"`)}return{href:l,dimensions:i}}var Vb,vP=Ht(()=>{Pl();iPe();_I();Bl();Lh();Vb=class{constructor(i="",o=!1){var s,c,_;if(this.value=i,typeof this.value!="string")throw RD("value");typeof o=="boolean"?(this.isTrusted=o,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=(s=o.isTrusted)!==null&&s!==void 0?s:void 0,this.supportThemeIcons=(c=o.supportThemeIcons)!==null&&c!==void 0?c:!1,this.supportHtml=(_=o.supportHtml)!==null&&_!==void 0?_:!1)}appendText(i,o=0){return this.value+=aWi(this.supportThemeIcons?owi(i):i).replace(/([ \t]+)/g,(s,c)=>" ".repeat(c.length)).replace(/\>/gm,"\\>").replace(/\n/g,o===1?`\\ +`:` + +`),this}appendMarkdown(i){return this.value+=i,this}appendCodeblock(i,o){return this.value+=` +${cWi(o,i)} +`,this}appendLink(i,o,s){return this.value+="[",this.value+=this._escape(o,"]"),this.value+="](",this.value+=this._escape(String(i),")"),s&&(this.value+=` "${this._escape(this._escape(s,'"'),")")}"`),this.value+=")",this}_escape(i,o){let s=new RegExp(Cw(o),"g");return i.replace(s,(c,_)=>i.charAt(_-1)!=="\\"?`\\${c}`:c)}}});var nPe,Kot,Xot=Ht(()=>{nPe=class{constructor(i){this._prefix=i,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}},Kot=new nPe("id#")});var SL,jAn,WAn,zAn,VAn,HAn,UAn,JAn,qAn,SW,$An,GAn,KAn,XAn,YAn,QAn,ZAn,uwi=Ht(()=>{SL={};(function(){function l(i,o){o(SL)}l.amd=!0,function(i,o){typeof l=="function"&&l.amd?l(["exports"],o):typeof exports=="object"&&typeof module<"u"?o(exports):(i=typeof globalThis<"u"?globalThis:i||self,o(i.marked={}))}(this,function(i){"use strict";function o(hs,es){for(var Vo=0;Vohs.length)&&(es=hs.length);for(var Vo=0,vn=new Array(es);Vo=hs.length?{done:!0}:{done:!1,value:hs[vn++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}i.defaults=b();function w(hs){i.defaults=hs}var D=/[&<>"']/,O=/[&<>"']/g,j=/[<>"']|&(?!#?\w+;)/,F=/[<>"']|&(?!#?\w+;)/g,X={"&":"&","<":"<",">":">",'"':""","'":"'"},K=function(es){return X[es]};function re(hs,es){if(es){if(D.test(hs))return hs.replace(O,K)}else if(j.test(hs))return hs.replace(F,K);return hs}var Pe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Le(hs){return hs.replace(Pe,function(es,Vo){return Vo=Vo.toLowerCase(),Vo==="colon"?":":Vo.charAt(0)==="#"?Vo.charAt(1)==="x"?String.fromCharCode(parseInt(Vo.substring(2),16)):String.fromCharCode(+Vo.substring(1)):""})}var Je=/(^|[^\[])\^/g;function Ye(hs,es){hs=typeof hs=="string"?hs:hs.source,es=es||"";var Vo={replace:function(zn,Lr){return Lr=Lr.source||Lr,Lr=Lr.replace(Je,"$1"),hs=hs.replace(zn,Lr),Vo},getRegex:function(){return new RegExp(hs,es)}};return Vo}var ft=/[^\w:]/g,Ct=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Et(hs,es,Vo){if(hs){var vn;try{vn=decodeURIComponent(Le(Vo)).replace(ft,"").toLowerCase()}catch{return null}if(vn.indexOf("javascript:")===0||vn.indexOf("vbscript:")===0||vn.indexOf("data:")===0)return null}es&&!Ct.test(Vo)&&(Vo=sn(es,Vo));try{Vo=encodeURI(Vo).replace(/%25/g,"%")}catch{return null}return Vo}var St={},Mi=/^[^:]+:\/*[^/]*$/,zi=/^([^:]+:)[\s\S]*$/,Vr=/^([^:]+:\/*[^/]*)[\s\S]*$/;function sn(hs,es){St[" "+hs]||(Mi.test(hs)?St[" "+hs]=hs+"/":St[" "+hs]=rs(hs,"/",!0)),hs=St[" "+hs];var Vo=hs.indexOf(":")===-1;return es.substring(0,2)==="//"?Vo?es:hs.replace(zi,"$1")+es:es.charAt(0)==="/"?Vo?es:hs.replace(Vr,"$1")+es:hs+es}var gr={exec:function(){}};function er(hs){for(var es=1,Vo,vn;es=0&&Js[tl]==="\\";)hi=!hi;return hi?"|":" |"}),vn=Vo.split(/ \|/),zn=0;if(vn[0].trim()||vn.shift(),vn.length>0&&!vn[vn.length-1].trim()&&vn.pop(),vn.length>es)vn.splice(es);else for(;vn.length1;)es&1&&(Vo+=hs),es>>=1,hs+=hs;return Vo+hs}function Uo(hs,es,Vo,vn){var zn=es.href,Lr=es.title?re(es.title):null,zr=hs[1].replace(/\\([\[\]])/g,"$1");if(hs[0].charAt(0)!=="!"){vn.state.inLink=!0;var Js={type:"link",raw:Vo,href:zn,title:Lr,text:zr,tokens:vn.inlineTokens(zr)};return vn.state.inLink=!1,Js}return{type:"image",raw:Vo,href:zn,title:Lr,text:re(zr)}}function tc(hs,es){var Vo=hs.match(/^(\s+)(?:```)/);if(Vo===null)return es;var vn=Vo[1];return es.split(` +`).map(function(zn){var Lr=zn.match(/^\s+/);if(Lr===null)return zn;var zr=Lr[0];return zr.length>=vn.length?zn.slice(vn.length):zn}).join(` +`)}var vo=function(){function hs(Vo){this.options=Vo||i.defaults}var es=hs.prototype;return es.space=function(vn){var zn=this.rules.block.newline.exec(vn);if(zn&&zn[0].length>0)return{type:"space",raw:zn[0]}},es.code=function(vn){var zn=this.rules.block.code.exec(vn);if(zn){var Lr=zn[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:zn[0],codeBlockStyle:"indented",text:this.options.pedantic?Lr:rs(Lr,` +`)}}},es.fences=function(vn){var zn=this.rules.block.fences.exec(vn);if(zn){var Lr=zn[0],zr=tc(Lr,zn[3]||"");return{type:"code",raw:Lr,lang:zn[2]?zn[2].trim():zn[2],text:zr}}},es.heading=function(vn){var zn=this.rules.block.heading.exec(vn);if(zn){var Lr=zn[2].trim();if(/#$/.test(Lr)){var zr=rs(Lr,"#");(this.options.pedantic||!zr||/ $/.test(zr))&&(Lr=zr.trim())}return{type:"heading",raw:zn[0],depth:zn[1].length,text:Lr,tokens:this.lexer.inline(Lr)}}},es.hr=function(vn){var zn=this.rules.block.hr.exec(vn);if(zn)return{type:"hr",raw:zn[0]}},es.blockquote=function(vn){var zn=this.rules.block.blockquote.exec(vn);if(zn){var Lr=zn[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:zn[0],tokens:this.lexer.blockTokens(Lr,[]),text:Lr}}},es.list=function(vn){var zn=this.rules.block.list.exec(vn);if(zn){var Lr,zr,Js,hi,tl,lu,Fn,jc,Qd,bg,lc,E0,D0=zn[1].trim(),Wg=D0.length>1,mc={type:"list",raw:"",ordered:Wg,start:Wg?+D0.slice(0,-1):"",loose:!1,items:[]};D0=Wg?"\\d{1,9}\\"+D0.slice(-1):"\\"+D0,this.options.pedantic&&(D0=Wg?D0:"[*+-]");for(var I0=new RegExp("^( {0,3}"+D0+")((?:[ ][^\\n]*)?(?:\\n|$))");vn&&(E0=!1,!(!(zn=I0.exec(vn))||this.rules.block.hr.test(vn)));){if(Lr=zn[0],vn=vn.substring(Lr.length),jc=zn[2].split(` +`,1)[0],Qd=vn.split(` +`,1)[0],this.options.pedantic?(hi=2,lc=jc.trimLeft()):(hi=zn[2].search(/[^ ]/),hi=hi>4?1:hi,lc=jc.slice(hi),hi+=zn[1].length),lu=!1,!jc&&/^ *$/.test(Qd)&&(Lr+=Qd+` +`,vn=vn.substring(Qd.length+1),E0=!0),!E0)for(var Ta=new RegExp("^ {0,"+Math.min(3,hi-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),CP=new RegExp("^ {0,"+Math.min(3,hi-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),Lc=new RegExp("^ {0,"+Math.min(3,hi-1)+"}(?:```|~~~)"),pa=new RegExp("^ {0,"+Math.min(3,hi-1)+"}#");vn&&(bg=vn.split(` +`,1)[0],jc=bg,this.options.pedantic&&(jc=jc.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Lc.test(jc)||pa.test(jc)||Ta.test(jc)||CP.test(vn)));){if(jc.search(/[^ ]/)>=hi||!jc.trim())lc+=` +`+jc.slice(hi);else if(!lu)lc+=` +`+jc;else break;!lu&&!jc.trim()&&(lu=!0),Lr+=bg+` +`,vn=vn.substring(bg.length+1)}mc.loose||(Fn?mc.loose=!0:/\n *\n *$/.test(Lr)&&(Fn=!0)),this.options.gfm&&(zr=/^\[[ xX]\] /.exec(lc),zr&&(Js=zr[0]!=="[ ] ",lc=lc.replace(/^\[[ xX]\] +/,""))),mc.items.push({type:"list_item",raw:Lr,task:!!zr,checked:Js,loose:!1,text:lc}),mc.raw+=Lr}mc.items[mc.items.length-1].raw=Lr.trimRight(),mc.items[mc.items.length-1].text=lc.trimRight(),mc.raw=mc.raw.trimRight();var Fh=mc.items.length;for(tl=0;tl1)return!0}return!1});!mc.loose&&kP.length&&pg&&(mc.loose=!0,mc.items[tl].loose=!0)}return mc}},es.html=function(vn){var zn=this.rules.block.html.exec(vn);if(zn){var Lr={type:"html",raw:zn[0],pre:!this.options.sanitizer&&(zn[1]==="pre"||zn[1]==="script"||zn[1]==="style"),text:zn[0]};if(this.options.sanitize){var zr=this.options.sanitizer?this.options.sanitizer(zn[0]):re(zn[0]);Lr.type="paragraph",Lr.text=zr,Lr.tokens=this.lexer.inline(zr)}return Lr}},es.def=function(vn){var zn=this.rules.block.def.exec(vn);if(zn){zn[3]&&(zn[3]=zn[3].substring(1,zn[3].length-1));var Lr=zn[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:Lr,raw:zn[0],href:zn[2],title:zn[3]}}},es.table=function(vn){var zn=this.rules.block.table.exec(vn);if(zn){var Lr={type:"table",header:Di(zn[1]).map(function(Fn){return{text:Fn}}),align:zn[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:zn[3]&&zn[3].trim()?zn[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(Lr.header.length===Lr.align.length){Lr.raw=zn[0];var zr=Lr.align.length,Js,hi,tl,lu;for(Js=0;Js/i.test(zn[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(zn[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(zn[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:zn[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(zn[0]):re(zn[0]):zn[0]}},es.link=function(vn){var zn=this.rules.inline.link.exec(vn);if(zn){var Lr=zn[2].trim();if(!this.options.pedantic&&/^$/.test(Lr))return;var zr=rs(Lr.slice(0,-1),"\\");if((Lr.length-zr.length)%2===0)return}else{var Js=Ls(zn[2],"()");if(Js>-1){var hi=zn[0].indexOf("!")===0?5:4,tl=hi+zn[1].length+Js;zn[2]=zn[2].substring(0,Js),zn[0]=zn[0].substring(0,tl).trim(),zn[3]=""}}var lu=zn[2],Fn="";if(this.options.pedantic){var jc=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(lu);jc&&(lu=jc[1],Fn=jc[3])}else Fn=zn[3]?zn[3].slice(1,-1):"";return lu=lu.trim(),/^$/.test(Lr)?lu=lu.slice(1):lu=lu.slice(1,-1)),Uo(zn,{href:lu&&lu.replace(this.rules.inline._escapes,"$1"),title:Fn&&Fn.replace(this.rules.inline._escapes,"$1")},zn[0],this.lexer)}},es.reflink=function(vn,zn){var Lr;if((Lr=this.rules.inline.reflink.exec(vn))||(Lr=this.rules.inline.nolink.exec(vn))){var zr=(Lr[2]||Lr[1]).replace(/\s+/g," ");if(zr=zn[zr.toLowerCase()],!zr||!zr.href){var Js=Lr[0].charAt(0);return{type:"text",raw:Js,text:Js}}return Uo(Lr,zr,Lr[0],this.lexer)}},es.emStrong=function(vn,zn,Lr){Lr===void 0&&(Lr="");var zr=this.rules.inline.emStrong.lDelim.exec(vn);if(zr&&!(zr[3]&&Lr.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var Js=zr[1]||zr[2]||"";if(!Js||Js&&(Lr===""||this.rules.inline.punctuation.exec(Lr))){var hi=zr[0].length-1,tl,lu,Fn=hi,jc=0,Qd=zr[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Qd.lastIndex=0,zn=zn.slice(-1*vn.length+hi);(zr=Qd.exec(zn))!=null;)if(tl=zr[1]||zr[2]||zr[3]||zr[4]||zr[5]||zr[6],!!tl){if(lu=tl.length,zr[3]||zr[4]){Fn+=lu;continue}else if((zr[5]||zr[6])&&hi%3&&!((hi+lu)%3)){jc+=lu;continue}if(Fn-=lu,!(Fn>0)){if(lu=Math.min(lu,lu+Fn+jc),Math.min(hi,lu)%2){var bg=vn.slice(1,hi+zr.index+lu);return{type:"em",raw:vn.slice(0,hi+zr.index+lu+1),text:bg,tokens:this.lexer.inlineTokens(bg)}}var lc=vn.slice(2,hi+zr.index+lu-1);return{type:"strong",raw:vn.slice(0,hi+zr.index+lu+1),text:lc,tokens:this.lexer.inlineTokens(lc)}}}}}},es.codespan=function(vn){var zn=this.rules.inline.code.exec(vn);if(zn){var Lr=zn[2].replace(/\n/g," "),zr=/[^ ]/.test(Lr),Js=/^ /.test(Lr)&&/ $/.test(Lr);return zr&&Js&&(Lr=Lr.substring(1,Lr.length-1)),Lr=re(Lr,!0),{type:"codespan",raw:zn[0],text:Lr}}},es.br=function(vn){var zn=this.rules.inline.br.exec(vn);if(zn)return{type:"br",raw:zn[0]}},es.del=function(vn){var zn=this.rules.inline.del.exec(vn);if(zn)return{type:"del",raw:zn[0],text:zn[2],tokens:this.lexer.inlineTokens(zn[2])}},es.autolink=function(vn,zn){var Lr=this.rules.inline.autolink.exec(vn);if(Lr){var zr,Js;return Lr[2]==="@"?(zr=re(this.options.mangle?zn(Lr[1]):Lr[1]),Js="mailto:"+zr):(zr=re(Lr[1]),Js=zr),{type:"link",raw:Lr[0],text:zr,href:Js,tokens:[{type:"text",raw:zr,text:zr}]}}},es.url=function(vn,zn){var Lr;if(Lr=this.rules.inline.url.exec(vn)){var zr,Js;if(Lr[2]==="@")zr=re(this.options.mangle?zn(Lr[0]):Lr[0]),Js="mailto:"+zr;else{var hi;do hi=Lr[0],Lr[0]=this.rules.inline._backpedal.exec(Lr[0])[0];while(hi!==Lr[0]);zr=re(Lr[0]),Lr[1]==="www."?Js="http://"+zr:Js=zr}return{type:"link",raw:Lr[0],text:zr,href:Js,tokens:[{type:"text",raw:zr,text:zr}]}}},es.inlineText=function(vn,zn){var Lr=this.rules.inline.text.exec(vn);if(Lr){var zr;return this.lexer.state.inRawBlock?zr=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Lr[0]):re(Lr[0]):Lr[0]:zr=re(this.options.smartypants?zn(Lr[0]):Lr[0]),{type:"text",raw:Lr[0],text:zr}}},hs}(),kl={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:gr,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};kl._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,kl._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,kl.def=Ye(kl.def).replace("label",kl._label).replace("title",kl._title).getRegex(),kl.bullet=/(?:[*+-]|\d{1,9}[.)])/,kl.listItemStart=Ye(/^( *)(bull) */).replace("bull",kl.bullet).getRegex(),kl.list=Ye(kl.list).replace(/bull/g,kl.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+kl.def.source+")").getRegex(),kl._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",kl._comment=/|$)/,kl.html=Ye(kl.html,"i").replace("comment",kl._comment).replace("tag",kl._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),kl.paragraph=Ye(kl._paragraph).replace("hr",kl.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",kl._tag).getRegex(),kl.blockquote=Ye(kl.blockquote).replace("paragraph",kl.paragraph).getRegex(),kl.normal=er({},kl),kl.gfm=er({},kl.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),kl.gfm.table=Ye(kl.gfm.table).replace("hr",kl.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",kl._tag).getRegex(),kl.gfm.paragraph=Ye(kl._paragraph).replace("hr",kl.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",kl.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",kl._tag).getRegex(),kl.pedantic=er({},kl.normal,{html:Ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",kl._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:gr,paragraph:Ye(kl.normal._paragraph).replace("hr",kl.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",kl.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var qa={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:gr,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:gr,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",qa.punctuation=Ye(qa.punctuation).replace(/punctuation/g,qa._punctuation).getRegex(),qa.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,qa.escapedEmSt=/\\\*|\\_/g,qa._comment=Ye(kl._comment).replace("(?:-->|$)","-->").getRegex(),qa.emStrong.lDelim=Ye(qa.emStrong.lDelim).replace(/punct/g,qa._punctuation).getRegex(),qa.emStrong.rDelimAst=Ye(qa.emStrong.rDelimAst,"g").replace(/punct/g,qa._punctuation).getRegex(),qa.emStrong.rDelimUnd=Ye(qa.emStrong.rDelimUnd,"g").replace(/punct/g,qa._punctuation).getRegex(),qa._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,qa._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,qa._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,qa.autolink=Ye(qa.autolink).replace("scheme",qa._scheme).replace("email",qa._email).getRegex(),qa._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,qa.tag=Ye(qa.tag).replace("comment",qa._comment).replace("attribute",qa._attribute).getRegex(),qa._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,qa._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,qa._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,qa.link=Ye(qa.link).replace("label",qa._label).replace("href",qa._href).replace("title",qa._title).getRegex(),qa.reflink=Ye(qa.reflink).replace("label",qa._label).replace("ref",kl._label).getRegex(),qa.nolink=Ye(qa.nolink).replace("ref",kl._label).getRegex(),qa.reflinkSearch=Ye(qa.reflinkSearch,"g").replace("reflink",qa.reflink).replace("nolink",qa.nolink).getRegex(),qa.normal=er({},qa),qa.pedantic=er({},qa.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ye(/^!?\[(label)\]\((.*?)\)/).replace("label",qa._label).getRegex(),reflink:Ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",qa._label).getRegex()}),qa.gfm=er({},qa.normal,{escape:Ye(qa.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(vn="x"+vn.toString(16)),es+="&#"+vn+";";return es}var ro=function(){function hs(Vo){this.tokens=[],this.tokens.links=Object.create(null),this.options=Vo||i.defaults,this.options.tokenizer=this.options.tokenizer||new vo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var vn={block:kl.normal,inline:qa.normal};this.options.pedantic?(vn.block=kl.pedantic,vn.inline=qa.pedantic):this.options.gfm&&(vn.block=kl.gfm,this.options.breaks?vn.inline=qa.breaks:vn.inline=qa.gfm),this.tokenizer.rules=vn}hs.lex=function(vn,zn){var Lr=new hs(zn);return Lr.lex(vn)},hs.lexInline=function(vn,zn){var Lr=new hs(zn);return Lr.inlineTokens(vn)};var es=hs.prototype;return es.lex=function(vn){vn=vn.replace(/\r\n|\r/g,` +`),this.blockTokens(vn,this.tokens);for(var zn;zn=this.inlineQueue.shift();)this.inlineTokens(zn.src,zn.tokens);return this.tokens},es.blockTokens=function(vn,zn){var Lr=this;zn===void 0&&(zn=[]),this.options.pedantic?vn=vn.replace(/\t/g," ").replace(/^ +$/gm,""):vn=vn.replace(/^( *)(\t+)/gm,function(Fn,jc,Qd){return jc+" ".repeat(Qd.length)});for(var zr,Js,hi,tl;vn;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(Fn){return(zr=Fn.call({lexer:Lr},vn,zn))?(vn=vn.substring(zr.raw.length),zn.push(zr),!0):!1}))){if(zr=this.tokenizer.space(vn)){vn=vn.substring(zr.raw.length),zr.raw.length===1&&zn.length>0?zn[zn.length-1].raw+=` +`:zn.push(zr);continue}if(zr=this.tokenizer.code(vn)){vn=vn.substring(zr.raw.length),Js=zn[zn.length-1],Js&&(Js.type==="paragraph"||Js.type==="text")?(Js.raw+=` +`+zr.raw,Js.text+=` +`+zr.text,this.inlineQueue[this.inlineQueue.length-1].src=Js.text):zn.push(zr);continue}if(zr=this.tokenizer.fences(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.heading(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.hr(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.blockquote(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.list(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.html(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.def(vn)){vn=vn.substring(zr.raw.length),Js=zn[zn.length-1],Js&&(Js.type==="paragraph"||Js.type==="text")?(Js.raw+=` +`+zr.raw,Js.text+=` +`+zr.raw,this.inlineQueue[this.inlineQueue.length-1].src=Js.text):this.tokens.links[zr.tag]||(this.tokens.links[zr.tag]={href:zr.href,title:zr.title});continue}if(zr=this.tokenizer.table(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.lheading(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(hi=vn,this.options.extensions&&this.options.extensions.startBlock&&function(){var Fn=1/0,jc=vn.slice(1),Qd=void 0;Lr.options.extensions.startBlock.forEach(function(bg){Qd=bg.call({lexer:this},jc),typeof Qd=="number"&&Qd>=0&&(Fn=Math.min(Fn,Qd))}),Fn<1/0&&Fn>=0&&(hi=vn.substring(0,Fn+1))}(),this.state.top&&(zr=this.tokenizer.paragraph(hi))){Js=zn[zn.length-1],tl&&Js.type==="paragraph"?(Js.raw+=` +`+zr.raw,Js.text+=` +`+zr.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Js.text):zn.push(zr),tl=hi.length!==vn.length,vn=vn.substring(zr.raw.length);continue}if(zr=this.tokenizer.text(vn)){vn=vn.substring(zr.raw.length),Js=zn[zn.length-1],Js&&Js.type==="text"?(Js.raw+=` +`+zr.raw,Js.text+=` +`+zr.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Js.text):zn.push(zr);continue}if(vn){var lu="Infinite loop on byte: "+vn.charCodeAt(0);if(this.options.silent){console.error(lu);break}else throw new Error(lu)}}return this.state.top=!0,zn},es.inline=function(vn,zn){return zn===void 0&&(zn=[]),this.inlineQueue.push({src:vn,tokens:zn}),zn},es.inlineTokens=function(vn,zn){var Lr=this;zn===void 0&&(zn=[]);var zr,Js,hi,tl=vn,lu,Fn,jc;if(this.tokens.links){var Qd=Object.keys(this.tokens.links);if(Qd.length>0)for(;(lu=this.tokenizer.rules.inline.reflinkSearch.exec(tl))!=null;)Qd.includes(lu[0].slice(lu[0].lastIndexOf("[")+1,-1))&&(tl=tl.slice(0,lu.index)+"["+wc("a",lu[0].length-2)+"]"+tl.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(lu=this.tokenizer.rules.inline.blockSkip.exec(tl))!=null;)tl=tl.slice(0,lu.index)+"["+wc("a",lu[0].length-2)+"]"+tl.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(lu=this.tokenizer.rules.inline.escapedEmSt.exec(tl))!=null;)tl=tl.slice(0,lu.index)+"++"+tl.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;vn;)if(Fn||(jc=""),Fn=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(lc){return(zr=lc.call({lexer:Lr},vn,zn))?(vn=vn.substring(zr.raw.length),zn.push(zr),!0):!1}))){if(zr=this.tokenizer.escape(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.tag(vn)){vn=vn.substring(zr.raw.length),Js=zn[zn.length-1],Js&&zr.type==="text"&&Js.type==="text"?(Js.raw+=zr.raw,Js.text+=zr.text):zn.push(zr);continue}if(zr=this.tokenizer.link(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.reflink(vn,this.tokens.links)){vn=vn.substring(zr.raw.length),Js=zn[zn.length-1],Js&&zr.type==="text"&&Js.type==="text"?(Js.raw+=zr.raw,Js.text+=zr.text):zn.push(zr);continue}if(zr=this.tokenizer.emStrong(vn,tl,jc)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.codespan(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.br(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.del(vn)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(zr=this.tokenizer.autolink(vn,Hb)){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(!this.state.inLink&&(zr=this.tokenizer.url(vn,Hb))){vn=vn.substring(zr.raw.length),zn.push(zr);continue}if(hi=vn,this.options.extensions&&this.options.extensions.startInline&&function(){var lc=1/0,E0=vn.slice(1),D0=void 0;Lr.options.extensions.startInline.forEach(function(Wg){D0=Wg.call({lexer:this},E0),typeof D0=="number"&&D0>=0&&(lc=Math.min(lc,D0))}),lc<1/0&&lc>=0&&(hi=vn.substring(0,lc+1))}(),zr=this.tokenizer.inlineText(hi,Wy)){vn=vn.substring(zr.raw.length),zr.raw.slice(-1)!=="_"&&(jc=zr.raw.slice(-1)),Fn=!0,Js=zn[zn.length-1],Js&&Js.type==="text"?(Js.raw+=zr.raw,Js.text+=zr.text):zn.push(zr);continue}if(vn){var bg="Infinite loop on byte: "+vn.charCodeAt(0);if(this.options.silent){console.error(bg);break}else throw new Error(bg)}}return zn},s(hs,null,[{key:"rules",get:function(){return{block:kl,inline:qa}}}]),hs}(),bd=function(){function hs(Vo){this.options=Vo||i.defaults}var es=hs.prototype;return es.code=function(vn,zn,Lr){var zr=(zn||"").match(/\S*/)[0];if(this.options.highlight){var Js=this.options.highlight(vn,zr);Js!=null&&Js!==vn&&(Lr=!0,vn=Js)}return vn=vn.replace(/\n$/,"")+` +`,zr?'
'+(Lr?vn:re(vn,!0))+`
+`:"
"+(Lr?vn:re(vn,!0))+`
+`},es.blockquote=function(vn){return`
+`+vn+`
+`},es.html=function(vn){return vn},es.heading=function(vn,zn,Lr,zr){if(this.options.headerIds){var Js=this.options.headerPrefix+zr.slug(Lr);return"'+vn+" +`}return""+vn+" +`},es.hr=function(){return this.options.xhtml?`
+`:`
+`},es.list=function(vn,zn,Lr){var zr=zn?"ol":"ul",Js=zn&&Lr!==1?' start="'+Lr+'"':"";return"<"+zr+Js+`> +`+vn+" +`},es.listitem=function(vn){return"
  • "+vn+`
  • +`},es.checkbox=function(vn){return" "},es.paragraph=function(vn){return"

    "+vn+`

    +`},es.table=function(vn,zn){return zn&&(zn=""+zn+""),` + +`+vn+` +`+zn+`
    +`},es.tablerow=function(vn){return` +`+vn+` +`},es.tablecell=function(vn,zn){var Lr=zn.header?"th":"td",zr=zn.align?"<"+Lr+' align="'+zn.align+'">':"<"+Lr+">";return zr+vn+(" +`)},es.strong=function(vn){return""+vn+""},es.em=function(vn){return""+vn+""},es.codespan=function(vn){return""+vn+""},es.br=function(){return this.options.xhtml?"
    ":"
    "},es.del=function(vn){return""+vn+""},es.link=function(vn,zn,Lr){if(vn=Et(this.options.sanitize,this.options.baseUrl,vn),vn===null)return Lr;var zr='",zr},es.image=function(vn,zn,Lr){if(vn=Et(this.options.sanitize,this.options.baseUrl,vn),vn===null)return Lr;var zr=''+Lr+'":">",zr},es.text=function(vn){return vn},hs}(),Hg=function(){function hs(){}var es=hs.prototype;return es.strong=function(vn){return vn},es.em=function(vn){return vn},es.codespan=function(vn){return vn},es.del=function(vn){return vn},es.html=function(vn){return vn},es.text=function(vn){return vn},es.link=function(vn,zn,Lr){return""+Lr},es.image=function(vn,zn,Lr){return""+Lr},es.br=function(){return""},hs}(),_p=function(){function hs(){this.seen={}}var es=hs.prototype;return es.serialize=function(vn){return vn.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},es.getNextSafeSlug=function(vn,zn){var Lr=vn,zr=0;if(this.seen.hasOwnProperty(Lr)){zr=this.seen[vn];do zr++,Lr=vn+"-"+zr;while(this.seen.hasOwnProperty(Lr))}return zn||(this.seen[vn]=zr,this.seen[Lr]=0),Lr},es.slug=function(vn,zn){zn===void 0&&(zn={});var Lr=this.serialize(vn);return this.getNextSafeSlug(Lr,zn.dryrun)},hs}(),Kb=function(){function hs(Vo){this.options=Vo||i.defaults,this.options.renderer=this.options.renderer||new bd,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Hg,this.slugger=new _p}hs.parse=function(vn,zn){var Lr=new hs(zn);return Lr.parse(vn)},hs.parseInline=function(vn,zn){var Lr=new hs(zn);return Lr.parseInline(vn)};var es=hs.prototype;return es.parse=function(vn,zn){zn===void 0&&(zn=!0);var Lr="",zr,Js,hi,tl,lu,Fn,jc,Qd,bg,lc,E0,D0,Wg,mc,I0,Ta,CP,Lc,pa,Fh=vn.length;for(zr=0;zr0&&I0.tokens[0].type==="paragraph"?(I0.tokens[0].text=Lc+" "+I0.tokens[0].text,I0.tokens[0].tokens&&I0.tokens[0].tokens.length>0&&I0.tokens[0].tokens[0].type==="text"&&(I0.tokens[0].tokens[0].text=Lc+" "+I0.tokens[0].tokens[0].text)):I0.tokens.unshift({type:"text",text:Lc}):mc+=Lc),mc+=this.parse(I0.tokens,Wg),bg+=this.renderer.listitem(mc,CP,Ta);Lr+=this.renderer.list(bg,E0,D0);continue}case"html":{Lr+=this.renderer.html(lc.text);continue}case"paragraph":{Lr+=this.renderer.paragraph(this.parseInline(lc.tokens));continue}case"text":{for(bg=lc.tokens?this.parseInline(lc.tokens):lc.text;zr+1"u"||hs===null)throw new Error("marked(): input parameter is undefined or null");if(typeof hs!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(hs)+", string expected");if(typeof es=="function"&&(Vo=es,es=null),es=er({},hd.defaults,es||{}),_i(es),Vo){var vn=es.highlight,zn;try{zn=ro.lex(hs,es)}catch(tl){return Vo(tl)}var Lr=function(lu){var Fn;if(!lu)try{es.walkTokens&&hd.walkTokens(zn,es.walkTokens),Fn=Kb.parse(zn,es)}catch(jc){lu=jc}return es.highlight=vn,lu?Vo(lu):Vo(null,Fn)};if(!vn||vn.length<3||(delete es.highlight,!zn.length))return Lr();var zr=0;hd.walkTokens(zn,function(tl){tl.type==="code"&&(zr++,setTimeout(function(){vn(tl.text,tl.lang,function(lu,Fn){if(lu)return Lr(lu);Fn!=null&&Fn!==tl.text&&(tl.text=Fn,tl.escaped=!0),zr--,zr===0&&Lr()})},0))}),zr===0&&Lr();return}function Js(tl){if(tl.message+=` +Please report this to https://github.com/markedjs/marked.`,es.silent)return"

    An error occurred:

    "+re(tl.message+"",!0)+"
    ";throw tl}try{var hi=ro.lex(hs,es);if(es.walkTokens){if(es.async)return Promise.all(hd.walkTokens(hi,es.walkTokens)).then(function(){return Kb.parse(hi,es)}).catch(Js);hd.walkTokens(hi,es.walkTokens)}return Kb.parse(hi,es)}catch(tl){Js(tl)}}hd.options=hd.setOptions=function(hs){return er(hd.defaults,hs),w(hd.defaults),hd},hd.getDefaults=b,hd.defaults=i.defaults,hd.use=function(){for(var hs=arguments.length,es=new Array(hs),Vo=0;Vo"u"||hs===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof hs!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(hs)+", string expected");es=er({},hd.defaults,es||{}),_i(es);try{var Vo=ro.lexInline(hs,es);return es.walkTokens&&hd.walkTokens(Vo,es.walkTokens),Kb.parseInline(Vo,es)}catch(vn){if(vn.message+=` +Please report this to https://github.com/markedjs/marked.`,es.silent)return"

    An error occurred:

    "+re(vn.message+"",!0)+"
    ";throw vn}},hd.Parser=Kb,hd.parser=Kb.parse,hd.Renderer=bd,hd.TextRenderer=Hg,hd.Lexer=ro,hd.lexer=ro.lex,hd.Tokenizer=vo,hd.Slugger=_p,hd.parse=hd;var oI=hd.options,Lt=hd.setOptions,yw=hd.use,Fo=hd.walkTokens,PC=hd.parseInline,Ow=hd,Que=Kb.parse,F_e=ro.lex;i.Lexer=ro,i.Parser=Kb,i.Renderer=bd,i.Slugger=_p,i.TextRenderer=Hg,i.Tokenizer=vo,i.getDefaults=b,i.lexer=F_e,i.marked=hd,i.options=oI,i.parse=Ow,i.parseInline=PC,i.parser=Que,i.setOptions=Lt,i.use=yw,i.walkTokens=Fo,Object.defineProperty(i,"__esModule",{value:!0})})})();jAn=SL.Lexer||exports.Lexer,WAn=SL.Parser||exports.Parser,zAn=SL.Renderer||exports.Renderer,VAn=SL.Slugger||exports.Slugger,HAn=SL.TextRenderer||exports.TextRenderer,UAn=SL.Tokenizer||exports.Tokenizer,JAn=SL.getDefaults||exports.getDefaults,qAn=SL.lexer||exports.lexer,SW=SL.marked||exports.marked,$An=SL.options||exports.options,GAn=SL.parse||exports.parse,KAn=SL.parseInline||exports.parseInline,XAn=SL.parser||exports.parser,YAn=SL.setOptions||exports.setOptions,QAn=SL.use||exports.use,ZAn=SL.walkTokens||exports.walkTokens});function dwi(l){return JSON.stringify(l,lWi)}function Yot(l){let i=JSON.parse(l);return i=Eri(i),i}function lWi(l,i){return i instanceof RegExp?{$mid:2,source:i.source,flags:i.flags}:i}function Eri(l,i=0){if(!l||i>200)return l;if(typeof l=="object"){switch(l.$mid){case 1:return Ka.revive(l);case 2:return new RegExp(l.source,l.flags);case 17:return new Date(l.source)}if(l instanceof g6e||l instanceof Uint8Array)return l;if(Array.isArray(l))for(let o=0;o{y6e();Lh()});function Tfe(l,i={},o={}){var s,c;let _=new pr,h=!1,b=Ygt(i),w=function(Le){let Je;try{Je=Yot(decodeURIComponent(Le))}catch{}return Je?(Je=mut(Je,Ye=>{if(l.uris&&l.uris[Ye])return Ka.revive(l.uris[Ye])}),encodeURIComponent(JSON.stringify(Je))):Le},D=function(Le,Je){let Ye=l.uris&&l.uris[Le],ft=Ka.revive(Ye);return Je?Le.startsWith(Kl.data+":")?Le:(ft||(ft=Ka.parse(Le)),uft.uriToBrowserUri(ft).toString(!0)):!ft||Ka.parse(Le).toString()===ft.toString()?Le:(ft.query&&(ft=ft.with({query:w(ft.query)})),ft.toString())},O=new SW.Renderer;O.image=Dri.image,O.link=Dri.link,O.paragraph=Dri.paragraph;let j=[],F=[];if(i.codeBlockRendererSync?O.code=(Le,Je)=>{let Ye=Kot.nextId(),ft=i.codeBlockRendererSync(fwi(Je),Le);return F.push([Ye,ft]),`
    ${bde(Le)}
    `}:i.codeBlockRenderer&&(O.code=(Le,Je)=>{let Ye=Kot.nextId(),ft=i.codeBlockRenderer(fwi(Je),Le);return j.push(ft.then(Ct=>[Ye,Ct])),`
    ${bde(Le)}
    `}),i.actionHandler){let Le=function(ft){let Ct=ft.target;if(!(Ct.tagName!=="A"&&(Ct=Ct.parentElement,!Ct||Ct.tagName!=="A")))try{let Et=Ct.dataset.href;Et&&(l.baseUri&&(Et=Iri(Ka.from(l.baseUri),Et)),i.actionHandler.callback(Et,ft))}catch(Et){Sc(Et)}finally{ft.preventDefault()}},Je=i.actionHandler.disposables.add(new Yd(b,"click")),Ye=i.actionHandler.disposables.add(new Yd(b,"auxclick"));i.actionHandler.disposables.add(Yo.any(Je.event,Ye.event)(ft=>{let Ct=new h2(Xa(b),ft);!Ct.leftButton&&!Ct.middleButton||Le(Ct)})),i.actionHandler.disposables.add(Tr(b,"keydown",ft=>{let Ct=new w_(ft);!Ct.equals(10)&&!Ct.equals(3)||Le(Ct)}))}l.supportHtml||(o.sanitizer=Le=>{var Je;return!((Je=i.sanitizerOptions)===null||Je===void 0)&&Je.replaceWithPlaintext?bde(Le):(l.isTrusted?Le.match(/^(]+>)|(<\/\s*span>)$/):void 0)?Le:""},o.sanitize=!0,o.silent=!0),o.renderer=O;let X=(s=l.value)!==null&&s!==void 0?s:"";X.length>1e5&&(X=`${X.substr(0,1e5)}\u2026`),l.supportThemeIcons&&(X=swi(X));let K;if(i.fillInIncompleteTokens){let Le={...SW.defaults,...o},Je=SW.lexer(X,Le),Ye=SWi(Je);K=SW.parser(Ye,Le)}else K=SW.parse(X,o);l.supportThemeIcons&&(K=I7(K).map(Je=>typeof Je=="string"?Je:Je.outerHTML).join(""));let Pe=new DOMParser().parseFromString(Nri({isTrusted:l.isTrusted,...i.sanitizerOptions},K),"text/html");if(Pe.body.querySelectorAll("img, audio, video, source").forEach(Le=>{let Je=Le.getAttribute("src");if(Je){let Ye=Je;try{l.baseUri&&(Ye=Iri(Ka.from(l.baseUri),Ye))}catch{}if(Le.setAttribute("src",D(Ye,!0)),i.remoteImageIsAllowed){let ft=Ka.parse(Ye);ft.scheme!==Kl.file&&ft.scheme!==Kl.data&&!i.remoteImageIsAllowed(ft)&&Le.replaceWith(No("",void 0,Le.outerHTML))}}}),Pe.body.querySelectorAll("a").forEach(Le=>{let Je=Le.getAttribute("href");if(Le.setAttribute("href",""),!Je||/^data:|javascript:/i.test(Je)||/^command:/i.test(Je)&&!l.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(Je))Le.replaceWith(...Le.childNodes);else{let Ye=D(Je,!1);l.baseUri&&(Ye=Iri(Ka.from(l.baseUri),Je)),Le.dataset.href=Ye}}),b.innerHTML=Nri({isTrusted:l.isTrusted,...i.sanitizerOptions},Pe.body.innerHTML),j.length>0)Promise.all(j).then(Le=>{var Je,Ye;if(h)return;let ft=new Map(Le),Ct=b.querySelectorAll("div[data-code]");for(let Et of Ct){let St=ft.get((Je=Et.dataset.code)!==null&&Je!==void 0?Je:"");St&&N1(Et,St)}(Ye=i.asyncRenderCallback)===null||Ye===void 0||Ye.call(i)});else if(F.length>0){let Le=new Map(F),Je=b.querySelectorAll("div[data-code]");for(let Ye of Je){let ft=Le.get((c=Ye.dataset.code)!==null&&c!==void 0?c:"");ft&&N1(Ye,ft)}}if(i.asyncRenderCallback)for(let Le of b.getElementsByTagName("img")){let Je=_.add(Tr(Le,"load",()=>{Je.dispose(),i.asyncRenderCallback()}))}return{element:b,dispose:()=>{h=!0,_.dispose()}}}function fwi(l){if(!l)return"";let i=l.split(/[\s+|:|,|\{|\?]/,1);return i.length?i[0]:l}function Iri(l,i){return/^\w[\w\d+.-]*:/.test(i)?i:l.path.endsWith("/")?Mii(l,i).toString():Mii(hfe(l),i).toString()}function Nri(l,i){let{config:o,allowedSchemes:s}=fWi(l),c=new pr;c.add(_wi("uponSanitizeAttribute",(_,h)=>{var b;if(h.attrName==="style"||h.attrName==="class"){if(_.tagName==="SPAN"){if(h.attrName==="style"){h.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(h.attrValue);return}else if(h.attrName==="class"){h.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(h.attrValue);return}}h.keepAttr=!1;return}else if(_.tagName==="INPUT"&&((b=_.attributes.getNamedItem("type"))===null||b===void 0?void 0:b.value)==="checkbox"){if(h.attrName==="type"&&h.attrValue==="checkbox"||h.attrName==="disabled"||h.attrName==="checked"){h.keepAttr=!0;return}h.keepAttr=!1}})),c.add(_wi("uponSanitizeElement",(_,h)=>{var b,w;if(h.tagName==="input"&&(((b=_.attributes.getNamedItem("type"))===null||b===void 0?void 0:b.value)==="checkbox"?_.setAttribute("disabled",""):l.replaceWithPlaintext||(w=_.parentElement)===null||w===void 0||w.removeChild(_)),l.replaceWithPlaintext&&!h.allowedTags[h.tagName]&&h.tagName!=="body"&&_.parentElement){let D,O;if(h.tagName==="#comment")D=``;else{let K=uWi.includes(h.tagName),re=_.attributes.length?" "+Array.from(_.attributes).map(Pe=>`${Pe.name}="${Pe.value}"`).join(" "):"";D=`<${h.tagName}${re}>`,K||(O=``)}let j=document.createDocumentFragment(),F=_.parentElement.ownerDocument.createTextNode(D);j.appendChild(F);let X=O?_.parentElement.ownerDocument.createTextNode(O):void 0;for(;_.firstChild;)j.appendChild(_.firstChild);X&&j.appendChild(X),_.parentElement.replaceChild(j,_)}})),c.add(U0i(s));try{return oft(i,{...o,RETURN_TRUSTED_TYPE:!0})}finally{c.dispose()}}function fWi(l){var i;let o=[Kl.http,Kl.https,Kl.mailto,Kl.data,Kl.file,Kl.vscodeFileResource,Kl.vscodeRemote,Kl.vscodeRemoteResource];return l.isTrusted&&o.push(Kl.command),{config:{ALLOWED_TAGS:(i=l.allowedTags)!==null&&i!==void 0?i:[...J0i],ALLOWED_ATTR:dWi,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:o}}function pwi(l){return typeof l=="string"?l:_Wi(l)}function _Wi(l,i){var o;let s=(o=l.value)!==null&&o!==void 0?o:"";s.length>1e5&&(s=`${s.substr(0,1e5)}\u2026`);let c=SW.parse(s,{renderer:i?hWi.value:mWi.value}).replace(/&(#\d+|[a-zA-Z]+);/g,_=>{var h;return(h=pWi.get(_))!==null&&h!==void 0?h:_});return Nri({isTrusted:!1},c).toString()}function mwi(){let l=new SW.Renderer;return l.code=i=>i,l.blockquote=i=>i,l.html=i=>"",l.heading=(i,o,s)=>i+` +`,l.hr=()=>"",l.list=(i,o)=>i,l.listitem=i=>i+` +`,l.paragraph=i=>i+` +`,l.table=(i,o)=>i+o+` +`,l.tablerow=i=>i,l.tablecell=(i,o)=>i+" ",l.strong=i=>i,l.em=i=>i,l.codespan=i=>i,l.br=()=>` +`,l.del=i=>i,l.image=(i,o,s)=>"",l.text=i=>i,l.link=(i,o,s)=>s,l}function Qot(l){let i="";return l.forEach(o=>{i+=o.raw}),i}function hwi(l){var i,o;if(l.tokens)for(let s=l.tokens.length-1;s>=0;s--){let c=l.tokens[s];if(c.type==="text"){let _=c.raw.split(` +`),h=_[_.length-1];if(h.includes("`"))return kWi(l);if(h.includes("**"))return NWi(l);if(h.match(/\*\w/))return wWi(l);if(h.match(/(^|\s)__\w/))return AWi(l);if(h.match(/(^|\s)_\w/))return TWi(l);if(gWi(h)||yWi(h)&&l.tokens.slice(0,s).some(b=>b.type==="text"&&b.raw.match(/\[[^\]]*$/))){let b=l.tokens.slice(s+1);return((i=b[0])===null||i===void 0?void 0:i.type)==="link"&&((o=b[1])===null||o===void 0?void 0:o.type)==="text"&&b[1].raw.match(/^ *"[^"]*$/)||h.match(/^[^"]* +"[^"]*$/)?DWi(l):EWi(l)}else if(h.match(/(^|\s)\[\w*/))return IWi(l)}}}function gWi(l){return!!l.match(/(^|\s)\[.*\]\(\w*/)}function yWi(l){return!!l.match(/^[^\[]*\]\([^\)]*$/)}function vWi(l){var i;let o=l.items[l.items.length-1],s=o.tokens?o.tokens[o.tokens.length-1]:void 0,c;if(s?.type==="text"&&!("inRawBlock"in o)&&(c=hwi(s)),!c||c.type!=="paragraph")return;let _=Qot(l.items.slice(0,-1)),h=(i=o.raw.match(/^(\s*(-|\d+\.) +)/))===null||i===void 0?void 0:i[0];if(!h)return;let b=h+Qot(o.tokens.slice(0,-1))+c.raw,w=SW.lexer(_+b)[0];if(w.type==="list")return w}function SWi(l){for(let i=0;i"u"&&h.match(/^\s*\|/)){let b=h.match(/(\|[^\|]+)(?=\||$)/g);b&&(s=b.length)}else if(typeof s=="number")if(h.match(/^\s*\|/)){if(_!==o.length-1)return;c=!0}else return}if(typeof s=="number"&&s>0){let _=c?o.slice(0,-1).join(` +`):i,h=!!_.match(/\|\s*$/),b=_+(h?"":"|")+` +|${" --- |".repeat(s)}`;return SW.lexer(b)}}function _wi(l,i){return sft(l,i),Qs(()=>aft(l))}var Dri,uWi,dWi,pWi,mWi,hWi,bWi,Zot=Ht(()=>{va();cft();mW();cri();jD();h7();oue();Pl();Pa();vP();iPe();Xot();AG();$r();uwi();o0t();cI();oP();_I();Bl();Lh();Dri=Object.freeze({image:(l,i,o)=>{let s=[],c=[];return l&&({href:l,dimensions:s}=lwi(l),c.push(`src="${Got(l)}"`)),o&&c.push(`alt="${Got(o)}"`),i&&c.push(`title="${Got(i)}"`),s.length&&(c=c.concat(s)),""},paragraph:l=>`

    ${l}

    `,link:(l,i,o)=>typeof l!="string"?"":(l===o&&(o=r0t(o)),i=typeof i=="string"?Got(r0t(i)):"",l=r0t(l),l=l.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),`
    ${o}`)});uWi=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];dWi=["align","autoplay","alt","checked","class","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","src","style","target","title","type","width","start"];pWi=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]);mWi=new TC(l=>mwi()),hWi=new TC(()=>{let l=mwi();return l.code=i=>"\n```"+i+"```\n",l});bWi=3});var gwi=Ht(()=>{});async function est(l,i,o){try{return await l.open(i,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:OWi(o)})}catch(s){return Sc(s),!1}}function OWi(l){return l===!0?!0:l&&Array.isArray(l.enabledCommands)?l.enabledCommands:!1}var LWi,ywi,Ari,xL,aue=Ht(()=>{Zot();VK();Pl();Pa();$r();gwi();v7();v2();lj();kni();bL();LWi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},ywi=function(l,i){return function(o,s){i(o,s,l)}},xL=Ari=class{constructor(i,o,s){this._options=i,this._languageService=o,this._openerService=s,this._onDidRenderAsync=new fn,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(i,o,s){if(!i)return{element:document.createElement("span"),dispose:()=>{}};let c=new pr,_=c.add(Tfe(i,{...this._getRenderOptions(i,c),...o},s));return _.element.classList.add("rendered-markdown"),{element:_.element,dispose:()=>c.dispose()}}_getRenderOptions(i,o){return{codeBlockRenderer:async(s,c)=>{var _,h,b;let w;s?w=this._languageService.getLanguageIdByLanguageName(s):this._options.editor&&(w=(_=this._options.editor.getModel())===null||_===void 0?void 0:_.getLanguageId()),w||(w=_w);let D=await QCi(this._languageService,c,w),O=document.createElement("span");if(O.innerHTML=(b=(h=Ari._ttpTokenizer)===null||h===void 0?void 0:h.createHTML(D))!==null&&b!==void 0?b:D,this._options.editor){let j=this._options.editor.getOption(50);Iv(O,j)}else this._options.codeBlockFontFamily&&(O.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(O.style.fontSize=this._options.codeBlockFontSize),O},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:s=>est(this._openerService,s,i.isTrusted),disposables:o}}}};xL._ttpTokenizer=fP("tokenizeToString",{createHTML(l){return l}});xL=Ari=LWi([ywi(1,up),ywi(2,Gb)],xL)});var FWi,tst,NX,s0t,a0t,Pri,vwi=Ht(()=>{Oki();$r();Pa();va();By();Rg();FC();QLe();gj();bL();kc();aue();vP();Fs();uf();fL();$D();FWi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},tst=function(l,i){return function(o,s){i(o,s,l)}},NX=No,s0t=class extends ex{get _targetWindow(){return Xa(this._target.targetElements[0])}get _targetDocumentElement(){return Xa(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return this._hoverPosition===2?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(i){this._isLocked!==i&&(this._isLocked=i,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(i,o,s,c,_,h){var b,w,D,O,j,F,X,K;super(),this._keybindingService=o,this._configurationService=s,this._openerService=c,this._instantiationService=_,this._accessibilityService=h,this._messageListeners=new pr,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new fn),this._onRequestLayout=this._register(new fn),this._linkHandler=i.linkHandler||(ft=>est(this._openerService,ft,YL(i.content)?i.content.isTrusted:void 0)),this._target="targetElements"in i.target?i.target:new Pri(i.target),this._hoverPointer=!((b=i.appearance)===null||b===void 0)&&b.showPointer?NX("div.workbench-hover-pointer"):void 0,this._hover=this._register(new bfe),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),!((w=i.appearance)===null||w===void 0)&&w.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),!((D=i.appearance)===null||D===void 0)&&D.skipFadeInAnimation&&this._hover.containerDomNode.classList.add("skip-fade-in"),i.additionalClasses&&this._hover.containerDomNode.classList.add(...i.additionalClasses),!((O=i.position)===null||O===void 0)&&O.forcePosition&&(this._forcePosition=!0),i.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=(F=(j=i.position)===null||j===void 0?void 0:j.hoverPosition)!==null&&F!==void 0?F:3,this.onmousedown(this._hover.containerDomNode,ft=>ft.stopPropagation()),this.onkeydown(this._hover.containerDomNode,ft=>{ft.equals(9)&&this.dispose()}),this._register(Tr(this._targetWindow,"blur",()=>this.dispose()));let re=NX("div.hover-row.markdown-hover"),Pe=NX("div.hover-contents");if(typeof i.content=="string")Pe.textContent=i.content,Pe.style.whiteSpace="pre-wrap";else if(Py(i.content))Pe.appendChild(i.content),Pe.classList.add("html-hover-contents");else{let ft=i.content,Ct=this._instantiationService.createInstance(xL,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||MD.fontFamily}),{element:Et}=Ct.render(ft,{actionHandler:{callback:St=>this._linkHandler(St),disposables:this._messageListeners},asyncRenderCallback:()=>{Pe.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});Pe.appendChild(Et)}if(re.appendChild(Pe),this._hover.contentsDomNode.appendChild(re),i.actions&&i.actions.length>0){let ft=NX("div.hover-row.status-bar"),Ct=NX("div.actions");i.actions.forEach(Et=>{let St=this._keybindingService.lookupKeybinding(Et.commandId),Mi=St?St.getLabel():null;YLe.render(Ct,{label:Et.label,commandId:Et.commandId,run:zi=>{Et.run(zi),this.dispose()},iconClass:Et.iconClass},Mi)}),ft.appendChild(Ct),this._hover.containerDomNode.appendChild(ft)}this._hoverContainer=NX("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode);let Le;if(i.actions&&i.actions.length>0?Le=!1:((X=i.persistence)===null||X===void 0?void 0:X.hideOnHover)===void 0?Le=typeof i.content=="string"||YL(i.content)&&!i.content.value.includes("](")&&!i.content.value.includes(""):Le=i.persistence.hideOnHover,Le&&(!((K=i.appearance)===null||K===void 0)&&K.showHoverHint)){let ft=NX("div.hover-row.status-bar"),Ct=NX("div.info");Ct.textContent=de("hoverhint","Hold {0} key to mouse over",uu?"Option":"Alt"),ft.appendChild(Ct),this._hover.containerDomNode.appendChild(ft)}let Je=[...this._target.targetElements];Le||Je.push(this._hoverContainer);let Ye=this._register(new a0t(Je));if(this._register(Ye.onMouseOut(()=>{this._isLocked||this.dispose()})),Le){let ft=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new a0t(ft)),this._register(this._lockMouseTracker.onMouseOut(()=>{this._isLocked||this.dispose()}))}else this._lockMouseTracker=Ye}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;let i=this._hover.containerDomNode,o=this.findLastFocusableChild(this._hover.containerDomNode);if(o){let s=d6e(this._hoverContainer,NX("div")),c=bo(this._hoverContainer,NX("div"));s.tabIndex=0,c.tabIndex=0,this._register(Tr(c,"focus",_=>{i.focus(),_.preventDefault()})),this._register(Tr(s,"focus",_=>{o.focus(),_.preventDefault()}))}}findLastFocusableChild(i){if(i.hasChildNodes())for(let o=0;o=0)return _}let c=this.findLastFocusableChild(s);if(c)return c}}render(i){var o;i.appendChild(this._hoverContainer);let c=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&Xgt(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),(o=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))===null||o===void 0?void 0:o.getAriaLabel());c&&hP(c),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";let i=O=>{let j=pft(O),F=O.getBoundingClientRect();return{top:F.top*j,bottom:F.bottom*j,right:F.right*j,left:F.left*j}},o=this._target.targetElements.map(O=>i(O)),{top:s,right:c,bottom:_,left:h}=o[0],b=c-h,w=_-s,D={top:s,right:c,bottom:_,left:h,width:b,height:w,center:{x:h+b/2,y:s+w/2}};if(this.adjustHorizontalHoverPosition(D),this.adjustVerticalHoverPosition(D),this.adjustHoverMaxHeight(D),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:D.left+=3,D.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:D.left-=3,D.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:D.top+=3,D.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:D.top-=3,D.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px";break}D.center.x=D.left+b/2,D.center.y=D.top+w/2}this.computeXCordinate(D),this.computeYCordinate(D),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(D)),this._hover.onContentsChanged()}computeXCordinate(i){let o=this._hover.containerDomNode.clientWidth+2;this._target.x!==void 0?this._x=this._target.x:this._hoverPosition===1?this._x=i.right:this._hoverPosition===0?this._x=i.left-o:(this._hoverPointer?this._x=i.center.x-this._hover.containerDomNode.clientWidth/2:this._x=i.left,this._x+o>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-o-2,this._targetDocumentElement.clientLeft))),this._xthis._targetWindow.innerHeight&&(this._y=i.bottom)}adjustHorizontalHoverPosition(i){if(this._target.x!==void 0)return;let o=this._hoverPointer?3:0;if(this._forcePosition){let s=o+2;this._hoverPosition===1?this._hover.containerDomNode.style.maxWidth=`${this._targetDocumentElement.clientWidth-i.right-s}px`:this._hoverPosition===0&&(this._hover.containerDomNode.style.maxWidth=`${i.left-s}px`);return}this._hoverPosition===1?this._targetDocumentElement.clientWidth-i.right=this._hover.containerDomNode.clientWidth+o?this._hoverPosition=0:this._hoverPosition=2):this._hoverPosition===0&&(i.left=this._hover.containerDomNode.clientWidth+o?this._hoverPosition=1:this._hoverPosition=2),i.left-this._hover.containerDomNode.clientWidth-o<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1))}adjustVerticalHoverPosition(i){if(this._target.y!==void 0||this._forcePosition)return;let o=this._hoverPointer?3:0;this._hoverPosition===3?i.top-this._hover.containerDomNode.clientHeight-o<0&&(this._hoverPosition=2):this._hoverPosition===2&&i.bottom+this._hover.containerDomNode.clientHeight+o>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(i){let o=this._targetWindow.innerHeight/2;if(this._forcePosition){let s=(this._hoverPointer?3:0)+2;this._hoverPosition===3?o=Math.min(o,i.top-s):this._hoverPosition===2&&(o=Math.min(o,this._targetWindow.innerHeight-i.bottom-s))}if(this._hover.containerDomNode.style.maxHeight=`${o}px`,this._hover.contentsDomNode.clientHeighti.height?this._hoverPointer.style.top=`${i.center.y-(this._y-o)-3}px`:this._hoverPointer.style.top=`${Math.round(o/2)-3}px`;break}case 3:case 2:{this._hoverPointer.classList.add(this._hoverPosition===3?"bottom":"top");let o=this._hover.containerDomNode.clientWidth,s=Math.round(o/2)-3,c=this._x+s;(ci.right)&&(s=i.center.x-this._x-3),this._hoverPointer.style.left=`${s}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};s0t=FWi([tst(1,ju),tst(2,gl),tst(3,Gb),tst(4,qs),tst(5,YS)],s0t);a0t=class extends ex{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(i){super(),this._elements=i,this._isMouseIn=!0,this._onMouseOut=this._register(new fn),this._elements.forEach(o=>this.onmouseover(o,()=>this._onTargetMouseOver(o))),this._elements.forEach(o=>this.onmouseleave(o,()=>this._onTargetMouseLeave(o)))}_onTargetMouseOver(i){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(i)}_onTargetMouseLeave(i){this._isMouseIn=!1,this._evaluateMouseState(i)}_evaluateMouseState(i){this._clearEvaluateMouseStateTimeout(i),this._mouseTimeout=Xa(i).setTimeout(()=>this._fireIfMouseOutside(),0)}_clearEvaluateMouseStateTimeout(i){this._mouseTimeout&&(Xa(i).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}},Pri=class{constructor(i){this._element=i,this.targetElements=[this._element]}dispose(){}}});var w2,ist=Ht(()=>{(function(l){function i(_,h){if(_.start>=h.end||h.start>=_.end)return{start:0,end:0};let b=Math.max(_.start,h.start),w=Math.min(_.end,h.end);return w-b<=0?{start:0,end:0}:{start:b,end:w}}l.intersect=i;function o(_){return _.end-_.start<=0}l.isEmpty=o;function s(_,h){return!o(i(_,h))}l.intersects=s;function c(_,h){let b=[],w={start:_.start,end:Math.min(h.start,_.end)},D={start:Math.max(h.end,_.start),end:_.end};return o(w)||b.push(w),o(D)||b.push(D),b}l.relativeComplement=c})(w2||(w2={}))});var bwi=Ht(()=>{});function MWi(l){let i=l;return!!i&&typeof i.x=="number"&&typeof i.y=="number"}function rPe(l,i,o){let s=o.mode===Dfe.ALIGN?o.offset:o.offset+o.size,c=o.mode===Dfe.ALIGN?o.offset+o.size:o.offset;return o.position===0?i<=l-s?s:i<=c?c-i:Math.max(l-i,0):i<=c?c-i:i<=l-s?s:0}var Dfe,t3e,RWi,Lri=Ht(()=>{$dt();va();$r();uf();ist();bwi();(function(l){l[l.AVOID=0]="AVOID",l[l.ALIGN=1]="ALIGN"})(Dfe||(Dfe={}));t3e=class l extends Ui{constructor(i,o){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=Ui.None,this.toDisposeOnSetContainer=Ui.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=No(".context-view"),y2(this.view),this.setContainer(i,o),this._register(Qs(()=>this.setContainer(null,1)))}setContainer(i,o){var s;this.useFixedPosition=o!==1;let c=this.useShadowDOM;if(this.useShadowDOM=o===3,!(i===this.container&&c===this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(s=this.shadowRootHostElement)===null||s===void 0||s.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),i)){if(this.container=i,this.useShadowDOM){this.shadowRootHostElement=No(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});let h=document.createElement("style");h.textContent=RWi,this.shadowRoot.appendChild(h),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(No("slot"))}else this.container.appendChild(this.view);let _=new pr;l.BUBBLE_UP_EVENTS.forEach(h=>{_.add(Cm(this.container,h,b=>{this.onDOMEvent(b,!1)}))}),l.BUBBLE_DOWN_EVENTS.forEach(h=>{_.add(Cm(this.container,h,b=>{this.onDOMEvent(b,!0)},!0))}),this.toDisposeOnSetContainer=_}}show(i){var o,s,c;this.isVisible()&&this.hide(),I1(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+((o=i.layer)!==null&&o!==void 0?o:0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",A2(this.view),this.toDisposeOnClean=i.render(this.view)||Ui.None,this.delegate=i,this.doLayout(),(c=(s=this.delegate).focus)===null||c===void 0||c.call(s)}getViewElement(){return this.view}layout(){var i,o;if(this.isVisible()){if(this.delegate.canRelayout===!1&&!($A&&t6e.pointerEvents)){this.hide();return}(o=(i=this.delegate)===null||i===void 0?void 0:i.layout)===null||o===void 0||o.call(i),this.doLayout()}}doLayout(){if(!this.isVisible())return;let i=this.delegate.getAnchor(),o;if(Py(i)){let F=Qm(i),X=pft(i);o={top:F.top*X,left:F.left*X,width:F.width*X,height:F.height*X}}else MWi(i)?o={top:i.y,left:i.x,width:i.width||1,height:i.height||2}:o={top:i.posy,left:i.posx,width:2,height:2};let s=zD(this.view),c=rj(this.view),_=this.delegate.anchorPosition||0,h=this.delegate.anchorAlignment||0,b=this.delegate.anchorAxisAlignment||0,w,D,O=c6e();if(b===0){let F={offset:o.top-O.pageYOffset,size:o.height,position:_===0?0:1},X={offset:o.left,size:o.width,position:h===0?0:1,mode:Dfe.ALIGN};w=rPe(O.innerHeight,c,F)+O.pageYOffset,w2.intersects({start:w,end:w+c},{start:F.offset,end:F.offset+F.size})&&(X.mode=Dfe.AVOID),D=rPe(O.innerWidth,s,X)}else{let F={offset:o.left,size:o.width,position:h===0?0:1},X={offset:o.top,size:o.height,position:_===0?0:1,mode:Dfe.ALIGN};D=rPe(O.innerWidth,s,F),w2.intersects({start:D,end:D+s},{start:F.offset,end:F.offset+F.size})&&(X.mode=Dfe.AVOID),w=rPe(O.innerHeight,c,X)+O.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(_===0?"bottom":"top"),this.view.classList.add(h===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);let j=Qm(this.container);this.view.style.top=`${w-(this.useFixedPosition?Qm(this.view).top:j.top)}px`,this.view.style.left=`${D-(this.useFixedPosition?Qm(this.view).left:j.left)}px`,this.view.style.width="initial"}hide(i){let o=this.delegate;this.delegate=null,o?.onHide&&o.onHide(i),this.toDisposeOnClean.dispose(),y2(this.view)}isVisible(){return!!this.delegate}onDOMEvent(i,o){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(i,Xa(i).document.activeElement):o&&!D1(i.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}};t3e.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"];t3e.BUBBLE_DOWN_EVENTS=["click"];RWi=` + :host { + all: initial; /* 1st rule so subsequent properties are reset. */ + } + + .codicon[class*='codicon-'] { + font: normal normal normal 16px/1 codicon; + display: inline-block; + text-decoration: none; + text-rendering: auto; + text-align: center; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + } + + :host { + font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif; + } + + :host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; } + :host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; } + :host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; } + :host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; } + :host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; } + + :host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; } + :host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; } + :host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; } + :host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; } + :host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; } + + :host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; } + :host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; } + :host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; } + :host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; } + :host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; } +`});var BWi,jWi,nst,c0t,Ori=Ht(()=>{Lri();$r();nue();va();BWi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},jWi=function(l,i){return function(o,s){i(o,s,l)}},nst=class extends Ui{constructor(i){super(),this.layoutService=i,this.contextView=this._register(new t3e(this.layoutService.mainContainer,1)),this.layout(),this._register(i.onDidLayoutContainer(()=>this.layout()))}showContextView(i,o,s){let c;o?o===this.layoutService.getContainer(Xa(o))?c=1:s?c=3:c=2:c=1,this.contextView.setContainer(o??this.layoutService.activeContainer,c),this.contextView.show(i);let _={close:()=>{this.openContextView===_&&this.hideContextView()}};return this.openContextView=_,_}layout(){this.contextView.layout()}hideContextView(i){this.contextView.hide(i),this.openContextView=void 0}};nst=BWi([jWi(0,KL)],nst);c0t=class extends nst{getContextViewElement(){return this.contextView.getViewElement()}}});var l0t,Swi=Ht(()=>{va();am();vP();cm();Fs();l0t=class{constructor(i,o,s){this.hoverDelegate=i,this.target=o,this.fadeInAnimation=s}async update(i,o,s){var c;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let _;if(i===void 0||CC(i)||Py(i))_=i;else if(!nde(i.markdown))_=(c=i.markdown)!==null&&c!==void 0?c:i.markdownNotSupportedFallback;else{this._hoverWidget||this.show(de("iconLabel.loading","Loading..."),o,s),this._cancellationTokenSource=new k_;let h=this._cancellationTokenSource.token;if(_=await i.markdown(h),_===void 0&&(_=i.markdownNotSupportedFallback),this.isDisposed||h.isCancellationRequested)return}this.show(_,o,s)}show(i,o,s){let c=this._hoverWidget;if(this.hasContent(i)){let _={content:i,target:this.target,appearance:{showPointer:this.hoverDelegate.placement==="element",skipFadeInAnimation:!this.fadeInAnimation||!!c},position:{hoverPosition:2},...s};this._hoverWidget=this.hoverDelegate.showHover(_,o)}c?.dispose()}hasContent(i){return i?YL(i)?!!i.value:!0:!1}get isDisposed(){var i;return(i=this._hoverWidget)===null||i===void 0?void 0:i.isDisposed}dispose(){var i,o;(i=this._hoverWidget)===null||i===void 0||i.dispose(),(o=this._cancellationTokenSource)===null||o===void 0||o.dispose(!0),this._cancellationTokenSource=void 0}}});function xwi(l){var i;if(l!==void 0)return(i=l?.id)!==null&&i!==void 0?i:l}function Cwi(l,i){for(i=i??Xa(l).document.body;!l.hasAttribute("custom-hover")&&l!==i;)l=l.parentElement;return l}var WWi,rst,Fri,Mri,kwi=Ht(()=>{HD();_g();Sv();rue();yP();kc();vwi();$r();va();By();jD();fL();nue();GA();Ori();Swi();Bu();WWi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},rst=function(l,i){return function(o,s){i(o,s,l)}},Fri=class extends Ui{constructor(i,o,s,c,_){super(),this._instantiationService=i,this._keybindingService=s,this._layoutService=c,this._accessibilityService=_,this._existingHovers=new Map,o.onDidShowContextMenu(()=>this.hideHover()),this._contextViewHandler=this._register(new nst(this._layoutService))}showHover(i,o,s){var c,_,h,b;if(xwi(this._currentHoverOptions)===xwi(i)||this._currentHover&&(!((_=(c=this._currentHoverOptions)===null||c===void 0?void 0:c.persistence)===null||_===void 0)&&_.sticky))return;this._currentHoverOptions=i,this._lastHoverOptions=i;let w=i.trapFocus||this._accessibilityService.isScreenReaderOptimized(),D=qb();s||(w&&D?D.classList.contains("monaco-hover")||(this._lastFocusedElementBeforeOpen=D):this._lastFocusedElementBeforeOpen=void 0);let O=new pr,j=this._instantiationService.createInstance(s0t,i);if(!((h=i.persistence)===null||h===void 0)&&h.sticky&&(j.isLocked=!0),j.onDispose(()=>{var F,X;((F=this._currentHover)===null||F===void 0?void 0:F.domNode)&&gft(this._currentHover.domNode)&&((X=this._lastFocusedElementBeforeOpen)===null||X===void 0||X.focus()),this._currentHoverOptions===i&&(this._currentHoverOptions=void 0),O.dispose()},void 0,O),!i.container){let F=Py(i.target)?i.target:i.target.targetElements[0];i.container=this._layoutService.getContainer(Xa(F))}if(this._contextViewHandler.showContextView(new Mri(j,o),i.container),j.onRequestLayout(()=>this._contextViewHandler.layout(),void 0,O),!((b=i.persistence)===null||b===void 0)&&b.sticky)O.add(Tr(Xa(i.container).document,$o.MOUSE_DOWN,F=>{D1(F.target,j.domNode)||this.doHideHover()}));else{if("targetElements"in i.target)for(let X of i.target.targetElements)O.add(Tr(X,$o.CLICK,()=>this.hideHover()));else O.add(Tr(i.target,$o.CLICK,()=>this.hideHover()));let F=qb();if(F){let X=Xa(F).document;O.add(Tr(F,$o.KEY_DOWN,K=>{var re;return this._keyDown(K,j,!!(!((re=i.persistence)===null||re===void 0)&&re.hideOnKeyDown))})),O.add(Tr(X,$o.KEY_DOWN,K=>{var re;return this._keyDown(K,j,!!(!((re=i.persistence)===null||re===void 0)&&re.hideOnKeyDown))})),O.add(Tr(F,$o.KEY_UP,K=>this._keyUp(K,j))),O.add(Tr(X,$o.KEY_UP,K=>this._keyUp(K,j)))}}if("IntersectionObserver"in D_){let F=new IntersectionObserver(K=>this._intersectionChange(K,j),{threshold:0}),X="targetElements"in i.target?i.target.targetElements[0]:i.target;F.observe(X),O.add(Qs(()=>F.disconnect()))}return this._currentHover=j,j}hideHover(){var i;!((i=this._currentHover)===null||i===void 0)&&i.isLocked||!this._currentHoverOptions||this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(i,o){i[i.length-1].isIntersecting||o.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showHover(this._lastHoverOptions,!0,!0)}_keyDown(i,o,s){var c,_;if(i.key==="Alt"){o.isLocked=!0;return}let h=new w_(i);this._keybindingService.resolveKeyboardEvent(h).getSingleModifierDispatchChords().some(w=>!!w)||this._keybindingService.softDispatch(h,h.target).kind!==0||s&&(!(!((c=this._currentHoverOptions)===null||c===void 0)&&c.trapFocus)||i.key!=="Tab")&&(this.hideHover(),(_=this._lastFocusedElementBeforeOpen)===null||_===void 0||_.focus())}_keyUp(i,o){var s;i.key==="Alt"&&(o.isLocked=!1,o.isMouseIn||(this.hideHover(),(s=this._lastFocusedElementBeforeOpen)===null||s===void 0||s.focus()))}setupUpdatableHover(i,o,s,c){o.setAttribute("custom-hover","true"),o.title!==""&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",o.title),o.title="");let _,h,b=(Ye,ft)=>{var Ct;let Et=h!==void 0;Ye&&(h?.dispose(),h=void 0),ft&&(_?.dispose(),_=void 0),Et&&((Ct=i.onDidHideHover)===null||Ct===void 0||Ct.call(i),h=void 0)},w=(Ye,ft,Ct,Et)=>new MC(async()=>{(!h||h.isDisposed)&&(h=new l0t(i,Ct||o,Ye>0),await h.update(typeof s=="function"?s():s,ft,{...c,trapFocus:Et}))},Ye),D=!1,O=Tr(o,$o.MOUSE_DOWN,()=>{D=!0,b(!0,!0)},!0),j=Tr(o,$o.MOUSE_UP,()=>{D=!1},!0),F=Tr(o,$o.MOUSE_LEAVE,Ye=>{D=!1,b(!1,Ye.fromElement===o)},!0),X=Ye=>{if(_)return;let ft=new pr,Ct={targetElements:[o],dispose:()=>{}};if(i.placement===void 0||i.placement==="mouse"){let Et=St=>{Ct.x=St.x+10,Py(St.target)&&Cwi(St.target,o)!==o&&b(!0,!0)};ft.add(Tr(o,$o.MOUSE_MOVE,Et,!0))}_=ft,!(Py(Ye.target)&&Cwi(Ye.target,o)!==o)&&ft.add(w(i.delay,!1,Ct))},K=Tr(o,$o.MOUSE_OVER,X,!0),re=()=>{if(D||_)return;let Ye={targetElements:[o],dispose:()=>{}},ft=new pr,Ct=()=>b(!0,!0);ft.add(Tr(o,$o.BLUR,Ct,!0)),ft.add(w(i.delay,!1,Ye)),_=ft},Pe,Le=o.tagName.toLowerCase();Le!=="input"&&Le!=="textarea"&&(Pe=Tr(o,$o.FOCUS,re,!0));let Je={show:Ye=>{b(!1,!0),w(0,Ye,void 0,Ye)},hide:()=>{b(!0,!0)},update:async(Ye,ft)=>{s=Ye,await h?.update(s,void 0,ft)},dispose:()=>{this._existingHovers.delete(o),K.dispose(),F.dispose(),O.dispose(),j.dispose(),Pe?.dispose(),b(!0,!0)}};return this._existingHovers.set(o,Je),Je}triggerUpdatableHover(i){let o=this._existingHovers.get(i);o&&o.show(!0)}dispose(){this._existingHovers.forEach(i=>i.dispose()),super.dispose()}};Fri=WWi([rst(0,qs),rst(1,IC),rst(2,ju),rst(3,KL),rst(4,YS)],Fri);Mri=class{get anchorPosition(){return this._hover.anchor}constructor(i,o=!1){this._hover=i,this._focus=o,this.layer=1}render(i){return this._hover.render(i),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}};Ld(yL,Fri,1);WC((l,i)=>{let o=l.getColor(X_t);o&&(i.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${o.transparent(.5)}; }`),i.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${o.transparent(.5)}; }`))})});var AX,i3e,Ife,u0t,oPe=Ht(()=>{kc();Lh();cm();AX=Wc("IWorkspaceEditService"),i3e=class{constructor(i){this.metadata=i}static convert(i){return i.edits.map(o=>{if(Ife.is(o))return Ife.lift(o);if(u0t.is(o))return u0t.lift(o);throw new Error("Unsupported edit")})}},Ife=class l extends i3e{static is(i){return i instanceof l?!0:OC(i)&&Ka.isUri(i.resource)&&OC(i.textEdit)}static lift(i){return i instanceof l?i:new l(i.resource,i.textEdit,i.versionId,i.metadata)}constructor(i,o,s=void 0,c){super(c),this.resource=i,this.textEdit=o,this.versionId=s}},u0t=class l extends i3e{static is(i){return i instanceof l?!0:OC(i)&&(!!i.newResource||!!i.oldResource)}static lift(i){return i instanceof l?i:new l(i.oldResource,i.newResource,i.options,i.metadata)}constructor(i,o,s={},c){super(c),this.oldResource=i,this.newResource=o,this.options=s}}});var ZD,Rri=Ht(()=>{ZD={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0}});function zWi(l){return typeof l.type<"u"||typeof l.anyOf<"u"}function wwi(){return d0t===null&&(d0t=Object.create(null),Object.keys(f0t.properties).forEach(l=>{d0t[l]=!0})),d0t}function Twi(l){return wwi()[`editor.${l}`]||!1}function Ewi(l){return wwi()[`diffEditor.${l}`]||!1}var n3e,f0t,d0t,VWi,_0t=Ht(()=>{Rri();FC();nnt();Fs();UK();RC();n3e=Object.freeze({id:"editor",order:5,type:"object",title:de("editorConfigurationTitle","Editor"),scope:5}),f0t={...n3e,properties:{"editor.tabSize":{type:"number",default:_2.tabSize,minimum:1,markdownDescription:de("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:de("indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:_2.insertSpaces,markdownDescription:de("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:_2.detectIndentation,markdownDescription:de("detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:_2.trimAutoWhitespace,description:de("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:_2.largeFileOptimizations,description:de("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[de("wordBasedSuggestions.off","Turn off Word Based Suggestions."),de("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),de("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),de("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:de("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[de("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),de("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),de("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:de("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:de("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:de("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!1,description:de("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:de("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:de("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:de("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:de("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:de("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:de("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:de("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:de("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:ZD.maxComputationTime,description:de("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:ZD.maxFileSize,description:de("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:ZD.renderSideBySide,description:de("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:ZD.renderSideBySideInlineBreakpoint,description:de("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:ZD.useInlineViewWhenSpaceIsLimited,description:de("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:ZD.renderMarginRevertIcon,description:de("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:ZD.renderGutterMenu,description:de("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:ZD.ignoreTrimWhitespace,description:de("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:ZD.renderIndicators,description:de("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:ZD.diffCodeLens,description:de("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:ZD.diffWordWrap,markdownEnumDescriptions:[de("wordWrap.off","Lines will never wrap."),de("wordWrap.on","Lines will wrap at the viewport width."),de("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:ZD.diffAlgorithm,markdownEnumDescriptions:[de("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),de("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:ZD.hideUnchangedRegions.enabled,markdownDescription:de("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:ZD.hideUnchangedRegions.revealLineCount,markdownDescription:de("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:ZD.hideUnchangedRegions.minimumLineCount,markdownDescription:de("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:ZD.hideUnchangedRegions.contextLineCount,markdownDescription:de("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:ZD.experimental.showMoves,markdownDescription:de("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:ZD.experimental.showEmptyDecorations,description:de("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")}}};for(let l of lde){let i=l.schema;if(typeof i<"u")if(zWi(i))f0t.properties[`editor.${l.name}`]=i;else for(let o in i)Object.hasOwnProperty.call(i,o)&&(f0t.properties[o]=i[o])}d0t=null;VWi=q_.as(uI.Configuration);VWi.registerConfiguration(f0t)});var eh,A7=Ht(()=>{ca();eh=class{static insert(i,o){return{range:new Vt(i.lineNumber,i.column,i.lineNumber,i.column),text:o,forceMoveMarkers:!0}}static delete(i){return{range:i,text:null}}static replace(i,o){return{range:i,text:o}}static replaceMove(i,o){return{range:i,text:o,forceMoveMarkers:!0}}}});function p0t(l){return Object.isFrozen(l)?l:sgi(l)}var bP,Bri,jri,ost,m0t,Wri=Ht(()=>{su();UD();oP();cm();Lh();Rg();UK();RC();bP=class l{static createEmptyModel(i){return new l({},[],[],void 0,i)}constructor(i,o,s,c,_){this._contents=i,this._keys=o,this._overrides=s,this.raw=c,this.logService=_,this.overrideConfigurations=new Map}get rawConfiguration(){var i;if(!this._rawConfiguration)if(!((i=this.raw)===null||i===void 0)&&i.length){let o=this.raw.map(s=>{if(s instanceof l)return s;let c=new Bri("",this.logService);return c.parseRaw(s),c.configurationModel});this._rawConfiguration=o.reduce((s,c)=>c===s?c:s.merge(c),o[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(i){return i?LZt(this.contents,i):this.contents}inspect(i,o){let s=this;return{get value(){return p0t(s.rawConfiguration.getValue(i))},get override(){return o?p0t(s.rawConfiguration.getOverrideValue(i,o)):void 0},get merged(){return p0t(o?s.rawConfiguration.override(o).getValue(i):s.rawConfiguration.getValue(i))},get overrides(){let c=[];for(let{contents:_,identifiers:h,keys:b}of s.rawConfiguration.overrides){let w=new l(_,b,[],void 0,s.logService).getValue(i);w!==void 0&&c.push({identifiers:h,value:w})}return c.length?p0t(c):void 0}}}getOverrideValue(i,o){let s=this.getContentsForOverrideIdentifer(o);return s?i?LZt(s,i):s:void 0}override(i){let o=this.overrideConfigurations.get(i);return o||(o=this.createOverrideConfigurationModel(i),this.overrideConfigurations.set(i,o)),o}merge(...i){var o,s;let c=Hj(this.contents),_=Hj(this.overrides),h=[...this.keys],b=!((o=this.raw)===null||o===void 0)&&o.length?[...this.raw]:[this];for(let w of i)if(b.push(...!((s=w.raw)===null||s===void 0)&&s.length?w.raw:[w]),!w.isEmpty()){this.mergeContents(c,w.contents);for(let D of w.overrides){let[O]=_.filter(j=>Op(j.identifiers,D.identifiers));O?(this.mergeContents(O.contents,D.contents),O.keys.push(...D.keys),O.keys=PL(O.keys)):_.push(Hj(D))}for(let D of w.keys)h.indexOf(D)===-1&&h.push(D)}return new l(c,h,_,b.every(w=>w instanceof l)?void 0:b,this.logService)}createOverrideConfigurationModel(i){let o=this.getContentsForOverrideIdentifer(i);if(!o||typeof o!="object"||!Object.keys(o).length)return this;let s={};for(let c of PL([...Object.keys(this.contents),...Object.keys(o)])){let _=this.contents[c],h=o[c];h&&(typeof _=="object"&&typeof h=="object"?(_=Hj(_),this.mergeContents(_,h)):_=h),s[c]=_}return new l(s,this.keys,this.overrides,void 0,this.logService)}mergeContents(i,o){for(let s of Object.keys(o)){if(s in i&&OC(i[s])&&OC(o[s])){this.mergeContents(i[s],o[s]);continue}i[s]=Hj(o[s])}}getContentsForOverrideIdentifer(i){let o=null,s=null,c=_=>{_&&(s?this.mergeContents(s,_):s=Hj(_))};for(let _ of this.overrides)_.identifiers.length===1&&_.identifiers[0]===i?o=_.contents:_.identifiers.includes(i)&&c(_.contents);return c(o),s}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(i,o){this.updateValue(i,o,!0)}setValue(i,o){this.updateValue(i,o,!1)}removeValue(i){let o=this.keys.indexOf(i);o!==-1&&(this.keys.splice(o,1),xyi(this.contents,i),Dle.test(i)&&this.overrides.splice(this.overrides.findIndex(s=>Op(s.identifiers,trt(i))),1))}updateValue(i,o,s){PZt(this.contents,i,o,c=>this.logService.error(c)),s=s||this.keys.indexOf(i)===-1,s&&this.keys.push(i),Dle.test(i)&&this.overrides.push({identifiers:trt(i),keys:Object.keys(this.contents[i]),contents:Qft(this.contents[i],c=>this.logService.error(c))})}},Bri=class{constructor(i,o){this._name=i,this.logService=o,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||bP.createEmptyModel(this.logService)}parseRaw(i,o){this._raw=i;let{contents:s,keys:c,overrides:_,restricted:h,hasExcludedProperties:b}=this.doParseRaw(i,o);this._configurationModel=new bP(s,c,_,b?[i]:void 0,this.logService),this._restrictedConfigurations=h||[]}doParseRaw(i,o){let s=q_.as(uI.Configuration).getConfigurationProperties(),c=this.filter(i,s,!0,o);i=c.raw;let _=Qft(i,w=>this.logService.error(`Conflict in settings file ${this._name}: ${w}`)),h=Object.keys(i),b=this.toOverrides(i,w=>this.logService.error(`Conflict in settings file ${this._name}: ${w}`));return{contents:_,keys:h,overrides:b,restricted:c.restricted,hasExcludedProperties:c.hasExcludedProperties}}filter(i,o,s,c){var _,h,b;let w=!1;if(!c?.scopes&&!c?.skipRestricted&&!(!((_=c?.exclude)===null||_===void 0)&&_.length))return{raw:i,restricted:[],hasExcludedProperties:w};let D={},O=[];for(let j in i)if(Dle.test(j)&&s){let F=this.filter(i[j],o,!1,c);D[j]=F.raw,w=w||F.hasExcludedProperties,O.push(...F.restricted)}else{let F=o[j],X=F?typeof F.scope<"u"?F.scope:3:void 0;F?.restricted&&O.push(j),!(!((h=c.exclude)===null||h===void 0)&&h.includes(j))&&(!((b=c.include)===null||b===void 0)&&b.includes(j)||(X===void 0||c.scopes===void 0||c.scopes.includes(X))&&!(c.skipRestricted&&F?.restricted))?D[j]=i[j]:w=!0}return{raw:D,restricted:O,hasExcludedProperties:w}}toOverrides(i,o){let s=[];for(let c of Object.keys(i))if(Dle.test(c)){let _={};for(let h in i[c])_[h]=i[c][h];s.push({identifiers:trt(c),keys:Object.keys(_),contents:Qft(_,o)})}return s}},jri=class{constructor(i,o,s,c,_,h,b,w,D,O,j,F,X){this.key=i,this.overrides=o,this._value=s,this.overrideIdentifiers=c,this.defaultConfiguration=_,this.policyConfiguration=h,this.applicationConfiguration=b,this.userConfiguration=w,this.localUserConfiguration=D,this.remoteUserConfiguration=O,this.workspaceConfiguration=j,this.folderConfigurationModel=F,this.memoryConfigurationModel=X}toInspectValue(i){return i?.value!==void 0||i?.override!==void 0||i?.overrides!==void 0?i:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}},ost=class l{constructor(i,o,s,c,_,h,b,w,D,O){this._defaultConfiguration=i,this._policyConfiguration=o,this._applicationConfiguration=s,this._localUserConfiguration=c,this._remoteUserConfiguration=_,this._workspaceConfiguration=h,this._folderConfigurations=b,this._memoryConfiguration=w,this._memoryConfigurationByResource=D,this.logService=O,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new B1,this._userConfiguration=null}getValue(i,o,s){return this.getConsolidatedConfigurationModel(i,o,s).getValue(i)}updateValue(i,o,s={}){let c;s.resource?(c=this._memoryConfigurationByResource.get(s.resource),c||(c=bP.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(s.resource,c))):c=this._memoryConfiguration,o===void 0?c.removeValue(i):c.setValue(i,o),s.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(i,o,s){let c=this.getConsolidatedConfigurationModel(i,o,s),_=this.getFolderConfigurationModelForResource(o.resource,s),h=o.resource?this._memoryConfigurationByResource.get(o.resource)||this._memoryConfiguration:this._memoryConfiguration,b=new Set;for(let w of c.overrides)for(let D of w.identifiers)c.getOverrideValue(i,D)!==void 0&&b.add(D);return new jri(i,o,c.getValue(i),b.size?[...b]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,s?this._workspaceConfiguration:void 0,_||void 0,h)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(i,o,s){let c=this.getConsolidatedConfigurationModelForResource(o,s);return o.overrideIdentifier&&(c=c.override(o.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(i)!==void 0&&(c=c.merge(this._policyConfiguration)),c}getConsolidatedConfigurationModelForResource({resource:i},o){let s=this.getWorkspaceConsolidatedConfiguration();if(o&&i){let c=o.getFolder(i);c&&(s=this.getFolderConsolidatedConfiguration(c.uri)||s);let _=this._memoryConfigurationByResource.get(i);_&&(s=s.merge(_))}return s}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(i){let o=this._foldersConsolidatedConfigurations.get(i);if(!o){let s=this.getWorkspaceConsolidatedConfiguration(),c=this._folderConfigurations.get(i);c?(o=s.merge(c),this._foldersConsolidatedConfigurations.set(i,o)):o=s}return o}getFolderConfigurationModelForResource(i,o){if(o&&i){let s=o.getFolder(i);if(s)return this._folderConfigurations.get(s.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((i,o)=>{let{contents:s,overrides:c,keys:_}=this._folderConfigurations.get(o);return i.push([o,{contents:s,overrides:c,keys:_}]),i},[])}}static parse(i,o){let s=this.parseConfigurationModel(i.defaults,o),c=this.parseConfigurationModel(i.policy,o),_=this.parseConfigurationModel(i.application,o),h=this.parseConfigurationModel(i.user,o),b=this.parseConfigurationModel(i.workspace,o),w=i.folders.reduce((D,O)=>(D.set(Ka.revive(O[0]),this.parseConfigurationModel(O[1],o)),D),new B1);return new l(s,c,_,h,bP.createEmptyModel(o),b,w,bP.createEmptyModel(o),new B1,o)}static parseConfigurationModel(i,o){return new bP(i.contents,i.keys,i.overrides,void 0,o)}},m0t=class{constructor(i,o,s,c,_){this.change=i,this.previous=o,this.currentConfiguraiton=s,this.currentWorkspace=c,this.logService=_,this._marker=` +`,this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0;for(let h of i.keys)this.affectedKeys.add(h);for(let[,h]of i.overrides)for(let b of h)this.affectedKeys.add(b);this._affectsConfigStr=this._marker;for(let h of this.affectedKeys)this._affectsConfigStr+=h+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=ost.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(i,o){var s;let c=this._marker+i,_=this._affectsConfigStr.indexOf(c);if(_<0)return!1;let h=_+c.length;if(h>=this._affectsConfigStr.length)return!1;let b=this._affectsConfigStr.charCodeAt(h);if(b!==this._markerCode1&&b!==this._markerCode2)return!1;if(o){let w=this.previousConfiguration?this.previousConfiguration.getValue(i,o,(s=this.previous)===null||s===void 0?void 0:s.workspace):void 0,D=this.currentConfiguraiton.getValue(i,o,this.currentWorkspace);return!D2(w,D)}return!0}}});function UWi(l,i,o){return{kind:2,commandId:l,commandArgs:i,isBubble:o}}function Dwi(l){return l?`${l.serialize()}`:"no when condition"}function Iwi(l){return l.extensionId?l.isBuiltinExtension?`built-in extension ${l.extensionId}`:`user extension ${l.extensionId}`:l.isDefault?"built-in":"user"}var sst,HWi,h0t,zri=Ht(()=>{du();sst={kind:0},HWi={kind:1};h0t=class l{constructor(i,o,s){var c;this._log=s,this._defaultKeybindings=i,this._defaultBoundCommands=new Map;for(let _ of i){let h=_.command;h&&h.charAt(0)!=="-"&&this._defaultBoundCommands.set(h,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=l.handleRemovals([].concat(i).concat(o));for(let _=0,h=this._keybindings.length;_"u"){this._map.set(i,[o]),this._addToLookupMap(o);return}for(let c=s.length-1;c>=0;c--){let _=s[c];if(_.command===o.command)continue;let h=!0;for(let b=1;b<_.chords.length&&b"u"?(o=[i],this._lookupMap.set(i.command,o)):o.push(i)}_removeFromLookupMap(i){if(!i.command)return;let o=this._lookupMap.get(i.command);if(!(typeof o>"u")){for(let s=0,c=o.length;s"u"||s.length===0)return null;if(s.length===1)return s[0];for(let c=s.length-1;c>=0;c--){let _=s[c];if(o.contextMatchesRules(_.when))return _}return s[s.length-1]}resolve(i,o,s){let c=[...o,s];this._log(`| Resolving ${c}`);let _=this._map.get(c[0]);if(_===void 0)return this._log("\\ No keybinding entries."),sst;let h=null;if(c.length<2)h=_;else{h=[];for(let w=0,D=_.length;wO.chords.length)continue;let j=!0;for(let F=1;F=0;s--){let c=o[s];if(l._contextMatchesRules(i,c.when))return c}return null}static _contextMatchesRules(i,o){return o?o.evaluate(i):!0}}});var JWi,g0t,Nfe,Nwi=Ht(()=>{Bu();Pl();Pa();Iti();$r();Fs();zri();JWi=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/,g0t=class extends Ui{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Yo.None}get inChordMode(){return this._currentChords.length>0}constructor(i,o,s,c,_){super(),this._contextKeyService=i,this._commandService=o,this._telemetryService=s,this._notificationService=c,this._logService=_,this._onDidUpdateKeybindings=this._register(new fn),this._currentChords=[],this._currentChordChecker=new Cde,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=Nfe.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new MC,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(i){this._logging&&this._logService.info(`[KeybindingService]: ${i}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(i,o){let s=this._getResolver().lookupPrimaryKeybinding(i,o||this._contextKeyService);if(s)return s.resolvedKeybinding}dispatchEvent(i,o){return this._dispatch(i,o)}softDispatch(i,o){this._log("/ Soft dispatching keyboard event");let s=this.resolveKeyboardEvent(i);if(s.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),sst;let[c]=s.getDispatchChords();if(c===null)return this._log("\\ Keyboard event cannot be dispatched"),sst;let _=this._contextKeyService.getContext(o),h=this._currentChords.map(({keypress:b})=>b);return this._getResolver().resolve(_,h,c)}_scheduleLeaveChordMode(){let i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(i,o){switch(this._currentChords.push({keypress:i,label:o}),this._currentChords.length){case 0:throw V4e("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(de("first.chord","({0}) was pressed. Waiting for second key of chord...",o));break;default:{let s=this._currentChords.map(({label:c})=>c).join(", ");this._currentChordStatusMessage=this._notificationService.status(de("next.chord","({0}) was pressed. Waiting for next key of chord...",s))}}this._scheduleLeaveChordMode(),wAe.enabled&&wAe.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],wAe.enable()}_dispatch(i,o){return this._doDispatch(this.resolveKeyboardEvent(i),o,!1)}_singleModifierDispatch(i,o){let s=this.resolveKeyboardEvent(i),[c]=s.getSingleModifierDispatchChords();if(c)return this._ignoreSingleModifiers.has(c)?(this._log(`+ Ignoring single modifier ${c} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=Nfe.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=Nfe.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${c}.`),this._currentSingleModifier=c,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):c===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${c} ${c}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(s,o,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${c}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));let[_]=s.getChords();return this._ignoreSingleModifiers=new Nfe(_),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(i,o,s=!1){var c;let _=!1;if(i.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let h=null,b=null;if(s){let[j]=i.getSingleModifierDispatchChords();h=j,b=j?[j]:[]}else[h]=i.getDispatchChords(),b=this._currentChords.map(({keypress:j})=>j);if(h===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),_;let w=this._contextKeyService.getContext(o),D=i.getLabel(),O=this._getResolver().resolve(w,b,h);switch(O.kind){case 0:{if(this._logService.trace("KeybindingService#dispatch",D,"[ No matching keybinding ]"),this.inChordMode){let j=this._currentChords.map(({label:F})=>F).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${j}, ${D}".`),this._notificationService.status(de("missing.chord","The key combination ({0}, {1}) is not a command.",j,D),{hideAfter:10*1e3}),this._leaveChordMode(),_=!0}return _}case 1:return this._logService.trace("KeybindingService#dispatch",D,"[ Several keybindings match - more chords needed ]"),_=!0,this._expectAnotherChord(h,D),this._log(this._currentChords.length===1?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),_;case 2:{if(this._logService.trace("KeybindingService#dispatch",D,`[ Will dispatch command ${O.commandId} ]`),O.commandId===null||O.commandId===""){if(this.inChordMode){let j=this._currentChords.map(({label:F})=>F).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${j}, ${D}".`),this._notificationService.status(de("missing.chord","The key combination ({0}, {1}) is not a command.",j,D),{hideAfter:10*1e3}),this._leaveChordMode(),_=!0}}else{this.inChordMode&&this._leaveChordMode(),O.isBubble||(_=!0),this._log(`+ Invoking command ${O.commandId}.`),this._currentlyDispatchingCommandId=O.commandId;try{typeof O.commandArgs>"u"?this._commandService.executeCommand(O.commandId).then(void 0,j=>this._notificationService.warn(j)):this._commandService.executeCommand(O.commandId,O.commandArgs).then(void 0,j=>this._notificationService.warn(j))}finally{this._currentlyDispatchingCommandId=null}JWi.test(O.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:O.commandId,from:"keybinding",detail:(c=i.getUserSettingsLabel())!==null&&c!==void 0?c:void 0})}return _}}}mightProducePrintableCharacter(i){return i.ctrlKey||i.metaKey?!1:i.keyCode>=31&&i.keyCode<=56||i.keyCode>=21&&i.keyCode<=30}},Nfe=class{constructor(i){this._ctrlKey=i?i.ctrlKey:!1,this._shiftKey=i?i.shiftKey:!1,this._altKey=i?i.altKey:!1,this._metaKey=i?i.metaKey:!1}has(i){switch(i){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}};Nfe.EMPTY=new Nfe(null)});function y0t(l){let i=[];for(let o=0,s=l.length;o{ast=class{constructor(i,o,s,c,_,h,b){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=i,this.chords=i?y0t(i.getDispatchChords()):[],i&&this.chords.length===0&&(this.chords=y0t(i.getSingleModifierDispatchChords())),this.bubble=o?o.charCodeAt(0)===94:!1,this.command=this.bubble?o.substr(1):o,this.commandArgs=s,this.when=c,this.isDefault=_,this.extensionId=h,this.isBuiltinExtension=b}}});function qWi(l,i,o){if(i===null)return"";let s=[];return l.ctrlKey&&s.push(o.ctrlKey),l.shiftKey&&s.push(o.shiftKey),l.altKey&&s.push(o.altKey),l.metaKey&&s.push(o.metaKey),i!==""&&s.push(i),s.join(o.separator)}var r3e,o3e,Awi,Pwi,Lwi,v0t=Ht(()=>{Fs();r3e=class{constructor(i,o,s=o){this.modifierLabels=[null],this.modifierLabels[2]=i,this.modifierLabels[1]=o,this.modifierLabels[3]=s}toLabel(i,o,s){if(o.length===0)return null;let c=[];for(let _=0,h=o.length;_{Pl();v0t();LNe();b0t=class extends Xdt{constructor(i,o){if(super(),o.length===0)throw RD("chords");this._os=i,this._chords=o}getLabel(){return o3e.toLabel(this._os,this._chords,i=>this._getLabel(i))}getAriaLabel(){return Awi.toLabel(this._os,this._chords,i=>this._getAriaLabel(i))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:Pwi.toLabel(this._os,this._chords,i=>this._getElectronAccelerator(i))}getUserSettingsLabel(){return Lwi.toLabel(this._os,this._chords,i=>this._getUserSettingsLabel(i))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(i=>this._getChord(i))}_getChord(i){return new Kdt(i.ctrlKey,i.shiftKey,i.altKey,i.metaKey,this._getLabel(i),this._getAriaLabel(i))}getDispatchChords(){return this._chords.map(i=>this._getChordDispatch(i))}getSingleModifierDispatchChords(){return this._chords.map(i=>this._getSingleModifierChordDispatch(i))}}});var cst,Fwi=Ht(()=>{p7();LNe();Owi();Vri();cst=class l extends b0t{constructor(i,o){super(o,i)}_keyCodeToUILabel(i){if(this._os===2)switch(i){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return Uj.toString(i)}_getLabel(i){return i.isDuplicateModifierCase()?"":this._keyCodeToUILabel(i.keyCode)}_getAriaLabel(i){return i.isDuplicateModifierCase()?"":Uj.toString(i.keyCode)}_getElectronAccelerator(i){return Uj.toElectronAccelerator(i.keyCode)}_getUserSettingsLabel(i){if(i.isDuplicateModifierCase())return"";let o=Uj.toUserSettingsUS(i.keyCode);return o&&o.toLowerCase()}_getChordDispatch(i){return l.getDispatchStr(i)}static getDispatchStr(i){if(i.isModifierKey())return null;let o="";return i.ctrlKey&&(o+="ctrl+"),i.shiftKey&&(o+="shift+"),i.altKey&&(o+="alt+"),i.metaKey&&(o+="meta+"),o+=Uj.toString(i.keyCode),o}_getSingleModifierChordDispatch(i){return i.keyCode===5&&!i.shiftKey&&!i.altKey&&!i.metaKey?"ctrl":i.keyCode===4&&!i.ctrlKey&&!i.altKey&&!i.metaKey?"shift":i.keyCode===6&&!i.ctrlKey&&!i.shiftKey&&!i.metaKey?"alt":i.keyCode===57&&!i.ctrlKey&&!i.shiftKey&&!i.altKey?"meta":null}static _scanCodeToKeyCode(i){let o=Aut[i];if(o!==-1)return o;switch(i){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(i){if(!i)return null;if(i instanceof tj)return i;let o=this._scanCodeToKeyCode(i.scanCode);return o===0?null:new tj(i.ctrlKey,i.shiftKey,i.altKey,i.metaKey,o)}static resolveKeybinding(i,o){let s=y0t(i.chords.map(c=>this._toKeyCodeChord(c)));return s.length>0?[new l(s,o)]:[]}}});var iK,s3e=Ht(()=>{kc();iK=Wc("labelService")});var S0t,N6n,KF,XF,xW=Ht(()=>{kc();S0t=Wc("progressService"),N6n=Object.freeze({total(){},worked(){},done(){}}),KF=class{constructor(i){this.callback=i}report(i){this._value=i,this.callback(this._value)}};KF.None=Object.freeze({report(){}});XF=Wc("editorProgressService")});var Hri,Uri,Jri,qri,a3e,sPe,x0t=Ht(()=>{Bl();Hri=class{constructor(){this._value="",this._pos=0}reset(i){return this._value=i,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;o--,this._valueLen--){let s=this._value.charCodeAt(o);if(!(s===47||this._splitOnBackslash&&s===92))break}return this.next()}hasNext(){return this._to!1,o=()=>!1){return new l(new qri(i,o))}static forStrings(){return new l(new Hri)}static forConfigKeys(){return new l(new Uri)}constructor(i){this._iter=i}clear(){this._root=void 0}set(i,o){let s=this._iter.reset(i),c;this._root||(this._root=new a3e,this._root.segment=s.value());let _=[];for(c=this._root;;){let b=s.cmp(c.segment);if(b>0)c.left||(c.left=new a3e,c.left.segment=s.value()),_.push([-1,c]),c=c.left;else if(b<0)c.right||(c.right=new a3e,c.right.segment=s.value()),_.push([1,c]),c=c.right;else if(s.hasNext())s.next(),c.mid||(c.mid=new a3e,c.mid.segment=s.value()),_.push([0,c]),c=c.mid;else break}let h=c.value;c.value=o,c.key=i;for(let b=_.length-1;b>=0;b--){let w=_[b][1];w.updateHeight();let D=w.balanceFactor();if(D<-1||D>1){let O=_[b][0],j=_[b+1][0];if(O===1&&j===1)_[b][1]=w.rotateLeft();else if(O===-1&&j===-1)_[b][1]=w.rotateRight();else if(O===1&&j===-1)w.right=_[b+1][1]=_[b+1][1].rotateRight(),_[b][1]=w.rotateLeft();else if(O===-1&&j===1)w.left=_[b+1][1]=_[b+1][1].rotateLeft(),_[b][1]=w.rotateRight();else throw new Error;if(b>0)switch(_[b-1][0]){case-1:_[b-1][1].left=_[b][1];break;case 1:_[b-1][1].right=_[b][1];break;case 0:_[b-1][1].mid=_[b][1];break}else this._root=_[0][1]}}return h}get(i){var o;return(o=this._getNode(i))===null||o===void 0?void 0:o.value}_getNode(i){let o=this._iter.reset(i),s=this._root;for(;s;){let c=o.cmp(s.segment);if(c>0)s=s.left;else if(c<0)s=s.right;else if(o.hasNext())o.next(),s=s.mid;else break}return s}has(i){let o=this._getNode(i);return!(o?.value===void 0&&o?.mid===void 0)}delete(i){return this._delete(i,!1)}deleteSuperstr(i){return this._delete(i,!0)}_delete(i,o){var s;let c=this._iter.reset(i),_=[],h=this._root;for(;h;){let b=c.cmp(h.segment);if(b>0)_.push([-1,h]),h=h.left;else if(b<0)_.push([1,h]),h=h.right;else if(c.hasNext())c.next(),_.push([0,h]),h=h.mid;else break}if(h){if(o?(h.left=void 0,h.mid=void 0,h.right=void 0,h.height=1):(h.key=void 0,h.value=void 0),!h.mid&&!h.value)if(h.left&&h.right){let b=this._min(h.right);if(b.key){let{key:w,value:D,segment:O}=b;this._delete(b.key,!1),h.key=w,h.value=D,h.segment=O}}else{let b=(s=h.left)!==null&&s!==void 0?s:h.right;if(_.length>0){let[w,D]=_[_.length-1];switch(w){case-1:D.left=b;break;case 0:D.mid=b;break;case 1:D.right=b;break}}else this._root=b}for(let b=_.length-1;b>=0;b--){let w=_[b][1];w.updateHeight();let D=w.balanceFactor();if(D>1?(w.right.balanceFactor()>=0||(w.right=w.right.rotateRight()),_[b][1]=w.rotateLeft()):D<-1&&(w.left.balanceFactor()<=0||(w.left=w.left.rotateLeft()),_[b][1]=w.rotateRight()),b>0)switch(_[b-1][0]){case-1:_[b-1][1].left=_[b][1];break;case 1:_[b-1][1].right=_[b][1];break;case 0:_[b-1][1].mid=_[b][1];break}else this._root=_[0][1]}}}_min(i){for(;i.left;)i=i.left;return i}findSubstr(i){let o=this._iter.reset(i),s=this._root,c;for(;s;){let _=o.cmp(s.segment);if(_>0)s=s.left;else if(_<0)s=s.right;else if(o.hasNext())o.next(),c=s.value||c,s=s.mid;else break}return s&&s.value||c}findSuperstr(i){return this._findSuperstrOrElement(i,!1)}_findSuperstrOrElement(i,o){let s=this._iter.reset(i),c=this._root;for(;c;){let _=s.cmp(c.segment);if(_>0)c=c.left;else if(_<0)c=c.right;else if(s.hasNext())s.next(),c=c.mid;else return c.mid?this._entries(c.mid):o?c.value:void 0}}forEach(i){for(let[o,s]of this)i(s,o)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(i){let o=[];return this._dfsEntries(i,o),o[Symbol.iterator]()}_dfsEntries(i,o){i&&(i.left&&this._dfsEntries(i.left,o),i.value&&o.push([i.key,i.value]),i.mid&&this._dfsEntries(i.mid,o),i.right&&this._dfsEntries(i.right,o))}}});function k0t(l){let i=l;return typeof i?.id=="string"&&Ka.isUri(i.uri)}function Mwi(l){let i=l;return typeof i?.id=="string"&&!k0t(l)&&!KWi(l)}function Rwi(l,i){if(typeof l=="string"||typeof l>"u")return typeof l=="string"?{id:Jj(l)}:i?$Wi:GWi;let o=l;return o.configuration?{id:o.id,configPath:o.configuration}:o.folders.length===1?{id:o.id,uri:o.folders[0].uri}:{id:o.id}}function KWi(l){let i=l;return typeof i?.id=="string"&&Ka.isUri(i.configPath)}function Bwi(l){return l.id===$ri}var nK,$Wi,GWi,C0t,w0t,j6n,$ri,c3e=Ht(()=>{Fs();DG();x0t();Lh();kc();nK=Wc("contextService");$Wi={id:"ext-dev"},GWi={id:"empty-window"};C0t=class{constructor(i,o){this.raw=o,this.uri=i.uri,this.index=i.index,this.name=i.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}},w0t="code-workspace",j6n=[{name:de("codeWorkspace","Code Workspace"),extensions:[w0t]}],$ri="4064f6ec-cb38-4ad0-af64-ee6467e63c82"});var T0t,lst,E0t,ust,l3e,dst,D0t,I0t,PX=Ht(()=>{Fs();(function(l){l.inspectTokensAction=de("inspectTokens","Developer: Inspect Tokens")})(T0t||(T0t={}));(function(l){l.gotoLineActionLabel=de("gotoLineActionLabel","Go to Line/Column...")})(lst||(lst={}));(function(l){l.helpQuickAccessActionLabel=de("helpQuickAccess","Show all Quick Access Providers")})(E0t||(E0t={}));(function(l){l.quickCommandActionLabel=de("quickCommandActionLabel","Command Palette"),l.quickCommandHelp=de("quickCommandActionHelp","Show And Run Commands")})(ust||(ust={}));(function(l){l.quickOutlineActionLabel=de("quickOutlineActionLabel","Go to Symbol..."),l.quickOutlineByCategoryActionLabel=de("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(l3e||(l3e={}));(function(l){l.editorViewAccessibleLabel=de("editorViewAccessibleLabel","Editor content"),l.accessibilityHelpMessage=de("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(dst||(dst={}));(function(l){l.toggleHighContrast=de("toggleHighContrast","Toggle High Contrast Theme")})(D0t||(D0t={}));(function(l){l.bulkEditServiceSummary=de("bulkEditServiceSummary","Made {0} edits in {1} files")})(I0t||(I0t={}))});var N0t,Gri=Ht(()=>{kc();N0t=Wc("workspaceTrustManagementService")});function fst(l,i=!1){XWi(l,!1,i)}function XWi(l,i,o){let s=YWi(l,i);u3e.push(s),s.userConfigured?Wwi.push(s):Kri.push(s),o&&!s.userConfigured&&u3e.forEach(c=>{c.mime===s.mime||c.userConfigured||(s.extension&&c.extension===s.extension&&console.warn(`Overwriting extension <<${s.extension}>> to now point to mime <<${s.mime}>>`),s.filename&&c.filename===s.filename&&console.warn(`Overwriting filename <<${s.filename}>> to now point to mime <<${s.mime}>>`),s.filepattern&&c.filepattern===s.filepattern&&console.warn(`Overwriting filepattern <<${s.filepattern}>> to now point to mime <<${s.mime}>>`),s.firstline&&c.firstline===s.firstline&&console.warn(`Overwriting firstline <<${s.firstline}>> to now point to mime <<${s.mime}>>`))})}function YWi(l,i){return{id:l.id,mime:l.mime,filename:l.filename,extension:l.extension,filepattern:l.filepattern,firstline:l.firstline,userConfigured:i,filenameLowercase:l.filename?l.filename.toLowerCase():void 0,extensionLowercase:l.extension?l.extension.toLowerCase():void 0,filepatternLowercase:l.filepattern?iri(l.filepattern.toLowerCase()):void 0,filepatternOnPath:l.filepattern?l.filepattern.indexOf(F1.sep)>=0:!1}}function zwi(){u3e=u3e.filter(l=>l.userConfigured),Kri=[]}function Vwi(l,i){return QWi(l,i).map(o=>o.id)}function QWi(l,i){let o;if(l)switch(l.scheme){case Kl.file:o=l.fsPath;break;case Kl.data:{o=fX.parseMetaData(l).get(fX.META_DATA_LABEL);break}case Kl.vscodeNotebookCell:o=void 0;break;default:o=l.path}if(!o)return[{id:"unknown",mime:Fy.unknown}];o=o.toLowerCase();let s=Jj(o),c=jwi(o,s,Wwi);if(c)return[c,{id:_w,mime:Fy.text}];let _=jwi(o,s,Kri);if(_)return[_,{id:_w,mime:Fy.text}];if(i){let h=ZWi(i);if(h)return[h,{id:_w,mime:Fy.text}]}return[{id:"unknown",mime:Fy.unknown}]}function jwi(l,i,o){var s;let c,_,h;for(let b=o.length-1;b>=0;b--){let w=o[b];if(i===w.filenameLowercase){c=w;break}if(w.filepattern&&(!_||w.filepattern.length>_.filepattern.length)){let D=w.filepatternOnPath?l:i;!((s=w.filepatternLowercase)===null||s===void 0)&&s.call(w,D)&&(_=w)}w.extension&&(!h||w.extension.length>h.extension.length)&&i.endsWith(w.extensionLowercase)&&(h=w)}if(c)return c;if(_)return _;if(h)return h}function ZWi(l){if(Z4e(l)&&(l=l.substr(1)),l.length>0)for(let i=u3e.length-1;i>=0;i--){let o=u3e[i];if(!o.firstline)continue;let s=l.match(o.firstline);if(s&&s.length>0)return o}}var u3e,Kri,Wwi,Hwi=Ht(()=>{nri();Lde();cI();DG();_I();Bl();lj();u3e=[],Kri=[],Wwi=[]});var A0t,Uwi,Xri,_st,Jwi=Ht(()=>{Pa();$r();Bl();Hwi();lj();UK();RC();A0t=Object.prototype.hasOwnProperty,Uwi="vs.editor.nullLanguage",Xri=class{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(Uwi,0),this._register(_w,1),this._nextLanguageId=2}_register(i,o){this._languageIdToLanguage[o]=i,this._languageToLanguageId.set(i,o)}register(i){if(this._languageToLanguageId.has(i))return;let o=this._nextLanguageId++;this._register(i,o)}encodeLanguageId(i){return this._languageToLanguageId.get(i)||0}decodeLanguageId(i){return this._languageIdToLanguage[i]||Uwi}},_st=class l extends Ui{constructor(i=!0,o=!1){super(),this._onDidChange=this._register(new fn),this.onDidChange=this._onDidChange.event,l.instanceCount++,this._warnOnOverwrite=o,this.languageIdCodec=new Xri,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},i&&(this._initializeFromRegistry(),this._register(Ode.onDidChangeLanguages(s=>{this._initializeFromRegistry()})))}dispose(){l.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},zwi();let i=[].concat(Ode.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(i)}_registerLanguages(i){for(let o of i)this._registerLanguage(o);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(o=>{let s=this._languages[o];s.name&&(this._nameMap[s.name]=s.identifier),s.aliases.forEach(c=>{this._lowercaseNameMap[c.toLowerCase()]=s.identifier}),s.mimetypes.forEach(c=>{this._mimeTypesMap[c]=s.identifier})}),q_.as(uI.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(i){let o=i.id,s;A0t.call(this._languages,o)?s=this._languages[o]:(this.languageIdCodec.register(o),s={identifier:o,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[o]=s),this._mergeLanguage(s,i)}_mergeLanguage(i,o){let s=o.id,c=null;if(Array.isArray(o.mimetypes)&&o.mimetypes.length>0&&(i.mimetypes.push(...o.mimetypes),c=o.mimetypes[0]),c||(c=`text/x-${s}`,i.mimetypes.push(c)),Array.isArray(o.extensions)){o.configuration?i.extensions=o.extensions.concat(i.extensions):i.extensions=i.extensions.concat(o.extensions);for(let b of o.extensions)fst({id:s,mime:c,extension:b},this._warnOnOverwrite)}if(Array.isArray(o.filenames))for(let b of o.filenames)fst({id:s,mime:c,filename:b},this._warnOnOverwrite),i.filenames.push(b);if(Array.isArray(o.filenamePatterns))for(let b of o.filenamePatterns)fst({id:s,mime:c,filepattern:b},this._warnOnOverwrite);if(typeof o.firstLine=="string"&&o.firstLine.length>0){let b=o.firstLine;b.charAt(0)!=="^"&&(b="^"+b);try{let w=new RegExp(b);e0i(w)||fst({id:s,mime:c,firstline:w},this._warnOnOverwrite)}catch(w){console.warn(`[${o.id}]: Invalid regular expression \`${b}\`: `,w)}}i.aliases.push(s);let _=null;if(typeof o.aliases<"u"&&Array.isArray(o.aliases)&&(o.aliases.length===0?_=[null]:_=o.aliases),_!==null)for(let b of _)!b||b.length===0||i.aliases.push(b);let h=_!==null&&_.length>0;if(!(h&&_[0]===null)){let b=(h?_[0]:null)||s;(h||!i.name)&&(i.name=b)}o.configuration&&i.configurationFiles.push(o.configuration),o.icon&&i.icons.push(o.icon)}isRegisteredLanguageId(i){return i?A0t.call(this._languages,i):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(i){let o=i.toLowerCase();return A0t.call(this._lowercaseNameMap,o)?this._lowercaseNameMap[o]:null}getLanguageIdByMimeType(i){return i&&A0t.call(this._mimeTypesMap,i)?this._mimeTypesMap[i]:null}guessLanguageIdByFilepathOrFirstLine(i,o){return!i&&!o?[]:Vwi(i,o)}};_st.instanceCount=0});var pst,P0t,qwi=Ht(()=>{Pa();$r();Jwi();su();Fg();lj();pst=class l extends Ui{constructor(i=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new fn),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new fn),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new fn({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,l.instanceCount++,this._registry=this._register(new _st(!0,i)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){l.instanceCount--,super.dispose()}isRegisteredLanguageId(i){return this._registry.isRegisteredLanguageId(i)}getLanguageIdByLanguageName(i){return this._registry.getLanguageIdByLanguageName(i)}getLanguageIdByMimeType(i){return this._registry.getLanguageIdByMimeType(i)}guessLanguageIdByFilepathOrFirstLine(i,o){let s=this._registry.guessLanguageIdByFilepathOrFirstLine(i,o);return L4e(s,null)}createById(i){return new P0t(this.onDidChange,()=>this._createAndGetLanguageIdentifier(i))}createByFilepathOrFirstLine(i,o){return new P0t(this.onDidChange,()=>{let s=this.guessLanguageIdByFilepathOrFirstLine(i,o);return this._createAndGetLanguageIdentifier(s)})}_createAndGetLanguageIdentifier(i){return(!i||!this.isRegisteredLanguageId(i))&&(i=_w),i}requestBasicLanguageFeatures(i){this._requestedBasicLanguages.has(i)||(this._requestedBasicLanguages.add(i),this._onDidRequestBasicLanguageFeatures.fire(i))}requestRichLanguageFeatures(i){this._requestedRichLanguages.has(i)||(this._requestedRichLanguages.add(i),this.requestBasicLanguageFeatures(i),Oh.getOrCreate(i),this._onDidRequestRichLanguageFeatures.fire(i))}};pst.instanceCount=0;P0t=class{constructor(i,o){this._onDidChangeLanguages=i,this._selector=o,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages(()=>this._evaluate())),this._emitter||(this._emitter=new fn({onDidRemoveLastListener:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var i;let o=this._selector();o!==this.languageId&&(this.languageId=o,(i=this._emitter)===null||i===void 0||i.fire(this.languageId))}}});var Afe,L0t=Ht(()=>{Lde();Afe={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:Fy.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}});function $wi(l){O0t=l}function P1(l){return l==="element"?izi.value:tzi.value}function CW(){return O0t("element",!0)}var ezi,O0t,tzi,izi,B2=Ht(()=>{AG();ezi=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}}),O0t=ezi,tzi=new TC(()=>O0t("mouse",!1)),izi=new TC(()=>O0t("element",!1))});function Kwi(l){Gwi=l}function j2(){return Gwi}var Gwi,wj=Ht(()=>{Gwi={showHover:()=>{},hideHover:()=>{},showAndFocusLastHover:()=>{},setupUpdatableHover:()=>null,triggerUpdatableHover:()=>{}}});var F0t,Xwi=Ht(()=>{F0t=class{constructor(i){this.spliceables=i}splice(i,o,s){this.spliceables.forEach(c=>c.splice(i,o,s))}}});var Yri=Ht(()=>{});var LX,Ywi=Ht(()=>{LX=class extends Error{constructor(i,o){super(`ListError [${i}] ${o}`)}}});function Qwi(l,i){let o=[];for(let s of i){if(l.start>=s.range.end)continue;if(l.endi.concat(o),[]))}var M0t,Zwi=Ht(()=>{ist();M0t=class{get paddingTop(){return this._paddingTop}set paddingTop(i){this._size=this._size+i-this._paddingTop,this._paddingTop=i}constructor(i){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=i??0,this._size=this._paddingTop}splice(i,o,s=[]){let c=s.length-o,_=Qwi({start:0,end:i},this.groups),h=Qwi({start:i+o,end:Number.POSITIVE_INFINITY},this.groups).map(w=>({range:R0t(w.range,c),size:w.size})),b=s.map((w,D)=>({range:{start:i+D,end:i+D+1},size:w.size}));this.groups=rzi(_,b,h),this._size=this._paddingTop+this.groups.reduce((w,D)=>w+D.size*(D.range.end-D.range.start),0)}get count(){let i=this.groups.length;return i?this.groups[i-1].range.end:0}get size(){return this._size}indexAt(i){if(i<0)return-1;if(i{va();B0t=class{constructor(i){this.renderers=i,this.cache=new Map,this.transactionNodesPendingRemoval=new Set,this.inTransaction=!1}alloc(i){let o=this.getTemplateCache(i).pop(),s=!1;if(o)s=this.transactionNodesPendingRemoval.has(o.domNode),s&&this.transactionNodesPendingRemoval.delete(o.domNode);else{let c=No(".monaco-list-row"),h=this.getRenderer(i).renderTemplate(c);o={domNode:c,templateId:i,templateData:h}}return{row:o,isReusingConnectedDomNode:s}}release(i){i&&this.releaseRow(i)}transact(i){if(this.inTransaction)throw new Error("Already in transaction");this.inTransaction=!0;try{i()}finally{for(let o of this.transactionNodesPendingRemoval)this.doRemoveNode(o);this.transactionNodesPendingRemoval.clear(),this.inTransaction=!1}}releaseRow(i){let{domNode:o,templateId:s}=i;o&&(this.inTransaction?this.transactionNodesPendingRemoval.add(o):this.doRemoveNode(o)),this.getTemplateCache(s).push(i)}doRemoveNode(i){i.classList.remove("scrolling"),ozi(i)}getTemplateCache(i){let o=this.cache.get(i);return o||(o=[],this.cache.set(i,o)),o}dispose(){this.cache.forEach((i,o)=>{for(let s of i)this.getRenderer(o).disposeTemplate(s.templateData),s.templateData=null}),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(i){let o=this.renderers.get(i);if(!o)throw new Error(`No renderer found for ${i}`);return o}}});function szi(l,i){return Array.isArray(l)&&Array.isArray(i)?Op(l,i):l===i}var lue,aPe,OX,cue,Qri,Zri,eoi,P7,j0t=Ht(()=>{L0t();va();mW();JF();vj();su();Bu();efe();Pa();$r();ist();fLe();Zwi();eTi();Pl();QAe();lue=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},aPe={CurrentDragAndDropData:void 0},OX={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(l){return[l]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0},cue=class{constructor(i){this.elements=i}update(){}getData(){return this.elements}},Qri=class{constructor(i){this.elements=i}update(){}getData(){return this.elements}},Zri=class{constructor(){this.types=[],this.files=[]}update(i){if(i.types&&this.types.splice(0,this.types.length,...i.types),i.files){this.files.splice(0,this.files.length);for(let o=0;oc,i?.getPosInSet?this.getPosInSet=i.getPosInSet.bind(i):this.getPosInSet=(o,s)=>s+1,i?.getRole?this.getRole=i.getRole.bind(i):this.getRole=o=>"listitem",i?.isChecked?this.isChecked=i.isChecked.bind(i):this.isChecked=o=>{}}},P7=class l{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(i){if(i!==this._horizontalScrolling){if(i&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=i,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(let o of this.items)this.measureItemWidth(o);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:mft(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(i,o,s,c=OX){var _,h,b,w,D,O,j,F,X,K,re,Pe,Le;if(this.virtualDelegate=o,this.domId=`list_id_${++l.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new kw(50),this.splicing=!1,this.dragOverAnimationStopDisposable=Ui.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=Ui.None,this.onDragLeaveTimeout=Ui.None,this.disposables=new pr,this._onDidChangeContentHeight=new fn,this._onDidChangeContentWidth=new fn,this.onDidChangeContentHeight=Yo.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,c.horizontalScrolling&&c.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap((_=c.paddingTop)!==null&&_!==void 0?_:0);for(let Ye of s)this.renderers.set(Ye.templateId,Ye);this.cache=this.disposables.add(new B0t(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof c.mouseSupport=="boolean"?c.mouseSupport:!0),this._horizontalScrolling=(h=c.horizontalScrolling)!==null&&h!==void 0?h:OX.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom=typeof c.paddingBottom>"u"?0:c.paddingBottom,this.accessibilityProvider=new eoi(c.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",((b=c.transformOptimization)!==null&&b!==void 0?b:OX.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(Ry.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new yj({forceIntegerValues:!0,smoothScrollDuration:(w=c.smoothScrolling)!==null&&w!==void 0&&w?125:0,scheduleAtNextAnimationFrame:Ye=>g2(Xa(this.domNode),Ye)})),this.scrollableElement=this.disposables.add(new sX(this.rowsContainer,{alwaysConsumeMouseWheel:(D=c.alwaysConsumeMouseWheel)!==null&&D!==void 0?D:OX.alwaysConsumeMouseWheel,horizontal:1,vertical:(O=c.verticalScrollMode)!==null&&O!==void 0?O:OX.verticalScrollMode,useShadows:(j=c.useShadows)!==null&&j!==void 0?j:OX.useShadows,mouseWheelScrollSensitivity:c.mouseWheelScrollSensitivity,fastScrollSensitivity:c.fastScrollSensitivity,scrollByPage:c.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),i.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(Tr(this.rowsContainer,Zm.Change,Ye=>this.onTouchChange(Ye))),this.disposables.add(Tr(this.scrollableElement.getDomNode(),"scroll",Ye=>Ye.target.scrollTop=0)),this.disposables.add(Tr(this.domNode,"dragover",Ye=>this.onDragOver(this.toDragEvent(Ye)))),this.disposables.add(Tr(this.domNode,"drop",Ye=>this.onDrop(this.toDragEvent(Ye)))),this.disposables.add(Tr(this.domNode,"dragleave",Ye=>this.onDragLeave(this.toDragEvent(Ye)))),this.disposables.add(Tr(this.domNode,"dragend",Ye=>this.onDragEnd(Ye))),this.setRowLineHeight=(F=c.setRowLineHeight)!==null&&F!==void 0?F:OX.setRowLineHeight,this.setRowHeight=(X=c.setRowHeight)!==null&&X!==void 0?X:OX.setRowHeight,this.supportDynamicHeights=(K=c.supportDynamicHeights)!==null&&K!==void 0?K:OX.supportDynamicHeights,this.dnd=(re=c.dnd)!==null&&re!==void 0?re:this.disposables.add(OX.dnd),this.layout((Pe=c.initialSize)===null||Pe===void 0?void 0:Pe.height,(Le=c.initialSize)===null||Le===void 0?void 0:Le.width)}updateOptions(i){i.paddingBottom!==void 0&&(this.paddingBottom=i.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),i.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(i.smoothScrolling?125:0),i.horizontalScrolling!==void 0&&(this.horizontalScrolling=i.horizontalScrolling);let o;if(i.scrollByPage!==void 0&&(o={...o??{},scrollByPage:i.scrollByPage}),i.mouseWheelScrollSensitivity!==void 0&&(o={...o??{},mouseWheelScrollSensitivity:i.mouseWheelScrollSensitivity}),i.fastScrollSensitivity!==void 0&&(o={...o??{},fastScrollSensitivity:i.fastScrollSensitivity}),o&&this.scrollableElement.updateOptions(o),i.paddingTop!==void 0&&i.paddingTop!==this.rangeMap.paddingTop){let s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),c=i.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=i.paddingTop,this.render(s,Math.max(0,this.lastRenderTop+c),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(i){return new M0t(i)}splice(i,o,s=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(i,o,s)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(i,o,s=[]){let c=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_={start:i,end:i+o},h=w2.intersect(c,_),b=new Map;for(let Ct=h.end-1;Ct>=h.start;Ct--){let Et=this.items[Ct];if(Et.dragStartDisposable.dispose(),Et.checkedDisposable.dispose(),Et.row){let St=b.get(Et.templateId);St||(St=[],b.set(Et.templateId,St));let Mi=this.renderers.get(Et.templateId);Mi&&Mi.disposeElement&&Mi.disposeElement(Et.element,Ct,Et.row.templateData,Et.size),St.unshift(Et.row)}Et.row=null,Et.stale=!0}let w={start:i+o,end:this.items.length},D=w2.intersect(w,c),O=w2.relativeComplement(w,c),j=s.map(Ct=>({id:String(this.itemId++),element:Ct,templateId:this.virtualDelegate.getTemplateId(Ct),size:this.virtualDelegate.getHeight(Ct),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(Ct),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:Ui.None,checkedDisposable:Ui.None,stale:!1})),F;i===0&&o>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,j),F=this.items,this.items=j):(this.rangeMap.splice(i,o,j),F=this.items.splice(i,o,...j));let X=s.length-o,K=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),re=R0t(D,X),Pe=w2.intersect(K,re);for(let Ct=Pe.start;CtR0t(Ct,X)),ft=[{start:i,end:i+s.length},...Je].map(Ct=>w2.intersect(K,Ct)).reverse();for(let Ct of ft)for(let Et=Ct.end-1;Et>=Ct.start;Et--){let St=this.items[Et],Mi=b.get(St.templateId),zi=Mi?.pop();this.insertItemInDOM(Et,zi)}for(let Ct of b.values())for(let Et of Ct)this.cache.release(Et);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),F.map(Ct=>Ct.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=g2(Xa(this.domNode),()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let i=0;for(let o of this.items)typeof o.width<"u"&&(i=Math.max(i,o.width));this.scrollWidth=i,this.scrollableElement.setScrollDimensions({scrollWidth:i===0?0:i+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(let i of this.items)i.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(i){return this.items[i].element}indexOf(i){return this.items.findIndex(o=>o.element===i)}domElement(i){let o=this.items[i].row;return o&&o.domNode}elementHeight(i){return this.items[i].size}elementTop(i){return this.rangeMap.positionAt(i)}indexAt(i){return this.rangeMap.indexAt(i)}indexAfter(i){return this.rangeMap.indexAfter(i)}layout(i,o){let s={height:typeof i=="number"?i:L0i(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,s.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(s),typeof o<"u"&&(this.renderWidth=o,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof o=="number"?o:mft(this.domNode)})}render(i,o,s,c,_,h=!1){let b=this.getRenderRange(o,s),w=w2.relativeComplement(b,i).reverse(),D=w2.relativeComplement(i,b);if(h){let O=w2.intersect(i,b);for(let j=O.start;j{for(let O of D)for(let j=O.start;j=O.start;j--)this.insertItemInDOM(j)}),c!==void 0&&(this.rowsContainer.style.left=`-${c}px`),this.rowsContainer.style.top=`-${o}px`,this.horizontalScrolling&&_!==void 0&&(this.rowsContainer.style.width=`${Math.max(_,this.renderWidth)}px`),this.lastRenderTop=o,this.lastRenderHeight=s}insertItemInDOM(i,o){var s,c,_;let h=this.items[i];if(!h.row)if(o)h.row=o,h.stale=!0;else{let j=this.cache.alloc(h.templateId);h.row=j.row,h.stale||(h.stale=j.isReusingConnectedDomNode)}let b=this.accessibilityProvider.getRole(h.element)||"listitem";h.row.domNode.setAttribute("role",b);let w=this.accessibilityProvider.isChecked(h.element);if(typeof w=="boolean")h.row.domNode.setAttribute("aria-checked",String(!!w));else if(w){let j=F=>h.row.domNode.setAttribute("aria-checked",String(!!F));j(w.value),h.checkedDisposable=w.onDidChange(()=>j(w.value))}if(h.stale||!h.row.domNode.parentElement){let j=(_=(c=(s=this.items.at(i+1))===null||s===void 0?void 0:s.row)===null||c===void 0?void 0:c.domNode)!==null&&_!==void 0?_:null;(h.row.domNode.parentElement!==this.rowsContainer||h.row.domNode.nextElementSibling!==j)&&this.rowsContainer.insertBefore(h.row.domNode,j),h.stale=!1}this.updateItemInDOM(h,i);let D=this.renderers.get(h.templateId);if(!D)throw new Error(`No renderer found for template id ${h.templateId}`);D?.renderElement(h.element,i,h.row.templateData,h.size);let O=this.dnd.getDragURI(h.element);h.dragStartDisposable.dispose(),h.row.domNode.draggable=!!O,O&&(h.dragStartDisposable=Tr(h.row.domNode,"dragstart",j=>this.onDragStart(h.element,O,j))),this.horizontalScrolling&&(this.measureItemWidth(h),this.eventuallyUpdateScrollWidth())}measureItemWidth(i){if(!i.row||!i.row.domNode)return;i.row.domNode.style.width="fit-content",i.width=mft(i.row.domNode);let o=Xa(i.row.domNode).getComputedStyle(i.row.domNode);o.paddingLeft&&(i.width+=parseFloat(o.paddingLeft)),o.paddingRight&&(i.width+=parseFloat(o.paddingRight)),i.row.domNode.style.width=""}updateItemInDOM(i,o){i.row.domNode.style.top=`${this.elementTop(o)}px`,this.setRowHeight&&(i.row.domNode.style.height=`${i.size}px`),this.setRowLineHeight&&(i.row.domNode.style.lineHeight=`${i.size}px`),i.row.domNode.setAttribute("data-index",`${o}`),i.row.domNode.setAttribute("data-last-element",o===this.length-1?"true":"false"),i.row.domNode.setAttribute("data-parity",o%2===0?"even":"odd"),i.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(i.element,o,this.length))),i.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(i.element,o))),i.row.domNode.setAttribute("id",this.getElementDomId(o)),i.row.domNode.classList.toggle("drop-target",i.dropTarget)}removeItemFromDOM(i){let o=this.items[i];if(o.dragStartDisposable.dispose(),o.checkedDisposable.dispose(),o.row){let s=this.renderers.get(o.templateId);s&&s.disposeElement&&s.disposeElement(o.element,i,o.row.templateData,o.size),this.cache.release(o.row),o.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(i,o){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:i,reuseAnimation:o})}get scrollTop(){return this.getScrollTop()}set scrollTop(i){this.setScrollTop(i)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return Yo.map(this.disposables.add(new Yd(this.domNode,"click")).event,i=>this.toMouseEvent(i),this.disposables)}get onMouseDblClick(){return Yo.map(this.disposables.add(new Yd(this.domNode,"dblclick")).event,i=>this.toMouseEvent(i),this.disposables)}get onMouseMiddleClick(){return Yo.filter(Yo.map(this.disposables.add(new Yd(this.domNode,"auxclick")).event,i=>this.toMouseEvent(i),this.disposables),i=>i.browserEvent.button===1,this.disposables)}get onMouseDown(){return Yo.map(this.disposables.add(new Yd(this.domNode,"mousedown")).event,i=>this.toMouseEvent(i),this.disposables)}get onMouseOver(){return Yo.map(this.disposables.add(new Yd(this.domNode,"mouseover")).event,i=>this.toMouseEvent(i),this.disposables)}get onMouseOut(){return Yo.map(this.disposables.add(new Yd(this.domNode,"mouseout")).event,i=>this.toMouseEvent(i),this.disposables)}get onContextMenu(){return Yo.any(Yo.map(this.disposables.add(new Yd(this.domNode,"contextmenu")).event,i=>this.toMouseEvent(i),this.disposables),Yo.map(this.disposables.add(new Yd(this.domNode,Zm.Contextmenu)).event,i=>this.toGestureEvent(i),this.disposables))}get onTouchStart(){return Yo.map(this.disposables.add(new Yd(this.domNode,"touchstart")).event,i=>this.toTouchEvent(i),this.disposables)}get onTap(){return Yo.map(this.disposables.add(new Yd(this.rowsContainer,Zm.Tap)).event,i=>this.toGestureEvent(i),this.disposables)}toMouseEvent(i){let o=this.getItemIndexFromEventTarget(i.target||null),s=typeof o>"u"?void 0:this.items[o],c=s&&s.element;return{browserEvent:i,index:o,element:c}}toTouchEvent(i){let o=this.getItemIndexFromEventTarget(i.target||null),s=typeof o>"u"?void 0:this.items[o],c=s&&s.element;return{browserEvent:i,index:o,element:c}}toGestureEvent(i){let o=this.getItemIndexFromEventTarget(i.initialTarget||null),s=typeof o>"u"?void 0:this.items[o],c=s&&s.element;return{browserEvent:i,index:o,element:c}}toDragEvent(i){let o=this.getItemIndexFromEventTarget(i.target||null),s=typeof o>"u"?void 0:this.items[o],c=s&&s.element,_=this.getTargetSector(i,o);return{browserEvent:i,index:o,element:c,sector:_}}onScroll(i){try{let o=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(o,i.scrollTop,i.height,i.scrollLeft,i.scrollWidth),this.supportDynamicHeights&&this._rerender(i.scrollTop,i.height,i.inSmoothScrolling)}catch(o){throw console.error("Got bad scroll event:",i),o}}onTouchChange(i){i.preventDefault(),i.stopPropagation(),this.scrollTop-=i.translationY}onDragStart(i,o,s){var c,_;if(!s.dataTransfer)return;let h=this.dnd.getDragElements(i);if(s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setData(Afe.TEXT,o),s.dataTransfer.setDragImage){let b;this.dnd.getDragLabel&&(b=this.dnd.getDragLabel(h,s)),typeof b>"u"&&(b=String(h.length));let w=No(".monaco-drag-image");w.textContent=b;let O=(j=>{for(;j&&!j.classList.contains("monaco-workbench");)j=j.parentElement;return j||this.domNode.ownerDocument})(this.domNode);O.appendChild(w),s.dataTransfer.setDragImage(w,-10,-10),setTimeout(()=>O.removeChild(w),0)}this.domNode.classList.add("dragging"),this.currentDragData=new cue(h),aPe.CurrentDragAndDropData=new Qri(h),(_=(c=this.dnd).onDragStart)===null||_===void 0||_.call(c,this.currentDragData,s)}onDragOver(i){var o,s;if(i.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),aPe.CurrentDragAndDropData&&aPe.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(i.browserEvent),!i.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(aPe.CurrentDragAndDropData)this.currentDragData=aPe.CurrentDragAndDropData;else{if(!i.browserEvent.dataTransfer.types)return!1;this.currentDragData=new Zri}let c=this.dnd.onDragOver(this.currentDragData,i.element,i.index,i.sector,i.browserEvent);if(this.canDrop=typeof c=="boolean"?c:c.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;i.browserEvent.dataTransfer.dropEffect=typeof c!="boolean"&&((o=c.effect)===null||o===void 0?void 0:o.type)===0?"copy":"move";let _;typeof c!="boolean"&&c.feedback?_=c.feedback:typeof i.index>"u"?_=[-1]:_=[i.index],_=PL(_).filter(b=>b>=-1&&bb-w),_=_[0]===-1?[-1]:_;let h=typeof c!="boolean"&&c.effect&&c.effect.position?c.effect.position:"drop-target";if(szi(this.currentDragFeedback,_)&&this.currentDragFeedbackPosition===h)return!0;if(this.currentDragFeedback=_,this.currentDragFeedbackPosition=h,this.currentDragFeedbackDisposable.dispose(),_[0]===-1)this.domNode.classList.add(h),this.rowsContainer.classList.add(h),this.currentDragFeedbackDisposable=Qs(()=>{this.domNode.classList.remove(h),this.rowsContainer.classList.remove(h)});else{if(_.length>1&&h!=="drop-target")throw new Error("Can't use multiple feedbacks with position different than 'over'");h==="drop-target-after"&&_[0]{var b;for(let w of _){let D=this.items[w];D.dropTarget=!1,(b=D.row)===null||b===void 0||b.domNode.classList.remove(h)}})}return!0}onDragLeave(i){var o,s;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=g7(()=>this.clearDragOverFeedback(),100,this.disposables),this.currentDragData&&((s=(o=this.dnd).onDragLeave)===null||s===void 0||s.call(o,this.currentDragData,i.element,i.index,i.browserEvent))}onDrop(i){if(!this.canDrop)return;let o=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,aPe.CurrentDragAndDropData=void 0,!(!o||!i.browserEvent.dataTransfer)&&(i.browserEvent.preventDefault(),o.update(i.browserEvent.dataTransfer),this.dnd.drop(o,i.element,i.index,i.sector,i.browserEvent))}onDragEnd(i){var o,s;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,aPe.CurrentDragAndDropData=void 0,(s=(o=this.dnd).onDragEnd)===null||s===void 0||s.call(o,i)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=Ui.None}setupDragAndDropScrollTopAnimation(i){if(!this.dragOverAnimationDisposable){let o=_ft(this.domNode).top;this.dragOverAnimationDisposable=H0i(Xa(this.domNode),this.animateDragAndDropScrollTop.bind(this,o))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=g7(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3,this.disposables),this.dragOverMouseY=i.pageY}animateDragAndDropScrollTop(i){if(this.dragOverMouseY===void 0)return;let o=this.dragOverMouseY-i,s=this.renderHeight-35;o<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(o-35))):o>s&&(this.scrollTop+=Math.min(14,Math.floor(.3*(o-s))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(i,o){if(o===void 0)return;let s=i.offsetY/this.items[o].size,c=Math.floor(s/.25);return k2(c,0,3)}getItemIndexFromEventTarget(i){let o=this.scrollableElement.getDomNode(),s=i;for(;Py(s)&&s!==this.rowsContainer&&o.contains(s);){let c=s.getAttribute("data-index");if(c){let _=Number(c);if(!isNaN(_))return _}s=s.parentElement}}getRenderRange(i,o){return{start:this.rangeMap.indexAt(i),end:this.rangeMap.indexAfter(i+o-1)}}_rerender(i,o,s){let c=this.getRenderRange(i,o),_,h;i===this.elementTop(c.start)?(_=c.start,h=0):c.end-c.start>1&&(_=c.start+1,h=this.elementTop(_)-i);let b=0;for(;;){let w=this.getRenderRange(i,o),D=!1;for(let O=w.start;O=F.start;X--)this.insertItemInDOM(X);for(let F=w.start;FOp(i,o,l)}function W0t(){return(l,i)=>l.equals(i)}function tTi(l,i,o){return!l||!i?l===i:o(l,i)}var Tj,d3e=Ht(()=>{su();Tj=(l,i)=>l===i});function azi(l,i){var o;let s=toi.get(l);if(s)return s;let c=czi(l,i);if(c){let _=(o=iTi.get(c))!==null&&o!==void 0?o:0;_++,iTi.set(c,_);let h=_===1?c:`${c}#${_}`;return toi.set(l,h),h}}function czi(l,i){let o=toi.get(l);if(o)return o;let s=i.owner?uzi(i.owner)+".":"",c,_=i.debugNameSource;if(_!==void 0)if(typeof _=="function"){if(c=_(),c!==void 0)return s+c}else return s+_;let h=i.referenceFn;if(h!==void 0&&(c=f3e(h),c!==void 0))return s+c;if(i.owner!==void 0){let b=lzi(i.owner,l);if(b!==void 0)return s+b}}function lzi(l,i){for(let o in l)if(l[o]===i)return o}function uzi(l){var i;let o=rTi.get(l);if(o)return o;let s=dzi(l),c=(i=nTi.get(s))!==null&&i!==void 0?i:0;c++,nTi.set(s,c);let _=c===1?s:`${s}#${c}`;return rTi.set(l,_),_}function dzi(l){let i=l.constructor;return i?i.name:"Object"}function f3e(l){let i=l.toString(),s=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(i),c=s?s[1]:void 0;return c?.trim()}var W2,iTi,toi,nTi,rTi,hst=Ht(()=>{W2=class{constructor(i,o,s){this.owner=i,this.debugNameSource=o,this.referenceFn=s}getDebugName(i){return azi(i,this)}},iTi=new Map,toi=new WeakMap;nTi=new Map,rTi=new WeakMap});function sTi(l){oTi=l}function L7(){return oTi}function fzi(l){let i=new Array,o=[],s="";function c(h){if("length"in h)for(let b of h)b&&c(b);else"text"in h?(s+=`%c${h.text}`,i.push(h.style),h.data&&o.push(...h.data)):"data"in h&&o.push(...h.data)}c(l);let _=[s,...i];return _.push(...o),_}function _3e(l){return rK(l,{color:"black"})}function gst(l){return rK(hzi(`${l}: `,10),{color:"black",bold:!0})}function rK(l,i={color:"black"}){function o(c){return Object.entries(c).reduce((_,[h,b])=>`${_}${h}:${b};`,"")}let s={color:i.color};return i.strikeThrough&&(s["text-decoration"]="line-through"),i.bold&&(s["font-weight"]="bold"),{text:l,style:o(s)}}function yst(l,i){switch(typeof l){case"number":return""+l;case"string":return l.length+2<=i?`"${l}"`:`"${l.substr(0,i-7)}"+...`;case"boolean":return l?"true":"false";case"undefined":return"undefined";case"object":return l===null?"null":Array.isArray(l)?_zi(l,i):pzi(l,i);case"symbol":return l.toString();case"function":return`[[Function${l.name?" "+l.name:""}]]`;default:return""+l}}function _zi(l,i){let o="[ ",s=!0;for(let c of l){if(s||(o+=", "),o.length-5>i){o+="...";break}s=!1,o+=`${yst(c,i-o.length)}`}return o+=" ]",o}function pzi(l,i){let o="{ ",s=!0;for(let[c,_]of Object.entries(l)){if(s||(o+=", "),o.length-5>i){o+="...";break}s=!1,o+=`${c}: ${yst(_,i-o.length)}`}return o+=" }",o}function mzi(l,i){let o="";for(let s=1;s<=i;s++)o+=l;return o}function hzi(l,i){for(;l.length{z0t=class{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(i){return fzi([_3e(mzi("| ",this.indentation)),i])}formatInfo(i){return i.hadValue?i.didChange?[_3e(" "),rK(yst(i.oldValue,70),{color:"red",strikeThrough:!0}),_3e(" "),rK(yst(i.newValue,60),{color:"green"})]:[_3e(" (unchanged)")]:[_3e(" "),rK(yst(i.newValue,60),{color:"green"}),_3e(" (initial)")]}handleObservableChanged(i,o){console.log(...this.textToConsoleArgs([gst("observable value changed"),rK(i.debugName,{color:"BlueViolet"}),...this.formatInfo(o)]))}formatChanges(i){if(i.size!==0)return rK(" (changed deps: "+[...i].map(o=>o.debugName).join(", ")+")",{color:"gray"})}handleDerivedCreated(i){let o=i.handleChange;this.changedObservablesSets.set(i,new Set),i.handleChange=(s,c)=>(this.changedObservablesSets.get(i).add(s),o.apply(i,[s,c]))}handleDerivedRecomputed(i,o){let s=this.changedObservablesSets.get(i);console.log(...this.textToConsoleArgs([gst("derived recomputed"),rK(i.debugName,{color:"BlueViolet"}),...this.formatInfo(o),this.formatChanges(s),{data:[{fn:i._computeFn}]}])),s.clear()}handleFromEventObservableTriggered(i,o){console.log(...this.textToConsoleArgs([gst("observable from event triggered"),rK(i.debugName,{color:"BlueViolet"}),...this.formatInfo(o),{data:[{fn:i._getValue}]}]))}handleAutorunCreated(i){let o=i.handleChange;this.changedObservablesSets.set(i,new Set),i.handleChange=(s,c)=>(this.changedObservablesSets.get(i).add(s),o.apply(i,[s,c]))}handleAutorunTriggered(i){let o=this.changedObservablesSets.get(i);console.log(...this.textToConsoleArgs([gst("autorun"),rK(i.debugName,{color:"BlueViolet"}),this.formatChanges(o),{data:[{fn:i._runFn}]}])),o.clear(),this.indentation++}handleAutorunFinished(i){this.indentation--}handleBeginTransaction(i){let o=i.getDebugName();o===void 0&&(o=""),console.log(...this.textToConsoleArgs([gst("transaction"),rK(o,{color:"BlueViolet"}),{data:[{fn:i._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}});function cTi(l){aTi=l}function lTi(l){gzi=l}function dTi(l){uTi=l}function fp(l,i){let o=new m3e(l,i);try{l(o)}finally{o.finish()}}function h3e(l){if(V0t)l(V0t);else{let i=new m3e(l,void 0);V0t=i;try{l(i)}finally{i.finish(),V0t=void 0}}}async function fTi(l,i){let o=new m3e(l,i);try{await l(o)}finally{o.finish()}}function FX(l,i,o){l?i(l):fp(i,o)}function yd(l,i){let o;return typeof l=="string"?o=new W2(void 0,l,void 0):o=new W2(l,void 0,void 0),new bst(o,i,Tj)}function _Ti(l,i){var o;return new bst(new W2(l.owner,l.debugName,void 0),i,(o=l.equalsFn)!==null&&o!==void 0?o:Tj)}function MX(l,i){let o;return typeof l=="string"?o=new W2(void 0,l,void 0):o=new W2(l,void 0,void 0),new ioi(o,i,Tj)}var aTi,gzi,uTi,vst,uue,V0t,m3e,bst,ioi,Pfe=Ht(()=>{d3e();hst();p3e();vst=class{get TChange(){return null}reportChanges(){this.get()}read(i){return i?i.readObservable(this):this.get()}map(i,o){let s=o===void 0?void 0:i,c=o===void 0?i:o;return uTi({owner:s,debugName:()=>{let _=f3e(c);if(_!==void 0)return _;let b=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(c.toString());if(b)return`${this.debugName}.${b[2]}`;if(!s)return`${this.debugName} (mapped)`},debugReferenceFn:c},_=>c(this.read(_),_))}recomputeInitiallyAndOnChange(i,o){return i.add(aTi(this,o)),this}},uue=class extends vst{constructor(){super(...arguments),this.observers=new Set}addObserver(i){let o=this.observers.size;this.observers.add(i),o===0&&this.onFirstObserverAdded()}removeObserver(i){this.observers.delete(i)&&this.observers.size===0&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}};m3e=class{constructor(i,o){var s;this._fn=i,this._getDebugName=o,this.updatingObservers=[],(s=L7())===null||s===void 0||s.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():f3e(this._fn)}updateObserver(i,o){this.updatingObservers.push({observer:i,observable:o}),i.beginUpdate(o)}finish(){var i;let o=this.updatingObservers;for(let s=0;s{},()=>`Setting ${this.debugName}`));try{let h=this._value;this._setValue(i),(c=L7())===null||c===void 0||c.handleObservableChanged(this,{oldValue:h,newValue:i,change:s,didChange:!0,hadValue:!0});for(let b of this.observers)o.updateObserver(b,this),b.handleChange(this,s)}finally{_&&_.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(i){this._value=i}};ioi=class extends bst{_setValue(i){this._value!==i&&(this._value&&this._value.dispose(),this._value=i)}dispose(){var i;(i=this._value)===null||i===void 0||i.dispose()}}});function jl(l,i){return i!==void 0?new due(new W2(l,void 0,i),i,void 0,void 0,void 0,Tj):new due(new W2(void 0,void 0,l),l,void 0,void 0,void 0,Tj)}function H0t(l,i,o){return new noi(new W2(l,void 0,i),i,void 0,void 0,void 0,Tj,o)}function O7(l,i){var o;return new due(new W2(l.owner,l.debugName,l.debugReferenceFn),i,void 0,void 0,l.onLastObserverRemoved,(o=l.equalsFn)!==null&&o!==void 0?o:Tj)}function roi(l,i){var o;return new due(new W2(l.owner,l.debugName,void 0),i,l.createEmptyChangeSummary,l.handleChange,void 0,(o=l.equalityComparer)!==null&&o!==void 0?o:Tj)}function YF(l,i){let o,s;i===void 0?(o=l,s=void 0):(s=l,o=i);let c=new pr;return new due(new W2(s,void 0,o),_=>(c.clear(),o(_,c)),void 0,void 0,()=>c.dispose(),Tj)}function Ej(l,i){let o,s;i===void 0?(o=l,s=void 0):(s=l,o=i);let c=new pr;return new due(new W2(s,void 0,o),_=>{c.clear();let h=o(_);return h&&c.add(h),h},void 0,void 0,()=>c.dispose(),Tj)}var due,noi,Lfe=Ht(()=>{Yj();d3e();$r();Pfe();hst();p3e();dTi(O7);due=class extends uue{get debugName(){var i;return(i=this._debugNameData.getDebugName(this))!==null&&i!==void 0?i:"(anonymous)"}constructor(i,o,s,c,_=void 0,h){var b,w;super(),this._debugNameData=i,this._computeFn=o,this.createChangeSummary=s,this._handleChange=c,this._handleLastObserverRemoved=_,this._equalityComparator=h,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=(b=this.createChangeSummary)===null||b===void 0?void 0:b.call(this),(w=L7())===null||w===void 0||w.handleDerivedCreated(this)}onLastObserverRemoved(){var i;this.state=0,this.value=void 0;for(let o of this.dependencies)o.removeObserver(this);this.dependencies.clear(),(i=this._handleLastObserverRemoved)===null||i===void 0||i.call(this)}get(){var i;if(this.observers.size===0){let o=this._computeFn(this,(i=this.createChangeSummary)===null||i===void 0?void 0:i.call(this));return this.onLastObserverRemoved(),o}else{do{if(this.state===1){for(let o of this.dependencies)if(o.reportChanges(),this.state===2)break}this.state===1&&(this.state=3),this._recomputeIfNeeded()}while(this.state!==3);return this.value}}_recomputeIfNeeded(){var i,o;if(this.state===3)return;let s=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=s;let c=this.state!==0,_=this.value;this.state=3;let h=this.changeSummary;this.changeSummary=(i=this.createChangeSummary)===null||i===void 0?void 0:i.call(this);try{this.value=this._computeFn(this,h)}finally{for(let w of this.dependenciesToBeRemoved)w.removeObserver(this);this.dependenciesToBeRemoved.clear()}let b=c&&!this._equalityComparator(_,this.value);if((o=L7())===null||o===void 0||o.handleDerivedRecomputed(this,{oldValue:_,newValue:this.value,change:void 0,didChange:b,hadValue:c}),b)for(let w of this.observers)w.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(i){this.updateCount++;let o=this.updateCount===1;if(this.state===3&&(this.state=1,!o))for(let s of this.observers)s.handlePossibleChange(this);if(o)for(let s of this.observers)s.beginUpdate(this)}endUpdate(i){if(this.updateCount--,this.updateCount===0){let o=[...this.observers];for(let s of o)s.endUpdate(this)}Xj(()=>this.updateCount>=0)}handlePossibleChange(i){if(this.state===3&&this.dependencies.has(i)&&!this.dependenciesToBeRemoved.has(i)){this.state=1;for(let o of this.observers)o.handlePossibleChange(this)}}handleChange(i,o){if(this.dependencies.has(i)&&!this.dependenciesToBeRemoved.has(i)){let s=this._handleChange?this._handleChange({changedObservable:i,change:o,didChange:_=>_===i},this.changeSummary):!0,c=this.state===3;if(s&&(this.state===1||c)&&(this.state=2,c))for(let _ of this.observers)_.handlePossibleChange(this)}}readObservable(i){i.addObserver(this);let o=i.get();return this.dependencies.add(i),this.dependenciesToBeRemoved.delete(i),o}addObserver(i){let o=!this.observers.has(i)&&this.updateCount>0;super.addObserver(i),o&&i.beginUpdate(this)}removeObserver(i){let o=this.observers.has(i)&&this.updateCount>0;super.removeObserver(i),o&&i.endUpdate(this)}},noi=class extends due{constructor(i,o,s,c,_=void 0,h,b){super(i,o,s,c,_,h),this.set=b}}});function au(l){return new g3e(new W2(void 0,void 0,l),l,void 0,void 0)}function Ofe(l,i){var o;return new g3e(new W2(l.owner,l.debugName,(o=l.debugReferenceFn)!==null&&o!==void 0?o:i),i,void 0,void 0)}function RX(l,i){var o;return new g3e(new W2(l.owner,l.debugName,(o=l.debugReferenceFn)!==null&&o!==void 0?o:i),i,l.createEmptyChangeSummary,l.handleChange)}function VC(l){let i=new pr,o=Ofe({owner:void 0,debugName:void 0,debugReferenceFn:l},s=>{i.clear(),l(s,i)});return Qs(()=>{o.dispose(),i.dispose()})}var g3e,ooi=Ht(()=>{Yj();$r();hst();p3e();g3e=class{get debugName(){var i;return(i=this._debugNameData.getDebugName(this))!==null&&i!==void 0?i:"(anonymous)"}constructor(i,o,s,c){var _,h;this._debugNameData=i,this._runFn=o,this.createChangeSummary=s,this._handleChange=c,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=(_=this.createChangeSummary)===null||_===void 0?void 0:_.call(this),(h=L7())===null||h===void 0||h.handleAutorunCreated(this),this._runIfNeeded(),CNe(this)}dispose(){this.disposed=!0;for(let i of this.dependencies)i.removeObserver(this);this.dependencies.clear(),kNe(this)}_runIfNeeded(){var i,o,s;if(this.state===3)return;let c=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=c,this.state=3;let _=this.disposed;try{if(!_){(i=L7())===null||i===void 0||i.handleAutorunTriggered(this);let h=this.changeSummary;this.changeSummary=(o=this.createChangeSummary)===null||o===void 0?void 0:o.call(this),this._runFn(this,h)}}finally{_||(s=L7())===null||s===void 0||s.handleAutorunFinished(this);for(let h of this.dependenciesToBeRemoved)h.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){this.state===3&&(this.state=1),this.updateCount++}endUpdate(){if(this.updateCount===1)do{if(this.state===1){this.state=3;for(let i of this.dependencies)if(i.reportChanges(),this.state===2)break}this._runIfNeeded()}while(this.state!==3);this.updateCount--,Xj(()=>this.updateCount>=0)}handlePossibleChange(i){this.state===3&&this.dependencies.has(i)&&!this.dependenciesToBeRemoved.has(i)&&(this.state=1)}handleChange(i,o){this.dependencies.has(i)&&!this.dependenciesToBeRemoved.has(i)&&(!this._handleChange||this._handleChange({changedObservable:i,change:o,didChange:c=>c===i},this.changeSummary))&&(this.state=2)}readObservable(i){if(this.disposed)return i.get();i.addObserver(this);let o=i.get();return this.dependencies.add(i),this.dependenciesToBeRemoved.delete(i),o}};(function(l){l.Observer=g3e})(au||(au={}))});function tP(l){return new soi(l)}function E_(l,i){return new cPe(l,i)}function ix(l,i){return new aoi(l,i)}function fue(l){return typeof l=="string"?new U0t(l):new U0t(void 0,l)}function pTi(l){let i=new J0t(!1,void 0);return l.addObserver(i),Qs(()=>{l.removeObserver(i)})}function BX(l,i){let o=new J0t(!0,i);return l.addObserver(o),i?i(l.get()):l.reportChanges(),Qs(()=>{l.removeObserver(o)})}function coi(l,i){let o;return jl(l,c=>(o=i(c,o),o))}function mTi(l,i,o,s){let c=new q0t(o,s);return O7({debugReferenceFn:o,owner:l,onLastObserverRemoved:()=>{c.dispose(),c=new q0t(o)}},h=>(c.setItems(i.read(h)),c.getItems()))}var soi,cPe,aoi,U0t,J0t,q0t,loi=Ht(()=>{Pa();$r();Pfe();hst();Lfe();p3e();soi=class extends vst{constructor(i){super(),this.value=i}get debugName(){return this.toString()}get(){return this.value}addObserver(i){}removeObserver(i){}toString(){return`Const: ${this.value}`}};cPe=class l extends uue{constructor(i,o){super(),this.event=i,this._getValue=o,this.hasValue=!1,this.handleEvent=s=>{var c;let _=this._getValue(s),h=this.value,b=!this.hasValue||h!==_,w=!1;b&&(this.value=_,this.hasValue&&(w=!0,FX(l.globalTransaction,D=>{var O;(O=L7())===null||O===void 0||O.handleFromEventObservableTriggered(this,{oldValue:h,newValue:_,change:void 0,didChange:b,hadValue:this.hasValue});for(let j of this.observers)D.updateObserver(j,this),j.handleChange(this,void 0)},()=>{let D=this.getDebugName();return"Event fired"+(D?`: ${D}`:"")})),this.hasValue=!0),w||(c=L7())===null||c===void 0||c.handleFromEventObservableTriggered(this,{oldValue:h,newValue:_,change:void 0,didChange:b,hadValue:this.hasValue})}}getDebugName(){return f3e(this._getValue)}get debugName(){let i=this.getDebugName();return"From Event"+(i?`: ${i}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}};(function(l){l.Observer=cPe;function i(o,s){let c=!1;cPe.globalTransaction===void 0&&(cPe.globalTransaction=o,c=!0);try{s()}finally{c&&(cPe.globalTransaction=void 0)}}l.batchEventsGlobally=i})(E_||(E_={}));aoi=class extends uue{constructor(i,o){super(),this.debugName=i,this.event=o,this.handleEvent=()=>{fp(s=>{for(let c of this.observers)s.updateObserver(c,this),c.handleChange(this,void 0)},()=>this.debugName)}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}};U0t=class extends uue{get debugName(){var i;return(i=new W2(this._owner,this._debugName,void 0).getDebugName(this))!==null&&i!==void 0?i:"Observable Signal"}constructor(i,o){super(),this._debugName=i,this._owner=o}trigger(i,o){if(!i){fp(s=>{this.trigger(s,o)},()=>`Trigger signal ${this.debugName}`);return}for(let s of this.observers)i.updateObserver(s,this),s.handleChange(this,o)}get(){}};lTi(pTi);cTi(BX);J0t=class{constructor(i,o){this._forceRecompute=i,this._handleValue=o,this._counter=0}beginUpdate(i){this._counter++}endUpdate(i){this._counter--,this._counter===0&&this._forceRecompute&&(this._handleValue?this._handleValue(i.get()):i.reportChanges())}handlePossibleChange(i){}handleChange(i,o){}};q0t=class{constructor(i,o){this._map=i,this._keySelector=o,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach(i=>i.store.dispose()),this._cache.clear()}setItems(i){let o=[],s=new Set(this._cache.keys());for(let c of i){let _=this._keySelector?this._keySelector(c):c,h=this._cache.get(_);if(h)s.delete(_);else{let b=new pr;h={out:this._map(c,b),store:b},this._cache.set(_,h)}o.push(h.out)}for(let c of s)this._cache.get(c).store.dispose(),this._cache.delete(c);this._items=o}getItems(){return this._items}}});function Sst(l,i,o,s){return i||(i=c=>c!=null),new Promise((c,_)=>{let h=!0,b=!1,w=l.map(O=>({isFinished:i(O),error:o?o(O):!1,state:O})),D=au(O=>{let{isFinished:j,error:F,state:X}=w.read(O);(j||F)&&(h?b=!0:D.dispose(),F?_(F===!0?X:F):c(X))});if(s){let O=s.onCancellationRequested(()=>{D.dispose(),O.dispose(),_(new aP)});if(s.isCancellationRequested){D.dispose(),O.dispose(),_(new aP);return}}h=!1,b&&D.dispose()})}var hTi=Ht(()=>{ooi();Pl()});var yzi,O0=Ht(()=>{Pfe();Lfe();ooi();loi();hTi();p3e();yzi=!1;yzi&&sTi(new z0t)});function _ue(l){return l.tagName==="INPUT"||l.tagName==="TEXTAREA"}function wst(l,i){return l.classList.contains(i)?!0:l.classList.contains("monaco-list")||!l.parentElement?!1:wst(l.parentElement,i)}function y3e(l){return wst(l,"monaco-editor")}function vTi(l){return wst(l,"monaco-custom-toggle")}function bTi(l){return wst(l,"action-item")}function S3e(l){return wst(l,"monaco-tree-sticky-row")}function x3e(l){return l.classList.contains("monaco-tree-sticky-container")}function yoi(l){return l.tagName==="A"&&l.classList.contains("monaco-button")||l.tagName==="DIV"&&l.classList.contains("monaco-button-dropdown")?!0:l.classList.contains("monaco-list")||!l.parentElement?!1:yoi(l.parentElement)}function voi(l){return uu?l.browserEvent.metaKey:l.browserEvent.ctrlKey}function boi(l){return l.browserEvent.shiftKey}function bzi(l){return u6e(l)&&l.button===2}function xzi(l,i){let o=l.indexOf(i);if(o===-1)return[];let s=[],c=o-1;for(;c>=0&&l[c]===i-(o-c);)s.push(l[c--]);for(s.reverse(),c=o;c=l.length)o.push(i[c++]);else if(c>=i.length)o.push(l[s++]);else if(l[s]===i[c]){o.push(l[s]),s++,c++;continue}else l[s]=l.length)o.push(i[c++]);else if(c>=i.length)o.push(l[s++]);else if(l[s]===i[c]){s++,c++;continue}else l[s]{va();mW();jD();JF();$D();Xwi();su();Bu();j1();efe();Pa();kj();$r();QAe();uf();cm();Yri();Ywi();j0t();h7();O0();Ffe=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},uoi=class{constructor(i){this.trait=i,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(i){return i}renderElement(i,o,s){let c=this.renderedElements.findIndex(_=>_.templateData===s);if(c>=0){let _=this.renderedElements[c];this.trait.unrender(s),_.index=o}else{let _={index:o,templateData:s};this.renderedElements.push(_)}this.trait.renderIndex(o,s)}splice(i,o,s){let c=[];for(let _ of this.renderedElements)_.index=i+o&&c.push({index:_.index+s-o,templateData:_.templateData});this.renderedElements=c}renderIndexes(i){for(let{index:o,templateData:s}of this.renderedElements)i.indexOf(o)>-1&&this.trait.renderIndex(o,s)}disposeTemplate(i){let o=this.renderedElements.findIndex(s=>s.templateData===i);o<0||this.renderedElements.splice(o,1)}},b3e=class{get name(){return this._trait}get renderer(){return new uoi(this)}constructor(i){this._trait=i,this.indexes=[],this.sortedIndexes=[],this._onChange=new fn,this.onChange=this._onChange.event}splice(i,o,s){let c=s.length-o,_=i+o,h=[],b=0;for(;b=_;)h.push(this.sortedIndexes[b++]+c);this.renderer.splice(i,o,s.length),this._set(h,h)}renderIndex(i,o){o.classList.toggle(this._trait,this.contains(i))}unrender(i){i.classList.remove(this._trait)}set(i,o){return this._set(i,[...i].sort(yTi),o)}_set(i,o,s){let c=this.indexes,_=this.sortedIndexes;this.indexes=i,this.sortedIndexes=o;let h=poi(_,i);return this.renderer.renderIndexes(h),this._onChange.fire({indexes:i,browserEvent:s}),c}get(){return this.indexes}contains(i){return hle(this.sortedIndexes,i,yTi)>=0}dispose(){a_(this._onChange)}};Ffe([Cv],b3e.prototype,"renderer",null);doi=class extends b3e{constructor(i){super("selected"),this.setAriaSelected=i}renderIndex(i,o){super.renderIndex(i,o),this.setAriaSelected&&(this.contains(i)?o.setAttribute("aria-selected","true"):o.setAttribute("aria-selected","false"))}},xst=class{constructor(i,o,s){this.trait=i,this.view=o,this.identityProvider=s}splice(i,o,s){if(!this.identityProvider)return this.trait.splice(i,o,new Array(s.length).fill(!1));let c=this.trait.get().map(b=>this.identityProvider.getId(this.view.element(b)).toString());if(c.length===0)return this.trait.splice(i,o,new Array(s.length).fill(!1));let _=new Set(c),h=s.map(b=>_.has(this.identityProvider.getId(b).toString()));this.trait.splice(i,o,h)}};$0t=class{get onKeyDown(){return Yo.chain(this.disposables.add(new Yd(this.view.domNode,"keydown")).event,i=>i.filter(o=>!_ue(o.target)).map(o=>new w_(o)))}constructor(i,o,s){this.list=i,this.view=o,this.disposables=new pr,this.multipleSelectionDisposables=new pr,this.multipleSelectionSupport=s.multipleSelectionSupport,this.disposables.add(this.onKeyDown(c=>{switch(c.keyCode){case 3:return this.onEnter(c);case 16:return this.onUpArrow(c);case 18:return this.onDownArrow(c);case 11:return this.onPageUpArrow(c);case 12:return this.onPageDownArrow(c);case 9:return this.onEscape(c);case 31:this.multipleSelectionSupport&&(uu?c.metaKey:c.ctrlKey)&&this.onCtrlA(c)}}))}updateOptions(i){i.multipleSelectionSupport!==void 0&&(this.multipleSelectionSupport=i.multipleSelectionSupport)}onEnter(i){i.preventDefault(),i.stopPropagation(),this.list.setSelection(this.list.getFocus(),i.browserEvent)}onUpArrow(i){i.preventDefault(),i.stopPropagation(),this.list.focusPrevious(1,!1,i.browserEvent);let o=this.list.getFocus()[0];this.list.setAnchor(o),this.list.reveal(o),this.view.domNode.focus()}onDownArrow(i){i.preventDefault(),i.stopPropagation(),this.list.focusNext(1,!1,i.browserEvent);let o=this.list.getFocus()[0];this.list.setAnchor(o),this.list.reveal(o),this.view.domNode.focus()}onPageUpArrow(i){i.preventDefault(),i.stopPropagation(),this.list.focusPreviousPage(i.browserEvent);let o=this.list.getFocus()[0];this.list.setAnchor(o),this.list.reveal(o),this.view.domNode.focus()}onPageDownArrow(i){i.preventDefault(),i.stopPropagation(),this.list.focusNextPage(i.browserEvent);let o=this.list.getFocus()[0];this.list.setAnchor(o),this.list.reveal(o),this.view.domNode.focus()}onCtrlA(i){i.preventDefault(),i.stopPropagation(),this.list.setSelection(sI(this.list.length),i.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(i){this.list.getSelection().length&&(i.preventDefault(),i.stopPropagation(),this.list.setSelection([],i.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}};Ffe([Cv],$0t.prototype,"onKeyDown",null);(function(l){l[l.Automatic=0]="Automatic",l[l.Trigger=1]="Trigger"})(oK||(oK={}));(function(l){l[l.Idle=0]="Idle",l[l.Typing=1]="Typing"})(v3e||(v3e={}));vzi=new class{mightProducePrintableCharacter(l){return l.ctrlKey||l.metaKey||l.altKey?!1:l.keyCode>=31&&l.keyCode<=56||l.keyCode>=21&&l.keyCode<=30||l.keyCode>=98&&l.keyCode<=107||l.keyCode>=85&&l.keyCode<=95}},foi=class{constructor(i,o,s,c,_){this.list=i,this.view=o,this.keyboardNavigationLabelProvider=s,this.keyboardNavigationEventFilter=c,this.delegate=_,this.enabled=!1,this.state=v3e.Idle,this.mode=oK.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new pr,this.disposables=new pr,this.updateOptions(i.options)}updateOptions(i){var o,s;!((o=i.typeNavigationEnabled)!==null&&o!==void 0)||o?this.enable():this.disable(),this.mode=(s=i.typeNavigationMode)!==null&&s!==void 0?s:oK.Automatic}enable(){if(this.enabled)return;let i=!1,o=Yo.chain(this.enabledDisposables.add(new Yd(this.view.domNode,"keydown")).event,_=>_.filter(h=>!_ue(h.target)).filter(()=>this.mode===oK.Automatic||this.triggered).map(h=>new w_(h)).filter(h=>i||this.keyboardNavigationEventFilter(h)).filter(h=>this.delegate.mightProducePrintableCharacter(h)).forEach(h=>Kd.stop(h,!0)).map(h=>h.browserEvent.key)),s=Yo.debounce(o,()=>null,800,void 0,void 0,void 0,this.enabledDisposables);Yo.reduce(Yo.any(o,s),(_,h)=>h===null?null:(_||"")+h,void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),s(this.onClear,this,this.enabledDisposables),o(()=>i=!0,void 0,this.enabledDisposables),s(()=>i=!1,void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var i;let o=this.list.getFocus();if(o.length>0&&o[0]===this.previouslyFocused){let s=(i=this.list.options.accessibilityProvider)===null||i===void 0?void 0:i.getAriaLabel(this.list.element(o[0]));typeof s=="string"?ZS(s):s&&ZS(s.get())}this.previouslyFocused=-1}onInput(i){if(!i){this.state=v3e.Idle,this.triggered=!1;return}let o=this.list.getFocus(),s=o.length>0?o[0]:0,c=this.state===v3e.Idle?1:0;this.state=v3e.Typing;for(let _=0;_1&&D.length===1){this.previouslyFocused=s,this.list.setFocus([h]),this.list.reveal(h);return}}}else if(typeof w>"u"||tPe(i,w)){this.previouslyFocused=s,this.list.setFocus([h]),this.list.reveal(h);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}},_oi=class{constructor(i,o){this.list=i,this.view=o,this.disposables=new pr;let s=Yo.chain(this.disposables.add(new Yd(o.domNode,"keydown")).event,_=>_.filter(h=>!_ue(h.target)).map(h=>new w_(h)));Yo.chain(s,_=>_.filter(h=>h.keyCode===2&&!h.ctrlKey&&!h.metaKey&&!h.shiftKey&&!h.altKey))(this.onTab,this,this.disposables)}onTab(i){if(i.target!==this.view.domNode)return;let o=this.list.getFocus();if(o.length===0)return;let s=this.view.domElement(o[0]);if(!s)return;let c=s.querySelector("[tabIndex]");if(!c||!Py(c)||c.tabIndex===-1)return;let _=Xa(c).getComputedStyle(c);_.visibility==="hidden"||_.display==="none"||(i.preventDefault(),i.stopPropagation(),c.focus())}dispose(){this.disposables.dispose()}};gTi={isSelectionSingleChangeEvent:voi,isSelectionRangeChangeEvent:boi},Cst=class{constructor(i){this.list=i,this.disposables=new pr,this._onPointer=new fn,this.onPointer=this._onPointer.event,i.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||gTi),this.mouseSupport=typeof i.options.mouseSupport>"u"||!!i.options.mouseSupport,this.mouseSupport&&(i.onMouseDown(this.onMouseDown,this,this.disposables),i.onContextMenu(this.onContextMenu,this,this.disposables),i.onMouseDblClick(this.onDoubleClick,this,this.disposables),i.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(Ry.addTarget(i.getHTMLElement()))),Yo.any(i.onMouseClick,i.onMouseMiddleClick,i.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(i){i.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,i.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||gTi))}isSelectionSingleChangeEvent(i){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(i):!1}isSelectionRangeChangeEvent(i){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(i):!1}isSelectionChangeEvent(i){return this.isSelectionSingleChangeEvent(i)||this.isSelectionRangeChangeEvent(i)}onMouseDown(i){y3e(i.browserEvent.target)||qb()!==i.browserEvent.target&&this.list.domFocus()}onContextMenu(i){if(_ue(i.browserEvent.target)||y3e(i.browserEvent.target))return;let o=typeof i.index>"u"?[]:[i.index];this.list.setFocus(o,i.browserEvent)}onViewPointer(i){if(!this.mouseSupport||_ue(i.browserEvent.target)||y3e(i.browserEvent.target)||i.browserEvent.isHandledByList)return;i.browserEvent.isHandledByList=!0;let o=i.index;if(typeof o>"u"){this.list.setFocus([],i.browserEvent),this.list.setSelection([],i.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionChangeEvent(i))return this.changeSelection(i);this.list.setFocus([o],i.browserEvent),this.list.setAnchor(o),bzi(i.browserEvent)||this.list.setSelection([o],i.browserEvent),this._onPointer.fire(i)}onDoubleClick(i){if(_ue(i.browserEvent.target)||y3e(i.browserEvent.target)||this.isSelectionChangeEvent(i)||i.browserEvent.isHandledByList)return;i.browserEvent.isHandledByList=!0;let o=this.list.getFocus();this.list.setSelection(o,i.browserEvent)}changeSelection(i){let o=i.index,s=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(i)){if(typeof s>"u"){let O=this.list.getFocus()[0];s=O??o,this.list.setAnchor(s)}let c=Math.min(s,o),_=Math.max(s,o),h=sI(c,_+1),b=this.list.getSelection(),w=xzi(poi(b,[s]),s);if(w.length===0)return;let D=poi(h,Czi(b,w));this.list.setSelection(D,i.browserEvent),this.list.setFocus([o],i.browserEvent)}else if(this.isSelectionSingleChangeEvent(i)){let c=this.list.getSelection(),_=c.filter(h=>h!==o);this.list.setFocus([o]),this.list.setAnchor(o),c.length===_.length?this.list.setSelection([..._,o],i.browserEvent):this.list.setSelection(_,i.browserEvent)}}dispose(){this.disposables.dispose()}},kst=class{constructor(i,o){this.styleElement=i,this.selectorSuffix=o}style(i){var o,s;let c=this.selectorSuffix&&`.${this.selectorSuffix}`,_=[];i.listBackground&&_.push(`.monaco-list${c} .monaco-list-rows { background: ${i.listBackground}; }`),i.listFocusBackground&&(_.push(`.monaco-list${c}:focus .monaco-list-row.focused { background-color: ${i.listFocusBackground}; }`),_.push(`.monaco-list${c}:focus .monaco-list-row.focused:hover { background-color: ${i.listFocusBackground}; }`)),i.listFocusForeground&&_.push(`.monaco-list${c}:focus .monaco-list-row.focused { color: ${i.listFocusForeground}; }`),i.listActiveSelectionBackground&&(_.push(`.monaco-list${c}:focus .monaco-list-row.selected { background-color: ${i.listActiveSelectionBackground}; }`),_.push(`.monaco-list${c}:focus .monaco-list-row.selected:hover { background-color: ${i.listActiveSelectionBackground}; }`)),i.listActiveSelectionForeground&&_.push(`.monaco-list${c}:focus .monaco-list-row.selected { color: ${i.listActiveSelectionForeground}; }`),i.listActiveSelectionIconForeground&&_.push(`.monaco-list${c}:focus .monaco-list-row.selected .codicon { color: ${i.listActiveSelectionIconForeground}; }`),i.listFocusAndSelectionBackground&&_.push(` + .monaco-drag-image, + .monaco-list${c}:focus .monaco-list-row.selected.focused { background-color: ${i.listFocusAndSelectionBackground}; } + `),i.listFocusAndSelectionForeground&&_.push(` + .monaco-drag-image, + .monaco-list${c}:focus .monaco-list-row.selected.focused { color: ${i.listFocusAndSelectionForeground}; } + `),i.listInactiveFocusForeground&&(_.push(`.monaco-list${c} .monaco-list-row.focused { color: ${i.listInactiveFocusForeground}; }`),_.push(`.monaco-list${c} .monaco-list-row.focused:hover { color: ${i.listInactiveFocusForeground}; }`)),i.listInactiveSelectionIconForeground&&_.push(`.monaco-list${c} .monaco-list-row.focused .codicon { color: ${i.listInactiveSelectionIconForeground}; }`),i.listInactiveFocusBackground&&(_.push(`.monaco-list${c} .monaco-list-row.focused { background-color: ${i.listInactiveFocusBackground}; }`),_.push(`.monaco-list${c} .monaco-list-row.focused:hover { background-color: ${i.listInactiveFocusBackground}; }`)),i.listInactiveSelectionBackground&&(_.push(`.monaco-list${c} .monaco-list-row.selected { background-color: ${i.listInactiveSelectionBackground}; }`),_.push(`.monaco-list${c} .monaco-list-row.selected:hover { background-color: ${i.listInactiveSelectionBackground}; }`)),i.listInactiveSelectionForeground&&_.push(`.monaco-list${c} .monaco-list-row.selected { color: ${i.listInactiveSelectionForeground}; }`),i.listHoverBackground&&_.push(`.monaco-list${c}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${i.listHoverBackground}; }`),i.listHoverForeground&&_.push(`.monaco-list${c}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${i.listHoverForeground}; }`);let h=oj(i.listFocusAndSelectionOutline,oj(i.listSelectionOutline,(o=i.listFocusOutline)!==null&&o!==void 0?o:""));h&&_.push(`.monaco-list${c}:focus .monaco-list-row.focused.selected { outline: 1px solid ${h}; outline-offset: -1px;}`),i.listFocusOutline&&_.push(` + .monaco-drag-image, + .monaco-list${c}:focus .monaco-list-row.focused { outline: 1px solid ${i.listFocusOutline}; outline-offset: -1px; } + .monaco-workbench.context-menu-visible .monaco-list${c}.last-focused .monaco-list-row.focused { outline: 1px solid ${i.listFocusOutline}; outline-offset: -1px; } + `);let b=oj(i.listSelectionOutline,(s=i.listInactiveFocusOutline)!==null&&s!==void 0?s:"");b&&_.push(`.monaco-list${c} .monaco-list-row.focused.selected { outline: 1px dotted ${b}; outline-offset: -1px; }`),i.listSelectionOutline&&_.push(`.monaco-list${c} .monaco-list-row.selected { outline: 1px dotted ${i.listSelectionOutline}; outline-offset: -1px; }`),i.listInactiveFocusOutline&&_.push(`.monaco-list${c} .monaco-list-row.focused { outline: 1px dotted ${i.listInactiveFocusOutline}; outline-offset: -1px; }`),i.listHoverOutline&&_.push(`.monaco-list${c} .monaco-list-row:hover { outline: 1px dashed ${i.listHoverOutline}; outline-offset: -1px; }`),i.listDropOverBackground&&_.push(` + .monaco-list${c}.drop-target, + .monaco-list${c} .monaco-list-rows.drop-target, + .monaco-list${c} .monaco-list-row.drop-target { background-color: ${i.listDropOverBackground} !important; color: inherit !important; } + `),i.listDropBetweenBackground&&(_.push(` + .monaco-list${c} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before, + .monaco-list${c} .monaco-list-row.drop-target-before::before { + content: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px; + background-color: ${i.listDropBetweenBackground}; + }`),_.push(` + .monaco-list${c} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after, + .monaco-list${c} .monaco-list-row.drop-target-after::after { + content: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px; + background-color: ${i.listDropBetweenBackground}; + }`)),i.tableColumnsBorder&&_.push(` + .monaco-table > .monaco-split-view2, + .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before, + .monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2, + .monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before { + border-color: ${i.tableColumnsBorder}; + } + + .monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2, + .monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before { + border-color: transparent; + } + `),i.tableOddRowsBackgroundColor&&_.push(` + .monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr, + .monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr, + .monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr { + background-color: ${i.tableOddRowsBackgroundColor}; + } + `),this.styleElement.textContent=_.join(` +`)}},STi={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:Kr.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:Kr.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:Kr.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},Szi={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}}};yTi=(l,i)=>l-i,moi=class{constructor(i,o){this._templateId=i,this.renderers=o}get templateId(){return this._templateId}renderTemplate(i){return this.renderers.map(o=>o.renderTemplate(i))}renderElement(i,o,s,c){let _=0;for(let h of this.renderers)h.renderElement(i,o,s[_++],c)}disposeElement(i,o,s,c){var _;let h=0;for(let b of this.renderers)(_=b.disposeElement)===null||_===void 0||_.call(b,i,o,s[h],c),h+=1}disposeTemplate(i){let o=0;for(let s of this.renderers)s.disposeTemplate(i[o++])}},hoi=class{constructor(i){this.accessibilityProvider=i,this.templateId="a18n"}renderTemplate(i){return{container:i,disposables:new pr}}renderElement(i,o,s){let c=this.accessibilityProvider.getAriaLabel(i),_=c&&typeof c!="string"?c:tP(c);s.disposables.add(au(b=>{this.setAriaLabel(b.readObservable(_),s.container)}));let h=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(i);typeof h=="number"?s.container.setAttribute("aria-level",`${h}`):s.container.removeAttribute("aria-level")}setAriaLabel(i,o){i?o.setAttribute("aria-label",i):o.removeAttribute("aria-label")}disposeElement(i,o,s,c){s.disposables.clear()}disposeTemplate(i){i.disposables.dispose()}},goi=class{constructor(i,o){this.list=i,this.dnd=o}getDragElements(i){let o=this.list.getSelectedElements();return o.indexOf(i)>-1?o:[i]}getDragURI(i){return this.dnd.getDragURI(i)}getDragLabel(i,o){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(i,o)}onDragStart(i,o){var s,c;(c=(s=this.dnd).onDragStart)===null||c===void 0||c.call(s,i,o)}onDragOver(i,o,s,c,_){return this.dnd.onDragOver(i,o,s,c,_)}onDragLeave(i,o,s,c){var _,h;(h=(_=this.dnd).onDragLeave)===null||h===void 0||h.call(_,i,o,s,c)}onDragEnd(i){var o,s;(s=(o=this.dnd).onDragEnd)===null||s===void 0||s.call(o,i)}drop(i,o,s,c,_){this.dnd.drop(i,o,s,c,_)}dispose(){this.dnd.dispose()}},Aw=class{get onDidChangeFocus(){return Yo.map(this.eventBufferer.wrapEvent(this.focus.onChange),i=>this.toListEvent(i),this.disposables)}get onDidChangeSelection(){return Yo.map(this.eventBufferer.wrapEvent(this.selection.onChange),i=>this.toListEvent(i),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let i=!1,o=Yo.chain(this.disposables.add(new Yd(this.view.domNode,"keydown")).event,_=>_.map(h=>new w_(h)).filter(h=>i=h.keyCode===58||h.shiftKey&&h.keyCode===68).map(h=>Kd.stop(h,!0)).filter(()=>!1)),s=Yo.chain(this.disposables.add(new Yd(this.view.domNode,"keyup")).event,_=>_.forEach(()=>i=!1).map(h=>new w_(h)).filter(h=>h.keyCode===58||h.shiftKey&&h.keyCode===68).map(h=>Kd.stop(h,!0)).map(({browserEvent:h})=>{let b=this.getFocus(),w=b.length?b[0]:void 0,D=typeof w<"u"?this.view.element(w):void 0,O=typeof w<"u"?this.view.domElement(w):this.view.domNode;return{index:w,element:D,anchor:O,browserEvent:h}})),c=Yo.chain(this.view.onContextMenu,_=>_.filter(h=>!i).map(({element:h,index:b,browserEvent:w})=>({element:h,index:b,anchor:new h2(Xa(this.view.domNode),w),browserEvent:w})));return Yo.any(o,s,c)}get onKeyDown(){return this.disposables.add(new Yd(this.view.domNode,"keydown")).event}get onDidFocus(){return Yo.signal(this.disposables.add(new Yd(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return Yo.signal(this.disposables.add(new Yd(this.view.domNode,"blur",!0)).event)}constructor(i,o,s,c,_=Szi){var h,b,w,D;this.user=i,this._options=_,this.focus=new b3e("focused"),this.anchor=new b3e("anchor"),this.eventBufferer=new PK,this._ariaLabel="",this.disposables=new pr,this._onDidDispose=new fn,this.onDidDispose=this._onDidDispose.event;let O=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(h=this._options.accessibilityProvider)===null||h===void 0?void 0:h.getWidgetRole():"list";this.selection=new doi(O!=="listbox");let j=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=_.accessibilityProvider,this.accessibilityProvider&&(j.push(new hoi(this.accessibilityProvider)),(w=(b=this.accessibilityProvider).onDidChangeActiveDescendant)===null||w===void 0||w.call(b,this.onDidChangeActiveDescendant,this,this.disposables)),c=c.map(X=>new moi(X.templateId,[...j,X]));let F={..._,dnd:_.dnd&&new goi(this,_.dnd)};if(this.view=this.createListView(o,s,c,F),this.view.domNode.setAttribute("role",O),_.styleController)this.styleController=_.styleController(this.view.domId);else{let X=ww(this.view.domNode);this.styleController=new kst(X,this.view.domId)}if(this.spliceable=new F0t([new xst(this.focus,this.view,_.identityProvider),new xst(this.selection,this.view,_.identityProvider),new xst(this.anchor,this.view,_.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new _oi(this,this.view)),(typeof _.keyboardSupport!="boolean"||_.keyboardSupport)&&(this.keyboardController=new $0t(this,this.view,_),this.disposables.add(this.keyboardController)),_.keyboardNavigationLabelProvider){let X=_.keyboardNavigationDelegate||vzi;this.typeNavigationController=new foi(this,this.view,_.keyboardNavigationLabelProvider,(D=_.keyboardNavigationEventFilter)!==null&&D!==void 0?D:()=>!0,X),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(_),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(i,o,s,c){return new P7(i,o,s,c)}createMouseController(i){return new Cst(this)}updateOptions(i={}){var o,s;this._options={...this._options,...i},(o=this.typeNavigationController)===null||o===void 0||o.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(i),(s=this.keyboardController)===null||s===void 0||s.updateOptions(i),this.view.updateOptions(i)}get options(){return this._options}splice(i,o,s=[]){if(i<0||i>this.view.length)throw new LX(this.user,`Invalid start index: ${i}`);if(o<0)throw new LX(this.user,`Invalid delete count: ${o}`);o===0&&s.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(i,o,s))}rerender(){this.view.rerender()}element(i){return this.view.element(i)}indexOf(i){return this.view.indexOf(i)}indexAt(i){return this.view.indexAt(i)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(i){this.view.setScrollTop(i)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(i){this._ariaLabel=i,this.view.domNode.setAttribute("aria-label",i)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(i,o){this.view.layout(i,o)}setSelection(i,o){for(let s of i)if(s<0||s>=this.length)throw new LX(this.user,`Invalid index ${s}`);this.selection.set(i,o)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(i=>this.view.element(i))}setAnchor(i){if(typeof i>"u"){this.anchor.set([]);return}if(i<0||i>=this.length)throw new LX(this.user,`Invalid index ${i}`);this.anchor.set([i])}getAnchor(){return L4e(this.anchor.get(),void 0)}getAnchorElement(){let i=this.getAnchor();return typeof i>"u"?void 0:this.element(i)}setFocus(i,o){for(let s of i)if(s<0||s>=this.length)throw new LX(this.user,`Invalid index ${s}`);this.focus.set(i,o)}focusNext(i=1,o=!1,s,c){if(this.length===0)return;let _=this.focus.get(),h=this.findNextIndex(_.length>0?_[0]+i:0,o,c);h>-1&&this.setFocus([h],s)}focusPrevious(i=1,o=!1,s,c){if(this.length===0)return;let _=this.focus.get(),h=this.findPreviousIndex(_.length>0?_[0]-i:0,o,c);h>-1&&this.setFocus([h],s)}async focusNextPage(i,o){let s=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);s=s===0?0:s-1;let c=this.getFocus()[0];if(c!==s&&(c===void 0||s>c)){let _=this.findPreviousIndex(s,!1,o);_>-1&&c!==_?this.setFocus([_],i):this.setFocus([s],i)}else{let _=this.view.getScrollTop(),h=_+this.view.renderHeight;s>c&&(h-=this.view.elementHeight(s)),this.view.setScrollTop(h),this.view.getScrollTop()!==_&&(this.setFocus([]),await sL(0),await this.focusNextPage(i,o))}}async focusPreviousPage(i,o,s=()=>0){let c,_=s(),h=this.view.getScrollTop()+_;h===0?c=this.view.indexAt(h):c=this.view.indexAfter(h-1);let b=this.getFocus()[0];if(b!==c&&(b===void 0||b>=c)){let w=this.findNextIndex(c,!1,o);w>-1&&b!==w?this.setFocus([w],i):this.setFocus([c],i)}else{let w=h;this.view.setScrollTop(h-this.view.renderHeight-_),this.view.getScrollTop()+s()!==w&&(this.setFocus([]),await sL(0),await this.focusPreviousPage(i,o,s))}}focusLast(i,o){if(this.length===0)return;let s=this.findPreviousIndex(this.length-1,!1,o);s>-1&&this.setFocus([s],i)}focusFirst(i,o){this.focusNth(0,i,o)}focusNth(i,o,s){if(this.length===0)return;let c=this.findNextIndex(i,!1,s);c>-1&&this.setFocus([c],o)}findNextIndex(i,o=!1,s){for(let c=0;c=this.length&&!o)return-1;if(i=i%this.length,!s||s(this.element(i)))return i;i++}return-1}findPreviousIndex(i,o=!1,s){for(let c=0;cthis.view.element(i))}reveal(i,o,s=0){if(i<0||i>=this.length)throw new LX(this.user,`Invalid index ${i}`);let c=this.view.getScrollTop(),_=this.view.elementTop(i),h=this.view.elementHeight(i);if(u7(o)){let b=h-this.view.renderHeight+s;this.view.setScrollTop(b*k2(o,0,1)+_-s)}else{let b=_+h,w=c+this.view.renderHeight;_=w||(_=w&&h>=this.view.renderHeight?this.view.setScrollTop(_-s):b>=w&&this.view.setScrollTop(b-this.view.renderHeight))}}getRelativeTop(i,o=0){if(i<0||i>=this.length)throw new LX(this.user,`Invalid index ${i}`);let s=this.view.getScrollTop(),c=this.view.elementTop(i),_=this.view.elementHeight(i);if(cs+this.view.renderHeight)return null;let h=_-this.view.renderHeight+o;return Math.abs((s+o-c)/h)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(i){return this.view.getElementDomId(i)}getElementTop(i){return this.view.elementTop(i)}style(i){this.styleController.style(i)}toListEvent({indexes:i,browserEvent:o}){return{indexes:i,elements:i.map(s=>this.view.element(s)),browserEvent:o}}_onFocusChange(){let i=this.focus.get();this.view.domNode.classList.toggle("element-focused",i.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var i;let o=this.focus.get();if(o.length>0){let s;!((i=this.accessibilityProvider)===null||i===void 0)&&i.getActiveDescendantId&&(s=this.accessibilityProvider.getActiveDescendantId(this.view.element(o[0]))),this.view.domNode.setAttribute("aria-activedescendant",s||this.view.getElementDomId(o[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){let i=this.selection.get();this.view.domNode.classList.toggle("selection-none",i.length===0),this.view.domNode.classList.toggle("selection-single",i.length===1),this.view.domNode.classList.toggle("selection-multiple",i.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}};Ffe([Cv],Aw.prototype,"onDidChangeFocus",null);Ffe([Cv],Aw.prototype,"onDidChangeSelection",null);Ffe([Cv],Aw.prototype,"onContextMenu",null);Ffe([Cv],Aw.prototype,"onKeyDown",null);Ffe([Cv],Aw.prototype,"onDidFocus",null);Ffe([Cv],Aw.prototype,"onDidBlur",null)});var xTi=Ht(()=>{});var lPe,CTi,Soi,uPe,kTi=Ht(()=>{va();mW();jD();Zot();wj();B2();pue();su();Pa();p7();$r();uf();xTi();Fs();lPe=No,CTi="selectOption.entry.template",Soi=class{get templateId(){return CTi}renderTemplate(i){let o=Object.create(null);return o.root=i,o.text=bo(i,lPe(".option-text")),o.detail=bo(i,lPe(".option-detail")),o.decoratorRight=bo(i,lPe(".option-decorator-right")),o}renderElement(i,o,s){let c=s,_=i.text,h=i.detail,b=i.decoratorRight,w=i.isDisabled;c.text.textContent=_,c.detail.textContent=h||"",c.decoratorRight.innerText=b||"",w?c.root.classList.add("option-disabled"):c.root.classList.remove("option-disabled")}disposeTemplate(i){}},uPe=class l extends Ui{constructor(i,o,s,c,_){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=c,this.selectBoxOptions=_||Object.create(null),typeof this.selectBoxOptions.minBottomMargin!="number"?this.selectBoxOptions.minBottomMargin=l.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding",typeof this.selectBoxOptions.ariaLabel=="string"&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),typeof this.selectBoxOptions.ariaDescription=="string"&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new fn,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(s),this.selected=o||0,i&&this.setOptions(i,o),this.initStyleSheet()}setTitle(i){!this._hover&&i?this._hover=this._register(j2().setupUpdatableHover(P1("mouse"),this.selectElement,i)):this._hover&&this._hover.update(i)}getHeight(){return 22}getTemplateId(){return CTi}constructSelectDropDown(i){this.contextViewProvider=i,this.selectDropDownContainer=No(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=bo(this.selectDropDownContainer,lPe(".select-box-details-pane"));let o=bo(this.selectDropDownContainer,lPe(".select-box-dropdown-container-width-control")),s=bo(o,lPe(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",bo(s,this.widthControlElement),this._dropDownPosition=0,this.styleElement=ww(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(Tr(this.selectDropDownContainer,$o.DRAG_START,c=>{Kd.stop(c,!0)}))}registerListeners(){this._register(Cm(this.selectElement,"change",o=>{this.selected=o.target.selectedIndex,this._onDidSelect.fire({index:o.target.selectedIndex,selected:o.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)})),this._register(Tr(this.selectElement,$o.CLICK,o=>{Kd.stop(o),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(Tr(this.selectElement,$o.MOUSE_DOWN,o=>{Kd.stop(o)}));let i;this._register(Tr(this.selectElement,"touchstart",o=>{i=this._isVisible})),this._register(Tr(this.selectElement,"touchend",o=>{Kd.stop(o),i?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(Tr(this.selectElement,$o.KEY_DOWN,o=>{let s=new w_(o),c=!1;uu?(s.keyCode===18||s.keyCode===16||s.keyCode===10||s.keyCode===3)&&(c=!0):(s.keyCode===18&&s.altKey||s.keyCode===16&&s.altKey||s.keyCode===10||s.keyCode===3)&&(c=!0),c&&(this.showSelectDropDown(),Kd.stop(o,!0))}))}get onDidSelect(){return this._onDidSelect.event}setOptions(i,o){Op(this.options,i)||(this.options=i,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach((s,c)=>{this.selectElement.add(this.createOption(s.text,c,s.isDisabled)),typeof s.description=="string"&&(this._hasDetails=!0)})),o!==void 0&&(this.select(o),this._currentSelection=this.selected)}setOptionsList(){var i;(i=this.selectList)===null||i===void 0||i.splice(0,this.selectList.length,this.options)}select(i){i>=0&&ithis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(i){this.selectElement.tabIndex=i?0:-1}render(i){this.container=i,i.classList.add("select-container"),i.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){let i=[];this.styles.listFocusBackground&&i.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&i.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&i.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(i.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),i.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),i.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(i.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),i.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&i.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&i.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&i.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&i.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),i.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),i.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=i.join(` +`)}styleSelectElement(){var i,o,s;let c=(i=this.styles.selectBackground)!==null&&i!==void 0?i:"",_=(o=this.styles.selectForeground)!==null&&o!==void 0?o:"",h=(s=this.styles.selectBorder)!==null&&s!==void 0?s:"";this.selectElement.style.backgroundColor=c,this.selectElement.style.color=_,this.selectElement.style.borderColor=h}styleList(){var i,o;let s=(i=this.styles.selectBackground)!==null&&i!==void 0?i:"",c=oj(this.styles.selectListBackground,s);this.selectDropDownListContainer.style.backgroundColor=c,this.selectionDetailsPane.style.backgroundColor=c;let _=(o=this.styles.focusBorder)!==null&&o!==void 0?o:"";this.selectDropDownContainer.style.outlineColor=_,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(i,o,s){let c=document.createElement("option");return c.value=i,c.text=i,c.disabled=!!s,c}showSelectDropDown(){this.selectionDetailsPane.innerText="",!(!this.contextViewProvider||this._isVisible)&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:i=>this.renderSelectDropDown(i,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:i=>this.renderSelectDropDown(i),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(i){!this.contextViewProvider||!this._isVisible||(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),i&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(i,o){return i.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(o),{dispose:()=>{try{i.removeChild(this.selectDropDownContainer)}catch{}}}}measureMaxDetailsHeight(){let i=0;return this.options.forEach((o,s)=>{this.updateDetail(s),this.selectionDetailsPane.offsetHeight>i&&(i=this.selectionDetailsPane.offsetHeight)}),i}layoutSelectDropDown(i){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");let o=Xa(this.selectElement),s=Qm(this.selectElement),c=Xa(this.selectElement).getComputedStyle(this.selectElement),_=parseFloat(c.getPropertyValue("--dropdown-padding-top"))+parseFloat(c.getPropertyValue("--dropdown-padding-bottom")),h=o.innerHeight-s.top-s.height-(this.selectBoxOptions.minBottomMargin||0),b=s.top-l.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,w=this.selectElement.offsetWidth,D=this.setWidthControlElement(this.widthControlElement),O=Math.max(D,Math.round(w)).toString()+"px";this.selectDropDownContainer.style.width=O,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let j=this.selectList.contentHeight;this._hasDetails&&this._cachedMaxDetailsHeight===void 0&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());let F=this._hasDetails?this._cachedMaxDetailsHeight:0,X=j+_+F,K=Math.floor((h-_-F)/this.getHeight()),re=Math.floor((b-_-F)/this.getHeight());if(i)return s.top+s.height>o.innerHeight-22||s.topK&&this.options.length>K?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(s.top+s.height>o.innerHeight-22||s.toph&&(j=K*this.getHeight())}else X>b&&(j=re*this.getHeight());return this.selectList.layout(j),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=j+_+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=j+_+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=O,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}else return!1}setWidthControlElement(i){let o=0;if(i){let s=0,c=0;this.options.forEach((_,h)=>{let b=_.detail?_.detail.length:0,w=_.decoratorRight?_.decoratorRight.length:0,D=_.text.length+b+w;D>c&&(s=h,c=D)}),i.textContent=this.options[s].text+(this.options[s].decoratorRight?this.options[s].decoratorRight+" ":""),o=zD(i)}return o}createSelectList(i){if(this.selectList)return;this.selectDropDownListContainer=bo(i,lPe(".select-box-dropdown-list-container")),this.listRenderer=new Soi,this.selectList=new Aw("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:c=>{let _=c.text;return c.detail&&(_+=`. ${c.detail}`),c.decoratorRight&&(_+=`. ${c.decoratorRight}`),c.description&&(_+=`. ${c.description}`),_},getWidgetAriaLabel:()=>de({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>uu?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);let o=this._register(new Yd(this.selectDropDownListContainer,"keydown")),s=Yo.chain(o.event,c=>c.filter(()=>this.selectList.length>0).map(_=>new w_(_)));this._register(Yo.chain(s,c=>c.filter(_=>_.keyCode===3))(this.onEnter,this)),this._register(Yo.chain(s,c=>c.filter(_=>_.keyCode===2))(this.onEnter,this)),this._register(Yo.chain(s,c=>c.filter(_=>_.keyCode===9))(this.onEscape,this)),this._register(Yo.chain(s,c=>c.filter(_=>_.keyCode===16))(this.onUpArrow,this)),this._register(Yo.chain(s,c=>c.filter(_=>_.keyCode===18))(this.onDownArrow,this)),this._register(Yo.chain(s,c=>c.filter(_=>_.keyCode===12))(this.onPageDown,this)),this._register(Yo.chain(s,c=>c.filter(_=>_.keyCode===11))(this.onPageUp,this)),this._register(Yo.chain(s,c=>c.filter(_=>_.keyCode===14))(this.onHome,this)),this._register(Yo.chain(s,c=>c.filter(_=>_.keyCode===13))(this.onEnd,this)),this._register(Yo.chain(s,c=>c.filter(_=>_.keyCode>=21&&_.keyCode<=56||_.keyCode>=85&&_.keyCode<=113))(this.onCharacter,this)),this._register(Tr(this.selectList.getHTMLElement(),$o.POINTER_UP,c=>this.onPointerUp(c))),this._register(this.selectList.onMouseOver(c=>typeof c.index<"u"&&this.selectList.setFocus([c.index]))),this._register(this.selectList.onDidChangeFocus(c=>this.onListFocus(c))),this._register(Tr(this.selectDropDownContainer,$o.FOCUS_OUT,c=>{!this._isVisible||D1(c.relatedTarget,this.selectDropDownContainer)||this.onListBlur()})),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(i){if(!this.selectList.length)return;Kd.stop(i);let o=i.target;if(!o||o.classList.contains("slider"))return;let s=o.closest(".monaco-list-row");if(!s)return;let c=Number(s.getAttribute("data-index")),_=s.classList.contains("option-disabled");c>=0&&c{for(let h=0;h<_.childNodes.length;h++){let b=_.childNodes.item(h);(b.tagName&&b.tagName.toLowerCase())==="img"?_.removeChild(b):s(b)}},c=Tfe({value:i,supportThemeIcons:!0},{actionHandler:o});return c.element.classList.add("select-box-description-markdown"),s(c.element),c.element}onListFocus(i){!this._isVisible||!this._hasDetails||this.updateDetail(i.indexes[0])}updateDetail(i){var o,s;this.selectionDetailsPane.innerText="";let c=this.options[i],_=(o=c?.description)!==null&&o!==void 0?o:"",h=(s=c?.descriptionIsMarkdown)!==null&&s!==void 0?s:!1;if(_){if(h){let b=c.descriptionMarkdownActionHandler;this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(_,b))}else this.selectionDetailsPane.innerText=_;this.selectionDetailsPane.style.display="block"}else this.selectionDetailsPane.style.display="none";this._skipLayout=!0,this.contextViewProvider.layout(),this._skipLayout=!1}onEscape(i){Kd.stop(i),this.select(this._currentSelection),this.hideSelectDropDown(!0)}onEnter(i){Kd.stop(i),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0)}onDownArrow(i){if(this.selectedthis.selected+2)this.selected+=2;else{if(o)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(i){this.selected>0&&(Kd.stop(i,!0),this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]))}onPageUp(i){Kd.stop(i),this.selectList.focusPreviousPage(),setTimeout(()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)},1)}onHome(i){Kd.stop(i),!(this.options.length<2)&&(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(i){Kd.stop(i),!(this.options.length<2)&&(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(i){let o=Uj.toString(i.keyCode),s=-1;for(let c=0;c{va();JF();su();Pa();$r();uf();G0t=class extends Ui{constructor(i,o,s,c){super(),this.selected=0,this.selectBoxOptions=c||Object.create(null),this.options=[],this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box",typeof this.selectBoxOptions.ariaLabel=="string"&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),typeof this.selectBoxOptions.ariaDescription=="string"&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=this._register(new fn),this.styles=s,this.registerListeners(),this.setOptions(i,o)}registerListeners(){this._register(Ry.addTarget(this.selectElement)),[Zm.Tap].forEach(i=>{this._register(Tr(this.selectElement,i,o=>{this.selectElement.focus()}))}),this._register(Cm(this.selectElement,"click",i=>{Kd.stop(i,!0)})),this._register(Cm(this.selectElement,"change",i=>{this.selectElement.title=i.target.value,this._onDidSelect.fire({index:i.target.selectedIndex,selected:i.target.value})})),this._register(Cm(this.selectElement,"keydown",i=>{let o=!1;uu?(i.keyCode===18||i.keyCode===16||i.keyCode===10)&&(o=!0):(i.keyCode===18&&i.altKey||i.keyCode===10||i.keyCode===3)&&(o=!0),o&&i.stopPropagation()}))}get onDidSelect(){return this._onDidSelect.event}setOptions(i,o){(!this.options||!Op(this.options,i))&&(this.options=i,this.selectElement.options.length=0,this.options.forEach((s,c)=>{this.selectElement.add(this.createOption(s.text,c,s.isDisabled))})),o!==void 0&&this.select(o)}select(i){this.options.length===0?this.selected=0:i>=0&&ithis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected{});var K0t,ETi=Ht(()=>{kTi();wTi();gj();uf();TTi();K0t=class extends ex{constructor(i,o,s,c,_){super(),uu&&!_?.useCustomDrawn?this.selectBoxDelegate=new G0t(i,o,c,_):this.selectBoxDelegate=new uPe(i,o,s,c,_),this._register(this.selectBoxDelegate)}get onDidSelect(){return this.selectBoxDelegate.onDidSelect}setOptions(i,o){this.selectBoxDelegate.setOptions(i,o)}select(i){this.selectBoxDelegate.select(i)}focus(){this.selectBoxDelegate.focus()}blur(){this.selectBoxDelegate.blur()}setFocusable(i){this.selectBoxDelegate.setFocusable(i)}render(i){this.selectBoxDelegate.render(i)}}});var xoi=Ht(()=>{});var CL,Dj,X0t,dPe=Ht(()=>{RL();L0t();va();JF();B2();ETi();Ew();$r();uf();cm();xoi();Fs();wj();CL=class extends Ui{get action(){return this._action}constructor(i,o,s={}){super(),this.options=s,this._context=i||this,this._action=o,o instanceof EC&&this._register(o.onDidChange(c=>{this.element&&this.handleActionChangeEvent(c)}))}handleActionChangeEvent(i){i.enabled!==void 0&&this.updateEnabled(),i.checked!==void 0&&this.updateChecked(),i.class!==void 0&&this.updateClass(),i.label!==void 0&&(this.updateLabel(),this.updateTooltip()),i.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new BF)),this._actionRunner}set actionRunner(i){this._actionRunner=i}isEnabled(){return this._action.enabled}setActionContext(i){this._context=i}render(i){let o=this.element=i;this._register(Ry.addTarget(i));let s=this.options&&this.options.draggable;s&&(i.draggable=!0,m2&&this._register(Tr(i,$o.DRAG_START,c=>{var _;return(_=c.dataTransfer)===null||_===void 0?void 0:_.setData(Afe.TEXT,this._action.label)}))),this._register(Tr(o,Zm.Tap,c=>this.onClick(c,!0))),this._register(Tr(o,$o.MOUSE_DOWN,c=>{s||Kd.stop(c,!0),this._action.enabled&&c.button===0&&o.classList.add("active")})),uu&&this._register(Tr(o,$o.CONTEXT_MENU,c=>{c.button===0&&c.ctrlKey===!0&&this.onClick(c)})),this._register(Tr(o,$o.CLICK,c=>{Kd.stop(c,!0),this.options&&this.options.isMenu||this.onClick(c)})),this._register(Tr(o,$o.DBLCLICK,c=>{Kd.stop(c,!0)})),[$o.MOUSE_UP,$o.MOUSE_OUT].forEach(c=>{this._register(Tr(o,c,_=>{Kd.stop(_),o.classList.remove("active")}))})}onClick(i,o=!1){var s;Kd.stop(i,!0);let c=qA(this._context)?!((s=this.options)===null||s===void 0)&&s.useEventAsContext?i:{preserveFocus:o}:this._context;this.actionRunner.run(this._action,c)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(i){this.element&&(this.element.tabIndex=i?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){var i,o,s;if(!this.element)return;let c=(i=this.getTooltip())!==null&&i!==void 0?i:"";if(this.updateAriaLabel(),!((o=this.options.hoverDelegate)===null||o===void 0)&&o.showNativeHover)this.element.title=c;else if(!this.customHover&&c!==""){let _=(s=this.options.hoverDelegate)!==null&&s!==void 0?s:P1("element");this.customHover=this._store.add(j2().setupUpdatableHover(_,this.element,c))}else this.customHover&&this.customHover.update(c)}updateAriaLabel(){var i;if(this.element){let o=(i=this.getTooltip())!==null&&i!==void 0?i:"";this.element.setAttribute("aria-label",o)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}},Dj=class extends CL{constructor(i,o,s){super(i,o,s),this.options=s,this.options.icon=s.icon!==void 0?s.icon:!1,this.options.label=s.label!==void 0?s.label:!0,this.cssClass=""}render(i){super.render(i),Xd(this.element);let o=document.createElement("a");if(o.classList.add("action-label"),o.setAttribute("role",this.getDefaultAriaRole()),this.label=o,this.element.appendChild(o),this.options.label&&this.options.keybinding){let s=document.createElement("span");s.classList.add("keybinding"),s.textContent=this.options.keybinding,this.element.appendChild(s)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===bv.ID?"presentation":this.options.isMenu?"menuitem":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(i){this.label&&(this.label.tabIndex=i?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let i=null;return this.action.tooltip?i=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(i=this.action.label,this.options.keybinding&&(i=de({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",i,this.options.keybinding))),i??void 0}updateClass(){var i;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):(i=this.label)===null||i===void 0||i.classList.remove("codicon")}updateEnabled(){var i,o;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),(i=this.element)===null||i===void 0||i.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),(o=this.element)===null||o===void 0||o.classList.add("disabled"))}updateAriaLabel(){var i;if(this.label){let o=(i=this.getTooltip())!==null&&i!==void 0?i:"";this.label.setAttribute("aria-label",o)}}updateChecked(){this.label&&(this.action.checked!==void 0?(this.label.classList.toggle("checked",this.action.checked),this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox")):(this.label.classList.remove("checked"),this.label.removeAttribute("aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}},X0t=class extends CL{constructor(i,o,s,c,_,h,b){super(i,o),this.selectBox=new K0t(s,c,_,h,b),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(i){this.selectBox.select(i)}registerListeners(){this._register(this.selectBox.onDidSelect(i=>this.runAction(i.selected,i.index)))}runAction(i,o){this.actionRunner.run(this._action,this.getActionContext(i,o))}getActionContext(i,o){return i}setFocusable(i){this.selectBox.setFocusable(i)}focus(){var i;(i=this.selectBox)===null||i===void 0||i.focus()}blur(){var i;(i=this.selectBox)===null||i===void 0||i.blur()}render(i){this.selectBox.render(i)}}});var Coi=Ht(()=>{});var koi,Y0t,DTi=Ht(()=>{va();jD();JF();Ew();Pa();Coi();koi=class extends BF{constructor(i,o){super(),this._onDidChangeVisibility=this._register(new fn),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=bo(i,No(".monaco-dropdown")),this._label=bo(this._element,No(".dropdown-label"));let s=o.labelRenderer;s||(s=_=>(_.textContent=o.label||"",null));for(let _ of[$o.CLICK,$o.MOUSE_DOWN,Zm.Tap])this._register(Tr(this.element,_,h=>Kd.stop(h,!0)));for(let _ of[$o.MOUSE_DOWN,Zm.Tap])this._register(Tr(this._label,_,h=>{u6e(h)&&(h.detail>1||h.button!==0)||(this.visible?this.hide():this.show())}));this._register(Tr(this._label,$o.KEY_UP,_=>{let h=new w_(_);(h.equals(3)||h.equals(10))&&(Kd.stop(_,!0),this.visible?this.hide():this.show())}));let c=s(this._label);c&&this._register(c),this._register(Ry.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}},Y0t=class extends koi{constructor(i,o){super(i,o),this._options=o,this._actions=[],this.actions=o.actions||[]}set menuOptions(i){this._menuOptions=i}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(i){this._actions=i}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(i,o)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(i,o):void 0,getKeyBinding:i=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(i):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}});var Mfe,woi=Ht(()=>{va();dPe();DTi();Pa();Coi();B2();wj();Mfe=class extends CL{constructor(i,o,s,c=Object.create(null)){super(null,i,c),this.actionItem=null,this._onDidChangeVisibility=this._register(new fn),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=o,this.contextMenuProvider=s,this.options=c,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(i){this.actionItem=i;let o=_=>{var h;this.element=bo(_,No("a.action-label"));let b=[];return typeof this.options.classNames=="string"?b=this.options.classNames.split(/\s+/g).filter(w=>!!w):this.options.classNames&&(b=this.options.classNames),b.find(w=>w==="icon")||b.push("codicon"),this.element.classList.add(...b),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register(j2().setupUpdatableHover((h=this.options.hoverDelegate)!==null&&h!==void 0?h:P1("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},s=Array.isArray(this.menuActionsOrProvider),c={contextMenuProvider:this.contextMenuProvider,labelRenderer:o,menuAsChild:this.options.menuAsChild,actions:s?this.menuActionsOrProvider:void 0,actionProvider:s?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new Y0t(i,c)),this._register(this.dropdownMenu.onDidChangeVisibility(_=>{var h;(h=this.element)===null||h===void 0||h.setAttribute("aria-expanded",`${_}`),this._onDidChangeVisibility.fire(_)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){let _=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return _.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let i=null;return this.action.tooltip?i=this.action.tooltip:this.action.label&&(i=this.action.label),i??void 0}setActionContext(i){super.setActionContext(i),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=i:this.dropdownMenu.menuOptions={context:i})}show(){var i;(i=this.dropdownMenu)===null||i===void 0||i.show()}updateEnabled(){var i,o;let s=!this.action.enabled;(i=this.actionItem)===null||i===void 0||i.classList.toggle("disabled",s),(o=this.element)===null||o===void 0||o.classList.toggle("disabled",s)}}});var ITi=Ht(()=>{});function NTi(l){return l&&typeof l=="object"&&typeof l.original=="string"&&typeof l.value=="string"}function ATi(l){return l?l.condition!==void 0:!1}var Toi=Ht(()=>{});var fPe,C3e,_Pe,k3e,PTi=Ht(()=>{Bu();Pa();$r();o0t();cm();(function(l){l[l.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",l[l.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"})(fPe||(fPe={}));(function(l){l[l.None=0]="None",l[l.Initialized=1]="Initialized",l[l.Closed=2]="Closed"})(C3e||(C3e={}));_Pe=class l extends Ui{constructor(i,o=Object.create(null)){super(),this.database=i,this.options=o,this._onDidChangeStorage=this._register(new XB),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=C3e.None,this.cache=new Map,this.flushDelayer=this._register(new n6e(l.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(i=>this.onDidChangeItemsExternal(i)))}onDidChangeItemsExternal(i){var o,s;this._onDidChangeStorage.pause();try{(o=i.changed)===null||o===void 0||o.forEach((c,_)=>this.acceptExternal(_,c)),(s=i.deleted)===null||s===void 0||s.forEach(c=>this.acceptExternal(c,void 0))}finally{this._onDidChangeStorage.resume()}}acceptExternal(i,o){if(this.state===C3e.Closed)return;let s=!1;qA(o)?s=this.cache.delete(i):this.cache.get(i)!==o&&(this.cache.set(i,o),s=!0),s&&this._onDidChangeStorage.fire({key:i,external:!0})}get(i,o){let s=this.cache.get(i);return qA(s)?o:s}getBoolean(i,o){let s=this.get(i);return qA(s)?o:s==="true"}getNumber(i,o){let s=this.get(i);return qA(s)?o:parseInt(s,10)}async set(i,o,s=!1){if(this.state===C3e.Closed)return;if(qA(o))return this.delete(i,s);let c=OC(o)||Array.isArray(o)?dwi(o):String(o);if(this.cache.get(i)!==c)return this.cache.set(i,c),this.pendingInserts.set(i,c),this.pendingDeletes.delete(i),this._onDidChangeStorage.fire({key:i,external:s}),this.doFlush()}async delete(i,o=!1){if(!(this.state===C3e.Closed||!this.cache.delete(i)))return this.pendingDeletes.has(i)||this.pendingDeletes.add(i),this.pendingInserts.delete(i),this._onDidChangeStorage.fire({key:i,external:o}),this.doFlush()}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;let i={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(i).finally(()=>{var o;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(o=this.whenFlushedCallbacks.pop())===null||o===void 0||o()})}async doFlush(i){return this.options.hint===fPe.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger(()=>this.flushPending(),i)}};_Pe.DEFAULT_FLUSH_DELAY=100;k3e=class{constructor(){this.onDidChangeItemsExternal=Yo.None,this.items=new Map}async updateItems(i){var o,s;(o=i.insert)===null||o===void 0||o.forEach((c,_)=>this.items.set(_,c)),(s=i.delete)===null||s===void 0||s.forEach(c=>this.items.delete(c))}}});function kzi(l){let i=l.get(Q0t);if(i)try{return JSON.parse(i)}catch{}return Object.create(null)}var Q0t,z2,Rfe,Z0t,eyt,sK=Ht(()=>{Pa();$r();cm();PTi();kc();Q0t="__$__targetStorageMarker",z2=Wc("storageService");(function(l){l[l.NONE=0]="NONE",l[l.SHUTDOWN=1]="SHUTDOWN"})(Rfe||(Rfe={}));Z0t=class l extends Ui{constructor(i={flushInterval:l.DEFAULT_FLUSH_INTERVAL}){super(),this.options=i,this._onDidChangeValue=this._register(new XB),this._onDidChangeTarget=this._register(new XB),this._onWillSaveState=this._register(new fn),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(i,o,s){return Yo.filter(this._onDidChangeValue.event,c=>c.scope===i&&(o===void 0||c.key===o),s)}emitDidChangeValue(i,o){let{key:s,external:c}=o;if(s===Q0t){switch(i){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:i})}else this._onDidChangeValue.fire({scope:i,key:s,target:this.getKeyTargets(i)[s],external:c})}get(i,o,s){var c;return(c=this.getStorage(o))===null||c===void 0?void 0:c.get(i,s)}getBoolean(i,o,s){var c;return(c=this.getStorage(o))===null||c===void 0?void 0:c.getBoolean(i,s)}getNumber(i,o,s){var c;return(c=this.getStorage(o))===null||c===void 0?void 0:c.getNumber(i,s)}store(i,o,s,c,_=!1){if(qA(o)){this.remove(i,s,_);return}this.withPausedEmitters(()=>{var h;this.updateKeyTarget(i,s,c),(h=this.getStorage(s))===null||h===void 0||h.set(i,o,_)})}remove(i,o,s=!1){this.withPausedEmitters(()=>{var c;this.updateKeyTarget(i,o,void 0),(c=this.getStorage(o))===null||c===void 0||c.delete(i,s)})}withPausedEmitters(i){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{i()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(i,o,s,c=!1){var _,h;let b=this.getKeyTargets(o);typeof s=="number"?b[i]!==s&&(b[i]=s,(_=this.getStorage(o))===null||_===void 0||_.set(Q0t,JSON.stringify(b),c)):typeof b[i]=="number"&&(delete b[i],(h=this.getStorage(o))===null||h===void 0||h.set(Q0t,JSON.stringify(b),c))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(i){switch(i){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(i){let o=this.getStorage(i);return o?kzi(o):Object.create(null)}};Z0t.DEFAULT_FLUSH_INTERVAL=60*1e3;eyt=class extends Z0t{constructor(){super(),this.applicationStorage=this._register(new _Pe(new k3e,{hint:fPe.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new _Pe(new k3e,{hint:fPe.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new _Pe(new k3e,{hint:fPe.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage(i=>this.emitDidChangeValue(1,i))),this._register(this.profileStorage.onDidChangeStorage(i=>this.emitDidChangeValue(0,i))),this._register(this.applicationStorage.onDidChangeStorage(i=>this.emitDidChangeValue(-1,i)))}getStorage(i){switch(i){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}});function wzi(l,i){let o={...i};for(let s in l){let c=l[s];o[s]=c!==void 0?ec(c):void 0}return o}function aK(l){return wzi(l,mue)}var LTi,OTi,FTi,w3e,m8n,h8n,T3e,MTi,tyt,g8n,mue,RTi,BTi,jX=Ht(()=>{Sv();j1();LTi={keybindingLabelBackground:ec(ibi),keybindingLabelForeground:ec(nbi),keybindingLabelBorder:ec(rbi),keybindingLabelBottomBorder:ec(obi),keybindingLabelShadow:ec(mj)},OTi={buttonForeground:ec(Q6e),buttonSeparator:ec(G1i),buttonBackground:ec(Z6e),buttonHoverBackground:ec(K1i),buttonSecondaryForeground:ec(Y1i),buttonSecondaryBackground:ec(Z_t),buttonSecondaryHoverBackground:ec(Q1i),buttonBorder:ec(X1i)},FTi={progressBarBackground:ec(o1i)},w3e={inputActiveOptionBorder:ec(eLe),inputActiveOptionForeground:ec(tLe),inputActiveOptionBackground:ec(GG)},m8n={checkboxBackground:ec(Z1i),checkboxBorder:ec(tbi),checkboxForeground:ec(ebi)},h8n={dialogBackground:ec(Av),dialogForeground:ec(JG),dialogShadow:ec(mj),dialogBorder:ec(If),errorIconForeground:ec(I1i),warningIconForeground:ec(N1i),infoIconForeground:ec(A1i),textLinkForeground:ec(n1i)},T3e={inputBackground:ec(Art),inputForeground:ec(ept),inputBorder:ec(tpt),inputValidationInfoBorder:ec(W1i),inputValidationInfoBackground:ec(B1i),inputValidationInfoForeground:ec(j1i),inputValidationWarningBorder:ec(H1i),inputValidationWarningBackground:ec(z1i),inputValidationWarningForeground:ec(V1i),inputValidationErrorBorder:ec(q1i),inputValidationErrorBackground:ec(U1i),inputValidationErrorForeground:ec(J1i)},MTi={listFilterWidgetBackground:ec(gbi),listFilterWidgetOutline:ec(ybi),listFilterWidgetNoMatchesOutline:ec(vbi),listFilterWidgetShadow:ec(bbi),inputBoxStyles:T3e,toggleStyles:w3e},tyt={badgeBackground:ec(J6e),badgeForeground:ec(r1i),badgeBorder:ec(If)},g8n={breadcrumbsBackground:ec(T1i),breadcrumbsForeground:ec(w1i),breadcrumbsHoverForeground:ec(Gei),breadcrumbsFocusForeground:ec(Gei),breadcrumbsFocusAndSelectionForeground:ec(E1i)},mue={listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:ec(sbi),listFocusForeground:ec(abi),listFocusOutline:ec(cbi),listActiveSelectionBackground:ec(sW),listActiveSelectionForeground:ec(hj),listActiveSelectionIconForeground:ec(hAe),listFocusAndSelectionOutline:ec(lbi),listFocusAndSelectionBackground:ec(sW),listFocusAndSelectionForeground:ec(hj),listInactiveSelectionBackground:ec(ubi),listInactiveSelectionIconForeground:ec(fbi),listInactiveSelectionForeground:ec(dbi),listInactiveFocusBackground:ec(_bi),listInactiveFocusOutline:ec(pbi),listHoverBackground:ec(Qei),listHoverForeground:ec(Zei),listDropOverBackground:ec(mbi),listDropBetweenBackground:ec(hbi),listSelectionOutline:ec(fg),listHoverOutline:ec(fg),treeIndentGuidesStroke:ec(iLe),treeInactiveIndentGuidesStroke:ec(Sbi),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0,tableColumnsBorder:ec(xbi),tableOddRowsBackgroundColor:ec(Cbi)};RTi={selectBackground:ec(oW),selectListBackground:ec($1i),selectForeground:ec($G),decoratorRightForeground:ec(npt),selectBorder:ec(Qde),focusBorder:ec(_L),listFocusBackground:ec(cW),listInactiveSelectionIconForeground:ec(Vle),listFocusForeground:ec(aW),listFocusOutline:Zvi(fg,Kr.transparent.toString()),listHoverBackground:ec(Qei),listHoverForeground:ec(Zei),listHoverOutline:ec(fg),selectListBorder:ec(qG),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},BTi={shadowColor:ec(mj),borderColor:ec(kbi),foregroundColor:ec(wbi),backgroundColor:ec(Tbi),selectionForegroundColor:ec(Ebi),selectionBackgroundColor:ec(Dbi),selectionBorderColor:ec(Ibi),separatorColor:ec(Nbi),scrollbarShadow:ec(fAe),scrollbarSliderBackground:ec(_Ae),scrollbarSliderHoverBackground:ec(pAe),scrollbarSliderActiveBackground:ec(mAe)}});function jTi(l,i,o,s){let c=l.getActions(i),_=Cle.getInstance(),h=_.keyStatus.altKey||(Ny||w1)&&_.keyStatus.shiftKey;WTi(c,o,h,s?b=>b===s:b=>b==="navigation")}function Bfe(l,i,o,s,c,_){let h=l.getActions(i);WTi(h,o,!1,typeof s=="string"?w=>w===s:s,c,_)}function WTi(l,i,o,s=h=>h==="navigation",c=()=>!1,_=!1){let h,b;Array.isArray(i)?(h=i,b=i):(h=i.primary,b=i.secondary);let w=new Set;for(let[D,O]of l){let j;s(D)?(j=h,j.length>0&&_&&j.push(new bv)):(j=b,j.length>0&&j.push(new bv));for(let F of O){o&&(F=F instanceof P2&&F.alt?F.alt:F);let X=j.push(F);F instanceof sj&&w.add({group:D,action:F,index:X-1})}}for(let{group:D,action:O,index:j}of w){let F=s(D)?h:b,X=O.actions;c(O,D,F.length)&&F.splice(j,1,...X)}}function nyt(l,i,o){return i instanceof P2?l.createInstance(cK,i,o):i instanceof Qj?i.item.isSelection?l.createInstance(Ioi,i):i.item.rememberDefaultAction?l.createInstance(Doi,i,{...o,persistLastActionId:!0}):l.createInstance(Eoi,i,o):void 0}var iyt,QL,cK,Eoi,Doi,Ioi,hue=Ht(()=>{va();jD();dPe();woi();Ew();v0t();$r();uf();ITi();Fs();Vg();Toi();du();yP();kc();By();QD();sK();_g();P0();dW();cm();Sv();jX();fL();iyt=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},QL=function(l,i){return function(o,s){i(o,s,l)}};cK=class extends Dj{constructor(i,o,s,c,_,h,b,w){super(void 0,i,{icon:!!(i.class||i.item.icon),label:!i.class&&!i.item.icon,draggable:o?.draggable,keybinding:o?.keybinding,hoverDelegate:o?.hoverDelegate}),this._keybindingService=s,this._notificationService=c,this._contextKeyService=_,this._themeService=h,this._contextMenuService=b,this._accessibilityService=w,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new Nh),this._altKey=Cle.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(i){i.preventDefault(),i.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(o){this._notificationService.error(o)}}render(i){if(super.render(i),i.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let o=!1,s=()=>{var c;let _=!!(!((c=this._menuItemAction.alt)===null||c===void 0)&&c.enabled)&&(!this._accessibilityService.isMotionReduced()||o)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&o);_!==this._wantsAltCommand&&(this._wantsAltCommand=_,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(s)),this._register(Tr(i,"mouseleave",c=>{o=!1,s()})),this._register(Tr(i,"mouseenter",c=>{o=!0,s()})),s()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var i;let o=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),s=o&&o.getLabel(),c=this._commandAction.tooltip||this._commandAction.label,_=s?de("titleAndKb","{0} ({1})",c,s):c;if(!this._wantsAltCommand&&(!((i=this._menuItemAction.alt)===null||i===void 0)&&i.enabled)){let h=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,b=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),w=b&&b.getLabel(),D=w?de("titleAndKb","{0} ({1})",h,w):h;_=de("titleAndKbAndAlt",`{0} +[{1}] {2}`,_,o3e.modifierLabels[xw].altKey,D)}return _}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(i){this._itemClassDispose.value=void 0;let{element:o,label:s}=this;if(!o||!s)return;let c=this._commandAction.checked&&ATi(i.toggled)&&i.toggled.icon?i.toggled.icon:i.icon;if(c)if(uc.isThemeIcon(c)){let _=uc.asClassNameArray(c);s.classList.add(..._),this._itemClassDispose.value=Qs(()=>{s.classList.remove(..._)})}else s.style.backgroundImage=rX(this._themeService.getColorTheme().type)?y7(c.dark):y7(c.light),s.classList.add("icon"),this._itemClassDispose.value=BD(Qs(()=>{s.style.backgroundImage="",s.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}};cK=iyt([QL(2,ju),QL(3,Em),QL(4,La),QL(5,Ph),QL(6,IC),QL(7,YS)],cK);Eoi=class extends Mfe{constructor(i,o,s,c,_){var h,b,w;let D={...o,menuAsChild:(h=o?.menuAsChild)!==null&&h!==void 0?h:!1,classNames:(b=o?.classNames)!==null&&b!==void 0?b:uc.isThemeIcon(i.item.icon)?uc.asClassName(i.item.icon):void 0,keybindingProvider:(w=o?.keybindingProvider)!==null&&w!==void 0?w:O=>s.lookupKeybinding(O.id)};super(i,{getActions:()=>i.actions},c,D),this._keybindingService=s,this._contextMenuService=c,this._themeService=_}render(i){super.render(i),Xd(this.element),i.classList.add("menu-entry");let o=this._action,{icon:s}=o.item;if(s&&!uc.isThemeIcon(s)){this.element.classList.add("icon");let c=()=>{this.element&&(this.element.style.backgroundImage=rX(this._themeService.getColorTheme().type)?y7(s.dark):y7(s.light))};c(),this._register(this._themeService.onDidColorThemeChange(()=>{c()}))}}};Eoi=iyt([QL(2,ju),QL(3,IC),QL(4,Ph)],Eoi);Doi=class extends CL{constructor(i,o,s,c,_,h,b,w){var D,O,j;super(null,i),this._keybindingService=s,this._notificationService=c,this._contextMenuService=_,this._menuService=h,this._instaService=b,this._storageService=w,this._container=null,this._options=o,this._storageKey=`${i.item.submenu.id}_lastActionId`;let F,X=o?.persistLastActionId?w.get(this._storageKey,1):void 0;X&&(F=i.actions.find(re=>X===re.id)),F||(F=i.actions[0]),this._defaultAction=this._instaService.createInstance(cK,F,{keybinding:this._getDefaultActionKeybindingLabel(F)});let K={keybindingProvider:re=>this._keybindingService.lookupKeybinding(re.id),...o,menuAsChild:(D=o?.menuAsChild)!==null&&D!==void 0?D:!0,classNames:(O=o?.classNames)!==null&&O!==void 0?O:["codicon","codicon-chevron-down"],actionRunner:(j=o?.actionRunner)!==null&&j!==void 0?j:new BF};this._dropdown=new Mfe(i,i.actions,this._contextMenuService,K),this._register(this._dropdown.actionRunner.onDidRun(re=>{re.action instanceof P2&&this.update(re.action)}))}update(i){var o;!((o=this._options)===null||o===void 0)&&o.persistLastActionId&&this._storageService.store(this._storageKey,i.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(cK,i,{keybinding:this._getDefaultActionKeybindingLabel(i)}),this._defaultAction.actionRunner=new class extends BF{async runAction(s,c){await s.run(void 0)}},this._container&&this._defaultAction.render(d6e(this._container,No(".action-container")))}_getDefaultActionKeybindingLabel(i){var o;let s;if(!((o=this._options)===null||o===void 0)&&o.renderKeybindingWithDefaultActionLabel){let c=this._keybindingService.lookupKeybinding(i.id);c&&(s=`(${c.getLabel()})`)}return s}setActionContext(i){super.setActionContext(i),this._defaultAction.setActionContext(i),this._dropdown.setActionContext(i)}render(i){this._container=i,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");let o=No(".action-container");this._defaultAction.render(bo(this._container,o)),this._register(Tr(o,$o.KEY_DOWN,c=>{let _=new w_(c);_.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),_.stopPropagation())}));let s=No(".dropdown-action-container");this._dropdown.render(bo(this._container,s)),this._register(Tr(s,$o.KEY_DOWN,c=>{var _;let h=new w_(c);h.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),(_=this._defaultAction.element)===null||_===void 0||_.focus(),h.stopPropagation())}))}focus(i){i?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(i){i?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};Doi=iyt([QL(2,ju),QL(3,Em),QL(4,IC),QL(5,Dw),QL(6,qs),QL(7,z2)],Doi);Ioi=class extends X0t{constructor(i,o){super(null,i,i.actions.map(s=>({text:s.id===bv.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":s.label,isDisabled:!s.enabled})),0,o,RTi,{ariaLabel:i.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,i.actions.findIndex(s=>s.checked)))}render(i){super.render(i),i.style.borderColor=ec(Qde)}runAction(i,o){let s=this.action.actions[o];s&&this.actionRunner.run(s)}};Ioi=iyt([QL(1,vL)],Ioi)});var NC,Ij=Ht(()=>{va();jD();dPe();B2();Ew();Pa();$r();cm();xoi();NC=class extends Ui{constructor(i,o={}){var s,c,_,h,b,w,D;super(),this._actionRunnerDisposables=this._register(new pr),this.viewItemDisposables=this._register(new dde),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new fn),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new fn({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new fn),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new fn),this.onWillRun=this._onWillRun.event,this.options=o,this._context=(s=o.context)!==null&&s!==void 0?s:null,this._orientation=(c=this.options.orientation)!==null&&c!==void 0?c:0,this._triggerKeys={keyDown:(h=(_=this.options.triggerKeys)===null||_===void 0?void 0:_.keyDown)!==null&&h!==void 0?h:!1,keys:(w=(b=this.options.triggerKeys)===null||b===void 0?void 0:b.keys)!==null&&w!==void 0?w:[3,10]},this._hoverDelegate=(D=o.hoverDelegate)!==null&&D!==void 0?D:this._register(CW()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new BF,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(F=>this._onDidRun.fire(F))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(F=>this._onWillRun.fire(F))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar";let O,j;switch(this._orientation){case 0:O=[15],j=[17];break;case 1:O=[16],j=[18],this.domNode.className+=" vertical";break}this._register(Tr(this.domNode,$o.KEY_DOWN,F=>{let X=new w_(F),K=!0,re=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;O&&(X.equals(O[0])||X.equals(O[1]))?K=this.focusPrevious():j&&(X.equals(j[0])||X.equals(j[1]))?K=this.focusNext():X.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():X.equals(14)?K=this.focusFirst():X.equals(13)?K=this.focusLast():X.equals(2)&&re instanceof CL&&re.trapsArrowNavigation?K=this.focusNext():this.isTriggerKeyEvent(X)?this._triggerKeys.keyDown?this.doTrigger(X):this.triggerKeyDown=!0:K=!1,K&&(X.preventDefault(),X.stopPropagation())})),this._register(Tr(this.domNode,$o.KEY_UP,F=>{let X=new w_(F);this.isTriggerKeyEvent(X)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(X)),X.preventDefault(),X.stopPropagation()):(X.equals(2)||X.equals(1026)||X.equals(16)||X.equals(18)||X.equals(15)||X.equals(17))&&this.updateFocusedItem()})),this.focusTracker=this._register(lI(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(qb()===this.domNode||!D1(qb(),this.domNode))&&(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),i.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(i){if(this.focusable=i,this.focusable){let o=this.viewItems.find(s=>s instanceof CL&&s.isEnabled());o instanceof CL&&o.setFocusable(!0)}else this.viewItems.forEach(o=>{o instanceof CL&&o.setFocusable(!1)})}isTriggerKeyEvent(i){let o=!1;return this._triggerKeys.keys.forEach(s=>{o=o||i.equals(s)}),o}updateFocusedItem(){var i,o;for(let s=0;so.setActionContext(i))}get actionRunner(){return this._actionRunner}set actionRunner(i){this._actionRunner=i,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(o=>this._onDidRun.fire(o))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(o=>this._onWillRun.fire(o))),this.viewItems.forEach(o=>o.actionRunner=i)}getContainer(){return this.domNode}getAction(i){var o;if(typeof i=="number")return(o=this.viewItems[i])===null||o===void 0?void 0:o.action;if(Py(i)){for(;i.parentElement!==this.actionsList;){if(!i.parentElement)return;i=i.parentElement}for(let s=0;s{let h=document.createElement("li");h.className="action-item",h.setAttribute("role","presentation");let b,w={hoverDelegate:this._hoverDelegate,...o};this.options.actionViewItemProvider&&(b=this.options.actionViewItemProvider(_,w)),b||(b=new Dj(this.context,_,w)),this.options.allowContextMenu||this.viewItemDisposables.set(b,Tr(h,$o.CONTEXT_MENU,D=>{Kd.stop(D,!0)})),b.actionRunner=this._actionRunner,b.setActionContext(this.context),b.render(h),this.focusable&&b instanceof CL&&this.viewItems.length===0&&b.setFocusable(!0),c===null||c<0||c>=this.actionsList.children.length?(this.actionsList.appendChild(h),this.viewItems.push(b)):(this.actionsList.insertBefore(h,this.actionsList.children[c]),this.viewItems.splice(c,0,b),c++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=a_(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),I1(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return this.viewItems.length===0}focus(i){let o=!1,s;if(i===void 0?o=!0:typeof i=="number"?s=i:typeof i=="boolean"&&(o=i),o&&typeof this.focusedItem>"u"){let c=this.viewItems.findIndex(_=>_.isEnabled());this.focusedItem=c===-1?void 0:c,this.updateFocus(void 0,void 0,!0)}else s!==void 0&&(this.focusedItem=s),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(i){if(typeof this.focusedItem>"u")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;let o=this.focusedItem,s;do{if(!i&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=o,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,s=this.viewItems[this.focusedItem]}while(this.focusedItem!==o&&(this.options.focusOnlyEnabledItems&&!s.isEnabled()||s.action.id===bv.ID));return this.updateFocus(),!0}focusPrevious(i){if(typeof this.focusedItem>"u")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;let o=this.focusedItem,s;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!i&&this.options.preventLoopNavigation)return this.focusedItem=o,!1;this.focusedItem=this.viewItems.length-1}s=this.viewItems[this.focusedItem]}while(this.focusedItem!==o&&(this.options.focusOnlyEnabledItems&&!s.isEnabled()||s.action.id===bv.ID));return this.updateFocus(!0),!0}updateFocus(i,o,s=!1){var c,_;typeof this.focusedItem>"u"&&this.actionsList.focus({preventScroll:o}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((c=this.viewItems[this.previouslyFocusedItem])===null||c===void 0||c.blur());let h=this.focusedItem!==void 0?this.viewItems[this.focusedItem]:void 0;if(h){let b=!0;nde(h.focus)||(b=!1),this.options.focusOnlyEnabledItems&&nde(h.isEnabled)&&!h.isEnabled()&&(b=!1),h.action.id===bv.ID&&(b=!1),b?(s||this.previouslyFocusedItem!==this.focusedItem)&&(h.focus(i),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:o}),this.previouslyFocusedItem=void 0),b&&((_=h.showHover)===null||_===void 0||_.call(h))}}doTrigger(i){if(typeof this.focusedItem>"u")return;let o=this.viewItems[this.focusedItem];if(o instanceof CL){let s=o._context===null||o._context===void 0?i:o._context;this.run(o._action,s)}}async run(i,o){await this._actionRunner.run(i,o)}dispose(){this._context=void 0,this.viewItems=a_(this.viewItems),this.getContainer().remove(),super.dispose()}}});function Tzi(l){let i=Aoi,o=i.exec(l);if(!o)return l;let s=!o[1];return l.replace(i,s?"$2$3":"").trim()}function zTi(l){let i=But()[l.id];return`.codicon-${l.id}:before { content: '\\${i.toString(16)}'; }`}function Ezi(l,i){let o=` +.monaco-menu { + font-size: 13px; + border-radius: 5px; + min-width: 160px; +} + +${zTi(Xo.menuSelection)} +${zTi(Xo.menuSubmenu)} + +.monaco-menu .monaco-action-bar { + text-align: right; + overflow: hidden; + white-space: nowrap; +} + +.monaco-menu .monaco-action-bar .actions-container { + display: flex; + margin: 0 auto; + padding: 0; + width: 100%; + justify-content: flex-end; +} + +.monaco-menu .monaco-action-bar.vertical .actions-container { + display: inline-block; +} + +.monaco-menu .monaco-action-bar.reverse .actions-container { + flex-direction: row-reverse; +} + +.monaco-menu .monaco-action-bar .action-item { + cursor: pointer; + display: inline-block; + transition: transform 50ms ease; + position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */ +} + +.monaco-menu .monaco-action-bar .action-item.disabled { + cursor: default; +} + +.monaco-menu .monaco-action-bar .action-item .icon, +.monaco-menu .monaco-action-bar .action-item .codicon { + display: inline-block; +} + +.monaco-menu .monaco-action-bar .action-item .codicon { + display: flex; + align-items: center; +} + +.monaco-menu .monaco-action-bar .action-label { + font-size: 11px; + margin-right: 4px; +} + +.monaco-menu .monaco-action-bar .action-item.disabled .action-label, +.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover { + color: var(--vscode-disabledForeground); +} + +/* Vertical actions */ + +.monaco-menu .monaco-action-bar.vertical { + text-align: left; +} + +.monaco-menu .monaco-action-bar.vertical .action-item { + display: block; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator { + display: block; + border-bottom: 1px solid var(--vscode-menu-separatorBackground); + padding-top: 1px; + padding: 30px; +} + +.monaco-menu .secondary-actions .monaco-action-bar .action-label { + margin-left: 6px; +} + +/* Action Items */ +.monaco-menu .monaco-action-bar .action-item.select-container { + overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */ + flex: 1; + max-width: 170px; + min-width: 60px; + display: flex; + align-items: center; + justify-content: center; + margin-right: 10px; +} + +.monaco-menu .monaco-action-bar.vertical { + margin-left: 0; + overflow: visible; +} + +.monaco-menu .monaco-action-bar.vertical .actions-container { + display: block; +} + +.monaco-menu .monaco-action-bar.vertical .action-item { + padding: 0; + transform: none; + display: flex; +} + +.monaco-menu .monaco-action-bar.vertical .action-item.active { + transform: none; +} + +.monaco-menu .monaco-action-bar.vertical .action-menu-item { + flex: 1 1 auto; + display: flex; + height: 2em; + align-items: center; + position: relative; + margin: 0 4px; + border-radius: 4px; +} + +.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding, +.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding { + opacity: unset; +} + +.monaco-menu .monaco-action-bar.vertical .action-label { + flex: 1 1 auto; + text-decoration: none; + padding: 0 1em; + background: none; + font-size: 12px; + line-height: 1; +} + +.monaco-menu .monaco-action-bar.vertical .keybinding, +.monaco-menu .monaco-action-bar.vertical .submenu-indicator { + display: inline-block; + flex: 2 1 auto; + padding: 0 1em; + text-align: right; + font-size: 12px; + line-height: 1; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator { + height: 100%; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon { + font-size: 16px !important; + display: flex; + align-items: center; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before { + margin-left: auto; + margin-right: -20px; +} + +.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding, +.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator { + opacity: 0.4; +} + +.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) { + display: inline-block; + box-sizing: border-box; + margin: 0; +} + +.monaco-menu .monaco-action-bar.vertical .action-item { + position: static; + overflow: visible; +} + +.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu { + position: absolute; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator { + width: 100%; + height: 0px !important; + opacity: 1; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator.text { + padding: 0.7em 1em 0.1em 1em; + font-weight: bold; + opacity: 1; +} + +.monaco-menu .monaco-action-bar.vertical .action-label:hover { + color: inherit; +} + +.monaco-menu .monaco-action-bar.vertical .menu-item-check { + position: absolute; + visibility: hidden; + width: 1em; + height: 100%; +} + +.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check { + visibility: visible; + display: flex; + align-items: center; + justify-content: center; +} + +/* Context Menu */ + +.context-view.monaco-menu-container { + outline: 0; + border: none; + animation: fadeIn 0.083s linear; + -webkit-app-region: no-drag; +} + +.context-view.monaco-menu-container :focus, +.context-view.monaco-menu-container .monaco-action-bar.vertical:focus, +.context-view.monaco-menu-container .monaco-action-bar.vertical :focus { + outline: 0; +} + +.hc-black .context-view.monaco-menu-container, +.hc-light .context-view.monaco-menu-container, +:host-context(.hc-black) .context-view.monaco-menu-container, +:host-context(.hc-light) .context-view.monaco-menu-container { + box-shadow: none; +} + +.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused, +.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused, +:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused, +:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused { + background: none; +} + +/* Vertical Action Bar Styles */ + +.monaco-menu .monaco-action-bar.vertical { + padding: 4px 0; +} + +.monaco-menu .monaco-action-bar.vertical .action-menu-item { + height: 2em; +} + +.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator), +.monaco-menu .monaco-action-bar.vertical .keybinding { + font-size: inherit; + padding: 0 2em; + max-height: 100%; +} + +.monaco-menu .monaco-action-bar.vertical .menu-item-check { + font-size: inherit; + width: 2em; +} + +.monaco-menu .monaco-action-bar.vertical .action-label.separator { + font-size: inherit; + margin: 5px 0 !important; + padding: 0; + border-radius: 0; +} + +.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator, +:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator { + margin-left: 0; + margin-right: 0; +} + +.monaco-menu .monaco-action-bar.vertical .submenu-indicator { + font-size: 60%; + padding: 0 1.8em; +} + +.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator, +:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator { + height: 100%; + mask-size: 10px 10px; + -webkit-mask-size: 10px 10px; +} + +.monaco-menu .action-item { + cursor: default; +}`;if(i){o+=` + /* Arrows */ + .monaco-scrollable-element > .scrollbar > .scra { + cursor: pointer; + font-size: 11px !important; + } + + .monaco-scrollable-element > .visible { + opacity: 1; + + /* Background rule added for IE9 - to allow clicks on dom node */ + background:rgba(0,0,0,0); + + transition: opacity 100ms linear; + } + .monaco-scrollable-element > .invisible { + opacity: 0; + pointer-events: none; + } + .monaco-scrollable-element > .invisible.fade { + transition: opacity 800ms linear; + } + + /* Scrollable Content Inset Shadow */ + .monaco-scrollable-element > .shadow { + position: absolute; + display: none; + } + .monaco-scrollable-element > .shadow.top { + display: block; + top: 0; + left: 3px; + height: 3px; + width: 100%; + } + .monaco-scrollable-element > .shadow.left { + display: block; + top: 3px; + left: 0; + height: 100%; + width: 3px; + } + .monaco-scrollable-element > .shadow.top-left-corner { + display: block; + top: 0; + left: 0; + height: 3px; + width: 3px; + } + `;let s=l.scrollbarShadow;s&&(o+=` + .monaco-scrollable-element > .shadow.top { + box-shadow: ${s} 0 6px 6px -6px inset; + } + + .monaco-scrollable-element > .shadow.left { + box-shadow: ${s} 6px 0 6px -6px inset; + } + + .monaco-scrollable-element > .shadow.top.left { + box-shadow: ${s} 6px 6px 6px -6px inset; + } + `);let c=l.scrollbarSliderBackground;c&&(o+=` + .monaco-scrollable-element > .scrollbar > .slider { + background: ${c}; + } + `);let _=l.scrollbarSliderHoverBackground;_&&(o+=` + .monaco-scrollable-element > .scrollbar > .slider:hover { + background: ${_}; + } + `);let h=l.scrollbarSliderActiveBackground;h&&(o+=` + .monaco-scrollable-element > .scrollbar > .slider.active { + background: ${h}; + } + `)}return o}var Aoi,Noi,ryt,Poi,Tst,oyt,syt,ayt,VTi=Ht(()=>{RL();JF();va();jD();h7();Ij();dPe();Lri();vj();Ew();Bu();Og();gnt();P0();iPe();$r();uf();Bl();Aoi=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,Noi=/(&)?(&)([^\s&])/g;(function(l){l[l.Right=0]="Right",l[l.Left=1]="Left"})(ryt||(ryt={}));(function(l){l[l.Above=0]="Above",l[l.Below=1]="Below"})(Poi||(Poi={}));Tst=class l extends NC{constructor(i,o,s,c){i.classList.add("monaco-menu-container"),i.setAttribute("role","presentation");let _=document.createElement("div");_.classList.add("monaco-menu"),_.setAttribute("role","presentation"),super(_,{orientation:1,actionViewItemProvider:D=>this.doGetActionViewItem(D,s,h),context:s.context,actionRunner:s.actionRunner,ariaLabel:s.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...uu||w1?[10]:[]],keyDown:!0}}),this.menuStyles=c,this.menuElement=_,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(i,c),this._register(Ry.addTarget(_)),this._register(Tr(_,$o.KEY_DOWN,D=>{new w_(D).equals(2)&&D.preventDefault()})),s.enableMnemonics&&this._register(Tr(_,$o.KEY_DOWN,D=>{let O=D.key.toLocaleLowerCase();if(this.mnemonics.has(O)){Kd.stop(D,!0);let j=this.mnemonics.get(O);if(j.length===1&&(j[0]instanceof syt&&j[0].container&&this.focusItemByElement(j[0].container),j[0].onClick(D)),j.length>1){let F=j.shift();F&&F.container&&(this.focusItemByElement(F.container),j.push(F)),this.mnemonics.set(O,j)}}})),w1&&this._register(Tr(_,$o.KEY_DOWN,D=>{let O=new w_(D);O.equals(14)||O.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),Kd.stop(D,!0)):(O.equals(13)||O.equals(12))&&(this.focusedItem=0,this.focusPrevious(),Kd.stop(D,!0))})),this._register(Tr(this.domNode,$o.MOUSE_OUT,D=>{let O=D.relatedTarget;D1(O,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),D.stopPropagation())})),this._register(Tr(this.actionsList,$o.MOUSE_OVER,D=>{let O=D.target;if(!(!O||!D1(O,this.actionsList)||O===this.actionsList)){for(;O.parentElement!==this.actionsList&&O.parentElement!==null;)O=O.parentElement;if(O.classList.contains("action-item")){let j=this.focusedItem;this.setFocusedItem(O),j!==this.focusedItem&&this.updateFocus()}}})),this._register(Ry.addTarget(this.actionsList)),this._register(Tr(this.actionsList,Zm.Tap,D=>{let O=D.initialTarget;if(!(!O||!D1(O,this.actionsList)||O===this.actionsList)){for(;O.parentElement!==this.actionsList&&O.parentElement!==null;)O=O.parentElement;if(O.classList.contains("action-item")){let j=this.focusedItem;this.setFocusedItem(O),j!==this.focusedItem&&this.updateFocus()}}}));let h={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new pW(_,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));let b=this.scrollableElement.getDomNode();b.style.position="",this.styleScrollElement(b,c),this._register(Tr(_,Zm.Change,D=>{Kd.stop(D,!0);let O=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:O-D.translationY})})),this._register(Tr(b,$o.MOUSE_UP,D=>{D.preventDefault()}));let w=Xa(i);_.style.maxHeight=`${Math.max(10,w.innerHeight-i.getBoundingClientRect().top-35)}px`,o=o.filter((D,O)=>{var j;return!((j=s.submenuIds)===null||j===void 0)&&j.has(D.id)?(console.warn(`Found submenu cycle: ${D.id}`),!1):!(D instanceof bv&&(O===o.length-1||O===0||o[O-1]instanceof bv))}),this.push(o,{icon:!0,label:!0,isMenu:!0}),i.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(D=>!(D instanceof ayt)).forEach((D,O,j)=>{D.updatePositionInSet(O+1,j.length)})}initializeOrUpdateStyleSheet(i,o){this.styleSheet||(MNe(i)?this.styleSheet=ww(i):(l.globalStyleSheet||(l.globalStyleSheet=ww()),this.styleSheet=l.globalStyleSheet)),this.styleSheet.textContent=Ezi(o,MNe(i))}styleScrollElement(i,o){var s,c;let _=(s=o.foregroundColor)!==null&&s!==void 0?s:"",h=(c=o.backgroundColor)!==null&&c!==void 0?c:"",b=o.borderColor?`1px solid ${o.borderColor}`:"",w="5px",D=o.shadowColor?`0 2px 8px ${o.shadowColor}`:"";i.style.outline=b,i.style.borderRadius=w,i.style.color=_,i.style.backgroundColor=h,i.style.boxShadow=D}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(i){let o=this.focusedItem;this.setFocusedItem(i),o!==this.focusedItem&&this.updateFocus()}setFocusedItem(i){for(let o=0;o{this.element&&(this._register(Tr(this.element,$o.MOUSE_UP,_=>{if(Kd.stop(_,!0),m2){if(new h2(Xa(this.element),_).rightButton)return;this.onClick(_)}else setTimeout(()=>{this.onClick(_)},0)})),this._register(Tr(this.element,$o.CONTEXT_MENU,_=>{Kd.stop(_,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(i){super.render(i),this.element&&(this.container=i,this.item=bo(this.element,No("a.action-menu-item")),this._action.id===bv.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=bo(this.item,No("span.menu-item-check"+uc.asCSSSelector(Xo.menuSelection))),this.check.setAttribute("role","none"),this.label=bo(this.item,No("span.action-label")),this.options.label&&this.options.keybinding&&(bo(this.item,No("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){var i;super.focus(),(i=this.item)===null||i===void 0||i.focus(),this.applyStyle()}updatePositionInSet(i,o){this.item&&(this.item.setAttribute("aria-posinset",`${i}`),this.item.setAttribute("aria-setsize",`${o}`))}updateLabel(){var i;if(this.label&&this.options.label){I1(this.label);let o=ZLe(this.action.label);if(o){let s=Tzi(o);this.options.enableMnemonics||(o=s),this.label.setAttribute("aria-label",s.replace(/&&/g,"&"));let c=Aoi.exec(o);if(c){o=bde(o),Noi.lastIndex=0;let _=Noi.exec(o);for(;_&&_[1];)_=Noi.exec(o);let h=b=>b.replace(/&&/g,"&");_?this.label.append(vle(h(o.substr(0,_.index))," "),No("u",{"aria-hidden":"true"},_[3]),kQt(h(o.substr(_.index+_[0].length))," ")):this.label.innerText=h(o).trim(),(i=this.item)===null||i===void 0||i.setAttribute("aria-keyshortcuts",(c[1]?c[1]:c[3]).toLocaleLowerCase())}else this.label.innerText=o.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;let i=this.action.checked;this.item.classList.toggle("checked",!!i),i!==void 0?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",i?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){let i=this.element&&this.element.classList.contains("focused"),o=i&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,s=i&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,c=i&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",_=i&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=o??"",this.item.style.backgroundColor=s??"",this.item.style.outline=c,this.item.style.outlineOffset=_),this.check&&(this.check.style.color=o??"")}},syt=class extends oyt{constructor(i,o,s,c,_){super(i,i,c,_),this.submenuActions=o,this.parentData=s,this.submenuOptions=c,this.mysubmenu=null,this.submenuDisposables=this._register(new pr),this.mouseOver=!1,this.expandDirection=c&&c.expandDirection!==void 0?c.expandDirection:{horizontal:ryt.Right,vertical:Poi.Below},this.showScheduler=new Bd(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new Bd(()=>{this.element&&!D1(qb(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(i){super.render(i),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=bo(this.item,No("span.submenu-indicator"+uc.asCSSSelector(Xo.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Tr(this.element,$o.KEY_UP,o=>{let s=new w_(o);(s.equals(17)||s.equals(3))&&(Kd.stop(o,!0),this.createSubmenu(!0))})),this._register(Tr(this.element,$o.KEY_DOWN,o=>{let s=new w_(o);qb()===this.item&&(s.equals(17)||s.equals(3))&&Kd.stop(o,!0)})),this._register(Tr(this.element,$o.MOUSE_OVER,o=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(Tr(this.element,$o.MOUSE_LEAVE,o=>{this.mouseOver=!1})),this._register(Tr(this.element,$o.FOCUS_OUT,o=>{this.element&&!D1(qb(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))})))}updateEnabled(){}onClick(i){Kd.stop(i,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(i){if(this.parentData.submenu&&(i||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(i,o,s,c){let _={top:0,left:0};return _.left=rPe(i.width,o.width,{position:c.horizontal===ryt.Right?0:1,offset:s.left,size:s.width}),_.left>=s.left&&_.left{new w_(O).equals(15)&&(Kd.stop(O,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Tr(this.submenuContainer,$o.KEY_DOWN,O=>{new w_(O).equals(15)&&Kd.stop(O,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(i),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(i){var o;this.item&&((o=this.item)===null||o===void 0||o.setAttribute("aria-expanded",i))}applyStyle(){super.applyStyle();let o=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=o??"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}},ayt=class extends Dj{constructor(i,o,s,c){super(i,o,s),this.menuStyles=c}render(i){super.render(i),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}});var cyt,HTi=Ht(()=>{va();h7();VTi();Ew();Pl();$r();jX();cyt=class{constructor(i,o,s,c){this.contextViewService=i,this.telemetryService=o,this.notificationService=s,this.keybindingService=c,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(i){this.options=i}showContextMenu(i){let o=i.getActions();if(!o.length)return;this.focusToReturn=qb();let s,c=Py(i.domForShadowRoot)?i.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>i.getAnchor(),canRelayout:!1,anchorAlignment:i.anchorAlignment,anchorAxisAlignment:i.anchorAxisAlignment,render:_=>{var h;this.lastContainer=_;let b=i.getMenuClassName?i.getMenuClassName():"";b&&(_.className+=" "+b),this.options.blockMouse&&(this.block=_.appendChild(No(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",(h=this.blockDisposable)===null||h===void 0||h.dispose(),this.blockDisposable=Tr(this.block,$o.MOUSE_DOWN,j=>j.stopPropagation()));let w=new pr,D=i.actionRunner||new BF;D.onWillRun(j=>this.onActionRun(j,!i.skipTelemetry),this,w),D.onDidRun(this.onDidActionRun,this,w),s=new Tst(_,o,{actionViewItemProvider:i.getActionViewItem,context:i.getActionsContext?i.getActionsContext():null,actionRunner:D,getKeyBinding:i.getKeyBinding?i.getKeyBinding:j=>this.keybindingService.lookupKeybinding(j.id)},BTi),s.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,w),s.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,w);let O=Xa(_);return w.add(Tr(O,$o.BLUR,()=>this.contextViewService.hideContextView(!0))),w.add(Tr(O,$o.MOUSE_DOWN,j=>{if(j.defaultPrevented)return;let F=new h2(O,j),X=F.target;if(!F.rightButton){for(;X;){if(X===_)return;X=X.parentElement}this.contextViewService.hideContextView(!0)}})),BD(w,s)},focus:()=>{s?.focus(!!i.autoSelectFirstItem)},onHide:_=>{var h,b,w;(h=i.onHide)===null||h===void 0||h.call(i,!!_),this.block&&(this.block.remove(),this.block=null),(b=this.blockDisposable)===null||b===void 0||b.dispose(),this.blockDisposable=null,this.lastContainer&&(qb()===this.lastContainer||D1(qb(),this.lastContainer))&&((w=this.focusToReturn)===null||w===void 0||w.focus()),this.lastContainer=null}},c,!!c)}onActionRun(i,o){o&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:i.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(i){i.error&&!I2(i.error)&&this.notificationService.error(i.error)}}});var Dzi,E3e,lyt,Loi,UTi=Ht(()=>{va();Ew();Pa();$r();hue();Vg();du();By();QD();dP();HTi();yP();Dzi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},E3e=function(l,i){return function(o,s){i(o,s,l)}},lyt=class extends Ui{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new cyt(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(i,o,s,c,_,h){super(),this.telemetryService=i,this.notificationService=o,this.contextViewService=s,this.keybindingService=c,this.menuService=_,this.contextKeyService=h,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new fn),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new fn)}configure(i){this.contextMenuHandler.configure(i)}showContextMenu(i){i=Loi.transform(i,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...i,onHide:o=>{var s;(s=i.onHide)===null||s===void 0||s.call(i,o),this._onDidHideContextMenu.fire()}}),Cle.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};lyt=Dzi([E3e(0,Ly),E3e(1,Em),E3e(2,vL),E3e(3,ju),E3e(4,Dw),E3e(5,La)],lyt);(function(l){function i(s){return s&&s.menuId instanceof ki}function o(s,c,_){if(!i(s))return s;let{menuId:h,menuActionOptions:b,contextKeyService:w}=s;return{...s,getActions:()=>{let D=[];if(h){let O=c.createMenu(h,w??_);jTi(O,b,D),O.dispose()}return s.getActions?bv.join(s.getActions(),D):D}}}l.transform=o})(Loi||(Loi={}))});var Est,JTi=Ht(()=>{(function(l){l[l.API=0]="API",l[l.USER=1]="USER"})(Est||(Est={}))});var Moi,uyt,Ooi,Foi,dyt,qTi=Ht(()=>{va();GA();am();f7();UD();o0t();cI();_I();Lh();$b();gg();JTi();bL();Moi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},uyt=function(l,i){return function(o,s){i(o,s,l)}},Ooi=class{constructor(i){this._commandService=i}async open(i,o){if(!Ont(i,Kl.command))return!1;if(!o?.allowCommands||(typeof i=="string"&&(i=Ka.parse(i)),Array.isArray(o.allowCommands)&&!o.allowCommands.includes(i.path)))return!0;let s=[];try{s=Yot(decodeURIComponent(i.query))}catch{try{s=Yot(i.query)}catch{}}return Array.isArray(s)||(s=[s]),await this._commandService.executeCommand(i.path,...s),!0}};Ooi=Moi([uyt(0,c_)],Ooi);Foi=class{constructor(i){this._editorService=i}async open(i,o){typeof i=="string"&&(i=Ka.parse(i));let{selection:s,uri:c}=Mki(i);return i=c,i.scheme===Kl.file&&(i=pCi(i)),await this._editorService.openCodeEditor({resource:i,options:{selection:s,source:o?.fromUserGesture?Est.USER:Est.API,...o?.editorOptions}},this._editorService.getFocusedCodeEditor(),o?.openToSide),!0}};Foi=Moi([uyt(0,$u)],Foi);dyt=class{constructor(i,o){this._openers=new L1,this._validators=new L1,this._resolvers=new L1,this._resolvedUriTargets=new B1(s=>s.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new L1,this._defaultExternalOpener={openExternal:async s=>(Fnt(s,Kl.http,Kl.https)?bft(s):D_.location.href=s,!0)},this._openers.push({open:async(s,c)=>c?.openExternal||Fnt(s,Kl.mailto,Kl.http,Kl.https,Kl.vsls)?(await this._doOpenExternal(s,c),!0):!1}),this._openers.push(new Ooi(o)),this._openers.push(new Foi(i))}registerOpener(i){return{dispose:this._openers.unshift(i)}}async open(i,o){var s;let c=typeof i=="string"?Ka.parse(i):i,_=(s=this._resolvedUriTargets.get(c))!==null&&s!==void 0?s:i;for(let h of this._validators)if(!await h.shouldOpen(_,o))return!1;for(let h of this._openers)if(await h.open(i,o))return!0;return!1}async resolveExternalUri(i,o){for(let s of this._resolvers)try{let c=await s.resolveExternalUri(i,o);if(c)return this._resolvedUriTargets.has(c.resolved)||this._resolvedUriTargets.set(c.resolved,i),c}catch{}throw new Error("Could not resolve external URI: "+i.toString())}async _doOpenExternal(i,o){let s=typeof i=="string"?Ka.parse(i):i,c;try{c=(await this.resolveExternalUri(s,o)).resolved}catch{c=s}let _;if(typeof i=="string"&&s.toString()===c.toString()?_=i:_=encodeURI(c.toString(!0)),o?.allowContributedOpeners){let h=typeof o?.allowContributedOpeners=="string"?o?.allowContributedOpeners:void 0;for(let b of this._externalOpeners)if(await b.openExternal(_,{sourceUri:s,preferredOpenerId:h},Du.None))return!0}return this._defaultExternalOpener.openExternal(_,{sourceUri:s},Du.None)}dispose(){this._validators.clear()}};dyt=Moi([uyt(0,$u),uyt(1,c_)],dyt)});var eI,gue=Ht(()=>{kc();eI=Wc("editorWorkerService")});var Tv,Dst,ZL,WX=Ht(()=>{eue();Fs();kc();(function(l){l[l.Hint=1]="Hint",l[l.Info=2]="Info",l[l.Warning=4]="Warning",l[l.Error=8]="Error"})(Tv||(Tv={}));(function(l){function i(h,b){return b-h}l.compare=i;let o=Object.create(null);o[l.Error]=de("sev.error","Error"),o[l.Warning]=de("sev.warning","Warning"),o[l.Info]=de("sev.info","Info");function s(h){return o[h]||""}l.toString=s;function c(h){switch(h){case jy.Error:return l.Error;case jy.Warning:return l.Warning;case jy.Info:return l.Info;case jy.Ignore:return l.Hint}}l.fromSeverity=c;function _(h){switch(h){case l.Error:return jy.Error;case l.Warning:return jy.Warning;case l.Info:return jy.Info;case l.Hint:return jy.Ignore}}l.toSeverity=_})(Tv||(Tv={}));(function(l){let i="";function o(c){return s(c,!0)}l.makeKey=o;function s(c,_){let h=[i];return c.source?h.push(c.source.replace("\xA6","\\\xA6")):h.push(i),c.code?typeof c.code=="string"?h.push(c.code.replace("\xA6","\\\xA6")):h.push(c.code.value.replace("\xA6","\\\xA6")):h.push(i),c.severity!==void 0&&c.severity!==null?h.push(Tv.toString(c.severity)):h.push(i),c.message&&_?h.push(c.message.replace("\xA6","\\\xA6")):h.push(i),c.startLineNumber!==void 0&&c.startLineNumber!==null?h.push(c.startLineNumber.toString()):h.push(i),c.startColumn!==void 0&&c.startColumn!==null?h.push(c.startColumn.toString()):h.push(i),c.endLineNumber!==void 0&&c.endLineNumber!==null?h.push(c.endLineNumber.toString()):h.push(i),c.endColumn!==void 0&&c.endColumn!==null?h.push(c.endColumn.toString()):h.push(i),h.push(i),h.join("\xA6")}l.makeKeyOptionalMessage=s})(Dst||(Dst={}));ZL=Wc("markerService")});function $Ti(l,i){let o=[],s=[];for(let c of l)i.has(c)||o.push(c);for(let c of i)l.has(c)||s.push(c);return{removed:o,added:s}}function GTi(l,i){let o=new Set;for(let s of i)l.has(s)&&o.add(s);return o}var Roi=Ht(()=>{});var Izi,KTi,fyt,Boi,XTi=Ht(()=>{WX();$r();b2();_g();bj();XA();ca();cI();Pa();Sv();UD();Roi();Izi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},KTi=function(l,i){return function(o,s){i(o,s,l)}},fyt=class extends Ui{constructor(i,o){super(),this._markerService=o,this._onDidChangeMarker=this._register(new fn),this._markerDecorations=new B1,i.getModels().forEach(s=>this._onModelAdded(s)),this._register(i.onModelAdded(this._onModelAdded,this)),this._register(i.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(i=>i.dispose()),this._markerDecorations.clear()}getMarker(i,o){let s=this._markerDecorations.get(i);return s&&s.getMarker(o)||null}_handleMarkerChange(i){i.forEach(o=>{let s=this._markerDecorations.get(o);s&&this._updateDecorations(s)})}_onModelAdded(i){let o=new Boi(i);this._markerDecorations.set(i.uri,o),this._updateDecorations(o)}_onModelRemoved(i){var o;let s=this._markerDecorations.get(i.uri);s&&(s.dispose(),this._markerDecorations.delete(i.uri)),(i.uri.scheme===Kl.inMemory||i.uri.scheme===Kl.internal||i.uri.scheme===Kl.vscode)&&((o=this._markerService)===null||o===void 0||o.read({resource:i.uri}).map(c=>c.owner).forEach(c=>this._markerService.remove(c,[i.uri])))}_updateDecorations(i){let o=this._markerService.read({resource:i.model.uri,take:500});i.update(o)&&this._onDidChangeMarker.fire(i.model)}};fyt=Izi([KTi(0,lm),KTi(1,ZL)],fyt);Boi=class extends Ui{constructor(i){super(),this.model=i,this._map=new p_t,this._register(Qs(()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()}))}update(i){let{added:o,removed:s}=$Ti(new Set(this._map.keys()),new Set(i));if(o.length===0&&s.length===0)return!1;let c=s.map(b=>this._map.get(b)),_=o.map(b=>({range:this._createDecorationRange(this.model,b),options:this._createDecorationOption(b)})),h=this.model.deltaDecorations(c,_);for(let b of s)this._map.delete(b);for(let b=0;b=c)return s;let _=i.getWordAtPosition(s.getStartPosition());_&&(s=new Vt(s.startLineNumber,_.startColumn,s.endLineNumber,_.endColumn))}else if(o.endColumn===Number.MAX_VALUE&&o.startColumn===1&&s.startLineNumber===s.endLineNumber){let c=i.getLineFirstNonWhitespaceColumn(o.startLineNumber);c=0:!1}}});function pPe(l){return l.toString()}var Nzi,Ist,D3e,joi,Azi,Woi,Nst,_yt,YTi=Ht(()=>{Pa();$r();uf();DC();nnt();lj();v2();mrt();Rg();Iot();wde();jii();cI();oP();R1();Nzi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Ist=function(l,i){return function(o,s){i(o,s,l)}};joi=class{constructor(i,o,s){this.model=i,this._modelEventListeners=new pr,this.model=i,this._modelEventListeners.add(i.onWillDispose(()=>o(i))),this._modelEventListeners.add(i.onDidChangeLanguage(c=>s(i,c)))}dispose(){this._modelEventListeners.dispose()}},Azi=w1||uu?1:2,Woi=class{constructor(i,o,s,c,_,h,b,w){this.uri=i,this.initialUndoRedoSnapshot=o,this.time=s,this.sharesUndoRedoStack=c,this.heapSize=_,this.sha1=h,this.versionId=b,this.alternativeVersionId=w}},Nst=D3e=class extends Ui{constructor(i,o,s,c,_){super(),this._configurationService=i,this._resourcePropertiesService=o,this._undoRedoService=s,this._languageService=c,this._languageConfigurationService=_,this._onModelAdded=this._register(new fn),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new fn),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new fn),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration(h=>this._updateModelOptions(h))),this._updateModelOptions(void 0)}static _readModelOptions(i,o){var s;let c=_2.tabSize;if(i.editor&&typeof i.editor.tabSize<"u"){let X=parseInt(i.editor.tabSize,10);isNaN(X)||(c=X),c<1&&(c=1)}let _="tabSize";if(i.editor&&typeof i.editor.indentSize<"u"&&i.editor.indentSize!=="tabSize"){let X=parseInt(i.editor.indentSize,10);isNaN(X)||(_=Math.max(X,1))}let h=_2.insertSpaces;i.editor&&typeof i.editor.insertSpaces<"u"&&(h=i.editor.insertSpaces==="false"?!1:!!i.editor.insertSpaces);let b=Azi,w=i.eol;w===`\r +`?b=2:w===` +`&&(b=1);let D=_2.trimAutoWhitespace;i.editor&&typeof i.editor.trimAutoWhitespace<"u"&&(D=i.editor.trimAutoWhitespace==="false"?!1:!!i.editor.trimAutoWhitespace);let O=_2.detectIndentation;i.editor&&typeof i.editor.detectIndentation<"u"&&(O=i.editor.detectIndentation==="false"?!1:!!i.editor.detectIndentation);let j=_2.largeFileOptimizations;i.editor&&typeof i.editor.largeFileOptimizations<"u"&&(j=i.editor.largeFileOptimizations==="false"?!1:!!i.editor.largeFileOptimizations);let F=_2.bracketPairColorizationOptions;return!((s=i.editor)===null||s===void 0)&&s.bracketPairColorization&&typeof i.editor.bracketPairColorization=="object"&&(F={enabled:!!i.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!i.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:o,tabSize:c,indentSize:_,insertSpaces:h,detectIndentation:O,defaultEOL:b,trimAutoWhitespace:D,largeFileOptimizations:j,bracketPairColorizationOptions:F}}_getEOL(i,o){if(i)return this._resourcePropertiesService.getEOL(i,o);let s=this._configurationService.getValue("files.eol",{overrideIdentifier:o});return s&&typeof s=="string"&&s!=="auto"?s:xw===3||xw===2?` +`:`\r +`}_shouldRestoreUndoStack(){let i=this._configurationService.getValue("files.restoreUndoStack");return typeof i=="boolean"?i:!0}getCreationOptions(i,o,s){let c=typeof i=="string"?i:i.languageId,_=this._modelCreationOptionsByLanguageAndResource[c+o];if(!_){let h=this._configurationService.getValue("editor",{overrideIdentifier:c,resource:o}),b=this._getEOL(o,c);_=D3e._readModelOptions({editor:h,eol:b},s),this._modelCreationOptionsByLanguageAndResource[c+o]=_}return _}_updateModelOptions(i){let o=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);let s=Object.keys(this._models);for(let c=0,_=s.length;c<_;c++){let h=s[c],b=this._models[h],w=b.model.getLanguageId(),D=b.model.uri;if(i&&!i.affectsConfiguration("editor",{overrideIdentifier:w,resource:D})&&!i.affectsConfiguration("files.eol",{overrideIdentifier:w,resource:D}))continue;let O=o[w+D],j=this.getCreationOptions(w,D,b.model.isForSimpleWidget);D3e._setModelOptionsForModel(b.model,j,O)}}static _setModelOptionsForModel(i,o,s){s&&s.defaultEOL!==o.defaultEOL&&i.getLineCount()===1&&i.setEOL(o.defaultEOL===1?0:1),!(s&&s.detectIndentation===o.detectIndentation&&s.insertSpaces===o.insertSpaces&&s.tabSize===o.tabSize&&s.indentSize===o.indentSize&&s.trimAutoWhitespace===o.trimAutoWhitespace&&D2(s.bracketPairColorizationOptions,o.bracketPairColorizationOptions))&&(o.detectIndentation?(i.detectIndentation(o.insertSpaces,o.tabSize),i.updateOptions({trimAutoWhitespace:o.trimAutoWhitespace,bracketColorizationOptions:o.bracketPairColorizationOptions})):i.updateOptions({insertSpaces:o.insertSpaces,tabSize:o.tabSize,indentSize:o.indentSize,trimAutoWhitespace:o.trimAutoWhitespace,bracketColorizationOptions:o.bracketPairColorizationOptions}))}_insertDisposedModel(i){this._disposedModels.set(pPe(i.uri),i),this._disposedModelsHeapSize+=i.heapSize}_removeDisposedModel(i){let o=this._disposedModels.get(pPe(i));return o&&(this._disposedModelsHeapSize-=o.heapSize),this._disposedModels.delete(pPe(i)),o}_ensureDisposedModelsHeapSize(i){if(this._disposedModelsHeapSize>i){let o=[];for(this._disposedModels.forEach(s=>{s.sharesUndoRedoStack||o.push(s)}),o.sort((s,c)=>s.time-c.time);o.length>0&&this._disposedModelsHeapSize>i;){let s=o.shift();this._removeDisposedModel(s.uri),s.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(s.initialUndoRedoSnapshot)}}}_createModelData(i,o,s,c){let _=this.getCreationOptions(o,s,c),h=new vW(i,o,_,s,this._undoRedoService,this._languageService,this._languageConfigurationService);if(s&&this._disposedModels.has(pPe(s))){let D=this._removeDisposedModel(s),O=this._undoRedoService.getElements(s),j=this._getSHA1Computer(),F=j.canComputeSHA1(h)?j.computeSHA1(h)===D.sha1:!1;if(F||D.sharesUndoRedoStack){for(let X of O.past)_X(X)&&X.matchesResource(s)&&X.setModel(h);for(let X of O.future)_X(X)&&X.matchesResource(s)&&X.setModel(h);this._undoRedoService.setElementsValidFlag(s,!0,X=>_X(X)&&X.matchesResource(s)),F&&(h._overwriteVersionId(D.versionId),h._overwriteAlternativeVersionId(D.alternativeVersionId),h._overwriteInitialUndoRedoSnapshot(D.initialUndoRedoSnapshot))}else D.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(D.initialUndoRedoSnapshot)}let b=pPe(h.uri);if(this._models[b])throw new Error("ModelService: Cannot add model because it already exists!");let w=new joi(h,D=>this._onWillDispose(D),(D,O)=>this._onDidChangeLanguage(D,O));return this._models[b]=w,w}createModel(i,o,s,c=!1){let _;return o?_=this._createModelData(i,o,s,c):_=this._createModelData(i,_w,s,c),this._onModelAdded.fire(_.model),_.model}getModels(){let i=[],o=Object.keys(this._models);for(let s=0,c=o.length;s0||D.future.length>0){for(let O of D.past)_X(O)&&O.matchesResource(i.uri)&&(_=!0,h+=O.heapSize(i.uri),O.setModel(i.uri));for(let O of D.future)_X(O)&&O.matchesResource(i.uri)&&(_=!0,h+=O.heapSize(i.uri),O.setModel(i.uri))}}let b=D3e.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,w=this._getSHA1Computer();if(_)if(!c&&(h>b||!w.canComputeSHA1(i))){let D=s.model.getInitialUndoRedoSnapshot();D!==null&&this._undoRedoService.restoreSnapshot(D)}else this._ensureDisposedModelsHeapSize(b-h),this._undoRedoService.setElementsValidFlag(i.uri,!1,D=>_X(D)&&D.matchesResource(i.uri)),this._insertDisposedModel(new Woi(i.uri,s.model.getInitialUndoRedoSnapshot(),Date.now(),c,h,w.computeSHA1(i),i.getVersionId(),i.getAlternativeVersionId()));else if(!c){let D=s.model.getInitialUndoRedoSnapshot();D!==null&&this._undoRedoService.restoreSnapshot(D)}delete this._models[o],s.dispose(),delete this._modelCreationOptionsByLanguageAndResource[i.getLanguageId()+i.uri],this._onModelRemoved.fire(i)}_onDidChangeLanguage(i,o){let s=o.oldLanguage,c=i.getLanguageId(),_=this.getCreationOptions(s,i.uri,i.isForSimpleWidget),h=this.getCreationOptions(c,i.uri,i.isForSimpleWidget);D3e._setModelOptionsForModel(i,h,_),this._onModelModeChanged.fire({model:i,oldLanguageId:s})}_getSHA1Computer(){return new _yt}};Nst.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024;Nst=D3e=Nzi([Ist(0,gl),Ist(1,N_t),Ist(2,yfe),Ist(3,up),Ist(4,Pf)],Nst);_yt=class l{canComputeSHA1(i){return i.getValueLength()<=l.MAX_MODEL_SIZE}computeSHA1(i){let o=new Rnt,s=i.createSnapshot(),c;for(;c=s.read();)o.update(c);return o.digest()}};_yt.MAX_MODEL_SIZE=10*1024*1024});var QTi=Ht(()=>{});var pyt,Nj,zoi,mPe=Ht(()=>{su();$r();RC();(function(l){l[l.PRESERVE=0]="PRESERVE",l[l.LAST=1]="LAST"})(pyt||(pyt={}));Nj={Quickaccess:"workbench.contributions.quickaccess"},zoi=class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(i){return i.prefix.length===0?this.defaultProvider=i:this.providers.push(i),this.providers.sort((o,s)=>s.prefix.length-o.prefix.length),Qs(()=>{this.providers.splice(this.providers.indexOf(i),1),this.defaultProvider===i&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return FD([this.defaultProvider,...this.providers])}getQuickAccessProvider(i){return i&&this.providers.find(s=>i.startsWith(s.prefix))||void 0||this.defaultProvider}};q_.add(Nj.Quickaccess,new zoi)});var ZTi,jfe,F7,F0,Voi,Y7n,hw,kL=Ht(()=>{kc();ZTi={ctrlCmd:!1,alt:!1};(function(l){l[l.Blur=1]="Blur",l[l.Gesture=2]="Gesture",l[l.Other=3]="Other"})(jfe||(jfe={}));(function(l){l[l.NONE=0]="NONE",l[l.FIRST=1]="FIRST",l[l.SECOND=2]="SECOND",l[l.LAST=3]="LAST"})(F7||(F7={}));(function(l){l[l.First=1]="First",l[l.Second=2]="Second",l[l.Last=3]="Last",l[l.Next=4]="Next",l[l.Previous=5]="Previous",l[l.NextPage=6]="NextPage",l[l.PreviousPage=7]="PreviousPage",l[l.NextSeparator=8]="NextSeparator",l[l.PreviousSeparator=9]="PreviousSeparator"})(F0||(F0={}));Voi=class{constructor(i){this.options=i}},Y7n=new Voi,hw=Wc("quickInputService")});var Pzi,e2i,myt,t2i=Ht(()=>{Bu();am();Pa();$r();kc();mPe();kL();RC();Pzi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},e2i=function(l,i){return function(o,s){i(o,s,l)}},myt=class extends Ui{constructor(i,o){super(),this.quickInputService=i,this.instantiationService=o,this.registry=q_.as(Nj.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(i="",o){this.doShowOrPick(i,!1,o)}doShowOrPick(i,o,s){var c,_,h,b;let[w,D]=this.getOrInstantiateProvider(i,s?.enabledProviderPrefixes),O=this.visibleQuickAccess,j=O?.descriptor;if(O&&D&&j===D){i!==D.prefix&&!s?.preserveValue&&(O.picker.value=i),this.adjustValueSelection(O.picker,D,s);return}if(D&&!s?.preserveValue){let Je;if(O&&j&&j!==D){let Ye=O.value.substr(j.prefix.length);Ye&&(Je=`${D.prefix}${Ye}`)}if(!Je){let Ye=w?.defaultFilterValue;Ye===pyt.LAST?Je=this.lastAcceptedPickerValues.get(D):typeof Ye=="string"&&(Je=`${D.prefix}${Ye}`)}typeof Je=="string"&&(i=Je)}let F=(c=O?.picker)===null||c===void 0?void 0:c.valueSelection,X=(_=O?.picker)===null||_===void 0?void 0:_.value,K=new pr,re=K.add(this.quickInputService.createQuickPick());re.value=i,this.adjustValueSelection(re,D,s),re.placeholder=(h=s?.placeholder)!==null&&h!==void 0?h:D?.placeholder,re.quickNavigate=s?.quickNavigateConfiguration,re.hideInput=!!re.quickNavigate&&!O,(typeof s?.itemActivation=="number"||s?.quickNavigateConfiguration)&&(re.itemActivation=(b=s?.itemActivation)!==null&&b!==void 0?b:F7.SECOND),re.contextKey=D?.contextKey,re.filterValue=Je=>Je.substring(D?D.prefix.length:0);let Pe;o&&(Pe=new $j,K.add(Yo.once(re.onWillAccept)(Je=>{Je.veto(),re.hide()}))),K.add(this.registerPickerListeners(re,w,D,i,s));let Le=K.add(new k_);if(w&&K.add(w.provide(re,Le.token,s?.providerOptions)),Yo.once(re.onDidHide)(()=>{re.selectedItems.length===0&&Le.cancel(),K.dispose(),Pe?.complete(re.selectedItems.slice(0))}),re.show(),F&&X===i&&(re.valueSelection=F),o)return Pe?.p}adjustValueSelection(i,o,s){var c;let _;s?.preserveValue?_=[i.value.length,i.value.length]:_=[(c=o?.prefix.length)!==null&&c!==void 0?c:0,i.value.length],i.valueSelection=_}registerPickerListeners(i,o,s,c,_){let h=new pr,b=this.visibleQuickAccess={picker:i,descriptor:s,value:c};return h.add(Qs(()=>{b===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),h.add(i.onDidChangeValue(w=>{let[D]=this.getOrInstantiateProvider(w,_?.enabledProviderPrefixes);D!==o?this.show(w,{enabledProviderPrefixes:_?.enabledProviderPrefixes,preserveValue:!0,providerOptions:_?.providerOptions}):b.value=w})),s&&h.add(i.onDidAccept(()=>{this.lastAcceptedPickerValues.set(s,i.value)})),h}getOrInstantiateProvider(i,o){let s=this.registry.getQuickAccessProvider(i);if(!s||o&&!o?.includes(s.prefix))return[void 0,void 0];let c=this.mapProviderToDescriptor.get(s);return c||(c=this.instantiationService.createInstance(s.ctor),this.mapProviderToDescriptor.set(s,c)),[c,s]}};myt=Pzi([e2i(0,hw),e2i(1,qs)],myt)});var i2i=Ht(()=>{});var Aj,I3e=Ht(()=>{gj();P0();Pa();i2i();B2();wj();Aj=class extends ex{constructor(i){var o;super(),this._onChange=this._register(new fn),this.onChange=this._onChange.event,this._onKeyDown=this._register(new fn),this.onKeyDown=this._onKeyDown.event,this._opts=i,this._checked=this._opts.isChecked;let s=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,s.push(...uc.asClassNameArray(this._icon))),this._opts.actionClassName&&s.push(...this._opts.actionClassName.split(" ")),this._checked&&s.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register(j2().setupUpdatableHover((o=i.hoverDelegate)!==null&&o!==void 0?o:P1("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...s),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,c=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),c.preventDefault())}),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,c=>{if(c.keyCode===10||c.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),c.preventDefault(),c.stopPropagation();return}this._onKeyDown.fire(c)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(i){this._checked=i,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}});var hyt=Ht(()=>{});function n2i(l){let i=[],o=0,s;for(;s=Ozi.exec(l);){s.index-o>0&&i.push(l.substring(o,s.index));let[,c,_,,h]=s;h?i.push({label:c,href:_,title:h}):i.push({label:c,href:_}),o=s.index+s[0].length}return o{efe();Lzi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},gyt=class{constructor(i){this.nodes=i}toString(){return this.nodes.map(i=>typeof i=="string"?i:i.label).join("")}};Lzi([Cv],gyt.prototype,"toString",null);Ozi=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi});function Mzi(l){if(!l)return;let i,o=l.dark.toString();return Hoi[o]?i=Hoi[o]:(i=Fzi.nextId(),l6e(`.${i}, .hc-light .${i}`,`background-image: ${y7(l.light||l.dark)}`),l6e(`.vs-dark .${i}, .hc-black .${i}`,`background-image: ${y7(l.dark)}`),Hoi[o]=i),i}function N3e(l,i,o){let s=l.iconClass||Mzi(l.iconPath);return l.alwaysVisible&&(s=s?`${s} always-visible`:"always-visible"),{id:i,label:"",tooltip:l.tooltip||"",class:s,enabled:!0,run:o}}function o2i(l,i,o){N1(i);let s=n2i(l),c=0;for(let _ of s.nodes)if(typeof _=="string")i.append(...I7(_));else{let h=_.title;!h&&_.href.startsWith("command:")?h=de("executeCommand","Click to execute command '{0}'",_.href.substring(8)):h||(h=_.href);let b=No("a",{href:_.href,title:h,tabIndex:c++},_.label);b.style.textDecoration="underline";let w=X=>{R0i(X)&&Kd.stop(X,!0),o.callback(_.href)},D=o.disposables.add(new Yd(b,$o.CLICK)).event,O=o.disposables.add(new Yd(b,$o.KEY_DOWN)).event,j=Yo.chain(O,X=>X.filter(K=>{let re=new w_(K);return re.equals(10)||re.equals(3)}));o.disposables.add(Ry.addTarget(b));let F=o.disposables.add(new Yd(b,Zm.Tap)).event;Yo.any(D,F,j)(w,null,o.disposables),i.appendChild(b)}}var Hoi,Fzi,Uoi=Ht(()=>{va();mW();Pa();jD();JF();oue();Xot();r2i();hyt();Fs();Hoi={},Fzi=new nPe("quick-input-button-icon-")});var Rzi,s2i,a2i,c2i,l2i,Joi,u2i,d2i,f2i,_2i,yyt,Ast,A3e,vyt,byt,Syt=Ht(()=>{va();jD();I3e();su();Bu();Og();Pa();$r();uf();eue();P0();hyt();Fs();kL();Uoi();Rg();rue();kL();du();Rzi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},s2i=function(l,i){return function(o,s){i(o,s,l)}},a2i="inQuickInput",c2i=new Ms(a2i,!1,de("inQuickInput","Whether keyboard focus is inside the quick input control")),l2i=po.has(a2i),Joi="quickInputType",u2i=new Ms(Joi,void 0,de("quickInputType","The type of the currently visible quick input")),d2i="cursorAtEndOfQuickInputBox",f2i=new Ms(d2i,!1,de("cursorAtEndOfQuickInputBox","Whether the cursor in the quick input is at the end of the input box")),_2i=po.has(d2i),yyt={iconClass:uc.asClassName(Xo.quickInputBack),tooltip:de("quickInput.back","Back"),handle:-1},Ast=class l extends Ui{constructor(i){super(),this.ui=i,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=l.noPromptMessage,this._severity=jy.Ignore,this.onDidTriggerButtonEmitter=this._register(new fn),this.onDidHideEmitter=this._register(new fn),this.onWillHideEmitter=this._register(new fn),this.onDisposeEmitter=this._register(new fn),this.visibleDisposables=this._register(new pr),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(i){this._title=i,this.update()}get description(){return this._description}set description(i){this._description=i,this.update()}get step(){return this._steps}set step(i){this._steps=i,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(i){this._totalSteps=i,this.update()}get enabled(){return this._enabled}set enabled(i){this._enabled=i,this.update()}get contextKey(){return this._contextKey}set contextKey(i){this._contextKey=i,this.update()}get busy(){return this._busy}set busy(i){this._busy=i,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(i){let o=this._ignoreFocusOut!==i&&!$A;this._ignoreFocusOut=i&&!$A,o&&this.update()}get buttons(){return this._buttons}set buttons(i){this._buttons=i,this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(i){this._toggles=i??[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(i){this._validationMessage=i,this.update()}get severity(){return this._severity}set severity(i){this._severity=i,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(i=>{this.buttons.indexOf(i)!==-1&&this.onDidTriggerButtonEmitter.fire(i)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(i=jfe.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:i})}willHide(i=jfe.Other){this.onWillHideEmitter.fire({reason:i})}update(){var i,o;if(!this.visible)return;let s=this.getTitle();s&&this.ui.title.textContent!==s?this.ui.title.textContent=s:!s&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText="\xA0");let c=this.getDescription();if(this.ui.description1.textContent!==c&&(this.ui.description1.textContent=c),this.ui.description2.textContent!==c&&(this.ui.description2.textContent=c),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?N1(this.ui.widget,this._widget):N1(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new MC,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();let h=this.buttons.filter(w=>w===yyt).map((w,D)=>N3e(w,`id-${D}`,async()=>this.onDidTriggerButtonEmitter.fire(w)));this.ui.leftActionBar.push(h,{icon:!0,label:!1}),this.ui.rightActionBar.clear();let b=this.buttons.filter(w=>w!==yyt).map((w,D)=>N3e(w,`id-${D}`,async()=>this.onDidTriggerButtonEmitter.fire(w)));this.ui.rightActionBar.push(b,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;let h=(o=(i=this.toggles)===null||i===void 0?void 0:i.filter(b=>b instanceof Aj))!==null&&o!==void 0?o:[];this.ui.inputBox.toggles=h}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);let _=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==_&&(this._lastValidationMessage=_,N1(this.ui.message),o2i(_,this.ui.message,{callback:h=>{this.ui.linkOpenerDelegate(h)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?de("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(i){if(this.ui.inputBox.showDecoration(i),i!==jy.Ignore){let o=this.ui.inputBox.stylesForType(i);this.ui.message.style.color=o.foreground?`${o.foreground}`:"",this.ui.message.style.backgroundColor=o.background?`${o.background}`:"",this.ui.message.style.border=o.border?`1px solid ${o.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}};Ast.noPromptMessage=de("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");A3e=class l extends Ast{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new fn),this.onWillAcceptEmitter=this._register(new fn),this.onDidAcceptEmitter=this._register(new fn),this.onDidCustomEmitter=this._register(new fn),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=F7.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new fn),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new fn),this.onDidTriggerItemButtonEmitter=this._register(new fn),this.onDidTriggerSeparatorButtonEmitter=this._register(new fn),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._focusEventBufferer=new PK,this.type="quickPick",this.filterValue=i=>i,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(i){this._quickNavigate=i,this.update()}get value(){return this._value}set value(i){this.doSetValue(i)}doSetValue(i,o){this._value!==i&&(this._value=i,o||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(i){this._ariaLabel=i,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(i){this.ui.list.scrollTop=i}set items(i){this._items=i,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(i){this._canSelectMany=i,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(i){this._canAcceptInBackground=i}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(i){this._matchOnDescription=i,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(i){this._matchOnDetail=i,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(i){this._matchOnLabel=i,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(i){this._matchOnLabelMode=i,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(i){this._sortByLabel=i,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(i){this._keepScrollPosition=i}get itemActivation(){return this._itemActivation}set itemActivation(i){this._itemActivation=i}get activeItems(){return this._activeItems}set activeItems(i){this._activeItems=i,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(i){this._selectedItems=i,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?ZTi:this.ui.keyMods}get valueSelection(){let i=this.ui.inputBox.getSelection();if(i)return[i.start,i.end]}set valueSelection(i){this._valueSelection=i,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(i){this._customButton=i,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(i){this._customButtonLabel=i,this.update()}get customHover(){return this._customButtonHover}set customHover(i){this._customButtonHover=i,this.update()}get ok(){return this._ok}set ok(i){this._ok=i,this.update()}get hideInput(){return!!this._hideInput}set hideInput(i){this._hideInput=i,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(F0.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(i=>{this.doSetValue(i,!0)})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this._focusEventBufferer.wrapEvent(this.ui.list.onDidChangeFocus,(i,o)=>o)(i=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Op(i,this._activeItems,(o,s)=>o===s)||(this._activeItems=i,this.onDidChangeActiveEmitter.fire(i))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:i,event:o})=>{if(this.canSelectMany){i.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&Op(i,this._selectedItems,(s,c)=>s===c)||(this._selectedItems=i,this.onDidChangeSelectionEmitter.fire(i),i.length&&this.handleAccept(u6e(o)&&o.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(i=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&Op(i,this._selectedItems,(o,s)=>o===s)||(this._selectedItems=i,this.onDidChangeSelectionEmitter.fire(i)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(i=>this.onDidTriggerItemButtonEmitter.fire(i))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered(i=>this.onDidTriggerSeparatorButtonEmitter.fire(i))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(i){let o=!1;this.onWillAcceptEmitter.fire({veto:()=>o=!0}),o||this.onDidAcceptEmitter.fire({inBackground:i})}registerQuickNavigation(){return Tr(this.ui.container,$o.KEY_UP,i=>{if(this.canSelectMany||!this._quickNavigate)return;let o=new w_(i),s=o.keyCode;this._quickNavigate.keybindings.some(h=>{let b=h.getChords();return b.length>1?!1:b[0].shiftKey&&s===4?!(o.ctrlKey||o.altKey||o.metaKey):!!(b[0].altKey&&s===6||b[0].ctrlKey&&s===5||b[0].metaKey&&s===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;let i=this.keepScrollPosition?this.scrollTop:0,o=!!this.description,s={title:!!this.title||!!this.step||!!this.buttons.length,description:o,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||o,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(s),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let c=this.ariaLabel;!c&&s.inputBox&&(c=this.placeholder||l.DEFAULT_ARIA_LABEL,this.title&&(c+=` - ${this.title}`)),this.ui.list.ariaLabel!==c&&(this.ui.list.ariaLabel=c??null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated&&(this.itemsUpdated=!1,this._focusEventBufferer.bufferEvents(()=>{switch(this.ui.list.setElements(this.items),this.ui.list.shouldLoop=!this.canSelectMany,this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case F7.NONE:this._itemActivation=F7.FIRST;break;case F7.SECOND:this.ui.list.focus(F0.Second),this._itemActivation=F7.FIRST;break;case F7.LAST:this.ui.list.focus(F0.Last),this._itemActivation=F7.FIRST;break;default:this.trySelectFirst();break}})),this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",s.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(F0.First)),this.keepScrollPosition&&(this.scrollTop=i)}focus(i){this.ui.list.focus(i),this.canSelectMany&&this.ui.list.domFocus()}accept(i){i&&!this._canAcceptInBackground||this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(i??!1))}};A3e.DEFAULT_ARIA_LABEL=de("quickInputBox.ariaLabel","Type to narrow down results.");vyt=class extends Ast{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new fn),this.onDidAcceptEmitter=this._register(new fn),this.type="inputBox",this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(i){this._value=i||"",this.update()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.update()}get password(){return this._password}set password(i){this._password=i,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(i=>{i!==this.value&&(this._value=i,this.onDidValueChangeEmitter.fire(i))})),this.visibleDisposables.add(this.ui.onDidAccept(()=>this.onDidAcceptEmitter.fire())),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");let i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}},byt=class extends wX{constructor(i,o){super("element",!1,s=>this.getOverrideOptions(s),i,o)}getOverrideOptions(i){var o;let s=(Py(i.content)?(o=i.content.textContent)!==null&&o!==void 0?o:"":typeof i.content=="string"?i.content:i.content.value).includes(` +`);return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:s,skipFadeInAnimation:!0}}}};byt=Rzi([s2i(0,gl),s2i(1,yL)],byt)});var p2i=Ht(()=>{});var pRn,yue,xyt=Ht(()=>{va();cft();jD();Zot();JF();B2();oue();j1();Pa();vP();$r();P0();p2i();wj();pRn={buttonBackground:"#0E639C",buttonHoverBackground:"#006BB3",buttonSeparator:Kr.white.toString(),buttonForeground:Kr.white.toString(),buttonBorder:void 0,buttonSecondaryBackground:void 0,buttonSecondaryForeground:void 0,buttonSecondaryHoverBackground:void 0},yue=class extends Ui{get onDidClick(){return this._onDidClick.event}constructor(i,o){super(),this._label="",this._onDidClick=this._register(new fn),this._onDidEscape=this._register(new fn),this.options=o,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!o.secondary);let s=o.secondary?o.buttonSecondaryBackground:o.buttonBackground,c=o.secondary?o.buttonSecondaryForeground:o.buttonForeground;this._element.style.color=c||"",this._element.style.backgroundColor=s||"",o.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),typeof o.title=="string"&&this.setTitle(o.title),typeof o.ariaLabel=="string"&&this._element.setAttribute("aria-label",o.ariaLabel),i.appendChild(this._element),this._register(Ry.addTarget(this._element)),[$o.CLICK,Zm.Tap].forEach(_=>{this._register(Tr(this._element,_,h=>{if(!this.enabled){Kd.stop(h);return}this._onDidClick.fire(h)}))}),this._register(Tr(this._element,$o.KEY_DOWN,_=>{let h=new w_(_),b=!1;this.enabled&&(h.equals(3)||h.equals(10))?(this._onDidClick.fire(_),b=!0):h.equals(9)&&(this._onDidEscape.fire(_),this._element.blur(),b=!0),b&&Kd.stop(h,!0)})),this._register(Tr(this._element,$o.MOUSE_OVER,_=>{this._element.classList.contains("disabled")||this.updateBackground(!0)})),this._register(Tr(this._element,$o.MOUSE_OUT,_=>{this.updateBackground(!1)})),this.focusTracker=this._register(lI(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.updateBackground(!0)})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.updateBackground(!1)}))}dispose(){super.dispose(),this._element.remove()}getContentElements(i){let o=[];for(let s of I7(i))if(typeof s=="string"){if(s=s.trim(),s==="")continue;let c=document.createElement("span");c.textContent=s,o.push(c)}else o.push(s);return o}updateBackground(i){let o;this.options.secondary?o=i?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:o=i?this.options.buttonHoverBackground:this.options.buttonBackground,o&&(this._element.style.backgroundColor=o)}get element(){return this._element}set label(i){var o;if(this._label===i||YL(this._label)&&YL(i)&&cwi(this._label,i))return;this._element.classList.add("monaco-text-button");let s=this.options.supportShortLabel?this._labelElement:this._element;if(YL(i)){let _=Tfe(i,{inline:!0});_.dispose();let h=(o=_.element.querySelector("p"))===null||o===void 0?void 0:o.innerHTML;if(h){let b=oft(h,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});s.innerHTML=b}else N1(s)}else this.options.supportIcons?N1(s,...this.getContentElements(i)):s.textContent=i;let c="";typeof this.options.title=="string"?c=this.options.title:this.options.title&&(c=pwi(i)),this.setTitle(c),typeof this.options.ariaLabel=="string"?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",c),this._label=i}get label(){return this._label}set icon(i){this._element.classList.add(...uc.asClassNameArray(i))}set enabled(i){i?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}setTitle(i){var o;!this._hover&&i!==""?this._hover=this._register(j2().setupUpdatableHover((o=this.options.hoverDelegate)!==null&&o!==void 0?o:P1("mouse"),this._element,i)):this._hover&&this._hover.update(i)}}});var m2i=Ht(()=>{});var hPe,qoi=Ht(()=>{va();Bl();m2i();hPe=class{constructor(i,o,s){this.options=o,this.styles=s,this.count=0,this.element=bo(i,No(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(i){this.count=i,this.render()}setTitleFormat(i){this.titleFormat=i,this.render()}render(){var i,o;this.element.textContent=QB(this.countFormat,this.count),this.element.title=QB(this.titleFormat,this.count),this.element.style.backgroundColor=(i=this.styles.badgeBackground)!==null&&i!==void 0?i:"",this.element.style.color=(o=this.styles.badgeForeground)!==null&&o!==void 0?o:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}});var h2i=Ht(()=>{});var g2i,y2i,$oi,Goi,v2i,Pst,b2i=Ht(()=>{va();Bu();$r();h2i();g2i="done",y2i="active",$oi="infinite",Goi="infinite-long-running",v2i="discrete",Pst=class l extends Ui{constructor(i,o){super(),this.progressSignal=this._register(new Nh),this.workedVal=0,this.showDelayedScheduler=this._register(new Bd(()=>A2(this.element),0)),this.longRunningScheduler=this._register(new Bd(()=>this.infiniteLongRunning(),l.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(i,o)}create(i,o){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),i.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=o?.progressBarBackground||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(y2i,$oi,Goi,v2i),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel(),this.progressSignal.clear()}stop(){return this.doDone(!1)}doDone(i){return this.element.classList.add(g2i),this.element.classList.contains($oi)?(this.bit.style.opacity="0",i?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",i?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(v2i,g2i,Goi),this.element.classList.add(y2i,$oi),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Goi)}getContainer(){return this.element}};Pst.LONG_RUNNING_INFINITE_THRESHOLD=1e4});var Bzi,jzi,Wzi,P3e,L3e,O3e,Koi=Ht(()=>{B2();I3e();Og();Fs();Bzi=de("caseDescription","Match Case"),jzi=de("wordsDescription","Match Whole Word"),Wzi=de("regexDescription","Use Regular Expression"),P3e=class extends Aj{constructor(i){var o;super({icon:Xo.caseSensitive,title:Bzi+i.appendTitle,isChecked:i.isChecked,hoverDelegate:(o=i.hoverDelegate)!==null&&o!==void 0?o:P1("element"),inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForeground,inputActiveOptionBackground:i.inputActiveOptionBackground})}},L3e=class extends Aj{constructor(i){var o;super({icon:Xo.wholeWord,title:jzi+i.appendTitle,isChecked:i.isChecked,hoverDelegate:(o=i.hoverDelegate)!==null&&o!==void 0?o:P1("element"),inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForeground,inputActiveOptionBackground:i.inputActiveOptionBackground})}},O3e=class extends Aj{constructor(i){var o;super({icon:Xo.regex,title:Wzi+i.appendTitle,isChecked:i.isChecked,hoverDelegate:(o=i.hoverDelegate)!==null&&o!==void 0?o:P1("element"),inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForeground,inputActiveOptionBackground:i.inputActiveOptionBackground})}}});var Cyt,S2i=Ht(()=>{Cyt=class{constructor(i,o=0,s=i.length,c=o-1){this.items=i,this.start=o,this.end=s,this.index=c}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}});var kyt,x2i=Ht(()=>{S2i();kyt=class{constructor(i=[],o=10){this._initialize(i),this._limit=o,this._onChange()}getHistory(){return this._elements}add(i){this._history.delete(i),this._history.add(i),this._onChange()}next(){return this._navigator.next()}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return this._navigator.current()===null}has(i){return this._history.has(i)}_onChange(){this._reduceToLimit();let i=this._elements;this._navigator=new Cyt(i,0,i.length,i.length)}_reduceToLimit(){let i=this._elements;i.length>this._limit&&this._initialize(i.slice(i.length-this._limit))}_currentPosition(){let i=this._navigator.current();return i?this._elements.indexOf(i):-1}_initialize(i){this._history=new Set;for(let o of i)this._history.add(o)}get _elements(){let i=[];return this._history.forEach(o=>i.push(o)),i}}});var C2i=Ht(()=>{});var Lst,Xoi,F3e,wyt=Ht(()=>{va();mW();cri();Ij();$D();wj();B2();vj();gj();Pa();x2i();oP();C2i();Fs();Lst=No,Xoi=class extends ex{constructor(i,o,s){var c;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new fn),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new fn),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=o,this.options=s,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(c=this.options.tooltip)!==null&&c!==void 0?c:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=bo(i,Lst(".monaco-inputbox.idle"));let _=this.options.flexibleHeight?"textarea":"input",h=bo(this.element,Lst(".ibwrapper"));if(this.input=bo(h,Lst(_+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=bo(h,Lst("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new _Le(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),bo(i,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(D=>this.input.scrollTop=D.scrollTop));let b=this._register(new Yd(i.ownerDocument,"selectionchange")),w=Yo.filter(b.event,()=>{let D=i.ownerDocument.getSelection();return D?.anchorNode===h});this._register(w(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this._register(this.ignoreGesture(this.input)),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new NC(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(i){this.placeholder=i,this.input.setAttribute("placeholder",i)}setTooltip(i){this.tooltip=i,this.hover?this.hover.update(i):this.hover=this._register(j2().setupUpdatableHover(P1("mouse"),this.input,i))}get inputElement(){return this.input}get value(){return this.input.value}set value(i){this.input.value!==i&&(this.input.value=i,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:rj(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return RNe(this.input)}select(i=null){this.input.select(),i&&(this.input.setSelectionRange(i.start,i.end),i.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){var i;let o=this.input.selectionStart;if(o===null)return null;let s=(i=this.input.selectionEnd)!==null&&i!==void 0?i:o;return{start:o,end:s}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(i){this.input.style.width=`calc(100% - ${i}px)`,this.mirror&&(this.mirror.style.paddingRight=i+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;let i=this.cachedContentHeight,o=this.cachedHeight,s=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:i,height:o}),this.scrollableElement.setScrollPosition({scrollTop:s})}showMessage(i,o){if(this.state==="open"&&D2(this.message,i))return;this.message=i,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(i.type));let s=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${oj(s.border,"transparent")}`,this.message.content&&(this.hasFocus()||o)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let i=null;return this.validation&&(i=this.validation(this.value),i?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(i)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),i?.type}stylesForType(i){let o=this.options.inputBoxStyles;switch(i){case 1:return{border:o.inputValidationInfoBorder,background:o.inputValidationInfoBackground,foreground:o.inputValidationInfoForeground};case 2:return{border:o.inputValidationWarningBorder,background:o.inputValidationWarningBackground,foreground:o.inputValidationWarningForeground};default:return{border:o.inputValidationErrorBorder,background:o.inputValidationErrorBackground,foreground:o.inputValidationErrorForeground}}}classForType(i){switch(i){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let i,o=()=>i.style.width=zD(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:c=>{var _,h;if(!this.message)return null;i=bo(c,Lst(".monaco-inputbox-container")),o();let b={inline:!0,className:"monaco-inputbox-message"},w=this.message.formatContent?Bki(this.message.content,b):Rki(this.message.content,b);w.classList.add(this.classForType(this.message.type));let D=this.stylesForType(this.message.type);return w.style.backgroundColor=(_=D.background)!==null&&_!==void 0?_:"",w.style.color=(h=D.foreground)!==null&&h!==void 0?h:"",w.style.border=D.border?`1px solid ${D.border}`:"",bo(i,w),null},onHide:()=>{this.state="closed"},layout:o});let s;this.message.type===3?s=de("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?s=de("alertWarningMessage","Warning: {0}",this.message.content):s=de("alertInfoMessage","Info: {0}",this.message.content),ZS(s),this.state="open"}_hideMessage(){this.contextViewProvider&&(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;let i=this.value,s=i.charCodeAt(i.length-1)===10?" ":"";(i+s).replace(/\u000c/g,"")?this.mirror.textContent=i+s:this.mirror.innerText="\xA0",this.layout()}applyStyles(){var i,o,s;let c=this.options.inputBoxStyles,_=(i=c.inputBackground)!==null&&i!==void 0?i:"",h=(o=c.inputForeground)!==null&&o!==void 0?o:"",b=(s=c.inputBorder)!==null&&s!==void 0?s:"";this.element.style.backgroundColor=_,this.element.style.color=h,this.input.style.backgroundColor="inherit",this.input.style.color=h,this.element.style.border=`1px solid ${oj(b,"transparent")}`}layout(){if(!this.mirror)return;let i=this.cachedContentHeight;this.cachedContentHeight=rj(this.mirror),i!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(i){let o=this.inputElement,s=o.selectionStart,c=o.selectionEnd,_=o.value;s!==null&&c!==null&&(this.value=_.substr(0,s)+i+_.substr(c),o.setSelectionRange(s+1,s+1),this.layout())}dispose(){var i;this._hideMessage(),this.message=null,(i=this.actionbar)===null||i===void 0||i.dispose(),super.dispose()}},F3e=class extends Xoi{constructor(i,o,s){let c=de({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is \u21C5 to represent the up and down arrow keys.']}," or {0} for history","\u21C5"),_=de({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is \u21C5 to represent the up and down arrow keys.']}," ({0} for history)","\u21C5");super(i,o,s),this._onDidFocus=this._register(new fn),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new fn),this.onDidBlur=this._onDidBlur.event,this.history=new kyt(s.history,100);let h=()=>{if(s.showHistoryHint&&s.showHistoryHint()&&!this.placeholder.endsWith(c)&&!this.placeholder.endsWith(_)&&this.history.getHistory().length){let b=this.placeholder.endsWith(")")?c:_,w=this.placeholder+b;s.showPlaceholderOnFocus&&!RNe(this.input)?this.placeholder=w:this.setPlaceHolder(w)}};this.observer=new MutationObserver((b,w)=>{b.forEach(D=>{D.target.textContent||h()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>h()),this.onblur(this.input,()=>{let b=w=>{if(this.placeholder.endsWith(w)){let D=this.placeholder.slice(0,this.placeholder.length-w.length);return s.showPlaceholderOnFocus?this.placeholder=D:this.setPlaceHolder(D),!0}else return!1};b(_)||b(c)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(i){this.value&&(i||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let i=this.getNextValue();i&&(i=i===this.value?this.getNextValue():i),this.value=i??"",hP(this.value?this.value:de("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let i=this.getPreviousValue();i&&(i=i===this.value?this.getPreviousValue():i),i&&(this.value=i,hP(this.value))}setPlaceHolder(i){super.setPlaceHolder(i),this.setTooltip(i)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let i=this.history.current();return i||(i=this.history.last(),this.history.next()),i}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}});var Yoi=Ht(()=>{});var zzi,gPe,Tyt=Ht(()=>{va();Koi();wyt();gj();Pa();Yoi();Fs();$r();B2();zzi=de("defaultLabel","input"),gPe=class extends ex{constructor(i,o,s){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new Nh),this.additionalToggles=[],this._onDidOptionChange=this._register(new fn),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new fn),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new fn),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new fn),this._onKeyUp=this._register(new fn),this._onCaseSensitiveKeyDown=this._register(new fn),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new fn),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=s.placeholder||"",this.validation=s.validation,this.label=s.label||zzi,this.showCommonFindToggles=!!s.showCommonFindToggles;let c=s.appendCaseSensitiveLabel||"",_=s.appendWholeWordsLabel||"",h=s.appendRegexLabel||"",b=s.history||[],w=!!s.flexibleHeight,D=!!s.flexibleWidth,O=s.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new F3e(this.domNode,o,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:b,showHistoryHint:s.showHistoryHint,flexibleHeight:w,flexibleWidth:D,flexibleMaxHeight:O,inputBoxStyles:s.inputBoxStyles}));let j=this._register(CW());if(this.showCommonFindToggles){this.regex=this._register(new O3e({appendTitle:h,isChecked:!1,hoverDelegate:j,...s.toggleStyles})),this._register(this.regex.onChange(X=>{this._onDidOptionChange.fire(X),!X&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(X=>{this._onRegexKeyDown.fire(X)})),this.wholeWords=this._register(new L3e({appendTitle:_,isChecked:!1,hoverDelegate:j,...s.toggleStyles})),this._register(this.wholeWords.onChange(X=>{this._onDidOptionChange.fire(X),!X&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new P3e({appendTitle:c,isChecked:!1,hoverDelegate:j,...s.toggleStyles})),this._register(this.caseSensitive.onChange(X=>{this._onDidOptionChange.fire(X),!X&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(X=>{this._onCaseSensitiveKeyDown.fire(X)}));let F=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,X=>{if(X.equals(15)||X.equals(17)||X.equals(9)){let K=F.indexOf(this.domNode.ownerDocument.activeElement);if(K>=0){let re=-1;X.equals(17)?re=(K+1)%F.length:X.equals(15)&&(K===0?re=F.length-1:re=K-1),X.equals(9)?(F[K].blur(),this.inputBox.focus()):re>=0&&F[re].focus(),Kd.stop(X,!0)}}})}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(s?.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),i?.appendChild(this.domNode),this._register(Tr(this.inputBox.inputElement,"compositionstart",F=>{this.imeSessionInProgress=!0})),this._register(Tr(this.inputBox.inputElement,"compositionend",F=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,F=>this._onKeyDown.fire(F)),this.onkeyup(this.inputBox.inputElement,F=>this._onKeyUp.fire(F)),this.oninput(this.inputBox.inputElement,F=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,F=>this._onMouseDown.fire(F))}get onDidChange(){return this.inputBox.onDidChange}layout(i){this.inputBox.layout(),this.updateInputBoxPadding(i.collapsedFindWidget)}enable(){var i,o,s;this.domNode.classList.remove("disabled"),this.inputBox.enable(),(i=this.regex)===null||i===void 0||i.enable(),(o=this.wholeWords)===null||o===void 0||o.enable(),(s=this.caseSensitive)===null||s===void 0||s.enable();for(let c of this.additionalToggles)c.enable()}disable(){var i,o,s;this.domNode.classList.add("disabled"),this.inputBox.disable(),(i=this.regex)===null||i===void 0||i.disable(),(o=this.wholeWords)===null||o===void 0||o.disable(),(s=this.caseSensitive)===null||s===void 0||s.disable();for(let c of this.additionalToggles)c.disable()}setFocusInputOnOptionClick(i){this.fixFocusOnOptionClickEnabled=i}setEnabled(i){i?this.enable():this.disable()}setAdditionalToggles(i){for(let o of this.additionalToggles)o.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new pr;for(let o of i??[])this.additionalTogglesDisposables.value.add(o),this.controls.appendChild(o.domNode),this.additionalTogglesDisposables.value.add(o.onChange(s=>{this._onDidOptionChange.fire(s),!s&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(o);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(i=!1){var o,s,c,_,h,b;i?this.inputBox.paddingRight=0:this.inputBox.paddingRight=((s=(o=this.caseSensitive)===null||o===void 0?void 0:o.width())!==null&&s!==void 0?s:0)+((_=(c=this.wholeWords)===null||c===void 0?void 0:c.width())!==null&&_!==void 0?_:0)+((b=(h=this.regex)===null||h===void 0?void 0:h.width())!==null&&b!==void 0?b:0)+this.additionalToggles.reduce((w,D)=>w+D.width(),0)}getValue(){return this.inputBox.value}setValue(i){this.inputBox.value!==i&&(this.inputBox.value=i)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var i,o;return(o=(i=this.caseSensitive)===null||i===void 0?void 0:i.checked)!==null&&o!==void 0?o:!1}setCaseSensitive(i){this.caseSensitive&&(this.caseSensitive.checked=i)}getWholeWords(){var i,o;return(o=(i=this.wholeWords)===null||i===void 0?void 0:i.checked)!==null&&o!==void 0?o:!1}setWholeWords(i){this.wholeWords&&(this.wholeWords.checked=i)}getRegex(){var i,o;return(o=(i=this.regex)===null||i===void 0?void 0:i.checked)!==null&&o!==void 0?o:!1}setRegex(i){this.regex&&(this.regex.checked=i,this.validate())}focusOnCaseSensitive(){var i;(i=this.caseSensitive)===null||i===void 0||i.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(i){this.inputBox.showMessage(i)}clearMessage(){this.inputBox.hideMessage()}}});var Vzi,Eyt,k2i=Ht(()=>{va();Tyt();$r();eue();hyt();Vzi=No,Eyt=class extends Ui{constructor(i,o,s){super(),this.parent=i,this.onKeyDown=_=>Cm(this.findInput.inputBox.inputElement,$o.KEY_DOWN,_),this.onDidChange=_=>this.findInput.onDidChange(_),this.container=bo(this.parent,Vzi(".quick-input-box")),this.findInput=this._register(new gPe(this.container,void 0,{label:"",inputBoxStyles:o,toggleStyles:s}));let c=this.findInput.inputBox.inputElement;c.role="combobox",c.ariaHasPopup="menu",c.ariaAutoComplete="list",c.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(i){this.findInput.setValue(i)}select(i=null){this.findInput.inputBox.select(i)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(i){this.findInput.inputBox.setPlaceHolder(i)}get password(){return this.findInput.inputBox.inputElement.type==="password"}set password(i){this.findInput.inputBox.inputElement.type=i?"password":"text"}set enabled(i){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!i)}set toggles(i){this.findInput.setAdditionalToggles(i)}setAttribute(i,o){this.findInput.inputBox.inputElement.setAttribute(i,o)}showDecoration(i){i===jy.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:i===jy.Info?1:i===jy.Warning?2:3,content:""})}stylesForType(i){return this.findInput.inputBox.stylesForType(i===jy.Info?1:i===jy.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}});function Hzi(l,i){return{...i,accessibilityProvider:i.accessibilityProvider&&new Zoi(l,i.accessibilityProvider)}}var Qoi,Zoi,Dyt,w2i=Ht(()=>{su();am();Pa();$r();Yri();pue();Qoi=class{get templateId(){return this.renderer.templateId}constructor(i,o){this.renderer=i,this.modelProvider=o}renderTemplate(i){return{data:this.renderer.renderTemplate(i),disposable:Ui.None}}renderElement(i,o,s,c){var _;if((_=s.disposable)===null||_===void 0||_.dispose(),!s.data)return;let h=this.modelProvider();if(h.isResolved(i))return this.renderer.renderElement(h.get(i),i,s.data,c);let b=new k_,w=h.resolve(i,b.token);s.disposable={dispose:()=>b.cancel()},this.renderer.renderPlaceholder(i,s.data),w.then(D=>this.renderer.renderElement(D,i,s.data,c))}disposeTemplate(i){i.disposable&&(i.disposable.dispose(),i.disposable=void 0),i.data&&(this.renderer.disposeTemplate(i.data),i.data=void 0)}},Zoi=class{constructor(i,o){this.modelProvider=i,this.accessibilityProvider=o}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(i){let o=this.modelProvider();return o.isResolved(i)?this.accessibilityProvider.getAriaLabel(o.get(i)):null}};Dyt=class{constructor(i,o,s,c,_={}){let h=()=>this.model,b=c.map(w=>new Qoi(w,h));this.list=new Aw(i,o,s,b,Hzi(h,_))}updateOptions(i){this.list.updateOptions(i)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return Yo.map(this.list.onMouseDblClick,({element:i,index:o,browserEvent:s})=>({element:i===void 0?void 0:this._model.get(i),index:o,browserEvent:s}))}get onPointer(){return Yo.map(this.list.onPointer,({element:i,index:o,browserEvent:s})=>({element:i===void 0?void 0:this._model.get(i),index:o,browserEvent:s}))}get onDidChangeSelection(){return Yo.map(this.list.onDidChangeSelection,({elements:i,indexes:o,browserEvent:s})=>({elements:i.map(c=>this._model.get(c)),indexes:o,browserEvent:s}))}get model(){return this._model}set model(i){this._model=i,this.list.splice(0,this.list.length,sI(i.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(i=>this.model.get(i))}style(i){this.list.style(i)}dispose(){this.list.dispose()}}});var T2i=Ht(()=>{});var R3e,Uzi,Ost,Jzi,qzi,$zi,Gzi,Fst,Mst,M3e,E2i,e3,B3e=Ht(()=>{va();mW();JF();Bu();efe();Pa();$r();uf();T2i();R3e=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Uzi=!1;(function(l){l.North="north",l.South="south",l.East="east",l.West="west"})(Ost||(Ost={}));Jzi=4,qzi=new fn,$zi=300,Gzi=new fn,Fst=class{constructor(i){this.el=i,this.disposables=new pr}get onPointerMove(){return this.disposables.add(new Yd(Xa(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new Yd(Xa(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}};R3e([Cv],Fst.prototype,"onPointerMove",null);R3e([Cv],Fst.prototype,"onPointerUp",null);Mst=class{get onPointerMove(){return this.disposables.add(new Yd(this.el,Zm.Change)).event}get onPointerUp(){return this.disposables.add(new Yd(this.el,Zm.End)).event}constructor(i){this.el=i,this.disposables=new pr}dispose(){this.disposables.dispose()}};R3e([Cv],Mst.prototype,"onPointerMove",null);R3e([Cv],Mst.prototype,"onPointerUp",null);M3e=class{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(i){this.factory=i}dispose(){}};R3e([Cv],M3e.prototype,"onPointerMove",null);R3e([Cv],M3e.prototype,"onPointerUp",null);E2i="pointer-events-disabled",e3=class l extends Ui{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(i){this._state!==i&&(this.el.classList.toggle("disabled",i===0),this.el.classList.toggle("minimum",i===1),this.el.classList.toggle("maximum",i===2),this._state=i,this.onDidEnablementChange.fire(i))}set orthogonalStartSash(i){if(this._orthogonalStartSash!==i){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),i){let o=s=>{this.orthogonalStartDragHandleDisposables.clear(),s!==0&&(this._orthogonalStartDragHandle=bo(this.el,No(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Qs(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new Yd(this._orthogonalStartDragHandle,"mouseenter")).event(()=>l.onMouseEnter(i),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new Yd(this._orthogonalStartDragHandle,"mouseleave")).event(()=>l.onMouseLeave(i),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(i.onDidEnablementChange.event(o,this)),o(i.state)}this._orthogonalStartSash=i}}set orthogonalEndSash(i){if(this._orthogonalEndSash!==i){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),i){let o=s=>{this.orthogonalEndDragHandleDisposables.clear(),s!==0&&(this._orthogonalEndDragHandle=bo(this.el,No(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Qs(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new Yd(this._orthogonalEndDragHandle,"mouseenter")).event(()=>l.onMouseEnter(i),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new Yd(this._orthogonalEndDragHandle,"mouseleave")).event(()=>l.onMouseLeave(i),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(i.onDidEnablementChange.event(o,this)),o(i.state)}this._orthogonalEndSash=i}}constructor(i,o,s){super(),this.hoverDelay=$zi,this.hoverDelayer=this._register(new kw(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new fn),this._onDidStart=this._register(new fn),this._onDidChange=this._register(new fn),this._onDidReset=this._register(new fn),this._onDidEnd=this._register(new fn),this.orthogonalStartSashDisposables=this._register(new pr),this.orthogonalStartDragHandleDisposables=this._register(new pr),this.orthogonalEndSashDisposables=this._register(new pr),this.orthogonalEndDragHandleDisposables=this._register(new pr),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=bo(i,No(".monaco-sash")),s.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${s.orthogonalEdge}`),uu&&this.el.classList.add("mac");let c=this._register(new Yd(this.el,"mousedown")).event;this._register(c(j=>this.onPointerStart(j,new Fst(i)),this));let _=this._register(new Yd(this.el,"dblclick")).event;this._register(_(this.onPointerDoublePress,this));let h=this._register(new Yd(this.el,"mouseenter")).event;this._register(h(()=>l.onMouseEnter(this)));let b=this._register(new Yd(this.el,"mouseleave")).event;this._register(b(()=>l.onMouseLeave(this))),this._register(Ry.addTarget(this.el));let w=this._register(new Yd(this.el,Zm.Start)).event;this._register(w(j=>this.onPointerStart(j,new Mst(this.el)),this));let D=this._register(new Yd(this.el,Zm.Tap)).event,O;this._register(D(j=>{if(O){clearTimeout(O),O=void 0,this.onPointerDoublePress(j);return}clearTimeout(O),O=setTimeout(()=>O=void 0,250)},this)),typeof s.size=="number"?(this.size=s.size,s.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=Jzi,this._register(qzi.event(j=>{this.size=j,this.layout()}))),this._register(Gzi.event(j=>this.hoverDelay=j)),this.layoutProvider=o,this.orthogonalStartSash=s.orthogonalStartSash,this.orthogonalEndSash=s.orthogonalEndSash,this.orientation=s.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",Uzi),this.layout()}onPointerStart(i,o){Kd.stop(i);let s=!1;if(!i.__orthogonalSashEvent){let K=this.getOrthogonalSash(i);K&&(s=!0,i.__orthogonalSashEvent=!0,K.onPointerStart(i,new M3e(o)))}if(this.linkedSash&&!i.__linkedSashEvent&&(i.__linkedSashEvent=!0,this.linkedSash.onPointerStart(i,new M3e(o))),!this.state)return;let c=this.el.ownerDocument.getElementsByTagName("iframe");for(let K of c)K.classList.add(E2i);let _=i.pageX,h=i.pageY,b=i.altKey,w={startX:_,currentX:_,startY:h,currentY:h,altKey:b};this.el.classList.add("active"),this._onDidStart.fire(w);let D=ww(this.el),O=()=>{let K="";s?K="all-scroll":this.orientation===1?this.state===1?K="s-resize":this.state===2?K="n-resize":K=uu?"row-resize":"ns-resize":this.state===1?K="e-resize":this.state===2?K="w-resize":K=uu?"col-resize":"ew-resize",D.textContent=`* { cursor: ${K} !important; }`},j=new pr;O(),s||this.onDidEnablementChange.event(O,null,j);let F=K=>{Kd.stop(K,!1);let re={startX:_,currentX:K.pageX,startY:h,currentY:K.pageY,altKey:b};this._onDidChange.fire(re)},X=K=>{Kd.stop(K,!1),this.el.removeChild(D),this.el.classList.remove("active"),this._onDidEnd.fire(),j.dispose();for(let re of c)re.classList.remove(E2i)};o.onPointerMove(F,null,j),o.onPointerUp(X,null,j),j.add(o)}onPointerDoublePress(i){let o=this.getOrthogonalSash(i);o&&o._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(i,o=!1){i.el.classList.contains("active")?(i.hoverDelayer.cancel(),i.el.classList.add("hover")):i.hoverDelayer.trigger(()=>i.el.classList.add("hover"),i.hoverDelay).then(void 0,()=>{}),!o&&i.linkedSash&&l.onMouseEnter(i.linkedSash,!0)}static onMouseLeave(i,o=!1){i.hoverDelayer.cancel(),i.el.classList.remove("hover"),!o&&i.linkedSash&&l.onMouseLeave(i.linkedSash,!0)}clearSashHoverState(){l.onMouseLeave(this)}layout(){if(this.orientation===0){let i=this.layoutProvider;this.el.style.left=i.getVerticalSashLeft(this)-this.size/2+"px",i.getVerticalSashTop&&(this.el.style.top=i.getVerticalSashTop(this)+"px"),i.getVerticalSashHeight&&(this.el.style.height=i.getVerticalSashHeight(this)+"px")}else{let i=this.layoutProvider;this.el.style.top=i.getHorizontalSashTop(this)-this.size/2+"px",i.getHorizontalSashLeft&&(this.el.style.left=i.getHorizontalSashLeft(this)+"px"),i.getHorizontalSashWidth&&(this.el.style.width=i.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(i){var o;let s=(o=i.initialTarget)!==null&&o!==void 0?o:i.target;if(!(!s||!Py(s))&&s.classList.contains("orthogonal-drag-handle"))return s.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}});var D2i=Ht(()=>{});var Kzi,Iyt,esi,tsi,vue,Rst,j3e,isi=Ht(()=>{va();mW();B3e();vj();su();j1();Pa();$r();QAe();fLe();cm();D2i();Kzi={separatorBorder:Kr.transparent},Iyt=class{set size(i){this._size=i}get size(){return this._size}get visible(){return typeof this._cachedVisibleSize>"u"}setVisible(i,o){var s,c;if(i!==this.visible){i?(this.size=k2(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof o=="number"?o:this.size,this.size=0),this.container.classList.toggle("visible",i);try{(c=(s=this.view).setVisible)===null||c===void 0||c.call(s,i)}catch(_){console.error("Splitview: Failed to set visible view"),console.error(_)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var i;return(i=this.view.proportionalLayout)!==null&&i!==void 0?i:!0}get snap(){return!!this.view.snap}set enabled(i){this.container.style.pointerEvents=i?"":"none"}constructor(i,o,s,c){this.container=i,this.view=o,this.disposable=c,this._cachedVisibleSize=void 0,typeof s=="number"?(this._size=s,this._cachedVisibleSize=void 0,i.classList.add("visible")):(this._size=0,this._cachedVisibleSize=s.cachedVisibleSize)}layout(i,o){this.layoutContainer(i);try{this.view.layout(this.size,i,o)}catch(s){console.error("Splitview: Failed to layout view"),console.error(s)}}dispose(){this.disposable.dispose()}},esi=class extends Iyt{layoutContainer(i){this.container.style.top=`${i}px`,this.container.style.height=`${this.size}px`}},tsi=class extends Iyt{layoutContainer(i){this.container.style.left=`${i}px`,this.container.style.width=`${this.size}px`}};(function(l){l[l.Idle=0]="Idle",l[l.Busy=1]="Busy"})(vue||(vue={}));(function(l){l.Distribute={type:"distribute"};function i(c){return{type:"split",index:c}}l.Split=i;function o(c){return{type:"auto",index:c}}l.Auto=o;function s(c){return{type:"invisible",cachedVisibleSize:c}}l.Invisible=s})(Rst||(Rst={}));j3e=class extends Ui{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(i){for(let o of this.sashItems)o.sash.orthogonalStartSash=i;this._orthogonalStartSash=i}set orthogonalEndSash(i){for(let o of this.sashItems)o.sash.orthogonalEndSash=i;this._orthogonalEndSash=i}set startSnappingEnabled(i){this._startSnappingEnabled!==i&&(this._startSnappingEnabled=i,this.updateSashEnablement())}set endSnappingEnabled(i){this._endSnappingEnabled!==i&&(this._endSnappingEnabled=i,this.updateSashEnablement())}constructor(i,o={}){var s,c,_,h,b;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=vue.Idle,this._onDidSashChange=this._register(new fn),this._onDidSashReset=this._register(new fn),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(s=o.orientation)!==null&&s!==void 0?s:0,this.inverseAltBehavior=(c=o.inverseAltBehavior)!==null&&c!==void 0?c:!1,this.proportionalLayout=(_=o.proportionalLayout)!==null&&_!==void 0?_:!0,this.getSashOrthogonalSize=o.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),i.appendChild(this.el),this.sashContainer=bo(this.el,No(".sash-container")),this.viewContainer=No(".split-view-container"),this.scrollable=this._register(new yj({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:D=>g2(Xa(this.el),D)})),this.scrollableElement=this._register(new sX(this.viewContainer,{vertical:this.orientation===0?(h=o.scrollbarVisibility)!==null&&h!==void 0?h:1:2,horizontal:this.orientation===1?(b=o.scrollbarVisibility)!==null&&b!==void 0?b:1:2},this.scrollable));let w=this._register(new Yd(this.viewContainer,"scroll")).event;this._register(w(D=>{let O=this.scrollableElement.getScrollPosition(),j=Math.abs(this.viewContainer.scrollLeft-O.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,F=Math.abs(this.viewContainer.scrollTop-O.scrollTop)<=1?void 0:this.viewContainer.scrollTop;(j!==void 0||F!==void 0)&&this.scrollableElement.setScrollPosition({scrollLeft:j,scrollTop:F})})),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(D=>{D.scrollTopChanged&&(this.viewContainer.scrollTop=D.scrollTop),D.scrollLeftChanged&&(this.viewContainer.scrollLeft=D.scrollLeft)})),bo(this.el,this.scrollableElement.getDomNode()),this.style(o.styles||Kzi),o.descriptor&&(this.size=o.descriptor.size,o.descriptor.views.forEach((D,O)=>{let j=E2(D.visible)||D.visible?D.size:{type:"invisible",cachedVisibleSize:D.size},F=D.view;this.doAddView(F,j,O,!0)}),this._contentSize=this.viewItems.reduce((D,O)=>D+O.size,0),this.saveProportions())}style(i){i.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",i.separatorBorder.toString()))}addView(i,o,s=this.viewItems.length,c){this.doAddView(i,o,s,c)}layout(i,o){let s=Math.max(this.size,this._contentSize);if(this.size=i,this.layoutContext=o,this.proportions){let c=0;for(let _=0;_0&&(h.size=k2(Math.round(b*i/c),h.minimumSize,h.maximumSize))}}else{let c=sI(this.viewItems.length),_=c.filter(b=>this.viewItems[b].priority===1),h=c.filter(b=>this.viewItems[b].priority===2);this.resize(this.viewItems.length-1,i-s,void 0,_,h)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map(i=>i.proportionalLayout&&i.visible?i.size/this._contentSize:void 0))}onSashStart({sash:i,start:o,alt:s}){for(let b of this.viewItems)b.enabled=!1;let c=this.sashItems.findIndex(b=>b.sash===i),_=BD(Tr(this.el.ownerDocument.body,"keydown",b=>h(this.sashDragState.current,b.altKey)),Tr(this.el.ownerDocument.body,"keyup",()=>h(this.sashDragState.current,!1))),h=(b,w)=>{let D=this.viewItems.map(K=>K.size),O=Number.NEGATIVE_INFINITY,j=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(w=!w),w)if(c===this.sashItems.length-1){let re=this.viewItems[c];O=(re.minimumSize-re.size)/2,j=(re.maximumSize-re.size)/2}else{let re=this.viewItems[c+1];O=(re.size-re.maximumSize)/2,j=(re.size-re.minimumSize)/2}let F,X;if(!w){let K=sI(c,-1),re=sI(c+1,this.viewItems.length),Pe=K.reduce((Mi,zi)=>Mi+(this.viewItems[zi].minimumSize-D[zi]),0),Le=K.reduce((Mi,zi)=>Mi+(this.viewItems[zi].viewMaximumSize-D[zi]),0),Je=re.length===0?Number.POSITIVE_INFINITY:re.reduce((Mi,zi)=>Mi+(D[zi]-this.viewItems[zi].minimumSize),0),Ye=re.length===0?Number.NEGATIVE_INFINITY:re.reduce((Mi,zi)=>Mi+(D[zi]-this.viewItems[zi].viewMaximumSize),0),ft=Math.max(Pe,Ye),Ct=Math.min(Je,Le),Et=this.findFirstSnapIndex(K),St=this.findFirstSnapIndex(re);if(typeof Et=="number"){let Mi=this.viewItems[Et],zi=Math.floor(Mi.viewMinimumSize/2);F={index:Et,limitDelta:Mi.visible?ft-zi:ft+zi,size:Mi.size}}if(typeof St=="number"){let Mi=this.viewItems[St],zi=Math.floor(Mi.viewMinimumSize/2);X={index:St,limitDelta:Mi.visible?Ct+zi:Ct-zi,size:Mi.size}}}this.sashDragState={start:b,current:b,index:c,sizes:D,minDelta:O,maxDelta:j,alt:w,snapBefore:F,snapAfter:X,disposable:_}};h(o,s)}onSashChange({current:i}){let{index:o,start:s,sizes:c,alt:_,minDelta:h,maxDelta:b,snapBefore:w,snapAfter:D}=this.sashDragState;this.sashDragState.current=i;let O=i-s,j=this.resize(o,O,c,void 0,void 0,h,b,w,D);if(_){let F=o===this.sashItems.length-1,X=this.viewItems.map(Ye=>Ye.size),K=F?o:o+1,re=this.viewItems[K],Pe=re.size-re.maximumSize,Le=re.size-re.minimumSize,Je=F?o-1:o+1;this.resize(Je,-j,X,void 0,void 0,Pe,Le)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(i){this._onDidSashChange.fire(i),this.sashDragState.disposable.dispose(),this.saveProportions();for(let o of this.viewItems)o.enabled=!0}onViewChange(i,o){let s=this.viewItems.indexOf(i);s<0||s>=this.viewItems.length||(o=typeof o=="number"?o:i.size,o=k2(o,i.minimumSize,i.maximumSize),this.inverseAltBehavior&&s>0?(this.resize(s-1,Math.floor((i.size-o)/2)),this.distributeEmptySpace(),this.layoutViews()):(i.size=o,this.relayout([s],void 0)))}resizeView(i,o){if(!(i<0||i>=this.viewItems.length)){if(this.state!==vue.Idle)throw new Error("Cant modify splitview");this.state=vue.Busy;try{let s=sI(this.viewItems.length).filter(b=>b!==i),c=[...s.filter(b=>this.viewItems[b].priority===1),i],_=s.filter(b=>this.viewItems[b].priority===2),h=this.viewItems[i];o=Math.round(o),o=k2(o,h.minimumSize,Math.min(h.maximumSize,this.size)),h.size=o,this.relayout(c,_)}finally{this.state=vue.Idle}}}distributeViewSizes(){let i=[],o=0;for(let b of this.viewItems)b.maximumSize-b.minimumSize>0&&(i.push(b),o+=b.size);let s=Math.floor(o/i.length);for(let b of i)b.size=k2(s,b.minimumSize,b.maximumSize);let c=sI(this.viewItems.length),_=c.filter(b=>this.viewItems[b].priority===1),h=c.filter(b=>this.viewItems[b].priority===2);this.relayout(_,h)}getViewSize(i){return i<0||i>=this.viewItems.length?-1:this.viewItems[i].size}doAddView(i,o,s=this.viewItems.length,c){if(this.state!==vue.Idle)throw new Error("Cant modify splitview");this.state=vue.Busy;try{let _=No(".split-view-view");s===this.viewItems.length?this.viewContainer.appendChild(_):this.viewContainer.insertBefore(_,this.viewContainer.children.item(s));let h=i.onDidChange(F=>this.onViewChange(O,F)),b=Qs(()=>this.viewContainer.removeChild(_)),w=BD(h,b),D;typeof o=="number"?D=o:(o.type==="auto"&&(this.areViewsDistributed()?o={type:"distribute"}:o={type:"split",index:o.index}),o.type==="split"?D=this.getViewSize(o.index)/2:o.type==="invisible"?D={cachedVisibleSize:o.cachedVisibleSize}:D=i.minimumSize);let O=this.orientation===0?new esi(_,i,D,w):new tsi(_,i,D,w);if(this.viewItems.splice(s,0,O),this.viewItems.length>1){let F={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},X=this.orientation===0?new e3(this.sashContainer,{getHorizontalSashTop:Mi=>this.getSashPosition(Mi),getHorizontalSashWidth:this.getSashOrthogonalSize},{...F,orientation:1}):new e3(this.sashContainer,{getVerticalSashLeft:Mi=>this.getSashPosition(Mi),getVerticalSashHeight:this.getSashOrthogonalSize},{...F,orientation:0}),K=this.orientation===0?Mi=>({sash:X,start:Mi.startY,current:Mi.currentY,alt:Mi.altKey}):Mi=>({sash:X,start:Mi.startX,current:Mi.currentX,alt:Mi.altKey}),Pe=Yo.map(X.onDidStart,K)(this.onSashStart,this),Je=Yo.map(X.onDidChange,K)(this.onSashChange,this),ft=Yo.map(X.onDidEnd,()=>this.sashItems.findIndex(Mi=>Mi.sash===X))(this.onSashEnd,this),Ct=X.onDidReset(()=>{let Mi=this.sashItems.findIndex(er=>er.sash===X),zi=sI(Mi,-1),Vr=sI(Mi+1,this.viewItems.length),sn=this.findFirstSnapIndex(zi),gr=this.findFirstSnapIndex(Vr);typeof sn=="number"&&!this.viewItems[sn].visible||typeof gr=="number"&&!this.viewItems[gr].visible||this._onDidSashReset.fire(Mi)}),Et=BD(Pe,Je,ft,Ct,X),St={sash:X,disposable:Et};this.sashItems.splice(s-1,0,St)}_.appendChild(i.element);let j;typeof o!="number"&&o.type==="split"&&(j=[o.index]),c||this.relayout([s],j),!c&&typeof o!="number"&&o.type==="distribute"&&this.distributeViewSizes()}finally{this.state=vue.Idle}}relayout(i,o){let s=this.viewItems.reduce((c,_)=>c+_.size,0);this.resize(this.viewItems.length-1,this.size-s,void 0,i,o),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(i,o,s=this.viewItems.map(O=>O.size),c,_,h=Number.NEGATIVE_INFINITY,b=Number.POSITIVE_INFINITY,w,D){if(i<0||i>=this.viewItems.length)return 0;let O=sI(i,-1),j=sI(i+1,this.viewItems.length);if(_)for(let St of _)fut(O,St),fut(j,St);if(c)for(let St of c)Qit(O,St),Qit(j,St);let F=O.map(St=>this.viewItems[St]),X=O.map(St=>s[St]),K=j.map(St=>this.viewItems[St]),re=j.map(St=>s[St]),Pe=O.reduce((St,Mi)=>St+(this.viewItems[Mi].minimumSize-s[Mi]),0),Le=O.reduce((St,Mi)=>St+(this.viewItems[Mi].maximumSize-s[Mi]),0),Je=j.length===0?Number.POSITIVE_INFINITY:j.reduce((St,Mi)=>St+(s[Mi]-this.viewItems[Mi].minimumSize),0),Ye=j.length===0?Number.NEGATIVE_INFINITY:j.reduce((St,Mi)=>St+(s[Mi]-this.viewItems[Mi].maximumSize),0),ft=Math.max(Pe,Ye,h),Ct=Math.min(Je,Le,b),Et=!1;if(w){let St=this.viewItems[w.index],Mi=o>=w.limitDelta;Et=Mi!==St.visible,St.setVisible(Mi,w.size)}if(!Et&&D){let St=this.viewItems[D.index],Mi=ob+w.size,0),s=this.size-o,c=sI(this.viewItems.length-1,-1),_=c.filter(b=>this.viewItems[b].priority===1),h=c.filter(b=>this.viewItems[b].priority===2);for(let b of h)fut(c,b);for(let b of _)Qit(c,b);typeof i=="number"&&Qit(c,i);for(let b=0;s!==0&&bo+s.size,0);let i=0;for(let o of this.viewItems)o.layout(i,this.layoutContext),i+=o.size;this.sashItems.forEach(o=>o.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let i=!1,o=this.viewItems.map(w=>i=w.size-w.minimumSize>0||i);i=!1;let s=this.viewItems.map(w=>i=w.maximumSize-w.size>0||i),c=[...this.viewItems].reverse();i=!1;let _=c.map(w=>i=w.size-w.minimumSize>0||i).reverse();i=!1;let h=c.map(w=>i=w.maximumSize-w.size>0||i).reverse(),b=0;for(let w=0;w0||this.startSnappingEnabled)?D.state=1:Je&&o[w]&&(b0)return;if(!s.visible&&s.snap)return o}}areViewsDistributed(){let i,o;for(let s of this.viewItems)if(i=i===void 0?s.size:Math.min(i,s.size),o=o===void 0?s.size:Math.max(o,s.size),o-i>2)return!1;return!0}dispose(){var i;(i=this.sashDragState)===null||i===void 0||i.disposable.dispose(),a_(this.viewItems),this.viewItems=[],this.sashItems.forEach(o=>o.disposable.dispose()),this.sashItems=[],super.dispose()}}});var I2i=Ht(()=>{});function Xzi(l){return{getHeight(i){return l.getHeight(i)},getTemplateId(){return Bst.TemplateId}}}var Bst,nsi,jst,N2i=Ht(()=>{va();wj();B2();pue();isi();Pa();$r();I2i();Bst=class l{constructor(i,o,s){this.columns=i,this.getColumnSize=s,this.templateId=l.TemplateId,this.renderedTemplates=new Set;let c=new Map(o.map(_=>[_.templateId,_]));this.renderers=[];for(let _ of i){let h=c.get(_.templateId);if(!h)throw new Error(`Table cell renderer for template id ${_.templateId} not found.`);this.renderers.push(h)}}renderTemplate(i){let o=bo(i,No(".monaco-table-tr")),s=[],c=[];for(let h=0;hthis.disposables.add(new nsi(O,j))),w={size:b.reduce((O,j)=>O+j.column.weight,0),views:b.map(O=>({size:O.column.weight,view:O}))};this.splitview=this.disposables.add(new j3e(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:w})),this.splitview.el.style.height=`${s.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${s.headerRowHeight}px`;let D=new Bst(c,_,O=>this.splitview.getViewSize(O));this.list=this.disposables.add(new Aw(i,this.domNode,Xzi(s),[D],h)),Yo.any(...b.map(O=>O.onDidLayout))(([O,j])=>D.layoutColumn(O,j),null,this.disposables),this.splitview.onDidSashReset(O=>{let j=c.reduce((X,K)=>X+K.weight,0),F=c[O].weight/j*this.cachedWidth;this.splitview.resizeView(O,F)},null,this.disposables),this.styleElement=ww(this.domNode),this.style(STi)}updateOptions(i){this.list.updateOptions(i)}splice(i,o,s=[]){this.list.splice(i,o,s)}getHTMLElement(){return this.domNode}style(i){let o=[];o.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before { + top: ${this.virtualDelegate.headerRowHeight+1}px; + height: calc(100% - ${this.virtualDelegate.headerRowHeight}px); + }`),this.styleElement.textContent=o.join(` +`),this.list.style(i)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}};jst.InstanceCount=0});var t3,Wfe,hI,yPe,W3e=Ht(()=>{(function(l){l[l.Expanded=0]="Expanded",l[l.Collapsed=1]="Collapsed",l[l.PreserveOrExpanded=2]="PreserveOrExpanded",l[l.PreserveOrCollapsed=3]="PreserveOrCollapsed"})(t3||(t3={}));(function(l){l[l.Unknown=0]="Unknown",l[l.Twistie=1]="Twistie",l[l.Element=2]="Element",l[l.Filter=3]="Filter"})(Wfe||(Wfe={}));hI=class extends Error{constructor(i,o){super(`TreeError [${i}] ${o}`)}},yPe=class{constructor(i){this.fn=i,this._map=new WeakMap}map(i){let o=this._map.get(i);return o||(o=this.fn(i),this._map.set(i,o)),o}}});function Wst(l){return typeof l=="object"&&"visibility"in l&&"data"in l}function vPe(l){switch(l){case!0:return 1;case!1:return 0;default:return l}}function rsi(l){return typeof l.collapsible=="boolean"}var Nyt,Ayt=Ht(()=>{W3e();su();Bu();IQt();nrt();Pa();sP();Nyt=class{constructor(i,o,s,c={}){var _;this.user=i,this.list=o,this.rootRef=[],this.eventBufferer=new PK,this._onDidChangeCollapseState=new fn,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new fn,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new fn,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new kw(Qdt),this.collapseByDefault=typeof c.collapseByDefault>"u"?!1:c.collapseByDefault,this.allowNonCollapsibleParents=(_=c.allowNonCollapsibleParents)!==null&&_!==void 0?_:!1,this.filter=c.filter,this.autoExpandSingleChildren=typeof c.autoExpandSingleChildren>"u"?!1:c.autoExpandSingleChildren,this.root={parent:void 0,element:s,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(i,o,s=jd.empty(),c={}){if(i.length===0)throw new hI(this.user,"Invalid tree location");c.diffIdentityProvider?this.spliceSmart(c.diffIdentityProvider,i,o,s,c):this.spliceSimple(i,o,s,c)}spliceSmart(i,o,s,c,_,h){var b;c===void 0&&(c=jd.empty()),h===void 0&&(h=(b=_.diffDepth)!==null&&b!==void 0?b:0);let{parentNode:w}=this.getParentNodeWithListIndex(o);if(!w.lastDiffIds)return this.spliceSimple(o,s,c,_);let D=[...c],O=o[o.length-1],j=new Ile({getElements:()=>w.lastDiffIds},{getElements:()=>[...w.children.slice(0,O),...D,...w.children.slice(O+s)].map(Pe=>i.getId(Pe.element).toString())}).ComputeDiff(!1);if(j.quitEarly)return w.lastDiffIds=void 0,this.spliceSimple(o,s,D,_);let F=o.slice(0,-1),X=(Pe,Le,Je)=>{if(h>0)for(let Ye=0;YeJe.originalStart-Le.originalStart))X(K,re,K-(Pe.originalStart+Pe.originalLength)),K=Pe.originalStart,re=Pe.modifiedStart-O,this.spliceSimple([...F,K],Pe.originalLength,jd.slice(D,re,re+Pe.modifiedLength),_);X(K,re,K)}spliceSimple(i,o,s=jd.empty(),{onDidCreateNode:c,onDidDeleteNode:_,diffIdentityProvider:h}){let{parentNode:b,listIndex:w,revealed:D,visible:O}=this.getParentNodeWithListIndex(i),j=[],F=jd.map(s,Ct=>this.createTreeNode(Ct,b,b.visible?1:0,D,j,c)),X=i[i.length-1],K=0;for(let Ct=X;Ct>=0&&Cth.getId(Ct.element).toString())):b.lastDiffIds=b.children.map(Ct=>h.getId(Ct.element).toString()):b.lastDiffIds=void 0;let Ye=0;for(let Ct of Je)Ct.visible&&Ye++;if(Ye!==0)for(let Ct=X+re.length;CtEt+(St.visible?St.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(b,Le-Ct),this.list.splice(w,Ct,j)}if(Je.length>0&&_){let Ct=Et=>{_(Et),Et.children.forEach(Ct)};Je.forEach(Ct)}this._onDidSplice.fire({insertedNodes:re,deletedNodes:Je});let ft=b;for(;ft;){if(ft.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}ft=ft.parent}}rerender(i){if(i.length===0)throw new hI(this.user,"Invalid tree location");let{node:o,listIndex:s,revealed:c}=this.getTreeNodeWithListIndex(i);o.visible&&c&&this.list.splice(s,1,[o])}has(i){return this.hasTreeNode(i)}getListIndex(i){let{listIndex:o,visible:s,revealed:c}=this.getTreeNodeWithListIndex(i);return s&&c?o:-1}getListRenderCount(i){return this.getTreeNode(i).renderNodeCount}isCollapsible(i){return this.getTreeNode(i).collapsible}setCollapsible(i,o){let s=this.getTreeNode(i);typeof o>"u"&&(o=!s.collapsible);let c={collapsible:o};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(i,c))}isCollapsed(i){return this.getTreeNode(i).collapsed}setCollapsed(i,o,s){let c=this.getTreeNode(i);typeof o>"u"&&(o=!c.collapsed);let _={collapsed:o,recursive:s||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(i,_))}_setCollapseState(i,o){let{node:s,listIndex:c,revealed:_}=this.getTreeNodeWithListIndex(i),h=this._setListNodeCollapseState(s,c,_,o);if(s!==this.root&&this.autoExpandSingleChildren&&h&&!rsi(o)&&s.collapsible&&!s.collapsed&&!o.recursive){let b=-1;for(let w=0;w-1){b=-1;break}else b=w;b>-1&&this._setCollapseState([...i,b],o)}return h}_setListNodeCollapseState(i,o,s,c){let _=this._setNodeCollapseState(i,c,!1);if(!s||!i.visible||!_)return _;let h=i.renderNodeCount,b=this.updateNodeAfterCollapseChange(i),w=h-(o===-1?0:1);return this.list.splice(o+1,w,b.slice(1)),_}_setNodeCollapseState(i,o,s){let c;if(i===this.root?c=!1:(rsi(o)?(c=i.collapsible!==o.collapsible,i.collapsible=o.collapsible):i.collapsible?(c=i.collapsed!==o.collapsed,i.collapsed=o.collapsed):c=!1,c&&this._onDidChangeCollapseState.fire({node:i,deep:s})),!rsi(o)&&o.recursive)for(let _ of i.children)c=this._setNodeCollapseState(_,o,!0)||c;return c}expandTo(i){this.eventBufferer.bufferEvents(()=>{let o=this.getTreeNode(i);for(;o.parent;)o=o.parent,i=i.slice(0,i.length-1),o.collapsed&&this._setCollapseState(i,{collapsed:!1,recursive:!1})})}refilter(){let i=this.root.renderNodeCount,o=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,i,o),this.refilterDelayer.cancel()}createTreeNode(i,o,s,c,_,h){let b={parent:o,element:i.element,children:[],depth:o.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof i.collapsible=="boolean"?i.collapsible:typeof i.collapsed<"u",collapsed:typeof i.collapsed>"u"?this.collapseByDefault:i.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},w=this._filterNode(b,s);b.visibility=w,c&&_.push(b);let D=i.children||jd.empty(),O=c&&w!==0&&!b.collapsed,j=0,F=1;for(let X of D){let K=this.createTreeNode(X,b,w,O,_,h);b.children.push(K),F+=K.renderNodeCount,K.visible&&(K.visibleChildIndex=j++)}return this.allowNonCollapsibleParents||(b.collapsible=b.collapsible||b.children.length>0),b.visibleChildrenCount=j,b.visible=w===2?j>0:w===1,b.visible?b.collapsed||(b.renderNodeCount=F):(b.renderNodeCount=0,c&&_.pop()),h?.(b),b}updateNodeAfterCollapseChange(i){let o=i.renderNodeCount,s=[];return this._updateNodeAfterCollapseChange(i,s),this._updateAncestorsRenderNodeCount(i.parent,s.length-o),s}_updateNodeAfterCollapseChange(i,o){if(i.visible===!1)return 0;if(o.push(i),i.renderNodeCount=1,!i.collapsed)for(let s of i.children)i.renderNodeCount+=this._updateNodeAfterCollapseChange(s,o);return this._onDidChangeRenderNodeCount.fire(i),i.renderNodeCount}updateNodeAfterFilterChange(i){let o=i.renderNodeCount,s=[];return this._updateNodeAfterFilterChange(i,i.visible?1:0,s),this._updateAncestorsRenderNodeCount(i.parent,s.length-o),s}_updateNodeAfterFilterChange(i,o,s,c=!0){let _;if(i!==this.root){if(_=this._filterNode(i,o),_===0)return i.visible=!1,i.renderNodeCount=0,!1;c&&s.push(i)}let h=s.length;i.renderNodeCount=i===this.root?0:1;let b=!1;if(!i.collapsed||_!==0){let w=0;for(let D of i.children)b=this._updateNodeAfterFilterChange(D,_,s,c&&!i.collapsed)||b,D.visible&&(D.visibleChildIndex=w++);i.visibleChildrenCount=w}else i.visibleChildrenCount=0;return i!==this.root&&(i.visible=_===2?b:_===1,i.visibility=_),i.visible?i.collapsed||(i.renderNodeCount+=s.length-h):(i.renderNodeCount=0,c&&s.pop()),this._onDidChangeRenderNodeCount.fire(i),i.visible}_updateAncestorsRenderNodeCount(i,o){if(o!==0)for(;i;)i.renderNodeCount+=o,this._onDidChangeRenderNodeCount.fire(i),i=i.parent}_filterNode(i,o){let s=this.filter?this.filter.filter(i.element,o):1;return typeof s=="boolean"?(i.filterData=void 0,s?1:0):Wst(s)?(i.filterData=s.data,vPe(s.visibility)):(i.filterData=void 0,vPe(s))}hasTreeNode(i,o=this.root){if(!i||i.length===0)return!0;let[s,...c]=i;return s<0||s>o.children.length?!1:this.hasTreeNode(c,o.children[s])}getTreeNode(i,o=this.root){if(!i||i.length===0)return o;let[s,...c]=i;if(s<0||s>o.children.length)throw new hI(this.user,"Invalid tree location");return this.getTreeNode(c,o.children[s])}getTreeNodeWithListIndex(i){if(i.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};let{parentNode:o,listIndex:s,revealed:c,visible:_}=this.getParentNodeWithListIndex(i),h=i[i.length-1];if(h<0||h>o.children.length)throw new hI(this.user,"Invalid tree location");let b=o.children[h];return{node:b,listIndex:s,revealed:c,visible:_&&b.visible}}getParentNodeWithListIndex(i,o=this.root,s=0,c=!0,_=!0){let[h,...b]=i;if(h<0||h>o.children.length)throw new hI(this.user,"Invalid tree location");for(let w=0;w{});function osi(l){return l instanceof cue?new ssi(l):l}function Yzi(l,i){return i&&{...i,identityProvider:i.identityProvider&&{getId(o){return i.identityProvider.getId(o.element)}},dnd:i.dnd&&new asi(l,i.dnd),multipleSelectionController:i.multipleSelectionController&&{isSelectionSingleChangeEvent(o){return i.multipleSelectionController.isSelectionSingleChangeEvent({...o,element:o.element})},isSelectionRangeChangeEvent(o){return i.multipleSelectionController.isSelectionRangeChangeEvent({...o,element:o.element})}},accessibilityProvider:i.accessibilityProvider&&{...i.accessibilityProvider,getSetSize(o){let s=l(),c=s.getNodeLocation(o),_=s.getParentNodeLocation(c);return s.getNode(_).visibleChildrenCount},getPosInSet(o){return o.visibleChildIndex+1},isChecked:i.accessibilityProvider&&i.accessibilityProvider.isChecked?o=>i.accessibilityProvider.isChecked(o.element):void 0,getRole:i.accessibilityProvider&&i.accessibilityProvider.getRole?o=>i.accessibilityProvider.getRole(o.element):()=>"treeitem",getAriaLabel(o){return i.accessibilityProvider.getAriaLabel(o.element)},getWidgetAriaLabel(){return i.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:i.accessibilityProvider&&i.accessibilityProvider.getWidgetRole?()=>i.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:i.accessibilityProvider&&i.accessibilityProvider.getAriaLevel?o=>i.accessibilityProvider.getAriaLevel(o.element):o=>o.depth,getActiveDescendantId:i.accessibilityProvider.getActiveDescendantId&&(o=>i.accessibilityProvider.getActiveDescendantId(o.element))},keyboardNavigationLabelProvider:i.keyboardNavigationLabelProvider&&{...i.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(o){return i.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(o.element)}}}}function Qzi(l,i){return l.position===i.position&&P2i(l,i)}function P2i(l,i){return l.node.element===i.node.element&&l.startIndex===i.startIndex&&l.height===i.height&&l.endIndex===i.endIndex}function Pyt(l){let i=Wfe.Unknown;return hft(l.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?i=Wfe.Twistie:hft(l.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?i=Wfe.Element:hft(l.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(i=Wfe.Filter),{browserEvent:l.browserEvent,element:l.element?l.element.element:null,target:i}}function Zzi(l){let i=x3e(l.browserEvent.target);return{element:l.element?l.element.element:null,browserEvent:l.browserEvent,anchor:l.anchor,isStickyScroll:i}}function Lyt(l,i){i(l),l.children.forEach(o=>Lyt(o,i))}var ssi,asi,z3e,bPe,csi,Oyt,lsi,zX,zfe,usi,dsi,fsi,Fyt,_si,psi,zst,msi,hsi,V3e,H3e=Ht(()=>{va();mW();jD();Ij();Tyt();wyt();j0t();pue();I3e();Ayt();W3e();Ew();su();Bu();Og();P0();UD();Pa();kj();$r();QAe();cm();A2i();Fs();B2();O0();ssi=class extends cue{constructor(i){super(i.elements.map(o=>o.element)),this.data=i}};asi=class{constructor(i,o){this.modelProvider=i,this.dnd=o,this.autoExpandDisposable=Ui.None,this.disposables=new pr}getDragURI(i){return this.dnd.getDragURI(i.element)}getDragLabel(i,o){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(i.map(s=>s.element),o)}onDragStart(i,o){var s,c;(c=(s=this.dnd).onDragStart)===null||c===void 0||c.call(s,osi(i),o)}onDragOver(i,o,s,c,_,h=!0){let b=this.dnd.onDragOver(osi(i),o&&o.element,s,c,_),w=this.autoExpandNode!==o;if(w&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=o),typeof o>"u")return b;if(w&&typeof b!="boolean"&&b.autoExpand&&(this.autoExpandDisposable=g7(()=>{let X=this.modelProvider(),K=X.getNodeLocation(o);X.isCollapsed(K)&&X.setCollapsed(K,!1),this.autoExpandNode=void 0},500,this.disposables)),typeof b=="boolean"||!b.accept||typeof b.bubble>"u"||b.feedback){if(!h){let X=typeof b=="boolean"?b:b.accept,K=typeof b=="boolean"?void 0:b.effect;return{accept:X,effect:K,feedback:[s]}}return b}if(b.bubble===1){let X=this.modelProvider(),K=X.getNodeLocation(o),re=X.getParentNodeLocation(K),Pe=X.getNode(re),Le=re&&X.getListIndex(re);return this.onDragOver(i,Pe,Le,c,_,!1)}let D=this.modelProvider(),O=D.getNodeLocation(o),j=D.getListIndex(O),F=D.getListRenderCount(O);return{...b,feedback:sI(j,j+F)}}drop(i,o,s,c,_){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(osi(i),o&&o.element,s,c,_)}onDragEnd(i){var o,s;(s=(o=this.dnd).onDragEnd)===null||s===void 0||s.call(o,i)}dispose(){this.disposables.dispose(),this.dnd.dispose()}};z3e=class{constructor(i){this.delegate=i}getHeight(i){return this.delegate.getHeight(i.element)}getTemplateId(i){return this.delegate.getTemplateId(i.element)}hasDynamicHeight(i){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(i.element)}setDynamicHeight(i,o){var s,c;(c=(s=this.delegate).setDynamicHeight)===null||c===void 0||c.call(s,i.element,o)}};(function(l){l.None="none",l.OnHover="onHover",l.Always="always"})(bPe||(bPe={}));csi=class{get elements(){return this._elements}constructor(i,o=[]){this._elements=o,this.disposables=new pr,this.onDidChange=Yo.forEach(i,s=>this._elements=s,this.disposables)}dispose(){this.disposables.dispose()}},Oyt=class l{constructor(i,o,s,c,_,h={}){var b;this.renderer=i,this.modelProvider=o,this.activeNodes=c,this.renderedIndentGuides=_,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=l.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=Ui.None,this.disposables=new pr,this.templateId=i.templateId,this.updateOptions(h),Yo.map(s,w=>w.node)(this.onDidChangeNodeTwistieState,this,this.disposables),(b=i.onDidChangeTwistieState)===null||b===void 0||b.call(i,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(i={}){if(typeof i.indent<"u"){let o=k2(i.indent,0,40);if(o!==this.indent){this.indent=o;for(let[s,c]of this.renderedNodes)this.renderTreeElement(s,c)}}if(typeof i.renderIndentGuides<"u"){let o=i.renderIndentGuides!==bPe.None;if(o!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=o;for(let[s,c]of this.renderedNodes)this._renderIndentGuides(s,c);if(this.indentGuidesDisposable.dispose(),o){let s=new pr;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,s),this.indentGuidesDisposable=s,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}typeof i.hideTwistiesOfChildlessElements<"u"&&(this.hideTwistiesOfChildlessElements=i.hideTwistiesOfChildlessElements)}renderTemplate(i){let o=bo(i,No(".monaco-tl-row")),s=bo(o,No(".monaco-tl-indent")),c=bo(o,No(".monaco-tl-twistie")),_=bo(o,No(".monaco-tl-contents")),h=this.renderer.renderTemplate(_);return{container:i,indent:s,twistie:c,indentGuidesDisposable:Ui.None,templateData:h}}renderElement(i,o,s,c){this.renderedNodes.set(i,s),this.renderedElements.set(i.element,i),this.renderTreeElement(i,s),this.renderer.renderElement(i,o,s.templateData,c)}disposeElement(i,o,s,c){var _,h;s.indentGuidesDisposable.dispose(),(h=(_=this.renderer).disposeElement)===null||h===void 0||h.call(_,i,o,s.templateData,c),typeof c=="number"&&(this.renderedNodes.delete(i),this.renderedElements.delete(i.element))}disposeTemplate(i){this.renderer.disposeTemplate(i.templateData)}onDidChangeTwistieState(i){let o=this.renderedElements.get(i);o&&this.onDidChangeNodeTwistieState(o)}onDidChangeNodeTwistieState(i){let o=this.renderedNodes.get(i);o&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(i,o))}renderTreeElement(i,o){let s=l.DefaultIndent+(i.depth-1)*this.indent;o.twistie.style.paddingLeft=`${s}px`,o.indent.style.width=`${s+this.indent-16}px`,i.collapsible?o.container.setAttribute("aria-expanded",String(!i.collapsed)):o.container.removeAttribute("aria-expanded"),o.twistie.classList.remove(...uc.asClassNameArray(Xo.treeItemExpanded));let c=!1;this.renderer.renderTwistie&&(c=this.renderer.renderTwistie(i.element,o.twistie)),i.collapsible&&(!this.hideTwistiesOfChildlessElements||i.visibleChildrenCount>0)?(c||o.twistie.classList.add(...uc.asClassNameArray(Xo.treeItemExpanded)),o.twistie.classList.add("collapsible"),o.twistie.classList.toggle("collapsed",i.collapsed)):o.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(i,o)}_renderIndentGuides(i,o){if(I1(o.indent),o.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;let s=new pr,c=this.modelProvider();for(;;){let _=c.getNodeLocation(i),h=c.getParentNodeLocation(_);if(!h)break;let b=c.getNode(h),w=No(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(b)&&w.classList.add("active"),o.indent.childElementCount===0?o.indent.appendChild(w):o.indent.insertBefore(w,o.indent.firstElementChild),this.renderedIndentGuides.add(b,w),s.add(Qs(()=>this.renderedIndentGuides.delete(b,w))),i=b}o.indentGuidesDisposable=s}_onDidChangeActiveNodes(i){if(!this.shouldRenderIndentGuides)return;let o=new Set,s=this.modelProvider();i.forEach(c=>{let _=s.getNodeLocation(c);try{let h=s.getParentNodeLocation(_);c.collapsible&&c.children.length>0&&!c.collapsed?o.add(c):h&&o.add(s.getNode(h))}catch{}}),this.activeIndentNodes.forEach(c=>{o.has(c)||this.renderedIndentGuides.forEach(c,_=>_.classList.remove("active"))}),o.forEach(c=>{this.activeIndentNodes.has(c)||this.renderedIndentGuides.forEach(c,_=>_.classList.add("active"))}),this.activeIndentNodes=o}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),a_(this.disposables)}};Oyt.DefaultIndent=8;lsi=class{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(i,o,s){this.tree=i,this.keyboardNavigationLabelProvider=o,this._filter=s,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new pr,i.onWillRefilter(this.reset,this,this.disposables)}filter(i,o){let s=1;if(this._filter){let h=this._filter.filter(i,o);if(typeof h=="boolean"?s=h?1:0:Wst(h)?s=vPe(h.visibility):s=h,s===0)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:XL.Default,visibility:s};let c=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i),_=Array.isArray(c)?c:[c];for(let h of _){let b=h&&h.toString();if(typeof b>"u")return{data:XL.Default,visibility:s};let w;if(this.tree.findMatchType===zfe.Contiguous){let D=b.toLowerCase().indexOf(this._lowercasePattern);if(D>-1){w=[Number.MAX_SAFE_INTEGER,0];for(let O=this._lowercasePattern.length;O>0;O--)w.push(D+O-1)}}else w=IX(this._pattern,this._lowercasePattern,0,b,b.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(w)return this._matchCount++,_.length===1?{data:w,visibility:s}:{data:{label:b,score:w},visibility:s}}return this.tree.findMode===zX.Filter?typeof this.tree.options.defaultFindVisibility=="number"?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(i):2:{data:XL.Default,visibility:s}}reset(){this._totalCount=0,this._matchCount=0}dispose(){a_(this.disposables)}};(function(l){l[l.Highlight=0]="Highlight",l[l.Filter=1]="Filter"})(zX||(zX={}));(function(l){l[l.Fuzzy=0]="Fuzzy",l[l.Contiguous=1]="Contiguous"})(zfe||(zfe={}));usi=class{get pattern(){return this._pattern}get mode(){return this._mode}set mode(i){i!==this._mode&&(this._mode=i,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(i))}get matchType(){return this._matchType}set matchType(i){i!==this._matchType&&(this._matchType=i,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(i))}constructor(i,o,s,c,_,h={}){var b,w;this.tree=i,this.view=s,this.filter=c,this.contextViewProvider=_,this.options=h,this._pattern="",this.width=0,this._onDidChangeMode=new fn,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new fn,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new fn,this._onDidChangeOpenState=new fn,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new pr,this.disposables=new pr,this._mode=(b=i.options.defaultFindMode)!==null&&b!==void 0?b:zX.Highlight,this._matchType=(w=i.options.defaultFindMatchType)!==null&&w!==void 0?w:zfe.Fuzzy,o.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(i={}){i.defaultFindMode!==void 0&&(this.mode=i.defaultFindMode),i.defaultFindMatchType!==void 0&&(this.matchType=i.defaultFindMatchType)}onDidSpliceModel(){!this.widget||this.pattern.length===0||(this.tree.refilter(),this.render())}render(){var i,o,s,c;let _=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&_?!((i=this.tree.options.showNotFoundMessage)!==null&&i!==void 0)||i?(o=this.widget)===null||o===void 0||o.showMessage({type:2,content:de("not found","No elements found.")}):(s=this.widget)===null||s===void 0||s.showMessage({type:2}):(c=this.widget)===null||c===void 0||c.clearMessage()}shouldAllowFocus(i){return!this.widget||!this.pattern||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!XL.isDefault(i.filterData)}layout(i){var o;this.width=i,(o=this.widget)===null||o===void 0||o.layout(i)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}};dsi=class{constructor(i=[]){this.stickyNodes=i}get count(){return this.stickyNodes.length}equal(i){return Op(this.stickyNodes,i.stickyNodes,Qzi)}lastNodePartiallyVisible(){if(this.count===0)return!1;let i=this.stickyNodes[this.count-1];if(this.count===1)return i.position!==0;let o=this.stickyNodes[this.count-2];return o.position+o.height!==i.position}animationStateChanged(i){if(!Op(this.stickyNodes,i.stickyNodes,P2i)||this.count===0)return!1;let o=this.stickyNodes[this.count-1],s=i.stickyNodes[i.count-1];return o.position!==s.position}},fsi=class{constrainStickyScrollNodes(i,o,s){for(let c=0;cs||c>=o)return i.slice(0,c)}return i}},Fyt=class extends Ui{constructor(i,o,s,c,_,h={}){var b;super(),this.tree=i,this.model=o,this.view=s,this.treeDelegate=_,this.maxWidgetViewRatio=.4;let w=this.validateStickySettings(h);this.stickyScrollMaxItemCount=w.stickyScrollMaxItemCount,this.stickyScrollDelegate=(b=h.stickyScrollDelegate)!==null&&b!==void 0?b:new fsi,this._widget=this._register(new _si(s.getScrollableElement(),s,i,c,_,h.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(s.onDidScroll(()=>this.update())),this._register(s.onDidChangeContentHeight(()=>this.update())),this._register(i.onDidChangeCollapseState(()=>this.update())),this.update()}get height(){return this._widget.height}getNodeAtHeight(i){let o;if(i===0?o=this.view.firstVisibleIndex:o=this.view.indexAt(i+this.view.scrollTop),!(o<0||o>=this.view.length))return this.view.element(o)}update(){let i=this.getNodeAtHeight(0);if(!i||this.tree.scrollTop===0){this._widget.setState(void 0);return}let o=this.findStickyState(i);this._widget.setState(o)}findStickyState(i){let o=[],s=i,c=0,_=this.getNextStickyNode(s,void 0,c);for(;_&&(o.push(_),c+=_.height,!(o.length<=this.stickyScrollMaxItemCount&&(s=this.getNextVisibleNode(_),!s)));)_=this.getNextStickyNode(s,_.node,c);let h=this.constrainStickyNodes(o);return h.length?new dsi(h):void 0}getNextVisibleNode(i){return this.getNodeAtHeight(i.position+i.height)}getNextStickyNode(i,o,s){let c=this.getAncestorUnderPrevious(i,o);if(c&&!(c===i&&(!this.nodeIsUncollapsedParent(i)||this.nodeTopAlignsWithStickyNodesBottom(i,s))))return this.createStickyScrollNode(c,s)}nodeTopAlignsWithStickyNodesBottom(i,o){let s=this.getNodeIndex(i),c=this.view.getElementTop(s),_=o;return this.view.scrollTop===c-_}createStickyScrollNode(i,o){let s=this.treeDelegate.getHeight(i),{startIndex:c,endIndex:_}=this.getNodeRange(i),h=this.calculateStickyNodePosition(_,o,s);return{node:i,position:h,height:s,startIndex:c,endIndex:_}}getAncestorUnderPrevious(i,o=void 0){let s=i,c=this.getParentNode(s);for(;c;){if(c===o)return s;s=c,c=this.getParentNode(s)}if(o===void 0)return s}calculateStickyNodePosition(i,o,s){let c=this.view.getRelativeTop(i);if(c===null&&this.view.firstVisibleIndex===i&&i+1w&&o<=w?w-s:o}constrainStickyNodes(i){if(i.length===0)return[];let o=this.view.renderHeight*this.maxWidgetViewRatio,s=i[i.length-1];if(i.length<=this.stickyScrollMaxItemCount&&s.position+s.height<=o)return i;let c=this.stickyScrollDelegate.constrainStickyScrollNodes(i,this.stickyScrollMaxItemCount,o);if(!c.length)return[];let _=c[c.length-1];if(c.length>this.stickyScrollMaxItemCount||_.position+_.height>o)throw new Error("stickyScrollDelegate violates constraints");return c}getParentNode(i){let o=this.model.getNodeLocation(i),s=this.model.getParentNodeLocation(o);return s?this.model.getNode(s):void 0}nodeIsUncollapsedParent(i){let o=this.model.getNodeLocation(i);return this.model.getListRenderCount(o)>1}getNodeIndex(i){let o=this.model.getNodeLocation(i);return this.model.getListIndex(o)}getNodeRange(i){let o=this.model.getNodeLocation(i),s=this.model.getListIndex(o);if(s<0)throw new Error("Node not found in tree");let c=this.model.getListRenderCount(o),_=s+c-1;return{startIndex:s,endIndex:_}}nodePositionTopBelowWidget(i){let o=[],s=this.getParentNode(i);for(;s;)o.push(s),s=this.getParentNode(s);let c=0;for(let _=0;_0,s=!!i&&i.count>0;if(!o&&!s||o&&s&&this._previousState.equal(i))return;if(o!==s&&this.setVisible(s),!s){this._previousState=void 0,this._previousElements=[],this._previousStateDisposables.clear();return}let c=i.stickyNodes[i.count-1];if(this._previousState&&i.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${c.position}px`;else{this._previousStateDisposables.clear();let _=Array(i.count);for(let h=i.count-1;h>=0;h--){let b=i.stickyNodes[h],{element:w,disposable:D}=this.createElement(b,h,i.count);_[h]=w,this._rootDomNode.appendChild(w),this._previousStateDisposables.add(D)}this.stickyScrollFocus.updateElements(_,i),this._previousElements=_}this._previousState=i,this._rootDomNode.style.height=`${c.position+c.height}px`}createElement(i,o,s){let c=i.startIndex,_=document.createElement("div");_.style.top=`${i.position}px`,this.tree.options.setRowHeight!==!1&&(_.style.height=`${i.height}px`),this.tree.options.setRowLineHeight!==!1&&(_.style.lineHeight=`${i.height}px`),_.classList.add("monaco-tree-sticky-row"),_.classList.add("monaco-list-row"),_.setAttribute("data-index",`${c}`),_.setAttribute("data-parity",c%2===0?"even":"odd"),_.setAttribute("id",this.view.getElementID(c));let h=this.setAccessibilityAttributes(_,i.node.element,o,s),b=this.treeDelegate.getTemplateId(i.node),w=this.treeRenderers.find(F=>F.templateId===b);if(!w)throw new Error(`No renderer found for template id ${b}`);let D=i.node;D===this.tree.getNode(this.tree.getNodeLocation(i.node))&&(D=new Proxy(i.node,{}));let O=w.renderTemplate(_);w.renderElement(D,i.startIndex,O,i.height);let j=Qs(()=>{h.dispose(),w.disposeElement(D,i.startIndex,O,i.height),w.disposeTemplate(O),_.remove()});return{element:_,disposable:j}}setAccessibilityAttributes(i,o,s,c){var _;if(!this.accessibilityProvider)return Ui.None;this.accessibilityProvider.getSetSize&&i.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(o,s,c))),this.accessibilityProvider.getPosInSet&&i.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(o,s))),this.accessibilityProvider.getRole&&i.setAttribute("role",(_=this.accessibilityProvider.getRole(o))!==null&&_!==void 0?_:"treeitem");let h=this.accessibilityProvider.getAriaLabel(o),b=h&&typeof h!="string"?h:tP(h),w=au(O=>{let j=O.readObservable(b);j?i.setAttribute("aria-label",j):i.removeAttribute("aria-label")});typeof h=="string"||h&&i.setAttribute("aria-label",h.get());let D=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(o);return typeof D=="number"&&i.setAttribute("aria-level",`${D}`),i.setAttribute("aria-selected",String(!1)),w}setVisible(i){this._rootDomNode.classList.toggle("empty",!i),i||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}},psi=class extends Ui{get domHasFocus(){return this._domHasFocus}set domHasFocus(i){i!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(i),this._domHasFocus=i)}constructor(i,o){super(),this.container=i,this.view=o,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new fn,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new fn,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this.container.addEventListener("focus",()=>this.onFocus()),this.container.addEventListener("blur",()=>this.onBlur()),this._register(this.view.onDidFocus(()=>this.toggleStickyScrollFocused(!1))),this._register(this.view.onKeyDown(s=>this.onKeyDown(s))),this._register(this.view.onMouseDown(s=>this.onMouseDown(s))),this._register(this.view.onContextMenu(s=>this.handleContextMenu(s)))}handleContextMenu(i){let o=i.browserEvent.target;if(!x3e(o)&&!S3e(o)){this.focusedLast()&&this.view.domFocus();return}if(!RG(i.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");let h=this.state.stickyNodes.findIndex(b=>{var w;return b.node.element===((w=i.element)===null||w===void 0?void 0:w.element)});if(h===-1)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");this.container.focus(),this.setFocus(h);return}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");let c=this.state.stickyNodes[this.focusedIndex].node.element,_=this.elements[this.focusedIndex];this._onContextMenu.fire({element:c,anchor:_,browserEvent:i.browserEvent,isStickyScroll:!0})}onKeyDown(i){if(this.domHasFocus&&this.state){if(i.key==="ArrowUp")this.setFocusedElement(Math.max(0,this.focusedIndex-1)),i.preventDefault(),i.stopPropagation();else if(i.key==="ArrowDown"||i.key==="ArrowRight"){if(this.focusedIndex>=this.state.count-1){let o=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([o]),this.scrollNodeUnderWidget(o,this.state)}else this.setFocusedElement(this.focusedIndex+1);i.preventDefault(),i.stopPropagation()}}}onMouseDown(i){let o=i.browserEvent.target;!x3e(o)&&!S3e(o)||(i.browserEvent.preventDefault(),i.browserEvent.stopPropagation())}updateElements(i,o){if(o&&o.count===0)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(o&&o.count!==i.length)throw new Error("Sticky scroll focus received illigel state");let s=this.focusedIndex;if(this.removeFocus(),this.elements=i,this.state=o,o){let c=k2(s,0,o.count-1);this.setFocus(c)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=o?0:-1}setFocusedElement(i){let o=this.state;if(!o)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(i),!(i1?o.stickyNodes[o.count-2]:void 0,_=this.view.getElementTop(i),h=c?c.position+c.height+s.height:s.height;this.view.scrollTop=_-h}domFocus(){if(!this.state)throw new Error("Cannot focus when state is undefined");this.container.focus()}focusedLast(){return this.state?this.view.getHTMLElement().classList.contains("sticky-scroll-focused"):!1}removeFocus(){this.focusedIndex!==-1&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1)}setFocus(i){if(0>i)throw new Error("addFocus() can not remove focus");if(!this.state&&i>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&i>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");let o=this.focusedIndex;o>=0&&this.toggleElementFocus(this.elements[o],!1),i>=0&&this.toggleElementFocus(this.elements[i],!0),this.focusedIndex=i}toggleElementFocus(i,o){this.toggleElementActiveFocus(i,o&&this.domHasFocus),this.toggleElementPassiveFocus(i,o)}toggleCurrentElementActiveFocus(i){this.focusedIndex!==-1&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],i)}toggleElementActiveFocus(i,o){i.classList.toggle("focused",o)}toggleElementPassiveFocus(i,o){i.classList.toggle("passive-focused",o)}toggleStickyScrollFocused(i){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",i)}onFocus(){if(!this.state||this.elements.length===0)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),this.focusedIndex===-1&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}};zst=class{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(i,o){this.getFirstViewElementWithTrait=i,this.identityProvider=o,this.nodes=[],this._onDidChange=new fn,this.onDidChange=this._onDidChange.event}set(i,o){!o?.__forceEvent&&Op(this.nodes,i)||this._set(i,!1,o)}_set(i,o,s){if(this.nodes=[...i],this.elements=void 0,this._nodeSet=void 0,!o){let c=this;this._onDidChange.fire({get elements(){return c.get()},browserEvent:s})}}get(){return this.elements||(this.elements=this.nodes.map(i=>i.element)),[...this.elements]}getNodes(){return this.nodes}has(i){return this.nodeSet.has(i)}onDidModelSplice({insertedNodes:i,deletedNodes:o}){if(!this.identityProvider){let w=this.createNodeSet(),D=O=>w.delete(O);o.forEach(O=>Lyt(O,D)),this.set([...w.values()]);return}let s=new Set,c=w=>s.add(this.identityProvider.getId(w.element).toString());o.forEach(w=>Lyt(w,c));let _=new Map,h=w=>_.set(this.identityProvider.getId(w.element).toString(),w);i.forEach(w=>Lyt(w,h));let b=[];for(let w of this.nodes){let D=this.identityProvider.getId(w.element).toString();if(!s.has(D))b.push(w);else{let j=_.get(D);j&&j.visible&&b.push(j)}}if(this.nodes.length>0&&b.length===0){let w=this.getFirstViewElementWithTrait();w&&b.push(w)}this._set(b,!0)}createNodeSet(){let i=new Set;for(let o of this.nodes)i.add(o);return i}},msi=class extends Cst{constructor(i,o,s){super(i),this.tree=o,this.stickyScrollProvider=s}onViewPointer(i){if(yoi(i.browserEvent.target)||_ue(i.browserEvent.target)||y3e(i.browserEvent.target)||i.browserEvent.isHandledByList)return;let o=i.element;if(!o)return super.onViewPointer(i);if(this.isSelectionRangeChangeEvent(i)||this.isSelectionSingleChangeEvent(i))return super.onViewPointer(i);let s=i.browserEvent.target,c=s.classList.contains("monaco-tl-twistie")||s.classList.contains("monaco-icon-label")&&s.classList.contains("folder-icon")&&i.browserEvent.offsetX<16,_=S3e(i.browserEvent.target),h=!1;if(_?h=!0:typeof this.tree.expandOnlyOnTwistieClick=="function"?h=this.tree.expandOnlyOnTwistieClick(o.element):h=!!this.tree.expandOnlyOnTwistieClick,_)this.handleStickyScrollMouseEvent(i,o);else{if(h&&!c&&i.browserEvent.detail!==2)return super.onViewPointer(i);if(!this.tree.expandOnDoubleClick&&i.browserEvent.detail===2)return super.onViewPointer(i)}if(o.collapsible&&(!_||c)){let b=this.tree.getNodeLocation(o),w=i.browserEvent.altKey;if(this.tree.setFocus([b]),this.tree.toggleCollapsed(b,w),c){i.browserEvent.isHandledByList=!0;return}}_||super.onViewPointer(i)}handleStickyScrollMouseEvent(i,o){if(vTi(i.browserEvent.target)||bTi(i.browserEvent.target))return;let s=this.stickyScrollProvider();if(!s)throw new Error("Sticky scroll controller not found");let c=this.list.indexOf(o),_=this.list.getElementTop(c),h=s.nodePositionTopBelowWidget(o);this.tree.scrollTop=_-h,this.list.domFocus(),this.list.setFocus([c]),this.list.setSelection([c])}onDoubleClick(i){i.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||i.browserEvent.isHandledByList||super.onDoubleClick(i)}onMouseDown(i){let o=i.browserEvent.target;if(!x3e(o)&&!S3e(o)){super.onMouseDown(i);return}}onContextMenu(i){let o=i.browserEvent.target;if(!x3e(o)&&!S3e(o)){super.onContextMenu(i);return}}},hsi=class extends Aw{constructor(i,o,s,c,_,h,b,w){super(i,o,s,c,w),this.focusTrait=_,this.selectionTrait=h,this.anchorTrait=b}createMouseController(i){return new msi(this,i.tree,i.stickyScrollProvider)}splice(i,o,s=[]){if(super.splice(i,o,s),s.length===0)return;let c=[],_=[],h;s.forEach((b,w)=>{this.focusTrait.has(b)&&c.push(i+w),this.selectionTrait.has(b)&&_.push(i+w),this.anchorTrait.has(b)&&(h=i+w)}),c.length>0&&super.setFocus(PL([...super.getFocus(),...c])),_.length>0&&super.setSelection(PL([...super.getSelection(),..._])),typeof h=="number"&&super.setAnchor(h)}setFocus(i,o,s=!1){super.setFocus(i,o),s||this.focusTrait.set(i.map(c=>this.element(c)),o)}setSelection(i,o,s=!1){super.setSelection(i,o),s||this.selectionTrait.set(i.map(c=>this.element(c)),o)}setAnchor(i,o=!1){super.setAnchor(i),o||(typeof i>"u"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(i)]))}},V3e=class{get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return Yo.filter(Yo.map(this.view.onMouseDblClick,Pyt),i=>i.target!==Wfe.Filter)}get onMouseOver(){return Yo.map(this.view.onMouseOver,Pyt)}get onMouseOut(){return Yo.map(this.view.onMouseOut,Pyt)}get onContextMenu(){var i,o;return Yo.any(Yo.filter(Yo.map(this.view.onContextMenu,Zzi),s=>!s.isStickyScroll),(o=(i=this.stickyScrollController)===null||i===void 0?void 0:i.onContextMenu)!==null&&o!==void 0?o:Yo.None)}get onPointer(){return Yo.map(this.view.onPointer,Pyt)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return Yo.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var i,o;return(o=(i=this.findController)===null||i===void 0?void 0:i.mode)!==null&&o!==void 0?o:zX.Highlight}set findMode(i){this.findController&&(this.findController.mode=i)}get findMatchType(){var i,o;return(o=(i=this.findController)===null||i===void 0?void 0:i.matchType)!==null&&o!==void 0?o:zfe.Fuzzy}set findMatchType(i){this.findController&&(this.findController.matchType=i)}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick>"u"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick>"u"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(i,o,s,c,_={}){var h;this._user=i,this._options=_,this.eventBufferer=new PK,this.onDidChangeFindOpenState=Yo.None,this.onDidChangeStickyScrollFocused=Yo.None,this.disposables=new pr,this._onWillRefilter=new fn,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new fn,this.treeDelegate=new z3e(s);let b=new fnt,w=new fnt,D=this.disposables.add(new csi(w.event)),O=new Rde;this.renderers=c.map(re=>new Oyt(re,()=>this.model,b.event,D,O,_));for(let re of this.renderers)this.disposables.add(re);let j;_.keyboardNavigationLabelProvider&&(j=new lsi(this,_.keyboardNavigationLabelProvider,_.filter),_={..._,filter:j},this.disposables.add(j)),this.focus=new zst(()=>this.view.getFocusedElements()[0],_.identityProvider),this.selection=new zst(()=>this.view.getSelectedElements()[0],_.identityProvider),this.anchor=new zst(()=>this.view.getAnchorElement(),_.identityProvider),this.view=new hsi(i,o,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...Yzi(()=>this.model,_),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(i,this.view,_),b.input=this.model.onDidChangeCollapseState;let F=Yo.forEach(this.model.onDidSplice,re=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(re),this.selection.onDidModelSplice(re)})},this.disposables);F(()=>null,null,this.disposables);let X=this.disposables.add(new fn),K=this.disposables.add(new kw(0));if(this.disposables.add(Yo.any(F,this.focus.onDidChange,this.selection.onDidChange)(()=>{K.trigger(()=>{let re=new Set;for(let Pe of this.focus.getNodes())re.add(Pe);for(let Pe of this.selection.getNodes())re.add(Pe);X.fire([...re.values()])})})),w.input=X.event,_.keyboardSupport!==!1){let re=Yo.chain(this.view.onKeyDown,Pe=>Pe.filter(Le=>!_ue(Le.target)).map(Le=>new w_(Le)));Yo.chain(re,Pe=>Pe.filter(Le=>Le.keyCode===15))(this.onLeftArrow,this,this.disposables),Yo.chain(re,Pe=>Pe.filter(Le=>Le.keyCode===17))(this.onRightArrow,this,this.disposables),Yo.chain(re,Pe=>Pe.filter(Le=>Le.keyCode===10))(this.onSpace,this,this.disposables)}if((!((h=_.findWidgetEnabled)!==null&&h!==void 0)||h)&&_.keyboardNavigationLabelProvider&&_.contextViewProvider){let re=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new usi(this,this.model,this.view,j,_.contextViewProvider,re),this.focusNavigationFilter=Pe=>this.findController.shouldAllowFocus(Pe),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=Yo.None,this.onDidChangeFindMatchType=Yo.None;_.enableStickyScroll&&(this.stickyScrollController=new Fyt(this,this.model,this.view,this.renderers,this.treeDelegate,_),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=ww(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===bPe.Always)}updateOptions(i={}){var o;this._options={...this._options,...i};for(let s of this.renderers)s.updateOptions(i);this.view.updateOptions(this._options),(o=this.findController)===null||o===void 0||o.updateOptions(i),this.updateStickyScroll(i),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===bPe.Always)}get options(){return this._options}updateStickyScroll(i){var o;!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new Fyt(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=Yo.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),(o=this.stickyScrollController)===null||o===void 0||o.updateOptions(i)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(i){this.view.scrollTop=i}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(i){this.view.ariaLabel=i}domFocus(){var i;!((i=this.stickyScrollController)===null||i===void 0)&&i.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus()}layout(i,o){var s;this.view.layout(i,o),u7(o)&&((s=this.findController)===null||s===void 0||s.layout(o))}style(i){var o,s;let c=`.${this.view.domId}`,_=[];i.treeIndentGuidesStroke&&(_.push(`.monaco-list${c}:hover .monaco-tl-indent > .indent-guide, .monaco-list${c}.always .monaco-tl-indent > .indent-guide { border-color: ${i.treeInactiveIndentGuidesStroke}; }`),_.push(`.monaco-list${c} .monaco-tl-indent > .indent-guide.active { border-color: ${i.treeIndentGuidesStroke}; }`));let h=(o=i.treeStickyScrollBackground)!==null&&o!==void 0?o:i.listBackground;h&&(_.push(`.monaco-list${c} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${h}; }`),_.push(`.monaco-list${c} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${h}; }`)),i.treeStickyScrollBorder&&_.push(`.monaco-list${c} .monaco-scrollable-element .monaco-tree-sticky-container { border-bottom: 1px solid ${i.treeStickyScrollBorder}; }`),i.treeStickyScrollShadow&&_.push(`.monaco-list${c} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow { box-shadow: ${i.treeStickyScrollShadow} 0 6px 6px -6px inset; height: 3px; }`),i.listFocusForeground&&(_.push(`.monaco-list${c}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${i.listFocusForeground}; }`),_.push(`.monaco-list${c}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));let b=oj(i.listFocusAndSelectionOutline,oj(i.listSelectionOutline,(s=i.listFocusOutline)!==null&&s!==void 0?s:""));b&&(_.push(`.monaco-list${c}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${b}; outline-offset: -1px;}`),_.push(`.monaco-list${c}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),i.listFocusOutline&&(_.push(`.monaco-list${c}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${i.listFocusOutline}; outline-offset: -1px; }`),_.push(`.monaco-list${c}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),_.push(`.monaco-workbench.context-menu-visible .monaco-list${c}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${i.listFocusOutline}; outline-offset: -1px; }`),_.push(`.monaco-workbench.context-menu-visible .monaco-list${c}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),_.push(`.monaco-workbench.context-menu-visible .monaco-list${c}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=_.join(` +`),this.view.style(i)}getParentElement(i){let o=this.model.getParentNodeLocation(i);return this.model.getNode(o).element}getFirstElementChild(i){return this.model.getFirstElementChild(i)}getNode(i){return this.model.getNode(i)}getNodeLocation(i){return this.model.getNodeLocation(i)}collapse(i,o=!1){return this.model.setCollapsed(i,!0,o)}expand(i,o=!1){return this.model.setCollapsed(i,!1,o)}toggleCollapsed(i,o=!1){return this.model.setCollapsed(i,void 0,o)}isCollapsible(i){return this.model.isCollapsible(i)}setCollapsible(i,o){return this.model.setCollapsible(i,o)}isCollapsed(i){return this.model.isCollapsed(i)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(i,o){this.eventBufferer.bufferEvents(()=>{let s=i.map(_=>this.model.getNode(_));this.selection.set(s,o);let c=i.map(_=>this.model.getListIndex(_)).filter(_=>_>-1);this.view.setSelection(c,o,!0)})}getSelection(){return this.selection.get()}setFocus(i,o){this.eventBufferer.bufferEvents(()=>{let s=i.map(_=>this.model.getNode(_));this.focus.set(s,o);let c=i.map(_=>this.model.getListIndex(_)).filter(_=>_>-1);this.view.setFocus(c,o,!0)})}focusNext(i=1,o=!1,s,c=RG(s)&&s.altKey?void 0:this.focusNavigationFilter){this.view.focusNext(i,o,s,c)}focusPrevious(i=1,o=!1,s,c=RG(s)&&s.altKey?void 0:this.focusNavigationFilter){this.view.focusPrevious(i,o,s,c)}focusNextPage(i,o=RG(i)&&i.altKey?void 0:this.focusNavigationFilter){return this.view.focusNextPage(i,o)}focusPreviousPage(i,o=RG(i)&&i.altKey?void 0:this.focusNavigationFilter){return this.view.focusPreviousPage(i,o,()=>{var s,c;return(c=(s=this.stickyScrollController)===null||s===void 0?void 0:s.height)!==null&&c!==void 0?c:0})}focusFirst(i,o=RG(i)&&i.altKey?void 0:this.focusNavigationFilter){this.view.focusFirst(i,o)}getFocus(){return this.focus.get()}reveal(i,o){this.model.expandTo(i);let s=this.model.getListIndex(i);if(s!==-1)if(!this.stickyScrollController)this.view.reveal(s,o);else{let c=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(i));this.view.reveal(s,o,c)}}onLeftArrow(i){i.preventDefault(),i.stopPropagation();let o=this.view.getFocusedElements();if(o.length===0)return;let s=o[0],c=this.model.getNodeLocation(s);if(!this.model.setCollapsed(c,!0)){let h=this.model.getParentNodeLocation(c);if(!h)return;let b=this.model.getListIndex(h);this.view.reveal(b),this.view.setFocus([b])}}onRightArrow(i){i.preventDefault(),i.stopPropagation();let o=this.view.getFocusedElements();if(o.length===0)return;let s=o[0],c=this.model.getNodeLocation(s);if(!this.model.setCollapsed(c,!1)){if(!s.children.some(w=>w.visible))return;let[h]=this.view.getFocus(),b=h+1;this.view.reveal(b),this.view.setFocus([b])}}onSpace(i){i.preventDefault(),i.stopPropagation();let o=this.view.getFocusedElements();if(o.length===0)return;let s=o[0],c=this.model.getNodeLocation(s),_=i.browserEvent.altKey;this.model.setCollapsed(c,void 0,_)}dispose(){var i;a_(this.disposables),(i=this.stickyScrollController)===null||i===void 0||i.dispose(),this.view.dispose()}}});var Vfe,Myt=Ht(()=>{Ayt();W3e();sP();Vfe=class{constructor(i,o,s={}){this.user=i,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new Nyt(i,o,null,s),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,s.sorter&&(this.sorter={compare(c,_){return s.sorter.compare(c.element,_.element)}}),this.identityProvider=s.identityProvider}setChildren(i,o=jd.empty(),s={}){let c=this.getElementLocation(i);this._setChildren(c,this.preserveCollapseState(o),s)}_setChildren(i,o=jd.empty(),s){let c=new Set,_=new Set,h=w=>{var D;if(w.element===null)return;let O=w;if(c.add(O.element),this.nodes.set(O.element,O),this.identityProvider){let j=this.identityProvider.getId(O.element).toString();_.add(j),this.nodesByIdentity.set(j,O)}(D=s.onDidCreateNode)===null||D===void 0||D.call(s,O)},b=w=>{var D;if(w.element===null)return;let O=w;if(c.has(O.element)||this.nodes.delete(O.element),this.identityProvider){let j=this.identityProvider.getId(O.element).toString();_.has(j)||this.nodesByIdentity.delete(j)}(D=s.onDidDeleteNode)===null||D===void 0||D.call(s,O)};this.model.splice([...i,0],Number.MAX_VALUE,o,{...s,onDidCreateNode:h,onDidDeleteNode:b})}preserveCollapseState(i=jd.empty()){return this.sorter&&(i=[...i].sort(this.sorter.compare.bind(this.sorter))),jd.map(i,o=>{let s=this.nodes.get(o.element);if(!s&&this.identityProvider){let h=this.identityProvider.getId(o.element).toString();s=this.nodesByIdentity.get(h)}if(!s){let h;return typeof o.collapsed>"u"?h=void 0:o.collapsed===t3.Collapsed||o.collapsed===t3.PreserveOrCollapsed?h=!0:o.collapsed===t3.Expanded||o.collapsed===t3.PreserveOrExpanded?h=!1:h=!!o.collapsed,{...o,children:this.preserveCollapseState(o.children),collapsed:h}}let c=typeof o.collapsible=="boolean"?o.collapsible:s.collapsible,_;return typeof o.collapsed>"u"||o.collapsed===t3.PreserveOrCollapsed||o.collapsed===t3.PreserveOrExpanded?_=s.collapsed:o.collapsed===t3.Collapsed?_=!0:o.collapsed===t3.Expanded?_=!1:_=!!o.collapsed,{...o,collapsible:c,collapsed:_,children:this.preserveCollapseState(o.children)}})}rerender(i){let o=this.getElementLocation(i);this.model.rerender(o)}getFirstElementChild(i=null){let o=this.getElementLocation(i);return this.model.getFirstElementChild(o)}has(i){return this.nodes.has(i)}getListIndex(i){let o=this.getElementLocation(i);return this.model.getListIndex(o)}getListRenderCount(i){let o=this.getElementLocation(i);return this.model.getListRenderCount(o)}isCollapsible(i){let o=this.getElementLocation(i);return this.model.isCollapsible(o)}setCollapsible(i,o){let s=this.getElementLocation(i);return this.model.setCollapsible(s,o)}isCollapsed(i){let o=this.getElementLocation(i);return this.model.isCollapsed(o)}setCollapsed(i,o,s){let c=this.getElementLocation(i);return this.model.setCollapsed(c,o,s)}expandTo(i){let o=this.getElementLocation(i);this.model.expandTo(o)}refilter(){this.model.refilter()}getNode(i=null){if(i===null)return this.model.getNode(this.model.rootRef);let o=this.nodes.get(i);if(!o)throw new hI(this.user,`Tree element not found: ${i}`);return o}getNodeLocation(i){return i.element}getParentNodeLocation(i){if(i===null)throw new hI(this.user,"Invalid getParentNodeLocation call");let o=this.nodes.get(i);if(!o)throw new hI(this.user,`Tree element not found: ${i}`);let s=this.model.getNodeLocation(o),c=this.model.getParentNodeLocation(s);return this.model.getNode(c).element}getElementLocation(i){if(i===null)return[];let o=this.nodes.get(i);if(!o)throw new hI(this.user,`Tree element not found: ${i}`);return this.model.getNodeLocation(o)}}});function Ryt(l){let i=[l.element],o=l.incompressible||!1;return{element:{elements:i,incompressible:o},children:jd.map(jd.from(l.children),Ryt),collapsible:l.collapsible,collapsed:l.collapsed}}function Byt(l){let i=[l.element],o=l.incompressible||!1,s,c;for(;[c,s]=jd.consume(jd.from(l.children),2),!(c.length!==1||c[0].incompressible);)l=c[0],i.push(l.element);return{element:{elements:i,incompressible:o},children:jd.map(jd.concat(c,s),Byt),collapsible:l.collapsible,collapsed:l.collapsed}}function gsi(l,i=0){let o;return igsi(s,0)),i===0&&l.element.incompressible?{element:l.element.elements[i],children:o,incompressible:!0,collapsible:l.collapsible,collapsed:l.collapsed}:{element:l.element.elements[i],children:o,collapsible:l.collapsible,collapsed:l.collapsed}}function L2i(l){return gsi(l,0)}function O2i(l,i,o){return l.element===i?{...l,children:o}:{...l,children:jd.map(jd.from(l.children),s=>O2i(s,i,o))}}function iVi(l,i){return{splice(o,s,c){i.splice(o,s,c.map(_=>l.map(_)))},updateElementHeight(o,s){i.updateElementHeight(o,s)}}}function nVi(l,i){return{...i,identityProvider:i.identityProvider&&{getId(o){return i.identityProvider.getId(l(o))}},sorter:i.sorter&&{compare(o,s){return i.sorter.compare(o.elements[0],s.elements[0])}},filter:i.filter&&{filter(o,s){return i.filter.filter(l(o),s)}}}}var eVi,ysi,tVi,vsi,jyt,F2i=Ht(()=>{Myt();W3e();su();Pa();sP();eVi=l=>({getId(i){return i.elements.map(o=>l.getId(o).toString()).join("\0")}}),ysi=class{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(i,o,s={}){this.user=i,this.rootRef=null,this.nodes=new Map,this.model=new Vfe(i,o,s),this.enabled=typeof s.compressionEnabled>"u"?!0:s.compressionEnabled,this.identityProvider=s.identityProvider}setChildren(i,o=jd.empty(),s){let c=s.diffIdentityProvider&&eVi(s.diffIdentityProvider);if(i===null){let K=jd.map(o,this.enabled?Byt:Ryt);this._setChildren(null,K,{diffIdentityProvider:c,diffDepth:1/0});return}let _=this.nodes.get(i);if(!_)throw new hI(this.user,"Unknown compressed tree node");let h=this.model.getNode(_),b=this.model.getParentNodeLocation(_),w=this.model.getNode(b),D=L2i(h),O=O2i(D,i,o),j=(this.enabled?Byt:Ryt)(O),F=s.diffIdentityProvider?(K,re)=>s.diffIdentityProvider.getId(K)===s.diffIdentityProvider.getId(re):void 0;if(Op(j.element.elements,h.element.elements,F)){this._setChildren(_,j.children||jd.empty(),{diffIdentityProvider:c,diffDepth:1});return}let X=w.children.map(K=>K===h?j:K);this._setChildren(w.element,X,{diffIdentityProvider:c,diffDepth:h.depth-w.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(i){if(i===this.enabled)return;this.enabled=i;let s=this.model.getNode().children,c=jd.map(s,L2i),_=jd.map(c,i?Byt:Ryt);this._setChildren(null,_,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(i,o,s){let c=new Set,_=b=>{for(let w of b.element.elements)c.add(w),this.nodes.set(w,b.element)},h=b=>{for(let w of b.element.elements)c.has(w)||this.nodes.delete(w)};this.model.setChildren(i,o,{...s,onDidCreateNode:_,onDidDeleteNode:h})}has(i){return this.nodes.has(i)}getListIndex(i){let o=this.getCompressedNode(i);return this.model.getListIndex(o)}getListRenderCount(i){let o=this.getCompressedNode(i);return this.model.getListRenderCount(o)}getNode(i){if(typeof i>"u")return this.model.getNode();let o=this.getCompressedNode(i);return this.model.getNode(o)}getNodeLocation(i){let o=this.model.getNodeLocation(i);return o===null?null:o.elements[o.elements.length-1]}getParentNodeLocation(i){let o=this.getCompressedNode(i),s=this.model.getParentNodeLocation(o);return s===null?null:s.elements[s.elements.length-1]}getFirstElementChild(i){let o=this.getCompressedNode(i);return this.model.getFirstElementChild(o)}isCollapsible(i){let o=this.getCompressedNode(i);return this.model.isCollapsible(o)}setCollapsible(i,o){let s=this.getCompressedNode(i);return this.model.setCollapsible(s,o)}isCollapsed(i){let o=this.getCompressedNode(i);return this.model.isCollapsed(o)}setCollapsed(i,o,s){let c=this.getCompressedNode(i);return this.model.setCollapsed(c,o,s)}expandTo(i){let o=this.getCompressedNode(i);this.model.expandTo(o)}rerender(i){let o=this.getCompressedNode(i);this.model.rerender(o)}refilter(){this.model.refilter()}getCompressedNode(i){if(i===null)return null;let o=this.nodes.get(i);if(!o)throw new hI(this.user,`Tree element not found: ${i}`);return o}},tVi=l=>l[l.length-1],vsi=class l{get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(i=>new l(this.unwrapper,i))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(i,o){this.unwrapper=i,this.node=o}};jyt=class{get onDidSplice(){return Yo.map(this.model.onDidSplice,({insertedNodes:i,deletedNodes:o})=>({insertedNodes:i.map(s=>this.nodeMapper.map(s)),deletedNodes:o.map(s=>this.nodeMapper.map(s))}))}get onDidChangeCollapseState(){return Yo.map(this.model.onDidChangeCollapseState,({node:i,deep:o})=>({node:this.nodeMapper.map(i),deep:o}))}get onDidChangeRenderNodeCount(){return Yo.map(this.model.onDidChangeRenderNodeCount,i=>this.nodeMapper.map(i))}constructor(i,o,s={}){this.rootRef=null,this.elementMapper=s.elementMapper||tVi;let c=_=>this.elementMapper(_.elements);this.nodeMapper=new yPe(_=>new vsi(c,_)),this.model=new ysi(i,iVi(this.nodeMapper,o),nVi(c,s))}setChildren(i,o=jd.empty(),s={}){this.model.setChildren(i,o,s)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(i){this.model.setCompressionEnabled(i)}has(i){return this.model.has(i)}getListIndex(i){return this.model.getListIndex(i)}getListRenderCount(i){return this.model.getListRenderCount(i)}getNode(i){return this.nodeMapper.map(this.model.getNode(i))}getNodeLocation(i){return i.element}getParentNodeLocation(i){return this.model.getParentNodeLocation(i)}getFirstElementChild(i){let o=this.model.getFirstElementChild(i);return o===null||typeof o>"u"?o:this.elementMapper(o.elements)}isCollapsible(i){return this.model.isCollapsible(i)}setCollapsible(i,o){return this.model.setCollapsible(i,o)}isCollapsed(i){return this.model.isCollapsed(i)}setCollapsed(i,o,s){return this.model.setCollapsed(i,o,s)}expandTo(i){return this.model.expandTo(i)}rerender(i){return this.model.rerender(i)}refilter(){return this.model.refilter()}getCompressedTreeNode(i=null){return this.model.getNode(i)}}});function oVi(l,i){return i&&{...i,keyboardNavigationLabelProvider:i.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(o){let s;try{s=l().getCompressedTreeNode(o)}catch{return i.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(o)}return s.element.elements.length===1?i.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(o):i.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(s.element.elements)}}}}var rVi,SPe,Wyt,bsi,U3e,Ssi=Ht(()=>{H3e();F2i();Myt();efe();sP();rVi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},SPe=class extends V3e{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(i,o,s,c,_={}){super(i,o,s,c,_),this.user=i}setChildren(i,o=jd.empty(),s){this.model.setChildren(i,o,s)}rerender(i){if(i===void 0){this.view.rerender();return}this.model.rerender(i)}hasElement(i){return this.model.has(i)}createModel(i,o,s){return new Vfe(i,o,s)}},Wyt=class{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(i,o,s){this._compressedTreeNodeProvider=i,this.stickyScrollDelegate=o,this.renderer=s,this.templateId=s.templateId,s.onDidChangeTwistieState&&(this.onDidChangeTwistieState=s.onDidChangeTwistieState)}renderTemplate(i){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(i)}}renderElement(i,o,s,c){let _=this.stickyScrollDelegate.getCompressedNode(i);_||(_=this.compressedTreeNodeProvider.getCompressedTreeNode(i.element)),_.element.elements.length===1?(s.compressedTreeNode=void 0,this.renderer.renderElement(i,o,s.data,c)):(s.compressedTreeNode=_,this.renderer.renderCompressedElements(_,o,s.data,c))}disposeElement(i,o,s,c){var _,h,b,w;s.compressedTreeNode?(h=(_=this.renderer).disposeCompressedElements)===null||h===void 0||h.call(_,s.compressedTreeNode,o,s.data,c):(w=(b=this.renderer).disposeElement)===null||w===void 0||w.call(b,i,o,s.data,c)}disposeTemplate(i){this.renderer.disposeTemplate(i.data)}renderTwistie(i,o){return this.renderer.renderTwistie?this.renderer.renderTwistie(i,o):!1}};rVi([Cv],Wyt.prototype,"compressedTreeNodeProvider",null);bsi=class{constructor(i){this.modelProvider=i,this.compressedStickyNodes=new Map}getCompressedNode(i){return this.compressedStickyNodes.get(i)}constrainStickyScrollNodes(i,o,s){if(this.compressedStickyNodes.clear(),i.length===0)return[];for(let c=0;cs||c>=o-1&&othis,b=new bsi(()=>this.model),w=c.map(D=>new Wyt(h,b,D));super(i,o,s,w,{...oVi(h,_),stickyScrollDelegate:b})}setChildren(i,o=jd.empty(),s){this.model.setChildren(i,o,s)}createModel(i,o,s){return new jyt(i,o,s)}updateOptions(i={}){super.updateOptions(i),typeof i.compressionEnabled<"u"&&this.model.setCompressionEnabled(i.compressionEnabled)}getCompressedTreeNode(i=null){return this.model.getCompressedTreeNode(i)}}});function xsi(l){return{...l,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function ksi(l,i){return i.parent?i.parent===l?!0:ksi(l,i.parent):!1}function sVi(l,i){return l===i||ksi(l,i)||ksi(i,l)}function M2i(l){return{browserEvent:l.browserEvent,elements:l.elements.map(i=>i.element)}}function R2i(l){return{browserEvent:l.browserEvent,element:l.element&&l.element.element,target:l.target}}function Csi(l){return l instanceof cue?new Esi(l):l}function B2i(l){return l&&{...l,collapseByDefault:!0,identityProvider:l.identityProvider&&{getId(i){return l.identityProvider.getId(i.element)}},dnd:l.dnd&&new Dsi(l.dnd),multipleSelectionController:l.multipleSelectionController&&{isSelectionSingleChangeEvent(i){return l.multipleSelectionController.isSelectionSingleChangeEvent({...i,element:i.element})},isSelectionRangeChangeEvent(i){return l.multipleSelectionController.isSelectionRangeChangeEvent({...i,element:i.element})}},accessibilityProvider:l.accessibilityProvider&&{...l.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:l.accessibilityProvider.getRole?i=>l.accessibilityProvider.getRole(i.element):()=>"treeitem",isChecked:l.accessibilityProvider.isChecked?i=>{var o;return!!(!((o=l.accessibilityProvider)===null||o===void 0)&&o.isChecked(i.element))}:void 0,getAriaLabel(i){return l.accessibilityProvider.getAriaLabel(i.element)},getWidgetAriaLabel(){return l.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:l.accessibilityProvider.getWidgetRole?()=>l.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:l.accessibilityProvider.getAriaLevel&&(i=>l.accessibilityProvider.getAriaLevel(i.element)),getActiveDescendantId:l.accessibilityProvider.getActiveDescendantId&&(i=>l.accessibilityProvider.getActiveDescendantId(i.element))},filter:l.filter&&{filter(i,o){return l.filter.filter(i.element,o)}},keyboardNavigationLabelProvider:l.keyboardNavigationLabelProvider&&{...l.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(i){return l.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i.element)}},sorter:void 0,expandOnlyOnTwistieClick:typeof l.expandOnlyOnTwistieClick>"u"?void 0:typeof l.expandOnlyOnTwistieClick!="function"?l.expandOnlyOnTwistieClick:i=>l.expandOnlyOnTwistieClick(i.element),defaultFindVisibility:i=>i.hasChildren&&i.stale?1:typeof l.defaultFindVisibility=="number"?l.defaultFindVisibility:typeof l.defaultFindVisibility>"u"?2:l.defaultFindVisibility(i.element)}}function Isi(l,i){i(l),l.children.forEach(o=>Isi(o,i))}function aVi(l){let i=l&&B2i(l);return i&&{...i,keyboardNavigationLabelProvider:i.keyboardNavigationLabelProvider&&{...i.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel(o){return l.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(o.map(s=>s.element))}}}}function cVi(l){return typeof l=="boolean"?l?1:0:Wst(l)?vPe(l.visibility):vPe(l)}var wsi,Tsi,Esi,Dsi,Vst,Nsi,Asi,zyt,j2i=Ht(()=>{j0t();H3e();Ayt();Ssi();W3e();Bu();Og();P0();Pl();Pa();sP();$r();cm();wsi=class l{get element(){return this.node.element.element}get children(){return this.node.children.map(i=>new l(i))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(i){this.node=i}},Tsi=class{constructor(i,o,s){this.renderer=i,this.nodeMapper=o,this.onDidChangeTwistieState=s,this.renderedNodes=new Map,this.templateId=i.templateId}renderTemplate(i){return{templateData:this.renderer.renderTemplate(i)}}renderElement(i,o,s,c){this.renderer.renderElement(this.nodeMapper.map(i),o,s.templateData,c)}renderTwistie(i,o){return i.slow?(o.classList.add(...uc.asClassNameArray(Xo.treeItemLoading)),!0):(o.classList.remove(...uc.asClassNameArray(Xo.treeItemLoading)),!1)}disposeElement(i,o,s,c){var _,h;(h=(_=this.renderer).disposeElement)===null||h===void 0||h.call(_,this.nodeMapper.map(i),o,s.templateData,c)}disposeTemplate(i){this.renderer.disposeTemplate(i.templateData)}dispose(){this.renderedNodes.clear()}};Esi=class extends cue{constructor(i){super(i.elements.map(o=>o.element)),this.data=i}};Dsi=class{constructor(i){this.dnd=i}getDragURI(i){return this.dnd.getDragURI(i.element)}getDragLabel(i,o){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(i.map(s=>s.element),o)}onDragStart(i,o){var s,c;(c=(s=this.dnd).onDragStart)===null||c===void 0||c.call(s,Csi(i),o)}onDragOver(i,o,s,c,_,h=!0){return this.dnd.onDragOver(Csi(i),o&&o.element,s,c,_)}drop(i,o,s,c,_){this.dnd.drop(Csi(i),o&&o.element,s,c,_)}onDragEnd(i){var o,s;(s=(o=this.dnd).onDragEnd)===null||s===void 0||s.call(o,i)}dispose(){this.dnd.dispose()}};Vst=class{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return Yo.map(this.tree.onDidChangeFocus,M2i)}get onDidChangeSelection(){return Yo.map(this.tree.onDidChangeSelection,M2i)}get onMouseDblClick(){return Yo.map(this.tree.onMouseDblClick,R2i)}get onPointer(){return Yo.map(this.tree.onPointer,R2i)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(i,o,s,c,_,h={}){this.user=i,this.dataSource=_,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new fn,this._onDidChangeNodeSlowState=new fn,this.nodeMapper=new yPe(b=>new wsi(b)),this.disposables=new pr,this.identityProvider=h.identityProvider,this.autoExpandSingleChildren=typeof h.autoExpandSingleChildren>"u"?!1:h.autoExpandSingleChildren,this.sorter=h.sorter,this.getDefaultCollapseState=b=>h.collapseByDefault?h.collapseByDefault(b)?t3.PreserveOrCollapsed:t3.PreserveOrExpanded:void 0,this.tree=this.createTree(i,o,s,c,h),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=xsi({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(i,o,s,c,_){let h=new z3e(s),b=c.map(D=>new Tsi(D,this.nodeMapper,this._onDidChangeNodeSlowState.event)),w=B2i(_)||{};return new SPe(i,o,h,b,w)}updateOptions(i={}){this.tree.updateOptions(i)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(i){this.tree.scrollTop=i}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(i,o){this.tree.layout(i,o)}style(i){this.tree.style(i)}getInput(){return this.root.element}async setInput(i,o){this.refreshPromises.forEach(c=>c.cancel()),this.refreshPromises.clear(),this.root.element=i;let s=o&&{viewState:o,focus:[],selection:[]};await this._updateChildren(i,!0,!1,s),s&&(this.tree.setFocus(s.focus),this.tree.setSelection(s.selection)),o&&typeof o.scrollTop=="number"&&(this.scrollTop=o.scrollTop)}async _updateChildren(i=this.root.element,o=!0,s=!1,c,_){if(typeof this.root.element>"u")throw new hI(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await Yo.toPromise(this._onDidRender.event));let h=this.getDataNode(i);if(await this.refreshAndRenderNode(h,o,c,_),s)try{this.tree.rerender(h)}catch{}}rerender(i){if(i===void 0||i===this.root.element){this.tree.rerender();return}let o=this.getDataNode(i);this.tree.rerender(o)}getNode(i=this.root.element){let o=this.getDataNode(i),s=this.tree.getNode(o===this.root?null:o);return this.nodeMapper.map(s)}collapse(i,o=!1){let s=this.getDataNode(i);return this.tree.collapse(s===this.root?null:s,o)}async expand(i,o=!1){if(typeof this.root.element>"u")throw new hI(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await Yo.toPromise(this._onDidRender.event));let s=this.getDataNode(i);if(this.tree.hasElement(s)&&!this.tree.isCollapsible(s)||(s.refreshPromise&&(await this.root.refreshPromise,await Yo.toPromise(this._onDidRender.event)),s!==this.root&&!s.refreshPromise&&!this.tree.isCollapsed(s)))return!1;let c=this.tree.expand(s===this.root?null:s,o);return s.refreshPromise&&(await this.root.refreshPromise,await Yo.toPromise(this._onDidRender.event)),c}setSelection(i,o){let s=i.map(c=>this.getDataNode(c));this.tree.setSelection(s,o)}getSelection(){return this.tree.getSelection().map(o=>o.element)}setFocus(i,o){let s=i.map(c=>this.getDataNode(c));this.tree.setFocus(s,o)}getFocus(){return this.tree.getFocus().map(o=>o.element)}reveal(i,o){this.tree.reveal(this.getDataNode(i),o)}getParentElement(i){let o=this.tree.getParentElement(this.getDataNode(i));return o&&o.element}getFirstElementChild(i=this.root.element){let o=this.getDataNode(i),s=this.tree.getFirstElementChild(o===this.root?null:o);return s&&s.element}getDataNode(i){let o=this.nodes.get(i===this.root.element?null:i);if(!o)throw new hI(this.user,`Data tree node not found: ${i}`);return o}async refreshAndRenderNode(i,o,s,c){await this.refreshNode(i,o,s),!this.disposables.isDisposed&&this.render(i,s,c)}async refreshNode(i,o,s){let c;if(this.subTreeRefreshPromises.forEach((_,h)=>{!c&&sVi(h,i)&&(c=_.then(()=>this.refreshNode(i,o,s)))}),c)return c;if(i!==this.root&&this.tree.getNode(i).collapsed){i.hasChildren=!!this.dataSource.hasChildren(i.element),i.stale=!0,this.setChildren(i,[],o,s);return}return this.doRefreshSubTree(i,o,s)}async doRefreshSubTree(i,o,s){let c;i.refreshPromise=new Promise(_=>c=_),this.subTreeRefreshPromises.set(i,i.refreshPromise),i.refreshPromise.finally(()=>{i.refreshPromise=void 0,this.subTreeRefreshPromises.delete(i)});try{let _=await this.doRefreshNode(i,o,s);i.stale=!1,await eft.settled(_.map(h=>this.doRefreshSubTree(h,o,s)))}finally{c()}}async doRefreshNode(i,o,s){i.hasChildren=!!this.dataSource.hasChildren(i.element);let c;if(!i.hasChildren)c=Promise.resolve(jd.empty());else{let _=this.doGetChildren(i);if(_Yt(_))c=Promise.resolve(_);else{let h=sL(800);h.then(()=>{i.slow=!0,this._onDidChangeNodeSlowState.fire(i)},b=>null),c=_.finally(()=>h.cancel())}}try{let _=await c;return this.setChildren(i,_,o,s)}catch(_){if(i!==this.root&&this.tree.hasElement(i)&&this.tree.collapse(i),I2(_))return[];throw _}finally{i.slow&&(i.slow=!1,this._onDidChangeNodeSlowState.fire(i))}}doGetChildren(i){let o=this.refreshPromises.get(i);if(o)return o;let s=this.dataSource.getChildren(i.element);return _Yt(s)?this.processChildren(s):(o=Mg(async()=>this.processChildren(await s)),this.refreshPromises.set(i,o),o.finally(()=>{this.refreshPromises.delete(i)}))}_onDidChangeCollapseState({node:i,deep:o}){i.element!==null&&!i.collapsed&&i.element.stale&&(o?this.collapse(i.element.element):this.refreshAndRenderNode(i.element,!1).catch(Sc))}setChildren(i,o,s,c){let _=[...o];if(i.children.length===0&&_.length===0)return[];let h=new Map,b=new Map;for(let O of i.children)h.set(O.element,O),this.identityProvider&&b.set(O.id,{node:O,collapsed:this.tree.hasElement(O)&&this.tree.isCollapsed(O)});let w=[],D=_.map(O=>{let j=!!this.dataSource.hasChildren(O);if(!this.identityProvider){let re=xsi({element:O,parent:i,hasChildren:j,defaultCollapseState:this.getDefaultCollapseState(O)});return j&&re.defaultCollapseState===t3.PreserveOrExpanded&&w.push(re),re}let F=this.identityProvider.getId(O).toString(),X=b.get(F);if(X){let re=X.node;return h.delete(re.element),this.nodes.delete(re.element),this.nodes.set(O,re),re.element=O,re.hasChildren=j,s?X.collapsed?(re.children.forEach(Pe=>Isi(Pe,Le=>this.nodes.delete(Le.element))),re.children.splice(0,re.children.length),re.stale=!0):w.push(re):j&&!X.collapsed&&w.push(re),re}let K=xsi({element:O,parent:i,id:F,hasChildren:j,defaultCollapseState:this.getDefaultCollapseState(O)});return c&&c.viewState.focus&&c.viewState.focus.indexOf(F)>-1&&c.focus.push(K),c&&c.viewState.selection&&c.viewState.selection.indexOf(F)>-1&&c.selection.push(K),(c&&c.viewState.expanded&&c.viewState.expanded.indexOf(F)>-1||j&&K.defaultCollapseState===t3.PreserveOrExpanded)&&w.push(K),K});for(let O of h.values())Isi(O,j=>this.nodes.delete(j.element));for(let O of D)this.nodes.set(O.element,O);return i.children.splice(0,i.children.length,...D),i!==this.root&&this.autoExpandSingleChildren&&D.length===1&&w.length===0&&(D[0].forceExpanded=!0,w.push(D[0])),w}render(i,o,s){let c=i.children.map(h=>this.asTreeElement(h,o)),_=s&&{...s,diffIdentityProvider:s.diffIdentityProvider&&{getId(h){return s.diffIdentityProvider.getId(h.element)}}};this.tree.setChildren(i===this.root?null:i,c,_),i!==this.root&&this.tree.setCollapsible(i,i.hasChildren),this._onDidRender.fire()}asTreeElement(i,o){if(i.stale)return{element:i,collapsible:i.hasChildren,collapsed:!0};let s;return o&&o.viewState.expanded&&i.id&&o.viewState.expanded.indexOf(i.id)>-1?s=!1:i.forceExpanded?(s=!1,i.forceExpanded=!1):s=i.defaultCollapseState,{element:i,children:i.hasChildren?jd.map(i.children,c=>this.asTreeElement(c,o)):[],collapsible:i.hasChildren,collapsed:s}}processChildren(i){return this.sorter&&(i=[...i].sort(this.sorter.compare.bind(this.sorter))),i}dispose(){this.disposables.dispose(),this.tree.dispose()}},Nsi=class l{get element(){return{elements:this.node.element.elements.map(i=>i.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(i=>new l(i))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(i){this.node=i}},Asi=class{constructor(i,o,s,c){this.renderer=i,this.nodeMapper=o,this.compressibleNodeMapperProvider=s,this.onDidChangeTwistieState=c,this.renderedNodes=new Map,this.disposables=[],this.templateId=i.templateId}renderTemplate(i){return{templateData:this.renderer.renderTemplate(i)}}renderElement(i,o,s,c){this.renderer.renderElement(this.nodeMapper.map(i),o,s.templateData,c)}renderCompressedElements(i,o,s,c){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(i),o,s.templateData,c)}renderTwistie(i,o){return i.slow?(o.classList.add(...uc.asClassNameArray(Xo.treeItemLoading)),!0):(o.classList.remove(...uc.asClassNameArray(Xo.treeItemLoading)),!1)}disposeElement(i,o,s,c){var _,h;(h=(_=this.renderer).disposeElement)===null||h===void 0||h.call(_,this.nodeMapper.map(i),o,s.templateData,c)}disposeCompressedElements(i,o,s,c){var _,h;(h=(_=this.renderer).disposeCompressedElements)===null||h===void 0||h.call(_,this.compressibleNodeMapperProvider().map(i),o,s.templateData,c)}disposeTemplate(i){this.renderer.disposeTemplate(i.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=a_(this.disposables)}};zyt=class extends Vst{constructor(i,o,s,c,_,h,b={}){super(i,o,s,_,h,b),this.compressionDelegate=c,this.compressibleNodeMapper=new yPe(w=>new Nsi(w)),this.filter=b.filter}createTree(i,o,s,c,_){let h=new z3e(s),b=c.map(D=>new Asi(D,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),w=aVi(_)||{};return new U3e(i,o,h,b,w)}asTreeElement(i,o){return{incompressible:this.compressionDelegate.isIncompressible(i.element),...super.asTreeElement(i,o)}}updateOptions(i={}){this.tree.updateOptions(i)}render(i,o,s){if(!this.identityProvider)return super.render(i,o);let c=X=>this.identityProvider.getId(X).toString(),_=X=>{let K=new Set;for(let re of X){let Pe=this.tree.getCompressedTreeNode(re===this.root?null:re);if(Pe.element)for(let Le of Pe.element.elements)K.add(c(Le.element))}return K},h=_(this.tree.getSelection()),b=_(this.tree.getFocus());super.render(i,o,s);let w=this.getSelection(),D=!1,O=this.getFocus(),j=!1,F=X=>{let K=X.element;if(K)for(let re=0;re{let s=this.filter.filter(o,1),c=cVi(s);if(c===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return c===1})),super.processChildren(i)}}});var Vyt,W2i=Ht(()=>{H3e();Myt();Vyt=class extends V3e{constructor(i,o,s,c,_,h={}){super(i,o,s,c,h),this.user=i,this.dataSource=_,this.identityProvider=h.identityProvider}createModel(i,o,s){return new Vfe(i,o,s)}}});var CBn,kBn,Hst,Psi,wBn,TBn,EBn,DBn,IBn,Lsi,Hyt,J3e=Ht(()=>{uf();Fs();du();CBn=new Ms("isMac",uu,de("isMac","Whether the operating system is macOS")),kBn=new Ms("isLinux",w1,de("isLinux","Whether the operating system is Linux")),Hst=new Ms("isWindows",Ny,de("isWindows","Whether the operating system is Windows")),Psi=new Ms("isWeb",d7,de("isWeb","Whether the platform is a web browser")),wBn=new Ms("isMacNative",uu&&!d7,de("isMacNative","Whether the operating system is macOS on a non-browser platform")),TBn=new Ms("isIOS",$A,de("isIOS","Whether the operating system is iOS")),EBn=new Ms("isMobile",yut,de("isMobile","Whether the platform is a mobile web browser")),DBn=new Ms("isDevelopment",!1,!0),IBn=new Ms("productQualityType","",de("productQualityType","Quality type of VS Code")),Lsi="inputFocus",Hyt=new Ms(Lsi,!1,de("inputFocus","Whether keyboard focus is inside an input box"))});function rvt(l,i){let o=l.createScoped(i.getHTMLElement());return $2i.bindTo(o),o}function ovt(l,i){let o=Ust.bindTo(l),s=()=>{let c=i.scrollTop===0,_=i.scrollHeight-i.renderHeight-i.scrollTop<1;c&&_?o.set("both"):c?o.set("top"):_?o.set("bottom"):o.set("none")};return s(),i.onDidScroll(s)}function UX(l){return l.getValue(CPe)==="alt"}function svt(l,i){var o;let s=l.get(gl),c=l.get(ju),_=new pr;return[{...i,keyboardNavigationDelegate:{mightProducePrintableCharacter(b){return c.mightProducePrintableCharacter(b)}},smoothScrolling:!!s.getValue(uK),mouseWheelScrollSensitivity:s.getValue(VX),fastScrollSensitivity:s.getValue(HX),multipleSelectionController:(o=i.multipleSelectionController)!==null&&o!==void 0?o:_.add(new Osi(s)),keyboardNavigationEventFilter:_Vi(c),scrollByPage:!!s.getValue(lK)},_]}function _Vi(l){let i=!1;return o=>{if(o.toKeyCodeChord().isModifierKey())return!1;if(i)return i=!1,!1;let s=l.softDispatch(o,o.target);return s.kind===1?(i=!0,!1):(i=!1,s.kind===0)}}function Y2i(l){let i=l.getValue(zsi);if(i==="highlight")return zX.Highlight;if(i==="filter")return zX.Filter;let o=l.getValue(qyt);if(o==="simple"||o==="highlight")return zX.Highlight;if(o==="filter")return zX.Filter}function Q2i(l){let i=l.getValue(Hsi);if(i==="fuzzy")return zfe.Fuzzy;if(i==="contiguous")return zfe.Contiguous}function $st(l,i){var o;let s=l.get(gl),c=l.get(vL),_=l.get(La),h=l.get(qs),b=()=>{let X=_.getContextKeyValue(K2i);if(X==="automatic")return oK.Automatic;if(X==="trigger")return oK.Trigger;if(_.getContextKeyValue(X2i)===!1)return oK.Trigger;let re=s.getValue(Vsi);if(re==="automatic")return oK.Automatic;if(re==="trigger")return oK.Trigger},w=i.horizontalScrolling!==void 0?i.horizontalScrolling:!!s.getValue(Pj),[D,O]=h.invokeFunction(svt,i),j=i.paddingBottom,F=i.renderIndentGuides!==void 0?i.renderIndentGuides:s.getValue($yt);return{getTypeNavigationMode:b,disposable:O,options:{keyboardSupport:!1,...D,indent:typeof s.getValue(Jst)=="number"?s.getValue(Jst):void 0,renderIndentGuides:F,smoothScrolling:!!s.getValue(uK),defaultFindMode:Y2i(s),defaultFindMatchType:Q2i(s),horizontalScrolling:w,scrollByPage:!!s.getValue(lK),paddingBottom:j,hideTwistiesOfChildlessElements:i.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(o=i.expandOnlyOnTwistieClick)!==null&&o!==void 0?o:s.getValue(Gyt)==="doubleClick",contextViewProvider:c,findWidgetStyles:MTi,enableStickyScroll:!!s.getValue(Kyt),stickyScrollMaxItemCount:Number(s.getValue(Xyt))}}}var bue,Ev,QF,Jyt,Ust,YBn,QBn,$2i,G2i,evt,Rsi,Bsi,jsi,Wsi,tvt,lVi,ivt,uVi,nvt,dVi,fVi,K2i,X2i,CPe,Uyt,Pj,zsi,Vsi,qyt,lK,Hsi,Jst,$yt,uK,VX,HX,Gyt,Kyt,Xyt,Osi,z2i,V2i,H2i,qst,Yyt,Fsi,Msi,Qyt,U2i,J2i,Zyt,q2i,xPe,pVi,Gst=Ht(()=>{va();w2i();pue();N2i();H3e();j2i();W2i();Ssi();Pa();$r();Fs();Rg();UK();du();J3e();yP();kc();By();RC();jX();bue=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Ev=function(l,i){return function(o,s){i(o,s,l)}},QF=Wc("listService"),Jyt=class{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new pr,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(i){var o,s;i!==this._lastFocusedWidget&&((o=this._lastFocusedWidget)===null||o===void 0||o.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=i,(s=this._lastFocusedWidget)===null||s===void 0||s.getHTMLElement().classList.add("last-focused"))}register(i,o){if(this._hasCreatedStyleController||(this._hasCreatedStyleController=!0,new kst(ww(),"").style(mue)),this.lists.some(c=>c.widget===i))throw new Error("Cannot register the same widget multiple times");let s={widget:i,extraContextKeys:o};return this.lists.push(s),RNe(i.getHTMLElement())&&this.setLastFocusedList(i),BD(i.onDidFocus(()=>this.setLastFocusedList(i)),Qs(()=>this.lists.splice(this.lists.indexOf(s),1)),i.onDidDispose(()=>{this.lists=this.lists.filter(c=>c!==s),this._lastFocusedWidget===i&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}},Ust=new Ms("listScrollAtBoundary","none"),YBn=po.or(Ust.isEqualTo("top"),Ust.isEqualTo("both")),QBn=po.or(Ust.isEqualTo("bottom"),Ust.isEqualTo("both")),$2i=new Ms("listFocus",!0),G2i=new Ms("treestickyScrollFocused",!1),evt=new Ms("listSupportsMultiselect",!0),Rsi=po.and($2i,po.not(Lsi),G2i.negate()),Bsi=new Ms("listHasSelectionOrFocus",!1),jsi=new Ms("listDoubleSelection",!1),Wsi=new Ms("listMultiSelection",!1),tvt=new Ms("listSelectionNavigation",!1),lVi=new Ms("listSupportsFind",!0),ivt=new Ms("treeElementCanCollapse",!1),uVi=new Ms("treeElementHasParent",!1),nvt=new Ms("treeElementCanExpand",!1),dVi=new Ms("treeElementHasChild",!1),fVi=new Ms("treeFindOpen",!1),K2i="listTypeNavigationMode",X2i="listAutomaticKeyboardNavigation";CPe="workbench.list.multiSelectModifier",Uyt="workbench.list.openMode",Pj="workbench.list.horizontalScrolling",zsi="workbench.list.defaultFindMode",Vsi="workbench.list.typeNavigationMode",qyt="workbench.list.keyboardNavigation",lK="workbench.list.scrollByPage",Hsi="workbench.list.defaultFindMatchType",Jst="workbench.tree.indent",$yt="workbench.tree.renderIndentGuides",uK="workbench.list.smoothScrolling",VX="workbench.list.mouseWheelScrollSensitivity",HX="workbench.list.fastScrollSensitivity",Gyt="workbench.tree.expandMode",Kyt="workbench.tree.enableStickyScroll",Xyt="workbench.tree.stickyScrollMaxItemCount";Osi=class extends Ui{constructor(i){super(),this.configurationService=i,this.useAltAsMultipleSelectionModifier=UX(i),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(i=>{i.affectsConfiguration(CPe)&&(this.useAltAsMultipleSelectionModifier=UX(this.configurationService))}))}isSelectionSingleChangeEvent(i){return this.useAltAsMultipleSelectionModifier?i.browserEvent.altKey:voi(i)}isSelectionRangeChangeEvent(i){return boi(i)}};z2i=class extends Aw{constructor(i,o,s,c,_,h,b,w,D){let O=typeof _.horizontalScrolling<"u"?_.horizontalScrolling:!!w.getValue(Pj),[j,F]=D.invokeFunction(svt,_);super(i,o,s,c,{keyboardSupport:!1,...j,horizontalScrolling:O}),this.disposables.add(F),this.contextKeyService=rvt(h,this),this.disposables.add(ovt(this.contextKeyService,this)),this.listSupportsMultiSelect=evt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(_.multipleSelectionSupport!==!1),tvt.bindTo(this.contextKeyService).set(!!_.selectionNavigation),this.listHasSelectionOrFocus=Bsi.bindTo(this.contextKeyService),this.listDoubleSelection=jsi.bindTo(this.contextKeyService),this.listMultiSelection=Wsi.bindTo(this.contextKeyService),this.horizontalScrolling=_.horizontalScrolling,this._useAltAsMultipleSelectionModifier=UX(w),this.disposables.add(this.contextKeyService),this.disposables.add(b.register(this)),this.updateStyles(_.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let K=this.getSelection(),re=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(K.length>0||re.length>0),this.listMultiSelection.set(K.length>1),this.listDoubleSelection.set(K.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{let K=this.getSelection(),re=this.getFocus();this.listHasSelectionOrFocus.set(K.length>0||re.length>0)})),this.disposables.add(w.onDidChangeConfiguration(K=>{K.affectsConfiguration(CPe)&&(this._useAltAsMultipleSelectionModifier=UX(w));let re={};if(K.affectsConfiguration(Pj)&&this.horizontalScrolling===void 0){let Pe=!!w.getValue(Pj);re={...re,horizontalScrolling:Pe}}if(K.affectsConfiguration(lK)){let Pe=!!w.getValue(lK);re={...re,scrollByPage:Pe}}if(K.affectsConfiguration(uK)){let Pe=!!w.getValue(uK);re={...re,smoothScrolling:Pe}}if(K.affectsConfiguration(VX)){let Pe=w.getValue(VX);re={...re,mouseWheelScrollSensitivity:Pe}}if(K.affectsConfiguration(HX)){let Pe=w.getValue(HX);re={...re,fastScrollSensitivity:Pe}}Object.keys(re).length>0&&this.updateOptions(re)})),this.navigator=new Yyt(this,{configurationService:w,..._}),this.disposables.add(this.navigator)}updateOptions(i){super.updateOptions(i),i.overrideStyles!==void 0&&this.updateStyles(i.overrideStyles),i.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!i.multipleSelectionSupport)}updateStyles(i){this.style(i?aK(i):mue)}};z2i=bue([Ev(5,La),Ev(6,QF),Ev(7,gl),Ev(8,qs)],z2i);V2i=class extends Dyt{constructor(i,o,s,c,_,h,b,w,D){let O=typeof _.horizontalScrolling<"u"?_.horizontalScrolling:!!w.getValue(Pj),[j,F]=D.invokeFunction(svt,_);super(i,o,s,c,{keyboardSupport:!1,...j,horizontalScrolling:O}),this.disposables=new pr,this.disposables.add(F),this.contextKeyService=rvt(h,this),this.disposables.add(ovt(this.contextKeyService,this.widget)),this.horizontalScrolling=_.horizontalScrolling,this.listSupportsMultiSelect=evt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(_.multipleSelectionSupport!==!1),tvt.bindTo(this.contextKeyService).set(!!_.selectionNavigation),this._useAltAsMultipleSelectionModifier=UX(w),this.disposables.add(this.contextKeyService),this.disposables.add(b.register(this)),this.updateStyles(_.overrideStyles),this.disposables.add(w.onDidChangeConfiguration(K=>{K.affectsConfiguration(CPe)&&(this._useAltAsMultipleSelectionModifier=UX(w));let re={};if(K.affectsConfiguration(Pj)&&this.horizontalScrolling===void 0){let Pe=!!w.getValue(Pj);re={...re,horizontalScrolling:Pe}}if(K.affectsConfiguration(lK)){let Pe=!!w.getValue(lK);re={...re,scrollByPage:Pe}}if(K.affectsConfiguration(uK)){let Pe=!!w.getValue(uK);re={...re,smoothScrolling:Pe}}if(K.affectsConfiguration(VX)){let Pe=w.getValue(VX);re={...re,mouseWheelScrollSensitivity:Pe}}if(K.affectsConfiguration(HX)){let Pe=w.getValue(HX);re={...re,fastScrollSensitivity:Pe}}Object.keys(re).length>0&&this.updateOptions(re)})),this.navigator=new Yyt(this,{configurationService:w,..._}),this.disposables.add(this.navigator)}updateOptions(i){super.updateOptions(i),i.overrideStyles!==void 0&&this.updateStyles(i.overrideStyles),i.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!i.multipleSelectionSupport)}updateStyles(i){this.style(i?aK(i):mue)}dispose(){this.disposables.dispose(),super.dispose()}};V2i=bue([Ev(5,La),Ev(6,QF),Ev(7,gl),Ev(8,qs)],V2i);H2i=class extends jst{constructor(i,o,s,c,_,h,b,w,D,O){let j=typeof h.horizontalScrolling<"u"?h.horizontalScrolling:!!D.getValue(Pj),[F,X]=O.invokeFunction(svt,h);super(i,o,s,c,_,{keyboardSupport:!1,...F,horizontalScrolling:j}),this.disposables.add(X),this.contextKeyService=rvt(b,this),this.disposables.add(ovt(this.contextKeyService,this)),this.listSupportsMultiSelect=evt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(h.multipleSelectionSupport!==!1),tvt.bindTo(this.contextKeyService).set(!!h.selectionNavigation),this.listHasSelectionOrFocus=Bsi.bindTo(this.contextKeyService),this.listDoubleSelection=jsi.bindTo(this.contextKeyService),this.listMultiSelection=Wsi.bindTo(this.contextKeyService),this.horizontalScrolling=h.horizontalScrolling,this._useAltAsMultipleSelectionModifier=UX(D),this.disposables.add(this.contextKeyService),this.disposables.add(w.register(this)),this.updateStyles(h.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{let re=this.getSelection(),Pe=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(re.length>0||Pe.length>0),this.listMultiSelection.set(re.length>1),this.listDoubleSelection.set(re.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{let re=this.getSelection(),Pe=this.getFocus();this.listHasSelectionOrFocus.set(re.length>0||Pe.length>0)})),this.disposables.add(D.onDidChangeConfiguration(re=>{re.affectsConfiguration(CPe)&&(this._useAltAsMultipleSelectionModifier=UX(D));let Pe={};if(re.affectsConfiguration(Pj)&&this.horizontalScrolling===void 0){let Le=!!D.getValue(Pj);Pe={...Pe,horizontalScrolling:Le}}if(re.affectsConfiguration(lK)){let Le=!!D.getValue(lK);Pe={...Pe,scrollByPage:Le}}if(re.affectsConfiguration(uK)){let Le=!!D.getValue(uK);Pe={...Pe,smoothScrolling:Le}}if(re.affectsConfiguration(VX)){let Le=D.getValue(VX);Pe={...Pe,mouseWheelScrollSensitivity:Le}}if(re.affectsConfiguration(HX)){let Le=D.getValue(HX);Pe={...Pe,fastScrollSensitivity:Le}}Object.keys(Pe).length>0&&this.updateOptions(Pe)})),this.navigator=new Fsi(this,{configurationService:D,...h}),this.disposables.add(this.navigator)}updateOptions(i){super.updateOptions(i),i.overrideStyles!==void 0&&this.updateStyles(i.overrideStyles),i.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!i.multipleSelectionSupport)}updateStyles(i){this.style(i?aK(i):mue)}dispose(){this.disposables.dispose(),super.dispose()}};H2i=bue([Ev(6,La),Ev(7,QF),Ev(8,gl),Ev(9,qs)],H2i);qst=class extends Ui{constructor(i,o){var s;super(),this.widget=i,this._onDidOpen=this._register(new fn),this.onDidOpen=this._onDidOpen.event,this._register(Yo.filter(this.widget.onDidChangeSelection,c=>RG(c.browserEvent))(c=>this.onSelectionFromKeyboard(c))),this._register(this.widget.onPointer(c=>this.onPointer(c.element,c.browserEvent))),this._register(this.widget.onMouseDblClick(c=>this.onMouseDblClick(c.element,c.browserEvent))),typeof o?.openOnSingleClick!="boolean"&&o?.configurationService?(this.openOnSingleClick=o?.configurationService.getValue(Uyt)!=="doubleClick",this._register(o?.configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration(Uyt)&&(this.openOnSingleClick=o?.configurationService.getValue(Uyt)!=="doubleClick")}))):this.openOnSingleClick=(s=o?.openOnSingleClick)!==null&&s!==void 0?s:!0}onSelectionFromKeyboard(i){if(i.elements.length!==1)return;let o=i.browserEvent,s=typeof o.preserveFocus=="boolean"?o.preserveFocus:!0,c=typeof o.pinned=="boolean"?o.pinned:!s;this._open(this.getSelectedElement(),s,c,!1,i.browserEvent)}onPointer(i,o){if(!this.openOnSingleClick||o.detail===2)return;let c=o.button===1,_=!0,h=c,b=o.ctrlKey||o.metaKey||o.altKey;this._open(i,_,h,b,o)}onMouseDblClick(i,o){if(!o)return;let s=o.target;if(s.classList.contains("monaco-tl-twistie")||s.classList.contains("monaco-icon-label")&&s.classList.contains("folder-icon")&&o.offsetX<16)return;let _=!1,h=!0,b=o.ctrlKey||o.metaKey||o.altKey;this._open(i,_,h,b,o)}_open(i,o,s,c,_){i&&this._onDidOpen.fire({editorOptions:{preserveFocus:o,pinned:s,revealIfVisible:!0},sideBySide:c,element:i,browserEvent:_})}},Yyt=class extends qst{constructor(i,o){super(i,o),this.widget=i}getSelectedElement(){return this.widget.getSelectedElements()[0]}},Fsi=class extends qst{constructor(i,o){super(i,o)}getSelectedElement(){return this.widget.getSelectedElements()[0]}},Msi=class extends qst{constructor(i,o){super(i,o)}getSelectedElement(){var i;return(i=this.widget.getSelection()[0])!==null&&i!==void 0?i:void 0}};Qyt=class extends SPe{constructor(i,o,s,c,_,h,b,w,D){let{options:O,getTypeNavigationMode:j,disposable:F}=h.invokeFunction($st,_);super(i,o,s,c,O),this.disposables.add(F),this.internals=new xPe(this,_,j,_.overrideStyles,b,w,D),this.disposables.add(this.internals)}updateOptions(i){super.updateOptions(i),this.internals.updateOptions(i)}};Qyt=bue([Ev(5,qs),Ev(6,La),Ev(7,QF),Ev(8,gl)],Qyt);U2i=class extends U3e{constructor(i,o,s,c,_,h,b,w,D){let{options:O,getTypeNavigationMode:j,disposable:F}=h.invokeFunction($st,_);super(i,o,s,c,O),this.disposables.add(F),this.internals=new xPe(this,_,j,_.overrideStyles,b,w,D),this.disposables.add(this.internals)}updateOptions(i={}){super.updateOptions(i),i.overrideStyles&&this.internals.updateStyleOverrides(i.overrideStyles),this.internals.updateOptions(i)}};U2i=bue([Ev(5,qs),Ev(6,La),Ev(7,QF),Ev(8,gl)],U2i);J2i=class extends Vyt{constructor(i,o,s,c,_,h,b,w,D,O){let{options:j,getTypeNavigationMode:F,disposable:X}=b.invokeFunction($st,h);super(i,o,s,c,_,j),this.disposables.add(X),this.internals=new xPe(this,h,F,h.overrideStyles,w,D,O),this.disposables.add(this.internals)}updateOptions(i={}){super.updateOptions(i),i.overrideStyles!==void 0&&this.internals.updateStyleOverrides(i.overrideStyles),this.internals.updateOptions(i)}};J2i=bue([Ev(6,qs),Ev(7,La),Ev(8,QF),Ev(9,gl)],J2i);Zyt=class extends Vst{get onDidOpen(){return this.internals.onDidOpen}constructor(i,o,s,c,_,h,b,w,D,O){let{options:j,getTypeNavigationMode:F,disposable:X}=b.invokeFunction($st,h);super(i,o,s,c,_,j),this.disposables.add(X),this.internals=new xPe(this,h,F,h.overrideStyles,w,D,O),this.disposables.add(this.internals)}updateOptions(i={}){super.updateOptions(i),i.overrideStyles&&this.internals.updateStyleOverrides(i.overrideStyles),this.internals.updateOptions(i)}};Zyt=bue([Ev(6,qs),Ev(7,La),Ev(8,QF),Ev(9,gl)],Zyt);q2i=class extends zyt{constructor(i,o,s,c,_,h,b,w,D,O,j){let{options:F,getTypeNavigationMode:X,disposable:K}=w.invokeFunction($st,b);super(i,o,s,c,_,h,F),this.disposables.add(K),this.internals=new xPe(this,b,X,b.overrideStyles,D,O,j),this.disposables.add(this.internals)}updateOptions(i){super.updateOptions(i),this.internals.updateOptions(i)}};q2i=bue([Ev(7,qs),Ev(8,La),Ev(9,QF),Ev(10,gl)],q2i);xPe=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(i,o,s,c,_,h,b){var w;this.tree=i,this.disposables=[],this.contextKeyService=rvt(_,i),this.disposables.push(ovt(this.contextKeyService,i)),this.listSupportsMultiSelect=evt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(o.multipleSelectionSupport!==!1),tvt.bindTo(this.contextKeyService).set(!!o.selectionNavigation),this.listSupportFindWidget=lVi.bindTo(this.contextKeyService),this.listSupportFindWidget.set((w=o.findWidgetEnabled)!==null&&w!==void 0?w:!0),this.hasSelectionOrFocus=Bsi.bindTo(this.contextKeyService),this.hasDoubleSelection=jsi.bindTo(this.contextKeyService),this.hasMultiSelection=Wsi.bindTo(this.contextKeyService),this.treeElementCanCollapse=ivt.bindTo(this.contextKeyService),this.treeElementHasParent=uVi.bindTo(this.contextKeyService),this.treeElementCanExpand=nvt.bindTo(this.contextKeyService),this.treeElementHasChild=dVi.bindTo(this.contextKeyService),this.treeFindOpen=fVi.bindTo(this.contextKeyService),this.treeStickyScrollFocused=G2i.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=UX(b),this.updateStyleOverrides(c);let O=()=>{let F=i.getFocus()[0];if(!F)return;let X=i.getNode(F);this.treeElementCanCollapse.set(X.collapsible&&!X.collapsed),this.treeElementHasParent.set(!!i.getParentElement(F)),this.treeElementCanExpand.set(X.collapsible&&X.collapsed),this.treeElementHasChild.set(!!i.getFirstElementChild(F))},j=new Set;j.add(K2i),j.add(X2i),this.disposables.push(this.contextKeyService,h.register(i),i.onDidChangeSelection(()=>{let F=i.getSelection(),X=i.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(F.length>0||X.length>0),this.hasMultiSelection.set(F.length>1),this.hasDoubleSelection.set(F.length===2)})}),i.onDidChangeFocus(()=>{let F=i.getSelection(),X=i.getFocus();this.hasSelectionOrFocus.set(F.length>0||X.length>0),O()}),i.onDidChangeCollapseState(O),i.onDidChangeModel(O),i.onDidChangeFindOpenState(F=>this.treeFindOpen.set(F)),i.onDidChangeStickyScrollFocused(F=>this.treeStickyScrollFocused.set(F)),b.onDidChangeConfiguration(F=>{let X={};if(F.affectsConfiguration(CPe)&&(this._useAltAsMultipleSelectionModifier=UX(b)),F.affectsConfiguration(Jst)){let K=b.getValue(Jst);X={...X,indent:K}}if(F.affectsConfiguration($yt)&&o.renderIndentGuides===void 0){let K=b.getValue($yt);X={...X,renderIndentGuides:K}}if(F.affectsConfiguration(uK)){let K=!!b.getValue(uK);X={...X,smoothScrolling:K}}if(F.affectsConfiguration(zsi)||F.affectsConfiguration(qyt)){let K=Y2i(b);X={...X,defaultFindMode:K}}if(F.affectsConfiguration(Vsi)||F.affectsConfiguration(qyt)){let K=s();X={...X,typeNavigationMode:K}}if(F.affectsConfiguration(Hsi)){let K=Q2i(b);X={...X,defaultFindMatchType:K}}if(F.affectsConfiguration(Pj)&&o.horizontalScrolling===void 0){let K=!!b.getValue(Pj);X={...X,horizontalScrolling:K}}if(F.affectsConfiguration(lK)){let K=!!b.getValue(lK);X={...X,scrollByPage:K}}if(F.affectsConfiguration(Gyt)&&o.expandOnlyOnTwistieClick===void 0&&(X={...X,expandOnlyOnTwistieClick:b.getValue(Gyt)==="doubleClick"}),F.affectsConfiguration(Kyt)){let K=b.getValue(Kyt);X={...X,enableStickyScroll:K}}if(F.affectsConfiguration(Xyt)){let K=Math.max(1,b.getValue(Xyt));X={...X,stickyScrollMaxItemCount:K}}if(F.affectsConfiguration(VX)){let K=b.getValue(VX);X={...X,mouseWheelScrollSensitivity:K}}if(F.affectsConfiguration(HX)){let K=b.getValue(HX);X={...X,fastScrollSensitivity:K}}Object.keys(X).length>0&&i.updateOptions(X)}),this.contextKeyService.onDidChangeContext(F=>{F.affectsSome(j)&&i.updateOptions({typeNavigationMode:s()})})),this.navigator=new Msi(i,{configurationService:b,...o}),this.disposables.push(this.navigator)}updateOptions(i){i.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!i.multipleSelectionSupport)}updateStyleOverrides(i){this.tree.style(i?aK(i):mue)}dispose(){this.disposables=a_(this.disposables)}};xPe=bue([Ev(4,La),Ev(5,QF),Ev(6,gl)],xPe);pVi=q_.as(uI.Configuration);pVi.registerConfiguration({id:"workbench",order:7,title:de("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[CPe]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[de("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),de("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:de({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[Uyt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:de({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Pj]:{type:"boolean",default:!1,description:de("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[lK]:{type:"boolean",default:!1,description:de("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[Jst]:{type:"number",default:8,minimum:4,maximum:40,description:de("tree indent setting","Controls tree indentation in pixels.")},[$yt]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:de("render tree indent guides","Controls whether the tree should render indent guides.")},[uK]:{type:"boolean",default:!1,description:de("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[VX]:{type:"number",default:1,markdownDescription:de("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[HX]:{type:"number",default:5,markdownDescription:de("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[zsi]:{type:"string",enum:["highlight","filter"],enumDescriptions:[de("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),de("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:de("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[qyt]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[de("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),de("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),de("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:de("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:de("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and 'workbench.list.typeNavigationMode' instead.")},[Hsi]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[de("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),de("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:de("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[Gyt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:de("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Kyt]:{type:"boolean",default:!0,description:de("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[Xyt]:{type:"number",minimum:1,default:7,markdownDescription:de("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when `#workbench.tree.enableStickyScroll#` is enabled.")},[Vsi]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:de("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})});var Z2i=Ht(()=>{});var JX,Usi=Ht(()=>{va();wj();B2();oue();$r();oP();JX=class l extends Ui{constructor(i,o){var s;super(),this.options=o,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(s=o?.supportIcons)!==null&&s!==void 0?s:!1,this.domNode=bo(i,No("span.monaco-highlighted-label"))}get element(){return this.domNode}set(i,o=[],s="",c){i||(i=""),c&&(i=l.escapeNewLines(i,o)),!(this.didEverRender&&this.text===i&&this.title===s&&D2(this.highlights,o))&&(this.text=i,this.title=s,this.highlights=o,this.render())}render(){var i,o,s,c;let _=[],h=0;for(let b of this.highlights){if(b.end===b.start)continue;if(h{c=_===`\r +`?-1:0,h+=s;for(let b of o)b.end<=h||(b.start>=h&&(b.start+=c),b.end>=h&&(b.end+=c));return s+=c,"\u23CE"})}}});function mVi(l,i,o){if(!o)return;let s=0;return l.map(c=>{let _={start:s,end:s+c.length},h=o.map(b=>w2.intersect(_,b)).filter(b=>!w2.isEmpty(b)).map(({start:b,end:w})=>({start:b-s,end:w-s}));return s=_.end+i.length,h})}var kPe,Sue,Jsi,qsi,avt=Ht(()=>{Z2i();va();Usi();$r();oP();ist();B2();wj();cm();iPe();kPe=class{constructor(i){this._element=i}get element(){return this._element}set textContent(i){this.disposed||i===this._textContent||(this._textContent=i,this._element.textContent=i)}set className(i){this.disposed||i===this._className||(this._className=i,this._element.className=i)}set empty(i){this.disposed||i===this._empty||(this._empty=i,this._element.style.marginLeft=i?"0":"")}dispose(){this.disposed=!0}},Sue=class extends Ui{constructor(i,o){var s;super(),this.customHovers=new Map,this.creationOptions=o,this.domNode=this._register(new kPe(bo(i,No(".monaco-icon-label")))),this.labelContainer=bo(this.domNode.element,No(".monaco-icon-label-container")),this.nameContainer=bo(this.labelContainer,No("span.monaco-icon-name-container")),o?.supportHighlights||o?.supportIcons?this.nameNode=this._register(new qsi(this.nameContainer,!!o.supportIcons)):this.nameNode=new Jsi(this.nameContainer),this.hoverDelegate=(s=o?.hoverDelegate)!==null&&s!==void 0?s:P1("mouse")}get element(){return this.domNode.element}setLabel(i,o,s){var c;let _=["monaco-icon-label"],h=["monaco-icon-label-container"],b="";s&&(s.extraClasses&&_.push(...s.extraClasses),s.italic&&_.push("italic"),s.strikethrough&&_.push("strikethrough"),s.disabledCommand&&h.push("disabled"),s.title&&(typeof s.title=="string"?b+=s.title:b+=i));let w=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(s?.iconPath){let D;!w||!Py(w)?(D=No(".monaco-icon-label-iconpath"),this.domNode.element.prepend(D)):D=w,D.style.backgroundImage=y7(s?.iconPath)}else w&&w.remove();if(this.domNode.className=_.join(" "),this.domNode.element.setAttribute("aria-label",b),this.labelContainer.className=h.join(" "),this.setupHover(s?.descriptionTitle?this.labelContainer:this.element,s?.title),this.nameNode.setLabel(i,s),o||this.descriptionNode){let D=this.getOrCreateDescriptionNode();D instanceof JX?(D.set(o||"",s?s.descriptionMatches:void 0,void 0,s?.labelEscapeNewLines),this.setupHover(D.element,s?.descriptionTitle)):(D.textContent=o&&s?.labelEscapeNewLines?JX.escapeNewLines(o,[]):o||"",this.setupHover(D.element,s?.descriptionTitle||""),D.empty=!o)}if(s?.suffix||this.suffixNode){let D=this.getOrCreateSuffixNode();D.textContent=(c=s?.suffix)!==null&&c!==void 0?c:""}}setupHover(i,o){let s=this.customHovers.get(i);if(s&&(s.dispose(),this.customHovers.delete(i)),!o){i.removeAttribute("title");return}if(this.hoverDelegate.showNativeHover)(function(_,h){CC(h)?_.title=ZLe(h):h?.markdownNotSupportedFallback?_.title=h.markdownNotSupportedFallback:_.removeAttribute("title")})(i,o);else{let c=j2().setupUpdatableHover(this.hoverDelegate,i,o);c&&this.customHovers.set(i,c)}}dispose(){super.dispose();for(let i of this.customHovers.values())i.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){let i=this._register(new kPe(W0i(this.nameContainer,No("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new kPe(bo(i.element,No("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var i;if(!this.descriptionNode){let o=this._register(new kPe(bo(this.labelContainer,No("span.monaco-icon-description-container"))));!((i=this.creationOptions)===null||i===void 0)&&i.supportDescriptionHighlights?this.descriptionNode=this._register(new JX(bo(o.element,No("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new kPe(bo(o.element,No("span.label-description"))))}return this.descriptionNode}},Jsi=class{constructor(i){this.container=i,this.label=void 0,this.singleLabel=void 0}setLabel(i,o){if(!(this.label===i&&D2(this.options,o)))if(this.label=i,this.options=o,typeof i=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=bo(this.container,No("a.label-name",{id:o?.domId}))),this.singleLabel.textContent=i;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let s=0;s{});var cvt,lvt,qX,Kst=Ht(()=>{va();wj();B2();v0t();$r();oP();eEi();Fs();cvt=No,lvt={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0},qX=class l extends Ui{constructor(i,o,s){super(),this.os=o,this.keyElements=new Set,this.options=s||Object.create(null);let c=this.options.keybindingLabelForeground;this.domNode=bo(i,cvt(".monaco-keybinding")),c&&(this.domNode.style.color=c),this.hover=this._register(j2().setupUpdatableHover(P1("mouse"),this.domNode,"")),this.didEverRender=!1,i.appendChild(this.domNode)}get element(){return this.domNode}set(i,o){this.didEverRender&&this.keybinding===i&&l.areSame(this.matches,o)||(this.keybinding=i,this.matches=o,this.render())}render(){var i;if(this.clear(),this.keybinding){let o=this.keybinding.getChords();o[0]&&this.renderChord(this.domNode,o[0],this.matches?this.matches.firstPart:null);for(let c=1;cc.length)return 1}return 0}var tEi,Rjn,Bjn,nEi=Ht(()=>{AG();tEi=new TC(()=>{let l=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:l,collatorIsNumeric:l.resolvedOptions().numeric}}),Rjn=new TC(()=>({collator:new Intl.Collator(void 0,{numeric:!0})})),Bjn=new TC(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}))});function yVi(l,i){let{text:o,iconOffsets:s}=i;if(!s||s.length===0)return rEi(l,o);let c=vle(o," "),_=o.length-c.length,h=rEi(l,c);if(h)for(let b of h){let w=s[b.start+_]+_;b.start+=w,b.end+=w}return h}function rEi(l,i){let o=i.toLowerCase().indexOf(l.toLowerCase());return o!==-1?[{start:o,end:o+l.length}]:null}function vVi(l,i,o){let s=l.labelHighlights||[],c=i.labelHighlights||[];return s.length&&!c.length?-1:!s.length&&c.length?1:s.length===0&&c.length===0?0:iEi(l.saneSortLabel,i.saneSortLabel,o)}var fvt,$si,Gsi,dK,uvt,gI,$X,GX,Ksi,Xsi,dvt,Xst,Yst,q3e,oEi=Ht(()=>{va();Pa();Fs();kc();Gst();_g();$r();jD();uf();efe();avt();Kst();Ij();dW();Lh();Uoi();AG();iPe();nEi();Bl();H3e();Bu();Pl();kL();fL();fvt=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},$si=function(l,i){return function(o,s){i(o,s,l)}},dK=No,uvt=class{constructor(i,o,s){this.index=i,this.hasCheckbox=o,this._hidden=!1,this._init=new TC(()=>{var c;let _=(c=s.label)!==null&&c!==void 0?c:"",h=e3e(_).text.trim(),b=s.ariaLabel||[_,this.saneDescription,this.saneDetail].map(w=>awi(w)).filter(w=>!!w).join(", ");return{saneLabel:_,saneSortLabel:h,saneAriaLabel:b}}),this._saneDescription=s.description,this._saneTooltip=s.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(i){this._element=i}get hidden(){return this._hidden}set hidden(i){this._hidden=i}get saneDescription(){return this._saneDescription}set saneDescription(i){this._saneDescription=i}get saneDetail(){return this._saneDetail}set saneDetail(i){this._saneDetail=i}get saneTooltip(){return this._saneTooltip}set saneTooltip(i){this._saneTooltip=i}get labelHighlights(){return this._labelHighlights}set labelHighlights(i){this._labelHighlights=i}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(i){this._descriptionHighlights=i}get detailHighlights(){return this._detailHighlights}set detailHighlights(i){this._detailHighlights=i}},gI=class extends uvt{constructor(i,o,s,c,_,h){var b,w,D;super(i,o,_),this.fireButtonTriggered=s,this._onChecked=c,this.item=_,this._separator=h,this._checked=!1,this.onChecked=o?Yo.map(Yo.filter(this._onChecked.event,O=>O.element===this),O=>O.checked):Yo.None,this._saneDetail=_.detail,this._labelHighlights=(b=_.highlights)===null||b===void 0?void 0:b.label,this._descriptionHighlights=(w=_.highlights)===null||w===void 0?void 0:w.description,this._detailHighlights=(D=_.highlights)===null||D===void 0?void 0:D.detail}get separator(){return this._separator}set separator(i){this._separator=i}get checked(){return this._checked}set checked(i){i!==this._checked&&(this._checked=i,this._onChecked.fire({element:this,checked:i}))}get checkboxDisabled(){return!!this.item.disabled}};(function(l){l[l.NONE=0]="NONE",l[l.MOUSE_HOVER=1]="MOUSE_HOVER",l[l.ACTIVE_ITEM=2]="ACTIVE_ITEM"})($X||($X={}));GX=class extends uvt{constructor(i,o,s){super(i,!1,s),this.fireSeparatorButtonTriggered=o,this.separator=s,this.children=new Array,this.focusInsideSeparator=$X.NONE}},Ksi=class{getHeight(i){return i instanceof GX?30:i.saneDetail?44:22}getTemplateId(i){return i instanceof gI?Xst.ID:Yst.ID}},Xsi=class{getWidgetAriaLabel(){return de("quickInput","Quick Input")}getAriaLabel(i){var o;return!((o=i.separator)===null||o===void 0)&&o.label?`${i.saneAriaLabel}, ${i.separator.label}`:i.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(i){return i.hasCheckbox?"checkbox":"option"}isChecked(i){if(!(!i.hasCheckbox||!(i instanceof gI)))return{get value(){return i.checked},onDidChange:o=>i.onChecked(()=>o())}}},dvt=class{constructor(i){this.hoverDelegate=i}renderTemplate(i){let o=Object.create(null);o.toDisposeElement=new pr,o.toDisposeTemplate=new pr,o.entry=bo(i,dK(".quick-input-list-entry"));let s=bo(o.entry,dK("label.quick-input-list-label"));o.toDisposeTemplate.add(Cm(s,$o.CLICK,D=>{o.checkbox.offsetParent||D.preventDefault()})),o.checkbox=bo(s,dK("input.quick-input-list-checkbox")),o.checkbox.type="checkbox";let c=bo(s,dK(".quick-input-list-rows")),_=bo(c,dK(".quick-input-list-row")),h=bo(c,dK(".quick-input-list-row"));o.label=new Sue(_,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),o.toDisposeTemplate.add(o.label),o.icon=d6e(o.label.element,dK(".quick-input-list-icon"));let b=bo(_,dK(".quick-input-list-entry-keybinding"));o.keybinding=new qX(b,xw),o.toDisposeTemplate.add(o.keybinding);let w=bo(h,dK(".quick-input-list-label-meta"));return o.detail=new Sue(w,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),o.toDisposeTemplate.add(o.detail),o.separator=bo(o.entry,dK(".quick-input-list-separator")),o.actionBar=new NC(o.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),o.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),o.toDisposeTemplate.add(o.actionBar),o}disposeTemplate(i){i.toDisposeElement.dispose(),i.toDisposeTemplate.dispose()}disposeElement(i,o,s){s.toDisposeElement.clear(),s.actionBar.clear()}},Xst=Gsi=class extends dvt{constructor(i,o){super(i),this.themeService=o,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return Gsi.ID}renderTemplate(i){let o=super.renderTemplate(i);return o.toDisposeTemplate.add(Cm(o.checkbox,$o.CHANGE,s=>{o.element.checked=o.checkbox.checked})),o}renderElement(i,o,s){var c,_,h;let b=i.element;s.element=b,b.element=(c=s.entry)!==null&&c!==void 0?c:void 0;let w=b.item;s.checkbox.checked=b.checked,s.toDisposeElement.add(b.onChecked(re=>s.checkbox.checked=re)),s.checkbox.disabled=b.checkboxDisabled;let{labelHighlights:D,descriptionHighlights:O,detailHighlights:j}=b;if(w.iconPath){let re=rX(this.themeService.getColorTheme().type)?w.iconPath.dark:(_=w.iconPath.light)!==null&&_!==void 0?_:w.iconPath.dark,Pe=Ka.revive(re);s.icon.className="quick-input-list-icon",s.icon.style.backgroundImage=y7(Pe)}else s.icon.style.backgroundImage="",s.icon.className=w.iconClass?`quick-input-list-icon ${w.iconClass}`:"";let F;!b.saneTooltip&&b.saneDescription&&(F={markdown:{value:b.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:b.saneDescription});let X={matches:D||[],descriptionTitle:F,descriptionMatches:O||[],labelEscapeNewLines:!0};if(X.extraClasses=w.iconClasses,X.italic=w.italic,X.strikethrough=w.strikethrough,s.entry.classList.remove("quick-input-list-separator-as-item"),s.label.setLabel(b.saneLabel,b.saneDescription,X),s.keybinding.set(w.keybinding),b.saneDetail){let re;b.saneTooltip||(re={markdown:{value:b.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:b.saneDetail}),s.detail.element.style.display="",s.detail.setLabel(b.saneDetail,void 0,{matches:j,title:re,labelEscapeNewLines:!0})}else s.detail.element.style.display="none";!((h=b.separator)===null||h===void 0)&&h.label?(s.separator.textContent=b.separator.label,s.separator.style.display="",this.addItemWithSeparator(b)):s.separator.style.display="none",s.entry.classList.toggle("quick-input-list-separator-border",!!b.separator);let K=w.buttons;K&&K.length?(s.actionBar.push(K.map((re,Pe)=>N3e(re,`id-${Pe}`,()=>b.fireButtonTriggered({button:re,item:b.item}))),{icon:!0,label:!1}),s.entry.classList.add("has-actions")):s.entry.classList.remove("has-actions")}disposeElement(i,o,s){this.removeItemWithSeparator(i.element),super.disposeElement(i,o,s)}isItemWithSeparatorVisible(i){return this._itemsWithSeparatorsFrequency.has(i)}addItemWithSeparator(i){this._itemsWithSeparatorsFrequency.set(i,(this._itemsWithSeparatorsFrequency.get(i)||0)+1)}removeItemWithSeparator(i){let o=this._itemsWithSeparatorsFrequency.get(i)||0;o>1?this._itemsWithSeparatorsFrequency.set(i,o-1):this._itemsWithSeparatorsFrequency.delete(i)}};Xst.ID="quickpickitem";Xst=Gsi=fvt([$si(1,Ph)],Xst);Yst=class l extends dvt{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}get templateId(){return l.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(i){return this._visibleSeparatorsFrequency.has(i)}renderElement(i,o,s){var c;let _=i.element;s.element=_,_.element=(c=s.entry)!==null&&c!==void 0?c:void 0,_.element.classList.toggle("focus-inside",!!_.focusInsideSeparator);let h=_.separator,{labelHighlights:b,descriptionHighlights:w,detailHighlights:D}=_;s.icon.style.backgroundImage="",s.icon.className="";let O;!_.saneTooltip&&_.saneDescription&&(O={markdown:{value:_.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:_.saneDescription});let j={matches:b||[],descriptionTitle:O,descriptionMatches:w||[],labelEscapeNewLines:!0};if(s.entry.classList.add("quick-input-list-separator-as-item"),s.label.setLabel(_.saneLabel,_.saneDescription,j),_.saneDetail){let X;_.saneTooltip||(X={markdown:{value:_.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:_.saneDetail}),s.detail.element.style.display="",s.detail.setLabel(_.saneDetail,void 0,{matches:D,title:X,labelEscapeNewLines:!0})}else s.detail.element.style.display="none";s.separator.style.display="none",s.entry.classList.add("quick-input-list-separator-border");let F=h.buttons;F&&F.length?(s.actionBar.push(F.map((X,K)=>N3e(X,`id-${K}`,()=>_.fireSeparatorButtonTriggered({button:X,separator:_.separator}))),{icon:!0,label:!1}),s.entry.classList.add("has-actions")):s.entry.classList.remove("has-actions"),this.addSeparator(_)}disposeElement(i,o,s){var c;this.removeSeparator(i.element),this.isSeparatorVisible(i.element)||(c=i.element.element)===null||c===void 0||c.classList.remove("focus-inside"),super.disposeElement(i,o,s)}addSeparator(i){this._visibleSeparatorsFrequency.set(i,(this._visibleSeparatorsFrequency.get(i)||0)+1)}removeSeparator(i){let o=this._visibleSeparatorsFrequency.get(i)||0;o>1?this._visibleSeparatorsFrequency.set(i,o-1):this._visibleSeparatorsFrequency.delete(i)}};Yst.ID="quickpickseparator";q3e=class extends Ui{constructor(i,o,s,c,_,h){super(),this.parent=i,this.hoverDelegate=o,this.linkOpenerDelegate=s,this.accessibilityService=h,this._onKeyDown=new fn,this._onLeave=new fn,this.onLeave=this._onLeave.event,this._onChangedAllVisibleChecked=new fn,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new fn,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new fn,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new fn,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new fn,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new fn,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new fn,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new pr),this._shouldFireCheckedEvents=!0,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=bo(this.parent,dK(".quick-input-list")),this._separatorRenderer=new Yst(o),this._itemRenderer=_.createInstance(Xst,o),this._tree=this._register(_.createInstance(Qyt,"QuickInput",this._container,new Ksi,[this._itemRenderer,this._separatorRenderer],{accessibilityProvider:new Xsi,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:bPe.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=c,this._registerListeners()}get onDidChangeFocus(){return Yo.map(this._tree.onDidChangeFocus,i=>i.elements.filter(o=>o instanceof gI).map(o=>o.item))}get onDidChangeSelection(){return Yo.map(this._tree.onDidChangeSelection,i=>({items:i.elements.filter(o=>o instanceof gI).map(o=>o.item),event:i.browserEvent}))}get scrollTop(){return this._tree.scrollTop}set scrollTop(i){this._tree.scrollTop=i}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(i){this._tree.ariaLabel=i??""}set enabled(i){this._tree.getHTMLElement().style.pointerEvents=i?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(i){this._matchOnDescription=i}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(i){this._matchOnDetail=i}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(i){this._matchOnLabel=i}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(i){this._matchOnLabelMode=i}get sortByLabel(){return this._sortByLabel}set sortByLabel(i){this._sortByLabel=i}get shouldLoop(){return this._shouldLoop}set shouldLoop(i){this._shouldLoop=i}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown(i=>{let o=new w_(i);switch(o.keyCode){case 10:this.toggleCheckbox();break}this._onKeyDown.fire(o)}))}_registerOnContainerClick(){this._register(Tr(this._container,$o.CLICK,i=>{(i.x||i.y)&&this._onLeave.fire()}))}_registerOnMouseMiddleClick(){this._register(Tr(this._container,$o.AUXCLICK,i=>{i.button===1&&this._onLeave.fire()}))}_registerOnElementChecked(){this._register(this._elementChecked.event(i=>this._fireCheckedEvents()))}_registerOnContextMenu(){this._register(this._tree.onContextMenu(i=>{i.element&&(i.browserEvent.preventDefault(),this._tree.setSelection([i.element]))}))}_registerHoverListeners(){let i=this._register(new n6e(this.hoverDelegate.delay));this._register(this._tree.onMouseOver(async o=>{var s;if(KQt(o.browserEvent.target)){i.cancel();return}if(!(!KQt(o.browserEvent.relatedTarget)&&D1(o.browserEvent.relatedTarget,(s=o.element)===null||s===void 0?void 0:s.element)))try{await i.trigger(async()=>{o.element instanceof gI&&this.showHover(o.element)})}catch(c){if(!I2(c))throw c}})),this._register(this._tree.onMouseOut(o=>{var s;D1(o.browserEvent.relatedTarget,(s=o.element)===null||s===void 0?void 0:s.element)||i.cancel()}))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus(i=>{let o=i.elements[0]?this._tree.getParentElement(i.elements[0]):null;for(let s of this._separatorRenderer.visibleSeparators){let c=s===o;!!(s.focusInsideSeparator&$X.ACTIVE_ITEM)!==c&&(c?s.focusInsideSeparator|=$X.ACTIVE_ITEM:s.focusInsideSeparator&=~$X.ACTIVE_ITEM,this._tree.rerender(s))}})),this._register(this._tree.onMouseOver(i=>{let o=i.element?this._tree.getParentElement(i.element):null;for(let s of this._separatorRenderer.visibleSeparators){if(s!==o)continue;!!(s.focusInsideSeparator&$X.MOUSE_HOVER)||(s.focusInsideSeparator|=$X.MOUSE_HOVER,this._tree.rerender(s))}})),this._register(this._tree.onMouseOut(i=>{let o=i.element?this._tree.getParentElement(i.element):null;for(let s of this._separatorRenderer.visibleSeparators){if(s!==o)continue;!!(s.focusInsideSeparator&$X.MOUSE_HOVER)&&(s.focusInsideSeparator&=~$X.MOUSE_HOVER,this._tree.rerender(s))}}))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection(i=>{let o=i.elements.filter(s=>s instanceof gI);o.length!==i.elements.length&&(i.elements.length===1&&i.elements[0]instanceof GX&&(this._tree.setFocus([i.elements[0].children[0]]),this._tree.reveal(i.elements[0],0)),this._tree.setSelection(o))}))}getAllVisibleChecked(){return this._allVisibleChecked(this._itemElements,!1)}getCheckedCount(){return this._itemElements.filter(i=>i.checked).length}getVisibleCount(){return this._itemElements.filter(i=>!i.hidden).length}setAllVisibleChecked(i){try{this._shouldFireCheckedEvents=!1,this._itemElements.forEach(o=>{!o.hidden&&!o.checkboxDisabled&&(o.checked=i)})}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}setElements(i){this._elementDisposable.clear(),this._inputElements=i;let o=this.parent.classList.contains("show-checkboxes"),s;this._itemElements=new Array,this._elementTree=i.reduce((h,b,w)=>{let D;if(b.type==="separator"){if(!b.buttons)return h;s=new GX(w,O=>this.fireSeparatorButtonTriggered(O),b),D=s}else{let O=w>0?i[w-1]:void 0,j;O&&O.type==="separator"&&!O.buttons&&(s=void 0,j=O);let F=new gI(w,o,X=>this.fireButtonTriggered(X),this._elementChecked,b,j);if(this._itemElements.push(F),s)return s.children.push(F),h;D=F}return h.push(D),h},new Array);let c=new Array,_=0;for(let h of this._elementTree)h instanceof GX?(c.push({element:h,collapsible:!1,collapsed:!1,children:h.children.map(b=>({element:b,collapsible:!1,collapsed:!1}))}),_+=h.children.length+1):(c.push({element:h,collapsible:!1,collapsed:!1}),_++);this._tree.setChildren(null,c),this._onChangedVisibleCount.fire(_),this.accessibilityService.isScreenReaderOptimized()&&setTimeout(()=>{let h=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),b=h?.parentNode;if(h&&b){let w=h.nextSibling;b.removeChild(h),b.insertBefore(h,w)}},0)}setFocusedElements(i){let o=i.map(s=>this._itemElements.find(c=>c.item===s)).filter(s=>!!s);if(this._tree.setFocus(o),i.length>0){let s=this._tree.getFocus()[0];s&&this._tree.reveal(s)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(i){let o=i.map(s=>this._itemElements.find(c=>c.item===s)).filter(s=>!!s);this._tree.setSelection(o)}getCheckedElements(){return this._itemElements.filter(i=>i.checked).map(i=>i.item)}setCheckedElements(i){try{this._shouldFireCheckedEvents=!1;let o=new Set;for(let s of i)o.add(s);for(let s of this._itemElements)s.checked=o.has(s.item)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}focus(i){var o;if(this._itemElements.length)switch(i===F0.Second&&this._itemElements.length<2&&(i=F0.First),i){case F0.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,s=>s.element instanceof gI);break;case F0.Second:this._tree.scrollTop=0,this._tree.setFocus([this._itemElements[1]]);break;case F0.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]);break;case F0.Next:{let s=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,_=>_.element instanceof gI?(this._tree.reveal(_.element),!0):!1);let c=this._tree.getFocus();s.length&&s[0]===c[0]&&s[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}case F0.Previous:{let s=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,_=>{if(!(_.element instanceof gI))return!1;let h=this._tree.getParentElement(_.element);return h===null||h.children[0]!==_.element?this._tree.reveal(_.element):this._tree.reveal(h),!0});let c=this._tree.getFocus();s.length&&s[0]===c[0]&&s[0]===this._itemElements[0]&&this._onLeave.fire();break}case F0.NextPage:this._tree.focusNextPage(void 0,s=>s.element instanceof gI?(this._tree.reveal(s.element),!0):!1);break;case F0.PreviousPage:this._tree.focusPreviousPage(void 0,s=>{if(!(s.element instanceof gI))return!1;let c=this._tree.getParentElement(s.element);return c===null||c.children[0]!==s.element?this._tree.reveal(s.element):this._tree.reveal(c),!0});break;case F0.NextSeparator:{let s=!1,c=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,h=>{if(s)return!0;if(h.element instanceof GX)s=!0,this._separatorRenderer.isSeparatorVisible(h.element)?this._tree.reveal(h.element.children[0]):this._tree.reveal(h.element,0);else if(h.element instanceof gI){if(h.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(h.element)?this._tree.reveal(h.element):this._tree.reveal(h.element,0),!0;if(h.element===this._elementTree[0])return this._tree.reveal(h.element,0),!0}return!1});let _=this._tree.getFocus()[0];c===_&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]));break}case F0.PreviousSeparator:{let s,c=!!(!((o=this._tree.getFocus()[0])===null||o===void 0)&&o.separator);this._tree.focusPrevious(void 0,!0,void 0,_=>{if(_.element instanceof GX)c?s||(this._separatorRenderer.isSeparatorVisible(_.element)?this._tree.reveal(_.element):this._tree.reveal(_.element,0),s=_.element.children[0]):c=!0;else if(_.element instanceof gI&&!s){if(_.element.separator)this._itemRenderer.isItemWithSeparatorVisible(_.element)?this._tree.reveal(_.element):this._tree.reveal(_.element,0),s=_.element;else if(_.element===this._elementTree[0])return this._tree.reveal(_.element,0),!0}return!1}),s&&this._tree.setFocus([s]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(i){this._tree.getHTMLElement().style.maxHeight=i?`${Math.floor(i/44)*44+6}px`:"",this._tree.layout()}filter(i){if(!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;let o=i;if(i=i.trim(),!i||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this._itemElements.forEach(b=>{b.labelHighlights=void 0,b.descriptionHighlights=void 0,b.detailHighlights=void 0,b.hidden=!1;let w=b.index&&this._inputElements[b.index-1];b.item&&(b.separator=w&&w.type==="separator"&&!w.buttons?w:void 0)});else{let b;this._elementTree.forEach(w=>{var D,O,j,F;let X;this.matchOnLabelMode==="fuzzy"?X=this.matchOnLabel&&(D=n0t(i,e3e(w.saneLabel)))!==null&&D!==void 0?D:void 0:X=this.matchOnLabel&&(O=yVi(o,e3e(w.saneLabel)))!==null&&O!==void 0?O:void 0;let K=this.matchOnDescription&&(j=n0t(i,e3e(w.saneDescription||"")))!==null&&j!==void 0?j:void 0,re=this.matchOnDetail&&(F=n0t(i,e3e(w.saneDetail||"")))!==null&&F!==void 0?F:void 0;if(X||K||re?(w.labelHighlights=X,w.descriptionHighlights=K,w.detailHighlights=re,w.hidden=!1):(w.labelHighlights=void 0,w.descriptionHighlights=void 0,w.detailHighlights=void 0,w.hidden=w.item?!w.item.alwaysShow:!0),w.item?w.separator=void 0:w.separator&&(w.hidden=!0),!this.sortByLabel){let Pe=w.index&&this._inputElements[w.index-1];b=Pe&&Pe.type==="separator"?Pe:b,b&&!w.hidden&&(w.separator=b,b=void 0)}})}let s=this._elementTree.filter(b=>!b.hidden);if(this.sortByLabel&&i){let b=i.toLowerCase();s.sort((w,D)=>vVi(w,D,b))}let c,_=s.reduce((b,w,D)=>(w instanceof gI?c?c.children.push(w):b.push(w):w instanceof GX&&(w.children=[],c=w,b.push(w)),b),new Array),h=new Array;for(let b of _)b instanceof GX?h.push({element:b,collapsible:!1,collapsed:!1,children:b.children.map(w=>({element:w,collapsible:!1,collapsed:!1}))}):h.push({element:b,collapsible:!1,collapsed:!1});return this._tree.setChildren(null,h),this._tree.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(s.length),!0}toggleCheckbox(){try{this._shouldFireCheckedEvents=!1;let i=this._tree.getFocus().filter(s=>s instanceof gI),o=this._allVisibleChecked(i);for(let s of i)s.checkboxDisabled||(s.checked=!o)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}display(i){this._container.style.display=i?"":"none"}isDisplayed(){return this._container.style.display!=="none"}style(i){this._tree.style(i)}toggleHover(){let i=this._tree.getFocus()[0];if(!i?.saneTooltip||!(i instanceof gI))return;if(this._lastHover&&!this._lastHover.isDisposed){this._lastHover.dispose();return}this.showHover(i);let o=new pr;o.add(this._tree.onDidChangeFocus(s=>{s.elements[0]instanceof gI&&this.showHover(s.elements[0])})),this._lastHover&&o.add(this._lastHover),this._elementDisposable.add(o)}_allVisibleChecked(i,o=!0){for(let s=0,c=i.length;s{this.linkOpenerDelegate(_)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};fvt([Cv],q3e.prototype,"onDidChangeFocus",null);fvt([Cv],q3e.prototype,"onDidChangeSelection",null);q3e=fvt([$si(4,qs),$si(5,YS)],q3e)});function ZF(l,i={}){var o;fw.registerCommandAndKeybindingRule({...cEi,...l,secondary:bVi(l.primary,(o=l.secondary)!==null&&o!==void 0?o:[],i)})}function bVi(l,i,o={}){return o.withAltMod&&i.push(512+l),o.withCtrlMod&&(i.push(_vt+l),o.withAltMod&&i.push(512+_vt+l)),o.withCmdMod&&uu&&(i.push(2048+l),o.withCtrlMod&&i.push(2304+l),o.withAltMod&&(i.push(2560+l),o.withCtrlMod&&i.push(2816+l))),i}function M7(l,i){return o=>{let s=o.get(hw).currentQuickInput;if(s)return i&&s.quickNavigate?s.focus(i):s.focus(l)}}var cEi,_vt,sEi,aEi,lEi=Ht(()=>{uf();Fs();du();J3e();wle();Syt();kL();cEi={weight:200,when:po.and(po.equals(Joi,"quickPick"),l2i),metadata:{description:de("quickPick","Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")}};_vt=uu?256:2048;ZF({id:"quickInput.pageNext",primary:12,handler:M7(F0.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});ZF({id:"quickInput.pagePrevious",primary:11,handler:M7(F0.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});ZF({id:"quickInput.first",primary:_vt+14,handler:M7(F0.First)},{withAltMod:!0,withCmdMod:!0});ZF({id:"quickInput.last",primary:_vt+13,handler:M7(F0.Last)},{withAltMod:!0,withCmdMod:!0});ZF({id:"quickInput.next",primary:18,handler:M7(F0.Next)},{withCtrlMod:!0});ZF({id:"quickInput.previous",primary:16,handler:M7(F0.Previous)},{withCtrlMod:!0});sEi=de("quickInput.nextSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),aEi=de("quickInput.previousSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");uu?(ZF({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:M7(F0.NextSeparator,F0.Next),metadata:{description:sEi}}),ZF({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:M7(F0.NextSeparator)},{withCtrlMod:!0}),ZF({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:M7(F0.PreviousSeparator,F0.Previous),metadata:{description:aEi}}),ZF({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:M7(F0.PreviousSeparator)},{withCtrlMod:!0})):(ZF({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:M7(F0.NextSeparator,F0.Next),metadata:{description:sEi}}),ZF({id:"quickInput.nextSeparator",primary:2578,handler:M7(F0.NextSeparator)}),ZF({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:M7(F0.PreviousSeparator,F0.Previous),metadata:{description:aEi}}),ZF({id:"quickInput.previousSeparator",primary:2576,handler:M7(F0.PreviousSeparator)}));ZF({id:"quickInput.acceptInBackground",when:po.and(cEi.when,po.or(Hyt.negate(),_2i)),primary:17,weight:250,handler:l=>{let i=l.get(hw).currentQuickInput;i?.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0})});var SVi,Ysi,Qsi,e7,Qst,uEi=Ht(()=>{va();Ij();xyt();qoi();b2i();am();Pa();$r();eue();Fs();kL();k2i();Syt();nue();GA();kc();oEi();du();lEi();SVi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Ysi=function(l,i){return function(o,s){i(o,s,l)}},e7=No,Qst=Qsi=class extends Ui{get currentQuickInput(){var i;return(i=this.controller)!==null&&i!==void 0?i:void 0}get container(){return this._container}constructor(i,o,s,c){super(),this.options=i,this.layoutService=o,this.instantiationService=s,this.contextKeyService=c,this.enabled=!0,this.onDidAcceptEmitter=this._register(new fn),this.onDidCustomEmitter=this._register(new fn),this.onDidTriggerButtonEmitter=this._register(new fn),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new fn),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new fn),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=c2i.bindTo(this.contextKeyService),this.quickInputTypeContext=u2i.bindTo(this.contextKeyService),this.endOfQuickInputBoxContext=f2i.bindTo(this.contextKeyService),this.idPrefix=i.idPrefix,this._container=i.container,this.styles=i.styles,this._register(Yo.runAndSubscribe(ONe,({window:_,disposables:h})=>this.registerKeyModsListeners(_,h),{window:D_,disposables:this._store})),this._register(D0i(_=>{this.ui&&Xa(this.ui.container)===_&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))}))}registerKeyModsListeners(i,o){let s=c=>{this.keyMods.ctrlCmd=c.ctrlKey||c.metaKey,this.keyMods.alt=c.altKey};for(let c of[$o.KEY_DOWN,$o.KEY_UP,$o.MOUSE_DOWN])o.add(Tr(i,c,s,!0))}getUI(i){if(this.ui)return i&&Xa(this._container)!==Xa(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;let o=bo(this._container,e7(".quick-input-widget.show-file-icons"));o.tabIndex=-1,o.style.display="none";let s=ww(o),c=bo(o,e7(".quick-input-titlebar")),_=this._register(new NC(c,{hoverDelegate:this.options.hoverDelegate}));_.domNode.classList.add("quick-input-left-action-bar");let h=bo(c,e7(".quick-input-title")),b=this._register(new NC(c,{hoverDelegate:this.options.hoverDelegate}));b.domNode.classList.add("quick-input-right-action-bar");let w=bo(o,e7(".quick-input-header")),D=bo(w,e7("input.quick-input-check-all"));D.type="checkbox",D.setAttribute("aria-label",de("quickInput.checkAll","Toggle all checkboxes")),this._register(Cm(D,$o.CHANGE,er=>{let Di=D.checked;sn.setAllVisibleChecked(Di)})),this._register(Tr(D,$o.CLICK,er=>{(er.x||er.y)&&X.setFocus()}));let O=bo(w,e7(".quick-input-description")),j=bo(w,e7(".quick-input-and-message")),F=bo(j,e7(".quick-input-filter")),X=this._register(new Eyt(F,this.styles.inputBox,this.styles.toggle));X.setAttribute("aria-describedby",`${this.idPrefix}message`);let K=bo(F,e7(".quick-input-visible-count"));K.setAttribute("aria-live","polite"),K.setAttribute("aria-atomic","true");let re=new hPe(K,{countFormat:de({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),Pe=bo(F,e7(".quick-input-count"));Pe.setAttribute("aria-live","polite");let Le=new hPe(Pe,{countFormat:de({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),Je=bo(w,e7(".quick-input-action")),Ye=this._register(new yue(Je,this.styles.button));Ye.label=de("ok","OK"),this._register(Ye.onDidClick(er=>{this.onDidAcceptEmitter.fire()}));let ft=bo(w,e7(".quick-input-action")),Ct=this._register(new yue(ft,{...this.styles.button,supportIcons:!0}));Ct.label=de("custom","Custom"),this._register(Ct.onDidClick(er=>{this.onDidCustomEmitter.fire()}));let Et=bo(j,e7(`#${this.idPrefix}message.quick-input-message`)),St=this._register(new Pst(o,this.styles.progressBar));St.getContainer().classList.add("quick-input-progress");let Mi=bo(o,e7(".quick-input-html-widget"));Mi.tabIndex=-1;let zi=bo(o,e7(".quick-input-description")),Vr=this.idPrefix+"list",sn=this._register(this.instantiationService.createInstance(q3e,o,this.options.hoverDelegate,this.options.linkOpenerDelegate,Vr));X.setAttribute("aria-controls",Vr),this._register(sn.onDidChangeFocus(()=>{var er;X.setAttribute("aria-activedescendant",(er=sn.getActiveDescendant())!==null&&er!==void 0?er:"")})),this._register(sn.onChangedAllVisibleChecked(er=>{D.checked=er})),this._register(sn.onChangedVisibleCount(er=>{re.setCount(er)})),this._register(sn.onChangedCheckedCount(er=>{Le.setCount(er)})),this._register(sn.onLeave(()=>{setTimeout(()=>{this.controller&&(X.setFocus(),this.controller instanceof A3e&&this.controller.canSelectMany&&sn.clearFocus())},0)}));let gr=lI(o);return this._register(gr),this._register(Tr(o,$o.FOCUS,er=>{let Di=this.getUI();if(D1(er.relatedTarget,Di.inputContainer)){let rs=Di.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==rs&&this.endOfQuickInputBoxContext.set(rs)}D1(er.relatedTarget,Di.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=Py(er.relatedTarget)?er.relatedTarget:void 0)},!0)),this._register(gr.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(jfe.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0})),this._register(X.onKeyDown(er=>{let Di=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==Di&&this.endOfQuickInputBoxContext.set(Di)})),this._register(Tr(o,$o.FOCUS,er=>{X.setFocus()})),this._register(Cm(o,$o.KEY_DOWN,er=>{if(!D1(er.target,Mi))switch(er.keyCode){case 3:Kd.stop(er,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:Kd.stop(er,!0),this.hide(jfe.Gesture);break;case 2:if(!er.altKey&&!er.ctrlKey&&!er.metaKey){let Di=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(o.classList.contains("show-checkboxes")?Di.push("input"):Di.push("input[type=text]"),this.getUI().list.isDisplayed()&&Di.push(".monaco-list"),this.getUI().message&&Di.push(".quick-input-message a"),this.getUI().widget){if(D1(er.target,this.getUI().widget))break;Di.push(".quick-input-html-widget")}let rs=o.querySelectorAll(Di.join(", "));er.shiftKey&&er.target===rs[0]?(Kd.stop(er,!0),sn.clearFocus()):!er.shiftKey&&D1(er.target,rs[rs.length-1])&&(Kd.stop(er,!0),rs[0].focus())}break;case 10:er.ctrlKey&&(Kd.stop(er,!0),this.getUI().list.toggleHover());break}})),this.ui={container:o,styleSheet:s,leftActionBar:_,titleBar:c,title:h,description1:zi,description2:O,widget:Mi,rightActionBar:b,checkAll:D,inputContainer:j,filterContainer:F,inputBox:X,visibleCountContainer:K,visibleCount:re,countContainer:Pe,count:Le,okContainer:Je,ok:Ye,message:Et,customButtonContainer:ft,customButton:Ct,list:sn,progressBar:St,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:er=>this.show(er),hide:()=>this.hide(),setVisibilities:er=>this.setVisibilities(er),setEnabled:er=>this.setEnabled(er),setContextKey:er=>this.options.setContextKey(er),linkOpenerDelegate:er=>this.options.linkOpenerDelegate(er)},this.updateStyles(),this.ui}reparentUI(i){this.ui&&(this._container=i,bo(this._container,this.ui.container))}pick(i,o={},s=Du.None){return new Promise((c,_)=>{let h=O=>{var j;h=c,(j=o.onKeyMods)===null||j===void 0||j.call(o,b.keyMods),c(O)};if(s.isCancellationRequested){h(void 0);return}let b=this.createQuickPick(),w,D=[b,b.onDidAccept(()=>{if(b.canSelectMany)h(b.selectedItems.slice()),b.hide();else{let O=b.activeItems[0];O&&(h(O),b.hide())}}),b.onDidChangeActive(O=>{let j=O[0];j&&o.onDidFocus&&o.onDidFocus(j)}),b.onDidChangeSelection(O=>{if(!b.canSelectMany){let j=O[0];j&&(h(j),b.hide())}}),b.onDidTriggerItemButton(O=>o.onDidTriggerItemButton&&o.onDidTriggerItemButton({...O,removeItem:()=>{let j=b.items.indexOf(O.item);if(j!==-1){let F=b.items.slice(),X=F.splice(j,1),K=b.activeItems.filter(Pe=>Pe!==X[0]),re=b.keepScrollPosition;b.keepScrollPosition=!0,b.items=F,K&&(b.activeItems=K),b.keepScrollPosition=re}}})),b.onDidTriggerSeparatorButton(O=>{var j;return(j=o.onDidTriggerSeparatorButton)===null||j===void 0?void 0:j.call(o,O)}),b.onDidChangeValue(O=>{w&&!O&&(b.activeItems.length!==1||b.activeItems[0]!==w)&&(b.activeItems=[w])}),s.onCancellationRequested(()=>{b.hide()}),b.onDidHide(()=>{a_(D),h(void 0)})];b.title=o.title,b.canSelectMany=!!o.canPickMany,b.placeholder=o.placeHolder,b.ignoreFocusOut=!!o.ignoreFocusLost,b.matchOnDescription=!!o.matchOnDescription,b.matchOnDetail=!!o.matchOnDetail,b.matchOnLabel=o.matchOnLabel===void 0||o.matchOnLabel,b.quickNavigate=o.quickNavigate,b.hideInput=!!o.hideInput,b.contextKey=o.contextKey,b.busy=!0,Promise.all([i,o.activeItem]).then(([O,j])=>{w=j,b.busy=!1,b.items=O,b.canSelectMany&&(b.selectedItems=O.filter(F=>F.type!=="separator"&&F.picked)),w&&(b.activeItems=[w])}),b.show(),Promise.resolve(i).then(void 0,O=>{_(O),b.hide()})})}createQuickPick(){let i=this.getUI(!0);return new A3e(i)}createInputBox(){let i=this.getUI(!0);return new vyt(i)}show(i){let o=this.getUI(!0);this.onShowEmitter.fire();let s=this.controller;this.controller=i,s?.didHide(),this.setEnabled(!0),o.leftActionBar.clear(),o.title.textContent="",o.description1.textContent="",o.description2.textContent="",N1(o.widget),o.rightActionBar.clear(),o.checkAll.checked=!1,o.inputBox.placeholder="",o.inputBox.password=!1,o.inputBox.showDecoration(jy.Ignore),o.visibleCount.setCount(0),o.count.setCount(0),N1(o.message),o.progressBar.stop(),o.list.setElements([]),o.list.matchOnDescription=!1,o.list.matchOnDetail=!1,o.list.matchOnLabel=!0,o.list.sortByLabel=!0,o.ignoreFocusOut=!1,o.inputBox.toggles=void 0;let c=this.options.backKeybindingLabel();yyt.tooltip=c?de("quickInput.backWithKeybinding","Back ({0})",c):de("quickInput.back","Back"),o.container.style.display="",this.updateLayout(),o.inputBox.setFocus(),this.quickInputTypeContext.set(i.type)}isVisible(){return!!this.ui&&this.ui.container.style.display!=="none"}setVisibilities(i){let o=this.getUI();o.title.style.display=i.title?"":"none",o.description1.style.display=i.description&&(i.inputBox||i.checkAll)?"":"none",o.description2.style.display=i.description&&!(i.inputBox||i.checkAll)?"":"none",o.checkAll.style.display=i.checkAll?"":"none",o.inputContainer.style.display=i.inputBox?"":"none",o.filterContainer.style.display=i.inputBox?"":"none",o.visibleCountContainer.style.display=i.visibleCount?"":"none",o.countContainer.style.display=i.count?"":"none",o.okContainer.style.display=i.ok?"":"none",o.customButtonContainer.style.display=i.customButton?"":"none",o.message.style.display=i.message?"":"none",o.progressBar.getContainer().style.display=i.progressBar?"":"none",o.list.display(!!i.list),o.container.classList.toggle("show-checkboxes",!!i.checkBox),o.container.classList.toggle("hidden-input",!i.inputBox&&!i.description),this.updateLayout()}setEnabled(i){if(i!==this.enabled){this.enabled=i;for(let o of this.getUI().leftActionBar.viewItems)o.action.enabled=i;for(let o of this.getUI().rightActionBar.viewItems)o.action.enabled=i;this.getUI().checkAll.disabled=!i,this.getUI().inputBox.enabled=i,this.getUI().ok.enabled=i,this.getUI().list.enabled=i}}hide(i){var o,s;let c=this.controller;if(!c)return;c.willHide(i);let _=(o=this.ui)===null||o===void 0?void 0:o.container,h=_&&!gft(_);if(this.controller=null,this.onHideEmitter.fire(),_&&(_.style.display="none"),!h){let b=this.previousFocusElement;for(;b&&!b.offsetParent;)b=(s=b.parentElement)!==null&&s!==void 0?s:void 0;b?.offsetParent?(b.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}c.didHide(i)}layout(i,o){this.dimension=i,this.titleBarOffset=o,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;let i=this.ui.container.style,o=Math.min(this.dimension.width*.62,Qsi.MAX_WIDTH);i.width=o+"px",i.marginLeft="-"+o/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(i){this.styles=i,this.updateStyles()}updateStyles(){if(this.ui){let{quickInputTitleBackground:i,quickInputBackground:o,quickInputForeground:s,widgetBorder:c,widgetShadow:_}=this.styles.widget;this.ui.titleBar.style.backgroundColor=i??"",this.ui.container.style.backgroundColor=o??"",this.ui.container.style.color=s??"",this.ui.container.style.border=c?`1px solid ${c}`:"",this.ui.container.style.boxShadow=_?`0 0 8px 2px ${_}`:"",this.ui.list.style(this.styles.list);let h=[];this.styles.pickerGroup.pickerGroupBorder&&h.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&h.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&h.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(h.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&h.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&h.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&h.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&h.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&h.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),h.push("}"));let b=h.join(` +`);b!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=b)}}};Qst.MAX_WIDTH=600;Qst=Qsi=SVi([Ysi(1,KL),Ysi(2,qs),Ysi(3,La)],Qst)});var xVi,Zst,pvt,dEi=Ht(()=>{am();Pa();du();kc();nue();bL();t2i();jX();Sv();_g();Syt();uEi();Rg();va();xVi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Zst=function(l,i){return function(o,s){i(o,s,l)}},pvt=class extends Ppt{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get currentQuickInput(){return this.controller.currentQuickInput}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(myt))),this._quickAccess}constructor(i,o,s,c,_){super(s),this.instantiationService=i,this.contextKeyService=o,this.layoutService=c,this.configurationService=_,this._onShow=this._register(new fn),this._onHide=this._register(new fn),this.contexts=new Map}createController(i=this.layoutService,o){let s={idPrefix:"quickInput_",container:i.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:_=>this.setContextKey(_),linkOpenerDelegate:_=>{this.instantiationService.invokeFunction(h=>{h.get(Gb).open(_,{allowCommands:!0,fromUserGesture:!0})})},returnFocus:()=>i.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(byt))},c=this._register(this.instantiationService.createInstance(Qst,{...s,...o}));return c.layout(i.activeContainerDimension,i.activeContainerOffset.quickPickTop),this._register(i.onDidLayoutActiveContainer(_=>{Xa(i.activeContainer)===Xa(c.container)&&c.layout(_,i.activeContainerOffset.quickPickTop)})),this._register(i.onDidChangeActiveContainer(()=>{c.isVisible()||c.layout(i.activeContainerDimension,i.activeContainerOffset.quickPickTop)})),this._register(c.onShow(()=>{this.resetContextKeys(),this._onShow.fire()})),this._register(c.onHide(()=>{this.resetContextKeys(),this._onHide.fire()})),c}setContextKey(i){let o;i&&(o=this.contexts.get(i),o||(o=new Ms(i,!1).bindTo(this.contextKeyService),this.contexts.set(i,o))),!(o&&o.get())&&(this.resetContextKeys(),o?.set(!0))}resetContextKeys(){this.contexts.forEach(i=>{i.get()&&i.reset()})}pick(i,o={},s=Du.None){return this.controller.pick(i,o,s)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:ec(eti),quickInputForeground:ec(Lbi),quickInputTitleBackground:ec(Obi),widgetBorder:ec(Y_t),widgetShadow:ec(mj)},inputBox:T3e,toggle:w3e,countBadge:tyt,button:OTi,progressBar:FTi,keybindingLabel:LTi,list:aK({listBackground:eti,listFocusBackground:cW,listFocusForeground:aW,listInactiveFocusForeground:aW,listInactiveSelectionIconForeground:Vle,listInactiveFocusBackground:cW,listFocusOutline:fg,listInactiveFocusOutline:fg}),pickerGroup:{pickerGroupBorder:ec(Fbi),pickerGroupForeground:ec(npt)}}}};pvt=xVi([Zst(0,qs),Zst(1,La),Zst(2,Ph),Zst(3,KL),Zst(4,gl)],pvt)});var fEi,wPe,Zsi,mvt,$3e,hvt,_Ei=Ht(()=>{QTi();Pa();sd();_g();am();kc();du();Hni();$b();dEi();ude();Rg();fEi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},wPe=function(l,i){return function(o,s){i(o,s,l)}},Zsi=class extends pvt{constructor(i,o,s,c,_,h){super(o,s,c,new Ngt(i.getContainerDomNode(),_),h),this.host=void 0;let b=$3e.get(i);if(b){let w=b.widget;this.host={_serviceBrand:void 0,get mainContainer(){return w.getDomNode()},getContainer(){return w.getDomNode()},whenContainerStylesLoaded(){},get containers(){return[w.getDomNode()]},get activeContainer(){return w.getDomNode()},get mainContainerDimension(){return i.getLayoutInfo()},get activeContainerDimension(){return i.getLayoutInfo()},get onDidLayoutMainContainer(){return i.onDidLayoutChange},get onDidLayoutActiveContainer(){return i.onDidLayoutChange},get onDidLayoutContainer(){return Yo.map(i.onDidLayoutChange,D=>({container:w.getDomNode(),dimension:D}))},get onDidChangeActiveContainer(){return Yo.None},get onDidAddContainer(){return Yo.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>i.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};Zsi=fEi([wPe(1,qs),wPe(2,La),wPe(3,Ph),wPe(4,$u),wPe(5,gl)],Zsi);mvt=class{get activeService(){let i=this.codeEditorService.getFocusedCodeEditor();if(!i)throw new Error("Quick input service needs a focused editor to work.");let o=this.mapEditorToService.get(i);if(!o){let s=o=this.instantiationService.createInstance(Zsi,i);this.mapEditorToService.set(i,o),PF(i.onDidDispose)(()=>{s.dispose(),this.mapEditorToService.delete(i)})}return o}get currentQuickInput(){return this.activeService.currentQuickInput}get quickAccess(){return this.activeService.quickAccess}constructor(i,o){this.instantiationService=i,this.codeEditorService=o,this.mapEditorToService=new Map}pick(i,o={},s=Du.None){return this.activeService.pick(i,o,s)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};mvt=fEi([wPe(0,qs),wPe(1,$u)],mvt);$3e=class l{static get(i){return i.getContribution(l.ID)}constructor(i){this.editor=i,this.widget=new hvt(this.editor)}dispose(){this.widget.dispose()}};$3e.ID="editor.controller.quickInput";hvt=class l{constructor(i){this.codeEditor=i,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return l.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}};hvt.ID="editor.contrib.quickInputWidget";Al($3e.ID,$3e,4)});function CVi(l){if(!l||!Array.isArray(l))return[];let i=[],o=0;for(let s=0,c=l.length;s{let F=DVi(O.token,j.token);return F!==0?F:O.index-j.index});let o=0,s="000000",c="ffffff";for(;l.length>=1&&l[0].token==="";){let O=l.shift();O.fontStyle!==-1&&(o=O.fontStyle),O.foreground!==null&&(s=O.foreground),O.background!==null&&(c=O.background)}let _=new tai;for(let O of i)_.getId(O);let h=_.getId(s),b=_.getId(c),w=new iai(o,h,b),D=new nai(w);for(let O=0,j=l.length;Oi?1:0}function pEi(l){let i=[];for(let o=1,s=l.length;o{j1();eai=class{constructor(i,o,s,c,_){this._parsedThemeRuleBrand=void 0,this.token=i,this.index=o,this.fontStyle=s,this.foreground=c,this.background=_}};wVi=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,tai=class{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(i){if(i===null)return 0;let o=i.match(wVi);if(!o)throw new Error("Illegal value for token color: "+i);i=o[1].toUpperCase();let s=this._color2id.get(i);return s||(s=++this._lastColorId,this._color2id.set(i,s),this._id2color[s]=Kr.fromHex("#"+i),s)}getColorMap(){return this._id2color.slice(0)}},eat=class{static createFromRawTokenTheme(i,o){return this.createFromParsedTokenTheme(CVi(i),o)}static createFromParsedTokenTheme(i,o){return kVi(i,o)}constructor(i,o){this._colorMap=i,this._root=o,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(i){return this._root.match(i)}match(i,o){let s=this._cache.get(o);if(typeof s>"u"){let c=this._match(o),_=EVi(o);s=(c.metadata|_<<8)>>>0,this._cache.set(o,s)}return(s|i<<0)>>>0}},TVi=/\b(comment|string|regex|regexp)\b/;iai=class l{constructor(i,o,s){this._themeTrieElementRuleBrand=void 0,this._fontStyle=i,this._foreground=o,this._background=s,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new l(this._fontStyle,this._foreground,this._background)}acceptOverwrite(i,o,s){i!==-1&&(this._fontStyle=i),o!==0&&(this._foreground=o),s!==0&&(this._background=s),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}},nai=class l{constructor(i){this._themeTrieElementBrand=void 0,this._mainRule=i,this._children=new Map}match(i){if(i==="")return this._mainRule;let o=i.indexOf("."),s,c;o===-1?(s=i,c=""):(s=i.substring(0,o),c=i.substring(o+1));let _=this._children.get(s);return typeof _<"u"?_.match(c):this._mainRule}insert(i,o,s,c){if(i===""){this._mainRule.acceptOverwrite(o,s,c);return}let _=i.indexOf("."),h,b;_===-1?(h=i,b=""):(h=i.substring(0,_),b=i.substring(_+1));let w=this._children.get(h);typeof w>"u"&&(w=new l(this._mainRule.clone()),this._children.set(h,w)),w.insert(b,o,s,c)}}});var hEi,gEi,yEi,vEi,bEi=Ht(()=>{bj();Sv();hEi={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[jC]:"#FFFFFE",[pL]:"#000000",[$ei]:"#E5EBF1",[xAe]:"#D3D3D3",[CAe]:"#939393",[Irt]:"#ADD6FF4D"}},gEi={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[jC]:"#1E1E1E",[pL]:"#D4D4D4",[$ei]:"#3A3D41",[xAe]:"#404040",[CAe]:"#707070",[Irt]:"#ADD6FF26"}},yEi={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[jC]:"#000000",[pL]:"#FFFFFF",[xAe]:"#FFFFFF",[CAe]:"#FFFFFF"}},vEi={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[jC]:"#FFFFFF",[pL]:"#292929",[xAe]:"#292929",[CAe]:"#292929"}}});function Bg(l,i,o,s){return TPe.registerIcon(l,i,o,s)}function oai(){return TPe}function NVi(){let l=But();for(let i in l){let o="\\"+l[i].toString(16);TPe.registerIcon(i,{fontCharacter:o})}}var IVi,SEi,xEi,rai,TPe,kEi,wEi,CEi,gvt,Azn,Pzn,Lzn,Ozn,R7=Ht(()=>{Bu();Og();gnt();P0();Pa();cm();Lh();Fs();e_t();RC();IVi={IconContribution:"base.contributions.icons"};(function(l){function i(o,s){let c=o.defaults;for(;uc.isThemeIcon(c);){let _=TPe.getIcon(c.id);if(!_)return;c=_.defaults}return c}l.getDefinition=i})(SEi||(SEi={}));(function(l){function i(s){return{weight:s.weight,style:s.style,src:s.src.map(c=>({format:c.format,location:c.location.toString()}))}}l.toJSONObject=i;function o(s){let c=_=>CC(_)?_:void 0;if(s&&Array.isArray(s.src)&&s.src.every(_=>CC(_.format)&&CC(_.location)))return{weight:c(s.weight),style:c(s.style),src:s.src.map(_=>({format:_.format,location:Ka.parse(_.location)}))}}l.fromJSONObject=o})(xEi||(xEi={}));rai=class{constructor(){this._onDidChange=new fn,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:de("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:de("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${uc.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(i,o,s,c){let _=this.iconsById[i];if(_){if(s&&!_.description){_.description=s,this.iconSchema.properties[i].markdownDescription=`${s} $(${i})`;let w=this.iconReferenceSchema.enum.indexOf(i);w!==-1&&(this.iconReferenceSchema.enumDescriptions[w]=s),this._onDidChange.fire()}return _}let h={id:i,description:s,defaults:o,deprecationMessage:c};this.iconsById[i]=h;let b={$ref:"#/definitions/icons"};return c&&(b.deprecationMessage=c),s&&(b.markdownDescription=`${s}: $(${i})`),this.iconSchema.properties[i]=b,this.iconReferenceSchema.enum.push(i),this.iconReferenceSchema.enumDescriptions.push(s||""),this._onDidChange.fire(),{id:i}}getIcons(){return Object.keys(this.iconsById).map(i=>this.iconsById[i])}getIcon(i){return this.iconsById[i]}getIconSchema(){return this.iconSchema}toString(){let i=(_,h)=>_.id.localeCompare(h.id),o=_=>{for(;uc.isThemeIcon(_.defaults);)_=this.iconsById[_.defaults.id];return`codicon codicon-${_?_.id:""}`},s=[];s.push("| preview | identifier | default codicon ID | description"),s.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");let c=Object.keys(this.iconsById).map(_=>this.iconsById[_]);for(let _ of c.filter(h=>!!h.description).sort(i))s.push(`||${_.id}|${uc.isThemeIcon(_.defaults)?_.defaults.id:_.id}|${_.description||""}|`);s.push("| preview | identifier "),s.push("| ----------- | --------------------------------- |");for(let _ of c.filter(h=>!uc.isThemeIcon(h.defaults)).sort(i))s.push(`||${_.id}|`);return s.join(` +`)}},TPe=new rai;q_.add(IVi.IconContribution,TPe);NVi();kEi="vscode://schemas/icons",wEi=q_.as(JNe.JSONContribution);wEi.registerSchema(kEi,TPe.getIconSchema());CEi=new Bd(()=>wEi.notifySchemaChanged(kEi),200);TPe.onDidChange(()=>{CEi.isScheduled()||CEi.schedule()});gvt=Bg("widget-close",Xo.close,de("widgetClose","Icon for the close action in widgets.")),Azn=Bg("goto-previous-location",Xo.arrowUp,de("previousChangeIcon","Icon for goto previous editor location.")),Pzn=Bg("goto-next-location",Xo.arrowDown,de("nextChangeIcon","Icon for goto next editor location.")),Lzn=uc.modify(Xo.sync,"spin"),Ozn=uc.modify(Xo.loading,"spin")});function TEi(l){let i=new pr,o=i.add(new fn),s=oai();return i.add(s.onDidChange(()=>o.fire())),l&&i.add(l.onDidProductIconThemeChange(()=>o.fire())),{dispose:()=>i.dispose(),onDidChange:o.event,getCSS(){let c=l?l.getProductIconTheme():new tat,_={},h=[],b=[];for(let w of s.getIcons()){let D=c.getIcon(w);if(!D)continue;let O=D.font,j=`--vscode-icon-${w.id}-font-family`,F=`--vscode-icon-${w.id}-content`;O?(_[O.id]=O.definition,b.push(`${j}: ${Sft(O.id)};`,`${F}: '${D.fontCharacter}';`),h.push(`.codicon-${w.id}:before { content: '${D.fontCharacter}'; font-family: ${Sft(O.id)}; }`)):(b.push(`${F}: '${D.fontCharacter}'; ${j}: 'codicon';`),h.push(`.codicon-${w.id}:before { content: '${D.fontCharacter}'; }`))}for(let w in _){let D=_[w],O=D.weight?`font-weight: ${D.weight};`:"",j=D.style?`font-style: ${D.style};`:"",F=D.src.map(X=>`${y7(X.location)} format('${X.format}')`).join(", ");h.push(`@font-face { src: ${F}; font-family: ${Sft(w)};${O}${j} font-display: block; }`)}return h.push(`:root { ${b.join(" ")} }`),h.join(` +`)}}}var tat,EEi=Ht(()=>{va();Pa();$r();P0();R7();tat=class{getIcon(i){let o=oai(),s=i.defaults;for(;uc.isThemeIcon(s);){let c=o.getIcon(s.id);if(!c)return;s=c.defaults}return s}}});function vvt(l){return l===KX||l===EPe||l===Hfe||l===Ufe}function sai(l){switch(l){case KX:return hEi;case EPe:return gEi;case Hfe:return yEi;case Ufe:return vEi}}function yvt(l){let i=sai(l);return new bvt(l,i)}var KX,EPe,Hfe,Ufe,DEi,AVi,bvt,Svt,aai=Ht(()=>{va();RL();j1();Pa();Fg();iAe();mEi();bEi();RC();Sv();_g();$r();dW();EEi();GA();KX="vs",EPe="vs-dark",Hfe="hc-black",Ufe="hc-light",DEi=q_.as(Jei.ColorContribution),AVi=q_.as(Cti.ThemingContribution),bvt=class{constructor(i,o){this.semanticHighlighting=!1,this.themeData=o;let s=o.base;i.length>0?(vvt(i)?this.id=i:this.id=s+" "+i,this.themeName=i):(this.id=s,this.themeName=s),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){let i=new Map;for(let o in this.themeData.colors)i.set(o,Kr.fromHex(this.themeData.colors[o]));if(this.themeData.inherit){let o=sai(this.themeData.base);for(let s in o.colors)i.has(s)||i.set(s,Kr.fromHex(o.colors[s]))}this.colors=i}return this.colors}getColor(i,o){let s=this.getColors().get(i);if(s)return s;if(o!==!1)return this.getDefault(i)}getDefault(i){let o=this.defaultColors[i];return o||(o=DEi.resolveDefaultColor(i,this),this.defaultColors[i]=o,o)}defines(i){return this.getColors().has(i)}get type(){switch(this.base){case KX:return UF.LIGHT;case Hfe:return UF.HIGH_CONTRAST_DARK;case Ufe:return UF.HIGH_CONTRAST_LIGHT;default:return UF.DARK}}get tokenTheme(){if(!this._tokenTheme){let i=[],o=[];if(this.themeData.inherit){let _=sai(this.themeData.base);i=_.rules,_.encodedTokensColors&&(o=_.encodedTokensColors)}let s=this.themeData.colors["editor.foreground"],c=this.themeData.colors["editor.background"];if(s||c){let _={token:""};s&&(_.foreground=s),c&&(_.background=c),i.push(_)}i=i.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(o=this.themeData.encodedTokensColors),this._tokenTheme=eat.createFromRawTokenTheme(i,o)}return this._tokenTheme}getTokenStyleMetadata(i,o,s){let _=this.tokenTheme._match([i].concat(o).join(".")).metadata,h=QS.getForeground(_),b=QS.getFontStyle(_);return{foreground:h,italic:!!(b&1),bold:!!(b&2),underline:!!(b&4),strikethrough:!!(b&8)}}};Svt=class extends Ui{constructor(){super(),this._onColorThemeChange=this._register(new fn),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new fn),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new tat,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(KX,yvt(KX)),this._knownThemes.set(EPe,yvt(EPe)),this._knownThemes.set(Hfe,yvt(Hfe)),this._knownThemes.set(Ufe,yvt(Ufe));let i=this._register(TEi(this));this._codiconCSS=i.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(KX),this._onOSSchemeChanged(),this._register(i.onDidChange(()=>{this._codiconCSS=i.getCSS(),this._updateCSS()})),EQt(D_,"(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(i){return MNe(i)?this._registerShadowDomContainer(i):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=ww(void 0,i=>{i.className="monaco-colors",i.textContent=this._allCSS}),this._styleElements.push(this._globalStyleElement)),Ui.None}_registerShadowDomContainer(i){let o=ww(i,s=>{s.className="monaco-colors",s.textContent=this._allCSS});return this._styleElements.push(o),{dispose:()=>{for(let s=0;s{s.base===i&&s.notifyBaseUpdated()}),this._theme.themeName===i&&this.setTheme(i)}getColorTheme(){return this._theme}setColorMapOverride(i){this._colorMapOverride=i,this._updateThemeOrColorMap()}setTheme(i){let o;this._knownThemes.has(i)?o=this._knownThemes.get(i):o=this._knownThemes.get(KX),this._updateActualTheme(o)}_updateActualTheme(i){!i||this._theme===i||(this._theme=i,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){let i=D_.matchMedia("(forced-colors: active)").matches;if(i!==ZA(this._theme.type)){let o;rX(this._theme.type)?o=i?Hfe:EPe:o=i?Ufe:KX,this._updateActualTheme(this._knownThemes.get(o))}}}setAutoDetectHighContrast(i){this._autoDetectHighContrast=i,this._onOSSchemeChanged()}_updateThemeOrColorMap(){let i=[],o={},s={addRule:h=>{o[h]||(i.push(h),o[h]=!0)}};AVi.getThemingParticipants().forEach(h=>h(this._theme,s,this._environment));let c=[];for(let h of DEi.getColors()){let b=this._theme.getColor(h.id,!0);b&&c.push(`${U_t(h.id)}: ${b.toString()};`)}s.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${c.join(` +`)} }`);let _=this._colorMapOverride||this._theme.tokenTheme.getColorMap();s.addRule(pEi(_)),this._themeCSS=i.join(` +`),this._updateCSS(),Oh.setColorMap(_),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS} +${this._themeCSS}`,this._styleElements.forEach(i=>i.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}});var yI,DPe=Ht(()=>{kc();yI=Wc("themeService")});var PVi,cai,xvt,IEi=Ht(()=>{va();GA();Pa();$r();fL();Rg();du();nue();PVi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},cai=function(l,i){return function(o,s){i(o,s,l)}},xvt=class extends Ui{constructor(i,o,s){super(),this._contextKeyService=i,this._layoutService=o,this._configurationService=s,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new fn,this._onDidChangeReducedMotion=new fn,this._accessibilityModeEnabledContext=lAe.bindTo(this._contextKeyService);let c=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(h=>{h.affectsConfiguration("editor.accessibilitySupport")&&(c(),this._onDidChangeScreenReaderOptimized.fire()),h.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())})),c(),this._register(this.onDidChangeScreenReaderOptimized(()=>c()));let _=D_.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=_.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(_)}initReducedMotionListeners(i){this._register(Tr(i,"change",()=>{this._systemMotionReduced=i.matches,this._configMotionReduced==="auto"&&this._onDidChangeReducedMotion.fire()}));let o=()=>{let s=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",s),this._layoutService.mainContainer.classList.toggle("enable-motion",!s)};o(),this._register(this.onDidChangeReducedMotion(()=>o()))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){let i=this._configurationService.getValue("editor.accessibilitySupport");return i==="on"||i==="auto"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){let i=this._configMotionReduced;return i==="on"||i==="auto"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};xvt=PVi([cai(0,La),cai(1,KL),cai(2,gl)],xvt)});function LVi(l,i,o){let s=iyi(i)?i.submenu.id:i.id,c=typeof i.title=="string"?i.title:i.title.value,_=WK({id:`hide/${l.id}/${s}`,label:de("hide.label","Hide '{0}'",c),run(){o.updateHidden(l,s,!0)}}),h=WK({id:`toggle/${l.id}/${s}`,label:c,get checked(){return!o.isHidden(l,s)},run(){o.updateHidden(l,s,!!this.checked)}});return{hide:_,toggle:h,get isHidden(){return!h.checked}}}function dai(l,i=void 0,o,s){return WK({id:`configureKeybinding/${l}`,label:de("configure keybinding","Configure Keybinding"),run(){let _=!!!s.lookupKeybinding(l)&&i?i.serialize():void 0;o.executeCommand("workbench.action.openGlobalKeybindings",`@command:${l}`+(_?` +when:${_}`:""))}})}var wvt,XX,G3e,Jfe,Cvt,kvt,lai,uai,fai=Ht(()=>{Bu();Pa();$r();Vg();gg();du();Ew();sK();su();Fs();By();wvt=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},XX=function(l,i){return function(o,s){i(o,s,l)}},Cvt=class{constructor(i,o,s){this._commandService=i,this._keybindingService=o,this._hiddenStates=new kvt(s)}createMenu(i,o,s){return new uai(i,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...s},this._commandService,this._keybindingService,o)}resetHiddenStates(i){this._hiddenStates.reset(i)}};Cvt=wvt([XX(0,c_),XX(1,ju),XX(2,z2)],Cvt);kvt=G3e=class{constructor(i){this._storageService=i,this._disposables=new pr,this._onDidChange=new fn,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{let o=i.get(G3e._key,0,"{}");this._data=JSON.parse(o)}catch{this._data=Object.create(null)}this._disposables.add(i.onDidChangeValue(0,G3e._key,this._disposables)(()=>{if(!this._ignoreChangeEvent)try{let o=i.get(G3e._key,0,"{}");this._data=JSON.parse(o)}catch(o){console.log("FAILED to read storage after UPDATE",o)}this._onDidChange.fire()}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(i,o){var s;return(s=this._hiddenByDefaultCache.get(`${i.id}/${o}`))!==null&&s!==void 0?s:!1}setDefaultState(i,o,s){this._hiddenByDefaultCache.set(`${i.id}/${o}`,s)}isHidden(i,o){var s,c;let _=this._isHiddenByDefault(i,o),h=(c=(s=this._data[i.id])===null||s===void 0?void 0:s.includes(o))!==null&&c!==void 0?c:!1;return _?!h:h}updateHidden(i,o,s){this._isHiddenByDefault(i,o)&&(s=!s);let _=this._data[i.id];if(s)_?_.indexOf(o)<0&&_.push(o):this._data[i.id]=[o];else if(_){let h=_.indexOf(o);h>=0&&Zhi(_,h),_.length===0&&delete this._data[i.id]}this._persist()}reset(i){if(i===void 0)this._data=Object.create(null),this._persist();else{for(let{id:o}of i)this._data[o]&&delete this._data[o];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;let i=JSON.stringify(this._data);this._storageService.store(G3e._key,i,0,0)}finally{this._ignoreChangeEvent=!1}}};kvt._key="menu.hiddenCommands";kvt=G3e=wvt([XX(0,z2)],kvt);lai=Jfe=class{constructor(i,o,s,c,_,h){this._id=i,this._hiddenStates=o,this._collectContextKeysForSubmenus=s,this._commandService=c,this._keybindingService=_,this._contextKeyService=h,this._menuGroups=[],this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();let i=Rb.getMenuItems(this._id),o;i.sort(Jfe._compareMenuItems);for(let s of i){let c=s.group||"";(!o||o[0]!==c)&&(o=[c,[]],this._menuGroups.push(o)),o[1].push(s),this._collectContextKeys(s)}}_collectContextKeys(i){if(Jfe._fillInKbExprKeys(i.when,this._structureContextKeys),Nde(i)){if(i.command.precondition&&Jfe._fillInKbExprKeys(i.command.precondition,this._preconditionContextKeys),i.command.toggled){let o=i.command.toggled.condition||i.command.toggled;Jfe._fillInKbExprKeys(o,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&Rb.getMenuItems(i.submenu).forEach(this._collectContextKeys,this)}createActionGroups(i){let o=[];for(let s of this._menuGroups){let[c,_]=s,h;for(let b of _)if(this._contextKeyService.contextMatchesRules(b.when)){let w=Nde(b);w&&this._hiddenStates.setDefaultState(this._id,b.command.id,!!b.isHiddenByDefault);let D=LVi(this._id,w?b.command:b,this._hiddenStates);if(w){let O=dai(b.command.id,b.when,this._commandService,this._keybindingService);(h??(h=[])).push(new P2(b.command,b.alt,i,D,O,this._contextKeyService,this._commandService))}else{let O=new Jfe(b.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(i),j=bv.join(...O.map(F=>F[1]));j.length>0&&(h??(h=[])).push(new Qj(b,D,j))}}h&&h.length>0&&o.push([c,h])}return o}static _fillInKbExprKeys(i,o){if(i)for(let s of i.keys())o.add(s)}static _compareMenuItems(i,o){let s=i.group,c=o.group;if(s!==c){if(s){if(!c)return-1}else return 1;if(s==="navigation")return-1;if(c==="navigation")return 1;let b=s.localeCompare(c);if(b!==0)return b}let _=i.order||0,h=o.order||0;return _h?1:Jfe._compareTitles(Nde(i)?i.command.title:i.title,Nde(o)?o.command.title:o.title)}static _compareTitles(i,o){let s=typeof i=="string"?i:i.original,c=typeof o=="string"?o:o.original;return s.localeCompare(c)}};lai=Jfe=wvt([XX(3,c_),XX(4,ju),XX(5,La)],lai);uai=class{constructor(i,o,s,c,_,h){this._disposables=new pr,this._menuInfo=new lai(i,o,s.emitEventsForSubmenuChanges,c,_,h);let b=new Bd(()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})},s.eventDebounceDelay);this._disposables.add(b),this._disposables.add(Rb.onDidChangeMenu(j=>{j.has(i)&&b.schedule()}));let w=this._disposables.add(new pr),D=j=>{let F=!1,X=!1,K=!1;for(let re of j)if(F=F||re.isStructuralChange,X=X||re.isEnablementChange,K=K||re.isToggleChange,F&&X&&K)break;return{menu:this,isStructuralChange:F,isEnablementChange:X,isToggleChange:K}},O=()=>{w.add(h.onDidChangeContext(j=>{let F=j.affectsSome(this._menuInfo.structureContextKeys),X=j.affectsSome(this._menuInfo.preconditionContextKeys),K=j.affectsSome(this._menuInfo.toggledContextKeys);(F||X||K)&&this._onDidChange.fire({menu:this,isStructuralChange:F,isEnablementChange:X,isToggleChange:K})})),w.add(o.onDidChange(j=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})}))};this._onDidChange=new U4e({onWillAddFirstListener:O,onDidRemoveLastListener:w.clear.bind(w),delay:s.eventDebounceDelay,merge:D}),this.onDidChange=this._onDidChange.event}getActions(i){return this._menuInfo.createActionGroups(i)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};uai=wvt([XX(3,c_),XX(4,ju),XX(5,La)],uai)});var OVi,NEi,_ai,iat,AEi=Ht(()=>{RL();va();GA();Bu();Pa();wde();$r();nue();aL();OVi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},NEi=function(l,i){return function(o,s){i(o,s,l)}},iat=_ai=class extends Ui{constructor(i,o){super(),this.layoutService=i,this.logService=o,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(MF||qdt)&&this.installWebKitWriteTextWorkaround(),this._register(Yo.runAndSubscribe(ONe,({window:s,disposables:c})=>{c.add(Tr(s.document,"copy",()=>this.clearResources()))},{window:D_,disposables:this._store}))}installWebKitWriteTextWorkaround(){let i=()=>{let o=new $j;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=o,c6e().navigator.clipboard.write([new ClipboardItem({"text/plain":o.p})]).catch(async s=>{(!(s instanceof Error)||s.name!=="NotAllowedError"||!o.isRejected)&&this.logService.error(s)})};this._register(Yo.runAndSubscribe(this.layoutService.onDidAddContainer,({container:o,disposables:s})=>{s.add(Tr(o,"click",i)),s.add(Tr(o,"keydown",i))},{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(i,o){if(this.writeResources([]),o){this.mapTextToType.set(o,i);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(i);try{return await c6e().navigator.clipboard.writeText(i)}catch(s){console.error(s)}this.fallbackWriteText(i)}fallbackWriteText(i){let o=kle(),s=o.activeElement,c=o.body.appendChild(No("textarea",{"aria-hidden":!0}));c.style.height="1px",c.style.width="1px",c.style.position="absolute",c.value=i,c.focus(),c.select(),o.execCommand("copy"),Py(s)&&s.focus(),o.body.removeChild(c)}async readText(i){if(i)return this.mapTextToType.get(i)||"";try{return await c6e().navigator.clipboard.readText()}catch(o){console.error(o)}return""}async readFindText(){return this.findText}async writeFindText(i){this.findText=i}async writeResources(i){i.length===0?this.clearResources():(this.resources=i,this.resourcesStateHash=await this.computeResourcesStateHash())}async readResources(){let i=await this.computeResourcesStateHash();return this.resourcesStateHash!==i&&this.clearResources(),this.resources}async computeResourcesStateHash(){if(this.resources.length===0)return;let i=await this.readText();return kde(i.substring(0,_ai.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};iat.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3;iat=_ai=OVi([NEi(0,KL),NEi(1,Nv)],iat)});var wL,xue=Ht(()=>{kc();wL=Wc("clipboardService")});function RVi(l,i){return l.allKeysContainedIn(new Set(Object.keys(i)))}function BVi(l){for(;l;){if(l.hasAttribute(nat)){let i=l.getAttribute(nat);return i?parseInt(i,10):NaN}l=l.parentElement}return 0}function jVi(l,i,o){l.get(La).createKey(String(i),WVi(o))}function WVi(l){return mut(l,i=>{if(typeof i=="object"&&i.$mid===1)return Ka.revive(i).toString();if(i instanceof Ka)return i.toString()})}var FVi,MVi,nat,rat,qfe,Tvt,pai,Evt,Dvt,mai,Ivt,Nvt,hai,PEi=Ht(()=>{Pa();sP();$r();oP();x0t();Lh();Fs();gg();Rg();du();FVi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},MVi=function(l,i){return function(o,s){i(o,s,l)}},nat="data-keybinding-context",rat=class{constructor(i,o){this._id=i,this._parent=o,this._value=Object.create(null),this._value._contextId=i}get value(){return{...this._value}}setValue(i,o){return this._value[i]!==o?(this._value[i]=o,!0):!1}removeValue(i){return i in this._value?(delete this._value[i],!0):!1}getValue(i){let o=this._value[i];return typeof o>"u"&&this._parent?this._parent.getValue(i):o}},qfe=class extends rat{constructor(){super(-1,null)}setValue(i,o){return!1}removeValue(i){return!1}getValue(i){}};qfe.INSTANCE=new qfe;Tvt=class l extends rat{constructor(i,o,s){super(i,null),this._configurationService=o,this._values=sPe.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(c=>{if(c.source===7){let _=Array.from(this._values,([h])=>h);this._values.clear(),s.fire(new Dvt(_))}else{let _=[];for(let h of c.affectedKeys){let b=`config.${h}`,w=this._values.findSuperstr(b);w!==void 0&&(_.push(...jd.map(w,([D])=>D)),this._values.deleteSuperstr(b)),this._values.has(b)&&(_.push(b),this._values.delete(b))}s.fire(new Dvt(_))}})}dispose(){this._listener.dispose()}getValue(i){if(i.indexOf(l._keyPrefix)!==0)return super.getValue(i);if(this._values.has(i))return this._values.get(i);let o=i.substr(l._keyPrefix.length),s=this._configurationService.getValue(o),c;switch(typeof s){case"number":case"boolean":case"string":c=s;break;default:Array.isArray(s)?c=JSON.stringify(s):c=s}return this._values.set(i,c),c}setValue(i,o){return super.setValue(i,o)}removeValue(i){return super.removeValue(i)}};Tvt._keyPrefix="config.";pai=class{constructor(i,o,s){this._service=i,this._key=o,this._defaultValue=s,this.reset()}set(i){this._service.setContext(this._key,i)}reset(){typeof this._defaultValue>"u"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}},Evt=class{constructor(i){this.key=i}affectsSome(i){return i.has(this.key)}allKeysContainedIn(i){return this.affectsSome(i)}},Dvt=class{constructor(i){this.keys=i}affectsSome(i){for(let o of this.keys)if(i.has(o))return!0;return!1}allKeysContainedIn(i){return this.keys.every(o=>i.has(o))}},mai=class{constructor(i){this.events=i}affectsSome(i){for(let o of this.events)if(o.affectsSome(i))return!0;return!1}allKeysContainedIn(i){return this.events.every(o=>o.allKeysContainedIn(i))}};Ivt=class extends Ui{constructor(i){super(),this._onDidChangeContext=this._register(new XB({merge:o=>new mai(o)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=i}createKey(i,o){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new pai(this,i,o)}bufferChangeEvents(i){this._onDidChangeContext.pause();try{i()}finally{this._onDidChangeContext.resume()}}createScoped(i){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new hai(this,i)}contextMatchesRules(i){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");let o=this.getContextValuesContainer(this._myContextId);return i?i.evaluate(o):!0}getContextKeyValue(i){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(i)}setContext(i,o){if(this._isDisposed)return;let s=this.getContextValuesContainer(this._myContextId);s&&s.setValue(i,o)&&this._onDidChangeContext.fire(new Evt(i))}removeContext(i){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(i)&&this._onDidChangeContext.fire(new Evt(i))}getContext(i){return this._isDisposed?qfe.INSTANCE:this.getContextValuesContainer(BVi(i))}dispose(){super.dispose(),this._isDisposed=!0}},Nvt=class extends Ivt{constructor(i){super(0),this._contexts=new Map,this._lastContextId=0;let o=this._register(new Tvt(this._myContextId,i,this._onDidChangeContext));this._contexts.set(this._myContextId,o)}getContextValuesContainer(i){return this._isDisposed?qfe.INSTANCE:this._contexts.get(i)||qfe.INSTANCE}createChildContext(i=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let o=++this._lastContextId;return this._contexts.set(o,new rat(o,this.getContextValuesContainer(i))),o}disposeContext(i){this._isDisposed||this._contexts.delete(i)}};Nvt=FVi([MVi(0,gl)],Nvt);hai=class extends Ivt{constructor(i,o){if(super(i.createChildContext()),this._parentChangeListener=this._register(new Nh),this._parent=i,this._updateParentChangeListener(),this._domNode=o,this._domNode.hasAttribute(nat)){let s="";this._domNode.classList&&(s=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${s?": "+s:""}`)}this._domNode.setAttribute(nat,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(i=>{let s=this._parent.getContextValuesContainer(this._myContextId).value;RVi(i,s)||this._onDidChangeContext.fire(i)})}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(nat),super.dispose())}getContextValuesContainer(i){return this._isDisposed?qfe.INSTANCE:this._parent.getContextValuesContainer(i)}createChildContext(i=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(i)}disposeContext(i){this._isDisposed||this._parent.disposeContext(i)}};Ku.registerCommand("_setContext",jVi);Ku.registerCommand({id:"getContextKeyInfo",handler(){return[...Ms.all()].sort((l,i)=>l.key.localeCompare(i.key))},metadata:{description:de("getContextKeyInfo","A command that returns information about context keys"),args:[]}});Ku.registerCommand("_generateContextKeyInfo",function(){let l=[],i=new Set;for(let o of Ms.all())i.has(o.key)||(i.add(o.key),l.push(o));l.sort((o,s)=>o.key.localeCompare(s.key)),console.log(JSON.stringify(l,void 0,2))})});var gai,oat,LEi=Ht(()=>{gai=class{constructor(i,o){this.key=i,this.data=o,this.incoming=new Map,this.outgoing=new Map}},oat=class{constructor(i){this._hashFn=i,this._nodes=new Map}roots(){let i=[];for(let o of this._nodes.values())o.outgoing.size===0&&i.push(o);return i}insertEdge(i,o){let s=this.lookupOrInsertNode(i),c=this.lookupOrInsertNode(o);s.outgoing.set(c.key,c),c.incoming.set(s.key,s)}removeNode(i){let o=this._hashFn(i);this._nodes.delete(o);for(let s of this._nodes.values())s.outgoing.delete(o),s.incoming.delete(o)}lookupOrInsertNode(i){let o=this._hashFn(i),s=this._nodes.get(o);return s||(s=new gai(o,i),this._nodes.set(o,s)),s}isEmpty(){return this._nodes.size===0}toString(){let i=[];for(let[o,s]of this._nodes)i.push(`${o} + (-> incoming)[${[...s.incoming.keys()].join(", ")}] + (outgoing ->)[${[...s.outgoing.keys()].join(",")}] +`);return i.join(` +`)}findCycleSlow(){for(let[i,o]of this._nodes){let s=new Set([i]),c=this._findCycle(o,s);if(c)return c}}_findCycle(i,o){for(let[s,c]of i.outgoing){if(o.has(s))return[...o,s].join(" -> ");o.add(s);let _=this._findCycle(c,o);if(_)return _;o.delete(s)}}}});var zVi,Avt,Pvt,Cue,OEi=Ht(()=>{Bu();Pl();$r();Zft();LEi();kc();JLe();f7();zVi=!1,Avt=class extends Error{constructor(i){var o;super("cyclic dependency between services"),this.message=(o=i.findCycleSlow())!==null&&o!==void 0?o:`UNABLE to detect cycle, dumping graph: +${i.toString()}`}},Pvt=class l{constructor(i=new bW,o=!1,s,c=zVi){var _;this._services=i,this._strict=o,this._parent=s,this._enableTracing=c,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(qs,this),this._globalGraph=c?(_=s?._globalGraph)!==null&&_!==void 0?_:new oat(h=>h):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,a_(this._children),this._children.clear();for(let i of this._servicesToMaybeDispose)_de(i)&&i.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(i,o){this._throwIfDisposed();let s=this,c=new class extends l{dispose(){s._children.delete(c),super.dispose()}}(i,this._strict,this,this._enableTracing);return this._children.add(c),o?.add(c),c}invokeFunction(i,...o){this._throwIfDisposed();let s=Cue.traceInvocation(this._enableTracing,i),c=!1;try{return i({get:h=>{if(c)throw V4e("service accessor is only valid during the invocation of its target method");let b=this._getOrCreateServiceInstance(h,s);if(!b)throw new Error(`[invokeFunction] unknown service '${h}'`);return b}},...o)}finally{c=!0,s.stop()}}createInstance(i,...o){this._throwIfDisposed();let s,c;return i instanceof zF?(s=Cue.traceCreation(this._enableTracing,i.ctor),c=this._createInstance(i.ctor,i.staticArguments.concat(o),s)):(s=Cue.traceCreation(this._enableTracing,i),c=this._createInstance(i,o,s)),s.stop(),c}_createInstance(i,o=[],s){let c=Kj.getServiceDependencies(i).sort((b,w)=>b.index-w.index),_=[];for(let b of c){let w=this._getOrCreateServiceInstance(b.id,s);w||this._throwIfStrict(`[createInstance] ${i.name} depends on UNKNOWN service ${b.id}.`,!1),_.push(w)}let h=c.length>0?c[0].index:o.length;if(o.length!==h){console.trace(`[createInstance] First service dependency of ${i.name} at position ${h+1} conflicts with ${o.length} static arguments`);let b=h-o.length;b>0?o=o.concat(new Array(b)):o=o.slice(0,h)}return Reflect.construct(i,o.concat(_))}_setCreatedServiceInstance(i,o){if(this._services.get(i)instanceof zF)this._services.set(i,o);else if(this._parent)this._parent._setCreatedServiceInstance(i,o);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(i){let o=this._services.get(i);return!o&&this._parent?this._parent._getServiceInstanceOrDescriptor(i):o}_getOrCreateServiceInstance(i,o){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(i));let s=this._getServiceInstanceOrDescriptor(i);return s instanceof zF?this._safeCreateAndCacheServiceInstance(i,s,o.branch(i,!0)):(o.branch(i,!1),s)}_safeCreateAndCacheServiceInstance(i,o,s){if(this._activeInstantiations.has(i))throw new Error(`illegal state - RECURSIVELY instantiating service '${i}'`);this._activeInstantiations.add(i);try{return this._createAndCacheServiceInstance(i,o,s)}finally{this._activeInstantiations.delete(i)}}_createAndCacheServiceInstance(i,o,s){var c;let _=new oat(w=>w.id.toString()),h=0,b=[{id:i,desc:o,_trace:s}];for(;b.length;){let w=b.pop();if(_.lookupOrInsertNode(w),h++>1e3)throw new Avt(_);for(let D of Kj.getServiceDependencies(w.desc.ctor)){let O=this._getServiceInstanceOrDescriptor(D.id);if(O||this._throwIfStrict(`[createInstance] ${i} depends on ${D.id} which is NOT registered.`,!0),(c=this._globalGraph)===null||c===void 0||c.insertEdge(String(w.id),String(D.id)),O instanceof zF){let j={id:D.id,desc:O,_trace:w._trace.branch(D.id,!0)};_.insertEdge(w,j),b.push(j)}}}for(;;){let w=_.roots();if(w.length===0){if(!_.isEmpty())throw new Avt(_);break}for(let{data:D}of w){if(this._getServiceInstanceOrDescriptor(D.id)instanceof zF){let j=this._createServiceInstanceWithOwner(D.id,D.desc.ctor,D.desc.staticArguments,D.desc.supportsDelayedInstantiation,D._trace);this._setCreatedServiceInstance(D.id,j)}_.removeNode(D)}}return this._getServiceInstanceOrDescriptor(i)}_createServiceInstanceWithOwner(i,o,s=[],c,_){if(this._services.get(i)instanceof zF)return this._createServiceInstance(i,o,s,c,_,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(i,o,s,c,_);throw new Error(`illegalState - creating UNKNOWN service instance ${o.name}`)}_createServiceInstance(i,o,s=[],c,_,h){if(c){let b=new l(void 0,this._strict,this,this._enableTracing);b._globalGraphImplicitDependency=String(i);let w=new Map,D=new Zdt(()=>{let O=b._createInstance(o,s,_);for(let[j,F]of w){let X=O[j];if(typeof X=="function")for(let K of F)K.disposable=X.apply(O,K.listener)}return w.clear(),h.add(O),O});return new Proxy(Object.create(null),{get(O,j){if(!D.isInitialized&&typeof j=="string"&&(j.startsWith("onDid")||j.startsWith("onWill"))){let K=w.get(j);return K||(K=new L1,w.set(j,K)),(Pe,Le,Je)=>{if(D.isInitialized)return D.value[j](Pe,Le,Je);{let Ye={listener:[Pe,Le,Je],disposable:void 0},ft=K.push(Ye);return Qs(()=>{var Et;ft(),(Et=Ye.disposable)===null||Et===void 0||Et.dispose()})}}}if(j in O)return O[j];let F=D.value,X=F[j];return typeof X!="function"||(X=X.bind(F),O[j]=X),X},set(O,j,F){return D.value[j]=F,!0},getPrototypeOf(O){return o.prototype}})}else{let b=this._createInstance(o,s,_);return h.add(b),b}}_throwIfStrict(i,o){if(o&&console.warn(i),this._strict)throw new Error(i)}},Cue=class l{static traceInvocation(i,o){return i?new l(2,o.name||new Error().stack.split(` +`).slice(3,4).join(` +`)):l._None}static traceCreation(i,o){return i?new l(1,o.name):l._None}constructor(i,o){this.type=i,this.name=o,this._start=Date.now(),this._dep=[]}branch(i,o){let s=new l(3,i.toString());return this._dep.push([i,o,s]),s}stop(){let i=Date.now()-this._start;l._totals+=i;let o=!1;function s(_,h){let b=[],w=new Array(_+1).join(" ");for(let[D,O,j]of h._dep)if(O&&j){o=!0,b.push(`${w}CREATES -> ${D}`);let F=s(_+1,j);F&&b.push(F)}else b.push(`${w}uses -> ${D}`);return b.join(` +`)}let c=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${s(1,this)}`,`DONE, took ${i.toFixed(2)}ms (grand total ${l._totals.toFixed(2)}ms)`];(i>2||o)&&l.all.add(c.join(` +`))}};Cue.all=new Set;Cue._None=new class extends Cue{constructor(){super(0,null)}stop(){}branch(){return this}};Cue._totals=0});var VVi,yai,vai,Lvt,FEi=Ht(()=>{su();Pa();sP();UD();cI();Lh();WX();VVi=new Set([Kl.inMemory,Kl.vscodeSourceControl,Kl.walkThrough,Kl.walkThroughSnippet,Kl.vscodeChatCodeBlock,Kl.vscodeCopilotBackingChatCodeBlock]),yai=class{constructor(){this._byResource=new B1,this._byOwner=new Map}set(i,o,s){let c=this._byResource.get(i);c||(c=new Map,this._byResource.set(i,c)),c.set(o,s);let _=this._byOwner.get(o);_||(_=new B1,this._byOwner.set(o,_)),_.set(i,s)}get(i,o){let s=this._byResource.get(i);return s?.get(o)}delete(i,o){let s=!1,c=!1,_=this._byResource.get(i);_&&(s=_.delete(o));let h=this._byOwner.get(o);if(h&&(c=h.delete(i)),s!==c)throw new Error("illegal state");return s&&c}values(i){var o,s,c,_;return typeof i=="string"?(s=(o=this._byOwner.get(i))===null||o===void 0?void 0:o.values())!==null&&s!==void 0?s:jd.empty():Ka.isUri(i)?(_=(c=this._byResource.get(i))===null||c===void 0?void 0:c.values())!==null&&_!==void 0?_:jd.empty():jd.map(jd.concat(...this._byOwner.values()),h=>h[1])}},vai=class{constructor(i){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new B1,this._service=i,this._subscription=i.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(i){for(let o of i){let s=this._data.get(o);s&&this._substract(s);let c=this._resourceStats(o);this._add(c),this._data.set(o,c)}}_resourceStats(i){let o={errors:0,warnings:0,infos:0,unknowns:0};if(VVi.has(i.scheme))return o;for(let{severity:s}of this._service.read({resource:i}))s===Tv.Error?o.errors+=1:s===Tv.Warning?o.warnings+=1:s===Tv.Info?o.infos+=1:o.unknowns+=1;return o}_substract(i){this.errors-=i.errors,this.warnings-=i.warnings,this.infos-=i.infos,this.unknowns-=i.unknowns}_add(i){this.errors+=i.errors,this.warnings+=i.warnings,this.infos+=i.infos,this.unknowns+=i.unknowns}},Lvt=class l{constructor(){this._onMarkerChanged=new U4e({delay:0,merge:l._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new yai,this._stats=new vai(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(i,o){for(let s of o||[])this.changeOne(i,s,[])}changeOne(i,o,s){if(dut(s))this._data.delete(o,i)&&this._onMarkerChanged.fire([o]);else{let c=[];for(let _ of s){let h=l._toMarker(i,o,_);h&&c.push(h)}this._data.set(o,i,c),this._onMarkerChanged.fire([o])}}static _toMarker(i,o,s){let{code:c,severity:_,message:h,source:b,startLineNumber:w,startColumn:D,endLineNumber:O,endColumn:j,relatedInformation:F,tags:X}=s;if(h)return w=w>0?w:1,D=D>0?D:1,O=O>=w?O:w,j=j>0?j:D,{resource:o,owner:i,code:c,severity:_,message:h,source:b,startLineNumber:w,startColumn:D,endLineNumber:O,endColumn:j,relatedInformation:F,tags:X}}changeAll(i,o){let s=[],c=this._data.values(i);if(c)for(let _ of c){let h=jd.first(_);h&&(s.push(h.resource),this._data.delete(h.resource,i))}if(k1(o)){let _=new B1;for(let{resource:h,marker:b}of o){let w=l._toMarker(i,h,b);if(!w)continue;let D=_.get(h);D?D.push(w):(_.set(h,[w]),s.push(h))}for(let[h,b]of _)this._data.set(h,i,b)}s.length>0&&this._onMarkerChanged.fire(s)}read(i=Object.create(null)){let{owner:o,resource:s,severities:c,take:_}=i;if((!_||_<0)&&(_=-1),o&&s){let h=this._data.get(s,o);if(h){let b=[];for(let w of h)if(l._accept(w,c)){let D=b.push(w);if(_>0&&D===_)break}return b}else return[]}else if(!o&&!s){let h=[];for(let b of this._data.values())for(let w of b)if(l._accept(w,c)){let D=h.push(w);if(_>0&&D===_)return h}return h}else{let h=this._data.values(s??o),b=[];for(let w of h)for(let D of w)if(l._accept(D,c)){let O=b.push(D);if(_>0&&O===_)return b}return b}}static _accept(i,o){return o===void 0||(o&i.severity)===i.severity}static _merge(i){let o=new B1;for(let s of i)for(let c of s)o.set(c,!0);return Array.from(o.keys())}}});var Ovt,MEi=Ht(()=>{$r();Wri();UK();RC();Ovt=class extends Ui{get configurationModel(){return this._configurationModel}constructor(i){super(),this.logService=i,this._configurationModel=bP.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=bP.createEmptyModel(this.logService);let i=q_.as(uI.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(i),i)}updateConfigurationModel(i,o){let s=this.getConfigurationDefaultOverrides();for(let c of i){let _=s[c],h=o[c];_!==void 0?this._configurationModel.addValue(c,_):h?this._configurationModel.addValue(c,h.default):this._configurationModel.removeValue(c)}}}});var t7,IHn,Gu,bai,ad,$fe=Ht(()=>{Fs();kc();t7=Wc("accessibilitySignalService"),IHn=Symbol("AcknowledgeDocCommentsToken"),Gu=class l{static register(i){return new l(i.fileName)}constructor(i){this.fileName=i}};Gu.error=Gu.register({fileName:"error.mp3"});Gu.warning=Gu.register({fileName:"warning.mp3"});Gu.success=Gu.register({fileName:"success.mp3"});Gu.foldedArea=Gu.register({fileName:"foldedAreas.mp3"});Gu.break=Gu.register({fileName:"break.mp3"});Gu.quickFixes=Gu.register({fileName:"quickFixes.mp3"});Gu.taskCompleted=Gu.register({fileName:"taskCompleted.mp3"});Gu.taskFailed=Gu.register({fileName:"taskFailed.mp3"});Gu.terminalBell=Gu.register({fileName:"terminalBell.mp3"});Gu.diffLineInserted=Gu.register({fileName:"diffLineInserted.mp3"});Gu.diffLineDeleted=Gu.register({fileName:"diffLineDeleted.mp3"});Gu.diffLineModified=Gu.register({fileName:"diffLineModified.mp3"});Gu.chatRequestSent=Gu.register({fileName:"chatRequestSent.mp3"});Gu.chatResponseReceived1=Gu.register({fileName:"chatResponseReceived1.mp3"});Gu.chatResponseReceived2=Gu.register({fileName:"chatResponseReceived2.mp3"});Gu.chatResponseReceived3=Gu.register({fileName:"chatResponseReceived3.mp3"});Gu.chatResponseReceived4=Gu.register({fileName:"chatResponseReceived4.mp3"});Gu.clear=Gu.register({fileName:"clear.mp3"});Gu.save=Gu.register({fileName:"save.mp3"});Gu.format=Gu.register({fileName:"format.mp3"});Gu.voiceRecordingStarted=Gu.register({fileName:"voiceRecordingStarted.mp3"});Gu.voiceRecordingStopped=Gu.register({fileName:"voiceRecordingStopped.mp3"});Gu.progress=Gu.register({fileName:"progress.mp3"});bai=class{constructor(i){this.randomOneOf=i}},ad=class l{constructor(i,o,s,c,_,h,b){this.sound=i,this.name=o,this.legacySoundSettingsKey=s,this.settingsKey=c,this.legacyAnnouncementSettingsKey=_,this.announcementMessage=h,this.delaySettingsKey=b}static register(i){let o=new bai("randomOneOf"in i.sound?i.sound.randomOneOf:[i.sound]),s=new l(o,i.name,i.legacySoundSettingsKey,i.settingsKey,i.legacyAnnouncementSettingsKey,i.announcementMessage,i.delaySettingsKey);return l._signals.add(s),s}};ad._signals=new Set;ad.errorAtPosition=ad.register({name:de("accessibilitySignals.positionHasError.name","Error at Position"),sound:Gu.error,announcementMessage:de("accessibility.signals.positionHasError","Error"),settingsKey:"accessibility.signals.positionHasError",delaySettingsKey:"accessibility.signalOptions.delays.errorAtPosition"});ad.warningAtPosition=ad.register({name:de("accessibilitySignals.positionHasWarning.name","Warning at Position"),sound:Gu.warning,announcementMessage:de("accessibility.signals.positionHasWarning","Warning"),settingsKey:"accessibility.signals.positionHasWarning",delaySettingsKey:"accessibility.signalOptions.delays.warningAtPosition"});ad.errorOnLine=ad.register({name:de("accessibilitySignals.lineHasError.name","Error on Line"),sound:Gu.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:de("accessibility.signals.lineHasError","Error on Line"),settingsKey:"accessibility.signals.lineHasError"});ad.warningOnLine=ad.register({name:de("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:Gu.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:de("accessibility.signals.lineHasWarning","Warning on Line"),settingsKey:"accessibility.signals.lineHasWarning"});ad.foldedArea=ad.register({name:de("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:Gu.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:de("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"});ad.break=ad.register({name:de("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:Gu.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:de("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"});ad.inlineSuggestion=ad.register({name:de("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:Gu.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"});ad.terminalQuickFix=ad.register({name:de("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:Gu.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:de("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"});ad.onDebugBreak=ad.register({name:de("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:Gu.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:de("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"});ad.noInlayHints=ad.register({name:de("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:Gu.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:de("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"});ad.taskCompleted=ad.register({name:de("accessibilitySignals.taskCompleted","Task Completed"),sound:Gu.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:de("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"});ad.taskFailed=ad.register({name:de("accessibilitySignals.taskFailed","Task Failed"),sound:Gu.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:de("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"});ad.terminalCommandFailed=ad.register({name:de("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:Gu.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:de("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"});ad.terminalCommandSucceeded=ad.register({name:de("accessibilitySignals.terminalCommandSucceeded","Terminal Command Succeeded"),sound:Gu.success,announcementMessage:de("accessibility.signals.terminalCommandSucceeded","Command Succeeded"),settingsKey:"accessibility.signals.terminalCommandSucceeded"});ad.terminalBell=ad.register({name:de("accessibilitySignals.terminalBell","Terminal Bell"),sound:Gu.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:de("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"});ad.notebookCellCompleted=ad.register({name:de("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:Gu.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:de("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"});ad.notebookCellFailed=ad.register({name:de("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:Gu.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:de("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"});ad.diffLineInserted=ad.register({name:de("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:Gu.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"});ad.diffLineDeleted=ad.register({name:de("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:Gu.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"});ad.diffLineModified=ad.register({name:de("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:Gu.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"});ad.chatRequestSent=ad.register({name:de("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:Gu.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:de("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"});ad.chatResponseReceived=ad.register({name:de("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[Gu.chatResponseReceived1,Gu.chatResponseReceived2,Gu.chatResponseReceived3,Gu.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"});ad.progress=ad.register({name:de("accessibilitySignals.progress","Progress"),sound:Gu.progress,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.progress",announcementMessage:de("accessibility.signals.progress","Progress"),settingsKey:"accessibility.signals.progress"});ad.clear=ad.register({name:de("accessibilitySignals.clear","Clear"),sound:Gu.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:de("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"});ad.save=ad.register({name:de("accessibilitySignals.save","Save"),sound:Gu.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:de("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"});ad.format=ad.register({name:de("accessibilitySignals.format","Format"),sound:Gu.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:de("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"});ad.voiceRecordingStarted=ad.register({name:de("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:Gu.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"});ad.voiceRecordingStopped=ad.register({name:de("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:Gu.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})});var Fvt,REi=Ht(()=>{$r();aL();Fvt=class extends Ui{constructor(i,o=[]){super(),this.logger=new zft([i,...o]),this._register(i.onDidChangeLogLevel(s=>this.setLevel(s)))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(i){this.logger.setLevel(i)}getLevel(){return this.logger.getLevel()}trace(i,...o){this.logger.trace(i,...o)}debug(i,...o){this.logger.debug(i,...o)}info(i,...o){this.logger.info(i,...o)}warn(i,...o){this.logger.warn(i,...o)}error(i,...o){this.logger.error(i,...o)}}});function YX(l){BEi.push(l)}function jEi(){return BEi.slice(0)}var BEi,IPe=Ht(()=>{BEi=[]});function WEi(l){return l&&typeof l=="object"&&(!l.overrideIdentifier||typeof l.overrideIdentifier=="string")&&(!l.resource||l.resource instanceof Ka)}function sat(l,i,o){if(!i||!(l instanceof Bvt))return;let s=[];Object.keys(i).forEach(c=>{Twi(c)&&s.push([`editor.${c}`,i[c]]),o&&Ewi(c)&&s.push([`diffEditor.${c}`,i[c]])}),s.length>0&&l.updateValues(s)}var kue,V2,Sai,xai,Mvt,Cai,kai,wai,Rvt,Tai,Gfe,Eai,Bvt,Dai,Iai,Nai,jvt,Aai,Pai,Lai,Oai,Fai,Mai,Rai,Bai,Wu,Wvt=Ht(()=>{R1();Vni();Hni();hki();Cj();vki();Pki();kwi();Bl();va();jD();Pa();LNe();$r();uf();eue();Lh();oPe();_0t();A7();Ll();ca();XA();b7();mrt();gg();Rg();Wri();du();qLe();kc();Nwi();By();zri();wle();Vri();Fwi();s3e();QD();xW();dP();c3e();nue();PX();_I();$b();aL();Gri();yP();Ori();qwi();UTi();HD();qTi();gue();L_t();v2();XTi();z_t();YTi();_Ei();aai();DPe();IEi();fL();Vg();fai();AEi();xue();PEi();Zft();OEi();JLe();Gst();WX();FEi();bL();kL();sK();MEi();$fe();REi();IPe();Pl();Mgt();GA();UD();kue=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},V2=function(l,i){return function(o,s){i(o,s,l)}},Sai=class{constructor(i){this.disposed=!1,this.model=i,this._onWillDispose=new fn}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}},xai=class{constructor(i){this.modelService=i}createModelReference(i){let o=this.modelService.getModel(i);return o?Promise.resolve(new Tut(new Sai(o))):Promise.reject(new Error("Model not found"))}};xai=kue([V2(0,lm)],xai);Mvt=class l{show(){return l.NULL_PROGRESS_RUNNER}async showWhile(i,o){await i}};Mvt.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};Cai=class{withProgress(i,o,s){return o({report:()=>{}})}},kai=class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},wai=class{async confirm(i){return{confirmed:this.doConfirm(i.message,i.detail),checkboxChecked:!1}}doConfirm(i,o){let s=i;return o&&(s=s+` + +`+o),D_.confirm(s)}async prompt(i){var o,s;let c;if(this.doConfirm(i.message,i.detail)){let h=[...(o=i.buttons)!==null&&o!==void 0?o:[]];i.cancelButton&&typeof i.cancelButton!="string"&&typeof i.cancelButton!="boolean"&&h.push(i.cancelButton),c=await((s=h[0])===null||s===void 0?void 0:s.run({checkboxChecked:!1}))}return{result:c}}async error(i,o){await this.prompt({type:jy.Error,message:i,detail:o})}},Rvt=class l{info(i){return this.notify({severity:jy.Info,message:i})}warn(i){return this.notify({severity:jy.Warning,message:i})}error(i){return this.notify({severity:jy.Error,message:i})}notify(i){switch(i.severity){case jy.Error:console.error(i.message);break;case jy.Warning:console.warn(i.message);break;default:console.log(i.message);break}return l.NO_OP}prompt(i,o,s,c){return l.NO_OP}status(i,o){return Ui.None}};Rvt.NO_OP=new Tgt;Tai=class{constructor(i){this._onWillExecuteCommand=new fn,this._onDidExecuteCommand=new fn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=i}executeCommand(i,...o){let s=Ku.getCommand(i);if(!s)return Promise.reject(new Error(`command '${i}' not found`));try{this._onWillExecuteCommand.fire({commandId:i,args:o});let c=this._instantiationService.invokeFunction.apply(this._instantiationService,[s.handler,...o]);return this._onDidExecuteCommand.fire({commandId:i,args:o}),Promise.resolve(c)}catch(c){return Promise.reject(c)}}};Tai=kue([V2(0,qs)],Tai);Gfe=class extends g0t{constructor(i,o,s,c,_,h){super(i,o,s,c,_),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];let b=X=>{let K=new pr;K.add(Tr(X,$o.KEY_DOWN,re=>{let Pe=new w_(re);this._dispatch(Pe,Pe.target)&&(Pe.preventDefault(),Pe.stopPropagation())})),K.add(Tr(X,$o.KEY_UP,re=>{let Pe=new w_(re);this._singleModifierDispatch(Pe,Pe.target)&&Pe.preventDefault()})),this._domNodeListeners.push(new Eai(X,K))},w=X=>{for(let K=0;K{X.getOption(61)||b(X.getContainerDomNode())},O=X=>{X.getOption(61)||w(X.getContainerDomNode())};this._register(h.onCodeEditorAdd(D)),this._register(h.onCodeEditorRemove(O)),h.listCodeEditors().forEach(D);let j=X=>{b(X.getContainerDomNode())},F=X=>{w(X.getContainerDomNode())};this._register(h.onDiffEditorAdd(j)),this._register(h.onDiffEditorRemove(F)),h.listDiffEditors().forEach(j)}addDynamicKeybinding(i,o,s,c){return BD(Ku.registerCommand(i,s),this.addDynamicKeybindings([{keybinding:o,command:i,when:c}]))}addDynamicKeybindings(i){let o=i.map(s=>{var c;return{keybinding:Int(s.keybinding,xw),command:(c=s.command)!==null&&c!==void 0?c:null,commandArgs:s.commandArgs,when:s.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}});return this._dynamicKeybindings=this._dynamicKeybindings.concat(o),this.updateResolver(),Qs(()=>{for(let s=0;sthis._log(s))}return this._cachedResolver}_documentHasFocus(){return D_.document.hasFocus()}_toNormalizedKeybindingItems(i,o){let s=[],c=0;for(let _ of i){let h=_.when||void 0,b=_.keybinding;if(!b)s[c++]=new ast(void 0,_.command,_.commandArgs,h,o,null,!1);else{let w=cst.resolveKeybinding(b,xw);for(let D of w)s[c++]=new ast(D,_.command,_.commandArgs,h,o,null,!1)}}return s}resolveKeyboardEvent(i){let o=new tj(i.ctrlKey,i.shiftKey,i.altKey,i.metaKey,i.keyCode);return new cst([o],xw)}};Gfe=kue([V2(0,La),V2(1,c_),V2(2,Ly),V2(3,Em),V2(4,Nv),V2(5,$u)],Gfe);Eai=class extends Ui{constructor(i,o){super(),this.domNode=i,this._register(o)}};Bvt=class{constructor(i){this.logService=i,this._onDidChangeConfiguration=new fn,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;let o=new Ovt(i);this._configuration=new ost(o.reload(),bP.createEmptyModel(i),bP.createEmptyModel(i),bP.createEmptyModel(i),bP.createEmptyModel(i),bP.createEmptyModel(i),new B1,bP.createEmptyModel(i),new B1,i),o.dispose()}getValue(i,o){let s=typeof i=="string"?i:void 0,c=WEi(i)?i:WEi(o)?o:{};return this._configuration.getValue(s,c,void 0)}updateValues(i){let o={data:this._configuration.toData()},s=[];for(let c of i){let[_,h]=c;this.getValue(_)!==h&&(this._configuration.updateValue(_,h),s.push(_))}if(s.length>0){let c=new m0t({keys:s,overrides:[]},o,this._configuration,void 0,this.logService);c.source=8,this._onDidChangeConfiguration.fire(c)}return Promise.resolve()}updateValue(i,o,s,c){return this.updateValues([[i,o]])}inspect(i,o={}){return this._configuration.inspect(i,o,void 0)}};Bvt=kue([V2(0,Nv)],Bvt);Dai=class{constructor(i,o,s){this.configurationService=i,this.modelService=o,this.languageService=s,this._onDidChangeConfiguration=new fn,this.configurationService.onDidChangeConfiguration(c=>{this._onDidChangeConfiguration.fire({affectedKeys:c.affectedKeys,affectsConfiguration:(_,h)=>c.affectsConfiguration(h)})})}getValue(i,o,s){let c=Cn.isIPosition(o)?o:null,_=c?typeof s=="string"?s:void 0:typeof o=="string"?o:void 0,h=i?this.getLanguage(i,c):void 0;return typeof _>"u"?this.configurationService.getValue({resource:i,overrideIdentifier:h}):this.configurationService.getValue(_,{resource:i,overrideIdentifier:h})}getLanguage(i,o){let s=this.modelService.getModel(i);return s?o?s.getLanguageIdAtPosition(o.lineNumber,o.column):s.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(i)}};Dai=kue([V2(0,gl),V2(1,lm),V2(2,up)],Dai);Iai=class{constructor(i){this.configurationService=i}getEOL(i,o){let s=this.configurationService.getValue("files.eol",{overrideIdentifier:o,resource:i});return s&&typeof s=="string"&&s!=="auto"?s:w1||uu?` +`:`\r +`}};Iai=kue([V2(0,gl)],Iai);Nai=class{publicLog2(){}},jvt=class l{constructor(){let i=Ka.from({scheme:l.SCHEME,authority:"model",path:"/"});this.workspace={id:$ri,folders:[new C0t({uri:i,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(i){return i&&i.scheme===l.SCHEME?this.workspace.folders[0]:null}};jvt.SCHEME="inmemory";Aai=class{constructor(i){this._modelService=i}hasPreviewHandler(){return!1}async apply(i,o){let s=Array.isArray(i)?i:i3e.convert(i),c=new Map;for(let b of s){if(!(b instanceof Ife))throw new Error("bad edit - only text edits are supported");let w=this._modelService.getModel(b.resource);if(!w)throw new Error("bad edit - model not found");if(typeof b.versionId=="number"&&w.getVersionId()!==b.versionId)throw new Error("bad state - model changed in the meantime");let D=c.get(w);D||(D=[],c.set(w,D)),D.push(eh.replaceMove(Vt.lift(b.textEdit.range),b.textEdit.text))}let _=0,h=0;for(let[b,w]of c)b.pushStackElement(),b.pushEditOperations([],w,()=>[]),b.pushStackElement(),h+=1,_+=w.length;return{ariaSummary:QB(I0t.bulkEditServiceSummary,_,h),isApplied:_>0}}};Aai=kue([V2(0,lm)],Aai);Pai=class{getUriLabel(i,o){return i.scheme==="file"?i.fsPath:i.path}getUriBasenameLabel(i){return YD(i)}},Lai=class extends c0t{constructor(i,o){super(i),this._codeEditorService=o}showContextView(i,o,s){if(!o){let c=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();c&&(o=c.getContainerDomNode())}return super.showContextView(i,o,s)}};Lai=kue([V2(0,KL),V2(1,$u)],Lai);Oai=class{constructor(){this._neverEmitter=new fn,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},Fai=class extends pst{constructor(){super()}},Mai=class extends Fvt{constructor(){super(new Wft)}},Rai=class extends lyt{constructor(i,o,s,c,_,h){super(i,o,s,c,_,h),this.configure({blockMouse:!1})}};Rai=kue([V2(0,Ly),V2(1,Em),V2(2,vL),V2(3,ju),V2(4,Dw),V2(5,La)],Rai);Bai=class{async playSignal(i,o){}};Ld(Nv,Mai,0);Ld(gl,Bvt,0);Ld(P6e,Dai,0);Ld(N_t,Iai,0);Ld(nK,jvt,0);Ld(iK,Pai,0);Ld(Ly,Nai,0);Ld(CX,wai,0);Ld(XLe,kai,0);Ld(Em,Rvt,0);Ld(ZL,Lvt,0);Ld(up,Fai,0);Ld(yI,Svt,0);Ld(lm,Nst,0);Ld(z6e,fyt,0);Ld(La,Nvt,0);Ld(S0t,Cai,0);Ld(XF,Mvt,0);Ld(z2,eyt,0);Ld(eI,A_t,0);Ld(AX,Aai,0);Ld(N0t,Oai,0);Ld(XS,xai,0);Ld(YS,xvt,0);Ld(QF,Jyt,0);Ld(c_,Tai,0);Ld(ju,Gfe,0);Ld(hw,mvt,0);Ld(vL,Lai,0);Ld(Gb,dyt,0);Ld(wL,iat,0);Ld(IC,Rai,0);Ld(Dw,Cvt,0);Ld(t7,Bai,0);(function(l){let i=new bW;for(let[w,D]of OZt())i.set(w,D);let o=new Pvt(i,!0);i.set(qs,o);function s(w){c||h({});let D=i.get(w);if(!D)throw new Error("Missing service "+w);return D instanceof zF?o.invokeFunction(O=>O.get(w)):D}l.get=s;let c=!1,_=new fn;function h(w){if(c)return o;c=!0;for(let[O,j]of OZt())i.get(O)||i.set(O,j);for(let O in w)if(w.hasOwnProperty(O)){let j=Wc(O);i.get(j)instanceof zF&&i.set(j,w[O])}let D=jEi();for(let O of D)try{o.createInstance(O)}catch(j){Sc(j)}return _.fire(),o}l.initialize=h;function b(w){if(c)return w();let D=new pr,O=D.add(_.event(()=>{O.dispose(),D.add(w())}));return D}l.withServices=b})(Wu||(Wu={}))});var zEi=Ht(()=>{});var i3,NPe=Ht(()=>{i3=class l{static capture(i){if(i.getScrollTop()===0||i.hasPendingScrollAnimation())return new l(i.getScrollTop(),i.getContentHeight(),null,0,null);let o=null,s=0,c=i.getVisibleRanges();if(c.length>0){o=c[0].getStartPosition();let _=i.getTopForPosition(o.lineNumber,o.column);s=i.getScrollTop()-_}return new l(i.getScrollTop(),i.getContentHeight(),o,s,i.getPosition())}constructor(i,o,s,c,_){this._initialScrollTop=i,this._initialContentHeight=o,this._visiblePosition=s,this._visiblePositionScrollDelta=c,this._cursorPosition=_}restore(i){if(!(this._initialContentHeight===i.getContentHeight()&&this._initialScrollTop===i.getScrollTop())&&this._visiblePosition){let o=i.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);i.setScrollTop(o+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(i){if(this._initialContentHeight===i.getContentHeight()&&this._initialScrollTop===i.getScrollTop())return;let o=i.getPosition();if(!this._cursorPosition||!o)return;let s=i.getTopForLineNumber(o.lineNumber)-i.getTopForLineNumber(this._cursorPosition.lineNumber);i.setScrollTop(i.getScrollTop()+s,1)}}});function Vvt(){return mnt&&!!mnt.VSCODE_DEV}function jai(l){if(Vvt()){let i=HVi();return i.add(l),{dispose(){i.delete(l)}}}else return{dispose(){}}}function HVi(){zvt||(zvt=new Set);let l=globalThis;return l.$hotReload_applyNewExports||(l.$hotReload_applyNewExports=i=>{let o={config:{mode:void 0},...i};for(let s of zvt){let c=s(o);if(c)return c}}),zvt}var zvt,VEi=Ht(()=>{mQt();Vvt()&&jai(({oldExports:l,newSrc:i,config:o})=>{if(o.mode==="patch-prototype")return s=>{var c,_;for(let h in s){let b=s[h];if(console.log(`[hot-reload] Patching prototype methods of '${h}'`,{exportedItem:b}),typeof b=="function"&&b.prototype){let w=l[h];if(w){for(let D of Object.getOwnPropertyNames(b.prototype)){let O=Object.getOwnPropertyDescriptor(b.prototype,D),j=Object.getOwnPropertyDescriptor(w.prototype,D);((c=O?.value)===null||c===void 0?void 0:c.toString())!==((_=j?.value)===null||_===void 0?void 0:_.toString())&&console.log(`[hot-reload] Patching prototype method '${h}.${D}'`),Object.defineProperty(w.prototype,D,O)}s[h]=w}}}return!0}})});function HEi(l,i,o,s){if(l.length===0)return i;if(i.length===0)return l;let c=[],_=0,h=0;for(;_O?(c.push(w),h++):(c.push(s(b,w)),_++,h++)}for(;_`Apply decorations from ${i.debugName}`},c=>{let _=i.read(c);s.set(_)})),o.add({dispose:()=>{s.clear()}}),o}function APe(l,i){return l.appendChild(i),Qs(()=>{l.removeChild(i)})}function UEi(l,i){return l.prepend(i),Qs(()=>{l.removeChild(i)})}function Wai(l,i,o){let s=i.get(),c=s,_=s,h=yd("animatedValue",s),b=-1,w=300,D;o.add(RX({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(j,F)=>(j.didChange(i)&&(F.animate=F.animate||j.change),!0)},(j,F)=>{D!==void 0&&(l.cancelAnimationFrame(D),D=void 0),c=_,s=i.read(j),b=Date.now()-(F.animate?0:w),O()}));function O(){let j=Date.now()-b;_=Math.floor(UVi(j,c,s-c,w)),j{for(let[s,c]of Object.entries(i))c&&typeof c=="object"&&"read"in c&&(c=c.read(o)),typeof c=="number"&&(c=`${c}px`),s=s.replace(/[A-Z]/g,_=>"-"+_.toLowerCase()),l.style[s]=c})}function i7(l,i){return JVi([l],i),l}function JVi(l,i){Vvt()&&ix("reload",s=>jai(({oldExports:c})=>{if([...Object.values(c)].some(_=>l.includes(_)))return _=>(s(void 0),!0)})).read(i)}function Q3e(l,i,o,s){let c=new pr,_=[];return c.add(VC((h,b)=>{let w=i.read(h),D=new Map,O=new Map;o&&o(!0),l.changeViewZones(j=>{for(let F of _)j.removeZone(F),s?.delete(F);_.length=0;for(let F of w){let X=j.addZone(F);F.setZoneId&&F.setZoneId(X),_.push(X),s?.add(X),D.set(F,X)}}),o&&o(!1),b.add(RX({createEmptyChangeSummary(){return{zoneIds:[]}},handleChange(j,F){let X=O.get(j.changedObservable);return X!==void 0&&F.zoneIds.push(X),!0}},(j,F)=>{for(let X of w)X.onChange&&(O.set(X.onChange,D.get(X)),X.onChange.read(j));o&&o(!0),l.changeViewZones(X=>{for(let K of F.zoneIds)X.layoutZone(K)}),o&&o(!1)}))})),c.add({dispose(){o&&o(!0),l.changeViewZones(h=>{for(let b of _)h.removeZone(b)}),s?.clear(),o&&o(!1)}}),c}function zai(l,i){let o=Ple(i,c=>c.original.startLineNumber<=l.lineNumber);if(!o)return Vt.fromPositions(l);if(o.original.endLineNumberExclusive<=l.lineNumber){let c=l.lineNumber-o.original.endLineNumberExclusive+o.modified.endLineNumberExclusive;return Vt.fromPositions(new Cn(c,l.column))}if(!o.innerChanges)return Vt.fromPositions(new Cn(o.modified.startLineNumber,1));let s=Ple(o.innerChanges,c=>c.originalRange.getStartPosition().isBeforeOrEqual(l));if(!s){let c=l.lineNumber-o.original.startLineNumber+o.modified.startLineNumber;return Vt.fromPositions(new Cn(c,l.column))}if(s.originalRange.containsPosition(l))return s.modifiedRange;{let c=qVi(s.originalRange.getEndPosition(),l);return Vt.fromPositions(c.addToPosition(s.modifiedRange.getEndPosition()))}}function qVi(l,i){return l.lineNumber===i.lineNumber?new O2(0,i.column-l.column):new O2(i.lineNumber-l.lineNumber,i.column-1)}function JEi(l,i){let o;return l.filter(s=>{let c=i(s,o);return o=s,c})}var K3e,X3e,Kfe,Hvt,Uvt,Oj=Ht(()=>{VF();am();VEi();$r();O0();jei();Ll();ca();Ole();K3e=class extends Ui{get width(){return this._width}get height(){return this._height}get automaticLayout(){return this._automaticLayout}constructor(i,o){super(),this._automaticLayout=!1,this.elementSizeObserver=this._register(new V6e(i,o)),this._width=yd(this,this.elementSizeObserver.getWidth()),this._height=yd(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange(s=>fp(c=>{this._width.set(this.elementSizeObserver.getWidth(),c),this._height.set(this.elementSizeObserver.getHeight(),c)})))}observe(i){this.elementSizeObserver.observe(i)}setAutomaticLayout(i){this._automaticLayout=i,i?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}};X3e=class extends Ui{constructor(i,o,s){super(),this._register(new Hvt(i,s)),this._register(Lj(s,{height:o.actualHeight,top:o.actualTop}))}},Kfe=class{get afterLineNumber(){return this._afterLineNumber.get()}constructor(i,o){this._afterLineNumber=i,this.heightInPx=o,this.domNode=document.createElement("div"),this._actualTop=yd(this,void 0),this._actualHeight=yd(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=s=>{this._actualTop.set(s,void 0)},this.onComputedHeight=s=>{this._actualHeight.set(s,void 0)}}},Hvt=class l{constructor(i,o){this._editor=i,this._domElement=o,this._overlayWidgetId=`managedOverlayWidget-${l._counter++}`,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}};Hvt._counter=0;Uvt=class extends k_{dispose(){super.dispose(!0)}}});var qEi=Ht(()=>{});function XVi(l,i,o){let s=[];for(let c of P4e(l,(_,h)=>h.modified.startLineNumber-_.modified.endLineNumberExclusive<2*aat)){let _=[];_.push(new Uai);let h=new Iu(Math.max(1,c[0].original.startLineNumber-aat),Math.min(c[c.length-1].original.endLineNumberExclusive+aat,i+1)),b=new Iu(Math.max(1,c[0].modified.startLineNumber-aat),Math.min(c[c.length-1].modified.endLineNumberExclusive+aat,o+1));uut(c,(O,j)=>{let F=new Iu(O?O.original.endLineNumberExclusive:h.startLineNumber,j?j.original.startLineNumber:h.endLineNumberExclusive),X=new Iu(O?O.modified.endLineNumberExclusive:b.startLineNumber,j?j.modified.startLineNumber:b.endLineNumberExclusive);F.forEach(K=>{_.push(new $ai(K,X.startLineNumber+(K-F.startLineNumber)))}),j&&(j.original.forEach(K=>{_.push(new Jai(j,K))}),j.modified.forEach(K=>{_.push(new qai(j,K))}))});let w=c[0].modified.join(c[c.length-1].modified),D=c[0].original.join(c[c.length-1].original);s.push(new Hai(new pP(w,D),_))}return s}var Kai,Xai,$Vi,GVi,KVi,wue,Vai,aat,TL,Hai,Uai,Jai,qai,$ai,Gai,Jvt,$Ei=Ht(()=>{va();VK();Ij();vj();Ew();su();Og();$r();O0();P0();v7();Oj();FC();lL();HL();Ll();ca();$K();v2();eW();qde();tW();Fs();$fe();kc();R7();qEi();Kai=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Xai=function(l,i){return function(o,s){i(o,s,l)}},$Vi=Bg("diff-review-insert",Xo.add,de("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),GVi=Bg("diff-review-remove",Xo.remove,de("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),KVi=Bg("diff-review-close",Xo.close,de("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer.")),wue=class extends Ui{constructor(i,o,s,c,_,h,b,w,D){super(),this._parentNode=i,this._visible=o,this._setVisible=s,this._canClose=c,this._width=_,this._height=h,this._diffs=b,this._models=w,this._instantiationService=D,this._state=YF(this,(O,j)=>{let F=this._visible.read(O);if(this._parentNode.style.visibility=F?"visible":"hidden",!F)return null;let X=j.add(this._instantiationService.createInstance(Vai,this._diffs,this._models,this._setVisible,this._canClose)),K=j.add(this._instantiationService.createInstance(Gai,this._parentNode,X,this._width,this._height,this._models));return{model:X,view:K}}).recomputeInitiallyAndOnChange(this._store)}next(){fp(i=>{let o=this._visible.get();this._setVisible(!0,i),o&&this._state.get().model.nextGroup(i)})}prev(){fp(i=>{this._setVisible(!0,i),this._state.get().model.previousGroup(i)})}close(){fp(i=>{this._setVisible(!1,i)})}};wue._ttPolicy=fP("diffReview",{createHTML:l=>l});wue=Kai([Xai(8,qs)],wue);Vai=class extends Ui{constructor(i,o,s,c,_){super(),this._diffs=i,this._models=o,this._setVisible=s,this.canClose=c,this._accessibilitySignalService=_,this._groups=yd(this,[]),this._currentGroupIdx=yd(this,0),this._currentElementIdx=yd(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map((h,b)=>this._groups.read(b)[h]),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map((h,b)=>{var w;return(w=this.currentGroup.read(b))===null||w===void 0?void 0:w.lines[h]}),this._register(au(h=>{let b=this._diffs.read(h);if(!b){this._groups.set([],void 0);return}let w=XVi(b,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());fp(D=>{let O=this._models.getModifiedPosition();if(O){let j=w.findIndex(F=>O?.lineNumber{let b=this.currentElement.read(h);b?.type===TL.Deleted?this._accessibilitySignalService.playSignal(ad.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):b?.type===TL.Added&&this._accessibilitySignalService.playSignal(ad.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})})),this._register(au(h=>{var b;let w=this.currentElement.read(h);if(w&&w.type!==TL.Header){let D=(b=w.modifiedLineNumber)!==null&&b!==void 0?b:w.diff.modified.startLineNumber;this._models.modifiedSetSelection(Vt.fromPositions(new Cn(D,1)))}}))}_goToGroupDelta(i,o){let s=this.groups.get();!s||s.length<=1||FX(o,c=>{this._currentGroupIdx.set(Wd.ofLength(s.length).clipCyclic(this._currentGroupIdx.get()+i),c),this._currentElementIdx.set(0,c)})}nextGroup(i){this._goToGroupDelta(1,i)}previousGroup(i){this._goToGroupDelta(-1,i)}_goToLineDelta(i){let o=this.currentGroup.get();!o||o.lines.length<=1||fp(s=>{this._currentElementIdx.set(Wd.ofLength(o.lines.length).clip(this._currentElementIdx.get()+i),s)})}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(i){let o=this.currentGroup.get();if(!o)return;let s=o.lines.indexOf(i);s!==-1&&fp(c=>{this._currentElementIdx.set(s,c)})}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);let i=this.currentElement.get();i&&(i.type===TL.Deleted?this._models.originalReveal(Vt.fromPositions(new Cn(i.originalLineNumber,1))):this._models.modifiedReveal(i.type!==TL.Header?Vt.fromPositions(new Cn(i.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};Vai=Kai([Xai(4,t7)],Vai);aat=3;(function(l){l[l.Header=0]="Header",l[l.Unchanged=1]="Unchanged",l[l.Deleted=2]="Deleted",l[l.Added=3]="Added"})(TL||(TL={}));Hai=class{constructor(i,o){this.range=i,this.lines=o}},Uai=class{constructor(){this.type=TL.Header}},Jai=class{constructor(i,o){this.diff=i,this.originalLineNumber=o,this.type=TL.Deleted,this.modifiedLineNumber=void 0}},qai=class{constructor(i,o){this.diff=i,this.modifiedLineNumber=o,this.type=TL.Added,this.originalLineNumber=void 0}},$ai=class{constructor(i,o){this.originalLineNumber=i,this.modifiedLineNumber=o,this.type=TL.Unchanged}},Gai=class extends Ui{constructor(i,o,s,c,_,h){super(),this._element=i,this._model=o,this._width=s,this._height=c,this._models=_,this._languageService=h,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";let b=document.createElement("div");b.className="diff-review-actions",this._actionBar=this._register(new NC(b)),this._register(au(w=>{this._actionBar.clear(),this._model.canClose.read(w)&&this._actionBar.push(new EC("diffreview.close",de("label.close","Close"),"close-diff-review "+uc.asClassName(KVi),!0,async()=>o.close()),{label:!1,icon:!0})})),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new pW(this._content,{})),N1(this.domNode,this._scrollbar.getDomNode(),b),this._register(au(w=>{this._height.read(w),this._width.read(w),this._scrollbar.scanDomNode()})),this._register(Qs(()=>{N1(this.domNode)})),this._register(Lj(this.domNode,{width:this._width,height:this._height})),this._register(Lj(this._content,{width:this._width,height:this._height})),this._register(VC((w,D)=>{this._model.currentGroup.read(w),this._render(D)})),this._register(Cm(this.domNode,"keydown",w=>{(w.equals(18)||w.equals(2066)||w.equals(530))&&(w.preventDefault(),this._model.goToNextLine()),(w.equals(16)||w.equals(2064)||w.equals(528))&&(w.preventDefault(),this._model.goToPreviousLine()),(w.equals(9)||w.equals(2057)||w.equals(521)||w.equals(1033))&&(w.preventDefault(),this._model.close()),(w.equals(10)||w.equals(3))&&(w.preventDefault(),this._model.revealCurrentElementInEditor())}))}_render(i){let o=this._models.getOriginalOptions(),s=this._models.getModifiedOptions(),c=document.createElement("div");c.className="diff-review-table",c.setAttribute("role","list"),c.setAttribute("aria-label",de("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),Iv(c,s.get(50)),N1(this._content,c);let _=this._models.getOriginalModel(),h=this._models.getModifiedModel();if(!_||!h)return;let b=_.getOptions(),w=h.getOptions(),D=s.get(67),O=this._model.currentGroup.get();for(let j of O?.lines||[]){if(!O)break;let F;if(j.type===TL.Header){let K=document.createElement("div");K.className="diff-review-row",K.setAttribute("role","listitem");let re=O.range,Pe=this._model.currentGroupIndex.get(),Le=this._model.groups.get().length,Je=Et=>Et===0?de("no_lines_changed","no lines changed"):Et===1?de("one_line_changed","1 line changed"):de("more_lines_changed","{0} lines changed",Et),Ye=Je(re.original.length),ft=Je(re.modified.length);K.setAttribute("aria-label",de({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",Pe+1,Le,re.original.startLineNumber,Ye,re.modified.startLineNumber,ft));let Ct=document.createElement("div");Ct.className="diff-review-cell diff-review-summary",Ct.appendChild(document.createTextNode(`${Pe+1}/${Le}: @@ -${re.original.startLineNumber},${re.original.length} +${re.modified.startLineNumber},${re.modified.length} @@`)),K.appendChild(Ct),F=K}else F=this._createRow(j,D,this._width.get(),o,_,b,s,h,w);c.appendChild(F);let X=jl(K=>this._model.currentElement.read(K)===j);i.add(au(K=>{let re=X.read(K);F.tabIndex=re?0:-1,re&&F.focus()})),i.add(Tr(F,"focus",()=>{this._model.goToLine(j)}))}this._scrollbar.scanDomNode()}_createRow(i,o,s,c,_,h,b,w,D){let O=c.get(145),j=O.glyphMarginWidth+O.lineNumbersWidth,F=b.get(145),X=10+F.glyphMarginWidth+F.lineNumbersWidth,K="diff-review-row",re="",Pe="diff-review-spacer",Le=null;switch(i.type){case TL.Added:K="diff-review-row line-insert",re=" char-insert",Le=$Vi;break;case TL.Deleted:K="diff-review-row line-delete",re=" char-delete",Le=GVi;break}let Je=document.createElement("div");Je.style.minWidth=s+"px",Je.className=K,Je.setAttribute("role","listitem"),Je.ariaLevel="";let Ye=document.createElement("div");Ye.className="diff-review-cell",Ye.style.height=`${o}px`,Je.appendChild(Ye);let ft=document.createElement("span");ft.style.width=j+"px",ft.style.minWidth=j+"px",ft.className="diff-review-line-number"+re,i.originalLineNumber!==void 0?ft.appendChild(document.createTextNode(String(i.originalLineNumber))):ft.innerText="\xA0",Ye.appendChild(ft);let Ct=document.createElement("span");Ct.style.width=X+"px",Ct.style.minWidth=X+"px",Ct.style.paddingRight="10px",Ct.className="diff-review-line-number"+re,i.modifiedLineNumber!==void 0?Ct.appendChild(document.createTextNode(String(i.modifiedLineNumber))):Ct.innerText="\xA0",Ye.appendChild(Ct);let Et=document.createElement("span");if(Et.className=Pe,Le){let zi=document.createElement("span");zi.className=uc.asClassName(Le),zi.innerText="\xA0\xA0",Et.appendChild(zi)}else Et.innerText="\xA0\xA0";Ye.appendChild(Et);let St;if(i.modifiedLineNumber!==void 0){let zi=this._getLineHtml(w,b,D.tabSize,i.modifiedLineNumber,this._languageService.languageIdCodec);wue._ttPolicy&&(zi=wue._ttPolicy.createHTML(zi)),Ye.insertAdjacentHTML("beforeend",zi),St=w.getLineContent(i.modifiedLineNumber)}else{let zi=this._getLineHtml(_,c,h.tabSize,i.originalLineNumber,this._languageService.languageIdCodec);wue._ttPolicy&&(zi=wue._ttPolicy.createHTML(zi)),Ye.insertAdjacentHTML("beforeend",zi),St=_.getLineContent(i.originalLineNumber)}St.length===0&&(St=de("blankLine","blank"));let Mi="";switch(i.type){case TL.Unchanged:i.originalLineNumber===i.modifiedLineNumber?Mi=de({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",St,i.originalLineNumber):Mi=de("equalLine","{0} original line {1} modified line {2}",St,i.originalLineNumber,i.modifiedLineNumber);break;case TL.Added:Mi=de("insertLine","+ {0} modified line {1}",St,i.modifiedLineNumber);break;case TL.Deleted:Mi=de("deleteLine","- {0} original line {1}",St,i.originalLineNumber);break}return Je.setAttribute("aria-label",Mi),Je}_getLineHtml(i,o,s,c,_){let h=i.getLineContent(c),b=o.get(50),w=jb.createEmpty(h,_),D=dL.isBasicASCII(h,i.mightContainNonBasicASCII()),O=dL.containsRTL(h,D,i.mightContainRTL());return M6e(new JL(b.isMonospace&&!o.get(33),b.canUseHalfwidthRightwardsArrow,h,!1,D,O,0,w,[],s,0,b.spaceWidth,b.middotWidth,b.wsmiddotWidth,o.get(117),o.get(99),o.get(94),o.get(51)!==AF.OFF,null)).html}};Gai=Kai([Xai(5,up)],Gai);Jvt=class{constructor(i){this.editors=i}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(i){this.editors.original.revealRange(i),this.editors.original.setSelection(i),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(i){i&&(this.editors.modified.revealRange(i),this.editors.modified.setSelection(i)),this.editors.modified.focus()}modifiedSetSelection(i){this.editors.modified.setSelection(i)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){var i;return(i=this.editors.modified.getPosition())!==null&&i!==void 0?i:void 0}}});var Tue,Yai,qvt,Qai=Ht(()=>{va();Ij();Ew();su();VF();Og();$r();O0();P0();Oj();HL();Fs();Tue=class l extends Ui{constructor(i,o,s,c,_){super(),this._rootElement=i,this._diffModel=o,this._originalEditorLayoutInfo=s,this._modifiedEditorLayoutInfo=c,this._editors=_,this._originalScrollTop=E_(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=E_(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=ix("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=yd(this,0),this._modifiedViewZonesChangedSignal=ix("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=ix("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=YF(this,(O,j)=>{var F;this._element.replaceChildren();let X=this._diffModel.read(O),K=(F=X?.diff.read(O))===null||F===void 0?void 0:F.movedTexts;if(!K||K.length===0){this.width.set(0,void 0);return}this._viewZonesChanged.read(O);let re=this._originalEditorLayoutInfo.read(O),Pe=this._modifiedEditorLayoutInfo.read(O);if(!re||!Pe){this.width.set(0,void 0);return}this._modifiedViewZonesChangedSignal.read(O),this._originalViewZonesChangedSignal.read(O);let Le=K.map(Mi=>{function zi(wc,Uo){let tc=Uo.getTopForLineNumber(wc.startLineNumber,!0),vo=Uo.getTopForLineNumber(wc.endLineNumberExclusive,!0);return(tc+vo)/2}let Vr=zi(Mi.lineRangeMapping.original,this._editors.original),sn=this._originalScrollTop.read(O),gr=zi(Mi.lineRangeMapping.modified,this._editors.modified),er=this._modifiedScrollTop.read(O),Di=Vr-sn,rs=gr-er,Ls=Math.min(Vr,gr),_i=Math.max(Vr,gr);return{range:new Wd(Ls,_i),from:Di,to:rs,fromWithoutScroll:Vr,toWithoutScroll:gr,move:Mi}});Le.sort(igi(Sw(Mi=>Mi.fromWithoutScroll>Mi.toWithoutScroll,ngi),Sw(Mi=>Mi.fromWithoutScroll>Mi.toWithoutScroll?Mi.fromWithoutScroll:-Mi.toWithoutScroll,rP)));let Je=Yai.compute(Le.map(Mi=>Mi.range)),Ye=10,ft=re.verticalScrollbarWidth,Ct=(Je.getTrackCount()-1)*10+Ye*2,Et=ft+Ct+(Pe.contentLeft-l.movedCodeBlockPadding),St=0;for(let Mi of Le){let zi=Je.getTrack(St),Vr=ft+Ye+zi*10,sn=15,gr=15,er=Et,Di=Pe.glyphMarginWidth+Pe.lineNumbersWidth,rs=18,Ls=document.createElementNS("http://www.w3.org/2000/svg","rect");Ls.classList.add("arrow-rectangle"),Ls.setAttribute("x",`${er-Di}`),Ls.setAttribute("y",`${Mi.to-rs/2}`),Ls.setAttribute("width",`${Di}`),Ls.setAttribute("height",`${rs}`),this._element.appendChild(Ls);let _i=document.createElementNS("http://www.w3.org/2000/svg","g"),wc=document.createElementNS("http://www.w3.org/2000/svg","path");wc.setAttribute("d",`M 0 ${Mi.from} L ${Vr} ${Mi.from} L ${Vr} ${Mi.to} L ${er-gr} ${Mi.to}`),wc.setAttribute("fill","none"),_i.appendChild(wc);let Uo=document.createElementNS("http://www.w3.org/2000/svg","polygon");Uo.classList.add("arrow"),j.add(au(tc=>{wc.classList.toggle("currentMove",Mi.move===X.activeMovedText.read(tc)),Uo.classList.toggle("currentMove",Mi.move===X.activeMovedText.read(tc))})),Uo.setAttribute("points",`${er-gr},${Mi.to-sn/2} ${er},${Mi.to} ${er-gr},${Mi.to+sn/2}`),_i.appendChild(Uo),this._element.appendChild(_i),St++}this.width.set(Ct,void 0)}),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register(Qs(()=>this._element.remove())),this._register(au(O=>{let j=this._originalEditorLayoutInfo.read(O),F=this._modifiedEditorLayoutInfo.read(O);!j||!F||(this._element.style.left=`${j.width-j.verticalScrollbarWidth}px`,this._element.style.height=`${j.height}px`,this._element.style.width=`${j.verticalScrollbarWidth+j.contentLeft-l.movedCodeBlockPadding+this.width.read(O)}px`)})),this._register(BX(this._state));let h=jl(O=>{let j=this._diffModel.read(O),F=j?.diff.read(O);return F?F.movedTexts.map(X=>({move:X,original:new Kfe(tP(X.lineRangeMapping.original.startLineNumber-1),18),modified:new Kfe(tP(X.lineRangeMapping.modified.startLineNumber-1),18)})):[]});this._register(Q3e(this._editors.original,h.map(O=>O.map(j=>j.original)))),this._register(Q3e(this._editors.modified,h.map(O=>O.map(j=>j.modified)))),this._register(VC((O,j)=>{let F=h.read(O);for(let X of F)j.add(new qvt(this._editors.original,X.original,X.move,"original",this._diffModel.get())),j.add(new qvt(this._editors.modified,X.modified,X.move,"modified",this._diffModel.get()))}));let b=ix("original.onDidFocusEditorWidget",O=>this._editors.original.onDidFocusEditorWidget(()=>setTimeout(()=>O(void 0),0))),w=ix("modified.onDidFocusEditorWidget",O=>this._editors.modified.onDidFocusEditorWidget(()=>setTimeout(()=>O(void 0),0))),D="modified";this._register(RX({createEmptyChangeSummary:()=>{},handleChange:(O,j)=>(O.didChange(b)&&(D="original"),O.didChange(w)&&(D="modified"),!0)},O=>{b.read(O),w.read(O);let j=this._diffModel.read(O);if(!j)return;let F=j.diff.read(O),X;if(F&&D==="original"){let K=this._editors.originalCursor.read(O);K&&(X=F.movedTexts.find(re=>re.lineRangeMapping.original.contains(K.lineNumber)))}if(F&&D==="modified"){let K=this._editors.modifiedCursor.read(O);K&&(X=F.movedTexts.find(re=>re.lineRangeMapping.modified.contains(K.lineNumber)))}X!==j.movedTextToCompare.get()&&j.movedTextToCompare.set(void 0,void 0),j.setActiveMovedText(X)}))}};Tue.movedCodeBlockPadding=4;Yai=class l{static compute(i){let o=[],s=[];for(let c of i){let _=o.findIndex(h=>!h.intersectsStrict(c));_===-1&&(o.length>=6?_=Gyi(o,Sw(b=>b.intersectWithRangeLength(c),rP)):(_=o.length,o.push(new x_t))),o[_].addRange(c),s.push(_)}return new l(o.length,s)}constructor(i,o){this._trackCount=i,this.trackPerLineIdx=o}getTrack(i){return this.trackPerLineIdx[i]}getTrackCount(){return this._trackCount}},qvt=class extends X3e{constructor(i,o,s,c,_){let h=T_("div.diff-hidden-lines-widget");super(i,o,h.root),this._editor=i,this._move=s,this._kind=c,this._diffModel=_,this._nodes=T_("div.diff-moved-code-block",{style:{marginRight:"4px"}},[T_("div.text-content@textContent"),T_("div.action-bar@actionBar")]),h.root.appendChild(this._nodes.root);let b=E_(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._register(Lj(this._nodes.root,{paddingRight:b.map(F=>F.verticalScrollbarWidth)}));let w;s.changes.length>0?w=this._kind==="original"?de("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):de("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):w=this._kind==="original"?de("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):de("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);let D=this._register(new NC(this._nodes.actionBar,{highlightToggledItems:!0})),O=new EC("",w,"",!1);D.push(O,{icon:!1,label:!0});let j=new EC("","Compare",uc.asClassName(Xo.compareChanges),!0,()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===s?void 0:this._move,void 0)});this._register(au(F=>{let X=this._diffModel.movedTextToCompare.read(F)===s;j.checked=X})),D.push(j,{icon:!1,label:!0})}}});var Fqn,Mqn,Rqn,YVi,Zai,eci,tci,ici,nci,rci,GEi,KEi,cat,XEi,YEi,lat=Ht(()=>{Og();P0();DC();Fs();Sv();R7();Fqn=cn("diffEditor.move.border",{dark:"#8b8b8b9c",light:"#8b8b8b9c",hcDark:"#8b8b8b9c",hcLight:"#8b8b8b9c"},de("diffEditor.move.border","The border color for text that got moved in the diff editor.")),Mqn=cn("diffEditor.moveActive.border",{dark:"#FFA500",light:"#FFA500",hcDark:"#FFA500",hcLight:"#FFA500"},de("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),Rqn=cn("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},de("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets.")),YVi=Bg("diff-insert",Xo.add,de("diffInsertIcon","Line decoration for inserts in the diff editor.")),Zai=Bg("diff-remove",Xo.remove,de("diffRemoveIcon","Line decoration for removals in the diff editor.")),eci=eu.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+uc.asClassName(YVi),marginClassName:"gutter-insert"}),tci=eu.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+uc.asClassName(Zai),marginClassName:"gutter-delete"}),ici=eu.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),nci=eu.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),rci=eu.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),GEi=eu.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),KEi=eu.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),cat=eu.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),XEi=eu.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),YEi=eu.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})});var $vt,QEi=Ht(()=>{$r();O0();Qai();lat();Oj();$vt=class extends Ui{constructor(i,o,s,c){super(),this._editors=i,this._diffModel=o,this._options=s,this._decorations=jl(this,_=>{var h;let b=(h=this._diffModel.read(_))===null||h===void 0?void 0:h.diff.read(_);if(!b)return null;let w=this._diffModel.read(_).movedTextToCompare.read(_),D=this._options.renderIndicators.read(_),O=this._options.showEmptyDecorations.read(_),j=[],F=[];if(!w)for(let K of b.mappings)if(K.lineRangeMapping.original.isEmpty||j.push({range:K.lineRangeMapping.original.toInclusiveRange(),options:D?tci:nci}),K.lineRangeMapping.modified.isEmpty||F.push({range:K.lineRangeMapping.modified.toInclusiveRange(),options:D?eci:ici}),K.lineRangeMapping.modified.isEmpty||K.lineRangeMapping.original.isEmpty)K.lineRangeMapping.original.isEmpty||j.push({range:K.lineRangeMapping.original.toInclusiveRange(),options:XEi}),K.lineRangeMapping.modified.isEmpty||F.push({range:K.lineRangeMapping.modified.toInclusiveRange(),options:GEi});else for(let re of K.lineRangeMapping.innerChanges||[])K.lineRangeMapping.original.contains(re.originalRange.startLineNumber)&&j.push({range:re.originalRange,options:re.originalRange.isEmpty()&&O?YEi:cat}),K.lineRangeMapping.modified.contains(re.modifiedRange.startLineNumber)&&F.push({range:re.modifiedRange,options:re.modifiedRange.isEmpty()&&O?KEi:rci});if(w)for(let K of w.changes){let re=K.original.toInclusiveRange();re&&j.push({range:re,options:D?tci:nci});let Pe=K.modified.toInclusiveRange();Pe&&F.push({range:Pe,options:D?eci:ici});for(let Le of K.innerChanges||[])j.push({range:Le.originalRange,options:cat}),F.push({range:Le.modifiedRange,options:rci})}let X=this._diffModel.read(_).activeMovedText.read(_);for(let K of b.movedTexts)j.push({range:K.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(K===X?" currentMove":""),blockPadding:[Tue.movedCodeBlockPadding,0,Tue.movedCodeBlockPadding,Tue.movedCodeBlockPadding]}}),F.push({range:K.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(K===X?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:j,modifiedDecorations:F}}),this._register(Y3e(this._editors.original,this._decorations.map(_=>_?.originalDecorations||[]))),this._register(Y3e(this._editors.modified,this._decorations.map(_=>_?.modifiedDecorations||[])))}}});var Gvt,Z3e,oci=Ht(()=>{B3e();$r();O0();Lfe();Gvt=class{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(i,o){this._options=i,this.dimensions=o,this.sashLeft=H0t(this,s=>{var c;let _=(c=this._sashRatio.read(s))!==null&&c!==void 0?c:this._options.splitViewDefaultRatio.read(s);return this._computeSashLeft(_,s)},(s,c)=>{let _=this.dimensions.width.get();this._sashRatio.set(s/_,c)}),this._sashRatio=yd(this,void 0)}_computeSashLeft(i,o){let s=this.dimensions.width.read(o),c=Math.floor(this._options.splitViewDefaultRatio.read(o)*s),_=this._options.enableSplitViewResizing.read(o)?Math.floor(i*s):c,h=100;return s<=h*2?c:_s-h?s-h:_}},Z3e=class extends Ui{constructor(i,o,s,c,_,h){super(),this._domNode=i,this._dimensions=o,this._enabled=s,this._boundarySashes=c,this.sashLeft=_,this._resetSash=h,this._sash=this._register(new e3(this._domNode,{getVerticalSashTop:b=>0,getVerticalSashLeft:b=>this.sashLeft.get(),getVerticalSashHeight:b=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart(()=>{this._startSashPosition=this.sashLeft.get()})),this._register(this._sash.onDidChange(b=>{this.sashLeft.set(this._startSashPosition+(b.currentX-b.startX),void 0)})),this._register(this._sash.onDidEnd(()=>this._sash.layout())),this._register(this._sash.onDidReset(()=>this._resetSash())),this._register(au(b=>{let w=this._boundarySashes.read(b);w&&(this._sash.orthogonalEndSash=w.bottom)})),this._register(au(b=>{let w=this._enabled.read(b);this._sash.state=w?3:0,this.sashLeft.read(b),this._dimensions.height.read(b),this._sash.layout()}))}}});var ZEi,sci,PPe,cci,aci,Kvt,eDi=Ht(()=>{HD();kc();Pa();rL();lL();$K();gue();dP();ZEi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},sci=function(l,i){return function(o,s){i(o,s,l)}},cci=Wc("diffProviderFactoryService"),aci=class{constructor(i){this.instantiationService=i}createDiffProvider(i){return this.instantiationService.createInstance(Kvt,i)}};aci=ZEi([sci(0,qs)],aci);Ld(cci,aci,1);Kvt=PPe=class{constructor(i,o,s){this.editorWorkerService=o,this.telemetryService=s,this.onDidChangeEventEmitter=new fn,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(i)}dispose(){var i;(i=this.diffAlgorithmOnDidChangeSubscription)===null||i===void 0||i.dispose()}async computeDiff(i,o,s,c){var _,h;if(typeof this.diffAlgorithm!="string")return this.diffAlgorithm.computeDiff(i,o,s,c);if(i.isDisposed()||o.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(i.getLineCount()===1&&i.getLineMaxColumn(1)===1)return o.getLineCount()===1&&o.getLineMaxColumn(1)===1?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new mP(new Iu(1,2),new Iu(1,o.getLineCount()+1),[new UL(i.getFullModelRange(),o.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};let b=JSON.stringify([i.uri.toString(),o.uri.toString()]),w=JSON.stringify([i.id,o.id,i.getAlternativeVersionId(),o.getAlternativeVersionId(),JSON.stringify(s)]),D=PPe.diffCache.get(b);if(D&&D.context===w)return D.result;let O=A0.create(),j=await this.editorWorkerService.computeDiff(i.uri,o.uri,s,this.diffAlgorithm),F=O.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:F,timedOut:(_=j?.quitEarly)!==null&&_!==void 0?_:!0,detectedMoves:s.computeMoves?(h=j?.moves.length)!==null&&h!==void 0?h:0:-1}),c.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!j)throw new Error("no diff result available");return PPe.diffCache.size>10&&PPe.diffCache.delete(PPe.diffCache.keys().next().value),PPe.diffCache.set(b,{result:j,context:w}),j}setOptions(i){var o;let s=!1;i.diffAlgorithm&&this.diffAlgorithm!==i.diffAlgorithm&&((o=this.diffAlgorithmOnDidChangeSubscription)===null||o===void 0||o.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=i.diffAlgorithm,typeof i.diffAlgorithm!="string"&&(this.diffAlgorithmOnDidChangeSubscription=i.diffAlgorithm.onDidChange(()=>this.onDidChangeEventEmitter.fire())),s=!0),s&&this.onDidChangeEventEmitter.fire()}};Kvt.diffCache=new Map;Kvt=PPe=ZEi([sci(1,eI),sci(2,Ly)],Kvt)});function eHi(l,i,o){return{changes:l.changes.map(s=>new mP(s.original,s.modified,s.innerChanges?s.innerChanges.map(c=>tHi(c,i,o)):void 0)),moves:l.moves,identical:l.identical,quitEarly:l.quitEarly}}function tHi(l,i,o){let s=l.originalRange,c=l.modifiedRange;return(s.endColumn!==1||c.endColumn!==1)&&s.endColumn===i.getLineMaxColumn(s.endLineNumber)&&c.endColumn===o.getLineMaxColumn(c.endLineNumber)&&s.endLineNumber{Bu();am();$r();O0();eDi();Oj();lL();hei();$K();sot();Eii();mei();cm();su();Yj();QVi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},ZVi=function(l,i){return function(o,s){i(o,s,l)}},Xvt=class extends Ui{setActiveMovedText(i){this._activeMovedText.set(i,void 0)}constructor(i,o,s){super(),this.model=i,this._options=o,this._diffProviderFactoryService=s,this._isDiffUpToDate=yd(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=yd(this,void 0),this.diff=this._diff,this._unchangedRegions=yd(this,void 0),this.unchangedRegions=jl(this,b=>{var w,D;return this._options.hideUnchangedRegions.read(b)?(D=(w=this._unchangedRegions.read(b))===null||w===void 0?void 0:w.regions)!==null&&D!==void 0?D:[]:(fp(O=>{var j;for(let F of((j=this._unchangedRegions.get())===null||j===void 0?void 0:j.regions)||[])F.collapseAll(O)}),[])}),this.movedTextToCompare=yd(this,void 0),this._activeMovedText=yd(this,void 0),this._hoveredMovedText=yd(this,void 0),this.activeMovedText=jl(this,b=>{var w,D;return(D=(w=this.movedTextToCompare.read(b))!==null&&w!==void 0?w:this._hoveredMovedText.read(b))!==null&&D!==void 0?D:this._activeMovedText.read(b)}),this._cancellationTokenSource=new k_,this._diffProvider=jl(this,b=>{let w=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(b)}),D=ix("onDidChange",w.onDidChange);return{diffProvider:w,onChangeSignal:D}}),this._register(Qs(()=>this._cancellationTokenSource.cancel()));let c=fue("contentChangedSignal"),_=this._register(new Bd(()=>c.trigger(void 0),200));this._register(au(b=>{let w=this._unchangedRegions.read(b);if(!w||w.regions.some(K=>K.isDragged.read(b)))return;let D=w.originalDecorationIds.map(K=>i.original.getDecorationRange(K)).map(K=>K?Iu.fromRangeInclusive(K):void 0),O=w.modifiedDecorationIds.map(K=>i.modified.getDecorationRange(K)).map(K=>K?Iu.fromRangeInclusive(K):void 0),j=w.regions.map((K,re)=>!D[re]||!O[re]?void 0:new eOe(D[re].startLineNumber,O[re].startLineNumber,D[re].length,K.visibleLineCountTop.read(b),K.visibleLineCountBottom.read(b))).filter(IF),F=[],X=!1;for(let K of P4e(j,(re,Pe)=>re.getHiddenModifiedRange(b).endLineNumberExclusive===Pe.getHiddenModifiedRange(b).startLineNumber))if(K.length>1){X=!0;let re=K.reduce((Le,Je)=>Le+Je.lineCount,0),Pe=new eOe(K[0].originalLineNumber,K[0].modifiedLineNumber,re,K[0].visibleLineCountTop.get(),K[K.length-1].visibleLineCountBottom.get());F.push(Pe)}else F.push(K[0]);if(X){let K=i.original.deltaDecorations(w.originalDecorationIds,F.map(Pe=>({range:Pe.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),re=i.modified.deltaDecorations(w.modifiedDecorationIds,F.map(Pe=>({range:Pe.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));fp(Pe=>{this._unchangedRegions.set({regions:F,originalDecorationIds:K,modifiedDecorationIds:re},Pe)})}}));let h=(b,w,D)=>{let O=eOe.fromDiffs(b.changes,i.original.getLineCount(),i.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(D),this._options.hideUnchangedRegionsContextLineCount.read(D)),j,F=this._unchangedRegions.get();if(F){let Pe=F.originalDecorationIds.map(ft=>i.original.getDecorationRange(ft)).map(ft=>ft?Iu.fromRangeInclusive(ft):void 0),Le=F.modifiedDecorationIds.map(ft=>i.modified.getDecorationRange(ft)).map(ft=>ft?Iu.fromRangeInclusive(ft):void 0),Ye=JEi(F.regions.map((ft,Ct)=>{if(!Pe[Ct]||!Le[Ct])return;let Et=Pe[Ct].length;return new eOe(Pe[Ct].startLineNumber,Le[Ct].startLineNumber,Et,Math.min(ft.visibleLineCountTop.get(),Et),Math.min(ft.visibleLineCountBottom.get(),Et-ft.visibleLineCountTop.get()))}).filter(IF),(ft,Ct)=>!Ct||ft.modifiedLineNumber>=Ct.modifiedLineNumber+Ct.lineCount&&ft.originalLineNumber>=Ct.originalLineNumber+Ct.lineCount).map(ft=>new pP(ft.getHiddenOriginalRange(D),ft.getHiddenModifiedRange(D)));Ye=pP.clip(Ye,Iu.ofLength(1,i.original.getLineCount()),Iu.ofLength(1,i.modified.getLineCount())),j=pP.inverse(Ye,i.original.getLineCount(),i.modified.getLineCount())}let X=[];if(j)for(let Pe of O){let Le=j.filter(Je=>Je.original.intersectsStrict(Pe.originalUnchangedRange)&&Je.modified.intersectsStrict(Pe.modifiedUnchangedRange));X.push(...Pe.setVisibleRanges(Le,w))}else X.push(...O);let K=i.original.deltaDecorations(F?.originalDecorationIds||[],X.map(Pe=>({range:Pe.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),re=i.modified.deltaDecorations(F?.modifiedDecorationIds||[],X.map(Pe=>({range:Pe.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));this._unchangedRegions.set({regions:X,originalDecorationIds:K,modifiedDecorationIds:re},w)};this._register(i.modified.onDidChangeContent(b=>{if(this._diff.get()){let D=yW.fromModelContentChanges(b.changes),O=(this._lastDiff,i.original,i.modified,void 0);O&&(this._lastDiff=O,fp(j=>{this._diff.set(uat.fromDiffResult(this._lastDiff),j),h(O,j);let F=this.movedTextToCompare.get();this.movedTextToCompare.set(F?this._lastDiff.moves.find(X=>X.lineRangeMapping.modified.intersect(F.lineRangeMapping.modified)):void 0,j)}))}this._isDiffUpToDate.set(!1,void 0),_.schedule()})),this._register(i.original.onDidChangeContent(b=>{if(this._diff.get()){let D=yW.fromModelContentChanges(b.changes),O=(this._lastDiff,i.original,i.modified,void 0);O&&(this._lastDiff=O,fp(j=>{this._diff.set(uat.fromDiffResult(this._lastDiff),j),h(O,j);let F=this.movedTextToCompare.get();this.movedTextToCompare.set(F?this._lastDiff.moves.find(X=>X.lineRangeMapping.modified.intersect(F.lineRangeMapping.modified)):void 0,j)}))}this._isDiffUpToDate.set(!1,void 0),_.schedule()})),this._register(VC(async(b,w)=>{var D,O;this._options.hideUnchangedRegionsMinimumLineCount.read(b),this._options.hideUnchangedRegionsContextLineCount.read(b),_.cancel(),c.read(b);let j=this._diffProvider.read(b);j.onChangeSignal.read(b),i7(A6e,b),i7(drt,b),this._isDiffUpToDate.set(!1,void 0);let F=[];w.add(i.original.onDidChangeContent(re=>{let Pe=yW.fromModelContentChanges(re.changes);F=LLe(F,Pe)}));let X=[];w.add(i.modified.onDidChangeContent(re=>{let Pe=yW.fromModelContentChanges(re.changes);X=LLe(X,Pe)}));let K=await j.diffProvider.computeDiff(i.original,i.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(b),maxComputationTimeMs:this._options.maxComputationTimeMs.read(b),computeMoves:this._options.showMoves.read(b)},this._cancellationTokenSource.token);this._cancellationTokenSource.token.isCancellationRequested||i.original.isDisposed()||i.modified.isDisposed()||(K=eHi(K,i.original,i.modified),K=(D=(i.original,i.modified,void 0))!==null&&D!==void 0?D:K,K=(O=(i.original,i.modified,void 0))!==null&&O!==void 0?O:K,fp(re=>{h(K,re),this._lastDiff=K;let Pe=uat.fromDiffResult(K);this._diff.set(Pe,re),this._isDiffUpToDate.set(!0,re);let Le=this.movedTextToCompare.get();this.movedTextToCompare.set(Le?this._lastDiff.moves.find(Je=>Je.lineRangeMapping.modified.intersect(Le.lineRangeMapping.modified)):void 0,re)}))}))}ensureModifiedLineIsVisible(i,o,s){var c,_;if(((c=this.diff.get())===null||c===void 0?void 0:c.mappings.length)===0)return;let h=((_=this._unchangedRegions.get())===null||_===void 0?void 0:_.regions)||[];for(let b of h)if(b.getHiddenModifiedRange(void 0).contains(i)){b.showModifiedLine(i,o,s);return}}ensureOriginalLineIsVisible(i,o,s){var c,_;if(((c=this.diff.get())===null||c===void 0?void 0:c.mappings.length)===0)return;let h=((_=this._unchangedRegions.get())===null||_===void 0?void 0:_.regions)||[];for(let b of h)if(b.getHiddenOriginalRange(void 0).contains(i)){b.showOriginalLine(i,o,s);return}}async waitForDiff(){await Sst(this.isDiffUpToDate,i=>i)}serializeState(){let i=this._unchangedRegions.get();return{collapsedRegions:i?.regions.map(o=>({range:o.getHiddenModifiedRange(void 0).serialize()}))}}restoreSerializedState(i){var o;let s=(o=i.collapsedRegions)===null||o===void 0?void 0:o.map(_=>Iu.deserialize(_.range)),c=this._unchangedRegions.get();!c||!s||fp(_=>{for(let h of c.regions)for(let b of s)if(h.modifiedUnchangedRange.intersect(b)){h.setHiddenModifiedRange(b,_);break}})}};Xvt=QVi([ZVi(2,cci)],Xvt);uat=class l{static fromDiffResult(i){return new l(i.changes.map(o=>new dat(o)),i.moves||[],i.identical,i.quitEarly)}constructor(i,o,s,c){this.mappings=i,this.movedTexts=o,this.identical=s,this.quitEarly=c}},dat=class{constructor(i){this.lineRangeMapping=i}},eOe=class l{static fromDiffs(i,o,s,c,_){let h=mP.inverse(i,o,s),b=[];for(let w of h){let D=w.original.startLineNumber,O=w.modified.startLineNumber,j=w.original.length,F=D===1&&O===1,X=D+j===o+1&&O+j===s+1;(F||X)&&j>=_+c?(F&&!X&&(j-=_),X&&!F&&(D+=_,O+=_,j-=_),b.push(new l(D,O,j,0,0))):j>=_*2+c&&(D+=_,O+=_,j-=_*2,b.push(new l(D,O,j,0,0)))}return b}get originalUnchangedRange(){return Iu.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return Iu.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(i,o,s,c,_){this.originalLineNumber=i,this.modifiedLineNumber=o,this.lineCount=s,this._visibleLineCountTop=yd(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=yd(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=jl(this,w=>this.visibleLineCountTop.read(w)+this.visibleLineCountBottom.read(w)===this.lineCount&&!this.isDragged.read(w)),this.isDragged=yd(this,void 0);let h=Math.max(Math.min(c,this.lineCount),0),b=Math.max(Math.min(_,this.lineCount-c),0);cZt(c===h),cZt(_===b),this._visibleLineCountTop.set(h,void 0),this._visibleLineCountBottom.set(b,void 0)}setVisibleRanges(i,o){let s=[],c=new uj(i.map(w=>w.modified)).subtractFrom(this.modifiedUnchangedRange),_=this.originalLineNumber,h=this.modifiedLineNumber,b=this.modifiedLineNumber+this.lineCount;if(c.ranges.length===0)this.showAll(o),s.push(this);else{let w=0;for(let D of c.ranges){let O=w===c.ranges.length-1;w++;let j=(O?b:D.endLineNumberExclusive)-h,F=new l(_,h,j,0,0);F.setHiddenModifiedRange(D,o),s.push(F),_=F.originalUnchangedRange.endLineNumberExclusive,h=F.modifiedUnchangedRange.endLineNumberExclusive}}return s}shouldHideControls(i){return this._shouldHideControls.read(i)}getHiddenOriginalRange(i){return Iu.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(i),this.lineCount-this._visibleLineCountTop.read(i)-this._visibleLineCountBottom.read(i))}getHiddenModifiedRange(i){return Iu.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(i),this.lineCount-this._visibleLineCountTop.read(i)-this._visibleLineCountBottom.read(i))}setHiddenModifiedRange(i,o){let s=i.startLineNumber-this.modifiedLineNumber,c=this.modifiedLineNumber+this.lineCount-i.endLineNumberExclusive;this.setState(s,c,o)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(i=10,o){let s=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+i,s),o)}showMoreBelow(i=10,o){let s=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+i,s),o)}showAll(i){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),i)}showModifiedLine(i,o,s){let c=i+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),_=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-i;o===0&&c<_||o===1?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+c,s):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+_,s)}showOriginalLine(i,o,s){let c=i-this.originalLineNumber,_=this.originalLineNumber+this.lineCount-i;o===0&&c<_||o===1?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+_-c,this.getMaxVisibleLineCountTop()),s):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+c-_,this.getMaxVisibleLineCountBottom()),s)}collapseAll(i){this._visibleLineCountTop.set(0,i),this._visibleLineCountBottom.set(0,i)}setState(i,o,s){i=Math.max(Math.min(i,this.lineCount),0),o=Math.max(Math.min(o,this.lineCount-i),0),this._visibleLineCountTop.set(i,s),this._visibleLineCountBottom.set(o,s)}}});var Yvt,tDi=Ht(()=>{va();Ew();Og();$r();uf();P0();Fs();Yvt=class extends Ui{get visibility(){return this._visibility}set visibility(i){this._visibility!==i&&(this._visibility=i,this._diffActions.style.visibility=i?"visible":"hidden")}constructor(i,o,s,c,_,h,b,w,D){super(),this._getViewZoneId=i,this._marginDomNode=o,this._modifiedEditor=s,this._diff=c,this._editor=_,this._viewLineCounts=h,this._originalTextModel=b,this._contextMenuService=w,this._clipboardService=D,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=uc.asClassName(Xo.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";let O=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${O}px`,this._diffActions.style.lineHeight=`${O}px`,this._marginDomNode.appendChild(this._diffActions);let j=0,F=s.getOption(127)&&!$A,X=(K,re)=>{var Pe;this._contextMenuService.showContextMenu({domForShadowRoot:F&&(Pe=s.getDomNode())!==null&&Pe!==void 0?Pe:void 0,getAnchor:()=>({x:K,y:re}),getActions:()=>{let Le=[],Je=c.modified.isEmpty;return Le.push(new EC("diff.clipboard.copyDeletedContent",Je?c.original.length>1?de("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):de("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):c.original.length>1?de("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):de("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,async()=>{let ft=this._originalTextModel.getValueInRange(c.original.toExclusiveRange());await this._clipboardService.writeText(ft)})),c.original.length>1&&Le.push(new EC("diff.clipboard.copyDeletedLineContent",Je?de("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",c.original.startLineNumber+j):de("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",c.original.startLineNumber+j),void 0,!0,async()=>{let ft=this._originalTextModel.getLineContent(c.original.startLineNumber+j);ft===""&&(ft=this._originalTextModel.getEndOfLineSequence()===0?` +`:`\r +`),await this._clipboardService.writeText(ft)})),s.getOption(91)||Le.push(new EC("diff.inline.revertChange",de("diff.inline.revertChange.label","Revert this change"),void 0,!0,async()=>{this._editor.revert(this._diff)})),Le},autoSelectFirstItem:!0})};this._register(Cm(this._diffActions,"mousedown",K=>{if(!K.leftButton)return;let{top:re,height:Pe}=Qm(this._diffActions),Le=Math.floor(O/3);K.preventDefault(),X(K.posx,re+Pe+Le)})),this._register(s.onMouseMove(K=>{(K.target.type===8||K.target.type===5)&&K.target.detail.viewZoneId===this._getViewZoneId()?(j=this._updateLightBulbPosition(this._marginDomNode,K.event.browserEvent.y,O),this.visibility=!0):this.visibility=!1})),this._register(s.onMouseDown(K=>{K.event.leftButton&&(K.target.type===8||K.target.type===5)&&K.target.detail.viewZoneId===this._getViewZoneId()&&(K.event.preventDefault(),j=this._updateLightBulbPosition(this._marginDomNode,K.event.browserEvent.y,O),X(K.event.posx,K.event.posy+O))}))}_updateLightBulbPosition(i,o,s){let{top:c}=Qm(i),_=o-c,h=Math.floor(_/s),b=h*s;if(this._diffActions.style.top=`${b}px`,this._viewLineCounts){let w=0;for(let D=0;D0,_=new S7(1e4),h=0,b=0,w=[];for(let F=0;F');let w=i.getLineContent(),D=dL.isBasicASCII(w,c),O=dL.containsRTL(w,D,_),j=Rle(new JL(h.fontInfo.isMonospace&&!h.disableMonospaceOptimizations,h.fontInfo.canUseHalfwidthRightwardsArrow,w,!1,D,O,0,i,o,h.tabSize,0,h.fontInfo.spaceWidth,h.fontInfo.middotWidth,h.fontInfo.wsmiddotWidth,h.stopRenderingLineAfter,h.renderWhitespace,h.renderControlCharacters,h.fontLigatures!==AF.OFF,null),b);return b.appendString(""),j.characterMapping.getHorizontalOffset(j.characterMapping.length)}var iDi,Qvt,Zvt,oDi=Ht(()=>{VK();v7();FC();Ele();nAe();qde();tW();iDi=fP("diffEditorWidget",{createHTML:l=>l});Qvt=class{constructor(i,o,s,c){this.lineTokens=i,this.lineBreakData=o,this.mightContainNonBasicASCII=s,this.mightContainRTL=c}},Zvt=class l{static fromEditor(i){var o;let s=i.getOptions(),c=s.get(50),_=s.get(145);return new l(((o=i.getModel())===null||o===void 0?void 0:o.getOptions().tabSize)||0,c,s.get(33),c.typicalHalfwidthCharacterWidth,s.get(104),s.get(67),_.decorationsWidth,s.get(117),s.get(99),s.get(94),s.get(51))}constructor(i,o,s,c,_,h,b,w,D,O,j){this.tabSize=i,this.fontInfo=o,this.disableMonospaceOptimizations=s,this.typicalHalfwidthCharacterWidth=c,this.scrollBeyondLastColumn=_,this.lineHeight=h,this.lineDecorationsWidth=b,this.stopRenderingLineAfter=w,this.renderWhitespace=D,this.renderControlCharacters=O,this.fontLigatures=j}}});function aDi(l,i,o,s,c,_){let h=new nP(cDi(l,s)),b=new nP(cDi(i,c)),w=l.getOption(67),D=i.getOption(67),O=[],j=0,F=0;function X(K,re){for(;;){let Pe=h.peek(),Le=b.peek();if(Pe&&Pe.lineNumber>=K&&(Pe=void 0),Le&&Le.lineNumber>=re&&(Le=void 0),!Pe&&!Le)break;let Je=Pe?Pe.lineNumber-j:Number.MAX_VALUE,Ye=Le?Le.lineNumber-F:Number.MAX_VALUE;JeYe?(b.dequeue(),Pe={lineNumber:Le.lineNumber-F+j,heightInPx:0}):(h.dequeue(),b.dequeue()),O.push({originalRange:Iu.ofLength(Pe.lineNumber,1),modifiedRange:Iu.ofLength(Le.lineNumber,1),originalHeightInPx:w+Pe.heightInPx,modifiedHeightInPx:D+Le.heightInPx,diff:void 0})}}for(let K of o){let Ye=function(ft,Ct){var Et,St,Mi,zi;if(ftDi.lineNumberDi+rs.heightInPx,0))!==null&&St!==void 0?St:0,er=(zi=(Mi=b.takeWhile(Di=>Di.lineNumberDi+rs.heightInPx,0))!==null&&zi!==void 0?zi:0;O.push({originalRange:Vr,modifiedRange:sn,originalHeightInPx:Vr.length*w+gr,modifiedHeightInPx:sn.length*D+er,diff:K.lineRangeMapping}),Je=ft,Le=Ct},re=K.lineRangeMapping;X(re.original.startLineNumber,re.modified.startLineNumber);let Pe=!0,Le=re.modified.startLineNumber,Je=re.original.startLineNumber;if(_)for(let ft of re.innerChanges||[]){ft.originalRange.startColumn>1&&ft.modifiedRange.startColumn>1&&Ye(ft.originalRange.startLineNumber,ft.modifiedRange.startLineNumber);let Ct=l.getModel(),Et=ft.originalRange.endLineNumber<=Ct.getLineCount()?Ct.getLineMaxColumn(ft.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;ft.originalRange.endColumn1&&s.push({lineNumber:w,heightInPx:h*(D-1)})}for(let w of l.getWhitespaces()){if(i.has(w.id))continue;let D=w.afterLineNumber===0?0:_.convertViewPositionToModelPosition(new Cn(w.afterLineNumber,1)).lineNumber;o.push({lineNumber:D,heightInPx:w.height})}return HEi(o,s,w=>w.lineNumber,(w,D)=>({lineNumber:w.lineNumber,heightInPx:w.heightInPx+D.heightInPx}))}var iHi,sDi,e1t,lDi=Ht(()=>{va();su();Bu();Og();$r();O0();P0();cm();v7();lat();lci();tDi();oDi();Oj();lL();Ll();tW();xue();yP();iHi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},sDi=function(l,i){return function(o,s){i(o,s,l)}},e1t=class extends Ui{constructor(i,o,s,c,_,h,b,w,D,O){super(),this._targetWindow=i,this._editors=o,this._diffModel=s,this._options=c,this._diffEditorWidget=_,this._canIgnoreViewZoneUpdateEvent=h,this._origViewZonesToIgnore=b,this._modViewZonesToIgnore=w,this._clipboardService=D,this._contextMenuService=O,this._originalTopPadding=yd(this,0),this._originalScrollOffset=yd(this,0),this._originalScrollOffsetAnimated=Wai(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=yd(this,0),this._modifiedScrollOffset=yd(this,0),this._modifiedScrollOffsetAnimated=Wai(this._targetWindow,this._modifiedScrollOffset,this._store);let j=yd("invalidateAlignmentsState",0),F=this._register(new Bd(()=>{j.set(j.get()+1,void 0)},0));this._register(this._editors.original.onDidChangeViewZones(Ye=>{this._canIgnoreViewZoneUpdateEvent()||F.schedule()})),this._register(this._editors.modified.onDidChangeViewZones(Ye=>{this._canIgnoreViewZoneUpdateEvent()||F.schedule()})),this._register(this._editors.original.onDidChangeConfiguration(Ye=>{(Ye.hasChanged(146)||Ye.hasChanged(67))&&F.schedule()})),this._register(this._editors.modified.onDidChangeConfiguration(Ye=>{(Ye.hasChanged(146)||Ye.hasChanged(67))&&F.schedule()}));let X=this._diffModel.map(Ye=>Ye?E_(Ye.model.original.onDidChangeTokens,()=>Ye.model.original.tokenization.backgroundTokenizationState===2):void 0).map((Ye,ft)=>Ye?.read(ft)),K=jl(Ye=>{let ft=this._diffModel.read(Ye),Ct=ft?.diff.read(Ye);if(!ft||!Ct)return null;j.read(Ye);let St=this._options.renderSideBySide.read(Ye);return aDi(this._editors.original,this._editors.modified,Ct.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,St)}),re=jl(Ye=>{var ft;let Ct=(ft=this._diffModel.read(Ye))===null||ft===void 0?void 0:ft.movedTextToCompare.read(Ye);if(!Ct)return null;j.read(Ye);let Et=Ct.changes.map(St=>new dat(St));return aDi(this._editors.original,this._editors.modified,Et,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)});function Pe(){let Ye=document.createElement("div");return Ye.className="diagonal-fill",Ye}let Le=this._register(new pr);this.viewZones=YF(this,(Ye,ft)=>{var Ct,Et,St,Mi,zi,Vr,sn,gr;Le.clear();let er=K.read(Ye)||[],Di=[],rs=[],Ls=this._modifiedTopPadding.read(Ye);Ls>0&&rs.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:Ls,showInHiddenAreas:!0,suppressMouseDown:!0});let _i=this._originalTopPadding.read(Ye);_i>0&&Di.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:_i,showInHiddenAreas:!0,suppressMouseDown:!0});let wc=this._options.renderSideBySide.read(Ye),Uo=wc||(Ct=this._editors.modified._getViewModel())===null||Ct===void 0?void 0:Ct.createLineBreaksComputer();if(Uo){let bd=this._editors.original.getModel();for(let Hg of er)if(Hg.diff)for(let _p=Hg.originalRange.startLineNumber;_pbd.getLineCount())return{orig:Di,mod:rs};Uo?.addRequest(bd.getLineContent(_p),null,null)}}let tc=(Et=Uo?.finalize())!==null&&Et!==void 0?Et:[],vo=0,kl=this._editors.modified.getOption(67),qa=(St=this._diffModel.read(Ye))===null||St===void 0?void 0:St.movedTextToCompare.read(Ye),Wy=(zi=(Mi=this._editors.original.getModel())===null||Mi===void 0?void 0:Mi.mightContainNonBasicASCII())!==null&&zi!==void 0?zi:!1,Hb=(sn=(Vr=this._editors.original.getModel())===null||Vr===void 0?void 0:Vr.mightContainRTL())!==null&&sn!==void 0?sn:!1,ro=Zvt.fromEditor(this._editors.modified);for(let bd of er)if(bd.diff&&!wc){if(!bd.originalRange.isEmpty){X.read(Ye);let _p=document.createElement("div");_p.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");let Kb=this._editors.original.getModel();if(bd.originalRange.endLineNumberExclusive-1>Kb.getLineCount())return{orig:Di,mod:rs};let hd=new Qvt(bd.originalRange.mapToLineArray(PC=>Kb.tokenization.getLineTokens(PC)),bd.originalRange.mapToLineArray(PC=>tc[vo++]),Wy,Hb),oI=[];for(let PC of bd.diff.innerChanges||[])oI.push(new Ble(PC.originalRange.delta(-(bd.diff.original.startLineNumber-1)),cat.className,0));let Lt=rDi(hd,ro,oI,_p),yw=document.createElement("div");if(yw.className="inline-deleted-margin-view-zone",Iv(yw,ro.fontInfo),this._options.renderIndicators.read(Ye))for(let PC=0;PCVj(Fo),yw,this._editors.modified,bd.diff,this._diffEditorWidget,Lt.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let PC=0;PC1&&Di.push({afterLineNumber:bd.originalRange.startLineNumber+PC,domNode:Pe(),heightInPx:(Ow-1)*kl,showInHiddenAreas:!0,suppressMouseDown:!0})}rs.push({afterLineNumber:bd.modifiedRange.startLineNumber-1,domNode:_p,heightInPx:Lt.heightInLines*kl,minWidthInPx:Lt.minWidthInPx,marginDomNode:yw,setZoneId(PC){Fo=PC},showInHiddenAreas:!0,suppressMouseDown:!0})}let Hg=document.createElement("div");Hg.className="gutter-delete",Di.push({afterLineNumber:bd.originalRange.endLineNumberExclusive-1,domNode:Pe(),heightInPx:bd.modifiedHeightInPx,marginDomNode:Hg,showInHiddenAreas:!0,suppressMouseDown:!0})}else{let Hg=bd.modifiedHeightInPx-bd.originalHeightInPx;if(Hg>0){if(qa?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(bd.originalRange.endLineNumberExclusive-1))continue;Di.push({afterLineNumber:bd.originalRange.endLineNumberExclusive-1,domNode:Pe(),heightInPx:Hg,showInHiddenAreas:!0,suppressMouseDown:!0})}else{let _p=function(){let hd=document.createElement("div");return hd.className="arrow-revert-change "+uc.asClassName(Xo.arrowRight),ft.add(Tr(hd,"mousedown",oI=>oI.stopPropagation())),ft.add(Tr(hd,"click",oI=>{oI.stopPropagation(),_.revert(bd.diff)})),No("div",{},hd)};if(qa?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(bd.modifiedRange.endLineNumberExclusive-1))continue;let Kb;bd.diff&&bd.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(Ye)&&(Kb=_p()),rs.push({afterLineNumber:bd.modifiedRange.endLineNumberExclusive-1,domNode:Pe(),heightInPx:-Hg,marginDomNode:Kb,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(let bd of(gr=re.read(Ye))!==null&&gr!==void 0?gr:[]){if(!qa?.lineRangeMapping.original.intersect(bd.originalRange)||!qa?.lineRangeMapping.modified.intersect(bd.modifiedRange))continue;let Hg=bd.modifiedHeightInPx-bd.originalHeightInPx;Hg>0?Di.push({afterLineNumber:bd.originalRange.endLineNumberExclusive-1,domNode:Pe(),heightInPx:Hg,showInHiddenAreas:!0,suppressMouseDown:!0}):rs.push({afterLineNumber:bd.modifiedRange.endLineNumberExclusive-1,domNode:Pe(),heightInPx:-Hg,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:Di,mod:rs}});let Je=!1;this._register(this._editors.original.onDidScrollChange(Ye=>{Ye.scrollLeftChanged&&!Je&&(Je=!0,this._editors.modified.setScrollLeft(Ye.scrollLeft),Je=!1)})),this._register(this._editors.modified.onDidScrollChange(Ye=>{Ye.scrollLeftChanged&&!Je&&(Je=!0,this._editors.original.setScrollLeft(Ye.scrollLeft),Je=!1)})),this._originalScrollTop=E_(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=E_(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._register(au(Ye=>{let ft=this._originalScrollTop.read(Ye)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(Ye))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(Ye));ft!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(ft,1)})),this._register(au(Ye=>{let ft=this._modifiedScrollTop.read(Ye)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(Ye))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(Ye));ft!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(ft,1)})),this._register(au(Ye=>{var ft;let Ct=(ft=this._diffModel.read(Ye))===null||ft===void 0?void 0:ft.movedTextToCompare.read(Ye),Et=0;if(Ct){let St=this._editors.original.getTopForLineNumber(Ct.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();Et=this._editors.modified.getTopForLineNumber(Ct.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-St}Et>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(Et,void 0)):Et<0?(this._modifiedTopPadding.set(-Et,void 0),this._originalTopPadding.set(0,void 0)):setTimeout(()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)},400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-Et,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+Et,void 0,!0)}))}};e1t=iHi([sDi(8,wL),sDi(9,IC)],e1t)});var t1t,uci,uDi=Ht(()=>{va();$r();O0();lL();HL();t1t=class extends Ui{constructor(i,o,s){super(),this._editor=i,this._domNode=o,this.itemProvider=s,this.scrollTop=E_(this._editor.onDidScrollChange,h=>this._editor.getScrollTop()),this.isScrollTopZero=this.scrollTop.map(h=>h===0),this.modelAttached=E_(this._editor.onDidChangeModel,h=>this._editor.hasModel()),this.editorOnDidChangeViewZones=ix("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=ix("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=fue("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";let c=this._domNode.appendChild(T_("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),_=new ResizeObserver(()=>{fp(h=>{this.domNodeSizeChanged.trigger(h)})});_.observe(this._domNode),this._register(Qs(()=>_.disconnect())),this._register(au(h=>{c.className=this.isScrollTopZero.read(h)?"":"scroll-decoration"})),this._register(au(h=>this.render(h)))}dispose(){super.dispose(),N1(this._domNode)}render(i){if(!this.modelAttached.read(i))return;this.domNodeSizeChanged.read(i),this.editorOnDidChangeViewZones.read(i),this.editorOnDidContentSizeChange.read(i);let o=this.scrollTop.read(i),s=this._editor.getVisibleRanges(),c=new Set(this.views.keys()),_=Wd.ofStartAndLength(0,this._domNode.clientHeight);if(!_.isEmpty)for(let h of s){let b=new Iu(h.startLineNumber,h.endLineNumber+1),w=this.itemProvider.getIntersectingGutterItems(b,i);fp(D=>{for(let O of w){if(!O.range.intersect(b))continue;c.delete(O.id);let j=this.views.get(O.id);if(j)j.item.set(O,D);else{let re=document.createElement("div");this._domNode.appendChild(re);let Pe=yd("item",O),Le=this.itemProvider.createView(Pe,re);j=new uci(Pe,Le,re),this.views.set(O.id,j)}let F=O.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(O.range.startLineNumber,!0)-o:this._editor.getBottomForLineNumber(O.range.startLineNumber-1,!1)-o,K=(O.range.isEmpty?F:this._editor.getBottomForLineNumber(O.range.endLineNumberExclusive-1,!0)-o)-F;j.domNode.style.top=`${F}px`,j.domNode.style.height=`${K}px`,j.gutterItemView.layout(Wd.ofStartAndLength(F,K),_)}})}for(let h of c){let b=this.views.get(h);b.gutterItemView.dispose(),this._domNode.removeChild(b.domNode),this.views.delete(h)}}},uci=class{constructor(i,o,s){this.item=i,this.gutterItemView=o,this.domNode=s}}});var tOe,dci=Ht(()=>{Ew();tOe=class extends BF{constructor(i){super(),this._getContext=i}runAction(i,o){let s=this._getContext();return super.runAction(i,s)}}});var fat,dDi=Ht(()=>{Fle();Ole();fat=class extends crt{constructor(i){super(),this._textModel=i}getValueOfRange(i){return this._textModel.getValueInRange(i)}get length(){let i=this._textModel.getLineCount(),o=this._textModel.getLineLength(i);return new O2(i-1,o)}}});var fDi=Ht(()=>{});var i1t,LPe,_Di=Ht(()=>{Ij();woi();Ew();Og();P0();Pa();$r();fDi();Fs();B2();i1t=class extends Ui{constructor(i,o,s={orientation:0}){var c;super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new Iut),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new pr),s.hoverDelegate=(c=s.hoverDelegate)!==null&&c!==void 0?c:this._register(CW()),this.options=s,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new LPe(()=>{var _;return(_=this.toggleMenuActionViewItem)===null||_===void 0?void 0:_.show()},s.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",i.appendChild(this.element),this.actionBar=this._register(new NC(this.element,{orientation:s.orientation,ariaLabel:s.ariaLabel,actionRunner:s.actionRunner,allowContextMenu:s.allowContextMenu,highlightToggledItems:s.highlightToggledItems,hoverDelegate:s.hoverDelegate,actionViewItemProvider:(_,h)=>{var b;if(_.id===LPe.ID)return this.toggleMenuActionViewItem=new Mfe(_,_.menuActions,o,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:uc.asClassNameArray((b=s.moreIcon)!==null&&b!==void 0?b:Xo.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(s.actionViewItemProvider){let w=s.actionViewItemProvider(_,h);if(w)return w}if(_ instanceof sj){let w=new Mfe(_,_.actions,o,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:_.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return w.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(w),this.disposables.add(this._onDidChangeDropdownVisibility.add(w.onDidChangeVisibility)),w}}}))}set actionRunner(i){this.actionBar.actionRunner=i}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(i){return this.actionBar.getAction(i)}setActions(i,o){this.clear();let s=i?i.slice(0):[];this.hasSecondaryActions=!!(o&&o.length>0),this.hasSecondaryActions&&o&&(this.toggleMenuAction.menuActions=o.slice(0),s.push(this.toggleMenuAction)),s.forEach(c=>{this.actionBar.push(c,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(c)})})}getKeybindingLabel(i){var o,s,c;let _=this.lookupKeybindings?(s=(o=this.options).getKeyBinding)===null||s===void 0?void 0:s.call(o,i):void 0;return(c=_?.getLabel())!==null&&c!==void 0?c:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}},LPe=class l extends EC{constructor(i,o){o=o||de("moreActions","More Actions..."),super(l.ID,o,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=i}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(i){this._menuActions=i}};LPe.ID="toolbar.toggle.more"});var pDi,kW,OPe,iOe,_at=Ht(()=>{va();h7();_Di();Ew();su();Roi();Pl();Pa();sP();$r();Fs();hue();Vg();fai();gg();du();yP();By();dP();pDi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},kW=function(l,i){return function(o,s){i(o,s,l)}},OPe=class extends i1t{constructor(i,o,s,c,_,h,b,w){super(i,_,{getKeyBinding:O=>{var j;return(j=h.lookupKeybinding(O.id))!==null&&j!==void 0?j:void 0},...o,allowContextMenu:!0,skipTelemetry:typeof o?.telemetrySource=="string"}),this._options=o,this._menuService=s,this._contextKeyService=c,this._contextMenuService=_,this._keybindingService=h,this._commandService=b,this._sessionDisposables=this._store.add(new pr);let D=o?.telemetrySource;D&&this._store.add(this.actionBar.onDidRun(O=>w.publicLog2("workbenchActionExecuted",{id:O.action.id,from:D})))}setActions(i,o=[],s){var c,_,h;this._sessionDisposables.clear();let b=i.slice(),w=o.slice(),D=[],O=0,j=[],F=!1;if(((c=this._options)===null||c===void 0?void 0:c.hiddenItemStrategy)!==-1)for(let X=0;XPe?.id)),K=this._options.overflowBehavior.maxItems-X.size,re=0;for(let Pe=0;Pe=K&&(b[Pe]=void 0,j[Pe]=Le))}}dYt(b),dYt(j),super.setActions(b,bv.join(j,w)),(D.length>0||b.length>0)&&this._sessionDisposables.add(Tr(this.getElement(),"contextmenu",X=>{var K,re,Pe,Le,Je;let Ye=new h2(Xa(this.getElement()),X),ft=this.getItemAction(Ye.target);if(!ft)return;Ye.preventDefault(),Ye.stopPropagation();let Ct=[];if(ft instanceof P2&&ft.menuKeybinding?Ct.push(ft.menuKeybinding):ft instanceof Qj||ft instanceof LPe||Ct.push(dai(ft.id,void 0,this._commandService,this._keybindingService)),D.length>0){let St=!1;if(O===1&&((K=this._options)===null||K===void 0?void 0:K.hiddenItemStrategy)===0){St=!0;for(let Mi=0;Mithis._menuService.resetHiddenStates(s)}))),Et.length!==0&&this._contextMenuService.showContextMenu({getAnchor:()=>Ye,getActions:()=>Et,menuId:(Pe=this._options)===null||Pe===void 0?void 0:Pe.contextMenu,menuActionOptions:{renderShortTitle:!0,...(Le=this._options)===null||Le===void 0?void 0:Le.menuOptions},skipTelemetry:typeof((Je=this._options)===null||Je===void 0?void 0:Je.telemetrySource)=="string",contextKeyService:this._contextKeyService})}))}};OPe=pDi([kW(2,Dw),kW(3,La),kW(4,IC),kW(5,ju),kW(6,c_),kW(7,Ly)],OPe);iOe=class extends OPe{constructor(i,o,s,c,_,h,b,w,D){super(i,{resetMenu:o,...s},c,_,h,b,w,D),this._onDidChangeMenuItems=this._store.add(new fn),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;let O=this._store.add(c.createMenu(o,_,{emitEventsForSubmenuChanges:!0})),j=()=>{var F,X,K;let re=[],Pe=[];Bfe(O,s?.menuOptions,{primary:re,secondary:Pe},(F=s?.toolbarOptions)===null||F===void 0?void 0:F.primaryGroup,(X=s?.toolbarOptions)===null||X===void 0?void 0:X.shouldInlineSubmenu,(K=s?.toolbarOptions)===null||K===void 0?void 0:K.useSeparatorsInPrimaryActions),i.classList.toggle("has-no-actions",re.length===0&&Pe.length===0),super.setActions(re,Pe)};this._store.add(O.onDidChange(()=>{j(),this._onDidChangeMenuItems.fire(this)})),j()}setActions(){throw new C_("This toolbar is populated from a menu.")}};iOe=pDi([kW(3,Dw),kW(4,La),kW(5,IC),kW(6,ju),kW(7,c_),kW(8,Ly)],iOe)});var mDi,r1t,fci,n1t,o1t,s1t,_ci,hDi=Ht(()=>{va();$r();O0();Lfe();oci();Oj();uDi();dci();lL();HL();ca();Fle();$K();dDi();_at();Vg();du();rue();kc();mDi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},r1t=function(l,i){return function(o,s){i(o,s,l)}},fci=[],n1t=35,o1t=class extends Ui{constructor(i,o,s,c,_,h,b,w,D){super(),this._diffModel=o,this._editors=s,this._options=c,this._sashLayout=_,this._boundarySashes=h,this._instantiationService=b,this._contextKeyService=w,this._menuService=D,this._menu=this._register(this._menuService.createMenu(ki.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=E_(this._menu.onDidChange,()=>this._menu.getActions()),this._hasActions=this._actions.map(O=>O.length>0),this._showSash=jl(this,O=>this._options.renderSideBySide.read(O)&&this._hasActions.read(O)),this.width=jl(this,O=>this._hasActions.read(O)?n1t:0),this.elements=T_("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:n1t+"px"}},[]),this._currentDiff=jl(this,O=>{var j;let F=this._diffModel.read(O);if(!F)return;let X=(j=F.diff.read(O))===null||j===void 0?void 0:j.mappings,K=this._editors.modifiedCursor.read(O);if(K)return X?.find(re=>re.lineRangeMapping.modified.contains(K.lineNumber))}),this._selectedDiffs=jl(this,O=>{let j=this._diffModel.read(O),F=j?.diff.read(O);if(!F)return fci;let X=this._editors.modifiedSelections.read(O);if(X.every(Le=>Le.isEmpty()))return fci;let K=new uj(X.map(Le=>Iu.fromRangeInclusive(Le))),Pe=F.mappings.filter(Le=>Le.lineRangeMapping.innerChanges&&K.intersects(Le.lineRangeMapping.modified)).map(Le=>({mapping:Le,rangeMappings:Le.lineRangeMapping.innerChanges.filter(Je=>X.some(Ye=>Vt.areIntersecting(Je.modifiedRange,Ye)))}));return Pe.length===0||Pe.every(Le=>Le.rangeMappings.length===0)?fci:Pe}),this._register(UEi(i,this.elements.root)),this._register(Tr(this.elements.root,"click",()=>{this._editors.modified.focus()})),this._register(Lj(this.elements.root,{display:this._hasActions.map(O=>O?"block":"none")})),Ej(this,O=>this._showSash.read(O)?new Z3e(i,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,H0t(this,F=>this._sashLayout.sashLeft.read(F)-n1t,(F,X)=>this._sashLayout.sashLeft.set(F+n1t,X)),()=>this._sashLayout.resetSash()):void 0).recomputeInitiallyAndOnChange(this._store),this._register(new t1t(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(O,j)=>{let F=this._diffModel.read(j);if(!F)return[];let X=F.diff.read(j);if(!X)return[];let K=this._selectedDiffs.read(j);if(K.length>0){let Pe=mP.fromRangeMappings(K.flatMap(Le=>Le.rangeMappings));return[new s1t(Pe,!0,ki.DiffEditorSelectionToolbar,void 0,F.model.original.uri,F.model.modified.uri)]}let re=this._currentDiff.read(j);return X.mappings.map(Pe=>new s1t(Pe.lineRangeMapping.withInnerChangesFromLineRanges(),Pe.lineRangeMapping===re?.lineRangeMapping,ki.DiffEditorHunkToolbar,void 0,F.model.original.uri,F.model.modified.uri))},createView:(O,j)=>this._instantiationService.createInstance(_ci,O,j,this)})),this._register(Tr(this.elements.gutter,$o.MOUSE_WHEEL,O=>{this._editors.modified.getOption(103).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(O)},{passive:!1}))}computeStagedValue(i){var o;let s=(o=i.innerChanges)!==null&&o!==void 0?o:[],c=new fat(this._editors.modifiedModel.get()),_=new fat(this._editors.original.getModel());return new Vde(s.map(w=>w.toTextEdit(c))).apply(_)}layout(i){this.elements.gutter.style.left=i+"px"}};o1t=mDi([r1t(6,qs),r1t(7,La),r1t(8,Dw)],o1t);s1t=class{constructor(i,o,s,c,_,h){this.mapping=i,this.showAlways=o,this.menuId=s,this.rangeOverride=c,this.originalUri=_,this.modifiedUri=h}get id(){return this.mapping.modified.toString()}get range(){var i;return(i=this.rangeOverride)!==null&&i!==void 0?i:this.mapping.modified}},_ci=class extends Ui{constructor(i,o,s,c){super(),this._item=i,this._elements=T_("div.gutterItem",{style:{height:"20px",width:"34px"}},[T_("div.background@background",{},[]),T_("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,h=>h.showAlways),this._menuId=this._item.map(this,h=>h.menuId),this._isSmall=yd(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;let _=this._register(c.createInstance(wX,"element",!0,{position:{hoverPosition:1}}));this._register(APe(o,this._elements.root)),this._register(au(h=>{let b=this._showAlways.read(h);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",b),setTimeout(()=>{this._elements.root.classList.toggle("noTransition",!1)},0)})),this._register(VC((h,b)=>{this._elements.buttons.replaceChildren();let w=b.add(c.createInstance(iOe,this._elements.buttons,this._menuId.read(h),{orientation:1,hoverDelegate:_,toolbarOptions:{primaryGroup:D=>D.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(h)?1:3},hiddenItemStrategy:0,actionRunner:new tOe(()=>{let D=this._item.get(),O=D.mapping;return{mapping:O,originalWithModifiedChanges:s.computeStagedValue(O),originalUri:D.originalUri,modifiedUri:D.modifiedUri}}),menuOptions:{shouldForwardArgs:!0}}));b.add(w.onDidChangeMenuItems(()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)}))}))}layout(i,o){this._lastItemRange=i,this._lastViewRange=o;let s=this._elements.buttons.clientHeight;this._isSmall.set(this._item.get().mapping.original.startLineNumber===1&&i.length<30,void 0),s=this._elements.buttons.clientHeight;let c=i.length/2-s/2,_=s,h=i.start+c,b=Wd.tryCreate(_,o.endExclusive-_-s),w=Wd.tryCreate(i.start+_,i.endExclusive-s-_);w&&b&&w.start{va();oue();Og();vP();$r();O0();Lfe();P0();cm();Oj();lL();Ll();ca();Fg();Fs();kc();nHi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},rHi=function(l,i){return function(o,s){i(o,s,l)}},FPe=pci=class extends Ui{static setBreadcrumbsSourceFactory(i){this._breadcrumbsSourceFactory.set(i,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(i,o,s,c){super(),this._editors=i,this._diffModel=o,this._options=s,this._instantiationService=c,this._modifiedOutlineSource=Ej(this,w=>{let D=this._editors.modifiedModel.read(w),O=pci._breadcrumbsSourceFactory.read(w);return!D||!O?void 0:O(D,this._instantiationService)}),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition(w=>{if(w.reason===1)return;let D=this._diffModel.get();fp(O=>{for(let j of this._editors.original.getSelections()||[])D?.ensureOriginalLineIsVisible(j.getStartPosition().lineNumber,0,O),D?.ensureOriginalLineIsVisible(j.getEndPosition().lineNumber,0,O)})})),this._register(this._editors.modified.onDidChangeCursorPosition(w=>{if(w.reason===1)return;let D=this._diffModel.get();fp(O=>{for(let j of this._editors.modified.getSelections()||[])D?.ensureModifiedLineIsVisible(j.getStartPosition().lineNumber,0,O),D?.ensureModifiedLineIsVisible(j.getEndPosition().lineNumber,0,O)})}));let _=this._diffModel.map((w,D)=>{var O,j;let F=(O=w?.unchangedRegions.read(D))!==null&&O!==void 0?O:[];return F.length===1&&F[0].modifiedLineNumber===1&&F[0].lineCount===((j=this._editors.modifiedModel.read(D))===null||j===void 0?void 0:j.getLineCount())?[]:F});this.viewZones=YF(this,(w,D)=>{let O=this._modifiedOutlineSource.read(w);if(!O)return{origViewZones:[],modViewZones:[]};let j=[],F=[],X=this._options.renderSideBySide.read(w),K=_.read(w);for(let re of K)if(!re.shouldHideControls(w)){{let Pe=jl(this,Je=>re.getHiddenOriginalRange(Je).startLineNumber-1),Le=new Kfe(Pe,24);j.push(Le),D.add(new a1t(this._editors.original,Le,re,re.originalUnchangedRange,!X,O,Je=>this._diffModel.get().ensureModifiedLineIsVisible(Je,2,void 0),this._options))}{let Pe=jl(this,Je=>re.getHiddenModifiedRange(Je).startLineNumber-1),Le=new Kfe(Pe,24);F.push(Le),D.add(new a1t(this._editors.modified,Le,re,re.modifiedUnchangedRange,!1,O,Je=>this._diffModel.get().ensureModifiedLineIsVisible(Je,2,void 0),this._options))}}return{origViewZones:j,modViewZones:F}});let h={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},b={description:"Fold Unchanged",glyphMarginHoverMessage:new Vb(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown(de("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+uc.asClassName(Xo.fold),zIndex:10001};this._register(Y3e(this._editors.original,jl(this,w=>{let D=_.read(w),O=D.map(j=>({range:j.originalUnchangedRange.toInclusiveRange(),options:h}));for(let j of D)j.shouldHideControls(w)&&O.push({range:Vt.fromPositions(new Cn(j.originalLineNumber,1)),options:b});return O}))),this._register(Y3e(this._editors.modified,jl(this,w=>{let D=_.read(w),O=D.map(j=>({range:j.modifiedUnchangedRange.toInclusiveRange(),options:h}));for(let j of D)j.shouldHideControls(w)&&O.push({range:Iu.ofLength(j.modifiedLineNumber,1).toInclusiveRange(),options:b});return O}))),this._register(au(w=>{let D=_.read(w);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(D.map(O=>O.getHiddenOriginalRange(w).toInclusiveRange()).filter(IF)),this._editors.modified.setHiddenAreas(D.map(O=>O.getHiddenModifiedRange(w).toInclusiveRange()).filter(IF))}finally{this._isUpdatingHiddenAreas=!1}})),this._register(this._editors.modified.onMouseUp(w=>{var D;if(!w.event.rightButton&&w.target.position&&(!((D=w.target.element)===null||D===void 0)&&D.className.includes("fold-unchanged"))){let O=w.target.position.lineNumber,j=this._diffModel.get();if(!j)return;let F=j.unchangedRegions.get().find(X=>X.modifiedUnchangedRange.includes(O));if(!F)return;F.collapseAll(void 0),w.event.stopPropagation(),w.event.preventDefault()}})),this._register(this._editors.original.onMouseUp(w=>{var D;if(!w.event.rightButton&&w.target.position&&(!((D=w.target.element)===null||D===void 0)&&D.className.includes("fold-unchanged"))){let O=w.target.position.lineNumber,j=this._diffModel.get();if(!j)return;let F=j.unchangedRegions.get().find(X=>X.originalUnchangedRange.includes(O));if(!F)return;F.collapseAll(void 0),w.event.stopPropagation(),w.event.preventDefault()}}))}};FPe._breadcrumbsSourceFactory=yd("breadcrumbsSourceFactory",void 0);FPe=pci=nHi([rHi(3,qs)],FPe);a1t=class extends X3e{constructor(i,o,s,c,_,h,b,w){let D=T_("div.diff-hidden-lines-widget");super(i,o,D.root),this._editor=i,this._unchangedRegion=s,this._unchangedRegionRange=c,this._hide=_,this._modifiedOutlineSource=h,this._revealModifiedHiddenLine=b,this._options=w,this._nodes=T_("div.diff-hidden-lines",[T_("div.top@top",{title:de("diff.hiddenLines.top","Click or drag to show more above")}),T_("div.center@content",{style:{display:"flex"}},[T_("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[No("a",{title:de("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...I7("$(unfold)"))]),T_("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),T_("div.bottom@bottom",{title:de("diff.bottom","Click or drag to show more below"),role:"button"})]),D.root.appendChild(this._nodes.root);let O=E_(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._hide?N1(this._nodes.first):this._register(Lj(this._nodes.first,{width:O.map(F=>F.contentLeft)})),this._register(au(F=>{let X=this._unchangedRegion.visibleLineCountTop.read(F)+this._unchangedRegion.visibleLineCountBottom.read(F)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!X),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(F)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(F)>0),this._nodes.top.classList.toggle("canMoveBottom",!X);let K=this._unchangedRegion.isDragged.read(F),re=this._editor.getDomNode();re&&(re.classList.toggle("draggingUnchangedRegion",!!K),K==="top"?(re.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(F)>0),re.classList.toggle("canMoveBottom",!X)):K==="bottom"?(re.classList.toggle("canMoveTop",!X),re.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(F)>0)):(re.classList.toggle("canMoveTop",!1),re.classList.toggle("canMoveBottom",!1)))}));let j=this._editor;this._register(Tr(this._nodes.top,"mousedown",F=>{if(F.button!==0)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),F.preventDefault();let X=F.clientY,K=!1,re=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);let Pe=Xa(this._nodes.top),Le=Tr(Pe,"mousemove",Ye=>{let Ct=Ye.clientY-X;K=K||Math.abs(Ct)>2;let Et=Math.round(Ct/j.getOption(67)),St=Math.max(0,Math.min(re+Et,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(St,void 0)}),Je=Tr(Pe,"mouseup",Ye=>{K||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),Le.dispose(),Je.dispose()})})),this._register(Tr(this._nodes.bottom,"mousedown",F=>{if(F.button!==0)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),F.preventDefault();let X=F.clientY,K=!1,re=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);let Pe=Xa(this._nodes.bottom),Le=Tr(Pe,"mousemove",Ye=>{let Ct=Ye.clientY-X;K=K||Math.abs(Ct)>2;let Et=Math.round(Ct/j.getOption(67)),St=Math.max(0,Math.min(re-Et,this._unchangedRegion.getMaxVisibleLineCountBottom())),Mi=this._unchangedRegionRange.endLineNumberExclusive>j.getModel().getLineCount()?j.getContentHeight():j.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(St,void 0);let zi=this._unchangedRegionRange.endLineNumberExclusive>j.getModel().getLineCount()?j.getContentHeight():j.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);j.setScrollTop(j.getScrollTop()+(zi-Mi))}),Je=Tr(Pe,"mouseup",Ye=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!K){let ft=j.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);let Ct=j.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);j.setScrollTop(j.getScrollTop()+(Ct-ft))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),Le.dispose(),Je.dispose()})})),this._register(au(F=>{let X=[];if(!this._hide){let K=s.getHiddenModifiedRange(F).length,re=de("hiddenLines","{0} hidden lines",K),Pe=No("span",{title:de("diff.hiddenLines.expandAll","Double click to unfold")},re);Pe.addEventListener("dblclick",Ye=>{Ye.button===0&&(Ye.preventDefault(),this._unchangedRegion.showAll(void 0))}),X.push(Pe);let Le=this._unchangedRegion.getHiddenModifiedRange(F),Je=this._modifiedOutlineSource.getBreadcrumbItems(Le,F);if(Je.length>0){X.push(No("span",void 0,"\xA0\xA0|\xA0\xA0"));for(let Ye=0;Ye{this._revealModifiedHiddenLine(ft.startLineNumber)}}}}N1(this._nodes.others,...X)}))}}});var oHi,sHi,wW,Eue,hci=Ht(()=>{va();Tw();Spt();$r();O0();Oj();Ll();rii();Sv();_g();oHi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},sHi=function(l,i){return function(o,s){i(o,s,l)}},Eue=wW=class extends Ui{constructor(i,o,s,c,_,h,b){super(),this._editors=i,this._rootElement=o,this._diffModel=s,this._rootWidth=c,this._rootHeight=_,this._modifiedEditorLayoutInfo=h,this._themeService=b,this.width=wW.ENTIRE_DIFF_OVERVIEW_WIDTH;let w=E_(this._themeService.onDidColorThemeChange,()=>this._themeService.getColorTheme()),D=jl(F=>{let X=w.read(F),K=X.getColor(C1i)||(X.getColor(S1i)||G_t).transparent(2),re=X.getColor(k1i)||(X.getColor(x1i)||K_t).transparent(2);return{insertColor:K,removeColor:re}}),O=cf(document.createElement("div"));O.setClassName("diffViewport"),O.setPosition("absolute");let j=T_("div.diffOverview",{style:{position:"absolute",top:"0px",width:wW.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register(APe(j,O.domNode)),this._register(Cm(j,$o.POINTER_DOWN,F=>{this._editors.modified.delegateVerticalScrollbarPointerDown(F)})),this._register(Tr(j,$o.MOUSE_WHEEL,F=>{this._editors.modified.delegateScrollFromMouseWheelEvent(F)},{passive:!1})),this._register(APe(this._rootElement,j)),this._register(VC((F,X)=>{let K=this._diffModel.read(F),re=this._editors.original.createOverviewRuler("original diffOverviewRuler");re&&(X.add(re),X.add(APe(j,re.getDomNode())));let Pe=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(Pe&&(X.add(Pe),X.add(APe(j,Pe.getDomNode()))),!re||!Pe)return;let Le=ix("viewZoneChanged",this._editors.original.onDidChangeViewZones),Je=ix("viewZoneChanged",this._editors.modified.onDidChangeViewZones),Ye=ix("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),ft=ix("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);X.add(au(Ct=>{var Et;Le.read(Ct),Je.read(Ct),Ye.read(Ct),ft.read(Ct);let St=D.read(Ct),Mi=(Et=K?.diff.read(Ct))===null||Et===void 0?void 0:Et.mappings;function zi(gr,er,Di){let rs=Di._getViewModel();return rs?gr.filter(Ls=>Ls.length>0).map(Ls=>{let _i=rs.coordinatesConverter.convertModelPositionToViewPosition(new Cn(Ls.startLineNumber,1)),wc=rs.coordinatesConverter.convertModelPositionToViewPosition(new Cn(Ls.endLineNumberExclusive,1)),Uo=wc.lineNumber-_i.lineNumber;return new eot(_i.lineNumber,wc.lineNumber,Uo,er.toString())}):[]}let Vr=zi((Mi||[]).map(gr=>gr.lineRangeMapping.original),St.removeColor,this._editors.original),sn=zi((Mi||[]).map(gr=>gr.lineRangeMapping.modified),St.insertColor,this._editors.modified);re?.setZones(Vr),Pe?.setZones(sn)})),X.add(au(Ct=>{let Et=this._rootHeight.read(Ct),St=this._rootWidth.read(Ct),Mi=this._modifiedEditorLayoutInfo.read(Ct);if(Mi){let zi=wW.ENTIRE_DIFF_OVERVIEW_WIDTH-2*wW.ONE_OVERVIEW_WIDTH;re.setLayout({top:0,height:Et,right:zi+wW.ONE_OVERVIEW_WIDTH,width:wW.ONE_OVERVIEW_WIDTH}),Pe.setLayout({top:0,height:Et,right:0,width:wW.ONE_OVERVIEW_WIDTH});let Vr=this._editors.modifiedScrollTop.read(Ct),sn=this._editors.modifiedScrollHeight.read(Ct),gr=this._editors.modified.getOption(103),er=new ife(gr.verticalHasArrows?gr.arrowSize:0,gr.verticalScrollbarSize,0,Mi.height,sn,Vr);O.setTop(er.getSliderPosition()),O.setHeight(er.getSliderSize())}else O.setTop(0),O.setHeight(0);j.style.height=Et+"px",j.style.left=St-wW.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",O.setWidth(wW.ENTIRE_DIFF_OVERVIEW_WIDTH)}))}))}};Eue.ONE_OVERVIEW_WIDTH=15;Eue.ENTIRE_DIFF_OVERVIEW_WIDTH=wW.ONE_OVERVIEW_WIDTH*2;Eue=wW=oHi([sHi(6,Ph)],Eue)});var gci,c1t,pat,gDi=Ht(()=>{va();oue();Og();$r();O0();lL();ca();$K();b2();Fs();gci=[],c1t=class extends Ui{constructor(i,o,s,c){super(),this._editors=i,this._diffModel=o,this._options=s,this._widget=c,this._selectedDiffs=jl(this,_=>{let h=this._diffModel.read(_),b=h?.diff.read(_);if(!b)return gci;let w=this._editors.modifiedSelections.read(_);if(w.every(F=>F.isEmpty()))return gci;let D=new uj(w.map(F=>Iu.fromRangeInclusive(F))),j=b.mappings.filter(F=>F.lineRangeMapping.innerChanges&&D.intersects(F.lineRangeMapping.modified)).map(F=>({mapping:F,rangeMappings:F.lineRangeMapping.innerChanges.filter(X=>w.some(K=>Vt.areIntersecting(X.modifiedRange,K)))}));return j.length===0||j.every(F=>F.rangeMappings.length===0)?gci:j}),this._register(VC((_,h)=>{if(!this._options.shouldRenderOldRevertArrows.read(_))return;let b=this._diffModel.read(_),w=b?.diff.read(_);if(!b||!w||b.movedTextToCompare.read(_))return;let D=[],O=this._selectedDiffs.read(_),j=new Set(O.map(F=>F.mapping));if(O.length>0){let F=this._editors.modifiedSelections.read(_),X=h.add(new pat(F[F.length-1].positionLineNumber,this._widget,O.flatMap(K=>K.rangeMappings),!0));this._editors.modified.addGlyphMarginWidget(X),D.push(X)}for(let F of w.mappings)if(!j.has(F)&&!F.lineRangeMapping.modified.isEmpty&&F.lineRangeMapping.innerChanges){let X=h.add(new pat(F.lineRangeMapping.modified.startLineNumber,this._widget,F.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(X),D.push(X)}h.add(Qs(()=>{for(let F of D)this._editors.modified.removeGlyphMarginWidget(F)}))}))}},pat=class l extends Ui{getId(){return this._id}constructor(i,o,s,c){super(),this._lineNumber=i,this._widget=o,this._diffs=s,this._revertSelection=c,this._id=`revertButton${l.counter++}`,this._domNode=T_("div.revertButton",{title:this._revertSelection?de("revertSelectedChanges","Revert Selected Changes"):de("revertChange","Revert Change")},[TX(Xo.arrowRight)]).root,this._register(Tr(this._domNode,$o.MOUSE_DOWN,_=>{_.button!==2&&(_.stopPropagation(),_.preventDefault())})),this._register(Tr(this._domNode,$o.MOUSE_UP,_=>{_.stopPropagation(),_.preventDefault()})),this._register(Tr(this._domNode,$o.CLICK,_=>{this._diffs instanceof pP?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),_.stopPropagation(),_.preventDefault()}))}getDomNode(){return this._domNode}getPosition(){return{lane:zL.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}};pat.counter=0});function QX(l,i,o){let s=l.bindTo(i);return Ofe({debugName:()=>`Set Context Key "${l.key}"`},c=>{s.set(o(c))})}var yDi=Ht(()=>{O0()});function vDi(l){return l1t.get(l)}var l1t,bDi=Ht(()=>{O0();l1t=class l{static get(i){let o=l._map.get(i);if(!o){o=new l(i),l._map.set(i,o);let s=i.onDidDispose(()=>{l._map.delete(i),s.dispose()})}return o}constructor(i){this.editor=i,this.model=E_(this.editor.onDidChangeModel,()=>this.editor.getModel())}};l1t._map=new Map});var aHi,SDi,u1t,xDi=Ht(()=>{Pa();$r();O0();bDi();hci();FC();Ll();Fs();kc();By();aHi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},SDi=function(l,i){return function(o,s){i(o,s,l)}},u1t=class extends Ui{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(i,o,s,c,_,h,b){super(),this.originalEditorElement=i,this.modifiedEditorElement=o,this._options=s,this._argCodeEditorWidgetOptions=c,this._createInnerEditor=_,this._instantiationService=h,this._keybindingService=b,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new fn),this.modifiedScrollTop=E_(this.modified.onDidScrollChange,()=>this.modified.getScrollTop()),this.modifiedScrollHeight=E_(this.modified.onDidScrollChange,()=>this.modified.getScrollHeight()),this.modifiedModel=vDi(this.modified).model,this.modifiedSelections=E_(this.modified.onDidChangeCursorSelection,()=>{var w;return(w=this.modified.getSelections())!==null&&w!==void 0?w:[]}),this.modifiedCursor=O7({owner:this,equalsFn:Cn.equals},w=>{var D,O;return(O=(D=this.modifiedSelections.read(w)[0])===null||D===void 0?void 0:D.getPosition())!==null&&O!==void 0?O:new Cn(1,1)}),this.originalCursor=E_(this.original.onDidChangeCursorPosition,()=>{var w;return(w=this.original.getPosition())!==null&&w!==void 0?w:new Cn(1,1)}),this._argCodeEditorWidgetOptions=null,this._register(RX({createEmptyChangeSummary:()=>({}),handleChange:(w,D)=>(w.didChange(s.editorOptions)&&Object.assign(D,w.change.changedOptions),!0)},(w,D)=>{s.editorOptions.read(w),this._options.renderSideBySide.read(w),this.modified.updateOptions(this._adjustOptionsForRightHandSide(w,D)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(w,D))}))}_createLeftHandSideEditor(i,o){let s=this._adjustOptionsForLeftHandSide(void 0,i),c=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,s,o);return c.setContextValue("isInDiffLeftEditor",!0),c}_createRightHandSideEditor(i,o){let s=this._adjustOptionsForRightHandSide(void 0,i),c=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,s,o);return c.setContextValue("isInDiffRightEditor",!0),c}_constructInnerEditor(i,o,s,c){let _=this._createInnerEditor(i,o,s,c);return this._register(_.onDidContentSizeChange(h=>{let b=this.original.getContentWidth()+this.modified.getContentWidth()+Eue.ENTIRE_DIFF_OVERVIEW_WIDTH,w=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:w,contentWidth:b,contentHeightChanged:h.contentHeightChanged,contentWidthChanged:h.contentWidthChanged})})),_}_adjustOptionsForLeftHandSide(i,o){let s=this._adjustOptionsForSubEditor(o);return this._options.renderSideBySide.get()?(s.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},s.wordWrapOverride1=this._options.diffWordWrap.get()):(s.wordWrapOverride1="off",s.wordWrapOverride2="off",s.stickyScroll={enabled:!1},s.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),s.glyphMargin=this._options.renderSideBySide.get(),o.originalAriaLabel&&(s.ariaLabel=o.originalAriaLabel),s.ariaLabel=this._updateAriaLabel(s.ariaLabel),s.readOnly=!this._options.originalEditable.get(),s.dropIntoEditor={enabled:!s.readOnly},s.extraEditorClassName="original-in-monaco-diff-editor",s}_adjustOptionsForRightHandSide(i,o){let s=this._adjustOptionsForSubEditor(o);return o.modifiedAriaLabel&&(s.ariaLabel=o.modifiedAriaLabel),s.ariaLabel=this._updateAriaLabel(s.ariaLabel),s.wordWrapOverride1=this._options.diffWordWrap.get(),s.revealHorizontalRightPadding=OL.revealHorizontalRightPadding.defaultValue+Eue.ENTIRE_DIFF_OVERVIEW_WIDTH,s.scrollbar.verticalHasArrows=!1,s.extraEditorClassName="modified-in-monaco-diff-editor",s}_adjustOptionsForSubEditor(i){let o={...i,dimension:{height:0,width:0}};return o.inDiffEditor=!0,o.automaticLayout=!1,o.scrollbar={...o.scrollbar||{}},o.folding=!1,o.codeLens=this._options.diffCodeLens.get(),o.fixedOverflowWidgets=!0,o.minimap={...o.minimap||{}},o.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?o.stickyScroll={enabled:!1}:o.stickyScroll=this._options.editorOptions.get().stickyScroll,o}_updateAriaLabel(i){var o;i||(i="");let s=de("diff-aria-navigation-tip"," use {0} to open the accessibility help.",(o=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp"))===null||o===void 0?void 0:o.getAriaLabel());return this._options.accessibilityVerbose.get()?i+s:i?i.replaceAll(s,""):""}};u1t=aHi([SDi(5,qs),SDi(6,ju)],u1t)});var mat,CDi=Ht(()=>{Pa();$r();mat=class l extends Ui{constructor(){super(...arguments),this._id=++l.idCounter,this._onDidDispose=this._register(new fn),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(i){return this._targetEditor.getVisibleColumnFromPosition(i)}getPosition(){return this._targetEditor.getPosition()}setPosition(i,o="api"){this._targetEditor.setPosition(i,o)}revealLine(i,o=0){this._targetEditor.revealLine(i,o)}revealLineInCenter(i,o=0){this._targetEditor.revealLineInCenter(i,o)}revealLineInCenterIfOutsideViewport(i,o=0){this._targetEditor.revealLineInCenterIfOutsideViewport(i,o)}revealLineNearTop(i,o=0){this._targetEditor.revealLineNearTop(i,o)}revealPosition(i,o=0){this._targetEditor.revealPosition(i,o)}revealPositionInCenter(i,o=0){this._targetEditor.revealPositionInCenter(i,o)}revealPositionInCenterIfOutsideViewport(i,o=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(i,o)}revealPositionNearTop(i,o=0){this._targetEditor.revealPositionNearTop(i,o)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(i,o="api"){this._targetEditor.setSelection(i,o)}setSelections(i,o="api"){this._targetEditor.setSelections(i,o)}revealLines(i,o,s=0){this._targetEditor.revealLines(i,o,s)}revealLinesInCenter(i,o,s=0){this._targetEditor.revealLinesInCenter(i,o,s)}revealLinesInCenterIfOutsideViewport(i,o,s=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(i,o,s)}revealLinesNearTop(i,o,s=0){this._targetEditor.revealLinesNearTop(i,o,s)}revealRange(i,o=0,s=!1,c=!0){this._targetEditor.revealRange(i,o,s,c)}revealRangeInCenter(i,o=0){this._targetEditor.revealRangeInCenter(i,o)}revealRangeInCenterIfOutsideViewport(i,o=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(i,o)}revealRangeNearTop(i,o=0){this._targetEditor.revealRangeNearTop(i,o)}revealRangeNearTopIfOutsideViewport(i,o=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(i,o)}revealRangeAtTop(i,o=0){this._targetEditor.revealRangeAtTop(i,o)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(i,o,s){this._targetEditor.trigger(i,o,s)}createDecorationsCollection(i){return this._targetEditor.createDecorationsCollection(i)}changeDecorations(i){return this._targetEditor.changeDecorations(i)}};mat.idCounter=0});function kDi(l,i){var o,s,c,_,h,b,w,D;return{enableSplitViewResizing:Cl(l.enableSplitViewResizing,i.enableSplitViewResizing),splitViewDefaultRatio:kgi(l.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:Cl(l.renderSideBySide,i.renderSideBySide),renderMarginRevertIcon:Cl(l.renderMarginRevertIcon,i.renderMarginRevertIcon),maxComputationTime:cde(l.maxComputationTime,i.maxComputationTime,0,1073741824),maxFileSize:cde(l.maxFileSize,i.maxFileSize,0,1073741824),ignoreTrimWhitespace:Cl(l.ignoreTrimWhitespace,i.ignoreTrimWhitespace),renderIndicators:Cl(l.renderIndicators,i.renderIndicators),originalEditable:Cl(l.originalEditable,i.originalEditable),diffCodeLens:Cl(l.diffCodeLens,i.diffCodeLens),renderOverviewRuler:Cl(l.renderOverviewRuler,i.renderOverviewRuler),diffWordWrap:Jb(l.diffWordWrap,i.diffWordWrap,["off","on","inherit"]),diffAlgorithm:Jb(l.diffAlgorithm,i.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:Cl(l.accessibilityVerbose,i.accessibilityVerbose),experimental:{showMoves:Cl((o=l.experimental)===null||o===void 0?void 0:o.showMoves,i.experimental.showMoves),showEmptyDecorations:Cl((s=l.experimental)===null||s===void 0?void 0:s.showEmptyDecorations,i.experimental.showEmptyDecorations)},hideUnchangedRegions:{enabled:Cl((_=(c=l.hideUnchangedRegions)===null||c===void 0?void 0:c.enabled)!==null&&_!==void 0?_:(h=l.experimental)===null||h===void 0?void 0:h.collapseUnchangedRegions,i.hideUnchangedRegions.enabled),contextLineCount:cde((b=l.hideUnchangedRegions)===null||b===void 0?void 0:b.contextLineCount,i.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:cde((w=l.hideUnchangedRegions)===null||w===void 0?void 0:w.minimumLineCount,i.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:cde((D=l.hideUnchangedRegions)===null||D===void 0?void 0:D.revealLineCount,i.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:Cl(l.isInEmbeddedEditor,i.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:Cl(l.onlyShowAccessibleDiffViewer,i.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:cde(l.renderSideBySideInlineBreakpoint,i.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:Cl(l.useInlineViewWhenSpaceIsLimited,i.useInlineViewWhenSpaceIsLimited),renderGutterMenu:Cl(l.renderGutterMenu,i.renderGutterMenu)}}var cHi,lHi,d1t,wDi=Ht(()=>{O0();Rri();FC();fL();cHi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},lHi=function(l,i){return function(o,s){i(o,s,l)}},d1t=class{get editorOptions(){return this._options}constructor(i,o){this._accessibilityService=o,this._diffEditorWidth=yd(this,0),this._screenReaderMode=E_(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this.couldShowInlineViewBecauseOfSize=jl(this,c=>this._options.read(c).renderSideBySide&&this._diffEditorWidth.read(c)<=this._options.read(c).renderSideBySideInlineBreakpoint),this.renderOverviewRuler=jl(this,c=>this._options.read(c).renderOverviewRuler),this.renderSideBySide=jl(this,c=>this._options.read(c).renderSideBySide&&!(this._options.read(c).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(c)&&!this._screenReaderMode.read(c))),this.readOnly=jl(this,c=>this._options.read(c).readOnly),this.shouldRenderOldRevertArrows=jl(this,c=>!(!this._options.read(c).renderMarginRevertIcon||!this.renderSideBySide.read(c)||this.readOnly.read(c)||this.shouldRenderGutterMenu.read(c))),this.shouldRenderGutterMenu=jl(this,c=>this._options.read(c).renderGutterMenu),this.renderIndicators=jl(this,c=>this._options.read(c).renderIndicators),this.enableSplitViewResizing=jl(this,c=>this._options.read(c).enableSplitViewResizing),this.splitViewDefaultRatio=jl(this,c=>this._options.read(c).splitViewDefaultRatio),this.ignoreTrimWhitespace=jl(this,c=>this._options.read(c).ignoreTrimWhitespace),this.maxComputationTimeMs=jl(this,c=>this._options.read(c).maxComputationTime),this.showMoves=jl(this,c=>this._options.read(c).experimental.showMoves&&this.renderSideBySide.read(c)),this.isInEmbeddedEditor=jl(this,c=>this._options.read(c).isInEmbeddedEditor),this.diffWordWrap=jl(this,c=>this._options.read(c).diffWordWrap),this.originalEditable=jl(this,c=>this._options.read(c).originalEditable),this.diffCodeLens=jl(this,c=>this._options.read(c).diffCodeLens),this.accessibilityVerbose=jl(this,c=>this._options.read(c).accessibilityVerbose),this.diffAlgorithm=jl(this,c=>this._options.read(c).diffAlgorithm),this.showEmptyDecorations=jl(this,c=>this._options.read(c).experimental.showEmptyDecorations),this.onlyShowAccessibleDiffViewer=jl(this,c=>this._options.read(c).onlyShowAccessibleDiffViewer),this.hideUnchangedRegions=jl(this,c=>this._options.read(c).hideUnchangedRegions.enabled),this.hideUnchangedRegionsRevealLineCount=jl(this,c=>this._options.read(c).hideUnchangedRegions.revealLineCount),this.hideUnchangedRegionsContextLineCount=jl(this,c=>this._options.read(c).hideUnchangedRegions.contextLineCount),this.hideUnchangedRegionsMinimumLineCount=jl(this,c=>this._options.read(c).hideUnchangedRegions.minimumLineCount);let s={...i,...kDi(i,ZD)};this._options=yd(this,s)}updateOptions(i){let o=kDi(i,this._options.get()),s={...this._options.get(),...i,...o};this._options.set(s,void 0,{changedOptions:i})}setWidth(i){this._diffEditorWidth.set(i,void 0)}};d1t=cHi([lHi(1,YS)],d1t)});function dHi(l){return l.mappings.map(i=>{let o=i.lineRangeMapping,s,c,_,h,b=o.innerChanges;return o.original.isEmpty?(s=o.original.startLineNumber-1,c=0,b=void 0):(s=o.original.startLineNumber,c=o.original.endLineNumberExclusive-1),o.modified.isEmpty?(_=o.modified.startLineNumber-1,h=0,b=void 0):(_=o.modified.startLineNumber,h=o.modified.endLineNumberExclusive-1),{originalStartLineNumber:s,originalEndLineNumber:c,modifiedStartLineNumber:_,modifiedEndLineNumber:h,charChanges:b?.map(w=>({originalStartLineNumber:w.originalRange.startLineNumber,originalStartColumn:w.originalRange.startColumn,originalEndLineNumber:w.originalRange.endLineNumber,originalEndColumn:w.originalRange.endColumn,modifiedStartLineNumber:w.modifiedRange.startLineNumber,modifiedStartColumn:w.modifiedRange.startColumn,modifiedEndLineNumber:w.modifiedRange.endLineNumber,modifiedEndColumn:w.modifiedRange.endColumn}))}})}var uHi,hat,TW,f1t=Ht(()=>{va();VF();Pl();Pa();$r();O0();Lfe();zEi();sd();$b();NPe();jot();$Ei();QEi();oci();lDi();hDi();mci();Qai();hci();gDi();Oj();yDi();Ll();ca();yrt();km();$fe();du();kc();JLe();xW();xDi();CDi();wDi();lci();uHi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},hat=function(l,i){return function(o,s){i(o,s,l)}},TW=class extends mat{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(i,o,s,c,_,h,b,w){var D;super(),this._domElement=i,this._parentContextKeyService=c,this._parentInstantiationService=_,this._accessibilitySignalService=b,this._editorProgressService=w,this.elements=T_("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[T_("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),T_("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),T_("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModel=yd(this,void 0),this._shouldDisposeDiffModel=!1,this.onDidChangeModel=Yo.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new bW([La,this._contextKeyService]))),this._boundarySashes=yd(this,void 0),this._accessibleDiffViewerShouldBeVisible=yd(this,!1),this._accessibleDiffViewerVisible=jl(this,Ct=>this._options.onlyShowAccessibleDiffViewer.read(Ct)?!0:this._accessibleDiffViewerShouldBeVisible.read(Ct)),this._movedBlocksLinesPart=yd(this,void 0),this._layoutInfo=jl(this,Ct=>{var Et,St,Mi,zi,Vr;let sn=this._rootSizeObserver.width.read(Ct),gr=this._rootSizeObserver.height.read(Ct);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=gr+"px";let er=this._sash.read(Ct),Di=this._gutter.read(Ct),rs=(Et=Di?.width.read(Ct))!==null&&Et!==void 0?Et:0,Ls=(Mi=(St=this._overviewRulerPart.read(Ct))===null||St===void 0?void 0:St.width)!==null&&Mi!==void 0?Mi:0,_i,wc,Uo,tc,vo;if(!!er){let qa=er.sashLeft.read(Ct),Wy=(Vr=(zi=this._movedBlocksLinesPart.read(Ct))===null||zi===void 0?void 0:zi.width.read(Ct))!==null&&Vr!==void 0?Vr:0;_i=0,wc=qa-rs-Wy,vo=qa-rs,Uo=qa,tc=sn-Uo-Ls}else vo=0,_i=rs,wc=Math.max(5,this._editors.original.getLayoutInfo().decorationsLeft),Uo=rs+wc,tc=sn-Uo-Ls;return this.elements.original.style.left=_i+"px",this.elements.original.style.width=wc+"px",this._editors.original.layout({width:wc,height:gr},!0),Di?.layout(vo),this.elements.modified.style.left=Uo+"px",this.elements.modified.style.width=tc+"px",this._editors.modified.layout({width:tc,height:gr},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}}),this._diffValue=this._diffModel.map((Ct,Et)=>Ct?.diff.read(Et)),this.onDidUpdateDiff=Yo.fromObservableLight(this._diffValue),h.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register(Qs(()=>this._domElement.removeChild(this.elements.root))),this._rootSizeObserver=this._register(new K3e(this.elements.root,o.dimension)),this._rootSizeObserver.setAutomaticLayout((D=o.automaticLayout)!==null&&D!==void 0?D:!1),this._options=this._instantiationService.createInstance(d1t,o),this._register(au(Ct=>{this._options.setWidth(this._rootSizeObserver.width.read(Ct))})),this._contextKeyService.createKey(ji.isEmbeddedDiffEditor.key,!1),this._register(QX(ji.isEmbeddedDiffEditor,this._contextKeyService,Ct=>this._options.isInEmbeddedEditor.read(Ct))),this._register(QX(ji.comparingMovedCode,this._contextKeyService,Ct=>{var Et;return!!(!((Et=this._diffModel.read(Ct))===null||Et===void 0)&&Et.movedTextToCompare.read(Ct))})),this._register(QX(ji.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,Ct=>this._options.couldShowInlineViewBecauseOfSize.read(Ct))),this._register(QX(ji.diffEditorInlineMode,this._contextKeyService,Ct=>!this._options.renderSideBySide.read(Ct))),this._register(QX(ji.hasChanges,this._contextKeyService,Ct=>{var Et,St,Mi;return((Mi=(St=(Et=this._diffModel.read(Ct))===null||Et===void 0?void 0:Et.diff.read(Ct))===null||St===void 0?void 0:St.mappings.length)!==null&&Mi!==void 0?Mi:0)>0})),this._editors=this._register(this._instantiationService.createInstance(u1t,this.elements.original,this.elements.modified,this._options,s,(Ct,Et,St,Mi)=>this._createInnerEditor(Ct,Et,St,Mi))),this._register(QX(ji.diffEditorOriginalWritable,this._contextKeyService,Ct=>this._options.originalEditable.read(Ct))),this._register(QX(ji.diffEditorModifiedWritable,this._contextKeyService,Ct=>!this._options.readOnly.read(Ct))),this._register(QX(ji.diffEditorOriginalUri,this._contextKeyService,Ct=>{var Et,St;return(St=(Et=this._diffModel.read(Ct))===null||Et===void 0?void 0:Et.model.original.uri.toString())!==null&&St!==void 0?St:""})),this._register(QX(ji.diffEditorModifiedUri,this._contextKeyService,Ct=>{var Et,St;return(St=(Et=this._diffModel.read(Ct))===null||Et===void 0?void 0:Et.model.modified.uri.toString())!==null&&St!==void 0?St:""})),this._overviewRulerPart=Ej(this,Ct=>this._options.renderOverviewRuler.read(Ct)?this._instantiationService.createInstance(i7(Eue,Ct),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map(Et=>Et.modifiedEditor)):void 0).recomputeInitiallyAndOnChange(this._store);let O={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map((Ct,Et)=>{var St,Mi;return Ct-((Mi=(St=this._overviewRulerPart.read(Et))===null||St===void 0?void 0:St.width)!==null&&Mi!==void 0?Mi:0)})};this._sashLayout=new Gvt(this._options,O),this._sash=Ej(this,Ct=>{let Et=this._options.renderSideBySide.read(Ct);return this.elements.root.classList.toggle("side-by-side",Et),Et?new Z3e(this.elements.root,O,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,()=>this._sashLayout.resetSash()):void 0}).recomputeInitiallyAndOnChange(this._store);let j=Ej(this,Ct=>this._instantiationService.createInstance(i7(FPe,Ct),this._editors,this._diffModel,this._options)).recomputeInitiallyAndOnChange(this._store);Ej(this,Ct=>this._instantiationService.createInstance(i7($vt,Ct),this._editors,this._diffModel,this._options,this)).recomputeInitiallyAndOnChange(this._store);let F=new Set,X=new Set,K=!1,re=Ej(this,Ct=>this._instantiationService.createInstance(i7(e1t,Ct),Xa(this._domElement),this._editors,this._diffModel,this._options,this,()=>K||j.get().isUpdatingHiddenAreas,F,X)).recomputeInitiallyAndOnChange(this._store),Pe=jl(this,Ct=>{let Et=re.read(Ct).viewZones.read(Ct).orig,St=j.read(Ct).viewZones.read(Ct).origViewZones;return Et.concat(St)}),Le=jl(this,Ct=>{let Et=re.read(Ct).viewZones.read(Ct).mod,St=j.read(Ct).viewZones.read(Ct).modViewZones;return Et.concat(St)});this._register(Q3e(this._editors.original,Pe,Ct=>{K=Ct},F));let Je;this._register(Q3e(this._editors.modified,Le,Ct=>{K=Ct,K?Je=i3.capture(this._editors.modified):(Je?.restore(this._editors.modified),Je=void 0)},X)),this._accessibleDiffViewer=Ej(this,Ct=>this._instantiationService.createInstance(i7(wue,Ct),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,(Et,St)=>this._accessibleDiffViewerShouldBeVisible.set(Et,St),this._options.onlyShowAccessibleDiffViewer.map(Et=>!Et),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map((Et,St)=>{var Mi;return(Mi=Et?.diff.read(St))===null||Mi===void 0?void 0:Mi.mappings.map(zi=>zi.lineRangeMapping)}),new Jvt(this._editors))).recomputeInitiallyAndOnChange(this._store);let Ye=this._accessibleDiffViewerVisible.map(Ct=>Ct?"hidden":"visible");this._register(Lj(this.elements.modified,{visibility:Ye})),this._register(Lj(this.elements.original,{visibility:Ye})),this._createDiffEditorContributions(),h.addDiffEditor(this),this._gutter=Ej(this,Ct=>this._options.shouldRenderGutterMenu.read(Ct)?this._instantiationService.createInstance(i7(o1t,Ct),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0),this._register(BX(this._layoutInfo)),Ej(this,Ct=>new(i7(Tue,Ct))(this.elements.root,this._diffModel,this._layoutInfo.map(Et=>Et.originalEditor),this._layoutInfo.map(Et=>Et.modifiedEditor),this._editors)).recomputeInitiallyAndOnChange(this._store,Ct=>{this._movedBlocksLinesPart.set(Ct,void 0)}),this._register(Yo.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,Ct=>this._handleCursorPositionChange(Ct,!0))),this._register(Yo.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,Ct=>this._handleCursorPositionChange(Ct,!1)));let ft=this._diffModel.map(this,(Ct,Et)=>{if(Ct)return Ct.diff.read(Et)===void 0&&!Ct.isDiffUpToDate.read(Et)});this._register(VC((Ct,Et)=>{if(ft.read(Ct)===!0){let St=this._editorProgressService.show(!0,1e3);Et.add(Qs(()=>St.done()))}})),this._register(Qs(()=>{var Ct;this._shouldDisposeDiffModel&&((Ct=this._diffModel.get())===null||Ct===void 0||Ct.dispose())})),this._register(VC((Ct,Et)=>{Et.add(new(i7(c1t,Ct))(this._editors,this._diffModel,this._options,this))}))}_createInnerEditor(i,o,s,c){return i.createInstance(iue,o,s,c)}_createDiffEditorContributions(){let i=Ade.getDiffEditorContributions();for(let o of i)try{this._register(this._instantiationService.createInstance(o.ctor,this))}catch(s){Sc(s)}}get _targetEditor(){return this._editors.modified}getEditorType(){return Mle.IDiffEditor}layout(i){this._rootSizeObserver.observe(i)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){var i;let o=this._editors.original.saveViewState(),s=this._editors.modified.saveViewState();return{original:o,modified:s,modelState:(i=this._diffModel.get())===null||i===void 0?void 0:i.serializeState()}}restoreViewState(i){var o;if(i&&i.original&&i.modified){let s=i;this._editors.original.restoreViewState(s.original),this._editors.modified.restoreViewState(s.modified),s.modelState&&((o=this._diffModel.get())===null||o===void 0||o.restoreSerializedState(s.modelState))}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(i){return this._instantiationService.createInstance(Xvt,i,this._options)}getModel(){var i,o;return(o=(i=this._diffModel.get())===null||i===void 0?void 0:i.model)!==null&&o!==void 0?o:null}setModel(i,o){!i&&this._diffModel.get()&&this._accessibleDiffViewer.get().close();let s=i?"model"in i?{model:i,shouldDispose:!1}:{model:this.createViewModel(i),shouldDispose:!0}:void 0;this._diffModel.get()!==s?.model&&FX(o,c=>{var _;E_.batchEventsGlobally(c,()=>{this._editors.original.setModel(s?s.model.model.original:null),this._editors.modified.setModel(s?s.model.model.modified:null)});let h=this._diffModel.get(),b=this._shouldDisposeDiffModel;this._shouldDisposeDiffModel=(_=s?.shouldDispose)!==null&&_!==void 0?_:!1,this._diffModel.set(s?.model,c),b&&h?.dispose()})}updateOptions(i){this._options.updateOptions(i)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){var i;let o=(i=this._diffModel.get())===null||i===void 0?void 0:i.diff.get();return o?dHi(o):null}revert(i){let o=this._diffModel.get();!o||!o.isDiffUpToDate.get()||this._editors.modified.executeEdits("diffEditor",[{range:i.modified.toExclusiveRange(),text:o.model.original.getValueInRange(i.original.toExclusiveRange())}])}revertRangeMappings(i){let o=this._diffModel.get();if(!o||!o.isDiffUpToDate.get())return;let s=i.map(c=>({range:c.modifiedRange,text:o.model.original.getValueInRange(c.originalRange)}));this._editors.modified.executeEdits("diffEditor",s)}_goTo(i){this._editors.modified.setPosition(new Cn(i.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(i.lineRangeMapping.modified.toExclusiveRange())}goToDiff(i){var o,s,c,_;let h=(s=(o=this._diffModel.get())===null||o===void 0?void 0:o.diff.get())===null||s===void 0?void 0:s.mappings;if(!h||h.length===0)return;let b=this._editors.modified.getPosition().lineNumber,w;i==="next"?w=(c=h.find(D=>D.lineRangeMapping.modified.startLineNumber>b))!==null&&c!==void 0?c:h[0]:w=(_=Ple(h,D=>D.lineRangeMapping.modified.startLineNumber{var o;let s=(o=i.diff.get())===null||o===void 0?void 0:o.mappings;!s||s.length===0||this._goTo(s[0])})}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){let i=this._diffModel.get();i&&await i.waitForDiff()}mapToOtherSide(){var i,o;let s=this._editors.modified.hasWidgetFocus(),c=s?this._editors.modified:this._editors.original,_=s?this._editors.original:this._editors.modified,h,b=c.getSelection();if(b){let w=(o=(i=this._diffModel.get())===null||i===void 0?void 0:i.diff.get())===null||o===void 0?void 0:o.mappings.map(D=>s?D.lineRangeMapping.flip():D.lineRangeMapping);if(w){let D=zai(b.getStartPosition(),w),O=zai(b.getEndPosition(),w);h=Vt.plusRange(D,O)}}return{destination:_,destinationSelection:h}}switchSide(){let{destination:i,destinationSelection:o}=this.mapToOtherSide();i.focus(),o&&i.setSelection(o)}exitCompareMove(){let i=this._diffModel.get();i&&i.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){var i;let o=(i=this._diffModel.get())===null||i===void 0?void 0:i.unchangedRegions.get();o&&fp(s=>{for(let c of o)c.collapseAll(s)})}showAllUnchangedRegions(){var i;let o=(i=this._diffModel.get())===null||i===void 0?void 0:i.unchangedRegions.get();o&&fp(s=>{for(let c of o)c.showAll(s)})}_handleCursorPositionChange(i,o){var s,c;if(i?.reason===3){let _=(c=(s=this._diffModel.get())===null||s===void 0?void 0:s.diff.get())===null||c===void 0?void 0:c.mappings.find(h=>o?h.lineRangeMapping.modified.contains(i.position.lineNumber):h.lineRangeMapping.original.contains(i.position.lineNumber));_?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(ad.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):_?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(ad.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):_&&this._accessibilitySignalService.playSignal(ad.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};TW=uHi([hat(3,La),hat(4,qs),hat(5,$u),hat(6,t7),hat(7,XF)],TW)});function _Hi(l){if(!l){if(TDi)return;TDi=!0}Jvi(l||D_.document.body)}function vci(l,i,o,s,c){if(o=o||"",!s){let _=o.indexOf(` +`),h=o;return _!==-1&&(h=o.substring(0,_)),EDi(l,o,i.createByFilepathOrFirstLine(c||null,h),c)}return EDi(l,o,i.createById(s),c)}function EDi(l,i,o,s){return l.createModel(i,o,s)}var yci,Dv,fHi,TDi,_1t,p1t,m1t,DDi=Ht(()=>{$D();$r();$b();jot();fii();Wvt();DPe();Vg();gg();Rg();du();yP();kc();By();QD();_g();fL();PX();xue();xW();XA();v2();Vni();lj();R1();dp();f1t();$fe();GA();B2();rue();wj();yci=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},Dv=function(l,i){return function(o,s){i(o,s,l)}},fHi=0,TDi=!1;_1t=class extends iue{constructor(i,o,s,c,_,h,b,w,D,O,j,F,X){let K={...o};K.ariaLabel=K.ariaLabel||dst.editorViewAccessibleLabel,K.ariaLabel=K.ariaLabel+";"+dst.accessibilityHelpMessage,super(i,K,{},s,c,_,h,D,O,j,F,X),w instanceof Gfe?this._standaloneKeybindingService=w:this._standaloneKeybindingService=null,_Hi(K.ariaContainerElement),$wi((re,Pe)=>s.createInstance(wX,re,Pe,{})),Kwi(b)}addCommand(i,o,s){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let c="DYNAMIC_"+ ++fHi,_=po.deserialize(s);return this._standaloneKeybindingService.addDynamicKeybinding(c,i,o,_),c}createContextKey(i,o){return this._contextKeyService.createKey(i,o)}addAction(i){if(typeof i.id!="string"||typeof i.label!="string"||typeof i.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Ui.None;let o=i.id,s=i.label,c=po.and(po.equals("editorId",this.getId()),po.deserialize(i.precondition)),_=i.keybindings,h=po.and(c,po.deserialize(i.keybindingContext)),b=i.contextMenuGroupId||null,w=i.contextMenuOrder||0,D=(X,...K)=>Promise.resolve(i.run(this,...K)),O=new pr,j=this.getId()+":"+o;if(O.add(Ku.registerCommand(j,D)),b){let X={command:{id:j,title:s},when:c,group:b,order:w};O.add(Rb.appendMenuItem(ki.EditorContext,X))}if(Array.isArray(_))for(let X of _)O.add(this._standaloneKeybindingService.addDynamicKeybinding(j,X,D,h));let F=new ELe(j,s,s,void 0,c,(...X)=>Promise.resolve(i.run(this,...X)),this._contextKeyService);return this._actions.set(o,F),O.add(Qs(()=>{this._actions.delete(o)})),O}_triggerCommand(i,o){if(this._codeEditorService instanceof Wot)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(i,o)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(i,o)}};_1t=yci([Dv(2,qs),Dv(3,$u),Dv(4,c_),Dv(5,La),Dv(6,yL),Dv(7,ju),Dv(8,Ph),Dv(9,Em),Dv(10,YS),Dv(11,Pf),Dv(12,js)],_1t);p1t=class extends _1t{constructor(i,o,s,c,_,h,b,w,D,O,j,F,X,K,re,Pe){let Le={...o};sat(j,Le,!1);let Je=D.registerEditorContainer(i);typeof Le.theme=="string"&&D.setTheme(Le.theme),typeof Le.autoDetectHighContrast<"u"&&D.setAutoDetectHighContrast(!!Le.autoDetectHighContrast);let Ye=Le.model;delete Le.model,super(i,Le,s,c,_,h,b,w,D,O,F,re,Pe),this._configurationService=j,this._standaloneThemeService=D,this._register(Je);let ft;if(typeof Ye>"u"){let Ct=K.getLanguageIdByMimeType(Le.language)||Le.language||_w;ft=vci(X,K,Le.value||"",Ct,void 0),this._ownsModel=!0}else ft=Ye,this._ownsModel=!1;if(this._attachModel(ft),ft){let Ct={oldModelUrl:null,newModelUrl:ft.uri};this._onDidChangeModel.fire(Ct)}}dispose(){super.dispose()}updateOptions(i){sat(this._configurationService,i,!1),typeof i.theme=="string"&&this._standaloneThemeService.setTheme(i.theme),typeof i.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!i.autoDetectHighContrast),super.updateOptions(i)}_postDetachModelCleanup(i){super._postDetachModelCleanup(i),i&&this._ownsModel&&(i.dispose(),this._ownsModel=!1)}};p1t=yci([Dv(2,qs),Dv(3,$u),Dv(4,c_),Dv(5,La),Dv(6,yL),Dv(7,ju),Dv(8,yI),Dv(9,Em),Dv(10,gl),Dv(11,YS),Dv(12,lm),Dv(13,up),Dv(14,Pf),Dv(15,js)],p1t);m1t=class extends TW{constructor(i,o,s,c,_,h,b,w,D,O,j,F){let X={...o};sat(w,X,!0);let K=h.registerEditorContainer(i);typeof X.theme=="string"&&h.setTheme(X.theme),typeof X.autoDetectHighContrast<"u"&&h.setAutoDetectHighContrast(!!X.autoDetectHighContrast),super(i,X,{},c,s,_,F,O),this._configurationService=w,this._standaloneThemeService=h,this._register(K)}dispose(){super.dispose()}updateOptions(i){sat(this._configurationService,i,!0),typeof i.theme=="string"&&this._standaloneThemeService.setTheme(i.theme),typeof i.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!i.autoDetectHighContrast),super.updateOptions(i)}_createInnerEditor(i,o,s){return i.createInstance(_1t,o,s)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(i,o,s){return this.getModifiedEditor().addCommand(i,o,s)}createContextKey(i,o){return this.getModifiedEditor().createContextKey(i,o)}addAction(i){return this.getModifiedEditor().addAction(i)}};m1t=yci([Dv(2,qs),Dv(3,La),Dv(4,$u),Dv(5,yI),Dv(6,Em),Dv(7,gl),Dv(8,IC),Dv(9,XF),Dv(10,wL),Dv(11,t7)],m1t)});var IDi=Ht(()=>{});function NDi(l){return E_(i=>{let o=new pr;return o.add(l.onDidFocusEditorWidget(()=>i(!0))),o.add(l.onDidBlurEditorWidget(()=>i(!1))),o},()=>l.hasTextFocus())}var pHi,mHi,h1t,nOe,bci=Ht(()=>{va();xyt();Og();$r();O0();Pfe();f1t();_at();Vg();kc();dci();hue();pHi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},mHi=function(l,i){return function(o,s){i(o,s,l)}},h1t=class{constructor(i,o){this.viewModel=i,this.deltaScrollVertical=o}getId(){return this.viewModel}},nOe=class extends Ui{constructor(i,o,s,c){super(),this._container=i,this._overflowWidgetsDomNode=o,this._workbenchUIElementFactory=s,this._instantiationService=c,this._viewModel=yd(this,void 0),this._collapsed=jl(this,h=>{var b;return(b=this._viewModel.read(h))===null||b===void 0?void 0:b.collapsed.read(h)}),this._editorContentHeight=yd(this,500),this.contentHeight=jl(this,h=>(this._collapsed.read(h)?0:this._editorContentHeight.read(h))+this._outerEditorHeight),this._modifiedContentWidth=yd(this,0),this._modifiedWidth=yd(this,0),this._originalContentWidth=yd(this,0),this._originalWidth=yd(this,0),this.maxScroll=jl(this,h=>{let b=this._modifiedContentWidth.read(h)-this._modifiedWidth.read(h),w=this._originalContentWidth.read(h)-this._originalWidth.read(h);return b>w?{maxScroll:b,width:this._modifiedWidth.read(h)}:{maxScroll:w,width:this._originalWidth.read(h)}}),this._elements=T_("div.multiDiffEntry",[T_("div.header@header",[T_("div.header-content",[T_("div.collapse-button@collapseButton"),T_("div.file-path",[T_("div.title.modified.show-file-icons@primaryPath",[]),T_("div.status.deleted@status",["R"]),T_("div.title.original.show-file-icons@secondaryPath",[])]),T_("div.actions@actions")])]),T_("div.editorParent",[T_("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(TW,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=NDi(this.editor.getModifiedEditor()),this.isOriginalFocused=NDi(this.editor.getOriginalEditor()),this.isFocused=jl(this,h=>this.isModifedFocused.read(h)||this.isOriginalFocused.read(h)),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=new pr,this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;let _=new yue(this._elements.collapseButton,{});this._register(au(h=>{_.element.className="",_.icon=this._collapsed.read(h)?Xo.chevronRight:Xo.chevronDown})),this._register(_.onDidClick(()=>{var h;(h=this._viewModel.get())===null||h===void 0||h.collapsed.set(!this._collapsed.get(),void 0)})),this._register(au(h=>{this._elements.editor.style.display=this._collapsed.read(h)?"none":"block"})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(h=>{let b=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(b,void 0)})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(h=>{let b=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(b,void 0)})),this._register(this.editor.onDidContentSizeChange(h=>{h3e(b=>{this._editorContentHeight.set(h.contentHeight,b),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),b),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),b)})})),this._register(this.editor.getOriginalEditor().onDidScrollChange(h=>{if(this._isSettingScrollTop||!h.scrollTopChanged||!this._data)return;let b=h.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(b)})),this._register(au(h=>{var b;let w=(b=this._viewModel.read(h))===null||b===void 0?void 0:b.isActive.read(h);this._elements.root.classList.toggle("active",w)})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance(iOe,this._elements.actions,ki.MultiDiffEditorFileToolbar,{actionRunner:this._register(new tOe(()=>{var h;return(h=this._viewModel.get())===null||h===void 0?void 0:h.modifiedUri})),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:h=>h.startsWith("navigation")},actionViewItemProvider:(h,b)=>nyt(c,h,b)}))}setScrollLeft(i){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(i):this.editor.getOriginalEditor().setScrollLeft(i)}setData(i){this._data=i;function o(c){return{...c,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}let s=i.viewModel.entry.value;s.onOptionsDidChange&&this._dataStore.add(s.onOptionsDidChange(()=>{var c;this.editor.updateOptions(o((c=s.options)!==null&&c!==void 0?c:{}))})),h3e(c=>{var _,h,b,w;(_=this._resourceLabel)===null||_===void 0||_.setUri((h=i.viewModel.modifiedUri)!==null&&h!==void 0?h:i.viewModel.originalUri,{strikethrough:i.viewModel.modifiedUri===void 0});let D=!1,O=!1,j=!1,F="";i.viewModel.modifiedUri&&i.viewModel.originalUri&&i.viewModel.modifiedUri.path!==i.viewModel.originalUri.path?(F="R",D=!0):i.viewModel.modifiedUri?i.viewModel.originalUri||(F="A",j=!0):(F="D",O=!0),this._elements.status.classList.toggle("renamed",D),this._elements.status.classList.toggle("deleted",O),this._elements.status.classList.toggle("added",j),this._elements.status.innerText=F,(b=this._resourceLabel2)===null||b===void 0||b.setUri(D?i.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(i.viewModel,c),this.editor.setModel(i.viewModel.diffEditorViewModel,c),this.editor.updateOptions(o((w=s.options)!==null&&w!==void 0?w:{}))})}render(i,o,s,c){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${i.start}px`,this._elements.root.style.height=`${i.length}px`,this._elements.root.style.width=`${o}px`,this._elements.root.style.position="absolute";let _=i.length-this._headerHeight,h=Math.max(0,Math.min(c.start-i.start,_));this._elements.header.style.transform=`translateY(${h}px)`,h3e(b=>{this.editor.layout({width:o-2*8-2*1,height:i.length-this._outerEditorHeight})});try{this._isSettingScrollTop=!0,this._lastScrollTop=s,this.editor.getOriginalEditor().setScrollTop(s)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",h>0||s>0),this._elements.header.classList.toggle("collapsed",h===_)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};nOe=pHi([mHi(3,qs)],nOe)});var g1t,ADi=Ht(()=>{g1t=class{constructor(i){this._create=i,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(i){var o;let s;if(this._unused.size===0)s=this._create(i),this._itemData.set(s,i);else{let c=[...this._unused.values()];s=(o=c.find(_=>this._itemData.get(_).getId()===i.getId()))!==null&&o!==void 0?o:c[0],this._unused.delete(s),this._itemData.set(s,i),s.setData(i)}return this._used.add(s),{object:s,dispose:()=>{this._used.delete(s),this._unused.size>5?s.dispose():this._unused.add(s)}}}dispose(){for(let i of this._used)i.dispose();for(let i of this._unused)i.dispose();this._used.clear(),this._unused.clear()}}});var hHi,PDi,y1t,Sci,LDi=Ht(()=>{va();vj();su();VF();Pl();$r();O0();Pfe();fLe();IDi();Oj();HL();hg();km();du();kc();JLe();bci();ADi();Fs();hHi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},PDi=function(l,i){return function(o,s){i(o,s,l)}},y1t=class extends Ui{constructor(i,o,s,c,_,h){super(),this._element=i,this._dimension=o,this._viewModel=s,this._workbenchUIElementFactory=c,this._parentContextKeyService=_,this._parentInstantiationService=h,this._scrollableElements=T_("div.scrollContent",[T_("div@content",{style:{overflow:"hidden"}}),T_("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new yj({forceIntegerValues:!1,scheduleAtNextAnimationFrame:w=>g2(Xa(this._element),w),smoothScrollDuration:100})),this._scrollableElement=this._register(new sX(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=T_("div.monaco-component.multiDiffEditor",{},[T_("div",{},[this._scrollableElement.getDomNode()]),T_("div.placeholder@placeholder",{},[T_("div",[de("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new K3e(this._element,void 0)),this._objectPool=this._register(new g1t(w=>{let D=this._instantiationService.createInstance(nOe,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return D.setData(w),D})),this.scrollTop=E_(this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollTop),this.scrollLeft=E_(this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollLeft),this._viewItemsInfo=YF(this,(w,D)=>{let O=this._viewModel.read(w);if(!O)return{items:[],getItem:K=>{throw new C_}};let j=O.items.read(w),F=new Map;return{items:j.map(K=>{var re;let Pe=D.add(new Sci(K,this._objectPool,this.scrollLeft,Je=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+Je})})),Le=(re=this._lastDocStates)===null||re===void 0?void 0:re[Pe.getKey()];return Le&&fp(Je=>{Pe.setViewState(Le,Je)}),F.set(K,Pe),Pe}),getItem:K=>F.get(K)}}),this._viewItems=this._viewItemsInfo.map(this,w=>w.items),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,(w,D)=>w.reduce((O,j)=>O+j.contentHeight.read(D)+this._spaceBetweenPx,0)),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new bW([La,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(ji.inMultiDiffEditor.key,!0),this._register(VC((w,D)=>{let O=this._viewModel.read(w);if(O&&O.contextKeys)for(let[j,F]of Object.entries(O.contextKeys)){let X=this._contextKeyService.createKey(j,void 0);X.set(F),D.add(Qs(()=>X.reset()))}}));let b=this._parentContextKeyService.createKey(ji.multiDiffEditorAllCollapsed.key,!1);this._register(au(w=>{let D=this._viewModel.read(w);if(D){let O=D.items.read(w).every(j=>j.collapsed.read(w));b.set(O)}})),this._register(au(w=>{let D=this._dimension.read(w);this._sizeObserver.observe(D)})),this._register(au(w=>{let D=this._viewItems.read(w);this._elements.placeholder.classList.toggle("visible",D.length===0)})),this._scrollableElements.content.style.position="relative",this._register(au(w=>{let D=this._sizeObserver.height.read(w);this._scrollableElements.root.style.height=`${D}px`;let O=this._totalHeight.read(w);this._scrollableElements.content.style.height=`${O}px`;let j=this._sizeObserver.width.read(w),F=j,X=this._viewItems.read(w),K=art(X,Sw(re=>re.maxScroll.read(w).maxScroll,rP));if(K){let re=K.maxScroll.read(w);F=j+re.maxScroll}this._scrollableElement.setScrollDimensions({width:j,height:D,scrollHeight:O,scrollWidth:F})})),i.replaceChildren(this._elements.root),this._register(Qs(()=>{i.replaceChildren()})),this._register(this._register(au(w=>{h3e(D=>{this.render(w)})})))}render(i){let o=this.scrollTop.read(i),s=0,c=0,_=0,h=this._sizeObserver.height.read(i),b=Wd.ofStartAndLength(o,h),w=this._sizeObserver.width.read(i);for(let D of this._viewItems.read(i)){let O=D.contentHeight.read(i),j=Math.min(O,h),F=Wd.ofStartAndLength(c,j),X=Wd.ofStartAndLength(_,O);if(X.isBefore(b))s-=O-j,D.hide();else if(X.isAfter(b))D.hide();else{let K=Math.max(0,Math.min(b.start-X.start,O-j));s-=K;let re=Wd.ofStartAndLength(o+s,h);D.render(F,K,w,re)}c+=j+this._spaceBetweenPx,_+=O+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(o+s)}px)`}};y1t=hHi([PDi(4,La),PDi(5,qs)],y1t);Sci=class extends Ui{constructor(i,o,s,c){super(),this.viewModel=i,this._objectPool=o,this._scrollLeft=s,this._deltaScrollVertical=c,this._templateRef=this._register(MX(this,void 0)),this.contentHeight=jl(this,_=>{var h,b,w;return(w=(b=(h=this._templateRef.read(_))===null||h===void 0?void 0:h.object.contentHeight)===null||b===void 0?void 0:b.read(_))!==null&&w!==void 0?w:this.viewModel.lastTemplateData.read(_).contentHeight}),this.maxScroll=jl(this,_=>{var h,b;return(b=(h=this._templateRef.read(_))===null||h===void 0?void 0:h.object.maxScroll.read(_))!==null&&b!==void 0?b:{maxScroll:0,scrollWidth:0}}),this.template=jl(this,_=>{var h;return(h=this._templateRef.read(_))===null||h===void 0?void 0:h.object}),this._isHidden=yd(this,!1),this._isFocused=jl(this,_=>{var h,b;return(b=(h=this.template.read(_))===null||h===void 0?void 0:h.isFocused.read(_))!==null&&b!==void 0?b:!1}),this.viewModel.setIsFocused(this._isFocused,void 0),this._register(au(_=>{var h;let b=this._scrollLeft.read(_);(h=this._templateRef.read(_))===null||h===void 0||h.object.setScrollLeft(b)})),this._register(au(_=>{let h=this._templateRef.read(_);!h||!this._isHidden.read(_)||h.object.isFocused.read(_)||this._clear()}))}dispose(){this._clear(),super.dispose()}toString(){var i;return`VirtualViewItem(${(i=this.viewModel.entry.value.modified)===null||i===void 0?void 0:i.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(i,o){var s;this.viewModel.collapsed.set(i.collapsed,o),this._updateTemplateData(o);let c=this.viewModel.lastTemplateData.get(),_=(s=i.selections)===null||s===void 0?void 0:s.map(ya.liftSelection);this.viewModel.lastTemplateData.set({...c,selections:_},o);let h=this._templateRef.get();h&&_&&h.object.editor.setSelections(_)}_updateTemplateData(i){var o;let s=this._templateRef.get();s&&this.viewModel.lastTemplateData.set({contentHeight:s.object.contentHeight.get(),selections:(o=s.object.editor.getSelections())!==null&&o!==void 0?o:void 0},i)}_clear(){let i=this._templateRef.get();i&&fp(o=>{this._updateTemplateData(o),i.object.hide(),this._templateRef.set(void 0,o)})}hide(){this._isHidden.set(!0,void 0)}render(i,o,s,c){this._isHidden.set(!1,void 0);let _=this._templateRef.get();if(!_){_=this._objectPool.getUnusedObj(new h1t(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(_,void 0);let h=this.viewModel.lastTemplateData.get().selections;h&&_.object.editor.setSelections(h)}_.object.render(i,s,o,c)}}});var BQn,jQn,WQn,ODi=Ht(()=>{Fs();Sv();BQn=cn("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},de("multiDiffEditor.headerBackground","The background color of the diff editor's header")),jQn=cn("multiDiffEditor.background",{dark:"editorBackground",light:"editorBackground",hcDark:"editorBackground",hcLight:"editorBackground"},de("multiDiffEditor.background","The background color of the multi file diff editor")),WQn=cn("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},de("multiDiffEditor.border","The border color of the multi file diff editor"))});var gHi,yHi,v1t,FDi=Ht(()=>{$r();O0();Oj();LDi();kc();ODi();bci();gHi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},yHi=function(l,i){return function(o,s){i(o,s,l)}},v1t=class extends Ui{constructor(i,o,s){super(),this._element=i,this._workbenchUIElementFactory=o,this._instantiationService=s,this._dimension=yd(this,void 0),this._viewModel=yd(this,void 0),this._widgetImpl=YF(this,(c,_)=>(i7(nOe,c),_.add(this._instantiationService.createInstance(i7(y1t,c),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory)))),this._register(BX(this._widgetImpl))}};v1t=gHi([yHi(2,qs)],v1t)});function vHi(l,i,o){return Wu.initialize(o||{}).createInstance(p1t,l,i)}function bHi(l){return Wu.get($u).onCodeEditorAdd(o=>{l(o)})}function SHi(l){return Wu.get($u).onDiffEditorAdd(o=>{l(o)})}function xHi(){return Wu.get($u).listCodeEditors()}function CHi(){return Wu.get($u).listDiffEditors()}function kHi(l,i,o){return Wu.initialize(o||{}).createInstance(m1t,l,i)}function wHi(l,i){let o=Wu.initialize(i||{});return new v1t(l,{},o)}function THi(l){if(typeof l.id!="string"||typeof l.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return Ku.registerCommand(l.id,l.run)}function EHi(l){if(typeof l.id!="string"||typeof l.label!="string"||typeof l.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");let i=po.deserialize(l.precondition),o=(c,..._)=>w0.runEditorCommand(c,_,i,(h,b,w)=>Promise.resolve(l.run(b,...w))),s=new pr;if(s.add(Ku.registerCommand(l.id,o)),l.contextMenuGroupId){let c={command:{id:l.id,title:l.label},when:i,group:l.contextMenuGroupId,order:l.contextMenuOrder||0};s.add(Rb.appendMenuItem(ki.EditorContext,c))}if(Array.isArray(l.keybindings)){let c=Wu.get(ju);if(!(c instanceof Gfe))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{let _=po.and(i,po.deserialize(l.keybindingContext));s.add(c.addDynamicKeybindings(l.keybindings.map(h=>({keybinding:h,command:l.id,when:_}))))}}return s}function DHi(l){return MDi([l])}function MDi(l){let i=Wu.get(ju);return i instanceof Gfe?i.addDynamicKeybindings(l.map(o=>({keybinding:o.keybinding,command:o.command,commandArgs:o.commandArgs,when:po.deserialize(o.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Ui.None)}function IHi(l,i,o){let s=Wu.get(up),c=s.getLanguageIdByMimeType(i)||i;return vci(Wu.get(lm),s,l,c,o)}function NHi(l,i){let o=Wu.get(up),s=o.getLanguageIdByMimeType(i)||i||_w;l.setLanguage(o.createById(s))}function AHi(l,i,o){l&&Wu.get(ZL).changeOne(i,l.uri,o)}function PHi(l){Wu.get(ZL).changeAll(l,[])}function LHi(l){return Wu.get(ZL).read(l)}function OHi(l){return Wu.get(ZL).onMarkerChanged(l)}function FHi(l){return Wu.get(lm).getModel(l)}function MHi(){return Wu.get(lm).getModels()}function RHi(l){return Wu.get(lm).onModelAdded(l)}function BHi(l){return Wu.get(lm).onModelRemoved(l)}function jHi(l){return Wu.get(lm).onModelLanguageChanged(o=>{l({model:o.model,oldLanguage:o.oldLanguageId})})}function WHi(l){return Ivi(Wu.get(lm),Wu.get(Pf),l)}function zHi(l,i){let o=Wu.get(up),s=Wu.get(yI);return W6e.colorizeElement(s,o,l,i).then(()=>{s.registerEditorContainer(l)})}function VHi(l,i,o){let s=Wu.get(up);return Wu.get(yI).registerEditorContainer(D_.document.body),W6e.colorize(s,l,i,o)}function HHi(l,i,o=4){return Wu.get(yI).registerEditorContainer(D_.document.body),W6e.colorizeModelLine(l,i,o)}function UHi(l){let i=Oh.get(l);return i||{getInitialState:()=>YK,tokenize:(o,s,c)=>L6e(l,c)}}function JHi(l,i){Oh.getOrCreate(i);let o=UHi(i),s=KA(l),c=[],_=o.getInitialState();for(let h=0,b=s.length;h{var _;if(!s)return null;let h=(_=o.options)===null||_===void 0?void 0:_.selection,b;return h&&typeof h.endLineNumber=="number"&&typeof h.endColumn=="number"?b=h:h&&(b={lineNumber:h.startLineNumber,column:h.startColumn}),await l.openCodeEditor(s,o.resource,b)?s:null})}function RDi(){return{create:vHi,getEditors:xHi,getDiffEditors:CHi,onDidCreateEditor:bHi,onDidCreateDiffEditor:SHi,createDiffEditor:kHi,addCommand:THi,addEditorAction:EHi,addKeybindingRule:DHi,addKeybindingRules:MDi,createModel:IHi,setModelLanguage:NHi,setModelMarkers:AHi,getModelMarkers:LHi,removeAllMarkers:PHi,onDidChangeMarkers:OHi,getModels:MHi,getModel:FHi,onDidCreateModel:RHi,onWillDisposeModel:BHi,onDidChangeModelLanguage:jHi,createWebWorker:WHi,colorizeElement:zHi,colorize:VHi,colorizeModelLine:HHi,tokenize:JHi,defineTheme:qHi,setTheme:$Hi,remeasureFonts:GHi,registerCommand:KHi,registerLinkOpener:XHi,registerEditorOpener:YHi,AccessibilitySupport:Hut,ContentWidgetPositionPreference:Kut,CursorChangeReason:Xut,DefaultEndOfLine:Yut,EditorAutoIndentStrategy:Zut,EditorOption:edt,EndOfLinePreference:tdt,EndOfLineSequence:idt,MinimapPosition:_dt,MinimapSectionHeaderStyle:pdt,MouseTargetType:mdt,OverlayWidgetPositionPreference:ydt,OverviewRulerLane:vdt,GlyphMarginLane:ndt,RenderLineNumbersType:xdt,RenderMinimap:Cdt,ScrollbarVisibility:wdt,ScrollType:kdt,TextEditorCursorBlinkingStyle:Adt,TextEditorCursorStyle:Pdt,TrackedRangeStickiness:Ldt,WrappingIndent:Odt,InjectedTextCursorStops:sdt,PositionAffinity:Sdt,ShowLightbulbIconMode:Edt,ConfigurationChangedEvent:W4e,BareFontInfo:BNe,FontInfo:jNe,TextModelResolvedOptions:Bde,FindMatch:JK,ApplyUpdateResult:ode,EditorZoom:lP,createMultiFileDiffEditor:wHi,EditorType:Mle,EditorOptions:OL}}var BDi=Ht(()=>{GA();$r();Bl();Lh();s0i();rZt();sd();$b();Nvi();FC();f6e();kft();yrt();Fg();v2();R1();lj();O6e();b2();XA();Fdt();Vvi();DDi();Wvt();DPe();Vg();gg();du();By();WX();bL();FDi()});function QHi(l,i){if(!i||!Array.isArray(i))return!1;for(let o of i)if(!l(o))return!1;return!0}function b1t(l,i){return typeof l=="boolean"?l:i}function jDi(l,i){return typeof l=="string"?l:i}function ZHi(l){let i={};for(let o of l)i[o]=!0;return i}function WDi(l,i=!1){i&&(l=l.map(function(s){return s.toLowerCase()}));let o=ZHi(l);return i?function(s){return o[s.toLowerCase()]!==void 0&&o.hasOwnProperty(s.toLowerCase())}:function(s){return o[s]!==void 0&&o.hasOwnProperty(s)}}function xci(l,i,o){i=i.replace(/@@/g,"");let s=0,c;do c=!1,i=i.replace(/@(\w+)/g,function(h,b){c=!0;let w="";if(typeof l[b]=="string")w=l[b];else if(l[b]&&l[b]instanceof RegExp)w=l[b].source;else throw l[b]===void 0?My(l,"language definition does not contain attribute '"+b+"', used at: "+i):My(l,"attribute reference '"+b+"' must be a string, used at: "+i);return $de(w)?"":"(?:"+w+")"}),s++;while(c&&s<5);i=i.replace(/\x01/g,"@");let _=(l.ignoreCase?"i":"")+(l.unicode?"u":"");if(o&&i.match(/\$[sS](\d\d?)/g)){let b=null,w=null;return D=>(w&&b===D||(b=D,w=new RegExp(Rvi(l,i,D),_)),w)}return new RegExp(i,_)}function eUi(l,i,o,s){if(s<0)return l;if(s=100){s=s-100;let c=o.split(".");if(c.unshift(o),s=0&&(s.tokenSubst=!0),typeof o.bracket=="string")if(o.bracket==="@open")s.bracket=1;else if(o.bracket==="@close")s.bracket=-1;else throw My(l,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+i);if(o.next){if(typeof o.next!="string")throw My(l,"the next state must be a string value in rule: "+i);{let c=o.next;if(!/^(@pop|@push|@popall)$/.test(c)&&(c[0]==="@"&&(c=c.substr(1)),c.indexOf("$")<0&&!Bvi(l,QK(l,c,"",[],""))))throw My(l,"the next state '"+o.next+"' is not defined in rule: "+i);s.next=c}}return typeof o.goBack=="number"&&(s.goBack=o.goBack),typeof o.switchTo=="string"&&(s.switchTo=o.switchTo),typeof o.log=="string"&&(s.log=o.log),typeof o.nextEmbedded=="string"&&(s.nextEmbedded=o.nextEmbedded,l.usesEmbedded=!0),s}}else if(Array.isArray(o)){let s=[];for(let c=0,_=o.length;c<_;c++)s[c]=Cci(l,i,o[c]);return{group:s}}else if(o.cases){let s=[];for(let _ in o.cases)if(o.cases.hasOwnProperty(_)){let h=Cci(l,i,o.cases[_]);_==="@default"||_==="@"||_===""?s.push({test:void 0,value:h,name:_}):_==="@eos"?s.push({test:function(b,w,D,O){return O},value:h,name:_}):s.push(tUi(l,i,_,h))}let c=l.defaultToken;return{test:function(_,h,b,w){for(let D of s)if(!D.test||D.test(_,h,b,w))return D.value;return c}}}else throw My(l,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+i)}else return{token:""}}function wci(l,i){if(!i||typeof i!="object")throw new Error("Monarch: expecting a language definition object");let o={};o.languageId=l,o.includeLF=b1t(i.includeLF,!1),o.noThrow=!1,o.maxStack=100,o.start=typeof i.start=="string"?i.start:null,o.ignoreCase=b1t(i.ignoreCase,!1),o.unicode=b1t(i.unicode,!1),o.tokenPostfix=jDi(i.tokenPostfix,"."+o.languageId),o.defaultToken=jDi(i.defaultToken,"source"),o.usesEmbedded=!1;let s=i;s.languageId=l,s.includeLF=o.includeLF,s.ignoreCase=o.ignoreCase,s.unicode=o.unicode,s.noThrow=o.noThrow,s.usesEmbedded=o.usesEmbedded,s.stateNames=i.tokenizer,s.defaultToken=o.defaultToken;function c(h,b,w){for(let D of w){let O=D.include;if(O){if(typeof O!="string")throw My(o,"an 'include' attribute must be a string at: "+h);if(O[0]==="@"&&(O=O.substr(1)),!i.tokenizer[O])throw My(o,"include target '"+O+"' is not defined at: "+h);c(h+"."+O,b,i.tokenizer[O])}else{let j=new kci(h);if(Array.isArray(D)&&D.length>=1&&D.length<=3)if(j.setRegex(s,D[0]),D.length>=3)if(typeof D[1]=="string")j.setAction(s,{token:D[1],next:D[2]});else if(typeof D[1]=="object"){let F=D[1];F.next=D[2],j.setAction(s,F)}else throw My(o,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+h);else j.setAction(s,D[1]);else{if(!D.regex)throw My(o,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+h);D.name&&typeof D.name=="string"&&(j.name=D.name),D.matchOnlyAtStart&&(j.matchOnlyAtLineStart=b1t(D.matchOnlyAtLineStart,!1)),j.setRegex(s,D.regex),j.setAction(s,D.action)}b.push(j)}}}if(!i.tokenizer||typeof i.tokenizer!="object")throw My(o,"a language definition must define the 'tokenizer' attribute as an object");o.tokenizer=[];for(let h in i.tokenizer)if(i.tokenizer.hasOwnProperty(h)){o.start||(o.start=h);let b=i.tokenizer[h];o.tokenizer[h]=new Array,c("tokenizer."+h,o.tokenizer[h],b)}if(o.usesEmbedded=s.usesEmbedded,i.brackets){if(!Array.isArray(i.brackets))throw My(o,"the 'brackets' attribute must be defined as an array")}else i.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let _=[];for(let h of i.brackets){let b=h;if(b&&Array.isArray(b)&&b.length===3&&(b={token:b[2],open:b[0],close:b[1]}),b.open===b.close)throw My(o,"open and close brackets in a 'brackets' attribute must be different: "+b.open+` + hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof b.open=="string"&&typeof b.token=="string"&&typeof b.close=="string")_.push({token:b.token+o.tokenPostfix,open:VG(o,b.open),close:VG(o,b.close)});else throw My(o,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return o.brackets=_,o.noThrow=!0,o}var kci,zDi=Ht(()=>{Aei();kci=class{constructor(i){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=i}setRegex(i,o){let s;if(typeof o=="string")s=o;else if(o instanceof RegExp)s=o.source;else throw My(i,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=s.length>0&&s[0]==="^",this.name=this.name+": "+s,this.regex=xci(i,"^(?:"+(this.matchOnlyAtLineStart?s.substr(1):s)+")",!0)}setAction(i,o){this.action=Cci(i,this.name,o)}resolveRegex(i){return this.regex instanceof RegExp?this.regex:this.regex(i)}}});function iUi(l){Ode.registerLanguage(l)}function nUi(){let l=[];return l=l.concat(Ode.getLanguages()),l}function rUi(l){return Wu.get(up).languageIdCodec.encodeLanguageId(l)}function oUi(l,i){return Wu.withServices(()=>{let s=Wu.get(up).onDidRequestRichLanguageFeatures(c=>{c===l&&(s.dispose(),i())});return s})}function sUi(l,i){return Wu.withServices(()=>{let s=Wu.get(up).onDidRequestBasicLanguageFeatures(c=>{c===l&&(s.dispose(),i())});return s})}function aUi(l,i){if(!Wu.get(up).isRegisteredLanguageId(l))throw new Error(`Cannot set configuration for unknown language ${l}`);return Wu.get(Pf).register(l,i,100)}function cUi(l){return typeof l.getInitialState=="function"}function lUi(l){return"tokenizeEncoded"in l}function VDi(l){return l&&typeof l.then=="function"}function uUi(l){let i=Wu.get(yI);if(l){let o=[null];for(let s=1,c=l.length;s{let s=await Promise.resolve(i.create());return s?cUi(s)?HDi(l,s):new aAe(Wu.get(up),Wu.get(yI),l,wci(l,s),Wu.get(gl)):null});return Oh.registerFactory(l,o)}function dUi(l,i){if(!Wu.get(up).isRegisteredLanguageId(l))throw new Error(`Cannot set tokens provider for unknown language ${l}`);return VDi(i)?Eci(l,{create:()=>i}):Oh.register(l,HDi(l,i))}function fUi(l,i){let o=s=>new aAe(Wu.get(up),Wu.get(yI),l,wci(l,s),Wu.get(gl));return VDi(i)?Eci(l,{create:()=>i}):Oh.register(l,o(i))}function _Ui(l,i){return Wu.get(js).referenceProvider.register(l,i)}function pUi(l,i){return Wu.get(js).renameProvider.register(l,i)}function mUi(l,i){return Wu.get(js).newSymbolNamesProvider.register(l,i)}function hUi(l,i){return Wu.get(js).signatureHelpProvider.register(l,i)}function gUi(l,i){return Wu.get(js).hoverProvider.register(l,{provideHover:async(s,c,_,h)=>{let b=s.getWordAtPosition(c);return Promise.resolve(i.provideHover(s,c,_,h)).then(w=>{if(w)return!w.range&&b&&(w.range=new Vt(c.lineNumber,b.startColumn,c.lineNumber,b.endColumn)),w.range||(w.range=new Vt(c.lineNumber,c.column,c.lineNumber,c.column)),w})}})}function yUi(l,i){return Wu.get(js).documentSymbolProvider.register(l,i)}function vUi(l,i){return Wu.get(js).documentHighlightProvider.register(l,i)}function bUi(l,i){return Wu.get(js).linkedEditingRangeProvider.register(l,i)}function SUi(l,i){return Wu.get(js).definitionProvider.register(l,i)}function xUi(l,i){return Wu.get(js).implementationProvider.register(l,i)}function CUi(l,i){return Wu.get(js).typeDefinitionProvider.register(l,i)}function kUi(l,i){return Wu.get(js).codeLensProvider.register(l,i)}function wUi(l,i,o){return Wu.get(js).codeActionProvider.register(l,{providedCodeActionKinds:o?.providedCodeActionKinds,documentation:o?.documentation,provideCodeActions:(c,_,h,b)=>{let D=Wu.get(ZL).read({resource:c.uri}).filter(O=>Vt.areIntersectingOrTouching(O,_));return i.provideCodeActions(c,_,{markers:D,only:h.only,trigger:h.trigger},b)},resolveCodeAction:i.resolveCodeAction})}function TUi(l,i){return Wu.get(js).documentFormattingEditProvider.register(l,i)}function EUi(l,i){return Wu.get(js).documentRangeFormattingEditProvider.register(l,i)}function DUi(l,i){return Wu.get(js).onTypeFormattingEditProvider.register(l,i)}function IUi(l,i){return Wu.get(js).linkProvider.register(l,i)}function NUi(l,i){return Wu.get(js).completionProvider.register(l,i)}function AUi(l,i){return Wu.get(js).colorProvider.register(l,i)}function PUi(l,i){return Wu.get(js).foldingRangeProvider.register(l,i)}function LUi(l,i){return Wu.get(js).declarationProvider.register(l,i)}function OUi(l,i){return Wu.get(js).selectionRangeProvider.register(l,i)}function FUi(l,i){return Wu.get(js).documentSemanticTokensProvider.register(l,i)}function MUi(l,i){return Wu.get(js).documentRangeSemanticTokensProvider.register(l,i)}function RUi(l,i){return Wu.get(js).inlineCompletionsProvider.register(l,i)}function BUi(l,i){return Wu.get(js).inlineEditProvider.register(l,i)}function jUi(l,i){return Wu.get(js).inlayHintsProvider.register(l,i)}function UDi(){return{register:iUi,getLanguages:nUi,onLanguage:oUi,onLanguageEncountered:sUi,getEncodedLanguageId:rUi,setLanguageConfiguration:aUi,setColorMap:uUi,registerTokensProviderFactory:Eci,setTokensProvider:dUi,setMonarchTokensProvider:fUi,registerReferenceProvider:_Ui,registerRenameProvider:pUi,registerNewSymbolNameProvider:mUi,registerCompletionItemProvider:NUi,registerSignatureHelpProvider:hUi,registerHoverProvider:gUi,registerDocumentSymbolProvider:yUi,registerDocumentHighlightProvider:vUi,registerLinkedEditingRangeProvider:bUi,registerDefinitionProvider:SUi,registerImplementationProvider:xUi,registerTypeDefinitionProvider:CUi,registerCodeLensProvider:kUi,registerCodeActionProvider:wUi,registerDocumentFormattingEditProvider:TUi,registerDocumentRangeFormattingEditProvider:EUi,registerOnTypeFormattingEditProvider:DUi,registerLinkProvider:IUi,registerColorProvider:AUi,registerFoldingRangeProvider:PUi,registerDeclarationProvider:LUi,registerSelectionRangeProvider:OUi,registerDocumentSemanticTokensProvider:FUi,registerDocumentRangeSemanticTokensProvider:MUi,registerInlineCompletionsProvider:RUi,registerInlineEditProvider:BUi,registerInlayHintsProvider:jUi,DocumentHighlightKind:Qut,CompletionItemKind:qut,CompletionItemTag:$ut,CompletionItemInsertTextRule:Jut,SymbolKind:Idt,SymbolTag:Ndt,IndentAction:odt,CompletionTriggerKind:Gut,SignatureHelpTriggerKind:Ddt,InlayHintKind:adt,InlineCompletionTriggerKind:cdt,InlineEditTriggerKind:ldt,CodeActionTriggerType:Uut,NewSymbolNameTag:hdt,NewSymbolNameTriggerKind:gdt,PartialAcceptTriggerKind:bdt,HoverVerbosityAction:rdt,FoldingRangeKind:ML,SelectedSuggestionInfo:$4e}}var Tci,S1t,JDi=Ht(()=>{j1();ca();Fg();v2();R1();lj();dp();Fdt();Wvt();zDi();Fei();DPe();Rg();WX();Tci=class{constructor(i,o){this._languageId=i,this._actual=o}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(i,o,s){if(typeof this._actual.tokenize=="function")return S1t.adaptTokenize(this._languageId,this._actual,i,s);throw new Error("Not supported!")}tokenizeEncoded(i,o,s){let c=this._actual.tokenizeEncoded(i,s);return new yle(c.tokens,c.endState)}},S1t=class l{constructor(i,o,s,c){this._languageId=i,this._actual=o,this._languageService=s,this._standaloneThemeService=c}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(i,o){let s=[],c=0;for(let _=0,h=i.length;_0&&_[h-1]===F)continue;let X=j.startIndex;D===0?X=0:X{sd();du();am();f7();kc();HD();Fs();Dci=Wc("IEditorCancelService"),qDi=new Ms("cancellableOperation",!1,de("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));Ld(Dci,class{constructor(){this._tokens=new WeakMap}add(l,i){let o=this._tokens.get(l);o||(o=l.invokeWithinContext(c=>{let _=qDi.bindTo(c.get(La)),h=new L1;return{key:_,tokens:h}}),this._tokens.set(l,o));let s;return o.key.set(!0),s=o.tokens.push(i),()=>{s&&(s(),o.key.set(!o.tokens.isEmpty()),s=void 0)}}cancel(l){let i=this._tokens.get(l);if(!i)return;let o=i.tokens.pop();o&&(o.cancel(),i.key.set(!i.tokens.isEmpty()))}},1);x1t=class extends k_{constructor(i,o){super(o),this.editor=i,this._unregister=i.invokeWithinContext(s=>s.get(Dci).add(i,this))}dispose(){this._unregister(),super.dispose()}};Zs(new class extends w0{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:qDi})}runEditorCommand(l,i){l.get(Dci).cancel(i)}})});var rOe,n7,MPe,Due=Ht(()=>{Bl();ca();am();$r();$Di();rOe=class l{constructor(i,o){if(this.flags=o,this.flags&1){let s=i.getModel();this.modelVersionId=s?QB("{0}#{1}",s.uri.toString(),s.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=i.getPosition():this.position=null,this.flags&2?this.selection=i.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=i.getScrollLeft(),this.scrollTop=i.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(i){if(!(i instanceof l))return!1;let o=i;return!(this.modelVersionId!==o.modelVersionId||this.scrollLeft!==o.scrollLeft||this.scrollTop!==o.scrollTop||!this.position&&o.position||this.position&&!o.position||this.position&&o.position&&!this.position.equals(o.position)||!this.selection&&o.selection||this.selection&&!o.selection||this.selection&&o.selection&&!this.selection.equalsRange(o.selection))}validate(i){return this._equals(new l(i,this.flags))}},n7=class extends x1t{constructor(i,o,s,c){super(i,c),this._listener=new pr,o&4&&this._listener.add(i.onDidChangeCursorPosition(_=>{(!s||!Vt.containsPosition(s,_.position))&&this.cancel()})),o&2&&this._listener.add(i.onDidChangeCursorSelection(_=>{(!s||!Vt.containsRange(s,_.selection))&&this.cancel()})),o&8&&this._listener.add(i.onDidScrollChange(_=>this.cancel())),o&1&&(this._listener.add(i.onDidChangeModel(_=>this.cancel())),this._listener.add(i.onDidChangeModelContent(_=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}},MPe=class extends k_{constructor(i,o){super(o),this._listener=i.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}});function EW(l){return l&&typeof l.getEditorType=="function"?l.getEditorType()===Mle.ICodeEditor:!1}function gat(l){return l&&typeof l.getEditorType=="function"?l.getEditorType()===Mle.IDiffEditor:!1}function WUi(l){return!!l&&typeof l=="object"&&typeof l.onDidChangeActiveEditor=="function"}function C1t(l){return EW(l)?l:gat(l)?l.getModifiedEditor():WUi(l)&&EW(l.activeCodeEditor)?l.activeCodeEditor:null}var oOe=Ht(()=>{yrt()});var RPe,Ici=Ht(()=>{A7();ca();NPe();RPe=class l{static _handleEolEdits(i,o){let s,c=[];for(let _ of o)typeof _.eol=="number"&&(s=_.eol),_.range&&typeof _.text=="string"&&c.push(_);return typeof s=="number"&&i.hasModel()&&i.getModel().pushEOL(s),c}static _isFullModelReplaceEdit(i,o){if(!i.hasModel())return!1;let s=i.getModel(),c=s.validateRange(o.range);return s.getFullModelRange().equalsRange(c)}static execute(i,o,s){s&&i.pushUndoStop();let c=i3.capture(i),_=l._handleEolEdits(i,o);_.length===1&&l._isFullModelReplaceEdit(i,_[0])?i.executeEdits("formatEditsCommand",_.map(h=>eh.replace(Vt.lift(h.range),h.text))):i.executeEdits("formatEditsCommand",_.map(h=>eh.replaceMove(Vt.lift(h.range),h.text))),s&&i.pushUndoStop(),c.restoreRelativeVerticalPositionOfCursor(i)}}});var k1t,w1t,GDi=Ht(()=>{k1t=class{constructor(i){this.value=i,this._lower=i.toLowerCase()}static toKey(i){return typeof i=="string"?i.toLowerCase():i._lower}},w1t=class{constructor(i){if(this._set=new Set,i)for(let o of i)this.add(o)}add(i){this._set.add(k1t.toKey(i))}has(i){return this._set.has(k1t.toKey(i))}}});function KDi(l,i,o){let s=[],c=new w1t,_=l.ordered(o);for(let b of _)s.push(b),b.extensionId&&c.add(b.extensionId);let h=i.ordered(o);for(let b of h){if(b.extensionId){if(c.has(b.extensionId))continue;c.add(b.extensionId)}s.push({displayName:b.displayName,extensionId:b.extensionId,provideDocumentFormattingEdits(w,D,O){return b.provideDocumentRangeFormattingEdits(w,w.getFullModelRange(),D,O)}})}return s}async function Nci(l,i,o,s,c,_,h){let b=l.get(qs),{documentRangeFormattingEditProvider:w}=l.get(js),D=EW(i)?i.getModel():i,O=w.ordered(D),j=await BPe.select(O,D,s,2);j&&(c.report(j),await b.invokeFunction(zUi,j,i,o,_,h))}async function zUi(l,i,o,s,c,_){var h,b;let w=l.get(eI),D=l.get(Nv),O=l.get(t7),j,F;EW(o)?(j=o.getModel(),F=new n7(o,5,void 0,c)):(j=o,F=new MPe(o,c));let X=[],K=0;for(let Ye of O4e(s).sort(Vt.compareRangesUsingStarts))K>0&&Vt.areIntersectingOrTouching(X[K-1],Ye)?X[K-1]=Vt.fromPositions(X[K-1].getStartPosition(),Ye.getEndPosition()):K=X.push(Ye);let re=async Ye=>{var ft,Ct;D.trace("[format][provideDocumentRangeFormattingEdits] (request)",(ft=i.extensionId)===null||ft===void 0?void 0:ft.value,Ye);let Et=await i.provideDocumentRangeFormattingEdits(j,Ye,j.getFormattingOptions(),F.token)||[];return D.trace("[format][provideDocumentRangeFormattingEdits] (response)",(Ct=i.extensionId)===null||Ct===void 0?void 0:Ct.value,Et),Et},Pe=(Ye,ft)=>{if(!Ye.length||!ft.length)return!1;let Ct=Ye.reduce((Et,St)=>Vt.plusRange(Et,St.range),Ye[0].range);if(!ft.some(Et=>Vt.intersectRanges(Ct,Et.range)))return!1;for(let Et of Ye)for(let St of ft)if(Vt.intersectRanges(Et.range,St.range))return!0;return!1},Le=[],Je=[];try{if(typeof i.provideDocumentRangesFormattingEdits=="function"){D.trace("[format][provideDocumentRangeFormattingEdits] (request)",(h=i.extensionId)===null||h===void 0?void 0:h.value,X);let Ye=await i.provideDocumentRangesFormattingEdits(j,X,j.getFormattingOptions(),F.token)||[];D.trace("[format][provideDocumentRangeFormattingEdits] (response)",(b=i.extensionId)===null||b===void 0?void 0:b.value,Ye),Je.push(Ye)}else{for(let Ye of X){if(F.token.isCancellationRequested)return!0;Je.push(await re(Ye))}for(let Ye=0;Ye({text:Ct.text,range:Vt.lift(Ct.range),forceMoveMarkers:!0})),Ct=>{for(let{range:Et}of Ct)if(Vt.areIntersectingOrTouching(Et,ft))return[new ya(Et.startLineNumber,Et.startColumn,Et.endLineNumber,Et.endColumn)];return null})}return O.playSignal(ad.format,{userGesture:_}),!0}async function XDi(l,i,o,s,c,_){let h=l.get(qs),b=l.get(js),w=EW(i)?i.getModel():i,D=KDi(b.documentFormattingEditProvider,b.documentRangeFormattingEditProvider,w),O=await BPe.select(D,w,o,1);O&&(s.report(O),await h.invokeFunction(VUi,O,i,o,c,_))}async function VUi(l,i,o,s,c,_){let h=l.get(eI),b=l.get(t7),w,D;EW(o)?(w=o.getModel(),D=new n7(o,5,void 0,c)):(w=o,D=new MPe(o,c));let O;try{let j=await i.provideDocumentFormattingEdits(w,w.getFormattingOptions(),D.token);if(O=await h.computeMoreMinimalEdits(w.uri,j),D.token.isCancellationRequested)return!0}finally{D.dispose()}if(!O||O.length===0)return!1;if(EW(o))RPe.execute(o,O,s!==2),s!==2&&o.revealPositionInCenterIfOutsideViewport(o.getPosition(),1);else{let[{range:j}]=O,F=new ya(j.startLineNumber,j.startColumn,j.endLineNumber,j.endColumn);w.pushEditOperations([F],O.map(X=>({text:X.text,range:Vt.lift(X.range),forceMoveMarkers:!0})),X=>{for(let{range:K}of X)if(Vt.areIntersectingOrTouching(K,F))return[new ya(K.startLineNumber,K.startColumn,K.endLineNumber,K.endColumn)];return null})}return b.playSignal(ad.format,{userGesture:_}),!0}async function HUi(l,i,o,s,c,_){let h=i.documentRangeFormattingEditProvider.ordered(o);for(let b of h){let w=await Promise.resolve(b.provideDocumentRangeFormattingEdits(o,s,c,_)).catch(Rp);if(k1(w))return await l.computeMoreMinimalEdits(o.uri,w)}}async function UUi(l,i,o,s,c){let _=KDi(i.documentFormattingEditProvider,i.documentRangeFormattingEditProvider,o);for(let h of _){let b=await Promise.resolve(h.provideDocumentFormattingEdits(o,s,c)).catch(Rp);if(k1(b))return await l.computeMoreMinimalEdits(o.uri,b)}}function Aci(l,i,o,s,c,_,h){let b=i.onTypeFormattingEditProvider.ordered(o);return b.length===0||b[0].autoFormatTriggerCharacters.indexOf(c)<0?Promise.resolve(void 0):Promise.resolve(b[0].provideOnTypeFormattingEdits(o,s,c,_,h)).catch(Rp).then(w=>l.computeMoreMinimalEdits(o.uri,w))}var BPe,Pci=Ht(()=>{su();am();Pl();sP();f7();cm();Lh();Due();oOe();Ll();ca();hg();gue();b7();Ici();gg();GDi();kc();dp();aL();$fe();BPe=class l{static setFormatterSelector(i){return{dispose:l._selectors.unshift(i)}}static async select(i,o,s,c){if(i.length===0)return;let _=jd.first(l._selectors);if(_)return await _(i,o,s,c)}};BPe._selectors=new L1;Ku.registerCommand("_executeFormatRangeProvider",async function(l,...i){let[o,s,c]=i;Xd(Ka.isUri(o)),Xd(Vt.isIRange(s));let _=l.get(XS),h=l.get(eI),b=l.get(js),w=await _.createModelReference(o);try{return HUi(h,b,w.object.textEditorModel,Vt.lift(s),c,Du.None)}finally{w.dispose()}});Ku.registerCommand("_executeFormatDocumentProvider",async function(l,...i){let[o,s]=i;Xd(Ka.isUri(o));let c=l.get(XS),_=l.get(eI),h=l.get(js),b=await c.createModelReference(o);try{return UUi(_,h,b.object.textEditorModel,s,Du.None)}finally{b.dispose()}});Ku.registerCommand("_executeFormatOnTypeProvider",async function(l,...i){let[o,s,c,_]=i;Xd(Ka.isUri(o)),Xd(Cn.isIPosition(s)),Xd(typeof c=="string");let h=l.get(XS),b=l.get(eI),w=l.get(js),D=await h.createModelReference(o);try{return Aci(b,w,D.object.textEditorModel,Cn.lift(s),c,_,Du.None)}finally{D.dispose()}})});var T0={};ou(T0,{CancellationTokenSource:()=>JUi,Emitter:()=>qUi,KeyCode:()=>$Ui,KeyMod:()=>GUi,MarkerSeverity:()=>Fci,MarkerTag:()=>QUi,Position:()=>KUi,Range:()=>Oci,Selection:()=>XUi,SelectionDirection:()=>YUi,Token:()=>eJi,Uri:()=>ZUi,editor:()=>ZX,languages:()=>yat});var EL,JUi,qUi,$Ui,GUi,KUi,Oci,XUi,YUi,Fci,QUi,ZUi,eJi,ZX,yat,Lci,HC=Ht(()=>{FC();SQt();BDi();JDi();Pci();OL.wrappingIndent.defaultValue=0;OL.glyphMargin.defaultValue=!1;OL.autoIndent.defaultValue=3;OL.overviewRulerLanes.defaultValue=2;BPe.setFormatterSelector((l,i,o)=>Promise.resolve(l[0]));EL=Mdt();EL.editor=RDi();EL.languages=UDi();JUi=EL.CancellationTokenSource,qUi=EL.Emitter,$Ui=EL.KeyCode,GUi=EL.KeyMod,KUi=EL.Position,Oci=EL.Range,XUi=EL.Selection,YUi=EL.SelectionDirection,Fci=EL.MarkerSeverity,QUi=EL.MarkerTag,ZUi=EL.Uri,eJi=EL.Token,ZX=EL.editor,yat=EL.languages,Lci=globalThis.MonacoEnvironment;(Lci?.globalAPI||typeof define=="function"&&define.amd)&&(globalThis.monaco=EL);typeof globalThis.require<"u"&&typeof globalThis.require.config=="function"&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})});var eIi={};ou(eIi,{conf:()=>aJi,language:()=>cJi});var aJi,cJi,tIi=Ht(()=>{aJi={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},cJi={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","and","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","between","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condense","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","equiv","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","find","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","in","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","insert","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","lines","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","match","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","no-scrolling","no-sign","no-title","no-topofpage","no-zero","node","nodes","non-unicode","non-unique","not","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","or","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replace","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","table","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","translate","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abap_system_timezone","abap_user_timezone","access","action","adabas","adjust_numbers","allow_precision_loss","allowed","amdp","applicationuser","as_geo_json","as400","associations","balance","behavior","breakup","bulk","cds","cds_client","check_before_save","child","clients","corr","corr_spearman","cross","cycles","datn_add_days","datn_add_months","datn_days_between","dats_from_datn","dats_tims_to_tstmp","dats_to_datn","db2","db6","ddl","dense_rank","depth","deterministic","discarding","entities","entity","error","failed","finalize","first_value","fltp_to_dec","following","fractional","full","graph","grouping","hierarchy","hierarchy_ancestors","hierarchy_ancestors_aggregate","hierarchy_descendants","hierarchy_descendants_aggregate","hierarchy_siblings","incremental","indicators","lag","last_value","lead","leaves","like_regexpr","link","locale_sap","lock","locks","many","mapped","matched","measures","median","mssqlnt","multiple","nodetype","ntile","nulls","occurrences_regexpr","one","operations","oracle","orphans","over","parent","parents","partition","pcre","period","pfcg_mapping","preceding","privileged","product","projection","rank","redirected","replace_regexpr","reported","response","responses","root","row","row_number","sap_system_date","save","schema","session","sets","shortdump","siblings","spantree","start","stddev","string_agg","subtotal","sybase","tims_from_timn","tims_to_timn","to_blob","to_clob","total","trace-entry","tstmp_to_dats","tstmp_to_dst","tstmp_to_tims","tstmpl_from_utcl","tstmpl_to_utcl","unbounded","utcl_add_seconds","utcl_current","utcl_seconds_between","uuid","var","verbatim"],builtinFunctions:["abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","ipow","line_exists","line_index","log","log10","matches","nmax","nmin","numofchar","repeat","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","accp","char","clnt","cuky","curr","datn","dats","d16d","d16n","d16r","d34d","d34n","d34r","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","geom_ewkb","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","timn","tims","unit","utcl","df16_scl","df34_scl","prec","varc","abap_bool","abap_false","abap_true","abap_undefined","me","screen","space","super","sy","syst","table_line","*sys*"],builtinMethods:["class_constructor","constructor"],derivedTypes:["%CID","%CID_REF","%CONTROL","%DATA","%ELEMENT","%FAIL","%KEY","%MSG","%PARAM","%PID","%PID_ASSOC","%PID_PARENT","%_HINTS"],cdsLanguage:["@AbapAnnotation","@AbapCatalog","@AccessControl","@API","@ClientDependent","@ClientHandling","@CompatibilityContract","@DataAging","@EndUserText","@Environment","@LanguageDependency","@MappingRole","@Metadata","@MetadataExtension","@ObjectModel","@Scope","@Semantics","$EXTENSION","$SELF"],selectors:["->","->*","=>","~","~*"],operators:[" +"," -","/","*","**","div","mod","=","#","@","+=","-=","*=","/=","**=","&&=","?=","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","<"," >","<=",">=","<>","><","=<","=>","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","le","lt","na","nb","ne","np","ns","*/","*:","--","/*","//"],symbols:/[=>))*/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@cdsLanguage":"annotation","@derivedTypes":"type","@builtinFunctions":"type","@builtinMethods":"type","@operators":"key","@default":"identifier"}}],[/<[\w]+>/,"identifier"],[/##[\w|_]+/,"comment"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@selectors":"tag","@operators":"key","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}}});var iIi={};ou(iIi,{conf:()=>lJi,language:()=>fJi});var lJi,uJi,dJi,T1t,fJi,nIi=Ht(()=>{lJi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},uJi=["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"],dJi=l=>l.charAt(0).toUpperCase()+l.substr(1),T1t=[];uJi.forEach(l=>{T1t.push(l),T1t.push(l.toUpperCase()),T1t.push(dJi(l))});fJi={defaultToken:"",tokenPostfix:".apex",keywords:T1t,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}});var rIi={};ou(rIi,{conf:()=>_Ji,language:()=>pJi});var _Ji,pJi,oIi=Ht(()=>{_Ji={comments:{lineComment:"#"}},pJi={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}});var sIi={};ou(sIi,{conf:()=>mJi,language:()=>hJi});var mJi,hJi,aIi=Ht(()=>{mJi={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},hJi={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>wJi,language:()=>TJi});var gJi,yJi,vJi,bJi,SJi,xJi,CJi,kJi,wJi,TJi,lIi=Ht(()=>{gJi=l=>`\\b${l}\\b`,yJi="[_a-zA-Z]",vJi="[_a-zA-Z0-9]",bJi=gJi(`${yJi}${vJi}*`),SJi=["targetScope","resource","module","param","var","output","for","in","if","existing"],xJi=["true","false","null"],CJi="[ \\t\\r\\n]",kJi="[0-9]+",wJi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:`:.,=}])' + `,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},TJi={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=>EJi,language:()=>DJi});var EJi,DJi,dIi=Ht(()=>{EJi={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},DJi={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}});var fIi={};ou(fIi,{conf:()=>IJi,language:()=>NJi});var IJi,NJi,_Ii=Ht(()=>{IJi={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},NJi={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}});var pIi={};ou(pIi,{conf:()=>AJi,language:()=>PJi});var AJi,PJi,mIi=Ht(()=>{AJi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},PJi={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=>LJi,language:()=>OJi});var LJi,OJi,Bci=Ht(()=>{LJi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},OJi={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m512","__m512d","__m512i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>="],symbols:/[=>\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*\\$/,"comment","@linecomment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],linecomment:[[/.*[^\\]$/,"comment","@pop"],[/[^]+/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/[^)]+/,"string.raw"],[/\)$S2\"/,{token:"string.raw.end",next:"@pop"}],[/\)/,"string.raw"]],annotation:[{include:"@whitespace"},[/using|alignas/,"keyword"],[/[a-zA-Z0-9_]+/,"annotation"],[/[,:]/,"delimiter"],[/[()]/,"@brackets"],[/\]\s*\]/,{token:"annotation",next:"@pop"}]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}});var hIi={};ou(hIi,{conf:()=>FJi,language:()=>MJi});var FJi,MJi,gIi=Ht(()=>{FJi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},MJi={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}});var yIi={};ou(yIi,{conf:()=>RJi,language:()=>BJi});var RJi,BJi,vIi=Ht(()=>{RJi={brackets:[],autoClosingPairs:[],surroundingPairs:[]},BJi={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=>jJi,language:()=>WJi});var jJi,WJi,SIi=Ht(()=>{jJi={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},WJi={defaultToken:"",tokenPostfix:".css",ws:`[ +\r\f]*`,identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},[`[^)\r +]+`,"string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}});var xIi={};ou(xIi,{conf:()=>zJi,language:()=>VJi});var zJi,VJi,CIi=Ht(()=>{zJi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},VJi={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","-->","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}}});var kIi={};ou(kIi,{conf:()=>HJi,language:()=>UJi});var HJi,UJi,wIi=Ht(()=>{HJi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},UJi={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}}});var TIi={};ou(TIi,{conf:()=>JJi,language:()=>qJi});var JJi,qJi,EIi=Ht(()=>{JJi={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},qJi={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}});var DIi={};ou(DIi,{conf:()=>$Ji,language:()=>GJi});var $Ji,GJi,IIi=Ht(()=>{$Ji={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},GJi={defaultToken:"",tokenPostfix:".ecl",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],pounds:["append","break","declare","demangle","end","for","getdatatype","if","inmodule","loop","mangle","onwarning","option","set","stored","uniquename"].join("|"),keywords:["__compressed__","after","all","and","any","as","atmost","before","beginc","best","between","case","cluster","compressed","compression","const","counter","csv","default","descend","embed","encoding","encrypt","end","endc","endembed","endmacro","enum","escape","except","exclusive","expire","export","extend","fail","few","fileposition","first","flat","forward","from","full","function","functionmacro","group","grouped","heading","hole","ifblock","import","in","inner","interface","internal","joined","keep","keyed","last","left","limit","linkcounted","literal","little_endian","load","local","locale","lookup","lzw","macro","many","maxcount","maxlength","min skew","module","mofn","multiple","named","namespace","nocase","noroot","noscan","nosort","not","noxpath","of","onfail","only","opt","or","outer","overwrite","packed","partition","penalty","physicallength","pipe","prefetch","quote","record","repeat","retry","return","right","right1","right2","rows","rowset","scan","scope","self","separator","service","shared","skew","skip","smart","soapaction","sql","stable","store","terminator","thor","threshold","timelimit","timeout","token","transform","trim","type","unicodeorder","unordered","unsorted","unstable","update","use","validate","virtual","whole","width","wild","within","wnotrim","xml","xpath"],functions:["abs","acos","aggregate","allnodes","apply","ascii","asin","assert","asstring","atan","atan2","ave","build","buildindex","case","catch","choose","choosen","choosesets","clustersize","combine","correlation","cos","cosh","count","covariance","cron","dataset","dedup","define","denormalize","dictionary","distribute","distributed","distribution","ebcdic","enth","error","evaluate","event","eventextra","eventname","exists","exp","fail","failcode","failmessage","fetch","fromunicode","fromxml","getenv","getisvalid","global","graph","group","hash","hash32","hash64","hashcrc","hashmd5","having","httpcall","httpheader","if","iff","index","intformat","isvalid","iterate","join","keydiff","keypatch","keyunicode","length","library","limit","ln","loadxml","local","log","loop","map","matched","matchlength","matchposition","matchtext","matchunicode","max","merge","mergejoin","min","nofold","nolocal","nonempty","normalize","nothor","notify","output","parallel","parse","pipe","power","preload","process","project","pull","random","range","rank","ranked","realformat","recordof","regexfind","regexreplace","regroup","rejected","rollup","round","roundup","row","rowdiff","sample","sequential","set","sin","sinh","sizeof","soapcall","sort","sorted","sqrt","stepped","stored","sum","table","tan","tanh","thisnode","topn","tounicode","toxml","transfer","transform","trim","truncate","typeof","ungroup","unicodeorder","variance","wait","which","workunit","xmldecode","xmlencode","xmltext","xmlunicode"],typesint:["integer","unsigned"].join("|"),typesnum:["data","qstring","string","unicode","utf8","varstring","varunicode"],typesone:["ascii","big_endian","boolean","data","decimal","ebcdic","grouped","integer","linkcounted","pattern","qstring","real","record","rule","set of","streamed","string","token","udecimal","unicode","unsigned","utf8","varstring","varunicode"].join("|"),operators:["+","-","/",":=","<","<>","=",">","\\","and","in","not","or"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}});var NIi={};ou(NIi,{conf:()=>KJi,language:()=>XJi});var KJi,XJi,AIi=Ht(()=>{KJi={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:'"',close:'"'}],autoClosingPairs:[{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["comment"]},{open:'"""',close:'"""'},{open:"`",close:"`",notIn:["string","comment"]},{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"<<",close:">>"}],indentationRules:{increaseIndentPattern:/^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,decreaseIndentPattern:/^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/}},XJi={defaultToken:"source",tokenPostfix:".elixir",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"<<",close:">>",token:"delimiter.angle.special"}],declarationKeywords:["def","defp","defn","defnp","defguard","defguardp","defmacro","defmacrop","defdelegate","defcallback","defmacrocallback","defmodule","defprotocol","defexception","defimpl","defstruct"],operatorKeywords:["and","in","not","or","when"],namespaceKeywords:["alias","import","require","use"],otherKeywords:["after","case","catch","cond","do","else","end","fn","for","if","quote","raise","receive","rescue","super","throw","try","unless","unquote_splicing","unquote","with"],constants:["true","false","nil"],nameBuiltin:["__MODULE__","__DIR__","__ENV__","__CALLER__","__STACKTRACE__"],operator:/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,variableName:/[a-z_][a-zA-Z0-9_]*[?!]?/,atomName:/[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,specialAtomName:/\.\.\.|<<>>|%\{\}|%|\{\}/,aliasPart:/[A-Z][a-zA-Z0-9_]*/,moduleName:/@aliasPart(?:\.@aliasPart)*/,sigilSymmetricDelimiter:/"""|'''|"|'|\/|\|/,sigilStartDelimiter:/@sigilSymmetricDelimiter|<|\{|\[|\(/,sigilEndDelimiter:/@sigilSymmetricDelimiter|>|\}|\]|\)/,sigilModifiers:/[a-zA-Z0-9]*/,decimal:/\d(?:_?\d)*/,hex:/[0-9a-fA-F](_?[0-9a-fA-F])*/,octal:/[0-7](_?[0-7])*/,binary:/[01](_?[01])*/,escape:/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@keywordsShorthand"},{include:"@numbers"},{include:"@identifiers"},{include:"@strings"},{include:"@atoms"},{include:"@sigils"},{include:"@attributes"},{include:"@symbols"}],whitespace:[[/\s+/,"white"]],comments:[[/(#)(.*)/,["comment.punctuation","comment"]]],keywordsShorthand:[[/(@atomName)(:)(\s+)/,["constant","constant.punctuation","white"]],[/"(?=([^"]|#\{.*?\}|\\")*":)/,{token:"constant.delimiter",next:"@doubleQuotedStringKeyword"}],[/'(?=([^']|#\{.*?\}|\\')*':)/,{token:"constant.delimiter",next:"@singleQuotedStringKeyword"}]],doubleQuotedStringKeyword:[[/":/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringKeyword:[[/':/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],numbers:[[/0b@binary/,"number.binary"],[/0o@octal/,"number.octal"],[/0x@hex/,"number.hex"],[/@decimal\.@decimal([eE]-?@decimal)?/,"number.float"],[/@decimal/,"number"]],identifiers:[[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,["keyword.declaration","white",{cases:{unquote:"keyword","@default":"function"}}]],[/(@variableName)(?=\s*\.?\s*\()/,{cases:{"@declarationKeywords":"keyword.declaration","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@default":"function.call"}}],[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,["type.identifier","white","operator","white","function.call"]],[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,["constant.punctuation","constant","white","operator","white","function.call"]],[/(\|>)(\s*)(@variableName)/,["operator","white",{cases:{"@otherKeywords":"keyword","@default":"function.call"}}]],[/(&)(\s*)(@variableName)/,["operator","white","function.call"]],[/@variableName/,{cases:{"@declarationKeywords":"keyword.declaration","@operatorKeywords":"keyword.operator","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@constants":"constant.language","@nameBuiltin":"variable.language","_.*":"comment.unused","@default":"identifier"}}],[/@moduleName/,"type.identifier"]],strings:[[/"""/,{token:"string.delimiter",next:"@doubleQuotedHeredoc"}],[/'''/,{token:"string.delimiter",next:"@singleQuotedHeredoc"}],[/"/,{token:"string.delimiter",next:"@doubleQuotedString"}],[/'/,{token:"string.delimiter",next:"@singleQuotedString"}]],doubleQuotedHeredoc:[[/"""/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedHeredoc:[[/'''/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],doubleQuotedString:[[/"/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedString:[[/'/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],atoms:[[/(:)(@atomName)/,["constant.punctuation","constant"]],[/:"/,{token:"constant.delimiter",next:"@doubleQuotedStringAtom"}],[/:'/,{token:"constant.delimiter",next:"@singleQuotedStringAtom"}]],doubleQuotedStringAtom:[[/"/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringAtom:[[/'/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],sigils:[[/~[a-z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.interpol"}],[/~([A-Z]+)@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.noInterpol"}]],sigil:[[/~([a-z]|[A-Z]+)\{/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.{.}"}],[/~([a-z]|[A-Z]+)\[/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.[.]"}],[/~([a-z]|[A-Z]+)\(/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.(.)"}],[/~([a-z]|[A-Z]+)\"}],[/~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.$2.$2"}]],"sigilStart.interpol.s":[[/~s@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.s":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContentInterpol"}],"sigilStart.noInterpol.S":[[/~S@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.S":[[/(^|[^\\])\\@sigilEndDelimiter/,"string"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContent"}],"sigilStart.interpol.r":[[/~r@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.r":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContentInterpol"}],"sigilStart.noInterpol.R":[[/~R@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.R":[[/(^|[^\\])\\@sigilEndDelimiter/,"regexp"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContent"}],"sigilStart.interpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContentInterpol"}],"sigilStart.noInterpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol":[[/(^|[^\\])\\@sigilEndDelimiter/,"sigil"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContent"}],attributes:[[/\@(module|type)?doc (~[sS])?"""/,{token:"comment.block.documentation",next:"@doubleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?'''/,{token:"comment.block.documentation",next:"@singleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?"/,{token:"comment.block.documentation",next:"@doubleQuotedStringDocstring"}],[/\@(module|type)?doc (~[sS])?'/,{token:"comment.block.documentation",next:"@singleQuotedStringDocstring"}],[/\@(module|type)?doc false/,"comment.block.documentation"],[/\@(@variableName)/,"variable"]],doubleQuotedHeredocDocstring:[[/"""/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedHeredocDocstring:[[/'''/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],doubleQuotedStringDocstring:[[/"/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedStringDocstring:[[/'/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],symbols:[[/\?(\\.|[^\\\s])/,"number.constant"],[/&\d+/,"operator"],[/<<<|>>>/,"operator"],[/[()\[\]\{\}]|<<|>>/,"@brackets"],[/\.\.\./,"identifier"],[/=>/,"punctuation"],[/@operator/,"operator"],[/[:;,.%]/,"punctuation"]],stringContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringContent"}],stringContent:[[/./,"string"]],stringConstantContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringConstantContent"}],stringConstantContent:[[/./,"constant"]],regexpContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@regexpContent"}],regexpContent:[[/(\s)(#)(\s.*)$/,["white","comment.punctuation","comment"]],[/./,"regexp"]],sigilContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@sigilContent"}],sigilContent:[[/./,"sigil"]],docstringContent:[[/./,"comment.block.documentation"]],escapeChar:[[/@escape/,"constant.character.escape"]],interpolation:[[/#{/,{token:"delimiter.bracket.embed",next:"@interpolationContinue"}]],interpolationContinue:[[/}/,{token:"delimiter.bracket.embed",next:"@pop"}],{include:"@root"}]}}});var PIi={};ou(PIi,{conf:()=>YJi,language:()=>QJi});var YJi,QJi,LIi=Ht(()=>{YJi={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},QJi={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}});var OIi={};ou(OIi,{conf:()=>ZJi,language:()=>eqi});var ZJi,eqi,FIi=Ht(()=>{ZJi={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},eqi={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}});var Xfe={};ou(Xfe,{TagAngleInterpolationBracket:()=>lqi,TagAngleInterpolationDollar:()=>aqi,TagAutoInterpolationBracket:()=>fqi,TagAutoInterpolationDollar:()=>dqi,TagBracketInterpolationBracket:()=>uqi,TagBracketInterpolationDollar:()=>cqi});function I1t(l){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${l.open}--`,`--${l.close}`]},autoCloseBefore:` +\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${l.open}#(?:${D1t.join("|")})([^/${l.close}]*(?!/)${l.close})[^${l.open}]*$`),end:new RegExp(`${l.open}/#(?:${D1t.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${l.open}#(?!(?:${E1t.join("|")}))([a-zA-Z_]+)([^/${l.close}]*(?!/)${l.close})[^${l.open}]*$`),afterText:new RegExp(`^${l.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${l.close}$`),action:{indentAction:bat.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${l.open}#(?!(?:${E1t.join("|")}))([a-zA-Z_]+)([^/${l.close}]*(?!/)${l.close})[^${l.open}]*$`),action:{indentAction:bat.languages.IndentAction.Indent}}]}}function RIi(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` +\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${D1t.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${D1t.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${E1t.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:bat.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${E1t.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:bat.languages.IndentAction.Indent}}]}}function jPe(l,i){let o=`_${l.id}_${i.id}`,s=_=>_.replace(/__id__/g,o),c=_=>{let h=_.source.replace(/__id__/g,o);return new RegExp(h,_.flags)};return{unicode:!0,includeLF:!1,start:s("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[s("open__id__")]:new RegExp(l.open),[s("close__id__")]:new RegExp(l.close),[s("iOpen1__id__")]:new RegExp(i.open1),[s("iOpen2__id__")]:new RegExp(i.open2),[s("iClose__id__")]:new RegExp(i.close),[s("startTag__id__")]:c(/(@open__id__)(#)/),[s("endTag__id__")]:c(/(@open__id__)(\/#)/),[s("startOrEndTag__id__")]:c(/(@open__id__)(\/?#)/),[s("closeTag1__id__")]:c(/((?:@blank)*)(@close__id__)/),[s("closeTag2__id__")]:c(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[s("default__id__")]:[{include:s("@directive_token__id__")},{include:s("@interpolation_and_text_token__id__")}],[s("fmExpression__id__.directive")]:[{include:s("@blank_and_expression_comment_token__id__")},{include:s("@directive_end_token__id__")},{include:s("@expression_token__id__")}],[s("fmExpression__id__.interpolation")]:[{include:s("@blank_and_expression_comment_token__id__")},{include:s("@expression_token__id__")},{include:s("@greater_operators_token__id__")}],[s("inParen__id__.plain")]:[{include:s("@blank_and_expression_comment_token__id__")},{include:s("@directive_end_token__id__")},{include:s("@expression_token__id__")}],[s("inParen__id__.gt")]:[{include:s("@blank_and_expression_comment_token__id__")},{include:s("@expression_token__id__")},{include:s("@greater_operators_token__id__")}],[s("noSpaceExpression__id__")]:[{include:s("@no_space_expression_end_token__id__")},{include:s("@directive_end_token__id__")},{include:s("@expression_token__id__")}],[s("unifiedCall__id__")]:[{include:s("@unified_call_token__id__")}],[s("singleString__id__")]:[{include:s("@string_single_token__id__")}],[s("doubleString__id__")]:[{include:s("@string_double_token__id__")}],[s("rawSingleString__id__")]:[{include:s("@string_single_raw_token__id__")}],[s("rawDoubleString__id__")]:[{include:s("@string_double_raw_token__id__")}],[s("expressionComment__id__")]:[{include:s("@expression_comment_token__id__")}],[s("noParse__id__")]:[{include:s("@no_parse_token__id__")}],[s("terseComment__id__")]:[{include:s("@terse_comment_token__id__")}],[s("directive_token__id__")]:[[c(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${i.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${i.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:s("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[c(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${i.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${i.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[c(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${i.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${i.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:s("@fmExpression__id__.directive")}]],[c(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${i.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${i.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[c(/(@open__id__)(@)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${i.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${i.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:s("@unifiedCall__id__")}]],[c(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[c(/(@open__id__)#--/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${i.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${i.id}`}}}:{token:"comment",next:s("@terseComment__id__")}],[c(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),l.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${i.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${i.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:s("@fmExpression__id__.directive")}]]],[s("interpolation_and_text_token__id__")]:[[c(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:i.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:i.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:s("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[s("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[s("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[s("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[s("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[s("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:s("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:s("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:s("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:s("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:s("@inParen__id__.gt")},"@default":{token:"@brackets",next:s("@inParen__id__.plain")}}},"\\]":{cases:{...i.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...l.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[s("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:s("@inParen__id__.gt")},"\\)":{cases:{[s("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:s("@inParen__id__.gt")},"@default":{token:"@brackets",next:s("@inParen__id__.plain")}}},"\\}":{cases:{...i.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[s("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[s("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:s("@expressionComment__id__")}]],[s("directive_end_token__id__")]:[[/>/,l.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[c(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[s("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[s("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:s("@fmExpression__id__.directive")}]],[s("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:s("@fmExpression__id__.directive")}]],[c(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:s("@noSpaceExpression__id__")}]],[s("no_parse_token__id__")]:[[c(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[s("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[s("terse_comment_token__id__")]:[[c(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function BIi(l){let i=jPe(Sat,l),o=jPe(xat,l),s=jPe(sqi,l);return{...i,...o,...s,unicode:!0,includeLF:!1,start:`default_auto_${l.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...i.tokenizer,...o.tokenizer,...s.tokenizer}}}var tqi,iqi,nqi,rqi,MIi,oqi,bat,E1t,D1t,Sat,xat,sqi,jci,Wci,aqi,cqi,lqi,uqi,dqi,fqi,Yfe=Ht(()=>{HC();tqi=Object.defineProperty,iqi=Object.getOwnPropertyDescriptor,nqi=Object.getOwnPropertyNames,rqi=Object.prototype.hasOwnProperty,MIi=(l,i,o,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of nqi(i))!rqi.call(l,c)&&c!==o&&tqi(l,c,{get:()=>i[c],enumerable:!(s=iqi(i,c))||s.enumerable});return l},oqi=(l,i,o)=>(MIi(l,i,"default"),o&&MIi(o,i,"default")),bat={};oqi(bat,T0);E1t=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],D1t=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],Sat={close:">",id:"angle",open:"<"},xat={close:"\\]",id:"bracket",open:"\\["},sqi={close:"[>\\]]",id:"auto",open:"[<\\[]"},jci={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},Wci={close:"\\]",id:"bracket",open1:"\\[",open2:"="};aqi={conf:I1t(Sat),language:jPe(Sat,jci)},cqi={conf:I1t(xat),language:jPe(xat,jci)},lqi={conf:I1t(Sat),language:jPe(Sat,Wci)},uqi={conf:I1t(xat),language:jPe(xat,Wci)},dqi={conf:RIi(),language:BIi(jci)},fqi={conf:RIi(),language:BIi(Wci)}});var jIi={};ou(jIi,{conf:()=>_qi,language:()=>pqi});var _qi,pqi,WIi=Ht(()=>{_qi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},pqi={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}});var zIi={};ou(zIi,{conf:()=>mqi,language:()=>hqi});var mqi,hqi,VIi=Ht(()=>{mqi={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},hqi={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}});var JIi={};ou(JIi,{conf:()=>xqi,language:()=>Cqi});var gqi,yqi,vqi,bqi,HIi,Sqi,zci,UIi,xqi,Cqi,qIi=Ht(()=>{HC();gqi=Object.defineProperty,yqi=Object.getOwnPropertyDescriptor,vqi=Object.getOwnPropertyNames,bqi=Object.prototype.hasOwnProperty,HIi=(l,i,o,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of vqi(i))!bqi.call(l,c)&&c!==o&&gqi(l,c,{get:()=>i[c],enumerable:!(s=yqi(i,c))||s.enumerable});return l},Sqi=(l,i,o)=>(HIi(l,i,"default"),o&&HIi(o,i,"default")),zci={};Sqi(zci,T0);UIi=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],xqi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${UIi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:zci.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${UIi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:zci.languages.IndentAction.Indent}}]},Cqi={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}});var $Ii={};ou($Ii,{conf:()=>kqi,language:()=>wqi});var kqi,wqi,GIi=Ht(()=>{kqi={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},wqi={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}}});var YIi={};ou(YIi,{conf:()=>Aqi,language:()=>Pqi});var Tqi,Eqi,Dqi,Iqi,KIi,Nqi,Vci,XIi,Aqi,Pqi,QIi=Ht(()=>{HC();Tqi=Object.defineProperty,Eqi=Object.getOwnPropertyDescriptor,Dqi=Object.getOwnPropertyNames,Iqi=Object.prototype.hasOwnProperty,KIi=(l,i,o,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Dqi(i))!Iqi.call(l,c)&&c!==o&&Tqi(l,c,{get:()=>i[c],enumerable:!(s=Eqi(i,c))||s.enumerable});return l},Nqi=(l,i,o)=>(KIi(l,i,"default"),o&&KIi(o,i,"default")),Vci={};Nqi(Vci,T0);XIi=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],Aqi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${XIi.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:Vci.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${XIi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:Vci.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},Pqi={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}});var ZIi={};ou(ZIi,{conf:()=>Lqi,language:()=>Oqi});var Lqi,Oqi,eNi=Ht(()=>{Lqi={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},Oqi={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}});var tNi={};ou(tNi,{conf:()=>Fqi,language:()=>Mqi});var Fqi,Mqi,iNi=Ht(()=>{Fqi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},Mqi={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}});var rNi={};ou(rNi,{conf:()=>Hci,language:()=>DW});var Rqi,Bqi,jqi,Wqi,nNi,zqi,Cat,Hci,DW,Uci=Ht(()=>{HC();Rqi=Object.defineProperty,Bqi=Object.getOwnPropertyDescriptor,jqi=Object.getOwnPropertyNames,Wqi=Object.prototype.hasOwnProperty,nNi=(l,i,o,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of jqi(i))!Wqi.call(l,c)&&c!==o&&Rqi(l,c,{get:()=>i[c],enumerable:!(s=Bqi(i,c))||s.enumerable});return l},zqi=(l,i,o)=>(nNi(l,i,"default"),o&&nNi(o,i,"default")),Cat={};zqi(Cat,T0);Hci={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:Cat.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:Cat.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:Cat.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:Cat.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},DW={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}});var oNi={};ou(oNi,{conf:()=>Vqi,language:()=>Hqi});var Vqi,Hqi,sNi=Ht(()=>{Uci();Vqi=Hci,Hqi={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:DW.operators,symbols:DW.symbols,escapes:DW.escapes,digits:DW.digits,octaldigits:DW.octaldigits,binarydigits:DW.binarydigits,hexdigits:DW.hexdigits,regexpctl:DW.regexpctl,regexpesc:DW.regexpesc,tokenizer:DW.tokenizer}});var aNi={};ou(aNi,{conf:()=>Uqi,language:()=>Jqi});var Uqi,Jqi,cNi=Ht(()=>{Uqi={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},Jqi={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","\u03C0","\u212F","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","\xF7","\u2208","\u2209","\u220B","\u220C","\u2218","\u221A","\u221B","\u2229","\u222A","\u2248","\u2249","\u2260","\u2261","\u2262","\u2264","\u2265","\u2286","\u2287","\u2288","\u2289","\u228A","\u228B","\u22BB"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/Ï€|ℯ|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}}});var lNi={};ou(lNi,{conf:()=>qqi,language:()=>$qi});var qqi,$qi,uNi=Ht(()=>{qqi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},$qi={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}});var dNi={};ou(dNi,{conf:()=>Gqi,language:()=>Kqi});var Gqi,Kqi,fNi=Ht(()=>{Gqi={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},Kqi={defaultToken:"",tokenPostfix:".less",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",identifierPlus:"-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},[`[^)\r +]+`,"string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}}});var _Ni={};ou(_Ni,{conf:()=>Xqi,language:()=>Yqi});var Xqi,Yqi,pNi=Ht(()=>{Xqi={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},Yqi={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}});var mNi={};ou(mNi,{conf:()=>Qqi,language:()=>Zqi});var Qqi,Zqi,hNi=Ht(()=>{Qqi={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},Zqi={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=>o$i,language:()=>s$i});var e$i,t$i,i$i,n$i,gNi,r$i,Jci,yNi,o$i,s$i,bNi=Ht(()=>{HC();e$i=Object.defineProperty,t$i=Object.getOwnPropertyDescriptor,i$i=Object.getOwnPropertyNames,n$i=Object.prototype.hasOwnProperty,gNi=(l,i,o,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of i$i(i))!n$i.call(l,c)&&c!==o&&e$i(l,c,{get:()=>i[c],enumerable:!(s=t$i(i,c))||s.enumerable});return l},r$i=(l,i,o)=>(gNi(l,i,"default"),o&&gNi(o,i,"default")),Jci={};r$i(Jci,T0);yNi=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o$i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[[""],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${yNi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:Jci.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${yNi.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:Jci.languages.IndentAction.Indent}}]},s$i={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[//,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}}});var SNi={};ou(SNi,{conf:()=>a$i,language:()=>c$i});var a$i,c$i,xNi=Ht(()=>{a$i={comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"(*",close:"*)"},{open:"<*",close:"*>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},c$i={defaultToken:"",tokenPostfix:".m3",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["AND","ANY","ARRAY","AS","BEGIN","BITS","BRANDED","BY","CASE","CONST","DIV","DO","ELSE","ELSIF","END","EVAL","EXCEPT","EXCEPTION","EXIT","EXPORTS","FINALLY","FOR","FROM","GENERIC","IF","IMPORT","IN","INTERFACE","LOCK","LOOP","METHODS","MOD","MODULE","NOT","OBJECT","OF","OR","OVERRIDES","PROCEDURE","RAISE","RAISES","READONLY","RECORD","REF","REPEAT","RETURN","REVEAL","SET","THEN","TO","TRY","TYPE","TYPECASE","UNSAFE","UNTIL","UNTRACED","VALUE","VAR","WHILE","WITH"],reservedConstNames:["ABS","ADR","ADRSIZE","BITSIZE","BYTESIZE","CEILING","DEC","DISPOSE","FALSE","FIRST","FLOAT","FLOOR","INC","ISTYPE","LAST","LOOPHOLE","MAX","MIN","NARROW","NEW","NIL","NUMBER","ORD","ROUND","SUBARRAY","TRUE","TRUNC","TYPECODE","VAL"],reservedTypeNames:["ADDRESS","ANY","BOOLEAN","CARDINAL","CHAR","EXTENDED","INTEGER","LONGCARD","LONGINT","LONGREAL","MUTEX","NULL","REAL","REFANY","ROOT","TEXT"],operators:["+","-","*","/","&","^","."],relations:["=","#","<","<=",">",">=","<:",":"],delimiters:["|","..","=>",",",";",":="],symbols:/[>=<#.,:;+\-*/&^]+/,escapes:/\\(?:[\\fnrt"']|[0-7]{3})/,tokenizer:{root:[[/_\w*/,"invalid"],[/[a-zA-Z][a-zA-Z0-9_]*/,{cases:{"@keywords":{token:"keyword.$0"},"@reservedConstNames":{token:"constant.reserved.$0"},"@reservedTypeNames":{token:"type.reserved.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/,"number.float"],[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/,"number"],[/@symbols/,{cases:{"@operators":"operators","@relations":"operators","@delimiters":"delimiter","@default":"invalid"}}],[/'[^\\']'/,"string.char"],[/(')(@escapes)(')/,["string.char","string.escape","string.char"]],[/'/,"invalid"],[/"([^"\\]|\\.)*$/,"invalid"],[/"/,"string.text","@text"]],text:[[/[^\\"]+/,"string.text"],[/@escapes/,"string.escape"],[/\\./,"invalid"],[/"/,"string.text","@pop"]],comment:[[/\(\*/,"comment","@push"],[/\*\)/,"comment","@pop"],[/./,"comment"]],pragma:[[/<\*/,"keyword.pragma","@push"],[/\*>/,"keyword.pragma","@pop"],[/./,"keyword.pragma"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/<\*/,"keyword.pragma","@pragma"]]}}});var CNi={};ou(CNi,{conf:()=>l$i,language:()=>u$i});var l$i,u$i,kNi=Ht(()=>{l$i={comments:{blockComment:[""]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},u$i={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[//,"comment","@pop"],[//,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}});var qNi={};ou(qNi,{conf:()=>M$i,language:()=>R$i});var M$i,R$i,$Ni=Ht(()=>{M$i={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},R$i={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}}});var GNi={};ou(GNi,{conf:()=>B$i,language:()=>j$i});var B$i,j$i,KNi=Ht(()=>{B$i={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},j$i={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}});var XNi={};ou(XNi,{conf:()=>W$i,language:()=>z$i});var W$i,z$i,YNi=Ht(()=>{W$i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment","identifier"]},{open:"[",close:"]",notIn:["string","comment","identifier"]},{open:"(",close:")",notIn:["string","comment","identifier"]},{open:"{",close:"}",notIn:["string","comment","identifier"]}]},z$i={defaultToken:"",tokenPostfix:".pq",ignoreCase:!1,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],operatorKeywords:["and","not","or"],keywords:["as","each","else","error","false","if","in","is","let","meta","otherwise","section","shared","then","true","try","type"],constructors:["#binary","#date","#datetime","#datetimezone","#duration","#table","#time"],constants:["#infinity","#nan","#sections","#shared"],typeKeywords:["action","any","anynonnull","none","null","logical","number","time","date","datetime","datetimezone","duration","text","binary","list","record","table","function"],builtinFunctions:["Access.Database","Action.Return","Action.Sequence","Action.Try","ActiveDirectory.Domains","AdoDotNet.DataSource","AdoDotNet.Query","AdobeAnalytics.Cubes","AnalysisServices.Database","AnalysisServices.Databases","AzureStorage.BlobContents","AzureStorage.Blobs","AzureStorage.Tables","Binary.Buffer","Binary.Combine","Binary.Compress","Binary.Decompress","Binary.End","Binary.From","Binary.FromList","Binary.FromText","Binary.InferContentType","Binary.Length","Binary.ToList","Binary.ToText","BinaryFormat.7BitEncodedSignedInteger","BinaryFormat.7BitEncodedUnsignedInteger","BinaryFormat.Binary","BinaryFormat.Byte","BinaryFormat.ByteOrder","BinaryFormat.Choice","BinaryFormat.Decimal","BinaryFormat.Double","BinaryFormat.Group","BinaryFormat.Length","BinaryFormat.List","BinaryFormat.Null","BinaryFormat.Record","BinaryFormat.SignedInteger16","BinaryFormat.SignedInteger32","BinaryFormat.SignedInteger64","BinaryFormat.Single","BinaryFormat.Text","BinaryFormat.Transform","BinaryFormat.UnsignedInteger16","BinaryFormat.UnsignedInteger32","BinaryFormat.UnsignedInteger64","Byte.From","Character.FromNumber","Character.ToNumber","Combiner.CombineTextByDelimiter","Combiner.CombineTextByEachDelimiter","Combiner.CombineTextByLengths","Combiner.CombineTextByPositions","Combiner.CombineTextByRanges","Comparer.Equals","Comparer.FromCulture","Comparer.Ordinal","Comparer.OrdinalIgnoreCase","Csv.Document","Cube.AddAndExpandDimensionColumn","Cube.AddMeasureColumn","Cube.ApplyParameter","Cube.AttributeMemberId","Cube.AttributeMemberProperty","Cube.CollapseAndRemoveColumns","Cube.Dimensions","Cube.DisplayFolders","Cube.Measures","Cube.Parameters","Cube.Properties","Cube.PropertyKey","Cube.ReplaceDimensions","Cube.Transform","Currency.From","DB2.Database","Date.AddDays","Date.AddMonths","Date.AddQuarters","Date.AddWeeks","Date.AddYears","Date.Day","Date.DayOfWeek","Date.DayOfWeekName","Date.DayOfYear","Date.DaysInMonth","Date.EndOfDay","Date.EndOfMonth","Date.EndOfQuarter","Date.EndOfWeek","Date.EndOfYear","Date.From","Date.FromText","Date.IsInCurrentDay","Date.IsInCurrentMonth","Date.IsInCurrentQuarter","Date.IsInCurrentWeek","Date.IsInCurrentYear","Date.IsInNextDay","Date.IsInNextMonth","Date.IsInNextNDays","Date.IsInNextNMonths","Date.IsInNextNQuarters","Date.IsInNextNWeeks","Date.IsInNextNYears","Date.IsInNextQuarter","Date.IsInNextWeek","Date.IsInNextYear","Date.IsInPreviousDay","Date.IsInPreviousMonth","Date.IsInPreviousNDays","Date.IsInPreviousNMonths","Date.IsInPreviousNQuarters","Date.IsInPreviousNWeeks","Date.IsInPreviousNYears","Date.IsInPreviousQuarter","Date.IsInPreviousWeek","Date.IsInPreviousYear","Date.IsInYearToDate","Date.IsLeapYear","Date.Month","Date.MonthName","Date.QuarterOfYear","Date.StartOfDay","Date.StartOfMonth","Date.StartOfQuarter","Date.StartOfWeek","Date.StartOfYear","Date.ToRecord","Date.ToText","Date.WeekOfMonth","Date.WeekOfYear","Date.Year","DateTime.AddZone","DateTime.Date","DateTime.FixedLocalNow","DateTime.From","DateTime.FromFileTime","DateTime.FromText","DateTime.IsInCurrentHour","DateTime.IsInCurrentMinute","DateTime.IsInCurrentSecond","DateTime.IsInNextHour","DateTime.IsInNextMinute","DateTime.IsInNextNHours","DateTime.IsInNextNMinutes","DateTime.IsInNextNSeconds","DateTime.IsInNextSecond","DateTime.IsInPreviousHour","DateTime.IsInPreviousMinute","DateTime.IsInPreviousNHours","DateTime.IsInPreviousNMinutes","DateTime.IsInPreviousNSeconds","DateTime.IsInPreviousSecond","DateTime.LocalNow","DateTime.Time","DateTime.ToRecord","DateTime.ToText","DateTimeZone.FixedLocalNow","DateTimeZone.FixedUtcNow","DateTimeZone.From","DateTimeZone.FromFileTime","DateTimeZone.FromText","DateTimeZone.LocalNow","DateTimeZone.RemoveZone","DateTimeZone.SwitchZone","DateTimeZone.ToLocal","DateTimeZone.ToRecord","DateTimeZone.ToText","DateTimeZone.ToUtc","DateTimeZone.UtcNow","DateTimeZone.ZoneHours","DateTimeZone.ZoneMinutes","Decimal.From","Diagnostics.ActivityId","Diagnostics.Trace","DirectQueryCapabilities.From","Double.From","Duration.Days","Duration.From","Duration.FromText","Duration.Hours","Duration.Minutes","Duration.Seconds","Duration.ToRecord","Duration.ToText","Duration.TotalDays","Duration.TotalHours","Duration.TotalMinutes","Duration.TotalSeconds","Embedded.Value","Error.Record","Excel.CurrentWorkbook","Excel.Workbook","Exchange.Contents","Expression.Constant","Expression.Evaluate","Expression.Identifier","Facebook.Graph","File.Contents","Folder.Contents","Folder.Files","Function.From","Function.Invoke","Function.InvokeAfter","Function.IsDataSource","GoogleAnalytics.Accounts","Guid.From","HdInsight.Containers","HdInsight.Contents","HdInsight.Files","Hdfs.Contents","Hdfs.Files","Informix.Database","Int16.From","Int32.From","Int64.From","Int8.From","ItemExpression.From","Json.Document","Json.FromValue","Lines.FromBinary","Lines.FromText","Lines.ToBinary","Lines.ToText","List.Accumulate","List.AllTrue","List.Alternate","List.AnyTrue","List.Average","List.Buffer","List.Combine","List.Contains","List.ContainsAll","List.ContainsAny","List.Count","List.Covariance","List.DateTimeZones","List.DateTimes","List.Dates","List.Difference","List.Distinct","List.Durations","List.FindText","List.First","List.FirstN","List.Generate","List.InsertRange","List.Intersect","List.IsDistinct","List.IsEmpty","List.Last","List.LastN","List.MatchesAll","List.MatchesAny","List.Max","List.MaxN","List.Median","List.Min","List.MinN","List.Mode","List.Modes","List.NonNullCount","List.Numbers","List.PositionOf","List.PositionOfAny","List.Positions","List.Product","List.Random","List.Range","List.RemoveFirstN","List.RemoveItems","List.RemoveLastN","List.RemoveMatchingItems","List.RemoveNulls","List.RemoveRange","List.Repeat","List.ReplaceMatchingItems","List.ReplaceRange","List.ReplaceValue","List.Reverse","List.Select","List.Single","List.SingleOrDefault","List.Skip","List.Sort","List.StandardDeviation","List.Sum","List.Times","List.Transform","List.TransformMany","List.Union","List.Zip","Logical.From","Logical.FromText","Logical.ToText","MQ.Queue","MySQL.Database","Number.Abs","Number.Acos","Number.Asin","Number.Atan","Number.Atan2","Number.BitwiseAnd","Number.BitwiseNot","Number.BitwiseOr","Number.BitwiseShiftLeft","Number.BitwiseShiftRight","Number.BitwiseXor","Number.Combinations","Number.Cos","Number.Cosh","Number.Exp","Number.Factorial","Number.From","Number.FromText","Number.IntegerDivide","Number.IsEven","Number.IsNaN","Number.IsOdd","Number.Ln","Number.Log","Number.Log10","Number.Mod","Number.Permutations","Number.Power","Number.Random","Number.RandomBetween","Number.Round","Number.RoundAwayFromZero","Number.RoundDown","Number.RoundTowardZero","Number.RoundUp","Number.Sign","Number.Sin","Number.Sinh","Number.Sqrt","Number.Tan","Number.Tanh","Number.ToText","OData.Feed","Odbc.DataSource","Odbc.Query","OleDb.DataSource","OleDb.Query","Oracle.Database","Percentage.From","PostgreSQL.Database","RData.FromBinary","Record.AddField","Record.Combine","Record.Field","Record.FieldCount","Record.FieldNames","Record.FieldOrDefault","Record.FieldValues","Record.FromList","Record.FromTable","Record.HasFields","Record.RemoveFields","Record.RenameFields","Record.ReorderFields","Record.SelectFields","Record.ToList","Record.ToTable","Record.TransformFields","Replacer.ReplaceText","Replacer.ReplaceValue","RowExpression.Column","RowExpression.From","Salesforce.Data","Salesforce.Reports","SapBusinessWarehouse.Cubes","SapHana.Database","SharePoint.Contents","SharePoint.Files","SharePoint.Tables","Single.From","Soda.Feed","Splitter.SplitByNothing","Splitter.SplitTextByAnyDelimiter","Splitter.SplitTextByDelimiter","Splitter.SplitTextByEachDelimiter","Splitter.SplitTextByLengths","Splitter.SplitTextByPositions","Splitter.SplitTextByRanges","Splitter.SplitTextByRepeatedLengths","Splitter.SplitTextByWhitespace","Sql.Database","Sql.Databases","SqlExpression.SchemaFrom","SqlExpression.ToExpression","Sybase.Database","Table.AddColumn","Table.AddIndexColumn","Table.AddJoinColumn","Table.AddKey","Table.AggregateTableColumn","Table.AlternateRows","Table.Buffer","Table.Column","Table.ColumnCount","Table.ColumnNames","Table.ColumnsOfType","Table.Combine","Table.CombineColumns","Table.Contains","Table.ContainsAll","Table.ContainsAny","Table.DemoteHeaders","Table.Distinct","Table.DuplicateColumn","Table.ExpandListColumn","Table.ExpandRecordColumn","Table.ExpandTableColumn","Table.FillDown","Table.FillUp","Table.FilterWithDataTable","Table.FindText","Table.First","Table.FirstN","Table.FirstValue","Table.FromColumns","Table.FromList","Table.FromPartitions","Table.FromRecords","Table.FromRows","Table.FromValue","Table.Group","Table.HasColumns","Table.InsertRows","Table.IsDistinct","Table.IsEmpty","Table.Join","Table.Keys","Table.Last","Table.LastN","Table.MatchesAllRows","Table.MatchesAnyRows","Table.Max","Table.MaxN","Table.Min","Table.MinN","Table.NestedJoin","Table.Partition","Table.PartitionValues","Table.Pivot","Table.PositionOf","Table.PositionOfAny","Table.PrefixColumns","Table.Profile","Table.PromoteHeaders","Table.Range","Table.RemoveColumns","Table.RemoveFirstN","Table.RemoveLastN","Table.RemoveMatchingRows","Table.RemoveRows","Table.RemoveRowsWithErrors","Table.RenameColumns","Table.ReorderColumns","Table.Repeat","Table.ReplaceErrorValues","Table.ReplaceKeys","Table.ReplaceMatchingRows","Table.ReplaceRelationshipIdentity","Table.ReplaceRows","Table.ReplaceValue","Table.ReverseRows","Table.RowCount","Table.Schema","Table.SelectColumns","Table.SelectRows","Table.SelectRowsWithErrors","Table.SingleRow","Table.Skip","Table.Sort","Table.SplitColumn","Table.ToColumns","Table.ToList","Table.ToRecords","Table.ToRows","Table.TransformColumnNames","Table.TransformColumnTypes","Table.TransformColumns","Table.TransformRows","Table.Transpose","Table.Unpivot","Table.UnpivotOtherColumns","Table.View","Table.ViewFunction","TableAction.DeleteRows","TableAction.InsertRows","TableAction.UpdateRows","Tables.GetRelationships","Teradata.Database","Text.AfterDelimiter","Text.At","Text.BeforeDelimiter","Text.BetweenDelimiters","Text.Clean","Text.Combine","Text.Contains","Text.End","Text.EndsWith","Text.Format","Text.From","Text.FromBinary","Text.Insert","Text.Length","Text.Lower","Text.Middle","Text.NewGuid","Text.PadEnd","Text.PadStart","Text.PositionOf","Text.PositionOfAny","Text.Proper","Text.Range","Text.Remove","Text.RemoveRange","Text.Repeat","Text.Replace","Text.ReplaceRange","Text.Select","Text.Split","Text.SplitAny","Text.Start","Text.StartsWith","Text.ToBinary","Text.ToList","Text.Trim","Text.TrimEnd","Text.TrimStart","Text.Upper","Time.EndOfHour","Time.From","Time.FromText","Time.Hour","Time.Minute","Time.Second","Time.StartOfHour","Time.ToRecord","Time.ToText","Type.AddTableKey","Type.ClosedRecord","Type.Facets","Type.ForFunction","Type.ForRecord","Type.FunctionParameters","Type.FunctionRequiredParameters","Type.FunctionReturn","Type.Is","Type.IsNullable","Type.IsOpenRecord","Type.ListItem","Type.NonNullable","Type.OpenRecord","Type.RecordFields","Type.ReplaceFacets","Type.ReplaceTableKeys","Type.TableColumn","Type.TableKeys","Type.TableRow","Type.TableSchema","Type.Union","Uri.BuildQueryString","Uri.Combine","Uri.EscapeDataString","Uri.Parts","Value.Add","Value.As","Value.Compare","Value.Divide","Value.Equals","Value.Firewall","Value.FromText","Value.Is","Value.Metadata","Value.Multiply","Value.NativeQuery","Value.NullableEquals","Value.RemoveMetadata","Value.ReplaceMetadata","Value.ReplaceType","Value.Subtract","Value.Type","ValueAction.NativeStatement","ValueAction.Replace","Variable.Value","Web.Contents","Web.Page","WebAction.Request","Xml.Document","Xml.Tables"],builtinConstants:["BinaryEncoding.Base64","BinaryEncoding.Hex","BinaryOccurrence.Optional","BinaryOccurrence.Repeating","BinaryOccurrence.Required","ByteOrder.BigEndian","ByteOrder.LittleEndian","Compression.Deflate","Compression.GZip","CsvStyle.QuoteAfterDelimiter","CsvStyle.QuoteAlways","Culture.Current","Day.Friday","Day.Monday","Day.Saturday","Day.Sunday","Day.Thursday","Day.Tuesday","Day.Wednesday","ExtraValues.Error","ExtraValues.Ignore","ExtraValues.List","GroupKind.Global","GroupKind.Local","JoinAlgorithm.Dynamic","JoinAlgorithm.LeftHash","JoinAlgorithm.LeftIndex","JoinAlgorithm.PairwiseHash","JoinAlgorithm.RightHash","JoinAlgorithm.RightIndex","JoinAlgorithm.SortMerge","JoinKind.FullOuter","JoinKind.Inner","JoinKind.LeftAnti","JoinKind.LeftOuter","JoinKind.RightAnti","JoinKind.RightOuter","JoinSide.Left","JoinSide.Right","MissingField.Error","MissingField.Ignore","MissingField.UseNull","Number.E","Number.Epsilon","Number.NaN","Number.NegativeInfinity","Number.PI","Number.PositiveInfinity","Occurrence.All","Occurrence.First","Occurrence.Last","Occurrence.Optional","Occurrence.Repeating","Occurrence.Required","Order.Ascending","Order.Descending","Precision.Decimal","Precision.Double","QuoteStyle.Csv","QuoteStyle.None","RelativePosition.FromEnd","RelativePosition.FromStart","RoundingMode.AwayFromZero","RoundingMode.Down","RoundingMode.ToEven","RoundingMode.TowardZero","RoundingMode.Up","SapHanaDistribution.All","SapHanaDistribution.Connection","SapHanaDistribution.Off","SapHanaDistribution.Statement","SapHanaRangeOperator.Equals","SapHanaRangeOperator.GreaterThan","SapHanaRangeOperator.GreaterThanOrEquals","SapHanaRangeOperator.LessThan","SapHanaRangeOperator.LessThanOrEquals","SapHanaRangeOperator.NotEquals","TextEncoding.Ascii","TextEncoding.BigEndianUnicode","TextEncoding.Unicode","TextEncoding.Utf16","TextEncoding.Utf8","TextEncoding.Windows","TraceLevel.Critical","TraceLevel.Error","TraceLevel.Information","TraceLevel.Verbose","TraceLevel.Warning","WebMethod.Delete","WebMethod.Get","WebMethod.Head","WebMethod.Patch","WebMethod.Post","WebMethod.Put"],builtinTypes:["Action.Type","Any.Type","Binary.Type","BinaryEncoding.Type","BinaryOccurrence.Type","Byte.Type","ByteOrder.Type","Character.Type","Compression.Type","CsvStyle.Type","Currency.Type","Date.Type","DateTime.Type","DateTimeZone.Type","Day.Type","Decimal.Type","Double.Type","Duration.Type","ExtraValues.Type","Function.Type","GroupKind.Type","Guid.Type","Int16.Type","Int32.Type","Int64.Type","Int8.Type","JoinAlgorithm.Type","JoinKind.Type","JoinSide.Type","List.Type","Logical.Type","MissingField.Type","None.Type","Null.Type","Number.Type","Occurrence.Type","Order.Type","Password.Type","Percentage.Type","Precision.Type","QuoteStyle.Type","Record.Type","RelativePosition.Type","RoundingMode.Type","SapHanaDistribution.Type","SapHanaRangeOperator.Type","Single.Type","Table.Type","Text.Type","TextEncoding.Type","Time.Type","TraceLevel.Type","Type.Type","Uri.Type","WebMethod.Type"],tokenizer:{root:[[/#"[\w \.]+"/,"identifier.quote"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+([eE][\-+]?\d+)?/,"number"],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@constructors":"constructor","@operatorKeywords":"operators","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":"type","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":"keyword.function","@builtinConstants":"constant","@default":"identifier"}}],[/\b([a-zA-Z_][\w\.]*)\b/,"identifier"],{include:"@whitespace"},{include:"@comments"},{include:"@strings"},[/[{}()\[\]]/,"@brackets"],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,"operators"],[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],strings:[['"',"string","@string"]],string:[['""',"string.escape"],['"',"string","@pop"],[".","string"]]}}});var QNi={};ou(QNi,{conf:()=>V$i,language:()=>H$i});var V$i,H$i,ZNi=Ht(()=>{V$i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},H$i={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}});var eAi={};ou(eAi,{conf:()=>J$i,language:()=>q$i});var U$i,J$i,q$i,tAi=Ht(()=>{U$i=["true","false"],J$i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],autoCloseBefore:`.,=}])>' + `,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},q$i={defaultToken:"",tokenPostfix:".proto",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=>/,{token:"@brackets",bracket:"@close",switchTo:"identifier"}]],field:[{include:"@whitespace"},["group",{cases:{"$S2==proto2":{token:"keyword",switchTo:"@groupDecl.$S2"}}}],[/(@identifier)(\s*)(=)/,["identifier","white",{token:"delimiter",next:"@pop"}]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}]],groupDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],["=","operator"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}],{include:"@constant"}],type:[{include:"@whitespace"},[/@identifier/,"type.identifier","@pop"],[/./,"delimiter"]],identifier:[{include:"@whitespace"},[/@identifier/,"identifier","@pop"]],serviceDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@serviceBody.$S2"}]],serviceBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/rpc\b/,"keyword","@rpc.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],rpc:[{include:"@whitespace"},[/@identifier/,"identifier"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@request.$S2"}],[/{/,{token:"@brackets",bracket:"@open",next:"@methodOptions.$S2"}],[/;/,"delimiter","@pop"]],request:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@returns.$S2"}]],returns:[{include:"@whitespace"},[/returns\b/,"keyword"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@response.$S2"}]],response:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@rpc.$S2"}]],methodOptions:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],["option","keyword"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],constant:[["@boolLit","keyword.constant"],["@hexLit","number.hex"],["@octalLit","number.octal"],["@decimalLit","number"],["@floatLit","number.float"],[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/'/,{token:"string.quote",bracket:"@open",next:"@stringSingle"}],[/{/,{token:"@brackets",bracket:"@open",next:"@prototext"}],[/identifier/,"identifier"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],prototext:[{include:"@whitespace"},{include:"@constant"},[/@identifier/,"identifier"],[/[:;]/,"delimiter"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]]}}});var iAi={};ou(iAi,{conf:()=>$$i,language:()=>G$i});var $$i,G$i,nAi=Ht(()=>{$$i={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},G$i={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/"]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${_Ai.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:qci.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${_Ai.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:qci.languages.IndentAction.Indent}}]},fGi={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}});var hAi={};ou(hAi,{conf:()=>_Gi,language:()=>pGi});var _Gi,pGi,gAi=Ht(()=>{_Gi={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},pGi={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}});var yAi={};ou(yAi,{conf:()=>mGi,language:()=>hGi});var mGi,hGi,vAi=Ht(()=>{mGi={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},hGi={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","AZ64","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LANGUAGE","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY16","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}});var bAi={};ou(bAi,{conf:()=>gGi,language:()=>yGi});var gGi,yGi,SAi=Ht(()=>{gGi={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},yGi={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,simpleRefNameWithoutBq:/(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@phrase`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}}});var xAi={};ou(xAi,{conf:()=>vGi,language:()=>bGi});var vGi,bGi,CAi=Ht(()=>{vGi={comments:{lineComment:"#",blockComment:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],indentationRules:{increaseIndentPattern:new RegExp(`^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|("|'|/).*\\4)*(#.*)?$`),decreaseIndentPattern:new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}},bGi={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}}});var kAi={};ou(kAi,{conf:()=>SGi,language:()=>xGi});var SGi,xGi,wAi=Ht(()=>{SGi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},xGi={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","async","await","box","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","try","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/r(#*)"/,{token:"string.quote",bracket:"@open",next:"@stringraw.$1"}],[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'(\S|@escapes)'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringraw:[[/[^"#]+/,{token:"string"}],[/"(#*)/,{cases:{"$1==$S2":{token:"string.quote",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["#]/,{token:"string"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}}});var TAi={};ou(TAi,{conf:()=>CGi,language:()=>kGi});var CGi,kGi,EAi=Ht(()=>{CGi={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},kGi={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}});var DAi={};ou(DAi,{conf:()=>wGi,language:()=>TGi});var wGi,TGi,IAi=Ht(()=>{wGi={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},TGi={tokenPostfix:".scala",keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],softKeywords:["as","export","extension","end","derives","on"],constants:["true","false","null","this","super"],modifiers:["abstract","final","implicit","lazy","override","private","protected","sealed"],softModifiers:["inline","opaque","open","transparent","using"],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=>))/,["@brackets","white","variable"]],[/@name/,{cases:{"@keywords":"keyword","@softKeywords":"keyword","@modifiers":"keyword.modifier","@softModifiers":"keyword.modifier","@constants":{token:"constant",next:"@allowMethod"},"@default":{token:"identifier",next:"@allowMethod"}}}],[/@type/,"type","@allowMethod"],{include:"@whitespace"},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,"annotation"],[/[{(]/,"@brackets"],[/[})]/,"@brackets","@allowMethod"],[/\[/,"operator.square"],[/](?!\s*(?:va[rl]|def|type)\b)/,"operator.square","@allowMethod"],[/]/,"operator.square"],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/,"keyword"],[/@symbols/,"operator"],[/[;,\.]/,"delimiter"],[/'[a-zA-Z$][\w$]*(?!')/,"attribute.name"],[/'[^\\']'/,"string","@allowMethod"],[/(')(@escapes)(')/,["string","string.escape",{token:"string",next:"@allowMethod"}]],[/'/,"string.invalid"]],import:[[/;/,"delimiter","@pop"],[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/@name|@type/,"type"],[/[(){}]/,"@brackets"],[/[[\]]/,"operator.square"],[/[\.,]/,"delimiter"]],allowMethod:[[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/(?==>[\s\w([{])/,"keyword","@pop"],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:"keyword",next:"@pop"},"->|<-|>:|<:|<%":{token:"keyword",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],case:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword","@allowMethod"],[/\bif\b|=>/,"keyword","@pop"],[/`[^`]+`/,"identifier","@allowMethod"],[/@name/,"variable","@allowMethod"],[/:::?|\||@(?![a-z_$])/,"keyword"],{include:"@root"}],vardef:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword"],[/@name/,"variable"],[/:::?|\||@(?![a-z_$])/,"keyword"],[/=|:(?!:)/,"operator","@pop"],[/$/,"white","@pop"],{include:"@root"}],string:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],stringt:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],fstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],fstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],sstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],sstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],interp:[[/{/,"operator","@push"],[/}/,"operator","@pop"],{include:"@root"}],rawstring:[[/[^"]/,"string"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],rawstringt:[[/[^"]/,"string"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}});var NAi={};ou(NAi,{conf:()=>EGi,language:()=>DGi});var EGi,DGi,AAi=Ht(()=>{EGi={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},DGi={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}}});var PAi={};ou(PAi,{conf:()=>IGi,language:()=>NGi});var IGi,NGi,LAi=Ht(()=>{IGi={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},NGi={defaultToken:"",tokenPostfix:".scss",ws:`[ +\r\f]*`,identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@variabledeclaration"},{include:"@warndebug"},["[@](include)",{token:"keyword",next:"@includedeclaration"}],["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["[@](function)",{token:"keyword",next:"@functiondeclaration"}],["[@](mixin)",{token:"keyword",next:"@mixindeclaration"}],["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@controlstatement"},{include:"@selectorname"},["[&\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.curly",next:"@selectorbody"}]],selectorbody:[["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],{include:"@selector"},["[@](extend)",{token:"keyword",next:"@extendbody"}],["[@](return)",{token:"keyword",next:"@declarationbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],selectorname:[["#{",{token:"meta",next:"@variableinterpolation"}],["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@functioninvocation"},{include:"@numbers"},{include:"@strings"},{include:"@variablereference"},["(and\\b|or\\b|not\\b)","operator"],{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","operator"],[",","delimiter"],["!default","literal"],["\\(",{token:"delimiter.parenthesis",next:"@parenthizedterm"}]],rulevalue:[{include:"@term"},["!important","literal"],[";","delimiter","@pop"],["{",{token:"delimiter.curly",switchTo:"@nestedproperty"}],["(?=})",{token:"",next:"@pop"}]],nestedproperty:[["[*_]?@identifier@ws:","attribute.name","@rulevalue"],{include:"@comments"},["}",{token:"delimiter.curly",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],variabledeclaration:[["\\$@identifier@ws:","variable.decl","@declarationbody"]],urldeclaration:[{include:"@strings"},[`[^)\r +]+`,"string"],["\\)",{token:"meta",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],extendbody:[{include:"@selectorname"},["!optional","literal"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],variablereference:[["\\$@identifier","variable.ref"],["\\.\\.\\.","operator"],["#{",{token:"meta",next:"@variableinterpolation"}]],variableinterpolation:[{include:"@variablereference"},["}",{token:"meta",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],name:[["@identifier","attribute.value"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","number.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","number","@pop"]],functiondeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["{",{token:"delimiter.curly",switchTo:"@functionbody"}]],mixindeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],parameterdeclaration:[["\\$@identifier@ws:","variable.decl"],["\\.\\.\\.","operator"],[",","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],includedeclaration:[{include:"@functioninvocation"},["@identifier","meta"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],keyframedeclaration:[["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.curly",next:"@selectorbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],controlstatement:[["[@](if|else|for|while|each|media)",{token:"keyword.flow",next:"@controlstatementdeclaration"}]],controlstatementdeclaration:[["(in|from|through|if|to)\\b",{token:"keyword.flow"}],{include:"@term"},["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],functionbody:[["[@](return)",{token:"keyword"}],{include:"@variabledeclaration"},{include:"@term"},{include:"@controlstatement"},[";","delimiter"],["}",{token:"delimiter.curly",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"meta",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],strings:[['~?"',{token:"string.delimiter",next:"@stringenddoublequote"}],["~?'",{token:"string.delimiter",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string.delimiter",next:"@pop"}],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string.delimiter",next:"@pop"}],[".","string"]]}}});var OAi={};ou(OAi,{conf:()=>AGi,language:()=>PGi});var AGi,PGi,FAi=Ht(()=>{AGi={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},PGi={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],startingWithDash:/\-+\w+/,identifiersWithDashes:/[a-zA-Z]\w+(?:@startingWithDash)+/,symbols:/[=>LGi,language:()=>OGi});var LGi,OGi,RAi=Ht(()=>{LGi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},OGi={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","constructor","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}});var BAi={};ou(BAi,{conf:()=>FGi,language:()=>MGi});var FGi,MGi,jAi=Ht(()=>{FGi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},MGi={defaultToken:"",tokenPostfix:".aes",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["contract","library","entrypoint","function","stateful","state","hash","signature","tuple","list","address","string","bool","int","record","datatype","type","option","oracle","oracle_query","Call","Bits","Bytes","Oracle","String","Crypto","Address","Auth","Chain","None","Some","bits","bytes","event","let","map","private","public","true","false","var","if","else","throw"],operators:["=",">","<","!","~","?","::",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}});var WAi={};ou(WAi,{conf:()=>RGi,language:()=>BGi});var RGi,BGi,zAi=Ht(()=>{RGi={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"'",close:"'",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},BGi={defaultToken:"",tokenPostfix:".rq",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["add","as","asc","ask","base","by","clear","construct","copy","create","data","delete","desc","describe","distinct","drop","false","filter","from","graph","group","having","in","insert","limit","load","minus","move","named","not","offset","optional","order","prefix","reduced","select","service","silent","to","true","undef","union","using","values","where","with"],builtinFunctions:["a","abs","avg","bind","bnode","bound","ceil","coalesce","concat","contains","count","datatype","day","encode_for_uri","exists","floor","group_concat","hours","if","iri","isblank","isiri","isliteral","isnumeric","isuri","lang","langmatches","lcase","max","md5","min","minutes","month","now","rand","regex","replace","round","sameterm","sample","seconds","sha1","sha256","sha384","sha512","str","strafter","strbefore","strdt","strends","strlang","strlen","strstarts","struuid","substr","sum","timezone","tz","ucase","uri","uuid","year"],ignoreCase:!0,tokenizer:{root:[[/<[^\s\u00a0>]*>?/,"tag"],{include:"@strings"},[/#.*/,"comment"],[/[{}()\[\]]/,"@brackets"],[/[;,.]/,"delimiter"],[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,"tag"],[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/,"tag"],[/[$?]?[_\w\d]+/,{cases:{"@keywords":{token:"keyword"},"@builtinFunctions":{token:"predefined.sql"},"@default":"identifier"}}],[/\^\^/,"operator.sql"],[/\^[*+\-<>=&|^\/!?]*/,"operator.sql"],[/[*+\-<>=&|\/!?]/,"operator.sql"],[/@[a-z\d\-]*/,"metatag.html"],[/\s+/,"white"]],strings:[[/'([^'\\]|\\.)*$/,"string.invalid"],[/'$/,"string.sql","@pop"],[/'/,"string.sql","@stringBody"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"$/,"string.sql","@pop"],[/"/,"string.sql","@dblStringBody"]],stringBody:[[/[^\\']+/,"string.sql"],[/\\./,"string.escape"],[/'/,"string.sql","@pop"]],dblStringBody:[[/[^\\"]+/,"string.sql"],[/\\./,"string.escape"],[/"/,"string.sql","@pop"]]}}});var VAi={};ou(VAi,{conf:()=>jGi,language:()=>WGi});var jGi,WGi,HAi=Ht(()=>{jGi={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},WGi={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}});var UAi={};ou(UAi,{conf:()=>zGi,language:()=>VGi});var zGi,VGi,JAi=Ht(()=>{zGi={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},VGi={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends","implements"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","\u0441tu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=>HGi,language:()=>UGi});var HGi,UGi,$Ai=Ht(()=>{HGi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},UGi={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@GKInspectable","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet","@IBSegueAction","@NSApplicationMain","@NSCopying","@NSManaged","@Sendable","@UIApplicationMain","@autoclosure","@actorIndependent","@asyncHandler","@available","@convention","@derivative","@differentiable","@discardableResult","@dynamicCallable","@dynamicMemberLookup","@escaping","@frozen","@globalActor","@inlinable","@inline","@main","@noDerivative","@nonobjc","@noreturn","@objc","@objcMembers","@preconcurrency","@propertyWrapper","@requires_stored_property_inits","@resultBuilder","@testable","@unchecked","@unknown","@usableFromInline","@warn_unqualified_access"],accessmodifiers:["open","public","internal","fileprivate","private"],keywords:["#available","#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning","Any","Protocol","Self","Type","actor","as","assignment","associatedtype","associativity","async","await","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","false","fileprivate","final","for","func","get","guard","higherThan","if","import","in","indirect","infix","init","inout","internal","is","isolated","lazy","left","let","lowerThan","mutating","nil","none","nonisolated","nonmutating","open","operator","optional","override","postfix","precedence","precedencegroup","prefix","private","protocol","public","repeat","required","rethrows","return","right","safe","self","set","some","static","struct","subscript","super","switch","throw","throws","true","try","typealias","unowned","unsafe","var","weak","where","while","willSet","__consuming","__owned"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/@@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}};});var $ci={};ou($ci,{conf:()=>JGi,language:()=>qGi});var JGi,qGi,Gci=Ht(()=>{JGi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["begin","end"],["case","endcase"],["casex","endcase"],["casez","endcase"],["checker","endchecker"],["class","endclass"],["clocking","endclocking"],["config","endconfig"],["function","endfunction"],["generate","endgenerate"],["group","endgroup"],["interface","endinterface"],["module","endmodule"],["package","endpackage"],["primitive","endprimitive"],["program","endprogram"],["property","endproperty"],["specify","endspecify"],["sequence","endsequence"],["table","endtable"],["task","endtask"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!1,markers:{start:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"),end:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")}}},qGi={defaultToken:"",tokenPostfix:".sv",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","null","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],builtin_gates:["and","nand","nor","or","xor","xnor","buf","not","bufif0","bufif1","notif1","notif0","cmos","nmos","pmos","rcmos","rnmos","rpmos","tran","tranif1","tranif0","rtran","rtranif1","rtranif0"],operators:["=","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>+","<<<=",">>>=","?",":","+","-","!","~","&","~&","|","~|","^","~^","^~","+","-","*","/","%","==","!=","===","!==","==?","!=?","&&","||","**","<","<=",">",">=","&","|","^",">>","<<",">>>","<<<","++","--","->","<->","inside","dist","::","+:","-:","*>","&&&","|->","|=>","#=#"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],{include:"@numbers"},[/[;,.]/,"delimiter"],{include:"@strings"}],identifier_or_keyword:[[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}]],numbers:[[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/,"number.float"],[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/,"number.float"],[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/,"number"],[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/,"number.binary"],[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/,"number.octal"],[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/,"number.hex"],[/1step/,"number"],[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/,"number"],[/'[01xXzZ]+/,"number"]],module_instance:[{include:"@whitespace"},[/(#?)(\()/,["",{token:"@brackets",next:"@port_connection"}]],[/@identifier\s*[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@symbols|[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@identifier/,"type"],[/;/,"delimiter","@pop"]],port_connection:[{include:"@identifier_or_keyword"},{include:"@whitespace"},[/@systemcall/,"variable.predefined"],{include:"@numbers"},{include:"@strings"},[/[,]/,"delimiter"],[/\(/,"@brackets","@port_connection"],[/\)/,"@brackets","@pop"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],include:[[/(\s*)(")([\w*\/*]*)(.\w*)(")/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]],[/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]]],table:[{include:"@whitespace"},[/[()]/,"@brackets"],[/[:;]/,"delimiter"],[/[01\-*?xXbBrRfFpPnN]/,"variable.predefined"],["endtable","keyword.endtable","@pop"]]}}});var GAi={};ou(GAi,{conf:()=>$Gi,language:()=>GGi});var $Gi,GGi,KAi=Ht(()=>{$Gi={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},GGi={tokenPostfix:".tcl",specialFunctions:["set","unset","rename","variable","proc","coroutine","foreach","incr","append","lappend","linsert","lreplace"],mainFunctions:["if","then","elseif","else","case","switch","while","for","break","continue","return","package","namespace","catch","exit","eval","expr","uplevel","upvar"],builtinFunctions:["file","info","concat","join","lindex","list","llength","lrange","lsearch","lsort","split","array","parray","binary","format","regexp","regsub","scan","string","subst","dict","cd","clock","exec","glob","pid","pwd","close","eof","fblocked","fconfigure","fcopy","fileevent","flush","gets","open","puts","read","seek","socket","tell","interp","after","auto_execok","auto_load","auto_mkindex","auto_reset","bgerror","error","global","history","load","source","time","trace","unknown","unset","update","vwait","winfo","wm","bind","event","pack","place","grid","font","bell","clipboard","destroy","focus","grab","lower","option","raise","selection","send","tk","tkwait","tk_bisque","tk_focusNext","tk_focusPrev","tk_focusFollowsMouse","tk_popup","tk_setPalette"],symbols:/[=>KGi,language:()=>XGi});var KGi,XGi,YAi=Ht(()=>{KGi={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],[""],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},XGi={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}});var tPi={};ou(tPi,{conf:()=>rKi,language:()=>oKi});var ePi,QAi,YGi,QGi,ZAi,ZGi,eKi,tKi,iKi,nKi,rKi,oKi,iPi=Ht(()=>{ePi=l=>`\\b${l}\\b`,QAi=l=>`(?!${l})`,YGi="[_a-zA-Z]",QGi="[_a-zA-Z0-9]",ZAi=ePi(`${YGi}${QGi}*`),ZGi=ePi("[_a-zA-Z-0-9]+"),eKi=["import","model","scalar","namespace","op","interface","union","using","is","extends","enum","alias","return","void","if","else","projection","dec","extern","fn"],tKi=["true","false","null","unknown","never"],iKi="[ \\t\\r\\n]",nKi="[0-9]+",rKi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],indentationRules:{decreaseIndentPattern:new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),increaseIndentPattern:new RegExp("^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"),unIndentedLinePattern:new RegExp("^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$")}},oKi={defaultToken:"",tokenPostfix:".tsp",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=:;<>]+/,keywords:eKi,namedLiterals:tKi,escapes:'\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:'(|"|"")[^"]',action:{token:"string"}},{regex:`"""${QAi('"')}`,action:{token:"string",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:'[^\\\\"$]+',action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:'"',action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"@expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:iKi},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:'"""',action:{token:"string",next:"@stringVerbatim"}},{regex:`"${QAi('""')}`,action:{token:"string",next:"@stringLiteral"}},{regex:nKi,action:{token:"number"}},{regex:ZAi,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}},{regex:`@${ZAi}`,action:{token:"tag"}},{regex:`#${ZGi}`,action:{token:"directive"}}]}}});var nPi={};ou(nPi,{conf:()=>sKi,language:()=>aKi});var sKi,aKi,rPi=Ht(()=>{sKi={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"<",close:">",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},aKi={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=>cKi,language:()=>vKi});function Nue(l){let i=[],o=l.split(/\t+|\r+|\n+| +/);for(let s=0;s0&&i.push(o[s]);return i}var cKi,lKi,uKi,dKi,fKi,_Ki,pKi,mKi,hKi,gKi,yKi,oPi,sOe,vKi,aPi=Ht(()=>{cKi={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]};lKi=Nue("true false"),uKi=Nue(` + alias + break + case + const + const_assert + continue + continuing + default + diagnostic + discard + else + enable + fn + for + if + let + loop + override + requires + return + struct + switch + var + while + `),dKi=Nue(` + NULL + Self + abstract + active + alignas + alignof + as + asm + asm_fragment + async + attribute + auto + await + become + binding_array + cast + catch + class + co_await + co_return + co_yield + coherent + column_major + common + compile + compile_fragment + concept + const_cast + consteval + constexpr + constinit + crate + debugger + decltype + delete + demote + demote_to_helper + do + dynamic_cast + enum + explicit + export + extends + extern + external + fallthrough + filter + final + finally + friend + from + fxgroup + get + goto + groupshared + highp + impl + implements + import + inline + instanceof + interface + layout + lowp + macro + macro_rules + match + mediump + meta + mod + module + move + mut + mutable + namespace + new + nil + noexcept + noinline + nointerpolation + noperspective + null + nullptr + of + operator + package + packoffset + partition + pass + patch + pixelfragment + precise + precision + premerge + priv + protected + pub + public + readonly + ref + regardless + register + reinterpret_cast + require + resource + restrict + self + set + shared + sizeof + smooth + snorm + static + static_assert + static_cast + std + subroutine + super + target + template + this + thread_local + throw + trait + try + type + typedef + typeid + typename + typeof + union + unless + unorm + unsafe + unsized + use + using + varying + virtual + volatile + wgsl + where + with + writeonly + yield + `),fKi=Nue(` + read write read_write + function private workgroup uniform storage + perspective linear flat + center centroid sample + vertex_index instance_index position front_facing frag_depth + local_invocation_id local_invocation_index + global_invocation_id workgroup_id num_workgroups + sample_index sample_mask + rgba8unorm + rgba8snorm + rgba8uint + rgba8sint + rgba16uint + rgba16sint + rgba16float + r32uint + r32sint + r32float + rg32uint + rg32sint + rg32float + rgba32uint + rgba32sint + rgba32float + bgra8unorm +`),_Ki=Nue(` + bool + f16 + f32 + i32 + sampler sampler_comparison + texture_depth_2d + texture_depth_2d_array + texture_depth_cube + texture_depth_cube_array + texture_depth_multisampled_2d + texture_external + texture_external + u32 + `),pKi=Nue(` + array + atomic + mat2x2 + mat2x3 + mat2x4 + mat3x2 + mat3x3 + mat3x4 + mat4x2 + mat4x3 + mat4x4 + ptr + texture_1d + texture_2d + texture_2d_array + texture_3d + texture_cube + texture_cube_array + texture_multisampled_2d + texture_storage_1d + texture_storage_2d + texture_storage_2d_array + texture_storage_3d + vec2 + vec3 + vec4 + `),mKi=Nue(` + vec2i vec3i vec4i + vec2u vec3u vec4u + vec2f vec3f vec4f + vec2h vec3h vec4h + mat2x2f mat2x3f mat2x4f + mat3x2f mat3x3f mat3x4f + mat4x2f mat4x3f mat4x4f + mat2x2h mat2x3h mat2x4h + mat3x2h mat3x3h mat3x4h + mat4x2h mat4x3h mat4x4h + `),hKi=Nue(` + bitcast all any select arrayLength abs acos acosh asin asinh atan atanh atan2 + ceil clamp cos cosh countLeadingZeros countOneBits countTrailingZeros cross + degrees determinant distance dot exp exp2 extractBits faceForward firstLeadingBit + firstTrailingBit floor fma fract frexp inverseBits inverseSqrt ldexp length + log log2 max min mix modf normalize pow quantizeToF16 radians reflect refract + reverseBits round saturate sign sin sinh smoothstep sqrt step tan tanh transpose + trunc dpdx dpdxCoarse dpdxFine dpdy dpdyCoarse dpdyFine fwidth fwidthCoarse fwidthFine + textureDimensions textureGather textureGatherCompare textureLoad textureNumLayers + textureNumLevels textureNumSamples textureSample textureSampleBias textureSampleCompare + textureSampleCompareLevel textureSampleGrad textureSampleLevel textureSampleBaseClampToEdge + textureStore atomicLoad atomicStore atomicAdd atomicSub atomicMax atomicMin + atomicAnd atomicOr atomicXor atomicExchange atomicCompareExchangeWeak pack4x8snorm + pack4x8unorm pack2x16snorm pack2x16unorm pack2x16float unpack4x8snorm unpack4x8unorm + unpack2x16snorm unpack2x16unorm unpack2x16float storageBarrier workgroupBarrier + workgroupUniformLoad +`),gKi=Nue(` + & + && + -> + / + = + == + != + > + >= + < + <= + % + - + -- + + + ++ + | + || + * + << + >> + += + -= + *= + /= + %= + &= + |= + ^= + >>= + <<= + `),yKi=/enable|requires|diagnostic/,oPi=/[_\p{XID_Start}]\p{XID_Continue}*/u,sOe="variable.predefined",vKi={tokenPostfix:".wgsl",defaultToken:"invalid",unicode:!0,atoms:lKi,keywords:uKi,reserved:dKi,predeclared_enums:fKi,predeclared_types:_Ki,predeclared_type_generators:pKi,predeclared_type_aliases:mKi,predeclared_intrinsics:hKi,operators:gKi,symbols:/[!%&*+\-\.\/:;<=>^|_~,]+/,tokenizer:{root:[[yKi,"keyword","@directive"],[oPi,{cases:{"@atoms":sOe,"@keywords":"keyword","@reserved":"invalid","@predeclared_enums":sOe,"@predeclared_types":sOe,"@predeclared_type_generators":sOe,"@predeclared_type_aliases":sOe,"@predeclared_intrinsics":sOe,"@default":"identifier"}}],{include:"@commentOrSpace"},{include:"@numbers"},[/[{}()\[\]]/,"@brackets"],["@","annotation","@attribute"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/./,"invalid"]],commentOrSpace:[[/\s+/,"white"],[/\/\*/,"comment","@blockComment"],[/\/\/.*$/,"comment"]],blockComment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],attribute:[{include:"@commentOrSpace"},[/\w+/,"annotation","@pop"]],directive:[{include:"@commentOrSpace"},[/[()]/,"@brackets"],[/,/,"delimiter"],[oPi,"meta.content"],[/;/,"delimiter","@pop"]],numbers:[[/0[fh]/,"number.float"],[/[1-9][0-9]*[fh]/,"number.float"],[/[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?/,"number.float"],[/[0-9]+[eE][+-]?[0-9]+[fh]?/,"number.float"],[/0[xX][0-9a-fA-F]*\.[0-9a-fA-F]+(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*(?:[pP][+-]?[0-9]+[fh]?)?/,"number.hex"],[/0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?/,"number.hex"],[/0[xX][0-9a-fA-F]+[iu]?/,"number.hex"],[/[1-9][0-9]*[iu]?/,"number"],[/0[iu]?/,"number"]]}}});var lPi={};ou(lPi,{conf:()=>wKi,language:()=>TKi});var bKi,SKi,xKi,CKi,cPi,kKi,Kci,wKi,TKi,uPi=Ht(()=>{HC();bKi=Object.defineProperty,SKi=Object.getOwnPropertyDescriptor,xKi=Object.getOwnPropertyNames,CKi=Object.prototype.hasOwnProperty,cPi=(l,i,o,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of xKi(i))!CKi.call(l,c)&&c!==o&&bKi(l,c,{get:()=>i[c],enumerable:!(s=SKi(i,c))||s.enumerable});return l},kKi=(l,i,o)=>(cPi(l,i,"default"),o&&cPi(o,i,"default")),Kci={};kKi(Kci,T0);wKi={comments:{blockComment:[""]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:Kci.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:Kci.languages.IndentAction.Indent}}]},TKi={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[/=0&&w.resolve(Du.None)}return o}};Cmi=MFi([Llt(5,b8e)],Cmi);var kmi=class extends Ui{constructor(i,o,s,c){super(),this._languageFeatureService=i,this._clipboardService=o,this._suggestMemoryService=s,this._editorService=c,this._store.add(i.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(i,o,s,c){var _;if(s.selectedSuggestionInfo)return;let h;for(let K of this._editorService.listCodeEditors())if(K.getModel()===i){h=K;break}if(!h)return;let b=h.getOption(89);if(pY.isAllOff(b))return;i.tokenization.tokenizeIfCheap(o.lineNumber);let w=i.tokenization.getLineTokens(o.lineNumber),D=w.getStandardTokenType(w.findTokenIndexAtOffset(Math.max(o.column-1-1,0)));if(pY.valueFor(b,D)!=="inline")return;let O=i.getWordAtPosition(o),j;if(O?.word||(j=this._getTriggerCharacterInfo(i,o)),!O?.word&&!j||(O||(O=i.getWordUntilPosition(o)),O.endColumn!==o.column))return;let F,X=i.getValueInRange(new Vt(o.lineNumber,1,o.lineNumber,o.column));if(!j&&(!((_=this._lastResult)===null||_===void 0)&&_.canBeReused(i,o.lineNumber,O))){let K=new Yct(X,o.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=K,this._lastResult.acquire(),F=this._lastResult}else{let K=await Bct(this._languageFeatureService.completionProvider,i,o,new Vue(void 0,C8e.createSuggestFilter(h).itemKind,j?.providers),j&&{triggerKind:1,triggerCharacter:j.ch},c),re;K.needsClipboard&&(re=await this._clipboardService.readText());let Pe=new x8e(K.items,o.column,new Yct(X,0),y_e.None,h.getOption(118),h.getOption(112),{boostFullMatch:!1,firstMatchCanBeWeak:!1},re);F=new Cmi(i,o.lineNumber,O,Pe,K,this._suggestMemoryService)}return this._lastResult=F,F}handleItemDidShow(i,o){o.completion.resolve(Du.None)}freeInlineCompletions(i){i.release()}_getTriggerCharacterInfo(i,o){var s;let c=i.getValueInRange(Vt.fromPositions({lineNumber:o.lineNumber,column:o.column-1},o)),_=new Set;for(let h of this._languageFeatureService.completionProvider.all(i))!((s=h.triggerCharacters)===null||s===void 0)&&s.includes(c)&&_.add(h);if(_.size!==0)return{providers:_,ch:c}}};kmi=MFi([Llt(0,js),Llt(1,wL),Llt(2,b8e),Llt(3,$u)],kmi);YX(kmi);rL();sd();Fs();var wmi=class extends zs{constructor(){super({id:"editor.action.forceRetokenize",label:de("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(i,o){if(!o.hasModel())return;let s=o.getModel();s.tokenization.resetTokenization();let c=new A0;s.tokenization.forceTokenization(s.getLineCount()),c.stop(),console.log(`tokenization took ${c.elapsed()}`)}};zo(wmi);$D();V_t();Fs();Vg();var qCt=class l extends BC{constructor(){super({id:l.ID,title:yu({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:yu("tabMovesFocusDescriptions","Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){let o=!jle.getTabFocusMode();jle.setTabFocusMode(o),o?ZS(de("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):ZS(de("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}};qCt.ID="editor.action.toggleTabFocusMode";Ah(qCt);Bu();Og();vP();$r();uf();Bl();sd();FC();DC();rei();gue();v2();Dni();va();Ij();Ew();$r();aue();kc();va();mW();jD();JF();Pa();$r();bL();B2();rue();var Ktn=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},RFi=function(l,i){return function(o,s){i(o,s,l)}},$Ct=class extends Ui{get enabled(){return this._enabled}set enabled(i){i?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=i}constructor(i,o,s={},c,_){var h,b;super(),this._link=o,this._hoverService=c,this._enabled=!0,this.el=bo(i,No("a.monaco-link",{tabIndex:(h=o.tabIndex)!==null&&h!==void 0?h:0,href:o.href},o.label)),this.hoverDelegate=(b=s.hoverDelegate)!==null&&b!==void 0?b:P1("mouse"),this.setTooltip(o.title),this.el.setAttribute("role","button");let w=this._register(new Yd(this.el,"click")),D=this._register(new Yd(this.el,"keypress")),O=Yo.chain(D.event,X=>X.map(K=>new w_(K)).filter(K=>K.keyCode===3)),j=this._register(new Yd(this.el,Zm.Tap)).event;this._register(Ry.addTarget(this.el));let F=Yo.any(w.event,O,j);this._register(F(X=>{this.enabled&&(Kd.stop(X,!0),s?.opener?s.opener(this._link.href):_.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}setTooltip(i){this.hoverDelegate.showNativeHover?this.el.title=i??"":!this.hover&&i?this.hover=this._register(this._hoverService.setupUpdatableHover(this.hoverDelegate,this.el,i)):this.hover&&this.hover.update(i)}};$Ct=Ktn([RFi(3,yL),RFi(4,Gb)],$Ct);R7();P0();var BFi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},jFi=function(l,i){return function(o,s){i(o,s,l)}},Xtn=26,GCt=class extends Ui{constructor(i,o){super(),this._editor=i,this.instantiationService=o,this.banner=this._register(this.instantiationService.createInstance(Tmi))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(i){this.banner.show({...i,onClose:()=>{var o;this.hide(),(o=i.onClose)===null||o===void 0||o.call(i)}}),this._editor.setBanner(this.banner.element,Xtn)}};GCt=BFi([jFi(1,qs)],GCt);var Tmi=class extends Ui{constructor(i){super(),this.instantiationService=i,this.markdownRenderer=this.instantiationService.createInstance(xL,{}),this.element=No("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(i){if(i.ariaLabel)return i.ariaLabel;if(typeof i.message=="string")return i.message}getBannerMessage(i){if(typeof i=="string"){let o=No("span");return o.innerText=i,o}return this.markdownRenderer.render(i).element}clear(){I1(this.element)}show(i){I1(this.element);let o=this.getAriaLabel(i);o&&this.element.setAttribute("aria-label",o);let s=bo(this.element,No("div.icon-container"));s.setAttribute("aria-hidden","true"),i.icon&&s.appendChild(No(`div${uc.asCSSSelector(i.icon)}`));let c=bo(this.element,No("div.message-container"));if(c.setAttribute("aria-hidden","true"),c.appendChild(this.getBannerMessage(i.message)),this.messageActionsContainer=bo(this.element,No("div.message-actions-container")),i.actions)for(let h of i.actions)this._register(this.instantiationService.createInstance($Ct,this.messageActionsContainer,{...h,tabIndex:-1},{}));let _=bo(this.element,No("div.action-container"));this.actionBar=this._register(new NC(_)),this.actionBar.push(this._register(new EC("banner.close","Close Banner",uc.asClassName(gvt),!0,()=>{typeof i.onClose=="function"&&i.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};Tmi=BFi([jFi(0,qs)],Tmi);Fs();Rg();kc();bL();kL();R7();Gri();var Omi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},R8e=function(l,i){return function(o,s){i(o,s,l)}},Ytn=Bg("extensions-warning-message",Xo.warning,de("warningIcon","Icon shown with a warning message in the extensions editor.")),B8e=class extends Ui{constructor(i,o,s,c){super(),this._editor=i,this._editorWorkerService=o,this._workspaceTrustService=s,this._highlighter=null,this._bannerClosed=!1,this._updateState=_=>{if(_&&_.hasMore){if(this._bannerClosed)return;let h=Math.max(_.ambiguousCharacterCount,_.nonBasicAsciiCharacterCount,_.invisibleCharacterCount),b;if(_.nonBasicAsciiCharacterCount>=h)b={message:de("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new z8e};else if(_.ambiguousCharacterCount>=h)b={message:de("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new N_e};else if(_.invisibleCharacterCount>=h)b={message:de("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new W8e};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:b.message,icon:Ytn,actions:[{label:b.command.shortLabel,href:`command:${b.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(c.createInstance(GCt,i)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=i.getOption(125),this._register(s.onDidChangeTrust(_=>{this._updateHighlighter()})),this._register(i.onDidChangeConfiguration(_=>{_.hasChanged(125)&&(this._options=i.getOption(125),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;let i=Qtn(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([i.nonBasicASCII,i.ambiguousCharacters,i.invisibleCharacters].every(s=>s===!1))return;let o={nonBasicASCII:i.nonBasicASCII,ambiguousCharacters:i.ambiguousCharacters,invisibleCharacters:i.invisibleCharacters,includeComments:i.includeComments,includeStrings:i.includeStrings,allowedCodePoints:Object.keys(i.allowedCharacters).map(s=>s.codePointAt(0)),allowedLocales:Object.keys(i.allowedLocales).map(s=>s==="_os"?new Intl.NumberFormat().resolvedOptions().locale:s==="_vscode"?ggi:s)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new Dmi(this._editor,o,this._updateState,this._editorWorkerService):this._highlighter=new Imi(this._editor,o,this._updateState)}getDecorationInfo(i){return this._highlighter?this._highlighter.getDecorationInfo(i):null}};B8e.ID="editor.contrib.unicodeHighlighter";B8e=Omi([R8e(1,eI),R8e(2,N0t),R8e(3,qs)],B8e);function Qtn(l,i){return{nonBasicASCII:i.nonBasicASCII===NF?!l:i.nonBasicASCII,ambiguousCharacters:i.ambiguousCharacters,invisibleCharacters:i.invisibleCharacters,includeComments:i.includeComments===NF?!l:i.includeComments,includeStrings:i.includeStrings===NF?!l:i.includeStrings,allowedCharacters:i.allowedCharacters,allowedLocales:i.allowedLocales}}var Dmi=class extends Ui{constructor(i,o,s,c){super(),this._editor=i,this._options=o,this._updateState=s,this._editorWorkerService=c,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new Bd(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let i=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(o=>{if(this._model.isDisposed()||this._model.getVersionId()!==i)return;this._updateState(o);let s=[];if(!o.hasMore)for(let c of o.ranges)s.push({range:c,options:j8e.instance.getDecorationFromOptions(this._options)});this._decorations.set(s)})}getDecorationInfo(i){if(!this._decorations.has(i))return null;let o=this._editor.getModel();if(!mgt(o,i))return null;let s=o.getValueInRange(i.range);return{reason:zFi(s,this._options),inComment:hgt(o,i),inString:ggt(o,i)}}};Dmi=Omi([R8e(3,eI)],Dmi);var Imi=class extends Ui{constructor(i,o,s){super(),this._editor=i,this._options=o,this._updateState=s,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new Bd(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let i=this._editor.getVisibleRanges(),o=[],s={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(let c of i){let _=YNe.computeUnicodeHighlights(this._model,this._options,c);for(let h of _.ranges)s.ranges.push(h);s.ambiguousCharacterCount+=s.ambiguousCharacterCount,s.invisibleCharacterCount+=s.invisibleCharacterCount,s.nonBasicAsciiCharacterCount+=s.nonBasicAsciiCharacterCount,s.hasMore=s.hasMore||_.hasMore}if(!s.hasMore)for(let c of s.ranges)o.push({range:c,options:j8e.instance.getDecorationFromOptions(this._options)});this._updateState(s),this._decorations.set(o)}getDecorationInfo(i){if(!this._decorations.has(i))return null;let o=this._editor.getModel(),s=o.getValueInRange(i.range);return mgt(o,i)?{reason:zFi(s,this._options),inComment:hgt(o,i),inString:ggt(o,i)}:null}},WFi=de("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options"),Nmi=class{constructor(i,o,s){this._editor=i,this._languageService=o,this._openerService=s,this.hoverOrdinal=5}computeSync(i,o){if(!this._editor.hasModel()||i.type!==1)return[];let s=this._editor.getModel(),c=this._editor.getContribution(B8e.ID);if(!c)return[];let _=[],h=new Set,b=300;for(let w of o){let D=c.getDecorationInfo(w);if(!D)continue;let j=s.getValueInRange(w.range).codePointAt(0),F=Emi(j),X;switch(D.reason.kind){case 0:{RK(D.reason.confusableWith)?X=de("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",F,Emi(D.reason.confusableWith.codePointAt(0))):X=de("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",F,Emi(D.reason.confusableWith.codePointAt(0)));break}case 1:X=de("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",F);break;case 2:X=de("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",F);break}if(h.has(X))continue;h.add(X);let K={codePoint:j,reason:D.reason,inComment:D.inComment,inString:D.inString},re=de("unicodeHighlight.adjustSettings","Adjust settings"),Pe=`command:${Olt.ID}?${encodeURIComponent(JSON.stringify(K))}`,Le=new Vb("",!0).appendMarkdown(X).appendText(" ").appendLink(Pe,re,WFi);_.push(new a7(this,w.range,[Le],!1,b++))}return _}renderHoverParts(i,o){return UOi(i,o,this._editor,this._languageService,this._openerService)}};Nmi=Omi([R8e(1,up),R8e(2,Gb)],Nmi);function Ami(l){return`U+${l.toString(16).padStart(4,"0")}`}function Emi(l){let i=`\`${Ami(l)}\``;return FK.isInvisibleCharacter(l)||(i+=` "${`${Ztn(l)}`}"`),i}function Ztn(l){return l===96?"`` ` ``":"`"+String.fromCodePoint(l)+"`"}function zFi(l,i){return YNe.computeUnicodeHighlightReason(l,i)}var j8e=class{constructor(){this.map=new Map}getDecorationFromOptions(i){return this.getDecoration(!i.includeComments,!i.includeStrings)}getDecoration(i,o){let s=`${i}${o}`,c=this.map.get(s);return c||(c=eu.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:i,hideInStringTokens:o}),this.map.set(s,c)),c}};j8e.instance=new j8e;var Pmi=class extends zs{constructor(){super({id:N_e.ID,label:de("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=de("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(i,o,s){let c=i?.get(gl);c&&this.runAction(c)}async runAction(i){await i.updateValue(nL.includeComments,!1,2)}},Lmi=class extends zs{constructor(){super({id:N_e.ID,label:de("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=de("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(i,o,s){let c=i?.get(gl);c&&this.runAction(c)}async runAction(i){await i.updateValue(nL.includeStrings,!1,2)}},N_e=class l extends zs{constructor(){super({id:l.ID,label:de("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=de("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(i,o,s){let c=i?.get(gl);c&&this.runAction(c)}async runAction(i){await i.updateValue(nL.ambiguousCharacters,!1,2)}};N_e.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";var W8e=class l extends zs{constructor(){super({id:l.ID,label:de("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=de("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(i,o,s){let c=i?.get(gl);c&&this.runAction(c)}async runAction(i){await i.updateValue(nL.invisibleCharacters,!1,2)}};W8e.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";var z8e=class l extends zs{constructor(){super({id:l.ID,label:de("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=de("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(i,o,s){let c=i?.get(gl);c&&this.runAction(c)}async runAction(i){await i.updateValue(nL.nonBasicASCII,!1,2)}};z8e.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";var Olt=class l extends zs{constructor(){super({id:l.ID,label:de("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(i,o,s){let{codePoint:c,reason:_,inString:h,inComment:b}=s,w=String.fromCodePoint(c),D=i.get(hw),O=i.get(gl);function j(K){return FK.isInvisibleCharacter(K)?de("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",Ami(K)):de("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${Ami(K)} "${w}"`)}let F=[];if(_.kind===0)for(let K of _.notAmbiguousInLocales)F.push({label:de("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',K),run:async()=>{tin(O,[K])}});if(F.push({label:j(c),run:()=>ein(O,[c])}),b){let K=new Pmi;F.push({label:K.label,run:async()=>K.runAction(O)})}else if(h){let K=new Lmi;F.push({label:K.label,run:async()=>K.runAction(O)})}if(_.kind===0){let K=new N_e;F.push({label:K.label,run:async()=>K.runAction(O)})}else if(_.kind===1){let K=new W8e;F.push({label:K.label,run:async()=>K.runAction(O)})}else if(_.kind===2){let K=new z8e;F.push({label:K.label,run:async()=>K.runAction(O)})}else iin(_);let X=await D.pick(F,{title:WFi});X&&await X.run()}};Olt.ID="editor.action.unicodeHighlight.showExcludeOptions";async function ein(l,i){let o=l.getValue(nL.allowedCharacters),s;typeof o=="object"&&o?s=o:s={};for(let c of i)s[String.fromCodePoint(c)]=!0;await l.updateValue(nL.allowedCharacters,s,2)}async function tin(l,i){var o;let s=(o=l.inspect(nL.allowedLocales).user)===null||o===void 0?void 0:o.value,c;typeof s=="object"&&s?c=Object.assign({},s):c={};for(let _ of i)c[_]=!0;await l.updateValue(nL.allowedLocales,c,2)}function iin(l){throw new Error(`Unexpected value: ${l}`)}zo(N_e);zo(W8e);zo(z8e);zo(Olt);Al(B8e.ID,B8e,1);s7.register(Nmi);$r();_I();sd();$b();Fs();qLe();var nin=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},VFi=function(l,i){return function(o,s){i(o,s,l)}},HFi="ignoreUnusualLineTerminators";function rin(l,i,o){l.setModelProperty(i.uri,HFi,o)}function oin(l,i){return l.getModelProperty(i.uri,HFi)}var Flt=class extends Ui{constructor(i,o,s){super(),this._editor=i,this._dialogService=o,this._codeEditorService=s,this._isPresentingDialog=!1,this._config=this._editor.getOption(126),this._register(this._editor.onDidChangeConfiguration(c=>{c.hasChanged(126)&&(this._config=this._editor.getOption(126),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(c=>{c.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if(this._config==="off"||!this._editor.hasModel())return;let i=this._editor.getModel();if(!i.mightContainUnusualLineTerminators()||oin(this._codeEditorService,i)===!0||this._editor.getOption(91))return;if(this._config==="auto"){i.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let s;try{this._isPresentingDialog=!0,s=await this._dialogService.confirm({title:de("unusualLineTerminators.title","Unusual Line Terminators"),message:de("unusualLineTerminators.message","Detected unusual line terminators"),detail:de("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",YD(i.uri)),primaryButton:de({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:de("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}if(!s.confirmed){rin(this._codeEditorService,i,!0);return}i.removeUnusualLineTerminators(this._editor.getSelections())}};Flt.ID="editor.contrib.unusualLineTerminatorsDetector";Flt=nin([VFi(1,CX),VFi(2,$u)],Flt);Al(Flt.ID,Flt,1);Fs();su();$D();Bu();am();Pl();$r();oOe();sd();$b();ca();km();Fg();b2();dp();du();cI();UD();rri();var UFi=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},KCt=function(l,i){return function(o,s){i(o,s,l)}},Lw,Fmi,QCt=new Ms("hasWordHighlights",!1);function JFi(l,i,o,s){let c=l.ordered(i);return Ant(c.map(_=>()=>Promise.resolve(_.provideDocumentHighlights(i,o,s)).then(void 0,Rp)),k1).then(_=>{if(_){let h=new B1;return h.set(i.uri,_),h}return new B1})}function sin(l,i,o,s,c,_){let h=l.ordered(i);return Ant(h.map(b=>()=>{let w=_.filter(D=>g_t(D)).filter(D=>Hot(b.selector,D.uri,D.getLanguageId(),!0,void 0,void 0)>0);return Promise.resolve(b.provideMultiDocumentHighlights(i,o,w,c)).then(void 0,Rp)}),b=>b instanceof B1&&b.size>0)}var Mlt=class{constructor(i,o,s){this._model=i,this._selection=o,this._wordSeparators=s,this._wordRange=this._getCurrentWordRange(i,o),this._result=null}get result(){return this._result||(this._result=Mg(i=>this._compute(this._model,this._selection,this._wordSeparators,i))),this._result}_getCurrentWordRange(i,o){let s=i.getWordAtPosition(o.getPosition());return s?new Vt(o.startLineNumber,s.startColumn,o.startLineNumber,s.endColumn):null}isValid(i,o,s){let c=o.startLineNumber,_=o.startColumn,h=o.endColumn,b=this._getCurrentWordRange(i,o),w=!!(this._wordRange&&this._wordRange.equalsRange(b));for(let D=0,O=s.length;!w&&D=h&&(w=!0)}return w}cancel(){this.result.cancel()}},Mmi=class extends Mlt{constructor(i,o,s,c){super(i,o,s),this._providers=c}_compute(i,o,s,c){return JFi(this._providers,i,o.getPosition(),c).then(_=>_||new B1)}},Rmi=class extends Mlt{constructor(i,o,s,c,_){super(i,o,s),this._providers=c,this._otherModels=_}_compute(i,o,s,c){return sin(this._providers,i,o.getPosition(),s,c,this._otherModels).then(_=>_||new B1)}},XCt=class extends Mlt{constructor(i,o,s,c,_){super(i,o,c),this._otherModels=_,this._selectionIsEmpty=o.isEmpty(),this._word=s}_compute(i,o,s,c){return sL(250,c).then(()=>{let _=new B1,h;if(this._word?h=this._word:h=i.getWordAtPosition(o.getPosition()),!h)return new B1;let b=[i,...this._otherModels];for(let w of b){if(w.isDisposed())continue;let O=w.findMatches(h.word,!0,!1,!0,s,!1).map(j=>({range:j.range,kind:ENe.Text}));O&&_.set(w.uri,O)}return _})}isValid(i,o,s){let c=o.isEmpty();return this._selectionIsEmpty!==c?!1:super.isValid(i,o,s)}};function ain(l,i,o,s,c){return l.has(i)?new Mmi(i,o,c,l):new XCt(i,o,s,c,[])}function cin(l,i,o,s,c,_){return l.has(i)?new Rmi(i,o,c,l,_):new XCt(i,o,s,c,_)}WF("_executeDocumentHighlights",async(l,i,o)=>{let s=l.get(js),c=await JFi(s.documentHighlightProvider,i,o,Du.None);return c?.get(i.uri)});var Rlt=Lw=class{constructor(i,o,s,c,_){this.toUnhook=new pr,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new B1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=i,this.providers=o,this.multiDocumentProviders=s,this.codeEditorService=_,this._hasWordHighlights=QCt.bindTo(c),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(i.onDidChangeCursorPosition(h=>{this._ignorePositionChangeEvent||this.occurrencesHighlight!=="off"&&this._onPositionChanged(h)})),this.toUnhook.add(i.onDidFocusEditorText(h=>{this.occurrencesHighlight!=="off"&&(this.workerRequest||this._run())})),this.toUnhook.add(i.onDidChangeModelContent(h=>{this._stopAll()})),this.toUnhook.add(i.onDidChangeModel(h=>{!h.newModelUrl&&h.oldModelUrl?this._stopSingular():Lw.query&&this._run()})),this.toUnhook.add(i.onDidChangeConfiguration(h=>{let b=this.editor.getOption(81);this.occurrencesHighlight!==b&&(this.occurrencesHighlight=b,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,Lw.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight!=="off"&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(Vt.compareRangesUsingStarts)}moveNext(){let i=this._getSortedHighlights(),s=(i.findIndex(_=>_.containsPosition(this.editor.getPosition()))+1)%i.length,c=i[s];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(c.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(c);let _=this._getWord();if(_){let h=this.editor.getModel().getLineContent(c.startLineNumber);ZS(`${h}, ${s+1} of ${i.length} for '${_.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let i=this._getSortedHighlights(),s=(i.findIndex(_=>_.containsPosition(this.editor.getPosition()))-1+i.length)%i.length,c=i[s];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(c.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(c);let _=this._getWord();if(_){let h=this.editor.getModel().getLineContent(c.startLineNumber);ZS(`${h}, ${s+1} of ${i.length} for '${_.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;let i=Lw.storedDecorations.get(this.editor.getModel().uri);i&&(this.editor.removeDecorations(i),Lw.storedDecorations.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(){let i=this.codeEditorService.listCodeEditors(),o=[];for(let s of i){if(!s.hasModel())continue;let c=Lw.storedDecorations.get(s.getModel().uri);if(!c)continue;s.removeDecorations(c),o.push(s.getModel().uri);let _=Yue.get(s);_?.wordHighlighter&&_.wordHighlighter.decorations.length>0&&(_.wordHighlighter.decorations.clear(),_.wordHighlighter.workerRequest=null,_.wordHighlighter._hasWordHighlights.set(!1))}for(let s of o)Lw.storedDecorations.delete(s)}_stopSingular(){var i,o,s,c;this._removeSingleDecorations(),this.editor.hasTextFocus()&&(((i=this.editor.getModel())===null||i===void 0?void 0:i.uri.scheme)!==Kl.vscodeNotebookCell&&((s=(o=Lw.query)===null||o===void 0?void 0:o.modelInfo)===null||s===void 0?void 0:s.model.uri.scheme)!==Kl.vscodeNotebookCell?(Lw.query=null,this._run()):!((c=Lw.query)===null||c===void 0)&&c.modelInfo&&(Lw.query.modelInfo=null)),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(){this._removeAllDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(i){var o;if(this.occurrencesHighlight==="off"){this._stopAll();return}if(i.reason!==3&&((o=this.editor.getModel())===null||o===void 0?void 0:o.uri.scheme)!==Kl.vscodeNotebookCell){this._stopAll();return}this._run()}_getWord(){let i=this.editor.getSelection(),o=i.startLineNumber,s=i.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:o,column:s})}getOtherModelsToHighlight(i){if(!i)return[];if(i.uri.scheme===Kl.vscodeNotebookCell){let _=[],h=this.codeEditorService.listCodeEditors();for(let b of h){let w=b.getModel();w&&w!==i&&w.uri.scheme===Kl.vscodeNotebookCell&&_.push(w)}return _}let s=[],c=this.codeEditorService.listCodeEditors();for(let _ of c){if(!gat(_))continue;let h=_.getModel();h&&i===h.modified&&s.push(h.modified)}if(s.length)return s;if(this.occurrencesHighlight==="singleFile")return[];for(let _ of c){let h=_.getModel();h&&h!==i&&s.push(h)}return s}_run(){var i;let o;if(this.editor.hasTextFocus()){let c=this.editor.getSelection();if(!c||c.startLineNumber!==c.endLineNumber){Lw.query=null,this._stopAll();return}let _=c.startColumn,h=c.endColumn,b=this._getWord();if(!b||b.startColumn>_||b.endColumn{c===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=h||[],this._beginRenderDecorations())},Sc)}}computeWithModel(i,o,s,c){return c.length?cin(this.multiDocumentProviders,i,o,s,this.editor.getOption(131),c):ain(this.providers,i,o,s,this.editor.getOption(131))}_beginRenderDecorations(){let i=new Date().getTime(),o=this.lastCursorPositionChangeTime+250;i>=o?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},o-i)}renderDecorations(){var i,o,s;this.renderDecorationsTimer=-1;let c=this.codeEditorService.listCodeEditors();for(let _ of c){let h=Yue.get(_);if(!h)continue;let b=[],w=(i=_.getModel())===null||i===void 0?void 0:i.uri;if(w&&this.workerRequestValue.has(w)){let D=Lw.storedDecorations.get(w),O=this.workerRequestValue.get(w);if(O)for(let F of O)F.range&&b.push({range:F.range,options:hFi(F.kind)});let j=[];_.changeDecorations(F=>{j=F.deltaDecorations(D??[],b)}),Lw.storedDecorations=Lw.storedDecorations.set(w,j),b.length>0&&((o=h.wordHighlighter)===null||o===void 0||o.decorations.set(b),(s=h.wordHighlighter)===null||s===void 0||s._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};Rlt.storedDecorations=new B1;Rlt.query=null;Rlt=Lw=UFi([KCt(4,$u)],Rlt);var Yue=Fmi=class extends Ui{static get(i){return i.getContribution(Fmi.ID)}constructor(i,o,s,c){super(),this._wordHighlighter=null;let _=()=>{i.hasModel()&&!i.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new Rlt(i,s.documentHighlightProvider,s.multiDocumentHighlightProvider,o,c))};this._register(i.onDidChangeModel(h=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),_()})),_()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!!(this._wordHighlighter&&this._wordHighlighter.hasDecorations())}moveNext(){var i;(i=this._wordHighlighter)===null||i===void 0||i.moveNext()}moveBack(){var i;(i=this._wordHighlighter)===null||i===void 0||i.moveBack()}restoreViewState(i){this._wordHighlighter&&i&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};Yue.ID="editor.contrib.wordHighlighter";Yue=Fmi=UFi([KCt(1,La),KCt(2,js),KCt(3,$u)],Yue);var YCt=class extends zs{constructor(i,o){super(o),this._isNext=i}run(i,o){let s=Yue.get(o);s&&(this._isNext?s.moveNext():s.moveBack())}},Bmi=class extends YCt{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:de("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:QCt,kbOpts:{kbExpr:ji.editorTextFocus,primary:65,weight:100}})}},jmi=class extends YCt{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:de("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:QCt,kbOpts:{kbExpr:ji.editorTextFocus,primary:1089,weight:100}})}},Wmi=class extends zs{constructor(){super({id:"editor.action.wordHighlight.trigger",label:de("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:QCt.toNegated(),kbOpts:{kbExpr:ji.editorTextFocus,primary:0,weight:100}})}run(i,o,s){let c=Yue.get(o);c&&c.restoreViewState(!0)}};Al(Yue.ID,Yue,0);zo(Bmi);zo(jmi);zo(Wmi);sd();DAe();FC();Sj();Vrt();x6e();Ll();ca();hg();km();R1();Fs();fL();du();J3e();var x4e=class extends w0{constructor(i){super(i),this._inSelectionMode=i.inSelectionMode,this._wordNavigationType=i.wordNavigationType}runEditorCommand(i,o,s){if(!o.hasModel())return;let c=_P(o.getOption(131),o.getOption(130)),_=o.getModel(),b=o.getSelections().map(w=>{let D=new Cn(w.positionLineNumber,w.positionColumn),O=this._move(c,_,D,this._wordNavigationType);return this._moveTo(w,O,this._inSelectionMode)});if(_.pushStackElement(),o._getViewModel().setCursorStates("moveWordCommand",3,b.map(w=>I_.fromModelSelection(w))),b.length===1){let w=new Cn(b[0].positionLineNumber,b[0].positionColumn);o.revealPosition(w,0)}}_moveTo(i,o,s){return s?new ya(i.selectionStartLineNumber,i.selectionStartColumn,o.lineNumber,o.column):new ya(o.lineNumber,o.column,o.lineNumber,o.column)}},yY=class extends x4e{_move(i,o,s,c){return mw.moveWordLeft(i,o,s,c)}},vY=class extends x4e{_move(i,o,s,c){return mw.moveWordRight(i,o,s,c)}},zmi=class extends yY{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}},Vmi=class extends yY{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}},Hmi=class extends yY{constructor(){var i;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:po.and(ji.textInputFocus,(i=po.and(lAe,Hst))===null||i===void 0?void 0:i.negate()),primary:2063,mac:{primary:527},weight:100}})}},Umi=class extends yY{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}},Jmi=class extends yY{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}},qmi=class extends yY{constructor(){var i;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:po.and(ji.textInputFocus,(i=po.and(lAe,Hst))===null||i===void 0?void 0:i.negate()),primary:3087,mac:{primary:1551},weight:100}})}},$mi=class extends yY{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(i,o,s,c){return super._move(_P(OL.wordSeparators.defaultValue,i.intlSegmenterLocales),o,s,c)}},Gmi=class extends yY{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(i,o,s,c){return super._move(_P(OL.wordSeparators.defaultValue,i.intlSegmenterLocales),o,s,c)}},Kmi=class extends vY{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}},Xmi=class extends vY{constructor(){var i;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:po.and(ji.textInputFocus,(i=po.and(lAe,Hst))===null||i===void 0?void 0:i.negate()),primary:2065,mac:{primary:529},weight:100}})}},Ymi=class extends vY{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}},Qmi=class extends vY{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}},Zmi=class extends vY{constructor(){var i;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:po.and(ji.textInputFocus,(i=po.and(lAe,Hst))===null||i===void 0?void 0:i.negate()),primary:3089,mac:{primary:1553},weight:100}})}},ehi=class extends vY{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}},thi=class extends vY{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(i,o,s,c){return super._move(_P(OL.wordSeparators.defaultValue,i.intlSegmenterLocales),o,s,c)}},ihi=class extends vY{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(i,o,s,c){return super._move(_P(OL.wordSeparators.defaultValue,i.intlSegmenterLocales),o,s,c)}},C4e=class extends w0{constructor(i){super(i),this._whitespaceHeuristics=i.whitespaceHeuristics,this._wordNavigationType=i.wordNavigationType}runEditorCommand(i,o,s){let c=i.get(Pf);if(!o.hasModel())return;let _=_P(o.getOption(131),o.getOption(130)),h=o.getModel(),b=o.getSelections(),w=o.getOption(6),D=o.getOption(11),O=c.getLanguageConfiguration(h.getLanguageId()).getAutoClosingPairs(),j=o._getViewModel(),F=b.map(X=>{let K=this._delete({wordSeparators:_,model:h,selection:X,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:o.getOption(9),autoClosingBrackets:w,autoClosingQuotes:D,autoClosingPairs:O,autoClosedCharacters:j.getCursorAutoClosedCharacters()},this._wordNavigationType);return new tx(K,"")});o.pushUndoStop(),o.executeCommands(this.id,F),o.pushUndoStop()}},Blt=class extends C4e{_delete(i,o){let s=mw.deleteWordLeft(i,o);return s||new Vt(1,1,1,1)}},jlt=class extends C4e{_delete(i,o){let s=mw.deleteWordRight(i,o);if(s)return s;let c=i.model.getLineCount(),_=i.model.getLineMaxColumn(c);return new Vt(c,_,c,_)}},nhi=class extends Blt{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:ji.writable})}},rhi=class extends Blt{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:ji.writable})}},ohi=class extends Blt{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:ji.writable,kbOpts:{kbExpr:ji.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}},shi=class extends jlt{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:ji.writable})}},ahi=class extends jlt{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:ji.writable})}},chi=class extends jlt{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:ji.writable,kbOpts:{kbExpr:ji.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}},lhi=class extends zs{constructor(){super({id:"deleteInsideWord",precondition:ji.writable,label:de("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(i,o,s){if(!o.hasModel())return;let c=_P(o.getOption(131),o.getOption(130)),_=o.getModel(),b=o.getSelections().map(w=>{let D=mw.deleteInsideWord(c,_,w);return new tx(D,"")});o.pushUndoStop(),o.executeCommands(this.id,b),o.pushUndoStop()}};Zs(new zmi);Zs(new Vmi);Zs(new Hmi);Zs(new Umi);Zs(new Jmi);Zs(new qmi);Zs(new Kmi);Zs(new Xmi);Zs(new Ymi);Zs(new Qmi);Zs(new Zmi);Zs(new ehi);Zs(new $mi);Zs(new Gmi);Zs(new thi);Zs(new ihi);Zs(new nhi);Zs(new rhi);Zs(new ohi);Zs(new shi);Zs(new ahi);Zs(new chi);zo(lhi);sd();Vrt();ca();km();gg();var uhi=class extends C4e{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:ji.writable,kbOpts:{kbExpr:ji.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(i,o){let s=IAe.deleteWordPartLeft(i);return s||new Vt(1,1,1,1)}},dhi=class extends C4e{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:ji.writable,kbOpts:{kbExpr:ji.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(i,o){let s=IAe.deleteWordPartRight(i);if(s)return s;let c=i.model.getLineCount(),_=i.model.getLineMaxColumn(c);return new Vt(c,_,c,_)}},ZCt=class extends x4e{_move(i,o,s,c){return IAe.moveWordPartLeft(i,o,s)}},fhi=class extends ZCt{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:ji.textInputFocus,primary:0,mac:{primary:783},weight:100}})}};Ku.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var _hi=class extends ZCt{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:ji.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}};Ku.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var ekt=class extends x4e{_move(i,o,s,c){return IAe.moveWordPartRight(i,o,s)}},phi=class extends ekt{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:ji.textInputFocus,primary:0,mac:{primary:785},weight:100}})}},mhi=class extends ekt{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:ji.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}};Zs(new uhi);Zs(new dhi);Zs(new fhi);Zs(new _hi);Zs(new phi);Zs(new mhi);vP();$r();sd();Fs();var Wlt=class extends Ui{constructor(i){super(),this.editor=i,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){let i=H2.get(this.editor);if(i&&this.editor.hasModel()){let o=this.editor.getOptions().get(92);o||(this.editor.isSimpleWidget?o=new Vb(de("editor.simple.readonly","Cannot edit in read-only input")):o=new Vb(de("editor.readonly","Cannot edit in read-only editor"))),i.showMessage(o,this.editor.getPosition())}}};Wlt.ID="editor.contrib.readOnlyMessageController";Al(Wlt.ID,Wlt,2);var hzr=Git($Fi());PX();va();$r();sd();uf();var Vlt=class extends Ui{constructor(i){super(),this.editor=i,this.widget=null,$A&&(this._register(i.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let i=!this.editor.getOption(91);!this.widget&&i?this.widget=new tkt(this.editor):this.widget&&!i&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}};Vlt.ID="editor.contrib.iPadShowKeyboard";var tkt=class l extends Ui{constructor(i){super(),this.editor=i,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(Tr(this._domNode,"touchstart",o=>{this.editor.focus()})),this._register(Tr(this._domNode,"focus",o=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return l.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}};tkt.ID="editor.contrib.ShowKeyboardWidget";Al(Vlt.ID,Vlt,3);var pUr=Git(XFi());RC();mPe();PX();Fs();RC();$r();By();mPe();kL();var _in=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},YFi=function(l,i){return function(o,s){i(o,s,l)}},Ult,Jlt=Ult=class{constructor(i,o){this.quickInputService=i,this.keybindingService=o,this.registry=q_.as(Nj.Quickaccess)}provide(i){let o=new pr;return o.add(i.onDidAccept(()=>{let[s]=i.selectedItems;s&&this.quickInputService.quickAccess.show(s.prefix,{preserveValue:!0})})),o.add(i.onDidChangeValue(s=>{let c=this.registry.getQuickAccessProvider(s.substr(Ult.PREFIX.length));c&&c.prefix&&c.prefix!==Ult.PREFIX&&this.quickInputService.quickAccess.show(c.prefix,{preserveValue:!0})})),i.items=this.getQuickAccessProviders().filter(s=>s.prefix!==Ult.PREFIX),o}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((o,s)=>o.prefix.localeCompare(s.prefix)).flatMap(o=>this.createPicks(o))}createPicks(i){return i.helpEntries.map(o=>{let s=o.prefix||i.prefix,c=s||"\u2026";return{prefix:s,label:c,keybinding:o.commandId?this.keybindingService.lookupKeybinding(o.commandId):void 0,ariaLabel:de("helpPickAriaLabel","{0}, {1}",c,o.description),description:o.description}})}};Jlt.PREFIX="?";Jlt=Ult=_in([YFi(0,hw),YFi(1,ju)],Jlt);q_.as(Nj.Quickaccess).registerQuickAccessProvider({ctor:Jlt,prefix:"",helpEntries:[{description:E0t.helpQuickAccessActionLabel}]});$r();oOe();ude();$r();oOe();b2();bj();_g();$D();var H8e=class{constructor(i){this.options=i,this.rangeHighlightDecorationId=void 0}provide(i,o,s){var c;let _=new pr;i.canAcceptInBackground=!!(!((c=this.options)===null||c===void 0)&&c.canAcceptInBackground),i.matchOnLabel=i.matchOnDescription=i.matchOnDetail=i.sortByLabel=!1;let h=_.add(new Nh);return h.value=this.doProvide(i,o,s),_.add(this.onDidActiveTextEditorControlChange(()=>{h.value=void 0,h.value=this.doProvide(i,o)})),_}doProvide(i,o,s){var c;let _=new pr,h=this.activeTextEditorControl;if(h&&this.canProvideWithTextEditor(h)){let b={editor:h},w=C1t(h);if(w){let D=(c=h.saveViewState())!==null&&c!==void 0?c:void 0;_.add(w.onDidChangeCursorPosition(()=>{var O;D=(O=h.saveViewState())!==null&&O!==void 0?O:void 0})),b.restoreViewState=()=>{D&&h===this.activeTextEditorControl&&h.restoreViewState(D)},_.add(PF(o.onCancellationRequested)(()=>{var O;return(O=b.restoreViewState)===null||O===void 0?void 0:O.call(b)}))}_.add(Qs(()=>this.clearDecorations(h))),_.add(this.provideWithTextEditor(b,i,o,s))}else _.add(this.provideWithoutTextEditor(i,o));return _}canProvideWithTextEditor(i){return!0}gotoLocation({editor:i},o){i.setSelection(o.range,"code.jump"),i.revealRangeInCenter(o.range,0),o.preserveFocus||i.focus();let s=i.getModel();s&&"getLineContent"in s&&hP(`${s.getLineContent(o.range.startLineNumber)}`)}getModel(i){var o;return gat(i)?(o=i.getModel())===null||o===void 0?void 0:o.modified:i.getModel()}addDecorations(i,o){i.changeDecorations(s=>{let c=[];this.rangeHighlightDecorationId&&(c.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),c.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);let _=[{range:o,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:o,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:L0(jpt),position:JD.Full}}}],[h,b]=s.deltaDecorations(c,_);this.rangeHighlightDecorationId={rangeHighlightId:h,overviewRulerDecorationId:b}})}clearDecorations(i){let o=this.rangeHighlightDecorationId;o&&(i.changeDecorations(s=>{s.deltaDecorations([o.overviewRulerDecorationId,o.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}};Fs();var qlt=class l extends H8e{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(i){let o=de("cannotRunGotoLine","Open a text editor first to go to a line.");return i.items=[{label:o}],i.ariaLabel=o,Ui.None}provideWithTextEditor(i,o,s){let c=i.editor,_=new pr;_.add(o.onDidAccept(w=>{let[D]=o.selectedItems;if(D){if(!this.isValidLineNumber(c,D.lineNumber))return;this.gotoLocation(i,{range:this.toRange(D.lineNumber,D.column),keyMods:o.keyMods,preserveFocus:w.inBackground}),w.inBackground||o.hide()}}));let h=()=>{let w=this.parsePosition(c,o.value.trim().substr(l.PREFIX.length)),D=this.getPickLabel(c,w.lineNumber,w.column);if(o.items=[{lineNumber:w.lineNumber,column:w.column,label:D}],o.ariaLabel=D,!this.isValidLineNumber(c,w.lineNumber)){this.clearDecorations(c);return}let O=this.toRange(w.lineNumber,w.column);c.revealRangeInCenter(O,0),this.addDecorations(c,O)};h(),_.add(o.onDidChangeValue(()=>h()));let b=C1t(c);return b&&b.getOptions().get(68).renderType===2&&(b.updateOptions({lineNumbers:"on"}),_.add(Qs(()=>b.updateOptions({lineNumbers:"relative"})))),_}toRange(i=1,o=1){return{startLineNumber:i,startColumn:o,endLineNumber:i,endColumn:o}}parsePosition(i,o){let s=o.split(/,|:|#/).map(_=>parseInt(_,10)).filter(_=>!isNaN(_)),c=this.lineCount(i)+1;return{lineNumber:s[0]>0?s[0]:c+s[0],column:s[1]}}getPickLabel(i,o,s){if(this.isValidLineNumber(i,o))return this.isValidColumn(i,o,s)?de("gotoLineColumnLabel","Go to line {0} and character {1}.",o,s):de("gotoLineLabel","Go to line {0}.",o);let c=i.getPosition()||{lineNumber:1,column:1},_=this.lineCount(i);return _>1?de("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",c.lineNumber,c.column,_):de("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",c.lineNumber,c.column)}isValidLineNumber(i,o){return!o||typeof o!="number"?!1:o>0&&o<=this.lineCount(i)}isValidColumn(i,o,s){if(!s||typeof s!="number")return!1;let c=this.getModel(i);if(!c)return!1;let _={lineNumber:o,column:s};return c.validatePosition(_).equals(_)}lineCount(i){var o,s;return(s=(o=this.getModel(i))===null||o===void 0?void 0:o.getLineCount())!==null&&s!==void 0?s:0}};qlt.PREFIX=":";RC();mPe();$b();PX();Pa();sd();km();kL();var pin=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},min=function(l,i){return function(o,s){i(o,s,l)}},$lt=class extends qlt{constructor(i){super(),this.editorService=i,this.onDidActiveTextEditorControlChange=Yo.None}get activeTextEditorControl(){var i;return(i=this.editorService.getFocusedCodeEditor())!==null&&i!==void 0?i:void 0}};$lt=pin([min(0,$u)],$lt);var Glt=class l extends zs{constructor(){super({id:l.ID,label:lst.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:ji.focus,primary:2085,mac:{primary:293},weight:100}})}run(i){i.get(hw).quickAccess.show($lt.PREFIX)}};Glt.ID="editor.action.gotoLine";zo(Glt);q_.as(Nj.Quickaccess).registerQuickAccessProvider({ctor:$lt,prefix:$lt.PREFIX,helpEntries:[{description:lst.gotoLineActionLabel,commandId:Glt.ID}]});Bu();am();Og();P0();kj();DG();uf();Bl();var e7i=[void 0,[]];function rkt(l,i,o=0,s=0){let c=i;return c.values&&c.values.length>1?hin(l,c.values,o,s):t7i(l,i,o,s)}function hin(l,i,o,s){let c=0,_=[];for(let h of i){let[b,w]=t7i(l,h,o,s);if(typeof b!="number")return e7i;c+=b,_.push(...w)}return[c,gin(_)]}function t7i(l,i,o,s){let c=IX(i.original,i.originalLowercase,o,l,l.toLowerCase(),s,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return c?[c[0],wfe(c)]:e7i}var EVr=Object.freeze({score:0});function gin(l){let i=l.sort((c,_)=>c.start-_.start),o=[],s;for(let c of i)!s||!yin(s,c)?(s=c,o.push(c)):(s.start=Math.min(s.start,c.start),s.end=Math.max(s.end,c.end));return o}function yin(l,i){return!(l.end=0,h=QFi(l),b,w=l.split(i7i);if(w.length>1)for(let D of w){let O=QFi(D),{pathNormalized:j,normalized:F,normalizedLowercase:X}=ZFi(D);F&&(b||(b=[]),b.push({original:D,originalLowercase:D.toLowerCase(),pathNormalized:j,normalized:F,normalizedLowercase:X,expectContiguousMatch:O}))}return{original:l,originalLowercase:i,pathNormalized:o,normalized:s,normalizedLowercase:c,values:b,containsPathSeparator:_,expectContiguousMatch:h}}function ZFi(l){let i;Ny?i=l.replace(/\//g,OF):i=l.replace(/\\/g,OF);let o=Zgi(i).replace(/\s|"/g,"");return{pathNormalized:i,normalized:o,normalizedLowercase:o.toLowerCase()}}function vhi(l){return Array.isArray(l)?nkt(l.map(i=>i.original).join(i7i)):nkt(l.original)}$r();Bl();ca();Fg();p8e();Fs();dp();VF();var vin=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},n7i=function(l,i){return function(o,s){i(o,s,l)}},U8e,wK=U8e=class extends H8e{constructor(i,o,s=Object.create(null)){super(s),this._languageFeaturesService=i,this._outlineModelService=o,this.options=s,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(i){return this.provideLabelPick(i,de("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),Ui.None}provideWithTextEditor(i,o,s,c){let _=i.editor,h=this.getModel(_);return h?this._languageFeaturesService.documentSymbolProvider.has(h)?this.doProvideWithEditorSymbols(i,h,o,s,c):this.doProvideWithoutEditorSymbols(i,h,o,s):Ui.None}doProvideWithoutEditorSymbols(i,o,s,c){let _=new pr;return this.provideLabelPick(s,de("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>!await this.waitForLanguageSymbolRegistry(o,_)||c.isCancellationRequested||_.add(this.doProvideWithEditorSymbols(i,o,s,c)))(),_}provideLabelPick(i,o){i.items=[{label:o,index:0,kind:14}],i.ariaLabel=o}async waitForLanguageSymbolRegistry(i,o){if(this._languageFeaturesService.documentSymbolProvider.has(i))return!0;let s=new $j,c=o.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(i)&&(c.dispose(),s.complete(!0))}));return o.add(Qs(()=>s.complete(!1))),s.p}doProvideWithEditorSymbols(i,o,s,c,_){var h;let b=i.editor,w=new pr;w.add(s.onDidAccept(F=>{var X;let[K]=s.selectedItems;K&&K.range&&(this.gotoLocation(i,{range:K.range.selection,keyMods:s.keyMods,preserveFocus:F.inBackground}),(X=_?.handleAccept)===null||X===void 0||X.call(_,K),F.inBackground||s.hide())})),w.add(s.onDidTriggerItemButton(({item:F})=>{F&&F.range&&(this.gotoLocation(i,{range:F.range.selection,keyMods:s.keyMods,forceSideBySide:!0}),s.hide())}));let D=this.getDocumentSymbols(o,c),O,j=async F=>{O?.dispose(!0),s.busy=!1,O=new k_(c),s.busy=!0;try{let X=nkt(s.value.substr(U8e.PREFIX.length).trim()),K=await this.doGetSymbolPicks(D,X,void 0,O.token,o);if(c.isCancellationRequested)return;if(K.length>0){if(s.items=K,F&&X.original.length===0){let re=Ple(K,Pe=>!!(Pe.type!=="separator"&&Pe.range&&Vt.containsPosition(Pe.range.decoration,F)));re&&(s.activeItems=[re])}}else X.original.length>0?this.provideLabelPick(s,de("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(s,de("noSymbolResults","No editor symbols"))}finally{c.isCancellationRequested||(s.busy=!1)}};return w.add(s.onDidChangeValue(()=>j(void 0))),j((h=b.getSelection())===null||h===void 0?void 0:h.getPosition()),w.add(s.onDidChangeActive(()=>{let[F]=s.activeItems;F&&F.range&&(b.revealRangeInCenter(F.range.selection,0),this.addDecorations(b,F.range.decoration))})),w}async doGetSymbolPicks(i,o,s,c,_){var h,b;let w=await i;if(c.isCancellationRequested)return[];let D=o.original.indexOf(U8e.SCOPE_PREFIX)===0,O=D?1:0,j,F;o.values&&o.values.length>1?(j=vhi(o.values[0]),F=vhi(o.values.slice(1))):j=o;let X,K=(b=(h=this.options)===null||h===void 0?void 0:h.openSideBySideDirection)===null||b===void 0?void 0:b.call(h);K&&(X=[{iconClass:K==="right"?uc.asClassName(Xo.splitHorizontal):uc.asClassName(Xo.splitVertical),tooltip:K==="right"?de("openToSide","Open to the Side"):de("openToBottom","Open to the Bottom")}]);let re=[];for(let Je=0;JeO){let er=!1;if(j!==o&&([Mi,zi]=rkt(Ct,{...o,values:void 0},O,Et),typeof Mi=="number"&&(er=!0)),typeof Mi!="number"&&([Mi,zi]=rkt(Ct,j,O,Et),typeof Mi!="number"))continue;if(!er&&F){if(St&&F.original.length>0&&([Vr,sn]=rkt(St,F)),typeof Vr!="number")continue;typeof Mi=="number"&&(Mi+=Vr)}}let gr=Ye.tags&&Ye.tags.indexOf(1)>=0;re.push({index:Je,kind:Ye.kind,score:Mi,label:Ct,ariaLabel:qgi(Ye.name,Ye.kind),description:St,highlights:gr?void 0:{label:zi,description:sn},range:{selection:Vt.collapseToStart(Ye.selectionRange),decoration:Ye.range},uri:_.uri,symbolName:ft,strikethrough:gr,buttons:X})}let Pe=re.sort((Je,Ye)=>D?this.compareByKindAndScore(Je,Ye):this.compareByScore(Je,Ye)),Le=[];if(D){let Ct=function(){Ye&&typeof Je=="number"&&ft>0&&(Ye.label=QB(Shi[Je]||bhi,ft))},Je,Ye,ft=0;for(let Et of Pe)Je!==Et.kind?(Ct(),Je=Et.kind,ft=1,Ye={type:"separator"},Le.push(Ye)):ft++,Le.push(Et);Ct()}else Pe.length>0&&(Le=[{label:de("symbols","symbols ({0})",re.length),type:"separator"},...Pe]);return Le}compareByScore(i,o){if(typeof i.score!="number"&&typeof o.score=="number")return 1;if(typeof i.score=="number"&&typeof o.score!="number")return-1;if(typeof i.score=="number"&&typeof o.score=="number"){if(i.score>o.score)return-1;if(i.scoreo.index?1:0}compareByKindAndScore(i,o){let s=Shi[i.kind]||bhi,c=Shi[o.kind]||bhi,_=s.localeCompare(c);return _===0?this.compareByScore(i,o):_}async getDocumentSymbols(i,o){let s=await this._outlineModelService.getOrCreate(i,o);return o.isCancellationRequested?[]:s.asListOfDocumentSymbols()}};wK.PREFIX="@";wK.SCOPE_PREFIX=":";wK.PREFIX_BY_CATEGORY=`${U8e.PREFIX}${U8e.SCOPE_PREFIX}`;wK=U8e=vin([n7i(0,js),n7i(1,zue)],wK);var bhi=de("property","properties ({0})"),Shi={5:de("method","methods ({0})"),11:de("function","functions ({0})"),8:de("_constructor","constructors ({0})"),12:de("variable","variables ({0})"),4:de("class","classes ({0})"),22:de("struct","structs ({0})"),23:de("event","events ({0})"),24:de("operator","operators ({0})"),10:de("interface","interfaces ({0})"),2:de("namespace","namespaces ({0})"),3:de("package","packages ({0})"),25:de("typeParameter","type parameters ({0})"),1:de("modules","modules ({0})"),6:de("property","properties ({0})"),9:de("enum","enumerations ({0})"),21:de("enumMember","enumeration members ({0})"),14:de("string","strings ({0})"),0:de("file","files ({0})"),17:de("array","arrays ({0})"),15:de("number","numbers ({0})"),16:de("boolean","booleans ({0})"),18:de("object","objects ({0})"),19:de("key","keys ({0})"),7:de("field","fields ({0})"),13:de("constant","constants ({0})")};RC();mPe();$b();PX();Pa();sd();km();kL();p8e();dp();var bin=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},xhi=function(l,i){return function(o,s){i(o,s,l)}},Chi=class extends wK{constructor(i,o,s){super(o,s),this.editorService=i,this.onDidActiveTextEditorControlChange=Yo.None}get activeTextEditorControl(){var i;return(i=this.editorService.getFocusedCodeEditor())!==null&&i!==void 0?i:void 0}};Chi=bin([xhi(0,$u),xhi(1,js),xhi(2,zue)],Chi);var Klt=class l extends zs{constructor(){super({id:l.ID,label:l3e.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:ji.hasDocumentSymbolProvider,kbOpts:{kbExpr:ji.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(i){i.get(hw).quickAccess.show(wK.PREFIX,{itemActivation:F7.NONE})}};Klt.ID="editor.action.quickOutline";zo(Klt);q_.as(Nj.Quickaccess).registerQuickAccessProvider({ctor:Chi,prefix:wK.PREFIX,helpEntries:[{description:l3e.quickOutlineActionLabel,prefix:wK.PREFIX,commandId:Klt.ID},{description:l3e.quickOutlineByCategoryActionLabel,prefix:wK.PREFIX_BY_CATEGORY}]});RC();mPe();PX();$b();iPe();Toi();Pl();kj();ude();$r();UD();function Sin(l){var i;let o=new Map;for(let s of l)o.set(s,((i=o.get(s))!==null&&i!==void 0?i:0)+1);return o}var okt=class l{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(i,o){let s=this.computeEmbedding(i),c=new Map,_=[];for(let[h,b]of this.documents){if(o.isCancellationRequested)return[];for(let w of b.chunks){let D=this.computeSimilarityScore(w,s,c);D>0&&_.push({key:h,score:D})}}return _}static termFrequencies(i){return Sin(l.splitTerms(i))}static*splitTerms(i){let o=s=>s.toLowerCase();for(let[s]of i.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield o(s);let c=s.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(c.length>1)for(let _ of c)_.length>2&&/\p{Letter}{3,}/gu.test(_)&&(yield o(_))}}updateDocuments(i){var o;for(let{key:s}of i)this.deleteDocument(s);for(let s of i){let c=[];for(let _ of s.textChunks){let h=l.termFrequencies(_);for(let b of h.keys())this.chunkOccurrences.set(b,((o=this.chunkOccurrences.get(b))!==null&&o!==void 0?o:0)+1);c.push({text:_,tf:h})}this.chunkCount+=c.length,this.documents.set(s.key,{chunks:c})}return this}deleteDocument(i){let o=this.documents.get(i);if(o){this.documents.delete(i),this.chunkCount-=o.chunks.length;for(let s of o.chunks)for(let c of s.tf.keys()){let _=this.chunkOccurrences.get(c);if(typeof _=="number"){let h=_-1;h<=0?this.chunkOccurrences.delete(c):this.chunkOccurrences.set(c,h)}}}}computeSimilarityScore(i,o,s){let c=0;for(let[_,h]of Object.entries(o)){let b=i.tf.get(_);if(!b)continue;let w=s.get(_);typeof w!="number"&&(w=this.computeIdf(_),s.set(_,w));let D=b*w;c+=D*h}return c}computeEmbedding(i){let o=l.termFrequencies(i);return this.computeTfidf(o)}computeIdf(i){var o;let s=(o=this.chunkOccurrences.get(i))!==null&&o!==void 0?o:0;return s>0?Math.log((this.chunkCount+1)/s):0}computeTfidf(i){let o=Object.create(null);for(let[s,c]of i){let _=this.computeIdf(s);_>0&&(o[s]=c*_)}return o}};function r7i(l){var i,o;let s=l.slice(0);s.sort((_,h)=>h.score-_.score);let c=(o=(i=s[0])===null||i===void 0?void 0:i.score)!==null&&o!==void 0?o:0;if(c>0)for(let _ of s)_.score/=c;return s}Fs();gg();Rg();qLe();kc();By();aL();Bu();am();$r();cm();var J8e;(function(l){l[l.NO_ACTION=0]="NO_ACTION",l[l.CLOSE_PICKER=1]="CLOSE_PICKER",l[l.REFRESH_PICKER=2]="REFRESH_PICKER",l[l.REMOVE_ITEM=3]="REMOVE_ITEM"})(J8e||(J8e={}));function khi(l){let i=l;return Array.isArray(i.items)}function o7i(l){let i=l;return!!i.picks&&i.additionalPicks instanceof Promise}var skt=class extends Ui{constructor(i,o){super(),this.prefix=i,this.options=o}provide(i,o,s){var c;let _=new pr;i.canAcceptInBackground=!!(!((c=this.options)===null||c===void 0)&&c.canAcceptInBackground),i.matchOnLabel=i.matchOnDescription=i.matchOnDetail=i.sortByLabel=!1;let h,b=_.add(new Nh),w=async()=>{var O;let j=b.value=new pr;h?.dispose(!0),i.busy=!1,h=new k_(o);let F=h.token,X=i.value.substring(this.prefix.length);!((O=this.options)===null||O===void 0)&&O.shouldSkipTrimPickFilter||(X=X.trim());let K=this._getPicks(X,j,F,s),re=(Le,Je)=>{var Ye;let ft,Ct;if(khi(Le)?(ft=Le.items,Ct=Le.active):ft=Le,ft.length===0){if(Je)return!1;(X.length>0||i.hideInput)&&(!((Ye=this.options)===null||Ye===void 0)&&Ye.noResultsPick)&&(nde(this.options.noResultsPick)?ft=[this.options.noResultsPick(X)]:ft=[this.options.noResultsPick])}return i.items=ft,Ct&&(i.activeItems=[Ct]),!0},Pe=async Le=>{let Je=!1,Ye=!1;await Promise.all([(async()=>{typeof Le.mergeDelay=="number"&&(await sL(Le.mergeDelay),F.isCancellationRequested)||Ye||(Je=re(Le.picks,!0))})(),(async()=>{i.busy=!0;try{let ft=await Le.additionalPicks;if(F.isCancellationRequested)return;let Ct,Et;khi(Le.picks)?(Ct=Le.picks.items,Et=Le.picks.active):Ct=Le.picks;let St,Mi;if(khi(ft)?(St=ft.items,Mi=ft.active):St=ft,St.length>0||!Je){let zi;if(!Et&&!Mi){let Vr=i.activeItems[0];Vr&&Ct.indexOf(Vr)!==-1&&(zi=Vr)}re({items:[...Ct,...St],active:Et||Mi||zi})}}finally{F.isCancellationRequested||(i.busy=!1),Ye=!0}})()])};if(K!==null)if(o7i(K))await Pe(K);else if(!(K instanceof Promise))re(K);else{i.busy=!0;try{let Le=await K;if(F.isCancellationRequested)return;o7i(Le)?await Pe(Le):re(Le)}finally{F.isCancellationRequested||(i.busy=!1)}}};_.add(i.onDidChangeValue(()=>w())),w(),_.add(i.onDidAccept(O=>{var j;if(s?.handleAccept){O.inBackground||i.hide(),(j=s.handleAccept)===null||j===void 0||j.call(s,i.activeItems[0]);return}let[F]=i.selectedItems;typeof F?.accept=="function"&&(O.inBackground||i.hide(),F.accept(i.keyMods,O))}));let D=async(O,j)=>{var F,X;if(typeof j.trigger!="function")return;let K=(X=(F=j.buttons)===null||F===void 0?void 0:F.indexOf(O))!==null&&X!==void 0?X:-1;if(K>=0){let re=j.trigger(K,i.keyMods),Pe=typeof re=="number"?re:await re;if(o.isCancellationRequested)return;switch(Pe){case J8e.NO_ACTION:break;case J8e.CLOSE_PICKER:i.hide();break;case J8e.REFRESH_PICKER:w();break;case J8e.REMOVE_ITEM:{let Le=i.items.indexOf(j);if(Le!==-1){let Je=i.items.slice(),Ye=Je.splice(Le,1),ft=i.activeItems.filter(Et=>Et!==Ye[0]),Ct=i.keepScrollPosition;i.keepScrollPosition=!0,i.items=Je,ft&&(i.activeItems=ft),i.keepScrollPosition=Ct}break}}}};return _.add(i.onDidTriggerItemButton(({button:O,item:j})=>D(O,j))),_.add(i.onDidTriggerSeparatorButton(({button:O,separator:j})=>D(O,j))),_}};sK();dP();var s7i=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},A_e=function(l,i){return function(o,s){i(o,s,l)}},k4e,gw,P_e=k4e=class extends skt{constructor(i,o,s,c,_,h){super(k4e.PREFIX,i),this.instantiationService=o,this.keybindingService=s,this.commandService=c,this.telemetryService=_,this.dialogService=h,this.commandsHistory=this._register(this.instantiationService.createInstance(L_e)),this.options=i}async _getPicks(i,o,s,c){var _,h,b,w;let D=await this.getCommandPicks(s);if(s.isCancellationRequested)return[];let O=PF(()=>{let Le=new okt;Le.updateDocuments(D.map(Ye=>({key:Ye.commandId,textChunks:[this.getTfIdfChunk(Ye)]})));let Je=Le.calculateScores(i,s);return r7i(Je).filter(Ye=>Ye.score>k4e.TFIDF_THRESHOLD).slice(0,k4e.TFIDF_MAX_RESULTS)}),j=[];for(let Le of D){let Je=(_=k4e.WORD_FILTER(i,Le.label))!==null&&_!==void 0?_:void 0,Ye=Le.commandAlias&&(h=k4e.WORD_FILTER(i,Le.commandAlias))!==null&&h!==void 0?h:void 0;if(Je||Ye)Le.highlights={label:Je,detail:this.options.showAlias?Ye:void 0},j.push(Le);else if(i===Le.commandId)j.push(Le);else if(i.length>=3){let ft=O();if(s.isCancellationRequested)return[];let Ct=ft.find(Et=>Et.key===Le.commandId);Ct&&(Le.tfIdfScore=Ct.score,j.push(Le))}}let F=new Map;for(let Le of j){let Je=F.get(Le.label);Je?(Le.description=Le.commandId,Je.description=Je.commandId):F.set(Le.label,Le)}j.sort((Le,Je)=>{if(Le.tfIdfScore&&Je.tfIdfScore)return Le.tfIdfScore===Je.tfIdfScore?Le.label.localeCompare(Je.label):Je.tfIdfScore-Le.tfIdfScore;if(Le.tfIdfScore)return 1;if(Je.tfIdfScore)return-1;let Ye=this.commandsHistory.peek(Le.commandId),ft=this.commandsHistory.peek(Je.commandId);if(Ye&&ft)return Ye>ft?-1:1;if(Ye)return-1;if(ft)return 1;if(this.options.suggestedCommandIds){let Ct=this.options.suggestedCommandIds.has(Le.commandId),Et=this.options.suggestedCommandIds.has(Je.commandId);if(Ct&&Et)return 0;if(Ct)return-1;if(Et)return 1}return Le.label.localeCompare(Je.label)});let X=[],K=!1,re=!0,Pe=!!this.options.suggestedCommandIds;for(let Le=0;Le{var Le;let Je=await this.getAdditionalCommandPicks(D,j,i,s);if(s.isCancellationRequested)return[];let Ye=Je.map(ft=>this.toCommandPick(ft,c));return re&&((Le=Ye[0])===null||Le===void 0?void 0:Le.type)!=="separator"&&Ye.unshift({type:"separator",label:de("suggested","similar commands")}),Ye})()}:X}toCommandPick(i,o){if(i.type==="separator")return i;let s=this.keybindingService.lookupKeybinding(i.commandId),c=s?de("commandPickAriaLabelWithKeybinding","{0}, {1}",i.label,s.getAriaLabel()):i.label;return{...i,ariaLabel:c,detail:this.options.showAlias&&i.commandAlias!==i.label?i.commandAlias:void 0,keybinding:s,accept:async()=>{var _,h;this.commandsHistory.push(i.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:i.commandId,from:(_=o?.from)!==null&&_!==void 0?_:"quick open"});try{!((h=i.args)===null||h===void 0)&&h.length?await this.commandService.executeCommand(i.commandId,...i.args):await this.commandService.executeCommand(i.commandId)}catch(b){I2(b)||this.dialogService.error(de("canNotRun","Command '{0}' resulted in an error",i.label),LOe(b))}}}}getTfIdfChunk({label:i,commandAlias:o,commandDescription:s}){let c=i;return o&&o!==i&&(c+=` - ${o}`),s&&s.value!==i&&(c+=` - ${s.value===s.original?s.value:`${s.value} (${s.original})`}`),c}};P_e.PREFIX=">";P_e.TFIDF_THRESHOLD=.5;P_e.TFIDF_MAX_RESULTS=5;P_e.WORD_FILTER=t0t(tPe,Qki,yri);P_e=k4e=s7i([A_e(1,qs),A_e(2,ju),A_e(3,c_),A_e(4,Ly),A_e(5,CX)],P_e);var L_e=gw=class extends Ui{constructor(i,o,s){super(),this.storageService=i,this.configurationService=o,this.logService=s,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(i=>this.updateConfiguration(i))),this._register(this.storageService.onWillSaveState(i=>{i.reason===Rfe.SHUTDOWN&&this.saveState()}))}updateConfiguration(i){i&&!i.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=gw.getConfiguredCommandHistoryLength(this.configurationService),gw.cache&&gw.cache.limit!==this.configuredCommandsHistoryLength&&(gw.cache.limit=this.configuredCommandsHistoryLength,gw.hasChanges=!0))}load(){let i=this.storageService.get(gw.PREF_KEY_CACHE,0),o;if(i)try{o=JSON.parse(i)}catch(c){this.logService.error(`[CommandsHistory] invalid data: ${c}`)}let s=gw.cache=new L2(this.configuredCommandsHistoryLength,1);if(o){let c;o.usesLRU?c=o.entries:c=o.entries.sort((_,h)=>_.value-h.value),c.forEach(_=>s.set(_.key,_.value))}gw.counter=this.storageService.getNumber(gw.PREF_KEY_COUNTER,0,gw.counter)}push(i){gw.cache&&(gw.cache.set(i,gw.counter++),gw.hasChanges=!0)}peek(i){var o;return(o=gw.cache)===null||o===void 0?void 0:o.peek(i)}saveState(){if(!gw.cache||!gw.hasChanges)return;let i={usesLRU:!0,entries:[]};gw.cache.forEach((o,s)=>i.entries.push({key:s,value:o})),this.storageService.store(gw.PREF_KEY_CACHE,JSON.stringify(i),0,0),this.storageService.store(gw.PREF_KEY_COUNTER,gw.counter,0,0),gw.hasChanges=!1}static getConfiguredCommandHistoryLength(i){var o,s;let _=(s=(o=i.getValue().workbench)===null||o===void 0?void 0:o.commandPalette)===null||s===void 0?void 0:s.history;return typeof _=="number"?_:gw.DEFAULT_COMMANDS_HISTORY_LENGTH}};L_e.DEFAULT_COMMANDS_HISTORY_LENGTH=50;L_e.PREF_KEY_CACHE="commandPalette.mru.cache";L_e.PREF_KEY_COUNTER="commandPalette.mru.counter";L_e.counter=1;L_e.hasChanges=!1;L_e=gw=s7i([A_e(0,z2),A_e(1,gl),A_e(2,Nv)],L_e);var akt=class extends P_e{constructor(i,o,s,c,_,h){super(i,o,s,c,_,h)}getCodeEditorCommandPicks(){var i;let o=this.activeTextEditorControl;if(!o)return[];let s=[];for(let c of o.getSupportedActions()){let _;!((i=c.metadata)===null||i===void 0)&&i.description&&(NTi(c.metadata.description)?_=c.metadata.description:_={original:c.metadata.description,value:c.metadata.description}),s.push({commandId:c.id,commandAlias:c.alias,commandDescription:_,label:ZLe(c.label)||c.id})}return s}};kc();By();gg();dP();qLe();sd();km();kL();var xin=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},q8e=function(l,i){return function(o,s){i(o,s,l)}},Xlt=class extends akt{get activeTextEditorControl(){var i;return(i=this.codeEditorService.getFocusedCodeEditor())!==null&&i!==void 0?i:void 0}constructor(i,o,s,c,_,h){super({showAlias:!1},i,s,c,_,h),this.codeEditorService=o}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};Xlt=xin([q8e(0,qs),q8e(1,$u),q8e(2,ju),q8e(3,c_),q8e(4,Ly),q8e(5,CX)],Xlt);var Ylt=class l extends zs{constructor(){super({id:l.ID,label:ust.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:ji.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(i){i.get(hw).quickAccess.show(Xlt.PREFIX)}};Ylt.ID="editor.action.quickCommand";zo(Ylt);q_.as(Nj.Quickaccess).registerQuickAccessProvider({ctor:Xlt,prefix:Xlt.PREFIX,helpEntries:[{description:ust.quickCommandHelp,commandId:Ylt.ID}]});sd();$b();Rg();du();kc();QD();sK();var Cin=function(l,i,o,s){var c=arguments.length,_=c<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(l,i,o,s);else for(var b=l.length-1;b>=0;b--)(h=l[b])&&(_=(c<3?h(_):c>3?h(i,o,_):h(i,o))||_);return c>3&&_&&Object.defineProperty(i,o,_),_},$8e=function(l,i){return function(o,s){i(o,s,l)}},whi=class extends oY{constructor(i,o,s,c,_,h,b){super(!0,i,o,s,c,_,h,b)}};whi=Cin([$8e(1,La),$8e(2,$u),$8e(3,Em),$8e(4,qs),$8e(5,z2),$8e(6,gl)],whi);Al(oY.ID,whi,4);sd();DPe();PX();dW();aai();var Thi=class extends zs{constructor(){super({id:"editor.action.toggleHighContrast",label:D0t.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(i,o){let s=i.get(yI),c=s.getColorTheme();ZA(c.type)?(s.setTheme(this._originalThemeName||(rX(c.type)?EPe:KX)),this._originalThemeName=null):(s.setTheme(rX(c.type)?Hfe:Ufe),this._originalThemeName=c.themeName)}};zo(Thi);HC();var w4e=Git(h7i(),1);function g7i(l,i){return w4e.createSourceFile("input.ts",l,{languageVersion:w4e.ScriptTarget.ESNext},!0,i?w4e.ScriptKind.TSX:w4e.ScriptKind.TS)}function y7i(l,i){let o=l.getLineAndCharacterOfPosition(i.getStart(l,!1)),s=l.getLineAndCharacterOfPosition(i.getEnd());return{message:"[ts-blank-space] Unsupported syntax",startLineNumber:o.line+1,startColumn:o.character+1,endLineNumber:s.line+1,endColumn:s.character+1,severity:Fci.Error}}function v7i(l,i){let o=[];for(let c=0;c extends Array implements HasField { + public field!: string; + + method(this: HasField, a?: string): void { + this.field = a as string; + } +} +`,i=location.hash;if(!i)return{text:l,tsx:!1};try{let o=i.slice(1);return o+=Array((4-o.length%4)%4+1).join("="),o=o.replace(/\-/g,"+").replace(/\_/g,"/"),JSON.parse(atob(o))}catch(o){return console.error(o),{text:l,tsx:!1}}}var Phi=!1;function Lhi(){let l=T4e.getValue(),i=Zlt.enabled;try{let o=`${btoa(JSON.stringify({tsx:i,text:l}))}`;o=o.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),window.history.replaceState(null,"","#"+o)}catch(o){console.error(o)}}var Zlt=b7i("lang-select","tsx","ts"),C7i=document.getElementById("ghost-check");function k7i(){let l=yat.typescript;yat.typescript.typescriptDefaults.setCompilerOptions({target:l.ScriptTarget.ESNext,jsx:Zlt.enabled?l.JsxEmit.Preserve:l.JsxEmit.None})}var T4e=(()=>{let l=kin();Zlt.enabled=!!l.tsx,k7i();let i=ZX.createModel(l.text,"typescript");return i.detectIndentation(!0,4),yat.typescript.typescriptDefaults.setDiagnosticsOptions({onlyVisible:!0,noSemanticValidation:!0,noSyntaxValidation:!1,noSuggestionDiagnostics:!0}),i})(),ukt=ZX.createModel("","javascript"),Ohi=win(ukt),S7i=Ohi.createDecorationsCollection();function w7i(){let l=T4e.getValue();if(C7i.checked){let i=l.split(` +`).flatMap((o,s)=>v7i(s+1,o));S7i.set(i)}else S7i.clear()}function Fhi(){let l=T4e.getValue(),i=Zlt.enabled;try{let o=[],s=g7i(l,i),c=out(s,_=>{o.push(y7i(s,_))});ZX.setModelMarkers(T4e,"ts-blank-space",o),ukt.setValue(c),w7i()}catch(o){console.error(o),ukt.setValue("Error")}}Fhi();T4e.onDidChangeContent(l=>{Fhi()});Zlt.onchange=function(){k7i(),Phi&&Lhi(),Fhi()};C7i.onchange=w7i;document.body.addEventListener("blur",l=>{l.relatedTarget===null&&Phi&&Phi&&Lhi()},{capture:!0});document.getElementById("save-button").onclick=Lhi;var T7i=ZX.create(BW.ts,{model:T4e,language:"typescript",codeLens:!1,hover:{enabled:!0},minimap:{enabled:!1},renderLineHighlight:"none",contextmenu:!1,wordWrap:"off",scrollbar:{handleMouseWheel:!1}});function win(l){return ZX.create(BW.js,{model:l,language:"javascript",readOnly:!0,scrollbar:{handleMouseWheel:!1},codeLens:!1,hover:{enabled:!1},minimap:{enabled:!1},lineNumbers:"on",renderWhitespace:"none",detectIndentation:!1,wordWrap:"off",renderLineHighlight:"none",contextmenu:!1,guides:{indentation:!1}})}T7i.onDidScrollChange(l=>{Ohi.setScrollTop(l.scrollTop)});var Qlt;function Tin(){return Qlt||(Qlt=ZX.createDiffEditor(BW.diff,{codeLens:!1,hover:{enabled:!1},minimap:{enabled:!1},renderLineHighlight:"none",contextmenu:!1,renderSideBySide:!0,useInlineViewWhenSpaceIsLimited:!1,readOnly:!0,originalEditable:!0,diffAlgorithm:"legacy",renderWhitespace:"all"}),Qlt.setModel({original:T4e,modified:ukt}),Qlt)}var x7i=document.getElementById("diff-check");x7i.onchange=function(){x7i.checked?(BW.ts.style.display="none",BW.js.style.display="none",BW.diff.style.display="",Tin().layout()):(BW.ts.style.display="",BW.js.style.display="",BW.diff.style.display="none")};BW.diff.style.display="none";var E7i=new ResizeObserver(()=>{T7i.layout(),Ohi.layout()});E7i.observe(BW.ts);E7i.observe(BW.js);var D7i=window.matchMedia("(prefers-color-scheme: dark)");function I7i(){D7i.matches?ZX.setTheme("vs-dark"):ZX.setTheme("vs-light")}D7i.addEventListener("change",I7i);I7i();})(); +/*! Bundled license information: + +typescript/lib/typescript.js: + (*! ***************************************************************************** + 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. + ***************************************************************************** *) + +monaco-editor/esm/vs/base/browser/dompurify/dompurify.js: + (*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE *) + +monaco-editor/esm/vs/basic-languages/abap/abap.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/apex/apex.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/azcli/azcli.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/bat/bat.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/bicep/bicep.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cameligo/cameligo.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/clojure/clojure.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/coffee/coffee.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cpp/cpp.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/csharp/csharp.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/csp/csp.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/css/css.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cypher/cypher.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/dart/dart.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ecl/ecl.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/elixir/elixir.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/flow9/flow9.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/fsharp/fsharp.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/go/go.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/graphql/graphql.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/handlebars/handlebars.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/hcl/hcl.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/html/html.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ini/ini.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/java/java.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/typescript/typescript.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/javascript/javascript.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/julia/julia.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/kotlin/kotlin.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/less/less.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/lexon/lexon.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/lua/lua.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/liquid/liquid.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/m3/m3.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/markdown/markdown.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mdx/mdx.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mips/mips.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/msdax/msdax.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mysql/mysql.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/objective-c/objective-c.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pascal/pascal.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pascaligo/pascaligo.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/perl/perl.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pgsql/pgsql.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/php/php.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pla/pla.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/postiats/postiats.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/powerquery/powerquery.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/powershell/powershell.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/protobuf/protobuf.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pug/pug.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/python/python.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/qsharp/qsharp.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/r/r.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/razor/razor.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/redis/redis.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/redshift/redshift.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/restructuredtext/restructuredtext.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ruby/ruby.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/rust/rust.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sb/sb.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scala/scala.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scheme/scheme.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scss/scss.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/shell/shell.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/solidity/solidity.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sophia/sophia.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sparql/sparql.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sql/sql.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/st/st.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/swift/swift.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + (*!--------------------------------------------------------------------------------------------- + * Copyright (C) David Owens II, owensd.io. All rights reserved. + *--------------------------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/tcl/tcl.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/twig/twig.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/typespec/typespec.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/vb/vb.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/wgsl/wgsl.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/xml/xml.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/yaml/yaml.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/css/cssMode.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/html/htmlMode.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/json/jsonMode.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/typescript/tsMode.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/typescript/monaco.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +typescript/lib/typescript.js: + (*! ***************************************************************************** + 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. + ***************************************************************************** *) + +monaco-editor/esm/vs/basic-languages/_.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/abap/abap.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/apex/apex.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/azcli/azcli.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/bat/bat.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/bicep/bicep.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cameligo/cameligo.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/clojure/clojure.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/coffee/coffee.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cpp/cpp.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/csharp/csharp.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/csp/csp.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/css/css.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/cypher/cypher.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/dart/dart.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ecl/ecl.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/elixir/elixir.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/flow9/flow9.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/fsharp/fsharp.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/go/go.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/graphql/graphql.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/handlebars/handlebars.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/hcl/hcl.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/html/html.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ini/ini.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/java/java.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/julia/julia.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/kotlin/kotlin.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/less/less.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/lexon/lexon.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/lua/lua.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/liquid/liquid.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/m3/m3.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mdx/mdx.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mips/mips.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/msdax/msdax.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/mysql/mysql.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/objective-c/objective-c.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pascal/pascal.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pascaligo/pascaligo.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/perl/perl.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/php/php.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pla/pla.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/postiats/postiats.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/powerquery/powerquery.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/powershell/powershell.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/protobuf/protobuf.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/pug/pug.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/python/python.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/qsharp/qsharp.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/r/r.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/razor/razor.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/redis/redis.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/redshift/redshift.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/restructuredtext/restructuredtext.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/ruby/ruby.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/rust/rust.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sb/sb.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scala/scala.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scheme/scheme.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/scss/scss.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/shell/shell.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/solidity/solidity.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sophia/sophia.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sparql/sparql.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/sql/sql.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/st/st.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/swift/swift.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/tcl/tcl.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/twig/twig.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/typespec/typespec.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/vb/vb.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/wgsl/wgsl.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/xml/xml.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/basic-languages/monaco.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/css/monaco.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/html/monaco.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) + +monaco-editor/esm/vs/language/json/monaco.contribution.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) +*/ diff --git a/vs/editor/editor.worker.js b/vs/editor/editor.worker.js new file mode 100644 index 0000000..1d62580 --- /dev/null +++ b/vs/editor/editor.worker.js @@ -0,0 +1,14 @@ +(()=>{var vn=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?at.isErrorNoTelemetry(t)?new at(t.message+` + +`+t.stack):new Error(t.message+` + +`+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},Xs=new vn;function ze(e){Qs(e)||Xs.onUnexpectedError(e)}function Nn(e){if(e instanceof Error){let{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:at.isErrorNoTelemetry(e)}}return e}var Ln="Canceled";function Qs(e){return e instanceof wn?!0:e instanceof Error&&e.name===Ln&&e.message===Ln}var wn=class extends Error{constructor(){super(Ln),this.name=this.message}};var at=class e extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},ee=class e extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}};function Sn(e,t){let n=this,r=!1,i;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var Oe;(function(e){function t(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i(b){yield b}e.single=i;function s(b){return t(b)?b:i(b)}e.wrap=s;function a(b){return b||n}e.from=a;function*l(b){for(let L=b.length-1;L>=0;L--)yield b[L]}e.reverse=l;function u(b){return!b||b[Symbol.iterator]().next().done===!0}e.isEmpty=u;function c(b){return b[Symbol.iterator]().next().value}e.first=c;function f(b,L){for(let v of b)if(L(v))return!0;return!1}e.some=f;function h(b,L){for(let v of b)if(L(v))return v}e.find=h;function*d(b,L){for(let v of b)L(v)&&(yield v)}e.filter=d;function*g(b,L){let v=0;for(let A of b)yield L(A,v++)}e.map=g;function*p(...b){for(let L of b)yield*L}e.concat=p;function m(b,L,v){let A=v;for(let y of b)A=L(A,y);return A}e.reduce=m;function*_(b,L,v=b.length){for(L<0&&(L+=b.length),v<0?v+=b.length:v>b.length&&(v=b.length);L{t[e]||console.log(n)},3e3)}setParent(t,n){if(t&&t!==oe.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==oe.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}function An(e){return se?.trackDisposable(e),e}function Rn(e){se?.markAsDisposed(e)}function Cn(e,t){se?.setParent(e,t)}function Zs(e,t){if(se)for(let n of e)se.setParent(n,t)}function Ar(e){if(Oe.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Rr(...e){let t=He(()=>Ar(e));return Zs(e,t),t}function He(e){let t=An({dispose:Sn(()=>{Rn(t),e()})});return t}var De=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1,An(this)}dispose(){this._isDisposed||(Rn(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Ar(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return Cn(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),Cn(t,null))}};De.DISABLE_DISPOSED_WARNING=!1;var oe=class{constructor(){this._store=new De,An(this),Cn(this._store,this)}dispose(){Rn(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};oe.None=Object.freeze({dispose(){}});var W=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};W.Undefined=new W(void 0);var lt=class{constructor(){this._first=W.Undefined,this._last=W.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===W.Undefined}clear(){let t=this._first;for(;t!==W.Undefined;){let n=t.next;t.prev=W.Undefined,t.next=W.Undefined,t=n}this._first=W.Undefined,this._last=W.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){let r=new W(t);if(this._first===W.Undefined)this._first=r,this._last=r;else if(n){let s=this._last;this._last=r,r.prev=s,s.next=r}else{let s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==W.Undefined){let t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==W.Undefined){let t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==W.Undefined&&t.next!==W.Undefined){let n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===W.Undefined&&t.next===W.Undefined?(this._first=W.Undefined,this._last=W.Undefined):t.next===W.Undefined?(this._last=this._last.prev,this._last.next=W.Undefined):t.prev===W.Undefined&&(this._first=this._first.next,this._first.prev=W.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==W.Undefined;)yield t.element,t=t.next}};var Ks=globalThis.performance&&typeof globalThis.performance.now=="function",$e=class e{static create(t){return new e(t)}constructor(t){this._now=Ks&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var e1=!1,yr=!1,t1=!1,Ft;(function(e){e.None=()=>oe.None;function t(x){if(t1){let{onDidAddListener:w}=x,R=ht.create(),C=0;x.onDidAddListener=()=>{++C===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),R.print()),w?.()}}}function n(x,w){return d(x,()=>{},0,void 0,!0,void 0,w)}e.defer=n;function r(x){return(w,R=null,C)=>{let k=!1,D;return D=x(V=>{if(!k)return D?D.dispose():k=!0,w.call(R,V)},null,C),k&&D.dispose(),D}}e.once=r;function i(x,w,R){return f((C,k=null,D)=>x(V=>C.call(k,w(V)),null,D),R)}e.map=i;function s(x,w,R){return f((C,k=null,D)=>x(V=>{w(V),C.call(k,V)},null,D),R)}e.forEach=s;function a(x,w,R){return f((C,k=null,D)=>x(V=>w(V)&&C.call(k,V),null,D),R)}e.filter=a;function l(x){return x}e.signal=l;function u(...x){return(w,R=null,C)=>{let k=Rr(...x.map(D=>D(V=>w.call(R,V))));return h(k,C)}}e.any=u;function c(x,w,R,C){let k=R;return i(x,D=>(k=w(k,D),k),C)}e.reduce=c;function f(x,w){let R,C={onWillAddFirstListener(){R=x(k.fire,k)},onDidRemoveLastListener(){R?.dispose()}};w||t(C);let k=new Y(C);return w?.add(k),k.event}function h(x,w){return w instanceof Array?w.push(x):w&&w.add(x),x}function d(x,w,R=100,C=!1,k=!1,D,V){let Q,K,We,Mt=0,Fe,Cr={leakWarningThreshold:D,onWillAddFirstListener(){Q=x(Gs=>{Mt++,K=w(K,Gs),C&&!We&&(kt.fire(K),K=void 0),Fe=()=>{let js=K;K=void 0,We=void 0,(!C||Mt>1)&&kt.fire(js),Mt=0},typeof R=="number"?(clearTimeout(We),We=setTimeout(Fe,R)):We===void 0&&(We=0,queueMicrotask(Fe))})},onWillRemoveListener(){k&&Mt>0&&Fe?.()},onDidRemoveLastListener(){Fe=void 0,Q.dispose()}};V||t(Cr);let kt=new Y(Cr);return V?.add(kt),kt.event}e.debounce=d;function g(x,w=0,R){return e.debounce(x,(C,k)=>C?(C.push(k),C):[k],w,void 0,!0,void 0,R)}e.accumulate=g;function p(x,w=(C,k)=>C===k,R){let C=!0,k;return a(x,D=>{let V=C||!w(D,k);return C=!1,k=D,V},R)}e.latch=p;function m(x,w,R){return[e.filter(x,w,R),e.filter(x,C=>!w(C),R)]}e.split=m;function _(x,w=!1,R=[],C){let k=R.slice(),D=x(K=>{k?k.push(K):Q.fire(K)});C&&C.add(D);let V=()=>{k?.forEach(K=>Q.fire(K)),k=null},Q=new Y({onWillAddFirstListener(){D||(D=x(K=>Q.fire(K)),C&&C.add(D))},onDidAddFirstListener(){k&&(w?setTimeout(V):V())},onDidRemoveLastListener(){D&&D.dispose(),D=null}});return C&&C.add(Q),Q.event}e.buffer=_;function N(x,w){return(C,k,D)=>{let V=w(new b);return x(function(Q){let K=V.evaluate(Q);K!==S&&C.call(k,K)},void 0,D)}}e.chain=N;let S=Symbol("HaltChainable");class b{constructor(){this.steps=[]}map(w){return this.steps.push(w),this}forEach(w){return this.steps.push(R=>(w(R),R)),this}filter(w){return this.steps.push(R=>w(R)?R:S),this}reduce(w,R){let C=R;return this.steps.push(k=>(C=w(C,k),C)),this}latch(w=(R,C)=>R===C){let R=!0,C;return this.steps.push(k=>{let D=R||!w(k,C);return R=!1,C=k,D?k:S}),this}evaluate(w){for(let R of this.steps)if(w=R(w),w===S)break;return w}}function L(x,w,R=C=>C){let C=(...Q)=>V.fire(R(...Q)),k=()=>x.on(w,C),D=()=>x.removeListener(w,C),V=new Y({onWillAddFirstListener:k,onDidRemoveLastListener:D});return V.event}e.fromNodeEventEmitter=L;function v(x,w,R=C=>C){let C=(...Q)=>V.fire(R(...Q)),k=()=>x.addEventListener(w,C),D=()=>x.removeEventListener(w,C),V=new Y({onWillAddFirstListener:k,onDidRemoveLastListener:D});return V.event}e.fromDOMEventEmitter=v;function A(x){return new Promise(w=>r(x)(w))}e.toPromise=A;function y(x){let w=new Y;return x.then(R=>{w.fire(R)},()=>{w.fire(void 0)}).finally(()=>{w.dispose()}),w.event}e.fromPromise=y;function E(x,w,R){return w(R),x(C=>w(C))}e.runAndSubscribe=E;class q{constructor(w,R){this._observable=w,this._counter=0,this._hasChanged=!1;let C={onWillAddFirstListener:()=>{w.addObserver(this)},onDidRemoveLastListener:()=>{w.removeObserver(this)}};R||t(C),this.emitter=new Y(C),R&&R.add(this.emitter)}beginUpdate(w){this._counter++}handlePossibleChange(w){}handleChange(w,R){this._hasChanged=!0}endUpdate(w){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function X(x,w){return new q(x,w).emitter.event}e.fromObservable=X;function B(x){return(w,R,C)=>{let k=0,D=!1,V={beginUpdate(){k++},endUpdate(){k--,k===0&&(x.reportChanges(),D&&(D=!1,w.call(R)))},handlePossibleChange(){},handleChange(){D=!0}};x.addObserver(V),x.reportChanges();let Q={dispose(){x.removeObserver(V)}};return C instanceof De?C.add(Q):Array.isArray(C)&&C.push(Q),Q}}e.fromObservableLight=B})(Ft||(Ft={}));var ct=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(t){this._stopWatch=new $e,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};ct.all=new Set;ct._idPool=0;var Er=-1,yn=class{constructor(t,n,r=Math.random().toString(18).slice(2,5)){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,n){let r=this.threshold;if(r<=0||n{let s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(let[r,i]of this._stacks)(!t||n{if(e instanceof Ge)t(e);else for(let n=0;n{typeof e=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(e))}):void 0,Y=class{constructor(t){var n,r,i,s,a,l;this._size=0,this._options=t,this._leakageMon=Er>0||!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new yn((r=t?.onListenerError)!==null&&r!==void 0?r:ze,(s=(i=this._options)===null||i===void 0?void 0:i.leakWarningThreshold)!==null&&s!==void 0?s:Er):void 0,this._perfMon=!((a=this._options)===null||a===void 0)&&a._profName?new ct(this._options._profName):void 0,this._deliveryQueue=(l=this._options)===null||l===void 0?void 0:l.deliveryQueue}dispose(){var t,n,r,i;if(!this._disposed){if(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners){if(yr){let s=this._listeners;queueMicrotask(()=>{r1(s,a=>{var l;return(l=a.stack)===null||l===void 0?void 0:l.print()})})}this._listeners=void 0,this._size=0}(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose()}}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(n,r,i)=>{var s,a,l,u,c,f,h;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let _=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(_);let N=(s=this._leakageMon.getMostFrequentStack())!==null&&s!==void 0?s:["UNKNOWN stack",-1],S=new Mn(`${_}. HINT: Stack shows most frequent listener (${N[1]}-times)`,N[0]);return(((a=this._options)===null||a===void 0?void 0:a.onListenerError)||ze)(S),oe.None}if(this._disposed)return oe.None;r&&(n=n.bind(r));let d=new Ge(n),g,p;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(d.stack=ht.create(),g=this._leakageMon.check(d.stack,this._size+1)),yr&&(d.stack=p??ht.create()),this._listeners?this._listeners instanceof Ge?((h=this._deliveryQueue)!==null&&h!==void 0||(this._deliveryQueue=new kn),this._listeners=[this._listeners,d]):this._listeners.push(d):((u=(l=this._options)===null||l===void 0?void 0:l.onWillAddFirstListener)===null||u===void 0||u.call(l,this),this._listeners=d,(f=(c=this._options)===null||c===void 0?void 0:c.onDidAddFirstListener)===null||f===void 0||f.call(c,this)),this._size++;let m=He(()=>{ut?.unregister(m),g?.(),this._removeListener(d)});if(i instanceof De?i.add(m):Array.isArray(i)&&i.push(m),ut){let _=new Error().stack.split(` +`).slice(2).join(` +`).trim();ut.register(m,_,m)}return m}),this._event}_removeListener(t){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}let a=this._listeners,l=a.indexOf(t);if(l===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,a[l]=void 0;let u=this._deliveryQueue.current===this;if(this._size*n1<=a.length){let c=0;for(let f=0;f0}};var kn=class{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function Mr(e){return typeof e=="string"}function i1(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function ft(e){let t=[];for(let n of i1(e))typeof e[n]=="function"&&t.push(n);return t}function kr(e,t){let n=i=>function(){let s=Array.prototype.slice.call(arguments,0);return t(i,s)},r={};for(let i of e)r[i]=n(i);return r}var s1=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function o1(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,i)=>{let s=i[0],a=t[s],l=r;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),s1&&(n="\uFF3B"+n.replace(/[aouei]/g,"$&$&")+"\uFF3D"),n}function U(e,t,...n){return o1(t,n)}var Fn,Dn,je="en",It=!1,Tt=!1,Pt=!1,l1=!1,u1=!1,Dr=!1,c1=!1,h1=!1,f1=!1,d1=!1,Dt,Pn=je,Fr=je,m1,ae,pe=globalThis,Z;typeof pe.vscode<"u"&&typeof pe.vscode.process<"u"?Z=pe.vscode.process:typeof process<"u"&&typeof((Fn=process==null?void 0:process.versions)===null||Fn===void 0?void 0:Fn.node)=="string"&&(Z=process);var Pr=typeof((Dn=Z?.versions)===null||Dn===void 0?void 0:Dn.electron)=="string",g1=Pr&&Z?.type==="renderer";if(typeof Z=="object"){It=Z.platform==="win32",Tt=Z.platform==="darwin",Pt=Z.platform==="linux",l1=Pt&&!!Z.env.SNAP&&!!Z.env.SNAP_REVISION,c1=Pr,f1=!!Z.env.CI||!!Z.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Dt=je,Pn=je;let e=Z.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e),n=t.availableLanguages["*"];Dt=t.locale,Fr=t.osLocale,Pn=n||je,m1=t._translationsConfigFile}catch{}u1=!0}else typeof navigator=="object"&&!g1?(ae=navigator.userAgent,It=ae.indexOf("Windows")>=0,Tt=ae.indexOf("Macintosh")>=0,h1=(ae.indexOf("Macintosh")>=0||ae.indexOf("iPad")>=0||ae.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Pt=ae.indexOf("Linux")>=0,d1=ae?.indexOf("Mobi")>=0,Dr=!0,Dt=(U({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||je,Pn=Dt,Fr=navigator.language):console.error("Unable to resolve platform.");var In=0;Tt?In=1:It?In=3:Pt&&(In=2);var Pe=It,Ir=Tt;var p1=Dr&&typeof pe.importScripts=="function",Go=p1?pe.origin:void 0;var ce=ae;var b1=typeof pe.postMessage=="function"&&!pe.importScripts,jo=(()=>{if(b1){let e=[];pe.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r{let r=++t;e.push({id:r,callback:n}),pe.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();var x1=!!(ce&&ce.indexOf("Chrome")>=0),Xo=!!(ce&&ce.indexOf("Firefox")>=0),Qo=!!(!x1&&ce&&ce.indexOf("Safari")>=0),Jo=!!(ce&&ce.indexOf("Edg/")>=0),Yo=!!(ce&&ce.indexOf("Android")>=0);function _1(e){return e}var Bt=class{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=_1):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){let n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}};var dt=class{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};var Xe;function Tr(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Br(e){return e.split(/\r\n|\r|\n/)}function Vr(e){for(let t=0,n=e.length;t=0;n--){let r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function Bn(e){return e>=65&&e<=90}function Qe(e){return 55296<=e&&e<=56319}function Vt(e){return 56320<=e&&e<=57343}function Vn(e,t){return(e-55296<<10)+(t-56320)+65536}function Ur(e,t,n){let r=e.charCodeAt(n);if(Qe(r)&&n+1n[3*i+1])i=2*i+1;else return n[3*i+2];return 0}};Tn._INSTANCE=null;function L1(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var he=class{static getInstance(t){return Xe.cache.get(Array.from(t))}static getLocales(){return Xe._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Xe=he;he.ambiguousCharacterData=new dt(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));he.cache=new Bt({getCacheKey:JSON.stringify},e=>{function t(c){let f=new Map;for(let h=0;h!c.startsWith("_")&&c in i);s.length===0&&(s=["_default"]);let a;for(let c of s){let f=t(i[c]);a=r(a,f)}let l=t(i._common),u=n(l,a);return new Xe(u)});he._locales=new dt(()=>Object.keys(Xe.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));var Ie=class e{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(e.getRawData())),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}};Ie._data=void 0;var w1="$initialize";var qn=class{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.method=r,this.args=i,this.type=0}},qt=class{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}},Un=class{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.eventName=r,this.arg=i,this.type=2}},Wn=class{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}},zn=class{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}},On=class{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n){let r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new qn(this._workerId,r,t,n))})}listen(t,n){let r=null,i=new Y({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Un(this._workerId,r,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new zn(this._workerId,r)),r=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){let n=t.req;this._handler.handleMessage(t.method,t.args).then(i=>{this._send(new qt(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Nn(i.detail)),this._send(new qt(this._workerId,n,void 0,Nn(i)))})}_handleSubscribeEventMessage(t){let n=t.req,r=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new Wn(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){let n=[];if(t.type===0)for(let r=0;rfunction(){let l=Array.prototype.slice.call(arguments,0);return t(a,l)},i=a=>function(l){return n(a,l)},s={};for(let a of e){if(Or(a)){s[a]=i(a);continue}if(zr(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}var Ut=class{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new On({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===w1)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Or(t)){let r=this._requestHandler[t].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return r}if(zr(t)){let r=this._requestHandler[t];if(typeof r!="function")throw new Error(`Missing event ${t} on request handler.`);return r}throw new Error(`Malformed event name ${t}`)}initialize(t,n,r,i){this._protocol.setWorkerId(t);let l=N1(i,(u,c)=>this._protocol.sendMessage(u,c),(u,c)=>this._protocol.listen(u,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(ft(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy<"u"&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((u,c)=>{let f=globalThis.require;f([r],h=>{if(this._requestHandler=h.create(l),!this._requestHandler){c(new Error("No RequestHandler!"));return}u(ft(this._requestHandler))},c)}))}};var le=class{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};function Hr(e,t){return(t<<5)-t+e|0}function Gr(e,t){t=Hr(149417,t);for(let n=0,r=e.length;n>>r)>>>0}function $r(e,t=0,n=e.byteLength,r=0){for(let i=0;in.toString(16).padStart(2,"0")).join(""):S1((e>>>0).toString(16),t/4)}var $n=class e{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){let n=t.length;if(n===0)return;let r=this._buff,i=this._buffLen,s=this._leftoverHighSurrogate,a,l;for(s!==0?(a=s,l=-1,s=0):(a=t.charCodeAt(0),l=0);;){let u=a;if(Qe(a))if(l+1>>6,t[n++]=128|(r&63)>>>0):r<65536?(t[n++]=224|(r&61440)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0):(t[n++]=240|(r&1835008)>>>18,t[n++]=128|(r&258048)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),gt(this._h0)+gt(this._h1)+gt(this._h2)+gt(this._h3)+gt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,$r(this._buff,this._buffLen),this._buffLen>56&&(this._step(),$r(this._buff));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let h=0;h<64;h+=4)t.setUint32(h,n.getUint32(h,!1),!1);for(let h=64;h<320;h+=4)t.setUint32(h,Hn(t.getUint32(h-12,!1)^t.getUint32(h-32,!1)^t.getUint32(h-56,!1)^t.getUint32(h-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,a=this._h3,l=this._h4,u,c,f;for(let h=0;h<80;h++)h<20?(u=i&s|~i&a,c=1518500249):h<40?(u=i^s^a,c=1859775393):h<60?(u=i&s|i&a|s&a,c=2400959708):(u=i^s^a,c=3395469782),f=Hn(r,5)+u+l+c+t.getUint32(h*4,!1)&4294967295,l=a,a=s,s=Hn(i,30),i=r,r=f;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+a&4294967295,this._h4=this._h4+l&4294967295}};$n._bigBlock32=new DataView(new ArrayBuffer(320));var Wt=class{constructor(t){this.source=t}getElements(){let t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r0||this.m_modifiedCount>0)&&this.m_changes.push(new le(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},pt=class e{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;let[i,s,a]=e._getElements(t),[l,u,c]=e._getElements(n);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){let n=t.getElements();if(e._isStringArray(n)){let r=new Int32Array(n.length);for(let i=0,s=n.length;i=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let h;return r<=i?(_e.Assert(t===n+1,"originalStart should only be one more than originalEnd"),h=[new le(t,0,r,i-r+1)]):t<=n?(_e.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),h=[new le(t,n-t+1,r,0)]):(_e.Assert(t===n+1,"originalStart should only be one more than originalEnd"),_e.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),h=[]),h}let a=[0],l=[0],u=this.ComputeRecursionPoint(t,n,r,i,a,l,s),c=a[0],f=l[0];if(u!==null)return u;if(!s[0]){let h=this.ComputeDiffRecursive(t,c,r,f,s),d=[];return s[0]?d=[new le(c+1,n-(c+1)+1,f+1,i-(f+1)+1)]:d=this.ComputeDiffRecursive(c+1,n,f+1,i,s),this.ConcatenateChanges(h,d)}return[new le(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,l,u,c,f,h,d,g,p,m,_,N,S){let b=null,L=null,v=new zt,A=n,y=r,E=g[0]-_[0]-i,q=-1073741824,X=this.m_forwardHistory.length-1;do{let B=E+t;B===A||B=0&&(c=this.m_forwardHistory[X],t=c[0],A=1,y=c.length-1)}while(--X>=-1);if(b=v.getReverseChanges(),S[0]){let B=g[0]+1,x=_[0]+1;if(b!==null&&b.length>0){let w=b[b.length-1];B=Math.max(B,w.getOriginalEnd()),x=Math.max(x,w.getModifiedEnd())}L=[new le(B,d-B+1,x,m-x+1)]}else{v=new zt,A=a,y=l,E=g[0]-_[0]-u,q=1073741824,X=N?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let B=E+s;B===A||B=f[B+1]?(h=f[B+1]-1,p=h-E-u,h>q&&v.MarkNextChange(),q=h+1,v.AddOriginalElement(h+1,p+1),E=B+1-s):(h=f[B-1],p=h-E-u,h>q&&v.MarkNextChange(),q=h,v.AddModifiedElement(h+1,p+1),E=B-1-s),X>=0&&(f=this.m_reverseHistory[X],s=f[0],A=1,y=f.length-1)}while(--X>=-1);L=v.getChanges()}return this.ConcatenateChanges(b,L)}ComputeRecursionPoint(t,n,r,i,s,a,l){let u=0,c=0,f=0,h=0,d=0,g=0;t--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let p=n-t+(i-r),m=p+1,_=new Int32Array(m),N=new Int32Array(m),S=i-r,b=n-t,L=t-r,v=n-i,y=(b-S)%2===0;_[S]=t,N[b]=n,l[0]=!1;for(let E=1;E<=p/2+1;E++){let q=0,X=0;f=this.ClipDiagonalBound(S-E,E,S,m),h=this.ClipDiagonalBound(S+E,E,S,m);for(let x=f;x<=h;x+=2){x===f||xq+X&&(q=u,X=c),!y&&Math.abs(x-b)<=E-1&&u>=N[x])return s[0]=u,a[0]=c,w<=N[x]&&E<=1448?this.WALKTRACE(S,f,h,L,b,d,g,v,_,N,u,n,s,c,i,a,y,l):null}let B=(q-t+(X-r)-E)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(q,B))return l[0]=!0,s[0]=q,a[0]=X,B>0&&E<=1448?this.WALKTRACE(S,f,h,L,b,d,g,v,_,N,u,n,s,c,i,a,y,l):(t++,r++,[new le(t,n-t+1,r,i-r+1)]);d=this.ClipDiagonalBound(b-E,E,b,m),g=this.ClipDiagonalBound(b+E,E,b,m);for(let x=d;x<=g;x+=2){x===d||x=N[x+1]?u=N[x+1]-1:u=N[x-1],c=u-(x-b)-v;let w=u;for(;u>t&&c>r&&this.ElementsAreEqual(u,c);)u--,c--;if(N[x]=u,y&&Math.abs(x-S)<=E&&u<=_[x])return s[0]=u,a[0]=c,w>=_[x]&&E<=1448?this.WALKTRACE(S,f,h,L,b,d,g,v,_,N,u,n,s,c,i,a,y,l):null}if(E<=1447){let x=new Int32Array(h-f+2);x[0]=S-f+1,ve.Copy2(_,f,x,1,h-f+1),this.m_forwardHistory.push(x),x=new Int32Array(g-d+2),x[0]=b-d+1,ve.Copy2(N,d,x,1,g-d+1),this.m_reverseHistory.push(x)}}return this.WALKTRACE(S,f,h,L,b,d,g,v,_,N,u,n,s,c,i,a,y,l)}PrettifyChanges(t){for(let n=0;n0,l=r.modifiedLength>0;for(;r.originalStart+r.originalLength=0;n--){let r=t[n],i=0,s=0;if(n>0){let h=t[n-1];i=h.originalStart+h.originalLength,s=h.modifiedStart+h.modifiedLength}let a=r.originalLength>0,l=r.modifiedLength>0,u=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let h=1;;h++){let d=r.originalStart-h,g=r.modifiedStart-h;if(dc&&(c=m,u=h)}r.originalStart-=u,r.modifiedStart-=u;let f=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],f)){t[n-1]=f[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n0&&g>u&&(u=g,c=h,f=d)}return u>0?[c,f]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){let r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){let r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){let s=this._OriginalRegionIsBoundary(t,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(t,n){let r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){let i=new Array(t.length+n.length-1);return ve.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],ve.Copy(n,1,i,t.length,n.length-1),i}else{let i=new Array(t.length+n.length);return ve.Copy(t,0,i,0,t.length),ve.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(_e.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),_e.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){let i=t.originalStart,s=t.originalLength,a=t.modifiedStart,l=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new le(i,s,a,l),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t=A1&&e<=y1||e>=R1&&e<=E1}function Ht(e,t,n,r){let i="",s=0,a=-1,l=0,u=0;for(let c=0;c<=e.length;++c){if(c2){let f=i.lastIndexOf(n);f===-1?(i="",s=0):(i=i.slice(0,f),s=i.length-1-i.lastIndexOf(n)),a=c,l=0;continue}else if(i.length!==0){i="",s=0,a=c,l=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(a+1,c)}`:i=e.slice(a+1,c),s=c-a-1;a=c,l=0}else u===Ne&&l!==-1?++l:l=-1}return i}function Jr(e,t){k1(t,"pathObject");let n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}var te={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],$(s,"path"),s.length===0)continue}else t.length===0?s=bt():(s=Xr[`=${t}`]||bt(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===re)&&(s=`${t}\\`));let a=s.length,l=0,u="",c=!1,f=s.charCodeAt(0);if(a===1)F(f)&&(l=1,c=!0);else if(F(f))if(c=!0,F(s.charCodeAt(1))){let h=2,d=h;for(;h2&&F(s.charCodeAt(2))&&(c=!0,l=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,r=c,c&&t.length>0)break}return n=Ht(n,!r,"\\",F),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){$(e,"path");let t=e.length;if(t===0)return".";let n=0,r,i=!1,s=e.charCodeAt(0);if(t===1)return jn(s)?"\\":e;if(F(s))if(i=!0,F(e.charCodeAt(1))){let l=2,u=l;for(;l2&&F(e.charCodeAt(2))&&(i=!0,n=3));let a=n0&&F(e.charCodeAt(t-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(e){$(e,"path");let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return F(n)||t>2&&we(n)&&e.charCodeAt(1)===Le&&F(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s0&&(t===void 0?t=n=a:t+=`\\${a}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&F(n.charCodeAt(0))){++i;let s=n.length;s>1&&F(n.charCodeAt(1))&&(++i,s>2&&(F(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(t=`\\${t.slice(i)}`)}return te.normalize(t)},relative(e,t){if($(e,"from"),$(t,"to"),e===t)return"";let n=te.resolve(e),r=te.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;ii&&e.charCodeAt(s-1)===re;)s--;let a=s-i,l=0;for(;ll&&t.charCodeAt(u-1)===re;)u--;let c=u-l,f=af){if(t.charCodeAt(l+d)===re)return r.slice(l+d+1);if(d===2)return r.slice(l+d)}a>f&&(e.charCodeAt(i+d)===re?h=d:d===2&&(h=3)),h===-1&&(h=0)}let g="";for(d=i+h+1;d<=s;++d)(d===s||e.charCodeAt(d)===re)&&(g+=g.length===0?"..":"\\..");return l+=h,g.length>0?`${g}${r.slice(l,u)}`:(r.charCodeAt(l)===re&&++l,r.slice(l,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;let t=te.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===re){if(t.charCodeAt(1)===re){let n=t.charCodeAt(2);if(n!==M1&&n!==Ne)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(we(t.charCodeAt(0))&&t.charCodeAt(1)===Le&&t.charCodeAt(2)===re)return`\\\\?\\${t}`;return e},dirname(e){$(e,"path");let t=e.length;if(t===0)return".";let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return F(i)?e:".";if(F(i)){if(n=r=1,F(e.charCodeAt(1))){let l=2,u=l;for(;l2&&F(e.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let l=t-1;l>=r;--l)if(F(e.charCodeAt(l))){if(!a){s=l;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&$(t,"ext"),$(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&we(e.charCodeAt(0))&&e.charCodeAt(1)===Le&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=n;--s){let u=e.charCodeAt(s);if(F(u)){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(u===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(F(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){$(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===Le&&we(e.charCodeAt(0))&&(t=r=2);for(let l=e.length-1;l>=t;--l){let u=e.charCodeAt(l);if(F(u)){if(!s){r=l+1;break}continue}i===-1&&(s=!1,i=l+1),u===Ne?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Jr.bind(null,"\\"),parse(e){$(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return F(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(F(i)){if(r=1,F(e.charCodeAt(1))){let h=2,d=h;for(;h0&&(t.root=e.slice(0,r));let s=-1,a=r,l=-1,u=!0,c=e.length-1,f=0;for(;c>=r;--c){if(i=e.charCodeAt(c),F(i)){if(!u){a=c+1;break}continue}l===-1&&(u=!1,l=c+1),i===Ne?s===-1?s=c:f!==1&&(f=1):s!==-1&&(f=-1)}return l!==-1&&(s===-1||f===0||f===1&&s===l-1&&s===a+1?t.base=t.name=e.slice(a,l):(t.name=e.slice(a,s),t.base=e.slice(a,l),t.ext=e.slice(s,l))),a>0&&a!==r?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},F1=(()=>{if(Se){let e=/\\/g;return()=>{let t=bt().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>bt()})(),ne={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:F1();$(i,"path"),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===J)}return t=Ht(t,!n,"/",jn),n?`/${t}`:t.length>0?t:"."},normalize(e){if($(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===J,n=e.charCodeAt(e.length-1)===J;return e=Ht(e,!t,"/",jn),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return $(e,"path"),e.length>0&&e.charCodeAt(0)===J},join(...e){if(e.length===0)return".";let t;for(let n=0;n0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":ne.normalize(t)},relative(e,t){if($(e,"from"),$(t,"to"),e===t||(e=ne.resolve(e),t=ne.resolve(t),e===t))return"";let n=1,r=e.length,i=r-n,s=1,a=t.length-s,l=il){if(t.charCodeAt(s+c)===J)return t.slice(s+c+1);if(c===0)return t.slice(s+c)}else i>l&&(e.charCodeAt(n+c)===J?u=c:c===0&&(u=0));let f="";for(c=n+u+1;c<=r;++c)(c===r||e.charCodeAt(c)===J)&&(f+=f.length===0?"..":"/..");return`${f}${t.slice(s+u)}`},toNamespacedPath(e){return e},dirname(e){if($(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===J,n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===J){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&$(t,"ext"),$(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=0;--s){let u=e.charCodeAt(s);if(u===J){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(u===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===J){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){$(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let a=e.length-1;a>=0;--a){let l=e.charCodeAt(a);if(l===J){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),l===Ne?t===-1?t=a:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Jr.bind(null,"/"),parse(e){$(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let n=e.charCodeAt(0)===J,r;n?(t.root="/",r=1):r=0;let i=-1,s=0,a=-1,l=!0,u=e.length-1,c=0;for(;u>=r;--u){let f=e.charCodeAt(u);if(f===J){if(!l){s=u+1;break}continue}a===-1&&(l=!1,a=u+1),f===Ne?i===-1?i=u:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){let f=s===0&&n?1:s;i===-1||c===0||c===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(f,a):(t.name=e.slice(f,i),t.base=e.slice(f,a),t.ext=e.slice(i,a))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ne.win32=te.win32=te;ne.posix=te.posix=ne;var pa=Se?te.normalize:ne.normalize,ba=Se?te.resolve:ne.resolve,xa=Se?te.relative:ne.relative,_a=Se?te.dirname:ne.dirname,va=Se?te.basename:ne.basename,La=Se?te.extname:ne.extname,wa=Se?te.sep:ne.sep;var P1=/^\w[\w\d+.-]*$/,I1=/^\//,T1=/^\/\//;function B1(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!P1.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!I1.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(T1.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function V1(e,t){return!e&&!t?"file":e}function q1(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ue&&(t=ue+t):t=ue;break}return t}var z="",ue="/",U1=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Ae=class e{static isUri(t){return t instanceof e?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,r,i,s,a=!1){typeof t=="object"?(this.scheme=t.scheme||z,this.authority=t.authority||z,this.path=t.path||z,this.query=t.query||z,this.fragment=t.fragment||z):(this.scheme=V1(t,a),this.authority=n||z,this.path=q1(this.scheme,r||z),this.query=i||z,this.fragment=s||z,B1(this,a))}get fsPath(){return Xn(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=t;return n===void 0?n=this.scheme:n===null&&(n=z),r===void 0?r=this.authority:r===null&&(r=z),i===void 0?i=this.path:i===null&&(i=z),s===void 0?s=this.query:s===null&&(s=z),a===void 0?a=this.fragment:a===null&&(a=z),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new Ce(n,r,i,s,a)}static parse(t,n=!1){let r=U1.exec(t);return r?new Ce(r[2]||z,$t(r[4]||z),$t(r[5]||z),$t(r[7]||z),$t(r[9]||z),n):new Ce(z,z,z,z,z)}static file(t){let n=z;if(Pe&&(t=t.replace(/\\/g,ue)),t[0]===ue&&t[1]===ue){let r=t.indexOf(ue,2);r===-1?(n=t.substring(2),t=ue):(n=t.substring(2,r),t=t.substring(r)||ue)}return new Ce("file",n,t,z,z)}static from(t,n){return new Ce(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return Pe&&t.scheme==="file"?r=e.file(te.join(Xn(t,!0),...n)).path:r=ne.join(t.path,...n),t.with({path:r})}toString(t=!1){return Qn(this,t)}toJSON(){return this}static revive(t){var n,r;if(t){if(t instanceof e)return t;{let i=new Ce(t);return i._formatted=(n=t.external)!==null&&n!==void 0?n:null,i._fsPath=t._sep===Kr&&(r=t.fsPath)!==null&&r!==void 0?r:null,i}}else return t}},Kr=Pe?1:void 0,Ce=class extends Ae{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Xn(this,!1)),this._fsPath}toString(t=!1){return t?Qn(this,!0):(this._formatted||(this._formatted=Qn(this,!1)),this._formatted)}toJSON(){let t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Kr),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}},ei={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Yr(e,t,n){let r,i=-1;for(let s=0;s=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));let l=ei[a];l!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=l):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function W1(e){let t;for(let n=0;n1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Pe&&(n=n.replace(/\//g,"\\")),n}function Qn(e,t){let n=t?W1:Yr,r="",{scheme:i,authority:s,path:a,query:l,fragment:u}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=ue,r+=ue),s){let c=s.indexOf("@");if(c!==-1){let f=s.substr(0,c);s=s.substr(c+1),c=f.lastIndexOf(":"),c===-1?r+=n(f,!1,!1):(r+=n(f.substr(0,c),!1,!1),r+=":",r+=n(f.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){let c=a.charCodeAt(1);c>=65&&c<=90&&(a=`/${String.fromCharCode(c+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){let c=a.charCodeAt(0);c>=65&&c<=90&&(a=`${String.fromCharCode(c+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return l&&(r+="?",r+=n(l,!1,!1)),u&&(r+="#",r+=t?u:Yr(u,!1,!1)),r}function ti(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+ti(e.substr(3)):e}}var Zr=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function $t(e){return e.match(Zr)?e.replace(Zr,t=>ti(t)):e}var O=class e{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new e(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return e.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return e.isBefore(this,t)}static isBefore(t,n){return t.lineNumberr||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return e.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.columnt.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumnt.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,n){let r,i,s,a;return n.startLineNumbert.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,a=t.endColumn),new e(r,i,s,a)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,a=t.endColumn,l=n.startLineNumber,u=n.startColumn,c=n.endLineNumber,f=n.endColumn;return rc?(s=c,a=f):s===c&&(a=Math.min(a,f)),r>s||r===s&&i>a?null:new e(r,i,s,a)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(t){return new O(t.endLineNumber,t.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(t){return new O(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumbert.startLineNumber}toJSON(){return this}};function ni(e,t,n=(r,i)=>r===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Jn||(Jn={}));function xt(e,t){return(n,r)=>t(e(n),e(r))}var _t=(e,t)=>e-t;function ai(e){return(t,n)=>-e(t,n)}var Gt=class e{constructor(t){this.iterate=t}toArray(){let t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new e(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new e(n=>this.iterate(r=>n(t(r))))}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(i=>((r||Jn.isGreaterThan(t(i,n)))&&(r=!1,n=i),!0)),n}};Gt.empty=new Gt(e=>{});function Yn(e){return e<0?0:e>255?255:e|0}function Te(e){return e<0?0:e>4294967295?4294967295:e|0}var jt=class{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=Te(t);let r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+s),this.values.set(n,t),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=Te(t),n=Te(n),this.values[t]===n?!1:(this.values[t]=n,t-1=r.length)return!1;let s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=Te(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],t=s)n=i+1;else break;return new Zn(i,t-a)}};var Zn=class{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}};var Xt=class{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);let n=t.changes;for(let r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new O(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i/?";function O1(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let n of z1)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}var Kn=O1();function er(e){let t=Kn;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}var li=new lt;li.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function vt(e,t,n,r,i){if(t=er(t),i||(i=Oe.first(li)),n.length>i.maxLen){let c=e-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,e+i.maxLen/2),vt(e,t,n,r,i)}let s=Date.now(),a=e-1-r,l=-1,u=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){let f=a-i.windowSize*c;t.lastIndex=Math.max(0,f);let h=H1(t,n,a,l);if(!h&&u||(u=h,f<=0))break;l=f}if(u){let c={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,c}return null}function H1(e,t,n,r){let i;for(;i=e.exec(t);){let s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}var Lt=class e{constructor(t){let n=Yn(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){let n=new Uint8Array(256);return n.fill(t),n}set(t,n){let r=Yn(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}};var nr=class{constructor(t,n,r){let i=new Uint8Array(t*n);for(let s=0,a=t*n;sn&&(n=u),l>r&&(r=l),c>r&&(r=c)}n++,r++;let i=new nr(r,n,0);for(let s=0,a=t.length;s=this._maxCharCode?0:this._states.get(t,n)}},tr=null;function $1(){return tr===null&&(tr=new rr([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),tr}var wt=null;function G1(){if(wt===null){wt=new Lt(0);let e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let n=0;ni);if(i>0){let l=n.charCodeAt(i-1),u=n.charCodeAt(a);(l===40&&u===41||l===91&&u===93||l===123&&u===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(t,n=$1()){let r=G1(),i=[];for(let s=1,a=t.getLineCount();s<=a;s++){let l=t.getLineContent(s),u=l.length,c=0,f=0,h=0,d=1,g=!1,p=!1,m=!1,_=!1;for(;c=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}};Ye.INSTANCE=new Ye;var ci=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}),Qt;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Ze?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ft.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:ci})})(Qt||(Qt={}));var Ze=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?ci:(this._emitter||(this._emitter=new Y),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Jt=class{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Ze),this._token}cancel(){this._token?this._token instanceof Ze&&this._token.cancel():this._token=Qt.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof Ze&&this._token.dispose():this._token=Qt.None}};var Nt=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}},Yt=new Nt,sr=new Nt,or=new Nt,j1=new Array(230),X1={},Q1=[],J1=Object.create(null),Y1=Object.create(null),fi=[],ar=[];for(let e=0;e<=193;e++)fi[e]=-1;for(let e=0;e<=132;e++)ar[e]=-1;(function(){let e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(let i of t){let[s,a,l,u,c,f,h,d,g]=i;if(r[a]||(r[a]=!0,Q1[a]=l,J1[l]=a,Y1[l.toLowerCase()]=a,s&&(fi[a]=u,u!==0&&u!==3&&u!==5&&u!==4&&u!==6&&u!==57&&(ar[u]=a))),!n[u]){if(n[u]=!0,!c)throw new Error(`String representation missing for key code ${u} around scan code ${l}`);Yt.define(u,c),sr.define(u,d||c),or.define(u,g||d||c)}f&&(j1[f]=u),h&&(X1[h]=u)}ar[3]=46})();var hi;(function(e){function t(l){return Yt.keyCodeToStr(l)}e.toString=t;function n(l){return Yt.strToKeyCode(l)}e.fromString=n;function r(l){return sr.keyCodeToStr(l)}e.toUserSettingsUS=r;function i(l){return or.keyCodeToStr(l)}e.toUserSettingsGeneral=i;function s(l){return sr.strToKeyCode(l)||or.strToKeyCode(l)}e.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Yt.keyCodeToStr(l)}e.toElectronAccelerator=a})(hi||(hi={}));function di(e,t){let n=(t&65535)<<16>>>0;return(e|n)>>>0}var Zt=class e extends P{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new O(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new O(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var r;(r=this._factories.get(t))===null||r===void 0||r.dispose();let i=new lr(this,t,n);return this._factories.set(t,i),He(()=>{let s=this._factories.get(t);!s||s!==i||(this._factories.delete(t),s.dispose())})}async getOrCreate(t){let n=this.get(t);if(n)return n;let r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;let r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},lr=class extends oe{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){let t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}};var en=class{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var pi;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(pi||(pi={}));var bi;(function(e){let t=new Map;t.set(0,M.symbolMethod),t.set(1,M.symbolFunction),t.set(2,M.symbolConstructor),t.set(3,M.symbolField),t.set(4,M.symbolVariable),t.set(5,M.symbolClass),t.set(6,M.symbolStruct),t.set(7,M.symbolInterface),t.set(8,M.symbolModule),t.set(9,M.symbolProperty),t.set(10,M.symbolEvent),t.set(11,M.symbolOperator),t.set(12,M.symbolUnit),t.set(13,M.symbolValue),t.set(15,M.symbolEnum),t.set(14,M.symbolConstant),t.set(15,M.symbolEnum),t.set(16,M.symbolEnumMember),t.set(17,M.symbolKeyword),t.set(27,M.symbolSnippet),t.set(18,M.symbolText),t.set(19,M.symbolColor),t.set(20,M.symbolFile),t.set(21,M.symbolReference),t.set(22,M.symbolCustomColor),t.set(23,M.symbolFolder),t.set(24,M.symbolTypeParameter),t.set(25,M.account),t.set(26,M.issues);function n(s){let a=t.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=M.symbolProperty),a}e.toIcon=n;let r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let l=r.get(s);return typeof l>"u"&&!a&&(l=9),l}e.fromString=i})(bi||(bi={}));var xi;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(xi||(xi={}));var _i;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(_i||(_i={}));var vi;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(vi||(vi={}));var Li;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Li||(Li={}));var dl={17:U("Array","array"),16:U("Boolean","boolean"),4:U("Class","class"),13:U("Constant","constant"),8:U("Constructor","constructor"),9:U("Enum","enumeration"),21:U("EnumMember","enumeration member"),23:U("Event","event"),7:U("Field","field"),0:U("File","file"),11:U("Function","function"),10:U("Interface","interface"),19:U("Key","key"),5:U("Method","method"),1:U("Module","module"),2:U("Namespace","namespace"),20:U("Null","null"),15:U("Number","number"),18:U("Object","object"),24:U("Operator","operator"),3:U("Package","package"),6:U("Property","property"),14:U("String","string"),22:U("Struct","struct"),25:U("TypeParameter","type parameter"),12:U("Variable","variable")};var wi;(function(e){let t=new Map;t.set(0,M.symbolFile),t.set(1,M.symbolModule),t.set(2,M.symbolNamespace),t.set(3,M.symbolPackage),t.set(4,M.symbolClass),t.set(5,M.symbolMethod),t.set(6,M.symbolProperty),t.set(7,M.symbolField),t.set(8,M.symbolConstructor),t.set(9,M.symbolEnum),t.set(10,M.symbolInterface),t.set(11,M.symbolFunction),t.set(12,M.symbolVariable),t.set(13,M.symbolConstant),t.set(14,M.symbolString),t.set(15,M.symbolNumber),t.set(16,M.symbolBoolean),t.set(17,M.symbolArray),t.set(18,M.symbolObject),t.set(19,M.symbolKey),t.set(20,M.symbolNull),t.set(21,M.symbolEnumMember),t.set(22,M.symbolStruct),t.set(23,M.symbolEvent),t.set(24,M.symbolOperator),t.set(25,M.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=M.symbolProperty),i}e.toIcon=n})(wi||(wi={}));var Re=class e{static fromValue(t){switch(t){case"comment":return e.Comment;case"imports":return e.Imports;case"region":return e.Region}return new e(t)}constructor(t){this.value=t}};Re.Comment=new Re("comment");Re.Imports=new Re("imports");Re.Region=new Re("region");var Ni;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Ni||(Ni={}));var Si;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Si||(Si={}));var Ci;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(Ci||(Ci={}));var Ai;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Ai||(Ai={}));var ml=new Kt,Ri;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Ri||(Ri={}));var yi;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(yi||(yi={}));var Ei;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Ei||(Ei={}));var Mi;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Mi||(Mi={}));var ki;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(ki||(ki={}));var Fi;(function(e){e[e.Deprecated=1]="Deprecated"})(Fi||(Fi={}));var Di;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Di||(Di={}));var Pi;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Pi||(Pi={}));var Ii;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Ii||(Ii={}));var Ti;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Ti||(Ti={}));var Bi;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Bi||(Bi={}));var Vi;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(Vi||(Vi={}));var qi;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",e[e.quickSuggestions=89]="quickSuggestions",e[e.quickSuggestionsDelay=90]="quickSuggestionsDelay",e[e.readOnly=91]="readOnly",e[e.readOnlyMessage=92]="readOnlyMessage",e[e.renameOnType=93]="renameOnType",e[e.renderControlCharacters=94]="renderControlCharacters",e[e.renderFinalNewline=95]="renderFinalNewline",e[e.renderLineHighlight=96]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=98]="renderValidationDecorations",e[e.renderWhitespace=99]="renderWhitespace",e[e.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",e[e.roundedSelection=101]="roundedSelection",e[e.rulers=102]="rulers",e[e.scrollbar=103]="scrollbar",e[e.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=105]="scrollBeyondLastLine",e[e.scrollPredominantAxis=106]="scrollPredominantAxis",e[e.selectionClipboard=107]="selectionClipboard",e[e.selectionHighlight=108]="selectionHighlight",e[e.selectOnLineNumbers=109]="selectOnLineNumbers",e[e.showFoldingControls=110]="showFoldingControls",e[e.showUnused=111]="showUnused",e[e.snippetSuggestions=112]="snippetSuggestions",e[e.smartSelect=113]="smartSelect",e[e.smoothScrolling=114]="smoothScrolling",e[e.stickyScroll=115]="stickyScroll",e[e.stickyTabStops=116]="stickyTabStops",e[e.stopRenderingLineAfter=117]="stopRenderingLineAfter",e[e.suggest=118]="suggest",e[e.suggestFontSize=119]="suggestFontSize",e[e.suggestLineHeight=120]="suggestLineHeight",e[e.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",e[e.suggestSelection=122]="suggestSelection",e[e.tabCompletion=123]="tabCompletion",e[e.tabIndex=124]="tabIndex",e[e.unicodeHighlighting=125]="unicodeHighlighting",e[e.unusualLineTerminators=126]="unusualLineTerminators",e[e.useShadowDOM=127]="useShadowDOM",e[e.useTabStops=128]="useTabStops",e[e.wordBreak=129]="wordBreak",e[e.wordSegmenterLocales=130]="wordSegmenterLocales",e[e.wordSeparators=131]="wordSeparators",e[e.wordWrap=132]="wordWrap",e[e.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=135]="wordWrapColumn",e[e.wordWrapOverride1=136]="wordWrapOverride1",e[e.wordWrapOverride2=137]="wordWrapOverride2",e[e.wrappingIndent=138]="wrappingIndent",e[e.wrappingStrategy=139]="wrappingStrategy",e[e.showDeprecated=140]="showDeprecated",e[e.inlayHints=141]="inlayHints",e[e.editorClassName=142]="editorClassName",e[e.pixelRatio=143]="pixelRatio",e[e.tabFocusMode=144]="tabFocusMode",e[e.layoutInfo=145]="layoutInfo",e[e.wrappingInfo=146]="wrappingInfo",e[e.defaultColorDecorators=147]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(qi||(qi={}));var Ui;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Ui||(Ui={}));var Wi;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(Wi||(Wi={}));var zi;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(zi||(zi={}));var Oi;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Oi||(Oi={}));var Hi;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Hi||(Hi={}));var $i;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})($i||($i={}));var Gi;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Gi||(Gi={}));var ji;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(ji||(ji={}));var Xi;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Xi||(Xi={}));var tn;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(tn||(tn={}));var nn;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(nn||(nn={}));var rn;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(rn||(rn={}));var Qi;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Qi||(Qi={}));var Ji;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(Ji||(Ji={}));var Yi;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Yi||(Yi={}));var Zi;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Zi||(Zi={}));var Ki;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Ki||(Ki={}));var es;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(es||(es={}));var ts;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(ts||(ts={}));var ns;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(ns||(ns={}));var rs;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(rs||(rs={}));var is;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(is||(is={}));var ss;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(ss||(ss={}));var os;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(os||(os={}));var as;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(as||(as={}));var sn;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(sn||(sn={}));var ls;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(ls||(ls={}));var us;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(us||(us={}));var cs;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(cs||(cs={}));var hs;(function(e){e[e.Deprecated=1]="Deprecated"})(hs||(hs={}));var fs;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(fs||(fs={}));var ds;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(ds||(ds={}));var ms;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ms||(ms={}));var gs;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(gs||(gs={}));var Be=class{static chord(t,n){return di(t,n)}};Be.CtrlCmd=2048;Be.Shift=1024;Be.Alt=512;Be.WinCtrl=256;function ps(){return{editor:void 0,languages:void 0,CancellationTokenSource:Jt,Emitter:Y,KeyCode:tn,KeyMod:Be,Position:O,Range:P,Selection:Zt,SelectionDirection:sn,MarkerSeverity:nn,MarkerTag:rn,Uri:Ae,Token:en}}var bs,xs,ur=class{constructor(t,n){this.uri=t,this.value=n}};function eo(e){return Array.isArray(e)}var cr=class e{constructor(t,n){if(this[bs]="ResourceMap",t instanceof e)this.map=new Map(t.map),this.toKey=n??e.defaultToKey;else if(eo(t)){this.map=new Map,this.toKey=n??e.defaultToKey;for(let[r,i]of t)this.set(r,i)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(t,n){return this.map.set(this.toKey(t),new ur(t,n)),this}get(t){var n;return(n=this.map.get(this.toKey(t)))===null||n===void 0?void 0:n.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,n){typeof n<"u"&&(t=t.bind(n));for(let[r,i]of this.map)t(i.value,i.uri,this)}*values(){for(let t of this.map.values())yield t.value}*keys(){for(let t of this.map.values())yield t.uri}*entries(){for(let t of this.map.values())yield[t.uri,t.value]}*[(bs=Symbol.toStringTag,Symbol.iterator)](){for(let[,t]of this.map)yield[t.uri,t.value]}};cr.defaultToKey=e=>e.toString();var hr=class{constructor(){this[xs]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var t;return(t=this._head)===null||t===void 0?void 0:t.value}get last(){var t;return(t=this._tail)===null||t===void 0?void 0:t.value}has(t){return this._map.has(t)}get(t,n=0){let r=this._map.get(t);if(r)return n!==0&&this.touch(r,n),r.value}set(t,n,r=0){let i=this._map.get(t);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){let t=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(xs=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}},fr=class extends hr{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},on=class extends fr{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}};var an=class{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){let r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){let r=this.map.get(t);r&&r.forEach(n)}get(t){let n=this.map.get(t);return n||new Set}};var yl=new on(10);var _s;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(_s||(_s={}));var vs;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(vs||(vs={}));var Ls;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Ls||(Ls={}));function to(e,t,n,r,i){if(r===0)return!0;let s=t.charCodeAt(r-1);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){let a=t.charCodeAt(r);if(e.get(a)!==0)return!0}return!1}function no(e,t,n,r,i){if(r+i===n)return!0;let s=t.charCodeAt(r+i);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){let a=t.charCodeAt(r+i-1);if(e.get(a)!==0)return!0}return!1}function ro(e,t,n,r,i){return to(e,t,n,r,i)&&no(e,t,n,r,i)}var ln=class{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){let n=t.length,r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;let i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Ur(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||ro(this._wordSeparators,t,n,i,s))return r}while(r);return null}};function ws(e,t="Unreachable"){throw new Error(t)}function Ve(e){if(!e()){debugger;e(),ze(new ee("Assertion Failed"))}}function St(e,t){let n=0;for(;n0){let q=S.charCodeAt(L-1);Qe(q)&&L--}if(v+1=1e3){h=!0;break e}f.push(new P(_,L+1,_,v+1))}}while(d)}return{ranges:f,hasMore:h,ambiguousCharacterCount:g,invisibleCharacterCount:p,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(t,n){let r=new cn(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{let s=t.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),l=he.getLocales().filter(u=>!he.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}};function io(e,t){return`[${Tr(e.map(r=>String.fromCodePoint(r)).join(""))}]`}var cn=class{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=he.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let t=new Set;if(this.options.invisibleCharacters)for(let n of Ie.codePoints)Ns(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(let n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(let n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){let r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(let a of n){let l=a.codePointAt(0),u=Wr(a);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(l)&&!Ie.isInvisibleCharacter(l)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Ns(t)&&Ie.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}};function Ns(e){return e===" "||e===` +`||e===" "}var ye=class{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}},hn=class{constructor(t,n){this.lineRangeMapping=t,this.changes=n}};var I=class e{static addRange(t,n){let r=0;for(;rn))return new e(t,n)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,n){return new e(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new ee(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(t){return this.start<=t&&t=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new ee(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new ee(`Invalid clipping range: ${this.toString()}`);return t=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;nn)throw new ee(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&ti.endLineNumberExclusive>=t.startLineNumber),r=qe(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){let i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(t)}else{let i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,i)}}contains(t){let n=be(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){let n=be(this._normalizedRanges,r=>r.startLineNumbert.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let n=[],r=0,i=0,s=null;for(;r=a.startLineNumber?s=new T(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new e(n)}subtractFrom(t){let n=fn(this._normalizedRanges,a=>a.endLineNumberExclusive>=t.startLineNumber),r=qe(this._normalizedRanges,a=>a.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new e([t]);let i=[],s=t.startLineNumber;for(let a=n;as&&i.push(new T(s,l.startLineNumber)),s=l.endLineNumberExclusive}return st.toString()).join(", ")}getIntersection(t){let n=[],r=0,i=0;for(;rn.delta(t)))}};var et=class e{static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new e(0,n.column-t.column):new e(n.lineNumber-t.lineNumber,n.column-1)}static ofRange(t){return e.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(let i of t)i===` +`?(n++,r=0):r++;return new e(n,r)}constructor(t,n){this.lineCount=t,this.columnCount=n}isGreaterThanOrEqualTo(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>=t.columnCount}createRange(t){return this.lineCount===0?new P(t.lineNumber,t.column,t.lineNumber,t.column+this.columnCount):new P(t.lineNumber,t.column,t.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(t){return this.lineCount===0?new O(t.lineNumber,t.column+this.columnCount):new O(t.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};et.zero=new et(0,0);var dn=class{constructor(t,n){this.range=t,this.text=n}};var Ee=class e{static inverse(t,n,r){let i=[],s=1,a=1;for(let u of t){let c=new e(new T(s,u.original.startLineNumber),new T(a,u.modified.startLineNumber));c.modified.isEmpty||i.push(c),s=u.original.endLineNumberExclusive,a=u.modified.endLineNumberExclusive}let l=new e(new T(s,n+1),new T(a,r+1));return l.modified.isEmpty||i.push(l),i}static clip(t,n,r){let i=[];for(let s of t){let a=s.original.intersect(n),l=s.modified.intersect(r);a&&!a.isEmpty&&l&&!l.isEmpty&&i.push(new e(a,l))}return i}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){let t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new fe(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new ee("not a valid diff");return new fe(new P(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new P(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new fe(new P(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new P(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}},xe=class e extends Ee{static fromRangeMappings(t){let n=T.join(t.map(i=>T.fromRangeInclusive(i.originalRange))),r=T.join(t.map(i=>T.fromRangeInclusive(i.modifiedRange)));return new e(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){var t;return new e(this.modified,this.original,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}withInnerChangesFromLineRanges(){return new e(this.original,this.modified,[this.toRangeMapping()])}},fe=class e{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}toTextEdit(t){let n=t.getValueOfRange(this.modifiedRange);return new dn(this.originalRange,n)}};var so=3,mn=class{computeDiff(t,n,r){var i;let a=new mr(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),l=[],u=null;for(let c of a.changes){let f;c.originalEndLineNumber===0?f=new T(c.originalStartLineNumber+1,c.originalStartLineNumber+1):f=new T(c.originalStartLineNumber,c.originalEndLineNumber+1);let h;c.modifiedEndLineNumber===0?h=new T(c.modifiedStartLineNumber+1,c.modifiedStartLineNumber+1):h=new T(c.modifiedStartLineNumber,c.modifiedEndLineNumber+1);let d=new xe(f,h,(i=c.charChanges)===null||i===void 0?void 0:i.map(g=>new fe(new P(g.originalStartLineNumber,g.originalStartColumn,g.originalEndLineNumber,g.originalEndColumn),new P(g.modifiedStartLineNumber,g.modifiedStartColumn,g.modifiedEndLineNumber,g.modifiedEndColumn))));u&&(u.modified.endLineNumberExclusive===d.modified.startLineNumber||u.original.endLineNumberExclusive===d.original.startLineNumber)&&(d=new xe(u.original.join(d.original),u.modified.join(d.modified),u.innerChanges&&d.innerChanges?u.innerChanges.concat(d.innerChanges):void 0),l.pop()),l.push(d),u=d}return Ve(()=>St(l,(c,f)=>f.original.startLineNumber-c.original.endLineNumberExclusive===f.modified.startLineNumber-c.modified.endLineNumberExclusive&&c.original.endLineNumberExclusive(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}},tt=class e{constructor(t,n,r,i,s,a,l,u){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=u}static createFromDiffChange(t,n,r){let i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),a=n.getEndLineNumber(t.originalStart+t.originalLength-1),l=n.getEndColumn(t.originalStart+t.originalLength-1),u=r.getStartLineNumber(t.modifiedStart),c=r.getStartColumn(t.modifiedStart),f=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),h=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new e(i,s,a,l,u,c,f,h)}};function oo(e){if(e.length<=1)return e;let t=[e[0]],n=t[0];for(let r=1,i=e.length;r0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){let g=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),p=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(g.getElements().length>0&&p.getElements().length>0){let m=As(g,p,s,!0).changes;l&&(m=oo(m)),d=[];for(let _=0,N=m.length;_1&&m>1;){let _=d.charCodeAt(p-2),N=g.charCodeAt(m-2);if(_!==N)break;p--,m--}(p>1||m>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,p,a+1,1,m)}{let p=pr(d,1),m=pr(g,1),_=d.length+1,N=g.length+1;for(;p<_&&m!0;let t=Date.now();return()=>Date.now()-t{r.push(e.fromOffsetPairs(i?i.getEndExclusives():ie.zero,s?s.getStarts():new ie(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new e(new I(t.offset1,n.offset1),new I(t.offset2,n.offset2))}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){let n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new e(n,r)}getStarts(){return new ie(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new ie(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},ie=class e{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new e(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}};ie.zero=new ie(0,0);ie.max=new ie(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);var me=class{isValid(){return!0}};me.instance=new me;var pn=class{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new ee("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&m>0&&a.get(p-1,m-1)===3&&(S+=l.get(p-1,m-1)),S+=i?i(p,m):1):S=-1;let b=Math.max(_,N,S);if(b===S){let L=p>0&&m>0?l.get(p-1,m-1):0;l.set(p,m,L+1),a.set(p,m,3)}else b===_?(l.set(p,m,0),a.set(p,m,1)):b===N&&(l.set(p,m,0),a.set(p,m,2));s.set(p,m,b)}let u=[],c=t.length,f=n.length;function h(p,m){(p+1!==c||m+1!==f)&&u.push(new G(new I(p+1,c),new I(m+1,f))),c=p,f=m}let d=t.length-1,g=n.length-1;for(;d>=0&&g>=0;)a.get(d,g)===3?(h(d,g),d--,g--):a.get(d,g)===1?d--:g--;return h(-1,-1),u.reverse(),new de(u,!1)}};var it=class{compute(t,n,r=me.instance){if(t.length===0||n.length===0)return de.trivial(t,n);let i=t,s=n;function a(m,_){for(;mi.length||v>s.length)continue;let A=a(L,v);u.set(f,A);let y=L===S?c.get(f+1):c.get(f-1);if(c.set(f,A!==L?new xn(y,L,v,A-L):y),u.get(f)===i.length&&u.get(f)-f===s.length)break e}}let h=c.get(f),d=[],g=i.length,p=s.length;for(;;){let m=h?h.x+h.length:0,_=h?h.y+h.length:0;if((m!==g||_!==p)&&d.push(new G(new I(m,g),new I(_,p))),!h)break;g=h.x,p=h.y,h=h.prev}return d.reverse(),new de(d,!1)}},xn=class{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}},br=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){let r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){let r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}},xr=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}};var Me=class{constructor(t,n,r){this.lines=t,this.considerWhitespaceChanges=r,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;n.start>0&&n.endExclusive>=t.length&&(n=new I(n.start-1,n.endExclusive),i=!0),this.lineRange=n,this.firstCharOffsetByLine[0]=0;for(let s=this.lineRange.start;sString.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){let n=ys(t>0?this.elements[t-1]:-1),r=ys(tr<=t);return new O(this.lineRange.start+n+1,t-this.firstCharOffsetByLine[n]+this.additionalOffsetByLine[n]+1)}translateRange(t){return P.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!_r(this.elements[t]))return;let n=t;for(;n>0&&_r(this.elements[n-1]);)n--;let r=t;for(;ra<=t.start))!==null&&n!==void 0?n:0,s=(r=Ss(this.firstCharOffsetByLine,a=>t.endExclusive<=a))!==null&&r!==void 0?r:this.elements.length;return new I(i,s)}};function _r(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}var ao={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Rs(e){return ao[e]}function ys(e){return e===10?8:e===13?7:At(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Ms(e,t,n,r,i,s){let{moves:a,excludedChanges:l}=uo(e,t,n,s);if(!s.isValid())return[];let u=e.filter(f=>!l.has(f)),c=co(u,r,i,t,n,s);return oi(a,c),a=ho(a),a=a.filter(f=>{let h=f.original.toOffsetRange().slice(t).map(g=>g.trim());return h.join(` +`).length>=15&&lo(h,g=>g.length>=2)>=2}),a=fo(e,a),a}function lo(e,t){let n=0;for(let r of e)t(r)&&n++;return n}function uo(e,t,n,r){let i=[],s=e.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new rt(u.original,t,u)),a=new Set(e.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new rt(u.modified,n,u))),l=new Set;for(let u of s){let c=-1,f;for(let h of a){let d=u.computeSimilarity(h);d>c&&(c=d,f=h)}if(c>.9&&f&&(a.delete(f),i.push(new Ee(u.range,f.range)),l.add(u.source),l.add(f.source)),!r.isValid())return{moves:i,excludedChanges:l}}return{moves:i,excludedChanges:l}}function co(e,t,n,r,i,s){let a=[],l=new an;for(let d of e)for(let g=d.original.startLineNumber;gd.modified.startLineNumber,_t));for(let d of e){let g=[];for(let p=d.modified.startLineNumber;p{for(let L of g)if(L.originalLineRange.endLineNumberExclusive+1===S.endLineNumberExclusive&&L.modifiedLineRange.endLineNumberExclusive+1===_.endLineNumberExclusive){L.originalLineRange=new T(L.originalLineRange.startLineNumber,S.endLineNumberExclusive),L.modifiedLineRange=new T(L.modifiedLineRange.startLineNumber,_.endLineNumberExclusive),N.push(L);return}let b={modifiedLineRange:_,originalLineRange:S};u.push(b),N.push(b)}),g=N}if(!s.isValid())return[]}u.sort(ai(xt(d=>d.modifiedLineRange.length,_t)));let c=new Ue,f=new Ue;for(let d of u){let g=d.modifiedLineRange.startLineNumber-d.originalLineRange.startLineNumber,p=c.subtractFrom(d.modifiedLineRange),m=f.subtractFrom(d.originalLineRange).getWithDelta(g),_=p.getIntersection(m);for(let N of _.ranges){if(N.length<3)continue;let S=N,b=N.delta(-g);a.push(new Ee(b,S)),c.addRange(S),f.addRange(b)}}a.sort(xt(d=>d.original.startLineNumber,_t));let h=new Ke(e);for(let d=0;dA.original.startLineNumber<=g.original.startLineNumber),m=be(e,A=>A.modified.startLineNumber<=g.modified.startLineNumber),_=Math.max(g.original.startLineNumber-p.original.startLineNumber,g.modified.startLineNumber-m.modified.startLineNumber),N=h.findLastMonotonous(A=>A.original.startLineNumberA.modified.startLineNumberr.length||y>i.length||c.contains(y)||f.contains(A)||!Es(r[A-1],i[y-1],s))break}L>0&&(f.addRange(new T(g.original.startLineNumber-L,g.original.startLineNumber)),c.addRange(new T(g.modified.startLineNumber-L,g.modified.startLineNumber)));let v;for(v=0;vr.length||y>i.length||c.contains(y)||f.contains(A)||!Es(r[A-1],i[y-1],s))break}v>0&&(f.addRange(new T(g.original.endLineNumberExclusive,g.original.endLineNumberExclusive+v)),c.addRange(new T(g.modified.endLineNumberExclusive,g.modified.endLineNumberExclusive+v))),(L>0||v>0)&&(a[d]=new Ee(new T(g.original.startLineNumber-L,g.original.endLineNumberExclusive+v),new T(g.modified.startLineNumber-L,g.modified.endLineNumberExclusive+v)))}return a}function Es(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let i=new it().compute(new Me([e],new I(0,1),!1),new Me([t],new I(0,1),!1),n),s=0,a=G.invert(i.diffs,e.length);for(let f of a)f.seq1Range.forEach(h=>{At(e.charCodeAt(h))||s++});function l(f){let h=0;for(let d=0;dt.length?e:t);return s/u>.6&&u>10}function ho(e){if(e.length===0)return e;e.sort(xt(n=>n.original.startLineNumber,_t));let t=[e[0]];for(let n=1;n=0&&a>=0&&s+a<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function fo(e,t){let n=new Ke(e);return t=t.filter(r=>{let i=n.findLastMonotonous(l=>l.original.startLineNumberl.modified.startLineNumber0&&(l=l.delta(c))}i.push(l)}return r.length>0&&i.push(r[r.length-1]),i}function mo(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r0?n[r-1]:void 0,s=n[r],a=r+1=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let l=0;for(;e.seq1Range.start+lc&&(c=p,u=f)}return e.delta(u)}function Ds(e,t,n){let r=[];for(let i of n){let s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new G(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function Ps(e,t,n){let r=G.invert(n,e.length),i=[],s=new ie(0,0);function a(u,c){if(u.offset10;){let _=r[0];if(!(_.seq1Range.intersects(d.seq1Range)||_.seq2Range.intersects(d.seq2Range)))break;let S=e.findWordContaining(_.seq1Range.start),b=t.findWordContaining(_.seq2Range.start),L=new G(S,b),v=L.intersect(_);if(p+=v.seq1Range.length,m+=v.seq2Range.length,d=d.join(L),d.seq1Range.endExclusive>=_.seq1Range.endExclusive)r.shift();else break}p+m<(d.seq1Range.length+d.seq2Range.length)*2/3&&i.push(d),s=d.getEndExclusives()}for(;r.length>0;){let u=r.shift();u.seq1Range.isEmpty||(a(u.getStarts(),u),a(u.getEndExclusives().delta(-1),u))}return go(n,i)}function go(e,t){let n=[];for(;e.length>0||t.length>0;){let r=e[0],i=t[0],s;r&&(!i||r.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Is(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;let a=[r[0]];for(let l=1;l5||g.seq1Range.length+g.seq2Range.length>5)},u=r[l],c=a[a.length-1];f(c,u)?(s=!0,a[a.length-1]=a[a.length-1].join(u)):a.push(u)}r=a}while(i++<10&&s);return r}function Ts(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;let l=[r[0]];for(let u=1;u5||m.length>500)return!1;let N=e.getText(m).trim();if(N.length>20||N.split(/\r\n|\r|\n/).length>1)return!1;let S=e.countLinesIn(g.seq1Range),b=g.seq1Range.length,L=t.countLinesIn(g.seq2Range),v=g.seq2Range.length,A=e.countLinesIn(p.seq1Range),y=p.seq1Range.length,E=t.countLinesIn(p.seq2Range),q=p.seq2Range.length,X=2*40+50;function B(x){return Math.min(x,X)}return Math.pow(Math.pow(B(S*40+b),1.5)+Math.pow(B(L*40+v),1.5),1.5)+Math.pow(Math.pow(B(A*40+y),1.5)+Math.pow(B(E*40+q),1.5),1.5)>(X**1.5)**1.5*1.3},c=r[u],f=l[l.length-1];h(f,c)?(s=!0,l[l.length-1]=l[l.length-1].join(c)):l.push(c)}r=l}while(i++<10&&s);let a=[];return si(r,(l,u,c)=>{let f=u;function h(N){return N.length>0&&N.trim().length<=3&&u.seq1Range.length+u.seq2Range.length>100}let d=e.extendToFullLines(u.seq1Range),g=e.getText(new I(d.start,u.seq1Range.start));h(g)&&(f=f.deltaStart(-g.length));let p=e.getText(new I(u.seq1Range.endExclusive,d.endExclusive));h(p)&&(f=f.deltaEnd(p.length));let m=G.fromOffsetPairs(l?l.getEndExclusives():ie.zero,c?c.getStarts():ie.max),_=f.intersect(m);a.length>0&&_.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(_):a.push(_)}),a}var Rt=class{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){let n=t===0?0:Bs(this.lines[t-1]),r=t===this.lines.length?0:Bs(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(` +`)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}};function Bs(e){let t=0;for(;tv===A))return new ye([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new ye([new xe(new T(1,t.length+1),new T(1,n.length+1),[new fe(new P(1,1,t.length,t[t.length-1].length+1),new P(1,1,n.length,n[n.length-1].length+1))])],[],!1);let i=r.maxComputationTimeMs===0?me.instance:new pn(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function l(v){let A=a.get(v);return A===void 0&&(A=a.size,a.set(v,A)),A}let u=t.map(v=>l(v.trim())),c=n.map(v=>l(v.trim())),f=new Rt(u,t),h=new Rt(c,n),d=f.length+h.length<1700?this.dynamicProgrammingDiffing.compute(f,h,i,(v,A)=>t[v]===n[A]?n[A].length===0?.1:1+Math.log(1+n[A].length):.99):this.myersDiffingAlgorithm.compute(f,h,i),g=d.diffs,p=d.hitTimeout;g=vr(f,h,g),g=Is(f,h,g);let m=[],_=v=>{if(s)for(let A=0;Av.seq1Range.start-N===v.seq2Range.start-S);let A=v.seq1Range.start-N;_(A),N=v.seq1Range.endExclusive,S=v.seq2Range.endExclusive;let y=this.refineDiff(t,n,v,i,s);y.hitTimeout&&(p=!0);for(let E of y.mappings)m.push(E)}_(t.length-N);let b=Vs(m,t,n),L=[];return r.computeMoves&&(L=this.computeMoves(b,t,n,u,c,i,s)),Ve(()=>{function v(y,E){if(y.lineNumber<1||y.lineNumber>E.length)return!1;let q=E[y.lineNumber-1];return!(y.column<1||y.column>q.length+1)}function A(y,E){return!(y.startLineNumber<1||y.startLineNumber>E.length+1||y.endLineNumberExclusive<1||y.endLineNumberExclusive>E.length+1)}for(let y of b){if(!y.innerChanges)return!1;for(let E of y.innerChanges)if(!(v(E.modifiedRange.getStartPosition(),n)&&v(E.modifiedRange.getEndPosition(),n)&&v(E.originalRange.getStartPosition(),t)&&v(E.originalRange.getEndPosition(),t)))return!1;if(!A(y.modified,n)||!A(y.original,t))return!1}return!0}),new ye(b,L,p)}computeMoves(t,n,r,i,s,a,l){return Ms(t,n,r,i,s,a).map(f=>{let h=this.refineDiff(n,r,new G(f.original.toOffsetRange(),f.modified.toOffsetRange()),a,l),d=Vs(h.mappings,n,r,!0);return new hn(f,d)})}refineDiff(t,n,r,i,s){let a=new Me(t,r.seq1Range,s),l=new Me(n,r.seq2Range,s),u=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,i):this.myersDiffingAlgorithm.compute(a,l,i),c=u.diffs;return c=vr(a,l,c),c=Ps(a,l,c),c=Ds(a,l,c),c=Ts(a,l,c),{mappings:c.map(h=>new fe(a.translateRange(h.seq1Range),l.translateRange(h.seq2Range))),hitTimeout:u.hitTimeout}}};function Vs(e,t,n,r=!1){let i=[];for(let s of ri(e.map(a=>po(a,t,n)),(a,l)=>a.original.overlapOrTouch(l.original)||a.modified.overlapOrTouch(l.modified))){let a=s[0],l=s[s.length-1];i.push(new xe(a.original.join(l.original),a.modified.join(l.modified),s.map(u=>u.innerChanges[0])))}return Ve(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length-i[i.length-1].modified.endLineNumberExclusive!==t.length-i[i.length-1].original.endLineNumberExclusive)?!1:St(i,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);let s=new T(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),a=new T(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new xe(s,a,[e])}var Lr={getLegacy:()=>new mn,getDefault:()=>new _n};function ke(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}var j=class{constructor(t,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}},ge=class e{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ke(Math.max(Math.min(1,n),0),3),this.l=ke(Math.max(Math.min(1,r),0),3),this.a=ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,s=t.a,a=Math.max(n,r,i),l=Math.min(n,r,i),u=0,c=0,f=(l+a)/2,h=a-l;if(h>0){switch(c=Math.min(f<=.5?h/(2*f):h/(2-2*f),1),a){case n:u=(r-i)/h+(r1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){let n=t.h/360,{s:r,l:i,a:s}=t,a,l,u;if(r===0)a=l=u=i;else{let c=i<.5?i*(1+r):i+r-i*r,f=2*i-c;a=e._hue2rgb(f,c,n+1/3),l=e._hue2rgb(f,c,n),u=e._hue2rgb(f,c,n-1/3)}return new j(Math.round(a*255),Math.round(l*255),Math.round(u*255),s)}},st=class e{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ke(Math.max(Math.min(1,n),0),3),this.v=ke(Math.max(Math.min(1,r),0),3),this.a=ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),l=s-a,u=s===0?0:l/s,c;return l===0?c=0:s===n?c=((r-i)/l%6+6)%6:s===r?c=(i-n)/l+2:c=(n-r)/l+4,new e(Math.round(c*60),u,s,t.a)}static toRGBA(t){let{h:n,s:r,v:i,a:s}=t,a=i*r,l=a*(1-Math.abs(n/60%2-1)),u=i-a,[c,f,h]=[0,0,0];return n<60?(c=a,f=l):n<120?(c=l,f=a):n<180?(f=a,h=l):n<240?(f=l,h=a):n<300?(c=l,h=a):n<=360&&(c=a,h=l),c=Math.round((c+u)*255),f=Math.round((f+u)*255),h=Math.round((h+u)*255),new j(c,f,h,s)}},H=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:ge.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:st.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof j)this.rgba=t;else if(t instanceof ge)this._hsla=t,this.rgba=ge.toRGBA(t);else if(t instanceof st)this._hsva=t,this.rgba=st.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&j.equals(this.rgba,t.rgba)&&ge.equals(this.hsla,t.hsla)&&st.equals(this.hsva,t.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return ke(i,4)}static _relativeLuminanceForComponent(t){let n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){let n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n0)for(let i of r){let s=i.filter(c=>c!==void 0),a=s[1],l=s[2];if(!l)continue;let u;if(a==="rgb"){let c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;u=qs(yt(e,i),Et(l,c),!1)}else if(a==="rgba"){let c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=qs(yt(e,i),Et(l,c),!0)}else if(a==="hsl"){let c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;u=Us(yt(e,i),Et(l,c),!1)}else if(a==="hsla"){let c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=Us(yt(e,i),Et(l,c),!0)}else a==="#"&&(u=bo(yt(e,i),a+l));u&&t.push(u)}return t}function zs(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:xo(e)}var Os=new RegExp("\\bMARK:\\s*(.*)$","d"),_o=/^-+|-+$/g;function Hs(e,t){var n;let r=[];if(t.findRegionSectionHeaders&&(!((n=t.foldingRules)===null||n===void 0)&&n.markers)){let i=vo(e,t);r=r.concat(i)}if(t.findMarkSectionHeaders){let i=Lo(e);r=r.concat(i)}return r}function vo(e,t){let n=[],r=e.getLineCount();for(let i=1;i<=r;i++){let s=e.getLineContent(i),a=s.match(t.foldingRules.markers.start);if(a){let l={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:s.length+1};if(l.endColumn>l.startColumn){let u={range:l,...$s(s.substring(a[0].length)),shouldBeInComments:!1};(u.text||u.hasSeparatorLine)&&n.push(u)}}}return n}function Lo(e){let t=[],n=e.getLineCount();for(let r=1;r<=n;r++){let i=e.getLineContent(r);wo(i,r,t)}return t}function wo(e,t,n){Os.lastIndex=0;let r=Os.exec(e);if(r){let i=r.indices[1][0]+1,s=r.indices[1][1]+1,a={startLineNumber:t,startColumn:i,endLineNumber:t,endColumn:s};if(a.endColumn>a.startColumn){let l={range:a,...$s(r[1]),shouldBeInComments:!0};(l.text||l.hasSeparatorLine)&&n.push(l)}}}function $s(e){e=e.trim();let t=e.startsWith("-");return e=e.replace(_o,""),{text:e,hasSeparatorLine:t}}var Nr=class extends Xt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){let n=[];for(let r=0;rthis._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{let s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:t}},ot=class e{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){let t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new Nr(Ae.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}async computeUnicodeHighlights(t,n,r){let i=this._getModel(t);return i?un.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(t,n){let r=this._getModel(t);return r?Hs(r,n):[]}async computeDiff(t,n,r,i){let s=this._getModel(t),a=this._getModel(n);return!s||!a?null:e.computeDiff(s,a,r,i)}static computeDiff(t,n,r,i){let s=i==="advanced"?Lr.getDefault():Lr.getLegacy(),a=t.getLinesContent(),l=n.getLinesContent(),u=s.computeDiff(a,l,r),c=u.changes.length>0?!1:this._modelsAreIdentical(t,n);function f(h){return h.map(d=>{var g;return[d.original.startLineNumber,d.original.endLineNumberExclusive,d.modified.startLineNumber,d.modified.endLineNumberExclusive,(g=d.innerChanges)===null||g===void 0?void 0:g.map(p=>[p.originalRange.startLineNumber,p.originalRange.startColumn,p.originalRange.endLineNumber,p.originalRange.endColumn,p.modifiedRange.startLineNumber,p.modifiedRange.startColumn,p.modifiedRange.endLineNumber,p.modifiedRange.endColumn])]})}return{identical:c,quitEarly:u.hitTimeout,changes:f(u.changes),moves:u.moves.map(h=>[h.lineRangeMapping.original.startLineNumber,h.lineRangeMapping.original.endLineNumberExclusive,h.lineRangeMapping.modified.startLineNumber,h.lineRangeMapping.modified.endLineNumberExclusive,f(h.changes)])}}static _modelsAreIdentical(t,n){let r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){let a=t.getLineContent(s),l=n.getLineContent(s);if(a!==l)return!1}return!0}async computeMoreMinimalEdits(t,n,r){let i=this._getModel(t);if(!i)return n;let s=[],a;n=n.slice(0).sort((u,c)=>{if(u.range&&c.range)return P.compareRangesUsingStarts(u.range,c.range);let f=u.range?0:1,h=c.range?0:1;return f-h});let l=0;for(let u=1;ue._diffLimit){s.push({range:u,text:c});continue}let d=jr(h,c,r),g=i.offsetAt(P.lift(u).getStartPosition());for(let p of d){let m=i.positionAt(g+p.originalStart),_=i.positionAt(g+p.originalStart+p.originalLength),N={text:c.substr(p.modifiedStart,p.modifiedLength),range:{startLineNumber:m.lineNumber,startColumn:m.column,endLineNumber:_.lineNumber,endColumn:_.column}};i.getValueInRange(N.range)!==N.text&&s.push(N)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(t){let n=this._getModel(t);return n?ui(n):null}async computeDefaultDocumentColors(t){let n=this._getModel(t);return n?zs(n):null}async textualSuggest(t,n,r,i){let s=new $e,a=new RegExp(r,i),l=new Set;e:for(let u of t){let c=this._getModel(u);if(c){for(let f of c.words(a))if(!(f===n||!isNaN(Number(f)))&&(l.add(f),l.size>e._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async computeWordRanges(t,n,r,i){let s=this._getModel(t);if(!s)return Object.create(null);let a=new RegExp(r,i),l=Object.create(null);for(let u=n.startLineNumber;uthis._host.fhr(l,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(ft(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}};ot._diffLimit=1e5;ot._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=ps());var Sr=!1;function No(e){if(Sr)return;Sr=!0;let t=new Ut(n=>{globalThis.postMessage(n)},n=>new ot(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{Sr||No(null)};})(); diff --git a/vs/language/typescript/ts.worker.js b/vs/language/typescript/ts.worker.js new file mode 100644 index 0000000..9d2a0b7 --- /dev/null +++ b/vs/language/typescript/ts.worker.js @@ -0,0 +1,51344 @@ +(()=>{var Mbe=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(v){setTimeout(()=>{throw v.stack?RB.isErrorNoTelemetry(v)?new RB(v.message+` + +`+v.stack):new Error(v.message+` + +`+v.stack):v},0)}}emit(v){this.listeners.forEach(A=>{A(v)})}onUnexpectedError(v){this.unexpectedErrorHandler(v),this.emit(v)}onUnexpectedExternalError(v){this.unexpectedErrorHandler(v)}},Jvt=new Mbe;function a8(h){Kvt(h)||Jvt.onUnexpectedError(h)}function wbe(h){if(h instanceof Error){let{name:v,message:A}=h,F=h.stacktrace||h.stack;return{$isError:!0,name:v,message:A,stack:F,noTelemetry:RB.isErrorNoTelemetry(h)}}return h}var Lbe="Canceled";function Kvt(h){return h instanceof kbe?!0:h instanceof Error&&h.name===Lbe&&h.message===Lbe}var kbe=class extends Error{constructor(){super(Lbe),this.name=this.message}};var RB=class h extends Error{constructor(v){super(v),this.name="CodeExpectedError"}static fromError(v){if(v instanceof h)return v;let A=new h;return A.message=v.message,A.stack=v.stack,A}static isErrorNoTelemetry(v){return v.name==="CodeExpectedError"}},Dg=class h extends Error{constructor(v){super(v||"An unexpected bug occurred."),Object.setPrototypeOf(this,h.prototype)}};function Obe(h,v){let A=this,F=!1,X;return function(){if(F)return X;if(F=!0,v)try{X=h.apply(A,arguments)}finally{v()}else X=h.apply(A,arguments);return X}}var s8;(function(h){function v(Qr){return Qr&&typeof Qr=="object"&&typeof Qr[Symbol.iterator]=="function"}h.is=v;let A=Object.freeze([]);function F(){return A}h.empty=F;function*X(Qr){yield Qr}h.single=X;function _e(Qr){return v(Qr)?Qr:X(Qr)}h.wrap=_e;function Te(Qr){return Qr||A}h.from=Te;function*Be(Qr){for(let ri=Qr.length-1;ri>=0;ri--)yield Qr[ri]}h.reverse=Be;function nt(Qr){return!Qr||Qr[Symbol.iterator]().next().done===!0}h.isEmpty=nt;function De(Qr){return Qr[Symbol.iterator]().next().value}h.first=De;function Ke(Qr,ri){for(let to of Qr)if(ri(to))return!0;return!1}h.some=Ke;function Gt(Qr,ri){for(let to of Qr)if(ri(to))return to}h.find=Gt;function*Zt(Qr,ri){for(let to of Qr)ri(to)&&(yield to)}h.filter=Zt;function*ir(Qr,ri){let to=0;for(let Ga of Qr)yield ri(Ga,to++)}h.map=ir;function*Ar(...Qr){for(let ri of Qr)yield*ri}h.concat=Ar;function Un(Qr,ri,to){let Ga=to;for(let wr of Qr)Ga=ri(Ga,wr);return Ga}h.reduce=Un;function*Qi(Qr,ri,to=Qr.length){for(ri<0&&(ri+=Qr.length),to<0?to+=Qr.length:to>Qr.length&&(to=Qr.length);ri{v[h]||console.log(A)},3e3)}setParent(v,A){if(v&&v!==_1.None)try{v[h]=!0}catch{}}markAsDisposed(v){if(v&&v!==_1.None)try{v[h]=!0}catch{}}markAsSingleton(v){}})}function Wbe(h){return m1?.trackDisposable(h),h}function zbe(h){m1?.markAsDisposed(h)}function Fbe(h,v){m1?.setParent(h,v)}function $vt(h,v){if(m1)for(let A of h)m1.setParent(A,v)}function $7e(h){if(s8.is(h)){let v=[];for(let A of h)if(A)try{A.dispose()}catch(F){v.push(F)}if(v.length===1)throw v[0];if(v.length>1)throw new AggregateError(v,"Encountered errors while disposing of store");return Array.isArray(h)?[]:h}else if(h)return h.dispose(),h}function Q7e(...h){let v=l8(()=>$7e(h));return $vt(h,v),v}function l8(h){let v=Wbe({dispose:Obe(()=>{zbe(v),h()})});return v}var yM=class h{constructor(){this._toDispose=new Set,this._isDisposed=!1,Wbe(this)}dispose(){this._isDisposed||(zbe(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{$7e(this._toDispose)}finally{this._toDispose.clear()}}add(v){if(!v)return v;if(v===this)throw new Error("Cannot register a disposable on itself!");return Fbe(v,this),this._isDisposed?h.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(v),v}deleteAndLeak(v){v&&this._toDispose.has(v)&&(this._toDispose.delete(v),Fbe(v,null))}};yM.DISABLE_DISPOSED_WARNING=!1;var _1=class{constructor(){this._store=new yM,Wbe(this),Fbe(this._store,this)}dispose(){zbe(this),this._store.dispose()}_register(v){if(v===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(v)}};_1.None=Object.freeze({dispose(){}});var Xd=class h{constructor(v){this.element=v,this.next=h.Undefined,this.prev=h.Undefined}};Xd.Undefined=new Xd(void 0);var DB=class{constructor(){this._first=Xd.Undefined,this._last=Xd.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Xd.Undefined}clear(){let v=this._first;for(;v!==Xd.Undefined;){let A=v.next;v.prev=Xd.Undefined,v.next=Xd.Undefined,v=A}this._first=Xd.Undefined,this._last=Xd.Undefined,this._size=0}unshift(v){return this._insert(v,!1)}push(v){return this._insert(v,!0)}_insert(v,A){let F=new Xd(v);if(this._first===Xd.Undefined)this._first=F,this._last=F;else if(A){let _e=this._last;this._last=F,F.prev=_e,_e.next=F}else{let _e=this._first;this._first=F,F.next=_e,_e.prev=F}this._size+=1;let X=!1;return()=>{X||(X=!0,this._remove(F))}}shift(){if(this._first!==Xd.Undefined){let v=this._first.element;return this._remove(this._first),v}}pop(){if(this._last!==Xd.Undefined){let v=this._last.element;return this._remove(this._last),v}}_remove(v){if(v.prev!==Xd.Undefined&&v.next!==Xd.Undefined){let A=v.prev;A.next=v.next,v.next.prev=A}else v.prev===Xd.Undefined&&v.next===Xd.Undefined?(this._first=Xd.Undefined,this._last=Xd.Undefined):v.next===Xd.Undefined?(this._last=this._last.prev,this._last.next=Xd.Undefined):v.prev===Xd.Undefined&&(this._first=this._first.next,this._first.prev=Xd.Undefined);this._size-=1}*[Symbol.iterator](){let v=this._first;for(;v!==Xd.Undefined;)yield v.element,v=v.next}};var Qvt=globalThis.performance&&typeof globalThis.performance.now=="function",c8=class h{static create(v){return new h(v)}constructor(v){this._now=Qvt&&v===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var Zvt=!1,Z7e=!1,eyt=!1,Tte;(function(h){h.None=()=>_1.None;function v(Bi){if(eyt){let{onDidAddListener:Gi}=Bi,Ft=PB.create(),ra=0;Bi.onDidAddListener=()=>{++ra===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),Ft.print()),Gi?.()}}}function A(Bi,Gi){return Zt(Bi,()=>{},0,void 0,!0,void 0,Gi)}h.defer=A;function F(Bi){return(Gi,Ft=null,ra)=>{let Io=!1,ts;return ts=Bi(Zi=>{if(!Io)return ts?ts.dispose():Io=!0,Gi.call(Ft,Zi)},null,ra),Io&&ts.dispose(),ts}}h.once=F;function X(Bi,Gi,Ft){return Ke((ra,Io=null,ts)=>Bi(Zi=>ra.call(Io,Gi(Zi)),null,ts),Ft)}h.map=X;function _e(Bi,Gi,Ft){return Ke((ra,Io=null,ts)=>Bi(Zi=>{Gi(Zi),ra.call(Io,Zi)},null,ts),Ft)}h.forEach=_e;function Te(Bi,Gi,Ft){return Ke((ra,Io=null,ts)=>Bi(Zi=>Gi(Zi)&&ra.call(Io,Zi),null,ts),Ft)}h.filter=Te;function Be(Bi){return Bi}h.signal=Be;function nt(...Bi){return(Gi,Ft=null,ra)=>{let Io=Q7e(...Bi.map(ts=>ts(Zi=>Gi.call(Ft,Zi))));return Gt(Io,ra)}}h.any=nt;function De(Bi,Gi,Ft,ra){let Io=Ft;return X(Bi,ts=>(Io=Gi(Io,ts),Io),ra)}h.reduce=De;function Ke(Bi,Gi){let Ft,ra={onWillAddFirstListener(){Ft=Bi(Io.fire,Io)},onDidRemoveLastListener(){Ft?.dispose()}};Gi||v(ra);let Io=new Hh(ra);return Gi?.add(Io),Io.event}function Gt(Bi,Gi){return Gi instanceof Array?Gi.push(Bi):Gi&&Gi.add(Bi),Bi}function Zt(Bi,Gi,Ft=100,ra=!1,Io=!1,ts,Zi){let $d,qf,eS,fA=0,Vi,tS={leakWarningThreshold:ts,onWillAddFirstListener(){$d=Bi(mA=>{fA++,qf=Gi(qf,mA),ra&&!eS&&(Rx.fire(qf),qf=void 0),Vi=()=>{let Av=qf;qf=void 0,eS=void 0,(!ra||fA>1)&&Rx.fire(Av),fA=0},typeof Ft=="number"?(clearTimeout(eS),eS=setTimeout(Vi,Ft)):eS===void 0&&(eS=0,queueMicrotask(Vi))})},onWillRemoveListener(){Io&&fA>0&&Vi?.()},onDidRemoveLastListener(){Vi=void 0,$d.dispose()}};Zi||v(tS);let Rx=new Hh(tS);return Zi?.add(Rx),Rx.event}h.debounce=Zt;function ir(Bi,Gi=0,Ft){return h.debounce(Bi,(ra,Io)=>ra?(ra.push(Io),ra):[Io],Gi,void 0,!0,void 0,Ft)}h.accumulate=ir;function Ar(Bi,Gi=(ra,Io)=>ra===Io,Ft){let ra=!0,Io;return Te(Bi,ts=>{let Zi=ra||!Gi(ts,Io);return ra=!1,Io=ts,Zi},Ft)}h.latch=Ar;function Un(Bi,Gi,Ft){return[h.filter(Bi,Gi,Ft),h.filter(Bi,ra=>!Gi(ra),Ft)]}h.split=Un;function Qi(Bi,Gi=!1,Ft=[],ra){let Io=Ft.slice(),ts=Bi(qf=>{Io?Io.push(qf):$d.fire(qf)});ra&&ra.add(ts);let Zi=()=>{Io?.forEach(qf=>$d.fire(qf)),Io=null},$d=new Hh({onWillAddFirstListener(){ts||(ts=Bi(qf=>$d.fire(qf)),ra&&ra.add(ts))},onDidAddFirstListener(){Io&&(Gi?setTimeout(Zi):Zi())},onDidRemoveLastListener(){ts&&ts.dispose(),ts=null}});return ra&&ra.add($d),$d.event}h.buffer=Qi;function Jn(Bi,Gi){return(ra,Io,ts)=>{let Zi=Gi(new Qr);return Bi(function($d){let qf=Zi.evaluate($d);qf!==vn&&ra.call(Io,qf)},void 0,ts)}}h.chain=Jn;let vn=Symbol("HaltChainable");class Qr{constructor(){this.steps=[]}map(Gi){return this.steps.push(Gi),this}forEach(Gi){return this.steps.push(Ft=>(Gi(Ft),Ft)),this}filter(Gi){return this.steps.push(Ft=>Gi(Ft)?Ft:vn),this}reduce(Gi,Ft){let ra=Ft;return this.steps.push(Io=>(ra=Gi(ra,Io),ra)),this}latch(Gi=(Ft,ra)=>Ft===ra){let Ft=!0,ra;return this.steps.push(Io=>{let ts=Ft||!Gi(Io,ra);return Ft=!1,ra=Io,ts?Io:vn}),this}evaluate(Gi){for(let Ft of this.steps)if(Gi=Ft(Gi),Gi===vn)break;return Gi}}function ri(Bi,Gi,Ft=ra=>ra){let ra=(...$d)=>Zi.fire(Ft(...$d)),Io=()=>Bi.on(Gi,ra),ts=()=>Bi.removeListener(Gi,ra),Zi=new Hh({onWillAddFirstListener:Io,onDidRemoveLastListener:ts});return Zi.event}h.fromNodeEventEmitter=ri;function to(Bi,Gi,Ft=ra=>ra){let ra=(...$d)=>Zi.fire(Ft(...$d)),Io=()=>Bi.addEventListener(Gi,ra),ts=()=>Bi.removeEventListener(Gi,ra),Zi=new Hh({onWillAddFirstListener:Io,onDidRemoveLastListener:ts});return Zi.event}h.fromDOMEventEmitter=to;function Ga(Bi){return new Promise(Gi=>F(Bi)(Gi))}h.toPromise=Ga;function wr(Bi){let Gi=new Hh;return Bi.then(Ft=>{Gi.fire(Ft)},()=>{Gi.fire(void 0)}).finally(()=>{Gi.dispose()}),Gi.event}h.fromPromise=wr;function Ma(Bi,Gi,Ft){return Gi(Ft),Bi(ra=>Gi(ra))}h.runAndSubscribe=Ma;class Kc{constructor(Gi,Ft){this._observable=Gi,this._counter=0,this._hasChanged=!1;let ra={onWillAddFirstListener:()=>{Gi.addObserver(this)},onDidRemoveLastListener:()=>{Gi.removeObserver(this)}};Ft||v(ra),this.emitter=new Hh(ra),Ft&&Ft.add(this.emitter)}beginUpdate(Gi){this._counter++}handlePossibleChange(Gi){}handleChange(Gi,Ft){this._hasChanged=!0}endUpdate(Gi){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function au(Bi,Gi){return new Kc(Bi,Gi).emitter.event}h.fromObservable=au;function tr(Bi){return(Gi,Ft,ra)=>{let Io=0,ts=!1,Zi={beginUpdate(){Io++},endUpdate(){Io--,Io===0&&(Bi.reportChanges(),ts&&(ts=!1,Gi.call(Ft)))},handlePossibleChange(){},handleChange(){ts=!0}};Bi.addObserver(Zi),Bi.reportChanges();let $d={dispose(){Bi.removeObserver(Zi)}};return ra instanceof yM?ra.add($d):Array.isArray(ra)&&ra.push($d),$d}}h.fromObservableLight=tr})(Tte||(Tte={}));var NB=class h{constructor(v){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${v}_${h._idPool++}`,h.all.add(this)}start(v){this._stopWatch=new c8,this.listenerCount=v}stop(){if(this._stopWatch){let v=this._stopWatch.elapsed();this.durations.push(v),this.elapsedOverall+=v,this.invocationCount+=1,this._stopWatch=void 0}}};NB.all=new Set;NB._idPool=0;var e5e=-1,Bbe=class{constructor(v,A,F=Math.random().toString(18).slice(2,5)){this._errorHandler=v,this.threshold=A,this.name=F,this._warnCountdown=0}dispose(){var v;(v=this._stacks)===null||v===void 0||v.clear()}check(v,A){let F=this.threshold;if(F<=0||A{let _e=this._stacks.get(v.value)||0;this._stacks.set(v.value,_e-1)}}getMostFrequentStack(){if(!this._stacks)return;let v,A=0;for(let[F,X]of this._stacks)(!v||A{if(h instanceof u8)v(h);else for(let A=0;A{typeof h=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(h))}):void 0,Hh=class{constructor(v){var A,F,X,_e,Te,Be;this._size=0,this._options=v,this._leakageMon=e5e>0||!((A=this._options)===null||A===void 0)&&A.leakWarningThreshold?new Bbe((F=v?.onListenerError)!==null&&F!==void 0?F:a8,(_e=(X=this._options)===null||X===void 0?void 0:X.leakWarningThreshold)!==null&&_e!==void 0?_e:e5e):void 0,this._perfMon=!((Te=this._options)===null||Te===void 0)&&Te._profName?new NB(this._options._profName):void 0,this._deliveryQueue=(Be=this._options)===null||Be===void 0?void 0:Be.deliveryQueue}dispose(){var v,A,F,X;if(!this._disposed){if(this._disposed=!0,((v=this._deliveryQueue)===null||v===void 0?void 0:v.current)===this&&this._deliveryQueue.reset(),this._listeners){if(Z7e){let _e=this._listeners;queueMicrotask(()=>{nyt(_e,Te=>{var Be;return(Be=Te.stack)===null||Be===void 0?void 0:Be.print()})})}this._listeners=void 0,this._size=0}(F=(A=this._options)===null||A===void 0?void 0:A.onDidRemoveLastListener)===null||F===void 0||F.call(A),(X=this._leakageMon)===null||X===void 0||X.dispose()}}get event(){var v;return(v=this._event)!==null&&v!==void 0||(this._event=(A,F,X)=>{var _e,Te,Be,nt,De,Ke,Gt;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let Qi=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(Qi);let Jn=(_e=this._leakageMon.getMostFrequentStack())!==null&&_e!==void 0?_e:["UNKNOWN stack",-1],vn=new Vbe(`${Qi}. HINT: Stack shows most frequent listener (${Jn[1]}-times)`,Jn[0]);return(((Te=this._options)===null||Te===void 0?void 0:Te.onListenerError)||a8)(vn),_1.None}if(this._disposed)return _1.None;F&&(A=A.bind(F));let Zt=new u8(A),ir,Ar;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(Zt.stack=PB.create(),ir=this._leakageMon.check(Zt.stack,this._size+1)),Z7e&&(Zt.stack=Ar??PB.create()),this._listeners?this._listeners instanceof u8?((Gt=this._deliveryQueue)!==null&&Gt!==void 0||(this._deliveryQueue=new jbe),this._listeners=[this._listeners,Zt]):this._listeners.push(Zt):((nt=(Be=this._options)===null||Be===void 0?void 0:Be.onWillAddFirstListener)===null||nt===void 0||nt.call(Be,this),this._listeners=Zt,(Ke=(De=this._options)===null||De===void 0?void 0:De.onDidAddFirstListener)===null||Ke===void 0||Ke.call(De,this)),this._size++;let Un=l8(()=>{CB?.unregister(Un),ir?.(),this._removeListener(Zt)});if(X instanceof yM?X.add(Un):Array.isArray(X)&&X.push(Un),CB){let Qi=new Error().stack.split(` +`).slice(2).join(` +`).trim();CB.register(Un,Qi,Un)}return Un}),this._event}_removeListener(v){var A,F,X,_e;if((F=(A=this._options)===null||A===void 0?void 0:A.onWillRemoveListener)===null||F===void 0||F.call(A,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(_e=(X=this._options)===null||X===void 0?void 0:X.onDidRemoveLastListener)===null||_e===void 0||_e.call(X,this),this._size=0;return}let Te=this._listeners,Be=Te.indexOf(v);if(Be===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,Te[Be]=void 0;let nt=this._deliveryQueue.current===this;if(this._size*tyt<=Te.length){let De=0;for(let Ke=0;Ke0}};var jbe=class{constructor(){this.i=-1,this.end=0}enqueue(v,A,F){this.i=0,this.end=F,this.current=v,this.value=A}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function t5e(h){return typeof h=="string"}function ryt(h){let v=[];for(;Object.prototype!==h;)v=v.concat(Object.getOwnPropertyNames(h)),h=Object.getPrototypeOf(h);return v}function MB(h){let v=[];for(let A of ryt(h))typeof h[A]=="function"&&v.push(A);return v}function n5e(h,v){let A=X=>function(){let _e=Array.prototype.slice.call(arguments,0);return v(X,_e)},F={};for(let X of h)F[X]=A(X);return F}var iyt=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function oyt(h,v){let A;return v.length===0?A=h:A=h.replace(/\{(\d+)\}/g,(F,X)=>{let _e=X[0],Te=v[_e],Be=F;return typeof Te=="string"?Be=Te:(typeof Te=="number"||typeof Te=="boolean"||Te===void 0||Te===null)&&(Be=String(Te)),Be}),iyt&&(A="\uFF3B"+A.replace(/[aouei]/g,"$&$&")+"\uFF3D"),A}function bd(h,v,...A){return oyt(v,A)}var Ube,Hbe,d8="en",xte=!1,Rte=!1,Ite=!1,syt=!1,lyt=!1,i5e=!1,cyt=!1,uyt=!1,dyt=!1,pyt=!1,Ate,qbe=d8,r5e=d8,fyt,XE,Ax=globalThis,qh;typeof Ax.vscode<"u"&&typeof Ax.vscode.process<"u"?qh=Ax.vscode.process:typeof process<"u"&&typeof((Ube=process==null?void 0:process.versions)===null||Ube===void 0?void 0:Ube.node)=="string"&&(qh=process);var o5e=typeof((Hbe=qh?.versions)===null||Hbe===void 0?void 0:Hbe.electron)=="string",myt=o5e&&qh?.type==="renderer";if(typeof qh=="object"){xte=qh.platform==="win32",Rte=qh.platform==="darwin",Ite=qh.platform==="linux",syt=Ite&&!!qh.env.SNAP&&!!qh.env.SNAP_REVISION,cyt=o5e,dyt=!!qh.env.CI||!!qh.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ate=d8,qbe=d8;let h=qh.env.VSCODE_NLS_CONFIG;if(h)try{let v=JSON.parse(h),A=v.availableLanguages["*"];Ate=v.locale,r5e=v.osLocale,qbe=A||d8,fyt=v._translationsConfigFile}catch{}lyt=!0}else typeof navigator=="object"&&!myt?(XE=navigator.userAgent,xte=XE.indexOf("Windows")>=0,Rte=XE.indexOf("Macintosh")>=0,uyt=(XE.indexOf("Macintosh")>=0||XE.indexOf("iPad")>=0||XE.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Ite=XE.indexOf("Linux")>=0,pyt=XE?.indexOf("Mobi")>=0,i5e=!0,Ate=(bd({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||d8,qbe=Ate,r5e=navigator.language):console.error("Unable to resolve platform.");var Jbe=0;Rte?Jbe=1:xte?Jbe=3:Ite&&(Jbe=2);var bM=xte,a5e=Rte;var _yt=i5e&&typeof Ax.importScripts=="function",e0t=_yt?Ax.origin:void 0;var aA=XE;var hyt=typeof Ax.postMessage=="function"&&!Ax.importScripts,t0t=(()=>{if(hyt){let h=[];Ax.addEventListener("message",A=>{if(A.data&&A.data.vscodeScheduleAsyncWork)for(let F=0,X=h.length;F{let F=++v;h.push({id:F,callback:A}),Ax.postMessage({vscodeScheduleAsyncWork:F},"*")}}return h=>setTimeout(h)})();var gyt=!!(aA&&aA.indexOf("Chrome")>=0),n0t=!!(aA&&aA.indexOf("Firefox")>=0),r0t=!!(!gyt&&aA&&aA.indexOf("Safari")>=0),i0t=!!(aA&&aA.indexOf("Edg/")>=0),o0t=!!(aA&&aA.indexOf("Android")>=0);function vyt(h){return h}var Dte=class{constructor(v,A){this.lastCache=void 0,this.lastArgKey=void 0,typeof v=="function"?(this._fn=v,this._computeKey=vyt):(this._fn=A,this._computeKey=v.getCacheKey)}get(v){let A=this._computeKey(v);return this.lastArgKey!==A&&(this.lastArgKey=A,this.lastCache=this._fn(v)),this.lastCache}};var LB=class{constructor(v){this.executor=v,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(v){this._error=v}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};var p8;function s5e(h){return h.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l5e(h){return h.split(/\r\n|\r|\n/)}function c5e(h){for(let v=0,A=h.length;v=0;A--){let F=h.charCodeAt(A);if(F!==32&&F!==9)return A}return-1}function Xbe(h){return h>=65&&h<=90}function f8(h){return 55296<=h&&h<=56319}function Cte(h){return 56320<=h&&h<=57343}function Ybe(h,v){return(h-55296<<10)+(v-56320)+65536}function d5e(h,v,A){let F=h.charCodeAt(A);if(f8(F)&&A+1A[3*X+1])X=2*X+1;else return A[3*X+2];return 0}};Kbe._INSTANCE=null;function byt(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var sA=class{static getInstance(v){return p8.cache.get(Array.from(v))}static getLocales(){return p8._locales.value}constructor(v){this.confusableDictionary=v}isAmbiguous(v){return this.confusableDictionary.has(v)}getPrimaryConfusable(v){return this.confusableDictionary.get(v)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};p8=sA;sA.ambiguousCharacterData=new LB(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));sA.cache=new Dte({getCacheKey:JSON.stringify},h=>{function v(De){let Ke=new Map;for(let Gt=0;Gt!De.startsWith("_")&&De in X);_e.length===0&&(_e=["_default"]);let Te;for(let De of _e){let Ke=v(X[De]);Te=F(Te,Ke)}let Be=v(X._common),nt=A(Be,Te);return new p8(nt)});sA._locales=new LB(()=>Object.keys(p8.ambiguousCharacterData.value).filter(h=>!h.startsWith("_")));var EM=class h{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(h.getRawData())),this._data}static isInvisibleCharacter(v){return h.getData().has(v)}static get codePoints(){return h.getData()}};EM._data=void 0;var Eyt="$initialize";var $be=class{constructor(v,A,F,X){this.vsWorker=v,this.req=A,this.method=F,this.args=X,this.type=0}},Nte=class{constructor(v,A,F,X){this.vsWorker=v,this.seq=A,this.res=F,this.err=X,this.type=1}},Qbe=class{constructor(v,A,F,X){this.vsWorker=v,this.req=A,this.eventName=F,this.arg=X,this.type=2}},Zbe=class{constructor(v,A,F){this.vsWorker=v,this.req=A,this.event=F,this.type=3}},e0e=class{constructor(v,A){this.vsWorker=v,this.req=A,this.type=4}},t0e=class{constructor(v){this._workerId=-1,this._handler=v,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(v){this._workerId=v}sendMessage(v,A){let F=String(++this._lastSentReq);return new Promise((X,_e)=>{this._pendingReplies[F]={resolve:X,reject:_e},this._send(new $be(this._workerId,F,v,A))})}listen(v,A){let F=null,X=new Hh({onWillAddFirstListener:()=>{F=String(++this._lastSentReq),this._pendingEmitters.set(F,X),this._send(new Qbe(this._workerId,F,v,A))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(F),this._send(new e0e(this._workerId,F)),F=null}});return X.event}handleMessage(v){!v||!v.vsWorker||this._workerId!==-1&&v.vsWorker!==this._workerId||this._handleMessage(v)}_handleMessage(v){switch(v.type){case 1:return this._handleReplyMessage(v);case 0:return this._handleRequestMessage(v);case 2:return this._handleSubscribeEventMessage(v);case 3:return this._handleEventMessage(v);case 4:return this._handleUnsubscribeEventMessage(v)}}_handleReplyMessage(v){if(!this._pendingReplies[v.seq]){console.warn("Got reply to unknown seq");return}let A=this._pendingReplies[v.seq];if(delete this._pendingReplies[v.seq],v.err){let F=v.err;v.err.$isError&&(F=new Error,F.name=v.err.name,F.message=v.err.message,F.stack=v.err.stack),A.reject(F);return}A.resolve(v.res)}_handleRequestMessage(v){let A=v.req;this._handler.handleMessage(v.method,v.args).then(X=>{this._send(new Nte(this._workerId,A,X,void 0))},X=>{X.detail instanceof Error&&(X.detail=wbe(X.detail)),this._send(new Nte(this._workerId,A,void 0,wbe(X)))})}_handleSubscribeEventMessage(v){let A=v.req,F=this._handler.handleEvent(v.eventName,v.arg)(X=>{this._send(new Zbe(this._workerId,A,X))});this._pendingEvents.set(A,F)}_handleEventMessage(v){if(!this._pendingEmitters.has(v.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(v.req).fire(v.event)}_handleUnsubscribeEventMessage(v){if(!this._pendingEvents.has(v.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(v.req).dispose(),this._pendingEvents.delete(v.req)}_send(v){let A=[];if(v.type===0)for(let F=0;Ffunction(){let Be=Array.prototype.slice.call(arguments,0);return v(Te,Be)},X=Te=>function(Be){return A(Te,Be)},_e={};for(let Te of h){if(m5e(Te)){_e[Te]=X(Te);continue}if(f5e(Te)){_e[Te]=A(Te,void 0);continue}_e[Te]=F(Te)}return _e}var Pte=class{constructor(v,A){this._requestHandlerFactory=A,this._requestHandler=null,this._protocol=new t0e({sendMessage:(F,X)=>{v(F,X)},handleMessage:(F,X)=>this._handleMessage(F,X),handleEvent:(F,X)=>this._handleEvent(F,X)})}onmessage(v){this._protocol.handleMessage(v)}_handleMessage(v,A){if(v===Eyt)return this.initialize(A[0],A[1],A[2],A[3]);if(!this._requestHandler||typeof this._requestHandler[v]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+v));try{return Promise.resolve(this._requestHandler[v].apply(this._requestHandler,A))}catch(F){return Promise.reject(F)}}_handleEvent(v,A){if(!this._requestHandler)throw new Error("Missing requestHandler");if(m5e(v)){let F=this._requestHandler[v].call(this._requestHandler,A);if(typeof F!="function")throw new Error(`Missing dynamic event ${v} on request handler.`);return F}if(f5e(v)){let F=this._requestHandler[v];if(typeof F!="function")throw new Error(`Missing event ${v} on request handler.`);return F}throw new Error(`Malformed event name ${v}`)}initialize(v,A,F,X){this._protocol.setWorkerId(v);let Be=Syt(X,(nt,De)=>this._protocol.sendMessage(nt,De),(nt,De)=>this._protocol.listen(nt,De));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(Be),Promise.resolve(MB(this._requestHandler))):(A&&(typeof A.baseUrl<"u"&&delete A.baseUrl,typeof A.paths<"u"&&typeof A.paths.vs<"u"&&delete A.paths.vs,typeof A.trustedTypesPolicy<"u"&&delete A.trustedTypesPolicy,A.catchError=!0,globalThis.require.config(A)),new Promise((nt,De)=>{let Ke=globalThis.require;Ke([F],Gt=>{if(this._requestHandler=Gt.create(Be),!this._requestHandler){De(new Error("No RequestHandler!"));return}nt(MB(this._requestHandler))},De)}))}};var YE=class{constructor(v,A,F,X){this.originalStart=v,this.originalLength=A,this.modifiedStart=F,this.modifiedLength=X}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};function _5e(h,v){return(v<<5)-v+h|0}function g5e(h,v){v=_5e(149417,v);for(let A=0,F=h.length;A>>F)>>>0}function h5e(h,v=0,A=h.byteLength,F=0){for(let X=0;XA.toString(16).padStart(2,"0")).join(""):Tyt((h>>>0).toString(16),v/4)}var r0e=class h{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(v){let A=v.length;if(A===0)return;let F=this._buff,X=this._buffLen,_e=this._leftoverHighSurrogate,Te,Be;for(_e!==0?(Te=_e,Be=-1,_e=0):(Te=v.charCodeAt(0),Be=0);;){let nt=Te;if(f8(Te))if(Be+1>>6,v[A++]=128|(F&63)>>>0):F<65536?(v[A++]=224|(F&61440)>>>12,v[A++]=128|(F&4032)>>>6,v[A++]=128|(F&63)>>>0):(v[A++]=240|(F&1835008)>>>18,v[A++]=128|(F&258048)>>>12,v[A++]=128|(F&4032)>>>6,v[A++]=128|(F&63)>>>0),A>=64&&(this._step(),A-=64,this._totalLen+=64,v[0]=v[64],v[1]=v[65],v[2]=v[66]),A}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),wB(this._h0)+wB(this._h1)+wB(this._h2)+wB(this._h3)+wB(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,h5e(this._buff,this._buffLen),this._buffLen>56&&(this._step(),h5e(this._buff));let v=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(v/4294967296),!1),this._buffDV.setUint32(60,v%4294967296,!1),this._step()}_step(){let v=h._bigBlock32,A=this._buffDV;for(let Gt=0;Gt<64;Gt+=4)v.setUint32(Gt,A.getUint32(Gt,!1),!1);for(let Gt=64;Gt<320;Gt+=4)v.setUint32(Gt,n0e(v.getUint32(Gt-12,!1)^v.getUint32(Gt-32,!1)^v.getUint32(Gt-56,!1)^v.getUint32(Gt-64,!1),1),!1);let F=this._h0,X=this._h1,_e=this._h2,Te=this._h3,Be=this._h4,nt,De,Ke;for(let Gt=0;Gt<80;Gt++)Gt<20?(nt=X&_e|~X&Te,De=1518500249):Gt<40?(nt=X^_e^Te,De=1859775393):Gt<60?(nt=X&_e|X&Te|_e&Te,De=2400959708):(nt=X^_e^Te,De=3395469782),Ke=n0e(F,5)+nt+Be+De+v.getUint32(Gt*4,!1)&4294967295,Be=Te,Te=_e,_e=n0e(X,30),X=F,F=Ke;this._h0=this._h0+F&4294967295,this._h1=this._h1+X&4294967295,this._h2=this._h2+_e&4294967295,this._h3=this._h3+Te&4294967295,this._h4=this._h4+Be&4294967295}};r0e._bigBlock32=new DataView(new ArrayBuffer(320));var Mte=class{constructor(v){this.source=v}getElements(){let v=this.source,A=new Int32Array(v.length);for(let F=0,X=v.length;F0||this.m_modifiedCount>0)&&this.m_changes.push(new YE(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(v,A){this.m_originalStart=Math.min(this.m_originalStart,v),this.m_modifiedStart=Math.min(this.m_modifiedStart,A),this.m_originalCount++}AddModifiedElement(v,A){this.m_originalStart=Math.min(this.m_originalStart,v),this.m_modifiedStart=Math.min(this.m_modifiedStart,A),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},OB=class h{constructor(v,A,F=null){this.ContinueProcessingPredicate=F,this._originalSequence=v,this._modifiedSequence=A;let[X,_e,Te]=h._getElements(v),[Be,nt,De]=h._getElements(A);this._hasStrings=Te&&De,this._originalStringElements=X,this._originalElementsOrHash=_e,this._modifiedStringElements=Be,this._modifiedElementsOrHash=nt,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(v){return v.length>0&&typeof v[0]=="string"}static _getElements(v){let A=v.getElements();if(h._isStringArray(A)){let F=new Int32Array(A.length);for(let X=0,_e=A.length;X<_e;X++)F[X]=g5e(A[X],0);return[A,F,!0]}return A instanceof Int32Array?[[],A,!1]:[[],new Int32Array(A),!1]}ElementsAreEqual(v,A){return this._originalElementsOrHash[v]!==this._modifiedElementsOrHash[A]?!1:this._hasStrings?this._originalStringElements[v]===this._modifiedStringElements[A]:!0}ElementsAreStrictEqual(v,A){if(!this.ElementsAreEqual(v,A))return!1;let F=h._getStrictElement(this._originalSequence,v),X=h._getStrictElement(this._modifiedSequence,A);return F===X}static _getStrictElement(v,A){return typeof v.getStrictElement=="function"?v.getStrictElement(A):null}OriginalElementsAreEqual(v,A){return this._originalElementsOrHash[v]!==this._originalElementsOrHash[A]?!1:this._hasStrings?this._originalStringElements[v]===this._originalStringElements[A]:!0}ModifiedElementsAreEqual(v,A){return this._modifiedElementsOrHash[v]!==this._modifiedElementsOrHash[A]?!1:this._hasStrings?this._modifiedStringElements[v]===this._modifiedStringElements[A]:!0}ComputeDiff(v){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,v)}_ComputeDiff(v,A,F,X,_e){let Te=[!1],Be=this.ComputeDiffRecursive(v,A,F,X,Te);return _e&&(Be=this.PrettifyChanges(Be)),{quitEarly:Te[0],changes:Be}}ComputeDiffRecursive(v,A,F,X,_e){for(_e[0]=!1;v<=A&&F<=X&&this.ElementsAreEqual(v,F);)v++,F++;for(;A>=v&&X>=F&&this.ElementsAreEqual(A,X);)A--,X--;if(v>A||F>X){let Gt;return F<=X?(wD.Assert(v===A+1,"originalStart should only be one more than originalEnd"),Gt=[new YE(v,0,F,X-F+1)]):v<=A?(wD.Assert(F===X+1,"modifiedStart should only be one more than modifiedEnd"),Gt=[new YE(v,A-v+1,F,0)]):(wD.Assert(v===A+1,"originalStart should only be one more than originalEnd"),wD.Assert(F===X+1,"modifiedStart should only be one more than modifiedEnd"),Gt=[]),Gt}let Te=[0],Be=[0],nt=this.ComputeRecursionPoint(v,A,F,X,Te,Be,_e),De=Te[0],Ke=Be[0];if(nt!==null)return nt;if(!_e[0]){let Gt=this.ComputeDiffRecursive(v,De,F,Ke,_e),Zt=[];return _e[0]?Zt=[new YE(De+1,A-(De+1)+1,Ke+1,X-(Ke+1)+1)]:Zt=this.ComputeDiffRecursive(De+1,A,Ke+1,X,_e),this.ConcatenateChanges(Gt,Zt)}return[new YE(v,A-v+1,F,X-F+1)]}WALKTRACE(v,A,F,X,_e,Te,Be,nt,De,Ke,Gt,Zt,ir,Ar,Un,Qi,Jn,vn){let Qr=null,ri=null,to=new Lte,Ga=A,wr=F,Ma=ir[0]-Qi[0]-X,Kc=-1073741824,au=this.m_forwardHistory.length-1;do{let tr=Ma+v;tr===Ga||tr=0&&(De=this.m_forwardHistory[au],v=De[0],Ga=1,wr=De.length-1)}while(--au>=-1);if(Qr=to.getReverseChanges(),vn[0]){let tr=ir[0]+1,Bi=Qi[0]+1;if(Qr!==null&&Qr.length>0){let Gi=Qr[Qr.length-1];tr=Math.max(tr,Gi.getOriginalEnd()),Bi=Math.max(Bi,Gi.getModifiedEnd())}ri=[new YE(tr,Zt-tr+1,Bi,Un-Bi+1)]}else{to=new Lte,Ga=Te,wr=Be,Ma=ir[0]-Qi[0]-nt,Kc=1073741824,au=Jn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let tr=Ma+_e;tr===Ga||tr=Ke[tr+1]?(Gt=Ke[tr+1]-1,Ar=Gt-Ma-nt,Gt>Kc&&to.MarkNextChange(),Kc=Gt+1,to.AddOriginalElement(Gt+1,Ar+1),Ma=tr+1-_e):(Gt=Ke[tr-1],Ar=Gt-Ma-nt,Gt>Kc&&to.MarkNextChange(),Kc=Gt,to.AddModifiedElement(Gt+1,Ar+1),Ma=tr-1-_e),au>=0&&(Ke=this.m_reverseHistory[au],_e=Ke[0],Ga=1,wr=Ke.length-1)}while(--au>=-1);ri=to.getChanges()}return this.ConcatenateChanges(Qr,ri)}ComputeRecursionPoint(v,A,F,X,_e,Te,Be){let nt=0,De=0,Ke=0,Gt=0,Zt=0,ir=0;v--,F--,_e[0]=0,Te[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let Ar=A-v+(X-F),Un=Ar+1,Qi=new Int32Array(Un),Jn=new Int32Array(Un),vn=X-F,Qr=A-v,ri=v-F,to=A-X,wr=(Qr-vn)%2===0;Qi[vn]=v,Jn[Qr]=A,Be[0]=!1;for(let Ma=1;Ma<=Ar/2+1;Ma++){let Kc=0,au=0;Ke=this.ClipDiagonalBound(vn-Ma,Ma,vn,Un),Gt=this.ClipDiagonalBound(vn+Ma,Ma,vn,Un);for(let Bi=Ke;Bi<=Gt;Bi+=2){Bi===Ke||BiKc+au&&(Kc=nt,au=De),!wr&&Math.abs(Bi-Qr)<=Ma-1&&nt>=Jn[Bi])return _e[0]=nt,Te[0]=De,Gi<=Jn[Bi]&&Ma<=1448?this.WALKTRACE(vn,Ke,Gt,ri,Qr,Zt,ir,to,Qi,Jn,nt,A,_e,De,X,Te,wr,Be):null}let tr=(Kc-v+(au-F)-Ma)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Kc,tr))return Be[0]=!0,_e[0]=Kc,Te[0]=au,tr>0&&Ma<=1448?this.WALKTRACE(vn,Ke,Gt,ri,Qr,Zt,ir,to,Qi,Jn,nt,A,_e,De,X,Te,wr,Be):(v++,F++,[new YE(v,A-v+1,F,X-F+1)]);Zt=this.ClipDiagonalBound(Qr-Ma,Ma,Qr,Un),ir=this.ClipDiagonalBound(Qr+Ma,Ma,Qr,Un);for(let Bi=Zt;Bi<=ir;Bi+=2){Bi===Zt||Bi=Jn[Bi+1]?nt=Jn[Bi+1]-1:nt=Jn[Bi-1],De=nt-(Bi-Qr)-to;let Gi=nt;for(;nt>v&&De>F&&this.ElementsAreEqual(nt,De);)nt--,De--;if(Jn[Bi]=nt,wr&&Math.abs(Bi-vn)<=Ma&&nt<=Qi[Bi])return _e[0]=nt,Te[0]=De,Gi>=Qi[Bi]&&Ma<=1448?this.WALKTRACE(vn,Ke,Gt,ri,Qr,Zt,ir,to,Qi,Jn,nt,A,_e,De,X,Te,wr,Be):null}if(Ma<=1447){let Bi=new Int32Array(Gt-Ke+2);Bi[0]=vn-Ke+1,OD.Copy2(Qi,Ke,Bi,1,Gt-Ke+1),this.m_forwardHistory.push(Bi),Bi=new Int32Array(ir-Zt+2),Bi[0]=Qr-Zt+1,OD.Copy2(Jn,Zt,Bi,1,ir-Zt+1),this.m_reverseHistory.push(Bi)}}return this.WALKTRACE(vn,Ke,Gt,ri,Qr,Zt,ir,to,Qi,Jn,nt,A,_e,De,X,Te,wr,Be)}PrettifyChanges(v){for(let A=0;A0,Be=F.modifiedLength>0;for(;F.originalStart+F.originalLength=0;A--){let F=v[A],X=0,_e=0;if(A>0){let Gt=v[A-1];X=Gt.originalStart+Gt.originalLength,_e=Gt.modifiedStart+Gt.modifiedLength}let Te=F.originalLength>0,Be=F.modifiedLength>0,nt=0,De=this._boundaryScore(F.originalStart,F.originalLength,F.modifiedStart,F.modifiedLength);for(let Gt=1;;Gt++){let Zt=F.originalStart-Gt,ir=F.modifiedStart-Gt;if(ZtDe&&(De=Un,nt=Gt)}F.originalStart-=nt,F.modifiedStart-=nt;let Ke=[null];if(A>0&&this.ChangesOverlap(v[A-1],v[A],Ke)){v[A-1]=Ke[0],v.splice(A,1),A++;continue}}if(this._hasStrings)for(let A=1,F=v.length;A0&&ir>nt&&(nt=ir,De=Gt,Ke=Zt)}return nt>0?[De,Ke]:null}_contiguousSequenceScore(v,A,F){let X=0;for(let _e=0;_e=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[v])}_OriginalRegionIsBoundary(v,A){if(this._OriginalIsBoundary(v)||this._OriginalIsBoundary(v-1))return!0;if(A>0){let F=v+A;if(this._OriginalIsBoundary(F-1)||this._OriginalIsBoundary(F))return!0}return!1}_ModifiedIsBoundary(v){return v<=0||v>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[v])}_ModifiedRegionIsBoundary(v,A){if(this._ModifiedIsBoundary(v)||this._ModifiedIsBoundary(v-1))return!0;if(A>0){let F=v+A;if(this._ModifiedIsBoundary(F-1)||this._ModifiedIsBoundary(F))return!0}return!1}_boundaryScore(v,A,F,X){let _e=this._OriginalRegionIsBoundary(v,A)?1:0,Te=this._ModifiedRegionIsBoundary(F,X)?1:0;return _e+Te}ConcatenateChanges(v,A){let F=[];if(v.length===0||A.length===0)return A.length>0?A:v;if(this.ChangesOverlap(v[v.length-1],A[0],F)){let X=new Array(v.length+A.length-1);return OD.Copy(v,0,X,0,v.length-1),X[v.length-1]=F[0],OD.Copy(A,1,X,v.length,A.length-1),X}else{let X=new Array(v.length+A.length);return OD.Copy(v,0,X,0,v.length),OD.Copy(A,0,X,v.length,A.length),X}}ChangesOverlap(v,A,F){if(wD.Assert(v.originalStart<=A.originalStart,"Left change is not less than or equal to right change"),wD.Assert(v.modifiedStart<=A.modifiedStart,"Left change is not less than or equal to right change"),v.originalStart+v.originalLength>=A.originalStart||v.modifiedStart+v.modifiedLength>=A.modifiedStart){let X=v.originalStart,_e=v.originalLength,Te=v.modifiedStart,Be=v.modifiedLength;return v.originalStart+v.originalLength>=A.originalStart&&(_e=A.originalStart+A.originalLength-v.originalStart),v.modifiedStart+v.modifiedLength>=A.modifiedStart&&(Be=A.modifiedStart+A.modifiedLength-v.modifiedStart),F[0]=new YE(X,_e,Te,Be),!0}else return F[0]=null,!1}ClipDiagonalBound(v,A,F,X){if(v>=0&&v=Iyt&&h<=Ryt||h>=xyt&&h<=Dyt}function wte(h,v,A,F){let X="",_e=0,Te=-1,Be=0,nt=0;for(let De=0;De<=h.length;++De){if(De2){let Ke=X.lastIndexOf(A);Ke===-1?(X="",_e=0):(X=X.slice(0,Ke),_e=X.length-1-X.lastIndexOf(A)),Te=De,Be=0;continue}else if(X.length!==0){X="",_e=0,Te=De,Be=0;continue}}v&&(X+=X.length>0?`${A}..`:"..",_e=2)}else X.length>0?X+=`${A}${h.slice(Te+1,De)}`:X=h.slice(Te+1,De),_e=De-Te-1;Te=De,Be=0}else nt===zD&&Be!==-1?++Be:Be=-1}return X}function E5e(h,v){Nyt(v,"pathObject");let A=v.dir||v.root,F=v.base||`${v.name||""}${v.ext||""}`;return A?A===v.root?`${A}${F}`:`${A}${h}${F}`:F}var Cg={resolve(...h){let v="",A="",F=!1;for(let X=h.length-1;X>=-1;X--){let _e;if(X>=0){if(_e=h[X],Hf(_e,"path"),_e.length===0)continue}else v.length===0?_e=FB():(_e=y5e[`=${v}`]||FB(),(_e===void 0||_e.slice(0,2).toLowerCase()!==v.toLowerCase()&&_e.charCodeAt(2)===Ey)&&(_e=`${v}\\`));let Te=_e.length,Be=0,nt="",De=!1,Ke=_e.charCodeAt(0);if(Te===1)Hl(Ke)&&(Be=1,De=!0);else if(Hl(Ke))if(De=!0,Hl(_e.charCodeAt(1))){let Gt=2,Zt=Gt;for(;Gt2&&Hl(_e.charCodeAt(2))&&(De=!0,Be=3));if(nt.length>0)if(v.length>0){if(nt.toLowerCase()!==v.toLowerCase())continue}else v=nt;if(F){if(v.length>0)break}else if(A=`${_e.slice(Be)}\\${A}`,F=De,De&&v.length>0)break}return A=wte(A,!F,"\\",Hl),F?`${v}\\${A}`:`${v}${A}`||"."},normalize(h){Hf(h,"path");let v=h.length;if(v===0)return".";let A=0,F,X=!1,_e=h.charCodeAt(0);if(v===1)return o0e(_e)?"\\":h;if(Hl(_e))if(X=!0,Hl(h.charCodeAt(1))){let Be=2,nt=Be;for(;Be2&&Hl(h.charCodeAt(2))&&(X=!0,A=3));let Te=A0&&Hl(h.charCodeAt(v-1))&&(Te+="\\"),F===void 0?X?`\\${Te}`:Te:X?`${F}\\${Te}`:`${F}${Te}`},isAbsolute(h){Hf(h,"path");let v=h.length;if(v===0)return!1;let A=h.charCodeAt(0);return Hl(A)||v>2&&WD(A)&&h.charCodeAt(1)===FD&&Hl(h.charCodeAt(2))},join(...h){if(h.length===0)return".";let v,A;for(let _e=0;_e0&&(v===void 0?v=A=Te:v+=`\\${Te}`)}if(v===void 0)return".";let F=!0,X=0;if(typeof A=="string"&&Hl(A.charCodeAt(0))){++X;let _e=A.length;_e>1&&Hl(A.charCodeAt(1))&&(++X,_e>2&&(Hl(A.charCodeAt(2))?++X:F=!1))}if(F){for(;X=2&&(v=`\\${v.slice(X)}`)}return Cg.normalize(v)},relative(h,v){if(Hf(h,"from"),Hf(v,"to"),h===v)return"";let A=Cg.resolve(h),F=Cg.resolve(v);if(A===F||(h=A.toLowerCase(),v=F.toLowerCase(),h===v))return"";let X=0;for(;XX&&h.charCodeAt(_e-1)===Ey;)_e--;let Te=_e-X,Be=0;for(;BeBe&&v.charCodeAt(nt-1)===Ey;)nt--;let De=nt-Be,Ke=TeKe){if(v.charCodeAt(Be+Zt)===Ey)return F.slice(Be+Zt+1);if(Zt===2)return F.slice(Be+Zt)}Te>Ke&&(h.charCodeAt(X+Zt)===Ey?Gt=Zt:Zt===2&&(Gt=3)),Gt===-1&&(Gt=0)}let ir="";for(Zt=X+Gt+1;Zt<=_e;++Zt)(Zt===_e||h.charCodeAt(Zt)===Ey)&&(ir+=ir.length===0?"..":"\\..");return Be+=Gt,ir.length>0?`${ir}${F.slice(Be,nt)}`:(F.charCodeAt(Be)===Ey&&++Be,F.slice(Be,nt))},toNamespacedPath(h){if(typeof h!="string"||h.length===0)return h;let v=Cg.resolve(h);if(v.length<=2)return h;if(v.charCodeAt(0)===Ey){if(v.charCodeAt(1)===Ey){let A=v.charCodeAt(2);if(A!==Cyt&&A!==zD)return`\\\\?\\UNC\\${v.slice(2)}`}}else if(WD(v.charCodeAt(0))&&v.charCodeAt(1)===FD&&v.charCodeAt(2)===Ey)return`\\\\?\\${v}`;return h},dirname(h){Hf(h,"path");let v=h.length;if(v===0)return".";let A=-1,F=0,X=h.charCodeAt(0);if(v===1)return Hl(X)?h:".";if(Hl(X)){if(A=F=1,Hl(h.charCodeAt(1))){let Be=2,nt=Be;for(;Be2&&Hl(h.charCodeAt(2))?3:2,F=A);let _e=-1,Te=!0;for(let Be=v-1;Be>=F;--Be)if(Hl(h.charCodeAt(Be))){if(!Te){_e=Be;break}}else Te=!1;if(_e===-1){if(A===-1)return".";_e=A}return h.slice(0,_e)},basename(h,v){v!==void 0&&Hf(v,"ext"),Hf(h,"path");let A=0,F=-1,X=!0,_e;if(h.length>=2&&WD(h.charCodeAt(0))&&h.charCodeAt(1)===FD&&(A=2),v!==void 0&&v.length>0&&v.length<=h.length){if(v===h)return"";let Te=v.length-1,Be=-1;for(_e=h.length-1;_e>=A;--_e){let nt=h.charCodeAt(_e);if(Hl(nt)){if(!X){A=_e+1;break}}else Be===-1&&(X=!1,Be=_e+1),Te>=0&&(nt===v.charCodeAt(Te)?--Te===-1&&(F=_e):(Te=-1,F=Be))}return A===F?F=Be:F===-1&&(F=h.length),h.slice(A,F)}for(_e=h.length-1;_e>=A;--_e)if(Hl(h.charCodeAt(_e))){if(!X){A=_e+1;break}}else F===-1&&(X=!1,F=_e+1);return F===-1?"":h.slice(A,F)},extname(h){Hf(h,"path");let v=0,A=-1,F=0,X=-1,_e=!0,Te=0;h.length>=2&&h.charCodeAt(1)===FD&&WD(h.charCodeAt(0))&&(v=F=2);for(let Be=h.length-1;Be>=v;--Be){let nt=h.charCodeAt(Be);if(Hl(nt)){if(!_e){F=Be+1;break}continue}X===-1&&(_e=!1,X=Be+1),nt===zD?A===-1?A=Be:Te!==1&&(Te=1):A!==-1&&(Te=-1)}return A===-1||X===-1||Te===0||Te===1&&A===X-1&&A===F+1?"":h.slice(A,X)},format:E5e.bind(null,"\\"),parse(h){Hf(h,"path");let v={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return v;let A=h.length,F=0,X=h.charCodeAt(0);if(A===1)return Hl(X)?(v.root=v.dir=h,v):(v.base=v.name=h,v);if(Hl(X)){if(F=1,Hl(h.charCodeAt(1))){let Gt=2,Zt=Gt;for(;Gt0&&(v.root=h.slice(0,F));let _e=-1,Te=F,Be=-1,nt=!0,De=h.length-1,Ke=0;for(;De>=F;--De){if(X=h.charCodeAt(De),Hl(X)){if(!nt){Te=De+1;break}continue}Be===-1&&(nt=!1,Be=De+1),X===zD?_e===-1?_e=De:Ke!==1&&(Ke=1):_e!==-1&&(Ke=-1)}return Be!==-1&&(_e===-1||Ke===0||Ke===1&&_e===Be-1&&_e===Te+1?v.base=v.name=h.slice(Te,Be):(v.name=h.slice(Te,_e),v.base=h.slice(Te,Be),v.ext=h.slice(_e,Be))),Te>0&&Te!==F?v.dir=h.slice(0,Te-1):v.dir=v.root,v},sep:"\\",delimiter:";",win32:null,posix:null},Pyt=(()=>{if(BD){let h=/\\/g;return()=>{let v=FB().replace(h,"/");return v.slice(v.indexOf("/"))}}return()=>FB()})(),Tv={resolve(...h){let v="",A=!1;for(let F=h.length-1;F>=-1&&!A;F--){let X=F>=0?h[F]:Pyt();Hf(X,"path"),X.length!==0&&(v=`${X}/${v}`,A=X.charCodeAt(0)===oh)}return v=wte(v,!A,"/",o0e),A?`/${v}`:v.length>0?v:"."},normalize(h){if(Hf(h,"path"),h.length===0)return".";let v=h.charCodeAt(0)===oh,A=h.charCodeAt(h.length-1)===oh;return h=wte(h,!v,"/",o0e),h.length===0?v?"/":A?"./":".":(A&&(h+="/"),v?`/${h}`:h)},isAbsolute(h){return Hf(h,"path"),h.length>0&&h.charCodeAt(0)===oh},join(...h){if(h.length===0)return".";let v;for(let A=0;A0&&(v===void 0?v=F:v+=`/${F}`)}return v===void 0?".":Tv.normalize(v)},relative(h,v){if(Hf(h,"from"),Hf(v,"to"),h===v||(h=Tv.resolve(h),v=Tv.resolve(v),h===v))return"";let A=1,F=h.length,X=F-A,_e=1,Te=v.length-_e,Be=XBe){if(v.charCodeAt(_e+De)===oh)return v.slice(_e+De+1);if(De===0)return v.slice(_e+De)}else X>Be&&(h.charCodeAt(A+De)===oh?nt=De:De===0&&(nt=0));let Ke="";for(De=A+nt+1;De<=F;++De)(De===F||h.charCodeAt(De)===oh)&&(Ke+=Ke.length===0?"..":"/..");return`${Ke}${v.slice(_e+nt)}`},toNamespacedPath(h){return h},dirname(h){if(Hf(h,"path"),h.length===0)return".";let v=h.charCodeAt(0)===oh,A=-1,F=!0;for(let X=h.length-1;X>=1;--X)if(h.charCodeAt(X)===oh){if(!F){A=X;break}}else F=!1;return A===-1?v?"/":".":v&&A===1?"//":h.slice(0,A)},basename(h,v){v!==void 0&&Hf(v,"ext"),Hf(h,"path");let A=0,F=-1,X=!0,_e;if(v!==void 0&&v.length>0&&v.length<=h.length){if(v===h)return"";let Te=v.length-1,Be=-1;for(_e=h.length-1;_e>=0;--_e){let nt=h.charCodeAt(_e);if(nt===oh){if(!X){A=_e+1;break}}else Be===-1&&(X=!1,Be=_e+1),Te>=0&&(nt===v.charCodeAt(Te)?--Te===-1&&(F=_e):(Te=-1,F=Be))}return A===F?F=Be:F===-1&&(F=h.length),h.slice(A,F)}for(_e=h.length-1;_e>=0;--_e)if(h.charCodeAt(_e)===oh){if(!X){A=_e+1;break}}else F===-1&&(X=!1,F=_e+1);return F===-1?"":h.slice(A,F)},extname(h){Hf(h,"path");let v=-1,A=0,F=-1,X=!0,_e=0;for(let Te=h.length-1;Te>=0;--Te){let Be=h.charCodeAt(Te);if(Be===oh){if(!X){A=Te+1;break}continue}F===-1&&(X=!1,F=Te+1),Be===zD?v===-1?v=Te:_e!==1&&(_e=1):v!==-1&&(_e=-1)}return v===-1||F===-1||_e===0||_e===1&&v===F-1&&v===A+1?"":h.slice(v,F)},format:E5e.bind(null,"/"),parse(h){Hf(h,"path");let v={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return v;let A=h.charCodeAt(0)===oh,F;A?(v.root="/",F=1):F=0;let X=-1,_e=0,Te=-1,Be=!0,nt=h.length-1,De=0;for(;nt>=F;--nt){let Ke=h.charCodeAt(nt);if(Ke===oh){if(!Be){_e=nt+1;break}continue}Te===-1&&(Be=!1,Te=nt+1),Ke===zD?X===-1?X=nt:De!==1&&(De=1):X!==-1&&(De=-1)}if(Te!==-1){let Ke=_e===0&&A?1:_e;X===-1||De===0||De===1&&X===Te-1&&X===_e+1?v.base=v.name=h.slice(Ke,Te):(v.name=h.slice(Ke,X),v.base=h.slice(Ke,Te),v.ext=h.slice(X,Te))}return _e>0?v.dir=h.slice(0,_e-1):A&&(v.dir="/"),v},sep:"/",delimiter:":",win32:null,posix:null};Tv.win32=Cg.win32=Cg;Tv.posix=Cg.posix=Tv;var A0t=BD?Cg.normalize:Tv.normalize,I0t=BD?Cg.resolve:Tv.resolve,x0t=BD?Cg.relative:Tv.relative,R0t=BD?Cg.dirname:Tv.dirname,D0t=BD?Cg.basename:Tv.basename,C0t=BD?Cg.extname:Tv.extname,N0t=BD?Cg.sep:Tv.sep;var Lyt=/^\w[\w\d+.-]*$/,kyt=/^\//,wyt=/^\/\//;function Oyt(h,v){if(!h.scheme&&v)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${h.authority}", path: "${h.path}", query: "${h.query}", fragment: "${h.fragment}"}`);if(h.scheme&&!Lyt.test(h.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(h.path){if(h.authority){if(!kyt.test(h.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(wyt.test(h.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Fyt(h,v){return!h&&!v?"file":h}function Wyt(h,v){switch(h){case"https":case"http":case"file":v?v[0]!==$E&&(v=$E+v):v=$E;break}return v}var Yd="",$E="/",zyt=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,VD=class h{static isUri(v){return v instanceof h?!0:v?typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function":!1}constructor(v,A,F,X,_e,Te=!1){typeof v=="object"?(this.scheme=v.scheme||Yd,this.authority=v.authority||Yd,this.path=v.path||Yd,this.query=v.query||Yd,this.fragment=v.fragment||Yd):(this.scheme=Fyt(v,Te),this.authority=A||Yd,this.path=Wyt(this.scheme,F||Yd),this.query=X||Yd,this.fragment=_e||Yd,Oyt(this,Te))}get fsPath(){return a0e(this,!1)}with(v){if(!v)return this;let{scheme:A,authority:F,path:X,query:_e,fragment:Te}=v;return A===void 0?A=this.scheme:A===null&&(A=Yd),F===void 0?F=this.authority:F===null&&(F=Yd),X===void 0?X=this.path:X===null&&(X=Yd),_e===void 0?_e=this.query:_e===null&&(_e=Yd),Te===void 0?Te=this.fragment:Te===null&&(Te=Yd),A===this.scheme&&F===this.authority&&X===this.path&&_e===this.query&&Te===this.fragment?this:new GD(A,F,X,_e,Te)}static parse(v,A=!1){let F=zyt.exec(v);return F?new GD(F[2]||Yd,Ote(F[4]||Yd),Ote(F[5]||Yd),Ote(F[7]||Yd),Ote(F[9]||Yd),A):new GD(Yd,Yd,Yd,Yd,Yd)}static file(v){let A=Yd;if(bM&&(v=v.replace(/\\/g,$E)),v[0]===$E&&v[1]===$E){let F=v.indexOf($E,2);F===-1?(A=v.substring(2),v=$E):(A=v.substring(2,F),v=v.substring(F)||$E)}return new GD("file",A,v,Yd,Yd)}static from(v,A){return new GD(v.scheme,v.authority,v.path,v.query,v.fragment,A)}static joinPath(v,...A){if(!v.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let F;return bM&&v.scheme==="file"?F=h.file(Cg.join(a0e(v,!0),...A)).path:F=Tv.join(v.path,...A),v.with({path:F})}toString(v=!1){return s0e(this,v)}toJSON(){return this}static revive(v){var A,F;if(v){if(v instanceof h)return v;{let X=new GD(v);return X._formatted=(A=v.external)!==null&&A!==void 0?A:null,X._fsPath=v._sep===A5e&&(F=v.fsPath)!==null&&F!==void 0?F:null,X}}else return v}},A5e=bM?1:void 0,GD=class extends VD{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=a0e(this,!1)),this._fsPath}toString(v=!1){return v?s0e(this,!0):(this._formatted||(this._formatted=s0e(this,!1)),this._formatted)}toJSON(){let v={$mid:1};return this._fsPath&&(v.fsPath=this._fsPath,v._sep=A5e),this._formatted&&(v.external=this._formatted),this.path&&(v.path=this.path),this.scheme&&(v.scheme=this.scheme),this.authority&&(v.authority=this.authority),this.query&&(v.query=this.query),this.fragment&&(v.fragment=this.fragment),v}},I5e={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function S5e(h,v,A){let F,X=-1;for(let _e=0;_e=97&&Te<=122||Te>=65&&Te<=90||Te>=48&&Te<=57||Te===45||Te===46||Te===95||Te===126||v&&Te===47||A&&Te===91||A&&Te===93||A&&Te===58)X!==-1&&(F+=encodeURIComponent(h.substring(X,_e)),X=-1),F!==void 0&&(F+=h.charAt(_e));else{F===void 0&&(F=h.substr(0,_e));let Be=I5e[Te];Be!==void 0?(X!==-1&&(F+=encodeURIComponent(h.substring(X,_e)),X=-1),F+=Be):X===-1&&(X=_e)}}return X!==-1&&(F+=encodeURIComponent(h.substring(X))),F!==void 0?F:h}function Byt(h){let v;for(let A=0;A1&&h.scheme==="file"?A=`//${h.authority}${h.path}`:h.path.charCodeAt(0)===47&&(h.path.charCodeAt(1)>=65&&h.path.charCodeAt(1)<=90||h.path.charCodeAt(1)>=97&&h.path.charCodeAt(1)<=122)&&h.path.charCodeAt(2)===58?v?A=h.path.substr(1):A=h.path[1].toLowerCase()+h.path.substr(2):A=h.path,bM&&(A=A.replace(/\//g,"\\")),A}function s0e(h,v){let A=v?Byt:S5e,F="",{scheme:X,authority:_e,path:Te,query:Be,fragment:nt}=h;if(X&&(F+=X,F+=":"),(_e||X==="file")&&(F+=$E,F+=$E),_e){let De=_e.indexOf("@");if(De!==-1){let Ke=_e.substr(0,De);_e=_e.substr(De+1),De=Ke.lastIndexOf(":"),De===-1?F+=A(Ke,!1,!1):(F+=A(Ke.substr(0,De),!1,!1),F+=":",F+=A(Ke.substr(De+1),!1,!0)),F+="@"}_e=_e.toLowerCase(),De=_e.lastIndexOf(":"),De===-1?F+=A(_e,!1,!0):(F+=A(_e.substr(0,De),!1,!0),F+=_e.substr(De))}if(Te){if(Te.length>=3&&Te.charCodeAt(0)===47&&Te.charCodeAt(2)===58){let De=Te.charCodeAt(1);De>=65&&De<=90&&(Te=`/${String.fromCharCode(De+32)}:${Te.substr(3)}`)}else if(Te.length>=2&&Te.charCodeAt(1)===58){let De=Te.charCodeAt(0);De>=65&&De<=90&&(Te=`${String.fromCharCode(De+32)}:${Te.substr(2)}`)}F+=A(Te,!0,!1)}return Be&&(F+="?",F+=A(Be,!1,!1)),nt&&(F+="#",F+=v?nt:S5e(nt,!1,!1)),F}function x5e(h){try{return decodeURIComponent(h)}catch{return h.length>3?h.substr(0,3)+x5e(h.substr(3)):h}}var T5e=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ote(h){return h.match(T5e)?h.replace(T5e,v=>x5e(v)):h}var vf=class h{constructor(v,A){this.lineNumber=v,this.column=A}with(v=this.lineNumber,A=this.column){return v===this.lineNumber&&A===this.column?this:new h(v,A)}delta(v=0,A=0){return this.with(this.lineNumber+v,this.column+A)}equals(v){return h.equals(this,v)}static equals(v,A){return!v&&!A?!0:!!v&&!!A&&v.lineNumber===A.lineNumber&&v.column===A.column}isBefore(v){return h.isBefore(this,v)}static isBefore(v,A){return v.lineNumberF||v===F&&A>X?(this.startLineNumber=F,this.startColumn=X,this.endLineNumber=v,this.endColumn=A):(this.startLineNumber=v,this.startColumn=A,this.endLineNumber=F,this.endColumn=X)}isEmpty(){return h.isEmpty(this)}static isEmpty(v){return v.startLineNumber===v.endLineNumber&&v.startColumn===v.endColumn}containsPosition(v){return h.containsPosition(this,v)}static containsPosition(v,A){return!(A.lineNumberv.endLineNumber||A.lineNumber===v.startLineNumber&&A.columnv.endColumn)}static strictContainsPosition(v,A){return!(A.lineNumberv.endLineNumber||A.lineNumber===v.startLineNumber&&A.column<=v.startColumn||A.lineNumber===v.endLineNumber&&A.column>=v.endColumn)}containsRange(v){return h.containsRange(this,v)}static containsRange(v,A){return!(A.startLineNumberv.endLineNumber||A.endLineNumber>v.endLineNumber||A.startLineNumber===v.startLineNumber&&A.startColumnv.endColumn)}strictContainsRange(v){return h.strictContainsRange(this,v)}static strictContainsRange(v,A){return!(A.startLineNumberv.endLineNumber||A.endLineNumber>v.endLineNumber||A.startLineNumber===v.startLineNumber&&A.startColumn<=v.startColumn||A.endLineNumber===v.endLineNumber&&A.endColumn>=v.endColumn)}plusRange(v){return h.plusRange(this,v)}static plusRange(v,A){let F,X,_e,Te;return A.startLineNumberv.endLineNumber?(_e=A.endLineNumber,Te=A.endColumn):A.endLineNumber===v.endLineNumber?(_e=A.endLineNumber,Te=Math.max(A.endColumn,v.endColumn)):(_e=v.endLineNumber,Te=v.endColumn),new h(F,X,_e,Te)}intersectRanges(v){return h.intersectRanges(this,v)}static intersectRanges(v,A){let F=v.startLineNumber,X=v.startColumn,_e=v.endLineNumber,Te=v.endColumn,Be=A.startLineNumber,nt=A.startColumn,De=A.endLineNumber,Ke=A.endColumn;return FDe?(_e=De,Te=Ke):_e===De&&(Te=Math.min(Te,Ke)),F>_e||F===_e&&X>Te?null:new h(F,X,_e,Te)}equalsRange(v){return h.equalsRange(this,v)}static equalsRange(v,A){return!v&&!A?!0:!!v&&!!A&&v.startLineNumber===A.startLineNumber&&v.startColumn===A.startColumn&&v.endLineNumber===A.endLineNumber&&v.endColumn===A.endColumn}getEndPosition(){return h.getEndPosition(this)}static getEndPosition(v){return new vf(v.endLineNumber,v.endColumn)}getStartPosition(){return h.getStartPosition(this)}static getStartPosition(v){return new vf(v.startLineNumber,v.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(v,A){return new h(this.startLineNumber,this.startColumn,v,A)}setStartPosition(v,A){return new h(v,A,this.endLineNumber,this.endColumn)}collapseToStart(){return h.collapseToStart(this)}static collapseToStart(v){return new h(v.startLineNumber,v.startColumn,v.startLineNumber,v.startColumn)}collapseToEnd(){return h.collapseToEnd(this)}static collapseToEnd(v){return new h(v.endLineNumber,v.endColumn,v.endLineNumber,v.endColumn)}delta(v){return new h(this.startLineNumber+v,this.startColumn,this.endLineNumber+v,this.endColumn)}static fromPositions(v,A=v){return new h(v.lineNumber,v.column,A.lineNumber,A.column)}static lift(v){return v?new h(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):null}static isIRange(v){return v&&typeof v.startLineNumber=="number"&&typeof v.startColumn=="number"&&typeof v.endLineNumber=="number"&&typeof v.endColumn=="number"}static areIntersectingOrTouching(v,A){return!(v.endLineNumberv.startLineNumber}toJSON(){return this}};function R5e(h,v,A=(F,X)=>F===X){if(h===v)return!0;if(!h||!v||h.length!==v.length)return!1;for(let F=0,X=h.length;F0}h.isGreaterThan=F;function X(_e){return _e===0}h.isNeitherLessOrGreaterThan=X,h.greaterThan=1,h.lessThan=-1,h.neitherLessOrGreaterThan=0})(l0e||(l0e={}));function WB(h,v){return(A,F)=>v(h(A),h(F))}var zB=(h,v)=>h-v;function M5e(h){return(v,A)=>-h(v,A)}var Fte=class h{constructor(v){this.iterate=v}toArray(){let v=[];return this.iterate(A=>(v.push(A),!0)),v}filter(v){return new h(A=>this.iterate(F=>v(F)?A(F):!0))}map(v){return new h(A=>this.iterate(F=>A(v(F))))}findLast(v){let A;return this.iterate(F=>(v(F)&&(A=F),!0)),A}findLastMaxBy(v){let A,F=!0;return this.iterate(X=>((F||l0e.isGreaterThan(v(X,A)))&&(F=!1,A=X),!0)),A}};Fte.empty=new Fte(h=>{});function c0e(h){return h<0?0:h>255?255:h|0}function SM(h){return h<0?0:h>4294967295?4294967295:h|0}var Wte=class{constructor(v){this.values=v,this.prefixSum=new Uint32Array(v.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(v,A){v=SM(v);let F=this.values,X=this.prefixSum,_e=A.length;return _e===0?!1:(this.values=new Uint32Array(F.length+_e),this.values.set(F.subarray(0,v),0),this.values.set(F.subarray(v),v+_e),this.values.set(A,v),v-1=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(v,A){return v=SM(v),A=SM(A),this.values[v]===A?!1:(this.values[v]=A,v-1=F.length)return!1;let _e=F.length-v;return A>=_e&&(A=_e),A===0?!1:(this.values=new Uint32Array(F.length-A),this.values.set(F.subarray(0,v),0),this.values.set(F.subarray(v+A),v),this.prefixSum=new Uint32Array(this.values.length),v-1=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(v){return v<0?0:(v=SM(v),this._getPrefixSum(v))}_getPrefixSum(v){if(v<=this.prefixSumValidIndex[0])return this.prefixSum[v];let A=this.prefixSumValidIndex[0]+1;A===0&&(this.prefixSum[0]=this.values[0],A++),v>=this.values.length&&(v=this.values.length-1);for(let F=A;F<=v;F++)this.prefixSum[F]=this.prefixSum[F-1]+this.values[F];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],v),this.prefixSum[v]}getIndexOf(v){v=Math.floor(v),this.getTotalSum();let A=0,F=this.values.length-1,X=0,_e=0,Te=0;for(;A<=F;)if(X=A+(F-A)/2|0,_e=this.prefixSum[X],Te=_e-this.values[X],v=_e)A=X+1;else break;return new u0e(X,v-Te)}};var u0e=class{constructor(v,A){this.index=v,this.remainder=A,this._prefixSumIndexOfResultBrand=void 0,this.index=v,this.remainder=A}};var zte=class{constructor(v,A,F,X){this._uri=v,this._lines=A,this._eol=F,this._versionId=X,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(v){v.eol&&v.eol!==this._eol&&(this._eol=v.eol,this._lineStarts=null);let A=v.changes;for(let F of A)this._acceptDeleteRange(F.range),this._acceptInsertText(new vf(F.range.startLineNumber,F.range.startColumn),F.text);this._versionId=v.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let v=this._eol.length,A=this._lines.length,F=new Uint32Array(A);for(let X=0;X/?";function Vyt(h=""){let v="(-?\\d*\\.\\d\\w*)|([^";for(let A of Gyt)h.indexOf(A)>=0||(v+="\\"+A);return v+="\\s]+)",new RegExp(v,"g")}var d0e=Vyt();function p0e(h){let v=d0e;if(h&&h instanceof RegExp)if(h.global)v=h;else{let A="g";h.ignoreCase&&(A+="i"),h.multiline&&(A+="m"),h.unicode&&(A+="u"),v=new RegExp(h.source,A)}return v.lastIndex=0,v}var L5e=new DB;L5e.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function BB(h,v,A,F,X){if(v=p0e(v),X||(X=s8.first(L5e)),A.length>X.maxLen){let De=h-X.maxLen/2;return De<0?De=0:F+=De,A=A.substring(De,h+X.maxLen/2),BB(h,v,A,F,X)}let _e=Date.now(),Te=h-1-F,Be=-1,nt=null;for(let De=1;!(Date.now()-_e>=X.timeBudget);De++){let Ke=Te-X.windowSize*De;v.lastIndex=Math.max(0,Ke);let Gt=jyt(v,A,Te,Be);if(!Gt&&nt||(nt=Gt,Ke<=0))break;Be=Ke}if(nt){let De={word:nt[0],startColumn:F+1+nt.index,endColumn:F+1+nt.index+nt[0].length};return v.lastIndex=0,De}return null}function jyt(h,v,A,F){let X;for(;X=h.exec(v);){let _e=X.index||0;if(_e<=A&&h.lastIndex>=A)return X;if(F>0&&_e>F)return null}return null}var GB=class h{constructor(v){let A=c0e(v);this._defaultValue=A,this._asciiMap=h._createAsciiMap(A),this._map=new Map}static _createAsciiMap(v){let A=new Uint8Array(256);return A.fill(v),A}set(v,A){let F=c0e(A);v>=0&&v<256?this._asciiMap[v]=F:this._map.set(v,F)}get(v){return v>=0&&v<256?this._asciiMap[v]:this._map.get(v)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}};var m0e=class{constructor(v,A,F){let X=new Uint8Array(v*A);for(let _e=0,Te=v*A;_eA&&(A=nt),Be>F&&(F=Be),De>F&&(F=De)}A++,F++;let X=new m0e(F,A,0);for(let _e=0,Te=v.length;_e=this._maxCharCode?0:this._states.get(v,A)}},f0e=null;function Uyt(){return f0e===null&&(f0e=new _0e([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),f0e}var VB=null;function Hyt(){if(VB===null){VB=new GB(0);let h=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let A=0;AX);if(X>0){let Be=A.charCodeAt(X-1),nt=A.charCodeAt(Te);(Be===40&&nt===41||Be===91&&nt===93||Be===123&&nt===125)&&Te--}return{range:{startLineNumber:F,startColumn:X+1,endLineNumber:F,endColumn:Te+2},url:A.substring(X,Te+1)}}static computeLinks(v,A=Uyt()){let F=Hyt(),X=[];for(let _e=1,Te=v.getLineCount();_e<=Te;_e++){let Be=v.getLineContent(_e),nt=Be.length,De=0,Ke=0,Gt=0,Zt=1,ir=!1,Ar=!1,Un=!1,Qi=!1;for(;De=0?(X+=F?1:-1,X<0?X=v.length-1:X%=v.length,v[X]):null}};_8.INSTANCE=new _8;var w5e=Object.freeze(function(h,v){let A=setTimeout(h.bind(v),0);return{dispose(){clearTimeout(A)}}}),Bte;(function(h){function v(A){return A===h.None||A===h.Cancelled||A instanceof h8?!0:!A||typeof A!="object"?!1:typeof A.isCancellationRequested=="boolean"&&typeof A.onCancellationRequested=="function"}h.isCancellationToken=v,h.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Tte.None}),h.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:w5e})})(Bte||(Bte={}));var h8=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?w5e:(this._emitter||(this._emitter=new Hh),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Gte=class{constructor(v){this._token=void 0,this._parentListener=void 0,this._parentListener=v&&v.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new h8),this._token}cancel(){this._token?this._token instanceof h8&&this._token.cancel():this._token=Bte.Cancelled}dispose(v=!1){var A;v&&this.cancel(),(A=this._parentListener)===null||A===void 0||A.dispose(),this._token?this._token instanceof h8&&this._token.dispose():this._token=Bte.None}};var jB=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(v,A){this._keyCodeToStr[v]=A,this._strToKeyCode[A.toLowerCase()]=v}keyCodeToStr(v){return this._keyCodeToStr[v]}strToKeyCode(v){return this._strToKeyCode[v.toLowerCase()]||0}},Vte=new jB,g0e=new jB,v0e=new jB,qyt=new Array(230),Jyt={},Kyt=[],Xyt=Object.create(null),Yyt=Object.create(null),F5e=[],y0e=[];for(let h=0;h<=193;h++)F5e[h]=-1;for(let h=0;h<=132;h++)y0e[h]=-1;(function(){let h="",v=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",h,h],[1,1,"Hyper",0,h,0,h,h,h],[1,2,"Super",0,h,0,h,h,h],[1,3,"Fn",0,h,0,h,h,h],[1,4,"FnLock",0,h,0,h,h,h],[1,5,"Suspend",0,h,0,h,h,h],[1,6,"Resume",0,h,0,h,h,h],[1,7,"Turbo",0,h,0,h,h,h],[1,8,"Sleep",0,h,0,"VK_SLEEP",h,h],[1,9,"WakeUp",0,h,0,h,h,h],[0,10,"KeyA",31,"A",65,"VK_A",h,h],[0,11,"KeyB",32,"B",66,"VK_B",h,h],[0,12,"KeyC",33,"C",67,"VK_C",h,h],[0,13,"KeyD",34,"D",68,"VK_D",h,h],[0,14,"KeyE",35,"E",69,"VK_E",h,h],[0,15,"KeyF",36,"F",70,"VK_F",h,h],[0,16,"KeyG",37,"G",71,"VK_G",h,h],[0,17,"KeyH",38,"H",72,"VK_H",h,h],[0,18,"KeyI",39,"I",73,"VK_I",h,h],[0,19,"KeyJ",40,"J",74,"VK_J",h,h],[0,20,"KeyK",41,"K",75,"VK_K",h,h],[0,21,"KeyL",42,"L",76,"VK_L",h,h],[0,22,"KeyM",43,"M",77,"VK_M",h,h],[0,23,"KeyN",44,"N",78,"VK_N",h,h],[0,24,"KeyO",45,"O",79,"VK_O",h,h],[0,25,"KeyP",46,"P",80,"VK_P",h,h],[0,26,"KeyQ",47,"Q",81,"VK_Q",h,h],[0,27,"KeyR",48,"R",82,"VK_R",h,h],[0,28,"KeyS",49,"S",83,"VK_S",h,h],[0,29,"KeyT",50,"T",84,"VK_T",h,h],[0,30,"KeyU",51,"U",85,"VK_U",h,h],[0,31,"KeyV",52,"V",86,"VK_V",h,h],[0,32,"KeyW",53,"W",87,"VK_W",h,h],[0,33,"KeyX",54,"X",88,"VK_X",h,h],[0,34,"KeyY",55,"Y",89,"VK_Y",h,h],[0,35,"KeyZ",56,"Z",90,"VK_Z",h,h],[0,36,"Digit1",22,"1",49,"VK_1",h,h],[0,37,"Digit2",23,"2",50,"VK_2",h,h],[0,38,"Digit3",24,"3",51,"VK_3",h,h],[0,39,"Digit4",25,"4",52,"VK_4",h,h],[0,40,"Digit5",26,"5",53,"VK_5",h,h],[0,41,"Digit6",27,"6",54,"VK_6",h,h],[0,42,"Digit7",28,"7",55,"VK_7",h,h],[0,43,"Digit8",29,"8",56,"VK_8",h,h],[0,44,"Digit9",30,"9",57,"VK_9",h,h],[0,45,"Digit0",21,"0",48,"VK_0",h,h],[1,46,"Enter",3,"Enter",13,"VK_RETURN",h,h],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",h,h],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",h,h],[1,49,"Tab",2,"Tab",9,"VK_TAB",h,h],[1,50,"Space",10,"Space",32,"VK_SPACE",h,h],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,h,0,h,h,h],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",h,h],[1,64,"F1",59,"F1",112,"VK_F1",h,h],[1,65,"F2",60,"F2",113,"VK_F2",h,h],[1,66,"F3",61,"F3",114,"VK_F3",h,h],[1,67,"F4",62,"F4",115,"VK_F4",h,h],[1,68,"F5",63,"F5",116,"VK_F5",h,h],[1,69,"F6",64,"F6",117,"VK_F6",h,h],[1,70,"F7",65,"F7",118,"VK_F7",h,h],[1,71,"F8",66,"F8",119,"VK_F8",h,h],[1,72,"F9",67,"F9",120,"VK_F9",h,h],[1,73,"F10",68,"F10",121,"VK_F10",h,h],[1,74,"F11",69,"F11",122,"VK_F11",h,h],[1,75,"F12",70,"F12",123,"VK_F12",h,h],[1,76,"PrintScreen",0,h,0,h,h,h],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",h,h],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",h,h],[1,79,"Insert",19,"Insert",45,"VK_INSERT",h,h],[1,80,"Home",14,"Home",36,"VK_HOME",h,h],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",h,h],[1,82,"Delete",20,"Delete",46,"VK_DELETE",h,h],[1,83,"End",13,"End",35,"VK_END",h,h],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",h,h],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",h],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",h],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",h],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",h],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",h,h],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",h,h],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",h,h],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",h,h],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",h,h],[1,94,"NumpadEnter",3,h,0,h,h,h],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",h,h],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",h,h],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",h,h],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",h,h],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",h,h],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",h,h],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",h,h],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",h,h],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",h,h],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",h,h],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",h,h],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",h,h],[1,107,"ContextMenu",58,"ContextMenu",93,h,h,h],[1,108,"Power",0,h,0,h,h,h],[1,109,"NumpadEqual",0,h,0,h,h,h],[1,110,"F13",71,"F13",124,"VK_F13",h,h],[1,111,"F14",72,"F14",125,"VK_F14",h,h],[1,112,"F15",73,"F15",126,"VK_F15",h,h],[1,113,"F16",74,"F16",127,"VK_F16",h,h],[1,114,"F17",75,"F17",128,"VK_F17",h,h],[1,115,"F18",76,"F18",129,"VK_F18",h,h],[1,116,"F19",77,"F19",130,"VK_F19",h,h],[1,117,"F20",78,"F20",131,"VK_F20",h,h],[1,118,"F21",79,"F21",132,"VK_F21",h,h],[1,119,"F22",80,"F22",133,"VK_F22",h,h],[1,120,"F23",81,"F23",134,"VK_F23",h,h],[1,121,"F24",82,"F24",135,"VK_F24",h,h],[1,122,"Open",0,h,0,h,h,h],[1,123,"Help",0,h,0,h,h,h],[1,124,"Select",0,h,0,h,h,h],[1,125,"Again",0,h,0,h,h,h],[1,126,"Undo",0,h,0,h,h,h],[1,127,"Cut",0,h,0,h,h,h],[1,128,"Copy",0,h,0,h,h,h],[1,129,"Paste",0,h,0,h,h,h],[1,130,"Find",0,h,0,h,h,h],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",h,h],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",h,h],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",h,h],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",h,h],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",h,h],[1,136,"KanaMode",0,h,0,h,h,h],[0,137,"IntlYen",0,h,0,h,h,h],[1,138,"Convert",0,h,0,h,h,h],[1,139,"NonConvert",0,h,0,h,h,h],[1,140,"Lang1",0,h,0,h,h,h],[1,141,"Lang2",0,h,0,h,h,h],[1,142,"Lang3",0,h,0,h,h,h],[1,143,"Lang4",0,h,0,h,h,h],[1,144,"Lang5",0,h,0,h,h,h],[1,145,"Abort",0,h,0,h,h,h],[1,146,"Props",0,h,0,h,h,h],[1,147,"NumpadParenLeft",0,h,0,h,h,h],[1,148,"NumpadParenRight",0,h,0,h,h,h],[1,149,"NumpadBackspace",0,h,0,h,h,h],[1,150,"NumpadMemoryStore",0,h,0,h,h,h],[1,151,"NumpadMemoryRecall",0,h,0,h,h,h],[1,152,"NumpadMemoryClear",0,h,0,h,h,h],[1,153,"NumpadMemoryAdd",0,h,0,h,h,h],[1,154,"NumpadMemorySubtract",0,h,0,h,h,h],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",h,h],[1,156,"NumpadClearEntry",0,h,0,h,h,h],[1,0,h,5,"Ctrl",17,"VK_CONTROL",h,h],[1,0,h,4,"Shift",16,"VK_SHIFT",h,h],[1,0,h,6,"Alt",18,"VK_MENU",h,h],[1,0,h,57,"Meta",91,"VK_COMMAND",h,h],[1,157,"ControlLeft",5,h,0,"VK_LCONTROL",h,h],[1,158,"ShiftLeft",4,h,0,"VK_LSHIFT",h,h],[1,159,"AltLeft",6,h,0,"VK_LMENU",h,h],[1,160,"MetaLeft",57,h,0,"VK_LWIN",h,h],[1,161,"ControlRight",5,h,0,"VK_RCONTROL",h,h],[1,162,"ShiftRight",4,h,0,"VK_RSHIFT",h,h],[1,163,"AltRight",6,h,0,"VK_RMENU",h,h],[1,164,"MetaRight",57,h,0,"VK_RWIN",h,h],[1,165,"BrightnessUp",0,h,0,h,h,h],[1,166,"BrightnessDown",0,h,0,h,h,h],[1,167,"MediaPlay",0,h,0,h,h,h],[1,168,"MediaRecord",0,h,0,h,h,h],[1,169,"MediaFastForward",0,h,0,h,h,h],[1,170,"MediaRewind",0,h,0,h,h,h],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",h,h],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",h,h],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",h,h],[1,174,"Eject",0,h,0,h,h,h],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",h,h],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",h,h],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",h,h],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",h,h],[1,179,"LaunchApp1",0,h,0,"VK_MEDIA_LAUNCH_APP1",h,h],[1,180,"SelectTask",0,h,0,h,h,h],[1,181,"LaunchScreenSaver",0,h,0,h,h,h],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",h,h],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",h,h],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",h,h],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",h,h],[1,186,"BrowserStop",0,h,0,"VK_BROWSER_STOP",h,h],[1,187,"BrowserRefresh",0,h,0,"VK_BROWSER_REFRESH",h,h],[1,188,"BrowserFavorites",0,h,0,"VK_BROWSER_FAVORITES",h,h],[1,189,"ZoomToggle",0,h,0,h,h,h],[1,190,"MailReply",0,h,0,h,h,h],[1,191,"MailForward",0,h,0,h,h,h],[1,192,"MailSend",0,h,0,h,h,h],[1,0,h,114,"KeyInComposition",229,h,h,h],[1,0,h,116,"ABNT_C2",194,"VK_ABNT_C2",h,h],[1,0,h,96,"OEM_8",223,"VK_OEM_8",h,h],[1,0,h,0,h,0,"VK_KANA",h,h],[1,0,h,0,h,0,"VK_HANGUL",h,h],[1,0,h,0,h,0,"VK_JUNJA",h,h],[1,0,h,0,h,0,"VK_FINAL",h,h],[1,0,h,0,h,0,"VK_HANJA",h,h],[1,0,h,0,h,0,"VK_KANJI",h,h],[1,0,h,0,h,0,"VK_CONVERT",h,h],[1,0,h,0,h,0,"VK_NONCONVERT",h,h],[1,0,h,0,h,0,"VK_ACCEPT",h,h],[1,0,h,0,h,0,"VK_MODECHANGE",h,h],[1,0,h,0,h,0,"VK_SELECT",h,h],[1,0,h,0,h,0,"VK_PRINT",h,h],[1,0,h,0,h,0,"VK_EXECUTE",h,h],[1,0,h,0,h,0,"VK_SNAPSHOT",h,h],[1,0,h,0,h,0,"VK_HELP",h,h],[1,0,h,0,h,0,"VK_APPS",h,h],[1,0,h,0,h,0,"VK_PROCESSKEY",h,h],[1,0,h,0,h,0,"VK_PACKET",h,h],[1,0,h,0,h,0,"VK_DBE_SBCSCHAR",h,h],[1,0,h,0,h,0,"VK_DBE_DBCSCHAR",h,h],[1,0,h,0,h,0,"VK_ATTN",h,h],[1,0,h,0,h,0,"VK_CRSEL",h,h],[1,0,h,0,h,0,"VK_EXSEL",h,h],[1,0,h,0,h,0,"VK_EREOF",h,h],[1,0,h,0,h,0,"VK_PLAY",h,h],[1,0,h,0,h,0,"VK_ZOOM",h,h],[1,0,h,0,h,0,"VK_NONAME",h,h],[1,0,h,0,h,0,"VK_PA1",h,h],[1,0,h,0,h,0,"VK_OEM_CLEAR",h,h]],A=[],F=[];for(let X of v){let[_e,Te,Be,nt,De,Ke,Gt,Zt,ir]=X;if(F[Te]||(F[Te]=!0,Kyt[Te]=Be,Xyt[Be]=Te,Yyt[Be.toLowerCase()]=Te,_e&&(F5e[Te]=nt,nt!==0&&nt!==3&&nt!==5&&nt!==4&&nt!==6&&nt!==57&&(y0e[nt]=Te))),!A[nt]){if(A[nt]=!0,!De)throw new Error(`String representation missing for key code ${nt} around scan code ${Be}`);Vte.define(nt,De),g0e.define(nt,Zt||De),v0e.define(nt,ir||Zt||De)}Ke&&(qyt[Ke]=nt),Gt&&(Jyt[Gt]=nt)}y0e[3]=46})();var O5e;(function(h){function v(Be){return Vte.keyCodeToStr(Be)}h.toString=v;function A(Be){return Vte.strToKeyCode(Be)}h.fromString=A;function F(Be){return g0e.keyCodeToStr(Be)}h.toUserSettingsUS=F;function X(Be){return v0e.keyCodeToStr(Be)}h.toUserSettingsGeneral=X;function _e(Be){return g0e.strToKeyCode(Be)||v0e.strToKeyCode(Be)}h.fromUserSettings=_e;function Te(Be){if(Be>=98&&Be<=113)return null;switch(Be){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Vte.keyCodeToStr(Be)}h.toElectronAccelerator=Te})(O5e||(O5e={}));function W5e(h,v){let A=(v&65535)<<16>>>0;return(h|A)>>>0}var jte=class h extends tc{constructor(v,A,F,X){super(v,A,F,X),this.selectionStartLineNumber=v,this.selectionStartColumn=A,this.positionLineNumber=F,this.positionColumn=X}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(v){return h.selectionsEqual(this,v)}static selectionsEqual(v,A){return v.selectionStartLineNumber===A.selectionStartLineNumber&&v.selectionStartColumn===A.selectionStartColumn&&v.positionLineNumber===A.positionLineNumber&&v.positionColumn===A.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(v,A){return this.getDirection()===0?new h(this.startLineNumber,this.startColumn,v,A):new h(v,A,this.startLineNumber,this.startColumn)}getPosition(){return new vf(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new vf(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(v,A){return this.getDirection()===0?new h(v,A,this.endLineNumber,this.endColumn):new h(this.endLineNumber,this.endColumn,v,A)}static fromPositions(v,A=v){return new h(v.lineNumber,v.column,A.lineNumber,A.column)}static fromRange(v,A){return A===0?new h(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):new h(v.endLineNumber,v.endColumn,v.startLineNumber,v.startColumn)}static liftSelection(v){return new h(v.selectionStartLineNumber,v.selectionStartColumn,v.positionLineNumber,v.positionColumn)}static selectionsArrEqual(v,A){if(v&&!A||!v&&A)return!1;if(!v&&!A)return!0;if(v.length!==A.length)return!1;for(let F=0,X=v.length;F{this._tokenizationSupports.get(v)===A&&(this._tokenizationSupports.delete(v),this.handleChange([v]))})}get(v){return this._tokenizationSupports.get(v)||null}registerFactory(v,A){var F;(F=this._factories.get(v))===null||F===void 0||F.dispose();let X=new b0e(this,v,A);return this._factories.set(v,X),l8(()=>{let _e=this._factories.get(v);!_e||_e!==X||(this._factories.delete(v),_e.dispose())})}async getOrCreate(v){let A=this.get(v);if(A)return A;let F=this._factories.get(v);return!F||F.isResolved?null:(await F.resolve(),this.get(v))}isResolved(v){if(this.get(v))return!0;let F=this._factories.get(v);return!!(!F||F.isResolved)}setColorMap(v){this._colorMap=v,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},b0e=class extends _1{get isResolved(){return this._isResolved}constructor(v,A,F){super(),this._registry=v,this._languageId=A,this._factory=F,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){let v=await this._factory.tokenizationSupport;this._isResolved=!0,v&&!this._isDisposed&&this._register(this._registry.register(this._languageId,v))}};var Hte=class{constructor(v,A,F){this.offset=v,this.type=A,this.language=F,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var G5e;(function(h){h[h.Increase=0]="Increase",h[h.Decrease=1]="Decrease"})(G5e||(G5e={}));var V5e;(function(h){let v=new Map;v.set(0,gs.symbolMethod),v.set(1,gs.symbolFunction),v.set(2,gs.symbolConstructor),v.set(3,gs.symbolField),v.set(4,gs.symbolVariable),v.set(5,gs.symbolClass),v.set(6,gs.symbolStruct),v.set(7,gs.symbolInterface),v.set(8,gs.symbolModule),v.set(9,gs.symbolProperty),v.set(10,gs.symbolEvent),v.set(11,gs.symbolOperator),v.set(12,gs.symbolUnit),v.set(13,gs.symbolValue),v.set(15,gs.symbolEnum),v.set(14,gs.symbolConstant),v.set(15,gs.symbolEnum),v.set(16,gs.symbolEnumMember),v.set(17,gs.symbolKeyword),v.set(27,gs.symbolSnippet),v.set(18,gs.symbolText),v.set(19,gs.symbolColor),v.set(20,gs.symbolFile),v.set(21,gs.symbolReference),v.set(22,gs.symbolCustomColor),v.set(23,gs.symbolFolder),v.set(24,gs.symbolTypeParameter),v.set(25,gs.account),v.set(26,gs.issues);function A(_e){let Te=v.get(_e);return Te||(console.info("No codicon found for CompletionItemKind "+_e),Te=gs.symbolProperty),Te}h.toIcon=A;let F=new Map;F.set("method",0),F.set("function",1),F.set("constructor",2),F.set("field",3),F.set("variable",4),F.set("class",5),F.set("struct",6),F.set("interface",7),F.set("module",8),F.set("property",9),F.set("event",10),F.set("operator",11),F.set("unit",12),F.set("value",13),F.set("constant",14),F.set("enum",15),F.set("enum-member",16),F.set("enumMember",16),F.set("keyword",17),F.set("snippet",27),F.set("text",18),F.set("color",19),F.set("file",20),F.set("reference",21),F.set("customcolor",22),F.set("folder",23),F.set("type-parameter",24),F.set("typeParameter",24),F.set("account",25),F.set("issue",26);function X(_e,Te){let Be=F.get(_e);return typeof Be>"u"&&!Te&&(Be=9),Be}h.fromString=X})(V5e||(V5e={}));var j5e;(function(h){h[h.Automatic=0]="Automatic",h[h.Explicit=1]="Explicit"})(j5e||(j5e={}));var U5e;(function(h){h[h.Automatic=0]="Automatic",h[h.PasteAs=1]="PasteAs"})(U5e||(U5e={}));var H5e;(function(h){h[h.Invoke=1]="Invoke",h[h.TriggerCharacter=2]="TriggerCharacter",h[h.ContentChange=3]="ContentChange"})(H5e||(H5e={}));var q5e;(function(h){h[h.Text=0]="Text",h[h.Read=1]="Read",h[h.Write=2]="Write"})(q5e||(q5e={}));var E1t={17:bd("Array","array"),16:bd("Boolean","boolean"),4:bd("Class","class"),13:bd("Constant","constant"),8:bd("Constructor","constructor"),9:bd("Enum","enumeration"),21:bd("EnumMember","enumeration member"),23:bd("Event","event"),7:bd("Field","field"),0:bd("File","file"),11:bd("Function","function"),10:bd("Interface","interface"),19:bd("Key","key"),5:bd("Method","method"),1:bd("Module","module"),2:bd("Namespace","namespace"),20:bd("Null","null"),15:bd("Number","number"),18:bd("Object","object"),24:bd("Operator","operator"),3:bd("Package","package"),6:bd("Property","property"),14:bd("String","string"),22:bd("Struct","struct"),25:bd("TypeParameter","type parameter"),12:bd("Variable","variable")};var J5e;(function(h){let v=new Map;v.set(0,gs.symbolFile),v.set(1,gs.symbolModule),v.set(2,gs.symbolNamespace),v.set(3,gs.symbolPackage),v.set(4,gs.symbolClass),v.set(5,gs.symbolMethod),v.set(6,gs.symbolProperty),v.set(7,gs.symbolField),v.set(8,gs.symbolConstructor),v.set(9,gs.symbolEnum),v.set(10,gs.symbolInterface),v.set(11,gs.symbolFunction),v.set(12,gs.symbolVariable),v.set(13,gs.symbolConstant),v.set(14,gs.symbolString),v.set(15,gs.symbolNumber),v.set(16,gs.symbolBoolean),v.set(17,gs.symbolArray),v.set(18,gs.symbolObject),v.set(19,gs.symbolKey),v.set(20,gs.symbolNull),v.set(21,gs.symbolEnumMember),v.set(22,gs.symbolStruct),v.set(23,gs.symbolEvent),v.set(24,gs.symbolOperator),v.set(25,gs.symbolTypeParameter);function A(F){let X=v.get(F);return X||(console.info("No codicon found for SymbolKind "+F),X=gs.symbolProperty),X}h.toIcon=A})(J5e||(J5e={}));var jD=class h{static fromValue(v){switch(v){case"comment":return h.Comment;case"imports":return h.Imports;case"region":return h.Region}return new h(v)}constructor(v){this.value=v}};jD.Comment=new jD("comment");jD.Imports=new jD("imports");jD.Region=new jD("region");var K5e;(function(h){h[h.AIGenerated=1]="AIGenerated"})(K5e||(K5e={}));var X5e;(function(h){h[h.Invoke=0]="Invoke",h[h.Automatic=1]="Automatic"})(X5e||(X5e={}));var Y5e;(function(h){function v(A){return!A||typeof A!="object"?!1:typeof A.id=="string"&&typeof A.title=="string"}h.is=v})(Y5e||(Y5e={}));var $5e;(function(h){h[h.Type=1]="Type",h[h.Parameter=2]="Parameter"})($5e||($5e={}));var S1t=new Ute,Q5e;(function(h){h[h.Invoke=0]="Invoke",h[h.Automatic=1]="Automatic"})(Q5e||(Q5e={}));var Z5e;(function(h){h[h.Unknown=0]="Unknown",h[h.Disabled=1]="Disabled",h[h.Enabled=2]="Enabled"})(Z5e||(Z5e={}));var eFe;(function(h){h[h.Invoke=1]="Invoke",h[h.Auto=2]="Auto"})(eFe||(eFe={}));var tFe;(function(h){h[h.None=0]="None",h[h.KeepWhitespace=1]="KeepWhitespace",h[h.InsertAsSnippet=4]="InsertAsSnippet"})(tFe||(tFe={}));var nFe;(function(h){h[h.Method=0]="Method",h[h.Function=1]="Function",h[h.Constructor=2]="Constructor",h[h.Field=3]="Field",h[h.Variable=4]="Variable",h[h.Class=5]="Class",h[h.Struct=6]="Struct",h[h.Interface=7]="Interface",h[h.Module=8]="Module",h[h.Property=9]="Property",h[h.Event=10]="Event",h[h.Operator=11]="Operator",h[h.Unit=12]="Unit",h[h.Value=13]="Value",h[h.Constant=14]="Constant",h[h.Enum=15]="Enum",h[h.EnumMember=16]="EnumMember",h[h.Keyword=17]="Keyword",h[h.Text=18]="Text",h[h.Color=19]="Color",h[h.File=20]="File",h[h.Reference=21]="Reference",h[h.Customcolor=22]="Customcolor",h[h.Folder=23]="Folder",h[h.TypeParameter=24]="TypeParameter",h[h.User=25]="User",h[h.Issue=26]="Issue",h[h.Snippet=27]="Snippet"})(nFe||(nFe={}));var rFe;(function(h){h[h.Deprecated=1]="Deprecated"})(rFe||(rFe={}));var iFe;(function(h){h[h.Invoke=0]="Invoke",h[h.TriggerCharacter=1]="TriggerCharacter",h[h.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(iFe||(iFe={}));var oFe;(function(h){h[h.EXACT=0]="EXACT",h[h.ABOVE=1]="ABOVE",h[h.BELOW=2]="BELOW"})(oFe||(oFe={}));var aFe;(function(h){h[h.NotSet=0]="NotSet",h[h.ContentFlush=1]="ContentFlush",h[h.RecoverFromMarkers=2]="RecoverFromMarkers",h[h.Explicit=3]="Explicit",h[h.Paste=4]="Paste",h[h.Undo=5]="Undo",h[h.Redo=6]="Redo"})(aFe||(aFe={}));var sFe;(function(h){h[h.LF=1]="LF",h[h.CRLF=2]="CRLF"})(sFe||(sFe={}));var lFe;(function(h){h[h.Text=0]="Text",h[h.Read=1]="Read",h[h.Write=2]="Write"})(lFe||(lFe={}));var cFe;(function(h){h[h.None=0]="None",h[h.Keep=1]="Keep",h[h.Brackets=2]="Brackets",h[h.Advanced=3]="Advanced",h[h.Full=4]="Full"})(cFe||(cFe={}));var uFe;(function(h){h[h.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",h[h.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",h[h.accessibilitySupport=2]="accessibilitySupport",h[h.accessibilityPageSize=3]="accessibilityPageSize",h[h.ariaLabel=4]="ariaLabel",h[h.ariaRequired=5]="ariaRequired",h[h.autoClosingBrackets=6]="autoClosingBrackets",h[h.autoClosingComments=7]="autoClosingComments",h[h.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",h[h.autoClosingDelete=9]="autoClosingDelete",h[h.autoClosingOvertype=10]="autoClosingOvertype",h[h.autoClosingQuotes=11]="autoClosingQuotes",h[h.autoIndent=12]="autoIndent",h[h.automaticLayout=13]="automaticLayout",h[h.autoSurround=14]="autoSurround",h[h.bracketPairColorization=15]="bracketPairColorization",h[h.guides=16]="guides",h[h.codeLens=17]="codeLens",h[h.codeLensFontFamily=18]="codeLensFontFamily",h[h.codeLensFontSize=19]="codeLensFontSize",h[h.colorDecorators=20]="colorDecorators",h[h.colorDecoratorsLimit=21]="colorDecoratorsLimit",h[h.columnSelection=22]="columnSelection",h[h.comments=23]="comments",h[h.contextmenu=24]="contextmenu",h[h.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",h[h.cursorBlinking=26]="cursorBlinking",h[h.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",h[h.cursorStyle=28]="cursorStyle",h[h.cursorSurroundingLines=29]="cursorSurroundingLines",h[h.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",h[h.cursorWidth=31]="cursorWidth",h[h.disableLayerHinting=32]="disableLayerHinting",h[h.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",h[h.domReadOnly=34]="domReadOnly",h[h.dragAndDrop=35]="dragAndDrop",h[h.dropIntoEditor=36]="dropIntoEditor",h[h.emptySelectionClipboard=37]="emptySelectionClipboard",h[h.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",h[h.extraEditorClassName=39]="extraEditorClassName",h[h.fastScrollSensitivity=40]="fastScrollSensitivity",h[h.find=41]="find",h[h.fixedOverflowWidgets=42]="fixedOverflowWidgets",h[h.folding=43]="folding",h[h.foldingStrategy=44]="foldingStrategy",h[h.foldingHighlight=45]="foldingHighlight",h[h.foldingImportsByDefault=46]="foldingImportsByDefault",h[h.foldingMaximumRegions=47]="foldingMaximumRegions",h[h.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",h[h.fontFamily=49]="fontFamily",h[h.fontInfo=50]="fontInfo",h[h.fontLigatures=51]="fontLigatures",h[h.fontSize=52]="fontSize",h[h.fontWeight=53]="fontWeight",h[h.fontVariations=54]="fontVariations",h[h.formatOnPaste=55]="formatOnPaste",h[h.formatOnType=56]="formatOnType",h[h.glyphMargin=57]="glyphMargin",h[h.gotoLocation=58]="gotoLocation",h[h.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",h[h.hover=60]="hover",h[h.inDiffEditor=61]="inDiffEditor",h[h.inlineSuggest=62]="inlineSuggest",h[h.inlineEdit=63]="inlineEdit",h[h.letterSpacing=64]="letterSpacing",h[h.lightbulb=65]="lightbulb",h[h.lineDecorationsWidth=66]="lineDecorationsWidth",h[h.lineHeight=67]="lineHeight",h[h.lineNumbers=68]="lineNumbers",h[h.lineNumbersMinChars=69]="lineNumbersMinChars",h[h.linkedEditing=70]="linkedEditing",h[h.links=71]="links",h[h.matchBrackets=72]="matchBrackets",h[h.minimap=73]="minimap",h[h.mouseStyle=74]="mouseStyle",h[h.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",h[h.mouseWheelZoom=76]="mouseWheelZoom",h[h.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",h[h.multiCursorModifier=78]="multiCursorModifier",h[h.multiCursorPaste=79]="multiCursorPaste",h[h.multiCursorLimit=80]="multiCursorLimit",h[h.occurrencesHighlight=81]="occurrencesHighlight",h[h.overviewRulerBorder=82]="overviewRulerBorder",h[h.overviewRulerLanes=83]="overviewRulerLanes",h[h.padding=84]="padding",h[h.pasteAs=85]="pasteAs",h[h.parameterHints=86]="parameterHints",h[h.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",h[h.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",h[h.quickSuggestions=89]="quickSuggestions",h[h.quickSuggestionsDelay=90]="quickSuggestionsDelay",h[h.readOnly=91]="readOnly",h[h.readOnlyMessage=92]="readOnlyMessage",h[h.renameOnType=93]="renameOnType",h[h.renderControlCharacters=94]="renderControlCharacters",h[h.renderFinalNewline=95]="renderFinalNewline",h[h.renderLineHighlight=96]="renderLineHighlight",h[h.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",h[h.renderValidationDecorations=98]="renderValidationDecorations",h[h.renderWhitespace=99]="renderWhitespace",h[h.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",h[h.roundedSelection=101]="roundedSelection",h[h.rulers=102]="rulers",h[h.scrollbar=103]="scrollbar",h[h.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",h[h.scrollBeyondLastLine=105]="scrollBeyondLastLine",h[h.scrollPredominantAxis=106]="scrollPredominantAxis",h[h.selectionClipboard=107]="selectionClipboard",h[h.selectionHighlight=108]="selectionHighlight",h[h.selectOnLineNumbers=109]="selectOnLineNumbers",h[h.showFoldingControls=110]="showFoldingControls",h[h.showUnused=111]="showUnused",h[h.snippetSuggestions=112]="snippetSuggestions",h[h.smartSelect=113]="smartSelect",h[h.smoothScrolling=114]="smoothScrolling",h[h.stickyScroll=115]="stickyScroll",h[h.stickyTabStops=116]="stickyTabStops",h[h.stopRenderingLineAfter=117]="stopRenderingLineAfter",h[h.suggest=118]="suggest",h[h.suggestFontSize=119]="suggestFontSize",h[h.suggestLineHeight=120]="suggestLineHeight",h[h.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",h[h.suggestSelection=122]="suggestSelection",h[h.tabCompletion=123]="tabCompletion",h[h.tabIndex=124]="tabIndex",h[h.unicodeHighlighting=125]="unicodeHighlighting",h[h.unusualLineTerminators=126]="unusualLineTerminators",h[h.useShadowDOM=127]="useShadowDOM",h[h.useTabStops=128]="useTabStops",h[h.wordBreak=129]="wordBreak",h[h.wordSegmenterLocales=130]="wordSegmenterLocales",h[h.wordSeparators=131]="wordSeparators",h[h.wordWrap=132]="wordWrap",h[h.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",h[h.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",h[h.wordWrapColumn=135]="wordWrapColumn",h[h.wordWrapOverride1=136]="wordWrapOverride1",h[h.wordWrapOverride2=137]="wordWrapOverride2",h[h.wrappingIndent=138]="wrappingIndent",h[h.wrappingStrategy=139]="wrappingStrategy",h[h.showDeprecated=140]="showDeprecated",h[h.inlayHints=141]="inlayHints",h[h.editorClassName=142]="editorClassName",h[h.pixelRatio=143]="pixelRatio",h[h.tabFocusMode=144]="tabFocusMode",h[h.layoutInfo=145]="layoutInfo",h[h.wrappingInfo=146]="wrappingInfo",h[h.defaultColorDecorators=147]="defaultColorDecorators",h[h.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",h[h.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(uFe||(uFe={}));var dFe;(function(h){h[h.TextDefined=0]="TextDefined",h[h.LF=1]="LF",h[h.CRLF=2]="CRLF"})(dFe||(dFe={}));var pFe;(function(h){h[h.LF=0]="LF",h[h.CRLF=1]="CRLF"})(pFe||(pFe={}));var fFe;(function(h){h[h.Left=1]="Left",h[h.Center=2]="Center",h[h.Right=3]="Right"})(fFe||(fFe={}));var mFe;(function(h){h[h.Increase=0]="Increase",h[h.Decrease=1]="Decrease"})(mFe||(mFe={}));var _Fe;(function(h){h[h.None=0]="None",h[h.Indent=1]="Indent",h[h.IndentOutdent=2]="IndentOutdent",h[h.Outdent=3]="Outdent"})(_Fe||(_Fe={}));var hFe;(function(h){h[h.Both=0]="Both",h[h.Right=1]="Right",h[h.Left=2]="Left",h[h.None=3]="None"})(hFe||(hFe={}));var gFe;(function(h){h[h.Type=1]="Type",h[h.Parameter=2]="Parameter"})(gFe||(gFe={}));var vFe;(function(h){h[h.Automatic=0]="Automatic",h[h.Explicit=1]="Explicit"})(vFe||(vFe={}));var yFe;(function(h){h[h.Invoke=0]="Invoke",h[h.Automatic=1]="Automatic"})(yFe||(yFe={}));var qte;(function(h){h[h.DependsOnKbLayout=-1]="DependsOnKbLayout",h[h.Unknown=0]="Unknown",h[h.Backspace=1]="Backspace",h[h.Tab=2]="Tab",h[h.Enter=3]="Enter",h[h.Shift=4]="Shift",h[h.Ctrl=5]="Ctrl",h[h.Alt=6]="Alt",h[h.PauseBreak=7]="PauseBreak",h[h.CapsLock=8]="CapsLock",h[h.Escape=9]="Escape",h[h.Space=10]="Space",h[h.PageUp=11]="PageUp",h[h.PageDown=12]="PageDown",h[h.End=13]="End",h[h.Home=14]="Home",h[h.LeftArrow=15]="LeftArrow",h[h.UpArrow=16]="UpArrow",h[h.RightArrow=17]="RightArrow",h[h.DownArrow=18]="DownArrow",h[h.Insert=19]="Insert",h[h.Delete=20]="Delete",h[h.Digit0=21]="Digit0",h[h.Digit1=22]="Digit1",h[h.Digit2=23]="Digit2",h[h.Digit3=24]="Digit3",h[h.Digit4=25]="Digit4",h[h.Digit5=26]="Digit5",h[h.Digit6=27]="Digit6",h[h.Digit7=28]="Digit7",h[h.Digit8=29]="Digit8",h[h.Digit9=30]="Digit9",h[h.KeyA=31]="KeyA",h[h.KeyB=32]="KeyB",h[h.KeyC=33]="KeyC",h[h.KeyD=34]="KeyD",h[h.KeyE=35]="KeyE",h[h.KeyF=36]="KeyF",h[h.KeyG=37]="KeyG",h[h.KeyH=38]="KeyH",h[h.KeyI=39]="KeyI",h[h.KeyJ=40]="KeyJ",h[h.KeyK=41]="KeyK",h[h.KeyL=42]="KeyL",h[h.KeyM=43]="KeyM",h[h.KeyN=44]="KeyN",h[h.KeyO=45]="KeyO",h[h.KeyP=46]="KeyP",h[h.KeyQ=47]="KeyQ",h[h.KeyR=48]="KeyR",h[h.KeyS=49]="KeyS",h[h.KeyT=50]="KeyT",h[h.KeyU=51]="KeyU",h[h.KeyV=52]="KeyV",h[h.KeyW=53]="KeyW",h[h.KeyX=54]="KeyX",h[h.KeyY=55]="KeyY",h[h.KeyZ=56]="KeyZ",h[h.Meta=57]="Meta",h[h.ContextMenu=58]="ContextMenu",h[h.F1=59]="F1",h[h.F2=60]="F2",h[h.F3=61]="F3",h[h.F4=62]="F4",h[h.F5=63]="F5",h[h.F6=64]="F6",h[h.F7=65]="F7",h[h.F8=66]="F8",h[h.F9=67]="F9",h[h.F10=68]="F10",h[h.F11=69]="F11",h[h.F12=70]="F12",h[h.F13=71]="F13",h[h.F14=72]="F14",h[h.F15=73]="F15",h[h.F16=74]="F16",h[h.F17=75]="F17",h[h.F18=76]="F18",h[h.F19=77]="F19",h[h.F20=78]="F20",h[h.F21=79]="F21",h[h.F22=80]="F22",h[h.F23=81]="F23",h[h.F24=82]="F24",h[h.NumLock=83]="NumLock",h[h.ScrollLock=84]="ScrollLock",h[h.Semicolon=85]="Semicolon",h[h.Equal=86]="Equal",h[h.Comma=87]="Comma",h[h.Minus=88]="Minus",h[h.Period=89]="Period",h[h.Slash=90]="Slash",h[h.Backquote=91]="Backquote",h[h.BracketLeft=92]="BracketLeft",h[h.Backslash=93]="Backslash",h[h.BracketRight=94]="BracketRight",h[h.Quote=95]="Quote",h[h.OEM_8=96]="OEM_8",h[h.IntlBackslash=97]="IntlBackslash",h[h.Numpad0=98]="Numpad0",h[h.Numpad1=99]="Numpad1",h[h.Numpad2=100]="Numpad2",h[h.Numpad3=101]="Numpad3",h[h.Numpad4=102]="Numpad4",h[h.Numpad5=103]="Numpad5",h[h.Numpad6=104]="Numpad6",h[h.Numpad7=105]="Numpad7",h[h.Numpad8=106]="Numpad8",h[h.Numpad9=107]="Numpad9",h[h.NumpadMultiply=108]="NumpadMultiply",h[h.NumpadAdd=109]="NumpadAdd",h[h.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",h[h.NumpadSubtract=111]="NumpadSubtract",h[h.NumpadDecimal=112]="NumpadDecimal",h[h.NumpadDivide=113]="NumpadDivide",h[h.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",h[h.ABNT_C1=115]="ABNT_C1",h[h.ABNT_C2=116]="ABNT_C2",h[h.AudioVolumeMute=117]="AudioVolumeMute",h[h.AudioVolumeUp=118]="AudioVolumeUp",h[h.AudioVolumeDown=119]="AudioVolumeDown",h[h.BrowserSearch=120]="BrowserSearch",h[h.BrowserHome=121]="BrowserHome",h[h.BrowserBack=122]="BrowserBack",h[h.BrowserForward=123]="BrowserForward",h[h.MediaTrackNext=124]="MediaTrackNext",h[h.MediaTrackPrevious=125]="MediaTrackPrevious",h[h.MediaStop=126]="MediaStop",h[h.MediaPlayPause=127]="MediaPlayPause",h[h.LaunchMediaPlayer=128]="LaunchMediaPlayer",h[h.LaunchMail=129]="LaunchMail",h[h.LaunchApp2=130]="LaunchApp2",h[h.Clear=131]="Clear",h[h.MAX_VALUE=132]="MAX_VALUE"})(qte||(qte={}));var Jte;(function(h){h[h.Hint=1]="Hint",h[h.Info=2]="Info",h[h.Warning=4]="Warning",h[h.Error=8]="Error"})(Jte||(Jte={}));var Kte;(function(h){h[h.Unnecessary=1]="Unnecessary",h[h.Deprecated=2]="Deprecated"})(Kte||(Kte={}));var bFe;(function(h){h[h.Inline=1]="Inline",h[h.Gutter=2]="Gutter"})(bFe||(bFe={}));var EFe;(function(h){h[h.Normal=1]="Normal",h[h.Underlined=2]="Underlined"})(EFe||(EFe={}));var SFe;(function(h){h[h.UNKNOWN=0]="UNKNOWN",h[h.TEXTAREA=1]="TEXTAREA",h[h.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",h[h.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",h[h.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",h[h.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",h[h.CONTENT_TEXT=6]="CONTENT_TEXT",h[h.CONTENT_EMPTY=7]="CONTENT_EMPTY",h[h.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",h[h.CONTENT_WIDGET=9]="CONTENT_WIDGET",h[h.OVERVIEW_RULER=10]="OVERVIEW_RULER",h[h.SCROLLBAR=11]="SCROLLBAR",h[h.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",h[h.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(SFe||(SFe={}));var TFe;(function(h){h[h.AIGenerated=1]="AIGenerated"})(TFe||(TFe={}));var AFe;(function(h){h[h.Invoke=0]="Invoke",h[h.Automatic=1]="Automatic"})(AFe||(AFe={}));var IFe;(function(h){h[h.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",h[h.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",h[h.TOP_CENTER=2]="TOP_CENTER"})(IFe||(IFe={}));var xFe;(function(h){h[h.Left=1]="Left",h[h.Center=2]="Center",h[h.Right=4]="Right",h[h.Full=7]="Full"})(xFe||(xFe={}));var RFe;(function(h){h[h.Word=0]="Word",h[h.Line=1]="Line",h[h.Suggest=2]="Suggest"})(RFe||(RFe={}));var DFe;(function(h){h[h.Left=0]="Left",h[h.Right=1]="Right",h[h.None=2]="None",h[h.LeftOfInjectedText=3]="LeftOfInjectedText",h[h.RightOfInjectedText=4]="RightOfInjectedText"})(DFe||(DFe={}));var CFe;(function(h){h[h.Off=0]="Off",h[h.On=1]="On",h[h.Relative=2]="Relative",h[h.Interval=3]="Interval",h[h.Custom=4]="Custom"})(CFe||(CFe={}));var NFe;(function(h){h[h.None=0]="None",h[h.Text=1]="Text",h[h.Blocks=2]="Blocks"})(NFe||(NFe={}));var PFe;(function(h){h[h.Smooth=0]="Smooth",h[h.Immediate=1]="Immediate"})(PFe||(PFe={}));var MFe;(function(h){h[h.Auto=1]="Auto",h[h.Hidden=2]="Hidden",h[h.Visible=3]="Visible"})(MFe||(MFe={}));var Xte;(function(h){h[h.LTR=0]="LTR",h[h.RTL=1]="RTL"})(Xte||(Xte={}));var LFe;(function(h){h.Off="off",h.OnCode="onCode",h.On="on"})(LFe||(LFe={}));var kFe;(function(h){h[h.Invoke=1]="Invoke",h[h.TriggerCharacter=2]="TriggerCharacter",h[h.ContentChange=3]="ContentChange"})(kFe||(kFe={}));var wFe;(function(h){h[h.File=0]="File",h[h.Module=1]="Module",h[h.Namespace=2]="Namespace",h[h.Package=3]="Package",h[h.Class=4]="Class",h[h.Method=5]="Method",h[h.Property=6]="Property",h[h.Field=7]="Field",h[h.Constructor=8]="Constructor",h[h.Enum=9]="Enum",h[h.Interface=10]="Interface",h[h.Function=11]="Function",h[h.Variable=12]="Variable",h[h.Constant=13]="Constant",h[h.String=14]="String",h[h.Number=15]="Number",h[h.Boolean=16]="Boolean",h[h.Array=17]="Array",h[h.Object=18]="Object",h[h.Key=19]="Key",h[h.Null=20]="Null",h[h.EnumMember=21]="EnumMember",h[h.Struct=22]="Struct",h[h.Event=23]="Event",h[h.Operator=24]="Operator",h[h.TypeParameter=25]="TypeParameter"})(wFe||(wFe={}));var OFe;(function(h){h[h.Deprecated=1]="Deprecated"})(OFe||(OFe={}));var FFe;(function(h){h[h.Hidden=0]="Hidden",h[h.Blink=1]="Blink",h[h.Smooth=2]="Smooth",h[h.Phase=3]="Phase",h[h.Expand=4]="Expand",h[h.Solid=5]="Solid"})(FFe||(FFe={}));var WFe;(function(h){h[h.Line=1]="Line",h[h.Block=2]="Block",h[h.Underline=3]="Underline",h[h.LineThin=4]="LineThin",h[h.BlockOutline=5]="BlockOutline",h[h.UnderlineThin=6]="UnderlineThin"})(WFe||(WFe={}));var zFe;(function(h){h[h.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",h[h.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",h[h.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",h[h.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(zFe||(zFe={}));var BFe;(function(h){h[h.None=0]="None",h[h.Same=1]="Same",h[h.Indent=2]="Indent",h[h.DeepIndent=3]="DeepIndent"})(BFe||(BFe={}));var TM=class{static chord(v,A){return W5e(v,A)}};TM.CtrlCmd=2048;TM.Shift=1024;TM.Alt=512;TM.WinCtrl=256;function GFe(){return{editor:void 0,languages:void 0,CancellationTokenSource:Gte,Emitter:Hh,KeyCode:qte,KeyMod:TM,Position:vf,Range:tc,Selection:jte,SelectionDirection:Xte,MarkerSeverity:Jte,MarkerTag:Kte,Uri:VD,Token:Hte}}var VFe,jFe,E0e=class{constructor(v,A){this.uri=v,this.value=A}};function Zyt(h){return Array.isArray(h)}var S0e=class h{constructor(v,A){if(this[VFe]="ResourceMap",v instanceof h)this.map=new Map(v.map),this.toKey=A??h.defaultToKey;else if(Zyt(v)){this.map=new Map,this.toKey=A??h.defaultToKey;for(let[F,X]of v)this.set(F,X)}else this.map=new Map,this.toKey=v??h.defaultToKey}set(v,A){return this.map.set(this.toKey(v),new E0e(v,A)),this}get(v){var A;return(A=this.map.get(this.toKey(v)))===null||A===void 0?void 0:A.value}has(v){return this.map.has(this.toKey(v))}get size(){return this.map.size}clear(){this.map.clear()}delete(v){return this.map.delete(this.toKey(v))}forEach(v,A){typeof A<"u"&&(v=v.bind(A));for(let[F,X]of this.map)v(X.value,X.uri,this)}*values(){for(let v of this.map.values())yield v.value}*keys(){for(let v of this.map.values())yield v.uri}*entries(){for(let v of this.map.values())yield[v.uri,v.value]}*[(VFe=Symbol.toStringTag,Symbol.iterator)](){for(let[,v]of this.map)yield[v.uri,v.value]}};S0e.defaultToKey=h=>h.toString();var T0e=class{constructor(){this[jFe]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var v;return(v=this._head)===null||v===void 0?void 0:v.value}get last(){var v;return(v=this._tail)===null||v===void 0?void 0:v.value}has(v){return this._map.has(v)}get(v,A=0){let F=this._map.get(v);if(F)return A!==0&&this.touch(F,A),F.value}set(v,A,F=0){let X=this._map.get(v);if(X)X.value=A,F!==0&&this.touch(X,F);else{switch(X={key:v,value:A,next:void 0,previous:void 0},F){case 0:this.addItemLast(X);break;case 1:this.addItemFirst(X);break;case 2:this.addItemLast(X);break;default:this.addItemLast(X);break}this._map.set(v,X),this._size++}return this}delete(v){return!!this.remove(v)}remove(v){let A=this._map.get(v);if(A)return this._map.delete(v),this.removeItem(A),this._size--,A.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let v=this._head;return this._map.delete(v.key),this.removeItem(v),this._size--,v.value}forEach(v,A){let F=this._state,X=this._head;for(;X;){if(A?v.bind(A)(X.value,X.key,this):v(X.value,X.key,this),this._state!==F)throw new Error("LinkedMap got modified during iteration.");X=X.next}}keys(){let v=this,A=this._state,F=this._head,X={[Symbol.iterator](){return X},next(){if(v._state!==A)throw new Error("LinkedMap got modified during iteration.");if(F){let _e={value:F.key,done:!1};return F=F.next,_e}else return{value:void 0,done:!0}}};return X}values(){let v=this,A=this._state,F=this._head,X={[Symbol.iterator](){return X},next(){if(v._state!==A)throw new Error("LinkedMap got modified during iteration.");if(F){let _e={value:F.value,done:!1};return F=F.next,_e}else return{value:void 0,done:!0}}};return X}entries(){let v=this,A=this._state,F=this._head,X={[Symbol.iterator](){return X},next(){if(v._state!==A)throw new Error("LinkedMap got modified during iteration.");if(F){let _e={value:[F.key,F.value],done:!1};return F=F.next,_e}else return{value:void 0,done:!0}}};return X}[(jFe=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(v){if(v>=this.size)return;if(v===0){this.clear();return}let A=this._head,F=this.size;for(;A&&F>v;)this._map.delete(A.key),A=A.next,F--;this._head=A,this._size=F,A&&(A.previous=void 0),this._state++}trimNew(v){if(v>=this.size)return;if(v===0){this.clear();return}let A=this._tail,F=this.size;for(;A&&F>v;)this._map.delete(A.key),A=A.previous,F--;this._tail=A,this._size=F,A&&(A.next=void 0),this._state++}addItemFirst(v){if(!this._head&&!this._tail)this._tail=v;else if(this._head)v.next=this._head,this._head.previous=v;else throw new Error("Invalid list");this._head=v,this._state++}addItemLast(v){if(!this._head&&!this._tail)this._head=v;else if(this._tail)v.previous=this._tail,this._tail.next=v;else throw new Error("Invalid list");this._tail=v,this._state++}removeItem(v){if(v===this._head&&v===this._tail)this._head=void 0,this._tail=void 0;else if(v===this._head){if(!v.next)throw new Error("Invalid list");v.next.previous=void 0,this._head=v.next}else if(v===this._tail){if(!v.previous)throw new Error("Invalid list");v.previous.next=void 0,this._tail=v.previous}else{let A=v.next,F=v.previous;if(!A||!F)throw new Error("Invalid list");A.previous=F,F.next=A}v.next=void 0,v.previous=void 0,this._state++}touch(v,A){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(A!==1&&A!==2)){if(A===1){if(v===this._head)return;let F=v.next,X=v.previous;v===this._tail?(X.next=void 0,this._tail=X):(F.previous=X,X.next=F),v.previous=void 0,v.next=this._head,this._head.previous=v,this._head=v,this._state++}else if(A===2){if(v===this._tail)return;let F=v.next,X=v.previous;v===this._head?(F.previous=void 0,this._head=F):(F.previous=X,X.next=F),v.next=void 0,v.previous=this._tail,this._tail.next=v,this._tail=v,this._state++}}}toJSON(){let v=[];return this.forEach((A,F)=>{v.push([F,A])}),v}fromJSON(v){this.clear();for(let[A,F]of v)this.set(A,F)}},A0e=class extends T0e{constructor(v,A=1){super(),this._limit=v,this._ratio=Math.min(Math.max(0,A),1)}get limit(){return this._limit}set limit(v){this._limit=v,this.checkTrim()}get(v,A=2){return super.get(v,A)}peek(v){return super.get(v,0)}set(v,A){return super.set(v,A,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Yte=class extends A0e{constructor(v,A=1){super(v,A)}trim(v){this.trimOld(v)}set(v,A){return super.set(v,A),this.checkTrim(),this}};var $te=class{constructor(){this.map=new Map}add(v,A){let F=this.map.get(v);F||(F=new Set,this.map.set(v,F)),F.add(A)}delete(v,A){let F=this.map.get(v);F&&(F.delete(A),F.size===0&&this.map.delete(v))}forEach(v,A){let F=this.map.get(v);F&&F.forEach(A)}get(v){let A=this.map.get(v);return A||new Set}};var O1t=new Yte(10);var UFe;(function(h){h[h.Left=1]="Left",h[h.Center=2]="Center",h[h.Right=4]="Right",h[h.Full=7]="Full"})(UFe||(UFe={}));var HFe;(function(h){h[h.Left=1]="Left",h[h.Center=2]="Center",h[h.Right=3]="Right"})(HFe||(HFe={}));var qFe;(function(h){h[h.Both=0]="Both",h[h.Right=1]="Right",h[h.Left=2]="Left",h[h.None=3]="None"})(qFe||(qFe={}));function ebt(h,v,A,F,X){if(F===0)return!0;let _e=v.charCodeAt(F-1);if(h.get(_e)!==0||_e===13||_e===10)return!0;if(X>0){let Te=v.charCodeAt(F);if(h.get(Te)!==0)return!0}return!1}function tbt(h,v,A,F,X){if(F+X===A)return!0;let _e=v.charCodeAt(F+X);if(h.get(_e)!==0||_e===13||_e===10)return!0;if(X>0){let Te=v.charCodeAt(F+X-1);if(h.get(Te)!==0)return!0}return!1}function nbt(h,v,A,F,X){return ebt(h,v,A,F,X)&&tbt(h,v,A,F,X)}var Qte=class{constructor(v,A){this._wordSeparators=v,this._searchRegex=A,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(v){this._searchRegex.lastIndex=v,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(v){let A=v.length,F;do{if(this._prevMatchStartIndex+this._prevMatchLength===A||(F=this._searchRegex.exec(v),!F))return null;let X=F.index,_e=F[0].length;if(X===this._prevMatchStartIndex&&_e===this._prevMatchLength){if(_e===0){d5e(v,A,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=X,this._prevMatchLength=_e,!this._wordSeparators||nbt(this._wordSeparators,v,A,X,_e))return F}while(F);return null}};function JFe(h,v="Unreachable"){throw new Error(v)}function AM(h){if(!h()){debugger;h(),a8(new Dg("Assertion Failed"))}}function UB(h,v){let A=0;for(;A0){let Kc=vn.charCodeAt(ri-1);f8(Kc)&&ri--}if(to+1=1e3){Gt=!0;break e}Ke.push(new tc(Qi,ri+1,Qi,to+1))}}while(Zt)}return{ranges:Ke,hasMore:Gt,ambiguousCharacterCount:ir,invisibleCharacterCount:Ar,nonBasicAsciiCharacterCount:Un}}static computeUnicodeHighlightReason(v,A){let F=new ene(A);switch(F.shouldHighlightNonBasicASCII(v,null)){case 0:return null;case 2:return{kind:1};case 3:{let _e=v.codePointAt(0),Te=F.ambiguousCharacters.getPrimaryConfusable(_e),Be=sA.getLocales().filter(nt=>!sA.getInstance(new Set([...A.allowedLocales,nt])).isAmbiguous(_e));return{kind:0,confusableWith:String.fromCodePoint(Te),notAmbiguousInLocales:Be}}case 1:return{kind:2}}}};function rbt(h,v){return`[${s5e(h.map(F=>String.fromCodePoint(F)).join(""))}]`}var ene=class{constructor(v){this.options=v,this.allowedCodePoints=new Set(v.allowedCodePoints),this.ambiguousCharacters=sA.getInstance(new Set(v.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let v=new Set;if(this.options.invisibleCharacters)for(let A of EM.codePoints)KFe(String.fromCodePoint(A))||v.add(A);if(this.options.ambiguousCharacters)for(let A of this.ambiguousCharacters.getConfusableCodePoints())v.add(A);for(let A of this.allowedCodePoints)v.delete(A);return v}shouldHighlightNonBasicASCII(v,A){let F=v.codePointAt(0);if(this.allowedCodePoints.has(F))return 0;if(this.options.nonBasicASCII)return 1;let X=!1,_e=!1;if(A)for(let Te of A){let Be=Te.codePointAt(0),nt=p5e(Te);X=X||nt,!nt&&!this.ambiguousCharacters.isAmbiguous(Be)&&!EM.isInvisibleCharacter(Be)&&(_e=!0)}return!X&&_e?0:this.options.invisibleCharacters&&!KFe(v)&&EM.isInvisibleCharacter(F)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(F)?3:0}};function KFe(h){return h===" "||h===` +`||h===" "}var UD=class{constructor(v,A,F){this.changes=v,this.moves=A,this.hitTimeout=F}},tne=class{constructor(v,A){this.lineRangeMapping=v,this.changes=A}};var nc=class h{static addRange(v,A){let F=0;for(;FA))return new h(v,A)}static ofLength(v){return new h(0,v)}static ofStartAndLength(v,A){return new h(v,v+A)}constructor(v,A){if(this.start=v,this.endExclusive=A,v>A)throw new Dg(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(v){return new h(this.start+v,this.endExclusive+v)}deltaStart(v){return new h(this.start+v,this.endExclusive)}deltaEnd(v){return new h(this.start,this.endExclusive+v)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(v){return this.start<=v&&v=v.endExclusive}slice(v){return v.slice(this.start,this.endExclusive)}substring(v){return v.substring(this.start,this.endExclusive)}clip(v){if(this.isEmpty)throw new Dg(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,v))}clipCyclic(v){if(this.isEmpty)throw new Dg(`Invalid clipping range: ${this.toString()}`);return v=this.endExclusive?this.start+(v-this.start)%this.length:v}forEach(v){for(let A=this.start;AA)throw new Dg(`startLineNumber ${v} cannot be after endLineNumberExclusive ${A}`);this.startLineNumber=v,this.endLineNumberExclusive=A}contains(v){return this.startLineNumber<=v&&vX.endLineNumberExclusive>=v.startLineNumber),F=IM(this._normalizedRanges,X=>X.startLineNumber<=v.endLineNumberExclusive)+1;if(A===F)this._normalizedRanges.splice(A,0,v);else if(A===F-1){let X=this._normalizedRanges[A];this._normalizedRanges[A]=X.join(v)}else{let X=this._normalizedRanges[A].join(this._normalizedRanges[F-1]).join(v);this._normalizedRanges.splice(A,F-A,X)}}contains(v){let A=Ix(this._normalizedRanges,F=>F.startLineNumber<=v);return!!A&&A.endLineNumberExclusive>v}intersects(v){let A=Ix(this._normalizedRanges,F=>F.startLineNumberv.startLineNumber}getUnion(v){if(this._normalizedRanges.length===0)return v;if(v._normalizedRanges.length===0)return this;let A=[],F=0,X=0,_e=null;for(;F=Te.startLineNumber?_e=new Pc(_e.startLineNumber,Math.max(_e.endLineNumberExclusive,Te.endLineNumberExclusive)):(A.push(_e),_e=Te)}return _e!==null&&A.push(_e),new h(A)}subtractFrom(v){let A=nne(this._normalizedRanges,Te=>Te.endLineNumberExclusive>=v.startLineNumber),F=IM(this._normalizedRanges,Te=>Te.startLineNumber<=v.endLineNumberExclusive)+1;if(A===F)return new h([v]);let X=[],_e=v.startLineNumber;for(let Te=A;Te_e&&X.push(new Pc(_e,Be.startLineNumber)),_e=Be.endLineNumberExclusive}return _ev.toString()).join(", ")}getIntersection(v){let A=[],F=0,X=0;for(;FA.delta(v)))}};var v8=class h{static betweenPositions(v,A){return v.lineNumber===A.lineNumber?new h(0,A.column-v.column):new h(A.lineNumber-v.lineNumber,A.column-1)}static ofRange(v){return h.betweenPositions(v.getStartPosition(),v.getEndPosition())}static ofText(v){let A=0,F=0;for(let X of v)X===` +`?(A++,F=0):F++;return new h(A,F)}constructor(v,A){this.lineCount=v,this.columnCount=A}isGreaterThanOrEqualTo(v){return this.lineCount!==v.lineCount?this.lineCount>v.lineCount:this.columnCount>=v.columnCount}createRange(v){return this.lineCount===0?new tc(v.lineNumber,v.column,v.lineNumber,v.column+this.columnCount):new tc(v.lineNumber,v.column,v.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(v){return this.lineCount===0?new vf(v.lineNumber,v.column+this.columnCount):new vf(v.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};v8.zero=new v8(0,0);var rne=class{constructor(v,A){this.range=v,this.text=A}};var HD=class h{static inverse(v,A,F){let X=[],_e=1,Te=1;for(let nt of v){let De=new h(new Pc(_e,nt.original.startLineNumber),new Pc(Te,nt.modified.startLineNumber));De.modified.isEmpty||X.push(De),_e=nt.original.endLineNumberExclusive,Te=nt.modified.endLineNumberExclusive}let Be=new h(new Pc(_e,A+1),new Pc(Te,F+1));return Be.modified.isEmpty||X.push(Be),X}static clip(v,A,F){let X=[];for(let _e of v){let Te=_e.original.intersect(A),Be=_e.modified.intersect(F);Te&&!Te.isEmpty&&Be&&!Be.isEmpty&&X.push(new h(Te,Be))}return X}constructor(v,A){this.original=v,this.modified=A}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new h(this.modified,this.original)}join(v){return new h(this.original.join(v.original),this.modified.join(v.modified))}toRangeMapping(){let v=this.original.toInclusiveRange(),A=this.modified.toInclusiveRange();if(v&&A)return new lA(v,A);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new Dg("not a valid diff");return new lA(new tc(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new tc(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new lA(new tc(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new tc(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}},xx=class h extends HD{static fromRangeMappings(v){let A=Pc.join(v.map(X=>Pc.fromRangeInclusive(X.originalRange))),F=Pc.join(v.map(X=>Pc.fromRangeInclusive(X.modifiedRange)));return new h(A,F,v)}constructor(v,A,F){super(v,A),this.innerChanges=F}flip(){var v;return new h(this.modified,this.original,(v=this.innerChanges)===null||v===void 0?void 0:v.map(A=>A.flip()))}withInnerChangesFromLineRanges(){return new h(this.original,this.modified,[this.toRangeMapping()])}},lA=class h{constructor(v,A){this.originalRange=v,this.modifiedRange=A}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new h(this.modifiedRange,this.originalRange)}toTextEdit(v){let A=v.getValueOfRange(this.modifiedRange);return new rne(this.originalRange,A)}};var ibt=3,ine=class{computeDiff(v,A,F){var X;let Te=new x0e(v,A,{maxComputationTime:F.maxComputationTimeMs,shouldIgnoreTrimWhitespace:F.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Be=[],nt=null;for(let De of Te.changes){let Ke;De.originalEndLineNumber===0?Ke=new Pc(De.originalStartLineNumber+1,De.originalStartLineNumber+1):Ke=new Pc(De.originalStartLineNumber,De.originalEndLineNumber+1);let Gt;De.modifiedEndLineNumber===0?Gt=new Pc(De.modifiedStartLineNumber+1,De.modifiedStartLineNumber+1):Gt=new Pc(De.modifiedStartLineNumber,De.modifiedEndLineNumber+1);let Zt=new xx(Ke,Gt,(X=De.charChanges)===null||X===void 0?void 0:X.map(ir=>new lA(new tc(ir.originalStartLineNumber,ir.originalStartColumn,ir.originalEndLineNumber,ir.originalEndColumn),new tc(ir.modifiedStartLineNumber,ir.modifiedStartColumn,ir.modifiedEndLineNumber,ir.modifiedEndColumn))));nt&&(nt.modified.endLineNumberExclusive===Zt.modified.startLineNumber||nt.original.endLineNumberExclusive===Zt.original.startLineNumber)&&(Zt=new xx(nt.original.join(Zt.original),nt.modified.join(Zt.modified),nt.innerChanges&&Zt.innerChanges?nt.innerChanges.concat(Zt.innerChanges):void 0),Be.pop()),Be.push(Zt),nt=Zt}return AM(()=>UB(Be,(De,Ke)=>Ke.original.startLineNumber-De.original.endLineNumberExclusive===Ke.modified.startLineNumber-De.modified.endLineNumberExclusive&&De.original.endLineNumberExclusive(v===10?"\\n":String.fromCharCode(v))+`-(${this._lineNumbers[A]},${this._columns[A]})`).join(", ")+"]"}_assertIndex(v,A){if(v<0||v>=A.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(v){return v>0&&v===this._lineNumbers.length?this.getEndLineNumber(v-1):(this._assertIndex(v,this._lineNumbers),this._lineNumbers[v])}getEndLineNumber(v){return v===-1?this.getStartLineNumber(v+1):(this._assertIndex(v,this._lineNumbers),this._charCodes[v]===10?this._lineNumbers[v]+1:this._lineNumbers[v])}getStartColumn(v){return v>0&&v===this._columns.length?this.getEndColumn(v-1):(this._assertIndex(v,this._columns),this._columns[v])}getEndColumn(v){return v===-1?this.getStartColumn(v+1):(this._assertIndex(v,this._columns),this._charCodes[v]===10?1:this._columns[v]+1)}},y8=class h{constructor(v,A,F,X,_e,Te,Be,nt){this.originalStartLineNumber=v,this.originalStartColumn=A,this.originalEndLineNumber=F,this.originalEndColumn=X,this.modifiedStartLineNumber=_e,this.modifiedStartColumn=Te,this.modifiedEndLineNumber=Be,this.modifiedEndColumn=nt}static createFromDiffChange(v,A,F){let X=A.getStartLineNumber(v.originalStart),_e=A.getStartColumn(v.originalStart),Te=A.getEndLineNumber(v.originalStart+v.originalLength-1),Be=A.getEndColumn(v.originalStart+v.originalLength-1),nt=F.getStartLineNumber(v.modifiedStart),De=F.getStartColumn(v.modifiedStart),Ke=F.getEndLineNumber(v.modifiedStart+v.modifiedLength-1),Gt=F.getEndColumn(v.modifiedStart+v.modifiedLength-1);return new h(X,_e,Te,Be,nt,De,Ke,Gt)}};function obt(h){if(h.length<=1)return h;let v=[h[0]],A=v[0];for(let F=1,X=h.length;F0&&A.originalLength<20&&A.modifiedLength>0&&A.modifiedLength<20&&_e()){let ir=F.createCharSequence(v,A.originalStart,A.originalStart+A.originalLength-1),Ar=X.createCharSequence(v,A.modifiedStart,A.modifiedStart+A.modifiedLength-1);if(ir.getElements().length>0&&Ar.getElements().length>0){let Un=$Fe(ir,Ar,_e,!0).changes;Be&&(Un=obt(Un)),Zt=[];for(let Qi=0,Jn=Un.length;Qi1&&Un>1;){let Qi=Zt.charCodeAt(Ar-2),Jn=ir.charCodeAt(Un-2);if(Qi!==Jn)break;Ar--,Un--}(Ar>1||Un>1)&&this._pushTrimWhitespaceCharChange(X,_e+1,1,Ar,Te+1,1,Un)}{let Ar=D0e(Zt,1),Un=D0e(ir,1),Qi=Zt.length+1,Jn=ir.length+1;for(;Ar!0;let v=Date.now();return()=>Date.now()-v{F.push(h.fromOffsetPairs(X?X.getEndExclusives():Sy.zero,_e?_e.getStarts():new Sy(A,(X?X.seq2Range.endExclusive-X.seq1Range.endExclusive:0)+A)))}),F}static fromOffsetPairs(v,A){return new h(new nc(v.offset1,A.offset1),new nc(v.offset2,A.offset2))}constructor(v,A){this.seq1Range=v,this.seq2Range=A}swap(){return new h(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(v){return new h(this.seq1Range.join(v.seq1Range),this.seq2Range.join(v.seq2Range))}delta(v){return v===0?this:new h(this.seq1Range.delta(v),this.seq2Range.delta(v))}deltaStart(v){return v===0?this:new h(this.seq1Range.deltaStart(v),this.seq2Range.deltaStart(v))}deltaEnd(v){return v===0?this:new h(this.seq1Range.deltaEnd(v),this.seq2Range.deltaEnd(v))}intersect(v){let A=this.seq1Range.intersect(v.seq1Range),F=this.seq2Range.intersect(v.seq2Range);if(!(!A||!F))return new h(A,F)}getStarts(){return new Sy(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Sy(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},Sy=class h{constructor(v,A){this.offset1=v,this.offset2=A}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(v){return v===0?this:new h(this.offset1+v,this.offset2+v)}equals(v){return this.offset1===v.offset1&&this.offset2===v.offset2}};Sy.zero=new Sy(0,0);Sy.max=new Sy(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);var uA=class{isValid(){return!0}};uA.instance=new uA;var ane=class{constructor(v){if(this.timeout=v,this.startTime=Date.now(),this.valid=!0,v<=0)throw new Dg("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&Un>0&&Te.get(Ar-1,Un-1)===3&&(vn+=Be.get(Ar-1,Un-1)),vn+=X?X(Ar,Un):1):vn=-1;let Qr=Math.max(Qi,Jn,vn);if(Qr===vn){let ri=Ar>0&&Un>0?Be.get(Ar-1,Un-1):0;Be.set(Ar,Un,ri+1),Te.set(Ar,Un,3)}else Qr===Qi?(Be.set(Ar,Un,0),Te.set(Ar,Un,1)):Qr===Jn&&(Be.set(Ar,Un,0),Te.set(Ar,Un,2));_e.set(Ar,Un,Qr)}let nt=[],De=v.length,Ke=A.length;function Gt(Ar,Un){(Ar+1!==De||Un+1!==Ke)&&nt.push(new hm(new nc(Ar+1,De),new nc(Un+1,Ke))),De=Ar,Ke=Un}let Zt=v.length-1,ir=A.length-1;for(;Zt>=0&&ir>=0;)Te.get(Zt,ir)===3?(Gt(Zt,ir),Zt--,ir--):Te.get(Zt,ir)===1?Zt--:ir--;return Gt(-1,-1),nt.reverse(),new cA(nt,!1)}};var S8=class{compute(v,A,F=uA.instance){if(v.length===0||A.length===0)return cA.trivial(v,A);let X=v,_e=A;function Te(Un,Qi){for(;UnX.length||to>_e.length)continue;let Ga=Te(ri,to);nt.set(Ke,Ga);let wr=ri===vn?De.get(Ke+1):De.get(Ke-1);if(De.set(Ke,Ga!==ri?new lne(wr,ri,to,Ga-ri):wr),nt.get(Ke)===X.length&&nt.get(Ke)-Ke===_e.length)break e}}let Gt=De.get(Ke),Zt=[],ir=X.length,Ar=_e.length;for(;;){let Un=Gt?Gt.x+Gt.length:0,Qi=Gt?Gt.y+Gt.length:0;if((Un!==ir||Qi!==Ar)&&Zt.push(new hm(new nc(Un,ir),new nc(Qi,Ar))),!Gt)break;ir=Gt.x,Ar=Gt.y,Gt=Gt.prev}return Zt.reverse(),new cA(Zt,!1)}},lne=class{constructor(v,A,F,X){this.prev=v,this.x=A,this.y=F,this.length=X}},C0e=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,A){if(v<0){if(v=-v-1,v>=this.negativeArr.length){let F=this.negativeArr;this.negativeArr=new Int32Array(F.length*2),this.negativeArr.set(F)}this.negativeArr[v]=A}else{if(v>=this.positiveArr.length){let F=this.positiveArr;this.positiveArr=new Int32Array(F.length*2),this.positiveArr.set(F)}this.positiveArr[v]=A}}},N0e=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,A){v<0?(v=-v-1,this.negativeArr[v]=A):this.positiveArr[v]=A}};var qD=class{constructor(v,A,F){this.lines=v,this.considerWhitespaceChanges=F,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let X=!1;A.start>0&&A.endExclusive>=v.length&&(A=new nc(A.start-1,A.endExclusive),X=!0),this.lineRange=A,this.firstCharOffsetByLine[0]=0;for(let _e=this.lineRange.start;_eString.fromCharCode(A)).join("")}getElement(v){return this.elements[v]}get length(){return this.elements.length}getBoundaryScore(v){let A=ZFe(v>0?this.elements[v-1]:-1),F=ZFe(vF<=v);return new vf(this.lineRange.start+A+1,v-this.firstCharOffsetByLine[A]+this.additionalOffsetByLine[A]+1)}translateRange(v){return tc.fromPositions(this.translateOffset(v.start),this.translateOffset(v.endExclusive))}findWordContaining(v){if(v<0||v>=this.elements.length||!P0e(this.elements[v]))return;let A=v;for(;A>0&&P0e(this.elements[A-1]);)A--;let F=v;for(;FTe<=v.start))!==null&&A!==void 0?A:0,_e=(F=XFe(this.firstCharOffsetByLine,Te=>v.endExclusive<=Te))!==null&&F!==void 0?F:this.elements.length;return new nc(X,_e)}};function P0e(h){return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57}var abt={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function QFe(h){return abt[h]}function ZFe(h){return h===10?8:h===13?7:qB(h)?6:h>=97&&h<=122?0:h>=65&&h<=90?1:h>=48&&h<=57?2:h===-1?3:h===44||h===59?5:4}function tWe(h,v,A,F,X,_e){let{moves:Te,excludedChanges:Be}=lbt(h,v,A,_e);if(!_e.isValid())return[];let nt=h.filter(Ke=>!Be.has(Ke)),De=cbt(nt,F,X,v,A,_e);return P5e(Te,De),Te=ubt(Te),Te=Te.filter(Ke=>{let Gt=Ke.original.toOffsetRange().slice(v).map(ir=>ir.trim());return Gt.join(` +`).length>=15&&sbt(Gt,ir=>ir.length>=2)>=2}),Te=dbt(h,Te),Te}function sbt(h,v){let A=0;for(let F of h)v(F)&&A++;return A}function lbt(h,v,A,F){let X=[],_e=h.filter(nt=>nt.modified.isEmpty&&nt.original.length>=3).map(nt=>new E8(nt.original,v,nt)),Te=new Set(h.filter(nt=>nt.original.isEmpty&&nt.modified.length>=3).map(nt=>new E8(nt.modified,A,nt))),Be=new Set;for(let nt of _e){let De=-1,Ke;for(let Gt of Te){let Zt=nt.computeSimilarity(Gt);Zt>De&&(De=Zt,Ke=Gt)}if(De>.9&&Ke&&(Te.delete(Ke),X.push(new HD(nt.range,Ke.range)),Be.add(nt.source),Be.add(Ke.source)),!F.isValid())return{moves:X,excludedChanges:Be}}return{moves:X,excludedChanges:Be}}function cbt(h,v,A,F,X,_e){let Te=[],Be=new $te;for(let Zt of h)for(let ir=Zt.original.startLineNumber;irZt.modified.startLineNumber,zB));for(let Zt of h){let ir=[];for(let Ar=Zt.modified.startLineNumber;Ar{for(let ri of ir)if(ri.originalLineRange.endLineNumberExclusive+1===vn.endLineNumberExclusive&&ri.modifiedLineRange.endLineNumberExclusive+1===Qi.endLineNumberExclusive){ri.originalLineRange=new Pc(ri.originalLineRange.startLineNumber,vn.endLineNumberExclusive),ri.modifiedLineRange=new Pc(ri.modifiedLineRange.startLineNumber,Qi.endLineNumberExclusive),Jn.push(ri);return}let Qr={modifiedLineRange:Qi,originalLineRange:vn};nt.push(Qr),Jn.push(Qr)}),ir=Jn}if(!_e.isValid())return[]}nt.sort(M5e(WB(Zt=>Zt.modifiedLineRange.length,zB)));let De=new xM,Ke=new xM;for(let Zt of nt){let ir=Zt.modifiedLineRange.startLineNumber-Zt.originalLineRange.startLineNumber,Ar=De.subtractFrom(Zt.modifiedLineRange),Un=Ke.subtractFrom(Zt.originalLineRange).getWithDelta(ir),Qi=Ar.getIntersection(Un);for(let Jn of Qi.ranges){if(Jn.length<3)continue;let vn=Jn,Qr=Jn.delta(-ir);Te.push(new HD(Qr,vn)),De.addRange(vn),Ke.addRange(Qr)}}Te.sort(WB(Zt=>Zt.original.startLineNumber,zB));let Gt=new g8(h);for(let Zt=0;ZtGa.original.startLineNumber<=ir.original.startLineNumber),Un=Ix(h,Ga=>Ga.modified.startLineNumber<=ir.modified.startLineNumber),Qi=Math.max(ir.original.startLineNumber-Ar.original.startLineNumber,ir.modified.startLineNumber-Un.modified.startLineNumber),Jn=Gt.findLastMonotonous(Ga=>Ga.original.startLineNumberGa.modified.startLineNumberF.length||wr>X.length||De.contains(wr)||Ke.contains(Ga)||!eWe(F[Ga-1],X[wr-1],_e))break}ri>0&&(Ke.addRange(new Pc(ir.original.startLineNumber-ri,ir.original.startLineNumber)),De.addRange(new Pc(ir.modified.startLineNumber-ri,ir.modified.startLineNumber)));let to;for(to=0;toF.length||wr>X.length||De.contains(wr)||Ke.contains(Ga)||!eWe(F[Ga-1],X[wr-1],_e))break}to>0&&(Ke.addRange(new Pc(ir.original.endLineNumberExclusive,ir.original.endLineNumberExclusive+to)),De.addRange(new Pc(ir.modified.endLineNumberExclusive,ir.modified.endLineNumberExclusive+to))),(ri>0||to>0)&&(Te[Zt]=new HD(new Pc(ir.original.startLineNumber-ri,ir.original.endLineNumberExclusive+to),new Pc(ir.modified.startLineNumber-ri,ir.modified.endLineNumberExclusive+to)))}return Te}function eWe(h,v,A){if(h.trim()===v.trim())return!0;if(h.length>300&&v.length>300)return!1;let X=new S8().compute(new qD([h],new nc(0,1),!1),new qD([v],new nc(0,1),!1),A),_e=0,Te=hm.invert(X.diffs,h.length);for(let Ke of Te)Ke.seq1Range.forEach(Gt=>{qB(h.charCodeAt(Gt))||_e++});function Be(Ke){let Gt=0;for(let Zt=0;Ztv.length?h:v);return _e/nt>.6&&nt>10}function ubt(h){if(h.length===0)return h;h.sort(WB(A=>A.original.startLineNumber,zB));let v=[h[0]];for(let A=1;A=0&&Te>=0&&_e+Te<=2){v[v.length-1]=F.join(X);continue}v.push(X)}return v}function dbt(h,v){let A=new g8(h);return v=v.filter(F=>{let X=A.findLastMonotonous(Be=>Be.original.startLineNumberBe.modified.startLineNumber0&&(Be=Be.delta(De))}X.push(Be)}return F.length>0&&X.push(F[F.length-1]),X}function pbt(h,v,A){if(!h.getBoundaryScore||!v.getBoundaryScore)return A;for(let F=0;F0?A[F-1]:void 0,_e=A[F],Te=F+1=F.start&&h.seq2Range.start-Te>=X.start&&A.isStronglyEqual(h.seq2Range.start-Te,h.seq2Range.endExclusive-Te)&&Te<100;)Te++;Te--;let Be=0;for(;h.seq1Range.start+BeDe&&(De=Ar,nt=Ke)}return h.delta(nt)}function iWe(h,v,A){let F=[];for(let X of A){let _e=F[F.length-1];if(!_e){F.push(X);continue}X.seq1Range.start-_e.seq1Range.endExclusive<=2||X.seq2Range.start-_e.seq2Range.endExclusive<=2?F[F.length-1]=new hm(_e.seq1Range.join(X.seq1Range),_e.seq2Range.join(X.seq2Range)):F.push(X)}return F}function oWe(h,v,A){let F=hm.invert(A,h.length),X=[],_e=new Sy(0,0);function Te(nt,De){if(nt.offset1<_e.offset1||nt.offset2<_e.offset2)return;let Ke=h.findWordContaining(nt.offset1),Gt=v.findWordContaining(nt.offset2);if(!Ke||!Gt)return;let Zt=new hm(Ke,Gt),ir=Zt.intersect(De),Ar=ir.seq1Range.length,Un=ir.seq2Range.length;for(;F.length>0;){let Qi=F[0];if(!(Qi.seq1Range.intersects(Zt.seq1Range)||Qi.seq2Range.intersects(Zt.seq2Range)))break;let vn=h.findWordContaining(Qi.seq1Range.start),Qr=v.findWordContaining(Qi.seq2Range.start),ri=new hm(vn,Qr),to=ri.intersect(Qi);if(Ar+=to.seq1Range.length,Un+=to.seq2Range.length,Zt=Zt.join(ri),Zt.seq1Range.endExclusive>=Qi.seq1Range.endExclusive)F.shift();else break}Ar+Un<(Zt.seq1Range.length+Zt.seq2Range.length)*2/3&&X.push(Zt),_e=Zt.getEndExclusives()}for(;F.length>0;){let nt=F.shift();nt.seq1Range.isEmpty||(Te(nt.getStarts(),nt),Te(nt.getEndExclusives().delta(-1),nt))}return fbt(A,X)}function fbt(h,v){let A=[];for(;h.length>0||v.length>0;){let F=h[0],X=v[0],_e;F&&(!X||F.seq1Range.start0&&A[A.length-1].seq1Range.endExclusive>=_e.seq1Range.start?A[A.length-1]=A[A.length-1].join(_e):A.push(_e)}return A}function aWe(h,v,A){let F=A;if(F.length===0)return F;let X=0,_e;do{_e=!1;let Te=[F[0]];for(let Be=1;Be5||ir.seq1Range.length+ir.seq2Range.length>5)},nt=F[Be],De=Te[Te.length-1];Ke(De,nt)?(_e=!0,Te[Te.length-1]=Te[Te.length-1].join(nt)):Te.push(nt)}F=Te}while(X++<10&&_e);return F}function sWe(h,v,A){let F=A;if(F.length===0)return F;let X=0,_e;do{_e=!1;let Be=[F[0]];for(let nt=1;nt5||Un.length>500)return!1;let Jn=h.getText(Un).trim();if(Jn.length>20||Jn.split(/\r\n|\r|\n/).length>1)return!1;let vn=h.countLinesIn(ir.seq1Range),Qr=ir.seq1Range.length,ri=v.countLinesIn(ir.seq2Range),to=ir.seq2Range.length,Ga=h.countLinesIn(Ar.seq1Range),wr=Ar.seq1Range.length,Ma=v.countLinesIn(Ar.seq2Range),Kc=Ar.seq2Range.length,au=2*40+50;function tr(Bi){return Math.min(Bi,au)}return Math.pow(Math.pow(tr(vn*40+Qr),1.5)+Math.pow(tr(ri*40+to),1.5),1.5)+Math.pow(Math.pow(tr(Ga*40+wr),1.5)+Math.pow(tr(Ma*40+Kc),1.5),1.5)>(au**1.5)**1.5*1.3},De=F[nt],Ke=Be[Be.length-1];Gt(Ke,De)?(_e=!0,Be[Be.length-1]=Be[Be.length-1].join(De)):Be.push(De)}F=Be}while(X++<10&&_e);let Te=[];return N5e(F,(Be,nt,De)=>{let Ke=nt;function Gt(Jn){return Jn.length>0&&Jn.trim().length<=3&&nt.seq1Range.length+nt.seq2Range.length>100}let Zt=h.extendToFullLines(nt.seq1Range),ir=h.getText(new nc(Zt.start,nt.seq1Range.start));Gt(ir)&&(Ke=Ke.deltaStart(-ir.length));let Ar=h.getText(new nc(nt.seq1Range.endExclusive,Zt.endExclusive));Gt(Ar)&&(Ke=Ke.deltaEnd(Ar.length));let Un=hm.fromOffsetPairs(Be?Be.getEndExclusives():Sy.zero,De?De.getStarts():Sy.max),Qi=Ke.intersect(Un);Te.length>0&&Qi.getStarts().equals(Te[Te.length-1].getEndExclusives())?Te[Te.length-1]=Te[Te.length-1].join(Qi):Te.push(Qi)}),Te}var JB=class{constructor(v,A){this.trimmedHash=v,this.lines=A}getElement(v){return this.trimmedHash[v]}get length(){return this.trimmedHash.length}getBoundaryScore(v){let A=v===0?0:lWe(this.lines[v-1]),F=v===this.lines.length?0:lWe(this.lines[v]);return 1e3-(A+F)}getText(v){return this.lines.slice(v.start,v.endExclusive).join(` +`)}isStronglyEqual(v,A){return this.lines[v]===this.lines[A]}};function lWe(h){let v=0;for(;vto===Ga))return new UD([],[],!1);if(v.length===1&&v[0].length===0||A.length===1&&A[0].length===0)return new UD([new xx(new Pc(1,v.length+1),new Pc(1,A.length+1),[new lA(new tc(1,1,v.length,v[v.length-1].length+1),new tc(1,1,A.length,A[A.length-1].length+1))])],[],!1);let X=F.maxComputationTimeMs===0?uA.instance:new ane(F.maxComputationTimeMs),_e=!F.ignoreTrimWhitespace,Te=new Map;function Be(to){let Ga=Te.get(to);return Ga===void 0&&(Ga=Te.size,Te.set(to,Ga)),Ga}let nt=v.map(to=>Be(to.trim())),De=A.map(to=>Be(to.trim())),Ke=new JB(nt,v),Gt=new JB(De,A),Zt=Ke.length+Gt.length<1700?this.dynamicProgrammingDiffing.compute(Ke,Gt,X,(to,Ga)=>v[to]===A[Ga]?A[Ga].length===0?.1:1+Math.log(1+A[Ga].length):.99):this.myersDiffingAlgorithm.compute(Ke,Gt,X),ir=Zt.diffs,Ar=Zt.hitTimeout;ir=M0e(Ke,Gt,ir),ir=aWe(Ke,Gt,ir);let Un=[],Qi=to=>{if(_e)for(let Ga=0;Gato.seq1Range.start-Jn===to.seq2Range.start-vn);let Ga=to.seq1Range.start-Jn;Qi(Ga),Jn=to.seq1Range.endExclusive,vn=to.seq2Range.endExclusive;let wr=this.refineDiff(v,A,to,X,_e);wr.hitTimeout&&(Ar=!0);for(let Ma of wr.mappings)Un.push(Ma)}Qi(v.length-Jn);let Qr=cWe(Un,v,A),ri=[];return F.computeMoves&&(ri=this.computeMoves(Qr,v,A,nt,De,X,_e)),AM(()=>{function to(wr,Ma){if(wr.lineNumber<1||wr.lineNumber>Ma.length)return!1;let Kc=Ma[wr.lineNumber-1];return!(wr.column<1||wr.column>Kc.length+1)}function Ga(wr,Ma){return!(wr.startLineNumber<1||wr.startLineNumber>Ma.length+1||wr.endLineNumberExclusive<1||wr.endLineNumberExclusive>Ma.length+1)}for(let wr of Qr){if(!wr.innerChanges)return!1;for(let Ma of wr.innerChanges)if(!(to(Ma.modifiedRange.getStartPosition(),A)&&to(Ma.modifiedRange.getEndPosition(),A)&&to(Ma.originalRange.getStartPosition(),v)&&to(Ma.originalRange.getEndPosition(),v)))return!1;if(!Ga(wr.modified,A)||!Ga(wr.original,v))return!1}return!0}),new UD(Qr,ri,Ar)}computeMoves(v,A,F,X,_e,Te,Be){return tWe(v,A,F,X,_e,Te).map(Ke=>{let Gt=this.refineDiff(A,F,new hm(Ke.original.toOffsetRange(),Ke.modified.toOffsetRange()),Te,Be),Zt=cWe(Gt.mappings,A,F,!0);return new tne(Ke,Zt)})}refineDiff(v,A,F,X,_e){let Te=new qD(v,F.seq1Range,_e),Be=new qD(A,F.seq2Range,_e),nt=Te.length+Be.length<500?this.dynamicProgrammingDiffing.compute(Te,Be,X):this.myersDiffingAlgorithm.compute(Te,Be,X),De=nt.diffs;return De=M0e(Te,Be,De),De=oWe(Te,Be,De),De=iWe(Te,Be,De),De=sWe(Te,Be,De),{mappings:De.map(Gt=>new lA(Te.translateRange(Gt.seq1Range),Be.translateRange(Gt.seq2Range))),hitTimeout:nt.hitTimeout}}};function cWe(h,v,A,F=!1){let X=[];for(let _e of D5e(h.map(Te=>mbt(Te,v,A)),(Te,Be)=>Te.original.overlapOrTouch(Be.original)||Te.modified.overlapOrTouch(Be.modified))){let Te=_e[0],Be=_e[_e.length-1];X.push(new xx(Te.original.join(Be.original),Te.modified.join(Be.modified),_e.map(nt=>nt.innerChanges[0])))}return AM(()=>!F&&X.length>0&&(X[0].modified.startLineNumber!==X[0].original.startLineNumber||A.length-X[X.length-1].modified.endLineNumberExclusive!==v.length-X[X.length-1].original.endLineNumberExclusive)?!1:UB(X,(_e,Te)=>Te.original.startLineNumber-_e.original.endLineNumberExclusive===Te.modified.startLineNumber-_e.modified.endLineNumberExclusive&&_e.original.endLineNumberExclusive=A[h.modifiedRange.startLineNumber-1].length&&h.originalRange.startColumn-1>=v[h.originalRange.startLineNumber-1].length&&h.originalRange.startLineNumber<=h.originalRange.endLineNumber+X&&h.modifiedRange.startLineNumber<=h.modifiedRange.endLineNumber+X&&(F=1);let _e=new Pc(h.originalRange.startLineNumber+F,h.originalRange.endLineNumber+1+X),Te=new Pc(h.modifiedRange.startLineNumber+F,h.modifiedRange.endLineNumber+1+X);return new xx(_e,Te,[h])}var L0e={getLegacy:()=>new ine,getDefault:()=>new cne};function JD(h,v){let A=Math.pow(10,v);return Math.round(h*A)/A}var gm=class{constructor(v,A,F,X=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,v))|0,this.g=Math.min(255,Math.max(0,A))|0,this.b=Math.min(255,Math.max(0,F))|0,this.a=JD(Math.max(Math.min(1,X),0),3)}static equals(v,A){return v.r===A.r&&v.g===A.g&&v.b===A.b&&v.a===A.a}},dA=class h{constructor(v,A,F,X){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=JD(Math.max(Math.min(1,A),0),3),this.l=JD(Math.max(Math.min(1,F),0),3),this.a=JD(Math.max(Math.min(1,X),0),3)}static equals(v,A){return v.h===A.h&&v.s===A.s&&v.l===A.l&&v.a===A.a}static fromRGBA(v){let A=v.r/255,F=v.g/255,X=v.b/255,_e=v.a,Te=Math.max(A,F,X),Be=Math.min(A,F,X),nt=0,De=0,Ke=(Be+Te)/2,Gt=Te-Be;if(Gt>0){switch(De=Math.min(Ke<=.5?Gt/(2*Ke):Gt/(2-2*Ke),1),Te){case A:nt=(F-X)/Gt+(F1&&(F-=1),F<1/6?v+(A-v)*6*F:F<1/2?A:F<2/3?v+(A-v)*(2/3-F)*6:v}static toRGBA(v){let A=v.h/360,{s:F,l:X,a:_e}=v,Te,Be,nt;if(F===0)Te=Be=nt=X;else{let De=X<.5?X*(1+F):X+F-X*F,Ke=2*X-De;Te=h._hue2rgb(Ke,De,A+1/3),Be=h._hue2rgb(Ke,De,A),nt=h._hue2rgb(Ke,De,A-1/3)}return new gm(Math.round(Te*255),Math.round(Be*255),Math.round(nt*255),_e)}},T8=class h{constructor(v,A,F,X){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=JD(Math.max(Math.min(1,A),0),3),this.v=JD(Math.max(Math.min(1,F),0),3),this.a=JD(Math.max(Math.min(1,X),0),3)}static equals(v,A){return v.h===A.h&&v.s===A.s&&v.v===A.v&&v.a===A.a}static fromRGBA(v){let A=v.r/255,F=v.g/255,X=v.b/255,_e=Math.max(A,F,X),Te=Math.min(A,F,X),Be=_e-Te,nt=_e===0?0:Be/_e,De;return Be===0?De=0:_e===A?De=((F-X)/Be%6+6)%6:_e===F?De=(X-A)/Be+2:De=(A-F)/Be+4,new h(Math.round(De*60),nt,_e,v.a)}static toRGBA(v){let{h:A,s:F,v:X,a:_e}=v,Te=X*F,Be=Te*(1-Math.abs(A/60%2-1)),nt=X-Te,[De,Ke,Gt]=[0,0,0];return A<60?(De=Te,Ke=Be):A<120?(De=Be,Ke=Te):A<180?(Ke=Te,Gt=Be):A<240?(Ke=Be,Gt=Te):A<300?(De=Be,Gt=Te):A<=360&&(De=Te,Gt=Be),De=Math.round((De+nt)*255),Ke=Math.round((Ke+nt)*255),Gt=Math.round((Gt+nt)*255),new gm(De,Ke,Gt,_e)}},yf=class h{static fromHex(v){return h.Format.CSS.parseHex(v)||h.red}static equals(v,A){return!v&&!A?!0:!v||!A?!1:v.equals(A)}get hsla(){return this._hsla?this._hsla:dA.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:T8.fromRGBA(this.rgba)}constructor(v){if(v)if(v instanceof gm)this.rgba=v;else if(v instanceof dA)this._hsla=v,this.rgba=dA.toRGBA(v);else if(v instanceof T8)this._hsva=v,this.rgba=T8.toRGBA(v);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(v){return!!v&&gm.equals(this.rgba,v.rgba)&&dA.equals(this.hsla,v.hsla)&&T8.equals(this.hsva,v.hsva)}getRelativeLuminance(){let v=h._relativeLuminanceForComponent(this.rgba.r),A=h._relativeLuminanceForComponent(this.rgba.g),F=h._relativeLuminanceForComponent(this.rgba.b),X=.2126*v+.7152*A+.0722*F;return JD(X,4)}static _relativeLuminanceForComponent(v){let A=v/255;return A<=.03928?A/12.92:Math.pow((A+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(v){let A=this.getRelativeLuminance(),F=v.getRelativeLuminance();return A>F}isDarkerThan(v){let A=this.getRelativeLuminance(),F=v.getRelativeLuminance();return A0)for(let X of F){let _e=X.filter(De=>De!==void 0),Te=_e[1],Be=_e[2];if(!Be)continue;let nt;if(Te==="rgb"){let De=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;nt=uWe(KB(h,X),XB(Be,De),!1)}else if(Te==="rgba"){let De=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;nt=uWe(KB(h,X),XB(Be,De),!0)}else if(Te==="hsl"){let De=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;nt=dWe(KB(h,X),XB(Be,De),!1)}else if(Te==="hsla"){let De=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;nt=dWe(KB(h,X),XB(Be,De),!0)}else Te==="#"&&(nt=_bt(KB(h,X),Te+Be));nt&&v.push(nt)}return v}function fWe(h){return!h||typeof h.getValue!="function"||typeof h.positionAt!="function"?[]:hbt(h)}var mWe=new RegExp("\\bMARK:\\s*(.*)$","d"),gbt=/^-+|-+$/g;function _We(h,v){var A;let F=[];if(v.findRegionSectionHeaders&&(!((A=v.foldingRules)===null||A===void 0)&&A.markers)){let X=vbt(h,v);F=F.concat(X)}if(v.findMarkSectionHeaders){let X=ybt(h);F=F.concat(X)}return F}function vbt(h,v){let A=[],F=h.getLineCount();for(let X=1;X<=F;X++){let _e=h.getLineContent(X),Te=_e.match(v.foldingRules.markers.start);if(Te){let Be={startLineNumber:X,startColumn:Te[0].length+1,endLineNumber:X,endColumn:_e.length+1};if(Be.endColumn>Be.startColumn){let nt={range:Be,...hWe(_e.substring(Te[0].length)),shouldBeInComments:!1};(nt.text||nt.hasSeparatorLine)&&A.push(nt)}}}return A}function ybt(h){let v=[],A=h.getLineCount();for(let F=1;F<=A;F++){let X=h.getLineContent(F);bbt(X,F,v)}return v}function bbt(h,v,A){mWe.lastIndex=0;let F=mWe.exec(h);if(F){let X=F.indices[1][0]+1,_e=F.indices[1][1]+1,Te={startLineNumber:v,startColumn:X,endLineNumber:v,endColumn:_e};if(Te.endColumn>Te.startColumn){let Be={range:Te,...hWe(F[1]),shouldBeInComments:!0};(Be.text||Be.hasSeparatorLine)&&A.push(Be)}}}function hWe(h){h=h.trim();let v=h.startsWith("-");return h=h.replace(gbt,""),{text:h,hasSeparatorLine:v}}var w0e=class extends zte{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(v){let A=[];for(let F=0;Fthis._lines.length)A=this._lines.length,F=this._lines[A-1].length+1,X=!0;else{let _e=this._lines[A-1].length+1;F<1?(F=1,X=!0):F>_e&&(F=_e,X=!0)}return X?{lineNumber:A,column:F}:v}},A8=class h{constructor(v,A){this._host=v,this._models=Object.create(null),this._foreignModuleFactory=A,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(v){return this._models[v]}_getModels(){let v=[];return Object.keys(this._models).forEach(A=>v.push(this._models[A])),v}acceptNewModel(v){this._models[v.url]=new w0e(VD.parse(v.url),v.lines,v.EOL,v.versionId)}acceptModelChanged(v,A){if(!this._models[v])return;this._models[v].onEvents(A)}acceptRemovedModel(v){this._models[v]&&delete this._models[v]}async computeUnicodeHighlights(v,A,F){let X=this._getModel(v);return X?Zte.computeUnicodeHighlights(X,A,F):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(v,A){let F=this._getModel(v);return F?_We(F,A):[]}async computeDiff(v,A,F,X){let _e=this._getModel(v),Te=this._getModel(A);return!_e||!Te?null:h.computeDiff(_e,Te,F,X)}static computeDiff(v,A,F,X){let _e=X==="advanced"?L0e.getDefault():L0e.getLegacy(),Te=v.getLinesContent(),Be=A.getLinesContent(),nt=_e.computeDiff(Te,Be,F),De=nt.changes.length>0?!1:this._modelsAreIdentical(v,A);function Ke(Gt){return Gt.map(Zt=>{var ir;return[Zt.original.startLineNumber,Zt.original.endLineNumberExclusive,Zt.modified.startLineNumber,Zt.modified.endLineNumberExclusive,(ir=Zt.innerChanges)===null||ir===void 0?void 0:ir.map(Ar=>[Ar.originalRange.startLineNumber,Ar.originalRange.startColumn,Ar.originalRange.endLineNumber,Ar.originalRange.endColumn,Ar.modifiedRange.startLineNumber,Ar.modifiedRange.startColumn,Ar.modifiedRange.endLineNumber,Ar.modifiedRange.endColumn])]})}return{identical:De,quitEarly:nt.hitTimeout,changes:Ke(nt.changes),moves:nt.moves.map(Gt=>[Gt.lineRangeMapping.original.startLineNumber,Gt.lineRangeMapping.original.endLineNumberExclusive,Gt.lineRangeMapping.modified.startLineNumber,Gt.lineRangeMapping.modified.endLineNumberExclusive,Ke(Gt.changes)])}}static _modelsAreIdentical(v,A){let F=v.getLineCount(),X=A.getLineCount();if(F!==X)return!1;for(let _e=1;_e<=F;_e++){let Te=v.getLineContent(_e),Be=A.getLineContent(_e);if(Te!==Be)return!1}return!0}async computeMoreMinimalEdits(v,A,F){let X=this._getModel(v);if(!X)return A;let _e=[],Te;A=A.slice(0).sort((nt,De)=>{if(nt.range&&De.range)return tc.compareRangesUsingStarts(nt.range,De.range);let Ke=nt.range?0:1,Gt=De.range?0:1;return Ke-Gt});let Be=0;for(let nt=1;nth._diffLimit){_e.push({range:nt,text:De});continue}let Zt=v5e(Gt,De,F),ir=X.offsetAt(tc.lift(nt).getStartPosition());for(let Ar of Zt){let Un=X.positionAt(ir+Ar.originalStart),Qi=X.positionAt(ir+Ar.originalStart+Ar.originalLength),Jn={text:De.substr(Ar.modifiedStart,Ar.modifiedLength),range:{startLineNumber:Un.lineNumber,startColumn:Un.column,endLineNumber:Qi.lineNumber,endColumn:Qi.column}};X.getValueInRange(Jn.range)!==Jn.text&&_e.push(Jn)}}return typeof Te=="number"&&_e.push({eol:Te,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),_e}async computeLinks(v){let A=this._getModel(v);return A?k5e(A):null}async computeDefaultDocumentColors(v){let A=this._getModel(v);return A?fWe(A):null}async textualSuggest(v,A,F,X){let _e=new c8,Te=new RegExp(F,X),Be=new Set;e:for(let nt of v){let De=this._getModel(nt);if(De){for(let Ke of De.words(Te))if(!(Ke===A||!isNaN(Number(Ke)))&&(Be.add(Ke),Be.size>h._suggestionsLimit))break e}}return{words:Array.from(Be),duration:_e.elapsed()}}async computeWordRanges(v,A,F,X){let _e=this._getModel(v);if(!_e)return Object.create(null);let Te=new RegExp(F,X),Be=Object.create(null);for(let nt=A.startLineNumber;ntthis._host.fhr(Be,nt)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Te,A),Promise.resolve(MB(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(v,A){if(!this._foreignModule||typeof this._foreignModule[v]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+v));try{return Promise.resolve(this._foreignModule[v].apply(this._foreignModule,A))}catch(F){return Promise.reject(F)}}};A8._diffLimit=1e5;A8._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=GFe());var O0e=!1;function F0e(h){if(O0e)return;O0e=!0;let v=new Pte(A=>{globalThis.postMessage(A)},A=>new A8(A,h));globalThis.onmessage=A=>{v.onmessage(A.data)}}globalThis.onmessage=h=>{O0e||F0e(null)};var Ebt=Object.defineProperty,Sbt=(h,v)=>{for(var A in v)Ebt(h,A,{get:v[A],enumerable:!0})},vWe={};Sbt(vWe,{EndOfLineState:()=>Ibt,IndentStyle:()=>Rbt,ScriptKind:()=>RM,ScriptTarget:()=>Dbt,TokenClass:()=>Cbt,createClassifier:()=>Tbt,createLanguageService:()=>xWe,displayPartsToString:()=>Abt,flattenDiagnosticMessageText:()=>xbt,typescript:()=>RWe});var QE=void 0,une={exports:{}},ZE=(()=>{var h=Object.defineProperty,v=Object.getOwnPropertyNames,A=(e,t)=>function(){return e&&(t=(0,e[v(e)[0]])(e=0)),t},F=(e,t)=>function(){return t||(0,e[v(e)[0]])((t={exports:{}}).exports,t),t.exports},X=(e,t)=>{for(var r in t)h(e,r,{get:t[r],enumerable:!0})},_e,Te,Be,nt=A({"src/compiler/corePublic.ts"(){"use strict";_e="5.4",Te="5.4.5",Be=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Be||{})}});function De(e){return e?e.length:0}function Ke(e,t){if(e)for(let r=0;r=0;r--){let i=t(e[r],r);if(i)return i}}function Zt(e,t){if(e!==void 0)for(let r=0;r=0;i--){let o=e[i];if(t(o,i))return o}}function ri(e,t,r){if(e===void 0)return-1;for(let i=r??0;i=0;i--)if(t(e[i],i))return i;return-1}function Ga(e,t){for(let r=0;rr(i,t[o]))}function Kc(e,t,r){for(let i=r||0;i{let s=t(o,i);if(s!==void 0){let[l,u]=s;l!==void 0&&u!==void 0&&r.set(l,u)}}),r}function mA(e,t,r){if(e.has(t))return e.get(t);let i=r();return e.set(t,i),i}function Av(e,t){return e.has(t)?!1:(e.add(t),!0)}function*pne(e){yield e}function YB(e,t,r){let i;if(e){i=[];let o=e.length,s,l,u=0,p=0;for(;u{let[s,l]=t(o,i);r.set(s,l)}),r}function Et(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function $B(e,t,r){let i;for(let o=0;oe[l])}function NWe(e,t){let r=[];for(let i of e)bf(r,i,t);return r}function h1(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?CWe(e,t,r):NWe(e,t)}function PWe(e,t){if(e.length===0)return et;let r=e[0],i=[r];for(let o=1;o0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function Jm(e,t,r=Cv){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&C.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(let l=o;ol&&C.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function In(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Dx(e,t){return e===void 0?t:t===void 0?e:Do(e)?Do(t)?xo(e,t):In(e,t):Do(t)?In(t,e):[e,t]}function _ne(e,t){return t<0?e.length+t:t}function Jr(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:_ne(t,r),i=i===void 0?t.length:_ne(t,i);for(let o=r;or(e[i],e[o])||tl(i,o))}function nS(e,t){return e.length===0?e:e.slice().sort(t)}function*ZB(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Iv(e,t){let r=DM(e);return j0e(e,r,t),r.map(i=>e[i])}function eG(e,t,r,i){for(;r>1),p=r(e[u],u);switch(i(p,t)){case-1:s=u+1;break;case 0:return u;case 1:l=u-1;break}}return~s}function nd(e,t,r,i,o){if(e&&e.length>0){let s=e.length;if(s>0){let l=i===void 0||i<0?0:i,u=o===void 0||l+o>s-1?s-1:l+o,p;for(arguments.length<=2?(p=e[l],l++):p=r;l<=u;)p=t(p,e[l],l),l++;return p}}return r}function Rs(e,t){return xy.call(e,t)}function C8(e,t){return xy.call(e,t)?e[t]:void 0}function Jh(e){let t=[];for(let r in e)xy.call(e,r)&&t.push(r);return t}function U0e(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let i of r)bf(t,i)}while(e=Object.getPrototypeOf(e));return t}function hA(e){let t=[];for(let r in e)xy.call(e,r)&&t.push(e[r]);return t}function hne(e,t){let r=new Array(e);for(let i=0;i100&&r>t.length>>1){let u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function aG(e,t){let r=new Map,i=0;function*o(){for(let l of r.values())Do(l)?yield*l:yield l}let s={has(l){let u=e(l);if(!r.has(u))return!1;let p=r.get(u);if(!Do(p))return t(p,l);for(let g of p)if(t(g,l))return!0;return!1},add(l){let u=e(l);if(r.has(u)){let p=r.get(u);if(Do(p))wr(p,l,t)||(p.push(l),i++);else{let g=p;t(g,l)||(r.set(u,[g,l]),i++)}}else r.set(u,l),i++;return this},delete(l){let u=e(l);if(!r.has(u))return!1;let p=r.get(u);if(Do(p)){for(let g=0;go(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function Do(e){return Array.isArray(e)}function gA(e){return Do(e)?e:[e]}function wo(e){return typeof e=="string"}function Rv(e){return typeof e=="number"}function ai(e,t){return e!==void 0&&t(e)?e:void 0}function aa(e,t){return e!==void 0&&t(e)?e:C.fail(`Invalid cast. The supplied value ${e} did not pass the test '${C.getFunctionName(t)}'.`)}function $a(e){}function Km(){return!1}function Dv(){return!0}function Xb(){}function el(e){return e}function yne(e){return e.toLowerCase()}function lh(e){return Pne.test(e)?e.replace(Pne,yne):e}function Ko(){throw new Error("Not implemented")}function Ed(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function ch(e){let t=new Map;return r=>{let i=`${typeof r}:${r}`,o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function H0e(e){let t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function bne(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function q0e(e,t,r,i,o){if(o){let s=[];for(let l=0;lnd(s,(u,p)=>p(u),l)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function Cv(e,t){return e===t}function Yb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function rS(e,t){return Cv(e,t)}function J0e(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function L8(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function Ene(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function ju(e,t){return J0e(e,t)}function Nx(e){return e?L8:ju}function Sne(){return _G}function Tne(e){_G!==e&&(_G=e,Mne=void 0)}function MM(e,t){return(Mne||(Mne=Y0e(_G)))(e,t)}function Ane(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Ay(e,t){return tl(e?1:0,t?1:0)}function QD(e,t,r){let i=Math.max(2,Math.floor(e.length*.34)),o=Math.floor(e.length*.4)+1,s;for(let l of t){let u=r(l);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;let p=kWe(e,u,o-.1);if(p===void 0)continue;C.assert(pr?u-r:1),m=Math.floor(t.length>r+u?r+u:t.length);o[0]=u;let b=u;for(let I=1;Ir)return;let T=i;i=o,o=T}let l=i[t.length];return l>r?void 0:l}function Sl(e,t,r){let i=e.length-t.length;return i>=0&&(r?Yb(e.slice(i),t):e.indexOf(t,i)===i)}function Px(e,t){return Sl(e,t)?e.slice(0,e.length-t.length):e}function Ine(e,t){return Sl(e,t)?e.slice(0,e.length-t.length):void 0}function lG(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function Mx(e,t){for(let r=0;rr===t)}function wWe(e,t){for(let r=0;ro&&(o=l.prefix.length,i=s)}return i}function uo(e,t,r){return r?Yb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function ZD(e,t){return uo(e,t)?e.substr(t.length):e}function dG(e,t,r=el){return uo(r(e),r(t))?e.substring(t.length):void 0}function k8({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&uo(r,e)&&Sl(r,t)}function w8(e,t){return r=>e(r)&&t(r)}function Xm(...e){return(...t)=>{let r;for(let i of e)if(r=i(...t),r)return r;return r}}function O8(e){return(...t)=>!e(...t)}function K0e(e){}function yA(e){return e===void 0?void 0:[e]}function F8(e,t,r,i,o,s){s=s||$a;let l=0,u=0,p=e.length,g=t.length,m=!1;for(;l(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(fG||{}),Nv=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=_ne(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(mG||{}),Y0e=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;let s=o(r,i);return s<0?-1:s>0?1:0}function t(r){let i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),hG,C,FWe=A({"src/compiler/debug.ts"(){"use strict";ia(),ia(),hG=(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))(hG||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(ln){return e.currentLogLevel<=ln}e.shouldLog=r;function i(ln,tt){e.loggingHost&&r(ln)&&e.loggingHost.log(ln,tt)}function o(ln){i(3,ln)}e.log=o,(ln=>{function tt(bi){i(1,bi)}ln.error=tt;function zt(bi){i(2,bi)}ln.warn=zt;function Rn(bi){i(3,bi)}ln.log=Rn;function ui(bi){i(4,bi)}ln.trace=ui})(o=e.log||(e.log={}));let s={};function l(){return t}e.getAssertionLevel=l;function u(ln){let tt=t;if(t=ln,ln>tt)for(let zt of Jh(s)){let Rn=s[zt];Rn!==void 0&&e[zt]!==Rn.assertion&&ln>=Rn.level&&(e[zt]=Rn,s[zt]=void 0)}}e.setAssertionLevel=u;function p(ln){return t>=ln}e.shouldAssert=p;function g(ln,tt){return p(ln)?!0:(s[tt]={level:ln,assertion:e[tt]},e[tt]=$a,!1)}function m(ln,tt){let zt=new Error(ln?`Debug Failure. ${ln}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(zt,tt||m),zt}e.fail=m;function b(ln,tt,zt){return m(`${tt||"Unexpected node."}\r +Node ${ve(ln.kind)} was unexpected.`,zt||b)}e.failBadSyntaxKind=b;function T(ln,tt,zt,Rn){ln||(tt=tt?`False expression: ${tt}`:"False expression.",zt&&(tt+=`\r +Verbose Debug Information: `+(typeof zt=="string"?zt:zt())),m(tt,Rn||T))}e.assert=T;function I(ln,tt,zt,Rn,ui){if(ln!==tt){let bi=zt?Rn?`${zt} ${Rn}`:zt:"";m(`Expected ${ln} === ${tt}. ${bi}`,ui||I)}}e.assertEqual=I;function R(ln,tt,zt,Rn){ln>=tt&&m(`Expected ${ln} < ${tt}. ${zt||""}`,Rn||R)}e.assertLessThan=R;function M(ln,tt,zt){ln>tt&&m(`Expected ${ln} <= ${tt}`,zt||M)}e.assertLessThanOrEqual=M;function N(ln,tt,zt){ln= ${tt}`,zt||N)}e.assertGreaterThanOrEqual=N;function O(ln,tt,zt){ln==null&&m(tt,zt||O)}e.assertIsDefined=O;function H(ln,tt,zt){return O(ln,tt,zt||H),ln}e.checkDefined=H;function K(ln,tt,zt){for(let Rn of ln)O(Rn,tt,zt||K)}e.assertEachIsDefined=K;function Z(ln,tt,zt){return K(ln,tt,zt||Z),ln}e.checkEachDefined=Z;function V(ln,tt="Illegal value:",zt){let Rn=typeof ln=="object"&&Rs(ln,"kind")&&Rs(ln,"pos")?"SyntaxKind: "+ve(ln.kind):JSON.stringify(ln);return m(`${tt} ${Rn}`,zt||V)}e.assertNever=V;function ue(ln,tt,zt,Rn){g(1,"assertEachNode")&&T(tt===void 0||Jn(ln,tt),zt||"Unexpected node.",()=>`Node array did not pass test '${oe(tt)}'.`,Rn||ue)}e.assertEachNode=ue;function G(ln,tt,zt,Rn){g(1,"assertNode")&&T(ln!==void 0&&(tt===void 0||tt(ln)),zt||"Unexpected node.",()=>`Node ${ve(ln?.kind)} did not pass test '${oe(tt)}'.`,Rn||G)}e.assertNode=G;function ne(ln,tt,zt,Rn){g(1,"assertNotNode")&&T(ln===void 0||tt===void 0||!tt(ln),zt||"Unexpected node.",()=>`Node ${ve(ln.kind)} should not have passed test '${oe(tt)}'.`,Rn||ne)}e.assertNotNode=ne;function he(ln,tt,zt,Rn){g(1,"assertOptionalNode")&&T(tt===void 0||ln===void 0||tt(ln),zt||"Unexpected node.",()=>`Node ${ve(ln?.kind)} did not pass test '${oe(tt)}'.`,Rn||he)}e.assertOptionalNode=he;function ye(ln,tt,zt,Rn){g(1,"assertOptionalToken")&&T(tt===void 0||ln===void 0||ln.kind===tt,zt||"Unexpected node.",()=>`Node ${ve(ln?.kind)} was not a '${ve(tt)}' token.`,Rn||ye)}e.assertOptionalToken=ye;function $(ln,tt,zt){g(1,"assertMissingNode")&&T(ln===void 0,tt||"Unexpected node.",()=>`Node ${ve(ln.kind)} was unexpected'.`,zt||$)}e.assertMissingNode=$;function Y(ln){}e.type=Y;function oe(ln){if(typeof ln!="function")return"";if(Rs(ln,"name"))return ln.name;{let tt=Function.prototype.toString.call(ln),zt=/^function\s+([\w$]+)\s*\(/.exec(tt);return zt?zt[1]:""}}e.getFunctionName=oe;function fe(ln){return`{ name: ${Hi(ln.escapedName)}; flags: ${At(ln.flags)}; declarations: ${Ft(ln.declarations,tt=>ve(tt.kind))} }`}e.formatSymbol=fe;function Ne(ln=0,tt,zt){let Rn=ie(tt);if(ln===0)return Rn.length>0&&Rn[0][0]===0?Rn[0][1]:"0";if(zt){let ui=[],bi=ln;for(let[ro,No]of Rn){if(ro>ln)break;ro!==0&&ro&ln&&(ui.push(No),bi&=~ro)}if(bi===0)return ui.join("|")}else for(let[ui,bi]of Rn)if(ui===ln)return bi;return ln.toString()}e.formatEnum=Ne;let me=new Map;function ie(ln){let tt=me.get(ln);if(tt)return tt;let zt=[];for(let ui in ln){let bi=ln[ui];typeof bi=="number"&&zt.push([bi,ui])}let Rn=Iv(zt,(ui,bi)=>tl(ui[0],bi[0]));return me.set(ln,Rn),Rn}function ve(ln){return Ne(ln,G8,!1)}e.formatSyntaxKind=ve;function Le(ln){return Ne(ln,e6,!1)}e.formatSnippetKind=Le;function He(ln){return Ne(ln,Q8,!1)}e.formatScriptKind=He;function Ee(ln){return Ne(ln,V8,!0)}e.formatNodeFlags=Ee;function Ce(ln){return Ne(ln,j8,!0)}e.formatModifierFlags=Ce;function Me(ln){return Ne(ln,Z8,!0)}e.formatTransformFlags=Me;function Fe(ln){return Ne(ln,t6,!0)}e.formatEmitFlags=Fe;function At(ln){return Ne(ln,K8,!0)}e.formatSymbolFlags=At;function Se(ln){return Ne(ln,X8,!0)}e.formatTypeFlags=Se;function je(ln){return Ne(ln,$8,!0)}e.formatSignatureFlags=je;function at(ln){return Ne(ln,Y8,!0)}e.formatObjectFlags=at;function Bt(ln){return Ne(ln,OM,!0)}e.formatFlowFlags=Bt;function yt(ln){return Ne(ln,U8,!0)}e.formatRelationComparisonResult=yt;function Qe(ln){return Ne(ln,H5,!0)}e.formatCheckMode=Qe;function gt(ln){return Ne(ln,q5,!0)}e.formatSignatureCheckMode=gt;function nn(ln){return Ne(ln,U5,!0)}e.formatTypeFacts=nn;let rn=!1,Nn;function Xn(ln){"__debugFlowFlags"in ln||Object.defineProperties(ln,{__tsDebuggerDisplay:{value(){let tt=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",zt=this.flags&-2048;return`${tt}${zt?` (${Bt(zt)})`:""}`}},__debugFlowFlags:{get(){return Ne(this.flags,OM,!0)}},__debugToString:{value(){return xr(this)}}})}function _n(ln){rn&&(typeof Object.setPrototypeOf=="function"?(Nn||(Nn=Object.create(Object.prototype),Xn(Nn)),Object.setPrototypeOf(ln,Nn)):Xn(ln))}e.attachFlowNodeDebugInfo=_n;let Qt;function Yt(ln){"__tsDebuggerDisplay"in ln||Object.defineProperties(ln,{__tsDebuggerDisplay:{value(tt){return tt=String(tt).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${tt}`}}})}function vi(ln){rn&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Array.prototype),Yt(Qt)),Object.setPrototypeOf(ln,Qt)):Yt(ln))}e.attachNodeArrayDebugInfo=vi;function ho(){if(rn)return;let ln=new WeakMap,tt=new WeakMap;Object.defineProperties(lu.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Rn=this.flags&33554432?"TransientSymbol":"Symbol",ui=this.flags&-33554433;return`${Rn} '${bl(this)}'${ui?` (${At(ui)})`:""}`}},__debugFlags:{get(){return At(this.flags)}}}),Object.defineProperties(lu.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Rn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",ui=this.flags&524288?this.objectFlags&-1344:0;return`${Rn}${this.symbol?` '${bl(this.symbol)}'`:""}${ui?` (${at(ui)})`:""}`}},__debugFlags:{get(){return Se(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?at(this.objectFlags):""}},__debugTypeToString:{value(){let Rn=ln.get(this);return Rn===void 0&&(Rn=this.checker.typeToString(this),ln.set(this,Rn)),Rn}}}),Object.defineProperties(lu.getSignatureConstructor().prototype,{__debugFlags:{get(){return je(this.flags)}},__debugSignatureToString:{value(){var Rn;return(Rn=this.checker)==null?void 0:Rn.signatureToString(this)}}});let zt=[lu.getNodeConstructor(),lu.getIdentifierConstructor(),lu.getTokenConstructor(),lu.getSourceFileConstructor()];for(let Rn of zt)Rs(Rn.prototype,"__debugKind")||Object.defineProperties(Rn.prototype,{__tsDebuggerDisplay:{value(){return`${ol(this)?"GeneratedIdentifier":Ve(this)?`Identifier '${Sr(this)}'`:Xi(this)?`PrivateIdentifier '${Sr(this)}'`:Na(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:hp(this)?`NumericLiteral ${this.text}`:H7(this)?`BigIntLiteral ${this.text}n`:_l(this)?"TypeParameterDeclaration":Co(this)?"ParameterDeclaration":Pl(this)?"ConstructorDeclaration":Zp(this)?"GetAccessorDeclaration":vp(this)?"SetAccessorDeclaration":nI(this)?"CallSignatureDeclaration":zk(this)?"ConstructSignatureDeclaration":j1(this)?"IndexSignatureDeclaration":Bk(this)?"TypePredicateNode":Rf(this)?"TypeReferenceNode":bh(this)?"FunctionTypeNode":OR(this)?"ConstructorTypeNode":rI(this)?"TypeQueryNode":yp(this)?"TypeLiteralNode":Gk(this)?"ArrayTypeNode":iI(this)?"TupleTypeNode":Y7(this)?"OptionalTypeNode":$7(this)?"RestTypeNode":Xy(this)?"UnionTypeNode":oI(this)?"IntersectionTypeNode":aI(this)?"ConditionalTypeNode":MS(this)?"InferTypeNode":LS(this)?"ParenthesizedTypeNode":Vk(this)?"ThisTypeNode":kS(this)?"TypeOperatorNode":wS(this)?"IndexedAccessTypeNode":WR(this)?"MappedTypeNode":Yy(this)?"LiteralTypeNode":FR(this)?"NamedTupleMember":lg(this)?"ImportTypeNode":ve(this.kind)}${this.flags?` (${Ee(this.flags)})`:""}`}},__debugKind:{get(){return ve(this.kind)}},__debugNodeFlags:{get(){return Ee(this.flags)}},__debugModifierFlags:{get(){return Ce(ooe(this))}},__debugTransformFlags:{get(){return Me(this.transformFlags)}},__debugIsParseTreeNode:{get(){return uC(this)}},__debugEmitFlags:{get(){return Fe(Va(this))}},__debugGetText:{value(ui){if(Xs(this))return"";let bi=tt.get(this);if(bi===void 0){let ro=Lo(this),No=ro&&Vn(ro);bi=No?A1(No,ro,ui):"",tt.set(this,bi)}return bi}}});rn=!0}e.enableDebugInfo=ho;function ki(ln){let tt=ln&7,zt=tt===0?"in out":tt===3?"[bivariant]":tt===2?"in":tt===1?"out":tt===4?"[independent]":"";return ln&8?zt+=" (unmeasurable)":ln&16&&(zt+=" (unreliable)"),zt}e.formatVariance=ki;class Ro{__debugToString(){var tt;switch(this.kind){case 3:return((tt=this.debugInfo)==null?void 0:tt.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Un(this.sources,this.targets||Ft(this.sources,()=>"any"),(zt,Rn)=>`${zt.__debugTypeToString()} -> ${typeof Rn=="string"?Rn:Rn.__debugTypeToString()}`).join(", ");case 2:return Un(this.sources,this.targets,(zt,Rn)=>`${zt.__debugTypeToString()} -> ${Rn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +`).join(` + `)} +m2: ${this.mapper2.__debugToString().split(` +`).join(` + `)}`;default:return V(this)}}}e.DebugTypeMapper=Ro;function nr(ln){return e.isDebugging?Object.setPrototypeOf(ln,Ro.prototype):ln}e.attachDebugPrototypeIfDebug=nr;function qr(ln){return console.log(xr(ln))}e.printControlFlowGraph=qr;function xr(ln){let tt=-1;function zt(ae){return ae.id||(ae.id=tt,tt--),ae.id}let Rn;(ae=>{ae.lr="\u2500",ae.ud="\u2502",ae.dr="\u256D",ae.dl="\u256E",ae.ul="\u256F",ae.ur="\u2570",ae.udr="\u251C",ae.udl="\u2524",ae.dlr="\u252C",ae.ulr="\u2534",ae.udlr="\u256B"})(Rn||(Rn={}));let ui;(ae=>{ae[ae.None=0]="None",ae[ae.Up=1]="Up",ae[ae.Down=2]="Down",ae[ae.Left=4]="Left",ae[ae.Right=8]="Right",ae[ae.UpDown=3]="UpDown",ae[ae.LeftRight=12]="LeftRight",ae[ae.UpLeft=5]="UpLeft",ae[ae.UpRight=9]="UpRight",ae[ae.DownLeft=6]="DownLeft",ae[ae.DownRight=10]="DownRight",ae[ae.UpDownLeft=7]="UpDownLeft",ae[ae.UpDownRight=11]="UpDownRight",ae[ae.UpLeftRight=13]="UpLeftRight",ae[ae.DownLeftRight=14]="DownLeftRight",ae[ae.UpDownLeftRight=15]="UpDownLeftRight",ae[ae.NoChildren=16]="NoChildren"})(ui||(ui={}));let bi=2032,ro=882,No=Object.create(null),_a=[],ja=[],En=j(ln,new Set);for(let ae of _a)ae.text=mn(ae.flowNode,ae.circular),xt(ae);let wn=Ye(En),Ue=ht(wn);return Vt(En,0),q();function mt(ae){return!!(ae.flags&128)}function ft(ae){return!!(ae.flags&12)&&!!ae.antecedents}function Nt(ae){return!!(ae.flags&bi)}function le(ae){return!!(ae.flags&ro)}function We(ae){let J=[];for(let pe of ae.edges)pe.source===ae&&J.push(pe.target);return J}function pt(ae){let J=[];for(let pe of ae.edges)pe.target===ae&&J.push(pe.source);return J}function j(ae,J){let pe=zt(ae),Ge=No[pe];if(Ge&&J.has(ae))return Ge.circular=!0,Ge={id:-1,flowNode:ae,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},_a.push(Ge),Ge;if(J.add(ae),!Ge)if(No[pe]=Ge={id:pe,flowNode:ae,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},_a.push(Ge),ft(ae))for(let ke of ae.antecedents)ot(Ge,ke,J);else Nt(ae)&&ot(Ge,ae.antecedent,J);return J.delete(ae),Ge}function ot(ae,J,pe){let Ge=j(J,pe),ke={source:ae,target:Ge};ja.push(ke),ae.edges.push(ke),Ge.edges.push(ke)}function xt(ae){if(ae.level!==-1)return ae.level;let J=0;for(let pe of pt(ae))J=Math.max(J,xt(pe)+1);return ae.level=J}function Ye(ae){let J=0;for(let pe of We(ae))J=Math.max(J,Ye(pe));return J+1}function ht(ae){let J=Lt(Array(ae),0);for(let pe of _a)J[pe.level]=Math.max(J[pe.level],pe.text.length);return J}function Vt(ae,J){if(ae.lane===-1){ae.lane=J,ae.endLane=J;let pe=We(ae);for(let Ge=0;Ge0&&J++;let ke=pe[Ge];Vt(ke,J),ke.endLane>ae.endLane&&(J=ke.endLane)}ae.endLane=J}}function yn(ae){if(ae&2)return"Start";if(ae&4)return"Branch";if(ae&8)return"Loop";if(ae&16)return"Assignment";if(ae&32)return"True";if(ae&64)return"False";if(ae&128)return"SwitchClause";if(ae&256)return"ArrayMutation";if(ae&512)return"Call";if(ae&1024)return"ReduceLabel";if(ae&1)return"Unreachable";throw new Error}function fn(ae){let J=Vn(ae);return A1(J,ae,!1)}function mn(ae,J){let pe=yn(ae.flags);if(J&&(pe=`${pe}#${zt(ae)}`),le(ae))ae.node&&(pe+=` (${fn(ae.node)})`);else if(mt(ae)){let Ge=[];for(let ke=ae.clauseStart;keMath.max(Pt,Kt.lane),0)+1,pe=Lt(Array(J),""),Ge=Ue.map(()=>Array(J)),ke=Ue.map(()=>Lt(Array(J),0));for(let Pt of _a){Ge[Pt.level][Pt.lane]=Pt;let Kt=We(Pt);for(let On=0;On0&&(yi|=1),On0&&(yi|=1),On0?ke[Pt-1][Kt]:0,On=Kt>0?ke[Pt][Kt-1]:0,Gn=ke[Pt][Kt];Gn||(Tn&8&&(Gn|=12),On&2&&(Gn|=3),ke[Pt][Kt]=Gn)}for(let Pt=0;Pt0?ae.repeat(J):"";let pe="";for(;pe.length=",i.version)),Jf(o.major)||r.push(Jf(o.minor)?uh("<",o.version.increment("major")):Jf(o.patch)?uh("<",o.version.increment("minor")):uh("<=",o.version)),!0):!1}function BWe(e,t,r){let i=Lne(t);if(!i)return!1;let{version:o,major:s,minor:l,patch:u}=i;if(Jf(s))(e==="<"||e===">")&&r.push(uh("<",vm.zero));else switch(e){case"~":r.push(uh(">=",o)),r.push(uh("<",o.increment(Jf(l)?"major":"minor")));break;case"^":r.push(uh(">=",o)),r.push(uh("<",o.increment(o.major>0||Jf(l)?"major":o.minor>0||Jf(u)?"minor":"patch")));break;case"<":case">=":r.push(Jf(l)||Jf(u)?uh(e,o.with({prerelease:"0"})):uh(e,o));break;case"<=":case">":r.push(Jf(l)?uh(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):Jf(u)?uh(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):uh(e,o));break;case"=":case void 0:Jf(l)||Jf(u)?(r.push(uh(">=",o.with({prerelease:"0"}))),r.push(uh("<",o.increment(Jf(l)?"major":"minor").with({prerelease:"0"})))):r.push(uh("=",o));break;default:return!1}return!0}function Jf(e){return e==="*"||e==="x"||e==="X"}function uh(e,t){return{operator:e,operand:t}}function GWe(e,t){if(t.length===0)return!0;for(let r of t)if(VWe(e,r))return!0;return!1}function VWe(e,t){for(let r of t)if(!jWe(e,r.operator,r.operand))return!1;return!0}function jWe(e,t,r){let i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return C.assertNever(t)}}function UWe(e){return Ft(e,HWe).join(" || ")||"*"}function HWe(e){return Ft(e,qWe).join(" ")}function qWe(e){return`${e.operator}${e.operand}`}var Z0e,e1e,t1e,n1e,r1e,kne,gG,vm,LM,i1e,o1e,a1e,s1e,l1e,JWe=A({"src/compiler/semver.ts"(){"use strict";ia(),Z0e=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,e1e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,t1e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,n1e=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,r1e=/^[a-z0-9-]+$/i,kne=/^(0|[1-9]\d*)$/,gG=class I8{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=C.checkDefined($0e(t),"Invalid version")),C.assert(t>=0,"Invalid argument: major"),C.assert(r>=0,"Invalid argument: minor"),C.assert(i>=0,"Invalid argument: patch");let l=o?Do(o)?o:o.split("."):et,u=s?Do(s)?s:s.split("."):et;C.assert(Jn(l,p=>t1e.test(p)),"Invalid argument: prerelease"),C.assert(Jn(u,p=>r1e.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){let r=$0e(t);if(!r)return;let{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new I8(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:tl(this.major,t.major)||tl(this.minor,t.minor)||tl(this.patch,t.patch)||WWe(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new I8(this.major+1,0,0);case"minor":return new I8(this.major,this.minor+1,0);case"patch":return new I8(this.major,this.minor,this.patch+1);default:return C.assertNever(t)}}with(t){let{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new I8(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return Et(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),Et(this.build)&&(t+=`+${this.build.join(".")}`),t}},gG.zero=new gG(0,0,0,["0"]),vm=gG,LM=class yWe{constructor(t){this._alternatives=t?C.checkDefined(Q0e(t),"Invalid range spec."):et}static tryParse(t){let r=Q0e(t);if(r){let i=new yWe("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new vm(t)),GWe(t,this._alternatives)}toString(){return UWe(this._alternatives)}},i1e=/\|\|/g,o1e=/\s+/g,a1e=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,s1e=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,l1e=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function c1e(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function KWe(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&c1e(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function XWe(){if(pG())try{let{performance:e,PerformanceObserver:t}=QE("perf_hooks");if(c1e(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function wne(){return vG}var vG,One,Ks,YWe=A({"src/compiler/performanceCore.ts"(){"use strict";ia(),vG=KWe()||XWe(),One=vG?.performance,Ks=One?()=>One.now():Date.now?Date.now:()=>+new Date}}),B8,rd,$We=A({"src/compiler/perfLogger.ts"(){"use strict";try{let e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";B8=QE(e)}catch{B8=void 0}rd=B8?.logEvent?B8:void 0}});function u1e(e,t,r,i){return e?yG(t,r,i):bG}function yG(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&nl(t)}function s(){--i===0?(nl(r),Yp(e,t,r)):i<0&&C.fail("enter/exit count does not match.")}}function nl(e){if(Lx){let t=eC.get(e)??0;eC.set(e,t+1),kx.set(e,Ks()),iS?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Yp(e,t,r){if(Lx){let i=(r!==void 0?kx.get(r):void 0)??Ks(),o=(t!==void 0?kx.get(t):void 0)??Fne,s=wx.get(e)||0;wx.set(e,s+(i-o)),iS?.measure(e,t,r)}}function QWe(e){return eC.get(e)||0}function ZWe(e){return wx.get(e)||0}function e9e(e){wx.forEach((t,r)=>e(r,t))}function t9e(e){kx.forEach((t,r)=>e(r))}function n9e(e){e!==void 0?wx.delete(e):wx.clear(),iS?.clearMeasures(e)}function r9e(e){e!==void 0?(eC.delete(e),kx.delete(e)):(eC.clear(),kx.clear()),iS?.clearMarks(e)}function i9e(){return Lx}function o9e(e=gu){var t;return Lx||(Lx=!0,kM||(kM=wne()),kM&&(Fne=kM.performance.timeOrigin,(kM.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(iS=kM.performance))),!0}function a9e(){Lx&&(kx.clear(),eC.clear(),wx.clear(),iS=void 0,Lx=!1)}var kM,iS,bG,Lx,Fne,kx,eC,wx,s9e=A({"src/compiler/performance.ts"(){"use strict";ia(),bG={enter:$a,exit:$a},Lx=!1,Fne=Ks(),kx=new Map,eC=new Map,wx=new Map}}),Wne={};X(Wne,{clearMarks:()=>r9e,clearMeasures:()=>n9e,createTimer:()=>yG,createTimerIf:()=>u1e,disable:()=>a9e,enable:()=>o9e,forEachMark:()=>t9e,forEachMeasure:()=>e9e,getCount:()=>QWe,getDuration:()=>ZWe,isEnabled:()=>i9e,mark:()=>nl,measure:()=>Yp,nullTimer:()=>bG});var oS=A({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";s9e()}}),lr,wM,zne,Bne,l9e=A({"src/compiler/tracing.ts"(){"use strict";ia(),oS(),(e=>{let t,r=0,i=0,o,s=[],l,u=[];function p(G,ne,he){if(C.assert(!lr,"Tracing already started"),t===void 0)try{t=QE("fs")}catch(fe){throw new Error(`tracing requires having fs +(original error: ${fe.message||fe})`)}o=G,s.length=0,l===void 0&&(l=Zr(ne,"legend.json")),t.existsSync(ne)||t.mkdirSync(ne,{recursive:!0});let ye=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",$=Zr(ne,`trace${ye}.json`),Y=Zr(ne,`types${ye}.json`);u.push({configFilePath:he,tracePath:$,typesPath:Y}),i=t.openSync($,"w"),lr=e;let oe={cat:"__metadata",ph:"M",ts:1e3*Ks(),pid:1,tid:1};t.writeSync(i,`[ +`+[{name:"process_name",args:{name:"tsc"},...oe},{name:"thread_name",args:{name:"Main"},...oe},{name:"TracingStartedInBrowser",...oe,cat:"disabled-by-default-devtools.timeline"}].map(fe=>JSON.stringify(fe)).join(`, +`))}e.startTracing=p;function g(){C.assert(lr,"Tracing is not in progress"),C.assert(!!s.length==(o!=="server")),t.writeSync(i,` +] +`),t.closeSync(i),lr=void 0,s.length?V(s):u[u.length-1].typesPath=void 0}e.stopTracing=g;function m(G){o!=="server"&&s.push(G)}e.recordType=m;let b;(G=>{G.Parse="parse",G.Program="program",G.Bind="bind",G.Check="check",G.CheckTypes="checkTypes",G.Emit="emit",G.Session="session"})(b=e.Phase||(e.Phase={}));function T(G,ne,he){K("I",G,ne,he,'"s":"g"')}e.instant=T;let I=[];function R(G,ne,he,ye=!1){ye&&K("B",G,ne,he),I.push({phase:G,name:ne,args:he,time:1e3*Ks(),separateBeginAndEnd:ye})}e.push=R;function M(G){C.assert(I.length>0),H(I.length-1,1e3*Ks(),G),I.length--}e.pop=M;function N(){let G=1e3*Ks();for(let ne=I.length-1;ne>=0;ne--)H(ne,G);I.length=0}e.popAll=N;let O=1e3*10;function H(G,ne,he){let{phase:ye,name:$,args:Y,time:oe,separateBeginAndEnd:fe}=I[G];fe?(C.assert(!he,"`results` are not supported for events with `separateBeginAndEnd`"),K("E",ye,$,Y,void 0,ne)):O-oe%O<=ne-oe&&K("X",ye,$,{...Y,results:he},`"dur":${ne-oe}`,oe)}function K(G,ne,he,ye,$,Y=1e3*Ks()){o==="server"&&ne==="checkTypes"||(nl("beginTracing"),t.writeSync(i,`, +{"pid":1,"tid":1,"ph":"${G}","cat":"${ne}","ts":${Y},"name":"${he}"`),$&&t.writeSync(i,`,${$}`),ye&&t.writeSync(i,`,"args":${JSON.stringify(ye)}`),t.writeSync(i,"}"),nl("endTracing"),Yp("Tracing","beginTracing","endTracing"))}function Z(G){let ne=Vn(G);return ne?{path:ne.path,start:he(Es(ne,G.pos)),end:he(Es(ne,G.end))}:void 0;function he(ye){return{line:ye.line+1,character:ye.character+1}}}function V(G){var ne,he,ye,$,Y,oe,fe,Ne,me,ie,ve,Le,He,Ee,Ce,Me,Fe,At,Se;nl("beginDumpTypes");let je=u[u.length-1].typesPath,at=t.openSync(je,"w"),Bt=new Map;t.writeSync(at,"[");let yt=G.length;for(let Qe=0;Qexr.id),referenceLocation:Z(qr.node)}}let Qt={};if(gt.flags&16777216){let qr=gt;Qt={conditionalCheckType:(oe=qr.checkType)==null?void 0:oe.id,conditionalExtendsType:(fe=qr.extendsType)==null?void 0:fe.id,conditionalTrueType:((Ne=qr.resolvedTrueType)==null?void 0:Ne.id)??-1,conditionalFalseType:((me=qr.resolvedFalseType)==null?void 0:me.id)??-1}}let Yt={};if(gt.flags&33554432){let qr=gt;Yt={substitutionBaseType:(ie=qr.baseType)==null?void 0:ie.id,constraintType:(ve=qr.constraint)==null?void 0:ve.id}}let vi={};if(nn&1024){let qr=gt;vi={reverseMappedSourceType:(Le=qr.source)==null?void 0:Le.id,reverseMappedMappedType:(He=qr.mappedType)==null?void 0:He.id,reverseMappedConstraintType:(Ee=qr.constraintType)==null?void 0:Ee.id}}let ho={};if(nn&256){let qr=gt;ho={evolvingArrayElementType:qr.elementType.id,evolvingArrayFinalType:(Ce=qr.finalArrayType)==null?void 0:Ce.id}}let ki,Ro=gt.checker.getRecursionIdentity(gt);Ro&&(ki=Bt.get(Ro),ki||(ki=Bt.size,Bt.set(Ro,ki)));let nr={id:gt.id,intrinsicName:gt.intrinsicName,symbolName:rn?.escapedName&&Hi(rn.escapedName),recursionId:ki,isTuple:nn&8?!0:void 0,unionTypes:gt.flags&1048576?(Me=gt.types)==null?void 0:Me.map(qr=>qr.id):void 0,intersectionTypes:gt.flags&2097152?gt.types.map(qr=>qr.id):void 0,aliasTypeArguments:(Fe=gt.aliasTypeArguments)==null?void 0:Fe.map(qr=>qr.id),keyofType:gt.flags&4194304?(At=gt.type)==null?void 0:At.id:void 0,...Xn,..._n,...Qt,...Yt,...vi,...ho,destructuringPattern:Z(gt.pattern),firstDeclaration:Z((Se=rn?.declarations)==null?void 0:Se[0]),flags:C.formatTypeFlags(gt.flags).split("|"),display:Nn};t.writeSync(at,JSON.stringify(nr)),Qe(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.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(G8||{}),V8=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(V8||{}),j8=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(j8||{}),EG=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(EG||{}),U8=(e=>(e[e.None=0]="None",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))(U8||{}),H8=(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))(H8||{}),SG=(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.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(SG||{}),OM=(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))(OM||{}),TG=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(TG||{}),Ox=class{},q8=(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))(q8||{}),AG=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(AG||{}),IG=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(IG||{}),J8=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(J8||{}),xG=(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))(xG||{}),RG=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(RG||{}),DG=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(DG||{}),CG=(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))(CG||{}),NG=(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))(NG||{}),PG=(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.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=848330095]="NodeBuilderFlagsMask",e))(PG||{}),MG=(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))(MG||{}),LG=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(LG||{}),kG=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(kG||{}),wG=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(wG||{}),OG=(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))(OG||{}),K8=(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=-1]="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))(K8||{}),FG=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(FG||{}),WG=(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))(WG||{}),zG=(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.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(zG||{}),BG=(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.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(BG||{}),X8=(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.Reserved1=536870912]="Reserved1",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.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.Primitive=402784252]="Primitive",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=473694207]="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.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(X8||{}),Y8=(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.InstantiatedMapped=96]="InstantiatedMapped",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[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Y8||{}),GG=(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))(GG||{}),VG=(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))(VG||{}),jG=(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))(jG||{}),UG=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(UG||{}),HG=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(HG||{}),qG=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(qG||{}),$8=(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.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))($8||{}),JG=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(JG||{}),KG=(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))(KG||{}),XG=(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))(XG||{}),YG=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(YG||{}),$G=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))($G||{}),QG=(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))(QG||{}),FM=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(FM||{}),Fx=(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))(Fx||{}),ZG=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(ZG||{}),eV=(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))(eV||{}),tV=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(tV||{}),nV=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(nV||{}),tC=(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[e.Preserve=200]="Preserve",e))(tC||{}),rV=(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))(rV||{}),iV=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(iV||{}),oV=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(oV||{}),Q8=(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))(Q8||{}),aV=(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))(aV||{}),sV=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(sV||{}),lV=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(lV||{}),cV=(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))(cV||{}),uV=(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))(uV||{}),Z8=(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))(Z8||{}),e6=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(e6||{}),t6=(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.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(t6||{}),dV=(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))(dV||{}),pV=(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.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="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))(pV||{}),fV=(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[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(fV||{}),mV=(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))(mV||{}),_V=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(_V||{}),hV=(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))(hV||{}),gV=(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.ImportAttributes=526226]="ImportAttributes",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))(gV||{}),vV=(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))(vV||{}),WM={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}},yV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(yV||{})}});function nC(e){let t=5381;for(let r=0;r{K.isClosed=!0,vA(t,K)}}}function u(N){let O=[];return O.pollingInterval=N,O.pollIndex=0,O.pollScheduled=!1,O}function p(N,O){O.pollIndex=m(O,O.pollingInterval,O.pollIndex,i6[O.pollingInterval]),O.length?M(O.pollingInterval):(C.assert(O.pollIndex===0),O.pollScheduled=!1)}function g(N,O){m(r,250,0,r.length),p(N,O),!O.pollScheduled&&r.length&&M(250)}function m(N,O,H,K){return f1e(e,N,H,K,Z);function Z(V,ue,G){G?(V.unchangedPolls=0,N!==r&&(N[ue]=void 0,I(V))):V.unchangedPolls!==BM[O]?V.unchangedPolls++:N===r?(V.unchangedPolls=1,N[ue]=void 0,T(V,250)):O!==2e3&&(V.unchangedPolls++,N[ue]=void 0,T(V,O===250?500:2e3))}}function b(N){switch(N){case 250:return i;case 500:return o;case 2e3:return s}}function T(N,O){b(O).push(N),R(O)}function I(N){r.push(N),R(250)}function R(N){b(N).pollScheduled||M(N)}function M(N){b(N).pollScheduled=e.setTimeout(N===250?g:p,N,N===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",b(N))}}function d9e(e,t,r,i){let o=Xp(),s=i?new Map:void 0,l=new Map,u=Pu(t);return p;function p(m,b,T,I){let R=u(m);o.add(R,b).length===1&&s&&s.set(R,r(m)||kp);let M=li(R)||".",N=l.get(M)||g(li(m)||".",M,I);return N.referenceCount++,{close:()=>{N.referenceCount===1?(N.close(),l.delete(M)):N.referenceCount--,o.remove(R,b)}}}function g(m,b,T){let I=e(m,1,(R,M)=>{if(!wo(M))return;let N=bo(M,m),O=u(N),H=N&&o.get(O);if(H){let K,Z=1;if(s){let V=s.get(O);if(R==="change"&&(K=r(N)||kp,K.getTime()===V.getTime()))return;K||(K=r(N)||kp),s.set(O,K),V===kp?Z=0:K===kp&&(Z=2)}for(let V of H)V(N,Z,K)}},!1,500,T);return I.referenceCount=0,l.set(b,I),I}}function p9e(e){let t=[],r=0,i;return o;function o(u,p){let g={fileName:u,callback:p,mtime:bA(e,u)};return t.push(g),l(),{close:()=>{g.isClosed=!0,vA(t,g)}}}function s(){i=void 0,r=f1e(e,t,r,i6[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function m1e(e,t,r,i,o){let l=Pu(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((p,g,m)=>{var b;return(b=e.get(l))==null?void 0:b.callbacks.slice().forEach(T=>T(p,g,m))}),callbacks:[i]}),{close:()=>{let p=e.get(l);p&&(!Mx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Cf(p)))}}}function f9e(e,t){let r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,bV(r,i),t),!0):!1}function bV(e,t){return e===0?0:t===0?2:1}function zM(e){return Hne(e)}function Vne(e){Hne=e}function m9e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){let p=new Map,g=Xp(),m=new Map,b,T=Nx(!t),I=Pu(t);return(G,ne,he,ye)=>he?R(G,ye,ne):e(G,ne,he,ye);function R(G,ne,he){let ye=I(G),$=p.get(ye);$?$.refCount++:($={watcher:e(G,oe=>{V(oe,ne)||(ne?.synchronousWatchDirectory?(M(ye,oe),Z(G,ye,ne)):N(G,ye,oe,ne))},!1,ne),refCount:1,childWatches:et},p.set(ye,$),Z(G,ye,ne));let Y=he&&{dirName:G,callback:he};return Y&&g.add(ye,Y),{dirName:G,close:()=>{let oe=C.checkDefined(p.get(ye));Y&&g.remove(ye,Y),oe.refCount--,!oe.refCount&&(p.delete(ye),Cf(oe),oe.childWatches.forEach($m))}}}function M(G,ne,he){let ye,$;wo(ne)?ye=ne:$=ne,g.forEach((Y,oe)=>{if(!($&&$.get(oe)===!0)&&(oe===G||uo(G,oe)&&G[oe.length]===il))if($)if(he){let fe=$.get(oe);fe?fe.push(...he):$.set(oe,he.slice())}else $.set(oe,!0);else Y.forEach(({callback:fe})=>fe(ye))})}function N(G,ne,he,ye){let $=p.get(ne);if($&&o(G,1)){O(G,ne,he,ye);return}M(ne,he),K($)}function O(G,ne,he,ye){let $=m.get(ne);$?$.fileNames.push(he):m.set(ne,{dirName:G,options:ye,fileNames:[he]}),b&&(u(b),b=void 0),b=l(H,1e3,"timerToUpdateChildWatches")}function H(){b=void 0,zM(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);let G=Ks(),ne=new Map;for(;!b&&m.size;){let ye=m.entries().next();C.assert(!ye.done);let{value:[$,{dirName:Y,options:oe,fileNames:fe}]}=ye;m.delete($);let Ne=Z(Y,$,oe);M($,ne,Ne?void 0:fe)}zM(`sysLog:: invokingWatchers:: Elapsed:: ${Ks()-G}ms:: ${m.size}`),g.forEach((ye,$)=>{let Y=ne.get($);Y&&ye.forEach(({callback:oe,dirName:fe})=>{Do(Y)?Y.forEach(oe):oe(fe)})});let he=Ks()-G;zM(`sysLog:: Elapsed:: ${he}ms:: onTimerToUpdateChildWatches:: ${m.size} ${b}`)}function K(G){if(!G)return;let ne=G.childWatches;G.childWatches=et;for(let he of ne)he.close(),K(p.get(I(he.dirName)))}function Z(G,ne,he){let ye=p.get(ne);if(!ye)return!1;let $,Y=F8(o(G,1)?Vi(i(G),Ne=>{let me=bo(Ne,G);return!V(me,he)&&T(me,va(s(me)))===0?me:void 0}):et,ye.childWatches,(Ne,me)=>T(Ne,me.dirName),oe,$m,fe);return ye.childWatches=$||et,Y;function oe(Ne){let me=R(Ne,he);fe(me)}function fe(Ne){($||($=[])).push(Ne)}}function V(G,ne){return Et(GM,he=>ue(G,he))||_1e(G,ne,t,r)}function ue(G,ne){return G.includes(ne)?!0:t?!1:I(G).includes(ne)}}function _9e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function h9e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||kp),t(e,s!==kp?0:2,s)):t(e,1,s)}}function _1e(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(S5(e,t?.excludeFiles,r,i())||S5(e,t?.excludeDirectories,r,i()))}function h1e(e,t,r,i,o){return(s,l)=>{if(s==="rename"){let u=l?va(Zr(e,l)):e;(!l||!_1e(u,r,i,o))&&t(u)}}}function jne({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:g,realpath:m,tscWatchFile:b,useNonPollingWatchers:T,tscWatchDirectory:I,inodeWatching:R,fsWatchWithTimestamp:M,sysLog:N}){let O=new Map,H=new Map,K=new Map,Z,V,ue,G,ne=!1;return{watchFile:he,watchDirectory:fe};function he(Ee,Ce,Me,Fe){Fe=Y(Fe,T);let At=C.checkDefined(Fe.watchFile);switch(At){case 0:return ie(Ee,Ce,250,void 0);case 1:return ie(Ee,Ce,Me,void 0);case 2:return ye()(Ee,Ce,Me,void 0);case 3:return $()(Ee,Ce,void 0,void 0);case 4:return ve(Ee,0,h9e(Ee,Ce,t),!1,Me,Ow(Fe));case 5:return ue||(ue=d9e(ve,l,t,M)),ue(Ee,Ce,Me,Ow(Fe));default:C.assertNever(At)}}function ye(){return Z||(Z=u9e({getModifiedTime:t,setTimeout:r}))}function $(){return V||(V=p9e({getModifiedTime:t,setTimeout:r}))}function Y(Ee,Ce){if(Ee&&Ee.watchFile!==void 0)return Ee;switch(b){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return oe(4,1,Ee);case"UseFsEventsWithFallbackDynamicPolling":return oe(4,2,Ee);case"UseFsEventsOnParentDirectory":Ce=!0;default:return Ce?oe(5,1,Ee):{watchFile:4}}}function oe(Ee,Ce,Me){let Fe=Me?.fallbackPolling;return{watchFile:Ee,fallbackPolling:Fe===void 0?Ce:Fe}}function fe(Ee,Ce,Me,Fe){return p?ve(Ee,1,h1e(Ee,Ce,Fe,l,u),Me,500,Ow(Fe)):(G||(G=m9e({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:g,watchDirectory:Ne,realpath:m,setTimeout:r,clearTimeout:i})),G(Ee,Ce,Me,Fe))}function Ne(Ee,Ce,Me,Fe){C.assert(!Me);let At=me(Fe),Se=C.checkDefined(At.watchDirectory);switch(Se){case 1:return ie(Ee,()=>Ce(Ee),500,void 0);case 2:return ye()(Ee,()=>Ce(Ee),500,void 0);case 3:return $()(Ee,()=>Ce(Ee),void 0,void 0);case 0:return ve(Ee,1,h1e(Ee,Ce,Fe,l,u),Me,500,Ow(At));default:C.assertNever(Se)}}function me(Ee){if(Ee&&Ee.watchDirectory!==void 0)return Ee;switch(I){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let Ce=Ee?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ce!==void 0?Ce:void 0}}}function ie(Ee,Ce,Me,Fe){return m1e(O,l,Ee,Ce,At=>e(Ee,At,Me,Fe))}function ve(Ee,Ce,Me,Fe,At,Se){return m1e(Fe?K:H,l,Ee,Me,je=>Le(Ee,Ce,je,Fe,At,Se))}function Le(Ee,Ce,Me,Fe,At,Se){let je,at;R&&(je=Ee.substring(Ee.lastIndexOf(il)),at=je.slice(il.length));let Bt=s(Ee,Ce)?Qe():rn();return{close:()=>{Bt&&(Bt.close(),Bt=void 0)}};function yt(Nn){Bt&&(N(`sysLog:: ${Ee}:: Changing watcher to ${Nn===Qe?"Present":"Missing"}FileSystemEntryWatcher`),Bt.close(),Bt=Nn())}function Qe(){if(ne)return N(`sysLog:: ${Ee}:: Defaulting to watchFile`),nn();try{let Nn=(Ce===1||!M?o:He)(Ee,Fe,R?gt:Me);return Nn.on("error",()=>{Me("rename",""),yt(rn)}),Nn}catch(Nn){return ne||(ne=Nn.code==="ENOSPC"),N(`sysLog:: ${Ee}:: Changing to watchFile`),nn()}}function gt(Nn,Xn){let _n;if(Xn&&Sl(Xn,"~")&&(_n=Xn,Xn=Xn.slice(0,Xn.length-1)),Nn==="rename"&&(!Xn||Xn===at||Sl(Xn,je))){let Qt=t(Ee)||kp;_n&&Me(Nn,_n,Qt),Me(Nn,Xn,Qt),R?yt(Qt===kp?rn:Qe):Qt===kp&&yt(rn)}else _n&&Me(Nn,_n),Me(Nn,Xn)}function nn(){return he(Ee,_9e(Me),At,Se)}function rn(){return he(Ee,(Nn,Xn,_n)=>{Xn===0&&(_n||(_n=t(Ee)||kp),_n!==kp&&(Me("rename","",_n),yt(Qe)))},At,Se)}}function He(Ee,Ce,Me){let Fe=t(Ee)||kp;return o(Ee,Ce,(At,Se,je)=>{At==="change"&&(je||(je=t(Ee)||kp),je.getTime()===Fe.getTime())||(Fe=je||t(Ee)||kp,Me(At,Se,Fe))})}}function Une(e){let t=e.writeFile;e.writeFile=(r,i,o)=>rU(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}function g1e(e){gu=e}var EV,n6,kp,r6,i6,BM,GM,Hne,SV,gu,g9e=A({"src/compiler/sys.ts"(){"use strict";ia(),EV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(EV||{}),n6=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(n6||{}),kp=new Date(0),r6={Low:32,Medium:64,High:256},i6=Gne(r6),BM=Gne(r6),GM=["/node_modules/.","/.git","/.#"],Hne=$a,SV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(SV||{}),gu=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=QE("fs"),s=QE("path"),l=QE("os"),u;try{u=QE("crypto")}catch{u=void 0}let p,g="./profile.cpuprofile",m=QE("buffer").Buffer,b=process.platform==="darwin",T=process.platform==="linux"||b,I=l.platform(),R=$(),M=o.realpathSync.native?process.platform==="win32"?Fe:o.realpathSync.native:o.realpathSync,N=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,O=process.platform==="win32"||b,H=Ed(()=>process.cwd()),{watchFile:K,watchDirectory:Z}=jne({pollingWatchFileWorker:oe,getModifiedTime:Se,setTimeout,clearTimeout,fsWatchWorker:fe,useCaseSensitiveFileNames:R,getCurrentDirectory:H,fileSystemEntryExists:He,fsSupportsRecursiveFsWatch:O,getAccessibleSortedChildDirectories:yt=>ve(yt).directories,realpath:At,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:T,fsWatchWithTimestamp:b,sysLog:zM}),V={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:R,write(yt){process.stdout.write(yt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:me,writeFile:ie,watchFile:K,watchDirectory:Z,resolvePath:yt=>s.resolve(yt),fileExists:Ee,directoryExists:Ce,getAccessibleFileSystemEntries:ve,createDirectory(yt){if(!V.directoryExists(yt))try{o.mkdirSync(yt)}catch(Qe){if(Qe.code!=="EEXIST")throw Qe}},getExecutingFilePath(){return N},getCurrentDirectory:H,getDirectories:Me,getEnvironmentVariable(yt){return process.env[yt]||""},readDirectory:Le,getModifiedTime:Se,setModifiedTime:je,deleteFile:at,createHash:u?Bt:nC,createSHA256Hash:u?Bt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(yt){try{let Qe=ue(yt);if(Qe?.isFile())return Qe.size}catch{}return 0},exit(yt){he(()=>process.exit(yt))},enableCPUProfiler:G,disableCPUProfiler:he,cpuProfilingEnabled:()=>!!p||wr(process.execArgv,"--cpu-prof")||wr(process.execArgv,"--prof"),realpath:At,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||Et(process.execArgv,yt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(yt))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{QE("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var yt;let Qe=(yt=process.stdout)==null?void 0:yt._handle;Qe&&Qe.setBlocking&&Qe.setBlocking(!0)},bufferFrom:ye,base64decode:yt=>ye(yt,"base64").toString("utf8"),base64encode:yt=>ye(yt).toString("base64"),require:(yt,Qe)=>{try{let gt=zse(Qe,yt,V);return{module:QE(gt),modulePath:gt,error:void 0}}catch(gt){return{module:void 0,modulePath:void 0,error:gt}}}};return V;function ue(yt){return o.statSync(yt,{throwIfNoEntry:!1})}function G(yt,Qe){if(p)return Qe(),!1;let gt=QE("inspector");if(!gt||!gt.Session)return Qe(),!1;let nn=new gt.Session;return nn.connect(),nn.post("Profiler.enable",()=>{nn.post("Profiler.start",()=>{p=nn,g=yt,Qe()})}),!0}function ne(yt){let Qe=0,gt=new Map,nn=Mu(s.dirname(N)),rn=`file://${dh(nn)===1?"":"/"}${nn}`;for(let Nn of yt.nodes)if(Nn.callFrame.url){let Xn=Mu(Nn.callFrame.url);ym(rn,Xn,R)?Nn.callFrame.url=SA(rn,Xn,rn,Pu(R),!0):i.test(Xn)||(Nn.callFrame.url=(gt.has(Xn)?gt:gt.set(Xn,`external${Qe}.js`)).get(Xn),Qe++)}return yt}function he(yt){if(p&&p!=="stopping"){let Qe=p;return p.post("Profiler.stop",(gt,{profile:nn})=>{var rn;if(!gt){try{(rn=ue(g))!=null&&rn.isDirectory()&&(g=s.join(g,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(g),{recursive:!0})}catch{}o.writeFileSync(g,JSON.stringify(ne(nn)))}p=void 0,Qe.disconnect(),yt()}),p="stopping",!0}else return yt(),!1}function ye(yt,Qe){return m.from&&m.from!==Int8Array.from?m.from(yt,Qe):new m(yt,Qe)}function $(){return I==="win32"||I==="win64"?!1:!Ee(Y(__filename))}function Y(yt){return yt.replace(/\w/g,Qe=>{let gt=Qe.toUpperCase();return Qe===gt?Qe.toLowerCase():gt})}function oe(yt,Qe,gt){o.watchFile(yt,{persistent:!0,interval:gt},rn);let nn;return{close:()=>o.unwatchFile(yt,rn)};function rn(Nn,Xn){let _n=+Xn.mtime==0||nn===2;if(+Nn.mtime==0){if(_n)return;nn=2}else if(_n)nn=0;else{if(+Nn.mtime==+Xn.mtime)return;nn=1}Qe(yt,nn,Nn.mtime)}}function fe(yt,Qe,gt){return o.watch(yt,O?{persistent:!0,recursive:!!Qe}:{persistent:!0},gt)}function Ne(yt,Qe){let gt;try{gt=o.readFileSync(yt)}catch{return}let nn=gt.length;if(nn>=2&>[0]===254&>[1]===255){nn&=-2;for(let rn=0;rn=2&>[0]===255&>[1]===254?gt.toString("utf16le",2):nn>=3&>[0]===239&>[1]===187&>[2]===191?gt.toString("utf8",3):gt.toString("utf8")}function me(yt,Qe){var gt,nn;(gt=rd)==null||gt.logStartReadFile(yt);let rn=Ne(yt,Qe);return(nn=rd)==null||nn.logStopReadFile(),rn}function ie(yt,Qe,gt){var nn;(nn=rd)==null||nn.logEvent("WriteFile: "+yt),gt&&(Qe=e+Qe);let rn;try{rn=o.openSync(yt,"w"),o.writeSync(rn,Qe,void 0,"utf8")}finally{rn!==void 0&&o.closeSync(rn)}}function ve(yt){var Qe;(Qe=rd)==null||Qe.logEvent("ReadDir: "+(yt||"."));try{let gt=o.readdirSync(yt||".",{withFileTypes:!0}),nn=[],rn=[];for(let Nn of gt){let Xn=typeof Nn=="string"?Nn:Nn.name;if(Xn==="."||Xn==="..")continue;let _n;if(typeof Nn=="string"||Nn.isSymbolicLink()){let Qt=Zr(yt,Xn);try{if(_n=ue(Qt),!_n)continue}catch{continue}}else _n=Nn;_n.isFile()?nn.push(Xn):_n.isDirectory()&&rn.push(Xn)}return nn.sort(),rn.sort(),{files:nn,directories:rn}}catch{return p7}}function Le(yt,Qe,gt,nn,rn){return xU(yt,Qe,gt,nn,R,process.cwd(),rn,ve,At)}function He(yt,Qe){let gt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{let nn=ue(yt);if(!nn)return!1;switch(Qe){case 0:return nn.isFile();case 1:return nn.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=gt}}function Ee(yt){return He(yt,0)}function Ce(yt){return He(yt,1)}function Me(yt){return ve(yt).directories.slice()}function Fe(yt){return yt.length<260?o.realpathSync.native(yt):o.realpathSync(yt)}function At(yt){try{return M(yt)}catch{return yt}}function Se(yt){var Qe;let gt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Qe=ue(yt))==null?void 0:Qe.mtime}catch{return}finally{Error.stackTraceLimit=gt}}function je(yt,Qe){try{o.utimesSync(yt,Qe,Qe)}catch{return}}function at(yt){try{return o.unlinkSync(yt)}catch{return}}function Bt(yt){let Qe=u.createHash("sha256");return Qe.update(yt),Qe.digest("hex")}}let r;return pG()&&(r=t()),r&&Une(r),r})(),gu&&gu.getEnvironmentVariable&&(c9e(gu),C.setAssertionLevel(/^development$/i.test(gu.getEnvironmentVariable("NODE_ENV"))?1:0)),gu&&gu.debugMode&&(C.isDebugging=!0)}});function TV(e){return e===47||e===92}function qne(e){return o6(e)<0}function dp(e){return o6(e)>0}function AV(e){let t=o6(e);return t>0&&t===e.length}function rC(e){return o6(e)!==0}function wp(e){return/^\.\.?($|[\\/])/.test(e)}function IV(e){return!rC(e)&&!wp(e)}function EA(e){return rc(e).includes(".")}function Tl(e,t){return e.length>t.length&&Sl(e,t)}function Ec(e,t){for(let r of t)if(Tl(e,r))return!0;return!1}function Pv(e){return e.length>0&&TV(e.charCodeAt(e.length-1))}function v1e(e){return e>=97&&e<=122||e>=65&&e<=90}function v9e(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function o6(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?il:HM,2);return i<0?e.length:i+1}if(v1e(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let r=e.indexOf(Xne);if(r!==-1){let i=r+Xne.length,o=e.indexOf(il,i);if(o!==-1){let s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&v1e(e.charCodeAt(o+1))){let u=v9e(e,o+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(o+1)}return~e.length}return 0}function dh(e){let t=o6(e);return t<0?~t:t}function li(e){e=Mu(e);let t=dh(e);return t===e.length?e:(e=$b(e),e.slice(0,Math.max(t,e.lastIndexOf(il))))}function rc(e,t,r){if(e=Mu(e),dh(e)===e.length)return"";e=$b(e);let o=e.slice(Math.max(dh(e),e.lastIndexOf(il)+1)),s=t!==void 0&&r!==void 0?Wx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function y1e(e,t,r){if(uo(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(r(i,t))return i}}function y9e(e,t,r){if(typeof t=="string")return y1e(e,t,r)||"";for(let i of t){let o=y1e(e,i,r);if(o)return o}return""}function Wx(e,t,r){if(t)return y9e($b(e),t,r?Yb:rS);let i=rc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function b9e(e,t){let r=e.substring(0,t),i=e.substring(t).split(il);return i.length&&!Zs(i)&&i.pop(),[r,...i]}function Wc(e,t=""){return e=Zr(t,e),b9e(e,dh(e))}function Ry(e,t){return e.length===0?"":(e[0]&&zc(e[0]))+e.slice(1,t).join(il)}function Mu(e){return e.includes("\\")?e.replace(S1e,il):e}function sS(e){if(!Et(e))return[];let t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Zr(e,...t){e&&(e=Mu(e));for(let r of t)r&&(r=Mu(r),!e||dh(r)!==0?e=r:e=zc(e)+r);return e}function Dy(e,...t){return va(Et(t)?Zr(e,...t):Mu(e))}function VM(e,t){return sS(Wc(e,t))}function bo(e,t){return Ry(VM(e,t))}function va(e){if(e=Mu(e),!s6.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!s6.test(e)))return e;let r=Ry(sS(Wc(e)));return r&&Pv(e)?zc(r):r}function E9e(e){return e.length===0?"":e.slice(1).join(il)}function xV(e,t){return E9e(VM(e,t))}function rl(e,t,r){let i=dp(e)?va(e):bo(e,t);return r(i)}function $b(e){return Pv(e)?e.substr(0,e.length-1):e}function zc(e){return Pv(e)?e:e+il}function v1(e){return!rC(e)&&!wp(e)?"./"+e:e}function jM(e,t,r,i){let o=r!==void 0&&i!==void 0?Wx(e,r,i):Wx(e);return o?e.slice(0,e.length-o.length)+(uo(t,".")?t:"."+t):e}function Jne(e,t){let r=JH(e);return r?e.slice(0,e.length-r.length)+(uo(t,".")?t:"."+t):jM(e,t)}function Kne(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,dh(e)),o=t.substring(0,dh(t)),s=L8(i,o);if(s!==0)return s;let l=e.substring(i.length),u=t.substring(o.length);if(!s6.test(l)&&!s6.test(u))return r(l,u);let p=sS(Wc(e)),g=sS(Wc(t)),m=Math.min(p.length,g.length);for(let b=1;b0==dh(t)>0,"Paths must either both be absolute or both be relative");let s=DV(e,t,(typeof r=="boolean"?r:!1)?Yb:rS,typeof r=="function"?r:el);return Ry(s)}function iC(e,t,r){return dp(e)?SA(t,e,t,r,!1):e}function UM(e,t,r){return v1(bm(li(e),t,r))}function SA(e,t,r,i,o){let s=DV(Dy(r,e),Dy(r,t),rS,i),l=s[0];if(o&&dp(l)){let u=l.charAt(0)===il?"file://":"file:///";s[0]=u+l}return Ry(s)}function Em(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let i=li(e);if(i===e)return;e=i}}function a6(e){return Sl(e,"/node_modules")}var il,HM,Xne,S1e,s6,S9e=A({"src/compiler/path.ts"(){"use strict";ia(),il="/",HM="\\",Xne="://",S1e=/\\/g,s6=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function S(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var f,T9e=A({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";d1e(),f={Unterminated_string_literal:S(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:S(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:S(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:S(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:S(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:S(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:S(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:S(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:S(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:S(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:S(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:S(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:S(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:S(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:S(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:S(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:S(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:S(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:S(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:S(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:S(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:S(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:S(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:S(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:S(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:S(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:S(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:S(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:S(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:S(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:S(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:S(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:S(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:S(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:S(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:S(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:S(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:S(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:S(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:S(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:S(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:S(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:S(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:S(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:S(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:S(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:S(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:S(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:S(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:S(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:S(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:S(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:S(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:S(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:S(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:S(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:S(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:S(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:S(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:S(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:S(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:S(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:S(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:S(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:S(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:S(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:S(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:S(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:S(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:S(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:S(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:S(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:S(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:S(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:S(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."),_0_declarations_must_be_initialized:S(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:S(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:S(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:S(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:S(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:S(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:S(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:S(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:S(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:S(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:S(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:S(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:S(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:S(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:S(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:S(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:S(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:S(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:S(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:S(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:S(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:S(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:S(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:S(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:S(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:S(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:S(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:S(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:S(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:S(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:S(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:S(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:S(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),Abstract_properties_can_only_appear_within_an_abstract_class:S(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:S(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:S(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:S(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:S(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:S(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:S(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:S(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:S(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:S(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:S(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:S(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:S(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'."),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:S(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:S(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:S(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_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(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', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:S(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:S(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:S(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:S(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:S(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:S(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:S(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:S(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:S(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:S(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:S(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:S(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:S(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:S(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:S(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:S(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:S(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:S(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:S(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:S(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:S(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:S(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:S(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:S(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:S(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:S(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_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(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', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:S(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:S(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:S(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:S(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:S(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:S(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:S(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:S(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:S(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:S(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:S(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:S(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:S(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:S(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:S(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_set_of_attributes_as_arguments:S(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes 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:S(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_should_be_either_require_or_import:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:S(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:S(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:S(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:S(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:S(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:S(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:S(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:S(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:S(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:S(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:S(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:S(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:S(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:S(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:S(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:S(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:S(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:S(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:S(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:S(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:S(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:S(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:S(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:S(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:S(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:S(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:S(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:S(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:S(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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}'."),Untyped_function_calls_may_not_accept_type_arguments:S(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:S(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:S(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:S(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:S(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:S(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:S(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:S(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_undefined_void_nor_any_must_return_a_value:S(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:S(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:S(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:S(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_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:S(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),Overload_signatures_must_all_be_exported_or_non_exported:S(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:S(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:S(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:S(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:S(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:S(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:S(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:S(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:S(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:S(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:S(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:S(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:S(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:S(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:S(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:S(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:S(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:S(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:S(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:S(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:S(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:S(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:S(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:S(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:S(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:S(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:S(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:S(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:S(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:S(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:S(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:S(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:S(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:S(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:S(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:S(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),React_components_cannot_include_JSX_namespace_names:S(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:S(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:S(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:S(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:S(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:S(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:S(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:S(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:S(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:S(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:S(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:S(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_nodenext_or_preserve:S(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:S(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."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:S(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:S(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:S(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:S(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_compile_to_CommonJS_require_calls:S(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:S(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:S(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:S(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_It_can_only_extend_other_named_object_types:S(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:S(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:S(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:S(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:S(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:S(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?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:S(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:S(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:S(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:S(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:S(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_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:S(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements 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_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:S(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:S(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:S(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:S(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:S(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:S(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:S(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:S(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:S(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:S(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:S(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:S(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:S(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:S(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:S(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:S(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:S(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:S(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:S(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:S(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:S(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:S(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_cannot_be_specified_when_module_is_set_to_none_system_or_umd:S(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:S(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:S(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:S(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:S(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:S(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:S(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:S(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:S(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:S(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:S(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:S(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:S(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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_preserve_or_to_es2015_or_later:S(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:S(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:S(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:S(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:S(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:S(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:S(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:S(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:S(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:S(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:S(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:S(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."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:S(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:S(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:S(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:S(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:S(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:S(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:S(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:S(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:S(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:S(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:S(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:S(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:S(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:S(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:S(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:S(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:S(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:S(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:S(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:S(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:S(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:S(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:S(6024,3,"options_6024","options"),file:S(6025,3,"file_6025","file"),Examples_Colon_0:S(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:S(6027,3,"Options_Colon_6027","Options:"),Version_0:S(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:S(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:S(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:S(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:S(6034,3,"KIND_6034","KIND"),FILE:S(6035,3,"FILE_6035","FILE"),VERSION:S(6036,3,"VERSION_6036","VERSION"),LOCATION:S(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:S(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:S(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:S(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:S(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:S(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:S(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:S(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:S(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:S(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:S(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:S(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:S(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:S(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:S(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:S(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:S(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:S(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:S(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:S(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:S(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:S(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:S(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:S(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:S(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:S(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:S(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:S(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:S(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:S(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:S(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:S(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:S(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:S(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:S(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:S(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:S(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:S(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:S(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:S(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:S(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:S(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:S(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:S(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:S(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:S(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:S(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:S(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:S(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:S(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:S(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:S(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:S(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:S(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:S(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:S(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:S(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:S(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:S(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:S(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:S(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:S(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:S(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:S(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:S(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:S(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:S(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:S(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:S(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:S(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:S(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:S(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:S(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:S(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:S(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:S(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:S(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:S(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:S(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:S(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:S(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:S(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:S(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:S(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:S(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:S(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:S(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:S(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:S(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:S(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:S(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:S(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:S(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:S(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:S(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:S(6244,3,"Modules_6244","Modules"),File_Management:S(6245,3,"File_Management_6245","File Management"),Emit:S(6246,3,"Emit_6246","Emit"),JavaScript_Support:S(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:S(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:S(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:S(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:S(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:S(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:S(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:S(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:S(6255,3,"Projects_6255","Projects"),Output_Formatting:S(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:S(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:S(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_0:S(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:S(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:S(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:S(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:S(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:S(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."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:S(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:S(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:S(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:S(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation:S(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:S(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:S(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:S(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:S(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:S(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:S(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:S(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:S(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:S(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:S(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:S(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:S(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:S(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:S(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:S(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:S(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:S(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:S(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:S(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:S(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:S(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:S(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:S(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:S(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:S(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:S(6902,3,"type_Colon_6902","type:"),default_Colon:S(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:S(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:S(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:S(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:S(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:S(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:S(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:S(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:S(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:S(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:S(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:S(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:S(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:S(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:S(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:S(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:S(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:S(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:S(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:S(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:S(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:S(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:S(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:S(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:S(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:S(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:S(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:S(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:S(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:S(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:S(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:S(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:S(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:S(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:S(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:S(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:S(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:S(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:S(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:S(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:S(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:S(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}'?"),Unicode_escape_sequence_cannot_appear_here:S(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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."),JSDoc_typedef_may_be_converted_to_TypeScript_type:S(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:S(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:S(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:S(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:S(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:S(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:S(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:S(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:S(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:S(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:S(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:S(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:S(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:S(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:S(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:S(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:S(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:S(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:S(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:S(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:S(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:S(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:S(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:S(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:S(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:S(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:S(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:S(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:S(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:S(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:S(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:S(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:S(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:S(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:S(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:S(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:S(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:S(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:S(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:S(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:S(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:S(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:S(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:S(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:S(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:S(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:S(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:S(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:S(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:S(95005,3,"Extract_function_95005","Extract function"),Extract_constant:S(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:S(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:S(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:S(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:S(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:S(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:S(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:S(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:S(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:S(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:S(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:S(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:S(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:S(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:S(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:S(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:S(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:S(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:S(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:S(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:S(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:S(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:S(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:S(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:S(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:S(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:S(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:S(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:S(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:S(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:S(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:S(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:S(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:S(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:S(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:S(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:S(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:S(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:S(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:S(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:S(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:S(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:S(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:S(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:S(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:S(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:S(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:S(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:S(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:S(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:S(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:S(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:S(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:S(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:S(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:S(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:S(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:S(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:S(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:S(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:S(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:S(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:S(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:S(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:S(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:S(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:S(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:S(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:S(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:S(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:S(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:S(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:S(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:S(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:S(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:S(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:S(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:S(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:S(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:S(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:S(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:S(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:S(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:S(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:S(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:S(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:S(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:S(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:S(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:S(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:S(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:S(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:S(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:S(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:S(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:S(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:S(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:S(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:S(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:S(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:S(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:S(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:S(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:S(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:S(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:S(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:S(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:S(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:S(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:S(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:S(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:S(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:S(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:S(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:S(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:S(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:S(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:S(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:S(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:S(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:S(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:S(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:S(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:S(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:S(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:S(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:S(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:S(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:S(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:S(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:S(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:S(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:S(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:S(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:S(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:S(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:S(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:S(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:S(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:S(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:S(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:S(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:S(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:S(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:S(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:S(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:S(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:S(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:S(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:S(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:S(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:S(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:S(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:S(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:S(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:S(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:S(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:S(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:S(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:S(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:S(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:S(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:S(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:S(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:S(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:S(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:S(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:S(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:S(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:S(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:S(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:S(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:S(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:S(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:S(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:S(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:S(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:S(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:S(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:S(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:S(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:S(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:S(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:S(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:S(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:S(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:S(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:S(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:S(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:S(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:S(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:S(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function id(e){return e>=80}function Yne(e){return e===32||id(e)}function qM(e,t){if(e=2?qM(e,N1e):t===1?qM(e,D1e):qM(e,x1e)}function A9e(e,t){return t>=2?qM(e,P1e):t===1?qM(e,C1e):qM(e,R1e)}function I9e(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}function ma(e){return w1e[e]}function y1(e){return ere.get(e)}function TA(e){let t=[],r=0,i=0;for(;r127&&Uu(o)&&(t.push(i),i=r);break}}return t.push(i),t}function JM(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):c6(Mg(e),t,r,e.text,i)}function c6(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:C.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Ma(e,TA(i)):"unknown"}`));let s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Uu(e){return e===10||e===13||e===8232||e===8233}function sC(e){return e>=48&&e<=57}function T1e(e){return sC(e)||e>=65&&e<=70||e>=97&&e<=102}function x9e(e){return e<=1114111}function u6(e){return e>=48&&e<=55}function $ne(e,t){let r=e.charCodeAt(t);switch(r){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 t===0;default:return r>127}}function La(e,t,r,i,o){if(Qm(t))return t;let s=!1;for(;;){let l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Lg(l)){t++;continue}break}return t}}function lC(e,t){if(C.assert(t>=0),t===0||Uu(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+p6=0&&r127&&Lg(R)){b&&Uu(R)&&(m=!0),r++;continue}break e}}return b&&(I=o(u,p,g,m,s,I)),I}function XM(e,t,r,i){return PV(!1,e,t,!1,r,i)}function YM(e,t,r,i){return PV(!1,e,t,!0,r,i)}function Qne(e,t,r,i,o){return PV(!0,e,t,!1,r,i,o)}function Zne(e,t,r,i,o){return PV(!0,e,t,!0,r,i,o)}function A1e(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function Kh(e,t){return Qne(e,t,A1e,void 0,void 0)}function Qb(e,t){return Zne(e,t,A1e,void 0,void 0)}function d6(e){let t=MV.exec(e);if(t)return t[0]}function Xh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&l6(e,t)}function Zb(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&A9e(e,t)}function $p(e,t,r){let i=Cy(e,0);if(!Xh(i,t))return!1;for(let o=e0(i);om,getStartPos:()=>m,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>T,getTokenStart:()=>b,getTokenPos:()=>b,getTokenText:()=>u.substring(b,p),getTokenValue:()=>I,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,isIdentifier:()=>T===80||T>118,isReservedWord:()=>T>=83&&T<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>M,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:Se,reScanAsteriskEqualsToken:je,reScanSlashToken:at,reScanTemplateToken:Qe,reScanTemplateHeadOrNoSubstitutionTemplate:gt,scanJsxIdentifier:Qt,scanJsxAttributeValue:Yt,reScanJsxAttributeValue:vi,reScanJsxToken:nn,reScanLessThanToken:rn,reScanHashToken:Nn,reScanQuestionToken:Xn,reScanInvalidIdentifier:Fe,scanJsxToken:_n,scanJsDocToken:ki,scanJSDocCommentTextToken:ho,scan:Ce,getText:ln,clearCommentDirectives:tt,setText:zt,setScriptTarget:ui,setLanguageVariant:bi,setScriptKind:ro,setJSDocParsingMode:No,setOnError:Rn,resetTokenState:_a,setTextPos:_a,setInJSDocType:ja,tryScan:xr,lookAhead:qr,scanRange:nr};return C.isDebugging&&Object.defineProperty(K,"__debugShowCurrentPositionInText",{get:()=>{let En=K.getText();return En.slice(0,K.getTokenFullStart())+"\u2551"+En.slice(K.getTokenFullStart())}}),K;function Z(En,wn=p,Ue,mt){if(o){let ft=p;p=wn,o(En,Ue||0,mt),p=ft}}function V(){let En=p,wn=!1,Ue=!1,mt="";for(;;){let ft=u.charCodeAt(p);if(ft===95){R|=512,wn?(wn=!1,Ue=!0,mt+=u.substring(En,p)):(R|=16384,Z(Ue?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1)),p++,En=p;continue}if(sC(ft)){wn=!0,Ue=!1,p++;continue}break}return u.charCodeAt(p-1)===95&&(R|=16384,Z(f.Numeric_separators_are_not_allowed_here,p-1,1)),mt+u.substring(En,p)}function ue(){let En=p,wn;if(u.charCodeAt(p)===48)if(p++,u.charCodeAt(p)===95)R|=16896,Z(f.Numeric_separators_are_not_allowed_here,p,1),p--,wn=V();else if(!ne())R|=8192,wn=""+ +I;else if(!I)wn="0";else{I=""+parseInt(I,8),R|=32;let le=T===41,We=(le?"-":"")+"0o"+(+I).toString(8);return le&&En--,Z(f.Octal_literals_are_not_allowed_Use_the_syntax_0,En,p-En,We),9}else wn=V();let Ue,mt;u.charCodeAt(p)===46&&(p++,Ue=V());let ft=p;if(u.charCodeAt(p)===69||u.charCodeAt(p)===101){p++,R|=16,(u.charCodeAt(p)===43||u.charCodeAt(p)===45)&&p++;let le=p,We=V();We?(mt=u.substring(ft,le)+We,ft=p):Z(f.Digit_expected)}let Nt;if(R&512?(Nt=wn,Ue&&(Nt+="."+Ue),mt&&(Nt+=mt)):Nt=u.substring(En,ft),R&8192)return Z(f.Decimals_with_leading_zeros_are_not_allowed,En,ft-En),I=""+ +Nt,9;if(Ue!==void 0||R&16)return G(En,Ue===void 0&&!!(R&16)),I=""+ +Nt,9;{I=Nt;let le=Ee();return G(En),le}}function G(En,wn){if(!Xh(Cy(u,p),e))return;let Ue=p,{length:mt}=ve();mt===1&&u[Ue]==="n"?Z(wn?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,En,Ue-En+1):(Z(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Ue,mt),p=Ue)}function ne(){let En=p,wn=!0;for(;sC(u.charCodeAt(p));)u6(u.charCodeAt(p))||(wn=!1),p++;return I=u.substring(En,p),wn}function he(En,wn){let Ue=$(En,!1,wn);return Ue?parseInt(Ue,16):-1}function ye(En,wn){return $(En,!0,wn)}function $(En,wn,Ue){let mt=[],ft=!1,Nt=!1;for(;mt.length=65&&le<=70)le+=32;else if(!(le>=48&&le<=57||le>=97&&le<=102))break;mt.push(le),p++,Nt=!1}return mt.length=g){Ue+=u.substring(mt,p),R|=4,Z(f.Unterminated_string_literal);break}let ft=u.charCodeAt(p);if(ft===wn){Ue+=u.substring(mt,p),p++;break}if(ft===92&&!En){Ue+=u.substring(mt,p),Ue+=fe(!0),mt=p;continue}if((ft===10||ft===13)&&!En){Ue+=u.substring(mt,p),R|=4,Z(f.Unterminated_string_literal);break}p++}return Ue}function oe(En){let wn=u.charCodeAt(p)===96;p++;let Ue=p,mt="",ft;for(;;){if(p>=g){mt+=u.substring(Ue,p),R|=4,Z(f.Unterminated_template_literal),ft=wn?15:18;break}let Nt=u.charCodeAt(p);if(Nt===96){mt+=u.substring(Ue,p),p++,ft=wn?15:18;break}if(Nt===36&&p+1=g)return Z(f.Unexpected_end_of_text),"";let Ue=u.charCodeAt(p);switch(p++,Ue){case 48:if(p>=g||!sC(u.charCodeAt(p)))return"\0";case 49:case 50:case 51:p=g?(R|=2048,En&&Z(f.Unexpected_end_of_text),u.substring(wn,p)):u.charCodeAt(p)!==125?(R|=2048,En&&Z(f.Unterminated_Unicode_escape_sequence),u.substring(wn,p)):(p++,R|=8,Bx(ft)):(R|=2048,En&&Z(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(wn,p))}for(;p1114111&&(Z(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Ue=!0),p>=g?(Z(f.Unexpected_end_of_text),Ue=!0):u.charCodeAt(p)===125?p++:(Z(f.Unterminated_Unicode_escape_sequence),Ue=!0),Ue?"":Bx(wn)}function me(){if(p+5=0&&Zb(Ue,e)){p+=3,R|=8,En+=Ne(),wn=p;continue}if(Ue=me(),!(Ue>=0&&Zb(Ue,e)))break;R|=1024,En+=u.substring(wn,p),En+=Bx(Ue),p+=6,wn=p}else break}return En+=u.substring(wn,p),En}function Le(){let En=I.length;if(En>=2&&En<=12){let wn=I.charCodeAt(0);if(wn>=97&&wn<=122){let Ue=I1e.get(I);if(Ue!==void 0)return T=Ue}}return T=80}function He(En){let wn="",Ue=!1,mt=!1;for(;;){let ft=u.charCodeAt(p);if(ft===95){R|=512,Ue?(Ue=!1,mt=!0):Z(mt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(Ue=!0,!sC(ft)||ft-48>=En)break;wn+=u[p],p++,mt=!1}return u.charCodeAt(p-1)===95&&Z(f.Numeric_separators_are_not_allowed_here,p-1,1),wn}function Ee(){return u.charCodeAt(p)===110?(I+="n",R&384&&(I=tN(I)+"n"),p++,10):(I=""+(R&128?parseInt(I.slice(2),2):R&256?parseInt(I.slice(2),8):+I),9)}function Ce(){m=p,R=0;let En=!1;for(;;){if(b=p,p>=g)return T=1;let wn=Cy(u,p);if(p===0){if(u.slice(0,256).includes("\uFFFD"))return Z(f.File_appears_to_be_binary),p=g,T=8;if(wn===35&&CV(u,p)){if(p=NV(u,p),t)continue;return T=6}}switch(wn){case 10:case 13:if(R|=1,t){p++;continue}else return wn===13&&p+1=0&&Xh(Ue,e))return p+=3,R|=8,I=Ne()+ve(),T=Le();let mt=me();return mt>=0&&Xh(mt,e)?(p+=6,R|=1024,I=String.fromCharCode(mt)+ve(),T=Le()):(Z(f.Invalid_character),p++,T=0);case 35:if(p!==0&&u[p+1]==="!")return Z(f.can_only_be_used_at_the_start_of_a_file),p++,T=0;let ft=Cy(u,p+1);if(ft===92){p++;let We=ie();if(We>=0&&Xh(We,e))return p+=3,R|=8,I="#"+Ne()+ve(),T=81;let pt=me();if(pt>=0&&Xh(pt,e))return p+=6,R|=1024,I="#"+String.fromCharCode(pt)+ve(),T=81;p--}return Xh(ft,e)?(p++,At(ft,e)):(I="#",Z(f.Invalid_character,p++,e0(wn))),T=81;default:let Nt=At(wn,e);if(Nt)return T=Nt;if(S_(wn)){p+=e0(wn);continue}else if(Uu(wn)){R|=1,p+=e0(wn);continue}let le=e0(wn);return Z(f.Invalid_character,p,le),p+=le,T=0}}}function Me(){switch(H){case 0:return!0;case 1:return!1}return O!==3&&O!==4?!0:H===3?!1:k1e.test(u.slice(m,p))}function Fe(){C.assert(T===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=b=m,R=0;let En=Cy(u,p),wn=At(En,99);return wn?T=wn:(p+=e0(En),T)}function At(En,wn){let Ue=En;if(Xh(Ue,wn)){for(p+=e0(Ue);p=g)return T=1;let wn=u.charCodeAt(p);if(wn===60)return u.charCodeAt(p+1)===47?(p+=2,T=31):(p++,T=30);if(wn===123)return p++,T=19;let Ue=0;for(;p0)break;Lg(wn)||(Ue=p)}p++}return I=u.substring(m,p),Ue===-1?13:12}function Qt(){if(id(T)){for(;p=g)return T=1;for(let wn=u.charCodeAt(p);p=0&&S_(u.charCodeAt(p-1))&&!(p+1=g)return T=1;let En=Cy(u,p);switch(p+=e0(En),En){case 9:case 11:case 12:case 32:for(;p=0&&Xh(wn,e))return p+=3,R|=8,I=Ne()+ve(),T=Le();let Ue=me();return Ue>=0&&Xh(Ue,e)?(p+=6,R|=1024,I=String.fromCharCode(Ue)+ve(),T=Le()):(p++,T=0)}if(Xh(En,e)){let wn=En;for(;p=0),p=En,m=En,b=En,T=0,I=void 0,R=0}function ja(En){N+=En?1:-1}}function Cy(e,t){return e.codePointAt(t)}function e0(e){return e>=65536?2:1}function R9e(e){if(C.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Bx(e){return O1e(e)}var $M,I1e,ere,x1e,R1e,D1e,C1e,N1e,P1e,M1e,L1e,k1e,w1e,p6,MV,O1e,D9e=A({"src/compiler/scanner.ts"(){"use strict";ia(),$M={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},I1e=new Map(Object.entries($M)),ere=new Map(Object.entries({...$M,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),x1e=[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],R1e=[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],D1e=[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],C1e=[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],N1e=[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],P1e=[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],M1e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,L1e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,k1e=/@(?:see|link)/i,w1e=I9e(ere),p6=7,MV=/^#!.*/,O1e=String.fromCodePoint?e=>String.fromCodePoint(e):R9e}});function Yc(e){return wp(e)||dp(e)}function Gx(e){return XD(e,XC)}function QM(e){switch(as(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 ql(e){return e.start+e.length}function tre(e){return e.length===0}function LV(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function nre(e,t){return t.start>=e.start&&ql(t)<=ql(e)}function F1e(e,t){return rre(e,t)!==void 0}function rre(e,t){let r=ore(e,t);return r&&r.length===0?void 0:r}function W1e(e,t){return eL(e.start,e.length,t.start,t.length)}function f6(e,t,r){return eL(e.start,e.length,t,r)}function eL(e,t,r,i){let o=e+t,s=r+i;return r<=o&&s>=e}function ire(e,t){return t<=ql(e)&&t>=e.start}function ore(e,t){let r=Math.max(e.start,t.start),i=Math.min(ql(e),ql(t));return r<=i?dc(r,i):void 0}function vu(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function dc(e,t){return vu(e,t-e)}function cC(e){return vu(e.span.start,e.newLength)}function are(e){return tre(e.span)&&e.newLength===0}function tL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function sre(e){if(e.length===0)return gL;if(e.length===1)return e[0];let t=e[0],r=t.span.start,i=ql(t.span),o=r+t.newLength;for(let s=1;s=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Hi(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Sr(e){return Hi(e.escapedText)}function n0(e){let t=y1(e.escapedText);return t?ai(t,Fd):void 0}function bl(e){return e.valueDeclaration&&ad(e.valueDeclaration)?Sr(e.valueDeclaration.name):Hi(e.escapedName)}function G1e(e){let t=e.parent.parent;if(t){if(qu(t))return wV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return wV(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:let i=r.argumentExpression;if(Ve(i))return i}break;case 217:return wV(t.expression);case 256:{if(qu(t.statement)||bt(t.statement))return wV(t.statement);break}}}}function wV(e){let t=Oo(e);return t&&Ve(t)?t:void 0}function nL(e,t){return!!(od(e)&&Ve(e.name)&&Sr(e.name)===Sr(t)||Ml(e)&&Et(e.declarationList.declarations,r=>nL(r,t)))}function dre(e){return e.name||G1e(e)}function od(e){return!!e.name}function m6(e){switch(e.kind){case 80:return e;case 355:case 348:{let{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{let r=e;switch(Wl(r)){case 1:case 4:case 5:case 3:return u3(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return dre(e);case 347:return G1e(e);case 277:{let{expression:r}=e;return Ve(r)?r:void 0}case 212:let t=e;if(c3(t))return t.argumentExpression}return e.name}function Oo(e){if(e!==void 0)return m6(e)||(ws(e)||Bs(e)||Zc(e)?_6(e):void 0)}function _6(e){if(e.parent){if(_c(e.parent)||Qa(e.parent))return e.parent.name;if(_r(e.parent)&&e===e.parent.right){if(Ve(e.parent.left))return e.parent.left;if(ks(e.parent.left))return u3(e.parent.left)}else if(Oi(e.parent)&&Ve(e.parent.name))return e.parent.name}else return}function Ny(e){if(Sf(e))return tr(e.modifiers,Eu)}function b1(e){if(ei(e,98303))return tr(e.modifiers,Ia)}function V1e(e,t){if(e.name)if(Ve(e.name)){let r=e.name.escapedText;return iL(e.parent,t).filter(i=>n_(i)&&Ve(i.name)&&i.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);C.assert(r>-1,"Parameters should always be in their parents' parameter list");let i=iL(e.parent,t).filter(n_);if(ram(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function fre(e){return j1e(e,!1)}function mre(e){return j1e(e,!0)}function _re(e){return!!Kf(e,n_)}function hre(e){return Kf(e,fI)}function gre(e){return g6(e,a5)}function OV(e){return Kf(e,Vae)}function U1e(e){return Kf(e,RH)}function vre(e){return Kf(e,RH,!0)}function H1e(e){return Kf(e,DH)}function yre(e){return Kf(e,DH,!0)}function q1e(e){return Kf(e,CH)}function bre(e){return Kf(e,CH,!0)}function J1e(e){return Kf(e,NH)}function Ere(e){return Kf(e,NH,!0)}function Sre(e){return Kf(e,i5,!0)}function FV(e){return Kf(e,PH)}function Tre(e){return Kf(e,PH,!0)}function WV(e){return Kf(e,qk)}function h6(e){return Kf(e,MH)}function Are(e){return Kf(e,o5)}function K1e(e){return Kf(e,am)}function zV(e){return Kf(e,s5)}function r0(e){let t=Kf(e,RN);if(t&&t.typeExpression&&t.typeExpression.type)return t}function i0(e){let t=Kf(e,RN);return!t&&Co(e)&&(t=vn(jx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function rL(e){let t=Are(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=r0(e);if(r&&r.typeExpression){let i=r.typeExpression.type;if(yp(i)){let o=vn(i.members,nI);return o&&o.type}if(bh(i)||jR(i))return i.type}}function iL(e,t){var r;if(!qL(e))return et;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){let o=wj(e,t);C.assert(o.length<2||o[0]!==o[1]),i=Zi(o,s=>t_(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function o0(e){return iL(e,!1)}function X1e(e){return iL(e,!0)}function Kf(e,t,r){return vn(iL(e,r),t)}function g6(e,t){return o0(e).filter(t)}function Y1e(e,t){return o0(e).filter(r=>r.kind===t)}function oL(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:N9e(t)).join("")}function N9e(e){let t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?fp(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Py(e){if(b0(e)){if(UR(e.parent)){let t=fR(e.parent);if(t&&De(t.tags))return Zi(t.tags,r=>am(r)?r.typeParameters:void 0)}return et}if(Qf(e))return C.assert(e.parent.kind===327),Zi(e.parent.tags,t=>am(t)?t.typeParameters:void 0);if(e.typeParameters||Zae(e)&&e.typeParameters)return e.typeParameters;if(cr(e)){let t=A3(e);if(t.length)return t;let r=i0(e);if(r&&bh(r)&&r.typeParameters)return r.typeParameters}return et}function Ux(e){return e.constraint?e.constraint:am(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Yh(e){return e.kind===80||e.kind===81}function v6(e){return e.kind===178||e.kind===177}function y6(e){return zr(e)&&!!(e.flags&64)}function BV(e){return Ys(e)&&!!(e.flags&64)}function lS(e){return la(e)&&!!(e.flags&64)}function Hu(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function dC(e){return Hu(e)&&!lI(e)&&!!e.questionDotToken}function b6(e){return dC(e.parent)&&e.parent.expression===e}function pC(e){return!Hu(e.parent)||dC(e.parent)||e!==e.parent.expression}function GV(e){return e.kind===226&&e.operatorToken.kind===61}function kg(e){return Rf(e)&&Ve(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Sm(e){return Xl(e,8)}function E6(e){return lI(e)&&!!(e.flags&64)}function fC(e){return e.kind===252||e.kind===251}function VV(e){return e.kind===280||e.kind===279}function Ire(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function jV(e){return Ire(e)||e.kind===307||e.kind===311}function mC(e){return e.kind===355||e.kind===348}function $1e(e){return aL(e.kind)}function aL(e){return e>=166}function UV(e){return e>=0&&e<=165}function AA(e){return UV(e.kind)}function E1(e){return Rs(e,"pos")&&Rs(e,"end")}function _C(e){return 9<=e&&e<=15}function S1(e){return _C(e.kind)}function HV(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function My(e){return 15<=e&&e<=18}function xre(e){return My(e.kind)}function S6(e){let t=e.kind;return t===17||t===18}function IA(e){return tp(e)||Ju(e)}function sL(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Rre(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function a0(e){return sL(e)||Rre(e)}function qV(e){return e.kind===11||My(e.kind)}function Dre(e){return Na(e)||Ve(e)}function ol(e){var t;return Ve(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function cS(e){var t;return Xi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function lL(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function ad(e){return(Jo(e)||RA(e))&&Xi(e.name)}function Hx(e){return zr(e)&&Xi(e.name)}function kv(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function hC(e){return!!(zA(e)&31)}function JV(e){return hC(e)||e===126||e===164||e===129}function Ia(e){return kv(e.kind)}function Qd(e){let t=e.kind;return t===166||t===80}function ic(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function uS(e){let t=e.kind;return t===80||t===206||t===207}function ea(e){return!!e&&xA(e.kind)}function qx(e){return!!e&&(xA(e.kind)||Il(e))}function zs(e){return e&&Q1e(e.kind)}function gC(e){return e.kind===112||e.kind===97}function Q1e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function xA(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return Q1e(e)}}function KV(e){return no(e)||k_(e)||Xo(e)&&ea(e.parent)}function $c(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function pi(e){return e&&(e.kind===263||e.kind===231)}function Ly(e){return e&&(e.kind===177||e.kind===178)}function kd(e){return Jo(e)&&C_(e)}function Cre(e){return cr(e)&&r7(e)?(!N1(e)||!Vy(e.expression))&&!ES(e,!0):e.parent&&pi(e.parent)&&Jo(e)&&!C_(e)}function RA(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Z1e(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function al(e){return Ia(e)||Eu(e)}function dS(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function T6(e){return dS(e)||$c(e)}function wg(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function qi(e){return vU(e.kind)}function Nre(e){switch(e.kind){case 184:case 185:return!0}return!1}function ta(e){if(e){let t=e.kind;return t===207||t===206}return!1}function vC(e){let t=e.kind;return t===209||t===210}function A6(e){let t=e.kind;return t===208||t===232}function cL(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Pre(e){return Oi(e)||Co(e)||dL(e)||pL(e)}function uL(e){return XV(e)||YV(e)}function XV(e){switch(e.kind){case 206:case 210:return!0}return!1}function dL(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function YV(e){switch(e.kind){case 207:case 209:return!0}return!1}function pL(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Mc(e,!0)}function Mre(e){let t=e.kind;return t===211||t===166||t===205}function Lre(e){let t=e.kind;return t===211||t===166}function $V(e){return T1(e)||B1(e)}function T1(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function T_(e){return e.kind===213||e.kind===214}function DA(e){let t=e.kind;return t===228||t===15}function Zd(e){return eEe(Sm(e).kind)}function eEe(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function QV(e){return tEe(Sm(e).kind)}function tEe(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return eEe(e)}}function kre(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function wre(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return S1(e)}}function bt(e){return P9e(Sm(e).kind)}function P9e(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return tEe(e)}}function pS(e){let t=e.kind;return t===216||t===234}function nEe(e){return TH(e)||e5(e)}function ky(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&ky(e.statement,t)}return!1}function Ore(e){return Ll(e)||Kl(e)}function Fre(e){return Et(e,Ore)}function I6(e){return!SL(e)&&!Ll(e)&&!ei(e,32)&&!Lu(e)}function fL(e){return SL(e)||Ll(e)||ei(e,32)}function Jx(e){return e.kind===249||e.kind===250}function x6(e){return Xo(e)||bt(e)}function ZV(e){return Xo(e)}function Ef(e){return jc(e)||bt(e)}function Wre(e){let t=e.kind;return t===268||t===267||t===80}function rEe(e){let t=e.kind;return t===268||t===267}function iEe(e){let t=e.kind;return t===80||t===267}function ej(e){let t=e.kind;return t===275||t===274}function mL(e){return e.kind===267||e.kind===266}function A_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function ph(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function M9e(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function zre(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function Bre(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function qu(e){return e.kind===168?e.parent&&e.parent.kind!==352||cr(e):M9e(e.kind)}function Gre(e){return zre(e.kind)}function _L(e){return Bre(e.kind)}function Ki(e){let t=e.kind;return Bre(t)||zre(t)||L9e(e)}function L9e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!D1(e)}function Vre(e){let t=e.kind;return Bre(t)||zre(t)||t===241}function jre(e){let t=e.kind;return t===283||t===166||t===80}function yC(e){let t=e.kind;return t===110||t===80||t===211||t===295}function hL(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function R6(e){let t=e.kind;return t===291||t===293}function Ure(e){let t=e.kind;return t===11||t===294}function sd(e){let t=e.kind;return t===286||t===285}function D6(e){let t=e.kind;return t===296||t===297}function Kx(e){return e.kind>=316&&e.kind<=357}function C6(e){return e.kind===327||e.kind===326||e.kind===328||CA(e)||Xx(e)||GS(e)||b0(e)}function Xx(e){return e.kind>=334&&e.kind<=357}function wv(e){return e.kind===178}function wy(e){return e.kind===177}function Op(e){if(!qL(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function N6(e){return!!e.type}function Oy(e){return!!e.initializer}function fS(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function tj(e){return e.kind===291||e.kind===293||wg(e)}function P6(e){return e.kind===183||e.kind===233}function Hre(e){let t=qre;for(let r of e){if(!r.length)continue;let i=0;for(;i0?r.parent.parameters[o-1]:void 0,l=t.text,u=s?xo(Qb(l,La(l,s.end+1,!1,!0)),Kh(l,e.pos)):Qb(l,La(l,e.pos,!1,!0));return Et(u)&&oEe(Ya(u),t)}let i=r&&Sj(r,t);return!!Ke(i,o=>oEe(o,t))}var gL,ij,qre,k9e=A({"src/compiler/utilitiesPublic.ts"(){"use strict";ia(),gL=tL(vu(0,0),0),ij=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],qre=1073741823}});function dl(e,t){let r=e.declarations;if(r){for(let i of r)if(i.kind===t)return i}}function Jre(e,t){return tr(e.declarations||et,r=>r.kind===t)}function ua(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function fh(e){return(e.flags&33554432)!==0}function w9e(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Lg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:$a,decreaseIndent:$a,clear:()=>e=""}}function M6(e,t){return e.configFilePath!==t.configFilePath||Kre(e,t)}function Kre(e,t){return Yx(e,t,A5)}function Xre(e,t){return Yx(e,t,fq)}function Yx(e,t,r){return e!==t&&r.some(i=>!$3(B3(e,i),B3(t,i)))}function Yre(e,t){for(;;){let r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(no(e))return;e=e.parent}}function Bc(e,t){let r=e.entries();for(let[i,o]of r){let s=t(o,i);if(s)return s}}function mh(e,t){let r=e.keys();for(let i of r){let o=t(i);if(o)return o}}function L6(e,t){e.forEach((r,i)=>{t.set(i,r)})}function bC(e){let t=Sk.getText();try{return e(Sk),Sk.getText()}finally{Sk.clear(),Sk.writeKeyword(t)}}function vL(e){return e.end-e.pos}function oj(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function $re(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&&O9e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function k6(e,t,r,i,o){var s;let l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(dd(t.getCompilerOptions())===2?[f.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[l]]:[f.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,[l,l.includes(Ih+"@types/")?`@types/${r2(o)}`:o]]),p=u?Uo(void 0,u[0],...u[1]):t.typesPackageExists(o)?Uo(void 0,f.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,o,r2(o)):t.packageBundlesTypes(o)?Uo(void 0,f.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,r):Uo(void 0,f.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,r2(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function O9e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function w6({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Fy(e){return`${w6(e)}@${e.version}`}function Qre(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 aj(e,t,r,i){C.assert(e.length===t.length);for(let o=0;o=0),Mg(t)[e]}function aEe(e){let t=Vn(e),r=Es(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function bL(e,t){C.assert(e>=0);let r=Mg(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{let s=r[i],l=r[i+1]-1;for(C.assert(Uu(o.charCodeAt(l)));s<=l&&Uu(o.charCodeAt(l));)l--;return l}}function F6(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Fl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Xf(e){return!Fl(e)}function eie(e,t){return _l(e)?t===e.expression:Il(e)?t===e.modifiers:gp(e)?t===e.initializer:Jo(e)?t===e.questionToken&&kd(e):_c(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||EL(e.modifiers,t,al):np(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||EL(e.modifiers,t,al):jl(e)?t===e.exclamationToken:Pl(e)?t===e.typeParameters||t===e.type||EL(e.typeParameters,t,_l):Zp(e)?t===e.typeParameters||EL(e.typeParameters,t,_l):vp(e)?t===e.typeParameters||t===e.type||EL(e.typeParameters,t,_l):Hk(e)?t===e.modifiers||EL(e.modifiers,t,al):!1}function EL(e,t,r){return!e||Do(t)||!r(t)?!1:wr(e,t)}function sEe(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${Es(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Vo(r.entries()).filter(([l,u])=>u.type===0&&!i.get(l)).map(([l,u])=>u)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function s0(e,t,r){return Fl(e)?e.pos:Kx(e)||e.kind===12?La((t||Vn(e)).text,e.pos,!1,!0):r&&Op(e)?s0(e.jsDoc[0],t):e.kind===358&&e._children.length>0?s0(e._children[0],t,r):La((t||Vn(e)).text,e.pos,!1,!1,LL(e))}function cj(e,t){let r=!Fl(e)&&Cm(e)?Qr(e.modifiers,Eu):void 0;return r?La((t||Vn(e)).text,r.end):s0(e,t)}function A1(e,t,r=!1){return EC(e.text,t,r)}function W9e(e){return!!zn(e,Z1)}function z6(e){return!!(Kl(e)&&e.exportClause&&Sh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function EC(e,t,r=!1){if(Fl(t))return"";let i=e.substring(r?t.pos:La(e,t.pos),t.end);return W9e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` +`)),i}function pc(e,t=!1){return A1(Vn(e),e,t)}function z9e(e){return e.pos}function Qx(e,t){return xv(e,t,z9e,tl)}function Va(e){let t=e.emitNode;return t&&t.flags||0}function Tm(e){let t=e.emitNode;return t&&t.internalFlags||0}function nie(e,t,r){if(t&&B9e(e,r))return A1(t,e);switch(e.kind){case 11:{let i=r&2?Zj:r&1||Va(e)&16777216?rg:rk;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=r&1||Va(e)&16777216?rg:rk,o=e.rawText??$j(i(e.text,96));switch(e.kind){case 15:return"`"+o+"`";case 16:return"`"+o+"${";case 17:return"}"+o+"${";case 18:return"}"+o+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return C.fail(`Literal kind '${e.kind}' not accounted for.`)}function B9e(e,t){if(Xs(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(hp(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!H7(e)}function rie(e){return wo(e)?'"'+rk(e)+'"':""+e}function iie(e){return rc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function uj(e){return(Lv(e)&7)!==0||dj(e)}function dj(e){let t=D_(e);return t.kind===260&&t.parent.kind===299}function Lu(e){return Jl(e)&&(e.name.kind===11||I_(e))}function B6(e){return Jl(e)&&e.name.kind===11}function pj(e){return Jl(e)&&Na(e.name)}function oie(e){return Jl(e)||Ve(e)}function SC(e){return G9e(e.valueDeclaration)}function G9e(e){return!!e&&e.kind===267&&!e.body}function aie(e){return e.kind===312||e.kind===267||qx(e)}function I_(e){return!!(e.flags&2048)}function I1(e){return Lu(e)&&fj(e)}function fj(e){switch(e.parent.kind){case 312:return ac(e.parent);case 268:return Lu(e.parent.parent)&&no(e.parent.parent.parent)&&!ac(e.parent.parent.parent)}return!1}function mj(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!I1(r)&&!(Jl(r)&&I_(r)))}function V9e(e){return e===1||e===100||e===199}function NA(e,t){return ac(e)||V9e(ku(t))&&!!e.commonJsModuleIndicator}function _j(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:ud(t,"alwaysStrict")||Xae(e.statements)?!0:ac(e)||im(t)?ku(t)>=5?!0:!t.noImplicitUseStrict:!1}function hj(e){return!!(e.flags&33554432)||ei(e,128)}function gj(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!qx(t)}return!1}function vj(e){switch(C.type(e),e.kind){case 345:case 353:case 330:return!0;default:return yj(e)}}function yj(e){switch(C.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function _S(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function sie(e){return _S(e)||C1(e)}function G6(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function lie(e){return SL(e)||Jl(e)||lg(e)||Wp(e)}function SL(e){return _S(e)||Kl(e)}function bj(e){return zn(e.parent,t=>!!(Mq(t)&1))}function _h(e){return zn(e.parent,t=>gj(t,t.parent))}function cie(e,t){let r=_h(e);for(;r;)t(r),r=_h(r)}function Ds(e){return!e||vL(e)===0?"(Missing)":pc(e)}function uie(e){return e.declaration?Ds(e.declaration.parameters[0].name):void 0}function TL(e){return e.kind===167&&!Qp(e.expression)}function TC(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return ml(e.text);case 167:return Qp(e.expression)?ml(e.expression.text):void 0;case 295:return HA(e);default:return C.assertNever(e)}}function Zx(e){return C.checkDefined(TC(e))}function fp(e){switch(e.kind){case 110:return"this";case 81:case 80:return vL(e)===0?Sr(e):pc(e);case 166:return fp(e.left)+"."+fp(e.right);case 211:return Ve(e.name)||Xi(e.name)?fp(e.expression)+"."+fp(e.name):C.assertNever(e.name);case 318:return fp(e.left)+fp(e.right);case 295:return fp(e.namespace)+":"+fp(e.name);default:return C.assertNever(e)}}function Or(e,t,...r){let i=Vn(e);return Yf(i,e,t,...r)}function eR(e,t,r,...i){let o=La(e.text,t.pos);return Qc(e,o,t.end-o,r,...i)}function Yf(e,t,r,...i){let o=hS(e,t);return Qc(e,o.start,o.length,r,...i)}function Og(e,t,r,i){let o=hS(e,t);return V6(e,o.start,o.length,r,i)}function AL(e,t,r,i){let o=La(e.text,t.pos);return V6(e,o,t.end-o,r,i)}function die(e,t,r){C.assertGreaterThanOrEqual(t,0),C.assertGreaterThanOrEqual(r,0),C.assertLessThanOrEqual(t,e.length),C.assertLessThanOrEqual(t+r,e.length)}function V6(e,t,r,i,o){return die(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function Ej(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function pie(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function fie(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function hh(e,t){let r=Mv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let i=r.getTokenStart();return dc(i,r.getTokenEnd())}function mie(e,t){let r=Mv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function j9e(e,t){let r=La(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=Es(e,t.body.pos),{line:o}=Es(e,t.body.end);if(i0?t.statements[0].pos:t.end;return dc(s,l)}case 253:case 229:{let s=La(e.text,t.pos);return hh(e,s)}case 238:{let s=La(e.text,t.expression.end);return hh(e,s)}case 357:{let s=La(e.text,t.tagName.pos);return hh(e,s)}}if(r===void 0)return hh(e,t.pos);C.assert(!t_(r));let i=Fl(r),o=i||$A(t)?r.pos:La(e.text,r.pos);return i?(C.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(C.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),dc(o,r.end)}function Fp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function $f(e){return e.scriptKind===6}function x1(e){return!!(t0(e)&4096)}function j6(e){return!!(t0(e)&8&&!pp(e,e.parent))}function IL(e){return(Lv(e)&7)===6}function xL(e){return(Lv(e)&7)===4}function tR(e){return(Lv(e)&7)===2}function U6(e){return(Lv(e)&7)===1}function gS(e){return e.kind===213&&e.expression.kind===108}function Wp(e){return e.kind===213&&e.expression.kind===102}function nR(e){return yN(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function zy(e){return lg(e)&&Yy(e.argument)&&Na(e.argument.literal)}function Am(e){return e.kind===244&&e.expression.kind===11}function RL(e){return!!(Va(e)&2097152)}function H6(e){return RL(e)&&Sc(e)}function U9e(e){return Ve(e.name)&&!e.initializer}function q6(e){return RL(e)&&Ml(e)&&Jn(e.declarationList.declarations,U9e)}function Sj(e,t){return e.kind!==12?Kh(t.text,e.pos):void 0}function Tj(e,t){let r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?xo(Qb(t,e.pos),Kh(t,e.pos)):Kh(t,e.pos);return tr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Zh(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return dEe(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),C.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return dEe(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return wr(t.typeArguments,e)}}}return!1}function dEe(e){return a5(e.parent)||fI(e.parent)||ef(e.parent)&&!R3(e)}function pEe(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function R1(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Ho(i,r)}}}function _ie(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);let o=i.expression;o&&r(o);return;case 266:case 264:case 267:case 265:return;default:if(ea(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else Zh(i)||Ho(i,r)}}}function Aj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?ah(e.typeArguments):void 0}function hie(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function rR(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function gie(e){return rR(e)||Ly(e)}function AC(e){return e.parent.kind===261&&e.parent.parent.kind===243}function vie(e){return cr(e)?wa(e.parent)&&_r(e.parent.parent)&&Wl(e.parent.parent)===2||J6(e.parent):!1}function J6(e){return cr(e)?_r(e)&&Wl(e)===1:!1}function yie(e){return(Oi(e)?tR(e)&&Ve(e.name)&&AC(e):Jo(e)?BC(e)&&fc(e):gp(e)&&BC(e))||J6(e)}function bie(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Ij(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function D1(e){return e&&e.kind===241&&ea(e.parent)}function Im(e){return e&&e.kind===174&&e.parent.kind===210}function K6(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Eie(e){return e&&e.kind===1}function fEe(e){return e&&e.kind===0}function iR(e,t,r,i){return Ke(e?.properties,o=>{if(!_c(o))return;let s=TC(o.name);return t===s||i&&i===s?r(o):void 0})}function Sie(e,t,r){return iR(e,t,i=>pd(i.initializer)?vn(i.initializer.elements,o=>Na(o)&&o.text===r):void 0)}function IC(e){if(e&&e.statements.length){let t=e.statements[0].expression;return ai(t,wa)}}function X6(e,t,r){return DL(e,t,i=>pd(i.initializer)?vn(i.initializer.elements,o=>Na(o)&&o.text===r):void 0)}function DL(e,t,r){return iR(IC(e),t,r)}function zp(e){return zn(e.parent,ea)}function Tie(e){return zn(e.parent,zs)}function su(e){return zn(e.parent,pi)}function Aie(e){return zn(e.parent,t=>pi(t)||ea(t)?"quit":Il(t))}function Y6(e){return zn(e.parent,qx)}function $6(e){let t=zn(e.parent,r=>pi(r)?"quit":Eu(r));return t&&pi(t.parent)?su(t.parent):su(t??e)}function wd(e,t,r){for(C.assert(e.kind!==312);;){if(e=e.parent,!e)return C.fail();switch(e.kind){case 167:if(r&&pi(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&$c(e.parent.parent)?e=e.parent.parent:$c(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function Iie(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function Q6(e){Ve(e)&&(Tc(e.parent)||Sc(e.parent))&&e.parent.name===e&&(e=e.parent);let t=wd(e,!0,!1);return no(t)}function xie(e){let t=wd(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function CL(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&$c(e.parent.parent)?e=e.parent.parent:$c(e.parent)&&(e=e.parent);break}}}function vS(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function mEe(e){return e.kind===108||Od(e)}function Od(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function NL(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function Z6(e){var t;return!!e&&Oi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Rie(e){return!!e&&(np(e)||_c(e))&&_r(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function PL(e){switch(e.kind){case 183:return e.typeName;case 233:return zl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function e3(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function t3(e,t,r,i){if(e&&od(t)&&Xi(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Tc(r):pi(r)&&!F1(t)&&!oU(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Tc(r):pi(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&k1(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function oR(e,t,r,i){return Sf(t)&&t3(e,t,r,i)}function ML(e,t,r,i){return oR(e,t,r,i)||xC(e,t,r)}function xC(e,t,r){switch(t.kind){case 263:return Et(t.members,i=>ML(e,i,t,r));case 231:return!e&&Et(t.members,i=>ML(e,i,t,r));case 174:case 178:case 176:return Et(t.parameters,i=>oR(e,i,t,r));default:return!1}}function Ov(e,t){if(oR(e,t))return!0;let r=ig(t);return!!r&&xC(e,r,t)}function xj(e,t,r){let i;if(Ly(t)){let{firstAccessor:o,secondAccessor:s,setAccessor:l}=RS(r.members,t),u=Sf(o)?o:s&&Sf(s)?s:void 0;if(!u||t!==u)return!1;i=l?.parameters}else jl(t)&&(i=t.parameters);if(oR(e,t,r))return!0;if(i){for(let o of i)if(!w1(o)&&oR(e,o,t,r))return!0}return!1}function Rj(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Rj(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function aR(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function eg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!ef(e.parent)&&!fI(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||CA(e.parent)||xN(e.parent)||y0(e.parent)||aR(e);case 318:for(;y0(e.parent);)e=e.parent;return e.parent.kind===186||CA(e.parent)||xN(e.parent)||y0(e.parent)||aR(e);case 81:return _r(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||CA(e.parent)||xN(e.parent)||y0(e.parent)||aR(e))return!0;case 9:case 10:case 11:case 15:case 110:return n3(e);default:return!1}}function n3(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:let i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Zh(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return eg(t)}}function r3(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function Die(e){return Sh(e)&&!!e.parent.moduleSpecifier}function l0(e){return e.kind===271&&e.moduleReference.kind===283}function RC(e){return C.assert(l0(e)),e.moduleReference.expression}function Dj(e){return C1(e)&&IR(e.initializer).arguments[0]}function sR(e){return e.kind===271&&e.moduleReference.kind!==283}function ld(e){return cr(e)}function _Ee(e){return!cr(e)}function cr(e){return!!e&&!!(e.flags&524288)}function i3(e){return!!e&&!!(e.flags&134217728)}function Cj(e){return!$f(e)}function LL(e){return!!e&&!!(e.flags&16777216)}function o3(e){return Rf(e)&&Ve(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Sd(e,t){if(e.kind!==213)return!1;let{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;let o=i[0];return!t||us(o)}function a3(e){return hEe(e,!1)}function C1(e){return hEe(e,!0)}function Cie(e){return Qa(e)&&C1(e.parent.parent)}function hEe(e,t){return Oi(e)&&!!e.initializer&&Sd(t?IR(e.initializer):e.initializer,!0)}function Nj(e){return Ml(e)&&e.declarationList.declarations.length>0&&Jn(e.declarationList.declarations,t=>a3(t))}function kL(e){return e===39||e===34}function s3(e,t){return A1(t,e).charCodeAt(0)===34}function DC(e){return _r(e)||ks(e)||Ve(e)||la(e)}function wL(e){return cr(e)&&e.initializer&&_r(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&zl(e.name)&&lR(e.name,e.initializer.left)?e.initializer.right:e.initializer}function OL(e){let t=wL(e);return t&&c0(t,Vy(e.name))}function H9e(e,t){return Ke(e.properties,r=>_c(r)&&Ve(r.name)&&r.name.escapedText==="value"&&r.initializer&&c0(r.initializer,t))}function PA(e){if(e&&e.parent&&_r(e.parent)&&e.parent.operatorToken.kind===64){let t=Vy(e.parent.left);return c0(e.parent.right,t)||q9e(e.parent.left,e.parent.right,t)}if(e&&la(e)&&bS(e)){let t=H9e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function c0(e,t){if(la(e)){let r=vs(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||wa(e)&&(e.properties.length===0||t))return e}function q9e(e,t,r){let i=_r(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&c0(t.right,r);if(i&&lR(e,t.left))return i}function Nie(e){let t=Oi(e.parent)?e.parent.name:_r(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&c0(e.right,Vy(t))&&zl(t)&&lR(t,e.left)}function Pj(e){if(_r(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&_r(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ve(t.left))return t.left}else if(Oi(e.parent))return e.parent.name}function lR(e,t){return R_(e)&&R_(t)?Zf(e)===Zf(t):Yh(e)&&l3(t)&&(t.expression.kind===110||Ve(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?lR(e,zL(t)):l3(e)&&l3(t)?Fg(e)===Fg(t)&&lR(e.expression,t.expression):!1}function FL(e){for(;Mc(e,!0);)e=e.right;return e}function yS(e){return Ve(e)&&e.escapedText==="exports"}function Mj(e){return Ve(e)&&e.escapedText==="module"}function tg(e){return(zr(e)||WL(e))&&Mj(e.expression)&&Fg(e)==="exports"}function Wl(e){let t=J9e(e);return t===5||cr(e)?t:0}function bS(e){return De(e.arguments)===3&&zr(e.expression)&&Ve(e.expression.expression)&&Sr(e.expression.expression)==="Object"&&Sr(e.expression.name)==="defineProperty"&&Qp(e.arguments[1])&&ES(e.arguments[0],!0)}function l3(e){return zr(e)||WL(e)}function WL(e){return Ys(e)&&Qp(e.argumentExpression)}function N1(e,t){return zr(e)&&(!t&&e.expression.kind===110||Ve(e.name)&&ES(e.expression,!0))||c3(e,t)}function c3(e,t){return WL(e)&&(!t&&e.expression.kind===110||zl(e.expression)||N1(e.expression,!0))}function ES(e,t){return zl(e)||N1(e,t)}function zL(e){return zr(e)?e.name:e.argumentExpression}function J9e(e){if(la(e)){if(!bS(e))return 0;let t=e.arguments[0];return yS(t)||tg(t)?8:N1(t)&&Fg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!ks(e.left)||K9e(FL(e))?0:ES(e.left.expression,!0)&&Fg(e.left)==="prototype"&&wa(Lj(e))?6:BL(e.left)}function K9e(e){return sI(e)&&hp(e.expression)&&e.expression.text==="0"}function u3(e){if(zr(e))return e.name;let t=vs(e.argumentExpression);return hp(t)||us(t)?t:e}function Fg(e){let t=u3(e);if(t){if(Ve(t))return t.escapedText;if(us(t)||hp(t))return ml(t.text)}}function BL(e){if(e.expression.kind===110)return 4;if(tg(e))return 2;if(ES(e.expression,!0)){if(Vy(e.expression))return 3;let t=e;for(;!Ve(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&Fg(t)==="exports")&&N1(e))return 1;if(ES(e,!0)||Ys(e)&&h3(e))return 5}return 0}function Lj(e){for(;_r(e.right);)e=e.right;return e.right}function GL(e){return _r(e)&&Wl(e)===3}function Pie(e){return cr(e)&&e.parent&&e.parent.kind===244&&(!Ys(e)||WL(e))&&!!r0(e.parent)}function VL(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!cr(t)&&!(r.flags&33554432))&&DC(r)&&!DC(t)||r.kind!==t.kind&&oie(r))&&(e.valueDeclaration=t)}function Mie(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||Oi(t)&&t.initializer&&ea(t.initializer)}function cR(e){var t,r;switch(e.kind){case 260:case 208:return(t=zn(e.initializer,i=>Sd(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ai(e.moduleSpecifier,us);case 271:return ai((r=ai(e.moduleReference,Th))==null?void 0:r.expression,us);case 273:case 280:return ai(e.parent.moduleSpecifier,us);case 274:case 281:return ai(e.parent.parent.moduleSpecifier,us);case 276:return ai(e.parent.parent.parent.moduleSpecifier,us);case 205:return zy(e)?e.argument.literal:void 0;default:C.assertNever(e)}}function CC(e){return jL(e)||C.failBadSyntaxKind(e.parent)}function jL(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Wp(e.parent)||Sd(e.parent,!1)?e.parent:void 0;case 201:return C.assert(Na(e)),ai(e.parent.parent,lg);default:return}}function uR(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return zy(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return C.assertNever(e)}}function dR(e){switch(e.kind){case 272:return e.importClause&&ai(e.importClause.namedBindings,Zy);case 271:return e;case 278:return e.exportClause&&ai(e.exportClause,Sh);default:return C.assertNever(e)}}function MA(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function d3(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=Zy(e.namedBindings)?t(e.namedBindings):Ke(e.namedBindings.elements,t);if(r)return r}}function LA(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function pR(e){let t=jR(e)?Xc(e.parameters):void 0,r=ai(t&&t.name,Ve);return!!r&&r.escapedText==="new"}function Qf(e){return e.kind===353||e.kind===345||e.kind===347}function UL(e){return Qf(e)||Dm(e)}function X9e(e){return eu(e)&&_r(e.expression)&&e.expression.operatorToken.kind===64?FL(e.expression):void 0}function gEe(e){return eu(e)&&_r(e.expression)&&Wl(e.expression)!==0&&_r(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function kj(e){switch(e.kind){case 243:let t=kA(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function kA(e){return Ml(e)?Xc(e.declarationList.declarations):void 0}function vEe(e){return Jl(e)&&e.body&&e.body.kind===267?e.body:void 0}function HL(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function qL(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function wj(e,t){let r;rR(e)&&Oy(e)&&Op(e.initializer)&&(r=Jr(r,yEe(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(Op(i)&&(r=Jr(r,yEe(e,i.jsDoc))),i.kind===169){r=Jr(r,(t?pre:jx)(i));break}if(i.kind===168){r=Jr(r,(t?mre:fre)(i));break}i=Oj(i)}return r||et}function yEe(e,t){let r=Ya(t);return Zi(t,i=>{if(i===r){let o=tr(i.tags,s=>Y9e(e,s));return i.tags===o?[i]:o}else return tr(i.tags,UR)})}function Y9e(e,t){return!(RN(t)||s5(t))||!t.parent||!t_(t.parent)||!Wd(t.parent.parent)||t.parent.parent===e}function Oj(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||vEe(t)||Mc(e))return t;if(t.parent&&(kA(t.parent)===e||Mc(t)))return t.parent;if(t.parent&&t.parent.parent&&(kA(t.parent.parent)||kj(t.parent.parent)===e||gEe(t.parent.parent)))return t.parent.parent}function JL(e){if(e.symbol)return e.symbol;if(!Ve(e.name))return;let t=e.name.escapedText,r=u0(e);if(!r)return;let i=vn(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function p3(e){if(t_(e.parent)&&e.parent.tags){let t=vn(e.parent.tags,Qf);if(t)return t}return u0(e)}function Fj(e){return g6(e,UR)}function u0(e){let t=d0(e);if(t)return gp(t)&&t.type&&ea(t.type)?t.type:ea(t)?t:void 0}function d0(e){let t=SS(e);if(t)return gEe(t)||X9e(t)||kj(t)||kA(t)||vEe(t)||t}function SS(e){let t=fR(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===Zs(r.jsDoc))return r}function fR(e){return zn(e.parent,t_)}function Lie(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&vn(r,i=>i.name.escapedText===t)}function bEe(e){return!!e.typeArguments}function kie(e){let t=e.parent;for(;;){switch(t.kind){case 226:let r=t,i=r.operatorToken.kind;return zv(i)&&r.left===e?r:void 0;case 224:case 225:let o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:let l=t;return l.initializer===e?l:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function wA(e){let t=kie(e);if(!t)return 0;switch(t.kind){case 226:let r=t.operatorToken.kind;return r===64||GC(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function ng(e){return!!kie(e)}function $9e(e){let t=vs(e.right);return t.kind===226&&VH(t.operatorToken.kind)}function Wj(e){let t=kie(e);return!!t&&Mc(t,!0)&&$9e(t)}function wie(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function Oie(e){return ws(e)||Bs(e)||RA(e)||Sc(e)||Pl(e)}function EEe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function KL(e){return EEe(e,196)}function Fv(e){return EEe(e,217)}function Fie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function XL(e){for(;LS(e);)e=e.type;return e}function vs(e,t){return Xl(e,t?17:1)}function zj(e){return e.kind!==211&&e.kind!==212?!1:(e=Fv(e.parent),e&&e.kind===220)}function P1(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Wg(e){return!no(e)&&!ta(e)&&qu(e.parent)&&e.parent.name===e}function NC(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Za(t))return t.parent;case 80:if(qu(t))return t.name===e?t:void 0;if(Ad(t)){let r=t.parent;return n_(r)&&r.name===t?r:void 0}else{let r=t.parent;return _r(r)&&Wl(r)!==0&&(r.left.symbol||r.symbol)&&Oo(r)===e?r:void 0}case 81:return qu(t)&&t.name===e?t:void 0;default:return}}function YL(e){return Qp(e)&&e.parent.kind===167&&qu(e.parent.parent)}function Wie(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function SEe(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&mR(e)?!0:cr(e)&&(_r(e)&&Wl(e)===2&&mR(e)||zr(e)&&_r(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&$L(e.parent.right))}function Bj(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return Bj(e)}}function $L(e){return zl(e)||Zc(e)}function mR(e){let t=Gj(e);return $L(t)}function Gj(e){return Ll(e)?e.expression:e.right}function zie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function x_(e){let t=M1(e);if(t&&cr(e)){let r=hre(e);if(r)return r.class}return t}function M1(e){let t=QL(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function _R(e){if(cr(e))return gre(e).map(t=>t.class);{let t=QL(e.heritageClauses,119);return t?.types}}function PC(e){return fd(e)?MC(e)||et:pi(e)&&xo(yA(x_(e)),_R(e))||et}function MC(e){let t=QL(e.heritageClauses,96);return t?t.types:void 0}function QL(e,t){if(e){for(let r of e)if(r.token===t)return r}}function p0(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Fd(e){return 83<=e&&e<=165}function Vj(e){return 19<=e&&e<=79}function f3(e){return Fd(e)||Vj(e)}function m3(e){return 128<=e&&e<=165}function jj(e){return Fd(e)&&!m3(e)}function TEe(e){return 119<=e&&e<=127}function OA(e){let t=y1(e);return t!==void 0&&jj(t)}function AEe(e){let t=y1(e);return t!==void 0&&Fd(t)}function Uj(e){let t=n0(e);return!!t&&!m3(t)}function hR(e){return 2<=e&&e<=7}function Gc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:ei(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function LC(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&ei(e,1024)}return!1}function Qp(e){return us(e)||hp(e)}function _3(e){return Qy(e)&&(e.operator===40||e.operator===41)&&hp(e.operand)}function By(e){let t=Oo(e);return!!t&&h3(t)}function h3(e){if(!(e.kind===167||e.kind===212))return!1;let t=Ys(e)?vs(e.argumentExpression):e.expression;return!Qp(t)&&!_3(t)}function TS(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return ml(e.text);case 167:let t=e.expression;return Qp(t)?ml(t.text):_3(t)?t.operator===41?ma(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return HA(e);default:return C.assertNever(e)}}function R_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Zf(e){return Yh(e)?Sr(e):e_(e)?cN(e):e.text}function kC(e){return Yh(e)?e.escapedText:e_(e)?HA(e):ml(e.text)}function IEe(e){return`__@${Ta(e)}@${e.escapedName}`}function ZL(e,t){return`__#${Ta(e)}@${t}`}function ek(e){return uo(e.escapedName,"__@")}function Bie(e){return uo(e.escapedName,"__#")}function xEe(e){return e.kind===80&&e.escapedText==="Symbol"}function Gie(e){return Ve(e)?Sr(e)==="__proto__":Na(e)&&e.text==="__proto__"}function wC(e,t){switch(e=Xl(e),e.kind){case 231:if(eJ(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function Hj(e){switch(e.kind){case 303:return!Gie(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ve(e.name)&&!!e.initializer;case 169:return Ve(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ve(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Ve(e.left)}break;case 277:return!0}return!1}function mp(e,t){if(!Hj(e))return!1;switch(e.kind){case 303:return wC(e.initializer,t);case 304:return wC(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return wC(e.initializer,t);case 226:return wC(e.right,t);case 277:return wC(e.expression,t)}}function qj(e){return e.escapedText==="push"||e.escapedText==="unshift"}function L1(e){return D_(e).kind===169}function D_(e){for(;e.kind===208;)e=e.parent.parent;return e}function Jj(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Xs(e){return Qm(e.pos)||Qm(e.end)}function REe(e){return Lo(e,no)||e}function Kj(e){let t=Yj(e),r=e.kind===214&&e.arguments!==void 0;return Xj(e.kind,t,r)}function Xj(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function OC(e){let t=Yj(e),r=e.kind===214&&e.arguments!==void 0;return tk(e.kind,t,r)}function Yj(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function tk(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return nk(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function nk(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function gR(e){return tr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function vR(){let e=[],t=[],r=new Map,i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(p){let g;if(p.file?g=r.get(p.file.fileName):g=e,!g)return;let m=xv(g,p,el,F3);if(m>=0)return g[m]}function s(p){let g;p.file?(g=r.get(p.file.fileName),g||(g=[],r.set(p.file.fileName,g),Ty(t,p.file.fileName,ju))):(i&&(i=!1,e=e.slice()),g=e),Ty(g,p,F3)}function l(){return i=!0,e}function u(p){if(p)return r.get(p)||[];let g=$d(t,m=>r.get(m));return e.length&&g.unshift(...e),g}}function $j(e){return e.replace(ZEe,"\\${")}function Vie(e){return!!((e.templateFlags||0)&2048)}function Qj(e){return e&&!!(QA(e)?Vie(e):Vie(e.head)||Et(e.templateSpans,t=>Vie(t.literal)))}function DEe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Q9e(e,t,r){if(e.charCodeAt(0)===0){let i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return rSe.get(e)||DEe(e.charCodeAt(0))}function rg(e,t){let r=t===96?nSe:t===39?tSe:eSe;return e.replace(r,Q9e)}function rk(e,t){return e=rg(e,t),Qoe.test(e)?e.replace(Qoe,r=>DEe(r.charCodeAt(0))):e}function Z9e(e){return"&#x"+e.toString(16).toUpperCase()+";"}function eze(e){return e.charCodeAt(0)===0?"�":aSe.get(e)||Z9e(e.charCodeAt(0))}function Zj(e,t){let r=t===39?oSe:iSe;return e.replace(r,eze)}function em(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&tze(e.charCodeAt(0))?e.substring(1,t-1):e}function tze(e){return e===39||e===34||e===96}function yR(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function g3(e){let t=uN[1];for(let r=uN.length;r<=e;r++)uN.push(uN[r-1]+t);return uN[e]}function bR(){return uN[1].length}function ik(e){var t,r,i,o,s,l=!1;function u(N){let O=TA(N);O.length>1?(o=o+O.length-1,s=t.length-N.length+Ya(O),i=s-t.length===0):i=!1}function p(N){N&&N.length&&(i&&(N=g3(r)+N,i=!1),t+=N,u(N))}function g(N){N&&(l=!1),p(N)}function m(N){N&&(l=!0),p(N)}function b(){t="",r=0,i=!0,o=0,s=0,l=!1}function T(N){N!==void 0&&(t+=N,u(N),l=!1)}function I(N){N&&N.length&&g(N)}function R(N){(!i||N)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function M(){return i?t.length:t.length+e.length}return b(),{write:g,rawWrite:T,writeLiteral:I,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*bR():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Lg(t.charCodeAt(t.length-1)),clear:b,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(N,O)=>g(N),writeTrailingSemicolon:g,writeComment:m,getTextPosWithWriteLine:M}}function eU(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,o){r(),e.writeSymbol(i,o)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function ER(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Wv(e){return Pu(ER(e))}function v3(e,t,r){return t.moduleName||tU(e,t.fileName,r&&r.fileName)}function CEe(e,t){return e.getCanonicalFileName(bo(t,e.getCurrentDirectory()))}function jie(e,t,r){let i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;let o=uR(r);if(!(o&&us(o)&&!wp(o.text)&&!CEe(e,i.path).includes(CEe(e,zc(e.getCommonSourceDirectory())))))return v3(e,i)}function tU(e,t,r){let i=p=>e.getCanonicalFileName(p),o=rl(r?li(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=bo(t,e.getCurrentDirectory()),l=SA(o,s,o,i,!1),u=Td(l);return r?v1(u):u}function Uie(e,t,r){let i=t.getCompilerOptions(),o;return i.outDir?o=Td(S3(e,t,i.outDir)):o=Td(e),o+r}function Hie(e,t){return y3(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function y3(e,t,r,i,o){let s=t.declarationDir||t.outDir,l=s?T3(e,s,r,i,o):e,u=b3(l);return Td(l)+u}function b3(e){return Ec(e,[".mjs",".mts"])?".d.mts":Ec(e,[".cjs",".cts"])?".d.cts":Ec(e,[".json"])?".d.json.ts":".d.ts"}function qie(e){return Ec(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Ec(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Ec(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ps(e){return e.outFile||e.out}function E3(e,t){var r;if(e.paths)return e.baseUrl??C.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function nU(e,t,r){let i=e.getCompilerOptions();if(Ps(i)){let o=ku(i),s=i.emitDeclarationOnly||o===2||o===4;return tr(e.getSourceFiles(),l=>(s||!ac(l))&&AS(l,e,r))}else{let o=t===void 0?e.getSourceFiles():[t];return tr(o,s=>AS(s,e,r))}}function AS(e,t,r){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&ld(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!$f(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(Ps(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let o=bo(QN(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=T3(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Pg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function S3(e,t,r){return T3(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function T3(e,t,r,i,o){let s=bo(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Zr(t,s)}function FC(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add(Vl(f.Could_not_write_file_0_Colon_1,r,u))},s,l)}function NEe(e,t,r){if(e.length>dh(e)&&!r(e)){let i=li(e);NEe(i,t,r),t(e)}}function rU(e,t,r,i,o,s){try{i(e,t,r)}catch{NEe(li(va(e)),o,s),i(e,t,r)}}function WC(e,t){let r=Mg(e);return oC(r,t)}function IS(e,t){return oC(e,t)}function ig(e){return vn(e.members,t=>Pl(t)&&Xf(t.body))}function zC(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&w1(e.parameters[0]);return e.parameters[t?1:0]}}function Jie(e){let t=zC(e);return t&&t.type}function k1(e){if(e.parameters.length&&!b0(e)){let t=e.parameters[0];if(w1(t))return t}}function w1(e){return O1(e.name)}function O1(e){return!!e&&e.kind===80&&iU(e)}function xS(e){return!!zn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function FA(e){if(!O1(e))return!1;for(;Ad(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function iU(e){return e.escapedText==="this"}function RS(e,t){let r,i,o,s;return By(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:C.fail("Accessor has wrong kind")):Ke(e,l=>{if(Ly(l)&&sa(l)===sa(t)){let u=TS(l.name),p=TS(t.name);u===p&&(r?i||(i=l):r=l,l.kind===177&&!o&&(o=l),l.kind===178&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function yu(e){if(!cr(e)&&Sc(e))return;let t=e.type;return t||!cr(e)?t:mC(e)?e.typeExpression&&e.typeExpression.type:i0(e)}function Kie(e){return e.type}function tm(e){return b0(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(cr(e)?rL(e):void 0)}function A3(e){return Zi(o0(e),t=>nze(t)?t.typeParameters:void 0)}function nze(e){return am(e)&&!(e.parent.kind===327&&(e.parent.tags.some(Qf)||e.parent.tags.some(UR)))}function Xie(e){let t=zC(e);return t&&yu(t)}function Yie(e,t,r,i){$ie(e,t,r.pos,i)}function $ie(e,t,r,i){i&&i.length&&r!==i[0].pos&&IS(e,r)!==IS(e,i[0].pos)&&t.writeLine()}function Qie(e,t,r,i){r!==i&&IS(e,r)!==IS(e,i)&&t.writeLine()}function Zie(e,t,r,i,o,s,l,u){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(let g of i)p&&(r.writeSpace(" "),p=!1),u(e,t,r,g.pos,g.end,l),g.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function eoe(e,t,r,i,o,s,l){let u,p;if(l?o.pos===0&&(u=tr(Kh(e,o.pos),g)):u=Kh(e,o.pos),u){let m=[],b;for(let T of u){if(b){let I=IS(t,b.end);if(IS(t,T.pos)>=I+2)break}m.push(T),b=T}if(m.length){let T=IS(t,Ya(m).end);IS(t,La(e,o.pos))>=T+2&&(Yie(t,r,o,u),Zie(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Ya(m).end})}}return p;function g(m){return W6(e,m.pos)}}function SR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){let l=zx(t,i),u=t.length,p;for(let g=i,m=l.line;g0){let R=I%bR(),M=g3((I-R)/bR());for(r.rawWrite(M);R;)r.rawWrite(" "),R--}else r.rawWrite("")}rze(e,o,r,s,g,b),g=b}}else r.writeComment(e.substring(i,o))}function rze(e,t,r,i,o,s){let l=Math.min(t,s-1),u=e.substring(o,l).trim();u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function PEe(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=aU(e)|536870912),r||t&&cr(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=MEe(e)|268435456),LEe(e.modifierFlagsCache)):ize(e.modifierFlagsCache))}function cd(e){return roe(e,!0)}function ioe(e){return roe(e,!0,!0)}function Gy(e){return roe(e,!1)}function MEe(e){let t=0;return e.parent&&!Co(e)&&(cr(e)&&(vre(e)&&(t|=8388608),yre(e)&&(t|=16777216),bre(e)&&(t|=33554432),Ere(e)&&(t|=67108864),Sre(e)&&(t|=134217728)),Tre(e)&&(t|=65536)),t}function ize(e){return e&65535}function LEe(e){return e&131071|(e&260046848)>>>23}function oze(e){return LEe(MEe(e))}function ooe(e){return aU(e)|oze(e)}function aU(e){let t=Cm(e)?N_(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function N_(e){let t=0;if(e)for(let r of e)t|=zA(r.kind);return t}function zA(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function kEe(e){return e===57||e===56}function aoe(e){return kEe(e)||e===54}function GC(e){return e===76||e===77||e===78}function sU(e){return _r(e)&&GC(e.operatorToken.kind)}function ok(e){return kEe(e)||e===61}function ak(e){return _r(e)&&ok(e.operatorToken.kind)}function zv(e){return e>=64&&e<=79}function lU(e){let t=cU(e);return t&&!t.isImplements?t.class:void 0}function cU(e){if(Hv(e)){if(ef(e.parent)&&pi(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(fI(e.parent)){let t=d0(e.parent);if(t&&pi(t))return{class:t,isImplements:!1}}}}function Mc(e,t){return _r(e)&&(t?e.operatorToken.kind===64:zv(e.operatorToken.kind))&&Zd(e.left)}function wEe(e){return Mc(e.parent)&&e.parent.left===e}function Bv(e){if(Mc(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function R3(e){return lU(e)!==void 0}function zl(e){return e.kind===80||sk(e)}function Bp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function VC(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&VC(e.expression)||e.kind===217&&VC(e.expression)}function sk(e){return zr(e)&&Ve(e.name)&&zl(e.expression)}function lk(e){if(zr(e)){let t=lk(e.expression);if(t!==void 0)return t+"."+fp(e.name)}else if(Ys(e)){let t=lk(e.expression);if(t!==void 0&&ic(e.argumentExpression))return t+"."+TS(e.argumentExpression)}else{if(Ve(e))return Hi(e.escapedText);if(e_(e))return cN(e)}}function Vy(e){return N1(e)&&Fg(e)==="prototype"}function jC(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function uU(e){return!!e.parent&&(zr(e.parent)&&e.parent.name===e||Ys(e.parent)&&e.parent.argumentExpression===e)}function soe(e){return Ad(e.parent)&&e.parent.right===e||zr(e.parent)&&e.parent.name===e||y0(e.parent)&&e.parent.right===e}function D3(e){return _r(e)&&e.operatorToken.kind===104}function loe(e){return D3(e.parent)&&e===e.parent.right}function dU(e){return e.kind===210&&e.properties.length===0}function coe(e){return e.kind===209&&e.elements.length===0}function TR(e){if(!(!aze(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function aze(e){return e&&De(e.declarations)>0&&ei(e.declarations[0],2048)}function C3(e){return vn(dSe,t=>Tl(e,t))}function sze(e){let t=[],r=e.length;for(let i=0;i>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):C.assert(!1,"Unexpected code point")}return t}function uoe(e){let t="",r=sze(e),i=0,o=r.length,s,l,u,p;for(;i>2,l=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,p=r[i+2]&63,i+1>=o?u=p=64:i+2>=o&&(p=64),t+=CS.charAt(s)+CS.charAt(l)+CS.charAt(u)+CS.charAt(p),i+=3;return t}function lze(e){let t="",r=0,i=e.length;for(;r>4&3,m=(l&15)<<4|u>>2&15,b=(u&3)<<6|p&63;m===0&&u!==0?i.push(g):b===0&&p!==0?i.push(g,m):i.push(g,m,b),o+=4}return lze(i)}function pU(e,t){let r=wo(t)?t:t.readFile(e);if(!r)return;let i=tq(e,r);return i.error?void 0:i.config}function UC(e,t){return pU(e,t)||{}}function N3(e){try{return JSON.parse(e)}catch{return}}function Ym(e,t){return!t.directoryExists||t.directoryExists(e)}function Gv(e){switch(e.newLine){case 0:return sSe;case 1:case void 0:return lSe}}function Tf(e,t=e){return C.assert(t>=e||t===-1),{pos:e,end:t}}function P3(e,t){return Tf(e.pos,t)}function f0(e,t){return Tf(t,e.end)}function zg(e){let t=Cm(e)?Qr(e.modifiers,Eu):void 0;return t&&!Qm(t.end)?f0(e,t.end):e}function P_(e){if(Jo(e)||jl(e))return f0(e,e.name.pos);let t=Cm(e)?Zs(e.modifiers):void 0;return t&&!Qm(t.end)?f0(e,t.end):zg(e)}function OEe(e){return e.pos===e.end}function fU(e,t){return Tf(e,e+ma(t).length)}function DS(e,t){return moe(e,e,t)}function M3(e,t,r){return Af(HC(e,r,!1),HC(t,r,!1),r)}function foe(e,t,r){return Af(e.end,t.end,r)}function moe(e,t,r){return Af(HC(e,r,!1),t.end,r)}function ck(e,t,r){return Af(e.end,HC(t,r,!1),r)}function mU(e,t,r,i){let o=HC(t,r,i);return aC(r,e.end,o)}function FEe(e,t,r){return aC(r,e.end,t.end)}function _oe(e,t){return!Af(e.pos,e.end,t)}function Af(e,t,r){return aC(r,e,t)===0}function HC(e,t,r){return Qm(e.pos)?-1:La(t.text,e.pos,!1,r)}function hoe(e,t,r,i){let o=La(r.text,e,!1,i),s=cze(o,t,r);return aC(r,s??t,o)}function goe(e,t,r,i){let o=La(r.text,e,!1,i);return aC(r,e,Math.min(t,o))}function cze(e,t=0,r){for(;e-- >t;)if(!Lg(r.text.charCodeAt(e)))return e}function _U(e){let t=Lo(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function qC(e){return tr(e.declarations,uk)}function uk(e){return Oi(e)&&e.initializer!==void 0}function WEe(e){return e.watch&&Rs(e,"watch")}function $m(e){e.close()}function Al(e){return e.flags&33554432?e.links.checkFlags:0}function If(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&vn(e.declarations,vp)||e.flags&32768&&vn(e.declarations,Zp)||e.valueDeclaration,i=t0(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Al(e)&6){let r=e.links.checkFlags,i=r&1024?2:r&256?1:4,o=r&2048?256:0;return i|o}return e.flags&4194304?257:0}function bu(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function AR(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function L3(e){return JC(e)===1}function BA(e){return JC(e)!==0}function JC(e){let{parent:t}=e;switch(t?.kind){case 217:return JC(t);case 225:case 224:let{operator:r}=t;return r===46||r===47?2:0;case 226:let{left:i,operatorToken:o}=t;return i===e&&zv(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:JC(t);case 303:{let s=JC(t.parent);return e===t.name?uze(s):s}case 304:return e===t.objectAssignmentInitializer?0:JC(t.parent);case 209:return JC(t);default:return 0}}function uze(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return C.assertNever(e)}}function hU(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(typeof e[r]=="object"){if(!hU(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function ep(e,t){e.forEach(t),e.clear()}function og(e,t,r){let{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var u;t?.has(l)?o&&o(s,(u=t.get)==null?void 0:u.call(t,l),l):(e.delete(l),i(s,l))})}function KC(e,t,r){og(e,t,r);let{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function voe(e){if(e.flags&32){let t=Bg(e);return!!t&&ei(t,64)}return!1}function Bg(e){var t;return(t=e.declarations)==null?void 0:t.find(pi)}function Wr(e){return e.flags&3899393?e.objectFlags:0}function zEe(e,t){return!!Em(e,r=>t(r)?!0:void 0)}function k3(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Hk(e.declarations[0])}function yoe({moduleSpecifier:e}){return Na(e)?e.text:pc(e)}function gU(e){let t;return Ho(e,r=>{Xf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Xf(r[i])){t=r[i];break}}),t}function xm(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function GA(e){return pi(e)||fd(e)||yp(e)}function vU(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function ks(e){return e.kind===211||e.kind===212}function yU(e){return e.kind===211?e.name:(C.assert(e.kind===212),e.argumentExpression)}function boe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function w3(e){return e.kind===275||e.kind===279}function IR(e){for(;ks(e);)e=e.expression;return e}function Eoe(e,t){if(ks(e.parent)&&uU(e))return r(e.parent);function r(i){if(i.kind===211){let o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(Ve(i.argumentExpression)||us(i.argumentExpression)){let o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(ks(i.expression))return r(i.expression);if(Ve(i.expression))return t(i.expression)}}function xR(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function dze(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.lastAssignmentPos=void 0,this.links=void 0}function pze(e,t){this.flags=t,(C.isDebugging||lr)&&(this.checker=e)}function fze(e,t){this.flags=t,C.isDebugging&&(this.checker=e)}function Soe(e,t,r){this.pos=t,this.end=r,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 mze(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function _ze(e,t,r){this.pos=t,this.end=r,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 hze(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function Toe(e){Zoe.push(e),e(lu)}function Aoe(e){Object.assign(lu,e),Ke(Zoe,t=>t(lu))}function ag(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+C.checkDefined(t[+i]))}function Ioe(e){l7=e}function xoe(e){!l7&&e&&(l7=e())}function Bo(e){return l7&&l7[e.key]||e.message}function RR(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),die(t,r,i);let l=Bo(o);return Et(s)&&(l=ag(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function gze(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function BEe(e,t){let r=t.fileName||"",i=t.text.length;C.assertEqual(e.fileName,r),C.assertLessThanOrEqual(e.start,i),C.assertLessThanOrEqual(e.start+e.length,i);let o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(let s of e.relatedInformation)gze(s)&&s.fileName===r?(C.assertLessThanOrEqual(s.start,i),C.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(BEe(s,t))):o.relatedInformation.push(s)}return o}function VA(e,t){let r=[];for(let i of e)r.push(BEe(i,t));return r}function Qc(e,t,r,i,...o){die(e.text,t,r);let s=Bo(i);return Et(o)&&(s=ag(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function bU(e,...t){let r=Bo(e);return Et(t)&&(r=ag(r,t)),r}function Vl(e,...t){let r=Bo(e);return Et(t)&&(r=ag(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function O3(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 Uo(e,t,...r){let i=Bo(t);return Et(r)&&(i=ag(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Roe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function GEe(e){return e.file?e.file.path:void 0}function XC(e,t){return F3(e,t)||vze(e,t)||0}function F3(e,t){return ju(GEe(e),GEe(t))||tl(e.start,t.start)||tl(e.length,t.length)||tl(e.code,t.code)||VEe(e.messageText,t.messageText)||0}function vze(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?tl(e.relatedInformation.length,t.relatedInformation.length)||Ke(e.relatedInformation,(r,i)=>{let o=t.relatedInformation[i];return XC(r,o)})||0:e.relatedInformation?-1:1}function VEe(e,t){if(typeof e=="string"&&typeof t=="string")return ju(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=ju(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;let i=Math.min(e.next.length,t.next.length);for(let o=0;ot.next.length?1:0}function dk(e){return e===4||e===2||e===1||e===6?1:0}function jEe(e){if(e.transformFlags&2)return sd(e)||X1(e)?e:Ho(e,jEe)}function yze(e){return e.isDeclarationFile?void 0:jEe(e)}function bze(e){return(e.impliedNodeFormat===99||Ec(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function pk(e){switch(UU(e)){case 3:return o=>{o.externalModuleIndicator=nw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=nw(o)};case 2:let t=[nw];(e.jsx===4||e.jsx===5)&&t.push(yze),t.push(bze);let r=Xm(...t);return o=>void(o.externalModuleIndicator=r(o))}}function Pbt(e){return e}function W3(e){return e>=5&&e<=99}function z3(e){switch(ku(e)){case 0:case 4:case 3:return!1}return!0}function EU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function Doe(e){return e.allowUnreachableCode===!1}function Coe(e){return e.allowUnusedLabels===!1}function jA(e){return e>=3&&e<=99||e===100}function ud(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function Noe(e){return e.useDefineForClassFields!==!1&&as(e)>=9}function Poe(e,t){return Yx(t,e,uq)}function Moe(e,t){return Yx(t,e,dq)}function Loe(e,t){return Yx(t,e,pq)}function B3(e,t){return t.strictFlag?ud(e,t.name):t.allowJsFlag?qy(e):e[t.name]}function G3(e){let t=e.jsx;return t===2||t===4||t===5}function V3(e,t){let r=t?.pragmas.get("jsximportsource"),i=Do(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?i?.arguments.factory||e.jsxImportSource||"react":void 0}function j3(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function SU(e){let t=!1;for(let r=0;ro,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,p)=>(o||(o=new Map)).set(u,p),setSymlinkedDirectory:(u,p)=>{let g=rl(u,e,t);iN(g)||(g=zc(g),p!==!1&&!r?.has(g)&&(i||(i=Xp())).add(p.realPath,u),(r||(r=new Map)).set(g,p))},setSymlinksFromResolutions(u,p,g){C.assert(!s),s=!0,u(m=>l(this,m.resolvedModule)),p(m=>l(this,m.resolvedTypeReferenceDirective)),g.forEach(m=>l(this,m.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(u,p){if(!p||!p.originalPath||!p.resolvedFileName)return;let{resolvedFileName:g,originalPath:m}=p;u.setSymlinkedFile(rl(m,e,t),g);let[b,T]=Eze(g,m,e,t)||et;b&&T&&u.setSymlinkedDirectory(T,{real:zc(b),realPath:zc(rl(b,e,t))})}}function Eze(e,t,r,i){let o=Wc(bo(e,r)),s=Wc(bo(t,r)),l=!1;for(;o.length>=2&&s.length>=2&&!UEe(o[o.length-2],i)&&!UEe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Ry(o),Ry(s)]:void 0}function UEe(e,t){return e!==void 0&&(t(e)==="node_modules"||uo(e,"@"))}function Sze(e){return TV(e.charCodeAt(0))?e.slice(1):void 0}function AU(e,t,r){let i=dG(e,t,r);return i===void 0?void 0:Sze(i)}function HEe(e){return e.replace(HU,Tze)}function Tze(e){return"\\"+e}function YC(e,t,r){let i=U3(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function U3(e,t,r){if(!(e===void 0||e.length===0))return Zi(e,i=>i&&H3(i,t,r,KU[r]))}function IU(e){return!/[.*?]/.test(e)}function koe(e,t,r){let i=e&&H3(e,t,r,KU[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function H3(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=KU[r]){let l="",u=!1,p=VM(e,t),g=Ya(p);if(r!=="exclude"&&g==="**")return;p[0]=$b(p[0]),IU(g)&&p.push("**","*");let m=0;for(let b of p){if(b==="**")l+=o;else if(r==="directories"&&(l+="(",m++),u&&(l+=il),r!=="exclude"){let T="";b.charCodeAt(0)===42?(T+="([^./]"+i+")?",b=b.substr(1)):b.charCodeAt(0)===63&&(T+="[^./]",b=b.substr(1)),T+=b.replace(HU,s),T!==b&&(l+=JU),l+=T}else l+=b.replace(HU,s);u=!0}for(;m>0;)l+=")?",m--;return l}function woe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function q3(e,t,r,i,o){e=va(e),o=va(o);let s=Zr(o,e);return{includeFilePatterns:Ft(U3(r,s,"files"),l=>`^${l}$`),includeFilePattern:YC(r,s,"files"),includeDirectoryPattern:YC(r,s,"directories"),excludePattern:YC(t,s,"exclude"),basePaths:Aze(e,r,i)}}function jy(e,t){return new RegExp(e,t?"":"i")}function xU(e,t,r,i,o,s,l,u,p){e=va(e),s=va(s);let g=q3(e,r,i,o,s),m=g.includeFilePatterns&&g.includeFilePatterns.map(O=>jy(O,o)),b=g.includeDirectoryPattern&&jy(g.includeDirectoryPattern,o),T=g.excludePattern&&jy(g.excludePattern,o),I=m?m.map(()=>[]):[[]],R=new Map,M=Pu(o);for(let O of g.basePaths)N(O,Zr(s,O),l);return ts(I);function N(O,H,K){let Z=M(p(H));if(R.has(Z))return;R.set(Z,!0);let{files:V,directories:ue}=u(O);for(let G of nS(V,ju)){let ne=Zr(O,G),he=Zr(H,G);if(!(t&&!Ec(ne,t))&&!(T&&T.test(he)))if(!m)I[0].push(ne);else{let ye=ri(m,$=>$.test(he));ye!==-1&&I[ye].push(ne)}}if(!(K!==void 0&&(K--,K===0)))for(let G of nS(ue,ju)){let ne=Zr(O,G),he=Zr(H,G);(!b||b.test(he))&&(!T||!T.test(he))&&N(ne,he,K)}}}function Aze(e,t,r){let i=[e];if(t){let o=[];for(let s of t){let l=dp(s)?s:va(Zr(e,s));o.push(Ize(l))}o.sort(Nx(!r));for(let s of o)Jn(i,l=>!ym(l,s,e,!r))&&i.push(s)}return i}function Ize(e){let t=Kc(e,cSe);return t<0?EA(e)?$b(li(e)):e:e.substring(0,e.lastIndexOf(il,t))}function J3(e,t){return t||K3(e)||3}function K3(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 $C(e,t){let r=e&&qy(e);if(!t||t.length===0)return r?d7:MR;let i=r?d7:MR,o=ts(i);return[...i,...Vi(t,l=>l.scriptKind===7||r&&xze(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function fk(e,t){return!e||!h0(e)?t:t===d7?pSe:t===MR?uSe:[...t,[".json"]]}function xze(e){return e===1||e===2}function W1(e){return Et(LR,t=>Tl(e,t))}function UA(e){return Et(XU,t=>Tl(e,t))}function Ooe({imports:e},t=Xm(W1,UA)){return Zt(e,({text:r})=>wp(r)&&!Ec(r,xk)?t(r):void 0)||!1}function Foe(e,t,r,i){let o=dd(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return i2(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!i2(r))return Ooe(i)?2:0;return l();function l(){let u=!1,p=i.imports.length?i.imports:ld(i)?Rze(i).map(g=>g.arguments[0]):et;for(let g of p)if(wp(g.text)){if(s&&t===1&&xJ(i,g,r)===99||Ec(g.text,xk))continue;if(UA(g.text))return 3;W1(g.text)&&(u=!0)}return u?2:0}}function Rze(e){let t=0,r;for(let i of e.statements){if(t>3)break;Nj(i)?r=xo(r,i.declarationList.declarations.map(o=>o.initializer)):eu(i)&&Sd(i.expression,!0)?r=In(r,i.expression):t++}return r||et}function Woe(e,t,r){if(!e)return!1;let i=$C(t,r);for(let o of ts(fk(t,i)))if(Tl(e,o))return!0;return!1}function qEe(e){let t=e.match(/\//g);return t?t.length:0}function mk(e,t){return tl(qEe(e),qEe(t))}function Td(e){for(let t of QU){let r=zoe(e,t);if(r!==void 0)return r}return e}function zoe(e,t){return Tl(e,t)?_k(e,t):void 0}function _k(e,t){return e.substring(0,e.length-t.length)}function m0(e,t){return jM(e,t,QU,!1)}function DR(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function X3(e){return Vi(Jh(e),t=>DR(t))}function Qm(e){return!(e>=0)}function Y3(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||uo(e,".d.")&&Sl(e,".ts")}function QC(e){return Y3(e)||e===".json"}function ZC(e){let t=Gg(e);return t!==void 0?t:C.fail(`File ${e} has unknown extension.`)}function JEe(e){return Gg(e)!==void 0}function Gg(e){return vn(QU,t=>Tl(e,t))}function hk(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function RU(e,t){let r=[];for(let i of e){if(i===t)return t;wo(i)||r.push(i)}return uG(r,i=>i,t)}function DU(e,t){let r=e.indexOf(t);return C.assert(r!==-1),e.slice(r)}function ka(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),C.assert(e.relatedInformation!==et,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Boe(e,t){C.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;oi&&(i=s)}return{min:r,max:i}}function CU(e){return{pos:s0(e),end:e.end}}function NU(e,t){let r=t.pos-1,i=Math.min(e.text.length,La(e.text,t.end)+1);return{pos:r,end:i}}function eN(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function $3(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&gne(e,t,$3)}function tN(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:let g=e.length-1,m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,g)||"0"}let r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let g=i-1,m=0;g>=r;g--,m+=t){let b=m>>>4,T=e.charCodeAt(g),R=(T<=57?T-48:10+T-(T<=70?65:97))<<(m&15);s[b]|=R;let M=R>>>16;M&&(s[b+1]|=M)}let l="",u=s.length-1,p=!0;for(;p;){let g=0;p=!1;for(let m=u;m>=0;m--){let b=g<<16|s[m],T=b/10|0;s[m]=T,g=b-T*10,T&&!p&&(u=m,p=!0)}l=g+l}return l}function z1({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Goe(e){if(Q3(e,!1))return PU(e)}function PU(e){let t=e.startsWith("-"),r=tN(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function Q3(e,t){if(e==="")return!1;let r=Mv(99,!1),i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan(),s=o===41;s&&(o=r.scan());let l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===z1({negative:s,base10Value:tN(r.getTokenValue())}))}function _0(e){return!!(e.flags&33554432)||r3(e)||Nze(e)||Cze(e)||!(eg(e)||Dze(e))}function Dze(e){return Ve(e)&&np(e.parent)&&e.parent.name===e}function Cze(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(ei(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function Nze(e){if(e.kind!==80)return!1;let t=zn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function Voe(e){return Rf(e)&&Ve(e.typeName)}function joe(e,t=Cv){if(e.length<2)return!0;let r=e[0];for(let i=1,o=e.length;ie.includes(t))}function qoe(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:i}=e;return US(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(Xx(e))return GS(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return dS(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return qi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return hL(e)?t.children:void 0;case 286:case 285:return qi(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return $c(e)?t.members:void 0;case 266:return Q1(e)?t.members:void 0;case 312:return t.statements}}function Z3(e){if(!e.typeParameters){if(Et(e.parameters,t=>!yu(t)))return!0;if(e.kind!==219){let t=Xc(e.parameters);if(!(t&&w1(t)))return!0}}return!1}function oN(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Joe(e){return e.kind===260&&e.parent.kind===299}function B1(e){return e.kind===218||e.kind===219}function G1(e){return e.replace(/\$/gm,()=>"\\$")}function sg(e){return(+e).toString()===e}function e7(e,t,r,i,o){let s=o&&e==="new";return!s&&$p(e,t)?k.createIdentifier(e):!i&&!s&&sg(e)&&+e>=0?k.createNumericLiteral(+e):k.createStringLiteral(e,!!r)}function aN(e){return!!(e.flags&262144&&e.isThisType)}function t7(e){let t=0,r=0,i=0,o=0,s;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,u=0,p=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),p){case 0:e.indexOf(Ih,l)===l&&(t=l,r=u,p=1);break;case 1:case 2:p===1&&e.charAt(l+1)==="@"?p=2:(i=u,p=3);break;case 3:e.indexOf(Ih,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function KEe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function PR(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function gk(e){return v0(e)||Ml(e)||Sc(e)||Tc(e)||fd(e)||PR(e)||Jl(e)&&!I1(e)&&!I_(e)}function vk(e){if(!mC(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function LU(e,t){if(e.length===0)return!1;let r=e.charCodeAt(0);return r===35?e.length>1&&Xh(e.charCodeAt(1),t):Xh(r,t)}function Koe(e){var t;return((t=sH(e))==null?void 0:t.kind)===0}function yk(e){return cr(e)&&(e.type&&e.type.kind===323||jx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function sN(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||yk(e);case 355:case 348:return vk(e);default:return!1}}function Xoe(e){let t=e.kind;return(t===211||t===212)&&lI(e.expression)}function kU(e){return cr(e)&&Wd(e)&&Op(e)&&!!zV(e)}function wU(e){return C.checkDefined(n7(e))}function n7(e){let t=zV(e);return t&&t.typeExpression&&t.typeExpression.type}function lN(e){return Ve(e)?e.escapedText:HA(e)}function bk(e){return Ve(e)?Sr(e):cN(e)}function Yoe(e){let t=e.kind;return t===80||t===295}function HA(e){return`${e.namespace.escapedText}:${Sr(e.name)}`}function cN(e){return`${Sr(e.namespace)}:${Sr(e.name)}`}function OU(e){return Ve(e)?Sr(e):cN(e)}function nm(e){return!!(e.flags&8576)}function rm(e){return e.flags&8192?e.escapedName:e.flags&384?ml(""+e.value):C.fail()}function r7(e){return!!e&&(zr(e)||Ys(e)||_r(e))}function $oe(e){return e===void 0?!1:!!s2(e.attributes)}function qA(e,t){return fSe.call(e,"*",t)}function i7(e){return Ve(e.name)?e.name.escapedText:ml(e.name.text)}var o7,Hy,Ek,a7,Sk,s7,FU,WU,XEe,YEe,zU,$Ee,QEe,BU,GU,VU,jU,ZEe,eSe,tSe,nSe,rSe,Qoe,iSe,oSe,aSe,uN,CS,sSe,lSe,lu,Zoe,l7,mc,as,ku,dd,UU,im,vh,NS,c7,u7,h0,xf,V1,dN,Tk,qy,pN,HU,cSe,qU,JU,eae,tae,nae,KU,MR,XU,uSe,dSe,YU,LR,d7,pSe,Ak,Ik,xk,$U,QU,p7,fSe,Mze=A({"src/compiler/utilities.ts"(){"use strict";ia(),o7=[],Hy="tslib",Ek=160,a7=1e6,Sk=w9e(),s7=Ed(()=>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:et})),AsyncIterator:new Map(Object.entries({es2015:et})),Atomics:new Map(Object.entries({es2017:et})),SharedArrayBuffer:new Map(Object.entries({es2017:et})),AsyncIterable:new Map(Object.entries({es2018:et})),AsyncIterableIterator:new Map(Object.entries({es2018:et})),AsyncGenerator:new Map(Object.entries({es2018:et})),AsyncGeneratorFunction:new Map(Object.entries({es2018:et})),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:et,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:et})),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:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),FU=(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))(FU||{}),WU=/^(\/\/\/\s*/,XEe=/^(\/\/\/\s*/,YEe=/^(\/\/\/\s*/,zU=/^(\/\/\/\s*/,$Ee=/^\/\/\/\s*/,QEe=/^(\/\/\/\s*/,BU=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(BU||{}),GU=(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))(GU||{}),VU=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(VU||{}),jU=(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))(jU||{}),ZEe=/\$\{/g,eSe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,tSe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,nSe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,rSe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),Qoe=/[^\u0000-\u007F]/g,iSe=/["\u0000-\u001f\u2028\u2029\u0085]/g,oSe=/['\u0000-\u001f\u2028\u2029\u0085]/g,aSe=new Map(Object.entries({'"':""","'":"'"})),uN=[""," "],CS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",sSe=`\r +`,lSe=` +`,lu={getNodeConstructor:()=>Soe,getTokenConstructor:()=>mze,getIdentifierConstructor:()=>_ze,getPrivateIdentifierConstructor:()=>Soe,getSourceFileConstructor:()=>Soe,getSymbolConstructor:()=>dze,getTypeConstructor:()=>pze,getSignatureConstructor:()=>fze,getSourceMapSourceConstructor:()=>hze},Zoe=[],mc={target:{dependencies:["module"],computeValue:e=>e.target??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:mc.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(mc.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(mc.module.computeValue(e)===100||mc.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(mc.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:mc.esModuleInterop.computeValue(e)||mc.module.computeValue(e)===4||mc.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=mc.moduleResolution.computeValue(e);if(!jA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=mc.moduleResolution.computeValue(e);if(!jA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:mc.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||mc.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&mc.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?mc.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>ud(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>ud(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>ud(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>ud(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>ud(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>ud(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>ud(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>ud(e,"useUnknownInCatchVariables")}},as=mc.target.computeValue,ku=mc.module.computeValue,dd=mc.moduleResolution.computeValue,UU=mc.moduleDetection.computeValue,im=mc.isolatedModules.computeValue,vh=mc.esModuleInterop.computeValue,NS=mc.allowSyntheticDefaultImports.computeValue,c7=mc.resolvePackageJsonExports.computeValue,u7=mc.resolvePackageJsonImports.computeValue,h0=mc.resolveJsonModule.computeValue,xf=mc.declaration.computeValue,V1=mc.preserveConstEnums.computeValue,dN=mc.incremental.computeValue,Tk=mc.declarationMap.computeValue,qy=mc.allowJs.computeValue,pN=mc.useDefineForClassFields.computeValue,HU=/[^\w\s/]/g,cSe=[42,63],qU=["node_modules","bower_components","jspm_packages"],JU=`(?!(${qU.join("|")})(/|$))`,eae={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${JU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>woe(e,eae.singleAsteriskRegexFragment)},tae={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${JU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>woe(e,tae.singleAsteriskRegexFragment)},nae={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>woe(e,nae.singleAsteriskRegexFragment)},KU={files:eae,directories:tae,exclude:nae},MR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],XU=ts(MR),uSe=[...MR,[".json"]],dSe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],YU=[[".js",".jsx"],[".mjs"],[".cjs"]],LR=ts(YU),d7=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],pSe=[...d7,[".json"]],Ak=[".d.ts",".d.cts",".d.mts"],Ik=[".ts",".cts",".mts",".tsx"],xk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],$U=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))($U||{}),QU=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],p7={files:et,directories:et},fSe=String.prototype.replace}});function rae(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:p,createBaseNode:g};function s(m){return new(o||(o=lu.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=lu.getIdentifierConstructor()))(m,-1,-1)}function u(m){return new(i||(i=lu.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=lu.getTokenConstructor()))(m,-1,-1)}function g(m){return new(e||(e=lu.getNodeConstructor()))(m,-1,-1)}}var Lze=A({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";ia()}});function iae(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:g,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:b,parenthesizeConditionOfConditionalExpression:T,parenthesizeBranchOfConditionalExpression:I,parenthesizeExpressionOfExportDefault:R,parenthesizeExpressionOfNew:M,parenthesizeLeftSideOfAccess:N,parenthesizeOperandOfPostfixUnary:O,parenthesizeOperandOfPrefixUnary:H,parenthesizeExpressionsOfCommaDelimitedList:K,parenthesizeExpressionForDisallowedComma:Z,parenthesizeExpressionOfExpressionStatement:V,parenthesizeConciseBodyOfArrowFunction:ue,parenthesizeCheckTypeOfConditionalType:G,parenthesizeExtendsTypeOfConditionalType:ne,parenthesizeConstituentTypesOfUnionType:ye,parenthesizeConstituentTypeOfUnionType:he,parenthesizeConstituentTypesOfIntersectionType:Y,parenthesizeConstituentTypeOfIntersectionType:$,parenthesizeOperandOfTypeOperator:oe,parenthesizeOperandOfReadonlyTypeOperator:fe,parenthesizeNonArrayTypeOfPostfixType:Ne,parenthesizeElementTypesOfTupleType:me,parenthesizeElementTypeOfTupleType:ie,parenthesizeTypeOfOptionalType:Le,parenthesizeTypeArguments:Ce,parenthesizeLeadingTypeArgument:He};function i(Me){t||(t=new Map);let Fe=t.get(Me);return Fe||(Fe=At=>g(Me,At),t.set(Me,Fe)),Fe}function o(Me){r||(r=new Map);let Fe=r.get(Me);return Fe||(Fe=At=>m(Me,void 0,At),r.set(Me,Fe)),Fe}function s(Me,Fe,At,Se){let je=tk(226,Me),at=Xj(226,Me),Bt=Sm(Fe);if(!At&&Fe.kind===219&&je>3)return!0;let yt=OC(Bt);switch(tl(yt,je)){case-1:return!(!At&&at===1&&Fe.kind===229);case 1:return!1;case 0:if(At)return at===1;if(_r(Bt)&&Bt.operatorToken.kind===Me){if(l(Me))return!1;if(Me===40){let gt=Se?u(Se):0;if(_C(gt)&>===u(Bt))return!1}}return Kj(Bt)===0}}function l(Me){return Me===42||Me===52||Me===51||Me===53||Me===28}function u(Me){if(Me=Sm(Me),_C(Me.kind))return Me.kind;if(Me.kind===226&&Me.operatorToken.kind===40){if(Me.cachedLiteralKind!==void 0)return Me.cachedLiteralKind;let Fe=u(Me.left),At=_C(Fe)&&Fe===u(Me.right)?Fe:0;return Me.cachedLiteralKind=At,At}return 0}function p(Me,Fe,At,Se){return Sm(Fe).kind===217?Fe:s(Me,Fe,At,Se)?e.createParenthesizedExpression(Fe):Fe}function g(Me,Fe){return p(Me,Fe,!0)}function m(Me,Fe,At){return p(Me,At,!1,Fe)}function b(Me){return DN(Me)?e.createParenthesizedExpression(Me):Me}function T(Me){let Fe=tk(227,58),At=Sm(Me),Se=OC(At);return tl(Se,Fe)!==1?e.createParenthesizedExpression(Me):Me}function I(Me){let Fe=Sm(Me);return DN(Fe)?e.createParenthesizedExpression(Me):Me}function R(Me){let Fe=Sm(Me),At=DN(Fe);if(!At)switch(xR(Fe,!1).kind){case 231:case 218:At=!0}return At?e.createParenthesizedExpression(Me):Me}function M(Me){let Fe=xR(Me,!0);switch(Fe.kind){case 213:return e.createParenthesizedExpression(Me);case 214:return Fe.arguments?Me:e.createParenthesizedExpression(Me)}return N(Me)}function N(Me,Fe){let At=Sm(Me);return Zd(At)&&(At.kind!==214||At.arguments)&&(Fe||!Hu(At))?Me:dt(e.createParenthesizedExpression(Me),Me)}function O(Me){return Zd(Me)?Me:dt(e.createParenthesizedExpression(Me),Me)}function H(Me){return QV(Me)?Me:dt(e.createParenthesizedExpression(Me),Me)}function K(Me){let Fe=Io(Me,Z);return dt(e.createNodeArray(Fe,Me.hasTrailingComma),Me)}function Z(Me){let Fe=Sm(Me),At=OC(Fe),Se=tk(226,28);return At>Se?Me:dt(e.createParenthesizedExpression(Me),Me)}function V(Me){let Fe=Sm(Me);if(la(Fe)){let Se=Fe.expression,je=Sm(Se).kind;if(je===218||je===219){let at=e.updateCallExpression(Fe,dt(e.createParenthesizedExpression(Se),Se),Fe.typeArguments,Fe.arguments);return e.restoreOuterExpressions(Me,at,8)}}let At=xR(Fe,!1).kind;return At===210||At===218?dt(e.createParenthesizedExpression(Me),Me):Me}function ue(Me){return!Xo(Me)&&(DN(Me)||xR(Me,!1).kind===210)?dt(e.createParenthesizedExpression(Me),Me):Me}function G(Me){switch(Me.kind){case 184:case 185:case 194:return e.createParenthesizedType(Me)}return Me}function ne(Me){switch(Me.kind){case 194:return e.createParenthesizedType(Me)}return Me}function he(Me){switch(Me.kind){case 192:case 193:return e.createParenthesizedType(Me)}return G(Me)}function ye(Me){return e.createNodeArray(Io(Me,he))}function $(Me){switch(Me.kind){case 192:case 193:return e.createParenthesizedType(Me)}return he(Me)}function Y(Me){return e.createNodeArray(Io(Me,$))}function oe(Me){switch(Me.kind){case 193:return e.createParenthesizedType(Me)}return $(Me)}function fe(Me){switch(Me.kind){case 198:return e.createParenthesizedType(Me)}return oe(Me)}function Ne(Me){switch(Me.kind){case 195:case 198:case 186:return e.createParenthesizedType(Me)}return oe(Me)}function me(Me){return e.createNodeArray(Io(Me,ie))}function ie(Me){return ve(Me)?e.createParenthesizedType(Me):Me}function ve(Me){return VR(Me)?Me.postfix:FR(Me)||bh(Me)||OR(Me)||kS(Me)?ve(Me.type):aI(Me)?ve(Me.falseType):Xy(Me)||oI(Me)?ve(Ya(Me.types)):MS(Me)?!!Me.typeParameter.constraint&&ve(Me.typeParameter.constraint):!1}function Le(Me){return ve(Me)?e.createParenthesizedType(Me):Ne(Me)}function He(Me){return Nre(Me)&&Me.typeParameters?e.createParenthesizedType(Me):Me}function Ee(Me,Fe){return Fe===0?He(Me):Me}function Ce(Me){if(Et(Me))return e.createNodeArray(Io(Me,Ee))}}var ZU,kze=A({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";ia(),ZU={getParenthesizeLeftSideOfBinaryForOperator:e=>el,getParenthesizeRightSideOfBinaryForOperator:e=>el,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:el,parenthesizeConditionOfConditionalExpression:el,parenthesizeBranchOfConditionalExpression:el,parenthesizeExpressionOfExportDefault:el,parenthesizeExpressionOfNew:e=>aa(e,Zd),parenthesizeLeftSideOfAccess:e=>aa(e,Zd),parenthesizeOperandOfPostfixUnary:e=>aa(e,Zd),parenthesizeOperandOfPrefixUnary:e=>aa(e,QV),parenthesizeExpressionsOfCommaDelimitedList:e=>aa(e,E1),parenthesizeExpressionForDisallowedComma:el,parenthesizeExpressionOfExpressionStatement:el,parenthesizeConciseBodyOfArrowFunction:el,parenthesizeCheckTypeOfConditionalType:el,parenthesizeExtendsTypeOfConditionalType:el,parenthesizeConstituentTypesOfUnionType:e=>aa(e,E1),parenthesizeConstituentTypeOfUnionType:el,parenthesizeConstituentTypesOfIntersectionType:e=>aa(e,E1),parenthesizeConstituentTypeOfIntersectionType:el,parenthesizeOperandOfTypeOperator:el,parenthesizeOperandOfReadonlyTypeOperator:el,parenthesizeNonArrayTypeOfPostfixType:el,parenthesizeElementTypesOfTupleType:e=>aa(e,E1),parenthesizeElementTypeOfTupleType:el,parenthesizeTypeOfOptionalType:el,parenthesizeTypeArguments:e=>e&&aa(e,E1),parenthesizeLeadingTypeArgument:el}}});function oae(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:g};function t(m,b){if(Xo(m))return m;let T=e.createReturnStatement(m);dt(T,m);let I=e.createBlock([T],b);return dt(I,m),I}function r(m){var b;if(!m.body)return C.fail("Cannot convert a FunctionDeclaration without a body");let T=e.createFunctionExpression((b=b1(m))==null?void 0:b.filter(I=>!eI(I)&&!X7(I)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return Pr(T,m),dt(T,m),fN(m)&&_7(T,!0),T}function i(m){var b;let T=e.createClassExpression((b=m.modifiers)==null?void 0:b.filter(I=>!eI(I)&&!X7(I)),m.name,m.typeParameters,m.heritageClauses,m.members);return Pr(T,m),dt(T,m),fN(m)&&_7(T,!0),T}function o(m){if(Qa(m)){if(m.dotDotDotToken)return C.assertNode(m.name,Ve),Pr(dt(e.createSpreadElement(m.name),m),m);let b=g(m.name);return m.initializer?Pr(dt(e.createAssignment(b,m.initializer),m),m):b}return aa(m,bt)}function s(m){if(Qa(m)){if(m.dotDotDotToken)return C.assertNode(m.name,Ve),Pr(dt(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){let b=g(m.name);return Pr(dt(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(b,m.initializer):b),m),m)}return C.assertNode(m.name,Ve),Pr(dt(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return aa(m,wg)}function l(m){switch(m.kind){case 207:case 209:return p(m);case 206:case 210:return u(m)}}function u(m){return om(m)?Pr(dt(e.createObjectLiteralExpression(Ft(m.elements,s)),m),m):aa(m,wa)}function p(m){return U1(m)?Pr(dt(e.createArrayLiteralExpression(Ft(m.elements,o)),m),m):aa(m,pd)}function g(m){return ta(m)?l(m):aa(m,bt)}}var eH,wze=A({"src/compiler/factory/nodeConverters.ts"(){"use strict";ia(),eH={convertToFunctionBlock:Ko,convertToFunctionExpression:Ko,convertToClassExpression:Ko,convertToArrayAssignmentElement:Ko,convertToObjectAssignmentElement:Ko,convertToAssignmentPattern:Ko,convertToObjectAssignmentPattern:Ko,convertToArrayAssignmentPattern:Ko,convertToAssignmentElementTarget:Ko}}});function mSe(e){sae.push(e)}function Rk(e,t){let r=e&8?el:Pr,i=Ed(()=>e&1?ZU:iae(O)),o=Ed(()=>e&2?eH:oae(O)),s=ch(E=>(P,B)=>Ae(P,E,B)),l=ch(E=>P=>lt(E,P)),u=ch(E=>P=>jt(P,E)),p=ch(E=>()=>$2(E)),g=ch(E=>P=>gT(E,P)),m=ch(E=>(P,B)=>EE(E,P,B)),b=ch(E=>(P,B)=>Q2(E,P,B)),T=ch(E=>(P,B)=>$s(E,P,B)),I=ch(E=>(P,B)=>H0(E,P,B)),R=ch(E=>(P,B,ce)=>wf(E,P,B,ce)),M=ch(E=>(P,B,ce)=>yb(E,P,B,ce)),N=ch(E=>(P,B,ce,$e)=>bb(E,P,B,ce,$e)),O={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:H,createNumericLiteral:ue,createBigIntLiteral:G,createStringLiteral:he,createStringLiteralFromNode:ye,createRegularExpressionLiteral:$,createLiteralLikeNode:Y,createIdentifier:Ne,createTempVariable:me,createLoopVariable:ie,createUniqueName:ve,getGeneratedNameForNode:Le,createPrivateIdentifier:Ee,createUniquePrivateName:Me,getGeneratedPrivateNameForNode:Fe,createToken:Se,createSuper:je,createThis:at,createNull:Bt,createTrue:yt,createFalse:Qe,createModifier:gt,createModifiersFromModifierFlags:nn,createQualifiedName:rn,updateQualifiedName:Nn,createComputedPropertyName:Xn,updateComputedPropertyName:_n,createTypeParameterDeclaration:Qt,updateTypeParameterDeclaration:Yt,createParameterDeclaration:vi,updateParameterDeclaration:ho,createDecorator:ki,updateDecorator:Ro,createPropertySignature:nr,updatePropertySignature:qr,createPropertyDeclaration:ln,updatePropertyDeclaration:tt,createMethodSignature:zt,updateMethodSignature:Rn,createMethodDeclaration:ui,updateMethodDeclaration:bi,createConstructorDeclaration:En,updateConstructorDeclaration:wn,createGetAccessorDeclaration:mt,updateGetAccessorDeclaration:ft,createSetAccessorDeclaration:le,updateSetAccessorDeclaration:We,createCallSignature:j,updateCallSignature:ot,createConstructSignature:xt,updateConstructSignature:Ye,createIndexSignature:ht,updateIndexSignature:Vt,createClassStaticBlockDeclaration:No,updateClassStaticBlockDeclaration:_a,createTemplateLiteralTypeSpan:yn,updateTemplateLiteralTypeSpan:fn,createKeywordTypeNode:mn,createTypePredicateNode:q,updateTypePredicateNode:Oe,createTypeReferenceNode:Lt,updateTypeReferenceNode:w,createFunctionTypeNode:ae,updateFunctionTypeNode:J,createConstructorTypeNode:Ge,updateConstructorTypeNode:Pt,createTypeQueryNode:On,updateTypeQueryNode:Gn,createTypeLiteralNode:yi,updateTypeLiteralNode:Di,createArrayTypeNode:or,updateArrayTypeNode:Vr,createTupleTypeNode:Eo,updateTupleTypeNode:Mi,createNamedTupleMember:Ci,updateNamedTupleMember:Kr,createOptionalTypeNode:Po,updateOptionalTypeNode:Dn,createRestTypeNode:Fs,updateRestTypeNode:Yl,createUnionTypeNode:Gs,updateUnionTypeNode:hl,createIntersectionTypeNode:uu,updateIntersectionTypeNode:yo,createConditionalTypeNode:pa,updateConditionalTypeNode:du,createInferTypeNode:Is,updateInferTypeNode:Pa,createImportTypeNode:sc,updateImportTypeNode:Rl,createParenthesizedType:ll,updateParenthesizedType:Wo,createThisTypeNode:on,createTypeOperatorNode:Vs,updateTypeOperatorNode:nu,createIndexedAccessTypeNode:pu,updateIndexedAccessTypeNode:Tp,createMappedTypeNode:Ms,updateMappedTypeNode:Ic,createLiteralTypeNode:de,updateLiteralTypeNode:ee,createTemplateLiteralType:fl,updateTemplateLiteralType:Mf,createObjectBindingPattern:we,updateObjectBindingPattern:St,createArrayBindingPattern:pn,updateArrayBindingPattern:Tr,createBindingElement:gr,updateBindingElement:jr,createArrayLiteralExpression:Ni,updateArrayLiteralExpression:Lr,createObjectLiteralExpression:$o,updateObjectLiteralExpression:El,createPropertyAccessExpression:e&4?(E,P)=>fr(js(E,P),262144):js,updatePropertyAccessExpression:gc,createPropertyAccessChain:e&4?(E,P,B)=>fr(Ts(E,P,B),262144):Ts,updatePropertyAccessChain:Hc,createElementAccessExpression:Oc,updateElementAccessExpression:lm,createElementAccessChain:md,updateElementAccessChain:Pe,createCallExpression:qn,updateCallExpression:So,createCallChain:Qo,updateCallChain:na,createNewExpression:$l,updateNewExpression:vc,createTaggedTemplateExpression:cl,updateTaggedTemplateExpression:gl,createTypeAssertion:Bl,updateTypeAssertion:Ql,createParenthesizedExpression:qc,updateParenthesizedExpression:cf,createFunctionExpression:Bd,updateFunctionExpression:Dd,createArrowFunction:Lf,updateArrowFunction:j_,createDeleteExpression:Dh,updateDeleteExpression:Xg,createTypeOfExpression:zu,updateTypeOfExpression:Yg,createVoidExpression:Ap,updateVoidExpression:fg,createAwaitExpression:Gd,updateAwaitExpression:te,createPrefixUnaryExpression:lt,updatePrefixUnaryExpression:Wt,createPostfixUnaryExpression:jt,updatePostfixUnaryExpression:W,createBinaryExpression:Ae,updateBinaryExpression:Ht,createConditionalExpression:rr,updateConditionalExpression:si,createTemplateExpression:$r,updateTemplateExpression:so,createTemplateHead:Ip,createTemplateMiddle:Vd,createTemplateTail:cb,createNoSubstitutionTemplateLiteral:ps,createTemplateLiteralLikeNode:xc,createYieldExpression:Lm,updateYieldExpression:km,createSpreadElement:Ji,updateSpreadElement:$g,createClassExpression:ry,updateClassExpression:wm,createOmittedExpression:mE,createExpressionWithTypeArguments:_E,updateExpressionWithTypeArguments:uf,createAsExpression:U_,updateAsExpression:df,createNonNullExpression:Qg,updateNonNullExpression:ze,createSatisfiesExpression:Ze,updateSatisfiesExpression:kt,createNonNullChain:Ut,updateNonNullChain:gn,createMetaProperty:Yn,updateMetaProperty:hn,createTemplateSpan:$n,updateTemplateSpan:hi,createSemicolonClassElement:ur,createBlock:oi,updateBlock:mr,createVariableStatement:Zo,updateVariableStatement:Ka,createEmptyStatement:Qu,createExpressionStatement:mu,updateExpressionStatement:Zg,createIfStatement:w0,updateIfStatement:VI,createDoStatement:O0,updateDoStatement:j2,createWhileStatement:U2,updateWhileStatement:H2,createForStatement:lT,updateForStatement:hE,createForInStatement:jI,updateForInStatement:q2,createForOfStatement:UI,updateForOfStatement:HI,createContinueStatement:qI,updateContinueStatement:JI,createBreakStatement:cT,updateBreakStatement:KI,createReturnStatement:gE,updateReturnStatement:vE,createWithStatement:ub,updateWithStatement:db,createSwitchStatement:mg,updateSwitchStatement:F0,createLabeledStatement:ns,updateLabeledStatement:uT,createThrowStatement:J2,updateThrowStatement:W0,createTryStatement:ev,updateTryStatement:Ch,createDebuggerStatement:kf,createVariableDeclaration:jd,updateVariableDeclaration:xp,createVariableDeclarationList:op,updateVariableDeclarationList:iy,createFunctionDeclaration:dT,updateFunctionDeclaration:K2,createClassDeclaration:pb,updateClassDeclaration:z0,createInterfaceDeclaration:YI,updateInterfaceDeclaration:yc,createTypeAliasDeclaration:oy,updateTypeAliasDeclaration:$I,createEnumDeclaration:o_,updateEnumDeclaration:pT,createModuleDeclaration:qe,updateModuleDeclaration:a_,createModuleBlock:_u,updateModuleBlock:B0,createCaseBlock:QI,updateCaseBlock:fb,createNamespaceExportDeclaration:ay,updateNamespaceExportDeclaration:sy,createImportEqualsDeclaration:Xa,updateImportEqualsDeclaration:s_,createImportDeclaration:fT,updateImportDeclaration:mT,createImportClause:G0,updateImportClause:_T,createAssertClause:cm,updateAssertClause:um,createAssertEntry:tv,updateAssertEntry:ZI,createImportTypeAssertionContainer:l_,updateImportTypeAssertionContainer:X2,createImportAttributes:yE,updateImportAttributes:$i,createImportAttribute:ti,updateImportAttribute:Nh,createNamespaceImport:Ud,updateNamespaceImport:LP,createNamespaceExport:nv,updateNamespaceExport:kP,createNamedImports:mb,updateNamedImports:vl,createImportSpecifier:Vp,updateImportSpecifier:_g,createExportAssignment:dm,updateExportAssignment:_b,createExportDeclaration:Om,updateExportDeclaration:rv,createNamedExports:hT,updateNamedExports:hg,createExportSpecifier:ex,updateExportSpecifier:gg,createMissingDeclaration:H_,createExternalModuleReference:ly,updateExternalModuleReference:Y2,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return b(322)},get updateJSDocNonNullableType(){return T(322)},get createJSDocNullableType(){return b(321)},get updateJSDocNullableType(){return T(321)},get createJSDocOptionalType(){return g(323)},get updateJSDocOptionalType(){return m(323)},get createJSDocVariadicType(){return g(325)},get updateJSDocVariadicType(){return m(325)},get createJSDocNamepathType(){return g(326)},get updateJSDocNamepathType(){return m(326)},createJSDocFunctionType:vT,updateJSDocFunctionType:Fm,createJSDocTypeLiteral:hb,updateJSDocTypeLiteral:Z2,createJSDocTypeExpression:yT,updateJSDocTypeExpression:wP,createJSDocSignature:vr,updateJSDocSignature:ru,createJSDocTemplateTag:q_,updateJSDocTemplateTag:dr,createJSDocTypedefTag:bT,updateJSDocTypedefTag:V0,createJSDocParameterTag:Jc,updateJSDocParameterTag:Ph,createJSDocPropertyTag:Wm,updateJSDocPropertyTag:SE,createJSDocCallbackTag:TE,updateJSDocCallbackTag:gb,createJSDocOverloadTag:iv,updateJSDocOverloadTag:ET,createJSDocAugmentsTag:zm,updateJSDocAugmentsTag:j0,createJSDocImplementsTag:vg,updateJSDocImplementsTag:ap,createJSDocSeeTag:vb,updateJSDocSeeTag:tx,createJSDocNameReference:U0,updateJSDocNameReference:eD,createJSDocMemberName:AE,updateJSDocMemberName:ST,createJSDocLink:jp,updateJSDocLink:TT,createJSDocLinkCode:Gl,updateJSDocLinkCode:Fc,createJSDocLinkPlain:AT,updateJSDocLinkPlain:Au,get createJSDocTypeTag(){return M(351)},get updateJSDocTypeTag(){return N(351)},get createJSDocReturnTag(){return M(349)},get updateJSDocReturnTag(){return N(349)},get createJSDocThisTag(){return M(350)},get updateJSDocThisTag(){return N(350)},get createJSDocAuthorTag(){return I(337)},get updateJSDocAuthorTag(){return R(337)},get createJSDocClassTag(){return I(339)},get updateJSDocClassTag(){return R(339)},get createJSDocPublicTag(){return I(340)},get updateJSDocPublicTag(){return R(340)},get createJSDocPrivateTag(){return I(341)},get updateJSDocPrivateTag(){return R(341)},get createJSDocProtectedTag(){return I(342)},get updateJSDocProtectedTag(){return R(342)},get createJSDocReadonlyTag(){return I(343)},get updateJSDocReadonlyTag(){return R(343)},get createJSDocOverrideTag(){return I(344)},get updateJSDocOverrideTag(){return R(344)},get createJSDocDeprecatedTag(){return I(338)},get updateJSDocDeprecatedTag(){return R(338)},get createJSDocThrowsTag(){return M(356)},get updateJSDocThrowsTag(){return N(356)},get createJSDocSatisfiesTag(){return M(357)},get updateJSDocSatisfiesTag(){return N(357)},createJSDocEnumTag:Up,updateJSDocEnumTag:IT,createJSDocUnknownTag:iu,updateJSDocUnknownTag:nx,createJSDocText:xT,updateJSDocText:Us,createJSDocComment:tD,updateJSDocComment:q0,createJsxElement:IE,updateJsxElement:OP,createJsxSelfClosingElement:_d,updateJsxSelfClosingElement:ov,createJsxOpeningElement:J_,updateJsxOpeningElement:rx,createJsxClosingElement:Rp,updateJsxClosingElement:ix,createJsxFragment:sp,createJsxText:uy,updateJsxText:RT,createJsxOpeningFragment:nD,createJsxJsxClosingFragment:rD,updateJsxFragment:ox,createJsxAttribute:DT,updateJsxAttribute:iD,createJsxAttributes:Eb,updateJsxAttributes:Dp,createJsxSpreadAttribute:Mh,updateJsxSpreadAttribute:oD,createJsxExpression:CT,updateJsxExpression:is,createJsxNamespacedName:Rr,updateJsxNamespacedName:ff,createCaseClause:Cd,updateCaseClause:xE,createDefaultClause:aD,updateDefaultClause:J0,createHeritageClause:RE,updateHeritageClause:NT,createCatchClause:yg,updateCatchClause:c_,createPropertyAssignment:mf,updatePropertyAssignment:Bm,createShorthandPropertyAssignment:bg,updateShorthandPropertyAssignment:Eg,createSpreadAssignment:lc,updateSpreadAssignment:sD,createEnumMember:Of,updateEnumMember:Lh,createSourceFile:_f,updateSourceFile:Ls,createRedirectedSourceFile:DE,createBundle:CE,updateBundle:NE,createUnparsedSource:sv,createUnparsedPrologue:X0,createUnparsedPrepend:D,createUnparsedTextLike:se,createUnparsedSyntheticReference:_t,createInputFiles:an,createSyntheticExpression:Fr,createSyntaxList:wi,createNotEmittedStatement:Ei,createPartiallyEmittedExpression:oo,updatePartiallyEmittedExpression:ya,createCommaListExpression:Nd,updateCommaListExpression:Ff,createSyntheticReferenceExpression:Tb,updateSyntheticReferenceExpression:Ai,cloneNode:Ib,get createComma(){return s(28)},get createAssignment(){return s(64)},get createLogicalOr(){return s(57)},get createLogicalAnd(){return s(56)},get createBitwiseOr(){return s(52)},get createBitwiseXor(){return s(53)},get createBitwiseAnd(){return s(51)},get createStrictEquality(){return s(37)},get createStrictInequality(){return s(38)},get createEquality(){return s(35)},get createInequality(){return s(36)},get createLessThan(){return s(30)},get createLessThanEquals(){return s(33)},get createGreaterThan(){return s(32)},get createGreaterThanEquals(){return s(34)},get createLeftShift(){return s(48)},get createRightShift(){return s(49)},get createUnsignedRightShift(){return s(50)},get createAdd(){return s(40)},get createSubtract(){return s(41)},get createMultiply(){return s(42)},get createDivide(){return s(44)},get createModulo(){return s(45)},get createExponent(){return s(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:MT,createImmediatelyInvokedArrowFunction:PE,createVoidZero:K_,createExportDefault:wh,createExternalModuleExport:lD,createTypeCheck:LT,createIsNotTypeCheck:iz,createMethodCall:xb,createGlobalMethodCall:u_,createFunctionBindCall:_4,createFunctionCallCall:h4,createFunctionApplyCall:Y0,createArraySliceCall:FP,createArrayConcatCall:Oh,createObjectDefinePropertyCall:cx,createObjectGetOwnPropertyDescriptorCall:g4,createReflectGetCall:X_,createReflectSetCall:Q,createPropertyDescriptor:Xe,createCallBinding:Pi,createAssignmentTargetWrapper:gi,inlineExpressions:eo,getInternalName:Cs,getLocalName:es,getExportName:Wf,getDeclarationName:Y_,getNamespaceMemberName:Sg,getExternalModuleOrNamespaceExportName:lv,restoreOuterExpressions:qt,restoreEnclosingLabel:Br,createUseStrictPrologue:lp,copyPrologue:cv,copyStandardPrologue:kT,copyCustomPrologue:cD,ensureUseStrict:WP,liftToBlock:zP,mergeLexicalEnvironment:uv,replaceModifiers:Db,replaceDecoratorsAndModifiers:uD,replacePropertyName:Hp};return Ke(sae,E=>E(O)),O;function H(E,P){if(E===void 0||E===et)E=[];else if(E1(E)){if(P===void 0||E.hasTrailingComma===P)return E.transformFlags===void 0&&_Se(E),C.attachNodeArrayDebugInfo(E),E;let $e=E.slice();return $e.pos=E.pos,$e.end=E.end,$e.hasTrailingComma=P,$e.transformFlags=E.transformFlags,C.attachNodeArrayDebugInfo($e),$e}let B=E.length,ce=B>=1&&B<=4?E.slice():E;return ce.pos=-1,ce.end=-1,ce.hasTrailingComma=!!P,ce.transformFlags=0,_Se(ce),C.attachNodeArrayDebugInfo(ce),ce}function K(E){return t.createBaseNode(E)}function Z(E){let P=K(E);return P.symbol=void 0,P.localSymbol=void 0,P}function V(E,P){return E!==P&&(E.typeArguments=P.typeArguments),ar(E,P)}function ue(E,P=0){let B=typeof E=="number"?E+"":E;C.assert(B.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let ce=Z(9);return ce.text=B,ce.numericLiteralFlags=P,P&384&&(ce.transformFlags|=1024),ce}function G(E){let P=At(10);return P.text=typeof E=="string"?E:z1(E)+"n",P.transformFlags|=32,P}function ne(E,P){let B=Z(11);return B.text=E,B.singleQuote=P,B}function he(E,P,B){let ce=ne(E,P);return ce.hasExtendedUnicodeEscape=B,B&&(ce.transformFlags|=1024),ce}function ye(E){let P=ne(Zf(E),void 0);return P.textSourceNode=E,P}function $(E){let P=At(14);return P.text=E,P}function Y(E,P){switch(E){case 9:return ue(P,0);case 10:return G(P);case 11:return he(P,void 0);case 12:return uy(P,!1);case 13:return uy(P,!0);case 14:return $(P);case 15:return xc(E,P,void 0,0)}}function oe(E){let P=t.createBaseIdentifierNode(80);return P.escapedText=E,P.jsDoc=void 0,P.flowNode=void 0,P.symbol=void 0,P}function fe(E,P,B,ce){let $e=oe(ml(E));return Lk($e,{flags:P,id:m7,prefix:B,suffix:ce}),m7++,$e}function Ne(E,P,B){P===void 0&&E&&(P=y1(E)),P===80&&(P=void 0);let ce=oe(ml(E));return B&&(ce.flags|=256),ce.escapedText==="await"&&(ce.transformFlags|=67108864),ce.flags&256&&(ce.transformFlags|=1024),ce}function me(E,P,B,ce){let $e=1;P&&($e|=8);let Jt=fe("",$e,B,ce);return E&&E(Jt),Jt}function ie(E){let P=2;return E&&(P|=8),fe("",P,void 0,void 0)}function ve(E,P=0,B,ce){return C.assert(!(P&7),"Argument out of range: flags"),C.assert((P&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),fe(E,3|P,B,ce)}function Le(E,P=0,B,ce){C.assert(!(P&7),"Argument out of range: flags");let $e=E?Yh(E)?E0(!1,B,E,ce,Sr):`generated@${ss(E)}`:"";(B||ce)&&(P|=16);let Jt=fe($e,4|P,B,ce);return Jt.original=E,Jt}function He(E){let P=t.createBasePrivateIdentifierNode(81);return P.escapedText=E,P.transformFlags|=16777216,P}function Ee(E){return uo(E,"#")||C.fail("First character of private identifier must be #: "+E),He(ml(E))}function Ce(E,P,B,ce){let $e=He(ml(E));return Lk($e,{flags:P,id:m7,prefix:B,suffix:ce}),m7++,$e}function Me(E,P,B){E&&!uo(E,"#")&&C.fail("First character of private identifier must be #: "+E);let ce=8|(E?3:1);return Ce(E??"",ce,P,B)}function Fe(E,P,B){let ce=Yh(E)?E0(!0,P,E,B,Sr):`#generated@${ss(E)}`,Jt=Ce(ce,4|(P||B?16:0),P,B);return Jt.original=E,Jt}function At(E){return t.createBaseTokenNode(E)}function Se(E){C.assert(E>=0&&E<=165,"Invalid token"),C.assert(E<=15||E>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),C.assert(E<=9||E>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),C.assert(E!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let P=At(E),B=0;switch(E){case 134:B=384;break;case 160:B=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:B=1;break;case 108:B=134218752,P.flowNode=void 0;break;case 126:B=1024;break;case 129:B=16777216;break;case 110:B=16384,P.flowNode=void 0;break}return B&&(P.transformFlags|=B),P}function je(){return Se(108)}function at(){return Se(110)}function Bt(){return Se(106)}function yt(){return Se(112)}function Qe(){return Se(97)}function gt(E){return Se(E)}function nn(E){let P=[];return E&32&&P.push(gt(95)),E&128&&P.push(gt(138)),E&2048&&P.push(gt(90)),E&4096&&P.push(gt(87)),E&1&&P.push(gt(125)),E&2&&P.push(gt(123)),E&4&&P.push(gt(124)),E&64&&P.push(gt(128)),E&256&&P.push(gt(126)),E&16&&P.push(gt(164)),E&8&&P.push(gt(148)),E&512&&P.push(gt(129)),E&1024&&P.push(gt(134)),E&8192&&P.push(gt(103)),E&16384&&P.push(gt(147)),P.length?P:void 0}function rn(E,P){let B=K(166);return B.left=E,B.right=cc(P),B.transformFlags|=Ir(B.left)|Dk(B.right),B.flowNode=void 0,B}function Nn(E,P,B){return E.left!==P||E.right!==B?ar(rn(P,B),E):E}function Xn(E){let P=K(167);return P.expression=i().parenthesizeExpressionOfComputedPropertyName(E),P.transformFlags|=Ir(P.expression)|1024|131072,P}function _n(E,P){return E.expression!==P?ar(Xn(P),E):E}function Qt(E,P,B,ce){let $e=Z(168);return $e.modifiers=Ua(E),$e.name=cc(P),$e.constraint=B,$e.default=ce,$e.transformFlags=1,$e.expression=void 0,$e.jsDoc=void 0,$e}function Yt(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.constraint!==ce||E.default!==$e?ar(Qt(P,B,ce,$e),E):E}function vi(E,P,B,ce,$e,Jt){let br=Z(169);return br.modifiers=Ua(E),br.dotDotDotToken=P,br.name=cc(B),br.questionToken=ce,br.type=$e,br.initializer=ux(Jt),O1(br.name)?br.transformFlags=1:br.transformFlags=Ja(br.modifiers)|Ir(br.dotDotDotToken)|Jy(br.name)|Ir(br.questionToken)|Ir(br.initializer)|(br.questionToken??br.type?1:0)|(br.dotDotDotToken??br.initializer?1024:0)|(N_(br.modifiers)&31?8192:0),br.jsDoc=void 0,br}function ho(E,P,B,ce,$e,Jt,br){return E.modifiers!==P||E.dotDotDotToken!==B||E.name!==ce||E.questionToken!==$e||E.type!==Jt||E.initializer!==br?ar(vi(P,B,ce,$e,Jt,br),E):E}function ki(E){let P=K(170);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Ir(P.expression)|1|8192|33554432,P}function Ro(E,P){return E.expression!==P?ar(ki(P),E):E}function nr(E,P,B,ce){let $e=Z(171);return $e.modifiers=Ua(E),$e.name=cc(P),$e.type=ce,$e.questionToken=B,$e.transformFlags=1,$e.initializer=void 0,$e.jsDoc=void 0,$e}function qr(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.type!==$e?xr(nr(P,B,ce,$e),E):E}function xr(E,P){return E!==P&&(E.initializer=P.initializer),ar(E,P)}function ln(E,P,B,ce,$e){let Jt=Z(172);Jt.modifiers=Ua(E),Jt.name=cc(P),Jt.questionToken=B&&Ky(B)?B:void 0,Jt.exclamationToken=B&&Wk(B)?B:void 0,Jt.type=ce,Jt.initializer=ux($e);let br=Jt.flags&33554432||N_(Jt.modifiers)&128;return Jt.transformFlags=Ja(Jt.modifiers)|Jy(Jt.name)|Ir(Jt.initializer)|(br||Jt.questionToken||Jt.exclamationToken||Jt.type?1:0)|(Za(Jt.name)||N_(Jt.modifiers)&256&&Jt.initializer?8192:0)|16777216,Jt.jsDoc=void 0,Jt}function tt(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.name!==B||E.questionToken!==(ce!==void 0&&Ky(ce)?ce:void 0)||E.exclamationToken!==(ce!==void 0&&Wk(ce)?ce:void 0)||E.type!==$e||E.initializer!==Jt?ar(ln(P,B,ce,$e,Jt),E):E}function zt(E,P,B,ce,$e,Jt){let br=Z(173);return br.modifiers=Ua(E),br.name=cc(P),br.questionToken=B,br.typeParameters=Ua(ce),br.parameters=Ua($e),br.type=Jt,br.transformFlags=1,br.jsDoc=void 0,br.locals=void 0,br.nextContainer=void 0,br.typeArguments=void 0,br}function Rn(E,P,B,ce,$e,Jt,br){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.typeParameters!==$e||E.parameters!==Jt||E.type!==br?V(zt(P,B,ce,$e,Jt,br),E):E}function ui(E,P,B,ce,$e,Jt,br,ao){let Hs=Z(174);if(Hs.modifiers=Ua(E),Hs.asteriskToken=P,Hs.name=cc(B),Hs.questionToken=ce,Hs.exclamationToken=void 0,Hs.typeParameters=Ua($e),Hs.parameters=H(Jt),Hs.type=br,Hs.body=ao,!Hs.body)Hs.transformFlags=1;else{let d_=N_(Hs.modifiers)&1024,Nb=!!Hs.asteriskToken,Gm=d_&&Nb;Hs.transformFlags=Ja(Hs.modifiers)|Ir(Hs.asteriskToken)|Jy(Hs.name)|Ir(Hs.questionToken)|Ja(Hs.typeParameters)|Ja(Hs.parameters)|Ir(Hs.type)|Ir(Hs.body)&-67108865|(Gm?128:d_?256:Nb?2048:0)|(Hs.questionToken||Hs.typeParameters||Hs.type?1:0)|1024}return Hs.typeArguments=void 0,Hs.jsDoc=void 0,Hs.locals=void 0,Hs.nextContainer=void 0,Hs.flowNode=void 0,Hs.endFlowNode=void 0,Hs.returnFlowNode=void 0,Hs}function bi(E,P,B,ce,$e,Jt,br,ao,Hs){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.questionToken!==$e||E.typeParameters!==Jt||E.parameters!==br||E.type!==ao||E.body!==Hs?ro(ui(P,B,ce,$e,Jt,br,ao,Hs),E):E}function ro(E,P){return E!==P&&(E.exclamationToken=P.exclamationToken),ar(E,P)}function No(E){let P=Z(175);return P.body=E,P.transformFlags=Ir(E)|16777216,P.modifiers=void 0,P.jsDoc=void 0,P.locals=void 0,P.nextContainer=void 0,P.endFlowNode=void 0,P.returnFlowNode=void 0,P}function _a(E,P){return E.body!==P?ja(No(P),E):E}function ja(E,P){return E!==P&&(E.modifiers=P.modifiers),ar(E,P)}function En(E,P,B){let ce=Z(176);return ce.modifiers=Ua(E),ce.parameters=H(P),ce.body=B,ce.transformFlags=Ja(ce.modifiers)|Ja(ce.parameters)|Ir(ce.body)&-67108865|1024,ce.typeParameters=void 0,ce.type=void 0,ce.typeArguments=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.returnFlowNode=void 0,ce}function wn(E,P,B,ce){return E.modifiers!==P||E.parameters!==B||E.body!==ce?Ue(En(P,B,ce),E):E}function Ue(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function mt(E,P,B,ce,$e){let Jt=Z(177);return Jt.modifiers=Ua(E),Jt.name=cc(P),Jt.parameters=H(B),Jt.type=ce,Jt.body=$e,Jt.body?Jt.transformFlags=Ja(Jt.modifiers)|Jy(Jt.name)|Ja(Jt.parameters)|Ir(Jt.type)|Ir(Jt.body)&-67108865|(Jt.type?1:0):Jt.transformFlags=1,Jt.typeArguments=void 0,Jt.typeParameters=void 0,Jt.jsDoc=void 0,Jt.locals=void 0,Jt.nextContainer=void 0,Jt.flowNode=void 0,Jt.endFlowNode=void 0,Jt.returnFlowNode=void 0,Jt}function ft(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.type!==$e||E.body!==Jt?Nt(mt(P,B,ce,$e,Jt),E):E}function Nt(E,P){return E!==P&&(E.typeParameters=P.typeParameters),V(E,P)}function le(E,P,B,ce){let $e=Z(178);return $e.modifiers=Ua(E),$e.name=cc(P),$e.parameters=H(B),$e.body=ce,$e.body?$e.transformFlags=Ja($e.modifiers)|Jy($e.name)|Ja($e.parameters)|Ir($e.body)&-67108865|($e.type?1:0):$e.transformFlags=1,$e.typeArguments=void 0,$e.typeParameters=void 0,$e.type=void 0,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e.endFlowNode=void 0,$e.returnFlowNode=void 0,$e}function We(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.body!==$e?pt(le(P,B,ce,$e),E):E}function pt(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function j(E,P,B){let ce=Z(179);return ce.typeParameters=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function ot(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(j(P,B,ce),E):E}function xt(E,P,B){let ce=Z(180);return ce.typeParameters=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Ye(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(xt(P,B,ce),E):E}function ht(E,P,B){let ce=Z(181);return ce.modifiers=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Vt(E,P,B,ce){return E.parameters!==B||E.type!==ce||E.modifiers!==P?V(ht(P,B,ce),E):E}function yn(E,P){let B=K(204);return B.type=E,B.literal=P,B.transformFlags=1,B}function fn(E,P,B){return E.type!==P||E.literal!==B?ar(yn(P,B),E):E}function mn(E){return Se(E)}function q(E,P,B){let ce=K(182);return ce.assertsModifier=E,ce.parameterName=cc(P),ce.type=B,ce.transformFlags=1,ce}function Oe(E,P,B,ce){return E.assertsModifier!==P||E.parameterName!==B||E.type!==ce?ar(q(P,B,ce),E):E}function Lt(E,P){let B=K(183);return B.typeName=cc(E),B.typeArguments=P&&i().parenthesizeTypeArguments(H(P)),B.transformFlags=1,B}function w(E,P,B){return E.typeName!==P||E.typeArguments!==B?ar(Lt(P,B),E):E}function ae(E,P,B){let ce=Z(184);return ce.typeParameters=Ua(E),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.modifiers=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function J(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?pe(ae(P,B,ce),E):E}function pe(E,P){return E!==P&&(E.modifiers=P.modifiers),V(E,P)}function Ge(...E){return E.length===4?ke(...E):E.length===3?Dt(...E):C.fail("Incorrect number of arguments specified.")}function ke(E,P,B,ce){let $e=Z(185);return $e.modifiers=Ua(E),$e.typeParameters=Ua(P),$e.parameters=Ua(B),$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.typeArguments=void 0,$e}function Dt(E,P,B){return ke(void 0,E,P,B)}function Pt(...E){return E.length===5?Kt(...E):E.length===4?Tn(...E):C.fail("Incorrect number of arguments specified.")}function Kt(E,P,B,ce,$e){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==$e?V(Ge(P,B,ce,$e),E):E}function Tn(E,P,B,ce){return Kt(E,E.modifiers,P,B,ce)}function On(E,P){let B=K(186);return B.exprName=E,B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags=1,B}function Gn(E,P,B){return E.exprName!==P||E.typeArguments!==B?ar(On(P,B),E):E}function yi(E){let P=Z(187);return P.members=H(E),P.transformFlags=1,P}function Di(E,P){return E.members!==P?ar(yi(P),E):E}function or(E){let P=K(188);return P.elementType=i().parenthesizeNonArrayTypeOfPostfixType(E),P.transformFlags=1,P}function Vr(E,P){return E.elementType!==P?ar(or(P),E):E}function Eo(E){let P=K(189);return P.elements=H(i().parenthesizeElementTypesOfTupleType(E)),P.transformFlags=1,P}function Mi(E,P){return E.elements!==P?ar(Eo(P),E):E}function Ci(E,P,B,ce){let $e=Z(202);return $e.dotDotDotToken=E,$e.name=P,$e.questionToken=B,$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e}function Kr(E,P,B,ce,$e){return E.dotDotDotToken!==P||E.name!==B||E.questionToken!==ce||E.type!==$e?ar(Ci(P,B,ce,$e),E):E}function Po(E){let P=K(190);return P.type=i().parenthesizeTypeOfOptionalType(E),P.transformFlags=1,P}function Dn(E,P){return E.type!==P?ar(Po(P),E):E}function Fs(E){let P=K(191);return P.type=E,P.transformFlags=1,P}function Yl(E,P){return E.type!==P?ar(Fs(P),E):E}function Fo(E,P,B){let ce=K(E);return ce.types=O.createNodeArray(B(P)),ce.transformFlags=1,ce}function ds(E,P,B){return E.types!==P?ar(Fo(E.kind,P,B),E):E}function Gs(E){return Fo(192,E,i().parenthesizeConstituentTypesOfUnionType)}function hl(E,P){return ds(E,P,i().parenthesizeConstituentTypesOfUnionType)}function uu(E){return Fo(193,E,i().parenthesizeConstituentTypesOfIntersectionType)}function yo(E,P){return ds(E,P,i().parenthesizeConstituentTypesOfIntersectionType)}function pa(E,P,B,ce){let $e=K(194);return $e.checkType=i().parenthesizeCheckTypeOfConditionalType(E),$e.extendsType=i().parenthesizeExtendsTypeOfConditionalType(P),$e.trueType=B,$e.falseType=ce,$e.transformFlags=1,$e.locals=void 0,$e.nextContainer=void 0,$e}function du(E,P,B,ce,$e){return E.checkType!==P||E.extendsType!==B||E.trueType!==ce||E.falseType!==$e?ar(pa(P,B,ce,$e),E):E}function Is(E){let P=K(195);return P.typeParameter=E,P.transformFlags=1,P}function Pa(E,P){return E.typeParameter!==P?ar(Is(P),E):E}function fl(E,P){let B=K(203);return B.head=E,B.templateSpans=H(P),B.transformFlags=1,B}function Mf(E,P,B){return E.head!==P||E.templateSpans!==B?ar(fl(P,B),E):E}function sc(E,P,B,ce,$e=!1){let Jt=K(205);return Jt.argument=E,Jt.attributes=P,Jt.assertions&&Jt.assertions.assertClause&&Jt.attributes&&(Jt.assertions.assertClause=Jt.attributes),Jt.qualifier=B,Jt.typeArguments=ce&&i().parenthesizeTypeArguments(ce),Jt.isTypeOf=$e,Jt.transformFlags=1,Jt}function Rl(E,P,B,ce,$e,Jt=E.isTypeOf){return E.argument!==P||E.attributes!==B||E.qualifier!==ce||E.typeArguments!==$e||E.isTypeOf!==Jt?ar(sc(P,B,ce,$e,Jt),E):E}function ll(E){let P=K(196);return P.type=E,P.transformFlags=1,P}function Wo(E,P){return E.type!==P?ar(ll(P),E):E}function on(){let E=K(197);return E.transformFlags=1,E}function Vs(E,P){let B=K(198);return B.operator=E,B.type=E===148?i().parenthesizeOperandOfReadonlyTypeOperator(P):i().parenthesizeOperandOfTypeOperator(P),B.transformFlags=1,B}function nu(E,P){return E.type!==P?ar(Vs(E.operator,P),E):E}function pu(E,P){let B=K(199);return B.objectType=i().parenthesizeNonArrayTypeOfPostfixType(E),B.indexType=P,B.transformFlags=1,B}function Tp(E,P,B){return E.objectType!==P||E.indexType!==B?ar(pu(P,B),E):E}function Ms(E,P,B,ce,$e,Jt){let br=Z(200);return br.readonlyToken=E,br.typeParameter=P,br.nameType=B,br.questionToken=ce,br.type=$e,br.members=Jt&&H(Jt),br.transformFlags=1,br.locals=void 0,br.nextContainer=void 0,br}function Ic(E,P,B,ce,$e,Jt,br){return E.readonlyToken!==P||E.typeParameter!==B||E.nameType!==ce||E.questionToken!==$e||E.type!==Jt||E.members!==br?ar(Ms(P,B,ce,$e,Jt,br),E):E}function de(E){let P=K(201);return P.literal=E,P.transformFlags=1,P}function ee(E,P){return E.literal!==P?ar(de(P),E):E}function we(E){let P=K(206);return P.elements=H(E),P.transformFlags|=Ja(P.elements)|1024|524288,P.transformFlags&32768&&(P.transformFlags|=65664),P}function St(E,P){return E.elements!==P?ar(we(P),E):E}function pn(E){let P=K(207);return P.elements=H(E),P.transformFlags|=Ja(P.elements)|1024|524288,P}function Tr(E,P){return E.elements!==P?ar(pn(P),E):E}function gr(E,P,B,ce){let $e=Z(208);return $e.dotDotDotToken=E,$e.propertyName=cc(P),$e.name=cc(B),$e.initializer=ux(ce),$e.transformFlags|=Ir($e.dotDotDotToken)|Jy($e.propertyName)|Jy($e.name)|Ir($e.initializer)|($e.dotDotDotToken?32768:0)|1024,$e.flowNode=void 0,$e}function jr(E,P,B,ce,$e){return E.propertyName!==B||E.dotDotDotToken!==P||E.name!==ce||E.initializer!==$e?ar(gr(P,B,ce,$e),E):E}function Ni(E,P){let B=K(209),ce=E&&Zs(E),$e=H(E,ce&&Vc(ce)?!0:void 0);return B.elements=i().parenthesizeExpressionsOfCommaDelimitedList($e),B.multiLine=P,B.transformFlags|=Ja(B.elements),B}function Lr(E,P){return E.elements!==P?ar(Ni(P,E.multiLine),E):E}function $o(E,P){let B=Z(210);return B.properties=H(E),B.multiLine=P,B.transformFlags|=Ja(B.properties),B.jsDoc=void 0,B}function El(E,P){return E.properties!==P?ar($o(P,E.multiLine),E):E}function Uc(E,P,B){let ce=Z(211);return ce.expression=E,ce.questionDotToken=P,ce.name=B,ce.transformFlags=Ir(ce.expression)|Ir(ce.questionDotToken)|(Ve(ce.name)?Dk(ce.name):Ir(ce.name)|536870912),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function js(E,P){let B=Uc(i().parenthesizeLeftSideOfAccess(E,!1),void 0,cc(P));return gN(E)&&(B.transformFlags|=384),B}function gc(E,P,B){return y6(E)?Hc(E,P,E.questionDotToken,aa(B,Ve)):E.expression!==P||E.name!==B?ar(js(P,B),E):E}function Ts(E,P,B){let ce=Uc(i().parenthesizeLeftSideOfAccess(E,!0),P,cc(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Hc(E,P,B,ce){return C.assert(!!(E.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),E.expression!==P||E.questionDotToken!==B||E.name!==ce?ar(Ts(P,B,ce),E):E}function ip(E,P,B){let ce=Z(212);return ce.expression=E,ce.questionDotToken=P,ce.argumentExpression=B,ce.transformFlags|=Ir(ce.expression)|Ir(ce.questionDotToken)|Ir(ce.argumentExpression),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Oc(E,P){let B=ip(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Q0(P));return gN(E)&&(B.transformFlags|=384),B}function lm(E,P,B){return BV(E)?Pe(E,P,E.questionDotToken,B):E.expression!==P||E.argumentExpression!==B?ar(Oc(P,B),E):E}function md(E,P,B){let ce=ip(i().parenthesizeLeftSideOfAccess(E,!0),P,Q0(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Pe(E,P,B,ce){return C.assert(!!(E.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),E.expression!==P||E.questionDotToken!==B||E.argumentExpression!==ce?ar(md(P,B,ce),E):E}function wt(E,P,B,ce){let $e=Z(213);return $e.expression=E,$e.questionDotToken=P,$e.typeArguments=B,$e.arguments=ce,$e.transformFlags|=Ir($e.expression)|Ir($e.questionDotToken)|Ja($e.typeArguments)|Ja($e.arguments),$e.typeArguments&&($e.transformFlags|=1),Od($e.expression)&&($e.transformFlags|=16384),$e}function qn(E,P,B){let ce=wt(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Ua(P),i().parenthesizeExpressionsOfCommaDelimitedList(H(B)));return vN(ce.expression)&&(ce.transformFlags|=8388608),ce}function So(E,P,B,ce){return lS(E)?na(E,P,E.questionDotToken,B,ce):E.expression!==P||E.typeArguments!==B||E.arguments!==ce?ar(qn(P,B,ce),E):E}function Qo(E,P,B,ce){let $e=wt(i().parenthesizeLeftSideOfAccess(E,!0),P,Ua(B),i().parenthesizeExpressionsOfCommaDelimitedList(H(ce)));return $e.flags|=64,$e.transformFlags|=32,$e}function na(E,P,B,ce,$e){return C.assert(!!(E.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),E.expression!==P||E.questionDotToken!==B||E.typeArguments!==ce||E.arguments!==$e?ar(Qo(P,B,ce,$e),E):E}function $l(E,P,B){let ce=Z(214);return ce.expression=i().parenthesizeExpressionOfNew(E),ce.typeArguments=Ua(P),ce.arguments=B?i().parenthesizeExpressionsOfCommaDelimitedList(B):void 0,ce.transformFlags|=Ir(ce.expression)|Ja(ce.typeArguments)|Ja(ce.arguments)|32,ce.typeArguments&&(ce.transformFlags|=1),ce}function vc(E,P,B,ce){return E.expression!==P||E.typeArguments!==B||E.arguments!==ce?ar($l(P,B,ce),E):E}function cl(E,P,B){let ce=K(215);return ce.tag=i().parenthesizeLeftSideOfAccess(E,!1),ce.typeArguments=Ua(P),ce.template=B,ce.transformFlags|=Ir(ce.tag)|Ja(ce.typeArguments)|Ir(ce.template)|1024,ce.typeArguments&&(ce.transformFlags|=1),Qj(ce.template)&&(ce.transformFlags|=128),ce}function gl(E,P,B,ce){return E.tag!==P||E.typeArguments!==B||E.template!==ce?ar(cl(P,B,ce),E):E}function Bl(E,P){let B=K(216);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.type=E,B.transformFlags|=Ir(B.expression)|Ir(B.type)|1,B}function Ql(E,P,B){return E.type!==P||E.expression!==B?ar(Bl(P,B),E):E}function qc(E){let P=K(217);return P.expression=E,P.transformFlags=Ir(P.expression),P.jsDoc=void 0,P}function cf(E,P){return E.expression!==P?ar(qc(P),E):E}function Bd(E,P,B,ce,$e,Jt,br){let ao=Z(218);ao.modifiers=Ua(E),ao.asteriskToken=P,ao.name=cc(B),ao.typeParameters=Ua(ce),ao.parameters=H($e),ao.type=Jt,ao.body=br;let Hs=N_(ao.modifiers)&1024,d_=!!ao.asteriskToken,Nb=Hs&&d_;return ao.transformFlags=Ja(ao.modifiers)|Ir(ao.asteriskToken)|Jy(ao.name)|Ja(ao.typeParameters)|Ja(ao.parameters)|Ir(ao.type)|Ir(ao.body)&-67108865|(Nb?128:Hs?256:d_?2048:0)|(ao.typeParameters||ao.type?1:0)|4194304,ao.typeArguments=void 0,ao.jsDoc=void 0,ao.locals=void 0,ao.nextContainer=void 0,ao.flowNode=void 0,ao.endFlowNode=void 0,ao.returnFlowNode=void 0,ao}function Dd(E,P,B,ce,$e,Jt,br,ao){return E.name!==ce||E.modifiers!==P||E.asteriskToken!==B||E.typeParameters!==$e||E.parameters!==Jt||E.type!==br||E.body!==ao?V(Bd(P,B,ce,$e,Jt,br,ao),E):E}function Lf(E,P,B,ce,$e,Jt){let br=Z(219);br.modifiers=Ua(E),br.typeParameters=Ua(P),br.parameters=H(B),br.type=ce,br.equalsGreaterThanToken=$e??Se(39),br.body=i().parenthesizeConciseBodyOfArrowFunction(Jt);let ao=N_(br.modifiers)&1024;return br.transformFlags=Ja(br.modifiers)|Ja(br.typeParameters)|Ja(br.parameters)|Ir(br.type)|Ir(br.equalsGreaterThanToken)|Ir(br.body)&-67108865|(br.typeParameters||br.type?1:0)|(ao?16640:0)|1024,br.typeArguments=void 0,br.jsDoc=void 0,br.locals=void 0,br.nextContainer=void 0,br.flowNode=void 0,br.endFlowNode=void 0,br.returnFlowNode=void 0,br}function j_(E,P,B,ce,$e,Jt,br){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==$e||E.equalsGreaterThanToken!==Jt||E.body!==br?V(Lf(P,B,ce,$e,Jt,br),E):E}function Dh(E){let P=K(220);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ir(P.expression),P}function Xg(E,P){return E.expression!==P?ar(Dh(P),E):E}function zu(E){let P=K(221);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ir(P.expression),P}function Yg(E,P){return E.expression!==P?ar(zu(P),E):E}function Ap(E){let P=K(222);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ir(P.expression),P}function fg(E,P){return E.expression!==P?ar(Ap(P),E):E}function Gd(E){let P=K(223);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Ir(P.expression)|256|128|2097152,P}function te(E,P){return E.expression!==P?ar(Gd(P),E):E}function lt(E,P){let B=K(224);return B.operator=E,B.operand=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Ir(B.operand),(E===46||E===47)&&Ve(B.operand)&&!ol(B.operand)&&!Ug(B.operand)&&(B.transformFlags|=268435456),B}function Wt(E,P){return E.operand!==P?ar(lt(E.operator,P),E):E}function jt(E,P){let B=K(225);return B.operator=P,B.operand=i().parenthesizeOperandOfPostfixUnary(E),B.transformFlags|=Ir(B.operand),Ve(B.operand)&&!ol(B.operand)&&!Ug(B.operand)&&(B.transformFlags|=268435456),B}function W(E,P){return E.operand!==P?ar(jt(P,E.operator),E):E}function Ae(E,P,B){let ce=Z(226),$e=BP(P),Jt=$e.kind;return ce.left=i().parenthesizeLeftSideOfBinary(Jt,E),ce.operatorToken=$e,ce.right=i().parenthesizeRightSideOfBinary(Jt,ce.left,B),ce.transformFlags|=Ir(ce.left)|Ir(ce.operatorToken)|Ir(ce.right),Jt===61?ce.transformFlags|=32:Jt===64?wa(ce.left)?ce.transformFlags|=5248|st(ce.left):pd(ce.left)&&(ce.transformFlags|=5120|st(ce.left)):Jt===43||Jt===68?ce.transformFlags|=512:GC(Jt)&&(ce.transformFlags|=16),Jt===103&&Xi(ce.left)&&(ce.transformFlags|=536870912),ce.jsDoc=void 0,ce}function st(E){return tw(E)?65536:0}function Ht(E,P,B,ce){return E.left!==P||E.operatorToken!==B||E.right!==ce?ar(Ae(P,B,ce),E):E}function rr(E,P,B,ce,$e){let Jt=K(227);return Jt.condition=i().parenthesizeConditionOfConditionalExpression(E),Jt.questionToken=P??Se(58),Jt.whenTrue=i().parenthesizeBranchOfConditionalExpression(B),Jt.colonToken=ce??Se(59),Jt.whenFalse=i().parenthesizeBranchOfConditionalExpression($e),Jt.transformFlags|=Ir(Jt.condition)|Ir(Jt.questionToken)|Ir(Jt.whenTrue)|Ir(Jt.colonToken)|Ir(Jt.whenFalse),Jt}function si(E,P,B,ce,$e,Jt){return E.condition!==P||E.questionToken!==B||E.whenTrue!==ce||E.colonToken!==$e||E.whenFalse!==Jt?ar(rr(P,B,ce,$e,Jt),E):E}function $r(E,P){let B=K(228);return B.head=E,B.templateSpans=H(P),B.transformFlags|=Ir(B.head)|Ja(B.templateSpans)|1024,B}function so(E,P,B){return E.head!==P||E.templateSpans!==B?ar($r(P,B),E):E}function Oa(E,P,B,ce=0){C.assert(!(ce&-7177),"Unsupported template flags.");let $e;if(B!==void 0&&B!==P&&($e=Oze(E,B),typeof $e=="object"))return C.fail("Invalid raw text");if(P===void 0){if($e===void 0)return C.fail("Arguments 'text' and 'rawText' may not both be undefined.");P=$e}else $e!==void 0&&C.assert(P===$e,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return P}function Fa(E){let P=1024;return E&&(P|=128),P}function wl(E,P,B,ce){let $e=At(E);return $e.text=P,$e.rawText=B,$e.templateFlags=ce&7176,$e.transformFlags=Fa($e.templateFlags),$e}function fu(E,P,B,ce){let $e=Z(E);return $e.text=P,$e.rawText=B,$e.templateFlags=ce&7176,$e.transformFlags=Fa($e.templateFlags),$e}function xc(E,P,B,ce){return E===15?fu(E,P,B,ce):wl(E,P,B,ce)}function Ip(E,P,B){return E=Oa(16,E,P,B),xc(16,E,P,B)}function Vd(E,P,B){return E=Oa(16,E,P,B),xc(17,E,P,B)}function cb(E,P,B){return E=Oa(16,E,P,B),xc(18,E,P,B)}function ps(E,P,B){return E=Oa(16,E,P,B),fu(15,E,P,B)}function Lm(E,P){C.assert(!E||!!P,"A `YieldExpression` with an asteriskToken must have an expression.");let B=K(229);return B.expression=P&&i().parenthesizeExpressionForDisallowedComma(P),B.asteriskToken=E,B.transformFlags|=Ir(B.expression)|Ir(B.asteriskToken)|1024|128|1048576,B}function km(E,P,B){return E.expression!==B||E.asteriskToken!==P?ar(Lm(P,B),E):E}function Ji(E){let P=K(230);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Ir(P.expression)|1024|32768,P}function $g(E,P){return E.expression!==P?ar(Ji(P),E):E}function ry(E,P,B,ce,$e){let Jt=Z(231);return Jt.modifiers=Ua(E),Jt.name=cc(P),Jt.typeParameters=Ua(B),Jt.heritageClauses=Ua(ce),Jt.members=H($e),Jt.transformFlags|=Ja(Jt.modifiers)|Jy(Jt.name)|Ja(Jt.typeParameters)|Ja(Jt.heritageClauses)|Ja(Jt.members)|(Jt.typeParameters?1:0)|1024,Jt.jsDoc=void 0,Jt}function wm(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Jt?ar(ry(P,B,ce,$e,Jt),E):E}function mE(){return K(232)}function _E(E,P){let B=K(233);return B.expression=i().parenthesizeLeftSideOfAccess(E,!1),B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags|=Ir(B.expression)|Ja(B.typeArguments)|1024,B}function uf(E,P,B){return E.expression!==P||E.typeArguments!==B?ar(_E(P,B),E):E}function U_(E,P){let B=K(234);return B.expression=E,B.type=P,B.transformFlags|=Ir(B.expression)|Ir(B.type)|1,B}function df(E,P,B){return E.expression!==P||E.type!==B?ar(U_(P,B),E):E}function Qg(E){let P=K(235);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Ir(P.expression)|1,P}function ze(E,P){return E6(E)?gn(E,P):E.expression!==P?ar(Qg(P),E):E}function Ze(E,P){let B=K(238);return B.expression=E,B.type=P,B.transformFlags|=Ir(B.expression)|Ir(B.type)|1,B}function kt(E,P,B){return E.expression!==P||E.type!==B?ar(Ze(P,B),E):E}function Ut(E){let P=K(235);return P.flags|=64,P.expression=i().parenthesizeLeftSideOfAccess(E,!0),P.transformFlags|=Ir(P.expression)|1,P}function gn(E,P){return C.assert(!!(E.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),E.expression!==P?ar(Ut(P),E):E}function Yn(E,P){let B=K(236);switch(B.keywordToken=E,B.name=P,B.transformFlags|=Ir(B.name),E){case 105:B.transformFlags|=1024;break;case 102:B.transformFlags|=32;break;default:return C.assertNever(E)}return B.flowNode=void 0,B}function hn(E,P){return E.name!==P?ar(Yn(E.keywordToken,P),E):E}function $n(E,P){let B=K(239);return B.expression=E,B.literal=P,B.transformFlags|=Ir(B.expression)|Ir(B.literal)|1024,B}function hi(E,P,B){return E.expression!==P||E.literal!==B?ar($n(P,B),E):E}function ur(){let E=K(240);return E.transformFlags|=1024,E}function oi(E,P){let B=K(241);return B.statements=H(E),B.multiLine=P,B.transformFlags|=Ja(B.statements),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B}function mr(E,P){return E.statements!==P?ar(oi(P,E.multiLine),E):E}function Zo(E,P){let B=K(243);return B.modifiers=Ua(E),B.declarationList=Do(P)?op(P):P,B.transformFlags|=Ja(B.modifiers)|Ir(B.declarationList),N_(B.modifiers)&128&&(B.transformFlags=1),B.jsDoc=void 0,B.flowNode=void 0,B}function Ka(E,P,B){return E.modifiers!==P||E.declarationList!==B?ar(Zo(P,B),E):E}function Qu(){let E=K(242);return E.jsDoc=void 0,E}function mu(E){let P=K(244);return P.expression=i().parenthesizeExpressionOfExpressionStatement(E),P.transformFlags|=Ir(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function Zg(E,P){return E.expression!==P?ar(mu(P),E):E}function w0(E,P,B){let ce=K(245);return ce.expression=E,ce.thenStatement=Cb(P),ce.elseStatement=Cb(B),ce.transformFlags|=Ir(ce.expression)|Ir(ce.thenStatement)|Ir(ce.elseStatement),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function VI(E,P,B,ce){return E.expression!==P||E.thenStatement!==B||E.elseStatement!==ce?ar(w0(P,B,ce),E):E}function O0(E,P){let B=K(246);return B.statement=Cb(E),B.expression=P,B.transformFlags|=Ir(B.statement)|Ir(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function j2(E,P,B){return E.statement!==P||E.expression!==B?ar(O0(P,B),E):E}function U2(E,P){let B=K(247);return B.expression=E,B.statement=Cb(P),B.transformFlags|=Ir(B.expression)|Ir(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function H2(E,P,B){return E.expression!==P||E.statement!==B?ar(U2(P,B),E):E}function lT(E,P,B,ce){let $e=K(248);return $e.initializer=E,$e.condition=P,$e.incrementor=B,$e.statement=Cb(ce),$e.transformFlags|=Ir($e.initializer)|Ir($e.condition)|Ir($e.incrementor)|Ir($e.statement),$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e}function hE(E,P,B,ce,$e){return E.initializer!==P||E.condition!==B||E.incrementor!==ce||E.statement!==$e?ar(lT(P,B,ce,$e),E):E}function jI(E,P,B){let ce=K(249);return ce.initializer=E,ce.expression=P,ce.statement=Cb(B),ce.transformFlags|=Ir(ce.initializer)|Ir(ce.expression)|Ir(ce.statement),ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.flowNode=void 0,ce}function q2(E,P,B,ce){return E.initializer!==P||E.expression!==B||E.statement!==ce?ar(jI(P,B,ce),E):E}function UI(E,P,B,ce){let $e=K(250);return $e.awaitModifier=E,$e.initializer=P,$e.expression=i().parenthesizeExpressionForDisallowedComma(B),$e.statement=Cb(ce),$e.transformFlags|=Ir($e.awaitModifier)|Ir($e.initializer)|Ir($e.expression)|Ir($e.statement)|1024,E&&($e.transformFlags|=128),$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e}function HI(E,P,B,ce,$e){return E.awaitModifier!==P||E.initializer!==B||E.expression!==ce||E.statement!==$e?ar(UI(P,B,ce,$e),E):E}function qI(E){let P=K(251);return P.label=cc(E),P.transformFlags|=Ir(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function JI(E,P){return E.label!==P?ar(qI(P),E):E}function cT(E){let P=K(252);return P.label=cc(E),P.transformFlags|=Ir(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function KI(E,P){return E.label!==P?ar(cT(P),E):E}function gE(E){let P=K(253);return P.expression=E,P.transformFlags|=Ir(P.expression)|128|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function vE(E,P){return E.expression!==P?ar(gE(P),E):E}function ub(E,P){let B=K(254);return B.expression=E,B.statement=Cb(P),B.transformFlags|=Ir(B.expression)|Ir(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function db(E,P,B){return E.expression!==P||E.statement!==B?ar(ub(P,B),E):E}function mg(E,P){let B=K(255);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.caseBlock=P,B.transformFlags|=Ir(B.expression)|Ir(B.caseBlock),B.jsDoc=void 0,B.flowNode=void 0,B.possiblyExhaustive=!1,B}function F0(E,P,B){return E.expression!==P||E.caseBlock!==B?ar(mg(P,B),E):E}function ns(E,P){let B=K(256);return B.label=cc(E),B.statement=Cb(P),B.transformFlags|=Ir(B.label)|Ir(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function uT(E,P,B){return E.label!==P||E.statement!==B?ar(ns(P,B),E):E}function J2(E){let P=K(257);return P.expression=E,P.transformFlags|=Ir(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function W0(E,P){return E.expression!==P?ar(J2(P),E):E}function ev(E,P,B){let ce=K(258);return ce.tryBlock=E,ce.catchClause=P,ce.finallyBlock=B,ce.transformFlags|=Ir(ce.tryBlock)|Ir(ce.catchClause)|Ir(ce.finallyBlock),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Ch(E,P,B,ce){return E.tryBlock!==P||E.catchClause!==B||E.finallyBlock!==ce?ar(ev(P,B,ce),E):E}function kf(){let E=K(259);return E.jsDoc=void 0,E.flowNode=void 0,E}function jd(E,P,B,ce){let $e=Z(260);return $e.name=cc(E),$e.exclamationToken=P,$e.type=B,$e.initializer=ux(ce),$e.transformFlags|=Jy($e.name)|Ir($e.initializer)|($e.exclamationToken??$e.type?1:0),$e.jsDoc=void 0,$e}function xp(E,P,B,ce,$e){return E.name!==P||E.type!==ce||E.exclamationToken!==B||E.initializer!==$e?ar(jd(P,B,ce,$e),E):E}function op(E,P=0){let B=K(261);return B.flags|=P&7,B.declarations=H(E),B.transformFlags|=Ja(B.declarations)|4194304,P&7&&(B.transformFlags|=263168),P&4&&(B.transformFlags|=4),B}function iy(E,P){return E.declarations!==P?ar(op(P,E.flags),E):E}function dT(E,P,B,ce,$e,Jt,br){let ao=Z(262);if(ao.modifiers=Ua(E),ao.asteriskToken=P,ao.name=cc(B),ao.typeParameters=Ua(ce),ao.parameters=H($e),ao.type=Jt,ao.body=br,!ao.body||N_(ao.modifiers)&128)ao.transformFlags=1;else{let Hs=N_(ao.modifiers)&1024,d_=!!ao.asteriskToken,Nb=Hs&&d_;ao.transformFlags=Ja(ao.modifiers)|Ir(ao.asteriskToken)|Jy(ao.name)|Ja(ao.typeParameters)|Ja(ao.parameters)|Ir(ao.type)|Ir(ao.body)&-67108865|(Nb?128:Hs?256:d_?2048:0)|(ao.typeParameters||ao.type?1:0)|4194304}return ao.typeArguments=void 0,ao.jsDoc=void 0,ao.locals=void 0,ao.nextContainer=void 0,ao.endFlowNode=void 0,ao.returnFlowNode=void 0,ao}function K2(E,P,B,ce,$e,Jt,br,ao){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.typeParameters!==$e||E.parameters!==Jt||E.type!==br||E.body!==ao?XI(dT(P,B,ce,$e,Jt,br,ao),E):E}function XI(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),V(E,P)}function pb(E,P,B,ce,$e){let Jt=Z(263);return Jt.modifiers=Ua(E),Jt.name=cc(P),Jt.typeParameters=Ua(B),Jt.heritageClauses=Ua(ce),Jt.members=H($e),N_(Jt.modifiers)&128?Jt.transformFlags=1:(Jt.transformFlags|=Ja(Jt.modifiers)|Jy(Jt.name)|Ja(Jt.typeParameters)|Ja(Jt.heritageClauses)|Ja(Jt.members)|(Jt.typeParameters?1:0)|1024,Jt.transformFlags&8192&&(Jt.transformFlags|=1)),Jt.jsDoc=void 0,Jt}function z0(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Jt?ar(pb(P,B,ce,$e,Jt),E):E}function YI(E,P,B,ce,$e){let Jt=Z(264);return Jt.modifiers=Ua(E),Jt.name=cc(P),Jt.typeParameters=Ua(B),Jt.heritageClauses=Ua(ce),Jt.members=H($e),Jt.transformFlags=1,Jt.jsDoc=void 0,Jt}function yc(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Jt?ar(YI(P,B,ce,$e,Jt),E):E}function oy(E,P,B,ce){let $e=Z(265);return $e.modifiers=Ua(E),$e.name=cc(P),$e.typeParameters=Ua(B),$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e}function $I(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.type!==$e?ar(oy(P,B,ce,$e),E):E}function o_(E,P,B){let ce=Z(266);return ce.modifiers=Ua(E),ce.name=cc(P),ce.members=H(B),ce.transformFlags|=Ja(ce.modifiers)|Ir(ce.name)|Ja(ce.members)|1,ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function pT(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.members!==ce?ar(o_(P,B,ce),E):E}function qe(E,P,B,ce=0){let $e=Z(267);return $e.modifiers=Ua(E),$e.flags|=ce&2088,$e.name=P,$e.body=B,N_($e.modifiers)&128?$e.transformFlags=1:$e.transformFlags|=Ja($e.modifiers)|Ir($e.name)|Ir($e.body)|1,$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e}function a_(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.body!==ce?ar(qe(P,B,ce,E.flags),E):E}function _u(E){let P=K(268);return P.statements=H(E),P.transformFlags|=Ja(P.statements),P.jsDoc=void 0,P}function B0(E,P){return E.statements!==P?ar(_u(P),E):E}function QI(E){let P=K(269);return P.clauses=H(E),P.transformFlags|=Ja(P.clauses),P.locals=void 0,P.nextContainer=void 0,P}function fb(E,P){return E.clauses!==P?ar(QI(P),E):E}function ay(E){let P=Z(270);return P.name=cc(E),P.transformFlags|=Dk(P.name)|1,P.modifiers=void 0,P.jsDoc=void 0,P}function sy(E,P){return E.name!==P?MP(ay(P),E):E}function MP(E,P){return E!==P&&(E.modifiers=P.modifiers),ar(E,P)}function Xa(E,P,B,ce){let $e=Z(271);return $e.modifiers=Ua(E),$e.name=cc(B),$e.isTypeOnly=P,$e.moduleReference=ce,$e.transformFlags|=Ja($e.modifiers)|Dk($e.name)|Ir($e.moduleReference),Th($e.moduleReference)||($e.transformFlags|=1),$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e}function s_(E,P,B,ce,$e){return E.modifiers!==P||E.isTypeOnly!==B||E.name!==ce||E.moduleReference!==$e?ar(Xa(P,B,ce,$e),E):E}function fT(E,P,B,ce){let $e=K(272);return $e.modifiers=Ua(E),$e.importClause=P,$e.moduleSpecifier=B,$e.attributes=$e.assertClause=ce,$e.transformFlags|=Ir($e.importClause)|Ir($e.moduleSpecifier),$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e}function mT(E,P,B,ce,$e){return E.modifiers!==P||E.importClause!==B||E.moduleSpecifier!==ce||E.attributes!==$e?ar(fT(P,B,ce,$e),E):E}function G0(E,P,B){let ce=Z(273);return ce.isTypeOnly=E,ce.name=P,ce.namedBindings=B,ce.transformFlags|=Ir(ce.name)|Ir(ce.namedBindings),E&&(ce.transformFlags|=1),ce.transformFlags&=-67108865,ce}function _T(E,P,B,ce){return E.isTypeOnly!==P||E.name!==B||E.namedBindings!==ce?ar(G0(P,B,ce),E):E}function cm(E,P){let B=K(300);return B.elements=H(E),B.multiLine=P,B.token=132,B.transformFlags|=4,B}function um(E,P,B){return E.elements!==P||E.multiLine!==B?ar(cm(P,B),E):E}function tv(E,P){let B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function ZI(E,P,B){return E.name!==P||E.value!==B?ar(tv(P,B),E):E}function l_(E,P){let B=K(302);return B.assertClause=E,B.multiLine=P,B}function X2(E,P,B){return E.assertClause!==P||E.multiLine!==B?ar(l_(P,B),E):E}function yE(E,P,B){let ce=K(300);return ce.token=B??118,ce.elements=H(E),ce.multiLine=P,ce.transformFlags|=4,ce}function $i(E,P,B){return E.elements!==P||E.multiLine!==B?ar(yE(P,B,E.token),E):E}function ti(E,P){let B=K(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function Nh(E,P,B){return E.name!==P||E.value!==B?ar(ti(P,B),E):E}function Ud(E){let P=Z(274);return P.name=E,P.transformFlags|=Ir(P.name),P.transformFlags&=-67108865,P}function LP(E,P){return E.name!==P?ar(Ud(P),E):E}function nv(E){let P=Z(280);return P.name=E,P.transformFlags|=Ir(P.name)|32,P.transformFlags&=-67108865,P}function kP(E,P){return E.name!==P?ar(nv(P),E):E}function mb(E){let P=K(275);return P.elements=H(E),P.transformFlags|=Ja(P.elements),P.transformFlags&=-67108865,P}function vl(E,P){return E.elements!==P?ar(mb(P),E):E}function Vp(E,P,B){let ce=Z(276);return ce.isTypeOnly=E,ce.propertyName=P,ce.name=B,ce.transformFlags|=Ir(ce.propertyName)|Ir(ce.name),ce.transformFlags&=-67108865,ce}function _g(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?ar(Vp(P,B,ce),E):E}function dm(E,P,B){let ce=Z(277);return ce.modifiers=Ua(E),ce.isExportEquals=P,ce.expression=P?i().parenthesizeRightSideOfBinary(64,void 0,B):i().parenthesizeExpressionOfExportDefault(B),ce.transformFlags|=Ja(ce.modifiers)|Ir(ce.expression),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function _b(E,P,B){return E.modifiers!==P||E.expression!==B?ar(dm(P,E.isExportEquals,B),E):E}function Om(E,P,B,ce,$e){let Jt=Z(278);return Jt.modifiers=Ua(E),Jt.isTypeOnly=P,Jt.exportClause=B,Jt.moduleSpecifier=ce,Jt.attributes=Jt.assertClause=$e,Jt.transformFlags|=Ja(Jt.modifiers)|Ir(Jt.exportClause)|Ir(Jt.moduleSpecifier),Jt.transformFlags&=-67108865,Jt.jsDoc=void 0,Jt}function rv(E,P,B,ce,$e,Jt){return E.modifiers!==P||E.isTypeOnly!==B||E.exportClause!==ce||E.moduleSpecifier!==$e||E.attributes!==Jt?bE(Om(P,B,ce,$e,Jt),E):E}function bE(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),ar(E,P)}function hT(E){let P=K(279);return P.elements=H(E),P.transformFlags|=Ja(P.elements),P.transformFlags&=-67108865,P}function hg(E,P){return E.elements!==P?ar(hT(P),E):E}function ex(E,P,B){let ce=K(281);return ce.isTypeOnly=E,ce.propertyName=cc(P),ce.name=cc(B),ce.transformFlags|=Ir(ce.propertyName)|Ir(ce.name),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function gg(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?ar(ex(P,B,ce),E):E}function H_(){let E=Z(282);return E.jsDoc=void 0,E}function ly(E){let P=K(283);return P.expression=E,P.transformFlags|=Ir(P.expression),P.transformFlags&=-67108865,P}function Y2(E,P){return E.expression!==P?ar(ly(P),E):E}function $2(E){return K(E)}function Q2(E,P,B=!1){let ce=gT(E,B?P&&i().parenthesizeNonArrayTypeOfPostfixType(P):P);return ce.postfix=B,ce}function gT(E,P){let B=K(E);return B.type=P,B}function $s(E,P,B){return P.type!==B?ar(Q2(E,B,P.postfix),P):P}function EE(E,P,B){return P.type!==B?ar(gT(E,B),P):P}function vT(E,P){let B=Z(324);return B.parameters=Ua(E),B.type=P,B.transformFlags=Ja(B.parameters)|(B.type?1:0),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.typeArguments=void 0,B}function Fm(E,P,B){return E.parameters!==P||E.type!==B?ar(vT(P,B),E):E}function hb(E,P=!1){let B=Z(329);return B.jsDocPropertyTags=Ua(E),B.isArrayType=P,B}function Z2(E,P,B){return E.jsDocPropertyTags!==P||E.isArrayType!==B?ar(hb(P,B),E):E}function yT(E){let P=K(316);return P.type=E,P}function wP(E,P){return E.type!==P?ar(yT(P),E):E}function vr(E,P,B){let ce=Z(330);return ce.typeParameters=Ua(E),ce.parameters=H(P),ce.type=B,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce}function ru(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?ar(vr(P,B,ce),E):E}function io(E){let P=tH(E.kind);return E.tagName.escapedText===ml(P)?E.tagName:Ne(P)}function pf(E,P,B){let ce=K(E);return ce.tagName=P,ce.comment=B,ce}function cy(E,P,B){let ce=Z(E);return ce.tagName=P,ce.comment=B,ce}function q_(E,P,B,ce){let $e=pf(352,E??Ne("template"),ce);return $e.constraint=P,$e.typeParameters=H(B),$e}function dr(E,P=io(E),B,ce,$e){return E.tagName!==P||E.constraint!==B||E.typeParameters!==ce||E.comment!==$e?ar(q_(P,B,ce,$e),E):E}function bT(E,P,B,ce){let $e=cy(353,E??Ne("typedef"),ce);return $e.typeExpression=P,$e.fullName=B,$e.name=BH(B),$e.locals=void 0,$e.nextContainer=void 0,$e}function V0(E,P=io(E),B,ce,$e){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==$e?ar(bT(P,B,ce,$e),E):E}function Jc(E,P,B,ce,$e,Jt){let br=cy(348,E??Ne("param"),Jt);return br.typeExpression=ce,br.name=P,br.isNameFirst=!!$e,br.isBracketed=B,br}function Ph(E,P=io(E),B,ce,$e,Jt,br){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==$e||E.isNameFirst!==Jt||E.comment!==br?ar(Jc(P,B,ce,$e,Jt,br),E):E}function Wm(E,P,B,ce,$e,Jt){let br=cy(355,E??Ne("prop"),Jt);return br.typeExpression=ce,br.name=P,br.isNameFirst=!!$e,br.isBracketed=B,br}function SE(E,P=io(E),B,ce,$e,Jt,br){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==$e||E.isNameFirst!==Jt||E.comment!==br?ar(Wm(P,B,ce,$e,Jt,br),E):E}function TE(E,P,B,ce){let $e=cy(345,E??Ne("callback"),ce);return $e.typeExpression=P,$e.fullName=B,$e.name=BH(B),$e.locals=void 0,$e.nextContainer=void 0,$e}function gb(E,P=io(E),B,ce,$e){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==$e?ar(TE(P,B,ce,$e),E):E}function iv(E,P,B){let ce=pf(346,E??Ne("overload"),B);return ce.typeExpression=P,ce}function ET(E,P=io(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?ar(iv(P,B,ce),E):E}function zm(E,P,B){let ce=pf(335,E??Ne("augments"),B);return ce.class=P,ce}function j0(E,P=io(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?ar(zm(P,B,ce),E):E}function vg(E,P,B){let ce=pf(336,E??Ne("implements"),B);return ce.class=P,ce}function vb(E,P,B){let ce=pf(354,E??Ne("see"),B);return ce.name=P,ce}function tx(E,P,B,ce){return E.tagName!==P||E.name!==B||E.comment!==ce?ar(vb(P,B,ce),E):E}function U0(E){let P=K(317);return P.name=E,P}function eD(E,P){return E.name!==P?ar(U0(P),E):E}function AE(E,P){let B=K(318);return B.left=E,B.right=P,B.transformFlags|=Ir(B.left)|Ir(B.right),B}function ST(E,P,B){return E.left!==P||E.right!==B?ar(AE(P,B),E):E}function jp(E,P){let B=K(331);return B.name=E,B.text=P,B}function TT(E,P,B){return E.name!==P?ar(jp(P,B),E):E}function Gl(E,P){let B=K(332);return B.name=E,B.text=P,B}function Fc(E,P,B){return E.name!==P?ar(Gl(P,B),E):E}function AT(E,P){let B=K(333);return B.name=E,B.text=P,B}function Au(E,P,B){return E.name!==P?ar(AT(P,B),E):E}function ap(E,P=io(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?ar(vg(P,B,ce),E):E}function H0(E,P,B){return pf(E,P??Ne(tH(E)),B)}function wf(E,P,B=io(P),ce){return P.tagName!==B||P.comment!==ce?ar(H0(E,B,ce),P):P}function yb(E,P,B,ce){let $e=pf(E,P??Ne(tH(E)),ce);return $e.typeExpression=B,$e}function bb(E,P,B=io(P),ce,$e){return P.tagName!==B||P.typeExpression!==ce||P.comment!==$e?ar(yb(E,B,ce,$e),P):P}function iu(E,P){return pf(334,E,P)}function nx(E,P,B){return E.tagName!==P||E.comment!==B?ar(iu(P,B),E):E}function Up(E,P,B){let ce=cy(347,E??Ne(tH(347)),B);return ce.typeExpression=P,ce.locals=void 0,ce.nextContainer=void 0,ce}function IT(E,P=io(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?ar(Up(P,B,ce),E):E}function xT(E){let P=K(328);return P.text=E,P}function Us(E,P){return E.text!==P?ar(xT(P),E):E}function tD(E,P){let B=K(327);return B.comment=E,B.tags=Ua(P),B}function q0(E,P,B){return E.comment!==P||E.tags!==B?ar(tD(P,B),E):E}function IE(E,P,B){let ce=K(284);return ce.openingElement=E,ce.children=H(P),ce.closingElement=B,ce.transformFlags|=Ir(ce.openingElement)|Ja(ce.children)|Ir(ce.closingElement)|2,ce}function OP(E,P,B,ce){return E.openingElement!==P||E.children!==B||E.closingElement!==ce?ar(IE(P,B,ce),E):E}function _d(E,P,B){let ce=K(285);return ce.tagName=E,ce.typeArguments=Ua(P),ce.attributes=B,ce.transformFlags|=Ir(ce.tagName)|Ja(ce.typeArguments)|Ir(ce.attributes)|2,ce.typeArguments&&(ce.transformFlags|=1),ce}function ov(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?ar(_d(P,B,ce),E):E}function J_(E,P,B){let ce=K(286);return ce.tagName=E,ce.typeArguments=Ua(P),ce.attributes=B,ce.transformFlags|=Ir(ce.tagName)|Ja(ce.typeArguments)|Ir(ce.attributes)|2,P&&(ce.transformFlags|=1),ce}function rx(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?ar(J_(P,B,ce),E):E}function Rp(E){let P=K(287);return P.tagName=E,P.transformFlags|=Ir(P.tagName)|2,P}function ix(E,P){return E.tagName!==P?ar(Rp(P),E):E}function sp(E,P,B){let ce=K(288);return ce.openingFragment=E,ce.children=H(P),ce.closingFragment=B,ce.transformFlags|=Ir(ce.openingFragment)|Ja(ce.children)|Ir(ce.closingFragment)|2,ce}function ox(E,P,B,ce){return E.openingFragment!==P||E.children!==B||E.closingFragment!==ce?ar(sp(P,B,ce),E):E}function uy(E,P){let B=K(12);return B.text=E,B.containsOnlyTriviaWhiteSpaces=!!P,B.transformFlags|=2,B}function RT(E,P,B){return E.text!==P||E.containsOnlyTriviaWhiteSpaces!==B?ar(uy(P,B),E):E}function nD(){let E=K(289);return E.transformFlags|=2,E}function rD(){let E=K(290);return E.transformFlags|=2,E}function DT(E,P){let B=Z(291);return B.name=E,B.initializer=P,B.transformFlags|=Ir(B.name)|Ir(B.initializer)|2,B}function iD(E,P,B){return E.name!==P||E.initializer!==B?ar(DT(P,B),E):E}function Eb(E){let P=Z(292);return P.properties=H(E),P.transformFlags|=Ja(P.properties)|2,P}function Dp(E,P){return E.properties!==P?ar(Eb(P),E):E}function Mh(E){let P=K(293);return P.expression=E,P.transformFlags|=Ir(P.expression)|2,P}function oD(E,P){return E.expression!==P?ar(Mh(P),E):E}function CT(E,P){let B=K(294);return B.dotDotDotToken=E,B.expression=P,B.transformFlags|=Ir(B.dotDotDotToken)|Ir(B.expression)|2,B}function is(E,P){return E.expression!==P?ar(CT(E.dotDotDotToken,P),E):E}function Rr(E,P){let B=K(295);return B.namespace=E,B.name=P,B.transformFlags|=Ir(B.namespace)|Ir(B.name)|2,B}function ff(E,P,B){return E.namespace!==P||E.name!==B?ar(Rr(P,B),E):E}function Cd(E,P){let B=K(296);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.statements=H(P),B.transformFlags|=Ir(B.expression)|Ja(B.statements),B.jsDoc=void 0,B}function xE(E,P,B){return E.expression!==P||E.statements!==B?ar(Cd(P,B),E):E}function aD(E){let P=K(297);return P.statements=H(E),P.transformFlags=Ja(P.statements),P}function J0(E,P){return E.statements!==P?ar(aD(P),E):E}function RE(E,P){let B=K(298);switch(B.token=E,B.types=H(P),B.transformFlags|=Ja(B.types),E){case 96:B.transformFlags|=1024;break;case 119:B.transformFlags|=1;break;default:return C.assertNever(E)}return B}function NT(E,P){return E.types!==P?ar(RE(E.token,P),E):E}function yg(E,P){let B=K(299);return B.variableDeclaration=GP(E),B.block=P,B.transformFlags|=Ir(B.variableDeclaration)|Ir(B.block)|(E?0:64),B.locals=void 0,B.nextContainer=void 0,B}function c_(E,P,B){return E.variableDeclaration!==P||E.block!==B?ar(yg(P,B),E):E}function mf(E,P){let B=Z(303);return B.name=cc(E),B.initializer=i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Jy(B.name)|Ir(B.initializer),B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Bm(E,P,B){return E.name!==P||E.initializer!==B?av(mf(P,B),E):E}function av(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken),ar(E,P)}function bg(E,P){let B=Z(304);return B.name=cc(E),B.objectAssignmentInitializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Dk(B.name)|Ir(B.objectAssignmentInitializer)|1024,B.equalsToken=void 0,B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Eg(E,P,B){return E.name!==P||E.objectAssignmentInitializer!==B?ax(bg(P,B),E):E}function ax(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken,E.equalsToken=P.equalsToken),ar(E,P)}function lc(E){let P=Z(305);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Ir(P.expression)|128|65536,P.jsDoc=void 0,P}function sD(E,P){return E.expression!==P?ar(lc(P),E):E}function Of(E,P){let B=Z(306);return B.name=cc(E),B.initializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Ir(B.name)|Ir(B.initializer)|1,B.jsDoc=void 0,B}function Lh(E,P,B){return E.name!==P||E.initializer!==B?ar(Of(P,B),E):E}function _f(E,P,B){let ce=t.createBaseSourceFileNode(312);return ce.statements=H(E),ce.endOfFileToken=P,ce.flags|=B,ce.text="",ce.fileName="",ce.path="",ce.resolvedPath="",ce.originalFileName="",ce.languageVersion=0,ce.languageVariant=0,ce.scriptKind=0,ce.isDeclarationFile=!1,ce.hasNoDefaultLib=!1,ce.transformFlags|=Ja(ce.statements)|Ir(ce.endOfFileToken),ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.nodeCount=0,ce.identifierCount=0,ce.symbolCount=0,ce.parseDiagnostics=void 0,ce.bindDiagnostics=void 0,ce.bindSuggestionDiagnostics=void 0,ce.lineMap=void 0,ce.externalModuleIndicator=void 0,ce.setExternalModuleIndicator=void 0,ce.pragmas=void 0,ce.checkJsDirective=void 0,ce.referencedFiles=void 0,ce.typeReferenceDirectives=void 0,ce.libReferenceDirectives=void 0,ce.amdDependencies=void 0,ce.commentDirectives=void 0,ce.identifiers=void 0,ce.packageJsonLocations=void 0,ce.packageJsonScope=void 0,ce.imports=void 0,ce.moduleAugmentations=void 0,ce.ambientModuleNames=void 0,ce.classifiableNames=void 0,ce.impliedNodeFormat=void 0,ce}function DE(E){let P=Object.create(E.redirectTarget);return Object.defineProperties(P,{id:{get(){return this.redirectInfo.redirectTarget.id},set(B){this.redirectInfo.redirectTarget.id=B}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(B){this.redirectInfo.redirectTarget.symbol=B}}}),P.redirectInfo=E,P}function K0(E){let P=DE(E.redirectInfo);return P.flags|=E.flags&-17,P.fileName=E.fileName,P.path=E.path,P.resolvedPath=E.resolvedPath,P.originalFileName=E.originalFileName,P.packageJsonLocations=E.packageJsonLocations,P.packageJsonScope=E.packageJsonScope,P.emitNode=void 0,P}function sx(E){let P=t.createBaseSourceFileNode(312);P.flags|=E.flags&-17;for(let B in E)if(!(Rs(P,B)||!Rs(E,B))){if(B==="emitNode"){P.emitNode=void 0;continue}P[B]=E[B]}return P}function PT(E){let P=E.redirectInfo?K0(E):sx(E);return r(P,E),P}function hf(E,P,B,ce,$e,Jt,br){let ao=PT(E);return ao.statements=H(P),ao.isDeclarationFile=B,ao.referencedFiles=ce,ao.typeReferenceDirectives=$e,ao.hasNoDefaultLib=Jt,ao.libReferenceDirectives=br,ao.transformFlags=Ja(ao.statements)|Ir(ao.endOfFileToken),ao}function Ls(E,P,B=E.isDeclarationFile,ce=E.referencedFiles,$e=E.typeReferenceDirectives,Jt=E.hasNoDefaultLib,br=E.libReferenceDirectives){return E.statements!==P||E.isDeclarationFile!==B||E.referencedFiles!==ce||E.typeReferenceDirectives!==$e||E.hasNoDefaultLib!==Jt||E.libReferenceDirectives!==br?ar(hf(E,P,B,ce,$e,Jt,br),E):E}function CE(E,P=et){let B=K(313);return B.prepends=P,B.sourceFiles=E,B.syntheticFileReferences=void 0,B.syntheticTypeReferences=void 0,B.syntheticLibReferences=void 0,B.hasNoDefaultLib=void 0,B}function NE(E,P,B=et){return E.sourceFiles!==P||E.prepends!==B?ar(CE(P,B),E):E}function sv(E,P,B){let ce=K(314);return ce.prologues=E,ce.syntheticReferences=P,ce.texts=B,ce.fileName="",ce.text="",ce.referencedFiles=et,ce.libReferenceDirectives=et,ce.getLineAndCharacterOfPosition=$e=>Es(ce,$e),ce}function Sb(E,P){let B=K(E);return B.data=P,B}function X0(E){return Sb(307,E)}function D(E,P){let B=Sb(308,E);return B.texts=P,B}function se(E,P){return Sb(P?310:309,E)}function _t(E){let P=K(311);return P.data=E.data,P.section=E,P}function an(){let E=K(315);return E.javascriptText="",E.declarationText="",E}function Fr(E,P=!1,B){let ce=K(237);return ce.type=E,ce.isSpread=P,ce.tupleNameSource=B,ce}function wi(E){let P=K(358);return P._children=E,P}function Ei(E){let P=K(359);return P.original=E,dt(P,E),P}function oo(E,P){let B=K(360);return B.expression=E,B.original=P,B.transformFlags|=Ir(B.expression)|1,dt(B,P),B}function ya(E,P){return E.expression!==P?ar(oo(P,E.original),E):E}function Zu(E){if(Xs(E)&&!uC(E)&&!E.original&&!E.emitNode&&!E.id){if(bN(E))return E.elements;if(_r(E)&&bae(E.operatorToken))return[E.left,E.right]}return E}function Nd(E){let P=K(361);return P.elements=H(eS(E,Zu)),P.transformFlags|=Ja(P.elements),P}function Ff(E,P){return E.elements!==P?ar(Nd(P),E):E}function Tb(E,P){let B=K(362);return B.expression=E,B.thisArg=P,B.transformFlags|=Ir(B.expression)|Ir(B.thisArg),B}function Ai(E,P,B){return E.expression!==P||E.thisArg!==B?ar(Tb(P,B),E):E}function kh(E){let P=oe(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),Lk(P,{...E.emitNode.autoGenerate}),P}function jn(E){let P=oe(E.escapedText);P.flags|=E.flags&-17,P.jsDoc=E.jsDoc,P.flowNode=E.flowNode,P.symbol=E.symbol,P.transformFlags=E.transformFlags,r(P,E);let B=PS(E);return B&&Uv(P,B),P}function lx(E){let P=He(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),Lk(P,{...E.emitNode.autoGenerate}),P}function Ab(E){let P=He(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),P}function Ib(E){if(E===void 0)return E;if(no(E))return PT(E);if(ol(E))return kh(E);if(Ve(E))return jn(E);if(cS(E))return lx(E);if(Xi(E))return Ab(E);let P=aL(E.kind)?t.createBaseNode(E.kind):t.createBaseTokenNode(E.kind);P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E);for(let B in E)Rs(P,B)||!Rs(E,B)||(P[B]=E[B]);return P}function MT(E,P,B){return qn(Bd(void 0,void 0,void 0,void 0,P?[P]:[],void 0,oi(E,!0)),void 0,B?[B]:[])}function PE(E,P,B){return qn(Lf(void 0,void 0,P?[P]:[],void 0,void 0,oi(E,!0)),void 0,B?[B]:[])}function K_(){return Ap(ue("0"))}function wh(E){return dm(void 0,!1,E)}function lD(E){return Om(void 0,!1,hT([ex(!1,void 0,E)]))}function LT(E,P){return P==="null"?O.createStrictEquality(E,Bt()):P==="undefined"?O.createStrictEquality(E,K_()):O.createStrictEquality(zu(E),he(P))}function iz(E,P){return P==="null"?O.createStrictInequality(E,Bt()):P==="undefined"?O.createStrictInequality(E,K_()):O.createStrictInequality(zu(E),he(P))}function xb(E,P,B){return lS(E)?Qo(Ts(E,void 0,P),void 0,void 0,B):qn(js(E,P),void 0,B)}function _4(E,P,B){return xb(E,"bind",[P,...B])}function h4(E,P,B){return xb(E,"call",[P,...B])}function Y0(E,P,B){return xb(E,"apply",[P,B])}function u_(E,P,B){return xb(Ne(E),P,B)}function FP(E,P){return xb(E,"slice",P===void 0?[]:[Q0(P)])}function Oh(E,P){return xb(E,"concat",P)}function cx(E,P,B){return u_("Object","defineProperty",[E,Q0(P),B])}function g4(E,P){return u_("Object","getOwnPropertyDescriptor",[E,Q0(P)])}function X_(E,P,B){return u_("Reflect","get",B?[E,P,B]:[E,P])}function Q(E,P,B,ce){return u_("Reflect","set",ce?[E,P,B,ce]:[E,P,B])}function Re(E,P,B){return B?(E.push(mf(P,B)),!0):!1}function Xe(E,P){let B=[];Re(B,"enumerable",Q0(E.enumerable)),Re(B,"configurable",Q0(E.configurable));let ce=Re(B,"writable",Q0(E.writable));ce=Re(B,"value",E.value)||ce;let $e=Re(B,"get",E.get);return $e=Re(B,"set",E.set)||$e,C.assert(!(ce&&$e),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),$o(B,!P)}function It(E,P){switch(E.kind){case 217:return cf(E,P);case 216:return Ql(E,E.type,P);case 234:return df(E,P,E.type);case 238:return kt(E,P,E.type);case 235:return ze(E,P);case 360:return ya(E,P)}}function Ct(E){return Wd(E)&&Xs(E)&&Xs(jv(E))&&Xs(L_(E))&&!Et(kR(E))&&!Et(Mk(E))}function qt(E,P,B=15){return E&&d5(E,B)&&!Ct(E)?It(E,qt(E.expression,P)):P}function Br(E,P,B){if(!P)return E;let ce=uT(P,P.label,J1(P.statement)?Br(E,P.statement):E);return B&&B(P),ce}function Fi(E,P){let B=vs(E);switch(B.kind){case 80:return P;case 110:case 9:case 10:case 11:return!1;case 209:return B.elements.length!==0;case 210:return B.properties.length>0;default:return!0}}function Pi(E,P,B,ce=!1){let $e=Xl(E,15),Jt,br;return Od($e)?(Jt=at(),br=$e):gN($e)?(Jt=at(),br=B!==void 0&&B<2?dt(Ne("_super"),$e):$e):Va($e)&8192?(Jt=K_(),br=i().parenthesizeLeftSideOfAccess($e,!1)):zr($e)?Fi($e.expression,ce)?(Jt=me(P),br=js(dt(O.createAssignment(Jt,$e.expression),$e.expression),$e.name),dt(br,$e)):(Jt=$e.expression,br=$e):Ys($e)?Fi($e.expression,ce)?(Jt=me(P),br=Oc(dt(O.createAssignment(Jt,$e.expression),$e.expression),$e.argumentExpression),dt(br,$e)):(Jt=$e.expression,br=$e):(Jt=K_(),br=i().parenthesizeLeftSideOfAccess(E,!1)),{target:br,thisArg:Jt}}function gi(E,P){return js(qc($o([le(void 0,"value",[vi(void 0,void 0,E,void 0,void 0,void 0)],oi([mu(P)]))])),"value")}function eo(E){return E.length>10?Nd(E):nd(E,O.createComma)}function fs(E,P,B,ce=0,$e){let Jt=$e?E&&m6(E):Oo(E);if(Jt&&Ve(Jt)&&!ol(Jt)){let br=qa(dt(Ib(Jt),Jt),Jt.parent);return ce|=Va(Jt),B||(ce|=96),P||(ce|=3072),ce&&fr(br,ce),br}return Le(E)}function Cs(E,P,B){return fs(E,P,B,98304)}function es(E,P,B,ce){return fs(E,P,B,32768,ce)}function Wf(E,P,B){return fs(E,P,B,16384)}function Y_(E,P,B){return fs(E,P,B)}function Sg(E,P,B,ce){let $e=js(E,Xs(P)?P:Ib(P));dt($e,P);let Jt=0;return ce||(Jt|=96),B||(Jt|=3072),Jt&&fr($e,Jt),$e}function lv(E,P,B,ce){return E&&ei(P,32)?Sg(E,fs(P),B,ce):Wf(P,B,ce)}function cv(E,P,B,ce){let $e=kT(E,P,0,B);return cD(E,P,$e,ce)}function Rb(E){return Na(E.expression)&&E.expression.text==="use strict"}function lp(){return Ku(mu(he("use strict")))}function kT(E,P,B=0,ce){C.assert(P.length===0,"Prologue directives should be at the first statement in the target statements array");let $e=!1,Jt=E.length;for(;Bao&&d_.splice($e,0,...P.slice(ao,Hs)),ao>br&&d_.splice(ce,0,...P.slice(br,ao)),br>Jt&&d_.splice(B,0,...P.slice(Jt,br)),Jt>0)if(B===0)d_.splice(0,0,...P.slice(0,Jt));else{let Nb=new Map;for(let Gm=0;Gm=0;Gm--){let Z0=P[Gm];Nb.has(Z0.expression.text)||d_.unshift(Z0)}}return E1(E)?dt(H(d_,E.hasTrailingComma),E):E}function Db(E,P){let B;return typeof P=="number"?B=nn(P):B=P,_l(E)?Yt(E,B,E.name,E.constraint,E.default):Co(E)?ho(E,B,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):OR(E)?Kt(E,B,E.typeParameters,E.parameters,E.type):gp(E)?qr(E,B,E.name,E.questionToken,E.type):Jo(E)?tt(E,B,E.name,E.questionToken??E.exclamationToken,E.type,E.initializer):yh(E)?Rn(E,B,E.name,E.questionToken,E.typeParameters,E.parameters,E.type):jl(E)?bi(E,B,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):Pl(E)?wn(E,B,E.parameters,E.body):Zp(E)?ft(E,B,E.name,E.parameters,E.type,E.body):vp(E)?We(E,B,E.name,E.parameters,E.body):j1(E)?Vt(E,B,E.parameters,E.type):ws(E)?Dd(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Bs(E)?j_(E,B,E.typeParameters,E.parameters,E.type,E.equalsGreaterThanToken,E.body):Zc(E)?wm(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):Ml(E)?Ka(E,B,E.declarationList):Sc(E)?K2(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Tc(E)?z0(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):fd(E)?yc(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):Dm(E)?$I(E,B,E.name,E.typeParameters,E.type):v0(E)?pT(E,B,E.name,E.members):Jl(E)?a_(E,B,E.name,E.body):tu(E)?s_(E,B,E.isTypeOnly,E.name,E.moduleReference):Lc(E)?mT(E,B,E.importClause,E.moduleSpecifier,E.attributes):Ll(E)?_b(E,B,E.expression):Kl(E)?rv(E,B,E.isTypeOnly,E.exportClause,E.moduleSpecifier,E.attributes):C.assertNever(E)}function uD(E,P){return Co(E)?ho(E,P,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):Jo(E)?tt(E,P,E.name,E.questionToken??E.exclamationToken,E.type,E.initializer):jl(E)?bi(E,P,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):Zp(E)?ft(E,P,E.name,E.parameters,E.type,E.body):vp(E)?We(E,P,E.name,E.parameters,E.body):Zc(E)?wm(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):Tc(E)?z0(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):C.assertNever(E)}function Hp(E,P){switch(E.kind){case 177:return ft(E,E.modifiers,P,E.parameters,E.type,E.body);case 178:return We(E,E.modifiers,P,E.parameters,E.body);case 174:return bi(E,E.modifiers,E.asteriskToken,P,E.questionToken,E.typeParameters,E.parameters,E.type,E.body);case 173:return Rn(E,E.modifiers,P,E.questionToken,E.typeParameters,E.parameters,E.type);case 172:return tt(E,E.modifiers,P,E.questionToken??E.exclamationToken,E.type,E.initializer);case 171:return qr(E,E.modifiers,P,E.questionToken,E.type);case 303:return Bm(E,P,E.initializer)}}function Ua(E){return E?H(E):void 0}function cc(E){return typeof E=="string"?Ne(E):E}function Q0(E){return typeof E=="string"?he(E):typeof E=="number"?ue(E):typeof E=="boolean"?E?yt():Qe():E}function ux(E){return E&&i().parenthesizeExpressionForDisallowedComma(E)}function BP(E){return typeof E=="number"?Se(E):E}function Cb(E){return E&&TH(E)?dt(r(Qu(),E),E):E}function GP(E){return typeof E=="string"||E&&!Oi(E)?jd(E,void 0,void 0,void 0):E}function ar(E,P){return E!==P&&(r(E,P),dt(E,P)),E}}function tH(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return C.fail(`Unsupported kind: ${C.formatSyntaxKind(e)}`)}}function Oze(e,t){switch(Vv||(Vv=Mv(99,!1,0)),e){case 15:Vv.setText("`"+t+"`");break;case 16:Vv.setText("`"+t+"${");break;case 17:Vv.setText("}"+t+"${");break;case 18:Vv.setText("}"+t+"`");break}let r=Vv.scan();if(r===20&&(r=Vv.reScanTemplateToken(!1)),Vv.isUnterminated())return Vv.setText(void 0),lae;let i;switch(r){case 15:case 16:case 17:case 18:i=Vv.getTokenValue();break}return i===void 0||Vv.scan()!==1?(Vv.setText(void 0),lae):(Vv.setText(void 0),i)}function Jy(e){return e&&Ve(e)?Dk(e):Ir(e)}function Dk(e){return Ir(e)&-67108865}function Fze(e,t){return t|e.transformFlags&134234112}function Ir(e){if(!e)return 0;let t=e.transformFlags&~aae(e.kind);return od(e)&&ic(e.name)?Fze(e.name,t):t}function Ja(e){return e?e.transformFlags:0}function _Se(e){let t=0;for(let r of e)t|=Ir(r);e.transformFlags=t}function aae(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function f7(e){return e.flags|=16,e}function nH(e,t,r){let i,o,s,l,u,p,g,m,b,T;wo(e)?(s="",l=e,u=e.length,p=t,g=r):(C.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,b=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(C.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,T=e.oldFileOfCurrentEmit));let I=T?zze(C.checkDefined(o)):Wze(o,i,u);return I.fileName=s,I.sourceMapPath=p,I.oldFileOfCurrentEmit=T,m&&b?(Object.defineProperty(I,"text",{get:m}),Object.defineProperty(I,"sourceMapText",{get:b})):(C.assert(!T),I.text=l??"",I.sourceMapText=g),I}function Wze(e,t,r){let i,o,s,l,u,p,g,m;for(let T of e?e.sections:et)switch(T.kind){case"prologue":i=In(i,dt(k.createUnparsedPrologue(T.data),T));break;case"emitHelpers":o=In(o,dH().get(T.data));break;case"no-default-lib":m=!0;break;case"reference":s=In(s,{pos:-1,end:-1,fileName:T.data});break;case"type":l=In(l,{pos:-1,end:-1,fileName:T.data});break;case"type-import":l=In(l,{pos:-1,end:-1,fileName:T.data,resolutionMode:99});break;case"type-require":l=In(l,{pos:-1,end:-1,fileName:T.data,resolutionMode:1});break;case"lib":u=In(u,{pos:-1,end:-1,fileName:T.data});break;case"prepend":let I;for(let R of T.texts)(!t||R.kind!=="internal")&&(I=In(I,dt(k.createUnparsedTextLike(R.data,R.kind==="internal"),R)));p=Jr(p,I),g=In(g,k.createUnparsedPrepend(T.data,I??et));break;case"internal":if(t){g||(g=[]);break}case"text":g=In(g,dt(k.createUnparsedTextLike(T.data,T.kind==="internal"),T));break;default:C.assertNever(T)}if(!g){let T=k.createUnparsedTextLike(void 0,!1);rN(T,0,typeof r=="function"?r():r),g=[T]}let b=Ah.createUnparsedSource(i??et,void 0,g);return NR(i,b),NR(g,b),NR(p,b),b.hasNoDefaultLib=m,b.helpers=o,b.referencedFiles=s||et,b.typeReferenceDirectives=l,b.libReferenceDirectives=u||et,b}function zze(e){let t,r;for(let o of e.sections)switch(o.kind){case"internal":case"text":t=In(t,dt(k.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=In(r,dt(k.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:C.assertNever(o)}let i=k.createUnparsedSource(et,r,t??et);return NR(r,i),NR(t,i),i.helpers=Ft(e.sources&&e.sources.helpers,o=>dH().get(o)),i}function hSe(e,t,r,i,o,s){return wo(e)?iH(void 0,e,r,i,void 0,t,o,s):rH(e,t,r,i,o,s)}function rH(e,t,r,i,o,s,l,u){let p=Ah.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;let g=new Map,m=R=>{if(R===void 0)return;let M=g.get(R);return M===void 0&&(M=e(R),g.set(R,M!==void 0?M:!1)),M!==!1?M:void 0},b=R=>{let M=m(R);return M!==void 0?M:`/* Input file ${R} was missing */\r +`},T;return Object.defineProperties(p,{javascriptText:{get:()=>b(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>b(C.checkDefined(i))},declarationMapText:{get:()=>m(o)},buildInfo:{get:()=>{if(T===void 0&&s)if(l?.getBuildInfo)T=l.getBuildInfo(s,u.configFilePath)??!1;else{let R=m(s);T=R!==void 0?cF(s,R)??!1:!1}return T||void 0}}}),p}function iH(e,t,r,i,o,s,l,u,p,g,m){let b=Ah.createInputFiles();return b.javascriptPath=e,b.javascriptText=t,b.javascriptMapPath=r,b.javascriptMapText=i,b.declarationPath=o,b.declarationText=s,b.declarationMapPath=l,b.declarationMapText=u,b.buildInfoPath=p,b.buildInfo=g,b.oldFileOfCurrentEmit=m,b}function gSe(e,t,r){return new(ySe||(ySe=lu.getSourceMapSourceConstructor()))(e,t,r)}function Pr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=Bze(r,e.emitNode))}return e}function Bze(e,t){let{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:p,constantValue:g,helpers:m,startsOnNewLine:b,snippetElement:T,classThis:I,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Jr(o.slice(),t.leadingComments)),s&&(t.trailingComments=Jr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),p&&(t.tokenSourceMapRanges=Gze(p,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),m)for(let M of m)t.helpers=Ng(t.helpers,M);return b!==void 0&&(t.startsOnNewLine=b),T!==void 0&&(t.snippetElement=T),I&&(t.classThis=I),R&&(t.assignedName=R),t}function Gze(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var m7,oH,sae,Vv,lae,Ck,vSe,k,ySe,Vze=A({"src/compiler/factory/nodeFactory.ts"(){"use strict";ia(),m7=0,oH=(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))(oH||{}),sae=[],lae={},Ck=rae(),vSe={createBaseSourceFileNode:e=>f7(Ck.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>f7(Ck.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>f7(Ck.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>f7(Ck.createBaseTokenNode(e)),createBaseNode:e=>f7(Ck.createBaseNode(e))},k=Rk(4,vSe)}});function wu(e){if(e.emitNode)C.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(uC(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};let t=Vn(Lo(Vn(e)))??C.fail("Could not determine parsed source file.");wu(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function aH(e){var t,r;let i=(r=(t=Vn(Lo(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(let o of i)o.emitNode=void 0}function Nk(e){let t=wu(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function fr(e,t){return wu(e).flags=t,e}function M_(e,t){let r=wu(e);return r.flags=r.flags|t,e}function Pk(e,t){return wu(e).internalFlags=t,e}function JA(e,t){let r=wu(e);return r.internalFlags=r.internalFlags|t,e}function jv(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ca(e,t){return wu(e).sourceMapRange=t,e}function bSe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function cae(e,t,r){let i=wu(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function fN(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function _7(e,t){return wu(e).startsOnNewLine=t,e}function L_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function oc(e,t){return wu(e).commentRange=t,e}function kR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function g0(e,t){return wu(e).leadingComments=t,e}function mN(e,t,r,i){return g0(e,In(kR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Mk(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function KA(e,t){return wu(e).trailingComments=t,e}function h7(e,t,r,i){return KA(e,In(Mk(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function uae(e,t){g0(e,kR(t)),KA(e,Mk(t));let r=wu(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function dae(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function pae(e,t){let r=wu(e);return r.constantValue=t,e}function XA(e,t){let r=wu(e);return r.helpers=In(r.helpers,t),e}function Vg(e,t){if(Et(t)){let r=wu(e);for(let i of t)r.helpers=Ng(r.helpers,i)}return e}function ESe(e,t){var r;let i=(r=e.emitNode)==null?void 0:r.helpers;return i?Mx(i,t):!1}function g7(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function fae(e,t,r){let i=e.emitNode,o=i&&i.helpers;if(!Et(o))return;let s=wu(t),l=0;for(let u=0;u0&&(o[u-l]=p)}l>0&&(o.length-=l)}function sH(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function lH(e,t){let r=wu(e);return r.snippetElement=t,e}function cH(e){return wu(e).internalFlags|=4,e}function mae(e,t){let r=wu(e);return r.typeNode=t,e}function _ae(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Uv(e,t){return wu(e).identifierTypeArguments=t,e}function PS(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function Lk(e,t){return wu(e).autoGenerate=t,e}function SSe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function hae(e,t){return wu(e).generatedImportReference=t,e}function gae(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var jze=A({"src/compiler/factory/emitNode.ts"(){"use strict";ia()}});function vae(e){let t=e.factory,r=Ed(()=>Pk(t.createTrue(),8)),i=Ed(()=>Pk(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:M,createRunInitializersHelper:N,createAssignHelper:O,createAwaitHelper:H,createAsyncGeneratorHelper:K,createAsyncDelegatorHelper:Z,createAsyncValuesHelper:V,createRestHelper:ue,createAwaiterHelper:G,createExtendsHelper:ne,createTemplateObjectHelper:he,createSpreadArrayHelper:ye,createPropKeyHelper:$,createSetFunctionNameHelper:Y,createValuesHelper:oe,createReadHelper:fe,createGeneratorHelper:Ne,createCreateBindingHelper:me,createImportStarHelper:ie,createImportStarCallbackHelper:ve,createImportDefaultHelper:Le,createExportStarHelper:He,createClassPrivateFieldGetHelper:Ee,createClassPrivateFieldSetHelper:Ce,createClassPrivateFieldInHelper:Me,createAddDisposableResourceHelper:Fe,createDisposeResourcesHelper:At};function o(Se){return fr(t.createIdentifier(Se),8196)}function s(Se,je,at,Bt){e.requestEmitHelper(v7);let yt=[];return yt.push(t.createArrayLiteralExpression(Se,!0)),yt.push(je),at&&(yt.push(at),Bt&&yt.push(Bt)),t.createCallExpression(o("__decorate"),void 0,yt)}function l(Se,je){return e.requestEmitHelper(y7),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(Se),je])}function u(Se,je,at){return e.requestEmitHelper(b7),dt(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(je+""),Se]),at)}function p(Se){let je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),Se.name),t.createPropertyAssignment(t.createIdentifier("metadata"),Se.metadata)];return t.createObjectLiteralExpression(je)}function g(Se){let je=Se.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Se.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Se.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,je))}function m(Se){let je=Se.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Se.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Se.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(je,t.createIdentifier("value")))])))}function b(Se){let je=Se.computed?Se.name:Ve(Se.name)?t.createStringLiteralFromNode(Se.name):Se.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(je,103,t.createIdentifier("obj"))))}function T(Se,je){let at=[];return at.push(b(Se)),je.get&&at.push(g(Se)),je.set&&at.push(m(Se)),t.createObjectLiteralExpression(at)}function I(Se){let je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(Se.kind)),t.createPropertyAssignment(t.createIdentifier("name"),Se.name.computed?Se.name.name:t.createStringLiteralFromNode(Se.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),Se.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),Se.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),T(Se.name,Se.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),Se.metadata)];return t.createObjectLiteralExpression(je)}function R(Se){return Se.kind==="class"?p(Se):I(Se)}function M(Se,je,at,Bt,yt,Qe){return e.requestEmitHelper(E7),t.createCallExpression(o("__esDecorate"),void 0,[Se??t.createNull(),je??t.createNull(),at,R(Bt),yt,Qe])}function N(Se,je,at){return e.requestEmitHelper(S7),t.createCallExpression(o("__runInitializers"),void 0,at?[Se,je,at]:[Se,je])}function O(Se){return as(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,Se):(e.requestEmitHelper(T7),t.createCallExpression(o("__assign"),void 0,Se))}function H(Se){return e.requestEmitHelper(YA),t.createCallExpression(o("__await"),void 0,[Se])}function K(Se,je){return e.requestEmitHelper(YA),e.requestEmitHelper(A7),(Se.emitNode||(Se.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[je?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),Se])}function Z(Se){return e.requestEmitHelper(YA),e.requestEmitHelper(I7),t.createCallExpression(o("__asyncDelegator"),void 0,[Se])}function V(Se){return e.requestEmitHelper(x7),t.createCallExpression(o("__asyncValues"),void 0,[Se])}function ue(Se,je,at,Bt){e.requestEmitHelper(R7);let yt=[],Qe=0;for(let gt=0;gt{let i="";for(let o=0;oe.name))}function _N(e,t){return la(e)&&Ve(e.expression)&&(Va(e.expression)&8192)!==0&&e.expression.escapedText===t}var pH,v7,y7,b7,E7,S7,T7,YA,A7,I7,x7,R7,D7,C7,N7,P7,M7,L7,k7,w7,O7,wR,F7,kk,W7,z7,B7,G7,V7,j7,U7,TSe,wk,Ok,Uze=A({"src/compiler/factory/emitHelpers.ts"(){"use strict";ia(),pH=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(pH||{}),v7={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` + var __decorate = (this && this.__decorate) || function (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; + };`},y7={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + };`},b7={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + };`},E7={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` + var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; + };`},S7={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` + var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; + };`},T7={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` + var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(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); + };`},YA={name:"typescript:await",importName:"__await",scoped:!1,text:` + var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},A7={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[YA],text:` + var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + };`},I7={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[YA],text:` + var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + 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; } + };`},x7={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` + var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + 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); + 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); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + };`},R7={name:"typescript:rest",importName:"__rest",scoped:!1,text:` + var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + };`},D7={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` + var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + };`},C7={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` + var __extends = (this && this.__extends) || (function () { + 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); + }; + + return function (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 __()); + }; + })();`},N7={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` + var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + };`},P7={name:"typescript:read",importName:"__read",scoped:!1,text:` + var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + };`},M7={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` + var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + };`},L7={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + var __propKey = (this && this.__propKey) || function (x) { + return typeof x === "symbol" ? x : "".concat(x); + };`},k7={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` + var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + };`},w7={name:"typescript:values",importName:"__values",scoped:!1,text:` + var __values = (this && this.__values) || function(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."); + };`},O7={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + };`},wR={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` + var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }));`},F7={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` + var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + });`},kk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[wR,F7],priority:2,text:` + var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + };`},W7={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` + var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + };`},z7={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[wR],priority:2,text:` + var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); + };`},B7={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` + var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (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); + };`},G7={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` + var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (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; + };`},V7={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` + var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + };`},j7={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };`},U7={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });`},wk={name:"typescript:async-super",scoped:!0,text:uH` + const ${"_superIndex"} = name => super[name];`},Ok={name:"typescript:advanced-async-super",scoped:!0,text:uH` + 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 hp(e){return e.kind===9}function H7(e){return e.kind===10}function Na(e){return e.kind===11}function $A(e){return e.kind===12}function fH(e){return e.kind===14}function QA(e){return e.kind===15}function ZA(e){return e.kind===16}function mH(e){return e.kind===17}function q7(e){return e.kind===18}function J7(e){return e.kind===26}function bae(e){return e.kind===28}function _H(e){return e.kind===40}function hH(e){return e.kind===41}function Fk(e){return e.kind===42}function Wk(e){return e.kind===54}function Ky(e){return e.kind===58}function Eae(e){return e.kind===59}function K7(e){return e.kind===29}function Sae(e){return e.kind===39}function Ve(e){return e.kind===80}function Xi(e){return e.kind===81}function eI(e){return e.kind===95}function X7(e){return e.kind===90}function hN(e){return e.kind===134}function Tae(e){return e.kind===131}function gH(e){return e.kind===135}function Aae(e){return e.kind===148}function tI(e){return e.kind===126}function Iae(e){return e.kind===128}function xae(e){return e.kind===164}function Rae(e){return e.kind===129}function gN(e){return e.kind===108}function vN(e){return e.kind===102}function Dae(e){return e.kind===84}function Ad(e){return e.kind===166}function Za(e){return e.kind===167}function _l(e){return e.kind===168}function Co(e){return e.kind===169}function Eu(e){return e.kind===170}function gp(e){return e.kind===171}function Jo(e){return e.kind===172}function yh(e){return e.kind===173}function jl(e){return e.kind===174}function Il(e){return e.kind===175}function Pl(e){return e.kind===176}function Zp(e){return e.kind===177}function vp(e){return e.kind===178}function nI(e){return e.kind===179}function zk(e){return e.kind===180}function j1(e){return e.kind===181}function Bk(e){return e.kind===182}function Rf(e){return e.kind===183}function bh(e){return e.kind===184}function OR(e){return e.kind===185}function rI(e){return e.kind===186}function yp(e){return e.kind===187}function Gk(e){return e.kind===188}function iI(e){return e.kind===189}function FR(e){return e.kind===202}function Y7(e){return e.kind===190}function $7(e){return e.kind===191}function Xy(e){return e.kind===192}function oI(e){return e.kind===193}function aI(e){return e.kind===194}function MS(e){return e.kind===195}function LS(e){return e.kind===196}function Vk(e){return e.kind===197}function kS(e){return e.kind===198}function wS(e){return e.kind===199}function WR(e){return e.kind===200}function Yy(e){return e.kind===201}function lg(e){return e.kind===205}function vH(e){return e.kind===204}function Cae(e){return e.kind===203}function om(e){return e.kind===206}function U1(e){return e.kind===207}function Qa(e){return e.kind===208}function pd(e){return e.kind===209}function wa(e){return e.kind===210}function zr(e){return e.kind===211}function Ys(e){return e.kind===212}function la(e){return e.kind===213}function H1(e){return e.kind===214}function q1(e){return e.kind===215}function Nae(e){return e.kind===216}function Wd(e){return e.kind===217}function ws(e){return e.kind===218}function Bs(e){return e.kind===219}function Pae(e){return e.kind===220}function zR(e){return e.kind===221}function sI(e){return e.kind===222}function $y(e){return e.kind===223}function Qy(e){return e.kind===224}function yH(e){return e.kind===225}function _r(e){return e.kind===226}function BR(e){return e.kind===227}function Q7(e){return e.kind===228}function Z7(e){return e.kind===229}function Zm(e){return e.kind===230}function Zc(e){return e.kind===231}function Vc(e){return e.kind===232}function Hv(e){return e.kind===233}function jk(e){return e.kind===234}function bH(e){return e.kind===238}function lI(e){return e.kind===235}function yN(e){return e.kind===236}function ASe(e){return e.kind===237}function e5(e){return e.kind===360}function bN(e){return e.kind===361}function EN(e){return e.kind===239}function Mae(e){return e.kind===240}function Xo(e){return e.kind===241}function Ml(e){return e.kind===243}function EH(e){return e.kind===242}function eu(e){return e.kind===244}function OS(e){return e.kind===245}function ISe(e){return e.kind===246}function xSe(e){return e.kind===247}function FS(e){return e.kind===248}function t5(e){return e.kind===249}function Uk(e){return e.kind===250}function RSe(e){return e.kind===251}function DSe(e){return e.kind===252}function Rm(e){return e.kind===253}function Lae(e){return e.kind===254}function SN(e){return e.kind===255}function J1(e){return e.kind===256}function SH(e){return e.kind===257}function WS(e){return e.kind===258}function CSe(e){return e.kind===259}function Oi(e){return e.kind===260}function jc(e){return e.kind===261}function Sc(e){return e.kind===262}function Tc(e){return e.kind===263}function fd(e){return e.kind===264}function Dm(e){return e.kind===265}function v0(e){return e.kind===266}function Jl(e){return e.kind===267}function k_(e){return e.kind===268}function TN(e){return e.kind===269}function Hk(e){return e.kind===270}function tu(e){return e.kind===271}function Lc(e){return e.kind===272}function Eh(e){return e.kind===273}function NSe(e){return e.kind===302}function kae(e){return e.kind===300}function PSe(e){return e.kind===301}function cI(e){return e.kind===300}function wae(e){return e.kind===301}function Zy(e){return e.kind===274}function Sh(e){return e.kind===280}function jg(e){return e.kind===275}function tp(e){return e.kind===276}function Ll(e){return e.kind===277}function Kl(e){return e.kind===278}function Df(e){return e.kind===279}function Ju(e){return e.kind===281}function MSe(e){return e.kind===282}function TH(e){return e.kind===359}function uI(e){return e.kind===362}function Th(e){return e.kind===283}function cg(e){return e.kind===284}function zS(e){return e.kind===285}function w_(e){return e.kind===286}function K1(e){return e.kind===287}function X1(e){return e.kind===288}function dI(e){return e.kind===289}function Oae(e){return e.kind===290}function O_(e){return e.kind===291}function Y1(e){return e.kind===292}function pI(e){return e.kind===293}function AN(e){return e.kind===294}function e_(e){return e.kind===295}function GR(e){return e.kind===296}function IN(e){return e.kind===297}function ef(e){return e.kind===298}function $1(e){return e.kind===299}function _c(e){return e.kind===303}function np(e){return e.kind===304}function qv(e){return e.kind===305}function Q1(e){return e.kind===306}function Fae(e){return e.kind===308}function no(e){return e.kind===312}function AH(e){return e.kind===313}function BS(e){return e.kind===314}function Z1(e){return e.kind===316}function xN(e){return e.kind===317}function y0(e){return e.kind===318}function Wae(e){return e.kind===331}function zae(e){return e.kind===332}function LSe(e){return e.kind===333}function Bae(e){return e.kind===319}function Gae(e){return e.kind===320}function VR(e){return e.kind===321}function n5(e){return e.kind===322}function IH(e){return e.kind===323}function jR(e){return e.kind===324}function r5(e){return e.kind===325}function kSe(e){return e.kind===326}function t_(e){return e.kind===327}function GS(e){return e.kind===329}function b0(e){return e.kind===330}function fI(e){return e.kind===335}function wSe(e){return e.kind===337}function Vae(e){return e.kind===339}function xH(e){return e.kind===345}function RH(e){return e.kind===340}function DH(e){return e.kind===341}function CH(e){return e.kind===342}function NH(e){return e.kind===343}function i5(e){return e.kind===344}function UR(e){return e.kind===346}function PH(e){return e.kind===338}function OSe(e){return e.kind===354}function qk(e){return e.kind===347}function n_(e){return e.kind===348}function o5(e){return e.kind===349}function MH(e){return e.kind===350}function RN(e){return e.kind===351}function am(e){return e.kind===352}function VS(e){return e.kind===353}function FSe(e){return e.kind===334}function jae(e){return e.kind===355}function a5(e){return e.kind===336}function s5(e){return e.kind===357}function WSe(e){return e.kind===356}function HR(e){return e.kind===358}var Hze=A({"src/compiler/factory/nodeTests.ts"(){"use strict";ia()}});function Jk(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function jS(e,t,r,i){if(Za(r))return dt(e.createElementAccessExpression(t,r.expression),i);{let o=dt(Yh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return M_(o,128),o}}function Uae(e,t){let r=Ah.createIdentifier(e||"React");return qa(r,Lo(t)),r}function Hae(e,t,r){if(Ad(t)){let i=Hae(e,t.left,r),o=e.createIdentifier(Sr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Uae(Sr(t),r)}function LH(e,t,r,i){return t?Hae(e,t,i):e.createPropertyAccessExpression(Uae(r,i),"createElement")}function qze(e,t,r,i){return t?Hae(e,t,i):e.createPropertyAccessExpression(Uae(r,i),"Fragment")}function qae(e,t,r,i,o,s){let l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(let u of o)Ku(u),l.push(u);else l.push(o[0]);return dt(e.createCallExpression(t,void 0,l),s)}function Jae(e,t,r,i,o,s,l){let p=[qze(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(let g of o)Ku(g),p.push(g);else p.push(o[0]);return dt(e.createCallExpression(LH(e,t,i,s),void 0,p),l)}function kH(e,t,r){if(jc(t)){let i=Ha(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return dt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{let i=dt(e.createAssignment(t,r),t);return dt(e.createExpressionStatement(i),t)}}function zSe(e,t,r){return Xo(t)?e.updateBlock(t,dt(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function Kk(e,t){if(Ad(t)){let r=Kk(e,t.left),i=qa(dt(e.cloneNode(t.right),t.right),t.right.parent);return dt(e.createPropertyAccessExpression(r,i),t)}else return qa(dt(e.cloneNode(t),t),t.parent)}function wH(e,t){return Ve(t)?e.createStringLiteralFromNode(t):Za(t)?qa(dt(e.cloneNode(t.expression),t.expression),t.expression.parent):qa(dt(e.cloneNode(t),t),t.parent)}function Jze(e,t,r,i,o){let{firstAccessor:s,getAccessor:l,setAccessor:u}=RS(t,r);if(r===s)return dt(e.createObjectDefinePropertyCall(i,wH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&dt(Pr(e.createFunctionExpression(b1(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&dt(Pr(e.createFunctionExpression(b1(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function Kze(e,t,r){return Pr(dt(e.createAssignment(jS(e,r,t.name,t.name),t.initializer),t),t)}function Xze(e,t,r){return Pr(dt(e.createAssignment(jS(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function Yze(e,t,r){return Pr(dt(e.createAssignment(jS(e,r,t.name,t.name),Pr(dt(e.createFunctionExpression(b1(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Kae(e,t,r,i){switch(r.name&&Xi(r.name)&&C.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return Jze(e,t.properties,r,i,!!t.multiLine);case 303:return Kze(e,r,i);case 304:return Xze(e,r,i);case 174:return Yze(e,r,i)}}function l5(e,t,r,i,o){let s=t.operator;C.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let l=e.createTempVariable(i);r=e.createAssignment(l,r),dt(r,t.operand);let u=Qy(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return dt(u,t),o&&(u=e.createAssignment(o,u),dt(u,t)),r=e.createComma(r,u),dt(r,t),yH(t)&&(r=e.createComma(r,l),dt(r,t)),r}function OH(e){return(Va(e)&65536)!==0}function Ug(e){return(Va(e)&32768)!==0}function c5(e){return(Va(e)&16384)!==0}function BSe(e){return Na(e.expression)&&e.expression.text==="use strict"}function FH(e){for(let t of e)if(Am(t)){if(BSe(t))return t}else break}function Xae(e){let t=Xc(e);return t!==void 0&&Am(t)&&BSe(t)}function Xk(e){return e.kind===226&&e.operatorToken.kind===28}function DN(e){return Xk(e)||bN(e)}function qR(e){return Wd(e)&&cr(e)&&!!r0(e)}function u5(e){let t=i0(e);return C.assertIsDefined(t),t}function d5(e,t=15){switch(e.kind){case 217:return t&16&&qR(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function Xl(e,t=15){for(;d5(e,t);)e=e.expression;return e}function Yae(e,t=15){let r=e.parent;for(;d5(r,t);)r=r.parent,C.assert(r);return r}function GSe(e){return Xl(e,6)}function Ku(e){return _7(e,!0)}function Yk(e){let t=Nl(e,no),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function $ae(e){let t=Nl(e,no),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function WH(e,t,r,i,o,s,l){if(i.importHelpers&&NA(r,i)){let u,p=ku(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){let g=g7(r);if(g){let m=[];for(let b of g)if(!b.scoped){let T=b.importName;T&&bf(m,T)}if(Et(m)){m.sort(ju),u=e.createNamedImports(Ft(m,I=>F6(r,I)?e.createImportSpecifier(!1,void 0,e.createIdentifier(I)):e.createImportSpecifier(!1,e.createIdentifier(I),t.getUnscopedHelperName(I))));let b=Nl(r,no),T=wu(b);T.externalHelpers=!0}}}else{let g=Qae(e,r,i,o,s||l);g&&(u=e.createNamespaceImport(g))}if(u){let g=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(Hy),void 0);return JA(g,2),g}}}function Qae(e,t,r,i,o){if(r.importHelpers&&NA(t,r)){let s=Yk(t);if(s)return s;let l=ku(r),u=(i||vh(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!u){let p=g7(t);if(p){for(let g of p)if(!g.scoped){u=!0;break}}}if(u){let p=Nl(t,no),g=wu(p);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(Hy))}}}function JR(e,t,r){let i=dR(t);if(i&&!MA(t)&&!z6(t)){let o=i.name;return ol(o)?o:e.createIdentifier(A1(r,o)||Sr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function mI(e,t,r,i,o,s){let l=uR(t);if(l&&Na(l))return Qze(t,i,e,o,s)||$ze(e,l,r)||e.cloneNode(l)}function $ze(e,t,r){let i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function $k(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ps(i))return e.createStringLiteral(tU(r,t.fileName))}}function Qze(e,t,r,i,o){return $k(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Qk(e){if(cL(e))return e.initializer;if(_c(e)){let t=e.initializer;return Mc(t,!0)?t.right:void 0}if(np(e))return e.objectAssignmentInitializer;if(Mc(e,!0))return e.right;if(Zm(e))return Qk(e.expression)}function eb(e){if(cL(e))return e.name;if(wg(e)){switch(e.kind){case 303:return eb(e.initializer);case 304:return e.name;case 305:return eb(e.expression)}return}return Mc(e,!0)?eb(e.left):Zm(e)?eb(e.expression):e}function p5(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function zH(e){let t=f5(e);return C.assert(!!t||qv(e),"Invalid property name for binding element."),t}function f5(e){switch(e.kind){case 208:if(e.propertyName){let r=e.propertyName;return Xi(r)?C.failBadSyntaxKind(r):Za(r)&&VSe(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return Xi(r)?C.failBadSyntaxKind(r):Za(r)&&VSe(r.expression)?r.expression:r}break;case 305:return e.name&&Xi(e.name)?C.failBadSyntaxKind(e.name):e.name}let t=eb(e);if(t&&ic(t))return t}function VSe(e){let t=e.kind;return t===11||t===9}function KR(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function BH(e){if(e){let t=e;for(;;){if(Ve(t)||!t.body)return Ve(t)?t:t.name;t=t.body}}}function jSe(e){let t=e.kind;return t===176||t===178}function Zae(e){let t=e.kind;return t===176||t===177||t===178}function GH(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function ese(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function tse(e){return Ky(e)||Wk(e)}function nse(e){return Ve(e)||Vk(e)}function rse(e){return Aae(e)||_H(e)||hH(e)}function ise(e){return Ky(e)||_H(e)||hH(e)}function ose(e){return Ve(e)||Na(e)}function USe(e){let t=e.kind;return t===106||t===112||t===97||S1(e)||Qy(e)}function Zze(e){return e===43}function eBe(e){return e===42||e===44||e===45}function tBe(e){return Zze(e)||eBe(e)}function nBe(e){return e===40||e===41}function rBe(e){return nBe(e)||tBe(e)}function iBe(e){return e===48||e===49||e===50}function VH(e){return iBe(e)||rBe(e)}function oBe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function aBe(e){return oBe(e)||VH(e)}function sBe(e){return e===35||e===37||e===36||e===38}function lBe(e){return sBe(e)||aBe(e)}function cBe(e){return e===51||e===52||e===53}function uBe(e){return cBe(e)||lBe(e)}function dBe(e){return e===56||e===57}function pBe(e){return dBe(e)||uBe(e)}function fBe(e){return e===61||pBe(e)||zv(e)}function mBe(e){return fBe(e)||e===28}function ase(e){return mBe(e.kind)}function m5(e,t,r,i,o,s){let l=new JSe(e,t,r,i,o,s);return u;function u(p,g){let m={value:void 0},b=[UH.enter],T=[p],I=[void 0],R=0;for(;b[R]!==UH.done;)R=b[R](l,R,b,T,I,m,g);return C.assertEqual(R,0),m.value}}function HSe(e){return e===95||e===90}function Zk(e){let t=e.kind;return HSe(t)}function qSe(e){let t=e.kind;return kv(t)&&!HSe(t)}function sse(e,t){if(t!==void 0)return t.length===0?t:dt(e.createNodeArray([],t.hasTrailingComma),t)}function ew(e){var t;let r=e.emitNode.autoGenerate;if(r.flags&4){let i=r.id,o=e,s=o.original;for(;s;){o=s;let l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(Yh(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function XR(e,t){return typeof e=="object"?E0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function _Be(e,t){return typeof e=="string"?e:hBe(e,C.checkDefined(t))}function hBe(e,t){return cS(e)?t(e).slice(1):ol(e)?t(e):Xi(e)?e.escapedText.slice(1):Sr(e)}function E0(e,t,r,i,o){return t=XR(t,o),i=XR(i,o),r=_Be(r,o),`${e?"#":""}${t}${r}${i}`}function jH(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function lse(e,t,r,i,o=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function cse(e,t,r,i,o=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function _5(e){let t=e.expression;for(;;){if(t=Xl(t),bN(t)){t=Ya(t.elements);continue}if(Xk(t)){t=t.right;continue}if(Mc(t,!0)&&ol(t.left))return t;break}}function gBe(e){return Wd(e)&&Xs(e)&&!e.emitNode}function h5(e,t){if(gBe(e))h5(e.expression,t);else if(Xk(e))h5(e.left,t),h5(e.right,t);else if(bN(e))for(let r of e.elements)h5(r,t);else t.push(e)}function use(e){let t=[];return h5(e,t),t}function tw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of KR(e)){let r=eb(t);if(r&&vC(r)&&(r.transformFlags&65536||r.transformFlags&128&&tw(r)))return!0}return!1}var UH,JSe,vBe=A({"src/compiler/factory/utilities.ts"(){"use strict";ia(),(e=>{function t(m,b,T,I,R,M,N){let O=b>0?R[b-1]:void 0;return C.assertEqual(T[b],t),R[b]=m.onEnter(I[b],O,N),T[b]=u(m,t),b}e.enter=t;function r(m,b,T,I,R,M,N){C.assertEqual(T[b],r),C.assertIsDefined(m.onLeft),T[b]=u(m,r);let O=m.onLeft(I[b].left,R[b],I[b]);return O?(g(b,I,O),p(b,T,I,R,O)):b}e.left=r;function i(m,b,T,I,R,M,N){return C.assertEqual(T[b],i),C.assertIsDefined(m.onOperator),T[b]=u(m,i),m.onOperator(I[b].operatorToken,R[b],I[b]),b}e.operator=i;function o(m,b,T,I,R,M,N){C.assertEqual(T[b],o),C.assertIsDefined(m.onRight),T[b]=u(m,o);let O=m.onRight(I[b].right,R[b],I[b]);return O?(g(b,I,O),p(b,T,I,R,O)):b}e.right=o;function s(m,b,T,I,R,M,N){C.assertEqual(T[b],s),T[b]=u(m,s);let O=m.onExit(I[b],R[b]);if(b>0){if(b--,m.foldState){let H=T[b]===s?"right":"left";R[b]=m.foldState(R[b],O,H)}}else M.value=O;return b}e.exit=s;function l(m,b,T,I,R,M,N){return C.assertEqual(T[b],l),b}e.done=l;function u(m,b){switch(b){case t:if(m.onLeft)return r;case r:if(m.onOperator)return i;case i:if(m.onRight)return o;case o:return s;case s:return l;case l:return l;default:C.fail("Invalid state")}}e.nextState=u;function p(m,b,T,I,R){return m++,b[m]=t,T[m]=R,I[m]=void 0,m}function g(m,b,T){if(C.shouldAssert(2))for(;m>=0;)C.assert(b[m]!==T,"Circular traversal detected."),m--}})(UH||(UH={})),JSe=class{constructor(e,t,r,i,o,s){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=o,this.foldState=s}}}});function dt(e,t){return t?gh(e,t.pos,t.end):e}function Cm(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function US(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var yBe=A({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";ia()}});function Xt(e,t){return t&&e(t)}function ji(e,t,r){if(r){if(t)return t(r);for(let i of r){let o=e(i);if(o)return o}}}function HH(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function nw(e){return Ke(e.statements,bBe)||EBe(e)}function bBe(e){return Cm(e)&&SBe(e,95)||tu(e)&&Th(e.moduleReference)||Lc(e)||Ll(e)||Kl(e)?e:void 0}function EBe(e){return e.flags&8388608?KSe(e):void 0}function KSe(e){return TBe(e)?e:Ho(e,KSe)}function SBe(e,t){return Et(e.modifiers,r=>r.kind===t)}function TBe(e){return yN(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function XSe(e,t,r){return ji(t,r,e.typeParameters)||ji(t,r,e.parameters)||Xt(t,e.type)}function YSe(e,t,r){return ji(t,r,e.types)}function $Se(e,t,r){return Xt(t,e.type)}function QSe(e,t,r){return ji(t,r,e.elements)}function ZSe(e,t,r){return Xt(t,e.expression)||Xt(t,e.questionDotToken)||ji(t,r,e.typeArguments)||ji(t,r,e.arguments)}function eTe(e,t,r){return ji(t,r,e.statements)}function tTe(e,t,r){return Xt(t,e.label)}function nTe(e,t,r){return ji(t,r,e.modifiers)||Xt(t,e.name)||ji(t,r,e.typeParameters)||ji(t,r,e.heritageClauses)||ji(t,r,e.members)}function rTe(e,t,r){return ji(t,r,e.elements)}function iTe(e,t,r){return Xt(t,e.propertyName)||Xt(t,e.name)}function oTe(e,t,r){return Xt(t,e.tagName)||ji(t,r,e.typeArguments)||Xt(t,e.attributes)}function CN(e,t,r){return Xt(t,e.type)}function aTe(e,t,r){return Xt(t,e.tagName)||(e.isNameFirst?Xt(t,e.name)||Xt(t,e.typeExpression):Xt(t,e.typeExpression)||Xt(t,e.name))||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function NN(e,t,r){return Xt(t,e.tagName)||Xt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function dse(e,t,r){return Xt(t,e.name)}function YR(e,t,r){return Xt(t,e.tagName)||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function ABe(e,t,r){return Xt(t,e.expression)}function Ho(e,t,r){if(e===void 0||e.kind<=165)return;let i=hTe[e.kind];return i===void 0?void 0:i(e,t,r)}function PN(e,t,r){let i=sTe(e),o=[];for(;o.length=0;--u)i.push(s[u]),o.push(l)}else{let u=t(s,l);if(u){if(u==="skip")continue;return u}if(s.kind>=166)for(let p of sTe(s))i.push(p),o.push(s)}}}function sTe(e){let t=[];return Ho(e,r,r),t;function r(i){t.unshift(i)}}function lTe(e){e.externalModuleIndicator=nw(e)}function rw(e,t,r,i=!1,o){var s,l,u,p;(s=lr)==null||s.push(lr.Phase.Parse,"createSourceFile",{path:e},!0),nl("beforeParse");let g;(l=rd)==null||l.logStartParseSourceFile(e);let{languageVersion:m,setExternalModuleIndicator:b,impliedNodeFormat:T,jsDocParsingMode:I}=typeof r=="object"?r:{languageVersion:r};if(m===100)g=T0.parseSourceFile(e,t,m,void 0,i,6,$a,I);else{let R=T===void 0?b:M=>(M.impliedNodeFormat=T,(b||lTe)(M));g=T0.parseSourceFile(e,t,m,void 0,i,o,R,I)}return(u=rd)==null||u.logStopParseSourceFile(),nl("afterParse"),Yp("Parse","beforeParse","afterParse"),(p=lr)==null||p.pop(),g}function _I(e,t){return T0.parseIsolatedEntityName(e,t)}function iw(e,t){return T0.parseJsonText(e,t)}function ac(e){return e.externalModuleIndicator!==void 0}function qH(e,t,r,i=!1){let o=$H.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function pse(e,t,r){let i=T0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&T0.fixupParentReferences(i.jsDoc),i}function cTe(e,t,r){return T0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Su(e){return JH(e)!==void 0}function JH(e){let t=Wx(e,Ak,!1);if(t)return t;if(Tl(e,".ts")){let r=rc(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function IBe(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,f.resolution_mode_should_be_either_require_or_import)}}function KH(e,t){let r=[];for(let i of Kh(t,0)||et){let o=t.substring(i.pos,i.end);RBe(r,i,o)}e.pragmas=new Map;for(let i of r){if(e.pragmas.has(i.name)){let o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function XH(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{let o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;Ke(gA(r),u=>{let{types:p,lib:g,path:m,["resolution-mode"]:b}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){let T=IBe(b,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...T?{resolutionMode:T}:{}})}else g?l.push({pos:g.pos,end:g.end,fileName:g.value}):m?o.push({pos:m.pos,end:m.end,fileName:m.value}):t(u.range.pos,u.range.end-u.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Ft(gA(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,f.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{Ke(gA(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:C.fail("Unhandled pragma kind")}})}function xBe(e){if(QH.has(e))return QH.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return QH.set(e,t),t}function RBe(e,t,r){let i=t.kind===2&&gTe.exec(r);if(i){let s=i[1].toLowerCase(),l=WM[s];if(!l||!(l.kind&1))return;if(l.args){let u={};for(let p of l.args){let m=xBe(p.name).exec(r);if(!m&&!p.optional)return;if(m){let b=m[2]||m[3];if(p.captureSpan){let T=t.pos+m.index+m[1].length+1;u[p.name]={value:b,pos:T,end:T+b.length}}else u[p.name]=b}}e.push({name:s,args:{arguments:u,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}let o=t.kind===2&&vTe.exec(r);if(o)return uTe(e,t,2,o);if(t.kind===3){let s=/@(\S+)(\s+.*)?$/gim,l;for(;l=s.exec(r);)uTe(e,t,4,l)}}function uTe(e,t,r,i){if(!i)return;let o=i[1].toLowerCase(),s=WM[o];if(!s||!(s.kind&r))return;let l=i[2],u=DBe(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function DBe(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),i={};for(let o=0;onew(_Te||(_Te=lu.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(fTe||(fTe=lu.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(mTe||(mTe=lu.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(pTe||(pTe=lu.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(dTe||(dTe=lu.getNodeConstructor()))(e,-1,-1)},Ah=Rk(1,YH),hTe={166:function(t,r,i){return Xt(r,t.left)||Xt(r,t.right)},168:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.constraint)||Xt(r,t.default)||Xt(r,t.expression)},304:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.equalsToken)||Xt(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Xt(r,t.expression)},169:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.dotDotDotToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)||Xt(r,t.initializer)},172:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.type)||Xt(r,t.initializer)},171:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)||Xt(r,t.initializer)},303:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||Xt(r,t.initializer)},260:function(t,r,i){return Xt(r,t.name)||Xt(r,t.exclamationToken)||Xt(r,t.type)||Xt(r,t.initializer)},208:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.propertyName)||Xt(r,t.name)||Xt(r,t.initializer)},181:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},185:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},184:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},179:XSe,180:XSe,174:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.exclamationToken)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},173:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.questionToken)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)},176:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},177:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},178:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},262:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},218:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.asteriskToken)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.body)},219:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Xt(r,t.type)||Xt(r,t.equalsGreaterThanToken)||Xt(r,t.body)},175:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.body)},183:function(t,r,i){return Xt(r,t.typeName)||ji(r,i,t.typeArguments)},182:function(t,r,i){return Xt(r,t.assertsModifier)||Xt(r,t.parameterName)||Xt(r,t.type)},186:function(t,r,i){return Xt(r,t.exprName)||ji(r,i,t.typeArguments)},187:function(t,r,i){return ji(r,i,t.members)},188:function(t,r,i){return Xt(r,t.elementType)},189:function(t,r,i){return ji(r,i,t.elements)},192:YSe,193:YSe,194:function(t,r,i){return Xt(r,t.checkType)||Xt(r,t.extendsType)||Xt(r,t.trueType)||Xt(r,t.falseType)},195:function(t,r,i){return Xt(r,t.typeParameter)},205:function(t,r,i){return Xt(r,t.argument)||Xt(r,t.attributes)||Xt(r,t.qualifier)||ji(r,i,t.typeArguments)},302:function(t,r,i){return Xt(r,t.assertClause)},196:$Se,198:$Se,199:function(t,r,i){return Xt(r,t.objectType)||Xt(r,t.indexType)},200:function(t,r,i){return Xt(r,t.readonlyToken)||Xt(r,t.typeParameter)||Xt(r,t.nameType)||Xt(r,t.questionToken)||Xt(r,t.type)||ji(r,i,t.members)},201:function(t,r,i){return Xt(r,t.literal)},202:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.name)||Xt(r,t.questionToken)||Xt(r,t.type)},206:QSe,207:QSe,209:function(t,r,i){return ji(r,i,t.elements)},210:function(t,r,i){return ji(r,i,t.properties)},211:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.questionDotToken)||Xt(r,t.name)},212:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.questionDotToken)||Xt(r,t.argumentExpression)},213:ZSe,214:ZSe,215:function(t,r,i){return Xt(r,t.tag)||Xt(r,t.questionDotToken)||ji(r,i,t.typeArguments)||Xt(r,t.template)},216:function(t,r,i){return Xt(r,t.type)||Xt(r,t.expression)},217:function(t,r,i){return Xt(r,t.expression)},220:function(t,r,i){return Xt(r,t.expression)},221:function(t,r,i){return Xt(r,t.expression)},222:function(t,r,i){return Xt(r,t.expression)},224:function(t,r,i){return Xt(r,t.operand)},229:function(t,r,i){return Xt(r,t.asteriskToken)||Xt(r,t.expression)},223:function(t,r,i){return Xt(r,t.expression)},225:function(t,r,i){return Xt(r,t.operand)},226:function(t,r,i){return Xt(r,t.left)||Xt(r,t.operatorToken)||Xt(r,t.right)},234:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.type)},235:function(t,r,i){return Xt(r,t.expression)},238:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.type)},236:function(t,r,i){return Xt(r,t.name)},227:function(t,r,i){return Xt(r,t.condition)||Xt(r,t.questionToken)||Xt(r,t.whenTrue)||Xt(r,t.colonToken)||Xt(r,t.whenFalse)},230:function(t,r,i){return Xt(r,t.expression)},241:eTe,268:eTe,312:function(t,r,i){return ji(r,i,t.statements)||Xt(r,t.endOfFileToken)},243:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.declarationList)},261:function(t,r,i){return ji(r,i,t.declarations)},244:function(t,r,i){return Xt(r,t.expression)},245:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.thenStatement)||Xt(r,t.elseStatement)},246:function(t,r,i){return Xt(r,t.statement)||Xt(r,t.expression)},247:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.statement)},248:function(t,r,i){return Xt(r,t.initializer)||Xt(r,t.condition)||Xt(r,t.incrementor)||Xt(r,t.statement)},249:function(t,r,i){return Xt(r,t.initializer)||Xt(r,t.expression)||Xt(r,t.statement)},250:function(t,r,i){return Xt(r,t.awaitModifier)||Xt(r,t.initializer)||Xt(r,t.expression)||Xt(r,t.statement)},251:tTe,252:tTe,253:function(t,r,i){return Xt(r,t.expression)},254:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.statement)},255:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.caseBlock)},269:function(t,r,i){return ji(r,i,t.clauses)},296:function(t,r,i){return Xt(r,t.expression)||ji(r,i,t.statements)},297:function(t,r,i){return ji(r,i,t.statements)},256:function(t,r,i){return Xt(r,t.label)||Xt(r,t.statement)},257:function(t,r,i){return Xt(r,t.expression)},258:function(t,r,i){return Xt(r,t.tryBlock)||Xt(r,t.catchClause)||Xt(r,t.finallyBlock)},299:function(t,r,i){return Xt(r,t.variableDeclaration)||Xt(r,t.block)},170:function(t,r,i){return Xt(r,t.expression)},263:nTe,231:nTe,264:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.heritageClauses)||ji(r,i,t.members)},265:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.typeParameters)||Xt(r,t.type)},266:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||ji(r,i,t.members)},306:function(t,r,i){return Xt(r,t.name)||Xt(r,t.initializer)},267:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.body)},271:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)||Xt(r,t.moduleReference)},272:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.importClause)||Xt(r,t.moduleSpecifier)||Xt(r,t.attributes)},273:function(t,r,i){return Xt(r,t.name)||Xt(r,t.namedBindings)},300:function(t,r,i){return ji(r,i,t.elements)},301:function(t,r,i){return Xt(r,t.name)||Xt(r,t.value)},270:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.name)},274:function(t,r,i){return Xt(r,t.name)},280:function(t,r,i){return Xt(r,t.name)},275:rTe,279:rTe,278:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.exportClause)||Xt(r,t.moduleSpecifier)||Xt(r,t.attributes)},276:iTe,281:iTe,277:function(t,r,i){return ji(r,i,t.modifiers)||Xt(r,t.expression)},228:function(t,r,i){return Xt(r,t.head)||ji(r,i,t.templateSpans)},239:function(t,r,i){return Xt(r,t.expression)||Xt(r,t.literal)},203:function(t,r,i){return Xt(r,t.head)||ji(r,i,t.templateSpans)},204:function(t,r,i){return Xt(r,t.type)||Xt(r,t.literal)},167:function(t,r,i){return Xt(r,t.expression)},298:function(t,r,i){return ji(r,i,t.types)},233:function(t,r,i){return Xt(r,t.expression)||ji(r,i,t.typeArguments)},283:function(t,r,i){return Xt(r,t.expression)},282:function(t,r,i){return ji(r,i,t.modifiers)},361:function(t,r,i){return ji(r,i,t.elements)},284:function(t,r,i){return Xt(r,t.openingElement)||ji(r,i,t.children)||Xt(r,t.closingElement)},288:function(t,r,i){return Xt(r,t.openingFragment)||ji(r,i,t.children)||Xt(r,t.closingFragment)},285:oTe,286:oTe,292:function(t,r,i){return ji(r,i,t.properties)},291:function(t,r,i){return Xt(r,t.name)||Xt(r,t.initializer)},293:function(t,r,i){return Xt(r,t.expression)},294:function(t,r,i){return Xt(r,t.dotDotDotToken)||Xt(r,t.expression)},287:function(t,r,i){return Xt(r,t.tagName)},295:function(t,r,i){return Xt(r,t.namespace)||Xt(r,t.name)},190:CN,191:CN,316:CN,322:CN,321:CN,323:CN,325:CN,324:function(t,r,i){return ji(r,i,t.parameters)||Xt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:ji(r,i,t.comment))||ji(r,i,t.tags)},354:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.name)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},317:function(t,r,i){return Xt(r,t.name)},318:function(t,r,i){return Xt(r,t.left)||Xt(r,t.right)},348:aTe,355:aTe,337:function(t,r,i){return Xt(r,t.tagName)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},336:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.class)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},335:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.class)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},352:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.constraint)||ji(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},353:function(t,r,i){return Xt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Xt(r,t.typeExpression)||Xt(r,t.fullName)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment)):Xt(r,t.fullName)||Xt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment)))},345:function(t,r,i){return Xt(r,t.tagName)||Xt(r,t.fullName)||Xt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},349:NN,351:NN,350:NN,347:NN,357:NN,356:NN,346:NN,330:function(t,r,i){return Ke(t.typeParameters,r)||Ke(t.parameters,r)||Xt(r,t.type)},331:dse,332:dse,333:dse,329:function(t,r,i){return Ke(t.jsDocPropertyTags,r)},334:YR,339:YR,340:YR,341:YR,342:YR,343:YR,338:YR,344:YR,360:ABe},(e=>{var t=Mv(99,!0),r=40960,i,o,s,l,u;function p(Q){return Qe++,Q}var g={createBaseSourceFileNode:Q=>p(new u(Q,0,0)),createBaseIdentifierNode:Q=>p(new s(Q,0,0)),createBasePrivateIdentifierNode:Q=>p(new l(Q,0,0)),createBaseTokenNode:Q=>p(new o(Q,0,0)),createBaseNode:Q=>p(new i(Q,0,0))},m=Rk(11,g),{createNodeArray:b,createNumericLiteral:T,createStringLiteral:I,createLiteralLikeNode:R,createIdentifier:M,createPrivateIdentifier:N,createToken:O,createArrayLiteralExpression:H,createObjectLiteralExpression:K,createPropertyAccessExpression:Z,createPropertyAccessChain:V,createElementAccessExpression:ue,createElementAccessChain:G,createCallExpression:ne,createCallChain:he,createNewExpression:ye,createParenthesizedExpression:$,createBlock:Y,createVariableStatement:oe,createExpressionStatement:fe,createIfStatement:Ne,createWhileStatement:me,createForStatement:ie,createForOfStatement:ve,createVariableDeclaration:Le,createVariableDeclarationList:He}=m,Ee,Ce,Me,Fe,At,Se,je,at,Bt,yt,Qe,gt,nn,rn,Nn,Xn,_n=!0,Qt=!1;function Yt(Q,Re,Xe,It,Ct=!1,qt,Br,Fi=0){var Pi;if(qt=J3(Q,qt),qt===6){let eo=ho(Q,Re,Xe,It,Ct);return sw(eo,(Pi=eo.statements[0])==null?void 0:Pi.expression,eo.parseDiagnostics,!1,void 0),eo.referencedFiles=et,eo.typeReferenceDirectives=et,eo.libReferenceDirectives=et,eo.amdDependencies=et,eo.hasNoDefaultLib=!1,eo.pragmas=z8,eo}ki(Q,Re,Xe,It,qt,Fi);let gi=nr(Xe,Ct,qt,Br||lTe,Fi);return Ro(),gi}e.parseSourceFile=Yt;function vi(Q,Re){ki("",Q,Re,void 0,1,0),ke();let Xe=te(!0),It=J()===1&&!je.length;return Ro(),It?Xe:void 0}e.parseIsolatedEntityName=vi;function ho(Q,Re,Xe=2,It,Ct=!1){ki(Q,Re,Xe,It,6,0),Ce=Xn,ke();let qt=w(),Br,Fi;if(J()===1)Br=Wo([],qt,qt),Fi=fl();else{let eo;for(;J()!==1;){let es;switch(J()){case 23:es=TE();break;case 112:case 97:case 106:es=fl();break;case 41:Mi(()=>ke()===9&&ke()!==59)?es=ti():es=iv();break;case 9:case 11:if(Mi(()=>ke()!==59)){es=$r();break}default:es=iv();break}eo&&Do(eo)?eo.push(es):eo?eo=[eo,es]:(eo=es,J()!==1&&fn(f.Unexpected_token))}let fs=Do(eo)?on(H(eo),qt):C.checkDefined(eo),Cs=fe(fs);on(Cs,qt),Br=Wo([Cs],qt),Fi=Is(1,f.Unexpected_token)}let Pi=zt(Q,2,6,!1,Br,Fi,Ce,$a);Ct&&tt(Pi),Pi.nodeCount=Qe,Pi.identifierCount=nn,Pi.identifiers=gt,Pi.parseDiagnostics=VA(je,Pi),at&&(Pi.jsDocDiagnostics=VA(at,Pi));let gi=Pi;return Ro(),gi}e.parseJsonText=ho;function ki(Q,Re,Xe,It,Ct,qt){switch(i=lu.getNodeConstructor(),o=lu.getTokenConstructor(),s=lu.getIdentifierConstructor(),l=lu.getPrivateIdentifierConstructor(),u=lu.getSourceFileConstructor(),Ee=va(Q),Me=Re,Fe=Xe,Bt=It,At=Ct,Se=dk(Ct),je=[],rn=0,gt=new Map,nn=0,Qe=0,Ce=0,_n=!0,At){case 1:case 2:Xn=524288;break;case 6:Xn=134742016;break;default:Xn=0;break}Qt=!1,t.setText(Me),t.setOnError(Lt),t.setScriptTarget(Fe),t.setLanguageVariant(Se),t.setScriptKind(At),t.setJSDocParsingMode(qt)}function Ro(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Me=void 0,Fe=void 0,Bt=void 0,At=void 0,Se=void 0,Ce=0,je=void 0,at=void 0,rn=0,gt=void 0,Nn=void 0,_n=!0}function nr(Q,Re,Xe,It,Ct){let qt=Su(Ee);qt&&(Xn|=33554432),Ce=Xn,ke();let Br=na(0,sp);C.assert(J()===1);let Fi=ae(),Pi=xr(fl(),Fi),gi=zt(Ee,Q,Xe,qt,Br,Pi,Ce,It);return KH(gi,Me),XH(gi,eo),gi.commentDirectives=t.getCommentDirectives(),gi.nodeCount=Qe,gi.identifierCount=nn,gi.identifiers=gt,gi.parseDiagnostics=VA(je,gi),gi.jsDocParsingMode=Ct,at&&(gi.jsDocDiagnostics=VA(at,gi)),Re&&tt(gi),gi;function eo(fs,Cs,es){je.push(RR(Ee,Me,fs,Cs,es))}}let qr=!1;function xr(Q,Re){if(!Re)return Q;C.assert(!Q.jsDoc);let Xe=Vi(Tj(Q,Me),It=>X_.parseJSDocComment(Q,It.pos,It.end-It.pos));return Xe.length&&(Q.jsDoc=Xe),qr&&(qr=!1,Q.flags|=536870912),Q}function ln(Q){let Re=Bt,Xe=$H.createSyntaxCursor(Q);Bt={currentNode:eo};let It=[],Ct=je;je=[];let qt=0,Br=Pi(Q.statements,0);for(;Br!==-1;){let fs=Q.statements[qt],Cs=Q.statements[Br];Jr(It,Q.statements,qt,Br),qt=gi(Q.statements,Br);let es=ri(Ct,Y_=>Y_.start>=fs.pos),Wf=es>=0?ri(Ct,Y_=>Y_.start>=Cs.pos,es):-1;es>=0&&Jr(je,Ct,es,Wf>=0?Wf:void 0),Eo(()=>{let Y_=Xn;for(Xn|=65536,t.resetTokenState(Cs.pos),ke();J()!==1;){let Sg=t.getTokenFullStart(),lv=$l(0,sp);if(It.push(lv),Sg===t.getTokenFullStart()&&ke(),qt>=0){let cv=Q.statements[qt];if(lv.end===cv.pos)break;lv.end>cv.pos&&(qt=gi(Q.statements,qt+1))}}Xn=Y_},2),Br=qt>=0?Pi(Q.statements,qt):-1}if(qt>=0){let fs=Q.statements[qt];Jr(It,Q.statements,qt);let Cs=ri(Ct,es=>es.start>=fs.pos);Cs>=0&&Jr(je,Ct,Cs)}return Bt=Re,m.updateSourceFile(Q,dt(b(It),Q.statements));function Fi(fs){return!(fs.flags&65536)&&!!(fs.transformFlags&67108864)}function Pi(fs,Cs){for(let es=Cs;es118}function Po(){return J()===80?!0:J()===127&&xt()||J()===135&&yn()?!1:J()>118}function Dn(Q,Re,Xe=!0){return J()===Q?(Xe&&ke(),!0):(Re?fn(Re):fn(f._0_expected,ma(Q)),!1)}let Fs=Object.keys($M).filter(Q=>Q.length>2);function Yl(Q){if(q1(Q)){q(La(Me,Q.template.pos),Q.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}let Re=Ve(Q)?Sr(Q):void 0;if(!Re||!$p(Re,Fe)){fn(f._0_expected,ma(27));return}let Xe=La(Me,Q.pos);switch(Re){case"const":case"let":case"var":q(Xe,Q.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Fo(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":q(Xe,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Fo(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":Fo(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}let It=QD(Re,Fs,Ct=>Ct)??ds(Re);if(It){q(Xe,Q.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,It);return}J()!==0&&q(Xe,Q.end,f.Unexpected_keyword_or_identifier)}function Fo(Q,Re,Xe){J()===Xe?fn(Re):fn(Q,t.getTokenValue())}function ds(Q){for(let Re of Fs)if(Q.length>Re.length+2&&uo(Q,Re))return`${Re} ${Q.slice(Re.length)}`}function Gs(Q,Re,Xe){if(J()===60&&!t.hasPrecedingLineBreak()){fn(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(J()===21){fn(f.Cannot_start_a_function_call_in_a_type_annotation),ke();return}if(Re&&!sc()){Xe?fn(f._0_expected,ma(27)):fn(f.Expected_for_property_initializer);return}if(!Rl()){if(Xe){fn(f._0_expected,ma(27));return}Yl(Q)}}function hl(Q){return J()===Q?(Dt(),!0):(C.assert(f3(Q)),fn(f._0_expected,ma(Q)),!1)}function uu(Q,Re,Xe,It){if(J()===Re){ke();return}let Ct=fn(f._0_expected,ma(Re));Xe&&Ct&&ka(Ct,RR(Ee,Me,It,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ma(Q),ma(Re)))}function yo(Q){return J()===Q?(ke(),!0):!1}function pa(Q){if(J()===Q)return fl()}function du(Q){if(J()===Q)return Mf()}function Is(Q,Re,Xe){return pa(Q)||Vs(Q,!1,Re||f._0_expected,Xe||ma(Q))}function Pa(Q){let Re=du(Q);return Re||(C.assert(f3(Q)),Vs(Q,!1,f._0_expected,ma(Q)))}function fl(){let Q=w(),Re=J();return ke(),on(O(Re),Q)}function Mf(){let Q=w(),Re=J();return Dt(),on(O(Re),Q)}function sc(){return J()===27?!0:J()===20||J()===1||t.hasPrecedingLineBreak()}function Rl(){return sc()?(J()===27&&ke(),!0):!1}function ll(){return Rl()||Dn(27)}function Wo(Q,Re,Xe,It){let Ct=b(Q,It);return gh(Ct,Re,Xe??t.getTokenFullStart()),Ct}function on(Q,Re,Xe){return gh(Q,Re,Xe??t.getTokenFullStart()),Xn&&(Q.flags|=Xn),Qt&&(Qt=!1,Q.flags|=262144),Q}function Vs(Q,Re,Xe,...It){Re?mn(t.getTokenFullStart(),0,Xe,...It):Xe&&fn(Xe,...It);let Ct=w(),qt=Q===80?M("",void 0):My(Q)?m.createTemplateLiteralLikeNode(Q,"","",void 0):Q===9?T("",void 0):Q===11?I("",void 0):Q===282?m.createMissingDeclaration():O(Q);return on(qt,Ct)}function nu(Q){let Re=gt.get(Q);return Re===void 0&>.set(Q,Re=Q),Re}function pu(Q,Re,Xe){if(Q){nn++;let Fi=w(),Pi=J(),gi=nu(t.getTokenValue()),eo=t.hasExtendedUnicodeEscape();return pe(),on(M(gi,Pi,eo),Fi)}if(J()===81)return fn(Xe||f.Private_identifiers_are_not_allowed_outside_class_bodies),pu(!0);if(J()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return pu(!0);nn++;let It=J()===1,Ct=t.isReservedWord(),qt=t.getTokenText(),Br=Ct?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return Vs(80,It,Re||Br,qt)}function Tp(Q){return pu(Kr(),void 0,Q)}function Ms(Q,Re){return pu(Po(),Q,Re)}function Ic(Q){return pu(id(J()),Q)}function de(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&fn(f.Unicode_escape_sequence_cannot_appear_here),pu(id(J()))}function ee(){return id(J())||J()===11||J()===9}function we(){return id(J())||J()===11}function St(Q){if(J()===11||J()===9){let Re=$r();return Re.text=nu(Re.text),Re}return Q&&J()===23?Tr():J()===81?gr():Ic()}function pn(){return St(!0)}function Tr(){let Q=w();Dn(23);let Re=En(qe);return Dn(24),on(m.createComputedPropertyName(Re),Q)}function gr(){let Q=w(),Re=N(nu(t.getTokenValue()));return ke(),on(Re,Q)}function jr(Q){return J()===Q&&Ci(Lr)}function Ni(){return ke(),t.hasPrecedingLineBreak()?!1:js()}function Lr(){switch(J()){case 87:return ke()===94;case 95:return ke(),J()===90?Mi(gc):J()===156?Mi(El):$o();case 90:return gc();case 126:case 139:case 153:return ke(),js();default:return Ni()}}function $o(){return J()===60||J()!==42&&J()!==130&&J()!==19&&js()}function El(){return ke(),$o()}function Uc(){return kv(J())&&Ci(Lr)}function js(){return J()===23||J()===19||J()===42||J()===26||ee()}function gc(){return ke(),J()===86||J()===100||J()===120||J()===60||J()===128&&Mi(IT)||J()===134&&Mi(xT)}function Ts(Q,Re){if(vc(Q))return!0;switch(Q){case 0:case 1:case 3:return!(J()===27&&Re)&&IE();case 2:return J()===84||J()===90;case 4:return Mi(Ka);case 5:return Mi(bg)||J()===27&&!Re;case 6:return J()===23||ee();case 12:switch(J()){case 23:case 42:case 26:case 25:return!0;default:return ee()}case 18:return ee();case 9:return J()===23||J()===26||ee();case 24:return we();case 7:return J()===19?Mi(Hc):Re?Po()&&!md():$I()&&!md();case 8:return is();case 10:return J()===28||J()===26||is();case 19:return J()===103||J()===87||Po();case 15:switch(J()){case 28:case 25:return!0}case 11:return J()===26||o_();case 16:return U_(!1);case 17:return U_(!0);case 20:case 21:return J()===28||mg();case 22:return D();case 23:return J()===161&&Mi(rD)?!1:id(J());case 13:return id(J())||J()===19;case 14:return!0;case 25:return!0;case 26:return C.fail("ParsingContext.Count used as a context");default:C.assertNever(Q,"Non-exhaustive case in 'isListElement'.")}}function Hc(){if(C.assert(J()===19),ke()===20){let Q=ke();return Q===28||Q===19||Q===96||Q===119}return!0}function ip(){return ke(),Po()}function Oc(){return ke(),id(J())}function lm(){return ke(),Yne(J())}function md(){return J()===119||J()===96?Mi(Pe):!1}function Pe(){return ke(),o_()}function wt(){return ke(),mg()}function qn(Q){if(J()===1)return!0;switch(Q){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return J()===20;case 3:return J()===20||J()===84||J()===90;case 7:return J()===19||J()===96||J()===119;case 8:return So();case 19:return J()===32||J()===21||J()===19||J()===96||J()===119;case 11:return J()===22||J()===27;case 15:case 21:case 10:return J()===24;case 17:case 16:case 18:return J()===22||J()===24;case 20:return J()!==28;case 22:return J()===19||J()===20;case 13:return J()===32||J()===44;case 14:return J()===30&&Mi(Ai);default:return!1}}function So(){return!!(sc()||tv(J())||J()===39)}function Qo(){C.assert(rn,"Missing parsing context");for(let Q=0;Q<26;Q++)if(rn&1<=0)}function Yg(Q){return Q===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ap(){let Q=Wo([],w());return Q.isMissingList=!0,Q}function fg(Q){return!!Q.isMissingList}function Gd(Q,Re,Xe,It){if(Dn(Xe)){let Ct=zu(Q,Re);return Dn(It),Ct}return Ap()}function te(Q,Re){let Xe=w(),It=Q?Ic(Re):Ms(Re);for(;yo(25)&&J()!==30;)It=on(m.createQualifiedName(It,Wt(Q,!1,!0)),Xe);return It}function lt(Q,Re){return on(m.createQualifiedName(Q,Re),Q.pos)}function Wt(Q,Re,Xe){if(t.hasPrecedingLineBreak()&&id(J())&&Mi(Up))return Vs(80,!0,f.Identifier_expected);if(J()===81){let It=gr();return Re?It:Vs(80,!0,f.Identifier_expected)}return Q?Xe?Ic():de():Ms()}function jt(Q){let Re=w(),Xe=[],It;do It=si(Q),Xe.push(It);while(It.literal.kind===17);return Wo(Xe,Re)}function W(Q){let Re=w();return on(m.createTemplateExpression(so(Q),jt(Q)),Re)}function Ae(){let Q=w();return on(m.createTemplateLiteralType(so(!1),st()),Q)}function st(){let Q=w(),Re=[],Xe;do Xe=Ht(),Re.push(Xe);while(Xe.literal.kind===17);return Wo(Re,Q)}function Ht(){let Q=w();return on(m.createTemplateLiteralTypeSpan(yc(),rr(!1)),Q)}function rr(Q){return J()===20?(On(Q),Oa()):Is(18,f._0_expected,ma(20))}function si(Q){let Re=w();return on(m.createTemplateSpan(En(qe),rr(Q)),Re)}function $r(){return wl(J())}function so(Q){!Q&&t.getTokenFlags()&26656&&On(!1);let Re=wl(J());return C.assert(Re.kind===16,"Template head has wrong token kind"),Re}function Oa(){let Q=wl(J());return C.assert(Q.kind===17||Q.kind===18,"Template fragment has wrong token kind"),Q}function Fa(Q){let Re=Q===15||Q===18,Xe=t.getTokenText();return Xe.substring(1,Xe.length-(t.isUnterminated()?0:Re?1:2))}function wl(Q){let Re=w(),Xe=My(Q)?m.createTemplateLiteralLikeNode(Q,t.getTokenValue(),Fa(Q),t.getTokenFlags()&7176):Q===9?T(t.getTokenValue(),t.getNumericLiteralFlags()):Q===11?I(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):_C(Q)?R(Q,t.getTokenValue()):C.fail();return t.hasExtendedUnicodeEscape()&&(Xe.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Xe.isUnterminated=!0),ke(),on(Xe,Re)}function fu(){return te(!0,f.Type_expected)}function xc(){if(!t.hasPrecedingLineBreak()&&Gn()===30)return Gd(20,yc,30,32)}function Ip(){let Q=w();return on(m.createTypeReferenceNode(fu(),xc()),Q)}function Vd(Q){switch(Q.kind){case 183:return Fl(Q.typeName);case 184:case 185:{let{parameters:Re,type:Xe}=Q;return fg(Re)||Vd(Xe)}case 196:return Vd(Q.type);default:return!1}}function cb(Q){return ke(),on(m.createTypePredicateNode(void 0,Q,yc()),Q.pos)}function ps(){let Q=w();return ke(),on(m.createThisTypeNode(),Q)}function Lm(){let Q=w();return ke(),on(m.createJSDocAllType(),Q)}function km(){let Q=w();return ke(),on(m.createJSDocNonNullableType(db(),!1),Q)}function Ji(){let Q=w();return ke(),J()===28||J()===20||J()===22||J()===32||J()===64||J()===52?on(m.createJSDocUnknownType(),Q):on(m.createJSDocNullableType(yc(),!1),Q)}function $g(){let Q=w(),Re=ae();if(Ci(Ff)){let Xe=hn(36),It=Ut(59,!1);return xr(on(m.createJSDocFunctionType(Xe,It),Q),Re)}return on(m.createTypeReferenceNode(Ic(),void 0),Q)}function ry(){let Q=w(),Re;return(J()===110||J()===105)&&(Re=Ic(),Dn(59)),on(m.createParameterDeclaration(void 0,void 0,Re,void 0,wm(),void 0),Q)}function wm(){t.setInJSDocType(!0);let Q=w();if(yo(144)){let It=m.createJSDocNamepathType(void 0);e:for(;;)switch(J()){case 20:case 1:case 28:case 5:break e;default:Dt()}return t.setInJSDocType(!1),on(It,Q)}let Re=yo(26),Xe=pb();return t.setInJSDocType(!1),Re&&(Xe=on(m.createJSDocVariadicType(Xe),Q)),J()===64?(ke(),on(m.createJSDocOptionalType(Xe),Q)):Xe}function mE(){let Q=w();Dn(114);let Re=te(!0),Xe=t.hasPrecedingLineBreak()?void 0:X0();return on(m.createTypeQueryNode(Re,Xe),Q)}function _E(){let Q=w(),Re=Lh(!1,!0),Xe=Ms(),It,Ct;yo(96)&&(mg()||!o_()?It=yc():Ct=mb());let qt=yo(64)?yc():void 0,Br=m.createTypeParameterDeclaration(Re,Xe,It,qt);return Br.expression=Ct,on(Br,Q)}function uf(){if(J()===30)return Gd(19,_E,30,32)}function U_(Q){return J()===26||is()||kv(J())||J()===60||mg(!Q)}function df(Q){let Re=Rr(f.Private_identifiers_cannot_be_used_as_parameters);return vL(Re)===0&&!Et(Q)&&kv(J())&&ke(),Re}function Qg(){return Kr()||J()===23||J()===19}function ze(Q){return kt(Q)}function Ze(Q){return kt(Q,!1)}function kt(Q,Re=!0){let Xe=w(),It=ae(),Ct=Q?le(()=>Lh(!0)):We(()=>Lh(!0));if(J()===110){let Pi=m.createParameterDeclaration(Ct,void 0,pu(!0),void 0,oy(),void 0),gi=Xc(Ct);return gi&&Oe(gi,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),xr(on(Pi,Xe),It)}let qt=_n;_n=!1;let Br=pa(26);if(!Re&&!Qg())return;let Fi=xr(on(m.createParameterDeclaration(Ct,Br,df(Ct),pa(58),oy(),a_()),Xe),It);return _n=qt,Fi}function Ut(Q,Re){if(gn(Q,Re))return Ue(pb)}function gn(Q,Re){return Q===39?(Dn(Q),!0):yo(59)?!0:Re&&J()===39?(fn(f._0_expected,ma(59)),ke(),!0):!1}function Yn(Q,Re){let Xe=xt(),It=yn();bi(!!(Q&1)),No(!!(Q&2));let Ct=Q&32?zu(17,ry):zu(16,()=>Re?ze(It):Ze(It));return bi(Xe),No(It),Ct}function hn(Q){if(!Dn(21))return Ap();let Re=Yn(Q,!0);return Dn(22),Re}function $n(){yo(28)||ll()}function hi(Q){let Re=w(),Xe=ae();Q===180&&Dn(105);let It=uf(),Ct=hn(4),qt=Ut(59,!0);$n();let Br=Q===179?m.createCallSignature(It,Ct,qt):m.createConstructSignature(It,Ct,qt);return xr(on(Br,Re),Xe)}function ur(){return J()===23&&Mi(oi)}function oi(){if(ke(),J()===26||J()===24)return!0;if(kv(J())){if(ke(),Po())return!0}else if(Po())ke();else return!1;return J()===59||J()===28?!0:J()!==58?!1:(ke(),J()===59||J()===28||J()===24)}function mr(Q,Re,Xe){let It=Gd(16,()=>ze(!1),23,24),Ct=oy();$n();let qt=m.createIndexSignature(Xe,It,Ct);return xr(on(qt,Q),Re)}function Zo(Q,Re,Xe){let It=pn(),Ct=pa(58),qt;if(J()===21||J()===30){let Br=uf(),Fi=hn(4),Pi=Ut(59,!0);qt=m.createMethodSignature(Xe,It,Ct,Br,Fi,Pi)}else{let Br=oy();qt=m.createPropertySignature(Xe,It,Ct,Br),J()===64&&(qt.initializer=a_())}return $n(),xr(on(qt,Q),Re)}function Ka(){if(J()===21||J()===30||J()===139||J()===153)return!0;let Q=!1;for(;kv(J());)Q=!0,ke();return J()===23?!0:(ee()&&(Q=!0,ke()),Q?J()===21||J()===30||J()===58||J()===59||J()===28||sc():!1)}function Qu(){if(J()===21||J()===30)return hi(179);if(J()===105&&Mi(mu))return hi(180);let Q=w(),Re=ae(),Xe=Lh(!1);return jr(139)?av(Q,Re,Xe,177,4):jr(153)?av(Q,Re,Xe,178,4):ur()?mr(Q,Re,Xe):Zo(Q,Re,Xe)}function mu(){return ke(),J()===21||J()===30}function Zg(){return ke()===25}function w0(){switch(ke()){case 21:case 30:case 25:return!0}return!1}function VI(){let Q=w();return on(m.createTypeLiteralNode(O0()),Q)}function O0(){let Q;return Dn(19)?(Q=na(4,Qu),Dn(20)):Q=Ap(),Q}function j2(){return ke(),J()===40||J()===41?ke()===148:(J()===148&&ke(),J()===23&&ip()&&ke()===103)}function U2(){let Q=w(),Re=Ic();Dn(103);let Xe=yc();return on(m.createTypeParameterDeclaration(void 0,Re,Xe,void 0),Q)}function H2(){let Q=w();Dn(19);let Re;(J()===148||J()===40||J()===41)&&(Re=fl(),Re.kind!==148&&Dn(148)),Dn(23);let Xe=U2(),It=yo(130)?yc():void 0;Dn(24);let Ct;(J()===58||J()===40||J()===41)&&(Ct=fl(),Ct.kind!==58&&Dn(58));let qt=oy();ll();let Br=na(4,Qu);return Dn(20),on(m.createMappedTypeNode(Re,Xe,It,Ct,qt,Br),Q)}function lT(){let Q=w();if(yo(26))return on(m.createRestTypeNode(yc()),Q);let Re=yc();if(VR(Re)&&Re.pos===Re.type.pos){let Xe=m.createOptionalTypeNode(Re.type);return dt(Xe,Re),Xe.flags=Re.flags,Xe}return Re}function hE(){return ke()===59||J()===58&&ke()===59}function jI(){return J()===26?id(ke())&&hE():id(J())&&hE()}function q2(){if(Mi(jI)){let Q=w(),Re=ae(),Xe=pa(26),It=Ic(),Ct=pa(58);Dn(59);let qt=lT(),Br=m.createNamedTupleMember(Xe,It,Ct,qt);return xr(on(Br,Q),Re)}return lT()}function UI(){let Q=w();return on(m.createTupleTypeNode(Gd(21,q2,23,24)),Q)}function HI(){let Q=w();Dn(21);let Re=yc();return Dn(22),on(m.createParenthesizedType(Re),Q)}function qI(){let Q;if(J()===128){let Re=w();ke();let Xe=on(O(128),Re);Q=Wo([Xe],Re)}return Q}function JI(){let Q=w(),Re=ae(),Xe=qI(),It=yo(105);C.assert(!Xe||It,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let Ct=uf(),qt=hn(4),Br=Ut(39,!1),Fi=It?m.createConstructorTypeNode(Xe,Ct,qt,Br):m.createFunctionTypeNode(Ct,qt,Br);return xr(on(Fi,Q),Re)}function cT(){let Q=fl();return J()===25?void 0:Q}function KI(Q){let Re=w();Q&&ke();let Xe=J()===112||J()===97||J()===106?fl():wl(J());return Q&&(Xe=on(m.createPrefixUnaryExpression(41,Xe),Re)),on(m.createLiteralTypeNode(Xe),Re)}function gE(){return ke(),J()===102}function vE(){Ce|=4194304;let Q=w(),Re=yo(114);Dn(102),Dn(21);let Xe=yc(),It;if(yo(28)){let Br=t.getTokenStart();Dn(19);let Fi=J();if(Fi===118||Fi===132?ke():fn(f._0_expected,ma(118)),Dn(59),It=Ab(Fi,!0),!Dn(20)){let Pi=Zs(je);Pi&&Pi.code===f._0_expected.code&&ka(Pi,RR(Ee,Me,Br,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Dn(22);let Ct=yo(25)?fu():void 0,qt=xc();return on(m.createImportTypeNode(Xe,It,Ct,qt,Re),Q)}function ub(){return ke(),J()===9||J()===10}function db(){switch(J()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ci(cT)||Ip();case 67:t.reScanAsteriskEqualsToken();case 42:return Lm();case 61:t.reScanQuestionToken();case 58:return Ji();case 100:return $g();case 54:return km();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return KI();case 41:return Mi(ub)?KI(!0):Ip();case 116:return fl();case 110:{let Q=ps();return J()===142&&!t.hasPrecedingLineBreak()?cb(Q):Q}case 114:return Mi(gE)?vE():mE();case 19:return Mi(j2)?H2():VI();case 23:return UI();case 21:return HI();case 102:return vE();case 131:return Mi(Up)?YI():Ip();case 16:return Ae();default:return Ip()}}function mg(Q){switch(J()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!Q;case 41:return!Q&&Mi(ub);case 21:return!Q&&Mi(F0);default:return Po()}}function F0(){return ke(),J()===22||U_(!1)||mg()}function ns(){let Q=w(),Re=db();for(;!t.hasPrecedingLineBreak();)switch(J()){case 54:ke(),Re=on(m.createJSDocNonNullableType(Re,!0),Q);break;case 58:if(Mi(wt))return Re;ke(),Re=on(m.createJSDocNullableType(Re,!0),Q);break;case 23:if(Dn(23),mg()){let Xe=yc();Dn(24),Re=on(m.createIndexedAccessTypeNode(Re,Xe),Q)}else Dn(24),Re=on(m.createArrayTypeNode(Re),Q);break;default:return Re}return Re}function uT(Q){let Re=w();return Dn(Q),on(m.createTypeOperatorNode(Q,Ch()),Re)}function J2(){if(yo(96)){let Q=mt(yc);if(ht()||J()!==58)return Q}}function W0(){let Q=w(),Re=Ms(),Xe=Ci(J2),It=m.createTypeParameterDeclaration(void 0,Re,Xe);return on(It,Q)}function ev(){let Q=w();return Dn(140),on(m.createInferTypeNode(W0()),Q)}function Ch(){let Q=J();switch(Q){case 143:case 158:case 148:return uT(Q);case 140:return ev()}return Ue(ns)}function kf(Q){if(dT()){let Re=JI(),Xe;return bh(Re)?Xe=Q?f.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Xe=Q?f.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Oe(Re,Xe),Re}}function jd(Q,Re,Xe){let It=w(),Ct=Q===52,qt=yo(Q),Br=qt&&kf(Ct)||Re();if(J()===Q||qt){let Fi=[Br];for(;yo(Q);)Fi.push(kf(Ct)||Re());Br=on(Xe(Wo(Fi,It)),It)}return Br}function xp(){return jd(51,Ch,m.createIntersectionTypeNode)}function op(){return jd(52,xp,m.createUnionTypeNode)}function iy(){return ke(),J()===105}function dT(){return J()===30||J()===21&&Mi(XI)?!0:J()===105||J()===128&&Mi(iy)}function K2(){if(kv(J())&&Lh(!1),Po()||J()===110)return ke(),!0;if(J()===23||J()===19){let Q=je.length;return Rr(),Q===je.length}return!1}function XI(){return ke(),!!(J()===22||J()===26||K2()&&(J()===59||J()===28||J()===58||J()===64||J()===22&&(ke(),J()===39)))}function pb(){let Q=w(),Re=Po()&&Ci(z0),Xe=yc();return Re?on(m.createTypePredicateNode(void 0,Re,Xe),Q):Xe}function z0(){let Q=Ms();if(J()===142&&!t.hasPrecedingLineBreak())return ke(),Q}function YI(){let Q=w(),Re=Is(131),Xe=J()===110?ps():Ms(),It=yo(142)?yc():void 0;return on(m.createTypePredicateNode(Re,Xe,It),Q)}function yc(){if(Xn&81920)return _a(81920,yc);if(dT())return JI();let Q=w(),Re=op();if(!ht()&&!t.hasPrecedingLineBreak()&&yo(96)){let Xe=mt(yc);Dn(58);let It=Ue(yc);Dn(59);let Ct=Ue(yc);return on(m.createConditionalTypeNode(Re,Xe,It,Ct),Q)}return Re}function oy(){return yo(59)?yc():void 0}function $I(){switch(J()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Mi(w0);default:return Po()}}function o_(){if($I())return!0;switch(J()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return l_()?!0:Po()}}function pT(){return J()!==19&&J()!==100&&J()!==86&&J()!==60&&o_()}function qe(){let Q=Vt();Q&&ro(!1);let Re=w(),Xe=_u(!0),It;for(;It=pa(28);)Xe=yE(Xe,It,_u(!0),Re);return Q&&ro(!0),Xe}function a_(){return yo(64)?_u(!0):void 0}function _u(Q){if(B0())return fb();let Re=sy(Q)||fT(Q);if(Re)return Re;let Xe=w(),It=ae(),Ct=um(0);return Ct.kind===80&&J()===39?ay(Xe,Ct,Q,It,void 0):Zd(Ct)&&zv(Kt())?yE(Ct,fl(),_u(Q),Xe):cm(Ct,Xe,Q)}function B0(){return J()===127?xt()?!0:Mi(Us):!1}function QI(){return ke(),!t.hasPrecedingLineBreak()&&Po()}function fb(){let Q=w();return ke(),!t.hasPrecedingLineBreak()&&(J()===42||o_())?on(m.createYieldExpression(pa(42),_u(!0)),Q):on(m.createYieldExpression(void 0,void 0),Q)}function ay(Q,Re,Xe,It,Ct){C.assert(J()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let qt=m.createParameterDeclaration(void 0,void 0,Re,void 0,void 0,void 0);on(qt,Re.pos);let Br=Wo([qt],qt.pos,qt.end),Fi=Is(39),Pi=_T(!!Ct,Xe),gi=m.createArrowFunction(Ct,void 0,Br,void 0,Fi,Pi);return xr(on(gi,Q),It)}function sy(Q){let Re=MP();if(Re!==0)return Re===1?G0(!0,!0):Ci(()=>s_(Q))}function MP(){return J()===21||J()===30||J()===134?Mi(Xa):J()===39?1:0}function Xa(){if(J()===134&&(ke(),t.hasPrecedingLineBreak()||J()!==21&&J()!==30))return 0;let Q=J(),Re=ke();if(Q===21){if(Re===22)switch(ke()){case 39:case 59:case 19:return 1;default:return 0}if(Re===23||Re===19)return 2;if(Re===26)return 1;if(kv(Re)&&Re!==134&&Mi(ip))return ke()===130?0:1;if(!Po()&&Re!==110)return 0;switch(ke()){case 59:return 1;case 58:return ke(),J()===59||J()===28||J()===64||J()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return C.assert(Q===30),!Po()&&J()!==87?0:Se===1?Mi(()=>{yo(87);let It=ke();if(It===96)switch(ke()){case 64:case 32:case 44:return!1;default:return!0}else if(It===28||It===64)return!0;return!1})?1:0:2}function s_(Q){let Re=t.getTokenStart();if(Nn?.has(Re))return;let Xe=G0(!1,Q);return Xe||(Nn||(Nn=new Set)).add(Re),Xe}function fT(Q){if(J()===134&&Mi(mT)===1){let Re=w(),Xe=ae(),It=_f(),Ct=um(0);return ay(Re,Ct,Q,Xe,It)}}function mT(){if(J()===134){if(ke(),t.hasPrecedingLineBreak()||J()===39)return 0;let Q=um(0);if(!t.hasPrecedingLineBreak()&&Q.kind===80&&J()===39)return 1}return 0}function G0(Q,Re){let Xe=w(),It=ae(),Ct=_f(),qt=Et(Ct,hN)?2:0,Br=uf(),Fi;if(Dn(21)){if(Q)Fi=Yn(qt,Q);else{let Sg=Yn(qt,Q);if(!Sg)return;Fi=Sg}if(!Dn(22)&&!Q)return}else{if(!Q)return;Fi=Ap()}let Pi=J()===59,gi=Ut(59,!1);if(gi&&!Q&&Vd(gi))return;let eo=gi;for(;eo?.kind===196;)eo=eo.type;let fs=eo&&jR(eo);if(!Q&&J()!==39&&(fs||J()!==19))return;let Cs=J(),es=Is(39),Wf=Cs===39||Cs===19?_T(Et(Ct,hN),Re):Ms();if(!Re&&Pi&&J()!==59)return;let Y_=m.createArrowFunction(Ct,Br,Fi,gi,es,Wf);return xr(on(Y_,Xe),It)}function _T(Q,Re){if(J()===19)return vb(Q?2:0);if(J()!==27&&J()!==100&&J()!==86&&IE()&&!pT())return vb(16|(Q?2:0));let Xe=_n;_n=!1;let It=Q?le(()=>_u(Re)):We(()=>_u(Re));return _n=Xe,It}function cm(Q,Re,Xe){let It=pa(58);if(!It)return Q;let Ct;return on(m.createConditionalExpression(Q,It,_a(r,()=>_u(!1)),Ct=Is(59),Xf(Ct)?_u(Xe):Vs(80,!1,f._0_expected,ma(59))),Re)}function um(Q){let Re=w(),Xe=mb();return ZI(Q,Xe,Re)}function tv(Q){return Q===103||Q===165}function ZI(Q,Re,Xe){for(;;){Kt();let It=nk(J());if(!(J()===43?It>=Q:It>Q)||J()===103&&Ye())break;if(J()===130||J()===152){if(t.hasPrecedingLineBreak())break;{let qt=J();ke(),Re=qt===152?X2(Re,yc()):$i(Re,yc())}}else Re=yE(Re,fl(),um(It),Xe)}return Re}function l_(){return Ye()&&J()===103?!1:nk(J())>0}function X2(Q,Re){return on(m.createSatisfiesExpression(Q,Re),Q.pos)}function yE(Q,Re,Xe,It){return on(m.createBinaryExpression(Q,Re,Xe),It)}function $i(Q,Re){return on(m.createAsExpression(Q,Re),Q.pos)}function ti(){let Q=w();return on(m.createPrefixUnaryExpression(J(),Ge(vl)),Q)}function Nh(){let Q=w();return on(m.createDeleteExpression(Ge(vl)),Q)}function Ud(){let Q=w();return on(m.createTypeOfExpression(Ge(vl)),Q)}function LP(){let Q=w();return on(m.createVoidExpression(Ge(vl)),Q)}function nv(){return J()===135?yn()?!0:Mi(Us):!1}function kP(){let Q=w();return on(m.createAwaitExpression(Ge(vl)),Q)}function mb(){if(Vp()){let Xe=w(),It=_g();return J()===43?ZI(nk(J()),It,Xe):It}let Q=J(),Re=vl();if(J()===43){let Xe=La(Me,Re.pos),{end:It}=Re;Re.kind===216?q(Xe,It,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(C.assert(f3(Q)),q(Xe,It,f.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,ma(Q)))}return Re}function vl(){switch(J()){case 40:case 41:case 55:case 54:return ti();case 91:return Nh();case 114:return Ud();case 116:return LP();case 30:return Se===1?rv(!0,void 0,void 0,!0):Fm();case 135:if(nv())return kP();default:return _g()}}function Vp(){switch(J()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Se!==1)return!1;default:return!0}}function _g(){if(J()===46||J()===47){let Re=w();return on(m.createPrefixUnaryExpression(J(),Ge(dm)),Re)}else if(Se===1&&J()===30&&Mi(lm))return rv(!0);let Q=dm();if(C.assert(Zd(Q)),(J()===46||J()===47)&&!t.hasPrecedingLineBreak()){let Re=J();return ke(),on(m.createPostfixUnaryExpression(Q,Re),Q.pos)}return Q}function dm(){let Q=w(),Re;return J()===102?Mi(mu)?(Ce|=4194304,Re=fl()):Mi(Zg)?(ke(),ke(),Re=on(m.createMetaProperty(102,Ic()),Q),Ce|=8388608):Re=_b():Re=J()===108?Om():_b(),cy(Q,Re)}function _b(){let Q=w(),Re=V0();return ru(Q,Re,!0)}function Om(){let Q=w(),Re=fl();if(J()===30){let Xe=w(),It=Ci(dr);It!==void 0&&(q(Xe,w(),f.super_may_not_use_type_arguments),io()||(Re=m.createExpressionWithTypeArguments(Re,It)))}return J()===21||J()===25||J()===23?Re:(Is(25,f.super_must_be_followed_by_an_argument_list_or_member_access),on(Z(Re,Wt(!0,!0,!0)),Q))}function rv(Q,Re,Xe,It=!1){let Ct=w(),qt=gg(Q),Br;if(qt.kind===286){let Fi=hg(qt),Pi,gi=Fi[Fi.length-1];if(gi?.kind===284&&!S0(gi.openingElement.tagName,gi.closingElement.tagName)&&S0(qt.tagName,gi.closingElement.tagName)){let eo=gi.children.end,fs=on(m.createJsxElement(gi.openingElement,gi.children,on(m.createJsxClosingElement(on(M(""),eo,eo)),eo,eo)),gi.openingElement.pos,eo);Fi=Wo([...Fi.slice(0,Fi.length-1),fs],Fi.pos,eo),Pi=gi.closingElement}else Pi=EE(qt,Q),S0(qt.tagName,Pi.tagName)||(Xe&&w_(Xe)&&S0(Pi.tagName,Xe.tagName)?Oe(qt.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,EC(Me,qt.tagName)):Oe(Pi.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,EC(Me,qt.tagName)));Br=on(m.createJsxElement(qt,Fi,Pi),Ct)}else qt.kind===289?Br=on(m.createJsxFragment(qt,hg(qt),vT(Q)),Ct):(C.assert(qt.kind===285),Br=qt);if(!It&&Q&&J()===30){let Fi=typeof Re>"u"?Br.pos:Re,Pi=Ci(()=>rv(!0,Fi));if(Pi){let gi=Vs(28,!1);return rN(gi,Pi.pos,0),q(La(Me,Fi),Pi.end,f.JSX_expressions_must_have_one_parent_element),on(m.createBinaryExpression(Br,gi,Pi),Ct)}}return Br}function bE(){let Q=w(),Re=m.createJsxText(t.getTokenValue(),yt===13);return yt=t.scanJsxToken(),on(Re,Q)}function hT(Q,Re){switch(Re){case 1:if(dI(Q))Oe(Q,f.JSX_fragment_has_no_corresponding_closing_tag);else{let Xe=Q.tagName,It=Math.min(La(Me,Xe.pos),Xe.end);q(It,Xe.end,f.JSX_element_0_has_no_corresponding_closing_tag,EC(Me,Q.tagName))}return;case 31:case 7:return;case 12:case 13:return bE();case 19:return Y2(!1);case 30:return rv(!1,void 0,Q);default:return C.assertNever(Re)}}function hg(Q){let Re=[],Xe=w(),It=rn;for(rn|=16384;;){let Ct=hT(Q,yt=t.reScanJsxToken());if(!Ct||(Re.push(Ct),w_(Q)&&Ct?.kind===284&&!S0(Ct.openingElement.tagName,Ct.closingElement.tagName)&&S0(Q.tagName,Ct.closingElement.tagName)))break}return rn=It,Wo(Re,Xe)}function ex(){let Q=w();return on(m.createJsxAttributes(na(13,$2)),Q)}function gg(Q){let Re=w();if(Dn(30),J()===32)return or(),on(m.createJsxOpeningFragment(),Re);let Xe=H_(),It=Xn&524288?void 0:X0(),Ct=ex(),qt;return J()===32?(or(),qt=m.createJsxOpeningElement(Xe,It,Ct)):(Dn(44),Dn(32,void 0,!1)&&(Q?ke():or()),qt=m.createJsxSelfClosingElement(Xe,It,Ct)),on(qt,Re)}function H_(){let Q=w(),Re=ly();if(e_(Re))return Re;let Xe=Re;for(;yo(25);)Xe=on(Z(Xe,Wt(!0,!1,!1)),Q);return Xe}function ly(){let Q=w();Di();let Re=J()===110,Xe=de();return yo(59)?(Di(),on(m.createJsxNamespacedName(Xe,de()),Q)):Re?on(m.createToken(110),Q):Xe}function Y2(Q){let Re=w();if(!Dn(19))return;let Xe,It;return J()!==20&&(Q||(Xe=pa(26)),It=qe()),Q?Dn(20):Dn(20,void 0,!1)&&or(),on(m.createJsxExpression(Xe,It),Re)}function $2(){if(J()===19)return $s();let Q=w();return on(m.createJsxAttribute(gT(),Q2()),Q)}function Q2(){if(J()===64){if(Vr()===11)return $r();if(J()===19)return Y2(!0);if(J()===30)return rv(!0);fn(f.or_JSX_element_expected)}}function gT(){let Q=w();Di();let Re=de();return yo(59)?(Di(),on(m.createJsxNamespacedName(Re,de()),Q)):Re}function $s(){let Q=w();Dn(19),Dn(26);let Re=qe();return Dn(20),on(m.createJsxSpreadAttribute(Re),Q)}function EE(Q,Re){let Xe=w();Dn(31);let It=H_();return Dn(32,void 0,!1)&&(Re||!S0(Q.tagName,It)?ke():or()),on(m.createJsxClosingElement(It),Xe)}function vT(Q){let Re=w();return Dn(31),Dn(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(Q?ke():or()),on(m.createJsxJsxClosingFragment(),Re)}function Fm(){C.assert(Se!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let Q=w();Dn(30);let Re=yc();Dn(32);let Xe=vl();return on(m.createTypeAssertion(Re,Xe),Q)}function hb(){return ke(),id(J())||J()===23||io()}function Z2(){return J()===29&&Mi(hb)}function yT(Q){if(Q.flags&64)return!0;if(lI(Q)){let Re=Q.expression;for(;lI(Re)&&!(Re.flags&64);)Re=Re.expression;if(Re.flags&64){for(;lI(Q);)Q.flags|=64,Q=Q.expression;return!0}}return!1}function wP(Q,Re,Xe){let It=Wt(!0,!0,!0),Ct=Xe||yT(Re),qt=Ct?V(Re,Xe,It):Z(Re,It);if(Ct&&Xi(qt.name)&&Oe(qt.name,f.An_optional_chain_cannot_contain_private_identifiers),Hv(Re)&&Re.typeArguments){let Br=Re.typeArguments.pos-1,Fi=La(Me,Re.typeArguments.end)+1;q(Br,Fi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return on(qt,Q)}function vr(Q,Re,Xe){let It;if(J()===24)It=Vs(80,!0,f.An_element_access_expression_should_take_an_argument);else{let qt=En(qe);Qp(qt)&&(qt.text=nu(qt.text)),It=qt}Dn(24);let Ct=Xe||yT(Re)?G(Re,Xe,It):ue(Re,It);return on(Ct,Q)}function ru(Q,Re,Xe){for(;;){let It,Ct=!1;if(Xe&&Z2()?(It=Is(29),Ct=id(J())):Ct=yo(25),Ct){Re=wP(Q,Re,It);continue}if((It||!Vt())&&yo(23)){Re=vr(Q,Re,It);continue}if(io()){Re=!It&&Re.kind===233?pf(Q,Re.expression,It,Re.typeArguments):pf(Q,Re,It,void 0);continue}if(!It){if(J()===54&&!t.hasPrecedingLineBreak()){ke(),Re=on(m.createNonNullExpression(Re),Q);continue}let qt=Ci(dr);if(qt){Re=on(m.createExpressionWithTypeArguments(Re,qt),Q);continue}}return Re}}function io(){return J()===15||J()===16}function pf(Q,Re,Xe,It){let Ct=m.createTaggedTemplateExpression(Re,It,J()===15?(On(!0),$r()):W(!0));return(Xe||Re.flags&64)&&(Ct.flags|=64),Ct.questionDotToken=Xe,on(Ct,Q)}function cy(Q,Re){for(;;){Re=ru(Q,Re,!0);let Xe,It=pa(29);if(It&&(Xe=Ci(dr),io())){Re=pf(Q,Re,It,Xe);continue}if(Xe||J()===21){!It&&Re.kind===233&&(Xe=Re.typeArguments,Re=Re.expression);let Ct=q_(),qt=It||yT(Re)?he(Re,It,Xe,Ct):ne(Re,Xe,Ct);Re=on(qt,Q);continue}if(It){let Ct=Vs(80,!1,f.Identifier_expected);Re=on(V(Re,It,Ct),Q)}break}return Re}function q_(){Dn(21);let Q=zu(11,SE);return Dn(22),Q}function dr(){if(Xn&524288||Gn()!==30)return;ke();let Q=zu(20,yc);if(Kt()===32)return ke(),Q&&bT()?Q:void 0}function bT(){switch(J()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||l_()||!o_()}function V0(){switch(J()){case 15:t.getTokenFlags()&26656&&On(!1);case 9:case 10:case 11:return $r();case 110:case 108:case 106:case 112:case 97:return fl();case 21:return Jc();case 23:return TE();case 19:return iv();case 134:if(!Mi(xT))break;return ET();case 60:return K0();case 86:return sx();case 100:return ET();case 105:return j0();case 44:case 69:if(Tn()===14)return $r();break;case 16:return W(!1);case 81:return gr()}return Ms(f.Expression_expected)}function Jc(){let Q=w(),Re=ae();Dn(21);let Xe=En(qe);return Dn(22),xr(on($(Xe),Q),Re)}function Ph(){let Q=w();Dn(26);let Re=_u(!0);return on(m.createSpreadElement(Re),Q)}function Wm(){return J()===26?Ph():J()===28?on(m.createOmittedExpression(),w()):_u(!0)}function SE(){return _a(r,Wm)}function TE(){let Q=w(),Re=t.getTokenStart(),Xe=Dn(23),It=t.hasPrecedingLineBreak(),Ct=zu(15,Wm);return uu(23,24,Xe,Re),on(H(Ct,It),Q)}function gb(){let Q=w(),Re=ae();if(pa(26)){let eo=_u(!0);return xr(on(m.createSpreadAssignment(eo),Q),Re)}let Xe=Lh(!0);if(jr(139))return av(Q,Re,Xe,177,0);if(jr(153))return av(Q,Re,Xe,178,0);let It=pa(42),Ct=Po(),qt=pn(),Br=pa(58),Fi=pa(54);if(It||J()===21||J()===30)return c_(Q,Re,Xe,It,qt,Br,Fi);let Pi;if(Ct&&J()!==59){let eo=pa(64),fs=eo?En(()=>_u(!0)):void 0;Pi=m.createShorthandPropertyAssignment(qt,fs),Pi.equalsToken=eo}else{Dn(59);let eo=En(()=>_u(!0));Pi=m.createPropertyAssignment(qt,eo)}return Pi.modifiers=Xe,Pi.questionToken=Br,Pi.exclamationToken=Fi,xr(on(Pi,Q),Re)}function iv(){let Q=w(),Re=t.getTokenStart(),Xe=Dn(19),It=t.hasPrecedingLineBreak(),Ct=zu(12,gb,!0);return uu(19,20,Xe,Re),on(K(Ct,It),Q)}function ET(){let Q=Vt();ro(!1);let Re=w(),Xe=ae(),It=Lh(!1);Dn(100);let Ct=pa(42),qt=Ct?1:0,Br=Et(It,hN)?2:0,Fi=qt&&Br?pt(zm):qt?ft(zm):Br?le(zm):zm(),Pi=uf(),gi=hn(qt|Br),eo=Ut(59,!1),fs=vb(qt|Br);ro(Q);let Cs=m.createFunctionExpression(It,Ct,Fi,Pi,gi,eo,fs);return xr(on(Cs,Re),Xe)}function zm(){return Kr()?Tp():void 0}function j0(){let Q=w();if(Dn(105),yo(25)){let qt=Ic();return on(m.createMetaProperty(105,qt),Q)}let Re=w(),Xe=ru(Re,V0(),!1),It;Xe.kind===233&&(It=Xe.typeArguments,Xe=Xe.expression),J()===29&&fn(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,EC(Me,Xe));let Ct=J()===21?q_():void 0;return on(ye(Xe,It,Ct),Q)}function vg(Q,Re){let Xe=w(),It=ae(),Ct=t.getTokenStart(),qt=Dn(19,Re);if(qt||Q){let Br=t.hasPrecedingLineBreak(),Fi=na(1,sp);uu(19,20,qt,Ct);let Pi=xr(on(Y(Fi,Br),Xe),It);return J()===64&&(fn(f.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),ke()),Pi}else{let Br=Ap();return xr(on(Y(Br,void 0),Xe),It)}}function vb(Q,Re){let Xe=xt();bi(!!(Q&1));let It=yn();No(!!(Q&2));let Ct=_n;_n=!1;let qt=Vt();qt&&ro(!1);let Br=vg(!!(Q&16),Re);return qt&&ro(!0),_n=Ct,bi(Xe),No(It),Br}function tx(){let Q=w(),Re=ae();return Dn(27),xr(on(m.createEmptyStatement(),Q),Re)}function U0(){let Q=w(),Re=ae();Dn(101);let Xe=t.getTokenStart(),It=Dn(21),Ct=En(qe);uu(21,22,It,Xe);let qt=sp(),Br=yo(93)?sp():void 0;return xr(on(Ne(Ct,qt,Br),Q),Re)}function eD(){let Q=w(),Re=ae();Dn(92);let Xe=sp();Dn(117);let It=t.getTokenStart(),Ct=Dn(21),qt=En(qe);return uu(21,22,Ct,It),yo(27),xr(on(m.createDoStatement(Xe,qt),Q),Re)}function AE(){let Q=w(),Re=ae();Dn(117);let Xe=t.getTokenStart(),It=Dn(21),Ct=En(qe);uu(21,22,It,Xe);let qt=sp();return xr(on(me(Ct,qt),Q),Re)}function ST(){let Q=w(),Re=ae();Dn(99);let Xe=pa(135);Dn(21);let It;J()!==27&&(J()===115||J()===121||J()===87||J()===160&&Mi(ov)||J()===135&&Mi(Rp)?It=xE(!0):It=wn(qe));let Ct;if(Xe?Dn(165):yo(165)){let qt=En(()=>_u(!0));Dn(22),Ct=ve(Xe,It,qt,sp())}else if(yo(103)){let qt=En(qe);Dn(22),Ct=m.createForInStatement(It,qt,sp())}else{Dn(27);let qt=J()!==27&&J()!==22?En(qe):void 0;Dn(27);let Br=J()!==22?En(qe):void 0;Dn(22),Ct=ie(It,qt,Br,sp())}return xr(on(Ct,Q),Re)}function jp(Q){let Re=w(),Xe=ae();Dn(Q===252?83:88);let It=sc()?void 0:Ms();ll();let Ct=Q===252?m.createBreakStatement(It):m.createContinueStatement(It);return xr(on(Ct,Re),Xe)}function TT(){let Q=w(),Re=ae();Dn(107);let Xe=sc()?void 0:En(qe);return ll(),xr(on(m.createReturnStatement(Xe),Q),Re)}function Gl(){let Q=w(),Re=ae();Dn(118);let Xe=t.getTokenStart(),It=Dn(21),Ct=En(qe);uu(21,22,It,Xe);let qt=ja(67108864,sp);return xr(on(m.createWithStatement(Ct,qt),Q),Re)}function Fc(){let Q=w(),Re=ae();Dn(84);let Xe=En(qe);Dn(59);let It=na(3,sp);return xr(on(m.createCaseClause(Xe,It),Q),Re)}function AT(){let Q=w();Dn(90),Dn(59);let Re=na(3,sp);return on(m.createDefaultClause(Re),Q)}function Au(){return J()===84?Fc():AT()}function ap(){let Q=w();Dn(19);let Re=na(2,Au);return Dn(20),on(m.createCaseBlock(Re),Q)}function H0(){let Q=w(),Re=ae();Dn(109),Dn(21);let Xe=En(qe);Dn(22);let It=ap();return xr(on(m.createSwitchStatement(Xe,It),Q),Re)}function wf(){let Q=w(),Re=ae();Dn(111);let Xe=t.hasPrecedingLineBreak()?void 0:En(qe);return Xe===void 0&&(nn++,Xe=on(M(""),w())),Rl()||Yl(Xe),xr(on(m.createThrowStatement(Xe),Q),Re)}function yb(){let Q=w(),Re=ae();Dn(113);let Xe=vg(!1),It=J()===85?bb():void 0,Ct;return(!It||J()===98)&&(Dn(98,f.catch_or_finally_expected),Ct=vg(!1)),xr(on(m.createTryStatement(Xe,It,Ct),Q),Re)}function bb(){let Q=w();Dn(85);let Re;yo(21)?(Re=Cd(),Dn(22)):Re=void 0;let Xe=vg(!1);return on(m.createCatchClause(Re,Xe),Q)}function iu(){let Q=w(),Re=ae();return Dn(89),ll(),xr(on(m.createDebuggerStatement(),Q),Re)}function nx(){let Q=w(),Re=ae(),Xe,It=J()===21,Ct=En(qe);return Ve(Ct)&&yo(59)?Xe=m.createLabeledStatement(Ct,sp()):(Rl()||Yl(Ct),Xe=fe(Ct),It&&(Re=!1)),xr(on(Xe,Q),Re)}function Up(){return ke(),id(J())&&!t.hasPrecedingLineBreak()}function IT(){return ke(),J()===86&&!t.hasPrecedingLineBreak()}function xT(){return ke(),J()===100&&!t.hasPrecedingLineBreak()}function Us(){return ke(),(id(J())||J()===9||J()===10||J()===11)&&!t.hasPrecedingLineBreak()}function tD(){for(;;)switch(J()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return rx();case 135:return ix();case 120:case 156:return QI();case 144:case 145:return iD();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let Q=J();if(ke(),t.hasPrecedingLineBreak())return!1;if(Q===138&&J()===156)return!0;continue;case 162:return ke(),J()===19||J()===80||J()===95;case 102:return ke(),J()===11||J()===42||J()===19||id(J());case 95:let Re=ke();if(Re===156&&(Re=Mi(ke)),Re===64||Re===42||Re===19||Re===90||Re===130||Re===60)return!0;continue;case 126:ke();continue;default:return!1}}function q0(){return Mi(tD)}function IE(){switch(J()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return q0()||Mi(w0);case 87:case 95:return q0();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return q0()||!Mi(Up);default:return o_()}}function OP(){return ke(),Kr()||J()===19||J()===23}function _d(){return Mi(OP)}function ov(){return J_(!0)}function J_(Q){return ke(),Q&&J()===165?!1:(Kr()||J()===19)&&!t.hasPrecedingLineBreak()}function rx(){return Mi(J_)}function Rp(Q){return ke()===160?J_(Q):!1}function ix(){return Mi(Rp)}function sp(){switch(J()){case 27:return tx();case 19:return vg(!1);case 115:return J0(w(),ae(),void 0);case 121:if(_d())return J0(w(),ae(),void 0);break;case 135:if(ix())return J0(w(),ae(),void 0);break;case 160:if(rx())return J0(w(),ae(),void 0);break;case 100:return RE(w(),ae(),void 0);case 86:return PT(w(),ae(),void 0);case 101:return U0();case 92:return eD();case 117:return AE();case 99:return ST();case 88:return jp(251);case 83:return jp(252);case 107:return TT();case 118:return Gl();case 109:return H0();case 111:return wf();case 113:case 85:case 98:return yb();case 89:return iu();case 60:return uy();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(q0())return uy();break}return nx()}function ox(Q){return Q.kind===138}function uy(){let Q=w(),Re=ae(),Xe=Lh(!0);if(Et(Xe,ox)){let Ct=RT(Q);if(Ct)return Ct;for(let qt of Xe)qt.flags|=33554432;return ja(33554432,()=>nD(Q,Re,Xe))}else return nD(Q,Re,Xe)}function RT(Q){return ja(33554432,()=>{let Re=vc(rn,Q);if(Re)return cl(Re)})}function nD(Q,Re,Xe){switch(J()){case 115:case 121:case 87:case 160:case 135:return J0(Q,Re,Xe);case 100:return RE(Q,Re,Xe);case 86:return PT(Q,Re,Xe);case 120:return _t(Q,Re,Xe);case 156:return an(Q,Re,Xe);case 94:return wi(Q,Re,Xe);case 162:case 144:case 145:return Zu(Q,Re,Xe);case 102:return jn(Q,Re,Xe);case 95:switch(ke(),J()){case 90:case 64:return Oh(Q,Re,Xe);case 130:return kh(Q,Re,Xe);default:return FP(Q,Re,Xe)}default:if(Xe){let It=Vs(282,!0,f.Declaration_expected);return nN(It,Q),It.modifiers=Xe,It}return}}function rD(){return ke()===11}function DT(){return ke(),J()===161||J()===64}function iD(){return ke(),!t.hasPrecedingLineBreak()&&(Po()||J()===11)}function Eb(Q,Re){if(J()!==19){if(Q&4){$n();return}if(sc()){ll();return}}return vb(Q,Re)}function Dp(){let Q=w();if(J()===28)return on(m.createOmittedExpression(),Q);let Re=pa(26),Xe=Rr(),It=a_();return on(m.createBindingElement(Re,void 0,Xe,It),Q)}function Mh(){let Q=w(),Re=pa(26),Xe=Kr(),It=pn(),Ct;Xe&&J()!==59?(Ct=It,It=void 0):(Dn(59),Ct=Rr());let qt=a_();return on(m.createBindingElement(Re,It,Ct,qt),Q)}function oD(){let Q=w();Dn(19);let Re=En(()=>zu(9,Mh));return Dn(20),on(m.createObjectBindingPattern(Re),Q)}function CT(){let Q=w();Dn(23);let Re=En(()=>zu(10,Dp));return Dn(24),on(m.createArrayBindingPattern(Re),Q)}function is(){return J()===19||J()===23||J()===81||Kr()}function Rr(Q){return J()===23?CT():J()===19?oD():Tp(Q)}function ff(){return Cd(!0)}function Cd(Q){let Re=w(),Xe=ae(),It=Rr(f.Private_identifiers_are_not_allowed_in_variable_declarations),Ct;Q&&It.kind===80&&J()===54&&!t.hasPrecedingLineBreak()&&(Ct=fl());let qt=oy(),Br=tv(J())?void 0:a_(),Fi=Le(It,Ct,qt,Br);return xr(on(Fi,Re),Xe)}function xE(Q){let Re=w(),Xe=0;switch(J()){case 115:break;case 121:Xe|=1;break;case 87:Xe|=2;break;case 160:Xe|=4;break;case 135:C.assert(ix()),Xe|=6,ke();break;default:C.fail()}ke();let It;if(J()===165&&Mi(aD))It=Ap();else{let Ct=Ye();ui(Q),It=zu(8,Q?Cd:ff),ui(Ct)}return on(He(It,Xe),Re)}function aD(){return ip()&&ke()===22}function J0(Q,Re,Xe){let It=xE(!1);ll();let Ct=oe(Xe,It);return xr(on(Ct,Q),Re)}function RE(Q,Re,Xe){let It=yn(),Ct=N_(Xe);Dn(100);let qt=pa(42),Br=Ct&2048?zm():Tp(),Fi=qt?1:0,Pi=Ct&1024?2:0,gi=uf();Ct&32&&No(!0);let eo=hn(Fi|Pi),fs=Ut(59,!1),Cs=Eb(Fi|Pi,f.or_expected);No(It);let es=m.createFunctionDeclaration(Xe,qt,Br,gi,eo,fs,Cs);return xr(on(es,Q),Re)}function NT(){if(J()===137)return Dn(137);if(J()===11&&Mi(ke)===21)return Ci(()=>{let Q=$r();return Q.text==="constructor"?Q:void 0})}function yg(Q,Re,Xe){return Ci(()=>{if(NT()){let It=uf(),Ct=hn(0),qt=Ut(59,!1),Br=Eb(0,f.or_expected),Fi=m.createConstructorDeclaration(Xe,Ct,Br);return Fi.typeParameters=It,Fi.type=qt,xr(on(Fi,Q),Re)}})}function c_(Q,Re,Xe,It,Ct,qt,Br,Fi){let Pi=It?1:0,gi=Et(Xe,hN)?2:0,eo=uf(),fs=hn(Pi|gi),Cs=Ut(59,!1),es=Eb(Pi|gi,Fi),Wf=m.createMethodDeclaration(Xe,It,Ct,qt,eo,fs,Cs,es);return Wf.exclamationToken=Br,xr(on(Wf,Q),Re)}function mf(Q,Re,Xe,It,Ct){let qt=!Ct&&!t.hasPrecedingLineBreak()?pa(54):void 0,Br=oy(),Fi=_a(90112,a_);Gs(It,Br,Fi);let Pi=m.createPropertyDeclaration(Xe,It,Ct||qt,Br,Fi);return xr(on(Pi,Q),Re)}function Bm(Q,Re,Xe){let It=pa(42),Ct=pn(),qt=pa(58);return It||J()===21||J()===30?c_(Q,Re,Xe,It,Ct,qt,void 0,f.or_expected):mf(Q,Re,Xe,Ct,qt)}function av(Q,Re,Xe,It,Ct){let qt=pn(),Br=uf(),Fi=hn(0),Pi=Ut(59,!1),gi=Eb(Ct),eo=It===177?m.createGetAccessorDeclaration(Xe,qt,Fi,Pi,gi):m.createSetAccessorDeclaration(Xe,qt,Fi,gi);return eo.typeParameters=Br,vp(eo)&&(eo.type=Pi),xr(on(eo,Q),Re)}function bg(){let Q;if(J()===60)return!0;for(;kv(J());){if(Q=J(),JV(Q))return!0;ke()}if(J()===42||(ee()&&(Q=J(),ke()),J()===23))return!0;if(Q!==void 0){if(!Fd(Q)||Q===153||Q===139)return!0;switch(J()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return sc()}}return!1}function Eg(Q,Re,Xe){Is(126);let It=ax(),Ct=xr(on(m.createClassStaticBlockDeclaration(It),Q),Re);return Ct.modifiers=Xe,Ct}function ax(){let Q=xt(),Re=yn();bi(!1),No(!0);let Xe=vg(!1);return bi(Q),No(Re),Xe}function lc(){if(yn()&&J()===135){let Q=w(),Re=Ms(f.Expression_expected);ke();let Xe=ru(Q,Re,!0);return cy(Q,Xe)}return dm()}function sD(){let Q=w();if(!yo(60))return;let Re=Nt(lc);return on(m.createDecorator(Re),Q)}function Of(Q,Re,Xe){let It=w(),Ct=J();if(J()===87&&Re){if(!Ci(Ni))return}else{if(Xe&&J()===126&&Mi(Tb))return;if(Q&&J()===126)return;if(!Uc())return}return on(O(Ct),It)}function Lh(Q,Re,Xe){let It=w(),Ct,qt,Br,Fi=!1,Pi=!1,gi=!1;if(Q&&J()===60)for(;qt=sD();)Ct=In(Ct,qt);for(;Br=Of(Fi,Re,Xe);)Br.kind===126&&(Fi=!0),Ct=In(Ct,Br),Pi=!0;if(Pi&&Q&&J()===60)for(;qt=sD();)Ct=In(Ct,qt),gi=!0;if(gi)for(;Br=Of(Fi,Re,Xe);)Br.kind===126&&(Fi=!0),Ct=In(Ct,Br);return Ct&&Wo(Ct,It)}function _f(){let Q;if(J()===134){let Re=w();ke();let Xe=on(O(134),Re);Q=Wo([Xe],Re)}return Q}function DE(){let Q=w(),Re=ae();if(J()===27)return ke(),xr(on(m.createSemicolonClassElement(),Q),Re);let Xe=Lh(!0,!0,!0);if(J()===126&&Mi(Tb))return Eg(Q,Re,Xe);if(jr(139))return av(Q,Re,Xe,177,0);if(jr(153))return av(Q,Re,Xe,178,0);if(J()===137||J()===11){let It=yg(Q,Re,Xe);if(It)return It}if(ur())return mr(Q,Re,Xe);if(id(J())||J()===11||J()===9||J()===42||J()===23)if(Et(Xe,ox)){for(let Ct of Xe)Ct.flags|=33554432;return ja(33554432,()=>Bm(Q,Re,Xe))}else return Bm(Q,Re,Xe);if(Xe){let It=Vs(80,!0,f.Declaration_expected);return mf(Q,Re,Xe,It,void 0)}return C.fail("Should not have attempted to parse class member declaration.")}function K0(){let Q=w(),Re=ae(),Xe=Lh(!0);if(J()===86)return hf(Q,Re,Xe,231);let It=Vs(282,!0,f.Expression_expected);return nN(It,Q),It.modifiers=Xe,It}function sx(){return hf(w(),ae(),void 0,231)}function PT(Q,Re,Xe){return hf(Q,Re,Xe,263)}function hf(Q,Re,Xe,It){let Ct=yn();Dn(86);let qt=Ls(),Br=uf();Et(Xe,eI)&&No(!0);let Fi=NE(),Pi;Dn(19)?(Pi=se(),Dn(20)):Pi=Ap(),No(Ct);let gi=It===263?m.createClassDeclaration(Xe,qt,Br,Fi,Pi):m.createClassExpression(Xe,qt,Br,Fi,Pi);return xr(on(gi,Q),Re)}function Ls(){return Kr()&&!CE()?pu(Kr()):void 0}function CE(){return J()===119&&Mi(Oc)}function NE(){if(D())return na(22,sv)}function sv(){let Q=w(),Re=J();C.assert(Re===96||Re===119),ke();let Xe=zu(7,Sb);return on(m.createHeritageClause(Re,Xe),Q)}function Sb(){let Q=w(),Re=dm();if(Re.kind===233)return Re;let Xe=X0();return on(m.createExpressionWithTypeArguments(Re,Xe),Q)}function X0(){return J()===30?Gd(20,yc,30,32):void 0}function D(){return J()===96||J()===119}function se(){return na(5,DE)}function _t(Q,Re,Xe){Dn(120);let It=Ms(),Ct=uf(),qt=NE(),Br=O0(),Fi=m.createInterfaceDeclaration(Xe,It,Ct,qt,Br);return xr(on(Fi,Q),Re)}function an(Q,Re,Xe){Dn(156),t.hasPrecedingLineBreak()&&fn(f.Line_break_not_permitted_here);let It=Ms(),Ct=uf();Dn(64);let qt=J()===141&&Ci(cT)||yc();ll();let Br=m.createTypeAliasDeclaration(Xe,It,Ct,qt);return xr(on(Br,Q),Re)}function Fr(){let Q=w(),Re=ae(),Xe=pn(),It=En(a_);return xr(on(m.createEnumMember(Xe,It),Q),Re)}function wi(Q,Re,Xe){Dn(94);let It=Ms(),Ct;Dn(19)?(Ct=j(()=>zu(6,Fr)),Dn(20)):Ct=Ap();let qt=m.createEnumDeclaration(Xe,It,Ct);return xr(on(qt,Q),Re)}function Ei(){let Q=w(),Re;return Dn(19)?(Re=na(1,sp),Dn(20)):Re=Ap(),on(m.createModuleBlock(Re),Q)}function oo(Q,Re,Xe,It){let Ct=It&32,qt=It&8?Ic():Ms(),Br=yo(25)?oo(w(),!1,void 0,8|Ct):Ei(),Fi=m.createModuleDeclaration(Xe,qt,Br,It);return xr(on(Fi,Q),Re)}function ya(Q,Re,Xe){let It=0,Ct;J()===162?(Ct=Ms(),It|=2048):(Ct=$r(),Ct.text=nu(Ct.text));let qt;J()===19?qt=Ei():ll();let Br=m.createModuleDeclaration(Xe,Ct,qt,It);return xr(on(Br,Q),Re)}function Zu(Q,Re,Xe){let It=0;if(J()===162)return ya(Q,Re,Xe);if(yo(145))It|=32;else if(Dn(144),J()===11)return ya(Q,Re,Xe);return oo(Q,Re,Xe,It)}function Nd(){return J()===149&&Mi(Ff)}function Ff(){return ke()===21}function Tb(){return ke()===19}function Ai(){return ke()===44}function kh(Q,Re,Xe){Dn(130),Dn(145);let It=Ms();ll();let Ct=m.createNamespaceExportDeclaration(It);return Ct.modifiers=Xe,xr(on(Ct,Q),Re)}function jn(Q,Re,Xe){Dn(102);let It=t.getTokenFullStart(),Ct;Po()&&(Ct=Ms());let qt=!1;if(Ct?.escapedText==="type"&&(J()!==161||Po()&&Mi(DT))&&(Po()||Ib())&&(qt=!0,Ct=Po()?Ms():void 0),Ct&&!MT())return PE(Q,Re,Xe,Ct,qt);let Br;(Ct||J()===42||J()===19)&&(Br=K_(Ct,It,qt),Dn(161));let Fi=LT(),Pi=J(),gi;(Pi===118||Pi===132)&&!t.hasPrecedingLineBreak()&&(gi=Ab(Pi)),ll();let eo=m.createImportDeclaration(Xe,Br,Fi,gi);return xr(on(eo,Q),Re)}function lx(){let Q=w(),Re=id(J())?Ic():wl(11);Dn(59);let Xe=_u(!0);return on(m.createImportAttribute(Re,Xe),Q)}function Ab(Q,Re){let Xe=w();Re||Dn(Q);let It=t.getTokenStart();if(Dn(19)){let Ct=t.hasPrecedingLineBreak(),qt=zu(24,lx,!0);if(!Dn(20)){let Br=Zs(je);Br&&Br.code===f._0_expected.code&&ka(Br,RR(Ee,Me,It,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return on(m.createImportAttributes(qt,Ct,Q),Xe)}else{let Ct=Wo([],w(),void 0,!1);return on(m.createImportAttributes(Ct,!1,Q),Xe)}}function Ib(){return J()===42||J()===19}function MT(){return J()===28||J()===161}function PE(Q,Re,Xe,It,Ct){Dn(64);let qt=wh();ll();let Br=m.createImportEqualsDeclaration(Xe,Ct,It,qt);return xr(on(Br,Q),Re)}function K_(Q,Re,Xe){let It;return(!Q||yo(28))&&(It=J()===42?iz():xb(275)),on(m.createImportClause(Xe,Q,It),Re)}function wh(){return Nd()?lD():te(!1)}function lD(){let Q=w();Dn(149),Dn(21);let Re=LT();return Dn(22),on(m.createExternalModuleReference(Re),Q)}function LT(){if(J()===11){let Q=$r();return Q.text=nu(Q.text),Q}else return qe()}function iz(){let Q=w();Dn(42),Dn(130);let Re=Ms();return on(m.createNamespaceImport(Re),Q)}function xb(Q){let Re=w(),Xe=Q===275?m.createNamedImports(Gd(23,h4,19,20)):m.createNamedExports(Gd(23,_4,19,20));return on(Xe,Re)}function _4(){let Q=ae();return xr(Y0(281),Q)}function h4(){return Y0(276)}function Y0(Q){let Re=w(),Xe=Fd(J())&&!Po(),It=t.getTokenStart(),Ct=t.getTokenEnd(),qt=!1,Br,Fi=!0,Pi=Ic();if(Pi.escapedText==="type")if(J()===130){let fs=Ic();if(J()===130){let Cs=Ic();id(J())?(qt=!0,Br=fs,Pi=eo(),Fi=!1):(Br=Pi,Pi=Cs,Fi=!1)}else id(J())?(Br=Pi,Fi=!1,Pi=eo()):(qt=!0,Pi=fs)}else id(J())&&(qt=!0,Pi=eo());Fi&&J()===130&&(Br=Pi,Dn(130),Pi=eo()),Q===276&&Xe&&q(It,Ct,f.Identifier_expected);let gi=Q===276?m.createImportSpecifier(qt,Br,Pi):m.createExportSpecifier(qt,Br,Pi);return on(gi,Re);function eo(){return Xe=Fd(J())&&!Po(),It=t.getTokenStart(),Ct=t.getTokenEnd(),Ic()}}function u_(Q){return on(m.createNamespaceExport(Ic()),Q)}function FP(Q,Re,Xe){let It=yn();No(!0);let Ct,qt,Br,Fi=yo(156),Pi=w();yo(42)?(yo(130)&&(Ct=u_(Pi)),Dn(161),qt=LT()):(Ct=xb(279),(J()===161||J()===11&&!t.hasPrecedingLineBreak())&&(Dn(161),qt=LT()));let gi=J();qt&&(gi===118||gi===132)&&!t.hasPrecedingLineBreak()&&(Br=Ab(gi)),ll(),No(It);let eo=m.createExportDeclaration(Xe,Fi,Ct,qt,Br);return xr(on(eo,Q),Re)}function Oh(Q,Re,Xe){let It=yn();No(!0);let Ct;yo(64)?Ct=!0:Dn(90);let qt=_u(!0);ll(),No(It);let Br=m.createExportAssignment(Xe,Ct,qt);return xr(on(Br,Q),Re)}let cx;(Q=>{Q[Q.SourceElements=0]="SourceElements",Q[Q.BlockStatements=1]="BlockStatements",Q[Q.SwitchClauses=2]="SwitchClauses",Q[Q.SwitchClauseStatements=3]="SwitchClauseStatements",Q[Q.TypeMembers=4]="TypeMembers",Q[Q.ClassMembers=5]="ClassMembers",Q[Q.EnumMembers=6]="EnumMembers",Q[Q.HeritageClauseElement=7]="HeritageClauseElement",Q[Q.VariableDeclarations=8]="VariableDeclarations",Q[Q.ObjectBindingElements=9]="ObjectBindingElements",Q[Q.ArrayBindingElements=10]="ArrayBindingElements",Q[Q.ArgumentExpressions=11]="ArgumentExpressions",Q[Q.ObjectLiteralMembers=12]="ObjectLiteralMembers",Q[Q.JsxAttributes=13]="JsxAttributes",Q[Q.JsxChildren=14]="JsxChildren",Q[Q.ArrayLiteralMembers=15]="ArrayLiteralMembers",Q[Q.Parameters=16]="Parameters",Q[Q.JSDocParameters=17]="JSDocParameters",Q[Q.RestProperties=18]="RestProperties",Q[Q.TypeParameters=19]="TypeParameters",Q[Q.TypeArguments=20]="TypeArguments",Q[Q.TupleElementTypes=21]="TupleElementTypes",Q[Q.HeritageClauses=22]="HeritageClauses",Q[Q.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Q[Q.ImportAttributes=24]="ImportAttributes",Q[Q.JSDocComment=25]="JSDocComment",Q[Q.Count=26]="Count"})(cx||(cx={}));let g4;(Q=>{Q[Q.False=0]="False",Q[Q.True=1]="True",Q[Q.Unknown=2]="Unknown"})(g4||(g4={}));let X_;(Q=>{function Re(gi,eo,fs){ki("file.js",gi,99,void 0,1,0),t.setText(gi,eo,fs),yt=t.scan();let Cs=Xe(),es=zt("file.js",99,1,!1,[],O(1),0,$a),Wf=VA(je,es);return at&&(es.jsDocDiagnostics=VA(at,es)),Ro(),Cs?{jsDocTypeExpression:Cs,diagnostics:Wf}:void 0}Q.parseJSDocTypeExpressionForTests=Re;function Xe(gi){let eo=w(),fs=(gi?yo:Dn)(19),Cs=ja(16777216,wm);(!gi||fs)&&hl(20);let es=m.createJSDocTypeExpression(Cs);return tt(es),on(es,eo)}Q.parseJSDocTypeExpression=Xe;function It(){let gi=w(),eo=yo(19),fs=w(),Cs=te(!1);for(;J()===81;)yi(),Dt(),Cs=on(m.createJSDocMemberName(Cs,Ms()),fs);eo&&hl(20);let es=m.createJSDocNameReference(Cs);return tt(es),on(es,gi)}Q.parseJSDocNameReference=It;function Ct(gi,eo,fs){ki("",gi,99,void 0,1,0);let Cs=ja(16777216,()=>Pi(eo,fs)),Wf=VA(je,{languageVariant:0,text:gi});return Ro(),Cs?{jsDoc:Cs,diagnostics:Wf}:void 0}Q.parseIsolatedJSDocComment=Ct;function qt(gi,eo,fs){let Cs=yt,es=je.length,Wf=Qt,Y_=ja(16777216,()=>Pi(eo,fs));return qa(Y_,gi),Xn&524288&&(at||(at=[]),Jr(at,je,es)),yt=Cs,je.length=es,Qt=Wf,Y_}Q.parseJSDocComment=qt;let Br;(gi=>{gi[gi.BeginningOfLine=0]="BeginningOfLine",gi[gi.SawAsterisk=1]="SawAsterisk",gi[gi.SavingComments=2]="SavingComments",gi[gi.SavingBackticks=3]="SavingBackticks"})(Br||(Br={}));let Fi;(gi=>{gi[gi.Property=1]="Property",gi[gi.Parameter=2]="Parameter",gi[gi.CallbackParameter=4]="CallbackParameter"})(Fi||(Fi={}));function Pi(gi=0,eo){let fs=Me,Cs=eo===void 0?fs.length:gi+eo;if(eo=Cs-gi,C.assert(gi>=0),C.assert(gi<=Cs),C.assert(Cs<=fs.length),!HH(fs,gi))return;let es,Wf,Y_,Sg,lv,cv=[],Rb=[],lp=rn;rn|=1<<25;let kT=t.scanRange(gi+3,eo-5,cD);return rn=lp,kT;function cD(){let Cn=1,Gr,kr=gi-(fs.lastIndexOf(` +`,gi)+1)+4;function Wi(xs){Gr||(Gr=kr),cv.push(xs),kr+=xs.length}for(Dt();dy(5););dy(4)&&(Cn=0,kr=0);e:for(;;){switch(J()){case 60:zP(cv),lv||(lv=w()),GP(uD(kr)),Cn=0,Gr=void 0;break;case 4:cv.push(t.getTokenText()),Cn=0,kr=0;break;case 42:let xs=t.getTokenText();Cn===1?(Cn=2,Wi(xs)):(C.assert(Cn===0),Cn=1,kr+=xs.length);break;case 5:C.assert(Cn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let ed=t.getTokenText();Gr!==void 0&&kr+ed.length>Gr&&cv.push(ed.slice(Gr-kr)),kr+=ed.length;break;case 1:break e;case 82:Cn=2,Wi(t.getTokenValue());break;case 19:Cn=2;let Fh=t.getTokenFullStart(),Cp=t.getTokenEnd()-1,p_=cc(Cp);if(p_){Sg||WP(cv),Rb.push(on(m.createJSDocText(cv.join("")),Sg??gi,Fh)),Rb.push(p_),cv=[],Sg=t.getTokenEnd();break}default:Cn=2,Wi(t.getTokenText());break}Cn===2?Pt(!1):Dt()}let Li=cv.join("").trimEnd();Rb.length&&Li.length&&Rb.push(on(m.createJSDocText(Li),Sg??gi,lv)),Rb.length&&es&&C.assertIsDefined(lv,"having parsed tags implies that the end of the comment span should be set");let os=es&&Wo(es,Wf,Y_);return on(m.createJSDocComment(Rb.length?Wo(Rb,gi,lv):Li.length?Li:void 0,os),gi,Cs)}function WP(Cn){for(;Cn.length&&(Cn[0]===` +`||Cn[0]==="\r");)Cn.shift()}function zP(Cn){for(;Cn.length;){let Gr=Cn[Cn.length-1].trimEnd();if(Gr==="")Cn.pop();else if(Gr.lengthed&&(Wi.push(dv.slice(ed-Cn)),xs=2),Cn+=dv.length;break;case 19:xs=2;let Np=t.getTokenFullStart(),fD=t.getTokenEnd()-1,v4=cc(fD);v4?(Li.push(on(m.createJSDocText(Wi.join("")),os??kr,Np)),Li.push(v4),Wi=[],os=t.getTokenEnd()):Fh(t.getTokenText());break;case 62:xs===3?xs=2:xs=3,Fh(t.getTokenText());break;case 82:xs!==3&&(xs=2),Fh(t.getTokenValue());break;case 42:if(xs===0){xs=1,Cn+=1;break}default:xs!==3&&(xs=2),Fh(t.getTokenText());break}xs===2||xs===3?Cp=Pt(xs===3):Cp=Dt()}WP(Wi);let p_=Wi.join("").trimEnd();if(Li.length)return p_.length&&Li.push(on(m.createJSDocText(p_),os??kr)),Wo(Li,kr,t.getTokenEnd());if(p_.length)return p_}function cc(Cn){let Gr=Ci(ux);if(!Gr)return;Dt(),uv();let kr=Q0(),Wi=[];for(;J()!==20&&J()!==4&&J()!==1;)Wi.push(t.getTokenText()),Dt();let Li=Gr==="link"?m.createJSDocLink:Gr==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return on(Li(kr,Wi.join("")),Cn,t.getTokenEnd())}function Q0(){if(id(J())){let Cn=w(),Gr=Ic();for(;yo(25);)Gr=on(m.createQualifiedName(Gr,J()===81?Vs(80,!1):Ms()),Cn);for(;J()===81;)yi(),Dt(),Gr=on(m.createJSDocMemberName(Gr,Ms()),Cn);return Gr}}function ux(){if(Db(),J()===19&&Dt()===60&&id(Dt())){let Cn=t.getTokenValue();if(BP(Cn))return Cn}}function BP(Cn){return Cn==="link"||Cn==="linkcode"||Cn==="linkplain"}function Cb(Cn,Gr,kr,Wi){return on(m.createJSDocUnknownTag(Gr,Hp(Cn,w(),kr,Wi)),Cn)}function GP(Cn){Cn&&(es?es.push(Cn):(es=[Cn],Wf=Cn.pos),Y_=Cn.end)}function ar(){return Db(),J()===19?Xe():void 0}function E(){let Cn=dy(23);Cn&&uv();let Gr=dy(62),kr=pD();return Gr&&Pa(62),Cn&&(uv(),pa(64)&&qe(),Dn(24)),{name:kr,isBracketed:Cn}}function P(Cn){switch(Cn.kind){case 151:return!0;case 188:return P(Cn.elementType);default:return Rf(Cn)&&Ve(Cn.typeName)&&Cn.typeName.escapedText==="Object"&&!Cn.typeArguments}}function B(Cn,Gr,kr,Wi){let Li=ar(),os=!Li;Db();let{name:xs,isBracketed:ed}=E(),Fh=Db();os&&!Mi(ux)&&(Li=ar());let Cp=Hp(Cn,w(),Wi,Fh),p_=ce(Li,xs,kr,Wi);p_&&(Li=p_,os=!0);let dv=kr===1?m.createJSDocPropertyTag(Gr,xs,ed,Li,os,Cp):m.createJSDocParameterTag(Gr,xs,ed,Li,os,Cp);return on(dv,Cn)}function ce(Cn,Gr,kr,Wi){if(Cn&&P(Cn.type)){let Li=w(),os,xs;for(;os=Ci(()=>sz(kr,Wi,Gr));)os.kind===348||os.kind===355?xs=In(xs,os):os.kind===352&&Oe(os.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(xs){let ed=on(m.createJSDocTypeLiteral(xs,Cn.type.kind===188),Li);return on(m.createJSDocTypeExpression(ed),Li)}}}function $e(Cn,Gr,kr,Wi){Et(es,o5)&&q(Gr.pos,t.getTokenStart(),f._0_tag_already_specified,Hi(Gr.escapedText));let Li=ar();return on(m.createJSDocReturnTag(Gr,Li,Hp(Cn,w(),kr,Wi)),Cn)}function Jt(Cn,Gr,kr,Wi){Et(es,RN)&&q(Gr.pos,t.getTokenStart(),f._0_tag_already_specified,Hi(Gr.escapedText));let Li=Xe(!0),os=kr!==void 0&&Wi!==void 0?Hp(Cn,w(),kr,Wi):void 0;return on(m.createJSDocTypeTag(Gr,Li,os),Cn)}function br(Cn,Gr,kr,Wi){let os=J()===23||Mi(()=>Dt()===60&&id(Dt())&&BP(t.getTokenValue()))?void 0:It(),xs=kr!==void 0&&Wi!==void 0?Hp(Cn,w(),kr,Wi):void 0;return on(m.createJSDocSeeTag(Gr,os,xs),Cn)}function ao(Cn,Gr,kr,Wi){let Li=ar(),os=Hp(Cn,w(),kr,Wi);return on(m.createJSDocThrowsTag(Gr,Li,os),Cn)}function Hs(Cn,Gr,kr,Wi){let Li=w(),os=d_(),xs=t.getTokenFullStart(),ed=Hp(Cn,xs,kr,Wi);ed||(xs=t.getTokenFullStart());let Fh=typeof ed!="string"?Wo(xo([on(os,Li,xs)],ed),Li):os.text+ed;return on(m.createJSDocAuthorTag(Gr,Fh),Cn)}function d_(){let Cn=[],Gr=!1,kr=t.getToken();for(;kr!==1&&kr!==4;){if(kr===30)Gr=!0;else{if(kr===60&&!Gr)break;if(kr===32&&Gr){Cn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Cn.push(t.getTokenText()),kr=Dt()}return m.createJSDocText(Cn.join(""))}function Nb(Cn,Gr,kr,Wi){let Li=IZ();return on(m.createJSDocImplementsTag(Gr,Li,Hp(Cn,w(),kr,Wi)),Cn)}function Gm(Cn,Gr,kr,Wi){let Li=IZ();return on(m.createJSDocAugmentsTag(Gr,Li,Hp(Cn,w(),kr,Wi)),Cn)}function Z0(Cn,Gr,kr,Wi){let Li=Xe(!1),os=kr!==void 0&&Wi!==void 0?Hp(Cn,w(),kr,Wi):void 0;return on(m.createJSDocSatisfiesTag(Gr,Li,os),Cn)}function IZ(){let Cn=yo(19),Gr=w(),kr=ige();t.setInJSDocType(!0);let Wi=X0();t.setInJSDocType(!1);let Li=m.createExpressionWithTypeArguments(kr,Wi),os=on(Li,Gr);return Cn&&Dn(20),os}function ige(){let Cn=w(),Gr=t1();for(;yo(25);){let kr=t1();Gr=on(Z(Gr,kr),Cn)}return Gr}function e1(Cn,Gr,kr,Wi,Li){return on(Gr(kr,Hp(Cn,w(),Wi,Li)),Cn)}function oz(Cn,Gr,kr,Wi){let Li=Xe(!0);return uv(),on(m.createJSDocThisTag(Gr,Li,Hp(Cn,w(),kr,Wi)),Cn)}function xZ(Cn,Gr,kr,Wi){let Li=Xe(!0);return uv(),on(m.createJSDocEnumTag(Gr,Li,Hp(Cn,w(),kr,Wi)),Cn)}function VP(Cn,Gr,kr,Wi){let Li=ar();Db();let os=az();uv();let xs=Ua(kr),ed;if(!Li||P(Li.type)){let Cp,p_,dv,Np=!1;for(;(Cp=Ci(()=>CZ(kr)))&&Cp.kind!==352;)if(Np=!0,Cp.kind===351)if(p_){let fD=fn(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);fD&&ka(fD,RR(Ee,Me,0,0,f.The_tag_was_first_specified_here));break}else p_=Cp;else dv=In(dv,Cp);if(Np){let fD=Li&&Li.type.kind===188,v4=m.createJSDocTypeLiteral(dv,fD);Li=p_&&p_.typeExpression&&!P(p_.typeExpression.type)?p_.typeExpression:on(v4,Cn),ed=Li.end}}ed=ed||xs!==void 0?w():(os??Li??Gr).end,xs||(xs=Hp(Cn,ed,kr,Wi));let Fh=m.createJSDocTypedefTag(Gr,Li,os,xs);return on(Fh,Cn,ed)}function az(Cn){let Gr=t.getTokenStart();if(!id(J()))return;let kr=t1();if(yo(25)){let Wi=az(!0),Li=m.createModuleDeclaration(void 0,kr,Wi,Cn?8:void 0);return on(Li,Gr)}return Cn&&(kr.flags|=4096),kr}function RZ(Cn){let Gr=w(),kr,Wi;for(;kr=Ci(()=>sz(4,Cn));){if(kr.kind===352){Oe(kr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Wi=In(Wi,kr)}return Wo(Wi||[],Gr)}function DZ(Cn,Gr){let kr=RZ(Gr),Wi=Ci(()=>{if(dy(60)){let Li=uD(Gr);if(Li&&Li.kind===349)return Li}});return on(m.createJSDocSignature(void 0,kr,Wi),Cn)}function oge(Cn,Gr,kr,Wi){let Li=az();uv();let os=Ua(kr),xs=DZ(Cn,kr);os||(os=Hp(Cn,w(),kr,Wi));let ed=os!==void 0?w():xs.end;return on(m.createJSDocCallbackTag(Gr,xs,Li,os),Cn,ed)}function age(Cn,Gr,kr,Wi){uv();let Li=Ua(kr),os=DZ(Cn,kr);Li||(Li=Hp(Cn,w(),kr,Wi));let xs=Li!==void 0?w():os.end;return on(m.createJSDocOverloadTag(Gr,os,Li),Cn,xs)}function dD(Cn,Gr){for(;!Ve(Cn)||!Ve(Gr);)if(!Ve(Cn)&&!Ve(Gr)&&Cn.right.escapedText===Gr.right.escapedText)Cn=Cn.left,Gr=Gr.left;else return!1;return Cn.escapedText===Gr.escapedText}function CZ(Cn){return sz(1,Cn)}function sz(Cn,Gr,kr){let Wi=!0,Li=!1;for(;;)switch(Dt()){case 60:if(Wi){let os=ME(Cn,Gr);return os&&(os.kind===348||os.kind===355)&&kr&&(Ve(os.name)||!dD(kr,os.name.left))?!1:os}Li=!1;break;case 4:Wi=!0,Li=!1;break;case 42:Li&&(Wi=!1),Li=!0;break;case 80:Wi=!1;break;case 1:return!1}}function ME(Cn,Gr){C.assert(J()===60);let kr=t.getTokenFullStart();Dt();let Wi=t1(),Li=Db(),os;switch(Wi.escapedText){case"type":return Cn===1&&Jt(kr,Wi);case"prop":case"property":os=1;break;case"arg":case"argument":case"param":os=6;break;case"template":return Mb(kr,Wi,Gr,Li);case"this":return oz(kr,Wi,Gr,Li);default:return!1}return Cn&os?B(kr,Wi,Cn,Gr):!1}function pr(){let Cn=w(),Gr=dy(23);Gr&&uv();let kr=Lh(!1,!0),Wi=t1(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Li;if(Gr&&(uv(),Dn(64),Li=ja(16777216,wm),Dn(24)),!Fl(Wi))return on(m.createTypeParameterDeclaration(kr,Wi,void 0,Li),Cn)}function Pb(){let Cn=w(),Gr=[];do{uv();let kr=pr();kr!==void 0&&Gr.push(kr),Db()}while(dy(28));return Wo(Gr,Cn)}function Mb(Cn,Gr,kr,Wi){let Li=J()===19?Xe():void 0,os=Pb();return on(m.createJSDocTemplateTag(Gr,Li,os,Hp(Cn,w(),kr,Wi)),Cn)}function dy(Cn){return J()===Cn?(Dt(),!0):!1}function pD(){let Cn=t1();for(yo(23)&&Dn(24);yo(25);){let Gr=t1();yo(23)&&Dn(24),Cn=lt(Cn,Gr)}return Cn}function t1(Cn){if(!id(J()))return Vs(80,!Cn,Cn||f.Identifier_expected);nn++;let Gr=t.getTokenStart(),kr=t.getTokenEnd(),Wi=J(),Li=nu(t.getTokenValue()),os=on(M(Li,Wi),Gr,kr);return Dt(),os}}})(X_=e.JSDocParser||(e.JSDocParser={}))})(T0||(T0={})),(e=>{function t(I,R,M,N){if(N=N||C.shouldAssert(2),m(I,R,M,N),are(M))return I;if(I.statements.length===0)return T0.parseSourceFile(I.fileName,R,I.languageVersion,void 0,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);let O=I;C.assert(!O.hasBeenIncrementallyParsed),O.hasBeenIncrementallyParsed=!0,T0.fixupParentReferences(O);let H=I.text,K=b(I),Z=p(I,M);m(I,R,Z,N),C.assert(Z.span.start<=M.span.start),C.assert(ql(Z.span)===ql(M.span)),C.assert(ql(cC(Z))===ql(cC(M)));let V=cC(Z).length-Z.span.length;u(O,Z.span.start,ql(Z.span),ql(cC(Z)),V,H,R,N);let ue=T0.parseSourceFile(I.fileName,R,I.languageVersion,K,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);return ue.commentDirectives=r(I.commentDirectives,ue.commentDirectives,Z.span.start,ql(Z.span),V,H,R,N),ue.impliedNodeFormat=I.impliedNodeFormat,ue}e.updateSourceFile=t;function r(I,R,M,N,O,H,K,Z){if(!I)return R;let V,ue=!1;for(let ne of I){let{range:he,type:ye}=ne;if(he.endN){G();let $={range:{pos:he.pos+O,end:he.end+O},type:ye};V=In(V,$),Z&&C.assert(H.substring(he.pos,he.end)===K.substring($.range.pos,$.range.end))}}return G(),V;function G(){ue||(ue=!0,V?R&&V.push(...R):V=R)}}function i(I,R,M,N,O,H){R?Z(I):K(I);return;function K(V){let ue="";if(H&&o(V)&&(ue=N.substring(V.pos,V.end)),V._children&&(V._children=void 0),gh(V,V.pos+M,V.end+M),H&&o(V)&&C.assert(ue===O.substring(V.pos,V.end)),Ho(V,K,Z),Op(V))for(let G of V.jsDoc)K(G);l(V,H)}function Z(V){V._children=void 0,gh(V,V.pos+M,V.end+M);for(let ue of V)K(ue)}}function o(I){switch(I.kind){case 11:case 9:case 80:return!0}return!1}function s(I,R,M,N,O){C.assert(I.end>=R,"Adjusting an element that was entirely before the change range"),C.assert(I.pos<=M,"Adjusting an element that was entirely after the change range"),C.assert(I.pos<=I.end);let H=Math.min(I.pos,N),K=I.end>=M?I.end+O:Math.min(I.end,N);C.assert(H<=K),I.parent&&(C.assertGreaterThanOrEqual(H,I.parent.pos),C.assertLessThanOrEqual(K,I.parent.end)),gh(I,H,K)}function l(I,R){if(R){let M=I.pos,N=O=>{C.assert(O.pos>=M),M=O.end};if(Op(I))for(let O of I.jsDoc)N(O);Ho(I,N),C.assert(M<=I.end)}}function u(I,R,M,N,O,H,K,Z){V(I);return;function V(G){if(C.assert(G.pos<=G.end),G.pos>M){i(G,!1,O,H,K,Z);return}let ne=G.end;if(ne>=R){if(G.intersectsChange=!0,G._children=void 0,s(G,R,M,N,O),Ho(G,V,ue),Op(G))for(let he of G.jsDoc)V(he);l(G,Z);return}C.assert(neM){i(G,!0,O,H,K,Z);return}let ne=G.end;if(ne>=R){G.intersectsChange=!0,G._children=void 0,s(G,R,M,N,O);for(let he of G)V(he);return}C.assert(ne0&&K<=1;K++){let Z=g(I,N);C.assert(Z.pos<=N);let V=Z.pos;N=Math.max(0,V-1)}let O=dc(N,ql(R.span)),H=R.newLength+(R.span.start-N);return tL(O,H)}function g(I,R){let M=I,N;if(Ho(I,H),N){let K=O(N);K.pos>M.pos&&(M=K)}return M;function O(K){for(;;){let Z=gU(K);if(Z)K=Z;else return K}}function H(K){if(!Fl(K))if(K.pos<=R){if(K.pos>=M.pos&&(M=K),RR),!0}}function m(I,R,M,N){let O=I.text;if(M&&(C.assert(O.length-M.span.length+M.newLength===R.length),N||C.shouldAssert(3))){let H=O.substr(0,M.span.start),K=R.substr(0,M.span.start);C.assert(H===K);let Z=O.substring(ql(M.span),O.length),V=R.substring(ql(cC(M)),R.length);C.assert(Z===V)}}function b(I){let R=I.statements,M=0;C.assert(M=ue.pos&&K=ue.pos&&K{I[I.Value=-1]="Value"})(T||(T={}))})($H||($H={})),QH=new Map,gTe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,vTe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function g5(e){let t=new Map,r=new Map;return Ke(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function $R(){return nAe||(nAe=g5(ug))}function fse(e){return yTe(e,Vl)}function yTe(e,t){let r=Vo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function v5(e,t,r){return $Te(e,(t??"").trim(),r)}function mse(e,t="",r){if(t=t.trim(),uo(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return hI(e,t,r);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return Vi(i,o=>hI(e.element,parseInt(o),r));case"string":return Vi(i,o=>hI(e.element,o||"",r));case"boolean":case"object":return C.fail(`List of ${e.element.type} is not yet supported.`);default:return Vi(i,o=>v5(e.element,o,r))}}function bTe(e){return e.name}function _se(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return A0(o,i,t.alternateMode.diagnostic,e);let l=QD(e,t.optionDeclarations,bTe);return l?A0(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):A0(o,i,t.unknownOptionDiagnostic,r||e)}function ZH(e,t,r){let i={},o,s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(g){let m=0;for(;mgu.readFile(I)));if(!wo(m)){l.push(m);return}let b=[],T=0;for(;;){for(;T=m.length)break;let I=T;if(m.charCodeAt(I)===34){for(T++;T32;)T++;b.push(m.substring(I,T))}}u(b)}}function ETe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=hI(i,!1,s),t++):(l==="true"&&t++,s.push(Vl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Vl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!uo(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Vl(r.optionTypeMismatchDiagnostic,i.name,rq(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=hI(i,parseInt(e[t]),s),t++;break;case"boolean":let l=e[t];o[i.name]=hI(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=hI(i,e[t]||"",s),t++;break;case"list":let u=mse(i,e[t],s);o[i.name]=u||[],u&&t++;break;case"listOrElement":C.fail("listOrElement not supported here");break;default:o[i.name]=v5(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function STe(e,t){return ZH(_w,e,t)}function eq(e,t){return hse($R,e,t)}function hse(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function TTe(){return iAe||(iAe=g5(x5))}function ATe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=ZH(aAe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Vl(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Vl(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Vl(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Vl(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function ITe(e,...t){return aa(Vl(e,...t).messageText,wo)}function ow(e,t,r,i,o,s){let l=MN(e,g=>r.readFile(g));if(!wo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let u=iw(e,l),p=r.getCurrentDirectory();return u.path=rl(e,p,Pu(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,lw(u,r,bo(li(e),p),t,bo(e,p),void 0,s,i,o)}function aw(e,t){let r=MN(e,t);return wo(r)?tq(e,r):{config:{},error:r}}function tq(e,t){let r=iw(e,t);return{config:NTe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function gse(e,t){let r=MN(e,t);return wo(r)?iw(e,r):{fileName:e,parseDiagnostics:[r]}}function MN(e,t){let r;try{r=t(e)}catch(i){return Vl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Vl(f.Cannot_read_file_0,e):r}function nq(e){return g1(e,bTe)}function xTe(){return sAe||(sAe=g5(QR))}function RTe(){return lAe||(lAe=nq(ug))}function DTe(){return cAe||(cAe=nq(QR))}function CTe(){return uAe||(uAe=nq(mw))}function NBe(){return Mse===void 0&&(Mse={name:void 0,type:"object",elementOptions:nq([Cse,Nse,Pse,hw,{name:"references",type:"list",element:{name:"references",type:"object"},category:f.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:f.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},uw])}),Mse}function NTe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(Yf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,rc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),pd(o)){let s=vn(o.elements,wa);if(s)return sw(e,s,t,!0,r)}return{}}return sw(e,o,t,!0,r)}function vse(e,t){var r;return sw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function sw(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o?.rootOptions);function s(g,m){var b;let T=i?{}:void 0;for(let I of g.properties){if(I.kind!==303){r.push(Yf(e,I,f.Property_assignment_expected));continue}I.questionToken&&r.push(Yf(e,I.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(I.name)||r.push(Yf(e,I.name,f.String_literal_with_double_quotes_expected));let R=TL(I.name)?void 0:Zx(I.name),M=R&&Hi(R),N=M?(b=m?.elementOptions)==null?void 0:b.get(M):void 0,O=u(I.initializer,N);typeof M<"u"&&(i&&(T[M]=O),o?.onPropertySet(M,O,I,m,N))}return T}function l(g,m){if(!i){g.forEach(b=>u(b,m));return}return tr(g.map(b=>u(b,m)),b=>b!==void 0)}function u(g,m){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(g)||r.push(Yf(e,g,f.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 224:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 210:return s(g,m);case 209:return l(g.elements,m&&m.element)}m?r.push(Yf(e,g,f.Compiler_option_0_requires_a_value_of_type_1,m.name,rq(m))):r.push(Yf(e,g,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(g){return Na(g)&&s3(g,e)}}function rq(e){return e.type==="listOrElement"?`${rq(e.element)} or Array`:e.type==="list"?"Array":wo(e.type)?e.type:"string"}function PTe(e,t){if(e){if(cw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Do(t);if(e.type==="listOrElement")return Do(t)||PTe(e.element,t);let r=wo(e.type)?e.type:"string";return typeof t===r}return!1}function MTe(e,t,r){var i,o,s;let l=Pu(r.useCaseSensitiveFileNames),u=Ft(tr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?MBe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Dv),R=>UM(bo(t,r.getCurrentDirectory()),bo(R,r.getCurrentDirectory()),l)),p={configFilePath:bo(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},g=b5(e.options,p),m=e.watchOptions&&LBe(e.watchOptions),b={compilerOptions:{...y5(g),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:m&&y5(m),references:Ft(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:De(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:PBe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},T=new Set(g.keys()),I={};for(let R in mc)if(!T.has(R)&&Et(mc[R].dependencies,M=>T.has(M))){let M=mc[R].computeValue(e.options),N=mc[R].computeValue({});M!==N&&(I[R]=mc[R].computeValue(e.options))}return Cx(b.compilerOptions,y5(b5(I,p))),b}function y5(e){return{...Vo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function PBe(e){if(De(e)){if(De(e)!==1)return e;if(e[0]!==C5)return e}}function MBe(e,t,r,i){if(!t)return Dv;let o=q3(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&jy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&jy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):Dv}function LTe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return LTe(e.element);default:return e.type}}function iq(e,t){return Bc(t,(r,i)=>{if(r===e)return i})}function b5(e,t){return kTe(e,$R(),t)}function LBe(e){return kTe(e,xTe())}function kTe(e,{optionsNameMap:t},r){let i=new Map,o=r&&Pu(r.useCaseSensitiveFileNames);for(let s in e)if(Rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],u=t.get(s.toLowerCase());if(u){C.assert(u.type!=="listOrElement");let p=LTe(u);p?u.type==="list"?i.set(s,l.map(g=>iq(g,p))):i.set(s,iq(l,p)):r&&u.isFilePath?i.set(s,UM(r.configFilePath,bo(l,li(r.configFilePath)),o)):i.set(s,l)}}return i}function wTe(e,t){let r=OTe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){let s=[],l=i(2);return cq.forEach(u=>{if(!r.has(u.name))return;let p=r.get(u.name),g=Ise(u);p!==g?s.push(`${l}${u.name}: ${p}`):Rs(R5,u.name)&&s.push(`${l}${u.name}: ${g}`)}),s.join(t)+t}}function OTe(e){let t=P8(e,R5);return b5(t)}function FTe(e,t,r){let i=OTe(e);return l();function o(u){return Array(u+1).join(" ")}function s({category:u,name:p,isCommandLineOnly:g}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!g&&u!==void 0&&(!m.includes(u)||i.has(p))}function l(){let u=new Map;u.set(f.Projects,[]),u.set(f.Language_and_Environment,[]),u.set(f.Modules,[]),u.set(f.JavaScript_Support,[]),u.set(f.Emit,[]),u.set(f.Interop_Constraints,[]),u.set(f.Type_Checking,[]),u.set(f.Completeness,[]);for(let I of ug)if(s(I)){let R=u.get(I.category);R||u.set(I.category,R=[]),R.push(I)}let p=0,g=0,m=[];u.forEach((I,R)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${Bo(R)} */`});for(let M of I){let N;i.has(M.name)?N=`"${M.name}": ${JSON.stringify(i.get(M.name))}${(g+=1)===i.size?"":","}`:N=`// "${M.name}": ${JSON.stringify(Ise(M))},`,m.push({value:N,description:`/* ${M.description&&Bo(M.description)||M.name} */`}),p=Math.max(N.length,p)}});let b=o(2),T=[];T.push("{"),T.push(`${b}"compilerOptions": {`),T.push(`${b}${b}/* ${Bo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),T.push("");for(let I of m){let{value:R,description:M=""}=I;T.push(R&&`${b}${b}${R}${M&&o(p-R.length+2)+M}`)}if(t.length){T.push(`${b}},`),T.push(`${b}"files": [`);for(let I=0;Itypeof me=="object","object"),he=Z(V("files"));if(he){let me=ne==="no-prop"||Do(ne)&&ne.length===0,ie=Rs(T,"extends");if(he.length===0&&me&&!ie)if(t){let ve=l||"tsconfig.json",Le=f.The_files_list_in_config_file_0_is_empty,He=DL(t,"files",Ce=>Ce.initializer),Ee=A0(t,He,Le,ve);m.push(Ee)}else G(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ye=Z(V("include")),$=V("exclude"),Y=!1,oe=Z($);if($==="no-prop"&&T.compilerOptions){let me=T.compilerOptions.outDir,ie=T.compilerOptions.declarationDir;(me||ie)&&(oe=[me,ie].filter(ve=>!!ve))}he===void 0&&ye===void 0&&(ye=[C5],Y=!0);let fe,Ne;return ye&&(fe=tAe(ye,m,!0,t,"include")),oe&&(Ne=tAe(oe,m,!1,t,"exclude")),{filesSpecs:he,includeSpecs:ye,excludeSpecs:oe,validatedFilesSpec:tr(he,wo),validatedIncludeSpecs:fe,validatedExcludeSpecs:Ne,pathPatterns:void 0,isDefaultIncludeSpec:Y}}function H(ne){let he=kN(M,ne,I,r,p);return VTe(he,LN(T),u)&&m.push(GTe(M,l)),he}function K(ne){let he,ye=ue("references",$=>typeof $=="object","object");if(Do(ye))for(let $ of ye)typeof $.path!="string"?G(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(he||(he=[])).push({path:bo($.path,ne),originalPath:$.path,prepend:$.prepend,circular:$.circular});return he}function Z(ne){return Do(ne)?ne:void 0}function V(ne){return ue(ne,wo,"string")}function ue(ne,he,ye){if(Rs(T,ne)&&!cw(T[ne]))if(Do(T[ne])){let $=T[ne];return!t&&!Jn($,he)&&m.push(Vl(f.Compiler_option_0_requires_a_value_of_type_1,ne,ye)),$}else return G(f.Compiler_option_0_requires_a_value_of_type_1,ne,"Array"),"not-array";return"no-prop"}function G(ne,...he){t||m.push(Vl(ne,...he))}}function wBe(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function GTe({includeSpecs:e,excludeSpecs:t},r){return Vl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function VTe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function LN(e){return!Rs(e,"files")&&!Rs(e,"references")}function E5(e,t,r,i,o){let s=i.length;return VTe(e,o)?i.push(GTe(r,t)):Bi(i,l=>!wBe(l)),s!==i.length}function OBe(e){return!!e.options}function jTe(e,t,r,i,o,s,l,u){var p;i=Mu(i);let g=bo(o||"",i);if(s.includes(g))return l.push(Vl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,g].join(" -> "))),{raw:e||vse(t,l)};let m=e?FBe(e,r,i,o,l):WBe(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([g]);let T={options:{}};wo(m.extendedConfigPath)?b(T,m.extendedConfigPath):m.extendedConfigPath.forEach(I=>b(T,I)),!m.raw.include&&T.include&&(m.raw.include=T.include),!m.raw.exclude&&T.exclude&&(m.raw.exclude=T.exclude),!m.raw.files&&T.files&&(m.raw.files=T.files),m.raw.compileOnSave===void 0&&T.compileOnSave&&(m.raw.compileOnSave=T.compileOnSave),t&&T.extendedSourceFiles&&(t.extendedSourceFiles=Vo(T.extendedSourceFiles.keys())),m.options=Cx(T.options,m.options),m.watchOptions=m.watchOptions&&T.watchOptions?Cx(T.watchOptions,m.watchOptions):m.watchOptions||T.watchOptions}return m;function b(T,I){let R=zBe(t,I,r,s,l,u,T);if(R&&OBe(R)){let M=R.raw,N,O=H=>{M[H]&&(T[H]=Ft(M[H],K=>dp(K)?K:Zr(N||(N=iC(li(I),i,Pu(r.useCaseSensitiveFileNames))),K)))};O("include"),O("exclude"),O("files"),M.compileOnSave!==void 0&&(T.compileOnSave=M.compileOnSave),Cx(T.options,R.options),T.watchOptions=T.watchOptions&&R.watchOptions?Cx({},T.watchOptions,R.watchOptions):T.watchOptions||R.watchOptions}}}function FBe(e,t,r,i,o){Rs(e,"excludes")&&o.push(Vl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=XTe(e.compilerOptions,r,o,i),l=YTe(e.typeAcquisition,r,o,i),u=GBe(e.watchOptions,r,o);e.compileOnSave=BBe(e,r,o);let p=e.extends||e.extends===""?UTe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p}}function UTe(e,t,r,i,o,s,l,u){let p,g=i?zTe(i,r):r;if(wo(e))p=HTe(e,t,g,o,l,u);else if(Do(e)){p=[];for(let m=0;mH.name===I)&&(g=In(g,M.name))))}}function HTe(e,t,r,i,o,s){if(e=Mu(e),dp(e)||uo(e,"./")||uo(e,"../")){let u=bo(e,r);if(!t.fileExists(u)&&!Sl(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(A0(s,o,f.File_0_not_found,e));return}return u}let l=Vse(e,Zr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(A0(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(A0(s,o,f.File_0_not_found,e))}function zBe(e,t,r,i,o,s,l){let u=r.useCaseSensitiveFileNames?t:lh(t),p,g,m;if(s&&(p=s.get(u))?{extendedResult:g,extendedConfig:m}=p:(g=gse(t,b=>r.readFile(b)),g.parseDiagnostics.length||(m=jTe(void 0,g,r,li(t),rc(t),i,o,s)),s&&s.set(u,{extendedResult:g,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(g.fileName),g.extendedSourceFiles))for(let b of g.extendedSourceFiles)l.extendedSourceFiles.add(b);if(g.parseDiagnostics.length){o.push(...g.parseDiagnostics);return}return m}function BBe(e,t,r){if(!Rs(e,uw.name))return!1;let i=HS(uw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function qTe(e,t,r){let i=[];return{options:XTe(e,t,i,r),errors:i}}function JTe(e,t,r){let i=[];return{options:YTe(e,t,i,r),errors:i}}function KTe(e){return e&&rc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function XTe(e,t,r,i){let o=KTe(i);return yse(RTe(),e,t,o,_w,r),i&&(o.configFilePath=Mu(i)),o}function sq(e){return{enable:!!e&&rc(e)==="jsconfig.json",include:[],exclude:[]}}function YTe(e,t,r,i){let o=sq(i);return yse(CTe(),e,t,o,Dse,r),o}function GBe(e,t,r){return yse(DTe(),e,t,void 0,D5,r)}function yse(e,t,r,i,o,s){if(t){for(let l in t){let u=e.get(l);u?(i||(i={}))[u.name]=HS(u,t[l],r,s):s.push(_se(l,o))}return i}}function A0(e,t,r,...i){return e&&t?Yf(e,t,r,...i):Vl(r,...i)}function HS(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(A0(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(PTe(e,t)){let u=e.type;if(u==="list"&&Do(t))return QTe(e,t,r,i,o,s,l);if(u==="listOrElement")return Do(t)?QTe(e,t,r,i,o,s,l):HS(e.element,t,r,i,o,s,l);if(!wo(e.type))return $Te(e,t,i,s,l);let p=hI(e,t,i,s,l);return cw(p)?p:VBe(e,r,p)}else i.push(A0(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,rq(e)))}function VBe(e,t,r){return e.isFilePath&&(r=bo(r,t),r===""&&(r=".")),r}function hI(e,t,r,i,o){var s;if(cw(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(A0(o,i,...l))}function $Te(e,t,r,i,o){if(cw(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return hI(e,l,r,i,o);r.push(yTe(e,(u,...p)=>A0(o,i,u,...p)))}function QTe(e,t,r,i,o,s,l){return tr(Ft(t,(u,p)=>HS(e.element,u,r,i,o,s?.elements[p],l)),u=>e.listPreserveFalsyValues?!0:!!u)}function kN(e,t,r,i,o=et){t=va(t);let s=Pu(i.useCaseSensitiveFileNames),l=new Map,u=new Map,p=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:m,validatedExcludeSpecs:b}=e,T=$C(r,o),I=fk(r,T);if(g)for(let O of g){let H=bo(O,t);l.set(s(H),H)}let R;if(m&&m.length>0)for(let O of i.readDirectory(t,ts(I),b,m,void 0)){if(Tl(O,".json")){if(!R){let Z=m.filter(ue=>Sl(ue,".json")),V=Ft(U3(Z,t,"files"),ue=>`^${ue}$`);R=V?V.map(ue=>jy(ue,i.useCaseSensitiveFileNames)):et}if(ri(R,Z=>Z.test(O))!==-1){let Z=s(O);!l.has(Z)&&!p.has(Z)&&p.set(Z,O)}continue}if(HBe(O,l,u,T,s))continue;qBe(O,u,T,s);let H=s(O);!l.has(H)&&!u.has(H)&&u.set(H,O)}let M=Vo(l.values()),N=Vo(u.values());return M.concat(N,Vo(p.values()))}function bse(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!De(l)||!De(u))return!1;r=va(r);let p=Pu(i);if(s){for(let g of s)if(p(bo(g,r))===e)return!1}return eAe(e,u,i,o,r)}function ZTe(e){let t=uo(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Sl(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function S5(e,t,r,i){return eAe(e,tr(t,o=>!ZTe(o)),r,i)}function eAe(e,t,r,i,o){let s=YC(t,Zr(va(i),o),"exclude"),l=s&&jy(s,r);return l?l.test(e)?!0:!EA(e)&&l.test(zc(e)):!1}function tAe(e,t,r,i,o){return e.filter(l=>{if(!wo(l))return!1;let u=Ese(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){let p=X6(i,o,u);return A0(i,p,l,u)}}function Ese(e,t){if(C.assert(typeof e=="string"),t&&dAe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(ZTe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function jBe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=YC(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){let p=[];for(let g of e){let m=va(Zr(r,g));if(s&&s.test(m))continue;let b=UBe(m,i);if(b){let{key:T,path:I,flags:R}=b,M=u.get(T),N=M!==void 0?l[M]:void 0;(N===void 0||NEc(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(Tl(e,l)&&(l!==".ts"||!Tl(e,".d.ts")))return!1;let u=o(m0(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(Tl(e,".js")||Tl(e,".jsx")))continue;return!0}}return!1}function qBe(e,t,r,i){let o=Ke(r,s=>Ec(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(Tl(e,l))return;let u=i(m0(e,l));t.delete(u)}}function Tse(e){let t={};for(let r in e)if(Rs(e,r)){let i=eq(r);i!==void 0&&(t[r]=Ase(e[r],i))}return t}function Ase(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!Do(e))return Ase(e,t.element);case"list":let r=t.element;return Do(e)?Vi(e,i=>Ase(i,r)):"";default:return Bc(t.type,(i,o)=>{if(i===e)return o})}}function Ise(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return Ise(e.element);case"object":return{};default:let r=D8(e.type.keys());return r!==void 0?r:C.fail("Expected 'option.type' to have entries.")}}var uw,xse,wN,Rse,dw,T5,QR,pw,fw,lq,cq,ug,uq,dq,pq,A5,I5,fq,mq,_q,x5,mw,nAe,rAe,R5,_w,iAe,oAe,aAe,Dse,sAe,D5,lAe,cAe,uAe,hw,Cse,Nse,Pse,Mse,C5,dAe,pAe,JBe=A({"src/compiler/commandLineParser.ts"(){"use strict";ia(),uw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},xse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),wN=new Map(ra(xse.entries(),([e,t])=>[""+t,e])),Rse=[["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"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.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"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.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"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],dw=Rse.map(e=>e[0]),T5=new Map(Rse),QR=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.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:f.Watch_and_Build_Modes,description:f.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:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:f.Watch_and_Build_Modes,description:f.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:Ese},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Ese},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],pw=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.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:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],fw={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,deprecatedKeys:new Set(["es3"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},lq={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,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},cq=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.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:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},fw,lq,{name:"lib",type:"list",element:{name:"lib",type:T5,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.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",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:xse,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.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:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.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:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:f.Interop_Constraints,description:f.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:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.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:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.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:f.Type_Checking,description:f.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"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.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:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.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:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:f.Interop_Constraints,description:f.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:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.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:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:f.Language_and_Environment,description:f.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:f.Language_and_Environment,description:f.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:f.Language_and_Environment,description:f.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:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:f.Modules,description:f.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:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:f.Backwards_Compatibility,description:f.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:f.Emit,description:f.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:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.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:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:f.Editor_Support,description:f.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:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.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:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:f.Backwards_Compatibility,description:f.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:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.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}],ug=[...pw,...cq],uq=ug.filter(e=>!!e.affectsSemanticDiagnostics),dq=ug.filter(e=>!!e.affectsEmit),pq=ug.filter(e=>!!e.affectsDeclarationPath),A5=ug.filter(e=>!!e.affectsModuleResolution),I5=ug.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),fq=ug.filter(e=>!!e.affectsProgramStructure),mq=ug.filter(e=>Rs(e,"transpileOptionValue")),_q=[{name:"verbose",shortName:"v",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],x5=[...pw,..._q],mw=[{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}],rAe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:TTe},R5={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},_w={alternateMode:rAe,getOptionsNameMap:$R,optionDeclarations:ug,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},oAe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:$R},aAe={alternateMode:oAe,getOptionsNameMap:TTe,optionDeclarations:x5,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Dse={optionDeclarations:mw,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},D5={getOptionsNameMap:xTe,optionDeclarations:QR,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},hw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},Cse={name:"compilerOptions",type:"object",elementOptions:RTe(),extraKeyDiagnostics:_w},Nse={name:"watchOptions",type:"object",elementOptions:DTe(),extraKeyDiagnostics:D5},Pse={name:"typeAcquisition",type:"object",elementOptions:CTe(),extraKeyDiagnostics:Dse},C5="**/*",dAe=/(^|\/)\*\*\/?$/,pAe=/^[^*?]*(?=\/[^/]*[*?])/}});function To(e,t,...r){e.trace(bU(t,...r))}function Hg(e,t){return!!e.traceResolution&&t.trace!==void 0}function gI(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+il.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function hq(e){return gI(void 0,e)}function fAe(e){if(e)return C.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function N5(e){let t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function KBe(e){let t=[];return e&1&&t.push(...Ik),e&2&&t.push(...LR),e&4&&t.push(...Ak),e&8&&t.push(".json"),t}function Lse(e){if(e)return C.assert(Y3(e.extension)),{fileName:e.path,packageId:e.packageId}}function mAe(e,t,r,i,o,s,l,u,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Yc(e)){let{resolvedFileName:g,originalPath:m}=gAe(t.path,l.host,l.traceEnabled);m&&(t={...t,path:g,originalPath:m})}return _Ae(t,r,i,o,s,l.resultFromCache,u,p)}function _Ae(e,t,r,i,o,s,l,u){return s?l?.isReadonly?{...s,failedLookupLocations:kse(s.failedLookupLocations,r),affectingLocations:kse(s.affectingLocations,i),resolutionDiagnostics:kse(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=ZR(s.failedLookupLocations,r),s.affectingLocations=ZR(s.affectingLocations,i),s.resolutionDiagnostics=ZR(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:ON(r),affectingLocations:ON(i),resolutionDiagnostics:ON(o),alternateResult:u}}function ON(e){return e.length?e:void 0}function ZR(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function kse(e,t){return e?.length?t.length?[...e,...t]:e.slice():ON(t)}function hAe(e,t,r,i){if(!Rs(e,t)){i.traceEnabled&&To(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&To(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function gq(e,t,r,i){let o=hAe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&To(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=va(Zr(r,o));return i.traceEnabled&&To(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function XBe(e,t,r){return gq(e,"typings",t,r)||gq(e,"types",t,r)}function YBe(e,t,r){return gq(e,"tsconfig",t,r)}function $Be(e,t,r){return gq(e,"main",t,r)}function QBe(e,t){let r=hAe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&To(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function ZBe(e,t){let r=QBe(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)Rs(r,l)&&!LM.tryParse(l)&&To(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=P5(r);if(!i){t.traceEnabled&&To(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,_e);return}let{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&To(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function P5(e){Kse||(Kse=new vm(Te));for(let t in e){if(!Rs(e,t))continue;let r=LM.tryParse(t);if(r!==void 0&&r.test(Kse))return{version:t,paths:e[t]}}}function FN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=li(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return eGe(r)}function eGe(e){let t;return Em(va(e),r=>{let i=Zr(r,zAe);(t??(t=[])).push(i)}),t}function tGe(e,t,r){let i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Pg(e,t,!i)===0}function gAe(e,t,r){let i=fGe(e,t,r),o=tGe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function vAe(e,t,r){let i=Sl(e,"/node_modules/@types")||Sl(e,"/node_modules/@types/")?OAe(t,r):t;return Zr(e,i)}function wse(e,t,r,i,o,s,l){C.assert(typeof e=="string","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.");let u=Hg(r,i);o&&(r=o.commandLine.options);let p=t?li(t):void 0,g=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!g&&p&&!Yc(e)&&(g=s?.getFromNonRelativeNameCache(e,l,p,o)),g)return u&&(To(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&To(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),To(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),V(g)),g;let m=FN(r,i);u&&(t===void 0?m===void 0?To(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):To(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?To(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):To(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&To(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let b=[],T=[],I=Ose(r);l!==void 0&&(I|=30);let R=dd(r);l===99&&3<=R&&R<=99&&(I|=32);let M=I&8?tb(r,l):[],N=[],O={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:b,affectingLocations:T,packageJsonInfoCache:s,features:I,conditions:M,requestContainingDirectory:p,reportDiagnostic:ne=>void N.push(ne),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},H=ue(),K=!0;H||(H=G(),K=!1);let Z;if(H){let{fileName:ne,packageId:he}=H,ye=ne,$;r.preserveSymlinks||({resolvedFileName:ye,originalPath:$}=gAe(ne,i,u)),Z={primary:K,resolvedFileName:ye,originalPath:$,packageId:he,isExternalLibraryImport:I0(ne)}}return g={resolvedTypeReferenceDirective:Z,failedLookupLocations:ON(b),affectingLocations:ON(T),resolutionDiagnostics:ON(N)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,g),Yc(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,g)),u&&V(g),g;function V(ne){var he;(he=ne.resolvedTypeReferenceDirective)!=null&&he.resolvedFileName?ne.resolvedTypeReferenceDirective.packageId?To(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ne.resolvedTypeReferenceDirective.resolvedFileName,Fy(ne.resolvedTypeReferenceDirective.packageId),ne.resolvedTypeReferenceDirective.primary):To(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ne.resolvedTypeReferenceDirective.resolvedFileName,ne.resolvedTypeReferenceDirective.primary):To(i,f.Type_reference_directive_0_was_not_resolved,e)}function ue(){if(m&&m.length)return u&&To(i,f.Resolving_with_primary_search_path_0,m.join(", ")),Zt(m,ne=>{let he=vAe(ne,e,O),ye=Ym(ne,i);if(!ye&&u&&To(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,ne),r.typeRoots){let $=n2(4,he,!ye,O);if($){let Y=vw($.path),oe=Y?eE(Y,!1,O):void 0;return Lse(gI(oe,$))}}return Lse(Use(4,he,!ye,O))});u&&To(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function G(){let ne=t&&li(t);if(ne!==void 0){let he;if(!r.typeRoots||!Sl(t,u2))if(u&&To(i,f.Looking_up_in_node_modules_folder_initial_location_0,ne),Yc(e)){let{path:ye}=AAe(ne,e);he=Sq(4,ye,!1,O,!0)}else{let ye=MAe(4,e,ne,O,void 0,void 0);he=ye&&ye.value}else u&&To(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Lse(he)}else u&&To(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Ose(e){let t=0;switch(dd(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function tb(e,t){let r=dd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),xo(i,e.customConditions)}function vq(e,t,r,i,o){let s=yw(o?.getPackageJsonInfoCache(),i,r);return Em(t,l=>{if(rc(l)!=="node_modules"){let u=Zr(l,"node_modules"),p=Zr(u,e);return eE(p,!1,s)}})}function M5(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=FN(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=va(s),u=Zr(o,l,"package.json");if(!(t.fileExists(u)&&UC(u,t).typings===null)){let g=rc(l);g.charCodeAt(0)!==46&&r.push(g)}}}}return r}function L5(e){return!!e?.contents}function Fse(e){return!!e&&!e.contents}function Wse(e){var t;if(e===null||typeof e!="object")return""+e;if(Do(e))return`[${(t=e.map(i=>Wse(i)))==null?void 0:t.join(",")}]`;let r="{";for(let i in e)Rs(e,i)&&(r+=`${i}: ${Wse(e[i])}`);return r+"}"}function yq(e,t){return t.map(r=>Wse(B3(e,r))).join("|")+`|${e.pathsBasePath}`}function bq(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:u,clear:g,getOwnMap:()=>o};function s(b){return b?p(b.commandLine.options,!1):o}function l(b){return b?p(b.commandLine.options,!0):o}function u(b){e!==b&&(e?o=p(b,!0):r.set(b,o),e=b)}function p(b,T){let I=r.get(b);if(I)return I;let R=m(b);if(I=i.get(R),!I){if(e){let M=m(e);M===R?I=o:i.has(M)||i.set(M,o)}T&&(I??(I=new Map)),I&&i.set(R,I)}return I&&r.set(b,I),I}function g(){let b=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(b&&t.set(e,b),r.set(e,o))}function m(b){let T=t.get(b);return T||t.set(b,T=yq(b,A5)),T}}function nGe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r?.get(rl(u,e,t))}function o(u,p){(r||(r=new Map)).set(rl(u,e,t),p)}function s(){r=void 0}function l(){return r}}function yAe(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function rGe(e,t,r,i){let o=bq(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(g){o.update(g)}function u(g,m){let b=rl(g,e,t);return yAe(o,m,b,()=>vI())}function p(g,m,b,T){var I,R;let M=rl(b,e,t);return(R=(I=o.getMapOfCacheRedirects(T))==null?void 0:I.get(M))==null?void 0:R.get(g,m)}}function WN(e,t){return t===void 0?e:`${t}|${e}`}function vI(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[u,p]=t.get(l);return o(s,u,p)})},size(){return e.size}};return r;function i(o,s){let l=WN(o,s);return t.set(l,[o,s]),l}}function iGe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function oGe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function aGe(e,t,r,i,o){let s=bq(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:g,clear:l,update:u};function l(){s.clear()}function u(b){s.update(b)}function p(b,T,I,R){var M,N;return C.assert(!Yc(b)),(N=(M=s.getMapOfCacheRedirects(R))==null?void 0:M.get(WN(b,T)))==null?void 0:N.get(I)}function g(b,T,I){return C.assert(!Yc(b)),yAe(s,I,WN(b,T),m)}function m(){let b=new Map;return{get:T,set:I};function T(M){return b.get(rl(M,e,t))}function I(M,N){let O=rl(M,e,t);if(b.has(O))return;b.set(O,N);let H=i(N),K=H&&R(O,H),Z=O;for(;Z!==K;){let V=li(Z);if(V===Z||b.has(V))break;b.set(V,N),Z=V}}function R(M,N){let O=rl(li(N),e,t),H=0,K=Math.min(M.length,O.length);for(;Hi,clearAllExceptPackageJsonInfoCache:g,optionsToRedirectsKey:s};function p(){g(),i.clear()}function g(){l.clear(),u.clear()}function m(b){l.update(b),u.update(b)}}function e2(e,t,r,i,o){let s=bAe(e,t,r,i,iGe,o);return s.getOrCreateCacheForModuleName=(l,u,p)=>s.getOrCreateCacheForNonRelativeName(l,u,p),s}function k5(e,t,r,i,o){return bAe(e,t,r,i,oGe,o)}function Eq(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function w5(e,t,r,i,o){return t2(e,t,Eq(r),i,o)}function EAe(e,t,r,i){let o=li(t);return r.getFromDirectoryCache(e,i,o,void 0)}function t2(e,t,r,i,o,s,l){var u,p,g;let m=Hg(r,i);s&&(r=s.commandLine.options),m&&(To(i,f.Resolving_module_0_from_1,e,t),s&&To(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let b=li(t),T=o?.getFromDirectoryCache(e,l,b,s);if(T)m&&To(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,b);else{let I=r.moduleResolution;switch(I===void 0?(I=dd(r),m&&To(i,f.Module_resolution_kind_is_not_specified_using_0,Fx[I])):m&&To(i,f.Explicitly_specified_module_resolution_kind_Colon_0,Fx[I]),(u=rd)==null||u.logStartResolveModule(e),I){case 3:T=uGe(e,t,r,i,o,s,l);break;case 99:T=dGe(e,t,r,i,o,s,l);break;case 2:T=Gse(e,t,r,i,o,s,l?tb(r,l):void 0);break;case 1:T=qse(e,t,r,i,o,s);break;case 100:T=Bse(e,t,r,i,o,s,l?tb(r,l):void 0);break;default:return C.fail(`Unexpected moduleResolution: ${I}`)}T&&T.resolvedModule&&((p=rd)==null||p.logInfoEvent(`Module "${e}" resolved to "${T.resolvedModule.resolvedFileName}"`)),(g=rd)==null||g.logStopResolveModule(T&&T.resolvedModule?""+T.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(b,s).set(e,l,T),Yc(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(b,T))}return m&&(T.resolvedModule?T.resolvedModule.packageId?To(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,T.resolvedModule.resolvedFileName,Fy(T.resolvedModule.packageId)):To(i,f.Module_name_0_was_successfully_resolved_to_1,e,T.resolvedModule.resolvedFileName):To(i,f.Module_name_0_was_not_resolved,e)),T}function SAe(e,t,r,i,o){let s=sGe(e,t,i,o);return s?s.value:Yc(t)?lGe(e,t,r,i,o):cGe(e,t,i,o)}function sGe(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:u}=i.compilerOptions;if(l&&!wp(t)){i.traceEnabled&&(s&&To(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),To(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=E3(i.compilerOptions,i.host),g=u?.configFileSpecs?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=X3(l)):void 0;return Hse(e,t,p,l,g,r,!1,i)}}function lGe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&To(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=va(Zr(r,t)),l,u;for(let p of o.compilerOptions.rootDirs){let g=va(p);Sl(g,il)||(g+=il);let m=uo(s,g)&&(u===void 0||u.lengthvoid K.push(ne),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};M&&jA(H)&&To(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Z.conditions.map(ne=>`'${ne}'`).join(", "));let V;if(H===2){let ne=l&5,he=l&-6;V=ne&&G(ne,Z)||he&&G(he,Z)||void 0}else V=G(l,Z);let ue;if(Z.resolvedPackageDirectory&&!u&&!Yc(t)){let ne=V?.value&&l&5&&!CAe(5,V.value.resolved.extension);if((m=V?.value)!=null&&m.isExternalLibraryImport&&ne&&e&8&&g?.includes("import")){nb(Z,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let he={...Z,features:Z.features&-9,reportDiagnostic:$a},ye=G(l&5,he);(b=ye?.value)!=null&&b.isExternalLibraryImport&&(ue=ye.value.resolved.path)}else if((!V?.value||ne)&&H===2){nb(Z,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let he={...Z.compilerOptions,moduleResolution:100},ye={...Z,compilerOptions:he,features:30,conditions:tb(he),reportDiagnostic:$a},$=G(l&5,ye);(T=$?.value)!=null&&T.isExternalLibraryImport&&(ue=$.value.resolved.path)}}return mAe(t,(I=V?.value)==null?void 0:I.resolved,(R=V?.value)==null?void 0:R.isExternalLibraryImport,N,O,K,Z,s,ue);function G(ne,he){let $=SAe(ne,t,r,(Y,oe,fe,Ne)=>Sq(Y,oe,fe,Ne,!0),he);if($)return tf({resolved:$,isExternalLibraryImport:I0($.path)});if(Yc(t)){let{path:Y,parts:oe}=AAe(r,t),fe=Sq(ne,Y,!1,he,!0);return fe&&tf({resolved:fe,isExternalLibraryImport:wr(oe,"node_modules")})}else{let Y;if(e&2&&uo(t,"#")&&(Y=gGe(ne,t,r,he,s,p)),!Y&&e&4&&(Y=hGe(ne,t,r,he,s,p)),!Y){if(t.includes(":")){M&&To(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,N5(ne));return}M&&To(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,N5(ne)),Y=MAe(ne,t,r,he,s,p)}return ne&4&&(Y??(Y=WAe(t,he))),Y&&{value:Y.value&&{resolved:Y.value,isExternalLibraryImport:!0}}}}}function AAe(e,t){let r=Zr(e,t),i=Wc(r),o=Zs(i);return{path:o==="."||o===".."?zc(va(r)):va(r),parts:i}}function fGe(e,t,r){if(!t.realpath)return e;let i=va(t.realpath(e));return r&&To(t,f.Resolving_real_path_for_0_result_1,e,i),i}function Sq(e,t,r,i,o){if(i.traceEnabled&&To(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,N5(e)),!Pv(t)){if(!r){let l=li(t);Ym(l,i.host)||(i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=n2(e,t,r,i);if(s){let l=o?vw(s.path):void 0,u=l?eE(l,!1,i):void 0;return gI(u,s)}}if(r||Ym(t,i.host)||(i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Use(e,t,r,i,o)}function I0(e){return e.includes(Ih)}function vw(e,t){let r=va(e),i=r.lastIndexOf(Ih);if(i===-1)return;let o=i+Ih.length,s=IAe(r,o,t);return r.charCodeAt(o)===64&&(s=IAe(r,s,t)),r.slice(0,s)}function IAe(e,t,r){let i=e.indexOf(il,t+1);return i===-1?r?e.length:t:i}function jse(e,t,r,i){return hq(n2(e,t,r,i))}function n2(e,t,r,i){let o=xAe(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=RAe(t,e,"",r,i);if(s)return s}}function xAe(e,t,r,i){if(!rc(t).includes("."))return;let s=Td(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));let l=t.substring(s.length);return i.traceEnabled&&To(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),RAe(s,e,l,r,i)}function Tq(e,t,r,i){return e&1&&Ec(t,Ik)||e&4&&Ec(t,Ak)?Aq(t,r,i)!==void 0?{path:t,ext:C3(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Tl(t,".json")?Aq(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:xAe(e,t,r,i)}function RAe(e,t,r,i,o){if(!i){let l=li(e);l&&(i=!Ym(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!Su(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,u){let p=Aq(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function Aq(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return DAe(e,t,r);let o=Gg(e)??"",s=o?_k(e,o):e;return Ke(r.compilerOptions.moduleSuffixes,l=>DAe(s+l+o,t,r))}function DAe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&To(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&To(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Use(e,t,r,i,o=!0){let s=o?eE(t,r,i):void 0,l=s&&s.contents.packageJsonContent,u=s&&O5(s,i);return gI(s,xq(e,t,r,i,l,u))}function Iq(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),u=Ose(t),p=yw(i?.getPackageJsonInfoCache(),r,t);p.conditions=tb(t),p.requestContainingDirectory=e.packageDirectory;let g=xq(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,O5(e,p));if(s=In(s,g?.path),u&8&&e.contents.packageJsonContent.exports){let m=h1([tb(t,99),tb(t,1)],Jm);for(let b of m){let T={...p,failedLookupLocations:[],conditions:b,host:r},I=mGe(e,e.contents.packageJsonContent.exports,T,l);if(I)for(let R of I)s=Ng(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function mGe(e,t,r,i){let o;if(Do(t))for(let l of t)s(l);else if(typeof t=="object"&&t!==null&&F5(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var u,p;if(typeof l=="string"&&uo(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,KBe(i),void 0,[Jne(qA(l,"**/*"),".*")]).forEach(g=>{o=Ng(o,{path:g,ext:Wx(g),resolvedUsingTsExtension:void 0})})}else{let g=Wc(l).slice(2);if(g.includes("..")||g.includes(".")||g.includes("node_modules"))return!1;let m=Zr(e.packageDirectory,l),b=bo(m,(p=(u=r.host).getCurrentDirectory)==null?void 0:p.call(u)),T=Tq(i,b,!1,r);if(T)return o=Ng(o,T,(I,R)=>I.path===R.path),!0}else if(Array.isArray(l)){for(let g of l)if(s(g))return!0}else if(typeof l=="object"&&l!==null)return Ke(Jh(l),g=>{if(g==="default"||wr(r.conditions,g)||Sw(r.conditions,g))return s(l[g]),!0})}}function yw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Hg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:et,requestContainingDirectory:void 0,reportDiagnostic:$a,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function bw(e,t){let r=Wc(e);for(r.pop();r.length>0;){let i=eE(Ry(r),!1,t);if(i)return i;r.pop()}}function O5(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=ZBe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function eE(e,t,r){var i,o,s,l,u,p;let{host:g,traceEnabled:m}=r,b=Zr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(b);return}let T=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(b);if(T!==void 0){if(L5(T))return m&&To(g,f.File_0_exists_according_to_earlier_cached_lookups,b),(s=r.affectingLocations)==null||s.push(b),T.packageDirectory===e?T:{packageDirectory:e,contents:T.contents};T.directoryExists&&m&&To(g,f.File_0_does_not_exist_according_to_earlier_cached_lookups,b),(l=r.failedLookupLocations)==null||l.push(b);return}let I=Ym(e,g);if(I&&g.fileExists(b)){let R=UC(b,g);m&&To(g,f.Found_package_json_at_0,b);let M={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(b,M),(u=r.affectingLocations)==null||u.push(b),M}else I&&m&&To(g,f.File_0_does_not_exist,b),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(b,{packageDirectory:e,directoryExists:I}),(p=r.failedLookupLocations)==null||p.push(b)}function xq(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=YBe(o,t,i):l=e&4&&XBe(o,t,i)||e&7&&$Be(o,t,i)||void 0);let u=(T,I,R,M)=>{let N=Tq(T,I,R,M);if(N)return hq(N);let O=T===4?5:T,H=M.features,K=M.candidateIsFromPackageJsonField;M.candidateIsFromPackageJsonField=!0,o?.type!=="module"&&(M.features&=-33);let Z=Sq(O,I,R,M,!1);return M.features=H,M.candidateIsFromPackageJsonField=K,Z},p=l?!Ym(li(l),i.host):void 0,g=r||!Ym(t,i.host),m=Zr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||ym(t,l))){let T=bm(t,l||m,!1);i.traceEnabled&&To(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,Te,T);let I=Hse(e,T,t,s.paths,void 0,u,p||g,i);if(I)return fAe(I.value)}let b=l&&fAe(u(e,l,p,i));if(b)return b;if(!(i.features&32))return n2(e,m,g,i)}function CAe(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function Ew(e){let t=e.indexOf(il);return e[0]==="@"&&(t=e.indexOf(il,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function F5(e){return Jn(Jh(e),t=>uo(t,"."))}function _Ge(e){return!Et(Jh(e),t=>uo(t,"."))}function hGe(e,t,r,i,o,s){var l,u;let p=bo(Zr(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=bw(p,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;let m=Wc(t),b=Wc(g.contents.packageJsonContent.name);if(!Jn(b,(N,O)=>m[O]===N))return;let T=m.slice(b.length),I=De(T)?`.${il}${T.join(il)}`:".";if(qy(i.compilerOptions)&&!I0(r))return Rq(g,e,I,i,o,s);let R=e&5,M=e&-6;return Rq(g,R,I,i,o,s)||Rq(g,M,I,i,o,s)}function Rq(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&_Ge(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Rs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return PAe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(F5(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&To(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),tf(void 0);let l=NAe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&To(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),tf(void 0)}}function gGe(e,t,r,i,o,s){var l,u;if(t==="#"||uo(t,"#/"))return i.traceEnabled&&To(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),tf(void 0);let p=bo(Zr(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=bw(p,i);if(!g)return i.traceEnabled&&To(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),tf(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&To(i.host,f.package_json_scope_0_has_no_imports_defined,g.packageDirectory),tf(void 0);let m=NAe(e,i,o,s,t,g.contents.packageJsonContent.imports,g,!0);return m||(i.traceEnabled&&To(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),tf(void 0))}function Dq(e,t){let r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function NAe(e,t,r,i,o,s,l,u){let p=PAe(e,t,r,i,o,l,u);if(!Sl(o,il)&&!o.includes("*")&&Rs(s,o)){let b=s[o];return p(b,"",!1,o)}let g=nS(tr(Jh(s),b=>b.includes("*")||Sl(b,"/")),Dq);for(let b of g)if(t.features&16&&m(b,o)){let T=s[b],I=b.indexOf("*"),R=o.substring(b.substring(0,I).length,o.length-(b.length-1-I));return p(T,R,!0,b)}else if(Sl(b,"*")&&uo(o,b.substring(0,b.length-1))){let T=s[b],I=o.substring(b.length-1);return p(T,I,!0,b)}else if(uo(o,b)){let T=s[b],I=o.substring(b.length);return p(T,I,!1,b)}function m(b,T){if(Sl(b,"*"))return!1;let I=b.indexOf("*");return I===-1?!1:uo(T,b.substring(0,I))&&Sl(T,b.substring(I+1))}}function PAe(e,t,r,i,o,s,l){return u;function u(p,g,m,b){if(typeof p=="string"){if(!m&&g.length>0&&!Sl(p,"/"))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);if(!uo(p,"./")){if(l&&!uo(p,"../")&&!uo(p,"/")&&!dp(p)){let V=m?p.replace(/\*/g,g):p+g;nb(t,f.Using_0_subpath_1_with_target_2,"imports",b,V),nb(t,f.Resolving_module_0_from_1,V,s.packageDirectory+"/");let ue=gw(t.features,V,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return tf(ue.resolvedModule?{path:ue.resolvedModule.resolvedFileName,extension:ue.resolvedModule.extension,packageId:ue.resolvedModule.packageId,originalPath:ue.resolvedModule.originalPath,resolvedUsingTsExtension:ue.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0)}let N=(wp(p)?Wc(p).slice(1):Wc(p)).slice(1);if(N.includes("..")||N.includes(".")||N.includes("node_modules"))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);let O=Zr(s.packageDirectory,p),H=Wc(g);if(H.includes("..")||H.includes(".")||H.includes("node_modules"))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);t.traceEnabled&&To(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",b,m?p.replace(/\*/g,g):p+g);let K=T(m?O.replace(/\*/g,g):O+g),Z=R(K,g,Zr(s.packageDirectory,"package.json"),l);return Z||tf(gI(s,Tq(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!De(p))return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);for(let M of p){let N=u(M,g,m,b);if(N)return N}}else{nb(t,f.Entering_conditional_exports);for(let M of Jh(p))if(M==="default"||t.conditions.includes(M)||Sw(t.conditions,M)){nb(t,f.Matched_0_condition_1,l?"imports":"exports",M);let N=p[M],O=u(N,g,m,b);if(O)return nb(t,f.Resolved_under_condition_0,M),nb(t,f.Exiting_conditional_exports),O;nb(t,f.Failed_to_resolve_under_condition_0,M)}else nb(t,f.Saw_non_matching_condition_0,M);nb(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&To(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),tf(void 0);return t.traceEnabled&&To(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);function T(M){var N,O;return M===void 0?M:bo(M,(O=(N=t.host).getCurrentDirectory)==null?void 0:O.call(N))}function I(M,N){return zc(Zr(M,N))}function R(M,N,O,H){var K,Z,V,ue;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!M.includes("/node_modules/")&&(!t.compilerOptions.configFile||ym(s.packageDirectory,T(t.compilerOptions.configFile.fileName),!Cq(t)))){let ne=Wv({useCaseSensitiveFileNames:()=>Cq(t)}),he=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let ye=T(QN(t.compilerOptions,()=>[],((Z=(K=t.host).getCurrentDirectory)==null?void 0:Z.call(K))||"",ne));he.push(ye)}else if(t.requestContainingDirectory){let ye=T(Zr(t.requestContainingDirectory,"index.ts")),$=T(QN(t.compilerOptions,()=>[ye,T(O)],((ue=(V=t.host).getCurrentDirectory)==null?void 0:ue.call(V))||"",ne));he.push($);let Y=zc($);for(;Y&&Y.length>1;){let oe=Wc(Y);oe.pop();let fe=Ry(oe);he.unshift(fe),Y=zc(fe)}}he.length>1&&t.reportDiagnostic(Vl(H?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,N===""?".":N,O));for(let ye of he){let $=G(ye);for(let Y of $)if(ym(Y,M,!Cq(t))){let oe=M.slice(Y.length+1),fe=Zr(ye,oe),Ne=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let me of Ne)if(Tl(fe,me)){let ie=qie(fe);for(let ve of ie){if(!CAe(e,ve))continue;let Le=jM(fe,ve,me,!Cq(t));if(t.host.fileExists(Le))return tf(gI(s,Tq(e,Le,!1,t)))}}}}}return;function G(ne){var he,ye;let $=t.compilerOptions.configFile?((ye=(he=t.host).getCurrentDirectory)==null?void 0:ye.call(he))||"":ne,Y=[];return t.compilerOptions.declarationDir&&Y.push(T(I($,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&Y.push(T(I($,t.compilerOptions.outDir))),Y}}}}function Sw(e,t){if(!e.includes("types")||!uo(t,"types@"))return!1;let r=LM.tryParse(t.substring(6));return r?r.test(Te):!1}function MAe(e,t,r,i,o,s){return LAe(e,t,r,i,!1,o,s)}function vGe(e,t,r){return LAe(4,e,t,r,!0,void 0,void 0)}function LAe(e,t,r,i,o,s,l){let u=i.features===0?void 0:i.features&32?99:1,p=e&5,g=e&-6;if(p){nb(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,N5(p));let b=m(p);if(b)return b}if(g&&!o)return nb(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,N5(g)),m(g);function m(b){return Em(Mu(r),T=>{if(rc(T)!=="node_modules"){let I=FAe(s,t,u,T,l,i);return I||tf(kAe(b,t,T,i,o,s,l))}})}}function kAe(e,t,r,i,o,s,l){let u=Zr(r,"node_modules"),p=Ym(u,i.host);if(!p&&i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){let g=wAe(e,t,u,p,i,s,l);if(g)return g}if(e&4){let g=Zr(u,"@types"),m=p;return p&&!Ym(g,i.host)&&(i.traceEnabled&&To(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),m=!1),wAe(4,OAe(t,i),g,m,i,s,l)}}function wAe(e,t,r,i,o,s,l){var u,p;let g=va(Zr(r,t)),{packageName:m,rest:b}=Ew(t),T=Zr(r,m),I,R=eE(g,!i,o);if(b!==""&&R&&(!(o.features&8)||!Rs(((u=I=eE(T,!i,o))==null?void 0:u.contents.packageJsonContent)??et,"exports"))){let O=n2(e,g,!i,o);if(O)return hq(O);let H=xq(e,g,!i,o,R.contents.packageJsonContent,O5(R,o));return gI(R,H)}let M=(O,H,K,Z)=>{let V=(b||!(Z.features&32))&&n2(O,H,K,Z)||xq(O,H,K,Z,R&&R.contents.packageJsonContent,R&&O5(R,Z));return!V&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&Z.features&32&&(V=n2(O,Zr(H,"index.js"),K,Z)),gI(R,V)};if(b!==""&&(R=I??eE(T,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(p=Rq(R,e,Zr(".",b),o,s,l))==null?void 0:p.value;let N=b!==""&&R?O5(R,o):void 0;if(N){o.traceEnabled&&To(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,N.version,Te,b);let O=i&&Ym(T,o.host),H=Hse(e,b,T,N.paths,void 0,M,!O,o);if(H)return H.value}return M(e,g,!i,o)}function Hse(e,t,r,i,o,s,l,u){o||(o=X3(i));let p=RU(o,t);if(p){let g=wo(p)?void 0:Rne(p,t),m=wo(p)?p:xne(p);return u.traceEnabled&&To(u.host,f.Module_name_0_matched_pattern_1,t,m),{value:Ke(i[m],T=>{let I=g?qA(T,g):T,R=va(Zr(r,I));u.traceEnabled&&To(u.host,f.Trying_substitution_0_candidate_module_location_Colon_1,T,I);let M=Gg(T);if(M!==void 0){let N=Aq(R,l,u);if(N!==void 0)return hq({path:N,ext:M,resolvedUsingTsExtension:void 0})}return s(e,R,l||!Ym(li(R),u.host),u)})}}}function OAe(e,t){let r=r2(e);return t.traceEnabled&&r!==e&&To(t.host,f.Scoped_package_detected_looking_in_0,r),r}function W5(e){return`@types/${r2(e)}`}function r2(e){if(uo(e,"@")){let t=e.replace(il,Pq);if(t!==e)return t.slice(1)}return e}function zN(e){let t=ZD(e,"@types/");return t!==e?Tw(t):e}function Tw(e){return e.includes(Pq)?"@"+e.replace(Pq,il):e}function FAe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&To(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function qse(e,t,r,i,o,s){let l=Hg(r,i),u=[],p=[],g=li(t),m=[],b={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:R=>void m.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},T=I(5)||I(2|(r.resolveJsonModule?8:0));return mAe(e,T&&T.value,T?.value&&I0(T.value.path),u,p,m,b,o);function I(R){let M=SAe(R,e,g,jse,b);if(M)return{value:M};if(Yc(e)){let N=va(Zr(g,e));return tf(jse(R,N,!1,b))}else{let N=Em(g,O=>{let H=FAe(o,e,void 0,O,s,b);if(H)return H;let K=va(Zr(O,e));return tf(jse(R,K,!1,b))});if(N)return N;if(R&5){let O=vGe(e,g,b);return R&4&&(O??(O=WAe(e,b))),O}}}}function WAe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=vAe(r,e,t),o=Ym(r,t.host);!o&&t.traceEnabled&&To(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=n2(4,i,!o,t);if(s){let u=vw(s.path),p=u?eE(u,!1,t):void 0;return tf(gI(p,s))}let l=Use(4,i,!o,t);if(l)return tf(l)}}function i2(e,t){return!!e.allowImportingTsExtensions||t&&Su(t)}function Jse(e,t,r,i,o,s){let l=Hg(r,i);l&&To(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let u=[],p=[],g=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:T=>void g.push(T),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},b=kAe(4,e,o,m,!1,void 0,void 0);return _Ae(b,!0,u,p,g,m.resultFromCache,void 0)}function tf(e){return e!==void 0?{value:e}:void 0}function nb(e,t,...r){e.traceEnabled&&To(e.host,t,...r)}function Cq(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Kse,zAe,Nq,Ih,Pq,yGe=A({"src/compiler/moduleNameResolver.ts"(){"use strict";ia(),zAe=Zr("node_modules","@types"),Nq=(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))(Nq||{}),Ih="/node_modules/",Pq="__"}});function qg(e,t){return e.body&&!e.body.parent&&(qa(e.body,e),Uy(e.body,!1)),e.body?Xse(e.body,t):1}function Xse(e,t=new Map){let r=ss(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=bGe(e,t);return t.set(r,i),i}function bGe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(x1(e))return 2;break;case 272:case 271:if(!ei(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=EGe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ho(e,o=>{let s=Xse(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:C.assertNever(s)}}),i}case 267:return qg(e,t);case 80:if(e.flags&4096)return 0}return 1}function EGe(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Xo(i)||k_(i)||no(i)){let o=i.statements,s;for(let l of o)if(nL(l,r)){l.parent||(qa(l,i),Uy(l,!1));let u=Xse(l,t);if((s===void 0||u>s)&&(s=u),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function yI(e){return C.attachFlowNodeDebugInfo(e),e}function Yse(e,t){var r,i;nl("beforeBind"),(r=rd)==null||r.logStartBindFile(""+e.fileName),GAe(e,t),(i=rd)==null||i.logStopBindFile(),nl("afterBind"),Yp("Bind","beforeBind","afterBind")}function SGe(){var e,t,r,i,o,s,l,u,p,g,m,b,T,I,R,M,N,O,H,K,Z,V,ue=!1,G=0,ne,he,ye={flags:1},$={flags:1},Y=q();return fe;function oe(W,Ae,...st){return Yf(Vn(W)||e,W,Ae,...st)}function fe(W,Ae){var st,Ht;e=W,t=Ae,r=as(t),V=Ne(e,Ae),he=new Set,G=0,ne=lu.getSymbolConstructor(),C.attachFlowNodeDebugInfo(ye),C.attachFlowNodeDebugInfo($),e.locals||((st=lr)==null||st.push(lr.Phase.Bind,"bindSourceFile",{path:e.path},!0),we(e),(Ht=lr)==null||Ht.pop(),e.symbolCount=G,e.classifiableNames=he,uu()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,u=void 0,p=void 0,g=!1,m=void 0,b=void 0,T=void 0,I=void 0,R=void 0,M=void 0,N=void 0,H=void 0,K=!1,ue=!1,Z=0}function Ne(W,Ae){return ud(Ae,"alwaysStrict")&&!W.isDeclarationFile?!0:!!W.externalModuleIndicator}function me(W,Ae){return G++,new ne(W,Ae)}function ie(W,Ae,st){W.flags|=st,Ae.symbol=W,W.declarations=Ng(W.declarations,Ae),st&1955&&!W.exports&&(W.exports=ua()),st&6240&&!W.members&&(W.members=ua()),W.constEnumOnlyModule&&W.flags&304&&(W.constEnumOnlyModule=!1),st&111551&&VL(W,Ae)}function ve(W){if(W.kind===277)return W.isExportEquals?"export=":"default";let Ae=Oo(W);if(Ae){if(Lu(W)){let st=Zf(Ae);return I_(W)?"__global":`"${st}"`}if(Ae.kind===167){let st=Ae.expression;if(Qp(st))return ml(st.text);if(_3(st))return ma(st.operator)+st.operand.text;C.fail("Only computed properties with literal names have declaration names")}if(Xi(Ae)){let st=su(W);if(!st)return;let Ht=st.symbol;return ZL(Ht,Ae.escapedText)}return e_(Ae)?HA(Ae):R_(Ae)?kC(Ae):void 0}switch(W.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(Wl(W)===2)return"export=";C.fail("Unknown binary declaration kind");break;case 324:return pR(W)?"__new":"__call";case 169:return C.assert(W.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${C.formatSyntaxKind(W.parent.kind)}, expected JSDocFunctionType`),"arg"+W.parent.parameters.indexOf(W)}}function Le(W){return od(W)?Ds(W.name):Hi(C.checkDefined(ve(W)))}function He(W,Ae,st,Ht,rr,si,$r){C.assert($r||!By(st));let so=ei(st,2048)||Ju(st)&&st.name.escapedText==="default",Oa=$r?"__computed":so&&Ae?"default":ve(st),Fa;if(Oa===void 0)Fa=me(0,"__missing");else if(Fa=W.get(Oa),Ht&2885600&&he.add(Oa),!Fa)W.set(Oa,Fa=me(0,Oa)),si&&(Fa.isReplaceableByMethod=!0);else{if(si&&!Fa.isReplaceableByMethod)return Fa;if(Fa.flags&rr){if(Fa.isReplaceableByMethod)W.set(Oa,Fa=me(0,Oa));else if(!(Ht&3&&Fa.flags&67108864)){od(st)&&qa(st.name,st);let wl=Fa.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,fu=!0;(Fa.flags&384||Ht&384)&&(wl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,fu=!1);let xc=!1;De(Fa.declarations)&&(so||Fa.declarations&&Fa.declarations.length&&st.kind===277&&!st.isExportEquals)&&(wl=f.A_module_cannot_have_multiple_default_exports,fu=!1,xc=!0);let Ip=[];Dm(st)&&Fl(st.type)&&ei(st,32)&&Fa.flags&2887656&&Ip.push(oe(st,f.Did_you_mean_0,`export type { ${Hi(st.name.escapedText)} }`));let Vd=Oo(st)||st;Ke(Fa.declarations,(ps,Lm)=>{let km=Oo(ps)||ps,Ji=fu?oe(km,wl,Le(ps)):oe(km,wl);e.bindDiagnostics.push(xc?ka(Ji,oe(Vd,Lm===0?f.Another_export_default_is_here:f.and_here)):Ji),xc&&Ip.push(oe(km,f.The_first_export_default_is_here))});let cb=fu?oe(Vd,wl,Le(st)):oe(Vd,wl);e.bindDiagnostics.push(ka(cb,...Ip)),Fa=me(0,Oa)}}}return ie(Fa,st,Ht),Fa.parent?C.assert(Fa.parent===Ae,"Existing symbol parent should match new one"):Fa.parent=Ae,Fa}function Ee(W,Ae,st){let Ht=!!(t0(W)&32)||Ce(W);if(Ae&2097152)return W.kind===281||W.kind===271&&Ht?He(o.symbol.exports,o.symbol,W,Ae,st):(C.assertNode(o,ph),He(o.locals,void 0,W,Ae,st));if(Qf(W)&&C.assert(cr(W)),!Lu(W)&&(Ht||o.flags&128)){if(!ph(o)||!o.locals||ei(W,2048)&&!ve(W))return He(o.symbol.exports,o.symbol,W,Ae,st);let rr=Ae&111551?1048576:0,si=He(o.locals,void 0,W,rr,st);return si.exportSymbol=He(o.symbol.exports,o.symbol,W,Ae,st),W.localSymbol=si,si}else return C.assertNode(o,ph),He(o.locals,void 0,W,Ae,st)}function Ce(W){if(W.parent&&Jl(W)&&(W=W.parent),!Qf(W))return!1;if(!qk(W)&&W.fullName)return!0;let Ae=Oo(W);return Ae?!!(sk(Ae.parent)&&Ql(Ae.parent)||qu(Ae.parent)&&t0(Ae.parent)&32):!1}function Me(W,Ae){let st=o,Ht=s,rr=l;if(Ae&1?(W.kind!==219&&(s=o),o=l=W,Ae&32&&(o.locals=ua(),or(o))):Ae&2&&(l=W,Ae&32&&(l.locals=void 0)),Ae&4){let si=m,$r=b,so=T,Oa=I,Fa=N,wl=H,fu=K,xc=Ae&16&&!ei(W,1024)&&!W.asteriskToken&&!!vS(W)||W.kind===175;xc||(m=yI({flags:2}),Ae&144&&(m.node=W)),I=xc||W.kind===176||cr(W)&&(W.kind===262||W.kind===218)?Nn():void 0,N=void 0,b=void 0,T=void 0,H=void 0,K=!1,je(W),W.flags&=-5633,!(m.flags&1)&&Ae&8&&Xf(W.body)&&(W.flags|=512,K&&(W.flags|=1024),W.endFlowNode=m),W.kind===312&&(W.flags|=Z,W.endFlowNode=m),I&&(Yt(I,m),m=nr(I),(W.kind===176||W.kind===175||cr(W)&&(W.kind===262||W.kind===218))&&(W.returnFlowNode=m)),xc||(m=si),b=$r,T=so,I=Oa,N=Fa,H=wl,K=fu}else Ae&64?(g=!1,je(W),C.assertNotNode(W,Ve),W.flags=g?W.flags|256:W.flags&-257):je(W);o=st,s=Ht,l=rr}function Fe(W){At(W,Ae=>Ae.kind===262?we(Ae):void 0),At(W,Ae=>Ae.kind!==262?we(Ae):void 0)}function At(W,Ae=we){W!==void 0&&Ke(W,Ae)}function Se(W){Ho(W,we,At)}function je(W){let Ae=ue;if(ue=!1,jt(W)){Se(W),St(W),ue=Ae;return}switch(W.kind>=243&&W.kind<=259&&!t.allowUnreachableCode&&(W.flowNode=m),W.kind){case 247:ro(W);break;case 246:No(W);break;case 248:_a(W);break;case 249:case 250:ja(W);break;case 245:En(W);break;case 253:case 257:wn(W);break;case 252:case 251:ft(W);break;case 258:Nt(W);break;case 255:le(W);break;case 269:We(W);break;case 296:pt(W);break;case 244:j(W);break;case 256:xt(W);break;case 224:yn(W);break;case 225:fn(W);break;case 226:if(Bv(W)){ue=Ae,mn(W);return}Y(W);break;case 220:Oe(W);break;case 227:Lt(W);break;case 260:ae(W);break;case 211:case 212:yi(W);break;case 213:Di(W);break;case 235:Gn(W);break;case 353:case 345:case 347:ke(W);break;case 312:{Fe(W.statements),we(W.endOfFileToken);break}case 241:case 268:Fe(W.statements);break;case 208:J(W);break;case 169:pe(W);break;case 210:case 209:case 303:case 230:ue=Ae;default:Se(W);break}St(W),ue=Ae}function at(W){switch(W.kind){case 80:case 81:case 110:case 211:case 212:return yt(W);case 213:return Qe(W);case 217:if(qR(W))return!1;case 235:return at(W.expression);case 226:return nn(W);case 224:return W.operator===54&&at(W.operand);case 221:return at(W.expression)}return!1}function Bt(W){return VC(W)||(zr(W)||lI(W)||Wd(W))&&Bt(W.expression)||_r(W)&&W.operatorToken.kind===28&&Bt(W.right)||Ys(W)&&(Qp(W.argumentExpression)||zl(W.argumentExpression))&&Bt(W.expression)||Mc(W)&&Bt(W.left)}function yt(W){return Bt(W)||Hu(W)&&yt(W.expression)}function Qe(W){if(W.arguments){for(let Ae of W.arguments)if(yt(Ae))return!0}return!!(W.expression.kind===211&&yt(W.expression.expression))}function gt(W,Ae){return zR(W)&&rn(W.expression)&&us(Ae)}function nn(W){switch(W.operatorToken.kind){case 64:case 76:case 77:case 78:return yt(W.left);case 35:case 36:case 37:case 38:return rn(W.left)||rn(W.right)||gt(W.right,W.left)||gt(W.left,W.right)||gC(W.right)&&at(W.left)||gC(W.left)&&at(W.right);case 104:return rn(W.left);case 103:return at(W.right);case 28:return at(W.right)}return!1}function rn(W){switch(W.kind){case 217:return rn(W.expression);case 226:switch(W.operatorToken.kind){case 64:return rn(W.left);case 28:return rn(W.right)}}return yt(W)}function Nn(){return yI({flags:4,antecedents:void 0})}function Xn(){return yI({flags:8,antecedents:void 0})}function _n(W,Ae,st){return yI({flags:1024,target:W,antecedents:Ae,antecedent:st})}function Qt(W){W.flags|=W.flags&2048?4096:2048}function Yt(W,Ae){!(Ae.flags&1)&&!wr(W.antecedents,Ae)&&((W.antecedents||(W.antecedents=[])).push(Ae),Qt(Ae))}function vi(W,Ae,st){return Ae.flags&1?Ae:st?(st.kind===112&&W&64||st.kind===97&&W&32)&&!b6(st)&&!GV(st.parent)?ye:at(st)?(Qt(Ae),yI({flags:W,antecedent:Ae,node:st})):Ae:W&32?Ae:ye}function ho(W,Ae,st,Ht){return Qt(W),yI({flags:128,antecedent:W,switchStatement:Ae,clauseStart:st,clauseEnd:Ht})}function ki(W,Ae,st){Qt(Ae);let Ht=yI({flags:W,antecedent:Ae,node:st});return N&&Yt(N,Ht),Ht}function Ro(W,Ae){return Qt(W),yI({flags:512,antecedent:W,node:Ae})}function nr(W){let Ae=W.antecedents;return Ae?Ae.length===1?Ae[0]:W:ye}function qr(W){let Ae=W.parent;switch(Ae.kind){case 245:case 247:case 246:return Ae.expression===W;case 248:case 227:return Ae.condition===W}return!1}function xr(W){for(;;)if(W.kind===217)W=W.expression;else if(W.kind===224&&W.operator===54)W=W.operand;else return ak(W)}function ln(W){return sU(vs(W))}function tt(W){for(;Wd(W.parent)||Qy(W.parent)&&W.parent.operator===54;)W=W.parent;return!qr(W)&&!xr(W.parent)&&!(Hu(W.parent)&&W.parent.expression===W)}function zt(W,Ae,st,Ht){let rr=R,si=M;R=st,M=Ht,W(Ae),R=rr,M=si}function Rn(W,Ae,st){zt(we,W,Ae,st),(!W||!ln(W)&&!xr(W)&&!(Hu(W)&&pC(W)))&&(Yt(Ae,vi(32,m,W)),Yt(st,vi(64,m,W)))}function ui(W,Ae,st){let Ht=b,rr=T;b=Ae,T=st,we(W),b=Ht,T=rr}function bi(W,Ae){let st=H;for(;st&&W.parent.kind===256;)st.continueTarget=Ae,st=st.next,W=W.parent;return Ae}function ro(W){let Ae=bi(W,Xn()),st=Nn(),Ht=Nn();Yt(Ae,m),m=Ae,Rn(W.expression,st,Ht),m=nr(st),ui(W.statement,Ht,Ae),Yt(Ae,m),m=nr(Ht)}function No(W){let Ae=Xn(),st=bi(W,Nn()),Ht=Nn();Yt(Ae,m),m=Ae,ui(W.statement,Ht,st),Yt(st,m),m=nr(st),Rn(W.expression,Ae,Ht),m=nr(Ht)}function _a(W){let Ae=bi(W,Xn()),st=Nn(),Ht=Nn();we(W.initializer),Yt(Ae,m),m=Ae,Rn(W.condition,st,Ht),m=nr(st),ui(W.statement,Ht,Ae),we(W.incrementor),Yt(Ae,m),m=nr(Ht)}function ja(W){let Ae=bi(W,Xn()),st=Nn();we(W.expression),Yt(Ae,m),m=Ae,W.kind===250&&we(W.awaitModifier),Yt(st,m),we(W.initializer),W.initializer.kind!==261&&ht(W.initializer),ui(W.statement,st,Ae),Yt(Ae,m),m=nr(st)}function En(W){let Ae=Nn(),st=Nn(),Ht=Nn();Rn(W.expression,Ae,st),m=nr(Ae),we(W.thenStatement),Yt(Ht,m),m=nr(st),we(W.elseStatement),Yt(Ht,m),m=nr(Ht)}function wn(W){we(W.expression),W.kind===253&&(K=!0,I&&Yt(I,m)),m=ye}function Ue(W){for(let Ae=H;Ae;Ae=Ae.next)if(Ae.name===W)return Ae}function mt(W,Ae,st){let Ht=W.kind===252?Ae:st;Ht&&(Yt(Ht,m),m=ye)}function ft(W){if(we(W.label),W.label){let Ae=Ue(W.label.escapedText);Ae&&(Ae.referenced=!0,mt(W,Ae.breakTarget,Ae.continueTarget))}else mt(W,b,T)}function Nt(W){let Ae=I,st=N,Ht=Nn(),rr=Nn(),si=Nn();if(W.finallyBlock&&(I=rr),Yt(si,m),N=si,we(W.tryBlock),Yt(Ht,m),W.catchClause&&(m=nr(si),si=Nn(),Yt(si,m),N=si,we(W.catchClause),Yt(Ht,m)),I=Ae,N=st,W.finallyBlock){let $r=Nn();$r.antecedents=xo(xo(Ht.antecedents,si.antecedents),rr.antecedents),m=$r,we(W.finallyBlock),m.flags&1?m=ye:(I&&rr.antecedents&&Yt(I,_n($r,rr.antecedents,m)),N&&si.antecedents&&Yt(N,_n($r,si.antecedents,m)),m=Ht.antecedents?_n($r,Ht.antecedents,m):ye)}else m=nr(Ht)}function le(W){let Ae=Nn();we(W.expression);let st=b,Ht=O;b=Ae,O=m,we(W.caseBlock),Yt(Ae,m);let rr=Ke(W.caseBlock.clauses,si=>si.kind===297);W.possiblyExhaustive=!rr&&!Ae.antecedents,rr||Yt(Ae,ho(O,W,0,0)),b=st,O=Ht,m=nr(Ae)}function We(W){let Ae=W.clauses,st=W.parent.expression.kind===112||at(W.parent.expression),Ht=ye;for(let rr=0;rrKl(st)||Ll(st))}function Kr(W){W.flags&33554432&&!Ci(W)?W.flags|=128:W.flags&=-129}function Po(W){if(Kr(W),Lu(W))if(ei(W,32)&&Ms(W,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),fj(W))Dn(W);else{let Ae;if(W.name.kind===11){let{text:Ht}=W.name;Ae=DR(Ht),Ae===void 0&&Ms(W.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Ht)}let st=Vr(W,512,110735);e.patternAmbientModules=In(e.patternAmbientModules,Ae&&!wo(Ae)?{pattern:Ae,symbol:st}:void 0)}else{let Ae=Dn(W);if(Ae!==0){let{symbol:st}=W;st.constEnumOnlyModule=!(st.flags&304)&&Ae===2&&st.constEnumOnlyModule!==!1}}}function Dn(W){let Ae=qg(W),st=Ae!==0;return Vr(W,st?512:1024,st?110735:0),Ae}function Fs(W){let Ae=me(131072,ve(W));ie(Ae,W,131072);let st=me(2048,"__type");ie(st,W,2048),st.members=ua(),st.members.set(Ae.escapedName,Ae)}function Yl(W){return Gs(W,4096,"__object")}function Fo(W){return Gs(W,4096,"__jsxAttributes")}function ds(W,Ae,st){return Vr(W,Ae,st)}function Gs(W,Ae,st){let Ht=me(Ae,st);return Ae&106508&&(Ht.parent=o.symbol),ie(Ht,W,Ae),Ht}function hl(W,Ae,st){switch(l.kind){case 267:Ee(W,Ae,st);break;case 312:if(Fp(o)){Ee(W,Ae,st);break}default:C.assertNode(l,ph),l.locals||(l.locals=ua(),or(l)),He(l.locals,void 0,W,Ae,st)}}function uu(){if(!p)return;let W=o,Ae=u,st=l,Ht=i,rr=m;for(let si of p){let $r=si.parent.parent;o=bj($r)||e,l=_h($r)||e,m=yI({flags:2}),i=si,we(si.typeExpression);let so=Oo(si);if((qk(si)||!si.fullName)&&so&&sk(so.parent)){let Oa=Ql(so.parent);if(Oa){gl(e.symbol,so.parent,Oa,!!zn(so,wl=>zr(wl)&&wl.name.escapedText==="prototype"),!1);let Fa=o;switch(BL(so.parent)){case 1:case 2:Fp(e)?o=e:o=void 0;break;case 4:o=so.parent.expression;break;case 3:o=so.parent.expression.name;break;case 5:o=tE(e,so.parent.expression)?e:zr(so.parent.expression)?so.parent.expression.name:so.parent.expression;break;case 0:return C.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Ee(si,524288,788968),o=Fa}}else qk(si)||!si.fullName||si.fullName.kind===80?(i=si.parent,hl(si,524288,788968)):we(si.fullName)}o=W,u=Ae,l=st,i=Ht,m=rr}function yo(W){if(!e.parseDiagnostics.length&&!(W.flags&33554432)&&!(W.flags&16777216)&&!Wie(W)){let Ae=n0(W);if(Ae===void 0)return;V&&Ae>=119&&Ae<=127?e.bindDiagnostics.push(oe(W,pa(W),Ds(W))):Ae===135?ac(e)&&Q6(W)?e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ds(W))):W.flags&65536&&e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ds(W))):Ae===127&&W.flags&16384&&e.bindDiagnostics.push(oe(W,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ds(W)))}}function pa(W){return su(W)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function du(W){W.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(oe(W,f.constructor_is_a_reserved_word,Ds(W))))}function Is(W){V&&Zd(W.left)&&zv(W.operatorToken.kind)&&sc(W,W.left)}function Pa(W){V&&W.variableDeclaration&&sc(W,W.variableDeclaration.name)}function fl(W){if(V&&W.expression.kind===80){let Ae=hS(e,W.expression);e.bindDiagnostics.push(Qc(e,Ae.start,Ae.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Mf(W){return Ve(W)&&(W.escapedText==="eval"||W.escapedText==="arguments")}function sc(W,Ae){if(Ae&&Ae.kind===80){let st=Ae;if(Mf(st)){let Ht=hS(e,Ae);e.bindDiagnostics.push(Qc(e,Ht.start,Ht.length,Rl(W),Sr(st)))}}}function Rl(W){return su(W)?f.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?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function ll(W){V&&sc(W,W.name)}function Wo(W){return su(W)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function on(W){if(r<2&&l.kind!==312&&l.kind!==267&&!qx(l)){let Ae=hS(e,W);e.bindDiagnostics.push(Qc(e,Ae.start,Ae.length,Wo(W)))}}function Vs(W){V&&sc(W,W.operand)}function nu(W){V&&(W.operator===46||W.operator===47)&&sc(W,W.operand)}function pu(W){V&&Ms(W,f.with_statements_are_not_allowed_in_strict_mode)}function Tp(W){V&&as(t)>=2&&(Gre(W.statement)||Ml(W.statement))&&Ms(W.label,f.A_label_is_not_allowed_here)}function Ms(W,Ae,...st){let Ht=hh(e,W.pos);e.bindDiagnostics.push(Qc(e,Ht.start,Ht.length,Ae,...st))}function Ic(W,Ae,st){de(W,Ae,Ae,st)}function de(W,Ae,st,Ht){ee(W,{pos:s0(Ae,e),end:st.end},Ht)}function ee(W,Ae,st){let Ht=Qc(e,Ae.pos,Ae.end-Ae.pos,st);W?e.bindDiagnostics.push(Ht):e.bindSuggestionDiagnostics=In(e.bindSuggestionDiagnostics,{...Ht,category:2})}function we(W){if(!W)return;qa(W,i),lr&&(W.tracingPath=e.path);let Ae=V;if(gr(W),W.kind>165){let st=i;i=W;let Ht=Mq(W);Ht===0?je(W):Me(W,Ht),i=st}else{let st=i;W.kind===1&&(i=W),St(W),i=st}V=Ae}function St(W){if(Op(W))if(cr(W))for(let Ae of W.jsDoc)we(Ae);else for(let Ae of W.jsDoc)qa(Ae,W),Uy(Ae,!1)}function pn(W){if(!V)for(let Ae of W){if(!Am(Ae))return;if(Tr(Ae)){V=!0;return}}}function Tr(W){let Ae=A1(e,W.expression);return Ae==='"use strict"'||Ae==="'use strict'"}function gr(W){switch(W.kind){case 80:if(W.flags&4096){let $r=W.parent;for(;$r&&!Qf($r);)$r=$r.parent;hl($r,524288,788968);break}case 110:return m&&(bt(W)||i.kind===304)&&(W.flowNode=m),yo(W);case 166:m&&r3(W)&&(W.flowNode=m);break;case 236:case 108:W.flowNode=m;break;case 81:return du(W);case 211:case 212:let Ae=W;m&&Bt(Ae)&&(Ae.flowNode=m),Pie(Ae)&&qn(Ae),cr(Ae)&&e.commonJsModuleIndicator&&tg(Ae)&&!z5(l,"module")&&He(e.locals,void 0,Ae.expression,134217729,111550);break;case 226:switch(Wl(W)){case 1:ip(W);break;case 2:Oc(W);break;case 3:na(W.left,W);break;case 6:So(W);break;case 4:md(W);break;case 5:let $r=W.left.expression;if(cr(W)&&Ve($r)){let so=z5(l,$r.escapedText);if(Z6(so?.valueDeclaration)){md(W);break}}vc(W);break;case 0:break;default:C.fail("Unknown binary expression special property assignment kind")}return Is(W);case 299:return Pa(W);case 220:return fl(W);case 225:return Vs(W);case 224:return nu(W);case 254:return pu(W);case 256:return Tp(W);case 197:g=!0;return;case 182:break;case 168:return lt(W);case 169:return Yg(W);case 260:return zu(W);case 208:return W.flowNode=m,zu(W);case 172:case 171:return jr(W);case 303:case 304:return Gd(W,4,0);case 306:return Gd(W,8,900095);case 179:case 180:case 181:return Vr(W,131072,0);case 174:case 173:return Gd(W,8192|(W.questionToken?16777216:0),Im(W)?0:103359);case 262:return Ap(W);case 176:return Vr(W,16384,0);case 177:return Gd(W,32768,46015);case 178:return Gd(W,65536,78783);case 184:case 324:case 330:case 185:return Fs(W);case 187:case 329:case 200:return Ni(W);case 339:return Dt(W);case 210:return Yl(W);case 218:case 219:return fg(W);case 213:switch(Wl(W)){case 7:return $l(W);case 8:return Hc(W);case 9:return Qo(W);case 0:break;default:return C.fail("Unknown call expression assignment declaration kind")}cr(W)&&j_(W);break;case 231:case 263:return V=!0,Dh(W);case 264:return hl(W,64,788872);case 265:return hl(W,524288,788968);case 266:return Xg(W);case 267:return Po(W);case 292:return Fo(W);case 291:return ds(W,4,0);case 271:case 274:case 276:case 281:return Vr(W,2097152,2097152);case 270:return Uc(W);case 273:return gc(W);case 278:return js(W);case 277:return El(W);case 312:return pn(W.statements),Lr();case 241:if(!qx(W.parent))return;case 268:return pn(W.statements);case 348:if(W.parent.kind===330)return Yg(W);if(W.parent.kind!==329)break;case 355:let rr=W,si=rr.isBracketed||rr.typeExpression&&rr.typeExpression.type.kind===323?16777220:4;return Vr(rr,si,0);case 353:case 345:case 347:return(p||(p=[])).push(W);case 346:return we(W.typeExpression)}}function jr(W){let Ae=kd(W),st=Ae?98304:4,Ht=Ae?13247:0;return Gd(W,st|(W.questionToken?16777216:0),Ht)}function Ni(W){return Gs(W,2048,"__type")}function Lr(){if(Kr(e),ac(e))$o();else if($f(e)){$o();let W=e.symbol;He(e.symbol.exports,e.symbol,e,4,-1),e.symbol=W}}function $o(){Gs(e,512,`"${Td(e.fileName)}"`)}function El(W){if(!o.symbol||!o.symbol.exports)Gs(W,111551,ve(W));else{let Ae=mR(W)?2097152:4,st=He(o.symbol.exports,o.symbol,W,Ae,-1);W.isExportEquals&&VL(st,W)}}function Uc(W){Et(W.modifiers)&&e.bindDiagnostics.push(oe(W,f.Modifiers_cannot_appear_here));let Ae=no(W.parent)?ac(W.parent)?W.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;Ae?e.bindDiagnostics.push(oe(W,Ae)):(e.symbol.globalExports=e.symbol.globalExports||ua(),He(e.symbol.globalExports,e.symbol,W,2097152,2097152))}function js(W){!o.symbol||!o.symbol.exports?Gs(W,8388608,ve(W)):W.exportClause?Sh(W.exportClause)&&(qa(W.exportClause,W),He(o.symbol.exports,o.symbol,W.exportClause,2097152,2097152)):He(o.symbol.exports,o.symbol,W,8388608,0)}function gc(W){W.name&&Vr(W,2097152,2097152)}function Ts(W){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=W,e.externalModuleIndicator||$o()),!0)}function Hc(W){if(!Ts(W))return;let Ae=Lf(W.arguments[0],void 0,(st,Ht)=>(Ht&&ie(Ht,st,67110400),Ht));Ae&&He(Ae.exports,Ae,W,1048580,0)}function ip(W){if(!Ts(W))return;let Ae=Lf(W.left.expression,void 0,(st,Ht)=>(Ht&&ie(Ht,st,67110400),Ht));if(Ae){let Ht=$L(W.right)&&(yS(W.left.expression)||tg(W.left.expression))?2097152:1048580;qa(W.left,W),He(Ae.exports,Ae,W.left,Ht,0)}}function Oc(W){if(!Ts(W))return;let Ae=FL(W.right);if(dU(Ae)||o===e&&tE(e,Ae))return;if(wa(Ae)&&Jn(Ae.properties,np)){Ke(Ae.properties,lm);return}let st=mR(W)?2097152:1049092,Ht=He(e.symbol.exports,e.symbol,W,st|67108864,0);VL(Ht,W)}function lm(W){He(e.symbol.exports,e.symbol,W,69206016,0)}function md(W){if(C.assert(cr(W)),_r(W)&&zr(W.left)&&Xi(W.left.name)||zr(W)&&Xi(W.name))return;let st=wd(W,!1,!1);switch(st.kind){case 262:case 218:let Ht=st.symbol;if(_r(st.parent)&&st.parent.operatorToken.kind===64){let $r=st.parent.left;N1($r)&&Vy($r.expression)&&(Ht=Dd($r.expression.expression,s))}Ht&&Ht.valueDeclaration&&(Ht.members=Ht.members||ua(),By(W)?Pe(W,Ht,Ht.members):He(Ht.members,Ht,W,67108868,0),ie(Ht,Ht.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let rr=st.parent,si=sa(st)?rr.symbol.exports:rr.symbol.members;By(W)?Pe(W,rr.symbol,si):He(si,rr.symbol,W,67108868,0,!0);break;case 312:if(By(W))break;st.commonJsModuleIndicator?He(st.symbol.exports,st.symbol,W,1048580,0):Vr(W,1,111550);break;case 267:break;default:C.failBadSyntaxKind(st)}}function Pe(W,Ae,st){He(st,Ae,W,4,0,!0,!0),wt(W,Ae)}function wt(W,Ae){Ae&&(Ae.assignmentDeclarationMembers||(Ae.assignmentDeclarationMembers=new Map)).set(ss(W),W)}function qn(W){W.expression.kind===110?md(W):N1(W)&&W.parent.parent.kind===312&&(Vy(W.expression)?na(W,W.parent):cl(W))}function So(W){qa(W.left,W),qa(W.right,W),qc(W.left.expression,W.left,!1,!0)}function Qo(W){let Ae=Dd(W.arguments[0].expression);Ae&&Ae.valueDeclaration&&ie(Ae,Ae.valueDeclaration,32),Bl(W,Ae,!0)}function na(W,Ae){let st=W.expression,Ht=st.expression;qa(Ht,st),qa(st,W),qa(W,Ae),qc(Ht,W,!0,!0)}function $l(W){let Ae=Dd(W.arguments[0]),st=W.parent.parent.kind===312;Ae=gl(Ae,W.arguments[0],st,!1,!1),Bl(W,Ae,!1)}function vc(W){var Ae;let st=Dd(W.left.expression,l)||Dd(W.left.expression,o);if(!cr(W)&&!Mie(st))return;let Ht=IR(W.left);if(!(Ve(Ht)&&((Ae=z5(o,Ht.escapedText))==null?void 0:Ae.flags)&2097152))if(qa(W.left,W),qa(W.right,W),Ve(W.left.expression)&&o===e&&tE(e,W.left.expression))ip(W);else if(By(W)){Gs(W,67108868,"__computed");let rr=gl(st,W.left.expression,Ql(W.left),!1,!1);wt(W,rr)}else cl(aa(W.left,ES))}function cl(W){C.assert(!Ve(W)),qa(W.expression,W),qc(W.expression,W,!1,!1)}function gl(W,Ae,st,Ht,rr){return W?.flags&2097152||(st&&!Ht&&(W=Lf(Ae,W,(so,Oa,Fa)=>{if(Oa)return ie(Oa,so,67110400),Oa;{let wl=Fa?Fa.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=ua());return He(wl,Fa,so,67110400,110735)}})),rr&&W&&W.valueDeclaration&&ie(W,W.valueDeclaration,32)),W}function Bl(W,Ae,st){if(!Ae||!cf(Ae))return;let Ht=st?Ae.members||(Ae.members=ua()):Ae.exports||(Ae.exports=ua()),rr=0,si=0;zs(PA(W))?(rr=8192,si=103359):la(W)&&bS(W)&&(Et(W.arguments[2].properties,$r=>{let so=Oo($r);return!!so&&Ve(so)&&Sr(so)==="set"})&&(rr|=65540,si|=78783),Et(W.arguments[2].properties,$r=>{let so=Oo($r);return!!so&&Ve(so)&&Sr(so)==="get"})&&(rr|=32772,si|=46015)),rr===0&&(rr=4,si=0),He(Ht,Ae,W,rr|67108864,si&-67108865)}function Ql(W){return _r(W.parent)?Bd(W.parent).parent.kind===312:W.parent.parent.kind===312}function qc(W,Ae,st,Ht){let rr=Dd(W,l)||Dd(W,o),si=Ql(Ae);rr=gl(rr,Ae.expression,si,st,Ht),Bl(Ae,rr,st)}function cf(W){if(W.flags&1072)return!0;let Ae=W.valueDeclaration;if(Ae&&la(Ae))return!!PA(Ae);let st=Ae?Oi(Ae)?Ae.initializer:_r(Ae)?Ae.right:zr(Ae)&&_r(Ae.parent)?Ae.parent.right:void 0:void 0;if(st=st&&FL(st),st){let Ht=Vy(Oi(Ae)?Ae.name:_r(Ae)?Ae.left:Ae);return!!c0(_r(st)&&(st.operatorToken.kind===57||st.operatorToken.kind===61)?st.right:st,Ht)}return!1}function Bd(W){for(;_r(W.parent);)W=W.parent;return W.parent}function Dd(W,Ae=o){if(Ve(W))return z5(Ae,W.escapedText);{let st=Dd(W.expression);return st&&st.exports&&st.exports.get(Fg(W))}}function Lf(W,Ae,st){if(tE(e,W))return e.symbol;if(Ve(W))return st(W,Dd(W),Ae);{let Ht=Lf(W.expression,Ae,st),rr=zL(W);return Xi(rr)&&C.fail("unexpected PrivateIdentifier"),st(rr,Ht&&Ht.exports&&Ht.exports.get(Fg(W)),Ht)}}function j_(W){!e.commonJsModuleIndicator&&Sd(W,!1)&&Ts(W)}function Dh(W){if(W.kind===263)hl(W,32,899503);else{let rr=W.name?W.name.escapedText:"__class";Gs(W,32,rr),W.name&&he.add(W.name.escapedText)}let{symbol:Ae}=W,st=me(4194308,"prototype"),Ht=Ae.exports.get(st.escapedName);Ht&&(W.name&&qa(W.name,W),e.bindDiagnostics.push(oe(Ht.declarations[0],f.Duplicate_identifier_0,bl(st)))),Ae.exports.set(st.escapedName,st),st.parent=Ae}function Xg(W){return x1(W)?hl(W,128,899967):hl(W,256,899327)}function zu(W){if(V&&sc(W,W.name),!ta(W.name)){let Ae=W.kind===260?W:W.parent.parent;cr(W)&&C1(Ae)&&!r0(W)&&!(t0(W)&32)?Vr(W,2097152,2097152):uj(W)?hl(W,2,111551):L1(W)?Vr(W,1,111551):Vr(W,1,111550)}}function Yg(W){if(!(W.kind===348&&o.kind!==330)&&(V&&!(W.flags&33554432)&&sc(W,W.name),ta(W.name)?Gs(W,1,"__"+W.parent.parameters.indexOf(W)):Vr(W,1,111551),pp(W,W.parent))){let Ae=W.parent.parent;He(Ae.symbol.members,Ae.symbol,W,4|(W.questionToken?16777216:0),0)}}function Ap(W){!e.isDeclarationFile&&!(W.flags&33554432)&&LC(W)&&(Z|=4096),ll(W),V?(on(W),hl(W,16,110991)):Vr(W,16,110991)}function fg(W){!e.isDeclarationFile&&!(W.flags&33554432)&&LC(W)&&(Z|=4096),m&&(W.flowNode=m),ll(W);let Ae=W.name?W.name.escapedText:"__function";return Gs(W,16,Ae)}function Gd(W,Ae,st){return!e.isDeclarationFile&&!(W.flags&33554432)&&LC(W)&&(Z|=4096),m&&K6(W)&&(W.flowNode=m),By(W)?Gs(W,Ae,"__computed"):Vr(W,Ae,st)}function te(W){let Ae=zn(W,st=>st.parent&&aI(st.parent)&&st.parent.extendsType===st);return Ae&&Ae.parent}function lt(W){if(am(W.parent)){let Ae=p3(W.parent);Ae?(C.assertNode(Ae,ph),Ae.locals??(Ae.locals=ua()),He(Ae.locals,void 0,W,262144,526824)):Vr(W,262144,526824)}else if(W.parent.kind===195){let Ae=te(W.parent);Ae?(C.assertNode(Ae,ph),Ae.locals??(Ae.locals=ua()),He(Ae.locals,void 0,W,262144,526824)):Gs(W,262144,ve(W))}else Vr(W,262144,526824)}function Wt(W){let Ae=qg(W);return Ae===1||Ae===2&&V1(t)}function jt(W){if(!(m.flags&1))return!1;if(m===ye&&(_L(W)&&W.kind!==242||W.kind===263||W.kind===267&&Wt(W))&&(m=$,!t.allowUnreachableCode)){let st=Doe(t)&&!(W.flags&33554432)&&(!Ml(W)||!!(Lv(W.declarationList)&7)||W.declarationList.declarations.some(Ht=>!!Ht.initializer));TGe(W,(Ht,rr)=>de(st,Ht,rr,f.Unreachable_code_detected))}return!0}}function TGe(e,t){if(Ki(e)&&BAe(e)&&Xo(e.parent)){let{statements:r}=e.parent,i=DU(r,e);$B(i,BAe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function BAe(e){return!Sc(e)&&!AGe(e)&&!v0(e)&&!(Ml(e)&&!(Lv(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function AGe(e){switch(e.kind){case 264:case 265:return!0;case 267:return qg(e)!==1;case 266:return ei(e,4096);default:return!1}}function tE(e,t){let r=0,i=PM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),yS(t)||tg(t))return!0;if(Ve(t)){let o=z5(e,t.escapedText);if(o&&o.valueDeclaration&&Oi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),Mc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function Mq(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(K6(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return ea(e.parent)||Il(e.parent)?0:34}return 0}function z5(e,t){var r,i,o,s;let l=(i=(r=ai(e,ph))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(no(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(A_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var Lq,kq,GAe,IGe=A({"src/compiler/binder.ts"(){"use strict";ia(),oS(),Lq=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Lq||{}),kq=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(kq||{}),GAe=SGe()}});function $se(e,t,r,i,o,s,l,u,p,g){return m;function m(b=()=>!0){let T=[],I=[];return{walkType:he=>{try{return R(he),{visitedTypes:hA(T),visitedSymbols:hA(I)}}finally{Gi(T),Gi(I)}},walkSymbol:he=>{try{return ne(he),{visitedTypes:hA(T),visitedSymbols:hA(I)}}finally{Gi(T),Gi(I)}}};function R(he){if(!(!he||T[he.id]||(T[he.id]=he,ne(he.symbol)))){if(he.flags&524288){let $=he,Y=$.objectFlags;Y&4&&M(he),Y&32&&Z(he),Y&3&&ue(he),Y&24&&G($)}he.flags&262144&&N(he),he.flags&3145728&&O(he),he.flags&4194304&&H(he),he.flags&8388608&&K(he)}}function M(he){R(he.target),Ke(g(he),R)}function N(he){R(u(he))}function O(he){Ke(he.types,R)}function H(he){R(he.type)}function K(he){R(he.objectType),R(he.indexType),R(he.constraint)}function Z(he){R(he.typeParameter),R(he.constraintType),R(he.templateType),R(he.modifiersType)}function V(he){let ye=t(he);ye&&R(ye.type),Ke(he.typeParameters,R);for(let $ of he.parameters)ne($);R(e(he)),R(r(he))}function ue(he){G(he),Ke(he.typeParameters,R),Ke(i(he),R),R(he.thisType)}function G(he){let ye=o(he);for(let $ of ye.indexInfos)R($.keyType),R($.type);for(let $ of ye.callSignatures)V($);for(let $ of ye.constructSignatures)V($);for(let $ of ye.properties)ne($)}function ne(he){if(!he)return!1;let ye=Ta(he);if(I[ye])return!1;if(I[ye]=he,!b(he))return!0;let $=s(he);return R($),he.exports&&he.exports.forEach(ne),Ke(he.declarations,Y=>{if(Y.type&&Y.type.kind===186){let oe=Y.type,fe=l(p(oe.exprName));ne(fe)}}),!1}}}var xGe=A({"src/compiler/symbolWalker.ts"(){"use strict";ia()}});function Aw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Yc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{let p=u!==i.impliedNodeFormat?l(u):s;if((u??i.impliedNodeFormat)===99)return i2(r,i.fileName)?[3,2]:[2];if(dd(r)===1)return p===2?[2,1]:[1,2];let g=i2(r,i.fileName);switch(p){case 2:return g?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return g?[1,0,3,2]:[1,0,2];case 0:return g?[0,1,3,2]:[0,1,2];default:C.assertNever(p)}}};function l(u){if(o!==void 0){if(W1(o))return 2;if(Sl(o,"/index"))return 1}return Foe(t,u??i.impliedNodeFormat,r,i)}}function RGe(e,t,r,i,o,s,l={}){let u=VAe(e,t,r,i,o,Aw({},e,t,s),{},l);if(u!==s)return u}function B5(e,t,r,i,o,s={}){return VAe(e,t,r,i,o,Aw({},e,t),{},s)}function DGe(e,t,r,i,o,s={}){let l=wq(t.fileName,i),u=XAe(l,r,i,o,s);return Zt(u,p=>Zse(p,l,t,i,e,o,!0,s.overrideImportMode))}function VAe(e,t,r,i,o,s,l,u={}){let p=wq(r,o),g=XAe(p,i,o,l,u);return Zt(g,m=>Zse(m,p,t,o,e,l,void 0,u.overrideImportMode))||qAe(i,p,e,o,u.overrideImportMode||t.impliedNodeFormat,s)}function CGe(e,t,r,i,o={}){return jAe(e,t,r,i,o)[0]}function jAe(e,t,r,i,o={}){var s;let l=O6(e);if(!l)return et;let u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=u?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,u]}function UAe(e,t,r,i,o,s,l={}){return HAe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function HAe(e,t,r,i,o,s,l={},u){let p=!1,g=MGe(e,t);if(g)return{moduleSpecifiers:[g],computedWithoutCache:p};let[m,b,T,I]=jAe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!b)return{moduleSpecifiers:et,computedWithoutCache:p};p=!0,T||(T=YAe(wq(i.fileName,o),b.originalFileName,o));let R=NGe(T,r,i,o,s,l,u);return I?.set(i.path,b.path,s,l,T,R),{moduleSpecifiers:R,computedWithoutCache:p}}function NGe(e,t,r,i,o,s={},l){let u=wq(r.fileName,i),p=Aw(o,t,r),g=Ke(e,M=>Ke(i.getFileIncludeReasons().get(rl(M.path,i.getCurrentDirectory(),u.getCanonicalFileName)),N=>{if(N.kind!==3||N.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==cce(r,N.index,t))return;let O=Gw(r,N.index).text;return p.relativePreference!==1||!wp(O)?O:void 0}));if(g)return[g];let m=Et(e,M=>M.isInNodeModules),b,T,I,R;for(let M of e){let N=M.isInNodeModules?Zse(M,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(b=In(b,N),N&&M.isRedirect)return b;if(!N){let O=qAe(M.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,p,M.isRedirect);if(!O)continue;M.isRedirect?I=In(I,O):IV(O)?I0(O)?R=In(R,O):T=In(T,O):(l||!m||M.isInNodeModules)&&(R=In(R,O))}}return T?.length?T:I?.length?I:b?.length?b:C.checkDefined(R)}function wq(e,t){e=bo(e,t.getCurrentDirectory());let r=Pu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=li(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function qAe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},u){let{baseUrl:p,paths:g,rootDirs:m}=r;if(u&&!g)return;let{sourceDirectory:b,canonicalSourceDirectory:T,getCanonicalFileName:I}=t,R=s(o),M=m&&wGe(m,e,b,I,R,r)||Iw(v1(bm(b,e,I)),R,r);if(!p&&!g&&!u7(r)||l===0)return u?void 0:M;let N=bo(E3(r,i)||p,i.getCurrentDirectory()),O=eIe(e,N,I);if(!O)return u?void 0:M;let H=u?void 0:kGe(e,b,r,i,o),K=u||H===void 0?g&&$Ae(O,g,R,i,r):void 0;if(u)return K;let Z=H??(K===void 0&&p!==void 0?Iw(O,R,r):K);if(!Z)return M;if(l===1&&!wp(Z))return Z;if(l===3&&!wp(Z)){let V=r.configFilePath?rl(li(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ue=rl(e,V,I),G=uo(T,V),ne=uo(ue,V);if(G&&!ne||!G&&ne)return Z;let he=Qse(i,li(ue)),ye=Qse(i,b),$=!ER(i);return PGe(he,ye,$)?M:Z}return tIe(Z)||G5(M)e.fileExists(Zr(r,"package.json"))?r:void 0)}function KAe(e,t,r,i,o){var s;let l=Wv(r),u=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,g=rl(t,u,l),m=r.redirectTargetsMap.get(g)||et,T=[...p?[p]:et,t,...m].map(O=>bo(O,u)),I=!Jn(T,iN);if(!i){let O=Ke(T,H=>!(I&&iN(H))&&o(H,p===H));if(O)return O}let R=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),M=bo(t,u);return R&&Em(li(M),O=>{let H=R.get(zc(rl(O,u,l)));if(H)return RV(e,O,l)?!1:Ke(T,K=>{if(!RV(K,O,l))return;let Z=bm(O,K,l);for(let V of H){let ue=Dy(V,Z),G=o(ue,K===p);if(I=!0,G)return G}})})||(i?Ke(T,O=>I&&iN(O)?void 0:o(O,O===p)):void 0)}function XAe(e,t,r,i,o={}){var s;let l=rl(e.importingSourceFileName,r.getCurrentDirectory(),Wv(r)),u=rl(t,r.getCurrentDirectory(),Wv(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,u,i,o);if(m?.modulePaths)return m.modulePaths}let g=YAe(e,t,r);return p&&p.setModulePaths(l,u,i,o,g),g}function YAe(e,t,r){let i=new Map,o=!1;KAe(e.importingSourceFileName,t,r,!0,(l,u)=>{let p=I0(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:u,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let u=zc(l),p;i.forEach(({path:m,isRedirect:b,isInNodeModules:T},I)=>{uo(m,u)&&((p||(p=[])).push({path:I,isRedirect:b,isInNodeModules:T}),i.delete(I))}),p&&(p.length>1&&p.sort(JAe),s.push(...p));let g=li(l);if(g===l)break;l=g}if(i.size){let l=Vo(i.entries(),([u,{isRedirect:p,isInNodeModules:g}])=>({path:u,isRedirect:p,isInNodeModules:g}));l.length>1&&l.sort(JAe),s.push(...l)}return s}function MGe(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>pj(l)&&(!I1(l)||!Yc(Zf(l.name))));if(i)return i.name.text;let s=Vi(e.declarations,l=>{var u,p,g,m;if(!Jl(l))return;let b=M(l);if(!((u=b?.parent)!=null&&u.parent&&k_(b.parent)&&Lu(b.parent.parent)&&no(b.parent.parent.parent)))return;let T=(m=(g=(p=b.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:m.expression;if(!T)return;let I=t.getSymbolAtLocation(T);if(!I)return;if((I?.flags&2097152?t.getAliasedSymbol(I):I)===l.symbol)return b.parent.parent;function M(N){for(;N.flags&8;)N=N.parent;return N}})[0];if(s)return s.name.text}function $Ae(e,t,r,i,o){for(let l in t)for(let u of t[l]){let p=va(u),g=p.indexOf("*"),m=r.map(b=>({ending:b,value:Iw(e,[b],o)}));if(Gg(p)&&m.push({ending:void 0,value:e}),g!==-1){let b=p.substring(0,g),T=p.substring(g+1);for(let{ending:I,value:R}of m)if(R.length>=b.length+T.length&&uo(R,b)&&Sl(R,T)&&s({ending:I,value:R})){let M=R.substring(b.length,R.length-T.length);if(!wp(M))return qA(l,M)}}else if(Et(m,b=>b.ending!==0&&p===b.value)||Et(m,b=>b.ending===0&&p===b.value&&s(b)))return l}function s({ending:l,value:u}){return l!==0||u===Iw(e,[l],o,i)}}function V5(e,t,r,i,o,s,l,u,p){if(typeof s=="string"){let g=!ER(t),m=()=>t.getCommonSourceDirectory(),b=p&&dJ(r,e,g,m),T=p&&uJ(r,e,g,m),I=bo(Zr(i,s),void 0),R=UA(r)?Td(r)+tle(r,e):void 0;switch(u){case 0:if(R&&Pg(R,I,g)===0||Pg(r,I,g)===0||b&&Pg(b,I,g)===0||T&&Pg(T,I,g)===0)return{moduleFileToTry:o};break;case 1:if(R&&ym(I,R,g)){let H=bm(I,R,!1);return{moduleFileToTry:bo(Zr(Zr(o,s),H),void 0)}}if(ym(I,r,g)){let H=bm(I,r,!1);return{moduleFileToTry:bo(Zr(Zr(o,s),H),void 0)}}if(b&&ym(I,b,g)){let H=bm(I,b,!1);return{moduleFileToTry:Zr(o,H)}}if(T&&ym(I,T,g)){let H=bm(I,T,!1);return{moduleFileToTry:Zr(o,H)}}break;case 2:let M=I.indexOf("*"),N=I.slice(0,M),O=I.slice(M+1);if(R&&uo(R,N,g)&&Sl(R,O,g)){let H=R.slice(N.length,R.length-O.length);return{moduleFileToTry:qA(o,H)}}if(uo(r,N,g)&&Sl(r,O,g)){let H=r.slice(N.length,r.length-O.length);return{moduleFileToTry:qA(o,H)}}if(b&&uo(b,N,g)&&Sl(b,O,g)){let H=b.slice(N.length,b.length-O.length);return{moduleFileToTry:qA(o,H)}}if(T&&uo(T,N,g)&&Sl(T,O,g)){let H=T.slice(N.length,T.length-O.length);return{moduleFileToTry:qA(o,H)}}break}}else{if(Array.isArray(s))return Ke(s,g=>V5(e,t,r,i,o,g,l,u,p));if(typeof s=="object"&&s!==null){for(let g of Jh(s))if(g==="default"||l.indexOf(g)>=0||Sw(l,g)){let m=s[g],b=V5(e,t,r,i,o,m,l,u,p);if(b)return b}}}}function LGe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&F5(s)?Ke(Jh(s),u=>{let p=bo(Zr(o,u),void 0),g=Sl(u,"/")?1:u.includes("*")?2:0;return V5(e,t,r,i,p,s[u],l,g,!1)}):V5(e,t,r,i,o,s,l,0,!1)}function kGe(e,t,r,i,o){var s,l,u;if(!i.readFile||!u7(r))return;let p=Qse(i,t);if(!p)return;let g=Zr(p,"package.json"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(g);if(Fse(m)||!i.fileExists(g))return;let b=m?.contents.packageJsonContent||N3(i.readFile(g)),T=b?.imports;if(!T)return;let I=tb(r,o);return(u=Ke(Jh(T),R=>{if(!uo(R,"#")||R==="#"||uo(R,"#/"))return;let M=Sl(R,"/")?1:R.includes("*")?2:0;return V5(r,i,e,p,R,T[R],I,M,!0)}))==null?void 0:u.moduleFileToTry}function wGe(e,t,r,i,o,s){let l=QAe(t,e,i);if(l===void 0)return;let u=QAe(r,e,i),p=Zi(u,m=>Ft(l,b=>v1(bm(m,b,i)))),g=sG(p,mk);if(g)return Iw(g,o,s)}function Zse({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,p,g){if(!s.fileExists||!s.readFile)return;let m=t7(e);if(!m)return;let T=Aw(u,l,o).getAllowedEndingsInPreferredOrder(),I=e,R=!1;if(!p){let Z=m.packageRootIndex,V;for(;;){let{moduleFileToTry:ue,packageRootPath:G,blockedByExports:ne,verbatimFromExports:he}=K(Z);if(dd(l)!==1){if(ne)return;if(he)return ue}if(G){I=G,R=!0;break}if(V||(V=ue),Z=e.indexOf(il,Z+1),Z===-1){I=Iw(V,T,l,s);break}}}if(t&&!R)return;let M=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),N=r(I.substring(0,m.topLevelNodeModulesIndex));if(!(uo(i,N)||M&&uo(r(M),N)))return;let O=I.substring(m.topLevelPackageNameIndex+1),H=zN(O);return dd(l)===1&&H===O?void 0:H;function K(Z){var V,ue;let G=e.substring(0,Z),ne=Zr(G,"package.json"),he=e,ye=!1,$=(ue=(V=s.getPackageJsonInfoCache)==null?void 0:V.call(s))==null?void 0:ue.getPackageJsonInfo(ne);if(L5($)||$===void 0&&s.fileExists(ne)){let Y=$?.contents.packageJsonContent||N3(s.readFile(ne)),oe=g||o.impliedNodeFormat;if(c7(l)){let me=G.substring(m.topLevelPackageNameIndex+1),ie=zN(me),ve=tb(l,oe),Le=Y?.exports?LGe(l,s,e,G,ie,Y.exports,ve):void 0;if(Le)return{...Le,verbatimFromExports:!0};if(Y?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let fe=Y?.typesVersions?P5(Y.typesVersions):void 0;if(fe){let me=e.slice(G.length+1),ie=$Ae(me,fe.paths,T,s,l);ie===void 0?ye=!0:he=Zr(G,ie)}let Ne=Y?.typings||Y?.types||Y?.main||"index.js";if(wo(Ne)&&!(ye&&RU(X3(fe.paths),Ne))){let me=rl(Ne,G,r),ie=r(he);if(Td(me)===Td(ie))return{packageRootPath:G,moduleFileToTry:he};if(Y?.type!=="module"&&!Ec(ie,xk)&&uo(ie,me)&&li(ie)===$b(me)&&Td(rc(ie))==="index")return{packageRootPath:G,moduleFileToTry:he}}}else{let Y=r(he.substring(m.packageRootIndex+1));if(Y==="index.d.ts"||Y==="index.js"||Y==="index.ts"||Y==="index.tsx")return{moduleFileToTry:he,packageRootPath:G}}return{moduleFileToTry:he}}}function OGe(e,t){if(!e.fileExists)return;let r=ts($C({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function QAe(e,t,r){return Vi(t,i=>{let o=eIe(e,i,r);return o!==void 0&&tIe(o)?void 0:o})}function Iw(e,t,r,i){if(Ec(e,[".json",".mjs",".cjs"]))return e;let o=Td(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if(Ec(e,[".mts",".cts"])&&l!==-1&&lg===0||g===1);return p!==-1&&p(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(nle||{})}}),nE={};X(nE,{RelativePreference:()=>nle,countPathComponents:()=>G5,forEachFileNameOfModule:()=>KAe,getModuleSpecifier:()=>B5,getModuleSpecifierPreferences:()=>Aw,getModuleSpecifiers:()=>UAe,getModuleSpecifiersWithCacheInfo:()=>HAe,getNodeModulesPackageName:()=>DGe,tryGetJSExtensionForFile:()=>tle,tryGetModuleSpecifiersFromCache:()=>CGe,tryGetRealFileNameForNonJsDeclarationFileName:()=>ZAe,updateModuleSpecifier:()=>RGe});var ile=A({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";rle()}});function FGe(){this.flags=0}function ss(e){return e.id||(e.id=sle,sle++),e.id}function Ta(e){return e.id||(e.id=ale,ale++),e.id}function Oq(e,t){let r=qg(e);return r===1||t&&r===2}function ole(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,u=lu.getSymbolConstructor(),p=lu.getTypeConstructor(),g=lu.getSignatureConstructor(),m=0,b=0,T=0,I=0,R=0,M=0,N,O,H=!1,K=ua(),Z=[1],V=e.getCompilerOptions(),ue=as(V),G=ku(V),ne=!!V.experimentalDecorators,he=pN(V),ye=Noe(V),$=NS(V),Y=ud(V,"strictNullChecks"),oe=ud(V,"strictFunctionTypes"),fe=ud(V,"strictBindCallApply"),Ne=ud(V,"strictPropertyInitialization"),me=ud(V,"noImplicitAny"),ie=ud(V,"noImplicitThis"),ve=ud(V,"useUnknownInCatchVariables"),Le=!!V.keyofStringsOnly,He=Le?1:0,Ee=V.suppressExcessPropertyErrors?0:8192,Ce=V.exactOptionalPropertyTypes,Me=_mt(),Fe=Kgt(),At=K_(),Se=ua(),je=Xa(4,"undefined");je.declarations=[];var at=Xa(1536,"globalThis",8);at.exports=Se,at.declarations=[],Se.set(at.escapedName,at);var Bt=Xa(4,"arguments"),yt=Xa(4,"require"),Qe=V.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",gt=!V.verbatimModuleSyntax||!!V.importsNotUsedAsValues,nn,rn,Nn=0,Xn,_n=0;let Qt={getNodeCount:()=>nd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>nd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>nd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,b),getTypeCount:()=>m,getInstantiationCount:()=>T,getRelationCacheSizes:()=>({assignable:jd.size,identity:op.size,subtype:Ch.size,strictSubtype:kf.size}),isUndefinedSymbol:n=>n===je,isArgumentsSymbol:n=>n===Bt,isUnknownSymbol:n=>n===ft,getMergedSymbol:is,getDiagnostics:T7e,getGlobalDiagnostics:ugt,getRecursionIdentity:lee,getUnmatchedProperties:wve,getTypeOfSymbolAtLocation:(n,a)=>{let c=Lo(a);return c?rdt(n,c):ht},getTypeOfSymbol:pr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=Lo(n,Co);return c===void 0?C.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(C.assert(pp(c,c.parent)),LP(c,ml(a)))},getDeclaredTypeOfSymbol:Qs,getPropertiesOfType:ys,getPropertyOfType:(n,a)=>ba(n,ml(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let d=Lo(c);if(!d)return;let _=ml(a),y=zee(_,d);return y?bye(n,y):void 0},getTypeOfPropertyOfType:(n,a)=>Xe(n,ml(a)),getIndexInfoOfType:(n,a)=>Ag(n,a===0?ke:Dt),getIndexInfosOfType:hd,getIndexInfosOfIndexSymbol:Cge,getSignaturesOfType:Yo,getIndexTypeOfType:(n,a)=>r1(n,a===0?ke:Dt),getIndexType:n=>$_(n),getBaseTypes:Np,getBaseTypeOfLiteralType:vv,getWidenedType:Jp,getTypeFromTypeNode:n=>{let a=Lo(n,qi);return a?Ii(a):ht},getParameterType:v_,getParameterIdentifierInfoAtPosition:Lft,getPromisedTypeOfPromise:$4,getAwaitedType:n=>rA(n),getReturnTypeOfSignature:ms,isNullableType:Qz,getNullableType:Oz,getNonNullableType:yv,getNonOptionalType:pee,getTypeArguments:qs,typeToTypeNode:At.typeToTypeNode,indexInfoToIndexSignatureDeclaration:At.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:At.signatureToSignatureDeclaration,symbolToEntityName:At.symbolToEntityName,symbolToExpression:At.symbolToExpression,symbolToNode:At.symbolToNode,symbolToTypeParameterDeclarations:At.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:At.symbolToParameterDeclaration,typeParameterToDeclaration:At.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=Lo(n);return c?dgt(c,a):[]},getSymbolAtLocation:n=>{let a=Lo(n);return a?Um(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=Lo(n);return a?ygt(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=Lo(n);return a?bgt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=Lo(n,Ju);return a?Egt(a):void 0},getExportSymbolOfSymbol(n){return is(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=Lo(n);return a?bx(a):ht},getTypeOfAssignmentPattern:n=>{let a=Lo(n,vC);return a&&_te(a)||ht},getPropertySymbolOfDestructuringAssignment:n=>{let a=Lo(n,Ve);return a?Sgt(a):void 0},signatureToString:(n,a,c,d)=>kh(n,Lo(a),c,d),typeToString:(n,a,c)=>jn(n,Lo(a),c),symbolToString:(n,a,c,d)=>Ai(n,Lo(a),c,d),typePredicateToString:(n,a,c)=>wh(n,Lo(a),c),writeSignature:(n,a,c,d,_)=>kh(n,Lo(a),c,d,_),writeType:(n,a,c,d)=>jn(n,Lo(a),c,d),writeSymbol:(n,a,c,d,_)=>Ai(n,Lo(a),c,d,_),writeTypePredicate:(n,a,c,d)=>wh(n,Lo(a),c,d),getAugmentedPropertiesOfType:Ebe,getRootSymbols:P7e,getSymbolOfExpando:Kee,getContextualType:(n,a)=>{let c=Lo(n,bt);if(c)return a&4?ho(c,()=>Jd(c,a)):Jd(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=Lo(n,wg);return a?aye(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=Lo(n,T1);return c&&oye(c,a)},getContextualTypeForJsxAttribute:n=>{let a=Lo(n,R6);return a&&H8e(a,void 0)},isContextSensitive:Gf,getTypeOfPropertyOfContextualType:p1,getFullyQualifiedName:Up,getResolvedSignature:(n,a,c)=>ki(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Yt,getResolvedSignatureForSignatureHelp:(n,a,c)=>vi(n,()=>ki(n,a,c,16)),getExpandedParameters:qwe,hasEffectiveRestParameter:jh,containsArgumentsReference:xge,getConstantValue:n=>{let a=Lo(n,O7e);return a?Sbe(a):void 0},isValidPropertyAccess:(n,a)=>{let c=Lo(n,Mre);return!!c&&Vpt(c,ml(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let d=Lo(n,zr);return!!d&&E6e(d,a,c)},getSignatureFromDeclaration:n=>{let a=Lo(n,ea);return a?pm(a):void 0},isImplementationOfOverload:n=>{let a=Lo(n,ea);return a?k7e(a):void 0},getImmediateAliasedSymbol:dye,getAliasedSymbol:Fc,getEmitResolver:oy,getExportsOfModule:RT,getExportsAndPropertiesOfModule:nD,forEachExportAndPropertyOfModule:rD,getSymbolWalker:$se(Ist,Bf,ms,Np,m_,pr,Vm,Pd,Bp,qs),getAmbientModules:Fvt,getJsxIntrinsicTagNamesAt:Ept,isOptionalParameter:n=>{let a=Lo(n,Co);return a?S4(a):!1},tryGetMemberInModuleExports:(n,a)=>DT(ml(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>iD(ml(n),a),tryFindAmbientModule:n=>kZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>kZ(n,!1),getApparentType:Md,getUnionType:ii,isTypeAssignableTo:Sa,createAnonymousType:Ls,createSignature:Tg,createSymbol:Xa,createIndexInfo:Bh,getAnyType:()=>j,getStringType:()=>ke,getStringLiteralType:qd,getNumberType:()=>Dt,getNumberLiteralType:h_,getBigIntType:()=>Pt,createPromiseType:cB,createArrayType:Gu,getElementTypeOfArrayType:wz,getBooleanType:()=>yi,getFalseType:n=>n?Kt:Tn,getTrueType:n=>n?On:Gn,getVoidType:()=>or,getUndefinedType:()=>Oe,getNullType:()=>pe,getESSymbolType:()=>Di,getNeverType:()=>Vr,getOptionalType:()=>J,getPromiseType:()=>yz(!1),getPromiseLikeType:()=>LOe(!1),getAsyncIterableType:()=>{let n=UZ(!1);if(n!==Wo)return n},isSymbolAccessible:wi,isArrayType:jf,isTupleType:Wa,isArrayLikeType:gy,isEmptyAnonymousObjectType:Vh,isTypeInvalidDueToUnionDiscriminant:ast,getExactOptionalProperties:Lct,getAllPossiblePropertiesOfTypes:sst,getSuggestedSymbolForNonexistentProperty:Tye,getSuggestionForNonexistentProperty:Aye,getSuggestedSymbolForNonexistentJSXAttribute:y6e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Iye(n,ml(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Wpt(n,ml(a),c),getSuggestedSymbolForNonexistentModule:Gee,getSuggestionForNonexistentExport:zpt,getSuggestedSymbolForNonexistentClassMember:v6e,getBaseConstraintOfType:Bu,getDefaultFromTypeParameter:n=>n&&n.flags&262144?zT(n):void 0,resolveName(n,a,c,d){return vl(a,ml(n),c,void 0,void 0,!1,d)},getJsxNamespace:n=>Hi(z0(n)),getJsxFragmentFactory:n=>{let a=Abe(n);return a&&Hi(Bp(a).escapedText)},getAccessibleSymbolChain:Sb,getTypePredicateOfSignature:Bf,resolveExternalModuleName:n=>{let a=Lo(n,bt);return a&&_d(a,a,!0)},resolveExternalModuleSymbol:Rp,tryGetThisTypeAt:(n,a,c)=>{let d=Lo(n);return d&&tye(d,a,c)},getTypeArgumentConstraint:n=>{let a=Lo(n,qi);return a&&Jmt(a)},getSuggestionDiagnostics:(n,a)=>{let c=Lo(n,no)||C.fail("Could not determine parsed source file.");if(eN(c,V,e))return et;let d;try{return i=a,ybe(c),C.assert(!!(ti(c).flags&1)),d=Jr(d,uT.getDiagnostics(c.fileName)),z3e(S7e(c),(_,y,x)=>{!$x(_)&&!E7e(y,!!(_.flags&33554432))&&(d||(d=[])).push({...x,category:2})}),d||et}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Qt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:kr,isDeclarationVisible:u_,isPropertyAccessible:Rye,getTypeOnlyAliasDeclaration:wf,getMemberOverrideModifierStatus:Iht,isTypeParameterPossiblyReferenced:xz,typeHasCallOrConstructSignatures:hte};function Yt(n,a){let c=new Set,d=[];ho(a,()=>ki(n,d,void 0,0));for(let _ of d)c.add(_);d.length=0,vi(a,()=>ki(n,d,void 0,0));for(let _ of d)c.add(_);return Vo(c)}function vi(n,a){if(n=zn(n,$V),n){let c=[],d=[];for(;n;){let y=ti(n);if(c.push([y,y.resolvedSignature]),y.resolvedSignature=void 0,B1(n)){let x=$i(Rr(n)),L=x.type;d.push([x,L]),x.type=void 0}n=zn(n.parent,$V)}let _=a();for(let[y,x]of c)y.resolvedSignature=x;for(let[y,x]of d)y.type=x;return _}return a()}function ho(n,a){let c=zn(n,T1);if(c){let _=n;do ti(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}H=!0;let d=vi(n,a);if(H=!1,c){let _=n;do ti(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return d}function ki(n,a,c,d){let _=Lo(n,T1);nn=c;let y=_?DD(_,a,d):void 0;return nn=void 0,y}var Ro=new Map,nr=new Map,qr=new Map,xr=new Map,ln=new Map,tt=new Map,zt=new Map,Rn=new Map,ui=new Map,bi=new Map,ro=new Map,No=new Map,_a=new Map,ja=new Map,En=new Map,wn=[],Ue=new Map,mt=new Set,ft=Xa(4,"unknown"),Nt=Xa(0,"__resolving__"),le=new Map,We=new Map,pt=new Set,j=lc(1,"any"),ot=lc(1,"any",262144,"auto"),xt=lc(1,"any",void 0,"wildcard"),Ye=lc(1,"any",void 0,"blocked string"),ht=lc(1,"error"),Vt=lc(1,"unresolved"),yn=lc(1,"any",65536,"non-inferrable"),fn=lc(1,"intrinsic"),mn=lc(2,"unknown"),q=lc(2,"unknown",void 0,"non-null"),Oe=lc(32768,"undefined"),Lt=Y?Oe:lc(32768,"undefined",65536,"widening"),w=lc(32768,"undefined",void 0,"missing"),ae=Ce?w:Oe,J=lc(32768,"undefined",void 0,"optional"),pe=lc(65536,"null"),Ge=Y?pe:lc(65536,"null",65536,"widening"),ke=lc(4,"string"),Dt=lc(8,"number"),Pt=lc(64,"bigint"),Kt=lc(512,"false",void 0,"fresh"),Tn=lc(512,"false"),On=lc(512,"true",void 0,"fresh"),Gn=lc(512,"true");On.regularType=Gn,On.freshType=On,Gn.regularType=Gn,Gn.freshType=On,Kt.regularType=Tn,Kt.freshType=Kt,Tn.regularType=Tn,Tn.freshType=Kt;var yi=ii([Tn,Gn]),Di=lc(4096,"symbol"),or=lc(16384,"void"),Vr=lc(131072,"never"),Eo=lc(131072,"never",262144,"silent"),Mi=lc(131072,"never",void 0,"implicit"),Ci=lc(131072,"never",void 0,"unreachable"),Kr=lc(67108864,"object"),Po=ii([ke,Dt]),Dn=ii([ke,Dt,Di]),Fs=Le?ke:Dn,Yl=ii([Dt,Pt]),Fo=ii([ke,Dt,yi,Pt,pe,Oe]),ds=GT(["",""],[Dt]),Gs=Iz(n=>n.flags&262144?act(n):n,()=>"(restrictive mapper)"),hl=Iz(n=>n.flags&262144?xt:n,()=>"(permissive mapper)"),uu=lc(131072,"never",void 0,"unique literal"),yo=Iz(n=>n.flags&262144?uu:n,()=>"(unique literal mapper)"),pa,du=Iz(n=>(pa&&(n===Tp||n===Ms||n===Ic)&&pa(!0),n),()=>"(unmeasurable reporter)"),Is=Iz(n=>(pa&&(n===Tp||n===Ms||n===Ic)&&pa(!1),n),()=>"(unreliable reporter)"),Pa=Ls(void 0,K,et,et,et),fl=Ls(void 0,K,et,et,et);fl.objectFlags|=2048;var Mf=Xa(2048,"__type");Mf.members=ua();var sc=Ls(Mf,K,et,et,et),Rl=Ls(void 0,K,et,et,et),ll=Y?ii([Oe,pe,Rl]):mn,Wo=Ls(void 0,K,et,et,et);Wo.instantiations=new Map;var on=Ls(void 0,K,et,et,et);on.objectFlags|=262144;var Vs=Ls(void 0,K,et,et,et),nu=Ls(void 0,K,et,et,et),pu=Ls(void 0,K,et,et,et),Tp=_f(),Ms=_f();Ms.constraint=Tp;var Ic=_f(),de=_f(),ee=_f();ee.constraint=de;var we=gz(1,"<>",0,j),St=Tg(void 0,void 0,void 0,et,j,void 0,0,0),pn=Tg(void 0,void 0,void 0,et,ht,void 0,0,0),Tr=Tg(void 0,void 0,void 0,et,j,void 0,0,0),gr=Tg(void 0,void 0,void 0,et,Eo,void 0,0,0),jr=Bh(Dt,ke,!0),Ni=new Map,Lr={get yieldType(){return C.fail("Not supported")},get returnType(){return C.fail("Not supported")},get nextType(){return C.fail("Not supported")}},$o=by(j,j,j),El=by(j,j,mn),Uc=by(Vr,j,Oe),js={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Bst,getGlobalIterableType:UZ,getGlobalIterableIteratorType:Gst,getGlobalGeneratorType:Vst,resolveIterationType:(n,a)=>rA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},gc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:jst,getGlobalIterableType:Gge,getGlobalIterableIteratorType:Ust,getGlobalGeneratorType:Hst,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Ts,Hc=new Map,ip=[],Oc,lm,md,Pe,wt,qn,So,Qo,na,$l,vc,cl,gl,Bl,Ql,qc,cf,Bd,Dd,Lf,j_,Dh,Xg,zu,Yg,Ap,fg,Gd,te,lt,Wt,jt,W,Ae,st,Ht,rr,si,$r,so,Oa,Fa,wl,fu,xc,Ip,Vd,cb,ps,Lm,km,Ji,$g,ry,wm,mE,_E,uf=new Map,U_=0,df=0,Qg=0,ze=!1,Ze=0,kt,Ut,gn,Yn=[],hn=[],$n=[],hi=0,ur=[],oi=[],mr=0,Zo=qd(""),Ka=h_(0),Qu=XZ({negative:!1,base10Value:"0"}),mu=[],Zg=[],w0=[],VI=0,O0=!1,j2=0,U2=10,H2=[],lT=[],hE=[],jI=[],q2=[],UI=[],HI=[],qI=[],JI=[],cT=[],KI=[],gE=[],vE=[],ub=[],db=[],mg=[],F0=[],ns=vR(),uT=vR(),J2=Lh(),W0,ev,Ch=new Map,kf=new Map,jd=new Map,xp=new Map,op=new Map,iy=new Map,dT=ua();dT.set(je.escapedName,je);var K2=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",V.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Xgt(),Qt;function XI(n){return n?En.get(n):void 0}function pb(n,a){return n&&En.set(n,a),a}function z0(n){if(n){let a=Vn(n);if(a)if(dI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get("jsxfrag");if(c){let _=Do(c)?c[0]:c;if(a.localJsxFragmentFactory=_I(_.arguments.factory,ue),rt(a.localJsxFragmentFactory,yc,Qd),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Bp(a.localJsxFragmentFactory).escapedText}let d=Abe(n);if(d)return a.localJsxFragmentFactory=d,a.localJsxFragmentNamespace=Bp(d).escapedText}else{let c=YI(a);if(c)return a.localJsxNamespace=c}}return W0||(W0="React",V.jsxFactory?(ev=_I(V.jsxFactory,ue),rt(ev,yc),ev&&(W0=Bp(ev).escapedText)):V.reactNamespace&&(W0=ml(V.reactNamespace))),ev||(ev=k.createQualifiedName(k.createIdentifier(Hi(W0)),"createElement")),W0}function YI(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get("jsx");if(a){let c=Do(a)?a[0]:a;if(n.localJsxFactory=_I(c.arguments.factory,ue),rt(n.localJsxFactory,yc,Qd),n.localJsxFactory)return n.localJsxNamespace=Bp(n.localJsxFactory).escapedText}}function yc(n){return gh(n,-1,-1),An(n,yc,void 0)}function oy(n,a){return T7e(n,a),Fe}function $I(n,a,...c){let d=n?Or(n,a,...c):Vl(a,...c),_=ns.lookup(d);return _||(ns.add(d),d)}function o_(n,a,c,...d){let _=qe(a,c,...d);return _.skippedOn=n,_}function pT(n,a,...c){return n?Or(n,a,...c):Vl(a,...c)}function qe(n,a,...c){let d=pT(n,a,...c);return ns.add(d),d}function a_(n,a){n?ns.add(a):uT.add({...a,category:2})}function _u(n,a,c,...d){if(a.pos<0||a.end<0){if(!n)return;let _=Vn(a);a_(n,"message"in c?Qc(_,0,0,c,...d):Ej(_,c));return}a_(n,"message"in c?Or(a,c,...d):Og(Vn(a),a,c))}function B0(n,a,c,...d){let _=qe(n,c,...d);if(a){let y=Or(n,f.Did_you_forget_to_use_await);ka(_,y)}return _}function QI(n,a){let c=Array.isArray(n)?Ke(n,FV):FV(n);return c&&ka(a,Or(c,f.The_declaration_was_marked_as_deprecated_here)),uT.add(a),a}function fb(n){let a=Cd(n);return a&&De(n.declarations)>1?a.flags&64?Et(n.declarations,ay):Jn(n.declarations,ay):!!n.valueDeclaration&&ay(n.valueDeclaration)||De(n.declarations)&&Jn(n.declarations,ay)}function ay(n){return!!(KE(n)&536870912)}function sy(n,a,c){let d=Or(n,f._0_is_deprecated,c);return QI(a,d)}function MP(n,a,c,d){let _=c?Or(n,f.The_signature_0_of_1_is_deprecated,d,c):Or(n,f._0_is_deprecated,d);return QI(a,_)}function Xa(n,a,c){b++;let d=new u(n|33554432,a);return d.links=new ule,d.links.checkFlags=c||0,d}function s_(n,a){let c=Xa(1,n);return c.links.type=a,c}function fT(n,a){let c=Xa(4,n);return c.links.type=a,c}function mT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function G0(n,a){a.mergeId||(a.mergeId=lle,lle++),H2[a.mergeId]=n}function _T(n){let a=Xa(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),G0(a,n),a}function cm(n,a,c=!1){if(!(n.flags&mT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=Gl(n);if(_===ft)return a;n=_T(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&VL(n,a.valueDeclaration),Jr(n.declarations,a.declarations),a.members&&(n.members||(n.members=ua()),l_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=ua()),l_(n.exports,a.exports,c)),c||G0(n,a)}else if(n.flags&1024)n!==at&&qe(a.declarations&&Oo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ai(n));else{let _=!!(n.flags&384||a.flags&384),y=!!(n.flags&2||a.flags&2),x=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:y?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,L=a.declarations&&Vn(a.declarations[0]),z=n.declarations&&Vn(n.declarations[0]),U=yL(L,V.checkJs),re=yL(z,V.checkJs),be=Ai(a);if(L&&z&&Ts&&!_&&L!==z){let ge=Pg(L.path,z.path)===-1?L:z,Je=ge===L?z:L,vt=mA(Ts,`${ge.path}|${Je.path}`,()=>({firstFile:ge,secondFile:Je,conflictingSymbols:new Map})),Rt=mA(vt.conflictingSymbols,be,()=>({isBlockScoped:y,firstFileLocations:[],secondFileLocations:[]}));U||d(Rt.firstFileLocations,a),re||d(Rt.secondFileLocations,n)}else U||um(a,x,be,n),re||um(n,x,be,a)}return n;function d(_,y){if(y.declarations)for(let x of y.declarations)bf(_,x)}}function um(n,a,c,d){Ke(n.declarations,_=>{tv(_,a,c,d.declarations)})}function tv(n,a,c,d){let _=(c0(n,!1)?Pj(n):Oo(n))||n,y=$I(_,a,c);for(let x of d||et){let L=(c0(x,!1)?Pj(x):Oo(x))||x;if(L===_)continue;y.relatedInformation=y.relatedInformation||[];let z=Or(L,f._0_was_also_declared_here,c),U=Or(L,f.and_here);De(y.relatedInformation)>=5||Et(y.relatedInformation,re=>XC(re,U)===0||XC(re,z)===0)||ka(y,De(y.relatedInformation)?U:z)}}function ZI(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=ua();return l_(c,n),l_(c,a),c}function l_(n,a,c=!1){a.forEach((d,_)=>{let y=n.get(_);n.set(_,y?cm(y,d,c):is(d))})}function X2(n){var a,c,d;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){C.assert(_.symbol.declarations.length>1);return}if(I_(_))l_(Se,_.symbol.exports);else{let y=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,x=ov(n,n,y,!0);if(!x)return;if(x=Rp(x),x.flags&1920)if(Et(lm,L=>x===L.symbol)){let L=cm(_.symbol,x,!0);md||(md=new Map),md.set(n.text,L)}else{if((c=x.exports)!=null&&c.get("__export")&&((d=_.symbol.exports)!=null&&d.size)){let L=cge(x,"resolvedExports");for(let[z,U]of Vo(_.symbol.exports.entries()))L.has(z)&&!x.exports.has(z)&&cm(L.get(z),U)}cm(x,_.symbol)}else qe(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function yE(n,a,c){a.forEach((_,y)=>{let x=n.get(y);x?Ke(x.declarations,d(Hi(y),c)):n.set(y,_)});function d(_,y){return x=>ns.add(Or(x,y,_))}}function $i(n){if(n.flags&33554432)return n.links;let a=Ta(n);return lT[a]??(lT[a]=new ule)}function ti(n){let a=ss(n);return hE[a]||(hE[a]=new FGe)}function Nh(n){return n.kind===312&&!Fp(n)}function Ud(n,a,c){if(c){let d=is(n.get(a));if(d&&(C.assert((Al(d)&1)===0,"Should never get an instantiated symbol here."),d.flags&c||d.flags&2097152&&Au(d)&c))return d}}function LP(n,a){let c=n.parent,d=n.parent.parent,_=Ud(c.locals,a,111551),y=Ud(Lb(d.symbol),a,111551);return _&&y?[_,y]:C.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function nv(n,a){let c=Vn(n),d=Vn(a),_=_h(n);if(c!==d){if(G&&(c.externalModuleIndicator||d.externalModuleIndicator)||!Ps(V)||xS(a)||n.flags&33554432||x(a,n))return!0;let z=e.getSourceFiles();return z.indexOf(c)<=z.indexOf(d)}if(a.flags&16777216||xS(a)||Vve(a))return!0;if(n.pos<=a.pos&&!(Jo(n)&&NL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let z=p0(a,208);return z?zn(z,Qa)!==zn(n,Qa)||n.posZa(z)&&z.parent.parent===n);if(Jo(n))return!L(n,a,!1);if(pp(n,n.parent))return!(ye&&su(n)===su(a)&&x(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(x(a,n))return ye&&su(n)&&(Jo(n)||pp(n,n.parent))?!L(n,a,!0):!0;return!1;function y(z,U){switch(z.parent.parent.kind){case 243:case 248:case 250:if(EE(U,z,_))return!0;break}let re=z.parent.parent;return Jx(re)&&EE(U,re.expression,_)}function x(z,U){return!!zn(z,re=>{if(re===_)return"quit";if(ea(re))return!0;if(Il(re))return U.posz.end?!1:zn(U,ge=>{if(ge===z)return"quit";switch(ge.kind){case 219:return!0;case 172:return re&&(Jo(z)&&ge.parent===z.parent||pp(z,z.parent)&&ge.parent===z.parent.parent)?"quit":!0;case 241:switch(ge.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function kP(n,a,c){let d=as(V),_=a;if(Co(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&d>=2){let L=ti(_);return L.declarationRequiresScopeChange===void 0&&(L.declarationRequiresScopeChange=Ke(_.parameters,y)||!1),!L.declarationRequiresScopeChange}return!1;function y(L){return x(L.name)||!!L.initializer&&x(L.initializer)}function x(L){switch(L.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return x(L.name);case 172:return fc(L)?!ye:x(L.name);default:return GV(L)||Hu(L)?d<7:Qa(L)&&L.dotDotDotToken&&om(L.parent)?d<4:qi(L)?!1:Ho(L,x)||!1}}}function mb(n){return pS(n)&&kg(n.type)||RN(n)&&kg(n.typeExpression)}function vl(n,a,c,d,_,y,x=!1,L=!0){return Vp(n,a,c,d,_,y,x,L,Ud)}function Vp(n,a,c,d,_,y,x,L,z){var U,re,be;let ge=n,Je,vt,Rt,sn,un,sr=!1,Ln=n,cn,Fn=!1;e:for(;n;){if(a==="const"&&mb(n))return;if(mL(n)&&vt&&n.name===vt&&(vt=n,n=n.parent),ph(n)&&n.locals&&!Nh(n)&&(Je=z(n.locals,a,c))){let Zn=!0;if(ea(n)&&vt&&vt!==n.body?(c&Je.flags&788968&&vt.kind!==327&&(Zn=Je.flags&262144?vt===n.type||vt.kind===169||vt.kind===348||vt.kind===349||vt.kind===168:!1),c&Je.flags&3&&(kP(Je,n,vt)?Zn=!1:Je.flags&1&&(Zn=vt.kind===169||vt===n.type&&!!zn(Je.valueDeclaration,Co)))):n.kind===194&&(Zn=vt===n.trueType),Zn)break e;Je=void 0}switch(sr=sr||dm(n,vt),n.kind){case 312:if(!Fp(n))break;Fn=!0;case 267:let Zn=((U=Rr(n))==null?void 0:U.exports)||K;if(n.kind===312||Jl(n)&&n.flags&33554432&&!I_(n)){if(Je=Zn.get("default")){let Mo=TR(Je);if(Mo&&Je.flags&c&&Mo.escapedName===a)break e;Je=void 0}let er=Zn.get(a);if(er&&er.flags===2097152&&(dl(er,281)||dl(er,280)))break}if(a!=="default"&&(Je=z(Zn,a,c&2623475)))if(no(n)&&n.commonJsModuleIndicator&&!((re=Je.declarations)!=null&&re.some(Qf)))Je=void 0;else break e;break;case 266:if(Je=z(((be=Rr(n))==null?void 0:be.exports)||K,a,c&8)){d&&im(V)&&!(n.flags&33554432)&&Vn(n)!==Vn(Je.valueDeclaration)&&qe(Ln,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Hi(a),Qe,`${Hi(ff(n).escapedName)}.${Hi(a)}`);break e}break;case 172:if(!sa(n)){let er=av(n.parent);er&&er.locals&&z(er.locals,a,c&111551)&&(C.assertNode(n,Jo),sn=n)}break;case 263:case 231:case 264:if(Je=z(Rr(n).members||K,a,c&788968)){if(!rv(Je,n)){Je=void 0;break}if(vt&&sa(vt)){d&&qe(Ln,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Zc(n)&&c&32){let er=n.name;if(er&&a===er.escapedText){Je=n.symbol;break e}}break;case 233:if(vt===n.expression&&n.parent.token===96){let er=n.parent.parent;if(pi(er)&&(Je=z(Rr(er).members,a,c&788968))){d&&qe(Ln,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(cn=n.parent.parent,(pi(cn)||cn.kind===264)&&(Je=z(Rr(cn).members,a,c&788968))){d&&qe(Ln,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(as(V)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a==="arguments"){Je=Bt;break e}break;case 218:if(c&3&&a==="arguments"){Je=Bt;break e}if(c&16){let er=n.name;if(er&&a===er.escapedText){Je=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&($c(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let Hn=fR(n);Hn&&(n=Hn.parent);break;case 169:vt&&(vt===n.initializer||vt===n.name&&ta(vt))&&(un||(un=n));break;case 208:vt&&(vt===n.initializer||vt===n.name&&ta(vt))&&L1(n)&&!un&&(un=n);break;case 195:if(c&262144){let er=n.typeParameter.name;if(er&&a===er.escapedText){Je=n.typeParameter.symbol;break e}}break;case 281:vt&&vt===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}_b(n)&&(Rt=n),vt=n,n=am(n)?p3(n)||n.parent:(n_(n)||o5(n))&&u0(n)||n.parent}if(y&&Je&&(!Rt||Je!==Rt.symbol)&&(Je.isReferenced|=c),!Je){if(vt&&(C.assertNode(vt,no),vt.commonJsModuleIndicator&&a==="exports"&&c&vt.symbol.flags))return vt.symbol;x||(Je=z(Se,a,c))}if(!Je&&ge&&cr(ge)&&ge.parent&&Sd(ge.parent,!1))return yt;function kn(){return sn&&!ye?(qe(Ln,Ln&&sn.type&&ZM(sn.type,Ln.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ds(sn.name),Om(_)),!0):!1}if(Je){if(d&&kn())return}else{d&&r(()=>{if(!Ln||Ln.parent.kind!==331&&!bE(Ln,a,_)&&!kn()&&!hT(Ln)&&!ex(Ln,a,c)&&!ly(Ln,a)&&!gT(Ln,a,c)&&!Y2(Ln,a,c)&&!gg(Ln,a,c)){let Zn,Hn;if(_&&(Hn=Opt(_),Hn&&qe(Ln,d,Om(_),Hn)),!Hn&&L&&j2{var Zn;if(Ln&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Hn=mf(Je);(Hn.flags&2||Hn.flags&32||Hn.flags&384)&&$s(Hn,Ln)}if(Je&&Fn&&(c&111551)===111551&&!(ge.flags&16777216)){let Hn=is(Je);De(Hn.declarations)&&Jn(Hn.declarations,er=>Hk(er)||no(er)&&!!er.symbol.globalExports)&&_u(!V.allowUmdGlobalAccess,Ln,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Hi(a))}if(Je&&un&&!sr&&(c&111551)===111551){let Hn=is(PZ(Je)),er=D_(un);Hn===Rr(un)?qe(Ln,f.Parameter_0_cannot_reference_itself,Ds(un.name)):Hn.valueDeclaration&&Hn.valueDeclaration.pos>un.pos&&er.parent.locals&&z(er.parent.locals,Hn.escapedName,c)===Hn&&qe(Ln,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ds(un.name),Ds(Ln))}if(Je&&Ln&&c&111551&&Je.flags&2097152&&!(Je.flags&111551)&&!_0(Ln)){let Hn=wf(Je,111551);if(Hn){let er=Hn.kind===281||Hn.kind===278||Hn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Mo=Hi(a);_g(qe(Ln,er,Mo),Hn,Mo)}}if(V.isolatedModules&&Je&&Fn&&(c&111551)===111551){let er=z(Se,a,c)===Je&&no(vt)&&vt.locals&&z(vt.locals,a,-111552);if(er){let Mo=(Zn=er.declarations)==null?void 0:Zn.find(Ao=>Ao.kind===276||Ao.kind===273||Ao.kind===274||Ao.kind===271);Mo&&!sL(Mo)&&qe(Mo,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Hi(a))}}}),Je}function _g(n,a,c){return a?ka(n,Or(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function dm(n,a){return n.kind!==219&&n.kind!==218?rI(n)||(zs(n)||n.kind===172&&!sa(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||ei(n,1024)?!0:!vS(n)}function _b(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Om(n){return wo(n)?Hi(n):Ds(n)}function rv(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(am(c.parent)?SS(c.parent):c.parent)===a)return!(am(c.parent)&&vn(c.parent.parent.tags,Qf))}return!1}function bE(n,a,c){if(!Ve(n)||n.escapedText!==a||A7e(n)||xS(n))return!1;let d=wd(n,!1,!1),_=d;for(;_;){if(pi(_.parent)){let y=Rr(_.parent);if(!y)break;let x=pr(y);if(ba(x,a))return qe(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Om(c),Ai(y)),!0;if(_===d&&!sa(_)){let L=Qs(y).thisType;if(ba(L,a))return qe(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Om(c)),!0}}_=_.parent}return!1}function hT(n){let a=hg(n);return a&&Us(a,64,!0)?(qe(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,pc(a)),!0):!1}function hg(n){switch(n.kind){case 80:case 211:return n.parent?hg(n.parent):void 0;case 233:if(zl(n.expression))return n.expression;default:return}}function ex(n,a,c){let d=1920|(cr(n)?111551:0);if(c===d){let _=Gl(vl(n,a,788968&~d,void 0,void 0,!1)),y=n.parent;if(_){if(Ad(y)){C.assert(y.left===n,"Should only be resolving left side of qualified name as a namespace");let x=y.right.escapedText;if(ba(Qs(_),x))return qe(y,f.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,Hi(a),Hi(x)),!0}return qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Hi(a)),!0}}return!1}function gg(n,a,c){if(c&788584){let d=Gl(vl(n,a,111127,void 0,void 0,!1));if(d&&!(d.flags&1920))return qe(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Hi(a)),!0}return!1}function H_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function ly(n,a){return H_(a)&&n.parent.kind===281?(qe(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Y2(n,a,c){if(c&111551){if(H_(a)){let y=n.parent.parent;if(y&&y.parent&&ef(y)){let x=y.token,L=y.parent.kind;L===264&&x===96?qe(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Hi(a)):L===263&&x===96?qe(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Hi(a)):L===263&&x===119&&qe(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Hi(a))}else qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Hi(a));return!0}let d=Gl(vl(n,a,788544,void 0,void 0,!1)),_=d&&Au(d);if(d&&_!==void 0&&!(_&111551)){let y=Hi(a);return Q2(a)?qe(n,f._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,y):$2(n,d)?qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,y,y==="K"?"P":"K"):qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,y),!0}}return!1}function $2(n,a){let c=zn(n.parent,d=>Za(d)||gp(d)?!1:yp(d)||"quit");if(c&&c.members.length===1){let d=Qs(a);return!!(d.flags&1048576)&&pB(d,384,!0)}return!1}function Q2(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function gT(n,a,c){if(c&111127){if(Gl(vl(n,a,1024,void 0,void 0,!1)))return qe(n,f.Cannot_use_namespace_0_as_a_value,Hi(a)),!0}else if(c&788544&&Gl(vl(n,a,1536,void 0,void 0,!1)))return qe(n,f.Cannot_use_namespace_0_as_a_type,Hi(a)),!0;return!1}function $s(n,a){var c;if(C.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let d=(c=n.declarations)==null?void 0:c.find(_=>uj(_)||pi(_)||_.kind===266);if(d===void 0)return C.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(d.flags&33554432)&&!nv(d,a)){let _,y=Ds(Oo(d));n.flags&2?_=qe(a,f.Block_scoped_variable_0_used_before_its_declaration,y):n.flags&32?_=qe(a,f.Class_0_used_before_its_declaration,y):n.flags&256?_=qe(a,f.Enum_0_used_before_its_declaration,y):(C.assert(!!(n.flags&128)),im(V)&&(_=qe(a,f.Enum_0_used_before_its_declaration,y))),_&&ka(_,Or(d,f._0_is_declared_here,y))}}function EE(n,a,c){return!!a&&!!zn(n,d=>d===a||(d===c||ea(d)&&(!vS(d)||Gc(d)&3)?"quit":!1))}function vT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function Fm(n){return n.declarations&&Qr(n.declarations,hb)}function hb(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&mR(n)||_r(n)&&Wl(n)===2&&mR(n)||ks(n)&&_r(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&Z2(n.parent.right)||n.kind===304||n.kind===303&&Z2(n.initializer)||n.kind===260&&C1(n)||n.kind===208&&C1(n.parent.parent)}function Z2(n){return $L(n)||ws(n)&&th(n)}function yT(n,a){let c=vb(n);if(c){let _=IR(c.expression).arguments[0];return Ve(c.name)?Gl(ba(pOe(_),c.name.escapedText)):void 0}if(Oi(n)||n.moduleReference.kind===283){let _=_d(n,Dj(n)||RC(n)),y=Rp(_);return ap(n,_,y,!1),y}let d=nx(n.moduleReference,a);return wP(n,d),d}function wP(n,a){if(ap(n,void 0,a,!1)&&!n.isTypeOnly){let c=wf(Rr(n)),d=c.kind===281||c.kind===278,_=d?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,y=d?f._0_was_exported_here:f._0_was_imported_here,x=c.kind===278?"*":Hi(c.name.escapedText);ka(qe(n.moduleReference,_),Or(c,y,x))}}function vr(n,a,c,d){let _=n.exports.get("export="),y=_?ba(pr(_),a,!0):n.exports.get(a),x=Gl(y,d);return ap(c,y,x,!1),x}function ru(n){return Ll(n)&&!n.isExportEquals||ei(n,2048)||Ju(n)||Sh(n)}function io(n){return us(n)?e.getModeForUsageLocation(Vn(n),n):void 0}function pf(n,a){return n===99&&a===1}function cy(n){return io(n)===99&&Sl(n.text,".json")}function q_(n,a,c,d){let _=n&&io(d);if(n&&_!==void 0&&100<=G&&G<=199){let y=pf(_,n.impliedNodeFormat);if(_===99||y)return y}if(!$)return!1;if(!n||n.isDeclarationFile){let y=vr(a,"default",void 0,!0);return!(y&&Et(y.declarations,ru)||vr(a,ml("__esModule"),void 0,c))}return ld(n)?typeof n.externalModuleIndicator!="object"&&!vr(a,ml("__esModule"),void 0,c):uy(a)}function dr(n,a){let c=_d(n,n.parent.moduleSpecifier);if(c)return bT(c,n,a)}function bT(n,a,c){var d;let _;SC(n)?_=n:_=vr(n,"default",a,c);let y=(d=n.declarations)==null?void 0:d.find(no),x=V0(a);if(!x)return _;let L=cy(x),z=q_(y,n,c,x);if(!_&&!z&&!L)if(uy(n)&&!$){let U=G>=5?"allowSyntheticDefaultImports":"esModuleInterop",be=n.exports.get("export=").valueDeclaration,ge=qe(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,Ai(n),U);be&&ka(ge,Or(be,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,U))}else Eh(a)?Jc(n,a):ET(n,n,a,IA(a)&&a.propertyName||a.name);else if(z||L){let U=Rp(n,c)||Gl(n,c);return ap(a,n,U,!1),U}return ap(a,_,void 0,!1),_}function V0(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return Th(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return C.assertNever(n)}}function Jc(n,a){var c,d,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))qe(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ai(n),Ai(a.symbol));else{let y=qe(a.name,f.Module_0_has_no_default_export,Ai(n)),x=(d=n.exports)==null?void 0:d.get("__export");if(x){let L=(_=x.declarations)==null?void 0:_.find(z=>{var U,re;return!!(Kl(z)&&z.moduleSpecifier&&((re=(U=_d(z,z.moduleSpecifier))==null?void 0:U.exports)!=null&&re.has("default")))});L&&ka(y,Or(L,f.export_Asterisk_does_not_re_export_a_default))}}}function Ph(n,a){let c=n.parent.parent.moduleSpecifier,d=_d(n,c),_=sp(d,c,a,!1);return ap(n,d,_,!1),_}function Wm(n,a){let c=n.parent.moduleSpecifier,d=c&&_d(n,c),_=c&&sp(d,c,a,!1);return ap(n,d,_,!1),_}function SE(n,a){if(n===ft&&a===ft)return ft;if(n.flags&790504)return n;let c=Xa(n.flags|a.flags,n.escapedName);return C.assert(n.declarations||a.declarations),c.declarations=h1(xo(n.declarations,a.declarations),Cv),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function TE(n,a,c,d){var _;if(n.flags&1536){let y=Dp(n).get(a.escapedText),x=Gl(y,d),L=(_=$i(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return ap(c,y,x,!1,L,a.escapedText),x}}function gb(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return Gl(ba(Ii(c),a))}}function iv(n,a,c=!1){var d;let _=Dj(n)||n.moduleSpecifier,y=_d(n,_),x=!zr(a)&&a.propertyName||a.name;if(!Ve(x))return;let L=x.escapedText==="default"&&$,z=sp(y,_,!1,L);if(z&&x.escapedText){if(SC(y))return y;let U;y&&y.exports&&y.exports.get("export=")?U=ba(pr(z),x.escapedText,!0):U=gb(z,x.escapedText),U=Gl(U,c);let re=TE(z,x,a,c);if(re===void 0&&x.escapedText==="default"){let ge=(d=y.declarations)==null?void 0:d.find(no);(cy(_)||q_(ge,y,c,_))&&(re=Rp(y,c)||Gl(y,c))}let be=re&&U&&re!==U?SE(U,re):re||U;return be||ET(y,z,n,x),be}}function ET(n,a,c,d){var _;let y=Up(n,c),x=Ds(d),L=Gee(d,a);if(L!==void 0){let z=Ai(L),U=qe(d,f._0_has_no_exported_member_named_1_Did_you_mean_2,y,x,z);L.valueDeclaration&&ka(U,Or(L.valueDeclaration,f._0_is_declared_here,z))}else(_=n.exports)!=null&&_.has("default")?qe(d,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,y,x):zm(c,d,x,n,y)}function zm(n,a,c,d,_){var y,x;let L=(x=(y=ai(d.valueDeclaration,ph))==null?void 0:y.locals)==null?void 0:x.get(a.escapedText),z=d.exports;if(L){let U=z?.get("export=");if(U)c_(U,L)?j0(n,a,c,_):qe(a,f.Module_0_has_no_exported_member_1,_,c);else{let re=z?vn(Ige(z),ge=>!!c_(ge,L)):void 0,be=re?qe(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,Ai(re)):qe(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);L.declarations&&ka(be,...Ft(L.declarations,(ge,Je)=>Or(ge,Je===0?f._0_is_declared_here:f.and_here,c)))}}else qe(a,f.Module_0_has_no_exported_member_1,_,c)}function j0(n,a,c,d){if(G>=5){let _=vh(V)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,_,c)}else if(cr(n)){let _=vh(V)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,_,c)}else{let _=vh(V)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;qe(a,_,c,c,d)}}function vg(n,a){if(tp(n)&&Sr(n.propertyName||n.name)==="default"){let x=V0(n),L=x&&_d(n,x);if(L)return bT(L,n,a)}let c=Qa(n)?D_(n):n.parent.parent.parent,d=vb(c),_=iv(c,d||n,a),y=n.propertyName||n.name;return d&&_&&Ve(y)?Gl(ba(pr(_),y.escapedText),a):(ap(n,void 0,_,!1),_)}function vb(n){if(Oi(n)&&n.initializer&&zr(n.initializer))return n.initializer}function tx(n,a){if(A_(n.parent)){let c=Rp(n.parent.symbol,a);return ap(n,void 0,c,!1),c}}function U0(n,a,c){if(Sr(n.propertyName||n.name)==="default"){let _=V0(n),y=_&&_d(n,_);if(y)return bT(y,n,!!c)}let d=n.parent.parent.moduleSpecifier?iv(n.parent.parent,n,c):Us(n.propertyName||n.name,a,!1,c);return ap(n,void 0,d,!1),d}function eD(n,a){let c=Ll(n)?n.expression:n.right,d=AE(c,a);return ap(n,void 0,d,!1),d}function AE(n,a){if(Zc(n))return ec(n).symbol;if(!Qd(n)&&!zl(n))return;let c=Us(n,901119,!0,a);return c||(ec(n),ti(n).resolvedSymbol)}function ST(n,a){if(_r(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return AE(n.parent.right,a)}function jp(n,a=!1){switch(n.kind){case 271:case 260:return yT(n,a);case 273:return dr(n,a);case 274:return Ph(n,a);case 280:return Wm(n,a);case 276:case 208:return vg(n,a);case 281:return U0(n,901119,a);case 277:case 226:return eD(n,a);case 270:return tx(n,a);case 304:return Us(n.name,901119,!0,a);case 303:return AE(n.initializer,a);case 212:case 211:return ST(n,a);default:return C.fail()}}function TT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Gl(n,a){return!a&&TT(n)?Fc(n):n}function Fc(n){C.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=$i(n);if(a.aliasTarget)a.aliasTarget===Nt&&(a.aliasTarget=ft);else{a.aliasTarget=Nt;let c=Fm(n);if(!c)return C.fail();let d=jp(c);a.aliasTarget===Nt?a.aliasTarget=d||ft:qe(c,f.Circular_definition_of_import_alias_0,Ai(n))}return a.aliasTarget}function AT(n){if($i(n).aliasTarget!==Nt)return Fc(n)}function Au(n,a,c){let d=a&&wf(n),_=d&&Kl(d),y=d&&(_?_d(d.moduleSpecifier,d.moduleSpecifier,!0):Fc(d.symbol)),x=_&&y?Mh(y):void 0,L=c?0:n.flags,z;for(;n.flags&2097152;){let U=mf(Fc(n));if(!_&&U===y||x?.get(U.escapedName)===U)break;if(U===ft)return-1;if(U===n||z?.has(U))break;U.flags&2097152&&(z?z.add(U):z=new Set([n,U])),L|=U.flags,n=U}return L}function ap(n,a,c,d,_,y){if(!n||zr(n))return!1;let x=Rr(n);if(a0(n)){let z=$i(x);return z.typeOnlyDeclaration=n,!0}if(_){let z=$i(x);return z.typeOnlyDeclaration=_,x.escapedName!==y&&(z.typeOnlyExportStarName=y),!0}let L=$i(x);return H0(L,a,d)||H0(L,c,d)}function H0(n,a,c){var d;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((d=a.exports)==null?void 0:d.get("export="))??a,y=_.declarations&&vn(_.declarations,a0);n.typeOnlyDeclaration=y??$i(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function wf(n,a){if(!(n.flags&2097152))return;let c=$i(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let d=c.typeOnlyDeclaration.kind===278?Gl(Mh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Fc(c.typeOnlyDeclaration.symbol);return Au(d)&a?c.typeOnlyDeclaration:void 0}}function yb(n){if(!gt)return;let a=Rr(n),c=Fc(a);c&&(c===ft||Au(a,!0)&111551&&!r8(c))&&bb(a)}function bb(n){C.assert(gt);let a=$i(n);if(!a.referenced){a.referenced=!0;let c=Fm(n);if(!c)return C.fail();sR(c)&&Au(Gl(n))&111551&&ec(c.moduleReference)}}function iu(n){let a=$i(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function nx(n,a){return n.kind===80&&jC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Us(n,1920,!1,a):(C.assert(n.parent.kind===271),Us(n,901119,!1,a))}function Up(n,a){return n.parent?Up(n.parent,a)+"."+Ai(n):Ai(n,a,void 0,36)}function IT(n){for(;Ad(n.parent);)n=n.parent;return n}function xT(n){let a=Bp(n),c=vl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Ad(a.parent);){let d=pr(c);if(c=ba(d,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Us(n,a,c,d,_){if(Fl(n))return;let y=1920|(cr(n)?a&111551:0),x;if(n.kind===80){let L=a===y||Xs(n)?f.Cannot_find_namespace_0:o8e(Bp(n)),z=cr(n)&&!Xs(n)?tD(n,a):void 0;if(x=is(vl(_||n,n.escapedText,a,c||z?void 0:L,n,!0,!1)),!x)return is(z)}else if(n.kind===166||n.kind===211){let L=n.kind===166?n.left:n.expression,z=n.kind===166?n.right:n.name,U=Us(L,y,c,!1,_);if(!U||Fl(z))return;if(U===ft)return U;if(U.valueDeclaration&&cr(U.valueDeclaration)&&dd(V)!==100&&Oi(U.valueDeclaration)&&U.valueDeclaration.initializer&&j6e(U.valueDeclaration.initializer)){let re=U.valueDeclaration.initializer.arguments[0],be=_d(re,re);if(be){let ge=Rp(be);ge&&(U=ge)}}if(x=is(Ud(Dp(U),z.escapedText,a)),!x&&U.flags&2097152&&(x=is(Ud(Dp(Fc(U)),z.escapedText,a))),!x){if(!c){let re=Up(U),be=Ds(z),ge=Gee(z,U);if(ge){qe(z,f._0_has_no_exported_member_named_1_Did_you_mean_2,re,be,Ai(ge));return}let Je=Ad(n)&&IT(n);if(Pe&&a&788968&&Je&&!zR(Je.parent)&&xT(Je)){qe(Je,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,fp(Je));return}if(a&1920&&Ad(n.parent)){let Rt=is(Ud(Dp(U),z.escapedText,788968));if(Rt){qe(n.parent.right,f.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,Ai(Rt),Hi(n.parent.right.escapedText));return}}qe(z,f.Namespace_0_has_no_exported_member_1,re,be)}return}}else C.assertNever(n,"Unknown entity name kind.");return C.assert((Al(x)&1)===0,"Should never get an instantiated symbol here."),!Xs(n)&&Qd(n)&&(x.flags&2097152||n.parent.kind===277)&&ap(Bj(n),x,void 0,!0),x.flags&a||d?x:Fc(x)}function tD(n,a){if(VZ(n.parent)){let c=q0(n.parent);if(c)return vl(c,n.escapedText,a,void 0,n,!0)}}function q0(n){if(zn(n,_=>Kx(_)||_.flags&16777216?Qf(_):"quit"))return;let c=SS(n);if(c&&eu(c)&&GL(c.expression)){let _=Rr(c.expression.left);if(_)return IE(_)}if(c&&ws(c)&&GL(c.parent)&&eu(c.parent.parent)){let _=Rr(c.parent.left);if(_)return IE(_)}if(c&&(Im(c)||_c(c))&&_r(c.parent.parent)&&Wl(c.parent.parent)===6){let _=Rr(c.parent.parent.left);if(_)return IE(_)}let d=d0(n);if(d&&ea(d)){let _=Rr(d);return _&&_.valueDeclaration}}function IE(n){let a=n.parent.valueDeclaration;return a?(DC(a)?PA(a):fS(a)?OL(a):void 0)||a:void 0}function OP(n){let a=n.valueDeclaration;if(!a||!cr(a)||n.flags&524288||c0(a,!1))return;let c=Oi(a)?OL(a):PA(a);if(c){let d=ff(c);if(d)return kye(d,n)}}function _d(n,a,c){let _=dd(V)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return ov(n,a,c?void 0:_)}function ov(n,a,c,d=!1){return us(a)?J_(n,a.text,c,a,d):void 0}function J_(n,a,c,d,_=!1){var y,x,L,z,U,re,be,ge,Je,vt,Rt;if(uo(a,"@types/")){let er=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Mo=ZD(a,"@types/");qe(d,er,Mo,a)}let sn=kZ(a,!0);if(sn)return sn;let un=Vn(n),sr=us(n)?n:((y=Jl(n)?n:n.parent&&Jl(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:y.name)||((x=zy(n)?n:void 0)==null?void 0:x.argument.literal)||(Oi(n)&&n.initializer&&Sd(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((L=zn(n,Wp))==null?void 0:L.arguments[0])||((z=zn(n,Lc))==null?void 0:z.moduleSpecifier)||((U=zn(n,l0))==null?void 0:U.moduleReference.expression)||((re=zn(n,Kl))==null?void 0:re.moduleSpecifier),Ln=sr&&us(sr)?e.getModeForUsageLocation(un,sr):un.impliedNodeFormat,cn=dd(V),Fn=(be=e.getResolvedModule(un,a,Ln))==null?void 0:be.resolvedModule,kn=Fn&&OJ(V,Fn,un),Zn=Fn&&(!kn||kn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Fn.resolvedFileName);if(Zn){if(kn&&qe(d,kn,a,Fn.resolvedFileName),Fn.resolvedUsingTsExtension&&Su(a)){let er=((ge=zn(n,Lc))==null?void 0:ge.importClause)||zn(n,Xm(tu,Kl));(er&&!er.isTypeOnly||zn(n,Wp))&&qe(d,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Hn(C.checkDefined(C3(a))))}else if(Fn.resolvedUsingTsExtension&&!i2(V,un.fileName)){let er=((Je=zn(n,Lc))==null?void 0:Je.importClause)||zn(n,Xm(tu,Kl));if(!(er?.isTypeOnly||zn(n,lg))){let Mo=C.checkDefined(C3(a));qe(d,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Mo)}}if(Zn.symbol){if(Fn.isExternalLibraryImport&&!QC(Fn.extension)&&rx(!1,d,un,Ln,Fn,a),cn===3||cn===99){let er=un.impliedNodeFormat===1&&!zn(n,Wp)||!!zn(n,tu),Mo=zn(n,Ao=>lg(Ao)||Kl(Ao)||Lc(Ao));if(er&&Zn.impliedNodeFormat===99&&!$oe(Mo))if(zn(n,tu))qe(d,f.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,a);else{let Ao,jo=Gg(un.fileName);if(jo===".ts"||jo===".js"||jo===".tsx"||jo===".jsx"){let vo=un.packageJsonScope,Dc=jo===".ts"?".mts":jo===".js"?".mjs":void 0;vo&&!vo.contents.packageJsonContent.type?Dc?Ao=Uo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Dc,Zr(vo.packageDirectory,"package.json")):Ao=Uo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Zr(vo.packageDirectory,"package.json")):Dc?Ao=Uo(void 0,f.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,Dc):Ao=Uo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}ns.add(Og(Vn(d),d,Uo(Ao,f.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,a)))}}return is(Zn.symbol)}c&&qe(d,f.File_0_is_not_a_module,Zn.fileName);return}if(lm){let er=uG(lm,Mo=>Mo.pattern,a);if(er){let Mo=md&&md.get(a);return is(Mo||er.symbol)}}if(Fn&&!QC(Fn.extension)&&kn===void 0||kn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let er=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;qe(d,er,a,Fn.resolvedFileName)}else rx(me&&!!c,d,un,Ln,Fn,a);return}if(c){if(Fn){let er=e.getProjectReferenceRedirect(Fn.resolvedFileName);if(er){qe(d,f.Output_file_0_has_not_been_built_from_source_file_1,er,Fn.resolvedFileName);return}}if(kn)qe(d,kn,a,Fn.resolvedFileName);else{let er=wp(a)&&!EA(a),Mo=cn===3||cn===99;if(!h0(V)&&Tl(a,".json")&&cn!==1&&z3(V))qe(d,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Ln===99&&Mo&&er){let Ao=bo(a,li(un.path)),jo=(vt=K2.find(([vo,Dc])=>e.fileExists(Ao+vo)))==null?void 0:vt[1];jo?qe(d,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+jo):qe(d,f.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 if((Rt=e.getResolvedModule(un,a,Ln))!=null&&Rt.alternateResult){let Ao=k6(un,e,a,Ln,a);_u(!0,d,Uo(Ao,c,a))}else qe(d,c,a)}}return;function Hn(er){let Mo=_k(a,er);if(W3(G)||Ln===99){let Ao=Su(a)&&i2(V);return Mo+(er===".mts"||er===".d.mts"?Ao?".mts":".mjs":er===".cts"||er===".d.mts"?Ao?".cts":".cjs":Ao?".ts":".js")}return Mo}}function rx(n,a,c,d,{packageId:_,resolvedFileName:y},x){let L;!Yc(x)&&_&&(L=k6(c,e,x,d,_.name)),_u(n,a,Uo(L,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,y))}function Rp(n,a){if(n?.exports){let c=Gl(n.exports.get("export="),a),d=ix(is(c),is(n));return is(d)||n}}function ix(n,a){if(!n||n===ft||n===a||a.exports.size===1||n.flags&2097152)return n;let c=$i(n);if(c.cjsExportMerged)return c.cjsExportMerged;let d=n.flags&33554432?n:_T(n);return d.flags=d.flags|512,d.exports===void 0&&(d.exports=ua()),a.exports.forEach((_,y)=>{y!=="export="&&d.exports.set(y,d.exports.has(y)?cm(d.exports.get(y),_):_)}),d===n&&($i(d).resolvedExports=void 0,$i(d).resolvedMembers=void 0),$i(d).cjsExportMerged=d,c.cjsExportMerged=d}function sp(n,a,c,d){var _;let y=Rp(n,c);if(!c&&y){if(!d&&!(y.flags&1539)&&!dl(y,312)){let L=G>=5?"allowSyntheticDefaultImports":"esModuleInterop";return qe(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,L),y}let x=a.parent;if(Lc(x)&&dR(x)||Wp(x)){let L=Wp(x)?x.arguments[0]:x.moduleSpecifier,z=pr(y),U=G6e(z,y,n,L);if(U)return ox(y,U,x);let re=(_=n?.declarations)==null?void 0:_.find(no),be=re&&pf(io(L),re.impliedNodeFormat);if(vh(V)||be){let ge=hz(z,0);if((!ge||!ge.length)&&(ge=hz(z,1)),ge&&ge.length||ba(z,"default",!0)||be){let Je=z.flags&3670016?V6e(z,y,n,L):wye(y,y.parent);return ox(y,Je,x)}}}}return y}function ox(n,a,c){let d=Xa(n.flags,n.escapedName);d.declarations=n.declarations?n.declarations.slice():[],d.parent=n.parent,d.links.target=n,d.links.originatingImport=c,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),n.members&&(d.members=new Map(n.members)),n.exports&&(d.exports=new Map(n.exports));let _=m_(a);return d.links.type=Ls(d,_.members,et,et,_.indexInfos),d}function uy(n){return n.exports.get("export=")!==void 0}function RT(n){return Ige(Mh(n))}function nD(n){let a=RT(n),c=Rp(n);if(c!==n){let d=pr(c);Eb(d)&&Jr(a,ys(d))}return a}function rD(n,a){Mh(n).forEach((_,y)=>{DE(y)||a(_,y)});let d=Rp(n);if(d!==n){let _=pr(d);Eb(_)&&ost(_,(y,x)=>{a(y,x)})}}function DT(n,a){let c=Mh(a);if(c)return c.get(n)}function iD(n,a){let c=DT(n,a);if(c)return c;let d=Rp(a);if(d===a)return;let _=pr(d);return Eb(_)?ba(_,n):void 0}function Eb(n){return!(n.flags&402784252||Wr(n)&1||jf(n)||Wa(n))}function Dp(n){return n.flags&6256?cge(n,"resolvedExports"):n.flags&1536?Mh(n):n.exports||K}function Mh(n){let a=$i(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:d}=CT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=d}return a.resolvedExports}function oD(n,a,c,d){a&&a.forEach((_,y)=>{if(y==="default")return;let x=n.get(y);if(!x)n.set(y,_),c&&d&&c.set(y,{specifierText:pc(d.moduleSpecifier)});else if(c&&d&&x&&Gl(x)!==Gl(_)){let L=c.get(y);L.exportsWithDuplicate?L.exportsWithDuplicate.push(d):L.exportsWithDuplicate=[d]}})}function CT(n){let a=[],c,d=new Set;n=Rp(n);let _=y(n)||K;return c&&d.forEach(x=>c.delete(x)),{exports:_,typeOnlyExportStarMap:c};function y(x,L,z){if(!z&&x?.exports&&x.exports.forEach((be,ge)=>d.add(ge)),!(x&&x.exports&&bf(a,x)))return;let U=new Map(x.exports),re=x.exports.get("__export");if(re){let be=ua(),ge=new Map;if(re.declarations)for(let Je of re.declarations){let vt=_d(Je,Je.moduleSpecifier),Rt=y(vt,Je,z||Je.isTypeOnly);oD(be,Rt,ge,Je)}ge.forEach(({exportsWithDuplicate:Je},vt)=>{if(!(vt==="export="||!(Je&&Je.length)||U.has(vt)))for(let Rt of Je)ns.add(Or(Rt,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ge.get(vt).specifierText,Hi(vt)))}),oD(U,be)}return L?.isTypeOnly&&(c??(c=new Map),U.forEach((be,ge)=>c.set(ge,L))),U}}function is(n){let a;return n&&n.mergeId&&(a=H2[n.mergeId])?a:n}function Rr(n){return is(n.symbol&&PZ(n.symbol))}function ff(n){return A_(n)?Rr(n):void 0}function Cd(n){return is(n.parent&&PZ(n.parent))}function xE(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&ff(n.valueDeclaration.parent)||n}function aD(n,a){let c=Vn(a),d=ss(c),_=$i(n),y;if(_.extendedContainersByFile&&(y=_.extendedContainersByFile.get(d)))return y;if(c&&c.imports){for(let L of c.imports){if(Xs(L))continue;let z=_d(a,L,!0);!z||!yg(z,n)||(y=In(y,z))}if(De(y))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(d,y),y}if(_.extendedContainers)return _.extendedContainers;let x=e.getSourceFiles();for(let L of x){if(!ac(L))continue;let z=Rr(L);yg(z,n)&&(y=In(y,z))}return _.extendedContainers=y||et}function J0(n,a,c){let d=Cd(n);if(d&&!(n.flags&262144))return z(d);let _=Vi(n.declarations,re=>{if(!Lu(re)&&re.parent){if(Zu(re.parent))return Rr(re.parent);if(k_(re.parent)&&re.parent.parent&&Rp(Rr(re.parent.parent))===n)return Rr(re.parent.parent)}if(Zc(re)&&_r(re.parent)&&re.parent.operatorToken.kind===64&&ks(re.parent.left)&&zl(re.parent.left.expression))return tg(re.parent.left)||yS(re.parent.left.expression)?Rr(Vn(re)):(ec(re.parent.left.expression),ti(re.parent.left.expression).resolvedSymbol)});if(!De(_))return;let y=Vi(_,re=>yg(re,n)?re:void 0),x=[],L=[];for(let re of y){let[be,...ge]=z(re);x=In(x,be),L=Jr(L,ge)}return xo(x,L);function z(re){let be=Vi(re.declarations,U),ge=a&&aD(n,a),Je=RE(re,c);if(a&&re.flags&sv(c)&&Sb(re,a,1920,!1))return In(xo(xo([re],be),ge),Je);let vt=!(re.flags&sv(c))&&re.flags&788968&&Qs(re).flags&524288&&c===111551?NE(a,sn=>Bc(sn,un=>{if(un.flags&sv(c)&&pr(un)===Qs(re))return un})):void 0,Rt=vt?[vt,...be,re]:[...be,re];return Rt=In(Rt,Je),Rt=Jr(Rt,ge),Rt}function U(re){return d&&NT(re,d)}}function RE(n,a){let c=!!De(n.declarations)&&Ha(n.declarations);if(a&111551&&c&&c.parent&&Oi(c.parent)&&(wa(c)&&c===c.parent.initializer||yp(c)&&c===c.parent.type))return Rr(c.parent)}function NT(n,a){let c=oo(n),d=c&&c.exports&&c.exports.get("export=");return d&&c_(d,a)?c:void 0}function yg(n,a){if(n===Cd(a))return a;let c=n.exports&&n.exports.get("export=");if(c&&c_(c,a))return n;let d=Dp(n),_=d.get(a.escapedName);return _&&c_(_,a)?_:Bc(d,y=>{if(c_(y,a))return y})}function c_(n,a){if(is(Gl(is(n)))===is(Gl(is(a))))return n}function mf(n){return is(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function Bm(n,a){return!!(n.flags&111551||n.flags&2097152&&Au(n,!a)&111551)}function av(n){let a=n.members;for(let c of a)if(c.kind===176&&Xf(c.body))return c}function bg(n){var a;let c=new p(Qt,n);return m++,c.id=m,(a=lr)==null||a.recordType(c),c}function Eg(n,a){let c=bg(n);return c.symbol=a,c}function ax(n){return new p(Qt,n)}function lc(n,a,c=0,d){sD(a,d);let _=bg(n);return _.intrinsicName=a,_.debugIntrinsicName=d,_.objectFlags=c|524288|2097152|33554432|16777216,_}function sD(n,a){let c=`${n},${a??""}`;pt.has(c)&&C.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),pt.add(c)}function Of(n,a){let c=Eg(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function Lh(){return ii(Vo(zq.keys(),qd))}function _f(n){return Eg(262144,n)}function DE(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function K0(n){let a;return n.forEach((c,d)=>{sx(c,d)&&(a||(a=[])).push(c)}),a||et}function sx(n,a){return!DE(a)&&Bm(n)}function PT(n){let a=K0(n),c=FZ(n);return c?xo(a,[c]):a}function hf(n,a,c,d,_){let y=n;return y.members=a,y.properties=et,y.callSignatures=c,y.constructSignatures=d,y.indexInfos=_,a!==K&&(y.properties=K0(a)),y}function Ls(n,a,c,d,_){return hf(Of(16,n),a,c,d,_)}function CE(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=tr(n.constructSignatures,d=>!(d.flags&4));if(n.constructSignatures===a)return n;let c=Ls(n.symbol,n.members,n.callSignatures,Et(a)?a:et,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function NE(n,a){let c;for(let d=n;d;d=d.parent){if(ph(d)&&d.locals&&!Nh(d)&&(c=a(d.locals,void 0,!0,d)))return c;switch(d.kind){case 312:if(!Fp(d))break;case 267:let _=Rr(d);if(c=a(_?.exports||K,void 0,!0,d))return c;break;case 263:case 231:case 264:let y;if((Rr(d).members||K).forEach((x,L)=>{x.flags&788968&&(y||(y=ua())).set(L,x)}),y&&(c=a(y,void 0,!1,d)))return c;break}}return a(Se,void 0,!0)}function sv(n){return n===111551?111551:1920}function Sb(n,a,c,d,_=new Map){if(!(n&&!D(n)))return;let y=$i(n),x=y.accessibleChainCache||(y.accessibleChainCache=new Map),L=NE(a,(un,sr,Ln,cn)=>cn),z=`${d?0:1}|${L&&ss(L)}|${c}`;if(x.has(z))return x.get(z);let U=Ta(n),re=_.get(U);re||_.set(U,re=[]);let be=NE(a,ge);return x.set(z,be),be;function ge(un,sr,Ln){if(!bf(re,un))return;let cn=Rt(un,sr,Ln);return re.pop(),cn}function Je(un,sr){return!X0(un,a,sr)||!!Sb(un.parent,a,sv(sr),d,_)}function vt(un,sr,Ln){return(n===(sr||un)||is(n)===is(sr||un))&&!Et(un.declarations,Zu)&&(Ln||Je(is(un),c))}function Rt(un,sr,Ln){return vt(un.get(n.escapedName),void 0,sr)?[n]:Bc(un,Fn=>{if(Fn.flags&2097152&&Fn.escapedName!=="export="&&Fn.escapedName!=="default"&&!(k3(Fn)&&a&&ac(Vn(a)))&&(!d||Et(Fn.declarations,l0))&&(!Ln||!Et(Fn.declarations,Die))&&(sr||!dl(Fn,281))){let kn=Fc(Fn),Zn=sn(Fn,kn,sr);if(Zn)return Zn}if(Fn.escapedName===n.escapedName&&Fn.exportSymbol&&vt(is(Fn.exportSymbol),void 0,sr))return[n]})||(un===Se?sn(at,at,sr):void 0)}function sn(un,sr,Ln){if(vt(un,sr,Ln))return[un];let cn=Dp(sr),Fn=cn&&ge(cn,!0);if(Fn&&Je(un,sv(c)))return[un].concat(Fn)}}function X0(n,a,c){let d=!1;return NE(a,_=>{let y=is(_.get(n.escapedName));if(!y)return!1;if(y===n)return!0;let x=y.flags&2097152&&!dl(y,281);return y=x?Fc(y):y,(x?Au(y):y.flags)&c?(d=!0,!0):!1}),d}function D(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function se(n,a){return Ei(n,a,788968,!1,!0).accessibility===0}function _t(n,a){return Ei(n,a,111551,!1,!0).accessibility===0}function an(n,a,c){return Ei(n,a,c,!1,!1).accessibility===0}function Fr(n,a,c,d,_,y){if(!De(n))return;let x,L=!1;for(let z of n){let U=Sb(z,a,d,!1);if(U){x=z;let ge=Nd(U[0],_);if(ge)return ge}if(y&&Et(z.declarations,Zu)){if(_){L=!0;continue}return{accessibility:0}}let re=J0(z,a,d),be=Fr(re,a,c,c===z?sv(d):d,_,y);if(be)return be}if(L)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:Ai(c,a,d),errorModuleName:x!==c?Ai(x,a,1920):void 0}}function wi(n,a,c,d){return Ei(n,a,c,d,!0)}function Ei(n,a,c,d,_){if(n&&a){let y=Fr([n],a,n,c,d,_);if(y)return y;let x=Ke(n.declarations,oo);if(x){let L=oo(a);if(x!==L)return{accessibility:2,errorSymbolName:Ai(n,a,c),errorModuleName:Ai(x),errorNode:cr(a)?a:void 0}}return{accessibility:1,errorSymbolName:Ai(n,a,c)}}return{accessibility:0}}function oo(n){let a=zn(n,ya);return a&&Rr(a)}function ya(n){return Lu(n)||n.kind===312&&Fp(n)}function Zu(n){return B6(n)||n.kind===312&&Fp(n)}function Nd(n,a){let c;if(!Jn(tr(n.declarations,y=>y.kind!==80),d))return;return{accessibility:0,aliasesToMakeVisible:c};function d(y){var x,L;if(!u_(y)){let z=vT(y);if(z&&!ei(z,32)&&u_(z.parent))return _(y,z);if(Oi(y)&&Ml(y.parent.parent)&&!ei(y.parent.parent,32)&&u_(y.parent.parent.parent))return _(y,y.parent.parent);if(G6(y)&&!ei(y,32)&&u_(y.parent))return _(y,y);if(Qa(y)){if(n.flags&2097152&&cr(y)&&((x=y.parent)!=null&&x.parent)&&Oi(y.parent.parent)&&((L=y.parent.parent.parent)!=null&&L.parent)&&Ml(y.parent.parent.parent.parent)&&!ei(y.parent.parent.parent.parent,32)&&y.parent.parent.parent.parent.parent&&u_(y.parent.parent.parent.parent.parent))return _(y,y.parent.parent.parent.parent);if(n.flags&2){let U=zn(y,Ml);return ei(U,32)?!0:u_(U.parent)?_(y,U):!1}}return!1}return!0}function _(y,x){return a&&(ti(y).isVisible=!0,c=Ng(c,x)),!0}}function Ff(n){let a;return n.parent.kind===186||n.parent.kind===233&&!Zh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Tb(n,a){let c=Ff(n),d=Bp(n),_=vl(a,d.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&O1(d)&&wi(Rr(wd(d,!1,!1)),d,c,!1).accessibility===0?{accessibility:0}:_&&Nd(_,!0)||{accessibility:1,errorSymbolName:pc(d),errorNode:d}}function Ai(n,a,c,d=4,_){let y=70221824;d&2&&(y|=128),d&1&&(y|=512),d&8&&(y|=16384),d&32&&(y|=134217728),d&16&&(y|=1073741824);let x=d&4?At.symbolToNode:At.symbolToEntityName;return _?L(_).getText():bC(L);function L(z){let U=x(n,c,a,y),re=a?.kind===312?mJ():oE(),be=a&&Vn(a);return re.writeNode(4,U,be,z),z}}function kh(n,a,c=0,d,_){return _?y(_).getText():bC(y);function y(x){let L;c&262144?L=d===1?185:184:L=d===1?180:179;let z=At.signatureToSignatureDeclaration(n,L,a,MT(c)|70221824|512),U=Lw(),re=a&&Vn(a);return U.writeNode(4,z,re,eU(x)),x}}function jn(n,a,c=1064960,d=ik("")){let _=V.noErrorTruncation||c&1,y=At.typeToTypeNode(n,a,MT(c)|70221824|(_?1:0));if(y===void 0)return C.fail("should always get typenode");let x=n!==Vt?oE():fJ(),L=a&&Vn(a);x.writeNode(4,y,L,d);let z=d.getText(),U=_?a7*2:Ek*2;return U&&z&&z.length>=U?z.substr(0,U-3)+"...":z}function lx(n,a){let c=Ib(n.symbol)?jn(n,n.symbol.valueDeclaration):jn(n),d=Ib(a.symbol)?jn(a,a.symbol.valueDeclaration):jn(a);return c===d&&(c=Ab(n),d=Ab(a)),[c,d]}function Ab(n){return jn(n,void 0,64)}function Ib(n){return n&&!!n.valueDeclaration&&bt(n.valueDeclaration)&&!Gf(n.valueDeclaration)}function MT(n=0){return n&848330095}function PE(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===zf(n.symbol)||!!(n.flags&524288)&&!!(Wr(n)&16777216))}function K_(){return{typeToTypeNode:(ut,Ie,Pn,Mr)=>a(Ie,Pn,Mr,fi=>d(ut,fi)),indexInfoToIndexSignatureDeclaration:(ut,Ie,Pn,Mr)=>a(Ie,Pn,Mr,fi=>re(ut,fi,void 0)),signatureToSignatureDeclaration:(ut,Ie,Pn,Mr,fi)=>a(Pn,Mr,fi,xi=>be(ut,Ie,xi)),symbolToEntityName:(ut,Ie,Pn,Mr,fi)=>a(Pn,Mr,fi,xi=>vo(ut,xi,Ie,!1)),symbolToExpression:(ut,Ie,Pn,Mr,fi)=>a(Pn,Mr,fi,xi=>Dc(ut,xi,Ie)),symbolToTypeParameterDeclarations:(ut,Ie,Pn,Mr)=>a(Ie,Pn,Mr,fi=>Fn(ut,fi)),symbolToParameterDeclaration:(ut,Ie,Pn,Mr)=>a(Ie,Pn,Mr,fi=>sn(ut,fi)),typeParameterToDeclaration:(ut,Ie,Pn,Mr)=>a(Ie,Pn,Mr,fi=>vt(ut,fi)),symbolTableToDeclarationStatements:(ut,Ie,Pn,Mr,fi)=>a(Ie,Pn,Mr,xi=>yl(ut,xi,fi)),symbolToNode:(ut,Ie,Pn,Mr,fi)=>a(Pn,Mr,fi,xi=>n(ut,xi,Ie))};function n(ut,Ie,Pn){if(Ie.flags&1073741824){if(ut.valueDeclaration){let fi=Oo(ut.valueDeclaration);if(fi&&Za(fi))return fi}let Mr=$i(ut).nameType;if(Mr&&Mr.flags&9216)return Ie.enclosingDeclaration=Mr.symbol.valueDeclaration,k.createComputedPropertyName(Dc(Mr.symbol,Ie,Pn))}return Dc(ut,Ie,Pn)}function a(ut,Ie,Pn,Mr){C.assert(ut===void 0||(ut.flags&16)===0);let fi=Pn?.trackSymbol?Pn.moduleResolverHost:Ie&134217728?zGe(e):void 0,xi={enclosingDeclaration:ut,flags:Ie||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};xi.tracker=new Bq(xi,Pn,fi);let Ri=Mr(xi);return xi.truncating&&xi.flags&1&&xi.tracker.reportTruncationError(),xi.encounteredError?void 0:Ri}function c(ut){return ut.truncating?ut.truncating:ut.truncating=ut.approximateLength>(ut.flags&1?a7:Ek)}function d(ut,Ie){let Pn=Ie.flags,Mr=_(ut,Ie);return Ie.flags=Pn,Mr}function _(ut,Ie){var Pn,Mr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let fi=Ie.flags&8388608;if(Ie.flags&=-8388609,!ut){if(!(Ie.flags&262144)){Ie.encounteredError=!0;return}return Ie.approximateLength+=3,k.createKeywordTypeNode(133)}if(Ie.flags&536870912||(ut=__(ut)),ut.flags&1)return ut.aliasSymbol?k.createTypeReferenceNode(er(ut.aliasSymbol),z(ut.aliasTypeArguments,Ie)):ut===Vt?mN(k.createKeywordTypeNode(133),3,"unresolved"):(Ie.approximateLength+=3,k.createKeywordTypeNode(ut===fn?141:133));if(ut.flags&2)return k.createKeywordTypeNode(159);if(ut.flags&4)return Ie.approximateLength+=6,k.createKeywordTypeNode(154);if(ut.flags&8)return Ie.approximateLength+=6,k.createKeywordTypeNode(150);if(ut.flags&64)return Ie.approximateLength+=6,k.createKeywordTypeNode(163);if(ut.flags&16&&!ut.aliasSymbol)return Ie.approximateLength+=7,k.createKeywordTypeNode(136);if(ut.flags&1056){if(ut.symbol.flags&8){let xn=Cd(ut.symbol),ni=Mo(xn,Ie,788968);if(Qs(xn)===ut)return ni;let Ui=bl(ut.symbol);return $p(Ui,0)?Si(ni,k.createTypeReferenceNode(Ui,void 0)):lg(ni)?(ni.isTypeOf=!0,k.createIndexedAccessTypeNode(ni,k.createLiteralTypeNode(k.createStringLiteral(Ui)))):Rf(ni)?k.createIndexedAccessTypeNode(k.createTypeQueryNode(ni.typeName),k.createLiteralTypeNode(k.createStringLiteral(Ui))):C.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Mo(ut.symbol,Ie,788968)}if(ut.flags&128)return Ie.approximateLength+=ut.value.length+2,k.createLiteralTypeNode(fr(k.createStringLiteral(ut.value,!!(Ie.flags&268435456)),16777216));if(ut.flags&256){let xn=ut.value;return Ie.approximateLength+=(""+xn).length,k.createLiteralTypeNode(xn<0?k.createPrefixUnaryExpression(41,k.createNumericLiteral(-xn)):k.createNumericLiteral(xn))}if(ut.flags&2048)return Ie.approximateLength+=z1(ut.value).length+1,k.createLiteralTypeNode(k.createBigIntLiteral(ut.value));if(ut.flags&512)return Ie.approximateLength+=ut.intrinsicName.length,k.createLiteralTypeNode(ut.intrinsicName==="true"?k.createTrue():k.createFalse());if(ut.flags&8192){if(!(Ie.flags&1048576)){if(_t(ut.symbol,Ie.enclosingDeclaration))return Ie.approximateLength+=6,Mo(ut.symbol,Ie,111551);Ie.tracker.reportInaccessibleUniqueSymbolError&&Ie.tracker.reportInaccessibleUniqueSymbolError()}return Ie.approximateLength+=13,k.createTypeOperatorNode(158,k.createKeywordTypeNode(155))}if(ut.flags&16384)return Ie.approximateLength+=4,k.createKeywordTypeNode(116);if(ut.flags&32768)return Ie.approximateLength+=9,k.createKeywordTypeNode(157);if(ut.flags&65536)return Ie.approximateLength+=4,k.createLiteralTypeNode(k.createNull());if(ut.flags&131072)return Ie.approximateLength+=5,k.createKeywordTypeNode(146);if(ut.flags&4096)return Ie.approximateLength+=6,k.createKeywordTypeNode(155);if(ut.flags&67108864)return Ie.approximateLength+=6,k.createKeywordTypeNode(151);if(aN(ut))return Ie.flags&4194304&&(!Ie.encounteredError&&!(Ie.flags&32768)&&(Ie.encounteredError=!0),(Mr=(Pn=Ie.tracker).reportInaccessibleThisError)==null||Mr.call(Pn)),Ie.approximateLength+=4,k.createThisTypeNode();if(!fi&&ut.aliasSymbol&&(Ie.flags&16384||se(ut.aliasSymbol,Ie.enclosingDeclaration))){let xn=z(ut.aliasTypeArguments,Ie);return DE(ut.aliasSymbol.escapedName)&&!(ut.aliasSymbol.flags&32)?k.createTypeReferenceNode(k.createIdentifier(""),xn):De(xn)===1&&ut.aliasSymbol===Qo.symbol?k.createArrayTypeNode(xn[0]):Mo(ut.aliasSymbol,Ie,788968,xn)}let xi=Wr(ut);if(xi&4)return C.assert(!!(ut.flags&524288)),ut.node?$t(ut,Wn):Wn(ut);if(ut.flags&262144||xi&3){if(ut.flags&262144&&wr(Ie.inferTypeParameters,ut)){Ie.approximateLength+=bl(ut.symbol).length+6;let ni,Ui=Pd(ut);if(Ui){let mo=hOe(ut,!0);mo&&hv(Ui,mo)||(Ie.approximateLength+=9,ni=Ui&&d(Ui,Ie))}return k.createInferTypeNode(Je(ut,Ie,ni))}if(Ie.flags&4&&ut.flags&262144){let ni=jo(ut,Ie);return Ie.approximateLength+=Sr(ni).length,k.createTypeReferenceNode(k.createIdentifier(Sr(ni)),void 0)}if(ut.symbol)return Mo(ut.symbol,Ie,788968);let xn=(ut===de||ut===ee)&&O&&O.symbol?(ut===ee?"sub-":"super-")+bl(O.symbol):"?";return k.createTypeReferenceNode(k.createIdentifier(xn),void 0)}if(ut.flags&1048576&&ut.origin&&(ut=ut.origin),ut.flags&3145728){let xn=ut.flags&1048576?lD(ut.types):ut.types;if(De(xn)===1)return d(xn[0],Ie);let ni=z(xn,Ie,!0);if(ni&&ni.length>0)return ut.flags&1048576?k.createUnionTypeNode(ni):k.createIntersectionTypeNode(ni);!Ie.encounteredError&&!(Ie.flags&262144)&&(Ie.encounteredError=!0);return}if(xi&48)return C.assert(!!(ut.flags&524288)),tn(ut);if(ut.flags&4194304){let xn=ut.type;Ie.approximateLength+=6;let ni=d(xn,Ie);return k.createTypeOperatorNode(143,ni)}if(ut.flags&134217728){let xn=ut.texts,ni=ut.types,Ui=k.createTemplateHead(xn[0]),mo=k.createNodeArray(Ft(ni,(fa,bc)=>k.createTemplateLiteralTypeSpan(d(fa,Ie),(bcRi(xn));if(ut.flags&33554432){let xn=d(ut.baseType,Ie),ni=qP(ut)&&Wge("NoInfer",!1);return ni?Mo(ni,Ie,788968,[xn]):xn}return C.fail("Should be unreachable.");function Ri(xn){let ni=d(xn.checkType,Ie);if(Ie.approximateLength+=15,Ie.flags&4&&xn.root.isDistributive&&!(xn.checkType.flags&262144)){let Cl=_f(Xa(262144,"T")),cs=jo(Cl,Ie),Cc=k.createTypeReferenceNode(cs);Ie.approximateLength+=37;let Js=HT(xn.root.checkType,Cl,xn.mapper),b_=Ie.inferTypeParameters;Ie.inferTypeParameters=xn.root.inferTypeParameters;let it=d(co(xn.root.extendsType,Js),Ie);Ie.inferTypeParameters=b_;let Tt=Ur(co(Ii(xn.root.node.trueType),Js)),en=Ur(co(Ii(xn.root.node.falseType),Js));return k.createConditionalTypeNode(ni,k.createInferTypeNode(k.createTypeParameterDeclaration(void 0,k.cloneNode(Cc.typeName))),k.createConditionalTypeNode(k.createTypeReferenceNode(k.cloneNode(cs)),d(xn.checkType,Ie),k.createConditionalTypeNode(Cc,it,Tt,en),k.createKeywordTypeNode(146)),k.createKeywordTypeNode(146))}let Ui=Ie.inferTypeParameters;Ie.inferTypeParameters=xn.root.inferTypeParameters;let mo=d(xn.extendsType,Ie);Ie.inferTypeParameters=Ui;let fa=Ur(o1(xn)),bc=Ur(a1(xn));return k.createConditionalTypeNode(ni,mo,fa,bc)}function Ur(xn){var ni,Ui,mo;return xn.flags&1048576?(ni=Ie.visitedTypes)!=null&&ni.has(gd(xn))?(Ie.flags&131072||(Ie.encounteredError=!0,(mo=(Ui=Ie.tracker)==null?void 0:Ui.reportCyclicStructureError)==null||mo.call(Ui)),y(Ie)):$t(xn,fa=>d(fa,Ie)):d(xn,Ie)}function Dr(xn){return!!N4(xn)}function ct(xn){return!!xn.target&&Dr(xn.target)&&!Dr(xn)}function Ot(xn){var ni;C.assert(!!(xn.flags&524288));let Ui=xn.declaration.readonlyToken?k.createToken(xn.declaration.readonlyToken.kind):void 0,mo=xn.declaration.questionToken?k.createToken(xn.declaration.questionToken.kind):void 0,fa,bc,Cl=!_D(xn)&&!(OT(xn).flags&2)&&Ie.flags&4&&!(gf(xn).flags&262144&&((ni=Pd(gf(xn)))==null?void 0:ni.flags)&4194304);if(_D(xn)){if(ct(xn)&&Ie.flags&4){let Tt=_f(Xa(262144,"T")),en=jo(Tt,Ie);bc=k.createTypeReferenceNode(en)}fa=k.createTypeOperatorNode(143,bc||d(OT(xn),Ie))}else if(Cl){let Tt=_f(Xa(262144,"T")),en=jo(Tt,Ie);bc=k.createTypeReferenceNode(en),fa=bc}else fa=d(gf(xn),Ie);let cs=Je(f_(xn),Ie,fa),Cc=xn.declaration.nameType?d(py(xn),Ie):void 0,Js=d(Ub(pv(xn),!!(Wh(xn)&4)),Ie),b_=k.createMappedTypeNode(Ui,cs,Cc,mo,Js,void 0);Ie.approximateLength+=10;let it=fr(b_,1);if(ct(xn)&&Ie.flags&4){let Tt=co(Pd(Ii(xn.declaration.typeParameter.constraint.type))||mn,xn.mapper);return k.createConditionalTypeNode(d(OT(xn),Ie),k.createInferTypeNode(k.createTypeParameterDeclaration(void 0,k.cloneNode(bc.typeName),Tt.flags&2?void 0:d(Tt,Ie))),it,k.createKeywordTypeNode(146))}else if(Cl)return k.createConditionalTypeNode(d(gf(xn),Ie),k.createInferTypeNode(k.createTypeParameterDeclaration(void 0,k.cloneNode(bc.typeName),k.createTypeOperatorNode(143,d(OT(xn),Ie)))),it,k.createKeywordTypeNode(146));return it}function tn(xn){var ni,Ui;let mo=xn.id,fa=xn.symbol;if(fa){if(!!(Wr(xn)&8388608)){let Js=xn.node;if(rI(Js)&&Ii(Js)===xn){let b_=Ol(Ie,Js);if(b_)return b_}return(ni=Ie.visitedTypes)!=null&&ni.has(mo)?y(Ie):$t(xn,dn)}let cs=PE(xn)?788968:111551;if(th(fa.valueDeclaration))return Mo(fa,Ie,cs);if(fa.flags&32&&!xZ(fa)&&!(fa.valueDeclaration&&pi(fa.valueDeclaration)&&Ie.flags&2048&&(!Tc(fa.valueDeclaration)||wi(fa,Ie.enclosingDeclaration,cs,!1).accessibility!==0))||fa.flags&896||bc())return Mo(fa,Ie,cs);if((Ui=Ie.visitedTypes)!=null&&Ui.has(mo)){let Cc=iz(xn);return Cc?Mo(Cc,Ie,788968):y(Ie)}else return $t(xn,dn)}else return dn(xn);function bc(){var Cl;let cs=!!(fa.flags&8192)&&Et(fa.declarations,Js=>sa(Js)),Cc=!!(fa.flags&16)&&(fa.parent||Ke(fa.declarations,Js=>Js.parent.kind===312||Js.parent.kind===268));if(cs||Cc)return(!!(Ie.flags&4096)||((Cl=Ie.visitedTypes)==null?void 0:Cl.has(mo)))&&(!(Ie.flags&8)||_t(fa,Ie.enclosingDeclaration))}}function $t(xn,ni){var Ui,mo,fa;let bc=xn.id,Cl=Wr(xn)&16&&xn.symbol&&xn.symbol.flags&32,cs=Wr(xn)&4&&xn.node?"N"+ss(xn.node):xn.flags&16777216?"N"+ss(xn.root.node):xn.symbol?(Cl?"+":"")+Ta(xn.symbol):void 0;Ie.visitedTypes||(Ie.visitedTypes=new Set),cs&&!Ie.symbolDepth&&(Ie.symbolDepth=new Map);let Cc=Ie.enclosingDeclaration&&ti(Ie.enclosingDeclaration),Js=`${gd(xn)}|${Ie.flags}`;Cc&&(Cc.serializedTypes||(Cc.serializedTypes=new Map));let b_=(Ui=Cc?.serializedTypes)==null?void 0:Ui.get(Js);if(b_)return(mo=b_.trackedSymbols)==null||mo.forEach(([Hr,zi,Go])=>Ie.tracker.trackSymbol(Hr,zi,Go)),b_.truncating&&(Ie.truncating=!0),Ie.approximateLength+=b_.addedLength,Sn(b_.node);let it;if(cs){if(it=Ie.symbolDepth.get(cs)||0,it>10)return y(Ie);Ie.symbolDepth.set(cs,it+1)}Ie.visitedTypes.add(bc);let Tt=Ie.trackedSymbols;Ie.trackedSymbols=void 0;let en=Ie.approximateLength,Kn=ni(xn),Cr=Ie.approximateLength-en;return!Ie.reportedDiagnostic&&!Ie.encounteredError&&((fa=Cc?.serializedTypes)==null||fa.set(Js,{node:Kn,truncating:Ie.truncating,addedLength:Cr,trackedSymbols:Ie.trackedSymbols})),Ie.visitedTypes.delete(bc),cs&&Ie.symbolDepth.set(cs,it),Ie.trackedSymbols=Tt,Kn;function Sn(Hr){return!Xs(Hr)&&Lo(Hr)===Hr?Hr:dt(k.cloneNode(An(Hr,Sn,void 0,yr)),Hr)}function yr(Hr,zi,Go,ha,ga){return Hr&&Hr.length===0?dt(k.createNodeArray(void 0,Hr.hasTrailingComma),Hr):Bn(Hr,zi,Go,ha,ga)}}function dn(xn){if(Hd(xn)||xn.containsError)return Ot(xn);let ni=m_(xn);if(!ni.properties.length&&!ni.indexInfos.length){if(!ni.callSignatures.length&&!ni.constructSignatures.length)return Ie.approximateLength+=2,fr(k.createTypeLiteralNode(void 0),1);if(ni.callSignatures.length===1&&!ni.constructSignatures.length){let Cl=ni.callSignatures[0];return be(Cl,184,Ie)}if(ni.constructSignatures.length===1&&!ni.callSignatures.length){let Cl=ni.constructSignatures[0];return be(Cl,185,Ie)}}let Ui=tr(ni.constructSignatures,Cl=>!!(Cl.flags&4));if(Et(Ui)){let Cl=Ft(Ui,BT);return ni.callSignatures.length+(ni.constructSignatures.length-Ui.length)+ni.indexInfos.length+(Ie.flags&2048?au(ni.properties,Cc=>!(Cc.flags&4194304)):De(ni.properties))&&Cl.push(CE(ni)),d(Ea(Cl),Ie)}let mo=Ie.flags;Ie.flags|=4194304;let fa=fo(ni);Ie.flags=mo;let bc=k.createTypeLiteralNode(fa);return Ie.approximateLength+=2,fr(bc,Ie.flags&1024?0:1),bc}function Wn(xn){let ni=qs(xn);if(xn.target===Qo||xn.target===na){if(Ie.flags&2){let fa=d(ni[0],Ie);return k.createTypeReferenceNode(xn.target===Qo?"Array":"ReadonlyArray",[fa])}let Ui=d(ni[0],Ie),mo=k.createArrayTypeNode(Ui);return xn.target===Qo?mo:k.createTypeOperatorNode(148,mo)}else if(xn.target.objectFlags&8){if(ni=Io(ni,(Ui,mo)=>Ub(Ui,!!(xn.target.elementFlags[mo]&2))),ni.length>0){let Ui=my(xn),mo=z(ni.slice(0,Ui),Ie);if(mo){let{labeledElementDeclarations:fa}=xn.target;for(let Cl=0;Cl0){let Cc=(xn.target.typeParameters||et).length;bc=z(ni.slice(mo,Cc),Ie)}let Cl=Ie.flags;Ie.flags|=16;let cs=Mo(xn.symbol,Ie,788968,bc);return Ie.flags=Cl,fa?Si(fa,cs):cs}}}function Si(xn,ni){if(lg(xn)){let Ui=xn.typeArguments,mo=xn.qualifier;mo&&(Ve(mo)?Ui!==PS(mo)&&(mo=Uv(k.cloneNode(mo),Ui)):Ui!==PS(mo.right)&&(mo=k.updateQualifiedName(mo,mo.left,Uv(k.cloneNode(mo.right),Ui)))),Ui=ni.typeArguments;let fa=mi(ni);for(let bc of fa)mo=mo?k.createQualifiedName(mo,bc):bc;return k.updateImportTypeNode(xn,xn.argument,xn.attributes,mo,Ui,xn.isTypeOf)}else{let Ui=xn.typeArguments,mo=xn.typeName;Ve(mo)?Ui!==PS(mo)&&(mo=Uv(k.cloneNode(mo),Ui)):Ui!==PS(mo.right)&&(mo=k.updateQualifiedName(mo,mo.left,Uv(k.cloneNode(mo.right),Ui))),Ui=ni.typeArguments;let fa=mi(ni);for(let bc of fa)mo=k.createQualifiedName(mo,bc);return k.updateTypeReferenceNode(xn,mo,Ui)}}function mi(xn){let ni=xn.typeName,Ui=[];for(;!Ve(ni);)Ui.unshift(ni.right),ni=ni.left;return Ui.unshift(ni),Ui}function fo(xn){if(c(Ie))return[k.createPropertySignature(void 0,"...",void 0,void 0)];let ni=[];for(let fa of xn.callSignatures)ni.push(be(fa,179,Ie));for(let fa of xn.constructSignatures)fa.flags&4||ni.push(be(fa,180,Ie));for(let fa of xn.indexInfos)ni.push(re(fa,Ie,xn.objectFlags&1024?y(Ie):void 0));let Ui=xn.properties;if(!Ui)return ni;let mo=0;for(let fa of Ui){if(mo++,Ie.flags&2048){if(fa.flags&4194304)continue;If(fa)&6&&Ie.tracker.reportPrivateInBaseOfClassExpression&&Ie.tracker.reportPrivateInBaseOfClassExpression(Hi(fa.escapedName))}if(c(Ie)&&mo+2!(Wn.flags&32768)),0);for(let Wn of dn){let Si=be(Wn,173,Ie,{name:Ur,questionToken:Dr});Pn.push($t(Si))}if(dn.length||!Dr)return}let ct;x(ut,Ie)?ct=y(Ie):(fi&&(Ie.reverseMappedStack||(Ie.reverseMappedStack=[]),Ie.reverseMappedStack.push(ut)),ct=xi?As(Ie,xi,ut,Ri):k.createKeywordTypeNode(133),fi&&Ie.reverseMappedStack.pop());let Ot=y_(ut)?[k.createToken(148)]:void 0;Ot&&(Ie.approximateLength+=9);let tn=k.createPropertySignature(Ot,Ur,Dr,ct);Pn.push($t(tn));function $t(dn){var Wn;let Si=(Wn=ut.declarations)==null?void 0:Wn.find(mi=>mi.kind===355);if(Si){let mi=oL(Si.comment);mi&&g0(dn,[{kind:3,text:`* + * `+mi.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ut.valueDeclaration&&oc(dn,ut.valueDeclaration);return dn}}function z(ut,Ie,Pn){if(Et(ut)){if(c(Ie))if(Pn){if(ut.length>2)return[d(ut[0],Ie),k.createTypeReferenceNode(`... ${ut.length-2} more ...`,void 0),d(ut[ut.length-1],Ie)]}else return[k.createTypeReferenceNode("...",void 0)];let fi=!(Ie.flags&64)?Xp():void 0,xi=[],Ri=0;for(let Ur of ut){if(Ri++,c(Ie)&&Ri+2{if(!joe(Dr,([ct],[Ot])=>U(ct,Ot)))for(let[ct,Ot]of Dr)xi[Ot]=d(ct,Ie)}),Ie.flags=Ur}return xi}}function U(ut,Ie){return ut===Ie||!!ut.symbol&&ut.symbol===Ie.symbol||!!ut.aliasSymbol&&ut.aliasSymbol===Ie.aliasSymbol}function re(ut,Ie,Pn){let Mr=uie(ut)||"x",fi=d(ut.keyType,Ie),xi=k.createParameterDeclaration(void 0,void 0,Mr,void 0,fi,void 0);return Pn||(Pn=d(ut.type||j,Ie)),!ut.type&&!(Ie.flags&2097152)&&(Ie.encounteredError=!0),Ie.approximateLength+=Mr.length+4,k.createIndexSignature(ut.isReadonly?[k.createToken(148)]:void 0,[xi],Pn)}function be(ut,Ie,Pn,Mr){var fi;let xi=Pn.flags&256;xi&&(Pn.flags&=-257),Pn.approximateLength+=3;let Ri,Ur;Pn.flags&32&&ut.target&&ut.mapper&&ut.target.typeParameters?Ur=ut.target.typeParameters.map(fo=>d(co(fo,ut.mapper),Pn)):Ri=ut.typeParameters&&ut.typeParameters.map(fo=>vt(fo,Pn));let Dr=qwe(ut,!0)[0],ct;if(Pn.enclosingDeclaration&&ut.declaration&&ut.declaration!==Pn.enclosingDeclaration&&!cr(ut.declaration)&&(Et(Dr)||Et(ut.typeParameters))){let fo=function(xn,ni){C.assert(Pn.enclosingDeclaration);let Ui;ti(Pn.enclosingDeclaration).fakeScopeForSignatureDeclaration===xn?Ui=Pn.enclosingDeclaration:Pn.enclosingDeclaration.parent&&ti(Pn.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===xn&&(Ui=Pn.enclosingDeclaration.parent),C.assertOptionalNode(Ui,Xo);let mo=Ui?.locals??ua(),fa;if(ni((cs,Cc)=>{mo.has(cs)||(fa=In(fa,cs),mo.set(cs,Cc))}),!fa)return;let bc=ct;function Cl(){Ke(fa,cs=>mo.delete(cs)),bc?.()}if(Ui)ct=Cl;else{let cs=Ah.createBlock(et);ti(cs).fakeScopeForSignatureDeclaration=xn,cs.locals=mo;let Cc=Pn.enclosingDeclaration;qa(cs,Cc),Pn.enclosingDeclaration=cs,ct=()=>{Pn.enclosingDeclaration=Cc,Cl()}}};var Ot=fo;fo("params",xn=>{for(let ni of Dr)xn(ni.escapedName,ni)}),Pn.flags&4&&fo("typeParams",xn=>{for(let ni of ut.typeParameters??et){let Ui=jo(ni,Pn).escapedText;xn(Ui,ni.symbol)}})}let tn=(Et(Dr,fo=>fo!==Dr[Dr.length-1]&&!!(Al(fo)&32768))?ut.parameters:Dr).map(fo=>sn(fo,Pn,Ie===176,Mr?.privateSymbolVisitor,Mr?.bundledImports)),$t=Pn.flags&33554432?void 0:ge(ut,Pn);$t&&tn.unshift($t);let dn,Wn=Bf(ut);if(Wn){let fo=Wn.kind===2||Wn.kind===3?k.createToken(131):void 0,xn=Wn.kind===1||Wn.kind===3?fr(k.createIdentifier(Wn.parameterName),16777216):k.createThisTypeNode(),ni=Wn.type&&d(Wn.type,Pn);dn=k.createTypePredicateNode(fo,xn,ni)}else{let fo=ms(ut);fo&&!(xi&&Ct(fo))?dn=za(Pn,fo,ut,Mr?.privateSymbolVisitor,Mr?.bundledImports):xi||(dn=k.createKeywordTypeNode(133))}let Si=Mr?.modifiers;if(Ie===185&&ut.flags&4){let fo=N_(Si);Si=k.createModifiersFromModifierFlags(fo|64)}let mi=Ie===179?k.createCallSignature(Ri,tn,dn):Ie===180?k.createConstructSignature(Ri,tn,dn):Ie===173?k.createMethodSignature(Si,Mr?.name??k.createIdentifier(""),Mr?.questionToken,Ri,tn,dn):Ie===174?k.createMethodDeclaration(Si,void 0,Mr?.name??k.createIdentifier(""),void 0,Ri,tn,dn,void 0):Ie===176?k.createConstructorDeclaration(Si,tn,void 0):Ie===177?k.createGetAccessorDeclaration(Si,Mr?.name??k.createIdentifier(""),tn,dn,void 0):Ie===178?k.createSetAccessorDeclaration(Si,Mr?.name??k.createIdentifier(""),tn,void 0):Ie===181?k.createIndexSignature(Si,tn,dn):Ie===324?k.createJSDocFunctionType(tn,dn):Ie===184?k.createFunctionTypeNode(Ri,tn,dn??k.createTypeReferenceNode(k.createIdentifier(""))):Ie===185?k.createConstructorTypeNode(Si,Ri,tn,dn??k.createTypeReferenceNode(k.createIdentifier(""))):Ie===262?k.createFunctionDeclaration(Si,void 0,Mr?.name?aa(Mr.name,Ve):k.createIdentifier(""),Ri,tn,dn,void 0):Ie===218?k.createFunctionExpression(Si,void 0,Mr?.name?aa(Mr.name,Ve):k.createIdentifier(""),Ri,tn,dn,k.createBlock([])):Ie===219?k.createArrowFunction(Si,Ri,tn,dn,void 0,k.createBlock([])):C.assertNever(Ie);if(Ur&&(mi.typeArguments=k.createNodeArray(Ur)),((fi=ut.declaration)==null?void 0:fi.kind)===330&&ut.declaration.parent.kind===346){let fo=pc(ut.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(xn=>xn.replace(/^\s+/," ")).join(` +`);mN(mi,3,fo,!0)}return ct?.(),mi}function ge(ut,Ie){if(ut.thisParameter)return sn(ut.thisParameter,Ie);if(ut.declaration&&cr(ut.declaration)){let Pn=h6(ut.declaration);if(Pn&&Pn.typeExpression)return k.createParameterDeclaration(void 0,void 0,"this",void 0,d(Ii(Pn.typeExpression),Ie))}}function Je(ut,Ie,Pn){let Mr=Ie.flags;Ie.flags&=-513;let fi=k.createModifiersFromModifierFlags(bve(ut)),xi=jo(ut,Ie),Ri=zT(ut),Ur=Ri&&d(Ri,Ie);return Ie.flags=Mr,k.createTypeParameterDeclaration(fi,xi,Pn,Ur)}function vt(ut,Ie,Pn=Pd(ut)){let Mr=Pn&&d(Pn,Ie);return Je(ut,Ie,Mr)}function Rt(ut){let Ie=dl(ut,169);if(Ie)return Ie;if(!fh(ut))return dl(ut,348)}function sn(ut,Ie,Pn,Mr,fi){let xi=Rt(ut),Ri=pr(ut);xi&&w7e(xi)&&(Ri=jb(Ri));let Ur=As(Ie,Ri,ut,Ie.enclosingDeclaration,Mr,fi),Dr=!(Ie.flags&8192)&&Pn&&xi&&Cm(xi)?Ft(b1(xi),k.cloneNode):void 0,Ot=xi&&$h(xi)||Al(ut)&32768?k.createToken(26):void 0,tn=un(ut,xi,Ie),dn=xi&&S4(xi)||Al(ut)&16384?k.createToken(58):void 0,Wn=k.createParameterDeclaration(Dr,Ot,tn,dn,Ur,void 0);return Ie.approximateLength+=bl(ut).length+3,Wn}function un(ut,Ie,Pn){return Ie&&Ie.name?Ie.name.kind===80?fr(k.cloneNode(Ie.name),16777216):Ie.name.kind===166?fr(k.cloneNode(Ie.name.right),16777216):Mr(Ie.name):bl(ut);function Mr(fi){return xi(fi);function xi(Ri){Pn.tracker.canTrackSymbol&&Za(Ri)&&lge(Ri)&&sr(Ri.expression,Pn.enclosingDeclaration,Pn);let Ur=An(Ri,xi,void 0,void 0,xi);return Qa(Ur)&&(Ur=k.updateBindingElement(Ur,Ur.dotDotDotToken,Ur.propertyName,Ur.name,void 0)),Xs(Ur)||(Ur=k.cloneNode(Ur)),fr(Ur,16777217)}}}function sr(ut,Ie,Pn){if(!Pn.tracker.canTrackSymbol)return;let Mr=Bp(ut),fi=vl(Mr,Mr.escapedText,1160127,void 0,void 0,!0);fi&&Pn.tracker.trackSymbol(fi,Ie,111551)}function Ln(ut,Ie,Pn,Mr){return Ie.tracker.trackSymbol(ut,Ie.enclosingDeclaration,Pn),cn(ut,Ie,Pn,Mr)}function cn(ut,Ie,Pn,Mr){let fi;return!(ut.flags&262144)&&(Ie.enclosingDeclaration||Ie.flags&64)&&!(Ie.flags&134217728)?(fi=C.checkDefined(Ri(ut,Pn,!0)),C.assert(fi&&fi.length>0)):fi=[ut],fi;function Ri(Ur,Dr,ct){let Ot=Sb(Ur,Ie.enclosingDeclaration,Dr,!!(Ie.flags&128)),tn;if(!Ot||X0(Ot[0],Ie.enclosingDeclaration,Ot.length===1?Dr:sv(Dr))){let dn=J0(Ot?Ot[0]:Ur,Ie.enclosingDeclaration,Dr);if(De(dn)){tn=dn.map(mi=>Et(mi.declarations,Zu)?Hn(mi,Ie):void 0);let Wn=dn.map((mi,fo)=>fo);Wn.sort($t);let Si=Wn.map(mi=>dn[mi]);for(let mi of Si){let fo=Ri(mi,sv(Dr),!1);if(fo){if(mi.exports&&mi.exports.get("export=")&&c_(mi.exports.get("export="),Ur)){Ot=fo;break}Ot=fo.concat(Ot||[yg(mi,Ur)||Ur]);break}}}}if(Ot)return Ot;if(ct||!(Ur.flags&6144))return!ct&&!Mr&&Ke(Ur.declarations,Zu)?void 0:[Ur];function $t(dn,Wn){let Si=tn[dn],mi=tn[Wn];if(Si&&mi){let fo=wp(mi);return wp(Si)===fo?G5(Si)-G5(mi):fo?-1:1}return 0}}}function Fn(ut,Ie){let Pn;return MD(ut).flags&524384&&(Pn=k.createNodeArray(Ft(kr(ut),fi=>vt(fi,Ie)))),Pn}function kn(ut,Ie,Pn){var Mr;C.assert(ut&&0<=Ie&&Iezb(Ot,Dr.links.mapper)),Pn)}else Ri=Fn(fi,Pn)}return Ri}function Zn(ut){return wS(ut.objectType)?Zn(ut.objectType):ut}function Hn(ut,Ie,Pn){let Mr=dl(ut,312);if(!Mr){let ct=Zt(ut.declarations,Ot=>NT(Ot,ut));ct&&(Mr=dl(ct,312))}if(Mr&&Mr.moduleName!==void 0)return Mr.moduleName;if(!Mr){if(Ie.tracker.trackReferencedAmbientModule){let ct=tr(ut.declarations,Lu);if(De(ct))for(let Ot of ct)Ie.tracker.trackReferencedAmbientModule(Ot,ut)}if(Wq.test(ut.escapedName))return ut.escapedName.substring(1,ut.escapedName.length-1)}if(!Ie.enclosingDeclaration||!Ie.tracker.moduleResolverHost)return Wq.test(ut.escapedName)?ut.escapedName.substring(1,ut.escapedName.length-1):Vn(mj(ut)).fileName;let fi=Vn(Nl(Ie.enclosingDeclaration)),xi=Pn||fi?.impliedNodeFormat,Ri=WN(fi.path,xi),Ur=$i(ut),Dr=Ur.specifierCache&&Ur.specifierCache.get(Ri);if(!Dr){let ct=!!Ps(V),{moduleResolverHost:Ot}=Ie.tracker,tn=ct?{...V,baseUrl:Ot.getCommonSourceDirectory()}:V;Dr=Ha(UAe(ut,Qt,tn,fi,Ot,{importModuleSpecifierPreference:ct?"non-relative":"project-relative",importModuleSpecifierEnding:ct?"minimal":xi===99?"js":void 0},{overrideImportMode:Pn})),Ur.specifierCache??(Ur.specifierCache=new Map),Ur.specifierCache.set(Ri,Dr)}return Dr}function er(ut){let Ie=k.createIdentifier(Hi(ut.escapedName));return ut.parent?k.createQualifiedName(er(ut.parent),Ie):Ie}function Mo(ut,Ie,Pn,Mr){let fi=Ln(ut,Ie,Pn,!(Ie.flags&16384)),xi=Pn===111551;if(Et(fi[0].declarations,Zu)){let Dr=fi.length>1?Ur(fi,fi.length-1,1):void 0,ct=Mr||kn(fi,0,Ie),Ot=Vn(Nl(Ie.enclosingDeclaration)),tn=O6(fi[0]),$t,dn;if((dd(V)===3||dd(V)===99)&&tn?.impliedNodeFormat===99&&tn.impliedNodeFormat!==Ot?.impliedNodeFormat&&($t=Hn(fi[0],Ie,99),dn=k.createImportAttributes(k.createNodeArray([k.createImportAttribute(k.createStringLiteral("resolution-mode"),k.createStringLiteral("import"))]))),$t||($t=Hn(fi[0],Ie)),!(Ie.flags&67108864)&&dd(V)!==1&&$t.includes("/node_modules/")){let Si=$t;if(dd(V)===3||dd(V)===99){let mi=Ot?.impliedNodeFormat===99?1:99;$t=Hn(fi[0],Ie,mi),$t.includes("/node_modules/")?$t=Si:dn=k.createImportAttributes(k.createNodeArray([k.createImportAttribute(k.createStringLiteral("resolution-mode"),k.createStringLiteral(mi===99?"import":"require"))]))}dn||(Ie.encounteredError=!0,Ie.tracker.reportLikelyUnsafeImportRequiredError&&Ie.tracker.reportLikelyUnsafeImportRequiredError(Si))}let Wn=k.createLiteralTypeNode(k.createStringLiteral($t));if(Ie.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ie.tracker.trackExternalModuleSymbolOfImportTypeNode(fi[0]),Ie.approximateLength+=$t.length+10,!Dr||Qd(Dr)){if(Dr){let Si=Ve(Dr)?Dr:Dr.right;Uv(Si,void 0)}return k.createImportTypeNode(Wn,dn,Dr,ct,xi)}else{let Si=Zn(Dr),mi=Si.objectType.typeName;return k.createIndexedAccessTypeNode(k.createImportTypeNode(Wn,dn,mi,ct,xi),Si.indexType)}}let Ri=Ur(fi,fi.length-1,0);if(wS(Ri))return Ri;if(xi)return k.createTypeQueryNode(Ri);{let Dr=Ve(Ri)?Ri:Ri.right,ct=PS(Dr);return Uv(Dr,void 0),k.createTypeReferenceNode(Ri,ct)}function Ur(Dr,ct,Ot){let tn=ct===Dr.length-1?Mr:kn(Dr,ct,Ie),$t=Dr[ct],dn=Dr[ct-1],Wn;if(ct===0)Ie.flags|=16777216,Wn=Y0($t,Ie),Ie.approximateLength+=(Wn?Wn.length:0)+1,Ie.flags^=16777216;else if(dn&&Dp(dn)){let mi=Dp(dn);Bc(mi,(fo,xn)=>{if(c_(fo,$t)&&!y4(xn)&&xn!=="export=")return Wn=Hi(xn),!0})}if(Wn===void 0){let mi=Zt($t.declarations,Oo);if(mi&&Za(mi)&&Qd(mi.expression)){let fo=Ur(Dr,ct-1,Ot);return Qd(fo)?k.createIndexedAccessTypeNode(k.createParenthesizedType(k.createTypeQueryNode(fo)),k.createTypeQueryNode(mi.expression)):fo}Wn=Y0($t,Ie)}if(Ie.approximateLength+=Wn.length+1,!(Ie.flags&16)&&dn&&Lb(dn)&&Lb(dn).get($t.escapedName)&&c_(Lb(dn).get($t.escapedName),$t)){let mi=Ur(Dr,ct-1,Ot);return wS(mi)?k.createIndexedAccessTypeNode(mi,k.createLiteralTypeNode(k.createStringLiteral(Wn))):k.createIndexedAccessTypeNode(k.createTypeReferenceNode(mi,tn),k.createLiteralTypeNode(k.createStringLiteral(Wn)))}let Si=fr(k.createIdentifier(Wn),16777216);if(tn&&Uv(Si,k.createNodeArray(tn)),Si.symbol=$t,ct>Ot){let mi=Ur(Dr,ct-1,Ot);return Qd(mi)?k.createQualifiedName(mi,Si):C.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Si}}function Ao(ut,Ie,Pn){let Mr=vl(Ie.enclosingDeclaration,ut,788968,void 0,ut,!1);return Mr&&Mr.flags&262144?Mr!==Pn.symbol:!1}function jo(ut,Ie){var Pn,Mr;if(Ie.flags&4&&Ie.typeParameterNames){let xi=Ie.typeParameterNames.get(gd(ut));if(xi)return xi}let fi=vo(ut.symbol,Ie,788968,!0);if(!(fi.kind&80))return k.createIdentifier("(Missing type parameter)");if(Ie.flags&4){let xi=fi.escapedText,Ri=((Pn=Ie.typeParameterNamesByTextNextNameCount)==null?void 0:Pn.get(xi))||0,Ur=xi;for(;(Mr=Ie.typeParameterNamesByText)!=null&&Mr.has(Ur)||Ao(Ur,Ie,ut);)Ri++,Ur=`${xi}_${Ri}`;if(Ur!==xi){let Dr=PS(fi);fi=k.createIdentifier(Ur),Uv(fi,Dr)}(Ie.typeParameterNamesByTextNextNameCount||(Ie.typeParameterNamesByTextNextNameCount=new Map)).set(xi,Ri),(Ie.typeParameterNames||(Ie.typeParameterNames=new Map)).set(gd(ut),fi),(Ie.typeParameterNamesByText||(Ie.typeParameterNamesByText=new Set)).add(Ur)}return fi}function vo(ut,Ie,Pn,Mr){let fi=Ln(ut,Ie,Pn);return Mr&&fi.length!==1&&!Ie.encounteredError&&!(Ie.flags&65536)&&(Ie.encounteredError=!0),xi(fi,fi.length-1);function xi(Ri,Ur){let Dr=kn(Ri,Ur,Ie),ct=Ri[Ur];Ur===0&&(Ie.flags|=16777216);let Ot=Y0(ct,Ie);Ur===0&&(Ie.flags^=16777216);let tn=fr(k.createIdentifier(Ot),16777216);return Dr&&Uv(tn,k.createNodeArray(Dr)),tn.symbol=ct,Ur>0?k.createQualifiedName(xi(Ri,Ur-1),tn):tn}}function Dc(ut,Ie,Pn){let Mr=Ln(ut,Ie,Pn);return fi(Mr,Mr.length-1);function fi(xi,Ri){let Ur=kn(xi,Ri,Ie),Dr=xi[Ri];Ri===0&&(Ie.flags|=16777216);let ct=Y0(Dr,Ie);Ri===0&&(Ie.flags^=16777216);let Ot=ct.charCodeAt(0);if(kL(Ot)&&Et(Dr.declarations,Zu))return k.createStringLiteral(Hn(Dr,Ie));if(Ri===0||LU(ct,ue)){let tn=fr(k.createIdentifier(ct),16777216);return Ur&&Uv(tn,k.createNodeArray(Ur)),tn.symbol=Dr,Ri>0?k.createPropertyAccessExpression(fi(xi,Ri-1),tn):tn}else{Ot===91&&(ct=ct.substring(1,ct.length-1),Ot=ct.charCodeAt(0));let tn;if(kL(Ot)&&!(Dr.flags&8)?tn=k.createStringLiteral(em(ct).replace(/\\./g,$t=>$t.substring(1)),Ot===39):""+ +ct===ct&&(tn=k.createNumericLiteral(+ct)),!tn){let $t=fr(k.createIdentifier(ct),16777216);Ur&&Uv($t,k.createNodeArray(Ur)),$t.symbol=Dr,tn=$t}return k.createElementAccessExpression(fi(xi,Ri-1),tn)}}}function Uf(ut){let Ie=Oo(ut);return Ie?Za(Ie)?!!(go(Ie.expression).flags&402653316):Ys(Ie)?!!(go(Ie.argumentExpression).flags&402653316):Na(Ie):!1}function up(ut){let Ie=Oo(ut);return!!(Ie&&Na(Ie)&&(Ie.singleQuote||!Xs(Ie)&&uo(pc(Ie,!1),"'")))}function Mn(ut,Ie){let Pn=!!De(ut.declarations)&&Jn(ut.declarations,Uf),Mr=!!De(ut.declarations)&&Jn(ut.declarations,up),fi=!!(ut.flags&8192),xi=Qn(ut,Ie,Mr,Pn,fi);if(xi)return xi;let Ri=Hi(ut.escapedName);return e7(Ri,as(V),Mr,Pn,fi)}function Qn(ut,Ie,Pn,Mr,fi){let xi=$i(ut).nameType;if(xi){if(xi.flags&384){let Ri=""+xi.value;return!$p(Ri,as(V))&&(Mr||!sg(Ri))?k.createStringLiteral(Ri,!!Pn):sg(Ri)&&uo(Ri,"-")?k.createComputedPropertyName(k.createPrefixUnaryExpression(41,k.createNumericLiteral(-Ri))):e7(Ri,as(V),Pn,Mr,fi)}if(xi.flags&8192)return k.createComputedPropertyName(Dc(xi.symbol,Ie,111551))}}function lo(ut){let Ie={...ut};return Ie.typeParameterNames&&(Ie.typeParameterNames=new Map(Ie.typeParameterNames)),Ie.typeParameterNamesByText&&(Ie.typeParameterNamesByText=new Set(Ie.typeParameterNamesByText)),Ie.typeParameterSymbolList&&(Ie.typeParameterSymbolList=new Set(Ie.typeParameterSymbolList)),Ie.tracker=new Bq(Ie,Ie.tracker.inner,Ie.tracker.moduleResolverHost),Ie}function Er(ut,Ie){return ut.declarations&&vn(ut.declarations,Pn=>!!yu(Pn)&&(!Ie||!!zn(Pn,Mr=>Mr===Ie)))}function ko(ut,Ie){return!(Wr(Ie)&4)||!Rf(ut)||De(ut.typeArguments)>=zh(Ie.target.typeParameters)}function ls(ut){for(;ti(ut).fakeScopeForSignatureDeclaration;)ut=ut.parent;return ut}function As(ut,Ie,Pn,Mr,fi,xi){if(!qt(Ie)&&Mr){let Dr=Er(Pn,ls(Mr));if(Dr&&!zs(Dr)&&!Zp(Dr)){let ct=yu(Dr);if(Vu(ct,Dr,Ie)&&ko(ct,Ie)){let Ot=Ol(ut,ct,fi,xi);if(Ot)return Ot}}}let Ri=ut.flags;Ie.flags&8192&&Ie.symbol===Pn&&(!ut.enclosingDeclaration||Et(Pn.declarations,Dr=>Vn(Dr)===Vn(ut.enclosingDeclaration)))&&(ut.flags|=1048576);let Ur=d(Ie,ut);return ut.flags=Ri,Ur}function Vu(ut,Ie,Pn){let Mr=Ii(ut);return Mr===Pn?!0:Co(Ie)&&Ie.questionToken?_m(Pn,524288)===Mr:!1}function za(ut,Ie,Pn,Mr,fi){if(!qt(Ie)&&ut.enclosingDeclaration){let xi=Pn.declaration&&tm(Pn.declaration),Ri=ls(ut.enclosingDeclaration);if(zn(xi,Ur=>Ur===Ri)&&xi){let Ur=Ii(xi);if((Ur.flags&262144&&Ur.isThisType?co(Ur,Pn.mapper):Ur)===Ie&&ko(xi,Ie)){let ct=Ol(ut,xi,Mr,fi);if(ct)return ct}}}return d(Ie,ut)}function Ld(ut,Ie,Pn){let Mr=!1,fi=Bp(ut);if(cr(ut)&&(yS(fi)||tg(fi.parent)||Ad(fi.parent)&&Mj(fi.parent.left)&&yS(fi.parent.right)))return Mr=!0,{introducesError:Mr,node:ut};let xi=Ff(ut),Ri=Us(fi,xi,!0,!0);if(Ri&&(wi(Ri,Ie.enclosingDeclaration,xi,!1).accessibility!==0?Mr=!0:(Ie.tracker.trackSymbol(Ri,Ie.enclosingDeclaration,xi),Pn?.(Ri)),Ve(ut))){let Ur=Qs(Ri),Dr=Ri.flags&262144?jo(Ur,Ie):k.cloneNode(ut);return Dr.symbol=Ri,{introducesError:Mr,node:fr(Pr(Dr,ut),16777216)}}return{introducesError:Mr,node:ut}}function Ol(ut,Ie,Pn,Mr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let fi=!1,xi=Vn(Ie),Ri=rt(Ie,Ur,qi);if(fi)return;return Ri===Ie?dt(k.cloneNode(Ie),Ie):Ri;function Ur(Dr){if(Bae(Dr)||Dr.kind===326)return k.createKeywordTypeNode(133);if(Gae(Dr))return k.createKeywordTypeNode(159);if(VR(Dr))return k.createUnionTypeNode([rt(Dr.type,Ur,qi),k.createLiteralTypeNode(k.createNull())]);if(IH(Dr))return k.createUnionTypeNode([rt(Dr.type,Ur,qi),k.createKeywordTypeNode(157)]);if(n5(Dr))return rt(Dr.type,Ur);if(r5(Dr))return k.createArrayTypeNode(rt(Dr.type,Ur,qi));if(GS(Dr))return k.createTypeLiteralNode(Ft(Dr.jsDocPropertyTags,$t=>{let dn=Ve($t.name)?$t.name:$t.name.right,Wn=Xe(Ii(Dr),dn.escapedText),Si=Wn&&$t.typeExpression&&Ii($t.typeExpression.type)!==Wn?d(Wn,ut):void 0;return k.createPropertySignature(void 0,dn,$t.isBracketed||$t.typeExpression&&IH($t.typeExpression.type)?k.createToken(58):void 0,Si||$t.typeExpression&&rt($t.typeExpression.type,Ur,qi)||k.createKeywordTypeNode(133))}));if(Rf(Dr)&&Ve(Dr.typeName)&&Dr.typeName.escapedText==="")return Pr(k.createKeywordTypeNode(133),Dr);if((Hv(Dr)||Rf(Dr))&&o3(Dr))return k.createTypeLiteralNode([k.createIndexSignature(void 0,[k.createParameterDeclaration(void 0,void 0,"x",void 0,rt(Dr.typeArguments[0],Ur,qi))],rt(Dr.typeArguments[1],Ur,qi))]);if(jR(Dr))if(pR(Dr)){let $t;return k.createConstructorTypeNode(void 0,Bn(Dr.typeParameters,Ur,_l),Vi(Dr.parameters,(dn,Wn)=>dn.name&&Ve(dn.name)&&dn.name.escapedText==="new"?($t=dn.type,void 0):k.createParameterDeclaration(void 0,ct(dn),Ot(dn,Wn),dn.questionToken,rt(dn.type,Ur,qi),void 0)),rt($t||Dr.type,Ur,qi)||k.createKeywordTypeNode(133))}else return k.createFunctionTypeNode(Bn(Dr.typeParameters,Ur,_l),Ft(Dr.parameters,($t,dn)=>k.createParameterDeclaration(void 0,ct($t),Ot($t,dn),$t.questionToken,rt($t.type,Ur,qi),void 0)),rt(Dr.type,Ur,qi)||k.createKeywordTypeNode(133));if(Rf(Dr)&&LL(Dr)&&(!ko(Dr,Ii(Dr))||IOe(Dr)||ft===yD(Dr,788968,!0)))return Pr(d(Ii(Dr),ut),Dr);if(zy(Dr)){let $t=ti(Dr).resolvedSymbol;return LL(Dr)&&$t&&(!Dr.isTypeOf&&!($t.flags&788968)||!(De(Dr.typeArguments)>=zh(kr($t))))?Pr(d(Ii(Dr),ut),Dr):k.updateImportTypeNode(Dr,k.updateLiteralTypeNode(Dr.argument,tn(Dr,Dr.argument.literal)),Dr.attributes,Dr.qualifier,Bn(Dr.typeArguments,Ur,qi),Dr.isTypeOf)}if(Qd(Dr)||zl(Dr)){let{introducesError:$t,node:dn}=Ld(Dr,ut,Pn);if(fi=fi||$t,dn!==Dr)return dn}return xi&&iI(Dr)&&Es(xi,Dr.pos).line===Es(xi,Dr.end).line&&fr(Dr,1),An(Dr,Ur,void 0);function ct($t){return $t.dotDotDotToken||($t.type&&r5($t.type)?k.createToken(26):void 0)}function Ot($t,dn){return $t.name&&Ve($t.name)&&$t.name.escapedText==="this"?"this":ct($t)?"args":`arg${dn}`}function tn($t,dn){if(Mr){if(ut.tracker&&ut.tracker.moduleResolverHost){let Wn=Ibe($t);if(Wn){let mi={getCanonicalFileName:Pu(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ut.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ut.tracker.moduleResolverHost.getCommonSourceDirectory()},fo=v3(mi,Wn);return k.createStringLiteral(fo)}}}else if(ut.tracker&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode){let Wn=ov(dn,dn,void 0);Wn&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode(Wn)}return dn}}}function yl(ut,Ie,Pn){var Mr;let fi=_s(k.createPropertyDeclaration,174,!0),xi=_s((Mt,Nr,_i,Xr)=>k.createPropertySignature(Mt,Nr,_i,Xr),173,!1),Ri=Ie.enclosingDeclaration,Ur=[],Dr=new Set,ct=[],Ot=Ie;Ie={...Ot,usedSymbolNames:new Set(Ot.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Mr=Ot.remappedSymbolReferences)==null?void 0:Mr.entries()),tracker:void 0};let tn={...Ot.tracker.inner,trackSymbol:(Mt,Nr,_i)=>{var Xr,di;if((Xr=Ie.remappedSymbolNames)!=null&&Xr.has(Ta(Mt)))return!1;if(wi(Mt,Nr,_i,!1).accessibility===0){let da=cn(Mt,Ie,_i);if(!(Mt.flags&4)){let qo=da[0],Ws=Vn(Ot.enclosingDeclaration);Et(qo.declarations,hs=>Vn(hs)===Ws)&&cs(qo)}}else if((di=Ot.tracker.inner)!=null&&di.trackSymbol)return Ot.tracker.inner.trackSymbol(Mt,Nr,_i);return!1}};Ie.tracker=new Bq(Ie,tn,Ot.tracker.moduleResolverHost),Bc(ut,(Mt,Nr)=>{let _i=Hi(Nr);Hm(Mt,_i)});let $t=!Pn,dn=ut.get("export=");return dn&&ut.size>1&&dn.flags&2098688&&(ut=ua(),ut.set("export=",dn)),fa(ut),ni(Ur);function Wn(Mt){return!!Mt&&Mt.kind===80}function Si(Mt){return Ml(Mt)?tr(Ft(Mt.declarationList.declarations,Oo),Wn):tr([Oo(Mt)],Wn)}function mi(Mt){let Nr=vn(Mt,Ll),_i=ri(Mt,Jl),Xr=_i!==-1?Mt[_i]:void 0;if(Xr&&Nr&&Nr.isExportEquals&&Ve(Nr.expression)&&Ve(Xr.name)&&Sr(Xr.name)===Sr(Nr.expression)&&Xr.body&&k_(Xr.body)){let di=tr(Mt,qo=>!!(cd(qo)&32)),rs=Xr.name,da=Xr.body;if(De(di)&&(Xr=k.updateModuleDeclaration(Xr,Xr.modifiers,Xr.name,da=k.updateModuleBlock(da,k.createNodeArray([...Xr.body.statements,k.createExportDeclaration(void 0,!1,k.createNamedExports(Ft(Zi(di,qo=>Si(qo)),qo=>k.createExportSpecifier(!1,void 0,qo))),void 0)]))),Mt=[...Mt.slice(0,_i),Xr,...Mt.slice(_i+1)]),!vn(Mt,qo=>qo!==Xr&&nL(qo,rs))){Ur=[];let qo=!Et(da.statements,Ws=>ei(Ws,32)||Ll(Ws)||Kl(Ws));Ke(da.statements,Ws=>{Js(Ws,qo?32:0)}),Mt=[...tr(Mt,Ws=>Ws!==Xr&&Ws!==Nr),...Ur]}}return Mt}function fo(Mt){let Nr=tr(Mt,Xr=>Kl(Xr)&&!Xr.moduleSpecifier&&!!Xr.exportClause&&Df(Xr.exportClause));De(Nr)>1&&(Mt=[...tr(Mt,di=>!Kl(di)||!!di.moduleSpecifier||!di.exportClause),k.createExportDeclaration(void 0,!1,k.createNamedExports(Zi(Nr,di=>aa(di.exportClause,Df).elements)),void 0)]);let _i=tr(Mt,Xr=>Kl(Xr)&&!!Xr.moduleSpecifier&&!!Xr.exportClause&&Df(Xr.exportClause));if(De(_i)>1){let Xr=$D(_i,di=>Na(di.moduleSpecifier)?">"+di.moduleSpecifier.text:">");if(Xr.length!==_i.length)for(let di of Xr)di.length>1&&(Mt=[...tr(Mt,rs=>!di.includes(rs)),k.createExportDeclaration(void 0,!1,k.createNamedExports(Zi(di,rs=>aa(rs.exportClause,Df).elements)),di[0].moduleSpecifier)])}return Mt}function xn(Mt){let Nr=ri(Mt,_i=>Kl(_i)&&!_i.moduleSpecifier&&!_i.attributes&&!!_i.exportClause&&Df(_i.exportClause));if(Nr>=0){let _i=Mt[Nr],Xr=Vi(_i.exportClause.elements,di=>{if(!di.propertyName){let rs=DM(Mt),da=tr(rs,qo=>nL(Mt[qo],di.name));if(De(da)&&Jn(da,qo=>gk(Mt[qo]))){for(let qo of da)Mt[qo]=Ui(Mt[qo]);return}}return di});De(Xr)?Mt[Nr]=k.updateExportDeclaration(_i,_i.modifiers,_i.isTypeOnly,k.updateNamedExports(_i.exportClause,Xr),_i.moduleSpecifier,_i.attributes):Iy(Mt,Nr)}return Mt}function ni(Mt){return Mt=mi(Mt),Mt=fo(Mt),Mt=xn(Mt),Ri&&(no(Ri)&&Fp(Ri)||Jl(Ri))&&(!Et(Mt,fL)||!Fre(Mt)&&Et(Mt,I6))&&Mt.push(Jk(k)),Mt}function Ui(Mt){let Nr=(cd(Mt)|32)&-129;return k.replaceModifiers(Mt,Nr)}function mo(Mt){let Nr=cd(Mt)&-33;return k.replaceModifiers(Mt,Nr)}function fa(Mt,Nr,_i){Nr||ct.push(new Map),Mt.forEach(Xr=>{bc(Xr,!1,!!_i)}),Nr||(ct[ct.length-1].forEach(Xr=>{bc(Xr,!0,!!_i)}),ct.pop())}function bc(Mt,Nr,_i){let Xr=is(Mt);if(Dr.has(Ta(Xr)))return;if(Dr.add(Ta(Xr)),!Nr||De(Mt.declarations)&&Et(Mt.declarations,rs=>!!zn(rs,da=>da===Ri))){let rs=Ie;Ie=lo(Ie),Cl(Mt,Nr,_i),Ie.reportedDiagnostic&&(Ot.reportedDiagnostic=Ie.reportedDiagnostic),Ie.trackedSymbols&&(rs.trackedSymbols?C.assert(Ie.trackedSymbols===rs.trackedSymbols):rs.trackedSymbols=Ie.trackedSymbols),Ie=rs}}function Cl(Mt,Nr,_i,Xr=Mt.escapedName){var di,rs,da,qo,Ws,hs;let Ba=Hi(Xr),Du=Xr==="default";if(Nr&&!(Ie.flags&131072)&&OA(Ba)&&!Du){Ie.encounteredError=!0;return}let Cu=Du&&!!(Mt.flags&-113||Mt.flags&16&&De(ys(pr(Mt))))&&!(Mt.flags&2097152),yd=!Cu&&!Nr&&OA(Ba)&&!Du;(Cu||yd)&&(Nr=!0);let Ul=(Nr?0:32)|(Du&&!Cu?2048:0),Nu=Mt.flags&1536&&Mt.flags&7&&Xr!=="export=",Kd=Nu&&Ns(pr(Mt),Mt);if((Mt.flags&8208||Kd)&&Sn(pr(Mt),Mt,Hm(Mt,Ba),Ul),Mt.flags&524288&&b_(Mt,Ba,Ul),Mt.flags&98311&&Xr!=="export="&&!(Mt.flags&4194304)&&!(Mt.flags&32)&&!(Mt.flags&8192)&&!Kd)if(_i)Ra(Mt)&&(yd=!1,Cu=!1);else{let ou=pr(Mt),Lp=Hm(Mt,Ba);if(ou.symbol&&ou.symbol!==Mt&&ou.symbol.flags&16&&Et(ou.symbol.declarations,B1)&&((di=ou.symbol.members)!=null&&di.size||(rs=ou.symbol.exports)!=null&&rs.size))Ie.remappedSymbolReferences||(Ie.remappedSymbolReferences=new Map),Ie.remappedSymbolReferences.set(Ta(ou.symbol),Mt),Cl(ou.symbol,Nr,_i,Xr),Ie.remappedSymbolReferences.delete(Ta(ou.symbol));else if(!(Mt.flags&16)&&Ns(ou,Mt))Sn(ou,Mt,Lp,Ul);else{let Tx=Mt.flags&2?iM(Mt)?2:1:(da=Mt.parent)!=null&&da.valueDeclaration&&no((qo=Mt.parent)==null?void 0:qo.valueDeclaration)?2:void 0,rh=Cu||!(Mt.flags&4)?Lp:E_(Lp,Mt),Jb=Mt.declarations&&vn(Mt.declarations,o8=>Oi(o8));Jb&&jc(Jb.parent)&&Jb.parent.declarations.length===1&&(Jb=Jb.parent.parent);let Kb=(Ws=Mt.declarations)==null?void 0:Ws.find(zr);if(Kb&&_r(Kb.parent)&&Ve(Kb.parent.right)&&((hs=ou.symbol)!=null&&hs.valueDeclaration)&&no(ou.symbol.valueDeclaration)){let o8=Lp===Kb.parent.right.escapedText?void 0:Kb.parent.right;Js(k.createExportDeclaration(void 0,!1,k.createNamedExports([k.createExportSpecifier(!1,o8,Lp)])),0),Ie.tracker.trackSymbol(ou.symbol,Ie.enclosingDeclaration,111551)}else{let o8=dt(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(rh,void 0,As(Ie,ou,Mt,Ri,cs,Pn))],Tx)),Jb);Js(o8,rh!==Lp?Ul&-33:Ul),rh!==Lp&&!Nr&&(Js(k.createExportDeclaration(void 0,!1,k.createNamedExports([k.createExportSpecifier(!1,rh,Lp)])),0),yd=!1,Cu=!1)}}}if(Mt.flags&384&&Cr(Mt,Ba,Ul),Mt.flags&32&&(Mt.flags&4&&Mt.valueDeclaration&&_r(Mt.valueDeclaration.parent)&&Zc(Mt.valueDeclaration.parent.right)?Ti(Mt,Hm(Mt,Ba),Ul):ha(Mt,Hm(Mt,Ba),Ul)),(Mt.flags&1536&&(!Nu||en(Mt))||Kd)&&Kn(Mt,Ba,Ul),Mt.flags&64&&!(Mt.flags&32)&&it(Mt,Ba,Ul),Mt.flags&2097152&&Ti(Mt,Hm(Mt,Ba),Ul),Mt.flags&4&&Mt.escapedName==="export="&&Ra(Mt),Mt.flags&8388608&&Mt.declarations)for(let ou of Mt.declarations){let Lp=_d(ou,ou.moduleSpecifier);Lp&&Js(k.createExportDeclaration(void 0,ou.isTypeOnly,void 0,k.createStringLiteral(Hn(Lp,Ie))),0)}Cu?Js(k.createExportAssignment(void 0,!1,k.createIdentifier(Hm(Mt,Ba))),0):yd&&Js(k.createExportDeclaration(void 0,!1,k.createNamedExports([k.createExportSpecifier(!1,Hm(Mt,Ba),Ba)])),0)}function cs(Mt){if(Et(Mt.declarations,L1))return;C.assertIsDefined(ct[ct.length-1]),E_(Hi(Mt.escapedName),Mt);let Nr=!!(Mt.flags&2097152)&&!Et(Mt.declarations,_i=>!!zn(_i,Kl)||Sh(_i)||tu(_i)&&!Th(_i.moduleReference));ct[Nr?0:ct.length-1].set(Ta(Mt),Mt)}function Cc(Mt){return no(Mt)&&(Fp(Mt)||$f(Mt))||Lu(Mt)&&!I_(Mt)}function Js(Mt,Nr){if(Cm(Mt)){let _i=0,Xr=Ie.enclosingDeclaration&&(Qf(Ie.enclosingDeclaration)?Vn(Ie.enclosingDeclaration):Ie.enclosingDeclaration);Nr&32&&Xr&&(Cc(Xr)||Jl(Xr))&&gk(Mt)&&(_i|=32),$t&&!(_i&32)&&(!Xr||!(Xr.flags&33554432))&&(v0(Mt)||Ml(Mt)||Sc(Mt)||Tc(Mt)||Jl(Mt))&&(_i|=128),Nr&2048&&(Tc(Mt)||fd(Mt)||Sc(Mt))&&(_i|=2048),_i&&(Mt=k.replaceModifiers(Mt,_i|cd(Mt)))}Ur.push(Mt)}function b_(Mt,Nr,_i){var Xr;let di=kwe(Mt),rs=$i(Mt).typeParameters,da=Ft(rs,Cu=>vt(Cu,Ie)),qo=(Xr=Mt.declarations)==null?void 0:Xr.find(Qf),Ws=oL(qo?qo.comment||qo.parent.comment:void 0),hs=Ie.flags;Ie.flags|=8388608;let Ba=Ie.enclosingDeclaration;Ie.enclosingDeclaration=qo;let Du=qo&&qo.typeExpression&&Z1(qo.typeExpression)&&Ol(Ie,qo.typeExpression.type,cs,Pn)||d(di,Ie);Js(g0(k.createTypeAliasDeclaration(void 0,Hm(Mt,Nr),da,Du),Ws?[{kind:3,text:`* + * `+Ws.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),_i),Ie.flags=hs,Ie.enclosingDeclaration=Ba}function it(Mt,Nr,_i){let Xr=zf(Mt),di=kr(Mt),rs=Ft(di,yd=>vt(yd,Ie)),da=Np(Xr),qo=De(da)?Ea(da):void 0,Ws=Zi(ys(Xr),yd=>Nc(yd,qo)),hs=Uh(0,Xr,qo,179),Ba=Uh(1,Xr,qo,180),Du=Sv(Xr,qo),Cu=De(da)?[k.createHeritageClause(96,Vi(da,yd=>oA(yd,111551)))]:void 0;Js(k.createInterfaceDeclaration(void 0,Hm(Mt,Nr),rs,Cu,[...Du,...Ba,...hs,...Ws]),_i)}function Tt(Mt){let Nr=Vo(Dp(Mt).values()),_i=is(Mt);if(_i!==Mt){let Xr=new Set(Nr);for(let di of Dp(_i).values())Au(Gl(di))&111551||Xr.add(di);Nr=Vo(Xr)}return tr(Nr,Xr=>zi(Xr)&&$p(Xr.escapedName,99))}function en(Mt){return Jn(Tt(Mt),Nr=>!(Au(Gl(Nr))&111551))}function Kn(Mt,Nr,_i){let Xr=Tt(Mt),di=NM(Xr,qo=>qo.parent&&qo.parent===Mt?"real":"merged"),rs=di.get("real")||et,da=di.get("merged")||et;if(De(rs)){let qo=Hm(Mt,Nr);Hr(rs,qo,_i,!!(Mt.flags&67108880))}if(De(da)){let qo=Vn(Ie.enclosingDeclaration),Ws=Hm(Mt,Nr),hs=k.createModuleBlock([k.createExportDeclaration(void 0,!1,k.createNamedExports(Vi(tr(da,Ba=>Ba.escapedName!=="export="),Ba=>{var Du,Cu;let yd=Hi(Ba.escapedName),Ul=Hm(Ba,yd),Nu=Ba.declarations&&Fm(Ba);if(qo&&(Nu?qo!==Vn(Nu):!Et(Ba.declarations,Lp=>Vn(Lp)===qo))){(Cu=(Du=Ie.tracker)==null?void 0:Du.reportNonlocalAugmentation)==null||Cu.call(Du,qo,Mt,Ba);return}let Kd=Nu&&jp(Nu,!0);cs(Kd||Ba);let ou=Kd?Hm(Kd,Hi(Kd.escapedName)):Ul;return k.createExportSpecifier(!1,yd===ou?void 0:ou,yd)})))]);Js(k.createModuleDeclaration(void 0,k.createIdentifier(Ws),hs,32),0)}}function Cr(Mt,Nr,_i){Js(k.createEnumDeclaration(k.createModifiersFromModifierFlags(qye(Mt)?4096:0),Hm(Mt,Nr),Ft(tr(ys(pr(Mt)),Xr=>!!(Xr.flags&8)),Xr=>{let di=Xr.declarations&&Xr.declarations[0]&&Q1(Xr.declarations[0])?Sbe(Xr.declarations[0]):void 0;return k.createEnumMember(Hi(Xr.escapedName),di===void 0?void 0:typeof di=="string"?k.createStringLiteral(di):k.createNumericLiteral(di))})),_i)}function Sn(Mt,Nr,_i,Xr){let di=Yo(Mt,0);for(let rs of di){let da=be(rs,262,Ie,{name:k.createIdentifier(_i),privateSymbolVisitor:cs,bundledImports:Pn});Js(dt(da,yr(rs)),Xr)}if(!(Nr.flags&1536&&Nr.exports&&Nr.exports.size)){let rs=tr(ys(Mt),zi);Hr(rs,_i,Xr,!0)}}function yr(Mt){if(Mt.declaration&&Mt.declaration.parent){if(_r(Mt.declaration.parent)&&Wl(Mt.declaration.parent)===5)return Mt.declaration.parent;if(Oi(Mt.declaration.parent)&&Mt.declaration.parent.parent)return Mt.declaration.parent.parent}return Mt.declaration}function Hr(Mt,Nr,_i,Xr){if(De(Mt)){let rs=NM(Mt,Ul=>!De(Ul.declarations)||Et(Ul.declarations,Nu=>Vn(Nu)===Vn(Ie.enclosingDeclaration))?"local":"remote").get("local")||et,da=Ah.createModuleDeclaration(void 0,k.createIdentifier(Nr),k.createModuleBlock([]),32);qa(da,Ri),da.locals=ua(Mt),da.symbol=Mt[0].parent;let qo=Ur;Ur=[];let Ws=$t;$t=!1;let hs={...Ie,enclosingDeclaration:da},Ba=Ie;Ie=hs,fa(ua(rs),Xr,!0),Ie=Ba,$t=Ws;let Du=Ur;Ur=qo;let Cu=Ft(Du,Ul=>Ll(Ul)&&!Ul.isExportEquals&&Ve(Ul.expression)?k.createExportDeclaration(void 0,!1,k.createNamedExports([k.createExportSpecifier(!1,Ul.expression,k.createIdentifier("default"))])):Ul),yd=Jn(Cu,Ul=>ei(Ul,32))?Ft(Cu,mo):Cu;da=k.updateModuleDeclaration(da,da.modifiers,da.name,k.createModuleBlock(yd)),Js(da,_i)}}function zi(Mt){return!!(Mt.flags&2887656)||!(Mt.flags&4194304||Mt.escapedName==="prototype"||Mt.valueDeclaration&&sa(Mt.valueDeclaration)&&pi(Mt.valueDeclaration.parent))}function Go(Mt){let Nr=Vi(Mt,_i=>{let Xr=Ie.enclosingDeclaration;Ie.enclosingDeclaration=_i;let di=_i.expression;if(zl(di)){if(Ve(di)&&Sr(di)==="")return rs(void 0);let da;if({introducesError:da,node:di}=Ld(di,Ie,cs),da)return rs(void 0)}return rs(k.createExpressionWithTypeArguments(di,Ft(_i.typeArguments,da=>Ol(Ie,da,cs,Pn)||d(Ii(da),Ie))));function rs(da){return Ie.enclosingDeclaration=Xr,da}});if(Nr.length===Mt.length)return Nr}function ha(Mt,Nr,_i){var Xr,di;let rs=(Xr=Mt.declarations)==null?void 0:Xr.find(pi),da=Ie.enclosingDeclaration;Ie.enclosingDeclaration=rs||da;let qo=kr(Mt),Ws=Ft(qo,ih=>vt(ih,Ie)),hs=qp(zf(Mt)),Ba=Np(hs),Du=rs&&_R(rs),Cu=Du&&Go(Du)||Vi(p_(hs),gM),yd=pr(Mt),Ul=!!((di=yd.symbol)!=null&&di.valueDeclaration)&&pi(yd.symbol.valueDeclaration),Nu=Ul?Cp(yd):j,Kd=[...De(Ba)?[k.createHeritageClause(96,Ft(Ba,ih=>iA(ih,Nu,Nr)))]:[],...De(Cu)?[k.createHeritageClause(119,Cu)]:[]],ou=Dht(hs,Ba,ys(hs)),Lp=tr(ou,ih=>{let vM=ih.valueDeclaration;return!!vM&&!(od(vM)&&Xi(vM.name))}),rh=Et(ou,ih=>{let vM=ih.valueDeclaration;return!!vM&&od(vM)&&Xi(vM.name)})?[k.createPropertyDeclaration(void 0,k.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:et,Jb=Zi(Lp,ih=>fi(ih,!1,Ba[0])),Kb=Zi(tr(ys(yd),ih=>!(ih.flags&4194304)&&ih.escapedName!=="prototype"&&!zi(ih)),ih=>fi(ih,!0,Nu)),Hvt=!Ul&&!!Mt.valueDeclaration&&cr(Mt.valueDeclaration)&&!Et(Yo(yd,1))?[k.createConstructorDeclaration(k.createModifiersFromModifierFlags(2),[],void 0)]:Uh(1,yd,Nu,176),qvt=Sv(hs,Ba[0]);Ie.enclosingDeclaration=da,Js(dt(k.createClassDeclaration(void 0,Nr,Ws,Kd,[...qvt,...Kb,...Hvt,...Jb,...rh]),Mt.declarations&&tr(Mt.declarations,ih=>Tc(ih)||Zc(ih))[0]),_i)}function ga(Mt){return Zt(Mt,Nr=>{if(tp(Nr)||Ju(Nr))return Sr(Nr.propertyName||Nr.name);if(_r(Nr)||Ll(Nr)){let _i=Ll(Nr)?Nr.expression:Nr.right;if(zr(_i))return Sr(_i.name)}if(hb(Nr)){let _i=Oo(Nr);if(_i&&Ve(_i))return Sr(_i)}})}function Ti(Mt,Nr,_i){var Xr,di,rs,da,qo,Ws;let hs=Fm(Mt);if(!hs)return C.fail();let Ba=is(jp(hs,!0));if(!Ba)return;let Du=SC(Ba)&&ga(Mt.declarations)||Hi(Ba.escapedName);Du==="export="&&$&&(Du="default");let Cu=Hm(Ba,Du);switch(cs(Ba),hs.kind){case 208:if(((di=(Xr=hs.parent)==null?void 0:Xr.parent)==null?void 0:di.kind)===260){let Nu=Hn(Ba.parent||Ba,Ie),{propertyName:Kd}=hs;Js(k.createImportDeclaration(void 0,k.createImportClause(!1,void 0,k.createNamedImports([k.createImportSpecifier(!1,Kd&&Ve(Kd)?k.createIdentifier(Sr(Kd)):void 0,k.createIdentifier(Nr))])),k.createStringLiteral(Nu),void 0),0);break}C.failBadSyntaxKind(((rs=hs.parent)==null?void 0:rs.parent)||hs,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((qo=(da=hs.parent)==null?void 0:da.parent)==null?void 0:qo.kind)===226&&zo(Hi(Mt.escapedName),Cu);break;case 260:if(zr(hs.initializer)){let Nu=hs.initializer,Kd=k.createUniqueName(Nr),ou=Hn(Ba.parent||Ba,Ie);Js(k.createImportEqualsDeclaration(void 0,!1,Kd,k.createExternalModuleReference(k.createStringLiteral(ou))),0),Js(k.createImportEqualsDeclaration(void 0,!1,k.createIdentifier(Nr),k.createQualifiedName(Kd,Nu.name)),_i);break}case 271:if(Ba.escapedName==="export="&&Et(Ba.declarations,Nu=>no(Nu)&&$f(Nu))){Ra(Mt);break}let yd=!(Ba.flags&512)&&!Oi(hs);Js(k.createImportEqualsDeclaration(void 0,!1,k.createIdentifier(Nr),yd?vo(Ba,Ie,-1,!1):k.createExternalModuleReference(k.createStringLiteral(Hn(Ba,Ie)))),yd?_i:0);break;case 270:Js(k.createNamespaceExportDeclaration(Sr(hs.name)),0);break;case 273:{let Nu=Hn(Ba.parent||Ba,Ie),Kd=Pn?k.createStringLiteral(Nu):hs.parent.moduleSpecifier;Js(k.createImportDeclaration(void 0,k.createImportClause(!1,k.createIdentifier(Nr),void 0),Kd,hs.parent.attributes),0);break}case 274:{let Nu=Hn(Ba.parent||Ba,Ie),Kd=Pn?k.createStringLiteral(Nu):hs.parent.parent.moduleSpecifier;Js(k.createImportDeclaration(void 0,k.createImportClause(!1,void 0,k.createNamespaceImport(k.createIdentifier(Nr))),Kd,hs.parent.attributes),0);break}case 280:Js(k.createExportDeclaration(void 0,!1,k.createNamespaceExport(k.createIdentifier(Nr)),k.createStringLiteral(Hn(Ba,Ie))),0);break;case 276:{let Nu=Hn(Ba.parent||Ba,Ie),Kd=Pn?k.createStringLiteral(Nu):hs.parent.parent.parent.moduleSpecifier;Js(k.createImportDeclaration(void 0,k.createImportClause(!1,void 0,k.createNamedImports([k.createImportSpecifier(!1,Nr!==Du?k.createIdentifier(Du):void 0,k.createIdentifier(Nr))])),Kd,hs.parent.parent.parent.attributes),0);break}case 281:let Ul=hs.parent.parent.moduleSpecifier;Ul&&((Ws=hs.propertyName)==null?void 0:Ws.escapedText)==="default"&&(Du="default"),zo(Hi(Mt.escapedName),Ul?Du:Cu,Ul&&us(Ul)?k.createStringLiteral(Ul.text):void 0);break;case 277:Ra(Mt);break;case 226:case 211:case 212:Mt.escapedName==="default"||Mt.escapedName==="export="?Ra(Mt):zo(Nr,Cu);break;default:return C.failBadSyntaxKind(hs,"Unhandled alias declaration kind in symbol serializer!")}}function zo(Mt,Nr,_i){Js(k.createExportDeclaration(void 0,!1,k.createNamedExports([k.createExportSpecifier(!1,Mt!==Nr?Nr:void 0,Mt)]),_i),0)}function Ra(Mt){var Nr;if(Mt.flags&4194304)return!1;let _i=Hi(Mt.escapedName),Xr=_i==="export=",rs=Xr||_i==="default",da=Mt.declarations&&Fm(Mt),qo=da&&jp(da,!0);if(qo&&De(qo.declarations)&&Et(qo.declarations,Ws=>Vn(Ws)===Vn(Ri))){let Ws=da&&(Ll(da)||_r(da)?Gj(da):zie(da)),hs=Ws&&zl(Ws)?Vht(Ws):void 0,Ba=hs&&Us(hs,-1,!0,!0,Ri);(Ba||qo)&&cs(Ba||qo);let Du=Ie.tracker.disableTrackSymbol;if(Ie.tracker.disableTrackSymbol=!0,rs)Ur.push(k.createExportAssignment(void 0,Xr,Dc(qo,Ie,-1)));else if(hs===Ws&&hs)zo(_i,Sr(hs));else if(Ws&&Zc(Ws))zo(_i,Hm(qo,bl(qo)));else{let Cu=E_(_i,Mt);Js(k.createImportEqualsDeclaration(void 0,!1,k.createIdentifier(Cu),vo(qo,Ie,-1,!1)),0),zo(_i,Cu)}return Ie.tracker.disableTrackSymbol=Du,!0}else{let Ws=E_(_i,Mt),hs=Jp(pr(is(Mt)));if(Ns(hs,Mt))Sn(hs,Mt,Ws,rs?0:32);else{let Ba=((Nr=Ie.enclosingDeclaration)==null?void 0:Nr.kind)===267&&(!(Mt.flags&98304)||Mt.flags&65536)?1:2,Du=k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(Ws,void 0,As(Ie,hs,Mt,Ri,cs,Pn))],Ba));Js(Du,qo&&qo.flags&4&&qo.escapedName==="export="?128:_i===Ws?32:0)}return rs?(Ur.push(k.createExportAssignment(void 0,Xr,k.createIdentifier(Ws))),!0):_i!==Ws?(zo(_i,Ws),!0):!1}}function Ns(Mt,Nr){let _i=Vn(Ie.enclosingDeclaration);return Wr(Mt)&48&&!De(hd(Mt))&&!PE(Mt)&&!!(De(tr(ys(Mt),zi))||De(Yo(Mt,0)))&&!De(Yo(Mt,1))&&!Er(Nr,Ri)&&!(Mt.symbol&&Et(Mt.symbol.declarations,Xr=>Vn(Xr)!==_i))&&!Et(ys(Mt),Xr=>y4(Xr.escapedName))&&!Et(ys(Mt),Xr=>Et(Xr.declarations,di=>Vn(di)!==_i))&&Jn(ys(Mt),Xr=>$p(bl(Xr),ue)?Xr.flags&98304?Pb(Xr)===ME(Xr):!0:!1)}function _s(Mt,Nr,_i){return function(di,rs,da){var qo,Ws,hs,Ba,Du;let Cu=If(di),yd=!!(Cu&2);if(rs&&di.flags&2887656)return[];if(di.flags&4194304||di.escapedName==="constructor"||da&&ba(da,di.escapedName)&&y_(ba(da,di.escapedName))===y_(di)&&(di.flags&16777216)===(ba(da,di.escapedName).flags&16777216)&&hv(pr(di),Xe(da,di.escapedName)))return[];let Ul=Cu&-1025|(rs?256:0),Nu=Mn(di,Ie),Kd=(qo=di.declarations)==null?void 0:qo.find(Xm(Jo,Ly,Oi,gp,_r,zr));if(di.flags&98304&&_i){let ou=[];if(di.flags&65536){let Lp=di.declarations&&Ke(di.declarations,rh=>{if(rh.kind===178)return rh;if(la(rh)&&bS(rh))return Ke(rh.arguments[2].properties,Jb=>{let Kb=Oo(Jb);if(Kb&&Ve(Kb)&&Sr(Kb)==="set")return Jb})});C.assert(!!Lp);let Tx=zs(Lp)?pm(Lp).parameters[0]:void 0;ou.push(dt(k.createSetAccessorDeclaration(k.createModifiersFromModifierFlags(Ul),Nu,[k.createParameterDeclaration(void 0,void 0,Tx?un(Tx,Rt(Tx),Ie):"value",void 0,yd?void 0:As(Ie,pr(di),di,Ri,cs,Pn))],void 0),((Ws=di.declarations)==null?void 0:Ws.find(wv))||Kd))}if(di.flags&32768){let Lp=Cu&2;ou.push(dt(k.createGetAccessorDeclaration(k.createModifiersFromModifierFlags(Ul),Nu,[],Lp?void 0:As(Ie,pr(di),di,Ri,cs,Pn),void 0),((hs=di.declarations)==null?void 0:hs.find(wy))||Kd))}return ou}else if(di.flags&98311)return dt(Mt(k.createModifiersFromModifierFlags((y_(di)?8:0)|Ul),Nu,di.flags&16777216?k.createToken(58):void 0,yd?void 0:As(Ie,ME(di),di,Ri,cs,Pn),void 0),((Ba=di.declarations)==null?void 0:Ba.find(Xm(Jo,Oi)))||Kd);if(di.flags&8208){let ou=pr(di),Lp=Yo(ou,0);if(Ul&2)return dt(Mt(k.createModifiersFromModifierFlags((y_(di)?8:0)|Ul),Nu,di.flags&16777216?k.createToken(58):void 0,void 0,void 0),((Du=di.declarations)==null?void 0:Du.find(zs))||Lp[0]&&Lp[0].declaration||di.declarations&&di.declarations[0]);let Tx=[];for(let rh of Lp){let Jb=be(rh,Nr,Ie,{name:Nu,questionToken:di.flags&16777216?k.createToken(58):void 0,modifiers:Ul?k.createModifiersFromModifierFlags(Ul):void 0}),Kb=rh.declaration&&GL(rh.declaration.parent)?rh.declaration.parent:rh.declaration;Tx.push(dt(Jb,Kb))}return Tx}return C.fail(`Unhandled class member kind! ${di.__debugFlags||di.flags}`)}}function Nc(Mt,Nr){return xi(Mt,!1,Nr)}function Uh(Mt,Nr,_i,Xr){let di=Yo(Nr,Mt);if(Mt===1){if(!_i&&Jn(di,qo=>De(qo.parameters)===0))return[];if(_i){let qo=Yo(_i,1);if(!De(qo)&&Jn(di,Ws=>De(Ws.parameters)===0))return[];if(qo.length===di.length){let Ws=!1;for(let hs=0;hsd(di,Ie)),Xr=Dc(Mt.target.symbol,Ie,788968)):Mt.symbol&&an(Mt.symbol,Ri,Nr)&&(Xr=Dc(Mt.symbol,Ie,788968)),Xr)return k.createExpressionWithTypeArguments(Xr,_i)}function gM(Mt){let Nr=oA(Mt,788968);if(Nr)return Nr;if(Mt.symbol)return k.createExpressionWithTypeArguments(Dc(Mt.symbol,Ie,788968),void 0)}function E_(Mt,Nr){var _i,Xr;let di=Nr?Ta(Nr):void 0;if(di&&Ie.remappedSymbolNames.has(di))return Ie.remappedSymbolNames.get(di);Nr&&(Mt=Sx(Nr,Mt));let rs=0,da=Mt;for(;(_i=Ie.usedSymbolNames)!=null&&_i.has(Mt);)rs++,Mt=`${da}_${rs}`;return(Xr=Ie.usedSymbolNames)==null||Xr.add(Mt),di&&Ie.remappedSymbolNames.set(di,Mt),Mt}function Sx(Mt,Nr){if(Nr==="default"||Nr==="__class"||Nr==="__function"){let _i=Ie.flags;Ie.flags|=16777216;let Xr=Y0(Mt,Ie);Ie.flags=_i,Nr=Xr.length>0&&kL(Xr.charCodeAt(0))?em(Xr):Xr}return Nr==="default"?Nr="_default":Nr==="export="&&(Nr="_exports"),Nr=$p(Nr,ue)&&!OA(Nr)?Nr:"_"+Nr.replace(/[^a-zA-Z0-9]/g,"_"),Nr}function Hm(Mt,Nr){let _i=Ta(Mt);return Ie.remappedSymbolNames.has(_i)?Ie.remappedSymbolNames.get(_i):(Nr=Sx(Mt,Nr),Ie.remappedSymbolNames.set(_i,Nr),Nr)}}}function wh(n,a,c=16384,d){return d?_(d).getText():bC(_);function _(y){let x=k.createTypePredicateNode(n.kind===2||n.kind===3?k.createToken(131):void 0,n.kind===1||n.kind===3?k.createIdentifier(n.parameterName):k.createThisTypeNode(),n.type&&At.typeToTypeNode(n.type,a,MT(c)|70221824|512)),L=oE(),z=a&&Vn(a);return L.writeNode(4,x,z,y),y}}function lD(n){let a=[],c=0;for(let d=0;dOo(x)?x:void 0),y=_&&Oo(_);if(_&&y){if(la(_)&&bS(_))return bl(n);if(Za(y)&&!(Al(n)&4096)){let x=$i(n).nameType;if(x&&x.flags&384){let L=h4(n,a);if(L!==void 0)return L}}return Ds(y)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return Ds(_.parent.name);switch(_.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),_.kind===231?"(Anonymous class)":"(Anonymous function)"}}let d=h4(n,a);return d!==void 0?d:bl(n)}function u_(n){if(n){let c=ti(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&no(n.parent.parent.parent));case 208:return u_(n.parent.parent);case 260:if(ta(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(I1(n))return!0;let c=Q(n);return!(Ste(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Nh(c):u_(c);case 172:case 171:case 177:case 178:case 174:case 173:if(_p(n,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return u_(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function FP(n,a){let c;n.parent&&n.parent.kind===277?c=vl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=U0(n.parent,2998271));let d,_;return c&&(_=new Set,_.add(Ta(c)),y(c.declarations)),d;function y(x){Ke(x,L=>{let z=vT(L)||L;if(a?ti(L).isVisible=!0:(d=d||[],bf(d,z)),sR(L)){let U=L.moduleReference,re=Bp(U),be=vl(L,re.escapedText,901119,void 0,void 0,!1);be&&_&&Av(_,Ta(be))&&y(be.declarations)}})}}function Oh(n,a){let c=cx(n,a);if(c>=0){let{length:d}=mu;for(let _=c;_=VI;c--){if(g4(mu[c],w0[c]))return-1;if(mu[c]===n&&w0[c]===a)return c}return-1}function g4(n,a){switch(a){case 0:return!!$i(n).type;case 5:return!!ti(n).resolvedEnumType;case 2:return!!$i(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!$i(n).writeType;case 9:return ti(n).parameterInitializerContainsUndefined!==void 0}return C.assertNever(a)}function X_(){return mu.pop(),w0.pop(),Zg.pop()}function Q(n){return zn(D_(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function Re(n){let a=Qs(Cd(n));return a.typeParameters?fy(a,Ft(a.typeParameters,c=>j)):a}function Xe(n,a){let c=ba(n,a);return c?pr(c):void 0}function It(n,a){var c;let d;return Xe(n,a)||(d=(c=px(n,a))==null?void 0:c.type)&&lp(d,!0,!0)}function Ct(n){return n&&(n.flags&1)!==0}function qt(n){return n===ht||!!(n.flags&1&&n.aliasSymbol)}function Br(n,a){if(a!==0)return kT(n,!1,a);let c=Rr(n);return c&&$i(c).type||kT(n,!1,a)}function Fi(n,a,c){if(n=uc(n,z=>!(z.flags&98304)),n.flags&131072)return Pa;if(n.flags&1048576)return ul(n,z=>Fi(z,a,c));let d=ii(Ft(a,_y)),_=[],y=[];for(let z of ys(n)){let U=bD(z,8576);!Sa(U,d)&&!(If(z)&6)&&KZ(z)?_.push(z):y.push(U)}if(jT(n)||UT(d)){if(y.length&&(d=ii([d,...y])),d.flags&131072)return n;let z=Yst();return z?vD(z,[n,d]):ht}let x=ua();for(let z of _)x.set(z.escapedName,ove(z,!1));let L=Ls(c,x,et,et,hd(n));return L.objectFlags|=4194304,L}function Pi(n){return!!(n.flags&465829888)&&Dl(Bu(n)||mn,32768)}function gi(n){let a=jm(n,Pi)?ul(n,c=>c.flags&465829888?fv(c):c):n;return _m(a,524288)}function eo(n,a){let c=fs(n);return c?Hb(c,a):a}function fs(n){let a=Cs(n);if(a&&HL(a)&&a.flowNode){let c=es(n);if(c){let d=dt(Ah.createStringLiteral(c),n),_=Zd(a)?a:Ah.createParenthesizedExpression(a),y=dt(Ah.createElementAccessExpression(_,d),n);return qa(d,y),qa(y,n),_!==a&&qa(_,y),y.flowNode=a.flowNode,y}}}function Cs(n){let a=n.parent.parent;switch(a.kind){case 208:case 303:return fs(a);case 209:return fs(n.parent);case 260:return a.initializer;case 226:return a.right}}function es(n){let a=n.parent;return n.kind===208&&a.kind===206?Wf(n.propertyName||n.name):n.kind===303||n.kind===304?Wf(n.name):""+a.elements.indexOf(n)}function Wf(n){let a=_y(n);return a.flags&384?""+a.value:void 0}function Y_(n){let a=n.dotDotDotToken?32:0,c=Br(n.parent.parent,a);return c&&Sg(n,c,!1)}function Sg(n,a,c){if(Ct(a))return a;let d=n.parent;Y&&n.flags&33554432&&L1(n)?a=yv(a):Y&&d.parent.initializer&&!mm(h8e(d.parent.initializer),65536)&&(a=_m(a,524288));let _;if(d.kind===206)if(n.dotDotDotToken){if(a=__(a),a.flags&2||!Kz(a))return qe(n,f.Rest_types_may_only_be_created_from_object_types),ht;let y=[];for(let x of d.elements)x.dotDotDotToken||y.push(x.propertyName||x.name);_=Fi(a,y,n.symbol)}else{let y=n.propertyName||n.name,x=_y(y),L=Pp(a,x,32,y);_=eo(n,L)}else{let y=yy(65|(n.dotDotDotToken?0:128),a,Oe,d),x=d.elements.indexOf(n);if(n.dotDotDotToken){let L=ul(a,z=>z.flags&58982400?fv(z):z);_=cp(L,Wa)?ul(L,z=>KP(z,x)):Gu(y)}else if(gy(a)){let L=h_(x),z=32|(c||oM(n)?16:0),U=Fb(a,L,z,n.name)||ht;_=eo(n,U)}else _=y}return n.initializer?yu(Vx(n))?Y&&!mm(sM(n,0),16777216)?gi(_):_:Zee(n,ii([gi(_),sM(n,0)],2)):_}function lv(n){let a=i0(n);if(a)return Ii(a)}function cv(n){let a=vs(n,!0);return a.kind===106||a.kind===80&&Vm(a)===je}function Rb(n){let a=vs(n,!0);return a.kind===209&&a.elements.length===0}function lp(n,a=!1,c=!0){return Y&&c?jb(n,a):n}function kT(n,a,c){if(Oi(n)&&n.parent.parent.kind===249){let x=$_(yye(go(n.parent.parent.expression,c)));return x.flags&4456448?ZOe(x):ke}if(Oi(n)&&n.parent.parent.kind===250){let x=n.parent.parent;return bB(x)||j}if(ta(n.parent))return Y_(n);let d=Jo(n)&&!C_(n)||gp(n)||jae(n),_=a&&sN(n),y=ao(n);if(dj(n))return y?Ct(y)||y===mn?y:ht:ve?mn:j;if(y)return lp(y,d,_);if((me||cr(n))&&Oi(n)&&!ta(n.name)&&!(Ste(n)&32)&&!(n.flags&33554432)){if(!(KE(n)&6)&&(!n.initializer||cv(n.initializer)))return ot;if(n.initializer&&Rb(n.initializer))return qc}if(Co(n)){let x=n.parent;if(x.kind===178&&mD(x)){let U=dl(Rr(n.parent),177);if(U){let re=pm(U),be=Dbe(x);return be&&n===be?(C.assert(!be.type),pr(re.thisParameter)):ms(re)}}let L=Sst(x,n);if(L)return L;let z=n.symbol.escapedName==="this"?z8e(x):B8e(n);if(z)return lp(z,!1,_)}if(fS(n)&&n.initializer){if(cr(n)&&!Co(n)){let L=Ua(n,Rr(n),OL(n));if(L)return L}let x=Zee(n,sM(n,c));return lp(x,d,_)}if(Jo(n)&&(me||cr(n)))if(fc(n)){let x=tr(n.parent.members,Il),L=x.length?uv(n.symbol,x):cd(n)&128?see(n.symbol):void 0;return L&&lp(L,!0,_)}else{let x=av(n.parent),L=x?Db(n.symbol,x):cd(n)&128?see(n.symbol):void 0;return L&&lp(L,!0,_)}if(O_(n))return On;if(ta(n.name))return P(n.name,!1,!0)}function cD(n){if(n.valueDeclaration&&_r(n.valueDeclaration)){let a=$i(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!zP(n)&&Jn(n.declarations,c=>_r(c)&&Mee(c)&&(c.left.kind!==212||Qp(c.left.argumentExpression))&&!cc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function WP(n){let a=n.valueDeclaration;return a&&Jo(a)&&!yu(a)&&!a.initializer&&(me||cr(a))}function zP(n){if(n.declarations)for(let a of n.declarations){let c=wd(a,!1,!1);if(c&&(c.kind===176||th(c)))return c}}function $0(n){let a=Vn(n.declarations[0]),c=Hi(n.escapedName),d=n.declarations.every(y=>cr(y)&&ks(y)&&tg(y.expression)),_=d?k.createPropertyAccessExpression(k.createPropertyAccessExpression(k.createIdentifier("module"),k.createIdentifier("exports")),c):k.createPropertyAccessExpression(k.createIdentifier("exports"),c);return d&&qa(_.expression.expression,_.expression),qa(_.expression,_),qa(_,a),_.flowNode=a.endFlowNode,Hb(_,ot,Oe)}function uv(n,a){let c=uo(n.escapedName,"__#")?k.createPrivateIdentifier(n.escapedName.split("@")[1]):Hi(n.escapedName);for(let d of a){let _=k.createPropertyAccessExpression(k.createThis(),c);qa(_.expression,_),qa(_,d),_.flowNode=d.returnFlowNode;let y=uD(_,n);if(me&&(y===ot||y===qc)&&qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Ai(n),jn(y)),!cp(y,Qz))return n8(y)}}function Db(n,a){let c=uo(n.escapedName,"__#")?k.createPrivateIdentifier(n.escapedName.split("@")[1]):Hi(n.escapedName),d=k.createPropertyAccessExpression(k.createThis(),c);qa(d.expression,d),qa(d,a),d.flowNode=a.returnFlowNode;let _=uD(d,n);return me&&(_===ot||_===qc)&&qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Ai(n),jn(_)),cp(_,Qz)?void 0:n8(_)}function uD(n,a){let c=a?.valueDeclaration&&(!WP(a)||cd(a.valueDeclaration)&128)&&see(a)||Oe;return Hb(n,ot,c)}function Hp(n,a){let c=PA(n.valueDeclaration);if(c){let L=cr(c)?r0(c):void 0;return L&&L.typeExpression?Ii(L.typeExpression):n.valueDeclaration&&Ua(n.valueDeclaration,n,c)||BE(ec(c))}let d,_=!1,y=!1;if(cD(n)&&(d=Db(n,zP(n))),!d){let L;if(n.declarations){let z;for(let U of n.declarations){let re=_r(U)||la(U)?U:ks(U)?_r(U.parent)?U.parent:U:void 0;if(!re)continue;let be=ks(re)?BL(re):Wl(re);(be===4||_r(re)&&Mee(re,be))&&(BP(re)?_=!0:y=!0),la(re)||(z=cc(z,re,n,U)),z||(L||(L=[])).push(_r(re)||la(re)?Q0(n,a,re,be):Vr)}d=z}if(!d){if(!De(L))return ht;let z=_&&n.declarations?Cb(L,n.declarations):void 0;if(y){let re=see(n);re&&((z||(z=[])).push(re),_=!0)}let U=Et(z,re=>!!(re.flags&-98305))?z:L;d=ii(U)}}let x=Jp(lp(d,!1,y&&!_));return n.valueDeclaration&&cr(n.valueDeclaration)&&uc(x,L=>!!(L.flags&-98305))===Vr?(c1(n.valueDeclaration,j),j):x}function Ua(n,a,c){var d,_;if(!cr(n)||!c||!wa(c)||c.properties.length)return;let y=ua();for(;_r(n)||zr(n);){let z=ff(n);(d=z?.exports)!=null&&d.size&&l_(y,z.exports),n=_r(n)?n.parent:n.parent.parent}let x=ff(n);(_=x?.exports)!=null&&_.size&&l_(y,x.exports);let L=Ls(a,y,et,et,et);return L.objectFlags|=4096,L}function cc(n,a,c,d){var _;let y=yu(a.parent);if(y){let x=Jp(Ii(y));if(n)!qt(n)&&!qt(x)&&!hv(n,x)&&U3e(void 0,n,d,x);else return x}if((_=c.parent)!=null&&_.valueDeclaration){let x=xE(c.parent);if(x.valueDeclaration){let L=yu(x.valueDeclaration);if(L){let z=ba(Ii(L),c.escapedName);if(z)return Pb(z)}}}return n}function Q0(n,a,c,d){if(la(c)){if(a)return pr(a);let x=ec(c.arguments[2]),L=Xe(x,"value");if(L)return L;let z=Xe(x,"get");if(z){let re=tA(z);if(re)return ms(re)}let U=Xe(x,"set");if(U){let re=tA(U);if(re)return Bye(re)}return j}if(ux(c.left,c.right))return j;let _=d===1&&(zr(c.left)||Ys(c.left))&&(tg(c.left.expression)||Ve(c.left.expression)&&yS(c.left.expression)),y=a?pr(a):_?vd(ec(c.right)):BE(ec(c.right));if(y.flags&524288&&d===2&&n.escapedName==="export="){let x=m_(y),L=ua();L6(x.members,L);let z=L.size;a&&!a.exports&&(a.exports=ua()),(a||n).exports.forEach((re,be)=>{var ge;let Je=L.get(be);if(Je&&Je!==re&&!(re.flags&2097152))if(re.flags&111551&&Je.flags&111551){if(re.valueDeclaration&&Je.valueDeclaration&&Vn(re.valueDeclaration)!==Vn(Je.valueDeclaration)){let Rt=Hi(re.escapedName),sn=((ge=ai(Je.valueDeclaration,od))==null?void 0:ge.name)||Je.valueDeclaration;ka(qe(re.valueDeclaration,f.Duplicate_identifier_0,Rt),Or(sn,f._0_was_also_declared_here,Rt)),ka(qe(sn,f.Duplicate_identifier_0,Rt),Or(re.valueDeclaration,f._0_was_also_declared_here,Rt))}let vt=Xa(re.flags|Je.flags,be);vt.links.type=ii([pr(re),pr(Je)]),vt.valueDeclaration=Je.valueDeclaration,vt.declarations=xo(Je.declarations,re.declarations),L.set(be,vt)}else L.set(be,cm(re,Je));else L.set(be,re)});let U=Ls(z!==L.size?void 0:x.symbol,L,x.callSignatures,x.constructSignatures,x.indexInfos);if(z===L.size&&(y.aliasSymbol&&(U.aliasSymbol=y.aliasSymbol,U.aliasTypeArguments=y.aliasTypeArguments),Wr(y)&4)){U.aliasSymbol=y.symbol;let re=qs(y);U.aliasTypeArguments=De(re)?re:void 0}return U.objectFlags|=Wr(y)&4096,U.symbol&&U.symbol.flags&32&&y===zf(U.symbol)&&(U.objectFlags|=16777216),U}return cee(y)?(c1(c,Ql),Ql):y}function ux(n,a){return zr(n)&&n.expression.kind===110&&PN(a,c=>Iu(n,c))}function BP(n){let a=wd(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!GL(a.parent)}function Cb(n,a){return C.assert(n.length===a.length),n.filter((c,d)=>{let _=a[d],y=_r(_)?_:_r(_.parent)?_.parent:void 0;return y&&BP(y)})}function GP(n,a,c){if(n.initializer){let d=ta(n.name)?P(n.name,!0,!1):mn;return lp(Zee(n,sM(n,c?0:1,d)))}return ta(n.name)?P(n.name,a,c):(c&&!br(n)&&c1(n,j),a?yn:j)}function ar(n,a,c){let d=ua(),_,y=131200;Ke(n.elements,L=>{let z=L.propertyName||L.name;if(L.dotDotDotToken){_=Bh(ke,j,!1);return}let U=_y(z);if(!nm(U)){y|=512;return}let re=rm(U),be=4|(L.initializer?16777216:0),ge=Xa(be,re);ge.links.type=GP(L,a,c),ge.links.bindingElement=L,d.set(ge.escapedName,ge)});let x=Ls(void 0,d,et,et,_?[_]:et);return x.objectFlags|=y,a&&(x.pattern=n,x.objectFlags|=131072),x}function E(n,a,c){let d=n.elements,_=Zs(d),y=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(d.length===0||d.length===1&&y)return ue>=2?FOe(j):Ql;let x=Ft(d,re=>Vc(re)?j:GP(re,a,c)),L=to(d,re=>!(re===y||Vc(re)||oM(re)),d.length-1)+1,z=Ft(d,(re,be)=>re===y?4:be>=L?2:1),U=Gh(x,z);return a&&(U=vOe(U),U.pattern=n,U.objectFlags|=131072),U}function P(n,a=!1,c=!1){return n.kind===206?ar(n,a,c):E(n,a,c)}function B(n,a){return Jt(kT(n,!0,0),n,a)}function ce(n){let a=ti(n);if(!a.resolvedType){let c=Xa(4096,"__importAttributes"),d=ua();Ke(n.elements,y=>{let x=Xa(4,i7(y));x.parent=c,x.links.type=jht(y),x.links.target=x,d.set(x.escapedName,x)});let _=Ls(c,d,et,et,et);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function $e(n){let a=ff(n),c=Wst(!1);return c&&a&&a===c}function Jt(n,a,c){return n?(n.flags&4096&&$e(a.parent)&&(n=ave(a)),c&&gee(a,n),n.flags&8192&&(Qa(a)||!a.type)&&n.symbol!==Rr(a)&&(n=Di),Jp(n)):(n=Co(a)&&a.dotDotDotToken?Ql:j,c&&(br(a)||c1(a,n)),n)}function br(n){let a=D_(n),c=a.kind===169?a.parent:a;return _B(c)}function ao(n){let a=yu(n);if(a)return Ii(a)}function Hs(n){let a=n.valueDeclaration;return a?(Qa(a)&&(a=Vx(a)),Co(a)?eee(a.parent):!1):!1}function d_(n,a){let c=$i(n);if(!c.type){let d=Nb(n,a);return!c.type&&!Hs(n)&&!a&&(c.type=d),d}return c.type}function Nb(n,a){if(n.flags&4194304)return Re(n);if(n===yt)return j;if(n.flags&134217728&&n.valueDeclaration){let _=Rr(Vn(n.valueDeclaration)),y=Xa(_.flags,"exports");y.declarations=_.declarations?_.declarations.slice():[],y.parent=n,y.links.target=_,_.valueDeclaration&&(y.valueDeclaration=_.valueDeclaration),_.members&&(y.members=new Map(_.members)),_.exports&&(y.exports=new Map(_.exports));let x=ua();return x.set("exports",y),Ls(n,x,et,et,et)}C.assertIsDefined(n.valueDeclaration);let c=n.valueDeclaration;if(no(c)&&$f(c))return c.statements.length?Jp(BE(go(c.statements[0].expression))):Pa;if(Ly(c))return e1(n);if(!Oh(n,0))return n.flags&512&&!(n.flags&67108864)?VP(n):Qa(c)&&a===1?ht:dD(n);let d;if(c.kind===277)d=Jt(ao(c)||ec(c.expression),c);else if(_r(c)||cr(c)&&(la(c)||(zr(c)||c3(c))&&_r(c.parent)))d=Hp(n);else if(zr(c)||Ys(c)||Ve(c)||us(c)||hp(c)||Tc(c)||Sc(c)||jl(c)&&!Im(c)||yh(c)||no(c)){if(n.flags&9136)return VP(n);d=_r(c.parent)?Hp(n):ao(c)||j}else if(_c(c))d=ao(c)||h3e(c);else if(O_(c))d=ao(c)||Q8e(c);else if(np(c))d=ao(c)||cM(c.name,0);else if(Im(c))d=ao(c)||g3e(c,0);else if(Co(c)||Jo(c)||gp(c)||Oi(c)||Qa(c)||mC(c))d=B(c,!0);else if(v0(c))d=VP(n);else if(Q1(c))d=RZ(n);else return C.fail("Unhandled declaration kind! "+C.formatSyntaxKind(c.kind)+" for "+C.formatSymbol(n));return X_()?d:n.flags&512&&!(n.flags&67108864)?VP(n):Qa(c)&&a===1?d:dD(n)}function Gm(n){if(n)switch(n.kind){case 177:return tm(n);case 178:return Xie(n);case 172:return C.assert(C_(n)),yu(n)}}function Z0(n){let a=Gm(n);return a&&Ii(a)}function IZ(n){let a=Dbe(n);return a&&a.symbol}function ige(n){return i1(pm(n))}function e1(n){let a=$i(n);if(!a.type){if(!Oh(n,0))return ht;let c=dl(n,177),d=dl(n,178),_=ai(dl(n,172),kd),y=c&&cr(c)&&lv(c)||Z0(c)||Z0(d)||Z0(_)||c&&c.body&&Yee(c)||_&&_.initializer&&B(_,!0);y||(d&&!_B(d)?_u(me,d,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ai(n)):c&&!_B(c)?_u(me,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ai(n)):_&&!_B(_)&&_u(me,_,f.Member_0_implicitly_has_an_1_type,Ai(n),"any"),y=j),X_()||(Gm(c)?qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ai(n)):Gm(d)||Gm(_)?qe(d,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ai(n)):c&&me&&qe(c,f._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,Ai(n)),y=j),a.type=y}return a.type}function oz(n){let a=$i(n);if(!a.writeType){if(!Oh(n,8))return ht;let c=dl(n,178)??ai(dl(n,172),kd),d=Z0(c);X_()||(Gm(c)&&qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ai(n)),d=j),a.writeType=d||e1(n)}return a.writeType}function xZ(n){let a=Cp(zf(n));return a.flags&8650752?a:a.flags&2097152?vn(a.types,c=>!!(c.flags&8650752)):void 0}function VP(n){let a=$i(n),c=a;if(!a.type){let d=n.valueDeclaration&&Kee(n.valueDeclaration,!1);if(d){let _=kye(n,d);_&&(n=_,a=_.links)}c.type=a.type=az(n)}return a.type}function az(n){let a=n.valueDeclaration;if(n.flags&1536&&SC(n))return j;if(a&&(a.kind===226||ks(a)&&a.parent.kind===226))return Hp(n);if(n.flags&512&&a&&no(a)&&a.commonJsModuleIndicator){let d=Rp(n);if(d!==n){if(!Oh(n,0))return ht;let _=is(n.exports.get("export=")),y=Hp(_,_===d?void 0:d);return X_()?y:dD(n)}}let c=Of(16,n);if(n.flags&32){let d=xZ(n);return d?Ea([c,d]):c}else return Y&&n.flags&16777216?jb(c,!0):c}function RZ(n){let a=$i(n);return a.type||(a.type=Fwe(n))}function DZ(n){let a=$i(n);if(!a.type){if(!Oh(n,0))return ht;let c=Fc(n),d=n.declarations&&jp(Fm(n),!0),_=Zt(d?.declarations,y=>Ll(y)?ao(y):void 0);if(a.type=d?.declarations&&fte(d.declarations)&&n.declarations.length?$0(d):fte(n.declarations)?ot:_||(Au(c)&111551?pr(c):ht),!X_())return dD(d??n),a.type=ht}return a.type}function oge(n){let a=$i(n);return a.type||(a.type=co(pr(a.target),a.mapper))}function age(n){let a=$i(n);return a.writeType||(a.writeType=co(ME(a.target),a.mapper))}function dD(n){let a=n.valueDeclaration;if(a){if(yu(a))return qe(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ai(n)),ht;me&&(a.kind!==169||a.initializer)&&qe(n.valueDeclaration,f._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ai(n))}else if(n.flags&2097152){let c=Fm(n);c&&qe(c,f.Circular_definition_of_import_alias_0,Ai(n))}return j}function CZ(n){let a=$i(n);return a.type||(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ii(a.deferralConstituents):Ea(a.deferralConstituents)),a.type}function sz(n){let a=$i(n);return!a.writeType&&a.deferralWriteConstituents&&(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ii(a.deferralWriteConstituents):Ea(a.deferralWriteConstituents)),a.writeType}function ME(n){let a=Al(n);return n.flags&4?a&2?a&65536?sz(n)||CZ(n):n.links.writeType||n.links.type:Ub(pr(n),!!(n.flags&16777216)):n.flags&98304?a&1?age(n):oz(n):pr(n)}function pr(n,a){let c=Al(n);return c&65536?CZ(n):c&1?oge(n):c&262144?rst(n):c&8192?gut(n):n.flags&7?d_(n,a):n.flags&9136?VP(n):n.flags&8?RZ(n):n.flags&98304?e1(n):n.flags&2097152?DZ(n):ht}function Pb(n){return Ub(pr(n),!!(n.flags&16777216))}function Mb(n,a){return n!==void 0&&a!==void 0&&(Wr(n)&4)!==0&&n.target===a}function dy(n){return Wr(n)&4?n.target:n}function pD(n,a){return c(n);function c(d){if(Wr(d)&7){let _=dy(d);return _===a||Et(Np(_),c)}else if(d.flags&2097152)return Et(d.types,c);return!1}}function t1(n,a){for(let c of a)n=Ng(n,wT(Rr(c)));return n}function Cn(n,a){for(;;){if(n=n.parent,n&&_r(n)){let c=Wl(n);if(c===6||c===3){let d=Rr(n.left);d&&d.parent&&!zn(d.parent.valueDeclaration,_=>n===_)&&(n=d.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{let d=Cn(n,a);if(n.kind===200)return In(d,wT(Rr(n.typeParameter)));if(n.kind===194)return xo(d,u4e(n));let _=t1(d,Py(n)),y=a&&(n.kind===263||n.kind===231||n.kind===264||th(n))&&zf(Rr(n)).thisType;return y?In(_,y):_}case 348:let c=JL(n);c&&(n=c.valueDeclaration);break;case 327:{let d=Cn(n,a);return n.tags?t1(d,Zi(n.tags,_=>am(_)?_.typeParameters:void 0)):d}}}}function Gr(n){var a;let c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(d=>{if(d.kind===264)return!0;if(d.kind!==260)return!1;let _=d.initializer;return!!_&&(_.kind===218||_.kind===219)});return C.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Cn(c)}function kr(n){if(!n.declarations)return;let a;for(let c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||th(c)||UL(c))&&(a=t1(a,Py(c)));return a}function Wi(n){return xo(Gr(n),kr(n))}function Li(n){let a=Yo(n,1);if(a.length===1){let c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Xu(c)){let d=aB(c.parameters[0]);return Ct(d)||wz(d)===j}}return!1}function os(n){if(Yo(n,1).length>0)return!0;if(n.flags&8650752){let a=Bu(n);return!!a&&Li(a)}return!1}function xs(n){let a=Bg(n.symbol);return a&&x_(a)}function ed(n,a,c){let d=De(a),_=cr(c);return tr(Yo(n,1),y=>(_||d>=zh(y.typeParameters))&&d<=De(y.typeParameters))}function Fh(n,a,c){let d=ed(n,a,c),_=Ft(a,Ii);return Io(d,y=>Et(y.typeParameters)?T4(y,_,cr(c)):y)}function Cp(n){if(!n.resolvedBaseConstructorType){let a=Bg(n.symbol),c=a&&x_(a),d=xs(n);if(!d)return n.resolvedBaseConstructorType=Oe;if(!Oh(n,1))return ht;let _=go(d.expression);if(c&&d!==c&&(C.assert(!c.typeArguments),go(c.expression)),_.flags&2621440&&m_(_),!X_())return qe(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ai(n.symbol)),n.resolvedBaseConstructorType=ht;if(!(_.flags&1)&&_!==Ge&&!os(_)){let y=qe(d.expression,f.Type_0_is_not_a_constructor_function_type,jn(_));if(_.flags&262144){let x=HP(_),L=mn;if(x){let z=Yo(x,1);z[0]&&(L=ms(z[0]))}_.symbol.declarations&&ka(y,Or(_.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ai(_.symbol),jn(L)))}return n.resolvedBaseConstructorType=ht}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function p_(n){let a=et;if(n.symbol.declarations)for(let c of n.symbol.declarations){let d=_R(c);if(d)for(let _ of d){let y=Ii(_);qt(y)||(a===et?a=[y]:a.push(y))}}return a}function dv(n,a){qe(n,f.Type_0_recursively_references_itself_as_a_base_type,jn(a,void 0,2))}function Np(n){if(!n.baseTypesResolved){if(Oh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[fD(n)]:n.symbol.flags&96?(n.symbol.flags&32&&v4(n),n.symbol.flags&64&&Mat(n)):C.fail("type must be class or interface"),!X_()&&n.symbol.declarations))for(let a of n.symbol.declarations)(a.kind===263||a.kind===264)&&dv(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function fD(n){let a=Io(n.typeParameters,(c,d)=>n.elementFlags[d]&8?Pp(c,Dt):c);return Gu(ii(a||et),n.readonly)}function v4(n){n.resolvedBaseTypes=o7;let a=Md(Cp(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=et;let c=xs(n),d,_=a.symbol?Qs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Pat(_))d=yOe(c,a.symbol);else if(a.flags&1)d=a;else{let x=Fh(a,c.typeArguments,c);if(!x.length)return qe(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=et;d=ms(x[0])}if(qt(d))return n.resolvedBaseTypes=et;let y=__(d);if(!lz(y)){let x=bge(void 0,d),L=Uo(x,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,jn(y));return ns.add(Og(Vn(c.expression),c.expression,L)),n.resolvedBaseTypes=et}return n===y||pD(y,n)?(qe(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,jn(n,void 0,2)),n.resolvedBaseTypes=et):(n.resolvedBaseTypes===o7&&(n.members=void 0),n.resolvedBaseTypes=[y])}function Pat(n){let a=n.outerTypeParameters;if(a){let c=a.length-1,d=qs(n);return a[c].symbol!==d[c].symbol}return!0}function lz(n){if(n.flags&262144){let a=Bu(n);if(a)return lz(a)}return!!(n.flags&67633153&&!Hd(n)||n.flags&2097152&&Jn(n.types,lz))}function Mat(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||et,n.symbol.declarations){for(let a of n.symbol.declarations)if(a.kind===264&&MC(a))for(let c of MC(a)){let d=__(Ii(c));qt(d)||(lz(d)?n!==d&&!pD(d,n)?n.resolvedBaseTypes===et?n.resolvedBaseTypes=[d]:n.resolvedBaseTypes.push(d):dv(a,n):qe(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Lat(n){if(!n.declarations)return!0;for(let a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;let c=MC(a);if(c){for(let d of c)if(zl(d.expression)){let _=Us(d.expression,788968,!0);if(!_||!(_.flags&64)||zf(_).thisType)return!1}}}return!0}function zf(n){let a=$i(n),c=a;if(!a.declaredType){let d=n.flags&32?1:2,_=kye(n,n.valueDeclaration&&Eft(n.valueDeclaration));_&&(n=_,a=_.links);let y=c.declaredType=a.declaredType=Of(d,n),x=Gr(n),L=kr(n);(x||L||d===1||!Lat(n))&&(y.objectFlags|=4,y.typeParameters=xo(x,L),y.outerTypeParameters=x,y.localTypeParameters=L,y.instantiations=new Map,y.instantiations.set(fm(y.typeParameters),y),y.target=y,y.resolvedTypeArguments=y.typeParameters,y.thisType=_f(n),y.thisType.isThisType=!0,y.thisType.constraint=y)}return a.declaredType}function kwe(n){var a;let c=$i(n);if(!c.declaredType){if(!Oh(n,2))return ht;let d=C.checkDefined((a=n.declarations)==null?void 0:a.find(UL),"Type alias symbol with no valid declaration found"),_=Qf(d)?d.typeExpression:d.type,y=_?Ii(_):ht;if(X_()){let x=kr(n);x&&(c.typeParameters=x,c.instantiations=new Map,c.instantiations.set(fm(x),y))}else y=ht,d.kind===347?qe(d.typeExpression.type,f.Type_alias_0_circularly_references_itself,Ai(n)):qe(od(d)&&d.name||d,f.Type_alias_0_circularly_references_itself,Ai(n));c.declaredType=y}return c.declaredType}function NZ(n){return n.flags&1056&&n.symbol.flags&8?Qs(Cd(n.symbol)):n}function wwe(n){let a=$i(n);if(!a.declaredType){let c=[];if(n.declarations){for(let _ of n.declarations)if(_.kind===266){for(let y of _.members)if(mD(y)){let x=Rr(y),L=kD(y),z=hx(L!==void 0?Qlt(L,Ta(n),x):Owe(x));$i(x).declaredType=z,c.push(vd(z))}}}let d=c.length?ii(c,1,n,void 0):Owe(n);d.flags&1048576&&(d.flags|=1024,d.symbol=n),a.declaredType=d}return a.declaredType}function Owe(n){let a=Eg(32,n),c=Eg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function Fwe(n){let a=$i(n);if(!a.declaredType){let c=wwe(Cd(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function wT(n){let a=$i(n);return a.declaredType||(a.declaredType=_f(n))}function kat(n){let a=$i(n);return a.declaredType||(a.declaredType=Qs(Fc(n)))}function Qs(n){return Wwe(n)||ht}function Wwe(n){if(n.flags&96)return zf(n);if(n.flags&524288)return kwe(n);if(n.flags&262144)return wT(n);if(n.flags&384)return wwe(n);if(n.flags&8)return Fwe(n);if(n.flags&2097152)return kat(n)}function cz(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return cz(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(cz)}return!1}function wat(n){let a=Ux(n);return!a||cz(a)}function zwe(n){let a=yu(n);return a?cz(a):!Oy(n)}function Oat(n){let a=tm(n),c=Py(n);return(n.kind===176||!!a&&cz(a))&&n.parameters.every(zwe)&&c.every(wat)}function Fat(n){if(n.declarations&&n.declarations.length===1){let a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return zwe(a);case 174:case 173:case 176:case 177:case 178:return Oat(a)}}return!1}function Bwe(n,a,c){let d=ua();for(let _ of n)d.set(_.escapedName,c&&Fat(_)?_:cve(_,a));return d}function Gwe(n,a){for(let c of a){if(Vwe(c))continue;let d=n.get(c.escapedName);(!d||d.valueDeclaration&&_r(d.valueDeclaration)&&!cD(d)&&!Aie(d.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function Vwe(n){return!!n.valueDeclaration&&ad(n.valueDeclaration)&&sa(n.valueDeclaration)}function sge(n){if(!n.declaredProperties){let a=n.symbol,c=Lb(a);n.declaredProperties=K0(c),n.declaredCallSignatures=et,n.declaredConstructSignatures=et,n.declaredIndexInfos=et,n.declaredCallSignatures=LE(c.get("__call")),n.declaredConstructSignatures=LE(c.get("__new")),n.declaredIndexInfos=_Oe(a)}return n}function lge(n){if(!Za(n)&&!Ys(n))return!1;let a=Za(n)?n.expression:n.argumentExpression;return zl(a)&&nm(Za(n)?Ig(n):ec(a))}function y4(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function uz(n){let a=Oo(n);return!!a&&lge(a)}function mD(n){return!By(n)||uz(n)}function Wat(n){return h3(n)&&!lge(n)}function zat(n,a,c){C.assert(!!(Al(n)&4096),"Expected a late-bound symbol."),n.flags|=c,$i(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function jwe(n,a,c,d){C.assert(!!d.symbol,"The member is expected to have a symbol.");let _=ti(d);if(!_.resolvedSymbol){_.resolvedSymbol=d.symbol;let y=_r(d)?d.left:d.name,x=Ys(y)?ec(y.argumentExpression):Ig(y);if(nm(x)){let L=rm(x),z=d.symbol.flags,U=c.get(L);U||c.set(L,U=Xa(0,L,4096));let re=a&&a.get(L);if(!(n.flags&32)&&(U.flags&mT(z)||re)){let be=re?xo(re.declarations,U.declarations):U.declarations,ge=!(x.flags&8192)&&Hi(L)||Ds(y);Ke(be,Je=>qe(Oo(Je)||Je,f.Property_0_was_also_declared_here,ge)),qe(y||d,f.Duplicate_property_0,ge),U=Xa(0,L,4096)}return U.links.nameType=x,zat(U,d,z),U.parent?C.assert(U.parent===n,"Existing symbol parent should match new one"):U.parent=n,_.resolvedSymbol=U}}return _.resolvedSymbol}function cge(n,a){let c=$i(n);if(!c[a]){let d=a==="resolvedExports",_=d?n.flags&1536?CT(n).exports:n.exports:n.members;c[a]=_||K;let y=ua();for(let z of n.declarations||et){let U=hie(z);if(U)for(let re of U)d===fc(re)&&uz(re)&&jwe(n,_,y,re)}let x=xE(n).assignmentDeclarationMembers;if(x){let z=Vo(x.values());for(let U of z){let re=Wl(U),be=re===3||_r(U)&&Mee(U,re)||re===9||re===6;d===!be&&uz(U)&&jwe(n,_,y,U)}}let L=ZI(_,y);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(let z of n.declarations){let U=$i(z.symbol)[a];if(!L){L=U;continue}U&&U.forEach((re,be)=>{let ge=L.get(be);if(!ge)L.set(be,re);else{if(ge===re)return;L.set(be,cm(ge,re))}})}c[a]=L||K}return c[a]}function Lb(n){return n.flags&6256?cge(n,"resolvedMembers"):n.members||K}function PZ(n){if(n.flags&106500&&n.escapedName==="__computed"){let a=$i(n);if(!a.lateSymbol&&Et(n.declarations,uz)){let c=is(n.parent);Et(n.declarations,fc)?Dp(c):Lb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function qp(n,a,c){if(Wr(n)&4){let d=n.target,_=qs(n);return De(d.typeParameters)===De(_)?fy(d,xo(_,[a||d.thisType])):n}else if(n.flags&2097152){let d=Io(n.types,_=>qp(_,a,c));return d!==n.types?Ea(d):n}return c?Md(n):n}function Uwe(n,a,c,d){let _,y,x,L,z;eG(c,d,0,c.length)?(y=a.symbol?Lb(a.symbol):ua(a.declaredProperties),x=a.declaredCallSignatures,L=a.declaredConstructSignatures,z=a.declaredIndexInfos):(_=Mp(c,d),y=Bwe(a.declaredProperties,_,c.length===1),x=QZ(a.declaredCallSignatures,_),L=QZ(a.declaredConstructSignatures,_),z=h4e(a.declaredIndexInfos,_));let U=Np(a);if(U.length){if(a.symbol&&y===Lb(a.symbol)){let be=ua(a.declaredProperties),ge=Dge(a.symbol);ge&&be.set("__index",ge),y=be}hf(n,y,x,L,z);let re=Zs(d);for(let be of U){let ge=re?qp(co(be,_),re):be;Gwe(y,ys(ge)),x=xo(x,Yo(ge,0)),L=xo(L,Yo(ge,1));let Je=ge!==j?hd(ge):[Bh(ke,j,!1)];z=xo(z,tr(Je,vt=>!Ege(z,vt.keyType)))}}hf(n,y,x,L,z)}function Bat(n){Uwe(n,sge(n),et,et)}function Gat(n){let a=sge(n.target),c=xo(a.typeParameters,[a.thisType]),d=qs(n),_=d.length===c.length?d:xo(d,[n]);Uwe(n,a,c,_)}function Tg(n,a,c,d,_,y,x,L){let z=new g(Qt,L);return z.declaration=n,z.typeParameters=a,z.parameters=d,z.thisParameter=c,z.resolvedReturnType=_,z.resolvedTypePredicate=y,z.minArgumentCount=x,z.resolvedMinArgumentCount=void 0,z.target=void 0,z.mapper=void 0,z.compositeSignatures=void 0,z.compositeKind=void 0,z}function b4(n){let a=Tg(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function Hwe(n,a){let c=b4(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Vat(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});let c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=jat(n,a))}function jat(n,a){C.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let c=b4(n);return c.flags|=a,c}function qwe(n,a){if(Xu(n)){let _=n.parameters.length-1,y=n.parameters[_].escapedName,x=pr(n.parameters[_]);if(Wa(x))return[c(x,_,y)];if(!a&&x.flags&1048576&&Jn(x.types,Wa))return Ft(x.types,L=>c(L,_,y))}return[n.parameters];function c(_,y,x){let L=qs(_),z=d(_,x),U=Ft(L,(re,be)=>{let ge=z&&z[be]?z[be]:aM(n,y+be,_),Je=_.target.elementFlags[be],vt=Je&12?32768:Je&2?16384:0,Rt=Xa(1,ge,vt);return Rt.links.type=Je&4?Gu(re):re,Rt});return xo(n.parameters.slice(0,y),U)}function d(_,y){let x=new Map;return Ft(_.target.labeledElementDeclarations,(L,z)=>{let U=zye(L,z,y),re=x.get(U);return re===void 0?(x.set(U,1),U):(x.set(U,re+1),`${U}_${re}`)})}}function Uat(n){let a=Cp(n),c=Yo(a,1),d=Bg(n.symbol),_=!!d&&ei(d,64);if(c.length===0)return[Tg(void 0,n.localTypeParameters,void 0,et,n,void 0,0,_?4:0)];let y=xs(n),x=cr(y),L=vz(y),z=De(L),U=[];for(let re of c){let be=zh(re.typeParameters),ge=De(re.typeParameters);if(x||z>=be&&z<=ge){let Je=ge?OZ(re,wb(L,re.typeParameters,be,x)):b4(re);Je.typeParameters=n.localTypeParameters,Je.resolvedReturnType=n,Je.flags=_?Je.flags|4:Je.flags&-5,U.push(Je)}}return U}function MZ(n,a,c,d,_){for(let y of n)if(Lz(y,a,c,d,_,c?gct:M4))return y}function Hat(n,a,c){if(a.typeParameters){if(c>0)return;for(let _=1;_1&&(c=c===void 0?d:-1);for(let _ of n[d])if(!a||!MZ(a,_,!1,!1,!0)){let y=Hat(n,_,d);if(y){let x=_;if(y.length>1){let L=_.thisParameter,z=Ke(y,U=>U.thisParameter);if(z){let U=Ea(Vi(y,re=>re.thisParameter&&pr(re.thisParameter)));L=JT(z,U)}x=Hwe(_,y),x.thisParameter=L}(a||(a=[])).push(x)}}}if(!De(a)&&c!==-1){let d=n[c!==void 0?c:0],_=d.slice();for(let y of n)if(y!==d){let x=y[0];if(C.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=x.typeParameters&&Et(_,L=>!!L.typeParameters&&!Jwe(x.typeParameters,L.typeParameters))?void 0:Ft(_,L=>Kat(L,x)),!_)break}a=_}return a||et}function Jwe(n,a){if(De(n)!==De(a))return!1;if(!n||!a)return!0;let c=Mp(a,n);for(let d=0;d=_?n:a,x=y===n?a:n,L=y===n?d:_,z=jh(n)||jh(a),U=z&&!jh(y),re=new Array(L+(U?1:0));for(let be=0;be=nh(y)&&be>=nh(x),un=be>=d?void 0:aM(n,be),sr=be>=_?void 0:aM(a,be),Ln=un===sr?un:un?sr?void 0:un:sr,cn=Xa(1|(sn&&!Rt?16777216:0),Ln||`arg${be}`,Rt?32768:sn?16384:0);cn.links.type=Rt?Gu(vt):vt,re[be]=cn}if(U){let be=Xa(1,"args",32768);be.links.type=Gu(v_(x,L)),x===a&&(be.links.type=co(be.links.type,c)),re[L]=be}return re}function Kat(n,a){let c=n.typeParameters||a.typeParameters,d;n.typeParameters&&a.typeParameters&&(d=Mp(a.typeParameters,n.typeParameters));let _=n.declaration,y=Jat(n,a,d),x=qat(n.thisParameter,a.thisParameter,d),L=Math.max(n.minArgumentCount,a.minArgumentCount),z=Tg(_,c,x,y,void 0,void 0,L,(n.flags|a.flags)&167);return z.compositeKind=1048576,z.compositeSignatures=xo(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),d?z.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?zE(n.mapper,d):d:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(z.mapper=n.mapper),z}function Kwe(n){let a=hd(n[0]);if(a){let c=[];for(let d of a){let _=d.keyType;Jn(n,y=>!!Ag(y,_))&&c.push(Bh(_,ii(Ft(n,y=>r1(y,_))),Et(n,y=>Ag(y,_).isReadonly)))}return c}return et}function Xat(n){let a=uge(Ft(n.types,_=>_===wt?[pn]:Yo(_,0))),c=uge(Ft(n.types,_=>Yo(_,1))),d=Kwe(n.types);hf(n,K,a,c,d)}function dz(n,a){return n?a?Ea([n,a]):n:a}function Xwe(n){let a=au(n,d=>Yo(d,1).length>0),c=Ft(n,Li);if(a>0&&a===au(c,d=>d)){let d=c.indexOf(!0);c[d]=!1}return c}function Yat(n,a,c,d){let _=[];for(let y=0;yL);for(let L=0;L<_.length;L++){let z=n.types[L];if(!y[L]){let U=Yo(z,1);U.length&&x>0&&(U=Ft(U,re=>{let be=b4(re);return be.resolvedReturnType=Yat(ms(re),_,y,L),be})),c=Ywe(c,U)}a=Ywe(a,Yo(z,0)),d=nd(hd(z),(U,re)=>$we(U,re,!1),d)}hf(n,K,a||et,c||et,d||et)}function Ywe(n,a){for(let c of a)(!n||Jn(n,d=>!Lz(d,c,!1,!1,!1,M4)))&&(n=In(n,c));return n}function $we(n,a,c){if(n)for(let d=0;d{var z;!(L.flags&418)&&!(L.flags&512&&((z=L.declarations)!=null&&z.length)&&Jn(L.declarations,Lu))&&x.set(L.escapedName,L)}),c=x}let _;if(hf(n,c,et,et,et),a.flags&32){let x=zf(a),L=Cp(x);L.flags&11272192?(c=ua(PT(c)),Gwe(c,ys(L))):L===j&&(_=Bh(ke,j,!1))}let y=FZ(c);if(y?d=Cge(y):(_&&(d=In(d,_)),a.flags&384&&(Qs(a).flags&32||Et(n.properties,x=>!!(pr(x).flags&296)))&&(d=In(d,jr))),hf(n,c,et,et,d||et),a.flags&8208&&(n.callSignatures=LE(a)),a.flags&32){let x=zf(a),L=a.members?LE(a.members.get("__constructor")):et;a.flags&16&&(L=Jr(L.slice(),Vi(n.callSignatures,z=>th(z.declaration)?Tg(z.declaration,z.typeParameters,z.thisParameter,z.parameters,x,void 0,z.minArgumentCount,z.flags&167):void 0))),L.length||(L=Uat(x)),n.constructSignatures=L}}function Zat(n,a,c){return co(n,Mp([a.indexType,a.objectType],[h_(0),Gh([c])]))}function est(n){let a=gf(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;let c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;let d=Ea(c.types.filter(_=>_!==n.constraintType));return d!==Vr?d:void 0}function tst(n){let a=Ag(n.source,ke),c=Wh(n.mappedType),d=!(c&1),_=c&4?0:16777216,y=a?[Bh(ke,yee(a.type,n.mappedType,n.constraintType),d&&a.isReadonly)]:et,x=ua(),L=est(n);for(let z of ys(n.source)){if(L){let be=bD(z,8576);if(!Sa(be,L))continue}let U=8192|(d&&y_(z)?8:0),re=Xa(4|z.flags&_,z.escapedName,U);if(re.declarations=z.declarations,re.links.nameType=$i(z).nameType,re.links.propertyType=pr(z),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){let be=n.constraintType.type.objectType,ge=Zat(n.mappedType,n.constraintType.type,be);re.links.mappedType=ge,re.links.constraintType=$_(be)}else re.links.mappedType=n.mappedType,re.links.constraintType=n.constraintType;x.set(z.escapedName,re)}hf(n,x,et,et,y)}function pz(n){if(n.flags&4194304){let a=Md(n.type);return Vb(a)?GOe(a):$_(a)}if(n.flags&16777216){if(n.root.isDistributive){let a=n.checkType,c=pz(a);if(c!==a)return dve(n,HT(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return ul(n,pz,!0);if(n.flags&2097152){let a=n.types;return a.length===2&&a[0].flags&76&&a[1]===sc?n:Ea(Io(n.types,pz))}return n}function dge(n){return Al(n)&4096}function pge(n,a,c,d){for(let _ of ys(n))d(bD(_,a));if(n.flags&1)d(ke);else for(let _ of hd(n))(!c||_.keyType.flags&134217732)&&d(_.keyType)}function nst(n){let a=ua(),c;hf(n,K,et,et,et);let d=f_(n),_=gf(n),y=n.target||n,x=py(y),L=LZ(y)!==2,z=pv(y),U=Md(OT(n)),re=Wh(n),be=Le?128:8576;_D(n)?pge(U,be,Le,ge):$T(pz(_),ge),hf(n,a,et,et,c||et);function ge(vt){let Rt=x?co(x,C4(n.mapper,d,vt)):vt;$T(Rt,sn=>Je(vt,sn))}function Je(vt,Rt){if(nm(Rt)){let sn=rm(Rt),un=a.get(sn);if(un)un.links.nameType=ii([un.links.nameType,Rt]),un.links.keyType=ii([un.links.keyType,vt]);else{let sr=nm(vt)?ba(U,rm(vt)):void 0,Ln=!!(re&4||!(re&8)&&sr&&sr.flags&16777216),cn=!!(re&1||!(re&2)&&sr&&y_(sr)),Fn=Y&&!Ln&&sr&&sr.flags&16777216,kn=sr?dge(sr):0,Zn=Xa(4|(Ln?16777216:0),sn,kn|262144|(cn?8:0)|(Fn?524288:0));Zn.links.mappedType=n,Zn.links.nameType=Rt,Zn.links.keyType=vt,sr&&(Zn.links.syntheticOrigin=sr,Zn.declarations=L?sr.declarations:void 0),a.set(sn,Zn)}}else if(WZ(Rt)||Rt.flags&33){let sn=Rt.flags&5?ke:Rt.flags&40?Dt:Rt,un=co(z,C4(n.mapper,d,vt)),sr=E4(U,Rt),Ln=!!(re&1||!(re&2)&&sr?.isReadonly),cn=Bh(sn,un,Ln);c=$we(c,cn,!0)}}}function rst(n){if(!n.links.type){let a=n.links.mappedType;if(!Oh(n,0))return a.containsError=!0,ht;let c=pv(a.target||a),d=C4(a.mapper,f_(a),n.links.keyType),_=co(c,d),y=Y&&n.flags&16777216&&!Dl(_,49152)?jb(_,!0):n.links.checkFlags&524288?mee(_):_;X_()||(qe(N,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ai(n),jn(a)),y=ht),n.links.type=y}return n.links.type}function f_(n){return n.typeParameter||(n.typeParameter=wT(Rr(n.declaration.typeParameter)))}function gf(n){return n.constraintType||(n.constraintType=Pd(f_(n))||ht)}function py(n){return n.declaration.nameType?n.nameType||(n.nameType=co(Ii(n.declaration.nameType),n.mapper)):void 0}function pv(n){return n.templateType||(n.templateType=n.declaration.type?co(lp(Ii(n.declaration.type),!0,!!(Wh(n)&4)),n.mapper):ht)}function Qwe(n){return Ux(n.declaration.typeParameter)}function _D(n){let a=Qwe(n);return a.kind===198&&a.operator===143}function OT(n){if(!n.modifiersType)if(_D(n))n.modifiersType=co(Ii(Qwe(n).type),n.mapper);else{let a=tve(n.declaration),c=gf(a),d=c&&c.flags&262144?Pd(c):c;n.modifiersType=d&&d.flags&4194304?co(d.type,n.mapper):mn}return n.modifiersType}function Wh(n){let a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function Zwe(n){let a=Wh(n);return a&8?-1:a&4?1:0}function fge(n){let a=Zwe(n),c=OT(n);return a||(Hd(c)?Zwe(c):0)}function ist(n){return!!(Wr(n)&32&&Wh(n)&4)}function Hd(n){if(Wr(n)&32){let a=gf(n);if(UT(a))return!0;let c=py(n);if(c&&UT(co(c,WE(f_(n),a))))return!0}return!1}function LZ(n){let a=py(n);return a?Sa(a,f_(n))?1:2:0}function m_(n){return n.members||(n.flags&524288?n.objectFlags&4?Gat(n):n.objectFlags&3?Bat(n):n.objectFlags&1024?tst(n):n.objectFlags&16?Qat(n):n.objectFlags&32?nst(n):C.fail("Unhandled object type "+C.formatObjectFlags(n.objectFlags)):n.flags&1048576?Xat(n):n.flags&2097152?$at(n):C.fail("Unhandled type "+C.formatTypeFlags(n.flags))),n}function kb(n){return n.flags&524288?m_(n).properties:et}function n1(n,a){if(n.flags&524288){let d=m_(n).members.get(a);if(d&&Bm(d))return d}}function fz(n){if(!n.resolvedProperties){let a=ua();for(let c of n.types){for(let d of ys(c))if(!a.has(d.escapedName)){let _=_z(n,d.escapedName,!!(n.flags&2097152));_&&a.set(d.escapedName,_)}if(n.flags&1048576&&hd(c).length===0)break}n.resolvedProperties=K0(a)}return n.resolvedProperties}function ys(n){return n=jP(n),n.flags&3145728?fz(n):kb(n)}function ost(n,a){n=jP(n),n.flags&3670016&&m_(n).members.forEach((c,d)=>{sx(c,d)&&a(c,d)})}function ast(n,a){return a.properties.some(d=>{let _=d.name&&(e_(d.name)?qd(bk(d.name)):_y(d.name)),y=_&&nm(_)?rm(_):void 0,x=y===void 0?void 0:Xe(n,y);return!!x&&w4(x)&&!Sa(bx(d),x)})}function sst(n){let a=ii(n);if(!(a.flags&1048576))return Ebe(a);let c=ua();for(let d of n)for(let{escapedName:_}of Ebe(d))if(!c.has(_)){let y=aOe(a,_);y&&c.set(_,y)}return Vo(c.values())}function FT(n){return n.flags&262144?Pd(n):n.flags&8388608?cst(n):n.flags&16777216?nOe(n):Bu(n)}function Pd(n){return mz(n)?HP(n):void 0}function lst(n,a){let c=N4(n);return!!c&&WT(c,a)}function WT(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&Et((c=n.symbol)==null?void 0:c.declarations,d=>ei(d,4096))||n.flags&3145728&&Et(n.types,d=>WT(d,a))||n.flags&8388608&&WT(n.objectType,a+1)||n.flags&16777216&&WT(nOe(n),a+1)||n.flags&33554432&&WT(n.baseType,a)||Wr(n)&32&&lst(n,a)||Vb(n)&&ri(wE(n),(d,_)=>!!(n.target.elementFlags[_]&8)&&WT(d,a))>=0))}function cst(n){return mz(n)?ust(n):void 0}function mge(n){let a=_v(n,!1);return a!==n?a:FT(n)}function ust(n){if(vge(n))return qZ(n.objectType,n.indexType);let a=mge(n.indexType);if(a&&a!==n.indexType){let d=Fb(n.objectType,a,n.accessFlags);if(d)return d}let c=mge(n.objectType);if(c&&c!==n.objectType)return Fb(c,n.indexType,n.accessFlags)}function _ge(n){if(!n.resolvedDefaultConstraint){let a=qlt(n),c=a1(n);n.resolvedDefaultConstraint=Ct(a)?c:Ct(c)?a:ii([a,c])}return n.resolvedDefaultConstraint}function eOe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){let a=_v(n.checkType,!1),c=a===n.checkType?FT(a):a;if(c&&c!==n.checkType){let d=dve(n,HT(n.root.checkType,c,n.mapper),!0);if(!(d.flags&131072))return n.resolvedConstraintOfDistributive=d,d}}n.resolvedConstraintOfDistributive=!1}function tOe(n){return eOe(n)||_ge(n)}function nOe(n){return mz(n)?tOe(n):void 0}function dst(n,a){let c,d=!1;for(let _ of n)if(_.flags&465829888){let y=FT(_);for(;y&&y.flags&21233664;)y=FT(y);y&&(c=In(c,y),a&&(c=In(c,_)))}else(_.flags&469892092||Vh(_))&&(d=!0);if(c&&(a||d)){if(d)for(let _ of n)(_.flags&469892092||Vh(_))&&(c=In(c,_));return Nz(Ea(c),!1)}}function Bu(n){if(n.flags&464781312||Vb(n)){let a=hge(n);return a!==Vs&&a!==nu?a:void 0}return n.flags&4194304?Fs:void 0}function fv(n){return Bu(n)||n}function mz(n){return hge(n)!==nu}function hge(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let a=[];return n.resolvedBaseConstraint=c(n);function c(y){if(!y.immediateBaseConstraint){if(!Oh(y,4))return nu;let x,L=lee(y);if((a.length<10||a.length<50&&!wr(a,L))&&(a.push(L),x=_(_v(y,!1)),a.pop()),!X_()){if(y.flags&262144){let z=Nge(y);if(z){let U=qe(z,f.Type_parameter_0_has_a_circular_constraint,jn(y));N&&!P1(z,N)&&!P1(N,z)&&ka(U,Or(N,f.Circularity_originates_in_type_at_this_location))}}x=nu}y.immediateBaseConstraint=x||Vs}return y.immediateBaseConstraint}function d(y){let x=c(y);return x!==Vs&&x!==nu?x:void 0}function _(y){if(y.flags&262144){let x=HP(y);return y.isThisType||!x?x:d(x)}if(y.flags&3145728){let x=y.types,L=[],z=!1;for(let U of x){let re=d(U);re?(re!==U&&(z=!0),L.push(re)):z=!0}return z?y.flags&1048576&&L.length===x.length?ii(L):y.flags&2097152&&L.length?Ea(L):void 0:y}if(y.flags&4194304)return Fs;if(y.flags&134217728){let x=y.types,L=Vi(x,d);return L.length===x.length?GT(y.texts,L):ke}if(y.flags&268435456){let x=d(y.type);return x&&x!==y.type?mx(y.symbol,x):ke}if(y.flags&8388608){if(vge(y))return d(qZ(y.objectType,y.indexType));let x=d(y.objectType),L=d(y.indexType),z=x&&L&&Fb(x,L,y.accessFlags);return z&&d(z)}if(y.flags&16777216){let x=tOe(y);return x&&d(x)}if(y.flags&33554432)return d(wge(y));if(Vb(y)){let x=Ft(wE(y),(L,z)=>{let U=L.flags&262144&&y.target.elementFlags[z]&8&&d(L)||L;return U!==L&&cp(U,re=>l1(re)&&!Vb(re))?U:L});return Gh(x,y.target.elementFlags,y.target.readonly,y.target.labeledElementDeclarations)}return y}}function pst(n,a){return n.resolvedApparentType||(n.resolvedApparentType=qp(n,a,!0))}function gge(n){if(n.default)n.default===pu&&(n.default=nu);else if(n.target){let a=gge(n.target);n.default=a?co(a,n.mapper):Vs}else{n.default=pu;let a=n.symbol&&Ke(n.symbol.declarations,d=>_l(d)&&d.default),c=a?Ii(a):Vs;n.default===pu&&(n.default=c)}return n.default}function zT(n){let a=gge(n);return a!==Vs&&a!==nu?a:void 0}function fst(n){return gge(n)!==nu}function rOe(n){return!!(n.symbol&&Ke(n.symbol.declarations,a=>_l(a)&&a.default))}function iOe(n){return n.resolvedApparentType||(n.resolvedApparentType=mst(n))}function mst(n){let a=n.target??n,c=N4(a);if(c&&!a.declaration.nameType){let d=OT(n),_=Hd(d)?iOe(d):Bu(d);if(_&&cp(_,y=>l1(y)||oOe(y)))return co(a,HT(c,_,n.mapper))}return n}function oOe(n){return!!(n.flags&2097152)&&Jn(n.types,l1)}function vge(n){let a;return!!(n.flags&8388608&&Wr(a=n.objectType)&32&&!Hd(a)&&UT(n.indexType)&&!(Wh(a)&8)&&!a.declaration.nameType)}function Md(n){let a=n.flags&465829888?Bu(n)||mn:n,c=Wr(a);return c&32?iOe(a):c&4&&a!==n?qp(a,n):a.flags&2097152?pst(a,n):a.flags&402653316?$l:a.flags&296?vc:a.flags&2112?$st():a.flags&528?cl:a.flags&12288?MOe():a.flags&67108864?Pa:a.flags&4194304?Fs:a.flags&2&&!Y?Pa:a}function jP(n){return __(Md(__(n)))}function aOe(n,a,c){var d,_,y;let x,L,z,U=n.flags&1048576,re,be=4,ge=U?0:8,Je=!1;for(let Zn of n.types){let Hn=Md(Zn);if(!(qt(Hn)||Hn.flags&131072)){let er=ba(Hn,a,c),Mo=er?If(er):0;if(er){if(er.flags&106500&&(re??(re=U?0:16777216),U?re|=er.flags&16777216:re&=er.flags),!x)x=er;else if(er!==x)if((MD(er)||er)===(MD(x)||x)&&Eve(x,er,(jo,vo)=>jo===vo?-1:0)===-1)Je=!!x.parent&&!!De(kr(x.parent));else{L||(L=new Map,L.set(Ta(x),x));let jo=Ta(er);L.has(jo)||L.set(jo,er)}U&&y_(er)?ge|=8:!U&&!y_(er)&&(ge&=-9),ge|=(Mo&6?0:256)|(Mo&4?512:0)|(Mo&2?1024:0)|(Mo&256?2048:0),gye(er)||(be=2)}else if(U){let Ao=!y4(a)&&px(Hn,a);Ao?(ge|=32|(Ao.isReadonly?8:0),z=In(z,Wa(Hn)?dee(Hn)||Oe:Ao.type)):d1(Hn)&&!(Wr(Hn)&2097152)?(ge|=32,z=In(z,Oe)):ge|=16}}}if(!x||U&&(L||ge&48)&&ge&1536&&!(L&&_st(L.values())))return;if(!L&&!(ge&16)&&!z)if(Je){let Zn=(d=ai(x,fh))==null?void 0:d.links,Hn=JT(x,Zn?.type);return Hn.parent=(y=(_=x.valueDeclaration)==null?void 0:_.symbol)==null?void 0:y.parent,Hn.links.containingType=n,Hn.links.mapper=Zn?.mapper,Hn.links.writeType=ME(x),Hn}else return x;let vt=L?Vo(L.values()):[x],Rt,sn,un,sr=[],Ln,cn,Fn=!1;for(let Zn of vt){cn?Zn.valueDeclaration&&Zn.valueDeclaration!==cn&&(Fn=!0):cn=Zn.valueDeclaration,Rt=Jr(Rt,Zn.declarations);let Hn=pr(Zn);sn||(sn=Hn,un=$i(Zn).nameType);let er=ME(Zn);(Ln||er!==Hn)&&(Ln=In(Ln||sr.slice(),er)),Hn!==sn&&(ge|=64),(w4(Hn)||VT(Hn))&&(ge|=128),Hn.flags&131072&&Hn!==uu&&(ge|=131072),sr.push(Hn)}Jr(sr,z);let kn=Xa(4|(re??0),a,be|ge);return kn.links.containingType=n,!Fn&&cn&&(kn.valueDeclaration=cn,cn.symbol.parent&&(kn.parent=cn.symbol.parent)),kn.declarations=Rt,kn.links.nameType=un,sr.length>2?(kn.links.checkFlags|=65536,kn.links.deferralParent=n,kn.links.deferralConstituents=sr,kn.links.deferralWriteConstituents=Ln):(kn.links.type=U?ii(sr):Ea(sr),Ln&&(kn.links.writeType=U?ii(Ln):Ea(Ln))),kn}function sOe(n,a,c){var d,_,y;let x=c?(d=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:d.get(a):(_=n.propertyCache)==null?void 0:_.get(a);return x||(x=aOe(n,a,c),x&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=ua()):n.propertyCache||(n.propertyCache=ua())).set(a,x),c&&!(Al(x)&48)&&!((y=n.propertyCache)!=null&&y.get(a))&&(n.propertyCache||(n.propertyCache=ua())).set(a,x))),x}function _st(n){let a;for(let c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(d=>{wr(c.declarations,d)||a.delete(d)}),a.size===0)return}return a}function _z(n,a,c){let d=sOe(n,a,c);return d&&!(Al(d)&16)?d:void 0}function __(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=hst(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(Et(fz(n),gst)?33554432:0)),n.objectFlags&33554432?Vr:n):n}function hst(n){let a=Io(n.types,__);if(a===n.types)return n;let c=ii(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function gst(n){return lOe(n)||cOe(n)}function lOe(n){return!(n.flags&16777216)&&(Al(n)&131264)===192&&!!(pr(n).flags&131072)}function cOe(n){return!n.valueDeclaration&&!!(Al(n)&1024)}function yge(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&Et(n.types,yge)||n.flags&2097152&&vst(n))}function vst(n){let a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=co(n,yo));return __(a)!==a}function bge(n,a){if(a.flags&2097152&&Wr(a)&33554432){let c=vn(fz(a),lOe);if(c)return Uo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,jn(a,void 0,536870912),Ai(c));let d=vn(fz(a),cOe);if(d)return Uo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,jn(a,void 0,536870912),Ai(d))}return n}function ba(n,a,c,d){var _,y;if(n=jP(n),n.flags&524288){let x=m_(n),L=x.members.get(a);if(L&&!d&&((_=n.symbol)==null?void 0:_.flags)&512&&((y=$i(n.symbol).typeOnlyExportStarMap)!=null&&y.has(a)))return;if(L&&Bm(L,d))return L;if(c)return;let z=x===on?wt:x.callSignatures.length?qn:x.constructSignatures.length?So:void 0;if(z){let U=n1(z,a);if(U)return U}return n1(Pe,a)}if(n.flags&2097152){let x=_z(n,a,!0);return x||(c?void 0:_z(n,a,c))}if(n.flags&1048576)return _z(n,a,c)}function hz(n,a){if(n.flags&3670016){let c=m_(n);return a===0?c.callSignatures:c.constructSignatures}return et}function Yo(n,a){let c=hz(jP(n),a);if(a===0&&!De(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let d;if(cp(n,_=>{var y;return!!((y=_.symbol)!=null&&y.parent)&&yst(_.symbol.parent)&&(d?d===_.symbol.escapedName:(d=_.symbol.escapedName,!0))})){let _=ul(n,x=>zb((uOe(x.symbol.parent)?na:Qo).typeParameters[0],x.mapper)),y=Gu(_,jm(n,x=>uOe(x.symbol.parent)));return n.arrayFallbackSignatures=Yo(Xe(y,d),a)}n.arrayFallbackSignatures=c}return c}function yst(n){return!n||!Qo.symbol||!na.symbol?!1:!!c_(n,Qo.symbol)||!!c_(n,na.symbol)}function uOe(n){return!n||!na.symbol?!1:!!c_(n,na.symbol)}function Ege(n,a){return vn(n,c=>c.keyType===a)}function Sge(n,a){let c,d,_;for(let y of n)y.keyType===ke?c=y:dx(a,y.keyType)&&(d?(_||(_=[d])).push(y):d=y);return _?Bh(mn,Ea(Ft(_,y=>y.type)),nd(_,(y,x)=>y&&x.isReadonly,!0)):d||(c&&dx(a,ke)?c:void 0)}function dx(n,a){return Sa(n,a)||a===ke&&Sa(n,Dt)||a===Dt&&(n===ds||!!(n.flags&128)&&sg(n.value))}function Tge(n){return n.flags&3670016?m_(n).indexInfos:et}function hd(n){return Tge(jP(n))}function Ag(n,a){return Ege(hd(n),a)}function r1(n,a){var c;return(c=Ag(n,a))==null?void 0:c.type}function Age(n,a){return hd(n).filter(c=>dx(a,c.keyType))}function E4(n,a){return Sge(hd(n),a)}function px(n,a){return E4(n,y4(a)?Di:qd(Hi(a)))}function dOe(n){var a;let c;for(let d of Py(n))c=Ng(c,wT(d.symbol));return c?.length?c:Sc(n)?(a=UP(n))==null?void 0:a.typeParameters:void 0}function Ige(n){let a=[];return n.forEach((c,d)=>{DE(d)||a.push(c)}),a}function kZ(n,a){if(Yc(n))return;let c=Ud(Se,'"'+n+'"',512);return c&&a?is(c):c}function S4(n){if(LA(n)||vk(n)||yk(n))return!0;if(n.initializer){let c=pm(n.parent),d=n.parent.parameters.indexOf(n);return C.assert(d>=0),d>=nh(c,3)}let a=vS(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=qee(a).length:!1}function bst(n){return Jo(n)&&!C_(n)&&n.questionToken}function gz(n,a,c,d){return{kind:n,parameterName:a,parameterIndex:c,type:d}}function zh(n){let a=0;if(n)for(let c=0;c=c&&y<=_){let x=n?n.slice():[];for(let z=y;z<_;z++)x[z]=ht;let L=Bve(d);for(let z=y;z<_;z++){let U=zT(a[z]);d&&U&&(hv(U,mn)||hv(U,Pa))&&(U=j),x[z]=U?co(U,Mp(a,x)):L}return x.length=a.length,x}return n&&n.slice()}function pm(n){let a=ti(n);if(!a.resolvedSignature){let c=[],d=0,_=0,y,x=cr(n)?h6(n):void 0,L=!1,z=vS(n),U=pR(n);!z&&cr(n)&&Oie(n)&&!_re(n)&&!i0(n)&&(d|=32);for(let vt=U?1:0;vtz.arguments.length&&!un||yk(Rt)||(_=c.length)}if((n.kind===177||n.kind===178)&&mD(n)&&(!L||!y)){let vt=n.kind===177?178:177,Rt=dl(Rr(n),vt);Rt&&(y=IZ(Rt))}x&&x.typeExpression&&(y=JT(Xa(1,"this"),Ii(x.typeExpression)));let be=b0(n)?d0(n):n,ge=be&&Pl(be)?zf(is(be.parent.symbol)):void 0,Je=ge?ge.localTypeParameters:dOe(n);(nj(n)||cr(n)&&Est(n,c))&&(d|=1),(OR(n)&&ei(n,64)||Pl(n)&&ei(n.parent,64))&&(d|=4),a.resolvedSignature=Tg(n,Je,y,c,void 0,void 0,_,d)}return a.resolvedSignature}function Est(n,a){if(b0(n)||!xge(n))return!1;let c=Zs(n.parameters),d=c?jx(c):o0(n).filter(n_),_=Zt(d,x=>x.typeExpression&&r5(x.typeExpression.type)?x.typeExpression.type:void 0),y=Xa(3,"args",32768);return _?y.links.type=Gu(Ii(_.type)):(y.links.checkFlags|=65536,y.links.deferralParent=Vr,y.links.deferralConstituents=[Ql],y.links.deferralWriteConstituents=[Ql]),_&&a.pop(),a.push(y),!0}function UP(n){if(!(cr(n)&&zs(n)))return;let a=r0(n);return a?.typeExpression&&tA(Ii(a.typeExpression))}function Sst(n,a){let c=UP(n);if(!c)return;let d=n.parameters.indexOf(a);return a.dotDotDotToken?sB(c,d):v_(c,d)}function Tst(n){let a=UP(n);return a&&ms(a)}function xge(n){let a=ti(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(d){if(!d)return!1;switch(d.kind){case 80:return d.escapedText===Bt.escapedName&&i8(d)===Bt;case 172:case 174:case 177:case 178:return d.name.kind===167&&c(d.name);case 211:case 212:return c(d.expression);case 303:return c(d.initializer);default:return!Jj(d)&&!Zh(d)&&!!Ho(d,c)}}}function LE(n){if(!n||!n.declarations)return et;let a=[];for(let c=0;c0&&d.body){let _=n.declarations[c-1];if(d.parent===_.parent&&d.kind===_.kind&&d.pos===_.end)continue}if(cr(d)&&d.jsDoc){let _=Fj(d);if(De(_)){for(let y of _){let x=y.typeExpression;x.type===void 0&&!Pl(d)&&c1(x,j),a.push(pm(x))}continue}}a.push(!B1(d)&&!Im(d)&&UP(d)||pm(d))}}return a}function pOe(n){let a=_d(n,n);if(a){let c=Rp(a);if(c)return pr(c)}return j}function i1(n){if(n.thisParameter)return pr(n.thisParameter)}function Bf(n){if(!n.resolvedTypePredicate){if(n.target){let a=Bf(n.target);n.resolvedTypePredicate=a?sct(a,n.mapper):we}else if(n.compositeSignatures)n.resolvedTypePredicate=Slt(n.compositeSignatures,n.compositeKind)||we;else{let a=n.declaration&&tm(n.declaration),c;if(!a){let d=UP(n.declaration);d&&n!==d&&(c=Bf(d))}n.resolvedTypePredicate=a&&Bk(a)?Ast(a,n):c||we}C.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===we?void 0:n.resolvedTypePredicate}function Ast(n,a){let c=n.parameterName,d=n.type&&Ii(n.type);return c.kind===197?gz(n.assertsModifier?2:0,void 0,void 0,d):gz(n.assertsModifier?3:1,c.escapedText,ri(a.parameters,_=>_.escapedName===c.escapedText),d)}function fOe(n,a,c){return a!==2097152?ii(n,c):Ea(n)}function ms(n){if(!n.resolvedReturnType){if(!Oh(n,3))return ht;let a=n.target?co(ms(n.target),n.mapper):n.compositeSignatures?co(fOe(Ft(n.compositeSignatures,ms),n.compositeKind,2),n.mapper):hD(n.declaration)||(Fl(n.declaration.body)?j:Yee(n.declaration));if(n.flags&8?a=J4e(a):n.flags&16&&(a=jb(a)),!X_()){if(n.declaration){let c=tm(n.declaration);if(c)qe(c,f.Return_type_annotation_circularly_references_itself);else if(me){let d=n.declaration,_=Oo(d);_?qe(_,f._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,Ds(_)):qe(d,f.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)}}a=j}n.resolvedReturnType=a}return n.resolvedReturnType}function hD(n){if(n.kind===176)return zf(is(n.parent.symbol));let a=tm(n);if(b0(n)){let c=fR(n);if(c&&Pl(c.parent)&&!a)return zf(is(c.parent.parent.symbol))}if(pR(n))return Ii(n.parameters[0].type);if(a)return Ii(a);if(n.kind===177&&mD(n)){let c=cr(n)&&lv(n);if(c)return c;let d=dl(Rr(n),178),_=Z0(d);if(_)return _}return Tst(n)}function wZ(n){return n.compositeSignatures&&Et(n.compositeSignatures,wZ)||!n.resolvedReturnType&&cx(n,3)>=0}function Ist(n){return mOe(n)||j}function mOe(n){if(Xu(n)){let a=pr(n.parameters[n.parameters.length-1]),c=Wa(a)?dee(a):a;return c&&r1(c,Dt)}}function T4(n,a,c,d){let _=Rge(n,wb(a,n.typeParameters,zh(n.typeParameters),c));if(d){let y=x6e(ms(_));if(y){let x=b4(y);x.typeParameters=d;let L=b4(_);return L.resolvedReturnType=BT(x),L}}return _}function Rge(n,a){let c=n.instantiations||(n.instantiations=new Map),d=fm(a),_=c.get(d);return _||c.set(d,_=OZ(n,a)),_}function OZ(n,a){return TD(n,xst(n,a),!0)}function xst(n,a){return Mp(n.typeParameters,a)}function A4(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Rst(n)):n}function Rst(n){return TD(n,g4e(n.typeParameters),!0)}function Dst(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Cst(n)):n}function Cst(n){return T4(n,Ft(n.typeParameters,a=>a.target&&!Pd(a.target)?a.target:a),cr(n.declaration))}function Nst(n){let a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;let c=g4e(a),d=Mp(a,Ft(a,y=>Pd(y)||mn)),_=Ft(a,y=>co(y,d)||mn);for(let y=0;y{WZ(_)&&!Ege(a,_)&&a.push(Bh(_,c.type?Ii(c.type):j,_p(c,8),c))})}return a}return et}function WZ(n){return!!(n.flags&4108)||VT(n)||!!(n.flags&2097152)&&!ED(n)&&Et(n.types,WZ)}function Nge(n){return Vi(tr(n.symbol&&n.symbol.declarations,_l),Ux)[0]}function hOe(n,a){var c;let d;if((c=n.symbol)!=null&&c.declarations){for(let _ of n.symbol.declarations)if(_.parent.kind===195){let[y=_.parent,x]=Fie(_.parent.parent);if(x.kind===183&&!a){let L=x,z=ebe(L);if(z){let U=L.typeArguments.indexOf(y);if(U()=>Hmt(L,z,vt))),ge=co(re,be);ge!==n&&(d=In(d,ge))}}}}else if(x.kind===169&&x.dotDotDotToken||x.kind===191||x.kind===202&&x.dotDotDotToken)d=In(d,Gu(mn));else if(x.kind===204)d=In(d,ke);else if(x.kind===168&&x.parent.kind===200)d=In(d,Fs);else if(x.kind===200&&x.type&&vs(x.type)===_.parent&&x.parent.kind===194&&x.parent.extendsType===x&&x.parent.checkType.kind===200&&x.parent.checkType.type){let L=x.parent.checkType,z=Ii(L.type);d=In(d,co(z,WE(wT(Rr(L.typeParameter)),L.typeParameter.constraint?Ii(L.typeParameter.constraint):Fs)))}}}return d&&Ea(d)}function HP(n){if(!n.constraint)if(n.target){let a=Pd(n.target);n.constraint=a?co(a,n.mapper):Vs}else{let a=Nge(n);if(!a)n.constraint=hOe(n)||Vs;else{let c=Ii(a);c.flags&1&&!qt(c)&&(c=a.parent.parent.kind===200?Fs:mn),n.constraint=c}}return n.constraint===Vs?void 0:n.constraint}function gOe(n){let a=dl(n.symbol,168),c=am(a.parent)?p3(a.parent):a.parent;return c&&ff(c)}function fm(n){let a="";if(n){let c=n.length,d=0;for(;d1&&(a+=":"+y),d+=y}}return a}function fx(n,a){return n?`@${Ta(n)}`+(a?`:${fm(a)}`:""):""}function zZ(n,a){let c=0;for(let d of n)(a===void 0||!(d.flags&a))&&(c|=Wr(d));return c&458752}function gD(n,a){return Et(a)&&n===Wo?mn:fy(n,a)}function fy(n,a){let c=fm(a),d=n.instantiations.get(c);return d||(d=Of(4,n.symbol),n.instantiations.set(c,d),d.objectFlags|=a?zZ(a):0,d.target=n,d.resolvedTypeArguments=a),d}function vOe(n){let a=Eg(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function Pge(n,a,c,d,_){if(!d){d=_x(a);let x=SD(d);_=c?hy(x,c):x}let y=Of(4,n.symbol);return y.target=n,y.node=a,y.mapper=c,y.aliasSymbol=d,y.aliasTypeArguments=_,y}function qs(n){var a,c;if(!n.resolvedTypeArguments){if(!Oh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>ht))||et;let d=n.node,_=d?d.kind===183?xo(n.target.outerTypeParameters,tte(d,n.target.localTypeParameters)):d.kind===188?[Ii(d.elementType)]:Ft(d.elements,Ii):et;X_()?n.resolvedTypeArguments=n.mapper?hy(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>ht))||et,qe(n.node||N,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Ai(n.target.symbol)))}return n.resolvedTypeArguments}function my(n){return De(n.target.typeParameters)}function yOe(n,a){let c=Qs(is(a)),d=c.localTypeParameters;if(d){let _=De(n.typeArguments),y=zh(d),x=cr(n);if(!(!me&&x)&&(_d.length)){let U=x&&Hv(n)&&!fI(n.parent),re=y===d.length?U?f.Expected_0_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_1_type_argument_s:U?f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_between_1_and_2_type_arguments,be=jn(c,void 0,2);if(qe(n,re,be,y,d.length),!x)return ht}if(n.kind===183&&zOe(n,De(n.typeArguments)!==d.length))return Pge(c,n,void 0);let z=xo(c.outerTypeParameters,wb(vz(n),d,y,x));return fy(c,z)}return kE(n,a)?c:ht}function vD(n,a,c,d){let _=Qs(n);if(_===fn){let U=J5.get(n.escapedName);if(U!==void 0&&a&&a.length===1)return U===4?Mge(a[0]):mx(n,a[0])}let y=$i(n),x=y.typeParameters,L=fm(a)+fx(c,d),z=y.instantiations.get(L);return z||y.instantiations.set(L,z=b4e(_,Mp(x,wb(a,x,zh(x),cr(n.valueDeclaration))),c,d)),z}function Pst(n,a){if(Al(a)&1048576){let _=vz(n),y=fx(a,_),x=We.get(y);return x||(x=lc(1,"error",void 0,`alias ${y}`),x.aliasSymbol=a,x.aliasTypeArguments=_,We.set(y,x)),x}let c=Qs(a),d=$i(a).typeParameters;if(d){let _=De(n.typeArguments),y=zh(d);if(_d.length)return qe(n,y===d.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,Ai(a),y,d.length),ht;let x=_x(n),L=x&&(bOe(a)||!bOe(x))?x:void 0,z;if(L)z=SD(L);else if(P6(n)){let U=yD(n,2097152,!0);if(U&&U!==ft){let re=Fc(U);re&&re.flags&524288&&(L=re,z=vz(n)||(d?[]:void 0))}}return vD(a,vz(n),L,z)}return kE(n,a)?c:ht}function bOe(n){var a;let c=(a=n.declarations)==null?void 0:a.find(UL);return!!(c&&zp(c))}function Mst(n){switch(n.kind){case 183:return n.typeName;case 233:let a=n.expression;if(zl(a))return a}}function EOe(n){return n.parent?`${EOe(n.parent)}.${n.escapedName}`:n.escapedName}function BZ(n){let c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){let d=n.kind===166?BZ(n.left):n.kind===211?BZ(n.expression):void 0,_=d?`${EOe(d)}.${c}`:c,y=le.get(_);return y||(le.set(_,y=Xa(524288,c,1048576)),y.parent=d,y.links.declaredType=Vt),y}return ft}function yD(n,a,c){let d=Mst(n);if(!d)return ft;let _=Us(d,a,c);return _&&_!==ft?_:c?ft:BZ(d)}function GZ(n,a){if(a===ft)return ht;if(a=OP(a)||a,a.flags&96)return yOe(n,a);if(a.flags&524288)return Pst(n,a);let c=Wwe(a);if(c)return kE(n,a)?vd(c):ht;if(a.flags&111551&&VZ(n)){let d=Lst(n,a);return d||(yD(n,788968),pr(a))}return ht}function Lst(n,a){let c=ti(n);if(!c.resolvedJSDocType){let d=pr(a),_=d;if(a.valueDeclaration){let y=n.kind===205&&n.qualifier;d.symbol&&d.symbol!==a&&y&&(_=GZ(n,d.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function Mge(n){return Lge(n)?SOe(n,mn):n}function Lge(n){return!!(n.flags&3145728&&Et(n.types,Lge)||n.flags&33554432&&!qP(n)&&Lge(n.baseType)||n.flags&524288&&!Vh(n)||n.flags&432275456&&!VT(n))}function qP(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function kge(n,a){return a.flags&3||a===n||n.flags&1?n:SOe(n,a)}function SOe(n,a){let c=`${gd(n)}>${gd(a)}`,d=No.get(c);if(d)return d;let _=bg(33554432);return _.baseType=n,_.constraint=a,No.set(c,_),_}function wge(n){return qP(n)?n.baseType:Ea([n.constraint,n.baseType])}function TOe(n){return n.kind===189&&n.elements.length===1}function AOe(n,a,c){return TOe(a)&&TOe(c)?AOe(n,a.elements[0],c.elements[0]):Wb(Ii(a))===Wb(n)?Ii(c):void 0}function kst(n,a){let c,d=!0;for(;a&&!Ki(a)&&a.kind!==327;){let _=a.parent;if(_.kind===169&&(d=!d),(d||n.flags&8650752)&&_.kind===194&&a===_.trueType){let y=AOe(n,_.checkType,_.extendsType);y&&(c=In(c,y))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){let y=Ii(_);if(f_(y)===Wb(n)){let x=N4(y);if(x){let L=Pd(x);L&&cp(L,l1)&&(c=In(c,ii([Dt,ds])))}}}a=_}return c?kge(n,Ea(c)):n}function VZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function kE(n,a){return n.typeArguments?(qe(n,f.Type_0_is_not_generic,a?Ai(a):n.typeName?Ds(n.typeName):j5),!1):!0}function IOe(n){if(Ve(n.typeName)){let a=n.typeArguments;switch(n.typeName.escapedText){case"String":return kE(n),ke;case"Number":return kE(n),Dt;case"Boolean":return kE(n),yi;case"Void":return kE(n),or;case"Undefined":return kE(n),Oe;case"Null":return kE(n),pe;case"Function":case"function":return kE(n),wt;case"array":return(!a||!a.length)&&!me?Ql:void 0;case"promise":return(!a||!a.length)&&!me?cB(j):void 0;case"Object":if(a&&a.length===2){if(o3(n)){let c=Ii(a[0]),d=Ii(a[1]),_=c===ke||c===Dt?[Bh(c,d,!1)]:et;return Ls(void 0,K,et,et,_)}return j}return kE(n),me?void 0:j}}}function wst(n){let a=Ii(n.type);return Y?Oz(a,65536):a}function Oge(n){let a=ti(n);if(!a.resolvedType){if(kg(n)&&pS(n.parent))return a.resolvedSymbol=ft,a.resolvedType=ec(n.parent.expression);let c,d,_=788968;VZ(n)&&(d=IOe(n),d||(c=yD(n,_,!0),c===ft?c=yD(n,_|111551):yD(n,_),d=GZ(n,c))),d||(c=yD(n,_),d=GZ(n,c)),a.resolvedSymbol=c,a.resolvedType=d}return a.resolvedType}function vz(n){return Ft(n.typeArguments,Ii)}function xOe(n){let a=ti(n);if(!a.resolvedType){let c=q6e(n);a.resolvedType=vd(Jp(c))}return a.resolvedType}function ROe(n,a){function c(_){let y=_.declarations;if(y)for(let x of y)switch(x.kind){case 263:case 264:case 266:return x}}if(!n)return a?Wo:Pa;let d=Qs(n);return d.flags&524288?De(d.typeParameters)!==a?(qe(c(n),f.Global_type_0_must_have_1_type_parameter_s,bl(n),a),a?Wo:Pa):d:(qe(c(n),f.Global_type_0_must_be_a_class_or_interface_type,bl(n)),a?Wo:Pa)}function Fge(n,a){return JP(n,111551,a?f.Cannot_find_global_value_0:void 0)}function Wge(n,a){return JP(n,788968,a?f.Cannot_find_global_type_0:void 0)}function jZ(n,a,c){let d=JP(n,788968,c?f.Cannot_find_global_type_0:void 0);if(d&&(Qs(d),De($i(d).typeParameters)!==a)){let _=d.declarations&&vn(d.declarations,Dm);qe(_,f.Global_type_0_must_have_1_type_parameter_s,bl(d),a);return}return d}function JP(n,a,c){return vl(void 0,n,a,c,n,!1,!1,!1)}function Zl(n,a,c){let d=Wge(n,c);return d||c?ROe(d,a):void 0}function Ost(){return Dh||(Dh=Zl("TypedPropertyDescriptor",1,!0)||Wo)}function Fst(){return rr||(rr=Zl("TemplateStringsArray",0,!0)||Pa)}function DOe(){return si||(si=Zl("ImportMeta",0,!0)||Pa)}function COe(){if(!$r){let n=Xa(0,"ImportMetaExpression"),a=DOe(),c=Xa(4,"meta",8);c.parent=n,c.links.type=a;let d=ua([c]);n.members=d,$r=Ls(n,d,et,et,et)}return $r}function NOe(n){return so||(so=Zl("ImportCallOptions",0,n))||Pa}function zge(n){return Oa||(Oa=Zl("ImportAttributes",0,n))||Pa}function POe(n){return Dd||(Dd=Fge("Symbol",n))}function Wst(n){return Lf||(Lf=Wge("SymbolConstructor",n))}function MOe(){return j_||(j_=Zl("Symbol",0,!1))||Pa}function yz(n){return Xg||(Xg=Zl("Promise",1,n))||Wo}function LOe(n){return zu||(zu=Zl("PromiseLike",1,n))||Wo}function Bge(n){return Yg||(Yg=Fge("Promise",n))}function zst(n){return Ap||(Ap=Zl("PromiseConstructorLike",0,n))||Pa}function UZ(n){return W||(W=Zl("AsyncIterable",1,n))||Wo}function Bst(n){return Ae||(Ae=Zl("AsyncIterator",3,n))||Wo}function Gst(n){return st||(st=Zl("AsyncIterableIterator",1,n))||Wo}function Vst(n){return Ht||(Ht=Zl("AsyncGenerator",3,n))||Wo}function Gge(n){return fg||(fg=Zl("Iterable",1,n))||Wo}function jst(n){return Gd||(Gd=Zl("Iterator",3,n))||Wo}function Ust(n){return te||(te=Zl("IterableIterator",1,n))||Wo}function Hst(n){return lt||(lt=Zl("Generator",3,n))||Wo}function qst(n){return Wt||(Wt=Zl("IteratorYieldResult",1,n))||Wo}function Jst(n){return jt||(jt=Zl("IteratorReturnResult",1,n))||Wo}function kOe(n){return Fa||(Fa=Zl("Disposable",0,n))||Pa}function Kst(n){return wl||(wl=Zl("AsyncDisposable",0,n))||Pa}function wOe(n,a=0){let c=JP(n,788968,void 0);return c&&ROe(c,a)}function Xst(){return fu||(fu=jZ("Extract",2,!0)||ft),fu===ft?void 0:fu}function Yst(){return xc||(xc=jZ("Omit",2,!0)||ft),xc===ft?void 0:xc}function Vge(n){return Ip||(Ip=jZ("Awaited",1,n)||(n?ft:void 0)),Ip===ft?void 0:Ip}function $st(){return Vd||(Vd=Zl("BigInt",0,!1))||Pa}function Qst(n){return Lm??(Lm=Zl("ClassDecoratorContext",1,n))??Wo}function Zst(n){return km??(km=Zl("ClassMethodDecoratorContext",2,n))??Wo}function elt(n){return Ji??(Ji=Zl("ClassGetterDecoratorContext",2,n))??Wo}function tlt(n){return $g??($g=Zl("ClassSetterDecoratorContext",2,n))??Wo}function nlt(n){return ry??(ry=Zl("ClassAccessorDecoratorContext",2,n))??Wo}function rlt(n){return wm??(wm=Zl("ClassAccessorDecoratorTarget",2,n))??Wo}function ilt(n){return mE??(mE=Zl("ClassAccessorDecoratorResult",2,n))??Wo}function olt(n){return _E??(_E=Zl("ClassFieldDecoratorContext",2,n))??Wo}function alt(){return cb||(cb=Fge("NaN",!1))}function slt(){return ps||(ps=jZ("Record",2,!0)||ft),ps===ft?void 0:ps}function I4(n,a){return n!==Wo?fy(n,a):Pa}function OOe(n){return I4(Ost(),[n])}function FOe(n){return I4(Gge(!0),[n])}function Gu(n,a){return I4(a?na:Qo,[n])}function jge(n){switch(n.kind){case 190:return 2;case 191:return WOe(n);case 202:return n.questionToken?2:n.dotDotDotToken?WOe(n):1;default:return 1}}function WOe(n){return Az(n.type)?4:8}function llt(n){let a=dlt(n.parent);if(Az(n))return a?na:Qo;let d=Ft(n.elements,jge);return Uge(d,a,Ft(n.elements,clt))}function clt(n){return FR(n)||Co(n)?n:void 0}function zOe(n,a){return!!_x(n)||BOe(n)&&(n.kind===188?Ob(n.elementType):n.kind===189?Et(n.elements,Ob):a||Et(n.typeArguments,Ob))}function BOe(n){let a=n.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return BOe(a);case 265:return!0}return!1}function Ob(n){switch(n.kind){case 183:return VZ(n)||!!(yD(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Ob(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Ob(n.type);case 191:return n.type.kind!==188||Ob(n.type.elementType);case 192:case 193:return Et(n.types,Ob);case 199:return Ob(n.objectType)||Ob(n.indexType);case 194:return Ob(n.checkType)||Ob(n.extendsType)||Ob(n.trueType)||Ob(n.falseType)}return!1}function ult(n){let a=ti(n);if(!a.resolvedType){let c=llt(n);if(c===Wo)a.resolvedType=Pa;else if(!(n.kind===189&&Et(n.elements,d=>!!(jge(d)&8)))&&zOe(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:Pge(c,n,void 0);else{let d=n.kind===188?[Ii(n.elementType)]:Ft(n.elements,Ii);a.resolvedType=Hge(c,d)}}return a.resolvedType}function dlt(n){return kS(n)&&n.operator===148}function Gh(n,a,c=!1,d=[]){let _=Uge(a||Ft(n,y=>1),c,d);return _===Wo?Pa:n.length?Hge(_,n):_}function Uge(n,a,c){if(n.length===1&&n[0]&4)return a?na:Qo;let d=Ft(n,y=>y&1?"#":y&2?"?":y&4?".":"*").join()+(a?"R":"")+(Et(c,y=>!!y)?","+Ft(c,y=>y?ss(y):"_").join(","):""),_=Ro.get(d);return _||Ro.set(d,_=plt(n,a,c)),_}function plt(n,a,c){let d=n.length,_=au(n,be=>!!(be&9)),y,x=[],L=0;if(d){y=new Array(d);for(let be=0;be!!(n.elementFlags[sn]&8&&Rt.flags&1179648));if(vt>=0)return Ez(Ft(a,(Rt,sn)=>n.elementFlags[sn]&8?Rt:mn))?ul(a[vt],Rt=>qge(n,rG(a,vt,Rt))):ht}let x=[],L=[],z=[],U=-1,re=-1,be=-1;for(let vt=0;vt=1e4)return qe(N,Zh(N)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),ht;Ke(un,(sr,Ln)=>{var cn;return Je(sr,Rt.target.elementFlags[Ln],(cn=Rt.target.labeledElementDeclarations)==null?void 0:cn[Ln])})}else Je(gy(Rt)&&r1(Rt,Dt)||ht,4,(_=n.labeledElementDeclarations)==null?void 0:_[vt]);else Je(Rt,sn,(y=n.labeledElementDeclarations)==null?void 0:y[vt])}for(let vt=0;vt=0&&reL[re+Rt]&8?Pp(vt,Dt):vt)),x.splice(re+1,be-re),L.splice(re+1,be-re),z.splice(re+1,be-re));let ge=Uge(L,n.readonly,z);return ge===Wo?Pa:L.length?fy(ge,x):ge;function Je(vt,Rt,sn){Rt&1&&(U=L.length),Rt&4&&re<0&&(re=L.length),Rt&6&&(be=L.length),x.push(Rt&2?lp(vt,!0):vt),L.push(Rt),z.push(sn)}}function KP(n,a,c=0){let d=n.target,_=my(n)-c;return a>d.fixedLength?Qct(n)||Gh(et):Gh(qs(n).slice(a,_),d.elementFlags.slice(a,_),!1,d.labeledElementDeclarations&&d.labeledElementDeclarations.slice(a,_))}function GOe(n){return ii(In(hne(n.target.fixedLength,a=>qd(""+a)),$_(n.target.readonly?na:Qo)))}function flt(n,a){let c=ri(n.elementFlags,d=>!(d&a));return c>=0?c:n.elementFlags.length}function x4(n,a){return n.elementFlags.length-to(n.elementFlags,c=>!(c&a))-1}function Jge(n){return n.fixedLength+x4(n,3)}function wE(n){let a=qs(n),c=my(n);return a.length===c?a:a.slice(0,c)}function mlt(n){return lp(Ii(n.type),!0)}function gd(n){return n.id}function mv(n,a){return xv(n,a,gd,tl)>=0}function bz(n,a){let c=xv(n,a,gd,tl);return c<0?(n.splice(~c,0,a),!0):!1}function _lt(n,a,c){let d=c.flags;if(!(d&131072))if(a|=d&473694207,d&465829888&&(a|=33554432),d&2097152&&Wr(c)&67108864&&(a|=536870912),c===xt&&(a|=8388608),!Y&&d&98304)Wr(c)&65536||(a|=4194304);else{let _=n.length,y=_&&c.id>n[_-1].id?~_:xv(n,c,gd,tl);y<0&&n.splice(~y,0,c)}return a}function VOe(n,a,c){let d;for(let _ of c)_!==d&&(a=_.flags&1048576?VOe(n,a|(Elt(_)?1048576:0),_.types):_lt(n,a,_),d=_);return a}function hlt(n,a){var c;if(n.length<2)return n;let d=fm(n),_=_a.get(d);if(_)return _;let y=a&&Et(n,U=>!!(U.flags&524288)&&!Hd(U)&&_ve(m_(U))),x=n.length,L=x,z=0;for(;L>0;){L--;let U=n[L];if(y||U.flags&469499904){if(U.flags&262144&&fv(U).flags&1048576){Q_(U,ii(Ft(n,ge=>ge===U?Vr:ge)),kf)&&Iy(n,L);continue}let re=U.flags&61603840?vn(ys(U),ge=>g_(pr(ge))):void 0,be=re&&vd(pr(re));for(let ge of n)if(U!==ge){if(z===1e5&&z/(x-L)*x>1e6){(c=lr)==null||c.instant(lr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(vt=>vt.id)}),qe(N,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(z++,re&&ge.flags&61603840){let Je=Xe(ge,re.escapedName);if(Je&&g_(Je)&&vd(Je)!==be)continue}if(Q_(U,ge,kf)&&(!(Wr(dy(U))&1)||!(Wr(dy(ge))&1)||s1(U,ge))){Iy(n,L);break}}}}return _a.set(d,n),n}function glt(n,a,c){let d=n.length;for(;d>0;){d--;let _=n[d],y=_.flags;(y&402653312&&a&4||y&256&&a&8||y&2048&&a&64||y&8192&&a&4096||c&&y&32768&&a&16384||FE(_)&&mv(n,_.regularType))&&Iy(n,d)}}function vlt(n){let a=tr(n,VT);if(a.length){let c=n.length;for(;c>0;){c--;let d=n[c];d.flags&128&&Et(a,_=>ylt(d,_))&&Iy(n,c)}}}function ylt(n,a){return a.flags&134217728?Eee(n,a):bee(n,a)}function blt(n){let a=[];for(let c of n)if(c.flags&2097152&&Wr(c)&67108864){let d=c.types[0].flags&8650752?0:1;bf(a,c.types[d])}for(let c of a){let d=[];for(let y of n)if(y.flags&2097152&&Wr(y)&67108864){let x=y.types[0].flags&8650752?0:1;y.types[x]===c&&bz(d,y.types[1-x])}let _=Bu(c);if(cp(_,y=>mv(d,y))){let y=n.length;for(;y>0;){y--;let x=n[y];if(x.flags&2097152&&Wr(x)&67108864){let L=x.types[0].flags&8650752?0:1;x.types[L]===c&&mv(d,x.types[1-L])&&Iy(n,y)}}bz(n,c)}}}function Elt(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function jOe(n,a){for(let c of a)if(c.flags&1048576){let d=c.origin;c.aliasSymbol||d&&!(d.flags&1048576)?bf(n,c):d&&d.flags&1048576&&jOe(n,d.types)}}function Kge(n,a){let c=ax(n);return c.types=a,c}function ii(n,a=1,c,d,_){if(n.length===0)return Vr;if(n.length===1)return n[0];if(n.length===2&&!_&&(n[0].flags&1048576||n[1].flags&1048576)){let y=a===0?"N":a===2?"S":"L",x=n[0].id=2&&y[0]===Oe&&y[1]===w&&Iy(y,1),(x&402664352||x&16384&&x&32768)&&glt(y,x,!!(a&2)),x&128&&x&402653184&&vlt(y),x&536870912&&blt(y),a===2&&(y=hlt(y,!!(x&524288)),!y))return ht;if(y.length===0)return x&65536?x&4194304?pe:Ge:x&32768?x&4194304?Oe:Lt:Vr}if(!_&&x&1048576){let z=[];jOe(z,n);let U=[];for(let be of y)Et(z,ge=>mv(ge.types,be))||U.push(be);if(!c&&z.length===1&&U.length===0)return z[0];if(nd(z,(be,ge)=>be+ge.types.length,0)+U.length===y.length){for(let be of z)bz(U,be);_=Kge(1048576,U)}}let L=(x&36323331?0:32768)|(x&2097152?16777216:0);return Yge(y,L,c,d,_)}function Slt(n,a){let c,d=[];for(let y of n){let x=Bf(y);if(x){if(x.kind!==0&&x.kind!==1||c&&!Xge(c,x))return;c=x,d.push(x.type)}else{let L=a!==2097152?ms(y):void 0;if(L!==Kt&&L!==Tn)return}}if(!c)return;let _=fOe(d,a);return gz(c.kind,c.parameterName,c.parameterIndex,_)}function Xge(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Yge(n,a,c,d,_){if(n.length===0)return Vr;if(n.length===1)return n[0];let x=(_?_.flags&1048576?`|${fm(_.types)}`:_.flags&2097152?`&${fm(_.types)}`:`#${_.type.id}|${fm(n)}`:fm(n))+fx(c,d),L=nr.get(x);return L||(L=bg(1048576),L.objectFlags=a|zZ(n,98304),L.types=n,L.origin=_,L.aliasSymbol=c,L.aliasTypeArguments=d,n.length===2&&n[0].flags&512&&n[1].flags&512&&(L.flags|=16,L.intrinsicName="boolean"),nr.set(x,L)),L}function Tlt(n){let a=ti(n);if(!a.resolvedType){let c=_x(n);a.resolvedType=ii(Ft(n.types,Ii),1,c,SD(c))}return a.resolvedType}function Alt(n,a,c){let d=c.flags;return d&2097152?HOe(n,a,c.types):(Vh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(d&3?c===xt&&(a|=8388608):(Y||!(d&98304))&&(c===w&&(a|=262144,c=Oe),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=d&473694207),a)}function HOe(n,a,c){for(let d of c)a=Alt(n,a,vd(d));return a}function Ilt(n,a){let c=n.length;for(;c>0;){c--;let d=n[c];(d.flags&4&&a&402653312||d.flags&8&&a&256||d.flags&64&&a&2048||d.flags&4096&&a&8192||d.flags&16384&&a&32768||Vh(d)&&a&470302716)&&Iy(n,c)}}function xlt(n,a){for(let c of n)if(!mv(c.types,a)){let d=a.flags&128?ke:a.flags&288?Dt:a.flags&2048?Pt:a.flags&8192?Di:void 0;if(!d||!mv(c.types,d))return!1}return!0}function Rlt(n){let a=n.length,c=tr(n,d=>!!(d.flags&128));for(;a>0;){a--;let d=n[a];if(d.flags&402653184){for(let _ of c)if(Bb(_,d)){Iy(n,a);break}else if(VT(d))return!0}}return!1}function qOe(n,a){for(let c=0;c!(d.flags&a))}function Dlt(n){let a,c=ri(n,x=>!!(Wr(x)&32768));if(c<0)return!1;let d=c+1;for(;d!!(vt.flags&469893116)||Vh(vt))){if(Rz(Je,ge))return be;if(!(Je.flags&1048576&&jm(Je,vt=>Rz(vt,ge)))&&!Rz(ge,Je))return Vr;L=67108864}}}let z=fm(x)+fx(a,c),U=xr.get(z);if(!U){if(y&1048576)if(Dlt(x))U=Ea(x,a,c);else if(Jn(x,re=>!!(re.flags&1048576&&re.types[0].flags&32768))){let re=Et(x,F4)?w:Oe;qOe(x,32768),U=ii([Ea(x),re],1,a,c)}else if(Jn(x,re=>!!(re.flags&1048576&&(re.types[0].flags&65536||re.types[1].flags&65536))))qOe(x,65536),U=ii([Ea(x),pe],1,a,c);else if(x.length>=4){let re=Math.floor(x.length/2);U=Ea([Ea(x.slice(0,re)),Ea(x.slice(re))],a,c)}else{if(!Ez(x))return ht;let re=Nlt(x),be=Et(re,ge=>!!(ge.flags&2097152))&&$ge(re)>$ge(x)?Kge(2097152,x):void 0;U=ii(re,1,a,c,be)}else U=Clt(x,L,a,c);xr.set(z,U)}return U}function JOe(n){return nd(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function Ez(n){var a;let c=JOe(n);return c>=1e5?((a=lr)==null||a.instant(lr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(d=>d.id),size:c}),qe(N,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Nlt(n){let a=JOe(n),c=[];for(let d=0;d=0;L--)if(n[L].flags&1048576){let z=n[L].types,U=z.length;_[L]=z[y%U],y=Math.floor(y/U)}let x=Ea(_);x.flags&131072||c.push(x)}return c}function KOe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?KOe(n.origin):$ge(n.types)}function $ge(n){return nd(n,(a,c)=>a+KOe(c),0)}function Plt(n){let a=ti(n);if(!a.resolvedType){let c=_x(n),d=Ft(n.types,Ii),_=d.length===2?d.indexOf(sc):-1,y=_>=0?d[1-_]:mn,x=!!(y.flags&76||y.flags&134217728&&VT(y));a.resolvedType=Ea(d,c,SD(c),x)}return a.resolvedType}function XOe(n,a){let c=bg(4194304);return c.type=n,c.indexFlags=a,c}function Mlt(n){let a=ax(4194304);return a.type=n,a}function YOe(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=XOe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=XOe(n,0))}function $Oe(n,a){let c=f_(n),d=gf(n),_=py(n.target||n);if(!_&&!(a&2))return d;let y=[];if(UT(d)){if(_D(n))return YOe(n,a);$T(d,L)}else if(_D(n)){let z=Md(OT(n));pge(z,8576,!!(a&1),L)}else $T(pz(d),L);let x=a&2?uc(ii(y),z=>!(z.flags&5)):ii(y);if(x.flags&1048576&&d.flags&1048576&&fm(x.types)===fm(d.types))return d;return x;function L(z){let U=_?co(_,C4(n.mapper,c,z)):z;y.push(U===ke?Po:U)}}function Llt(n){let a=f_(n);return c(py(n)||a);function c(d){return d.flags&470810623?!0:d.flags&16777216?d.root.isDistributive&&d.checkType===a:d.flags&137363456?Jn(d.types,c):d.flags&8388608?c(d.objectType)&&c(d.indexType):d.flags&33554432?c(d.baseType)&&c(d.constraint):d.flags&268435456?c(d.type):!1}}function _y(n){if(Xi(n))return Vr;if(hp(n))return vd(go(n));if(Za(n))return vd(Ig(n));let a=TS(n);return a!==void 0?qd(Hi(a)):bt(n)?vd(go(n)):Vr}function bD(n,a,c){if(c||!(If(n)&6)){let d=$i(PZ(n)).nameType;if(!d){let _=Oo(n.valueDeclaration);d=n.escapedName==="default"?qd("default"):_&&_y(_)||(ek(n)?void 0:qd(bl(n)))}if(d&&d.flags&a)return d}return Vr}function QOe(n,a){return!!(n.flags&a||n.flags&2097152&&Et(n.types,c=>QOe(c,a)))}function klt(n,a,c){let d=c&&(Wr(n)&7||n.aliasSymbol)?Mlt(n):void 0,_=Ft(ys(n),x=>bD(x,a)),y=Ft(hd(n),x=>x!==jr&&QOe(x.keyType,a)?x.keyType===ke&&a&8?Po:x.keyType:Vr);return ii(xo(_,y),1,void 0,void 0,d)}function Qge(n,a=0){return!!(n.flags&58982400||Vb(n)||Hd(n)&&(!Llt(n)||LZ(n)===2)||n.flags&1048576&&!(a&4)&&yge(n)||n.flags&2097152&&Dl(n,465829888)&&Et(n.types,Vh))}function $_(n,a=He){return n=__(n),qP(n)?Mge($_(n.baseType,a)):Qge(n,a)?YOe(n,a):n.flags&1048576?Ea(Ft(n.types,c=>$_(c,a))):n.flags&2097152?ii(Ft(n.types,c=>$_(c,a))):Wr(n)&32?$Oe(n,a):n===xt?xt:n.flags&2?Vr:n.flags&131073?Fs:klt(n,(a&2?128:402653316)|(a&1?0:12584),a===He)}function ZOe(n){if(Le)return n;let a=Xst();return a?vD(a,[n,ke]):ke}function wlt(n){let a=ZOe($_(n));return a.flags&131072?ke:a}function Olt(n){let a=ti(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=$_(Ii(n.type));break;case 158:a.resolvedType=n.type.kind===155?ave(KL(n.parent)):ht;break;case 148:a.resolvedType=Ii(n.type);break;default:C.assertNever(n.operator)}return a.resolvedType}function Flt(n){let a=ti(n);return a.resolvedType||(a.resolvedType=GT([n.head.text,...Ft(n.templateSpans,c=>c.literal.text)],Ft(n.templateSpans,c=>Ii(c.type)))),a.resolvedType}function GT(n,a){let c=ri(a,U=>!!(U.flags&1179648));if(c>=0)return Ez(a)?ul(a[c],U=>GT(n,rG(a,c,U))):ht;if(wr(a,xt))return xt;let d=[],_=[],y=n[0];if(!z(n,a))return ke;if(d.length===0)return qd(y);if(_.push(y),Jn(_,U=>U==="")){if(Jn(d,U=>!!(U.flags&4)))return ke;if(d.length===1&&VT(d[0]))return d[0]}let x=`${fm(d)}|${Ft(_,U=>U.length).join(",")}|${_.join("")}`,L=bi.get(x);return L||bi.set(x,L=zlt(_,d)),L;function z(U,re){for(let be=0;bemx(n,c)):a.flags&128?qd(e4e(n,a.value)):a.flags&134217728?GT(...Blt(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||UT(a)?t4e(n,a):Sz(a)?t4e(n,GT(["",""],[a])):a}function e4e(n,a){switch(J5.get(n.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function Blt(n,a,c){switch(J5.get(n.escapedName)){case 0:return[a.map(d=>d.toUpperCase()),c.map(d=>mx(n,d))];case 1:return[a.map(d=>d.toLowerCase()),c.map(d=>mx(n,d))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[mx(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[mx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function t4e(n,a){let c=`${Ta(n)},${gd(a)}`,d=ro.get(c);return d||ro.set(c,d=Glt(n,a)),d}function Glt(n,a){let c=Eg(268435456,n);return c.type=a,c}function Vlt(n,a,c,d,_){let y=bg(8388608);return y.objectType=n,y.indexType=a,y.accessFlags=c,y.aliasSymbol=d,y.aliasTypeArguments=_,y}function R4(n){if(me)return!1;if(Wr(n)&4096)return!0;if(n.flags&1048576)return Jn(n.types,R4);if(n.flags&2097152)return Et(n.types,R4);if(n.flags&465829888){let a=hge(n);return a!==n&&R4(a)}return!1}function HZ(n,a){return nm(n)?rm(n):a&&ic(a)?TS(a):void 0}function Zge(n,a){if(a.flags&8208){let c=zn(n.parent,d=>!ks(d))||n.parent;return T1(c)?T_(c)&&Ve(n)&&u8e(c,n):Jn(a.declarations,d=>!ea(d)||ay(d))}return!0}function n4e(n,a,c,d,_,y){let x=_&&_.kind===212?_:void 0,L=_&&Xi(_)?void 0:HZ(c,_);if(L!==void 0){if(y&256)return p1(a,L)||j;let U=ba(a,L);if(U){if(y&64&&_&&U.declarations&&fb(U)&&Zge(_,U)){let be=x?.argumentExpression??(wS(_)?_.indexType:_);sy(be,U.declarations,L)}if(x){if(eB(U,x,b6e(x.expression,a.symbol)),c3e(x,U,wA(x))){qe(x.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Ai(U));return}if(y&8&&(ti(_).resolvedSymbol=U),f6e(x,U))return ot}let re=y&4?ME(U):pr(U);return x&&wA(x)!==1?Hb(x,re):_&&wS(_)&&F4(re)?ii([re,Oe]):re}if(cp(a,Wa)&&sg(L)){let re=+L;if(_&&cp(a,be=>!be.target.hasRestElement)&&!(y&16)){let be=eve(_);if(Wa(a)){if(re<0)return qe(be,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),Oe;qe(be,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,jn(a),my(a),Hi(L))}else qe(be,f.Property_0_does_not_exist_on_type_1,Hi(L),jn(a))}if(re>=0)return z(Ag(a,Dt)),U4e(a,re,y&1?w:void 0)}}if(!(c.flags&98304)&&xu(c,402665900)){if(a.flags&131073)return a;let U=E4(a,c)||Ag(a,ke);if(U){if(y&2&&U.keyType!==Dt){x&&(y&4?qe(x,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,jn(n)):qe(x,f.Type_0_cannot_be_used_to_index_type_1,jn(c),jn(n)));return}if(_&&U.keyType===ke&&!xu(c,12)){let re=eve(_);return qe(re,f.Type_0_cannot_be_used_as_an_index_type,jn(c)),y&1?ii([U.type,w]):U.type}return z(U),y&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Cd(c.symbol)===a.symbol)?ii([U.type,w]):U.type}if(c.flags&131072)return Vr;if(R4(a))return j;if(x&&!Qee(a)){if(d1(a)){if(me&&c.flags&384)return ns.add(Or(x,f.Property_0_does_not_exist_on_type_1,c.value,jn(a))),Oe;if(c.flags&12){let re=Ft(a.properties,be=>pr(be));return ii(In(re,Oe))}}if(a.symbol===at&&L!==void 0&&at.exports.has(L)&&at.exports.get(L).flags&418)qe(x,f.Property_0_does_not_exist_on_type_1,Hi(L),jn(a));else if(me&&!V.suppressImplicitAnyIndexErrors&&!(y&128))if(L!==void 0&&g6e(L,a)){let re=jn(a);qe(x,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,L,re,re+"["+pc(x.argumentExpression)+"]")}else if(r1(a,Dt))qe(x.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let re;if(L!==void 0&&(re=Aye(L,a)))re!==void 0&&qe(x.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,L,jn(a),re);else{let be=Bpt(a,x,c);if(be!==void 0)qe(x,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,jn(a),be);else{let ge;if(c.flags&1024)ge=Uo(void 0,f.Property_0_does_not_exist_on_type_1,"["+jn(c)+"]",jn(a));else if(c.flags&8192){let Je=Up(c.symbol,x);ge=Uo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Je+"]",jn(a))}else c.flags&128||c.flags&256?ge=Uo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,jn(a)):c.flags&12&&(ge=Uo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,jn(c),jn(a)));ge=Uo(ge,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,jn(d),jn(a)),ns.add(Og(Vn(x),x,ge))}}}return}}if(R4(a))return j;if(_){let U=eve(_);c.flags&384?qe(U,f.Property_0_does_not_exist_on_type_1,""+c.value,jn(a)):c.flags&12?qe(U,f.Type_0_has_no_matching_index_signature_for_type_1,jn(a),jn(c)):qe(U,f.Type_0_cannot_be_used_as_an_index_type,jn(c))}if(Ct(c))return c;return;function z(U){U&&U.isReadonly&&x&&(ng(x)||zj(x))&&qe(x,f.Index_signature_in_type_0_only_permits_reading,jn(a))}}function eve(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function Sz(n){if(n.flags&2097152){let a=!1;for(let c of n.types)if(c.flags&101248||Sz(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||VT(n)}function VT(n){return!!(n.flags&134217728)&&Jn(n.types,Sz)||!!(n.flags&268435456)&&Sz(n.type)}function r4e(n){return!!(n.flags&402653184)&&!VT(n)}function ED(n){return!!D4(n)}function jT(n){return!!(D4(n)&4194304)}function UT(n){return!!(D4(n)&8388608)}function D4(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|nd(n.types,(a,c)=>a|D4(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|D4(n.baseType)|D4(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Hd(n)||Vb(n)?4194304:0)|(n.flags&63176704||r4e(n)?8388608:0)}function _v(n,a){return n.flags&8388608?Ult(n,a):n.flags&16777216?Hlt(n,a):n}function i4e(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Qge(n)){let d=Ft(n.types,_=>_v(Pp(_,a),c));return n.flags&2097152||c?Ea(d):ii(d)}}function jlt(n,a,c){if(a.flags&1048576){let d=Ft(a.types,_=>_v(Pp(n,_),c));return c?Ea(d):ii(d)}}function Ult(n,a){let c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===nu?n:n[c];n[c]=nu;let d=_v(n.objectType,a),_=_v(n.indexType,a),y=jlt(d,_,a);if(y)return n[c]=y;if(!(_.flags&465829888)){let x=i4e(d,_,a);if(x)return n[c]=x}if(Vb(d)&&_.flags&296){let x=ZP(d,_.flags&8?0:d.target.fixedLength,0,a);if(x)return n[c]=x}return Hd(d)&&LZ(d)!==2?n[c]=ul(qZ(d,n.indexType),x=>_v(x,a)):n[c]=n}function Hlt(n,a){let c=n.checkType,d=n.extendsType,_=o1(n),y=a1(n);if(y.flags&131072&&Wb(_)===Wb(c)){if(c.flags&1||Sa(qT(c),qT(d)))return _v(_,a);if(o4e(c,d))return Vr}else if(_.flags&131072&&Wb(y)===Wb(c)){if(!(c.flags&1)&&Sa(qT(c),qT(d)))return Vr;if(c.flags&1||o4e(c,d))return _v(y,a)}return n}function o4e(n,a){return!!(ii([dz(n,a),Vr]).flags&131072)}function qZ(n,a){let c=Mp([f_(n)],[a]),d=zE(n.mapper,c);return co(pv(n.target||n),d)}function Pp(n,a,c=0,d,_,y){return Fb(n,a,c,d,_,y)||(d?ht:mn)}function a4e(n,a){return cp(n,c=>{if(c.flags&384){let d=rm(c);if(sg(d)){let _=+d;return _>=0&&_0&&!Et(n.elements,a=>Y7(a)||$7(a)||FR(a)&&!!(a.questionToken||a.dotDotDotToken))}function c4e(n,a){return ED(n)||a&&Wa(n)&&Et(wE(n),ED)}function nve(n,a,c,d,_){let y,x,L=0;for(;;){if(L===1e3)return qe(N,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),ht;let U=co(Wb(n.checkType),a),re=co(n.extendsType,a);if(U===ht||re===ht)return ht;if(U===xt||re===xt)return xt;let be=XL(n.node.checkType),ge=XL(n.node.extendsType),Je=l4e(be)&&l4e(ge)&&De(be.elements)===De(ge.elements),vt=c4e(U,Je),Rt;if(n.inferTypeParameters){let un=z4(n.inferTypeParameters,void 0,0);a&&(un.nonFixingMapper=zE(un.nonFixingMapper,a)),vt||bv(un.inferences,U,re,1536),Rt=a?zE(un.mapper,a):un.mapper}let sn=Rt?co(n.extendsType,Rt):re;if(!vt&&!c4e(sn,Je)){if(!(sn.flags&3)&&(U.flags&1||!Sa(P4(U),P4(sn)))){(U.flags&1||c&&!(sn.flags&131072)&&jm(P4(sn),sr=>Sa(sr,P4(U))))&&(x||(x=[])).push(co(Ii(n.node.trueType),Rt||a));let un=Ii(n.node.falseType);if(un.flags&16777216){let sr=un.root;if(sr.node.parent===n.node&&(!sr.isDistributive||sr.checkType===n.checkType)){n=sr;continue}if(z(un,a))continue}y=co(un,a);break}if(sn.flags&3||Sa(qT(U),qT(sn))){let un=Ii(n.node.trueType),sr=Rt||a;if(z(un,sr))continue;y=co(un,sr);break}}y=bg(16777216),y.root=n,y.checkType=co(n.checkType,a),y.extendsType=co(n.extendsType,a),y.mapper=a,y.combinedMapper=Rt,y.aliasSymbol=d||n.aliasSymbol,y.aliasTypeArguments=d?_:hy(n.aliasTypeArguments,a);break}return x?ii(In(x,y)):y;function z(U,re){if(U.flags&16777216&&re){let be=U.root;if(be.outerTypeParameters){let ge=zE(U.mapper,re),Je=Ft(be.outerTypeParameters,sn=>zb(sn,ge)),vt=Mp(be.outerTypeParameters,Je),Rt=be.isDistributive?zb(be.checkType,vt):void 0;if(!Rt||Rt===be.checkType||!(Rt.flags&1179648))return n=be,a=vt,d=void 0,_=void 0,be.aliasSymbol&&L++,!0}}return!1}}function o1(n){return n.resolvedTrueType||(n.resolvedTrueType=co(Ii(n.root.node.trueType),n.mapper))}function a1(n){return n.resolvedFalseType||(n.resolvedFalseType=co(Ii(n.root.node.falseType),n.mapper))}function qlt(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?co(Ii(n.root.node.trueType),n.combinedMapper):o1(n))}function u4e(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=In(a,Qs(c)))}),a}function Jlt(n){return n.isDistributive&&(xz(n.checkType,n.node.trueType)||xz(n.checkType,n.node.falseType))}function Klt(n){let a=ti(n);if(!a.resolvedType){let c=Ii(n.checkType),d=_x(n),_=SD(d),y=Cn(n,!0),x=_?y:tr(y,z=>xz(z,n)),L={node:n,checkType:c,extendsType:Ii(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:u4e(n),outerTypeParameters:x,instantiations:void 0,aliasSymbol:d,aliasTypeArguments:_};a.resolvedType=nve(L,void 0,!1),x&&(L.instantiations=new Map,L.instantiations.set(fm(x),a.resolvedType))}return a.resolvedType}function Xlt(n){let a=ti(n);return a.resolvedType||(a.resolvedType=wT(Rr(n.typeParameter))),a.resolvedType}function d4e(n){return Ve(n)?[n]:In(d4e(n.left),n.right)}function Ylt(n){var a;let c=ti(n);if(!c.resolvedType){if(!zy(n))return qe(n.argument,f.String_literal_expected),c.resolvedSymbol=ft,c.resolvedType=ht;let d=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=_d(n,n.argument.literal);if(!_)return c.resolvedSymbol=ft,c.resolvedType=ht;let y=!!((a=_.exports)!=null&&a.get("export=")),x=Rp(_,!1);if(Fl(n.qualifier))if(x.flags&d)c.resolvedType=p4e(n,c,x,d);else{let L=d===111551?f.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;qe(n,L,n.argument.literal.text),c.resolvedSymbol=ft,c.resolvedType=ht}else{let L=d4e(n.qualifier),z=x,U;for(;U=L.shift();){let re=L.length?1920:d,be=is(Gl(z)),ge=n.isTypeOf||cr(n)&&y?ba(pr(be),U.escapedText,!1,!0):void 0,vt=(n.isTypeOf?void 0:Ud(Dp(be),U.escapedText,re))??ge;if(!vt)return qe(U,f.Namespace_0_has_no_exported_member_1,Up(z),Ds(U)),c.resolvedType=ht;ti(U).resolvedSymbol=vt,ti(U.parent).resolvedSymbol=vt,z=vt}c.resolvedType=p4e(n,c,z,d)}}return c.resolvedType}function p4e(n,a,c,d){let _=Gl(c);return a.resolvedSymbol=_,d===111551?J6e(pr(c),n):GZ(n,_)}function f4e(n){let a=ti(n);if(!a.resolvedType){let c=_x(n);if(Lb(n.symbol).size===0&&!c)a.resolvedType=sc;else{let d=Of(16,n.symbol);d.aliasSymbol=c,d.aliasTypeArguments=SD(c),GS(n)&&n.isArrayType&&(d=Gu(d)),a.resolvedType=d}}return a.resolvedType}function _x(n){let a=n.parent;for(;LS(a)||Z1(a)||kS(a)&&a.operator===148;)a=a.parent;return UL(a)?Rr(a):void 0}function SD(n){return n?kr(n):void 0}function JZ(n){return!!(n.flags&524288)&&!Hd(n)}function rve(n){return gv(n)||!!(n.flags&474058748)}function ive(n,a){if(!(n.flags&1048576))return n;if(Jn(n.types,rve))return vn(n.types,gv)||Pa;let c=vn(n.types,y=>!rve(y));if(!c||vn(n.types,y=>y!==c&&!rve(y)))return n;return _(c);function _(y){let x=ua();for(let z of ys(y))if(!(If(z)&6)){if(KZ(z)){let U=z.flags&65536&&!(z.flags&32768),be=Xa(16777220,z.escapedName,dge(z)|(a?8:0));be.links.type=U?Oe:lp(pr(z),!0),be.declarations=z.declarations,be.links.nameType=$i(z).nameType,be.links.syntheticOrigin=z,x.set(z.escapedName,be)}}let L=Ls(y.symbol,x,et,et,hd(y));return L.objectFlags|=131200,L}}function OE(n,a,c,d,_){if(n.flags&1||a.flags&1)return j;if(n.flags&2||a.flags&2)return mn;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=ive(n,_),n.flags&1048576)return Ez([n,a])?ul(n,U=>OE(U,a,c,d,_)):ht;if(a=ive(a,_),a.flags&1048576)return Ez([n,a])?ul(a,U=>OE(n,U,c,d,_)):ht;if(a.flags&473960444)return n;if(jT(n)||jT(a)){if(gv(n))return a;if(n.flags&2097152){let U=n.types,re=U[U.length-1];if(JZ(re)&&JZ(a))return Ea(xo(U.slice(0,U.length-1),[OE(re,a,c,d,_)]))}return Ea([n,a])}let y=ua(),x=new Set,L=n===Pa?hd(a):Kwe([n,a]);for(let U of ys(a))If(U)&6?x.add(U.escapedName):KZ(U)&&y.set(U.escapedName,ove(U,_));for(let U of ys(n))if(!(x.has(U.escapedName)||!KZ(U)))if(y.has(U.escapedName)){let re=y.get(U.escapedName),be=pr(re);if(re.flags&16777216){let ge=xo(U.declarations,re.declarations),Je=4|U.flags&16777216,vt=Xa(Je,U.escapedName),Rt=pr(U),sn=mee(Rt),un=mee(be);vt.links.type=sn===un?Rt:ii([Rt,un],2),vt.links.leftSpread=U,vt.links.rightSpread=re,vt.declarations=ge,vt.links.nameType=$i(U).nameType,y.set(U.escapedName,vt)}}else y.set(U.escapedName,ove(U,_));let z=Ls(c,y,et,et,Io(L,U=>$lt(U,_)));return z.objectFlags|=2228352|d,z}function KZ(n){var a;return!Et(n.declarations,ad)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>pi(c.parent))))}function ove(n,a){let c=n.flags&65536&&!(n.flags&32768);if(!c&&a===y_(n))return n;let d=4|n.flags&16777216,_=Xa(d,n.escapedName,dge(n)|(a?8:0));return _.links.type=c?Oe:pr(n),_.declarations=n.declarations,_.links.nameType=$i(n).nameType,_.links.syntheticOrigin=n,_}function $lt(n,a){return n.isReadonly!==a?Bh(n.keyType,n.type,a,n.declaration):n}function Tz(n,a,c,d){let _=Eg(n,c);return _.value=a,_.regularType=d||_,_}function hx(n){if(n.flags&2976){if(!n.freshType){let a=Tz(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function vd(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=ul(n,vd)):n}function FE(n){return!!(n.flags&2976)&&n.freshType===n}function qd(n){let a;return ln.get(n)||(ln.set(n,a=Tz(128,n)),a)}function h_(n){let a;return tt.get(n)||(tt.set(n,a=Tz(256,n)),a)}function XZ(n){let a,c=z1(n);return zt.get(c)||(zt.set(c,a=Tz(2048,n)),a)}function Qlt(n,a,c){let d,_=`${a}${typeof n=="string"?"@":"#"}${n}`,y=1024|(typeof n=="string"?128:256);return Rn.get(_)||(Rn.set(_,d=Tz(y,n,c)),d)}function Zlt(n){if(n.literal.kind===106)return pe;let a=ti(n);return a.resolvedType||(a.resolvedType=vd(go(n.literal))),a.resolvedType}function ect(n){let a=Eg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Ta(a.symbol)}`,a}function ave(n){if(cr(n)&&Z1(n)){let a=SS(n);a&&(n=kA(a)||a)}if(yie(n)){let a=J6(n)?ff(n.left):ff(n);if(a){let c=$i(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=ect(a))}}return Di}function tct(n){let a=wd(n,!1,!1),c=a&&a.parent;if(c&&(pi(c)||c.kind===264)&&!sa(a)&&(!Pl(a)||P1(n,a.body)))return zf(Rr(c)).thisType;if(c&&wa(c)&&_r(c.parent)&&Wl(c.parent)===6)return zf(ff(c.parent.left).parent).thisType;let d=n.flags&16777216?u0(n):void 0;return d&&ws(d)&&_r(d.parent)&&Wl(d.parent)===3?zf(ff(d.parent.left).parent).thisType:th(a)&&P1(n,a.body)?zf(Rr(a)).thisType:(qe(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ht)}function YZ(n){let a=ti(n);return a.resolvedType||(a.resolvedType=tct(n)),a.resolvedType}function m4e(n){return Ii(Az(n.type)||n.type)}function Az(n){switch(n.kind){case 196:return Az(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return Az(n.type);break;case 188:return n.elementType}}function nct(n){let a=ti(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?m4e(n):lp(Ii(n.type),!0,!!n.questionToken))}function Ii(n){return kst(_4e(n),n)}function _4e(n){switch(n.kind){case 133:case 319:case 320:return j;case 159:return mn;case 154:return ke;case 150:return Dt;case 163:return Pt;case 136:return yi;case 155:return Di;case 116:return or;case 157:return Oe;case 106:return pe;case 146:return Vr;case 151:return n.flags&524288&&!me?j:Kr;case 141:return fn;case 197:case 110:return YZ(n);case 201:return Zlt(n);case 183:return Oge(n);case 182:return n.assertsModifier?or:yi;case 233:return Oge(n);case 186:return xOe(n);case 188:case 189:return ult(n);case 190:return mlt(n);case 192:return Tlt(n);case 193:return Plt(n);case 321:return wst(n);case 323:return lp(Ii(n.type));case 202:return nct(n);case 196:case 322:case 316:return Ii(n.type);case 191:return m4e(n);case 325:return igt(n);case 184:case 185:case 187:case 329:case 324:case 330:return f4e(n);case 198:return Olt(n);case 199:return s4e(n);case 200:return tve(n);case 194:return Klt(n);case 195:return Xlt(n);case 203:return Flt(n);case 205:return Ylt(n);case 80:case 166:case 211:let a=Um(n);return a?Qs(a):ht;default:return ht}}function $Z(n,a,c){if(n&&n.length)for(let d=0;dd.typeParameter),Ft(c,()=>mn))}function zE(n,a){return n?ZZ(4,n,a):a}function oct(n,a){return n?ZZ(5,n,a):a}function HT(n,a,c){return c?ZZ(5,WE(n,a),c):WE(n,a)}function C4(n,a,c){return n?ZZ(5,n,WE(a,c)):WE(a,c)}function act(n){return!n.constraint&&!Nge(n)||n.constraint===Vs?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=_f(n.symbol),n.restrictiveInstantiation.constraint=Vs,n.restrictiveInstantiation)}function lve(n){let a=_f(n.symbol);return a.target=n,a}function sct(n,a){return gz(n.kind,n.parameterName,n.parameterIndex,co(n.type,a))}function TD(n,a,c){let d;if(n.typeParameters&&!c){d=Ft(n.typeParameters,lve),a=zE(Mp(n.typeParameters,d),a);for(let y of d)y.mapper=a}let _=Tg(n.declaration,d,n.thisParameter&&cve(n.thisParameter,a),$Z(n.parameters,a,cve),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function cve(n,a){let c=$i(n);if(c.type&&!u1(c.type)&&(!(n.flags&65536)||c.writeType&&!u1(c.writeType)))return n;Al(n)&1&&(n=c.target,a=zE(c.mapper,a));let d=Xa(n.flags,n.escapedName,1|Al(n)&53256);return d.declarations=n.declarations,d.parent=n.parent,d.links.target=n,d.links.mapper=a,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),c.nameType&&(d.links.nameType=c.nameType),d}function lct(n,a,c,d){let _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],y=ti(_),x=n.objectFlags&4?y.resolvedType:n.objectFlags&64?n.target:n,L=y.outerTypeParameters;if(!L){let z=Cn(_,!0);if(th(_)){let re=dOe(_);z=Jr(z,re)}L=z||et;let U=n.objectFlags&8388612?[_]:n.symbol.declarations;L=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?tr(L,re=>Et(U,be=>xz(re,be))):L,y.outerTypeParameters=L}if(L.length){let z=zE(n.mapper,a),U=Ft(L,vt=>zb(vt,z)),re=c||n.aliasSymbol,be=c?d:hy(n.aliasTypeArguments,a),ge=fm(U)+fx(re,be);x.instantiations||(x.instantiations=new Map,x.instantiations.set(fm(L)+fx(x.aliasSymbol,x.aliasTypeArguments),x));let Je=x.instantiations.get(ge);if(!Je){let vt=Mp(L,U);Je=x.objectFlags&4?Pge(n.target,n.node,vt,re,be):x.objectFlags&32?uct(x,vt,re,be):uve(x,vt,re,be),x.instantiations.set(ge,Je);let Rt=Wr(Je);if(Je.flags&3899393&&!(Rt&524288)){let sn=Et(U,u1);Wr(Je)&524288||(Rt&52?Je.objectFlags|=524288|(sn?1048576:0):Je.objectFlags|=sn?0:524288)}}return Je}return n}function cct(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function xz(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){let d=n.symbol.declarations[0].parent;for(let _=a;_!==d;_=_.parent)if(!_||_.kind===241||_.kind===194&&Ho(_.extendsType,c))return!0;return c(a)}return!0;function c(d){switch(d.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&Zh(d)&&cct(d)&&_4e(d)===n;case 186:let _=d.exprName,y=Bp(_);if(!O1(y)){let x=Vm(y),L=n.symbol.declarations[0],z=L.kind===168?L.parent:n.isThisType?L:void 0;if(x.declarations&&z)return Et(x.declarations,U=>P1(U,z))||Et(d.typeArguments,c)}return!0;case 174:case 173:return!d.type&&!!d.body||Et(d.typeParameters,c)||Et(d.parameters,c)||!!d.type&&c(d.type)}return!!Ho(d,c)}}function N4(n){let a=gf(n);if(a.flags&4194304){let c=Wb(a.type);if(c.flags&262144)return c}}function uct(n,a,c,d){let _=N4(n);if(_){let x=co(_,a);if(_!==x)return b8e(__(x),y,c,d)}return co(gf(n),a)===xt?xt:uve(n,a,c,d);function y(x){if(x.flags&61603843&&x!==xt&&!qt(x)){if(!n.declaration.nameType){let L;if(jf(x)||x.flags&1&&cx(_,4)<0&&(L=Pd(_))&&cp(L,l1))return pct(x,n,HT(_,x,a));if(Wa(x))return dct(x,n,_,a);if(oOe(x))return Ea(Ft(x.types,y))}return uve(n,HT(_,x,a))}return x}}function v4e(n,a){return a&1?!0:a&2?!1:n}function dct(n,a,c,d){let _=n.target.elementFlags,y=n.target.fixedLength,x=y?HT(c,n,d):d,L=Ft(wE(n),(be,ge)=>{let Je=_[ge];return gebe&1?2:be):z&8?Ft(_,be=>be&2?1:be):_,re=v4e(n.target.readonly,Wh(a));return wr(L,ht)?ht:Gh(L,U,re,n.target.labeledElementDeclarations)}function pct(n,a,c){let d=y4e(a,Dt,!0,c);return qt(d)?ht:Gu(d,v4e($P(n),Wh(a)))}function y4e(n,a,c,d){let _=C4(d,f_(n),a),y=co(pv(n.target||n),_),x=Wh(n);return Y&&x&4&&!Dl(y,49152)?jb(y,!0):Y&&x&8&&c?_m(y,524288):y}function uve(n,a,c,d){C.assert(n.symbol,"anonymous type must have symbol to be instantiated");let _=Of(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;let y=f_(n),x=lve(y);_.typeParameter=x,a=zE(WE(y,x),a),x.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?d:hy(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?zZ(_.aliasTypeArguments):0,_}function dve(n,a,c,d,_){let y=n.root;if(y.outerTypeParameters){let x=Ft(y.outerTypeParameters,U=>zb(U,a)),L=(c?"C":"")+fm(x)+fx(d,_),z=y.instantiations.get(L);if(!z){let U=Mp(y.outerTypeParameters,x),re=y.checkType,be=y.isDistributive?__(zb(re,U)):void 0;z=be&&re!==be&&be.flags&1179648?b8e(be,ge=>nve(y,HT(re,ge,U),c),d,_):nve(y,U,c,d,_),y.instantiations.set(L,z)}return z}return n}function co(n,a){return n&&a?b4e(n,a,void 0,void 0):n}function b4e(n,a,c,d){var _;if(!u1(n))return n;if(R===100||I>=5e6)return(_=lr)==null||_.instant(lr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:R,instantiationCount:I}),qe(N,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),ht;T++,I++,R++;let y=fct(n,a,c,d);return R--,y}function fct(n,a,c,d){let _=n.flags;if(_&262144)return zb(n,a);if(_&524288){let y=n.objectFlags;if(y&52){if(y&4&&!n.node){let x=n.resolvedTypeArguments,L=hy(x,a);return L!==x?Hge(n.target,L):n}return y&1024?mct(n,a):lct(n,a,c,d)}return n}if(_&3145728){let y=n.flags&1048576?n.origin:void 0,x=y&&y.flags&3145728?y.types:n.types,L=hy(x,a);if(L===x&&c===n.aliasSymbol)return n;let z=c||n.aliasSymbol,U=c?d:hy(n.aliasTypeArguments,a);return _&2097152||y&&y.flags&2097152?Ea(L,z,U):ii(L,1,z,U)}if(_&4194304)return $_(co(n.type,a));if(_&134217728)return GT(n.texts,hy(n.types,a));if(_&268435456)return mx(n.symbol,co(n.type,a));if(_&8388608){let y=c||n.aliasSymbol,x=c?d:hy(n.aliasTypeArguments,a);return Pp(co(n.objectType,a),co(n.indexType,a),n.accessFlags,void 0,y,x)}if(_&16777216)return dve(n,zE(n.mapper,a),!1,c,d);if(_&33554432){let y=co(n.baseType,a);if(qP(n))return Mge(y);let x=co(n.constraint,a);return y.flags&8650752&&ED(x)?kge(y,x):x.flags&3||Sa(qT(y),qT(x))?y:y.flags&8650752?kge(y,x):Ea([x,y])}return n}function mct(n,a){let c=co(n.mappedType,a);if(!(Wr(c)&32))return n;let d=co(n.constraintType,a);if(!(d.flags&4194304))return n;let _=Q4e(co(n.source,a),c,d);return _||n}function P4(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=co(n,hl))}function qT(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=co(n,Gs),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function _ct(n,a){return Bh(n.keyType,co(n.type,a),n.isReadonly,n.declaration)}function Gf(n){switch(C.assert(n.kind!==174||Im(n)),n.kind){case 218:case 219:case 174:case 262:return E4e(n);case 210:return Et(n.properties,Gf);case 209:return Et(n.elements,Gf);case 227:return Gf(n.whenTrue)||Gf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Gf(n.left)||Gf(n.right));case 303:return Gf(n.initializer);case 217:return Gf(n.expression);case 292:return Et(n.properties,Gf)||w_(n.parent)&&Et(n.parent.parent.children,Gf);case 291:{let{initializer:a}=n;return!!a&&Gf(a)}case 294:{let{expression:a}=n;return!!a&&Gf(a)}}return!1}function E4e(n){return Z3(n)||hct(n)}function hct(n){return n.typeParameters||tm(n)||!n.body?!1:n.body.kind!==241?Gf(n.body):!!R1(n.body,a=>!!a.expression&&Gf(a.expression))}function eee(n){return(B1(n)||Im(n))&&E4e(n)}function S4e(n){if(n.flags&524288){let a=m_(n);if(a.constructSignatures.length||a.callSignatures.length){let c=Of(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=et,c.constructSignatures=et,c.indexInfos=et,c}}else if(n.flags&2097152)return Ea(Ft(n.types,S4e));return n}function hv(n,a){return Q_(n,a,op)}function M4(n,a){return Q_(n,a,op)?-1:0}function pve(n,a){return Q_(n,a,jd)?-1:0}function gct(n,a){return Q_(n,a,Ch)?-1:0}function Bb(n,a){return Q_(n,a,Ch)}function Rz(n,a){return Q_(n,a,kf)}function Sa(n,a){return Q_(n,a,jd)}function s1(n,a){return n.flags&1048576?Jn(n.types,c=>s1(c,a)):a.flags&1048576?Et(a.types,c=>s1(n,c)):n.flags&2097152?Et(n.types,c=>s1(c,a)):n.flags&58982400?s1(Bu(n)||mn,a):Vh(a)?!!(n.flags&67633152):a===Pe?!!(n.flags&67633152)&&!Vh(n):a===wt?!!(n.flags&524288)&&Hve(n):pD(n,dy(a))||jf(a)&&!$P(a)&&s1(n,na)}function tee(n,a){return Q_(n,a,xp)}function Dz(n,a){return tee(n,a)||tee(a,n)}function td(n,a,c,d,_,y){return Vf(n,a,jd,c,d,_,y)}function Gb(n,a,c,d,_,y){return fve(n,a,jd,c,d,_,y,void 0)}function fve(n,a,c,d,_,y,x,L){return Q_(n,a,c)?!0:!d||!L4(_,n,a,c,y,x,L)?Vf(n,a,c,d,y,x,L):!1}function T4e(n){return!!(n.flags&16777216||n.flags&2097152&&Et(n.types,T4e))}function L4(n,a,c,d,_,y,x){if(!n||T4e(c))return!1;if(!Vf(a,c,d,void 0)&&vct(n,a,c,d,_,y,x))return!0;switch(n.kind){case 234:if(!mb(n))break;case 294:case 217:return L4(n.expression,a,c,d,_,y,x);case 226:switch(n.operatorToken.kind){case 64:case 28:return L4(n.right,a,c,d,_,y,x)}break;case 210:return xct(n,a,c,d,y,x);case 209:return Act(n,a,c,d,y,x);case 292:return Tct(n,a,c,d,y,x);case 219:return yct(n,a,c,d,y,x)}return!1}function vct(n,a,c,d,_,y,x){let L=Yo(a,0),z=Yo(a,1);for(let U of[z,L])if(Et(U,re=>{let be=ms(re);return!(be.flags&131073)&&Vf(be,c,d,void 0)})){let re=x||{};td(a,c,n,_,y,re);let be=re.errors[re.errors.length-1];return ka(be,Or(n,U===z?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function yct(n,a,c,d,_,y){if(Xo(n.body)||Et(n.parameters,N6))return!1;let x=tA(a);if(!x)return!1;let L=Yo(c,0);if(!De(L))return!1;let z=n.body,U=ms(x),re=ii(Ft(L,ms));if(!Vf(U,re,d,void 0)){let be=z&&L4(z,U,re,d,void 0,_,y);if(be)return be;let ge=y||{};if(Vf(U,re,d,z,void 0,_,ge),ge.errors)return c.symbol&&De(c.symbol.declarations)&&ka(ge.errors[ge.errors.length-1],Or(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Gc(n)&2)&&!Xe(U,"then")&&Vf(cB(U),re,d,void 0)&&ka(ge.errors[ge.errors.length-1],Or(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function A4e(n,a,c){let d=Fb(a,c);if(d)return d;if(a.flags&1048576){let _=M4e(n,a);if(_)return Fb(_,c)}}function I4e(n,a){Jz(n,a,!1);let c=cM(n,1);return j4(),c}function Cz(n,a,c,d,_,y){let x=!1;for(let L of n){let{errorNode:z,innerExpression:U,nameType:re,errorMessage:be}=L,ge=A4e(a,c,re);if(!ge||ge.flags&8388608)continue;let Je=Fb(a,re);if(!Je)continue;let vt=HZ(re,void 0);if(!Vf(Je,ge,d,void 0)){let Rt=U&&L4(U,Je,ge,d,void 0,_,y);if(x=!0,!Rt){let sn=y||{},un=U?I4e(U,Je):Je;if(Ce&&ree(un,ge)){let sr=Or(z,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,jn(un),jn(ge));ns.add(sr),sn.errors=[sr]}else{let sr=!!(vt&&(ba(c,vt)||ft).flags&16777216),Ln=!!(vt&&(ba(a,vt)||ft).flags&16777216);ge=Ub(ge,sr),Je=Ub(Je,sr&&Ln),Vf(un,ge,d,z,be,_,sn)&&un!==Je&&Vf(Je,ge,d,z,be,_,sn)}if(sn.errors){let sr=sn.errors[sn.errors.length-1],Ln=nm(re)?rm(re):void 0,cn=Ln!==void 0?ba(c,Ln):void 0,Fn=!1;if(!cn){let kn=E4(c,re);kn&&kn.declaration&&!Vn(kn.declaration).hasNoDefaultLib&&(Fn=!0,ka(sr,Or(kn.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!Fn&&(cn&&De(cn.declarations)||c.symbol&&De(c.symbol.declarations))){let kn=cn&&De(cn.declarations)?cn.declarations[0]:c.symbol.declarations[0];Vn(kn).hasNoDefaultLib||ka(sr,Or(kn,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Ln&&!(re.flags&8192)?Hi(Ln):jn(re),jn(c)))}}}}}return x}function bct(n,a,c,d,_,y){let x=uc(c,uee),L=uc(c,re=>!uee(re)),z=L!==Vr?cbe(13,0,L,void 0):void 0,U=!1;for(let re=n.next();!re.done;re=n.next()){let{errorNode:be,innerExpression:ge,nameType:Je,errorMessage:vt}=re.value,Rt=z,sn=x!==Vr?A4e(a,x,Je):void 0;if(sn&&!(sn.flags&8388608)&&(Rt=z?ii([z,sn]):sn),!Rt)continue;let un=Fb(a,Je);if(!un)continue;let sr=HZ(Je,void 0);if(!Vf(un,Rt,d,void 0)){let Ln=ge&&L4(ge,un,Rt,d,void 0,_,y);if(U=!0,!Ln){let cn=y||{},Fn=ge?I4e(ge,un):un;if(Ce&&ree(Fn,Rt)){let kn=Or(be,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,jn(Fn),jn(Rt));ns.add(kn),cn.errors=[kn]}else{let kn=!!(sr&&(ba(x,sr)||ft).flags&16777216),Zn=!!(sr&&(ba(a,sr)||ft).flags&16777216);Rt=Ub(Rt,kn),un=Ub(un,kn&&Zn),Vf(Fn,Rt,d,be,vt,_,cn)&&Fn!==un&&Vf(un,Rt,d,be,vt,_,cn)}}}}return U}function*Ect(n){if(De(n.properties))for(let a of n.properties)pI(a)||pye(bk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:qd(bk(a.name))})}function*Sct(n,a){if(!De(n.children))return;let c=0;for(let d=0;d1,sn,un;if(Gge(!1)!==Wo){let Ln=FOe(j);sn=uc(Je,cn=>Sa(cn,Ln)),un=uc(Je,cn=>!Sa(cn,Ln))}else sn=uc(Je,uee),un=uc(Je,Ln=>!uee(Ln));if(Rt){if(sn!==Vr){let Ln=Gh(Oee(U,0)),cn=Sct(U,z);x=bct(cn,Ln,sn,d,_,y)||x}else if(!Q_(Pp(a,ge),Je,d)){x=!0;let Ln=qe(U.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,be,jn(Je));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(Ln)}}else if(un!==Vr){let Ln=vt[0],cn=x4e(Ln,ge,z);cn&&(x=Cz(function*(){yield cn}(),a,c,d,_,y)||x)}else if(!Q_(Pp(a,ge),Je,d)){x=!0;let Ln=qe(U.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,be,jn(Je));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(Ln)}}return x;function z(){if(!L){let U=pc(n.parent.tagName),re=Xz(ZT(n)),be=re===void 0?"children":Hi(re),ge=Pp(c,qd(be)),Je=f._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;L={...Je,key:"!!ALREADY FORMATTED!!",message:bU(Je,U,be,jn(ge))}}return L}}function*R4e(n,a){let c=De(n.elements);if(c)for(let d=0;dz:nh(n)>z))return d&&!(c&8)&&_(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,nh(n),z),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Dst(a),n=R6e(n,a,void 0,x));let re=Kp(n),be=J4(n),ge=J4(a);(be||ge)&&co(be||ge,L);let Je=a.declaration?a.declaration.kind:0,vt=!(c&3)&&oe&&Je!==174&&Je!==173&&Je!==176,Rt=-1,sn=i1(n);if(sn&&sn!==or){let Ln=i1(a);if(Ln){let cn=!vt&&x(sn,Ln,!1)||x(Ln,sn,d);if(!cn)return d&&_(f.The_this_types_of_each_signature_are_incompatible),0;Rt&=cn}}let un=be||ge?Math.min(re,z):Math.max(re,z),sr=be||ge?un-1:-1;for(let Ln=0;Ln=nh(n)&&Ln=3&&a[0].flags&32768&&a[1].flags&65536&&Et(a,Vh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function XP(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function C4e(n){return n.flags&524288&&!Hd(n)&&ys(n).length===0&&hd(n).length===1&&!!Ag(n,ke)||n.flags&3145728&&Jn(n.types,C4e)||!1}function hve(n,a,c){let d=n.flags&8?Cd(n):n,_=a.flags&8?Cd(a):a;if(d===_)return!0;if(d.escapedName!==_.escapedName||!(d.flags&256)||!(_.flags&256))return!1;let y=Ta(d)+","+Ta(_),x=iy.get(y);if(x!==void 0&&!(!(x&4)&&x&2&&c))return!!(x&1);let L=pr(_);for(let z of ys(pr(d)))if(z.flags&8){let U=ba(L,z.escapedName);if(!U||!(U.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,bl(z),jn(Qs(_),void 0,64)),iy.set(y,6)):iy.set(y,2),!1;let re=kD(dl(z,306)),be=kD(dl(U,306));if(re!==be){let ge=typeof re=="string",Je=typeof be=="string";if(re!==void 0&&be!==void 0){if(!c)iy.set(y,2);else{let vt=ge?`"${rg(re)}"`:re,Rt=Je?`"${rg(be)}"`:be;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,bl(_),bl(U),Rt,vt),iy.set(y,6)}return!1}if(ge||Je){if(!c)iy.set(y,2);else{let vt=re??be;C.assert(typeof vt=="string");let Rt=`"${rg(vt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,bl(_),bl(U),Rt),iy.set(y,6)}return!1}}}return iy.set(y,1),!0}function k4(n,a,c,d){let _=n.flags,y=a.flags;return y&1||_&131072||n===xt||y&2&&!(c===kf&&_&1)?!0:y&131072?!1:!!(_&402653316&&y&4||_&128&&_&1024&&y&128&&!(y&1024)&&n.value===a.value||_&296&&y&8||_&256&&_&1024&&y&256&&!(y&1024)&&n.value===a.value||_&2112&&y&64||_&528&&y&16||_&12288&&y&4096||_&32&&y&32&&n.symbol.escapedName===a.symbol.escapedName&&hve(n.symbol,a.symbol,d)||_&1024&&y&1024&&(_&1048576&&y&1048576&&hve(n.symbol,a.symbol,d)||_&2944&&y&2944&&n.value===a.value&&hve(n.symbol,a.symbol,d))||_&32768&&(!Y&&!(y&3145728)||y&49152)||_&65536&&(!Y&&!(y&3145728)||y&65536)||_&524288&&y&67108864&&!(c===kf&&Vh(n)&&!(Wr(n)&8192))||(c===jd||c===xp)&&(_&1||_&8&&(y&32||y&256&&y&1024)||_&256&&!(_&1024)&&(y&32||y&256&&y&1024&&n.value===a.value)||Nct(a)))}function Q_(n,a,c){if(FE(n)&&(n=n.regularType),FE(a)&&(a=a.regularType),n===a)return!0;if(c!==op){if(c===xp&&!(a.flags&131072)&&k4(a,n,c)||k4(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){let d=c.get(aee(n,a,0,c,!1));if(d!==void 0)return!!(d&1)}return n.flags&469499904||a.flags&469499904?Vf(n,a,c,void 0):!1}function N4e(n,a){return Wr(n)&2048&&pye(a.escapedName)}function Nz(n,a){for(;;){let c=FE(n)?n.regularType:Vb(n)?Mct(n,a):Wr(n)&4?n.node?fy(n.target,qs(n)):Tve(n)||n:n.flags&3145728?Pct(n,a):n.flags&33554432?a?n.baseType:wge(n):n.flags&25165824?_v(n,a):n;if(c===n)return c;n=c}}function Pct(n,a){let c=__(n);if(c!==n)return c;if(n.flags&2097152&&Et(n.types,Vh)){let d=Io(n.types,_=>Nz(_,a));if(d!==n.types)return Ea(d)}return n}function Mct(n,a){let c=wE(n),d=Io(c,_=>_.flags&25165824?_v(_,a):_);return c!==d?qge(n.target,d):n}function Vf(n,a,c,d,_,y,x){var L;let z,U,re,be,ge,Je,vt=0,Rt=0,sn=0,un=0,sr=!1,Ln=0,cn=0,Fn,kn,Zn=16e6-c.size>>3;C.assert(c!==op||!d,"no error reporting in identity checking");let Hn=Er(n,a,3,!!d,_);if(kn&&jo(),sr){let it=aee(n,a,0,c,!1);c.set(it,6),(L=lr)==null||L.instant(lr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:Rt,targetDepth:sn});let Tt=Zn<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,en=qe(d||N,Tt,jn(n),jn(a));x&&(x.errors||(x.errors=[])).push(en)}else if(z){if(y){let en=y();en&&(Roe(en,z),z=en)}let it;if(_&&d&&!Hn&&n.symbol){let en=$i(n.symbol);if(en.originatingImport&&!Wp(en.originatingImport)&&Vf(pr(en.target),a,c,void 0)){let Cr=Or(en.originatingImport,f.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);it=In(it,Cr)}}let Tt=Og(Vn(d),d,z,it);U&&ka(Tt,...U),x&&(x.errors||(x.errors=[])).push(Tt),(!x||!x.skipLogging)&&ns.add(Tt)}return d&&x&&x.skipLogging&&Hn===0&&C.assert(!!x.errors,"missed opportunity to interact with error."),Hn!==0;function er(it){z=it.errorInfo,Fn=it.lastSkippedInfo,kn=it.incompatibleStack,Ln=it.overrideNextErrorInfo,cn=it.skipParentCounter,U=it.relatedInfo}function Mo(){return{errorInfo:z,lastSkippedInfo:Fn,incompatibleStack:kn?.slice(),overrideNextErrorInfo:Ln,skipParentCounter:cn,relatedInfo:U?.slice()}}function Ao(it,...Tt){Ln++,Fn=void 0,(kn||(kn=[])).push([it,...Tt])}function jo(){let it=kn||[];kn=void 0;let Tt=Fn;if(Fn=void 0,it.length===1){vo(...it[0]),Tt&&up(void 0,...Tt);return}let en="",Kn=[];for(;it.length;){let[Cr,...Sn]=it.pop();switch(Cr.code){case f.Types_of_property_0_are_incompatible.code:{en.indexOf("new ")===0&&(en=`(${en})`);let yr=""+Sn[0];en.length===0?en=`${yr}`:$p(yr,as(V))?en=`${en}.${yr}`:yr[0]==="["&&yr[yr.length-1]==="]"?en=`${en}${yr}`:en=`${en}[${yr}]`;break}case f.Call_signature_return_types_0_and_1_are_incompatible.code:case f.Construct_signature_return_types_0_and_1_are_incompatible.code:case f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(en.length===0){let yr=Cr;Cr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?yr=f.Call_signature_return_types_0_and_1_are_incompatible:Cr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(yr=f.Construct_signature_return_types_0_and_1_are_incompatible),Kn.unshift([yr,Sn[0],Sn[1]])}else{let yr=Cr.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||Cr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Hr=Cr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Cr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";en=`${yr}${en}(${Hr})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Kn.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Sn[0],Sn[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Kn.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Sn[0],Sn[1],Sn[2]]);break}default:return C.fail(`Unhandled Diagnostic: ${Cr.code}`)}}en?vo(en[en.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,en):Kn.shift();for(let[Cr,...Sn]of Kn){let yr=Cr.elidedInCompatabilityPyramid;Cr.elidedInCompatabilityPyramid=!1,vo(Cr,...Sn),Cr.elidedInCompatabilityPyramid=yr}Tt&&up(void 0,...Tt)}function vo(it,...Tt){C.assert(!!d),kn&&jo(),!it.elidedInCompatabilityPyramid&&(cn===0?z=Uo(z,it,...Tt):cn--)}function Dc(it,...Tt){vo(it,...Tt),cn++}function Uf(it){C.assert(!!z),U?U.push(it):U=[it]}function up(it,Tt,en){kn&&jo();let[Kn,Cr]=lx(Tt,en),Sn=Tt,yr=Kn;if(w4(Tt)&&!gve(en)&&(Sn=vv(Tt),C.assert(!Sa(Sn,en),"generalized source shouldn't be assignable"),yr=Ab(Sn)),(en.flags&8388608&&!(Tt.flags&8388608)?en.objectType.flags:en.flags)&262144&&en!==de&&en!==ee){let zi=Bu(en),Go;zi&&(Sa(Sn,zi)||(Go=Sa(Tt,zi)))?vo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Go?Kn:yr,Cr,jn(zi)):(z=void 0,vo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Cr,yr))}if(it)it===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ce&&P4e(Tt,en).length&&(it=f.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(c===xp)it=f.Type_0_is_not_comparable_to_type_1;else if(Kn===Cr)it=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ce&&P4e(Tt,en).length)it=f.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(Tt.flags&128&&en.flags&1048576){let zi=Gpt(Tt,en);if(zi){vo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,yr,Cr,jn(zi));return}}it=f.Type_0_is_not_assignable_to_type_1}vo(it,yr,Cr)}function Mn(it,Tt){let en=Ib(it.symbol)?jn(it,it.symbol.valueDeclaration):jn(it),Kn=Ib(Tt.symbol)?jn(Tt,Tt.symbol.valueDeclaration):jn(Tt);($l===it&&ke===Tt||vc===it&&Dt===Tt||cl===it&&yi===Tt||MOe()===it&&Di===Tt)&&vo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Kn,en)}function Qn(it,Tt,en){return Wa(it)?it.target.readonly&&kz(Tt)?(en&&vo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,jn(it),jn(Tt)),!1):l1(Tt):$P(it)&&kz(Tt)?(en&&vo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,jn(it),jn(Tt)),!1):Wa(Tt)?jf(it):!0}function lo(it,Tt,en){return Er(it,Tt,3,en)}function Er(it,Tt,en=3,Kn=!1,Cr,Sn=0){if(it===Tt)return-1;if(it.flags&524288&&Tt.flags&402784252)return c===xp&&!(Tt.flags&131072)&&k4(Tt,it,c)||k4(it,Tt,c,Kn?vo:void 0)?-1:(Kn&&ko(it,Tt,it,Tt,Cr),0);let yr=Nz(it,!1),Hr=Nz(Tt,!0);if(yr===Hr)return-1;if(c===op)return yr.flags!==Hr.flags?0:yr.flags&67358815?-1:(ls(yr,Hr),xi(yr,Hr,!1,0,en));if(yr.flags&262144&&FT(yr)===Hr)return-1;if(yr.flags&470302716&&Hr.flags&1048576){let zi=Hr.types,Go=zi.length===2&&zi[0].flags&98304?zi[1]:zi.length===3&&zi[0].flags&98304&&zi[1].flags&98304?zi[2]:void 0;if(Go&&!(Go.flags&98304)&&(Hr=Nz(Go,!0),yr===Hr))return-1}if(c===xp&&!(Hr.flags&131072)&&k4(Hr,yr,c)||k4(yr,Hr,c,Kn?vo:void 0))return-1;if(yr.flags&469499904||Hr.flags&469499904){if(!(Sn&2)&&d1(yr)&&Wr(yr)&8192&&Vu(yr,Hr,Kn))return Kn&&up(Cr,yr,Tt.aliasSymbol?Tt:Hr),0;let Go=(c!==xp||g_(yr))&&!(Sn&2)&&yr.flags&405405692&&yr!==Pe&&Hr.flags&2621440&&L4e(Hr)&&(ys(yr).length>0||hte(yr)),ha=!!(Wr(yr)&2048);if(Go&&!kct(yr,Hr,ha)){if(Kn){let zo=jn(it.aliasSymbol?it:yr),Ra=jn(Tt.aliasSymbol?Tt:Hr),Ns=Yo(yr,0),_s=Yo(yr,1);Ns.length>0&&Er(ms(Ns[0]),Hr,1,!1)||_s.length>0&&Er(ms(_s[0]),Hr,1,!1)?vo(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,zo,Ra):vo(f.Type_0_has_no_properties_in_common_with_type_1,zo,Ra)}return 0}ls(yr,Hr);let Ti=yr.flags&1048576&&yr.types.length<4&&!(Hr.flags&1048576)||Hr.flags&1048576&&Hr.types.length<4&&!(yr.flags&469499904)?Ld(yr,Hr,Kn,Sn):xi(yr,Hr,Kn,Sn,en);if(Ti)return Ti}return Kn&&ko(it,Tt,yr,Hr,Cr),0}function ko(it,Tt,en,Kn,Cr){var Sn,yr;let Hr=!!Tve(it),zi=!!Tve(Tt);en=it.aliasSymbol||Hr?it:en,Kn=Tt.aliasSymbol||zi?Tt:Kn;let Go=Ln>0;if(Go&&Ln--,en.flags&524288&&Kn.flags&524288){let ha=z;Qn(en,Kn,!0),z!==ha&&(Go=!!z)}if(en.flags&524288&&Kn.flags&402784252)Mn(en,Kn);else if(en.symbol&&en.flags&524288&&Pe===en)vo(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Wr(en)&2048&&Kn.flags&2097152){let ha=Kn.types,ga=jE(nf.IntrinsicAttributes,d),Ti=jE(nf.IntrinsicClassAttributes,d);if(!qt(ga)&&!qt(Ti)&&(wr(ha,ga)||wr(ha,Ti)))return}else z=bge(z,Tt);if(!Cr&&Go){Fn=[en,Kn];return}if(up(Cr,en,Kn),en.flags&262144&&((yr=(Sn=en.symbol)==null?void 0:Sn.declarations)!=null&&yr[0])&&!FT(en)){let ha=lve(en);if(ha.constraint=co(Kn,WE(en,ha)),mz(ha)){let ga=jn(Kn,en.symbol.declarations[0]);Uf(Or(en.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,ga))}}}function ls(it,Tt){if(lr&&it.flags&3145728&&Tt.flags&3145728){let en=it,Kn=Tt;if(en.objectFlags&Kn.objectFlags&32768)return;let Cr=en.types.length,Sn=Kn.types.length;Cr*Sn>1e6&&lr.instant(lr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:it.id,sourceSize:Cr,targetId:Tt.id,targetSize:Sn,pos:d?.pos,end:d?.end})}}function As(it,Tt){return ii(nd(it,(Kn,Cr)=>{var Sn;Cr=Md(Cr);let yr=Cr.flags&3145728?_z(Cr,Tt):n1(Cr,Tt),Hr=yr&&pr(yr)||((Sn=px(Cr,Tt))==null?void 0:Sn.type)||Oe;return In(Kn,Hr)},void 0)||et)}function Vu(it,Tt,en){var Kn;if(!$z(Tt)||!me&&Wr(Tt)&4096)return!1;let Cr=!!(Wr(it)&2048);if((c===jd||c===xp)&&(nM(Pe,Tt)||!Cr&&gv(Tt)))return!1;let Sn=Tt,yr;Tt.flags&1048576&&(Sn=Y7e(it,Tt,Er)||Uvt(Tt),yr=Sn.flags&1048576?Sn.types:[Sn]);for(let Hr of ys(it))if(za(Hr,it.symbol)&&!N4e(it,Hr)){if(!_ye(Sn,Hr.escapedName,Cr)){if(en){let zi=uc(Sn,$z);if(!d)return C.fail();if(Y1(d)||sd(d)||sd(d.parent)){Hr.valueDeclaration&&O_(Hr.valueDeclaration)&&Vn(d)===Vn(Hr.valueDeclaration.name)&&(d=Hr.valueDeclaration.name);let Go=Ai(Hr),ha=y6e(Go,zi),ga=ha?Ai(ha):void 0;ga?vo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Go,jn(zi),ga):vo(f.Property_0_does_not_exist_on_type_1,Go,jn(zi))}else{let Go=((Kn=it.symbol)==null?void 0:Kn.declarations)&&Xc(it.symbol.declarations),ha;if(Hr.valueDeclaration&&zn(Hr.valueDeclaration,ga=>ga===Go)&&Vn(Go)===Vn(d)){let ga=Hr.valueDeclaration;C.assertNode(ga,wg);let Ti=ga.name;d=Ti,Ve(Ti)&&(ha=Aye(Ti,zi))}ha!==void 0?Dc(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ai(Hr),jn(zi),ha):Dc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ai(Hr),jn(zi))}}return!0}if(yr&&!Er(pr(Hr),As(yr,Hr.escapedName),3,en))return en&&Ao(f.Types_of_property_0_are_incompatible,Ai(Hr)),!0}return!1}function za(it,Tt){return it.valueDeclaration&&Tt.valueDeclaration&&it.valueDeclaration.parent===Tt.valueDeclaration}function Ld(it,Tt,en,Kn){if(it.flags&1048576){if(Tt.flags&1048576){let Cr=it.origin;if(Cr&&Cr.flags&2097152&&Tt.aliasSymbol&&wr(Cr.types,Tt))return-1;let Sn=Tt.origin;if(Sn&&Sn.flags&1048576&&it.aliasSymbol&&wr(Sn.types,it))return-1}return c===xp?Ie(it,Tt,en&&!(it.flags&402784252),Kn):Mr(it,Tt,en&&!(it.flags&402784252),Kn)}if(Tt.flags&1048576)return yl(W4(it),Tt,en&&!(it.flags&402784252)&&!(Tt.flags&402784252),Kn);if(Tt.flags&2097152)return ut(it,Tt,en,2);if(c===xp&&Tt.flags&402784252){let Cr=Io(it.types,Sn=>Sn.flags&465829888?Bu(Sn)||mn:Sn);if(Cr!==it.types){if(it=Ea(Cr),it.flags&131072)return 0;if(!(it.flags&2097152))return Er(it,Tt,1,!1)||Er(Tt,it,1,!1)}}return Ie(it,Tt,!1,1)}function Ol(it,Tt){let en=-1,Kn=it.types;for(let Cr of Kn){let Sn=yl(Cr,Tt,!1,0);if(!Sn)return 0;en&=Sn}return en}function yl(it,Tt,en,Kn){let Cr=Tt.types;if(Tt.flags&1048576){if(mv(Cr,it))return-1;if(c!==xp&&Wr(Tt)&32768&&!(it.flags&1024)&&(it.flags&2688||(c===Ch||c===kf)&&it.flags&256)){let yr=it===it.regularType?it.freshType:it.regularType,Hr=it.flags&128?ke:it.flags&256?Dt:it.flags&2048?Pt:void 0;return Hr&&mv(Cr,Hr)||yr&&mv(Cr,yr)?-1:0}let Sn=l8e(Tt,it);if(Sn){let yr=Er(it,Sn,2,!1,void 0,Kn);if(yr)return yr}}for(let Sn of Cr){let yr=Er(it,Sn,2,!1,void 0,Kn);if(yr)return yr}if(en){let Sn=M4e(it,Tt,Er);Sn&&Er(it,Sn,2,!0,void 0,Kn)}return 0}function ut(it,Tt,en,Kn){let Cr=-1,Sn=Tt.types;for(let yr of Sn){let Hr=Er(it,yr,2,en,void 0,Kn);if(!Hr)return 0;Cr&=Hr}return Cr}function Ie(it,Tt,en,Kn){let Cr=it.types;if(it.flags&1048576&&mv(Cr,Tt))return-1;let Sn=Cr.length;for(let yr=0;yr=yr.types.length&&Sn.length%yr.types.length===0){let ha=Er(zi,yr.types[Hr%yr.types.length],3,!1,void 0,Kn);if(ha){Cr&=ha;continue}}let Go=Er(zi,Tt,1,en,void 0,Kn);if(!Go)return 0;Cr&=Go}return Cr}function fi(it=et,Tt=et,en=et,Kn,Cr){if(it.length!==Tt.length&&c===op)return 0;let Sn=it.length<=Tt.length?it.length:Tt.length,yr=-1;for(let Hr=0;Hr(zo|=_s?16:8,Ti(_s)));let Ra;return un===3?((Sn=lr)==null||Sn.instant(lr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:it.id,sourceIdStack:ge.map(_s=>_s.id),targetId:Tt.id,targetIdStack:Je.map(_s=>_s.id),depth:Rt,targetDepth:sn}),Ra=3):((yr=lr)==null||yr.push(lr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:it.id,targetId:Tt.id}),Ra=Ri(it,Tt,en,Kn),(Hr=lr)==null||Hr.pop()),pa&&(pa=Ti),Cr&1&&Rt--,Cr&2&&sn--,un=ga,Ra?(Ra===-1||Rt===0&&sn===0)&&Ns(Ra===-1||Ra===3):(c.set(zi,(en?4:0)|2|zo),Zn--,Ns(!1)),Ra;function Ns(_s){for(let Nc=ha;NcHr!==it)&&(Sn=Er(yr,Tt,1,!1,void 0,Kn))}Sn&&!(Kn&2)&&Tt.flags&2097152&&!jT(Tt)&&it.flags&2621440?(Sn&=Si(it,Tt,en,void 0,!1,0),Sn&&d1(it)&&Wr(it)&8192&&(Sn&=cs(it,Tt,!1,en,0))):Sn&&JZ(Tt)&&!l1(Tt)&&it.flags&2097152&&Md(it).flags&3670016&&!Et(it.types,yr=>yr===Tt||!!(Wr(yr)&262144))&&(Sn&=Si(it,Tt,en,void 0,!0,Kn))}return Sn&&er(Cr),Sn}function Ur(it,Tt){let en=Md(OT(Tt)),Kn=[];return pge(en,8576,!1,Cr=>void Kn.push(co(it,C4(Tt.mapper,f_(Tt),Cr)))),ii(Kn)}function Dr(it,Tt,en,Kn,Cr){let Sn,yr,Hr=!1,zi=it.flags,Go=Tt.flags;if(c===op){if(zi&3145728){let Ti=Ol(it,Tt);return Ti&&(Ti&=Ol(Tt,it)),Ti}if(zi&4194304)return Er(it.type,Tt.type,3,!1);if(zi&8388608&&(Sn=Er(it.objectType,Tt.objectType,3,!1))&&(Sn&=Er(it.indexType,Tt.indexType,3,!1))||zi&16777216&&it.root.isDistributive===Tt.root.isDistributive&&(Sn=Er(it.checkType,Tt.checkType,3,!1))&&(Sn&=Er(it.extendsType,Tt.extendsType,3,!1))&&(Sn&=Er(o1(it),o1(Tt),3,!1))&&(Sn&=Er(a1(it),a1(Tt),3,!1))||zi&33554432&&(Sn=Er(it.baseType,Tt.baseType,3,!1))&&(Sn&=Er(it.constraint,Tt.constraint,3,!1)))return Sn;if(!(zi&524288))return 0}else if(zi&3145728||Go&3145728){if(Sn=Ld(it,Tt,en,Kn))return Sn;if(!(zi&465829888||zi&524288&&Go&1048576||zi&2097152&&Go&467402752))return 0}if(zi&17301504&&it.aliasSymbol&&it.aliasTypeArguments&&it.aliasSymbol===Tt.aliasSymbol&&!(iee(it)||iee(Tt))){let Ti=k4e(it.aliasSymbol);if(Ti===et)return 1;let zo=$i(it.aliasSymbol).typeParameters,Ra=zh(zo),Ns=wb(it.aliasTypeArguments,zo,Ra,cr(it.aliasSymbol.valueDeclaration)),_s=wb(Tt.aliasTypeArguments,zo,Ra,cr(it.aliasSymbol.valueDeclaration)),Nc=ga(Ns,_s,Ti,Kn);if(Nc!==void 0)return Nc}if(j4e(it)&&!it.target.readonly&&(Sn=Er(qs(it)[0],Tt,1))||j4e(Tt)&&(Tt.target.readonly||kz(Bu(it)||it))&&(Sn=Er(it,qs(Tt)[0],2)))return Sn;if(Go&262144){if(Wr(it)&32&&!it.declaration.nameType&&Er($_(Tt),gf(it),3)&&!(Wh(it)&4)){let Ti=pv(it),zo=Pp(Tt,f_(it));if(Sn=Er(Ti,zo,3,en))return Sn}if(c===xp&&zi&262144){let Ti=Pd(it);if(Ti)for(;Ti&&jm(Ti,zo=>!!(zo.flags&262144));){if(Sn=Er(Ti,Tt,1,!1))return Sn;Ti=Pd(Ti)}return 0}}else if(Go&4194304){let Ti=Tt.type;if(zi&4194304&&(Sn=Er(Ti,it.type,3,!1)))return Sn;if(Wa(Ti)){if(Sn=Er(it,GOe(Ti),2,en))return Sn}else{let zo=mge(Ti);if(zo){if(Er(it,$_(zo,Tt.indexFlags|4),2,en)===-1)return-1}else if(Hd(Ti)){let Ra=py(Ti),Ns=gf(Ti),_s;if(Ra&&_D(Ti)){let Nc=Ur(Ra,Ti);_s=ii([Nc,Ra])}else _s=Ra||Ns;if(Er(it,_s,2,en)===-1)return-1}}}else if(Go&8388608){if(zi&8388608){if((Sn=Er(it.objectType,Tt.objectType,3,en))&&(Sn&=Er(it.indexType,Tt.indexType,3,en)),Sn)return Sn;en&&(yr=z)}if(c===jd||c===xp){let Ti=Tt.objectType,zo=Tt.indexType,Ra=Bu(Ti)||Ti,Ns=Bu(zo)||zo;if(!jT(Ra)&&!UT(Ns)){let _s=4|(Ra!==Ti?2:0),Nc=Fb(Ra,Ns,_s);if(Nc){if(en&&yr&&er(Cr),Sn=Er(it,Nc,2,en,void 0,Kn))return Sn;en&&yr&&z&&(z=ha([yr])<=ha([z])?yr:z)}}}en&&(yr=void 0)}else if(Hd(Tt)&&c!==op){let Ti=!!Tt.declaration.nameType,zo=pv(Tt),Ra=Wh(Tt);if(!(Ra&8)){if(!Ti&&zo.flags&8388608&&zo.objectType===it&&zo.indexType===f_(Tt))return-1;if(!Hd(it)){let Ns=Ti?py(Tt):gf(Tt),_s=$_(it,2),Nc=Ra&4,Uh=Nc?dz(Ns,_s):void 0;if(Nc?!(Uh.flags&131072):Er(Ns,_s,3)){let Sv=pv(Tt),iA=f_(Tt),oA=rM(Sv,-98305);if(!Ti&&oA.flags&8388608&&oA.indexType===iA){if(Sn=Er(it,oA.objectType,2,en))return Sn}else{let gM=Ti?Uh||Ns:Uh?Ea([Uh,iA]):iA,E_=Pp(it,gM);if(Sn=Er(E_,Sv,3,en))return Sn}}yr=z,er(Cr)}}}else if(Go&16777216){if(YP(Tt,Je,sn,10))return 3;let Ti=Tt;if(!Ti.root.inferTypeParameters&&!Jlt(Ti.root)&&!(it.flags&16777216&&it.root===Ti.root)){let zo=!Sa(P4(Ti.checkType),P4(Ti.extendsType)),Ra=!zo&&Sa(qT(Ti.checkType),qT(Ti.extendsType));if((Sn=zo?-1:Er(it,o1(Ti),2,!1,void 0,Kn))&&(Sn&=Ra?-1:Er(it,a1(Ti),2,!1,void 0,Kn),Sn))return Sn}}else if(Go&134217728){if(zi&134217728){if(c===xp)return but(it,Tt)?0:-1;co(it,du)}if(Eee(it,Tt))return-1}else if(Tt.flags&268435456&&!(it.flags&268435456)&&bee(it,Tt))return-1;if(zi&8650752){if(!(zi&8388608&&Go&8388608)){let Ti=FT(it)||mn;if(Sn=Er(Ti,Tt,1,!1,void 0,Kn))return Sn;if(Sn=Er(qp(Ti,it),Tt,1,en&&Ti!==mn&&!(Go&zi&262144),void 0,Kn))return Sn;if(vge(it)){let zo=FT(it.indexType);if(zo&&(Sn=Er(Pp(it.objectType,zo),Tt,1,en)))return Sn}}}else if(zi&4194304){let Ti=Qge(it.type,it.indexFlags)&&Wr(it.type)&32;if(Sn=Er(Fs,Tt,1,en&&!Ti))return Sn;if(Ti){let zo=it.type,Ra=py(zo),Ns=Ra&&_D(zo)?Ur(Ra,zo):Ra||gf(zo);if(Sn=Er(Ns,Tt,1,en))return Sn}}else if(zi&134217728&&!(Go&524288)){if(!(Go&134217728)){let Ti=Bu(it);if(Ti&&Ti!==it&&(Sn=Er(Ti,Tt,1,en)))return Sn}}else if(zi&268435456)if(Go&268435456){if(it.symbol!==Tt.symbol)return 0;if(Sn=Er(it.type,Tt.type,3,en))return Sn}else{let Ti=Bu(it);if(Ti&&(Sn=Er(Ti,Tt,1,en)))return Sn}else if(zi&16777216){if(YP(it,ge,Rt,10))return 3;if(Go&16777216){let Ra=it.root.inferTypeParameters,Ns=it.extendsType,_s;if(Ra){let Nc=z4(Ra,void 0,0,lo);bv(Nc.inferences,Tt.extendsType,Ns,1536),Ns=co(Ns,Nc.mapper),_s=Nc.mapper}if(hv(Ns,Tt.extendsType)&&(Er(it.checkType,Tt.checkType,3)||Er(Tt.checkType,it.checkType,3))&&((Sn=Er(co(o1(it),_s),o1(Tt),3,en))&&(Sn&=Er(a1(it),a1(Tt),3,en)),Sn))return Sn}let Ti=_ge(it);if(Ti&&(Sn=Er(Ti,Tt,1,en)))return Sn;let zo=!(Go&16777216)&&mz(it)?eOe(it):void 0;if(zo&&(er(Cr),Sn=Er(zo,Tt,1,en)))return Sn}else{if(c!==Ch&&c!==kf&&ist(Tt)&&gv(it))return-1;if(Hd(Tt))return Hd(it)&&(Sn=ct(it,Tt,en))?Sn:0;let Ti=!!(zi&402784252);if(c!==op)it=Md(it),zi=it.flags;else if(Hd(it))return 0;if(Wr(it)&4&&Wr(Tt)&4&&it.target===Tt.target&&!Wa(it)&&!(iee(it)||iee(Tt))){if(cee(it))return-1;let zo=yve(it.target);if(zo===et)return 1;let Ra=ga(qs(it),qs(Tt),zo,Kn);if(Ra!==void 0)return Ra}else{if($P(Tt)?cp(it,l1):jf(Tt)&&cp(it,zo=>Wa(zo)&&!zo.target.readonly))return c!==op?Er(r1(it,Dt)||j,r1(Tt,Dt)||j,3,en):0;if(Vb(it)&&Wa(Tt)&&!Vb(Tt)){let zo=fv(it);if(zo!==it)return Er(zo,Tt,1,en)}else if((c===Ch||c===kf)&&gv(Tt)&&Wr(Tt)&8192&&!gv(it))return 0}if(zi&2621440&&Go&524288){let zo=en&&z===Cr.errorInfo&&!Ti;if(Sn=Si(it,Tt,zo,void 0,!1,Kn),Sn&&(Sn&=fo(it,Tt,0,zo,Kn),Sn&&(Sn&=fo(it,Tt,1,zo,Kn),Sn&&(Sn&=cs(it,Tt,Ti,zo,Kn)))),Hr&&Sn)z=yr||z||Cr.errorInfo;else if(Sn)return Sn}if(zi&2621440&&Go&1048576){let zo=rM(Tt,36175872);if(zo.flags&1048576){let Ra=Ot(it,zo);if(Ra)return Ra}}}return 0;function ha(Ti){return Ti?nd(Ti,(zo,Ra)=>zo+1+ha(Ra.next),0):0}function ga(Ti,zo,Ra,Ns){if(Sn=fi(Ti,zo,Ra,en,Ns))return Sn;if(Et(Ra,Nc=>!!(Nc&24))){yr=void 0,er(Cr);return}let _s=zo&&wct(zo,Ra);if(Hr=!_s,Ra!==et&&!_s){if(Hr&&!(en&&Et(Ra,Nc=>(Nc&7)===0)))return 0;yr=z,er(Cr)}}}function ct(it,Tt,en){if(c===xp||(c===op?Wh(it)===Wh(Tt):fge(it)<=fge(Tt))){let Cr,Sn=gf(Tt),yr=co(gf(it),fge(it)<0?Is:du);if(Cr=Er(Sn,yr,3,en)){let Hr=Mp([f_(it)],[f_(Tt)]);if(co(py(it),Hr)===co(py(Tt),Hr))return Cr&Er(co(pv(it),Hr),pv(Tt),3,en)}}return 0}function Ot(it,Tt){var en;let Kn=ys(it),Cr=s8e(Kn,Tt);if(!Cr)return 0;let Sn=1;for(let ga of Cr)if(Sn*=Kut(Pb(ga)),Sn>25)return(en=lr)==null||en.instant(lr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:it.id,targetId:Tt.id,numCombinations:Sn}),0;let yr=new Array(Cr.length),Hr=new Set;for(let ga=0;gaga[Ra],!1,0,Y||c===xp))continue e}bf(Go,zo,Cv),Ti=!0}if(!Ti)return 0}let ha=-1;for(let ga of Go)if(ha&=Si(it,ga,!1,Hr,!1,0),ha&&(ha&=fo(it,ga,0,!1,0),ha&&(ha&=fo(it,ga,1,!1,0),ha&&!(Wa(it)&&Wa(ga))&&(ha&=cs(it,ga,!1,!1,0)))),!ha)return ha;return ha}function tn(it,Tt){if(!Tt||it.length===0)return it;let en;for(let Kn=0;Kn5?vo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,jn(it),jn(Tt),Ft(Sn.slice(0,4),yr=>Ai(yr)).join(", "),Sn.length-4):vo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,jn(it),jn(Tt),Ft(Sn,yr=>Ai(yr)).join(", ")),Cr&&z&&Ln++)}function Si(it,Tt,en,Kn,Cr,Sn){if(c===op)return mi(it,Tt,Kn);let yr=-1;if(Wa(Tt)){if(l1(it)){if(!Tt.target.readonly&&($P(it)||Wa(it)&&it.target.readonly))return 0;let ga=my(it),Ti=my(Tt),zo=Wa(it)?it.target.combinedFlags&4:4,Ra=Tt.target.combinedFlags&4,Ns=Wa(it)?it.target.minLength:0,_s=Tt.target.minLength;if(!zo&&ga<_s)return en&&vo(f.Source_has_0_element_s_but_target_requires_1,ga,_s),0;if(!Ra&&Ti=Sv?Ti-1-Math.min(Hm,iA):E_,Nr=Tt.target.elementFlags[Mt];if(Nr&8&&!(Sx&8))return en&&vo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Mt),0;if(Sx&8&&!(Nr&12))return en&&vo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,E_,Mt),0;if(Nr&1&&!(Sx&1))return en&&vo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Mt),0;if(gM&&((Sx&12||Nr&12)&&(gM=!1),gM&&Kn?.has(""+E_)))continue;let _i=Ub(Nc[E_],!!(Sx&Nr&2)),Xr=Uh[Mt],di=Sx&8&&Nr&4?Gu(Xr):Ub(Xr,!!(Nr&2)),rs=Er(_i,di,3,en,void 0,Sn);if(!rs)return en&&(Ti>1||ga>1)&&(oA&&E_>=Sv&&Hm>=iA&&Sv!==ga-iA-1?Ao(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Sv,ga-iA-1,Mt):Ao(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,E_,Mt)),0;yr&=rs}return yr}if(Tt.target.combinedFlags&12)return 0}let Hr=(c===Ch||c===kf)&&!d1(it)&&!cee(it)&&!Wa(it),zi=Ove(it,Tt,Hr,!1);if(zi)return en&&xn(it,Tt)&&Wn(it,Tt,zi,Hr),0;if(d1(Tt)){for(let ga of tn(ys(it),Kn))if(!n1(Tt,ga.escapedName)&&!(pr(ga).flags&32768))return en&&vo(f.Property_0_does_not_exist_on_type_1,Ai(ga),jn(Tt)),0}let Go=ys(Tt),ha=Wa(it)&&Wa(Tt);for(let ga of tn(Go,Kn)){let Ti=ga.escapedName;if(!(ga.flags&4194304)&&(!ha||sg(Ti)||Ti==="length")&&(!Cr||ga.flags&16777216)){let zo=ba(it,Ti);if(zo&&zo!==ga){let Ra=dn(it,Tt,zo,ga,Pb,en,Sn,c===xp);if(!Ra)return 0;yr&=Ra}}}return yr}function mi(it,Tt,en){if(!(it.flags&524288&&Tt.flags&524288))return 0;let Kn=tn(kb(it),en),Cr=tn(kb(Tt),en);if(Kn.length!==Cr.length)return 0;let Sn=-1;for(let yr of Kn){let Hr=n1(Tt,yr.escapedName);if(!Hr)return 0;let zi=Eve(yr,Hr,Er);if(!zi)return 0;Sn&=zi}return Sn}function fo(it,Tt,en,Kn,Cr){var Sn,yr;if(c===op)return fa(it,Tt,en);if(Tt===on||it===on)return-1;let Hr=it.symbol&&th(it.symbol.valueDeclaration),zi=Tt.symbol&&th(Tt.symbol.valueDeclaration),Go=Yo(it,Hr&&en===1?0:en),ha=Yo(Tt,zi&&en===1?0:en);if(en===1&&Go.length&&ha.length){let Ns=!!(Go[0].flags&4),_s=!!(ha[0].flags&4);if(Ns&&!_s)return Kn&&vo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!b_(Go[0],ha[0],Kn))return 0}let ga=-1,Ti=en===1?Ui:ni,zo=Wr(it),Ra=Wr(Tt);if(zo&64&&Ra&64&&it.symbol===Tt.symbol||zo&4&&Ra&4&&it.target===Tt.target){C.assertEqual(Go.length,ha.length);for(let Ns=0;Nskh(Sv,void 0,262144,en);return vo(f.Type_0_is_not_assignable_to_type_1,Uh(_s),Uh(Nc)),vo(f.Types_of_construct_signatures_are_incompatible),ga}}else e:for(let Ns of ha){let _s=Mo(),Nc=Kn;for(let Uh of Go){let Sv=mo(Uh,Ns,!0,Nc,Cr,Ti(Uh,Ns));if(Sv){ga&=Sv,er(_s);continue e}Nc=!1}return Nc&&vo(f.Type_0_provides_no_match_for_the_signature_1,jn(it),kh(Ns,void 0,void 0,en)),0}return ga}function xn(it,Tt){let en=hz(it,0),Kn=hz(it,1),Cr=kb(it);return(en.length||Kn.length)&&!Cr.length?!!(Yo(Tt,0).length&&en.length||Yo(Tt,1).length&&Kn.length):!0}function ni(it,Tt){return it.parameters.length===0&&Tt.parameters.length===0?(en,Kn)=>Ao(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,jn(en),jn(Kn)):(en,Kn)=>Ao(f.Call_signature_return_types_0_and_1_are_incompatible,jn(en),jn(Kn))}function Ui(it,Tt){return it.parameters.length===0&&Tt.parameters.length===0?(en,Kn)=>Ao(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,jn(en),jn(Kn)):(en,Kn)=>Ao(f.Construct_signature_return_types_0_and_1_are_incompatible,jn(en),jn(Kn))}function mo(it,Tt,en,Kn,Cr,Sn){let yr=c===Ch?16:c===kf?24:0;return mve(en?A4(it):it,en?A4(Tt):Tt,yr,Kn,vo,Sn,Hr,du);function Hr(zi,Go,ha){return Er(zi,Go,3,ha,void 0,Cr)}}function fa(it,Tt,en){let Kn=Yo(it,en),Cr=Yo(Tt,en);if(Kn.length!==Cr.length)return 0;let Sn=-1;for(let yr=0;yrzi.keyType===ke),Hr=-1;for(let zi of Sn){let Go=c!==kf&&!en&&yr&&zi.type.flags&1?-1:Hd(it)&&yr?Er(pv(it),zi.type,3,Kn):Cc(it,zi,Kn,Cr);if(!Go)return 0;Hr&=Go}return Hr}function Cc(it,Tt,en,Kn){let Cr=E4(it,Tt.keyType);return Cr?Cl(Cr,Tt,en,Kn):!(Kn&1)&&(c!==kf||Wr(it)&8192)&&_ee(it)?bc(it,Tt,en,Kn):(en&&vo(f.Index_signature_for_type_0_is_missing_in_type_1,jn(Tt.keyType),jn(it)),0)}function Js(it,Tt){let en=hd(it),Kn=hd(Tt);if(en.length!==Kn.length)return 0;for(let Cr of Kn){let Sn=Ag(it,Cr.keyType);if(!(Sn&&Er(Sn.type,Cr.type,3)&&Sn.isReadonly===Cr.isReadonly))return 0}return-1}function b_(it,Tt,en){if(!it.declaration||!Tt.declaration)return!0;let Kn=WA(it.declaration,6),Cr=WA(Tt.declaration,6);return Cr===2||Cr===4&&Kn!==2||Cr!==4&&!Kn?!0:(en&&vo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,LT(Kn),LT(Cr)),!1)}}function gve(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Ke(n.types,gve);if(n.flags&465829888){let a=FT(n);if(a&&a!==n)return gve(a)}return g_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function P4e(n,a){return Wa(n)&&Wa(a)?et:ys(a).filter(c=>ree(Xe(n,c.escapedName),pr(c)))}function ree(n,a){return!!n&&!!a&&Dl(n,32768)&&!!F4(a)}function Lct(n){return ys(n).filter(a=>F4(pr(a)))}function M4e(n,a,c=pve){return Y7e(n,a,c)||Bvt(n,a)||Gvt(n,a)||Vvt(n,a)||jvt(n,a)}function vve(n,a,c){let d=n.types,_=d.map(x=>x.flags&402784252?0:-1);for(let[x,L]of a){let z=!1;for(let U=0;U_[L]),0):n;return y.flags&131072?n:y}function L4e(n){if(n.flags&524288){let a=m_(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Jn(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?Jn(n.types,L4e):!1}function kct(n,a,c){for(let d of ys(n))if(_ye(a,d.escapedName,c))return!0;return!1}function yve(n){return n===Qo||n===na||n.objectFlags&8?Z:w4e(n.symbol,n.typeParameters)}function k4e(n){return w4e(n,$i(n).typeParameters)}function w4e(n,a=et){var c,d;let _=$i(n);if(!_.variances){(c=lr)==null||c.push(lr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:gd(Qs(n))});let y=O0;O0||(O0=!0,VI=mu.length),_.variances=et;let x=[];for(let L of a){let z=bve(L),U=z&16384?z&8192?0:1:z&8192?2:void 0;if(U===void 0){let re=!1,be=!1,ge=pa;pa=Rt=>Rt?be=!0:re=!0;let Je=Pz(n,L,Tp),vt=Pz(n,L,Ms);U=(Sa(vt,Je)?1:0)|(Sa(Je,vt)?2:0),U===3&&Sa(Pz(n,L,Ic),Je)&&(U=4),pa=ge,(re||be)&&(re&&(U|=8),be&&(U|=16))}x.push(U)}y||(O0=!1,VI=0),_.variances=x,(d=lr)==null||d.pop({variances:x.map(C.formatVariance)})}return _.variances}function Pz(n,a,c){let d=WE(a,c),_=Qs(n);if(qt(_))return _;let y=n.flags&524288?vD(n,hy($i(n).typeParameters,d)):fy(_,hy(_.typeParameters,d));return mt.add(gd(y)),y}function iee(n){return mt.has(gd(n))}function bve(n){var a;return nd((a=n.symbol)==null?void 0:a.declarations,(c,d)=>c|cd(d),0)&28672}function wct(n,a){for(let c=0;c!!(a.flags&262144)||oee(a))}function Wct(n,a,c,d){let _=[],y="",x=z(n,0),L=z(a,0);return`${y}${x},${L}${c}`;function z(U,re=0){let be=""+U.target.id;for(let ge of qs(U)){if(ge.flags&262144){if(d||Oct(ge)){let Je=_.indexOf(ge);Je<0&&(Je=_.length,_.push(ge)),be+="="+Je;continue}y="*"}else if(re<4&&oee(ge)){be+="<"+z(ge,re+1)+">";continue}be+="-"+ge.id}return be}}function aee(n,a,c,d,_){if(d===op&&n.id>a.id){let x=n;n=a,a=x}let y=c?":"+c:"";return oee(n)&&oee(a)?Wct(n,a,y,_):`${n.id},${a.id}${y}`}function Mz(n,a){if(Al(n)&6){for(let c of n.links.containingType.types){let d=ba(c,n.escapedName),_=d&&Mz(d,a);if(_)return _}return}return a(n)}function gx(n){return n.parent&&n.parent.flags&32?Qs(Cd(n)):void 0}function see(n){let a=gx(n),c=a&&Np(a)[0];return c&&Xe(c,n.escapedName)}function zct(n,a){return Mz(n,c=>{let d=gx(c);return d?pD(d,a):!1})}function Bct(n,a){return!Mz(a,c=>If(c)&4?!zct(n,gx(c)):!1)}function O4e(n,a,c){return Mz(a,d=>If(d,c)&4?!pD(n,gx(d)):!1)?void 0:n}function YP(n,a,c,d=3){if(c>=d){if((Wr(n)&96)===96&&(n=F4e(n)),n.flags&2097152)return Et(n.types,L=>YP(L,a,c,d));let _=lee(n),y=0,x=0;for(let L=0;L=x&&(y++,y>=d))return!0;x=z.id}}}return!1}function F4e(n){let a;for(;(Wr(n)&96)===96&&(a=OT(n))&&(a.symbol||a.flags&2097152&&Et(a.types,c=>!!c.symbol));)n=a;return n}function W4e(n,a){return(Wr(n)&96)===96&&(n=F4e(n)),n.flags&2097152?Et(n.types,c=>W4e(c,a)):lee(n)===a}function lee(n){if(n.flags&524288&&!Wve(n)){if(Wr(n)&4&&n.node)return n.node;if(n.symbol&&!(Wr(n)&16&&n.symbol.flags&32))return n.symbol;if(Wa(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function Gct(n,a){return Eve(n,a,M4)!==0}function Eve(n,a,c){if(n===a)return-1;let d=If(n)&6,_=If(a)&6;if(d!==_)return 0;if(d){if(MD(n)!==MD(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return y_(n)!==y_(a)?0:c(pr(n),pr(a))}function Vct(n,a,c){let d=Kp(n),_=Kp(a),y=nh(n),x=nh(a),L=jh(n),z=jh(a);return!!(d===_&&y===x&&L===z||c&&y<=x)}function Lz(n,a,c,d,_,y){if(n===a)return-1;if(!Vct(n,a,c)||De(n.typeParameters)!==De(a.typeParameters))return 0;if(a.typeParameters){let z=Mp(n.typeParameters,a.typeParameters);for(let U=0;Ua|(c.flags&1048576?z4e(c.types):c.flags),0)}function Hct(n){if(n.length===1)return n[0];let a=Y?Io(n,d=>uc(d,_=>!(_.flags&98304))):n,c=Uct(a)?ii(a):nd(a,(d,_)=>Bb(d,_)?_:d);return a===n?c:Oz(c,z4e(n)&98304)}function qct(n){return nd(n,(a,c)=>Bb(c,a)?c:a)}function jf(n){return!!(Wr(n)&4)&&(n.target===Qo||n.target===na)}function $P(n){return!!(Wr(n)&4)&&n.target===na}function l1(n){return jf(n)||Wa(n)}function kz(n){return jf(n)&&!$P(n)||Wa(n)&&!n.target.readonly}function wz(n){return jf(n)?qs(n)[0]:void 0}function gy(n){return jf(n)||!(n.flags&98304)&&Sa(n,cf)}function Sve(n){return kz(n)||!(n.flags&98305)&&Sa(n,Ql)}function Tve(n){if(!(Wr(n)&4)||!(Wr(n.target)&3))return;if(Wr(n)&33554432)return Wr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;let a=n.target;if(Wr(a)&1){let _=xs(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}let c=Np(a);if(c.length!==1||Lb(n.symbol).size)return;let d=De(a.typeParameters)?co(c[0],Mp(a.typeParameters,qs(n).slice(0,a.typeParameters.length))):c[0];return De(qs(n))>De(a.typeParameters)&&(d=qp(d,Ya(qs(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=d}function B4e(n){return Y?n===Mi:n===Lt}function cee(n){let a=wz(n);return!!a&&B4e(a)}function QP(n){let a;return Wa(n)||!!ba(n,"0")||gy(n)&&!!(a=Xe(n,"length"))&&cp(a,c=>!!(c.flags&256))}function uee(n){return gy(n)||QP(n)}function Jct(n,a){let c=Xe(n,""+a);if(c)return c;if(cp(n,Wa))return U4e(n,a,V.noUncheckedIndexedAccess?Oe:void 0)}function Kct(n){return!(n.flags&240544)}function g_(n){return!!(n.flags&109472)}function G4e(n){let a=fv(n);return a.flags&2097152?Et(a.types,g_):g_(a)}function Xct(n){return n.flags&2097152&&vn(n.types,g_)||n}function w4(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Jn(n.types,g_):g_(n)}function vv(n){return n.flags&1056?NZ(n):n.flags&402653312?ke:n.flags&256?Dt:n.flags&2048?Pt:n.flags&512?yi:n.flags&1048576?Yct(n):n}function Yct(n){let a=`B${gd(n)}`;return XI(a)??pb(a,ul(n,vv))}function Ave(n){return n.flags&402653312?ke:n.flags&288?Dt:n.flags&2048?Pt:n.flags&512?yi:n.flags&1048576?ul(n,Ave):n}function BE(n){return n.flags&1056&&FE(n)?NZ(n):n.flags&128&&FE(n)?ke:n.flags&256&&FE(n)?Dt:n.flags&2048&&FE(n)?Pt:n.flags&512&&FE(n)?yi:n.flags&1048576?ul(n,BE):n}function V4e(n){return n.flags&8192?Di:n.flags&1048576?ul(n,V4e):n}function Ive(n,a){return ete(n,a)||(n=V4e(BE(n))),vd(n)}function $ct(n,a,c){if(n&&g_(n)){let d=a?c?$4(a):a:void 0;n=Ive(n,d)}return n}function xve(n,a,c,d){if(n&&g_(n)){let _=a?HE(c,a,d):void 0;n=Ive(n,_)}return n}function Wa(n){return!!(Wr(n)&4&&n.target.objectFlags&8)}function Vb(n){return Wa(n)&&!!(n.target.combinedFlags&8)}function j4e(n){return Vb(n)&&n.target.elementFlags.length===1}function dee(n){return ZP(n,n.target.fixedLength)}function U4e(n,a,c){return ul(n,d=>{let _=d,y=dee(_);return y?c&&a>=Jge(_.target)?ii([y,c]):y:Oe})}function Qct(n){let a=dee(n);return a&&Gu(a)}function ZP(n,a,c=0,d=!1,_=!1){let y=my(n)-c;if(a(c&12)===(a.target.elementFlags[d]&12))}function H4e({value:n}){return n.base10Value==="0"}function q4e(n){return uc(n,a=>mm(a,4194304))}function eut(n){return ul(n,tut)}function tut(n){return n.flags&4?Zo:n.flags&8?Ka:n.flags&64?Qu:n===Tn||n===Kt||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&H4e(n)?n:Vr}function Oz(n,a){let c=a&~n.flags&98304;return c===0?n:ii(c===32768?[n,Oe]:c===65536?[n,pe]:[n,Oe,pe])}function jb(n,a=!1){C.assert(Y);let c=a?ae:Oe;return n===c||n.flags&1048576&&n.types[0]===c?n:ii([n,c])}function nut(n){return Bd||(Bd=JP("NonNullable",524288,void 0)||ft),Bd!==ft?vD(Bd,[n]):Ea([n,Pa])}function yv(n){return Y?YT(n,2097152):n}function J4e(n){return Y?ii([n,J]):n}function pee(n){return Y?Aee(n,J):n}function fee(n,a,c){return c?pC(a)?jb(n):J4e(n):n}function O4(n,a){return b6(a)?yv(n):Hu(a)?pee(n):n}function Ub(n,a){return Ce&&a?Aee(n,w):n}function F4(n){return n===w||!!(n.flags&1048576)&&n.types[0]===w}function mee(n){return Ce?Aee(n,w):_m(n,524288)}function rut(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function _ee(n){let a=Wr(n);return n.flags&2097152?Jn(n.types,_ee):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!hte(n))||!!(a&4194304)||!!(a&1024&&_ee(n.source))}function JT(n,a){let c=Xa(n.flags,n.escapedName,Al(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);let d=$i(n).nameType;return d&&(c.links.nameType=d),c}function iut(n,a){let c=ua();for(let d of kb(n)){let _=pr(d),y=a(_);c.set(d.escapedName,y===_?d:JT(d,y))}return c}function W4(n){if(!(d1(n)&&Wr(n)&8192))return n;let a=n.regularType;if(a)return a;let c=n,d=iut(n,W4),_=Ls(c.symbol,d,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function K4e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function X4e(n){if(!n.siblings){let a=[];for(let c of X4e(n.parent))if(d1(c)){let d=n1(c,n.propertyName);d&&$T(pr(d),_=>{a.push(_)})}n.siblings=a}return n.siblings}function out(n){if(!n.resolvedProperties){let a=new Map;for(let c of X4e(n))if(d1(c)&&!(Wr(c)&2097152))for(let d of ys(c))a.set(d.escapedName,d);n.resolvedProperties=Vo(a.values())}return n.resolvedProperties}function aut(n,a){if(!(n.flags&4))return n;let c=pr(n),d=a&&K4e(a,n.escapedName,void 0),_=Rve(c,d);return _===c?n:JT(n,_)}function sut(n){let a=Ue.get(n.escapedName);if(a)return a;let c=JT(n,ae);return c.flags|=16777216,Ue.set(n.escapedName,c),c}function lut(n,a){let c=ua();for(let _ of kb(n))c.set(_.escapedName,aut(_,a));if(a)for(let _ of out(a))c.has(_.escapedName)||c.set(_.escapedName,sut(_));let d=Ls(n.symbol,c,et,et,Io(hd(n),_=>Bh(_.keyType,Jp(_.type),_.isReadonly)));return d.objectFlags|=Wr(n)&266240,d}function Jp(n){return Rve(n,void 0)}function Rve(n,a){if(Wr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=j;else if(d1(n))c=lut(n,a);else if(n.flags&1048576){let d=a||K4e(void 0,void 0,n.types),_=Io(n.types,y=>y.flags&98304?y:Rve(y,d));c=ii(_,Et(_,gv)?2:1)}else n.flags&2097152?c=Ea(Io(n.types,Jp)):l1(n)&&(c=fy(n.target,Io(qs(n),Jp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function hee(n){let a=!1;if(Wr(n)&65536){if(n.flags&1048576)if(Et(n.types,gv))a=!0;else for(let c of n.types)hee(c)&&(a=!0);if(l1(n))for(let c of qs(n))hee(c)&&(a=!0);if(d1(n))for(let c of kb(n)){let d=pr(c);Wr(d)&65536&&(hee(d)||qe(c.valueDeclaration,f.Object_literal_s_property_0_implicitly_has_an_1_type,Ai(c),jn(Jp(d))),a=!0)}}return a}function c1(n,a,c){let d=jn(Jp(a));if(cr(n)&&!hk(Vn(n),V))return;let _;switch(n.kind){case 226:case 172:case 171:_=me?f.Member_0_implicitly_has_an_1_type:f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let y=n;if(Ve(y.name)){let x=n0(y.name);if((nI(y.parent)||yh(y.parent)||bh(y.parent))&&y.parent.parameters.includes(y)&&(vl(y,y.name.escapedText,788968,void 0,y.name.escapedText,!0)||x&&vU(x))){let L="arg"+y.parent.parameters.indexOf(y),z=Ds(y.name)+(y.dotDotDotToken?"[]":"");_u(me,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,L,z);return}}_=n.dotDotDotToken?me?f.Rest_parameter_0_implicitly_has_an_any_type:f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:me?f.Parameter_0_implicitly_has_an_1_type:f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(_=f.Binding_element_0_implicitly_has_an_1_type,!me)return;break;case 324:qe(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return;case 330:me&&UR(n.parent)&&qe(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,d);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(me&&!n.name){c===3?qe(n,f.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,d):qe(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return}_=me?c===3?f._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:me&&qe(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:_=me?f.Variable_0_implicitly_has_an_1_type:f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}_u(me,n,_,Ds(Oo(n)),d)}function gee(n,a,c){r(()=>{me&&Wr(a)&65536&&(!c||!cye(n))&&(hee(a)||c1(n,a,c))})}function Dve(n,a,c){let d=Kp(n),_=Kp(a),y=q4(n),x=q4(a),L=x?_-1:_,z=y?L:Math.min(d,L),U=i1(n);if(U){let re=i1(a);re&&c(U,re)}for(let re=0;rea.typeParameter),Ft(n.inferences,(a,c)=>()=>(a.isFixed||(put(n),vee(n.inferences),a.isFixed=!0),zve(n,c))))}function dut(n){return sve(Ft(n.inferences,a=>a.typeParameter),Ft(n.inferences,(a,c)=>()=>zve(n,c)))}function vee(n){for(let a of n)a.isFixed||(a.inferredType=void 0)}function Pve(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function put(n){if(n.intraExpressionInferenceSites){for(let{node:a,type:c}of n.intraExpressionInferenceSites){let d=a.kind===174?U8e(a,2):Jd(a,2);d&&bv(n.inferences,c,d)}n.intraExpressionInferenceSites=void 0}}function Mve(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Y4e(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function fut(n){let a=tr(n.inferences,ND);return a.length?Nve(Ft(a,Y4e),n.signature,n.flags,n.compareTypes):void 0}function Lve(n){return n&&n.mapper}function u1(n){let a=Wr(n);if(a&524288)return!!(a&1048576);let c=!!(n.flags&465829888||n.flags&524288&&!$4e(n)&&(a&4&&(n.node||Et(qs(n),u1))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!$4e(n)&&Et(n.types,u1));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function $4e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let a=dl(n.aliasSymbol,265);return!!(a&&zn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function B4(n,a,c=0){return!!(n===a||n.flags&3145728&&Et(n.types,d=>B4(d,a,c))||c<3&&n.flags&16777216&&(B4(o1(n),a,c+1)||B4(a1(n),a,c+1)))}function mut(n,a){let c=Bf(n);return c?!!c.type&&B4(c.type,a):B4(ms(n),a)}function _ut(n){let a=ua();$T(n,d=>{if(!(d.flags&128))return;let _=ml(d.value),y=Xa(4,_);y.links.type=j,d.symbol&&(y.declarations=d.symbol.declarations,y.valueDeclaration=d.symbol.valueDeclaration),a.set(_,y)});let c=n.flags&4?[Bh(ke,Pa,!1)]:et;return Ls(void 0,a,et,et,c)}function Q4e(n,a,c){let d=n.id+","+a.id+","+c.id;if(Hc.has(d))return Hc.get(d);let _=n.id+","+(a.target||a).id;if(wr(ip,_))return;ip.push(_);let y=hut(n,a,c);return ip.pop(),Hc.set(d,y),y}function kve(n){return!(Wr(n)&262144)||d1(n)&&Et(ys(n),a=>kve(pr(a)))||Wa(n)&&Et(wE(n),kve)}function hut(n,a,c){if(!(Ag(n,ke)||ys(n).length!==0&&kve(n)))return;if(jf(n))return Gu(yee(qs(n)[0],a,c),$P(n));if(Wa(n)){let _=Ft(wE(n),x=>yee(x,a,c)),y=Wh(a)&4?Io(n.target.elementFlags,x=>x&2?1:x):n.target.elementFlags;return Gh(_,y,n.target.readonly,n.target.labeledElementDeclarations)}let d=Of(1040,void 0);return d.source=n,d.mappedType=a,d.constraintType=c,d}function gut(n){let a=$i(n);return a.type||(a.type=yee(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function yee(n,a,c){let d=Pp(c.type,f_(a)),_=pv(a),y=Mve(d);return bv([y],n,_),Z4e(y)||mn}function*wve(n,a,c,d){let _=ys(a);for(let y of _)if(!Vwe(y)&&(c||!(y.flags&16777216||Al(y)&48))){let x=ba(n,y.escapedName);if(!x)yield y;else if(d){let L=pr(y);if(L.flags&109472){let z=pr(x);z.flags&1||vd(z)===vd(L)||(yield y)}}}}function Ove(n,a,c,d){return D8(wve(n,a,c,d))}function vut(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLengthmx(y,_),n)===n&&bee(n,a)}return!1}function n8e(n,a){if(a.flags&2097152)return Jn(a.types,c=>c===sc||n8e(n,c));if(a.flags&4||Sa(n,a))return!0;if(n.flags&128){let c=n.value;return!!(a.flags&8&&t8e(c,!1)||a.flags&64&&Q3(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&bee(qd(c),a)||a.flags&134217728&&Eee(n,a))}if(n.flags&134217728){let c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&Sa(n.types[0],a)}return!1}function r8e(n,a){return n.flags&128?i8e([n.value],et,a):n.flags&134217728?Ma(n.texts,a.texts)?Ft(n.types,Sut):i8e(n.texts,n.types,a):void 0}function Eee(n,a){let c=r8e(n,a);return!!c&&Jn(c,(d,_)=>n8e(d,a.types[_]))}function Sut(n){return n.flags&402653317?n:GT(["",""],[n])}function i8e(n,a,c){let d=n.length-1,_=n[0],y=n[d],x=c.texts,L=x.length-1,z=x[0],U=x[L];if(d===0&&_.length0){let sr=ge,Ln=Je;for(;Ln=vt(sr).indexOf(un,Ln),!(Ln>=0);){if(sr++,sr===n.length)return;Ln=0}Rt(sr,Ln),Je+=un.length}else if(Je!wr(Er,ls)):Mn,ko?tr(Qn,ls=>!wr(ko,ls)):Qn]}function sr(Mn,Qn,lo){let Er=Mn.length!!Fn(ko));if(!Er||Qn&&Er!==Qn)return;Qn=Er}return Qn}function Zn(Mn,Qn,lo){let Er=0;if(lo&1048576){let ko,ls=Mn.flags&1048576?Mn.types:[Mn],As=new Array(ls.length),Vu=!1;for(let za of Qn)if(Fn(za))ko=za,Er++;else for(let Ld=0;LdAs[Ol]?void 0:Ld);if(za.length){ge(ii(za),ko);return}}}else for(let ko of Qn)Fn(ko)?Er++:ge(Mn,ko);if(lo&2097152?Er===1:Er>0)for(let ko of Qn)Fn(ko)&&Je(Mn,ko,1)}function Hn(Mn,Qn,lo){if(lo.flags&1048576||lo.flags&2097152){let Er=!1;for(let ko of lo.types)Er=Hn(Mn,Qn,ko)||Er;return Er}if(lo.flags&4194304){let Er=Fn(lo.type);if(Er&&!Er.isFixed&&!e8e(Mn)){let ko=Q4e(Mn,Qn,lo);ko&&Je(ko,Er.typeParameter,Wr(Mn)&262144?16:8)}return!0}if(lo.flags&262144){Je($_(Mn,Mn.pattern?2:0),lo,32);let Er=FT(lo);if(Er&&Hn(Mn,Qn,Er))return!0;let ko=Ft(ys(Mn),pr),ls=Ft(hd(Mn),As=>As!==jr?As.type:Vr);return ge(ii(xo(ko,ls)),pv(Qn)),!0}return!1}function er(Mn,Qn){if(Mn.flags&16777216)ge(Mn.checkType,Qn.checkType),ge(Mn.extendsType,Qn.extendsType),ge(o1(Mn),o1(Qn)),ge(a1(Mn),a1(Qn));else{let lo=[o1(Qn),a1(Qn)];Rt(Mn,lo,Qn.flags,_?64:0)}}function Mo(Mn,Qn){let lo=r8e(Mn,Qn),Er=Qn.types;if(lo||Jn(Qn.texts,ko=>ko.length===0))for(let ko=0;koyl|ut.flags,0);if(!(Ol&4)){let yl=ls.value;Ol&296&&!t8e(yl,!0)&&(Ol&=-297),Ol&2112&&!Q3(yl,!0)&&(Ol&=-2113);let ut=nd(Ld,(Ie,Pn)=>Pn.flags&Ol?Ie.flags&4?Ie:Pn.flags&4?ls:Ie.flags&134217728?Ie:Pn.flags&134217728&&Eee(ls,Pn)?ls:Ie.flags&268435456?Ie:Pn.flags&268435456&&yl===e4e(Pn.symbol,yl)?ls:Ie.flags&128?Ie:Pn.flags&128&&Pn.value===yl?Pn:Ie.flags&8?Ie:Pn.flags&8?h_(+yl):Ie.flags&32?Ie:Pn.flags&32?h_(+yl):Ie.flags&256?Ie:Pn.flags&256&&Pn.value===+yl?Pn:Ie.flags&64?Ie:Pn.flags&64?Eut(yl):Ie.flags&2048?Ie:Pn.flags&2048&&z1(Pn.value)===yl?Pn:Ie.flags&16?Ie:Pn.flags&16?yl==="true"?On:yl==="false"?Kt:yi:Ie.flags&512?Ie:Pn.flags&512&&Pn.intrinsicName===yl?Pn:Ie.flags&32768?Ie:Pn.flags&32768&&Pn.intrinsicName===yl?Pn:Ie.flags&65536?Ie:Pn.flags&65536&&Pn.intrinsicName===yl?Pn:Ie:Ie,Vr);if(!(ut.flags&131072)){ge(ut,As);continue}}}}ge(ls,As)}}function Ao(Mn,Qn){ge(gf(Mn),gf(Qn)),ge(pv(Mn),pv(Qn));let lo=py(Mn),Er=py(Qn);lo&&Er&&ge(lo,Er)}function jo(Mn,Qn){var lo,Er;if(Wr(Mn)&4&&Wr(Qn)&4&&(Mn.target===Qn.target||jf(Mn)&&jf(Qn))){sr(qs(Mn),qs(Qn),yve(Mn.target));return}if(Hd(Mn)&&Hd(Qn)&&Ao(Mn,Qn),Wr(Qn)&32&&!Qn.declaration.nameType){let ko=gf(Qn);if(Hn(Mn,Qn,ko))return}if(!yut(Mn,Qn)){if(l1(Mn)){if(Wa(Qn)){let ko=my(Mn),ls=my(Qn),As=qs(Qn),Vu=Qn.target.elementFlags;if(Wa(Mn)&&Zct(Mn,Qn)){for(let Ol=0;Ol0){let ls=Yo(Qn,lo),As=ls.length;for(let Vu=0;Vu1){let a=tr(n,Wve);if(a.length){let c=ii(a,2);return xo(tr(n,d=>!Wve(d)),[c])}}return n}function Rut(n){return n.priority&416?Ea(n.contraCandidates):qct(n.contraCandidates)}function Dut(n,a){let c=xut(n.candidates),d=Iut(n.typeParameter)||WT(n.typeParameter),_=!d&&n.topLevel&&(n.isFixed||!mut(a,n.typeParameter)),y=d?Io(c,vd):_?Io(c,BE):c,x=n.priority&416?ii(y,2):Hct(y);return Jp(x)}function zve(n,a){let c=n.inferences[a];if(!c.inferredType){let d,_;if(n.signature){let x=c.candidates?Dut(c,n.signature):void 0,L=c.contraCandidates?Rut(c):void 0;if(x||L){let z=x&&(!L||!(x.flags&131072)&&Et(c.contraCandidates,U=>Bb(x,U))&&Jn(n.inferences,U=>U!==c&&Pd(U.typeParameter)!==c.typeParameter||Jn(U.candidates,re=>Bb(re,x))));d=z?x:L,_=z?L:x}else if(n.flags&1)d=Eo;else{let z=zT(c.typeParameter);z&&(d=co(z,oct(ict(n,a),n.nonFixingMapper)))}}else d=Z4e(c);c.inferredType=d||Bve(!!(n.flags&2));let y=Pd(c.typeParameter);if(y){let x=co(y,n.nonFixingMapper);(!d||!n.compareTypes(d,qp(x,d)))&&(c.inferredType=_&&n.compareTypes(_,qp(x,_))?_:x)}}return c.inferredType}function Bve(n){return n?j:mn}function Gve(n){let a=[];for(let c=0;cfd(a)||Dm(a)||yp(a)))}function See(n,a,c,d){switch(n.kind){case 80:if(!FA(n)){let x=Vm(n);return x!==ft?`${d?ss(d):"-1"}|${gd(a)}|${gd(c)}|${Ta(x)}`:void 0}case 110:return`0|${d?ss(d):"-1"}|${gd(a)}|${gd(c)}`;case 235:case 217:return See(n.expression,a,c,d);case 166:let _=See(n.left,a,c,d);return _&&_+"."+n.right.escapedText;case 211:case 212:let y=KT(n);if(y!==void 0){let x=See(n.expression,a,c,d);return x&&x+"."+y}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${ss(n)}#${gd(a)}`}}function Iu(n,a){switch(a.kind){case 217:case 235:return Iu(n,a.expression);case 226:return Mc(a)&&Iu(n,a.left)||_r(a)&&a.operatorToken.kind===28&&Iu(n,a.right)}switch(n.kind){case 236:return a.kind===236&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return FA(n)?a.kind===110:a.kind===80&&Vm(n)===Vm(a)||(Oi(a)||Qa(a))&&mf(Vm(n))===Rr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Iu(n.expression,a);case 211:case 212:let c=KT(n),d=ks(a)?KT(a):void 0;return c!==void 0&&d!==void 0&&d===c&&Iu(n.expression,a.expression);case 166:return ks(a)&&n.right.escapedText===KT(a)&&Iu(n.left,a.expression);case 226:return _r(n)&&n.operatorToken.kind===28&&Iu(n.right,a)}return!1}function KT(n){if(zr(n))return n.name.escapedText;if(Ys(n))return Cut(n);if(Qa(n)){let a=es(n);return a?ml(a):void 0}if(Co(n))return""+n.parent.parameters.indexOf(n)}function jve(n){return n.flags&8192?n.escapedName:n.flags&384?ml(""+n.value):void 0}function Cut(n){return Qp(n.argumentExpression)?ml(n.argumentExpression.text):zl(n.argumentExpression)?Nut(n.argumentExpression):void 0}function Nut(n){let a=Us(n,111551,!0);if(!a||!(iM(a)||a.flags&8))return;let c=a.valueDeclaration;if(c===void 0)return;let d=ao(c);if(d){let _=jve(d);if(_!==void 0)return _}if(fS(c)&&nv(c,n)){let _=wL(c);if(_){let y=ta(c.parent)?Y_(c):Ru(_);return y&&jve(y)}if(Q1(c))return Zx(c.name)}}function a8e(n,a){for(;ks(n);)if(n=n.expression,Iu(n,a))return!0;return!1}function XT(n,a){for(;Hu(n);)if(n=n.expression,Iu(n,a))return!0;return!1}function eM(n,a){if(n&&n.flags&1048576){let c=sOe(n,a);if(c&&Al(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!ED(pr(c))),!!c.links.isDiscriminantProperty}return!1}function s8e(n,a){let c;for(let d of n)if(eM(a,d.escapedName)){if(c){c.push(d);continue}c=[d]}return c}function Put(n,a){let c=new Map,d=0;for(let _ of n)if(_.flags&61603840){let y=Xe(_,a);if(y){if(!w4(y))return;let x=!1;$T(y,L=>{let z=gd(vd(L)),U=c.get(z);U?U!==mn&&(c.set(z,mn),x=!0):c.set(z,_)}),x||d++}}return d>=10&&d*2>=n.length?c:void 0}function Fz(n){let a=n.types;if(!(a.length<10||Wr(n)&32768||au(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){let c=Ke(a,_=>_.flags&59506688?Ke(ys(_),y=>g_(pr(y))?y.escapedName:void 0):void 0),d=c&&Put(a,c);n.keyPropertyName=d?c:"",n.constituentMap=d}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function Wz(n,a){var c;let d=(c=n.constituentMap)==null?void 0:c.get(gd(vd(a)));return d!==mn?d:void 0}function l8e(n,a){let c=Fz(n),d=c&&Xe(a,c);return d&&Wz(n,d)}function Mut(n,a){let c=Fz(n),d=c&&vn(a.properties,y=>y.symbol&&y.kind===303&&y.symbol.escapedName===c&&qz(y.initializer)),_=d&&mB(d.initializer);return _&&Wz(n,_)}function c8e(n,a){return Iu(n,a)||a8e(n,a)}function u8e(n,a){if(n.arguments){for(let c of n.arguments)if(c8e(a,c)||XT(c,a))return!0}return!!(n.expression.kind===211&&c8e(a,n.expression.expression))}function Uve(n){return(!n.id||n.id<0)&&(n.id=cle,cle++),n.id}function Lut(n,a){if(!(n.flags&1048576))return Sa(n,a);for(let c of n.types)if(Sa(c,a))return!0;return!1}function kut(n,a){if(n===a)return n;if(a.flags&131072)return a;let c=`A${gd(n)},${gd(a)}`;return XI(c)??pb(c,wut(n,a))}function wut(n,a){let c=uc(n,_=>Lut(a,_)),d=a.flags&512&&FE(a)?ul(c,hx):c;return Sa(a,d)?d:n}function Hve(n){let a=m_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Bb(n,wt))}function tM(n,a){return qve(n,a)&a}function mm(n,a){return tM(n,a)!==0}function qve(n,a){n.flags&467927040&&(n=Bu(n)||mn);let c=n.flags;if(c&268435460)return Y?16317953:16776705;if(c&134217856){let d=c&128&&n.value==="";return Y?d?12123649:7929345:d?12582401:16776705}if(c&40)return Y?16317698:16776450;if(c&256){let d=n.value===0;return Y?d?12123394:7929090:d?12582146:16776450}if(c&64)return Y?16317188:16775940;if(c&2048){let d=H4e(n);return Y?d?12122884:7928580:d?12581636:16775940}return c&16?Y?16316168:16774920:c&528?Y?n===Kt||n===Tn?12121864:7927560:n===Kt||n===Tn?12580616:16774920:c&524288?a&(Y?83427327:83886079)?Wr(n)&16&&gv(n)?Y?83427327:83886079:Hve(n)?Y?7880640:16728e3:Y?7888800:16736160:0:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?Y?7925520:16772880:c&67108864?Y?7888800:16736160:c&131072?0:c&1048576?nd(n.types,(d,_)=>d|qve(_,a),0):c&2097152?Out(n,a):83886079}function Out(n,a){let c=Dl(n,402784252),d=0,_=134217727;for(let y of n.types)if(!(c&&y.flags&524288)){let x=qve(y,a);d|=x,_&=x}return d&8256|_&134209471}function _m(n,a){return uc(n,c=>mm(c,a))}function YT(n,a){let c=d8e(_m(Y&&n.flags&2?ll:n,a));if(Y)switch(a){case 524288:return ul(c,d=>mm(d,65536)?Ea([d,mm(d,131072)&&!Dl(c,65536)?ii([Pa,pe]):Pa]):d);case 1048576:return ul(c,d=>mm(d,131072)?Ea([d,mm(d,65536)&&!Dl(c,32768)?ii([Pa,Oe]):Pa]):d);case 2097152:case 4194304:return ul(c,d=>mm(d,262144)?nut(d):d)}return c}function d8e(n){return n===ll?mn:n}function Jve(n,a){return a?ii([gi(n),Ru(a)]):n}function p8e(n,a){var c;let d=_y(a);if(!nm(d))return ht;let _=rm(d);return Xe(n,_)||G4((c=px(n,_))==null?void 0:c.type)||ht}function f8e(n,a){return cp(n,QP)&&Jct(n,a)||G4(yy(65,n,Oe,void 0))||ht}function G4(n){return n&&(V.noUncheckedIndexedAccess?ii([n,w]):n)}function m8e(n){return Gu(yy(65,n,Oe,void 0)||ht)}function Fut(n){return n.parent.kind===209&&Kve(n.parent)||n.parent.kind===303&&Kve(n.parent.parent)?Jve(zz(n),n.right):Ru(n.right)}function Kve(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function Wut(n,a){return f8e(zz(n),n.elements.indexOf(a))}function zut(n){return m8e(zz(n.parent))}function _8e(n){return p8e(zz(n.parent),n.name)}function But(n){return Jve(_8e(n),n.objectAssignmentInitializer)}function zz(n){let{parent:a}=n;switch(a.kind){case 249:return ke;case 250:return bB(a)||ht;case 226:return Fut(a);case 220:return Oe;case 209:return Wut(a,n);case 230:return zut(a);case 303:return _8e(a);case 304:return But(a)}return ht}function Gut(n){let a=n.parent,c=g8e(a.parent),d=a.kind===206?p8e(c,n.propertyName||n.name):n.dotDotDotToken?m8e(c):f8e(c,a.elements.indexOf(n));return Jve(d,n.initializer)}function h8e(n){return ti(n).resolvedType||Ru(n)}function Vut(n){return n.initializer?h8e(n.initializer):n.parent.parent.kind===249?ke:n.parent.parent.kind===250&&bB(n.parent.parent)||ht}function g8e(n){return n.kind===260?Vut(n):Gut(n)}function jut(n){return n.kind===260&&n.initializer&&Rb(n.initializer)||n.kind!==208&&n.parent.kind===226&&Rb(n.parent.right)}function GE(n){switch(n.kind){case 217:return GE(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return GE(n.left);case 28:return GE(n.right)}}return n}function v8e(n){let{parent:a}=n;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===n||a.kind===226&&a.operatorToken.kind===28&&a.right===n?v8e(a):n}function Uut(n){return n.kind===296?vd(Ru(n.expression)):Vr}function Tee(n){let a=ti(n);if(!a.switchTypes){a.switchTypes=[];for(let c of n.caseBlock.clauses)a.switchTypes.push(Uut(c))}return a.switchTypes}function y8e(n){if(Et(n.caseBlock.clauses,c=>c.kind===296&&!us(c.expression)))return;let a=[];for(let c of n.caseBlock.clauses){let d=c.kind===296?c.expression.text:void 0;a.push(d&&!wr(a,d)?d:void 0)}return a}function Hut(n,a){return n.flags&1048576?!Ke(n.types,c=>!wr(a,c)):wr(a,n)}function nM(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&qut(n,a))}function qut(n,a){if(n.flags&1048576){for(let c of n.types)if(!mv(a.types,c))return!1;return!0}return n.flags&1056&&NZ(n)===a?!0:mv(a.types,n)}function $T(n,a){return n.flags&1048576?Ke(n.types,a):a(n)}function jm(n,a){return n.flags&1048576?Et(n.types,a):a(n)}function cp(n,a){return n.flags&1048576?Jn(n.types,a):a(n)}function Jut(n,a){return n.flags&3145728?Jn(n.types,a):a(n)}function uc(n,a){if(n.flags&1048576){let c=n.types,d=tr(c,a);if(d===c)return n;let _=n.origin,y;if(_&&_.flags&1048576){let x=_.types,L=tr(x,z=>!!(z.flags&1048576)||a(z));if(x.length-L.length===c.length-d.length){if(L.length===1)return L[0];y=Kge(1048576,L)}}return Yge(d,n.objectFlags&16809984,void 0,void 0,y)}return n.flags&131072||a(n)?n:Vr}function Aee(n,a){return uc(n,c=>c!==a)}function Kut(n){return n.flags&1048576?n.types.length:1}function ul(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);let d=n.origin,_=d&&d.flags&1048576?d.types:n.types,y,x=!1;for(let L of _){let z=L.flags&1048576?ul(L,a,c):a(L);x||(x=L!==z),z&&(y?y.push(z):y=[z])}return x?y&&ii(y,c?0:1):n}function b8e(n,a,c,d){return n.flags&1048576&&c?ii(Ft(n.types,a),1,c,d):ul(n,a)}function rM(n,a){return uc(n,c=>(c.flags&a)!==0)}function E8e(n,a){return Dl(n,134217804)&&Dl(a,402655616)?ul(n,c=>c.flags&4?rM(a,402653316):VT(c)&&!Dl(a,402653188)?rM(a,128):c.flags&8?rM(a,264):c.flags&64?rM(a,2112):c):n}function AD(n){return n.flags===0}function QT(n){return n.flags===0?n.type:n}function ID(n,a){return a?{flags:0,type:n.flags&131072?Eo:n}:n}function Xut(n){let a=Of(256);return a.elementType=n,a}function Xve(n){return wn[n.id]||(wn[n.id]=Xut(n))}function S8e(n,a){let c=W4(vv(mB(a)));return nM(c,n.elementType)?n:Xve(ii([n.elementType,c]))}function Yut(n){return n.flags&131072?qc:Gu(n.flags&1048576?ii(n.types,2):n)}function $ut(n){return n.finalArrayType||(n.finalArrayType=Yut(n.elementType))}function Bz(n){return Wr(n)&256?$ut(n):n}function Qut(n){return Wr(n)&256?n.elementType:Vr}function Zut(n){let a=!1;for(let c of n)if(!(c.flags&131072)){if(!(Wr(c)&256))return!1;a=!0}return a}function T8e(n){let a=v8e(n),c=a.parent,d=zr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Ve(c.name)&&qj(c.name)),_=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!ng(c.parent)&&xu(Ru(c.argumentExpression),296);return d||_}function edt(n){return(Oi(n)||Jo(n)||gp(n)||Co(n))&&!!(yu(n)||cr(n)&&Oy(n)&&n.initializer&&B1(n.initializer)&&tm(n.initializer))}function Iee(n,a){if(n=Gl(n),n.flags&8752)return pr(n);if(n.flags&7){if(Al(n)&262144){let d=n.links.syntheticOrigin;if(d&&Iee(d))return pr(n)}let c=n.valueDeclaration;if(c){if(edt(c))return pr(n);if(Oi(c)&&c.parent.parent.kind===250){let d=c.parent.parent,_=Gz(d.expression,void 0);if(_){let y=d.awaitModifier?15:13;return yy(y,_,Oe,void 0)}}a&&ka(a,Or(c,f._0_needs_an_explicit_type_annotation,Ai(n)))}}}function Gz(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:let c=mf(Vm(n));return Iee(c,a);case 110:return Edt(n);case 108:return nye(n);case 211:{let d=Gz(n.expression,a);if(d){let _=n.name,y;if(Xi(_)){if(!d.symbol)return;y=ba(d,ZL(d.symbol,_.escapedText))}else y=ba(d,_.escapedText);return y&&Iee(y,a)}return}case 217:return Gz(n.expression,a)}}function Vz(n){let a=ti(n),c=a.effectsSignature;if(c===void 0){let d;if(_r(n)){let x=xD(n.right);d=Jye(x)}else n.parent.kind===244?d=Gz(n.expression,void 0):n.expression.kind!==108&&(Hu(n)?d=Z_(O4(go(n.expression),n.expression),n.expression):d=xD(n.expression));let _=Yo(d&&Md(d)||mn,0),y=_.length===1&&!_[0].typeParameters?_[0]:Et(_,A8e)?DD(n):void 0;c=a.effectsSignature=y&&A8e(y)?y:pn}return c===pn?void 0:c}function A8e(n){return!!(Bf(n)||n.declaration&&(hD(n.declaration)||mn).flags&131072)}function tdt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];let c=vs(a.expression);return ks(c)?vs(c.expression):void 0}function ndt(n){let a=zn(n,KV),c=Vn(n),d=hh(c,a.statements.pos);ns.add(Qc(c,d.start,d.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function jz(n){let a=xee(n,!1);return kt=n,Ut=a,a}function Uz(n){let a=vs(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(Uz(a.left)||Uz(a.right))||a.operatorToken.kind===57&&Uz(a.left)&&Uz(a.right))}function xee(n,a){for(;;){if(n===kt)return Ut;let c=n.flags;if(c&4096){if(!a){let d=Uve(n),_=cT[d];return _!==void 0?_:cT[d]=xee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){let d=Vz(n.node);if(d){let _=Bf(d);if(_&&_.kind===3&&!_.type){let y=n.node.arguments[_.parameterIndex];if(y&&Uz(y))return!1}if(ms(d).flags&131072)return!1}n=n.antecedent}else{if(c&4)return Et(n.antecedents,d=>xee(d,!1));if(c&8){let d=n.antecedents;if(d===void 0||d.length===0)return!1;n=d[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&o3e(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){kt=void 0;let d=n.target,_=d.antecedents;d.antecedents=n.antecedents;let y=xee(n.antecedent,!1);return d.antecedents=_,y}else return!(c&1)}}}function Ree(n,a){for(;;){let c=n.flags;if(c&4096){if(!a){let d=Uve(n),_=KI[d];return _!==void 0?_:KI[d]=Ree(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return Jn(n.antecedents,d=>Ree(d,!1));if(c&8)n=n.antecedents[0];else if(c&1024){let d=n.target,_=d.antecedents;d.antecedents=n.antecedents;let y=Ree(n.antecedent,!1);return d.antecedents=_,y}else return!!(c&1)}}}function I8e(n){switch(n.kind){case 110:return!0;case 80:if(!FA(n)){let c=Vm(n);return iM(c)||Cee(c)&&!x8e(c)}break;case 211:case 212:return I8e(n.expression)&&y_(ti(n).resolvedSymbol||ft);case 206:case 207:let a=D_(n.parent);return Co(a)||Joe(a)?!Yve(a):Oi(a)&&xB(a)}return!1}function Hb(n,a,c=a,d,_=(y=>(y=ai(n,HL))==null?void 0:y.flowNode)()){let y,x=!1,L=0;if(ze)return ht;if(!_)return a;Ze++;let z=Qg,U=QT(ge(_));Qg=z;let re=Wr(U)&256&&T8e(n)?qc:Bz(U);if(re===Ci||n.parent&&n.parent.kind===235&&!(re.flags&131072)&&_m(re,2097152).flags&131072)return a;return re===q?mn:re;function be(){return x?y:(x=!0,y=See(n,a,c,d))}function ge(ct){var Ot;if(L===2e3)return(Ot=lr)==null||Ot.instant(lr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:ct.id}),ze=!0,ndt(n),ht;L++;let tn;for(;;){let $t=ct.flags;if($t&4096){for(let Wn=z;Wn=0&&tn.parameterIndex!(Wn.flags&163840)):Ot.kind===221&&XT(Ot.expression,n)&&($t=ls($t,ct.switchStatement,ct.clauseStart,ct.clauseEnd,Wn=>!(Wn.flags&131072||Wn.flags&128&&Wn.value==="undefined"))));let dn=Hn(Ot,$t);dn&&($t=Ao($t,dn,ct.switchStatement,ct.clauseStart,ct.clauseEnd))}return ID($t,AD(tn))}function cn(ct){let Ot=[],tn=!1,$t=!1,dn;for(let Wn of ct.antecedents){if(!dn&&Wn.flags&128&&Wn.clauseStart===Wn.clauseEnd){dn=Wn;continue}let Si=ge(Wn),mi=QT(Si);if(mi===a&&a===c)return mi;bf(Ot,mi),nM(mi,c)||(tn=!0),AD(Si)&&($t=!0)}if(dn){let Wn=ge(dn),Si=QT(Wn);if(!(Si.flags&131072)&&!wr(Ot,Si)&&!o3e(dn.switchStatement)){if(Si===a&&a===c)return Si;Ot.push(Si),nM(Si,c)||(tn=!0),AD(Wn)&&($t=!0)}}return ID(kn(Ot,tn?2:1),$t)}function Fn(ct){let Ot=Uve(ct),tn=jI[Ot]||(jI[Ot]=new Map),$t=be();if(!$t)return a;let dn=tn.get($t);if(dn)return dn;for(let xn=U_;xn{let xn=It(fo,$t)||mn;return!(xn.flags&131072)&&!(mi.flags&131072)&&Dz(mi,xn)})}function Mo(ct,Ot,tn,$t,dn){if((tn===37||tn===38)&&ct.flags&1048576){let Wn=Fz(ct);if(Wn&&Wn===KT(Ot)){let Si=Wz(ct,Ru($t));if(Si)return tn===(dn?37:38)?Si:g_(Xe(Si,Wn)||mn)?Aee(ct,Si):ct}}return er(ct,Ot,Wn=>lo(Wn,tn,$t,dn))}function Ao(ct,Ot,tn,$t,dn){if($tWz(ct,mi)||mn));if(Si!==mn)return Si}return er(ct,Ot,Wn=>As(Wn,tn,$t,dn))}function jo(ct,Ot,tn){if(Iu(n,Ot))return YT(ct,tn?4194304:8388608);Y&&tn&&XT(Ot,n)&&(ct=YT(ct,2097152));let $t=Hn(Ot,ct);return $t?er(ct,$t,dn=>_m(dn,tn?4194304:8388608)):ct}function vo(ct,Ot,tn){let $t=ba(ct,Ot);return $t?!!($t.flags&16777216||Al($t)&48)||tn:!!px(ct,Ot)||!tn}function Dc(ct,Ot,tn){let $t=rm(Ot);if(jm(ct,Wn=>vo(Wn,$t,!0)))return uc(ct,Wn=>vo(Wn,$t,tn));if(tn){let Wn=slt();if(Wn)return Ea([ct,vD(Wn,[Ot,mn])])}return ct}function Uf(ct,Ot,tn,$t,dn){return dn=dn!==(tn.kind===112)!=($t!==38&&$t!==36),Ur(ct,Ot,dn)}function up(ct,Ot,tn){switch(Ot.operatorToken.kind){case 64:case 76:case 77:case 78:return jo(Ur(ct,Ot.right,tn),Ot.left,tn);case 35:case 36:case 37:case 38:let $t=Ot.operatorToken.kind,dn=GE(Ot.left),Wn=GE(Ot.right);if(dn.kind===221&&us(Wn))return Er(ct,dn,$t,Wn,tn);if(Wn.kind===221&&us(dn))return Er(ct,Wn,$t,dn,tn);if(Iu(n,dn))return lo(ct,$t,Wn,tn);if(Iu(n,Wn))return lo(ct,$t,dn,tn);Y&&(XT(dn,n)?ct=Qn(ct,$t,Wn,tn):XT(Wn,n)&&(ct=Qn(ct,$t,dn,tn)));let Si=Hn(dn,ct);if(Si)return Mo(ct,Si,$t,Wn,tn);let mi=Hn(Wn,ct);if(mi)return Mo(ct,mi,$t,dn,tn);if(yl(dn))return ut(ct,$t,Wn,tn);if(yl(Wn))return ut(ct,$t,dn,tn);if(gC(Wn)&&!ks(dn))return Uf(ct,dn,Wn,$t,tn);if(gC(dn)&&!ks(Wn))return Uf(ct,Wn,dn,$t,tn);break;case 104:return Ie(ct,Ot,tn);case 103:if(Xi(Ot.left))return Mn(ct,Ot,tn);let fo=GE(Ot.right);if(F4(ct)&&ks(n)&&Iu(n.expression,fo)){let xn=Ru(Ot.left);if(nm(xn)&&KT(n)===rm(xn))return _m(ct,tn?524288:65536)}if(Iu(n,fo)){let xn=Ru(Ot.left);if(nm(xn))return Dc(ct,xn,tn)}break;case 28:return Ur(ct,Ot.right,tn);case 56:return tn?Ur(Ur(ct,Ot.left,!0),Ot.right,!0):ii([Ur(ct,Ot.left,!1),Ur(ct,Ot.right,!1)]);case 57:return tn?ii([Ur(ct,Ot.left,!0),Ur(ct,Ot.right,!0)]):Ur(Ur(ct,Ot.left,!1),Ot.right,!1)}return ct}function Mn(ct,Ot,tn){let $t=GE(Ot.right);if(!Iu(n,$t))return ct;C.assertNode(Ot.left,Xi);let dn=Bee(Ot.left);if(dn===void 0)return ct;let Wn=dn.parent,Si=fc(C.checkDefined(dn.valueDeclaration,"should always have a declaration"))?pr(Wn):Qs(Wn);return Mr(ct,Si,tn,!0)}function Qn(ct,Ot,tn,$t){let dn=Ot===35||Ot===37,Wn=Ot===35||Ot===36?98304:32768,Si=Ru(tn);return dn!==$t&&cp(Si,fo=>!!(fo.flags&Wn))||dn===$t&&cp(Si,fo=>!(fo.flags&(3|Wn)))?YT(ct,2097152):ct}function lo(ct,Ot,tn,$t){if(ct.flags&1)return ct;(Ot===36||Ot===38)&&($t=!$t);let dn=Ru(tn),Wn=Ot===35||Ot===36;if(dn.flags&98304){if(!Y)return ct;let Si=Wn?$t?262144:2097152:dn.flags&65536?$t?131072:1048576:$t?65536:524288;return YT(ct,Si)}if($t){if(!Wn&&(ct.flags&2||jm(ct,Vh))){if(dn.flags&469893116||Vh(dn))return dn;if(dn.flags&524288)return Kr}let Si=uc(ct,mi=>Dz(mi,dn)||Wn&&rut(mi,dn));return E8e(Si,dn)}return g_(dn)?uc(ct,Si=>!(G4e(Si)&&Dz(Si,dn))):ct}function Er(ct,Ot,tn,$t,dn){(tn===36||tn===38)&&(dn=!dn);let Wn=GE(Ot.expression);if(!Iu(n,Wn)){Y&&XT(Wn,n)&&dn===($t.text!=="undefined")&&(ct=YT(ct,2097152));let Si=Hn(Wn,ct);return Si?er(ct,Si,mi=>ko(mi,$t,dn)):ct}return ko(ct,$t,dn)}function ko(ct,Ot,tn){return tn?Vu(ct,Ot.text):YT(ct,zq.get(Ot.text)||32768)}function ls(ct,Ot,tn,$t,dn){return tn!==$t&&Jn(Tee(Ot).slice(tn,$t),dn)?_m(ct,2097152):ct}function As(ct,Ot,tn,$t){let dn=Tee(Ot);if(!dn.length)return ct;let Wn=dn.slice(tn,$t),Si=tn===$t||wr(Wn,Vr);if(ct.flags&2&&!Si){let ni;for(let Ui=0;UiDz(mi,ni)),mi);if(!Si)return fo;let xn=uc(ct,ni=>!(G4e(ni)&&wr(dn,vd(Xct(ni)))));return fo.flags&131072?xn:ii([fo,xn])}function Vu(ct,Ot){switch(Ot){case"string":return za(ct,ke,1);case"number":return za(ct,Dt,2);case"bigint":return za(ct,Pt,4);case"boolean":return za(ct,yi,8);case"symbol":return za(ct,Di,16);case"object":return ct.flags&1?ct:ii([za(ct,Kr,32),za(ct,pe,131072)]);case"function":return ct.flags&1?ct:za(ct,wt,64);case"undefined":return za(ct,Oe,65536)}return za(ct,Kr,128)}function za(ct,Ot,tn){return ul(ct,$t=>Q_($t,Ot,kf)?mm($t,tn)?$t:Vr:Bb(Ot,$t)?Ot:mm($t,tn)?Ea([$t,Ot]):Vr)}function Ld(ct,Ot,tn,$t){let dn=y8e(Ot);if(!dn)return ct;let Wn=ri(Ot.caseBlock.clauses,fo=>fo.kind===297);if(tn===$t||Wn>=tn&&Wn<$t){let fo=i3e(tn,$t,dn);return uc(ct,xn=>tM(xn,fo)===fo)}let mi=dn.slice(tn,$t);return ii(Ft(mi,fo=>fo?Vu(ct,fo):Vr))}function Ol(ct,Ot,tn,$t){let dn=ri(Ot.caseBlock.clauses,mi=>mi.kind===297),Wn=tn===$t||dn>=tn&&dn<$t;for(let mi=0;mimi.kind===296?Ur(ct,mi.expression,!0):Vr))}function yl(ct){return(zr(ct)&&Sr(ct.name)==="constructor"||Ys(ct)&&us(ct.argumentExpression)&&ct.argumentExpression.text==="constructor")&&Iu(n,ct.expression)}function ut(ct,Ot,tn,$t){if($t?Ot!==35&&Ot!==37:Ot!==36&&Ot!==38)return ct;let dn=Ru(tn);if(!Tbe(dn)&&!os(dn))return ct;let Wn=ba(dn,"prototype");if(!Wn)return ct;let Si=pr(Wn),mi=Ct(Si)?void 0:Si;if(!mi||mi===Pe||mi===wt)return ct;if(Ct(ct))return mi;return uc(ct,xn=>fo(xn,mi));function fo(xn,ni){return xn.flags&524288&&Wr(xn)&1||ni.flags&524288&&Wr(ni)&1?xn.symbol===ni.symbol:Bb(xn,ni)}}function Ie(ct,Ot,tn){let $t=GE(Ot.left);if(!Iu(n,$t))return tn&&Y&&XT($t,n)?YT(ct,2097152):ct;let dn=Ot.right,Wn=Ru(dn);if(!s1(Wn,Pe))return ct;let Si=Vz(Ot),mi=Si&&Bf(Si);if(mi&&mi.kind===1&&mi.parameterIndex===0)return Mr(ct,mi.type,tn,!0);if(!s1(Wn,wt))return ct;let fo=ul(Wn,Pn);return Ct(ct)&&(fo===Pe||fo===wt)||!tn&&!(fo.flags&524288&&!Vh(fo))?ct:Mr(ct,fo,tn,!0)}function Pn(ct){let Ot=Xe(ct,"prototype");if(Ot&&!Ct(Ot))return Ot;let tn=Yo(ct,1);return tn.length?ii(Ft(tn,$t=>ms(A4($t)))):Pa}function Mr(ct,Ot,tn,$t){let dn=ct.flags&1048576?`N${gd(ct)},${gd(Ot)},${(tn?1:0)|($t?2:0)}`:void 0;return XI(dn)??pb(dn,fi(ct,Ot,tn,$t))}function fi(ct,Ot,tn,$t){if(!tn){if(ct===Ot)return Vr;if($t)return uc(ct,fo=>!s1(fo,Ot));let mi=Mr(ct,Ot,!0,!1);return uc(ct,fo=>!nM(fo,mi))}if(ct.flags&3||ct===Ot)return Ot;let dn=$t?s1:Bb,Wn=ct.flags&1048576?Fz(ct):void 0,Si=ul(Ot,mi=>{let fo=Wn&&Xe(mi,Wn),xn=fo&&Wz(ct,fo),ni=ul(xn||ct,$t?Ui=>s1(Ui,mi)?Ui:s1(mi,Ui)?mi:Vr:Ui=>Rz(Ui,mi)?Ui:Rz(mi,Ui)?mi:Bb(Ui,mi)?Ui:Bb(mi,Ui)?mi:Vr);return ni.flags&131072?ul(ct,Ui=>Dl(Ui,465829888)&&dn(mi,Bu(Ui)||mn)?Ea([Ui,mi]):Vr):ni});return Si.flags&131072?Bb(Ot,ct)?Ot:Sa(ct,Ot)?ct:Sa(Ot,ct)?Ot:Ea([ct,Ot]):Si}function xi(ct,Ot,tn){if(u8e(Ot,n)){let $t=tn||!lS(Ot)?Vz(Ot):void 0,dn=$t&&Bf($t);if(dn&&(dn.kind===0||dn.kind===1))return Ri(ct,dn,Ot,tn)}if(F4(ct)&&ks(n)&&zr(Ot.expression)){let $t=Ot.expression;if(Iu(n.expression,GE($t.expression))&&Ve($t.name)&&$t.name.escapedText==="hasOwnProperty"&&Ot.arguments.length===1){let dn=Ot.arguments[0];if(us(dn)&&KT(n)===ml(dn.text))return _m(ct,tn?524288:65536)}}return ct}function Ri(ct,Ot,tn,$t){if(Ot.type&&!(Ct(ct)&&(Ot.type===Pe||Ot.type===wt))){let dn=tdt(Ot,tn);if(dn){if(Iu(n,dn))return Mr(ct,Ot.type,$t,!1);Y&&XT(dn,n)&&($t&&!mm(Ot.type,65536)||!$t&&cp(Ot.type,Qz))&&(ct=YT(ct,2097152));let Wn=Hn(dn,ct);if(Wn)return er(ct,Wn,Si=>Mr(Si,Ot.type,$t,!1))}}return ct}function Ur(ct,Ot,tn){if(b6(Ot)||_r(Ot.parent)&&(Ot.parent.operatorToken.kind===61||Ot.parent.operatorToken.kind===78)&&Ot.parent.left===Ot)return Dr(ct,Ot,tn);switch(Ot.kind){case 80:if(!Iu(n,Ot)&&M<5){let $t=Vm(Ot);if(iM($t)){let dn=$t.valueDeclaration;if(dn&&Oi(dn)&&!dn.type&&dn.initializer&&I8e(n)){M++;let Wn=Ur(ct,dn.initializer,tn);return M--,Wn}}}case 110:case 108:case 211:case 212:return jo(ct,Ot,tn);case 213:return xi(ct,Ot,tn);case 217:case 235:return Ur(ct,Ot.expression,tn);case 226:return up(ct,Ot,tn);case 224:if(Ot.operator===54)return Ur(ct,Ot.operand,!tn);break}return ct}function Dr(ct,Ot,tn){if(Iu(n,Ot))return YT(ct,tn?2097152:262144);let $t=Hn(Ot,ct);return $t?er(ct,$t,dn=>_m(dn,tn?2097152:262144)):ct}}function rdt(n,a){if(n=mf(n),(a.kind===80||a.kind===81)&&(jC(a)&&(a=a.parent),eg(a)&&(!ng(a)||BA(a)))){let c=pee(BA(a)&&a.kind===211?Wee(a,void 0,!0):Ru(a));if(mf(ti(a).resolvedSymbol)===n)return c}return Wg(a)&&wv(a.parent)&&Gm(a.parent)?oz(a.parent.symbol):uU(a)&&BA(a.parent)?ME(n):Pb(n)}function V4(n){return zn(n.parent,a=>ea(a)&&!vS(a)||a.kind===268||a.kind===312||a.kind===172)}function x8e(n){return!R8e(n,void 0)}function R8e(n,a){let c=zn(n.valueDeclaration,Dee);if(!c)return!1;let d=ti(c);return d.flags&131072||(d.flags|=131072,idt(c)||C8e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPosa.kind!==232&&D8e(a.name))}function idt(n){return!!zn(n.parent,a=>Dee(a)&&!!(ti(a).flags&131072))}function Dee(n){return zs(n)||no(n)}function C8e(n){switch(n.kind){case 80:if(ng(n)){let c=Vm(n);if(Cee(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){let d=zn(n,Dee),_=zn(c.valueDeclaration,Dee);c.lastAssignmentPos=d===_?odt(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:let a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){let c=Us(n.propertyName||n.name,111551,!0,!0);c&&Cee(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}qi(n)||Ho(n,C8e)}function odt(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:c=n.end}n=n.parent}return c}function iM(n){return n.flags&3&&(hye(n)&6)!==0}function Cee(n){let a=n.valueDeclaration&&D_(n.valueDeclaration);return!!a&&(Co(a)||Oi(a)&&($1(a.parent)||adt(a)))}function adt(n){return!!(n.parent.flags&1)&&!(t0(n)&32||n.parent.parent.kind===243&&Nh(n.parent.parent.parent))}function sdt(n){let a=ti(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Oh(n,9))return dD(n.symbol),!0;let c=!!mm(sM(n,0),16777216);if(!X_())return dD(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function ldt(n,a){return Y&&a.kind===169&&a.initializer&&mm(n,16777216)&&!sdt(a)?_m(n,524288):n}function cdt(n,a){let c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(jm(n,P8e)&&UT(Ru(c.argumentExpression)))}function N8e(n){return n.flags&2097152?Et(n.types,N8e):!!(n.flags&465829888&&fv(n).flags&1146880)}function P8e(n){return n.flags&2097152?Et(n.types,P8e):!!(n.flags&465829888&&!Dl(fv(n),98304))}function udt(n,a){let c=(Ve(n)||zr(n)||Ys(n))&&!((w_(n.parent)||zS(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Jd(n,8):Jd(n,void 0));return c&&!ED(c)}function $ve(n,a,c){return!(c&&c&2)&&jm(n,N8e)&&(cdt(n,a)||udt(a,c))?ul(n,fv):n}function M8e(n){return!!zn(n,a=>{let c=a.parent;return c===void 0?"quit":Ll(c)?c.expression===a&&zl(a):Ju(c)?c.name===a||c.propertyName===a:!1})}function Nee(n,a){if(gt&&TT(n,111551)&&!xS(a)){let c=Fc(n);Au(n,!0)&1160127&&(im(V)||V1(V)&&M8e(a)||!r8(mf(c))?bb(n):iu(n))}}function ddt(n,a,c){var d;let _=pr(n,c),y=n.valueDeclaration;if(y){if(Qa(y)&&!y.initializer&&!y.dotDotDotToken&&y.parent.elements.length>=2){let x=y.parent.parent,L=D_(x);if(L.kind===260&&KE(L)&6||L.kind===169){let z=ti(x);if(!(z.flags&4194304)){z.flags|=4194304;let U=Br(x,0),re=U&&ul(U,fv);if(z.flags&=-4194305,re&&re.flags&1048576&&!(L.kind===169&&Yve(L))){let be=y.parent,ge=Hb(be,re,re,void 0,a.flowNode);return ge.flags&131072?Vr:Sg(y,ge,!0)}}}}if(Co(y)&&!y.type&&!y.initializer&&!y.dotDotDotToken){let x=y.parent;if(x.parameters.length>=2&&eee(x)){let L=U4(x);if(L&&L.parameters.length===1&&Xu(L)){let z=jP(co(pr(L.parameters[0]),(d=VE(x))==null?void 0:d.nonFixingMapper));if(z.flags&1048576&&cp(z,Wa)&&!Et(x.parameters,Yve)){let U=Hb(x,z,z,void 0,a.flowNode),re=x.parameters.indexOf(y)-(k1(x)?1:0);return Pp(U,h_(re))}}}}}return _}function pdt(n,a){if(FA(n))return Hz(n);let c=Vm(n);if(c===ft)return ht;if(c===Bt){if(_6e(n))return qe(n,f.arguments_cannot_be_referenced_in_property_initializers),ht;let cn=zp(n);if(cn)for(ue<2&&(cn.kind===219?qe(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):ei(cn,1024)&&qe(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),ti(cn).flags|=512;cn&&Bs(cn);)cn=zp(cn),cn&&(ti(cn).flags|=512);return pr(c)}mdt(n)&&Nee(c,n);let d=mf(c),_=gbe(d,n);fb(_)&&Zge(n,_)&&_.declarations&&sy(n,_.declarations,n.escapedText);let y=d.valueDeclaration;if(y&&d.flags&32&&pi(y)&&y.name!==n){let cn=wd(n,!1,!1);for(;cn.kind!==312&&cn.parent!==y;)cn=wd(cn,!1,!1);cn.kind!==312&&(ti(y).flags|=262144,ti(cn).flags|=262144,ti(n).flags|=536870912)}gdt(n,c);let x=ddt(d,n,a),L=wA(n);if(L){if(!(d.flags&3)&&!(cr(n)&&d.flags&512)){let cn=d.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:d.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:d.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:d.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:d.flags&2097152?f.Cannot_assign_to_0_because_it_is_an_import:f.Cannot_assign_to_0_because_it_is_not_a_variable;return qe(n,cn,Ai(c)),ht}if(y_(d))return d.flags&3?qe(n,f.Cannot_assign_to_0_because_it_is_a_constant,Ai(c)):qe(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Ai(c)),ht}let z=d.flags&2097152;if(d.flags&3){if(L===1)return Wj(n)?vv(x):x}else if(z)y=Fm(c);else return x;if(!y)return x;x=$ve(x,n,a);let U=D_(y).kind===169,re=V4(y),be=V4(n),ge=be!==re,Je=n.parent&&n.parent.parent&&qv(n.parent)&&Kve(n.parent.parent),vt=c.flags&134217728,Rt=x===ot||x===qc,sn=Rt&&n.parent.kind===235;for(;be!==re&&(be.kind===218||be.kind===219||K6(be))&&(iM(d)&&x!==qc||Cee(d)&&R8e(d,n));)be=V4(be);let un=U||z||ge||Je||vt||fdt(n,y)||x!==ot&&x!==qc&&(!Y||(x.flags&16387)!==0||xS(n)||Vve(n)||n.parent.kind===281)||n.parent.kind===235||y.kind===260&&y.exclamationToken||y.flags&33554432,sr=sn?Oe:un?U?ldt(x,y):x:Rt?Oe:jb(x),Ln=sn?yv(Hb(n,x,sr,be)):Hb(n,x,sr,be);if(!T8e(n)&&(x===ot||x===qc)){if(Ln===ot||Ln===qc)return me&&(qe(Oo(y),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ai(c),jn(Ln)),qe(n,f.Variable_0_implicitly_has_an_1_type,Ai(c),jn(Ln))),n8(Ln)}else if(!un&&!XP(x)&&XP(Ln))return qe(n,f.Variable_0_is_used_before_being_assigned,Ai(c)),x;return L?vv(Ln):Ln}function fdt(n,a){if(Qa(a)){let c=zn(n,Qa);return c&&D_(c)===D_(a)}}function mdt(n){var a;let c=n.parent;if(c){if(zr(c)&&c.expression===n||Ju(c)&&c.isTypeOnly)return!1;let d=(a=c.parent)==null?void 0:a.parent;if(d&&Kl(d)&&d.isTypeOnly)return!1}return!0}function _dt(n,a){return!!zn(n,c=>c===a?"quit":ea(c)||c.parent&&Jo(c.parent)&&!fc(c.parent)&&c.parent.initializer===c)}function hdt(n,a){return zn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Qve(n){return zn(n,a=>!a||Jj(a)?"quit":ky(a,!1))}function gdt(n,a){if(ue>=2||!(a.flags&34)||!a.valueDeclaration||no(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;let c=_h(a.valueDeclaration),d=_dt(n,c),_=Qve(c);if(_){if(d){let y=!0;if(FS(c)){let x=p0(a.valueDeclaration,261);if(x&&x.parent===c){let L=hdt(n.parent,c);if(L){let z=ti(L);z.flags|=8192;let U=z.capturedBlockScopeBindings||(z.capturedBlockScopeBindings=[]);bf(U,a),L===c.initializer&&(y=!1)}}}y&&(ti(_).flags|=4096)}if(FS(c)){let y=p0(a.valueDeclaration,261);y&&y.parent===c&&ydt(n,c)&&(ti(a.valueDeclaration).flags|=65536)}ti(a.valueDeclaration).flags|=32768}d&&(ti(a.valueDeclaration).flags|=16384)}function vdt(n,a){let c=ti(n);return!!c&&wr(c.capturedBlockScopeBindings,Rr(a))}function ydt(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let d=!1;if(ng(c))d=!0;else if(c.parent.kind===224||c.parent.kind===225){let _=c.parent;d=_.operator===46||_.operator===47}return d?!!zn(c,_=>_===a?"quit":_===a.statement):!1}function Zve(n,a){if(ti(n).flags|=2,a.kind===172||a.kind===176){let c=a.parent;ti(c).flags|=4}else ti(a).flags|=4}function L8e(n){return gS(n)?n:ea(n)?void 0:Ho(n,L8e)}function eye(n){let a=Rr(n),c=Qs(a);return Cp(c)===Ge}function k8e(n,a,c){let d=a.parent;M1(d)&&!eye(d)&&HL(n)&&n.flowNode&&!Ree(n.flowNode,!1)&&qe(n,c)}function bdt(n,a){Jo(a)&&fc(a)&&ne&&a.initializer&&ZM(a.initializer,n.pos)&&Sf(a.parent)&&qe(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Hz(n){let a=xS(n),c=wd(n,!0,!0),d=!1,_=!1;for(c.kind===176&&k8e(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=wd(c,!1,!_),d=!0),c.kind===167){c=wd(c,!d,!1),_=!0;continue}break}if(bdt(n,c),_)qe(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:qe(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:qe(n,f.this_cannot_be_referenced_in_current_location);break;case 176:w8e(n,c)&&qe(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&d&&ue<2&&Zve(n,c);let y=tye(n,!0,c);if(ie){let x=pr(at);if(y===x&&d)qe(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!y){let L=qe(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!no(c)){let z=tye(c);z&&z!==x&&ka(L,Or(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return y||j}function tye(n,a=!0,c=wd(n,!1,!1)){let d=cr(n);if(ea(c)&&(!iye(n)||k1(c))){let _=ige(c)||d&&Tdt(c);if(!_){let y=Sdt(c);if(d&&y){let x=go(y).symbol;x&&x.members&&x.flags&16&&(_=Qs(x).thisType)}else th(c)&&(_=Qs(is(c.symbol)).thisType);_||(_=z8e(c))}if(_)return Hb(n,_)}if(pi(c.parent)){let _=Rr(c.parent),y=sa(c)?pr(_):Qs(_).thisType;return Hb(n,y)}if(no(c))if(c.commonJsModuleIndicator){let _=Rr(c);return _&&pr(_)}else{if(c.externalModuleIndicator)return Oe;if(a)return pr(at)}}function Edt(n){let a=wd(n,!1,!1);if(ea(a)){let c=pm(a);if(c.thisParameter)return Iee(c.thisParameter)}if(pi(a.parent)){let c=Rr(a.parent);return sa(a)?pr(c):Qs(c).thisType}}function Sdt(n){if(n.kind===218&&_r(n.parent)&&Wl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&_r(n.parent.parent)&&Wl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&_r(n.parent.parent.parent)&&Wl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&_c(n.parent)&&Ve(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&wa(n.parent.parent)&&la(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&Wl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(jl(n)&&Ve(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&wa(n.parent)&&la(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&Wl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function Tdt(n){let a=h6(n);if(a&&a.typeExpression)return Ii(a.typeExpression);let c=UP(n);if(c)return i1(c)}function w8e(n,a){return!!zn(n,c=>zs(c)?"quit":c.kind===169&&c.parent===a)}function nye(n){let a=n.parent.kind===213&&n.parent.expression===n,c=CL(n,!0),d=c,_=!1,y=!1;if(!a){for(;d&&d.kind===219;)ei(d,1024)&&(y=!0),d=CL(d,!0),_=ue<2;d&&ei(d,1024)&&(y=!0)}let x=0;if(!d||!re(d)){let be=zn(n,ge=>ge===d?"quit":ge.kind===167);return be&&be.kind===167?qe(n,f.super_cannot_be_referenced_in_a_computed_property_name):a?qe(n,f.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!d||!d.parent||!(pi(d.parent)||d.parent.kind===210)?qe(n,f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):qe(n,f.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),ht}if(!a&&c.kind===176&&k8e(n,d,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),sa(d)||a?(x=32,!a&&ue>=2&&ue<=8&&(Jo(d)||Il(d))&&cie(n.parent,be=>{(!no(be)||Fp(be))&&(ti(be).flags|=2097152)})):x=16,ti(n).flags|=x,d.kind===174&&y&&(Od(n.parent)&&ng(n.parent)?ti(d).flags|=256:ti(d).flags|=128),_&&Zve(n.parent,d),d.parent.kind===210)return ue<2?(qe(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ht):j;let L=d.parent;if(!M1(L))return qe(n,f.super_can_only_be_referenced_in_a_derived_class),ht;if(eye(L))return a?ht:Ge;let z=Qs(Rr(L)),U=z&&Np(z)[0];if(!U)return ht;if(d.kind===176&&w8e(n,d))return qe(n,f.super_cannot_be_referenced_in_constructor_arguments),ht;return x===32?Cp(z):qp(U,z.thisType);function re(be){return a?be.kind===176:pi(be.parent)||be.parent.kind===210?sa(be)?be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===175:be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===171||be.kind===176:!1}}function O8e(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function F8e(n){return Wr(n)&4&&n.target===Bl?qs(n)[0]:void 0}function Adt(n){return ul(n,a=>a.flags&2097152?Ke(a.types,F8e):F8e(a))}function W8e(n,a){let c=n,d=a;for(;d;){let _=Adt(d);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,d=f1(c,void 0)}}function z8e(n){if(n.kind===219)return;if(eee(n)){let c=U4(n);if(c){let d=c.thisParameter;if(d)return pr(d)}}let a=cr(n);if(ie||a){let c=O8e(n);if(c){let _=f1(c,void 0),y=W8e(c,_);return y?co(y,Lve(VE(c))):Jp(_?yv(_):ec(c))}let d=Fv(n.parent);if(Mc(d)){let _=d.left;if(ks(_)){let{expression:y}=_;if(a&&Ve(y)){let x=Vn(d);if(x.commonJsModuleIndicator&&Vm(y)===x.symbol)return}return Jp(ec(y))}}}}function B8e(n){let a=n.parent;if(!eee(a))return;let c=vS(a);if(c&&c.arguments){let _=qee(c),y=a.parameters.indexOf(n);if(n.dotDotDotToken)return Nye(_,y,_.length,j,void 0,0);let x=ti(c),L=x.resolvedSignature;x.resolvedSignature=St;let z=y<_.length?BE(go(_[y])):n.initializer?void 0:Lt;return x.resolvedSignature=L,z}let d=U4(a);if(d){let _=a.parameters.indexOf(n)-(k1(a)?1:0);return n.dotDotDotToken&&Zs(a.parameters)===n?sB(d,_):UE(d,_)}}function rye(n,a){let c=yu(n)||(cr(n)?n7(n):void 0);if(c)return Ii(c);switch(n.kind){case 169:return B8e(n);case 208:return Idt(n,a);case 172:if(sa(n))return xdt(n,a)}}function Idt(n,a){let c=n.parent.parent,d=n.propertyName||n.name,_=rye(c,a)||c.kind!==208&&c.initializer&&sM(c,n.dotDotDotToken?32:0);if(!_||ta(d)||TL(d))return;if(c.name.kind===207){let x=Qx(n.parent.elements,n);return x<0?void 0:sye(_,x)}let y=_y(d);if(nm(y)){let x=rm(y);return Xe(_,x)}}function xdt(n,a){let c=bt(n.parent)&&Jd(n.parent,a);if(c)return p1(c,Rr(n).escapedName)}function Rdt(n,a){let c=n.parent;if(Oy(c)&&n===c.initializer){let d=rye(c,a);if(d)return d;if(!(a&8)&&ta(c.name)&&c.name.elements.length>0)return P(c.name,!0,!1)}}function Ddt(n,a){let c=zp(n);if(c){let d=Pee(c,a);if(d){let _=Gc(c);if(_&1){let y=(_&2)!==0;d.flags&1048576&&(d=uc(d,L=>!!HE(1,L,y)));let x=HE(1,d,(_&2)!==0);if(!x)return;d=x}if(_&2){let y=ul(d,vy);return y&&ii([y,t3e(y)])}return d}}}function Cdt(n,a){let c=Jd(n,a);if(c){let d=vy(c);return d&&ii([d,t3e(d)])}}function Ndt(n,a){let c=zp(n);if(c){let d=Gc(c),_=Pee(c,a);if(_){let y=(d&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=uc(_,x=>!!HE(1,x,y))),n.asteriskToken?_:HE(0,_,y)}}}function iye(n){let a=!1;for(;n.parent&&!ea(n.parent);){if(Co(n.parent)&&(a||n.parent.initializer===n))return!0;Qa(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function G8e(n,a){let c=!!(Gc(a)&2),d=Pee(a,void 0);if(d)return HE(n,d,c)||void 0}function Pee(n,a){let c=hD(n);if(c)return c;let d=cye(n);if(d&&!wZ(d)){let y=ms(d),x=Gc(n);return x&1?uc(y,L=>!!(L.flags&58998787)||$ye(L,x,void 0)):x&2?uc(y,L=>!!(L.flags&58998787)||!!uM(L)):y}let _=vS(n);if(_)return Jd(_,a)}function V8e(n,a){let d=qee(n).indexOf(a);return d===-1?void 0:oye(n,d)}function oye(n,a){if(Wp(n))return a===0?ke:a===1?NOe(!1):j;let c=ti(n).resolvedSignature===Tr?Tr:DD(n);if(sd(n)&&a===0)return wee(c,n);let d=c.parameters.length-1;return Xu(c)&&a>=d?Pp(pr(c.parameters[d]),h_(a-d),256):v_(c,a)}function Pdt(n){let a=jye(n);return a?BT(a):void 0}function Mdt(n,a){if(n.parent.kind===215)return V8e(n.parent,a)}function Ldt(n,a){let c=n.parent,{left:d,operatorToken:_,right:y}=c;switch(_.kind){case 64:case 77:case 76:case 78:return n===y?wdt(c):void 0;case 57:case 61:let x=Jd(c,a);return n===y&&(x&&x.pattern||!x&&!Nie(c))?Ru(d):x;case 56:case 28:return n===y?Jd(c,a):void 0;default:return}}function kdt(n){if(A_(n)&&n.symbol)return n.symbol;if(Ve(n))return Vm(n);if(zr(n)){let c=Ru(n.expression);return Xi(n.name)?a(c,n.name):ba(c,n.name.escapedText)}if(Ys(n)){let c=ec(n.argumentExpression);if(!nm(c))return;let d=Ru(n.expression);return ba(d,rm(c))}return;function a(c,d){let _=zee(d.escapedText,d);return _&&bye(c,_)}}function wdt(n){var a,c;let d=Wl(n);switch(d){case 0:case 4:let _=kdt(n.left),y=_&&_.valueDeclaration;if(y&&(Jo(y)||gp(y))){let z=yu(y);return z&&co(Ii(z),$i(_).mapper)||(Jo(y)?y.initializer&&Ru(n.left):void 0)}return d===0?Ru(n.left):j8e(n);case 5:if(Mee(n,d))return j8e(n);if(!A_(n.left)||!n.left.symbol)return Ru(n.left);{let z=n.left.symbol.valueDeclaration;if(!z)return;let U=aa(n.left,ks),re=yu(z);if(re)return Ii(re);if(Ve(U.expression)){let be=U.expression,ge=vl(be,be.escapedText,111551,void 0,be.escapedText,!0);if(ge){let Je=ge.valueDeclaration&&yu(ge.valueDeclaration);if(Je){let vt=Fg(U);if(vt!==void 0)return p1(Ii(Je),vt)}return}}return cr(z)||z===n.left?void 0:Ru(n.left)}case 1:case 6:case 3:case 2:let x;d!==2&&(x=A_(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(c=n.symbol)==null?void 0:c.valueDeclaration);let L=x&&yu(x);return L?Ii(L):void 0;case 7:case 8:case 9:return C.fail("Does not apply");default:return C.assertNever(d)}}function Mee(n,a=Wl(n)){if(a===4)return!0;if(!cr(n)||a!==5||!Ve(n.left.expression))return!1;let c=n.left.expression.escapedText,d=vl(n.left,c,111551,void 0,void 0,!0,!0);return Z6(d?.valueDeclaration)}function j8e(n){if(!n.symbol)return Ru(n.left);if(n.symbol.valueDeclaration){let _=yu(n.symbol.valueDeclaration);if(_){let y=Ii(_);if(y)return y}}let a=aa(n.left,ks);if(!Im(wd(a.expression,!1,!1)))return;let c=Hz(a.expression),d=Fg(a);return d!==void 0&&p1(c,d)||void 0}function Odt(n){return!!(Al(n)&262144&&!n.links.type&&cx(n,0)>=0)}function p1(n,a,c){return ul(n,d=>{var _;if(Hd(d)&&!d.declaration.nameType){let y=gf(d),x=Bu(y)||y,L=c||qd(Hi(a));if(Sa(L,x))return qZ(d,L)}else if(d.flags&3670016){let y=ba(d,a);if(y)return Odt(y)?void 0:Ub(pr(y),!!(y&&y.flags&16777216));if(Wa(d)&&sg(a)&&+a>=0){let x=ZP(d,d.target.fixedLength,0,!1,!0);if(x)return x}return(_=Sge(Tge(d),c||qd(Hi(a))))==null?void 0:_.type}},!0)}function U8e(n,a){if(C.assert(Im(n)),!(n.flags&67108864))return aye(n,a)}function aye(n,a){let c=n.parent,d=_c(n)&&rye(n,a);if(d)return d;let _=f1(c,a);if(_){if(mD(n)){let y=Rr(n);return p1(_,y.escapedName,$i(y).nameType)}if(By(n)){let y=Oo(n);if(y&&Za(y)){let x=go(y.expression),L=nm(x)&&p1(_,rm(x));if(L)return L}}if(n.name){let y=_y(n.name);return ul(_,x=>{var L;return(L=Sge(Tge(x),y))==null?void 0:L.type},!0)}}}function Fdt(n){let a,c;for(let d=0;d{if(Wa(y)){if((d===void 0||a_)?c-a:0,L=x>0&&y.target.hasRestElement?x4(y.target,3):0;return x>0&&x<=L?qs(y)[my(y)-x]:ZP(y,d===void 0?y.target.fixedLength:Math.min(y.target.fixedLength,d),c===void 0||_===void 0?L:Math.min(L,c-_),!1,!0)}return(!d||agy(z)?Pp(z,h_(x)):z,!0))}function Bdt(n,a){let c=n.parent;return R6(c)?Jd(n,a):cg(c)?zdt(c,n,a):void 0}function H8e(n,a){if(O_(n)){let c=f1(n.parent,a);return!c||Ct(c)?void 0:p1(c,lN(n.name))}else return Jd(n.parent,a)}function qz(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return qz(n.expression);case 294:return!n.expression||qz(n.expression)}return!1}function Gdt(n,a){return Mut(a,n)||vve(a,xo(Ft(tr(n.properties,c=>c.symbol?c.kind===303?qz(c.initializer)&&eM(a,c.symbol.escapedName):c.kind===304?eM(a,c.symbol.escapedName):!1:!1),c=>[()=>mB(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),Ft(tr(ys(a),c=>{var d;return!!(c.flags&16777216)&&!!((d=n?.symbol)!=null&&d.members)&&!n.symbol.members.has(c.escapedName)&&eM(a,c.escapedName)}),c=>[()=>Oe,c.escapedName])),Sa)}function Vdt(n,a){let c=Xz(ZT(n));return vve(a,xo(Ft(tr(n.properties,d=>!!d.symbol&&d.kind===291&&eM(a,d.symbol.escapedName)&&(!d.initializer||qz(d.initializer))),d=>[d.initializer?()=>mB(d.initializer):()=>On,d.symbol.escapedName]),Ft(tr(ys(a),d=>{var _;if(!(d.flags&16777216)||!((_=n?.symbol)!=null&&_.members))return!1;let y=n.parent.parent;return d.escapedName===c&&cg(y)&&gR(y.children).length?!1:!n.symbol.members.has(d.escapedName)&&eM(a,d.escapedName)}),d=>[()=>Oe,d.escapedName])),Sa)}function f1(n,a){let c=Im(n)?U8e(n,a):Jd(n,a),d=Lee(c,n,a);if(d&&!(a&&a&2&&d.flags&8650752)){let _=ul(d,y=>Wr(y)&32?y:Md(y),!0);return _.flags&1048576&&wa(n)?Gdt(n,_):_.flags&1048576&&Y1(n)?Vdt(n,_):_}}function Lee(n,a,c){if(n&&Dl(n,465829888)){let d=VE(a);if(d&&c&1&&Et(d.inferences,Imt))return kee(n,d.nonFixingMapper);if(d?.returnMapper){let _=kee(n,d.returnMapper);return _.flags&1048576&&mv(_.types,Tn)&&mv(_.types,Gn)?uc(_,y=>y!==Tn&&y!==Gn):_}}return n}function kee(n,a){return n.flags&465829888?co(n,a):n.flags&1048576?ii(Ft(n.types,c=>kee(c,a)),0):n.flags&2097152?Ea(Ft(n.types,c=>kee(c,a))):n}function Jd(n,a){var c;if(n.flags&67108864)return;let d=J8e(n,!a);if(d>=0)return hn[d];let{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Rdt(n,a);case 219:case 253:return Ddt(n,a);case 229:return Ndt(_,a);case 223:return Cdt(_,a);case 213:case 214:return V8e(_,n);case 170:return Pdt(_);case 216:case 234:return kg(_.type)?Jd(_,a):Ii(_.type);case 226:return Ldt(n,a);case 303:case 304:return aye(_,a);case 305:return Jd(_.parent,a);case 209:{let y=_,x=f1(y,a),L=Qx(y.elements,n),z=(c=ti(y)).spreadIndices??(c.spreadIndices=Fdt(y.elements));return sye(x,L,y.elements.length,z.first,z.last)}case 227:return Wdt(n,a);case 239:return C.assert(_.parent.kind===228),Mdt(_.parent,n);case 217:{if(cr(_)){if(kU(_))return Ii(wU(_));let y=r0(_);if(y&&!kg(y.typeExpression.type))return Ii(y.typeExpression.type)}return Jd(_,a)}case 235:return Jd(_,a);case 238:return Ii(_.type);case 277:return ao(_);case 294:return Bdt(_,a);case 291:case 293:return H8e(_,a);case 286:case 285:return qdt(_,a);case 301:return Hdt(_)}}function q8e(n){Jz(n,Jd(n,void 0),!0)}function Jz(n,a,c){Yn[hi]=n,hn[hi]=a,$n[hi]=c,hi++}function j4(){hi--}function J8e(n,a){for(let c=hi-1;c>=0;c--)if(n===Yn[c]&&(a||!$n[c]))return c;return-1}function jdt(n,a){ur[mr]=n,oi[mr]=a,mr++}function Udt(){mr--}function VE(n){for(let a=mr-1;a>=0;a--)if(P1(n,ur[a]))return oi[a]}function Hdt(n){return p1(zge(!1),i7(n))}function qdt(n,a){if(w_(n)&&a!==4){let c=J8e(n.parent,!a);if(c>=0)return hn[c]}return oye(n,0)}function wee(n,a){return N6e(a)!==0?Jdt(n,a):Ydt(n,a)}function Jdt(n,a){let c=Gye(n,mn);c=K8e(a,ZT(a),c);let d=jE(nf.IntrinsicAttributes,a);return qt(d)||(c=dz(d,c)),c}function Kdt(n,a){if(n.compositeSignatures){let d=[];for(let _ of n.compositeSignatures){let y=ms(_);if(Ct(y))return y;let x=Xe(y,a);if(!x)return;d.push(x)}return Ea(d)}let c=ms(n);return Ct(c)?c:Xe(c,a)}function Xdt(n){if(vx(n.tagName)){let c=r6e(n),d=Jee(n,c);return BT(d)}let a=ec(n.tagName);if(a.flags&128){let c=n6e(a,n);if(!c)return ht;let d=Jee(n,c);return BT(d)}return a}function K8e(n,a,c){let d=hpt(a);if(d){let _=Xdt(n),y=a6e(d,cr(n),_,c);if(y)return y}return c}function Ydt(n,a){let c=ZT(a),d=vpt(c),_=d===void 0?Gye(n,mn):d===""?ms(n):Kdt(n,d);if(!_)return d&&De(a.attributes.properties)&&qe(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Hi(d)),mn;if(_=K8e(a,c,_),Ct(_))return _;{let y=_,x=jE(nf.IntrinsicClassAttributes,a);if(!qt(x)){let z=kr(x.symbol),U=ms(n),re;if(z){let be=wb([U],z,zh(z),cr(a));re=co(x,Mp(z,be))}else re=x;y=dz(re,y)}let L=jE(nf.IntrinsicAttributes,a);return qt(L)||(y=dz(L,y)),y}}function $dt(n){return ud(V,"noImplicitAny")?nd(n,(a,c)=>a===c||!a?a:Jwe(a.typeParameters,c.typeParameters)?ept(a,c):void 0):void 0}function Qdt(n,a,c){if(!n||!a)return n||a;let d=ii([pr(n),co(pr(a),c)]);return JT(n,d)}function Zdt(n,a,c){let d=Kp(n),_=Kp(a),y=d>=_?n:a,x=y===n?a:n,L=y===n?d:_,z=jh(n)||jh(a),U=z&&!jh(y),re=new Array(L+(U?1:0));for(let be=0;be=nh(y)&&be>=nh(x),un=be>=d?void 0:aM(n,be),sr=be>=_?void 0:aM(a,be),Ln=un===sr?un:un?sr?void 0:un:sr,cn=Xa(1|(sn&&!Rt?16777216:0),Ln||`arg${be}`);cn.links.type=Rt?Gu(vt):vt,re[be]=cn}if(U){let be=Xa(1,"args");be.links.type=Gu(v_(x,L)),x===a&&(be.links.type=co(be.links.type,c)),re[L]=be}return re}function ept(n,a){let c=n.typeParameters||a.typeParameters,d;n.typeParameters&&a.typeParameters&&(d=Mp(a.typeParameters,n.typeParameters));let _=n.declaration,y=Zdt(n,a,d),x=Qdt(n.thisParameter,a.thisParameter,d),L=Math.max(n.minArgumentCount,a.minArgumentCount),z=Tg(_,c,x,y,void 0,void 0,L,(n.flags|a.flags)&167);return z.compositeKind=2097152,z.compositeSignatures=xo(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),d&&(z.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?zE(n.mapper,d):d),z}function lye(n,a){let c=Yo(n,0),d=tr(c,_=>!tpt(_,a));return d.length===1?d[0]:$dt(d)}function tpt(n,a){let c=0;for(;cQP(ge)||Hd(ge)&&!ge.nameType&&!!N4(ge.target||ge)),be=!1;for(let ge=0;ge<_;ge++){let Je=d[ge];if(Je.kind===230){ue<2&&Rc(Je,V.downlevelIteration?1536:1024);let vt=go(Je.expression,a,c);if(gy(vt))y.push(vt),x.push(8);else if(L){let Rt=r1(vt,Dt)||lbe(65,vt,Oe,void 0,!1)||mn;y.push(Rt),x.push(4)}else y.push(yy(33,vt,Oe,Je.expression)),x.push(4)}else if(Ce&&Je.kind===232)be=!0,y.push(ae),x.push(2);else{let vt=cM(Je,a,c);if(y.push(lp(vt,!0,be)),x.push(be?2:1),re&&a&&a&2&&!(a&4)&&Gf(Je)){let Rt=VE(n);C.assert(Rt),Pve(Rt,Je,vt)}}}return j4(),L?Gh(y,x):Y8e(c||z||re?Gh(y,x,z&&!(U&&jm(U,Sve))):Gu(y.length?ii(Io(y,(ge,Je)=>x[Je]&8?Fb(ge,Dt)||j:ge),2):Y?Mi:Lt,z))}function Y8e(n){if(!(Wr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=vOe(n),a.objectFlags|=147456),a}function opt(n){switch(n.kind){case 167:return apt(n);case 80:return sg(n.escapedText);case 9:case 11:return sg(n.text);default:return!1}}function apt(n){return xu(Ig(n),296)}function Ig(n){let a=ti(n.expression);if(!a.resolvedType){if((yp(n.parent.parent)||pi(n.parent.parent)||fd(n.parent.parent))&&_r(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=ht;if(a.resolvedType=go(n.expression),Jo(n.parent)&&!fc(n.parent)&&Zc(n.parent.parent)){let c=_h(n.parent.parent),d=Qve(c);d&&(ti(d).flags|=4096,ti(n).flags|=32768,ti(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!xu(a.resolvedType,402665900)&&!Sa(a.resolvedType,Dn))&&qe(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function spt(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return sg(n.escapedName)||c&&od(c)&&opt(c.name)}function $8e(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return ek(n)||c&&od(c)&&Za(c.name)&&xu(Ig(c.name),4096)}function uye(n,a,c,d){let _=[];for(let x=a;x0&&(L=OE(L,Fn(),n.symbol,Rt,re),x=[],y=ua(),un=!1,sr=!1,Ln=!1);let er=__(go(kn.expression,a&2));if(Kz(er)){let Mo=ive(er,re);if(_&&Z8e(Mo,_,kn),cn=x.length,qt(L))continue;L=OE(L,Mo,n.symbol,Rt,re)}else qe(kn,f.Spread_types_may_only_be_created_from_object_types),L=ht;continue}else C.assert(kn.kind===177||kn.kind===178),yx(kn);Hn&&!(Hn.flags&8576)?Sa(Hn,Dn)&&(Sa(Hn,Dt)?sr=!0:Sa(Hn,Di)?Ln=!0:un=!0,d&&(sn=!0)):y.set(Zn.escapedName,Zn),x.push(Zn)}if(j4(),U){let kn=zn(z.pattern.parent,Hn=>Hn.kind===260||Hn.kind===226||Hn.kind===169);if(zn(n,Hn=>Hn===kn||Hn.kind===305).kind!==305)for(let Hn of ys(z))!y.get(Hn.escapedName)&&!ba(L,Hn.escapedName)&&(Hn.flags&16777216||qe(Hn.valueDeclaration||((c=ai(Hn,fh))==null?void 0:c.links.bindingElement),f.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),y.set(Hn.escapedName,Hn),x.push(Hn))}if(qt(L))return ht;if(L!==Pa)return x.length>0&&(L=OE(L,Fn(),n.symbol,Rt,re),x=[],y=ua(),un=!1,sr=!1),ul(L,kn=>kn===Pa?Fn():kn);return Fn();function Fn(){let kn=[];un&&kn.push(uye(n,cn,x,ke)),sr&&kn.push(uye(n,cn,x,Dt)),Ln&&kn.push(uye(n,cn,x,Di));let Zn=Ls(n.symbol,y,et,et,kn);return Zn.objectFlags|=Rt|128|131072,vt&&(Zn.objectFlags|=4096),sn&&(Zn.objectFlags|=512),d&&(Zn.pattern=n),Zn}}function Kz(n){let a=q4e(ul(n,fv));return!!(a.flags&126615553||a.flags&3145728&&Jn(a.types,Kz))}function cpt(n){mye(n)}function upt(n,a){return yx(n),Yz(n)||j}function dpt(n){mye(n.openingElement),vx(n.closingElement.tagName)?Fee(n.closingElement):go(n.closingElement.tagName),Oee(n)}function ppt(n,a){return yx(n),Yz(n)||j}function fpt(n){mye(n.openingFragment);let a=Vn(n);return G3(V)&&(V.jsxFactory||a.pragmas.has("jsx"))&&!V.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&qe(n,V.jsxFactory?f.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:f.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Oee(n),Yz(n)||j}function pye(n){return n.includes("-")}function vx(n){return Ve(n)&&yR(n.escapedText)||e_(n)}function Q8e(n,a){return n.initializer?cM(n.initializer,a):On}function mpt(n,a=0){let c=n.attributes,d=Jd(c,0),_=Y?ua():void 0,y=ua(),x=fl,L=!1,z,U=!1,re=2048,be=Xz(ZT(n));for(let vt of c.properties){let Rt=vt.symbol;if(O_(vt)){let sn=Q8e(vt,a);re|=Wr(sn)&458752;let un=Xa(4|Rt.flags,Rt.escapedName);if(un.declarations=Rt.declarations,un.parent=Rt.parent,Rt.valueDeclaration&&(un.valueDeclaration=Rt.valueDeclaration),un.links.type=sn,un.links.target=Rt,y.set(un.escapedName,un),_?.set(un.escapedName,un),lN(vt.name)===be&&(U=!0),d){let sr=ba(d,Rt.escapedName);sr&&sr.declarations&&fb(sr)&&Ve(vt.name)&&sy(vt.name,sr.declarations,vt.name.escapedText)}if(d&&a&2&&!(a&4)&&Gf(vt)){let sr=VE(c);C.assert(sr);let Ln=vt.initializer.expression;Pve(sr,Ln,sn)}}else{C.assert(vt.kind===293),y.size>0&&(x=OE(x,Je(),c.symbol,re,!1),y=ua());let sn=__(go(vt.expression,a&2));Ct(sn)&&(L=!0),Kz(sn)?(x=OE(x,sn,c.symbol,re,!1),_&&Z8e(sn,_,vt)):(qe(vt.expression,f.Spread_types_may_only_be_created_from_object_types),z=z?Ea([z,sn]):sn)}}L||y.size>0&&(x=OE(x,Je(),c.symbol,re,!1));let ge=n.parent.kind===284?n.parent:void 0;if(ge&&ge.openingElement===n&&gR(ge.children).length>0){let vt=Oee(ge,a);if(!L&&be&&be!==""){U&&qe(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Hi(be));let Rt=f1(n.attributes,void 0),sn=Rt&&p1(Rt,be),un=Xa(4,be);un.links.type=vt.length===1?vt[0]:sn&&jm(sn,QP)?Gh(vt):Gu(ii(vt)),un.valueDeclaration=k.createPropertySignature(void 0,Hi(be),void 0,void 0),qa(un.valueDeclaration,c),un.valueDeclaration.symbol=un;let sr=ua();sr.set(be,un),x=OE(x,Ls(c.symbol,sr,et,et,et),c.symbol,re,!1)}}if(L)return j;if(z&&x!==fl)return Ea([z,x]);return z||(x===fl?Je():x);function Je(){re|=Ee;let vt=Ls(c.symbol,y,et,et,et);return vt.objectFlags|=re|128|131072,vt}}function Oee(n,a){let c=[];for(let d of n.children)if(d.kind===12)d.containsOnlyTriviaWhiteSpaces||c.push(ke);else{if(d.kind===294&&!d.expression)continue;c.push(cM(d,a))}return c}function Z8e(n,a,c){for(let d of ys(n))if(!(d.flags&16777216)){let _=a.get(d.escapedName);if(_){let y=qe(_.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Hi(_.escapedName));ka(y,Or(c,f.This_spread_always_overwrites_this_property))}}}function _pt(n,a){return mpt(n.parent,a)}function jE(n,a){let c=ZT(a),d=c&&Dp(c),_=d&&Ud(d,n,788968);return _?Qs(_):ht}function Fee(n){let a=ti(n);if(!a.resolvedSymbol){let c=jE(nf.IntrinsicElements,n);if(qt(c))return me&&qe(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Hi(nf.IntrinsicElements)),a.resolvedSymbol=ft;{if(!Ve(n.tagName)&&!e_(n.tagName))return C.fail();let d=e_(n.tagName)?HA(n.tagName):n.tagName.escapedText,_=ba(c,d);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;let y=R7e(c,qd(Hi(d)));return y?(a.jsxFlags|=2,a.resolvedSymbol=y):It(c,d)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(qe(n,f.Property_0_does_not_exist_on_type_1,OU(n.tagName),"JSX."+nf.IntrinsicElements),a.resolvedSymbol=ft)}}return a.resolvedSymbol}function fye(n){let a=n&&Vn(n),c=a&&ti(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;let d=j3(V3(V,a),V);if(!d)return;let y=dd(V)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations,x=V.importHelpers?1:0,L=a?.imports[x];L&&C.assert(Xs(L)&&L.text===d,`Expected sourceFile.imports[${x}] to be the synthesized JSX runtime import`);let z=J_(L||n,d,y,n),U=z&&z!==ft?is(Gl(z)):void 0;return c&&(c.jsxImplicitImportContainer=U||!1),U}function ZT(n){let a=n&&ti(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let d=fye(n);if(!d||d===ft){let _=z0(n);d=vl(n,_,1920,void 0,_,!1)}if(d){let _=Gl(Ud(Dp(Gl(d)),nf.JSX,1920));if(_&&_!==ft)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}let c=Gl(JP(nf.JSX,1920,void 0));if(c!==ft)return c}function e6e(n,a){let c=a&&Ud(a.exports,n,788968),d=c&&Qs(c),_=d&&ys(d);if(_){if(_.length===0)return"";if(_.length===1)return _[0].escapedName;_.length>1&&c.declarations&&qe(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Hi(n))}}function hpt(n){return n&&Ud(n.exports,nf.LibraryManagedAttributes,788968)}function gpt(n){return n&&Ud(n.exports,nf.ElementType,788968)}function vpt(n){return e6e(nf.ElementAttributesPropertyNameContainer,n)}function Xz(n){return e6e(nf.ElementChildrenAttributeNameContainer,n)}function t6e(n,a){if(n.flags&4)return[St];if(n.flags&128){let _=n6e(n,a);return _?[Jee(a,_)]:(qe(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+nf.IntrinsicElements),et)}let c=Md(n),d=Yo(c,1);return d.length===0&&(d=Yo(c,0)),d.length===0&&c.flags&1048576&&(d=uge(Ft(c.types,_=>t6e(_,a)))),d}function n6e(n,a){let c=jE(nf.IntrinsicElements,a);if(!qt(c)){let d=n.value,_=ba(c,ml(d));if(_)return pr(_);let y=r1(c,ke);return y||void 0}return j}function ypt(n,a,c){if(n===1){let _=o6e(c);_&&Vf(a,_,jd,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,d)}else if(n===0){let _=i6e(c);_&&Vf(a,_,jd,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,d)}else{let _=o6e(c),y=i6e(c);if(!_||!y)return;let x=ii([_,y]);Vf(a,x,jd,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,d)}function d(){let _=pc(c.tagName);return Uo(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function r6e(n){var a;C.assert(vx(n.tagName));let c=ti(n);if(!c.resolvedJsxElementAttributesType){let d=Fee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=pr(d)||ht;if(c.jsxFlags&2){let _=e_(n.tagName)?HA(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=px(jE(nf.IntrinsicElements,n),_))==null?void 0:a.type)||ht}else return c.resolvedJsxElementAttributesType=ht}return c.resolvedJsxElementAttributesType}function i6e(n){let a=jE(nf.ElementClass,n);if(!qt(a))return a}function Yz(n){return jE(nf.Element,n)}function o6e(n){let a=Yz(n);if(a)return ii([a,pe])}function bpt(n){let a=ZT(n);if(!a)return;let c=gpt(a);if(!c)return;let d=a6e(c,cr(n));if(!(!d||qt(d)))return d}function a6e(n,a,...c){let d=Qs(n);if(n.flags&524288){let _=$i(n).typeParameters;if(De(_)>=c.length){let y=wb(c,_,c.length,a);return De(y)===0?d:vD(n,y)}}if(De(d.typeParameters)>=c.length){let _=wb(c,d.typeParameters,c.length,a);return fy(d,_)}}function Ept(n){let a=jE(nf.IntrinsicElements,n);return a?ys(a):et}function Spt(n){(V.jsx||0)===0&&qe(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),Yz(n)===void 0&&me&&qe(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function mye(n){let a=sd(n);if(a&&_vt(n),Spt(n),!fye(n)){let c=ns&&V.jsx===2?f.Cannot_find_name_0:void 0,d=z0(n),_=a?n.tagName:n,y;if(dI(n)&&d==="null"||(y=vl(_,d,111551,c,d,!0)),y&&(y.isReferenced=-1,gt&&y.flags&2097152&&!wf(y)&&bb(y)),dI(n)){let x=Vn(n),L=YI(x);L&&vl(_,L,111551,c,L,!0)}}if(a){let c=n,d=DD(c);Xee(d,n);let _=bpt(c);if(_!==void 0){let y=c.tagName,x=vx(y)?qd(OU(y)):go(y);Vf(x,_,jd,y,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let L=pc(y);return Uo(void 0,f._0_cannot_be_used_as_a_JSX_component,L)})}else ypt(N6e(c),ms(d),c)}}function _ye(n,a,c){if(n.flags&524288){if(n1(n,a)||px(n,a)||y4(a)&&Ag(n,ke)||c&&pye(a))return!0}else if(n.flags&3145728&&$z(n)){for(let d of n.types)if(_ye(d,a,c))return!0}return!1}function $z(n){return!!(n.flags&524288&&!(Wr(n)&512)||n.flags&67108864||n.flags&1048576&&Et(n.types,$z)||n.flags&2097152&&Jn(n.types,$z))}function Tpt(n,a){if(gvt(n),n.expression){let c=go(n.expression,a);return n.dotDotDotToken&&c!==j&&!jf(c)&&qe(n,f.JSX_spread_child_must_be_an_array_type),c}else return ht}function hye(n){return n.valueDeclaration?KE(n.valueDeclaration):0}function gye(n){if(n.flags&8192||Al(n)&4)return!0;if(cr(n.valueDeclaration)){let a=n.valueDeclaration.parent;return a&&_r(a)&&Wl(a)===3}}function vye(n,a,c,d,_,y=!0){let x=y?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return s6e(n,a,c,d,_,x)}function s6e(n,a,c,d,_,y){var x;let L=If(_,c);if(a){if(ue<2&&l6e(_))return y&&qe(y,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(L&64)return y&&qe(y,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ai(_),jn(gx(_))),!1;if(!(L&256)&&((x=_.declarations)!=null&&x.some(Cre)))return y&&qe(y,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Ai(_)),!1}if(L&64&&l6e(_)&&(NL(n)||Rie(n)||om(n.parent)&&Z6(n.parent.parent))){let U=Bg(Cd(_));if(U&&mgt(n))return y&&qe(y,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ai(_),Zf(U.name)),!1}if(!(L&6))return!0;if(L&2){let U=Bg(Cd(_));return bbe(n,U)?!0:(y&&qe(y,f.Property_0_is_private_and_only_accessible_within_class_1,Ai(_),jn(gx(_))),!1)}if(a)return!0;let z=I7e(n,U=>{let re=Qs(Rr(U));return O4e(re,_,c)});return!z&&(z=Apt(n),z=z&&O4e(z,_,c),L&256||!z)?(y&&qe(y,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ai(_),jn(gx(_)||d)),!1):L&256?!0:(d.flags&262144&&(d=d.isThisType?Pd(d):Bu(d)),!d||!pD(d,z)?(y&&qe(y,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ai(_),jn(z),jn(d)),!1):!0)}function Apt(n){let a=Ipt(n),c=a?.type&&Ii(a.type);if(c&&c.flags&262144&&(c=Pd(c)),c&&Wr(c)&7)return dy(c)}function Ipt(n){let a=wd(n,!1,!1);return a&&ea(a)?k1(a):void 0}function l6e(n){return!!Mz(n,a=>!(a.flags&8192))}function xD(n){return Z_(go(n),n)}function Qz(n){return mm(n,50331648)}function yye(n){return Qz(n)?yv(n):n}function xpt(n,a){let c=zl(n)?fp(n):void 0;if(n.kind===106){qe(n,f.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Ve(n)&&c==="undefined"){qe(n,f.The_value_0_cannot_be_used_here,"undefined");return}qe(n,a&16777216?a&33554432?f._0_is_possibly_null_or_undefined:f._0_is_possibly_undefined:f._0_is_possibly_null,c)}else qe(n,a&16777216?a&33554432?f.Object_is_possibly_null_or_undefined:f.Object_is_possibly_undefined:f.Object_is_possibly_null)}function Rpt(n,a){qe(n,a&16777216?a&33554432?f.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:f.Cannot_invoke_an_object_which_is_possibly_undefined:f.Cannot_invoke_an_object_which_is_possibly_null)}function c6e(n,a,c){if(Y&&n.flags&2){if(zl(a)){let _=fp(a);if(_.length<100)return qe(a,f._0_is_of_type_unknown,_),ht}return qe(a,f.Object_is_of_type_unknown),ht}let d=tM(n,50331648);if(d&50331648){c(a,d);let _=yv(n);return _.flags&229376?ht:_}return n}function Z_(n,a){return c6e(n,a,xpt)}function u6e(n,a){let c=Z_(n,a);if(c.flags&16384){if(zl(a)){let d=fp(a);if(Ve(a)&&d==="undefined")return qe(a,f.The_value_0_cannot_be_used_here,d),c;if(d.length<100)return qe(a,f._0_is_possibly_undefined,d),c}qe(a,f.Object_is_possibly_undefined)}return c}function Wee(n,a,c){return n.flags&64?Dpt(n,a):Eye(n,n.expression,xD(n.expression),n.name,a,c)}function Dpt(n,a){let c=go(n.expression),d=O4(c,n.expression);return fee(Eye(n,n.expression,Z_(d,n.expression),n.name,a),n,d!==c)}function d6e(n,a){let c=r3(n)&&O1(n.left)?Z_(Hz(n.left),n.left):xD(n.left);return Eye(n,n.left,c,n.right,a)}function p6e(n){for(;n.parent.kind===217;)n=n.parent;return T_(n.parent)&&n.parent.expression===n}function zee(n,a){for(let c=$6(a);c;c=su(c)){let{symbol:d}=c,_=ZL(d,n),y=d.members&&d.members.get(_)||d.exports&&d.exports.get(_);if(y)return y}}function Cpt(n){if(!su(n))return bn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!t5(n.parent)){if(!eg(n))return bn(n,f.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);let a=_r(n.parent)&&n.parent.operatorToken.kind===103;if(!Bee(n)&&!a)return bn(n,f.Cannot_find_name_0,Sr(n))}return!1}function Npt(n){Cpt(n);let a=Bee(n);return a&&eB(a,void 0,!1),j}function Bee(n){if(!eg(n))return;let a=ti(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=zee(n.escapedText,n)),a.resolvedSymbol}function bye(n,a){return ba(n,a.escapedName)}function Ppt(n,a,c){let d,_=ys(n);_&&Ke(_,x=>{let L=x.valueDeclaration;if(L&&od(L)&&Xi(L.name)&&L.name.escapedText===a.escapedText)return d=x,!0});let y=Om(a);if(d){let x=C.checkDefined(d.valueDeclaration),L=C.checkDefined(su(x));if(c?.valueDeclaration){let z=c.valueDeclaration,U=su(z);if(C.assert(!!U),zn(U,re=>L===re)){let re=qe(a,f.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,y,jn(n));return ka(re,Or(z,f.The_shadowing_declaration_of_0_is_defined_here,y),Or(x,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,y)),!0}}return qe(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,y,Om(L.name||j5)),!0}return!1}function f6e(n,a){return(cD(a)||NL(n)&&WP(a))&&wd(n,!0,!1)===zP(a)}function Eye(n,a,c,d,_,y){let x=ti(a).resolvedSymbol,L=wA(n),z=Md(L!==0||p6e(n)?Jp(c):c),U=Ct(z)||z===Eo,re;if(Xi(d)){ue<99&&(L!==0&&Rc(n,1048576),L!==1&&Rc(n,524288));let ge=zee(d.escapedText,d);if(L&&ge&&ge.valueDeclaration&&jl(ge.valueDeclaration)&&bn(d,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Sr(d)),U){if(ge)return qt(z)?ht:z;if($6(d)===void 0)return bn(d,f.Private_identifiers_are_not_allowed_outside_class_bodies),j}if(re=ge&&bye(c,ge),re===void 0){if(Ppt(c,d,ge))return ht;let Je=$6(d);Je&&yL(Vn(Je),V.checkJs)&&bn(d,f.Private_field_0_must_be_declared_in_an_enclosing_class,Sr(d))}else re.flags&65536&&!(re.flags&32768)&&L!==1&&qe(n,f.Private_accessor_was_defined_without_a_getter)}else{if(U)return Ve(a)&&x&&Nee(x,n),qt(z)?ht:z;re=ba(z,d.escapedText,Qee(z),n.kind===166)}Ve(a)&&x&&(im(V)||!(re&&(r8(re)||re.flags&8&&n.parent.kind===306))||V1(V)&&M8e(n))&&Nee(x,n);let be;if(re){let ge=gbe(re,d);if(fb(ge)&&Zge(n,ge)&&ge.declarations&&sy(d,ge.declarations,d.escapedText),Mpt(re,n,d),eB(re,n,b6e(a,x)),ti(n).resolvedSymbol=re,vye(n,a.kind===108,BA(n),z,re),c3e(n,re,L))return qe(d,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Sr(d)),ht;be=f6e(n,re)?ot:y||L3(n)?ME(re):pr(re)}else{let ge=!Xi(d)&&(L===0||!jT(c)||aN(c))?px(z,d.escapedText):void 0;if(!(ge&&ge.type)){let Je=Sye(n,c.symbol,!0);return!Je&&R4(c)?j:c.symbol===at?(at.exports.has(d.escapedText)&&at.exports.get(d.escapedText).flags&418?qe(d,f.Property_0_does_not_exist_on_type_1,Hi(d.escapedText),jn(c)):me&&qe(d,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,jn(c)),j):(d.escapedText&&!hT(n)&&h6e(d,aN(c)?z:c,Je),ht)}ge.isReadonly&&(ng(n)||zj(n))&&qe(n,f.Index_signature_in_type_0_only_permits_reading,jn(z)),be=V.noUncheckedIndexedAccess&&!ng(n)?ii([ge.type,w]):ge.type,V.noPropertyAccessFromIndexSignature&&zr(n)&&qe(d,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Hi(d.escapedText)),ge.declaration&&ay(ge.declaration)&&sy(d,[ge.declaration],d.escapedText)}return m6e(n,re,be,d,_)}function Sye(n,a,c){var d;let _=Vn(n);if(_&&V.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){let y=Ke(a?.declarations,Vn),x=!a?.valueDeclaration||!pi(a.valueDeclaration)||((d=a.valueDeclaration.heritageClauses)==null?void 0:d.length)||Ov(!1,a.valueDeclaration);return!(_!==y&&y&&Nh(y))&&!(c&&a&&a.flags&32&&x)&&!(n&&c&&zr(n)&&n.expression.kind===110&&x)}return!1}function m6e(n,a,c,d,_){let y=wA(n);if(y===1)return Ub(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!fte(a.declarations))return c;if(c===ot)return uD(n,a);c=$ve(c,n,_);let x=!1;if(Y&&Ne&&ks(n)&&n.expression.kind===110){let z=a&&a.valueDeclaration;if(z&&p7e(z)&&!sa(z)){let U=V4(n);U.kind===176&&U.parent===z.parent&&!(z.flags&33554432)&&(x=!0)}}else Y&&a&&a.valueDeclaration&&zr(a.valueDeclaration)&&BL(a.valueDeclaration)&&V4(n)===V4(a.valueDeclaration)&&(x=!0);let L=Hb(n,c,x?jb(c):c);return x&&!XP(c)&&XP(L)?(qe(d,f.Property_0_is_used_before_being_assigned,Ai(a)),c):y?vv(L):L}function Mpt(n,a,c){let{valueDeclaration:d}=n;if(!d||Vn(a).isDeclarationFile)return;let _,y=Sr(c);_6e(a)&&!bst(d)&&!(ks(a)&&ks(a.expression))&&!nv(d,c)&&!(jl(d)&&Ste(d)&256)&&(he||!Lpt(n))?_=qe(c,f.Property_0_is_used_before_its_initialization,y):d.kind===263&&a.parent.kind!==183&&!(d.flags&33554432)&&!nv(d,c)&&(_=qe(c,f.Class_0_used_before_its_declaration,y)),_&&ka(_,Or(d,f._0_is_declared_here,y))}function _6e(n){return!!zn(n,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Xo(a.parent)&&Il(a.parent.parent)?!0:"quit";default:return eg(a)?!1:"quit"}})}function Lpt(n){if(!(n.parent.flags&32))return!1;let a=pr(n.parent);for(;;){if(a=a.symbol&&kpt(a),!a)return!1;let c=ba(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function kpt(n){let a=Np(n);if(a.length!==0)return Ea(a)}function h6e(n,a,c){let d,_;if(!Xi(n)&&a.flags&1048576&&!(a.flags&402784252)){for(let x of a.types)if(!ba(x,n.escapedText)&&!px(x,n.escapedText)){d=Uo(d,f.Property_0_does_not_exist_on_type_1,Ds(n),jn(x));break}}if(g6e(n.escapedText,a)){let x=Ds(n),L=jn(a);d=Uo(d,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,L,L+"."+x)}else{let x=$4(a);if(x&&ba(x,n.escapedText))d=Uo(d,f.Property_0_does_not_exist_on_type_1,Ds(n),jn(a)),_=Or(n,f.Did_you_forget_to_use_await);else{let L=Ds(n),z=jn(a),U=Fpt(L,a);if(U!==void 0)d=Uo(d,f.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,L,z,U);else{let re=Tye(n,a);if(re!==void 0){let be=bl(re),ge=c?f.Property_0_may_not_exist_on_type_1_Did_you_mean_2:f.Property_0_does_not_exist_on_type_1_Did_you_mean_2;d=Uo(d,ge,L,z,be),_=re.valueDeclaration&&Or(re.valueDeclaration,f._0_is_declared_here,be)}else{let be=wpt(a)?f.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:f.Property_0_does_not_exist_on_type_1;d=Uo(bge(d,a),be,L,z)}}}}let y=Og(Vn(n),n,d);_&&ka(y,_),a_(!c||d.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,y)}function wpt(n){return V.lib&&!V.lib.includes("dom")&&Jut(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Hi(a.symbol.escapedName)))&&gv(n)}function g6e(n,a){let c=a.symbol&&ba(pr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&sa(c.valueDeclaration)}function Opt(n){let a=Om(n),d=s7().get(a);return d&&tG(d.keys())}function Fpt(n,a){let c=Md(a).symbol;if(!c)return;let d=bl(c),y=s7().get(d);if(y){for(let[x,L]of y)if(wr(L,n))return x}}function v6e(n,a){return Zz(n,ys(a),106500)}function Tye(n,a){let c=ys(a);if(typeof n!="string"){let d=n.parent;zr(d)&&(c=tr(c,_=>E6e(d,a,_))),n=Sr(n)}return Zz(n,c,111551)}function y6e(n,a){let c=wo(n)?n:Sr(n),d=ys(a);return(c==="for"?vn(d,y=>bl(y)==="htmlFor"):c==="class"?vn(d,y=>bl(y)==="className"):void 0)??Zz(c,d,111551)}function Aye(n,a){let c=Tye(n,a);return c&&bl(c)}function Iye(n,a,c){return C.assert(a!==void 0,"outername should always be defined"),Vp(n,a,c,void 0,a,!1,!1,!0,(_,y,x)=>{C.assertEqual(a,y,"name should equal outerName");let L=Ud(_,y,x);if(L)return L;let z;return _===Se?z=Vi(["string","number","boolean","object","bigint","symbol"],re=>_.has(re.charAt(0).toUpperCase()+re.slice(1))?Xa(524288,re):void 0).concat(Vo(_.values())):z=Vo(_.values()),Zz(Hi(y),z,x)})}function Wpt(n,a,c){let d=Iye(n,a,c);return d&&bl(d)}function Gee(n,a){return a.exports&&Zz(Sr(n),RT(a),2623475)}function zpt(n,a){let c=Gee(n,a);return c&&bl(c)}function Bpt(n,a,c){function d(x){let L=n1(n,x);if(L){let z=tA(pr(L));return!!z&&nh(z)>=1&&Sa(c,v_(z,0))}return!1}let _=ng(a)?"set":"get";if(!d(_))return;let y=lk(a.expression);return y===void 0?y=_:y+="."+_,y}function Gpt(n,a){let c=a.types.filter(d=>!!(d.flags&128));return QD(n.value,c,d=>d.value)}function Zz(n,a,c){return QD(n,a,d);function d(_){let y=bl(_);if(!uo(y,'"')){if(_.flags&c)return y;if(_.flags&2097152){let x=AT(_);if(x&&x.flags&c)return y}}}}function eB(n,a,c){let d=n&&n.flags&106500&&n.valueDeclaration;if(!d)return;let _=_p(d,2),y=n.valueDeclaration&&od(n.valueDeclaration)&&Xi(n.valueDeclaration.name);if(!(!_&&!y)&&!(a&&L3(a)&&!(n.flags&65536))){if(c){let x=zn(a,zs);if(x&&x.symbol===n)return}(Al(n)&1?$i(n).target:n).isReferenced=-1}}function b6e(n,a){return n.kind===110||!!a&&zl(n)&&a===Vm(Bp(n))}function Vpt(n,a){switch(n.kind){case 211:return xye(n,n.expression.kind===108,a,Jp(go(n.expression)));case 166:return xye(n,!1,a,Jp(go(n.left)));case 205:return xye(n,!1,a,Ii(n))}}function E6e(n,a,c){return Rye(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function xye(n,a,c,d){if(Ct(d))return!0;let _=ba(d,c);return!!_&&Rye(n,a,!1,d,_)}function Rye(n,a,c,d,_){if(Ct(d))return!0;if(_.valueDeclaration&&ad(_.valueDeclaration)){let y=su(_.valueDeclaration);return!Hu(n)&&!!zn(n,x=>x===y)}return s6e(n,a,c,d,_)}function jpt(n){let a=n.initializer;if(a.kind===261){let c=a.declarations[0];if(c&&!ta(c.name))return Rr(c)}else if(a.kind===80)return Vm(a)}function Upt(n){return hd(n).length===1&&!!Ag(n,Dt)}function Hpt(n){let a=vs(n);if(a.kind===80){let c=Vm(a);if(c.flags&3){let d=n,_=n.parent;for(;_;){if(_.kind===249&&d===_.statement&&jpt(_)===c&&Upt(Ru(_.expression)))return!0;d=_,_=_.parent}}}return!1}function qpt(n,a){return n.flags&64?Jpt(n,a):S6e(n,xD(n.expression),a)}function Jpt(n,a){let c=go(n.expression),d=O4(c,n.expression);return fee(S6e(n,Z_(d,n.expression),a),n,d!==c)}function S6e(n,a,c){let d=wA(n)!==0||p6e(n)?Jp(a):a,_=n.argumentExpression,y=go(_);if(qt(d)||d===Eo)return d;if(Qee(d)&&!us(_))return qe(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ht;let x=Hpt(_)?Dt:y,L=ng(n)?4|(jT(d)&&!aN(d)?2:0):32,z=Fb(d,x,L,n)||ht;return N3e(m6e(n,ti(n).resolvedSymbol,z,_,c),n)}function T6e(n){return T_(n)||q1(n)||sd(n)}function eA(n){return T6e(n)&&Ke(n.typeArguments,Da),n.kind===215?go(n.template):sd(n)?go(n.attributes):_r(n)?go(n.left):T_(n)&&Ke(n.arguments,a=>{go(a)}),St}function eh(n){return eA(n),pn}function Kpt(n,a,c){let d,_,y=0,x,L=-1,z;C.assert(!a.length);for(let U of n){let re=U.declaration&&Rr(U.declaration),be=U.declaration&&U.declaration.parent;!_||re===_?d&&be===d?x=x+1:(d=be,x=y):(x=y=a.length,d=be),_=re,Fq(U)?(L++,z=L,y++):z=x,a.splice(z,0,c?Vat(U,c):U)}}function Vee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function jee(n){return ri(n,Vee)}function A6e(n){return!!(n.flags&16384)}function Xpt(n){return!!(n.flags&49155)}function Uee(n,a,c,d=!1){let _,y=!1,x=Kp(c),L=nh(c);if(n.kind===215)if(_=a.length,n.template.kind===228){let z=Ya(n.template.templateSpans);y=Fl(z.literal)||!!z.literal.isUnterminated}else{let z=n.template;C.assert(z.kind===15),y=!!z.isUnterminated}else if(n.kind===170)_=M6e(n,c);else if(n.kind===226)_=1;else if(sd(n)){if(y=n.attributes.end===n.end,y)return!0;_=L===0?a.length:1,x=a.length===0?x:1,L=Math.min(L,1)}else if(n.arguments){_=d?a.length+1:a.length,y=n.arguments.end===n.end;let z=jee(a);if(z>=0)return z>=nh(c)&&(jh(c)||zx)return!1;if(y||_>=L)return!0;for(let z=_;z=d&&a.length<=c}function I6e(n,a){let c;return!!(n.target&&(c=UE(n.target,a))&&ED(c))}function tA(n){return H4(n,0,!1)}function x6e(n){return H4(n,0,!1)||H4(n,1,!1)}function H4(n,a,c){if(n.flags&524288){let d=m_(n);if(c||d.properties.length===0&&d.indexInfos.length===0){if(a===0&&d.callSignatures.length===1&&d.constructSignatures.length===0)return d.callSignatures[0];if(a===1&&d.constructSignatures.length===1&&d.callSignatures.length===0)return d.constructSignatures[0]}}}function R6e(n,a,c,d){let _=z4(n.typeParameters,n,0,d),y=q4(a),x=c&&(y&&y.flags&262144?c.nonFixingMapper:c.mapper),L=x?TD(a,x):a;return Dve(L,n,(z,U)=>{bv(_.inferences,z,U)}),c||Cve(a,n,(z,U)=>{bv(_.inferences,z,U,128)}),T4(n,Gve(_),cr(a.declaration))}function Ypt(n,a,c,d){let _=wee(a,n),y=CD(n.attributes,_,d,c);return bv(d.inferences,y,_),Gve(d)}function D6e(n){if(!n)return or;let a=go(n);return loe(n)?a:dC(n.parent)?yv(a):Hu(n.parent)?pee(a):a}function Cye(n,a,c,d,_){if(sd(n))return Ypt(n,a,d,_);if(n.kind!==170&&n.kind!==226){let z=Jn(a.typeParameters,re=>!!zT(re)),U=Jd(n,z?8:0);if(U){let re=ms(a);if(u1(re)){let be=VE(n);if(!(!z&&Jd(n,8)!==U)){let Rt=Lve(cut(be,1)),sn=co(U,Rt),un=tA(sn),sr=un&&un.typeParameters?BT(Rge(un,un.typeParameters)):sn;bv(_.inferences,sr,re,128)}let Je=z4(a.typeParameters,a,_.flags),vt=co(U,be&&be.returnMapper);bv(Je.inferences,vt,re),_.returnMapper=Et(Je.inferences,ND)?Lve(fut(Je)):void 0}}}let y=J4(a),x=y?Math.min(Kp(a)-1,c.length):c.length;if(y&&y.flags&262144){let z=vn(_.inferences,U=>U.typeParameter===y);z&&(z.impliedArity=ri(c,Vee,x)<0?c.length-x:void 0)}let L=i1(a);if(L&&u1(L)){let z=P6e(n);bv(_.inferences,D6e(z),L)}for(let z=0;z=c-1){let re=n[c-1];if(Vee(re)){let be=re.kind===237?re.type:CD(re.expression,d,_,y);return gy(be)?C6e(be):Gu(yy(33,be,Oe,re.kind===230?re.expression:re),x)}}let L=[],z=[],U=[];for(let re=a;reUo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,be=d||f.Type_0_does_not_satisfy_the_constraint_1;L||(L=Mp(y,x));let ge=x[z];if(!td(ge,qp(co(U,L),ge),c?a[z]:void 0,be,re))return}}return x}function N6e(n){if(vx(n.tagName))return 2;let a=Md(go(n.tagName));return De(Yo(a,1))?0:De(Yo(a,0))?1:2}function $pt(n,a,c,d,_,y,x){let L=wee(a,n),z=CD(n.attributes,L,void 0,d),U=d&4?W4(z):z;return re()&&fve(U,L,c,_?n.tagName:void 0,n.attributes,void 0,y,x);function re(){var be;if(fye(n))return!0;let ge=(w_(n)||zS(n))&&!(vx(n.tagName)||e_(n.tagName))?go(n.tagName):void 0;if(!ge)return!0;let Je=Yo(ge,0);if(!De(Je))return!0;let vt=F7e(n);if(!vt)return!0;let Rt=Us(vt,111551,!0,!1,n);if(!Rt)return!0;let sn=pr(Rt),un=Yo(sn,0);if(!De(un))return!0;let sr=!1,Ln=0;for(let Fn of un){let kn=v_(Fn,0),Zn=Yo(kn,0);if(De(Zn))for(let Hn of Zn){if(sr=!0,jh(Hn))return!0;let er=Kp(Hn);er>Ln&&(Ln=er)}}if(!sr)return!0;let cn=1/0;for(let Fn of Je){let kn=nh(Fn);kn{_.push(y.expression)}),_}if(n.kind===170)return Qpt(n);if(n.kind===226)return[n.left];if(sd(n))return n.attributes.properties.length>0||w_(n)&&n.parent.children.length>0?[n.attributes]:et;let a=n.arguments||et,c=jee(a);if(c>=0){let d=a.slice(0,c);for(let _=c;_{var U;let re=x.target.elementFlags[z],be=nB(y,re&4?Gu(L):L,!!(re&12),(U=x.target.labeledElementDeclarations)==null?void 0:U[z]);d.push(be)}):d.push(y)}return d}return a}function Qpt(n){let a=n.expression,c=jye(n);if(c){let d=[];for(let _ of c.parameters){let y=pr(_);d.push(nB(a,y))}return d}return C.fail()}function M6e(n,a){return V.experimentalDecorators?Zpt(n,a):2}function Zpt(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return C_(n.parent)?3:2;case 174:case 177:case 178:return ue===0||a.parameters.length<=2?2:3;case 169:return 3;default:return C.fail()}}function L6e(n){let a=Vn(n),{start:c,length:d}=hS(a,zr(n.expression)?n.expression.name:n.expression);return{start:c,length:d,sourceFile:a}}function rB(n,a,...c){if(la(n)){let{sourceFile:d,start:_,length:y}=L6e(n);return"message"in a?Qc(d,_,y,a,...c):Ej(d,a)}else return"message"in a?Or(n,a,...c):Og(Vn(n),n,a)}function eft(n){return T_(n)?zr(n.expression)?n.expression.name:n.expression:q1(n)?zr(n.tag)?n.tag.name:n.tag:sd(n)?n.tagName:n}function tft(n){if(!la(n)||!Ve(n.expression))return!1;let a=vl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!Co(c)||!B1(c.parent)||!H1(c.parent.parent)||!Ve(c.parent.parent.expression))return!1;let d=Bge(!1);return d?Um(c.parent.parent.expression,!0)===d:!1}function k6e(n,a,c,d){var _;let y=jee(c);if(y>-1)return Or(c[y],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,L=Number.NEGATIVE_INFINITY,z=Number.NEGATIVE_INFINITY,U=Number.POSITIVE_INFINITY,re;for(let Rt of a){let sn=nh(Rt),un=Kp(Rt);snz&&(z=sn),c.length_?x=Math.min(x,z):U<_&&(y=Math.max(y,U))}if(y!==-1/0&&x!==1/0){if(d){let L=Uo(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,y,x);return L=Uo(L,d),AL(Vn(n),c,L)}return eR(Vn(n),c,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,y,x)}if(d){let L=Uo(void 0,f.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,_);return L=Uo(L,d),AL(Vn(n),c,L)}return eR(Vn(n),c,f.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,_)}function RD(n,a,c,d,_,y){let x=n.kind===215,L=n.kind===170,z=sd(n),U=n.kind===226,re=!H&&!c,be;!L&&!U&&!gS(n)&&(be=n.typeArguments,(x||z||n.expression.kind!==108)&&Ke(be,Da));let ge=c||[];Kpt(a,ge,_),C.assert(ge.length,"Revert #54442 and add a testcase with whatever triggered this");let Je=qee(n),vt=ge.length===1&&!ge[0].typeParameters,Rt=!L&&!vt&&Et(Je,Gf)?4:0,sn,un,sr,Ln,cn=!!(d&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(ge.length>1&&(Ln=kn(ge,Ch,vt,cn)),Ln||(Ln=kn(ge,jd,vt,cn)),Ln)return Ln;if(Ln=rft(n,ge,Je,!!c,d),ti(n).resolvedSignature=Ln,re)if(!y&&U&&(y=f.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),sn)if(sn.length===1||sn.length>3){let Zn=sn[sn.length-1],Hn;sn.length>3&&(Hn=Uo(Hn,f.The_last_overload_gave_the_following_error),Hn=Uo(Hn,f.No_overload_matches_this_call)),y&&(Hn=Uo(Hn,y));let er=tB(n,Je,Zn,jd,0,!0,()=>Hn);if(er)for(let Mo of er)Zn.declaration&&sn.length>3&&ka(Mo,Or(Zn.declaration,f.The_last_overload_is_declared_here)),Fn(Zn,Mo),ns.add(Mo);else C.fail("No error for last overload signature")}else{let Zn=[],Hn=0,er=Number.MAX_VALUE,Mo=0,Ao=0;for(let up of sn){let Qn=tB(n,Je,up,jd,0,!0,()=>Uo(void 0,f.Overload_0_of_1_2_gave_the_following_error,Ao+1,ge.length,kh(up)));Qn?(Qn.length<=er&&(er=Qn.length,Mo=Ao),Hn=Math.max(Hn,Qn.length),Zn.push(Qn)):C.fail("No error for 3 or fewer overload signatures"),Ao++}let jo=Hn>1?Zn[Mo]:ts(Zn);C.assert(jo.length>0,"No errors reported for 3 or fewer overload signatures");let vo=Uo(Ft(jo,pie),f.No_overload_matches_this_call);y&&(vo=Uo(vo,y));let Dc=[...Zi(jo,up=>up.relatedInformation)],Uf;if(Jn(jo,up=>up.start===jo[0].start&&up.length===jo[0].length&&up.file===jo[0].file)){let{file:up,start:Mn,length:Qn}=jo[0];Uf={file:up,start:Mn,length:Qn,code:vo.code,category:vo.category,messageText:vo,relatedInformation:Dc}}else Uf=Og(Vn(n),eft(n),vo,Dc);Fn(sn[0],Uf),ns.add(Uf)}else if(un)ns.add(k6e(n,[un],Je,y));else if(sr)Pye(sr,n.typeArguments,!0,y);else{let Zn=tr(a,Hn=>Dye(Hn,be));Zn.length===0?ns.add(nft(n,a,be,y)):ns.add(k6e(n,Zn,Je,y))}return Ln;function Fn(Zn,Hn){var er,Mo;let Ao=sn,jo=un,vo=sr,Dc=((Mo=(er=Zn.declaration)==null?void 0:er.symbol)==null?void 0:Mo.declarations)||et,up=Dc.length>1?vn(Dc,Mn=>zs(Mn)&&Xf(Mn.body)):void 0;if(up){let Mn=pm(up),Qn=!Mn.typeParameters;kn([Mn],jd,Qn)&&ka(Hn,Or(up,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}sn=Ao,un=jo,sr=vo}function kn(Zn,Hn,er,Mo=!1){if(sn=void 0,un=void 0,sr=void 0,er){let Ao=Zn[0];if(Et(be)||!Uee(n,Je,Ao,Mo))return;if(tB(n,Je,Ao,Hn,0,!1,void 0)){sn=[Ao];return}return Ao}for(let Ao=0;Ao0),yx(n),d||a.length===1||a.some(y=>!!y.typeParameters)?aft(n,a,c,_):ift(a)}function ift(n){let a=Vi(n,z=>z.thisParameter),c;a.length&&(c=w6e(a,a.map(aB)));let{min:d,max:_}=Boe(n,oft),y=[];for(let z=0;z<_;z++){let U=Vi(n,re=>Xu(re)?zUE(re,z))))}let x=Vi(n,z=>Xu(z)?Ya(z.parameters):void 0),L=128;if(x.length!==0){let z=Gu(ii(Vi(n,mOe),2));y.push(O6e(x,z)),L|=1}return n.some(Fq)&&(L|=2),Tg(n[0].declaration,void 0,c,y,Ea(n.map(ms)),void 0,d,L)}function oft(n){let a=n.parameters.length;return Xu(n)?a-1:a}function w6e(n,a){return O6e(n,ii(a,2))}function O6e(n,a){return JT(Ha(n),a)}function aft(n,a,c,d){let _=cft(a,nn===void 0?c.length:nn),y=a[_],{typeParameters:x}=y;if(!x)return y;let L=T6e(n)?n.typeArguments:void 0,z=L?OZ(y,sft(L,x,cr(n))):lft(n,x,y,c,d);return a[_]=z,z}function sft(n,a,c){let d=n.map(bx);for(;d.length>a.length;)d.pop();for(;d.length=a)return _;x>d&&(d=x,c=_)}return c}function uft(n,a,c){if(n.expression.kind===108){let z=nye(n.expression);if(Ct(z)){for(let U of n.arguments)go(U);return St}if(!qt(z)){let U=x_(su(n));if(U){let re=Fh(z,U.typeArguments,U);return RD(n,re,a,c,0)}}return eA(n)}let d,_=go(n.expression);if(lS(n)){let z=O4(_,n.expression);d=z===_?0:pC(n)?16:8,_=z}else d=0;if(_=c6e(_,n.expression,Rpt),_===Eo)return gr;let y=Md(_);if(qt(y))return eh(n);let x=Yo(y,0),L=Yo(y,1).length;if(iB(_,y,x.length,L))return!qt(_)&&n.typeArguments&&qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),eA(n);if(!x.length){if(L)qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,jn(_));else{let z;if(n.arguments.length===1){let U=Vn(n).text;Uu(U.charCodeAt(La(U,n.expression.end,!0)-1))&&(z=Or(n.expression,f.Are_you_missing_a_semicolon))}Lye(n.expression,y,0,z)}return eh(n)}return c&8&&!n.typeArguments&&x.some(dft)?(y3e(n,c),Tr):x.some(z=>cr(z.declaration)&&!!OV(z.declaration))?(qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,jn(_)),eh(n)):RD(n,x,a,c,d)}function dft(n){return!!(n.typeParameters&&Tbe(ms(n)))}function iB(n,a,c,d){return Ct(n)||Ct(a)&&!!(n.flags&262144)||!c&&!d&&!(a.flags&1048576)&&!(__(a).flags&131072)&&Sa(n,wt)}function pft(n,a,c){if(n.arguments&&ue<1){let x=jee(n.arguments);x>=0&&qe(n.arguments[x],f.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let d=xD(n.expression);if(d===Eo)return gr;if(d=Md(d),qt(d))return eh(n);if(Ct(d))return n.typeArguments&&qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),eA(n);let _=Yo(d,1);if(_.length){if(!fft(n,_[0]))return eh(n);if(F6e(_,L=>!!(L.flags&4)))return qe(n,f.Cannot_create_an_instance_of_an_abstract_class),eh(n);let x=d.symbol&&Bg(d.symbol);return x&&ei(x,64)?(qe(n,f.Cannot_create_an_instance_of_an_abstract_class),eh(n)):RD(n,_,a,c,0)}let y=Yo(d,0);if(y.length){let x=RD(n,y,a,c,0);return me||(x.declaration&&!th(x.declaration)&&ms(x)!==or&&qe(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),i1(x)===or&&qe(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return Lye(n.expression,d,1),eh(n)}function F6e(n,a){return Do(n)?Et(n,c=>F6e(c,a)):n.compositeKind===1048576?Et(n.compositeSignatures,a):a(n)}function Mye(n,a){let c=Np(a);if(!De(c))return!1;let d=c[0];if(d.flags&2097152){let _=d.types,y=Xwe(_),x=0;for(let L of d.types){if(!y[x]&&Wr(L)&3&&(L.symbol===n||Mye(n,L)))return!0;x++}return!1}return d.symbol===n?!0:Mye(n,d)}function fft(n,a){if(!a||!a.declaration)return!0;let c=a.declaration,d=WA(c,6);if(!d||c.kind!==176)return!0;let _=Bg(c.parent.symbol),y=Qs(c.parent.symbol);if(!bbe(n,_)){let x=su(n);if(x&&d&4){let L=bx(x);if(Mye(c.parent.symbol,L))return!0}return d&2&&qe(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,jn(y)),d&4&&qe(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,jn(y)),!1}return!0}function W6e(n,a,c){let d,_=c===0,y=rA(a),x=y&&Yo(y,c).length>0;if(a.flags&1048576){let z=a.types,U=!1;for(let re of z)if(Yo(re,c).length!==0){if(U=!0,d)break}else if(d||(d=Uo(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,jn(re)),d=Uo(d,_?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,jn(a))),U)break;U||(d=Uo(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,jn(a))),d||(d=Uo(d,_?f.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:f.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,jn(a)))}else d=Uo(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,jn(a));let L=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(la(n.parent)&&n.parent.arguments.length===0){let{resolvedSymbol:z}=ti(n);z&&z.flags&32768&&(L=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Uo(d,L),relatedMessage:x?f.Did_you_forget_to_use_await:void 0}}function Lye(n,a,c,d){let{messageChain:_,relatedMessage:y}=W6e(n,a,c),x=Og(Vn(n),n,_);if(y&&ka(x,Or(n,y)),la(n.parent)){let{start:L,length:z}=L6e(n.parent);x.start=L,x.length=z}ns.add(x),z6e(a,c,d?ka(x,d):x)}function z6e(n,a,c){if(!n.symbol)return;let d=$i(n.symbol).originatingImport;if(d&&!Wp(d)){let _=Yo(pr($i(n.symbol).target),a);if(!_||!_.length)return;ka(c,Or(d,f.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 mft(n,a,c){let d=go(n.tag),_=Md(d);if(qt(_))return eh(n);let y=Yo(_,0),x=Yo(_,1).length;if(iB(d,_,y.length,x))return eA(n);if(!y.length){if(pd(n.parent)){let L=Or(n.tag,f.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 ns.add(L),eh(n)}return Lye(n.tag,_,0),eh(n)}return RD(n,y,a,c,0)}function _ft(n){switch(n.parent.kind){case 263:case 231:return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return C.fail()}}function hft(n,a,c){let d=go(n.expression),_=Md(d);if(qt(_))return eh(n);let y=Yo(_,0),x=Yo(_,1).length;if(iB(d,_,y.length,x))return eA(n);if(yft(n,y)&&!Wd(n.expression)){let z=pc(n.expression,!1);return qe(n,f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,z),eh(n)}let L=_ft(n);if(!y.length){let z=W6e(n.expression,_,0),U=Uo(z.messageChain,L),re=Og(Vn(n.expression),n.expression,U);return z.relatedMessage&&ka(re,Or(n.expression,z.relatedMessage)),ns.add(re),z6e(_,0,re),eh(n)}return RD(n,y,a,c,0,L)}function Jee(n,a){let c=ZT(n),d=c&&Dp(c),_=d&&Ud(d,nf.Element,788968),y=_&&At.symbolToEntityName(_,788968,n),x=k.createFunctionTypeNode(void 0,[k.createParameterDeclaration(void 0,void 0,"props",void 0,At.typeToTypeNode(a,n))],y?k.createTypeReferenceNode(y,void 0):k.createKeywordTypeNode(133)),L=Xa(1,"props");return L.links.type=a,Tg(x,void 0,void 0,[L],_?Qs(_):ht,void 0,1,0)}function gft(n,a,c){if(vx(n.tagName)){let x=r6e(n),L=Jee(n,x);return Gb(CD(n.attributes,wee(L,n),void 0,0),x,n.tagName,n.attributes),De(n.typeArguments)&&(Ke(n.typeArguments,Da),ns.add(eR(Vn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,De(n.typeArguments)))),L}let d=go(n.tagName),_=Md(d);if(qt(_))return eh(n);let y=t6e(d,n);return iB(d,_,y.length,0)?eA(n):y.length===0?(qe(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,pc(n.tagName)),eh(n)):RD(n,y,a,c,0)}function vft(n,a,c){let d=go(n.right);if(!Ct(d)){let _=Jye(d);if(_){let y=Md(_);if(qt(y))return eh(n);let x=Yo(y,0),L=Yo(y,1);if(iB(_,y,x.length,L.length))return eA(n);if(x.length)return RD(n,x,a,c,0)}else if(!(hte(d)||Bb(d,wt)))return qe(n.right,f.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),eh(n)}return St}function yft(n,a){return a.length&&Jn(a,c=>c.minArgumentCount===0&&!Xu(c)&&c.parameters.length1?ec(n.arguments[1]):void 0;for(let y=2;y{let x=Jp(_);tee(y,x)||D4e(_,y,c,f.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)})}function Dft(n){let a=go(n.expression),c=O4(a,n.expression);return fee(yv(c),n,c!==a)}function Cft(n){return n.flags&64?Dft(n):yv(go(n.expression))}function q6e(n){if(B7e(n),Ke(n.typeArguments,Da),n.kind===233){let c=Fv(n.parent);c.kind===226&&c.operatorToken.kind===104&&P1(n,c.right)&&qe(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let a=n.kind===233?go(n.expression):O1(n.exprName)?Hz(n.exprName):go(n.exprName);return J6e(a,n)}function J6e(n,a){let c=a.typeArguments;if(n===Eo||qt(n)||!Et(c))return n;let d=!1,_,y=L(n),x=d?_:n;return x&&ns.add(eR(Vn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,jn(x))),y;function L(U){let re=!1,be=!1,ge=Je(U);return d||(d=be),re&&!be&&(_??(_=U)),ge;function Je(vt){if(vt.flags&524288){let Rt=m_(vt),sn=z(Rt.callSignatures),un=z(Rt.constructSignatures);if(re||(re=Rt.callSignatures.length!==0||Rt.constructSignatures.length!==0),be||(be=sn.length!==0||un.length!==0),sn!==Rt.callSignatures||un!==Rt.constructSignatures){let sr=Ls(Xa(0,"__instantiationExpression"),Rt.members,sn,un,Rt.indexInfos);return sr.objectFlags|=8388608,sr.node=a,sr}}else if(vt.flags&58982400){let Rt=Bu(vt);if(Rt){let sn=Je(Rt);if(sn!==Rt)return sn}}else{if(vt.flags&1048576)return ul(vt,L);if(vt.flags&2097152)return Ea(Io(vt.types,Je))}return vt}}function z(U){let re=tr(U,be=>!!be.typeParameters&&Dye(be,c));return Io(re,be=>{let ge=Pye(be,c,!0);return ge?T4(be,ge,cr(be.declaration)):be})}}function Nft(n){return Da(n.type),Fye(n.expression,n.type)}function Fye(n,a,c){let d=go(n,c),_=Ii(a);if(qt(_))return _;let y=zn(a.parent,x=>x.kind===238||x.kind===357);return Gb(d,_,y,n,f.Type_0_does_not_satisfy_the_expected_type_1),d}function Pft(n){return Rvt(n),n.keywordToken===105?Wye(n):n.keywordToken===102?Mft(n):C.assertNever(n.keywordToken)}function K6e(n){switch(n.keywordToken){case 102:return COe();case 105:let a=Wye(n);return qt(a)?ht:Xft(a);default:C.assertNever(n.keywordToken)}}function Wye(n){let a=xie(n);if(a)if(a.kind===176){let c=Rr(a.parent);return pr(c)}else{let c=Rr(a);return pr(c)}else return qe(n,f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ht}function Mft(n){G===100||G===199?Vn(n).impliedNodeFormat!==99&&qe(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):G<6&&G!==4&&qe(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);let a=Vn(n);return C.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?DOe():ht}function aB(n){let a=n.valueDeclaration;return lp(pr(n),!1,!!a&&(Oy(a)||sN(a)))}function zye(n,a,c="arg"){return n?(C.assert(Ve(n.name)),n.name.escapedText):`${c}_${a}`}function aM(n,a,c){let d=n.parameters.length-(Xu(n)?1:0);if(a=d-1)return a===d-1?y:Gu(Pp(y,Dt));let x=[],L=[],z=[];for(let U=a;U!(z&1)),L=x<0?y.target.fixedLength:x;L>0&&(_=n.parameters.length-1+L)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(d)return _;for(let y=_-1;y>=0;y--){let x=v_(n,y);if(uc(x,A6e).flags&131072)break;_=y}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function jh(n){if(Xu(n)){let a=pr(n.parameters[n.parameters.length-1]);return!Wa(a)||a.target.hasRestElement}return!1}function q4(n){if(Xu(n)){let a=pr(n.parameters[n.parameters.length-1]);if(!Wa(a))return Ct(a)?Ql:a;if(a.target.hasRestElement)return KP(a,a.target.fixedLength)}}function J4(n){let a=q4(n);return a&&!jf(a)&&!Ct(a)?a:void 0}function Bye(n){return Gye(n,Vr)}function Gye(n,a){return n.parameters.length>0?v_(n,0):a}function Q6e(n,a,c){let d=n.parameters.length-(Xu(n)?1:0);for(let _=0;_=0);let y=Pl(d.parent)?pr(Rr(d.parent.parent)):C7e(d.parent),x=Pl(d.parent)?Oe:N7e(d.parent),L=h_(_),z=s_("target",y),U=s_("propertyKey",x),re=s_("parameterIndex",L);c.decoratorSignature=Z4(void 0,void 0,[z,U,re],or);break}case 174:case 177:case 178:case 172:{let d=a;if(!pi(d.parent))break;let _=C7e(d),y=s_("target",_),x=N7e(d),L=s_("propertyKey",x),z=Jo(d)?or:OOe(bx(d));if(ue!==0&&(!Jo(a)||C_(a))){let re=OOe(bx(d)),be=s_("descriptor",re);c.decoratorSignature=Z4(void 0,void 0,[y,L,be],ii([z,or]))}else c.decoratorSignature=Z4(void 0,void 0,[y,L],ii([z,or]));break}}return c.decoratorSignature===St?void 0:c.decoratorSignature}function jye(n){return ne?Kft(n):Jft(n)}function cB(n){let a=yz(!0);return a!==Wo?(n=vy(dM(n))||mn,fy(a,[n])):mn}function t3e(n){let a=LOe(!0);return a!==Wo?(n=vy(dM(n))||mn,fy(a,[n])):mn}function uB(n,a){let c=cB(a);return c===mn?(qe(n,Wp(n)?f.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ht):(Bge(!0)||qe(n,Wp(n)?f.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:f.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),c)}function Xft(n){let a=Xa(0,"NewTargetExpression"),c=Xa(4,"target",8);c.parent=a,c.links.type=n;let d=ua([c]);return a.members=d,Ls(a,d,et,et,et)}function Yee(n,a){if(!n.body)return ht;let c=Gc(n),d=(c&2)!==0,_=(c&1)!==0,y,x,L,z=or;if(n.body.kind!==241)y=ec(n.body,a&&a&-9),d&&(y=dM(Q4(y,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(_){let U=s3e(n,a);U?U.length>0&&(y=ii(U,2)):z=Vr;let{yieldTypes:re,nextTypes:be}=Yft(n,a);x=Et(re)?ii(re,2):void 0,L=Et(be)?Ea(be):void 0}else{let U=s3e(n,a);if(!U)return c&2?uB(n,Vr):Vr;if(U.length===0){let re=Pee(n,void 0),be=re&&(EB(re,c)||or).flags&32768?Oe:or;return c&2?uB(n,be):be}y=ii(U,2)}if(y||x||L){if(x&&gee(n,x,3),y&&gee(n,y,1),L&&gee(n,L,2),y&&g_(y)||x&&g_(x)||L&&g_(L)){let U=cye(n),re=U?U===pm(n)?_?void 0:y:Lee(ms(U),n,void 0):void 0;_?(x=xve(x,re,0,d),y=xve(y,re,1,d),L=xve(L,re,2,d)):y=$ct(y,re,d)}x&&(x=Jp(x)),y&&(y=Jp(y)),L&&(L=Jp(L))}return _?n3e(x||Vr,y||z,L||G8e(2,n)||mn,d):d?cB(y||z):y||z}function n3e(n,a,c,d){let _=d?js:gc,y=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||mn,a=_.resolveIterationType(a,void 0)||mn,c=_.resolveIterationType(c,void 0)||mn,y===Wo){let x=_.getGlobalIterableIteratorType(!1),L=x!==Wo?K3e(x,_):void 0,z=L?L.returnType:j,U=L?L.nextType:Oe;return Sa(a,z)&&Sa(U,c)?x!==Wo?I4(x,[n]):(_.getGlobalIterableIteratorType(!0),Pa):(_.getGlobalGeneratorType(!0),Pa)}return I4(y,[n,a,c])}function Yft(n,a){let c=[],d=[],_=(Gc(n)&2)!==0;return _ie(n.body,y=>{let x=y.expression?go(y.expression,a):Lt;bf(c,r3e(y,x,j,_));let L;if(y.asteriskToken){let z=cte(x,_?19:17,y.expression);L=z&&z.nextType}else L=Jd(y,void 0);L&&bf(d,L)}),{yieldTypes:c,nextTypes:d}}function r3e(n,a,c,d){let _=n.expression||n,y=n.asteriskToken?yy(d?19:17,a,c,_):a;return d?rA(y,_,n.asteriskToken?f.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:f.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y}function i3e(n,a,c){let d=0;for(let _=0;_=a?c[_]:void 0;d|=y!==void 0?zq.get(y)||32768:0}return d}function o3e(n){let a=ti(n);if(a.isExhaustive===void 0){a.isExhaustive=0;let c=$ft(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function $ft(n){if(n.expression.kind===221){let d=y8e(n);if(!d)return!1;let _=fv(ec(n.expression.expression)),y=i3e(0,0,d);return _.flags&3?(556800&y)===556800:!jm(_,x=>tM(x,y)===y)}let a=ec(n.expression);if(!w4(a))return!1;let c=Tee(n);return!c.length||Et(c,Kct)?!1:Hut(ul(a,vd),c)}function a3e(n){return n.endFlowNode&&jz(n.endFlowNode)}function s3e(n,a){let c=Gc(n),d=[],_=a3e(n),y=!1;if(R1(n.body,x=>{let L=x.expression;if(L){if(L=vs(L,!0),c&2&&L.kind===223&&(L=vs(L.expression,!0)),L.kind===213&&L.expression.kind===80&&ec(L.expression).symbol===n.symbol){y=!0;return}let z=ec(L,a&&a&-9);c&2&&(z=dM(Q4(z,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),z.flags&131072&&(y=!0),bf(d,z)}else _=!0}),!(d.length===0&&!_&&(y||Qft(n))))return Y&&d.length&&_&&!(th(n)&&d.some(x=>x.symbol===n.symbol))&&bf(d,Oe),d}function Qft(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function Uye(n,a){r(c);return;function c(){let d=Gc(n),_=a&&EB(a,d);if(_&&(Dl(_,16384)||_.flags&32769)||n.kind===173||Fl(n.body)||n.body.kind!==241||!a3e(n))return;let y=n.flags&1024,x=tm(n)||n;if(_&&_.flags&131072)qe(x,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(_&&!y)qe(x,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(_&&Y&&!Sa(Oe,_))qe(x,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!_){if(!y)return;let L=ms(pm(n));if(n7e(n,L))return}qe(x,f.Not_all_code_paths_return_a_value)}}}function l3e(n,a){if(C.assert(n.kind!==174||Im(n)),yx(n),ws(n)&&pM(n,n.name),a&&a&4&&Gf(n)){if(!tm(n)&&!Z3(n)){let d=U4(n);if(d&&u1(ms(d))){let _=ti(n);if(_.contextFreeType)return _.contextFreeType;let y=Yee(n,a),x=Tg(void 0,void 0,void 0,et,y,void 0,0,64),L=Ls(n.symbol,K,[x],et,et);return L.objectFlags|=262144,_.contextFreeType=L}}return on}return!bte(n)&&n.kind===218&&xbe(n),Zft(n,a),pr(Rr(n))}function Zft(n,a){let c=ti(n);if(!(c.flags&64)){let d=U4(n);if(!(c.flags&64)){c.flags|=64;let _=Xc(Yo(pr(Rr(n)),0));if(!_)return;if(Gf(n))if(d){let y=VE(n),x;if(a&&a&2){Q6e(_,d,y);let L=q4(d);L&&L.flags&262144&&(x=TD(d,y.nonFixingMapper))}x||(x=y?TD(d,y.mapper):d),wft(_,x)}else Oft(_);else if(d&&!n.typeParameters&&d.parameters.length>n.parameters.length){let y=VE(n);a&&a&2&&Q6e(_,d,y)}if(d&&!hD(n)&&!_.resolvedReturnType){let y=Yee(n,a);_.resolvedReturnType||(_.resolvedReturnType=y)}X4(n)}}}function emt(n){C.assert(n.kind!==174||Im(n));let a=Gc(n),c=hD(n);if(Uye(n,c),n.body)if(tm(n)||ms(pm(n)),n.body.kind===241)Da(n.body);else{let d=go(n.body),_=c&&EB(c,a);if(_){let y=Hee(n.body);if((a&3)===2){let x=Q4(d,!1,y,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Gb(x,_,y,y)}else Gb(d,_,y,y)}}}function $ee(n,a,c,d=!1){if(!Sa(a,Yl)){let _=d&&uM(a);return B0(n,!!_&&Sa(_,Yl),c),!1}return!0}function tmt(n){if(!la(n)||!bS(n))return!1;let a=ec(n.arguments[2]);if(Xe(a,"value")){let _=ba(a,"writable"),y=_&&pr(_);if(!y||y===Kt||y===Tn)return!0;if(_&&_.valueDeclaration&&_c(_.valueDeclaration)){let x=_.valueDeclaration.initializer,L=go(x);if(L===Kt||L===Tn)return!0}return!1}return!ba(a,"set")}function y_(n){return!!(Al(n)&8||n.flags&4&&If(n)&8||n.flags&3&&hye(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||Et(n.declarations,tmt))}function c3e(n,a,c){var d,_;if(c===0)return!1;if(y_(a)){if(a.flags&4&&ks(n)&&n.expression.kind===110){let y=zp(n);if(!(y&&(y.kind===176||th(y))))return!0;if(a.valueDeclaration){let x=_r(a.valueDeclaration),L=y.parent===a.valueDeclaration.parent,z=y===a.valueDeclaration.parent,U=x&&((d=a.parent)==null?void 0:d.valueDeclaration)===y.parent,re=x&&((_=a.parent)==null?void 0:_.valueDeclaration)===y;return!(L||z||U||re)}}return!0}if(ks(n)){let y=vs(n.expression);if(y.kind===80){let x=ti(y).resolvedSymbol;if(x.flags&2097152){let L=Fm(x);return!!L&&L.kind===274}}}return!1}function K4(n,a,c){let d=Xl(n,7);return d.kind!==80&&!ks(d)?(qe(n,a),!1):d.flags&64?(qe(n,c),!1):!0}function nmt(n){go(n.expression);let a=vs(n.expression);if(!ks(a))return qe(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),yi;zr(a)&&Xi(a.name)&&qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let c=ti(a),d=mf(c.resolvedSymbol);return d&&(y_(d)?qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):rmt(a,d)),yi}function rmt(n,a){let c=pr(a);Y&&!(c.flags&131075)&&!(Ce?a.flags&16777216:mm(c,16777216))&&qe(n,f.The_operand_of_a_delete_operator_must_be_optional)}function imt(n){return go(n.expression),J2}function omt(n){return yx(n),Lt}function u3e(n){let a=!1,c=Y6(n);if(c&&Il(c)){let d=$y(n)?f.await_expression_cannot_be_used_inside_a_class_static_block:f.await_using_statements_cannot_be_used_inside_a_class_static_block;qe(n,d),a=!0}else if(!(n.flags&65536))if(Q6(n)){let d=Vn(n);if(!qE(d)){let _;if(!NA(d,V)){_??(_=hh(d,n.pos));let y=$y(n)?f.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:f.await_using_statements_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,x=Qc(d,_.start,_.length,y);ns.add(x),a=!0}switch(G){case 100:case 199:if(d.impliedNodeFormat===1){_??(_=hh(d,n.pos)),ns.add(Qc(d,_.start,_.length,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(ue>=4)break;default:_??(_=hh(d,n.pos));let y=$y(n)?f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;ns.add(Qc(d,_.start,_.length,y)),a=!0;break}}}else{let d=Vn(n);if(!qE(d)){let _=hh(d,n.pos),y=$y(n)?f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,x=Qc(d,_.start,_.length,y);if(c&&c.kind!==176&&!(Gc(c)&2)){let L=Or(c,f.Did_you_mean_to_mark_this_function_as_async);ka(x,L)}ns.add(x),a=!0}}return $y(n)&&iye(n)&&(qe(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function amt(n){r(()=>u3e(n));let a=go(n.expression),c=Q4(a,!0,n,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!qt(c)&&!(a.flags&3)&&a_(!1,Or(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function smt(n){let a=go(n.operand);if(a===Eo)return Eo;switch(n.operand.kind){case 9:switch(n.operator){case 41:return hx(h_(-n.operand.text));case 40:return hx(h_(+n.operand.text))}break;case 10:if(n.operator===41)return hx(XZ({negative:!0,base10Value:tN(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return Z_(a,n.operand),dB(a,12288)&&qe(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,ma(n.operator)),n.operator===40?(dB(a,2112)&&qe(n.operand,f.Operator_0_cannot_be_applied_to_type_1,ma(n.operator),jn(vv(a))),Dt):Hye(a);case 54:sbe(a,n.operand);let c=tM(a,12582912);return c===4194304?Kt:c===8388608?On:yi;case 46:case 47:return $ee(n.operand,Z_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&K4(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Hye(a)}return ht}function lmt(n){let a=go(n.operand);return a===Eo?Eo:($ee(n.operand,Z_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&K4(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Hye(a))}function Hye(n){return Dl(n,2112)?xu(n,3)||Dl(n,296)?Yl:Pt:Dt}function dB(n,a){if(Dl(n,a))return!0;let c=fv(n);return!!c&&Dl(c,a)}function Dl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){let c=n.types;for(let d of c)if(Dl(d,a))return!0}return!1}function xu(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&Sa(n,Dt)||!!(a&2112)&&Sa(n,Pt)||!!(a&402653316)&&Sa(n,ke)||!!(a&528)&&Sa(n,yi)||!!(a&16384)&&Sa(n,or)||!!(a&131072)&&Sa(n,Vr)||!!(a&65536)&&Sa(n,pe)||!!(a&32768)&&Sa(n,Oe)||!!(a&4096)&&Sa(n,Di)||!!(a&67108864)&&Sa(n,Kr)}function pB(n,a,c){return n.flags&1048576?Jn(n.types,d=>pB(d,a,c)):xu(n,a,c)}function Qee(n){return!!(Wr(n)&16)&&!!n.symbol&&qye(n.symbol)}function qye(n){return(n.flags&128)!==0}function Jye(n){let a=Y3e("hasInstance"),c=n1(n,a);if(c){let d=pr(c);if(d&&Yo(d,0).length!==0)return d}}function cmt(n,a,c,d,_){if(c===Eo||d===Eo)return Eo;!Ct(c)&&pB(c,402784252)&&qe(n,f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),C.assert(D3(n.parent));let y=DD(n.parent,void 0,_);if(y===Tr)return Eo;let x=ms(y);return td(x,yi,a,f.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),yi}function umt(n){return jm(n,a=>a===Rl||!!(a.flags&2097152)&&Vh(fv(a)))}function dmt(n,a,c,d){if(c===Eo||d===Eo)return Eo;if(Xi(n)){if(ue<99&&Rc(n,2097152),!ti(n).resolvedSymbol&&su(n)){let _=Sye(n,d.symbol,!0);h6e(n,d,_)}}else td(Z_(c,n),Dn,n);return td(Z_(d,a),Kr,a)&&umt(d)&&qe(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,jn(d)),yi}function pmt(n,a,c){let d=n.properties;if(Y&&d.length===0)return Z_(a,n);for(let _=0;_KP(U,c)):Gu(d);return nA(L,z,_)}}}}function nA(n,a,c,d){let _;if(n.kind===304){let y=n;y.objectAssignmentInitializer&&(Y&&!mm(go(y.objectAssignmentInitializer),16777216)&&(a=_m(a,524288)),gmt(y.name,y.equalsToken,y.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(Me(_,c),_=_.left,Y&&(a=_m(a,524288))),_.kind===210?pmt(_,a,d):_.kind===209?fmt(_,a,c):mmt(_,a,c)}function mmt(n,a,c){let d=go(n,c),_=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,y=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return K4(n,_,y)&&Gb(a,d,n,n),Hx(n)&&Rc(n.parent,1048576),a}function fB(n){switch(n=vs(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return fB(n.whenTrue)&&fB(n.whenFalse);case 226:return zv(n.operatorToken.kind)?!1:fB(n.left)&&fB(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function Kye(n,a){return(a.flags&98304)!==0||tee(n,a)}function _mt(){let n=m5(a,c,d,_,y,x);return(ge,Je)=>{let vt=n(ge,Je);return C.assertIsDefined(vt),vt};function a(ge,Je,vt){return Je?(Je.stackIndex++,Je.skip=!1,U(Je,void 0),be(Je,void 0)):Je={checkMode:vt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},cr(ge)&&PA(ge)?(Je.skip=!0,be(Je,go(ge.right,vt)),Je):(hmt(ge),ge.operatorToken.kind===64&&(ge.left.kind===210||ge.left.kind===209)&&(Je.skip=!0,be(Je,nA(ge.left,go(ge.right,vt),vt,ge.right.kind===110))),Je)}function c(ge,Je,vt){if(!Je.skip)return L(Je,ge)}function d(ge,Je,vt){if(!Je.skip){let Rt=re(Je);C.assertIsDefined(Rt),U(Je,Rt),be(Je,void 0);let sn=ge.kind;if(ok(sn)){let un=vt.parent;for(;un.kind===217||ak(un);)un=un.parent;(sn===56||OS(un))&&abe(vt.left,Rt,OS(un)?un.thenStatement:void 0),sbe(Rt,vt.left)}}}function _(ge,Je,vt){if(!Je.skip)return L(Je,ge)}function y(ge,Je){let vt;if(Je.skip)vt=re(Je);else{let Rt=z(Je);C.assertIsDefined(Rt);let sn=re(Je);C.assertIsDefined(sn),vt=f3e(ge.left,ge.operatorToken,ge.right,Rt,sn,Je.checkMode,ge)}return Je.skip=!1,U(Je,void 0),be(Je,void 0),Je.stackIndex--,vt}function x(ge,Je,vt){return be(ge,Je),ge}function L(ge,Je){if(_r(Je))return Je;be(ge,go(Je,ge.checkMode))}function z(ge){return ge.typeStack[ge.stackIndex]}function U(ge,Je){ge.typeStack[ge.stackIndex]=Je}function re(ge){return ge.typeStack[ge.stackIndex+1]}function be(ge,Je){ge.typeStack[ge.stackIndex+1]=Je}}function hmt(n){let{left:a,operatorToken:c,right:d}=n;c.kind===61&&(_r(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&bn(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,ma(a.operatorToken.kind),ma(c.kind)),_r(d)&&(d.operatorToken.kind===57||d.operatorToken.kind===56)&&bn(d,f._0_and_1_operations_cannot_be_mixed_without_parentheses,ma(d.operatorToken.kind),ma(c.kind)))}function gmt(n,a,c,d,_){let y=a.kind;if(y===64&&(n.kind===210||n.kind===209))return nA(n,go(c,d),d,c.kind===110);let x;ok(y)?x=fM(n,d):x=go(n,d);let L=go(c,d);return f3e(n,a,c,x,L,d,_)}function f3e(n,a,c,d,_,y,x){let L=a.kind;switch(L){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(d===Eo||_===Eo)return Eo;d=Z_(d,n),_=Z_(_,c);let cn;if(d.flags&528&&_.flags&528&&(cn=ge(a.kind))!==void 0)return qe(x||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,ma(a.kind),ma(cn)),Dt;{let Zn=$ee(n,d,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Hn=$ee(c,_,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),er;if(xu(d,3)&&xu(_,3)||!(Dl(d,2112)||Dl(_,2112)))er=Dt;else if(z(d,_)){switch(L){case 50:case 73:sn();break;case 43:case 68:ue<3&&qe(x,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}er=Pt}else sn(z),er=ht;return Zn&&Hn&&Je(er),er}case 40:case 65:if(d===Eo||_===Eo)return Eo;!xu(d,402653316)&&!xu(_,402653316)&&(d=Z_(d,n),_=Z_(_,c));let Fn;return xu(d,296,!0)&&xu(_,296,!0)?Fn=Dt:xu(d,2112,!0)&&xu(_,2112,!0)?Fn=Pt:xu(d,402653316,!0)||xu(_,402653316,!0)?Fn=ke:(Ct(d)||Ct(_))&&(Fn=qt(d)||qt(_)?ht:j),Fn&&!be(L)?Fn:Fn?(L===65&&Je(Fn),Fn):(sn((Hn,er)=>xu(Hn,402655727)&&xu(er,402655727)),j);case 30:case 32:case 33:case 34:return be(L)&&(d=Ave(Z_(d,n)),_=Ave(Z_(_,c)),Rt((Zn,Hn)=>{if(Ct(Zn)||Ct(Hn))return!0;let er=Sa(Zn,Yl),Mo=Sa(Hn,Yl);return er&&Mo||!er&&!Mo&&Dz(Zn,Hn)})),yi;case 35:case 36:case 37:case 38:if(!(y&&y&64)){if((HV(n)||HV(c))&&(!cr(n)||L===37||L===38)){let Zn=L===35||L===37;qe(x,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Zn?"false":"true")}sr(x,L,n,c),Rt((Zn,Hn)=>Kye(Zn,Hn)||Kye(Hn,Zn))}return yi;case 104:return cmt(n,c,d,_,y);case 103:return dmt(n,c,d,_);case 56:case 77:{let Zn=mm(d,4194304)?ii([eut(Y?d:vv(_)),_]):d;return L===77&&Je(_),Zn}case 57:case 76:{let Zn=mm(d,8388608)?ii([yv(q4e(d)),_],2):d;return L===76&&Je(_),Zn}case 61:case 78:{let Zn=mm(d,262144)?ii([yv(d),_],2):d;return L===78&&Je(_),Zn}case 64:let kn=_r(n.parent)?Wl(n.parent):0;return U(kn,_),vt(kn)?((!(_.flags&524288)||kn!==2&&kn!==6&&!gv(_)&&!Hve(_)&&!(Wr(_)&1))&&Je(_),d):(Je(_),_);case 28:if(!V.allowUnreachableCode&&fB(n)&&!re(n.parent)){let Zn=Vn(n),Hn=Zn.text,er=La(Hn,n.pos);Zn.parseDiagnostics.some(Ao=>Ao.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:LV(Ao,er))||qe(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return C.fail()}function z(cn,Fn){return xu(cn,2112)&&xu(Fn,2112)}function U(cn,Fn){if(cn===2)for(let kn of kb(Fn)){let Zn=pr(kn);if(Zn.symbol&&Zn.symbol.flags&32){let Hn=kn.escapedName,er=vl(kn.valueDeclaration,Hn,788968,void 0,Hn,!1);er?.declarations&&er.declarations.some(VS)&&(um(er,f.Duplicate_identifier_0,Hi(Hn),kn),um(kn,f.Duplicate_identifier_0,Hi(Hn),er))}}}function re(cn){return cn.parent.kind===217&&hp(cn.left)&&cn.left.text==="0"&&(la(cn.parent.parent)&&cn.parent.parent.expression===cn.parent||cn.parent.parent.kind===215)&&(ks(cn.right)||Ve(cn.right)&&cn.right.escapedText==="eval")}function be(cn){let Fn=dB(d,12288)?n:dB(_,12288)?c:void 0;return Fn?(qe(Fn,f.The_0_operator_cannot_be_applied_to_type_symbol,ma(cn)),!1):!0}function ge(cn){switch(cn){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Je(cn){zv(L)&&r(Fn);function Fn(){let kn=d;if(GN(a.kind)&&n.kind===211&&(kn=Wee(n,void 0,!0)),K4(n,f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Zn;if(Ce&&zr(n)&&Dl(cn,32768)){let Hn=Xe(Ru(n.expression),n.name.escapedText);ree(cn,Hn)&&(Zn=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Gb(cn,kn,n,c,Zn)}}}function vt(cn){var Fn;switch(cn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let kn=ff(n),Zn=PA(c);return!!Zn&&wa(Zn)&&!!((Fn=kn?.exports)!=null&&Fn.size);default:return!1}}function Rt(cn){return cn(d,_)?!1:(sn(cn),!0)}function sn(cn){let Fn=!1,kn=x||a;if(cn){let Ao=vy(d),jo=vy(_);Fn=!(Ao===d&&jo===_)&&!!(Ao&&jo)&&cn(Ao,jo)}let Zn=d,Hn=_;!Fn&&cn&&([Zn,Hn]=vmt(d,_,cn));let[er,Mo]=lx(Zn,Hn);un(kn,Fn,er,Mo)||B0(kn,Fn,f.Operator_0_cannot_be_applied_to_types_1_and_2,ma(a.kind),er,Mo)}function un(cn,Fn,kn,Zn){switch(a.kind){case 37:case 35:case 38:case 36:return B0(cn,Fn,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,kn,Zn);default:return}}function sr(cn,Fn,kn,Zn){let Hn=Ln(vs(kn)),er=Ln(vs(Zn));if(Hn||er){let Mo=qe(cn,f.This_condition_will_always_return_0,ma(Fn===37||Fn===35?97:112));if(Hn&&er)return;let Ao=Fn===38||Fn===36?ma(54):"",jo=Hn?Zn:kn,vo=vs(jo);ka(Mo,Or(jo,f.Did_you_mean_0,`${Ao}Number.isNaN(${zl(vo)?fp(vo):"..."})`))}}function Ln(cn){if(Ve(cn)&&cn.escapedText==="NaN"){let Fn=alt();return!!Fn&&Fn===Vm(cn)}return!1}}function vmt(n,a,c){let d=n,_=a,y=vv(n),x=vv(a);return c(y,x)||(d=y,_=x),[d,_]}function ymt(n){r(ge);let a=zp(n);if(!a)return j;let c=Gc(a);if(!(c&1))return j;let d=(c&2)!==0;n.asteriskToken&&(d&&ue<99&&Rc(n,26624),!d&&ue<2&&V.downlevelIteration&&Rc(n,256));let _=hD(a);_&&_.flags&1048576&&(_=uc(_,Je=>$ye(Je,c,void 0)));let y=_&&t7e(_,d),x=y&&y.yieldType||j,L=y&&y.nextType||j,z=d?rA(L)||j:L,U=n.expression?go(n.expression):Lt,re=r3e(n,U,z,d);if(_&&re&&Gb(re,x,n.expression||n,n.expression),n.asteriskToken)return cbe(d?19:17,1,U,n.expression)||j;if(_)return HE(2,_,d)||j;let be=G8e(2,a);return be||(be=j,r(()=>{if(me&&!Hoe(n)){let Je=Jd(n,void 0);(!Je||Ct(Je))&&qe(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),be;function ge(){n.flags&16384||hu(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),iye(n)&&qe(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function bmt(n,a){let c=fM(n.condition,a);abe(n.condition,c,n.whenTrue);let d=go(n.whenTrue,a),_=go(n.whenFalse,a);return ii([d,_],2)}function m3e(n){let a=n.parent;return Wd(a)&&m3e(a)||Ys(a)&&a.argumentExpression===n}function Emt(n){let a=[n.head.text],c=[];for(let _ of n.templateSpans){let y=go(_.expression);dB(y,12288)&&qe(_.expression,f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(_.literal.text),c.push(Sa(y,Fo)?y:ke)}if(lM(n)||m3e(n)||jm(Jd(n,void 0)||mn,Smt))return GT(a,c);let d=n.parent.kind!==215&&h7e(n);return d?hx(qd(d)):ke}function Smt(n){return!!(n.flags&134217856||n.flags&58982400&&Dl(Bu(n)||mn,402653316))}function Tmt(n){return Y1(n)&&!zS(n.parent)?n.parent.parent:n}function CD(n,a,c,d){let _=Tmt(n);Jz(_,a,!1),jdt(_,c);let y=go(n,d|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);let x=Dl(y,2944)&&ete(y,Lee(a,n,void 0))?vd(y):y;return Udt(),j4(),x}function ec(n,a){if(a)return go(n,a);let c=ti(n);if(!c.resolvedType){let d=U_,_=gn;U_=df,gn=void 0,c.resolvedType=go(n,a),gn=_,U_=d}return c.resolvedType}function _3e(n){return n=vs(n,!0),n.kind===216||n.kind===234||qR(n)}function sM(n,a,c){let d=wL(n);if(cr(n)){let y=n7(n);if(y)return Fye(d,y,a)}let _=Yye(d)||(c?CD(d,c,void 0,a||0):ec(d,a));return Co(n)&&n.name.kind===207&&Wa(_)&&!_.target.hasRestElement&&my(_)ete(n,d))}if(a.flags&58982400){let c=Bu(a)||mn;return Dl(c,4)&&Dl(n,128)||Dl(c,8)&&Dl(n,256)||Dl(c,64)&&Dl(n,2048)||Dl(c,4096)&&Dl(n,8192)||ete(n,c)}return!!(a.flags&406847616&&Dl(n,128)||a.flags&256&&Dl(n,256)||a.flags&2048&&Dl(n,2048)||a.flags&512&&Dl(n,512)||a.flags&8192&&Dl(n,8192))}return!1}function lM(n){let a=n.parent;return pS(a)&&kg(a.type)||qR(a)&&kg(u5(a))||Oye(n)&&WT(Jd(n,0))||(Wd(a)||pd(a)||Zm(a))&&lM(a)||(_c(a)||np(a)||EN(a))&&lM(a.parent)}function cM(n,a,c){let d=go(n,a,c);return lM(n)||vie(n)?vd(d):_3e(n)?d:Ive(d,Lee(Jd(n,void 0),n,void 0))}function h3e(n,a){return n.name.kind===167&&Ig(n.name),cM(n.initializer,a)}function g3e(n,a){j7e(n),n.name.kind===167&&Ig(n.name);let c=l3e(n,a);return v3e(n,c,a)}function v3e(n,a,c){if(c&&c&10){let d=H4(a,0,!0),_=H4(a,1,!0),y=d||_;if(y&&y.typeParameters){let x=f1(n,2);if(x){let L=H4(yv(x),d?0:1,!1);if(L&&!L.typeParameters){if(c&8)return y3e(n,c),on;let z=VE(n),U=z.signature&&ms(z.signature),re=U&&x6e(U);if(re&&!re.typeParameters&&!Jn(z.inferences,ND)){let be=Dmt(z,y.typeParameters),ge=Rge(y,be),Je=Ft(z.inferences,vt=>Mve(vt.typeParameter));if(Dve(ge,L,(vt,Rt)=>{bv(Je,vt,Rt,0,!0)}),Et(Je,ND)&&(Cve(ge,L,(vt,Rt)=>{bv(Je,vt,Rt)}),!xmt(z.inferences,Je)))return Rmt(z.inferences,Je),z.inferredTypeParameters=xo(z.inferredTypeParameters,be),BT(ge)}return BT(R6e(y,L,z))}}}}return a}function y3e(n,a){if(a&2){let c=VE(n);c.flags|=4}}function ND(n){return!!(n.candidates||n.contraCandidates)}function Imt(n){return!!(n.candidates||n.contraCandidates||rOe(n.typeParameter))}function xmt(n,a){for(let c=0;cc.symbol.escapedName===a)}function Cmt(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;let d=a.slice(0,c);for(let _=1;;_++){let y=d+_;if(!Xye(n,y))return y}}function b3e(n){let a=tA(n);if(a&&!a.typeParameters)return ms(a)}function Nmt(n){let a=go(n.expression),c=O4(a,n.expression),d=b3e(a);return d&&fee(d,n,c!==a)}function Ru(n){let a=Yye(n);if(a)return a;if(n.flags&268435456&&gn){let _=gn[ss(n)];if(_)return _}let c=Ze,d=go(n,64);if(Ze!==c){let _=gn||(gn=[]);_[ss(n)]=d,Uoe(n,n.flags|268435456)}return d}function Yye(n){let a=vs(n,!0);if(qR(a)){let c=u5(a);if(!kg(c))return Ii(c)}if(a=vs(n),$y(a)){let c=Yye(a.expression);return c?rA(c):void 0}if(la(a)&&a.expression.kind!==108&&!Sd(a,!0)&&!B6e(a))return lS(a)?Nmt(a):b3e(xD(a.expression));if(pS(a)&&!kg(a.type))return Ii(a.type);if(S1(n)||gC(n))return go(n)}function mB(n){let a=ti(n);if(a.contextFreeType)return a.contextFreeType;Jz(n,j,!1);let c=a.contextFreeType=go(n,4);return j4(),c}function go(n,a,c){var d,_;(d=lr)==null||d.push(lr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let y=N;N=n,I=0;let x=Lmt(n,a,c),L=v3e(n,x,a);return Qee(L)&&Pmt(n,L),N=y,(_=lr)==null||_.pop(),L}function Pmt(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&mte(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||qe(n,f.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),im(V)&&(C.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!_0(n)&&qe(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Qe))}function Mmt(n,a){if(Op(n)){if(kU(n))return Fye(n.expression,wU(n),a);if(qR(n))return U6e(n,a)}return go(n.expression,a)}function Lmt(n,a,c){let d=n.kind;if(i)switch(d){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(d){case 80:return pdt(n,a);case 81:return Npt(n);case 110:return Hz(n);case 108:return nye(n);case 106:return Ge;case 15:case 11:return Fve(n)?Ye:hx(qd(n.text));case 9:return Nbe(n),hx(h_(+n.text));case 10:return wvt(n),hx(XZ({negative:!1,base10Value:tN(n.text)}));case 112:return On;case 97:return Kt;case 228:return Emt(n);case 14:return gl;case 209:return X8e(n,a,c);case 210:return lpt(n,a);case 211:return Wee(n,a);case 166:return d6e(n,a);case 212:return qpt(n,a);case 213:if(n.expression.kind===102)return Aft(n);case 214:return Tft(n,a);case 215:return Ift(n);case 217:return Mmt(n,a);case 231:return bht(n);case 218:case 219:return l3e(n,a);case 221:return imt(n);case 216:case 234:return xft(n,a);case 235:return Cft(n);case 233:return q6e(n);case 238:return Nft(n);case 236:return Pft(n);case 220:return nmt(n);case 222:return omt(n);case 223:return amt(n);case 224:return smt(n);case 225:return lmt(n);case 226:return Me(n,a);case 227:return bmt(n,a);case 230:return npt(n,a);case 232:return Lt;case 229:return ymt(n);case 237:return rpt(n);case 294:return Tpt(n,a);case 284:return ppt(n,a);case 285:return upt(n,a);case 288:return fpt(n);case 292:return _pt(n,a);case 286:C.fail("Shouldn't ever directly check a JsxOpeningElement")}return ht}function E3e(n){Rg(n),n.expression&&hu(n.expression,f.Type_expected),Da(n.constraint),Da(n.default);let a=wT(Rr(n));Bu(a),fst(a)||qe(n.default,f.Type_parameter_0_has_a_circular_default,jn(a));let c=Pd(a),d=zT(a);c&&d&&td(d,qp(co(c,WE(a,d)),d),n.default,f.Type_0_does_not_satisfy_the_constraint_1),yx(n),r(()=>mM(n.name,f.Type_parameter_name_cannot_be_0))}function kmt(n){var a,c;if(fd(n.parent)||pi(n.parent)||Dm(n.parent)){let d=wT(Rr(n)),_=bve(d)&24576;if(_){let y=Rr(n.parent);if(Dm(n.parent)&&!(Wr(Qs(y))&52))qe(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(_===8192||_===16384){(a=lr)==null||a.push(lr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:gd(Qs(y)),id:gd(d)});let x=Pz(y,d,_===16384?ee:de),L=Pz(y,d,_===16384?de:ee),z=d;O=d,td(x,L,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),O=z,(c=lr)==null||c.pop()}}}}function S3e(n){Rg(n),yB(n);let a=zp(n);ei(n,31)&&(a.kind===176&&Xf(a.body)||qe(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Ve(n.name)&&n.name.escapedText==="constructor"&&qe(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&sN(n)&&ta(n.name)&&a.body&&qe(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Ve(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&qe(n,f.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&qe(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===219&&qe(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&qe(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!ta(n.name)&&!Sa(__(pr(n.symbol)),cf)&&qe(n,f.A_rest_parameter_must_be_of_an_array_type)}function wmt(n){let a=Omt(n);if(!a){qe(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let c=pm(a),d=Bf(c);if(!d)return;Da(n.type);let{parameterName:_}=n;if(d.kind===0||d.kind===2)YZ(_);else if(d.parameterIndex>=0){if(Xu(c)&&d.parameterIndex===c.parameters.length-1)qe(_,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(d.type){let y=()=>Uo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);td(d.type,pr(c.parameters[d.parameterIndex]),n.type,void 0,y)}}else if(_){let y=!1;for(let{name:x}of a.parameters)if(ta(x)&&T3e(x,_,d.parameterName)){y=!0;break}y||qe(n.parameterName,f.Cannot_find_parameter_0,d.parameterName)}}function Omt(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let a=n.parent;if(n===a.type)return a}}function T3e(n,a,c){for(let d of n.elements){if(Vc(d))continue;let _=d.name;if(_.kind===80&&_.escapedText===c)return qe(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((_.kind===207||_.kind===206)&&T3e(_,a,c))return!0}}function X4(n){n.kind===181?cvt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&bte(n);let a=Gc(n);a&4||((a&3)===3&&ue<99&&Rc(n,6144),(a&3)===2&&ue<4&&Rc(n,64),a&3&&ue<2&&Rc(n,128)),SB(Py(n)),ght(n),Ke(n.parameters,S3e),n.type&&Da(n.type),r(c);function c(){k_t(n);let d=tm(n),_=d;if(cr(n)){let y=r0(n);if(y&&y.typeExpression&&Rf(y.typeExpression.type)){let x=tA(Ii(y.typeExpression));x&&x.declaration&&(d=tm(x.declaration),_=y.typeExpression.type)}}if(me&&!d)switch(n.kind){case 180:qe(n,f.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:qe(n,f.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(d&&_){let y=Gc(n);if((y&5)===1){let x=Ii(d);x===or?qe(_,f.A_generator_cannot_have_a_void_type_annotation):$ye(x,y,_)}else(y&3)===2&&f_t(n,d,_)}n.kind!==181&&n.kind!==324&&qb(n)}}function $ye(n,a,c){let d=HE(0,n,(a&2)!==0)||j,_=HE(1,n,(a&2)!==0)||d,y=HE(2,n,(a&2)!==0)||mn,x=n3e(d,_,y,!!(a&2));return td(x,n,c)}function Fmt(n){let a=new Map,c=new Map,d=new Map;for(let y of n.members)if(y.kind===176)for(let x of y.parameters)pp(x,y)&&!ta(x.name)&&_(a,x.name,x.name.escapedText,3);else{let x=sa(y),L=y.name;if(!L)continue;let z=Xi(L),U=z&&x?16:0,re=z?d:x?c:a,be=L&&Pbe(L);if(be)switch(y.kind){case 177:_(re,L,be,1|U);break;case 178:_(re,L,be,2|U);break;case 172:_(re,L,be,3|U);break;case 174:_(re,L,be,8|U);break}}function _(y,x,L,z){let U=y.get(L);if(U)if((U&16)!==(z&16))qe(x,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,pc(x));else{let re=!!(U&8),be=!!(z&8);re||be?re!==be&&qe(x,f.Duplicate_identifier_0,pc(x)):U&z&-17?qe(x,f.Duplicate_identifier_0,pc(x)):y.set(L,U|z)}else y.set(L,z)}}function Wmt(n){for(let a of n.members){let c=a.name;if(sa(a)&&c){let _=Pbe(c);switch(_){case"name":case"length":case"caller":case"arguments":if(he)break;case"prototype":let y=f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=Y0(Rr(n));qe(c,y,_,x);break}}}}function A3e(n){let a=new Map;for(let c of n.members)if(c.kind===171){let d,_=c.name;switch(_.kind){case 11:case 9:d=_.text;break;case 80:d=Sr(_);break;default:continue}a.get(d)?(qe(Oo(c.symbol.valueDeclaration),f.Duplicate_identifier_0,d),qe(c.name,f.Duplicate_identifier_0,d)):a.set(d,!0)}}function Qye(n){if(n.kind===264){let c=Rr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}let a=Dge(Rr(n));if(a?.declarations){let c=new Map;for(let d of a.declarations)d.parameters.length===1&&d.parameters[0].type&&$T(Ii(d.parameters[0].type),_=>{let y=c.get(gd(_));y?y.declarations.push(d):c.set(gd(_),{type:_,declarations:[d]})});c.forEach(d=>{if(d.declarations.length>1)for(let _ of d.declarations)qe(_,f.Duplicate_index_signature_for_type_0,jn(d.type))})}}function I3e(n){!Rg(n)&&!Pvt(n)&&Ete(n.name),yB(n),Zye(n),ei(n,64)&&n.kind===172&&n.initializer&&qe(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ds(n.name))}function zmt(n){return Xi(n.name)&&qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),I3e(n)}function Bmt(n){j7e(n)||Ete(n.name),jl(n)&&n.asteriskToken&&Ve(n.name)&&Sr(n.name)==="constructor"&&qe(n.name,f.Class_constructor_may_not_be_a_generator),W3e(n),ei(n,64)&&n.kind===174&&n.body&&qe(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ds(n.name)),Xi(n.name)&&!su(n)&&qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),Zye(n)}function Zye(n){if(Xi(n.name)&&ue<99){for(let a=_h(n);a;a=_h(a))ti(a).flags|=1048576;if(Zc(n.parent)){let a=Qve(n.parent);a&&(ti(n.name).flags|=32768,ti(a).flags|=4096)}}}function Gmt(n){Rg(n),Ho(n,Da)}function Vmt(n){X4(n),Cvt(n)||Nvt(n),Da(n.body);let a=Rr(n),c=dl(a,n.kind);if(n===c&&rte(a),Fl(n.body))return;r(_);return;function d(y){return ad(y)?!0:y.kind===172&&!sa(y)&&!!y.initializer}function _(){let y=n.parent;if(M1(y)){Zve(n.parent,y);let x=eye(y),L=L8e(n.body);if(L){if(x&&qe(L,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ye&&(Et(n.parent.members,d)||Et(n.parameters,U=>ei(U,31))))if(!jmt(L,n.body))qe(L,f.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{let U;for(let re of n.body.statements){if(eu(re)&&gS(Xl(re.expression))){U=re;break}if(x3e(re))break}U===void 0&&qe(n,f.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 x||qe(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function jmt(n,a){let c=Fv(n.parent);return eu(c)&&c.parent===a}function x3e(n){return n.kind===108||n.kind===110?!0:Iie(n)?!1:!!Ho(n,x3e)}function R3e(n){Ve(n.name)&&Sr(n.name)==="constructor"&&pi(n.parent)&&qe(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),Da(n.body),Zye(n);function a(){if(!bte(n)&&!vvt(n)&&Ete(n.name),hB(n),X4(n),n.kind===177&&!(n.flags&33554432)&&Xf(n.body)&&n.flags&512&&(n.flags&1024||qe(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===167&&Ig(n.name),mD(n)){let d=Rr(n),_=dl(d,177),y=dl(d,178);if(_&&y&&!(LD(_)&1)){ti(_).flags|=1;let x=cd(_),L=cd(y);(x&64)!==(L&64)&&(qe(_.name,f.Accessors_must_both_be_abstract_or_non_abstract),qe(y.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(x&4&&!(L&6)||x&2&&!(L&2))&&(qe(_.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),qe(y.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let c=e1(Rr(n));n.kind===177&&Uye(n,c)}}function Umt(n){hB(n)}function Hmt(n,a,c){return n.typeArguments&&c{let d=ebe(n);d&&D3e(n,d)});let c=ti(n).resolvedSymbol;c&&Et(c.declarations,d=>PR(d)&&!!(d.flags&536870912))&&sy(oB(n),c.declarations,c.escapedName)}}function Jmt(n){let a=ai(n.parent,P6);if(!a)return;let c=ebe(a);if(!c)return;let d=Pd(c[a.typeArguments.indexOf(n)]);return d&&co(d,Mp(c,tte(a,c)))}function Kmt(n){xOe(n)}function Xmt(n){Ke(n.members,Da),r(a);function a(){let c=f4e(n);ute(c,c.symbol),Qye(n),A3e(n)}}function Ymt(n){Da(n.elementType)}function $mt(n){let a=!1,c=!1;for(let d of n.elements){let _=jge(d);if(_&8){let y=Ii(d.type);if(!gy(y)){qe(d,f.A_rest_element_type_must_be_an_array_type);break}(jf(y)||Wa(y)&&y.target.combinedFlags&4)&&(_|=4)}if(_&4){if(c){bn(d,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(_&2){if(c){bn(d,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(_&1&&a){bn(d,f.A_required_element_cannot_follow_an_optional_element);break}}Ke(n.elements,Da),Ii(n)}function Qmt(n){Ke(n.types,Da),Ii(n)}function N3e(n,a){if(!(n.flags&8388608))return n;let c=n.objectType,d=n.indexType,_=Hd(c)&&LZ(c)===2?$Oe(c,0):$_(c,0),y=!!Ag(c,Dt);if(cp(d,x=>Sa(x,_)||y&&dx(x,Dt)))return a.kind===212&&ng(a)&&Wr(c)&32&&Wh(c)&1&&qe(a,f.Index_signature_in_type_0_only_permits_reading,jn(c)),n;if(jT(c)){let x=HZ(d,a);if(x){let L=$T(Md(c),z=>ba(z,x));if(L&&If(L)&6)return qe(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Hi(x)),ht}}return qe(a,f.Type_0_cannot_be_used_to_index_type_1,jn(d),jn(c)),ht}function Zmt(n){Da(n.objectType),Da(n.indexType),N3e(s4e(n),n)}function e_t(n){t_t(n),Da(n.typeParameter),Da(n.nameType),Da(n.type),n.type||c1(n,j);let a=tve(n),c=py(a);if(c)td(c,Fs,n.nameType);else{let d=gf(a);td(d,Fs,Ux(n.typeParameter))}}function t_t(n){var a;if((a=n.members)!=null&&a.length)return bn(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function n_t(n){YZ(n)}function r_t(n){bvt(n),Da(n.type)}function i_t(n){Ho(n,Da)}function o_t(n){zn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||bn(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Da(n.typeParameter);let a=Rr(n.typeParameter);if(a.declarations&&a.declarations.length>1){let c=$i(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;let d=wT(a),_=Jre(a,168);if(!o7e(_,[d],y=>[y])){let y=Ai(a);for(let x of _)qe(x.name,f.All_declarations_of_0_must_have_identical_constraints,y)}}}qb(n)}function a_t(n){for(let a of n.templateSpans){Da(a.type);let c=Ii(a.type);td(c,Fo,a.type)}Ii(n)}function s_t(n){Da(n.argument),n.attributes&&s2(n.attributes,bn),C3e(n)}function l_t(n){n.dotDotDotToken&&n.questionToken&&bn(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&bn(n.type,f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&bn(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Da(n.type),Ii(n)}function _B(n){return(_p(n,2)||ad(n))&&!!(n.flags&33554432)}function nte(n,a){let c=Ste(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){let d=bj(n);d&&d.flags&128&&!(c&128)&&!(k_(n.parent)&&Jl(n.parent.parent)&&I_(n.parent.parent))&&(c|=32),c|=128}return c&a}function rte(n){r(()=>c_t(n))}function c_t(n){function a(cn,Fn){return Fn!==void 0&&Fn.parent===cn[0].parent?Fn:cn[0]}function c(cn,Fn,kn,Zn,Hn){if((Zn^Hn)!==0){let Mo=nte(a(cn,Fn),kn);Ke(cn,Ao=>{let jo=nte(Ao,kn)^Mo;jo&32?qe(Oo(Ao),f.Overload_signatures_must_all_be_exported_or_non_exported):jo&128?qe(Oo(Ao),f.Overload_signatures_must_all_be_ambient_or_non_ambient):jo&6?qe(Oo(Ao)||Ao,f.Overload_signatures_must_all_be_public_private_or_protected):jo&64&&qe(Oo(Ao),f.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function d(cn,Fn,kn,Zn){if(kn!==Zn){let Hn=LA(a(cn,Fn));Ke(cn,er=>{LA(er)!==Hn&&qe(Oo(er),f.Overload_signatures_must_all_be_optional_or_required)})}}let _=230,y=0,x=_,L=!1,z=!0,U=!1,re,be,ge,Je=n.declarations,vt=(n.flags&16384)!==0;function Rt(cn){if(cn.name&&Fl(cn.name))return;let Fn=!1,kn=Ho(cn.parent,Hn=>{if(Fn)return Hn;Fn=Hn===cn});if(kn&&kn.pos===cn.end&&kn.kind===cn.kind){let Hn=kn.name||kn,er=kn.name;if(cn.name&&er&&(Xi(cn.name)&&Xi(er)&&cn.name.escapedText===er.escapedText||Za(cn.name)&&Za(er)&&hv(Ig(cn.name),Ig(er))||R_(cn.name)&&R_(er)&&kC(cn.name)===kC(er))){if((cn.kind===174||cn.kind===173)&&sa(cn)!==sa(kn)){let Ao=sa(cn)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;qe(Hn,Ao)}return}if(Xf(kn.body)){qe(Hn,f.Function_implementation_name_must_be_0,Ds(cn.name));return}}let Zn=cn.name||cn;vt?qe(Zn,f.Constructor_implementation_is_missing):ei(cn,64)?qe(Zn,f.All_declarations_of_an_abstract_method_must_be_consecutive):qe(Zn,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let sn=!1,un=!1,sr=!1,Ln=[];if(Je)for(let cn of Je){let Fn=cn,kn=Fn.flags&33554432,Zn=Fn.parent&&(Fn.parent.kind===264||Fn.parent.kind===187)||kn;if(Zn&&(ge=void 0),(Fn.kind===263||Fn.kind===231)&&!kn&&(sr=!0),Fn.kind===262||Fn.kind===174||Fn.kind===173||Fn.kind===176){Ln.push(Fn);let Hn=nte(Fn,_);y|=Hn,x&=Hn,L=L||LA(Fn),z=z&&LA(Fn);let er=Xf(Fn.body);er&&re?vt?un=!0:sn=!0:ge?.parent===Fn.parent&&ge.end!==Fn.pos&&Rt(ge),er?re||(re=Fn):U=!0,ge=Fn,Zn||(be=Fn)}cr(cn)&&ea(cn)&&cn.jsDoc&&(U=De(Fj(cn))>0)}if(un&&Ke(Ln,cn=>{qe(cn,f.Multiple_constructor_implementations_are_not_allowed)}),sn&&Ke(Ln,cn=>{qe(Oo(cn)||cn,f.Duplicate_function_implementation)}),sr&&!vt&&n.flags&16&&Je){let cn=tr(Je,Fn=>Fn.kind===263).map(Fn=>Or(Fn,f.Consider_adding_a_declare_modifier_to_this_class));Ke(Je,Fn=>{let kn=Fn.kind===263?f.Class_declaration_cannot_implement_overload_list_for_0:Fn.kind===262?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;kn&&ka(qe(Oo(Fn)||Fn,kn,bl(n)),...cn)})}if(be&&!be.body&&!ei(be,64)&&!be.questionToken&&Rt(be),U&&(Je&&(c(Je,re,_,y,x),d(Je,re,L,z)),re)){let cn=LE(n),Fn=pm(re);for(let kn of cn)if(!Cct(Fn,kn)){let Zn=kn.declaration&&b0(kn.declaration)?kn.declaration.parent.tagName:kn.declaration;ka(qe(Zn,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),Or(re,f.The_implementation_signature_is_declared_here));break}}}function Y4(n){r(()=>u_t(n))}function u_t(n){let a=n.localSymbol;if(!a&&(a=Rr(n),!a.exportSymbol)||dl(a,n.kind)!==n)return;let c=0,d=0,_=0;for(let U of a.declarations){let re=z(U),be=nte(U,2080);be&32?be&2048?_|=re:c|=re:d|=re}let y=c|d,x=c&d,L=_&y;if(x||L)for(let U of a.declarations){let re=z(U),be=Oo(U);re&L?qe(be,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ds(be)):re&x&&qe(be,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ds(be))}function z(U){let re=U;switch(re.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return Lu(re)||qg(re)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:let be=re,ge=Ll(be)?be.expression:be.right;if(!zl(ge))return 1;re=ge;case 271:case 274:case 273:let Je=0,vt=Fc(Rr(re));return Ke(vt.declarations,Rt=>{Je|=z(Rt)}),Je;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return C.failBadSyntaxKind(re)}}}function uM(n,a,c,...d){let _=$4(n,a);return _&&rA(_,a,c,...d)}function $4(n,a,c){if(Ct(n))return;let d=n;if(d.promisedTypeOfPromise)return d.promisedTypeOfPromise;if(Mb(n,yz(!1)))return d.promisedTypeOfPromise=qs(n)[0];if(pB(fv(n),402915324))return;let _=Xe(n,"then");if(Ct(_))return;let y=_?Yo(_,0):et;if(y.length===0){a&&qe(a,f.A_promise_must_have_a_then_method);return}let x,L;for(let re of y){let be=i1(re);be&&be!==or&&!Q_(n,be,Ch)?x=be:L=In(L,re)}if(!L){C.assertIsDefined(x),c&&(c.value=x),a&&qe(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,jn(n),jn(x));return}let z=_m(ii(Ft(L,Bye)),2097152);if(Ct(z))return;let U=Yo(z,0);if(U.length===0){a&&qe(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return d.promisedTypeOfPromise=ii(Ft(U,Bye),2)}function Q4(n,a,c,d,..._){return(a?rA(n,c,d,..._):vy(n,c,d,..._))||ht}function P3e(n){if(pB(fv(n),402915324))return!1;let a=Xe(n,"then");return!!a&&Yo(_m(a,2097152),0).length>0}function ite(n){var a;if(n.flags&16777216){let c=Vge(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function dM(n){return n.flags&1048576?ul(n,dM):ite(n)?n.aliasTypeArguments[0]:n}function M3e(n){if(Ct(n)||ite(n))return!1;if(jT(n)){let a=Bu(n);if(a?a.flags&3||gv(a)||jm(a,P3e):Dl(n,8650752))return!0}return!1}function d_t(n){let a=Vge(!0);if(a)return vD(a,[dM(n)])}function p_t(n){if(M3e(n)){let a=d_t(n);if(a)return a}return C.assert(ite(n)||$4(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function rA(n,a,c,...d){let _=vy(n,a,c,...d);return _&&p_t(_)}function vy(n,a,c,...d){if(Ct(n)||ite(n))return n;let _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(F0.lastIndexOf(n.id)>=0){a&&qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let L=a?U=>vy(U,a,c,...d):vy;F0.push(n.id);let z=ul(n,L);return F0.pop(),_.awaitedTypeOfType=z}if(M3e(n))return _.awaitedTypeOfType=n;let y={value:void 0},x=$4(n,void 0,y);if(x){if(n.id===x.id||F0.lastIndexOf(x.id)>=0){a&&qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}F0.push(n.id);let L=vy(x,a,c,...d);return F0.pop(),L?_.awaitedTypeOfType=L:void 0}if(P3e(n)){if(a){C.assertIsDefined(c);let L;y.value&&(L=Uo(L,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,jn(n),jn(y.value))),L=Uo(L,c,...d),ns.add(Og(Vn(a),a,L))}return}return _.awaitedTypeOfType=n}function f_t(n,a,c){let d=Ii(a);if(ue>=2){if(qt(d))return;let y=yz(!0);if(y!==Wo&&!Mb(d,y)){_(f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,c,jn(vy(d)||or));return}}else{if(__t(a),qt(d))return;let y=PL(a);if(y===void 0){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,jn(d));return}let x=Us(y,111551,!0),L=x?pr(x):ht;if(qt(L)){y.kind===80&&y.escapedText==="Promise"&&dy(d)===yz(!1)?qe(c,f.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):_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,fp(y));return}let z=zst(!0);if(z===Pa){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,fp(y));return}let U=f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!td(L,z,c,U,()=>a===c?void 0:Uo(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let be=y&&Bp(y),ge=Ud(n.locals,be.escapedText,111551);if(ge){qe(ge.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Sr(be),fp(y));return}}Q4(d,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function _(y,x,L,z){if(x===L)qe(L,y,z);else{let U=qe(L,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);ka(U,Or(x,y,z))}}}function m_t(n){let a=DD(n);Xee(a,n);let c=ms(a);if(c.flags&1)return;let d=jye(n);if(!d?.resolvedReturnType)return;let _,y=d.resolvedReturnType;switch(n.parent.kind){case 263:case 231:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ne){_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:_=f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return C.failBadSyntaxKind(n.parent)}td(c,y,n.expression,_)}function Z4(n,a,c,d,_,y=c.length,x=0){let L=k.createFunctionTypeNode(void 0,et,k.createKeywordTypeNode(133));return Tg(L,n,a,c,d,_,y,x)}function nbe(n,a,c,d,_,y,x){let L=Z4(n,a,c,d,_,y,x);return BT(L)}function L3e(n){return nbe(void 0,void 0,et,n)}function k3e(n){let a=s_("value",n);return nbe(void 0,void 0,[a],or)}function __t(n){w3e(n&&PL(n),!1)}function w3e(n,a){if(!n)return;let c=Bp(n),d=(n.kind===80?788968:1920)|2097152,_=vl(c,c.escapedText,d,void 0,void 0,!0);if(_&&_.flags&2097152){if(gt&&Bm(_)&&!r8(Fc(_))&&!wf(_))bb(_);else if(a&&im(V)&&ku(V)>=5&&!Bm(_)&&!Et(_.declarations,a0)){let y=qe(n,f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),x=vn(_.declarations||et,hb);x&&ka(y,Or(x,f._0_was_imported_here,Sr(c)))}}}function PD(n){let a=rbe(n);a&&Qd(a)&&w3e(a,!0)}function rbe(n){if(n)switch(n.kind){case 193:case 192:return O3e(n.types);case 194:return O3e([n.trueType,n.falseType]);case 196:case 202:return rbe(n.type);case 183:return n.typeName}}function O3e(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!Y&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;let d=rbe(c);if(!d)return;if(a){if(!Ve(a)||!Ve(d)||a.escapedText!==d.escapedText)return}else a=d}return a}function ote(n){let a=yu(n);return $h(n)?Aj(a):a}function hB(n){if(!US(n)||!Sf(n)||!n.modifiers||!t3(ne,n,n.parent,n.parent.parent))return;let a=vn(n.modifiers,Eu);if(a){if(ne?(Rc(a,8),n.kind===169&&Rc(a,32)):ue<99&&(Rc(a,8),Tc(n)?n.name?a7e(n)&&Rc(a,8388608):Rc(a,8388608):Zc(n)||(Xi(n.name)&&(jl(n)||Ly(n)||kd(n))&&Rc(a,8388608),Za(n.name)&&Rc(a,16777216))),V.emitDecoratorMetadata)switch(Rc(a,16),n.kind){case 263:let c=ig(n);if(c)for(let x of c.parameters)PD(ote(x));break;case 177:case 178:let d=n.kind===177?178:177,_=dl(Rr(n),d);PD(Gm(n)||_&&Gm(_));break;case 174:for(let x of n.parameters)PD(ote(x));PD(tm(n));break;case 172:PD(yu(n));break;case 169:PD(ote(n));let y=n.parent;for(let x of y.parameters)PD(ote(x));PD(tm(y));break}for(let c of n.modifiers)Eu(c)&&m_t(c)}}function h_t(n){r(a);function a(){W3e(n),xbe(n),pM(n,n.name)}}function g_t(n){n.typeExpression||qe(n.name,f.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&mM(n.name,f.Type_alias_name_cannot_be_0),Da(n.typeExpression),SB(Py(n))}function v_t(n){Da(n.constraint);for(let a of n.typeParameters)Da(a)}function y_t(n){Da(n.typeExpression)}function b_t(n){Da(n.typeExpression);let a=d0(n);if(a){let c=g6(a,s5);if(De(c)>1)for(let d=1;d0),c.length>1&&qe(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let d=F3e(n.class.expression),_=M1(a);if(_){let y=F3e(_.expression);y&&d.escapedText!==y.escapedText&&qe(d,f.JSDoc_0_1_does_not_match_the_extends_2_clause,Sr(n.tagName),Sr(d),Sr(y))}}function D_t(n){let a=SS(n);a&&ad(a)&&qe(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function F3e(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function W3e(n){var a;hB(n),X4(n);let c=Gc(n);if(n.name&&n.name.kind===167&&Ig(n.name),mD(n)){let y=Rr(n),x=n.localSymbol||y,L=(a=x.declarations)==null?void 0:a.find(z=>z.kind===n.kind&&!(z.flags&524288));n===L&&rte(x),y.parent&&rte(y)}let d=n.kind===173?void 0:n.body;if(Da(d),Uye(n,hD(n)),r(_),cr(n)){let y=r0(n);y&&y.typeExpression&&!lye(Ii(y.typeExpression),n)&&qe(y.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){tm(n)||(Fl(d)&&!_B(n)&&c1(n,j),c&1&&Xf(d)&&ms(pm(n)))}}function qb(n){r(a);function a(){let c=Vn(n),d=uf.get(c.path);d||(d=[],uf.set(c.path,d)),d.push(n)}}function z3e(n,a){for(let c of n)switch(c.kind){case 263:case 231:C_t(c,a),ibe(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:V3e(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&V3e(c,a),ibe(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:ibe(c,a);break;case 195:N_t(c,a);break;default:C.assertNever(c,"Node should not have been registered for unused identifiers check")}}function B3e(n,a,c){let d=Oo(n)||n,_=PR(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,Or(d,_,a))}function e8(n){return Ve(n)&&Sr(n).charCodeAt(0)===95}function C_t(n,a){for(let c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;let d=Rr(c);!d.isReferenced&&(_p(c,2)||od(c)&&Xi(c.name))&&!(c.flags&33554432)&&a(c,0,Or(c.name,f._0_is_declared_but_its_value_is_never_read,Ai(d)));break;case 176:for(let _ of c.parameters)!_.symbol.isReferenced&&ei(_,2)&&a(_,0,Or(_.name,f.Property_0_is_declared_but_its_value_is_never_read,bl(_.symbol)));break;case 181:case 240:case 175:break;default:C.fail("Unexpected class member")}}function N_t(n,a){let{typeParameter:c}=n;obe(c)&&a(n,1,Or(n,f._0_is_declared_but_its_value_is_never_read,Sr(c.name)))}function ibe(n,a){let c=Rr(n).declarations;if(!c||Ya(c)!==n)return;let d=Py(n),_=new Set;for(let y of d){if(!obe(y))continue;let x=Sr(y.name),{parent:L}=y;if(L.kind!==195&&L.typeParameters.every(obe)){if(Av(_,L)){let z=Vn(L),U=am(L)?CU(L):NU(z,L.typeParameters),be=L.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,x]:[f.All_type_parameters_are_unused];a(y,1,Qc(z,U.pos,U.end-U.pos,...be))}}else a(y,1,Or(y,f._0_is_declared_but_its_value_is_never_read,x))}}function obe(n){return!(is(n.symbol).isReferenced&262144)&&!e8(n.name)}function gB(n,a,c,d){let _=String(d(a)),y=n.get(_);y?y[1].push(c):n.set(_,[a,[c]])}function G3e(n){return ai(D_(n),Co)}function P_t(n){return Qa(n)?om(n.parent)?!!(n.propertyName&&e8(n.name)):e8(n.name):Lu(n)||(Oi(n)&&Jx(n.parent.parent)||j3e(n))&&e8(n.name)}function V3e(n,a){let c=new Map,d=new Map,_=new Map;n.locals.forEach(y=>{if(!(y.flags&262144?!(y.flags&3&&!(y.isReferenced&3)):y.isReferenced||y.exportSymbol)&&y.declarations){for(let x of y.declarations)if(!P_t(x))if(j3e(x))gB(c,L_t(x),x,ss);else if(Qa(x)&&om(x.parent)){let L=Ya(x.parent.elements);(x===L||!Ya(x.parent.elements).dotDotDotToken)&&gB(d,x.parent,x,ss)}else if(Oi(x)){let L=KE(x)&7,z=Oo(x);(L!==4&&L!==6||!z||!e8(z))&&gB(_,x.parent,x,ss)}else{let L=y.valueDeclaration&&G3e(y.valueDeclaration),z=y.valueDeclaration&&Oo(y.valueDeclaration);L&&z?!pp(L,L.parent)&&!w1(L)&&!e8(z)&&(Qa(x)&&U1(x.parent)?gB(d,x.parent,x,ss):a(L,1,Or(z,f._0_is_declared_but_its_value_is_never_read,bl(y)))):B3e(x,bl(y),a)}}}),c.forEach(([y,x])=>{let L=y.parent;if((y.name?1:0)+(y.namedBindings?y.namedBindings.kind===274?1:y.namedBindings.elements.length:0)===x.length)a(L,0,x.length===1?Or(L,f._0_is_declared_but_its_value_is_never_read,Sr(Ha(x).name)):Or(L,f.All_imports_in_import_declaration_are_unused));else for(let U of x)B3e(U,Sr(U.name),a)}),d.forEach(([y,x])=>{let L=G3e(y.parent)?1:0;if(y.elements.length===x.length)x.length===1&&y.parent.kind===260&&y.parent.parent.kind===261?gB(_,y.parent.parent,y.parent,ss):a(y,L,x.length===1?Or(y,f._0_is_declared_but_its_value_is_never_read,vB(Ha(x).name)):Or(y,f.All_destructured_elements_are_unused));else for(let z of x)a(z,L,Or(z,f._0_is_declared_but_its_value_is_never_read,vB(z.name)))}),_.forEach(([y,x])=>{if(y.declarations.length===x.length)a(y,0,x.length===1?Or(Ha(x).name,f._0_is_declared_but_its_value_is_never_read,vB(Ha(x).name)):Or(y.parent.kind===243?y.parent:y,f.All_variables_are_unused));else for(let L of x)a(L,0,Or(L,f._0_is_declared_but_its_value_is_never_read,vB(L.name)))})}function M_t(){var n;for(let a of mg)if(!((n=Rr(a))!=null&&n.isReferenced)){let c=Vx(a);C.assert(L1(c),"Only parameter declaration should be checked here");let d=Or(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ds(a.name),Ds(a.propertyName));c.type||ka(d,Qc(Vn(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ds(a.propertyName))),ns.add(d)}}function vB(n){switch(n.kind){case 80:return Sr(n);case 207:case 206:return vB(aa(Ha(n.elements),Qa).name);default:return C.assertNever(n)}}function j3e(n){return n.kind===273||n.kind===276||n.kind===274}function L_t(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function ate(n){if(n.kind===241&&Ev(n),KV(n)){let a=ze;Ke(n.statements,Da),ze=a}else Ke(n.statements,Da);n.locals&&qb(n)}function k_t(n){ue>=2||!nj(n)||n.flags&33554432||Fl(n.body)||Ke(n.parameters,a=>{a.name&&!ta(a.name)&&a.name.escapedText===Bt.escapedName&&o_("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function t8(n,a,c){if(a?.escapedText!==c||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(Eh(n)||tu(n)||tp(n))&&a0(n))return!1;let d=D_(n);return!(Co(d)&&Fl(d.parent.body))}function w_t(n){zn(n,a=>LD(a)&4?(n.kind!==80?qe(Oo(n),f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):qe(n,f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function O_t(n){zn(n,a=>LD(a)&8?(n.kind!==80?qe(Oo(n),f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):qe(n,f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function F_t(n,a){if(G>=5&&!(G>=100&&Vn(n).impliedNodeFormat===1)||!a||!t8(n,a,"require")&&!t8(n,a,"exports")||Jl(n)&&qg(n)!==1)return;let c=Q(n);c.kind===312&&Fp(c)&&o_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ds(a),Ds(a))}function W_t(n,a){if(!a||ue>=4||!t8(n,a,"Promise")||Jl(n)&&qg(n)!==1)return;let c=Q(n);c.kind===312&&Fp(c)&&c.flags&4096&&o_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ds(a),Ds(a))}function z_t(n,a){ue<=8&&(t8(n,a,"WeakMap")||t8(n,a,"WeakSet"))&&ub.push(n)}function B_t(n){let a=_h(n);LD(a)&1048576&&(C.assert(od(n)&&Ve(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),o_("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function G_t(n,a){a&&ue>=2&&ue<=8&&t8(n,a,"Reflect")&&db.push(n)}function V_t(n){let a=!1;if(Zc(n)){for(let c of n.members)if(LD(c)&2097152){a=!0;break}}else if(ws(n))LD(n)&2097152&&(a=!0);else{let c=_h(n);c&&LD(c)&2097152&&(a=!0)}a&&(C.assert(od(n)&&Ve(n.name),"The target of a Reflect collision check should be an identifier"),o_("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ds(n.name),"Reflect"))}function pM(n,a){a&&(F_t(n,a),W_t(n,a),z_t(n,a),G_t(n,a),pi(n)?(mM(a,f.Class_name_cannot_be_0),n.flags&33554432||hht(a)):v0(n)&&mM(a,f.Enum_name_cannot_be_0))}function j_t(n){if(KE(n)&7||L1(n))return;let a=Rr(n);if(a.flags&1){if(!Ve(n.name))return C.fail();let c=vl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&hye(c)&7){let d=p0(c.valueDeclaration,261),_=d.parent.kind===243&&d.parent.parent?d.parent.parent:void 0;if(!(_&&(_.kind===241&&ea(_.parent)||_.kind===268||_.kind===267||_.kind===312))){let x=Ai(c);qe(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function n8(n){return n===ot?j:n===qc?Ql:n}function yB(n){var a;if(hB(n),Qa(n)||Da(n.type),!n.name)return;if(n.name.kind===167&&(Ig(n.name),fS(n)&&n.initializer&&ec(n.initializer)),Qa(n)){if(n.propertyName&&Ve(n.name)&&L1(n)&&Fl(zp(n).body)){mg.push(n);return}om(n.parent)&&n.dotDotDotToken&&ue<5&&Rc(n,4),n.propertyName&&n.propertyName.kind===167&&Ig(n.propertyName);let _=n.parent.parent,y=n.dotDotDotToken?32:0,x=Br(_,y),L=n.propertyName||n.name;if(x&&!ta(L)){let z=_y(L);if(nm(z)){let U=rm(z),re=ba(x,U);re&&(eB(re,void 0,!1),vye(n,!!_.initializer&&_.initializer.kind===108,!1,x,re))}}}if(ta(n.name)&&(n.name.kind===207&&ue<2&&V.downlevelIteration&&Rc(n,512),Ke(n.name.elements,Da)),n.initializer&&L1(n)&&Fl(zp(n).body)){qe(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(ta(n.name)){if(Vve(n))return;let _=fS(n)&&n.initializer&&n.parent.parent.kind!==249,y=!Et(n.name.elements,O8(Vc));if(_||y){let x=B(n);if(_){let L=ec(n.initializer);Y&&y?u6e(L,n):Gb(L,B(n),n,n.initializer)}y&&(U1(n.name)?yy(65,x,Oe,n):Y&&u6e(x,n))}return}let c=Rr(n);if(c.flags&2097152&&(C1(n)||Cie(n))){dte(n);return}let d=n8(pr(c));if(n===c.valueDeclaration){let _=fS(n)&&wL(n);if(_&&!(cr(n)&&wa(_)&&(_.properties.length===0||Vy(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){let x=ec(_);Gb(x,d,n,_,void 0);let L=KE(n)&7;if(L===6){let z=Kst(!0),U=kOe(!0);if(z!==Pa&&U!==Pa){let re=ii([z,U,pe,Oe]);td(x,re,_,f.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(L===4){let z=kOe(!0);if(z!==Pa){let U=ii([z,pe,Oe]);td(x,U,_,f.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}c.declarations&&c.declarations.length>1&&Et(c.declarations,y=>y!==n&&rR(y)&&!H3e(y,n))&&qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ds(n.name))}else{let _=n8(B(n));!qt(d)&&!qt(_)&&!hv(d,_)&&!(c.flags&67108864)&&U3e(c.valueDeclaration,d,n,_),fS(n)&&n.initializer&&Gb(ec(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!H3e(n,c.valueDeclaration)&&qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ds(n.name))}n.kind!==172&&n.kind!==171&&(Y4(n),(n.kind===260||n.kind===208)&&j_t(n),pM(n,n.name))}function U3e(n,a,c,d){let _=Oo(c),y=c.kind===172||c.kind===171?f.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:f.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,x=Ds(_),L=qe(_,y,x,jn(a),jn(d));n&&ka(L,Or(n,f._0_was_also_declared_here,x))}function H3e(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(LA(n)!==LA(a))return!1;let c=1358;return WA(n,c)===WA(a,c)}function U_t(n){var a,c;(a=lr)==null||a.push(lr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Ivt(n),yB(n),(c=lr)==null||c.pop()}function H_t(n){return Svt(n),yB(n)}function ste(n){let a=Lv(n)&7;(a===4||a===6)&&Rc(n,33554432),Ke(n.declarations,Da)}function q_t(n){!Rg(n)&&!Cbe(n.declarationList)&&xvt(n),ste(n.declarationList)}function J_t(n){Ev(n),go(n.expression)}function K_t(n){Ev(n);let a=fM(n.expression);abe(n.expression,a,n.thenStatement),Da(n.thenStatement),n.thenStatement.kind===242&&qe(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),Da(n.elseStatement)}function abe(n,a,c){if(!Y)return;d(n,c);function d(y,x){for(y=vs(y),_(y,x);_r(y)&&(y.operatorToken.kind===57||y.operatorToken.kind===61);)y=vs(y.left),_(y,x)}function _(y,x){let L=ak(y)?vs(y.right):y;if(tg(L))return;if(ak(L)){d(L,x);return}let z=L===y?a:fM(L),U=zr(L)&&_3e(L.expression);if(!mm(z,4194304)||U)return;let re=Yo(z,0),be=!!uM(z);if(re.length===0&&!be)return;let ge=Ve(L)?L:zr(L)?L.name:void 0,Je=ge&&Um(ge);if(!Je&&!be)return;Je&&_r(y.parent)&&Y_t(y.parent,Je)||Je&&x&&X_t(y,x,ge,Je)||(be?B0(L,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,Ab(z)):qe(L,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function X_t(n,a,c,d){return!!Ho(a,function _(y){if(Ve(y)){let x=Um(y);if(x&&x===d){if(Ve(n)||Ve(c)&&_r(c.parent))return!0;let L=c.parent,z=y.parent;for(;L&&z;){if(Ve(L)&&Ve(z)||L.kind===110&&z.kind===110)return Um(L)===Um(z);if(zr(L)&&zr(z)){if(Um(L.name)!==Um(z.name))return!1;z=z.expression,L=L.expression}else if(la(L)&&la(z))z=z.expression,L=L.expression;else return!1}}}return Ho(y,_)})}function Y_t(n,a){for(;_r(n)&&n.operatorToken.kind===56;){if(Ho(n.right,function d(_){if(Ve(_)){let y=Um(_);if(y&&y===a)return!0}return Ho(_,d)}))return!0;n=n.parent}return!1}function $_t(n){Ev(n),Da(n.statement),fM(n.expression)}function Q_t(n){Ev(n),fM(n.expression),Da(n.statement)}function sbe(n,a){return n.flags&16384&&qe(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function fM(n,a){return sbe(go(n,a),n)}function Z_t(n){Ev(n)||n.initializer&&n.initializer.kind===261&&Cbe(n.initializer),n.initializer&&(n.initializer.kind===261?ste(n.initializer):go(n.initializer)),n.condition&&fM(n.condition),n.incrementor&&go(n.incrementor),Da(n.statement),n.locals&&qb(n)}function eht(n){V7e(n);let a=Y6(n);if(n.awaitModifier?a&&Il(a)?bn(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(Gc(a)&6)===2&&ue<99&&Rc(n,16384):V.downlevelIteration&&ue<2&&Rc(n,256),n.initializer.kind===261)ste(n.initializer);else{let c=n.initializer,d=bB(n);if(c.kind===209||c.kind===210)nA(c,d||ht);else{let _=go(c);K4(c,f.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),d&&Gb(d,_,c,n.expression)}}Da(n.statement),n.locals&&qb(n)}function tht(n){V7e(n);let a=yye(go(n.expression));if(n.initializer.kind===261){let c=n.initializer.declarations[0];c&&ta(c.name)&&qe(c.name,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),ste(n.initializer)}else{let c=n.initializer,d=go(c);c.kind===209||c.kind===210?qe(c,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Sa(wlt(a),d)?K4(c,f.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):qe(c,f.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Vr||!xu(a,126091264))&&qe(n.expression,f.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,jn(a)),Da(n.statement),n.locals&&qb(n)}function bB(n){let a=n.awaitModifier?15:13;return yy(a,xD(n.expression),Oe,n.expression)}function yy(n,a,c,d){return Ct(a)?a:lbe(n,a,c,d,!0)||j}function lbe(n,a,c,d,_){let y=(n&2)!==0;if(a===Vr){fbe(d,a,y);return}let x=ue>=2,L=!x&&V.downlevelIteration,z=V.noUncheckedIndexedAccess&&!!(n&128);if(x||L||y){let vt=cte(a,n,x?d:void 0);if(_&&vt){let Rt=n&8?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?f.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;Rt&&td(c,vt.nextType,d,Rt)}if(vt||x)return z?G4(vt&&vt.yieldType):vt&&vt.yieldType}let U=a,re=!1,be=!1;if(n&4){if(U.flags&1048576){let vt=a.types,Rt=tr(vt,sn=>!(sn.flags&402653316));Rt!==vt&&(U=ii(Rt,2))}else U.flags&402653316&&(U=Vr);if(be=U!==a,be&&(ue<1&&d&&(qe(d,f.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),re=!0),U.flags&131072))return z?G4(ke):ke}if(!gy(U)){if(d&&!re){let vt=!!(n&4)&&!be,[Rt,sn]=Je(vt,L);B0(d,sn&&!!uM(U),Rt,jn(U))}return be?z?G4(ke):ke:void 0}let ge=r1(U,Dt);if(be&&ge)return ge.flags&402653316&&!V.noUncheckedIndexedAccess?ke:ii(z?[ge,ke,Oe]:[ge,ke],2);return n&128?G4(ge):ge;function Je(vt,Rt){var sn;return Rt?vt?[f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:cbe(n,0,a,void 0)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:nht((sn=a.symbol)==null?void 0:sn.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:vt?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function nht(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function cbe(n,a,c,d){if(Ct(c))return;let _=cte(c,n,d);return _&&_[iIe(a)]}function by(n=Vr,a=Vr,c=mn){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){let d=fm([n,a,c]),_=Ni.get(d);return _||(_={yieldType:n,returnType:a,nextType:c},Ni.set(d,_)),_}return{yieldType:n,returnType:a,nextType:c}}function q3e(n){let a,c,d;for(let _ of n)if(!(_===void 0||_===Lr)){if(_===$o)return $o;a=In(a,_.yieldType),c=In(c,_.returnType),d=In(d,_.nextType)}return a||c||d?by(a&&ii(a),c&&ii(c),d&&Ea(d)):Lr}function lte(n,a){return n[a]}function xg(n,a,c){return n[a]=c}function cte(n,a,c){var d,_;if(Ct(n))return $o;if(!(n.flags&1048576)){let U=c?{errors:void 0}:void 0,re=J3e(n,a,c,U);if(re===Lr){if(c){let be=fbe(c,n,!!(a&2));U?.errors&&ka(be,...U.errors)}return}else if((d=U?.errors)!=null&&d.length)for(let be of U.errors)ns.add(be);return re}let y=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=lte(n,y);if(x)return x===Lr?void 0:x;let L;for(let U of n.types){let re=c?{errors:void 0}:void 0,be=J3e(U,a,c,re);if(be===Lr){if(c){let ge=fbe(c,n,!!(a&2));re?.errors&&ka(ge,...re.errors)}xg(n,y,Lr);return}else if((_=re?.errors)!=null&&_.length)for(let ge of re.errors)ns.add(ge);L=In(L,be)}let z=L?q3e(L):Lr;return xg(n,y,z),z===Lr?void 0:z}function ube(n,a){if(n===Lr)return Lr;if(n===$o)return $o;let{yieldType:c,returnType:d,nextType:_}=n;return a&&Vge(!0),by(rA(c,a)||j,rA(d,a)||j,_)}function J3e(n,a,c,d){if(Ct(n))return $o;let _=!1;if(a&2){let y=dbe(n,js)||X3e(n,js);if(y)if(y===Lr&&c)_=!0;else return a&8?ube(y,c):y}if(a&1){let y=dbe(n,gc)||X3e(n,gc);if(y)if(y===Lr&&c)_=!0;else if(a&2){if(y!==Lr)return y=ube(y,c),_?y:xg(n,"iterationTypesOfAsyncIterable",y)}else return y}if(a&2){let y=pbe(n,js,c,d,_);if(y!==Lr)return y}if(a&1){let y=pbe(n,gc,c,d,_);if(y!==Lr)return a&2?(y=ube(y,c),_?y:xg(n,"iterationTypesOfAsyncIterable",y)):y}return Lr}function dbe(n,a){return lte(n,a.iterableCacheKey)}function K3e(n,a){let c=dbe(n,a)||pbe(n,a,void 0,void 0,!1);return c===Lr?Uc:c}function X3e(n,a){let c;if(Mb(n,c=a.getGlobalIterableType(!1))||Mb(n,c=a.getGlobalIterableIteratorType(!1))){let[d]=qs(n),{returnType:_,nextType:y}=K3e(c,a);return xg(n,a.iterableCacheKey,by(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,y))}if(Mb(n,a.getGlobalGeneratorType(!1))){let[d,_,y]=qs(n);return xg(n,a.iterableCacheKey,by(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,y))}}function Y3e(n){let a=POe(!1),c=a&&Xe(pr(a),ml(n));return c&&nm(c)?rm(c):`__@${n}`}function pbe(n,a,c,d,_){let y=ba(n,Y3e(a.iteratorSymbolName)),x=y&&!(y.flags&16777216)?pr(y):void 0;if(Ct(x))return _?$o:xg(n,a.iterableCacheKey,$o);let L=x?Yo(x,0):void 0;if(!Et(L))return _?Lr:xg(n,a.iterableCacheKey,Lr);let z=Ea(Ft(L,ms)),U=$3e(z,a,c,d,_)??Lr;return _?U:xg(n,a.iterableCacheKey,U)}function fbe(n,a,c){let d=c?f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,_=!!uM(a)||!c&&Uk(n.parent)&&n.parent.expression===n&&UZ(!1)!==Wo&&Sa(a,UZ(!1));return B0(n,_,d,jn(a))}function rht(n,a,c,d){return $3e(n,a,c,d,!1)}function $3e(n,a,c,d,_){if(Ct(n))return $o;let y=Q3e(n,a)||iht(n,a);return y===Lr&&c&&(y=void 0,_=!0),y??(y=e7e(n,a,c,d,_)),y===Lr?void 0:y}function Q3e(n,a){return lte(n,a.iteratorCacheKey)}function iht(n,a){let c=a.getGlobalIterableIteratorType(!1);if(Mb(n,c)){let[d]=qs(n),_=Q3e(c,a)||e7e(c,a,void 0,void 0,!1),{returnType:y,nextType:x}=_===Lr?Uc:_;return xg(n,a.iteratorCacheKey,by(d,y,x))}if(Mb(n,a.getGlobalIteratorType(!1))||Mb(n,a.getGlobalGeneratorType(!1))){let[d,_,y]=qs(n);return xg(n,a.iteratorCacheKey,by(d,_,y))}}function Z3e(n,a){let c=Xe(n,"done")||Kt;return Sa(a===0?Kt:On,c)}function oht(n){return Z3e(n,0)}function aht(n){return Z3e(n,1)}function sht(n){if(Ct(n))return $o;let a=lte(n,"iterationTypesOfIteratorResult");if(a)return a;if(Mb(n,qst(!1))){let x=qs(n)[0];return xg(n,"iterationTypesOfIteratorResult",by(x,void 0,void 0))}if(Mb(n,Jst(!1))){let x=qs(n)[0];return xg(n,"iterationTypesOfIteratorResult",by(void 0,x,void 0))}let c=uc(n,oht),d=c!==Vr?Xe(c,"value"):void 0,_=uc(n,aht),y=_!==Vr?Xe(_,"value"):void 0;return!d&&!y?xg(n,"iterationTypesOfIteratorResult",Lr):xg(n,"iterationTypesOfIteratorResult",by(d,y||or,void 0))}function mbe(n,a,c,d,_){var y,x,L,z;let U=ba(n,c);if(!U&&c!=="next")return;let re=U&&!(c==="next"&&U.flags&16777216)?c==="next"?pr(U):_m(pr(U),2097152):void 0;if(Ct(re))return c==="next"?$o:El;let be=re?Yo(re,0):et;if(be.length===0){if(d){let cn=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;_?(_.errors??(_.errors=[]),_.errors.push(Or(d,cn,c))):qe(d,cn,c)}return c==="next"?Lr:void 0}if(re?.symbol&&be.length===1){let cn=a.getGlobalGeneratorType(!1),Fn=a.getGlobalIteratorType(!1),kn=((x=(y=cn.symbol)==null?void 0:y.members)==null?void 0:x.get(c))===re.symbol,Zn=!kn&&((z=(L=Fn.symbol)==null?void 0:L.members)==null?void 0:z.get(c))===re.symbol;if(kn||Zn){let Hn=kn?cn:Fn,{mapper:er}=re;return by(zb(Hn.typeParameters[0],er),zb(Hn.typeParameters[1],er),c==="next"?zb(Hn.typeParameters[2],er):void 0)}}let ge,Je;for(let cn of be)c!=="throw"&&Et(cn.parameters)&&(ge=In(ge,v_(cn,0))),Je=In(Je,ms(cn));let vt,Rt;if(c!=="throw"){let cn=ge?ii(ge):mn;if(c==="next")Rt=cn;else if(c==="return"){let Fn=a.resolveIterationType(cn,d)||j;vt=In(vt,Fn)}}let sn,un=Je?Ea(Je):Vr,sr=a.resolveIterationType(un,d)||j,Ln=sht(sr);return Ln===Lr?(d&&(_?(_.errors??(_.errors=[]),_.errors.push(Or(d,a.mustHaveAValueDiagnostic,c))):qe(d,a.mustHaveAValueDiagnostic,c)),sn=j,vt=In(vt,j)):(sn=Ln.yieldType,vt=In(vt,Ln.returnType)),by(sn,ii(vt),Rt)}function e7e(n,a,c,d,_){let y=q3e([mbe(n,a,"next",c,d),mbe(n,a,"return",c,d),mbe(n,a,"throw",c,d)]);return _?y:xg(n,a.iteratorCacheKey,y)}function HE(n,a,c){if(Ct(a))return;let d=t7e(a,c);return d&&d[iIe(n)]}function t7e(n,a){if(Ct(n))return $o;let c=a?2:1,d=a?js:gc;return cte(n,c,void 0)||rht(n,d,void 0,void 0)}function lht(n){Ev(n)||Evt(n)}function EB(n,a){let c=!!(a&1),d=!!(a&2);if(c){let _=HE(1,n,d);return _?d?vy(dM(_)):_:ht}return d?vy(n)||ht:n}function n7e(n,a){let c=EB(a,Gc(n));return!!(c&&(Dl(c,16384)||c.flags&32769))}function cht(n){if(Ev(n))return;let a=Y6(n);if(a&&Il(a)){hu(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){hu(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}let c=pm(a),d=ms(c),_=Gc(a);if(Y||n.expression||d.flags&131072){let y=n.expression?ec(n.expression):Oe;if(a.kind===178)n.expression&&qe(n,f.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!Gb(y,d,n,n.expression)&&qe(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(hD(a)){let x=EB(d,_)??d,L=_&2?Q4(y,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y;x&&Gb(L,x,n,n.expression)}}else a.kind!==176&&V.noImplicitReturns&&!n7e(a,d)&&qe(n,f.Not_all_code_paths_return_a_value)}function uht(n){Ev(n)||n.flags&65536&&hu(n,f.with_statements_are_not_allowed_in_an_async_function_block),go(n.expression);let a=Vn(n);if(!qE(a)){let c=hh(a,n.pos).start,d=n.statement.pos;JE(a,c,d-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function dht(n){Ev(n);let a,c=!1,d=go(n.expression);Ke(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(bn(_,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(y(_)),Ke(_.statements,Da),V.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&jz(_.fallthroughFlowNode)&&qe(_,f.Fallthrough_case_in_switch);function y(x){return()=>{let L=go(x.expression);Kye(d,L)||D4e(L,d,x.expression,void 0)}}}),n.caseBlock.locals&&qb(n.caseBlock)}function pht(n){Ev(n)||zn(n.parent,a=>ea(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(bn(n.label,f.Duplicate_label_0,pc(n.label)),!0):!1),Da(n.statement)}function fht(n){Ev(n)||Ve(n.expression)&&!n.expression.escapedText&&Ovt(n,f.Line_break_not_permitted_here),n.expression&&go(n.expression)}function mht(n){Ev(n),ate(n.tryBlock);let a=n.catchClause;if(a){if(a.variableDeclaration){let c=a.variableDeclaration;yB(c);let d=yu(c);if(d){let _=Ii(d);_&&!(_.flags&3)&&hu(d,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)hu(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{let _=a.block.locals;_&&mh(a.locals,y=>{let x=_.get(y);x?.valueDeclaration&&x.flags&2&&bn(x.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Hi(y))})}}ate(a.block)}n.finallyBlock&&ate(n.finallyBlock)}function ute(n,a,c){let d=hd(n);if(d.length===0)return;for(let y of kb(n))c&&y.flags&4194304||r7e(n,y,bD(y,8576,!0),Pb(y));let _=a.valueDeclaration;if(_&&pi(_)){for(let y of _.members)if(!sa(y)&&!mD(y)){let x=Rr(y);r7e(n,x,Ru(y.name.expression),Pb(x))}}if(d.length>1)for(let y of d)_ht(n,y)}function r7e(n,a,c,d){let _=a.valueDeclaration,y=Oo(_);if(y&&Xi(y))return;let x=Age(n,c),L=Wr(n)&2?dl(n.symbol,264):void 0,z=_&&_.kind===226||y&&y.kind===167?_:void 0,U=Cd(a)===n.symbol?_:void 0;for(let re of x){let be=re.declaration&&Cd(Rr(re.declaration))===n.symbol?re.declaration:void 0,ge=U||be||(L&&!Et(Np(n),Je=>!!n1(Je,a.escapedName)&&!!r1(Je,re.keyType))?L:void 0);if(ge&&!Sa(d,re.type)){let Je=pT(ge,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ai(a),jn(d),jn(re.keyType),jn(re.type));z&&ge!==z&&ka(Je,Or(z,f._0_is_declared_here,Ai(a))),ns.add(Je)}}}function _ht(n,a){let c=a.declaration,d=Age(n,a.keyType),_=Wr(n)&2?dl(n.symbol,264):void 0,y=c&&Cd(Rr(c))===n.symbol?c:void 0;for(let x of d){if(x===a)continue;let L=x.declaration&&Cd(Rr(x.declaration))===n.symbol?x.declaration:void 0,z=y||L||(_&&!Et(Np(n),U=>!!Ag(U,a.keyType)&&!!r1(U,x.keyType))?_:void 0);z&&!Sa(a.type,x.type)&&qe(z,f._0_index_type_1_is_not_assignable_to_2_index_type_3,jn(a.keyType),jn(a.type),jn(x.keyType),jn(x.type))}}function mM(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":qe(n,a,n.escapedText)}}function hht(n){ue>=1&&n.escapedText==="Object"&&(G<5||Vn(n).impliedNodeFormat===1)&&qe(n,f.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,tC[G])}function ght(n){let a=tr(o0(n),n_);if(!De(a))return;let c=cr(n),d=new Set,_=new Set;if(Ke(n.parameters,({name:x},L)=>{Ve(x)&&d.add(x.escapedText),ta(x)&&_.add(L)}),xge(n)){let x=a.length-1,L=a[x];c&&L&&Ve(L.name)&&L.typeExpression&&L.typeExpression.type&&!d.has(L.name.escapedText)&&!_.has(x)&&!jf(Ii(L.typeExpression.type))&&qe(L.name,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Sr(L.name))}else Ke(a,({name:x,isNameFirst:L},z)=>{_.has(z)||Ve(x)&&d.has(x.escapedText)||(Ad(x)?c&&qe(x,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,fp(x),fp(x.left)):L||_u(c,x,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Sr(x)))})}function SB(n){let a=!1;if(n)for(let d=0;d{d.default?(a=!0,vht(d.default,n,_)):a&&qe(d,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let y=0;y<_;y++)n[y].symbol===d.symbol&&qe(d.name,f.Duplicate_identifier_0,Ds(d.name))}}}function vht(n,a,c){d(n);function d(_){if(_.kind===183){let y=Oge(_);if(y.flags&262144)for(let x=c;xd)return!1;for(let z=0;zfc(c)&&ad(c))&&bn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!ei(n,2048)&&hu(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),s7e(n),Ke(n.members,Da),qb(n)}function s7e(n){avt(n),hB(n),pM(n,n.name),SB(Py(n)),Y4(n);let a=Rr(n),c=Qs(a),d=qp(c),_=pr(a);i7e(a),rte(a),Fmt(n),!!(n.flags&33554432)||Wmt(n);let x=x_(n);if(x){Ke(x.typeArguments,Da),ue<2&&Rc(x.parent,1);let U=M1(n);U&&U!==x&&go(U.expression);let re=Np(c);re.length&&r(()=>{let be=re[0],ge=Cp(c),Je=Md(ge);if(Aht(Je,x),Da(x.expression),Et(x.typeArguments)){Ke(x.typeArguments,Da);for(let Rt of ed(Je,x.typeArguments,x))if(!D3e(x,Rt.typeParameters))break}let vt=qp(be,c.thisType);if(td(d,vt,void 0)?td(_,S4e(Je),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):u7e(n,d,vt,f.Class_0_incorrectly_extends_base_class_1),ge.flags&8650752&&(Li(_)?Yo(ge,1).some(sn=>sn.flags&4)&&!ei(n,64)&&qe(n.name||n,f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):qe(n.name||n,f.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Je.symbol&&Je.symbol.flags&32)&&!(ge.flags&8650752)){let Rt=Fh(Je,x.typeArguments,x);Ke(Rt,sn=>!th(sn.declaration)&&!hv(ms(sn),be))&&qe(x.expression,f.Base_constructors_must_all_have_the_same_return_type)}Rht(c,be)})}Tht(n,c,d,_);let L=_R(n);if(L)for(let U of L)(!zl(U.expression)||Hu(U.expression))&&qe(U.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),tbe(U),r(z(U));r(()=>{ute(c,a),ute(_,a,!0),Qye(n),Nht(n)});function z(U){return()=>{let re=__(Ii(U));if(!qt(re))if(lz(re)){let be=re.symbol&&re.symbol.flags&32?f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:f.Class_0_incorrectly_implements_interface_1,ge=qp(re,c.thisType);td(d,ge,void 0)||u7e(n,d,ge,be)}else qe(U,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Tht(n,a,c,d){let y=x_(n)&&Np(a),x=y?.length?qp(Ha(y),a.thisType):void 0,L=Cp(a);for(let z of n.members)oU(z)||(Pl(z)&&Ke(z.parameters,U=>{pp(U,z)&&l7e(n,d,L,x,a,c,U,!0)}),l7e(n,d,L,x,a,c,z,!1))}function l7e(n,a,c,d,_,y,x,L,z=!0){let U=x.name&&Um(x.name)||Um(x);return U?c7e(n,a,c,d,_,y,x3(x),F1(x),sa(x),L,bl(U),z?x:void 0):0}function c7e(n,a,c,d,_,y,x,L,z,U,re,be){let ge=cr(n),Je=!!(n.flags&33554432);if(d&&(x||V.noImplicitOverride)){let vt=ml(re),Rt=z?a:y,sn=z?c:d,un=ba(Rt,vt),sr=ba(sn,vt),Ln=jn(d);if(un&&!sr&&x){if(be){let cn=v6e(re,sn);cn?qe(be,ge?f.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:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Ln,Ai(cn)):qe(be,ge?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Ln)}return 2}else if(un&&sr?.declarations&&V.noImplicitOverride&&!Je){let cn=Et(sr.declarations,F1);if(x)return 0;if(cn){if(L&&cn)return be&&qe(be,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Ln),1}else{if(be){let Fn=U?ge?f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ge?f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;qe(be,Fn,Ln)}return 1}}}else if(x){if(be){let vt=jn(_);qe(be,ge?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,vt)}return 2}return 0}function u7e(n,a,c,d){let _=!1;for(let y of n.members){if(sa(y))continue;let x=y.name&&Um(y.name)||Um(y);if(x){let L=ba(a,x.escapedName),z=ba(c,x.escapedName);if(L&&z){let U=()=>Uo(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ai(x),jn(a),jn(c));td(pr(L),pr(z),y.name||y,void 0,U)||(_=!0)}}}_||td(a,c,n.name||n,d)}function Aht(n,a){let c=Yo(n,1);if(c.length){let d=c[0].declaration;if(d&&_p(d,2)){let _=Bg(n.symbol);bbe(a,_)||qe(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Up(n.symbol))}}}function Iht(n,a,c){if(!a.name)return 0;let d=Rr(n),_=Qs(d),y=qp(_),x=pr(d),z=x_(n)&&Np(_),U=z?.length?qp(Ha(z),_.thisType):void 0,re=Cp(_),be=a.parent?x3(a):ei(a,16);return c7e(n,x,re,U,_,y,be,F1(a),sa(a),!1,bl(c))}function MD(n){return Al(n)&1?n.links.target:n}function xht(n){return tr(n.declarations,a=>a.kind===263||a.kind===264)}function Rht(n,a){var c,d,_,y;let x=ys(a),L;e:for(let z of x){let U=MD(z);if(U.flags&4194304)continue;let re=n1(n,U.escapedName);if(!re)continue;let be=MD(re),ge=If(U);if(C.assert(!!be,"derived should point to something, even if it is the base class' declaration."),be===U){let Je=Bg(n.symbol);if(ge&64&&(!Je||!ei(Je,64))){for(let vt of Np(n)){if(vt===a)continue;let Rt=n1(vt,U.escapedName),sn=Rt&&MD(Rt);if(sn&&sn!==U)continue e}L||(L=qe(Je,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,jn(n),jn(a))),Je.kind===231?ka(L,Or(z.valueDeclaration??(z.declarations&&Ha(z.declarations))??Je,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ai(z),jn(a))):ka(L,Or(z.valueDeclaration??(z.declarations&&Ha(z.declarations))??Je,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,jn(n),Ai(z),jn(a)))}}else{let Je=If(be);if(ge&2||Je&2)continue;let vt,Rt=U.flags&98308,sn=be.flags&98308;if(Rt&&sn){if((Al(U)&6?(c=U.declarations)!=null&&c.some(Ln=>d7e(Ln,ge)):(d=U.declarations)!=null&&d.every(Ln=>d7e(Ln,ge)))||Al(U)&262144||be.valueDeclaration&&_r(be.valueDeclaration))continue;let un=Rt!==4&&sn===4;if(un||Rt===4&&sn!==4){let Ln=un?f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;qe(Oo(be.valueDeclaration)||be.valueDeclaration,Ln,Ai(U),jn(a),jn(n))}else if(he){let Ln=(_=be.declarations)==null?void 0:_.find(cn=>cn.kind===172&&!cn.initializer);if(Ln&&!(be.flags&33554432)&&!(ge&64)&&!(Je&64)&&!((y=be.declarations)!=null&&y.some(cn=>!!(cn.flags&33554432)))){let cn=av(Bg(n.symbol)),Fn=Ln.name;if(Ln.exclamationToken||!cn||!Ve(Fn)||!Y||!f7e(Fn,n,cn)){let kn=f.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;qe(Oo(be.valueDeclaration)||be.valueDeclaration,kn,Ai(U),jn(a))}}}continue}else if(gye(U)){if(gye(be)||be.flags&4)continue;C.assert(!!(be.flags&98304)),vt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else U.flags&98304?vt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:vt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;qe(Oo(be.valueDeclaration)||be.valueDeclaration,vt,jn(a),Ai(U),jn(n))}}}function d7e(n,a){return a&64&&(!Jo(n)||!n.initializer)||fd(n.parent)}function Dht(n,a,c){if(!De(a))return c;let d=new Map;Ke(c,_=>{d.set(_.escapedName,_)});for(let _ of a){let y=ys(qp(_,n.thisType));for(let x of y){let L=d.get(x.escapedName);L&&x.parent===L.parent&&d.delete(x.escapedName)}}return Vo(d.values())}function Cht(n,a){let c=Np(n);if(c.length<2)return!0;let d=new Map;Ke(sge(n).declaredProperties,y=>{d.set(y.escapedName,{prop:y,containingType:n})});let _=!0;for(let y of c){let x=ys(qp(y,n.thisType));for(let L of x){let z=d.get(L.escapedName);if(!z)d.set(L.escapedName,{prop:L,containingType:y});else if(z.containingType!==n&&!Gct(z.prop,L)){_=!1;let re=jn(z.containingType),be=jn(y),ge=Uo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,Ai(L),re,be);ge=Uo(ge,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,jn(n),re,be),ns.add(Og(Vn(a),a,ge))}}}return _}function Nht(n){if(!Y||!Ne||n.flags&33554432)return;let a=av(n);for(let c of n.members)if(!(cd(c)&128)&&!sa(c)&&p7e(c)){let d=c.name;if(Ve(d)||Xi(d)||Za(d)){let _=pr(Rr(c));_.flags&3||XP(_)||(!a||!f7e(d,_,a))&&qe(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ds(d))}}}function p7e(n){return n.kind===172&&!F1(n)&&!n.exclamationToken&&!n.initializer}function Pht(n,a,c,d,_){for(let y of c)if(y.pos>=d&&y.pos<=_){let x=k.createPropertyAccessExpression(k.createThis(),n);qa(x.expression,x),qa(x,y),x.flowNode=y.returnFlowNode;let L=Hb(x,a,jb(a));if(!XP(L))return!0}return!1}function f7e(n,a,c){let d=Za(n)?k.createElementAccessExpression(k.createThis(),n.expression):k.createPropertyAccessExpression(k.createThis(),n);qa(d.expression,d),qa(d,c),d.flowNode=c.returnFlowNode;let _=Hb(d,a,jb(a));return!XP(_)}function Mht(n){Rg(n)||fvt(n),SB(n.typeParameters),r(()=>{mM(n.name,f.Interface_name_cannot_be_0),Y4(n);let a=Rr(n);i7e(a);let c=dl(a,264);if(n===c){let d=Qs(a),_=qp(d);if(Cht(d,n.name)){for(let y of Np(d))td(_,qp(y,d.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);ute(d,a)}}A3e(n)}),Ke(MC(n),a=>{(!zl(a.expression)||Hu(a.expression))&&qe(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),tbe(a)}),Ke(n.members,Da),r(()=>{Qye(n),qb(n)})}function Lht(n){Rg(n),mM(n.name,f.Type_alias_name_cannot_be_0),Y4(n),SB(n.typeParameters),n.type.kind===141?(!J5.has(n.name.escapedText)||De(n.typeParameters)!==1)&&qe(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Da(n.type),qb(n))}function m7e(n){let a=ti(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(let d of n.members){let _=kht(d,c);ti(d).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function kht(n,a){if(TL(n.name))qe(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{let c=Zx(n.name);sg(c)&&!oN(c)&&qe(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return wht(n);if(!(n.parent.flags&33554432&&!x1(n.parent))){if(a!==void 0)return a;qe(n.name,f.Enum_member_must_have_initializer)}}function wht(n){let a=x1(n.parent),c=n.initializer,d=_M(c,n);return d!==void 0?a&&typeof d=="number"&&!isFinite(d)&&qe(c,isNaN(d)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?qe(c,f.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?qe(c,f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):td(go(c),Dt,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),d}function _M(n,a){switch(n.kind){case 224:let c=_M(n.operand,a);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:let d=_M(n.left,a),_=_M(n.right,a);if(typeof d=="number"&&typeof _=="number")switch(n.operatorToken.kind){case 52:return d|_;case 51:return d&_;case 49:return d>>_;case 50:return d>>>_;case 48:return d<<_;case 53:return d^_;case 42:return d*_;case 44:return d/_;case 40:return d+_;case 41:return d-_;case 45:return d%_;case 43:return d**_}else if((typeof d=="string"||typeof d=="number")&&(typeof _=="string"||typeof _=="number")&&n.operatorToken.kind===40)return""+d+_;break;case 11:case 15:return n.text;case 228:return h7e(n,a);case 9:return Nbe(n),+n.text;case 217:return _M(n.expression,a);case 80:{let x=n;if(oN(x.escapedText)&&Us(x,111551,!0)===JP(x.escapedText,111551,void 0))return+x.escapedText}case 211:if(zl(n)){let x=Us(n,111551,!0);if(x){if(x.flags&8)return a?_7e(n,x,a):kD(x.valueDeclaration);if(iM(x)){let L=x.valueDeclaration;if(L&&Oi(L)&&!L.type&&L.initializer&&(!a||L!==a&&nv(L,a)))return _M(L.initializer,L)}}}break;case 212:let y=n.expression;if(zl(y)&&us(n.argumentExpression)){let x=Us(y,111551,!0);if(x&&x.flags&384){let L=ml(n.argumentExpression.text),z=x.exports.get(L);if(z)return a?_7e(n,z,a):kD(z.valueDeclaration)}}break}}function _7e(n,a,c){let d=a.valueDeclaration;if(!d||d===c){qe(n,f.Property_0_is_used_before_being_assigned,Ai(a));return}return nv(d,c)?kD(d):(qe(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function h7e(n,a){let c=n.head.text;for(let d of n.templateSpans){let _=_M(d.expression,a);if(_===void 0)return;c+=_,c+=d.literal.text}return c}function Oht(n){r(()=>Fht(n))}function Fht(n){Rg(n),pM(n,n.name),Y4(n),n.members.forEach(Wht),m7e(n);let a=Rr(n),c=dl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){let _=x1(n);Ke(a.declarations,y=>{v0(y)&&x1(y)!==_&&qe(Oo(y),f.Enum_declarations_must_all_be_const_or_non_const)})}let d=!1;Ke(a.declarations,_=>{if(_.kind!==266)return!1;let y=_;if(!y.members.length)return!1;let x=y.members[0];x.initializer||(d?qe(x.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):d=!0)})}}function Wht(n){Xi(n.name)&&qe(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&go(n.initializer)}function zht(n){let a=n.declarations;if(a){for(let c of a)if((c.kind===263||c.kind===262&&Xf(c.body))&&!(c.flags&33554432))return c}}function Bht(n,a){let c=_h(n),d=_h(a);return Nh(c)?Nh(d):Nh(d)?!1:c===d}function Ght(n){n.body&&(Da(n.body),I_(n)||qb(n)),r(a);function a(){var c,d;let _=I_(n),y=n.flags&33554432;_&&!y&&qe(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let x=Lu(n),L=x?f.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:f.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(TB(n,L))return;Rg(n)||!y&&n.name.kind===11&&bn(n.name,f.Only_ambient_modules_can_use_quoted_names),Ve(n.name)&&pM(n,n.name),Y4(n);let z=Rr(n);if(z.flags&512&&!y&&Oq(n,V1(V))){if(im(V)&&!Vn(n).externalModuleIndicator&&qe(n.name,f.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,Qe),((c=z.declarations)==null?void 0:c.length)>1){let U=zht(z);U&&(Vn(n)!==Vn(U)?qe(n.name,f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.posre.kind===95);U&&qe(U,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(I1(n)){if((_||Rr(n).flags&33554432)&&n.body)for(let re of n.body.statements)_be(re,_)}else Nh(n.parent)?_?qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Yc(Zf(n.name))&&qe(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):_?qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):qe(n.name,f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function _be(n,a){switch(n.kind){case 243:for(let d of n.declarationList.declarations)_be(d,a);break;case 277:case 278:hu(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:hu(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let c=n.name;if(ta(c)){for(let d of c.elements)_be(d,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function Vht(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(tg(n.expression)&&!Xi(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function hbe(n){let a=uR(n);if(!a||Fl(a))return!1;if(!Na(a))return qe(a,f.String_literal_expected),!1;let c=n.parent.kind===268&&Lu(n.parent.parent);if(n.parent.kind!==312&&!c)return qe(a,n.kind===278?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&Yc(a.text)&&!xb(n))return qe(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!tu(n)&&n.attributes){let d=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions,_=!1;for(let y of n.attributes.elements)Na(y.value)||(_=!0,qe(y.value,d));return!_}return!0}function dte(n){var a,c,d,_;let y=Rr(n),x=Fc(y);if(x!==ft){if(y=is(y.exportSymbol||y),cr(n)&&!(x.flags&111551)&&!a0(n)){let U=IA(n)?n.propertyName||n.name:od(n)?n.name:n;if(C.assert(n.kind!==280),n.kind===281){let re=qe(U,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),be=(c=(a=Vn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(be===x){let ge=(d=be.declarations)==null?void 0:d.find(Kx);ge&&ka(re,Or(ge,f._0_is_automatically_exported_here,Hi(be.escapedName)))}}else{C.assert(n.kind!==260);let re=zn(n,Xm(Lc,tu)),be=(re&&((_=cR(re))==null?void 0:_.text))??"...",ge=Hi(Ve(U)?U.escapedText:y.escapedName);qe(U,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,ge,`import("${be}").${ge}`)}return}let L=Au(x),z=(y.flags&1160127?111551:0)|(y.flags&788968?788968:0)|(y.flags&1920?1920:0);if(L&z){let U=n.kind===281?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;qe(n,U,Ai(y))}else n.kind!==281&&V.isolatedModules&&!zn(n,a0)&&y.flags&1160127&&qe(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ai(y),Qe);if(im(V)&&!a0(n)&&!(n.flags&33554432)){let U=wf(y),re=!(L&111551);if(re||U)switch(n.kind){case 273:case 276:case 271:{if(V.preserveValueImports||V.verbatimModuleSyntax){C.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");let be=V.verbatimModuleSyntax&&sR(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:re?V.verbatimModuleSyntax?f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:V.verbatimModuleSyntax?f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,ge=Sr(n.kind===276&&n.propertyName||n.name);_g(qe(n,be,ge),re?void 0:U,ge)}re&&n.kind===271&&_p(n,32)&&qe(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Qe);break}case 281:if(V.verbatimModuleSyntax||Vn(U)!==Vn(n)){let be=Sr(n.propertyName||n.name),ge=re?qe(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Qe):qe(n,f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,be,Qe);_g(ge,re?void 0:U,be);break}}V.verbatimModuleSyntax&&n.kind!==271&&!cr(n)&&(G===1||Vn(n).impliedNodeFormat===1)&&qe(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(tp(n)){let U=gbe(y,n);fb(U)&&U.declarations&&sy(n,U.declarations,U.escapedName)}}}function gbe(n,a){if(!(n.flags&2097152)||fb(n)||!Fm(n))return n;let c=Fc(n);if(c===ft)return c;for(;n.flags&2097152;){let d=dye(n);if(d){if(d===c)break;if(d.declarations&&De(d.declarations))if(fb(d)){sy(a,d.declarations,d.escapedName);break}else{if(n===c)break;n=d}}else break}return c}function pte(n){pM(n,n.name),dte(n),n.kind===276&&Sr(n.propertyName||n.name)==="default"&&vh(V)&&G!==4&&(G<5||Vn(n).impliedNodeFormat===1)&&Rc(n,131072)}function g7e(n){var a;let c=n.attributes;if(c){let d=zge(!0);d!==Pa&&td(ce(c),Oz(d,32768),c);let _=IJ(n),y=s2(c,_?bn:void 0),x=n.attributes.token===118;if(_&&y)return;if((G===199&&n.moduleSpecifier&&io(n.moduleSpecifier))!==99&&G!==99&&G!==200){let z=x?G===199?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:G===199?f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return bn(c,z)}if(Lc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return bn(c,x?f.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:f.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(y)return bn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function jht(n){return vd(ec(n.value))}function Uht(n){if(!TB(n,cr(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Rg(n)&&I3(n)&&hu(n,f.An_import_declaration_cannot_have_modifiers),hbe(n)){let a=n.importClause;a&&!Wvt(a)&&(a.name&&pte(a),a.namedBindings&&(a.namedBindings.kind===274?(pte(a.namedBindings),G!==4&&(G<5||Vn(n).impliedNodeFormat===1)&&vh(V)&&Rc(n,65536)):_d(n,n.moduleSpecifier)&&Ke(a.namedBindings.elements,pte)))}g7e(n)}}function Hht(n){if(!TB(n,cr(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Rg(n),sR(n)||hbe(n)))if(pte(n),ei(n,32)&&yb(n),n.moduleReference.kind!==283){let a=Fc(Rr(n));if(a!==ft){let c=Au(a);if(c&111551){let d=Bp(n.moduleReference);Us(d,112575).flags&1920||qe(d,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ds(d))}c&788968&&mM(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&bn(n,f.An_import_alias_cannot_use_import_type)}else G>=5&&G!==200&&Vn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&bn(n,f.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)}function qht(n){if(!TB(n,cr(n)?f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Rg(n)&&toe(n)&&hu(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&Df(n.exportClause)&&De(n.exportClause.elements)&&ue===0&&Rc(n,4194304),Jht(n),!n.moduleSpecifier||hbe(n))if(n.exportClause&&!Sh(n.exportClause)){Ke(n.exportClause.elements,Zht);let a=n.parent.kind===268&&Lu(n.parent.parent),c=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!c&&qe(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{let a=_d(n,n.moduleSpecifier);a&&uy(a)?qe(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ai(a)):n.exportClause&&dte(n.exportClause),G!==4&&(G<5||Vn(n).impliedNodeFormat===1)&&(n.exportClause?vh(V)&&Rc(n,65536):Rc(n,32768))}g7e(n)}}function Jht(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?X7e(n.exportClause):!1}function TB(n,a){let c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||hu(n,a),!c}function Kht(n){return d3(n,a=>!!Rr(a).isReferenced)}function Xht(n){return d3(n,a=>!!$i(Rr(a)).constEnumReferenced)}function Yht(n){return Lc(n)&&n.importClause&&!n.importClause.isTypeOnly&&Kht(n.importClause)&&!vte(n.importClause,!0)&&!Xht(n.importClause)}function $ht(n){return tu(n)&&Th(n.moduleReference)&&!n.isTypeOnly&&Rr(n).isReferenced&&!vte(n,!1)&&!$i(Rr(n)).constEnumReferenced}function Qht(n){if(gt)for(let a of n.statements)(Yht(a)||$ht(a))&&qe(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Zht(n){if(dte(n),xf(V)&&FP(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)vh(V)&&G!==4&&(G<5||Vn(n).impliedNodeFormat===1)&&Sr(n.propertyName||n.name)==="default"&&Rc(n,131072);else{let a=n.propertyName||n.name,c=vl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===je||c===at||c.declarations&&Nh(Q(c.declarations[0]))))qe(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Sr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&yb(n);let d=c&&(c.flags&2097152?Fc(c):c);(!d||Au(d)&111551)&&ec(n.propertyName||n.name)}}}function egt(n){let a=n.isExportEquals?f.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(TB(n,a))return;let c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!Lu(c)){n.isExportEquals?qe(n,f.An_export_assignment_cannot_be_used_in_a_namespace):qe(n,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Rg(n)&&I3(n)&&hu(n,f.An_export_assignment_cannot_have_modifiers);let d=yu(n);d&&td(ec(n.expression),Ii(d),n.expression);let _=!n.isExportEquals&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&(G===1||Vn(n).impliedNodeFormat===1);if(n.expression.kind===80){let y=n.expression,x=mf(Us(y,-1,!0,!0,n));if(x){let L=wf(x,111551);if(Nee(x,y),Au(x)&111551?(ec(y),!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&L&&qe(y,n.isExportEquals?f.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:f.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Sr(y))):!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&qe(y,n.isExportEquals?f.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:f.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Sr(y)),!_&&!(n.flags&33554432)&&im(V)&&!(x.flags&111551)){let z=Au(x,!1,!0);x.flags&2097152&&z&788968&&!(z&111551)&&(!L||Vn(L)!==Vn(n))?qe(y,n.isExportEquals?f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Sr(y),Qe):L&&Vn(L)!==Vn(n)&&_g(qe(y,n.isExportEquals?f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Sr(y),Qe),L,Sr(y))}}else ec(y);xf(V)&&FP(y,!0)}else ec(n.expression);_&&qe(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),v7e(c),n.flags&33554432&&!zl(n.expression)&&bn(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(G>=5&&G!==200&&(n.flags&33554432&&Vn(n).impliedNodeFormat===99||!(n.flags&33554432)&&Vn(n).impliedNodeFormat!==1)?bn(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):G===4&&!(n.flags&33554432)&&bn(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function tgt(n){return Bc(n.exports,(a,c)=>c!=="export=")}function v7e(n){let a=Rr(n),c=$i(a);if(!c.exportsChecked){let d=a.exports.get("export=");if(d&&tgt(a)){let y=Fm(d)||d.valueDeclaration;y&&!xb(y)&&!cr(y)&&qe(y,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let _=Mh(a);_&&_.forEach(({declarations:y,flags:x},L)=>{if(L==="__export"||x&1920)return;let z=au(y,w8(oIe,O8(fd)));if(!(x&524288&&z<=2)&&z>1&&!fte(y))for(let U of y)nIe(U)&&ns.add(Or(U,f.Cannot_redeclare_exported_variable_0,Hi(L)))}),c.exportsChecked=!0}}function fte(n){return n&&n.length>1&&n.every(a=>cr(a)&&ks(a)&&(yS(a.expression)||tg(a.expression)))}function Da(n){if(n){let a=N;N=n,I=0,ngt(n),N=a}}function ngt(n){qL(n)&&Ke(n.jsDoc,({comment:c,tags:d})=>{y7e(c),Ke(d,_=>{y7e(_.comment),cr(n)&&Da(_)})});let a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&HL(n)&&n.flowNode&&!jz(n.flowNode)&&_u(V.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return E3e(n);case 169:return S3e(n);case 172:return I3e(n);case 171:return zmt(n);case 185:case 184:case 179:case 180:case 181:return X4(n);case 174:case 173:return Bmt(n);case 175:return Gmt(n);case 176:return Vmt(n);case 177:case 178:return R3e(n);case 183:return tbe(n);case 182:return wmt(n);case 186:return Kmt(n);case 187:return Xmt(n);case 188:return Ymt(n);case 189:return $mt(n);case 192:case 193:return Qmt(n);case 196:case 190:case 191:return Da(n.type);case 197:return n_t(n);case 198:return r_t(n);case 194:return i_t(n);case 195:return o_t(n);case 203:return a_t(n);case 205:return s_t(n);case 202:return l_t(n);case 335:return R_t(n);case 336:return x_t(n);case 353:case 345:case 347:return g_t(n);case 352:return v_t(n);case 351:return y_t(n);case 331:case 332:case 333:return E_t(n);case 348:return S_t(n);case 355:return T_t(n);case 324:A_t(n);case 322:case 321:case 319:case 320:case 329:b7e(n),Ho(n,Da);return;case 325:rgt(n);return;case 316:return Da(n.type);case 340:case 342:case 341:return D_t(n);case 357:return b_t(n);case 350:return I_t(n);case 199:return Zmt(n);case 200:return e_t(n);case 262:return h_t(n);case 241:case 268:return ate(n);case 243:return q_t(n);case 244:return J_t(n);case 245:return K_t(n);case 246:return $_t(n);case 247:return Q_t(n);case 248:return Z_t(n);case 249:return tht(n);case 250:return eht(n);case 251:case 252:return lht(n);case 253:return cht(n);case 254:return uht(n);case 255:return dht(n);case 256:return pht(n);case 257:return fht(n);case 258:return mht(n);case 260:return U_t(n);case 208:return H_t(n);case 263:return Sht(n);case 264:return Mht(n);case 265:return Lht(n);case 266:return Oht(n);case 267:return Ght(n);case 272:return Uht(n);case 271:return Hht(n);case 278:return qht(n);case 277:return egt(n);case 242:case 259:Ev(n);return;case 282:return Umt(n)}}function y7e(n){Do(n)&&Ke(n,a=>{CA(a)&&Da(a)})}function b7e(n){if(!cr(n))if(n5(n)||VR(n)){let a=ma(n5(n)?54:58),c=n.postfix?f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,d=n.type,_=Ii(d);bn(n,c,a,jn(VR(n)&&!(_===Vr||_===or)?ii(In([_,Oe],n.postfix?void 0:pe)):_))}else bn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function rgt(n){b7e(n),Da(n.type);let{parent:a}=n;if(Co(a)&&jR(a.parent)){Ya(a.parent.parameters)!==a&&qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}Z1(a)||qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let c=n.parent.parent;if(!n_(c)){qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let d=JL(c);if(!d)return;let _=u0(c);(!_||Ya(_.parameters).symbol!==d)&&qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function igt(n){let a=Ii(n.type),{parent:c}=n,d=n.parent.parent;if(Z1(n.parent)&&n_(d)){let _=u0(d),y=xH(d.parent.parent);if(_||y){let x=Zs(y?d.parent.parent.typeExpression.parameters:_.parameters),L=JL(d);if(!x||L&&x.symbol===L&&$h(x))return Gu(a)}}return Co(c)&&jR(c.parent)?Gu(a):lp(a)}function yx(n){let a=Vn(n),c=ti(a);c.flags&1?C.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function ogt(n){let a=ti(n);a.deferredNodes&&a.deferredNodes.forEach(agt),a.deferredNodes=void 0}function agt(n){var a,c;(a=lr)==null||a.push(lr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let d=N;switch(N=n,I=0,n.kind){case 213:case 214:case 215:case 170:case 286:eA(n);break;case 218:case 219:case 174:case 173:emt(n);break;case 177:case 178:R3e(n);break;case 231:Eht(n);break;case 168:kmt(n);break;case 285:cpt(n);break;case 284:dpt(n);break;case 216:case 234:case 217:Rft(n);break;case 222:go(n.expression);break;case 226:D3(n)&&eA(n);break}N=d,(c=lr)==null||c.pop()}function sgt(n){var a,c;(a=lr)==null||a.push(lr.Phase.Check,"checkSourceFile",{path:n.path},!0),nl("beforeCheck"),lgt(n),nl("afterCheck"),Yp("Check","beforeCheck","afterCheck"),(c=lr)==null||c.pop()}function E7e(n,a){if(a)return!1;switch(n){case 0:return!!V.noUnusedLocals;case 1:return!!V.noUnusedParameters;default:return C.assertNever(n)}}function S7e(n){return uf.get(n.path)||et}function lgt(n){let a=ti(n);if(!(a.flags&1)){if(eN(n,V,e))return;kvt(n),Gi(gE),Gi(vE),Gi(ub),Gi(db),Gi(mg),Ke(n.statements,Da),Da(n.endOfFileToken),ogt(n),Fp(n)&&qb(n),r(()=>{!n.isDeclarationFile&&(V.noUnusedLocals||V.noUnusedParameters)&&z3e(S7e(n),(c,d,_)=>{!$x(c)&&E7e(d,!!(c.flags&33554432))&&ns.add(_)}),n.isDeclarationFile||M_t()}),V.importsNotUsedAsValues===2&&!n.isDeclarationFile&&ac(n)&&Qht(n),Fp(n)&&v7e(n),gE.length&&(Ke(gE,w_t),Gi(gE)),vE.length&&(Ke(vE,O_t),Gi(vE)),ub.length&&(Ke(ub,B_t),Gi(ub)),db.length&&(Ke(db,V_t),Gi(db)),a.flags|=1}}function T7e(n,a){try{return i=a,cgt(n)}finally{i=void 0}}function vbe(){for(let n of t)n();t=[]}function ybe(n){vbe();let a=r;r=c=>c(),sgt(n),r=a}function cgt(n){if(n){vbe();let a=ns.getGlobalDiagnostics(),c=a.length;ybe(n);let d=ns.getDiagnostics(n.fileName),_=ns.getGlobalDiagnostics();if(_!==a){let y=mne(a,_,XC);return xo(y,d)}else if(c===0&&_.length>0)return xo(_,d);return d}return Ke(e.getSourceFiles(),ybe),ns.getDiagnostics()}function ugt(){return vbe(),ns.getGlobalDiagnostics()}function dgt(n,a){if(n.flags&67108864)return[];let c=ua(),d=!1;return _(),c.delete("this"),Ige(c);function _(){for(;n;){switch(ph(n)&&n.locals&&!Nh(n)&&x(n.locals,a),n.kind){case 312:if(!ac(n))break;case 267:L(Rr(n).exports,a&2623475);break;case 266:x(Rr(n).exports,a&8);break;case 231:n.name&&y(n.symbol,a);case 263:case 264:d||x(Lb(Rr(n)),a&788968);break;case 218:n.name&&y(n.symbol,a);break}bie(n)&&y(Bt,a),d=sa(n),n=n.parent}x(Se,a)}function y(z,U){if(AR(z)&U){let re=z.escapedName;c.has(re)||c.set(re,z)}}function x(z,U){U&&z.forEach(re=>{y(re,U)})}function L(z,U){U&&z.forEach(re=>{!dl(re,281)&&!dl(re,280)&&re.escapedName!=="default"&&y(re,U)})}}function pgt(n){return n.kind===80&&PR(n.parent)&&Oo(n.parent)===n}function A7e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function fgt(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function I7e(n,a){let c,d=su(n);for(;d&&!(c=a(d));)d=su(d);return c}function mgt(n){return!!zn(n,a=>Pl(a)&&Xf(a.body)||Jo(a)?!0:pi(a)||zs(a)?"quit":!1)}function bbe(n,a){return!!I7e(n,c=>c===a)}function _gt(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function mte(n){return _gt(n)!==void 0}function hgt(n){switch(Wl(n.parent.parent)){case 1:case 3:return ff(n.parent);case 5:if(zr(n.parent)&&IR(n.parent)===n)return;case 4:case 2:return Rr(n.parent.parent)}}function ggt(n){let a=n.parent;for(;Ad(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function vgt(n){if(n.expression.kind===110){let a=wd(n,!1,!1);if(ea(a)){let c=O8e(a);if(c){let d=f1(c,void 0),_=W8e(c,d);return _&&!Ct(_)}}}}function x7e(n){if(Wg(n))return ff(n.parent);if(cr(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Xi(n)&&!y0(n)&&!vgt(n.parent)){let a=hgt(n);if(a)return a}if(n.parent.kind===277&&zl(n)){let a=Us(n,2998271,!0);if(a&&a!==ft)return a}else if(Qd(n)&&mte(n)){let a=p0(n,271);return C.assert(a!==void 0),nx(n,!0)}if(Qd(n)){let a=ggt(n);if(a){Ii(a);let c=ti(n).resolvedSymbol;return c===ft?void 0:c}}for(;soe(n);)n=n.parent;if(fgt(n)){let a=0;n.parent.kind===233?(a=Zh(n)?788968:111551,R3(n.parent)&&(a|=111551)):a=1920,a|=2097152;let c=zl(n)?Us(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return JL(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){C.assert(!cr(n));let a=Lie(n.parent);return a&&a.symbol}if(eg(n)){if(Fl(n))return;let a=zn(n,Xm(CA,xN,y0)),c=a?901119:111551;if(n.kind===80){if(aR(n)&&vx(n)){let _=Fee(n.parent);return _===ft?void 0:_}let d=Us(n,c,!0,!0,u0(n));if(!d&&a){let _=zn(n,Xm(pi,fd));if(_)return AB(n,!0,Rr(_))}if(d&&a){let _=SS(n);if(_&&Q1(_)&&_===d.valueDeclaration)return Us(n,c,!0,!0,Vn(_))||d}return d}else{if(Xi(n))return Bee(n);if(n.kind===211||n.kind===166){let d=ti(n);return d.resolvedSymbol?d.resolvedSymbol:(n.kind===211?(Wee(n,0),d.resolvedSymbol||(d.resolvedSymbol=R7e(ec(n.expression),_y(n.name)))):d6e(n,0),!d.resolvedSymbol&&a&&Ad(n)?AB(n):d.resolvedSymbol)}else if(y0(n))return AB(n)}}else if(A7e(n)){let a=n.parent.kind===183?788968:1920,c=Us(n,a,!1,!0);return c&&c!==ft?c:BZ(n)}if(n.parent.kind===182)return Us(n,1)}function R7e(n,a){let c=Age(n,a);if(c.length&&n.members){let d=FZ(m_(n).members);if(c===hd(n))return d;if(d){let _=$i(d),y=Vi(c,L=>L.declaration),x=Ft(y,ss).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(x))return _.filteredIndexSymbolCache.get(x);{let L=Xa(131072,"__index");return L.declarations=Vi(c,z=>z.declaration),L.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:Um(L.declarations[0].parent),_.filteredIndexSymbolCache.set(x,L),L}}}}function AB(n,a,c){if(Qd(n)){let x=Us(n,901119,a,!0,u0(n));if(!x&&Ve(n)&&c&&(x=is(Ud(Dp(c),n.escapedText,901119))),x)return x}let d=Ve(n)?c:AB(n.left,a,c),_=Ve(n)?n.escapedText:n.right.escapedText;if(d){let y=d.flags&111551&&ba(pr(d),"prototype"),x=y?pr(y):Qs(d);return ba(x,_)}}function Um(n,a){if(no(n))return ac(n)?is(n.symbol):void 0;let{parent:c}=n,d=c.parent;if(!(n.flags&67108864)){if(rIe(n)){let _=Rr(c);return IA(n.parent)&&n.parent.propertyName===n?dye(_):_}else if(YL(n))return Rr(c.parent);if(n.kind===80){if(mte(n))return x7e(n);if(c.kind===208&&d.kind===206&&n===c.propertyName){let _=bx(d),y=ba(_,n.escapedText);if(y)return y}else if(yN(c)&&c.name===n)return c.keywordToken===105&&Sr(n)==="target"?Wye(c).symbol:c.keywordToken===102&&Sr(n)==="meta"?COe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!FA(n))return x7e(n);case 110:let _=wd(n,!1,!1);if(ea(_)){let L=pm(_);if(L.thisParameter)return L.thisParameter}if(n3(n))return go(n).symbol;case 197:return YZ(n).symbol;case 108:return go(n).symbol;case 137:let y=n.parent;return y&&y.kind===176?y.parent.symbol:void 0;case 11:case 15:if(l0(n.parent.parent)&&RC(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||cr(n)&&Sd(n.parent,!1)||Wp(n.parent)||Yy(n.parent)&&zy(n.parent.parent)&&n.parent.parent.argument===n.parent)return _d(n,n,a);if(la(c)&&bS(c)&&c.arguments[1]===n)return Rr(c);case 9:let x=Ys(c)?c.argumentExpression===n?Ru(c.expression):void 0:Yy(c)&&wS(d)?Ii(d.objectType):void 0;return x&&ba(x,ml(n.text));case 90:case 100:case 39:case 86:return ff(n.parent);case 205:return zy(n)?Um(n.argument.literal,a):void 0;case 95:return Ll(n.parent)?C.checkDefined(n.parent.symbol):void 0;case 102:case 105:return yN(n.parent)?K6e(n.parent).symbol:void 0;case 104:if(_r(n.parent)){let L=Ru(n.parent.right),z=Jye(L);return z?.symbol??L.symbol}return;case 236:return go(n).symbol;case 295:if(aR(n)&&vx(n)){let L=Fee(n.parent);return L===ft?void 0:L}default:return}}}function ygt(n){if(Ve(n)&&zr(n.parent)&&n.parent.name===n){let a=_y(n),c=Ru(n.parent.expression),d=c.flags&1048576?c.types:[c];return Zi(d,_=>tr(hd(_),y=>dx(a,y.keyType)))}}function bgt(n){if(n&&n.kind===304)return Us(n.name,2208703)}function Egt(n){return Ju(n)?n.parent.parent.moduleSpecifier?iv(n.parent.parent,n):Us(n.propertyName||n.name,2998271):Us(n,2998271)}function bx(n){if(no(n)&&!ac(n)||n.flags&67108864)return ht;let a=cU(n),c=a&&zf(Rr(a.class));if(Zh(n)){let d=Ii(n);return c?qp(d,c.thisType):d}if(eg(n))return D7e(n);if(c&&!a.isImplements){let d=Xc(Np(c));return d?qp(d,c.thisType):ht}if(PR(n)){let d=Rr(n);return Qs(d)}if(pgt(n)){let d=Um(n);return d?Qs(d):ht}if(Qa(n))return kT(n,!0,0)||ht;if(qu(n)){let d=Rr(n);return d?pr(d):ht}if(rIe(n)){let d=Um(n);return d?pr(d):ht}if(ta(n))return kT(n.parent,!0,0)||ht;if(mte(n)){let d=Um(n);if(d){let _=Qs(d);return qt(_)?pr(d):_}}return yN(n.parent)&&n.parent.keywordToken===n.kind?K6e(n.parent):cI(n)?zge(!1):ht}function _te(n){if(C.assert(n.kind===210||n.kind===209),n.parent.kind===250){let _=bB(n.parent);return nA(n,_||ht)}if(n.parent.kind===226){let _=Ru(n.parent.right);return nA(n,_||ht)}if(n.parent.kind===303){let _=aa(n.parent.parent,wa),y=_te(_)||ht,x=Qx(_.properties,n.parent);return d3e(_,y,x)}let a=aa(n.parent,pd),c=_te(a)||ht,d=yy(65,c,Oe,n.parent)||ht;return p3e(a,c,a.elements.indexOf(n),d)}function Sgt(n){let a=_te(aa(n.parent.parent,vC));return a&&ba(a,n.escapedText)}function D7e(n){return jC(n)&&(n=n.parent),vd(Ru(n))}function C7e(n){let a=ff(n.parent);return sa(n)?pr(a):Qs(a)}function N7e(n){let a=n.name;switch(a.kind){case 80:return qd(Sr(a));case 9:case 11:return qd(a.text);case 167:let c=Ig(a);return xu(c,12288)?c:ke;default:return C.fail("Unsupported property name.")}}function Ebe(n){n=Md(n);let a=ua(ys(n)),c=Yo(n,0).length?qn:Yo(n,1).length?So:void 0;return c&&Ke(ys(c),d=>{a.has(d.escapedName)||a.set(d.escapedName,d)}),K0(a)}function hte(n){return Yo(n,0).length!==0||Yo(n,1).length!==0}function P7e(n){let a=Tgt(n);return a?Zi(a,P7e):[n]}function Tgt(n){if(Al(n)&6)return Vi($i(n).containingType.types,a=>ba(a,n.escapedName));if(n.flags&33554432){let{links:{leftSpread:a,rightSpread:c,syntheticOrigin:d}}=n;return a?[a,c]:d?[d]:yA(Agt(n))}}function Agt(n){let a,c=n;for(;c=$i(c).target;)a=c;return a}function Igt(n){if(ol(n))return!1;let a=Lo(n,Ve);if(!a)return!1;let c=a.parent;return c?!((zr(c)||_c(c))&&c.name===a)&&i8(a)===Bt:!1}function xgt(n){let a=_d(n.parent,n);if(!a||SC(a))return!0;let c=uy(a);a=Rp(a);let d=$i(a);return d.exportsSomeValue===void 0&&(d.exportsSomeValue=c?!!(a.flags&111551):Bc(Mh(a),_)),d.exportsSomeValue;function _(y){return y=Gl(y),y&&!!(Au(y)&111551)}}function Rgt(n){return mL(n.parent)&&n===n.parent.name}function Dgt(n,a){var c;let d=Lo(n,Ve);if(d){let _=i8(d,Rgt(d));if(_){if(_.flags&1048576){let x=is(_.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;_=x}let y=Cd(_);if(y){if(y.flags&512&&((c=y.valueDeclaration)==null?void 0:c.kind)===312){let x=y.valueDeclaration,L=Vn(d);return x!==L?void 0:x}return zn(d.parent,x=>mL(x)&&Rr(x)===y)}}}}function Cgt(n){let a=gae(n);if(a)return a;let c=Lo(n,Ve);if(c){let d=Vgt(c);if(TT(d,111551)&&!wf(d,111551))return Fm(d)}}function Ngt(n){return n.valueDeclaration&&Qa(n.valueDeclaration)&&Vx(n.valueDeclaration).parent.kind===299}function M7e(n){if(n.flags&418&&n.valueDeclaration&&!no(n.valueDeclaration)){let a=$i(n);if(a.isDeclarationWithCollidingName===void 0){let c=_h(n.valueDeclaration);if(Zre(c)||Ngt(n)){let d=ti(n.valueDeclaration);if(vl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(d.flags&16384){let _=d.flags&32768,y=ky(c,!1),x=c.kind===241&&ky(c.parent,!1);a.isDeclarationWithCollidingName=!aie(c)&&(!_||!y&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function Pgt(n){if(!ol(n)){let a=Lo(n,Ve);if(a){let c=i8(a);if(c&&M7e(c))return c.valueDeclaration}}}function Mgt(n){let a=Lo(n,qu);if(a){let c=Rr(a);if(c)return M7e(c)}return!1}function L7e(n){switch(C.assert(gt),n.kind){case 271:return gte(Rr(n));case 273:case 274:case 276:case 281:let a=Rr(n);return!!a&>e(a,!0);case 278:let c=n.exportClause;return!!c&&(Sh(c)||Et(c.elements,L7e));case 277:return n.expression&&n.expression.kind===80?gte(Rr(n),!0):!0}return!1}function Lgt(n){let a=Lo(n,tu);return a===void 0||a.parent.kind!==312||!sR(a)?!1:gte(Rr(a))&&a.moduleReference&&!Fl(a.moduleReference)}function gte(n,a){if(!n)return!1;let c=mf(Fc(n));return c===ft?!a||!wf(n):!!(Au(n,a,!0)&111551)&&(V1(V)||!r8(c))}function r8(n){return qye(n)||!!n.constEnumOnlyModule}function vte(n,a){if(C.assert(gt),hb(n)){let c=Rr(n),d=c&&$i(c);if(d?.referenced)return!0;let _=$i(c).aliasTarget;if(_&&cd(n)&32&&Au(_)&111551&&(V1(V)||!r8(_)))return!0}return a?!!Ho(n,c=>vte(c,a)):!1}function k7e(n){if(Xf(n.body)){if(wy(n)||wv(n))return!1;let a=Rr(n),c=LE(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function w7e(n){return!!Y&&!S4(n)&&!n_(n)&&!!n.initializer&&!ei(n,31)}function kgt(n){return Y&&S4(n)&&!n.initializer&&ei(n,31)}function wgt(n){let a=Lo(n,Sc);if(!a)return!1;let c=Rr(a);return!c||!(c.flags&16)?!1:!!Bc(Dp(c),d=>d.flags&111551&&r7(d.valueDeclaration))}function Ogt(n){let a=Lo(n,Sc);if(!a)return et;let c=Rr(a);return c&&ys(pr(c))||et}function LD(n){var a;let c=n.id||0;return c<0||c>=hE.length?0:((a=hE[c])==null?void 0:a.flags)||0}function kD(n){return m7e(n.parent),ti(n).enumMemberValue}function O7e(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function Sbe(n){if(n.kind===306)return kD(n);let a=ti(n).resolvedSymbol;if(a&&a.flags&8){let c=a.valueDeclaration;if(x1(c.parent))return kD(c)}}function Tbe(n){return!!(n.flags&524288)&&Yo(n,0).length>0}function Fgt(n,a){var c;let d=Lo(n,Qd);if(!d||a&&(a=Lo(a),!a))return 0;let _=!1;if(Ad(d)){let re=Us(Bp(d),111551,!0,!0,a);_=!!((c=re?.declarations)!=null&&c.every(a0))}let y=Us(d,111551,!0,!0,a),x=y&&y.flags&2097152?Fc(y):y;_||(_=!!(y&&wf(y,111551)));let L=Us(d,788968,!0,!0,a),z=L&&L.flags&2097152?Fc(L):L;if(y||_||(_=!!(L&&wf(L,788968))),x&&x===z){let re=Bge(!1);if(re&&x===re)return 9;let be=pr(x);if(be&&os(be))return _?10:1}if(!z)return _?11:0;let U=Qs(z);return qt(U)?_?11:0:U.flags&3?11:xu(U,245760)?2:xu(U,528)?6:xu(U,296)?3:xu(U,2112)?4:xu(U,402653316)?5:Wa(U)?7:xu(U,12288)?8:Tbe(U)?10:jf(U)?7:11}function Wgt(n,a,c,d,_){let y=Lo(n,gie);if(!y)return k.createToken(133);let x=Rr(y),L=x&&!(x.flags&133120)?BE(pr(x)):ht;return L.flags&8192&&L.symbol===x&&(c|=1048576),_&&(L=jb(L)),At.typeToTypeNode(L,a,c|1024,d)}function zgt(n,a,c,d){let _=Lo(n,ea);if(!_)return k.createToken(133);let y=pm(_);return At.typeToTypeNode(ms(y),a,c|1024,d)}function Bgt(n,a,c,d){let _=Lo(n,bt);if(!_)return k.createToken(133);let y=Jp(D7e(_));return At.typeToTypeNode(y,a,c|1024,d)}function Ggt(n){return Se.has(ml(n))}function i8(n,a){let c=ti(n).resolvedSymbol;if(c)return c;let d=n;if(a){let _=n.parent;qu(_)&&n===_.name&&(d=Q(_))}return vl(d,n.escapedText,3257279,void 0,void 0,!0)}function Vgt(n){let a=ti(n).resolvedSymbol;return a&&a!==ft?a:vl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function jgt(n){if(!ol(n)){let a=Lo(n,Ve);if(a){let c=i8(a);if(c)return mf(c).valueDeclaration}}}function Ugt(n){if(!ol(n)){let a=Lo(n,Ve);if(a){let c=i8(a);if(c)return tr(mf(c).declarations,d=>{switch(d.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function Hgt(n){return j6(n)||Oi(n)&&xB(n)?FE(pr(Rr(n))):!1}function qgt(n,a,c){let d=n.flags&1056?At.symbolToExpression(n.symbol,111551,a,void 0,c):n===On?k.createTrue():n===Kt&&k.createFalse();if(d)return d;let _=n.value;return typeof _=="object"?k.createBigIntLiteral(_):typeof _=="string"?k.createStringLiteral(_):_<0?k.createPrefixUnaryExpression(41,k.createNumericLiteral(-_)):k.createNumericLiteral(_)}function Jgt(n,a){let c=pr(Rr(n));return qgt(c,n,a)}function F7e(n){return n?(z0(n),Vn(n).localJsxFactory||ev):ev}function Abe(n){if(n){let a=Vn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let c=a.pragmas.get("jsxfrag"),d=Do(c)?c[0]:c;if(d)return a.localJsxFragmentFactory=_I(d.arguments.factory,ue),a.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return _I(V.jsxFragmentFactory,ue)}function Kgt(){let n=e.getResolvedTypeReferenceDirectives(),a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:z},U,re)=>{if(!z?.resolvedFileName)return;let be=e.getSourceFile(z.resolvedFileName);be&&L(be,U,re)})),{getReferencedExportContainer:Dgt,getReferencedImportDeclaration:Cgt,getReferencedDeclarationWithCollidingName:Pgt,isDeclarationWithCollidingName:Mgt,isValueAliasDeclaration:z=>{let U=Lo(z);return U&>?L7e(U):!0},hasGlobalName:Ggt,isReferencedAliasDeclaration:(z,U)=>{let re=Lo(z);return re&>?vte(re,U):!0},getNodeCheckFlags:z=>{let U=Lo(z);return U?LD(U):0},isTopLevelValueImportEqualsWithEntityName:Lgt,isDeclarationVisible:u_,isImplementationOfOverload:k7e,isRequiredInitializedParameter:w7e,isOptionalUninitializedParameterProperty:kgt,isExpandoFunctionDeclaration:wgt,getPropertiesOfContainerFunction:Ogt,createTypeOfDeclaration:Wgt,createReturnTypeOfSignatureDeclaration:zgt,createTypeOfExpression:Bgt,createLiteralConstValue:Jgt,isSymbolAccessible:wi,isEntityNameVisible:Tb,getConstantValue:z=>{let U=Lo(z,O7e);return U?Sbe(U):void 0},collectLinkedAliases:FP,getReferencedValueDeclaration:jgt,getReferencedValueDeclarations:Ugt,getTypeReferenceSerializationKind:Fgt,isOptionalParameter:S4,moduleExportsSomeValue:xgt,isArgumentsLocalBinding:Igt,getExternalModuleFileFromDeclaration:z=>{let U=Lo(z,lie);return U&&Ibe(U)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:y,isLiteralConstDeclaration:Hgt,isLateBound:z=>{let U=Lo(z,qu),re=U&&Rr(U);return!!(re&&Al(re)&4096)},getJsxFactoryEntity:F7e,getJsxFragmentFactoryEntity:Abe,getAllAccessorDeclarations(z){z=Lo(z,v6);let U=z.kind===178?177:178,re=dl(Rr(z),U),be=re&&re.posov(z,z,void 0),isBindingCapturedByNode:(z,U)=>{let re=Lo(z),be=Lo(U);return!!re&&!!be&&(Oi(be)||Qa(be))&&vdt(re,be)},getDeclarationStatementsForSourceFile:(z,U,re,be)=>{let ge=Lo(z);C.assert(ge&&ge.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");let Je=Rr(z);return Je?Je.exports?At.symbolTableToDeclarationStatements(Je.exports,z,U,re,be):[]:z.locals?At.symbolTableToDeclarationStatements(z.locals,z,U,re,be):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:z=>{let U=Lo(z),re=U&&us(U)?U.text:void 0;return re!==void 0?kZ(re,!0):void 0}};function c(z){let U=Vn(z);if(!U.symbol)return!1;let re=Ibe(z);if(!re||re===U)return!1;let be=Mh(U.symbol);for(let ge of Vo(be.values()))if(ge.mergeId){let Je=is(ge);if(Je.declarations){for(let vt of Je.declarations)if(Vn(vt)===re)return!0}}return!1}function d(z){return z.parent&&z.parent.kind===233&&z.parent.parent&&z.parent.parent.kind===298}function _(z){if(!a)return;let U;z.parent.kind===167?U=1160127:(U=790504,(z.kind===80&&xS(z)||z.kind===211&&!d(z))&&(U=1160127));let re=Us(z,U,!0);return re&&re!==ft?y(re,U):void 0}function y(z,U){if(!a||!x(z))return;let re;for(let be of z.declarations)if(be.symbol&&be.symbol.flags&U){let ge=Vn(be),Je=a.get(ge.path);if(Je)(re||(re=[])).push(Je);else return}return re}function x(z){if(!z.declarations)return!1;let U=z;for(;;){let re=Cd(U);if(re)U=re;else break}if(U.valueDeclaration&&U.valueDeclaration.kind===312&&U.flags&512)return!1;for(let re of z.declarations){let be=Vn(re);if(a.has(be.path))return!0}return!1}function L(z,U,re){if(!a.has(z.path)){a.set(z.path,[U,re]);for(let{fileName:be}of z.referencedFiles){let ge=mF(be,z.fileName),Je=e.getSourceFile(ge);Je&&L(Je,U,re||z.impliedNodeFormat)}}}}function Ibe(n){let a=n.kind===267?ai(n.name,Na):uR(n),c=ov(a,a,void 0);if(c)return dl(c,312)}function Xgt(){for(let a of e.getSourceFiles())Yse(a,V);Ts=new Map;let n;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!Fp(a)){let c=a.locals.get("globalThis");if(c?.declarations)for(let d of c.declarations)ns.add(Or(d,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));l_(Se,a.locals)}a.jsGlobalAugmentations&&l_(Se,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(lm=xo(lm,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((d,_)=>{Se.has(_)||Se.set(_,d)})}if(n)for(let a of n)for(let c of a)I_(c.parent)&&X2(c);if(yE(Se,dT,f.Declaration_name_conflicts_with_built_in_global_identifier_0),$i(je).type=Lt,$i(Bt).type=Zl("IArguments",0,!0),$i(ft).type=ht,$i(at).type=Of(16,at),Qo=Zl("Array",1,!0),Pe=Zl("Object",0,!0),wt=Zl("Function",0,!0),qn=fe&&Zl("CallableFunction",0,!0)||wt,So=fe&&Zl("NewableFunction",0,!0)||wt,$l=Zl("String",0,!0),vc=Zl("Number",0,!0),cl=Zl("Boolean",0,!0),gl=Zl("RegExp",0,!0),Ql=Gu(j),qc=Gu(ot),qc===Pa&&(qc=Ls(void 0,K,et,et,et)),na=wOe("ReadonlyArray",1)||Qo,cf=na?I4(na,[j]):Ql,Bl=wOe("ThisType",1),n)for(let a of n)for(let c of a)I_(c.parent)||X2(c);Ts.forEach(({firstFile:a,secondFile:c,conflictingSymbols:d})=>{if(d.size<8)d.forEach(({isBlockScoped:_,firstFileLocations:y,secondFileLocations:x},L)=>{let z=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(let U of y)tv(U,z,L,x);for(let U of x)tv(U,z,L,y)});else{let _=Vo(d.keys()).join(", ");ns.add(ka(Or(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Or(c,f.Conflicts_are_in_this_file))),ns.add(ka(Or(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Or(a,f.Conflicts_are_in_this_file)))}}),Ts=void 0}function Rc(n,a){if((s&a)!==a&&V.importHelpers){let c=Vn(n);if(NA(c,V)&&!(n.flags&33554432)){let d=$gt(c,n);if(d!==ft){let _=a&~s;for(let y=1;y<=33554432;y<<=1)if(_&y)for(let x of Ygt(y)){if(o.has(x))continue;o.add(x);let L=Gl(Ud(Mh(d),ml(x),111551));L?y&524288?Et(LE(L),z=>Kp(z)>3)||qe(n,f.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,Hy,x,4):y&1048576?Et(LE(L),z=>Kp(z)>4)||qe(n,f.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,Hy,x,5):y&1024&&(Et(LE(L),z=>Kp(z)>2)||qe(n,f.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,Hy,x,3)):qe(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Hy,x)}}s|=a}}}function Ygt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ne?["__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"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return C.fail("Unrecognized helper")}}function $gt(n,a){return l||(l=J_(n,Hy,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ft),l}function Rg(n){var a;let c=evt(n)||Qgt(n);if(c!==void 0)return c;if(Co(n)&&w1(n))return hu(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let d=Ml(n)?n.declarationList.flags&7:0,_,y,x,L,z,U=0,re=!1,be=!1;for(let ge of n.modifiers)if(Eu(ge)){if(t3(ne,n,n.parent,n.parent.parent)){if(ne&&(n.kind===177||n.kind===178)){let Je=RS(n.parent.members,n);if(Sf(Je.firstAccessor)&&n===Je.secondAccessor)return hu(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Xf(n.body)?hu(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):hu(n,f.Decorators_are_not_valid_here);if(U&-34849)return bn(ge,f.Decorators_are_not_valid_here);if(be&&U&98303){C.assertIsDefined(z);let Je=Vn(ge);return qE(Je)?!1:(ka(qe(ge,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Or(z,f.Decorator_used_before_export_here)),!0)}U|=32768,U&98303?U&32&&(re=!0):be=!0,z??(z=ge)}else{if(ge.kind!==148){if(n.kind===171||n.kind===173)return bn(ge,f._0_modifier_cannot_appear_on_a_type_member,ma(ge.kind));if(n.kind===181&&(ge.kind!==126||!pi(n.parent)))return bn(ge,f._0_modifier_cannot_appear_on_an_index_signature,ma(ge.kind))}if(ge.kind!==103&&ge.kind!==147&&ge.kind!==87&&n.kind===168)return bn(ge,f._0_modifier_cannot_appear_on_a_type_parameter,ma(ge.kind));switch(ge.kind){case 87:{if(n.kind!==266&&n.kind!==168)return bn(n,f.A_class_member_cannot_have_the_0_keyword,ma(87));let Rt=am(n.parent)&&d0(n.parent)||n.parent;if(n.kind===168&&!(zs(Rt)||pi(Rt)||bh(Rt)||OR(Rt)||nI(Rt)||zk(Rt)||yh(Rt)))return bn(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ma(ge.kind));break}case 164:if(U&16)return bn(ge,f._0_modifier_already_seen,"override");if(U&128)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(U&8)return bn(ge,f._0_modifier_must_precede_1_modifier,"override","readonly");if(U&512)return bn(ge,f._0_modifier_must_precede_1_modifier,"override","accessor");if(U&1024)return bn(ge,f._0_modifier_must_precede_1_modifier,"override","async");U|=16,L=ge;break;case 125:case 124:case 123:let Je=LT(zA(ge.kind));if(U&7)return bn(ge,f.Accessibility_modifier_already_seen);if(U&16)return bn(ge,f._0_modifier_must_precede_1_modifier,Je,"override");if(U&256)return bn(ge,f._0_modifier_must_precede_1_modifier,Je,"static");if(U&512)return bn(ge,f._0_modifier_must_precede_1_modifier,Je,"accessor");if(U&8)return bn(ge,f._0_modifier_must_precede_1_modifier,Je,"readonly");if(U&1024)return bn(ge,f._0_modifier_must_precede_1_modifier,Je,"async");if(n.parent.kind===268||n.parent.kind===312)return bn(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,Je);if(U&64)return ge.kind===123?bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,Je,"abstract"):bn(ge,f._0_modifier_must_precede_1_modifier,Je,"abstract");if(ad(n))return bn(ge,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);U|=zA(ge.kind);break;case 126:if(U&256)return bn(ge,f._0_modifier_already_seen,"static");if(U&8)return bn(ge,f._0_modifier_must_precede_1_modifier,"static","readonly");if(U&1024)return bn(ge,f._0_modifier_must_precede_1_modifier,"static","async");if(U&512)return bn(ge,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return bn(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return bn(ge,f._0_modifier_cannot_appear_on_a_parameter,"static");if(U&64)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(U&16)return bn(ge,f._0_modifier_must_precede_1_modifier,"static","override");U|=256,_=ge;break;case 129:if(U&512)return bn(ge,f._0_modifier_already_seen,"accessor");if(U&8)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(U&128)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return bn(ge,f.accessor_modifier_can_only_appear_on_a_property_declaration);U|=512;break;case 148:if(U&8)return bn(ge,f._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return bn(ge,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(U&512)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");U|=8;break;case 95:if(V.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(G===1||Vn(n).impliedNodeFormat===1))return bn(ge,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(U&32)return bn(ge,f._0_modifier_already_seen,"export");if(U&128)return bn(ge,f._0_modifier_must_precede_1_modifier,"export","declare");if(U&64)return bn(ge,f._0_modifier_must_precede_1_modifier,"export","abstract");if(U&1024)return bn(ge,f._0_modifier_must_precede_1_modifier,"export","async");if(pi(n.parent))return bn(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return bn(ge,f._0_modifier_cannot_appear_on_a_parameter,"export");if(d===4)return bn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(d===6)return bn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");U|=32;break;case 90:let vt=n.parent.kind===312?n.parent:n.parent.parent;if(vt.kind===267&&!Lu(vt))return bn(ge,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(d===4)return bn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(d===6)return bn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(U&32){if(re)return bn(z,f.Decorators_are_not_valid_here)}else return bn(ge,f._0_modifier_must_precede_1_modifier,"export","default");U|=2048;break;case 138:if(U&128)return bn(ge,f._0_modifier_already_seen,"declare");if(U&1024)return bn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(U&16)return bn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(pi(n.parent)&&!Jo(n))return bn(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return bn(ge,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(d===4)return bn(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(d===6)return bn(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return bn(ge,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ad(n))return bn(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(U&512)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");U|=128,y=ge;break;case 128:if(U&64)return bn(ge,f._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return bn(ge,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&ei(n.parent,64))){let Rt=n.kind===172?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return bn(ge,Rt)}if(U&256)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(U&2)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(U&1024&&x)return bn(x,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(U&16)return bn(ge,f._0_modifier_must_precede_1_modifier,"abstract","override");if(U&512)return bn(ge,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(od(n)&&n.name.kind===81)return bn(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");U|=64;break;case 134:if(U&1024)return bn(ge,f._0_modifier_already_seen,"async");if(U&128||n.parent.flags&33554432)return bn(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return bn(ge,f._0_modifier_cannot_appear_on_a_parameter,"async");if(U&64)return bn(ge,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");U|=1024,x=ge;break;case 103:case 147:{let Rt=ge.kind===103?8192:16384,sn=ge.kind===103?"in":"out",un=am(n.parent)&&(d0(n.parent)||vn((a=fR(n.parent))==null?void 0:a.tags,VS))||n.parent;if(n.kind!==168||un&&!(fd(un)||pi(un)||Dm(un)||VS(un)))return bn(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,sn);if(U&Rt)return bn(ge,f._0_modifier_already_seen,sn);if(Rt&8192&&U&16384)return bn(ge,f._0_modifier_must_precede_1_modifier,"in","out");U|=Rt;break}}}return n.kind===176?U&256?bn(_,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):U&16?bn(L,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):U&1024?bn(x,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&U&128?bn(y,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&U&31&&ta(n.name)?bn(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&U&31&&n.dotDotDotToken?bn(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):U&1024?nvt(n,x):!1}function Qgt(n){if(!n.modifiers)return!1;let a=Zgt(n);return a&&hu(a,f.Modifiers_cannot_appear_here)}function yte(n,a){let c=vn(n.modifiers,Ia);return c&&c.kind!==a?c:void 0}function Zgt(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return vn(n.modifiers,Ia);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return yte(n,134);case 263:case 185:return yte(n,128);case 231:case 264:case 265:return vn(n.modifiers,Ia);case 243:return n.declarationList.flags&4?yte(n,135):vn(n.modifiers,Ia);case 266:return yte(n,87);default:C.assertNever(n)}}}function evt(n){let a=tvt(n);return a&&hu(a,f.Decorators_are_not_valid_here)}function tvt(n){return GH(n)?vn(n.modifiers,Eu):void 0}function nvt(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return bn(a,f._0_modifier_cannot_be_used_here,"async")}function Ex(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?JE(n[0],n.end-1,1,a):!1}function W7e(n,a){if(n&&n.length===0){let c=n.pos-1,d=La(a.text,n.end)+1;return JE(a,c,d-c,f.Type_parameter_list_cannot_be_empty)}return!1}function rvt(n){let a=!1,c=n.length;for(let d=0;d!!a.initializer||ta(a.name)||$h(a))}function ovt(n){if(ue>=3){let a=n.body&&Xo(n.body)&&FH(n.body.statements);if(a){let c=ivt(n.parameters);if(De(c)){Ke(c,_=>{ka(qe(_,f.This_parameter_is_not_allowed_with_use_strict_directive),Or(a,f.use_strict_directive_used_here))});let d=c.map((_,y)=>y===0?Or(_,f.Non_simple_parameter_declared_here):Or(_,f.and_here));return ka(qe(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...d),!0}}}return!1}function bte(n){let a=Vn(n);return Rg(n)||W7e(n.typeParameters,a)||rvt(n.parameters)||svt(n,a)||zs(n)&&ovt(n)}function avt(n){let a=Vn(n);return pvt(n)||W7e(n.typeParameters,a)}function svt(n,a){if(!Bs(n))return!1;n.typeParameters&&!(De(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Ec(a.fileName,[".mts",".cts"])&&bn(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:c}=n,d=Es(a,c.pos).line,_=Es(a,c.end).line;return d!==_&&bn(c,f.Line_terminator_not_permitted_before_arrow)}function lvt(n){let a=n.parameters[0];if(n.parameters.length!==1)return bn(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(Ex(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return bn(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(I3(a))return bn(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return bn(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return bn(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return bn(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);let c=Ii(a.type);return jm(c,d=>!!(d.flags&8576))||ED(c)?bn(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):cp(c,WZ)?n.type?!1:bn(n,f.An_index_signature_must_have_a_type_annotation):bn(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function cvt(n){return Rg(n)||lvt(n)}function uvt(n,a){if(a&&a.length===0){let c=Vn(n),d=a.pos-1,_=La(c.text,a.end)+1;return JE(c,d,_-d,f.Type_argument_list_cannot_be_empty)}return!1}function IB(n,a){return Ex(a)||uvt(n,a)}function dvt(n){return n.questionDotToken||n.flags&64?bn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function z7e(n){let a=n.types;if(Ex(a))return!0;if(a&&a.length===0){let c=ma(n.token);return JE(n,a.pos,0,f._0_list_cannot_be_empty,c)}return Et(a,B7e)}function B7e(n){return Hv(n)&&vN(n.expression)&&n.typeArguments?bn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):IB(n,n.typeArguments)}function pvt(n){let a=!1,c=!1;if(!Rg(n)&&n.heritageClauses)for(let d of n.heritageClauses){if(d.token===96){if(a)return hu(d,f.extends_clause_already_seen);if(c)return hu(d,f.extends_clause_must_precede_implements_clause);if(d.types.length>1)return hu(d.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(C.assert(d.token===119),c)return hu(d,f.implements_clause_already_seen);c=!0}z7e(d)}}function fvt(n){let a=!1;if(n.heritageClauses)for(let c of n.heritageClauses){if(c.token===96){if(a)return hu(c,f.extends_clause_already_seen);a=!0}else return C.assert(c.token===119),hu(c,f.Interface_declaration_cannot_have_implements_clause);z7e(c)}return!1}function Ete(n){if(n.kind!==167)return!1;let a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?bn(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function xbe(n){if(n.asteriskToken){if(C.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return bn(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return bn(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function Rbe(n,a){return!!n&&bn(n,a)}function G7e(n,a){return!!n&&bn(n,a)}function mvt(n,a){let c=new Map;for(let d of n.properties){if(d.kind===305){if(a){let x=vs(d.expression);if(pd(x)||wa(x))return bn(d.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}let _=d.name;if(_.kind===167&&Ete(_),d.kind===304&&!a&&d.objectAssignmentInitializer&&bn(d.equalsToken,f.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),_.kind===81&&bn(_,f.Private_identifiers_are_not_allowed_outside_class_bodies),Cm(d)&&d.modifiers)for(let x of d.modifiers)Ia(x)&&(x.kind!==134||d.kind!==174)&&bn(x,f._0_modifier_cannot_be_used_here,pc(x));else if(ese(d)&&d.modifiers)for(let x of d.modifiers)Ia(x)&&bn(x,f._0_modifier_cannot_be_used_here,pc(x));let y;switch(d.kind){case 304:case 303:G7e(d.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),Rbe(d.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&Nbe(_),y=4;break;case 174:y=8;break;case 177:y=1;break;case 178:y=2;break;default:C.assertNever(d,"Unexpected syntax kind:"+d.kind)}if(!a){let x=Pbe(_);if(x===void 0)continue;let L=c.get(x);if(!L)c.set(x,y);else if(y&8&&L&8)bn(_,f.Duplicate_identifier_0,pc(_));else if(y&4&&L&4)bn(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,pc(_));else if(y&3&&L&3)if(L!==3&&y!==L)c.set(x,y|L);else return bn(_,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return bn(_,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function _vt(n){hvt(n.tagName),IB(n,n.typeArguments);let a=new Map;for(let c of n.attributes.properties){if(c.kind===293)continue;let{name:d,initializer:_}=c,y=lN(d);if(!a.get(y))a.set(y,!0);else return bn(d,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(_&&_.kind===294&&!_.expression)return bn(_,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function hvt(n){if(zr(n)&&e_(n.expression))return bn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(e_(n)&&G3(V)&&!yR(n.namespace.escapedText))return bn(n,f.React_components_cannot_include_JSX_namespace_names)}function gvt(n){if(n.expression&&DN(n.expression))return bn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function V7e(n){if(Ev(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){let a=Vn(n);if(Q6(n)){if(!qE(a))switch(NA(a,V)||ns.add(Or(n.awaitModifier,f.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)),G){case 100:case 199:if(a.impliedNodeFormat===1){ns.add(Or(n.awaitModifier,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ue>=4)break;default:ns.add(Or(n.awaitModifier,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!qE(a)){let c=Or(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),d=zp(n);if(d&&d.kind!==176){C.assert((Gc(d)&2)===0,"Enclosing function should never be an async function.");let _=Or(d,f.Did_you_mean_to_mark_this_function_as_async);ka(c,_)}return ns.add(c),!0}return!1}if(Uk(n)&&!(n.flags&65536)&&Ve(n.initializer)&&n.initializer.escapedText==="async")return bn(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){let a=n.initializer;if(!Cbe(a)){let c=a.declarations;if(!c.length)return!1;if(c.length>1){let _=n.kind===249?f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return hu(a.declarations[1],_)}let d=c[0];if(d.initializer){let _=n.kind===249?f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return bn(d.name,_)}if(d.type){let _=n.kind===249?f.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:f.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return bn(d,_)}}}return!1}function vvt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(ue<1)return bn(n.name,f.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ue<2&&Xi(n.name))return bn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!ei(n,64))return JE(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(ei(n,64))return bn(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return bn(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return bn(n.name,f.An_accessor_cannot_have_type_parameters);if(!yvt(n))return bn(n.name,n.kind===177?f.A_get_accessor_cannot_have_parameters:f.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return bn(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);let a=C.checkDefined(zC(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return bn(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return bn(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return bn(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function yvt(n){return Dbe(n)||n.parameters.length===(n.kind===177?0:1)}function Dbe(n){if(n.parameters.length===(n.kind===177?1:2))return k1(n)}function bvt(n){if(n.operator===158){if(n.type.kind!==155)return bn(n.type,f._0_expected,ma(155));let a=KL(n.parent);if(cr(a)&&Z1(a)){let c=SS(a);c&&(a=kA(c)||c)}switch(a.kind){case 260:let c=a;if(c.name.kind!==80)return bn(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!AC(c))return bn(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return bn(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!sa(a)||!BC(a))return bn(a.name,f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!ei(a,8))return bn(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return bn(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return hu(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ma(155))}function hM(n,a){if(Wat(n))return bn(n,a)}function j7e(n){if(bte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Ha(n.modifiers).kind===134))return hu(n,f.Modifiers_cannot_appear_here);if(Rbe(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(G7e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return JE(n,n.end-1,1,f._0_expected,"{")}if(xbe(n))return!0}if(pi(n.parent)){if(ue<2&&Xi(n.name))return bn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return hM(n.name,f.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(n.kind===174&&!n.body)return hM(n.name,f.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(n.parent.kind===264)return hM(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return hM(n.name,f.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 Evt(n){let a=n;for(;a;){if(qx(a))return bn(n,f.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===251&&!ky(a.statement,!0)?bn(n,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(ky(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){let c=n.kind===252?f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return bn(n,c)}else{let c=n.kind===252?f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return bn(n,c)}}function Svt(n){if(n.dotDotDotToken){let a=n.parent.elements;if(n!==Ya(a))return bn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Ex(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return bn(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return JE(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function U7e(n){return Qp(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function Tvt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Avt(n){if((zr(n)||Ys(n)&&U7e(n.argumentExpression))&&zl(n.expression))return!!(ec(n).flags&1056)}function H7e(n){let a=n.initializer;if(a){let c=!(U7e(a)||Avt(a)||a.kind===112||a.kind===97||Tvt(a));if((j6(n)||Oi(n)&&xB(n))&&!n.type){if(c)return bn(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return bn(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function Ivt(n){let a=KE(n),c=a&7;if(ta(n.name))switch(c){case 6:return bn(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return bn(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)H7e(n);else if(!n.initializer){if(ta(n.name)&&!ta(n.parent))return bn(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return bn(n,f._0_declarations_must_be_initialized,"await using");case 4:return bn(n,f._0_declarations_must_be_initialized,"using");case 2:return bn(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){let d=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return bn(n.exclamationToken,d)}return(G<5||Vn(n).impliedNodeFormat===1)&&G!==4&&!(n.parent.parent.flags&33554432)&&ei(n.parent.parent,32)&&q7e(n.name),!!c&&J7e(n.name)}function q7e(n){if(n.kind===80){if(Sr(n)==="__esModule")return Dvt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let a=n.elements;for(let c of a)if(!Vc(c))return q7e(c.name)}return!1}function J7e(n){if(n.kind===80){if(n.escapedText==="let")return bn(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let a=n.elements;for(let c of a)Vc(c)||J7e(c.name)}return!1}function Cbe(n){let a=n.declarations;if(Ex(n.declarations))return!0;if(!n.declarations.length)return JE(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);let c=n.flags&7;return(c===4||c===6)&&t5(n.parent)?bn(n,c===4?f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:f.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?u3e(n):!1}function K7e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return K7e(n.parent)}return!0}function xvt(n){if(!K7e(n.parent)){let a=KE(n.declarationList)&7;if(a){let c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":C.fail("Unknown BlockScope flag");return bn(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Rvt(n){let a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return bn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Hi(n.name.escapedText),ma(n.keywordToken),"target");break;case 102:if(a!=="meta")return bn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Hi(n.name.escapedText),ma(n.keywordToken),"meta");break}}function qE(n){return n.parseDiagnostics.length>0}function hu(n,a,...c){let d=Vn(n);if(!qE(d)){let _=hh(d,n.pos);return ns.add(Qc(d,_.start,_.length,a,...c)),!0}return!1}function JE(n,a,c,d,..._){let y=Vn(n);return qE(y)?!1:(ns.add(Qc(y,a,c,d,..._)),!0)}function Dvt(n,a,c,...d){let _=Vn(a);return qE(_)?!1:(o_(n,a,c,...d),!0)}function bn(n,a,...c){let d=Vn(n);return qE(d)?!1:(ns.add(Or(n,a,...c)),!0)}function Cvt(n){let a=cr(n)?A3(n):void 0,c=n.typeParameters||a&&Xc(a);if(c){let d=c.pos===c.end?c.pos:La(Vn(n).text,c.pos);return JE(n,d,c.end-d,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Nvt(n){let a=n.type||tm(n);if(a)return bn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Pvt(n){if(Za(n.name)&&_r(n.name.expression)&&n.name.expression.operatorToken.kind===103)return bn(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(pi(n.parent)){if(Na(n.name)&&n.name.text==="constructor")return bn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(hM(n.name,f.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ue<2&&Xi(n.name))return bn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ue<2&&kd(n))return bn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(kd(n)&&Rbe(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(hM(n.name,f.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(C.assertNode(n,gp),n.initializer)return bn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(yp(n.parent)){if(hM(n.name,f.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(C.assertNode(n,gp),n.initializer)return bn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&H7e(n),Jo(n)&&n.exclamationToken&&(!pi(n.parent)||!n.type||n.initializer||n.flags&33554432||sa(n)||F1(n))){let a=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return bn(n.exclamationToken,a)}}function Mvt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||ei(n,2208)?!1:hu(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Lvt(n){for(let a of n.statements)if((qu(a)||a.kind===243)&&Mvt(a))return!0;return!1}function kvt(n){return!!(n.flags&33554432)&&Lvt(n)}function Ev(n){if(n.flags&33554432){if(!ti(n).hasReportedStatementInAmbientContext&&(ea(n.parent)||Ly(n.parent)))return ti(n).hasReportedStatementInAmbientContext=hu(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){let c=ti(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=hu(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Nbe(n){let a=pc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||a_(!1,Or(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function wvt(n){return!!(!(Yy(n.parent)||Qy(n.parent)&&Yy(n.parent.parent))&&ue<7&&bn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Ovt(n,a,...c){let d=Vn(n);if(!qE(d)){let _=hh(d,n.pos);return ns.add(Qc(d,ql(_),0,a,...c)),!0}return!1}function Fvt(){return Oc||(Oc=[],Se.forEach((n,a)=>{Wq.test(a)&&Oc.push(n)})),Oc}function Wvt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?bn(n,f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===275?X7e(n.namedBindings):!1}function X7e(n){return!!Ke(n.elements,a=>{if(a.isTypeOnly)return hu(a,a.kind===276?f.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:f.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function zvt(n){if(V.verbatimModuleSyntax&&G===1)return bn(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(G===5)return bn(n,f.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return bn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let a=n.arguments;if(G!==99&&G!==199&&G!==100&&(Ex(a),a.length>1)){let d=a[1];return bn(d,f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return bn(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let c=vn(a,Zm);return c?bn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Bvt(n,a){let c=Wr(n);if(c&20&&a.flags&1048576)return vn(a.types,d=>{if(d.flags&524288){let _=c&Wr(d);if(_&4)return n.target===d.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===d.aliasSymbol}return!1})}function Gvt(n,a){if(Wr(n)&128&&jm(a,gy))return vn(a.types,c=>!gy(c))}function Vvt(n,a){let c=0;if(Yo(n,c).length>0||(c=1,Yo(n,c).length>0))return vn(a.types,_=>Yo(_,c).length>0)}function jvt(n,a){let c;if(!(n.flags&406978556)){let d=0;for(let _ of a.types)if(!(_.flags&406978556)){let y=Ea([$_(n),$_(_)]);if(y.flags&4194304)return _;if(g_(y)||y.flags&1048576){let x=y.flags&1048576?au(y.types,g_):1;x>=d&&(c=_,d=x)}}}return c}function Uvt(n){if(Dl(n,67108864)){let a=uc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function Y7e(n,a,c){if(a.flags&1048576&&n.flags&2621440){let d=l8e(a,n);if(d)return d;let _=ys(n);if(_){let y=s8e(_,a);if(y){let x=vve(a,Ft(y,L=>[()=>pr(L),L.escapedName]),c);if(x!==a)return x}}}}function Pbe(n){let a=TS(n);return a||(Za(n)?jve(Ru(n.expression)):void 0)}function Ste(n){return Xn===n||(Xn=n,_n=t0(n)),_n}function KE(n){return rn===n||(rn=n,Nn=Lv(n)),Nn}function xB(n){let a=KE(n)&7;return a===2||a===4||a===6}}function WGe(e){return!Ly(e)}function nIe(e){return e.kind!==262&&e.kind!==174||!!e.body}function rIe(e){switch(e.parent.kind){case 276:case 281:return Ve(e);default:return Wg(e)}}function iIe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Xu(e){return!!(e.flags&1)}function Fq(e){return!!(e.flags&2)}function zGe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:oa(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:oa(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}}var Wq,j5,ale,sle,lle,cle,U5,zq,H5,q5,oIe,J5,ule,nf,Bq,BGe=A({"src/compiler/checker.ts"(){"use strict";ia(),ile(),oS(),Wq=/^".+"$/,j5="(anonymous)",ale=1,sle=1,lle=1,cle=1,U5=(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))(U5||{}),zq=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),H5=(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.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(H5||{}),q5=(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))(q5||{}),oIe=w8(nIe,WGe),J5=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),ule=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(nf||(nf={})),Bq=class bWe{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof bWe;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((o=this.inner)!=null&&o.trackSymbol)}trackSymbol(t,r,i){var o,s;if((o=this.inner)!=null&&o.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((s=this.context).trackedSymbols??(s.trackedSymbols=[])).push([t,r,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var o;(o=this.inner)!=null&&o.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function rt(e,t,r,i){if(e===void 0)return e;let o=t(e),s;if(o!==void 0)return Do(o)?s=(i||HGe)(o):s=o,C.assertNode(s,r),s}function Bn(e,t,r,i,o){if(e===void 0)return e;let s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,u=-1,p=-1;i>0||os-i)&&(o=s-i),aIe(e,t,r,i,o)}function aIe(e,t,r,i,o){let s,l=e.length;(i>0||o=2&&(o=GGe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function GGe(e,t){let r;for(let i=0;i{let l=iu,addSource:Ne,setSourceContent:me,addName:ie,addMapping:He,appendSourceMap:Ee,toJSON:Se,toString:()=>JSON.stringify(Se())};function Ne(at){s();let Bt=SA(i,at,e.getCurrentDirectory(),e.getCanonicalFileName,!0),yt=g.get(Bt);return yt===void 0&&(yt=p.length,p.push(Bt),u.push(at),g.set(Bt,yt)),l(),yt}function me(at,Bt){if(s(),Bt!==null){for(m||(m=[]);m.lengthBt||he===Bt&&ye>yt)}function He(at,Bt,yt,Qe,gt,nn){C.assert(at>=ue,"generatedLine cannot backtrack"),C.assert(Bt>=0,"generatedCharacter cannot be negative"),C.assert(yt===void 0||yt>=0,"sourceIndex cannot be negative"),C.assert(Qe===void 0||Qe>=0,"sourceLine cannot be negative"),C.assert(gt===void 0||gt>=0,"sourceCharacter cannot be negative"),s(),(ve(at,Bt)||Le(yt,Qe,gt))&&(Fe(),ue=at,G=Bt,oe=!1,fe=!1,Y=!0),yt!==void 0&&Qe!==void 0&>!==void 0&&(ne=yt,he=Qe,ye=gt,oe=!0,nn!==void 0&&($=nn,fe=!0)),l()}function Ee(at,Bt,yt,Qe,gt,nn){C.assert(at>=ue,"generatedLine cannot backtrack"),C.assert(Bt>=0,"generatedCharacter cannot be negative"),s();let rn=[],Nn,Xn=Uq(yt.mappings);for(let _n of Xn){if(nn&&(_n.generatedLine>nn.line||_n.generatedLine===nn.line&&_n.generatedCharacter>nn.character))break;if(gt&&(_n.generatedLine=1024&&At()}function Fe(){if(!(!Y||!Ce())){if(s(),M0&&(R+=String.fromCharCode.apply(void 0,I),I.length=0)}function Se(){return Fe(),At(),{version:3,file:t,sourceRoot:r,sources:p,names:b,mappings:R,sourcesContent:m}}function je(at){at<0?at=(-at<<1)+1:at=at<<1;do{let Bt=at&31;at=at>>5,at>0&&(Bt=Bt|32),Me(KGe(Bt))}while(at>0)}}function Vq(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function ple(e){for(let t=e.getLineCount()-1;t>=0;t--){let r=e.getLineText(t),i=K5.exec(r);if(i)return i[1].trimEnd();if(!r.match(X5))break}}function JGe(e){return typeof e=="string"||e===null}function fle(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Do(e.sources)&&Jn(e.sources,wo)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Do(e.sourcesContent)&&Jn(e.sourcesContent,JGe))&&(e.names===void 0||e.names===null||Do(e.names)&&Jn(e.names,wo))}function jq(e){try{let t=JSON.parse(e);if(fle(t))return t}catch{}}function Uq(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=0,p=0,g;return{get pos(){return r},get error(){return g},get state(){return m(!0,!0)},next(){for(;!t&&r=e.length)return T("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let Z=XGe(e.charCodeAt(r));if(Z===-1)return T("Invalid character in VLQ"),-1;O=(Z&32)!==0,K=K|(Z&31)<>1,K=-K):K=K>>1,K}}function lIe(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 mle(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function KGe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:C.fail(`${e}: not a base64 value`)}function XGe(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function cIe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function uIe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function YGe(e,t){return C.assert(e.sourceIndex===t.sourceIndex),tl(e.sourcePosition,t.sourcePosition)}function $Ge(e,t){return tl(e.generatedPosition,t.generatedPosition)}function QGe(e){return e.sourcePosition}function ZGe(e){return e.generatedPosition}function _le(e,t,r){let i=li(r),o=t.sourceRoot?bo(t.sourceRoot,i):i,s=bo(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(H=>bo(H,o)),p=new Map(u.map((H,K)=>[e.getCanonicalFileName(H),K])),g,m,b;return{getSourcePosition:O,getGeneratedPosition:N};function T(H){let K=l!==void 0?JM(l,H.generatedLine,H.generatedCharacter,!0):-1,Z,V;if(mle(H)){let ue=e.getSourceFileLike(u[H.sourceIndex]);Z=t.sources[H.sourceIndex],V=ue!==void 0?JM(ue,H.sourceLine,H.sourceCharacter,!0):-1}return{generatedPosition:K,source:Z,sourceIndex:H.sourceIndex,sourcePosition:V,nameIndex:H.nameIndex}}function I(){if(g===void 0){let H=Uq(t.mappings),K=Vo(H,T);H.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${H.error}`),g=et):g=K}return g}function R(H){if(b===void 0){let K=[];for(let Z of I()){if(!cIe(Z))continue;let V=K[Z.sourceIndex];V||(K[Z.sourceIndex]=V=[]),V.push(Z)}b=K.map(Z=>XD(Z,YGe,uIe))}return b[H]}function M(){if(m===void 0){let H=[];for(let K of I())H.push(K);m=XD(H,$Ge,uIe)}return m}function N(H){let K=p.get(e.getCanonicalFileName(H.fileName));if(K===void 0)return H;let Z=R(K);if(!Et(Z))return H;let V=_A(Z,H.pos,QGe,tl);V<0&&(V=~V);let ue=Z[V];return ue===void 0||ue.sourceIndex!==K?H:{fileName:s,pos:ue.generatedPosition}}function O(H){let K=M();if(!Et(K))return H;let Z=_A(K,H.pos,ZGe,tl);Z<0&&(Z=~Z);let V=K[Z];return V===void 0||!cIe(V)?H:{fileName:u[V.sourceIndex],pos:V.sourcePosition}}}var Hq,K5,X5,Y5,eVe=A({"src/compiler/sourcemap.ts"(){"use strict";ia(),oS(),Hq=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,K5=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,X5=/^\s*(\/\/[@#] .*)?$/,Y5={getSourcePosition:el,getGeneratedPosition:el}}});function Ou(e){return e=Nl(e),e?ss(e):0}function tVe(e){return!e||!jg(e)?!1:Et(e.elements,dIe)}function dIe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Nm(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(Ft(o.sourceFiles,t),o.prepends)}}function hle(e){return!!dR(e)}function $5(e){if(dR(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!jg(t))return!1;let r=0;for(let i of t.elements)dIe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&MA(e)}function qq(e){return!$5(e)&&(MA(e)||!!e.importClause&&jg(e.importClause.namedBindings)&&tVe(e.importClause.namedBindings))}function Jq(e,t){let r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new $q,l=[],u=new Map,p,g=!1,m,b=!1,T=!1,I=!1;for(let N of t.statements)switch(N.kind){case 272:o.push(N),!T&&$5(N)&&(T=!0),!I&&qq(N)&&(I=!0);break;case 271:N.moduleReference.kind===283&&o.push(N);break;case 278:if(N.moduleSpecifier)if(!N.exportClause)o.push(N),b=!0;else if(o.push(N),Df(N.exportClause))M(N);else{let O=N.exportClause.name;u.get(Sr(O))||(BN(l,Ou(N),O),u.set(Sr(O),!0),p=In(p,O)),T=!0}else M(N);break;case 277:N.isExportEquals&&!m&&(m=N);break;case 243:if(ei(N,32))for(let O of N.declarationList.declarations)p=pIe(O,u,p,l);break;case 262:if(ei(N,32))if(ei(N,2048))g||(BN(l,Ou(N),e.factory.getDeclarationName(N)),g=!0);else{let O=N.name;u.get(Sr(O))||(BN(l,Ou(N),O),u.set(Sr(O),!0),p=In(p,O))}break;case 263:if(ei(N,32))if(ei(N,2048))g||(BN(l,Ou(N),e.factory.getDeclarationName(N)),g=!0);else{let O=N.name;O&&!u.get(Sr(O))&&(BN(l,Ou(N),O),u.set(Sr(O),!0),p=In(p,O))}break}let R=WH(e.factory,e.getEmitHelperFactory(),t,i,b,T,I);return R&&o.unshift(R),{externalImports:o,exportSpecifiers:s,exportEquals:m,hasExportStarsToExportValues:b,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:R};function M(N){for(let O of aa(N.exportClause,Df).elements)if(!u.get(Sr(O.name))){let H=O.propertyName||O.name;N.moduleSpecifier||s.add(H,O);let K=r.getReferencedImportDeclaration(H)||r.getReferencedValueDeclaration(H);K&&BN(l,Ou(K),O.name),u.set(Sr(O.name),!0),p=In(p,O.name)}}}function pIe(e,t,r,i){if(ta(e.name))for(let o of e.name.elements)Vc(o)||(r=pIe(o,t,r,i));else if(!ol(e.name)){let o=Sr(e.name);t.get(o)||(t.set(o,!0),r=In(r,e.name),Ug(e.name)&&BN(i,Ou(e),e.name))}return r}function BN(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function rE(e){return us(e)||e.kind===9||Fd(e.kind)||Ve(e)}function F_(e){return!Ve(e)&&rE(e)}function GN(e){return e>=65&&e<=79}function VN(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function Q5(e){if(!eu(e))return;let t=vs(e.expression);return gS(t)?t:void 0}function fIe(e,t,r){for(let i=t;irVe(i,t,r))}function nVe(e){return iVe(e)||Il(e)}function eF(e){return tr(e.members,nVe)}function rVe(e,t,r){return Jo(e)&&(!!e.initializer||!t)&&fc(e)===r}function iVe(e){return Jo(e)&&fc(e)}function Dw(e){return e.kind===172&&e.initializer!==void 0}function gle(e){return!sa(e)&&(RA(e)||kd(e))&&Xi(e.name)}function vle(e){let t;if(e){let r=e.parameters,i=r.length>0&&w1(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lYq(r.privateEnv,t))}function Sle(e){return!e.initializer&&Ve(e.name)}function Cw(e){return Jn(e,Sle)}var bI,$q,sVe=A({"src/compiler/transformers/utilities.ts"(){"use strict";ia(),bI=class KD{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(KD.toKey(t))}get(t){return this._map.get(KD.toKey(t))}set(t,r){return this._map.set(KD.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(KD.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(cS(t)||ol(t)){let r=t.emitNode.autoGenerate;if((r.flags&7)===4){let i=ew(t),o=Yh(i)&&i!==t?KD.toKey(i):`(generated@${ss(i)})`;return E0(!1,r.prefix,o,r.suffix,KD.toKey)}else{let i=`(auto@${r.id})`;return E0(!1,r.prefix,i,r.suffix,KD.toKey)}}return Xi(t)?Sr(t).slice(1):Sr(t)}},$q=class extends bI{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){let r=this.get(e);r&&(vA(r,t),r.length||this.delete(e))}}}});function JS(e,t,r,i,o,s){let l=e,u;if(Bv(e))for(u=e.right;coe(e.left)||dU(e.left);)if(Bv(u))l=e=u,u=e.right;else return C.checkDefined(rt(u,t,bt));let p,g={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:b,createArrayBindingOrAssignmentPattern:T=>_Ve(r.factory,T),createObjectBindingOrAssignmentPattern:T=>gVe(r.factory,T),createArrayBindingOrAssignmentElement:yVe,visitor:t};if(u&&(u=rt(u,t,bt),C.assert(u),Ve(u)&&Tle(e,u.escapedText)||Ale(e)?u=EI(g,u,!1,l):o?u=EI(g,u,!0,l):Xs(e)&&(l=u)),jN(g,e,u,l,Bv(e)),u&&o){if(!Et(p))return u;p.push(u)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function m(T){p=In(p,T)}function b(T,I,R,M){C.assertNode(T,s?Ve:bt);let N=s?s(T,I,R):dt(r.factory.createAssignment(C.checkDefined(rt(T,t,bt)),I),R);N.original=M,m(N)}}function Tle(e,t){let r=eb(e);return uL(r)?lVe(r,t):Ve(r)?r.escapedText===t:!1}function lVe(e,t){let r=KR(e);for(let i of r)if(Tle(i,t))return!0;return!1}function Ale(e){let t=f5(e);if(t&&Za(t)&&!S1(t.expression))return!0;let r=eb(e);return!!r&&uL(r)&&cVe(r)}function cVe(e){return!!Ke(KR(e),Ale)}function iE(e,t,r,i,o,s=!1,l){let u,p=[],g=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:b,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:I=>mVe(r.factory,I),createObjectBindingOrAssignmentPattern:I=>hVe(r.factory,I),createArrayBindingOrAssignmentElement:I=>vVe(r.factory,I),visitor:t};if(Oi(e)){let I=Qk(e);I&&(Ve(I)&&Tle(e,I.escapedText)||Ale(e))&&(I=EI(m,C.checkDefined(rt(I,m.visitor,bt)),!1,I),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,I))}if(jN(m,e,o,e,l),u){let I=r.factory.createTempVariable(void 0);if(s){let R=r.factory.inlineExpressions(u);u=void 0,T(I,R,void 0,void 0)}else{r.hoistVariableDeclaration(I);let R=Ya(p);R.pendingExpressions=In(R.pendingExpressions,r.factory.createAssignment(I,R.value)),Jr(R.pendingExpressions,u),R.value=I}}for(let{pendingExpressions:I,name:R,value:M,location:N,original:O}of p){let H=r.factory.createVariableDeclaration(R,void 0,void 0,I?r.factory.inlineExpressions(In(I,M)):M);H.original=O,dt(H,N),g.push(H)}return g;function b(I){u=In(u,I)}function T(I,R,M,N){C.assertNode(I,uS),u&&(R=r.factory.inlineExpressions(In(u,R)),u=void 0),p.push({pendingExpressions:u,name:I,value:R,location:M,original:N})}}function jN(e,t,r,i,o){let s=eb(t);if(!o){let l=rt(Qk(t),e.visitor,bt);l?r?(r=pVe(e,r,l,i),!F_(l)&&uL(s)&&(r=EI(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}XV(s)?uVe(e,t,s,r,i):YV(s)?dVe(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function uVe(e,t,r,i,o){let s=KR(r),l=s.length;if(l!==1){let g=!cL(t)||l!==0;i=EI(e,i,g,o)}let u,p;for(let g=0;g=1&&!(m.transformFlags&98304)&&!(eb(m).transformFlags&98304)&&!Za(b))u=In(u,rt(m,e.visitor,Pre));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);let T=fVe(e,i,b);Za(b)&&(p=In(p,T.argumentExpression)),jN(e,m,T,m)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function dVe(e,t,r,i,o){let s=KR(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=EI(e,dt(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&p5(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Jn(s,Vc)){let g=!cL(t)||l!==0;i=EI(e,i,g,o)}let u,p;for(let g=0;g=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!_Ie(m)){e.hasTransformedPriorElement=!0;let b=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(b),p=In(p,[b,m]),u=In(u,e.createArrayBindingOrAssignmentElement(b))}else u=In(u,m);else{if(Vc(m))continue;if(p5(m)){if(g===l-1){let b=e.context.factory.createArraySliceCall(i,g);jN(e,m,b,m)}}else{let b=e.context.factory.createElementAccessExpression(i,g);jN(e,m,b,m)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),p)for(let[g,m]of p)jN(e,m,g,m)}function _Ie(e){let t=eb(e);if(!t||Vc(t))return!0;let r=f5(e);if(r&&!R_(r))return!1;let i=Qk(e);return i&&!F_(i)?!1:uL(t)?Jn(KR(t),_Ie):Ve(t)}function pVe(e,t,r,i){return t=EI(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function fVe(e,t,r){let{factory:i}=e.context;if(Za(r)){let o=EI(e,C.checkDefined(rt(r.expression,e.visitor,bt)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(Qp(r)){let o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{let o=e.context.factory.createIdentifier(Sr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function EI(e,t,r,i){if(Ve(t)&&r)return t;{let o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(dt(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function mVe(e,t){return C.assertEachNode(t,A6),e.createArrayBindingPattern(t)}function _Ve(e,t){return C.assertEachNode(t,pL),e.createArrayLiteralExpression(Ft(t,e.converters.convertToArrayAssignmentElement))}function hVe(e,t){return C.assertEachNode(t,Qa),e.createObjectBindingPattern(t)}function gVe(e,t){return C.assertEachNode(t,dL),e.createObjectLiteralExpression(Ft(t,e.converters.convertToObjectAssignmentElement))}function vVe(e,t){return e.createBindingElement(void 0,void 0,t)}function yVe(e){return e}var Qq,bVe=A({"src/compiler/transformers/destructuring.ts"(){"use strict";ia(),Qq=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(Qq||{})}});function Ile(e,t,r=e.createThis()){let i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return wu(l).classThis=t,l}function UN(e){var t;if(!Il(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return eu(r)&&Mc(r.expression,!0)&&Ve(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function Zq(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&Et(e.members,UN)}function xle(e,t,r,i){if(Zq(t))return t;let o=Ile(e,r,i);t.name&&Ca(o.body.statements[0],t.name);let s=e.createNodeArray([o,...t.members]);dt(s,t.members);let l=Tc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s);return wu(l).classThis=r,l}var EVe=A({"src/compiler/transformers/classThis.ts"(){"use strict";ia()}});function HN(e,t,r){let i=Nl(Xl(r));return(Tc(i)||Sc(i))&&!i.name&&ei(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function hIe(e,t,r){let{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(R_(t)||Xi(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(R_(t.expression)&&!Ve(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};let o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);let s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),u=i.updateComputedPropertyName(t,l);return{assignedName:o,name:u}}function Rle(e,t,r=e.factory.createThis()){let{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),u=i.createClassStaticBlockDeclaration(l);return wu(u).assignedName=t,u}function SI(e){var t;if(!Il(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return eu(r)&&_N(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function nF(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&Et(e.members,SI)}function eJ(e){return!!e.name||nF(e)}function rF(e,t,r,i){if(nF(t))return t;let{factory:o}=e,s=Rle(e,r,i);t.name&&Ca(s.body.statements[0],t.name);let l=ri(t.members,UN)+1,u=t.members.slice(0,l),p=t.members.slice(l),g=o.createNodeArray([...u,s,...p]);return dt(g,t.members),t=Tc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),wu(t).assignedName=r,t}function o2(e,t,r,i){if(i&&Na(r)&&Rj(r))return t;let{factory:o}=e,s=Xl(t),l=Zc(s)?aa(rF(e,s,r),Zc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function SVe(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=hIe(e,t.name,i),u=o2(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function TVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):HN(o,t.name,t.objectAssignmentInitializer),l=o2(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function AVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):HN(o,t.name,t.initializer),l=o2(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function IVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):HN(o,t.name,t.initializer),l=o2(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function xVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):HN(o,t.name,t.initializer),l=o2(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function RVe(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=hIe(e,t.name,i),u=o2(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,u)}function DVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):HN(o,t.left,t.right),l=o2(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function CVe(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=o2(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function bp(e,t,r,i){switch(t.kind){case 303:return SVe(e,t,r,i);case 304:return TVe(e,t,r,i);case 260:return AVe(e,t,r,i);case 169:return IVe(e,t,r,i);case 208:return xVe(e,t,r,i);case 172:return RVe(e,t,r,i);case 226:return DVe(e,t,r,i);case 277:return CVe(e,t,r,i)}}var NVe=A({"src/compiler/transformers/namedEvaluation.ts"(){"use strict";ia()}});function tJ(e,t,r,i,o,s){let l=rt(t.tag,r,bt);C.assert(l);let u=[void 0],p=[],g=[],m=t.template;if(s===0&&!Qj(m))return An(t,r,e);let{factory:b}=e;if(QA(m))p.push(Dle(b,m)),g.push(Cle(b,m,i));else{p.push(Dle(b,m.head)),g.push(Cle(b,m.head,i));for(let I of m.templateSpans)p.push(Dle(b,I.literal)),g.push(Cle(b,I.literal,i)),u.push(C.checkDefined(rt(I.expression,r,bt)))}let T=e.getEmitHelperFactory().createTemplateObjectHelper(b.createArrayLiteralExpression(p),b.createArrayLiteralExpression(g));if(ac(i)){let I=b.createUniqueName("templateObject");o(I),u[0]=b.createLogicalOr(I,b.createAssignment(I,T))}else u[0]=T;return b.createCallExpression(l,void 0,u)}function Dle(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function Cle(e,t,r){let i=t.rawText;if(i===void 0){C.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=A1(r,t);let o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,` +`),dt(e.createStringLiteral(i),t)}var nJ,PVe=A({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";ia(),nJ=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(nJ||{})}});function Nle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),p=e.getCompilerOptions(),g=as(p),m=ku(p),b=!!p.experimentalDecorators,T=p.emitDecoratorMetadata?Mle(e):void 0,I=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=sc,e.onSubstituteNode=Rl,e.enableSubstitution(211),e.enableSubstitution(212);let M,N,O,H,K,Z,V,ue;return G;function G(ee){return ee.kind===313?ne(ee):he(ee)}function ne(ee){return t.createBundle(ee.sourceFiles.map(he),Vi(ee.prepends,we=>we.kind===315?nH(we,"js"):we))}function he(ee){if(ee.isDeclarationFile)return ee;M=ee;let we=ye(ee,at);return Vg(we,e.readEmitHelpers()),M=void 0,we}function ye(ee,we){let St=H,pn=K,Tr=Z;$(ee);let gr=we(ee);return H!==St&&(K=pn),H=St,Z=Tr,gr}function $(ee){switch(ee.kind){case 312:case 269:case 268:case 241:H=ee,K=void 0;break;case 263:case 262:if(ei(ee,128))break;ee.name?J(ee):C.assert(ee.kind===263||ei(ee,2048));break}}function Y(ee){return ye(ee,oe)}function oe(ee){return ee.transformFlags&1?je(ee):ee}function fe(ee){return ye(ee,Ne)}function Ne(ee){switch(ee.kind){case 272:case 271:case 277:case 278:return ie(ee);default:return oe(ee)}}function me(ee){let we=Lo(ee);if(we===ee||Ll(ee))return!1;if(!we||we.kind!==ee.kind)return!0;switch(ee.kind){case 272:if(C.assertNode(we,Lc),ee.importClause!==we.importClause||ee.attributes!==we.attributes)return!0;break;case 271:if(C.assertNode(we,tu),ee.name!==we.name||ee.isTypeOnly!==we.isTypeOnly||ee.moduleReference!==we.moduleReference&&(Qd(ee.moduleReference)||Qd(we.moduleReference)))return!0;break;case 278:if(C.assertNode(we,Kl),ee.exportClause!==we.exportClause||ee.attributes!==we.attributes)return!0;break}return!1}function ie(ee){if(me(ee))return ee.transformFlags&1?An(ee,Y,e):ee;switch(ee.kind){case 272:return Tn(ee);case 271:return Po(ee);case 277:return Di(ee);case 278:return or(ee);default:C.fail("Unhandled ellided statement")}}function ve(ee){return ye(ee,Le)}function Le(ee){if(!(ee.kind===278||ee.kind===272||ee.kind===273||ee.kind===271&&ee.moduleReference.kind===283))return ee.transformFlags&1||ei(ee,32)?je(ee):ee}function He(ee){return we=>ye(we,St=>Ee(St,ee))}function Ee(ee,we){switch(ee.kind){case 176:return Rn(ee);case 172:return zt(ee,we);case 177:return ja(ee,we);case 178:return En(ee,we);case 174:return No(ee,we);case 175:return An(ee,Y,e);case 240:return ee;case 181:return;default:return C.failBadSyntaxKind(ee)}}function Ce(ee){return we=>ye(we,St=>Me(St,ee))}function Me(ee,we){switch(ee.kind){case 303:case 304:case 305:return Y(ee);case 177:return ja(ee,we);case 178:return En(ee,we);case 174:return No(ee,we);default:return C.failBadSyntaxKind(ee)}}function Fe(ee){return Eu(ee)?void 0:Y(ee)}function At(ee){return Ia(ee)?void 0:Y(ee)}function Se(ee){if(!Eu(ee)&&!(zA(ee.kind)&28895)&&!(N&&ee.kind===95))return ee}function je(ee){if(Ki(ee)&&ei(ee,128))return t.createNotEmittedStatement(ee);switch(ee.kind){case 95:case 90:return N?void 0:ee;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(ee);case 270:return;case 264:return t.createNotEmittedStatement(ee);case 263:return nn(ee);case 231:return rn(ee);case 298:return xr(ee);case 233:return ln(ee);case 210:return Bt(ee);case 176:case 172:case 174:case 177:case 178:case 175:return C.fail("Class and object literal elements must be visited with their respective visitors");case 262:return wn(ee);case 218:return Ue(ee);case 219:return mt(ee);case 169:return ft(ee);case 217:return pt(ee);case 216:case 234:return j(ee);case 238:return xt(ee);case 213:return Ye(ee);case 214:return ht(ee);case 215:return Vt(ee);case 235:return ot(ee);case 266:return q(ee);case 243:return Nt(ee);case 260:return We(ee);case 267:return Dt(ee);case 271:return Po(ee);case 285:return yn(ee);case 286:return fn(ee);default:return An(ee,Y,e)}}function at(ee){let we=ud(p,"alwaysStrict")&&!(ac(ee)&&m>=5)&&!$f(ee);return t.updateSourceFile(ee,Gq(ee.statements,fe,e,0,we))}function Bt(ee){return t.updateObjectLiteralExpression(ee,Bn(ee.properties,Ce(ee),wg))}function yt(ee){let we=0;Et(Kq(ee,!0,!0))&&(we|=1);let St=x_(ee);return St&&Xl(St.expression).kind!==106&&(we|=64),Ov(b,ee)&&(we|=2),xC(b,ee)&&(we|=4),Dn(ee)?we|=8:Fo(ee)?we|=32:Yl(ee)&&(we|=16),we}function Qe(ee){return!!(ee.transformFlags&8192)}function gt(ee){return Sf(ee)||Et(ee.typeParameters)||Et(ee.heritageClauses,Qe)||Et(ee.members,Qe)}function nn(ee){let we=yt(ee),St=g<=1&&!!(we&7);if(!gt(ee)&&!Ov(b,ee)&&!Dn(ee))return t.updateClassDeclaration(ee,Bn(ee.modifiers,Se,Ia),ee.name,void 0,Bn(ee.heritageClauses,Y,ef),Bn(ee.members,He(ee),$c));St&&e.startLexicalEnvironment();let pn=St||we&8,Tr=pn?Bn(ee.modifiers,At,al):Bn(ee.modifiers,Y,al);we&2&&(Tr=Xn(Tr,ee));let jr=pn&&!ee.name||we&4||we&1?ee.name??t.getGeneratedNameForNode(ee):ee.name,Ni=t.updateClassDeclaration(ee,Tr,jr,void 0,Bn(ee.heritageClauses,Y,ef),Nn(ee)),Lr=Va(ee);we&1&&(Lr|=64),fr(Ni,Lr);let $o;if(St){let El=[Ni],Uc=fU(La(M.text,ee.members.end),20),js=t.getInternalName(ee),gc=t.createPartiallyEmittedExpression(js);CR(gc,Uc.end),fr(gc,3072);let Ts=t.createReturnStatement(gc);nN(Ts,Uc.pos),fr(Ts,3840),El.push(Ts),Qh(El,e.endLexicalEnvironment());let Hc=t.createImmediatelyInvokedArrowFunction(El);Pk(Hc,1);let ip=t.createVariableDeclaration(t.getLocalName(ee,!1,!1),void 0,void 0,Hc);Pr(ip,ee);let Oc=t.createVariableStatement(void 0,t.createVariableDeclarationList([ip],1));Pr(Oc,ee),oc(Oc,ee),Ca(Oc,zg(ee)),Ku(Oc),$o=Oc}else $o=Ni;if(pn){if(we&8)return[$o,ds(ee)];if(we&32)return[$o,t.createExportDefault(t.getLocalName(ee,!1,!0))];if(we&16)return[$o,t.createExternalModuleExport(t.getDeclarationName(ee,!1,!0))]}return $o}function rn(ee){let we=Bn(ee.modifiers,At,al);return Ov(b,ee)&&(we=Xn(we,ee)),t.updateClassExpression(ee,we,ee.name,void 0,Bn(ee.heritageClauses,Y,ef),Nn(ee))}function Nn(ee){let we=Bn(ee.members,He(ee),$c),St,pn=ig(ee),Tr=pn&&tr(pn.parameters,gr=>pp(gr,pn));if(Tr)for(let gr of Tr){let jr=t.createPropertyDeclaration(void 0,gr.name,void 0,void 0,void 0);Pr(jr,gr),St=In(St,jr)}return St?(St=Jr(St,we),dt(t.createNodeArray(St),ee.members)):we}function Xn(ee,we){let St=Qt(we,we);if(Et(St)){let pn=[];Jr(pn,W8(ee,Zk)),Jr(pn,tr(ee,Eu)),Jr(pn,St),Jr(pn,tr(Cne(ee,Zk),Ia)),ee=dt(t.createNodeArray(pn),ee)}return ee}function _n(ee,we,St){if(pi(St)&&xj(b,we,St)){let pn=Qt(we,St);if(Et(pn)){let Tr=[];Jr(Tr,tr(ee,Eu)),Jr(Tr,pn),Jr(Tr,tr(ee,Ia)),ee=dt(t.createNodeArray(Tr),ee)}}return ee}function Qt(ee,we){if(b)return gIe?vi(ee,we):Yt(ee,we)}function Yt(ee,we){if(T){let St;if(ho(ee)){let pn=r().createMetadataHelper("design:type",T.serializeTypeOfNode({currentLexicalScope:H,currentNameScope:we},ee));St=In(St,t.createDecorator(pn))}if(Ro(ee)){let pn=r().createMetadataHelper("design:paramtypes",T.serializeParameterTypesOfNode({currentLexicalScope:H,currentNameScope:we},ee,we));St=In(St,t.createDecorator(pn))}if(ki(ee)){let pn=r().createMetadataHelper("design:returntype",T.serializeReturnTypeOfNode({currentLexicalScope:H,currentNameScope:we},ee));St=In(St,t.createDecorator(pn))}return St}}function vi(ee,we){if(T){let St;if(ho(ee)){let pn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeTypeOfNode({currentLexicalScope:H,currentNameScope:we},ee)));St=In(St,pn)}if(Ro(ee)){let pn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeParameterTypesOfNode({currentLexicalScope:H,currentNameScope:we},ee,we)));St=In(St,pn)}if(ki(ee)){let pn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),T.serializeReturnTypeOfNode({currentLexicalScope:H,currentNameScope:we},ee)));St=In(St,pn)}if(St){let pn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(St,!0));return[t.createDecorator(pn)]}}}function ho(ee){let we=ee.kind;return we===174||we===177||we===178||we===172}function ki(ee){return ee.kind===174}function Ro(ee){switch(ee.kind){case 263:case 231:return ig(ee)!==void 0;case 174:case 177:case 178:return!0}return!1}function nr(ee,we){let St=ee.name;return Xi(St)?t.createIdentifier(""):Za(St)?we&&!F_(St.expression)?t.getGeneratedNameForNode(St):St.expression:Ve(St)?t.createStringLiteral(Sr(St)):t.cloneNode(St)}function qr(ee){let we=ee.name;if(Za(we)&&(!fc(ee)&&Z||Sf(ee)&&b)){let St=rt(we.expression,Y,bt);C.assert(St);let pn=Sm(St);if(!F_(pn)){let Tr=t.getGeneratedNameForNode(we);return l(Tr),t.updateComputedPropertyName(we,t.createAssignment(Tr,St))}}return C.checkDefined(rt(we,Y,ic))}function xr(ee){if(ee.token!==119)return An(ee,Y,e)}function ln(ee){return t.updateExpressionWithTypeArguments(ee,C.checkDefined(rt(ee.expression,Y,Zd)),void 0)}function tt(ee){return!Fl(ee.body)}function zt(ee,we){let St=ee.flags&33554432||ei(ee,64);if(St&&!(b&&Sf(ee)))return;let pn=pi(we)?St?Bn(ee.modifiers,At,al):Bn(ee.modifiers,Y,al):Bn(ee.modifiers,Fe,al);return pn=_n(pn,ee,we),St?t.updatePropertyDeclaration(ee,xo(pn,t.createModifiersFromModifierFlags(128)),C.checkDefined(rt(ee.name,Y,ic)),void 0,void 0,void 0):t.updatePropertyDeclaration(ee,pn,qr(ee),void 0,void 0,rt(ee.initializer,Y,bt))}function Rn(ee){if(tt(ee))return t.updateConstructorDeclaration(ee,void 0,xl(ee.parameters,Y,e),bi(ee.body,ee))}function ui(ee,we,St,pn,Tr,gr){let jr=pn[Tr],Ni=we[jr];if(Jr(ee,Bn(we,Y,Ki,St,jr-St)),WS(Ni)){let Lr=[];ui(Lr,Ni.tryBlock.statements,0,pn,Tr+1,gr);let $o=t.createNodeArray(Lr);dt($o,Ni.tryBlock.statements),ee.push(t.updateTryStatement(Ni,t.updateBlock(Ni.tryBlock,Lr),rt(Ni.catchClause,Y,$1),rt(Ni.finallyBlock,Y,Xo)))}else Jr(ee,Bn(we,Y,Ki,jr,1)),Jr(ee,gr);Jr(ee,Bn(we,Y,Ki,jr+1))}function bi(ee,we){let St=we&&tr(we.parameters,Lr=>pp(Lr,we));if(!Et(St))return rf(ee,Y,e);let pn=[];o();let Tr=t.copyPrologue(ee.statements,pn,!1,Y),gr=Z5(ee.statements,Tr),jr=Vi(St,ro);gr.length?ui(pn,ee.statements,Tr,gr,0,jr):(Jr(pn,jr),Jr(pn,Bn(ee.statements,Y,Ki,Tr))),pn=t.mergeLexicalEnvironment(pn,s());let Ni=t.createBlock(dt(t.createNodeArray(pn),ee.statements),!0);return dt(Ni,ee),Pr(Ni,ee),Ni}function ro(ee){let we=ee.name;if(!Ve(we))return;let St=qa(dt(t.cloneNode(we),we),we.parent);fr(St,3168);let pn=qa(dt(t.cloneNode(we),we),we.parent);return fr(pn,3072),Ku(Nk(dt(Pr(t.createExpressionStatement(t.createAssignment(dt(t.createPropertyAccessExpression(t.createThis(),St),ee.name),pn)),ee),f0(ee,-1))))}function No(ee,we){if(!(ee.transformFlags&1))return ee;if(!tt(ee))return;let St=pi(we)?Bn(ee.modifiers,Y,al):Bn(ee.modifiers,Fe,al);return St=_n(St,ee,we),t.updateMethodDeclaration(ee,St,ee.asteriskToken,qr(ee),void 0,void 0,xl(ee.parameters,Y,e),void 0,rf(ee.body,Y,e))}function _a(ee){return!(Fl(ee.body)&&ei(ee,64))}function ja(ee,we){if(!(ee.transformFlags&1))return ee;if(!_a(ee))return;let St=pi(we)?Bn(ee.modifiers,Y,al):Bn(ee.modifiers,Fe,al);return St=_n(St,ee,we),t.updateGetAccessorDeclaration(ee,St,qr(ee),xl(ee.parameters,Y,e),void 0,rf(ee.body,Y,e)||t.createBlock([]))}function En(ee,we){if(!(ee.transformFlags&1))return ee;if(!_a(ee))return;let St=pi(we)?Bn(ee.modifiers,Y,al):Bn(ee.modifiers,Fe,al);return St=_n(St,ee,we),t.updateSetAccessorDeclaration(ee,St,qr(ee),xl(ee.parameters,Y,e),rf(ee.body,Y,e)||t.createBlock([]))}function wn(ee){if(!tt(ee))return t.createNotEmittedStatement(ee);let we=t.updateFunctionDeclaration(ee,Bn(ee.modifiers,Se,Ia),ee.asteriskToken,ee.name,void 0,xl(ee.parameters,Y,e),void 0,rf(ee.body,Y,e)||t.createBlock([]));if(Dn(ee)){let St=[we];return Gs(St,ee),St}return we}function Ue(ee){return tt(ee)?t.updateFunctionExpression(ee,Bn(ee.modifiers,Se,Ia),ee.asteriskToken,ee.name,void 0,xl(ee.parameters,Y,e),void 0,rf(ee.body,Y,e)||t.createBlock([])):t.createOmittedExpression()}function mt(ee){return t.updateArrowFunction(ee,Bn(ee.modifiers,Se,Ia),void 0,xl(ee.parameters,Y,e),void 0,ee.equalsGreaterThanToken,rf(ee.body,Y,e))}function ft(ee){if(w1(ee))return;let we=t.updateParameterDeclaration(ee,Bn(ee.modifiers,St=>Eu(St)?Y(St):void 0,al),ee.dotDotDotToken,C.checkDefined(rt(ee.name,Y,uS)),void 0,void 0,rt(ee.initializer,Y,bt));return we!==ee&&(oc(we,ee),dt(we,P_(ee)),Ca(we,P_(ee)),fr(we.name,64)),we}function Nt(ee){if(Dn(ee)){let we=qC(ee.declarationList);return we.length===0?void 0:dt(t.createExpressionStatement(t.inlineExpressions(Ft(we,le))),ee)}else return An(ee,Y,e)}function le(ee){let we=ee.name;return ta(we)?JS(ee,Y,e,0,!1,uu):dt(t.createAssignment(yo(we),C.checkDefined(rt(ee.initializer,Y,bt))),ee)}function We(ee){let we=t.updateVariableDeclaration(ee,C.checkDefined(rt(ee.name,Y,uS)),void 0,void 0,rt(ee.initializer,Y,bt));return ee.type&&mae(we.name,ee.type),we}function pt(ee){let we=Xl(ee.expression,-7);if(pS(we)){let St=rt(ee.expression,Y,bt);return C.assert(St),t.createPartiallyEmittedExpression(St,ee)}return An(ee,Y,e)}function j(ee){let we=rt(ee.expression,Y,bt);return C.assert(we),t.createPartiallyEmittedExpression(we,ee)}function ot(ee){let we=rt(ee.expression,Y,Zd);return C.assert(we),t.createPartiallyEmittedExpression(we,ee)}function xt(ee){let we=rt(ee.expression,Y,bt);return C.assert(we),t.createPartiallyEmittedExpression(we,ee)}function Ye(ee){return t.updateCallExpression(ee,C.checkDefined(rt(ee.expression,Y,bt)),void 0,Bn(ee.arguments,Y,bt))}function ht(ee){return t.updateNewExpression(ee,C.checkDefined(rt(ee.expression,Y,bt)),void 0,Bn(ee.arguments,Y,bt))}function Vt(ee){return t.updateTaggedTemplateExpression(ee,C.checkDefined(rt(ee.tag,Y,bt)),void 0,C.checkDefined(rt(ee.template,Y,DA)))}function yn(ee){return t.updateJsxSelfClosingElement(ee,C.checkDefined(rt(ee.tagName,Y,yC)),void 0,C.checkDefined(rt(ee.attributes,Y,Y1)))}function fn(ee){return t.updateJsxOpeningElement(ee,C.checkDefined(rt(ee.tagName,Y,yC)),void 0,C.checkDefined(rt(ee.attributes,Y,Y1)))}function mn(ee){return!x1(ee)||V1(p)}function q(ee){if(!mn(ee))return t.createNotEmittedStatement(ee);let we=[],St=4,pn=ke(we,ee);pn&&(m!==4||H!==M)&&(St|=1024);let Tr=pa(ee),gr=du(ee),jr=Dn(ee)?t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0):t.getDeclarationName(ee,!1,!0),Ni=t.createLogicalOr(jr,t.createAssignment(jr,t.createObjectLiteralExpression()));if(Dn(ee)){let $o=t.getLocalName(ee,!1,!0);Ni=t.createAssignment($o,Ni)}let Lr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Tr)],void 0,Oe(ee,gr)),void 0,[Ni]));return Pr(Lr,ee),pn&&(g0(Lr,void 0),KA(Lr,void 0)),dt(Lr,ee),M_(Lr,St),we.push(Lr),we}function Oe(ee,we){let St=O;O=we;let pn=[];i();let Tr=Ft(ee.members,Lt);return Qh(pn,s()),Jr(pn,Tr),O=St,t.createBlock(dt(t.createNodeArray(pn),ee.members),!0)}function Lt(ee){let we=nr(ee,!1),St=w(ee),pn=t.createAssignment(t.createElementAccessExpression(O,we),St),Tr=St.kind===11?pn:t.createAssignment(t.createElementAccessExpression(O,pn),we);return dt(t.createExpressionStatement(dt(Tr,ee)),ee)}function w(ee){let we=u.getConstantValue(ee);return we!==void 0?typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we):(Is(),ee.initializer?C.checkDefined(rt(ee.initializer,Y,bt)):t.createVoidZero())}function ae(ee){let we=Lo(ee,Jl);return we?Oq(we,V1(p)):!0}function J(ee){K||(K=new Map);let we=Ge(ee);K.has(we)||K.set(we,ee)}function pe(ee){if(K){let we=Ge(ee);return K.get(we)===ee}return!0}function Ge(ee){return C.assertNode(ee.name,Ve),ee.name.escapedText}function ke(ee,we){let St=t.createVariableDeclaration(t.getLocalName(we,!1,!0)),pn=H.kind===312?0:1,Tr=t.createVariableStatement(Bn(we.modifiers,Se,Ia),t.createVariableDeclarationList([St],pn));return Pr(St,we),g0(St,void 0),KA(St,void 0),Pr(Tr,we),J(we),pe(we)?(we.kind===266?Ca(Tr.declarationList,we):Ca(Tr,we),oc(Tr,we),M_(Tr,2048),ee.push(Tr),!0):!1}function Dt(ee){if(!ae(ee))return t.createNotEmittedStatement(ee);C.assertNode(ee.name,Ve,"A TypeScript namespace should have an Identifier name."),Pa();let we=[],St=4,pn=ke(we,ee);pn&&(m!==4||H!==M)&&(St|=1024);let Tr=pa(ee),gr=du(ee),jr=Dn(ee)?t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0):t.getDeclarationName(ee,!1,!0),Ni=t.createLogicalOr(jr,t.createAssignment(jr,t.createObjectLiteralExpression()));if(Dn(ee)){let $o=t.getLocalName(ee,!1,!0);Ni=t.createAssignment($o,Ni)}let Lr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Tr)],void 0,Pt(ee,gr)),void 0,[Ni]));return Pr(Lr,ee),pn&&(g0(Lr,void 0),KA(Lr,void 0)),dt(Lr,ee),M_(Lr,St),we.push(Lr),we}function Pt(ee,we){let St=O,pn=N,Tr=K;O=we,N=ee,K=void 0;let gr=[];i();let jr,Ni;if(ee.body)if(ee.body.kind===268)ye(ee.body,$o=>Jr(gr,Bn($o.statements,ve,Ki))),jr=ee.body.statements,Ni=ee.body;else{let $o=Dt(ee.body);$o&&(Do($o)?Jr(gr,$o):gr.push($o));let El=Kt(ee).body;jr=f0(El.statements,-1)}Qh(gr,s()),O=St,N=pn,K=Tr;let Lr=t.createBlock(dt(t.createNodeArray(gr),jr),!0);return dt(Lr,Ni),(!ee.body||ee.body.kind!==268)&&fr(Lr,Va(Lr)|3072),Lr}function Kt(ee){if(ee.body.kind===267)return Kt(ee.body)||ee.body}function Tn(ee){if(!ee.importClause)return ee;if(ee.importClause.isTypeOnly)return;let we=rt(ee.importClause,On,Eh);return we||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration(ee,void 0,we,ee.moduleSpecifier,ee.attributes):void 0}function On(ee){C.assert(!ee.isTypeOnly);let we=de(ee)?ee.name:void 0,St=rt(ee.namedBindings,Gn,ej);return we||St?t.updateImportClause(ee,!1,we,St):void 0}function Gn(ee){if(ee.kind===274)return de(ee)?ee:void 0;{let we=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),St=Bn(ee.elements,yi,tp);return we||Et(St)?t.updateNamedImports(ee,St):void 0}}function yi(ee){return!ee.isTypeOnly&&de(ee)?ee:void 0}function Di(ee){return p.verbatimModuleSyntax||u.isValueAliasDeclaration(ee)?An(ee,Y,e):void 0}function or(ee){if(ee.isTypeOnly)return;if(!ee.exportClause||Sh(ee.exportClause))return ee;let we=p.verbatimModuleSyntax||!!ee.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),St=rt(ee.exportClause,pn=>Mi(pn,we),VV);return St?t.updateExportDeclaration(ee,void 0,ee.isTypeOnly,St,ee.moduleSpecifier,ee.attributes):void 0}function Vr(ee,we){let St=Bn(ee.elements,Ci,Ju);return we||Et(St)?t.updateNamedExports(ee,St):void 0}function Eo(ee){return t.updateNamespaceExport(ee,C.checkDefined(rt(ee.name,Y,Ve)))}function Mi(ee,we){return Sh(ee)?Eo(ee):Vr(ee,we)}function Ci(ee){return!ee.isTypeOnly&&(p.verbatimModuleSyntax||u.isValueAliasDeclaration(ee))?ee:void 0}function Kr(ee){return de(ee)||!ac(M)&&u.isTopLevelValueImportEqualsWithEntityName(ee)}function Po(ee){if(ee.isTypeOnly)return;if(l0(ee)){let St=de(ee);return!St&&p.importsNotUsedAsValues===1?Pr(dt(t.createImportDeclaration(void 0,void 0,ee.moduleReference.expression,void 0),ee),ee):St?An(ee,Y,e):void 0}if(!Kr(ee))return;let we=Kk(t,ee.moduleReference);return fr(we,7168),Yl(ee)||!Dn(ee)?Pr(dt(t.createVariableStatement(Bn(ee.modifiers,Se,Ia),t.createVariableDeclarationList([Pr(t.createVariableDeclaration(ee.name,void 0,void 0,we),ee)])),ee),ee):Pr(hl(ee.name,we,ee),ee)}function Dn(ee){return N!==void 0&&ei(ee,32)}function Fs(ee){return N===void 0&&ei(ee,32)}function Yl(ee){return Fs(ee)&&!ei(ee,2048)}function Fo(ee){return Fs(ee)&&ei(ee,2048)}function ds(ee){let we=t.createAssignment(t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0),t.getLocalName(ee));Ca(we,Tf(ee.name?ee.name.pos:ee.pos,ee.end));let St=t.createExpressionStatement(we);return Ca(St,Tf(-1,ee.end)),St}function Gs(ee,we){ee.push(ds(we))}function hl(ee,we,St){return dt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(O,ee,!1,!0),we)),St)}function uu(ee,we,St){return dt(t.createAssignment(yo(ee),we),St)}function yo(ee){return t.getNamespaceMemberName(O,ee,!1,!0)}function pa(ee){let we=t.getGeneratedNameForNode(ee);return Ca(we,ee.name),we}function du(ee){return t.getGeneratedNameForNode(ee)}function Is(){V&8||(V|=8,e.enableSubstitution(80))}function Pa(){V&2||(V|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function fl(ee){return Nl(ee).kind===267}function Mf(ee){return Nl(ee).kind===266}function sc(ee,we,St){let pn=ue,Tr=M;no(we)&&(M=we),V&2&&fl(we)&&(ue|=2),V&8&&Mf(we)&&(ue|=8),I(ee,we,St),ue=pn,M=Tr}function Rl(ee,we){return we=R(ee,we),ee===1?Wo(we):np(we)?ll(we):we}function ll(ee){if(V&2){let we=ee.name,St=Vs(we);if(St){if(ee.objectAssignmentInitializer){let pn=t.createAssignment(St,ee.objectAssignmentInitializer);return dt(t.createPropertyAssignment(we,pn),ee)}return dt(t.createPropertyAssignment(we,St),ee)}}return ee}function Wo(ee){switch(ee.kind){case 80:return on(ee);case 211:return nu(ee);case 212:return pu(ee)}return ee}function on(ee){return Vs(ee)||ee}function Vs(ee){if(V&ue&&!ol(ee)&&!Ug(ee)){let we=u.getReferencedExportContainer(ee,!1);if(we&&we.kind!==312&&(ue&2&&we.kind===267||ue&8&&we.kind===266))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(we),ee),ee)}}function nu(ee){return Ms(ee)}function pu(ee){return Ms(ee)}function Tp(ee){return ee.replace(/\*\//g,"*_/")}function Ms(ee){let we=Ic(ee);if(we!==void 0){pae(ee,we);let St=typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we);if(!p.removeComments){let pn=Nl(ee,ks);h7(St,3,` ${Tp(pc(pn))} `)}return St}return ee}function Ic(ee){if(!im(p))return zr(ee)||Ys(ee)?u.getConstantValue(ee):void 0}function de(ee){return p.verbatimModuleSyntax||cr(ee)||(p.preserveValueImports?u.isValueAliasDeclaration(ee):u.isReferencedAliasDeclaration(ee))}}var gIe,MVe=A({"src/compiler/transformers/ts.ts"(){"use strict";ia(),gIe=!1}});function Ple(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,p=e.getEmitResolver(),g=e.getCompilerOptions(),m=as(g),b=pN(g),T=!!g.experimentalDecorators,I=!b,R=b&&m<9,M=I||R,N=m<9,O=m<99?-1:b?0:3,H=m<9,K=H&&m>=2,Z=M||N||O===-1,V=e.onSubstituteNode;e.onSubstituteNode=nu;let ue=e.onEmitNode;e.onEmitNode=Vs;let G=!1,ne,he,ye,$,Y,oe=new Map,fe=new Set,Ne,me,ie=!1,ve=!1;return Nm(e,Le);function Le(de){if(de.isDeclarationFile||(Y=void 0,G=!!(Tm(de)&32),!Z&&!G))return de;let ee=An(de,Ee,e);return Vg(ee,e.readEmitHelpers()),ee}function He(de){switch(de.kind){case 129:return zt()?void 0:de;default:return ai(de,Ia)}}function Ee(de){if(!(de.transformFlags&16777216)&&!(de.transformFlags&134234112))return de;switch(de.kind){case 129:return C.fail("Use `modifierVisitor` instead.");case 263:return fn(de);case 231:return q(de);case 175:case 172:return C.fail("Use `classElementVisitor` instead.");case 303:return Qe(de);case 243:return gt(de);case 260:return nn(de);case 169:return rn(de);case 208:return Nn(de);case 277:return Xn(de);case 81:return Bt(de);case 211:return _a(de);case 212:return ja(de);case 224:case 225:return En(de,!1);case 226:return pt(de,!1);case 217:return ot(de,!1);case 213:return ft(de);case 244:return Ue(de);case 215:return Nt(de);case 248:return wn(de);case 110:return w(de);case 262:case 218:return ki(void 0,Ce,de);case 176:case 174:case 177:case 178:return ki(de,Ce,de);default:return Ce(de)}}function Ce(de){return An(de,Ee,e)}function Me(de){switch(de.kind){case 224:case 225:return En(de,!0);case 226:return pt(de,!0);case 361:return j(de,!0);case 217:return ot(de,!0);default:return Ee(de)}}function Fe(de){switch(de.kind){case 298:return An(de,Fe,e);case 233:return Vt(de);default:return Ee(de)}}function At(de){switch(de.kind){case 210:case 209:return on(de);default:return Ee(de)}}function Se(de){switch(de.kind){case 176:return ki(de,Yt,de);case 177:case 178:case 174:return ki(de,ho,de);case 172:return ki(de,Rn,de);case 175:return ki(de,Lt,de);case 167:return Qt(de);case 240:return de;default:return al(de)?He(de):Ee(de)}}function je(de){switch(de.kind){case 167:return Qt(de);default:return Ee(de)}}function at(de){switch(de.kind){case 172:return tt(de);case 177:case 178:return Se(de);default:C.assertMissingNode(de,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Bt(de){return!N||Ki(de.parent)?de:Pr(t.createIdentifier(""),de)}function yt(de){let ee=pa(de.left);if(ee){let we=rt(de.right,Ee,bt);return Pr(r().createClassPrivateFieldInHelper(ee.brandCheckIdentifier,we),de)}return An(de,Ee,e)}function Qe(de){return mp(de,We)&&(de=bp(e,de)),An(de,Ee,e)}function gt(de){let ee=$;$=[];let we=An(de,Ee,e),St=Et($)?[we,...$]:we;return $=ee,St}function nn(de){return mp(de,We)&&(de=bp(e,de)),An(de,Ee,e)}function rn(de){return mp(de,We)&&(de=bp(e,de)),An(de,Ee,e)}function Nn(de){return mp(de,We)&&(de=bp(e,de)),An(de,Ee,e)}function Xn(de){return mp(de,We)&&(de=bp(e,de,!0,de.isExportEquals?"":"default")),An(de,Ee,e)}function _n(de){return Et(ye)&&(Wd(de)?(ye.push(de.expression),de=t.updateParenthesizedExpression(de,t.inlineExpressions(ye))):(ye.push(de),de=t.inlineExpressions(ye)),ye=void 0),de}function Qt(de){let ee=rt(de.expression,Ee,bt);return t.updateComputedPropertyName(de,_n(ee))}function Yt(de){return Ne?pe(de,Ne):Ce(de)}function vi(de){return!!(N||fc(de)&&Tm(de)&32)}function ho(de){if(C.assert(!Sf(de)),!ad(de)||!vi(de))return An(de,Se,e);let ee=pa(de.name);if(C.assert(ee,"Undeclared private name for property declaration."),!ee.isValid)return de;let we=Ro(de);we&&Po().push(t.createAssignment(we,t.createFunctionExpression(tr(de.modifiers,St=>Ia(St)&&!tI(St)&&!Rae(St)),de.asteriskToken,we,void 0,xl(de.parameters,Ee,e),void 0,rf(de.body,Ee,e))))}function ki(de,ee,we){if(de!==me){let St=me;me=de;let pn=ee(we);return me=St,pn}return ee(we)}function Ro(de){C.assert(Xi(de.name));let ee=pa(de.name);if(C.assert(ee,"Undeclared private name for property declaration."),ee.kind==="m")return ee.methodName;if(ee.kind==="a"){if(wy(de))return ee.getterName;if(wv(de))return ee.setterName}}function nr(){let de=Ci(),ee=de.classThis??de.classConstructor??Ne?.name;return C.checkDefined(ee)}function qr(de){let ee=L_(de),we=jv(de),St=de.name,pn=St,Tr=St;if(Za(St)&&!F_(St.expression)){let Uc=_5(St);if(Uc)pn=t.updateComputedPropertyName(St,rt(St.expression,Ee,bt)),Tr=t.updateComputedPropertyName(St,Uc.left);else{let js=t.createTempVariable(i);Ca(js,St.expression);let gc=rt(St.expression,Ee,bt),Ts=t.createAssignment(js,gc);Ca(Ts,St.expression),pn=t.updateComputedPropertyName(St,Ts),Tr=t.updateComputedPropertyName(St,js)}}let gr=Bn(de.modifiers,He,Ia),jr=jH(t,de,gr,de.initializer);Pr(jr,de),fr(jr,3072),Ca(jr,we);let Ni=sa(de)?nr():t.createThis(),Lr=lse(t,de,gr,pn,Ni);Pr(Lr,de),oc(Lr,ee),Ca(Lr,we);let $o=t.createModifiersFromModifierFlags(N_(gr)),El=cse(t,de,$o,Tr,Ni);return Pr(El,de),fr(El,3072),Ca(El,we),xw([jr,Lr,El],at,$c)}function xr(de){if(vi(de)){let ee=pa(de.name);if(C.assert(ee,"Undeclared private name for property declaration."),!ee.isValid)return de;if(ee.isStatic&&!N){let we=Pt(de,t.createThis());if(we)return t.createClassStaticBlockDeclaration(t.createBlock([we],!0))}return}return I&&!sa(de)&&Y?.data&&Y.data.facts&16?t.updatePropertyDeclaration(de,Bn(de.modifiers,Ee,al),de.name,void 0,void 0,void 0):(mp(de,We)&&(de=bp(e,de)),t.updatePropertyDeclaration(de,Bn(de.modifiers,He,Ia),rt(de.name,je,ic),void 0,void 0,rt(de.initializer,Ee,bt)))}function ln(de){if(M&&!kd(de)){let ee=Vr(de.name,!!de.initializer||b);if(ee&&Po().push(...use(ee)),sa(de)&&!N){let we=Pt(de,t.createThis());if(we){let St=t.createClassStaticBlockDeclaration(t.createBlock([we]));return Pr(St,de),oc(St,de),oc(we,{pos:-1,end:-1}),g0(we,void 0),KA(we,void 0),St}}return}return t.updatePropertyDeclaration(de,Bn(de.modifiers,He,Ia),rt(de.name,je,ic),void 0,void 0,rt(de.initializer,Ee,bt))}function tt(de){return C.assert(!Sf(de),"Decorators should already have been transformed and elided."),ad(de)?xr(de):ln(de)}function zt(){return O===-1||O===3&&!!Y?.data&&!!(Y.data.facts&16)}function Rn(de){return kd(de)&&(zt()||fc(de)&&Tm(de)&32)?qr(de):tt(de)}function ui(){return!!me&&fc(me)&&Ly(me)&&kd(Nl(me))}function bi(de){if(ui()){let ee=Xl(de);ee.kind===110&&fe.add(ee)}}function ro(de,ee){return ee=rt(ee,Ee,bt),bi(ee),No(de,ee)}function No(de,ee){switch(oc(ee,f0(ee,-1)),de.kind){case"a":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.getterName);case"m":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.methodName);case"f":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever(de,"Unknown private element type")}}function _a(de){if(Xi(de.name)){let ee=pa(de.name);if(ee)return dt(Pr(ro(ee,de.expression),de),de)}if(K&&me&&Od(de)&&Ve(de.name)&&qN(me)&&Y?.data){let{classConstructor:ee,superClassReference:we,facts:St}=Y.data;if(St&1)return or(de);if(ee&&we){let pn=t.createReflectGetCall(we,t.createStringLiteralFromNode(de.name),ee);return Pr(pn,de.expression),dt(pn,de.expression),pn}}return An(de,Ee,e)}function ja(de){if(K&&me&&Od(de)&&qN(me)&&Y?.data){let{classConstructor:ee,superClassReference:we,facts:St}=Y.data;if(St&1)return or(de);if(ee&&we){let pn=t.createReflectGetCall(we,rt(de.argumentExpression,Ee,bt),ee);return Pr(pn,de.expression),dt(pn,de.expression),pn}}return An(de,Ee,e)}function En(de,ee){if(de.operator===46||de.operator===47){let we=vs(de.operand);if(Hx(we)){let St;if(St=pa(we.name)){let pn=rt(we.expression,Ee,bt);bi(pn);let{readExpression:Tr,initializeExpression:gr}=mt(pn),jr=ro(St,Tr),Ni=Qy(de)||ee?void 0:t.createTempVariable(i);return jr=l5(t,de,jr,i,Ni),jr=xt(St,gr||Tr,jr,64),Pr(jr,de),dt(jr,de),Ni&&(jr=t.createComma(jr,Ni),dt(jr,de)),jr}}else if(K&&me&&Od(we)&&qN(me)&&Y?.data){let{classConstructor:St,superClassReference:pn,facts:Tr}=Y.data;if(Tr&1){let gr=or(we);return Qy(de)?t.updatePrefixUnaryExpression(de,gr):t.updatePostfixUnaryExpression(de,gr)}if(St&&pn){let gr,jr;if(zr(we)?Ve(we.name)&&(jr=gr=t.createStringLiteralFromNode(we.name)):F_(we.argumentExpression)?jr=gr=we.argumentExpression:(jr=t.createTempVariable(i),gr=t.createAssignment(jr,rt(we.argumentExpression,Ee,bt))),gr&&jr){let Ni=t.createReflectGetCall(pn,jr,St);dt(Ni,we);let Lr=ee?void 0:t.createTempVariable(i);return Ni=l5(t,de,Ni,i,Lr),Ni=t.createReflectSetCall(pn,gr,Ni,St),Pr(Ni,de),dt(Ni,de),Lr&&(Ni=t.createComma(Ni,Lr),dt(Ni,de)),Ni}}}}return An(de,Ee,e)}function wn(de){return t.updateForStatement(de,rt(de.initializer,Me,Ef),rt(de.condition,Ee,bt),rt(de.incrementor,Me,bt),Id(de.statement,Ee,e))}function Ue(de){return t.updateExpressionStatement(de,rt(de.expression,Me,bt))}function mt(de){let ee=Xs(de)?de:t.cloneNode(de);if(de.kind===110&&fe.has(de)&&fe.add(ee),F_(de))return{readExpression:ee,initializeExpression:void 0};let we=t.createTempVariable(i),St=t.createAssignment(we,ee);return{readExpression:we,initializeExpression:St}}function ft(de){var ee;if(Hx(de.expression)&&pa(de.expression.name)){let{thisArg:we,target:St}=t.createCallBinding(de.expression,i,m);return lS(de)?t.updateCallChain(de,t.createPropertyAccessChain(rt(St,Ee,bt),de.questionDotToken,"call"),void 0,void 0,[rt(we,Ee,bt),...Bn(de.arguments,Ee,bt)]):t.updateCallExpression(de,t.createPropertyAccessExpression(rt(St,Ee,bt),"call"),void 0,[rt(we,Ee,bt),...Bn(de.arguments,Ee,bt)])}if(K&&me&&Od(de.expression)&&qN(me)&&((ee=Y?.data)!=null&&ee.classConstructor)){let we=t.createFunctionCallCall(rt(de.expression,Ee,bt),Y.data.classConstructor,Bn(de.arguments,Ee,bt));return Pr(we,de),dt(we,de),we}return An(de,Ee,e)}function Nt(de){var ee;if(Hx(de.tag)&&pa(de.tag.name)){let{thisArg:we,target:St}=t.createCallBinding(de.tag,i,m);return t.updateTaggedTemplateExpression(de,t.createCallExpression(t.createPropertyAccessExpression(rt(St,Ee,bt),"bind"),void 0,[rt(we,Ee,bt)]),void 0,rt(de.template,Ee,DA))}if(K&&me&&Od(de.tag)&&qN(me)&&((ee=Y?.data)!=null&&ee.classConstructor)){let we=t.createFunctionBindCall(rt(de.tag,Ee,bt),Y.data.classConstructor,[]);return Pr(we,de),dt(we,de),t.updateTaggedTemplateExpression(de,we,void 0,rt(de.template,Ee,DA))}return An(de,Ee,e)}function le(de){if(Y&&oe.set(Nl(de),Y),N){if(UN(de)){let St=rt(de.body.statements[0].expression,Ee,bt);return Mc(St,!0)&&St.left===St.right?void 0:St}if(SI(de))return rt(de.body.statements[0].expression,Ee,bt);s();let ee=ki(de,St=>Bn(St,Ee,Ki),de.body.statements);ee=t.mergeLexicalEnvironment(ee,o());let we=t.createImmediatelyInvokedArrowFunction(ee);return Pr(vs(we.expression),de),M_(vs(we.expression),4),Pr(we,de),dt(we,de),we}}function We(de){if(Zc(de)&&!de.name){let ee=eF(de);return Et(ee,SI)?!1:(N||!!Tm(de))&&Et(ee,St=>Il(St)||ad(St)||M&&Dw(St))}return!1}function pt(de,ee){if(Bv(de)){let we=ye;ye=void 0,de=t.updateBinaryExpression(de,rt(de.left,At,bt),de.operatorToken,rt(de.right,Ee,bt));let St=Et(ye)?t.inlineExpressions(CM([...ye,de])):de;return ye=we,St}if(Mc(de)){mp(de,We)&&(de=bp(e,de),C.assertNode(de,Mc));let we=Xl(de.left,9);if(Hx(we)){let St=pa(we.name);if(St)return dt(Pr(xt(St,we.expression,de.right,de.operatorToken.kind),de),de)}else if(K&&me&&Od(de.left)&&qN(me)&&Y?.data){let{classConstructor:St,superClassReference:pn,facts:Tr}=Y.data;if(Tr&1)return t.updateBinaryExpression(de,or(de.left),de.operatorToken,rt(de.right,Ee,bt));if(St&&pn){let gr=Ys(de.left)?rt(de.left.argumentExpression,Ee,bt):Ve(de.left.name)?t.createStringLiteralFromNode(de.left.name):void 0;if(gr){let jr=rt(de.right,Ee,bt);if(GN(de.operatorToken.kind)){let Lr=gr;F_(gr)||(Lr=t.createTempVariable(i),gr=t.createAssignment(Lr,gr));let $o=t.createReflectGetCall(pn,Lr,St);Pr($o,de.left),dt($o,de.left),jr=t.createBinaryExpression($o,VN(de.operatorToken.kind),jr),dt(jr,de)}let Ni=ee?void 0:t.createTempVariable(i);return Ni&&(jr=t.createAssignment(Ni,jr),dt(Ni,de)),jr=t.createReflectSetCall(pn,gr,jr,St),Pr(jr,de),dt(jr,de),Ni&&(jr=t.createComma(jr,Ni),dt(jr,de)),jr}}}}return FVe(de)?yt(de):An(de,Ee,e)}function j(de,ee){let we=ee?Rw(de.elements,Me):Rw(de.elements,Ee,Me);return t.updateCommaListExpression(de,we)}function ot(de,ee){let we=ee?Me:Ee,St=rt(de.expression,we,bt);return t.updateParenthesizedExpression(de,St)}function xt(de,ee,we,St){if(ee=rt(ee,Ee,bt),we=rt(we,Ee,bt),bi(ee),GN(St)){let{readExpression:pn,initializeExpression:Tr}=mt(ee);ee=Tr||pn,we=t.createBinaryExpression(No(de,pn),VN(St),we)}switch(oc(ee,f0(ee,-1)),de.kind){case"a":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,de.setterName);case"m":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever(de,"Unknown private element type")}}function Ye(de){return tr(de.members,gle)}function ht(de){var ee;let we=0,St=Nl(de);Tc(St)&&Ov(T,St)&&(we|=1),N&&(Zq(de)||nF(de))&&(we|=2);let pn=!1,Tr=!1,gr=!1,jr=!1;for(let Lr of de.members)sa(Lr)?((Lr.name&&(Xi(Lr.name)||kd(Lr))&&N||kd(Lr)&&O===-1&&!de.name&&!((ee=de.emitNode)!=null&&ee.classThis))&&(we|=2),(Jo(Lr)||Il(Lr))&&(H&&Lr.transformFlags&16384&&(we|=8,we&1||(we|=2)),K&&Lr.transformFlags&134217728&&(we&1||(we|=6)))):F1(Nl(Lr))||(kd(Lr)?(jr=!0,gr||(gr=ad(Lr))):ad(Lr)?(gr=!0,p.getNodeCheckFlags(Lr)&262144&&(we|=2)):Jo(Lr)&&(pn=!0,Tr||(Tr=!!Lr.initializer)));return(R&&pn||I&&Tr||N&&gr||N&&jr&&O===-1)&&(we|=16),we}function Vt(de){var ee;if((((ee=Y?.data)==null?void 0:ee.facts)||0)&4){let St=t.createTempVariable(i,!0);return Ci().superClassReference=St,t.updateExpressionWithTypeArguments(de,t.createAssignment(St,rt(de.expression,Ee,bt)),void 0)}return An(de,Ee,e)}function yn(de,ee){var we;let St=Ne,pn=ye,Tr=Y;Ne=de,ye=void 0,Eo();let gr=Tm(de)&32;if(N||gr){let Lr=Oo(de);if(Lr&&Ve(Lr))Kr().data.className=Lr;else if((we=de.emitNode)!=null&&we.assignedName&&Na(de.emitNode.assignedName)){if(de.emitNode.assignedName.textSourceNode&&Ve(de.emitNode.assignedName.textSourceNode))Kr().data.className=de.emitNode.assignedName.textSourceNode;else if($p(de.emitNode.assignedName.text,m)){let $o=t.createIdentifier(de.emitNode.assignedName.text);Kr().data.className=$o}}}if(N){let Lr=Ye(de);Et(Lr)&&(Kr().data.weakSetName=uu("instances",Lr[0].name))}let jr=ht(de);jr&&(Ci().facts=jr),jr&8&&yi();let Ni=ee(de,jr);return Mi(),C.assert(Y===Tr),Ne=St,ye=pn,Ni}function fn(de){return yn(de,mn)}function mn(de,ee){var we,St;let pn;if(ee&2)if(N&&((we=de.emitNode)!=null&&we.classThis))Ci().classConstructor=de.emitNode.classThis,pn=t.createAssignment(de.emitNode.classThis,t.getInternalName(de));else{let Ts=t.createTempVariable(i,!0);Ci().classConstructor=t.cloneNode(Ts),pn=t.createAssignment(Ts,t.getInternalName(de))}(St=de.emitNode)!=null&&St.classThis&&(Ci().classThis=de.emitNode.classThis);let Tr=p.getNodeCheckFlags(de)&262144,gr=ei(de,32),jr=ei(de,2048),Ni=Bn(de.modifiers,He,Ia),Lr=Bn(de.heritageClauses,Fe,ef),{members:$o,prologue:El}=ae(de),Uc=[];if(pn&&Po().unshift(pn),Et(ye)&&Uc.push(t.createExpressionStatement(t.inlineExpressions(ye))),I||N||Tm(de)&32){let Ts=eF(de);Et(Ts)&&Dt(Uc,Ts,t.getInternalName(de))}Uc.length>0&&gr&&jr&&(Ni=Bn(Ni,Ts=>Zk(Ts)?void 0:Ts,Ia),Uc.push(t.createExportAssignment(void 0,!1,t.getLocalName(de,!1,!0))));let js=Ci().classConstructor;Tr&&js&&(Gn(),he[Ou(de)]=js);let gc=t.updateClassDeclaration(de,Ni,de.name,void 0,Lr,$o);return Uc.unshift(gc),El&&Uc.unshift(t.createExpressionStatement(El)),Uc}function q(de){return yn(de,Oe)}function Oe(de,ee){var we,St,pn;let Tr=!!(ee&1),gr=eF(de),jr=p.getNodeCheckFlags(de),Ni=jr&262144,Lr;function $o(){var Oc;if(N&&((Oc=de.emitNode)!=null&&Oc.classThis))return Ci().classConstructor=de.emitNode.classThis;let lm=jr&32768,md=t.createTempVariable(lm?u:i,!0);return Ci().classConstructor=t.cloneNode(md),md}(we=de.emitNode)!=null&&we.classThis&&(Ci().classThis=de.emitNode.classThis),ee&2&&(Lr??(Lr=$o()));let El=Bn(de.modifiers,He,Ia),Uc=Bn(de.heritageClauses,Fe,ef),{members:js,prologue:gc}=ae(de),Ts=t.updateClassExpression(de,El,de.name,void 0,Uc,js),Hc=[];if(gc&&Hc.push(gc),(N||Tm(de)&32)&&Et(gr,Oc=>Il(Oc)||ad(Oc)||M&&Dw(Oc))||Et(ye))if(Tr)C.assertIsDefined($,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Et(ye)&&Jr($,Ft(ye,t.createExpressionStatement)),Et(gr)&&Dt($,gr,((St=de.emitNode)==null?void 0:St.classThis)??t.getInternalName(de)),Lr?Hc.push(t.createAssignment(Lr,Ts)):N&&((pn=de.emitNode)!=null&&pn.classThis)?Hc.push(t.createAssignment(de.emitNode.classThis,Ts)):Hc.push(Ts);else{if(Lr??(Lr=$o()),Ni){Gn();let Oc=t.cloneNode(Lr);Oc.emitNode.autoGenerate.flags&=-9,he[Ou(de)]=Oc}Hc.push(t.createAssignment(Lr,Ts)),Jr(Hc,ye),Jr(Hc,Kt(gr,Lr)),Hc.push(t.cloneNode(Lr))}else Hc.push(Ts);return Hc.length>1&&(M_(Ts,131072),Hc.forEach(Ku)),t.inlineExpressions(Hc)}function Lt(de){if(!N)return An(de,Ee,e)}function w(de){if(H&&me&&Il(me)&&Y?.data){let{classThis:ee,classConstructor:we}=Y.data;return ee??we??de}return de}function ae(de){let ee=!!(Tm(de)&32);if(N||G){for(let gr of de.members)if(ad(gr))if(vi(gr))hl(gr,gr.name,Dn);else{let jr=Kr();qS(jr,gr.name,{kind:"untransformed"})}if(N&&Et(Ye(de))&&J(),zt()){for(let gr of de.members)if(kd(gr)){let jr=t.getGeneratedPrivateNameForNode(gr.name,void 0,"_accessor_storage");if(N||ee&&fc(gr))hl(gr,jr,Fs);else{let Ni=Kr();qS(Ni,jr,{kind:"untransformed"})}}}}let we=Bn(de.members,Se,$c),St;Et(we,Pl)||(St=pe(void 0,de));let pn,Tr;if(!N&&Et(ye)){let gr=t.createExpressionStatement(t.inlineExpressions(ye));if(gr.transformFlags&134234112){let Ni=t.createTempVariable(i),Lr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([gr]));pn=t.createAssignment(Ni,Lr),gr=t.createExpressionStatement(t.createCallExpression(Ni,void 0,[]))}let jr=t.createBlock([gr]);Tr=t.createClassStaticBlockDeclaration(jr),ye=void 0}if(St||Tr){let gr,jr=vn(we,UN),Ni=vn(we,SI);gr=In(gr,jr),gr=In(gr,Ni),gr=In(gr,St),gr=In(gr,Tr);let Lr=jr||Ni?tr(we,$o=>$o!==jr&&$o!==Ni):we;gr=Jr(gr,Lr),we=dt(t.createNodeArray(gr),de.members)}return{members:we,prologue:pn}}function J(){let{weakSetName:de}=Kr().data;C.assert(de,"weakSetName should be set in private identifier environment"),Po().push(t.createAssignment(de,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function pe(de,ee){if(de=rt(de,Ee,Pl),!Y?.data||!(Y.data.facts&16))return de;let we=x_(ee),St=!!(we&&Xl(we.expression).kind!==106),pn=xl(de?de.parameters:void 0,Ee,e),Tr=ke(ee,de,St);return Tr?de?(C.assert(pn),t.updateConstructorDeclaration(de,void 0,pn,Tr)):Ku(Pr(dt(t.createConstructorDeclaration(void 0,pn??[],Tr),de||ee),de)):de}function Ge(de,ee,we,St,pn,Tr,gr){let jr=St[pn],Ni=ee[jr];if(Jr(de,Bn(ee,Ee,Ki,we,jr-we)),we=jr+1,WS(Ni)){let Lr=[];Ge(Lr,Ni.tryBlock.statements,0,St,pn+1,Tr,gr);let $o=t.createNodeArray(Lr);dt($o,Ni.tryBlock.statements),de.push(t.updateTryStatement(Ni,t.updateBlock(Ni.tryBlock,Lr),rt(Ni.catchClause,Ee,$1),rt(Ni.finallyBlock,Ee,Xo)))}else{for(Jr(de,Bn(ee,Ee,Ki,jr,1));we!!js.initializer||Xi(js.name)||C_(js)));let Tr=Ye(de),gr=Et(pn)||Et(Tr);if(!ee&&!gr)return rf(void 0,Ee,e);l();let jr=!ee&&we,Ni=0,Lr=[],$o=[],El=t.createThis();if(Di($o,Tr,El),ee){let js=tr(St,Ts=>pp(Nl(Ts),ee)),gc=tr(pn,Ts=>!pp(Nl(Ts),ee));Dt($o,js,El),Dt($o,gc,El)}else Dt($o,pn,El);if(ee?.body){Ni=t.copyPrologue(ee.body.statements,Lr,!1,Ee);let js=Z5(ee.body.statements,Ni);if(js.length)Ge(Lr,ee.body.statements,Ni,js,0,$o,ee);else{for(;Ni=Lr.length?ee.body.multiLine??Lr.length>0:Lr.length>0;return dt(t.createBlock(dt(t.createNodeArray(Lr),ee?ee.body.statements:de.members),Uc),ee?ee.body:void 0)}function Dt(de,ee,we){for(let St of ee){if(sa(St)&&!N)continue;let pn=Pt(St,we);pn&&de.push(pn)}}function Pt(de,ee){let we=Il(de)?ki(de,le,de):Tn(de,ee);if(!we)return;let St=t.createExpressionStatement(we);Pr(St,de),M_(St,Va(de)&3072),oc(St,de);let pn=Nl(de);return Co(pn)?(Ca(St,pn),Nk(St)):Ca(St,P_(de)),g0(we,void 0),KA(we,void 0),C_(pn)&&M_(St,3072),St}function Kt(de,ee){let we=[];for(let St of de){let pn=Il(St)?ki(St,le,St):ki(St,()=>Tn(St,ee),void 0);pn&&(Ku(pn),Pr(pn,St),M_(pn,Va(St)&3072),Ca(pn,P_(St)),oc(pn,St),we.push(pn))}return we}function Tn(de,ee){var we;let St=me,pn=On(de,ee);return pn&&fc(de)&&((we=Y?.data)!=null&&we.facts)&&(Pr(pn,de),M_(pn,4),Ca(pn,jv(de.name)),oe.set(Nl(de),Y)),me=St,pn}function On(de,ee){let we=!b;mp(de,We)&&(de=bp(e,de));let St=C_(de)?t.getGeneratedPrivateNameForNode(de.name):Za(de.name)&&!F_(de.name.expression)?t.updateComputedPropertyName(de.name,t.getGeneratedNameForNode(de.name)):de.name;if(fc(de)&&(me=de),Xi(St)&&vi(de)){let gr=pa(St);if(gr)return gr.kind==="f"?gr.isStatic?LVe(t,gr.variableName,rt(de.initializer,Ee,bt)):kVe(t,ee,rt(de.initializer,Ee,bt),gr.brandCheckIdentifier):void 0;C.fail("Undeclared private name for property declaration.")}if((Xi(St)||fc(de))&&!de.initializer)return;let pn=Nl(de);if(ei(pn,64))return;let Tr=rt(de.initializer,Ee,bt);if(pp(pn,pn.parent)&&Ve(St)){let gr=t.cloneNode(St);Tr?(Wd(Tr)&&Xk(Tr.expression)&&_N(Tr.expression.left,"___runInitializers")&&sI(Tr.expression.right)&&hp(Tr.expression.right.expression)&&(Tr=Tr.expression.left),Tr=t.inlineExpressions([Tr,gr])):Tr=gr,fr(St,3168),Ca(gr,pn.name),fr(gr,3072)}else Tr??(Tr=t.createVoidZero());if(we||Xi(St)){let gr=jS(t,ee,St,St);return M_(gr,1024),t.createAssignment(gr,Tr)}else{let gr=Za(St)?St.expression:Ve(St)?t.createStringLiteral(Hi(St.escapedText)):St,jr=t.createPropertyDescriptor({value:Tr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(ee,gr,jr)}}function Gn(){ne&1||(ne|=1,e.enableSubstitution(80),he=[])}function yi(){ne&2||(ne|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function Di(de,ee,we){if(!N||!Et(ee))return;let{weakSetName:St}=Kr().data;C.assert(St,"weakSetName should be set in private identifier environment"),de.push(t.createExpressionStatement(wVe(t,we,St)))}function or(de){return zr(de)?t.updatePropertyAccessExpression(de,t.createVoidZero(),de.name):t.updateElementAccessExpression(de,t.createVoidZero(),rt(de.argumentExpression,Ee,bt))}function Vr(de,ee){if(Za(de)){let we=_5(de),St=rt(de.expression,Ee,bt),pn=Sm(St),Tr=F_(pn);if(!(!!we||Mc(pn)&&ol(pn.left))&&!Tr&&ee){let jr=t.getGeneratedNameForNode(de);return p.getNodeCheckFlags(de)&32768?u(jr):i(jr),t.createAssignment(jr,St)}return Tr||Ve(pn)?void 0:St}}function Eo(){Y={previous:Y,data:void 0}}function Mi(){Y=Y?.previous}function Ci(){return C.assert(Y),Y.data??(Y.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Kr(){return C.assert(Y),Y.privateEnv??(Y.privateEnv=ble({className:void 0,weakSetName:void 0}))}function Po(){return ye??(ye=[])}function Dn(de,ee,we,St,pn,Tr,gr){kd(de)?Gs(de,ee,we,St,pn,Tr,gr):Jo(de)?Fs(de,ee,we,St,pn,Tr,gr):jl(de)?Yl(de,ee,we,St,pn,Tr,gr):Zp(de)?Fo(de,ee,we,St,pn,Tr,gr):vp(de)&&ds(de,ee,we,St,pn,Tr,gr)}function Fs(de,ee,we,St,pn,Tr,gr){if(pn){let jr=C.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"),Ni=yo(ee);qS(St,ee,{kind:"f",isStatic:!0,brandCheckIdentifier:jr,variableName:Ni,isValid:Tr})}else{let jr=yo(ee);qS(St,ee,{kind:"f",isStatic:!1,brandCheckIdentifier:jr,isValid:Tr}),Po().push(t.createAssignment(jr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Yl(de,ee,we,St,pn,Tr,gr){let jr=yo(ee),Ni=pn?C.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(St.data.weakSetName,"weakSetName should be set in private identifier environment");qS(St,ee,{kind:"m",methodName:jr,brandCheckIdentifier:Ni,isStatic:pn,isValid:Tr})}function Fo(de,ee,we,St,pn,Tr,gr){let jr=yo(ee,"_get"),Ni=pn?C.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(St.data.weakSetName,"weakSetName should be set in private identifier environment");gr?.kind==="a"&&gr.isStatic===pn&&!gr.getterName?gr.getterName=jr:qS(St,ee,{kind:"a",getterName:jr,setterName:void 0,brandCheckIdentifier:Ni,isStatic:pn,isValid:Tr})}function ds(de,ee,we,St,pn,Tr,gr){let jr=yo(ee,"_set"),Ni=pn?C.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(St.data.weakSetName,"weakSetName should be set in private identifier environment");gr?.kind==="a"&&gr.isStatic===pn&&!gr.setterName?gr.setterName=jr:qS(St,ee,{kind:"a",getterName:void 0,setterName:jr,brandCheckIdentifier:Ni,isStatic:pn,isValid:Tr})}function Gs(de,ee,we,St,pn,Tr,gr){let jr=yo(ee,"_get"),Ni=yo(ee,"_set"),Lr=pn?C.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(St.data.weakSetName,"weakSetName should be set in private identifier environment");qS(St,ee,{kind:"a",getterName:jr,setterName:Ni,brandCheckIdentifier:Lr,isStatic:pn,isValid:Tr})}function hl(de,ee,we){let St=Ci(),pn=Kr(),Tr=Yq(pn,ee),gr=fc(de),jr=!OVe(ee)&&Tr===void 0;we(de,ee,St,pn,gr,jr,Tr)}function uu(de,ee,we){let{className:St}=Kr().data,pn=St?{prefix:"_",node:St,suffix:"_"}:"_",Tr=typeof de=="object"?t.getGeneratedNameForNode(de,24,pn,we):typeof de=="string"?t.createUniqueName(de,16,pn,we):t.createTempVariable(void 0,!0,pn,we);return p.getNodeCheckFlags(ee)&32768?u(Tr):i(Tr),Tr}function yo(de,ee){let we=TC(de);return uu(we?.substring(1)??de,de,ee)}function pa(de){let ee=Ele(Y,de);return ee?.kind==="untransformed"?void 0:ee}function du(de){let ee=t.getGeneratedNameForNode(de),we=pa(de.name);if(!we)return An(de,Ee,e);let St=de.expression;return(NL(de)||Od(de)||!rE(de.expression))&&(St=t.createTempVariable(i,!0),Po().push(t.createBinaryExpression(St,64,rt(de.expression,Ee,bt)))),t.createAssignmentTargetWrapper(ee,xt(we,St,ee,64))}function Is(de){if(wa(de)||pd(de))return on(de);if(Hx(de))return du(de);if(K&&me&&Od(de)&&qN(me)&&Y?.data){let{classConstructor:ee,superClassReference:we,facts:St}=Y.data;if(St&1)return or(de);if(ee&&we){let pn=Ys(de)?rt(de.argumentExpression,Ee,bt):Ve(de.name)?t.createStringLiteralFromNode(de.name):void 0;if(pn){let Tr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Tr,t.createReflectSetCall(we,pn,Tr,ee))}}}return An(de,Ee,e)}function Pa(de){if(mp(de,We)&&(de=bp(e,de)),Mc(de,!0)){let ee=Is(de.left),we=rt(de.right,Ee,bt);return t.updateBinaryExpression(de,ee,de.operatorToken,we)}return Is(de)}function fl(de){if(Zd(de.expression)){let ee=Is(de.expression);return t.updateSpreadElement(de,ee)}return An(de,Ee,e)}function Mf(de){if(pL(de)){if(Zm(de))return fl(de);if(!Vc(de))return Pa(de)}return An(de,Ee,e)}function sc(de){let ee=rt(de.name,Ee,ic);if(Mc(de.initializer,!0)){let we=Pa(de.initializer);return t.updatePropertyAssignment(de,ee,we)}if(Zd(de.initializer)){let we=Is(de.initializer);return t.updatePropertyAssignment(de,ee,we)}return An(de,Ee,e)}function Rl(de){return mp(de,We)&&(de=bp(e,de)),An(de,Ee,e)}function ll(de){if(Zd(de.expression)){let ee=Is(de.expression);return t.updateSpreadAssignment(de,ee)}return An(de,Ee,e)}function Wo(de){return C.assertNode(de,dL),qv(de)?ll(de):np(de)?Rl(de):_c(de)?sc(de):An(de,Ee,e)}function on(de){return pd(de)?t.updateArrayLiteralExpression(de,Bn(de.elements,Mf,bt)):t.updateObjectLiteralExpression(de,Bn(de.properties,Wo,wg))}function Vs(de,ee,we){let St=Nl(ee),pn=oe.get(St);if(pn){let Tr=Y,gr=ve;Y=pn,ve=ie,ie=!Il(St)||!(Tm(St)&32),ue(de,ee,we),ie=ve,ve=gr,Y=Tr;return}switch(ee.kind){case 218:if(Bs(St)||Va(ee)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let Tr=Y,gr=ve;Y=void 0,ve=ie,ie=!1,ue(de,ee,we),ie=ve,ve=gr,Y=Tr;return}case 167:{let Tr=Y,gr=ie;Y=Y?.previous,ie=ve,ue(de,ee,we),ie=gr,Y=Tr;return}}ue(de,ee,we)}function nu(de,ee){return ee=V(de,ee),de===1?pu(ee):ee}function pu(de){switch(de.kind){case 80:return Ms(de);case 110:return Tp(de)}return de}function Tp(de){if(ne&2&&Y?.data&&!fe.has(de)){let{facts:ee,classConstructor:we,classThis:St}=Y.data,pn=ie?St??we:we;if(pn)return dt(Pr(t.cloneNode(pn),de),de);if(ee&1&&T)return t.createParenthesizedExpression(t.createVoidZero())}return de}function Ms(de){return Ic(de)||de}function Ic(de){if(ne&1&&p.getNodeCheckFlags(de)&536870912){let ee=p.getReferencedValueDeclaration(de);if(ee){let we=he[ee.id];if(we){let St=t.cloneNode(we);return Ca(St,de),oc(St,de),St}}}}}function LVe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function kVe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function wVe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function OVe(e){return!cS(e)&&e.escapedText==="#constructor"}function FVe(e){return Xi(e.left)&&e.operatorToken.kind===103}function WVe(e){return Jo(e)&&fc(e)}function qN(e){return Il(e)||WVe(e)}var zVe=A({"src/compiler/transformers/classFields.ts"(){"use strict";ia()}});function Mle(e){let{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=as(o),l=ud(o,"strictNullChecks"),u,p;return{serializeTypeNode:(ye,$)=>g(ye,M,$),serializeTypeOfNode:(ye,$)=>g(ye,b,$),serializeParameterTypesOfNode:(ye,$,Y)=>g(ye,T,$,Y),serializeReturnTypeOfNode:(ye,$)=>g(ye,R,$)};function g(ye,$,Y,oe){let fe=u,Ne=p;u=ye.currentLexicalScope,p=ye.currentNameScope;let me=oe===void 0?$(Y):$(Y,oe);return u=fe,p=Ne,me}function m(ye){let $=i.getAllAccessorDeclarations(ye);return $.setAccessor&&Jie($.setAccessor)||$.getAccessor&&tm($.getAccessor)}function b(ye){switch(ye.kind){case 172:case 169:return M(ye.type);case 178:case 177:return M(m(ye));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function T(ye,$){let Y=pi(ye)?ig(ye):ea(ye)&&Xf(ye.body)?ye:void 0,oe=[];if(Y){let fe=I(Y,$),Ne=fe.length;for(let me=0;mefe.parent&&aI(fe.parent)&&(fe.parent.trueType===fe||fe.parent.falseType===fe)))return t.createIdentifier("Object");let Y=V(ye.typeName),oe=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(oe,Y),"function"),void 0,oe,void 0,t.createIdentifier("Object"));case 1:return ue(ye.typeName);case 2:return t.createVoidZero();case 4:return he("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return he("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return C.assertNever($)}}function Z(ye,$){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ye),t.createStringLiteral("undefined")),$)}function V(ye){if(ye.kind===80){let oe=ue(ye);return Z(oe,oe)}if(ye.left.kind===80)return Z(ue(ye.left),ue(ye));let $=V(ye.left),Y=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd($.left,t.createStrictInequality(t.createAssignment(Y,$.right),t.createVoidZero())),t.createPropertyAccessExpression(Y,ye.right))}function ue(ye){switch(ye.kind){case 80:let $=qa(dt(Ah.cloneNode(ye),ye),ye.parent);return $.original=void 0,qa($,Lo(u)),$;case 166:return G(ye)}}function G(ye){return t.createPropertyAccessExpression(ue(ye.left),ye.right)}function ne(ye){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ye),"function"),void 0,t.createIdentifier(ye),void 0,t.createIdentifier("Object"))}function he(ye,$){return s<$?ne(ye):t.createIdentifier(ye)}}var BVe=A({"src/compiler/transformers/typeSerializer.ts"(){"use strict";ia()}});function Lle(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),l=as(s),u=e.onSubstituteNode;e.onSubstituteNode=je;let p;return Nm(e,g);function g(Qe){let gt=An(Qe,b,e);return Vg(gt,e.readEmitHelpers()),gt}function m(Qe){return Eu(Qe)?void 0:Qe}function b(Qe){if(!(Qe.transformFlags&33554432))return Qe;switch(Qe.kind){case 170:return;case 263:return T(Qe);case 231:return K(Qe);case 176:return Z(Qe);case 174:return ue(Qe);case 178:return ne(Qe);case 177:return G(Qe);case 172:return he(Qe);case 169:return ye(Qe);default:return An(Qe,b,e)}}function T(Qe){if(!(Ov(!0,Qe)||xC(!0,Qe)))return An(Qe,b,e);let gt=Ov(!0,Qe)?H(Qe,Qe.name):O(Qe,Qe.name);return sh(gt)}function I(Qe){return!!(Qe.transformFlags&536870912)}function R(Qe){return Et(Qe,I)}function M(Qe){for(let gt of Qe.members){if(!US(gt))continue;let nn=tF(gt,Qe,!0);if(Et(nn?.decorators,I)||Et(nn?.parameters,R))return!0}return!1}function N(Qe,gt){let nn=[];return oe(nn,Qe,!1),oe(nn,Qe,!0),M(Qe)&&(gt=dt(t.createNodeArray([...gt,t.createClassStaticBlockDeclaration(t.createBlock(nn,!0))]),gt),nn=void 0),{decorationStatements:nn,members:gt}}function O(Qe,gt){let nn=Bn(Qe.modifiers,m,Ia),rn=Bn(Qe.heritageClauses,b,ef),Nn=Bn(Qe.members,b,$c),Xn=[];({members:Nn,decorationStatements:Xn}=N(Qe,Nn));let _n=t.updateClassDeclaration(Qe,nn,gt,void 0,rn,Nn);return Jr([_n],Xn)}function H(Qe,gt){let nn=ei(Qe,32),rn=ei(Qe,2048),Nn=Bn(Qe.modifiers,zt=>Zk(zt)||Eu(zt)?void 0:zt,al),Xn=P_(Qe),_n=Fe(Qe),Qt=l<2?t.getInternalName(Qe,!1,!0):t.getLocalName(Qe,!1,!0),Yt=Bn(Qe.heritageClauses,b,ef),vi=Bn(Qe.members,b,$c),ho=[];({members:vi,decorationStatements:ho}=N(Qe,vi));let ki=l>=9&&!!_n&&Et(vi,zt=>Jo(zt)&&ei(zt,256)||Il(zt));ki&&(vi=dt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(_n,t.createThis()))])),...vi]),vi));let Ro=t.createClassExpression(Nn,gt&&ol(gt)?void 0:gt,void 0,Yt,vi);Pr(Ro,Qe),dt(Ro,Xn);let nr=_n&&!ki?t.createAssignment(_n,Ro):Ro,qr=t.createVariableDeclaration(Qt,void 0,void 0,nr);Pr(qr,Qe);let xr=t.createVariableDeclarationList([qr],1),ln=t.createVariableStatement(void 0,xr);Pr(ln,Qe),dt(ln,Xn),oc(ln,Qe);let tt=[ln];if(Jr(tt,ho),ve(tt,Qe),nn)if(rn){let zt=t.createExportDefault(Qt);tt.push(zt)}else{let zt=t.createExternalModuleExport(t.getDeclarationName(Qe));tt.push(zt)}return tt}function K(Qe){return t.updateClassExpression(Qe,Bn(Qe.modifiers,m,Ia),Qe.name,void 0,Bn(Qe.heritageClauses,b,ef),Bn(Qe.members,b,$c))}function Z(Qe){return t.updateConstructorDeclaration(Qe,Bn(Qe.modifiers,m,Ia),Bn(Qe.parameters,b,Co),rt(Qe.body,b,Xo))}function V(Qe,gt){return Qe!==gt&&(oc(Qe,gt),Ca(Qe,P_(gt))),Qe}function ue(Qe){return V(t.updateMethodDeclaration(Qe,Bn(Qe.modifiers,m,Ia),Qe.asteriskToken,C.checkDefined(rt(Qe.name,b,ic)),void 0,void 0,Bn(Qe.parameters,b,Co),void 0,rt(Qe.body,b,Xo)),Qe)}function G(Qe){return V(t.updateGetAccessorDeclaration(Qe,Bn(Qe.modifiers,m,Ia),C.checkDefined(rt(Qe.name,b,ic)),Bn(Qe.parameters,b,Co),void 0,rt(Qe.body,b,Xo)),Qe)}function ne(Qe){return V(t.updateSetAccessorDeclaration(Qe,Bn(Qe.modifiers,m,Ia),C.checkDefined(rt(Qe.name,b,ic)),Bn(Qe.parameters,b,Co),rt(Qe.body,b,Xo)),Qe)}function he(Qe){if(!(Qe.flags&33554432||ei(Qe,128)))return V(t.updatePropertyDeclaration(Qe,Bn(Qe.modifiers,m,Ia),C.checkDefined(rt(Qe.name,b,ic)),void 0,void 0,rt(Qe.initializer,b,bt)),Qe)}function ye(Qe){let gt=t.updateParameterDeclaration(Qe,sse(t,Qe.modifiers),Qe.dotDotDotToken,C.checkDefined(rt(Qe.name,b,uS)),void 0,void 0,rt(Qe.initializer,b,bt));return gt!==Qe&&(oc(gt,Qe),dt(gt,P_(Qe)),Ca(gt,P_(Qe)),fr(gt.name,64)),gt}function $(Qe){return _N(Qe.expression,"___metadata")}function Y(Qe){if(!Qe)return;let{false:gt,true:nn}=N8(Qe.decorators,$),rn=[];return Jr(rn,Ft(gt,He)),Jr(rn,Zi(Qe.parameters,Ee)),Jr(rn,Ft(nn,He)),rn}function oe(Qe,gt,nn){Jr(Qe,Ft(me(gt,nn),rn=>t.createExpressionStatement(rn)))}function fe(Qe,gt,nn){return ML(!0,Qe,nn)&>===sa(Qe)}function Ne(Qe,gt){return tr(Qe.members,nn=>fe(nn,gt,Qe))}function me(Qe,gt){let nn=Ne(Qe,gt),rn;for(let Nn of nn)rn=In(rn,ie(Qe,Nn));return rn}function ie(Qe,gt){let nn=tF(gt,Qe,!0),rn=Y(nn);if(!rn)return;let Nn=Se(Qe,gt),Xn=Ce(gt,!ei(gt,128)),_n=l>0?Jo(gt)&&!C_(gt)?t.createVoidZero():t.createNull():void 0,Qt=r().createDecorateHelper(rn,Nn,Xn,_n);return fr(Qt,3072),Ca(Qt,P_(gt)),Qt}function ve(Qe,gt){let nn=Le(gt);nn&&Qe.push(Pr(t.createExpressionStatement(nn),gt))}function Le(Qe){let gt=Xq(Qe),nn=Y(gt);if(!nn)return;let rn=p&&p[Ou(Qe)],Nn=l<2?t.getInternalName(Qe,!1,!0):t.getDeclarationName(Qe,!1,!0),Xn=r().createDecorateHelper(nn,Nn),_n=t.createAssignment(Nn,rn?t.createAssignment(rn,Xn):Xn);return fr(_n,3072),Ca(_n,P_(Qe)),_n}function He(Qe){return C.checkDefined(rt(Qe.expression,b,bt))}function Ee(Qe,gt){let nn;if(Qe){nn=[];for(let rn of Qe){let Nn=r().createParamHelper(He(rn),gt);dt(Nn,rn.expression),fr(Nn,3072),nn.push(Nn)}}return nn}function Ce(Qe,gt){let nn=Qe.name;return Xi(nn)?t.createIdentifier(""):Za(nn)?gt&&!F_(nn.expression)?t.getGeneratedNameForNode(nn):nn.expression:Ve(nn)?t.createStringLiteral(Sr(nn)):t.cloneNode(nn)}function Me(){p||(e.enableSubstitution(80),p=[])}function Fe(Qe){if(o.getNodeCheckFlags(Qe)&262144){Me();let gt=t.createUniqueName(Qe.name&&!ol(Qe.name)?Sr(Qe.name):"default");return p[Ou(Qe)]=gt,i(gt),gt}}function At(Qe){return t.createPropertyAccessExpression(t.getDeclarationName(Qe),"prototype")}function Se(Qe,gt){return sa(gt)?t.getDeclarationName(Qe):At(Qe)}function je(Qe,gt){return gt=u(Qe,gt),Qe===1?at(gt):gt}function at(Qe){switch(Qe.kind){case 80:return Bt(Qe)}return Qe}function Bt(Qe){return yt(Qe)??Qe}function yt(Qe){if(p&&o.getNodeCheckFlags(Qe)&536870912){let gt=o.getReferencedValueDeclaration(Qe);if(gt){let nn=p[gt.id];if(nn){let rn=t.cloneNode(nn);return Ca(rn,Qe),oc(rn,Qe),rn}}}}}var GVe=A({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";ia()}});function kle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=as(e.getCompilerOptions()),u,p,g,m,b,T;return Nm(e,I);function I(w){u=void 0,T=!1;let ae=An(w,ne,e);return Vg(ae,e.readEmitHelpers()),T&&(JA(ae,32),T=!1),ae}function R(){switch(p=void 0,g=void 0,m=void 0,u?.kind){case"class":p=u.classInfo;break;case"class-element":p=u.next.classInfo,g=u.classThis,m=u.classSuper;break;case"name":let w=u.next.next.next;w?.kind==="class-element"&&(p=w.next.classInfo,g=w.classThis,m=w.classSuper);break}}function M(w){u={kind:"class",next:u,classInfo:w,savedPendingExpressions:b},b=void 0,R()}function N(){C.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),b=u.savedPendingExpressions,u=u.next,R()}function O(w){var ae,J;C.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),u={kind:"class-element",next:u},(Il(w)||Jo(w)&&fc(w))&&(u.classThis=(ae=u.next.classInfo)==null?void 0:ae.classThis,u.classSuper=(J=u.next.classInfo)==null?void 0:J.classSuper),R()}function H(){var w;C.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),C.assert(((w=u.next)==null?void 0:w.kind)==="class","Incorrect value for top.next.kind.",()=>{var ae;return`Expected top.next.kind to be 'class' but got '${(ae=u.next)==null?void 0:ae.kind}' instead.`}),u=u.next,R()}function K(){C.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),u={kind:"name",next:u},R()}function Z(){C.assert(u?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u?.kind}' instead.`),u=u.next,R()}function V(){u?.kind==="other"?(C.assert(!b),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:b},b=void 0,R())}function ue(){C.assert(u?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u?.kind}' instead.`),u.depth>0?(C.assert(!b),u.depth--):(b=u.savedPendingExpressions,u=u.next,R())}function G(w){return!!(w.transformFlags&33554432)||!!g&&!!(w.transformFlags&16384)||!!g&&!!m&&!!(w.transformFlags&134217728)}function ne(w){if(!G(w))return w;switch(w.kind){case 170:return C.fail("Use `modifierVisitor` instead.");case 263:return Le(w);case 231:return He(w);case 176:case 172:case 175:return C.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Xn(w);case 226:return ho(w,!1);case 303:return ln(w);case 260:return tt(w);case 208:return zt(w);case 277:return Ue(w);case 110:return Qe(w);case 248:return Yt(w);case 244:return vi(w);case 361:return Ro(w,!1);case 217:return mt(w,!1);case 360:return ft(w,!1);case 213:return gt(w);case 215:return nn(w);case 224:case 225:return ki(w,!1);case 211:return rn(w);case 212:return Nn(w);case 167:return xr(w);case 174:case 178:case 177:case 218:case 262:{V();let ae=An(w,he,e);return ue(),ae}default:return An(w,he,e)}}function he(w){switch(w.kind){case 170:return;default:return ne(w)}}function ye(w){switch(w.kind){case 170:return;default:return w}}function $(w){switch(w.kind){case 176:return Me(w);case 174:return Se(w);case 177:return je(w);case 178:return at(w);case 172:return yt(w);case 175:return Bt(w);default:return ne(w)}}function Y(w){switch(w.kind){case 224:case 225:return ki(w,!0);case 226:return ho(w,!0);case 361:return Ro(w,!0);case 217:return mt(w,!0);default:return ne(w)}}function oe(w){let ae=w.name&&Ve(w.name)&&!ol(w.name)?Sr(w.name):w.name&&Xi(w.name)&&!ol(w.name)?Sr(w.name).slice(1):w.name&&Na(w.name)&&$p(w.name.text,99)?w.name.text:pi(w)?"class":"member";return wy(w)&&(ae=`get_${ae}`),wv(w)&&(ae=`set_${ae}`),w.name&&Xi(w.name)&&(ae=`private_${ae}`),sa(w)&&(ae=`static_${ae}`),"_"+ae}function fe(w,ae){return t.createUniqueName(`${oe(w)}_${ae}`,24)}function Ne(w,ae){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(w,void 0,void 0,ae)],1))}function me(w){let ae=t.createUniqueName("_metadata",48),J,pe,Ge=!1,ke=!1,Dt=!1,Pt,Kt,Tn;if(oR(!1,w)){let On=Et(w.members,Gn=>(ad(Gn)||kd(Gn))&&fc(Gn));Pt=t.createUniqueName("_classThis",On?24:48)}for(let On of w.members){if(RA(On)&&ML(!1,On,w))if(fc(On)){if(!pe){pe=t.createUniqueName("_staticExtraInitializers",48);let Gn=r().createRunInitializersHelper(Pt??t.createThis(),pe);Ca(Gn,w.name??zg(w)),Kt??(Kt=[]),Kt.push(Gn)}}else{if(!J){J=t.createUniqueName("_instanceExtraInitializers",48);let Gn=r().createRunInitializersHelper(t.createThis(),J);Ca(Gn,w.name??zg(w)),Tn??(Tn=[]),Tn.push(Gn)}J??(J=t.createUniqueName("_instanceExtraInitializers",48))}if(Il(On)?SI(On)||(Ge=!0):Jo(On)&&(fc(On)?Ge||(Ge=!!On.initializer||Sf(On)):ke||(ke=!hj(On))),(ad(On)||kd(On))&&fc(On)&&(Dt=!0),pe&&J&&Ge&&ke&&Dt)break}return{class:w,classThis:Pt,metadataReference:ae,instanceMethodExtraInitializersName:J,staticMethodExtraInitializersName:pe,hasStaticInitializers:Ge,hasNonAmbientInstanceFields:ke,hasStaticPrivateClassElements:Dt,pendingStaticInitializers:Kt,pendingInstanceInitializers:Tn}}function ie(w){i(),!eJ(w)&&Ov(!1,w)&&(w=rF(e,w,t.createStringLiteral("")));let ae=t.getLocalName(w,!1,!1,!0),J=me(w),pe=[],Ge,ke,Dt,Pt,Kt=!1,Tn=pt(Xq(w));Tn&&(J.classDecoratorsName=t.createUniqueName("_classDecorators",48),J.classDescriptorName=t.createUniqueName("_classDescriptor",48),J.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),C.assertIsDefined(J.classThis),pe.push(Ne(J.classDecoratorsName,t.createArrayLiteralExpression(Tn)),Ne(J.classDescriptorName),Ne(J.classExtraInitializersName,t.createArrayLiteralExpression()),Ne(J.classThis)),J.hasStaticPrivateClassElements&&(Kt=!0,T=!0));let On=QL(w.heritageClauses,96),Gn=On&&Xc(On.types),yi=Gn&&rt(Gn.expression,ne,bt);if(yi){J.classSuper=t.createUniqueName("_classSuper",48);let Kr=Xl(yi),Po=Zc(Kr)&&!Kr.name||ws(Kr)&&!Kr.name||Bs(Kr)?t.createComma(t.createNumericLiteral(0),yi):yi;pe.push(Ne(J.classSuper,Po));let Dn=t.updateExpressionWithTypeArguments(Gn,J.classSuper,void 0),Fs=t.updateHeritageClause(On,[Dn]);Pt=t.createNodeArray([Fs])}let Di=J.classThis??t.createThis();M(J),Ge=In(Ge,q(J.metadataReference,J.classSuper));let or=w.members;if(or=Bn(or,Kr=>Pl(Kr)?Kr:$(Kr),$c),or=Bn(or,Kr=>Pl(Kr)?$(Kr):Kr,$c),b){let Kr;for(let Po of b){Po=rt(Po,function Fs(Yl){if(!(Yl.transformFlags&16384))return Yl;switch(Yl.kind){case 110:return Kr||(Kr=t.createUniqueName("_outerThis",16),pe.unshift(Ne(Kr,t.createThis()))),Kr;default:return An(Yl,Fs,e)}},bt);let Dn=t.createExpressionStatement(Po);Ge=In(Ge,Dn)}b=void 0}if(N(),Et(J.pendingInstanceInitializers)&&!ig(w)){let Kr=Ee(w,J);if(Kr){let Po=x_(w),Dn=!!(Po&&Xl(Po.expression).kind!==106),Fs=[];if(Dn){let Fo=t.createSpreadElement(t.createIdentifier("arguments")),ds=t.createCallExpression(t.createSuper(),void 0,[Fo]);Fs.push(t.createExpressionStatement(ds))}Jr(Fs,Kr);let Yl=t.createBlock(Fs,!0);Dt=t.createConstructorDeclaration(void 0,[],Yl)}}if(J.staticMethodExtraInitializersName&&pe.push(Ne(J.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),J.instanceMethodExtraInitializersName&&pe.push(Ne(J.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),J.memberInfos&&Bc(J.memberInfos,(Kr,Po)=>{sa(Po)&&(pe.push(Ne(Kr.memberDecoratorsName)),Kr.memberInitializersName&&pe.push(Ne(Kr.memberInitializersName,t.createArrayLiteralExpression())),Kr.memberExtraInitializersName&&pe.push(Ne(Kr.memberExtraInitializersName,t.createArrayLiteralExpression())),Kr.memberDescriptorName&&pe.push(Ne(Kr.memberDescriptorName)))}),J.memberInfos&&Bc(J.memberInfos,(Kr,Po)=>{sa(Po)||(pe.push(Ne(Kr.memberDecoratorsName)),Kr.memberInitializersName&&pe.push(Ne(Kr.memberInitializersName,t.createArrayLiteralExpression())),Kr.memberExtraInitializersName&&pe.push(Ne(Kr.memberExtraInitializersName,t.createArrayLiteralExpression())),Kr.memberDescriptorName&&pe.push(Ne(Kr.memberDescriptorName)))}),Ge=Jr(Ge,J.staticNonFieldDecorationStatements),Ge=Jr(Ge,J.nonStaticNonFieldDecorationStatements),Ge=Jr(Ge,J.staticFieldDecorationStatements),Ge=Jr(Ge,J.nonStaticFieldDecorationStatements),J.classDescriptorName&&J.classDecoratorsName&&J.classExtraInitializersName&&J.classThis){Ge??(Ge=[]);let Kr=t.createPropertyAssignment("value",Di),Po=t.createObjectLiteralExpression([Kr]),Dn=t.createAssignment(J.classDescriptorName,Po),Fs=t.createPropertyAccessExpression(Di,"name"),Yl=r().createESDecorateHelper(t.createNull(),Dn,J.classDecoratorsName,{kind:"class",name:Fs,metadata:J.metadataReference},t.createNull(),J.classExtraInitializersName),Fo=t.createExpressionStatement(Yl);Ca(Fo,zg(w)),Ge.push(Fo);let ds=t.createPropertyAccessExpression(J.classDescriptorName,"value"),Gs=t.createAssignment(J.classThis,ds),hl=t.createAssignment(ae,Gs);Ge.push(t.createExpressionStatement(hl))}if(Ge.push(Oe(Di,J.metadataReference)),Et(J.pendingStaticInitializers)){for(let Kr of J.pendingStaticInitializers){let Po=t.createExpressionStatement(Kr);Ca(Po,jv(Kr)),ke=In(ke,Po)}J.pendingStaticInitializers=void 0}if(J.classExtraInitializersName){let Kr=r().createRunInitializersHelper(Di,J.classExtraInitializersName),Po=t.createExpressionStatement(Kr);Ca(Po,w.name??zg(w)),ke=In(ke,Po)}Ge&&ke&&!J.hasStaticInitializers&&(Jr(Ge,ke),ke=void 0);let Vr=Ge&&t.createClassStaticBlockDeclaration(t.createBlock(Ge,!0));Vr&&Kt&&Pk(Vr,32);let Eo=ke&&t.createClassStaticBlockDeclaration(t.createBlock(ke,!0));if(Vr||Dt||Eo){let Kr=[],Po=or.findIndex(SI);Vr?(Jr(Kr,or,0,Po+1),Kr.push(Vr),Jr(Kr,or,Po+1)):Jr(Kr,or),Dt&&Kr.push(Dt),Eo&&Kr.push(Eo),or=dt(t.createNodeArray(Kr),or)}let Mi=o(),Ci;if(Tn){Ci=t.createClassExpression(void 0,void 0,void 0,Pt,or),J.classThis&&(Ci=xle(t,Ci,J.classThis));let Kr=t.createVariableDeclaration(ae,void 0,void 0,Ci),Po=t.createVariableDeclarationList([Kr]),Dn=J.classThis?t.createAssignment(ae,J.classThis):ae;pe.push(t.createVariableStatement(void 0,Po),t.createReturnStatement(Dn))}else Ci=t.createClassExpression(void 0,w.name,void 0,Pt,or),pe.push(t.createReturnStatement(Ci));if(Kt){JA(Ci,32);for(let Kr of Ci.members)(ad(Kr)||kd(Kr))&&fc(Kr)&&JA(Kr,32)}return Pr(Ci,w),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(pe,Mi))}function ve(w){return Ov(!1,w)||xC(!1,w)}function Le(w){if(ve(w)){let ae=[],J=Nl(w,pi)??w,pe=J.name?t.createStringLiteralFromNode(J.name):t.createStringLiteral("default"),Ge=ei(w,32),ke=ei(w,2048);if(w.name||(w=rF(e,w,pe)),Ge&&ke){let Dt=ie(w);if(w.name){let Pt=t.createVariableDeclaration(t.getLocalName(w),void 0,void 0,Dt);Pr(Pt,w);let Kt=t.createVariableDeclarationList([Pt],1),Tn=t.createVariableStatement(void 0,Kt);ae.push(Tn);let On=t.createExportDefault(t.getDeclarationName(w));Pr(On,w),oc(On,L_(w)),Ca(On,zg(w)),ae.push(On)}else{let Pt=t.createExportDefault(Dt);Pr(Pt,w),oc(Pt,L_(w)),Ca(Pt,zg(w)),ae.push(Pt)}}else{C.assertIsDefined(w.name,"A class declaration that is not a default export must have a name.");let Dt=ie(w),Pt=Ge?Di=>eI(Di)?void 0:ye(Di):ye,Kt=Bn(w.modifiers,Pt,Ia),Tn=t.getLocalName(w,!1,!0),On=t.createVariableDeclaration(Tn,void 0,void 0,Dt);Pr(On,w);let Gn=t.createVariableDeclarationList([On],1),yi=t.createVariableStatement(Kt,Gn);if(Pr(yi,w),oc(yi,L_(w)),ae.push(yi),Ge){let Di=t.createExternalModuleExport(Tn);Pr(Di,w),ae.push(Di)}}return sh(ae)}else{let ae=Bn(w.modifiers,ye,Ia),J=Bn(w.heritageClauses,ne,ef);M(void 0);let pe=Bn(w.members,$,$c);return N(),t.updateClassDeclaration(w,ae,w.name,void 0,J,pe)}}function He(w){if(ve(w)){let ae=ie(w);return Pr(ae,w),ae}else{let ae=Bn(w.modifiers,ye,Ia),J=Bn(w.heritageClauses,ne,ef);M(void 0);let pe=Bn(w.members,$,$c);return N(),t.updateClassExpression(w,ae,w.name,void 0,J,pe)}}function Ee(w,ae){if(Et(ae.pendingInstanceInitializers)){let J=[];return J.push(t.createExpressionStatement(t.inlineExpressions(ae.pendingInstanceInitializers))),ae.pendingInstanceInitializers=void 0,J}}function Ce(w,ae,J,pe,Ge,ke){let Dt=pe[Ge],Pt=ae[Dt];if(Jr(w,Bn(ae,ne,Ki,J,Dt-J)),WS(Pt)){let Kt=[];Ce(Kt,Pt.tryBlock.statements,0,pe,Ge+1,ke);let Tn=t.createNodeArray(Kt);dt(Tn,Pt.tryBlock.statements),w.push(t.updateTryStatement(Pt,t.updateBlock(Pt.tryBlock,Kt),rt(Pt.catchClause,ne,$1),rt(Pt.finallyBlock,ne,Xo)))}else Jr(w,Bn(ae,ne,Ki,Dt,1)),Jr(w,ke);Jr(w,Bn(ae,ne,Ki,Dt+1))}function Me(w){O(w);let ae=Bn(w.modifiers,ye,Ia),J=Bn(w.parameters,ne,Co),pe;if(w.body&&p){let Ge=Ee(p.class,p);if(Ge){let ke=[],Dt=t.copyPrologue(w.body.statements,ke,!1,ne),Pt=Z5(w.body.statements,Dt);Pt.length>0?Ce(ke,w.body.statements,Dt,Pt,0,Ge):(Jr(ke,Ge),Jr(ke,Bn(w.body.statements,ne,Ki))),pe=t.createBlock(ke,!0),Pr(pe,w.body),dt(pe,w.body)}}return pe??(pe=rt(w.body,ne,Xo)),H(),t.updateConstructorDeclaration(w,ae,J,pe)}function Fe(w,ae){return w!==ae&&(oc(w,ae),Ca(w,zg(ae))),w}function At(w,ae,J){let pe,Ge,ke,Dt,Pt,Kt;if(!ae){let Gn=Bn(w.modifiers,ye,Ia);return K(),Ge=qr(w.name),Z(),{modifiers:Gn,referencedName:pe,name:Ge,initializersName:ke,descriptorName:Kt,thisArg:Pt}}let Tn=pt(tF(w,ae.class,!1)),On=Bn(w.modifiers,ye,Ia);if(Tn){let Gn=fe(w,"decorators"),yi=t.createArrayLiteralExpression(Tn),Di=t.createAssignment(Gn,yi),or={memberDecoratorsName:Gn};ae.memberInfos??(ae.memberInfos=new Map),ae.memberInfos.set(w,or),b??(b=[]),b.push(Di);let Vr=RA(w)||kd(w)?sa(w)?ae.staticNonFieldDecorationStatements??(ae.staticNonFieldDecorationStatements=[]):ae.nonStaticNonFieldDecorationStatements??(ae.nonStaticNonFieldDecorationStatements=[]):Jo(w)&&!kd(w)?sa(w)?ae.staticFieldDecorationStatements??(ae.staticFieldDecorationStatements=[]):ae.nonStaticFieldDecorationStatements??(ae.nonStaticFieldDecorationStatements=[]):C.fail(),Eo=Zp(w)?"getter":vp(w)?"setter":jl(w)?"method":kd(w)?"accessor":Jo(w)?"field":C.fail(),Mi;if(Ve(w.name)||Xi(w.name))Mi={computed:!1,name:w.name};else if(R_(w.name))Mi={computed:!0,name:t.createStringLiteralFromNode(w.name)};else{let Kr=w.name.expression;R_(Kr)&&!Ve(Kr)?Mi={computed:!0,name:t.createStringLiteralFromNode(Kr)}:(K(),{referencedName:pe,name:Ge}=nr(w.name),Mi={computed:!0,name:pe},Z())}let Ci={kind:Eo,name:Mi,static:sa(w),private:Xi(w.name),access:{get:Jo(w)||Zp(w)||jl(w),set:Jo(w)||vp(w)},metadata:ae.metadataReference};if(RA(w)){let Kr=sa(w)?ae.staticMethodExtraInitializersName:ae.instanceMethodExtraInitializersName;C.assertIsDefined(Kr);let Po;ad(w)&&J&&(Po=J(w,Bn(On,Yl=>ai(Yl,hN),Ia)),or.memberDescriptorName=Kt=fe(w,"descriptor"),Po=t.createAssignment(Kt,Po));let Dn=r().createESDecorateHelper(t.createThis(),Po??t.createNull(),Gn,Ci,t.createNull(),Kr),Fs=t.createExpressionStatement(Dn);Ca(Fs,zg(w)),Vr.push(Fs)}else if(Jo(w)){ke=or.memberInitializersName??(or.memberInitializersName=fe(w,"initializers")),Dt=or.memberExtraInitializersName??(or.memberExtraInitializersName=fe(w,"extraInitializers")),sa(w)&&(Pt=ae.classThis);let Kr;ad(w)&&C_(w)&&J&&(Kr=J(w,void 0),or.memberDescriptorName=Kt=fe(w,"descriptor"),Kr=t.createAssignment(Kt,Kr));let Po=r().createESDecorateHelper(kd(w)?t.createThis():t.createNull(),Kr??t.createNull(),Gn,Ci,ke,Dt),Dn=t.createExpressionStatement(Po);Ca(Dn,zg(w)),Vr.push(Dn)}}return Ge===void 0&&(K(),Ge=qr(w.name),Z()),!Et(On)&&(jl(w)||Jo(w))&&fr(Ge,1024),{modifiers:On,referencedName:pe,name:Ge,initializersName:ke,extraInitializersName:Dt,descriptorName:Kt,thisArg:Pt}}function Se(w){O(w);let{modifiers:ae,name:J,descriptorName:pe}=At(w,p,xt);if(pe)return H(),Fe(yn(ae,J,pe),w);{let Ge=Bn(w.parameters,ne,Co),ke=rt(w.body,ne,Xo);return H(),Fe(t.updateMethodDeclaration(w,ae,w.asteriskToken,J,void 0,void 0,Ge,void 0,ke),w)}}function je(w){O(w);let{modifiers:ae,name:J,descriptorName:pe}=At(w,p,Ye);if(pe)return H(),Fe(fn(ae,J,pe),w);{let Ge=Bn(w.parameters,ne,Co),ke=rt(w.body,ne,Xo);return H(),Fe(t.updateGetAccessorDeclaration(w,ae,J,Ge,void 0,ke),w)}}function at(w){O(w);let{modifiers:ae,name:J,descriptorName:pe}=At(w,p,ht);if(pe)return H(),Fe(mn(ae,J,pe),w);{let Ge=Bn(w.parameters,ne,Co),ke=rt(w.body,ne,Xo);return H(),Fe(t.updateSetAccessorDeclaration(w,ae,J,Ge,ke),w)}}function Bt(w){O(w);let ae;if(SI(w))ae=An(w,ne,e);else if(UN(w)){let J=g;g=void 0,ae=An(w,ne,e),g=J}else if(w=An(w,ne,e),ae=w,p&&(p.hasStaticInitializers=!0,Et(p.pendingStaticInitializers))){let J=[];for(let ke of p.pendingStaticInitializers){let Dt=t.createExpressionStatement(ke);Ca(Dt,jv(ke)),J.push(Dt)}let pe=t.createBlock(J,!0);ae=[t.createClassStaticBlockDeclaration(pe),ae],p.pendingStaticInitializers=void 0}return H(),ae}function yt(w){mp(w,_n)&&(w=bp(e,w,Qt(w.initializer))),O(w),C.assert(!hj(w),"Not yet implemented.");let{modifiers:ae,name:J,initializersName:pe,extraInitializersName:Ge,descriptorName:ke,thisArg:Dt}=At(w,p,C_(w)?Vt:void 0);i();let Pt=rt(w.initializer,ne,bt);pe&&(Pt=r().createRunInitializersHelper(Dt??t.createThis(),pe,Pt??t.createVoidZero())),sa(w)&&p&&Pt&&(p.hasStaticInitializers=!0);let Kt=o();if(Et(Kt)&&(Pt=t.createImmediatelyInvokedArrowFunction([...Kt,t.createReturnStatement(Pt)])),p&&(sa(w)?(Pt=We(p,!0,Pt),Ge&&(p.pendingStaticInitializers??(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper(p.classThis??t.createThis(),Ge)))):(Pt=We(p,!1,Pt),Ge&&(p.pendingInstanceInitializers??(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Ge))))),H(),C_(w)&&ke){let Tn=L_(w),On=jv(w),Gn=w.name,yi=Gn,Di=Gn;if(Za(Gn)&&!F_(Gn.expression)){let Ci=_5(Gn);if(Ci)yi=t.updateComputedPropertyName(Gn,rt(Gn.expression,ne,bt)),Di=t.updateComputedPropertyName(Gn,Ci.left);else{let Kr=t.createTempVariable(s);Ca(Kr,Gn.expression);let Po=rt(Gn.expression,ne,bt),Dn=t.createAssignment(Kr,Po);Ca(Dn,Gn.expression),yi=t.updateComputedPropertyName(Gn,Dn),Di=t.updateComputedPropertyName(Gn,Kr)}}let or=Bn(ae,Ci=>Ci.kind!==129?Ci:void 0,Ia),Vr=jH(t,w,or,Pt);Pr(Vr,w),fr(Vr,3072),Ca(Vr,On),Ca(Vr.name,w.name);let Eo=fn(or,yi,ke);Pr(Eo,w),oc(Eo,Tn),Ca(Eo,On);let Mi=mn(or,Di,ke);return Pr(Mi,w),fr(Mi,3072),Ca(Mi,On),[Vr,Eo,Mi]}return Fe(t.updatePropertyDeclaration(w,ae,J,void 0,void 0,Pt),w)}function Qe(w){return g??w}function gt(w){if(Od(w.expression)&&g){let ae=rt(w.expression,ne,bt),J=Bn(w.arguments,ne,bt),pe=t.createFunctionCallCall(ae,g,J);return Pr(pe,w),dt(pe,w),pe}return An(w,ne,e)}function nn(w){if(Od(w.tag)&&g){let ae=rt(w.tag,ne,bt),J=t.createFunctionBindCall(ae,g,[]);Pr(J,w),dt(J,w);let pe=rt(w.template,ne,DA);return t.updateTaggedTemplateExpression(w,J,void 0,pe)}return An(w,ne,e)}function rn(w){if(Od(w)&&Ve(w.name)&&g&&m){let ae=t.createStringLiteralFromNode(w.name),J=t.createReflectGetCall(m,ae,g);return Pr(J,w.expression),dt(J,w.expression),J}return An(w,ne,e)}function Nn(w){if(Od(w)&&g&&m){let ae=rt(w.argumentExpression,ne,bt),J=t.createReflectGetCall(m,ae,g);return Pr(J,w.expression),dt(J,w.expression),J}return An(w,ne,e)}function Xn(w){mp(w,_n)&&(w=bp(e,w,Qt(w.initializer)));let ae=t.updateParameterDeclaration(w,void 0,w.dotDotDotToken,rt(w.name,ne,uS),void 0,void 0,rt(w.initializer,ne,bt));return ae!==w&&(oc(ae,w),dt(ae,P_(w)),Ca(ae,P_(w)),fr(ae.name,64)),ae}function _n(w){return Zc(w)&&!w.name&&ve(w)}function Qt(w){let ae=Xl(w);return Zc(ae)&&!ae.name&&!Ov(!1,ae)}function Yt(w){return t.updateForStatement(w,rt(w.initializer,Y,Ef),rt(w.condition,ne,bt),rt(w.incrementor,Y,bt),Id(w.statement,ne,e))}function vi(w){return An(w,Y,e)}function ho(w,ae){if(Bv(w)){let J=wn(w.left),pe=rt(w.right,ne,bt);return t.updateBinaryExpression(w,J,w.operatorToken,pe)}if(Mc(w)){if(mp(w,_n))return w=bp(e,w,Qt(w.right)),An(w,ne,e);if(Od(w.left)&&g&&m){let J=Ys(w.left)?rt(w.left.argumentExpression,ne,bt):Ve(w.left.name)?t.createStringLiteralFromNode(w.left.name):void 0;if(J){let pe=rt(w.right,ne,bt);if(GN(w.operatorToken.kind)){let ke=J;F_(J)||(ke=t.createTempVariable(s),J=t.createAssignment(ke,J));let Dt=t.createReflectGetCall(m,ke,g);Pr(Dt,w.left),dt(Dt,w.left),pe=t.createBinaryExpression(Dt,VN(w.operatorToken.kind),pe),dt(pe,w)}let Ge=ae?void 0:t.createTempVariable(s);return Ge&&(pe=t.createAssignment(Ge,pe),dt(Ge,w)),pe=t.createReflectSetCall(m,J,pe,g),Pr(pe,w),dt(pe,w),Ge&&(pe=t.createComma(pe,Ge),dt(pe,w)),pe}}}if(w.operatorToken.kind===28){let J=rt(w.left,Y,bt),pe=rt(w.right,ae?Y:ne,bt);return t.updateBinaryExpression(w,J,w.operatorToken,pe)}return An(w,ne,e)}function ki(w,ae){if(w.operator===46||w.operator===47){let J=vs(w.operand);if(Od(J)&&g&&m){let pe=Ys(J)?rt(J.argumentExpression,ne,bt):Ve(J.name)?t.createStringLiteralFromNode(J.name):void 0;if(pe){let Ge=pe;F_(pe)||(Ge=t.createTempVariable(s),pe=t.createAssignment(Ge,pe));let ke=t.createReflectGetCall(m,Ge,g);Pr(ke,w),dt(ke,w);let Dt=ae?void 0:t.createTempVariable(s);return ke=l5(t,w,ke,s,Dt),ke=t.createReflectSetCall(m,pe,ke,g),Pr(ke,w),dt(ke,w),Dt&&(ke=t.createComma(ke,Dt),dt(ke,w)),ke}}}return An(w,ne,e)}function Ro(w,ae){let J=ae?Rw(w.elements,Y):Rw(w.elements,ne,Y);return t.updateCommaListExpression(w,J)}function nr(w){if(R_(w)||Xi(w)){let ke=t.createStringLiteralFromNode(w),Dt=rt(w,ne,ic);return{referencedName:ke,name:Dt}}if(R_(w.expression)&&!Ve(w.expression)){let ke=t.createStringLiteralFromNode(w.expression),Dt=rt(w,ne,ic);return{referencedName:ke,name:Dt}}let ae=t.getGeneratedNameForNode(w);s(ae);let J=r().createPropKeyHelper(rt(w.expression,ne,bt)),pe=t.createAssignment(ae,J),Ge=t.updateComputedPropertyName(w,le(pe));return{referencedName:ae,name:Ge}}function qr(w){return Za(w)?xr(w):rt(w,ne,ic)}function xr(w){let ae=rt(w.expression,ne,bt);return F_(ae)||(ae=le(ae)),t.updateComputedPropertyName(w,ae)}function ln(w){return mp(w,_n)&&(w=bp(e,w,Qt(w.initializer))),An(w,ne,e)}function tt(w){return mp(w,_n)&&(w=bp(e,w,Qt(w.initializer))),An(w,ne,e)}function zt(w){return mp(w,_n)&&(w=bp(e,w,Qt(w.initializer))),An(w,ne,e)}function Rn(w){if(wa(w)||pd(w))return wn(w);if(Od(w)&&g&&m){let ae=Ys(w)?rt(w.argumentExpression,ne,bt):Ve(w.name)?t.createStringLiteralFromNode(w.name):void 0;if(ae){let J=t.createTempVariable(void 0),pe=t.createAssignmentTargetWrapper(J,t.createReflectSetCall(m,ae,J,g));return Pr(pe,w),dt(pe,w),pe}}return An(w,ne,e)}function ui(w){if(Mc(w,!0)){mp(w,_n)&&(w=bp(e,w,Qt(w.right)));let ae=Rn(w.left),J=rt(w.right,ne,bt);return t.updateBinaryExpression(w,ae,w.operatorToken,J)}else return Rn(w)}function bi(w){if(Zd(w.expression)){let ae=Rn(w.expression);return t.updateSpreadElement(w,ae)}return An(w,ne,e)}function ro(w){return C.assertNode(w,pL),Zm(w)?bi(w):Vc(w)?An(w,ne,e):ui(w)}function No(w){let ae=rt(w.name,ne,ic);if(Mc(w.initializer,!0)){let J=ui(w.initializer);return t.updatePropertyAssignment(w,ae,J)}if(Zd(w.initializer)){let J=Rn(w.initializer);return t.updatePropertyAssignment(w,ae,J)}return An(w,ne,e)}function _a(w){return mp(w,_n)&&(w=bp(e,w,Qt(w.objectAssignmentInitializer))),An(w,ne,e)}function ja(w){if(Zd(w.expression)){let ae=Rn(w.expression);return t.updateSpreadAssignment(w,ae)}return An(w,ne,e)}function En(w){return C.assertNode(w,dL),qv(w)?ja(w):np(w)?_a(w):_c(w)?No(w):An(w,ne,e)}function wn(w){if(pd(w)){let ae=Bn(w.elements,ro,bt);return t.updateArrayLiteralExpression(w,ae)}else{let ae=Bn(w.properties,En,wg);return t.updateObjectLiteralExpression(w,ae)}}function Ue(w){return mp(w,_n)&&(w=bp(e,w,Qt(w.expression))),An(w,ne,e)}function mt(w,ae){let J=ae?Y:ne,pe=rt(w.expression,J,bt);return t.updateParenthesizedExpression(w,pe)}function ft(w,ae){let J=ae?Y:ne,pe=rt(w.expression,J,bt);return t.updatePartiallyEmittedExpression(w,pe)}function Nt(w,ae){return Et(w)&&(ae?Wd(ae)?(w.push(ae.expression),ae=t.updateParenthesizedExpression(ae,t.inlineExpressions(w))):(w.push(ae),ae=t.inlineExpressions(w)):ae=t.inlineExpressions(w)),ae}function le(w){let ae=Nt(b,w);return C.assertIsDefined(ae),ae!==w&&(b=void 0),ae}function We(w,ae,J){let pe=Nt(ae?w.pendingStaticInitializers:w.pendingInstanceInitializers,J);return pe!==J&&(ae?w.pendingStaticInitializers=void 0:w.pendingInstanceInitializers=void 0),pe}function pt(w){if(!w)return;let ae=[];return Jr(ae,Ft(w.decorators,j)),ae}function j(w){let ae=rt(w.expression,ne,bt);fr(ae,3072);let J=Xl(ae);if(ks(J)){let{target:pe,thisArg:Ge}=t.createCallBinding(ae,s,l,!0);return t.restoreOuterExpressions(ae,t.createFunctionBindCall(pe,Ge,[]))}return ae}function ot(w,ae,J,pe,Ge,ke,Dt){let Pt=t.createFunctionExpression(J,pe,void 0,void 0,ke,void 0,Dt??t.createBlock([]));Pr(Pt,w),Ca(Pt,zg(w)),fr(Pt,3072);let Kt=Ge==="get"||Ge==="set"?Ge:void 0,Tn=t.createStringLiteralFromNode(ae,void 0),On=r().createSetFunctionNameHelper(Pt,Tn,Kt),Gn=t.createPropertyAssignment(t.createIdentifier(Ge),On);return Pr(Gn,w),Ca(Gn,zg(w)),fr(Gn,3072),Gn}function xt(w,ae){return t.createObjectLiteralExpression([ot(w,w.name,ae,w.asteriskToken,"value",Bn(w.parameters,ne,Co),rt(w.body,ne,Xo))])}function Ye(w,ae){return t.createObjectLiteralExpression([ot(w,w.name,ae,void 0,"get",[],rt(w.body,ne,Xo))])}function ht(w,ae){return t.createObjectLiteralExpression([ot(w,w.name,ae,void 0,"set",Bn(w.parameters,ne,Co),rt(w.body,ne,Xo))])}function Vt(w,ae){return t.createObjectLiteralExpression([ot(w,w.name,ae,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(w.name)))])),ot(w,w.name,ae,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(w.name)),t.createIdentifier("value")))]))])}function yn(w,ae,J){return w=Bn(w,pe=>tI(pe)?pe:void 0,Ia),t.createGetAccessorDeclaration(w,ae,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(J,t.createIdentifier("value")))]))}function fn(w,ae,J){return w=Bn(w,pe=>tI(pe)?pe:void 0,Ia),t.createGetAccessorDeclaration(w,ae,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("get")),t.createThis(),[]))]))}function mn(w,ae,J){return w=Bn(w,pe=>tI(pe)?pe:void 0,Ia),t.createSetAccessorDeclaration(w,ae,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function q(w,ae){let J=t.createVariableDeclaration(w,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[ae?Lt(ae):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([J],2))}function Oe(w,ae){let J=t.createObjectDefinePropertyCall(w,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:ae},!0));return fr(t.createIfStatement(ae,t.createExpressionStatement(J)),1)}function Lt(w){return t.createBinaryExpression(t.createElementAccessExpression(w,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var VVe=A({"src/compiler/transformers/esDecorators.ts"(){"use strict";ia()}});function wle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=as(u),g,m=0,b,T,I,R,M=[],N=0,O=e.onEmitNode,H=e.onSubstituteNode;return e.onEmitNode=vi,e.onSubstituteNode=ho,Nm(e,K);function K(tt){if(tt.isDeclarationFile)return tt;Z(1,!1),Z(2,!_j(tt,u));let zt=An(tt,$,e);return Vg(zt,e.readEmitHelpers()),zt}function Z(tt,zt){N=zt?N|tt:N&~tt}function V(tt){return(N&tt)!==0}function ue(){return!V(1)}function G(){return V(2)}function ne(tt,zt,Rn){let ui=tt&~N;if(ui){Z(ui,!0);let bi=zt(Rn);return Z(ui,!1),bi}return zt(Rn)}function he(tt){return An(tt,$,e)}function ye(tt){switch(tt.kind){case 218:case 262:case 174:case 177:case 178:case 176:return tt;case 169:case 208:case 260:break;case 80:if(R&&l.isArgumentsLocalBinding(tt))return R;break}return An(tt,ye,e)}function $(tt){if(!(tt.transformFlags&256))return R?ye(tt):tt;switch(tt.kind){case 134:return;case 223:return ve(tt);case 174:return ne(3,He,tt);case 262:return ne(3,Me,tt);case 218:return ne(3,Fe,tt);case 219:return ne(1,At,tt);case 211:return T&&zr(tt)&&tt.expression.kind===108&&T.add(tt.name.escapedText),An(tt,$,e);case 212:return T&&tt.expression.kind===108&&(I=!0),An(tt,$,e);case 177:return ne(3,Ee,tt);case 178:return ne(3,Ce,tt);case 176:return ne(3,Le,tt);case 263:case 231:return ne(3,he,tt);default:return An(tt,$,e)}}function Y(tt){if(wie(tt))switch(tt.kind){case 243:return fe(tt);case 248:return ie(tt);case 249:return Ne(tt);case 250:return me(tt);case 299:return oe(tt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return An(tt,Y,e);default:return C.assertNever(tt,"Unhandled node.")}return $(tt)}function oe(tt){let zt=new Set;Se(tt.variableDeclaration,zt);let Rn;if(zt.forEach((ui,bi)=>{b.has(bi)&&(Rn||(Rn=new Set(b)),Rn.delete(bi))}),Rn){let ui=b;b=Rn;let bi=An(tt,Y,e);return b=ui,bi}else return An(tt,Y,e)}function fe(tt){if(je(tt.declarationList)){let zt=at(tt.declarationList,!1);return zt?t.createExpressionStatement(zt):void 0}return An(tt,$,e)}function Ne(tt){return t.updateForInStatement(tt,je(tt.initializer)?at(tt.initializer,!0):C.checkDefined(rt(tt.initializer,$,Ef)),C.checkDefined(rt(tt.expression,$,bt)),Id(tt.statement,Y,e))}function me(tt){return t.updateForOfStatement(tt,rt(tt.awaitModifier,$,gH),je(tt.initializer)?at(tt.initializer,!0):C.checkDefined(rt(tt.initializer,$,Ef)),C.checkDefined(rt(tt.expression,$,bt)),Id(tt.statement,Y,e))}function ie(tt){let zt=tt.initializer;return t.updateForStatement(tt,je(zt)?at(zt,!1):rt(tt.initializer,$,Ef),rt(tt.condition,$,bt),rt(tt.incrementor,$,bt),Id(tt.statement,Y,e))}function ve(tt){return ue()?An(tt,$,e):Pr(dt(t.createYieldExpression(void 0,rt(tt.expression,$,bt)),tt),tt)}function Le(tt){let zt=R;R=void 0;let Rn=t.updateConstructorDeclaration(tt,Bn(tt.modifiers,$,Ia),xl(tt.parameters,$,e),nn(tt));return R=zt,Rn}function He(tt){let zt,Rn=Gc(tt),ui=R;R=void 0;let bi=t.updateMethodDeclaration(tt,Bn(tt.modifiers,$,al),tt.asteriskToken,tt.name,void 0,void 0,zt=Rn&2?Nn(tt):xl(tt.parameters,$,e),void 0,Rn&2?Xn(tt,zt):nn(tt));return R=ui,bi}function Ee(tt){let zt=R;R=void 0;let Rn=t.updateGetAccessorDeclaration(tt,Bn(tt.modifiers,$,al),tt.name,xl(tt.parameters,$,e),void 0,nn(tt));return R=zt,Rn}function Ce(tt){let zt=R;R=void 0;let Rn=t.updateSetAccessorDeclaration(tt,Bn(tt.modifiers,$,al),tt.name,xl(tt.parameters,$,e),nn(tt));return R=zt,Rn}function Me(tt){let zt,Rn=R;R=void 0;let ui=Gc(tt),bi=t.updateFunctionDeclaration(tt,Bn(tt.modifiers,$,al),tt.asteriskToken,tt.name,void 0,zt=ui&2?Nn(tt):xl(tt.parameters,$,e),void 0,ui&2?Xn(tt,zt):rf(tt.body,$,e));return R=Rn,bi}function Fe(tt){let zt,Rn=R;R=void 0;let ui=Gc(tt),bi=t.updateFunctionExpression(tt,Bn(tt.modifiers,$,Ia),tt.asteriskToken,tt.name,void 0,zt=ui&2?Nn(tt):xl(tt.parameters,$,e),void 0,ui&2?Xn(tt,zt):rf(tt.body,$,e));return R=Rn,bi}function At(tt){let zt,Rn=Gc(tt);return t.updateArrowFunction(tt,Bn(tt.modifiers,$,Ia),void 0,zt=Rn&2?Nn(tt):xl(tt.parameters,$,e),void 0,tt.equalsGreaterThanToken,Rn&2?Xn(tt,zt):rf(tt.body,$,e))}function Se({name:tt},zt){if(Ve(tt))zt.add(tt.escapedText);else for(let Rn of tt.elements)Vc(Rn)||Se(Rn,zt)}function je(tt){return!!tt&&jc(tt)&&!(tt.flags&7)&&tt.declarations.some(gt)}function at(tt,zt){Bt(tt);let Rn=qC(tt);return Rn.length===0?zt?rt(t.converters.convertToAssignmentElementTarget(tt.declarations[0].name),$,bt):void 0:t.inlineExpressions(Ft(Rn,Qe))}function Bt(tt){Ke(tt.declarations,yt)}function yt({name:tt}){if(Ve(tt))s(tt);else for(let zt of tt.elements)Vc(zt)||yt(zt)}function Qe(tt){let zt=Ca(t.createAssignment(t.converters.convertToAssignmentElementTarget(tt.name),tt.initializer),tt);return C.checkDefined(rt(zt,$,bt))}function gt({name:tt}){if(Ve(tt))return b.has(tt.escapedText);for(let zt of tt.elements)if(!Vc(zt)&>(zt))return!0;return!1}function nn(tt){C.assertIsDefined(tt.body);let zt=T,Rn=I;T=new Set,I=!1;let ui=rf(tt.body,$,e),bi=Nl(tt,zs);if(p>=2&&l.getNodeCheckFlags(tt)&384&&(Gc(bi)&3)!==3){if(Yt(),T.size){let No=iF(t,l,tt,T);M[ss(No)]=!0;let _a=ui.statements.slice();Qh(_a,[No]),ui=t.updateBlock(ui,_a)}I&&(l.getNodeCheckFlags(tt)&256?XA(ui,Ok):l.getNodeCheckFlags(tt)&128&&XA(ui,wk))}return T=zt,I=Rn,ui}function rn(){C.assert(R);let tt=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),zt=t.createVariableStatement(void 0,[tt]);return Ku(zt),M_(zt,2097152),zt}function Nn(tt){if(Cw(tt.parameters))return xl(tt.parameters,$,e);let zt=[];for(let ui of tt.parameters){if(ui.initializer||ui.dotDotDotToken){if(tt.kind===219){let ro=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));zt.push(ro)}break}let bi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(ui.name,8));zt.push(bi)}let Rn=t.createNodeArray(zt);return dt(Rn,tt.parameters),Rn}function Xn(tt,zt){let Rn=Cw(tt.parameters)?void 0:xl(tt.parameters,$,e);i();let bi=Nl(tt,ea).type,ro=p<2?Qt(bi):void 0,No=tt.kind===219,_a=R,En=(l.getNodeCheckFlags(tt)&512)!==0&&!R;En&&(R=t.createUniqueName("arguments"));let wn;if(Rn)if(No){let pt=[];C.assert(zt.length<=tt.parameters.length);for(let j=0;j=2&&l.getNodeCheckFlags(tt)&384;if(j&&(Yt(),T.size)){let xt=iF(t,l,tt,T);M[ss(xt)]=!0,Qh(pt,[xt])}En&&Qh(pt,[rn()]);let ot=t.createBlock(pt,!0);dt(ot,tt.body),j&&I&&(l.getNodeCheckFlags(tt)&256?XA(ot,Ok):l.getNodeCheckFlags(tt)&128&&XA(ot,wk)),We=ot}return b=Ue,No||(T=mt,I=ft,R=_a),We}function _n(tt,zt){return Xo(tt)?t.updateBlock(tt,Bn(tt.statements,Y,Ki,zt)):t.converters.convertToFunctionBlock(C.checkDefined(rt(tt,Y,x6)))}function Qt(tt){let zt=tt&&PL(tt);if(zt&&Qd(zt)){let Rn=l.getTypeReferenceSerializationKind(zt);if(Rn===1||Rn===0)return zt}}function Yt(){g&1||(g|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function vi(tt,zt,Rn){if(g&1&&xr(zt)){let ui=l.getNodeCheckFlags(zt)&384;if(ui!==m){let bi=m;m=ui,O(tt,zt,Rn),m=bi;return}}else if(g&&M[ss(zt)]){let ui=m;m=0,O(tt,zt,Rn),m=ui;return}O(tt,zt,Rn)}function ho(tt,zt){return zt=H(tt,zt),tt===1&&m?ki(zt):zt}function ki(tt){switch(tt.kind){case 211:return Ro(tt);case 212:return nr(tt);case 213:return qr(tt)}return tt}function Ro(tt){return tt.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),tt.name),tt):tt}function nr(tt){return tt.expression.kind===108?ln(tt.argumentExpression,tt):tt}function qr(tt){let zt=tt.expression;if(Od(zt)){let Rn=zr(zt)?Ro(zt):nr(zt);return t.createCallExpression(t.createPropertyAccessExpression(Rn,"call"),void 0,[t.createThis(),...tt.arguments])}return tt}function xr(tt){let zt=tt.kind;return zt===263||zt===176||zt===174||zt===177||zt===178}function ln(tt,zt){return m&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[tt]),"value"),zt):dt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[tt]),zt)}}function iF(e,t,r,i){let o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,u)=>{let p=Hi(u),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,fr(e.createPropertyAccessExpression(fr(e.createSuper(),8),p),8)))),o&&g.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(fr(e.createPropertyAccessExpression(fr(e.createSuper(),8),p),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(p,e.createObjectLiteralExpression(g)))}),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(s,!0)]))],2))}var jVe=A({"src/compiler/transformers/es2017.ts"(){"use strict";ia()}});function Ole(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=as(u),g=e.onEmitNode;e.onEmitNode=_a;let m=e.onSubstituteNode;e.onSubstituteNode=ja;let b=!1,T,I,R,M=0,N=0,O,H,K,Z,V=[];return Nm(e,ye);function ue(le,We){return N!==(N&~le|We)}function G(le,We){let pt=N;return N=(N&~le|We)&3,pt}function ne(le){N=le}function he(le){H=In(H,t.createVariableDeclaration(le))}function ye(le){if(le.isDeclarationFile)return le;O=le;let We=At(le);return Vg(We,e.readEmitHelpers()),O=void 0,H=void 0,We}function $(le){return me(le,!1)}function Y(le){return me(le,!0)}function oe(le){if(le.kind!==134)return le}function fe(le,We,pt,j){if(ue(pt,j)){let ot=G(pt,j),xt=le(We);return ne(ot),xt}return le(We)}function Ne(le){return An(le,$,e)}function me(le,We){if(!(le.transformFlags&128))return le;switch(le.kind){case 223:return ie(le);case 229:return ve(le);case 253:return Le(le);case 256:return He(le);case 210:return Ce(le);case 226:return je(le,We);case 361:return at(le,We);case 299:return Bt(le);case 243:return yt(le);case 260:return Qe(le);case 246:case 247:case 249:return fe(Ne,le,0,2);case 250:return Nn(le,void 0);case 248:return fe(nn,le,0,2);case 222:return rn(le);case 176:return fe(Ro,le,2,1);case 174:return fe(xr,le,2,1);case 177:return fe(nr,le,2,1);case 178:return fe(qr,le,2,1);case 262:return fe(ln,le,2,1);case 218:return fe(zt,le,2,1);case 219:return fe(tt,le,2,0);case 169:return ho(le);case 244:return Me(le);case 217:return Fe(le,We);case 215:return Se(le);case 211:return K&&zr(le)&&le.expression.kind===108&&K.add(le.name.escapedText),An(le,$,e);case 212:return K&&le.expression.kind===108&&(Z=!0),An(le,$,e);case 263:case 231:return fe(Ne,le,2,1);default:return An(le,$,e)}}function ie(le){return I&2&&I&1?Pr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(rt(le.expression,$,bt))),le),le):An(le,$,e)}function ve(le){if(I&2&&I&1){if(le.asteriskToken){let We=rt(C.checkDefined(le.expression),$,bt);return Pr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(le,le.asteriskToken,dt(r().createAsyncDelegatorHelper(dt(r().createAsyncValuesHelper(We),We)),We)))),le),le)}return Pr(dt(t.createYieldExpression(void 0,Qt(le.expression?rt(le.expression,$,bt):t.createVoidZero())),le),le)}return An(le,$,e)}function Le(le){return I&2&&I&1?t.updateReturnStatement(le,Qt(le.expression?rt(le.expression,$,bt):t.createVoidZero())):An(le,$,e)}function He(le){if(I&2){let We=Ij(le);return We.kind===250&&We.awaitModifier?Nn(We,le):t.restoreEnclosingLabel(rt(We,$,Ki,t.liftToBlock),le)}return An(le,$,e)}function Ee(le){let We,pt=[];for(let j of le)if(j.kind===305){We&&(pt.push(t.createObjectLiteralExpression(We)),We=void 0);let ot=j.expression;pt.push(rt(ot,$,bt))}else We=In(We,j.kind===303?t.createPropertyAssignment(j.name,rt(j.initializer,$,bt)):rt(j,$,wg));return We&&pt.push(t.createObjectLiteralExpression(We)),pt}function Ce(le){if(le.transformFlags&65536){let We=Ee(le.properties);We.length&&We[0].kind!==210&&We.unshift(t.createObjectLiteralExpression());let pt=We[0];if(We.length>1){for(let j=1;j=2&&l.getNodeCheckFlags(le)&384;if(ht){No();let yn=iF(t,l,le,K);V[ss(yn)]=!0,Qh(ot,[yn])}ot.push(Ye);let Vt=t.updateBlock(le.body,ot);return ht&&Z&&(l.getNodeCheckFlags(le)&256?XA(Vt,Ok):l.getNodeCheckFlags(le)&128&&XA(Vt,wk)),K=pt,Z=j,Vt}function bi(le){i();let We=0,pt=[],j=rt(le.body,$,x6)??t.createBlock([]);Xo(j)&&(We=t.copyPrologue(j.statements,pt,!1,$)),Jr(pt,ro(void 0,le));let ot=o();if(We>0||Et(pt)||Et(ot)){let xt=t.converters.convertToFunctionBlock(j,!0);return Qh(pt,ot),Jr(pt,xt.statements.slice(We)),t.updateBlock(xt,dt(t.createNodeArray(pt),xt.statements))}return j}function ro(le,We){let pt=!1;for(let j of We.parameters)if(pt){if(ta(j.name)){if(j.name.elements.length>0){let ot=iE(j,$,e,0,t.getGeneratedNameForNode(j));if(Et(ot)){let xt=t.createVariableDeclarationList(ot),Ye=t.createVariableStatement(void 0,xt);fr(Ye,2097152),le=In(le,Ye)}}else if(j.initializer){let ot=t.getGeneratedNameForNode(j),xt=rt(j.initializer,$,bt),Ye=t.createAssignment(ot,xt),ht=t.createExpressionStatement(Ye);fr(ht,2097152),le=In(le,ht)}}else if(j.initializer){let ot=t.cloneNode(j.name);dt(ot,j.name),fr(ot,96);let xt=rt(j.initializer,$,bt);M_(xt,3168);let Ye=t.createAssignment(ot,xt);dt(Ye,j),fr(Ye,3072);let ht=t.createBlock([t.createExpressionStatement(Ye)]);dt(ht,j),fr(ht,3905);let Vt=t.createTypeCheck(t.cloneNode(j.name),"undefined"),yn=t.createIfStatement(Vt,ht);Ku(yn),dt(yn,j),fr(yn,2101056),le=In(le,yn)}}else if(j.transformFlags&65536){pt=!0;let ot=iE(j,$,e,1,t.getGeneratedNameForNode(j),!1,!0);if(Et(ot)){let xt=t.createVariableDeclarationList(ot),Ye=t.createVariableStatement(void 0,xt);fr(Ye,2097152),le=In(le,Ye)}}return le}function No(){T&1||(T|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function _a(le,We,pt){if(T&1&&ft(We)){let j=l.getNodeCheckFlags(We)&384;if(j!==M){let ot=M;M=j,g(le,We,pt),M=ot;return}}else if(T&&V[ss(We)]){let j=M;M=0,g(le,We,pt),M=j;return}g(le,We,pt)}function ja(le,We){return We=m(le,We),le===1&&M?En(We):We}function En(le){switch(le.kind){case 211:return wn(le);case 212:return Ue(le);case 213:return mt(le)}return le}function wn(le){return le.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),le.name),le):le}function Ue(le){return le.expression.kind===108?Nt(le.argumentExpression,le):le}function mt(le){let We=le.expression;if(Od(We)){let pt=zr(We)?wn(We):Ue(We);return t.createCallExpression(t.createPropertyAccessExpression(pt,"call"),void 0,[t.createThis(),...le.arguments])}return le}function ft(le){let We=le.kind;return We===263||We===176||We===174||We===177||We===178}function Nt(le,We){return M&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),"value"),We):dt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),We)}}var UVe=A({"src/compiler/transformers/es2018.ts"(){"use strict";ia()}});function Fle(e){let t=e.factory;return Nm(e,r);function r(s){return s.isDeclarationFile?s:An(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 299:return o(s);default:return An(s,i,e)}}function o(s){return s.variableDeclaration?An(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),rt(s.block,i,Xo))}}var HVe=A({"src/compiler/transformers/es2019.ts"(){"use strict";ia()}});function Wle(e){let{factory:t,hoistVariableDeclaration:r}=e;return Nm(e,i);function i(R){return R.isDeclarationFile?R:An(R,o,e)}function o(R){if(!(R.transformFlags&32))return R;switch(R.kind){case 213:{let M=p(R,!1);return C.assertNotNode(M,uI),M}case 211:case 212:if(Hu(R)){let M=m(R,!1,!1);return C.assertNotNode(M,uI),M}return An(R,o,e);case 226:return R.operatorToken.kind===61?T(R):An(R,o,e);case 220:return I(R);default:return An(R,o,e)}}function s(R){C.assertNotNode(R,E6);let M=[R];for(;!R.questionDotToken&&!q1(R);)R=aa(Sm(R.expression),Hu),C.assertNotNode(R,E6),M.unshift(R);return{expression:R.expression,chain:M}}function l(R,M,N){let O=g(R.expression,M,N);return uI(O)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,O.expression),O.thisArg):t.updateParenthesizedExpression(R,O)}function u(R,M,N){if(Hu(R))return m(R,M,N);let O=rt(R.expression,o,bt);C.assertNotNode(O,uI);let H;return M&&(rE(O)?H=O:(H=t.createTempVariable(r),O=t.createAssignment(H,O))),O=R.kind===211?t.updatePropertyAccessExpression(R,O,rt(R.name,o,Ve)):t.updateElementAccessExpression(R,O,rt(R.argumentExpression,o,bt)),H?t.createSyntheticReferenceExpression(O,H):O}function p(R,M){if(Hu(R))return m(R,M,!1);if(Wd(R.expression)&&Hu(vs(R.expression))){let N=l(R.expression,!0,!1),O=Bn(R.arguments,o,bt);return uI(N)?dt(t.createFunctionCallCall(N.expression,N.thisArg,O),R):t.updateCallExpression(R,N,void 0,O)}return An(R,o,e)}function g(R,M,N){switch(R.kind){case 217:return l(R,M,N);case 211:case 212:return u(R,M,N);case 213:return p(R,M);default:return rt(R,o,bt)}}function m(R,M,N){let{expression:O,chain:H}=s(R),K=g(Sm(O),lS(H[0]),!1),Z=uI(K)?K.thisArg:void 0,V=uI(K)?K.expression:K,ue=t.restoreOuterExpressions(O,V,8);rE(V)||(V=t.createTempVariable(r),ue=t.createAssignment(V,ue));let G=V,ne;for(let ye=0;yeme&&Jr(ie,Bn(fe.statements,b,Ki,me,ve-me));break}ve++}C.assert(veN(ie,me))))],me,Ne===2)}return An(fe,b,e)}function H(fe,Ne,me,ie,ve){let Le=[];for(let Ce=Ne;Cet&&(t=i)}return t}function XVe(e){let t=0;for(let r of e){let i=rJ(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var YVe=A({"src/compiler/transformers/esnext.ts"(){"use strict";ia()}});function Ule(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions(),o,s;return Nm(e,b);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;let Se=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=Se,s.filenameDeclaration.name}function u(Se){return i.jsx===5?"jsxDEV":Se?"jsxs":"jsx"}function p(Se){let je=u(Se);return m(je)}function g(){return m("Fragment")}function m(Se){var je,at;let Bt=Se==="createElement"?s.importSpecifier:j3(s.importSpecifier,i),yt=(at=(je=s.utilizedImplicitRuntimeImports)==null?void 0:je.get(Bt))==null?void 0:at.get(Se);if(yt)return yt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let Qe=s.utilizedImplicitRuntimeImports.get(Bt);Qe||(Qe=new Map,s.utilizedImplicitRuntimeImports.set(Bt,Qe));let gt=t.createUniqueName(`_${Se}`,112),nn=t.createImportSpecifier(!1,t.createIdentifier(Se),gt);return hae(gt,nn),Qe.set(Se,nn),gt}function b(Se){if(Se.isDeclarationFile)return Se;o=Se,s={},s.importSpecifier=V3(i,Se);let je=An(Se,T,e);Vg(je,e.readEmitHelpers());let at=je.statements;if(s.filenameDeclaration&&(at=mS(at.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(let[Bt,yt]of Vo(s.utilizedImplicitRuntimeImports.entries()))if(ac(Se)){let Qe=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Vo(yt.values()))),t.createStringLiteral(Bt),void 0);Uy(Qe,!1),at=mS(at.slice(),Qe)}else if(Fp(Se)){let Qe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Vo(yt.values(),gt=>t.createBindingElement(void 0,gt.propertyName,gt.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Bt)]))],2));Uy(Qe,!1),at=mS(at.slice(),Qe)}}return at!==je.statements&&(je=t.updateSourceFile(je,at)),s=void 0,je}function T(Se){return Se.transformFlags&2?I(Se):Se}function I(Se){switch(Se.kind){case 284:return H(Se,!1);case 285:return K(Se,!1);case 288:return Z(Se,!1);case 294:return At(Se);default:return An(Se,T,e)}}function R(Se){switch(Se.kind){case 12:return ve(Se);case 294:return At(Se);case 284:return H(Se,!0);case 285:return K(Se,!0);case 288:return Z(Se,!0);default:return C.failBadSyntaxKind(Se)}}function M(Se){return Se.properties.some(je=>_c(je)&&(Ve(je.name)&&Sr(je.name)==="__proto__"||Na(je.name)&&je.name.text==="__proto__"))}function N(Se){let je=!1;for(let at of Se.attributes.properties)if(pI(at)&&(!wa(at.expression)||at.expression.properties.some(qv)))je=!0;else if(je&&O_(at)&&Ve(at.name)&&at.name.escapedText==="key")return!0;return!1}function O(Se){return s.importSpecifier===void 0||N(Se)}function H(Se,je){return(O(Se.openingElement)?he:G)(Se.openingElement,Se.children,je,Se)}function K(Se,je){return(O(Se)?he:G)(Se,void 0,je,Se)}function Z(Se,je){return(s.importSpecifier===void 0?$:ye)(Se.openingFragment,Se.children,je,Se)}function V(Se){let je=ue(Se);return je&&t.createObjectLiteralExpression([je])}function ue(Se){let je=gR(Se);if(De(je)===1&&!je[0].dotDotDotToken){let Bt=R(je[0]);return Bt&&t.createPropertyAssignment("children",Bt)}let at=Vi(Se,R);return De(at)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(at)):void 0}function G(Se,je,at,Bt){let yt=Me(Se),Qe=je&&je.length?ue(je):void 0,gt=vn(Se.attributes.properties,Nn=>!!Nn.name&&Ve(Nn.name)&&Nn.name.escapedText==="key"),nn=gt?tr(Se.attributes.properties,Nn=>Nn!==gt):Se.attributes.properties,rn=De(nn)?oe(nn,Qe):t.createObjectLiteralExpression(Qe?[Qe]:et);return ne(yt,rn,gt,je||et,at,Bt)}function ne(Se,je,at,Bt,yt,Qe){var gt;let nn=gR(Bt),rn=De(nn)>1||!!((gt=nn[0])!=null&>.dotDotDotToken),Nn=[Se,je];if(at&&Nn.push(ie(at.initializer)),i.jsx===5){let _n=Nl(o);if(_n&&no(_n)){at===void 0&&Nn.push(t.createVoidZero()),Nn.push(rn?t.createTrue():t.createFalse());let Qt=Es(_n,Qe.pos);Nn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Qt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Qt.character+1))])),Nn.push(t.createThis())}}let Xn=dt(t.createCallExpression(p(rn),void 0,Nn),Qe);return yt&&Ku(Xn),Xn}function he(Se,je,at,Bt){let yt=Me(Se),Qe=Se.attributes.properties,gt=De(Qe)?oe(Qe):t.createNull(),nn=s.importSpecifier===void 0?LH(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,Se):m("createElement"),rn=qae(t,nn,yt,gt,Vi(je,R),Bt);return at&&Ku(rn),rn}function ye(Se,je,at,Bt){let yt;if(je&&je.length){let Qe=V(je);Qe&&(yt=Qe)}return ne(g(),yt||t.createObjectLiteralExpression([]),void 0,je,at,Bt)}function $(Se,je,at,Bt){let yt=Jae(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Vi(je,R),Se,Bt);return at&&Ku(yt),yt}function Y(Se){return wa(Se.expression)&&!M(Se.expression)?Io(Se.expression.properties,je=>C.checkDefined(rt(je,T,wg))):t.createSpreadAssignment(C.checkDefined(rt(Se.expression,T,bt)))}function oe(Se,je){let at=as(i);return at&&at>=5?t.createObjectLiteralExpression(fe(Se,je)):Ne(Se,je)}function fe(Se,je){let at=ts(YB(Se,pI,(Bt,yt)=>ts(Ft(Bt,Qe=>yt?Y(Qe):me(Qe)))));return je&&at.push(je),at}function Ne(Se,je){let at=[],Bt=[];for(let Qe of Se){if(pI(Qe)){if(wa(Qe.expression)&&!M(Qe.expression)){for(let gt of Qe.expression.properties){if(qv(gt)){yt(),at.push(C.checkDefined(rt(gt.expression,T,bt)));continue}Bt.push(C.checkDefined(rt(gt,T)))}continue}yt(),at.push(C.checkDefined(rt(Qe.expression,T,bt)));continue}Bt.push(me(Qe))}return je&&Bt.push(je),yt(),at.length&&!wa(at[0])&&at.unshift(t.createObjectLiteralExpression()),ah(at)||r().createAssignHelper(at);function yt(){Bt.length&&(at.push(t.createObjectLiteralExpression(Bt)),Bt=[])}}function me(Se){let je=Fe(Se),at=ie(Se.initializer);return t.createPropertyAssignment(je,at)}function ie(Se){if(Se===void 0)return t.createTrue();if(Se.kind===11){let je=Se.singleQuote!==void 0?Se.singleQuote:!s3(Se,o),at=t.createStringLiteral(Ce(Se.text)||Se.text,je);return dt(at,Se)}return Se.kind===294?Se.expression===void 0?t.createTrue():C.checkDefined(rt(Se.expression,T,bt)):cg(Se)?H(Se,!1):zS(Se)?K(Se,!1):X1(Se)?Z(Se,!1):C.failBadSyntaxKind(Se)}function ve(Se){let je=Le(Se.text);return je===void 0?void 0:t.createStringLiteral(je)}function Le(Se){let je,at=0,Bt=-1;for(let yt=0;yt{if(Qe)return Bx(parseInt(Qe,10));if(gt)return Bx(parseInt(gt,16));{let rn=yIe.get(nn);return rn?Bx(rn):je}})}function Ce(Se){let je=Ee(Se);return je===Se?void 0:je}function Me(Se){if(Se.kind===284)return Me(Se.openingElement);{let je=Se.tagName;return Ve(je)&&yR(je.escapedText)?t.createStringLiteral(Sr(je)):e_(je)?t.createStringLiteral(Sr(je.namespace)+":"+Sr(je.name)):Kk(t,je)}}function Fe(Se){let je=Se.name;if(Ve(je)){let at=Sr(je);return/^[A-Za-z_]\w*$/.test(at)?je:t.createStringLiteral(at)}return t.createStringLiteral(Sr(je.namespace)+":"+Sr(je.name))}function At(Se){let je=rt(Se.expression,T,bt);return Se.dotDotDotToken?t.createSpreadElement(je):je}}var yIe,$Ve=A({"src/compiler/transformers/jsx.ts"(){"use strict";ia(),yIe=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 Hle(e){let{factory:t,hoistVariableDeclaration:r}=e;return Nm(e,i);function i(p){return p.isDeclarationFile?p:An(p,o,e)}function o(p){if(!(p.transformFlags&512))return p;switch(p.kind){case 226:return s(p);default:return An(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return u(p);default:return An(p,o,e)}}function l(p){let g,m,b=rt(p.left,o,bt),T=rt(p.right,o,bt);if(Ys(b)){let I=t.createTempVariable(r),R=t.createTempVariable(r);g=dt(t.createElementAccessExpression(dt(t.createAssignment(I,b.expression),b.expression),dt(t.createAssignment(R,b.argumentExpression),b.argumentExpression)),b),m=dt(t.createElementAccessExpression(I,R),b)}else if(zr(b)){let I=t.createTempVariable(r);g=dt(t.createPropertyAccessExpression(dt(t.createAssignment(I,b.expression),b.expression),b.name),b),m=dt(t.createPropertyAccessExpression(I,b.name),b)}else g=b,m=b;return dt(t.createAssignment(g,dt(t.createGlobalMethodCall("Math","pow",[m,T]),p)),p)}function u(p){let g=rt(p.left,o,bt),m=rt(p.right,o,bt);return dt(t.createGlobalMethodCall("Math","pow",[g,m]),p)}}var QVe=A({"src/compiler/transformers/es2016.ts"(){"use strict";ia()}});function bIe(e,t){return{kind:e,expression:t}}function qle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),g=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=cf,e.onSubstituteNode=Lf;let b,T,I,R;function M(te){R=In(R,t.createVariableDeclaration(te))}let N,O;return Nm(e,H);function H(te){if(te.isDeclarationFile)return te;b=te,T=te.text;let lt=oe(te);return Vg(lt,e.readEmitHelpers()),b=void 0,T=void 0,R=void 0,I=0,lt}function K(te,lt){let Wt=I;return I=(I&~te|lt)&32767,Wt}function Z(te,lt,Wt){I=(I&~lt|Wt)&-32768|te}function V(te){return(I&8192)!==0&&te.kind===253&&!te.expression}function ue(te){return te.transformFlags&4194304&&(Rm(te)||OS(te)||Lae(te)||SN(te)||TN(te)||GR(te)||IN(te)||WS(te)||$1(te)||J1(te)||ky(te,!1)||Xo(te))}function G(te){return(te.transformFlags&1024)!==0||N!==void 0||I&8192&&ue(te)||ky(te,!1)&&yo(te)||(Tm(te)&1)!==0}function ne(te){return G(te)?Y(te,!1):te}function he(te){return G(te)?Y(te,!0):te}function ye(te){if(G(te)){let lt=Nl(te);if(Jo(lt)&&fc(lt)){let Wt=K(32670,16449),jt=Y(te,!1);return Z(Wt,229376,0),jt}return Y(te,!1)}return te}function $(te){return te.kind===108?Ql(te,!0):ne(te)}function Y(te,lt){switch(te.kind){case 126:return;case 263:return Me(te);case 231:return Fe(te);case 169:return ja(te);case 262:return fn(te);case 219:return Vt(te);case 218:return yn(te);case 260:return Tn(te);case 80:return Ee(te);case 261:return ke(te);case 255:return fe(te);case 269:return Ne(te);case 241:return Oe(te,!1);case 252:case 251:return Ce(te);case 256:return yi(te);case 246:case 247:return Vr(te,void 0);case 248:return Eo(te,void 0);case 249:return Ci(te,void 0);case 250:return Kr(te,void 0);case 244:return Lt(te);case 210:return Fo(te);case 299:return Ni(te);case 304:return Uc(te);case 167:return js(te);case 209:return Ts(te);case 213:return Hc(te);case 214:return lm(te);case 217:return w(te,lt);case 226:return ae(te,lt);case 361:return J(te,lt);case 15:case 16:case 17:case 18:return na(te);case 11:return $l(te);case 9:return vc(te);case 215:return cl(te);case 228:return gl(te);case 229:return gc(te);case 230:return Qo(te);case 108:return Ql(te,!1);case 110:return Le(te);case 236:return qc(te);case 174:return $o(te);case 177:case 178:return El(te);case 243:return Ge(te);case 253:return ve(te);case 222:return He(te);default:return An(te,ne,e)}}function oe(te){let lt=K(8064,64),Wt=[],jt=[];i();let W=t.copyPrologue(te.statements,Wt,!1,ne);return Jr(jt,Bn(te.statements,ne,Ki,W)),R&&jt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(Wt,s()),le(Wt,te),Z(lt,0,0),t.updateSourceFile(te,dt(t.createNodeArray(xo(Wt,jt)),te.statements))}function fe(te){if(N!==void 0){let lt=N.allowedNonLabeledJumps;N.allowedNonLabeledJumps|=2;let Wt=An(te,ne,e);return N.allowedNonLabeledJumps=lt,Wt}return An(te,ne,e)}function Ne(te){let lt=K(7104,0),Wt=An(te,ne,e);return Z(lt,0,0),Wt}function me(te){return Pr(t.createReturnStatement(ie()),te)}function ie(){return t.createUniqueName("_this",48)}function ve(te){return N?(N.nonLocalJumps|=8,V(te)&&(te=me(te)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),te.expression?C.checkDefined(rt(te.expression,ne,bt)):t.createVoidZero())]))):V(te)?me(te):An(te,ne,e)}function Le(te){return I|=65536,I&2&&!(I&16384)&&(I|=131072),N?I&2?(N.containsLexicalThis=!0,te):N.thisName||(N.thisName=t.createUniqueName("this")):te}function He(te){return An(te,he,e)}function Ee(te){return N&&p.isArgumentsLocalBinding(te)?N.argumentsName||(N.argumentsName=t.createUniqueName("arguments")):te.flags&256?Pr(dt(t.createIdentifier(Hi(te.escapedText)),te),te):te}function Ce(te){if(N){let lt=te.kind===252?2:4;if(!(te.label&&N.labels&&N.labels.get(Sr(te.label))||!te.label&&N.allowedNonLabeledJumps<)){let jt,W=te.label;W?te.kind===252?(jt=`break-${W.escapedText}`,ee(N,!0,Sr(W),jt)):(jt=`continue-${W.escapedText}`,ee(N,!1,Sr(W),jt)):te.kind===252?(N.nonLocalJumps|=2,jt="break"):(N.nonLocalJumps|=4,jt="continue");let Ae=t.createStringLiteral(jt);if(N.loopOutParameters.length){let st=N.loopOutParameters,Ht;for(let rr=0;rrVe(lt.name)&&!lt.initializer)}function gt(te){if(gS(te))return!0;if(!(te.transformFlags&134217728))return!1;switch(te.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let lt=te;return Za(lt.name)?!!Ho(lt.name,gt):!1}}return!!Ho(te,gt)}function nn(te,lt,Wt,jt){let W=!!Wt&&Xl(Wt.expression).kind!==106;if(!te)return yt(lt,W);let Ae=[],st=[];o();let Ht=t.copyStandardPrologue(te.body.statements,Ae,0);(jt||gt(te.body))&&(I|=8192),Jr(st,Bn(te.body.statements,ne,Ki,Ht));let rr=W||I&8192;wn(Ae,te),Nt(Ae,te,jt),pt(Ae,te),rr?We(Ae,te,No()):le(Ae,te),t.mergeLexicalEnvironment(Ae,s()),rr&&!ro(te.body)&&st.push(t.createReturnStatement(ie()));let si=t.createBlock(dt(t.createNodeArray([...Ae,...st]),te.body.statements),!0);return dt(si,te.body),bi(si,te.body,jt)}function rn(te){return ol(te)&&Sr(te)==="_this"}function Nn(te){return ol(te)&&Sr(te)==="_super"}function Xn(te){return Ml(te)&&te.declarationList.declarations.length===1&&_n(te.declarationList.declarations[0])}function _n(te){return Oi(te)&&rn(te.name)&&!!te.initializer}function Qt(te){return Mc(te,!0)&&rn(te.left)}function Yt(te){return la(te)&&zr(te.expression)&&Nn(te.expression.expression)&&Ve(te.expression.name)&&(Sr(te.expression.name)==="call"||Sr(te.expression.name)==="apply")&&te.arguments.length>=1&&te.arguments[0].kind===110}function vi(te){return _r(te)&&te.operatorToken.kind===57&&te.right.kind===110&&Yt(te.left)}function ho(te){return _r(te)&&te.operatorToken.kind===56&&_r(te.left)&&te.left.operatorToken.kind===38&&Nn(te.left.left)&&te.left.right.kind===106&&Yt(te.right)&&Sr(te.right.expression.name)==="apply"}function ki(te){return _r(te)&&te.operatorToken.kind===57&&te.right.kind===110&&ho(te.left)}function Ro(te){return Qt(te)&&vi(te.right)}function nr(te){return Qt(te)&&ki(te.right)}function qr(te){return Yt(te)||vi(te)||Ro(te)||ho(te)||ki(te)||nr(te)}function xr(te){for(let lt=0;lt0;jt--){let W=te.statements[jt];if(Rm(W)&&W.expression&&rn(W.expression)){let Ae=te.statements[jt-1],st;if(eu(Ae)&&Ro(Xl(Ae.expression)))st=Ae.expression;else if(Wt&&Xn(Ae)){let si=Ae.declarationList.declarations[0];qr(Xl(si.initializer))&&(st=t.createAssignment(ie(),si.initializer))}if(!st)break;let Ht=t.createReturnStatement(st);Pr(Ht,Ae),dt(Ht,Ae);let rr=t.createNodeArray([...te.statements.slice(0,jt-1),Ht,...te.statements.slice(jt+1)]);return dt(rr,te.statements),t.updateBlock(te,rr)}}return te}function tt(te){if(Xn(te)){if(te.declarationList.declarations[0].initializer.kind===110)return}else if(Qt(te))return t.createPartiallyEmittedExpression(te.right,te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{let lt=te;return Za(lt.name)?t.replacePropertyName(lt,An(lt.name,tt,void 0)):te}}return An(te,tt,void 0)}function zt(te,lt){if(lt.transformFlags&16384||I&65536||I&131072)return te;for(let Wt of lt.statements)if(Wt.transformFlags&134217728&&!Q5(Wt))return te;return t.updateBlock(te,Bn(te.statements,tt,Ki))}function Rn(te){if(Yt(te)&&te.arguments.length===2&&Ve(te.arguments[1])&&Sr(te.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Bl(),t.createNull()),te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{let lt=te;return Za(lt.name)?t.replacePropertyName(lt,An(lt.name,Rn,void 0)):te}}return An(te,Rn,void 0)}function ui(te){return t.updateBlock(te,Bn(te.statements,Rn,Ki))}function bi(te,lt,Wt){let jt=te;return te=xr(te),te=ln(te,lt),te!==jt&&(te=zt(te,lt)),Wt&&(te=ui(te)),te}function ro(te){if(te.kind===253)return!0;if(te.kind===245){let lt=te;if(lt.elseStatement)return ro(lt.thenStatement)&&ro(lt.elseStatement)}else if(te.kind===241){let lt=Zs(te.statements);if(lt&&ro(lt))return!0}return!1}function No(){return fr(t.createThis(),8)}function _a(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Bl(),t.createNull()),t.createFunctionApplyCall(Bl(),No(),t.createIdentifier("arguments"))),No())}function ja(te){if(!te.dotDotDotToken)return ta(te.name)?Pr(dt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(te),void 0,void 0,void 0),te),te):te.initializer?Pr(dt(t.createParameterDeclaration(void 0,void 0,te.name,void 0,void 0,void 0),te),te):te}function En(te){return te.initializer!==void 0||ta(te.name)}function wn(te,lt){if(!Et(lt.parameters,En))return!1;let Wt=!1;for(let jt of lt.parameters){let{name:W,initializer:Ae,dotDotDotToken:st}=jt;st||(ta(W)?Wt=Ue(te,jt,W,Ae)||Wt:Ae&&(mt(te,jt,W,Ae),Wt=!0))}return Wt}function Ue(te,lt,Wt,jt){return Wt.elements.length>0?(mS(te,fr(t.createVariableStatement(void 0,t.createVariableDeclarationList(iE(lt,ne,e,0,t.getGeneratedNameForNode(lt)))),2097152)),!0):jt?(mS(te,fr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(lt),C.checkDefined(rt(jt,ne,bt)))),2097152)),!0):!1}function mt(te,lt,Wt,jt){jt=C.checkDefined(rt(jt,ne,bt));let W=t.createIfStatement(t.createTypeCheck(t.cloneNode(Wt),"undefined"),fr(dt(t.createBlock([t.createExpressionStatement(fr(dt(t.createAssignment(fr(qa(dt(t.cloneNode(Wt),Wt),Wt.parent),96),fr(jt,96|Va(jt)|3072)),lt),3072))]),lt),3905));Ku(W),dt(W,lt),fr(W,2101056),mS(te,W)}function ft(te,lt){return!!(te&&te.dotDotDotToken&&!lt)}function Nt(te,lt,Wt){let jt=[],W=Zs(lt.parameters);if(!ft(W,Wt))return!1;let Ae=W.name.kind===80?qa(dt(t.cloneNode(W.name),W.name),W.name.parent):t.createTempVariable(void 0);fr(Ae,96);let st=W.name.kind===80?t.cloneNode(W.name):Ae,Ht=lt.parameters.length-1,rr=t.createLoopVariable();jt.push(fr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ae,void 0,void 0,t.createArrayLiteralExpression([]))])),W),2097152));let si=t.createForStatement(dt(t.createVariableDeclarationList([t.createVariableDeclaration(rr,void 0,void 0,t.createNumericLiteral(Ht))]),W),dt(t.createLessThan(rr,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),W),dt(t.createPostfixIncrement(rr),W),t.createBlock([Ku(dt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(st,Ht===0?rr:t.createSubtract(rr,t.createNumericLiteral(Ht))),t.createElementAccessExpression(t.createIdentifier("arguments"),rr))),W))]));return fr(si,2097152),Ku(si),jt.push(si),W.name.kind!==80&&jt.push(fr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList(iE(W,ne,e,0,st))),W),2097152)),sj(te,jt),!0}function le(te,lt){return I&131072&<.kind!==219?(We(te,lt,t.createThis()),!0):!1}function We(te,lt,Wt){Dd();let jt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie(),void 0,void 0,Wt)]));fr(jt,2100224),Ca(jt,lt),mS(te,jt)}function pt(te,lt){if(I&32768){let Wt;switch(lt.kind){case 219:return te;case 174:case 177:case 178:Wt=t.createVoidZero();break;case 176:Wt=t.createPropertyAccessExpression(fr(t.createThis(),8),"constructor");break;case 262:case 218:Wt=t.createConditionalExpression(t.createLogicalAnd(fr(t.createThis(),8),t.createBinaryExpression(fr(t.createThis(),8),104,t.getLocalName(lt))),void 0,t.createPropertyAccessExpression(fr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return C.failBadSyntaxKind(lt)}let jt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Wt)]));fr(jt,2100224),mS(te,jt)}return te}function j(te,lt){for(let Wt of lt.members)switch(Wt.kind){case 240:te.push(ot(Wt));break;case 174:te.push(xt(fg(lt,Wt),Wt,lt));break;case 177:case 178:let jt=RS(lt.members,Wt);Wt===jt.firstAccessor&&te.push(Ye(fg(lt,Wt),jt,lt));break;case 176:case 175:break;default:C.failBadSyntaxKind(Wt,b&&b.fileName);break}}function ot(te){return dt(t.createEmptyStatement(),te)}function xt(te,lt,Wt){let jt=L_(lt),W=jv(lt),Ae=mn(lt,lt,void 0,Wt),st=rt(lt.name,ne,ic);C.assert(st);let Ht;if(!Xi(st)&&pN(e.getCompilerOptions())){let si=Za(st)?st.expression:Ve(st)?t.createStringLiteral(Hi(st.escapedText)):st;Ht=t.createObjectDefinePropertyCall(te,si,t.createPropertyDescriptor({value:Ae,enumerable:!1,writable:!0,configurable:!0}))}else{let si=jS(t,te,st,lt.name);Ht=t.createAssignment(si,Ae)}fr(Ae,3072),Ca(Ae,W);let rr=dt(t.createExpressionStatement(Ht),lt);return Pr(rr,lt),oc(rr,jt),fr(rr,96),rr}function Ye(te,lt,Wt){let jt=t.createExpressionStatement(ht(te,lt,Wt,!1));return fr(jt,3072),Ca(jt,jv(lt.firstAccessor)),jt}function ht(te,{firstAccessor:lt,getAccessor:Wt,setAccessor:jt},W,Ae){let st=qa(dt(t.cloneNode(te),te),te.parent);fr(st,3136),Ca(st,lt.name);let Ht=rt(lt.name,ne,ic);if(C.assert(Ht),Xi(Ht))return C.failBadSyntaxKind(Ht,"Encountered unhandled private identifier while transforming ES2015.");let rr=wH(t,Ht);fr(rr,3104),Ca(rr,lt.name);let si=[];if(Wt){let so=mn(Wt,void 0,void 0,W);Ca(so,jv(Wt)),fr(so,1024);let Oa=t.createPropertyAssignment("get",so);oc(Oa,L_(Wt)),si.push(Oa)}if(jt){let so=mn(jt,void 0,void 0,W);Ca(so,jv(jt)),fr(so,1024);let Oa=t.createPropertyAssignment("set",so);oc(Oa,L_(jt)),si.push(Oa)}si.push(t.createPropertyAssignment("enumerable",Wt||jt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let $r=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[st,rr,t.createObjectLiteralExpression(si,!0)]);return Ae&&Ku($r),$r}function Vt(te){te.transformFlags&16384&&!(I&16384)&&(I|=131072);let lt=N;N=void 0;let Wt=K(15232,66),jt=t.createFunctionExpression(void 0,void 0,void 0,void 0,xl(te.parameters,ne,e),void 0,q(te));return dt(jt,te),Pr(jt,te),fr(jt,16),Z(Wt,0,0),N=lt,jt}function yn(te){let lt=Va(te)&524288?K(32662,69):K(32670,65),Wt=N;N=void 0;let jt=xl(te.parameters,ne,e),W=q(te),Ae=I&32768?t.getLocalName(te):te.name;return Z(lt,229376,0),N=Wt,t.updateFunctionExpression(te,void 0,te.asteriskToken,Ae,void 0,jt,void 0,W)}function fn(te){let lt=N;N=void 0;let Wt=K(32670,65),jt=xl(te.parameters,ne,e),W=q(te),Ae=I&32768?t.getLocalName(te):te.name;return Z(Wt,229376,0),N=lt,t.updateFunctionDeclaration(te,Bn(te.modifiers,ne,Ia),te.asteriskToken,Ae,void 0,jt,void 0,W)}function mn(te,lt,Wt,jt){let W=N;N=void 0;let Ae=jt&&pi(jt)&&!sa(te)?K(32670,73):K(32670,65),st=xl(te.parameters,ne,e),Ht=q(te);return I&32768&&!Wt&&(te.kind===262||te.kind===218)&&(Wt=t.getGeneratedNameForNode(te)),Z(Ae,229376,0),N=W,Pr(dt(t.createFunctionExpression(void 0,te.asteriskToken,Wt,void 0,st,void 0,Ht),lt),te)}function q(te){let lt=!1,Wt=!1,jt,W,Ae=[],st=[],Ht=te.body,rr;if(o(),Xo(Ht)&&(rr=t.copyStandardPrologue(Ht.statements,Ae,0,!1),rr=t.copyCustomPrologue(Ht.statements,st,rr,ne,H6),rr=t.copyCustomPrologue(Ht.statements,st,rr,ne,q6)),lt=wn(st,te)||lt,lt=Nt(st,te,!1)||lt,Xo(Ht))rr=t.copyCustomPrologue(Ht.statements,st,rr,ne),jt=Ht.statements,Jr(st,Bn(Ht.statements,ne,Ki,rr)),!lt&&Ht.multiLine&&(lt=!0);else{C.assert(te.kind===219),jt=P3(Ht,-1);let $r=te.equalsGreaterThanToken;!Xs($r)&&!Xs(Ht)&&(ck($r,Ht,b)?Wt=!0:lt=!0);let so=rt(Ht,ne,bt),Oa=t.createReturnStatement(so);dt(Oa,Ht),uae(Oa,Ht),fr(Oa,2880),st.push(Oa),W=Ht}if(t.mergeLexicalEnvironment(Ae,s()),pt(Ae,te),le(Ae,te),Et(Ae)&&(lt=!0),st.unshift(...Ae),Xo(Ht)&&Jm(st,Ht.statements))return Ht;let si=t.createBlock(dt(t.createNodeArray(st),jt),lt);return dt(si,te.body),!lt&&Wt&&fr(si,1),W&&cae(si,20,W),Pr(si,te.body),si}function Oe(te,lt){if(lt)return An(te,ne,e);let Wt=I&256?K(7104,512):K(6976,128),jt=An(te,ne,e);return Z(Wt,0,0),jt}function Lt(te){return An(te,he,e)}function w(te,lt){return An(te,lt?he:ne,e)}function ae(te,lt){return Bv(te)?JS(te,ne,e,0,!lt):te.operatorToken.kind===28?t.updateBinaryExpression(te,C.checkDefined(rt(te.left,he,bt)),te.operatorToken,C.checkDefined(rt(te.right,lt?he:ne,bt))):An(te,ne,e)}function J(te,lt){if(lt)return An(te,he,e);let Wt;for(let W=0;Wrr.name)),Ht=jt?t.createYieldExpression(t.createToken(42),fr(st,8388608)):st;if(Ae)W.push(t.createExpressionStatement(Ht)),Ms(lt.loopOutParameters,1,0,W);else{let rr=t.createUniqueName("state"),si=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(rr,void 0,void 0,Ht)]));if(W.push(si),Ms(lt.loopOutParameters,1,0,W),lt.nonLocalJumps&8){let $r;Wt?(Wt.nonLocalJumps|=8,$r=t.createReturnStatement(rr)):$r=t.createReturnStatement(t.createPropertyAccessExpression(rr,"value")),W.push(t.createIfStatement(t.createTypeCheck(rr,"object"),$r))}if(lt.nonLocalJumps&2&&W.push(t.createIfStatement(t.createStrictEquality(rr,t.createStringLiteral("break")),t.createBreakStatement())),lt.labeledNonLocalBreaks||lt.labeledNonLocalContinues){let $r=[];we(lt.labeledNonLocalBreaks,!0,rr,Wt,$r),we(lt.labeledNonLocalContinues,!1,rr,Wt,$r),W.push(t.createSwitchStatement(rr,t.createCaseBlock($r)))}}return W}function ee(te,lt,Wt,jt){lt?(te.labeledNonLocalBreaks||(te.labeledNonLocalBreaks=new Map),te.labeledNonLocalBreaks.set(Wt,jt)):(te.labeledNonLocalContinues||(te.labeledNonLocalContinues=new Map),te.labeledNonLocalContinues.set(Wt,jt))}function we(te,lt,Wt,jt,W){te&&te.forEach((Ae,st)=>{let Ht=[];if(!jt||jt.labels&&jt.labels.get(st)){let rr=t.createIdentifier(st);Ht.push(lt?t.createBreakStatement(rr):t.createContinueStatement(rr))}else ee(jt,lt,st,Ae),Ht.push(t.createReturnStatement(Wt));W.push(t.createCaseClause(t.createStringLiteral(Ae),Ht))})}function St(te,lt,Wt,jt,W){let Ae=lt.name;if(ta(Ae))for(let st of Ae.elements)Vc(st)||St(te,st,Wt,jt,W);else{Wt.push(t.createParameterDeclaration(void 0,void 0,Ae));let st=p.getNodeCheckFlags(lt);if(st&65536||W){let Ht=t.createUniqueName("out_"+Sr(Ae)),rr=0;st&65536&&(rr|=1),FS(te)&&(te.initializer&&p.isBindingCapturedByNode(te.initializer,lt)&&(rr|=2),(te.condition&&p.isBindingCapturedByNode(te.condition,lt)||te.incrementor&&p.isBindingCapturedByNode(te.incrementor,lt))&&(rr|=1)),jt.push({flags:rr,originalName:Ae,outParamName:Ht})}}}function pn(te,lt,Wt,jt){let W=lt.properties,Ae=W.length;for(let st=jt;stMl(Vd)&&!!Ha(Vd.declarationList.declarations).initializer,jt=N;N=void 0;let W=Bn(lt.statements,ye,Ki);N=jt;let Ae=tr(W,Wt),st=tr(W,Vd=>!Wt(Vd)),rr=aa(Ha(Ae),Ml).declarationList.declarations[0],si=Xl(rr.initializer),$r=ai(si,Mc);!$r&&_r(si)&&si.operatorToken.kind===28&&($r=ai(si.left,Mc));let so=aa($r?Xl($r.right):si,la),Oa=aa(Xl(so.expression),ws),Fa=Oa.body.statements,wl=0,fu=-1,xc=[];if($r){let Vd=ai(Fa[wl],eu);Vd&&(xc.push(Vd),wl++),xc.push(Fa[wl]),wl++,xc.push(t.createExpressionStatement(t.createAssignment($r.left,aa(rr.name,Ve))))}for(;!Rm(Nv(Fa,fu));)fu--;Jr(xc,Fa,wl,fu),fu<-1&&Jr(xc,Fa,fu+1);let Ip=ai(Nv(Fa,fu),Rm);for(let Vd of st)Rm(Vd)&&Ip?.expression&&!Ve(Ip.expression)?xc.push(Ip):xc.push(Vd);return Jr(xc,Ae,1),t.restoreOuterExpressions(te.expression,t.restoreOuterExpressions(rr.initializer,t.restoreOuterExpressions($r&&$r.right,t.updateCallExpression(so,t.restoreOuterExpressions(so.expression,t.updateFunctionExpression(Oa,void 0,void 0,void 0,void 0,Oa.parameters,void 0,t.updateBlock(Oa.body,xc))),void 0,so.arguments))))}function Oc(te,lt){if(te.transformFlags&32768||te.expression.kind===108||Od(Xl(te.expression))){let{target:Wt,thisArg:jt}=t.createCallBinding(te.expression,l);te.expression.kind===108&&fr(jt,8);let W;if(te.transformFlags&32768?W=t.createFunctionApplyCall(C.checkDefined(rt(Wt,$,bt)),te.expression.kind===108?jt:C.checkDefined(rt(jt,ne,bt)),md(te.arguments,!0,!1,!1)):W=dt(t.createFunctionCallCall(C.checkDefined(rt(Wt,$,bt)),te.expression.kind===108?jt:C.checkDefined(rt(jt,ne,bt)),Bn(te.arguments,ne,bt)),te),te.expression.kind===108){let Ae=t.createLogicalOr(W,No());W=lt?t.createAssignment(ie(),Ae):Ae}return Pr(W,te)}return gS(te)&&(I|=131072),An(te,ne,e)}function lm(te){if(Et(te.arguments,Zm)){let{target:lt,thisArg:Wt}=t.createCallBinding(t.createPropertyAccessExpression(te.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(C.checkDefined(rt(lt,ne,bt)),Wt,md(t.createNodeArray([t.createVoidZero(),...te.arguments]),!0,!1,!1)),void 0,[])}return An(te,ne,e)}function md(te,lt,Wt,jt){let W=te.length,Ae=ts(YB(te,Pe,(si,$r,so,Oa)=>$r(si,Wt,jt&&Oa===W)));if(Ae.length===1){let si=Ae[0];if(lt&&!u.downlevelIteration||MU(si.expression)||_N(si.expression,"___spreadArray"))return si.expression}let st=r(),Ht=Ae[0].kind!==0,rr=Ht?t.createArrayLiteralExpression():Ae[0].expression;for(let si=Ht?0:1;si0&&jt.push(t.createStringLiteral(Wt.literal.text)),lt=t.createCallExpression(t.createPropertyAccessExpression(lt,"concat"),void 0,jt)}return dt(lt,te)}function Bl(){return t.createUniqueName("_super",48)}function Ql(te,lt){let Wt=I&8&&!lt?t.createPropertyAccessExpression(Pr(Bl(),te),"prototype"):Bl();return Pr(Wt,te),oc(Wt,te),Ca(Wt,te),Wt}function qc(te){return te.keywordToken===105&&te.name.escapedText==="target"?(I|=32768,t.createUniqueName("_newTarget",48)):te}function cf(te,lt,Wt){if(O&1&&ea(lt)){let jt=K(32670,Va(lt)&16?81:65);m(te,lt,Wt),Z(jt,0,0);return}m(te,lt,Wt)}function Bd(){O&2||(O|=2,e.enableSubstitution(80))}function Dd(){O&1||(O|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function Lf(te,lt){return lt=g(te,lt),te===1?Xg(lt):Ve(lt)?j_(lt):lt}function j_(te){if(O&2&&!OH(te)){let lt=Lo(te,Ve);if(lt&&Dh(lt))return dt(t.getGeneratedNameForNode(lt),te)}return te}function Dh(te){switch(te.parent.kind){case 208:case 263:case 266:case 260:return te.parent.name===te&&p.isDeclarationWithCollidingName(te.parent)}return!1}function Xg(te){switch(te.kind){case 80:return zu(te);case 110:return Ap(te)}return te}function zu(te){if(O&2&&!OH(te)){let lt=p.getReferencedDeclarationWithCollidingName(te);if(lt&&!(pi(lt)&&Yg(lt,te)))return dt(t.getGeneratedNameForNode(Oo(lt)),te)}return te}function Yg(te,lt){let Wt=Lo(lt);if(!Wt||Wt===te||Wt.end<=te.pos||Wt.pos>=te.end)return!1;let jt=_h(te);for(;Wt;){if(Wt===jt||Wt===te)return!1;if($c(Wt)&&Wt.parent===te)return!0;Wt=Wt.parent}return!1}function Ap(te){return O&1&&I&16?dt(ie(),te):te}function fg(te,lt){return sa(lt)?t.getInternalName(te):t.createPropertyAccessExpression(t.getInternalName(te),"prototype")}function Gd(te,lt){if(!te||!lt||Et(te.parameters))return!1;let Wt=Xc(te.body.statements);if(!Wt||!Xs(Wt)||Wt.kind!==244)return!1;let jt=Wt.expression;if(!Xs(jt)||jt.kind!==213)return!1;let W=jt.expression;if(!Xs(W)||W.kind!==108)return!1;let Ae=ah(jt.arguments);if(!Ae||!Xs(Ae)||Ae.kind!==230)return!1;let st=Ae.expression;return Ve(st)&&st.escapedText==="arguments"}}var ZVe=A({"src/compiler/transformers/es2015.ts"(){"use strict";ia()}});function Jle(e){let{factory:t}=e,r=e.getCompilerOptions(),i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);let s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),Nm(e,l);function l(T){return T}function u(T,I,R){switch(I.kind){case 286:case 287:case 285:let M=I.tagName;o[Ou(M)]=!0;break}i(T,I,R)}function p(T,I){return I.id&&o&&o[I.id]?s(T,I):(I=s(T,I),zr(I)?g(I):_c(I)?m(I):I)}function g(T){if(Xi(T.name))return T;let I=b(T.name);return I?dt(t.createElementAccessExpression(T.expression,I),T):T}function m(T){let I=Ve(T.name)&&b(T.name);return I?t.updatePropertyAssignment(T,I,T.initializer):T}function b(T){let I=n0(T);if(I!==void 0&&I>=83&&I<=118)return dt(t.createStringLiteralFromNode(T),T)}}var eje=A({"src/compiler/transformers/es5.ts"(){"use strict";ia()}});function tje(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}}function Kle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=as(u),g=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=Lt;let b,T,I,R,M,N,O,H,K,Z,V=1,ue,G,ne,he,ye=0,$=0,Y,oe,fe,Ne,me,ie,ve,Le;return Nm(e,He);function He(Pe){if(Pe.isDeclarationFile||!(Pe.transformFlags&2048))return Pe;let wt=An(Pe,Ee,e);return Vg(wt,e.readEmitHelpers()),wt}function Ee(Pe){let wt=Pe.transformFlags;return R?Ce(Pe):I?Me(Pe):zs(Pe)&&Pe.asteriskToken?At(Pe):wt&2048?An(Pe,Ee,e):Pe}function Ce(Pe){switch(Pe.kind){case 246:return _a(Pe);case 247:return En(Pe);case 255:return ht(Pe);case 256:return yn(Pe);default:return Me(Pe)}}function Me(Pe){switch(Pe.kind){case 262:return Se(Pe);case 218:return je(Pe);case 177:case 178:return at(Pe);case 243:return yt(Pe);case 248:return Ue(Pe);case 249:return ft(Pe);case 252:return pt(Pe);case 251:return le(Pe);case 253:return ot(Pe);default:return Pe.transformFlags&1048576?Fe(Pe):Pe.transformFlags&4196352?An(Pe,Ee,e):Pe}}function Fe(Pe){switch(Pe.kind){case 226:return Qe(Pe);case 361:return Nn(Pe);case 227:return _n(Pe);case 229:return Qt(Pe);case 209:return Yt(Pe);case 210:return ho(Pe);case 212:return ki(Pe);case 213:return Ro(Pe);case 214:return nr(Pe);default:return An(Pe,Ee,e)}}function At(Pe){switch(Pe.kind){case 262:return Se(Pe);case 218:return je(Pe);default:return C.failBadSyntaxKind(Pe)}}function Se(Pe){if(Pe.asteriskToken)Pe=Pr(dt(t.createFunctionDeclaration(Pe.modifiers,void 0,Pe.name,void 0,xl(Pe.parameters,Ee,e),void 0,Bt(Pe.body)),Pe),Pe);else{let wt=I,qn=R;I=!1,R=!1,Pe=An(Pe,Ee,e),I=wt,R=qn}if(I){s(Pe);return}else return Pe}function je(Pe){if(Pe.asteriskToken)Pe=Pr(dt(t.createFunctionExpression(void 0,void 0,Pe.name,void 0,xl(Pe.parameters,Ee,e),void 0,Bt(Pe.body)),Pe),Pe);else{let wt=I,qn=R;I=!1,R=!1,Pe=An(Pe,Ee,e),I=wt,R=qn}return Pe}function at(Pe){let wt=I,qn=R;return I=!1,R=!1,Pe=An(Pe,Ee,e),I=wt,R=qn,Pe}function Bt(Pe){let wt=[],qn=I,So=R,Qo=M,na=N,$l=O,vc=H,cl=K,gl=Z,Bl=V,Ql=ue,qc=G,cf=ne,Bd=he;I=!0,R=!1,M=void 0,N=void 0,O=void 0,H=void 0,K=void 0,Z=void 0,V=1,ue=void 0,G=void 0,ne=void 0,he=t.createTempVariable(void 0),i();let Dd=t.copyPrologue(Pe.statements,wt,!1,Ee);qr(Pe.statements,Dd);let Lf=ee();return Qh(wt,o()),wt.push(t.createReturnStatement(Lf)),I=qn,R=So,M=Qo,N=na,O=$l,H=vc,K=cl,Z=gl,V=Bl,ue=Ql,G=qc,ne=cf,he=Bd,dt(t.createBlock(wt,Pe.multiLine),Pe)}function yt(Pe){if(Pe.transformFlags&1048576){ui(Pe.declarationList);return}else{if(Va(Pe)&2097152)return Pe;for(let qn of Pe.declarationList.declarations)l(qn.name);let wt=qC(Pe.declarationList);return wt.length===0?void 0:Ca(t.createExpressionStatement(t.inlineExpressions(Ft(wt,bi))),Pe)}}function Qe(Pe){let wt=Kj(Pe);switch(wt){case 0:return nn(Pe);case 1:return gt(Pe);default:return C.assertNever(wt)}}function gt(Pe){let{left:wt,right:qn}=Pe;if(q(qn)){let So;switch(wt.kind){case 211:So=t.updatePropertyAccessExpression(wt,J(C.checkDefined(rt(wt.expression,Ee,Zd))),wt.name);break;case 212:So=t.updateElementAccessExpression(wt,J(C.checkDefined(rt(wt.expression,Ee,Zd))),J(C.checkDefined(rt(wt.argumentExpression,Ee,bt))));break;default:So=C.checkDefined(rt(wt,Ee,bt));break}let Qo=Pe.operatorToken.kind;return GN(Qo)?dt(t.createAssignment(So,dt(t.createBinaryExpression(J(So),VN(Qo),C.checkDefined(rt(qn,Ee,bt))),Pe)),Pe):t.updateBinaryExpression(Pe,So,Pe.operatorToken,C.checkDefined(rt(qn,Ee,bt)))}return An(Pe,Ee,e)}function nn(Pe){return q(Pe.right)?aoe(Pe.operatorToken.kind)?Xn(Pe):Pe.operatorToken.kind===28?rn(Pe):t.updateBinaryExpression(Pe,J(C.checkDefined(rt(Pe.left,Ee,bt))),Pe.operatorToken,C.checkDefined(rt(Pe.right,Ee,bt))):An(Pe,Ee,e)}function rn(Pe){let wt=[];return qn(Pe.left),qn(Pe.right),t.inlineExpressions(wt);function qn(So){_r(So)&&So.operatorToken.kind===28?(qn(So.left),qn(So.right)):(q(So)&&wt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(wt))]),wt=[]),wt.push(C.checkDefined(rt(So,Ee,bt))))}}function Nn(Pe){let wt=[];for(let qn of Pe.elements)_r(qn)&&qn.operatorToken.kind===28?wt.push(rn(qn)):(q(qn)&&wt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(wt))]),wt=[]),wt.push(C.checkDefined(rt(qn,Ee,bt))));return t.inlineExpressions(wt)}function Xn(Pe){let wt=Ge(),qn=pe();return ll(qn,C.checkDefined(rt(Pe.left,Ee,bt)),Pe.left),Pe.operatorToken.kind===56?Vs(wt,qn,Pe.left):on(wt,qn,Pe.left),ll(qn,C.checkDefined(rt(Pe.right,Ee,bt)),Pe.right),ke(wt),qn}function _n(Pe){if(q(Pe.whenTrue)||q(Pe.whenFalse)){let wt=Ge(),qn=Ge(),So=pe();return Vs(wt,C.checkDefined(rt(Pe.condition,Ee,bt)),Pe.condition),ll(So,C.checkDefined(rt(Pe.whenTrue,Ee,bt)),Pe.whenTrue),Wo(qn),ke(wt),ll(So,C.checkDefined(rt(Pe.whenFalse,Ee,bt)),Pe.whenFalse),ke(qn),So}return An(Pe,Ee,e)}function Qt(Pe){let wt=Ge(),qn=rt(Pe.expression,Ee,bt);if(Pe.asteriskToken){let So=Va(Pe.expression)&8388608?qn:dt(r().createValuesHelper(qn),Pe);nu(So,Pe)}else pu(qn,Pe);return ke(wt),Mf(Pe)}function Yt(Pe){return vi(Pe.elements,void 0,void 0,Pe.multiLine)}function vi(Pe,wt,qn,So){let Qo=Oe(Pe),na;if(Qo>0){na=pe();let cl=Bn(Pe,Ee,bt,0,Qo);ll(na,t.createArrayLiteralExpression(wt?[wt,...cl]:cl)),wt=void 0}let $l=nd(Pe,vc,[],Qo);return na?t.createArrayConcatCall(na,[t.createArrayLiteralExpression($l,So)]):dt(t.createArrayLiteralExpression(wt?[wt,...$l]:$l,So),qn);function vc(cl,gl){if(q(gl)&&cl.length>0){let Bl=na!==void 0;na||(na=pe()),ll(na,Bl?t.createArrayConcatCall(na,[t.createArrayLiteralExpression(cl,So)]):t.createArrayLiteralExpression(wt?[wt,...cl]:cl,So)),wt=void 0,cl=[]}return cl.push(C.checkDefined(rt(gl,Ee,bt))),cl}}function ho(Pe){let wt=Pe.properties,qn=Pe.multiLine,So=Oe(wt),Qo=pe();ll(Qo,t.createObjectLiteralExpression(Bn(wt,Ee,wg,0,So),qn));let na=nd(wt,$l,[],So);return na.push(qn?Ku(qa(dt(t.cloneNode(Qo),Qo),Qo.parent)):Qo),t.inlineExpressions(na);function $l(vc,cl){q(cl)&&vc.length>0&&(Rl(t.createExpressionStatement(t.inlineExpressions(vc))),vc=[]);let gl=Kae(t,Pe,cl,Qo),Bl=rt(gl,Ee,bt);return Bl&&(qn&&Ku(Bl),vc.push(Bl)),vc}}function ki(Pe){return q(Pe.argumentExpression)?t.updateElementAccessExpression(Pe,J(C.checkDefined(rt(Pe.expression,Ee,Zd))),C.checkDefined(rt(Pe.argumentExpression,Ee,bt))):An(Pe,Ee,e)}function Ro(Pe){if(!Wp(Pe)&&Ke(Pe.arguments,q)){let{target:wt,thisArg:qn}=t.createCallBinding(Pe.expression,l,p,!0);return Pr(dt(t.createFunctionApplyCall(J(C.checkDefined(rt(wt,Ee,Zd))),qn,vi(Pe.arguments)),Pe),Pe)}return An(Pe,Ee,e)}function nr(Pe){if(Ke(Pe.arguments,q)){let{target:wt,thisArg:qn}=t.createCallBinding(t.createPropertyAccessExpression(Pe.expression,"bind"),l);return Pr(dt(t.createNewExpression(t.createFunctionApplyCall(J(C.checkDefined(rt(wt,Ee,bt))),qn,vi(Pe.arguments,t.createVoidZero())),void 0,[]),Pe),Pe)}return An(Pe,Ee,e)}function qr(Pe,wt=0){let qn=Pe.length;for(let So=wt;So0)break;Qo.push(bi($l))}Qo.length&&(Rl(t.createExpressionStatement(t.inlineExpressions(Qo))),So+=Qo.length,Qo=[])}}function bi(Pe){return Ca(t.createAssignment(Ca(t.cloneNode(Pe.name),Pe.name),C.checkDefined(rt(Pe.initializer,Ee,bt))),Pe)}function ro(Pe){if(q(Pe))if(q(Pe.thenStatement)||q(Pe.elseStatement)){let wt=Ge(),qn=Pe.elseStatement?Ge():void 0;Vs(Pe.elseStatement?qn:wt,C.checkDefined(rt(Pe.expression,Ee,bt)),Pe.expression),xr(Pe.thenStatement),Pe.elseStatement&&(Wo(wt),ke(qn),xr(Pe.elseStatement)),ke(wt)}else Rl(rt(Pe,Ee,Ki));else Rl(rt(Pe,Ee,Ki))}function No(Pe){if(q(Pe)){let wt=Ge(),qn=Ge();Mi(wt),ke(qn),xr(Pe.statement),ke(wt),on(qn,C.checkDefined(rt(Pe.expression,Ee,bt))),Ci()}else Rl(rt(Pe,Ee,Ki))}function _a(Pe){return R?(Eo(),Pe=An(Pe,Ee,e),Ci(),Pe):An(Pe,Ee,e)}function ja(Pe){if(q(Pe)){let wt=Ge(),qn=Mi(wt);ke(wt),Vs(qn,C.checkDefined(rt(Pe.expression,Ee,bt))),xr(Pe.statement),Wo(wt),Ci()}else Rl(rt(Pe,Ee,Ki))}function En(Pe){return R?(Eo(),Pe=An(Pe,Ee,e),Ci(),Pe):An(Pe,Ee,e)}function wn(Pe){if(q(Pe)){let wt=Ge(),qn=Ge(),So=Mi(qn);if(Pe.initializer){let Qo=Pe.initializer;jc(Qo)?ui(Qo):Rl(dt(t.createExpressionStatement(C.checkDefined(rt(Qo,Ee,bt))),Qo))}ke(wt),Pe.condition&&Vs(So,C.checkDefined(rt(Pe.condition,Ee,bt))),xr(Pe.statement),ke(qn),Pe.incrementor&&Rl(dt(t.createExpressionStatement(C.checkDefined(rt(Pe.incrementor,Ee,bt))),Pe.incrementor)),Wo(wt),Ci()}else Rl(rt(Pe,Ee,Ki))}function Ue(Pe){R&&Eo();let wt=Pe.initializer;if(wt&&jc(wt)){for(let So of wt.declarations)l(So.name);let qn=qC(wt);Pe=t.updateForStatement(Pe,qn.length>0?t.inlineExpressions(Ft(qn,bi)):void 0,rt(Pe.condition,Ee,bt),rt(Pe.incrementor,Ee,bt),Id(Pe.statement,Ee,e))}else Pe=An(Pe,Ee,e);return R&&Ci(),Pe}function mt(Pe){if(q(Pe)){let wt=pe(),qn=pe(),So=pe(),Qo=t.createLoopVariable(),na=Pe.initializer;l(Qo),ll(wt,C.checkDefined(rt(Pe.expression,Ee,bt))),ll(qn,t.createArrayLiteralExpression()),Rl(t.createForInStatement(So,wt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(qn,"push"),void 0,[So])))),ll(Qo,t.createNumericLiteral(0));let $l=Ge(),vc=Ge(),cl=Mi(vc);ke($l),Vs(cl,t.createLessThan(Qo,t.createPropertyAccessExpression(qn,"length"))),ll(So,t.createElementAccessExpression(qn,Qo)),Vs(vc,t.createBinaryExpression(So,103,wt));let gl;if(jc(na)){for(let Bl of na.declarations)l(Bl.name);gl=t.cloneNode(na.declarations[0].name)}else gl=C.checkDefined(rt(na,Ee,bt)),C.assert(Zd(gl));ll(gl,So),xr(Pe.statement),ke(vc),Rl(t.createExpressionStatement(t.createPostfixIncrement(Qo))),Wo($l),Ci()}else Rl(rt(Pe,Ee,Ki))}function ft(Pe){R&&Eo();let wt=Pe.initializer;if(jc(wt)){for(let qn of wt.declarations)l(qn.name);Pe=t.updateForInStatement(Pe,wt.declarations[0].name,C.checkDefined(rt(Pe.expression,Ee,bt)),C.checkDefined(rt(Pe.statement,Ee,Ki,t.liftToBlock)))}else Pe=An(Pe,Ee,e);return R&&Ci(),Pe}function Nt(Pe){let wt=pa(Pe.label?Sr(Pe.label):void 0);wt>0?Wo(wt,Pe):Rl(Pe)}function le(Pe){if(R){let wt=pa(Pe.label&&Sr(Pe.label));if(wt>0)return Pa(wt,Pe)}return An(Pe,Ee,e)}function We(Pe){let wt=yo(Pe.label?Sr(Pe.label):void 0);wt>0?Wo(wt,Pe):Rl(Pe)}function pt(Pe){if(R){let wt=yo(Pe.label&&Sr(Pe.label));if(wt>0)return Pa(wt,Pe)}return An(Pe,Ee,e)}function j(Pe){Tp(rt(Pe.expression,Ee,bt),Pe)}function ot(Pe){return fl(rt(Pe.expression,Ee,bt),Pe)}function xt(Pe){q(Pe)?(On(J(C.checkDefined(rt(Pe.expression,Ee,bt)))),xr(Pe.statement),Gn()):Rl(rt(Pe,Ee,Ki))}function Ye(Pe){if(q(Pe.caseBlock)){let wt=Pe.caseBlock,qn=wt.clauses.length,So=Po(),Qo=J(C.checkDefined(rt(Pe.expression,Ee,bt))),na=[],$l=-1;for(let gl=0;gl0)break;cl.push(t.createCaseClause(C.checkDefined(rt(Ql.expression,Ee,bt)),[Pa(na[Bl],Ql.expression)]))}else gl++}cl.length&&(Rl(t.createSwitchStatement(Qo,t.createCaseBlock(cl))),vc+=cl.length,cl=[]),gl>0&&(vc+=gl,gl=0)}$l>=0?Wo(na[$l]):Wo(So);for(let gl=0;gl=0;qn--){let So=H[qn];if(Gs(So)){if(So.labelText===Pe)return!0}else break}return!1}function yo(Pe){if(H)if(Pe)for(let wt=H.length-1;wt>=0;wt--){let qn=H[wt];if(Gs(qn)&&qn.labelText===Pe)return qn.breakLabel;if(ds(qn)&&uu(Pe,wt-1))return qn.breakLabel}else for(let wt=H.length-1;wt>=0;wt--){let qn=H[wt];if(ds(qn))return qn.breakLabel}return 0}function pa(Pe){if(H)if(Pe)for(let wt=H.length-1;wt>=0;wt--){let qn=H[wt];if(hl(qn)&&uu(Pe,wt-1))return qn.continueLabel}else for(let wt=H.length-1;wt>=0;wt--){let qn=H[wt];if(hl(qn))return qn.continueLabel}return 0}function du(Pe){if(Pe!==void 0&&Pe>0){Z===void 0&&(Z=[]);let wt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return Z[Pe]===void 0?Z[Pe]=[wt]:Z[Pe].push(wt),wt}return t.createOmittedExpression()}function Is(Pe){let wt=t.createNumericLiteral(Pe);return h7(wt,3,tje(Pe)),wt}function Pa(Pe,wt){return C.assertLessThan(0,Pe,"Invalid label"),dt(t.createReturnStatement(t.createArrayLiteralExpression([Is(3),du(Pe)])),wt)}function fl(Pe,wt){return dt(t.createReturnStatement(t.createArrayLiteralExpression(Pe?[Is(2),Pe]:[Is(2)])),wt)}function Mf(Pe){return dt(t.createCallExpression(t.createPropertyAccessExpression(he,"sent"),void 0,[]),Pe)}function sc(){de(0)}function Rl(Pe){Pe?de(1,[Pe]):sc()}function ll(Pe,wt,qn){de(2,[Pe,wt],qn)}function Wo(Pe,wt){de(3,[Pe],wt)}function on(Pe,wt,qn){de(4,[Pe,wt],qn)}function Vs(Pe,wt,qn){de(5,[Pe,wt],qn)}function nu(Pe,wt){de(7,[Pe],wt)}function pu(Pe,wt){de(6,[Pe],wt)}function Tp(Pe,wt){de(8,[Pe],wt)}function Ms(Pe,wt){de(9,[Pe],wt)}function Ic(){de(10)}function de(Pe,wt,qn){ue===void 0&&(ue=[],G=[],ne=[]),K===void 0&&ke(Ge());let So=ue.length;ue[So]=Pe,G[So]=wt,ne[So]=qn}function ee(){ye=0,$=0,Y=void 0,oe=!1,fe=!1,Ne=void 0,me=void 0,ie=void 0,ve=void 0,Le=void 0;let Pe=we();return r().createGeneratorHelper(fr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,he)],void 0,t.createBlock(Pe,Pe.length>0)),1048576))}function we(){if(ue){for(let Pe=0;Pe=0;wt--){let qn=Le[wt];me=[t.createWithStatement(qn.expression,t.createBlock(me))]}if(ve){let{startLabel:wt,catchLabel:qn,finallyLabel:So,endLabel:Qo}=ve;me.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(he,"trys"),"push"),void 0,[t.createArrayLiteralExpression([du(wt),du(qn),du(So),du(Qo)])]))),ve=void 0}Pe&&me.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(he,"label"),t.createNumericLiteral($+1))))}Ne.push(t.createCaseClause(t.createNumericLiteral($),me||[])),me=void 0}function jr(Pe){if(K)for(let wt=0;wtr.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Sr(ke))),Ge),r.createVoidZero())));In(Oe,rt(N.externalHelpersImportDeclaration,Y,Ki)),Jr(Oe,Bn(q.statements,Y,Ki,w)),$(Oe,!1),Qh(Oe,s());let ae=r.updateSourceFile(q,dt(r.createNodeArray(Oe),q.statements));return Vg(ae,e.readEmitHelpers()),ae}function ue(q){let Oe=r.createIdentifier("define"),Lt=$k(r,q,g,u),w=$f(q)&&q,{aliasedModuleNames:ae,unaliasedModuleNames:J,importAliasNames:pe}=ne(q,!0),Ge=r.updateSourceFile(q,dt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Oe,void 0,[...Lt?[Lt]:[],r.createArrayLiteralExpression(w?et:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...ae,...J]),w?w.statements.length?w.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...pe],void 0,ye(q))]))]),q.statements));return Vg(Ge,e.readEmitHelpers()),Ge}function G(q){let{aliasedModuleNames:Oe,unaliasedModuleNames:Lt,importAliasNames:w}=ne(q,!1),ae=$k(r,q,g,u),J=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,dt(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),fr(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...ae?[ae]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...Oe,...Lt]),r.createIdentifier("factory")]))])))],!0),void 0)),pe=r.updateSourceFile(q,dt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(J,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...w],void 0,ye(q))]))]),q.statements));return Vg(pe,e.readEmitHelpers()),pe}function ne(q,Oe){let Lt=[],w=[],ae=[];for(let J of q.amdDependencies)J.name?(Lt.push(r.createStringLiteral(J.path)),ae.push(r.createParameterDeclaration(void 0,void 0,J.name))):w.push(r.createStringLiteral(J.path));for(let J of N.externalImports){let pe=mI(r,J,M,g,p,u),Ge=JR(r,J,M);pe&&(Oe&&Ge?(fr(Ge,8),Lt.push(pe),ae.push(r.createParameterDeclaration(void 0,void 0,Ge))):w.push(pe))}return{aliasedModuleNames:Lt,unaliasedModuleNames:w,importAliasNames:ae}}function he(q){if(tu(q)||Kl(q)||!mI(r,q,M,g,p,u))return;let Oe=JR(r,q,M),Lt=Ro(q,Oe);if(Lt!==Oe)return r.createExpressionStatement(r.createAssignment(Oe,Lt))}function ye(q){o();let Oe=[],Lt=r.copyPrologue(q.statements,Oe,!u.noImplicitUseStrict,Y);Z()&&In(Oe,Nt()),De(N.exportedNames)&&In(Oe,r.createExpressionStatement(nd(N.exportedNames,(ae,J)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Sr(J))),ae),r.createVoidZero()))),In(Oe,rt(N.externalHelpersImportDeclaration,Y,Ki)),b===2&&Jr(Oe,Vi(N.externalImports,he)),Jr(Oe,Bn(q.statements,Y,Ki,Lt)),$(Oe,!0),Qh(Oe,s());let w=r.createBlock(Oe,!0);return H&&XA(w,EIe),w}function $(q,Oe){if(N.exportEquals){let Lt=rt(N.exportEquals.expression,Ne,bt);if(Lt)if(Oe){let w=r.createReturnStatement(Lt);dt(w,N.exportEquals),fr(w,3840),q.push(w)}else{let w=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Lt));dt(w,N.exportEquals),fr(w,3072),q.push(w)}}}function Y(q){switch(q.kind){case 272:return nr(q);case 271:return xr(q);case 278:return ln(q);case 277:return tt(q);default:return oe(q)}}function oe(q){switch(q.kind){case 243:return ui(q);case 262:return zt(q);case 263:return Rn(q);case 248:return Le(q,!0);case 249:return He(q);case 250:return Ee(q);case 246:return Ce(q);case 247:return Me(q);case 256:return Fe(q);case 254:return At(q);case 245:return Se(q);case 255:return je(q);case 269:return at(q);case 296:return Bt(q);case 297:return yt(q);case 258:return Qe(q);case 299:return gt(q);case 241:return nn(q);default:return Ne(q)}}function fe(q,Oe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Le(q,!1);case 244:return rn(q);case 217:return Nn(q,Oe);case 360:return Xn(q,Oe);case 213:if(Wp(q)&&M.impliedNodeFormat===void 0)return Qt(q);break;case 226:if(Bv(q))return ve(q,Oe);break;case 224:case 225:return _n(q,Oe)}return An(q,Ne,e)}function Ne(q){return fe(q,!1)}function me(q){return fe(q,!0)}function ie(q){if(wa(q))for(let Oe of q.properties)switch(Oe.kind){case 303:if(ie(Oe.initializer))return!0;break;case 304:if(ie(Oe.name))return!0;break;case 305:if(ie(Oe.expression))return!0;break;case 174:case 177:case 178:return!1;default:C.assertNever(Oe,"Unhandled object member kind")}else if(pd(q)){for(let Oe of q.elements)if(Zm(Oe)){if(ie(Oe.expression))return!0}else if(ie(Oe))return!0}else if(Ve(q))return De(mn(q))>(c5(q)?1:0);return!1}function ve(q,Oe){return ie(q.left)?JS(q,Ne,e,0,!Oe,bi):An(q,Ne,e)}function Le(q,Oe){if(Oe&&q.initializer&&jc(q.initializer)&&!(q.initializer.flags&7)){let Lt=En(void 0,q.initializer,!1);if(Lt){let w=[],ae=rt(q.initializer,me,jc),J=r.createVariableStatement(void 0,ae);w.push(J),Jr(w,Lt);let pe=rt(q.condition,Ne,bt),Ge=rt(q.incrementor,me,bt),ke=Id(q.statement,Oe?oe:Ne,e);return w.push(r.updateForStatement(q,void 0,pe,Ge,ke)),w}}return r.updateForStatement(q,rt(q.initializer,me,Ef),rt(q.condition,Ne,bt),rt(q.incrementor,me,bt),Id(q.statement,Oe?oe:Ne,e))}function He(q){if(jc(q.initializer)&&!(q.initializer.flags&7)){let Oe=En(void 0,q.initializer,!0);if(Et(Oe)){let Lt=rt(q.initializer,me,Ef),w=rt(q.expression,Ne,bt),ae=Id(q.statement,oe,e),J=Xo(ae)?r.updateBlock(ae,[...Oe,...ae.statements]):r.createBlock([...Oe,ae],!0);return r.updateForInStatement(q,Lt,w,J)}}return r.updateForInStatement(q,rt(q.initializer,me,Ef),rt(q.expression,Ne,bt),Id(q.statement,oe,e))}function Ee(q){if(jc(q.initializer)&&!(q.initializer.flags&7)){let Oe=En(void 0,q.initializer,!0),Lt=rt(q.initializer,me,Ef),w=rt(q.expression,Ne,bt),ae=Id(q.statement,oe,e);return Et(Oe)&&(ae=Xo(ae)?r.updateBlock(ae,[...Oe,...ae.statements]):r.createBlock([...Oe,ae],!0)),r.updateForOfStatement(q,q.awaitModifier,Lt,w,ae)}return r.updateForOfStatement(q,q.awaitModifier,rt(q.initializer,me,Ef),rt(q.expression,Ne,bt),Id(q.statement,oe,e))}function Ce(q){return r.updateDoStatement(q,Id(q.statement,oe,e),rt(q.expression,Ne,bt))}function Me(q){return r.updateWhileStatement(q,rt(q.expression,Ne,bt),Id(q.statement,oe,e))}function Fe(q){return r.updateLabeledStatement(q,q.label,C.checkDefined(rt(q.statement,oe,Ki,r.liftToBlock)))}function At(q){return r.updateWithStatement(q,rt(q.expression,Ne,bt),C.checkDefined(rt(q.statement,oe,Ki,r.liftToBlock)))}function Se(q){return r.updateIfStatement(q,rt(q.expression,Ne,bt),C.checkDefined(rt(q.thenStatement,oe,Ki,r.liftToBlock)),rt(q.elseStatement,oe,Ki,r.liftToBlock))}function je(q){return r.updateSwitchStatement(q,rt(q.expression,Ne,bt),C.checkDefined(rt(q.caseBlock,oe,TN)))}function at(q){return r.updateCaseBlock(q,Bn(q.clauses,oe,D6))}function Bt(q){return r.updateCaseClause(q,rt(q.expression,Ne,bt),Bn(q.statements,oe,Ki))}function yt(q){return An(q,oe,e)}function Qe(q){return An(q,oe,e)}function gt(q){return r.updateCatchClause(q,q.variableDeclaration,C.checkDefined(rt(q.block,oe,Xo)))}function nn(q){return q=An(q,oe,e),q}function rn(q){return r.updateExpressionStatement(q,rt(q.expression,me,bt))}function Nn(q,Oe){return r.updateParenthesizedExpression(q,rt(q.expression,Oe?me:Ne,bt))}function Xn(q,Oe){return r.updatePartiallyEmittedExpression(q,rt(q.expression,Oe?me:Ne,bt))}function _n(q,Oe){if((q.operator===46||q.operator===47)&&Ve(q.operand)&&!ol(q.operand)&&!Ug(q.operand)&&!_U(q.operand)){let Lt=mn(q.operand);if(Lt){let w,ae=rt(q.operand,Ne,bt);Qy(q)?ae=r.updatePrefixUnaryExpression(q,ae):(ae=r.updatePostfixUnaryExpression(q,ae),Oe||(w=r.createTempVariable(l),ae=r.createAssignment(w,ae),dt(ae,q)),ae=r.createComma(ae,r.cloneNode(q.operand)),dt(ae,q));for(let J of Lt)O[ss(ae)]=!0,ae=We(J,ae),dt(ae,q);return w&&(O[ss(ae)]=!0,ae=r.createComma(ae,w),dt(ae,q)),ae}}return An(q,Ne,e)}function Qt(q){if(b===0&&m>=7)return An(q,Ne,e);let Oe=mI(r,q,M,g,p,u),Lt=rt(Xc(q.arguments),Ne,bt),w=Oe&&(!Lt||!Na(Lt)||Lt.text!==Oe.text)?Oe:Lt,ae=!!(q.transformFlags&16384);switch(u.module){case 2:return vi(w,ae);case 3:return Yt(w??r.createVoidZero(),ae);case 1:default:return ho(w)}}function Yt(q,Oe){if(H=!0,rE(q)){let Lt=ol(q)?q:Na(q)?r.createStringLiteralFromNode(q):fr(dt(r.cloneNode(q),q),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,ho(q),void 0,vi(Lt,Oe))}else{let Lt=r.createTempVariable(l);return r.createComma(r.createAssignment(Lt,q),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,ho(Lt,!0),void 0,vi(Lt,Oe)))}}function vi(q,Oe){let Lt=r.createUniqueName("resolve"),w=r.createUniqueName("reject"),ae=[r.createParameterDeclaration(void 0,void 0,Lt),r.createParameterDeclaration(void 0,void 0,w)],J=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([q||r.createOmittedExpression()]),Lt,w]))]),pe;m>=2?pe=r.createArrowFunction(void 0,void 0,ae,void 0,void 0,J):(pe=r.createFunctionExpression(void 0,void 0,void 0,void 0,ae,void 0,J),Oe&&fr(pe,16));let Ge=r.createNewExpression(r.createIdentifier("Promise"),void 0,[pe]);return vh(u)?r.createCallExpression(r.createPropertyAccessExpression(Ge,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Ge}function ho(q,Oe){let Lt=q&&!F_(q)&&!Oe,w=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Lt?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(q,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[q])]:[]),ae=r.createCallExpression(r.createIdentifier("require"),void 0,Lt?[r.createIdentifier("s")]:q?[q]:[]);vh(u)&&(ae=i().createImportStarHelper(ae));let J=Lt?[r.createParameterDeclaration(void 0,void 0,"s")]:[],pe;return m>=2?pe=r.createArrowFunction(void 0,void 0,J,void 0,void 0,ae):pe=r.createFunctionExpression(void 0,void 0,void 0,void 0,J,void 0,r.createBlock([r.createReturnStatement(ae)])),r.createCallExpression(r.createPropertyAccessExpression(w,"then"),void 0,[pe])}function ki(q,Oe){return!vh(u)||Tm(q)&2?Oe:hle(q)?i().createImportStarHelper(Oe):Oe}function Ro(q,Oe){return!vh(u)||Tm(q)&2?Oe:$5(q)?i().createImportStarHelper(Oe):qq(q)?i().createImportDefaultHelper(Oe):Oe}function nr(q){let Oe,Lt=dR(q);if(b!==2)if(q.importClause){let w=[];Lt&&!MA(q)?w.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,Ro(q,qr(q)))):(w.push(r.createVariableDeclaration(r.getGeneratedNameForNode(q),void 0,void 0,Ro(q,qr(q)))),Lt&&MA(q)&&w.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)))),Oe=In(Oe,Pr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList(w,m>=2?2:0)),q),q))}else return Pr(dt(r.createExpressionStatement(qr(q)),q),q);else Lt&&MA(q)&&(Oe=In(Oe,r.createVariableStatement(void 0,r.createVariableDeclarationList([Pr(dt(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)),q),q)],m>=2?2:0))));return Oe=No(Oe,q),sh(Oe)}function qr(q){let Oe=mI(r,q,M,g,p,u),Lt=[];return Oe&&Lt.push(Oe),r.createCallExpression(r.createIdentifier("require"),void 0,Lt)}function xr(q){C.assert(l0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return b!==2?ei(q,32)?Oe=In(Oe,Pr(dt(r.createExpressionStatement(We(q.name,qr(q))),q),q)):Oe=In(Oe,Pr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(q.name),void 0,void 0,qr(q))],m>=2?2:0)),q),q)):ei(q,32)&&(Oe=In(Oe,Pr(dt(r.createExpressionStatement(We(r.getExportName(q),r.getLocalName(q))),q),q))),Oe=_a(Oe,q),sh(Oe)}function ln(q){if(!q.moduleSpecifier)return;let Oe=r.getGeneratedNameForNode(q);if(q.exportClause&&Df(q.exportClause)){let Lt=[];b!==2&&Lt.push(Pr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Oe,void 0,void 0,qr(q))])),q),q));for(let w of q.exportClause.elements)if(m===0)Lt.push(Pr(dt(r.createExpressionStatement(i().createCreateBindingHelper(Oe,r.createStringLiteralFromNode(w.propertyName||w.name),w.propertyName?r.createStringLiteralFromNode(w.name):void 0)),w),w));else{let ae=!!vh(u)&&!(Tm(q)&2)&&Sr(w.propertyName||w.name)==="default",J=r.createPropertyAccessExpression(ae?i().createImportDefaultHelper(Oe):Oe,w.propertyName||w.name);Lt.push(Pr(dt(r.createExpressionStatement(We(r.getExportName(w),J,void 0,!0)),w),w))}return sh(Lt)}else if(q.exportClause){let Lt=[];return Lt.push(Pr(dt(r.createExpressionStatement(We(r.cloneNode(q.exportClause.name),ki(q,b!==2?qr(q):z6(q)?Oe:r.createIdentifier(Sr(q.exportClause.name))))),q),q)),sh(Lt)}else return Pr(dt(r.createExpressionStatement(i().createExportStarHelper(b!==2?qr(q):Oe)),q),q)}function tt(q){if(!q.isExportEquals)return le(r.createIdentifier("default"),rt(q.expression,Ne,bt),q,!0)}function zt(q){let Oe;return ei(q,32)?Oe=In(Oe,Pr(dt(r.createFunctionDeclaration(Bn(q.modifiers,pt,Ia),q.asteriskToken,r.getDeclarationName(q,!0,!0),void 0,Bn(q.parameters,Ne,Co),void 0,An(q.body,Ne,e)),q),q)):Oe=In(Oe,An(q,Ne,e)),Oe=Ue(Oe,q),sh(Oe)}function Rn(q){let Oe;return ei(q,32)?Oe=In(Oe,Pr(dt(r.createClassDeclaration(Bn(q.modifiers,pt,al),r.getDeclarationName(q,!0,!0),void 0,Bn(q.heritageClauses,Ne,ef),Bn(q.members,Ne,$c)),q),q)):Oe=In(Oe,An(q,Ne,e)),Oe=Ue(Oe,q),sh(Oe)}function ui(q){let Oe,Lt,w;if(ei(q,32)){let ae,J=!1;for(let pe of q.declarationList.declarations)if(Ve(pe.name)&&Ug(pe.name))if(ae||(ae=Bn(q.modifiers,pt,Ia)),pe.initializer){let Ge=r.updateVariableDeclaration(pe,pe.name,void 0,void 0,We(pe.name,rt(pe.initializer,Ne,bt)));Lt=In(Lt,Ge)}else Lt=In(Lt,pe);else if(pe.initializer)if(!ta(pe.name)&&(Bs(pe.initializer)||ws(pe.initializer)||Zc(pe.initializer))){let Ge=r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),pe.name),pe.name),r.createIdentifier(Zf(pe.name))),ke=r.createVariableDeclaration(pe.name,pe.exclamationToken,pe.type,rt(pe.initializer,Ne,bt));Lt=In(Lt,ke),w=In(w,Ge),J=!0}else w=In(w,ro(pe));if(Lt&&(Oe=In(Oe,r.updateVariableStatement(q,ae,r.updateVariableDeclarationList(q.declarationList,Lt)))),w){let pe=Pr(dt(r.createExpressionStatement(r.inlineExpressions(w)),q),q);J&&Nk(pe),Oe=In(Oe,pe)}}else Oe=In(Oe,An(q,Ne,e));return Oe=ja(Oe,q),sh(Oe)}function bi(q,Oe,Lt){let w=mn(q);if(w){let ae=c5(q)?Oe:r.createAssignment(q,Oe);for(let J of w)fr(ae,8),ae=We(J,ae,Lt);return ae}return r.createAssignment(q,Oe)}function ro(q){return ta(q.name)?JS(rt(q,Ne,uk),Ne,e,0,!1,bi):r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),q.name),q.name),q.initializer?rt(q.initializer,Ne,bt):r.createVoidZero())}function No(q,Oe){if(N.exportEquals)return q;let Lt=Oe.importClause;if(!Lt)return q;let w=new bI;Lt.name&&(q=mt(q,w,Lt));let ae=Lt.namedBindings;if(ae)switch(ae.kind){case 274:q=mt(q,w,ae);break;case 275:for(let J of ae.elements)q=mt(q,w,J,!0);break}return q}function _a(q,Oe){return N.exportEquals?q:mt(q,new bI,Oe)}function ja(q,Oe){return En(q,Oe.declarationList,!1)}function En(q,Oe,Lt){if(N.exportEquals)return q;for(let w of Oe.declarations)q=wn(q,w,Lt);return q}function wn(q,Oe,Lt){if(N.exportEquals)return q;if(ta(Oe.name))for(let w of Oe.name.elements)Vc(w)||(q=wn(q,w,Lt));else!ol(Oe.name)&&(!Oi(Oe)||Oe.initializer||Lt)&&(q=mt(q,new bI,Oe));return q}function Ue(q,Oe){if(N.exportEquals)return q;let Lt=new bI;if(ei(Oe,32)){let w=ei(Oe,2048)?r.createIdentifier("default"):r.getDeclarationName(Oe);q=ft(q,Lt,w,r.getLocalName(Oe),Oe)}return Oe.name&&(q=mt(q,Lt,Oe)),q}function mt(q,Oe,Lt,w){let ae=r.getDeclarationName(Lt),J=N.exportSpecifiers.get(ae);if(J)for(let pe of J)q=ft(q,Oe,pe.name,ae,pe.name,void 0,w);return q}function ft(q,Oe,Lt,w,ae,J,pe){return Oe.has(Lt)||(Oe.set(Lt,!0),q=In(q,le(Lt,w,ae,J,pe))),q}function Nt(){let q;return m===0?q=r.createExpressionStatement(We(r.createIdentifier("__esModule"),r.createTrue())):q=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),fr(q,2097152),q}function le(q,Oe,Lt,w,ae){let J=dt(r.createExpressionStatement(We(q,Oe,void 0,ae)),Lt);return Ku(J),w||fr(J,3072),J}function We(q,Oe,Lt,w){return dt(w&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(q),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(Oe)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),Oe),Lt)}function pt(q){switch(q.kind){case 95:case 90:return}return q}function j(q,Oe,Lt){Oe.kind===312?(M=Oe,N=R[Ou(M)],I(q,Oe,Lt),M=void 0,N=void 0):I(q,Oe,Lt)}function ot(q,Oe){return Oe=T(q,Oe),Oe.id&&O[Oe.id]?Oe:q===1?Ye(Oe):np(Oe)?xt(Oe):Oe}function xt(q){let Oe=q.name,Lt=yn(Oe);if(Lt!==Oe){if(q.objectAssignmentInitializer){let w=r.createAssignment(Lt,q.objectAssignmentInitializer);return dt(r.createPropertyAssignment(Oe,w),q)}return dt(r.createPropertyAssignment(Oe,Lt),q)}return q}function Ye(q){switch(q.kind){case 80:return yn(q);case 213:return ht(q);case 215:return Vt(q);case 226:return fn(q)}return q}function ht(q){if(Ve(q.expression)){let Oe=yn(q.expression);if(O[ss(Oe)]=!0,!Ve(Oe)&&!(Va(q.expression)&8192))return JA(r.updateCallExpression(q,Oe,void 0,q.arguments),16)}return q}function Vt(q){if(Ve(q.tag)){let Oe=yn(q.tag);if(O[ss(Oe)]=!0,!Ve(Oe)&&!(Va(q.tag)&8192))return JA(r.updateTaggedTemplateExpression(q,Oe,void 0,q.template),16)}return q}function yn(q){var Oe,Lt;if(Va(q)&8192){let w=Yk(M);return w?r.createPropertyAccessExpression(w,q):q}else if(!(ol(q)&&!(q.emitNode.autoGenerate.flags&64))&&!Ug(q)){let w=p.getReferencedExportContainer(q,c5(q));if(w&&w.kind===312)return dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),q);let ae=p.getReferencedImportDeclaration(q);if(ae){if(Eh(ae))return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(ae.parent),r.createIdentifier("default")),q);if(tp(ae)){let J=ae.propertyName||ae.name;return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Lt=(Oe=ae.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||ae),r.cloneNode(J)),q)}}}return q}function fn(q){if(zv(q.operatorToken.kind)&&Ve(q.left)&&(!ol(q.left)||lL(q.left))&&!Ug(q.left)){let Oe=mn(q.left);if(Oe){let Lt=q;for(let w of Oe)O[ss(Lt)]=!0,Lt=We(w,Lt,q);return Lt}}return q}function mn(q){if(ol(q)){if(lL(q)){let Oe=N?.exportSpecifiers.get(q);if(Oe){let Lt=[];for(let w of Oe)Lt.push(w.name);return Lt}}}else{let Oe=p.getReferencedImportDeclaration(q);if(Oe)return N?.exportedBindings[Ou(Oe)];let Lt=new Set,w=p.getReferencedValueDeclarations(q);if(w){for(let ae of w){let J=N?.exportedBindings[Ou(ae)];if(J)for(let pe of J)Lt.add(pe)}if(Lt.size)return Vo(Lt)}}}}var EIe,rje=A({"src/compiler/transformers/module/module.ts"(){"use strict";ia(),EIe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Xle(e){let{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),p=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=We,e.onEmitNode=le,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);let m=[],b=[],T=[],I=[],R,M,N,O,H,K,Z;return Nm(e,V);function V(q){if(q.isDeclarationFile||!(NA(q,s)||q.transformFlags&8388608))return q;let Oe=Ou(q);R=q,K=q,M=m[Oe]=Jq(e,q),N=t.createUniqueName("exports"),b[Oe]=N,O=I[Oe]=t.createUniqueName("context");let Lt=ue(M.externalImports),w=G(q,Lt),ae=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,N),t.createParameterDeclaration(void 0,void 0,O)],void 0,w),J=$k(t,q,u,s),pe=t.createArrayLiteralExpression(Ft(Lt,ke=>ke.name)),Ge=fr(t.updateSourceFile(q,dt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,J?[J,pe,ae]:[pe,ae]))]),q.statements)),2048);return Ps(s)||fae(Ge,w,ke=>!ke.scoped),Z&&(T[Oe]=Z,Z=void 0),R=void 0,M=void 0,N=void 0,O=void 0,H=void 0,K=void 0,Ge}function ue(q){let Oe=new Map,Lt=[];for(let w of q){let ae=mI(t,w,R,u,l,s);if(ae){let J=ae.text,pe=Oe.get(J);pe!==void 0?Lt[pe].externalImports.push(w):(Oe.set(J,Lt.length),Lt.push({name:ae,externalImports:[w]}))}}return Lt}function G(q,Oe){let Lt=[];r();let w=ud(s,"alwaysStrict")||!s.noImplicitUseStrict&&ac(R),ae=t.copyPrologue(q.statements,Lt,w,$);Lt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(O,t.createPropertyAccessExpression(O,"id")))]))),rt(M.externalHelpersImportDeclaration,$,Ki);let J=Bn(q.statements,$,Ki,ae);Jr(Lt,H),Qh(Lt,i());let pe=ne(Lt),Ge=q.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,ke=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ye(pe,Oe)),t.createPropertyAssignment("execute",t.createFunctionExpression(Ge,void 0,void 0,void 0,[],void 0,t.createBlock(J,!0)))],!0);return Lt.push(t.createReturnStatement(ke)),t.createBlock(Lt,!0)}function ne(q){if(!M.hasExportStarsToExportValues)return;if(!M.exportedNames&&M.exportSpecifiers.size===0){let ae=!1;for(let J of M.externalImports)if(J.kind===278&&J.exportClause){ae=!0;break}if(!ae){let J=he(void 0);return q.push(J),J.name}}let Oe=[];if(M.exportedNames)for(let ae of M.exportedNames)ae.escapedText!=="default"&&Oe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(ae),t.createTrue()));let Lt=t.createUniqueName("exportedNames");q.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Lt,void 0,void 0,t.createObjectLiteralExpression(Oe,!0))])));let w=he(Lt);return q.push(w),w.name}function he(q){let Oe=t.createUniqueName("exportStar"),Lt=t.createIdentifier("m"),w=t.createIdentifier("n"),ae=t.createIdentifier("exports"),J=t.createStrictInequality(w,t.createStringLiteral("default"));return q&&(J=t.createLogicalAnd(J,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(q,"hasOwnProperty"),void 0,[w])))),t.createFunctionDeclaration(void 0,void 0,Oe,void 0,[t.createParameterDeclaration(void 0,void 0,Lt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ae,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(w)]),Lt,t.createBlock([fr(t.createIfStatement(J,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ae,w),t.createElementAccessExpression(Lt,w)))),1)])),t.createExpressionStatement(t.createCallExpression(N,void 0,[ae]))],!0))}function ye(q,Oe){let Lt=[];for(let w of Oe){let ae=Ke(w.externalImports,Ge=>JR(t,Ge,R)),J=ae?t.getGeneratedNameForNode(ae):t.createUniqueName(""),pe=[];for(let Ge of w.externalImports){let ke=JR(t,Ge,R);switch(Ge.kind){case 272:if(!Ge.importClause)break;case 271:C.assert(ke!==void 0),pe.push(t.createExpressionStatement(t.createAssignment(ke,J))),ei(Ge,32)&&pe.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createStringLiteral(Sr(ke)),J])));break;case 278:if(C.assert(ke!==void 0),Ge.exportClause)if(Df(Ge.exportClause)){let Dt=[];for(let Pt of Ge.exportClause.elements)Dt.push(t.createPropertyAssignment(t.createStringLiteral(Sr(Pt.name)),t.createElementAccessExpression(J,t.createStringLiteral(Sr(Pt.propertyName||Pt.name)))));pe.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createObjectLiteralExpression(Dt,!0)])))}else pe.push(t.createExpressionStatement(t.createCallExpression(N,void 0,[t.createStringLiteral(Sr(Ge.exportClause.name)),J])));else pe.push(t.createExpressionStatement(t.createCallExpression(q,void 0,[J])));break}}Lt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,J)],void 0,t.createBlock(pe,!0)))}return t.createArrayLiteralExpression(Lt,!0)}function $(q){switch(q.kind){case 272:return Y(q);case 271:return fe(q);case 278:return oe(q);case 277:return Ne(q);default:return rn(q)}}function Y(q){let Oe;return q.importClause&&o(JR(t,q,R)),sh(At(Oe,q))}function oe(q){C.assertIsDefined(q)}function fe(q){C.assert(l0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return o(JR(t,q,R)),sh(Se(Oe,q))}function Ne(q){if(q.isExportEquals)return;let Oe=rt(q.expression,ro,bt);return gt(t.createIdentifier("default"),Oe,!0)}function me(q){ei(q,32)?H=In(H,t.updateFunctionDeclaration(q,Bn(q.modifiers,Nt,al),q.asteriskToken,t.getDeclarationName(q,!0,!0),void 0,Bn(q.parameters,ro,Co),void 0,rt(q.body,ro,Xo))):H=In(H,An(q,ro,e)),H=Bt(H,q)}function ie(q){let Oe,Lt=t.getLocalName(q);return o(Lt),Oe=In(Oe,dt(t.createExpressionStatement(t.createAssignment(Lt,dt(t.createClassExpression(Bn(q.modifiers,Nt,al),q.name,void 0,Bn(q.heritageClauses,ro,ef),Bn(q.members,ro,$c)),q))),q)),Oe=Bt(Oe,q),sh(Oe)}function ve(q){if(!He(q.declarationList))return rt(q,ro,Ki);let Oe;if(xL(q.declarationList)||IL(q.declarationList)){let Lt=Bn(q.modifiers,Nt,al),w=[];for(let J of q.declarationList.declarations)w.push(t.updateVariableDeclaration(J,t.getGeneratedNameForNode(J.name),void 0,void 0,Ee(J,!1)));let ae=t.updateVariableDeclarationList(q.declarationList,w);Oe=In(Oe,t.updateVariableStatement(q,Lt,ae))}else{let Lt,w=ei(q,32);for(let ae of q.declarationList.declarations)ae.initializer?Lt=In(Lt,Ee(ae,w)):Le(ae);Lt&&(Oe=In(Oe,dt(t.createExpressionStatement(t.inlineExpressions(Lt)),q)))}return Oe=je(Oe,q,!1),sh(Oe)}function Le(q){if(ta(q.name))for(let Oe of q.name.elements)Vc(Oe)||Le(Oe);else o(t.cloneNode(q.name))}function He(q){return(Va(q)&4194304)===0&&(K.kind===312||(Nl(q).flags&7)===0)}function Ee(q,Oe){let Lt=Oe?Ce:Me;return ta(q.name)?JS(q,ro,e,0,!1,Lt):q.initializer?Lt(q.name,rt(q.initializer,ro,bt)):q.name}function Ce(q,Oe,Lt){return Fe(q,Oe,Lt,!0)}function Me(q,Oe,Lt){return Fe(q,Oe,Lt,!1)}function Fe(q,Oe,Lt,w){return o(t.cloneNode(q)),w?nn(q,fn(dt(t.createAssignment(q,Oe),Lt))):fn(dt(t.createAssignment(q,Oe),Lt))}function At(q,Oe){if(M.exportEquals)return q;let Lt=Oe.importClause;if(!Lt)return q;Lt.name&&(q=yt(q,Lt));let w=Lt.namedBindings;if(w)switch(w.kind){case 274:q=yt(q,w);break;case 275:for(let ae of w.elements)q=yt(q,ae);break}return q}function Se(q,Oe){return M.exportEquals?q:yt(q,Oe)}function je(q,Oe,Lt){if(M.exportEquals)return q;for(let w of Oe.declarationList.declarations)(w.initializer||Lt)&&(q=at(q,w,Lt));return q}function at(q,Oe,Lt){if(M.exportEquals)return q;if(ta(Oe.name))for(let w of Oe.name.elements)Vc(w)||(q=at(q,w,Lt));else if(!ol(Oe.name)){let w;Lt&&(q=Qe(q,Oe.name,t.getLocalName(Oe)),w=Sr(Oe.name)),q=yt(q,Oe,w)}return q}function Bt(q,Oe){if(M.exportEquals)return q;let Lt;if(ei(Oe,32)){let w=ei(Oe,2048)?t.createStringLiteral("default"):Oe.name;q=Qe(q,w,t.getLocalName(Oe)),Lt=Zf(w)}return Oe.name&&(q=yt(q,Oe,Lt)),q}function yt(q,Oe,Lt){if(M.exportEquals)return q;let w=t.getDeclarationName(Oe),ae=M.exportSpecifiers.get(w);if(ae)for(let J of ae)J.name.escapedText!==Lt&&(q=Qe(q,J.name,w));return q}function Qe(q,Oe,Lt,w){return q=In(q,gt(Oe,Lt,w)),q}function gt(q,Oe,Lt){let w=t.createExpressionStatement(nn(q,Oe));return Ku(w),Lt||fr(w,3072),w}function nn(q,Oe){let Lt=Ve(q)?t.createStringLiteralFromNode(q):q;return fr(Oe,Va(Oe)|3072),oc(t.createCallExpression(N,void 0,[Lt,Oe]),Oe)}function rn(q){switch(q.kind){case 243:return ve(q);case 262:return me(q);case 263:return ie(q);case 248:return Nn(q,!0);case 249:return Xn(q);case 250:return _n(q);case 246:return vi(q);case 247:return ho(q);case 256:return ki(q);case 254:return Ro(q);case 245:return nr(q);case 255:return qr(q);case 269:return xr(q);case 296:return ln(q);case 297:return tt(q);case 258:return zt(q);case 299:return Rn(q);case 241:return ui(q);default:return ro(q)}}function Nn(q,Oe){let Lt=K;return K=q,q=t.updateForStatement(q,rt(q.initializer,Oe?Yt:No,Ef),rt(q.condition,ro,bt),rt(q.incrementor,No,bt),Id(q.statement,Oe?rn:ro,e)),K=Lt,q}function Xn(q){let Oe=K;return K=q,q=t.updateForInStatement(q,Yt(q.initializer),rt(q.expression,ro,bt),Id(q.statement,rn,e)),K=Oe,q}function _n(q){let Oe=K;return K=q,q=t.updateForOfStatement(q,q.awaitModifier,Yt(q.initializer),rt(q.expression,ro,bt),Id(q.statement,rn,e)),K=Oe,q}function Qt(q){return jc(q)&&He(q)}function Yt(q){if(Qt(q)){let Oe;for(let Lt of q.declarations)Oe=In(Oe,Ee(Lt,!1)),Lt.initializer||Le(Lt);return Oe?t.inlineExpressions(Oe):t.createOmittedExpression()}else return rt(q,No,Ef)}function vi(q){return t.updateDoStatement(q,Id(q.statement,rn,e),rt(q.expression,ro,bt))}function ho(q){return t.updateWhileStatement(q,rt(q.expression,ro,bt),Id(q.statement,rn,e))}function ki(q){return t.updateLabeledStatement(q,q.label,C.checkDefined(rt(q.statement,rn,Ki,t.liftToBlock)))}function Ro(q){return t.updateWithStatement(q,rt(q.expression,ro,bt),C.checkDefined(rt(q.statement,rn,Ki,t.liftToBlock)))}function nr(q){return t.updateIfStatement(q,rt(q.expression,ro,bt),C.checkDefined(rt(q.thenStatement,rn,Ki,t.liftToBlock)),rt(q.elseStatement,rn,Ki,t.liftToBlock))}function qr(q){return t.updateSwitchStatement(q,rt(q.expression,ro,bt),C.checkDefined(rt(q.caseBlock,rn,TN)))}function xr(q){let Oe=K;return K=q,q=t.updateCaseBlock(q,Bn(q.clauses,rn,D6)),K=Oe,q}function ln(q){return t.updateCaseClause(q,rt(q.expression,ro,bt),Bn(q.statements,rn,Ki))}function tt(q){return An(q,rn,e)}function zt(q){return An(q,rn,e)}function Rn(q){let Oe=K;return K=q,q=t.updateCatchClause(q,q.variableDeclaration,C.checkDefined(rt(q.block,rn,Xo))),K=Oe,q}function ui(q){let Oe=K;return K=q,q=An(q,rn,e),K=Oe,q}function bi(q,Oe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Nn(q,!1);case 244:return _a(q);case 217:return ja(q,Oe);case 360:return En(q,Oe);case 226:if(Bv(q))return Ue(q,Oe);break;case 213:if(Wp(q))return wn(q);break;case 224:case 225:return ft(q,Oe)}return An(q,ro,e)}function ro(q){return bi(q,!1)}function No(q){return bi(q,!0)}function _a(q){return t.updateExpressionStatement(q,rt(q.expression,No,bt))}function ja(q,Oe){return t.updateParenthesizedExpression(q,rt(q.expression,Oe?No:ro,bt))}function En(q,Oe){return t.updatePartiallyEmittedExpression(q,rt(q.expression,Oe?No:ro,bt))}function wn(q){let Oe=mI(t,q,R,u,l,s),Lt=rt(Xc(q.arguments),ro,bt),w=Oe&&(!Lt||!Na(Lt)||Lt.text!==Oe.text)?Oe:Lt;return t.createCallExpression(t.createPropertyAccessExpression(O,t.createIdentifier("import")),void 0,w?[w]:[])}function Ue(q,Oe){return mt(q.left)?JS(q,ro,e,0,!Oe):An(q,ro,e)}function mt(q){if(Mc(q,!0))return mt(q.left);if(Zm(q))return mt(q.expression);if(wa(q))return Et(q.properties,mt);if(pd(q))return Et(q.elements,mt);if(np(q))return mt(q.name);if(_c(q))return mt(q.initializer);if(Ve(q)){let Oe=l.getReferencedExportContainer(q);return Oe!==void 0&&Oe.kind===312}else return!1}function ft(q,Oe){if((q.operator===46||q.operator===47)&&Ve(q.operand)&&!ol(q.operand)&&!Ug(q.operand)&&!_U(q.operand)){let Lt=Vt(q.operand);if(Lt){let w,ae=rt(q.operand,ro,bt);Qy(q)?ae=t.updatePrefixUnaryExpression(q,ae):(ae=t.updatePostfixUnaryExpression(q,ae),Oe||(w=t.createTempVariable(o),ae=t.createAssignment(w,ae),dt(ae,q)),ae=t.createComma(ae,t.cloneNode(q.operand)),dt(ae,q));for(let J of Lt)ae=nn(J,fn(ae));return w&&(ae=t.createComma(ae,w),dt(ae,q)),ae}}return An(q,ro,e)}function Nt(q){switch(q.kind){case 95:case 90:return}return q}function le(q,Oe,Lt){if(Oe.kind===312){let w=Ou(Oe);R=Oe,M=m[w],N=b[w],Z=T[w],O=I[w],Z&&delete T[w],g(q,Oe,Lt),R=void 0,M=void 0,N=void 0,O=void 0,Z=void 0}else g(q,Oe,Lt)}function We(q,Oe){return Oe=p(q,Oe),mn(Oe)?Oe:q===1?ot(Oe):q===4?pt(Oe):Oe}function pt(q){switch(q.kind){case 304:return j(q)}return q}function j(q){var Oe,Lt;let w=q.name;if(!ol(w)&&!Ug(w)){let ae=l.getReferencedImportDeclaration(w);if(ae){if(Eh(ae))return dt(t.createPropertyAssignment(t.cloneNode(w),t.createPropertyAccessExpression(t.getGeneratedNameForNode(ae.parent),t.createIdentifier("default"))),q);if(tp(ae))return dt(t.createPropertyAssignment(t.cloneNode(w),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=ae.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||ae),t.cloneNode(ae.propertyName||ae.name))),q)}}return q}function ot(q){switch(q.kind){case 80:return xt(q);case 226:return Ye(q);case 236:return ht(q)}return q}function xt(q){var Oe,Lt;if(Va(q)&8192){let w=Yk(R);return w?t.createPropertyAccessExpression(w,q):q}if(!ol(q)&&!Ug(q)){let w=l.getReferencedImportDeclaration(q);if(w){if(Eh(w))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(w.parent),t.createIdentifier("default")),q);if(tp(w))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=w.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||w),t.cloneNode(w.propertyName||w.name)),q)}}return q}function Ye(q){if(zv(q.operatorToken.kind)&&Ve(q.left)&&(!ol(q.left)||lL(q.left))&&!Ug(q.left)){let Oe=Vt(q.left);if(Oe){let Lt=q;for(let w of Oe)Lt=nn(w,fn(Lt));return Lt}}return q}function ht(q){return nR(q)?t.createPropertyAccessExpression(O,t.createIdentifier("meta")):q}function Vt(q){let Oe,Lt=yn(q);if(Lt){let w=l.getReferencedExportContainer(q,!1);w&&w.kind===312&&(Oe=In(Oe,t.getDeclarationName(Lt))),Oe=Jr(Oe,M?.exportedBindings[Ou(Lt)])}else if(ol(q)&&lL(q)){let w=M?.exportSpecifiers.get(q);if(w){let ae=[];for(let J of w)ae.push(J.name);return ae}}return Oe}function yn(q){if(!ol(q)){let Oe=l.getReferencedImportDeclaration(q);if(Oe)return Oe;let Lt=l.getReferencedValueDeclaration(q);if(Lt&&M?.exportedBindings[Ou(Lt)])return Lt;let w=l.getReferencedValueDeclarations(q);if(w){for(let ae of w)if(ae!==Lt&&M?.exportedBindings[Ou(ae)])return ae}return Lt}}function fn(q){return Z===void 0&&(Z=[]),Z[ss(q)]=!0,q}function mn(q){return Z&&q.id&&Z[q.id]}}var ije=A({"src/compiler/transformers/module/system.ts"(){"use strict";ia()}});function oJ(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=as(s),u=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=Z,e.onSubstituteNode=V,e.enableEmitNotification(312),e.enableSubstitution(80);let g,m,b;return Nm(e,T);function T(G){if(G.isDeclarationFile)return G;if(ac(G)||im(s)){m=G,b=void 0;let ne=I(G);return m=void 0,b&&(ne=t.updateSourceFile(ne,dt(t.createNodeArray(sj(ne.statements.slice(),b)),ne.statements))),!ac(G)||ku(s)===200||Et(ne.statements,fL)?ne:t.updateSourceFile(ne,dt(t.createNodeArray([...ne.statements,Jk(t)]),ne.statements))}return G}function I(G){let ne=WH(t,r(),G,s);if(ne){let he=[],ye=t.copyPrologue(G.statements,he);return In(he,ne),Jr(he,Bn(G.statements,R,Ki,ye)),t.updateSourceFile(G,dt(t.createNodeArray(he),G.statements))}else return An(G,R,e)}function R(G){switch(G.kind){case 271:return ku(s)>=100?N(G):void 0;case 277:return H(G);case 278:return K(G)}return G}function M(G){let ne=mI(t,G,C.checkDefined(m),i,o,s),he=[];if(ne&&he.push(ne),ku(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,he);if(!b){let $=t.createUniqueName("_createRequire",48),Y=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),$)])),t.createStringLiteral("module"),void 0),oe=t.createUniqueName("__require",48),fe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(oe,void 0,void 0,t.createCallExpression(t.cloneNode($),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));b=[Y,fe]}let ye=b[1].declarationList.declarations[0].name;return C.assertNode(ye,Ve),t.createCallExpression(t.cloneNode(ye),void 0,he)}function N(G){C.assert(l0(G),"import= for internal module references should be handled in an earlier transformer.");let ne;return ne=In(ne,Pr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(G.name),void 0,void 0,M(G))],l>=2?2:0)),G),G)),ne=O(ne,G),sh(ne)}function O(G,ne){return ei(ne,32)&&(G=In(G,t.createExportDeclaration(void 0,ne.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Sr(ne.name))])))),G}function H(G){return G.isExportEquals?ku(s)===200?Pr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),G.expression)),G):void 0:G}function K(G){if(s.module!==void 0&&s.module>5||!G.exportClause||!Sh(G.exportClause)||!G.moduleSpecifier)return G;let ne=G.exportClause.name,he=t.getGeneratedNameForNode(ne),ye=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(he)),G.moduleSpecifier,G.attributes);Pr(ye,G.exportClause);let $=z6(G)?t.createExportDefault(he):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,he,ne)]));return Pr($,G),[ye,$]}function Z(G,ne,he){no(ne)?((ac(ne)||im(s))&&s.importHelpers&&(g=new Map),u(G,ne,he),g=void 0):u(G,ne,he)}function V(G,ne){return ne=p(G,ne),g&&Ve(ne)&&Va(ne)&8192?ue(ne):ne}function ue(G){let ne=Sr(G),he=g.get(ne);return he||g.set(ne,he=t.createUniqueName(ne,48)),he}}var oje=A({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";ia()}});function Yle(e){let t=e.onSubstituteNode,r=e.onEmitNode,i=oJ(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;let l=iJ(e),u=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=b,e.enableSubstitution(312),e.enableEmitNotification(312);let g;return R;function m(N,O){return no(O)?(g=O,t(N,O)):g?g.impliedNodeFormat===99?o(N,O):u(N,O):t(N,O)}function b(N,O,H){return no(O)&&(g=O),g?g.impliedNodeFormat===99?s(N,O,H):p(N,O,H):r(N,O,H)}function T(N){return N.impliedNodeFormat===99?i:l}function I(N){if(N.isDeclarationFile)return N;g=N;let O=T(N)(N);return g=void 0,C.assert(no(O)),O}function R(N){return N.kind===312?I(N):M(N)}function M(N){return e.factory.createBundle(Ft(N.sourceFiles,I),N.prepends)}}var aje=A({"src/compiler/transformers/module/node.ts"(){"use strict";ia()}});function oF(e){return Oi(e)||Jo(e)||gp(e)||Qa(e)||wv(e)||wy(e)||zk(e)||nI(e)||jl(e)||yh(e)||Sc(e)||Co(e)||_l(e)||Hv(e)||tu(e)||Dm(e)||Pl(e)||j1(e)||zr(e)||Ys(e)||_r(e)||Qf(e)}function $le(e){if(wv(e)||wy(e))return t;return yh(e)||jl(e)?i:Jv(e);function t(s){let l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return sa(e)?s.errorModuleName?s.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){let l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return sa(e)?s.errorModuleName?s.accessibility===2?f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function Jv(e){if(Oi(e)||Jo(e)||gp(e)||zr(e)||Ys(e)||_r(e)||Qa(e)||Pl(e))return r;return wv(e)||wy(e)?i:zk(e)||nI(e)||jl(e)||yh(e)||Sc(e)||j1(e)?o:Co(e)?pp(e,e.parent)&&ei(e.parent,2)?r:s:_l(e)?u:Hv(e)?p:tu(e)?g:Dm(e)||Qf(e)?m:C.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${C.formatSyntaxKind(e.kind)}`);function t(b){if(e.kind===260||e.kind===208)return b.errorModuleName?b.accessibility===2?f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:f.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&ei(e.parent,2))return sa(e)?b.errorModuleName?b.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?b.errorModuleName?b.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:b.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(b){let T=t(b);return T!==void 0?{diagnosticMessage:T,errorNode:e,typeName:e.name}:void 0}function i(b){let T;return e.kind===178?sa(e)?T=b.errorModuleName?f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:T=b.errorModuleName?f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:sa(e)?T=b.errorModuleName?b.accessibility===2?f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:T=b.errorModuleName?b.accessibility===2?f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:T,errorNode:e.name,typeName:e.name}}function o(b){let T;switch(e.kind){case 180:T=b.errorModuleName?f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:T=b.errorModuleName?f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:T=b.errorModuleName?f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:sa(e)?T=b.errorModuleName?b.accessibility===2?f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?T=b.errorModuleName?b.accessibility===2?f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:T=b.errorModuleName?f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:T=b.errorModuleName?b.accessibility===2?f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return C.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:T,errorNode:e.name||e}}function s(b){let T=l(b);return T!==void 0?{diagnosticMessage:T,errorNode:e,typeName:e.name}:void 0}function l(b){switch(e.parent.kind){case 176:return b.errorModuleName?b.accessibility===2?f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return b.errorModuleName?f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return b.errorModuleName?f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return b.errorModuleName?f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return sa(e.parent)?b.errorModuleName?b.accessibility===2?f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?b.errorModuleName?b.accessibility===2?f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b.errorModuleName?f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return b.errorModuleName?b.accessibility===2?f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return b.errorModuleName?b.accessibility===2?f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return C.fail(`Unknown parent for parameter: ${C.formatSyntaxKind(e.parent.kind)}`)}}function u(){let b;switch(e.parent.kind){case 263:b=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:b=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:b=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:b=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:b=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:sa(e.parent)?b=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?b=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:b=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:b=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:b=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return C.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:b,errorNode:e,typeName:e.name}}function p(){let b;return Tc(e.parent.parent)?b=ef(e.parent)&&e.parent.token===119?f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:f.extends_clause_of_exported_class_has_or_is_using_private_name_0:b=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:b,errorNode:e,typeName:Oo(e.parent.parent)}}function g(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(b){return{diagnosticMessage:b.errorModuleName?f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:f.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Qf(e)?C.checkDefined(e.typeExpression):e.type,typeName:Qf(e)?Oo(e):e.name}}}var sje=A({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";ia()}});function Qle(e,t,r){let i=e.getCompilerOptions();return Pw(t,e,k,i,r?[r]:tr(e.getSourceFiles(),Cj),[aJ],!1).diagnostics}function aJ(e){let t=()=>C.fail("Diagnostic emitted without context"),r=t,i=!0,o=!1,s=!1,l=!1,u=!1,p,g,m,b,T,I,{factory:R}=e,M=e.getEmitHost(),N={trackSymbol:me,reportInaccessibleThisError:Ee,reportInaccessibleUniqueSymbolError:Le,reportCyclicStructureError:He,reportPrivateInBaseOfClassExpression:ie,reportLikelyUnsafeImportRequiredError:Ce,reportTruncationError:Me,moduleResolverHost:M,trackReferencedAmbientModule:Y,trackExternalModuleSymbolOfImportTypeNode:Ne,reportNonlocalAugmentation:Fe,reportNonSerializableProperty:At},O,H,K,Z,V,ue,G=e.getEmitResolver(),ne=e.getCompilerOptions(),{noResolve:he,stripInternal:ye}=ne;return je;function $(j){if(j){g=g||new Set;for(let ot of j)g.add(ot)}}function Y(j,ot){let xt=G.getTypeReferenceDirectivesForSymbol(ot,-1);if(De(xt))return $(xt);let Ye=Vn(j);Z.set(Ou(Ye),Ye)}function oe(j){let ot=cR(j),xt=ot&&G.tryFindAmbientModule(ot);if(xt?.declarations)for(let Ye of xt.declarations)Lu(Ye)&&Vn(Ye)!==K&&Y(Ye,xt)}function fe(j){if(j.accessibility===0){if(j.aliasesToMakeVisible)if(!m)m=j.aliasesToMakeVisible;else for(let ot of j.aliasesToMakeVisible)bf(m,ot)}else{let ot=r(j);if(ot)return ot.typeName?e.addDiagnostic(Or(j.errorNode||ot.errorNode,ot.diagnosticMessage,pc(ot.typeName),j.errorSymbolName,j.errorModuleName)):e.addDiagnostic(Or(j.errorNode||ot.errorNode,ot.diagnosticMessage,j.errorSymbolName,j.errorModuleName)),!0}return!1}function Ne(j){o||(I||(I=[])).push(j)}function me(j,ot,xt){if(j.flags&262144)return!1;let Ye=fe(G.isSymbolAccessible(j,ot,xt,!0));return $(G.getTypeReferenceDirectivesForSymbol(j,xt)),Ye}function ie(j){(O||H)&&e.addDiagnostic(Or(O||H,f.Property_0_of_exported_class_expression_may_not_be_private_or_protected,j))}function ve(){return O?Ds(O):H&&Oo(H)?Ds(Oo(H)):H&&Ll(H)?H.isExportEquals?"export=":"default":"(Missing)"}function Le(){(O||H)&&e.addDiagnostic(Or(O||H,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"unique symbol"))}function He(){(O||H)&&e.addDiagnostic(Or(O||H,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ve()))}function Ee(){(O||H)&&e.addDiagnostic(Or(O||H,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"this"))}function Ce(j){(O||H)&&e.addDiagnostic(Or(O||H,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ve(),j))}function Me(){(O||H)&&e.addDiagnostic(Or(O||H,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Fe(j,ot,xt){var Ye;let ht=(Ye=ot.declarations)==null?void 0:Ye.find(yn=>Vn(yn)===j),Vt=tr(xt.declarations,yn=>Vn(yn)!==j);if(ht&&Vt)for(let yn of Vt)e.addDiagnostic(ka(Or(yn,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Or(ht,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function At(j){(O||H)&&e.addDiagnostic(Or(O||H,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,j))}function Se(j,ot){let xt=r;r=ht=>ht.errorNode&&oF(ht.errorNode)?Jv(ht.errorNode)(ht):{diagnosticMessage:ht.errorModuleName?f.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:f.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:ht.errorNode||j};let Ye=G.getDeclarationStatementsForSourceFile(j,KS,N,ot);return r=xt,Ye}function je(j){if(j.kind===312&&j.isDeclarationFile)return j;if(j.kind===313){o=!0,Z=new Map,V=new Map;let Oe=!1,Lt=R.createBundle(Ft(j.sourceFiles,J=>{if(J.isDeclarationFile)return;if(Oe=Oe||J.hasNoDefaultLib,K=J,p=J,m=void 0,T=!1,b=new Map,r=t,l=!1,u=!1,at(J,Z),Bt(J,V),Fp(J)||$f(J)){s=!1,i=!1;let Ge=ld(J)?R.createNodeArray(Se(J,!0)):Bn(J.statements,ui,Ki);return R.updateSourceFile(J,[R.createModuleDeclaration([R.createModifier(138)],R.createStringLiteral(v3(e.getEmitHost(),J)),R.createModuleBlock(dt(R.createNodeArray(tt(Ge)),J.statements)))],!0,[],[],!1,[])}i=!0;let pe=ld(J)?R.createNodeArray(Se(J)):Bn(J.statements,ui,Ki);return R.updateSourceFile(J,tt(pe),!0,[],[],!1,[])}),Vi(j.prepends,J=>{if(J.kind===315){let pe=nH(J,"dts",ye);return Oe=Oe||!!pe.hasNoDefaultLib,at(pe,Z),$(Ft(pe.typeReferenceDirectives,Ge=>[Ge.fileName,Ge.resolutionMode])),Bt(pe,V),pe}return J}));Lt.syntheticFileReferences=[],Lt.syntheticTypeReferences=fn(),Lt.syntheticLibReferences=yn(),Lt.hasNoDefaultLib=Oe;let w=li(Mu(YN(j,M,!0).declarationFilePath)),ae=q(Lt.syntheticFileReferences,w);return Z.forEach(ae),Lt}i=!0,l=!1,u=!1,p=j,K=j,r=t,o=!1,s=!1,T=!1,m=void 0,b=new Map,g=void 0,Z=at(K,new Map),V=Bt(K,new Map);let ot=[],xt=li(Mu(YN(j,M,!0).declarationFilePath)),Ye=q(ot,xt),ht;if(ld(K))ht=R.createNodeArray(Se(j)),Z.forEach(Ye),ue=tr(ht,_S);else{let Oe=Bn(j.statements,ui,Ki);ht=dt(R.createNodeArray(tt(Oe)),j.statements),Z.forEach(Ye),ue=tr(ht,_S),ac(j)&&(!s||l&&!u)&&(ht=dt(R.createNodeArray([...ht,Jk(R)]),ht))}let Vt=R.updateSourceFile(j,ht,!0,ot,fn(),j.hasNoDefaultLib,yn());return Vt.exportedModulesFromDeclarationEmit=I,Vt;function yn(){return Vo(V.keys(),Oe=>({fileName:Oe,pos:-1,end:-1}))}function fn(){return g?Vi(Vo(g.keys()),mn):[]}function mn([Oe,Lt]){if(ue){for(let w of ue)if(tu(w)&&Th(w.moduleReference)){let ae=w.moduleReference.expression;if(us(ae)&&ae.text===Oe)return}else if(Lc(w)&&Na(w.moduleSpecifier)&&w.moduleSpecifier.text===Oe)return}return{fileName:Oe,pos:-1,end:-1,...Lt?{resolutionMode:Lt}:void 0}}function q(Oe,Lt){return w=>{if(I?.includes(w.symbol))return;let ae;if(w.isDeclarationFile)ae=w.fileName;else{if(o&&wr(j.sourceFiles,w))return;let J=YN(w,M,!0);ae=J.declarationFilePath||J.jsFilePath||w.fileName}if(ae){let J=B5(ne,K,bo(Lt,M.getCurrentDirectory()),bo(ae,M.getCurrentDirectory()),M);if(!wp(J)){$([[J,void 0]]);return}let pe=SA(Lt,ae,M.getCurrentDirectory(),M.getCanonicalFileName,!1);if(uo(pe,"./")&&EA(pe)&&(pe=pe.substring(2)),uo(pe,"node_modules/")||I0(pe))return;Oe.push({pos:-1,end:-1,fileName:pe})}}}}function at(j,ot){return he||!BS(j)&&ld(j)||Ke(j.referencedFiles,xt=>{let Ye=M.getSourceFileFromReference(j,xt);Ye&&ot.set(Ou(Ye),Ye)}),ot}function Bt(j,ot){return Ke(j.libReferenceDirectives,xt=>{M.getLibFileFromReference(xt)&&ot.set(lh(xt.fileName),!0)}),ot}function yt(j){if(j.kind===80)return j;return j.kind===207?R.updateArrayBindingPattern(j,Bn(j.elements,ot,A6)):R.updateObjectBindingPattern(j,Bn(j.elements,ot,Qa));function ot(xt){return xt.kind===232?xt:(xt.propertyName&&Za(xt.propertyName)&&zl(xt.propertyName.expression)&&ki(xt.propertyName.expression,p),R.updateBindingElement(xt,xt.dotDotDotToken,xt.propertyName,yt(xt.name),gt(xt)?xt.initializer:void 0))}}function Qe(j,ot,xt){let Ye;T||(Ye=r,r=Jv(j));let ht=R.updateParameterDeclaration(j,cje(R,j,ot),j.dotDotDotToken,yt(j.name),G.isOptionalParameter(j)?j.questionToken||R.createToken(58):void 0,rn(j,xt||j.type,!0),nn(j));return T||(r=Ye),ht}function gt(j){return uje(j)&&G.isLiteralConstDeclaration(Lo(j))}function nn(j){if(gt(j))return G.createLiteralConstValue(Lo(j),N)}function rn(j,ot,xt){if(!xt&&_p(j,2)||gt(j))return;let Ye=j.kind===169&&(G.isRequiredInitializedParameter(j)||G.isOptionalUninitializedParameterProperty(j));if(ot&&!Ye)return rt(ot,zt,qi);if(!Lo(j))return ot?rt(ot,zt,qi):R.createKeywordTypeNode(133);if(j.kind===178)return R.createKeywordTypeNode(133);O=j.name;let ht;if(T||(ht=r,r=Jv(j)),j.kind===260||j.kind===208)return Vt(G.createTypeOfDeclaration(j,p,KS,N));if(j.kind===169||j.kind===172||j.kind===171)return gp(j)||!j.initializer?Vt(G.createTypeOfDeclaration(j,p,KS,N,Ye)):Vt(G.createTypeOfDeclaration(j,p,KS,N,Ye)||G.createTypeOfExpression(j.initializer,p,KS,N));return Vt(G.createReturnTypeOfSignatureDeclaration(j,p,KS,N));function Vt(yn){return O=void 0,T||(r=ht),yn||R.createKeywordTypeNode(133)}}function Nn(j){switch(j=Lo(j),j.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!G.isDeclarationVisible(j);case 260:return!_n(j);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Xn(j){var ot;if(j.body)return!0;let xt=(ot=j.symbol.declarations)==null?void 0:ot.filter(Ye=>Sc(Ye)&&!Ye.body);return!xt||xt.indexOf(j)===xt.length-1}function _n(j){return Vc(j)?!1:ta(j.name)?Et(j.name.elements,_n):G.isDeclarationVisible(j)}function Qt(j,ot,xt){if(_p(j,2))return R.createNodeArray();let Ye=Ft(ot,ht=>Qe(ht,xt));return Ye?R.createNodeArray(Ye,ot.hasTrailingComma):R.createNodeArray()}function Yt(j,ot){let xt;if(!ot){let Ye=k1(j);Ye&&(xt=[Qe(Ye)])}if(vp(j)){let Ye;if(!ot){let ht=zC(j);if(ht){let Vt=We(j,G.getAllAccessorDeclarations(j));Ye=Qe(ht,void 0,Vt)}}Ye||(Ye=R.createParameterDeclaration(void 0,void 0,"value")),xt=In(xt,Ye)}return R.createNodeArray(xt||et)}function vi(j,ot){return _p(j,2)?void 0:Bn(ot,zt,_l)}function ho(j){return no(j)||Dm(j)||Jl(j)||Tc(j)||fd(j)||ea(j)||j1(j)||WR(j)}function ki(j,ot){let xt=G.isEntityNameVisible(j,ot);fe(xt),$(G.getTypeReferenceDirectivesForEntityName(j))}function Ro(j,ot){return Op(j)&&Op(ot)&&(j.jsDoc=ot.jsDoc),oc(j,L_(ot))}function nr(j,ot){if(ot){if(s=s||j.kind!==267&&j.kind!==205,us(ot))if(o){let xt=jie(e.getEmitHost(),G,j);if(xt)return R.createStringLiteral(xt)}else{let xt=G.getSymbolOfExternalModuleSpecifier(ot);xt&&(I||(I=[])).push(xt)}return ot}}function qr(j){if(G.isDeclarationVisible(j))if(j.moduleReference.kind===283){let ot=RC(j);return R.updateImportEqualsDeclaration(j,j.modifiers,j.isTypeOnly,j.name,R.updateExternalModuleReference(j.moduleReference,nr(j,ot)))}else{let ot=r;return r=Jv(j),ki(j.moduleReference,p),r=ot,j}}function xr(j){if(!j.importClause)return R.updateImportDeclaration(j,j.modifiers,j.importClause,nr(j,j.moduleSpecifier),ln(j.attributes));let ot=j.importClause&&j.importClause.name&&G.isDeclarationVisible(j.importClause)?j.importClause.name:void 0;if(!j.importClause.namedBindings)return ot&&R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,void 0),nr(j,j.moduleSpecifier),ln(j.attributes));if(j.importClause.namedBindings.kind===274){let Ye=G.isDeclarationVisible(j.importClause.namedBindings)?j.importClause.namedBindings:void 0;return ot||Ye?R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,Ye),nr(j,j.moduleSpecifier),ln(j.attributes)):void 0}let xt=Vi(j.importClause.namedBindings.elements,Ye=>G.isDeclarationVisible(Ye)?Ye:void 0);if(xt&&xt.length||ot)return R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,xt&&xt.length?R.updateNamedImports(j.importClause.namedBindings,xt):void 0),nr(j,j.moduleSpecifier),ln(j.attributes));if(G.isImportRequiredByAugmentation(j))return R.updateImportDeclaration(j,j.modifiers,void 0,nr(j,j.moduleSpecifier),ln(j.attributes))}function ln(j){let ot=s2(j);return j&&ot!==void 0?j:void 0}function tt(j){for(;De(m);){let xt=m.shift();if(!G6(xt))return C.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${C.formatSyntaxKind(xt.kind)}`);let Ye=i;i=xt.parent&&no(xt.parent)&&!(ac(xt.parent)&&o);let ht=No(xt);i=Ye,b.set(Ou(xt),ht)}return Bn(j,ot,Ki);function ot(xt){if(G6(xt)){let Ye=Ou(xt);if(b.has(Ye)){let ht=b.get(Ye);return b.delete(Ye),ht&&((Do(ht)?Et(ht,I6):I6(ht))&&(l=!0),no(xt.parent)&&(Do(ht)?Et(ht,fL):fL(ht))&&(s=!0)),ht}}return xt}}function zt(j){if(Ue(j)||qu(j)&&(Nn(j)||By(j)&&!G.isLateBound(Lo(j)))||ea(j)&&G.isImplementationOfOverload(j)||Mae(j))return;let ot;ho(j)&&(ot=p,p=j);let xt=r,Ye=oF(j),ht=T,Vt=(j.kind===187||j.kind===200)&&j.parent.kind!==265;if((jl(j)||yh(j))&&_p(j,2))return j.symbol&&j.symbol.declarations&&j.symbol.declarations[0]!==j?void 0:yn(R.createPropertyDeclaration(Nt(j),j.name,void 0,void 0,void 0));if(Ye&&!T&&(r=Jv(j)),rI(j)&&ki(j.exprName,p),Vt&&(T=!0),pje(j))switch(j.kind){case 233:{(Qd(j.expression)||zl(j.expression))&&ki(j.expression,p);let fn=An(j,zt,e);return yn(R.updateExpressionWithTypeArguments(fn,fn.expression,fn.typeArguments))}case 183:{ki(j.typeName,p);let fn=An(j,zt,e);return yn(R.updateTypeReferenceNode(fn,fn.typeName,fn.typeArguments))}case 180:return yn(R.updateConstructSignature(j,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 176:{let fn=R.createConstructorDeclaration(Nt(j),Qt(j,j.parameters,0),void 0);return yn(fn)}case 174:{if(Xi(j.name))return yn(void 0);let fn=R.createMethodDeclaration(Nt(j),void 0,j.name,j.questionToken,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type),void 0);return yn(fn)}case 177:{if(Xi(j.name))return yn(void 0);let fn=We(j,G.getAllAccessorDeclarations(j));return yn(R.updateGetAccessorDeclaration(j,Nt(j),j.name,Yt(j,_p(j,2)),rn(j,fn),void 0))}case 178:return Xi(j.name)?yn(void 0):yn(R.updateSetAccessorDeclaration(j,Nt(j),j.name,Yt(j,_p(j,2)),void 0));case 172:return Xi(j.name)?yn(void 0):yn(R.updatePropertyDeclaration(j,Nt(j),j.name,j.questionToken,rn(j,j.type),nn(j)));case 171:return Xi(j.name)?yn(void 0):yn(R.updatePropertySignature(j,Nt(j),j.name,j.questionToken,rn(j,j.type)));case 173:return Xi(j.name)?yn(void 0):yn(R.updateMethodSignature(j,Nt(j),j.name,j.questionToken,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 179:return yn(R.updateCallSignature(j,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 181:return yn(R.updateIndexSignature(j,Nt(j),Qt(j,j.parameters),rt(j.type,zt,qi)||R.createKeywordTypeNode(133)));case 260:return ta(j.name)?ja(j.name):(Vt=!0,T=!0,yn(R.updateVariableDeclaration(j,j.name,void 0,rn(j,j.type),nn(j))));case 168:return Rn(j)&&(j.default||j.constraint)?yn(R.updateTypeParameterDeclaration(j,j.modifiers,j.name,void 0,void 0)):yn(An(j,zt,e));case 194:{let fn=rt(j.checkType,zt,qi),mn=rt(j.extendsType,zt,qi),q=p;p=j.trueType;let Oe=rt(j.trueType,zt,qi);p=q;let Lt=rt(j.falseType,zt,qi);return C.assert(fn),C.assert(mn),C.assert(Oe),C.assert(Lt),yn(R.updateConditionalTypeNode(j,fn,mn,Oe,Lt))}case 184:return yn(R.updateFunctionTypeNode(j,Bn(j.typeParameters,zt,_l),Qt(j,j.parameters),C.checkDefined(rt(j.type,zt,qi))));case 185:return yn(R.updateConstructorTypeNode(j,Nt(j),Bn(j.typeParameters,zt,_l),Qt(j,j.parameters),C.checkDefined(rt(j.type,zt,qi))));case 205:return zy(j)?(oe(j),yn(R.updateImportTypeNode(j,R.updateLiteralTypeNode(j.argument,nr(j,j.argument.literal)),j.attributes,j.qualifier,Bn(j.typeArguments,zt,qi),j.isTypeOf))):yn(j);default:C.assertNever(j,`Attempted to process unhandled node kind: ${C.formatSyntaxKind(j.kind)}`)}return iI(j)&&Es(K,j.pos).line===Es(K,j.end).line&&fr(j,1),yn(An(j,zt,e));function yn(fn){return fn&&Ye&&By(j)&&wn(j),ho(j)&&(p=ot),Ye&&!T&&(r=xt),Vt&&(T=ht),fn===j?fn:fn&&Pr(Ro(fn,j),j)}}function Rn(j){return j.parent.kind===174&&_p(j.parent,2)}function ui(j){if(!dje(j)||Ue(j))return;switch(j.kind){case 278:return no(j.parent)&&(s=!0),u=!0,oe(j),R.updateExportDeclaration(j,j.modifiers,j.isTypeOnly,j.exportClause,nr(j,j.moduleSpecifier),ln(j.attributes));case 277:{if(no(j.parent)&&(s=!0),u=!0,j.expression.kind===80)return j;{let xt=R.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:j}),H=j;let Ye=R.createVariableDeclaration(xt,void 0,G.createTypeOfExpression(j.expression,j,KS,N),void 0);H=void 0;let ht=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([Ye],2));return Ro(ht,j),Nk(j),[ht,R.updateExportAssignment(j,j.modifiers,xt)]}}}let ot=No(j);return b.set(Ou(j),ot),j}function bi(j){if(tu(j)||_p(j,2048)||!Cm(j))return j;let ot=R.createModifiersFromModifierFlags(cd(j)&131039);return R.replaceModifiers(j,ot)}function ro(j,ot,xt,Ye){let ht=R.updateModuleDeclaration(j,ot,xt,Ye);if(Lu(ht)||ht.flags&32)return ht;let Vt=R.createModuleDeclaration(ht.modifiers,ht.name,ht.body,ht.flags|32);return Pr(Vt,ht),dt(Vt,ht),Vt}function No(j){if(m)for(;Mx(m,j););if(Ue(j))return;switch(j.kind){case 271:{let yn=qr(j);return yn&&oe(j),yn}case 272:{let yn=xr(j);return yn&&oe(j),yn}}if(qu(j)&&Nn(j)||ea(j)&&G.isImplementationOfOverload(j))return;let ot;ho(j)&&(ot=p,p=j);let xt=oF(j),Ye=r;xt&&(r=Jv(j));let ht=i;switch(j.kind){case 265:{i=!1;let yn=Vt(R.updateTypeAliasDeclaration(j,Nt(j),j.name,Bn(j.typeParameters,zt,_l),C.checkDefined(rt(j.type,zt,qi))));return i=ht,yn}case 264:return Vt(R.updateInterfaceDeclaration(j,Nt(j),j.name,vi(j,j.typeParameters),pt(j.heritageClauses),Bn(j.members,zt,dS)));case 262:{let yn=Vt(R.updateFunctionDeclaration(j,Nt(j),void 0,j.name,vi(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type),void 0));if(yn&&G.isExpandoFunctionDeclaration(j)&&Xn(j)){let fn=G.getPropertiesOfContainerFunction(j),mn=Ah.createModuleDeclaration(void 0,yn.name||R.createIdentifier("_default"),R.createModuleBlock([]),32);qa(mn,p),mn.locals=ua(fn),mn.symbol=fn[0].parent;let q=[],Oe=Vi(fn,Ge=>{if(!r7(Ge.valueDeclaration))return;let ke=Hi(Ge.escapedName);if(!$p(ke,99))return;r=Jv(Ge.valueDeclaration);let Dt=G.createTypeOfDeclaration(Ge.valueDeclaration,mn,KS,N);r=Ye;let Pt=OA(ke),Kt=Pt?R.getGeneratedNameForNode(Ge.valueDeclaration):R.createIdentifier(ke);Pt&&q.push([Kt,ke]);let Tn=R.createVariableDeclaration(Kt,void 0,Dt,void 0);return R.createVariableStatement(Pt?void 0:[R.createToken(95)],R.createVariableDeclarationList([Tn]))});q.length?Oe.push(R.createExportDeclaration(void 0,!1,R.createNamedExports(Ft(q,([Ge,ke])=>R.createExportSpecifier(!1,Ge,ke))))):Oe=Vi(Oe,Ge=>R.replaceModifiers(Ge,0));let Lt=R.createModuleDeclaration(Nt(j),j.name,R.createModuleBlock(Oe),32);if(!_p(yn,2048))return[yn,Lt];let w=R.createModifiersFromModifierFlags(cd(yn)&-2081|128),ae=R.updateFunctionDeclaration(yn,w,void 0,yn.name,yn.typeParameters,yn.parameters,yn.type,void 0),J=R.updateModuleDeclaration(Lt,w,Lt.name,Lt.body),pe=R.createExportAssignment(void 0,!1,Lt.name);return no(j.parent)&&(s=!0),u=!0,[ae,J,pe]}else return yn}case 267:{i=!1;let yn=j.body;if(yn&&yn.kind===268){let fn=l,mn=u;u=!1,l=!1;let q=Bn(yn.statements,ui,Ki),Oe=tt(q);j.flags&33554432&&(l=!1),!I_(j)&&!ft(Oe)&&!u&&(l?Oe=R.createNodeArray([...Oe,Jk(R)]):Oe=Bn(Oe,bi,Ki));let Lt=R.updateModuleBlock(yn,Oe);i=ht,l=fn,u=mn;let w=Nt(j);return Vt(ro(j,w,I1(j)?nr(j,j.name):j.name,Lt))}else{i=ht;let fn=Nt(j);i=!1,rt(yn,ui);let mn=Ou(yn),q=b.get(mn);return b.delete(mn),Vt(ro(j,fn,j.name,q))}}case 263:{O=j.name,H=j;let yn=R.createNodeArray(Nt(j)),fn=vi(j,j.typeParameters),mn=ig(j),q;if(mn){let pe=r;q=CM(Zi(mn.parameters,Ge=>{if(!ei(Ge,31)||Ue(Ge))return;if(r=Jv(Ge),Ge.name.kind===80)return Ro(R.createPropertyDeclaration(Nt(Ge),Ge.name,Ge.questionToken,rn(Ge,Ge.type),nn(Ge)),Ge);return ke(Ge.name);function ke(Dt){let Pt;for(let Kt of Dt.elements)Vc(Kt)||(ta(Kt.name)&&(Pt=xo(Pt,ke(Kt.name))),Pt=Pt||[],Pt.push(R.createPropertyDeclaration(Nt(Ge),Kt.name,void 0,rn(Kt,void 0),void 0)));return Pt}})),r=pe}let Lt=Et(j.members,pe=>!!pe.name&&Xi(pe.name))?[R.createPropertyDeclaration(void 0,R.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,w=xo(xo(Lt,q),Bn(j.members,zt,$c)),ae=R.createNodeArray(w),J=x_(j);if(J&&!zl(J.expression)&&J.expression.kind!==106){let pe=j.name?Hi(j.name.escapedText):"default",Ge=R.createUniqueName(`${pe}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:J,typeName:j.name});let ke=R.createVariableDeclaration(Ge,void 0,G.createTypeOfExpression(J.expression,j,KS,N),void 0),Dt=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([ke],2)),Pt=R.createNodeArray(Ft(j.heritageClauses,Kt=>{if(Kt.token===96){let Tn=r;r=Jv(Kt.types[0]);let On=R.updateHeritageClause(Kt,Ft(Kt.types,Gn=>R.updateExpressionWithTypeArguments(Gn,Ge,Bn(Gn.typeArguments,zt,qi))));return r=Tn,On}return R.updateHeritageClause(Kt,Bn(R.createNodeArray(tr(Kt.types,Tn=>zl(Tn.expression)||Tn.expression.kind===106)),zt,Hv))}));return[Dt,Vt(R.updateClassDeclaration(j,yn,j.name,fn,Pt,ae))]}else{let pe=pt(j.heritageClauses);return Vt(R.updateClassDeclaration(j,yn,j.name,fn,pe,ae))}}case 243:return Vt(_a(j));case 266:return Vt(R.updateEnumDeclaration(j,R.createNodeArray(Nt(j)),j.name,R.createNodeArray(Vi(j.members,yn=>{if(Ue(yn))return;let fn=G.getConstantValue(yn),mn=fn===void 0?void 0:typeof fn=="string"?R.createStringLiteral(fn):fn<0?R.createPrefixUnaryExpression(41,R.createNumericLiteral(-fn)):R.createNumericLiteral(fn);return Ro(R.updateEnumMember(yn,yn.name,mn),yn)}))))}return C.assertNever(j,`Unhandled top-level node in declaration emit: ${C.formatSyntaxKind(j.kind)}`);function Vt(yn){return ho(j)&&(p=ot),xt&&(r=Ye),j.kind===267&&(i=ht),yn===j?yn:(H=void 0,O=void 0,yn&&Pr(Ro(yn,j),j))}}function _a(j){if(!Ke(j.declarationList.declarations,_n))return;let ot=Bn(j.declarationList.declarations,zt,Oi);if(!De(ot))return;let xt=R.createNodeArray(Nt(j)),Ye;return xL(j.declarationList)||IL(j.declarationList)?(Ye=R.createVariableDeclarationList(ot,2),Pr(Ye,j.declarationList),dt(Ye,j.declarationList),oc(Ye,j.declarationList)):Ye=R.updateVariableDeclarationList(j.declarationList,ot),R.updateVariableStatement(j,xt,Ye)}function ja(j){return ts(Vi(j.elements,ot=>En(ot)))}function En(j){if(j.kind!==232&&j.name)return _n(j)?ta(j.name)?ja(j.name):R.createVariableDeclaration(j.name,void 0,rn(j,void 0),void 0):void 0}function wn(j){let ot;T||(ot=r,r=$le(j)),O=j.name,C.assert(G.isLateBound(Lo(j)));let Ye=j.name.expression;ki(Ye,p),T||(r=ot),O=void 0}function Ue(j){return!!ye&&!!j&&rj(j,K)}function mt(j){return Ll(j)||Kl(j)}function ft(j){return Et(j,mt)}function Nt(j){let ot=cd(j),xt=le(j);return ot===xt?xw(j.modifiers,Ye=>ai(Ye,Ia),Ia):R.createModifiersFromModifierFlags(xt)}function le(j){let ot=130030,xt=i&&!lje(j)?128:0,Ye=j.parent.kind===312;return(!Ye||o&&Ye&&ac(j.parent))&&(ot^=128,xt=0),SIe(j,ot,xt)}function We(j,ot){let xt=Zle(j);return!xt&&j!==ot.firstAccessor&&(xt=Zle(ot.firstAccessor),r=Jv(ot.firstAccessor)),!xt&&ot.secondAccessor&&j!==ot.secondAccessor&&(xt=Zle(ot.secondAccessor),r=Jv(ot.secondAccessor)),xt}function pt(j){return R.createNodeArray(tr(Ft(j,ot=>R.updateHeritageClause(ot,Bn(R.createNodeArray(tr(ot.types,xt=>zl(xt.expression)||ot.token===96&&xt.expression.kind===106)),zt,Hv))),ot=>ot.types&&!!ot.types.length))}}function lje(e){return e.kind===264}function cje(e,t,r,i){return e.createModifiersFromModifierFlags(SIe(t,r,i))}function SIe(e,t=131070,r=0){let i=cd(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function Zle(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function uje(e){switch(e.kind){case 172:case 171:return!_p(e,2);case 169:case 260:return!0}return!1}function dje(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function pje(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var KS,fje=A({"src/compiler/transformers/declarations.ts"(){"use strict";ia(),ile(),KS=531469}});function mje(e){switch(e){case 99:case 7:case 6:case 5:case 200:return oJ;case 4:return Xle;case 100:case 199:return Yle;default:return iJ}}function sJ(e,t,r){return{scriptTransformers:_je(e,t,r),declarationTransformers:hje(t)}}function _je(e,t,r){if(r)return et;let i=as(e),o=ku(e),s=pN(e),l=[];return Jr(l,t&&Ft(t.before,AIe)),l.push(Nle),e.experimentalDecorators&&l.push(Lle),G3(e)&&l.push(Ule),i<99&&l.push(Ble),!e.experimentalDecorators&&(i<99||!s)&&l.push(kle),l.push(Ple),i<8&&l.push(zle),i<7&&l.push(Wle),i<6&&l.push(Fle),i<5&&l.push(Ole),i<4&&l.push(wle),i<3&&l.push(Hle),i<2&&(l.push(qle),l.push(Kle)),l.push(mje(o)),i<1&&l.push(Jle),Jr(l,t&&Ft(t.after,AIe)),l}function hje(e){let t=[];return t.push(aJ),Jr(t,e&&Ft(e.afterDeclarations,vje)),t}function gje(e){return t=>AH(t)?e.transformBundle(t):e.transformSourceFile(t)}function TIe(e,t){return r=>{let i=e(r);return typeof i=="function"?t(r,i):gje(i)}}function AIe(e){return TIe(e,Nm)}function vje(e){return TIe(e,(t,r)=>r)}function JN(e,t){return t}function Nw(e,t,r){r(e,t)}function Pw(e,t,r,i,o,s,l){var u,p;let g=new Array(363),m,b,T,I=0,R=[],M=[],N=[],O=[],H=0,K=!1,Z=[],V=0,ue,G,ne=JN,he=Nw,ye=0,$=[],Y={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Ed(()=>vae(Y)),startLexicalEnvironment:Se,suspendLexicalEnvironment:je,resumeLexicalEnvironment:at,endLexicalEnvironment:Bt,setLexicalEnvironmentFlags:yt,getLexicalEnvironmentFlags:Qe,hoistVariableDeclaration:Me,hoistFunctionDeclaration:Fe,addInitializationStatement:At,startBlockScope:gt,endBlockScope:nn,addBlockScopedVariable:rn,requestEmitHelper:Nn,readEmitHelpers:Xn,enableSubstitution:ie,enableEmitNotification:He,isSubstitutionEnabled:ve,isEmitNotificationEnabled:Ee,get onSubstituteNode(){return ne},set onSubstituteNode(Qt){C.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(Qt!==void 0,"Value must not be 'undefined'"),ne=Qt},get onEmitNode(){return he},set onEmitNode(Qt){C.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(Qt!==void 0,"Value must not be 'undefined'"),he=Qt},addDiagnostic(Qt){$.push(Qt)}};for(let Qt of o)aH(Vn(Lo(Qt)));nl("beforeTransform");let oe=s.map(Qt=>Qt(Y)),fe=Qt=>{for(let Yt of oe)Qt=Yt(Qt);return Qt};ye=1;let Ne=[];for(let Qt of o)(u=lr)==null||u.push(lr.Phase.Emit,"transformNodes",Qt.kind===312?{path:Qt.path}:{kind:Qt.kind,pos:Qt.pos,end:Qt.end}),Ne.push((l?fe:me)(Qt)),(p=lr)==null||p.pop();return ye=2,nl("afterTransform"),Yp("transformTime","beforeTransform","afterTransform"),{transformed:Ne,substituteNode:Le,emitNodeWithNotification:Ce,isEmitNotificationEnabled:Ee,dispose:_n,diagnostics:$};function me(Qt){return Qt&&(!no(Qt)||!Qt.isDeclarationFile)?fe(Qt):Qt}function ie(Qt){C.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),g[Qt]|=1}function ve(Qt){return(g[Qt.kind]&1)!==0&&(Va(Qt)&8)===0}function Le(Qt,Yt){return C.assert(ye<3,"Cannot substitute a node after the result is disposed."),Yt&&ve(Yt)&&ne(Qt,Yt)||Yt}function He(Qt){C.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),g[Qt]|=2}function Ee(Qt){return(g[Qt.kind]&2)!==0||(Va(Qt)&4)!==0}function Ce(Qt,Yt,vi){C.assert(ye<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Yt&&(Ee(Yt)?he(Qt,Yt,vi):vi(Qt,Yt))}function Me(Qt){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed.");let Yt=fr(r.createVariableDeclaration(Qt),128);m?m.push(Yt):m=[Yt],I&1&&(I|=2)}function Fe(Qt){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),fr(Qt,2097152),b?b.push(Qt):b=[Qt]}function At(Qt){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),fr(Qt,2097152),T?T.push(Qt):T=[Qt]}function Se(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!K,"Lexical environment is suspended."),R[H]=m,M[H]=b,N[H]=T,O[H]=I,H++,m=void 0,b=void 0,T=void 0,I=0}function je(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!K,"Lexical environment is already suspended."),K=!0}function at(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(K,"Lexical environment is not suspended."),K=!1}function Bt(){C.assert(ye>0,"Cannot modify the lexical environment during initialization."),C.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!K,"Lexical environment is suspended.");let Qt;if(m||b||T){if(b&&(Qt=[...b]),m){let Yt=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));fr(Yt,2097152),Qt?Qt.push(Yt):Qt=[Yt]}T&&(Qt?Qt=[...Qt,...T]:Qt=[...T])}return H--,m=R[H],b=M[H],T=N[H],I=O[H],H===0&&(R=[],M=[],N=[],O=[]),Qt}function yt(Qt,Yt){I=Yt?I|Qt:I&~Qt}function Qe(){return I}function gt(){C.assert(ye>0,"Cannot start a block scope during initialization."),C.assert(ye<2,"Cannot start a block scope after transformation has completed."),Z[V]=ue,V++,ue=void 0}function nn(){C.assert(ye>0,"Cannot end a block scope during initialization."),C.assert(ye<2,"Cannot end a block scope after transformation has completed.");let Qt=Et(ue)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ue.map(Yt=>r.createVariableDeclaration(Yt)),1))]:void 0;return V--,ue=Z[V],V===0&&(Z=[]),Qt}function rn(Qt){C.assert(V>0,"Cannot add a block scoped variable outside of an iteration body."),(ue||(ue=[])).push(Qt)}function Nn(Qt){if(C.assert(ye>0,"Cannot modify the transformation context during initialization."),C.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),C.assert(!Qt.scoped,"Cannot request a scoped emit helper."),Qt.dependencies)for(let Yt of Qt.dependencies)Nn(Yt);G=In(G,Qt)}function Xn(){C.assert(ye>0,"Cannot modify the transformation context during initialization."),C.assert(ye<2,"Cannot modify the transformation context after transformation has completed.");let Qt=G;return G=void 0,Qt}function _n(){if(ye<3){for(let Qt of o)aH(Vn(Lo(Qt)));m=void 0,R=void 0,b=void 0,M=void 0,ne=void 0,he=void 0,G=void 0,ye=3}}}var lJ,KN,yje=A({"src/compiler/transformer.ts"(){"use strict";ia(),oS(),lJ={scriptTransformers:et,declarationTransformers:et},KN={factory:k,getCompilerOptions:()=>({}),getEmitResolver:Ko,getEmitHost:Ko,getEmitHelperFactory:Ko,startLexicalEnvironment:$a,resumeLexicalEnvironment:$a,suspendLexicalEnvironment:$a,endLexicalEnvironment:Xb,setLexicalEnvironmentFlags:$a,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:$a,hoistFunctionDeclaration:$a,addInitializationStatement:$a,startBlockScope:$a,endBlockScope:Xb,addBlockScopedVariable:$a,requestEmitHelper:$a,readEmitHelpers:Ko,enableSubstitution:$a,enableEmitNotification:$a,isSubstitutionEnabled:Ko,isEmitNotificationEnabled:Ko,onSubstituteNode:JN,onEmitNode:Nw,addDiagnostic:$a}}});function ece(e){return Tl(e,".tsbuildinfo")}function cJ(e,t,r,i=!1,o,s){let l=Do(r)?r:nU(e,r,i),u=e.getCompilerOptions();if(Ps(u)){let p=e.getPrependNodes();if(l.length||p.length){let g=k.createBundle(l,p),m=t(YN(g,e,i),g);if(m)return m}}else{if(!o)for(let p of l){let g=t(YN(p,e,i),p);if(g)return g}if(s){let p=Kv(u);if(p)return t({buildInfoPath:p},void 0)}}}function Kv(e){let t=e.configFilePath;if(!dN(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let r=Ps(e),i;if(r)i=Td(r);else{if(!t)return;let o=Td(t);i=e.outDir?e.rootDir?Dy(e.outDir,bm(e.rootDir,o,!0)):Zr(e.outDir,rc(o)):o}return i+".tsbuildinfo"}function XN(e,t){let r=Ps(e),i=e.emitDeclarationOnly?void 0:r,o=i&&IIe(i,e),s=t||xf(e)?Td(r)+".d.ts":void 0,l=s&&Tk(e)?s+".map":void 0,u=Kv(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:u}}function YN(e,t,r){let i=t.getCompilerOptions();if(e.kind===313)return XN(i,r);{let o=Uie(e.fileName,t,aF(e.fileName,i)),s=$f(e),l=s&&Pg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,p=!u||$f(e)?void 0:IIe(u,i),g=r||xf(i)&&!s?Hie(e.fileName,t):void 0,m=g&&Tk(i)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:p,declarationFilePath:g,declarationMapPath:m,buildInfoPath:void 0}}}function IIe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function aF(e,t){return Tl(e,".json")?".json":t.jsx===1&&Ec(e,[".jsx",".tsx"])?".jsx":Ec(e,[".mts",".mjs"])?".mjs":Ec(e,[".cts",".cjs"])?".cjs":".js"}function xIe(e,t,r,i){return r?Dy(r,bm(i(),e,t)):e}function $N(e,t,r,i=()=>a2(t,r)){return uJ(e,t.options,r,i)}function uJ(e,t,r,i){return m0(xIe(e,r,t.declarationDir||t.outDir,i),b3(e))}function RIe(e,t,r,i=()=>a2(t,r)){if(t.options.emitDeclarationOnly)return;let o=Tl(e,".json"),s=dJ(e,t.options,r,i);return!o||Pg(e,s,C.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function dJ(e,t,r,i){return m0(xIe(e,r,t.outDir,i),aF(e,t))}function DIe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||et}}function CIe(e,t){let{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=XN(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function NIe(e,t,r,i,o){if(Su(t))return;let s=RIe(t,e,r,o);if(i(s),!Tl(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),xf(e.options))){let l=$N(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function QN(e,t,r,i,o){let s;return e.rootDir?(s=bo(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=li(Mu(e.configFilePath)),o?.(s)):s=ace(t(),r,i),s&&s[s.length-1]!==il&&(s+=il),s}function a2({options:e,fileNames:t},r){return QN(e,()=>tr(t,i=>!(e.noEmitForJsFiles&&Ec(i,LR))&&!Su(i)),li(Mu(C.checkDefined(e.configFilePath))),Pu(!r))}function sF(e,t){let{addOutput:r,getOutputs:i}=DIe();if(Ps(e.options))CIe(e,r);else{let o=Ed(()=>a2(e,t));for(let s of e.fileNames)NIe(e,s,t,r,o);r(Kv(e.options))}return i()}function PIe(e,t,r){t=va(t),C.assert(wr(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:o}=DIe();return Ps(e.options)?CIe(e,i):NIe(e,t,r,i),o()}function pJ(e,t){if(Ps(e.options)){let{jsFilePath:o,declarationFilePath:s}=XN(e.options,!1);return C.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}let r=Ed(()=>a2(e,t));for(let o of e.fileNames){if(Su(o))continue;let s=RIe(o,e,t,r);if(s)return s;if(!Tl(o,".json")&&xf(e.options))return $N(o,e,t,r)}let i=Kv(e.options);return i||C.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function lF(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u){var p=t.getCompilerOptions(),g=p.sourceMap||p.inlineSourceMap||Tk(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,b=vR(),T=Gv(p),I=ik(T),{enter:R,exit:M}=yG("printTime","beforePrint","afterPrint"),N,O=!1;return R(),cJ(t,H,nU(t,r,u),u,l,!r),M(),{emitSkipped:O,diagnostics:b.getDiagnostics(),emittedFiles:m,sourceMaps:g};function H({jsFilePath:Y,sourceMapFilePath:oe,declarationFilePath:fe,declarationMapPath:Ne,buildInfoPath:me},ie){var ve,Le,He,Ee,Ce,Me;let Fe;me&&ie&&AH(ie)&&(Fe=li(bo(me,t.getCurrentDirectory())),N={commonSourceDirectory:At(t.getCommonSourceDirectory()),sourceFiles:ie.sourceFiles.map(Se=>At(bo(Se.fileName,t.getCurrentDirectory())))}),(ve=lr)==null||ve.push(lr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Y}),Z(ie,Y,oe,At),(Le=lr)==null||Le.pop(),(He=lr)==null||He.push(lr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:fe}),V(ie,fe,Ne,At),(Ee=lr)==null||Ee.pop(),(Ce=lr)==null||Ce.push(lr.Phase.Emit,"emitBuildInfo",{buildInfoPath:me}),K(N,me),(Me=lr)==null||Me.pop();function At(Se){return v1(bm(Fe,Se,t.getCanonicalFileName))}}function K(Y,oe){if(!oe||r||O)return;if(t.isEmitBlocked(oe)){O=!0;return}let fe=t.getBuildInfo(Y)||Mw(void 0,Y);FC(t,b,oe,tce(fe),!1,void 0,{buildInfo:fe}),m?.push(oe)}function Z(Y,oe,fe,Ne){if(!Y||s||!oe)return;if(t.isEmitBlocked(oe)||p.noEmit){O=!0;return}let me=Pw(e,t,k,p,[Y],i,!1),ie={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!N,relativeToBuildInfo:Ne},ve=x0(ie,{hasGlobalName:e.hasGlobalName,onEmitNode:me.emitNodeWithNotification,isEmitNotificationEnabled:me.isEmitNotificationEnabled,substituteNode:me.substituteNode});C.assert(me.transformed.length===1,"Should only see one output from the transform"),G(oe,fe,me,ve,p),me.dispose(),N&&(N.js=ve.bundleFileInfo),m&&(m.push(oe),fe&&m.push(fe))}function V(Y,oe,fe,Ne){if(!Y||s===0)return;if(!oe){(s||p.emitDeclarationOnly)&&(O=!0);return}let me=no(Y)?[Y]:Y.sourceFiles,ie=u?me:tr(me,Cj),ve=Ps(p)?[k.createBundle(ie,no(Y)?void 0:Y.prepends)]:ie;s&&!xf(p)&&ie.forEach(ue);let Le=Pw(e,t,k,p,ve,o,!1);if(De(Le.diagnostics))for(let Ee of Le.diagnostics)b.add(Ee);let He=!!Le.diagnostics&&!!Le.diagnostics.length||!!t.isEmitBlocked(oe)||!!p.noEmit;if(O=O||He,!He||u){C.assert(Le.transformed.length===1,"Should only see one output from the decl transform");let Ee={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!u&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!N,recordInternalSection:!!N,relativeToBuildInfo:Ne},Ce=x0(Ee,{hasGlobalName:e.hasGlobalName,onEmitNode:Le.emitNodeWithNotification,isEmitNotificationEnabled:Le.isEmitNotificationEnabled,substituteNode:Le.substituteNode});G(oe,fe,Le,Ce,{sourceMap:Ee.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(oe),fe&&m.push(fe)),N&&(N.dts=Ce.bundleFileInfo)}Le.dispose()}function ue(Y){if(Ll(Y)){Y.expression.kind===80&&e.collectLinkedAliases(Y.expression,!0);return}else if(Ju(Y)){e.collectLinkedAliases(Y.propertyName||Y.name,!0);return}Ho(Y,ue)}function G(Y,oe,fe,Ne,me){let ie=fe.transformed[0],ve=ie.kind===313?ie:void 0,Le=ie.kind===312?ie:void 0,He=ve?ve.sourceFiles:[Le],Ee;ne(me,ie)&&(Ee=dle(t,rc(Mu(Y)),he(me),ye(me,Y,Le),me)),ve?Ne.writeBundle(ve,I,Ee):Ne.writeFile(Le,I,Ee);let Ce;if(Ee){g&&g.push({inputSourceFileNames:Ee.getSources(),sourceMap:Ee.toJSON()});let Fe=$(me,Ee,Y,oe,Le);if(Fe&&(I.isAtStartOfLine()||I.rawWrite(T),Ce=I.getTextPos(),I.writeComment(`//# sourceMappingURL=${Fe}`)),oe){let At=Ee.toString();FC(t,b,oe,At,!1,He),Ne.bundleFileInfo&&(Ne.bundleFileInfo.mapHash=YS(At,t))}}else I.writeLine();let Me=I.getText();FC(t,b,Y,Me,!!p.emitBOM,He,{sourceMapUrlPos:Ce,diagnostics:fe.diagnostics}),Ne.bundleFileInfo&&(Ne.bundleFileInfo.hash=YS(Me,t)),I.clear()}function ne(Y,oe){return(Y.sourceMap||Y.inlineSourceMap)&&(oe.kind!==312||!Tl(oe.fileName,".json"))}function he(Y){let oe=Mu(Y.sourceRoot||"");return oe&&zc(oe)}function ye(Y,oe,fe){if(Y.sourceRoot)return t.getCommonSourceDirectory();if(Y.mapRoot){let Ne=Mu(Y.mapRoot);return fe&&(Ne=li(S3(fe.fileName,t,Ne))),dh(Ne)===0&&(Ne=Zr(t.getCommonSourceDirectory(),Ne)),Ne}return li(va(oe))}function $(Y,oe,fe,Ne,me){if(Y.inlineSourceMap){let ve=oe.toString();return`data:application/json;base64,${doe(gu,ve)}`}let ie=rc(Mu(C.checkDefined(Ne)));if(Y.mapRoot){let ve=Mu(Y.mapRoot);return me&&(ve=li(S3(me.fileName,t,ve))),dh(ve)===0?(ve=Zr(t.getCommonSourceDirectory(),ve),encodeURI(SA(li(va(fe)),Zr(ve,ie),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Zr(ve,ie))}return encodeURI(ie)}}function Mw(e,t){return{bundle:t,program:e,version:Te}}function tce(e){return JSON.stringify(e)}function cF(e,t){return pU(e,t)}function bje(e,t,r){var i;let o=C.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&g1(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,u)=>{let p=s?.get(u),g=p?.directives.map(T=>{let I=dt(k.createStringLiteral(T.expression.text),T.expression),R=dt(k.createExpressionStatement(I),T);return qa(I,R),R}),m=k.createToken(1),b=k.createSourceFile(g??[],m,0);return b.fileName=bm(r.getCurrentDirectory(),bo(l,t),!r.useCaseSensitiveFileNames()),b.text=p?.text??"",rN(b,0,p?.text.length??0),NR(b.statements,b),rN(m,b.end,0),qa(m,b),b})}function nce(e,t,r,i){var o,s;(o=lr)==null||o.push(lr.Phase.Emit,"emitUsingBuildInfo",{},!0),nl("beforeEmit");let l=Eje(e,t,r,i);return nl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),(s=lr)==null||s.pop(),l}function Eje(e,t,r,i){let{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:u,declarationMapPath:p}=XN(e.options,!1),g=t.getBuildInfo(o,e.options.configFilePath);if(!g||!g.bundle||!g.bundle.js||u&&!g.bundle.dts)return o;let m=t.readFile(C.checkDefined(s));if(!m||YS(m,t)!==g.bundle.js.hash)return s;let b=l&&t.readFile(l);if(l&&!b||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&YS(b,t)!==g.bundle.js.mapHash)return l;let T=u&&t.readFile(u);if(u&&!T||u&&YS(T,t)!==g.bundle.dts.hash)return u;let I=p&&t.readFile(p);if(p&&!I||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&YS(I,t)!==g.bundle.dts.mapHash)return p;let R=li(bo(o,t.getCurrentDirectory())),M=iH(s,m,l,b,u,T,p,I,o,g,!0),N=[],O=wJ(e.projectReferences,r,ue=>t.readFile(ue),t),H=bje(g.bundle,R,t),K,Z,V={getPrependNodes:Ed(()=>[...O,M]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>bo(g.bundle.commonSourceDirectory,R),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:Xb,getSourceFileByPath:Xb,getSourceFiles:()=>H,getLibFileFromReference:Ko,isSourceFileFromExternalLibrary:Km,getResolvedProjectReferenceToRedirect:Xb,getProjectReferenceRedirect:Xb,isSourceOfProjectReferenceRedirect:Km,writeFile:(ue,G,ne,he,ye,$)=>{switch(ue){case s:if(m===G)return;break;case l:if(b===G)return;break;case o:break;case u:if(T===G)return;K=G,Z=$;break;case p:if(I===G)return;break;default:C.fail(`Unexpected path: ${ue}`)}N.push({name:ue,text:G,writeByteOrderMark:ne,data:$})},isEmitBlocked:Km,readFile:ue=>t.readFile(ue),fileExists:ue=>t.fileExists(ue),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ue=>{let G=g.program;G&&K!==void 0&&e.options.composite&&(G.outSignature=YS(K,t,Z));let{js:ne,dts:he,sourceFiles:ye}=g.bundle;return ue.js.sources=ne.sources,he&&(ue.dts.sources=he.sources),ue.sourceFiles=ye,Mw(G,ue)},getSourceFileFromReference:Xb,redirectTargetsMap:Xp(),getFileIncludeReasons:Ko,createHash:oa(t,t.createHash)};return lF(uF,V,void 0,sJ(e.options,i)),N}function x0(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Nw,isEmitNotificationEnabled:o,substituteNode:s=JN,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:g,onBeforeEmitToken:m,onAfterEmitToken:b}=t,T=!!e.extendedDiagnostics,I=!!e.omitBraceSourceMapPositions,R=Gv(e),M=ku(e),N=new Map,O,H,K,Z,V,ue,G,ne,he,ye,$,Y,oe,fe,Ne,me=e.preserveSourceNewlines,ie,ve,Le,He=yT,Ee,Ce=e.writeBundleFileInfo?{sections:[]}:void 0,Me=Ce?C.checkDefined(e.relativeToBuildInfo):void 0,Fe=e.recordInternalSection,At=0,Se="text",je=!0,at,Bt,yt=-1,Qe,gt=-1,nn=-1,rn=-1,Nn=-1,Xn,_n,Qt=!1,Yt=!!e.removeComments,vi,ho,{enter:ki,exit:Ro}=u1e(T,"commentTime","beforeComment","afterComment"),nr=k.parenthesizer,qr={select:D=>D===0?nr.parenthesizeLeadingTypeArgument:void 0},xr=Yg();return ot(),{printNode:ln,printList:tt,printFile:Rn,printBundle:zt,writeNode:bi,writeList:ro,writeFile:ft,writeBundle:Ue,bundleFileInfo:Ce};function ln(D,se,_t){switch(D){case 0:C.assert(no(se),"Expected a SourceFile node.");break;case 2:C.assert(Ve(se),"Expected an Identifier node.");break;case 1:C.assert(bt(se),"Expected an Expression node.");break}switch(se.kind){case 312:return Rn(se);case 313:return zt(se);case 314:return ui(se)}return bi(D,se,_t,Nt()),le()}function tt(D,se,_t){return ro(D,se,_t,Nt()),le()}function zt(D){return Ue(D,Nt(),void 0),le()}function Rn(D){return ft(D,Nt(),void 0),le()}function ui(D){return mt(D,Nt()),le()}function bi(D,se,_t,an){let Fr=ve;j(an,void 0),We(D,se,_t),ot(),ve=Fr}function ro(D,se,_t,an){let Fr=ve;j(an,void 0),_t&&pt(_t),$s(void 0,se,D),ot(),ve=Fr}function No(){return ve.getTextPosWithWriteLine?ve.getTextPosWithWriteLine():ve.getTextPos()}function _a(D,se,_t){let an=Zs(Ce.sections);an&&an.kind===_t?an.end=se:Ce.sections.push({pos:D,end:se,kind:_t})}function ja(D){if(Fe&&Ce&&O&&(qu(D)||Ml(D))&&rj(D,O)&&Se!=="internal"){let se=Se;return wn(ve.getTextPos()),At=No(),Se="internal",se}}function En(D){D&&(wn(ve.getTextPos()),At=No(),Se=D)}function wn(D){return AtC.assert(boe(ya))),Ce.sections.push({pos:wi,end:ve.getTextPos(),kind:"prepend",data:Me(Fr.fileName),texts:oo}))}}At=No();for(let Fr of D.sourceFiles)We(0,Fr,Fr);if(Ce&&D.sourceFiles.length){let Fr=ve.getTextPos();if(wn(Fr)){let wi=kP(D);wi&&(Ce.sources||(Ce.sources={}),Ce.sources.prologues=wi);let Ei=Pt(D);Ei&&(Ce.sources||(Ce.sources={}),Ce.sources.helpers=Ei)}}ot(),ve=an}function mt(D,se){let _t=ve;j(se,void 0),We(4,D,void 0),ot(),ve=_t}function ft(D,se,_t){Ee=!0;let an=ve;j(se,_t),mb(D),nv(D),We(0,D,D),ot(),ve=an}function Nt(){return Le||(Le=ik(R))}function le(){let D=Le.getText();return Le.clear(),D}function We(D,se,_t){_t&&pt(_t),q(D,se,void 0)}function pt(D){O=D,Xn=void 0,_n=void 0,D&&sv(D)}function j(D,se){D&&e.omitTrailingSemicolon&&(D=eU(D)),ve=D,at=se,je=!ve||!at}function ot(){H=[],K=[],Z=[],V=new Set,ue=[],G=new Map,ne=[],he=0,ye=[],$=0,Y=[],oe=void 0,fe=[],Ne=void 0,O=void 0,Xn=void 0,_n=void 0,j(void 0,void 0)}function xt(){return Xn||(Xn=Mg(C.checkDefined(O)))}function Ye(D,se){if(D===void 0)return;let _t=ja(D);q(4,D,se),En(_t)}function ht(D){D!==void 0&&q(2,D,void 0)}function Vt(D,se){D!==void 0&&q(1,D,se)}function yn(D){q(Na(D)?6:4,D)}function fn(D){me&&Tm(D)&4&&(me=!1)}function mn(D){me=D}function q(D,se,_t){ho=_t,w(0,D,se)(D,se),ho=void 0}function Oe(D){return!Yt&&!no(D)}function Lt(D){return!je&&!no(D)&&!i3(D)&&!BS(D)&&!Fae(D)}function w(D,se,_t){switch(D){case 0:if(i!==Nw&&(!o||o(_t)))return J;case 1:if(s!==JN&&(vi=s(se,_t)||_t)!==_t)return ho&&(vi=ho(vi)),Dt;case 2:if(Oe(_t))return rD;case 3:if(Lt(_t))return K0;case 4:return pe;default:return C.assertNever(D)}}function ae(D,se,_t){return w(D+1,se,_t)}function J(D,se){let _t=ae(0,D,se);i(D,se,_t)}function pe(D,se){if(l?.(se),me){let _t=me;fn(se),Ge(D,se),mn(_t)}else Ge(D,se);u?.(se),ho=void 0}function Ge(D,se,_t=!0){if(_t){let an=sH(se);if(an)return Eo(D,se,an)}if(D===0)return ZI(aa(se,no));if(D===2)return Kr(aa(se,Ve));if(D===6)return Gn(aa(se,Na),!0);if(D===3)return ke(aa(se,_l));if(D===7)return qI(aa(se,cI));if(D===5)return C.assertNode(se,EH),so(!0);if(D===4){switch(se.kind){case 16:case 17:case 18:return Gn(se,!1);case 80:return Kr(se);case 81:return Po(se);case 166:return Dn(se);case 167:return Yl(se);case 168:return Fo(se);case 169:return ds(se);case 170:return Gs(se);case 171:return hl(se);case 172:return uu(se);case 173:return yo(se);case 174:return pa(se);case 175:return du(se);case 176:return Is(se);case 177:case 178:return Pa(se);case 179:return fl(se);case 180:return Mf(se);case 181:return sc(se);case 182:return Wo(se);case 183:return on(se);case 184:return Vs(se);case 185:return Ic(se);case 186:return de(se);case 187:return ee(se);case 188:return we(se);case 189:return pn(se);case 190:return gr(se);case 192:return jr(se);case 193:return Ni(se);case 194:return Lr(se);case 195:return $o(se);case 196:return El(se);case 233:return Wt(se);case 197:return Uc();case 198:return js(se);case 199:return gc(se);case 200:return Ts(se);case 201:return Hc(se);case 202:return Tr(se);case 203:return ip(se);case 204:return Rl(se);case 205:return Oc(se);case 206:return lm(se);case 207:return md(se);case 208:return Pe(se);case 239:return Ht(se);case 240:return ll();case 241:return rr(se);case 243:return $r(se);case 242:return so(!1);case 244:return Oa(se);case 245:return Fa(se);case 246:return fu(se);case 247:return xc(se);case 248:return Ip(se);case 249:return Vd(se);case 250:return cb(se);case 251:return Lm(se);case 252:return km(se);case 253:return _E(se);case 254:return uf(se);case 255:return U_(se);case 256:return df(se);case 257:return Qg(se);case 258:return ze(se);case 259:return Ze(se);case 260:return kt(se);case 261:return Ut(se);case 262:return gn(se);case 263:return Zo(se);case 264:return Qu(se);case 265:return mu(se);case 266:return Zg(se);case 267:return w0(se);case 268:return VI(se);case 269:return O0(se);case 270:return KI(se);case 271:return j2(se);case 272:return H2(se);case 273:return lT(se);case 274:return hE(se);case 280:return gE(se);case 275:return jI(se);case 276:return q2(se);case 277:return UI(se);case 278:return HI(se);case 279:return vE(se);case 281:return ub(se);case 300:return JI(se);case 301:return cT(se);case 282:return;case 283:return F0(se);case 12:return ev(se);case 286:case 289:return W0(se);case 287:case 290:return Ch(se);case 291:return jd(se);case 292:return kf(se);case 293:return xp(se);case 294:return K2(se);case 295:return XI(se);case 296:return z0(se);case 297:return YI(se);case 298:return oy(se);case 299:return $I(se);case 303:return o_(se);case 304:return pT(se);case 305:return qe(se);case 306:return a_(se);case 307:return Di(se);case 314:case 308:return yi(se);case 309:case 310:return or(se);case 311:return Vr(se);case 312:return ZI(se);case 313:return C.fail("Bundles should be printed using printBundle");case 315:return C.fail("InputFiles should not be printed");case 316:return tv(se);case 317:return fb(se);case 319:return vr("*");case 320:return vr("?");case 321:return pu(se);case 322:return Tp(se);case 323:return Ms(se);case 324:return nu(se);case 191:case 325:return St(se);case 326:return;case 327:return _u(se);case 329:return mT(se);case 330:return G0(se);case 334:case 339:case 344:return fT(se);case 335:case 336:return ay(se);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Xa(se);case 346:return s_(se);case 348:case 355:return _T(se);case 347:case 349:case 350:case 351:case 356:case 357:return B0(se);case 352:return sy(se);case 353:return MP(se);case 354:return QI(se);case 359:return}if(bt(se)&&(D=1,s!==JN)){let an=s(D,se)||se;an!==se&&(se=an,ho&&(se=ho(se)))}}if(D===1)switch(se.kind){case 9:case 10:return On(se);case 11:case 14:case 15:return Gn(se,!1);case 80:return Kr(se);case 81:return Po(se);case 209:return wt(se);case 210:return qn(se);case 211:return So(se);case 212:return na(se);case 213:return $l(se);case 214:return vc(se);case 215:return cl(se);case 216:return gl(se);case 217:return Bl(se);case 218:return Ql(se);case 219:return qc(se);case 220:return Bd(se);case 221:return Dd(se);case 222:return Lf(se);case 223:return j_(se);case 224:return Dh(se);case 225:return zu(se);case 226:return xr(se);case 227:return Ap(se);case 228:return fg(se);case 229:return Gd(se);case 230:return te(se);case 231:return lt(se);case 232:return;case 234:return jt(se);case 235:return W(se);case 233:return Wt(se);case 238:return Ae(se);case 236:return st(se);case 237:return C.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return ns(se);case 285:return uT(se);case 288:return J2(se);case 358:return C.fail("SyntaxList should not be printed");case 359:return;case 360:return ti(se);case 361:return Nh(se);case 362:return C.fail("SyntheticReferenceExpression should not be printed")}if(Fd(se.kind))return TE(se,io);if(UV(se.kind))return TE(se,vr);C.fail(`Unhandled SyntaxKind: ${C.formatSyntaxKind(se.kind)}.`)}function ke(D){Ye(D.name),dr(),io("in"),dr(),Ye(D.constraint)}function Dt(D,se){let _t=ae(1,D,se);C.assertIsDefined(vi),se=vi,vi=void 0,_t(D,se)}function Pt(D){let se;if(M===0||e.noEmitHelpers)return;let _t=new Map;for(let an of D.sourceFiles){let Fr=Yk(an)!==void 0,wi=Tn(an);if(wi)for(let Ei of wi)!Ei.scoped&&!Fr&&!_t.get(Ei.name)&&(_t.set(Ei.name,!0),(se||(se=[])).push(Ei.name))}return se}function Kt(D){let se=!1,_t=D.kind===313?D:void 0;if(_t&&M===0)return;let an=_t?_t.prepends.length:0,Fr=_t?_t.sourceFiles.length+an:1;for(let wi=0;wi"),dr(),Ye(D.type),ap(D)}function nu(D){io("function"),ly(D,D.parameters),vr(":"),Ye(D.type)}function pu(D){vr("?"),Ye(D.type)}function Tp(D){vr("!"),Ye(D.type)}function Ms(D){Ye(D.type),vr("=")}function Ic(D){Au(D),_g(D,D.modifiers),io("new"),dr(),H_(D,D.typeParameters),ly(D,D.parameters),dr(),vr("=>"),dr(),Ye(D.type),ap(D)}function de(D){io("typeof"),dr(),Ye(D.exprName),gg(D,D.typeArguments)}function ee(D){wf(0,void 0),vr("{");let se=Va(D)&1?768:32897;$s(D,D.members,se|524288),vr("}"),yb()}function we(D){Ye(D.elementType,nr.parenthesizeNonArrayTypeOfPostfixType),vr("["),vr("]")}function St(D){vr("..."),Ye(D.type)}function pn(D){Ji(23,D.pos,vr,D);let se=Va(D)&1?528:657;$s(D,D.elements,se|524288,nr.parenthesizeElementTypeOfTupleType),Ji(24,D.elements.end,vr,D)}function Tr(D){Ye(D.dotDotDotToken),Ye(D.name),Ye(D.questionToken),Ji(59,D.name.end,vr,D),dr(),Ye(D.type)}function gr(D){Ye(D.type,nr.parenthesizeTypeOfOptionalType),vr("?")}function jr(D){$s(D,D.types,516,nr.parenthesizeConstituentTypeOfUnionType)}function Ni(D){$s(D,D.types,520,nr.parenthesizeConstituentTypeOfIntersectionType)}function Lr(D){Ye(D.checkType,nr.parenthesizeCheckTypeOfConditionalType),dr(),io("extends"),dr(),Ye(D.extendsType,nr.parenthesizeExtendsTypeOfConditionalType),dr(),vr("?"),dr(),Ye(D.trueType),dr(),vr(":"),dr(),Ye(D.falseType)}function $o(D){io("infer"),dr(),Ye(D.typeParameter)}function El(D){vr("("),Ye(D.type),vr(")")}function Uc(){io("this")}function js(D){gb(D.operator,io),dr();let se=D.operator===148?nr.parenthesizeOperandOfReadonlyTypeOperator:nr.parenthesizeOperandOfTypeOperator;Ye(D.type,se)}function gc(D){Ye(D.objectType,nr.parenthesizeNonArrayTypeOfPostfixType),vr("["),Ye(D.indexType),vr("]")}function Ts(D){let se=Va(D);vr("{"),se&1?dr():(Jc(),Ph()),D.readonlyToken&&(Ye(D.readonlyToken),D.readonlyToken.kind!==148&&io("readonly"),dr()),vr("["),q(3,D.typeParameter),D.nameType&&(dr(),io("as"),dr(),Ye(D.nameType)),vr("]"),D.questionToken&&(Ye(D.questionToken),D.questionToken.kind!==58&&vr("?")),vr(":"),dr(),Ye(D.type),ru(),se&1?dr():(Jc(),Wm()),$s(D,D.members,2),vr("}")}function Hc(D){Vt(D.literal)}function ip(D){Ye(D.head),$s(D,D.templateSpans,262144)}function Oc(D){D.isTypeOf&&(io("typeof"),dr()),io("import"),vr("("),Ye(D.argument),D.attributes&&(vr(","),dr(),q(7,D.attributes)),vr(")"),D.qualifier&&(vr("."),Ye(D.qualifier)),gg(D,D.typeArguments)}function lm(D){vr("{"),$s(D,D.elements,525136),vr("}")}function md(D){vr("["),$s(D,D.elements,524880),vr("]")}function Pe(D){Ye(D.dotDotDotToken),D.propertyName&&(Ye(D.propertyName),vr(":"),dr()),Ye(D.name),_b(D.initializer,D.name.end,D,nr.parenthesizeExpressionForDisallowedComma)}function wt(D){let se=D.elements,_t=D.multiLine?65536:0;EE(D,se,8914|_t,nr.parenthesizeExpressionForDisallowedComma)}function qn(D){wf(0,void 0),Ke(D.properties,nx);let se=Va(D)&131072;se&&Ph();let _t=D.multiLine?65536:0,an=O&&O.languageVersion>=1&&!$f(O)?64:0;$s(D,D.properties,526226|an|_t),se&&Wm(),yb()}function So(D){Vt(D.expression,nr.parenthesizeLeftSideOfAccess);let se=D.questionDotToken||gh(k.createToken(25),D.expression.end,D.name.pos),_t=jp(D,D.expression,se),an=jp(D,se,D.name);zm(_t,!1),se.kind!==29&&Qo(D.expression)&&!ve.hasTrailingComment()&&!ve.hasTrailingWhitespace()&&vr("."),D.questionDotToken?Ye(se):Ji(se.kind,D.expression.end,vr,D),zm(an,!1),Ye(D.name),j0(_t,an)}function Qo(D){if(D=Sm(D),hp(D)){let se=AT(D,!0,!1);return!(D.numericLiteralFlags&448)&&!se.includes(ma(25))&&!se.includes("E")&&!se.includes("e")}else if(ks(D)){let se=dae(D);return typeof se=="number"&&isFinite(se)&&se>=0&&Math.floor(se)===se}}function na(D){Vt(D.expression,nr.parenthesizeLeftSideOfAccess),Ye(D.questionDotToken),Ji(23,D.expression.end,vr,D),Vt(D.argumentExpression),Ji(24,D.argumentExpression.end,vr,D)}function $l(D){let se=Tm(D)&16;se&&(vr("("),hb("0"),vr(","),dr()),Vt(D.expression,nr.parenthesizeLeftSideOfAccess),se&&vr(")"),Ye(D.questionDotToken),gg(D,D.typeArguments),EE(D,D.arguments,2576,nr.parenthesizeExpressionForDisallowedComma)}function vc(D){Ji(105,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeExpressionOfNew),gg(D,D.typeArguments),EE(D,D.arguments,18960,nr.parenthesizeExpressionForDisallowedComma)}function cl(D){let se=Tm(D)&16;se&&(vr("("),hb("0"),vr(","),dr()),Vt(D.tag,nr.parenthesizeLeftSideOfAccess),se&&vr(")"),gg(D,D.typeArguments),dr(),Vt(D.template)}function gl(D){vr("<"),Ye(D.type),vr(">"),Vt(D.expression,nr.parenthesizeOperandOfPrefixUnary)}function Bl(D){let se=Ji(21,D.pos,vr,D),_t=eD(D.expression,D);Vt(D.expression,void 0),AE(D.expression,D),j0(_t),Ji(22,D.expression?D.expression.end:se,vr,D)}function Ql(D){Up(D.name),Yn(D)}function qc(D){_g(D,D.modifiers),hn(D,cf)}function cf(D){H_(D,D.typeParameters),$2(D,D.parameters),dm(D.type),dr(),Ye(D.equalsGreaterThanToken)}function Bd(D){Ji(91,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeOperandOfPrefixUnary)}function Dd(D){Ji(114,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeOperandOfPrefixUnary)}function Lf(D){Ji(116,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeOperandOfPrefixUnary)}function j_(D){Ji(135,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeOperandOfPrefixUnary)}function Dh(D){gb(D.operator,pf),Xg(D)&&dr(),Vt(D.operand,nr.parenthesizeOperandOfPrefixUnary)}function Xg(D){let se=D.operand;return se.kind===224&&(D.operator===40&&(se.operator===40||se.operator===46)||D.operator===41&&(se.operator===41||se.operator===47))}function zu(D){Vt(D.operand,nr.parenthesizeOperandOfPostfixUnary),gb(D.operator,pf)}function Yg(){return m5(D,se,_t,an,Fr,void 0);function D(Ei,oo){if(oo){oo.stackIndex++,oo.preserveSourceNewlinesStack[oo.stackIndex]=me,oo.containerPosStack[oo.stackIndex]=nn,oo.containerEndStack[oo.stackIndex]=rn,oo.declarationListContainerEndStack[oo.stackIndex]=Nn;let ya=oo.shouldEmitCommentsStack[oo.stackIndex]=Oe(Ei),Zu=oo.shouldEmitSourceMapsStack[oo.stackIndex]=Lt(Ei);l?.(Ei),ya&&DT(Ei),Zu&&sx(Ei),fn(Ei)}else oo={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return oo}function se(Ei,oo,ya){return wi(Ei,ya,"left")}function _t(Ei,oo,ya){let Zu=Ei.kind!==28,Nd=jp(ya,ya.left,Ei),Ff=jp(ya,Ei,ya.right);zm(Nd,Zu),yg(Ei.pos),TE(Ei,Ei.kind===103?io:pf),Bm(Ei.end,!0),zm(Ff,!0)}function an(Ei,oo,ya){return wi(Ei,ya,"right")}function Fr(Ei,oo){let ya=jp(Ei,Ei.left,Ei.operatorToken),Zu=jp(Ei,Ei.operatorToken,Ei.right);if(j0(ya,Zu),oo.stackIndex>0){let Nd=oo.preserveSourceNewlinesStack[oo.stackIndex],Ff=oo.containerPosStack[oo.stackIndex],Tb=oo.containerEndStack[oo.stackIndex],Ai=oo.declarationListContainerEndStack[oo.stackIndex],kh=oo.shouldEmitCommentsStack[oo.stackIndex],jn=oo.shouldEmitSourceMapsStack[oo.stackIndex];mn(Nd),jn&&PT(Ei),kh&&iD(Ei,Ff,Tb,Ai),u?.(Ei),oo.stackIndex--}}function wi(Ei,oo,ya){let Zu=ya==="left"?nr.getParenthesizeLeftSideOfBinaryForOperator(oo.operatorToken.kind):nr.getParenthesizeRightSideOfBinaryForOperator(oo.operatorToken.kind),Nd=w(0,1,Ei);if(Nd===Dt&&(C.assertIsDefined(vi),Ei=Zu(aa(vi,bt)),Nd=ae(1,1,Ei),vi=void 0),(Nd===rD||Nd===K0||Nd===pe)&&_r(Ei))return Ei;ho=Zu,Nd(1,Ei)}}function Ap(D){let se=jp(D,D.condition,D.questionToken),_t=jp(D,D.questionToken,D.whenTrue),an=jp(D,D.whenTrue,D.colonToken),Fr=jp(D,D.colonToken,D.whenFalse);Vt(D.condition,nr.parenthesizeConditionOfConditionalExpression),zm(se,!0),Ye(D.questionToken),zm(_t,!0),Vt(D.whenTrue,nr.parenthesizeBranchOfConditionalExpression),j0(se,_t),zm(an,!0),Ye(D.colonToken),zm(Fr,!0),Vt(D.whenFalse,nr.parenthesizeBranchOfConditionalExpression),j0(an,Fr)}function fg(D){Ye(D.head),$s(D,D.templateSpans,262144)}function Gd(D){Ji(127,D.pos,io,D),Ye(D.asteriskToken),bE(D.expression&&wm(D.expression),mE)}function te(D){Ji(26,D.pos,vr,D),Vt(D.expression,nr.parenthesizeExpressionForDisallowedComma)}function lt(D){Up(D.name),Ka(D)}function Wt(D){Vt(D.expression,nr.parenthesizeLeftSideOfAccess),gg(D,D.typeArguments)}function jt(D){Vt(D.expression,void 0),D.type&&(dr(),io("as"),dr(),Ye(D.type))}function W(D){Vt(D.expression,nr.parenthesizeLeftSideOfAccess),pf("!")}function Ae(D){Vt(D.expression,void 0),D.type&&(dr(),io("satisfies"),dr(),Ye(D.type))}function st(D){SE(D.keywordToken,D.pos,vr),vr("."),Ye(D.name)}function Ht(D){Vt(D.expression),Ye(D.literal)}function rr(D){si(D,!D.multiLine&&TT(D))}function si(D,se){Ji(19,D.pos,vr,D);let _t=se||Va(D)&1?768:129;$s(D,D.statements,_t),Ji(20,D.statements.end,vr,D,!!(_t&1))}function $r(D){Vp(D,D.modifiers,!1),Ye(D.declarationList),ru()}function so(D){D?vr(";"):ru()}function Oa(D){Vt(D.expression,nr.parenthesizeExpressionOfExpressionStatement),(!O||!$f(O)||Xs(D.expression))&&ru()}function Fa(D){let se=Ji(101,D.pos,io,D);dr(),Ji(21,se,vr,D),Vt(D.expression),Ji(22,D.expression.end,vr,D),hg(D,D.thenStatement),D.elseStatement&&(iv(D,D.thenStatement,D.elseStatement),Ji(93,D.thenStatement.end,io,D),D.elseStatement.kind===245?(dr(),Ye(D.elseStatement)):hg(D,D.elseStatement))}function wl(D,se){let _t=Ji(117,se,io,D);dr(),Ji(21,_t,vr,D),Vt(D.expression),Ji(22,D.expression.end,vr,D)}function fu(D){Ji(92,D.pos,io,D),hg(D,D.statement),Xo(D.statement)&&!me?dr():iv(D,D.statement,D.expression),wl(D,D.statement.end),ru()}function xc(D){wl(D,D.pos),hg(D,D.statement)}function Ip(D){let se=Ji(99,D.pos,io,D);dr();let _t=Ji(21,se,vr,D);ps(D.initializer),_t=Ji(27,D.initializer?D.initializer.end:_t,vr,D),bE(D.condition),_t=Ji(27,D.condition?D.condition.end:_t,vr,D),bE(D.incrementor),Ji(22,D.incrementor?D.incrementor.end:_t,vr,D),hg(D,D.statement)}function Vd(D){let se=Ji(99,D.pos,io,D);dr(),Ji(21,se,vr,D),ps(D.initializer),dr(),Ji(103,D.initializer.end,io,D),dr(),Vt(D.expression),Ji(22,D.expression.end,vr,D),hg(D,D.statement)}function cb(D){let se=Ji(99,D.pos,io,D);dr(),hT(D.awaitModifier),Ji(21,se,vr,D),ps(D.initializer),dr(),Ji(165,D.initializer.end,io,D),dr(),Vt(D.expression),Ji(22,D.expression.end,vr,D),hg(D,D.statement)}function ps(D){D!==void 0&&(D.kind===261?Ye(D):Vt(D))}function Lm(D){Ji(88,D.pos,io,D),rv(D.label),ru()}function km(D){Ji(83,D.pos,io,D),rv(D.label),ru()}function Ji(D,se,_t,an,Fr){let wi=Lo(an),Ei=wi&&wi.kind===an.kind,oo=se;if(Ei&&O&&(se=La(O.text,se)),Ei&&an.pos!==oo){let ya=Fr&&O&&!Af(oo,se,O);ya&&Ph(),yg(oo),ya&&Wm()}if(!I&&(D===19||D===20)?se=SE(D,se,_t,an):se=gb(D,_t,se),Ei&&an.end!==se){let ya=an.kind===294;Bm(se,!ya,ya)}return se}function $g(D){return D.kind===2||!!D.hasTrailingNewLine}function ry(D){if(!O)return!1;let se=Kh(O.text,D.pos);if(se){let _t=Lo(D);if(_t&&Wd(_t.parent))return!0}return Et(se,$g)||Et(kR(D),$g)?!0:e5(D)?D.pos!==D.expression.pos&&Et(Qb(O.text,D.expression.pos),$g)?!0:ry(D.expression):!1}function wm(D){if(!Yt&&e5(D)&&ry(D)){let se=Lo(D);if(se&&Wd(se)){let _t=k.createParenthesizedExpression(D.expression);return Pr(_t,D),dt(_t,se),_t}return k.createParenthesizedExpression(D)}return D}function mE(D){return wm(nr.parenthesizeExpressionForDisallowedComma(D))}function _E(D){Ji(107,D.pos,io,D),bE(D.expression&&wm(D.expression),wm),ru()}function uf(D){let se=Ji(118,D.pos,io,D);dr(),Ji(21,se,vr,D),Vt(D.expression),Ji(22,D.expression.end,vr,D),hg(D,D.statement)}function U_(D){let se=Ji(109,D.pos,io,D);dr(),Ji(21,se,vr,D),Vt(D.expression),Ji(22,D.expression.end,vr,D),dr(),Ye(D.caseBlock)}function df(D){Ye(D.label),Ji(59,D.label.end,vr,D),dr(),Ye(D.statement)}function Qg(D){Ji(111,D.pos,io,D),bE(wm(D.expression),wm),ru()}function ze(D){Ji(113,D.pos,io,D),dr(),Ye(D.tryBlock),D.catchClause&&(iv(D,D.tryBlock,D.catchClause),Ye(D.catchClause)),D.finallyBlock&&(iv(D,D.catchClause||D.tryBlock,D.finallyBlock),Ji(98,(D.catchClause||D.tryBlock).end,io,D),dr(),Ye(D.finallyBlock))}function Ze(D){SE(89,D.pos,io),ru()}function kt(D){var se,_t,an;Ye(D.name),Ye(D.exclamationToken),dm(D.type),_b(D.initializer,((se=D.type)==null?void 0:se.end)??((an=(_t=D.name.emitNode)==null?void 0:_t.typeNode)==null?void 0:an.end)??D.name.end,D,nr.parenthesizeExpressionForDisallowedComma)}function Ut(D){if(IL(D))io("await"),dr(),io("using");else{let se=U6(D)?"let":tR(D)?"const":xL(D)?"using":"var";io(se)}dr(),$s(D,D.declarations,528)}function gn(D){Yn(D)}function Yn(D){Vp(D,D.modifiers,!1),io("function"),Ye(D.asteriskToken),dr(),ht(D.name),hn(D,$n)}function hn(D,se){let _t=D.body;if(_t)if(Xo(_t)){let an=Va(D)&131072;an&&Ph(),Au(D),Ke(D.parameters,iu),iu(D.body),se(D),ur(_t),ap(D),an&&Wm()}else se(D),dr(),Vt(_t,nr.parenthesizeConciseBodyOfArrowFunction);else se(D),ru()}function $n(D){H_(D,D.typeParameters),ly(D,D.parameters),dm(D.type)}function hi(D){if(Va(D)&1)return!0;if(D.multiLine||!Xs(D)&&O&&!DS(D,O)||vg(D,Xc(D.statements),2)||tx(D,Zs(D.statements),2,D.statements))return!1;let se;for(let _t of D.statements){if(vb(se,_t,2)>0)return!1;se=_t}return!0}function ur(D){l?.(D),dr(),vr("{"),Ph();let se=hi(D)?oi:mr;Rr(D,D.statements,se),Wm(),SE(20,D.statements.end,vr,D),u?.(D)}function oi(D){mr(D,!0)}function mr(D,se){let _t=Ud(D.statements),an=ve.getTextPos();Kt(D),_t===0&&an===ve.getTextPos()&&se?(Wm(),$s(D,D.statements,768),Ph()):$s(D,D.statements,1,void 0,_t)}function Zo(D){Ka(D)}function Ka(D){wf(0,void 0),Ke(D.members,nx),Vp(D,D.modifiers,!0),Ji(86,P_(D).pos,io,D),D.name&&(dr(),ht(D.name));let se=Va(D)&131072;se&&Ph(),H_(D,D.typeParameters),$s(D,D.heritageClauses,0),dr(),vr("{"),$s(D,D.members,129),vr("}"),se&&Wm(),yb()}function Qu(D){wf(0,void 0),Vp(D,D.modifiers,!1),io("interface"),dr(),Ye(D.name),H_(D,D.typeParameters),$s(D,D.heritageClauses,512),dr(),vr("{"),$s(D,D.members,129),vr("}"),yb()}function mu(D){Vp(D,D.modifiers,!1),io("type"),dr(),Ye(D.name),H_(D,D.typeParameters),dr(),vr("="),dr(),Ye(D.type),ru()}function Zg(D){Vp(D,D.modifiers,!1),io("enum"),dr(),Ye(D.name),dr(),vr("{"),$s(D,D.members,145),vr("}")}function w0(D){Vp(D,D.modifiers,!1),~D.flags&2048&&(io(D.flags&32?"namespace":"module"),dr()),Ye(D.name);let se=D.body;if(!se)return ru();for(;se&&Jl(se);)vr("."),Ye(se.name),se=se.body;dr(),Ye(se)}function VI(D){Au(D),Ke(D.statements,iu),si(D,TT(D)),ap(D)}function O0(D){Ji(19,D.pos,vr,D),$s(D,D.clauses,129),Ji(20,D.clauses.end,vr,D,!0)}function j2(D){Vp(D,D.modifiers,!1),Ji(102,D.modifiers?D.modifiers.end:D.pos,io,D),dr(),D.isTypeOnly&&(Ji(156,D.pos,io,D),dr()),Ye(D.name),dr(),Ji(64,D.name.end,vr,D),dr(),U2(D.moduleReference),ru()}function U2(D){D.kind===80?Vt(D):Ye(D)}function H2(D){Vp(D,D.modifiers,!1),Ji(102,D.modifiers?D.modifiers.end:D.pos,io,D),dr(),D.importClause&&(Ye(D.importClause),dr(),Ji(161,D.importClause.end,io,D),dr()),Vt(D.moduleSpecifier),D.attributes&&rv(D.attributes),ru()}function lT(D){D.isTypeOnly&&(Ji(156,D.pos,io,D),dr()),Ye(D.name),D.name&&D.namedBindings&&(Ji(28,D.name.end,vr,D),dr()),Ye(D.namedBindings)}function hE(D){let se=Ji(42,D.pos,vr,D);dr(),Ji(130,se,io,D),dr(),Ye(D.name)}function jI(D){db(D)}function q2(D){mg(D)}function UI(D){let se=Ji(95,D.pos,io,D);dr(),D.isExportEquals?Ji(64,se,pf,D):Ji(90,se,io,D),dr(),Vt(D.expression,D.isExportEquals?nr.getParenthesizeRightSideOfBinaryForOperator(64):nr.parenthesizeExpressionOfExportDefault),ru()}function HI(D){Vp(D,D.modifiers,!1);let se=Ji(95,D.pos,io,D);if(dr(),D.isTypeOnly&&(se=Ji(156,se,io,D),dr()),D.exportClause?Ye(D.exportClause):se=Ji(42,se,vr,D),D.moduleSpecifier){dr();let _t=D.exportClause?D.exportClause.end:se;Ji(161,_t,io,D),dr(),Vt(D.moduleSpecifier)}D.attributes&&rv(D.attributes),ru()}function qI(D){vr("{"),dr(),io(D.token===132?"assert":"with"),vr(":"),dr();let se=D.elements;$s(D,se,526226),dr(),vr("}")}function JI(D){Ji(D.token,D.pos,io,D),dr();let se=D.elements;$s(D,se,526226)}function cT(D){Ye(D.name),vr(":"),dr();let se=D.value;if(!(Va(se)&1024)){let _t=L_(se);Bm(_t.pos)}Ye(se)}function KI(D){let se=Ji(95,D.pos,io,D);dr(),se=Ji(130,se,io,D),dr(),se=Ji(145,se,io,D),dr(),Ye(D.name),ru()}function gE(D){let se=Ji(42,D.pos,vr,D);dr(),Ji(130,se,io,D),dr(),Ye(D.name)}function vE(D){db(D)}function ub(D){mg(D)}function db(D){vr("{"),$s(D,D.elements,525136),vr("}")}function mg(D){D.isTypeOnly&&(io("type"),dr()),D.propertyName&&(Ye(D.propertyName),dr(),Ji(130,D.propertyName.end,io,D),dr()),Ye(D.name)}function F0(D){io("require"),vr("("),Vt(D.expression),vr(")")}function ns(D){Ye(D.openingElement),$s(D,D.children,262144),Ye(D.closingElement)}function uT(D){vr("<"),pb(D.tagName),gg(D,D.typeArguments),dr(),Ye(D.attributes),vr("/>")}function J2(D){Ye(D.openingFragment),$s(D,D.children,262144),Ye(D.closingFragment)}function W0(D){if(vr("<"),w_(D)){let se=eD(D.tagName,D);pb(D.tagName),gg(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&dr(),Ye(D.attributes),AE(D.attributes,D),j0(se)}vr(">")}function ev(D){ve.writeLiteral(D.text)}function Ch(D){vr("")}function kf(D){$s(D,D.properties,262656)}function jd(D){Ye(D.name),Om("=",vr,D.initializer,yn)}function xp(D){vr("{..."),Vt(D.expression),vr("}")}function op(D){let se=!1;return YM(O?.text||"",D+1,()=>se=!0),se}function iy(D){let se=!1;return XM(O?.text||"",D+1,()=>se=!0),se}function dT(D){return op(D)||iy(D)}function K2(D){var se;if(D.expression||!Yt&&!Xs(D)&&dT(D.pos)){let _t=O&&!Xs(D)&&Es(O,D.pos).line!==Es(O,D.end).line;_t&&ve.increaseIndent();let an=Ji(19,D.pos,vr,D);Ye(D.dotDotDotToken),Vt(D.expression),Ji(20,((se=D.expression)==null?void 0:se.end)||an,vr,D),_t&&ve.decreaseIndent()}}function XI(D){ht(D.namespace),vr(":"),ht(D.name)}function pb(D){D.kind===80?Vt(D):Ye(D)}function z0(D){Ji(84,D.pos,io,D),dr(),Vt(D.expression,nr.parenthesizeExpressionForDisallowedComma),yc(D,D.statements,D.expression.end)}function YI(D){let se=Ji(90,D.pos,io,D);yc(D,D.statements,se)}function yc(D,se,_t){let an=se.length===1&&(!O||Xs(D)||Xs(se[0])||M3(D,se[0],O)),Fr=163969;an?(SE(59,_t,vr,D),dr(),Fr&=-130):Ji(59,_t,vr,D),$s(D,se,Fr)}function oy(D){dr(),gb(D.token,io),dr(),$s(D,D.types,528)}function $I(D){let se=Ji(85,D.pos,io,D);dr(),D.variableDeclaration&&(Ji(21,se,vr,D),Ye(D.variableDeclaration),Ji(22,D.variableDeclaration.end,vr,D),dr()),Ye(D.block)}function o_(D){Ye(D.name),vr(":"),dr();let se=D.initializer;if(!(Va(se)&1024)){let _t=L_(se);Bm(_t.pos)}Vt(se,nr.parenthesizeExpressionForDisallowedComma)}function pT(D){Ye(D.name),D.objectAssignmentInitializer&&(dr(),vr("="),dr(),Vt(D.objectAssignmentInitializer,nr.parenthesizeExpressionForDisallowedComma))}function qe(D){D.expression&&(Ji(26,D.pos,vr,D),Vt(D.expression,nr.parenthesizeExpressionForDisallowedComma))}function a_(D){Ye(D.name),_b(D.initializer,D.name.end,D,nr.parenthesizeExpressionForDisallowedComma)}function _u(D){if(He("/**"),D.comment){let se=oL(D.comment);if(se){let _t=se.split(/\r\n?|\n/g);for(let an of _t)Jc(),dr(),vr("*"),dr(),He(an)}}D.tags&&(D.tags.length===1&&D.tags[0].kind===351&&!D.comment?(dr(),Ye(D.tags[0])):$s(D,D.tags,33)),dr(),He("*/")}function B0(D){cm(D.tagName),tv(D.typeExpression),um(D.comment)}function QI(D){cm(D.tagName),Ye(D.name),um(D.comment)}function fb(D){dr(),vr("{"),Ye(D.name),vr("}")}function ay(D){cm(D.tagName),dr(),vr("{"),Ye(D.class),vr("}"),um(D.comment)}function sy(D){cm(D.tagName),tv(D.constraint),dr(),$s(D,D.typeParameters,528),um(D.comment)}function MP(D){cm(D.tagName),D.typeExpression&&(D.typeExpression.kind===316?tv(D.typeExpression):(dr(),vr("{"),He("Object"),D.typeExpression.isArrayType&&(vr("["),vr("]")),vr("}"))),D.fullName&&(dr(),Ye(D.fullName)),um(D.comment),D.typeExpression&&D.typeExpression.kind===329&&mT(D.typeExpression)}function Xa(D){cm(D.tagName),D.name&&(dr(),Ye(D.name)),um(D.comment),G0(D.typeExpression)}function s_(D){um(D.comment),G0(D.typeExpression)}function fT(D){cm(D.tagName),um(D.comment)}function mT(D){$s(D,k.createNodeArray(D.jsDocPropertyTags),33)}function G0(D){D.typeParameters&&$s(D,k.createNodeArray(D.typeParameters),33),D.parameters&&$s(D,k.createNodeArray(D.parameters),33),D.type&&(Jc(),dr(),vr("*"),dr(),Ye(D.type))}function _T(D){cm(D.tagName),tv(D.typeExpression),dr(),D.isBracketed&&vr("["),Ye(D.name),D.isBracketed&&vr("]"),um(D.comment)}function cm(D){vr("@"),Ye(D)}function um(D){let se=oL(D);se&&(dr(),He(se))}function tv(D){D&&(dr(),vr("{"),Ye(D.type),vr("}"))}function ZI(D){Jc();let se=D.statements;if(se.length===0||!Am(se[0])||Xs(se[0])){Rr(D,se,$i);return}$i(D)}function l_(D){yE(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[]);for(let se of D.prepends)if(BS(se)&&se.syntheticReferences)for(let _t of se.syntheticReferences)Ye(_t),Jc()}function X2(D){D.isDeclarationFile&&yE(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function yE(D,se,_t,an){if(D){let Fr=ve.getTextPos();q_('/// '),Ce&&Ce.sections.push({pos:Fr,end:ve.getTextPos(),kind:"no-default-lib"}),Jc()}if(O&&O.moduleName&&(q_(`/// `),Jc()),O&&O.amdDependencies)for(let Fr of O.amdDependencies)Fr.name?q_(`/// `):q_(`/// `),Jc();for(let Fr of se){let wi=ve.getTextPos();q_(`/// `),Ce&&Ce.sections.push({pos:wi,end:ve.getTextPos(),kind:"reference",data:Fr.fileName}),Jc()}for(let Fr of _t){let wi=ve.getTextPos(),Ei=Fr.resolutionMode&&Fr.resolutionMode!==O?.impliedNodeFormat?`resolution-mode="${Fr.resolutionMode===99?"import":"require"}"`:"";q_(`/// `),Ce&&Ce.sections.push({pos:wi,end:ve.getTextPos(),kind:Fr.resolutionMode?Fr.resolutionMode===99?"type-import":"type-require":"type",data:Fr.fileName}),Jc()}for(let Fr of an){let wi=ve.getTextPos();q_(`/// `),Ce&&Ce.sections.push({pos:wi,end:ve.getTextPos(),kind:"lib",data:Fr.fileName}),Jc()}}function $i(D){let se=D.statements;Au(D),Ke(D.statements,iu),Kt(D);let _t=ri(se,an=>!Am(an));X2(D),$s(D,se,1,void 0,_t===-1?se.length:_t),ap(D)}function ti(D){let se=Va(D);!(se&1024)&&D.pos!==D.expression.pos&&Bm(D.expression.pos),Vt(D.expression),!(se&2048)&&D.end!==D.expression.end&&yg(D.expression.end)}function Nh(D){EE(D,D.elements,528,void 0)}function Ud(D,se,_t,an){let Fr=!!se;for(let wi=0;wi=_t.length||Ei===0;if(ya&&an&32768){p?.(_t),g?.(_t);return}an&15360&&(vr(Tje(an)),ya&&_t&&Bm(_t.pos,!0)),p?.(_t),ya?an&1&&!(me&&(!se||O&&DS(se,O)))?Jc():an&256&&!(an&524288)&&dr():Fm(D,se,_t,an,Fr,wi,Ei,_t.hasTrailingComma,_t),g?.(_t),an&15360&&(ya&&_t&&yg(_t.end),vr(Aje(an)))}function Fm(D,se,_t,an,Fr,wi,Ei,oo,ya){let Zu=(an&262144)===0,Nd=Zu,Ff=vg(se,_t[wi],an);Ff?(Jc(Ff),Nd=!1):an&256&&dr(),an&128&&Ph();let Tb=Dje(D,Fr),Ai,kh,jn=!1;for(let PE=0;PE0){if(an&131||(Ph(),jn=!0),Nd&&an&60&&!Qm(K_.pos)){let lD=L_(K_);Bm(lD.pos,!!(an&512),!0)}Jc(wh),Nd=!1}else Ai&&an&512&&dr()}if(kh=ja(K_),Nd){let wh=L_(K_);Bm(wh.pos)}else Nd=Zu;ie=K_.pos,Tb(K_,D,Fr,PE),jn&&(Wm(),jn=!1),Ai=K_}let lx=Ai?Va(Ai):0,Ab=Yt||!!(lx&2048),Ib=oo&&an&64&&an&16;Ib&&(Ai&&!Ab?Ji(28,Ai.end,vr,Ai):vr(",")),Ai&&(se?se.end:-1)!==Ai.end&&an&60&&!Ab&&yg(Ib&&ya?.end?ya.end:Ai.end),an&128&&Wm(),En(kh);let MT=tx(se,_t[wi+Ei-1],an,ya);MT?Jc(MT):an&2097408&&dr()}function hb(D){ve.writeLiteral(D)}function Z2(D){ve.writeStringLiteral(D)}function yT(D){ve.write(D)}function wP(D,se){ve.writeSymbol(D,se)}function vr(D){ve.writePunctuation(D)}function ru(){ve.writeTrailingSemicolon(";")}function io(D){ve.writeKeyword(D)}function pf(D){ve.writeOperator(D)}function cy(D){ve.writeParameter(D)}function q_(D){ve.writeComment(D)}function dr(){ve.writeSpace(" ")}function bT(D){ve.writeProperty(D)}function V0(D){ve.nonEscapingWrite?ve.nonEscapingWrite(D):ve.write(D)}function Jc(D=1){for(let se=0;se0)}function Ph(){ve.increaseIndent()}function Wm(){ve.decreaseIndent()}function SE(D,se,_t,an){return je?gb(D,_t,se):NE(an,D,_t,se,gb)}function TE(D,se){m&&m(D),se(ma(D.kind)),b&&b(D)}function gb(D,se,_t){let an=ma(D);return se(an),_t<0?_t:_t+an.length}function iv(D,se,_t){if(Va(D)&1)dr();else if(me){let an=jp(D,se,_t);an?Jc(an):dr()}else Jc()}function ET(D){let se=D.split(/\r\n?|\n/g),_t=Hre(se);for(let an of se){let Fr=_t?an.slice(_t):an;Fr.length&&(Jc(),He(Fr))}}function zm(D,se){D?(Ph(),Jc(D)):se&&dr()}function j0(D,se){D&&Wm(),se&&Wm()}function vg(D,se,_t){if(_t&2||me){if(_t&65536)return 1;if(se===void 0)return!D||O&&DS(D,O)?0:1;if(se.pos===ie||se.kind===12)return 0;if(O&&D&&!Qm(D.pos)&&!Xs(se)&&(!se.parent||Nl(se.parent)===Nl(D)))return me?U0(an=>hoe(se.pos,D.pos,O,an)):M3(D,se,O)?0:1;if(ST(se,_t))return 1}return _t&1?1:0}function vb(D,se,_t){if(_t&2||me){if(D===void 0||se===void 0||se.kind===12)return 0;if(O&&!Xs(D)&&!Xs(se))return me&&Cd(D,se)?U0(an=>mU(D,se,O,an)):!me&&ff(D,se)?ck(D,se,O)?0:1:_t&65536?1:0;if(ST(D,_t)||ST(se,_t))return 1}else if(fN(se))return 1;return _t&1?1:0}function tx(D,se,_t,an){if(_t&2||me){if(_t&65536)return 1;if(se===void 0)return!D||O&&DS(D,O)?0:1;if(O&&D&&!Qm(D.pos)&&!Xs(se)&&(!se.parent||se.parent===D)){if(me){let Fr=an&&!Qm(an.end)?an.end:se.end;return U0(wi=>goe(Fr,D.end,O,wi))}return foe(D,se,O)?0:1}if(ST(se,_t))return 1}return _t&1&&!(_t&131072)?1:0}function U0(D){C.assert(!!me);let se=D(!0);return se===0?D(!1):se}function eD(D,se){let _t=me&&vg(se,D,0);return _t&&zm(_t,!1),!!_t}function AE(D,se){let _t=me&&tx(se,D,0,void 0);_t&&Jc(_t)}function ST(D,se){if(Xs(D)){let _t=fN(D);return _t===void 0?(se&65536)!==0:_t}return(se&65536)!==0}function jp(D,se,_t){return Va(D)&262144?0:(D=Gl(D),se=Gl(se),_t=Gl(_t),fN(_t)?1:O&&!Xs(D)&&!Xs(se)&&!Xs(_t)?me?U0(an=>mU(se,_t,O,an)):ck(se,_t,O)?0:1:0)}function TT(D){return D.statements.length===0&&(!O||ck(D,D,O))}function Gl(D){for(;D.kind===217&&Xs(D);)D=D.expression;return D}function Fc(D,se){if(ol(D)||cS(D))return IT(D);if(Na(D)&&D.textSourceNode)return Fc(D.textSourceNode,se);let _t=O,an=!!_t&&!!D.parent&&!Xs(D);if(Yh(D)){if(!an||Vn(D)!==Nl(_t))return Sr(D)}else if(e_(D)){if(!an||Vn(D)!==Nl(_t))return cN(D)}else if(C.assertNode(D,S1),!an)return D.text;return A1(_t,D,se)}function AT(D,se,_t){if(D.kind===11&&D.textSourceNode){let Fr=D.textSourceNode;if(Ve(Fr)||Xi(Fr)||hp(Fr)||e_(Fr)){let wi=hp(Fr)?Fr.text:Fc(Fr);return _t?`"${Zj(wi)}"`:se||Va(D)&16777216?`"${rg(wi)}"`:`"${rk(wi)}"`}else return AT(Fr,se,_t)}let an=(se?1:0)|(_t?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return nie(D,O,an)}function Au(D){D&&Va(D)&1048576||(ye.push($),$=0,ue.push(G),G=void 0,Y.push(oe))}function ap(D){D&&Va(D)&1048576||($=ye.pop(),G=ue.pop(),oe=Y.pop())}function H0(D){(!oe||oe===Zs(Y))&&(oe=new Set),oe.add(D)}function wf(D,se){ne.push(he),he=D,fe.push(oe),Ne=se}function yb(){he=ne.pop(),Ne=fe.pop()}function bb(D){(!Ne||Ne===Zs(fe))&&(Ne=new Set),Ne.add(D)}function iu(D){if(D)switch(D.kind){case 241:Ke(D.statements,iu);break;case 256:case 254:case 246:case 247:iu(D.statement);break;case 245:iu(D.thenStatement),iu(D.elseStatement);break;case 248:case 250:case 249:iu(D.initializer),iu(D.statement);break;case 255:iu(D.caseBlock);break;case 269:Ke(D.clauses,iu);break;case 296:case 297:Ke(D.statements,iu);break;case 258:iu(D.tryBlock),iu(D.catchClause),iu(D.finallyBlock);break;case 299:iu(D.variableDeclaration),iu(D.block);break;case 243:iu(D.declarationList);break;case 261:Ke(D.declarations,iu);break;case 260:case 169:case 208:case 263:Up(D.name);break;case 262:Up(D.name),Va(D)&1048576&&(Ke(D.parameters,iu),iu(D.body));break;case 206:case 207:Ke(D.elements,iu);break;case 272:iu(D.importClause);break;case 273:Up(D.name),iu(D.namedBindings);break;case 274:Up(D.name);break;case 280:Up(D.name);break;case 275:Ke(D.elements,iu);break;case 276:Up(D.propertyName||D.name);break}}function nx(D){if(D)switch(D.kind){case 303:case 304:case 172:case 174:case 177:case 178:Up(D.name);break}}function Up(D){D&&(ol(D)||cS(D)?IT(D):ta(D)&&iu(D))}function IT(D){let se=D.emitNode.autoGenerate;if((se.flags&7)===4)return xT(ew(D),Xi(D),se.flags,se.prefix,se.suffix);{let _t=se.id;return Z[_t]||(Z[_t]=nD(D))}}function xT(D,se,_t,an,Fr){let wi=ss(D),Ei=se?K:H;return Ei[wi]||(Ei[wi]=RT(D,se,_t??0,XR(an,IT),XR(Fr)))}function Us(D,se){return q0(D,se)&&!tD(D,se)&&!V.has(D)}function tD(D,se){return se?!!Ne?.has(D):!!oe?.has(D)}function q0(D,se){return O?F6(O,D,r):!0}function IE(D,se){for(let _t=se;_t&&P1(_t,se);_t=_t.nextContainer)if(ph(_t)&&_t.locals){let an=_t.locals.get(ml(D));if(an&&an.flags&3257279)return!1}return!0}function OP(D){switch(D){case"":return $;case"#":return he;default:return G?.get(D)??0}}function _d(D,se){switch(D){case"":$=se;break;case"#":he=se;break;default:G??(G=new Map),G.set(D,se);break}}function ov(D,se,_t,an,Fr){an.length>0&&an.charCodeAt(0)===35&&(an=an.slice(1));let wi=E0(_t,an,"",Fr),Ei=OP(wi);if(D&&!(Ei&D)){let ya=E0(_t,an,D===268435456?"_i":"_n",Fr);if(Us(ya,_t))return Ei|=D,_t?bb(ya):se&&H0(ya),_d(wi,Ei),ya}for(;;){let oo=Ei&268435455;if(Ei++,oo!==8&&oo!==13){let ya=oo<26?"_"+String.fromCharCode(97+oo):"_"+(oo-26),Zu=E0(_t,an,ya,Fr);if(Us(Zu,_t))return _t?bb(Zu):se&&H0(Zu),_d(wi,Ei),Zu}}}function J_(D,se=Us,_t,an,Fr,wi,Ei){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),wi.length>0&&wi.charCodeAt(0)===35&&(wi=wi.slice(1)),_t){let ya=E0(Fr,wi,D,Ei);if(se(ya,Fr))return Fr?bb(ya):an?H0(ya):V.add(ya),ya}D.charCodeAt(D.length-1)!==95&&(D+="_");let oo=1;for(;;){let ya=E0(Fr,wi,D+oo,Ei);if(se(ya,Fr))return Fr?bb(ya):an?H0(ya):V.add(ya),ya;oo++}}function rx(D){return J_(D,q0,!0,!1,!1,"","")}function Rp(D){let se=Fc(D.name);return IE(se,ai(D,ph))?se:J_(se,Us,!1,!1,!1,"","")}function ix(D){let se=uR(D),_t=Na(se)?iie(se.text):"module";return J_(_t,Us,!1,!1,!1,"","")}function sp(){return J_("default",Us,!1,!1,!1,"","")}function ox(){return J_("class",Us,!1,!1,!1,"","")}function uy(D,se,_t,an){return Ve(D.name)?xT(D.name,se):ov(0,!1,se,_t,an)}function RT(D,se,_t,an,Fr){switch(D.kind){case 80:case 81:return J_(Fc(D),Us,!!(_t&16),!!(_t&8),se,an,Fr);case 267:case 266:return C.assert(!an&&!Fr&&!se),Rp(D);case 272:case 278:return C.assert(!an&&!Fr&&!se),ix(D);case 262:case 263:{C.assert(!an&&!Fr&&!se);let wi=D.name;return wi&&!ol(wi)?RT(wi,!1,_t,an,Fr):sp()}case 277:return C.assert(!an&&!Fr&&!se),sp();case 231:return C.assert(!an&&!Fr&&!se),ox();case 174:case 177:case 178:return uy(D,se,an,Fr);case 167:return ov(0,!0,se,an,Fr);default:return ov(0,!1,se,an,Fr)}}function nD(D){let se=D.emitNode.autoGenerate,_t=XR(se.prefix,IT),an=XR(se.suffix);switch(se.flags&7){case 1:return ov(0,!!(se.flags&8),Xi(D),_t,an);case 2:return C.assertNode(D,Ve),ov(268435456,!!(se.flags&8),!1,_t,an);case 3:return J_(Sr(D),se.flags&32?q0:Us,!!(se.flags&16),!!(se.flags&8),Xi(D),_t,an)}return C.fail(`Unsupported GeneratedIdentifierKind: ${C.formatEnum(se.flags&7,H8,!0)}.`)}function rD(D,se){let _t=ae(2,D,se),an=nn,Fr=rn,wi=Nn;DT(se),_t(D,se),iD(se,an,Fr,wi)}function DT(D){let se=Va(D),_t=L_(D);Eb(D,se,_t.pos,_t.end),se&4096&&(Yt=!0)}function iD(D,se,_t,an){let Fr=Va(D),wi=L_(D);Fr&4096&&(Yt=!1),Dp(D,Fr,wi.pos,wi.end,se,_t,an);let Ei=_ae(D);Ei&&Dp(D,Fr,Ei.pos,Ei.end,se,_t,an)}function Eb(D,se,_t,an){ki(),Qt=!1;let Fr=_t<0||(se&1024)!==0||D.kind===12,wi=an<0||(se&2048)!==0||D.kind===12;(_t>0||an>0)&&_t!==an&&(Fr||xE(_t,D.kind!==359),(!Fr||_t>=0&&se&1024)&&(nn=_t),(!wi||an>=0&&se&2048)&&(rn=an,D.kind===261&&(Nn=an))),Ke(kR(D),Mh),Ro()}function Dp(D,se,_t,an,Fr,wi,Ei){ki();let oo=an<0||(se&2048)!==0||D.kind===12;Ke(Mk(D),oD),(_t>0||an>0)&&_t!==an&&(nn=Fr,rn=wi,Nn=Ei,!oo&&D.kind!==359&&c_(an)),Ro()}function Mh(D){(D.hasLeadingNewline||D.kind===2)&&ve.writeLine(),CT(D),D.hasTrailingNewLine||D.kind===2?ve.writeLine():ve.writeSpace(" ")}function oD(D){ve.isAtStartOfLine()||ve.writeSpace(" "),CT(D),D.hasTrailingNewLine&&ve.writeLine()}function CT(D){let se=is(D),_t=D.kind===3?TA(se):void 0;SR(se,_t,ve,0,se.length,R)}function is(D){return D.kind===3?`/*${D.text}*/`:`//${D.text}`}function Rr(D,se,_t){ki();let{pos:an,end:Fr}=se,wi=Va(D),Ei=an<0||(wi&1024)!==0,oo=Yt||Fr<0||(wi&2048)!==0;Ei||Of(se),Ro(),wi&4096&&!Yt?(Yt=!0,_t(D),Yt=!1):_t(D),ki(),oo||(xE(se.end,!0),Qt&&!ve.isAtStartOfLine()&&ve.writeLine()),Ro()}function ff(D,se){return D=Nl(D),D.parent&&D.parent===Nl(se).parent}function Cd(D,se){if(se.pos-1&&an.indexOf(se)===Fr+1}function xE(D,se){Qt=!1,se?D===0&&O?.isDeclarationFile?Eg(D,J0):Eg(D,NT):D===0&&Eg(D,aD)}function aD(D,se,_t,an,Fr){_f(D,se)&&NT(D,se,_t,an,Fr)}function J0(D,se,_t,an,Fr){_f(D,se)||NT(D,se,_t,an,Fr)}function RE(D,se){return e.onlyPrintJsDocStyle?HH(D,se)||W6(D,se):!0}function NT(D,se,_t,an,Fr){!O||!RE(O.text,D)||(Qt||(Qie(xt(),ve,Fr,D),Qt=!0),Ls(D),SR(O.text,xt(),ve,D,se,R),Ls(se),an?ve.writeLine():_t===3&&ve.writeSpace(" "))}function yg(D){Yt||D===-1||xE(D,!0)}function c_(D){ax(D,mf)}function mf(D,se,_t,an){!O||!RE(O.text,D)||(ve.isAtStartOfLine()||ve.writeSpace(" "),Ls(D),SR(O.text,xt(),ve,D,se,R),Ls(se),an&&ve.writeLine())}function Bm(D,se,_t){Yt||(ki(),ax(D,se?mf:_t?av:bg),Ro())}function av(D,se,_t){O&&(Ls(D),SR(O.text,xt(),ve,D,se,R),Ls(se),_t===2&&ve.writeLine())}function bg(D,se,_t,an){O&&(Ls(D),SR(O.text,xt(),ve,D,se,R),Ls(se),an?ve.writeLine():ve.writeSpace(" "))}function Eg(D,se){O&&(nn===-1||D!==nn)&&(lc(D)?sD(se):XM(O.text,D,se,D))}function ax(D,se){O&&(rn===-1||D!==rn&&D!==Nn)&&YM(O.text,D,se)}function lc(D){return _n!==void 0&&Ya(_n).nodePos===D}function sD(D){if(!O)return;let se=Ya(_n).detachedCommentEndPos;_n.length-1?_n.pop():_n=void 0,XM(O.text,se,D,se)}function Of(D){let se=O&&eoe(O.text,xt(),ve,Lh,D,R,Yt);se&&(_n?_n.push(se):_n=[se])}function Lh(D,se,_t,an,Fr,wi){!O||!RE(O.text,an)||(Ls(an),SR(D,se,_t,an,Fr,wi),Ls(Fr))}function _f(D,se){return!!O&&lj(O.text,D,se)}function DE(D){return D.parsedSourceMap===void 0&&D.sourceMapText!==void 0&&(D.parsedSourceMap=jq(D.sourceMapText)||!1),D.parsedSourceMap||void 0}function K0(D,se){let _t=ae(3,D,se);sx(se),_t(D,se),PT(se)}function sx(D){let se=Va(D),_t=jv(D);if(jV(D)){C.assertIsDefined(D.parent,"UnparsedNodes must have parent pointers");let an=DE(D.parent);an&&at&&at.appendSourceMap(ve.getLine(),ve.getColumn(),an,D.parent.sourceMapPath,D.parent.getLineAndCharacterOfPosition(D.pos),D.parent.getLineAndCharacterOfPosition(D.end))}else{let an=_t.source||Bt;D.kind!==359&&!(se&32)&&_t.pos>=0&&CE(_t.source||Bt,hf(an,_t.pos)),se&128&&(je=!0)}}function PT(D){let se=Va(D),_t=jv(D);jV(D)||(se&128&&(je=!1),D.kind!==359&&!(se&64)&&_t.end>=0&&CE(_t.source||Bt,_t.end))}function hf(D,se){return D.skipTrivia?D.skipTrivia(se):La(D.text,se)}function Ls(D){if(je||Qm(D)||X0(Bt))return;let{line:se,character:_t}=Es(Bt,D);at.addMapping(ve.getLine(),ve.getColumn(),yt,se,_t,void 0)}function CE(D,se){if(D!==Bt){let _t=Bt,an=yt;sv(D),Ls(se),Sb(_t,an)}else Ls(se)}function NE(D,se,_t,an,Fr){if(je||D&&i3(D))return Fr(se,_t,an);let wi=D&&D.emitNode,Ei=wi&&wi.flags||0,oo=wi&&wi.tokenSourceMapRanges&&wi.tokenSourceMapRanges[se],ya=oo&&oo.source||Bt;return an=hf(ya,oo?oo.pos:an),!(Ei&256)&&an>=0&&CE(ya,an),an=Fr(se,_t,an),oo&&(an=oo.end),!(Ei&512)&&an>=0&&CE(ya,an),an}function sv(D){if(!je){if(Bt=D,D===Qe){yt=gt;return}X0(D)||(yt=at.addSource(D.fileName),e.inlineSources&&at.setSourceContent(yt,D.text),Qe=D,gt=yt)}}function Sb(D,se){Bt=D,yt=se}function X0(D){return Tl(D.fileName,".json")}}function Sje(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function Tje(e){return rce[e&15360][0]}function Aje(e){return rce[e&15360][1]}function Ije(e,t,r,i){t(e)}function xje(e,t,r,i){t(e,r.select(i))}function Rje(e,t,r,i){t(e,r)}function Dje(e,t){return e.length===1?Ije:typeof t=="object"?xje:Rje}var rce,uF,fJ,oE,mJ,Lw,Cje=A({"src/compiler/emitter.ts"(){"use strict";ia(),ia(),oS(),rce=Sje(),uF={hasGlobalName:Ko,getReferencedExportContainer:Ko,getReferencedImportDeclaration:Ko,getReferencedDeclarationWithCollidingName:Ko,isDeclarationWithCollidingName:Ko,isValueAliasDeclaration:Ko,isReferencedAliasDeclaration:Ko,isTopLevelValueImportEqualsWithEntityName:Ko,getNodeCheckFlags:Ko,isDeclarationVisible:Ko,isLateBound:e=>!1,collectLinkedAliases:Ko,isImplementationOfOverload:Ko,isRequiredInitializedParameter:Ko,isOptionalUninitializedParameterProperty:Ko,isExpandoFunctionDeclaration:Ko,getPropertiesOfContainerFunction:Ko,createTypeOfDeclaration:Ko,createReturnTypeOfSignatureDeclaration:Ko,createTypeOfExpression:Ko,createLiteralConstValue:Ko,isSymbolAccessible:Ko,isEntityNameVisible:Ko,getConstantValue:Ko,getReferencedValueDeclaration:Ko,getReferencedValueDeclarations:Ko,getTypeReferenceSerializationKind:Ko,isOptionalParameter:Ko,moduleExportsSomeValue:Ko,isArgumentsLocalBinding:Ko,getExternalModuleFileFromDeclaration:Ko,getTypeReferenceDirectivesForEntityName:Ko,getTypeReferenceDirectivesForSymbol:Ko,isLiteralConstDeclaration:Ko,getJsxFactoryEntity:Ko,getJsxFragmentFactoryEntity:Ko,getAllAccessorDeclarations:Ko,getSymbolOfExternalModuleSpecifier:Ko,isBindingCapturedByNode:Ko,getDeclarationStatementsForSourceFile:Ko,isImportRequiredByAugmentation:Ko,tryFindAmbientModule:Ko},fJ=Ed(()=>x0({})),oE=Ed(()=>x0({removeComments:!0})),mJ=Ed(()=>x0({removeComments:!0,neverAsciiEscape:!0})),Lw=Ed(()=>x0({removeComments:!0,omitTrailingSemicolon:!0}))}});function dF(e,t,r){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,o=Pu(r);return{useCaseSensitiveFileNames:r,fileExists:I,readFile:(G,ne)=>e.readFile(G,ne),directoryExists:e.directoryExists&&R,getDirectories:N,readDirectory:O,createDirectory:e.createDirectory&&M,writeFile:e.writeFile&&T,addOrDeleteFileOrDirectory:K,addOrDeleteFile:Z,clearCache:ue,realpath:e.realpath&&H};function s(G){return rl(G,t,o)}function l(G){return i.get(zc(G))}function u(G){let ne=l(li(G));return ne&&(ne.sortedAndCanonicalizedFiles||(ne.sortedAndCanonicalizedFiles=ne.files.map(o).sort(),ne.sortedAndCanonicalizedDirectories=ne.directories.map(o).sort()),ne)}function p(G){return rc(va(G))}function g(G,ne){var he;if(!e.realpath||zc(s(e.realpath(G)))===ne){let ye={files:Ft(e.readDirectory(G,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(G)||[]};return i.set(zc(ne),ye),ye}if((he=e.directoryExists)!=null&&he.call(e,G))return i.set(ne,!1),!1}function m(G,ne){ne=zc(ne);let he=l(ne);if(he)return he;try{return g(G,ne)}catch{C.assert(!i.has(zc(ne)));return}}function b(G,ne){return xv(G,ne,el,ju)>=0}function T(G,ne,he){let ye=s(G),$=u(ye);return $&&V($,p(G),!0),e.writeFile(G,ne,he)}function I(G){let ne=s(G),he=u(ne);return he&&b(he.sortedAndCanonicalizedFiles,o(p(G)))||e.fileExists(G)}function R(G){let ne=s(G);return i.has(zc(ne))||e.directoryExists(G)}function M(G){let ne=s(G),he=u(ne);if(he){let ye=p(G),$=o(ye),Y=he.sortedAndCanonicalizedDirectories;Ty(Y,$,ju)&&he.directories.push(ye)}e.createDirectory(G)}function N(G){let ne=s(G),he=m(G,ne);return he?he.directories.slice():e.getDirectories(G)}function O(G,ne,he,ye,$){let Y=s(G),oe=m(G,Y),fe;if(oe!==void 0)return xU(G,ne,he,ye,r,t,$,Ne,H);return e.readDirectory(G,ne,he,ye,$);function Ne(ie){let ve=s(ie);if(ve===Y)return oe||me(ie,ve);let Le=m(ie,ve);return Le!==void 0?Le||me(ie,ve):p7}function me(ie,ve){if(fe&&ve===Y)return fe;let Le={files:Ft(e.readDirectory(ie,void 0,void 0,["*.*"]),p)||et,directories:e.getDirectories(ie)||et};return ve===Y&&(fe=Le),Le}}function H(G){return e.realpath?e.realpath(G):G}function K(G,ne){if(l(ne)!==void 0){ue();return}let ye=u(ne);if(!ye)return;if(!e.directoryExists){ue();return}let $=p(G),Y={fileExists:e.fileExists(G),directoryExists:e.directoryExists(G)};return Y.directoryExists||b(ye.sortedAndCanonicalizedDirectories,o($))?ue():V(ye,$,Y.fileExists),Y}function Z(G,ne,he){if(he===1)return;let ye=u(ne);ye&&V(ye,p(G),he===0)}function V(G,ne,he){let ye=G.sortedAndCanonicalizedFiles,$=o(ne);if(he)Ty(ye,$,ju)&&G.files.push(ne);else{let Y=xv(ye,$,el,ju);if(Y>=0){ye.splice(Y,1);let oe=G.files.findIndex(fe=>o(fe)===$);G.files.splice(oe,1)}}}function ue(){i.clear()}}function pF(e,t,r,i,o){var s;let l=g1(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||et,o);r.forEach((u,p)=>{l.has(p)||(u.projects.delete(e),u.close())}),l.forEach((u,p)=>{let g=r.get(p);g?g.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(u,p),close:()=>{let m=r.get(p);!m||m.projects.size!==0||(m.watcher.close(),r.delete(p))}})})}function _J(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function fF(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&fF(e,o,r)})}function hJ(e,t,r){KC(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:$m})}function kw(e,t,r){t?KC(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Cf,onExistingValue:o}):ep(e,Cf);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,u){s.flags!==l&&(s.watcher.close(),e.set(u,i(u,l)))}}function ww({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:p,writeLog:g,toPath:m,getScriptKind:b}){let T=IF(r);if(!T)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=T,r===e)return!1;if(EA(r)&&!(Woe(t,o,l)||O()))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(bse(t,o.configFile.configFileSpecs,bo(li(i),u),p,u))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||Ps(o)||o.outDir)return!1;if(Su(r)){if(o.declarationDir)return!1}else if(!Ec(r,LR))return!1;let I=Td(r),R=Do(s)?void 0:Nje(s)?s.getProgramOrUndefined():s,M=!R&&!Do(s)?s:void 0;if(N(I+".ts")||N(I+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function N(H){return R?!!R.getSourceFileByPath(H):M?M.getState().fileInfos.has(H):!!vn(s,K=>m(K)===H)}function O(){if(!b)return!1;switch(b(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return qy(o);case 6:return h0(o);case 0:return!1}}}function Nje(e){return!!e.getState}function ice(e,t){return e?e.isEmittedFile(t):!1}function gJ(e,t,r,i){Vne(t===2?r:$a);let o={watchFile:(M,N,O,H)=>e.watchFile(M,N,O,H),watchDirectory:(M,N,O,H)=>e.watchDirectory(M,N,(O&1)!==0,H)},s=t!==0?{watchFile:I("watchFile"),watchDirectory:I("watchDirectory")}:void 0,l=t===2?{watchFile:b,watchDirectory:T}:s||o,u=t===2?m:m2;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(M){return(N,O,H,K,Z,V)=>{var ue;return S5(N,M==="watchFile"?K?.excludeFiles:K?.excludeDirectories,g(),((ue=e.getCurrentDirectory)==null?void 0:ue.call(e))||"")?u(N,H,K,Z,V):l[M].call(void 0,N,O,H,K,Z,V)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(M,N,O,H,K){return r(`ExcludeWatcher:: Added:: ${R(M,N,O,H,K,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(M,N,O,H,K,i)}`)}}function b(M,N,O,H,K,Z){r(`FileWatcher:: Added:: ${R(M,O,H,K,Z,i)}`);let V=s.watchFile(M,N,O,H,K,Z);return{close:()=>{r(`FileWatcher:: Close:: ${R(M,O,H,K,Z,i)}`),V.close()}}}function T(M,N,O,H,K,Z){let V=`DirectoryWatcher:: Added:: ${R(M,O,H,K,Z,i)}`;r(V);let ue=Ks(),G=s.watchDirectory(M,N,O,H,K,Z),ne=Ks()-ue;return r(`Elapsed:: ${ne}ms ${V}`),{close:()=>{let he=`DirectoryWatcher:: Close:: ${R(M,O,H,K,Z,i)}`;r(he);let ye=Ks();G.close();let $=Ks()-ye;r(`Elapsed:: ${$}ms ${he}`)}}}function I(M){return(N,O,H,K,Z,V)=>o[M].call(void 0,N,(...ue)=>{let G=`${M==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ue[0]} ${ue[1]!==void 0?ue[1]:""}:: ${R(N,H,K,Z,V,i)}`;r(G);let ne=Ks();O.call(void 0,...ue);let he=Ks()-ne;r(`Elapsed:: ${he}ms ${G}`)},H,K,Z,V)}function R(M,N,O,H,K,Z){return`WatchInfo: ${M} ${N} ${JSON.stringify(O)} ${Z?Z(H,K):K===void 0?H:`${H} ${K}`}`}}function Ow(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Cf(e){e.watcher.close()}var vJ,yJ,Pje=A({"src/compiler/watchUtilities.ts"(){"use strict";ia(),vJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(vJ||{}),yJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(yJ||{})}});function oce(e,t,r="tsconfig.json"){return Em(e,i=>{let o=Zr(i,r);return t(o)?o:void 0})}function mF(e,t){let r=li(t),i=dp(e)?e:Zr(r,e);return va(i)}function ace(e,t,r){let i;return Ke(e,s=>{let l=VM(s,t);if(l.pop(),!i){i=l;return}let u=Math.min(i.length,l.length);for(let p=0;p{let l;try{nl("beforeIORead"),l=e(i,t().charset),nl("afterIORead"),Yp("I/O Read","beforeIORead","afterIORead")}catch(u){s&&s(u.message),l=""}return l!==void 0?rw(i,l,o,r):void 0}}function EJ(e,t,r){return(i,o,s,l)=>{try{nl("beforeIOWrite"),rU(i,o,s,e,t,r),nl("afterIOWrite"),Yp("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function SJ(e,t,r=gu){let i=new Map,o=Pu(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(g.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return li(va(r.getExecutingFilePath()))}let u=Gv(e),p=r.realpath&&(m=>r.realpath(m)),g={getSourceFile:bJ(m=>g.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>Zr(l(),QM(m)),writeFile:EJ((m,b,T)=>r.writeFile(m,b,T),m=>(g.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:Ed(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>u,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+u),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:p,readDirectory:(m,b,T,I,R)=>r.readDirectory(m,b,T,I,R),createDirectory:m=>r.createDirectory(m),createHash:oa(r,r.createHash)};return g}function Fw(e,t,r){let i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,p=new Map,g=new Map,m=new Map,b=new Map,T=M=>{let N=t(M),O=p.get(N);return O!==void 0?O!==!1?O:void 0:I(N,M)},I=(M,N)=>{let O=i.call(e,N);return p.set(M,O!==void 0?O:!1),O};e.readFile=M=>{let N=t(M),O=p.get(N);return O!==void 0?O!==!1?O:void 0:!Tl(M,".json")&&!ece(M)?i.call(e,M):I(N,M)};let R=r?(M,N,O,H)=>{let K=t(M),Z=typeof N=="object"?N.impliedNodeFormat:void 0,V=b.get(Z),ue=V?.get(K);if(ue)return ue;let G=r(M,N,O,H);return G&&(Su(M)||Tl(M,".json"))&&b.set(Z,(V||new Map).set(K,G)),G}:void 0;return e.fileExists=M=>{let N=t(M),O=g.get(N);if(O!==void 0)return O;let H=o.call(e,M);return g.set(N,!!H),H},u&&(e.writeFile=(M,N,...O)=>{let H=t(M);g.delete(H);let K=p.get(H);K!==void 0&&K!==N?(p.delete(H),b.forEach(Z=>Z.delete(H))):R&&b.forEach(Z=>{let V=Z.get(H);V&&V.text!==N&&Z.delete(H)}),u.call(e,M,N,...O)}),s&&(e.directoryExists=M=>{let N=t(M),O=m.get(N);if(O!==void 0)return O;let H=s.call(e,M);return m.set(N,!!H),H},l&&(e.createDirectory=M=>{let N=t(M);m.delete(N),l.call(e,M)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:R,readFileWithCache:T}}function MIe(e,t,r){let i;return i=Jr(i,e.getConfigFileParsingDiagnostics()),i=Jr(i,e.getOptionsDiagnostics(r)),i=Jr(i,e.getSyntacticDiagnostics(t,r)),i=Jr(i,e.getGlobalDiagnostics(r)),i=Jr(i,e.getSemanticDiagnostics(t,r)),xf(e.getCompilerOptions())&&(i=Jr(i,e.getDeclarationDiagnostics(t,r))),Gx(i||et)}function LIe(e,t){let r="";for(let i of e)r+=TJ(i,t);return r}function TJ(e,t){let r=`${aS(e)} TS${e.code}: ${W_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:o}=Es(e.file,e.start),s=e.file.fileName;return`${iC(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${o+1}): `+r}return r}function kIe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return C.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function aE(e,t){return t+e+dce}function wIe(e,t,r,i,o,s){let{line:l,character:u}=Es(e,t),{line:p,character:g}=Es(e,t+r),m=Es(e,e.text.length).line,b=p-l>=4,T=(p+1+"").length;b&&(T=Math.max(pce.length,T));let I="";for(let R=l;R<=p;R++){I+=s.getNewLine(),b&&l+1r.getCanonicalFileName(p)):e.fileName,u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u}function lce(e,t){let r="";for(let i of e){if(i.file){let{file:o,start:s}=i;r+=AJ(o,s,t),r+=" - "}if(r+=aE(aS(i),kIe(i.category)),r+=aE(` TS${i.code}: `,"\x1B[90m"),r+=W_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=wIe(i.file,i.start,i.length,"",kIe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(let{file:o,start:s,length:l,messageText:u}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=WIe+AJ(o,s,t),r+=wIe(o,s,l,fce,"\x1B[96m",t)),r+=t.getNewLine(),r+=fce+W_(u,t.getNewLine())}r+=t.getNewLine()}return r}function W_(e,t,r=0){if(wo(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;ot2(s,e,r,i,o,t,l)}}function CJ(e){return wo(e)?e:lh(e.fileName)}function _F(e,t,r,i,o){return{nameAndMode:zIe,resolve:(s,l)=>wse(s,e,r,i,t,o,l)}}function zw(e,t,r,i,o,s,l,u){if(e.length===0)return et;let p=[],g=new Map,m=u(t,r,i,s,l);for(let b of e){let T=m.nameAndMode.getName(b),I=m.nameAndMode.getMode(b,o,r?.commandLine.options||i),R=WN(T,I),M=g.get(R);M||g.set(R,M=m.resolve(T,I)),p.push(M)}return p}function NJ(e,t){return hF(void 0,e,(r,i)=>r&&t(r,i))}function hF(e,t,r,i){let o;return s(e,t,void 0);function s(l,u,p){if(i){let g=i(l,p);if(g)return g}return Ke(u,(g,m)=>{if(g&&o?.has(g.sourceFile.path))return;let b=r(g,p,m);return b||!g?b:((o||(o=new Set)).add(g.sourceFile.path),s(g.commandLine.projectReferences,g.references,g))})}}function gF(e,t,r){let i=e.configFilePath?li(e.configFilePath):t;return Zr(i,`__lib_node_modules_lookup_${r}__.ts`)}function PJ(e){let t=e.split("."),r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function OIe(e){let t=lh(e.fileName),r=T5.get(t);return{libName:t,libFileName:r}}function R0(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function l2(e){return e.pos!==void 0}function ZN(e,t){var r,i,o,s;let l=C.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:p}=t,g,m,b,T;switch(u){case 3:let I=Gw(l,p);if(b=(i=(r=e.getResolvedModule(l,I.text,e.getModeForUsageLocation(l,I)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,I.pos===-1)return{file:l,packageId:b,text:I.text};g=La(l.text,I.pos),m=I.end;break;case 4:({pos:g,end:m}=l.referencedFiles[p]);break;case 5:({pos:g,end:m,resolutionMode:T}=l.typeReferenceDirectives[p]),b=(s=(o=e.getResolvedTypeReferenceDirective(l,lh(l.typeReferenceDirectives[p].fileName),T||l.impliedNodeFormat))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:g,end:m}=l.libReferenceDirectives[p]);break;default:return C.assertNever(u)}return{file:l,pos:g,end:m,packageId:b}}function MJ(e,t,r,i,o,s,l,u,p,g){if(!e||u?.()||!Jm(e.getRootFileNames(),t))return!1;let m;if(!Jm(e.getProjectReferences(),g,M)||e.getSourceFiles().some(I))return!1;let b=e.getMissingFilePaths();if(b&&Bc(b,o))return!1;let T=e.getCompilerOptions();if(!hU(T,r)||e.resolvedLibReferences&&Bc(e.resolvedLibReferences,(O,H)=>l(H)))return!1;if(T.configFile&&r.configFile)return T.configFile.text===r.configFile.text;return!0;function I(O){return!R(O)||s(O.path)}function R(O){return O.version===i(O.resolvedPath,O.fileName)}function M(O,H,K){return oj(O,H)&&N(e.getResolvedProjectReferences()[K],O)}function N(O,H){if(O){if(wr(m,O))return!0;let Z=c2(H),V=p(Z);return!V||O.commandLine.options.configFile!==V.options.configFile||!Jm(O.commandLine.fileNames,V.fileNames)?!1:((m||(m=[])).push(O),!Ke(O.references,(ue,G)=>!N(ue,O.commandLine.projectReferences[G])))}let K=c2(H);return!p(K)}}function XS(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Bw(e,t,r,i){let o=LJ(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function LJ(e,t,r,i){switch(dd(i)){case 3:case 99:return Ec(e,[".d.mts",".mts",".mjs"])?99:Ec(e,[".d.cts",".cts",".cjs"])?1:Ec(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){let s=yw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;let u=bw(e,s);return{impliedNodeFormat:u?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:u}}}function Mje(e,t){return e?Yx(e.getCompilerOptions(),t,I5):!1}function Lje(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function vF(e,t,r,i,o){var s,l,u,p,g,m,b,T,I,R,M,N,O,H,K,Z;let V=Do(e)?Lje(e,t,r,i,o):e,{rootNames:ue,options:G,configFileParsingDiagnostics:ne,projectReferences:he,typeScriptVersion:ye}=V,{oldProgram:$}=V,Y=Ed(()=>Lm("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations)),oe,fe,Ne,me,ie,ve,Le,He=new Map,Ee=Xp(),Ce={},Me={},Fe=vI(),At,Se,je,at,Bt,yt,Qe,gt,nn,rn,Nn=typeof G.maxNodeModuleJsDepth=="number"?G.maxNodeModuleJsDepth:0,Xn=0,_n=new Map,Qt=new Map;(s=lr)==null||s.push(lr.Phase.Program,"createProgram",{configFilePath:G.configFilePath,rootDir:G.rootDir},!0),nl("beforeProgram");let Yt=V.host||sce(G),vi=bF(Yt),ho=G.noLib,ki=Ed(()=>Yt.getDefaultLibFileName(G)),Ro=Yt.getDefaultLibLocation?Yt.getDefaultLibLocation():li(ki()),nr=vR(),qr=Yt.getCurrentDirectory(),xr=$C(G),ln=fk(G,xr),tt=new Map,zt,Rn,ui,bi=Yt.hasInvalidatedResolutions||Km;Yt.resolveModuleNameLiterals?(ui=Yt.resolveModuleNameLiterals.bind(Yt),Rn=(l=Yt.getModuleResolutionCache)==null?void 0:l.call(Yt)):Yt.resolveModuleNames?(ui=(ze,Ze,kt,Ut,gn,Yn)=>Yt.resolveModuleNames(ze.map(uce),Ze,Yn?.map(uce),kt,Ut,gn).map(hn=>hn?hn.extension!==void 0?{resolvedModule:hn}:{resolvedModule:{...hn,extension:ZC(hn.resolvedFileName)}}:mce),Rn=(u=Yt.getModuleResolutionCache)==null?void 0:u.call(Yt)):(Rn=e2(qr,te,G),ui=(ze,Ze,kt,Ut,gn)=>zw(ze,Ze,kt,Ut,gn,Yt,Rn,DJ));let ro;if(Yt.resolveTypeReferenceDirectiveReferences)ro=Yt.resolveTypeReferenceDirectiveReferences.bind(Yt);else if(Yt.resolveTypeReferenceDirectives)ro=(ze,Ze,kt,Ut,gn)=>Yt.resolveTypeReferenceDirectives(ze.map(CJ),Ze,kt,Ut,gn?.impliedNodeFormat).map(Yn=>({resolvedTypeReferenceDirective:Yn}));else{let ze=k5(qr,te,void 0,Rn?.getPackageJsonInfoCache(),Rn?.optionsToRedirectsKey);ro=(Ze,kt,Ut,gn,Yn)=>zw(Ze,kt,Ut,gn,Yn,Yt,ze,_F)}let No=Yt.hasInvalidatedLibResolutions||Km,_a;if(Yt.resolveLibrary)_a=Yt.resolveLibrary.bind(Yt);else{let ze=e2(qr,te,G,Rn?.getPackageJsonInfoCache());_a=(Ze,kt,Ut)=>w5(Ze,kt,Ut,Yt,ze)}let ja=new Map,En=new Map,wn=Xp(),Ue=!1,mt=new Map,ft=new Map,Nt=Yt.useCaseSensitiveFileNames()?new Map:void 0,le,We,pt,j,ot=!!((p=Yt.useSourceOfProjectReferenceRedirect)!=null&&p.call(Yt))&&!G.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:xt,fileExists:Ye,directoryExists:ht}=kje({compilerHost:Yt,getSymlinkCache:U_,useSourceOfProjectReferenceRedirect:ot,toPath:or,getResolvedProjectReferences:Fo,getSourceOfProjectReferenceRedirect:Dd,forEachResolvedProjectReference:Bd}),Vt=Yt.readFile.bind(Yt);(g=lr)==null||g.push(lr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!$});let yn=Mje($,G);(m=lr)==null||m.pop();let fn;if((b=lr)==null||b.push(lr.Phase.Program,"tryReuseStructureFromOldProgram",{}),fn=Po(),(T=lr)==null||T.pop(),fn!==2){if(oe=[],fe=[],he&&(le||(le=he.map(jt)),ue.length&&le?.forEach((ze,Ze)=>{if(!ze)return;let kt=Ps(ze.commandLine.options);if(ot){if(kt||ku(ze.commandLine.options)===0)for(let Ut of ze.commandLine.fileNames)wt(Ut,{kind:1,index:Ze})}else if(kt)wt(m0(kt,".d.ts"),{kind:2,index:Ze});else if(ku(ze.commandLine.options)===0){let Ut=Ed(()=>a2(ze.commandLine,!Yt.useCaseSensitiveFileNames()));for(let gn of ze.commandLine.fileNames)!Su(gn)&&!Tl(gn,".json")&&wt($N(gn,ze.commandLine,!Yt.useCaseSensitiveFileNames(),Ut),{kind:2,index:Ze})}})),(I=lr)==null||I.push(lr.Phase.Program,"processRootFiles",{count:ue.length}),Ke(ue,(ze,Ze)=>js(ze,!1,!1,{kind:0,index:Ze})),(R=lr)==null||R.pop(),Se??(Se=ue.length?M5(G,Yt):et),je=vI(),Se.length){(M=lr)==null||M.push(lr.Phase.Program,"processTypeReferences",{count:Se.length});let ze=G.configFilePath?li(G.configFilePath):qr,Ze=Zr(ze,u2),kt=Ci(Se,Ze);for(let Ut=0;Ut{js(Ap(Ze),!0,!1,{kind:6,index:kt})})}Ne=Iv(oe,yi).concat(fe),oe=void 0,fe=void 0}if($&&Yt.onReleaseOldSourceFile){let ze=$.getSourceFiles();for(let Ze of ze){let kt=fl(Ze.resolvedPath);(yn||!kt||kt.impliedNodeFormat!==Ze.impliedNodeFormat||Ze.resolvedPath===Ze.path&&kt.resolvedPath!==Ze.path)&&Yt.onReleaseOldSourceFile(Ze,$.getCompilerOptions(),!!fl(Ze.path))}Yt.getParsedCommandLine||$.forEachResolvedProjectReference(Ze=>{j_(Ze.sourceFile.path)||Yt.onReleaseOldSourceFile(Ze.sourceFile,$.getCompilerOptions(),!1)})}$&&Yt.onReleaseParsedCommandLine&&hF($.getProjectReferences(),$.getResolvedProjectReferences(),(ze,Ze,kt)=>{let Ut=Ze?.commandLine.projectReferences[kt]||$.getProjectReferences()[kt],gn=c2(Ut);We?.has(or(gn))||Yt.onReleaseParsedCommandLine(gn,ze,$.getCompilerOptions())}),$=void 0,Bt=void 0,Qe=void 0,nn=void 0;let mn={getRootFileNames:()=>ue,getSourceFile:Pa,getSourceFileByPath:fl,getSourceFiles:()=>Ne,getMissingFilePaths:()=>ft,getModuleResolutionCache:()=>Rn,getFilesByNameMap:()=>mt,getCompilerOptions:()=>G,getSyntacticDiagnostics:sc,getOptionsDiagnostics:Lr,getGlobalDiagnostics:El,getSemanticDiagnostics:Rl,getCachedSemanticDiagnostics:ll,getSuggestionDiagnostics:we,getDeclarationDiagnostics:Vs,getBindAndCheckDiagnostics:Wo,getProgramDiagnostics:on,getTypeChecker:yo,getClassifiableNames:Eo,getCommonSourceDirectory:Vr,emit:pa,getCurrentDirectory:()=>qr,getNodeCount:()=>yo().getNodeCount(),getIdentifierCount:()=>yo().getIdentifierCount(),getSymbolCount:()=>yo().getSymbolCount(),getTypeCount:()=>yo().getTypeCount(),getInstantiationCount:()=>yo().getInstantiationCount(),getRelationCacheSizes:()=>yo().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>At,getResolvedTypeReferenceDirectives:()=>Fe,getAutomaticTypeDirectiveNames:()=>Se,getAutomaticTypeDirectiveResolutions:()=>je,isSourceFileFromExternalLibrary:hl,isSourceFileDefaultLibrary:uu,getModeForUsageLocation:df,getModeForResolutionAtIndex:Qg,getSourceFileFromReference:lm,getLibFileFromReference:Oc,sourceFileToPackageName:En,redirectTargetsMap:wn,usesUriStyleNodeCoreModules:Ue,resolvedModules:yt,resolvedTypeReferenceDirectiveNames:gt,resolvedLibReferences:at,getResolvedModule:q,getResolvedModuleFromModuleSpecifier:Oe,getResolvedTypeReferenceDirective:Lt,forEachResolvedModule:w,forEachResolvedTypeReferenceDirective:ae,getCurrentPackagesMap:()=>rn,typesPackageExists:Ge,packageBundlesTypes:ke,isEmittedFile:_E,getConfigFileParsingDiagnostics:Uc,getProjectReferences:ds,getResolvedProjectReferences:Fo,getProjectReferenceRedirect:Bl,getResolvedProjectReferenceToRedirect:cf,getResolvedProjectReferenceByPath:j_,forEachResolvedProjectReference:Bd,isSourceOfProjectReferenceRedirect:Lf,emitBuildInfo:Yl,fileExists:Ye,readFile:Vt,directoryExists:ht,getSymlinkCache:U_,realpath:(K=Yt.realpath)==null?void 0:K.bind(Yt),useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getCanonicalFileName:te,getFileIncludeReasons:()=>Ee,structureIsReused:fn,writeFile:Fs};return xt(),At?.forEach(ze=>{switch(ze.kind){case 1:return nr.add(si(ze.file&&fl(ze.file),ze.fileProcessingReason,ze.diagnostic,ze.args||et));case 0:let{file:Ze,pos:kt,end:Ut}=ZN(mn,ze.reason);return nr.add(Qc(Ze,C.checkDefined(kt),C.checkDefined(Ut)-kt,ze.diagnostic,...ze.args||et));case 2:return ze.diagnostics.forEach(gn=>nr.add(gn));default:C.assertNever(ze)}}),W(),nl("afterProgram"),Yp("Program","beforeProgram","afterProgram"),(Z=lr)==null||Z.pop(),mn;function q(ze,Ze,kt){var Ut;return(Ut=yt?.get(ze.path))==null?void 0:Ut.get(Ze,kt)}function Oe(ze){let Ze=Vn(ze);return C.assertIsDefined(Ze,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),q(Ze,ze.text,df(Ze,ze))}function Lt(ze,Ze,kt){var Ut;return(Ut=gt?.get(ze.path))==null?void 0:Ut.get(Ze,kt)}function w(ze,Ze){J(yt,ze,Ze)}function ae(ze,Ze){J(gt,ze,Ze)}function J(ze,Ze,kt){var Ut;kt?(Ut=ze?.get(kt.path))==null||Ut.forEach((gn,Yn,hn)=>Ze(gn,Yn,hn,kt.path)):ze?.forEach((gn,Yn)=>gn.forEach((hn,$n,hi)=>Ze(hn,$n,hi,Yn)))}function pe(){return rn||(rn=new Map,w(({resolvedModule:ze})=>{ze?.packageId&&rn.set(ze.packageId.name,ze.extension===".d.ts"||!!rn.get(ze.packageId.name))}),rn)}function Ge(ze){return pe().has(W5(ze))}function ke(ze){return!!pe().get(ze)}function Dt(ze){var Ze;(Ze=ze.resolutionDiagnostics)!=null&&Ze.length&&(At??(At=[])).push({kind:2,diagnostics:ze.resolutionDiagnostics})}function Pt(ze,Ze,kt,Ut){if(Yt.resolveModuleNameLiterals||!Yt.resolveModuleNames)return Dt(kt);if(!Rn||Yc(Ze))return;let gn=bo(ze.originalFileName,qr),Yn=li(gn),hn=On(ze),$n=Rn.getFromNonRelativeNameCache(Ze,Ut,Yn,hn);$n&&Dt($n)}function Kt(ze,Ze,kt){var Ut,gn;if(!ze.length)return et;let Yn=bo(Ze.originalFileName,qr),hn=On(Ze);(Ut=lr)==null||Ut.push(lr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Yn}),nl("beforeResolveModule");let $n=ui(ze,Yn,hn,G,Ze,kt);return nl("afterResolveModule"),Yp("ResolveModule","beforeResolveModule","afterResolveModule"),(gn=lr)==null||gn.pop(),$n}function Tn(ze,Ze,kt){var Ut,gn;if(!ze.length)return[];let Yn=wo(Ze)?void 0:Ze,hn=wo(Ze)?Ze:bo(Ze.originalFileName,qr),$n=Yn&&On(Yn);(Ut=lr)==null||Ut.push(lr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:hn}),nl("beforeResolveTypeReference");let hi=ro(ze,hn,$n,G,Yn,kt);return nl("afterResolveTypeReference"),Yp("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(gn=lr)==null||gn.pop(),hi}function On(ze){let Ze=cf(ze.originalFileName);if(Ze||!Su(ze.originalFileName))return Ze;let kt=Gn(ze.path);if(kt)return kt;if(!Yt.realpath||!G.preserveSymlinks||!ze.originalFileName.includes(Ih))return;let Ut=or(Yt.realpath(ze.originalFileName));return Ut===ze.path?void 0:Gn(Ut)}function Gn(ze){let Ze=Dd(ze);if(wo(Ze))return cf(Ze);if(Ze)return Bd(kt=>{let Ut=Ps(kt.commandLine.options);if(Ut)return or(Ut)===ze?kt:void 0})}function yi(ze,Ze){return tl(Di(ze),Di(Ze))}function Di(ze){if(ym(Ro,ze.fileName,!1)){let Ze=rc(ze.fileName);if(Ze==="lib.d.ts"||Ze==="lib.es6.d.ts")return 0;let kt=Px(ZD(Ze,"lib."),".d.ts"),Ut=dw.indexOf(kt);if(Ut!==-1)return Ut+1}return dw.length+2}function or(ze){return rl(ze,qr,te)}function Vr(){if(ie===void 0){let ze=tr(Ne,Ze=>AS(Ze,mn));ie=QN(G,()=>Vi(ze,Ze=>Ze.isDeclarationFile?void 0:Ze.fileName),qr,te,Ze=>Wt(ze,Ze))}return ie}function Eo(){var ze;if(!Le){yo(),Le=new Set;for(let Ze of Ne)(ze=Ze.classifiableNames)==null||ze.forEach(kt=>Le.add(kt))}return Le}function Mi(ze,Ze){if(fn===0&&!Ze.ambientModuleNames.length)return Kt(ze,Ze,void 0);let kt,Ut,gn,Yn=mce,hn=$&&$.getSourceFile(Ze.fileName);for(let oi=0;oi{let Ut=(Ze?Ze.commandLine.projectReferences:he)[kt],gn=jt(Ut);return ze?!gn||gn.sourceFile!==ze.sourceFile||!Jm(ze.commandLine.fileNames,gn.commandLine.fileNames):gn!==void 0},(ze,Ze)=>{let kt=Ze?j_(Ze.sourceFile.path).commandLine.projectReferences:he;return!Jm(ze,kt,oj)})}function Po(){var ze;if(!$)return 0;let Ze=$.getCompilerOptions();if(M6(Ze,G))return 0;let kt=$.getRootFileNames();if(!Jm(kt,ue)||!Kr())return 0;he&&(le=he.map(jt));let Ut=[],gn=[];if(fn=2,Bc($.getMissingFilePaths(),ur=>Yt.fileExists(ur)))return 0;let Yn=$.getSourceFiles(),hn;(ur=>{ur[ur.Exists=0]="Exists",ur[ur.Modified=1]="Modified"})(hn||(hn={}));let $n=new Map;for(let ur of Yn){let oi=na(ur.fileName,Rn,Yt,G),mr=Yt.getSourceFileByPath?Yt.getSourceFileByPath(ur.fileName,ur.resolvedPath,oi,void 0,yn):Yt.getSourceFile(ur.fileName,oi,void 0,yn);if(!mr)return 0;mr.packageJsonLocations=(ze=oi.packageJsonLocations)!=null&&ze.length?oi.packageJsonLocations:void 0,mr.packageJsonScope=oi.packageJsonScope,C.assert(!mr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Zo;if(ur.redirectInfo){if(mr!==ur.redirectInfo.unredirected)return 0;Zo=!1,mr=ur}else if($.redirectTargetsMap.has(ur.path)){if(mr!==ur)return 0;Zo=!1}else Zo=mr!==ur;mr.path=ur.path,mr.originalFileName=ur.originalFileName,mr.resolvedPath=ur.resolvedPath,mr.fileName=ur.fileName;let Ka=$.sourceFileToPackageName.get(ur.path);if(Ka!==void 0){let Qu=$n.get(Ka),mu=Zo?1:0;if(Qu!==void 0&&mu===1||Qu===1)return 0;$n.set(Ka,mu)}if(Zo)ur.impliedNodeFormat!==mr.impliedNodeFormat?fn=1:Jm(ur.libReferenceDirectives,mr.libReferenceDirectives,gc)?ur.hasNoDefaultLib!==mr.hasNoDefaultLib?fn=1:Jm(ur.referencedFiles,mr.referencedFiles,gc)?(ip(mr),Jm(ur.imports,mr.imports,Ts)&&Jm(ur.moduleAugmentations,mr.moduleAugmentations,Ts)?(ur.flags&12582912)!==(mr.flags&12582912)?fn=1:Jm(ur.typeReferenceDirectives,mr.typeReferenceDirectives,gc)||(fn=1):fn=1):fn=1:fn=1,gn.push(mr);else if(bi(ur.path))fn=1,gn.push(mr);else for(let Qu of ur.ambientModuleNames)He.set(Qu,ur.fileName);Ut.push(mr)}if(fn!==2)return fn;for(let ur of gn){let oi=FIe(ur),mr=Mi(oi,ur);(Qe??(Qe=new Map)).set(ur.path,mr),aj(oi,mr,Zg=>$.getResolvedModule(ur,Zg.text,df(ur,Zg)),$re)&&(fn=1);let Ka=ur.typeReferenceDirectives,Qu=Ci(Ka,ur);(nn??(nn=new Map)).set(ur.path,Qu),aj(Ka,Qu,Zg=>$.getResolvedTypeReferenceDirective(ur,CJ(Zg),Ww(Zg,ur.impliedNodeFormat)),Qre)&&(fn=1)}if(fn!==2)return fn;if(Xre(Ze,G)||$.resolvedLibReferences&&Bc($.resolvedLibReferences,(ur,oi)=>fg(oi).actual!==ur.actual))return 1;if(Yt.hasChangedAutomaticTypeDirectiveNames){if(Yt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Se=M5(G,Yt),!Jm($.getAutomaticTypeDirectiveNames(),Se))return 1;ft=$.getMissingFilePaths(),C.assert(Ut.length===$.getSourceFiles().length);for(let ur of Ut)mt.set(ur.path,ur);return $.getFilesByNameMap().forEach((ur,oi)=>{if(!ur){mt.set(oi,ur);return}if(ur.path===oi){$.isSourceFileFromExternalLibrary(ur)&&Qt.set(ur.path,!0);return}mt.set(oi,mt.get(ur.path))}),Ne=Ut,Ee=$.getFileIncludeReasons(),At=$.getFileProcessingDiagnostics(),Fe=$.getResolvedTypeReferenceDirectives(),Se=$.getAutomaticTypeDirectiveNames(),je=$.getAutomaticTypeDirectiveResolutions(),En=$.sourceFileToPackageName,wn=$.redirectTargetsMap,Ue=$.usesUriStyleNodeCoreModules,yt=$.resolvedModules,gt=$.resolvedTypeReferenceDirectiveNames,at=$.resolvedLibReferences,rn=$.getCurrentPackagesMap(),2}function Dn(ze){return{getPrependNodes:Gs,getCanonicalFileName:te,getCommonSourceDirectory:mn.getCommonSourceDirectory,getCompilerOptions:mn.getCompilerOptions,getCurrentDirectory:()=>qr,getSourceFile:mn.getSourceFile,getSourceFileByPath:mn.getSourceFileByPath,getSourceFiles:mn.getSourceFiles,getLibFileFromReference:mn.getLibFileFromReference,isSourceFileFromExternalLibrary:hl,getResolvedProjectReferenceToRedirect:cf,getProjectReferenceRedirect:Bl,isSourceOfProjectReferenceRedirect:Lf,getSymlinkCache:U_,writeFile:ze||Fs,isEmitBlocked:du,readFile:Ze=>Yt.readFile(Ze),fileExists:Ze=>{let kt=or(Ze);return fl(kt)?!0:ft.has(kt)?!1:Yt.fileExists(Ze)},useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getBuildInfo:Ze=>{var kt;return(kt=mn.getBuildInfo)==null?void 0:kt.call(mn,Ze)},getSourceFileFromReference:(Ze,kt)=>mn.getSourceFileFromReference(Ze,kt),redirectTargetsMap:wn,getFileIncludeReasons:mn.getFileIncludeReasons,createHash:oa(Yt,Yt.createHash)}}function Fs(ze,Ze,kt,Ut,gn,Yn){Yt.writeFile(ze,Ze,kt,Ut,gn,Yn)}function Yl(ze){var Ze,kt;C.assert(!Ps(G)),(Ze=lr)==null||Ze.push(lr.Phase.Emit,"emitBuildInfo",{},!0),nl("beforeEmit");let Ut=lF(uF,Dn(ze),void 0,lJ,!1,!0);return nl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),(kt=lr)==null||kt.pop(),Ut}function Fo(){return le}function ds(){return he}function Gs(){return wJ(he,(ze,Ze)=>{var kt;return(kt=le[Ze])==null?void 0:kt.commandLine},ze=>{let Ze=or(ze),kt=fl(Ze);return kt?kt.text:mt.has(Ze)?void 0:Yt.readFile(Ze)},Yt)}function hl(ze){return!!Qt.get(ze.path)}function uu(ze){if(!ze.isDeclarationFile)return!1;if(ze.hasNoDefaultLib)return!0;if(!G.noLib)return!1;let Ze=Yt.useCaseSensitiveFileNames()?rS:Yb;return G.lib?Et(G.lib,kt=>Ze(ze.fileName,at.get(kt).actual)):Ze(ze.fileName,ki())}function yo(){return ve||(ve=ole(mn))}function pa(ze,Ze,kt,Ut,gn,Yn){var hn,$n;(hn=lr)==null||hn.push(lr.Phase.Emit,"emit",{path:ze?.path},!0);let hi=pu(()=>Is(mn,ze,Ze,kt,Ut,gn,Yn));return($n=lr)==null||$n.pop(),hi}function du(ze){return tt.has(or(ze))}function Is(ze,Ze,kt,Ut,gn,Yn,hn){if(!hn){let ur=kJ(ze,Ze,kt,Ut);if(ur)return ur}let $n=yo().getEmitResolver(Ps(G)?void 0:Ze,Ut);nl("beforeEmit");let hi=lF($n,Dn(kt),Ze,sJ(G,Yn,gn),gn,!1,hn);return nl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),hi}function Pa(ze){return fl(or(ze))}function fl(ze){return mt.get(ze)||void 0}function Mf(ze,Ze,kt){return Gx(ze?Ze(ze,kt):Zi(mn.getSourceFiles(),Ut=>(kt&&kt.throwIfCancellationRequested(),Ze(Ut,kt))))}function sc(ze,Ze){return Mf(ze,nu,Ze)}function Rl(ze,Ze){return Mf(ze,Tp,Ze)}function ll(ze){var Ze;return ze?(Ze=Ce.perFile)==null?void 0:Ze.get(ze.path):Ce.allDiagnostics}function Wo(ze,Ze){return Ms(ze,Ze)}function on(ze){var Ze;if(eN(ze,G,mn))return et;let kt=nr.getDiagnostics(ze.fileName);return(Ze=ze.commentDirectives)!=null&&Ze.length?ee(ze,ze.commentDirectives,kt).diagnostics:kt}function Vs(ze,Ze){let kt=mn.getCompilerOptions();return!ze||Ps(kt)?Tr(ze,Ze):Mf(ze,Ni,Ze)}function nu(ze){return ld(ze)?(ze.additionalSyntacticDiagnostics||(ze.additionalSyntacticDiagnostics=pn(ze)),xo(ze.additionalSyntacticDiagnostics,ze.parseDiagnostics)):ze.parseDiagnostics}function pu(ze){try{return ze()}catch(Ze){throw Ze instanceof Ox&&(ve=void 0),Ze}}function Tp(ze,Ze){return xo(yF(Ms(ze,Ze),G),on(ze))}function Ms(ze,Ze){return jr(ze,Ze,Ce,Ic)}function Ic(ze,Ze){return pu(()=>{if(eN(ze,G,mn))return et;let kt=yo();C.assert(!!ze.bindDiagnostics);let gn=(ze.scriptKind===1||ze.scriptKind===2)&&hk(ze,G),Yn=yL(ze,G.checkJs),$n=!(!!ze.checkJsDirective&&ze.checkJsDirective.enabled===!1)&&(ze.scriptKind===3||ze.scriptKind===4||ze.scriptKind===5||Yn||gn||ze.scriptKind===7),hi=$n?ze.bindDiagnostics:et,ur=$n?kt.getDiagnostics(ze,Ze):et;return Yn&&(hi=tr(hi,oi=>SF.has(oi.code)),ur=tr(ur,oi=>SF.has(oi.code))),de(ze,$n&&!Yn,hi,ur,gn?ze.jsDocDiagnostics:void 0)})}function de(ze,Ze,...kt){var Ut;let gn=ts(kt);if(!Ze||!((Ut=ze.commentDirectives)!=null&&Ut.length))return gn;let{diagnostics:Yn,directives:hn}=ee(ze,ze.commentDirectives,gn);for(let $n of hn.getUnusedExpectations())Yn.push(fie(ze,$n.range,f.Unused_ts_expect_error_directive));return Yn}function ee(ze,Ze,kt){let Ut=tie(ze,Ze);return{diagnostics:kt.filter(Yn=>St(Yn,Ut)===-1),directives:Ut}}function we(ze,Ze){return pu(()=>yo().getSuggestionDiagnostics(ze,Ze))}function St(ze,Ze){let{file:kt,start:Ut}=ze;if(!kt)return-1;let gn=Mg(kt),Yn=zx(gn,Ut).line-1;for(;Yn>=0;){if(Ze.markUsed(Yn))return Yn;let hn=kt.text.slice(gn[Yn],gn[Yn+1]).trim();if(hn!==""&&!/^(\s*)\/\/(.*)$/.test(hn))return-1;Yn--}return-1}function pn(ze){return pu(()=>{let Ze=[];return kt(ze,ze),PN(ze,kt,Ut),Ze;function kt($n,hi){switch(hi.kind){case 169:case 172:case 174:if(hi.questionToken===$n)return Ze.push(hn($n,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(hi.type===$n)return Ze.push(hn($n,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch($n.kind){case 273:if($n.isTypeOnly)return Ze.push(hn(hi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if($n.isTypeOnly)return Ze.push(hn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if($n.isTypeOnly)return Ze.push(hn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,tp($n)?"import...type":"export...type")),"skip";break;case 271:return Ze.push(hn($n,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if($n.isExportEquals)return Ze.push(hn($n,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if($n.token===119)return Ze.push(hn($n,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let oi=ma(120);return C.assertIsDefined(oi),Ze.push(hn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,oi)),"skip";case 267:let mr=$n.flags&32?ma(145):ma(144);return C.assertIsDefined(mr),Ze.push(hn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,mr)),"skip";case 265:return Ze.push(hn($n,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return $n.body?void 0:(Ze.push(hn($n,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Zo=C.checkDefined(ma(94));return Ze.push(hn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,Zo)),"skip";case 235:return Ze.push(hn($n,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Ze.push(hn($n.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Ze.push(hn($n.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:C.fail()}}function Ut($n,hi){if(GH(hi)){let ur=vn(hi.modifiers,Eu);ur&&Ze.push(hn(ur,f.Decorators_are_not_valid_here))}else if(US(hi)&&hi.modifiers){let ur=ri(hi.modifiers,Eu);if(ur>=0){if(Co(hi)&&!G.experimentalDecorators)Ze.push(hn(hi.modifiers[ur],f.Decorators_are_not_valid_here));else if(Tc(hi)){let oi=ri(hi.modifiers,eI);if(oi>=0){let mr=ri(hi.modifiers,X7);if(ur>oi&&mr>=0&&ur=0&&ur=0&&Ze.push(ka(hn(hi.modifiers[Zo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),hn(hi.modifiers[ur],f.Decorator_used_before_export_here)))}}}}}switch(hi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if($n===hi.typeParameters)return Ze.push(Yn($n,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if($n===hi.modifiers)return gn(hi.modifiers,hi.kind===243),"skip";break;case 172:if($n===hi.modifiers){for(let ur of $n)Ia(ur)&&ur.kind!==126&&ur.kind!==129&&Ze.push(hn(ur,f.The_0_modifier_can_only_be_used_in_TypeScript_files,ma(ur.kind)));return"skip"}break;case 169:if($n===hi.modifiers&&Et($n,Ia))return Ze.push(Yn($n,f.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if($n===hi.typeArguments)return Ze.push(Yn($n,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function gn($n,hi){for(let ur of $n)switch(ur.kind){case 87:if(hi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Ze.push(hn(ur,f.The_0_modifier_can_only_be_used_in_TypeScript_files,ma(ur.kind)));break;case 126:case 95:case 90:case 129:}}function Yn($n,hi,...ur){let oi=$n.pos;return Qc(ze,oi,$n.end-oi,hi,...ur)}function hn($n,hi,...ur){return Yf(ze,$n,hi,...ur)}})}function Tr(ze,Ze){return jr(ze,Ze,Me,gr)}function gr(ze,Ze){return pu(()=>{let kt=yo().getEmitResolver(ze,Ze);return Qle(Dn($a),kt,ze)||et})}function jr(ze,Ze,kt,Ut){var gn;let Yn=ze?(gn=kt.perFile)==null?void 0:gn.get(ze.path):kt.allDiagnostics;if(Yn)return Yn;let hn=Ut(ze,Ze);return ze?(kt.perFile||(kt.perFile=new Map)).set(ze.path,hn):kt.allDiagnostics=hn,hn}function Ni(ze,Ze){return ze.isDeclarationFile?[]:Tr(ze,Ze)}function Lr(){return Gx(xo(nr.getGlobalDiagnostics(),$o()))}function $o(){if(!G.configFile)return et;let ze=nr.getDiagnostics(G.configFile.fileName);return Bd(Ze=>{ze=xo(ze,nr.getDiagnostics(Ze.sourceFile.fileName))}),ze}function El(){return ue.length?Gx(yo().getGlobalDiagnostics().slice()):et}function Uc(){return ne||et}function js(ze,Ze,kt,Ut){Pe(va(ze),Ze,kt,void 0,Ut)}function gc(ze,Ze){return ze.fileName===Ze.fileName}function Ts(ze,Ze){return ze.kind===80?Ze.kind===80&&ze.escapedText===Ze.escapedText:Ze.kind===11&&ze.text===Ze.text}function Hc(ze,Ze){let kt=k.createStringLiteral(ze),Ut=k.createImportDeclaration(void 0,void 0,kt,void 0);return JA(Ut,2),qa(kt,Ut),qa(Ut,Ze),kt.flags&=-17,Ut.flags&=-17,kt}function ip(ze){if(ze.imports)return;let Ze=ld(ze),kt=ac(ze),Ut,gn,Yn;if((im(G)||kt)&&!ze.isDeclarationFile){G.importHelpers&&(Ut=[Hc(Hy,ze)]);let ur=j3(V3(G,ze),G);ur&&(Ut||(Ut=[])).push(Hc(ur,ze))}for(let ur of ze.statements)hn(ur,!1);(ze.flags&4194304||Ze)&&$n(ze),ze.imports=Ut||et,ze.moduleAugmentations=gn||et,ze.ambientModuleNames=Yn||et;return;function hn(ur,oi){if(SL(ur)){let mr=uR(ur);mr&&Na(mr)&&mr.text&&(!oi||!Yc(mr.text))&&(Uy(ur,!1),Ut=In(Ut,mr),!Ue&&Xn===0&&!ze.isDeclarationFile&&(Ue=uo(mr.text,"node:")))}else if(Jl(ur)&&Lu(ur)&&(oi||ei(ur,128)||ze.isDeclarationFile)){ur.name.parent=ur;let mr=Zf(ur.name);if(kt||oi&&!Yc(mr))(gn||(gn=[])).push(ur.name);else if(!oi){ze.isDeclarationFile&&(Yn||(Yn=[])).push(mr);let Zo=ur.body;if(Zo)for(let Ka of Zo.statements)hn(Ka,!0)}}}function $n(ur){let oi=/import|require/g;for(;oi.exec(ur.text)!==null;){let mr=hi(ur,oi.lastIndex);Ze&&Sd(mr,!0)||Wp(mr)&&mr.arguments.length>=1&&us(mr.arguments[0])?(Uy(mr,!1),Ut=In(Ut,mr.arguments[0])):zy(mr)&&(Uy(mr,!1),Ut=In(Ut,mr.argument.literal))}}function hi(ur,oi){let mr=ur,Zo=Ka=>{if(Ka.pos<=oi&&(oiTl(gn,hn))){kt&&(W1(gn)?kt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,ze):kt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,ze,"'"+ts(xr).join("', '")+"'"));return}let Yn=Ze(ze);if(kt)if(Yn)R0(Ut)&&gn===Yt.getCanonicalFileName(fl(Ut.file).fileName)&&kt(f.A_file_cannot_have_a_reference_to_itself);else{let hn=Bl(ze);hn?kt(f.Output_file_0_has_not_been_built_from_source_file_1,hn,ze):kt(f.File_0_not_found,ze)}return Yn}else{let gn=G.allowNonTsExtensions&&Ze(ze);if(gn)return gn;if(kt&&G.allowNonTsExtensions){kt(f.File_0_not_found,ze);return}let Yn=Ke(xr[0],hn=>Ze(ze+hn));return kt&&!Yn&&kt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,ze,"'"+ts(xr).join("', '")+"'"),Yn}}function Pe(ze,Ze,kt,Ut,gn){md(ze,Yn=>Qo(Yn,Ze,kt,gn,Ut),(Yn,...hn)=>$r(void 0,gn,Yn,hn),gn)}function wt(ze,Ze){return Pe(ze,!1,!1,void 0,Ze)}function qn(ze,Ze,kt){!R0(kt)&&Et(Ee.get(Ze.path),R0)?$r(Ze,kt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ze.fileName,ze]):$r(Ze,kt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[ze,Ze.fileName])}function So(ze,Ze,kt,Ut,gn,Yn,hn){var $n;let hi=Ah.createRedirectedSourceFile({redirectTarget:ze,unredirected:Ze});return hi.fileName=kt,hi.path=Ut,hi.resolvedPath=gn,hi.originalFileName=Yn,hi.packageJsonLocations=($n=hn.packageJsonLocations)!=null&&$n.length?hn.packageJsonLocations:void 0,hi.packageJsonScope=hn.packageJsonScope,Qt.set(Ut,Xn>0),hi}function Qo(ze,Ze,kt,Ut,gn){var Yn,hn;(Yn=lr)==null||Yn.push(lr.Phase.Program,"findSourceFile",{fileName:ze,isDefaultLib:Ze||void 0,fileIncludeKind:q8[Ut.kind]});let $n=$l(ze,Ze,kt,Ut,gn);return(hn=lr)==null||hn.pop(),$n}function na(ze,Ze,kt,Ut){let gn=LJ(bo(ze,qr),Ze?.getPackageJsonInfoCache(),kt,Ut),Yn=as(Ut),hn=pk(Ut);return typeof gn=="object"?{...gn,languageVersion:Yn,setExternalModuleIndicator:hn,jsDocParsingMode:kt.jsDocParsingMode}:{languageVersion:Yn,impliedNodeFormat:gn,setExternalModuleIndicator:hn,jsDocParsingMode:kt.jsDocParsingMode}}function $l(ze,Ze,kt,Ut,gn){var Yn;let hn=or(ze);if(ot){let mr=Dd(hn);if(!mr&&Yt.realpath&&G.preserveSymlinks&&Su(ze)&&ze.includes(Ih)){let Zo=or(Yt.realpath(ze));Zo!==hn&&(mr=Dd(Zo))}if(mr){let Zo=wo(mr)?Qo(mr,Ze,kt,Ut,gn):void 0;return Zo&&cl(Zo,hn,ze,void 0),Zo}}let $n=ze;if(mt.has(hn)){let mr=mt.get(hn);if(vc(mr||void 0,Ut),mr&&G.forceConsistentCasingInFileNames!==!1){let Zo=mr.fileName;or(Zo)!==or(ze)&&(ze=Bl(ze)||ze);let Qu=xV(Zo,qr),mu=xV(ze,qr);Qu!==mu&&qn(ze,mr,Ut)}return mr&&Qt.get(mr.path)&&Xn===0?(Qt.set(mr.path,!1),G.noResolve||(Dh(mr,Ze),Xg(mr)),G.noLib||Gd(mr),_n.set(mr.path,!1),lt(mr)):mr&&_n.get(mr.path)&&Xn$r(void 0,Ut,f.Cannot_read_file_0_Colon_1,[ze,mr]),yn);if(gn){let mr=Fy(gn),Zo=ja.get(mr);if(Zo){let Ka=So(Zo,oi,ze,hn,or(ze),$n,ur);return wn.add(Zo.path,ze),cl(Ka,hn,ze,hi),vc(Ka,Ut),En.set(hn,w6(gn)),fe.push(Ka),Ka}else oi&&(ja.set(mr,oi),En.set(hn,w6(gn)))}if(cl(oi,hn,ze,hi),oi){if(Qt.set(hn,Xn>0),oi.fileName=ze,oi.path=hn,oi.resolvedPath=or(ze),oi.originalFileName=$n,oi.packageJsonLocations=(Yn=ur.packageJsonLocations)!=null&&Yn.length?ur.packageJsonLocations:void 0,oi.packageJsonScope=ur.packageJsonScope,vc(oi,Ut),Yt.useCaseSensitiveFileNames()){let mr=lh(hn),Zo=Nt.get(mr);Zo?qn(ze,Zo,Ut):Nt.set(mr,oi)}ho=ho||oi.hasNoDefaultLib&&!kt,G.noResolve||(Dh(oi,Ze),Xg(oi)),G.noLib||Gd(oi),lt(oi),Ze?oe.push(oi):fe.push(oi)}return oi}function vc(ze,Ze){ze&&Ee.add(ze.path,Ze)}function cl(ze,Ze,kt,Ut){Ut?(gl(kt,Ut,ze),gl(kt,Ze,ze||!1)):gl(kt,Ze,ze)}function gl(ze,Ze,kt){mt.set(Ze,kt),kt!==void 0?ft.delete(Ze):ft.set(Ze,ze)}function Bl(ze){let Ze=Ql(ze);return Ze&&qc(Ze,ze)}function Ql(ze){if(!(!le||!le.length||Su(ze)||Tl(ze,".json")))return cf(ze)}function qc(ze,Ze){let kt=Ps(ze.commandLine.options);return kt?m0(kt,".d.ts"):$N(Ze,ze.commandLine,!Yt.useCaseSensitiveFileNames())}function cf(ze){pt===void 0&&(pt=new Map,Bd(kt=>{or(G.configFilePath)!==kt.sourceFile.path&&kt.commandLine.fileNames.forEach(Ut=>pt.set(or(Ut),kt.sourceFile.path))}));let Ze=pt.get(or(ze));return Ze&&j_(Ze)}function Bd(ze){return NJ(le,ze)}function Dd(ze){if(Su(ze))return j===void 0&&(j=new Map,Bd(Ze=>{let kt=Ps(Ze.commandLine.options);if(kt){let Ut=m0(kt,".d.ts");j.set(or(Ut),!0)}else{let Ut=Ed(()=>a2(Ze.commandLine,!Yt.useCaseSensitiveFileNames()));Ke(Ze.commandLine.fileNames,gn=>{if(!Su(gn)&&!Tl(gn,".json")){let Yn=$N(gn,Ze.commandLine,!Yt.useCaseSensitiveFileNames(),Ut);j.set(or(Yn),gn)}})}})),j.get(ze)}function Lf(ze){return ot&&!!cf(ze)}function j_(ze){if(We)return We.get(ze)||void 0}function Dh(ze,Ze){Ke(ze.referencedFiles,(kt,Ut)=>{Pe(mF(kt.fileName,ze.fileName),Ze,!1,void 0,{kind:4,file:ze.path,index:Ut})})}function Xg(ze){let Ze=ze.typeReferenceDirectives;if(!Ze.length)return;let kt=nn?.get(ze.path)||Ci(Ze,ze),Ut=vI();(gt??(gt=new Map)).set(ze.path,Ut);for(let gn=0;gn{let{libName:Ut,libFileName:gn}=OIe(Ze);if(gn)js(Ap(gn),!0,!0,{kind:7,file:ze.path,index:kt});else{let Yn=Px(ZD(Ut,"lib."),".d.ts"),hn=QD(Yn,dw,el),$n=hn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,hi=hn?[Ut,hn]:[Ut];(At||(At=[])).push({kind:0,reason:{kind:7,file:ze.path,index:kt},diagnostic:$n,args:hi})}})}function te(ze){return Yt.getCanonicalFileName(ze)}function lt(ze){var Ze;if(ip(ze),ze.imports.length||ze.moduleAugmentations.length){let kt=FIe(ze),Ut=Qe?.get(ze.path)||Mi(kt,ze);C.assert(Ut.length===kt.length);let gn=((Ze=On(ze))==null?void 0:Ze.commandLine.options)||G,Yn=vI();(yt??(yt=new Map)).set(ze.path,Yn);for(let hn=0;hnNn,mu=Ka&&!OJ(gn,$n,ze)&&!gn.noResolve&&hnac(hn)&&!hn.isDeclarationFile);if(G.isolatedModules||G.verbatimModuleSyntax)G.module===0&&Ze<2&&G.isolatedModules&&ps(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),G.preserveConstEnums===!1&&ps(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(kt&&Ze<2&&G.module===0){let hn=hS(kt,typeof kt.externalModuleIndicator=="boolean"?kt:kt.externalModuleIndicator);nr.add(Qc(kt,hn.start,hn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(ze&&!G.emitDeclarationOnly){if(G.module&&!(G.module===2||G.module===4))ps(f.Only_amd_and_system_modules_are_supported_alongside_0,G.out?"out":"outFile","module");else if(G.module===void 0&&kt){let hn=hS(kt,typeof kt.externalModuleIndicator=="boolean"?kt:kt.externalModuleIndicator);nr.add(Qc(kt,hn.start,hn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,G.out?"out":"outFile"))}}if(h0(G)&&(dd(G)===1?ps(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):z3(G)||ps(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),G.outDir||G.rootDir||G.sourceRoot||G.mapRoot){let hn=Vr();G.outDir&&hn===""&&Ne.some($n=>dh($n.fileName)>1)&&ps(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}G.useDefineForClassFields&&Ze===0&&ps(f.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),G.checkJs&&!qy(G)&&nr.add(Vl(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),G.emitDeclarationOnly&&(xf(G)||ps(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),G.noEmit&&ps(f.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),G.emitDecoratorMetadata&&!G.experimentalDecorators&&ps(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),G.jsxFactory?(G.reactNamespace&&ps(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(G.jsx===4||G.jsx===5)&&ps(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",wN.get(""+G.jsx)),_I(G.jsxFactory,Ze)||Lm("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFactory)):G.reactNamespace&&!$p(G.reactNamespace,Ze)&&Lm("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,G.reactNamespace),G.jsxFragmentFactory&&(G.jsxFactory||ps(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(G.jsx===4||G.jsx===5)&&ps(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",wN.get(""+G.jsx)),_I(G.jsxFragmentFactory,Ze)||Lm("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFragmentFactory)),G.reactNamespace&&(G.jsx===4||G.jsx===5)&&ps(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",wN.get(""+G.jsx)),G.jsxImportSource&&G.jsx===2&&ps(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",wN.get(""+G.jsx)),G.preserveValueImports&&ku(G)<5&&ps(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");let Ut=ku(G);G.verbatimModuleSyntax&&((Ut===2||Ut===3||Ut===4)&&ps(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),G.preserveValueImports&&wm("preserveValueImports","verbatimModuleSyntax"),G.importsNotUsedAsValues&&wm("importsNotUsedAsValues","verbatimModuleSyntax")),G.allowImportingTsExtensions&&!(G.noEmit||G.emitDeclarationOnly)&&Lm("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let gn=dd(G);if(G.resolvePackageJsonExports&&!jA(gn)&&ps(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),G.resolvePackageJsonImports&&!jA(gn)&&ps(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),G.customConditions&&!jA(gn)&&ps(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),gn===100&&!W3(Ut)&&Ut!==200&&Lm("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),tC[Ut]&&100<=Ut&&Ut<=199&&!(3<=gn&&gn<=99)){let hn=tC[Ut];Lm("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,hn,hn)}else if(Fx[gn]&&3<=gn&&gn<=99&&!(100<=Ut&&Ut<=199)){let hn=Fx[gn];Lm("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,hn,hn)}if(!G.noEmit&&!G.suppressOutputPathCheck){let hn=Dn(),$n=new Set;cJ(hn,hi=>{G.emitDeclarationOnly||Yn(hi.jsFilePath,$n),Yn(hi.declarationFilePath,$n)})}function Yn(hn,$n){if(hn){let hi=or(hn);if(mt.has(hi)){let oi;G.configFilePath||(oi=Uo(void 0,f.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)),oi=Uo(oi,f.Cannot_write_file_0_because_it_would_overwrite_input_file,hn),mE(hn,O3(oi))}let ur=Yt.useCaseSensitiveFileNames()?hi:lh(hi);$n.has(ur)?mE(hn,Vl(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,hn)):$n.add(ur)}}}function Ae(){let ze=G.ignoreDeprecations;if(ze){if(ze==="5.0")return new vm(ze);Y()}return vm.zero}function st(ze,Ze,kt,Ut){let gn=new vm(ze),Yn=new vm(Ze),hn=new vm(ye||_e),$n=Ae(),hi=Yn.compareTo(hn)!==1,ur=!hi&&$n.compareTo(gn)===-1;(hi||ur)&&Ut((oi,mr,Zo)=>{hi?mr===void 0?kt(oi,mr,Zo,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,oi):kt(oi,mr,Zo,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,oi,mr):mr===void 0?kt(oi,mr,Zo,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,oi,Ze,ze):kt(oi,mr,Zo,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,oi,mr,Ze,ze)})}function Ht(){function ze(Ze,kt,Ut,gn,...Yn){if(Ut){let hn=Uo(void 0,f.Use_0_instead,Ut),$n=Uo(hn,gn,...Yn);Ji(!kt,Ze,void 0,$n)}else Ji(!kt,Ze,void 0,gn,...Yn)}st("5.0","5.5",ze,Ze=>{G.target===0&&Ze("target","ES3"),G.noImplicitUseStrict&&Ze("noImplicitUseStrict"),G.keyofStringsOnly&&Ze("keyofStringsOnly"),G.suppressExcessPropertyErrors&&Ze("suppressExcessPropertyErrors"),G.suppressImplicitAnyIndexErrors&&Ze("suppressImplicitAnyIndexErrors"),G.noStrictGenericChecks&&Ze("noStrictGenericChecks"),G.charset&&Ze("charset"),G.out&&Ze("out",void 0,"outFile"),G.importsNotUsedAsValues&&Ze("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),G.preserveValueImports&&Ze("preserveValueImports",void 0,"verbatimModuleSyntax")})}function rr(ze,Ze,kt){function Ut(gn,Yn,hn,$n,...hi){km(Ze,kt,$n,...hi)}st("5.0","5.5",Ut,gn=>{ze.prepend&&gn("prepend")})}function si(ze,Ze,kt,Ut){var gn;let Yn,hn,$n=R0(Ze)?Ze:void 0;ze&&((gn=Ee.get(ze.path))==null||gn.forEach(Zo)),Ze&&Zo(Ze),$n&&Yn?.length===1&&(Yn=void 0);let hi=$n&&ZN(mn,$n),ur=Yn&&Uo(Yn,f.The_file_is_in_the_program_because_Colon),oi=ze&&ZJ(ze),mr=Uo(oi?ur?[ur,...oi]:oi:ur,kt,...Ut||et);return hi&&l2(hi)?V6(hi.file,hi.pos,hi.end-hi.pos,mr,hn):O3(mr,hn);function Zo(Ka){(Yn||(Yn=[])).push(nK(mn,Ka)),!$n&&R0(Ka)?$n=Ka:$n!==Ka&&(hn=In(hn,Oa(Ka))),Ka===Ze&&(Ze=void 0)}}function $r(ze,Ze,kt,Ut){(At||(At=[])).push({kind:1,file:ze&&ze.path,fileProcessingReason:Ze,diagnostic:kt,args:Ut})}function so(ze,Ze,kt){nr.add(si(ze,void 0,Ze,kt))}function Oa(ze){if(R0(ze)){let Ut=ZN(mn,ze),gn;switch(ze.kind){case 3:gn=f.File_is_included_via_import_here;break;case 4:gn=f.File_is_included_via_reference_here;break;case 5:gn=f.File_is_included_via_type_library_reference_here;break;case 7:gn=f.File_is_included_via_library_reference_here;break;default:C.assertNever(ze)}return l2(Ut)?Qc(Ut.file,Ut.pos,Ut.end-Ut.pos,gn):void 0}if(!G.configFile)return;let Ze,kt;switch(ze.kind){case 0:if(!G.configFile.configFileSpecs)return;let Ut=bo(ue[ze.index],qr),gn=eK(mn,Ut);if(gn){Ze=X6(G.configFile,"files",gn),kt=f.File_is_matched_by_files_list_specified_here;break}let Yn=tK(mn,Ut);if(!Yn||!wo(Yn))return;Ze=X6(G.configFile,"include",Yn),kt=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let hn=C.checkDefined(le?.[ze.index]),$n=hF(he,le,(Zo,Ka,Qu)=>Zo===hn?{sourceFile:Ka?.sourceFile||G.configFile,index:Qu}:void 0);if(!$n)return;let{sourceFile:hi,index:ur}=$n,oi=DL(hi,"references",Zo=>pd(Zo.initializer)?Zo.initializer:void 0);return oi&&oi.elements.length>ur?Yf(hi,oi.elements[ur],ze.kind===2?f.File_is_output_from_referenced_project_specified_here:f.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!G.types)return;Ze=cb("types",ze.typeReference),kt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(ze.index!==void 0){Ze=cb("lib",G.lib[ze.index]),kt=f.File_is_library_specified_here;break}let mr=Bc(fw.type,(Zo,Ka)=>Zo===as(G)?Ka:void 0);Ze=mr?Vd("target",mr):void 0,kt=f.File_is_default_library_for_target_specified_here;break;default:C.assertNever(ze)}return Ze&&Yf(G.configFile,Ze,kt)}function Fa(){let ze=G.suppressOutputPathCheck?void 0:Kv(G);hF(he,le,(Ze,kt,Ut)=>{let gn=(kt?kt.commandLine.projectReferences:he)[Ut],Yn=kt&&kt.sourceFile;if(rr(gn,Yn,Ut),!Ze){km(Yn,Ut,f.File_0_not_found,gn.path);return}let hn=Ze.commandLine.options;if((!hn.composite||hn.noEmit)&&(kt?kt.commandLine.fileNames:ue).length&&(hn.composite||km(Yn,Ut,f.Referenced_project_0_must_have_setting_composite_Colon_true,gn.path),hn.noEmit&&km(Yn,Ut,f.Referenced_project_0_may_not_disable_emit,gn.path)),gn.prepend){let $n=Ps(hn);$n?Yt.fileExists($n)||km(Yn,Ut,f.Output_file_0_from_project_1_does_not_exist,$n,gn.path):km(Yn,Ut,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,gn.path)}!kt&&ze&&ze===Kv(hn)&&(km(Yn,Ut,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,ze,gn.path),tt.set(or(ze),!0))})}function wl(ze,Ze,kt,...Ut){let gn=!0;Ip(Yn=>{wa(Yn.initializer)&&iR(Yn.initializer,ze,hn=>{let $n=hn.initializer;pd($n)&&$n.elements.length>Ze&&(nr.add(Yf(G.configFile,$n.elements[Ze],kt,...Ut)),gn=!1)})}),gn&&nr.add(Vl(kt,...Ut))}function fu(ze,Ze,kt,...Ut){let gn=!0;Ip(Yn=>{wa(Yn.initializer)&&ry(Yn.initializer,ze,Ze,void 0,kt,...Ut)&&(gn=!1)}),gn&&nr.add(Vl(kt,...Ut))}function xc(ze,Ze){return iR($g(),ze,Ze)}function Ip(ze){return xc("paths",ze)}function Vd(ze,Ze){return xc(ze,kt=>Na(kt.initializer)&&kt.initializer.text===Ze?kt.initializer:void 0)}function cb(ze,Ze){let kt=$g();return kt&&Sie(kt,ze,Ze)}function ps(ze,Ze,kt,Ut){Ji(!0,Ze,kt,ze,Ze,kt,Ut)}function Lm(ze,Ze,...kt){Ji(!1,ze,void 0,Ze,...kt)}function km(ze,Ze,kt,...Ut){let gn=DL(ze||G.configFile,"references",Yn=>pd(Yn.initializer)?Yn.initializer:void 0);gn&&gn.elements.length>Ze?nr.add(Yf(ze||G.configFile,gn.elements[Ze],kt,...Ut)):nr.add(Vl(kt,...Ut))}function Ji(ze,Ze,kt,Ut,...gn){let Yn=$g();(!Yn||!ry(Yn,ze,Ze,kt,Ut,...gn))&&("messageText"in Ut?nr.add(O3(Ut)):nr.add(Vl(Ut,...gn)))}function $g(){return zt===void 0&&(zt=iR(IC(G.configFile),"compilerOptions",ze=>wa(ze.initializer)?ze.initializer:void 0)||!1),zt||void 0}function ry(ze,Ze,kt,Ut,gn,...Yn){let hn=!1;return iR(ze,kt,$n=>{"messageText"in gn?nr.add(Og(G.configFile,Ze?$n.name:$n.initializer,gn)):nr.add(Yf(G.configFile,Ze?$n.name:$n.initializer,gn,...Yn)),hn=!0},Ut),hn}function wm(ze,Ze){let kt=$g();kt?ry(kt,!0,ze,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze):ps(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze)}function mE(ze,Ze){tt.set(or(ze),!0),nr.add(Ze)}function _E(ze){if(G.noEmit)return!1;let Ze=or(ze);if(fl(Ze))return!1;let kt=Ps(G);if(kt)return uf(Ze,kt)||uf(Ze,Td(kt)+".d.ts");if(G.declarationDir&&ym(G.declarationDir,Ze,qr,!Yt.useCaseSensitiveFileNames()))return!0;if(G.outDir)return ym(G.outDir,Ze,qr,!Yt.useCaseSensitiveFileNames());if(Ec(Ze,LR)||Su(Ze)){let Ut=Td(Ze);return!!fl(Ut+".ts")||!!fl(Ut+".tsx")}return!1}function uf(ze,Ze){return Pg(ze,Ze,qr,!Yt.useCaseSensitiveFileNames())===0}function U_(){return Yt.getSymlinkCache?Yt.getSymlinkCache():(me||(me=TU(qr,te)),Ne&&!me.hasProcessedResolutions()&&me.setSymlinksFromResolutions(w,ae,je),me)}function df(ze,Ze){var kt;let Ut=((kt=On(ze))==null?void 0:kt.commandLine.options)||G;return RJ(ze,Ze,Ut)}function Qg(ze,Ze){return df(ze,Gw(ze,Ze))}}function kje(e){let t,r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:$a,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=I=>i.call(e.compilerHost,I)?(b(I),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{let M=Ps(R.commandLine.options);if(M)t.add(li(e.toPath(M)));else{let N=R.commandLine.options.declarationDir||R.commandLine.options.outDir;N&&t.add(e.toPath(N))}})),T(I,!1)):!1),o&&(e.compilerHost.getDirectories=I=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,I)?o.call(e.compilerHost,I):[]),s&&(e.compilerHost.realpath=I=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(I)))||s.call(e.compilerHost,I)}),{onProgramCreateComplete:u,fileExists:p,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(I){return r.call(e.compilerHost,I)?!0:!e.getResolvedProjectReferences()||!Su(I)?!1:T(I,!0)}function g(I){let R=e.getSourceOfProjectReferenceRedirect(e.toPath(I));return R!==void 0?wo(R)?r.call(e.compilerHost,R):!0:void 0}function m(I){let R=e.toPath(I),M=`${R}${il}`;return mh(t,N=>R===N||uo(N,M)||uo(R,`${N}/`))}function b(I){var R;if(!e.getResolvedProjectReferences()||iN(I)||!s||!I.includes(Ih))return;let M=e.getSymlinkCache(),N=zc(e.toPath(I));if((R=M.getSymlinkedDirectories())!=null&&R.has(N))return;let O=va(s.call(e.compilerHost,I)),H;if(O===I||(H=zc(e.toPath(O)))===N){M.setSymlinkedDirectory(N,!1);return}M.setSymlinkedDirectory(I,{real:zc(O),realPath:H})}function T(I,R){var M;let N=R?V=>g(V):V=>m(V),O=N(I);if(O!==void 0)return O;let H=e.getSymlinkCache(),K=H.getSymlinkedDirectories();if(!K)return!1;let Z=e.toPath(I);return Z.includes(Ih)?R&&((M=H.getSymlinkedFiles())!=null&&M.has(Z))?!0:ir(K.entries(),([V,ue])=>{if(!ue||!uo(Z,V))return;let G=N(Z.replace(V,ue.realPath));if(R&&G){let ne=bo(I,e.compilerHost.getCurrentDirectory());H.setSymlinkedFile(Z,`${ue.real}${ne.replace(new RegExp(V,"i"),"")}`)}return G})||!1:!1}}function kJ(e,t,r,i){let o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||Ps(o)?TF:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&xf(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!Ps(o)){let u=e.emitBuildInfo(r,i);u.diagnostics&&(s=[...s,...u.diagnostics]),l=u.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function yF(e,t){return tr(e,r=>!r.skippedOn||!t[r.skippedOn])}function bF(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return C.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),directoryExists:oa(t,t.directoryExists),getDirectories:oa(t,t.getDirectories),realpath:oa(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Xb,trace:e.trace?r=>e.trace(r):void 0}}function wJ(e,t,r,i){if(!e)return et;let o;for(let s=0;si);for(let i of t)i.kind===11&&r.push(i);return r}function Gw({imports:e,moduleAugmentations:t},r){if(r(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(FJ||{}),WJ="\x1B[7m",zJ=" ",dce="\x1B[0m",pce="...",WIe=" ",fce=" ",mce={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},EF={getName:uce,getMode:(e,t,r)=>xJ(t,e,r)},zIe={getName:CJ,getMode:(e,t)=>Ww(e,t?.impliedNodeFormat)},u2="__inferred type names__.ts",SF=new Set([f.Cannot_redeclare_block_scoped_variable_0.code,f.A_module_cannot_have_multiple_default_exports.code,f.Another_export_default_is_here.code,f.The_first_export_default_is_here.code,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,f.constructor_is_a_reserved_word.code,f.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,f.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,f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,f.Invalid_use_of_0_in_strict_mode.code,f.A_label_is_not_allowed_here.code,f.with_statements_are_not_allowed_in_strict_mode.code,f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,f.A_class_declaration_without_the_default_modifier_must_have_a_name.code,f.A_class_member_cannot_have_the_0_keyword.code,f.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,f.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,f.A_destructuring_declaration_must_have_an_initializer.code,f.A_get_accessor_cannot_have_parameters.code,f.A_rest_element_cannot_contain_a_binding_pattern.code,f.A_rest_element_cannot_have_a_property_name.code,f.A_rest_element_cannot_have_an_initializer.code,f.A_rest_element_must_be_last_in_a_destructuring_pattern.code,f.A_rest_parameter_cannot_have_an_initializer.code,f.A_rest_parameter_must_be_last_in_a_parameter_list.code,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,f.A_return_statement_cannot_be_used_inside_a_class_static_block.code,f.A_set_accessor_cannot_have_rest_parameter.code,f.A_set_accessor_must_have_exactly_one_parameter.code,f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_export_declaration_cannot_have_modifiers.code,f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_import_declaration_cannot_have_modifiers.code,f.An_object_member_cannot_be_declared_optional.code,f.Argument_of_dynamic_import_cannot_be_spread_element.code,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,f.Cannot_redeclare_identifier_0_in_catch_clause.code,f.Catch_clause_variable_cannot_have_an_initializer.code,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,f.Classes_can_only_extend_a_single_class.code,f.Classes_may_not_have_a_field_named_constructor.code,f.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,f.Duplicate_label_0.code,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,f.for_await_loops_cannot_be_used_inside_a_class_static_block.code,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,f.Jump_target_cannot_cross_function_boundary.code,f.Line_terminator_not_permitted_before_arrow.code,f.Modifiers_cannot_appear_here.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,f.Private_identifiers_are_not_allowed_outside_class_bodies.code,f.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,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,f.Trailing_comma_not_allowed.code,f.Variable_declaration_list_cannot_be_empty.code,f._0_and_1_operations_cannot_be_mixed_without_parentheses.code,f._0_expected.code,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,f._0_list_cannot_be_empty.code,f._0_modifier_already_seen.code,f._0_modifier_cannot_appear_on_a_constructor_declaration.code,f._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,f._0_modifier_cannot_appear_on_a_parameter.code,f._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,f._0_modifier_cannot_be_used_here.code,f._0_modifier_must_precede_1_modifier.code,f._0_declarations_can_only_be_declared_inside_a_block.code,f._0_declarations_must_be_initialized.code,f.extends_clause_already_seen.code,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,f.Class_constructor_may_not_be_a_generator.code,f.Class_constructor_may_not_be_an_accessor.code,f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Private_field_0_must_be_declared_in_an_enclosing_class.code,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),TF={diagnostics:et,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),Oje=A({"src/compiler/builderStatePublic.ts"(){"use strict"}});function _ce(e,t,r,i,o,s){let l=[],{emitSkipped:u,diagnostics:p}=e.emit(t,g,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:p};function g(m,b,T){l.push({name:m,writeByteOrderMark:T,text:b})}}var Pm,Fje=A({"src/compiler/builderState.ts"(){"use strict";ia(),(e=>{function t(){function $(Y,oe,fe){let Ne={getKeys:me=>oe.get(me),getValues:me=>Y.get(me),keys:()=>Y.keys(),deleteKey:me=>{(fe||(fe=new Set)).add(me);let ie=Y.get(me);return ie?(ie.forEach(ve=>i(oe,ve,me)),Y.delete(me),!0):!1},set:(me,ie)=>{fe?.delete(me);let ve=Y.get(me);return Y.set(me,ie),ve?.forEach(Le=>{ie.has(Le)||i(oe,Le,me)}),ie.forEach(Le=>{ve?.has(Le)||r(oe,Le,me)}),Ne}};return Ne}return $(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r($,Y,oe){let fe=$.get(Y);fe||(fe=new Set,$.set(Y,fe)),fe.add(oe)}function i($,Y,oe){let fe=$.get(Y);return fe?.delete(oe)?(fe.size||$.delete(Y),!0):!1}function o($){return Vi($.declarations,Y=>{var oe;return(oe=Vn(Y))==null?void 0:oe.resolvedPath})}function s($,Y){let oe=$.getSymbolAtLocation(Y);return oe&&o(oe)}function l($,Y,oe,fe){return rl($.getProjectReferenceRedirect(Y)||Y,oe,fe)}function u($,Y,oe){let fe;if(Y.imports&&Y.imports.length>0){let ve=$.getTypeChecker();for(let Le of Y.imports){let He=s(ve,Le);He?.forEach(ie)}}let Ne=li(Y.resolvedPath);if(Y.referencedFiles&&Y.referencedFiles.length>0)for(let ve of Y.referencedFiles){let Le=l($,ve.fileName,Ne,oe);ie(Le)}if($.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ve})=>{if(!ve)return;let Le=ve.resolvedFileName,He=l($,Le,Ne,oe);ie(He)},Y),Y.moduleAugmentations.length){let ve=$.getTypeChecker();for(let Le of Y.moduleAugmentations){if(!Na(Le))continue;let He=ve.getSymbolAtLocation(Le);He&&me(He)}}for(let ve of $.getTypeChecker().getAmbientModules())ve.declarations&&ve.declarations.length>1&&me(ve);return fe;function me(ve){if(ve.declarations)for(let Le of ve.declarations){let He=Vn(Le);He&&He!==Y&&ie(He.resolvedPath)}}function ie(ve){(fe||(fe=new Set)).add(ve)}}function p($,Y){return Y&&!Y.referencedMap==!$}e.canReuseOldState=p;function g($,Y,oe){var fe,Ne,me;let ie=new Map,ve=$.getCompilerOptions(),Le=Ps(ve),He=ve.module!==0&&!Le?t():void 0,Ee=He?t():void 0,Ce=p(He,Y);$.getTypeChecker();for(let Me of $.getSourceFiles()){let Fe=C.checkDefined(Me.version,"Program intended to be used with Builder should have source files with versions set"),At=Ce?(fe=Y.oldSignatures)==null?void 0:fe.get(Me.resolvedPath):void 0,Se=At===void 0?Ce?(Ne=Y.fileInfos.get(Me.resolvedPath))==null?void 0:Ne.signature:void 0:At||void 0;if(He){let je=u($,Me,$.getCanonicalFileName);if(je&&He.set(Me.resolvedPath,je),Ce){let at=(me=Y.oldExportedModulesMap)==null?void 0:me.get(Me.resolvedPath),Bt=at===void 0?Y.exportedModulesMap.getValues(Me.resolvedPath):at||void 0;Bt&&Ee.set(Me.resolvedPath,Bt)}}ie.set(Me.resolvedPath,{version:Fe,signature:Se,affectsGlobalScope:Le?void 0:G(Me)||void 0,impliedFormat:Me.impliedNodeFormat})}return{fileInfos:ie,referencedMap:He,exportedModulesMap:Ee,useFileVersionAsSignature:!oe&&!Ce}}e.create=g;function m($){$.allFilesExcludingDefaultLibraryFile=void 0,$.allFileNames=void 0}e.releaseCache=m;function b($,Y,oe,fe,Ne){var me,ie;let ve=T($,Y,oe,fe,Ne);return(me=$.oldSignatures)==null||me.clear(),(ie=$.oldExportedModulesMap)==null||ie.clear(),ve}e.getFilesAffectedBy=b;function T($,Y,oe,fe,Ne){let me=Y.getSourceFileByPath(oe);return me?M($,Y,me,fe,Ne)?($.referencedMap?ye:he)($,Y,me,fe,Ne):[me]:et}e.getFilesAffectedByWithOldState=T;function I($,Y,oe){$.fileInfos.get(oe).signature=Y,($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(oe)}e.updateSignatureOfFile=I;function R($,Y,oe,fe,Ne){$.emit(Y,(me,ie,ve,Le,He,Ee)=>{C.assert(Su(me),`File extension for signature expected to be dts: Got:: ${me}`),Ne(GJ($,Y,ie,fe,Ee),He)},oe,!0,void 0,!0)}e.computeDtsSignature=R;function M($,Y,oe,fe,Ne,me=$.useFileVersionAsSignature){var ie;if((ie=$.hasCalledUpdateShapeSignature)!=null&&ie.has(oe.resolvedPath))return!1;let ve=$.fileInfos.get(oe.resolvedPath),Le=ve.signature,He;if(!oe.isDeclarationFile&&!me&&R(Y,oe,fe,Ne,(Ee,Ce)=>{He=Ee,He!==Le&&N($,oe,Ce[0].exportedModulesFromDeclarationEmit)}),He===void 0&&(He=oe.version,$.exportedModulesMap&&He!==Le)){($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(oe.resolvedPath,$.exportedModulesMap.getValues(oe.resolvedPath)||!1);let Ee=$.referencedMap?$.referencedMap.getValues(oe.resolvedPath):void 0;Ee?$.exportedModulesMap.set(oe.resolvedPath,Ee):$.exportedModulesMap.deleteKey(oe.resolvedPath)}return($.oldSignatures||($.oldSignatures=new Map)).set(oe.resolvedPath,Le||!1),($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(oe.resolvedPath),ve.signature=He,He!==Le}e.updateShapeSignature=M;function N($,Y,oe){if(!$.exportedModulesMap)return;($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(Y.resolvedPath,$.exportedModulesMap.getValues(Y.resolvedPath)||!1);let fe=O(oe);fe?$.exportedModulesMap.set(Y.resolvedPath,fe):$.exportedModulesMap.deleteKey(Y.resolvedPath)}e.updateExportedModules=N;function O($){let Y;return $?.forEach(oe=>o(oe).forEach(fe=>(Y??(Y=new Set)).add(fe))),Y}e.getExportedModules=O;function H($,Y,oe){let fe=Y.getCompilerOptions();if(Ps(fe)||!$.referencedMap||G(oe))return K($,Y);let Ne=new Set,me=[oe.resolvedPath];for(;me.length;){let ie=me.pop();if(!Ne.has(ie)){Ne.add(ie);let ve=$.referencedMap.getValues(ie);if(ve)for(let Le of ve.keys())me.push(Le)}}return Vo(tS(Ne.keys(),ie=>{var ve;return((ve=Y.getSourceFileByPath(ie))==null?void 0:ve.fileName)??ie}))}e.getAllDependencies=H;function K($,Y){if(!$.allFileNames){let oe=Y.getSourceFiles();$.allFileNames=oe===et?et:oe.map(fe=>fe.fileName)}return $.allFileNames}function Z($,Y){let oe=$.referencedMap.getKeys(Y);return oe?Vo(oe.keys()):[]}e.getReferencedByPaths=Z;function V($){for(let Y of $.statements)if(!B6(Y))return!1;return!0}function ue($){return Et($.moduleAugmentations,Y=>I_(Y.parent))}function G($){return ue($)||!Fp($)&&!$f($)&&!V($)}function ne($,Y,oe){if($.allFilesExcludingDefaultLibraryFile)return $.allFilesExcludingDefaultLibraryFile;let fe;oe&&Ne(oe);for(let me of Y.getSourceFiles())me!==oe&&Ne(me);return $.allFilesExcludingDefaultLibraryFile=fe||et,$.allFilesExcludingDefaultLibraryFile;function Ne(me){Y.isSourceFileDefaultLibrary(me)||(fe||(fe=[])).push(me)}}e.getAllFilesExcludingDefaultLibraryFile=ne;function he($,Y,oe){let fe=Y.getCompilerOptions();return fe&&Ps(fe)?[oe]:ne($,Y,oe)}function ye($,Y,oe,fe,Ne){if(G(oe))return ne($,Y,oe);let me=Y.getCompilerOptions();if(me&&(im(me)||Ps(me)))return[oe];let ie=new Map;ie.set(oe.resolvedPath,oe);let ve=Z($,oe.resolvedPath);for(;ve.length>0;){let Le=ve.pop();if(!ie.has(Le)){let He=Y.getSourceFileByPath(Le);ie.set(Le,He),He&&M($,Y,He,fe,Ne)&&ve.push(...Z($,He.resolvedPath))}}return Vo(tS(ie.values(),Le=>Le))}})(Pm||(Pm={}))}});function rb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),xf(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function d2(e,t){let r=t&&(Rv(t)?t:rb(t)),i=Rv(e)?e:rb(e);if(r===i)return 0;if(!r||!i)return i;let o=r^i,s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function Wje(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!mh(e,r=>!t.has(r))}function zje(e,t){var r,i;let o=Pm.create(e,t,!1);o.program=e;let s=e.getCompilerOptions();o.compilerOptions=s;let l=Ps(s);l?s.composite&&t?.outSignature&&l===Ps(t?.compilerOptions)&&(o.outSignature=t.outSignature&&GIe(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0;let u=Pm.canReuseOldState(o.referencedMap,t),p=u?t.compilerOptions:void 0,g=u&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!Poe(s,p),m=s.composite&&t?.emitSignatures&&!l&&!Loe(s,t.compilerOptions);u?((r=t.changedFilesSet)==null||r.forEach(M=>o.changedFilesSet.add(M)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;let b=o.referencedMap,T=u?t.referencedMap:void 0,I=g&&!s.skipLibCheck==!p.skipLibCheck,R=I&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((M,N)=>{var O;let H,K;if(!u||!(H=t.fileInfos.get(N))||H.version!==M.version||H.impliedFormat!==M.impliedFormat||!Wje(K=b&&b.getValues(N),T&&T.getValues(N))||K&&mh(K,Z=>!o.fileInfos.has(Z)&&t.fileInfos.has(Z)))BIe(o,N);else{let Z=e.getSourceFileByPath(N),V=(O=t.emitDiagnosticsPerFile)==null?void 0:O.get(N);if(V&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(N,t.hasReusableDiagnostic?UIe(V,e):VIe(V,e)),g){if(Z.isDeclarationFile&&!I||Z.hasNoDefaultLib&&!R)return;let ue=t.semanticDiagnosticsPerFile.get(N);ue&&(o.semanticDiagnosticsPerFile.set(N,t.hasReusableDiagnostic?UIe(ue,e):VIe(ue,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(N))}}if(m){let Z=t.emitSignatures.get(N);Z&&(o.emitSignatures??(o.emitSignatures=new Map)).set(N,GIe(s,t.compilerOptions,Z))}}),u&&Bc(t.fileInfos,(M,N)=>o.fileInfos.has(N)?!1:l||M.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))Pm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(M=>BIe(o,M.resolvedPath));else if(p){let M=Moe(s,p)?rb(s):d2(s,p);M!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|M:M:(e.getSourceFiles().forEach(N=>{o.changedFilesSet.has(N.resolvedPath)||Ece(o,N.resolvedPath,M)}),C.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(u&&(o.bundle=t.bundle),Et(e.getProjectReferences(),M=>!!M.prepend)&&(o.programEmitPending=rb(s))),o}function BIe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function GIe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:wo(r)?[r]:r[0]}function VIe(e,t){return e.length?Io(e,r=>{if(wo(r.messageText))return r;let i=hce(r.messageText,r.file,t,o=>{var s;return(s=o.repopulateInfo)==null?void 0:s.call(o)});return i===r.messageText?r:{...r,messageText:i}}):e}function hce(e,t,r,i){let o=i(e);if(o)return{...k6(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:jIe(e.next,t,r,i)};let s=jIe(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function jIe(e,t,r,i){return Io(e,o=>hce(o,t,r,i))}function UIe(e,t){if(!e.length)return et;let r;return e.map(o=>{let s=HIe(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;let{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(u=>HIe(u,t,i)):[]:void 0,s});function i(o){return r??(r=li(bo(Kv(t.getCompilerOptions()),t.getCurrentDirectory()))),rl(o,r,t.getCanonicalFileName)}}function HIe(e,t,r){let{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:wo(e.messageText)?e.messageText:hce(e.messageText,o,t,s=>s.info)}}function Bje(e){Pm.releaseCache(e),e.program=void 0}function Gje(e){let t=Ps(e.compilerOptions);return C.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,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function Vje(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,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function qIe(e,t){C.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function JIe(e,t,r){for(var i,o;;){let{affectedFiles:s}=e;if(s){let g=e.seenAffectedFiles,m=e.affectedFilesIndex;for(;m{let s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function Uje(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return Bc(e.affectedFilesPendingEmit,(i,o)=>{var s;let l=e.program.getSourceFileByPath(o);if(!l||!AS(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}let u=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath),p=d2(i,u);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function Hje(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return Bc(e.emitDiagnosticsPerFile,(r,i)=>{var o;let s=e.program.getSourceFileByPath(i);if(!s||!AS(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}let l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function KIe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=C.checkDefined(e.program),r=t.getCompilerOptions();Ke(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!eN(i,r,t)&&gce(e,i.resolvedPath))}}function qje(e,t,r,i){if(gce(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){KIe(e),Pm.updateShapeSignature(e,C.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Jje(e,t,r,i)}function BJ(e,t,r,i){if(gce(e,t),!e.changedFilesSet.has(t)){let o=C.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(Pm.updateShapeSignature(e,o,s,r,i,!0),xf(e.compilerOptions)&&Ece(e,t,e.compilerOptions.declarationMap?24:8))}}function gce(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function XIe(e,t){let r=C.checkDefined(e.oldSignatures).get(t)||void 0;return C.checkDefined(e.fileInfos.get(t)).signature!==r}function vce(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(Pm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>BJ(e,s.resolvedPath,r,i)),KIe(e),!0):!1}function Jje(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!XIe(e,t.resolvedPath))return;if(im(e.compilerOptions)){let l=new Map;l.set(t.resolvedPath,!0);let u=Pm.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){let p=u.pop();if(!l.has(p)){if(l.set(p,!0),vce(e,p,r,i))return;if(BJ(e,p,r,i),XIe(e,p)){let g=C.checkDefined(e.program).getSourceFileByPath(p);u.push(...Pm.getReferencedByPaths(e,g.resolvedPath))}}}}let s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(vce(e,l,r,i))return!0;let u=e.referencedMap.getKeys(l);return u&&mh(u,p=>YIe(e,p,s,r,i))})}function YIe(e,t,r,i,o){var s,l;if(Av(r,t)){if(vce(e,t,i,o))return!0;BJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(u=>YIe(e,u,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>!r.has(u)&&BJ(e,u,i,o))}}function yce(e,t,r){return xo(Kje(e,t,r),C.checkDefined(e.program).getProgramDiagnostics(t))}function Kje(e,t,r){let i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){let s=e.semanticDiagnosticsPerFile.get(i);if(s)return yF(s,e.compilerOptions)}let o=C.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),yF(o,e.compilerOptions)}function bce(e){return!!Ps(e.options||{})}function Xje(e,t){var r,i,o;let s=C.checkDefined(e.program).getCurrentDirectory(),l=li(bo(Kv(e.compilerOptions),s)),u=e.latestChangedDtsFile?ue(e.latestChangedDtsFile):void 0,p=[],g=new Map,m=[];if(Ps(e.compilerOptions)){let ve=Vo(e.fileInfos.entries(),([Fe,At])=>{let Se=ne(Fe);return ye(Fe,Se),At.impliedFormat?{version:At.version,impliedFormat:At.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:At.version}),Le={fileNames:p,fileInfos:ve,root:m,options:$(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===rb(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:He,dts:Ee,commonSourceDirectory:Ce,sourceFiles:Me}=t;return e.bundle=t={commonSourceDirectory:Ce,sourceFiles:Me,js:He||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:Ee||(xf(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},Mw(Le,t)}let b,T,I,R=Vo(e.fileInfos.entries(),([ve,Le])=>{var He,Ee;let Ce=ne(ve);ye(ve,Ce),C.assert(p[Ce-1]===G(ve));let Me=(He=e.oldSignatures)==null?void 0:He.get(ve),Fe=Me!==void 0?Me||void 0:Le.signature;if(e.compilerOptions.composite){let At=e.program.getSourceFileByPath(ve);if(!$f(At)&&AS(At,e.program)){let Se=(Ee=e.emitSignatures)==null?void 0:Ee.get(ve);Se!==Fe&&(I||(I=[])).push(Se===void 0?Ce:[Ce,!wo(Se)&&Se[0]===Fe?et:Se])}}return Le.version===Fe?Le.affectsGlobalScope||Le.impliedFormat?{version:Le.version,signature:void 0,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}:Le.version:Fe!==void 0?Me===void 0?Le:{version:Le.version,signature:Fe,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}:{version:Le.version,signature:!1,affectsGlobalScope:Le.affectsGlobalScope,impliedFormat:Le.impliedFormat}}),M;e.referencedMap&&(M=Vo(e.referencedMap.keys()).sort(ju).map(ve=>[ne(ve),he(e.referencedMap.getValues(ve))]));let N;e.exportedModulesMap&&(N=Vi(Vo(e.exportedModulesMap.keys()).sort(ju),ve=>{var Le;let He=(Le=e.oldExportedModulesMap)==null?void 0:Le.get(ve);if(He===void 0)return[ne(ve),he(e.exportedModulesMap.getValues(ve))];if(He)return[ne(ve),he(He)]}));let O=oe(e.semanticDiagnosticsPerFile),H;if((o=e.affectedFilesPendingEmit)!=null&&o.size){let ve=rb(e.compilerOptions),Le=new Set;for(let He of Vo(e.affectedFilesPendingEmit.keys()).sort(ju))if(Av(Le,He)){let Ee=e.program.getSourceFileByPath(He);if(!Ee||!AS(Ee,e.program))continue;let Ce=ne(He),Me=e.affectedFilesPendingEmit.get(He);(H||(H=[])).push(Me===ve?Ce:Me===8?[Ce]:[Ce,Me])}}let K;if(e.changedFilesSet.size)for(let ve of Vo(e.changedFilesSet.keys()).sort(ju))(K||(K=[])).push(ne(ve));let Z=oe(e.emitDiagnosticsPerFile),V={fileNames:p,fileInfos:R,root:m,options:$(e.compilerOptions),fileIdsList:b,referencedMap:M,exportedModulesMap:N,semanticDiagnosticsPerFile:O,emitDiagnosticsPerFile:Z,affectedFilesPendingEmit:H,changeFileSet:K,emitSignatures:I,latestChangedDtsFile:u};return Mw(V,t);function ue(ve){return G(bo(ve,s))}function G(ve){return v1(bm(l,ve,e.program.getCanonicalFileName))}function ne(ve){let Le=g.get(ve);return Le===void 0&&(p.push(G(ve)),g.set(ve,Le=p.length)),Le}function he(ve){let Le=Vo(ve.keys(),ne).sort(tl),He=Le.join(),Ee=T?.get(He);return Ee===void 0&&((b||(b=[])).push(Le),(T||(T=new Map)).set(He,Ee=b.length)),Ee}function ye(ve,Le){let He=e.program.getSourceFile(ve);if(!e.program.getFileIncludeReasons().get(He.path).some(Fe=>Fe.kind===0))return;if(!m.length)return m.push(Le);let Ee=m[m.length-1],Ce=Do(Ee);if(Ce&&Ee[1]===Le-1)return Ee[1]=Le;if(Ce||m.length===1||Ee!==Le-1)return m.push(Le);let Me=m[m.length-2];return!Rv(Me)||Me!==Ee-1?m.push(Le):(m[m.length-2]=[Me,Le],m.length=m.length-1)}function $(ve){let Le,{optionsNameMap:He}=$R();for(let Ee of Jh(ve).sort(ju)){let Ce=He.get(Ee.toLowerCase());Ce?.affectsBuildInfo&&((Le||(Le={}))[Ee]=Y(Ce,ve[Ee]))}return Le}function Y(ve,Le){if(ve){if(C.assert(ve.type!=="listOrElement"),ve.type==="list"){let He=Le;if(ve.element.isFilePath&&He.length)return He.map(ue)}else if(ve.isFilePath)return ue(Le)}return Le}function oe(ve){let Le;if(ve)for(let He of Vo(ve.keys()).sort(ju)){let Ee=ve.get(He);(Le||(Le=[])).push(Ee.length?[ne(He),fe(Ee)]:ne(He))}return Le}function fe(ve){return C.assert(!!ve.length),ve.map(Le=>{let He=Ne(Le);He.reportsUnnecessary=Le.reportsUnnecessary,He.reportDeprecated=Le.reportsDeprecated,He.source=Le.source,He.skippedOn=Le.skippedOn;let{relatedInformation:Ee}=Le;return He.relatedInformation=Ee?Ee.length?Ee.map(Ce=>Ne(Ce)):[]:void 0,He})}function Ne(ve){let{file:Le}=ve;return{...ve,file:Le?G(Le.resolvedPath):void 0,messageText:wo(ve.messageText)?ve.messageText:me(ve.messageText)}}function me(ve){if(ve.repopulateInfo)return{info:ve.repopulateInfo(),next:ie(ve.next)};let Le=ie(ve.next);return Le===ve.next?ve:{...ve,next:Le}}function ie(ve){return ve&&(Ke(ve,(Le,He)=>{let Ee=me(Le);if(Le===Ee)return;let Ce=He>0?ve.slice(0,He-1):[];Ce.push(Ee);for(let Me=He+1;Me`${p(g)}${FM[g.category]}${g.code}: ${u(g.messageText)}`).join(` +`)),(i.createHash??nC)(r);function u(g){return wo(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(u).join(` +`):g.messageText}function p(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(l===void 0&&(l=li(t.resolvedPath)),`${v1(bm(l,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function YS(e,t,r){return(t.createHash??nC)($Ie(e,r))}function VJ(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;let l=zje(t,s);t.getBuildInfo=M=>Xje(l,M),t=void 0,i=void 0,s=void 0;let u=()=>l,p=UJ(u,o);return p.getState=u,p.saveEmitState=()=>Gje(l),p.restoreEmitState=M=>Vje(l,M),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=M=>Pm.getAllDependencies(l,C.checkDefined(l.program),M),p.getSemanticDiagnostics=R,p.emit=T,p.releaseProgram=()=>Bje(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=I:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=I,p.emitNextAffectedFile=m,p.emitBuildInfo=g):Ko(),p;function g(M,N){if(l.buildInfoEmitPending){let O=C.checkDefined(l.program).emitBuildInfo(M||oa(r,r.writeFile),N);return l.buildInfoEmitPending=!1,O}return TF}function m(M,N,O,H){var K,Z,V;let ue=JIe(l,N,r),G=rb(l.compilerOptions),ne=O?G&24:G;if(!ue)if(Ps(l.compilerOptions)){if(!l.programEmitPending||(ne=l.programEmitPending,O&&(ne=ne&24),!ne))return;ue=l.program}else{let $=Uje(l,O);if(!$){let Y=Hje(l);if(Y)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(Y.affectedFile.resolvedPath,Y.seenKind|24),{result:{emitSkipped:!0,diagnostics:Y.diagnostics},affected:Y.affectedFile};if(!l.buildInfoEmitPending)return;let oe=l.program,fe=oe.emitBuildInfo(M||oa(r,r.writeFile),N);return l.buildInfoEmitPending=!1,{result:fe,affected:oe}}({affectedFile:ue,emitKind:ne}=$)}let he;ne&7&&(he=0),ne&24&&(he=he===void 0?1:void 0),ue===l.program&&(l.programEmitPending=l.changedFilesSet.size?d2(G,ne):l.programEmitPending?d2(l.programEmitPending,ne):void 0);let ye=l.program.emit(ue===l.program?void 0:ue,b(M,H),N,he,H);if(ue!==l.program){let $=ue;l.seenAffectedFiles.add($.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;let Y=((K=l.seenEmittedFiles)==null?void 0:K.get($.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set($.resolvedPath,ne|Y);let oe=((Z=l.affectedFilesPendingEmit)==null?void 0:Z.get($.resolvedPath))||G,fe=d2(oe,ne|Y);fe?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set($.resolvedPath,fe):(V=l.affectedFilesPendingEmit)==null||V.delete($.resolvedPath),ye.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set($.resolvedPath,ye.diagnostics)}else l.changedFilesSet.clear();return{result:ye,affected:ue}}function b(M,N){return xf(l.compilerOptions)?(O,H,K,Z,V,ue)=>{var G,ne,he,ye;if(Su(O))if(Ps(l.compilerOptions)){if(l.compilerOptions.composite){let Y=$(l.outSignature,void 0);if(!Y)return;l.outSignature=Y}}else{C.assert(V?.length===1);let Y;if(!N){let oe=V[0],fe=l.fileInfos.get(oe.resolvedPath);if(fe.signature===oe.version){let Ne=GJ(l.program,oe,H,r,ue);(G=ue?.diagnostics)!=null&&G.length||(Y=Ne),Ne!==oe.version&&(r.storeFilesChangingSignatureDuringEmit&&(l.filesChangingSignature??(l.filesChangingSignature=new Set)).add(oe.resolvedPath),l.exportedModulesMap&&Pm.updateExportedModules(l,oe,oe.exportedModulesFromDeclarationEmit),l.affectedFiles?(((ne=l.oldSignatures)==null?void 0:ne.get(oe.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(oe.resolvedPath,fe.signature||!1),fe.signature=Ne):(fe.signature=Ne,(he=l.oldExportedModulesMap)==null||he.clear()))}}if(l.compilerOptions.composite){let oe=V[0].resolvedPath;if(Y=$((ye=l.emitSignatures)==null?void 0:ye.get(oe),Y),!Y)return;(l.emitSignatures??(l.emitSignatures=new Map)).set(oe,Y)}}M?M(O,H,K,Z,V,ue):r.writeFile?r.writeFile(O,H,K,Z,V,ue):l.program.writeFile(O,H,K,Z,V,ue);function $(Y,oe){let fe=!Y||wo(Y)?Y:Y[0];if(oe??(oe=YS(H,r,ue)),oe===fe){if(Y===fe)return;ue?ue.differsOnlyInMap=!0:ue={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=O;return oe}}:M||oa(r,r.writeFile)}function T(M,N,O,H,K){e===1&&qIe(l,M);let Z=kJ(p,M,N,O);if(Z)return Z;if(!M)if(e===1){let V=[],ue=!1,G,ne=[],he;for(;he=m(N,O,H,K);)ue=ue||he.result.emitSkipped,G=Jr(G,he.result.diagnostics),ne=Jr(ne,he.result.emittedFiles),V=Jr(V,he.result.sourceMaps);return{emitSkipped:ue,diagnostics:G||et,emittedFiles:ne,sourceMaps:V}}else jje(l,H);return C.checkDefined(l.program).emit(M,b(N,K),O,H,K)}function I(M,N){for(;;){let O=JIe(l,M,r),H;if(O)if(O!==l.program){let K=O;if((!N||!N(K))&&(H=yce(l,K,M)),l.seenAffectedFiles.add(K.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!H)continue}else H=l.program.getSemanticDiagnostics(void 0,M),l.changedFilesSet.clear(),l.programEmitPending=rb(l.compilerOptions);else return;return{result:H,affected:O}}}function R(M,N){qIe(l,M);let O=C.checkDefined(l.program).getCompilerOptions();if(Ps(O))return C.assert(!l.semanticDiagnosticsPerFile),C.checkDefined(l.program).getSemanticDiagnostics(M,N);if(M)return yce(l,M,N);for(;I(N););let H;for(let K of C.checkDefined(l.program).getSourceFiles())H=Jr(H,yce(l,K,N));return H||et}}function Ece(e,t,r){var i,o;let s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,s|r),(o=e.emitDiagnosticsPerFile)==null||o.delete(t)}function Sce(e){return wo(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:wo(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Tce(e,t){return Rv(e)?t:e[1]||8}function Ace(e,t){return e||rb(t||{})}function Ice(e,t,r){var i,o,s,l;let u=e.program,p=li(bo(t,r.getCurrentDirectory())),g=Pu(r.useCaseSensitiveFileNames()),m,b=(i=u.fileNames)==null?void 0:i.map(R),T,I=u.latestChangedDtsFile?M(u.latestChangedDtsFile):void 0;if(bce(u)){let Z=new Map;u.fileInfos.forEach((V,ue)=>{let G=N(ue+1);Z.set(G,wo(V)?{version:V,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:V)}),m={fileInfos:Z,compilerOptions:u.options?oq(u.options,M):{},latestChangedDtsFile:I,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:Ace(u.pendingEmit,u.options),bundle:e.bundle}}else{T=(o=u.fileIdsList)==null?void 0:o.map(G=>new Set(G.map(N)));let Z=new Map,V=(s=u.options)!=null&&s.composite&&!Ps(u.options)?new Map:void 0;u.fileInfos.forEach((G,ne)=>{let he=N(ne+1),ye=Sce(G);Z.set(he,ye),V&&ye.signature&&V.set(he,ye.signature)}),(l=u.emitSignatures)==null||l.forEach(G=>{if(Rv(G))V.delete(N(G));else{let ne=N(G[0]);V.set(ne,!wo(G[1])&&!G[1].length?[V.get(ne)]:G[1])}});let ue=u.affectedFilesPendingEmit?rb(u.options||{}):void 0;m={fileInfos:Z,compilerOptions:u.options?oq(u.options,M):{},referencedMap:H(u.referencedMap),exportedModulesMap:H(u.exportedModulesMap),semanticDiagnosticsPerFile:K(u.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:K(u.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&g1(u.affectedFilesPendingEmit,G=>N(Rv(G)?G:G[0]),G=>Tce(G,ue)),changedFilesSet:new Set(Ft(u.changeFileSet,N)),latestChangedDtsFile:I,emitSignatures:V?.size?V:void 0}}return{getState:()=>m,saveEmitState:$a,restoreEmitState:$a,getProgram:Ko,getProgramOrUndefined:Xb,releaseProgram:$a,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Ko,getSourceFiles:Ko,getOptionsDiagnostics:Ko,getGlobalDiagnostics:Ko,getConfigFileParsingDiagnostics:Ko,getSyntacticDiagnostics:Ko,getDeclarationDiagnostics:Ko,getSemanticDiagnostics:Ko,emit:Ko,getAllDependencies:Ko,getCurrentDirectory:Ko,emitNextAffectedFile:Ko,getSemanticDiagnosticsOfNextAffectedFile:Ko,emitBuildInfo:Ko,close:$a,hasChangedEmitSignature:Km};function R(Z){return rl(Z,p,g)}function M(Z){return bo(Z,p)}function N(Z){return b[Z-1]}function O(Z){return T[Z-1]}function H(Z){if(!Z)return;let V=Pm.createManyToManyPathMap();return Z.forEach(([ue,G])=>V.set(N(ue),O(G))),V}function K(Z){return Z&&g1(Z,V=>N(Rv(V)?V:V[0]),V=>Rv(V)?et:V[1])}}function jJ(e,t,r){let i=li(bo(t,r.getCurrentDirectory())),o=Pu(r.useCaseSensitiveFileNames()),s=new Map,l=0,u=[];return e.fileInfos.forEach((p,g)=>{let m=rl(e.fileNames[g],i,o),b=wo(p)?p:p.version;if(s.set(m,b),le().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,u)=>r().emit(i,o,s,l,u),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Ko,getCurrentDirectory:()=>r().getCurrentDirectory(),close:$a};function r(){return C.checkDefined(e().program)}}var HJ,qJ,Yje=A({"src/compiler/builder.ts"(){"use strict";ia(),HJ=(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))(HJ||{}),qJ=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(qJ||{})}});function QIe(e,t,r,i,o,s){return VJ(0,AF(e,t,r,i,o,s))}function JJ(e,t,r,i,o,s){return VJ(1,AF(e,t,r,i,o,s))}function ZIe(e,t,r,i,o,s){let{newProgram:l,configFileParsingDiagnostics:u}=AF(e,t,r,i,o,s);return UJ(()=>({program:l,compilerOptions:l.getCompilerOptions()}),u)}var $je=A({"src/compiler/builderPublic.ts"(){"use strict";ia()}});function IF(e){return Sl(e,"/node_modules/.staging")?Px(e,"/.staging"):Et(GM,t=>e.includes(t))?void 0:e}function xce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==il&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function xF(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let r=xce(e,t);return t>r+1}function Rce(e){return txe(li(e))}function exe(e,t){if(t.lengtho.length+1?Cce(u,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:nxe(u,l,l.length-1,p,g,o)}function nxe(e,t,r,i,o,s){if(o!==-1)return Cce(e,t,o+1);let l=!0,u=r;for(let p=0;pQje(i,o,s,e,r,t,l)}}function Qje(e,t,r,i,o,s,l){let u=RF(e),p=t2(r,i,o,u,t,s,l);if(!e.getGlobalCache)return p;let g=e.getGlobalCache();if(g!==void 0&&!Yc(r)&&!(p.resolvedModule&&Y3(p.resolvedModule.extension))){let{resolvedModule:m,failedLookupLocations:b,affectingLocations:T,resolutionDiagnostics:I}=Jse(C.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,g,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=ZR(p.failedLookupLocations,b),p.affectingLocations=ZR(p.affectingLocations,T),p.resolutionDiagnostics=ZR(p.resolutionDiagnostics,I),p}return p}function XJ(e,t,r){let i,o,s,l=Xp(),u=new Set,p=new Set,g=new Map,m=new Map,b=!1,T,I,R,M,N,O=!1,H=Ed(()=>e.getCurrentDirectory()),K=e.getCachedDirectoryStructureHost(),Z=new Map,V=e2(H(),e.getCanonicalFileName,e.getCompilationSettings()),ue=new Map,G=k5(H(),e.getCanonicalFileName,e.getCompilationSettings(),V.getPackageJsonInfoCache(),V.optionsToRedirectsKey),ne=new Map,he=e2(H(),e.getCanonicalFileName,Eq(e.getCompilationSettings()),V.getPackageJsonInfoCache()),ye=new Map,$=new Map,Y=Pce(t,H),oe=e.toPath(Y),fe=Wc(oe),Ne=new Map;return{rootDirForResolution:t,resolvedModuleNames:Z,resolvedTypeReferenceDirectives:ue,resolvedLibraries:ne,resolvedFileToResolution:g,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:ye,fileWatchesOfAffectingLocations:$,watchFailedLookupLocationsOfExternalModuleResolutions:Nn,getModuleResolutionCache:()=>V,startRecordingFilesWithChangedResolutions:He,finishRecordingFilesWithChangedResolutions:Ee,startCachingPerDirectoryResolution:Fe,finishCachingPerDirectoryResolution:Se,resolveModuleNameLiterals:Qe,resolveTypeReferenceDirectiveReferences:yt,resolveLibrary:gt,resolveSingleModuleNameWithoutWatching:nn,removeResolutionsFromProjectReferenceRedirects:tt,removeResolutionsOfFile:zt,hasChangedAutomaticTypeDirectiveNames:()=>b,invalidateResolutionOfFile:ui,invalidateResolutionsOfFailedLookupLocations:_a,setFilesWithInvalidatedNonRelativeUnresolvedImports:bi,createHasInvalidatedResolutions:Me,isFileWithInvalidatedNonRelativeUnresolvedImports:Ce,updateTypeRootsWatch:ft,closeTypeRootsWatch:Ue,clear:ve,onChangesAffectModuleResolution:Le};function me(le){return le.resolvedModule}function ie(le){return le.resolvedTypeReferenceDirective}function ve(){ep(ye,Cf),ep($,Cf),l.clear(),Ue(),Z.clear(),ue.clear(),g.clear(),u.clear(),p.clear(),R=void 0,M=void 0,N=void 0,I=void 0,T=void 0,O=!1,V.clear(),G.clear(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings()),he.clear(),m.clear(),ne.clear(),b=!1}function Le(){O=!0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings())}function He(){i=[]}function Ee(){let le=i;return i=void 0,le}function Ce(le){if(!s)return!1;let We=s.get(le);return!!We&&!!We.length}function Me(le,We){_a();let pt=o;return o=void 0,{hasInvalidatedResolutions:j=>le(j)||O||!!pt?.has(j)||Ce(j),hasInvalidatedLibResolutions:j=>{var ot;return We(j)||!!((ot=ne?.get(j))!=null&&ot.isInvalidated)}}}function Fe(){V.isReadonly=void 0,G.isReadonly=void 0,he.isReadonly=void 0,V.getPackageJsonInfoCache().isReadonly=void 0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),he.clearAllExceptPackageJsonInfoCache(),l.forEach(ho),l.clear()}function At(le){ne.forEach((We,pt)=>{var j;(j=le?.resolvedLibReferences)!=null&&j.has(pt)||(nr(We,e.toPath(gF(e.getCompilationSettings(),H(),pt)),me),ne.delete(pt))})}function Se(le,We){s=void 0,O=!1,l.forEach(ho),l.clear(),le!==We&&(At(le),le?.getSourceFiles().forEach(pt=>{var j;let ot=Fp(pt)?((j=pt.packageJsonLocations)==null?void 0:j.length)??0:0,xt=m.get(pt.path)??et;for(let Ye=xt.length;Yeot)for(let Ye=ot;Ye{le?.getSourceFileByPath(j)||(pt.forEach(ot=>$.get(ot).files--),m.delete(j))})),ye.forEach(je),$.forEach(at),b=!1,V.isReadonly=!0,G.isReadonly=!0,he.isReadonly=!0,V.getPackageJsonInfoCache().isReadonly=!0}function je(le,We){le.refCount===0&&(ye.delete(We),le.watcher.close())}function at(le,We){var pt;le.files===0&&le.resolutions===0&&!((pt=le.symlinks)!=null&&pt.size)&&($.delete(We),le.watcher.close())}function Bt({entries:le,containingFile:We,containingSourceFile:pt,redirectedReference:j,options:ot,perFileCache:xt,reusedNames:Ye,loader:ht,getResolutionWithResolvedFileName:Vt,deferWatchingNonRelativeResolution:yn,shouldRetryResolution:fn,logChanges:mn}){let q=e.toPath(We),Oe=xt.get(q)||xt.set(q,vI()).get(q),Lt=[],w=mn&&Ce(q),ae=e.getCurrentProgram(),J=ae&&ae.getResolvedProjectReferenceToRedirect(We),pe=J?!j||j.sourceFile.path!==J.sourceFile.path:!!j,Ge=vI();for(let Dt of le){let Pt=ht.nameAndMode.getName(Dt),Kt=ht.nameAndMode.getMode(Dt,pt,j?.commandLine.options||ot),Tn=Oe.get(Pt,Kt);if(!Ge.has(Pt,Kt)&&(O||pe||!Tn||Tn.isInvalidated||w&&!Yc(Pt)&&fn(Tn))){let On=Tn;Tn=ht.resolve(Pt,Kt),e.onDiscoveredSymlink&&Zje(Tn)&&e.onDiscoveredSymlink(),Oe.set(Pt,Kt,Tn),Tn!==On&&(Nn(Pt,Tn,q,Vt,yn),On&&nr(On,q,Vt)),mn&&i&&!ke(On,Tn)&&(i.push(q),mn=!1)}else{let On=RF(e);if(Hg(ot,On)&&!Ge.has(Pt,Kt)){let Gn=Vt(Tn);To(On,xt===Z?Gn?.resolvedFileName?Gn.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Gn?.resolvedFileName?Gn.packageId?f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Pt,We,Gn?.resolvedFileName,Gn?.packageId&&Fy(Gn.packageId))}}C.assert(Tn!==void 0&&!Tn.isInvalidated),Ge.set(Pt,Kt,!0),Lt.push(Tn)}return Ye?.forEach(Dt=>Ge.set(ht.nameAndMode.getName(Dt),ht.nameAndMode.getMode(Dt,pt,j?.commandLine.options||ot),!0)),Oe.size()!==Ge.size()&&Oe.forEach((Dt,Pt,Kt)=>{Ge.has(Pt,Kt)||(nr(Dt,q,Vt),Oe.delete(Pt,Kt))}),Lt;function ke(Dt,Pt){if(Dt===Pt)return!0;if(!Dt||!Pt)return!1;let Kt=Vt(Dt),Tn=Vt(Pt);return Kt===Tn?!0:!Kt||!Tn?!1:Kt.resolvedFileName===Tn.resolvedFileName}}function yt(le,We,pt,j,ot,xt){return Bt({entries:le,containingFile:We,containingSourceFile:ot,redirectedReference:pt,options:j,reusedNames:xt,perFileCache:ue,loader:_F(We,pt,j,RF(e),G),getResolutionWithResolvedFileName:ie,shouldRetryResolution:Ye=>Ye.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Qe(le,We,pt,j,ot,xt){return Bt({entries:le,containingFile:We,containingSourceFile:ot,redirectedReference:pt,options:j,reusedNames:xt,perFileCache:Z,loader:Mce(We,pt,j,e,V),getResolutionWithResolvedFileName:me,shouldRetryResolution:Ye=>!Ye.resolvedModule||!QC(Ye.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function gt(le,We,pt,j){let ot=RF(e),xt=ne?.get(j);if(!xt||xt.isInvalidated){let Ye=xt;xt=w5(le,We,pt,ot,he);let ht=e.toPath(We);Nn(le,xt,ht,me,!1),ne.set(j,xt),Ye&&nr(Ye,ht,me)}else if(Hg(pt,ot)){let Ye=me(xt);To(ot,Ye?.resolvedFileName?Ye.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,le,We,Ye?.resolvedFileName,Ye?.packageId&&Fy(Ye.packageId))}return xt}function nn(le,We){var pt,j;let ot=e.toPath(We),xt=Z.get(ot),Ye=xt?.get(le,void 0);if(Ye&&!Ye.isInvalidated)return Ye;let ht=(pt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:pt.call(e,V),Vt=RF(e),yn=t2(le,We,e.getCompilationSettings(),Vt,V);return(j=e.afterResolveSingleModuleNameWithoutWatching)==null||j.call(e,V,le,We,yn,ht),yn}function rn(le){return Sl(le,"/node_modules/@types")}function Nn(le,We,pt,j,ot){var xt;if(We.refCount)We.refCount++,C.assertIsDefined(We.files);else{We.refCount=1,C.assert(!((xt=We.files)!=null&&xt.size)),!ot||Yc(le)?_n(We):l.add(le,We);let Ye=j(We);if(Ye&&Ye.resolvedFileName){let ht=e.toPath(Ye.resolvedFileName),Vt=g.get(ht);Vt||g.set(ht,Vt=new Set),Vt.add(We)}}(We.files??(We.files=new Set)).add(pt)}function Xn(le,We){let pt=e.toPath(le),j=KJ(le,pt,Y,oe,fe,H);if(j){let{dir:ot,dirPath:xt,nonRecursive:Ye}=j;xt===oe?(C.assert(Ye),We=!0):ki(ot,xt,Ye)}return We}function _n(le){C.assert(!!le.refCount);let{failedLookupLocations:We,affectingLocations:pt,alternateResult:j}=le;if(!We?.length&&!pt?.length&&!j)return;(We?.length||j)&&u.add(le);let ot=!1;if(We)for(let xt of We)ot=Xn(xt,ot);j&&(ot=Xn(j,ot)),ot&&ki(Y,oe,!0),Qt(le,!We?.length&&!j)}function Qt(le,We){C.assert(!!le.refCount);let{affectingLocations:pt}=le;if(pt?.length){We&&p.add(le);for(let j of pt)Yt(j,!0)}}function Yt(le,We){let pt=$.get(le);if(pt){We?pt.resolutions++:pt.files++;return}let j=le,ot=!1,xt;e.realpath&&(j=e.realpath(le),le!==j&&(ot=!0,xt=$.get(j)));let Ye=We?1:0,ht=We?0:1;if(!ot||!xt){let Vt={watcher:Dce(e.toPath(j))?e.watchAffectingFileLocation(j,(yn,fn)=>{K?.addOrDeleteFile(yn,e.toPath(j),fn),vi(j,V.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):f2,resolutions:ot?0:Ye,files:ot?0:ht,symlinks:void 0};$.set(j,Vt),ot&&(xt=Vt)}if(ot){C.assert(!!xt);let Vt={watcher:{close:()=>{var yn;let fn=$.get(j);(yn=fn?.symlinks)!=null&&yn.delete(le)&&!fn.symlinks.size&&!fn.resolutions&&!fn.files&&($.delete(j),fn.watcher.close())}},resolutions:Ye,files:ht,symlinks:void 0};$.set(le,Vt),(xt.symlinks??(xt.symlinks=new Set)).add(le)}}function vi(le,We){var pt;let j=$.get(le);j?.resolutions&&(I??(I=new Set)).add(le),j?.files&&(T??(T=new Set)).add(le),(pt=j?.symlinks)==null||pt.forEach(ot=>vi(ot,We)),We?.delete(e.toPath(le))}function ho(le,We){let pt=e.getCurrentProgram();!pt||!pt.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(We)?le.forEach(_n):le.forEach(j=>Qt(j,!0))}function ki(le,We,pt){let j=ye.get(We);j?(C.assert(!!pt==!!j.nonRecursive),j.refCount++):ye.set(We,{watcher:xr(le,We,pt),refCount:1,nonRecursive:pt})}function Ro(le,We,pt){let j=e.toPath(le),ot=KJ(le,j,Y,oe,fe,H);if(ot){let{dirPath:xt}=ot;xt===oe?We=!0:qr(xt,pt)}return We}function nr(le,We,pt,j){if(C.checkDefined(le.files).delete(We),le.refCount--,le.refCount)return;let ot=pt(le);if(ot&&ot.resolvedFileName){let Vt=e.toPath(ot.resolvedFileName),yn=g.get(Vt);yn?.delete(le)&&!yn.size&&g.delete(Vt)}let{failedLookupLocations:xt,affectingLocations:Ye,alternateResult:ht}=le;if(u.delete(le)){let Vt=!1;if(xt)for(let yn of xt)Vt=Ro(yn,Vt,j);ht&&(Vt=Ro(ht,Vt,j)),Vt&&qr(oe,j)}else Ye?.length&&p.delete(le);if(Ye)for(let Vt of Ye){let yn=$.get(Vt);yn.resolutions--,j&&at(yn,Vt)}}function qr(le,We){let pt=ye.get(le);pt.refCount--,We&&je(pt,le)}function xr(le,We,pt){return e.watchDirectoryOfFailedLookupLocation(le,j=>{let ot=e.toPath(j);K&&K.addOrDeleteFileOrDirectory(j,ot),ro(ot,We===ot)},pt?0:1)}function ln(le,We,pt,j){let ot=le.get(We);ot&&(ot.forEach(xt=>nr(xt,We,pt,j)),le.delete(We))}function tt(le){if(!Tl(le,".json"))return;let We=e.getCurrentProgram();if(!We)return;let pt=We.getResolvedProjectReferenceByPath(le);pt&&pt.commandLine.fileNames.forEach(j=>zt(e.toPath(j)))}function zt(le,We){ln(Z,le,me,We),ln(ue,le,ie,We)}function Rn(le,We){if(!le)return!1;let pt=!1;return le.forEach(j=>{if(!(j.isInvalidated||!We(j))){j.isInvalidated=pt=!0;for(let ot of C.checkDefined(j.files))(o??(o=new Set)).add(ot),b=b||Sl(ot,u2)}}),pt}function ui(le){zt(le);let We=b;Rn(g.get(le),Dv)&&b&&!We&&e.onChangedAutomaticTypeDirectiveNames()}function bi(le){C.assert(s===le||s===void 0),s=le}function ro(le,We){if(We)(N||(N=new Set)).add(le);else{let pt=IF(le);if(!pt||(le=pt,e.fileIsOpen(le)))return!1;let j=li(le);if(rn(le)||a6(le)||rn(j)||a6(j))(R||(R=new Set)).add(le),(M||(M=new Set)).add(le);else{if(ice(e.getCurrentProgram(),le)||Tl(le,".map"))return!1;(R||(R=new Set)).add(le);let ot=vw(le,!0);ot&&(M||(M=new Set)).add(ot)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function No(){let le=V.getPackageJsonInfoCache().getInternalMap();le&&(R||M||N)&&le.forEach((We,pt)=>En(pt)?le.delete(pt):void 0)}function _a(){var le;if(O)return T=void 0,No(),(R||M||N||I)&&Rn(ne,ja),R=void 0,M=void 0,N=void 0,I=void 0,!0;let We=!1;return T&&((le=e.getCurrentProgram())==null||le.getSourceFiles().forEach(pt=>{Et(pt.packageJsonLocations,j=>T.has(j))&&((o??(o=new Set)).add(pt.path),We=!0)}),T=void 0),!R&&!M&&!N&&!I||(We=Rn(u,ja)||We,No(),R=void 0,M=void 0,N=void 0,We=Rn(p,wn)||We,I=void 0),We}function ja(le){var We;return wn(le)?!0:!R&&!M&&!N?!1:((We=le.failedLookupLocations)==null?void 0:We.some(pt=>En(e.toPath(pt))))||!!le.alternateResult&&En(e.toPath(le.alternateResult))}function En(le){return R?.has(le)||ir(M?.keys()||[],We=>uo(le,We)?!0:void 0)||ir(N?.keys()||[],We=>le.length>We.length&&uo(le,We)&&(AV(We)||le[We.length]===il)?!0:void 0)}function wn(le){var We;return!!I&&((We=le.affectingLocations)==null?void 0:We.some(pt=>I.has(pt)))}function Ue(){ep(Ne,$m)}function mt(le){return Nt(le)?e.watchTypeRootsDirectory(le,We=>{let pt=e.toPath(We);K&&K.addOrDeleteFileOrDirectory(We,pt),b=!0,e.onChangedAutomaticTypeDirectiveNames();let j=Nce(le,e.toPath(le),oe,fe,H,ot=>ye.has(ot));j&&ro(pt,j===pt)},1):f2}function ft(){let le=e.getCompilationSettings();if(le.types){Ue();return}let We=FN(le,{getCurrentDirectory:H});We?KC(Ne,new Set(We),{createNewValue:mt,onDeleteValue:$m}):Ue()}function Nt(le){return e.getCompilationSettings().typeRoots?!0:Rce(e.toPath(le))}}function Zje(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var eUe=A({"src/compiler/resolutionCache.ts"(){"use strict";ia()}});function Vw(e,t){let r=e===gu&&zce?zce:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Pu(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(TJ(o,r));let i=new Array(1);return o=>{i[0]=o,e.write(lce(i,r)+r.getNewLine()),i[0]=void 0}}function ixe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&wr(LF,t.code)?(e.clearScreen(),!0):!1}function tUe(e,t){return wr(LF,e.code)?t+t:t}function jw(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function Lce(e,t){return t?(r,i,o)=>{ixe(e,r,o);let s=`[${aE(jw(e),"\x1B[90m")}] `;s+=`${W_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";ixe(e,r,o)||(s+=i),s+=`${jw(e)} - `,s+=`${W_(r.messageText,e.newLine)}${tUe(r,i)}`,e.write(s)}}function oxe(e,t,r,i,o,s){let l=o;l.onUnRecoverableConfigFileDiagnostic=p=>lxe(o,s,p);let u=ow(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function DF(e){return au(e,t=>t.category===1)}function CF(e){return tr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;let i=vn(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){let{line:o}=Es(i.file,i.start);return{fileName:r,line:o+1}}})}function YJ(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function axe(e,t){let r=aE(":"+e.line,"\x1B[90m");return rC(e.fileName)&&rC(t)?bm(t,e.fileName,!1)+r:e.fileName+r}function kce(e,t,r,i){if(e===0)return"";let o=t.filter(m=>m!==void 0),s=o.map(m=>`${m.fileName}:${m.line}`).filter((m,b,T)=>T.indexOf(m)===b),l=o[0]&&axe(o[0],i.getCurrentDirectory()),u;e===1?u=t[0]!==void 0?[f.Found_1_error_in_0,l]:[f.Found_1_error]:u=s.length===0?[f.Found_0_errors,e]:s.length===1?[f.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[f.Found_0_errors_in_1_files,e,s.length];let p=Vl(...u),g=s.length>1?nUe(o,i):"";return`${r}${W_(p.messageText,r)}${r}${r}${g}`}function nUe(e,t){let r=e.filter((b,T,I)=>T===I.findIndex(R=>R?.fileName===b?.fileName));if(r.length===0)return"";let i=b=>Math.log(b)*Math.LOG10E+1,o=r.map(b=>[b,au(e,T=>T.fileName===b.fileName)]),s=o.reduce((b,T)=>Math.max(b,T[1]||0),0),l=f.Errors_Files.message,u=l.split(" ")[0].length,p=Math.max(u,i(s)),g=Math.max(i(s)-u,0),m="";return m+=" ".repeat(g)+l+` +`,o.forEach(b=>{let[T,I]=b,R=Math.log(I)*Math.LOG10E+1|0,M=R{t(i.fileName)})}function QJ(e,t){var r,i;let o=e.getFileIncludeReasons(),s=l=>iC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(let l of e.getSourceFiles())t(`${p2(l,s)}`),(r=o.get(l.path))==null||r.forEach(u=>t(` ${nK(e,u,s).messageText}`)),(i=ZJ(l,s))==null||i.forEach(u=>t(` ${u.messageText}`))}function ZJ(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Uo(void 0,f.File_is_output_of_project_reference_source_0,p2(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Uo(void 0,f.File_redirects_to_file_0,p2(e.redirectInfo.redirectTarget,t))),Fp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(Uo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,p2(Ya(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Uo(void 0,e.packageJsonScope.contents.packageJsonContent.type?f.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:f.File_is_CommonJS_module_because_0_does_not_have_field_type,p2(Ya(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(Uo(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function eK(e,t){var r;let i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;let o=e.getCanonicalFileName(t),s=li(bo(i.fileName,e.getCurrentDirectory()));return vn(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(bo(l,s))===o)}function tK(e,t){var r,i;let o=e.getCompilerOptions().configFile;if(!((r=o?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;let s=Tl(t,".json"),l=li(bo(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return vn((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!Sl(p,".json"))return!1;let g=koe(p,l,"files");return!!g&&jy(`(${g})$`,u).test(t)})}function nK(e,t,r){var i,o;let s=e.getCompilerOptions();if(R0(t)){let l=ZN(e,t),u=l2(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`,p;switch(C.assert(l2(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:l2(l)?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===Hy?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:f.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:f.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:C.assert(!l.packageId),p=f.Referenced_via_0_from_file_1;break;case 5:p=l.packageId?f.Type_library_referenced_via_0_from_file_1_with_packageId_2:f.Type_library_referenced_via_0_from_file_1;break;case 7:C.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:C.assertNever(t)}return Uo(void 0,p,u,p2(l.file,r),l.packageId&&Fy(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Uo(void 0,f.Root_file_specified_for_compilation);let l=bo(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(eK(e,l))return Uo(void 0,f.Part_of_files_list_in_tsconfig_json);let p=tK(e,l);return wo(p)?Uo(void 0,f.Matched_by_include_pattern_0_in_1,p,p2(s.configFile,r)):Uo(void 0,p?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:let g=t.kind===2,m=C.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Uo(void 0,Ps(s)?g?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:g?f.Output_from_referenced_project_0_included_because_module_is_specified_as_none:f.Source_from_referenced_project_0_included_because_module_is_specified_as_none,p2(m.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{let b=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Fy(t.packageId)]:[f.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[f.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Fy(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return Uo(void 0,...b)}case 6:{if(t.index!==void 0)return Uo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);let b=Bc(fw.type,(I,R)=>I===as(s)?R:void 0),T=b?[f.Default_library_for_target_0,b]:[f.Default_library];return Uo(void 0,...T)}default:C.assertNever(t)}}function p2(e,t){let r=wo(e)?e:e.fileName;return t?t(r):r}function NF(e,t,r,i,o,s,l,u){let p=!!e.getCompilerOptions().listFilesOnly,g=e.getConfigFileParsingDiagnostics().slice(),m=g.length;Jr(g,e.getSyntacticDiagnostics(void 0,s)),g.length===m&&(Jr(g,e.getOptionsDiagnostics(s)),p||(Jr(g,e.getGlobalDiagnostics(s)),g.length===m&&Jr(g,e.getSemanticDiagnostics(void 0,s))));let b=p?{emitSkipped:!0,diagnostics:et}:e.emit(void 0,o,s,l,u),{emittedFiles:T,diagnostics:I}=b;Jr(g,I);let R=Gx(g);if(R.forEach(t),r){let M=e.getCurrentDirectory();Ke(T,N=>{let O=bo(N,M);r(`TSFILE: ${O}`)}),$J(e,r)}return i&&i(DF(R),CF(R)),{emitResult:b,diagnostics:R}}function Oce(e,t,r,i,o,s,l,u){let{emitResult:p,diagnostics:g}=NF(e,t,r,i,o,s,l,u);return p.emitSkipped&&g.length>0?1:g.length>0?2:0}function rK(e=gu,t){return{onWatchStatusChange:t||Lce(e),watchFile:oa(e,e.watchFile)||m2,watchDirectory:oa(e,e.watchDirectory)||m2,setTimeout:oa(e,e.setTimeout)||$a,clearTimeout:oa(e,e.clearTimeout)||$a}}function iK(e,t){let r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):$a,o=gJ(e,r,i);return o.writeLog=i,o}function oK(e,t,r=e){let i=e.useCaseSensitiveFileNames(),o={getSourceFile:bJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:oa(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:EJ((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Ed(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Pu(i),getNewLine:()=>Gv(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:oa(e,e.trace),directoryExists:oa(r,r.directoryExists),getDirectories:oa(r,r.getDirectories),realpath:oa(e,e.realpath),getEnvironmentVariable:oa(e,e.getEnvironmentVariable)||(()=>""),createHash:oa(e,e.createHash),readDirectory:oa(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function PF(e,t){if(t.match(Hq)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){let s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Uu(s)){i=o;continue}break}let l=t.substring(i,r);if(l.match(K5)){t=t.substring(0,i);break}else if(!l.match(X5))break;r=i}}return(e.createHash||nC)(t)}function MF(e){let t=e.getSourceFile;e.getSourceFile=(...r)=>{let i=t.call(e,...r);return i&&(i.version=PF(e,i.text)),i}}function aK(e,t){let r=Ed(()=>li(va(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Ed(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Zr(r(),QM(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,u)=>e.readDirectory(i,o,s,l,u),realpath:oa(e,e.realpath),getEnvironmentVariable:oa(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,o,s)=>e.writeFile(i,o,s),createHash:oa(e,e.createHash),createProgram:t||JJ,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:oa(e,e.now)}}function sxe(e=gu,t,r,i){let o=l=>e.write(l+e.newLine),s=aK(e,t);return oG(s,rK(e,i)),s.afterProgramCreate=l=>{let u=l.getCompilerOptions(),p=Gv(u);NF(l,r,o,g=>s.onWatchStatusChange(Vl(YJ(g),g),p,u,g))},s}function lxe(e,t,r){t(r),e.exit(1)}function Fce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){let p=l||Vw(o),g=sxe(o,s,p,u);return g.onUnRecoverableConfigFileDiagnostic=m=>lxe(o,p,m),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=r,g.extraFileExtensions=i,g}function Wce({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){let p=sxe(o,s,l||Vw(o),u);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function cxe(e){let t=e.system||gu,r=e.host||(e.host=sK(e.options,t)),i=Bce(e),o=Oce(i,e.reportDiagnostic||Vw(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(kce(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var zce,LF,f2,m2,kc,rUe=A({"src/compiler/watch.ts"(){"use strict";ia(),zce=gu?{getCurrentDirectory:()=>gu.getCurrentDirectory(),getNewLine:()=>gu.newLine,getCanonicalFileName:Pu(gu.useCaseSensitiveFileNames)}:void 0,LF=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],f2={close:$a},m2=()=>f2,kc={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",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function kF(e,t){let r=Kv(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{let o=t.readFile(r);if(!o)return;i=cF(r,o)}if(!(!i||i.version!==Te||!i.program))return Ice(i,r,t)}function sK(e,t=gu){let r=SJ(e,void 0,t);return r.createHash=oa(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,MF(r),Fw(r,i=>rl(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Bce({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||sK(t),s=s||JJ;let l=kF(t,o);return s(e,t,o,l,r,i)}function uxe(e,t,r,i,o,s,l,u){return Do(e)?Wce({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):Fce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function dxe(e){let t,r,i,o,s,l,u,p,g=e.extendedConfigCache,m=!1,b=new Map,T,I=!1,R=e.useCaseSensitiveFileNames(),M=e.getCurrentDirectory(),{configFileName:N,optionsToExtend:O={},watchOptionsToExtend:H,extraFileExtensions:K,createProgram:Z}=e,{rootFiles:V,options:ue,watchOptions:G,projectReferences:ne}=e,he,ye,$=!1,Y=!1,oe=N===void 0?void 0:dF(e,M,R),fe=oe||e,Ne=bF(e,fe),me=Nn();N&&e.configFileParsingResult&&(ja(e.configFileParsingResult),me=Nn()),nr(f.Starting_compilation_in_watch_mode),N&&!e.configFileParsingResult&&(me=Gv(O),C.assert(!V),_a(),me=Nn()),C.assert(ue),C.assert(V);let{watchFile:ie,watchDirectory:ve,writeLog:Le}=iK(e,ue),He=Pu(R);Le(`Current directory: ${M} CaseSensitiveFileNames: ${R}`);let Ee;N&&(Ee=ie(N,Rn,2e3,G,kc.ConfigFile));let Ce=oK(e,()=>ue,fe);MF(Ce);let Me=Ce.getSourceFile;Ce.getSourceFile=(Ye,...ht)=>vi(Ye,Xn(Ye),...ht),Ce.getSourceFileByPath=vi,Ce.getNewLine=()=>me,Ce.fileExists=Yt,Ce.onReleaseOldSourceFile=Ro,Ce.onReleaseParsedCommandLine=Ue,Ce.toPath=Xn,Ce.getCompilationSettings=()=>ue,Ce.useSourceOfProjectReferenceRedirect=oa(e,e.useSourceOfProjectReferenceRedirect),Ce.watchDirectoryOfFailedLookupLocation=(Ye,ht,Vt)=>ve(Ye,ht,Vt,G,kc.FailedLookupLocations),Ce.watchAffectingFileLocation=(Ye,ht)=>ie(Ye,ht,2e3,G,kc.AffectingFileLocation),Ce.watchTypeRootsDirectory=(Ye,ht,Vt)=>ve(Ye,ht,Vt,G,kc.TypeRoots),Ce.getCachedDirectoryStructureHost=()=>oe,Ce.scheduleInvalidateResolutionsOfFailedLookupLocations=ln,Ce.onInvalidatedResolution=zt,Ce.onChangedAutomaticTypeDirectiveNames=zt,Ce.fileIsOpen=Km,Ce.getCurrentProgram=Qe,Ce.writeLog=Le,Ce.getParsedCommandLine=En;let Fe=XJ(Ce,N?li(bo(N,M)):M,!1);Ce.resolveModuleNameLiterals=oa(e,e.resolveModuleNameLiterals),Ce.resolveModuleNames=oa(e,e.resolveModuleNames),!Ce.resolveModuleNameLiterals&&!Ce.resolveModuleNames&&(Ce.resolveModuleNameLiterals=Fe.resolveModuleNameLiterals.bind(Fe)),Ce.resolveTypeReferenceDirectiveReferences=oa(e,e.resolveTypeReferenceDirectiveReferences),Ce.resolveTypeReferenceDirectives=oa(e,e.resolveTypeReferenceDirectives),!Ce.resolveTypeReferenceDirectiveReferences&&!Ce.resolveTypeReferenceDirectives&&(Ce.resolveTypeReferenceDirectiveReferences=Fe.resolveTypeReferenceDirectiveReferences.bind(Fe)),Ce.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Fe.resolveLibrary.bind(Fe),Ce.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?oa(e,e.getModuleResolutionCache):()=>Fe.getModuleResolutionCache();let Se=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?oa(e,e.hasInvalidatedResolutions)||Dv:Km,je=e.resolveLibrary?oa(e,e.hasInvalidatedLibResolutions)||Dv:Km;return t=kF(ue,Ce),gt(),pt(),N&&ot(Xn(N),ue,G,kc.ExtendedConfigFile),N?{getCurrentProgram:yt,getProgram:bi,close:at,getResolutionCache:Bt}:{getCurrentProgram:yt,getProgram:bi,updateRootFileNames:rn,close:at,getResolutionCache:Bt};function at(){xr(),Fe.clear(),ep(b,Ye=>{Ye&&Ye.fileWatcher&&(Ye.fileWatcher.close(),Ye.fileWatcher=void 0)}),Ee&&(Ee.close(),Ee=void 0),g?.clear(),g=void 0,p&&(ep(p,Cf),p=void 0),o&&(ep(o,Cf),o=void 0),i&&(ep(i,$m),i=void 0),u&&(ep(u,Ye=>{var ht;(ht=Ye.watcher)==null||ht.close(),Ye.watcher=void 0,Ye.watchedDirectories&&ep(Ye.watchedDirectories,Cf),Ye.watchedDirectories=void 0}),u=void 0)}function Bt(){return Fe}function yt(){return t}function Qe(){return t&&t.getProgramOrUndefined()}function gt(){Le("Synchronizing program"),C.assert(ue),C.assert(V),xr();let Ye=yt();I&&(me=Nn(),Ye&&M6(Ye.getCompilerOptions(),ue)&&Fe.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:ht,hasInvalidatedLibResolutions:Vt}=Fe.createHasInvalidatedResolutions(Se,je),{originalReadFile:yn,originalFileExists:fn,originalDirectoryExists:mn,originalCreateDirectory:q,originalWriteFile:Oe,readFileWithCache:Lt}=Fw(Ce,Xn);return MJ(Qe(),V,ue,w=>ki(w,Lt),w=>Ce.fileExists(w),ht,Vt,qr,En,ne)?Y&&(m&&nr(f.File_change_detected_Starting_incremental_compilation),t=Z(void 0,void 0,Ce,t,ye,ne),Y=!1):(m&&nr(f.File_change_detected_Starting_incremental_compilation),nn(ht,Vt)),m=!1,e.afterProgramCreate&&Ye!==t&&e.afterProgramCreate(t),Ce.readFile=yn,Ce.fileExists=fn,Ce.directoryExists=mn,Ce.createDirectory=q,Ce.writeFile=Oe,t}function nn(Ye,ht){Le("CreatingProgramWith::"),Le(` roots: ${JSON.stringify(V)}`),Le(` options: ${JSON.stringify(ue)}`),ne&&Le(` projectReferences: ${JSON.stringify(ne)}`);let Vt=I||!Qe();I=!1,Y=!1,Fe.startCachingPerDirectoryResolution(),Ce.hasInvalidatedResolutions=Ye,Ce.hasInvalidatedLibResolutions=ht,Ce.hasChangedAutomaticTypeDirectiveNames=qr;let yn=Qe();if(t=Z(V,ue,Ce,t,ye,ne),Fe.finishCachingPerDirectoryResolution(t.getProgram(),yn),hJ(t.getProgram(),i||(i=new Map),le),Vt&&Fe.updateTypeRootsWatch(),T){for(let fn of T)i.has(fn)||b.delete(fn);T=void 0}}function rn(Ye){C.assert(!N,"Cannot update root file names with config file watch mode"),V=Ye,zt()}function Nn(){return Gv(ue||O)}function Xn(Ye){return rl(Ye,M,He)}function _n(Ye){return typeof Ye=="boolean"}function Qt(Ye){return typeof Ye.version=="boolean"}function Yt(Ye){let ht=Xn(Ye);return _n(b.get(ht))?!1:fe.fileExists(Ye)}function vi(Ye,ht,Vt,yn,fn){let mn=b.get(ht);if(_n(mn))return;let q=typeof Vt=="object"?Vt.impliedNodeFormat:void 0;if(mn===void 0||fn||Qt(mn)||mn.sourceFile.impliedNodeFormat!==q){let Oe=Me(Ye,Vt,yn);if(mn)Oe?(mn.sourceFile=Oe,mn.version=Oe.version,mn.fileWatcher||(mn.fileWatcher=mt(ht,Ye,ft,250,G,kc.SourceFile))):(mn.fileWatcher&&mn.fileWatcher.close(),b.set(ht,!1));else if(Oe){let Lt=mt(ht,Ye,ft,250,G,kc.SourceFile);b.set(ht,{sourceFile:Oe,version:Oe.version,fileWatcher:Lt})}else b.set(ht,!1);return Oe}return mn.sourceFile}function ho(Ye){let ht=b.get(Ye);ht!==void 0&&(_n(ht)?b.set(Ye,{version:!1}):ht.version=!1)}function ki(Ye,ht){let Vt=b.get(Ye);if(!Vt)return;if(Vt.version)return Vt.version;let yn=ht(Ye);return yn!==void 0?PF(Ce,yn):void 0}function Ro(Ye,ht,Vt){let yn=b.get(Ye.resolvedPath);yn!==void 0&&(_n(yn)?(T||(T=[])).push(Ye.path):yn.sourceFile===Ye&&(yn.fileWatcher&&yn.fileWatcher.close(),b.delete(Ye.resolvedPath),Vt||Fe.removeResolutionsOfFile(Ye.path)))}function nr(Ye){e.onWatchStatusChange&&e.onWatchStatusChange(Vl(Ye),me,ue||O)}function qr(){return Fe.hasChangedAutomaticTypeDirectiveNames()}function xr(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function ln(){if(!e.setTimeout||!e.clearTimeout)return Fe.invalidateResolutionsOfFailedLookupLocations();let Ye=xr();Le(`Scheduling invalidateFailedLookup${Ye?", Cancelled earlier one":""}`),l=e.setTimeout(tt,250,"timerToInvalidateFailedLookupResolutions")}function tt(){l=void 0,Fe.invalidateResolutionsOfFailedLookupLocations()&&zt()}function zt(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Le("Scheduling update"),s=e.setTimeout(ui,250,"timerToUpdateProgram"))}function Rn(){C.assert(!!N),r=2,zt()}function ui(){s=void 0,m=!0,bi()}function bi(){var Ye,ht,Vt,yn;switch(r){case 1:(Ye=rd)==null||Ye.logStartUpdateProgram("PartialConfigReload"),ro();break;case 2:(ht=rd)==null||ht.logStartUpdateProgram("FullConfigReload"),No();break;default:(Vt=rd)==null||Vt.logStartUpdateProgram("SynchronizeProgram"),gt();break}return(yn=rd)==null||yn.logStopUpdateProgram("Done"),yt()}function ro(){Le("Reloading new file names and options"),C.assert(ue),C.assert(N),r=0,V=kN(ue.configFile.configFileSpecs,bo(li(N),M),ue,Ne,K),E5(V,bo(N,M),ue.configFile.configFileSpecs,ye,$)&&(Y=!0),gt()}function No(){C.assert(N),Le(`Reloading config file: ${N}`),r=0,oe&&oe.clearCache(),_a(),I=!0,gt(),pt(),ot(Xn(N),ue,G,kc.ExtendedConfigFile)}function _a(){C.assert(N),ja(ow(N,O,Ne,g||(g=new Map),H,K))}function ja(Ye){V=Ye.fileNames,ue=Ye.options,G=Ye.watchOptions,ne=Ye.projectReferences,he=Ye.wildcardDirectories,ye=XS(Ye).slice(),$=LN(Ye.raw),Y=!0}function En(Ye){let ht=Xn(Ye),Vt=u?.get(ht);if(Vt){if(!Vt.updateLevel)return Vt.parsedCommandLine;if(Vt.parsedCommandLine&&Vt.updateLevel===1&&!e.getParsedCommandLine){Le("Reloading new file names and options"),C.assert(ue);let fn=kN(Vt.parsedCommandLine.options.configFile.configFileSpecs,bo(li(Ye),M),ue,Ne);return Vt.parsedCommandLine={...Vt.parsedCommandLine,fileNames:fn},Vt.updateLevel=void 0,Vt.parsedCommandLine}}Le(`Loading config file: ${Ye}`);let yn=e.getParsedCommandLine?e.getParsedCommandLine(Ye):wn(Ye);return Vt?(Vt.parsedCommandLine=yn,Vt.updateLevel=void 0):(u||(u=new Map)).set(ht,Vt={parsedCommandLine:yn}),xt(Ye,ht,Vt),yn}function wn(Ye){let ht=Ne.onUnRecoverableConfigFileDiagnostic;Ne.onUnRecoverableConfigFileDiagnostic=$a;let Vt=ow(Ye,void 0,Ne,g||(g=new Map),H);return Ne.onUnRecoverableConfigFileDiagnostic=ht,Vt}function Ue(Ye){var ht;let Vt=Xn(Ye),yn=u?.get(Vt);yn&&(u.delete(Vt),yn.watchedDirectories&&ep(yn.watchedDirectories,Cf),(ht=yn.watcher)==null||ht.close(),_J(Vt,p))}function mt(Ye,ht,Vt,yn,fn,mn){return ie(ht,(q,Oe)=>Vt(q,Oe,Ye),yn,fn,mn)}function ft(Ye,ht,Vt){Nt(Ye,Vt,ht),ht===2&&b.has(Vt)&&Fe.invalidateResolutionOfFile(Vt),ho(Vt),zt()}function Nt(Ye,ht,Vt){oe&&oe.addOrDeleteFile(Ye,ht,Vt)}function le(Ye,ht){return u?.has(Ye)?f2:mt(Ye,ht,We,500,G,kc.MissingFile)}function We(Ye,ht,Vt){Nt(Ye,Vt,ht),ht===0&&i.has(Vt)&&(i.get(Vt).close(),i.delete(Vt),ho(Vt),zt())}function pt(){kw(o||(o=new Map),he,j)}function j(Ye,ht){return ve(Ye,Vt=>{C.assert(N),C.assert(ue);let yn=Xn(Vt);oe&&oe.addOrDeleteFileOrDirectory(Vt,yn),ho(yn),!ww({watchedDirPath:Xn(Ye),fileOrDirectory:Vt,fileOrDirectoryPath:yn,configFileName:N,extraFileExtensions:K,options:ue,program:yt()||V,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Le,toPath:Xn})&&r!==2&&(r=1,zt())},ht,G,kc.WildcardDirectory)}function ot(Ye,ht,Vt,yn){pF(Ye,ht,p||(p=new Map),(fn,mn)=>ie(fn,(q,Oe)=>{var Lt;Nt(fn,mn,Oe),g&&fF(g,mn,Xn);let w=(Lt=p.get(mn))==null?void 0:Lt.projects;w?.size&&w.forEach(ae=>{if(N&&Xn(N)===ae)r=2;else{let J=u?.get(ae);J&&(J.updateLevel=2),Fe.removeResolutionsFromProjectReferenceRedirects(ae)}zt()})},2e3,Vt,yn),Xn)}function xt(Ye,ht,Vt){var yn,fn,mn,q;Vt.watcher||(Vt.watcher=ie(Ye,(Oe,Lt)=>{Nt(Ye,ht,Lt);let w=u?.get(ht);w&&(w.updateLevel=2),Fe.removeResolutionsFromProjectReferenceRedirects(ht),zt()},2e3,((yn=Vt.parsedCommandLine)==null?void 0:yn.watchOptions)||G,kc.ConfigFileOfReferencedProject)),kw(Vt.watchedDirectories||(Vt.watchedDirectories=new Map),(fn=Vt.parsedCommandLine)==null?void 0:fn.wildcardDirectories,(Oe,Lt)=>{var w;return ve(Oe,ae=>{let J=Xn(ae);oe&&oe.addOrDeleteFileOrDirectory(ae,J),ho(J);let pe=u?.get(ht);pe?.parsedCommandLine&&(ww({watchedDirPath:Xn(Oe),fileOrDirectory:ae,fileOrDirectoryPath:J,configFileName:Ye,options:pe.parsedCommandLine.options,program:pe.parsedCommandLine.fileNames,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Le,toPath:Xn})||pe.updateLevel!==2&&(pe.updateLevel=1,zt()))},Lt,((w=Vt.parsedCommandLine)==null?void 0:w.watchOptions)||G,kc.WildcardDirectoryOfReferencedProject)}),ot(ht,(mn=Vt.parsedCommandLine)==null?void 0:mn.options,((q=Vt.parsedCommandLine)==null?void 0:q.watchOptions)||G,kc.ExtendedConfigOfReferencedProject)}}var iUe=A({"src/compiler/watchPublic.ts"(){"use strict";ia()}});function lK(e){return Tl(e,".json")?e:Zr(e,"tsconfig.json")}var cK,oUe=A({"src/compiler/tsbuild.ts"(){"use strict";ia(),cK=(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))(cK||{})}});function aUe(e,t,r){let i=e.get(t),o;return i||(o=r(),e.set(t,o)),i||o}function Gce(e,t){return aUe(e,t,()=>new Map)}function Uw(e){return e.now?e.now():new Date}function TI(e){return!!e&&!!e.buildOrder}function wF(e){return TI(e)?e.buildOrder:e}function Vce(e,t){return r=>{let i=t?`[${aE(jw(e),"\x1B[90m")}] `:`${jw(e)} - `;i+=`${W_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function pxe(e,t,r,i){let o=aK(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):Xb,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):$a,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):$a,o.reportDiagnostic=r||Vw(e),o.reportSolutionBuilderStatus=i||Vce(e),o.now=oa(e,e.now),o}function fxe(e=gu,t,r,i,o){let s=pxe(e,t,r,i);return s.reportErrorSummary=o,s}function mxe(e=gu,t,r,i,o){let s=pxe(e,t,r,i),l=rK(e,o);return oG(s,l),s}function sUe(e){let t={};return pw.forEach(r=>{Rs(e,r.name)&&(t[r.name]=e[r.name])}),t}function _xe(e,t,r){return zxe(!1,e,t,r)}function hxe(e,t,r,i){return zxe(!0,e,t,r,i)}function lUe(e,t,r,i,o){let s=t,l=t,u=sUe(i),p=oK(s,()=>M.projectCompilerOptions);MF(p),p.getParsedCommandLine=N=>AI(M,N,z_(M,N)),p.resolveModuleNameLiterals=oa(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=oa(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=oa(s,s.resolveLibrary),p.resolveModuleNames=oa(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=oa(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=oa(s,s.getModuleResolutionCache);let g,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(g=e2(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(N,O,H,K,Z)=>zw(N,O,H,K,Z,s,g,DJ),p.getModuleResolutionCache=()=>g),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(m=k5(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache(),g?.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(N,O,H,K,Z)=>zw(N,O,H,K,Z,s,m,_F));let b;p.resolveLibrary||(b=e2(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache()),p.resolveLibrary=(N,O,H)=>w5(N,O,H,s,b)),p.getBuildInfo=(N,O)=>Nxe(M,N,z_(M,O),void 0);let{watchFile:T,watchDirectory:I,writeLog:R}=iK(l,i),M={host:s,hostWithWatch:l,parseConfigFileHost:bF(s),write:oa(s,s.trace),options:i,baseCompilerOptions:u,rootNames:r,baseWatchOptions:o,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:p,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:b,buildOrder:void 0,readFileWithCache:N=>s.readFile(N),projectCompilerOptions:u,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:T,watchDirectory:I,writeLog:R};return M}function Nf(e,t){return rl(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function z_(e,t){let{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;let o=Nf(e,t);return r.set(t,o),o}function gxe(e){return!!e.options}function cUe(e,t){let r=e.configFileCache.get(t);return r&&gxe(r)?r:void 0}function AI(e,t,r){let{configFileCache:i}=e,o=i.get(r);if(o)return gxe(o)?o:void 0;nl("SolutionBuilder::beforeConfigFileParsing");let s,{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:p,extendedConfigCache:g,host:m}=e,b;return m.getParsedCommandLine?(b=m.getParsedCommandLine(t),b||(s=Vl(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=T=>s=T,b=ow(t,u,l,g,p),l.onUnRecoverableConfigFileDiagnostic=$a),i.set(r,b||s),nl("SolutionBuilder::afterConfigFileParsing"),Yp("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),b}function eP(e,t){return lK(Dy(e.compilerHost.getCurrentDirectory(),t))}function vxe(e,t){let r=new Map,i=new Map,o=[],s,l;for(let p of t)u(p);return l?{buildOrder:s||et,circularDiagnostics:l}:s||et;function u(p,g){let m=z_(e,p);if(i.has(m))return;if(r.has(m)){g||(l||(l=[])).push(Vl(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r +`)));return}r.set(m,!0),o.push(p);let b=AI(e,p,m);if(b&&b.projectReferences)for(let T of b.projectReferences){let I=eP(e,T.path);u(I,g||T.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function OF(e){return e.buildOrder||uUe(e)}function uUe(e){let t=vxe(e,e.rootNames.map(o=>eP(e,o)));e.resolvedConfigFilePaths.clear();let r=new Set(wF(t).map(o=>z_(e,o))),i={onDeleteValue:$a};return og(e.configFileCache,r,i),og(e.projectStatus,r,i),og(e.builderPrograms,r,i),og(e.diagnostics,r,i),og(e.projectPendingBuild,r,i),og(e.projectErrorsReported,r,i),og(e.buildInfoCache,r,i),og(e.outputTimeStamps,r,i),og(e.lastCachedPackageJsonLookups,r,i),e.watch&&(og(e.allWatchedConfigFiles,r,{onDeleteValue:$m}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),og(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Cf)}),og(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach($m)}),og(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach($m)})),e.buildOrder=t}function yxe(e,t,r){let i=t&&eP(e,t),o=OF(e);if(TI(o))return o;if(i){let l=z_(e,i);if(ri(o,p=>z_(e,p)===l)===-1)return}let s=i?vxe(e,[i]):o;return C.assert(!TI(s)),C.assert(!r||i!==void 0),C.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function bxe(e){e.cache&&jce(e);let{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:g,getSourceFileWithCache:m,readFileWithCache:b}=Fw(r,T=>Nf(e,T),(...T)=>o.call(t,...T));e.readFileWithCache=b,t.getSourceFile=m,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:o}}function jce(e){if(!e.cache)return;let{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s?.clear(),l?.clear(),u?.clear(),e.cache=void 0}function Exe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function Sxe({projectPendingBuild:e},t,r){let i=e.get(t);(i===void 0||ie.projectPendingBuild.set(z_(e,i),0)),t&&t.throwIfCancellationRequested()}function Axe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function dUe(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{Mxe(e,i,r),s=!1},done:()=>(s&&Mxe(e,i,r),nl("SolutionBuilder::Timestamps only updates"),Axe(e,r))}}function Ixe(e,t,r,i,o,s,l){let u=e===0?0:4,p,g,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>T(el),getProgram:()=>T(G=>G.getProgramOrUndefined()),getSourceFile:G=>T(ne=>ne.getSourceFile(G)),getSourceFiles:()=>I(G=>G.getSourceFiles()),getOptionsDiagnostics:G=>I(ne=>ne.getOptionsDiagnostics(G)),getGlobalDiagnostics:G=>I(ne=>ne.getGlobalDiagnostics(G)),getConfigFileParsingDiagnostics:()=>I(G=>G.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(G,ne)=>I(he=>he.getSyntacticDiagnostics(G,ne)),getAllDependencies:G=>I(ne=>ne.getAllDependencies(G)),getSemanticDiagnostics:(G,ne)=>I(he=>he.getSemanticDiagnostics(G,ne)),getSemanticDiagnosticsOfNextAffectedFile:(G,ne)=>T(he=>he.getSemanticDiagnosticsOfNextAffectedFile&&he.getSemanticDiagnosticsOfNextAffectedFile(G,ne)),emit:(G,ne,he,ye,$)=>{if(G||ye)return T(Y=>{var oe,fe;return Y.emit(G,ne,he,ye,$||((fe=(oe=t.host).getCustomTransformers)==null?void 0:fe.call(oe,r)))});if(ue(2,he),u===5)return K(ne,he);if(u===3)return H(ne,he,$)},done:b}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(G,ne)=>u!==4?m:V(G,ne),done:b};function b(G,ne,he){return ue(8,G,ne,he),nl(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),Axe(t,i)}function T(G){return ue(0),p&&G(p)}function I(G){return T(G)||et}function R(){var G,ne,he;if(C.assert(p===void 0),t.options.dry){xd(t,f.A_non_dry_build_would_build_project_0,r),g=1,u=7;return}if(t.options.verbose&&xd(t,f.Building_project_0,r),s.fileNames.length===0){tP(t,i,XS(s)),g=0,u=7;return}let{host:ye,compilerHost:$}=t;if(t.projectCompilerOptions=s.options,(G=t.moduleResolutionCache)==null||G.update(s.options),(ne=t.typeReferenceDirectiveResolutionCache)==null||ne.update(s.options),p=ye.createProgram(s.fileNames,s.options,$,fUe(t,i,s),XS(s),s.projectReferences),t.watch){let Y=(he=t.moduleResolutionCache)==null?void 0:he.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,Y&&new Set(Vo(Y.values(),oe=>t.host.realpath&&(L5(oe)||oe.directoryExists)?t.host.realpath(Zr(oe.packageDirectory,"package.json")):Zr(oe.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}u++}function M(G,ne,he){G.length?{buildResult:g,step:u}=qce(t,i,p,s,G,ne,he):u++}function N(G){C.assertIsDefined(p),M([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(G),...p.getGlobalDiagnostics(G),...p.getSyntacticDiagnostics(void 0,G)],8,"Syntactic")}function O(G){M(C.checkDefined(p).getSemanticDiagnostics(void 0,G),16,"Semantic")}function H(G,ne,he){var ye,$,Y;C.assertIsDefined(p),C.assert(u===3);let oe=p.saveEmitState(),fe,Ne=je=>(fe||(fe=[])).push(je),me=[],{emitResult:ie}=NF(p,Ne,void 0,void 0,(je,at,Bt,yt,Qe,gt)=>me.push({name:je,text:at,writeByteOrderMark:Bt,data:gt}),ne,!1,he||(($=(ye=t.host).getCustomTransformers)==null?void 0:$.call(ye,r)));if(fe)return p.restoreEmitState(oe),{buildResult:g,step:u}=qce(t,i,p,s,fe,32,"Declaration file"),{emitSkipped:!0,diagnostics:ie.diagnostics};let{host:ve,compilerHost:Le}=t,He=(Y=p.hasChangedEmitSignature)!=null&&Y.call(p)?0:2,Ee=vR(),Ce=new Map,Me=p.getCompilerOptions(),Fe=dN(Me),At,Se;return me.forEach(({name:je,text:at,writeByteOrderMark:Bt,data:yt})=>{let Qe=Nf(t,je);Ce.set(Nf(t,je),je),yt?.buildInfo&&Kce(t,yt.buildInfo,i,Me,He);let gt=yt?.differsOnlyInMap?bA(t.host,je):void 0;FC(G?{writeFile:G}:Le,Ee,je,at,Bt),yt?.differsOnlyInMap?t.host.setModifiedTime(je,gt):!Fe&&t.watch&&(At||(At=Jce(t,i))).set(Qe,Se||(Se=Uw(t.host)))}),Z(Ee,Ce,me.length?me[0].name:pJ(s,!ve.useCaseSensitiveFileNames()),He),ie}function K(G,ne){C.assertIsDefined(p),C.assert(u===5);let he=p.emitBuildInfo((ye,$,Y,oe,fe,Ne)=>{Ne?.buildInfo&&Kce(t,Ne.buildInfo,i,p.getCompilerOptions(),2),G?G(ye,$,Y,oe,fe,Ne):t.compilerHost.writeFile(ye,$,Y,oe,fe,Ne)},ne);return he.diagnostics.length&&(WF(t,he.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...he.diagnostics]),g=64&g),he.emittedFiles&&t.write&&he.emittedFiles.forEach(ye=>Dxe(t,s,ye)),Hce(t,p,s),u=7,he}function Z(G,ne,he,ye){let $=G.getDiagnostics();return $.length?({buildResult:g,step:u}=qce(t,i,p,s,$,64,"Emit"),$):(t.write&&ne.forEach(Y=>Dxe(t,s,Y)),Pxe(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,ne),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:he}),Hce(t,p,s),u=7,g=ye,$)}function V(G,ne){var he,ye,$,Y;if(C.assert(e===1),t.options.dry){xd(t,f.A_non_dry_build_would_update_output_of_project_0,r),g=1,u=7;return}t.options.verbose&&xd(t,f.Updating_output_of_project_0,r);let{compilerHost:oe}=t;t.projectCompilerOptions=s.options,(ye=(he=t.host).beforeEmitBundle)==null||ye.call(he,s);let fe=nce(s,oe,He=>{let Ee=eP(t,He.path);return AI(t,Ee,z_(t,Ee))},ne||((Y=($=t.host).getCustomTransformers)==null?void 0:Y.call($,r)));if(wo(fe))return xd(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,cu(t,fe)),u=6,m=Ixe(0,t,r,i,o,s,l);C.assert(!!fe.length);let Ne=vR(),me=new Map,ie=2,ve=t.buildInfoCache.get(i).buildInfo||void 0;return fe.forEach(({name:He,text:Ee,writeByteOrderMark:Ce,data:Me})=>{var Fe,At;me.set(Nf(t,He),He),Me?.buildInfo&&(((Fe=Me.buildInfo.program)==null?void 0:Fe.outSignature)!==((At=ve?.program)==null?void 0:At.outSignature)&&(ie&=-3),Kce(t,Me.buildInfo,i,s.options,ie)),FC(G?{writeFile:G}:oe,Ne,He,Ee,Ce)}),{emitSkipped:!1,diagnostics:Z(Ne,me,fe[0].name,ie)}}function ue(G,ne,he,ye){for(;u<=G&&u<8;){let $=u;switch(u){case 0:R();break;case 1:N(ne);break;case 2:O(ne);break;case 3:H(he,ne,ye);break;case 5:K(he,ne);break;case 4:V(he,ye);break;case 6:C.checkDefined(m).done(ne,he,ye),u=8;break;case 7:gUe(t,r,i,o,s,l,C.checkDefined(g)),u++;break;case 8:default:}C.assert(u>$)}}}function pUe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!XS(r).length||!dN(r.options)}function xxe(e,t,r){if(!e.projectPendingBuild.size||TI(t))return;let{options:i,projectPendingBuild:o}=e;for(let s=0;s{let I=C.checkDefined(e.filesWatched.get(u));C.assert(uK(I)),I.modifiedTime=T,I.callbacks.forEach(R=>R(m,b,T))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:g,modifiedTime:p})}return{close:()=>{let g=C.checkDefined(e.filesWatched.get(u));C.assert(uK(g)),g.callbacks.length===1?(e.filesWatched.delete(u),Cf(g)):vA(g.callbacks,r)}}}function Jce(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function Kce(e,t,r,i,o){let s=Kv(i),l=Xce(e,s,r),u=Uw(e.host);l?(l.buildInfo=t,l.modifiedTime=u,o&2||(l.latestChangedDtsTime=u)):e.buildInfoCache.set(r,{path:Nf(e,s),buildInfo:t,modifiedTime:u,latestChangedDtsTime:o&2?void 0:u})}function Xce(e,t,r){let i=Nf(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function Nxe(e,t,r,i){let o=Nf(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;let l=e.readFileWithCache(t),u=l?cF(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||kp}),u}function Yce(e,t,r,i){let o=Cxe(e,t);if(rN&&(M=$,N=Y),I&&H.add(Nf(e,$))}if(I){R||(R=jJ(I,g,p));for(let $ of R.roots)if(!H.has($))return{type:10,buildInfoFile:g,inputFile:$}}if(!g){let $=sF(t,!p.useCaseSensitiveFileNames()),Y=Jce(e,r);for(let oe of $){let fe=Nf(e,oe),Ne=Y?.get(fe);if(Ne||(Ne=bA(e.host,oe),Y?.set(fe,Ne)),Ne===kp)return{type:4,missingOutputFileName:oe};if(NeYce(e,$,b,m));if(ne)return ne;let he=e.lastCachedPackageJsonLookups.get(r),ye=he&&mh(he,$=>Yce(e,$,b,m));return ye||(V&&Z?{type:3,outOfDateOutputFileName:m,newerProjectName:ue}:{type:Z?2:O?15:1,newestInputFileTime:N,newestInputFileName:M,oldestOutputFileName:m})}function _Ue(e,t,r){return e.buildInfoCache.get(r).path===t.path}function $ce(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};let i=e.projectStatus.get(r);if(i!==void 0)return i;nl("SolutionBuilder::beforeUpToDateCheck");let o=mUe(e,t,r);return nl("SolutionBuilder::afterUpToDateCheck"),Yp("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function Pxe(e,t,r,i,o){if(t.options.noEmit)return;let s,l=Kv(t.options);if(l){o?.has(Nf(e,l))||(e.options.verbose&&xd(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=Uw(e.host)),Xce(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}let{host:u}=e,p=sF(t,!u.useCaseSensitiveFileNames()),g=Jce(e,r),m=g?new Set:void 0;if(!o||p.length!==o.size){let b=!!e.options.verbose;for(let T of p){let I=Nf(e,T);o?.has(I)||(b&&(b=!1,xd(e,i,t.options.configFilePath)),u.setModifiedTime(T,s||(s=Uw(e.host))),g&&(g.set(I,s),m.add(I)))}}g?.forEach((b,T)=>{!o?.has(T)&&!m.has(T)&&g.delete(T)})}function hUe(e,t,r){if(!t.composite)return;let i=C.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(bo(i.buildInfo.program.latestChangedDtsFile,li(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function Mxe(e,t,r){if(e.options.dry)return xd(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);Pxe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:pJ(t,!e.host.useCaseSensitiveFileNames())})}function gUe(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let u=i+1;ue.diagnostics.has(z_(e,g)))?p?2:1:0}function kxe(e,t,r){nl("SolutionBuilder::beforeClean");let i=yUe(e,t,r);return nl("SolutionBuilder::afterClean"),Yp("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function yUe(e,t,r){let i=yxe(e,t,r);if(!i)return 3;if(TI(i))return WF(e,i.circularDiagnostics),4;let{options:o,host:s}=e,l=o.dry?[]:void 0;for(let u of i){let p=z_(e,u),g=AI(e,u,p);if(g===void 0){Bxe(e,p);continue}let m=sF(g,!s.useCaseSensitiveFileNames());if(!m.length)continue;let b=new Set(g.fileNames.map(T=>Nf(e,T)));for(let T of m)b.has(Nf(e,T))||s.fileExists(T)&&(l?l.push(T):(s.deleteFile(T),Qce(e,p,0)))}return l&&xd(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r + * ${u}`).join("")),0}function Qce(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,Exe(e,t),Sxe(e,t,r),bxe(e)}function FF(e,t,r){e.reportFileChangeDetected=!0,Qce(e,t,r),wxe(e,250,!0)}function wxe(e,t,r){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(bUe,t,"timerToBuildInvalidatedProject",e,r))}function bUe(e,t,r){nl("SolutionBuilder::beforeBuild");let i=EUe(t,r);nl("SolutionBuilder::afterBuild"),Yp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&Gxe(t,i)}function EUe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),tue(e,f.File_change_detected_Starting_incremental_compilation));let r=0,i=OF(e),o=Uce(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let s=xxe(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){wxe(e,100,!1);return}Rxe(e,s,i).done(),s.kind!==2&&r++}return jce(e),i}function Oxe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,dK(e,t,()=>FF(e,r,2),2e3,i?.watchOptions,kc.ConfigFile,t))}function Fxe(e,t,r){pF(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>dK(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>FF(e,l,2))},2e3,r?.watchOptions,kc.ExtendedConfigFile),i=>Nf(e,i))}function Wxe(e,t,r,i){e.watch&&kw(Gce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;ww({watchedDirPath:Nf(e,o),fileOrDirectory:l,fileOrDirectoryPath:Nf(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=cUe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Nf(e,p)})||FF(e,r,1)},s,i?.watchOptions,kc.WildcardDirectory,t))}function Zce(e,t,r,i){e.watch&&KC(Gce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>dK(e,o,()=>FF(e,r,0),250,i?.watchOptions,kc.SourceFile,t),onDeleteValue:$m})}function eue(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||KC(Gce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>dK(e,o,()=>FF(e,r,0),2e3,i?.watchOptions,kc.PackageJson,t),onDeleteValue:$m})}function SUe(e,t){if(e.watchAllProjectsPending){nl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of wF(t)){let i=z_(e,r),o=AI(e,r,i);Oxe(e,r,i,o),Fxe(e,i,o),o&&(Wxe(e,r,i,o),Zce(e,r,i,o),eue(e,r,i,o))}nl("SolutionBuilder::afterWatcherCreation"),Yp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function TUe(e){ep(e.allWatchedConfigFiles,$m),ep(e.allWatchedExtendedConfigFiles,Cf),ep(e.allWatchedWildcardDirectories,t=>ep(t,Cf)),ep(e.allWatchedInputFiles,t=>ep(t,$m)),ep(e.allWatchedPackageJsonFiles,t=>ep(t,$m))}function zxe(e,t,r,i,o){let s=lUe(e,t,r,i,o);return{build:(l,u,p,g)=>Lxe(s,l,u,p,g),clean:l=>kxe(s,l),buildReferences:(l,u,p,g)=>Lxe(s,l,u,p,g,!0),cleanReferences:l=>kxe(s,l,!0),getNextInvalidatedProject:l=>(Txe(s,l),Uce(s,OF(s),!1)),getBuildOrder:()=>OF(s),getUpToDateStatusOfProject:l=>{let u=eP(s,l),p=z_(s,u);return $ce(s,AI(s,u,p),p)},invalidateProject:(l,u)=>Qce(s,l,u||0),close:()=>TUe(s)}}function cu(e,t){return iC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function xd(e,t,...r){e.host.reportSolutionBuilderStatus(Vl(t,...r))}function tue(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Vl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function WF({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function tP(e,t,r){WF(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function Bxe(e,t){tP(e,t,[e.configFileCache.get(t)])}function Gxe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,o=0,s=[];TI(t)?(Vxe(e,t.buildOrder),WF(e,t.circularDiagnostics),r&&(o+=DF(t.circularDiagnostics)),r&&(s=[...s,...CF(t.circularDiagnostics)])):(t.forEach(l=>{let u=z_(e,l);e.projectErrorsReported.has(u)||WF(e,i.get(u)||et)}),r&&i.forEach(l=>o+=DF(l)),r&&i.forEach(l=>[...s,...CF(l)])),e.watch?tue(e,YJ(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function Vxe(e,t){e.options.verbose&&xd(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r + * `+cu(e,r)).join(""))}function AUe(e,t,r){switch(r.type){case 6:return xd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,cu(e,t),cu(e,r.outOfDateOutputFileName),cu(e,r.newerInputFileName));case 7:return xd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,cu(e,t),cu(e,r.outOfDateOutputFileName),cu(e,r.newerProjectName));case 4:return xd(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,cu(e,t),cu(e,r.missingOutputFileName));case 5:return xd(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,cu(e,t),cu(e,r.fileName));case 8:return xd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,cu(e,t),cu(e,r.buildInfoFile));case 9:return xd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,cu(e,t),cu(e,r.buildInfoFile));case 10:return xd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,cu(e,t),cu(e,r.buildInfoFile),cu(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return xd(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,cu(e,t),cu(e,r.newestInputFileName||""),cu(e,r.oldestOutputFileName||""));break;case 3:return xd(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,cu(e,t),cu(e,r.newerProjectName));case 2:return xd(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,cu(e,t));case 15:return xd(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,cu(e,t));case 11:return xd(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,cu(e,t),cu(e,r.upstreamProjectName));case 12:return xd(e,r.upstreamProjectBlocked?f.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:f.Project_0_can_t_be_built_because_its_dependency_1_has_errors,cu(e,t),cu(e,r.upstreamProjectName));case 0:return xd(e,f.Failed_to_parse_file_0_Colon_1,cu(e,t),r.reason);case 14:return xd(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,cu(e,t),r.version,Te);case 17:return xd(e,f.Project_0_is_being_forcibly_rebuilt,cu(e,t));case 16:case 13:break;default:}}function pK(e,t,r){e.options.verbose&&AUe(e,t,r)}var jxe,Uxe,fK,IUe=A({"src/compiler/tsbuildPublic.ts"(){"use strict";ia(),oS(),jxe=new Date(-864e13),Uxe=new Date(864e13),fK=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(fK||{})}}),ia=A({"src/compiler/_namespaces/ts.ts"(){"use strict";nt(),OWe(),FWe(),JWe(),YWe(),$We(),l9e(),d1e(),g9e(),S9e(),T9e(),D9e(),k9e(),Mze(),Lze(),kze(),wze(),Vze(),jze(),Uze(),Hze(),vBe(),yBe(),CBe(),JBe(),yGe(),IGe(),xGe(),BGe(),qGe(),eVe(),sVe(),bVe(),EVe(),NVe(),PVe(),MVe(),zVe(),BVe(),GVe(),VVe(),jVe(),UVe(),HVe(),qVe(),JVe(),YVe(),$Ve(),QVe(),ZVe(),eje(),nje(),rje(),ije(),oje(),aje(),sje(),fje(),yje(),Cje(),Pje(),wje(),Oje(),Fje(),Yje(),$je(),eUe(),rUe(),iUe(),oUe(),IUe(),ile(),oS()}});function Hxe(e){return gu.args.includes(e)}function qxe(e){let t=gu.args.indexOf(e);return t>=0&&t{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(_K||(_K={})),nue=` + `}}),RUe=A({"src/jsTyping/types.ts"(){"use strict"}}),VF=A({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";xUe(),RUe()}});function Kxe(e,t){return new vm(C8(t,`ts${_e}`)||C8(t,"latest")).compareTo(e.version)<=0}function Xxe(e){return sue.has(e)?"node":e}function DUe(e,t){let r=aw(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function CUe(e,t){var r;let i=aw(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function NUe(e,t,r,i,o,s,l,u,p,g){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let m=new Map;r=Vi(r,Z=>{let V=va(Z);if(W1(V))return V});let b=[];l.include&&O(l.include,"Explicitly included types");let T=l.exclude||[];if(!g.types){let Z=new Set(r.map(li));Z.add(i),Z.forEach(V=>{H(V,"bower.json","bower_components",b),H(V,"package.json","node_modules",b)})}if(l.disableFilenameBasedTypeAcquisition||K(r),u){let Z=h1(u.map(Xxe),rS,ju);O(Z,"Inferred typings from unresolved imports")}for(let Z of T)m.delete(Z)&&t&&t(`Typing for ${Z} is in exclude list, will be ignored.`);s.forEach((Z,V)=>{let ue=p.get(V);m.get(V)===!1&&ue!==void 0&&Kxe(Z,ue)&&m.set(V,Z.typingLocation)});let I=[],R=[];m.forEach((Z,V)=>{Z?R.push(Z):I.push(V)});let M={cachedTypingPaths:R,newTypingNames:I,filesToWatch:b};return t&&t(`Finished typings discovery:${D0(M)}`),M;function N(Z){m.has(Z)||m.set(Z,!1)}function O(Z,V){t&&t(`${V}: ${JSON.stringify(Z)}`),Ke(Z,N)}function H(Z,V,ue,G){let ne=Zr(Z,V),he,ye;e.fileExists(ne)&&(G.push(ne),he=aw(ne,fe=>e.readFile(fe)).config,ye=Zi([he.dependencies,he.devDependencies,he.optionalDependencies,he.peerDependencies],Jh),O(ye,`Typing names in '${ne}' dependencies`));let $=Zr(Z,ue);if(G.push($),!e.directoryExists($))return;let Y=[],oe=ye?ye.map(fe=>Zr($,fe,V)):e.readDirectory($,[".json"],void 0,void 0,3).filter(fe=>{if(rc(fe)!==V)return!1;let Ne=Wc(va(fe)),me=Ne[Ne.length-3][0]==="@";return me&&lh(Ne[Ne.length-4])===ue||!me&&lh(Ne[Ne.length-3])===ue});t&&t(`Searching for typing names in ${$}; all files: ${JSON.stringify(oe)}`);for(let fe of oe){let Ne=va(fe),ie=aw(Ne,Le=>e.readFile(Le)).config;if(!ie.name)continue;let ve=ie.types||ie.typings;if(ve){let Le=bo(ve,li(Ne));e.fileExists(Le)?(t&&t(` Package '${ie.name}' provides its own types.`),m.set(ie.name,Le)):t&&t(` Package '${ie.name}' provides its own types but they are missing.`)}else Y.push(ie.name)}O(Y," Found package names")}function K(Z){let V=Vi(Z,G=>{if(!W1(G))return;let ne=Td(lh(rc(G))),he=lG(ne);return o.get(he)});V.length&&O(V,"Inferred typings from file names"),Et(Z,G=>Tl(G,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),N("react"))}}function PUe(e){return rue(e,!0)}function rue(e,t){if(!e)return 1;if(e.length>cue)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){let i=rue(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};let o=rue(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function MUe(e,t){return typeof e=="object"?Yxe(t,e.result,e.name,e.isScopeName):Yxe(t,e,t,!1)}function Yxe(e,t,r,i){let o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${cue} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return C.fail();default:C.assertNever(t)}}var iue,oue,aue,sue,lue,cue,LUe=A({"src/jsTyping/jsTyping.ts"(){"use strict";Kw(),VF(),iue=["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"],oue=iue.map(e=>`node:${e}`),aue=[...iue,...oue],sue=new Set(aue),lue=(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))(lue||{}),cue=214}}),B_={};X(B_,{NameValidationResult:()=>lue,discoverTypings:()=>NUe,isTypingUpToDate:()=>Kxe,loadSafeList:()=>DUe,loadTypesMap:()=>CUe,nodeCoreModuleList:()=>aue,nodeCoreModules:()=>sue,nonRelativeModuleNameForTypingCache:()=>Xxe,prefixedNodeCoreModuleList:()=>oue,renderPackageNameValidationFailure:()=>MUe,validatePackageName:()=>PUe});var kUe=A({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";LUe()}}),Kw=A({"src/jsTyping/_namespaces/ts.ts"(){"use strict";ia(),kUe(),VF()}});function jF(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` +`,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,indentSwitchCase:!0}}var UF,hK,gK,vK,Pf,yK,bK,EK,SK,TK,AK,IK,uue,Xw,xK,RK,DK,CK,NK,PK,MK,LK,kK,wUe=A({"src/services/types.ts"(){"use strict";(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(UF||(UF={})),hK=(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))(hK||{}),gK=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(gK||{}),vK=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(vK||{}),Pf={},yK=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(yK||{}),bK=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(bK||{}),EK=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(EK||{}),SK=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(SK||{}),TK=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(TK||{}),AK=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(AK||{}),IK=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(IK||{}),uue=jF(` +`),Xw=(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))(Xw||{}),xK=(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))(xK||{}),RK=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(RK||{}),DK=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(DK||{}),CK=(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))(CK||{}),NK=(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))(NK||{}),PK=(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.variableUsingElement="using",e.variableAwaitUsingElement="await using",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))(PK||{}),MK=(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))(MK||{}),LK=(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))(LK||{}),kK=(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))(kK||{})}});function Yw(e){switch(e.kind){case 260:return cr(e)&&WV(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return Lu(e)||qg(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function $S(e){e=JK(e);let t=e.parent;return e.kind===312?1:Ll(t)||Ju(t)||Th(t)||tp(t)||Eh(t)||tu(t)&&e===t.name?7:HF(e)?OUe(e):Wg(e)?Yw(t):Qd(e)&&zn(e,Xm(xN,CA,y0))?7:BUe(e)?2:FUe(e)?4:_l(t)?(C.assert(am(t.parent)),2):Yy(t)?3:1}function OUe(e){let t=e.kind===166?e:Ad(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function HF(e){for(;e.parent.kind===166;)e=e.parent;return sR(e.parent)&&e.parent.moduleReference===e}function FUe(e){return WUe(e)||zUe(e)}function WUe(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function zUe(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){let i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function BUe(e){switch(jC(e)&&(e=e.parent),e.kind){case 110:return!eg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Zh(e.parent)}return!1}function wK(e,t=!1,r=!1){return $w(e,la,FK,t,r)}function iP(e,t=!1,r=!1){return $w(e,H1,FK,t,r)}function OK(e,t=!1,r=!1){return $w(e,T_,FK,t,r)}function due(e,t=!1,r=!1){return $w(e,q1,GUe,t,r)}function pue(e,t=!1,r=!1){return $w(e,Eu,FK,t,r)}function fue(e,t=!1,r=!1){return $w(e,sd,VUe,t,r)}function FK(e){return e.expression}function GUe(e){return e.tag}function VUe(e){return e.tagName}function $w(e,t,r,i,o){let s=i?mue(e):qF(e);return o&&(s=Xl(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function qF(e){return _2(e)?e.parent:e}function mue(e){return _2(e)||GK(e)?e.parent:e}function JF(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function Qw(e,t){return zr(e.expression)?e.expression.name.text===t:!1}function Zw(e){var t;return Ve(e)&&((t=ai(e.parent,fC))==null?void 0:t.label)===e}function WK(e){var t;return Ve(e)&&((t=ai(e.parent,J1))==null?void 0:t.label)===e}function zK(e){return WK(e)||Zw(e)}function BK(e){var t;return((t=ai(e.parent,Xx))==null?void 0:t.tagName)===e}function _ue(e){var t;return((t=ai(e.parent,Ad))==null?void 0:t.right)===e}function _2(e){var t;return((t=ai(e.parent,zr))==null?void 0:t.name)===e}function GK(e){var t;return((t=ai(e.parent,Ys))==null?void 0:t.argumentExpression)===e}function VK(e){var t;return((t=ai(e.parent,Jl))==null?void 0:t.name)===e}function jK(e){var t;return Ve(e)&&((t=ai(e.parent,ea))==null?void 0:t.name)===e}function KF(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Oo(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function hue(e){return l0(e.parent.parent)&&RC(e.parent.parent)===e}function QS(e){for(Qf(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function sE(e){switch(e.kind){case 312:return ac(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(D_(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:let{initializer:r}=e;return ea(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return ei(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let i=Wl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let l=sE(o);return l===""?"const":l;case 3:return ws(o)?"method":"property";case 4:return"property";case 5:return ws(o)?"method":"property";case 6:return"local class";default:return""}case 80:return Eh(e.parent)?"alias":"";case 277:let s=sE(e.expression);return s===""?"const":s;default:return""}function t(r){return tR(r)?"const":U6(r)?"let":"var"}}function h2(e){switch(e.kind){case 110:return!0;case 80:return iU(e)&&e.parent.kind===169;default:return!1}}function sm(e,t){let r=Mg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function of(e,t){return UK(e.pos,e.end,t)}function gue(e,t){return tO(e,t.pos)&&tO(e,t.end)}function eO(e,t){return e.pos<=t&&t<=e.end}function tO(e,t){return e.pos=r.end}function nO(e,t,r){return e.pos<=t&&e.end>=r}function oP(e,t,r){return YF(e.pos,e.end,t,r)}function XF(e,t,r,i){return YF(e.getStart(t),e.end,r,i)}function YF(e,t,r,i){let o=Math.max(e,r),s=Math.min(t,i);return oi.kind===t)}function $F(e){let t=vn(e.parent.getChildren(),r=>HR(r)&&of(r,e));return C.assert(!t||wr(t.getChildren(),e)),t}function $xe(e){return e.kind===90}function jUe(e){return e.kind===86}function UUe(e){return e.kind===100}function HUe(e){if(od(e))return e.name;if(Tc(e)){let t=e.modifiers&&vn(e.modifiers,$xe);if(t)return t}if(Zc(e)){let t=vn(e.getChildren(),jUe);if(t)return t}}function qUe(e){if(od(e))return e.name;if(Sc(e)){let t=vn(e.modifiers,$xe);if(t)return t}if(ws(e)){let t=vn(e.getChildren(),UUe);if(t)return t}}function JUe(e){let t;return zn(e,r=>(qi(r)&&(t=r),!Ad(r.parent)&&!qi(r.parent)&&!dS(r.parent))),t}function QF(e,t){if(e.flags&16777216)return;let r=gW(e,t);if(r)return r;let i=JUe(e);return i&&t.getTypeAtLocation(i)}function KUe(e,t){if(!t)switch(e.kind){case 263:case 231:return HUe(e);case 262:case 218:return qUe(e);case 176:return e}if(od(e))return e.name}function Qxe(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(jg(e.importClause.namedBindings)){let r=ah(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Zy(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function Zxe(e,t){if(e.exportClause){if(Df(e.exportClause))return ah(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Sh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function XUe(e){if(e.types.length===1)return e.types[0].expression}function eRe(e,t){let{parent:r}=e;if(Ia(e)&&(t||e.kind!==90)?Cm(r)&&wr(r.modifiers,e):e.kind===86?Tc(r)||Zc(e):e.kind===100?Sc(r)||ws(e):e.kind===120?fd(r):e.kind===94?v0(r):e.kind===156?Dm(r):e.kind===145||e.kind===144?Jl(r):e.kind===102?tu(r):e.kind===139?Zp(r):e.kind===153&&vp(r)){let i=KUe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&jc(r)&&r.declarations.length===1){let i=r.declarations[0];if(Ve(i.name))return i.name}if(e.kind===156){if(Eh(r)&&r.isTypeOnly){let i=Qxe(r.parent,t);if(i)return i}if(Kl(r)&&r.isTypeOnly){let i=Zxe(r,t);if(i)return i}}if(e.kind===130){if(tp(r)&&r.propertyName||Ju(r)&&r.propertyName||Zy(r)||Sh(r))return r.name;if(Kl(r)&&r.exportClause&&Sh(r.exportClause))return r.exportClause.name}if(e.kind===102&&Lc(r)){let i=Qxe(r,t);if(i)return i}if(e.kind===95){if(Kl(r)){let i=Zxe(r,t);if(i)return i}if(Ll(r))return Xl(r.expression)}if(e.kind===149&&Th(r))return r.expression;if(e.kind===161&&(Lc(r)||Kl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&ef(r)&&r.token===e.kind){let i=XUe(r);if(i)return i}if(e.kind===96){if(_l(r)&&r.constraint&&Rf(r.constraint))return r.constraint.typeName;if(aI(r)&&Rf(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&MS(r))return r.typeParameter.name;if(e.kind===103&&_l(r)&&WR(r.parent))return r.name;if(e.kind===143&&kS(r)&&r.operator===143&&Rf(r.type))return r.type.typeName;if(e.kind===148&&kS(r)&&r.operator===148&&Gk(r.type)&&Rf(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&H1(r)||e.kind===116&&sI(r)||e.kind===114&&zR(r)||e.kind===135&&$y(r)||e.kind===127&&Z7(r)||e.kind===91&&Pae(r))&&r.expression)return Xl(r.expression);if((e.kind===103||e.kind===104)&&_r(r)&&r.operatorToken===e)return Xl(r.right);if(e.kind===130&&jk(r)&&Rf(r.type))return r.type.typeName;if(e.kind===103&&t5(r)||e.kind===165&&Uk(r))return Xl(r.expression)}return e}function JK(e){return eRe(e,!1)}function ZF(e){return eRe(e,!0)}function zd(e,t){return g2(e,t,r=>R_(r)||Fd(r.kind)||Xi(r))}function g2(e,t,r){return tRe(e,t,!1,r,!1)}function po(e,t){return tRe(e,t,!0,void 0,!1)}function tRe(e,t,r,i,o){let s=e,l;e:for(;;){let p=s.getChildren(e),g=_A(p,t,(m,b)=>b,(m,b)=>{let T=p[m].getEnd();if(Tt?1:u(p[m],I,T)?p[m-1]&&u(p[m-1])?1:0:i&&I===t&&p[m-1]&&p[m-1].getEnd()===t&&u(p[m-1])?1:-1});if(l)return l;if(g>=0&&p[g]){s=p[g];continue e}return s}function u(p,g,m){if(m??(m=p.getEnd()),mt))return!1;if(tr.getStart(e)&&t(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&xue(s,r)?i(s):void 0)}}function Ac(e,t,r,i){let o=s(r||t);return C.assert(!(o&&tW(o))),o;function s(l){if(nRe(l)&&l.kind!==1)return l;let u=l.getChildren(t),p=_A(u,e,(m,b)=>b,(m,b)=>e=u[m-1].end?0:1:-1);if(p>=0&&u[p]){let m=u[p];if(e=e||!xue(m,t)||tW(m)){let I=Eue(u,p,t,l.kind);return I?!i&&C6(I)&&I.getChildren(t).length?s(I):bue(I,t):void 0}else return s(m)}C.assert(r!==void 0||l.kind===312||l.kind===1||C6(l));let g=Eue(u,u.length,t,l.kind);return g&&bue(g,t)}}function nRe(e){return AA(e)&&!tW(e)}function bue(e,t){if(nRe(e))return e;let r=e.getChildren(t);if(r.length===0)return e;let i=Eue(r,r.length,t,e.kind);return i&&bue(i,t)}function Eue(e,t,r,i){for(let o=t-1;o>=0;o--){let s=e[o];if(tW(s))o===0&&(i===12||i===285)&&C.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(xue(e[o],r))return e[o]}}function II(e,t,r=Ac(t,e)){if(r&&qV(r)){let i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function Tue(e,t){let r=po(e,t);return!!($A(r)||r.kind===19&&AN(r.parent)&&cg(r.parent.parent)||r.kind===30&&sd(r.parent)&&cg(r.parent.parent))}function nW(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(po(e,t))}function rW(e,t,r){let i=ma(e.kind),o=ma(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)!!s.typeParameters&&s.typeParameters.length>=t)}function YK(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 30:if(r=Ac(r.getFullStart(),t),r&&r.kind===29&&(r=Ac(r.getFullStart(),t)),!r||!Ve(r))return;if(!i)return Wg(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=rW(r,19,t),!r)return;break;case 22:if(r=rW(r,21,t),!r)return;break;case 24:if(r=rW(r,23,t),!r)return;break;case 28:o++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(qi(r))break;return}r=Ac(r.getFullStart(),t)}}function Xv(e,t,r){return wc.getRangeOfEnclosingComment(e,t,void 0,r)}function Iue(e,t){let r=po(e,t);return!!zn(r,t_)}function xue(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function aP(e,t=0){let r=[],i=qu(e)?kV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Il(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function Rue(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(ea(e)||e.kind===263||e.kind===264)return e.typeParameters}function iW(e){return e===2||e===3}function $K(e){return!!(e===11||e===14||My(e))}function rRe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function Due(e){if(!e.isIntersection())return!1;let{types:t,checker:r}=e;return t.length===2&&(rRe(r,t[0],t[1])||rRe(r,t[1],t[0]))}function oO(e,t,r){return My(e.kind)&&e.getStart(r){let r=ss(t);return!e[r]&&(e[r]=!0)}}function v2(e){return e.getText(0,e.getLength())}function lO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function Mue(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function oX(e){return!!e.module||as(e)>=2||!!e.noEmit}function ZS(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:oa(t,t.readFile),useCaseSensitiveFileNames:oa(t,t.useCaseSensitiveFileNames),getSymlinkCache:oa(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:oa(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:oa(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:oa(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function aX(e,t){return{...ZS(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function lW(e){return e===2||e>=3&&e<=99||e===100}function Lue(e,t,r,i){return e||t&&t.length?$v(e,t,r,i):void 0}function $v(e,t,r,i,o){return k.createImportDeclaration(void 0,e||t?k.createImportClause(!!o,e,t&&t.length?k.createNamedImports(t):void 0):void 0,typeof r=="string"?RI(r,i):r,void 0)}function RI(e,t){return k.createStringLiteral(e,t===0)}function sX(e,t){return s3(e,t)?1:0}function af(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=e.imports&&vn(e.imports,i=>Na(i)&&!Xs(i.parent));return r?sX(r,e):1}}function lX(e){switch(e){case 0:return"'";case 1:return'"';default:return C.assertNever(e)}}function cW(e){let t=uW(e);return t===void 0?void 0:Hi(t)}function uW(e){return e.escapedName!=="default"?e.escapedName:Zt(e.declarations,t=>{let r=Oo(t);return r&&r.kind===80?r.escapedText:void 0})}function dW(e){return us(e)&&(Th(e.parent)||Lc(e.parent)||Sd(e.parent,!1)&&e.parent.arguments[0]===e||Wp(e.parent)&&e.parent.arguments[0]===e)}function uO(e){return Qa(e)&&om(e.parent)&&Ve(e.name)&&!e.propertyName}function pW(e,t){let r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function dO(e,t,r){if(e)for(;e.parent;){if(no(e.parent)||!YUe(r,e.parent,t))return e;e=e.parent}}function YUe(e,t,r){return LV(e,t.getStart(r))&&t.getEnd()<=ql(e)}function y2(e,t){return Cm(e)?vn(e.modifiers,r=>r.kind===t):void 0}function lP(e,t,r,i,o){let l=(Do(r)?r[0]:r).kind===243?Nj:_S,u=tr(t.statements,l),p=Do(r)?Mm.detectImportDeclarationSorting(r,o):3,g=Mm.getOrganizeImportsComparer(o,p===2),m=Do(r)?Iv(r,(b,T)=>Mm.compareImportsOrRequireStatements(b,T,g)):[r];if(!u.length)e.insertNodesAtTopOfFile(t,m,i);else if(u&&(p=Mm.detectImportDeclarationSorting(u,o))){let b=Mm.getOrganizeImportsComparer(o,p===2);for(let T of m){let I=Mm.getImportDeclarationInsertionIndex(u,T,b);if(I===0){let R=u[0]===t.statements[0]?{leadingTriviaOption:hr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],T,!1,R)}else{let R=u[I-1];e.insertNodeAfter(t,R,T)}}}else{let b=Zs(u);b?e.insertNodesAfter(t,b,m):e.insertNodesAtTopOfFile(t,m,i)}}function cX(e,t){return C.assert(e.isTypeOnly),aa(e.getChildAt(0,t),rX)}function b2(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function uX(e,t,r){return(r?rS:Yb)(e.fileName,t.fileName)&&b2(e.textSpan,t.textSpan)}function dX(e){return(t,r)=>uX(t,r,e)}function pX(e,t){if(e){for(let r=0;rCo(r)?!0:Qa(r)||om(r)||U1(r)?!1:"quit")}function $Ue(){let e=Ek*10,t,r,i,o;m();let s=b=>u(b,17);return{displayParts:()=>{let b=t.length&&t[t.length-1].text;return o>e&&b&&b!=="..."&&(Lg(b.charCodeAt(b.length-1))||t.push(rp(" ",16)),t.push(rp("...",15))),t},writeKeyword:b=>u(b,5),writeOperator:b=>u(b,12),writePunctuation:b=>u(b,15),writeTrailingSemicolon:b=>u(b,15),writeSpace:b=>u(b,16),writeStringLiteral:b=>u(b,8),writeParameter:b=>u(b,13),writeProperty:b=>u(b,14),writeLiteral:b=>u(b,8),writeSymbol:p,writeLine:g,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ko,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){let b=g3(i);b&&(o+=b.length,t.push(rp(b,16))),r=!1}}function u(b,T){o>e||(l(),o+=b.length,t.push(rp(b,T)))}function p(b,T){o>e||(l(),o+=b.length,t.push(wue(b,T)))}function g(){o>e||(o+=1,t.push(E2()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function wue(e,t){return rp(e,r(t));function r(i){let o=i.flags;return o&3?mX(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function rp(e,t){return{text:e,kind:Xw[t]}}function kl(){return rp(" ",16)}function Ep(e){return rp(ma(e),5)}function Yu(e){return rp(ma(e),15)}function uP(e){return rp(ma(e),12)}function Oue(e){return rp(e,13)}function Fue(e){return rp(e,14)}function _X(e){let t=y1(e);return t===void 0?sf(e):Ep(t)}function sf(e){return rp(e,17)}function Wue(e){return rp(e,0)}function zue(e){return rp(e,18)}function mW(e){return rp(e,24)}function Bue(e,t){return{text:e,kind:Xw[23],target:{fileName:Vn(t).fileName,textSpan:Rd(t)}}}function hX(e){return rp(e,22)}function Gue(e,t){var r;let i=Wae(e)?"link":zae(e)?"linkcode":"linkplain",o=[hX(`{@${i} `)];if(!e.name)e.text&&o.push(mW(e.text));else{let s=t?.getSymbolAtLocation(e.name),l=s&&t?yX(s,t):void 0,u=ZUe(e.text),p=pc(e.name)+e.text.slice(0,u),g=QUe(e.text.slice(u)),m=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(m)o.push(Bue(p,m)),g&&o.push(mW(g));else{let b=u===0||e.text.charCodeAt(u)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(mW(p+b+g))}}return o.push(hX("}")),o}function QUe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}function Qv(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||fRe}function E2(){return rp(` +`,6)}function ob(e){try{return e(OX),OX.displayParts()}finally{OX.clear()}}function pO(e,t,r,i=0){return ob(o=>{e.writeType(t,r,i|1024|16384,o)})}function dP(e,t,r,i,o=0){return ob(s=>{e.writeSymbol(t,r,i,o|8,s)})}function gX(e,t,r,i=0){return i|=25632,ob(o=>{e.writeSignature(t,r,i,void 0,o)})}function oRe(e,t){let r=t.getSourceFile();return ob(i=>{Lw().writeNode(4,e,r,i)})}function Vue(e){return!!e.parent&&IA(e.parent)&&e.parent.propertyName===e}function vX(e,t){return J3(e,t.getScriptKind&&t.getScriptKind(e))}function yX(e,t){let r=e;for(;eHe(r)||fh(r)&&r.links.target;)fh(r)&&r.links.target?r=r.links.target:r=bu(r,t);return r}function eHe(e){return(e.flags&2097152)!==0}function jue(e,t){return Ta(bu(e,t))}function Uue(e,t){for(;Lg(e.charCodeAt(t));)t+=1;return t}function _W(e,t){for(;t>-1&&S_(e.charCodeAt(t));)t-=1;return t+1}function sl(e,t=!0){let r=e&&aRe(e);return r&&!t&&Sp(r),r}function fO(e,t,r){let i=r(e);return i?Pr(i,e):i=aRe(e,r),i&&!t&&Sp(i),i}function aRe(e,t){let r=t?s=>fO(s,!0,t):sl,o=An(e,r,void 0,t?s=>s&&bX(s,!0,t):s=>s&&cE(s),r);if(o===e){let s=Na(e)?Pr(k.createStringLiteralFromNode(e),e):hp(e)?Pr(k.createNumericLiteral(e.text,e.numericLiteralFlags),e):k.cloneNode(e);return dt(s,e)}return o.parent=void 0,o}function cE(e,t=!0){if(e){let r=k.createNodeArray(e.map(i=>sl(i,t)),e.hasTrailingComma);return dt(r,e),r}return e}function bX(e,t,r){return k.createNodeArray(e.map(i=>fO(i,t,r)),e.hasTrailingComma)}function Sp(e){EX(e),Hue(e)}function EX(e){que(e,1024,nHe)}function Hue(e){que(e,2048,gU)}function eT(e,t){let r=e.getSourceFile(),i=r.text;tHe(e,i)?S2(e,t,r):_O(e,t,r),pP(e,t,r)}function tHe(e,t){let r=e.getFullStart(),i=e.getStart();for(let o=r;ot)}function tT(e,t){let r=e;for(let i=1;!F6(t,r);i++)r=`${e}_${i}`;return r}function mO(e,t,r,i){let o=0,s=-1;for(let{fileName:l,textChanges:u}of e){C.assert(l===t);for(let p of u){let{span:g,newText:m}=p,b=rHe(m,rg(r));if(b!==-1&&(s=g.start+o+b,!i))return s;o+=m.length-g.length}}return C.assert(i),C.assert(s>=0),s}function S2(e,t,r,i,o){XM(r.text,e.pos,Jue(t,r,i,o,mN))}function pP(e,t,r,i,o){YM(r.text,e.end,Jue(t,r,i,o,h7))}function _O(e,t,r,i,o){YM(r.text,e.pos,Jue(t,r,i,o,mN))}function Jue(e,t,r,i,o){return(s,l,u,p)=>{u===3?(s+=2,l-=2):s+=2,o(e,r||u,t.text.slice(s,l),i!==void 0?i:p)}}function rHe(e,t){if(uo(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function hW(e){return _r(e)&&e.operatorToken.kind===28||wa(e)||(jk(e)||bH(e))&&wa(e.expression)}function gW(e,t,r){let i=Fv(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{let{left:o,operatorToken:s,right:l}=i;return vW(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return TX(i,t);default:return t.getContextualType(e,r)}}function fP(e,t,r){let i=af(e,t),o=JSON.stringify(r);return i===0?`'${em(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function vW(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function Kue(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function SX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function TX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function mP(e,t,r,i){let o=r.getTypeChecker(),s=!0,l=()=>s=!1,u=o.typeToTypeNode(e,t,1,{trackSymbol:(p,g,m)=>(s=s&&o.isSymbolAccessible(p,g,m,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:aX(r,i)});return s?u:void 0}function Xue(e){return e===179||e===180||e===181||e===171||e===173}function sRe(e){return e===262||e===176||e===174||e===177||e===178}function lRe(e){return e===267}function yW(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function iHe(e,t){let r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Xue(e.kind)){if(r&&r.kind===28)return!1}else if(lRe(e.kind)){let u=Ya(e.getChildren(t));if(u&&k_(u))return!1}else if(sRe(e.kind)){let u=Ya(e.getChildren(t));if(u&&D1(u))return!1}else if(!yW(e.kind))return!1;if(e.kind===246)return!0;let i=zn(e,u=>!u.parent),o=lE(e,i,t);if(!o||o.kind===20)return!0;let s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function bW(e,t,r){let i=zn(t,o=>o.end!==e?"quit":FX(o.kind));return!!i&&iHe(i,r)}function hO(e){let t=0,r=0,i=5;return Ho(e,function o(s){if(yW(s.kind)){let l=s.getLastToken(e);l?.kind===27?t++:r++}else if(Xue(s.kind)){let l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){let u=Es(e,l.getStart(e)).line,p=Es(e,hh(e,l.end).start).line;u!==p&&r++}}return t+r>=i?!0:Ho(s,o)}),t===0&&r<=1?!0:t/r>1/i}function EW(e,t){return AW(e,e.getDirectories,t)||[]}function AX(e,t,r,i,o){return AW(e,e.readDirectory,t,r,i,o)||et}function gO(e,t){return AW(e,e.fileExists,t)}function SW(e,t){return TW(()=>Ym(t,e))||!1}function TW(e){try{return e()}catch{return}}function AW(e,t,...r){return TW(()=>t&&t.apply(e,r))}function IX(e,t,r){let i=[];return Em(e,o=>{if(o===r)return!0;let s=Zr(o,"package.json");gO(t,s)&&i.push(s)}),i}function Yue(e,t){let r;return Em(e,i=>{if(i==="node_modules"||(r=oce(i,o=>gO(t,o),"package.json"),r))return!0}),r}function $ue(e,t){if(!t.fileExists)return[];let r=[];return Em(li(e),i=>{let o=Zr(i,"package.json");if(t.fileExists(o)){let s=xX(o,t);s&&r.push(s)}}),r}function xX(e,t){if(!t.readFile)return;let r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=N3(i),s={};if(o)for(let p of r){let g=o[p];if(!g)continue;let m=new Map;for(let b in g)m.set(b,g[b]);s[p]=m}let l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:u,has(p,g){return!!u(p,g)}};function u(p,g=15){for(let[m,b]of l)if(b&&g&m){let T=b.get(p);if(T!==void 0)return T}}}function _P(e,t,r){let i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||$ue(e.fileName,r)).filter(R=>R.parseable),o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:g,allowsImportingSpecifier:m};function u(R){let M=I(R);for(let N of i)if(N.has(M)||N.has(W5(M)))return!0;return!1}function p(R,M){if(!i.length||!R.valueDeclaration)return!0;if(!s)s=new Map;else{let Z=s.get(R);if(Z!==void 0)return Z}let N=em(R.getName());if(b(N))return s.set(R,!0),!0;let O=R.valueDeclaration.getSourceFile(),H=T(O.fileName,M);if(typeof H>"u")return s.set(R,!0),!0;let K=u(H)||u(N);return s.set(R,K),K}function g(R,M){if(!i.length)return!0;if(!l)l=new Map;else{let H=l.get(R);if(H!==void 0)return H}let N=T(R.fileName,M);if(!N)return l.set(R,!0),!0;let O=u(N);return l.set(R,O),O}function m(R){return!i.length||b(R)||wp(R)||dp(R)?!0:u(R)}function b(R){return!!(ld(e)&&B_.nodeCoreModules.has(R)&&(o===void 0&&(o=IW(e)),o))}function T(R,M){if(!R.includes("node_modules"))return;let N=nE.getNodeModulesPackageName(r.getCompilationSettings(),e,R,M,t);if(N&&!wp(N)&&!dp(N))return I(N)}function I(R){let M=Wc(zN(R)).slice(1);return uo(M[0],"@")?`${M[0]}/${M[1]}`:M[0]}}function IW(e){return Et(e.imports,({text:t})=>B_.nodeCoreModules.has(t))}function vO(e){return wr(Wc(e),"node_modules")}function RX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Que(e,t){let r=Rd(e),i=_A(t,r,el,M8);if(i>=0){let o=t[i];return C.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),aa(o,RX)}}function Zue(e,t){var r;let i=_A(t,e.start,l=>l.start,tl);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;let o=[],s=ql(e);for(;;){let l=ai(t[i],RX);if(!l||l.start>s)break;nre(e,l)&&o.push(l),i++}return o}function DI({startPosition:e,endPosition:t}){return dc(e,t===void 0?e:t)}function DX(e,t){let r=po(e,t.start);return zn(r,o=>o.getStart(e)ql(t)?"quit":bt(o)&&b2(t,Rd(o,e)))}function CX(e,t,r=el){return e?Do(e)?r(Ft(e,t)):t(e,0):void 0}function NX(e){return Do(e)?Ha(e):e}function ede(e,t){if(cRe(e)){let r=uRe(e);if(r)return r;let i=Fu.moduleSymbolToValidIdentifier(tde(e),t,!1),o=Fu.moduleSymbolToValidIdentifier(tde(e),t,!0);return i===o?i:[i,o]}return e.name}function xW(e,t,r){return cRe(e)?uRe(e)||Fu.moduleSymbolToValidIdentifier(tde(e),t,!!r):e.name}function cRe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function uRe(e){return Zt(e.declarations,t=>{var r,i,o;return Ll(t)?(r=ai(Xl(t.expression),Ve))==null?void 0:r.text:Ju(t)&&t.symbol.flags===2097152?(i=ai(t.propertyName,Ve))==null?void 0:i.text:(o=ai(Oo(t),Ve))==null?void 0:o.text})}function tde(e){var t;return C.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${C.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{let i=C.formatSyntaxKind(r.kind),o=cr(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${C.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function nde(e,t,r){let i=t.length;if(i+r>e.length)return!1;for(let o=0;oJl(r)&&I_(r))}function RW(e){return!!(kV(e)&65536)}function DW(e,t){return Zt(e.imports,i=>{if(B_.nodeCoreModules.has(i.text))return uo(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function yO(e){return e===` +`?1:0}function nT(e){return Do(e)?ag(Bo(e[0]),e.slice(1)):Bo(e)}function CW({options:e},t){let r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!hO(t);return{...e,semicolons:i?"remove":"ignore"}}function MX(e){return e===2||e===3}function T2(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function NW(e,t){let r=new Set,i=new Set,o=new Set;for(let u of t)if(!IN(u)){let p=vs(u.expression);if(S1(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:let g=Goe(Sl(p.text,"n")?p.text.slice(0,-1):p.text);g&&o.add(z1(g));break}else{let g=e.getSymbolAtLocation(u.expression);if(g&&g.valueDeclaration&&Q1(g.valueDeclaration)){let m=e.getConstantValue(g.valueDeclaration);m!==void 0&&s(m)}}}return{addValue:s,hasValue:l};function s(u){switch(typeof u){case"string":r.add(u);break;case"number":i.add(u)}}function l(u){switch(typeof u){case"string":return r.has(u);case"number":return i.has(u);case"object":return o.has(z1(u))}}}function LX(e,t,r,i){var o;let s=typeof e=="string"?e:e.fileName;if(!W1(s))return!1;let l=t.getCompilerOptions(),u=ku(l),p=typeof e=="string"?Bw(rl(e,r.getCurrentDirectory(),Wv(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l):e.impliedNodeFormat;if(p===99)return!1;if(p===1||l.verbatimModuleSyntax&&u===1)return!0;if(l.verbatimModuleSyntax&&W3(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var $u,kX,pRe,PW,wX,OX,fRe,MW,FX,oHe=A({"src/services/utilities.ts"(){"use strict";ci(),$u=Mv(99,!0),kX=(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))(kX||{}),pRe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(wX||{}),OX=$Ue(),fRe=` +`,MW="anonymous function",FX=Xm(Xue,sRe,lRe,yW)}});function WX(e){let t=1,r=Xp(),i=new Map,o=new Map,s,l={isUsableByFile:I=>I===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(I,R,M,N,O,H,K,Z)=>{I!==s&&(l.clear(),s=I);let V;if(O){let me=t7(O.fileName);if(me){let{topLevelNodeModulesIndex:ie,topLevelPackageNameIndex:ve,packageRootIndex:Le}=me;if(V=Tw(zN(O.fileName.substring(ve+1,Le))),uo(I,O.path.substring(0,ie))){let He=o.get(V),Ee=O.fileName.substring(0,ve+1);if(He){let Ce=He.indexOf(Ih);ie>Ce&&o.set(V,Ee)}else o.set(V,Ee)}}}let G=H===1&&TR(R)||R,ne=H===0||sO(G)?Hi(M):ede(G,void 0),he=typeof ne=="string"?ne:ne[0],ye=typeof ne=="string"?void 0:ne[1],$=em(N.name),Y=t++,oe=bu(R,Z),fe=R.flags&33554432?void 0:R,Ne=N.flags&33554432?void 0:N;(!fe||!Ne)&&i.set(Y,[R,N]),r.add(p(he,R,Yc($)?void 0:$,Z),{id:Y,symbolTableKey:M,symbolName:he,capitalizedSymbolName:ye,moduleName:$,moduleFile:O,moduleFileName:O?.fileName,packageName:V,exportKind:H,targetFlags:oe.flags,isFromPackageJson:K,symbol:fe,moduleSymbol:Ne})},get:(I,R)=>{if(I!==s)return;let M=r.get(R);return M?.map(u)},search:(I,R,M,N)=>{if(I===s)return Bc(r,(O,H)=>{let{symbolName:K,ambientModuleName:Z}=g(H),V=R&&O[0].capitalizedSymbolName||K;if(M(V,O[0].targetFlags)){let G=O.map(u).filter((ne,he)=>T(ne,O[he].packageName));if(G.length){let ne=N(G,V,!!Z,H);if(ne!==void 0)return ne}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(I,R,M)=>m(I)&&m(R)?!1:s&&s!==R.path||M&&IW(I)!==IW(R)||!Jm(I.moduleAugmentations,R.moduleAugmentations)||!b(I,R)?(l.clear(),!0):(s=R.path,!1)};return C.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function u(I){if(I.symbol&&I.moduleSymbol)return I;let{id:R,exportKind:M,targetFlags:N,isFromPackageJson:O,moduleFileName:H}=I,[K,Z]=i.get(R)||et;if(K&&Z)return{symbol:K,moduleSymbol:Z,moduleFileName:H,exportKind:M,targetFlags:N,isFromPackageJson:O};let V=(O?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ue=I.moduleSymbol||Z||C.checkDefined(I.moduleFile?V.getMergedSymbol(I.moduleFile.symbol):V.tryFindAmbientModule(I.moduleName)),G=I.symbol||K||C.checkDefined(M===2?V.resolveExternalModuleSymbol(ue):V.tryGetMemberInModuleExportsAndProperties(Hi(I.symbolTableKey),ue),`Could not find symbol '${I.symbolName}' by key '${I.symbolTableKey}' in module ${ue.name}`);return i.set(R,[G,ue]),{symbol:G,moduleSymbol:ue,moduleFileName:H,exportKind:M,targetFlags:N,isFromPackageJson:O}}function p(I,R,M,N){let O=M||"";return`${I.length} ${Ta(bu(R,N))} ${I} ${O}`}function g(I){let R=I.indexOf(" "),M=I.indexOf(" ",R+1),N=parseInt(I.substring(0,R),10),O=I.substring(M+1),H=O.substring(0,N),K=O.substring(N+1);return{symbolName:H,ambientModuleName:K===""?void 0:K}}function m(I){return!I.commonJsModuleIndicator&&!I.externalModuleIndicator&&!I.moduleAugmentations&&!I.ambientModuleNames}function b(I,R){if(!Jm(I.ambientModuleNames,R.ambientModuleNames))return!1;let M=-1,N=-1;for(let O of R.ambientModuleNames){let H=K=>pj(K)&&K.name.text===O;if(M=ri(I.statements,H,M+1),N=ri(R.statements,H,N+1),I.statements[M]!==R.statements[N])return!1}return!0}function T(I,R){if(!R||!I.moduleFileName)return!0;let M=e.getGlobalTypingsCacheLocation();if(M&&uo(I.moduleFileName,M))return!0;let N=o.get(R);return!N||uo(I.moduleFileName,N)}}function zX(e,t,r,i,o,s,l){var u;if(t===r)return!1;let p=l?.get(t.path,r.path,i,{});if(p?.isBlockedByPackageJsonDependencies!==void 0)return!p.isBlockedByPackageJsonDependencies;let g=Wv(s),m=(u=s.getGlobalTypingsCacheLocation)==null?void 0:u.call(s),b=!!nE.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,T=>{let I=e.getSourceFile(T);return(I===r||!I)&&aHe(t.fileName,T,g,m)});if(o){let T=b&&o.allowsImportingSourceFile(r,s);return l?.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!T),T}return b}function aHe(e,t,r,i){let o=Em(t,l=>rc(l)==="node_modules"?l:void 0),s=o&&li(r(o));return s===void 0||uo(r(e),s)||!!i&&uo(r(i),s)}function BX(e,t,r,i,o){var s,l;let u=ER(t),p=r.autoImportFileExcludePatterns&&Vi(r.autoImportFileExcludePatterns,m=>{let b=H3(m,"","exclude");return b?jy(b,u):void 0});mRe(e.getTypeChecker(),e.getSourceFiles(),p,t,(m,b)=>o(m,b,e,!1));let g=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(g){let m=Ks(),b=e.getTypeChecker();mRe(g.getTypeChecker(),g.getSourceFiles(),p,t,(T,I)=>{(I&&!e.getSourceFile(I.fileName)||!I&&!b.resolveName(T.name,void 0,1536,!1))&&o(T,I,g,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Ks()-m}`)}}function mRe(e,t,r,i,o){var s,l;let u=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:g,path:m})=>{if(r.some(b=>b.test(g)))return!0;if(u?.size&&I0(g)){let b=li(g);return Em(li(m),T=>{let I=u.get(zc(T));if(I)return I.some(R=>r.some(M=>M.test(g.replace(b,R))));b=li(b)})??!1}return!1});for(let g of e.getAmbientModules())!g.name.includes("*")&&!(r&&((l=g.declarations)!=null&&l.every(m=>p(m.getSourceFile()))))&&o(g,void 0);for(let g of t)Fp(g)&&!p?.(g)&&o(e.getMergedSymbol(g.symbol),g)}function bO(e,t,r,i,o){var s,l,u,p,g;let m=Ks();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);let b=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||WX({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var R;return(R=t.getPackageJsonAutoImportProvider)==null?void 0:R.call(t)},getGlobalTypingsCacheLocation:()=>{var R;return(R=t.getGlobalTypingsCacheLocation)==null?void 0:R.call(t)}});if(b.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),b;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let T=r.getCompilerOptions(),I=0;try{BX(r,t,i,!0,(R,M,N,O)=>{++I%100===0&&o?.throwIfCancellationRequested();let H=new Map,K=N.getTypeChecker(),Z=LW(R,K,T);Z&&_Re(Z.symbol,K)&&b.add(e.path,Z.symbol,Z.exportKind===1?"default":"export=",R,M,Z.exportKind,O,K),K.forEachExportAndPropertyOfModule(R,(V,ue)=>{V!==Z?.symbol&&_Re(V,K)&&xm(H,ue)&&b.add(e.path,V,ue,R,M,0,O,K)})})}catch(R){throw b.clear(),R}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${Ks()-m} ms`),b}function LW(e,t,r){let i=sHe(e,t);if(!i)return;let{symbol:o,exportKind:s}=i,l=kW(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function _Re(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!ek(e)&&!Bie(e)}function sHe(e,t){let r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function kW(e,t,r){let i=TR(e);if(i)return{resolvedSymbol:i,name:i.name};let o=lHe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){let s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return kW(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:xW(e,r.target)}}function lHe(e){return e.declarations&&Zt(e.declarations,t=>{var r;if(Ll(t))return(r=ai(Xl(t.expression),Ve))==null?void 0:r.text;if(Ju(t))return C.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var GX,VX,cHe=A({"src/services/exportInfoMap.ts"(){"use strict";ci(),GX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(GX||{}),VX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(VX||{})}});function hRe(){let e=Mv(99,!1);function t(i,o,s){return pHe(r(i,o,s),i)}function r(i,o,s){let l=0,u=0,p=[],{prefix:g,pushTemplate:m}=_He(o);i=g+i;let b=g.length;m&&p.push(16),e.setText(i);let T=0,I=[],R=0;do{l=e.scan(),hR(l)||(M(),u=l);let N=e.getTokenEnd();if(dHe(e.getTokenStart(),N,b,vHe(l),I),N>=i.length){let O=uHe(e,l,Zs(p));O!==void 0&&(T=O)}}while(l!==1);function M(){switch(l){case 44:case 69:!bRe[u]&&e.reScanSlashToken()===14&&(l=14);break;case 30:u===80&&R++;break;case 32:R>0&&R--;break;case 133:case 154:case 150:case 136:case 155:R>0&&!s&&(l=80);break;case 16:p.push(l);break;case 19:p.length>0&&p.push(l);break;case 20:if(p.length>0){let N=Zs(p);N===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():C.assertEqual(l,17,"Should have been a template middle.")):(C.assertEqual(N,19,"Should have been an open brace"),p.pop())}break;default:if(!Fd(l))break;(u===25||Fd(u)&&Fd(l)&&!mHe(u,l))&&(l=80)}}return{endOfLineState:T,spans:I}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function uHe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;let i=e.getTokenText(),o=i.length-1,s=0;for(;i.charCodeAt(o-s)===92;)s++;return s&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(My(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return C.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function dHe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);let s=t-e;s>0&&o.push(e-r,s,i)}function pHe(e,t){let r=[],i=e.spans,o=0;for(let l=0;l=0){let m=u-o;m>0&&r.push({length:m,classification:4})}r.push({length:p,classification:fHe(g)}),o=u+p}let s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function fHe(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 mHe(e,t){if(!QK(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function _He(e){switch(e){case 3:return{prefix:`"\\ +`};case 2:return{prefix:`'\\ +`};case 1:return{prefix:`/* +`};case 4:return{prefix:"`\n"};case 5:return{prefix:`} +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return C.assertNever(e)}}function hHe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function gHe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function vHe(e){if(Fd(e))return 3;if(hHe(e)||gHe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return My(e)?6:2}}function ide(e,t,r,i,o){return yRe(jX(e,t,r,i,o))}function gRe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function jX(e,t,r,i,o){let s=[];return r.forEachChild(function u(p){if(!(!p||!f6(o,p.pos,p.getFullWidth()))){if(gRe(t,p.kind),Ve(p)&&!Fl(p)&&i.has(p.escapedText)){let g=e.getSymbolAtLocation(p),m=g&&vRe(g,$S(p),e);m&&l(p.getStart(r),p.getEnd(),m)}p.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,p,g){let m=p-u;C.assert(m>0,`Classification had non-positive length of ${m}`),s.push(u),s.push(m),s.push(g)}}function vRe(e,t,r){let i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&yHe(e)?14:void 0:i&2097152?vRe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function yHe(e){return Et(e.declarations,t=>Jl(t)&&qg(t)===1)}function bHe(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 yRe(e){C.assert(e.spans.length%3===0);let t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,ne=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,he=t.text.substr(V,ue),ye=G.exec(he);if(!ye||!ye[3]||!(ye[3]in WM))return!1;let $=V;b($,ye[1].length),$+=ye[1].length,p($,ye[2].length,10),$+=ye[2].length,p($,ye[3].length,21),$+=ye[3].length;let Y=ye[4],oe=$;for(;;){let Ne=ne.exec(Y);if(!Ne)break;let me=$+Ne.index+Ne[1].length;me>oe&&(b(oe,me-oe),oe=me),p(oe,Ne[2].length,22),oe+=Ne[2].length,Ne[3].length&&(b(oe,Ne[3].length),oe+=Ne[3].length),p(oe,Ne[4].length,5),oe+=Ne[4].length,Ne[5].length&&(b(oe,Ne[5].length),oe+=Ne[5].length),p(oe,Ne[6].length,24),oe+=Ne[6].length}$+=ye[4].length,$>oe&&b(oe,$-oe),ye[5]&&(p($,ye[5].length,10),$+=ye[5].length);let fe=V+ue;return $=0),ne>0){let he=ue||K(V.kind,V);he&&p(G,ne,he)}return!0}function H(V){switch(V.parent&&V.parent.kind){case 286:if(V.parent.tagName===V)return 19;break;case 287:if(V.parent.tagName===V)return 20;break;case 285:if(V.parent.tagName===V)return 21;break;case 291:if(V.parent.name===V)return 22;break}}function K(V,ue){if(Fd(V))return 3;if((V===30||V===32)&&ue&&Rue(ue.parent))return 10;if(Vj(V)){if(ue){let G=ue.parent;if(V===64&&(G.kind===260||G.kind===172||G.kind===169||G.kind===291)||G.kind===226||G.kind===224||G.kind===225||G.kind===227)return 5}return 10}else{if(V===9)return 4;if(V===10)return 25;if(V===11)return ue&&ue.parent.kind===291?24:6;if(V===14)return 6;if(My(V))return 6;if(V===12)return 23;if(V===80){if(ue){switch(ue.parent.kind){case 263:return ue.parent.name===ue?11:void 0;case 168:return ue.parent.name===ue?15:void 0;case 264:return ue.parent.name===ue?13:void 0;case 266:return ue.parent.name===ue?12:void 0;case 267:return ue.parent.name===ue?14:void 0;case 169:return ue.parent.name===ue?O1(ue)?3:17:void 0}if(kg(ue.parent))return 3}return 2}}}function Z(V){if(V&&eL(i,o,V.pos,V.getFullWidth())){gRe(e,V.kind);for(let ue of V.getChildren(t))O(ue)||Z(ue)}}}var bRe,ERe=A({"src/services/classifier.ts"(){"use strict";ci(),bRe=vne([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),wW,EHe=A({"src/services/documentHighlights.ts"(){"use strict";ci(),(e=>{function t($,Y,oe,fe,Ne){let me=zd(oe,fe);if(me.parent&&(w_(me.parent)&&me.parent.tagName===me||K1(me.parent))){let{openingElement:ie,closingElement:ve}=me.parent.parent,Le=[ie,ve].map(({tagName:He})=>r(He,oe));return[{fileName:oe.fileName,highlightSpans:Le}]}return i(fe,me,$,Y,Ne)||o(me,oe)}e.getDocumentHighlights=t;function r($,Y){return{fileName:Y.fileName,textSpan:Rd($,Y),kind:"none"}}function i($,Y,oe,fe,Ne){let me=new Set(Ne.map(He=>He.fileName)),ie=Os.getReferenceEntriesForNode($,Y,oe,Ne,fe,void 0,me);if(!ie)return;let ve=NM(ie.map(Os.toHighlightSpan),He=>He.fileName,He=>He.span),Le=Pu(oe.useCaseSensitiveFileNames());return Vo(tS(ve.entries(),([He,Ee])=>{if(!me.has(He)){if(!oe.redirectTargetsMap.has(rl(He,oe.getCurrentDirectory(),Le)))return;let Ce=oe.getSourceFile(He);He=vn(Ne,Fe=>!!Fe.redirectInfo&&Fe.redirectInfo.redirectTarget===Ce).fileName,C.assert(me.has(He))}return{fileName:He,highlightSpans:Ee}}))}function o($,Y){let oe=s($,Y);return oe&&[{fileName:Y.fileName,highlightSpans:oe}]}function s($,Y){switch($.kind){case 101:case 93:return OS($.parent)?ne($.parent,Y):void 0;case 107:return fe($.parent,Rm,Z);case 111:return fe($.parent,SH,K);case 113:case 85:case 98:let me=$.kind===85?$.parent.parent:$.parent;return fe(me,WS,H);case 109:return fe($.parent,SN,O);case 84:case 90:return IN($.parent)||GR($.parent)?fe($.parent.parent.parent,SN,O):void 0;case 83:case 88:return fe($.parent,fC,N);case 99:case 117:case 92:return fe($.parent,ie=>ky(ie,!0),M);case 137:return oe(Pl,[137]);case 139:case 153:return oe(Ly,[139,153]);case 135:return fe($.parent,$y,V);case 134:return Ne(V($));case 127:return Ne(ue($));case 103:case 147:return;default:return kv($.kind)&&(qu($.parent)||Ml($.parent))?Ne(T($.kind,$.parent)):void 0}function oe(me,ie){return fe($.parent,me,ve=>{var Le;return Vi((Le=ai(ve,A_))==null?void 0:Le.symbol.declarations,He=>me(He)?vn(He.getChildren(Y),Ee=>wr(ie,Ee.kind)):void 0)})}function fe(me,ie,ve){return ie(me)?Ne(ve(me,Y)):void 0}function Ne(me){return me&&me.map(ie=>r(ie,Y))}}function l($){return SH($)?[$]:WS($)?xo($.catchClause?l($.catchClause):$.tryBlock&&l($.tryBlock),$.finallyBlock&&l($.finallyBlock)):ea($)?void 0:g($,l)}function u($){let Y=$;for(;Y.parent;){let oe=Y.parent;if(D1(oe)||oe.kind===312)return oe;if(WS(oe)&&oe.tryBlock===Y&&oe.catchClause)return Y;Y=oe}}function p($){return fC($)?[$]:ea($)?void 0:g($,p)}function g($,Y){let oe=[];return $.forEachChild(fe=>{let Ne=Y(fe);Ne!==void 0&&oe.push(...gA(Ne))}),oe}function m($,Y){let oe=b(Y);return!!oe&&oe===$}function b($){return zn($,Y=>{switch(Y.kind){case 255:if($.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!$.label||ye(Y,$.label.escapedText);default:return ea(Y)&&"quit"}})}function T($,Y){return Vi(I(Y,zA($)),oe=>y2(oe,$))}function I($,Y){let oe=$.parent;switch(oe.kind){case 268:case 312:case 241:case 296:case 297:return Y&64&&Tc($)?[...$.members,$]:oe.statements;case 176:case 174:case 262:return[...oe.parameters,...pi(oe.parent)?oe.parent.members:[]];case 263:case 231:case 264:case 187:let fe=oe.members;if(Y&15){let Ne=vn(oe.members,Pl);if(Ne)return[...fe,...Ne.parameters]}else if(Y&64)return[...fe,oe];return fe;case 210:return;default:C.assertNever(oe,"Invalid container kind.")}}function R($,Y,...oe){return Y&&wr(oe,Y.kind)?($.push(Y),!0):!1}function M($){let Y=[];if(R(Y,$.getFirstToken(),99,117,92)&&$.kind===246){let oe=$.getChildren();for(let fe=oe.length-1;fe>=0&&!R(Y,oe[fe],117);fe--);}return Ke(p($.statement),oe=>{m($,oe)&&R(Y,oe.getFirstToken(),83,88)}),Y}function N($){let Y=b($);if(Y)switch(Y.kind){case 248:case 249:case 250:case 246:case 247:return M(Y);case 255:return O(Y)}}function O($){let Y=[];return R(Y,$.getFirstToken(),109),Ke($.caseBlock.clauses,oe=>{R(Y,oe.getFirstToken(),84,90),Ke(p(oe),fe=>{m($,fe)&&R(Y,fe.getFirstToken(),83)})}),Y}function H($,Y){let oe=[];if(R(oe,$.getFirstToken(),113),$.catchClause&&R(oe,$.catchClause.getFirstToken(),85),$.finallyBlock){let fe=bs($,98,Y);R(oe,fe,98)}return oe}function K($,Y){let oe=u($);if(!oe)return;let fe=[];return Ke(l(oe),Ne=>{fe.push(bs(Ne,111,Y))}),D1(oe)&&R1(oe,Ne=>{fe.push(bs(Ne,107,Y))}),fe}function Z($,Y){let oe=zp($);if(!oe)return;let fe=[];return R1(aa(oe.body,Xo),Ne=>{fe.push(bs(Ne,107,Y))}),Ke(l(oe.body),Ne=>{fe.push(bs(Ne,111,Y))}),fe}function V($){let Y=zp($);if(!Y)return;let oe=[];return Y.modifiers&&Y.modifiers.forEach(fe=>{R(oe,fe,134)}),Ho(Y,fe=>{G(fe,Ne=>{$y(Ne)&&R(oe,Ne.getFirstToken(),135)})}),oe}function ue($){let Y=zp($);if(!Y)return;let oe=[];return Ho(Y,fe=>{G(fe,Ne=>{Z7(Ne)&&R(oe,Ne.getFirstToken(),127)})}),oe}function G($,Y){Y($),!ea($)&&!pi($)&&!fd($)&&!Jl($)&&!Dm($)&&!qi($)&&Ho($,oe=>G(oe,Y))}function ne($,Y){let oe=he($,Y),fe=[];for(let Ne=0;Ne=me.end;Le--)if(!S_(Y.text.charCodeAt(Le))){ve=!1;break}if(ve){fe.push({fileName:Y.fileName,textSpan:dc(me.getStart(),ie.end),kind:"reference"}),Ne++;continue}}fe.push(r(oe[Ne],Y))}return fe}function he($,Y){let oe=[];for(;OS($.parent)&&$.parent.elseStatement===$;)$=$.parent;for(;;){let fe=$.getChildren(Y);R(oe,fe[0],101);for(let Ne=fe.length-1;Ne>=0&&!R(oe,fe[Ne],93);Ne--);if(!$.elseStatement||!OS($.elseStatement))break;$=$.elseStatement}return oe}function ye($,Y){return!!zn($.parent,oe=>J1(oe)?oe.label.escapedText===Y:"quit")}})(wW||(wW={}))}});function EO(e){return!!e.sourceFile}function ade(e,t,r){return HX(e,t,r)}function HX(e,t="",r,i){let o=new Map,s=Pu(!!e);function l(){let N=Vo(o.keys()).filter(O=>O&&O.charAt(0)==="_").map(O=>{let H=o.get(O),K=[];return H.forEach((Z,V)=>{EO(Z)?K.push({name:V,scriptKind:Z.sourceFile.scriptKind,refCount:Z.languageServiceRefCount}):Z.forEach((ue,G)=>K.push({name:V,scriptKind:G,refCount:ue.languageServiceRefCount}))}),K.sort((Z,V)=>V.refCount-Z.refCount),{bucket:O,sourceFiles:K}});return JSON.stringify(N,void 0,2)}function u(N){return typeof N.getCompilationSettings=="function"?N.getCompilationSettings():N}function p(N,O,H,K,Z,V){let ue=rl(N,t,s),G=qX(u(O));return g(N,ue,O,G,H,K,Z,V)}function g(N,O,H,K,Z,V,ue,G){return I(N,O,H,K,Z,V,!0,ue,G)}function m(N,O,H,K,Z,V){let ue=rl(N,t,s),G=qX(u(O));return b(N,ue,O,G,H,K,Z,V)}function b(N,O,H,K,Z,V,ue,G){return I(N,O,u(H),K,Z,V,!1,ue,G)}function T(N,O){let H=EO(N)?N:N.get(C.checkDefined(O,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return C.assert(O===void 0||!H||H.sourceFile.scriptKind===O,`Script kind should match provided ScriptKind:${O} and sourceFile.scriptKind: ${H?.sourceFile.scriptKind}, !entry: ${!H}`),H}function I(N,O,H,K,Z,V,ue,G,ne){var he,ye,$,Y;G=J3(N,G);let oe=u(H),fe=H===oe?void 0:H,Ne=G===6?100:as(oe),me=typeof ne=="object"?ne:{languageVersion:Ne,impliedNodeFormat:fe&&Bw(O,(Y=($=(ye=(he=fe.getCompilerHost)==null?void 0:he.call(fe))==null?void 0:ye.getModuleResolutionCache)==null?void 0:$.call(ye))==null?void 0:Y.getPackageJsonInfoCache(),fe,oe),setExternalModuleIndicator:pk(oe),jsDocParsingMode:r};me.languageVersion=Ne,C.assertEqual(r,me.jsDocParsingMode);let ie=o.size,ve=sde(K,me.impliedNodeFormat),Le=mA(o,ve,()=>new Map);if(lr){o.size>ie&&lr.instant(lr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:oe.configFilePath,key:ve});let Me=!Su(O)&&Bc(o,(Fe,At)=>At!==ve&&Fe.has(O)&&At);Me&&lr.instant(lr.Phase.Session,"documentRegistryBucketOverlap",{path:O,key1:Me,key2:ve})}let He=Le.get(O),Ee=He&&T(He,G);if(!Ee&&i){let Me=i.getDocument(ve,O);Me&&(C.assert(ue),Ee={sourceFile:Me,languageServiceRefCount:0},Ce())}if(Ee)Ee.sourceFile.version!==V&&(Ee.sourceFile=kY(Ee.sourceFile,Z,V,Z.getChangeRange(Ee.sourceFile.scriptSnapshot)),i&&i.setDocument(ve,O,Ee.sourceFile)),ue&&Ee.languageServiceRefCount++;else{let Me=a9(N,Z,me,V,!1,G);i&&i.setDocument(ve,O,Me),Ee={sourceFile:Me,languageServiceRefCount:1},Ce()}return C.assert(Ee.languageServiceRefCount!==0),Ee.sourceFile;function Ce(){if(!He)Le.set(O,Ee);else if(EO(He)){let Me=new Map;Me.set(He.sourceFile.scriptKind,He),Me.set(G,Ee),Le.set(O,Me)}else He.set(G,Ee)}}function R(N,O,H,K){let Z=rl(N,t,s),V=qX(O);return M(Z,V,H,K)}function M(N,O,H,K){let Z=C.checkDefined(o.get(sde(O,K))),V=Z.get(N),ue=T(V,H);ue.languageServiceRefCount--,C.assert(ue.languageServiceRefCount>=0),ue.languageServiceRefCount===0&&(EO(V)?Z.delete(N):(V.delete(H),V.size===1&&Z.set(N,ir(V.values(),el))))}return{acquireDocument:p,acquireDocumentWithKey:g,updateDocument:m,updateDocumentWithKey:b,releaseDocument:R,releaseDocumentWithKey:M,getKeyForCompilationSettings:qX,getDocumentRegistryBucketKeyWithMode:sde,reportStats:l,getBuckets:()=>o}}function qX(e){return yq(e,I5)}function sde(e,t){return t?`${e}|${t}`:e}var SHe=A({"src/services/documentRegistry.ts"(){"use strict";ci()}});function lde(e,t,r,i,o,s,l){let u=ER(i),p=Pu(u),g=JX(t,r,p,l),m=JX(r,t,p,l);return hr.ChangeTracker.with({host:i,formatContext:o,preferences:s},b=>{AHe(e,b,g,t,r,i.getCurrentDirectory(),u),IHe(e,b,g,m,i,p)})}function JX(e,t,r,i){let o=r(e);return l=>{let u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(u?u.fileName:l);return u?p===void 0?void 0:THe(u.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;let u=AU(l,o,r);return u===void 0?void 0:t+"/"+u}}function THe(e,t,r,i){let o=UM(e,t,i);return cde(li(r),o)}function AHe(e,t,r,i,o,s,l){let{configFile:u}=e.getCompilerOptions();if(!u)return;let p=li(u.fileName),g=IC(u);if(!g)return;ude(g,(I,R)=>{switch(R){case"files":case"include":case"exclude":{if(m(I)||R!=="include"||!pd(I.initializer))return;let N=Vi(I.initializer.elements,H=>Na(H)?H.text:void 0);if(N.length===0)return;let O=q3(p,[],N,l,s);jy(C.checkDefined(O.includeFilePattern),l).test(i)&&!jy(C.checkDefined(O.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,Ya(I.initializer.elements),k.createStringLiteral(T(o)));return}case"compilerOptions":ude(I.initializer,(M,N)=>{let O=eq(N);C.assert(O?.type!=="listOrElement"),O&&(O.isFilePath||O.type==="list"&&O.element.isFilePath)?m(M):N==="paths"&&ude(M.initializer,H=>{if(pd(H.initializer))for(let K of H.initializer.elements)b(K)})});return}});function m(I){let R=pd(I.initializer)?I.initializer.elements:[I.initializer],M=!1;for(let N of R)M=b(N)||M;return M}function b(I){if(!Na(I))return!1;let R=cde(p,I.text),M=r(R);return M!==void 0?(t.replaceRangeWithText(u,TRe(I,u),T(M)),!0):!1}function T(I){return bm(p,I,!l)}}function IHe(e,t,r,i,o,s){let l=e.getSourceFiles();for(let u of l){let p=r(u.fileName),g=p??u.fileName,m=li(g),b=i(u.fileName),T=b||u.fileName,I=li(T),R=p!==void 0||b!==void 0;DHe(u,t,M=>{if(!wp(M))return;let N=cde(I,M),O=r(N);return O===void 0?void 0:v1(bm(m,O,s))},M=>{let N=e.getTypeChecker().getSymbolAtLocation(M);if(N?.declarations&&N.declarations.some(H=>Lu(H)))return;let O=b!==void 0?SRe(M,t2(M.text,T,e.getCompilerOptions(),o),r,l):RHe(N,M,u,e,o,r);return O!==void 0&&(O.updated||R&&wp(M.text))?nE.updateModuleSpecifier(e.getCompilerOptions(),u,g,O.newFileName,ZS(e,o),M.text):void 0})}}function xHe(e,t){return va(Zr(e,t))}function cde(e,t){return v1(xHe(e,t))}function RHe(e,t,r,i,o,s){if(e){let l=vn(e.declarations,no).fileName,u=s(l);return u===void 0?{newFileName:l,updated:!1}:{newFileName:u,updated:!0}}else{let l=i.getModeForUsageLocation(r,t),u=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return SRe(t,u,s,i.getSourceFiles())}}function SRe(e,t,r,i){if(!t)return;if(t.resolvedModule){let p=u(t.resolvedModule.resolvedFileName);if(p)return p}let o=Ke(t.failedLookupLocations,s)||wp(e.text)&&Ke(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){let g=r(p);return g&&vn(i,m=>m.fileName===g)?l(p):void 0}function l(p){return Sl(p,"/package.json")?void 0:u(p)}function u(p){let g=r(p);return g&&{newFileName:g,updated:!0}}}function DHe(e,t,r,i){for(let o of e.referencedFiles||et){let s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(let o of e.imports){let s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,TRe(o,e),s)}}function TRe(e,t){return Tf(e.getStart(t)+1,e.end-1)}function ude(e,t){if(wa(e))for(let r of e.properties)_c(r)&&Na(r.name)&&t(r,r.name.text)}var CHe=A({"src/services/getEditsForFileRename.ts"(){"use strict";ci()}});function hP(e,t){return{kind:e,isCaseSensitive:t}}function dde(e){let t=new Map,r=e.trim().split(".").map(i=>LHe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>hP(2,!0),getFullMatch:()=>hP(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>NHe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>pde(i,Ya(r),t),patternContainsDots:r.length>1}}function NHe(e,t,r,i){if(!pde(t,Ya(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,u=e.length-1;l>=0;l-=1,u-=1)s=xRe(s,pde(e[u],r[l],i));return s}function ARe(e,t){let r=t.get(e);return r||t.set(e,r=vde(e)),r}function IRe(e,t,r){let i=kHe(e,t.textLowerCase);if(i===0)return hP(t.text.length===e.length?0:1,uo(e,t.text));if(t.isLowerCase){if(i===-1)return;let o=ARe(e,r);for(let s of o)if(fde(e,s,t.text,!0))return hP(2,fde(e,s,t.text,!1));if(t.text.length0)return hP(2,!0);if(t.characterSpans.length>0){let o=ARe(e,r),s=RRe(e,o,t,!1)?!0:RRe(e,o,t,!0)?!1:void 0;if(s!==void 0)return hP(3,s)}}}function pde(e,t,r){if(KX(t.totalTextChunk.text,s=>s!==32&&s!==42)){let s=IRe(e,t.totalTextChunk,r);if(s)return s}let i=t.subWordTextChunks,o;for(let s of i)o=xRe(o,IRe(e,s,r));return o}function xRe(e,t){return sG([e,t],PHe)}function PHe(e,t){return e===void 0?1:t===void 0?-1:tl(e.kind,t.kind)||Ay(!e.isCaseSensitive,!t.isCaseSensitive)}function fde(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&PRe(0,o.length,s=>MHe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function MHe(e,t,r){return r?mde(e)===mde(t):e===t}function RRe(e,t,r,i){let o=r.characterSpans,s=0,l=0,u,p;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let g=t[s],m=!1;for(;l=65&&e<=90)return!0;if(e<127||!l6(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function DRe(e){if(e>=97&&e<=122)return!0;if(e<127||!l6(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function kHe(e,t){let r=e.length-t.length;for(let i=0;i<=r;i++)if(KX(t,(o,s)=>mde(e.charCodeAt(s+i))===o))return i;return-1}function mde(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function _de(e){return e>=48&&e<=57}function wHe(e){return A2(e)||DRe(e)||_de(e)||e===95||e===36}function OHe(e){let t=[],r=0,i=0;for(let o=0;o0&&(t.push(hde(e.substr(r,i))),i=0)}return i>0&&t.push(hde(e.substr(r,i))),t}function hde(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:gde(e)}}function gde(e){return CRe(e,!1)}function vde(e){return CRe(e,!0)}function CRe(e,t){let r=[],i=0;for(let o=1;oyde(i)&&i!==95,t,r)}function FHe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}var OW,zHe=A({"src/services/patternMatcher.ts"(){"use strict";ci(),OW=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(OW||{})}});function MRe(e,t=!0,r=!1){let i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[],s,l,u,p=0,g=!1;function m(){return l=u,u=$u.scan(),u===19?p++:u===20&&p--,u}function b(){let V=$u.getTokenValue(),ue=$u.getTokenStart();return{fileName:V,pos:ue,end:ue+V.length}}function T(){s||(s=[]),s.push({ref:b(),depth:p})}function I(){o.push(b()),R()}function R(){p===0&&(g=!0)}function M(){let V=$u.getToken();return V===138?(V=m(),V===144&&(V=m(),V===11&&T()),!0):!1}function N(){if(l===25)return!1;let V=$u.getToken();if(V===102){if(V=m(),V===21){if(V=m(),V===11||V===15)return I(),!0}else{if(V===11)return I(),!0;if(V===156&&$u.lookAhead(()=>{let G=$u.scan();return G!==161&&(G===42||G===19||G===80||Fd(G))})&&(V=m()),V===80||Fd(V))if(V=m(),V===161){if(V=m(),V===11)return I(),!0}else if(V===64){if(H(!0))return!0}else if(V===28)V=m();else return!0;if(V===19){for(V=m();V!==20&&V!==1;)V=m();V===20&&(V=m(),V===161&&(V=m(),V===11&&I()))}else V===42&&(V=m(),V===130&&(V=m(),(V===80||Fd(V))&&(V=m(),V===161&&(V=m(),V===11&&I()))))}return!0}return!1}function O(){let V=$u.getToken();if(V===95){if(R(),V=m(),V===156&&$u.lookAhead(()=>{let G=$u.scan();return G===42||G===19})&&(V=m()),V===19){for(V=m();V!==20&&V!==1;)V=m();V===20&&(V=m(),V===161&&(V=m(),V===11&&I()))}else if(V===42)V=m(),V===161&&(V=m(),V===11&&I());else if(V===102&&(V=m(),V===156&&$u.lookAhead(()=>{let G=$u.scan();return G===80||Fd(G)})&&(V=m()),(V===80||Fd(V))&&(V=m(),V===64&&H(!0))))return!0;return!0}return!1}function H(V,ue=!1){let G=V?m():$u.getToken();return G===149?(G=m(),G===21&&(G=m(),(G===11||ue&&G===15)&&I()),!0):!1}function K(){let V=$u.getToken();if(V===80&&$u.getTokenValue()==="define"){if(V=m(),V!==21)return!0;if(V=m(),V===11||V===15)if(V=m(),V===28)V=m();else return!0;if(V!==23)return!0;for(V=m();V!==24&&V!==1;)(V===11||V===15)&&I(),V=m();return!0}return!1}function Z(){for($u.setText(e),m();$u.getToken()!==1;){if($u.getToken()===16){let V=[$u.getToken()];e:for(;De(V);){let ue=$u.scan();switch(ue){case 1:break e;case 102:N();break;case 16:V.push(ue);break;case 19:De(V)&&V.push(ue);break;case 20:De(V)&&(Zs(V)===16?$u.reScanTemplateToken(!1)===18&&V.pop():V.pop());break}}m()}M()||N()||O()||r&&(H(!1,!0)||K())||m()}$u.setText(void 0)}if(t&&Z(),KH(i,e),XH(i,$a),g){if(s)for(let V of s)o.push(V.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let V;if(s)for(let ue of s)ue.depth===0?(V||(V=[]),V.push(ue.ref.fileName)):o.push(ue.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:V}}}var BHe=A({"src/services/preProcess.ts"(){"use strict";ci()}});function bde(e){let t=Pu(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:p,toLineColumnOffset:T,clearCache:I};function s(R){return rl(R,r,t)}function l(R,M){let N=s(R),O=o.get(N);if(O)return O;let H;if(e.getDocumentPositionMapper)H=e.getDocumentPositionMapper(R,M);else if(e.readFile){let K=b(R);H=K&&XX({getSourceFileLike:b,getCanonicalFileName:t,log:Z=>e.log(Z)},R,Vq(K.text,Mg(K)),Z=>!e.fileExists||e.fileExists(Z)?e.readFile(Z):void 0)}return o.set(N,H||Y5),H||Y5}function u(R){if(!Su(R.fileName)||!g(R.fileName))return;let N=l(R.fileName).getSourcePosition(R);return!N||N===R?void 0:u(N)||N}function p(R){if(Su(R.fileName))return;let M=g(R.fileName);if(!M)return;let N=e.getProgram();if(N.isSourceOfProjectReferenceRedirect(M.fileName))return;let O=N.getCompilerOptions(),H=Ps(O),K=H?Td(H)+".d.ts":y3(R.fileName,N.getCompilerOptions(),r,N.getCommonSourceDirectory(),t);if(K===void 0)return;let Z=l(K,R.fileName).getGeneratedPosition(R);return Z===R?void 0:Z}function g(R){let M=e.getProgram();if(!M)return;let N=s(R),O=M.getSourceFileByPath(N);return O&&O.resolvedPath===N?O:void 0}function m(R){let M=s(R),N=i.get(M);if(N!==void 0)return N||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(M,!1);return}let O=e.readFile(R),H=O?GHe(O):!1;return i.set(M,H),H||void 0}function b(R){return e.getSourceFileLike?e.getSourceFileLike(R):g(R)||m(R)}function T(R,M){return b(R).getLineAndCharacterOfPosition(M)}function I(){i.clear(),o.clear()}}function XX(e,t,r,i){let o=ple(r);if(o){let u=kRe.exec(o);if(u){if(u[1]){let p=u[1];return LRe(e,poe(gu,p),t)}o=void 0}}let s=[];o&&s.push(o),s.push(t+".map");let l=o&&bo(o,li(t));for(let u of s){let p=bo(u,li(t)),g=i(p,l);if(wo(g))return LRe(e,g,p);if(g!==void 0)return g||void 0}}function LRe(e,t,r){let i=jq(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(wo)))return _le(e,i,r)}function GHe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return zx(Mg(this),r)}}}var kRe,VHe=A({"src/services/sourcemaps.ts"(){"use strict";ci(),kRe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function YX(e,t,r){var i;t.getSemanticDiagnostics(e,r);let o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||Ec(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(Mue(t)||oX(t.getCompilerOptions()))&&jHe(e)&&o.push(Or(JHe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let u=ld(e);if(eY.clear(),p(e),NS(t.getCompilerOptions()))for(let g of e.imports){let m=CC(g),b=UHe(m);if(!b)continue;let T=(i=t.getResolvedModuleFromModuleSpecifier(g))==null?void 0:i.resolvedModule,I=T&&t.getSourceFile(T.resolvedFileName);I&&I.externalModuleIndicator&&I.externalModuleIndicator!==!0&&Ll(I.externalModuleIndicator)&&I.externalModuleIndicator.isExportEquals&&o.push(Or(b,f.Import_may_be_converted_to_a_default_import))}return Jr(o,e.bindSuggestionDiagnostics),Jr(o,t.getSuggestionDiagnostics(e,r)),o.sort((g,m)=>g.start-m.start);function p(g){if(u)XHe(g,s)&&o.push(Or(Oi(g.parent)?g.parent.name:g,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Ml(g)&&g.parent===e&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){let b=g.declarationList.declarations[0].initializer;b&&Sd(b,!0)&&o.push(Or(b,f.require_call_may_be_converted_to_an_import))}let m=Fu.getJSDocTypedefNodes(g);for(let b of m)o.push(Or(b,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));Fu.parameterShouldGetTypeFromJSDoc(g)&&o.push(Or(g.name||g,f.JSDoc_types_may_be_moved_to_TypeScript_types))}ZX(g)&&HHe(g,s,o),g.forEachChild(p)}}function jHe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Sd(wRe(r.initializer),!0));case 244:{let{expression:r}=t;if(!_r(r))return Sd(r,!0);let i=Wl(r);return i===1||i===2}default:return!1}})}function wRe(e){return zr(e)?wRe(e.expression):e}function UHe(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Na(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function HHe(e,t,r){qHe(e,t)&&!eY.has(zRe(e))&&r.push(Or(!e.name&&Oi(e.parent)&&Ve(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function qHe(e,t){return!LC(e)&&e.body&&Xo(e.body)&&KHe(e.body,t)&&$X(e,t)}function $X(e,t){let r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function JHe(e){return _r(e)?e.left:e}function KHe(e,t){return!!R1(e,r=>FW(r,t))}function FW(e,t){return Rm(e)&&!!e.expression&&QX(e.expression,t)}function QX(e,t){if(!ORe(e)||!FRe(e)||!e.arguments.every(i=>WRe(i,t)))return!1;let r=e.expression.expression;for(;ORe(r)||zr(r);)if(la(r)){if(!FRe(r)||!r.arguments.every(i=>WRe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function ORe(e){return la(e)&&(Qw(e,"then")||Qw(e,"catch")||Qw(e,"finally"))}function FRe(e){let t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.lengthi.kind===106||Ve(i)&&i.text==="undefined")}function WRe(e,t){switch(e.kind){case 262:case 218:if(Gc(e)&1)return!1;case 219:eY.set(zRe(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||Et(bu(i,t).declarations,o=>ea(o)||Oy(o)&&!!o.initializer&&ea(o.initializer)):!1}default:return!1}}function zRe(e){return`${e.pos.toString()}:${e.end.toString()}`}function XHe(e,t){var r,i,o,s;if(ws(e)){if(Oi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;let l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return Sc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function ZX(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var eY,YHe=A({"src/services/suggestionDiagnostics.ts"(){"use strict";ci(),eY=new Map}});function Ede(e,t){let r=[],i=t.compilerOptions?tY(t.compilerOptions,r):{},o=o9();for(let T in o)Rs(o,T)&&i[T]===void 0&&(i[T]=o[T]);for(let T of mq)i.verbatimModuleSyntax&&GRe.has(T.name)||(i[T.name]=T.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;let s=Gv(i),l={getSourceFile:T=>T===va(u)?p:void 0,writeFile:(T,I)=>{Tl(T,".map")?(C.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",T),m=I):(C.assertEqual(g,void 0,"Unexpected multiple outputs, file:",T),g=I)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:T=>T,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:T=>T===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=rw(u,e,{languageVersion:as(i),impliedNodeFormat:Bw(rl(u,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:pk(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let g,m,b=vF([u],i,l);return t.reportDiagnostics&&(Jr(r,b.getSyntacticDiagnostics(p)),Jr(r,b.getOptionsDiagnostics())),b.emit(void 0,void 0,void 0,void 0,t.transformers),g===void 0?C.fail("Output generation failed"):{outputText:g,diagnostics:r,sourceMapText:m}}function BRe(e,t,r,i,o){let s=Ede(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Jr(i,s.diagnostics),s.outputText}function tY(e,t){Sde=Sde||tr(ug,r=>typeof r.type=="object"&&!Bc(r.type,i=>typeof i!="number")),e=ZK(e);for(let r of Sde){if(!Rs(e,r.name))continue;let i=e[r.name];wo(i)?e[r.name]=v5(r,i,t):Bc(r.type,o=>o===i)||t.push(fse(r))}return e}var GRe,Sde,$He=A({"src/services/transpile.ts"(){"use strict";ci(),GRe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function VRe(e,t,r,i,o,s,l){let u=dde(i);if(!u)return et;let p=[],g=e.length===1?e[0]:void 0;for(let m of e)r.throwIfCancellationRequested(),!(s&&m.isDeclarationFile)&&(jRe(m,!!l,g)||m.getNamedDeclarations().forEach((b,T)=>{QHe(u,T,b,t,m.fileName,!!l,g,p)}));return p.sort(nqe),(o===void 0?p:p.slice(0,o)).map(rqe)}function jRe(e,t,r){return e!==r&&t&&(vO(e.path)||e.hasNoDefaultLib)}function QHe(e,t,r,i,o,s,l,u){let p=e.getMatchForLastSegmentOfPattern(t);if(p){for(let g of r)if(ZHe(g,i,s,l))if(e.patternContainsDots){let m=e.getFullMatch(tqe(g),t);m&&u.push({name:t,fileName:o,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:g})}else u.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:g})}}function ZHe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:let s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(u=>jRe(u.getSourceFile(),r,i)));default:return!0}}function eqe(e,t){let r=Oo(e);return!!r&&(URe(r,t)||r.kind===167&&Tde(r.expression,t))}function Tde(e,t){return URe(e,t)||zr(e)&&(t.push(e.name.text),!0)&&Tde(e.expression,t)}function URe(e,t){return R_(e)&&(t.push(Zf(e)),!0)}function tqe(e){let t=[],r=Oo(e);if(r&&r.kind===167&&!Tde(r.expression,t))return et;t.shift();let i=QS(e);for(;i;){if(!eqe(i,t))return et;i=QS(i)}return t.reverse()}function nqe(e,t){return tl(e.matchKind,t.matchKind)||MM(e.name,t.name)}function rqe(e){let t=e.declaration,r=QS(t),i=r&&Oo(r);return{name:e.name,kind:sE(t),kindModifiers:aP(t),matchKind:OW[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Rd(t),containerName:i?i.text:"",containerKind:i?sE(r):""}}var iqe=A({"src/services/navigateTo.ts"(){"use strict";ci()}}),Ade={};X(Ade,{getNavigateToItems:()=>VRe});var HRe=A({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";iqe()}});function qRe(e,t){oY=t,SO=e;try{return Ft(cqe(YRe(e)),uqe)}finally{KRe()}}function JRe(e,t){oY=t,SO=e;try{return o2e(YRe(e))}finally{KRe()}}function KRe(){SO=void 0,oY=void 0,TO=[],Zv=void 0,aY=[]}function WW(e){return gP(e.getText(SO))}function nY(e){return e.node.kind}function XRe(e,t){e.children?e.children.push(t):e.children=[t]}function YRe(e){C.assert(!TO.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Zv=t;for(let r of e.statements)CI(r);return C0(),C.assert(!Zv&&!TO.length),t}function uE(e,t){XRe(Zv,Ide(e,t))}function Ide(e,t){return{node:e,name:t||(qu(e)||bt(e)?Oo(e):void 0),additionalNodes:void 0,parent:Zv,children:void 0,indent:Zv.indent+1}}function $Re(e){I2||(I2=new Map),I2.set(e,!0)}function QRe(e){for(let t=0;t0;i--){let o=r[i];dE(e,o)}return[r.length-1,r[0]]}function dE(e,t){let r=Ide(e,t);XRe(Zv,r),TO.push(Zv),Lde.push(I2),I2=void 0,Zv=r}function C0(){Zv.children&&(rY(Zv.children,Zv),Dde(Zv.children)),Zv=TO.pop(),I2=Lde.pop()}function N0(e,t,r){dE(e,r),CI(t),C0()}function e2e(e){e.initializer&&pqe(e.initializer)?(dE(e),Ho(e.initializer,CI),C0()):N0(e,e.initializer)}function xde(e){let t=Oo(e);if(t===void 0)return!1;if(Za(t)){let r=t.expression;return zl(r)||hp(r)||Qp(r)}return!!t}function CI(e){if(oY.throwIfCancellationRequested(),!(!e||AA(e)))switch(e.kind){case 176:let t=e;N0(t,t.body);for(let l of t.parameters)pp(l,t)&&uE(l);break;case 174:case 177:case 178:case 173:xde(e)&&N0(e,e.body);break;case 172:xde(e)&&e2e(e);break;case 171:xde(e)&&uE(e);break;case 273:let r=e;r.name&&uE(r.name);let{namedBindings:i}=r;if(i)if(i.kind===274)uE(i);else for(let l of i.elements)uE(l);break;case 304:N0(e,e.name);break;case 305:let{expression:o}=e;Ve(o)?uE(e,o):uE(e);break;case 208:case 303:case 260:{let l=e;ta(l.name)?CI(l.name):e2e(l);break}case 262:let s=e.name;s&&Ve(s)&&$Re(s.text),N0(e,e.body);break;case 219:case 218:N0(e,e.body);break;case 266:dE(e);for(let l of e.members)dqe(l)||uE(l);C0();break;case 263:case 231:case 264:dE(e);for(let l of e.members)CI(l);C0();break;case 267:N0(e,s2e(e).body);break;case 277:{let l=e.expression,u=wa(l)||la(l)?l:Bs(l)||ws(l)?l.body:void 0;u?(dE(e),CI(u),C0()):uE(e);break}case 281:case 271:case 181:case 179:case 180:case 265:uE(e);break;case 213:case 226:{let l=Wl(e);switch(l){case 1:case 2:N0(e,e.right);return;case 6:case 3:{let u=e,p=u.left,g=l===3?p.expression:p,m=0,b;Ve(g.expression)?($Re(g.expression.text),b=g.expression):[m,b]=ZRe(u,g.expression),l===6?wa(u.right)&&u.right.properties.length>0&&(dE(u,b),Ho(u.right,CI),C0()):ws(u.right)||Bs(u.right)?N0(e,u.right,b):(dE(u,b),N0(e,u.right,p.name),C0()),QRe(m);return}case 7:case 9:{let u=e,p=l===7?u.arguments[0]:u.arguments[0].expression,g=u.arguments[1],[m,b]=ZRe(e,p);dE(e,b),dE(e,dt(k.createIdentifier(g.text),g)),CI(e.arguments[2]),C0(),C0(),QRe(m);return}case 5:{let u=e,p=u.left,g=p.expression;if(Ve(g)&&Fg(p)!=="prototype"&&I2&&I2.has(g.text)){ws(u.right)||Bs(u.right)?N0(e,u.right,g):N1(p)&&(dE(u,g),N0(u.left,u.right,zL(p)),C0());return}break}case 4:case 0:case 8:break;default:C.assertNever(l)}}default:Op(e)&&Ke(e.jsDoc,l=>{Ke(l.tags,u=>{Qf(u)&&uE(u)})}),Ho(e,CI)}}function rY(e,t){let r=new Map;Bi(e,(i,o)=>{let s=i.name||Oo(i.node),l=s&&WW(s);if(!l)return!0;let u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(let p of u)if(t2e(p,i,o,t))return!1;return u.push(i),!0}else{let p=u;return t2e(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function oqe(e,t,r,i){function o(u){return ws(u)||Sc(u)||Oi(u)}let s=_r(t.node)||la(t.node)?Wl(t.node):0,l=_r(e.node)||la(e.node)?Wl(e.node):0;if(vP[s]&&vP[l]||o(e.node)&&vP[s]||o(t.node)&&vP[l]||Tc(e.node)&&Rde(e.node)&&vP[s]||Tc(t.node)&&vP[l]||Tc(e.node)&&Rde(e.node)&&o(t.node)||Tc(t.node)&&o(e.node)&&Rde(e.node)){let u=e.additionalNodes&&Zs(e.additionalNodes)||e.node;if(!Tc(e.node)&&!Tc(t.node)||o(e.node)||o(t.node)){let g=o(e.node)?e.node:o(t.node)?t.node:void 0;if(g!==void 0){let m=dt(k.createConstructorDeclaration(void 0,[],void 0),g),b=Ide(m);b.indent=e.indent+1,b.children=e.node===g?e.children:t.children,e.children=e.node===g?xo([b],t.children||[t]):xo(e.children||[{...e}],[b])}else(e.children||t.children)&&(e.children=xo(e.children||[{...e}],t.children||[t]),e.children&&(rY(e.children,e),Dde(e.children)));u=e.node=dt(k.createClassDeclaration(void 0,e.name||k.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=xo(e.children,t.children),e.children&&rY(e.children,e);let p=t.node;return i.children[r-1].node.end===u.end?dt(u,{pos:u.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(dt(k.createClassDeclaration(void 0,e.name||k.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function t2e(e,t,r,i){return oqe(e,t,r,i)?!0:aqe(e.node,t.node,i)?(sqe(e,t),!0):!1}function aqe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(n2e(e,r)&&n2e(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return sa(e)===sa(t);case 267:return r2e(e,t)&&Pde(e)===Pde(t);default:return!0}}function Rde(e){return!!(e.flags&16)}function n2e(e,t){let r=k_(e.parent)?e.parent.parent:e.parent;return r===t.node||wr(t.additionalNodes,r)}function r2e(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||r2e(e.body,t.body))}function sqe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=xo(e.children,t.children),e.children&&(rY(e.children,e),Dde(e.children))}function Dde(e){e.sort(lqe)}function lqe(e,t){return MM(i2e(e.node),i2e(t.node))||tl(nY(e),nY(t))}function i2e(e){if(e.kind===267)return a2e(e);let t=Oo(e);if(t&&ic(t)){let r=TS(t);return r&&Hi(r)}switch(e.kind){case 218:case 219:case 231:return c2e(e);default:return}}function Cde(e,t){if(e.kind===267)return gP(a2e(e));if(t){let r=Ve(t)?t.text:Ys(t)?`[${WW(t.argumentExpression)}]`:WW(t);if(r.length>0)return gP(r)}switch(e.kind){case 312:let r=e;return ac(r)?`"${rg(rc(Td(va(r.fileName))))}"`:"";case 277:return Ll(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Gy(e)&2048?"default":c2e(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function cqe(e){let t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(let s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(nY(o)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(nY(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function o2e(e){return{text:Cde(e.node,e.name),kind:sE(e.node),kindModifiers:l2e(e.node),spans:Nde(e),nameSpan:e.name&&Mde(e.name),childItems:Ft(e.children,o2e)}}function uqe(e){return{text:Cde(e.node,e.name),kind:sE(e.node),kindModifiers:l2e(e.node),spans:Nde(e),childItems:Ft(e.children,t)||aY,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:Cde(r.node,r.name),kind:sE(r.node),kindModifiers:aP(r.node),spans:Nde(r),childItems:aY,indent:0,bolded:!1,grayed:!1}}}function Nde(e){let t=[Mde(e.node)];if(e.additionalNodes)for(let r of e.additionalNodes)t.push(Mde(r));return t}function a2e(e){return Lu(e)?pc(e.name):Pde(e)}function Pde(e){let t=[Zf(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Zf(e.name));return t.join(".")}function s2e(e){return e.body&&Jl(e.body)?s2e(e.body):e}function dqe(e){return!e.name||e.name.kind===167}function Mde(e){return e.kind===312?ib(e):Rd(e,SO)}function l2e(e){return e.parent&&e.parent.kind===260&&(e=e.parent),aP(e)}function c2e(e){let{parent:t}=e;if(e.name&&vL(e.name)>0)return gP(Ds(e.name));if(Oi(t))return gP(Ds(t.name));if(_r(t)&&t.operatorToken.kind===64)return WW(t.left).replace(d2e,"");if(_c(t))return WW(t.name);if(Gy(e)&2048)return"default";if(pi(e))return"";if(la(t)){let r=u2e(t.expression);if(r!==void 0){if(r=gP(r),r.length>iY)return`${r} callback`;let i=gP(Vi(t.arguments,o=>us(o)||DA(o)?o.getText(SO):void 0).join(", "));return`${r}(${i}) callback`}}return""}function u2e(e){if(Ve(e))return e.text;if(zr(e)){let t=u2e(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function pqe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function gP(e){return e=e.length>iY?e.substring(0,iY)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var d2e,iY,oY,SO,TO,Zv,Lde,I2,aY,vP,fqe=A({"src/services/navigationBar.ts"(){"use strict";ci(),d2e=/\s+/g,iY=150,TO=[],Lde=[],aY=[],vP={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),kde={};X(kde,{getNavigationBarItems:()=>qRe,getNavigationTree:()=>JRe});var p2e=A({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";fqe()}});function dg(e,t){sY.set(e,t)}function mqe(e,t){return Vo(qf(sY.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>P0(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function _qe(e,t,r,i){let o=sY.get(t);return o&&o.getEditsForAction(e,r,i)}var sY,f2e=A({"src/services/refactorProvider.ts"(){"use strict";ci(),xh(),sY=new Map}});function m2e(e,t=!0){let{file:r,program:i}=e,o=DI(e),s=po(r,o.start),l=s.parent&&Gy(s.parent)&32&&t?s.parent:dO(s,r,o);if(!l||!no(l.parent)&&!(k_(l.parent)&&Lu(l.parent.parent)))return{error:Bo(f.Could_not_find_export_statement)};let u=i.getTypeChecker(),p=Eqe(l.parent,u),g=Gy(l)||(Ll(l)&&!l.isExportEquals?2080:0),m=!!(g&2048);if(!(g&32)||!m&&p.exports.has("default"))return{error:Bo(f.This_file_already_has_a_default_export)};let b=T=>Ve(T)&&u.getSymbolAtLocation(T)?void 0:{error:Bo(f.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let T=l;return T.name?b(T.name)||{exportNode:T,exportName:T.name,wasDefault:m,exportingModuleSymbol:p}:void 0}case 243:{let T=l;if(!(T.declarationList.flags&2)||T.declarationList.declarations.length!==1)return;let I=Ha(T.declarationList.declarations);return I.initializer?(C.assert(!m,"Can't have a default flag here"),b(I.name)||{exportNode:T,exportName:I.name,wasDefault:m,exportingModuleSymbol:p}):void 0}case 277:{let T=l;return T.isExportEquals?void 0:b(T.expression)||{exportNode:T,exportName:T.expression,wasDefault:m,exportingModuleSymbol:p}}default:return}}function hqe(e,t,r,i,o){gqe(e,r,i,t.getTypeChecker()),vqe(t,r,i,o)}function gqe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(Ll(r)&&!r.isExportEquals){let l=r.expression,u=_2e(l.text,l.text);o.replaceNode(e,r,k.createExportDeclaration(void 0,!1,k.createNamedExports([u])))}else o.delete(e,C.checkDefined(y2(r,90),"Should find a default keyword in modifier list"));else{let l=C.checkDefined(y2(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,k.createToken(90));break;case 243:let u=Ha(r.declarationList.declarations);if(!Os.Core.isSymbolReferencedInFile(i,s,e)&&!u.type){o.replaceNode(e,r,k.createExportDefault(C.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,l),o.insertNodeAfter(e,r,k.createExportDefault(k.createIdentifier(i.text)));break;default:C.fail(`Unexpected exportNode kind ${r.kind}`)}}}function vqe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){let l=e.getTypeChecker(),u=C.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Os.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,p=>{if(r===p)return;let g=p.getSourceFile();t?yqe(g,p,o,r.text):bqe(g,p,o)})}function yqe(e,t,r,i){let{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,k.createIdentifier(i));break;case 276:case 281:{let l=o;r.replaceNode(e,l,wde(i,l.name.text));break}case 273:{let l=o;C.assert(l.name===t,"Import clause name should match provided ref");let u=wde(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,k.createNamedImports([u]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});let g=Na(l.parent.moduleSpecifier)?sX(l.parent.moduleSpecifier,e):1,m=$v(void 0,[wde(i,t.text)],l.parent.moduleSpecifier,g);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,u);break}case 205:let s=o;r.replaceNode(e,o,k.createImportTypeNode(s.argument,s.attributes,k.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:C.failBadSyntaxKind(o)}}function bqe(e,t,r){let i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,k.createIdentifier("default"));break;case 276:{let o=k.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 281:{r.replaceNode(e,i,_2e("default",i.name.text));break}default:C.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function wde(e,t){return k.createImportSpecifier(!1,e===t?void 0:k.createIdentifier(e),k.createIdentifier(t))}function _2e(e,t){return k.createExportSpecifier(!1,e===t?void 0:k.createIdentifier(e),k.createIdentifier(t))}function Eqe(e,t){if(no(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&I1(r.valueDeclaration)?t.getMergedSymbol(r):r}var lY,zW,BW,Sqe=A({"src/services/refactors/convertExport.ts"(){"use strict";ci(),xh(),lY="Convert export",zW={name:"Convert default export to named export",description:Bo(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},BW={name:"Convert named export to default export",description:Bo(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},dg(lY,{kinds:[zW.kind,BW.kind],getAvailableActions:function(t){let r=m2e(t,t.triggerReason==="invoked");if(!r)return et;if(!Jg(r)){let i=r.wasDefault?zW:BW;return[{name:lY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:lY,description:Bo(f.Convert_default_export_to_named_export),actions:[{...zW,notApplicableReason:r.error},{...BW,notApplicableReason:r.error}]}]:et},getEditsForAction:function(t,r){C.assert(r===zW.name||r===BW.name,"Unexpected action name");let i=m2e(t);return C.assert(i&&!Jg(i),"Expected applicable refactor info"),{edits:hr.ChangeTracker.with(t,s=>hqe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function h2e(e,t=!0){let{file:r}=e,i=DI(e),o=po(r,i.start),s=t?zn(o,Lc):dO(o,r,i);if(!s||!Lc(s))return{error:"Selection is not an import declaration."};let l=i.start+i.length,u=lE(s,s.parent,r);if(u&&l>u.getStart())return;let{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:g2e(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:Bo(f.Could_not_find_namespace_import_or_named_imports)}:{error:Bo(f.Could_not_find_import_clause)}}function g2e(e,t){return NS(e.getCompilerOptions())&&xqe(t.parent.moduleSpecifier,e.getTypeChecker())}function Tqe(e,t,r,i){let o=t.getTypeChecker();i.convertTo===0?Aqe(e,o,r,i.import,NS(t.getCompilerOptions())):y2e(e,t,r,i.import,i.convertTo===1)}function Aqe(e,t,r,i,o){let s=!1,l=[],u=new Map;Os.Core.eachSymbolReferenceInFile(i.name,t,e,b=>{if(!Lre(b.parent))s=!0;else{let T=v2e(b.parent).text;t.resolveName(T,b,-1,!0)&&u.set(T,!0),C.assert(Iqe(b.parent)===b,"Parent expression should match id"),l.push(b.parent)}});let p=new Map;for(let b of l){let T=v2e(b).text,I=p.get(T);I===void 0&&p.set(T,I=u.has(T)?tT(T,e):T),r.replaceNode(e,b,k.createIdentifier(I))}let g=[];p.forEach((b,T)=>{g.push(k.createImportSpecifier(!1,b===T?void 0:k.createIdentifier(T),k.createIdentifier(b)))});let m=i.parent.parent;s&&!o?r.insertNodeAfter(e,m,Ode(m,void 0,g)):r.replaceNode(e,m,Ode(m,s?k.createIdentifier(i.name.text):void 0,g))}function v2e(e){return zr(e)?e.name:e.right}function Iqe(e){return zr(e)?e.expression:e.left}function y2e(e,t,r,i,o=g2e(t,i.parent)){let s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,p=new Set;i.elements.forEach(R=>{let M=s.getSymbolAtLocation(R.name);M&&p.add(M)});let g=u&&Na(u)?Fu.moduleSpecifierToValidIdentifier(u.text,99):"module";function m(R){return!!Os.Core.eachSymbolReferenceInFile(R.name,s,e,M=>{let N=s.resolveName(g,M,-1,!0);return N?p.has(N)?Ju(M.parent):!0:!1})}let T=i.elements.some(m)?tT(g,e):g,I=new Set;for(let R of i.elements){let M=(R.propertyName||R.name).text;Os.Core.eachSymbolReferenceInFile(R.name,s,e,N=>{let O=k.createPropertyAccessExpression(k.createIdentifier(T),M);np(N.parent)?r.replaceNode(e,N.parent,k.createPropertyAssignment(N.text,O)):Ju(N.parent)?I.add(R):r.replaceNode(e,N,O)})}if(r.replaceNode(e,i,o?k.createIdentifier(T):k.createNamespaceImport(k.createIdentifier(T))),I.size){let R=Vo(I.values(),M=>k.createImportSpecifier(M.isTypeOnly,M.propertyName&&k.createIdentifier(M.propertyName.text),k.createIdentifier(M.name.text)));r.insertNodeAfter(e,i.parent.parent,Ode(l,void 0,R))}}function xqe(e,t){let r=t.resolveExternalModuleName(e);if(!r)return!1;let i=t.resolveExternalModuleSymbol(r);return r!==i}function Ode(e,t,r){return k.createImportDeclaration(void 0,k.createImportClause(!1,t,r&&r.length?k.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var cY,GW,Rqe=A({"src/services/refactors/convertImport.ts"(){"use strict";ci(),xh(),cY="Convert import",GW={0:{name:"Convert namespace import to named imports",description:Bo(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Bo(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Bo(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},dg(cY,{kinds:hA(GW).map(e=>e.kind),getAvailableActions:function(t){let r=h2e(t,t.triggerReason==="invoked");if(!r)return et;if(!Jg(r)){let i=GW[r.convertTo];return[{name:cY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?hA(GW).map(i=>({name:cY,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):et},getEditsForAction:function(t,r){C.assert(Et(hA(GW),s=>s.name===r),"Unexpected action name");let i=h2e(t);return C.assert(i&&!Jg(i),"Expected applicable refactor info"),{edits:hr.ChangeTracker.with(t,s=>Tqe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function b2e(e,t=!0){let{file:r,startPosition:i}=e,o=ld(r),s=oW(DI(e)),l=s.pos===s.end&&t,u=Dqe(r,i,s,l);if(!u||!qi(u))return{error:Bo(f.Selection_is_not_a_valid_type_node)};let p=e.program.getTypeChecker(),g=Lqe(u,o);if(g===void 0)return{error:Bo(f.No_type_could_be_extracted_from_this_type_node)};let m=kqe(u,g);if(!qi(m))return{error:Bo(f.Selection_is_not_a_valid_type_node)};let b=[];(Xy(m.parent)||oI(m.parent))&&s.end>u.end&&Jr(b,m.parent.types.filter(M=>XF(M,r,s.pos,s.end)));let T=b.length>1?b:m,I=Cqe(p,T,g,r);if(!I)return{error:Bo(f.No_type_could_be_extracted_from_this_type_node)};let R=uY(p,T);return{isJS:o,selection:T,enclosingNode:g,typeParameters:I,typeElements:R}}function Dqe(e,t,r,i){let o=[()=>po(e,t),()=>g2(e,t,()=>!0)];for(let s of o){let l=s(),u=XF(l,e,r.pos,r.end),p=zn(l,g=>g.parent&&qi(g)&&!pE(r,g.parent,e)&&(i||u));if(p)return p}}function uY(e,t){if(t){if(Do(t)){let r=[];for(let i of t){let o=uY(e,i);if(!o)return;Jr(r,o)}return r}if(oI(t)){let r=[],i=new Map;for(let o of t.types){let s=uY(e,o);if(!s||!s.every(l=>l.name&&xm(i,cO(l.name))))return;Jr(r,s)}return r}else{if(LS(t))return uY(e,t.type);if(yp(t))return t.members}}}function pE(e,t,r){return nO(e,La(r.text,t.pos),t.end)}function Cqe(e,t,r,i){let o=[],s=gA(t),l={pos:s[0].pos,end:s[s.length-1].end};for(let p of s)if(u(p))return;return o;function u(p){if(Rf(p)){if(Ve(p.typeName)){let g=p.typeName,m=e.resolveName(g.text,g,262144,!0);for(let b of m?.declarations||et)if(_l(b)&&b.getSourceFile()===i){if(b.name.escapedText===g.escapedText&&pE(b,l,i))return!0;if(pE(r,b,i)&&!pE(l,b,i)){bf(o,b);break}}}}else if(MS(p)){let g=zn(p,m=>aI(m)&&pE(m.extendsType,p,i));if(!g||!pE(l,g,i))return!0}else if(Bk(p)||Vk(p)){let g=zn(p.parent,ea);if(g&&g.type&&pE(g.type,p,i)&&!pE(l,g,i))return!0}else if(rI(p)){if(Ve(p.exprName)){let g=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(g?.valueDeclaration&&pE(r,g.valueDeclaration,i)&&!pE(l,g.valueDeclaration,i))return!0}else if(O1(p.exprName.left)&&!pE(l,p.parent,i))return!0}return i&&iI(p)&&Es(i,p.pos).line===Es(i,p.end).line&&fr(p,1),Ho(p,u)}}function Nqe(e,t,r,i){let{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:p}=Fde(i),g=k.createTypeAliasDeclaration(void 0,r,s.map(m=>k.updateTypeParameterDeclaration(m,m.modifiers,m.name,m.constraint,void 0)),p);e.insertNodeBefore(t,o,cH(g),!0),e.replaceNodeRange(t,l,u,k.createTypeReferenceNode(r,s.map(m=>k.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.ExcludeWhitespace})}function Pqe(e,t,r,i){var o;let{enclosingNode:s,typeParameters:l,typeElements:u}=i,p=k.createInterfaceDeclaration(void 0,r,l,void 0,u);dt(p,(o=u[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,cH(p),!0);let{firstTypeNode:g,lastTypeNode:m}=Fde(i);e.replaceNodeRange(t,g,m,k.createTypeReferenceNode(r,l.map(b=>k.createTypeReferenceNode(b.name,void 0))),{leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.ExcludeWhitespace})}function Mqe(e,t,r,i,o){var s;gA(o.selection).forEach(R=>{fr(R,7168)});let{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:p,lastTypeNode:g,newTypeNode:m}=Fde(o),b=k.createJSDocTypedefTag(k.createIdentifier("typedef"),k.createJSDocTypeExpression(m),k.createIdentifier(i)),T=[];Ke(u,R=>{let M=Ux(R),N=k.createTypeParameterDeclaration(void 0,R.name),O=k.createJSDocTemplateTag(k.createIdentifier("template"),M&&aa(M,Z1),[N]);T.push(O)});let I=k.createJSDocComment(void 0,k.createNodeArray(xo(T,[b])));if(t_(l)){let R=l.getStart(r),M=Qv(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),I,{suffix:M+M+r.text.slice(_W(r.text,R-1),R)})}else e.insertNodeBefore(r,l,I,!0);e.replaceNodeRange(r,p,g,k.createTypeReferenceNode(i,u.map(R=>k.createTypeReferenceNode(R.name,void 0))))}function Fde(e){return Do(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Xy(e.selection[0].parent)?k.createUnionTypeNode(e.selection):k.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function Lqe(e,t){return zn(e,Ki)||(t?zn(e,t_):void 0)}function kqe(e,t){return zn(e,r=>r===t?"quit":!!(Xy(r.parent)||oI(r.parent)))??e}var dY,VW,jW,UW,wqe=A({"src/services/refactors/extractType.ts"(){"use strict";ci(),xh(),dY="Extract type",VW={name:"Extract to type alias",description:Bo(f.Extract_to_type_alias),kind:"refactor.extract.type"},jW={name:"Extract to interface",description:Bo(f.Extract_to_interface),kind:"refactor.extract.interface"},UW={name:"Extract to typedef",description:Bo(f.Extract_to_typedef),kind:"refactor.extract.typedef"},dg(dY,{kinds:[VW.kind,jW.kind,UW.kind],getAvailableActions:function(t){let r=b2e(t,t.triggerReason==="invoked");return r?Jg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:dY,description:Bo(f.Extract_type),actions:[{...UW,notApplicableReason:r.error},{...VW,notApplicableReason:r.error},{...jW,notApplicableReason:r.error}]}]:et:[{name:dY,description:Bo(f.Extract_type),actions:r.isJS?[UW]:In([VW],r.typeElements&&jW)}]:et},getEditsForAction:function(t,r){let{file:i}=t,o=b2e(t);C.assert(o&&!Jg(o),"Expected to find a range to extract");let s=tT("NewType",i),l=hr.ChangeTracker.with(t,g=>{switch(r){case VW.name:return C.assert(!o.isJS,"Invalid actionName/JS combo"),Nqe(g,i,s,o);case UW.name:return C.assert(o.isJS,"Invalid actionName/JS combo"),Mqe(g,t,i,s,o);case jW.name:return C.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),Pqe(g,i,s,o);default:C.fail("Unexpected action name")}}),u=i.fileName,p=mO(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:p}}})}});function Jg(e){return e.error!==void 0}function P0(e,t){return t?e.substr(0,t.length)===t:!0}var Oqe=A({"src/services/refactors/helpers.ts"(){"use strict"}});function E2e(e,t,r,i){var o,s;let l=i.getTypeChecker(),u=zd(e,t),p=u.parent;if(Ve(u)){if(uk(p)&&AC(p)&&Ve(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:Bo(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(S2e(p))return;let g=T2e(p,l,e);return g&&{references:g,declaration:p,replacement:p.initializer}}if(r){let g=l.resolveName(u.text,u,111551,!1);if(g=g&&l.getMergedSymbol(g),((s=g?.declarations)==null?void 0:s.length)!==1)return{error:Bo(f.Variables_with_multiple_declarations_cannot_be_inlined)};let m=g.declarations[0];if(!uk(m)||!AC(m)||!Ve(m.name)||S2e(m))return;let b=T2e(m,l,e);return b&&{references:b,declaration:m,replacement:m.initializer}}return{error:Bo(f.Could_not_find_variable_to_inline)}}}function S2e(e){let t=aa(e.parent.parent,Ml);return Et(t.modifiers,eI)}function T2e(e,t,r){let i=[],o=Os.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Os.isWriteAccessForReference(s)&&!np(s.parent)||Ju(s.parent)||Ll(s.parent)||rI(s.parent)||ZM(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function Fqe(e,t){t=sl(t);let{parent:r}=e;return bt(r)&&(OC(t){for(let b of l)m.replaceNode(r,b,Fqe(b,p));m.delete(r,u)})}}})}});function zqe(e,t,r,i,o,s){let l=t.getTypeChecker(),u=JW(e,r.all,l),p=Kde(e,t,o,r);i.createNewFile(e,p,Bqe(e,u,i,r,t,o,p,s)),Wde(t,i,e.fileName,p,Wv(o))}function Bqe(e,t,r,i,o,s,l,u){let p=o.getTypeChecker(),g=W8(e.statements,Am);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return HW(e,i.ranges,r),[...g,...i.all];let m=!LX(l,o,s,!!e.commonJsModuleIndicator),b=af(e,u),T=Vde(e,t.oldFileImportsFromTargetFile,l,o,s,m,b);T&&lP(r,e,T,!0,u),zde(e,i.all,r,t.unusedImportsFromOldFile,p),HW(e,i.ranges,r),Bde(r,o,s,e,t.movedSymbols,l,b);let I=Gqe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,b),R=jde(e,i.all,t.oldFileImportsFromTargetFile,m);return I.length&&R.length?[...g,...I,4,...R]:[...g,...I,...R]}function Gqe(e,t,r,i,o,s,l,u,p){let g=[];for(let I of e.statements)RO(I,R=>{In(g,DO(R,xO(R),M=>t.has(o.getSymbolAtLocation(M))))});let m,b=[],T=xI();return r.forEach(I=>{if(I.declarations)for(let R of I.declarations){if(!KW(R))continue;let M=qde(R);if(!M)continue;let N=hY(R);T(N)&&Jde(e,N,M,i,u),ei(R,2048)?m=M:b.push(M.text)}}),In(g,qW(e,m,b,rc(e.fileName),s,l,u,p)),g}var IO,mY,_Y,Vqe=A({"src/services/refactors/moveToNewFile.ts"(){"use strict";ci(),xh(),IO="Move to a new file",mY=Bo(f.Move_to_a_new_file),_Y={name:IO,description:mY,kind:"refactor.move.newFile"},dg(IO,{kinds:[_Y.kind],getAvailableActions:function(t){let r=CO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:IO,description:mY,actions:[_Y]}]:t.preferences.provideRefactorNotApplicableReason?[{name:IO,description:mY,actions:[{..._Y,notApplicableReason:Bo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et},getEditsForAction:function(t,r){C.assert(r===IO,"Wrong refactor invoked");let i=C.checkDefined(CO(t));return{edits:hr.ChangeTracker.with(t,s=>zqe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function A2e(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function jqe(e,t,r,i,o,s,l,u){let p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,I2e(t,r,JW(t,o.all,p),s,o,i,l,u)),Wde(i,s,t.fileName,r,Wv(l));else{let g=C.checkDefined(i.getSourceFile(r)),m=Fu.createImportAdder(g,e.program,e.preferences,e.host);I2e(t,g,JW(t,o.all,p,lJe(g,o.all,p)),s,o,i,l,u,m)}}function I2e(e,t,r,i,o,s,l,u,p){let g=s.getTypeChecker(),m=W8(e.statements,Am);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return HW(e,o.ranges,i),[...m,...o.all];let b=typeof t=="string"?t:t.fileName,T=!LX(b,s,l,!!e.commonJsModuleIndicator),I=af(e,u),R=Vde(e,r.oldFileImportsFromTargetFile,b,s,l,T,I);R&&lP(i,e,R,!0,u),zde(e,o.all,i,r.unusedImportsFromOldFile,g),HW(e,o.ranges,i),Bde(i,s,l,e,r.movedSymbols,b,I);let M=Uqe(e,b,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,g,s,l,T,I,p),N=jde(e,o.all,r.oldFileImportsFromTargetFile,T);return typeof t!="string"&&(t.statements.length>0?sJe(i,s,N,t,o):i.insertNodesAtEndOfFile(t,N,!1),M.length>0&&lP(i,t,M,!0,u)),p&&p.writeFixes(i,I),M.length&&N.length?[...m,...M,4,...N]:[...m,...M,...N]}function Uqe(e,t,r,i,o,s,l,u,p,g,m){let b=[];if(m)r.forEach((N,O)=>{try{m.addImportFromExportedSymbol(bu(O,s),N)}catch{for(let H of e.statements)RO(H,K=>{In(b,DO(K,k.createStringLiteral(xO(K).text),Z=>r.has(s.getSymbolAtLocation(Z))))})}});else{let N=l.getSourceFile(t);for(let O of e.statements)RO(O,H=>{var K;let Z=xO(H),V=l.getCompilerOptions(),ue=l.getResolvedModuleFromModuleSpecifier(Z),G=(K=ue?.resolvedModule)==null?void 0:K.resolvedFileName;if(G&&N){let ne=B5(V,N,N.fileName,G,ZS(l,u));In(b,DO(H,RI(ne,g),he=>r.has(s.getSymbolAtLocation(he))))}else In(b,DO(H,k.createStringLiteral(xO(H).text),ne=>r.has(s.getSymbolAtLocation(ne))))})}let T=l.getSourceFile(t),I,R=[],M=xI();return i.forEach(N=>{if(N.declarations)for(let O of N.declarations){if(!KW(O))continue;let H=qde(O);if(!H)continue;let K=hY(O);M(K)&&Jde(e,K,H,o,p),m&&s.isUnknownSymbol(N)?m.addImportFromExportedSymbol(bu(N,s)):ei(O,2048)?I=H:R.push(H.text)}}),T?In(b,qW(T,I,R,e.fileName,l,u,p,g)):In(b,qW(e,I,R,e.fileName,l,u,p,g))}function Wde(e,t,r,i,o){let s=e.getCompilerOptions().configFile;if(!s)return;let l=va(Zr(r,"..",i)),u=UM(s.fileName,l,o),p=s.statements[0]&&ai(s.statements[0].expression,wa),g=p&&vn(p.properties,m=>_c(m)&&Na(m.name)&&m.name.text==="files");g&&pd(g.initializer)&&t.insertNodeInListAfter(s,Ya(g.initializer.elements),k.createStringLiteral(u),g.initializer.elements)}function HW(e,t,r){for(let{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function zde(e,t,r,i,o){for(let s of e.statements)wr(t,s)||RO(s,l=>Ude(e,l,r,u=>i.has(o.getSymbolAtLocation(u))))}function Bde(e,t,r,i,o,s,l){let u=t.getTypeChecker();for(let p of t.getSourceFiles())if(p!==i)for(let g of p.statements)RO(g,m=>{if(u.getSymbolAtLocation(xO(m))!==i.symbol)return;let b=N=>{let O=Qa(N.parent)?pW(u,N.parent):bu(u.getSymbolAtLocation(N),u);return!!O&&o.has(O)};Ude(p,m,e,b);let T=Dy(li(i.path),s),I=B5(t.getCompilerOptions(),p,p.fileName,T,ZS(t,r)),R=DO(m,RI(I,l),b);R&&e.insertNodeAfter(p,g,R);let M=Hqe(m);M&&qqe(e,p,u,o,I,M,m,l)})}function Hqe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return ai(e.name,Ve);default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function qqe(e,t,r,i,o,s,l,u){let p=Fu.moduleSpecifierToValidIdentifier(o,99),g=!1,m=[];if(Os.Core.eachSymbolReferenceInFile(s,r,t,b=>{zr(b.parent)&&(g=g||!!r.resolveName(p,b,-1,!0),i.has(r.getSymbolAtLocation(b.parent.name))&&m.push(b))}),m.length){let b=g?tT(p,t):p;for(let T of m)e.replaceNode(t,T,k.createIdentifier(b));e.insertNodeAfter(t,l,Jqe(l,p,o,u))}}function Jqe(e,t,r,i){let o=k.createIdentifier(t),s=RI(r,i);switch(e.kind){case 272:return k.createImportDeclaration(void 0,k.createImportClause(!1,void 0,k.createNamespaceImport(o)),s,void 0);case 271:return k.createImportEqualsDeclaration(void 0,!1,o,k.createExternalModuleReference(s));case 260:return k.createVariableDeclaration(o,void 0,void 0,Gde(s));default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Gde(e){return k.createCallExpression(k.createIdentifier("require"),void 0,[e])}function xO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function RO(e,t){if(Lc(e))Na(e.moduleSpecifier)&&t(e);else if(tu(e))Th(e.moduleReference)&&us(e.moduleReference.expression)&&t(e);else if(Ml(e))for(let r of e.declarationList.declarations)r.initializer&&Sd(r.initializer,!0)&&t(r)}function Vde(e,t,r,i,o,s,l){let u,p=[];return t.forEach(g=>{g.escapedName==="default"?u=k.createIdentifier(cW(g)):p.push(g.name)}),qW(e,u,p,r,i,o,s,l)}function qW(e,t,r,i,o,s,l,u){let p=Dy(li(e.path),i),g=B5(o.getCompilerOptions(),e,e.fileName,p,ZS(o,s));if(l){let m=r.map(b=>k.createImportSpecifier(!1,void 0,k.createIdentifier(b)));return Lue(t,m,g,u)}else{C.assert(!t,"No default import should exist");let m=r.map(b=>k.createBindingElement(void 0,void 0,b));return m.length?x2e(k.createObjectBindingPattern(m),void 0,Gde(RI(g,u))):void 0}}function x2e(e,t,r,i=2){return k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(e,void 0,t,r)],i))}function jde(e,t,r,i){return Zi(t,o=>{if(D2e(o)&&!R2e(e,o,i)&&$de(o,s=>{var l;return r.has(C.checkDefined((l=ai(s,A_))==null?void 0:l.symbol))})){let s=Yqe(sl(o),i);if(s)return s}return sl(o)})}function R2e(e,t,r,i){var o;return r?!eu(t)&&ei(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Hde(t).some(s=>e.symbol.exports.has(ml(s)))}function Ude(e,t,r,i){switch(t.kind){case 272:Kqe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:Xqe(e,t,r,i);break;default:C.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function Kqe(e,t,r,i){if(!t.importClause)return;let{name:o,namedBindings:s}=t.importClause,l=!o||i(o),u=!s||(s.kind===274?i(s.name):s.elements.length!==0&&s.elements.every(p=>i(p.name)));if(l&&u)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(u)r.replaceNode(e,t.importClause,k.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(let p of s.elements)i(p.name)&&r.delete(e,p)}}function Xqe(e,t,r,i){let{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Sd(t.initializer,!0)?r.delete(e,jc(t.parent)&&De(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 207:break;case 206:if(o.elements.every(s=>Ve(s.name)&&i(s.name)))r.delete(e,jc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(let s of o.elements)Ve(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function D2e(e){return C.assert(no(e.parent),"Node parent should be a SourceFile"),L2e(e)||Ml(e)}function Yqe(e,t){return t?[$qe(e)]:Qqe(e)}function $qe(e){let t=Cm(e)?xo([k.createModifier(95)],b1(e)):void 0;switch(e.kind){case 262:return k.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:let r=US(e)?Ny(e):void 0;return k.updateClassDeclaration(e,xo(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return k.updateVariableStatement(e,t,e.declarationList);case 267:return k.updateModuleDeclaration(e,t,e.name,e.body);case 266:return k.updateEnumDeclaration(e,t,e.name,e.members);case 265:return k.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return k.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return k.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return C.fail();default:return C.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function Qqe(e){return[e,...Hde(e).map(C2e)]}function C2e(e){return k.createExpressionStatement(k.createBinaryExpression(k.createPropertyAccessExpression(k.createIdentifier("exports"),k.createIdentifier(e)),64,k.createIdentifier(e)))}function Hde(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Vi(e.declarationList.declarations,t=>Ve(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return et;case 244:return C.fail("Can't export an ExpressionStatement");default:return C.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function DO(e,t,r){switch(e.kind){case 272:{let i=e.importClause;if(!i)return;let o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&Zqe(i.namedBindings,r);return o||s?k.createImportDeclaration(void 0,k.createImportClause(i.isTypeOnly,o,s),sl(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{let i=eJe(e.name,r);return i?x2e(i,e.type,Gde(t),e.parent.flags):void 0}default:return C.assertNever(e,`Unexpected import kind ${e.kind}`)}}function Zqe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{let r=e.elements.filter(i=>t(i.name));return r.length?k.createNamedImports(r):void 0}}function eJe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{let r=e.elements.filter(i=>i.propertyName||!Ve(i.name)||t(i.name));return r.length?k.createObjectBindingPattern(r):void 0}}}function qde(e){return eu(e)?ai(e.expression.left.name,Ve):ai(e.name,Ve)}function hY(e){switch(e.kind){case 260:return e.parent.parent;case 208:return hY(aa(e.parent.parent,t=>Oi(t)||Qa(t)));default:return e}}function Jde(e,t,r,i,o){if(!R2e(e,t,o,r))if(o)eu(t)||i.insertExportModifier(e,t);else{let s=Hde(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(C2e))}}function Kde(e,t,r,i){let o=t.getTypeChecker();if(i){let s=JW(e,i.all,o),l=li(e.fileName),u=ZC(e.fileName);return Zr(l,iJe(oJe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function tJe(e){let{file:t}=e,r=oW(DI(e)),{statements:i}=t,o=ri(i,g=>g.end>r.pos);if(o===-1)return;let s=i[o],l=k2e(t,s);l&&(o=l.start);let u=ri(i,g=>g.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;let p=k2e(t,i[u]);return p&&(u=p.end),{toMove:i.slice(o,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function CO(e){let t=tJe(e);if(t===void 0)return;let r=[],i=[],{toMove:o,afterLast:s}=t;return $B(o,nJe,(l,u)=>{for(let p=l;p!!(t.transformFlags&2))}function nJe(e){return!rJe(e)&&!Am(e)}function rJe(e){switch(e.kind){case 272:return!0;case 271:return!ei(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Sd(t.initializer,!0));default:return!1}}function JW(e,t,r,i=new Set){let o=new Set,s=new Map,l=new Set,u=m(Xde(t));u&&s.set(u,!1);for(let b of t)$de(b,T=>{o.add(C.checkDefined(eu(T)?r.getSymbolAtLocation(T.expression.left):T.symbol,"Need a symbol here"))});let p=new Set;for(let b of t)Yde(b,r,(T,I)=>{if(T.declarations){if(i.has(bu(T,r))){p.add(T);return}for(let R of T.declarations)if(N2e(R)){let M=s.get(T);s.set(T,(M===void 0||M)&&I)}else KW(R)&&aJe(R)===e&&!o.has(T)&&l.add(T)}});for(let b of s.keys())p.add(b);let g=new Set;for(let b of e.statements)wr(t,b)||(u&&b.transformFlags&2&&p.delete(u),Yde(b,r,T=>{o.has(T)&&g.add(T),p.delete(T)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:g,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function m(b){if(b===void 0)return;let T=r.getJsxNamespace(b),I=r.resolveName(T,b,1920,!0);return I&&Et(I.declarations,N2e)?I:void 0}}function iJe(e,t,r,i){let o=e;for(let s=1;;s++){let l=Zr(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function oJe(e,t){return mh(e,cW)||mh(t,cW)||"newFile"}function Yde(e,t,r){e.forEachChild(function i(o){if(Ve(o)&&!Wg(o)){let s=t.getSymbolAtLocation(o);s&&r(s,_0(o))}else o.forEachChild(i)})}function $de(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return Zt(e.declarationList.declarations,r=>M2e(r.name,t));case 244:{let{expression:r}=e;return _r(r)&&Wl(r)===1?t(e):void 0}}}function N2e(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return P2e(e);case 208:return Oi(e.parent.parent)&&P2e(e.parent.parent);default:return!1}}function P2e(e){return no(e.parent.parent.parent)&&!!e.initializer&&Sd(e.initializer,!0)}function KW(e){return L2e(e)&&no(e.parent)||Oi(e)&&no(e.parent.parent.parent)}function aJe(e){return Oi(e)?e.parent.parent.parent:e.parent}function M2e(e,t){switch(e.kind){case 80:return t(aa(e.parent,r=>Oi(r)||Qa(r)));case 207:case 206:return Zt(e.elements,r=>Vc(r)?void 0:M2e(r.name,t));default:return C.assertNever(e,`Unexpected name kind ${e.kind}`)}}function L2e(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function sJe(e,t,r,i,o){var s;let l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){let g=t.getTypeChecker(),m=new Map;for(let b of o.all)D2e(b)&&ei(b,32)&&$de(b,T=>{var I;let R=A_(T)?(I=u.get(T.symbol.escapedName))==null?void 0:I.declarations:void 0,M=Zt(R,N=>Kl(N)?N:Ju(N)?ai(N.parent.parent,Kl):void 0);M&&M.moduleSpecifier&&m.set(M,(m.get(M)||new Set).add(T))});for(let[b,T]of Vo(m))if(b.exportClause&&Df(b.exportClause)&&De(b.exportClause.elements)){let I=b.exportClause.elements,R=tr(I,M=>vn(bu(M.symbol,g).declarations,N=>KW(N)&&T.has(N))===void 0);if(De(R)===0){e.deleteNode(i,b),l.add(b);continue}De(R)Kl(g)&&!!g.moduleSpecifier&&!l.has(g));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function k2e(e,t){if(zs(t)){let r=t.symbol.declarations;if(r===void 0||De(r)<=1||!wr(r,t))return;let i=r[0],o=r[De(r)-1],s=Vi(r,p=>Vn(p)===e&&Ki(p)?p:void 0),l=ri(e.statements,p=>p.end>=o.end),u=ri(e.statements,p=>p.end>=i.end);return{toMove:s,start:u,end:l}}}function lJe(e,t,r){let i=new Set;for(let o of e.imports){let s=CC(o);if(Lc(s)&&s.importClause&&s.importClause.namedBindings&&jg(s.importClause.namedBindings))for(let l of s.importClause.namedBindings.elements){let u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(bu(u,r))}if(a3(s.parent)&&om(s.parent.name))for(let l of s.parent.name.elements){let u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(bu(u,r))}}for(let o of t)Yde(o,r,s=>{let l=bu(s,r);l.valueDeclaration&&Vn(l.valueDeclaration)===e&&i.add(l)});return i}var XW,gY,vY,cJe=A({"src/services/refactors/moveToFile.ts"(){"use strict";rle(),ci(),f2e(),XW="Move to file",gY=Bo(f.Move_to_file),vY={name:"Move to file",description:gY,kind:"refactor.move.file"},dg(XW,{kinds:[vY.kind],getAvailableActions:function(t,r){let i=CO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:XW,description:gY,actions:[vY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:XW,description:gY,actions:[{...vY,notApplicableReason:Bo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et:et},getEditsForAction:function(t,r,i){C.assert(r===XW,"Wrong refactor invoked");let o=C.checkDefined(CO(t)),{host:s,program:l}=t;C.assert(i,"No interactive refactor arguments available");let u=i.targetFile;return W1(u)||UA(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?A2e(Bo(f.Cannot_move_statements_to_the_selected_file)):{edits:hr.ChangeTracker.with(t,g=>jqe(t,t.file,i.targetFile,t.program,o,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:A2e(Bo(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function uJe(e){let{file:t,startPosition:r,program:i}=e;return O2e(t,r,i)?[{name:yY,description:Qde,actions:[Zde]}]:et}function dJe(e){let{file:t,startPosition:r,program:i}=e,o=O2e(t,r,i);if(!o)return;let s=i.getTypeChecker(),l=o[o.length-1],u=l;switch(l.kind){case 173:{u=k.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,g(o),l.type);break}case 174:{u=k.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,g(o),l.type,l.body);break}case 179:{u=k.updateCallSignature(l,l.typeParameters,g(o),l.type);break}case 176:{u=k.updateConstructorDeclaration(l,l.modifiers,g(o),l.body);break}case 180:{u=k.updateConstructSignature(l,l.typeParameters,g(o),l.type);break}case 262:{u=k.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,g(o),l.type,l.body);break}default:return C.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:hr.ChangeTracker.with(e,T=>{T.replaceNodeRange(t,o[0],o[o.length-1],u)})};function g(T){let I=T[T.length-1];return zs(I)&&I.body&&(T=T.slice(0,T.length-1)),k.createNodeArray([k.createParameterDeclaration(void 0,k.createToken(26),"args",void 0,k.createUnionTypeNode(Ft(T,m)))])}function m(T){let I=Ft(T.parameters,b);return fr(k.createTupleTypeNode(I),Et(I,R=>!!De(kR(R)))?0:1)}function b(T){C.assert(Ve(T.name));let I=dt(k.createNamedTupleMember(T.dotDotDotToken,T.name,T.questionToken,T.type||k.createKeywordTypeNode(133)),T),R=T.symbol&&T.symbol.getDocumentationComment(s);if(R){let M=OO(R);M.length&&g0(I,[{text:`* +${M.split(` +`).map(N=>` * ${N}`).join(` +`)} + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return I}}function w2e(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function O2e(e,t,r){let i=po(e,t),o=zn(i,w2e);if(!o||zs(o)&&o.body&&eO(o.body,t))return;let s=r.getTypeChecker(),l=o.symbol;if(!l)return;let u=l.declarations;if(De(u)<=1||!Jn(u,T=>Vn(T)===e)||!w2e(u[0]))return;let p=u[0].kind;if(!Jn(u,T=>T.kind===p))return;let g=u;if(Et(g,T=>!!T.typeParameters||Et(T.parameters,I=>!!I.modifiers||!Ve(I.name))))return;let m=Vi(g,T=>s.getSignatureFromDeclaration(T));if(De(m)!==De(u))return;let b=s.getReturnTypeOfSignature(m[0]);if(Jn(m,T=>s.getReturnTypeOfSignature(T)===b))return g}var yY,Qde,Zde,pJe=A({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";ci(),xh(),yY="Convert overload list to single signature",Qde=Bo(f.Convert_overload_list_to_single_signature),Zde={name:yY,description:Qde,kind:"refactor.rewrite.function.overloadList"},dg(yY,{kinds:[Zde.kind],getEditsForAction:dJe,getAvailableActions:uJe})}});function fJe(e){let{file:t,startPosition:r,triggerReason:i}=e,o=F2e(t,r,i==="invoked");return o?Jg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:bY,description:epe,actions:[{...YW,notApplicableReason:o.error},{...NO,notApplicableReason:o.error}]}]:et:[{name:bY,description:epe,actions:[o.addBraces?YW:NO]}]:et}function mJe(e,t){let{file:r,startPosition:i}=e,o=F2e(r,i);C.assert(o&&!Jg(o),"Expected applicable refactor info");let{expression:s,returnStatement:l,func:u}=o,p;if(t===YW.name){let m=k.createReturnStatement(s);p=k.createBlock([m],!0),S2(s,m,r,3,!0)}else if(t===NO.name&&l){let m=s||k.createVoidZero();p=hW(m)?k.createParenthesizedExpression(m):m,_O(l,p,r,3,!1),S2(l,p,r,3,!1),pP(l,p,r,3,!1)}else C.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:hr.ChangeTracker.with(e,m=>{m.replaceNode(r,u.body,p)})}}function F2e(e,t,r=!0,i){let o=po(e,t),s=zp(o);if(!s)return{error:Bo(f.Could_not_find_a_containing_arrow_function)};if(!Bs(s))return{error:Bo(f.Containing_function_is_not_an_arrow_function)};if(!(!of(s,o)||of(s.body,o)&&!r)){if(P0(YW.kind,i)&&bt(s.body))return{func:s,addBraces:!0,expression:s.body};if(P0(NO.kind,i)&&Xo(s.body)&&s.body.statements.length===1){let l=Ha(s.body.statements);if(Rm(l)){let u=l.expression&&wa(xR(l.expression,!1))?k.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var bY,epe,YW,NO,_Je=A({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";ci(),xh(),bY="Add or remove braces in an arrow function",epe=Bo(f.Add_or_remove_braces_in_an_arrow_function),YW={name:"Add braces to arrow function",description:Bo(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},NO={name:"Remove braces from arrow function",description:Bo(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},dg(bY,{kinds:[NO.kind],getEditsForAction:mJe,getAvailableActions:fJe})}}),hJe={},gJe=A({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";pJe(),_Je()}});function vJe(e){let{file:t,startPosition:r,program:i,kind:o}=e,s=z2e(t,r,i);if(!s)return et;let{selectedVariableDeclaration:l,func:u}=s,p=[],g=[];if(P0(MO.kind,o)){let m=l||Bs(u)&&Oi(u.parent)?void 0:Bo(f.Could_not_convert_to_named_function);m?g.push({...MO,notApplicableReason:m}):p.push(MO)}if(P0(PO.kind,o)){let m=!l&&Bs(u)?void 0:Bo(f.Could_not_convert_to_anonymous_function);m?g.push({...PO,notApplicableReason:m}):p.push(PO)}if(P0(LO.kind,o)){let m=ws(u)?void 0:Bo(f.Could_not_convert_to_arrow_function);m?g.push({...LO,notApplicableReason:m}):p.push(LO)}return[{name:tpe,description:V2e,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?g:p}]}function yJe(e,t){let{file:r,startPosition:i,program:o}=e,s=z2e(r,i,o);if(!s)return;let{func:l}=s,u=[];switch(t){case PO.name:u.push(...TJe(e,l));break;case MO.name:let p=SJe(l);if(!p)return;u.push(...AJe(e,l,p));break;case LO.name:if(!ws(l))return;u.push(...IJe(e,l));break;default:return C.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function W2e(e){let t=!1;return e.forEachChild(function r(i){if(h2(i)){t=!0;return}!pi(i)&&!Sc(i)&&!ws(i)&&Ho(i,r)}),t}function z2e(e,t,r){let i=po(e,t),o=r.getTypeChecker(),s=EJe(e,o,i.parent);if(s&&!W2e(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};let l=zp(i);if(l&&(ws(l)||Bs(l))&&!of(l.body,i)&&!W2e(l.body)&&!o.containsArgumentsReference(l))return ws(l)&&G2e(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function bJe(e){return Oi(e)||jc(e)&&e.declarations.length===1}function EJe(e,t,r){if(!bJe(r))return;let o=(Oi(r)?r:Ha(r.declarations)).initializer;if(o&&(Bs(o)||ws(o)&&!G2e(e,t,o)))return o}function B2e(e){if(bt(e)){let t=k.createReturnStatement(e),r=e.getSourceFile();return dt(t,e),Sp(t),_O(e,t,r,void 0,!0),k.createBlock([t],!0)}else return e}function SJe(e){let t=e.parent;if(!Oi(t)||!AC(t))return;let r=t.parent,i=r.parent;if(!(!jc(r)||!Ml(i)||!Ve(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function TJe(e,t){let{file:r}=e,i=B2e(t.body),o=k.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return hr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function AJe(e,t,r){let{file:i}=e,o=B2e(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:p}=r;EX(u);let g=t0(s)&32|cd(t),m=k.createModifiersFromModifierFlags(g),b=k.createFunctionDeclaration(De(m)?m:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?hr.ChangeTracker.with(e,T=>T.replaceNode(i,u,b)):hr.ChangeTracker.with(e,T=>{T.delete(i,s),T.insertNodeAfter(i,u,b)})}function IJe(e,t){let{file:r}=e,o=t.body.statements[0],s;xJe(t.body,o)?(s=o.expression,Sp(s),eT(o,s)):s=t.body;let l=k.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,k.createToken(39),s);return hr.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function xJe(e,t){return e.statements.length===1&&Rm(t)&&!!t.expression}function G2e(e,t,r){return!!r.name&&Os.Core.isSymbolReferencedInFile(r.name,t,e)}var tpe,V2e,PO,MO,LO,RJe=A({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";ci(),xh(),tpe="Convert arrow function or function expression",V2e=Bo(f.Convert_arrow_function_or_function_expression),PO={name:"Convert to anonymous function",description:Bo(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},MO={name:"Convert to named function",description:Bo(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},LO={name:"Convert to arrow function",description:Bo(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},dg(tpe,{kinds:[PO.kind,MO.kind,LO.kind],getEditsForAction:yJe,getAvailableActions:vJe})}}),DJe={},CJe=A({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";RJe()}});function NJe(e){let{file:t,startPosition:r}=e;return ld(t)||!H2e(t,r,e.program.getTypeChecker())?et:[{name:QW,description:ope,actions:[ape]}]}function PJe(e,t){C.assert(t===QW,"Unexpected action name");let{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=H2e(r,i,o.getTypeChecker());if(!u||!s)return;let p=LJe(u,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:hr.ChangeTracker.with(e,m=>MJe(r,o,l,m,u,p))}:{edits:[]}}function MJe(e,t,r,i,o,s){let l=s.signature,u=Ft(X2e(o,t,r),m=>sl(m));if(l){let m=Ft(X2e(l,t,r),b=>sl(b));g(l,m)}g(o,u);let p=XD(s.functionCalls,(m,b)=>tl(m.pos,b.pos));for(let m of p)if(m.arguments&&m.arguments.length){let b=sl(jJe(o,m.arguments),!0);i.replaceNodeRange(Vn(m),Ha(m.arguments),Ya(m.arguments),b,{leadingTriviaOption:hr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:hr.TrailingTriviaOption.Include})}function g(m,b){i.replaceNodeRangeWithNodes(e,Ha(m.parameters),Ya(m.parameters),b,{joiner:", ",indentation:0,leadingTriviaOption:hr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:hr.TrailingTriviaOption.Include})}}function LJe(e,t,r){let i=HJe(e),o=Pl(e)?UJe(e):[],s=h1([...i,...o],Cv),l=t.getTypeChecker(),u=Zi(s,b=>Os.getReferenceEntriesForNode(-1,b,t,t.getSourceFiles(),r)),p=g(u);return Jn(p.declarations,b=>wr(s,b))||(p.valid=!1),p;function g(b){let T={accessExpressions:[],typeUsages:[]},I={functionCalls:[],declarations:[],classReferences:T,valid:!0},R=Ft(i,m),M=Ft(o,m),N=Pl(e),O=Ft(i,H=>npe(H,l));for(let H of b){if(H.kind===Os.EntryKind.Span){I.valid=!1;continue}if(wr(O,m(H.node))){if(FJe(H.node.parent)){I.signature=H.node.parent;continue}let Z=U2e(H);if(Z){I.functionCalls.push(Z);continue}}let K=npe(H.node,l);if(K&&wr(O,K)){let Z=rpe(H);if(Z){I.declarations.push(Z);continue}}if(wr(R,m(H.node))||iP(H.node)){if(j2e(H))continue;let V=rpe(H);if(V){I.declarations.push(V);continue}let ue=U2e(H);if(ue){I.functionCalls.push(ue);continue}}if(N&&wr(M,m(H.node))){if(j2e(H))continue;let V=rpe(H);if(V){I.declarations.push(V);continue}let ue=kJe(H);if(ue){T.accessExpressions.push(ue);continue}if(Tc(e.parent)){let G=wJe(H);if(G){T.typeUsages.push(G);continue}}}I.valid=!1}return I}function m(b){let T=l.getSymbolAtLocation(b);return T&&yX(T,l)}}function npe(e,t){let r=FO(e);if(r){let i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Al(o)&6))return o}}function j2e(e){let t=e.node;if(tp(t.parent)||Eh(t.parent)||tu(t.parent)||Zy(t.parent)||Ju(t.parent)||Ll(t.parent))return t}function rpe(e){if(qu(e.node.parent))return e.node}function U2e(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 213:case 214:let i=ai(r,T_);if(i&&i.expression===t)return i;break;case 211:let o=ai(r,zr);if(o&&o.parent&&o.name===t){let l=ai(o.parent,T_);if(l&&l.expression===o)return l}break;case 212:let s=ai(r,Ys);if(s&&s.parent&&s.argumentExpression===t){let l=ai(s.parent,T_);if(l&&l.expression===s)return l}break}}}function kJe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 211:let i=ai(r,zr);if(i&&i.expression===t)return i;break;case 212:let o=ai(r,Ys);if(o&&o.expression===t)return o;break}}}function wJe(e){let t=e.node;if($S(t)===2||R3(t.parent))return t}function H2e(e,t,r){let i=g2(e,t),o=Tie(i);if(!OJe(i)&&o&&WJe(o,r)&&of(o,i)&&!(o.body&&of(o.body,i)))return o}function OJe(e){let t=zn(e,Kx);if(t){let r=zn(t,i=>!Kx(i));return!!r&&zs(r)}return!1}function FJe(e){return yh(e)&&(fd(e.parent)||yp(e.parent))}function WJe(e,t){var r;if(!zJe(e.parameters,t))return!1;switch(e.kind){case 262:return q2e(e)&&$W(e,t);case 174:if(wa(e.parent)){let i=npe(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&$W(e,t)}return $W(e,t);case 176:return Tc(e.parent)?q2e(e.parent)&&$W(e,t):J2e(e.parent.parent)&&$W(e,t);case 218:case 219:return J2e(e.parent)}return!1}function $W(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function q2e(e){return e.name?!0:!!y2(e,90)}function zJe(e,t){return GJe(e)>=Y2e&&Jn(e,r=>BJe(r,t))}function BJe(e,t){if($h(e)){let r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Ve(e.name)}function J2e(e){return Oi(e)&&tR(e)&&Ve(e.name)&&!e.type}function ipe(e){return e.length>0&&h2(e[0].name)}function GJe(e){return ipe(e)?e.length-1:e.length}function K2e(e){return ipe(e)&&(e=k.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function VJe(e,t){return Ve(t)&&Zf(t)===e?k.createShorthandPropertyAssignment(e):k.createPropertyAssignment(e,t)}function jJe(e,t){let r=K2e(e.parameters),i=$h(Ya(r)),o=i?t.slice(0,r.length-1):t,s=Ft(o,(u,p)=>{let g=EY(r[p]),m=VJe(g,u);return Sp(m.name),_c(m)&&Sp(m.initializer),eT(u,m),m});if(i&&t.length>=r.length){let u=t.slice(r.length-1),p=k.createPropertyAssignment(EY(Ya(r)),k.createArrayLiteralExpression(u));s.push(p)}return k.createObjectLiteralExpression(s,!1)}function X2e(e,t,r){let i=t.getTypeChecker(),o=K2e(e.parameters),s=Ft(o,m),l=k.createObjectBindingPattern(s),u=b(o),p;Jn(o,R)&&(p=k.createObjectLiteralExpression());let g=k.createParameterDeclaration(void 0,void 0,l,void 0,u,p);if(ipe(e.parameters)){let M=e.parameters[0],N=k.createParameterDeclaration(void 0,void 0,M.name,void 0,M.type);return Sp(N.name),eT(M.name,N.name),M.type&&(Sp(N.type),eT(M.type,N.type)),k.createNodeArray([N,g])}return k.createNodeArray([g]);function m(M){let N=k.createBindingElement(void 0,void 0,EY(M),$h(M)&&R(M)?k.createArrayLiteralExpression():M.initializer);return Sp(N),M.initializer&&N.initializer&&eT(M.initializer,N.initializer),N}function b(M){let N=Ft(M,T);return M_(k.createTypeLiteralNode(N),1)}function T(M){let N=M.type;!N&&(M.initializer||$h(M))&&(N=I(M));let O=k.createPropertySignature(void 0,EY(M),R(M)?k.createToken(58):M.questionToken,N);return Sp(O),eT(M.name,O.name),M.type&&O.type&&eT(M.type,O.type),O}function I(M){let N=i.getTypeAtLocation(M);return mP(N,M,t,r)}function R(M){if($h(M)){let N=i.getTypeAtLocation(M);return!i.isTupleType(N)}return i.isOptionalParameter(M)}}function EY(e){return Zf(e.name)}function UJe(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[C.checkDefined(y2(t,90),"Nameless class declaration should be a default export")];case 231:let i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function HJe(e){switch(e.kind){case 262:return e.name?[e.name]:[C.checkDefined(y2(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let r=C.checkDefined(bs(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return C.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var QW,Y2e,ope,ape,qJe=A({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";ci(),xh(),QW="Convert parameters to destructured object",Y2e=1,ope=Bo(f.Convert_parameters_to_destructured_object),ape={name:QW,description:ope,kind:"refactor.rewrite.parameters.toDestructured"},dg(QW,{kinds:[ape.kind],getEditsForAction:PJe,getAvailableActions:NJe})}}),JJe={},KJe=A({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";qJe()}});function XJe(e){let{file:t,startPosition:r}=e,i=$2e(t,r),o=spe(i),s=Na(o),l={name:SY,description:TY,actions:[]};return s&&e.triggerReason!=="invoked"?et:eg(o)&&(s||_r(o)&&lpe(o).isValidConcatenation)?(l.actions.push(AY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...AY,notApplicableReason:Bo(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):et}function $2e(e,t){let r=po(e,t),i=spe(r);return!lpe(i).isValidConcatenation&&Wd(i.parent)&&_r(i.parent.parent)?i.parent.parent:r}function YJe(e,t){let{file:r,startPosition:i}=e,o=$2e(r,i);switch(t){case TY:return{edits:$Je(e,o)};default:return C.fail("invalid action")}}function $Je(e,t){let r=spe(t),i=e.file,o=eKe(lpe(r),i),s=Qb(i.text,r.end);if(s){let l=s[s.length-1],u={pos:s[0].pos,end:l.end};return hr.ChangeTracker.with(e,p=>{p.deleteRange(i,u),p.replaceNode(i,r,o)})}else return hr.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function QJe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function spe(e){return zn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(_r(r.parent)&&QJe(r.parent));default:return"quit"}})||e}function lpe(e){let t=l=>{if(!_r(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Na(l)||QA(l)};let{nodes:u,operators:p,hasString:g,validOperators:m}=t(l.left);if(!(g||Na(l.right)||Q7(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};let b=l.operatorToken.kind===40,T=m&&b;return u.push(l.right),p.push(l.operatorToken),{nodes:u,operators:p,hasString:!0,validOperators:T}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function ZJe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function Q2e(e){let t=ZA(e)||mH(e)?-2:-1;return pc(e).slice(1,t)}function Z2e(e,t){let r=[],i="",o="";for(;e{eDe(K);let V=Z===T.templateSpans.length-1,ue=K.literal.text+(V?R:""),G=Q2e(K.literal)+(V?M:"");return k.createTemplateSpan(K.expression,O&&V?k.createTemplateTail(ue,G):k.createTemplateMiddle(ue,G))});g.push(...H)}else{let H=O?k.createTemplateTail(R,M):k.createTemplateMiddle(R,M);o(N,H),g.push(k.createTemplateSpan(T,H))}}return k.createTemplateExpression(m,g)}function eDe(e){let t=e.getSourceFile();pP(e,e.expression,t,3,!1),_O(e.expression,e.expression,t,3,!1)}function tKe(e){return Wd(e)&&(eDe(e),e=e.expression),e}var SY,TY,AY,tDe,nDe,nKe=A({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";ci(),xh(),SY="Convert to template string",TY=Bo(f.Convert_to_template_string),AY={name:SY,description:TY,kind:"refactor.rewrite.string"},dg(SY,{kinds:[AY.kind],getEditsForAction:YJe,getAvailableActions:XJe}),tDe=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){let s=i.shift();pP(e[s],o,t,3,!1),r(s,o)}}}}),rKe={},iKe=A({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";nKe()}});function oKe(e){let t=rDe(e,e.triggerReason==="invoked");return t?Jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:ZW,description:RY,actions:[{...DY,notApplicableReason:t.error}]}]:et:[{name:ZW,description:RY,actions:[DY]}]:et}function aKe(e,t){let r=rDe(e);return C.assert(r&&!Jg(r),"Expected applicable refactor info"),{edits:hr.ChangeTracker.with(e,o=>mKe(e.file,e.program.getTypeChecker(),o,r,t)),renameFilename:void 0,renameLocation:void 0}}function IY(e){return _r(e)||BR(e)}function sKe(e){return eu(e)||Rm(e)||Ml(e)}function xY(e){return IY(e)||sKe(e)}function rDe(e,t=!0){let{file:r,program:i}=e,o=DI(e),s=o.length===0;if(s&&!t)return;let l=po(r,o.start),u=eW(r,o.start+o.length),p=dc(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),g=s?pKe(l):dKe(l,p),m=g&&xY(g)?fKe(g):void 0;if(!m)return{error:Bo(f.Could_not_find_convertible_access_expression)};let b=i.getTypeChecker();return BR(m)?lKe(m,b):cKe(m)}function lKe(e,t){let r=e.condition,i=upe(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Bo(f.Could_not_find_convertible_access_expression)};if((zr(r)||Ve(r))&&cpe(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(_r(r)){let o=iDe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Bo(f.Could_not_find_matching_access_expressions)}}}function cKe(e){if(e.operatorToken.kind!==56)return{error:Bo(f.Can_only_convert_logical_AND_access_chains)};let t=upe(e.right);if(!t)return{error:Bo(f.Could_not_find_convertible_access_expression)};let r=iDe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Bo(f.Could_not_find_matching_access_expressions)}}function iDe(e,t){let r=[];for(;_r(t)&&t.operatorToken.kind===56;){let o=cpe(vs(e),vs(t.right));if(!o)break;r.push(o),e=o,t=t.left}let i=cpe(e,t);return i&&r.push(i),r.length>0?r:void 0}function cpe(e,t){if(!(!Ve(t)&&!zr(t)&&!Ys(t)))return uKe(e,t)?t:void 0}function uKe(e,t){for(;(la(e)||zr(e)||Ys(e))&&kO(e)!==kO(t);)e=e.expression;for(;zr(e)&&zr(t)||Ys(e)&&Ys(t);){if(kO(e)!==kO(t))return!1;e=e.expression,t=t.expression}return Ve(e)&&Ve(t)&&e.getText()===t.getText()}function kO(e){if(Ve(e)||Qp(e))return e.getText();if(zr(e))return kO(e.name);if(Ys(e))return kO(e.argumentExpression)}function dKe(e,t){for(;e.parent;){if(xY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function pKe(e){for(;e.parent;){if(xY(e)&&!xY(e.parent))return e;e=e.parent}}function fKe(e){if(IY(e))return e;if(Ml(e)){let t=kA(e),r=t?.initializer;return r&&IY(r)?r:void 0}return e.expression&&IY(e.expression)?e.expression:void 0}function upe(e){if(e=vs(e),_r(e))return upe(e.left);if((zr(e)||Ys(e)||la(e))&&!Hu(e))return e}function oDe(e,t,r){if(zr(t)||Ys(t)||la(t)){let i=oDe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),la(t))return s?k.createCallChain(i,k.createToken(29),t.typeArguments,t.arguments):k.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(zr(t))return s?k.createPropertyAccessChain(i,k.createToken(29),t.name):k.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Ys(t))return s?k.createElementAccessChain(i,k.createToken(29),t.argumentExpression):k.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function mKe(e,t,r,i,o){let{finalExpression:s,occurrences:l,expression:u}=i,p=l[l.length-1],g=oDe(t,s,l);g&&(zr(g)||Ys(g)||la(g))&&(_r(u)?r.replaceNodeRange(e,p,s,g):BR(u)&&r.replaceNode(e,u,k.createBinaryExpression(g,k.createToken(61),u.whenFalse)))}var ZW,RY,DY,_Ke=A({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";ci(),xh(),ZW="Convert to optional chain expression",RY=Bo(f.Convert_to_optional_chain_expression),DY={name:ZW,description:RY,kind:"refactor.rewrite.expression.optionalChain"},dg(ZW,{kinds:[DY.kind],getEditsForAction:aKe,getAvailableActions:oKe})}}),hKe={},gKe=A({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";_Ke()}});function aDe(e){let t=e.kind,r=dpe(e.file,DI(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return et;let R=[];return P0(D2.kind,t)&&R.push({name:x2,description:D2.description,actions:[{...D2,notApplicableReason:I(r.errors)}]}),P0(R2.kind,t)&&R.push({name:x2,description:R2.description,actions:[{...R2,notApplicableReason:I(r.errors)}]}),R}let o=TKe(i,e);if(o===void 0)return et;let s=[],l=new Map,u,p=[],g=new Map,m,b=0;for(let{functionExtraction:R,constantExtraction:M}of o){if(P0(D2.kind,t)){let N=R.description;R.errors.length===0?l.has(N)||(l.set(N,!0),s.push({description:N,name:`function_scope_${b}`,kind:D2.kind})):u||(u={description:N,name:`function_scope_${b}`,notApplicableReason:I(R.errors),kind:D2.kind})}if(P0(R2.kind,t)){let N=M.description;M.errors.length===0?g.has(N)||(g.set(N,!0),p.push({description:N,name:`constant_scope_${b}`,kind:R2.kind})):m||(m={description:N,name:`constant_scope_${b}`,notApplicableReason:I(M.errors),kind:R2.kind})}b++}let T=[];return s.length?T.push({name:x2,description:Bo(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&u&&T.push({name:x2,description:Bo(f.Extract_function),actions:[u]}),p.length?T.push({name:x2,description:Bo(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&T.push({name:x2,description:Bo(f.Extract_constant),actions:[m]}),T.length?T:et;function I(R){let M=R[0].messageText;return typeof M!="string"&&(M=M.messageText),M}}function sDe(e,t){let i=dpe(e.file,DI(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){let l=+o[1];return C.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),EKe(i,e,l)}let s=/^constant_scope_(\d+)$/.exec(t);if(s){let l=+s[1];return C.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),SKe(i,e,l)}C.fail("Unrecognized action name")}function dpe(e,t,r=!0){let{length:i}=t;if(i===0&&!r)return{errors:[Qc(e,t.start,i,Tu.cannotExtractEmpty)]};let o=i===0&&r,s=yue(e,t.start),l=eW(e,ql(t)),u=s&&l&&r?vKe(s,l,e):t,p=o?jKe(s):dO(s,e,u),g=o?p:dO(l,e,u),m=0,b;if(!p||!g)return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};if(p.flags&16777216)return{errors:[Qc(e,t.start,i,Tu.cannotExtractJSDoc)]};if(p.parent!==g.parent)return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};if(p!==g){if(!cDe(p.parent))return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};let H=[];for(let K of p.parent.statements){if(K===p||H.length){let Z=O(K);if(Z)return{errors:Z};H.push(K)}if(K===g)break}return H.length?{targetRange:{range:H,facts:m,thisNode:b}}:{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]}}if(Rm(p)&&!p.expression)return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};let T=R(p),I=M(T)||O(T);if(I)return{errors:I};return{targetRange:{range:yKe(T),facts:m,thisNode:b}};function R(H){if(Rm(H)){if(H.expression)return H.expression}else if(Ml(H)||jc(H)){let K=Ml(H)?H.declarationList.declarations:H.declarations,Z=0,V;for(let ue of K)ue.initializer&&(Z++,V=ue.initializer);if(Z===1)return V}else if(Oi(H)&&H.initializer)return H.initializer;return H}function M(H){if(Ve(eu(H)?H.expression:H))return[Or(H,Tu.cannotExtractIdentifier)]}function N(H,K){let Z=H;for(;Z!==K;){if(Z.kind===172){sa(Z)&&(m|=32);break}else if(Z.kind===169){zp(Z).kind===176&&(m|=32);break}else Z.kind===174&&sa(Z)&&(m|=32);Z=Z.parent}}function O(H){let K;if((he=>{he[he.None=0]="None",he[he.Break=1]="Break",he[he.Continue=2]="Continue",he[he.Return=4]="Return"})(K||(K={})),C.assert(H.pos<=H.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),C.assert(!Qm(H.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Ki(H)&&!(eg(H)&&lDe(H))&&!hpe(H))return[Or(H,Tu.statementOrExpressionExpected)];if(H.flags&33554432)return[Or(H,Tu.cannotExtractAmbientBlock)];let Z=su(H);Z&&N(H,Z);let V,ue=4,G;if(ne(H),m&8){let he=wd(H,!1,!1);(he.kind===262||he.kind===174&&he.parent.kind===210||he.kind===218)&&(m|=16)}return V;function ne(he){if(V)return!0;if(qu(he)){let $=he.kind===260?he.parent.parent:he;if(ei($,32))return(V||(V=[])).push(Or(he,Tu.cannotExtractExportedEntity)),!0}switch(he.kind){case 272:return(V||(V=[])).push(Or(he,Tu.cannotExtractImport)),!0;case 277:return(V||(V=[])).push(Or(he,Tu.cannotExtractExportedEntity)),!0;case 108:if(he.parent.kind===213){let $=su(he);if($===void 0||$.pos=t.start+t.length)return(V||(V=[])).push(Or(he,Tu.cannotExtractSuper)),!0}else m|=8,b=he;break;case 219:Ho(he,function $(Y){if(h2(Y))m|=8,b=he;else{if(pi(Y)||ea(Y)&&!Bs(Y))return!1;Ho(Y,$)}});case 263:case 262:no(he.parent)&&he.parent.externalModuleIndicator===void 0&&(V||(V=[])).push(Or(he,Tu.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let ye=ue;switch(he.kind){case 245:ue&=-5;break;case 258:ue=0;break;case 241:he.parent&&he.parent.kind===258&&he.parent.finallyBlock===he&&(ue=4);break;case 297:case 296:ue|=1;break;default:ky(he,!1)&&(ue|=3);break}switch(he.kind){case 197:case 110:m|=8,b=he;break;case 256:{let $=he.label;(G||(G=[])).push($.escapedText),Ho(he,ne),G.pop();break}case 252:case 251:{let $=he.label;$?wr(G,$.escapedText)||(V||(V=[])).push(Or(he,Tu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ue&(he.kind===252?1:2)||(V||(V=[])).push(Or(he,Tu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:ue&4?m|=1:(V||(V=[])).push(Or(he,Tu.cannotExtractRangeContainingConditionalReturnStatement));break;default:Ho(he,ne);break}ue=ye}}}function vKe(e,t,r){let i=e.getStart(r),o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function yKe(e){if(Ki(e))return[e];if(eg(e))return eu(e.parent)?[e.parent]:e;if(hpe(e))return e}function ppe(e){return Bs(e)?ZV(e.body):zs(e)||no(e)||k_(e)||pi(e)}function bKe(e){let t=ey(e.range)?Ha(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=su(t);if(i){let o=zn(t,zs);return o?[o,i]:[i]}}let r=[];for(;;)if(t=t.parent,t.kind===169&&(t=zn(t,i=>zs(i)).parent),ppe(t)&&(r.push(t),t.kind===312))return r}function EKe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=fpe(e,t);return C.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),CKe(o,i[r],s[r],u,e,t)}function SKe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=fpe(e,t);C.assert(!l[r].length,"The extraction went missing? How?"),C.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let p=bt(o)?o:o.statements[0].expression;return NKe(p,i[r],s[r],e.facts,t)}function TKe(e,t){let{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=fpe(e,t);return r.map((l,u)=>{let p=AKe(l),g=IKe(l),m=zs(l)?xKe(l):pi(l)?RKe(l):DKe(l),b,T;return m===1?(b=ag(Bo(f.Extract_to_0_in_1_scope),[p,"global"]),T=ag(Bo(f.Extract_to_0_in_1_scope),[g,"global"])):m===0?(b=ag(Bo(f.Extract_to_0_in_1_scope),[p,"module"]),T=ag(Bo(f.Extract_to_0_in_1_scope),[g,"module"])):(b=ag(Bo(f.Extract_to_0_in_1),[p,m]),T=ag(Bo(f.Extract_to_0_in_1),[g,m])),u===0&&!pi(l)&&(T=ag(Bo(f.Extract_to_0_in_enclosing_scope),[g])),{functionExtraction:{description:b,errors:i[u]},constantExtraction:{description:T,errors:o[u]}}})}function fpe(e,t){let{file:r}=t,i=bKe(e),o=GKe(e,r),s=VKe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function AKe(e){return zs(e)?"inner function":pi(e)?"method":"function"}function IKe(e){return pi(e)?"readonly field":"constant"}function xKe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:MW;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:C.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function RKe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function DKe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function CKe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){let p=u.program.getTypeChecker(),g=as(u.program.getCompilerOptions()),m=Fu.createImportAdder(u.file,u.program,u.preferences,u.host),b=t.getSourceFile(),T=tT(pi(t)?"newMethod":"newFunction",b),I=cr(t),R=k.createIdentifier(T),M,N=[],O=[],H;r.forEach((Ce,Me)=>{let Fe;if(!I){let Se=p.getTypeOfSymbolAtLocation(Ce.symbol,Ce.node);Se=p.getBaseTypeOfLiteralType(Se),Fe=Fu.typeToAutoImportableTypeNode(p,m,Se,t,g,1)}let At=k.createParameterDeclaration(void 0,void 0,Me,void 0,Fe);N.push(At),Ce.usage===2&&(H||(H=[])).push(Ce),O.push(k.createIdentifier(Me))});let Z=Vo(i.values(),Ce=>({type:Ce,declaration:MKe(Ce,u.startPosition)})).sort(LKe),V=Z.length===0?void 0:Vi(Z,({declaration:Ce})=>Ce),ue=V!==void 0?V.map(Ce=>k.createTypeReferenceNode(Ce.name,void 0)):void 0;if(bt(e)&&!I){let Ce=p.getContextualType(e);M=p.typeToTypeNode(Ce,t,1)}let{body:G,returnValueProperty:ne}=wKe(e,s,H,o,!!(l.facts&1));Sp(G);let he,ye=!!(l.facts&16);if(pi(t)){let Ce=I?[]:[k.createModifier(123)];l.facts&32&&Ce.push(k.createModifier(126)),l.facts&4&&Ce.push(k.createModifier(134)),he=k.createMethodDeclaration(Ce.length?Ce:void 0,l.facts&2?k.createToken(42):void 0,R,void 0,V,N,M,G)}else ye&&N.unshift(k.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),he=k.createFunctionDeclaration(l.facts&4?[k.createToken(134)]:void 0,l.facts&2?k.createToken(42):void 0,R,V,N,M,G);let $=hr.ChangeTracker.fromContext(u),Y=(ey(l.range)?Ya(l.range):l.range).end,oe=WKe(Y,t);oe?$.insertNodeBefore(u.file,oe,he,!0):$.insertNodeAtEndOfScope(u.file,t,he),m.writeFixes($);let fe=[],Ne=kKe(t,l,T);ye&&O.unshift(k.createIdentifier("this"));let me=k.createCallExpression(ye?k.createPropertyAccessExpression(Ne,"call"):Ne,ue,O);if(l.facts&2&&(me=k.createYieldExpression(k.createToken(42),me)),l.facts&4&&(me=k.createAwaitExpression(me)),_pe(e)&&(me=k.createJsxExpression(void 0,me)),s.length&&!H)if(C.assert(!ne,"Expected no returnValueProperty"),C.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){let Ce=s[0];fe.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(sl(Ce.name),void 0,sl(Ce.type),me)],Ce.parent.flags)))}else{let Ce=[],Me=[],Fe=s[0].parent.flags,At=!1;for(let je of s){Ce.push(k.createBindingElement(void 0,void 0,sl(je.name)));let at=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(je)),t,1);Me.push(k.createPropertySignature(void 0,je.symbol.name,void 0,at)),At=At||je.type!==void 0,Fe=Fe&je.parent.flags}let Se=At?k.createTypeLiteralNode(Me):void 0;Se&&fr(Se,1),fe.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(k.createObjectBindingPattern(Ce),void 0,Se,me)],Fe)))}else if(s.length||H){if(s.length)for(let Me of s){let Fe=Me.parent.flags;Fe&2&&(Fe=Fe&-3|1),fe.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(Me.symbol.name,void 0,Ee(Me.type))],Fe)))}ne&&fe.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(ne,void 0,Ee(M))],1)));let Ce=mpe(s,H);ne&&Ce.unshift(k.createShorthandPropertyAssignment(ne)),Ce.length===1?(C.assert(!ne,"Shouldn't have returnValueProperty here"),fe.push(k.createExpressionStatement(k.createAssignment(Ce[0].name,me))),l.facts&1&&fe.push(k.createReturnStatement())):(fe.push(k.createExpressionStatement(k.createAssignment(k.createObjectLiteralExpression(Ce),me))),ne&&fe.push(k.createReturnStatement(k.createIdentifier(ne))))}else l.facts&1?fe.push(k.createReturnStatement(me)):ey(l.range)?fe.push(k.createExpressionStatement(me)):fe.push(me);ey(l.range)?$.replaceNodeRangeWithNodes(u.file,Ha(l.range),Ya(l.range),fe):$.replaceNodeWithNodes(u.file,l.range,fe);let ie=$.getChanges(),Le=(ey(l.range)?Ha(l.range):l.range).getSourceFile().fileName,He=mO(ie,Le,T,!1);return{renameFilename:Le,renameLocation:He,edits:ie};function Ee(Ce){if(Ce===void 0)return;let Me=sl(Ce),Fe=Me;for(;LS(Fe);)Fe=Fe.type;return Xy(Fe)&&vn(Fe.types,At=>At.kind===157)?Me:k.createUnionTypeNode([Me,k.createKeywordTypeNode(157)])}}function NKe(e,t,{substitutions:r},i,o){let s=o.program.getTypeChecker(),l=t.getSourceFile(),u=zr(e)&&!pi(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Xi(e.name)&&!n0(e.name)?e.name.text:tT(pi(t)?"newProperty":"newLocal",l),p=cr(t),g=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=OKe(vs(e),r);({variableType:g,initializer:m}=M(g,m)),Sp(m);let b=hr.ChangeTracker.fromContext(o);if(pi(t)){C.assert(!p,"Cannot extract to a JS class");let N=[];N.push(k.createModifier(123)),i&32&&N.push(k.createModifier(126)),N.push(k.createModifier(148));let O=k.createPropertyDeclaration(N,u,void 0,g,m),H=k.createPropertyAccessExpression(i&32?k.createIdentifier(t.name.getText()):k.createThis(),k.createIdentifier(u));_pe(e)&&(H=k.createJsxExpression(void 0,H));let K=e.pos,Z=zKe(K,t);b.insertNodeBefore(o.file,Z,O,!0),b.replaceNode(o.file,e,H)}else{let N=k.createVariableDeclaration(u,void 0,g,m),O=PKe(e,t);if(O){b.insertNodeBefore(o.file,O,N);let H=k.createIdentifier(u);b.replaceNode(o.file,e,H)}else if(e.parent.kind===244&&t===zn(e,ppe)){let H=k.createVariableStatement(void 0,k.createVariableDeclarationList([N],2));b.replaceNode(o.file,e.parent,H)}else{let H=k.createVariableStatement(void 0,k.createVariableDeclarationList([N],2)),K=BKe(e,t);if(K.pos===0?b.insertNodeAtTopOfFile(o.file,H,!1):b.insertNodeBefore(o.file,K,H,!1),e.parent.kind===244)b.delete(o.file,e.parent);else{let Z=k.createIdentifier(u);_pe(e)&&(Z=k.createJsxExpression(void 0,Z)),b.replaceNode(o.file,e,Z)}}}let T=b.getChanges(),I=e.getSourceFile().fileName,R=mO(T,I,u,!0);return{renameFilename:I,renameLocation:R,edits:T};function M(N,O){if(N===void 0)return{variableType:N,initializer:O};if(!ws(O)&&!Bs(O)||O.typeParameters)return{variableType:N,initializer:O};let H=s.getTypeAtLocation(e),K=ah(s.getSignaturesOfType(H,0));if(!K)return{variableType:N,initializer:O};if(K.getTypeParameters())return{variableType:N,initializer:O};let Z=[],V=!1;for(let ue of O.parameters)if(ue.type)Z.push(ue);else{let G=s.getTypeAtLocation(ue);G===s.getAnyType()&&(V=!0),Z.push(k.updateParameterDeclaration(ue,ue.modifiers,ue.dotDotDotToken,ue.name,ue.questionToken,ue.type||s.typeToTypeNode(G,t,1),ue.initializer))}if(V)return{variableType:N,initializer:O};if(N=void 0,Bs(O))O=k.updateArrowFunction(O,Cm(e)?b1(e):void 0,O.typeParameters,Z,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.equalsGreaterThanToken,O.body);else{if(K&&K.thisParameter){let ue=Xc(Z);if(!ue||Ve(ue.name)&&ue.name.escapedText!=="this"){let G=s.getTypeOfSymbolAtLocation(K.thisParameter,e);Z.splice(0,0,k.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(G,t,1)))}}O=k.updateFunctionExpression(O,Cm(e)?b1(e):void 0,O.asteriskToken,O.name,O.typeParameters,Z,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.body)}return{variableType:N,initializer:O}}}function PKe(e,t){let r;for(;e!==void 0&&e!==t;){if(Oi(e)&&e.initializer===r&&jc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function MKe(e,t){let r,i=e.symbol;if(i&&i.declarations)for(let o of i.declarations)(r===void 0||o.pos0;if(Xo(e)&&!s&&i.size===0)return{body:k.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1,p=k.createNodeArray(Xo(e)?e.statements.slice(0):[Ki(e)?e:k.createReturnStatement(vs(e))]);if(s||i.size){let m=Bn(p,g,Ki).slice();if(s&&!o&&Ki(e)){let b=mpe(t,r);b.length===1?m.push(k.createReturnStatement(b[0].name)):m.push(k.createReturnStatement(k.createObjectLiteralExpression(b)))}return{body:k.createBlock(m,!0),returnValueProperty:l}}else return{body:k.createBlock(p,!0),returnValueProperty:void 0};function g(m){if(!u&&Rm(m)&&s){let b=mpe(t,r);return m.expression&&(l||(l="__return"),b.unshift(k.createPropertyAssignment(l,rt(m.expression,g,bt)))),b.length===1?k.createReturnStatement(b[0].name):k.createReturnStatement(k.createObjectLiteralExpression(b))}else{let b=u;u=u||zs(m)||pi(m);let T=i.get(ss(m).toString()),I=T?sl(T):An(m,g,void 0);return u=b,I}}}function OKe(e,t){return t.size?r(e):e;function r(i){let o=t.get(ss(i).toString());return o?sl(o):An(i,r,void 0)}}function FKe(e){if(zs(e)){let t=e.body;if(Xo(t))return t.statements}else{if(k_(e)||no(e))return e.statements;if(pi(e))return e.members;}return et}function WKe(e,t){return vn(FKe(t),r=>r.pos>=e&&zs(r)&&!Pl(r))}function zKe(e,t){let r=t.members;C.assert(r.length>0,"Found no members");let i,o=!0;for(let s of r){if(s.pos>e)return i||r[0];if(o&&!Jo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?C.fail():i}function BKe(e,t){C.assert(!pi(t));let r;for(let i=e;i!==t;i=i.parent)ppe(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(cDe(i)){let o;for(let s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&GR(i)?(C.assert(SN(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):C.checkDefined(o,"prevStatement failed to get set")}C.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function mpe(e,t){let r=Ft(e,o=>k.createShorthandPropertyAssignment(o.symbol.name)),i=Ft(t,o=>k.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function ey(e){return Do(e)}function GKe(e,t){return ey(e.range)?{pos:Ha(e.range).getStart(t),end:Ya(e.range).getEnd()}:e.range}function VKe(e,t,r,i,o,s){let l=new Map,u=[],p=[],g=[],m=[],b=[],T=new Map,I=[],R,M=ey(e.range)?e.range.length===1&&eu(e.range[0])?e.range[0].expression:void 0:e.range,N;if(M===void 0){let oe=e.range,fe=Ha(oe).getStart(),Ne=Ya(oe).end;N=Qc(i,fe,Ne-fe,Tu.expressionExpected)}else o.getTypeAtLocation(M).flags&147456&&(N=Or(M,Tu.uselessConstantType));for(let oe of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),g.push([]);let fe=[];N&&fe.push(N),pi(oe)&&cr(oe)&&fe.push(Or(oe,Tu.cannotExtractToJSClass)),Bs(oe)&&!Xo(oe.body)&&fe.push(Or(oe,Tu.cannotExtractToExpressionArrowFunction)),m.push(fe)}let O=new Map,H=ey(e.range)?k.createBlock(e.range):e.range,K=ey(e.range)?Ha(e.range):e.range,Z=V(K);if(G(H),Z&&!ey(e.range)&&!O_(e.range)){let oe=o.getContextualType(e.range);ue(oe)}if(l.size>0){let oe=new Map,fe=0;for(let Ne=K;Ne!==void 0&&fe{u[fe].typeParameterUsages.set(ie,me)}),fe++),vj(Ne))for(let me of Py(Ne)){let ie=o.getTypeAtLocation(me);l.has(ie.id.toString())&&oe.set(ie.id.toString(),ie)}C.assert(fe===t.length,"Should have iterated all scopes")}if(b.length){let oe=gj(t[0],t[0].parent)?t[0]:_h(t[0]);Ho(oe,ye)}for(let oe=0;oe0&&(fe.usages.size>0||fe.typeParameterUsages.size>0)){let ie=ey(e.range)?e.range[0]:e.range;m[oe].push(Or(ie,Tu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&pi(t[oe])&&g[oe].push(Or(e.thisNode,Tu.cannotExtractFunctionsContainingThisToMethod));let Ne=!1,me;if(u[oe].usages.forEach(ie=>{ie.usage===2&&(Ne=!0,ie.symbol.flags&106500&&ie.symbol.valueDeclaration&&_p(ie.symbol.valueDeclaration,8)&&(me=ie.symbol.valueDeclaration))}),C.assert(ey(e.range)||I.length===0,"No variable declarations expected if something was extracted"),Ne&&!ey(e.range)){let ie=Or(e.range,Tu.cannotWriteInExpression);g[oe].push(ie),m[oe].push(ie)}else if(me&&oe>0){let ie=Or(me,Tu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[oe].push(ie),m[oe].push(ie)}else if(R){let ie=Or(R,Tu.cannotExtractExportedEntity);g[oe].push(ie),m[oe].push(ie)}}return{target:H,usagesPerScope:u,functionErrorsPerScope:g,constantErrorsPerScope:m,exposedVariableDeclarations:I};function V(oe){return!!zn(oe,fe=>vj(fe)&&Py(fe).length!==0)}function ue(oe){let fe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:Ne}=fe.walkType(oe);for(let me of Ne)me.isTypeParameter()&&l.set(me.id.toString(),me)}function G(oe,fe=1){if(Z){let Ne=o.getTypeAtLocation(oe);ue(Ne)}if(qu(oe)&&oe.symbol&&b.push(oe),Mc(oe))G(oe.left,2),G(oe.right);else if(kre(oe))G(oe.operand,2);else if(zr(oe)||Ys(oe))Ho(oe,G);else if(Ve(oe)){if(!oe.parent||Ad(oe.parent)&&oe!==oe.parent.left||zr(oe.parent)&&oe!==oe.parent.expression)return;ne(oe,fe,Zh(oe))}else Ho(oe,G)}function ne(oe,fe,Ne){let me=he(oe,fe,Ne);if(me)for(let ie=0;ie=fe)return ie;if(O.set(ie,fe),ve){for(let Ee of u)Ee.usages.get(oe.text)&&Ee.usages.set(oe.text,{usage:fe,symbol:me,node:oe});return ie}let Le=me.getDeclarations(),He=Le&&vn(Le,Ee=>Ee.getSourceFile()===i);if(He&&!nO(r,He.getStart(),He.end)){if(e.facts&2&&fe===2){let Ee=Or(oe,Tu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Ce of g)Ce.push(Ee);for(let Ce of m)Ce.push(Ee)}for(let Ee=0;Eeme.symbol===fe);if(Ne)if(Oi(Ne)){let me=Ne.symbol.id.toString();T.has(me)||(I.push(Ne),T.set(me,!0))}else R=R||Ne}Ho(oe,ye)}function $(oe){return oe.parent&&np(oe.parent)&&oe.parent.name===oe?o.getShorthandAssignmentValueSymbol(oe.parent):o.getSymbolAtLocation(oe)}function Y(oe,fe,Ne){if(!oe)return;let me=oe.getDeclarations();if(me&&me.some(ve=>ve.parent===fe))return k.createIdentifier(oe.name);let ie=Y(oe.parent,fe,Ne);if(ie!==void 0)return Ne?k.createQualifiedName(ie,k.createIdentifier(oe.name)):k.createPropertyAccessExpression(ie,oe.name)}}function jKe(e){return zn(e,t=>t.parent&&lDe(t)&&!_r(t.parent))}function lDe(e){let{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function cDe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function _pe(e){return hpe(e)||(cg(e)||zS(e)||X1(e))&&(cg(e.parent)||X1(e.parent))}function hpe(e){return Na(e)&&e.parent&&O_(e.parent)}var x2,R2,D2,Tu,gpe,UKe=A({"src/services/refactors/extractSymbol.ts"(){"use strict";ci(),xh(),x2="Extract Symbol",R2={name:"Extract Constant",description:Bo(f.Extract_constant),kind:"refactor.extract.constant"},D2={name:"Extract Function",description:Bo(f.Extract_function),kind:"refactor.extract.function"},dg(x2,{kinds:[R2.kind,D2.kind],getEditsForAction:sDe,getAvailableActions:aDe}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}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")})(Tu||(Tu={})),gpe=(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))(gpe||{})}}),uDe={};X(uDe,{Messages:()=>Tu,RangeFacts:()=>gpe,getRangeToExtract:()=>dpe,getRefactorActionsToExtractSymbol:()=>aDe,getRefactorEditsToExtractSymbol:()=>sDe});var HKe=A({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";UKe()}}),e9,CY,NY,qKe=A({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";ci(),xh(),e9="Generate 'get' and 'set' accessors",CY=Bo(f.Generate_get_and_set_accessors),NY={name:e9,description:CY,kind:"refactor.rewrite.property.generateAccessors"},dg(e9,{kinds:[NY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;let i=Fu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);C.assert(i&&!Jg(i),"Expected applicable refactor info");let o=Fu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;let s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(Ve(l)?0:-1)+mO(o,s,l.text,Co(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return et;let t=Fu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:e9,description:CY,actions:[{...NY,notApplicableReason:t.error}]}]:et:[{name:e9,description:CY,actions:[NY]}]:et}})}}),JKe={},KKe=A({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";qKe()}});function XKe(e){let t=dDe(e);if(t&&!Jg(t))return{renameFilename:void 0,renameLocation:void 0,edits:hr.ChangeTracker.with(e,i=>$Ke(e.file,i,t.declaration,t.returnTypeNode))}}function YKe(e){let t=dDe(e);return t?Jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:t9,description:PY,actions:[{...n9,notApplicableReason:t.error}]}]:et:[{name:t9,description:PY,actions:[n9]}]:et}function $Ke(e,t,r,i){let o=bs(r,22,e),s=Bs(r)&&o===void 0,l=s?Ha(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,k.createToken(21)),t.insertNodeAfter(e,l,k.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function dDe(e){if(cr(e.file)||!P0(n9.kind,e.kind))return;let t=zd(e.file,e.startPosition),r=zn(t,l=>Xo(l)||l.parent&&Bs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":QKe(l));if(!r||!r.body||r.type)return{error:Bo(f.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),o=ZKe(i,r);if(!o)return{error:Bo(f.Could_not_determine_function_return_type)};let s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function QKe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function ZKe(e,t){if(e.isImplementationOfOverload(t)){let i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Vi(i,o=>o.getReturnType()))}let r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var t9,PY,n9,eXe=A({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";ci(),xh(),t9="Infer function return type",PY=Bo(f.Infer_function_return_type),n9={name:t9,description:PY,kind:"refactor.rewrite.function.returnType"},dg(t9,{kinds:[n9.kind],getEditsForAction:XKe,getAvailableActions:YKe})}}),tXe={},nXe=A({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";eXe()}}),NI={};X(NI,{addExportToChanges:()=>Jde,addExports:()=>jde,addNewFileToTsconfig:()=>Wde,addOrRemoveBracesToArrowFunction:()=>hJe,containsJsx:()=>Xde,convertArrowFunctionOrFunctionExpression:()=>DJe,convertParamsToDestructuredObject:()=>JJe,convertStringOrTemplateLiteral:()=>rKe,convertToOptionalChainExpression:()=>hKe,createNewFileName:()=>Kde,createOldFileImportsFromTargetFile:()=>Vde,deleteMovedStatements:()=>HW,deleteUnusedImports:()=>Ude,deleteUnusedOldImports:()=>zde,doChangeNamedToNamespaceOrDefault:()=>y2e,extractSymbol:()=>uDe,filterImport:()=>DO,forEachImportInStatement:()=>RO,generateGetAccessorAndSetAccessor:()=>JKe,getApplicableRefactors:()=>mqe,getEditsForRefactor:()=>_qe,getStatementsToMove:()=>CO,getTopLevelDeclarationStatement:()=>hY,getUsageInfo:()=>JW,inferFunctionReturnType:()=>tXe,isRefactorErrorInfo:()=>Jg,isTopLevelDeclaration:()=>KW,makeImportOrRequire:()=>qW,moduleSpecifierFromImport:()=>xO,nameOfTopLevelDeclaration:()=>qde,refactorKindBeginsWith:()=>P0,registerRefactor:()=>dg,updateImportsInOtherFiles:()=>Bde});var xh=A({"src/services/_namespaces/ts.refactor.ts"(){"use strict";f2e(),Sqe(),Rqe(),wqe(),Oqe(),Wqe(),Vqe(),cJe(),gJe(),CJe(),KJe(),iKe(),gKe(),HKe(),KKe(),nXe()}});function pDe(e,t,r,i){let o=vpe(e,t,r,i);C.assert(o.spans.length%3===0);let s=o.spans,l=[];for(let u=0;u{o.push(l.getStart(t),l.getWidth(t),(u+1<<8)+p)},i),o}function iXe(e,t,r,i,o){let s=e.getTypeChecker(),l=!1;function u(p){switch(p.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!p||!f6(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;let g=l;if((cg(p)||zS(p))&&(l=!0),AN(p)&&(l=!1),Ve(p)&&!l&&!lXe(p)&&!oN(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let b=oXe(m,$S(p));if(b!==void 0){let T=0;p.parent&&(Qa(p.parent)||Spe.get(p.parent.kind)===b)&&p.parent.name===p&&(T=1),b===6&&mDe(p)&&(b=9),b=aXe(s,p,b);let I=m.valueDeclaration;if(I){let R=t0(I),M=Lv(I);R&256&&(T|=2),R&1024&&(T|=4),b!==0&&b!==2&&(R&8||M&2||m.getFlags()&8)&&(T|=8),(b===7||b===10)&&sXe(I,t)&&(T|=32),e.isSourceFileDefaultLibrary(I.getSourceFile())&&(T|=16)}else m.declarations&&m.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(T|=16);i(p,b,T)}}}Ho(p,u),l=g}u(t)}function oXe(e,t){let r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Qa(i)&&(i=fDe(i)),i&&Spe.get(i.kind)}function aXe(e,t,r){if(r===7||r===9||r===6){let i=e.getTypeAtLocation(t);if(i){let o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||cXe(t))return r===9?11:10}}return r}function sXe(e,t){return Qa(e)&&(e=fDe(e)),Oi(e)?(!no(e.parent.parent.parent)||$1(e.parent))&&e.getSourceFile()===t:Sc(e)?!no(e.parent)&&e.getSourceFile()===t:!1}function fDe(e){for(;;)if(Qa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function lXe(e){let t=e.parent;return t&&(Eh(t)||tp(t)||Zy(t))}function cXe(e){for(;mDe(e);)e=e.parent;return la(e.parent)&&e.parent.expression===e}function mDe(e){return Ad(e.parent)&&e.parent.right===e||zr(e.parent)&&e.parent.name===e}var ype,bpe,Epe,Spe,_De=A({"src/services/classifier2020.ts"(){"use strict";ci(),ype=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(ype||{}),bpe=(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))(bpe||{}),Epe=(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))(Epe||{}),Spe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function hDe(e,t,r,i){let o=aL(e)?new OY(e,t,r):e===80?new WY(80,t,r):e===81?new zY(81,t,r):new xpe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function uXe(e,t){if(!aL(e.kind))return et;let r=[];if(C6(e))return e.forEachChild(l=>{r.push(l)}),r;$u.setText((t||e.getSourceFile()).text);let i=e.pos,o=l=>{r9(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{r9(r,i,l.pos,e),r.push(dXe(l,e)),i=l.end};return Ke(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),r9(r,i,e.end,e),$u.setText(void 0),r}function r9(e,t,r,i){for($u.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function MY(e,t){if(!e)return et;let r=L0.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(gDe))){let i=new Set;for(let o of e){let s=vDe(t,o,l=>{var u;if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualJsDocTags(o,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function i9(e,t){if(!e)return et;let r=L0.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(gDe))){let i=new Set;for(let o of e){let s=vDe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(E2(),r))}}return r}function vDe(e,t,r){var i;let o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;let s=fc(t);return Zt(PC(o),l=>{let u=e.getTypeAtLocation(l),p=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,g=e.getPropertyOfType(p,t.symbol.name);return g?r(g):void 0})}function pXe(){return{getNodeConstructor:()=>OY,getTokenConstructor:()=>xpe,getIdentifierConstructor:()=>WY,getPrivateIdentifierConstructor:()=>zY,getSourceFileConstructor:()=>ADe,getSymbolConstructor:()=>EDe,getTypeConstructor:()=>SDe,getSignatureConstructor:()=>TDe,getSourceMapSourceConstructor:()=>IDe}}function wO(e){let t=!0;for(let i in e)if(Rs(e,i)&&!yDe(i)){t=!1;break}if(t)return e;let r={};for(let i in e)if(Rs(e,i)){let o=yDe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function yDe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function OO(e){return e?Ft(e,t=>t.text).join(""):""}function o9(){return{target:1,jsx:1}}function LY(){return Fu.getSupportedErrorCodes()}function bDe(e,t,r){e.version=r,e.scriptSnapshot=t}function a9(e,t,r,i,o,s){let l=rw(e,v2(t),r,o,s);return bDe(l,t,i),l}function kY(e,t,r,i,o){if(i&&r!==e.version){let l,u=i.span.start!==0?e.text.substr(0,i.span.start):"",p=ql(i.span)!==e.text.length?e.text.substr(ql(i.span)):"";if(i.newLength===0)l=u&&p?u+p:u||p;else{let m=t.getText(i.span.start,i.span.start+i.newLength);l=u&&p?u+m+p:u?u+m:m+p}let g=qH(e,l,i,o);return bDe(g,t,r),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}let s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return a9(e.fileName,t,s,r,!0,e.scriptKind)}function Tpe(e,t=ade(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;let s=new xDe(e),l,u,p=0,g=e.getCancellationToken?new DDe(e.getCancellationToken()):RDe,m=e.getCurrentDirectory();xoe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function b(w){e.log&&e.log(w)}let T=ER(e),I=Pu(T),R=bde({useCaseSensitiveFileNames:()=>T,getCurrentDirectory:()=>m,getProgram:H,fileExists:oa(e,e.fileExists),readFile:oa(e,e.readFile),getDocumentPositionMapper:oa(e,e.getDocumentPositionMapper),getSourceFileLike:oa(e,e.getSourceFileLike),log:b});function M(w){let ae=l.getSourceFile(w);if(!ae){let J=new Error(`Could not find source file: '${w}'.`);throw J.ProgramFiles=l.getSourceFiles().map(pe=>pe.fileName),J}return ae}function N(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():O()}function O(){var w,ae,J;if(C.assert(o!==2),e.getProjectVersion){let Fo=e.getProjectVersion();if(Fo){if(u===Fo&&!((w=e.hasChangedAutomaticTypeDirectiveNames)!=null&&w.call(e)))return;u=Fo}}let pe=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==pe&&(b("TypeRoots version has changed; provide new program"),l=void 0,p=pe);let Ge=e.getScriptFileNames().slice(),ke=e.getCompilationSettings()||o9(),Dt=e.hasInvalidatedResolutions||Km,Pt=oa(e,e.hasInvalidatedLibResolutions)||Km,Kt=oa(e,e.hasChangedAutomaticTypeDirectiveNames),Tn=(ae=e.getProjectReferences)==null?void 0:ae.call(e),On,Gn={getSourceFile:Fs,getSourceFileByPath:Yl,getCancellationToken:()=>g,getCanonicalFileName:I,useCaseSensitiveFileNames:()=>T,getNewLine:()=>Gv(ke),getDefaultLibFileName:Fo=>e.getDefaultLibFileName(Fo),writeFile:$a,getCurrentDirectory:()=>m,fileExists:Fo=>e.fileExists(Fo),readFile:Fo=>e.readFile&&e.readFile(Fo),getSymlinkCache:oa(e,e.getSymlinkCache),realpath:oa(e,e.realpath),directoryExists:Fo=>Ym(Fo,e),getDirectories:Fo=>e.getDirectories?e.getDirectories(Fo):[],readDirectory:(Fo,ds,Gs,hl,uu)=>(C.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Fo,ds,Gs,hl,uu)),onReleaseOldSourceFile:Dn,onReleaseParsedCommandLine:Po,hasInvalidatedResolutions:Dt,hasInvalidatedLibResolutions:Pt,hasChangedAutomaticTypeDirectiveNames:Kt,trace:oa(e,e.trace),resolveModuleNames:oa(e,e.resolveModuleNames),getModuleResolutionCache:oa(e,e.getModuleResolutionCache),createHash:oa(e,e.createHash),resolveTypeReferenceDirectives:oa(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:oa(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:oa(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:oa(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:oa(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ci,jsDocParsingMode:e.jsDocParsingMode},yi=Gn.getSourceFile,{getSourceFileWithCache:Di}=Fw(Gn,Fo=>rl(Fo,m,I),(...Fo)=>yi.call(Gn,...Fo));Gn.getSourceFile=Di,(J=e.setCompilerHost)==null||J.call(e,Gn);let or={useCaseSensitiveFileNames:T,fileExists:Fo=>Gn.fileExists(Fo),readFile:Fo=>Gn.readFile(Fo),directoryExists:Fo=>Gn.directoryExists(Fo),getDirectories:Fo=>Gn.getDirectories(Fo),realpath:Gn.realpath,readDirectory:(...Fo)=>Gn.readDirectory(...Fo),trace:Gn.trace,getCurrentDirectory:Gn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:$a},Vr=t.getKeyForCompilationSettings(ke),Eo=new Set;if(MJ(l,Ge,ke,(Fo,ds)=>e.getScriptVersion(ds),Fo=>Gn.fileExists(Fo),Dt,Pt,Kt,Ci,Tn)){Gn=void 0,On=void 0,Eo=void 0;return}l=vF({rootNames:Ge,options:ke,host:Gn,oldProgram:l,projectReferences:Tn}),Gn=void 0,On=void 0,Eo=void 0,R.clearCache(),l.getTypeChecker();return;function Ci(Fo){let ds=rl(Fo,m,I),Gs=On?.get(ds);if(Gs!==void 0)return Gs||void 0;let hl=e.getParsedCommandLine?e.getParsedCommandLine(Fo):Kr(Fo);return(On||(On=new Map)).set(ds,hl||!1),hl}function Kr(Fo){let ds=Fs(Fo,100);if(ds)return ds.path=rl(Fo,m,I),ds.resolvedPath=ds.path,ds.originalFileName=ds.fileName,lw(ds,or,bo(li(Fo),m),void 0,bo(Fo,m))}function Po(Fo,ds,Gs){var hl;e.getParsedCommandLine?(hl=e.onReleaseParsedCommandLine)==null||hl.call(e,Fo,ds,Gs):ds&&Dn(ds.sourceFile,Gs)}function Dn(Fo,ds){let Gs=t.getKeyForCompilationSettings(ds);t.releaseDocumentWithKey(Fo.resolvedPath,Gs,Fo.scriptKind,Fo.impliedNodeFormat)}function Fs(Fo,ds,Gs,hl){return Yl(Fo,rl(Fo,m,I),ds,Gs,hl)}function Yl(Fo,ds,Gs,hl,uu){C.assert(Gn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let yo=e.getScriptSnapshot(Fo);if(!yo)return;let pa=vX(Fo,e),du=e.getScriptVersion(Fo);if(!uu){let Is=l&&l.getSourceFileByPath(ds);if(Is){if(pa===Is.scriptKind||Eo.has(Is.resolvedPath))return t.updateDocumentWithKey(Fo,ds,e,Vr,yo,du,pa,Gs);t.releaseDocumentWithKey(Is.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Is.scriptKind,Is.impliedNodeFormat),Eo.add(Is.resolvedPath)}}return t.acquireDocumentWithKey(Fo,ds,e,Vr,yo,du,pa,Gs)}}function H(){if(o===2){C.assert(l===void 0);return}return N(),l}function K(){var w;return(w=e.getPackageJsonAutoImportProvider)==null?void 0:w.call(e)}function Z(w,ae){let J=l.getTypeChecker(),pe=Ge();if(!pe)return!1;for(let Dt of w)for(let Pt of Dt.references){let Kt=ke(Pt);if(C.assertIsDefined(Kt),ae.has(Pt)||Os.isDeclarationOfSymbol(Kt,pe)){ae.add(Pt),Pt.isDefinition=!0;let Tn=fW(Pt,R,oa(e,e.fileExists));Tn&&ae.add(Tn)}else Pt.isDefinition=!1}return!0;function Ge(){for(let Dt of w)for(let Pt of Dt.references){if(ae.has(Pt)){let Tn=ke(Pt);return C.assertIsDefined(Tn),J.getSymbolAtLocation(Tn)}let Kt=fW(Pt,R,oa(e,e.fileExists));if(Kt&&ae.has(Kt)){let Tn=ke(Kt);if(Tn)return J.getSymbolAtLocation(Tn)}}}function ke(Dt){let Pt=l.getSourceFile(Dt.fileName);if(!Pt)return;let Kt=zd(Pt,Dt.textSpan.start);return Os.Core.getAdjustedNode(Kt,{use:Os.FindReferencesUse.References})}}function V(){if(l){let w=t.getKeyForCompilationSettings(l.getCompilerOptions());Ke(l.getSourceFiles(),ae=>t.releaseDocumentWithKey(ae.resolvedPath,w,ae.scriptKind,ae.impliedNodeFormat)),l=void 0}}function ue(){V(),e=void 0}function G(w){return N(),l.getSyntacticDiagnostics(M(w),g).slice()}function ne(w){N();let ae=M(w),J=l.getSemanticDiagnostics(ae,g);if(!xf(l.getCompilerOptions()))return J.slice();let pe=l.getDeclarationDiagnostics(ae,g);return[...J,...pe]}function he(w){return N(),YX(M(w),l,g)}function ye(){return N(),[...l.getOptionsDiagnostics(g),...l.getGlobalDiagnostics(g)]}function $(w,ae,J=Pf,pe){let Ge={...J,includeCompletionsForModuleExports:J.includeCompletionsForModuleExports||J.includeExternalModuleExports,includeCompletionsWithInsertText:J.includeCompletionsWithInsertText||J.includeInsertTextCompletions};return N(),OI.getCompletionsAtPosition(e,l,b,M(w),ae,Ge,J.triggerCharacter,J.triggerKind,g,pe&&wc.getFormatContext(pe,e),J.includeSymbol)}function Y(w,ae,J,pe,Ge,ke=Pf,Dt){return N(),OI.getCompletionEntryDetails(l,b,M(w),ae,{name:J,source:Ge,data:Dt},e,pe&&wc.getFormatContext(pe,e),ke,g)}function oe(w,ae,J,pe,Ge=Pf){return N(),OI.getCompletionEntrySymbol(l,b,M(w),ae,{name:J,source:pe},e,Ge)}function fe(w,ae){N();let J=M(w),pe=zd(J,ae);if(pe===J)return;let Ge=l.getTypeChecker(),ke=Ne(pe),Dt=hXe(ke,Ge);if(!Dt||Ge.isUnknownSymbol(Dt)){let Gn=me(J,ke,ae)?Ge.getTypeAtLocation(ke):void 0;return Gn&&{kind:"",kindModifiers:"",textSpan:Rd(ke,J),displayParts:Ge.runWithCancellationToken(g,yi=>pO(yi,Gn,QS(ke))),documentation:Gn.symbol?Gn.symbol.getDocumentationComment(Ge):void 0,tags:Gn.symbol?Gn.symbol.getJsDocTags(Ge):void 0}}let{symbolKind:Pt,displayParts:Kt,documentation:Tn,tags:On}=Ge.runWithCancellationToken(g,Gn=>ty.getSymbolDisplayPartsDocumentationAndSymbolKind(Gn,Dt,J,QS(ke),ke));return{kind:Pt,kindModifiers:ty.getSymbolModifiers(Ge,Dt),textSpan:Rd(ke,J),displayParts:Kt,documentation:Tn,tags:On}}function Ne(w){return H1(w.parent)&&w.pos===w.parent.pos?w.parent.expression:FR(w.parent)&&w.pos===w.parent.pos||nR(w.parent)&&w.parent.name===w||e_(w.parent)?w.parent:w}function me(w,ae,J){switch(ae.kind){case 80:return!zK(ae)&&!BK(ae)&&!kg(ae.parent);case 211:case 166:return!Xv(w,J);case 110:case 197:case 108:case 202:return!0;case 236:return nR(ae);default:return!1}}function ie(w,ae,J,pe){return N(),w2.getDefinitionAtPosition(l,M(w),ae,J,pe)}function ve(w,ae){return N(),w2.getDefinitionAndBoundSpan(l,M(w),ae)}function Le(w,ae){return N(),w2.getTypeDefinitionAtPosition(l.getTypeChecker(),M(w),ae)}function He(w,ae){return N(),Os.getImplementationsAtPosition(l,g,l.getSourceFiles(),M(w),ae)}function Ee(w,ae,J){let pe=va(w);C.assert(J.some(Dt=>va(Dt)===pe)),N();let Ge=Vi(J,Dt=>l.getSourceFile(Dt)),ke=M(w);return wW.getDocumentHighlights(l,g,ke,ae,Ge)}function Ce(w,ae,J,pe,Ge){N();let ke=M(w),Dt=ZF(zd(ke,ae));if(L9.nodeIsEligibleForRename(Dt))if(Ve(Dt)&&(w_(Dt.parent)||K1(Dt.parent))&&yR(Dt.escapedText)){let{openingElement:Pt,closingElement:Kt}=Dt.parent.parent;return[Pt,Kt].map(Tn=>{let On=Rd(Tn.tagName,ke);return{fileName:ke.fileName,textSpan:On,...Os.toContextSpan(On,ke,Tn.parent)}})}else{let Pt=af(ke,Ge??Pf),Kt=typeof Ge=="boolean"?Ge:Ge?.providePrefixAndSuffixTextForRename;return Fe(Dt,ae,{findInStrings:J,findInComments:pe,providePrefixAndSuffixTextForRename:Kt,use:Os.FindReferencesUse.Rename},(Tn,On,Gn)=>Os.toRenameLocation(Tn,On,Gn,Kt||!1,Pt))}}function Me(w,ae){return N(),Fe(zd(M(w),ae),ae,{use:Os.FindReferencesUse.References},Os.toReferenceEntry)}function Fe(w,ae,J,pe){N();let Ge=J&&J.use===Os.FindReferencesUse.Rename?l.getSourceFiles().filter(ke=>!l.isSourceFileDefaultLibrary(ke)):l.getSourceFiles();return Os.findReferenceOrRenameEntries(l,g,Ge,w,ae,J,pe)}function At(w,ae){return N(),Os.findReferencedSymbols(l,g,l.getSourceFiles(),M(w),ae)}function Se(w){return N(),Os.Core.getReferencesForFileName(w,l,l.getSourceFiles()).map(Os.toReferenceEntry)}function je(w,ae,J,pe=!1,Ge=!1){N();let ke=J?[M(J)]:l.getSourceFiles();return VRe(ke,l.getTypeChecker(),g,w,ae,pe,Ge)}function at(w,ae,J){N();let pe=M(w),Ge=e.getCustomTransformers&&e.getCustomTransformers();return _ce(l,pe,!!ae,g,Ge,J)}function Bt(w,ae,{triggerReason:J}=Pf){N();let pe=M(w);return QO.getSignatureHelpItems(l,pe,ae,J,g)}function yt(w){return s.getCurrentSourceFile(w)}function Qe(w,ae,J){let pe=s.getCurrentSourceFile(w),Ge=zd(pe,ae);if(Ge===pe)return;switch(Ge.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let ke=Ge;for(;;)if(_2(ke)||_ue(ke))ke=ke.parent;else if(VK(ke))if(ke.parent.parent.kind===267&&ke.parent.parent.body===ke.parent)ke=ke.parent.parent.name;else break;else break;return dc(ke.getStart(),Ge.getEnd())}function gt(w,ae){let J=s.getCurrentSourceFile(w);return GY.spanInSourceFileAtLocation(J,ae)}function nn(w){return qRe(s.getCurrentSourceFile(w),g)}function rn(w){return JRe(s.getCurrentSourceFile(w),g)}function Nn(w,ae,J){return N(),(J||"original")==="2020"?pDe(l,g,M(w),ae):ide(l.getTypeChecker(),g,M(w),l.getClassifiableNames(),ae)}function Xn(w,ae,J){return N(),(J||"original")==="original"?jX(l.getTypeChecker(),g,M(w),l.getClassifiableNames(),ae):vpe(l,g,M(w),ae)}function _n(w,ae){return ode(g,s.getCurrentSourceFile(w),ae)}function Qt(w,ae){return UX(g,s.getCurrentSourceFile(w),ae)}function Yt(w){let ae=s.getCurrentSourceFile(w);return FQ.collectElements(ae,g)}let vi=new Map(Object.entries({19:20,21:22,23:24,32:30}));vi.forEach((w,ae)=>vi.set(w.toString(),Number(ae)));function ho(w,ae){let J=s.getCurrentSourceFile(w),pe=g2(J,ae),Ge=pe.getStart(J)===ae?vi.get(pe.kind.toString()):void 0,ke=Ge&&bs(pe.parent,Ge,J);return ke?[Rd(pe,J),Rd(ke,J)].sort((Dt,Pt)=>Dt.start-Pt.start):et}function ki(w,ae,J){let pe=Ks(),Ge=wO(J),ke=s.getCurrentSourceFile(w);b("getIndentationAtPosition: getCurrentSourceFile: "+(Ks()-pe)),pe=Ks();let Dt=wc.SmartIndenter.getIndentation(ae,ke,Ge);return b("getIndentationAtPosition: computeIndentation : "+(Ks()-pe)),Dt}function Ro(w,ae,J,pe){let Ge=s.getCurrentSourceFile(w);return wc.formatSelection(ae,J,Ge,wc.getFormatContext(wO(pe),e))}function nr(w,ae){return wc.formatDocument(s.getCurrentSourceFile(w),wc.getFormatContext(wO(ae),e))}function qr(w,ae,J,pe){let Ge=s.getCurrentSourceFile(w),ke=wc.getFormatContext(wO(pe),e);if(!Xv(Ge,ae))switch(J){case"{":return wc.formatOnOpeningCurly(ae,Ge,ke);case"}":return wc.formatOnClosingCurly(ae,Ge,ke);case";":return wc.formatOnSemicolon(ae,Ge,ke);case` +`:return wc.formatOnEnter(ae,Ge,ke)}return[]}function xr(w,ae,J,pe,Ge,ke=Pf){N();let Dt=M(w),Pt=dc(ae,J),Kt=wc.getFormatContext(Ge,e);return Zi(h1(pe,Cv,tl),Tn=>(g.throwIfCancellationRequested(),Fu.getFixes({errorCode:Tn,sourceFile:Dt,span:Pt,program:l,host:e,cancellationToken:g,formatContext:Kt,preferences:ke})))}function ln(w,ae,J,pe=Pf){N(),C.assert(w.type==="file");let Ge=M(w.fileName),ke=wc.getFormatContext(J,e);return Fu.getAllFixes({fixId:ae,sourceFile:Ge,program:l,host:e,cancellationToken:g,formatContext:ke,preferences:pe})}function tt(w,ae,J=Pf){N(),C.assert(w.type==="file");let pe=M(w.fileName),Ge=wc.getFormatContext(ae,e),ke=w.mode??(w.skipDestructiveCodeActions?"SortAndCombine":"All");return Mm.organizeImports(pe,Ge,e,l,J,ke)}function zt(w,ae,J,pe=Pf){return lde(H(),w,ae,e,wc.getFormatContext(J,e),pe,R)}function Rn(w,ae){let J=typeof w=="string"?ae:w;return Do(J)?Promise.all(J.map(pe=>ui(pe))):ui(J)}function ui(w){let ae=J=>rl(J,m,I);return C.assertEqual(w.type,"install package"),e.installPackage?e.installPackage({fileName:ae(w.file),packageName:w.packageName}):Promise.reject("Host does not implement `installPackage`")}function bi(w,ae,J,pe){let Ge=pe?wc.getFormatContext(pe,e).options:void 0;return L0.getDocCommentTemplateAtPosition(Qv(e,Ge),s.getCurrentSourceFile(w),ae,J)}function ro(w,ae,J){if(J===60)return!1;let pe=s.getCurrentSourceFile(w);if(II(pe,ae))return!1;if(Sue(pe,ae))return J===123;if(KK(pe,ae))return!1;switch(J){case 39:case 34:case 96:return!Xv(pe,ae)}return!0}function No(w,ae){let J=s.getCurrentSourceFile(w),pe=Ac(ae,J);if(!pe)return;let Ge=pe.kind===32&&w_(pe.parent)?pe.parent.parent:$A(pe)&&cg(pe.parent)?pe.parent:void 0;if(Ge&&ft(Ge))return{newText:``};let ke=pe.kind===32&&dI(pe.parent)?pe.parent.parent:$A(pe)&&X1(pe.parent)?pe.parent:void 0;if(ke&&Nt(ke))return{newText:""}}function _a(w,ae){let J=s.getCurrentSourceFile(w),pe=Ac(ae,J);if(!pe||pe.parent.kind===312)return;let Ge="[a-zA-Z0-9:\\-\\._$]*";if(X1(pe.parent.parent)){let ke=pe.parent.parent.openingFragment,Dt=pe.parent.parent.closingFragment;if($x(ke)||$x(Dt))return;let Pt=ke.getStart(J)+1,Kt=Dt.getStart(J)+2;return ae!==Pt&&ae!==Kt?void 0:{ranges:[{start:Pt,length:0},{start:Kt,length:0}],wordPattern:Ge}}else{let ke=zn(pe.parent,Di=>!!(w_(Di)||K1(Di)));if(!ke)return;C.assert(w_(ke)||K1(ke),"tag should be opening or closing element");let Dt=ke.parent.openingElement,Pt=ke.parent.closingElement,Kt=Dt.tagName.getStart(J),Tn=Dt.tagName.end,On=Pt.tagName.getStart(J),Gn=Pt.tagName.end;return Kt===Dt.getStart(J)||On===Pt.getStart(J)||Tn===Dt.getEnd()||Gn===Pt.getEnd()||!(Kt<=ae&&ae<=Tn||On<=ae&&ae<=Gn)||Dt.tagName.getText(J)!==Pt.tagName.getText(J)?void 0:{ranges:[{start:Kt,length:Tn-Kt},{start:On,length:Gn-On}],wordPattern:Ge}}}function ja(w,ae){return{lineStarts:w.getLineStarts(),firstLine:w.getLineAndCharacterOfPosition(ae.pos).line,lastLine:w.getLineAndCharacterOfPosition(ae.end).line}}function En(w,ae,J){let pe=s.getCurrentSourceFile(w),Ge=[],{lineStarts:ke,firstLine:Dt,lastLine:Pt}=ja(pe,ae),Kt=J||!1,Tn=Number.MAX_VALUE,On=new Map,Gn=new RegExp(/\S/),yi=nW(pe,ke[Dt]),Di=yi?"{/*":"//";for(let or=Dt;or<=Pt;or++){let Vr=pe.text.substring(ke[or],pe.getLineEndOfPosition(ke[or])),Eo=Gn.exec(Vr);Eo&&(Tn=Math.min(Tn,Eo.index),On.set(or.toString(),Eo.index),Vr.substr(Eo.index,Di.length)!==Di&&(Kt=J===void 0||J))}for(let or=Dt;or<=Pt;or++){if(Dt!==Pt&&ke[or]===ae.end)continue;let Vr=On.get(or.toString());Vr!==void 0&&(yi?Ge.push(...wn(w,{pos:ke[or]+Tn,end:pe.getLineEndOfPosition(ke[or])},Kt,yi)):Kt?Ge.push({newText:Di,span:{length:0,start:ke[or]+Tn}}):pe.text.substr(ke[or]+Vr,Di.length)===Di&&Ge.push({newText:"",span:{length:Di.length,start:ke[or]+Vr}}))}return Ge}function wn(w,ae,J,pe){var Ge;let ke=s.getCurrentSourceFile(w),Dt=[],{text:Pt}=ke,Kt=!1,Tn=J||!1,On=[],{pos:Gn}=ae,yi=pe!==void 0?pe:nW(ke,Gn),Di=yi?"{/*":"/*",or=yi?"*/}":"*/",Vr=yi?"\\{\\/\\*":"\\/\\*",Eo=yi?"\\*\\/\\}":"\\*\\/";for(;Gn<=ae.end;){let Mi=Pt.substr(Gn,Di.length)===Di?Di.length:0,Ci=Xv(ke,Gn+Mi);if(Ci)yi&&(Ci.pos--,Ci.end++),On.push(Ci.pos),Ci.kind===3&&On.push(Ci.end),Kt=!0,Gn=Ci.end+1;else{let Kr=Pt.substring(Gn,ae.end).search(`(${Vr})|(${Eo})`);Tn=J!==void 0?J:Tn||!kue(Pt,Gn,Kr===-1?ae.end:Gn+Kr),Gn=Kr===-1?ae.end+1:Gn+Kr+or.length}}if(Tn||!Kt){((Ge=Xv(ke,ae.pos))==null?void 0:Ge.kind)!==2&&Ty(On,ae.pos,tl),Ty(On,ae.end,tl);let Mi=On[0];Pt.substr(Mi,Di.length)!==Di&&Dt.push({newText:Di,span:{length:0,start:Mi}});for(let Ci=1;Ci0?Mi-or.length:0,Kr=Pt.substr(Ci,or.length)===or?or.length:0;Dt.push({newText:"",span:{length:Di.length,start:Mi-Kr}})}return Dt}function Ue(w,ae){let J=s.getCurrentSourceFile(w),{firstLine:pe,lastLine:Ge}=ja(J,ae);return pe===Ge&&ae.pos!==ae.end?wn(w,ae,!0):En(w,ae,!0)}function mt(w,ae){let J=s.getCurrentSourceFile(w),pe=[],{pos:Ge}=ae,{end:ke}=ae;Ge===ke&&(ke+=nW(J,Ge)?2:1);for(let Dt=Ge;Dt<=ke;Dt++){let Pt=Xv(J,Dt);if(Pt){switch(Pt.kind){case 2:pe.push(...En(w,{end:Pt.end,pos:Pt.pos+1},!1));break;case 3:pe.push(...wn(w,{end:Pt.end,pos:Pt.pos+1},!1))}Dt=Pt.end+1}}return pe}function ft({openingElement:w,closingElement:ae,parent:J}){return!S0(w.tagName,ae.tagName)||cg(J)&&S0(w.tagName,J.openingElement.tagName)&&ft(J)}function Nt({closingFragment:w,parent:ae}){return!!(w.flags&262144)||X1(ae)&&Nt(ae)}function le(w,ae,J){let pe=s.getCurrentSourceFile(w),Ge=wc.getRangeOfEnclosingComment(pe,ae);return Ge&&(!J||Ge.kind===3)?ib(Ge):void 0}function We(w,ae){N();let J=M(w);g.throwIfCancellationRequested();let pe=J.text,Ge=[];if(ae.length>0&&!Kt(J.fileName)){let Tn=Dt(),On;for(;On=Tn.exec(pe);){g.throwIfCancellationRequested();let Gn=3;C.assert(On.length===ae.length+Gn);let yi=On[1],Di=On.index+yi.length;if(!Xv(J,Di))continue;let or;for(let Eo=0;Eo"("+ke(Ci.text)+")").join("|")+")",or=/(?:$|\*\/)/.source,Vr=/(?:.*?)/.source,Eo="("+Di+Vr+")",Mi=yi+Eo+or;return new RegExp(Mi,"gim")}function Pt(Tn){return Tn>=97&&Tn<=122||Tn>=65&&Tn<=90||Tn>=48&&Tn<=57}function Kt(Tn){return Tn.includes("/node_modules/")}}function pt(w,ae,J){return N(),L9.getRenameInfo(l,M(w),ae,J||{})}function j(w,ae,J,pe,Ge,ke){let[Dt,Pt]=typeof ae=="number"?[ae,void 0]:[ae.pos,ae.end];return{file:w,startPosition:Dt,endPosition:Pt,program:H(),host:e,formatContext:wc.getFormatContext(pe,e),cancellationToken:g,preferences:J,triggerReason:Ge,kind:ke}}function ot(w,ae,J){return{file:w,program:H(),host:e,span:ae,preferences:J,cancellationToken:g}}function xt(w,ae){return BQ.getSmartSelectionRange(ae,s.getCurrentSourceFile(w))}function Ye(w,ae,J=Pf,pe,Ge,ke){N();let Dt=M(w);return NI.getApplicableRefactors(j(Dt,ae,J,Pf,pe,Ge),ke)}function ht(w,ae,J=Pf){N();let pe=M(w),Ge=C.checkDefined(l.getSourceFiles()),ke=ZC(w),Dt=CO(j(pe,ae,J,Pf)),Pt=Xde(Dt?.all),Kt=Vi(Ge,Tn=>{let On=ZC(Tn.fileName);return!l?.isSourceFileFromExternalLibrary(pe)&&!(pe===M(Tn.fileName)||ke===".ts"&&On===".d.ts"||ke===".d.ts"&&uo(rc(Tn.fileName),"lib.")&&On===".d.ts")&&(ke===On||(ke===".tsx"&&On===".ts"||ke===".jsx"&&On===".js")&&!Pt)?Tn.fileName:void 0});return{newFileName:Kde(pe,l,e,Dt),files:Kt}}function Vt(w,ae,J,pe,Ge,ke=Pf,Dt){N();let Pt=M(w);return NI.getEditsForRefactor(j(Pt,J,ke,ae),pe,Ge,Dt)}function yn(w,ae){return ae===0?{line:0,character:0}:R.toLineColumnOffset(w,ae)}function fn(w,ae){N();let J=PI.resolveCallHierarchyDeclaration(l,zd(M(w),ae));return J&&CX(J,pe=>PI.createCallHierarchyItem(l,pe))}function mn(w,ae){N();let J=M(w),pe=NX(PI.resolveCallHierarchyDeclaration(l,ae===0?J:zd(J,ae)));return pe?PI.getIncomingCalls(l,pe,g):[]}function q(w,ae){N();let J=M(w),pe=NX(PI.resolveCallHierarchyDeclaration(l,ae===0?J:zd(J,ae)));return pe?PI.getOutgoingCalls(l,pe):[]}function Oe(w,ae,J=Pf){N();let pe=M(w);return LQ.provideInlayHints(ot(pe,ae,J))}let Lt={dispose:ue,cleanupSemanticCache:V,getSyntacticDiagnostics:G,getSemanticDiagnostics:ne,getSuggestionDiagnostics:he,getCompilerOptionsDiagnostics:ye,getSyntacticClassifications:_n,getSemanticClassifications:Nn,getEncodedSyntacticClassifications:Qt,getEncodedSemanticClassifications:Xn,getCompletionsAtPosition:$,getCompletionEntryDetails:Y,getCompletionEntrySymbol:oe,getSignatureHelpItems:Bt,getQuickInfoAtPosition:fe,getDefinitionAtPosition:ie,getDefinitionAndBoundSpan:ve,getImplementationAtPosition:He,getTypeDefinitionAtPosition:Le,getReferencesAtPosition:Me,findReferences:At,getFileReferences:Se,getDocumentHighlights:Ee,getNameOrDottedNameSpan:Qe,getBreakpointStatementAtPosition:gt,getNavigateToItems:je,getRenameInfo:pt,getSmartSelectionRange:xt,findRenameLocations:Ce,getNavigationBarItems:nn,getNavigationTree:rn,getOutliningSpans:Yt,getTodoComments:We,getBraceMatchingAtPosition:ho,getIndentationAtPosition:ki,getFormattingEditsForRange:Ro,getFormattingEditsForDocument:nr,getFormattingEditsAfterKeystroke:qr,getDocCommentTemplateAtPosition:bi,isValidBraceCompletionAtPosition:ro,getJsxClosingTagAtPosition:No,getLinkedEditingRangeAtPosition:_a,getSpanOfEnclosingComment:le,getCodeFixesAtPosition:xr,getCombinedCodeFix:ln,applyCodeActionCommand:Rn,organizeImports:tt,getEditsForFileRename:zt,getEmitOutput:at,getNonBoundSourceFile:yt,getProgram:H,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:Z,getApplicableRefactors:Ye,getEditsForRefactor:Vt,getMoveToRefactoringFileSuggestions:ht,toLineColumnOffset:yn,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:fn,provideCallHierarchyIncomingCalls:mn,provideCallHierarchyOutgoingCalls:q,toggleLineComment:En,toggleMultilineComment:wn,commentSelection:Ue,uncommentSelection:mt,provideInlayHints:Oe,getSupportedCodeFixes:LY};switch(o){case 0:break;case 1:Rpe.forEach(w=>Lt[w]=()=>{throw new Error(`LanguageService Operation: ${w} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:CDe.forEach(w=>Lt[w]=()=>{throw new Error(`LanguageService Operation: ${w} not allowed in LanguageServiceMode.Syntactic`)});break;default:C.assertNever(o)}return Lt}function wY(e){return e.nameTable||fXe(e),e.nameTable}function fXe(e){let t=e.nameTable=new Map;e.forEachChild(function r(i){if(Ve(i)&&!BK(i)&&i.escapedText||Qp(i)&&mXe(i)){let o=kC(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Xi(i)){let o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Ho(i,r),Op(i))for(let o of i.jsDoc)Ho(o,r)})}function mXe(e){return Wg(e)||e.parent.kind===283||gXe(e)||YL(e)}function FO(e){let t=_Xe(e);return t&&(wa(t.parent)||Y1(t.parent))?t:void 0}function _Xe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return tj(e.parent.parent)?e.parent.parent:void 0;case 80:return tj(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function hXe(e,t){let r=FO(e);if(r){let i=t.getContextualType(r.parent),o=i&&s9(r,t,i,!1);if(o&&o.length===1)return Ha(o)}return t.getSymbolAtLocation(e)}function s9(e,t,r,i){let o=cO(e.name);if(!o)return et;if(!r.isUnion()){let u=r.getProperty(o);return u?[u]:et}let s=wa(e.parent)||Y1(e.parent)?tr(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=Vi(s,u=>u.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){let u=r.getProperty(o);if(u)return[u]}return!s.length&&!l.length?Vi(r.types,u=>u.getProperty(o)):h1(l,Cv)}function gXe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function Ape(e){if(gu)return Zr(li(va(gu.getExecutingFilePath())),QM(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var Ipe,OY,FY,EDe,xpe,WY,zY,SDe,TDe,ADe,IDe,xDe,RDe,DDe,BY,Rpe,CDe,vXe=A({"src/services/services.ts"(){"use strict";ci(),HRe(),p2e(),xh(),ERe(),_De(),Ipe="0.8",OY=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){C.assert(!Qm(this.pos)&&!Qm(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Vn(this)}getStart(e,t){return this.assertHasRealPosition(),s0(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=uXe(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=vn(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=Zs(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Ho(this,e,t)}},FY=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 Vn(this)}getStart(e,t){return s0(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 this.kind===1&&this.jsDoc||et}getFirstToken(){}getLastToken(){}forEachChild(){}},EDe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return bl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=et,!this.declarations&&fh(this)&&this.links.target&&fh(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=i9([t],e)}else this.documentationComment=i9(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(wy(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=i9(tr(this.declarations,wy),t)),De(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(wv(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=i9(tr(this.declarations,wv),t)),De(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=MY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(wy(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=MY(tr(this.declarations,wy),t)),De(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(wv(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=MY(tr(this.declarations,wv),t)),De(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},xpe=class extends FY{constructor(e,t,r){super(t,r),this.kind=e}},WY=class extends FY{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Sr(this)}},WY.prototype.kind=80,zY=class extends FY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return Sr(this)}},zY.prototype.kind=81,SDe=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!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Wr(this)&3)}isClass(){return!!(Wr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Wr(this)&4)return this.checker.getTypeArguments(this)}},TDe=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){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&aN(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=i9(yA(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=MY(yA(this.declaration),this.checker))}},ADe=class extends OY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return qH(this,e,t)}getLineAndCharacterOfPosition(e){return Es(this,e)}getLineStarts(){return Mg(this)}getPositionOfLineAndCharacter(e,t,r){return c6(Mg(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);let o=this.getFullText();return o[i]===` +`&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=Xp();return this.forEachChild(o),e;function t(s){let l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){let l=m6(s);return l&&(Za(l)&&zr(l.expression)?l.expression.name.text:ic(l)?cO(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:let l=s,u=i(l);if(u){let m=r(u),b=Zs(m);b&&l.parent===b.parent&&l.symbol===b.symbol?l.body&&!b.body&&(m[m.length-1]=l):m.push(l)}Ho(s,o);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(s),Ho(s,o);break;case 169:if(!ei(s,31))break;case 260:case 208:{let m=s;if(ta(m.name)){Ho(m.name,o);break}m.initializer&&o(m.initializer)}case 306:case 172:case 171:t(s);break;case 278:let p=s;p.exportClause&&(Df(p.exportClause)?Ke(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:let g=s.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===274?t(g.namedBindings):Ke(g.namedBindings.elements,o)));break;case 226:Wl(s)!==0&&t(s);default:Ho(s,o)}}}},IDe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return Es(this,e)}},xDe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,p;let g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");let m=vX(e,this.host),b=this.host.getScriptVersion(e),T;if(this.currentFileName!==e){let I={languageVersion:99,impliedNodeFormat:Bw(rl(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||Wv(this.host)),(p=(u=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:u.call(l))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:pk(this.host.getCompilationSettings()),jsDocParsingMode:0};T=a9(e,g,I,b,!0,m)}else if(this.currentFileVersion!==b){let I=g.getChangeRange(this.currentFileScriptSnapshot);T=kY(this.currentSourceFile,g,b,I)}return T&&(this.currentFileVersion=b,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=T),this.currentSourceFile}},RDe={isCancellationRequested:Km,throwIfCancellationRequested:$a},DDe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=lr)==null||e.instant(lr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Ox}},BY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Ks();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=lr)==null||e.instant(lr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Ox}},Rpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],CDe=[...Rpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Aoe(pXe())}});function NDe(e,t,r){let i=[];r=tY(r,i);let o=Do(e)?e:[e],s=Pw(void 0,void 0,k,r,o,t,!0);return s.diagnostics=xo(s.diagnostics,i),s}var yXe=A({"src/services/transform.ts"(){"use strict";ci()}});function bXe(e,t){if(e.isDeclarationFile)return;let r=po(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){let b=Ac(r.pos,e);if(!b||e.getLineAndCharacterOfPosition(b.getEnd()).line!==i)return;r=b}if(r.flags&33554432)return;return m(r);function o(b,T){let I=US(b)?Qr(b.modifiers,Eu):void 0,R=I?La(e.text,I.end):b.getStart(e);return dc(R,(T||b).getEnd())}function s(b,T){return o(b,lE(T,T.parent,e))}function l(b,T){return b&&i===e.getLineAndCharacterOfPosition(b.getStart(e)).line?m(b):m(T)}function u(b,T,I){if(b){let R=b.indexOf(T);if(R>=0){let M=R,N=R+1;for(;M>0&&I(b[M-1]);)M--;for(;N0)return m(ve.declarations[0])}else return m(ie.initializer)}function V(ie){if(ie.initializer)return Z(ie);if(ie.condition)return o(ie.condition);if(ie.incrementor)return o(ie.incrementor)}function ue(ie){let ve=Ke(ie.elements,Le=>Le.kind!==232?Le:void 0);return ve?m(ve):ie.parent.kind===208?o(ie.parent):T(ie.parent)}function G(ie){C.assert(ie.kind!==207&&ie.kind!==206);let ve=ie.kind===209?ie.elements:ie.properties,Le=Ke(ve,He=>He.kind!==232?He:void 0);return Le?m(Le):o(ie.parent.kind===226?ie.parent:ie)}function ne(ie){switch(ie.parent.kind){case 266:let ve=ie.parent;return l(Ac(ie.pos,e,ie.parent),ve.members.length?ve.members[0]:ve.getLastToken(e));case 263:let Le=ie.parent;return l(Ac(ie.pos,e,ie.parent),Le.members.length?Le.members[0]:Le.getLastToken(e));case 269:return l(ie.parent.parent,ie.parent.clauses[0])}return m(ie.parent)}function he(ie){switch(ie.parent.kind){case 268:if(qg(ie.parent.parent)!==1)return;case 266:case 263:return o(ie);case 241:if(D1(ie.parent))return o(ie);case 299:return m(Zs(ie.parent.statements));case 269:let ve=ie.parent,Le=Zs(ve.clauses);return Le?m(Zs(Le.statements)):void 0;case 206:let He=ie.parent;return m(Zs(He.elements)||He);default:if(Yv(ie.parent)){let Ee=ie.parent;return o(Zs(Ee.properties)||Ee)}return m(ie.parent)}}function ye(ie){switch(ie.parent.kind){case 207:let ve=ie.parent;return o(Zs(ve.elements)||ve);default:if(Yv(ie.parent)){let Le=ie.parent;return o(Zs(Le.elements)||Le)}return m(ie.parent)}}function $(ie){return ie.parent.kind===246||ie.parent.kind===213||ie.parent.kind===214?p(ie):ie.parent.kind===217?g(ie):m(ie.parent)}function Y(ie){switch(ie.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return p(ie);default:return m(ie.parent)}}function oe(ie){return ea(ie.parent)||ie.parent.kind===303||ie.parent.kind===169?p(ie):m(ie.parent)}function fe(ie){return ie.parent.kind===216?g(ie):m(ie.parent)}function Ne(ie){return ie.parent.kind===246?s(ie,ie.parent.expression):m(ie.parent)}function me(ie){return ie.parent.kind===250?g(ie):m(ie.parent)}}}var EXe=A({"src/services/breakpoints.ts"(){"use strict";ci()}}),GY={};X(GY,{spanInSourceFileAtLocation:()=>bXe});var SXe=A({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";EXe()}});function TXe(e){return(ws(e)||Zc(e))&&od(e)}function PDe(e){return Jo(e)||Oi(e)}function WO(e){return(ws(e)||Bs(e)||Zc(e))&&PDe(e.parent)&&e===e.parent.initializer&&Ve(e.parent.name)&&(!!(Lv(e.parent)&2)||Jo(e.parent))}function MDe(e){return no(e)||Jl(e)||Sc(e)||ws(e)||Tc(e)||Zc(e)||Il(e)||jl(e)||yh(e)||Zp(e)||vp(e)}function C2(e){return no(e)||Jl(e)&&Ve(e.name)||Sc(e)||Tc(e)||Il(e)||jl(e)||yh(e)||Zp(e)||vp(e)||TXe(e)||WO(e)}function LDe(e){return no(e)?e:od(e)?e.name:WO(e)?e.parent.name:C.checkDefined(e.modifiers&&vn(e.modifiers,kDe))}function kDe(e){return e.kind===90}function wDe(e,t){let r=LDe(t);return r&&e.getSymbolAtLocation(r)}function AXe(e,t){if(no(t))return{text:t.fileName,pos:0,end:0};if((Sc(t)||Tc(t))&&!od(t)){let o=t.modifiers&&vn(t.modifiers,kDe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Il(t)){let o=t.getSourceFile(),s=La(o.text,P_(t).pos),l=s+6,u=e.getTypeChecker(),p=u.getSymbolAtLocation(t.parent);return{text:`${p?`${u.symbolToString(p,t.parent)} `:""}static {}`,pos:s,end:l}}let r=WO(t)?t.parent.name:C.checkDefined(Oo(t),"Expected call hierarchy item to have a name"),i=Ve(r)?Sr(r):Qp(r)?r.text:Za(r)&&Qp(r.expression)?r.expression.text:void 0;if(i===void 0){let o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){let o=Lw();i=bC(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function IXe(e){var t,r,i,o;if(WO(e))return Jo(e.parent)&&pi(e.parent.parent)?Zc(e.parent.parent)?(t=_6(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():k_(e.parent.parent.parent.parent)&&Ve(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=_6(e.parent))==null?void 0:i.getText():(o=Oo(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(k_(e.parent)&&Ve(e.parent.parent.name))return e.parent.parent.name.getText()}}function ODe(e,t){if(t.body)return t;if(Pl(t))return ig(t.parent);if(Sc(t)||jl(t)){let r=wDe(e,t);return r&&r.valueDeclaration&&zs(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function FDe(e,t){let r=wDe(e,t),i;if(r&&r.declarations){let o=DM(r.declarations),s=Ft(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,g)=>ju(s[p].file,s[g].file)||s[p].pos-s[g].pos);let l=Ft(o,p=>r.declarations[p]),u;for(let p of l)C2(p)&&((!u||u.parent!==p.parent||u.end!==p.pos)&&(i=In(i,p)),u=p)}return i}function VY(e,t){return Il(t)?t:zs(t)?ODe(e,t)??FDe(e,t)??t:FDe(e,t)??t}function WDe(e,t){let r=e.getTypeChecker(),i=!1;for(;;){if(C2(t))return VY(r,t);if(MDe(t)){let o=zn(t,C2);return o&&VY(r,o)}if(Wg(t)){if(C2(t.parent))return VY(r,t.parent);if(MDe(t.parent)){let o=zn(t.parent,C2);return o&&VY(r,o)}return PDe(t.parent)&&t.parent.initializer&&WO(t.parent.initializer)?t.parent.initializer:void 0}if(Pl(t))return C2(t.parent)?t.parent:void 0;if(t.kind===126&&Il(t.parent)){t=t.parent;continue}if(Oi(t)&&t.initializer&&WO(t.initializer))return t.initializer;if(!i){let o=r.getSymbolAtLocation(t);if(o&&(o.flags&2097152&&(o=r.getAliasedSymbol(o)),o.valueDeclaration)){i=!0,t=o.valueDeclaration;continue}}return}}function Dpe(e,t){let r=t.getSourceFile(),i=AXe(e,t),o=IXe(t),s=sE(t),l=aP(t),u=dc(La(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=dc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:p}}function xXe(e){return e!==void 0}function RXe(e){if(e.kind===Os.EntryKind.Node){let{node:t}=e;if(OK(t,!0,!0)||due(t,!0,!0)||pue(t,!0,!0)||fue(t,!0,!0)||_2(t)||GK(t)){let r=t.getSourceFile();return{declaration:zn(t,C2)||r,range:nX(t,r)}}}}function zDe(e){return ss(e.declaration)}function DXe(e,t){return{from:e,fromSpans:t}}function CXe(e,t){return DXe(Dpe(e,t[0].declaration),Ft(t,r=>ib(r.range)))}function NXe(e,t,r){if(no(t)||Jl(t)||Il(t))return[];let i=LDe(t),o=tr(Os.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Os.FindReferencesUse.References},RXe),xXe);return o?$D(o,zDe,s=>CXe(e,s)):[]}function PXe(e,t){function r(o){let s=q1(o)?o.tag:sd(o)?o.tagName:ks(o)||Il(o)?o:o.expression,l=WDe(e,s);if(l){let u=nX(s,o.getSourceFile());if(Do(l))for(let p of l)t.push({declaration:p,range:u});else t.push({declaration:l,range:u})}}function i(o){if(o&&!(o.flags&33554432)){if(C2(o)){if(pi(o))for(let s of o.members)s.name&&Za(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(o);return;case 216:case 234:i(o.expression);return;case 260:case 169:i(o.name),i(o.initializer);return;case 213:r(o),i(o.expression),Ke(o.arguments,i);return;case 214:r(o),i(o.expression),Ke(o.arguments,i);return;case 215:r(o),i(o.tag),i(o.template);return;case 286:case 285:r(o),i(o.tagName),i(o.attributes);return;case 170:r(o),i(o.expression);return;case 211:case 212:r(o),Ho(o,i);break;case 238:i(o.expression);return}Zh(o)||Ho(o,i)}}return i}function MXe(e,t){Ke(e.statements,t)}function LXe(e,t){!ei(e,128)&&e.body&&k_(e.body)&&Ke(e.body.statements,t)}function kXe(e,t,r){let i=ODe(e,t);i&&(Ke(i.parameters,r),r(i.body))}function wXe(e,t){t(e.body)}function OXe(e,t){Ke(e.modifiers,t);let r=M1(e);r&&t(r.expression);for(let i of e.members)Cm(i)&&Ke(i.modifiers,t),Jo(i)?t(i.initializer):Pl(i)&&i.body?(Ke(i.parameters,t),t(i.body)):Il(i)&&t(i)}function FXe(e,t){let r=[],i=PXe(e,r);switch(t.kind){case 312:MXe(t,i);break;case 267:LXe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:kXe(e.getTypeChecker(),t,i);break;case 263:case 231:OXe(t,i);break;case 175:wXe(t,i);break;default:C.assertNever(t)}return r}function WXe(e,t){return{to:e,fromSpans:t}}function zXe(e,t){return WXe(Dpe(e,t[0].declaration),Ft(t,r=>ib(r.range)))}function BXe(e,t){return t.flags&33554432||yh(t)?[]:$D(FXe(e,t),zDe,r=>zXe(e,r))}var GXe=A({"src/services/callHierarchy.ts"(){"use strict";ci()}}),PI={};X(PI,{createCallHierarchyItem:()=>Dpe,getIncomingCalls:()=>NXe,getOutgoingCalls:()=>BXe,resolveCallHierarchyDeclaration:()=>WDe});var VXe=A({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";GXe()}}),BDe={};X(BDe,{TokenEncodingConsts:()=>ype,TokenModifier:()=>Epe,TokenType:()=>bpe,getEncodedSemanticClassifications:()=>vpe,getSemanticClassifications:()=>pDe});var jXe=A({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";_De()}}),Cpe={};X(Cpe,{v2020:()=>BDe});var UXe=A({"src/services/_namespaces/ts.classifier.ts"(){"use strict";jXe()}});function i_(e,t,r){return Ppe(e,nT(r),t,void 0,void 0)}function ca(e,t,r,i,o,s){return Ppe(e,nT(r),t,i,nT(o),s)}function Npe(e,t,r,i,o,s){return Ppe(e,nT(r),t,i,o&&nT(o),s)}function Ppe(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function Aa(e){for(let t of e.errorCodes)Mpe=void 0,jY.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)C.assert(!UY.has(t)),UY.set(t,e)}function HXe(){return Mpe??(Mpe=Vo(jY.keys()))}function qXe(e,t){let{errorCodes:r}=e,i=0;for(let s of t)if(wr(r,s.code)&&i++,i>1)break;let o=i<2;return({fixId:s,fixAllDescription:l,...u})=>o?u:{...u,fixId:s,fixAllDescription:l}}function JXe(e){let t=VDe(e),r=jY.get(String(e.errorCode));return Zi(r,i=>Ft(i.getCodeActions(e),qXe(i,t)))}function KXe(e){return UY.get(aa(e.fixId,wo)).getAllCodeActions(e)}function N2(e,t){return{changes:e,commands:t}}function GDe(e,t){return{fileName:e,textChanges:t}}function Ss(e,t,r){let i=[],o=hr.ChangeTracker.with(e,s=>P2(e,t,l=>r(s,l,i)));return N2(o,i.length===0?void 0:i)}function P2(e,t,r){for(let i of VDe(e))wr(t,i.code)&&r(i)}function VDe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...YX(t,e,r)]}var jY,UY,Mpe,XXe=A({"src/services/codeFixProvider.ts"(){"use strict";ci(),jY=Xp(),UY=new Map}});function jDe(e,t,r){let i=jk(r)?k.createAsExpression(r.expression,k.createKeywordTypeNode(159)):k.createTypeAssertion(k.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function UDe(e,t){if(!cr(e))return zn(po(e,t),r=>jk(r)||Nae(r))}var HY,Lpe,YXe=A({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";ci(),xa(),HY="addConvertToUnknownForNonOverlappingTypes",Lpe=[f.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],Aa({errorCodes:Lpe,getCodeActions:function(t){let r=UDe(t.sourceFile,t.span.start);if(r===void 0)return;let i=hr.ChangeTracker.with(t,o=>jDe(o,t.sourceFile,r));return[ca(HY,i,f.Add_unknown_conversion_for_non_overlapping_types,HY,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[HY],getAllCodeActions:e=>Ss(e,Lpe,(t,r)=>{let i=UDe(r.file,r.start);i&&jDe(t,r.file,i)})})}}),$Xe=A({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";ci(),xa(),Aa({errorCodes:[f.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,f.await_using_statements_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,f.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(t){let{sourceFile:r}=t,i=hr.ChangeTracker.with(t,o=>{let s=k.createExportDeclaration(void 0,!1,k.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[i_("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function HDe(e,t,r,i){let o=r(s=>QXe(s,e.sourceFile,t,i));return ca(qY,o,f.Add_async_modifier_to_containing_function,qY,f.Add_all_missing_async_modifiers)}function QXe(e,t,r,i){if(i&&i.has(ss(r)))return;i?.add(ss(r));let o=k.replaceModifiers(sl(r,!0),k.createNodeArray(k.createModifiersFromModifierFlags(Gy(r)|1024)));e.replaceNode(t,r,o)}function qDe(e,t){if(!t)return;let r=po(e,t.start);return zn(r,o=>o.getStart(e)ql(t)?"quit":(Bs(o)||jl(o)||ws(o)||Sc(o))&&b2(t,Rd(o,e)))}function ZXe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Rv(r)&&Rv(i)&&b2({start:r,length:i},e)&&s===t&&!!o&&Et(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var qY,kpe,eYe=A({"src/services/codefixes/addMissingAsync.ts"(){"use strict";ci(),xa(),qY="addMissingAsync",kpe=[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_comparable_to_type_1.code],Aa({fixIds:[qY],errorCodes:kpe,getCodeActions:function(t){let{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=vn(s.getTypeChecker().getDiagnostics(r,o),ZXe(l,i)),p=u&&u.relatedInformation&&vn(u.relatedInformation,b=>b.code===f.Did_you_mean_to_mark_this_function_as_async.code),g=qDe(r,p);return g?[HDe(t,g,b=>hr.ChangeTracker.with(t,b))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,r=new Set;return Ss(e,kpe,(i,o)=>{let s=o.relatedInformation&&vn(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=qDe(t,s);return l?HDe(e,l,p=>(p(i),[]),r):void 0})}})}});function JDe(e,t,r,i,o){let s=DX(e,r);return s&&tYe(e,t,r,i,o)&&YDe(s)?s:void 0}function KDe(e,t,r,i,o,s){let{sourceFile:l,program:u,cancellationToken:p}=e,g=nYe(t,l,p,u,i);if(g){let m=o(b=>{Ke(g.initializers,({expression:T})=>wpe(b,r,l,i,T,s)),s&&g.needsSecondPassForFixAll&&wpe(b,r,l,i,t,s)});return i_("addMissingAwaitToInitializer",m,g.initializers.length===1?[f.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function XDe(e,t,r,i,o,s){let l=o(u=>wpe(u,r,e.sourceFile,i,t,s));return ca(JY,l,f.Add_await,JY,f.Fix_all_expressions_possibly_missing_await)}function tYe(e,t,r,i,o){let l=o.getTypeChecker().getDiagnostics(e,i);return Et(l,({start:u,length:p,relatedInformation:g,code:m})=>Rv(u)&&Rv(p)&&b2({start:u,length:p},r)&&m===t&&!!g&&Et(g,b=>b.code===f.Did_you_forget_to_use_await.code))}function nYe(e,t,r,i,o){let s=rYe(e,o);if(!s)return;let l=s.isCompleteFix,u;for(let p of s.identifiers){let g=o.getSymbolAtLocation(p);if(!g)continue;let m=ai(g.valueDeclaration,Oi),b=m&&ai(m.name,Ve),T=p0(m,243);if(!m||!T||m.type||!m.initializer||T.getSourceFile()!==t||ei(T,32)||!b||!YDe(m.initializer)){l=!1;continue}let I=i.getSemanticDiagnostics(t,r);if(Os.Core.eachSymbolReferenceInFile(b,o,t,M=>p!==M&&!iYe(M,I,t,o))){l=!1;continue}(u||(u=[])).push({expression:m.initializer,declarationSymbol:g})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function rYe(e,t){if(zr(e.parent)&&Ve(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Ve(e))return{identifiers:[e],isCompleteFix:!0};if(_r(e)){let r,i=!0;for(let o of[e.left,e.right]){let s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Ve(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function iYe(e,t,r,i){let o=zr(e.parent)?e.parent.name:_r(e.parent)?e.parent:e,s=vn(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&wr(KY,s.code)||i.getTypeAtLocation(o).flags&1}function YDe(e){return e.flags&65536||!!zn(e,t=>t.parent&&Bs(t.parent)&&t.parent.body===t||Xo(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function wpe(e,t,r,i,o,s){if(Uk(o.parent)&&!o.parent.awaitModifier){let l=i.getTypeAtLocation(o),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){let p=o.parent;e.replaceNode(r,p,k.updateForOfStatement(p,k.createToken(135),p.initializer,p.expression,p.statement));return}}if(_r(o))for(let l of[o.left,o.right]){if(s&&Ve(l)){let g=i.getSymbolAtLocation(l);if(g&&s.has(Ta(g)))continue}let u=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(u)?k.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===Ope&&zr(o.parent)){if(s&&Ve(o.parent.expression)){let l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o.parent.expression,k.createParenthesizedExpression(k.createAwaitExpression(o.parent.expression))),$De(e,o.parent.expression,r)}else if(wr(Fpe,t)&&T_(o.parent)){if(s&&Ve(o)){let l=i.getSymbolAtLocation(o);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o,k.createParenthesizedExpression(k.createAwaitExpression(o))),$De(e,o,r)}else{if(s&&Oi(o.parent)&&Ve(o.parent.name)){let l=i.getSymbolAtLocation(o.parent.name);if(l&&!Av(s,Ta(l)))return}e.replaceNode(r,o,k.createAwaitExpression(o))}}function $De(e,t,r){let i=Ac(t.pos,r);i&&bW(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var JY,Ope,Fpe,KY,oYe=A({"src/services/codefixes/addMissingAwait.ts"(){"use strict";ci(),xa(),JY="addMissingAwait",Ope=f.Property_0_does_not_exist_on_type_1.code,Fpe=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],KY=[f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.Operator_0_cannot_be_applied_to_type_1.code,f.Operator_0_cannot_be_applied_to_types_1_and_2.code,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,f.This_condition_will_always_return_true_since_this_0_is_always_defined.code,f.Type_0_is_not_an_array_type.code,f.Type_0_is_not_an_array_type_or_a_string_type.code,f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Ope,...Fpe],Aa({fixIds:[JY],errorCodes:KY,getCodeActions:function(t){let{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=JDe(r,i,o,s,l);if(!u)return;let p=t.program.getTypeChecker(),g=m=>hr.ChangeTracker.with(t,m);return CM([KDe(t,u,i,p,g),XDe(t,u,i,p,g)])},getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Ss(e,KY,(l,u)=>{let p=JDe(t,u.code,u,i,r);if(!p)return;let g=m=>(m(l),[]);return KDe(e,p,u.code,o,g,s)||XDe(e,p,u.code,o,g,s)})}})}});function QDe(e,t,r,i,o){let s=po(t,r),l=zn(s,g=>Jx(g.parent)?g.parent.initializer===g:aYe(g)?!1:"quit");if(l)return XY(e,l,t,o);let u=s.parent;if(_r(u)&&u.operatorToken.kind===64&&eu(u.parent))return XY(e,s,t,o);if(pd(u)){let g=i.getTypeChecker();return Jn(u.elements,m=>sYe(m,g))?XY(e,u,t,o):void 0}let p=zn(s,g=>eu(g.parent)?!0:lYe(g)?!1:"quit");if(p){let g=i.getTypeChecker();return ZDe(p,g)?XY(e,p,t,o):void 0}}function XY(e,t,r,i){(!i||Av(i,t))&&e.insertModifierBefore(r,87,t)}function aYe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function sYe(e,t){let r=Ve(e)?e:Mc(e,!0)&&Ve(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function lYe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function ZDe(e,t){return _r(e)?e.operatorToken.kind===28?Jn([e.left,e.right],r=>ZDe(r,t)):e.operatorToken.kind===64&&Ve(e.left)&&!t.getSymbolAtLocation(e.left):!1}var YY,Wpe,cYe=A({"src/services/codefixes/addMissingConst.ts"(){"use strict";ci(),xa(),YY="addMissingConst",Wpe=[f.Cannot_find_name_0.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Aa({errorCodes:Wpe,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>QDe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[ca(YY,r,f.Add_const_to_unresolved_variable,YY,f.Add_const_to_all_unresolved_variables)]},fixIds:[YY],getAllCodeActions:e=>{let t=new Set;return Ss(e,Wpe,(r,i)=>QDe(r,i.file,i.start,e.program,t))}})}});function eCe(e,t,r,i){let o=po(t,r);if(!Ve(o))return;let s=o.parent;s.kind===172&&(!i||Av(i,s))&&e.insertModifierBefore(t,138,s)}var $Y,zpe,uYe=A({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";ci(),xa(),$Y="addMissingDeclareProperty",zpe=[f.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],Aa({errorCodes:zpe,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>eCe(i,t.sourceFile,t.span.start));if(r.length>0)return[ca($Y,r,f.Prefix_with_declare,$Y,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[$Y],getAllCodeActions:e=>{let t=new Set;return Ss(e,zpe,(r,i)=>eCe(r,i.file,i.start,t))}})}});function tCe(e,t,r){let i=po(t,r),o=zn(i,Eu);C.assert(!!o,"Expected position to be owned by a decorator.");let s=k.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var QY,Bpe,dYe=A({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";ci(),xa(),QY="addMissingInvocationForDecorator",Bpe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Aa({errorCodes:Bpe,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>tCe(i,t.sourceFile,t.span.start));return[ca(QY,r,f.Call_decorator_expression,QY,f.Add_to_all_uncalled_decorators)]},fixIds:[QY],getAllCodeActions:e=>Ss(e,Bpe,(t,r)=>tCe(t,r.file,r.start))})}});function nCe(e,t,r){let i=po(t,r),o=i.parent;if(!Co(o))return C.fail("Tried to add a parameter name to a non-parameter: "+C.formatSyntaxKind(i.kind));let s=o.parent.parameters.indexOf(o);C.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),C.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),u=k.createTypeReferenceNode(o.name,void 0),p=rCe(t,o);for(;p;)u=k.createArrayTypeNode(u),l=p.getEnd(),p=rCe(t,p);let g=k.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!Gk(u)?k.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,Tf(o.getStart(t),l),g)}function rCe(e,t){let r=lE(t.name,t.parent,e);if(r&&r.kind===23&&U1(r.parent)&&Co(r.parent.parent))return r.parent.parent}var ZY,Gpe,pYe=A({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";ci(),xa(),ZY="addNameToNamelessParameter",Gpe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Aa({errorCodes:Gpe,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>nCe(i,t.sourceFile,t.span.start));return[ca(ZY,r,f.Add_parameter_name,ZY,f.Add_names_to_all_parameters_without_names)]},fixIds:[ZY],getAllCodeActions:e=>Ss(e,Gpe,(t,r)=>nCe(t,r.file,r.start))})}});function fYe(e,t,r){var i,o;let s=iCe(DX(e,t),r);if(!s)return et;let{source:l,target:u}=s,p=mYe(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(g=>Vn(g).fileName.match(/\.d\.ts$/))?et:r.getExactOptionalProperties(p)}function mYe(e,t,r){return zr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function iCe(e,t){var r;if(e){if(_r(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Oi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(la(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!xA(i.valueDeclaration.kind)||!bt(e))return;let o=e.parent.arguments.indexOf(e);if(o===-1)return;let s=i.valueDeclaration.parameters[o].name;if(Ve(s))return{source:e,target:s}}else if(_c(e.parent)&&Ve(e.parent.name)||np(e.parent)){let i=iCe(e.parent.parent,t);if(!i)return;let o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o?.declarations)==null?void 0:r[0];return s?{source:_c(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function _Ye(e,t){for(let r of t){let i=r.valueDeclaration;if(i&&(gp(i)||Jo(i))&&i.type){let o=k.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],k.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var Vpe,oCe,hYe=A({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";ci(),xa(),Vpe="addOptionalPropertyUndefined",oCe=[f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.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],Aa({errorCodes:oCe,getCodeActions(e){let t=e.program.getTypeChecker(),r=fYe(e.sourceFile,e.span,t);if(!r.length)return;let i=hr.ChangeTracker.with(e,o=>_Ye(o,r));return[i_(Vpe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[Vpe]})}});function aCe(e,t){let r=po(e,t);return ai(Co(r.parent)?r.parent.parent:r.parent,sCe)}function sCe(e){return gYe(e)&&lCe(e)}function lCe(e){return zs(e)?e.parameters.some(lCe)||!e.type&&!!rL(e):!e.type&&!!i0(e)}function cCe(e,t,r){if(zs(r)&&(rL(r)||r.parameters.some(i=>!!i0(i)))){if(!r.typeParameters){let o=A3(r);o.length&&e.insertTypeParameters(t,r,o)}let i=Bs(r)&&!bs(r,21,t);i&&e.insertNodeBefore(t,Ha(r.parameters),k.createToken(21));for(let o of r.parameters)if(!o.type){let s=i0(o);s&&e.tryInsertTypeAnnotation(t,o,rt(s,fE,qi))}if(i&&e.insertNodeAfter(t,Ya(r.parameters),k.createToken(22)),!r.type){let o=rL(r);o&&e.tryInsertTypeAnnotation(t,r,rt(o,fE,qi))}}else{let i=C.checkDefined(i0(r),"A JSDocType for this declaration should exist");C.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,rt(i,fE,qi))}}function gYe(e){return zs(e)||e.kind===260||e.kind===171||e.kind===172}function fE(e){switch(e.kind){case 319:case 320:return k.createTypeReferenceNode("any",et);case 323:return yYe(e);case 322:return fE(e.type);case 321:return bYe(e);case 325:return EYe(e);case 324:return SYe(e);case 183:return AYe(e);case 329:return vYe(e);default:let t=An(e,fE,void 0);return fr(t,1),t}}function vYe(e){let t=k.createTypeLiteralNode(Ft(e.jsDocPropertyTags,r=>k.createPropertySignature(void 0,Ve(r.name)?r.name:r.name.right,vk(r)?k.createToken(58):void 0,r.typeExpression&&rt(r.typeExpression.type,fE,qi)||k.createKeywordTypeNode(133))));return fr(t,1),t}function yYe(e){return k.createUnionTypeNode([rt(e.type,fE,qi),k.createTypeReferenceNode("undefined",et)])}function bYe(e){return k.createUnionTypeNode([rt(e.type,fE,qi),k.createTypeReferenceNode("null",et)])}function EYe(e){return k.createArrayTypeNode(rt(e.type,fE,qi))}function SYe(e){return k.createFunctionTypeNode(et,e.parameters.map(TYe),e.type??k.createKeywordTypeNode(133))}function TYe(e){let t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?k.createToken(26):e.dotDotDotToken;return k.createParameterDeclaration(e.modifiers,o,i,e.questionToken,rt(e.type,fE,qi),e.initializer)}function AYe(e){let t=e.typeName,r=e.typeArguments;if(Ve(e.typeName)){if(o3(e))return IYe(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);break}t=k.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=k.createNodeArray([k.createTypeReferenceNode("any",et)]):r=Bn(e.typeArguments,fE,qi)}return k.createTypeReferenceNode(t,r)}function IYe(e){let t=k.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,k.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=k.createTypeLiteralNode([k.createIndexSignature(void 0,[t],e.typeArguments[1])]);return fr(r,1),r}var e$,jpe,xYe=A({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";ci(),xa(),e$="annotateWithTypeFromJSDoc",jpe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],Aa({errorCodes:jpe,getCodeActions(e){let t=aCe(e.sourceFile,e.span.start);if(!t)return;let r=hr.ChangeTracker.with(e,i=>cCe(i,e.sourceFile,t));return[ca(e$,r,f.Annotate_with_type_from_JSDoc,e$,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[e$],getAllCodeActions:e=>Ss(e,jpe,(t,r)=>{let i=aCe(r.file,r.start);i&&cCe(t,r.file,i)})})}});function uCe(e,t,r,i,o,s){let l=i.getSymbolAtLocation(po(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;let u=l.valueDeclaration;if(Sc(u)||ws(u))e.replaceNode(t,u,m(u));else if(Oi(u)){let b=g(u);if(!b)return;let T=u.parent.parent;jc(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,T,b)):e.replaceNode(t,T,b)}function p(b){let T=[];return b.exports&&b.exports.forEach(M=>{if(M.name==="prototype"&&M.declarations){let N=M.declarations[0];if(M.declarations.length===1&&zr(N)&&_r(N.parent)&&N.parent.operatorToken.kind===64&&wa(N.parent.right)){let O=N.parent.right;R(O.symbol,void 0,T)}}else R(M,[k.createToken(126)],T)}),b.members&&b.members.forEach((M,N)=>{var O,H,K,Z;if(N==="constructor"&&M.valueDeclaration){let V=(Z=(K=(H=(O=b.exports)==null?void 0:O.get("prototype"))==null?void 0:H.declarations)==null?void 0:K[0])==null?void 0:Z.parent;V&&_r(V)&&wa(V.right)&&Et(V.right.properties,n$)||e.delete(t,M.valueDeclaration.parent);return}R(M,void 0,T)}),T;function I(M,N){return ks(M)?zr(M)&&n$(M)?!0:ea(N):Jn(M.properties,O=>!!(jl(O)||v6(O)||_c(O)&&ws(O.initializer)&&O.name||n$(O)))}function R(M,N,O){if(!(M.flags&8192)&&!(M.flags&4096))return;let H=M.valueDeclaration,K=H.parent,Z=K.right;if(!I(H,Z)||Et(O,he=>{let ye=Oo(he);return!!(ye&&Ve(ye)&&Sr(ye)===bl(M))}))return;let V=K.parent&&K.parent.kind===244?K.parent:K;if(e.delete(t,V),!Z){O.push(k.createPropertyDeclaration(N,M.name,void 0,void 0,void 0));return}if(ks(H)&&(ws(Z)||Bs(Z))){let he=af(t,o),ye=RYe(H,s,he);ye&&ue(O,Z,ye);return}else if(wa(Z)){Ke(Z.properties,he=>{(jl(he)||v6(he))&&O.push(he),_c(he)&&ws(he.initializer)&&ue(O,he.initializer,he.name),n$(he)});return}else{if(ld(t)||!zr(H))return;let he=k.createPropertyDeclaration(N,H.name,void 0,void 0,Z);S2(K.parent,he,t),O.push(he);return}function ue(he,ye,$){return ws(ye)?G(he,ye,$):ne(he,ye,$)}function G(he,ye,$){let Y=xo(N,t$(ye,134)),oe=k.createMethodDeclaration(Y,void 0,$,void 0,void 0,ye.parameters,void 0,ye.body);S2(K,oe,t),he.push(oe)}function ne(he,ye,$){let Y=ye.body,oe;Y.kind===241?oe=Y:oe=k.createBlock([k.createReturnStatement(Y)]);let fe=xo(N,t$(ye,134)),Ne=k.createMethodDeclaration(fe,void 0,$,void 0,void 0,ye.parameters,void 0,oe);S2(K,Ne,t),he.push(Ne)}}}function g(b){let T=b.initializer;if(!T||!ws(T)||!Ve(b.name))return;let I=p(b.symbol);T.body&&I.unshift(k.createConstructorDeclaration(void 0,T.parameters,T.body));let R=t$(b.parent.parent,95);return k.createClassDeclaration(R,b.name,void 0,void 0,I)}function m(b){let T=p(l);b.body&&T.unshift(k.createConstructorDeclaration(void 0,b.parameters,b.body));let I=t$(b,95);return k.createClassDeclaration(I,b.name,void 0,void 0,T)}}function t$(e,t){return Cm(e)?tr(e.modifiers,r=>r.kind===t):void 0}function n$(e){return e.name?!!(Ve(e.name)&&e.name.text==="constructor"):!1}function RYe(e,t,r){if(zr(e))return e.name;let i=e.argumentExpression;if(hp(i))return i;if(us(i))return $p(i.text,as(t))?k.createIdentifier(i.text):QA(i)?k.createStringLiteral(i.text,r===0):i}var r$,Upe,DYe=A({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";ci(),xa(),r$="convertFunctionToEs6Class",Upe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],Aa({errorCodes:Upe,getCodeActions(e){let t=hr.ChangeTracker.with(e,r=>uCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ca(r$,t,f.Convert_function_to_an_ES2015_class,r$,f.Convert_all_constructor_functions_to_classes)]},fixIds:[r$],getAllCodeActions:e=>Ss(e,Upe,(t,r)=>uCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function dCe(e,t,r,i){let o=po(t,r),s;if(Ve(o)&&Oi(o.parent)&&o.parent.initializer&&zs(o.parent.initializer)?s=o.parent.initializer:s=ai(zp(po(t,r)),ZX),!s)return;let l=new Map,u=cr(s),p=NYe(s,i),g=PYe(s,i,l);if(!$X(g,i))return;let m=g.body&&Xo(g.body)?CYe(g.body,i):et,b={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:u};if(!m.length)return;let T=La(t.text,P_(s).pos);e.insertModifierAt(t,T,134,{suffix:" "});for(let I of m)if(Ho(I,function R(M){if(la(M)){let N=M2(M,M,b,!1);if(MI())return!0;e.replaceNodeWithNodes(t,I,N)}else if(!ea(M)&&(Ho(M,R),MI()))return!0}),MI())return}function CYe(e,t){let r=[];return R1(e,i=>{FW(i,t)&&r.push(i)}),r}function NYe(e,t){if(!e.body)return new Set;let r=new Set;return Ho(e.body,function i(o){zO(o,t,"then")?(r.add(ss(o)),Ke(o.arguments,i)):zO(o,t,"catch")||zO(o,t,"finally")?(r.add(ss(o)),Ho(o,i)):fCe(o,t)?r.add(ss(o)):Ho(o,i)}),r}function zO(e,t,r){if(!la(e))return!1;let o=Qw(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function pCe(e,t){return(Wr(e)&4)!==0&&e.target===t}function i$(e,t,r){if(e.expression.name.escapedText==="finally")return;let i=r.getTypeAtLocation(e.expression.expression);if(pCe(i,r.getPromiseType())||pCe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Nv(e.arguments,0))return Nv(e.typeArguments,0);if(t===Nv(e.arguments,1))return Nv(e.typeArguments,1)}else return Nv(e.typeArguments,0)}function fCe(e,t){return bt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function PYe(e,t,r){let i=new Map,o=Xp();return Ho(e,function s(l){if(!Ve(l)){Ho(l,s);return}let u=t.getSymbolAtLocation(l);if(u){let p=t.getTypeAtLocation(l),g=yCe(p,t),m=Ta(u).toString();if(g&&!Co(l.parent)&&!zs(l.parent)&&!r.has(m)){let b=Xc(g.parameters),T=b?.valueDeclaration&&Co(b.valueDeclaration)&&ai(b.valueDeclaration.name,Ve)||k.createUniqueName("result",16),I=mCe(T,o);r.set(m,I),o.add(T.text,u)}else if(l.parent&&(Co(l.parent)||Oi(l.parent)||Qa(l.parent))){let b=l.text,T=o.get(b);if(T&&T.some(I=>I!==u)){let I=mCe(l,o);i.set(m,I.identifier),r.set(m,I),o.add(b,u)}else{let I=sl(l);r.set(m,yP(I)),o.add(b,u)}}}}),fO(e,!0,s=>{if(Qa(s)&&Ve(s.name)&&om(s.parent)){let l=t.getSymbolAtLocation(s.name),u=l&&i.get(String(Ta(l)));if(u&&u.text!==(s.name||s.propertyName).getText())return k.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,u,s.initializer)}else if(Ve(s)){let l=t.getSymbolAtLocation(s),u=l&&i.get(String(Ta(l)));if(u)return k.createIdentifier(u.text)}})}function mCe(e,t){let r=(t.get(e.text)||et).length,i=r===0?e:k.createIdentifier(e.text+"_"+r);return yP(i)}function MI(){return!c9}function M0(){return c9=!1,et}function M2(e,t,r,i,o){if(zO(t,r.checker,"then"))return kYe(t,Nv(t.arguments,0),Nv(t.arguments,1),r,i,o);if(zO(t,r.checker,"catch"))return gCe(t,Nv(t.arguments,0),r,i,o);if(zO(t,r.checker,"finally"))return LYe(t,Nv(t.arguments,0),r,i,o);if(zr(t))return M2(e,t.expression,r,i,o);let s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(C.assertNode(Nl(t).parent,zr),wYe(e,t,r,i,o)):M0()}function o$({checker:e},t){if(t.kind===106)return!0;if(Ve(t)&&!ol(t)&&Sr(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function MYe(e){let t=k.createUniqueName(e.identifier.text,16);return yP(t)}function _Ce(e,t,r){let i;return r&&!GO(e,t)&&(BO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){let l=MYe(r);t.synthNamesMap.set(s,l)}})):i=yP(k.createUniqueName("result",16),r.types),Kpe(i)),i}function hCe(e,t,r,i,o){let s=[],l;if(i&&!GO(e,t)){l=sl(Kpe(i));let u=i.types,p=t.checker.getUnionType(u,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),m=[k.createVariableDeclaration(l,void 0,g)],b=k.createVariableStatement(void 0,k.createVariableDeclarationList(m,1));s.push(b)}return s.push(r),o&&l&&WYe(o)&&s.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(sl(TCe(o)),void 0,void 0,l)],2))),s}function LYe(e,t,r,i,o){if(!t||o$(r,t))return M2(e,e.expression.expression,r,i,o);let s=_Ce(e,r,o),l=M2(e,e.expression.expression,r,!0,s);if(MI())return M0();let u=qpe(t,i,void 0,void 0,e,r);if(MI())return M0();let p=k.createBlock(l),g=k.createBlock(u),m=k.createTryStatement(p,void 0,g);return hCe(e,r,m,s,o)}function gCe(e,t,r,i,o){if(!t||o$(r,t))return M2(e,e.expression.expression,r,i,o);let s=ECe(t,r),l=_Ce(e,r,o),u=M2(e,e.expression.expression,r,!0,l);if(MI())return M0();let p=qpe(t,i,l,s,e,r);if(MI())return M0();let g=k.createBlock(u),m=k.createCatchClause(s&&sl(l9(s)),k.createBlock(p)),b=k.createTryStatement(g,m,void 0);return hCe(e,r,b,l,o)}function kYe(e,t,r,i,o,s){if(!t||o$(i,t))return gCe(e,r,i,o,s);if(r&&!o$(i,r))return M0();let l=ECe(t,i),u=M2(e.expression.expression,e.expression.expression,i,!0,l);if(MI())return M0();let p=qpe(t,o,s,l,e,i);return MI()?M0():xo(u,p)}function wYe(e,t,r,i,o){if(GO(e,r)){let s=sl(t);return i&&(s=k.createAwaitExpression(s)),[k.createReturnStatement(s)]}return a$(o,k.createAwaitExpression(t),void 0)}function a$(e,t,r){return!e||SCe(e)?[k.createExpressionStatement(t)]:BO(e)&&e.hasBeenDeclared?[k.createExpressionStatement(k.createAssignment(sl(Jpe(e)),t))]:[k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(sl(l9(e)),void 0,r,t)],2))]}function Hpe(e,t){if(t&&e){let r=k.createUniqueName("result",16);return[...a$(yP(r),e,t),k.createReturnStatement(r)]}return[k.createReturnStatement(e)]}function qpe(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;let u=k.createCallExpression(sl(e),void 0,BO(i)?[Jpe(i)]:[]);if(GO(o,s))return Hpe(u,i$(o,e,s.checker));let p=s.checker.getTypeAtLocation(e),g=s.checker.getSignaturesOfType(p,0);if(!g.length)return M0();let m=g[0].getReturnType(),b=a$(r,k.createAwaitExpression(u),i$(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(m)||m),b;case 218:case 219:{let T=e.body,I=(l=yCe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Xo(T)){let R=[],M=!1;for(let N of T.statements)if(Rm(N))if(M=!0,FW(N,s.checker))R=R.concat(bCe(s,N,t,r));else{let O=I&&N.expression?vCe(s.checker,I,N.expression):N.expression;R.push(...Hpe(O,i$(o,e,s.checker)))}else{if(t&&R1(N,Dv))return M0();R.push(N)}return GO(o,s)?R.map(N=>sl(N)):OYe(R,r,s,M)}else{let R=QX(T,s.checker)?bCe(s,k.createReturnStatement(T),t,r):et;if(R.length>0)return R;if(I){let M=vCe(s.checker,I,T);if(GO(o,s))return Hpe(M,i$(o,e,s.checker));{let N=a$(r,M,void 0);return r&&r.types.push(s.checker.getAwaitedType(I)||I),N}}else return M0()}}default:return M0()}return et}function vCe(e,t,r){let i=sl(r);return e.getPromisedTypeOfPromise(t)?k.createAwaitExpression(i):i}function yCe(e,t){let r=t.getSignaturesOfType(e,0);return Zs(r)}function OYe(e,t,r,i){let o=[];for(let s of e)if(Rm(s)){if(s.expression){let l=fCe(s.expression,r.checker)?k.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(k.createExpressionStatement(l)):BO(t)&&t.hasBeenDeclared?o.push(k.createExpressionStatement(k.createAssignment(Jpe(t),l))):o.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(l9(t),void 0,void 0,l)],2)))}}else o.push(sl(s));return!i&&t!==void 0&&o.push(k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(l9(t),void 0,void 0,k.createIdentifier("undefined"))],2))),o}function bCe(e,t,r,i){let o=[];return Ho(t,function s(l){if(la(l)){let u=M2(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else ea(l)||Ho(l,s)}),o}function ECe(e,t){let r=[],i;if(zs(e)){if(e.parameters.length>0){let p=e.parameters[0].name;i=o(p)}}else Ve(e)?i=s(e):zr(e)&&Ve(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(p){if(Ve(p))return s(p);let g=Zi(p.elements,m=>Vc(m)?[]:[o(m.name)]);return FYe(p,g)}function s(p){let g=u(p),m=l(g);return m&&t.synthNamesMap.get(Ta(m).toString())||yP(p,r)}function l(p){var g;return((g=ai(p,A_))==null?void 0:g.symbol)??t.checker.getSymbolAtLocation(p)}function u(p){return p.original?p.original:p}}function SCe(e){return e?BO(e)?!e.identifier.text:Jn(e.elements,SCe):!0}function yP(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function FYe(e,t=et,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Jpe(e){return e.hasBeenReferenced=!0,e.identifier}function l9(e){return BO(e)?Kpe(e):TCe(e)}function TCe(e){for(let t of e.elements)l9(t);return e.bindingPattern}function Kpe(e){return e.hasBeenDeclared=!0,e.identifier}function BO(e){return e.kind===0}function WYe(e){return e.kind===1}function GO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(ss(e.original))}var s$,Xpe,c9,zYe=A({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";ci(),xa(),s$="convertToAsyncFunction",Xpe=[f.This_may_be_converted_to_an_async_function.code],c9=!0,Aa({errorCodes:Xpe,getCodeActions(e){c9=!0;let t=hr.ChangeTracker.with(e,r=>dCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return c9?[ca(s$,t,f.Convert_to_async_function,s$,f.Convert_all_to_async_functions)]:[]},fixIds:[s$],getAllCodeActions:e=>Ss(e,Xpe,(t,r)=>dCe(t,r.file,r.start,e.program.getTypeChecker()))})}});function BYe(e,t,r,i,o){var s;for(let l of e.imports){let u=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;let p=CC(l);switch(p.kind){case 271:i.replaceNode(e,p,$v(p.name,void 0,l,o));break;case 213:Sd(p,!1)&&i.replaceNode(e,p,k.createPropertyAccessExpression(sl(p),"default"));break}}}function GYe(e,t,r,i,o){let s={original:e$e(e),additional:new Set},l=VYe(e,t,s);jYe(e,l,r);let u=!1,p;for(let g of tr(e.statements,Ml)){let m=ICe(e,g,r,t,s,i,o);m&&L6(m,p??(p=new Map))}for(let g of tr(e.statements,m=>!Ml(m))){let m=UYe(e,g,t,r,s,i,l,p,o);u=u||m}return p?.forEach((g,m)=>{r.replaceNode(e,m,g)}),u}function VYe(e,t,r){let i=new Map;return ACe(e,o=>{let{text:s}=o.name;!i.has(s)&&(Uj(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,l$(`_${s}`,r))}),i}function jYe(e,t,r){ACe(e,(i,o)=>{if(o)return;let{text:s}=i.name;r.replaceNode(e,i,k.createIdentifier(t.get(s)||s))})}function ACe(e,t){e.forEachChild(function r(i){if(zr(i)&&tE(e,i.expression)&&Ve(i.name)){let{parent:o}=i;t(i,_r(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function UYe(e,t,r,i,o,s,l,u,p){switch(t.kind){case 243:return ICe(e,t,i,r,o,s,p),!1;case 244:{let{expression:g}=t;switch(g.kind){case 213:return Sd(g,!0)&&i.replaceNode(e,t,$v(void 0,void 0,g.arguments[0],p)),!1;case 226:{let{operatorToken:m}=g;return m.kind===64&&qYe(e,r,g,i,l,u)}}}default:return!1}}function ICe(e,t,r,i,o,s,l){let{declarationList:u}=t,p=!1,g=Ft(u.declarations,m=>{let{name:b,initializer:T}=m;if(T){if(tE(e,T))return p=!0,bP([]);if(Sd(T,!0))return p=!0,QYe(b,T.arguments[0],i,o,s,l);if(zr(T)&&Sd(T.expression,!0))return p=!0,HYe(b,T.name.text,T.expression.arguments[0],o,l)}return bP([k.createVariableStatement(void 0,k.createVariableDeclarationList([m],u.flags))])});if(p){r.replaceNodeWithNodes(e,t,Zi(g,b=>b.newImports));let m;return Ke(g,b=>{b.useSitesToUnqualify&&L6(b.useSitesToUnqualify,m??(m=new Map))}),m}}function HYe(e,t,r,i,o){switch(e.kind){case 206:case 207:{let s=l$(t,i);return bP([CCe(s,t,r,o),c$(void 0,e,k.createIdentifier(s))])}case 80:return bP([CCe(e.text,t,r,o)]);default:return C.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function qYe(e,t,r,i,o,s){let{left:l,right:u}=r;if(!zr(l))return!1;if(tE(e,l))if(tE(e,u))i.delete(e,r.parent);else{let p=wa(u)?JYe(u,s):Sd(u,!0)?XYe(u.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,Tf(l.getStart(e),u.pos),"export default"),!0)}else tE(e,l.expression)&&KYe(e,r,i,o);return!1}function JYe(e,t){let r=fA(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Ve(i.name)?$Ye(i.name.text,i.initializer,t):void 0;case 174:return Ve(i.name)?DCe(i.name.text,[k.createToken(95)],i,t):void 0;default:C.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function KYe(e,t,r,i){let{text:o}=t.left.name,s=i.get(o);if(s!==void 0){let l=[c$(void 0,s,t.right),Qpe([k.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else YYe(t,e,r)}function XYe(e,t){let r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:z8;return o.has("export=")?[[Ype(r)],!0]:o.has("default")?o.size>1?[[xCe(r),Ype(r)],!0]:[[Ype(r)],!0]:[[xCe(r)],!1]}function xCe(e){return Qpe(void 0,e)}function Ype(e){return Qpe([k.createExportSpecifier(!1,void 0,"default")],e)}function YYe({left:e,right:t,parent:r},i,o){let s=e.name.text;if((ws(t)||Bs(t)||Zc(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},k.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);let l=bs(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,bs(e,25,i),[k.createToken(95),k.createToken(87)],{joiner:" ",suffix:" "})}function $Ye(e,t,r){let i=[k.createToken(95)];switch(t.kind){case 218:{let{name:s}=t;if(s&&s.text!==e)return o()}case 219:return DCe(e,i,t,r);case 231:return n$e(e,i,t,r);default:return o()}function o(){return c$(i,k.createIdentifier(e),$pe(t,r))}}function $pe(e,t){if(!t||!Et(Vo(t.keys()),i=>of(e,i)))return e;return Do(e)?bX(e,!0,r):fO(e,!0,r);function r(i){if(i.kind===211){let o=t.get(i);return t.delete(i),o}}}function QYe(e,t,r,i,o,s){switch(e.kind){case 206:{let l=fA(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Ve(u.propertyName)||!Ve(u.name)?void 0:NCe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return bP([$v(void 0,l,t,s)])}case 207:{let l=l$(dfe(t.text,o),i);return bP([$v(k.createIdentifier(l),void 0,t,s),c$(void 0,sl(e),k.createIdentifier(l))])}case 80:return ZYe(e,t,r,i,s);default:return C.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function ZYe(e,t,r,i,o){let s=r.getSymbolAtLocation(e),l=new Map,u=!1,p;for(let m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==s||m===e)continue;let{parent:b}=m;if(zr(b)){let{name:{text:T}}=b;if(T==="default"){u=!0;let I=m.getText();(p??(p=new Map)).set(b,k.createIdentifier(I))}else{C.assert(b.expression===m,"Didn't expect expression === use");let I=l.get(T);I===void 0&&(I=l$(T,i),l.set(T,I)),(p??(p=new Map)).set(b,k.createIdentifier(I))}}else u=!0}let g=l.size===0?void 0:Vo(ra(l.entries(),([m,b])=>k.createImportSpecifier(!1,m===b?void 0:k.createIdentifier(m),k.createIdentifier(b))));return g||(u=!0),bP([$v(u?sl(e):void 0,g,t,o)],p)}function l$(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function e$e(e){let t=Xp();return RCe(e,r=>t.add(r.text,r)),t}function RCe(e,t){Ve(e)&&t$e(e)&&t(e),e.forEachChild(r=>RCe(r,t))}function t$e(e){let{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function DCe(e,t,r,i){return k.createFunctionDeclaration(xo(t,cE(r.modifiers)),sl(r.asteriskToken),e,cE(r.typeParameters),cE(r.parameters),sl(r.type),k.converters.convertToFunctionBlock($pe(r.body,i)))}function n$e(e,t,r,i){return k.createClassDeclaration(xo(t,cE(r.modifiers)),e,cE(r.typeParameters),cE(r.heritageClauses),$pe(r.members,i))}function CCe(e,t,r,i){return t==="default"?$v(k.createIdentifier(e),void 0,r,i):$v(void 0,[NCe(t,e)],r,i)}function NCe(e,t){return k.createImportSpecifier(!1,e!==void 0&&e!==t?k.createIdentifier(e):void 0,k.createIdentifier(t))}function c$(e,t,r){return k.createVariableStatement(e,k.createVariableDeclarationList([k.createVariableDeclaration(t,void 0,void 0,r)],2))}function Qpe(e,t){return k.createExportDeclaration(void 0,!1,e&&k.createNamedExports(e),t===void 0?void 0:k.createStringLiteral(t))}function bP(e,t){return{newImports:e,useSitesToUnqualify:t}}var r$e=A({"src/services/codefixes/convertToEsModule.ts"(){"use strict";ci(),xa(),Aa({errorCodes:[f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:r,preferences:i}=e,o=hr.ChangeTracker.with(e,s=>{if(GYe(t,r.getTypeChecker(),s,as(r.getCompilerOptions()),af(t,i)))for(let u of r.getSourceFiles())BYe(u,t,r,s,af(u,i))});return[i_("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function PCe(e,t){let r=zn(po(e,t),Ad);return C.assert(!!r,"Expected position to be owned by a qualified name."),Ve(r.left)?r:void 0}function MCe(e,t,r){let i=r.right.text,o=k.createIndexedAccessTypeNode(k.createTypeReferenceNode(r.left,void 0),k.createLiteralTypeNode(k.createStringLiteral(i)));e.replaceNode(t,r,o)}var u$,Zpe,i$e=A({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";ci(),xa(),u$="correctQualifiedNameToIndexedAccessType",Zpe=[f.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],Aa({errorCodes:Zpe,getCodeActions(e){let t=PCe(e.sourceFile,e.span.start);if(!t)return;let r=hr.ChangeTracker.with(e,o=>MCe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ca(u$,r,[f.Rewrite_as_the_indexed_access_type_0,i],u$,f.Rewrite_all_as_indexed_access_types)]},fixIds:[u$],getAllCodeActions:e=>Ss(e,Zpe,(t,r)=>{let i=PCe(r.file,r.start);i&&MCe(t,r.file,i)})})}});function LCe(e,t){return ai(po(t,e.start).parent,Ju)}function kCe(e,t,r){if(!t)return;let i=t.parent,o=i.parent,s=o$e(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{let l=k.updateExportDeclaration(o,o.modifiers,!1,k.updateNamedExports(i,tr(i.elements,p=>!wr(s,p))),o.moduleSpecifier,void 0),u=k.createExportDeclaration(void 0,!0,k.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:hr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:hr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,u)}}function o$e(e,t){let r=e.parent;if(r.elements.length===1)return r.elements;let i=Zue(Rd(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return tr(r.elements,o=>{var s;return o===e||((s=Que(o,i))==null?void 0:s.code)===d$[0]})}var d$,p$,a$e=A({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";ci(),xa(),d$=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],p$="convertToTypeOnlyExport",Aa({errorCodes:d$,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>kCe(i,LCe(t.span,t.sourceFile),t));if(r.length)return[ca(p$,r,f.Convert_to_type_only_export,p$,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[p$],getAllCodeActions:function(t){let r=new Map;return Ss(t,d$,(i,o)=>{let s=LCe(o,t.sourceFile);s&&xm(r,ss(s.parent.parent))&&kCe(i,s,t)})}})}});function wCe(e,t){let{parent:r}=po(e,t);return tp(r)||Lc(r)&&r.importClause?r:void 0}function OCe(e,t,r){if(e.parent.parent.name)return!1;let i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;let o=r.getTypeChecker();for(let s of i)if(Os.Core.eachSymbolReferenceInFile(s.name,o,t,u=>!_0(u)))return!1;return!0}function u9(e,t,r){var i;if(tp(r))e.replaceNode(t,r,k.updateImportSpecifier(r,!0,r.propertyName,r.name));else{let o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[k.createImportDeclaration(cE(r.modifiers,!0),k.createImportClause(!0,sl(o.name,!0),void 0),sl(r.moduleSpecifier,!0),sl(r.attributes,!0)),k.createImportDeclaration(cE(r.modifiers,!0),k.createImportClause(!0,void 0,sl(o.namedBindings,!0)),sl(r.moduleSpecifier,!0),sl(r.attributes,!0))]);else{let s=((i=o.namedBindings)==null?void 0:i.kind)===275?k.updateNamedImports(o.namedBindings,Io(o.namedBindings.elements,u=>k.updateImportSpecifier(u,!1,u.propertyName,u.name))):o.namedBindings,l=k.updateImportDeclaration(r,r.modifiers,k.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var efe,d9,s$e=A({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";ci(),xa(),efe=[f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],d9="convertToTypeOnlyImport",Aa({errorCodes:efe,getCodeActions:function(t){var r;let i=wCe(t.sourceFile,t.span.start);if(i){let o=hr.ChangeTracker.with(t,u=>u9(u,t.sourceFile,i)),s=i.kind===276&&OCe(i,t.sourceFile,t.program)?hr.ChangeTracker.with(t,u=>u9(u,t.sourceFile,i.parent.parent.parent)):void 0,l=ca(d9,o,i.kind===276?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,d9,f.Fix_all_with_type_only_imports);return Et(s)?[i_(d9,s,f.Use_import_type),l]:[l]}},fixIds:[d9],getAllCodeActions:function(t){let r=new Set;return Ss(t,efe,(i,o)=>{let s=wCe(o.file,o.start);s?.kind===272&&!r.has(s)?(u9(i,o.file,s),r.add(s)):s?.kind===276&&!r.has(s.parent.parent.parent)&&OCe(s,o.file,t.program)?(u9(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===276&&u9(i,o.file,s)})}})}});function FCe(e,t,r,i,o=!1){if(!VS(t))return;let s=c$e(t);if(!s)return;let l=t.parent,{leftSibling:u,rightSibling:p}=l$e(t),g=l.getStart(),m="";!u&&l.comment&&(g=WCe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),u&&(o&&VS(u)?(g=t.getStart(),m=""):(g=WCe(l,u.getStart(),t.getStart()),m=`${i} */${i}`));let b=l.getEnd(),T="";p&&(o&&VS(p)?(b=p.getStart(),T=`${i}${i}`):(b=p.getStart(),T=`${i}/**${i} * `)),e.replaceRange(r,{pos:g,end:b},s,{prefix:m,suffix:T})}function l$e(e){let t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),o=i>0?t.getChildAt(i-1):void 0,s=i0;o--)if(!/[*/\s]/g.test(i.substring(o-1,o)))return t+o;return r}function c$e(e){var t;let{typeExpression:r}=e;if(!r)return;let i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return u$e(i,r);if(r.kind===316)return d$e(i,r)}}function u$e(e,t){let r=zCe(t);if(Et(r))return k.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function d$e(e,t){let r=sl(t.type);if(r)return k.createTypeAliasDeclaration(void 0,k.createIdentifier(e),void 0,r)}function zCe(e){let t=e.jsDocPropertyTags;return Et(t)?Vi(t,i=>{var o;let s=p$e(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed,p;if(l&&GS(l)){let g=zCe(l);p=k.createTypeLiteralNode(g)}else l&&(p=sl(l));if(p&&s){let g=u?k.createToken(58):void 0;return k.createPropertySignature(void 0,s,g,p)}}):void 0}function p$e(e){return e.name.kind===80?e.name.text:e.name.right.text}function f$e(e){return Op(e)?Zi(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>VS(i))}):[]}var f$,tfe,m$e=A({"src/services/codefixes/convertTypedefToType.ts"(){"use strict";ci(),xa(),f$="convertTypedefToType",tfe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Aa({fixIds:[f$],errorCodes:tfe,getCodeActions(e){let t=Qv(e.host,e.formatContext.options),r=po(e.sourceFile,e.span.start);if(!r)return;let i=hr.ChangeTracker.with(e,o=>FCe(o,r,e.sourceFile,t));if(i.length>0)return[ca(f$,i,f.Convert_typedef_to_TypeScript_type,f$,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Ss(e,tfe,(t,r)=>{let i=Qv(e.host,e.formatContext.options),o=po(r.file,r.start);o&&FCe(t,o,r.file,i,!0)})})}});function BCe(e,t){let r=po(e,t);if(Ve(r)){let i=aa(r.parent.parent,gp),o=r.getText(e);return{container:aa(i.parent,yp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function GCe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,k.createMappedTypeNode(void 0,k.createTypeParameterDeclaration(void 0,s,k.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var m$,nfe,_$e=A({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";ci(),xa(),m$="convertLiteralTypeToMappedType",nfe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Aa({errorCodes:nfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=BCe(r,i.start);if(!o)return;let{name:s,constraint:l}=o,u=hr.ChangeTracker.with(t,p=>GCe(p,r,o));return[ca(m$,u,[f.Convert_0_to_1_in_0,l,s],m$,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[m$],getAllCodeActions:e=>Ss(e,nfe,(t,r)=>{let i=BCe(r.file,r.start);i&&GCe(t,r.file,i)})})}});function VCe(e,t){return C.checkDefined(su(po(e,t)),"There should be a containing class")}function jCe(e){return!e.valueDeclaration||!(cd(e.valueDeclaration)&2)}function UCe(e,t,r,i,o,s){let l=e.program.getTypeChecker(),u=h$e(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(w8(jCe,N=>!u.has(N.escapedName))),b=l.getTypeAtLocation(i),T=vn(i.members,N=>Pl(N));b.getNumberIndexType()||R(p,1),b.getStringIndexType()||R(p,0);let I=LI(r,e.program,s,e.host);ume(i,m,r,e,s,I,N=>M(r,i,N)),I.writeFixes(o);function R(N,O){let H=l.getIndexInfoOfType(N,O);H&&M(r,i,l.indexInfoToIndexSignatureDeclaration(H,i,void 0,L2(e)))}function M(N,O,H){T?o.insertNodeAfter(N,T,H):o.insertMemberAtStart(N,O,H)}}function h$e(e,t){let r=x_(e);if(!r)return ua();let i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return ua(o.filter(jCe))}var rfe,_$,g$e=A({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";ci(),xa(),rfe=[f.Class_0_incorrectly_implements_interface_1.code,f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],_$="fixClassIncorrectlyImplementsInterface",Aa({errorCodes:rfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=VCe(t,r.start);return Vi(_R(i),o=>{let s=hr.ChangeTracker.with(e,l=>UCe(e,o,t,i,l,e.preferences));return s.length===0?void 0:ca(_$,s,[f.Implement_interface_0,o.getText(t)],_$,f.Implement_all_unimplemented_interfaces)})},fixIds:[_$],getAllCodeActions(e){let t=new Map;return Ss(e,rfe,(r,i)=>{let o=VCe(i.file,i.start);if(xm(t,ss(o)))for(let s of _R(o))UCe(e,s,i.file,o,r,e.preferences)})}})}});function LI(e,t,r,i,o){return HCe(e,t,!1,r,i,o)}function HCe(e,t,r,i,o,s){let l=t.getCompilerOptions(),u=[],p=[],g=new Map,m=new Map;return{addImportFromDiagnostic:b,addImportFromExportedSymbol:T,writeFixes:R,hasFixes:M};function b(N,O){let H=$Ce(O,N.code,N.start,r);!H||!H.length||I(Ha(H))}function T(N,O){let H=C.checkDefined(N.parent),K=xW(N,as(l)),Z=t.getTypeChecker(),V=Z.getMergedSymbol(bu(N,Z)),ue=KCe(e,V,K,H,!1,t,o,i,s),G=g$(e,t),ne=qCe(e,C.checkDefined(ue),t,void 0,!!O,G,o,i);ne&&I({fix:ne,symbolName:K,errorIdentifierText:void 0})}function I(N){var O,H;let{fix:K,symbolName:Z}=N;switch(K.kind){case 0:u.push(K);break;case 1:p.push(K);break;case 2:{let{importClauseOrBindingPattern:ne,importKind:he,addAsTypeOnly:ye}=K,$=String(ss(ne)),Y=g.get($);if(Y||g.set($,Y={importClauseOrBindingPattern:ne,defaultImport:void 0,namedImports:new Map}),he===0){let oe=Y?.namedImports.get(Z);Y.namedImports.set(Z,V(oe,ye))}else C.assert(Y.defaultImport===void 0||Y.defaultImport.name===Z,"(Add to Existing) Default import should be missing or match symbolName"),Y.defaultImport={name:Z,addAsTypeOnly:V((O=Y.defaultImport)==null?void 0:O.addAsTypeOnly,ye)};break}case 3:{let{moduleSpecifier:ne,importKind:he,useRequire:ye,addAsTypeOnly:$}=K,Y=ue(ne,he,ye,$);switch(C.assert(Y.useRequire===ye,"(Add new) Tried to add an `import` and a `require` for the same module"),he){case 1:C.assert(Y.defaultImport===void 0||Y.defaultImport.name===Z,"(Add new) Default import should be missing or match symbolName"),Y.defaultImport={name:Z,addAsTypeOnly:V((H=Y.defaultImport)==null?void 0:H.addAsTypeOnly,$)};break;case 0:let oe=(Y.namedImports||(Y.namedImports=new Map)).get(Z);Y.namedImports.set(Z,V(oe,$));break;case 3:case 2:C.assert(Y.namespaceLikeImport===void 0||Y.namespaceLikeImport.name===Z,"Namespacelike import shoudl be missing or match symbolName"),Y.namespaceLikeImport={importKind:he,name:Z,addAsTypeOnly:$};break}break}case 4:break;default:C.assertNever(K,`fix wasn't never - got kind ${K.kind}`)}function V(ne,he){return Math.max(ne??0,he)}function ue(ne,he,ye,$){let Y=G(ne,!0),oe=G(ne,!1),fe=m.get(Y),Ne=m.get(oe),me={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ye};return he===1&&$===2?fe||(m.set(Y,me),me):$===1&&(fe||Ne)?fe||Ne:Ne||(m.set(oe,me),me)}function G(ne,he){return`${he?1:0}|${ne}`}}function R(N,O){let H;e.imports.length===0&&O!==void 0?H=O:H=af(e,i);for(let Z of u)lfe(N,e,Z);for(let Z of p)iNe(N,e,Z,H);g.forEach(({importClauseOrBindingPattern:Z,defaultImport:V,namedImports:ue})=>{rNe(N,e,Z,V,Vo(ue.entries(),([G,ne])=>({addAsTypeOnly:ne,name:G})),i)});let K;m.forEach(({useRequire:Z,defaultImport:V,namedImports:ue,namespaceLikeImport:G},ne)=>{let he=ne.slice(2),$=(Z?sNe:aNe)(he,H,V,ue&&Vo(ue.entries(),([Y,oe])=>({addAsTypeOnly:oe,name:Y})),G,l,i);K=Dx(K,$)}),K&&lP(N,e,K,!0,i)}function M(){return u.length>0||p.length>0||g.size>0||m.size>0}}function v$e(e,t,r,i){let o=_P(e,i,r),s=XCe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(u,p,g,m){let{fixes:b,computedWithoutCacheCount:T}=h$(u,p,g,!1,t,e,r,i,s,m),I=QCe(b,e,t,o,r);return I&&{...I,computedWithoutCacheCount:T}}}function y$e(e,t,r,i,o,s,l,u,p,g,m,b){let T;r?(T=bO(i,l,u,m,b).get(i.path,r),C.assertIsDefined(T,"Some exportInfo should match the specified exportMapKey")):(T=IV(em(t.name))?[E$e(e,o,t,u,l)]:KCe(i,e,o,t,s,u,l,m,b),C.assertIsDefined(T,"Some exportInfo should match the specified symbol / moduleSymbol"));let I=g$(i,u),R=_0(po(i,g)),M=C.checkDefined(qCe(i,T,u,g,R,I,l,m));return{moduleSpecifier:M.moduleSpecifier,codeAction:JCe(sfe({host:l,formatContext:p,preferences:m},i,o,M,!1,u,m))}}function b$e(e,t,r,i,o,s){let l=r.getCompilerOptions(),u=nG(afe(e,r.getTypeChecker(),t,l)),p=tNe(e,t,u,r),g=u!==t.text;return p&&JCe(sfe({host:i,formatContext:o,preferences:s},e,u,p,g,r,s))}function qCe(e,t,r,i,o,s,l,u){let p=_P(e,u,l);return QCe(h$(t,i,o,s,r,e,l,u).fixes,e,r,p,l)}function JCe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function KCe(e,t,r,i,o,s,l,u,p){let g=YCe(s,l);return bO(e,l,s,u,p).search(e.path,o,m=>m===r,m=>{if(bu(m[0].symbol,g(m[0].isFromPackageJson))===t&&m.some(b=>b.moduleSymbol===i||b.symbol.parent===i))return m})}function E$e(e,t,r,i,o){var s,l;let u=i.getCompilerOptions(),p=m(i.getTypeChecker(),!1);if(p)return p;let g=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return C.checkDefined(g&&m(g,!0),"Could not find symbol in specified module for code actions");function m(b,T){let I=LW(r,b,u);if(I&&bu(I.symbol,b)===e)return{symbol:I.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:I.exportKind,targetFlags:bu(e,b).flags,isFromPackageJson:T};let R=b.tryGetMemberInModuleExportsAndProperties(t,r);if(R&&bu(R,b)===e)return{symbol:R,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:bu(e,b).flags,isFromPackageJson:T}}}function h$(e,t,r,i,o,s,l,u,p=XCe(o.getTypeChecker(),s,o.getCompilerOptions()),g){let m=o.getTypeChecker(),b=Zi(e,p.getImportsForExportInfo),T=t!==void 0&&S$e(b,t),I=A$e(b,r,m,o.getCompilerOptions());if(I)return{computedWithoutCacheCount:0,fixes:[...T?[T]:et,I]};let{fixes:R,computedWithoutCacheCount:M=0}=x$e(e,b,o,s,t,r,i,l,u,g);return{computedWithoutCacheCount:M,fixes:[...T?[T]:et,...R]}}function S$e(e,t){return Zt(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;let s=T$e(r),l=s&&((o=cR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function T$e(e){var t,r,i;switch(e.kind){case 260:return(t=ai(e.name,Ve))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=ai((r=e.importClause)==null?void 0:r.namedBindings,Zy))==null?void 0:i.name.text;default:return C.assertNever(e)}}function ife(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||EU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function A$e(e,t,r,i){let o;for(let l of e){let u=s(l);if(!u)continue;let p=sL(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&p||u.addAsTypeOnly===4&&!p)return u;o??(o=u)}return o;function s({declaration:l,importKind:u,symbol:p,targetFlags:g}){if(u===3||u===2||l.kind===271)return;if(l.kind===260)return(u===0||u===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:m}=l;if(!m||!us(l.moduleSpecifier))return;let{name:b,namedBindings:T}=m;if(m.isTypeOnly&&!(u===0&&T))return;let I=ife(t,!1,p,g,r,i);if(!(u===1&&(b||I===2&&T))&&!(u===0&&T?.kind===274))return{kind:2,importClauseOrBindingPattern:m,importKind:u,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:I}}}function XCe(e,t,r){let i;for(let o of t.imports){let s=CC(o);if(a3(s.parent)){let l=e.resolveExternalModuleName(o);l&&(i||(i=Xp())).add(Ta(l),s.parent)}else if(s.kind===272||s.kind===271){let l=e.getSymbolAtLocation(o);l&&(i||(i=Xp())).add(Ta(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{if(!(l&111551)&&ld(t))return et;let p=i?.get(Ta(o));if(!p)return et;let g=ofe(t,s,r);return p.map(m=>({declaration:m,importKind:g,symbol:u,targetFlags:l}))}}}function g$(e,t){if(!ld(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let r=t.getCompilerOptions();if(r.configFile)return ku(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!ld(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function YCe(e,t){return ch(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function I$e(e,t,r,i,o,s,l,u,p){let g=ld(t),m=e.getCompilerOptions(),b=ZS(e,l),T=YCe(e,l),I=dd(m),R=lW(I),M=p?H=>({moduleSpecifiers:nE.tryGetModuleSpecifiersFromCache(H,t,b,u),computedWithoutCache:!1}):(H,K)=>nE.getModuleSpecifiersWithCacheInfo(H,K,m,t,b,u,void 0,!0),N=0,O=Zi(s,(H,K)=>{let Z=T(H.isFromPackageJson),{computedWithoutCache:V,moduleSpecifiers:ue}=M(H.moduleSymbol,Z),G=!!(H.targetFlags&111551),ne=ife(i,!0,H.symbol,H.targetFlags,Z,m);return N+=V?1:0,Vi(ue,he=>{var ye;if(R&&I0(he))return;if(!G&&g&&r!==void 0)return{kind:1,moduleSpecifier:he,usagePosition:r,exportInfo:H,isReExport:K>0};let $=ofe(t,H.exportKind,m),Y;if(r!==void 0&&$===3&&H.exportKind===0){let oe=Z.resolveExternalModuleSymbol(H.moduleSymbol),fe;oe!==H.moduleSymbol&&(fe=(ye=kW(oe,Z,m))==null?void 0:ye.name),fe||(fe=ufe(H.moduleSymbol,as(m),!1)),Y={namespacePrefix:fe,usagePosition:r}}return{kind:3,moduleSpecifier:he,importKind:$,useRequire:o,addAsTypeOnly:ne,exportInfo:H,isReExport:K>0,qualification:Y}})});return{computedWithoutCacheCount:N,fixes:O}}function x$e(e,t,r,i,o,s,l,u,p,g){let m=Zt(t,b=>R$e(b,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:I$e(r,i,o,s,l,e,u,p,g)}function R$e({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var p;let g=(p=cR(e))==null?void 0:p.text;if(g){let m=s?4:ife(o,!0,r,i,l,u);return{kind:3,moduleSpecifier:g,importKind:t,addAsTypeOnly:m,useRequire:s}}}function $Ce(e,t,r,i){let o=po(e.sourceFile,r),s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=P$e(e,o);else if(Ve(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let u=nG(afe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=tNe(e.sourceFile,o,u,e.program);return p&&[{fix:p,symbolName:u,errorIdentifierText:o.text}]}else s=k$e(e,o,i);else return;let l=_P(e.sourceFile,e.preferences,e.host);return s&&D$e(s,e.sourceFile,e.program,l,e.host)}function D$e(e,t,r,i,o){let s=l=>rl(l,o.getCurrentDirectory(),Wv(o));return nS(e,(l,u)=>Ay(!!l.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||tl(l.fix.kind,u.fix.kind)||ZCe(l.fix,u.fix,t,r,i.allowsImportingSpecifier,s))}function QCe(e,t,r,i,o){if(Et(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>ZCe(l,s,t,r,i.allowsImportingSpecifier,u=>rl(u,o.getCurrentDirectory(),Wv(o)))===-1?l:s)}function ZCe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Ay(o(t.moduleSpecifier),o(e.moduleSpecifier))||N$e(e.moduleSpecifier,t.moduleSpecifier,r,i)||Ay(eNe(e,r,i.getCompilerOptions(),s),eNe(t,r,i.getCompilerOptions(),s))||mk(e.moduleSpecifier,t.moduleSpecifier):0}function eNe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&C$e(e.exportInfo.moduleFileName)){let s=i(li(e.exportInfo.moduleFileName));return uo(t.path,s)}return!1}function C$e(e){return rc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function N$e(e,t,r,i){return uo(e,"node:")&&!uo(t,"node:")?DW(r,i)?-1:1:uo(t,"node:")&&!uo(e,"node:")?DW(r,i)?1:-1:0}function P$e({sourceFile:e,program:t,host:r,preferences:i},o){let s=t.getTypeChecker(),l=M$e(o,s);if(!l)return;let u=s.getAliasedSymbol(l),p=l.name,g=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],m=g$(e,t);return h$(g,void 0,!1,m,t,e,r,i).fixes.map(T=>{var I;return{fix:T,symbolName:p,errorIdentifierText:(I=ai(o,Ve))==null?void 0:I.text}})}function M$e(e,t){let r=Ve(e)?t.getSymbolAtLocation(e):void 0;if(k3(r))return r;let{parent:i}=e;if(sd(i)&&i.tagName===e||dI(i)){let o=t.resolveName(t.getJsxNamespace(i),sd(i)?e:i,111551,!1);if(k3(o))return o}}function ofe(e,t,r,i){if(r.verbatimModuleSyntax&&(ku(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return F$e(e,r,!!i);case 3:return L$e(e,r,!!i);default:return C.assertNever(t)}}function L$e(e,t,r){if(NS(t))return 1;let i=ku(t);switch(i){case 2:case 1:case 3:return cr(e)&&(ac(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return C.assertNever(i,`Unexpected moduleKind ${i}`)}}function k$e({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){let u=t.getTypeChecker(),p=t.getCompilerOptions();return Zi(afe(e,u,s,p),g=>{if(g==="default")return;let m=_0(s),b=g$(e,t),T=O$e(g,aR(s),$S(s),r,e,t,l,i,o);return Vo(qf(T.values(),I=>h$(I,s.getStart(e),m,b,t,e,i,o).fixes),I=>({fix:I,symbolName:g,errorIdentifierText:s.text,isJsxNamespaceFix:g!==s.text}))})}function tNe(e,t,r,i){let o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;let l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||Vn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function afe(e,t,r,i){let o=r.parent;if((sd(o)||K1(o))&&o.tagName===r&&MX(i.jsx)){let s=t.getJsxNamespace(e);if(w$e(s,r,t))return!yR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function w$e(e,t,r){if(yR(t.text))return!0;let i=r.resolveName(e,t,111551,!0);return!i||Et(i.declarations,a0)&&!(i.flags&111551)}function O$e(e,t,r,i,o,s,l,u,p){var g;let m=Xp(),b=_P(o,p,u),T=(g=u.getModuleSpecifierCache)==null?void 0:g.call(u),I=ch(M=>ZS(M?u.getPackageJsonAutoImportProvider():s,u));function R(M,N,O,H,K,Z){let V=I(Z);if(N&&zX(K,o,N,p,b,V,T)||!N&&b.allowsImportingAmbientModule(M,V)){let ue=K.getTypeChecker();m.add(jue(O,ue).toString(),{symbol:O,moduleSymbol:M,moduleFileName:N?.fileName,exportKind:H,targetFlags:bu(O,ue).flags,isFromPackageJson:Z})}}return BX(s,u,p,l,(M,N,O,H)=>{let K=O.getTypeChecker();i.throwIfCancellationRequested();let Z=O.getCompilerOptions(),V=LW(M,K,Z);V&&(V.name===e||ufe(M,as(Z),t)===e)&&cNe(V.resolvedSymbol,r)&&R(M,N,V.symbol,V.exportKind,O,H);let ue=K.tryGetMemberInModuleExportsAndProperties(e,M);ue&&cNe(ue,r)&&R(M,N,ue,0,O,H)}),m}function F$e(e,t,r){let i=NS(t),o=cr(e);if(!o&&ku(t)>=5)return i?1:2;if(o)return ac(e)||r?i?1:2:3;for(let s of e.statements)if(tu(s)&&!Fl(s.moduleReference))return 3;return i?1:3}function sfe(e,t,r,i,o,s,l){let u,p=hr.ChangeTracker.with(e,g=>{u=W$e(g,t,r,i,o,s,l)});return ca(pfe,p,u,ffe,f.Add_all_missing_imports)}function W$e(e,t,r,i,o,s,l){let u=af(t,l);switch(i.kind){case 0:return lfe(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return iNe(e,t,i,u),[f.Change_0_to_1,r,oNe(i.moduleSpecifier,u)+r];case 2:{let{importClauseOrBindingPattern:p,importKind:g,addAsTypeOnly:m,moduleSpecifier:b}=i;rNe(e,t,p,g===1?{name:r,addAsTypeOnly:m}:void 0,g===0?[{name:r,addAsTypeOnly:m}]:et,l);let T=em(b);return o?[f.Import_0_from_1,r,T]:[f.Update_import_from_0,T]}case 3:{let{importKind:p,moduleSpecifier:g,addAsTypeOnly:m,useRequire:b,qualification:T}=i,I=b?sNe:aNe,R=p===1?{name:r,addAsTypeOnly:m}:void 0,M=p===0?[{name:r,addAsTypeOnly:m}]:void 0,N=p===2||p===3?{importKind:p,name:T?.namespacePrefix||r,addAsTypeOnly:m}:void 0;return lP(e,t,I(g,u,R,M,N,s.getCompilerOptions(),l),!0,l),T&&lfe(e,t,T),o?[f.Import_0_from_1,r,g]:[f.Add_import_from_0,g]}case 4:{let{typeOnlyAliasDeclaration:p}=i,g=z$e(e,p,s,t,l);return g.kind===276?[f.Remove_type_from_import_of_0_from_1,r,nNe(g.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,nNe(g)]}default:return C.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function nNe(e){var t,r;return e.kind===271?((r=ai((t=ai(e.moduleReference,Th))==null?void 0:t.expression,us))==null?void 0:r.text)||e.moduleReference.getText():aa(e.parent.moduleSpecifier,Na).text}function z$e(e,t,r,i,o){let s=r.getCompilerOptions(),l=EU(s);switch(t.kind){case 276:if(t.isTypeOnly){let p=Mm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&p){let g=k.updateImportSpecifier(t,!1,t.propertyName,t.name),m=Mm.getOrganizeImportsComparer(o,p===2),b=Mm.getImportSpecifierInsertionIndex(t.parent.elements,g,m,o);if(b!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,g,t.parent,b),t}return e.deleteRange(i,{pos:s0(t.getFirstToken()),end:s0(t.propertyName??t.name)}),t}else return C.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 273:return u(t),t;case 274:return u(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:C.failBadSyntaxKind(t)}function u(p){var g;if(e.delete(i,cX(p,i)),!s.allowImportingTsExtensions){let m=cR(p.parent),b=m&&((g=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:g.resolvedModule);if(b?.resolvedUsingTsExtension){let T=jM(m.text,aF(m.text,s));e.replaceNode(i,m,k.createStringLiteral(T))}}if(l){let m=ai(p.namedBindings,jg);if(m&&m.elements.length>1){Mm.detectImportSpecifierSorting(m.elements,o)&&t.kind===276&&m.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,m,0));for(let b of m.elements)b!==t&&!b.isTypeOnly&&e.insertModifierBefore(i,156,b)}}}}function rNe(e,t,r,i,o,s){var l;if(r.kind===206){i&&g(r,i.name,"default");for(let m of o)g(r,m.name,void 0);return}let u=r.isTypeOnly&&Et([i,...o],m=>m?.addAsTypeOnly===4),p=r.namedBindings&&((l=ai(r.namedBindings,jg))==null?void 0:l.elements);if(i&&(C.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),k.createIdentifier(i.name),{suffix:", "})),o.length){let m;if(typeof s.organizeImportsIgnoreCase=="boolean")m=s.organizeImportsIgnoreCase;else if(p){let R=Mm.detectImportSpecifierSorting(p,s);R!==3&&(m=R===2)}m===void 0&&(m=Mm.detectSorting(t,s)===2);let b=Mm.getOrganizeImportsComparer(s,m),T=Iv(o.map(R=>k.createImportSpecifier((!r.isTypeOnly||u)&&v$(R,s),void 0,k.createIdentifier(R.name))),(R,M)=>Mm.compareImportOrExportSpecifiers(R,M,b)),I=p?.length&&Mm.detectImportSpecifierSorting(p,s);if(I&&!(m&&I===1))for(let R of T){let M=u&&!R.isTypeOnly?0:Mm.getImportSpecifierInsertionIndex(p,R,b,s);e.insertImportSpecifierAtIndex(t,R,r.namedBindings,M)}else if(p?.length)for(let R of T)e.insertNodeInListAfter(t,Ya(p),R,p);else if(T.length){let R=k.createNamedImports(T);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,C.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(u&&(e.delete(t,cX(r,t)),p))for(let m of p)e.insertModifierBefore(t,156,m);function g(m,b,T){let I=k.createBindingElement(void 0,T,b);m.elements.length?e.insertNodeInListAfter(t,Ya(m.elements),I):e.replaceNode(t,m,k.createObjectBindingPattern([I]))}}function lfe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function iNe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,oNe(r,o))}function oNe(e,t){let r=lX(t);return`import(${r}${e}${r}).`}function cfe({addAsTypeOnly:e}){return e===2}function v$(e,t){return cfe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function aNe(e,t,r,i,o,s,l){let u=RI(e,t),p;if(r!==void 0||i?.length){let g=(!r||cfe(r))&&Jn(i,cfe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!Et(i,m=>m.addAsTypeOnly===4);p=Dx(p,$v(r&&k.createIdentifier(r.name),i?.map(m=>k.createImportSpecifier(!g&&v$(m,l),void 0,k.createIdentifier(m.name))),e,t,g))}if(o){let g=o.importKind===3?k.createImportEqualsDeclaration(void 0,v$(o,l),k.createIdentifier(o.name),k.createExternalModuleReference(u)):k.createImportDeclaration(void 0,k.createImportClause(v$(o,l),void 0,k.createNamespaceImport(k.createIdentifier(o.name))),u,void 0);p=Dx(p,g)}return C.checkDefined(p)}function sNe(e,t,r,i,o){let s=RI(e,t),l;if(r||i?.length){let u=i?.map(({name:g})=>k.createBindingElement(void 0,void 0,g))||[];r&&u.unshift(k.createBindingElement(void 0,"default",r.name));let p=lNe(k.createObjectBindingPattern(u),s);l=Dx(l,p)}if(o){let u=lNe(o.name,s);l=Dx(l,u)}return C.checkDefined(l)}function lNe(e,t){return k.createVariableStatement(void 0,k.createVariableDeclarationList([k.createVariableDeclaration(typeof e=="string"?k.createIdentifier(e):e,void 0,void 0,k.createCallExpression(k.createIdentifier("require"),void 0,[t]))],2))}function cNe({declarations:e},t){return Et(e,r=>!!(Yw(r)&t))}function ufe(e,t,r){return dfe(Td(em(e.name)),t,r)}function dfe(e,t,r){let i=rc(Px(e,"/index")),o="",s=!0,l=i.charCodeAt(0);Xh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let u=1;usfe(e,i,p,u,p!==g,s,r))},fixIds:[ffe],getAllCodeActions:e=>{let{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=HCe(t,r,!0,i,o,s);return P2(e,mfe,u=>l.addImportFromDiagnostic(u,e)),N2(hr.ChangeTracker.with(e,l.writeFixes))}})}});function uNe(e,t,r){let i=vn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=vn(i.relatedInformation,l=>l.code===f.This_type_parameter_might_need_an_extends_0_constraint.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=gme(o.file,vu(o.start,o.length));if(s!==void 0&&(Ve(s)&&_l(s.parent)&&(s=s.parent),_l(s))){if(WR(s.parent))return;let l=po(t,r.start),u=e.getTypeChecker();return{constraint:V$e(u,l)||G$e(o.messageText),declaration:s,token:l}}}function dNe(e,t,r,i,o,s){let{declaration:l,constraint:u}=s,p=t.getTypeChecker();if(wo(u))e.insertText(o,l.name.end,` extends ${u}`);else{let g=as(t.getCompilerOptions()),m=L2({program:t,host:i}),b=LI(o,t,r,i),T=nQ(p,b,u,void 0,g,void 0,m);T&&(e.replaceNode(o,l,k.updateTypeParameterDeclaration(l,void 0,l.name,T,l.default)),b.writeFixes(e))}}function G$e(e){let[,t]=W_(e,` +`,0).match(/`extends (.*)`/)||[];return t}function V$e(e,t){return qi(t.parent)?e.getTypeArgumentConstraint(t.parent):(bt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var y$,_fe,j$e=A({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";ci(),xa(),y$="addMissingConstraint",_fe=[f.Type_0_is_not_comparable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Type_0_is_not_assignable_to_type_1.code,f.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,f.Property_0_is_incompatible_with_index_signature.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Type_0_does_not_satisfy_the_constraint_1.code],Aa({errorCodes:_fe,getCodeActions(e){let{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=uNe(i,t,r);if(l===void 0)return;let u=hr.ChangeTracker.with(e,p=>dNe(p,i,o,s,t,l));return[ca(y$,u,f.Add_extends_constraint,y$,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[y$],getAllCodeActions:e=>{let{program:t,preferences:r,host:i}=e,o=new Map;return N2(hr.ChangeTracker.with(e,s=>{P2(e,_fe,l=>{let u=uNe(t,l.file,vu(l.start,l.length));if(u&&xm(o,ss(u.declaration)))return dNe(s,t,r,i,l.file,u)})}))}})}});function pNe(e,t,r,i){switch(r){case f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return U$e(e,t.sourceFile,i);case f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return H$e(e,t.sourceFile,i);default:C.fail("Unexpected error code: "+r)}}function U$e(e,t,r){let i=mNe(t,r);if(ld(t)){e.addJSDocTags(t,i,[k.createJSDocOverrideTag(k.createIdentifier("override"))]);return}let o=i.modifiers||et,s=vn(o,tI),l=vn(o,Iae),u=vn(o,b=>QK(b.kind)),p=Qr(o,Eu),g=l?l.end:s?s.end:u?u.end:p?La(t.text,p.end):i.getStart(t),m=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,m)}function H$e(e,t,r){let i=mNe(t,r);if(ld(t)){e.filterJSDocTags(t,i,O8(i5));return}let o=vn(i.modifiers,xae);C.assertIsDefined(o),e.deleteModifier(t,o)}function fNe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return pp(e,e.parent);default:return!1}}function mNe(e,t){let r=po(e,t),i=zn(r,o=>pi(o)?"quit":fNe(o));return C.assert(i&&fNe(i)),i}var hfe,EP,VO,gfe,vfe,q$e=A({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";ci(),xa(),hfe="fixOverrideModifier",EP="fixAddOverrideModifier",VO="fixRemoveOverrideModifier",gfe=[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],vfe={[f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:EP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:EP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_override_modifier},[f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:EP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:EP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:EP,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:VO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},Aa({errorCodes:gfe,getCodeActions:function(t){let{errorCode:r,span:i}=t,o=vfe[r];if(!o)return et;let{descriptions:s,fixId:l,fixAllDescriptions:u}=o,p=hr.ChangeTracker.with(t,g=>pNe(g,t,r,i.start));return[Npe(hfe,p,s,l,u)]},fixIds:[hfe,EP,VO],getAllCodeActions:e=>Ss(e,gfe,(t,r)=>{let{code:i,start:o}=r,s=vfe[i];!s||s.fixId!==e.fixId||pNe(t,e,i,o)})})}});function _Ne(e,t,r,i){let o=af(t,i),s=k.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,y6(r)?k.createElementAccessChain(r.expression,r.questionDotToken,s):k.createElementAccessExpression(r.expression,s))}function hNe(e,t){return aa(po(e,t).parent,zr)}var b$,yfe,J$e=A({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";ci(),xa(),b$="fixNoPropertyAccessFromIndexSignature",yfe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Aa({errorCodes:yfe,fixIds:[b$],getCodeActions(e){let{sourceFile:t,span:r,preferences:i}=e,o=hNe(t,r.start),s=hr.ChangeTracker.with(e,l=>_Ne(l,e.sourceFile,o,i));return[ca(b$,s,[f.Use_element_access_for_0,o.name.text],b$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ss(e,yfe,(t,r)=>_Ne(t,r.file,hNe(r.file,r.start),e.preferences))})}});function gNe(e,t,r,i){let o=po(t,r);if(!h2(o))return;let s=wd(o,!1,!1);if(!(!Sc(s)&&!ws(s))&&!no(wd(s,!1,!1))){let l=C.checkDefined(bs(s,100,t)),{name:u}=s,p=C.checkDefined(s.body);return ws(s)?u&&Os.Core.isSymbolReferencedInFile(u,i,t,p)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,p.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,u?u.text:MW]):(e.replaceNode(t,l,k.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,p.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,u.text])}}var E$,bfe,K$e=A({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";ci(),xa(),E$="fixImplicitThis",bfe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Aa({errorCodes:bfe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s,l=hr.ChangeTracker.with(t,u=>{s=gNe(u,r,o.start,i.getTypeChecker())});return s?[ca(E$,l,s,E$,f.Fix_all_implicit_this_errors)]:et},fixIds:[E$],getAllCodeActions:e=>Ss(e,bfe,(t,r)=>{gNe(t,r.file,r.start,e.program.getTypeChecker())})})}});function vNe(e,t,r){var i,o;let s=po(e,t);if(Ve(s)){let l=zn(s,Lc);if(l===void 0)return;let u=Na(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(u===void 0)return;let p=(i=r.getResolvedModuleFromModuleSpecifier(u))==null?void 0:i.resolvedModule;if(p===void 0)return;let g=r.getSourceFile(p.resolvedFileName);if(g===void 0||T2(r,g))return;let m=g.symbol,b=(o=ai(m.valueDeclaration,ph))==null?void 0:o.locals;if(b===void 0)return;let T=b.get(s.escapedText);if(T===void 0)return;let I=Y$e(T);return I===void 0?void 0:{exportName:{node:s,isTypeOnly:PR(I)},node:I,moduleSourceFile:g,moduleSpecifier:u.text}}}function X$e(e,t,{exportName:r,node:i,moduleSourceFile:o}){let s=S$(o,r.isTypeOnly);s?yNe(e,t,o,s,[r]):gk(i)?e.insertExportModifier(o,i):bNe(e,t,o,[r])}function Efe(e,t,r,i,o){De(i)&&(o?yNe(e,t,r,o,i):bNe(e,t,r,i))}function S$(e,t){let r=i=>Kl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return Qr(e.statements,r)}function yNe(e,t,r,i,o){let s=i.exportClause&&Df(i.exportClause)?i.exportClause.elements:k.createNodeArray([]),l=!i.isTypeOnly&&!!(im(t.getCompilerOptions())||vn(s,u=>u.isTypeOnly));e.replaceNode(r,i,k.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,k.createNamedExports(k.createNodeArray([...s,...ENe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function bNe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,k.createExportDeclaration(void 0,!1,k.createNamedExports(ENe(i,im(t.getCompilerOptions()))),void 0,void 0))}function ENe(e,t){return k.createNodeArray(Ft(e,r=>k.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function Y$e(e){if(e.valueDeclaration===void 0)return Xc(e.declarations);let t=e.valueDeclaration,r=Oi(t)?ai(t.parent.parent,Ml):void 0;return r&&De(r.declarationList.declarations)===1?r:t}var T$,Sfe,$$e=A({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";ci(),xa(),T$="fixImportNonExportedMember",Sfe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],Aa({errorCodes:Sfe,fixIds:[T$],getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=vNe(t,r.start,i);if(o===void 0)return;let s=hr.ChangeTracker.with(e,l=>X$e(l,i,o));return[ca(T$,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],T$,f.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return N2(hr.ChangeTracker.with(e,r=>{let i=new Map;P2(e,Sfe,o=>{let s=vNe(o.file,o.start,t);if(s===void 0)return;let{exportName:l,node:u,moduleSourceFile:p}=s;if(S$(p,l.isTypeOnly)===void 0&&gk(u))r.insertExportModifier(p,u);else{let g=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?g.typeOnlyExports.push(l):g.exports.push(l),i.set(p,g)}}),i.forEach((o,s)=>{let l=S$(s,!0);l&&l.isTypeOnly?(Efe(r,t,s,o.typeOnlyExports,l),Efe(r,t,s,o.exports,S$(s,!1))):Efe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function Q$e(e,t){let r=po(e,t);return zn(r,i=>i.kind===202)}function Z$e(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?o=!0:i.kind===191&&(s=!0),i=i.type;let l=k.updateNamedTupleMember(r,r.dotDotDotToken||(s?k.createToken(26):void 0),r.name,r.questionToken||(o?k.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var A$,SNe,eQe=A({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";ci(),xa(),A$="fixIncorrectNamedTupleSyntax",SNe=[f.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,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Aa({errorCodes:SNe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=Q$e(r,i.start),s=hr.ChangeTracker.with(t,l=>Z$e(l,r,o));return[ca(A$,s,f.Move_labeled_tuple_element_modifiers_to_labels,A$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[A$]})}});function TNe(e,t,r,i){let o=po(e,t),s=o.parent;if((i===f.No_overload_matches_this_call.code||i===f.Type_0_is_not_assignable_to_type_1.code)&&!O_(s))return;let l=r.program.getTypeChecker(),u;if(zr(s)&&s.name===o){C.assert(Yh(o),"Expected an identifier for spelling (property access)");let p=l.getTypeAtLocation(s.expression);s.flags&64&&(p=l.getNonNullableType(p)),u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(_r(s)&&s.operatorToken.kind===103&&s.left===o&&Xi(o)){let p=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Ad(s)&&s.right===o){let p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(tp(s)&&s.name===o){C.assertNode(o,Ve,"Expected an identifier for spelling (import)");let p=zn(o,Lc),g=nQe(r,p);g&&g.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,g.symbol))}else if(O_(s)&&s.name===o){C.assertNode(o,Ve,"Expected an identifier for JSX attribute");let p=zn(o,sd),g=l.getContextualTypeForArgumentAtIndex(p,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,g)}else if(x3(s)&&$c(s)&&s.name===o){let p=zn(o,pi),g=p?x_(p):void 0,m=g?l.getTypeAtLocation(g):void 0;m&&(u=l.getSuggestedSymbolForNonexistentClassMember(pc(o),m))}else{let p=$S(o),g=pc(o);C.assert(g!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,g,tQe(p))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function ANe(e,t,r,i,o){let s=bl(i);if(!$p(s,o)&&zr(r.parent)){let l=i.valueDeclaration;l&&od(l)&&Xi(l.name)?e.replaceNode(t,r,k.createIdentifier(s)):e.replaceNode(t,r.parent,k.createElementAccessExpression(r.parent.expression,k.createStringLiteral(s)))}else e.replaceNode(t,r,k.createIdentifier(s))}function tQe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function nQe(e,t){var r;if(!t||!us(t.moduleSpecifier))return;let i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var Tfe,Afe,rQe=A({"src/services/codefixes/fixSpelling.ts"(){"use strict";ci(),xa(),Tfe="fixSpelling",Afe=[f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Could_not_find_name_0_Did_you_mean_1.code,f.Cannot_find_namespace_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f._0_has_no_exported_member_named_1_Did_you_mean_2.code,f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.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,f.No_overload_matches_this_call.code,f.Type_0_is_not_assignable_to_type_1.code],Aa({errorCodes:Afe,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,i=TNe(t,e.span.start,e,r);if(!i)return;let{node:o,suggestedSymbol:s}=i,l=as(e.host.getCompilationSettings()),u=hr.ChangeTracker.with(e,p=>ANe(p,t,o,s,l));return[ca("spelling",u,[f.Change_spelling_to_0,bl(s)],Tfe,f.Fix_all_detected_spelling_errors)]},fixIds:[Tfe],getAllCodeActions:e=>Ss(e,Afe,(t,r)=>{let i=TNe(r.file,r.start,e,r.code),o=as(e.host.getCompilationSettings());i&&ANe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function INe(e,t,r){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);let o=ua([i]);return e.createAnonymousType(void 0,o,[],[],[])}function Ife(e,t,r,i){if(!t.body||!Xo(t.body)||De(t.body.statements)!==1)return;let o=Ha(t.body.statements);if(eu(o)&&xfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(J1(o)&&eu(o.statement)){let s=k.createObjectLiteralExpression([k.createPropertyAssignment(o.label,o.statement.expression)]),l=INe(e,o.label,o.statement.expression);if(xfe(e,t,l,r,i))return Bs(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if(Xo(o)&&De(o.statements)===1){let s=Ha(o.statements);if(J1(s)&&eu(s.statement)){let l=k.createObjectLiteralExpression([k.createPropertyAssignment(s.label,s.statement.expression)]),u=INe(e,s.label,s.statement.expression);if(xfe(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function xfe(e,t,r,i,o){if(o){let s=e.getSignatureFromDeclaration(t);if(s){ei(t,1024)&&(r=e.createPromiseType(r));let l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,ua(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function xNe(e,t,r,i){let o=po(t,r);if(!o.parent)return;let s=zn(o.parent,zs);switch(i){case f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!of(s.type,o)?void 0:Ife(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!la(s.parent)||!s.body)return;let l=s.parent.arguments.indexOf(s);if(l===-1)return;let u=e.getContextualTypeForArgumentAtIndex(s.parent,l);return u?Ife(e,s,u,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!Wg(o)||!rR(o.parent)&&!O_(o.parent))return;let p=iQe(o.parent);return!p||!zs(p)||!p.body?void 0:Ife(e,p,e.getTypeAtLocation(o.parent),!0)}}function iQe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(AN(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function RNe(e,t,r,i){Sp(r);let o=hO(t);e.replaceNode(t,i,k.createReturnStatement(r),{leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function DNe(e,t,r,i,o,s){let l=s||hW(i)?k.createParenthesizedExpression(i):i;Sp(o),eT(o,l),e.replaceNode(t,r.body,l)}function CNe(e,t,r,i){e.replaceNode(t,r.body,k.createParenthesizedExpression(i))}function oQe(e,t,r){let i=hr.ChangeTracker.with(e,o=>RNe(o,e.sourceFile,t,r));return ca(I$,i,f.Add_a_return_statement,x$,f.Add_all_missing_return_statement)}function aQe(e,t,r,i){let o=hr.ChangeTracker.with(e,s=>DNe(s,e.sourceFile,t,r,i,!1));return ca(I$,o,f.Remove_braces_from_arrow_function_body,R$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function sQe(e,t,r){let i=hr.ChangeTracker.with(e,o=>CNe(o,e.sourceFile,t,r));return ca(I$,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,D$,f.Wrap_all_object_literal_with_parentheses)}var I$,x$,R$,D$,Rfe,lQe=A({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";ci(),xa(),I$="returnValueCorrect",x$="fixAddReturnStatement",R$="fixRemoveBracesFromArrowFunctionBody",D$="fixWrapTheBlockWithParen",Rfe=[f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Aa({errorCodes:Rfe,fixIds:[x$,R$,D$],getCodeActions:function(t){let{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=xNe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?In([oQe(t,l.expression,l.statement)],Bs(l.declaration)?aQe(t,l.declaration,l.expression,l.commentSource):void 0):[sQe(t,l.declaration,l.expression)]},getAllCodeActions:e=>Ss(e,Rfe,(t,r)=>{let i=xNe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case x$:RNe(t,r.file,i.expression,i.statement);break;case R$:if(!Bs(i.declaration))return;DNe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case D$:if(!Bs(i.declaration))return;CNe(t,r.file,i.declaration,i.expression);break;default:C.fail(JSON.stringify(e.fixId))}})})}});function NNe(e,t,r,i,o){var s;let l=po(e,t),u=l.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&wa(u)&&la(u.parent)))return;let I=ri(u.parent.arguments,O=>O===u);if(I<0)return;let R=i.getResolvedSignature(u.parent);if(!(R&&R.declaration&&R.parameters[I]))return;let M=R.parameters[I].valueDeclaration;if(!(M&&Co(M)&&Ve(M.name)))return;let N=Vo(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(R,I),!1,!1));return De(N)?{kind:3,token:M.name,identifier:M.name.text,properties:N,parentDeclaration:u}:void 0}if(l.kind===19&&wa(u)){let I=i.getContextualType(u)||i.getTypeAtLocation(u),R=Vo(i.getUnmatchedProperties(i.getTypeAtLocation(u),I,!1,!1));return De(R)?{kind:3,token:u,identifier:"",properties:R,parentDeclaration:u}:void 0}if(!Yh(l))return;if(Ve(l)&&Oy(u)&&u.initializer&&wa(u.initializer)){let I=i.getContextualType(l)||i.getTypeAtLocation(l),R=Vo(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),I,!1,!1));return De(R)?{kind:3,token:l,identifier:l.text,properties:R,parentDeclaration:u.initializer}:void 0}if(Ve(l)&&sd(l.parent)){let I=as(o.getCompilerOptions()),R=_Qe(i,I,l.parent);return De(R)?{kind:4,token:l,attributes:R,parentDeclaration:l.parent}:void 0}if(Ve(l)){let I=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(I&&Wr(I)&16){let R=Xc(i.getSignaturesOfType(I,0));return R===void 0?void 0:{kind:5,token:l,signature:R,sourceFile:e,parentDeclaration:GNe(l)}}if(la(u)&&u.expression===l)return{kind:2,token:l,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:GNe(l)}}if(!zr(u))return;let p=iX(i.getTypeAtLocation(u.expression)),g=p.symbol;if(!g||!g.declarations)return;if(Ve(l)&&la(u.parent)){let I=vn(g.declarations,Jl),R=I?.getSourceFile();if(I&&R&&!T2(o,R))return{kind:2,token:l,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:I};let M=vn(g.declarations,no);if(e.commonJsModuleIndicator)return;if(M&&!T2(o,M))return{kind:2,token:l,call:u.parent,sourceFile:M,modifierFlags:32,parentDeclaration:M}}let m=vn(g.declarations,pi);if(!m&&Xi(l))return;let b=m||vn(g.declarations,I=>fd(I)||yp(I));if(b&&!T2(o,b.getSourceFile())){let I=!yp(b)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(g);if(I&&(Xi(l)||fd(b)))return;let R=b.getSourceFile(),M=yp(b)?0:(I?256:0)|(PX(l.text)?2:0),N=ld(R),O=ai(u.parent,la);return{kind:0,token:l,call:O,modifierFlags:M,parentDeclaration:b,declSourceFile:R,isJSFile:N}}let T=vn(g.declarations,v0);if(T&&!(p.flags&1056)&&!Xi(l)&&!T2(o,T.getSourceFile()))return{kind:1,token:l,parentDeclaration:T}}function cQe(e,t){return t.isJSFile?yA(uQe(e,t)):dQe(e,t)}function uQe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(fd(t)||yp(t))return;let s=hr.ChangeTracker.with(e,u=>PNe(u,r,t,o,!!(i&256)));if(s.length===0)return;let l=i&256?f.Initialize_static_property_0:Xi(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return ca(ab,s,[l,o.text],ab,f.Add_all_missing_members)}function PNe(e,t,r,i,o){let s=i.text;if(o){if(r.kind===231)return;let l=r.name.getText(),u=MNe(k.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(Xi(i)){let l=k.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=wNe(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{let l=ig(r);if(!l)return;let u=MNe(k.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function MNe(e,t){return k.createExpressionStatement(k.createAssignment(k.createPropertyAccessExpression(e,t),kI()))}function dQe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){let s=o.text,l=i&256,u=LNe(e.program.getTypeChecker(),t,o),p=m=>hr.ChangeTracker.with(e,b=>kNe(b,r,t,s,u,m)),g=[ca(ab,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],ab,f.Add_all_missing_members)];return l||Xi(o)||(i&2&&g.unshift(i_(ab,p(2),[f.Declare_private_property_0,s])),g.push(pQe(e,r,t,o.text,u))),g}function LNe(e,t,r){let i;if(r.parent.parent.kind===226){let o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1)}else{let o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||k.createKeywordTypeNode(133)}function kNe(e,t,r,i,o,s){let l=s?k.createNodeArray(k.createModifiersFromModifierFlags(s)):void 0,u=pi(r)?k.createPropertyDeclaration(l,i,void 0,o,void 0):k.createPropertySignature(void 0,i,void 0,o),p=wNe(r);p?e.insertNodeAfter(t,p,u):e.insertMemberAtStart(t,r,u)}function wNe(e){let t;for(let r of e.members){if(!Jo(r))break;t=r}return t}function pQe(e,t,r,i,o){let s=k.createKeywordTypeNode(154),l=k.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),u=k.createIndexSignature(void 0,[l],o),p=hr.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,r,u));return i_(ab,p,[f.Add_index_signature_for_property_0,i])}function fQe(e,t){let{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;let u=s.text,p=m=>hr.ChangeTracker.with(e,b=>ONe(e,b,l,s,m,r,i)),g=[ca(ab,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,u],ab,f.Add_all_missing_members)];return o&2&&g.unshift(i_(ab,p(2),[f.Declare_private_method_0,u])),g}function ONe(e,t,r,i,o,s,l){let u=LI(l,e.program,e.preferences,e.host),p=pi(s)?174:173,g=dme(p,e,u,r,i,o,s),m=hQe(s,r);m?t.insertNodeAfter(l,m,g):t.insertMemberAtStart(l,s,g),u.writeFixes(t)}function FNe(e,t,{token:r,parentDeclaration:i}){let o=Et(i.members,p=>{let g=t.getTypeAtLocation(p);return!!(g&&g.flags&402653316)}),s=i.getSourceFile(),l=k.createEnumMember(r,o?k.createStringLiteral(r.text):void 0),u=Zs(i.members);u?e.insertNodeInListAfter(s,u,l,i.members):e.insertMemberAtStart(s,i,l)}function WNe(e,t,r){let i=af(t.sourceFile,t.preferences),o=LI(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?dme(262,t,o,r.call,Sr(r.token),r.modifierFlags,r.parentDeclaration):tQ(262,t,i,r.signature,b9(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&C.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Rm(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function zNe(e,t,r){let i=LI(t.sourceFile,t.program,t.preferences,t.host),o=af(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=Et(l.properties,pI),p=Ft(r.attributes,b=>{let T=C$(t,s,i,o,s.getTypeOfSymbol(b),r.parentDeclaration),I=k.createIdentifier(b.name),R=k.createJsxAttribute(I,k.createJsxExpression(void 0,T));return qa(I,R),R}),g=k.createJsxAttributes(u?[...p,...l.properties]:[...l.properties,...p]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,g,m),i.writeFixes(e)}function BNe(e,t,r){let i=LI(t.sourceFile,t.program,t.preferences,t.host),o=af(t.sourceFile,t.preferences),s=as(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Ft(r.properties,g=>{let m=C$(t,l,i,o,l.getTypeOfSymbol(g),r.parentDeclaration);return k.createPropertyAssignment(gQe(g,s,o,l),m)}),p={leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,k.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),p),i.writeFixes(e)}function C$(e,t,r,i,o,s){if(o.flags&3)return kI();if(o.flags&134217732)return k.createStringLiteral("",i===0);if(o.flags&8)return k.createNumericLiteral(0);if(o.flags&64)return k.createBigIntLiteral("0n");if(o.flags&16)return k.createFalse();if(o.flags&1056){let l=o.symbol.exports?D8(o.symbol.exports.values()):o.symbol,u=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,64);return l===void 0||u===void 0?k.createNumericLiteral(0):k.createPropertyAccessExpression(u,t.symbolToString(l))}if(o.flags&256)return k.createNumericLiteral(o.value);if(o.flags&2048)return k.createBigIntLiteral(o.value);if(o.flags&128)return k.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?k.createFalse():k.createTrue();if(o.flags&65536)return k.createNull();if(o.flags&1048576)return Zt(o.types,u=>C$(e,t,r,i,u,s))??kI();if(t.isArrayLikeType(o))return k.createArrayLiteralExpression();if(mQe(o)){let l=Ft(t.getPropertiesOfType(o),u=>{let p=C$(e,t,r,i,t.getTypeOfSymbol(u),s);return k.createPropertyAssignment(u.name,p)});return k.createObjectLiteralExpression(l,!0)}if(Wr(o)&16){if(vn(o.symbol.declarations||et,Xm(bh,yh,jl))===void 0)return kI();let u=t.getSignaturesOfType(o,0);return u===void 0?kI():tQ(218,e,i,u[0],b9(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??kI()}if(Wr(o)&1){let l=Bg(o.symbol);if(l===void 0||F1(l))return kI();let u=ig(l);return u&&De(u.parameters)?kI():k.createNewExpression(k.createIdentifier(o.symbol.name),void 0,void 0)}return kI()}function kI(){return k.createIdentifier("undefined")}function mQe(e){return e.flags&524288&&(Wr(e)&128||e.symbol&&ai(ah(e.symbol.declarations),yp))}function _Qe(e,t,r){let i=e.getContextualType(r.attributes);if(i===void 0)return et;let o=i.getProperties();if(!De(o))return et;let s=new Set;for(let l of r.attributes.properties)if(O_(l)&&s.add(lN(l.name)),pI(l)){let u=e.getTypeAtLocation(l.expression);for(let p of u.getProperties())s.add(p.escapedName)}return tr(o,l=>$p(l.name,t,1)&&!(l.flags&16777216||Al(l)&48||s.has(l.escapedName)))}function hQe(e,t){if(yp(e))return;let r=zn(t,i=>jl(i)||Pl(i));return r&&r.parent===e?r:void 0}function gQe(e,t,r,i){if(fh(e)){let o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Za(o))return o}return e7(e.name,t,r===0,!1,!1)}function GNe(e){if(zn(e,AN)){let t=zn(e.parent,Rm);if(t)return t}return Vn(e)}var ab,p9,f9,m9,Dfe,vQe=A({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";ci(),xa(),ab="fixMissingMember",p9="fixMissingProperties",f9="fixMissingAttributes",m9="fixMissingFunctionDeclaration",Dfe=[f.Property_0_does_not_exist_on_type_1.code,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_is_missing_in_type_1_but_required_in_type_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Cannot_find_name_0.code],Aa({errorCodes:Dfe,getCodeActions(e){let t=e.program.getTypeChecker(),r=NNe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let i=hr.ChangeTracker.with(e,o=>BNe(o,e,r));return[ca(p9,i,f.Add_missing_properties,p9,f.Add_all_missing_properties)]}if(r.kind===4){let i=hr.ChangeTracker.with(e,o=>zNe(o,e,r));return[ca(f9,i,f.Add_missing_attributes,f9,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){let i=hr.ChangeTracker.with(e,o=>WNe(o,e,r));return[ca(m9,i,[f.Add_missing_function_declaration_0,r.token.text],m9,f.Add_all_missing_function_declarations)]}if(r.kind===1){let i=hr.ChangeTracker.with(e,o=>FNe(o,e.program.getTypeChecker(),r));return[ca(ab,i,[f.Add_missing_enum_member_0,r.token.text],ab,f.Add_all_missing_members)]}return xo(fQe(e,r),cQe(e,r))}},fixIds:[ab,m9,p9,f9],getAllCodeActions:e=>{let{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return N2(hr.ChangeTracker.with(e,l=>{P2(e,Dfe,u=>{let p=NNe(u.file,u.start,u.code,i,e.program);if(!(!p||!xm(o,ss(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===m9&&(p.kind===2||p.kind===5))WNe(l,e,p);else if(r===p9&&p.kind===3)BNe(l,e,p);else if(r===f9&&p.kind===4)zNe(l,e,p);else if(p.kind===1&&FNe(l,i,p),p.kind===0){let{parentDeclaration:g,token:m}=p,b=mA(s,g,()=>[]);b.some(T=>T.token.text===m.text)||b.push(p)}}}),s.forEach((u,p)=>{let g=yp(p)?void 0:yme(p,i);for(let m of u){if(g?.some(O=>{let H=s.get(O);return!!H&&H.some(({token:K})=>K.text===m.token.text)}))continue;let{parentDeclaration:b,declSourceFile:T,modifierFlags:I,token:R,call:M,isJSFile:N}=m;if(M&&!Xi(R))ONe(e,l,M,R,I&256,b,T);else if(N&&!fd(b)&&!yp(b))PNe(l,T,b,R,!!(I&256));else{let O=LNe(i,b,R);kNe(l,T,b,R.text,O,I&256)}}})}))}})}});function VNe(e,t,r){let i=aa(yQe(t,r),la),o=k.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function yQe(e,t){let r=po(e,t.start),i=ql(t);for(;r.endVNe(o,t,r));return[ca(N$,i,f.Add_missing_new_operator_to_call,N$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[N$],getAllCodeActions:e=>Ss(e,Cfe,(t,r)=>VNe(t,e.sourceFile,r))})}});function jNe(e,t,r){let i=po(e,r),o=zn(i,la);if(o===void 0||De(o.arguments)===0)return;let s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=tr(l.symbol.declarations,UNe);if(u===void 0)return;let p=Zs(u);if(p===void 0||p.body===void 0||T2(t,p.getSourceFile()))return;let g=EQe(p);if(g===void 0)return;let m=[],b=[],T=De(p.parameters),I=De(o.arguments);if(T>I)return;let R=[p,...TQe(p,u)];for(let M=0,N=0,O=0;M{De(o.parameters)?e.replaceNodeRangeWithNodes(t,Ha(o.parameters),Ya(o.parameters),HNe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:hr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:hr.TrailingTriviaOption.Include}):Ke(HNe(o,i),(s,l)=>{De(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function UNe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function HNe(e,t){let r=Ft(e.parameters,i=>k.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(let{pos:i,declaration:o}of t){let s=i>0?r[i-1]:void 0;r.splice(i,0,k.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?k.createToken(58):o.questionToken,o.type,o.initializer))}return r}function TQe(e,t){let r=[];for(let i of t)if(AQe(i)){if(De(i.parameters)===De(e.parameters)){r.push(i);continue}if(De(i.parameters)>De(e.parameters))return[]}return r}function AQe(e){return UNe(e)&&e.body===void 0}function qNe(e,t,r){return k.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function IQe(e,t){return De(e)&&Et(e,r=>tP$(u,e.sourceFile,i,o)),[De(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],_9,f.Add_all_missing_parameters)),De(s)&&In(l,ca(h9,hr.ChangeTracker.with(e,u=>P$(u,e.sourceFile,i,s)),[De(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],h9,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>Ss(e,Nfe,(t,r)=>{let i=jNe(e.sourceFile,e.program,r.start);if(i){let{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===_9&&P$(t,e.sourceFile,o,s),e.fixId===h9&&P$(t,e.sourceFile,o,l)}})})}});function JNe(e,t){return{type:"install package",file:e,packageName:t}}function KNe(e,t){let r=ai(po(e,t),Na);if(!r)return;let i=r.text,{packageName:o}=Ew(i);return Yc(o)?void 0:o}function XNe(e,t,r){var i;return r===Pfe?B_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?W5(e):void 0}var YNe,M$,Pfe,Mfe,RQe=A({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";ci(),xa(),YNe="fixCannotFindModule",M$="installTypesPackage",Pfe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Mfe=[Pfe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Aa({errorCodes:Mfe,getCodeActions:function(t){let{host:r,sourceFile:i,span:{start:o}}=t,s=KNe(i,o);if(s===void 0)return;let l=XNe(s,r,t.errorCode);return l===void 0?[]:[ca(YNe,[],[f.Install_0,l],M$,f.Install_all_missing_types_packages,JNe(i.fileName,l))]},fixIds:[M$],getAllCodeActions:e=>Ss(e,Mfe,(t,r,i)=>{let o=KNe(r.file,r.start);if(o!==void 0)switch(e.fixId){case M$:{let s=XNe(o,e.host,r.code);s&&i.push(JNe(r.file.fileName,s));break}default:C.fail(`Bad fixId: ${e.fixId}`)}})})}});function $Ne(e,t){let r=po(e,t);return aa(r.parent,pi)}function QNe(e,t,r,i,o){let s=x_(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),p=l.getPropertiesOfType(u).filter(DQe),g=LI(t,r.program,o,r.host);ume(e,p,t,r,o,g,m=>i.insertMemberAtStart(t,e,m)),g.writeFixes(i)}function DQe(e){let t=Gy(Ha(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Lfe,L$,CQe=A({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";ci(),xa(),Lfe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],L$="fixClassDoesntImplementInheritedAbstractMember",Aa({errorCodes:Lfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=hr.ChangeTracker.with(t,s=>QNe($Ne(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[ca(L$,o,f.Implement_inherited_abstract_class,L$,f.Implement_all_inherited_abstract_classes)]},fixIds:[L$],getAllCodeActions:function(t){let r=new Map;return Ss(t,Lfe,(i,o)=>{let s=$Ne(o.file,o.start);xm(r,ss(s))&&QNe(s,t.sourceFile,t,i,t.preferences)})}})}});function ZNe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function ePe(e,t){let r=po(e,t);if(r.kind!==110)return;let i=zp(r),o=tPe(i.body);return o&&!o.expression.arguments.some(s=>zr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function tPe(e){return eu(e)&&gS(e.expression)?e:ea(e)?void 0:Ho(e,tPe)}var k$,kfe,NQe=A({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";ci(),xa(),k$="classSuperMustPrecedeThisAccess",kfe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Aa({errorCodes:kfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=ePe(t,r.start);if(!i)return;let{constructor:o,superCall:s}=i,l=hr.ChangeTracker.with(e,u=>ZNe(u,t,o,s));return[ca(k$,l,f.Make_super_call_the_first_statement_in_the_constructor,k$,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[k$],getAllCodeActions(e){let{sourceFile:t}=e,r=new Map;return Ss(e,kfe,(i,o)=>{let s=ePe(o.file,o.start);if(!s)return;let{constructor:l,superCall:u}=s;xm(r,ss(l.parent))&&ZNe(i,t,l,u)})}})}});function nPe(e,t){let r=po(e,t);return C.assert(Pl(r.parent),"token should be at the constructor declaration"),r.parent}function rPe(e,t,r){let i=k.createExpressionStatement(k.createCallExpression(k.createSuper(),void 0,et));e.insertNodeAtConstructorStart(t,r,i)}var w$,wfe,PQe=A({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";ci(),xa(),w$="constructorForDerivedNeedSuperCall",wfe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],Aa({errorCodes:wfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=nPe(t,r.start),o=hr.ChangeTracker.with(e,s=>rPe(s,t,i));return[ca(w$,o,f.Add_missing_super_call,w$,f.Add_all_missing_super_calls)]},fixIds:[w$],getAllCodeActions:e=>Ss(e,wfe,(t,r)=>rPe(t,e.sourceFile,nPe(r.file,r.start)))})}});function iPe(e,t){_me(e,t,"jsx",k.createStringLiteral("react"))}var Ofe,Ffe,MQe=A({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";ci(),xa(),Ofe="fixEnableJsxFlag",Ffe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Aa({errorCodes:Ffe,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let i=hr.ChangeTracker.with(t,o=>iPe(o,r));return[i_(Ofe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Ofe],getAllCodeActions:e=>Ss(e,Ffe,t=>{let{configFile:r}=e.program.getCompilerOptions();r!==void 0&&iPe(t,r)})})}});function oPe(e,t,r){let i=vn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=vn(i.relatedInformation,l=>l.code===f.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=gme(o.file,vu(o.start,o.length));if(s!==void 0&&bt(s)&&_r(s.parent))return{suggestion:LQe(o.messageText),expression:s.parent,arg:s}}function aPe(e,t,r,i){let o=k.createCallExpression(k.createPropertyAccessExpression(k.createIdentifier("Number"),k.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?k.createPrefixUnaryExpression(54,o):o)}function LQe(e){let[,t]=W_(e,` +`,0).match(/'(.*)'/)||[];return t}var O$,Wfe,kQe=A({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";ci(),xa(),O$="fixNaNEquality",Wfe=[f.This_condition_will_always_return_0.code],Aa({errorCodes:Wfe,getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=oPe(i,t,r);if(o===void 0)return;let{suggestion:s,expression:l,arg:u}=o,p=hr.ChangeTracker.with(e,g=>aPe(g,t,u,l));return[ca(O$,p,[f.Use_0,s],O$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[O$],getAllCodeActions:e=>Ss(e,Wfe,(t,r)=>{let i=oPe(e.program,r.file,vu(r.start,r.length));i&&aPe(t,r.file,i.arg,i.expression)})})}}),wQe=A({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";ci(),xa(),Aa({errorCodes:[f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;let o=[],s=ku(r);if(s>=5&&s<99){let g=hr.ChangeTracker.with(t,m=>{_me(m,i,"module",k.createStringLiteral("esnext"))});o.push(i_("fixModuleOption",g,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let u=as(r);if(u<4||u>99){let g=hr.ChangeTracker.with(t,m=>{if(!IC(i))return;let T=[["target",k.createStringLiteral("es2017")]];s===1&&T.push(["module",k.createStringLiteral("commonjs")]),mme(m,i,T)});o.push(i_("fixTargetOption",g,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function sPe(e,t,r){e.replaceNode(t,r,k.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function lPe(e,t){return aa(po(e,t).parent,np)}var F$,zfe,OQe=A({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";ci(),xa(),F$="fixPropertyAssignment",zfe=[f.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],Aa({errorCodes:zfe,fixIds:[F$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=lPe(t,r.start),o=hr.ChangeTracker.with(e,s=>sPe(s,e.sourceFile,i));return[ca(F$,o,[f.Change_0_to_1,"=",":"],F$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ss(e,zfe,(t,r)=>sPe(t,r.file,lPe(r.file,r.start)))})}});function cPe(e,t){let r=po(e,t),i=su(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function uPe(e,t,r,i){if(e.replaceNode(t,r,k.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){let o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},k.createToken(28));let l=t.text,u=o.end;for(;uuPe(l,t,i,o));return[ca(W$,s,f.Change_extends_to_implements,W$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[W$],getAllCodeActions:e=>Ss(e,Bfe,(t,r)=>{let i=cPe(r.file,r.start);i&&uPe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function dPe(e,t,r){let i=po(e,t);if(Ve(i)||Xi(i))return{node:i,className:r===Gfe?su(i).name.text:void 0}}function pPe(e,t,{node:r,className:i}){Sp(r),e.replaceNode(t,r,k.createPropertyAccessExpression(i?k.createIdentifier(i):k.createThis(),r))}var z$,Gfe,Vfe,WQe=A({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";ci(),xa(),z$="forgottenThisPropertyAccess",Gfe=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Vfe=[f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.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,Gfe],Aa({errorCodes:Vfe,getCodeActions(e){let{sourceFile:t}=e,r=dPe(t,e.span.start,e.errorCode);if(!r)return;let i=hr.ChangeTracker.with(e,o=>pPe(o,t,r));return[ca(z$,i,[f.Add_0_to_unresolved_variable,r.className||"this"],z$,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[z$],getAllCodeActions:e=>Ss(e,Vfe,(t,r)=>{let i=dPe(r.file,r.start,r.code);i&&pPe(t,e.sourceFile,i)})})}});function zQe(e){return Rs(Hfe,e)}function jfe(e,t,r,i,o){let s=r.getText()[i];if(!zQe(s))return;let l=o?Hfe[s]:`{${fP(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var B$,g9,Ufe,Hfe,BQe=A({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";ci(),xa(),B$="fixInvalidJsxCharacters_expression",g9="fixInvalidJsxCharacters_htmlEntity",Ufe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],Aa({errorCodes:Ufe,fixIds:[B$,g9],getCodeActions(e){let{sourceFile:t,preferences:r,span:i}=e,o=hr.ChangeTracker.with(e,l=>jfe(l,r,t,i.start,!1)),s=hr.ChangeTracker.with(e,l=>jfe(l,r,t,i.start,!0));return[ca(B$,o,f.Wrap_invalid_character_in_an_expression_container,B$,f.Wrap_all_invalid_characters_in_an_expression_container),ca(g9,s,f.Convert_invalid_character_to_its_html_entity_code,g9,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ss(e,Ufe,(t,r)=>jfe(t,e.preferences,r.file,r.start,e.fixId===g9))}}),Hfe={">":">","}":"}"}}});function GQe(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){let o=hr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return ca(v9,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],v9,f.Delete_all_unused_param_tags)}function VQe(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!De(i.parameters))return;let s=e.sourceFile,l=o0(i),u=new Set;for(let b of l)n_(b)&&Ve(b.name)&&u.add(b.name.escapedText);let p=Zt(i.parameters,b=>Ve(b.name)&&!u.has(b.name.escapedText)?b.name.getText(s):void 0);if(p===void 0)return;let g=k.updateJSDocParameterTag(o,o.tagName,k.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),m=hr.ChangeTracker.with(e,b=>b.replaceJSDocComment(s,r,Ft(l,T=>T===o?g:T)));return i_(qfe,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function fPe(e,t){let r=po(e,t);if(r.parent&&n_(r.parent)&&Ve(r.parent.name)){let i=r.parent,o=SS(i),s=u0(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var v9,qfe,Jfe,jQe=A({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";ci(),xa(),v9="deleteUnmatchedParameter",qfe="renameUnmatchedParameter",Jfe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Aa({fixIds:[v9,qfe],errorCodes:Jfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=[],s=fPe(r,i.start);if(s)return In(o,GQe(t,s)),In(o,VQe(t,s)),o},getAllCodeActions:function(t){let r=new Map;return N2(hr.ChangeTracker.with(t,i=>{P2(t,Jfe,({file:o,start:s})=>{let l=fPe(o,s);l&&r.set(l.signature,In(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===v9){let l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}})}});function UQe(e,t,r){let i=ai(po(e,r),Ve);if(!i||i.parent.kind!==183)return;let s=t.getTypeChecker().getSymbolAtLocation(i);return vn(s?.declarations||et,Xm(Eh,tp,tu))}function HQe(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}let o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;let s=i.getTypeChecker();d3(o,u=>{if(bu(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function qQe(e,t,r,i){NI.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var G$,mPe,JQe=A({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";ci(),xa(),G$="fixUnreferenceableDecoratorMetadata",mPe=[f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Aa({errorCodes:mPe,getCodeActions:e=>{let t=UQe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=hr.ChangeTracker.with(e,s=>t.kind===276&&qQe(s,e.sourceFile,t,e.program)),i=hr.ChangeTracker.with(e,s=>HQe(s,e.sourceFile,t,e.program)),o;return r.length&&(o=In(o,i_(G$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=In(o,i_(G$,i,f.Use_import_type))),o},fixIds:[G$]})}});function _Pe(e,t,r){e.replaceNode(t,r.parent,k.createKeywordTypeNode(159))}function jO(e,t){return ca(UO,e,t,U$,f.Delete_all_unused_declarations)}function hPe(e,t,r){e.delete(t,C.checkDefined(aa(r.parent,yj).typeParameters,"The type parameter to delete should exist"))}function Kfe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function gPe(e){return e.kind===102?ai(e.parent,Lc):void 0}function vPe(e,t){return jc(t.parent)&&Ha(t.parent.getChildren(e))===t}function yPe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function KQe(e,t,r){Ke(r.elements,i=>e.delete(t,i))}function XQe(e,t,r,{parent:i}){if(Oi(i)&&i.initializer&&T1(i.initializer))if(jc(i.parent)&&De(i.parent.declarations)>1){let o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:Qv(e.host,e.formatContext.options)+r.text.slice(_W(r.text,s-1),s),suffix:hO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function bPe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=aa(i.parent,MS).typeParameter.name),Ve(i)&&YQe(i)&&(e.replaceNode(r,i,k.createIdentifier(`_${i.text}`)),Co(i.parent)&&jx(i.parent).forEach(o=>{Ve(o.name)&&e.replaceNode(r,o.name,k.createIdentifier(`_${o.name.text}`))})))}function YQe(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function V$(e,t,r,i,o,s,l,u){$Qe(t,r,e,i,o,s,l,u),Ve(t)&&Os.Core.eachSymbolReferenceInFile(t,i,e,p=>{zr(p.parent)&&p.parent.name===p&&(p=p.parent),!u&&tZe(p)&&r.delete(e,p.parent.parent)})}function $Qe(e,t,r,i,o,s,l,u){let{parent:p}=e;if(Co(p))QQe(t,r,p,i,o,s,l,u);else if(!(u&&Ve(e)&&Os.Core.isSymbolReferencedInFile(e,i,r))){let g=Eh(p)?e:Za(p)?p.parent:p;C.assert(g!==r,"should not delete whole source file"),t.delete(r,g)}}function QQe(e,t,r,i,o,s,l,u=!1){if(ZQe(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!Ve(r.name)||Os.Core.isSymbolReferencedInFile(r.name,i,t)))for(let p of r.modifiers)Ia(p)&&e.deleteModifier(t,p);else!r.initializer&&EPe(r,i,o)&&e.delete(t,r)}function EPe(e,t,r){let i=e.parent.parameters.indexOf(e);return!Os.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function ZQe(e,t,r,i,o,s,l){let{parent:u}=r;switch(u.kind){case 174:case 176:let p=u.parameters.indexOf(r),g=jl(u)?u.name:u,m=Os.Core.getReferencedSymbolsForNode(u.pos,g,o,i,s);if(m){for(let b of m)for(let T of b.references)if(T.kind===Os.EntryKind.Node){let I=gN(T.node)&&la(T.node.parent)&&T.node.parent.arguments.length>p,R=zr(T.node.parent)&&gN(T.node.parent.expression)&&la(T.node.parent.parent)&&T.node.parent.parent.arguments.length>p,M=(jl(T.node.parent)||yh(T.node.parent))&&T.node.parent!==r.parent&&T.node.parent.parameters.length>p;if(I||R||M)return!1}}return!0;case 262:return u.name&&eZe(e,t,u.name)?SPe(u,r,l):!0;case 218:case 219:return SPe(u,r,l);case 178:return!1;case 177:return!0;default:return C.failBadSyntaxKind(u)}}function eZe(e,t,r){return!!Os.Core.eachSymbolReferenceInFile(r,e,t,i=>Ve(i)&&la(i.parent)&&i.parent.arguments.includes(i))}function SPe(e,t,r){let i=e.parameters,o=i.indexOf(t);return C.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Ve(s.name)&&!s.symbol.isReferenced):o===i.length-1}function tZe(e){return(_r(e.parent)&&e.parent.left===e||(yH(e.parent)||Qy(e.parent))&&e.parent.operand===e)&&eu(e.parent.parent)}var UO,j$,U$,y9,H$,Xfe,nZe=A({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";ci(),xa(),UO="unusedIdentifier",j$="unusedIdentifier_prefix",U$="unusedIdentifier_delete",y9="unusedIdentifier_deleteImports",H$="unusedIdentifier_infer",Xfe=[f._0_is_declared_but_its_value_is_never_read.code,f._0_is_declared_but_never_used.code,f.Property_0_is_declared_but_its_value_is_never_read.code,f.All_imports_in_import_declaration_are_unused.code,f.All_destructured_elements_are_unused.code,f.All_variables_are_unused.code,f.All_type_parameters_are_unused.code],Aa({errorCodes:Xfe,getCodeActions(e){let{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=po(r,e.span.start);if(am(u))return[jO(hr.ChangeTracker.with(e,b=>b.delete(r,u)),f.Remove_template_tag)];if(u.kind===30){let b=hr.ChangeTracker.with(e,T=>hPe(T,r,u));return[jO(b,f.Remove_type_parameters)]}let p=gPe(u);if(p){let b=hr.ChangeTracker.with(e,T=>T.delete(r,p));return[ca(UO,b,[f.Remove_import_from_0,yoe(p)],y9,f.Delete_all_unused_imports)]}else if(Kfe(u)){let b=hr.ChangeTracker.with(e,T=>V$(r,u,T,s,l,i,o,!1));if(b.length)return[ca(UO,b,[f.Remove_unused_declaration_for_Colon_0,u.getText(r)],y9,f.Delete_all_unused_imports)]}if(om(u.parent)||U1(u.parent)){if(Co(u.parent.parent)){let b=u.parent.elements,T=[b.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,Ft(b,I=>I.getText(r)).join(", ")];return[jO(hr.ChangeTracker.with(e,I=>KQe(I,r,u.parent)),T)]}return[jO(hr.ChangeTracker.with(e,b=>XQe(e,b,r,u.parent)),f.Remove_unused_destructuring_declaration)]}if(vPe(r,u))return[jO(hr.ChangeTracker.with(e,b=>yPe(b,r,u.parent)),f.Remove_variable_statement)];let g=[];if(u.kind===140){let b=hr.ChangeTracker.with(e,I=>_Pe(I,r,u)),T=aa(u.parent,MS).typeParameter.name.text;g.push(ca(UO,b,[f.Replace_infer_0_with_unknown,T],H$,f.Replace_all_unused_infer_with_unknown))}else{let b=hr.ChangeTracker.with(e,T=>V$(r,u,T,s,l,i,o,!1));if(b.length){let T=Za(u.parent)?u.parent:u;g.push(jO(b,[f.Remove_unused_declaration_for_Colon_0,T.getText(r)]))}}let m=hr.ChangeTracker.with(e,b=>bPe(b,t,r,u));return m.length&&g.push(ca(UO,m,[f.Prefix_0_with_an_underscore,u.getText(r)],j$,f.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[j$,U$,y9,H$],getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Ss(e,Xfe,(l,u)=>{let p=po(t,u.start);switch(e.fixId){case j$:bPe(l,u.code,t,p);break;case y9:{let g=gPe(p);g?l.delete(t,g):Kfe(p)&&V$(t,p,l,o,s,r,i,!0);break}case U$:{if(p.kind===140||Kfe(p))break;if(am(p))l.delete(t,p);else if(p.kind===30)hPe(l,t,p);else if(om(p.parent)){if(p.parent.parent.initializer)break;(!Co(p.parent.parent)||EPe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(U1(p.parent.parent)&&p.parent.parent.parent.initializer)break;vPe(t,p)?yPe(l,t,p.parent):V$(t,p,l,o,s,r,i,!0)}break}case H$:p.kind===140&&_Pe(l,t,p);break;default:C.fail(JSON.stringify(e.fixId))}})}})}});function TPe(e,t,r,i,o){let s=po(t,r),l=zn(s,Ki);if(l.getStart(t)!==s.getStart(t)){let p=JSON.stringify({statementKind:C.formatSyntaxKind(l.kind),tokenKind:C.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});C.fail("Token and statement should start at the same point. "+p)}let u=(Xo(l.parent)?l.parent:l).parent;if(!Xo(l.parent)||l===Ha(l.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(Xo(l.parent))break;e.replaceNode(t,l,k.createBlock(et));return}case 247:case 248:e.delete(t,u);return}if(Xo(l.parent)){let p=r+i,g=C.checkDefined(rZe(DU(l.parent.statements,l),m=>m.posTPe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ca(q$,r,f.Remove_unreachable_code,q$,f.Remove_all_unreachable_code)]},fixIds:[q$],getAllCodeActions:e=>Ss(e,Yfe,(t,r)=>TPe(t,r.file,r.start,r.length,r.code))})}});function APe(e,t,r){let i=po(t,r),o=aa(i.parent,J1),s=i.getStart(t),l=o.statement.getStart(t),u=Af(s,l,t)?l:La(t.text,bs(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var J$,$fe,oZe=A({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";ci(),xa(),J$="fixUnusedLabel",$fe=[f.Unused_label.code],Aa({errorCodes:$fe,getCodeActions(e){let t=hr.ChangeTracker.with(e,r=>APe(r,e.sourceFile,e.span.start));return[ca(J$,t,f.Remove_unused_label,J$,f.Remove_all_unused_labels)]},fixIds:[J$],getAllCodeActions:e=>Ss(e,$fe,(t,r)=>APe(t,r.file,r.start))})}});function IPe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function xPe(e,t,r){let i=zn(po(e,t),aZe),o=i&&i.type;return o&&{typeNode:o,type:sZe(r,o)}}function aZe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function sZe(e,t){if(VR(t)){let r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(In([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Qfe,K$,Zfe,lZe=A({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";ci(),xa(),Qfe="fixJSDocTypes_plain",K$="fixJSDocTypes_nullable",Zfe=[f.JSDoc_types_can_only_be_used_inside_documentation_comments.code,f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Aa({errorCodes:Zfe,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),i=xPe(t,e.span.start,r);if(!i)return;let{typeNode:o,type:s}=i,l=o.getText(t),u=[p(s,Qfe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&u.push(p(s,K$,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function p(g,m,b){let T=hr.ChangeTracker.with(e,I=>IPe(I,t,o,g,r));return ca("jdocTypes",T,[f.Change_0_to_1,l,r.typeToString(g)],m,b)}},fixIds:[Qfe,K$],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Ss(e,Zfe,(s,l)=>{let u=xPe(l.file,l.start,o);if(!u)return;let{typeNode:p,type:g}=u,m=p.kind===321&&t===K$?o.getNullableType(g,32768):g;IPe(s,i,p,m,o)})}})}});function RPe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function DPe(e,t){let r=po(e,t);if(zr(r.parent)){let i=r.parent;for(;zr(i.parent);)i=i.parent;return i.name}if(Ve(r))return r}var X$,eme,cZe=A({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";ci(),xa(),X$="fixMissingCallParentheses",eme=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Aa({errorCodes:eme,fixIds:[X$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=DPe(t,r.start);if(!i)return;let o=hr.ChangeTracker.with(e,s=>RPe(s,e.sourceFile,i));return[ca(X$,o,f.Add_missing_call_parentheses,X$,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ss(e,eme,(t,r)=>{let i=DPe(r.file,r.start);i&&RPe(t,r.file,i)})})}});function uZe(e){if(e.type)return e.type;if(Oi(e.parent)&&e.parent.type&&bh(e.parent.type))return e.parent.type.type}function CPe(e,t){let r=po(e,t),i=zp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=bs(i,100,e);break;case 219:let s=i.typeParameters?30:21;o=bs(i,s,e)||Ha(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:uZe(i)}}function NPe(e,t,{insertBefore:r,returnType:i}){if(i){let o=PL(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,k.createTypeReferenceNode("Promise",k.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var Y$,tme,dZe=A({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";ci(),xa(),Y$="fixAwaitInSyncFunction",tme=[f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Aa({errorCodes:tme,getCodeActions(e){let{sourceFile:t,span:r}=e,i=CPe(t,r.start);if(!i)return;let o=hr.ChangeTracker.with(e,s=>NPe(s,t,i));return[ca(Y$,o,f.Add_async_modifier_to_containing_function,Y$,f.Add_all_missing_async_modifiers)]},fixIds:[Y$],getAllCodeActions:function(t){let r=new Map;return Ss(t,tme,(i,o)=>{let s=CPe(o.file,o.start);!s||!xm(r,ss(s.insertBefore))||NPe(i,t.sourceFile,s)})}})}});function PPe(e,t,r,i,o){let s,l;if(i===f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let u=o.program.getTypeChecker(),p=po(e,t).parent;C.assert(Ly(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");let g=p.parent;C.assert(pi(g),"erroneous accessors should only be inside classes");let m=ah(yme(g,u));if(!m)return[];let b=Hi(Zx(p.name)),T=u.getPropertyOfType(u.getTypeAtLocation(m),b);if(!T||!T.valueDeclaration)return[];s=T.valueDeclaration.pos,l=T.valueDeclaration.end,e=Vn(T.valueDeclaration)}else C.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return qPe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var nme,$$,pZe=A({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";ci(),xa(),nme=[f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],$$="fixPropertyOverrideAccessor",Aa({errorCodes:nme,getCodeActions(e){let t=PPe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ca($$,t,f.Generate_get_and_set_accessors,$$,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[$$],getAllCodeActions:e=>Ss(e,nme,(t,r)=>{let i=PPe(r.file,r.start,r.length,r.code,e);if(i)for(let o of i)t.pushRaw(e.sourceFile,o)})})}});function fZe(e,t){switch(e){case f.Parameter_0_implicitly_has_an_1_type.code:case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return vp(zp(t))?f.Infer_type_of_0_from_usage:f.Infer_parameter_types_from_usage;case f.Rest_parameter_0_implicitly_has_an_any_type.code:case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Infer_parameter_types_from_usage;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return f.Infer_this_type_of_0_from_usage;default:return f.Infer_type_of_0_from_usage}}function mZe(e){switch(e){case f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_an_1_type.code;case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Parameter_0_implicitly_has_an_1_type.code;case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Rest_parameter_0_implicitly_has_an_any_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Member_0_implicitly_has_an_1_type.code}return e}function MPe(e,t,r,i,o,s,l,u,p){if(!hC(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;let{parent:g}=r,m=LI(t,o,p,u);switch(i=mZe(i),i){case f.Member_0_implicitly_has_an_1_type.code:case f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Oi(g)&&l(g)||Jo(g)||gp(g))return LPe(e,m,t,g,o,u,s),m.writeFixes(e),g;if(zr(g)){let I=HO(g.name,o,s),R=mP(I,g,o,u);if(R){let M=k.createJSDocTypeTag(void 0,k.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,aa(g.parent.parent,eu),[M])}return m.writeFixes(e),g}return;case f.Variable_0_implicitly_has_an_1_type.code:{let I=o.getTypeChecker().getSymbolAtLocation(r);return I&&I.valueDeclaration&&Oi(I.valueDeclaration)&&l(I.valueDeclaration)?(LPe(e,m,Vn(I.valueDeclaration),I.valueDeclaration,o,u,s),m.writeFixes(e),I.valueDeclaration):void 0}}let b=zp(r);if(b===void 0)return;let T;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(vp(b)){kPe(e,m,t,b,o,u,s),T=b;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(b)){let I=aa(g,Co);_Ze(e,m,t,I,b,o,u,s),T=I}break;case f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Zp(b)&&Ve(b.name)&&(Q$(e,m,t,b,HO(b.name,o,s),o,u),T=b);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:vp(b)&&(kPe(e,m,t,b,o,u,s),T=b);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:hr.isThisTypeAnnotatable(b)&&l(b)&&(hZe(e,t,b,o,u,s),T=b);break;default:return C.fail(String(i))}return m.writeFixes(e),T}function LPe(e,t,r,i,o,s,l){Ve(i.name)&&Q$(e,t,r,i,HO(i.name,o,l),o,s)}function _Ze(e,t,r,i,o,s,l,u){if(!Ve(i.name))return;let p=yZe(o,r,s,u);if(C.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),cr(o))wPe(e,r,p,s,l);else{let g=Bs(o)&&!bs(o,21,r);g&&e.insertNodeBefore(r,Ha(o.parameters),k.createToken(21));for(let{declaration:m,type:b}of p)m&&!m.type&&!m.initializer&&Q$(e,t,r,m,b,s,l);g&&e.insertNodeAfter(r,Ya(o.parameters),k.createToken(22))}}function hZe(e,t,r,i,o,s){let l=OPe(r,t,i,s);if(!l||!l.length)return;let u=ime(i,l,s).thisParameter(),p=mP(u,r,i,o);p&&(cr(r)?gZe(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function gZe(e,t,r,i){e.addJSDocTags(t,r,[k.createJSDocThisTag(void 0,k.createJSDocTypeExpression(i))])}function kPe(e,t,r,i,o,s,l){let u=Xc(i.parameters);if(u&&Ve(i.name)&&Ve(u.name)){let p=HO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=HO(u.name,o,l)),cr(i)?wPe(e,r,[{declaration:u,type:p}],o,s):Q$(e,t,r,u,p,o,s)}}function Q$(e,t,r,i,o,s,l){let u=mP(o,i,s,l);if(u)if(cr(r)&&i.kind!==171){let p=Oi(i)?ai(i.parent.parent,Ml):i;if(!p)return;let g=k.createJSDocTypeExpression(u),m=Zp(i)?k.createJSDocReturnTag(void 0,g,void 0):k.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(r,p,[m])}else vZe(u,i,r,e,t,as(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function vZe(e,t,r,i,o,s){let l=wI(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(Ke(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function wPe(e,t,r,i,o){let s=r.length&&r[0].declaration.parent;if(!s)return;let l=Vi(r,u=>{let p=u.declaration;if(p.initializer||i0(p)||!Ve(p.name))return;let g=u.type&&mP(u.type,p,i,o);if(g){let m=k.cloneNode(p.name);return fr(m,7168),{name:k.cloneNode(p.name),param:p,isOptional:!!u.isOptional,typeNode:g}}});if(l.length)if(Bs(s)||ws(s)){let u=Bs(s)&&!bs(s,21,t);u&&e.insertNodeBefore(t,Ha(s.parameters),k.createToken(21)),Ke(l,({typeNode:p,param:g})=>{let m=k.createJSDocTypeTag(void 0,k.createJSDocTypeExpression(p)),b=k.createJSDocComment(void 0,[m]);e.insertNodeAt(t,g.getStart(t),b,{suffix:" "})}),u&&e.insertNodeAfter(t,Ya(s.parameters),k.createToken(22))}else{let u=Ft(l,({name:p,typeNode:g,isOptional:m})=>k.createJSDocParameterTag(void 0,p,!!m,k.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,s,u)}}function rme(e,t,r){return Vi(Os.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Os.EntryKind.Span?ai(i.node,Ve):void 0)}function HO(e,t,r){let i=rme(e,t,r);return ime(t,i,r).single()}function yZe(e,t,r,i){let o=OPe(e,t,r,i);return o&&ime(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Ve(s.name)?HO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function OPe(e,t,r,i){let o;switch(e.kind){case 176:o=bs(e,137,t);break;case 219:case 218:let s=e.parent;o=(Oi(s)||Jo(s))&&Ve(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return rme(o,r,i)}function ime(e,t,r){let i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Ce=>i.createArrayType(Ce),Promise:Ce=>i.createPromiseType(Ce)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:p,parameters:g,thisParameter:m};function l(){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}}function u(Ce){let Me=new Map;for(let At of Ce)At.properties&&At.properties.forEach((Se,je)=>{Me.has(je)||Me.set(je,[]),Me.get(je).push(Se)});let Fe=new Map;return Me.forEach((At,Se)=>{Fe.set(Se,u(At))}),{isNumber:Ce.some(At=>At.isNumber),isString:Ce.some(At=>At.isString),isNumberOrString:Ce.some(At=>At.isNumberOrString),candidateTypes:Zi(Ce,At=>At.candidateTypes),properties:Fe,calls:Zi(Ce,At=>At.calls),constructs:Zi(Ce,At=>At.constructs),numberIndex:Ke(Ce,At=>At.numberIndex),stringIndex:Ke(Ce,At=>At.stringIndex),candidateThisTypes:Zi(Ce,At=>At.candidateThisTypes),inferredTypes:void 0}}function p(){return he(b(t))}function g(Ce){if(t.length===0||!Ce.parameters)return;let Me=l();for(let At of t)r.throwIfCancellationRequested(),T(At,Me);let Fe=[...Me.constructs||[],...Me.calls||[]];return Ce.parameters.map((At,Se)=>{let je=[],at=$h(At),Bt=!1;for(let Qe of Fe)if(Qe.argumentTypes.length<=Se)Bt=cr(Ce),je.push(i.getUndefinedType());else if(at)for(let gt=Se;gtFe.every(Se=>!Se(At)))}function ne(Ce){return he($(Ce))}function he(Ce){if(!Ce.length)return i.getAnyType();let Me=i.getUnionType([i.getStringType(),i.getNumberType()]),At=G(Ce,[{high:je=>je===i.getStringType()||je===i.getNumberType(),low:je=>je===Me},{high:je=>!(je.flags&16385),low:je=>!!(je.flags&16385)},{high:je=>!(je.flags&114689)&&!(Wr(je)&16),low:je=>!!(Wr(je)&16)}]),Se=At.filter(je=>Wr(je)&16);return Se.length&&(At=At.filter(je=>!(Wr(je)&16)),At.push(ye(Se))),i.getWidenedType(i.getUnionType(At.map(i.getBaseTypeOfLiteralType),2))}function ye(Ce){if(Ce.length===1)return Ce[0];let Me=[],Fe=[],At=[],Se=[],je=!1,at=!1,Bt=Xp();for(let gt of Ce){for(let Nn of i.getPropertiesOfType(gt))Bt.add(Nn.escapedName,Nn.valueDeclaration?i.getTypeOfSymbolAtLocation(Nn,Nn.valueDeclaration):i.getAnyType());Me.push(...i.getSignaturesOfType(gt,0)),Fe.push(...i.getSignaturesOfType(gt,1));let nn=i.getIndexInfoOfType(gt,0);nn&&(At.push(nn.type),je=je||nn.isReadonly);let rn=i.getIndexInfoOfType(gt,1);rn&&(Se.push(rn.type),at=at||rn.isReadonly)}let yt=fne(Bt,(gt,nn)=>{let rn=nn.lengthi.getBaseTypeOfLiteralType(Bt)),at=(At=Ce.calls)!=null&&At.length?Y(Ce):void 0;return at&&je?Se.push(i.getUnionType([at,...je],2)):(at&&Se.push(at),De(je)&&Se.push(...je)),Se.push(...oe(Ce)),Se}function Y(Ce){let Me=new Map;Ce.properties&&Ce.properties.forEach((je,at)=>{let Bt=i.createSymbol(4,at);Bt.links.type=ne(je),Me.set(at,Bt)});let Fe=Ce.calls?[Le(Ce.calls)]:[],At=Ce.constructs?[Le(Ce.constructs)]:[],Se=Ce.stringIndex?[i.createIndexInfo(i.getStringType(),ne(Ce.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Me,Fe,At,Se)}function oe(Ce){if(!Ce.properties||!Ce.properties.size)return[];let Me=s.filter(Fe=>fe(Fe,Ce));return 0Ne(Fe,Ce)):[]}function fe(Ce,Me){return Me.properties?!Bc(Me.properties,(Fe,At)=>{let Se=i.getTypeOfPropertyOfType(Ce,At);return Se?Fe.calls?!i.getSignaturesOfType(Se,0).length||!i.isTypeAssignableTo(Se,ve(Fe.calls)):!i.isTypeAssignableTo(Se,ne(Fe)):!0}):!1}function Ne(Ce,Me){if(!(Wr(Ce)&4)||!Me.properties)return Ce;let Fe=Ce.target,At=ah(Fe.typeParameters);if(!At)return Ce;let Se=[];return Me.properties.forEach((je,at)=>{let Bt=i.getTypeOfPropertyOfType(Fe,at);C.assert(!!Bt,"generic should have all the properties of its reference."),Se.push(...me(Bt,ne(je),At))}),o[Ce.symbol.escapedName](he(Se))}function me(Ce,Me,Fe){if(Ce===Fe)return[Me];if(Ce.flags&3145728)return Zi(Ce.types,je=>me(je,Me,Fe));if(Wr(Ce)&4&&Wr(Me)&4){let je=i.getTypeArguments(Ce),at=i.getTypeArguments(Me),Bt=[];if(je&&at)for(let yt=0;ytSe.argumentTypes.length));for(let Se=0;Seat.argumentTypes[Se]||i.getUndefinedType())),Ce.some(at=>at.argumentTypes[Se]===void 0)&&(je.flags|=16777216),Me.push(je)}let At=ne(u(Ce.map(Se=>Se.return_)));return i.createSignature(void 0,void 0,void 0,Me,At,void 0,Fe,0)}function He(Ce,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Ce.candidateTypes||(Ce.candidateTypes=[])).push(Me)}function Ee(Ce,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Ce.candidateThisTypes||(Ce.candidateThisTypes=[])).push(Me)}}var Z$,ome,bZe=A({"src/services/codefixes/inferFromUsage.ts"(){"use strict";ci(),xa(),Z$="inferFromUsage",ome=[f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,f.Variable_0_implicitly_has_an_1_type.code,f.Parameter_0_implicitly_has_an_1_type.code,f.Rest_parameter_0_implicitly_has_an_any_type.code,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,f.Member_0_implicitly_has_an_1_type.code,f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Aa({errorCodes:ome,getCodeActions(e){let{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,p=po(t,i),g,m=hr.ChangeTracker.with(e,T=>{g=MPe(T,t,p,o,r,s,Dv,l,u)}),b=g&&Oo(g);return!b||m.length===0?void 0:[ca(Z$,m,[fZe(o,p),pc(b)],Z$,f.Infer_all_types_from_usage)]},fixIds:[Z$],getAllCodeActions(e){let{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=xI();return Ss(e,ome,(u,p)=>{MPe(u,t,po(p.file,p.start),p.code,r,i,l,o,s)})}})}});function FPe(e,t,r){if(cr(e))return;let i=po(e,r),o=zn(i,zs),s=o?.type;if(!s)return;let l=t.getTypeFromTypeNode(s),u=t.getAwaitedType(l)||t.getVoidType(),p=t.typeToTypeNode(u,s,void 0);if(p)return{returnTypeNode:s,returnType:l,promisedTypeNode:p,promisedType:u}}function WPe(e,t,r,i){e.replaceNode(t,r,k.createTypeReferenceNode("Promise",[i]))}var eQ,ame,EZe=A({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";ci(),xa(),eQ="fixReturnTypeInAsyncFunction",ame=[f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Aa({errorCodes:ame,fixIds:[eQ],getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=FPe(r,i.getTypeChecker(),o.start);if(!l)return;let{returnTypeNode:u,returnType:p,promisedTypeNode:g,promisedType:m}=l,b=hr.ChangeTracker.with(t,T=>WPe(T,r,u,g));return[ca(eQ,b,[f.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(m)],eQ,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ss(e,ame,(t,r)=>{let i=FPe(r.file,e.program.getTypeChecker(),r.start);i&&WPe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function zPe(e,t,r,i){let{line:o}=Es(t,r);(!i||Av(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var sme,lme,cme,SZe=A({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";ci(),xa(),sme="disableJsDiagnostics",lme="disableJsDiagnostics",cme=Vi(Object.keys(f),e=>{let t=f[e];return t.category===1?t.code:void 0}),Aa({errorCodes:cme,getCodeActions:function(t){let{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!cr(r)||!hk(r,i.getCompilerOptions()))return;let u=r.checkJsDirective?"":Qv(s,l.options),p=[i_(sme,[GDe(r.fileName,[aO(r.checkJsDirective?dc(r.checkJsDirective.pos,r.checkJsDirective.end):vu(0,0),`// @ts-nocheck${u}`)])],f.Disable_checking_for_this_file)];return hr.isValidLocationToAddComment(r,o.start)&&p.unshift(ca(sme,hr.ChangeTracker.with(t,g=>zPe(g,r,o.start)),f.Ignore_this_error_message,lme,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[lme],getAllCodeActions:e=>{let t=new Set;return Ss(e,cme,(r,i)=>{hr.isValidLocationToAddComment(i.file,i.start)&&zPe(r,i.file,i.start,t)})}})}});function ume(e,t,r,i,o,s,l){let u=e.symbol.members;for(let p of t)u.has(p.escapedName)||BPe(p,e,r,i,o,s,l,void 0)}function L2(e){return{trackSymbol:()=>!1,moduleResolverHost:aX(e.program,e.host)}}function BPe(e,t,r,i,o,s,l,u,p=3,g=!1){let m=e.getDeclarations(),b=Xc(m),T=i.program.getTypeChecker(),I=as(i.program.getCompilerOptions()),R=b?.kind??171,M=oe(e,b),N=b?cd(b):0,O=N&256;O|=N&1?1:N&4?4:0,b&&kd(b)&&(O|=512);let H=ne(),K=T.getWidenedType(T.getTypeOfSymbolAtLocation(e,t)),Z=!!(e.flags&16777216),V=!!(t.flags&33554432)||g,ue=af(r,o);switch(R){case 171:case 172:let fe=ue===0?268435456:void 0,Ne=T.typeToTypeNode(K,t,fe,L2(i));if(s){let ie=wI(Ne,I);ie&&(Ne=ie.typeNode,k2(s,ie.symbols))}l(k.createPropertyDeclaration(H,b?ye(M):e.getName(),Z&&p&2?k.createToken(58):void 0,Ne,void 0));break;case 177:case 178:{C.assertIsDefined(m);let ie=T.typeToTypeNode(K,t,void 0,L2(i)),ve=RS(m,b),Le=ve.secondAccessor?[ve.firstAccessor,ve.secondAccessor]:[ve.firstAccessor];if(s){let He=wI(ie,I);He&&(ie=He.typeNode,k2(s,He.symbols))}for(let He of Le)if(Zp(He))l(k.createGetAccessorDeclaration(H,ye(M),et,Y(ie),$(u,ue,V)));else{C.assertNode(He,vp,"The counterpart to a getter should be a setter");let Ee=zC(He),Ce=Ee&&Ve(Ee.name)?Sr(Ee.name):void 0;l(k.createSetAccessorDeclaration(H,ye(M),pme(1,[Ce],[Y(ie)],1,!1),$(u,ue,V)))}break}case 173:case 174:C.assertIsDefined(m);let me=K.isUnion()?Zi(K.types,ie=>ie.getCallSignatures()):K.getCallSignatures();if(!Et(me))break;if(m.length===1){C.assert(me.length===1,"One declaration implies one signature");let ie=me[0];G(ue,ie,H,ye(M),$(u,ue,V));break}for(let ie of me)G(ue,ie,H,ye(M));if(!V)if(m.length>me.length){let ie=T.getSignatureFromDeclaration(m[m.length-1]);G(ue,ie,H,ye(M),$(u,ue))}else C.assert(m.length===me.length,"Declarations and signatures should match count"),l(IZe(T,i,t,me,ye(M),Z&&!!(p&1),H,ue,u));break}function G(fe,Ne,me,ie,ve){let Le=tQ(174,i,fe,Ne,ve,ie,me,Z&&!!(p&1),t,s);Le&&l(Le)}function ne(){let fe;return O&&(fe=Dx(fe,k.createModifiersFromModifierFlags(O))),he()&&(fe=In(fe,k.createToken(164))),fe&&k.createNodeArray(fe)}function he(){return!!(i.program.getCompilerOptions().noImplicitOverride&&b&&F1(b))}function ye(fe){return Ve(fe)&&fe.escapedText==="constructor"?k.createComputedPropertyName(k.createStringLiteral(Sr(fe),ue===0)):sl(fe,!1)}function $(fe,Ne,me){return me?void 0:sl(fe,!1)||fme(Ne)}function Y(fe){return sl(fe,!1)}function oe(fe,Ne){if(Al(fe)&262144){let me=fe.links.nameType;if(me&&nm(me))return k.createIdentifier(Hi(rm(me)))}return sl(Oo(Ne),!1)}}function tQ(e,t,r,i,o,s,l,u,p,g){let m=t.program,b=m.getTypeChecker(),T=as(m.getCompilerOptions()),I=cr(p),R=524545|(r===0?268435456:0),M=b.signatureToSignatureDeclaration(i,e,p,R,L2(t));if(!M)return;let N=I?void 0:M.typeParameters,O=M.parameters,H=I?void 0:M.type;if(g){if(N){let ue=Io(N,G=>{let ne=G.constraint,he=G.default;if(ne){let ye=wI(ne,T);ye&&(ne=ye.typeNode,k2(g,ye.symbols))}if(he){let ye=wI(he,T);ye&&(he=ye.typeNode,k2(g,ye.symbols))}return k.updateTypeParameterDeclaration(G,G.modifiers,G.name,ne,he)});N!==ue&&(N=dt(k.createNodeArray(ue,N.hasTrailingComma),N))}let V=Io(O,ue=>{let G=I?void 0:ue.type;if(G){let ne=wI(G,T);ne&&(G=ne.typeNode,k2(g,ne.symbols))}return k.updateParameterDeclaration(ue,ue.modifiers,ue.dotDotDotToken,ue.name,I?void 0:ue.questionToken,G,ue.initializer)});if(O!==V&&(O=dt(k.createNodeArray(V,O.hasTrailingComma),O)),H){let ue=wI(H,T);ue&&(H=ue.typeNode,k2(g,ue.symbols))}}let K=u?k.createToken(58):void 0,Z=M.asteriskToken;if(ws(M))return k.updateFunctionExpression(M,l,M.asteriskToken,ai(s,Ve),N,O,H,o??M.body);if(Bs(M))return k.updateArrowFunction(M,l,N,O,H,M.equalsGreaterThanToken,o??M.body);if(jl(M))return k.updateMethodDeclaration(M,l,Z,s??k.createIdentifier(""),K,N,O,H,o);if(Sc(M))return k.updateFunctionDeclaration(M,l,M.asteriskToken,ai(s,Ve),N,O,H,o??M.body)}function dme(e,t,r,i,o,s,l){let u=af(t.sourceFile,t.preferences),p=as(t.program.getCompilerOptions()),g=L2(t),m=t.program.getTypeChecker(),b=cr(l),{typeArguments:T,arguments:I,parent:R}=i,M=b?void 0:m.getContextualType(i),N=Ft(I,he=>Ve(he)?he.text:zr(he)&&Ve(he.name)?he.name.text:void 0),O=b?[]:Ft(I,he=>m.getTypeAtLocation(he)),{argumentTypeNodes:H,argumentTypeParameters:K}=jPe(m,r,O,l,p,1,g),Z=s?k.createNodeArray(k.createModifiersFromModifierFlags(s)):void 0,V=Z7(R)?k.createToken(42):void 0,ue=b?void 0:TZe(m,K,T),G=pme(I.length,N,H,void 0,b),ne=b||M===void 0?void 0:m.typeToTypeNode(M,l,void 0,g);switch(e){case 174:return k.createMethodDeclaration(Z,V,o,void 0,ue,G,ne,fme(u));case 173:return k.createMethodSignature(Z,o,void 0,ue,G,ne===void 0?k.createKeywordTypeNode(159):ne);case 262:return C.assert(typeof o=="string"||Ve(o),"Unexpected name"),k.createFunctionDeclaration(Z,V,o,ue,G,ne,b9(f.Function_not_implemented.message,u));default:C.fail("Unexpected kind")}}function TZe(e,t,r){let i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){let s=r.filter(u=>!t.some(p=>{var g;return e.getTypeAtLocation(u)===((g=p[1])==null?void 0:g.argumentType)})),l=i.size+s.length;for(let u=0;i.size{var l;return k.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function GPe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function nQ(e,t,r,i,o,s,l){let u=e.typeToTypeNode(r,i,s,l);if(u&&lg(u)){let p=wI(u,o);p&&(k2(t,p.symbols),u=p.typeNode)}return sl(u)}function VPe(e){return e.isUnionOrIntersection()?e.types.some(VPe):e.flags&262144}function jPe(e,t,r,i,o,s,l){let u=[],p=new Map;for(let g=0;g=i?k.createToken(58):void 0,o?void 0:r?.[u]||k.createKeywordTypeNode(159),void 0);s.push(m)}return s}function IZe(e,t,r,i,o,s,l,u,p){let g=i[0],m=i[0].minArgumentCount,b=!1;for(let M of i)m=Math.min(M.minArgumentCount,m),Xu(M)&&(b=!0),M.parameters.length>=g.parameters.length&&(!Xu(M)||Xu(g))&&(g=M);let T=g.parameters.length-(Xu(g)?1:0),I=g.parameters.map(M=>M.name),R=pme(T,I,void 0,m,!1);if(b){let M=k.createParameterDeclaration(void 0,k.createToken(26),I[T]||"rest",T>=m?k.createToken(58):void 0,k.createArrayTypeNode(k.createKeywordTypeNode(159)),void 0);R.push(M)}return RZe(l,o,s,void 0,R,xZe(i,e,t,r),u,p)}function xZe(e,t,r,i){if(De(e)){let o=t.getUnionType(Ft(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,L2(r))}}function RZe(e,t,r,i,o,s,l,u){return k.createMethodDeclaration(e,void 0,t,r?k.createToken(58):void 0,i,o,s,u||fme(l))}function fme(e){return b9(f.Method_not_implemented.message,e)}function b9(e,t){return k.createBlock([k.createThrowStatement(k.createNewExpression(k.createIdentifier("Error"),void 0,[k.createStringLiteral(e,t===0)]))],!0)}function mme(e,t,r){let i=IC(t);if(!i)return;let o=hme(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,rQ("compilerOptions",k.createObjectLiteralExpression(r.map(([l,u])=>rQ(l,u)),!0)));return}let s=o.initializer;if(wa(s))for(let[l,u]of r){let p=hme(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,rQ(l,u)):e.replaceNode(t,p.initializer,u)}}function _me(e,t,r,i){mme(e,t,[[r,i]])}function rQ(e,t){return k.createPropertyAssignment(k.createStringLiteral(e),t)}function hme(e,t){return vn(e.properties,r=>_c(r)&&!!r.name&&Na(r.name)&&r.name.text===t)}function wI(e,t){let r,i=rt(e,o,qi);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(zy(s)&&s.qualifier){let l=Bp(s.qualifier),u=xW(l.symbol,t),p=u!==l.text?HPe(s.qualifier,k.createIdentifier(u)):s.qualifier;r=In(r,l.symbol);let g=Bn(s.typeArguments,o,qi);return k.createTypeReferenceNode(p,g)}return An(s,o,void 0)}}function HPe(e,t){return e.kind===80?t:k.createQualifiedName(HPe(e.left,t),e.right)}function k2(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function gme(e,t){let r=ql(t),i=po(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(vme||{})}});function qPe(e,t,r,i,o,s){let l=XPe(e,t,r,i);if(!l||NI.isRefactorErrorInfo(l))return;let u=hr.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:g,fieldName:m,accessorName:b,originalName:T,type:I,container:R,declaration:M}=l;Sp(m),Sp(b),Sp(M),Sp(R);let N,O;if(pi(R)){let K=cd(M);if(ld(e)){let Z=k.createModifiersFromModifierFlags(K);N=Z,O=Z}else N=k.createModifiersFromModifierFlags(PZe(K)),O=k.createModifiersFromModifierFlags(MZe(K));US(M)&&(O=xo(Ny(M),O))}FZe(u,e,M,I,m,O);let H=LZe(m,b,I,N,p,R);if(Sp(H),YPe(u,e,H,M,R),g){let K=ig(R);K&&WZe(u,e,K,m.text,T)}else{let K=kZe(m,b,I,N,p,R);Sp(K),YPe(u,e,K,M,R)}return u.getChanges()}function CZe(e){return Ve(e)||Na(e)}function NZe(e){return pp(e,e.parent)||Jo(e)||_c(e)}function JPe(e,t){return Ve(t)?k.createIdentifier(e):k.createStringLiteral(e)}function KPe(e,t,r){let i=t?r.name:k.createThis();return Ve(e)?k.createPropertyAccessExpression(i,e):k.createElementAccessExpression(i,k.createStringLiteralFromNode(e))}function PZe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function MZe(e){return e&=-2,e&=-5,e|=2,e}function XPe(e,t,r,i,o=!0){let s=po(e,r),l=r===i&&o,u=zn(s.parent,NZe),p=271;if(!u||!(XF(u.name,e,r,i)||l))return{error:Bo(f.Could_not_find_property_for_which_to_generate_accessor)};if(!CZe(u.name))return{error:Bo(f.Name_is_not_valid)};if((cd(u)&98303|p)!==p)return{error:Bo(f.Can_only_convert_property_with_modifier)};let g=u.name.text,m=PX(g),b=JPe(m?g:tT(`_${g}`,e),u.name),T=JPe(m?tT(g.substring(1),e):g,u.name);return{isStatic:fc(u),isReadonly:BC(u),type:zZe(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:b,accessorName:T,renameAccessor:m}}function LZe(e,t,r,i,o,s){return k.createGetAccessorDeclaration(i,t,[],r,k.createBlock([k.createReturnStatement(KPe(e,o,s))],!0))}function kZe(e,t,r,i,o,s){return k.createSetAccessorDeclaration(i,t,[k.createParameterDeclaration(void 0,void 0,k.createIdentifier("value"),void 0,r)],k.createBlock([k.createExpressionStatement(k.createAssignment(KPe(e,o,s),k.createIdentifier("value")))],!0))}function wZe(e,t,r,i,o,s){let l=k.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function OZe(e,t,r,i){let o=k.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=k.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function FZe(e,t,r,i,o,s){Jo(r)?wZe(e,t,r,i,o,s):_c(r)?OZe(e,t,r,o):e.replaceNode(t,r,k.updateParameterDeclaration(r,s,r.dotDotDotToken,aa(o,Ve),r.questionToken,r.type,r.initializer))}function YPe(e,t,r,i,o){pp(i,i.parent)?e.insertMemberAtStart(t,o,r):_c(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function WZe(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){Ys(l)&&l.expression.kind===110&&Na(l.argumentExpression)&&l.argumentExpression.text===o&&BA(l)&&e.replaceNode(t,l.argumentExpression,k.createStringLiteral(i)),zr(l)&&l.expression.kind===110&&l.name.text===o&&BA(l)&&e.replaceNode(t,l.name,k.createIdentifier(i)),!ea(l)&&!pi(l)&&l.forEachChild(s)})}function zZe(e,t){let r=Kie(e);if(Jo(e)&&r&&e.questionToken){let i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){let s=Xy(r)?r.types:[r];return k.createUnionTypeNode([...s,k.createKeywordTypeNode(157)])}}return r}function yme(e,t){let r=[];for(;e;){let i=M1(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;let s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&vn(s.declarations,pi);if(!l)break;r.push(l),e=l}return r}var BZe=A({"src/services/codefixes/generateAccessors.ts"(){"use strict";ci()}});function GZe(e,t){let r=Vn(t),i=dR(t),o=e.program.getCompilerOptions(),s=[];return s.push($Pe(e,r,t,$v(i.name,void 0,t.moduleSpecifier,af(r,e.preferences)))),ku(o)===1&&s.push($Pe(e,r,t,k.createImportEqualsDeclaration(void 0,!1,i.name,k.createExternalModuleReference(t.moduleSpecifier)))),s}function $Pe(e,t,r,i){let o=hr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return i_(bme,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function VZe(e){let t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?213:214,i=zn(po(t,e.span.start),s=>s.kind===r);if(!i)return[];let o=i.expression;return QPe(e,o)}function jZe(e){let t=e.sourceFile,r=zn(po(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?QPe(e,r):[]}function QPe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&fh(r.symbol)&&r.symbol.links.originatingImport))return[];let i=[],o=r.symbol.links.originatingImport;if(Wp(o)||Jr(i,GZe(e,o)),bt(t)&&!(od(t.parent)&&t.parent.name===t)){let s=e.sourceFile,l=hr.ChangeTracker.with(e,u=>u.replaceNode(s,t,k.createPropertyAccessExpression(t,"default"),{}));i.push(i_(bme,l,f.Use_synthetic_default_member))}return i}var bme,UZe=A({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";ci(),xa(),bme="invalidImportSyntax",Aa({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:VZe}),Aa({errorCodes:[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_does_not_satisfy_the_constraint_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_predicate_0_is_not_assignable_to_1.code,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,f._0_index_type_1_is_not_assignable_to_2_index_type_3.code,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:jZe})}});function ZPe(e,t){let r=po(e,t);if(Ve(r)&&Jo(r.parent)){let i=yu(r.parent);if(i)return{type:i,prop:r.parent,isJs:cr(r.parent)}}}function HZe(e,t){if(t.isJs)return;let r=hr.ChangeTracker.with(e,i=>eMe(i,e.sourceFile,t.prop));return ca(iQ,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],oQ,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function eMe(e,t,r){Sp(r);let i=k.updatePropertyDeclaration(r,r.modifiers,r.name,k.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function qZe(e,t){let r=hr.ChangeTracker.with(e,i=>tMe(i,e.sourceFile,t));return ca(iQ,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],aQ,f.Add_undefined_type_to_all_uninitialized_properties)}function tMe(e,t,r){let i=k.createKeywordTypeNode(157),o=Xy(r.type)?r.type.types.concat(i):[r.type,i],s=k.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[k.createJSDocTypeTag(void 0,k.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function JZe(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),i=rMe(r,t.prop);if(!i)return;let o=hr.ChangeTracker.with(e,s=>nMe(s,e.sourceFile,t.prop,i));return ca(iQ,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],sQ,f.Add_initializers_to_all_uninitialized_properties)}function nMe(e,t,r,i){Sp(r);let o=k.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function rMe(e,t){return iMe(e,e.getTypeFromTypeNode(t.type))}function iMe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?k.createFalse():k.createTrue();if(t.isStringLiteral())return k.createStringLiteral(t.value);if(t.isNumberLiteral())return k.createNumericLiteral(t.value);if(t.flags&2048)return k.createBigIntLiteral(t.value);if(t.isUnion())return Zt(t.types,r=>iMe(e,r));if(t.isClass()){let r=Bg(t.symbol);if(!r||ei(r,64))return;let i=ig(r);return i&&i.parameters.length?void 0:k.createNewExpression(k.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return k.createArrayLiteralExpression()}var iQ,oQ,aQ,sQ,Eme,KZe=A({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";ci(),xa(),iQ="strictClassInitialization",oQ="addMissingPropertyDefiniteAssignmentAssertions",aQ="addMissingPropertyUndefinedType",sQ="addMissingPropertyInitializer",Eme=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Aa({errorCodes:Eme,getCodeActions:function(t){let r=ZPe(t.sourceFile,t.span.start);if(!r)return;let i=[];return In(i,qZe(t,r)),In(i,HZe(t,r)),In(i,JZe(t,r)),i},fixIds:[oQ,aQ,sQ],getAllCodeActions:e=>Ss(e,Eme,(t,r)=>{let i=ZPe(r.file,r.start);if(i)switch(e.fixId){case oQ:eMe(t,r.file,i.prop);break;case aQ:tMe(t,r.file,i);break;case sQ:let o=e.program.getTypeChecker(),s=rMe(o,i.prop);if(!s)return;nMe(t,r.file,i.prop,s);break;default:C.fail(JSON.stringify(e.fixId))}})})}});function oMe(e,t,r){let{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:u}=r;e.replaceNode(t,l,o&&!i?k.createImportEqualsDeclaration(void 0,!1,o,k.createExternalModuleReference(u)):k.createImportDeclaration(void 0,k.createImportClause(!1,o,s),u,void 0))}function aMe(e,t,r){let{parent:i}=po(e,r);Sd(i,!0)||C.failBadSyntaxKind(i);let o=aa(i.parent,Oi),s=ai(o.name,Ve),l=om(o.name)?XZe(o.name):void 0;if(s||l)return{allowSyntheticDefaults:NS(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:aa(o.parent.parent,Ml),required:Ha(i.arguments)}}function XZe(e){let t=[];for(let r of e.elements){if(!Ve(r.name)||r.initializer)return;t.push(k.createImportSpecifier(!1,ai(r.propertyName,Ve),r.name))}if(t.length)return k.createNamedImports(t)}var lQ,Sme,YZe=A({"src/services/codefixes/requireInTs.ts"(){"use strict";ci(),xa(),lQ="requireInTs",Sme=[f.require_call_may_be_converted_to_an_import.code],Aa({errorCodes:Sme,getCodeActions(e){let t=aMe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=hr.ChangeTracker.with(e,i=>oMe(i,e.sourceFile,t));return[ca(lQ,r,f.Convert_require_to_import,lQ,f.Convert_all_require_to_import)]},fixIds:[lQ],getAllCodeActions:e=>Ss(e,Sme,(t,r)=>{let i=aMe(r.file,e.program,r.start);i&&oMe(t,e.sourceFile,i)})})}});function sMe(e,t){let r=po(e,t);if(!Ve(r))return;let{parent:i}=r;if(tu(i)&&Th(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Zy(i)){let o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function lMe(e,t,r,i){e.replaceNode(t,r.importNode,$v(r.name,void 0,r.moduleSpecifier,af(t,i)))}var cQ,Tme,$Ze=A({"src/services/codefixes/useDefaultImport.ts"(){"use strict";ci(),xa(),cQ="useDefaultImport",Tme=[f.Import_may_be_converted_to_a_default_import.code],Aa({errorCodes:Tme,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,i=sMe(t,r);if(!i)return;let o=hr.ChangeTracker.with(e,s=>lMe(s,t,i,e.preferences));return[ca(cQ,o,f.Convert_to_default_import,cQ,f.Convert_all_to_default_imports)]},fixIds:[cQ],getAllCodeActions:e=>Ss(e,Tme,(t,r)=>{let i=sMe(r.file,r.start);i&&lMe(t,r.file,i,e.preferences)})})}});function cMe(e,t,r){let i=ai(po(t,r.start),hp);if(!i)return;let o=i.getText(t)+"n";e.replaceNode(t,i,k.createBigIntLiteral(o))}var uQ,Ame,QZe=A({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";ci(),xa(),uQ="useBigintLiteral",Ame=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Aa({errorCodes:Ame,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>cMe(i,t.sourceFile,t.span));if(r.length>0)return[ca(uQ,r,f.Convert_to_a_bigint_numeric_literal,uQ,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[uQ],getAllCodeActions:e=>Ss(e,Ame,(t,r)=>cMe(t,r.file,r))})}});function uMe(e,t){let r=po(e,t);return C.assert(r.kind===102,"This token should be an ImportKeyword"),C.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function dMe(e,t,r){let i=k.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var pMe,dQ,Ime,ZZe=A({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";ci(),xa(),pMe="fixAddModuleReferTypeMissingTypeof",dQ=pMe,Ime=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Aa({errorCodes:Ime,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=uMe(r,i.start),s=hr.ChangeTracker.with(t,l=>dMe(l,r,o));return[ca(dQ,s,f.Add_missing_typeof,dQ,f.Add_missing_typeof)]},fixIds:[dQ],getAllCodeActions:e=>Ss(e,Ime,(t,r)=>dMe(t,e.sourceFile,uMe(r.file,r.start)))})}});function fMe(e,t){let o=po(e,t).parent.parent;if(!(!_r(o)&&(o=o.parent,!_r(o)))&&Fl(o.operatorToken))return o}function mMe(e,t,r){let i=eet(r);i&&e.replaceNode(t,r,k.createJsxFragment(k.createJsxOpeningFragment(),i,k.createJsxJsxClosingFragment()))}function eet(e){let t=[],r=e;for(;;)if(_r(r)&&Fl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),hL(r.right))return t.push(r.right),t;if(_r(r.right)){r=r.right;continue}else return}else return}var pQ,xme,tet=A({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";ci(),xa(),pQ="wrapJsxInFragment",xme=[f.JSX_expressions_must_have_one_parent_element.code],Aa({errorCodes:xme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=fMe(r,i.start);if(!o)return;let s=hr.ChangeTracker.with(t,l=>mMe(l,r,o));return[ca(pQ,s,f.Wrap_in_JSX_fragment,pQ,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[pQ],getAllCodeActions:e=>Ss(e,xme,(t,r)=>{let i=fMe(e.sourceFile,r.start);i&&mMe(t,e.sourceFile,i)})})}});function _Me(e,t){let r=po(e,t),i=ai(r.parent.parent,j1);if(!i)return;let o=fd(i.parent)?i.parent:ai(i.parent.parent,Dm);if(o)return{indexSignature:i,container:o}}function net(e,t){return k.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function hMe(e,t,{indexSignature:r,container:i}){let s=(fd(i)?i.members:i.type.members).filter(m=>!j1(m)),l=Ha(r.parameters),u=k.createTypeParameterDeclaration(void 0,aa(l.name,Ve),l.type),p=k.createMappedTypeNode(BC(r)?k.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),g=k.createIntersectionTypeNode([...PC(i),p,...s.length?[k.createTypeLiteralNode(s)]:et]);e.replaceNode(t,i,net(i,g))}var fQ,Rme,ret=A({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";ci(),xa(),fQ="fixConvertToMappedObjectType",Rme=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Aa({errorCodes:Rme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=_Me(r,i.start);if(!o)return;let s=hr.ChangeTracker.with(t,u=>hMe(u,r,o)),l=Sr(o.container.name);return[ca(fQ,s,[f.Convert_0_to_mapped_object_type,l],fQ,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[fQ],getAllCodeActions:e=>Ss(e,Rme,(t,r)=>{let i=_Me(r.file,r.start);i&&hMe(t,r.file,i)})})}}),Dme,gMe,iet=A({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";ci(),xa(),Dme="removeAccidentalCallParentheses",gMe=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Aa({errorCodes:gMe,getCodeActions(e){let t=zn(po(e.sourceFile,e.span.start),la);if(!t)return;let r=hr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[i_(Dme,r,f.Remove_parentheses)]},fixIds:[Dme]})}});function vMe(e,t,r){let i=ai(po(t,r.start),u=>u.kind===135),o=i&&ai(i.parent,$y);if(!o)return;let s=o;if(Wd(o.parent)){let u=xR(o.expression,!1);if(Ve(u)){let p=Ac(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var mQ,Cme,oet=A({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";ci(),xa(),mQ="removeUnnecessaryAwait",Cme=[f.await_has_no_effect_on_the_type_of_this_expression.code],Aa({errorCodes:Cme,getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>vMe(i,t.sourceFile,t.span));if(r.length>0)return[ca(mQ,r,f.Remove_unnecessary_await,mQ,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[mQ],getAllCodeActions:e=>Ss(e,Cme,(t,r)=>vMe(t,r.file,r))})}});function yMe(e,t){return zn(po(e,t.start),Lc)}function bMe(e,t,r){if(!t)return;let i=C.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,k.updateImportDeclaration(t,t.modifiers,k.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,k.createImportDeclaration(void 0,k.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var Nme,_Q,aet=A({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";ci(),xa(),Nme=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],_Q="splitTypeOnlyImport",Aa({errorCodes:Nme,fixIds:[_Q],getCodeActions:function(t){let r=hr.ChangeTracker.with(t,i=>bMe(i,yMe(t.sourceFile,t.span),t));if(r.length)return[ca(_Q,r,f.Split_into_two_separate_import_declarations,_Q,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ss(e,Nme,(t,r)=>{bMe(t,yMe(e.sourceFile,r),e)})})}});function EMe(e,t,r){var i;let s=r.getTypeChecker().getSymbolAtLocation(po(e,t));if(s===void 0)return;let l=ai((i=s?.valueDeclaration)==null?void 0:i.parent,jc);if(l===void 0)return;let u=bs(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function SMe(e,t,r){e.replaceNode(t,r,k.createToken(121))}var hQ,Pme,set=A({"src/services/codefixes/convertConstToLet.ts"(){"use strict";ci(),xa(),hQ="fixConvertConstToLet",Pme=[f.Cannot_assign_to_0_because_it_is_a_constant.code],Aa({errorCodes:Pme,getCodeActions:function(t){let{sourceFile:r,span:i,program:o}=t,s=EMe(r,i.start,o);if(s===void 0)return;let l=hr.ChangeTracker.with(t,u=>SMe(u,r,s.token));return[Npe(hQ,l,f.Convert_const_to_let,hQ,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,r=new Map;return N2(hr.ChangeTracker.with(e,i=>{P2(e,Pme,o=>{let s=EMe(o.file,o.start,t);if(s&&xm(r,Ta(s.symbol)))return SMe(i,o.file,s.token)})}))},fixIds:[hQ]})}});function TMe(e,t,r){let i=po(e,t);return i.kind===27&&i.parent&&(wa(i.parent)||pd(i.parent))?{node:i}:void 0}function AMe(e,t,{node:r}){let i=k.createToken(28);e.replaceNode(t,r,i)}var gQ,IMe,Mme,cet=A({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";ci(),xa(),gQ="fixExpectedComma",IMe=f._0_expected.code,Mme=[IMe],Aa({errorCodes:Mme,getCodeActions(e){let{sourceFile:t}=e,r=TMe(t,e.span.start,e.errorCode);if(!r)return;let i=hr.ChangeTracker.with(e,o=>AMe(o,t,r));return[ca(gQ,i,[f.Change_0_to_1,";",","],gQ,[f.Change_0_to_1,";",","])]},fixIds:[gQ],getAllCodeActions:e=>Ss(e,Mme,(t,r)=>{let i=TMe(r.file,r.start,r.code);i&&AMe(t,e.sourceFile,i)})})}});function xMe(e,t,r,i,o){let s=po(t,r.start);if(!Ve(s)||!la(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;let l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),p=u?.valueDeclaration;if(!p||!Co(p)||!H1(p.parent.parent)||o?.has(p))return;o?.add(p);let g=uet(p.parent.parent);if(Et(g)){let m=g[0],b=!Xy(m)&&!LS(m)&&LS(k.createUnionTypeNode([m,k.createKeywordTypeNode(116)]).types[0]);b&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,b?") | void":" | void")}else{let m=l.getResolvedSignature(s.parent),b=m?.parameters[0],T=b&&l.getTypeOfSymbolAtLocation(b,p.parent.parent);cr(p)?(!T||T.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,La(t.text,p.parent.parent.pos),"/** @type {Promise} */(")):(!T||T.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"")}}function uet(e){var t;if(cr(e)){if(Wd(e.parent)){let r=(t=r0(e.parent))==null?void 0:t.typeExpression.type;if(r&&Rf(r)&&Ve(r.typeName)&&Sr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var RMe,Lme,kme,det=A({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";ci(),xa(),RMe="addVoidToPromise",Lme="addVoidToPromise",kme=[f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Aa({errorCodes:kme,fixIds:[Lme],getCodeActions(e){let t=hr.ChangeTracker.with(e,r=>xMe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[ca(RMe,t,f.Add_void_to_Promise_resolved_without_a_value,Lme,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ss(e,kme,(t,r)=>xMe(t,r.file,r,e.program,new Set))}})}}),Fu={};X(Fu,{PreserveOptionalFlags:()=>vme,addNewNodeForMemberSymbol:()=>BPe,codeFixAll:()=>Ss,createCodeFixAction:()=>ca,createCodeFixActionMaybeFixAll:()=>Npe,createCodeFixActionWithoutFixAll:()=>i_,createCombinedCodeActions:()=>N2,createFileTextChanges:()=>GDe,createImportAdder:()=>LI,createImportSpecifierResolver:()=>v$e,createJsonPropertyAssignment:()=>rQ,createMissingMemberNodes:()=>ume,createSignatureDeclarationFromCallExpression:()=>dme,createSignatureDeclarationFromSignature:()=>tQ,createStubbedBody:()=>b9,eachDiagnostic:()=>P2,findAncestorMatchingSpan:()=>gme,findJsonProperty:()=>hme,generateAccessorFromProperty:()=>qPe,getAccessorConvertiblePropertyAtPosition:()=>XPe,getAllFixes:()=>KXe,getAllSupers:()=>yme,getArgumentTypesAndTypeParameters:()=>jPe,getFixes:()=>JXe,getImportCompletionAction:()=>y$e,getImportKind:()=>ofe,getJSDocTypedefNodes:()=>f$e,getNoopSymbolTrackerWithResolver:()=>L2,getPromoteTypeOnlyCompletionAction:()=>b$e,getSupportedErrorCodes:()=>HXe,importFixName:()=>pfe,importSymbols:()=>k2,moduleSpecifierToValidIdentifier:()=>dfe,moduleSymbolToValidIdentifier:()=>ufe,parameterShouldGetTypeFromJSDoc:()=>sCe,registerCodeFix:()=>Aa,setJsonCompilerOptionValue:()=>_me,setJsonCompilerOptionValues:()=>mme,tryGetAutoImportableReferenceFromTypeNode:()=>wI,typeToAutoImportableTypeNode:()=>nQ});var xa=A({"src/services/_namespaces/ts.codefix.ts"(){"use strict";XXe(),YXe(),$Xe(),eYe(),oYe(),cYe(),uYe(),dYe(),pYe(),hYe(),xYe(),DYe(),zYe(),r$e(),i$e(),a$e(),s$e(),m$e(),_$e(),g$e(),B$e(),j$e(),q$e(),J$e(),K$e(),$$e(),eQe(),rQe(),lQe(),vQe(),bQe(),xQe(),RQe(),CQe(),NQe(),PQe(),MQe(),kQe(),wQe(),OQe(),FQe(),WQe(),BQe(),jQe(),JQe(),nZe(),iZe(),oZe(),lZe(),cZe(),dZe(),pZe(),bZe(),EZe(),SZe(),DZe(),BZe(),UZe(),KZe(),YZe(),$Ze(),QZe(),ZZe(),tet(),ret(),iet(),oet(),aet(),set(),cet(),det()}});function pet(e){return!!(e.kind&1)}function fet(e){return!!(e.kind&2)}function E9(e){return!!(e&&e.kind&4)}function SP(e){return!!(e&&e.kind===32)}function met(e){return E9(e)||SP(e)||wme(e)}function _et(e){return(E9(e)||SP(e))&&!!e.isFromPackageJson}function het(e){return!!(e.kind&8)}function get(e){return!!(e.kind&16)}function DMe(e){return!!(e&&e.kind&64)}function CMe(e){return!!(e&&e.kind&128)}function vet(e){return!!(e&&e.kind&256)}function wme(e){return!!(e&&e.kind&512)}function NMe(e,t,r,i,o,s,l,u,p){var g,m,b;let T=Ks(),I=l||jA(dd(i.getCompilerOptions())),R=!1,M=0,N=0,O=0,H=0,K=p({tryResolve:V,skippedAny:()=>R,resolvedAny:()=>N>0,resolvedBeyondLimit:()=>N>RQ}),Z=H?` (${(O/H*100).toFixed(1)}% hit rate)`:"";return(g=t.log)==null||g.call(t,`${e}: resolved ${N} module specifiers, plus ${M} ambient and ${O} from cache${Z}`),(m=t.log)==null||m.call(t,`${e}: response is ${R?"incomplete":"complete"}`),(b=t.log)==null||b.call(t,`${e}: ${Ks()-T}`),K;function V(ue,G){if(G){let $=r.getModuleSpecifierForBestExportInfo(ue,o,u);return $&&M++,$||"failed"}let ne=I||s.allowIncompleteCompletions&&N{let R=Vi(p.entries,M=>{var N;if(!M.hasAction||!M.source||!M.data||PMe(M.data))return M;if(!nLe(M.name,m))return;let{origin:O}=C.checkDefined(jMe(M.name,M.data,i,o)),H=b.get(t.path,M.data.exportMapKey),K=H&&I.tryResolve(H,!Yc(em(O.moduleSymbol.name)));if(K==="skipped")return M;if(!K||K==="failed"){(N=o.log)==null||N.call(o,`Unexpected failure resolving auto import for '${M.name}' from '${M.source}'`);return}let Z={...O,kind:32,moduleSpecifier:K.moduleSpecifier};return M.data=zMe(Z),M.source=Wme(Z),M.sourceDisplay=[sf(Z.moduleSpecifier)],M});return I.skippedAny()||(p.isIncomplete=void 0),R});return p.entries=T,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=wMe(g),p}function Ome(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function MMe(e,t,r,i,o,s){let l=po(e,t);if(!Xx(l)&&!t_(l))return[];let u=t_(l)?l:l.parent;if(!t_(u))return[];let p=u.parent;if(!ea(p))return[];let g=ld(e),m=o.includeCompletionsWithSnippetText||void 0,b=au(u.tags,T=>n_(T)&&T.getEnd()<=t);return Vi(p.parameters,T=>{if(!jx(T).length){if(Ve(T.name)){let I={tabstop:1},R=T.name.text,M=qO(R,T.initializer,T.dotDotDotToken,g,!1,!1,r,i,o),N=m?qO(R,T.initializer,T.dotDotDotToken,g,!1,!0,r,i,o,I):void 0;return s&&(M=M.slice(1),N&&(N=N.slice(1))),{name:M,kind:"parameter",sortText:Wu.LocationPriority,insertText:m?N:void 0,isSnippet:m}}else if(T.parent.parameters.indexOf(T)===b){let I=`param${b}`,R=LMe(I,T.name,T.initializer,T.dotDotDotToken,g,!1,r,i,o),M=m?LMe(I,T.name,T.initializer,T.dotDotDotToken,g,!0,r,i,o):void 0,N=R.join(Gv(i)+"* "),O=M?.join(Gv(i)+"* ");return s&&(N=N.slice(1),O&&(O=O.slice(1))),{name:N,kind:"parameter",sortText:Wu.LocationPriority,insertText:m?O:void 0,isSnippet:m}}}})}function LMe(e,t,r,i,o,s,l,u,p){if(!o)return[qO(e,r,i,o,!1,s,l,u,p,{tabstop:1})];return g(e,t,r,i,{tabstop:1});function g(b,T,I,R,M){if(om(T)&&!R){let O={tabstop:M.tabstop},H=qO(b,I,R,o,!0,s,l,u,p,O),K=[];for(let Z of T.elements){let V=m(b,Z,O);if(V)K.push(...V);else{K=void 0;break}}if(K)return M.tabstop=O.tabstop,[H,...K]}return[qO(b,I,R,o,!1,s,l,u,p,M)]}function m(b,T,I){if(!T.propertyName&&Ve(T.name)||Ve(T.name)){let R=T.propertyName?TC(T.propertyName):T.name.text;if(!R)return;let M=`${b}.${R}`;return[qO(M,T.initializer,T.dotDotDotToken,o,!1,s,l,u,p,I)]}else if(T.propertyName){let R=TC(T.propertyName);return R&&g(`${b}.${R}`,T.name,T.initializer,T.dotDotDotToken,I)}}}function qO(e,t,r,i,o,s,l,u,p,g){if(s&&C.assertIsDefined(g),t&&(e=Eet(e,t)),s&&(e=G1(e)),i){let m="*";if(o)C.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){let I=l.getTypeAtLocation(t.parent);if(!(I.flags&16385)){let R=t.getSourceFile(),N=af(R,p)===0?268435456:0,O=l.typeToTypeNode(I,zn(t,ea),N);if(O){let H=s?bQ({removeComments:!0,module:u.module,target:u.target}):x0({removeComments:!0,module:u.module,target:u.target});fr(O,1),m=H.printNode(4,O,R)}}}s&&m==="*"&&(m=`\${${g.tabstop++}:${m}}`)}let b=!o&&r?"...":"",T=s?`\${${g.tabstop++}}`:"";return`@param {${b}${m}} ${e} ${T}`}else{let m=s?`\${${g.tabstop++}}`:"";return`@param ${e} ${m}`}}function Eet(e,t){let r=t.getText().trim();return r.includes(` +`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function Tet(e){return{name:ma(e),kind:"keyword",kindModifiers:"",sortText:Wu.GlobalsOrKeywords}}function Aet(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function kMe(e,t,r){return{kind:4,keywordCompletions:UMe(e,t),isNewIdentifierLocation:r}}function Iet(e){switch(e){case 156:return 8;default:C.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function wMe(e){return e?.kind===80?Rd(e):void 0}function xet(e,t,r,i,o,s,l,u,p,g){let{symbols:m,contextToken:b,completionKind:T,isInSnippetScope:I,isNewIdentifierLocation:R,location:M,propertyAccessToConvert:N,keywordFilters:O,symbolToOriginInfoMap:H,recommendedCompletion:K,isJsxInitializer:Z,isTypeOnlyLocation:V,isJsxIdentifierExpected:ue,isRightOfOpenTag:G,isRightOfDotOrQuestionDot:ne,importStatementCompletion:he,insideJsDocTagTypeExpression:ye,symbolToSortTextMap:$,hasUnresolvedAutoImports:Y}=s,oe=s.literals,fe=r.getTypeChecker();if(dk(e.scriptKind)===1){let He=Det(M,e);if(He)return He}let Ne=zn(b,GR);if(Ne&&(Dae(b)||P1(b,Ne.expression))){let He=NW(fe,Ne.parent.clauses);oe=oe.filter(Ee=>!He.hasValue(Ee)),m.forEach((Ee,Ce)=>{if(Ee.valueDeclaration&&Q1(Ee.valueDeclaration)){let Me=fe.getConstantValue(Ee.valueDeclaration);Me!==void 0&&He.hasValue(Me)&&(H[Ce]={kind:256})}})}let me=QB(),ie=OMe(e,i);if(ie&&!R&&(!m||m.length===0)&&O===0)return;let ve=zme(m,me,void 0,b,M,p,e,t,r,as(i),o,T,l,i,u,V,N,ue,Z,he,K,H,$,ue,G,g);if(O!==0)for(let He of UMe(O,!ye&&ld(e)))(V&&sP(y1(He.name))||!V&&ctt(He.name)||!ve.has(He.name))&&(ve.add(He.name),Ty(me,He,S9,!0));for(let He of Yet(b,p))ve.has(He.name)||(ve.add(He.name),Ty(me,He,S9,!0));for(let He of oe){let Ee=Net(e,l,He);ve.add(Ee.name),Ty(me,Ee,S9,!0)}ie||Cet(e,M.pos,ve,as(i),me);let Le;if(l.includeCompletionsWithInsertText&&b&&!G&&!ne&&(Le=zn(b,TN))){let He=FMe(Le,e,l,i,t,r,u);He&&me.push(He.entry)}return{flags:s.flags,isGlobalCompletion:I,isIncomplete:l.allowIncompleteCompletions&&Y?!0:void 0,isMemberCompletion:Ret(T),isNewIdentifierLocation:R,optionalReplacementSpan:wMe(M),entries:me}}function OMe(e,t){return!ld(e)||!!hk(e,t)}function FMe(e,t,r,i,o,s,l){let u=e.clauses,p=s.getTypeChecker(),g=p.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Jn(g.types,m=>m.isLiteral())){let m=NW(p,u),b=as(i),T=af(t,r),I=Fu.createImportAdder(t,s,r,o),R=[];for(let V of g.types)if(V.flags&1024){C.assert(V.symbol,"An enum member type should have a symbol"),C.assert(V.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let ue=V.symbol.valueDeclaration&&p.getConstantValue(V.symbol.valueDeclaration);if(ue!==void 0){if(m.hasValue(ue))continue;m.addValue(ue)}let G=Fu.typeToAutoImportableTypeNode(p,I,V,e,b);if(!G)return;let ne=vQ(G,b,T);if(!ne)return;R.push(ne)}else if(!m.hasValue(V.value))switch(typeof V.value){case"object":R.push(V.value.negative?k.createPrefixUnaryExpression(41,k.createBigIntLiteral({negative:!1,base10Value:V.value.base10Value})):k.createBigIntLiteral(V.value));break;case"number":R.push(V.value<0?k.createPrefixUnaryExpression(41,k.createNumericLiteral(-V.value)):k.createNumericLiteral(V.value));break;case"string":R.push(k.createStringLiteral(V.value,T===0));break}if(R.length===0)return;let M=Ft(R,V=>k.createCaseClause(V,[])),N=Qv(o,l?.options),O=bQ({removeComments:!0,module:i.module,target:i.target,newLine:yO(N)}),H=l?V=>O.printAndFormatNode(4,V,t,l):V=>O.printNode(4,V,t),K=Ft(M,(V,ue)=>r.includeCompletionsWithSnippetText?`${H(V)}$${ue+1}`:`${H(V)}`).join(N);return{entry:{name:`${O.printNode(4,M[0],t)} ...`,kind:"",sortText:Wu.GlobalsOrKeywords,insertText:K,hasAction:I.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:I}}}function vQ(e,t,r){switch(e.kind){case 183:let i=e.typeName;return yQ(i,t,r);case 199:let o=vQ(e.objectType,t,r),s=vQ(e.indexType,t,r);return o&&s&&k.createElementAccessExpression(o,s);case 201:let l=e.literal;switch(l.kind){case 11:return k.createStringLiteral(l.text,r===0);case 9:return k.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:let u=vQ(e.type,t,r);return u&&(Ve(u)?u:k.createParenthesizedExpression(u));case 186:return yQ(e.exprName,t,r);case 205:C.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function yQ(e,t,r){if(Ve(e))return e;let i=Hi(e.right.escapedText);return LU(i,t)?k.createPropertyAccessExpression(yQ(e.left,t,r),i):k.createElementAccessExpression(yQ(e.left,t,r),k.createStringLiteral(i,r===0))}function Ret(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Det(e,t){let r=zn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){let i=!!bs(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Rd(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:Wu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[p]}}}function Cet(e,t,r,i,o){wY(e).forEach((s,l)=>{if(s===t)return;let u=Hi(l);!r.has(u)&&$p(u,i)&&(r.add(u),Ty(o,{name:u,kind:"warning",kindModifiers:"",sortText:Wu.JavascriptIdentifiers,isFromUncheckedFile:!0},S9))})}function Fme(e,t,r){return typeof r=="object"?z1(r)+"n":wo(r)?fP(e,t,r):JSON.stringify(r)}function Net(e,t,r){return{name:Fme(e,t,r),kind:"string",kindModifiers:"",sortText:Wu.LocationPriority}}function Pet(e,t,r,i,o,s,l,u,p,g,m,b,T,I,R,M,N,O,H,K,Z,V,ue,G){var ne,he;let ye,$,Y=eX(r),oe,fe,Ne=Wme(b),me,ie,ve,Le=p.getTypeChecker(),He=b&&get(b),Ee=b&&fet(b)||m;if(b&&pet(b))ye=m?`this${He?"?.":""}[${BMe(l,H,g)}]`:`this${He?"?.":"."}${g}`;else if((Ee||He)&&I){ye=Ee?m?`[${BMe(l,H,g)}]`:`[${g}]`:g,(He||I.questionDotToken)&&(ye=`?.${ye}`);let Me=bs(I,25,l)||bs(I,29,l);if(!Me)return;let Fe=uo(g,I.name.text)?I.name.end:Me.end;Y=dc(Me.getStart(l),Fe)}if(R&&(ye===void 0&&(ye=g),ye=`{${ye}}`,typeof R!="boolean"&&(Y=Rd(R,l))),b&&het(b)&&I){ye===void 0&&(ye=g);let Me=Ac(I.pos,l),Fe="";Me&&bW(Me.end,Me.parent,l)&&(Fe=";"),Fe+=`(await ${I.expression.getText()})`,ye=m?`${Fe}${ye}`:`${Fe}${He?"?.":"."}${ye}`;let Se=ai(I.parent,$y)?I.parent:I.expression;Y=dc(Se.getStart(l),I.end)}if(SP(b)&&(me=[sf(b.moduleSpecifier)],M&&({insertText:ye,replacementSpan:Y}=Wet(g,M,b,N,l,O,H),fe=H.includeCompletionsWithSnippetText?!0:void 0)),b?.kind===64&&(ie=!0),K===0&&i&&((ne=Ac(i.pos,l,i))==null?void 0:ne.kind)!==28&&(jl(i.parent.parent)||Zp(i.parent.parent)||vp(i.parent.parent)||qv(i.parent)||((he=zn(i.parent,_c))==null?void 0:he.getLastToken(l))===i||np(i.parent)&&Es(l,i.getEnd()).line!==Es(l,s).line)&&(Ne="ObjectLiteralMemberWithComma/",ie=!0),H.includeCompletionsWithClassMemberSnippets&&H.includeCompletionsWithInsertText&&K===3&&Met(e,o,l)){let Me,Fe=WMe(u,p,O,H,g,e,o,s,i,Z);if(Fe)({insertText:ye,filterText:$,isSnippet:fe,importAdder:Me}=Fe),Me?.hasFixes()&&(ie=!0,Ne="ClassMemberSnippet/");else return}if(b&&CMe(b)&&({insertText:ye,isSnippet:fe,labelDetails:ve}=b,H.useLabelDetailsInCompletionEntries||(g=g+ve.detail,ve=void 0),Ne="ObjectLiteralMethodSnippet/",t=Wu.SortBelow(t)),V&&!ue&&H.includeCompletionsWithSnippetText&&H.jsxAttributeCompletionStyle&&H.jsxAttributeCompletionStyle!=="none"&&!(O_(o.parent)&&o.parent.initializer)){let Me=H.jsxAttributeCompletionStyle==="braces",Fe=Le.getTypeOfSymbolAtLocation(e,o);H.jsxAttributeCompletionStyle==="auto"&&!(Fe.flags&528)&&!(Fe.flags&1048576&&vn(Fe.types,At=>!!(At.flags&528)))&&(Fe.flags&402653316||Fe.flags&1048576&&Jn(Fe.types,At=>!!(At.flags&402686084||Due(At)))?(ye=`${G1(g)}=${fP(l,H,"$1")}`,fe=!0):Me=!0),Me&&(ye=`${G1(g)}={$1}`,fe=!0)}if(ye!==void 0&&!H.includeCompletionsWithInsertText)return;(E9(b)||SP(b))&&(oe=zMe(b),ie=!M);let Ce=zn(o,w3);if(Ce?.kind===275){let Me=y1(g);Ce&&Me&&(Me===135||jj(Me))&&(ye=`${g} as ${g}_`)}return{name:g,kind:ty.getSymbolKind(Le,e,o),kindModifiers:ty.getSymbolModifiers(Le,e),sortText:t,source:Ne,hasAction:ie?!0:void 0,isRecommended:zet(e,T,Le)||void 0,insertText:ye,filterText:$,replacementSpan:Y,sourceDisplay:me,labelDetails:ve,isSnippet:fe,isPackageJsonImport:_et(b)||void 0,isImportStatementCompletion:!!M||void 0,data:oe,...G?{symbol:e}:void 0}}function Met(e,t,r){return cr(t)?!1:!!(e.flags&106500)&&(pi(t)||t.parent&&t.parent.parent&&$c(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&pi(t.parent.parent)||t.parent&&HR(t)&&pi(t.parent))}function WMe(e,t,r,i,o,s,l,u,p,g){let m=zn(l,pi);if(!m)return;let b,T=o,I=o,R=t.getTypeChecker(),M=l.getSourceFile(),N=bQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:yO(Qv(e,g?.options))}),O=Fu.createImportAdder(M,t,i,e),H;if(i.includeCompletionsWithSnippetText){b=!0;let he=k.createEmptyStatement();H=k.createBlock([he],!0),lH(he,{kind:0,order:0})}else H=k.createBlock([],!0);let K=0,{modifiers:Z,range:V,decorators:ue}=Let(p,M,u),G=Z&64&&m.modifierFlagsCache&64,ne=[];if(Fu.addNewNodeForMemberSymbol(s,m,M,{program:t,host:e},i,O,he=>{let ye=0;G&&(ye|=64),$c(he)&&R.getMemberOverrideModifierStatus(m,he,s)===1&&(ye|=16),ne.length||(K=he.modifierFlagsCache|ye),he=k.replaceModifiers(he,K),ne.push(he)},H,Fu.PreserveOptionalFlags.Property,!!G),ne.length){let he=s.flags&8192,ye=K|16|1;he?ye|=1024:ye|=136;let $=Z&ye;if(Z&~ye)return;if(K&4&&$&1&&(K&=-5),$!==0&&!($&1)&&(K&=-2),K|=$,ne=ne.map(oe=>k.replaceModifiers(oe,K)),ue?.length){let oe=ne[ne.length-1];US(oe)&&(ne[ne.length-1]=k.replaceDecoratorsAndModifiers(oe,ue.concat(b1(oe)||[])))}let Y=131073;g?T=N.printAndFormatSnippetList(Y,k.createNodeArray(ne),M,g):T=N.printSnippetList(Y,k.createNodeArray(ne),M)}return{insertText:T,filterText:I,isSnippet:b,importAdder:O,eraseRange:V}}function Let(e,t,r){if(!e||Es(t,r).line>Es(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s,l={pos:r,end:r};if(Jo(e.parent)&&e.parent.modifiers&&(i|=N_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Eu)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=ket(e)){let u=zA(s);i&u||(i|=u,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:o,range:l.pos!==r?l:void 0}}function ket(e){if(Ia(e))return e.kind;if(Ve(e)){let t=n0(e);if(t&&kv(t))return t}}function wet(e,t,r,i,o,s,l,u){let p=l.includeCompletionsWithSnippetText||void 0,g=t,m=r.getSourceFile(),b=Oet(e,r,m,i,o,l);if(!b)return;let T=bQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:yO(Qv(o,u?.options))});u?g=T.printAndFormatSnippetList(80,k.createNodeArray([b],!0),m,u):g=T.printSnippetList(80,k.createNodeArray([b],!0),m);let I=x0({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),R=k.createMethodSignature(void 0,"",b.questionToken,b.typeParameters,b.parameters,b.type),M={detail:I.printNode(4,R,m)};return{isSnippet:p,insertText:g,labelDetails:M}}function Oet(e,t,r,i,o,s){let l=e.getDeclarations();if(!(l&&l.length))return;let u=i.getTypeChecker(),p=l[0],g=sl(Oo(p),!1),m=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),T=33554432|(af(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let I=m.flags&1048576&&m.types.length<10?u.getUnionType(m.types,2):m;if(I.flags&1048576){let H=tr(I.types,K=>u.getSignaturesOfType(K,0).length>0);if(H.length===1)I=H[0];else return}if(u.getSignaturesOfType(I,0).length!==1)return;let M=u.typeToTypeNode(I,t,T,Fu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!M||!bh(M))return;let N;if(s.includeCompletionsWithSnippetText){let H=k.createEmptyStatement();N=k.createBlock([H],!0),lH(H,{kind:0,order:0})}else N=k.createBlock([],!0);let O=M.parameters.map(H=>k.createParameterDeclaration(void 0,H.dotDotDotToken,H.name,void 0,void 0,H.initializer));return k.createMethodDeclaration(void 0,void 0,g,void 0,void 0,O,void 0,N)}default:return}}function bQ(e){let t,r=hr.createWriter(Gv(e)),i=x0(e,r),o={...r,write:T=>s(T,()=>r.write(T)),nonEscapingWrite:r.write,writeLiteral:T=>s(T,()=>r.writeLiteral(T)),writeStringLiteral:T=>s(T,()=>r.writeStringLiteral(T)),writeSymbol:(T,I)=>s(T,()=>r.writeSymbol(T,I)),writeParameter:T=>s(T,()=>r.writeParameter(T)),writeComment:T=>s(T,()=>r.writeComment(T)),writeProperty:T=>s(T,()=>r.writeProperty(T))};return{printSnippetList:l,printAndFormatSnippetList:p,printNode:g,printAndFormatNode:b};function s(T,I){let R=G1(T);if(R!==T){let M=r.getTextPos();I();let N=r.getTextPos();t=In(t||(t=[]),{newText:R,span:{start:M,length:N-M}})}else I()}function l(T,I,R){let M=u(T,I,R);return t?hr.applyChanges(M,t):M}function u(T,I,R){return t=void 0,o.clear(),i.writeList(T,I,R,o),o.getText()}function p(T,I,R,M){let N={text:u(T,I,R),getLineAndCharacterOfPosition(Z){return Es(this,Z)}},O=CW(M,R),H=Zi(I,Z=>{let V=hr.assignPositionsToNode(Z);return wc.formatNodeGivenIndentation(V,N,R.languageVariant,0,0,{...M,options:O})}),K=t?Iv(xo(H,t),(Z,V)=>M8(Z.span,V.span)):H;return hr.applyChanges(N.text,K)}function g(T,I,R){let M=m(T,I,R);return t?hr.applyChanges(M,t):M}function m(T,I,R){return t=void 0,o.clear(),i.writeNode(T,I,R,o),o.getText()}function b(T,I,R,M){let N={text:m(T,I,R),getLineAndCharacterOfPosition(V){return Es(this,V)}},O=CW(M,R),H=hr.assignPositionsToNode(I),K=wc.formatNodeGivenIndentation(H,N,R.languageVariant,0,0,{...M,options:O}),Z=t?Iv(xo(K,t),(V,ue)=>M8(V.span,ue.span)):K;return hr.applyChanges(N.text,Z)}}function zMe(e){let t=e.fileName?void 0:em(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return SP(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:em(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function Fet(e,t,r){let i=e.exportName==="default",o=!!e.isPackageJsonImport;return PMe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}}function Wet(e,t,r,i,o,s,l){let u=t.replacementSpan,p=G1(fP(o,l,r.moduleSpecifier)),g=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",b=Fu.getImportKind(o,g,s,!0),T=t.couldBeTypeOnlyImportSpecifier,I=t.isTopLevelTypeOnly?` ${ma(156)} `:" ",R=T?`${ma(156)} `:"",M=i?";":"";switch(b){case 3:return{replacementSpan:u,insertText:`import${I}${G1(e)}${m} = require(${p})${M}`};case 1:return{replacementSpan:u,insertText:`import${I}${G1(e)}${m} from ${p}${M}`};case 2:return{replacementSpan:u,insertText:`import${I}* as ${G1(e)} from ${p}${M}`};case 0:return{replacementSpan:u,insertText:`import${I}{ ${R}${G1(e)}${m} } from ${p}${M}`}}}function BMe(e,t,r){return/^\d+$/.test(r)?r:fP(e,t,r)}function zet(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Wme(e){if(E9(e))return em(e.moduleSymbol.name);if(SP(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function zme(e,t,r,i,o,s,l,u,p,g,m,b,T,I,R,M,N,O,H,K,Z,V,ue,G,ne,he=!1){let ye=Ks(),$=att(i,o),Y=hO(l),oe=p.getTypeChecker(),fe=new Map;for(let ie=0;ieje.getSourceFile()===o.getSourceFile()));fe.set(Ee,Se),Ty(t,At,S9,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Ks()-ye)),{has:ie=>fe.has(ie),add:ie=>fe.set(ie,!0)};function Ne(ie,ve){var Le;let He=ie.flags;if(!no(o)){if(Ll(o.parent))return!0;if(ai($,Oi)&&ie.valueDeclaration===$)return!1;let Ee=ie.valueDeclaration??((Le=ie.declarations)==null?void 0:Le[0]);if($&&Ee&&(_l($)&&_l(Ee)||Co($)&&Co(Ee))){let Me=Ee.pos,Fe=Co($)?$.parent.parameters:MS($.parent)?void 0:$.parent.typeParameters;if(Me>=$.pos&&Fe&&MeFme(r,l,K)===o.name);return H!==void 0?{type:"literal",literal:H}:Zt(g,(K,Z)=>{let V=I[Z],ue=SQ(K,as(u),V,T,p.isJsxIdentifierExpected);return ue&&ue.name===o.name&&(o.source==="ClassMemberSnippet/"&&K.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&K.flags&8196||Wme(V)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:K,location:b,origin:V,contextToken:R,previousToken:M,isJsxInitializer:N,isTypeOnlyLocation:O}:void 0})||{type:"none"}}function Vet(e,t,r,i,o,s,l,u,p){let g=e.getTypeChecker(),m=e.getCompilerOptions(),{name:b,source:T,data:I}=o,{previousToken:R,contextToken:M}=EQ(i,r);if(II(r,i,R))return CQ.getStringLiteralCompletionDetails(b,r,i,R,e,s,p,u);let N=GMe(e,t,r,i,o,s,u);switch(N.type){case"request":{let{request:O}=N;switch(O.kind){case 1:return L0.getJSDocTagNameCompletionDetails(b);case 2:return L0.getJSDocTagCompletionDetails(b);case 3:return L0.getJSDocParameterNameCompletionDetails(b);case 4:return Et(O.keywordCompletions,H=>H.name===b)?Bme(b,"keyword",5):void 0;default:return C.assertNever(O)}}case"symbol":{let{symbol:O,location:H,contextToken:K,origin:Z,previousToken:V}=N,{codeActions:ue,sourceDisplay:G}=jet(b,H,K,Z,O,e,s,m,r,i,V,l,u,I,T,p),ne=wme(Z)?Z.symbolName:O.name;return Gme(O,ne,g,r,H,p,ue,G)}case"literal":{let{literal:O}=N;return Bme(Fme(r,u,O),"string",typeof O=="string"?8:7)}case"cases":{let O=FMe(M.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(O?.importAdder.hasFixes()){let{entry:H,importAdder:K}=O,Z=hr.ChangeTracker.with({host:s,formatContext:l,preferences:u},K.writeFixes);return{name:H.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Z,description:nT([f.Includes_imports_of_types_referenced_by_0,b])}]}}return{name:b,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Xme().some(O=>O.name===b)?Bme(b,"keyword",5):void 0;default:C.assertNever(N)}}function Bme(e,t,r){return T9(e,"",t,[rp(e,r)])}function Gme(e,t,r,i,o,s,l,u){let{displayParts:p,documentation:g,symbolKind:m,tags:b}=r.runWithCancellationToken(s,T=>ty.getSymbolDisplayPartsDocumentationAndSymbolKind(T,e,i,o,o,7));return T9(t,ty.getSymbolModifiers(r,e),m,p,g,b,l,u)}function T9(e,t,r,i,o,s,l,u){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:u,sourceDisplay:u}}function jet(e,t,r,i,o,s,l,u,p,g,m,b,T,I,R,M){if(I?.moduleSpecifier&&m&&$Me(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[sf(I.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){let{importAdder:ue,eraseRange:G}=WMe(l,s,u,T,e,o,t,g,r,b);if(ue||G)return{sourceDisplay:void 0,codeActions:[{changes:hr.ChangeTracker.with({host:l,formatContext:b,preferences:T},he=>{ue&&ue.writeFixes(he),G&&he.deleteRange(p,G)}),description:nT([f.Includes_imports_of_types_referenced_by_0,e])}]}}if(DMe(i)){let ue=Fu.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,b,T);return C.assertIsDefined(ue,"Expected to have a code action for promoting type-only alias"),{codeActions:[ue],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){let ue=hr.ChangeTracker.with({host:l,formatContext:b,preferences:T},G=>G.insertText(p,r.end,","));if(ue)return{sourceDisplay:void 0,codeActions:[{changes:ue,description:nT([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(E9(i)||SP(i)))return{codeActions:void 0,sourceDisplay:void 0};let N=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:O}=i,H=N.getMergedSymbol(bu(o.exportSymbol||o,N)),K=r?.kind===30&&sd(r.parent),{moduleSpecifier:Z,codeAction:V}=Fu.getImportCompletionAction(H,O,I?.exportMapKey,p,e,K,l,s,b,m&&Ve(m)?m.getStart(p):g,T,M);return C.assert(!I?.moduleSpecifier||Z===I.moduleSpecifier),{sourceDisplay:[sf(Z)],codeActions:[V]}}function Uet(e,t,r,i,o,s,l){let u=GMe(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}function Het(e,t,r){return Zt(t&&(t.isUnion()?t.types:[t]),i=>{let o=i&&i.symbol;return o&&o.flags&424&&!voe(o)?Vme(o,e,r):void 0})}function qet(e,t,r,i){let{parent:o}=e;switch(e.kind){case 80:return gW(e,i);case 64:switch(o.kind){case 260:return i.getContextualType(o.initializer);case 226:return i.getTypeAtLocation(o.left);case 291:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:let s=ai(o,GR);return s?TX(s,i):void 0;case 19:return AN(o)&&!cg(o.parent)&&!X1(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:let l=QO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):vW(e.kind)&&_r(o)&&vW(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Vme(e,t,r){let i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Ha(i):e.parent&&(Jet(e.parent)?e:Vme(e.parent,t,r))}function Jet(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function VMe(e,t,r,i,o,s,l,u,p,g){let m=e.getTypeChecker(),b=OMe(r,i),T=Ks(),I=po(r,o);t("getCompletionData: Get current token: "+(Ks()-T)),T=Ks();let R=Xv(r,o,I);t("getCompletionData: Is inside comment: "+(Ks()-T));let M=!1,N=!1;if(R){if(Iue(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{let Ge=sm(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(Ge,o)))return{kind:2}}}let pe=$et(I,o);if(pe){if(pe.tagName.pos<=o&&o<=pe.tagName.end)return{kind:1};let Ge=nn(pe);if(Ge&&(I=po(r,o),(!I||!Wg(I)&&(I.parent.kind!==355||I.parent.name!==I))&&(M=J(Ge))),!M&&n_(pe)&&(Fl(pe.name)||pe.name.pos<=o&&o<=pe.name.end))return{kind:3,tag:pe}}if(!M){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}T=Ks();let O=!M&&ld(r),H=EQ(o,r),K=H.previousToken,Z=H.contextToken;t("getCompletionData: Get previous token: "+(Ks()-T));let V=I,ue,G=!1,ne=!1,he=!1,ye=!1,$=!1,Y=!1,oe,fe=zd(r,o),Ne=0,me=!1,ie=0;if(Z){let pe=$Me(Z,r);if(pe.keywordCompletion){if(pe.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[Tet(pe.keywordCompletion)],isNewIdentifierLocation:pe.isNewIdentifierLocation};Ne=Iet(pe.keywordCompletion)}if(pe.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ie|=2,oe=pe,me=pe.isNewIdentifierLocation),!pe.replacementSpan&&ro(Z))return t("Returning an empty list because completion was requested in an invalid position."),Ne?kMe(Ne,O,_a()):void 0;let Ge=Z.parent;if(Z.kind===25||Z.kind===29)switch(G=Z.kind===25,ne=Z.kind===29,Ge.kind){case 211:ue=Ge,V=ue.expression;let ke=IR(ue);if(Fl(ke)||(la(V)||ea(V))&&V.end===Z.pos&&V.getChildCount(r)&&Ya(V.getChildren(r)).kind!==22)return;break;case 166:V=Ge.left;break;case 267:V=Ge.name;break;case 205:V=Ge;break;case 236:V=Ge.getFirstToken(r),C.assert(V.kind===102||V.kind===105);break;default:return}else if(!oe){if(Ge&&Ge.kind===211&&(Z=Ge,Ge=Ge.parent),I.parent===fe)switch(I.kind){case 32:(I.parent.kind===284||I.parent.kind===286)&&(fe=I);break;case 44:I.parent.kind===285&&(fe=I);break}switch(Ge.kind){case 287:Z.kind===44&&(ye=!0,fe=Z);break;case 226:if(!YMe(Ge))break;case 285:case 284:case 286:Y=!0,Z.kind===30&&(he=!0,fe=Z);break;case 294:case 293:(K.kind===20||K.kind===80&&K.parent.kind===291)&&(Y=!0);break;case 291:if(Ge.initializer===K&&K.endZS(pe?u.getPackageJsonAutoImportProvider():e,u));if(G||ne)rn();else if(he)Ee=m.getJsxIntrinsicTagNamesAt(fe),C.assertEachIsDefined(Ee,"getJsxIntrinsicTagNames() should all be defined"),Qt(),Le=1,Ne=0;else if(ye){let pe=Z.parent.parent.openingElement.tagName,Ge=m.getSymbolAtLocation(pe);Ge&&(Ee=[Ge]),Le=1,Ne=0}else if(!Qt())return Ne?kMe(Ne,O,me):void 0;t("getCompletionData: Semantic work: "+(Ks()-ve));let at=K&&qet(K,o,r,m),yt=!ai(K,us)&&!Y?Vi(at&&(at.isUnion()?at.types:[at]),pe=>pe.isLiteral()&&!(pe.flags&1024)?pe.value:void 0):[],Qe=K&&at&&Het(K,at,m);return{kind:0,symbols:Ee,completionKind:Le,isInSnippetScope:N,propertyAccessToConvert:ue,isNewIdentifierLocation:me,location:fe,keywordFilters:Ne,literals:yt,symbolToOriginInfoMap:Me,recommendedCompletion:Qe,previousToken:K,contextToken:Z,isJsxInitializer:$,insideJsDocTagTypeExpression:M,symbolToSortTextMap:Fe,isTypeOnlyLocation:Se,isJsxIdentifierExpected:Y,isRightOfOpenTag:he,isRightOfDotOrQuestionDot:G||ne,importStatementCompletion:oe,hasUnresolvedAutoImports:He,flags:ie};function gt(pe){switch(pe.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!pe.constraint;default:return!1}}function nn(pe){if(gt(pe)){let Ge=am(pe)?pe.constraint:pe.typeExpression;return Ge&&Ge.kind===316?Ge:void 0}if(fI(pe)||a5(pe))return pe.class}function rn(){Le=2;let pe=zy(V),Ge=pe&&!V.isTypeOf||Zh(V.parent)||iO(Z,r,m),ke=HF(V);if(Qd(V)||pe||zr(V)){let Dt=Jl(V.parent);Dt&&(me=!0);let Pt=m.getSymbolAtLocation(V);if(Pt&&(Pt=bu(Pt,m),Pt.flags&1920)){let Kt=m.getExportsOfModule(Pt);C.assertEachIsDefined(Kt,"getExportsOfModule() should all be defined");let Tn=yi=>m.isValidPropertyAccess(pe?V:V.parent,yi.name),On=yi=>Ume(yi,m),Gn=Dt?yi=>{var Di;return!!(yi.flags&1920)&&!((Di=yi.declarations)!=null&&Di.every(or=>or.parent===V.parent))}:ke?yi=>On(yi)||Tn(yi):Ge||M?On:Tn;for(let yi of Kt)Gn(yi)&&Ee.push(yi);if(!Ge&&!M&&Pt.declarations&&Pt.declarations.some(yi=>yi.kind!==312&&yi.kind!==267&&yi.kind!==266)){let yi=m.getTypeOfSymbolAtLocation(Pt,V).getNonOptionalType(),Di=!1;if(yi.isNullableType()){let or=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(or||ne)&&(yi=yi.getNonNullableType(),or&&(Di=!0))}Nn(yi,!!(V.flags&65536),Di)}return}}if(!Ge||xS(V)){m.tryGetThisTypeAt(V,!1);let Dt=m.getTypeAtLocation(V).getNonOptionalType();if(Ge)Nn(Dt.getNonNullableType(),!1,!1);else{let Pt=!1;if(Dt.isNullableType()){let Kt=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(Kt||ne)&&(Dt=Dt.getNonNullableType(),Kt&&(Pt=!0))}Nn(Dt,!!(V.flags&65536),Pt)}}}function Nn(pe,Ge,ke){me=!!pe.getStringIndexType(),ne&&Et(pe.getCallSignatures())&&(me=!0);let Dt=V.kind===205?V:V.parent;if(b)for(let Pt of pe.getApparentProperties())m.isValidPropertyAccessForCompletions(Dt,pe,Pt)&&Xn(Pt,!1,ke);else Ee.push(...tr(IQ(pe,m),Pt=>m.isValidPropertyAccessForCompletions(Dt,pe,Pt)));if(Ge&&s.includeCompletionsWithInsertText){let Pt=m.getPromisedTypeOfPromise(pe);if(Pt)for(let Kt of Pt.getApparentProperties())m.isValidPropertyAccessForCompletions(Dt,Pt,Kt)&&Xn(Kt,!0,ke)}}function Xn(pe,Ge,ke){var Dt;let Pt=Zt(pe.declarations,Gn=>ai(Oo(Gn),Za));if(Pt){let Gn=_n(Pt.expression),yi=Gn&&m.getSymbolAtLocation(Gn),Di=yi&&Vme(yi,Z,m),or=Di&&Ta(Di);if(or&&xm(At,or)){let Vr=Ee.length;Ee.push(Di);let Eo=Di.parent;if(!Eo||!sO(Eo)||m.tryGetMemberInModuleExportsAndProperties(Di.name,Eo)!==Di)Me[Vr]={kind:On(2)};else{let Mi=Yc(em(Eo.name))?(Dt=O6(Eo))==null?void 0:Dt.fileName:void 0,{moduleSpecifier:Ci}=(Ce||(Ce=Fu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Mi,isFromPackageJson:!1,moduleSymbol:Eo,symbol:Di,targetFlags:bu(Di,m).flags}],o,_0(fe))||{};if(Ci){let Kr={kind:On(6),moduleSymbol:Eo,isDefaultExport:!1,symbolName:Di.name,exportName:Di.name,fileName:Mi,moduleSpecifier:Ci};Me[Vr]=Kr}}}else if(s.includeCompletionsWithInsertText){if(or&&At.has(or))return;Tn(pe),Kt(pe),Ee.push(pe)}}else Tn(pe),Kt(pe),Ee.push(pe);function Kt(Gn){rtt(Gn)&&(Fe[Ta(Gn)]=Wu.LocalDeclarationPriority)}function Tn(Gn){s.includeCompletionsWithInsertText&&(Ge&&xm(At,Ta(Gn))?Me[Ee.length]={kind:On(8)}:ke&&(Me[Ee.length]={kind:16}))}function On(Gn){return ke?Gn|16:Gn}}function _n(pe){return Ve(pe)?pe:zr(pe)?_n(pe.expression):void 0}function Qt(){return(En()||wn()||ho()||Ue()||mt()||ft()||Yt()||Nt()||vi()||(ki(),1))===1}function Yt(){return We(Z)?(Le=5,me=!0,Ne=4,1):0}function vi(){let pe=j(Z),Ge=pe&&m.getContextualType(pe.attributes);if(!Ge)return 0;let ke=pe&&m.getContextualType(pe.attributes,4);return Ee=xo(Ee,ae(AQ(Ge,ke,pe.attributes,m),pe.attributes.properties)),q(),Le=3,me=!1,1}function ho(){return oe?(me=!0,tt(),1):0}function ki(){Ne=pt(Z)?5:1,Le=1,me=_a(),K!==Z&&C.assert(!!K,"Expected 'contextToken' to be defined when different from 'previousToken'.");let pe=K!==Z?K.getStart():o,Ge=bi(Z,pe,r)||r;N=nr(Ge);let ke=(Se?0:111551)|788968|1920|2097152,Dt=K&&!_0(K);Ee=xo(Ee,m.getSymbolsInScope(Ge,ke)),C.assertEachIsDefined(Ee,"getSymbolsInScope() should all be defined");for(let Pt=0;PtTn.getSourceFile()===r)&&(Fe[Ta(Kt)]=Wu.GlobalsOrKeywords),Dt&&!(Kt.flags&111551)){let Tn=Kt.declarations&&vn(Kt.declarations,sL);if(Tn){let On={kind:64,declaration:Tn};Me[Pt]=On}}}if(s.includeCompletionsWithInsertText&&Ge.kind!==312){let Pt=m.tryGetThisTypeAt(Ge,!1,pi(Ge.parent)?Ge:void 0);if(Pt&&!ntt(Pt,r,m))for(let Kt of IQ(Pt,m))Me[Ee.length]={kind:1},Ee.push(Kt),Fe[Ta(Kt)]=Wu.SuggestedClassMembers}tt(),Se&&(Ne=Z&&pS(Z.parent)?6:7)}function Ro(){return oe?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||oX(e.getCompilerOptions())?!0:Pue(e):!1}function nr(pe){switch(pe.kind){case 312:case 228:case 294:case 241:return!0;default:return Ki(pe)}}function qr(){return M||!!oe&&a0(fe.parent)||!xr(Z)&&(iO(Z,r,m)||Zh(fe)||ln(Z))}function xr(pe){return pe&&(pe.kind===114&&(pe.parent.kind===186||zR(pe.parent))||pe.kind===131&&pe.parent.kind===182)}function ln(pe){if(pe){let Ge=pe.parent.kind;switch(pe.kind){case 59:return Ge===172||Ge===171||Ge===169||Ge===260||xA(Ge);case 64:return Ge===265||Ge===168;case 130:return Ge===234;case 30:return Ge===183||Ge===216;case 96:return Ge===168;case 152:return Ge===238}}return!1}function tt(){var pe,Ge;if(!Ro()||(C.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;ie|=1;let Dt=K===Z&&oe?"":K&&Ve(K)?K.text.toLowerCase():"",Pt=(pe=u.getModuleSpecifierCache)==null?void 0:pe.call(u),Kt=bO(r,u,e,s,g),Tn=(Ge=u.getPackageJsonAutoImportProvider)==null?void 0:Ge.call(u),On=l?void 0:_P(r,s,u);NMe("collectAutoImports",u,Ce||(Ce=Fu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!oe,_0(fe),yi=>{Kt.search(r.path,he,(Di,or)=>{if(!$p(Di,as(u.getCompilationSettings()))||!l&&OA(Di)||!Se&&!oe&&!(or&111551)||Se&&!(or&790504))return!1;let Vr=Di.charCodeAt(0);return he&&(Vr<65||Vr>90)?!1:l?!0:nLe(Di,Dt)},(Di,or,Vr,Eo)=>{if(l&&!Et(Di,Fs=>l.source===em(Fs.moduleSymbol.name))||(Di=tr(Di,Gn),!Di.length))return;let Mi=yi.tryResolve(Di,Vr)||{};if(Mi==="failed")return;let Ci=Di[0],Kr;Mi!=="skipped"&&({exportInfo:Ci=Di[0],moduleSpecifier:Kr}=Mi);let Po=Ci.exportKind===1,Dn=Po&&TR(Ci.symbol)||Ci.symbol;zt(Dn,{kind:Kr?32:4,moduleSpecifier:Kr,symbolName:or,exportMapKey:Eo,exportName:Ci.exportKind===2?"export=":Ci.symbol.name,fileName:Ci.moduleFileName,isDefaultExport:Po,moduleSymbol:Ci.moduleSymbol,isFromPackageJson:Ci.isFromPackageJson})}),He=yi.skippedAny(),ie|=yi.resolvedAny()?8:0,ie|=yi.resolvedBeyondLimit()?16:0});function Gn(yi){let Di=ai(yi.moduleSymbol.valueDeclaration,no);if(!Di){let or=em(yi.moduleSymbol.name);return B_.nodeCoreModules.has(or)&&uo(or,"node:")!==DW(r,e)?!1:On?On.allowsImportingAmbientModule(yi.moduleSymbol,je(yi.isFromPackageJson)):!0}return zX(yi.isFromPackageJson?Tn:e,r,Di,s,On,je(yi.isFromPackageJson),Pt)}}function zt(pe,Ge){let ke=Ta(pe);Fe[ke]!==Wu.GlobalsOrKeywords&&(Me[Ee.length]=Ge,Fe[ke]=oe?Wu.LocationPriority:Wu.AutoImportSuggestions,Ee.push(pe))}function Rn(pe,Ge){cr(fe)||pe.forEach(ke=>{if(!ui(ke))return;let Dt=SQ(ke,as(i),void 0,0,!1);if(!Dt)return;let{name:Pt}=Dt,Kt=wet(ke,Pt,Ge,e,u,i,s,p);if(!Kt)return;let Tn={kind:128,...Kt};ie|=32,Me[Ee.length]=Tn,Ee.push(ke)})}function ui(pe){return!!(pe.flags&8196)}function bi(pe,Ge,ke){let Dt=pe;for(;Dt&&!HK(Dt,Ge,ke);)Dt=Dt.parent;return Dt}function ro(pe){let Ge=Ks(),ke=ja(pe)||xt(pe)||Vt(pe)||No(pe)||H7(pe);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Ks()-Ge)),ke}function No(pe){if(pe.kind===12)return!0;if(pe.kind===32&&pe.parent){if(fe===pe.parent&&(fe.kind===286||fe.kind===285))return!1;if(pe.parent.kind===286)return fe.parent.kind!==286;if(pe.parent.kind===287||pe.parent.kind===285)return!!pe.parent.parent&&pe.parent.parent.kind===284}return!1}function _a(){if(Z){let pe=Z.parent.kind,Ge=TQ(Z);switch(Ge){case 28:return pe===213||pe===176||pe===214||pe===209||pe===226||pe===184||pe===210;case 21:return pe===213||pe===176||pe===214||pe===217||pe===196;case 23:return pe===209||pe===181||pe===167;case 144:case 145:case 102:return!0;case 25:return pe===267;case 19:return pe===263||pe===210;case 64:return pe===260||pe===226;case 16:return pe===228;case 17:return pe===239;case 134:return pe===174||pe===304;case 42:return pe===174}if(A9(Ge))return!0}return!1}function ja(pe){return(fH(pe)||qV(pe))&&(tO(pe,o)||o===pe.end&&(!!pe.isUnterminated||fH(pe)))}function En(){let pe=ett(Z);if(!pe)return 0;let ke=(oI(pe.parent)?pe.parent:void 0)||pe,Dt=XMe(ke,m);if(!Dt)return 0;let Pt=m.getTypeFromTypeNode(ke),Kt=IQ(Dt,m),Tn=IQ(Pt,m),On=new Set;return Tn.forEach(Gn=>On.add(Gn.escapedName)),Ee=xo(Ee,tr(Kt,Gn=>!On.has(Gn.escapedName))),Le=0,me=!0,1}function wn(){let pe=Ee.length,Ge=Ket(Z,o,r);if(!Ge)return 0;Le=0;let ke,Dt;if(Ge.kind===210){let Pt=itt(Ge,m);if(Pt===void 0)return Ge.flags&67108864?2:0;let Kt=m.getContextualType(Ge,4),Tn=(Kt||Pt).getStringIndexType(),On=(Kt||Pt).getNumberIndexType();if(me=!!Tn||!!On,ke=AQ(Pt,Kt,Ge,m),Dt=Ge.properties,ke.length===0&&!On)return 0}else{C.assert(Ge.kind===206),me=!1;let Pt=D_(Ge.parent);if(!rR(Pt))return C.fail("Root declaration is not variable-like.");let Kt=Oy(Pt)||!!yu(Pt)||Pt.parent.parent.kind===250;if(!Kt&&Pt.kind===169&&(bt(Pt.parent)?Kt=!!m.getContextualType(Pt.parent):(Pt.parent.kind===174||Pt.parent.kind===178)&&(Kt=bt(Pt.parent.parent)&&!!m.getContextualType(Pt.parent.parent))),Kt){let Tn=m.getTypeAtLocation(Ge);if(!Tn)return 2;ke=m.getPropertiesOfType(Tn).filter(On=>m.isPropertyAccessible(Ge,!1,!1,Tn,On)),Dt=Ge.elements}}if(ke&&ke.length>0){let Pt=fn(ke,C.checkDefined(Dt));Ee=xo(Ee,Pt),q(),Ge.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Lt(pe),Rn(Pt,Ge))}return 1}function Ue(){if(!Z)return 0;let pe=Z.kind===19||Z.kind===28?ai(Z.parent,w3):sW(Z)?ai(Z.parent.parent,w3):void 0;if(!pe)return 0;sW(Z)||(Ne=8);let{moduleSpecifier:Ge}=pe.kind===275?pe.parent.parent:pe.parent;if(!Ge)return me=!0,pe.kind===275?2:0;let ke=m.getSymbolAtLocation(Ge);if(!ke)return me=!0,2;Le=3,me=!1;let Dt=m.getExportsAndPropertiesOfModule(ke),Pt=new Set(pe.elements.filter(Tn=>!J(Tn)).map(Tn=>(Tn.propertyName||Tn.name).escapedText)),Kt=Dt.filter(Tn=>Tn.escapedName!=="default"&&!Pt.has(Tn.escapedName));return Ee=xo(Ee,Kt),Kt.length||(Ne=0),1}function mt(){if(Z===void 0)return 0;let pe=Z.kind===19||Z.kind===28?ai(Z.parent,cI):Z.kind===59?ai(Z.parent.parent,cI):void 0;if(pe===void 0)return 0;let Ge=new Set(pe.elements.map(i7));return Ee=tr(m.getTypeAtLocation(pe).getApparentProperties(),ke=>!Ge.has(ke.escapedName)),1}function ft(){var pe;let Ge=Z&&(Z.kind===19||Z.kind===28)?ai(Z.parent,Df):void 0;if(!Ge)return 0;let ke=zn(Ge,Xm(no,Jl));return Le=5,me=!1,(pe=ke.locals)==null||pe.forEach((Dt,Pt)=>{var Kt,Tn;Ee.push(Dt),(Tn=(Kt=ke.symbol)==null?void 0:Kt.exports)!=null&&Tn.has(Pt)&&(Fe[Ta(Dt)]=Wu.OptionalMember)}),1}function Nt(){let pe=Zet(r,Z,fe,o);if(!pe)return 0;if(Le=3,me=!0,Ne=Z.kind===42?0:pi(pe)?2:3,!pi(pe))return 1;let Ge=Z.kind===27?Z.parent.parent:Z.parent,ke=$c(Ge)?cd(Ge):0;if(Z.kind===80&&!J(Z))switch(Z.getText()){case"private":ke=ke|2;break;case"static":ke=ke|256;break;case"override":ke=ke|16;break}if(Il(Ge)&&(ke|=256),!(ke&2)){let Dt=pi(pe)&&ke&16?yA(x_(pe)):PC(pe),Pt=Zi(Dt,Kt=>{let Tn=m.getTypeAtLocation(Kt);return ke&256?Tn?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(Tn.symbol,pe)):Tn&&m.getPropertiesOfType(Tn)});Ee=xo(Ee,w(Pt,pe.members,ke)),Ke(Ee,(Kt,Tn)=>{let On=Kt?.valueDeclaration;if(On&&$c(On)&&On.name&&Za(On.name)){let Gn={kind:512,symbolName:m.symbolToString(Kt)};Me[Tn]=Gn}})}return 1}function le(pe){return!!pe.parent&&Co(pe.parent)&&Pl(pe.parent.parent)&&(hC(pe.kind)||Wg(pe))}function We(pe){if(pe){let Ge=pe.parent;switch(pe.kind){case 21:case 28:return Pl(pe.parent)?pe.parent:void 0;default:if(le(pe))return Ge.parent}}}function pt(pe){if(pe){let Ge,ke=zn(pe.parent,Dt=>pi(Dt)?"quit":zs(Dt)&&Ge===Dt.body?!0:(Ge=Dt,!1));return ke&&ke}}function j(pe){if(pe){let Ge=pe.parent;switch(pe.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Ge&&(Ge.kind===285||Ge.kind===286)){if(pe.kind===32){let ke=Ac(pe.pos,r,void 0);if(!Ge.typeArguments||ke&&ke.kind===44)break}return Ge}else if(Ge.kind===291)return Ge.parent.parent;break;case 11:if(Ge&&(Ge.kind===291||Ge.kind===293))return Ge.parent.parent;break;case 20:if(Ge&&Ge.kind===294&&Ge.parent&&Ge.parent.kind===291)return Ge.parent.parent.parent;if(Ge&&Ge.kind===293)return Ge.parent.parent;break}}}function ot(pe,Ge){return r.getLineEndOfPosition(pe.getEnd())=pe.pos;case 25:return ke===207;case 59:return ke===208;case 23:return ke===207;case 21:return ke===299||ht(ke);case 19:return ke===266;case 30:return ke===263||ke===231||ke===264||ke===265||xA(ke);case 126:return ke===172&&!pi(Ge.parent);case 26:return ke===169||!!Ge.parent&&Ge.parent.kind===207;case 125:case 123:case 124:return ke===169&&!Pl(Ge.parent);case 130:return ke===276||ke===281||ke===274;case 139:case 153:return!xQ(pe);case 80:{if(ke===276&&pe===Ge.name&&pe.text==="type"||zn(pe.parent,Oi)&&ot(pe,o))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return ke!==276;case 42:return ea(pe.parent)&&!jl(pe.parent)}if(A9(TQ(pe))&&xQ(pe)||le(pe)&&(!Ve(pe)||hC(TQ(pe))||J(pe)))return!1;switch(TQ(pe)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return Jo(pe.parent)}if(zn(pe.parent,pi)&&pe===K&&Ye(pe,o))return!1;let Pt=p0(pe.parent,172);if(Pt&&pe!==K&&pi(K.parent.parent)&&o<=K.end){if(Ye(pe,K.end))return!1;if(pe.kind!==64&&(Dw(Pt)||N6(Pt)))return!0}return Wg(pe)&&!np(pe.parent)&&!O_(pe.parent)&&!((pi(pe.parent)||fd(pe.parent)||_l(pe.parent))&&(pe!==K||o>K.end))}function Ye(pe,Ge){return pe.kind!==64&&(pe.kind===27||!Af(pe.end,Ge,r))}function ht(pe){return xA(pe)&&pe!==176}function Vt(pe){if(pe.kind===9){let Ge=pe.getFullText();return Ge.charAt(Ge.length-1)==="."}return!1}function yn(pe){return pe.parent.kind===261&&!iO(pe,r,m)}function fn(pe,Ge){if(Ge.length===0)return pe;let ke=new Set,Dt=new Set;for(let Kt of Ge){if(Kt.kind!==303&&Kt.kind!==304&&Kt.kind!==208&&Kt.kind!==174&&Kt.kind!==177&&Kt.kind!==178&&Kt.kind!==305||J(Kt))continue;let Tn;if(qv(Kt))mn(Kt,ke);else if(Qa(Kt)&&Kt.propertyName)Kt.propertyName.kind===80&&(Tn=Kt.propertyName.escapedText);else{let On=Oo(Kt);Tn=On&&R_(On)?kC(On):void 0}Tn!==void 0&&Dt.add(Tn)}let Pt=pe.filter(Kt=>!Dt.has(Kt.escapedName));return Oe(ke,Pt),Pt}function mn(pe,Ge){let ke=pe.expression,Dt=m.getSymbolAtLocation(ke),Pt=Dt&&m.getTypeOfSymbolAtLocation(Dt,ke),Kt=Pt&&Pt.properties;Kt&&Kt.forEach(Tn=>{Ge.add(Tn.name)})}function q(){Ee.forEach(pe=>{if(pe.flags&16777216){let Ge=Ta(pe);Fe[Ge]=Fe[Ge]??Wu.OptionalMember}})}function Oe(pe,Ge){if(pe.size!==0)for(let ke of Ge)pe.has(ke.name)&&(Fe[Ta(ke)]=Wu.MemberDeclaredBySpreadAssignment)}function Lt(pe){for(let Ge=pe;Ge!Dt.has(Pt.escapedName)&&!!Pt.declarations&&!(If(Pt)&2)&&!(Pt.valueDeclaration&&ad(Pt.valueDeclaration)))}function ae(pe,Ge){let ke=new Set,Dt=new Set;for(let Kt of Ge)J(Kt)||(Kt.kind===291?ke.add(lN(Kt.name)):pI(Kt)&&mn(Kt,Dt));let Pt=pe.filter(Kt=>!ke.has(Kt.escapedName));return Oe(Dt,Pt),Pt}function J(pe){return pe.getStart(r)<=o&&o<=pe.getEnd()}}function Ket(e,t,r){var i;if(e){let{parent:o}=e;switch(e.kind){case 19:case 28:if(wa(o)||om(o))return o;break;case 42:return jl(o)?ai(o.parent,wa):void 0;case 134:return ai(o.parent,wa);case 80:if(e.text==="async"&&np(e.parent))return e.parent.parent;{if(wa(e.parent.parent)&&(qv(e.parent)||np(e.parent)&&Es(r,e.getEnd()).line!==Es(r,t).line))return e.parent.parent;let l=zn(o,_c);if(l?.getLastToken(r)===e&&wa(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(jl(o.parent)||Zp(o.parent)||vp(o.parent))&&wa(o.parent.parent))return o.parent.parent;if(qv(o)&&wa(o.parent))return o.parent;let s=zn(o,_c);if(e.kind!==59&&s?.getLastToken(r)===e&&wa(s.parent))return s.parent}}}function EQ(e,t){let r=Ac(e,t);return r&&e<=r.end&&(Yh(r)||Fd(r.kind))?{contextToken:Ac(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function jMe(e,t,r,i){let o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(C.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let u=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return u?(u=t.exportName==="default"&&TR(u)||u,{symbol:u,origin:Fet(t,e,l)}):void 0}function SQ(e,t,r,i,o){if(vet(r))return;let s=met(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&kL(s.charCodeAt(0))||ek(e))return;let l={name:s,needsConvertPropertyAccess:!1};if($p(s,t,o?1:0)||e.valueDeclaration&&ad(e.valueDeclaration))return l;switch(i){case 3:return wme(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:C.assertNever(i)}}function UMe(e,t){if(!t)return HMe(e);let r=e+8+1;return I9[r]||(I9[r]=HMe(e).filter(i=>!Xet(y1(i.name))))}function HMe(e){return I9[e]||(I9[e]=Xme().filter(t=>{let r=y1(t.name);switch(e){case 0:return!1;case 1:return JMe(r)||r===138||r===144||r===156||r===145||r===128||sP(r)&&r!==157;case 5:return JMe(r);case 2:return A9(r);case 3:return qMe(r);case 4:return hC(r);case 6:return sP(r)||r===87;case 7:return sP(r);case 8:return r===156;default:return C.assertNever(e)}}))}function Xet(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function qMe(e){return e===148}function A9(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return JV(e)}}function JMe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!m3(e)&&!A9(e)}function TQ(e){return Ve(e)?n0(e)??0:e.kind}function Yet(e,t){let r=[];if(e){let i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Lc(o)||Kl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:ma(132),kind:"keyword",kindModifiers:"",sortText:Wu.GlobalsOrKeywords})}return r}function $et(e,t){return zn(e,r=>Xx(r)&&eO(r,t)?!0:t_(r)?"quit":!1)}function AQ(e,t,r,i){let o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=Qet(s,r,i);return s.isClass()&&KMe(l)?[]:o?tr(l,u):l;function u(p){return De(p.declarations)?Et(p.declarations,g=>g.parent!==r):!0}}function Qet(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(tr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&KMe(i.getApparentProperties())))):e.getApparentProperties()}function KMe(e){return Et(e,t=>!!(If(t)&6))}function IQ(e,t){return e.isUnion()?C.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):C.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Zet(e,t,r,i){switch(r.kind){case 358:return ai(r.parent,GA);case 1:let o=ai(Zs(aa(r.parent,no).statements),GA);if(o&&!bs(o,20,e))return o;break;case 81:if(ai(r.parent,Jo))return zn(r,pi);break;case 80:{if(n0(r)||Jo(r.parent)&&r.parent.initializer===r)return;if(xQ(r))return zn(r,GA)}}if(t){if(r.kind===137||Ve(t)&&Jo(t.parent)&&pi(r))return zn(t,pi);switch(t.kind){case 64:return;case 27:case 20:return xQ(r)&&r.parent.name===r?r.parent.parent:ai(r,GA);case 19:case 28:return ai(t.parent,GA);default:if(GA(r)){if(Es(e,t.getEnd()).line!==Es(e,i).line)return r;let o=pi(t.parent.parent)?A9:qMe;return o(t.kind)||t.kind===42||Ve(t)&&o(n0(t)??0)?t.parent.parent:void 0}return}}}function ett(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(yp(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&yp(t.parent))return t.parent;break}}function XMe(e,t){if(!e)return;if(qi(e)&&P6(e.parent))return t.getTypeArgumentConstraint(e);let r=XMe(e.parent,t);if(r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function xQ(e){return e.parent&&T6(e.parent)&&GA(e.parent.parent)}function ttt(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&Kue(r)&&i===r.getStart(e)+1;case"#":return!!r&&Xi(r)&&!!su(r);case"<":return!!r&&r.kind===30&&(!_r(r.parent)||YMe(r.parent));case"/":return!!r&&(us(r)?!!jL(r):r.kind===44&&K1(r.parent));case" ":return!!r&&vN(r)&&r.parent.kind===312;default:return C.assertNever(t)}}function YMe({left:e}){return Fl(e)}function ntt(e,t,r){let i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;let o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;let s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function rtt(e){return!!(e.valueDeclaration&&cd(e.valueDeclaration)&256&&pi(e.valueDeclaration.parent))}function itt(e,t){let r=t.getContextualType(e);if(r)return r;let i=Fv(e.parent);if(_r(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(bt(i))return t.getContextualType(i)}function $Me(e,t){var r,i,o;let s,l=!1,u=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(u||s===156),isTopLevelTypeOnly:!!((i=(r=ai(u,Lc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ai(u,tu))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&ZMe(u,e),replacementSpan:ott(u)};function p(){let g=e.parent;if(tu(g)){let m=g.getLastToken(t);if(Ve(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,jme(g.moduleReference)?g:void 0}if(ZMe(g,e)&&eLe(g.parent))return g;if(jg(g)||Zy(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),eLe(g))if(e.kind===20||e.kind===80)l=!0,s=161;else return g.parent.parent;return}if(Kl(g)&&e.kind===42||Df(g)&&e.kind===20){l=!0,s=161;return}if(vN(e)&&no(g))return s=156,e;if(vN(e)&&Lc(g))return s=156,jme(g.moduleSpecifier)?g:void 0}}function ott(e){var t;if(!e)return;let r=zn(e,Xm(Lc,tu))??e,i=r.getSourceFile();if(DS(r,i))return Rd(r,i);C.assert(r.kind!==102&&r.kind!==276);let o=r.kind===272?QMe((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(DS(s,i))return ib(s)}function QMe(e){var t;return vn((t=ai(e,jg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&OA(r.name.text)&&((i=Ac(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function ZMe(e,t){return tp(e)&&(e.isTypeOnly||t===e.name&&sW(t))}function eLe(e){if(!jme(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(jg(e)){let t=QMe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function jme(e){var t;return Fl(e)?!0:!((t=ai(Th(e)?e.expression:e,us))!=null&&t.text)}function att(e,t){if(!e)return;let r=zn(e,o=>D1(o)||tLe(o)||ta(o)?"quit":(Co(o)||_l(o))&&!j1(o.parent)),i=zn(t,o=>D1(o)||tLe(o)||ta(o)?"quit":Oi(o));return r||i}function tLe(e){return e.parent&&Bs(e.parent)&&(e.parent.body===e||e.kind===39)}function Ume(e,t,r=new Map){return i(e)||i(bu(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&xm(r,Ta(o))&&t.getExportsOfModule(o).some(s=>Ume(s,t,r))}}function stt(e,t){let r=bu(e,t).declarations;return!!De(r)&&Jn(r,RW)}function nLe(e,t){if(t.length===0)return!0;let r=!1,i,o=0,s=e.length;for(let l=0;l(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(qme||{}),Jme=(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))(Jme||{}),Kme=(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))(Kme||{}),I9=[],Xme=Ed(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:ma(t),kind:"keyword",kindModifiers:"",sortText:Wu.GlobalsOrKeywords});return e})}});function Yme(){let e=new Map;function t(r){let i=e.get(r.name);(!i||t_e[i.kind]({name:rg(I.value,b),kindModifiers:"",kind:"string",sortText:Wu.LocationPriority,replacementSpan:eX(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:T}}default:return C.assertNever(e)}}function ftt(e,t,r,i,o,s,l,u){if(!i||!us(i))return;let p=oLe(t,i,r,o,s,u);return p&&mtt(e,i,p,t,o.getTypeChecker(),l)}function mtt(e,t,r,i,o,s){switch(r.kind){case 0:{let l=vn(r.paths,u=>u.name===e);return l&&T9(e,iLe(l.extension),l.kind,[sf(e)])}case 1:{let l=vn(r.symbols,u=>u.name===e);return l&&Gme(l,l.name,o,i,t,s)}case 2:return vn(r.types,l=>l.value===e)?T9(e,"","string",[sf(e)]):void 0;default:return C.assertNever(r)}}function rLe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:iLe(u),sortText:Wu.LocationPriority,replacementSpan:l}))}}function iLe(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 C.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return C.assertNever(e)}}function oLe(e,t,r,i,o,s){let l=i.getTypeChecker(),u=$me(t.parent);switch(u.kind){case 201:{let I=$me(u.parent);return I.kind===205?{kind:0,paths:lLe(e,t,i,o,s)}:p(I)}case 303:return wa(u.parent)&&u.name===t?gtt(l,u.parent):g()||g(0);case 212:{let{expression:I,argumentExpression:R}=u;return t===vs(R)?aLe(l.getTypeAtLocation(I)):void 0}case 213:case 214:case 291:if(!Ptt(t)&&!Wp(u)){let I=QO.getArgumentInfoForCompletions(u.kind===291?u.parent:t,r,e,l);return I&&htt(I.invocation,t,I,l)||g(0)}case 272:case 278:case 283:return{kind:0,paths:lLe(e,t,i,o,s)};case 296:let m=NW(l,u.parent.clauses),b=g();return b?{kind:2,types:b.types.filter(I=>!m.hasValue(I.value)),isNewIdentifier:!1}:void 0;default:return g()||g(0)}function p(m){switch(m.kind){case 233:case 183:{let I=zn(u,R=>R.parent===m);return I?{kind:2,types:DQ(l.getTypeArgumentConstraint(I)),isNewIdentifier:!1}:void 0}case 199:let{indexType:b,objectType:T}=m;return eO(b,r)?aLe(l.getTypeFromTypeNode(T)):void 0;case 192:{let I=p($me(m.parent));if(!I)return;let R=_tt(m,u);return I.kind===1?{kind:1,symbols:I.symbols.filter(M=>!wr(R,M.name)),hasIndexSignature:I.hasIndexSignature}:{kind:2,types:I.types.filter(M=>!wr(R,M.value)),isNewIdentifier:!1}}default:return}}function g(m=4){let b=DQ(gW(t,l,m));if(b.length)return{kind:2,types:b,isNewIdentifier:!1}}}function $me(e){switch(e.kind){case 196:return KL(e);case 217:return Fv(e);default:return e}}function _tt(e,t){return Vi(e.types,r=>r!==t&&Yy(r)&&Na(r.literal)?r.literal.text:void 0)}function htt(e,t,r,i){let o=!1,s=new Map,l=sd(e)?C.checkDefined(zn(t.parent,O_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=Zi(u,g=>{if(!Xu(g)&&r.argumentCount>g.parameters.length)return;let m=g.getTypeParameterAtPosition(r.argumentIndex);if(sd(e)){let b=i.getTypeOfPropertyOfType(m,bk(l.name));b&&(m=b)}return o=o||!!(m.flags&4),DQ(m,s)});return De(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function aLe(e){return e&&{kind:1,symbols:tr(e.getApparentProperties(),t=>!(t.valueDeclaration&&ad(t.valueDeclaration))),hasIndexSignature:SX(e)}}function gtt(e,t){let r=e.getContextualType(t);if(!r)return;let i=e.getContextualType(t,4);return{kind:1,symbols:AQ(r,i,t,e),hasIndexSignature:SX(r)}}function DQ(e,t=new Map){return e?(e=iX(e),e.isUnion()?Zi(e.types,r=>DQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&xm(t,e.value)?[e]:et):et}function TP(e,t,r){return{name:e,kind:t,extension:r}}function Qme(e){return TP(e,"directory",void 0)}function sLe(e,t,r){let i=Ctt(e,t),o=e.length===0?void 0:vu(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(il)||s.includes(HM)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function lLe(e,t,r,i,o){return sLe(t.text,t.getStart(e)+1,vtt(e,t,r,i,o))}function vtt(e,t,r,i,o){let s=Mu(t.text),l=us(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,p=li(u),g=r.getCompilerOptions(),m=r.getTypeChecker(),b=Zme(g,1,e,m,o,l);return Ntt(s)||!g.baseUrl&&!g.paths&&(dp(s)||qne(s))?ytt(s,p,g,i,u,b):Ttt(s,p,l,g,i,b,m)}function Zme(e,t,r,i,o,s){return{extensionsToSearch:ts(btt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function ytt(e,t,r,i,o,s){return r.rootDirs?Stt(r.rootDirs,e,t,s,r,i,o):Vo(JO(e,t,s,i,!0,o).values())}function btt(e,t){let r=t?Vi(t.getAmbientModules(),s=>{let l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...$C(e),r],o=dd(e);return lW(o)?fk(e,i):i}function Ett(e,t,r,i){e=e.map(s=>zc(va(dp(s)?s:Zr(t,s))));let o=Zt(e,s=>ym(s,r,t,i)?r.substr(s.length):void 0);return h1([...e.map(s=>Zr(s,o)),r].map(s=>$b(s)),rS,ju)}function Stt(e,t,r,i,o,s,l){let u=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),g=Ett(e,u,r,p);return h1(Zi(g,m=>Vo(JO(t,m,i,s,!0,l).values())),(m,b)=>m.name===b.name&&m.kind===b.kind&&m.extension===b.extension)}function JO(e,t,r,i,o,s,l=Yme()){var u;e===void 0&&(e=""),e=Mu(e),Pv(e)||(e=li(e)),e===""&&(e="."+il),e=zc(e);let p=Dy(t,e),g=Pv(p)?p:li(p);if(!o){let I=Yue(g,i);if(I){let M=UC(I,i).typesVersions;if(typeof M=="object"){let N=(u=P5(M))==null?void 0:u.paths;if(N){let O=li(I),H=p.slice(zc(O).length);if(uLe(l,H,O,r,i,N))return l}}}}let m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!SW(i,g))return l;let b=AX(i,g,r.extensionsToSearch,void 0,["./*"]);if(b)for(let I of b){if(I=va(I),s&&Pg(I,s,t,m)===0)continue;let{name:R,extension:M}=cLe(rc(I),i.getCompilationSettings(),r,!1);l.add(TP(R,"script",M))}let T=EW(i,g);if(T)for(let I of T){let R=rc(va(I));R!=="@types"&&l.add(Qme(R))}return l}function cLe(e,t,r,i){let o=nE.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Gg(o)};if(r.referenceKind===0)return{name:e,extension:Gg(e)};let s=Aw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(u=>u!==0&&u!==1)),s[0]===3){if(Ec(e,Ik))return{name:e,extension:Gg(e)};let u=nE.tryGetJSExtensionForFile(e,t);return u?{name:m0(e,u),extension:u}:{name:e,extension:Gg(e)}}if(!i&&(s[0]===0||s[0]===1)&&Ec(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Td(e),extension:Gg(e)};let l=nE.tryGetJSExtensionForFile(e,t);return l?{name:m0(e,l),extension:l}:{name:e,extension:Gg(e)}}function uLe(e,t,r,i,o,s){let l=p=>s[p],u=(p,g)=>{let m=DR(p),b=DR(g),T=typeof m=="object"?m.prefix.length:p.length,I=typeof b=="object"?b.prefix.length:g.length;return tl(I,T)};return dLe(e,!1,t,r,i,o,Jh(s),l,u)}function dLe(e,t,r,i,o,s,l,u,p){let g=[],m;for(let b of l){if(b===".")continue;let T=b.replace(/^\.\//,""),I=u(b);if(I){let R=DR(T);if(!R)continue;let M=typeof R=="object"&&k8(R,r);M&&(m===void 0||p(b,m)===-1)&&(m=b,g=g.filter(O=>!O.matchedPattern)),(typeof R=="string"||m===void 0||p(b,m)!==1)&&g.push({matchedPattern:M,results:Att(T,I,r,i,o,t&&M,s).map(({name:O,kind:H,extension:K})=>TP(O,H,K))})}}return g.forEach(b=>b.results.forEach(T=>e.add(T))),m!==void 0}function Ttt(e,t,r,i,o,s,l){let{baseUrl:u,paths:p}=i,g=Yme(),m=dd(i);if(u){let T=va(Zr(o.getCurrentDirectory(),u));JO(e,T,s,o,!1,void 0,g)}if(p){let T=E3(i,o);uLe(g,e,T,s,o,p)}let b=fLe(e);for(let T of xtt(e,b,l))g.add(TP(T,"external module name",void 0));if(hLe(o,i,t,b,s,g),lW(m)){let T=!1;if(b===void 0)for(let I of Dtt(o,t)){let R=TP(I,"external module name",void 0);g.has(R.name)||(T=!0,g.add(R))}if(!T){let I=R=>{let M=Zr(R,"node_modules");SW(o,M)&&JO(e,M,s,o,!1,void 0,g)};if(b&&c7(i)){let R=I;I=M=>{let N=Wc(e);N.shift();let O=N.shift();if(!O)return R(M);if(uo(O,"@")){let Z=N.shift();if(!Z)return R(M);O=Zr(O,Z)}let H=Zr(M,"node_modules",O),K=Zr(H,"package.json");if(gO(o,K)){let V=UC(K,o).exports;if(V){if(typeof V!="object"||V===null)return;let ue=Jh(V),G=N.join("/")+(N.length&&Pv(e)?"/":""),ne=tb(i,r);dLe(g,!0,G,H,s,o,ue,he=>yA(pLe(V[he],ne)),Dq);return}}return R(M)}}Em(t,I)}}return Vo(g.values())}function pLe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Do(e)){for(let r in e)if(r==="default"||t.includes(r)||Sw(t,r)){let i=e[r];return pLe(i,t)}}}function fLe(e){return e_e(e)?Pv(e)?e:li(e):void 0}function Att(e,t,r,i,o,s,l){if(!Sl(e,"*"))return e.includes("*")?et:g(e,"script");let u=e.slice(0,e.length-1),p=dG(r,u);if(p===void 0)return e[e.length-2]==="/"?g(u,"directory"):Zi(t,b=>{var T;return(T=mLe("",i,b,o,s,l))==null?void 0:T.map(({name:I,...R})=>({name:u+I,...R}))});return Zi(t,m=>mLe(p,i,m,o,s,l));function g(m,b){return uo(m,r)?[{name:$b(m),kind:b,extension:void 0}]:et}}function mLe(e,t,r,i,o,s){if(!s.readDirectory)return;let l=DR(r);if(l===void 0||wo(l))return;let u=Dy(l.prefix),p=Pv(l.prefix)?u:li(u),g=Pv(l.prefix)?"":rc(u),m=e_e(e),b=m?Pv(e)?e:li(e):void 0,T=m?Zr(p,g+b):p,I=va(l.suffix),R=I&&b3("_"+I),M=R?[m0(I,R),I]:[I],N=va(Zr(t,T)),O=m?N:zc(N)+g,H=I?M.map(ue=>"**/*"+ue):["./*"],K=Vi(AX(s,N,i.extensionsToSearch,void 0,H),ue=>{let G=V(ue);if(G){if(e_e(G))return Qme(Wc(_Le(G))[1]);let{name:ne,extension:he}=cLe(G,s.getCompilationSettings(),i,o);return TP(ne,"script",he)}}),Z=I?et:Vi(EW(s,N),ue=>ue==="node_modules"?void 0:Qme(ue));return[...K,...Z];function V(ue){return Zt(M,G=>{let ne=Itt(va(ue),O,G);return ne===void 0?void 0:_Le(ne)})}}function Itt(e,t,r){return uo(e,t)&&Sl(e,r)?e.slice(t.length,e.length-r.length):void 0}function _Le(e){return e[0]===il?e.slice(1):e}function xtt(e,t,r){let o=r.getAmbientModules().map(s=>em(s.name)).filter(s=>uo(s,e)&&!s.includes("*"));if(t!==void 0){let s=zc(t);return o.map(l=>ZD(l,s))}return o}function Rtt(e,t,r,i){let o=po(e,t),s=Kh(e.text,o.pos),l=s&&vn(s,R=>t>=R.pos&&t<=R.end);if(!l)return;let u=e.text.slice(l.pos,t),p=gLe.exec(u);if(!p)return;let[,g,m,b]=p,T=li(e.path),I=m==="path"?JO(b,T,Zme(r,0,e),i,!0,e.path):m==="types"?hLe(i,r,T,fLe(b),Zme(r,1,e)):C.fail();return sLe(b,l.pos+g.length,Vo(I.values()))}function hLe(e,t,r,i,o,s=Yme()){let l=new Map,u=TW(()=>FN(t,e))||et;for(let g of u)p(g);for(let g of IX(r,e)){let m=Zr(li(g),"node_modules/@types");p(m)}return s;function p(g){if(SW(e,g))for(let m of EW(e,g)){let b=Tw(m);if(!(t.types&&!wr(t.types,b)))if(i===void 0)l.has(b)||(s.add(TP(b,"external module name",void 0)),l.set(b,!0));else{let T=Zr(g,m),I=AU(i,b,Wv(e));I!==void 0&&JO(I,T,o,e,!1,void 0,s)}}}}function Dtt(e,t){if(!e.readFile||!e.fileExists)return et;let r=[];for(let i of IX(t,e)){let o=UC(i,e);for(let s of vLe){let l=o[s];if(l)for(let u in l)Rs(l,u)&&!uo(u,"@types/")&&r.push(u)}}return r}function Ctt(e,t){let r=Math.max(e.lastIndexOf(il),e.lastIndexOf(HM)),i=r!==-1?r+1:0,o=e.length-i;return o===0||$p(e.substr(i,o),99)?void 0:vu(t+i,o)}function Ntt(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function e_e(e){return e.includes(il)}function Ptt(e){return la(e.parent)&&Xc(e.parent.arguments)===e&&Ve(e.parent.expression)&&e.parent.expression.escapedText==="require"}var t_e,gLe,vLe,Mtt=A({"src/services/stringCompletions.ts"(){"use strict";rle(),ci(),n_e(),t_e={directory:0,script:1,"external module name":2},gLe=/^(\/\/\/\s*ftt,getStringLiteralCompletions:()=>dtt});var Ltt=A({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";Mtt()}}),OI={};X(OI,{CompletionKind:()=>Kme,CompletionSource:()=>qme,SortText:()=>Wu,StringCompletions:()=>CQ,SymbolOriginInfoKind:()=>Jme,createCompletionDetails:()=>T9,createCompletionDetailsForSymbol:()=>Gme,getCompletionEntriesFromSymbols:()=>zme,getCompletionEntryDetails:()=>Vet,getCompletionEntrySymbol:()=>Uet,getCompletionsAtPosition:()=>yet,getPropertiesForObjectExpression:()=>AQ,moduleSpecifierResolutionCacheAttemptLimit:()=>Hme,moduleSpecifierResolutionLimit:()=>RQ});var n_e=A({"src/services/_namespaces/ts.Completions.ts"(){"use strict";utt(),Ltt()}});function r_e(e,t,r,i){let o=Ftt(e,r,i);return(s,l,u)=>{let{directImports:p,indirectUsers:g}=ktt(e,t,o,l,r,i);return{indirectUsers:g,...wtt(p,s,l.exportKind,r,u)}}}function ktt(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){let u=xI(),p=xI(),g=[],m=!!i.globalExports,b=m?void 0:[];return I(i),{directImports:g,indirectUsers:T()};function T(){if(m)return e;if(i.declarations)for(let K of i.declarations)I1(K)&&t.has(K.getSourceFile().fileName)&&O(K);return b.map(Vn)}function I(K){let Z=H(K);if(Z){for(let V of Z)if(u(V))switch(l&&l.throwIfCancellationRequested(),V.kind){case 213:if(Wp(V)){R(V);break}if(!m){let G=V.parent;if(o===2&&G.kind===260){let{name:ne}=G;if(ne.kind===80){g.push(ne);break}}}break;case 80:break;case 271:N(V,V.name,ei(V,32),!1);break;case 272:g.push(V);let ue=V.importClause&&V.importClause.namedBindings;ue&&ue.kind===274?N(V,ue.name,!1,!0):!m&&MA(V)&&O(x9(V));break;case 278:V.exportClause?V.exportClause.kind===280?O(x9(V),!0):g.push(V):I(Vtt(V,s));break;case 205:!m&&V.isTypeOf&&!V.qualifier&&M(V)&&O(V.getSourceFile(),!0),g.push(V);break;default:C.failBadSyntaxKind(V,"Unexpected import kind.")}}}function R(K){let Z=zn(K,NQ)||K.getSourceFile();O(Z,!!M(K,!0))}function M(K,Z=!1){return zn(K,V=>Z&&NQ(V)?"quit":Cm(V)&&Et(V.modifiers,eI))}function N(K,Z,V,ue){if(o===2)ue||g.push(K);else if(!m){let G=x9(K);C.assert(G.kind===312||G.kind===267),V||Ott(G,Z,s)?O(G,!0):O(G)}}function O(K,Z=!1){if(C.assert(!m),!p(K)||(b.push(K),!Z))return;let ue=s.getMergedSymbol(K.symbol);if(!ue)return;C.assert(!!(ue.flags&1536));let G=H(ue);if(G)for(let ne of G)lg(ne)||O(x9(ne),!0)}function H(K){return r.get(Ta(K).toString())}}function wtt(e,t,r,i,o){let s=[],l=[];function u(T,I){s.push([T,I])}if(e)for(let T of e)p(T);return{importSearches:s,singleReferences:l};function p(T){if(T.kind===271){o_e(T)&&g(T.name);return}if(T.kind===80){g(T);return}if(T.kind===205){if(T.qualifier){let M=Bp(T.qualifier);M.escapedText===bl(t)&&l.push(M)}else r===2&&l.push(T.argument.literal);return}if(T.moduleSpecifier.kind!==11)return;if(T.kind===278){T.exportClause&&Df(T.exportClause)&&m(T.exportClause);return}let{name:I,namedBindings:R}=T.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 274:g(R.name);break;case 275:(r===0||r===1)&&m(R);break;default:C.assertNever(R)}if(I&&(r===1||r===2)&&(!o||I.escapedText===uW(t))){let M=i.getSymbolAtLocation(I);u(I,M)}}function g(T){r===2&&(!o||b(T.escapedText))&&u(T,i.getSymbolAtLocation(T))}function m(T){if(T)for(let I of T.elements){let{name:R,propertyName:M}=I;if(b((M||R).escapedText))if(M)l.push(M),(!o||R.escapedText===t.escapedName)&&u(R,i.getSymbolAtLocation(R));else{let N=I.kind===281&&I.propertyName?i.getExportSpecifierLocalTargetSymbol(I):i.getSymbolAtLocation(R);u(R,N)}}}function b(T){return T===t.escapedName||r!==0&&T==="default"}}function Ott(e,t,r){let i=r.getSymbolAtLocation(t);return!!bLe(e,o=>{if(!Kl(o))return;let{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Df(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function yLe(e,t,r){var i;let o=[],s=e.getTypeChecker();for(let l of t){let u=r.valueDeclaration;if(u?.kind===312){for(let p of l.referencedFiles)e.getSourceFileFromReference(l,p)===u&&o.push({kind:"reference",referencingFile:l,ref:p});for(let p of l.typeReferenceDirectives){let g=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}ELe(l,(p,g)=>{s.getSymbolAtLocation(g)===r&&o.push(Xs(p)?{kind:"implicit",literal:g,referencingFile:l}:{kind:"import",literal:g})})}return o}function Ftt(e,t,r){let i=new Map;for(let o of e)r&&r.throwIfCancellationRequested(),ELe(o,(s,l)=>{let u=t.getSymbolAtLocation(l);if(u){let p=Ta(u).toString(),g=i.get(p);g||i.set(p,g=[]),g.push(s)}});return i}function bLe(e,t){return Ke(e.kind===312?e.statements:e.body.statements,r=>t(r)||NQ(r)&&Ke(r.body&&r.body.statements,t))}function ELe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t(CC(r),r);else bLe(e,r=>{switch(r.kind){case 278:case 272:{let i=r;i.moduleSpecifier&&Na(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{let i=r;o_e(i)&&t(i,i.moduleReference.expression);break}}})}function SLe(e,t,r,i){return i?o():o()||s();function o(){var p;let{parent:g}=e,m=g.parent;if(t.exportSymbol)return g.kind===211?(p=t.declarations)!=null&&p.some(I=>I===g)&&_r(m)?T(m,!1):void 0:l(t.exportSymbol,u(g));{let I=ztt(g,e);if(I&&ei(I,32))return tu(I)&&I.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(I.name)}:l(t,u(I));if(Sh(g))return l(t,0);if(Ll(g))return b(g);if(Ll(m))return b(m);if(_r(g))return T(g,!0);if(_r(m))return T(m,!0);if(VS(g)||xH(g))return l(t,0)}function b(I){if(!I.symbol.parent)return;let R=I.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:I.symbol.parent,exportKind:R}}}function T(I,R){let M;switch(Wl(I)){case 1:M=0;break;case 2:M=2;break;default:return}let N=R?r.getSymbolAtLocation(yU(aa(I.left,ks))):t;return N&&l(N,M)}}function s(){if(!Btt(e))return;let g=r.getImmediateAliasedSymbol(t);if(!g||(g=Gtt(g,r),g.escapedName==="export="&&(g=Wtt(g,r),g===void 0)))return;let m=uW(g);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:g}}function l(p,g){let m=i_e(p,g,r);return m&&{kind:1,symbol:p,exportInfo:m}}function u(p){return ei(p,2048)?1:0}}function Wtt(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let o=C.checkDefined(e.valueDeclaration);if(Ll(o))return(r=ai(o.expression,A_))==null?void 0:r.symbol;if(_r(o))return(i=ai(o.right,A_))==null?void 0:i.symbol;if(no(o))return o.symbol}function ztt(e,t){let r=Oi(e)?e:Qa(e)?Vx(e):void 0;return r?e.name!==t||$1(r.parent)?void 0:Ml(r.parent.parent)?r.parent.parent:void 0:e}function Btt(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&o_e(t);case 276:return!t.propertyName;case 273:case 274:return C.assert(t.name===e),!0;case 208:return cr(e)&&C1(t.parent.parent);default:return!1}}function i_e(e,t,r){let i=e.parent;if(!i)return;let o=r.getMergedSymbol(i);return sO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Gtt(e,t){if(e.declarations)for(let r of e.declarations){if(Ju(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(zr(r)&&tg(r.expression)&&!Xi(r.name))return t.getSymbolAtLocation(r);if(np(r)&&_r(r.parent.parent)&&Wl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function Vtt(e,t){return t.getMergedSymbol(x9(e).symbol)}function x9(e){if(e.kind===213)return e.getSourceFile();let{parent:t}=e;return t.kind===312?t:(C.assert(t.kind===268),aa(t.parent,NQ))}function NQ(e){return e.kind===267&&e.name.kind===11}function o_e(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var a_e,s_e,jtt=A({"src/services/importTracker.ts"(){"use strict";ci(),a_e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(a_e||{}),s_e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(s_e||{})}});function pg(e,t=1){return{kind:t,node:e.name||e,context:Utt(e)}}function l_e(e){return e&&e.kind===void 0}function Utt(e){if(qu(e))return rT(e);if(e.parent){if(!qu(e.parent)&&!Ll(e.parent)){if(cr(e)){let r=_r(e.parent)?e.parent:ks(e.parent)&&_r(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&Wl(r)!==0)return rT(r)}if(w_(e.parent)||K1(e.parent))return e.parent.parent;if(zS(e.parent)||J1(e.parent)||fC(e.parent))return e.parent;if(us(e)){let r=jL(e);if(r){let i=zn(r,o=>qu(o)||Ki(o)||Xx(o));return qu(i)?rT(i):i}}let t=zn(e,Za);return t?rT(t.parent):void 0}if(e.parent.name===e||Pl(e.parent)||Ll(e.parent)||(IA(e.parent)||Qa(e.parent))&&e.parent.propertyName===e||e.kind===90&&ei(e.parent,2080))return rT(e.parent)}}function rT(e){if(e)switch(e.kind){case 260:return!jc(e.parent)||e.parent.declarations.length!==1?e:Ml(e.parent.parent)?e.parent.parent:Jx(e.parent.parent)?rT(e.parent.parent):e.parent;case 208:return rT(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return eu(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Yv(e.parent)?rT(zn(e.parent,t=>_r(t)||Jx(t))):e;case 255:return{start:vn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function c_e(e,t,r){if(!r)return;let i=l_e(r)?D9(r.start,t,r.end):D9(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function Htt(e,t,r,i,o){let s=zd(i,o),l={use:1},u=FI.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),g=FI.getAdjustedNode(s,l),m=qtt(g)?p.getSymbolAtLocation(g):void 0;return!u||!u.length?void 0:Vi(u,({definition:b,references:T})=>b&&{definition:p.runWithCancellationToken(t,I=>Xtt(b,I,s)),references:T.map(I=>$tt(I,m))})}function qtt(e){return e.kind===90||!!NC(e)||YL(e)||e.kind===137&&Pl(e.parent)}function Jtt(e,t,r,i,o){let s=zd(i,o),l,u=TLe(e,t,r,s,o);if(s.parent.kind===211||s.parent.kind===208||s.parent.kind===212||s.kind===108)l=u&&[...u];else if(u){let g=PM(u),m=new Map;for(;!g.isEmpty();){let b=g.dequeue();if(!xm(m,ss(b.node)))continue;l=In(l,b);let T=TLe(e,t,r,b.node,b.node.pos);T&&g.enqueue(...T)}}let p=e.getTypeChecker();return Ft(l,g=>Ztt(g,p))}function TLe(e,t,r,i,o){if(i.kind===312)return;let s=e.getTypeChecker();if(i.parent.kind===304){let l=[];return FI.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(pg(u))),l}else if(i.kind===108||Od(i.parent)){let l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[pg(l.valueDeclaration)]}else return ALe(o,i,e,r,t,{implementations:!0,use:1})}function Ktt(e,t,r,i,o,s,l){return Ft(ILe(FI.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function ALe(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return ILe(FI.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function ILe(e){return e&&Zi(e,t=>t.references)}function Xtt(e,t,r){let i=(()=>{switch(e.type){case 0:{let{symbol:m}=e,{displayParts:b,kind:T}=xLe(m,t,r),I=b.map(N=>N.text).join(""),R=m.declarations&&Xc(m.declarations),M=R?Oo(R)||R:r;return{...R9(M),name:I,kind:T,displayParts:b,context:rT(R)}}case 1:{let{node:m}=e;return{...R9(m),name:m.text,kind:"label",displayParts:[rp(m.text,17)]}}case 2:{let{node:m}=e,b=ma(m.kind);return{...R9(m),name:b,kind:"keyword",displayParts:[{text:b,kind:"keyword"}]}}case 3:{let{node:m}=e,b=t.getSymbolAtLocation(m),T=b&&ty.getSymbolDisplayPartsDocumentationAndSymbolKind(t,b,m.getSourceFile(),QS(m),m).displayParts||[sf("this")];return{...R9(m),name:"this",kind:"var",displayParts:T}}case 4:{let{node:m}=e;return{...R9(m),name:m.text,kind:"var",displayParts:[rp(pc(m),8)]}}case 5:return{textSpan:ib(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[rp(`"${e.reference.fileName}"`,8)]};default:return C.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:p,context:g}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:p,...c_e(s,o,g)}}function R9(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:D9(Za(e)?e.expression:e,t)}}function xLe(e,t,r){let i=FI.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Xc(e.declarations)||r,{displayParts:s,symbolKind:l}=ty.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Ytt(e,t,r,i,o){return{...PQ(e),...i&&Qtt(e,t,r,o)}}function $tt(e,t){let r=RLe(e);return t?{...r,isDefinition:e.kind!==0&&DLe(e.node,t)}:r}function RLe(e){let t=PQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:r,node:i}=e;return{...t,isWriteAccess:d_e(i),isInString:r===2?!0:void 0}}function PQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),r=D9(e.node,t);return{textSpan:r,fileName:t.fileName,...c_e(r,t,e.context)}}}function Qtt(e,t,r,i){if(e.kind!==0&&Ve(t)){let{node:o,kind:s}=e,l=o.parent,u=t.text,p=np(l);if(p||uO(l)&&l.name===o&&l.dotDotDotToken===void 0){let g={prefixText:u+": "},m={suffixText:": "+u};if(s===3)return g;if(s===4)return m;if(p){let b=l.parent;return wa(b)&&_r(b.parent)&&tg(b.parent.left)?g:m}else return g}else if(tp(l)&&!l.propertyName){let g=Ju(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return wr(g.declarations,l)?{prefixText:u+" as "}:Pf}else if(Ju(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&hp(e.node)&&ks(e.node.parent)){let o=lX(i);return{prefixText:o,suffixText:o}}return Pf}function Ztt(e,t){let r=PQ(e);if(e.kind!==0){let{node:i}=e;return{...r,...ent(i,t)}}else return{...r,kind:"",displayParts:[]}}function ent(e,t){let r=t.getSymbolAtLocation(qu(e)&&e.name?e.name:e);return r?xLe(r,t,e):e.kind===210?{kind:"interface",displayParts:[Yu(21),sf("object literal"),Yu(22)]}:e.kind===231?{kind:"local class",displayParts:[Yu(21),sf("anonymous local class"),Yu(22)]}:{kind:sE(e),displayParts:[]}}function tnt(e){let t=PQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let r=d_e(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function D9(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return us(e)&&o-i>2&&(C.assert(r===void 0),i+=1,o-=1),r?.kind===269&&(o=r.getFullStart()),dc(i,o)}function u_e(e){return e.kind===0?e.textSpan:D9(e.node,e.node.getSourceFile())}function d_e(e){let t=NC(e);return!!t&&nnt(t)||e.kind===90||BA(e)}function DLe(e,t){var r;if(!t)return!1;let i=NC(e)||(e.kind===90?e.parent:YL(e)||e.kind===137&&Pl(e.parent)?e.parent.parent:void 0),o=i&&_r(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function nnt(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!Yv(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||$1(e.parent);case 173:case 171:case 355:case 348:return!1;default:return C.failBadSyntaxKind(e)}}var p_e,f_e,m_e,FI,rnt=A({"src/services/findAllReferences.ts"(){"use strict";ci(),__e(),p_e=(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))(p_e||{}),f_e=(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))(f_e||{}),m_e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(m_e||{}),(e=>{function t(Ue,mt,ft,Nt,le,We={},pt=new Set(Nt.map(j=>j.fileName))){var j,ot;if(mt=r(mt,We),no(mt)){let mn=w2.getReferenceAtPosition(mt,Ue,ft);if(!mn?.file)return;let q=ft.getTypeChecker().getMergedSymbol(mn.file.symbol);if(q)return g(ft,q,!1,Nt,pt);let Oe=ft.getFileIncludeReasons();return Oe?[{definition:{type:5,reference:mn.reference,file:mt},references:o(mn.file,Oe,ft)||et}]:void 0}if(!We.implementations){let mn=b(mt,Nt,le);if(mn)return mn}let xt=ft.getTypeChecker(),Ye=xt.getSymbolAtLocation(Pl(mt)&&mt.parent.name||mt);if(!Ye){if(!We.implementations&&us(mt)){if(dW(mt)){let mn=ft.getFileIncludeReasons(),q=(ot=(j=ft.getResolvedModuleFromModuleSpecifier(mt))==null?void 0:j.resolvedModule)==null?void 0:ot.resolvedFileName,Oe=q?ft.getSourceFile(q):void 0;if(Oe)return[{definition:{type:4,node:mt},references:o(Oe,mn,ft)||et}]}return qr(mt,Nt,xt,le)}return}if(Ye.escapedName==="export=")return g(ft,Ye.parent,!1,Nt,pt);let ht=l(Ye,ft,Nt,le,We,pt);if(ht&&!(Ye.flags&33554432))return ht;let Vt=s(mt,Ye,xt),yn=Vt&&l(Vt,ft,Nt,le,We,pt),fn=T(Ye,mt,Nt,pt,xt,le,We);return u(ft,ht,fn,yn)}e.getReferencedSymbolsForNode=t;function r(Ue,mt){return mt.use===1?Ue=JK(Ue):mt.use===2&&(Ue=ZF(Ue)),Ue}e.getAdjustedNode=r;function i(Ue,mt,ft,Nt=new Set(ft.map(le=>le.fileName))){var le,We;let pt=(le=mt.getSourceFile(Ue))==null?void 0:le.symbol;if(pt)return((We=g(mt,pt,!1,ft,Nt)[0])==null?void 0:We.references)||et;let j=mt.getFileIncludeReasons(),ot=mt.getSourceFile(Ue);return ot&&j&&o(ot,j,mt)||et}e.getReferencesForFileName=i;function o(Ue,mt,ft){let Nt,le=mt.get(Ue.path)||et;for(let We of le)if(R0(We)){let pt=ft.getSourceFileByPath(We.file),j=ZN(ft,We);l2(j)&&(Nt=In(Nt,{kind:0,fileName:pt.fileName,textSpan:ib(j)}))}return Nt}function s(Ue,mt,ft){if(Ue.parent&&Hk(Ue.parent)){let Nt=ft.getAliasedSymbol(mt),le=ft.getMergedSymbol(Nt);if(Nt!==le)return le}}function l(Ue,mt,ft,Nt,le,We){let pt=Ue.flags&1536&&Ue.declarations&&vn(Ue.declarations,no);if(!pt)return;let j=Ue.exports.get("export="),ot=g(mt,Ue,!!j,ft,We);if(!j||!We.has(pt.fileName))return ot;let xt=mt.getTypeChecker();return Ue=bu(j,xt),u(mt,ot,T(Ue,void 0,ft,We,xt,Nt,le))}function u(Ue,...mt){let ft;for(let Nt of mt)if(!(!Nt||!Nt.length)){if(!ft){ft=Nt;continue}for(let le of Nt){if(!le.definition||le.definition.type!==0){ft.push(le);continue}let We=le.definition.symbol,pt=ri(ft,ot=>!!ot.definition&&ot.definition.type===0&&ot.definition.symbol===We);if(pt===-1){ft.push(le);continue}let j=ft[pt];ft[pt]={definition:j.definition,references:j.references.concat(le.references).sort((ot,xt)=>{let Ye=p(Ue,ot),ht=p(Ue,xt);if(Ye!==ht)return tl(Ye,ht);let Vt=u_e(ot),yn=u_e(xt);return Vt.start!==yn.start?tl(Vt.start,yn.start):tl(Vt.length,yn.length)})}}}return ft}function p(Ue,mt){let ft=mt.kind===0?Ue.getSourceFile(mt.fileName):mt.node.getSourceFile();return Ue.getSourceFiles().indexOf(ft)}function g(Ue,mt,ft,Nt,le){C.assert(!!mt.valueDeclaration);let We=Vi(yLe(Ue,Nt,mt),j=>{if(j.kind==="import"){let ot=j.literal.parent;if(Yy(ot)){let xt=aa(ot.parent,lg);if(ft&&!xt.qualifier)return}return pg(j.literal)}else if(j.kind==="implicit"){let ot=j.literal.text!==Hy&&PN(j.referencingFile,xt=>xt.transformFlags&2?cg(xt)||zS(xt)||X1(xt)?xt:void 0:"skip")||j.referencingFile.statements[0]||j.referencingFile;return pg(ot)}else return{kind:0,fileName:j.referencingFile.fileName,textSpan:ib(j.ref)}});if(mt.declarations)for(let j of mt.declarations)switch(j.kind){case 312:break;case 267:le.has(j.getSourceFile().fileName)&&We.push(pg(j.name));break;default:C.assert(!!(mt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let pt=mt.exports.get("export=");if(pt?.declarations)for(let j of pt.declarations){let ot=j.getSourceFile();if(le.has(ot.fileName)){let xt=_r(j)&&zr(j.left)?j.left.expression:Ll(j)?C.checkDefined(bs(j,95,ot)):Oo(j)||j;We.push(pg(xt))}}return We.length?[{definition:{type:0,symbol:mt},references:We}]:et}function m(Ue){return Ue.kind===148&&kS(Ue.parent)&&Ue.parent.operator===148}function b(Ue,mt,ft){if(sP(Ue.kind))return Ue.kind===116&&sI(Ue.parent)||Ue.kind===148&&!m(Ue)?void 0:Le(mt,Ue.kind,ft,Ue.kind===148?m:void 0);if(nR(Ue.parent)&&Ue.parent.name===Ue)return ve(mt,ft);if(tI(Ue)&&Il(Ue.parent))return[{definition:{type:2,node:Ue},references:[pg(Ue)]}];if(Zw(Ue)){let Nt=JF(Ue.parent,Ue.text);return Nt&&me(Nt.parent,Nt)}else if(WK(Ue))return me(Ue.parent,Ue);if(h2(Ue))return nr(Ue,mt,ft);if(Ue.kind===108)return ki(Ue)}function T(Ue,mt,ft,Nt,le,We,pt){let j=mt&&M(Ue,mt,le,!wn(pt))||Ue,ot=mt?bi(mt,j):7,xt=[],Ye=new H(ft,Nt,mt?R(mt):0,le,We,ot,pt,xt),ht=!wn(pt)||!j.declarations?void 0:vn(j.declarations,Ju);if(ht)At(ht.name,j,ht,Ye.createSearch(mt,Ue,void 0),Ye,!0,!0);else if(mt&&mt.kind===90&&j.escapedName==="default"&&j.parent)yt(mt,j,Ye),K(mt,j,{exportingModuleSymbol:j.parent,exportKind:1},Ye);else{let Vt=Ye.createSearch(mt,j,void 0,{allSearchSymbols:mt?ln(j,mt,le,pt.use===2,!!pt.providePrefixAndSuffixTextForRename,!!pt.implementations):[j]});I(j,Ye,Vt)}return xt}function I(Ue,mt,ft){let Nt=he(Ue);if(Nt)Ee(Nt,Nt.getSourceFile(),ft,mt,!(no(Nt)&&!wr(mt.sourceFiles,Nt)));else for(let le of mt.sourceFiles)mt.cancellationToken.throwIfCancellationRequested(),G(le,ft,mt)}function R(Ue){switch(Ue.kind){case 176:case 137:return 1;case 80:if(pi(Ue.parent))return C.assert(Ue.parent.name===Ue),2;default:return 0}}function M(Ue,mt,ft,Nt){let{parent:le}=mt;return Ju(le)&&Nt?Se(mt,Ue,le,ft):Zt(Ue.declarations,We=>{if(!We.parent){if(Ue.flags&33554432)return;C.fail(`Unexpected symbol at ${C.formatSyntaxKind(mt.kind)}: ${C.formatSymbol(Ue)}`)}return yp(We.parent)&&Xy(We.parent.parent)?ft.getPropertyOfType(ft.getTypeFromTypeNode(We.parent.parent),Ue.name):void 0})}let N;(Ue=>{Ue[Ue.None=0]="None",Ue[Ue.Constructor=1]="Constructor",Ue[Ue.Class=2]="Class"})(N||(N={}));function O(Ue){if(!(Ue.flags&33555968))return;let mt=Ue.declarations&&vn(Ue.declarations,ft=>!no(ft)&&!Jl(ft));return mt&&mt.symbol}class H{constructor(mt,ft,Nt,le,We,pt,j,ot){this.sourceFiles=mt,this.sourceFilesSet=ft,this.specialSearchKind=Nt,this.checker=le,this.cancellationToken=We,this.searchMeaning=pt,this.options=j,this.result=ot,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=xI(),this.markSeenReExportRHS=xI(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(mt){return this.sourceFilesSet.has(mt.fileName)}getImportSearches(mt,ft){return this.importTracker||(this.importTracker=r_e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(mt,ft,this.options.use===2)}createSearch(mt,ft,Nt,le={}){let{text:We=em(bl(TR(ft)||O(ft)||ft)),allSearchSymbols:pt=[ft]}=le,j=ml(We),ot=this.options.implementations&&mt?En(mt,ft,this.checker):void 0;return{symbol:ft,comingFrom:Nt,text:We,escapedText:j,parents:ot,allSearchSymbols:pt,includes:xt=>wr(pt,xt)}}referenceAdder(mt){let ft=Ta(mt),Nt=this.symbolIdToReferences[ft];return Nt||(Nt=this.symbolIdToReferences[ft]=[],this.result.push({definition:{type:0,symbol:mt},references:Nt})),(le,We)=>Nt.push(pg(le,We))}addStringOrCommentReference(mt,ft){this.result.push({definition:void 0,references:[{kind:0,fileName:mt,textSpan:ft}]})}markSearchedSymbols(mt,ft){let Nt=ss(mt),le=this.sourceFileToSeenSymbols[Nt]||(this.sourceFileToSeenSymbols[Nt]=new Set),We=!1;for(let pt of ft)We=Av(le,Ta(pt))||We;return We}}function K(Ue,mt,ft,Nt){let{importSearches:le,singleReferences:We,indirectUsers:pt}=Nt.getImportSearches(mt,ft);if(We.length){let j=Nt.referenceAdder(mt);for(let ot of We)V(ot,Nt)&&j(ot)}for(let[j,ot]of le)He(j.getSourceFile(),Nt.createSearch(j,ot,1),Nt);if(pt.length){let j;switch(ft.exportKind){case 0:j=Nt.createSearch(Ue,mt,1);break;case 1:j=Nt.options.use===2?void 0:Nt.createSearch(Ue,mt,1,{text:"default"});break;case 2:break}if(j)for(let ot of pt)G(ot,j,Nt)}}function Z(Ue,mt,ft,Nt,le,We,pt,j){let ot=r_e(Ue,new Set(Ue.map(Vt=>Vt.fileName)),mt,ft),{importSearches:xt,indirectUsers:Ye,singleReferences:ht}=ot(Nt,{exportKind:pt?1:0,exportingModuleSymbol:le},!1);for(let[Vt]of xt)j(Vt);for(let Vt of ht)Ve(Vt)&&lg(Vt.parent)&&j(Vt);for(let Vt of Ye)for(let yn of fe(Vt,pt?"default":We)){let fn=mt.getSymbolAtLocation(yn),mn=Et(fn?.declarations,q=>!!ai(q,Ll));Ve(yn)&&!IA(yn.parent)&&(fn===Nt||mn)&&j(yn)}}e.eachExportReference=Z;function V(Ue,mt){return Ce(Ue,mt)?mt.options.use!==2?!0:Ve(Ue)?!(IA(Ue.parent)&&Ue.escapedText==="default"):!1:!1}function ue(Ue,mt){if(Ue.declarations)for(let ft of Ue.declarations){let Nt=ft.getSourceFile();He(Nt,mt.createSearch(ft,Ue,0),mt,mt.includesSourceFile(Nt))}}function G(Ue,mt,ft){wY(Ue).get(mt.escapedText)!==void 0&&He(Ue,mt,ft)}function ne(Ue,mt){return Yv(Ue.parent.parent)?mt.getPropertySymbolOfDestructuringAssignment(Ue):void 0}function he(Ue){let{declarations:mt,flags:ft,parent:Nt,valueDeclaration:le}=Ue;if(le&&(le.kind===218||le.kind===231))return le;if(!mt)return;if(ft&8196){let j=vn(mt,ot=>_p(ot,2)||ad(ot));return j?p0(j,263):void 0}if(mt.some(uO))return;let We=Nt&&!(Ue.flags&262144);if(We&&!(sO(Nt)&&!Nt.globalExports))return;let pt;for(let j of mt){let ot=QS(j);if(pt&&pt!==ot||!ot||ot.kind===312&&!Fp(ot))return;if(pt=ot,ws(pt)){let xt;for(;xt=Oj(pt);)pt=xt}}return We?pt.getSourceFile():pt}function ye(Ue,mt,ft,Nt=ft){return $(Ue,mt,ft,()=>!0,Nt)||!1}e.isSymbolReferencedInFile=ye;function $(Ue,mt,ft,Nt,le=ft){let We=pp(Ue.parent,Ue.parent.parent)?Ha(mt.getSymbolsOfParameterPropertyDeclaration(Ue.parent,Ue.text)):mt.getSymbolAtLocation(Ue);if(We)for(let pt of fe(ft,We.name,le)){if(!Ve(pt)||pt===Ue||pt.escapedText!==Ue.escapedText)continue;let j=mt.getSymbolAtLocation(pt);if(j===We||mt.getShorthandAssignmentValueSymbol(pt.parent)===We||Ju(pt.parent)&&Se(pt,j,pt.parent,mt)===We){let ot=Nt(pt);if(ot)return ot}}}e.eachSymbolReferenceInFile=$;function Y(Ue,mt){return tr(fe(mt,Ue),le=>!!NC(le)).reduce((le,We)=>{let pt=Nt(We);return!Et(le.declarationNames)||pt===le.depth?(le.declarationNames.push(We),le.depth=pt):ptYe===le)&&Nt(pt,ot))return!0}return!1}e.someSignatureUsage=oe;function fe(Ue,mt,ft=Ue){return Vi(Ne(Ue,mt,ft),Nt=>{let le=zd(Ue,Nt);return le===Ue?void 0:le})}function Ne(Ue,mt,ft=Ue){let Nt=[];if(!mt||!mt.length)return Nt;let le=Ue.text,We=le.length,pt=mt.length,j=le.indexOf(mt,ft.pos);for(;j>=0&&!(j>ft.end);){let ot=j+pt;(j===0||!Zb(le.charCodeAt(j-1),99))&&(ot===We||!Zb(le.charCodeAt(ot),99))&&Nt.push(j),j=le.indexOf(mt,j+pt+1)}return Nt}function me(Ue,mt){let ft=Ue.getSourceFile(),Nt=mt.text,le=Vi(fe(ft,Nt,Ue),We=>We===mt||Zw(We)&&JF(We,Nt)===mt?pg(We):void 0);return[{definition:{type:1,node:mt},references:le}]}function ie(Ue,mt){switch(Ue.kind){case 81:if(y0(Ue.parent))return!0;case 80:return Ue.text.length===mt.length;case 15:case 11:{let ft=Ue;return(KF(ft)||VK(Ue)||hue(Ue)||la(Ue.parent)&&bS(Ue.parent)&&Ue.parent.arguments[1]===Ue)&&ft.text.length===mt.length}case 9:return KF(Ue)&&Ue.text.length===mt.length;case 90:return mt.length===7;default:return!1}}function ve(Ue,mt){let ft=Zi(Ue,Nt=>(mt.throwIfCancellationRequested(),Vi(fe(Nt,"meta",Nt),le=>{let We=le.parent;if(nR(We))return pg(We)})));return ft.length?[{definition:{type:2,node:ft[0].node},references:ft}]:void 0}function Le(Ue,mt,ft,Nt){let le=Zi(Ue,We=>(ft.throwIfCancellationRequested(),Vi(fe(We,ma(mt),We),pt=>{if(pt.kind===mt&&(!Nt||Nt(pt)))return pg(pt)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function He(Ue,mt,ft,Nt=!0){return ft.cancellationToken.throwIfCancellationRequested(),Ee(Ue,Ue,mt,ft,Nt)}function Ee(Ue,mt,ft,Nt,le){if(Nt.markSearchedSymbols(mt,ft.allSearchSymbols))for(let We of Ne(mt,ft.text,Ue))Me(mt,We,ft,Nt,le)}function Ce(Ue,mt){return!!($S(Ue)&mt.searchMeaning)}function Me(Ue,mt,ft,Nt,le){let We=zd(Ue,mt);if(!ie(We,ft.text)){!Nt.options.implementations&&(Nt.options.findInStrings&&II(Ue,mt)||Nt.options.findInComments&&Nue(Ue,mt))&&Nt.addStringOrCommentReference(Ue.fileName,vu(mt,ft.text.length));return}if(!Ce(We,Nt))return;let pt=Nt.checker.getSymbolAtLocation(We);if(!pt)return;let j=We.parent;if(tp(j)&&j.propertyName===We)return;if(Ju(j)){C.assert(We.kind===80),At(We,pt,j,ft,Nt,le);return}if(mC(j)&&j.isNameFirst&&j.typeExpression&&GS(j.typeExpression.type)&&j.typeExpression.type.jsDocPropertyTags&&De(j.typeExpression.type.jsDocPropertyTags)){Fe(j.typeExpression.type.jsDocPropertyTags,We,ft,Nt);return}let ot=ui(ft,pt,We,Nt);if(!ot){Bt(pt,ft,Nt);return}switch(Nt.specialSearchKind){case 0:le&&yt(We,ot,Nt);break;case 1:Qe(We,Ue,ft,Nt);break;case 2:gt(We,ft,Nt);break;default:C.assertNever(Nt.specialSearchKind)}cr(We)&&Qa(We.parent)&&C1(We.parent.parent.parent)&&(pt=We.parent.symbol,!pt)||at(We,pt,ft,Nt)}function Fe(Ue,mt,ft,Nt){let le=Nt.referenceAdder(ft.symbol);yt(mt,ft.symbol,Nt),Ke(Ue,We=>{Ad(We.name)&&le(We.name.left)})}function At(Ue,mt,ft,Nt,le,We,pt){C.assert(!pt||!!le.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:j,propertyName:ot,name:xt}=ft,Ye=j.parent,ht=Se(Ue,mt,ft,le.checker);if(!pt&&!Nt.includes(ht))return;if(ot?Ue===ot?(Ye.moduleSpecifier||Vt(),We&&le.options.use!==2&&le.markSeenReExportRHS(xt)&&yt(xt,C.checkDefined(ft.symbol),le)):le.markSeenReExportRHS(Ue)&&Vt():le.options.use===2&&xt.escapedText==="default"||Vt(),!wn(le.options)||pt){let fn=Ue.escapedText==="default"||ft.name.escapedText==="default"?1:0,mn=C.checkDefined(ft.symbol),q=i_e(mn,fn,le.checker);q&&K(Ue,mn,q,le)}if(Nt.comingFrom!==1&&Ye.moduleSpecifier&&!ot&&!wn(le.options)){let yn=le.checker.getExportSpecifierLocalTargetSymbol(ft);yn&&ue(yn,le)}function Vt(){We&&yt(Ue,ht,le)}}function Se(Ue,mt,ft,Nt){return je(Ue,ft)&&Nt.getExportSpecifierLocalTargetSymbol(ft)||mt}function je(Ue,mt){let{parent:ft,propertyName:Nt,name:le}=mt;return C.assert(Nt===Ue||le===Ue),Nt?Nt===Ue:!ft.parent.moduleSpecifier}function at(Ue,mt,ft,Nt){let le=SLe(Ue,mt,Nt.checker,ft.comingFrom===1);if(!le)return;let{symbol:We}=le;le.kind===0?wn(Nt.options)||ue(We,Nt):K(Ue,We,le.exportInfo,Nt)}function Bt({flags:Ue,valueDeclaration:mt},ft,Nt){let le=Nt.checker.getShorthandAssignmentValueSymbol(mt),We=mt&&Oo(mt);!(Ue&33554432)&&We&&ft.includes(le)&&yt(We,le,Nt)}function yt(Ue,mt,ft){let{kind:Nt,symbol:le}="kind"in mt?mt:{kind:void 0,symbol:mt};if(ft.options.use===2&&Ue.kind===90)return;let We=ft.referenceAdder(le);ft.options.implementations?Qt(Ue,We,ft):We(Ue,Nt)}function Qe(Ue,mt,ft,Nt){iP(Ue)&&yt(Ue,ft.symbol,Nt);let le=()=>Nt.referenceAdder(ft.symbol);if(pi(Ue.parent))C.assert(Ue.kind===90||Ue.parent.name===Ue),nn(ft.symbol,mt,le());else{let We=ja(Ue);We&&(Nn(We,le()),_n(We,Nt))}}function gt(Ue,mt,ft){yt(Ue,mt.symbol,ft);let Nt=Ue.parent;if(ft.options.use===2||!pi(Nt))return;C.assert(Nt.name===Ue);let le=ft.referenceAdder(mt.symbol);for(let We of Nt.members)RA(We)&&sa(We)&&We.body&&We.body.forEachChild(function pt(j){j.kind===110?le(j):!ea(j)&&!pi(j)&&j.forEachChild(pt)})}function nn(Ue,mt,ft){let Nt=rn(Ue);if(Nt&&Nt.declarations)for(let le of Nt.declarations){let We=bs(le,137,mt);C.assert(le.kind===176&&!!We),ft(We)}Ue.exports&&Ue.exports.forEach(le=>{let We=le.valueDeclaration;if(We&&We.kind===174){let pt=We.body;pt&&_a(pt,110,j=>{iP(j)&&ft(j)})}})}function rn(Ue){return Ue.members&&Ue.members.get("__constructor")}function Nn(Ue,mt){let ft=rn(Ue.symbol);if(ft&&ft.declarations)for(let Nt of ft.declarations){C.assert(Nt.kind===176);let le=Nt.body;le&&_a(le,108,We=>{wK(We)&&mt(We)})}}function Xn(Ue){return!!rn(Ue.symbol)}function _n(Ue,mt){if(Xn(Ue))return;let ft=Ue.symbol,Nt=mt.createSearch(void 0,ft,void 0);I(ft,mt,Nt)}function Qt(Ue,mt,ft){if(Wg(Ue)&&ro(Ue.parent)){mt(Ue);return}if(Ue.kind!==80)return;Ue.parent.kind===304&&No(Ue,ft.checker,mt);let Nt=Yt(Ue);if(Nt){mt(Nt);return}let le=zn(Ue,j=>!Ad(j.parent)&&!qi(j.parent)&&!dS(j.parent)),We=le.parent;if(N6(We)&&We.type===le&&ft.markSeenContainingTypeReference(We))if(Oy(We))pt(We.initializer);else if(ea(We)&&We.body){let j=We.body;j.kind===241?R1(j,ot=>{ot.expression&&pt(ot.expression)}):pt(j)}else pS(We)&&pt(We.expression);function pt(j){vi(j)&&mt(j)}}function Yt(Ue){return Ve(Ue)||zr(Ue)?Yt(Ue.parent):Hv(Ue)?ai(Ue.parent.parent,Xm(pi,fd)):void 0}function vi(Ue){switch(Ue.kind){case 217:return vi(Ue.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function ho(Ue,mt,ft,Nt){if(Ue===mt)return!0;let le=Ta(Ue)+","+Ta(mt),We=ft.get(le);if(We!==void 0)return We;ft.set(le,!1);let pt=!!Ue.declarations&&Ue.declarations.some(j=>PC(j).some(ot=>{let xt=Nt.getTypeAtLocation(ot);return!!xt&&!!xt.symbol&&ho(xt.symbol,mt,ft,Nt)}));return ft.set(le,pt),pt}function ki(Ue){let mt=CL(Ue,!1);if(!mt)return;let ft=256;switch(mt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:ft&=Gy(mt),mt=mt.parent;break;default:return}let Nt=mt.getSourceFile(),le=Vi(fe(Nt,"super",mt),We=>{if(We.kind!==108)return;let pt=CL(We,!1);return pt&&sa(pt)===!!ft&&pt.parent.symbol===mt.symbol?pg(We):void 0});return[{definition:{type:0,symbol:mt.symbol},references:le}]}function Ro(Ue){return Ue.kind===80&&Ue.parent.kind===169&&Ue.parent.name===Ue}function nr(Ue,mt,ft){let Nt=wd(Ue,!1,!1),le=256;switch(Nt.kind){case 174:case 173:if(Im(Nt)){le&=Gy(Nt),Nt=Nt.parent;break}case 172:case 171:case 176:case 177:case 178:le&=Gy(Nt),Nt=Nt.parent;break;case 312:if(ac(Nt)||Ro(Ue))return;case 262:case 218:break;default:return}let We=Zi(Nt.kind===312?mt:[Nt.getSourceFile()],j=>(ft.throwIfCancellationRequested(),fe(j,"this",no(Nt)?j:Nt).filter(ot=>{if(!h2(ot))return!1;let xt=wd(ot,!1,!1);if(!A_(xt))return!1;switch(Nt.kind){case 218:case 262:return Nt.symbol===xt.symbol;case 174:case 173:return Im(Nt)&&Nt.symbol===xt.symbol;case 231:case 263:case 210:return xt.parent&&A_(xt.parent)&&Nt.symbol===xt.parent.symbol&&sa(xt)===!!le;case 312:return xt.kind===312&&!ac(xt)&&!Ro(ot)}}))).map(j=>pg(j));return[{definition:{type:3,node:Zt(We,j=>Co(j.node.parent)?j.node:void 0)||Ue},references:We}]}function qr(Ue,mt,ft,Nt){let le=QF(Ue,ft),We=Zi(mt,pt=>(Nt.throwIfCancellationRequested(),Vi(fe(pt,Ue.text),j=>{if(us(j)&&j.text===Ue.text)if(le){let ot=QF(j,ft);if(le!==ft.getStringType()&&(le===ot||xr(j,ft)))return pg(j,2)}else return QA(j)&&!DS(j,pt)?void 0:pg(j,2)})));return[{definition:{type:4,node:Ue},references:We}]}function xr(Ue,mt){if(gp(Ue.parent))return mt.getPropertyOfType(mt.getTypeAtLocation(Ue.parent.parent),Ue.text)}function ln(Ue,mt,ft,Nt,le,We){let pt=[];return tt(Ue,mt,ft,Nt,!(Nt&&le),(j,ot,xt)=>{xt&&Rn(Ue)!==Rn(xt)&&(xt=void 0),pt.push(xt||ot||j)},()=>!We),pt}function tt(Ue,mt,ft,Nt,le,We,pt){let j=FO(mt);if(j){let fn=ft.getShorthandAssignmentValueSymbol(mt.parent);if(fn&&Nt)return We(fn,void 0,void 0,3);let mn=ft.getContextualType(j.parent),q=mn&&Zt(s9(j,ft,mn,!0),ae=>Vt(ae,4));if(q)return q;let Oe=ne(mt,ft),Lt=Oe&&We(Oe,void 0,void 0,4);if(Lt)return Lt;let w=fn&&We(fn,void 0,void 0,3);if(w)return w}let ot=s(mt,Ue,ft);if(ot){let fn=We(ot,void 0,void 0,1);if(fn)return fn}let xt=Vt(Ue);if(xt)return xt;if(Ue.valueDeclaration&&pp(Ue.valueDeclaration,Ue.valueDeclaration.parent)){let fn=ft.getSymbolsOfParameterPropertyDeclaration(aa(Ue.valueDeclaration,Co),Ue.name);return C.assert(fn.length===2&&!!(fn[0].flags&1)&&!!(fn[1].flags&4)),Vt(Ue.flags&1?fn[1]:fn[0])}let Ye=dl(Ue,281);if(!Nt||Ye&&!Ye.propertyName){let fn=Ye&&ft.getExportSpecifierLocalTargetSymbol(Ye);if(fn){let mn=We(fn,void 0,void 0,1);if(mn)return mn}}if(!Nt){let fn;return le?fn=uO(mt.parent)?pW(ft,mt.parent):void 0:fn=yn(Ue,ft),fn&&Vt(fn,4)}if(C.assert(Nt),le){let fn=yn(Ue,ft);return fn&&Vt(fn,4)}function Vt(fn,mn){return Zt(ft.getRootSymbols(fn),q=>We(fn,q,void 0,mn)||(q.parent&&q.parent.flags&96&&pt(q)?zt(q.parent,q.name,ft,Oe=>We(fn,q,Oe,mn)):void 0))}function yn(fn,mn){let q=dl(fn,208);if(q&&uO(q))return pW(mn,q)}}function zt(Ue,mt,ft,Nt){let le=new Map;return We(Ue);function We(pt){if(!(!(pt.flags&96)||!xm(le,Ta(pt))))return Zt(pt.declarations,j=>Zt(PC(j),ot=>{let xt=ft.getTypeAtLocation(ot),Ye=xt&&xt.symbol&&ft.getPropertyOfType(xt,mt);return xt&&Ye&&(Zt(ft.getRootSymbols(Ye),Nt)||We(xt.symbol))}))}}function Rn(Ue){return Ue.valueDeclaration?!!(cd(Ue.valueDeclaration)&256):!1}function ui(Ue,mt,ft,Nt){let{checker:le}=Nt;return tt(mt,ft,le,!1,Nt.options.use!==2||!!Nt.options.providePrefixAndSuffixTextForRename,(We,pt,j,ot)=>(j&&Rn(mt)!==Rn(j)&&(j=void 0),Ue.includes(j||pt||We)?{symbol:pt&&!(Al(We)&6)?pt:We,kind:ot}:void 0),We=>!(Ue.parents&&!Ue.parents.some(pt=>ho(We.parent,pt,Nt.inheritsFromCache,le))))}function bi(Ue,mt){let ft=$S(Ue),{declarations:Nt}=mt;if(Nt){let le;do{le=ft;for(let We of Nt){let pt=Yw(We);pt&ft&&(ft|=pt)}}while(ft!==le)}return ft}e.getIntersectingMeaningFromDeclarations=bi;function ro(Ue){return Ue.flags&33554432?!(fd(Ue)||Dm(Ue)):rR(Ue)?Oy(Ue):zs(Ue)?!!Ue.body:pi(Ue)||mL(Ue)}function No(Ue,mt,ft){let Nt=mt.getSymbolAtLocation(Ue),le=mt.getShorthandAssignmentValueSymbol(Nt.valueDeclaration);if(le)for(let We of le.getDeclarations())Yw(We)&1&&ft(We)}e.getReferenceEntriesForShorthandPropertyAssignment=No;function _a(Ue,mt,ft){Ho(Ue,Nt=>{Nt.kind===mt&&ft(Nt),_a(Nt,mt,ft)})}function ja(Ue){return lU(qF(Ue).parent)}function En(Ue,mt,ft){let Nt=_2(Ue)?Ue.parent:void 0,le=Nt&&ft.getTypeAtLocation(Nt.expression),We=Vi(le&&(le.isUnionOrIntersection()?le.types:le.symbol===mt.parent?void 0:[le]),pt=>pt.symbol&&pt.symbol.flags&96?pt.symbol:void 0);return We.length===0?void 0:We}function wn(Ue){return Ue.use===2&&Ue.providePrefixAndSuffixTextForRename}})(FI||(FI={}))}}),Os={};X(Os,{Core:()=>FI,DefinitionKind:()=>p_e,EntryKind:()=>f_e,ExportKind:()=>a_e,FindReferencesUse:()=>m_e,ImportExport:()=>s_e,createImportTracker:()=>r_e,findModuleReferences:()=>yLe,findReferenceOrRenameEntries:()=>Ktt,findReferencedSymbols:()=>Htt,getContextNode:()=>rT,getExportInfo:()=>i_e,getImplementationsAtPosition:()=>Jtt,getImportOrExportSymbol:()=>SLe,getReferenceEntriesForNode:()=>ALe,getTextSpanOfEntry:()=>u_e,isContextWithStartAndEndNode:()=>l_e,isDeclarationOfSymbol:()=>DLe,isWriteAccessForReference:()=>d_e,nodeEntry:()=>pg,toContextSpan:()=>c_e,toHighlightSpan:()=>tnt,toReferenceEntry:()=>RLe,toRenameLocation:()=>Ytt});var __e=A({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";jtt(),rnt()}});function CLe(e,t,r,i,o){var s;let l=PLe(t,r,e),u=l&&[_nt(l.reference.fileName,l.fileName,l.unverified)]||et;if(l?.file)return u;let p=zd(t,r);if(p===t)return;let{parent:g}=p,m=e.getTypeChecker();if(p.kind===164||Ve(p)&&i5(g)&&g.tagName===p)return ont(m,p)||et;if(Zw(p)){let N=JF(p.parent,p.text);return N?[h_e(m,N,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:let N=zn(p.parent,H=>Il(H)?"quit":zs(H));return N?[C9(m,N)]:void 0;case 90:if(!IN(p.parent))break;case 84:let O=zn(p.parent,SN);if(O)return[mnt(O,t)];break}if(p.kind===135){let N=zn(p,H=>zs(H));return N&&Et(N.modifiers,H=>H.kind===134)?[C9(m,N)]:void 0}if(p.kind===127){let N=zn(p,H=>zs(H));return N&&N.asteriskToken?[C9(m,N)]:void 0}if(tI(p)&&Il(p.parent)){let N=p.parent.parent,{symbol:O,failedAliasResolution:H}=MQ(N,m,o),K=tr(N.members,Il),Z=O?m.symbolToString(O,N):"",V=p.getSourceFile();return Ft(K,ue=>{let{pos:G}=P_(ue);return G=La(V.text,G),h_e(m,ue,"constructor","static {}",Z,!1,H,{start:G,length:6})})}let{symbol:b,failedAliasResolution:T}=MQ(p,m,o),I=p;if(i&&T){let N=Ke([p,...b?.declarations||et],H=>zn(H,sie)),O=N&&cR(N);O&&({symbol:b,failedAliasResolution:T}=MQ(O,m,o),I=O)}if(!b&&dW(I)){let N=(s=e.getResolvedModuleFromModuleSpecifier(I))==null?void 0:s.resolvedModule;if(N)return[{name:I.text,fileName:N.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:vu(0,0),failedAliasResolution:T,isAmbient:Su(N.resolvedFileName),unverified:I!==p}]}if(!b)return xo(u,dnt(p,m));if(i&&Jn(b.declarations,N=>N.getSourceFile().fileName===t.fileName))return;let R=gnt(m,p);if(R&&!(sd(p.parent)&&vnt(R))){let N=C9(m,R,T);if(m.getRootSymbols(b).some(O=>int(O,R)))return[N];{let O=AP(m,b,p,T,R)||et;return p.kind===108?[N,...O]:[...O,N]}}if(p.parent.kind===304){let N=m.getShorthandAssignmentValueSymbol(b.valueDeclaration),O=N?.declarations?N.declarations.map(H=>XO(H,m,N,p,!1,T)):et;return xo(O,NLe(m,p))}if(ic(p)&&Qa(g)&&om(g.parent)&&p===(g.propertyName||g.name)){let N=cO(p),O=m.getTypeAtLocation(g.parent);return N===void 0?et:Zi(O.isUnion()?O.types:[O],H=>{let K=H.getProperty(N);return K&&AP(m,K,p)})}let M=NLe(m,p);return xo(u,M.length?M:AP(m,b,p,T))}function int(e,t){var r;return e===t.symbol||e===t.symbol.parent||Mc(t.parent)||!T1(t.parent)&&e===((r=ai(t.parent,A_))==null?void 0:r.symbol)}function NLe(e,t){let r=FO(t);if(r){let i=r&&e.getContextualType(r.parent);if(i)return Zi(s9(r,e,i,!1),o=>AP(e,o,t))}return et}function ont(e,t){let r=zn(t,$c);if(!(r&&r.name))return;let i=zn(r,pi);if(!i)return;let o=x_(i);if(!o)return;let s=vs(o.expression),l=Zc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;let u=Hi(Zx(r.name)),p=fc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),u);if(p)return AP(e,p,t)}function PLe(e,t,r){var i,o;let s=IP(e.referencedFiles,t);if(s){let p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}let l=IP(e.typeReferenceDirectives,t);if(l){let p=(i=r.getResolvedTypeReferenceDirectives().get(l.fileName,l.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,g=p&&r.getSourceFile(p.resolvedFileName);return g&&{reference:l,fileName:g.fileName,file:g,unverified:!1}}let u=IP(e.libReferenceDirectives,t);if(u){let p=r.getLibFileFromReference(u);return p&&{reference:u,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let p=g2(e,t),g;if(dW(p)&&Yc(p.text)&&(g=r.getResolvedModuleFromModuleSpecifier(p))){let m=(o=g.resolvedModule)==null?void 0:o.resolvedFileName,b=m||Dy(li(e.fileName),p.text);return{file:r.getSourceFile(b),fileName:b,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!m}}}}function ant(e,t){let r=t.symbol.name;if(!v_e.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function MLe(e,t){if(!t.aliasSymbol)return!1;let r=t.aliasSymbol.name;if(!v_e.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function snt(e,t,r,i){var o,s;if(Wr(t)&4&&ant(e,t))return KO(e.getTypeArguments(t)[0],e,r,i);if(MLe(e,t)&&t.aliasTypeArguments)return KO(t.aliasTypeArguments[0],e,r,i);if(Wr(t)&32&&t.target&&MLe(e,t.target)){let l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Dm(l)&&Rf(l.type)&&l.type.typeArguments)return KO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function lnt(e,t,r){let i=zd(t,r);if(i===t)return;if(nR(i.parent)&&i.parent.name===i)return KO(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=MQ(i,e,!1);if(!o)return;let l=e.getTypeOfSymbolAtLocation(o,i),u=cnt(o,l,e),p=u&&KO(u,e,i,s),[g,m]=p&&p.length!==0?[u,p]:[l,KO(l,e,i,s)];return m.length?[...snt(e,g,i,s),...m]:!(o.flags&111551)&&o.flags&788968?AP(e,bu(o,e),i,s):void 0}function KO(e,t,r,i){return Zi(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&AP(t,o.symbol,r,i))}function cnt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Oi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Ha(i))}}function unt(e,t,r){let i=CLe(e,t,r);if(!i||i.length===0)return;let o=IP(t.referencedFiles,r)||IP(t.typeReferenceDirectives,r)||IP(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:ib(o)};let s=zd(t,r),l=vu(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function dnt(e,t){return Vi(t.getIndexInfosAtLocation(e),r=>r.declaration&&C9(t,r.declaration))}function MQ(e,t,r){let i=t.getSymbolAtLocation(e),o=!1;if(i?.declarations&&i.flags&2097152&&!r&&pnt(e,i.declarations[0])){let s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function pnt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function fnt(e){if(!DC(e))return!1;let t=zn(e,r=>Mc(r)?!0:DC(r)?!1:"quit");return!!t&&Wl(t)===5}function AP(e,t,r,i,o){let s=tr(t.declarations,b=>b!==o),l=tr(s,b=>!fnt(b)),u=Et(l)?l:s;return p()||g()||Ft(u,b=>XO(b,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(iP(r)||r.kind===137)){let b=vn(s,pi)||C.fail("Expected declaration to have at least one class-like declaration");return m(b.members,!0)}}function g(){return OK(r)||jK(r)?m(s,!1):void 0}function m(b,T){if(!b)return;let I=b.filter(T?Pl:ea),R=I.filter(M=>!!M.body);return I.length?R.length!==0?R.map(M=>XO(M,e,t,r)):[XO(Ya(I),e,t,r,!1,i)]:void 0}}function XO(e,t,r,i,o,s){let l=t.symbolToString(r),u=ty.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return h_e(t,e,u,l,p,o,s)}function h_e(e,t,r,i,o,s,l,u){let p=t.getSourceFile();if(!u){let g=Oo(t)||t;u=Rd(g,p)}return{fileName:p.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Os.toContextSpan(u,p,Os.getContextNode(t)),isLocal:!g_e(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function mnt(e,t){let r=Os.getContextNode(e),i=Rd(l_e(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Os.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function g_e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Oy(t.parent)&&t.parent.initializer===t)return g_e(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(_p(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return g_e(e,t.parent);default:return!1}}function C9(e,t,r){return XO(t,e,t.symbol,t,!1,r)}function IP(e,t){return vn(e,r=>ZM(r,t))}function _nt(e,t,r){return{fileName:t,textSpan:dc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function hnt(e){let t=zn(e,i=>!_2(i)),r=t?.parent;return r&&T1(r)&&e3(r)===t?r:void 0}function gnt(e,t){let r=hnt(t),i=r&&e.getResolvedSignature(r);return ai(i&&i.declaration,o=>ea(o)&&!bh(o))}function vnt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var v_e,ynt=A({"src/services/goToDefinition.ts"(){"use strict";ci(),__e(),v_e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),w2={};X(w2,{createDefinitionInfo:()=>XO,findReferenceInPosition:()=>IP,getDefinitionAndBoundSpan:()=>unt,getDefinitionAtPosition:()=>CLe,getReferenceAtPosition:()=>PLe,getTypeDefinitionAtPosition:()=>lnt});var bnt=A({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";ynt()}});function Ent(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function Snt(e){return e.includeInlayParameterNameHints==="literals"}function LLe(e){return e.interactiveInlayHints===!0}function Tnt(e){let{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),p=af(t,s),g=r.getTypeChecker(),m=[];return b(t),m;function b(me){if(!(!me||me.getFullWidth()===0)){switch(me.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(f6(i,me.pos,me.getFullWidth())&&!(qi(me)&&!Hv(me)))return s.includeInlayVariableTypeHints&&Oi(me)||s.includeInlayPropertyDeclarationTypeHints&&Jo(me)?H(me):s.includeInlayEnumMemberValueHints&&Q1(me)?N(me):Ent(s)&&(la(me)||H1(me))?K(me):(s.includeInlayFunctionParameterTypeHints&&zs(me)&&Z3(me)&&he(me),s.includeInlayFunctionLikeReturnTypeHints&&T(me)&&G(me)),Ho(me,b)}}function T(me){return Bs(me)||ws(me)||Sc(me)||jl(me)||Zp(me)}function I(me,ie,ve,Le){let He=`${Le?"...":""}${me}`,Ee;LLe(s)?(Ee=[Ne(He,ie),{text:":"}],He=""):He+=":",m.push({text:He,position:ve,kind:"Parameter",whitespaceAfter:!0,displayParts:Ee})}function R(me,ie){m.push({text:typeof me=="string"?`: ${me}`:"",displayParts:typeof me=="string"?void 0:[{text:": "},...me],position:ie,kind:"Type",whitespaceBefore:!0})}function M(me,ie){m.push({text:`= ${me}`,position:ie,kind:"Enum",whitespaceBefore:!0})}function N(me){if(me.initializer)return;let ie=g.getConstantValue(me);ie!==void 0&&M(ie.toString(),me.end)}function O(me){return me.symbol&&me.symbol.flags&1536}function H(me){if(!me.initializer||ta(me.name)||Oi(me)&&!fe(me)||yu(me))return;let ve=g.getTypeAtLocation(me);if(O(ve))return;let Le=Y(ve);if(Le){let He=typeof Le=="string"?Le:Le.map(Ce=>Ce.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&Yb(me.name.getText(),He))return;R(Le,me.name.end)}}function K(me){let ie=me.arguments;if(!ie||!ie.length)return;let ve=[],Le=g.getResolvedSignatureForSignatureHelp(me,ve);if(!Le||!ve.length)return;let He=0;for(let Ee of ie){let Ce=vs(Ee);if(Snt(s)&&!ue(Ce)){He++;continue}let Me=0;if(Zm(Ce)){let At=g.getTypeAtLocation(Ce.expression);if(g.isTupleType(At)){let{elementFlags:Se,fixedLength:je}=At.target;if(je===0)continue;let at=ri(Se,yt=>!(yt&1));(at<0?je:at)>0&&(Me=at<0?je:at)}}let Fe=g.getParameterIdentifierInfoAtPosition(Le,He);if(He=He+(Me||1),Fe){let{parameter:At,parameterName:Se,isRestParameter:je}=Fe;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!Z(Ce,Se))&&!je)continue;let Bt=Hi(Se);if(V(Ce,Bt))continue;I(Bt,At,Ee.getStart(),je)}}}function Z(me,ie){return Ve(me)?me.text===ie:zr(me)?me.name.text===ie:!1}function V(me,ie){if(!$p(ie,u.target,dk(t.scriptKind)))return!1;let ve=Kh(l,me.pos);if(!ve?.length)return!1;let Le=kLe(ie);return Et(ve,He=>Le.test(l.substring(He.pos,He.end)))}function ue(me){switch(me.kind){case 224:{let ie=me.operand;return S1(ie)||Ve(ie)&&oN(ie.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let ie=me.escapedText;return oe(ie)||oN(ie)}}return S1(me)}function G(me){if(Bs(me)&&!bs(me,21,t)||tm(me)||!me.body)return;let ve=g.getSignatureFromDeclaration(me);if(!ve)return;let Le=g.getReturnTypeOfSignature(ve);if(O(Le))return;let He=Y(Le);He&&R(He,ne(me))}function ne(me){let ie=bs(me,22,t);return ie?ie.end:me.parameters.end}function he(me){let ie=g.getSignatureFromDeclaration(me);if(ie)for(let ve=0;ve{let He=g.typeToTypeNode(me,void 0,71286784);C.assertIsDefined(He,"should always get typenode"),ve.writeNode(4,He,t,Le)})}function Y(me){if(!LLe(s))return $(me);let ve=g.typeToTypeNode(me,void 0,71286784);C.assertIsDefined(ve,"should always get typenode");let Le=[];return He(ve),Le;function He(Fe){var At,Se;if(!Fe)return;let je=ma(Fe.kind);if(je){Le.push({text:je});return}if(S1(Fe)){Le.push({text:Me(Fe)});return}switch(Fe.kind){case 80:C.assertNode(Fe,Ve);let at=Sr(Fe),Bt=Fe.symbol&&Fe.symbol.declarations&&Fe.symbol.declarations.length&&Oo(Fe.symbol.declarations[0]);Bt?Le.push(Ne(at,Bt)):Le.push({text:at});break;case 166:C.assertNode(Fe,Ad),He(Fe.left),Le.push({text:"."}),He(Fe.right);break;case 182:C.assertNode(Fe,Bk),Fe.assertsModifier&&Le.push({text:"asserts "}),He(Fe.parameterName),Fe.type&&(Le.push({text:" is "}),He(Fe.type));break;case 183:C.assertNode(Fe,Rf),He(Fe.typeName),Fe.typeArguments&&(Le.push({text:"<"}),Ce(Fe.typeArguments,", "),Le.push({text:">"}));break;case 168:C.assertNode(Fe,_l),Fe.modifiers&&Ce(Fe.modifiers," "),He(Fe.name),Fe.constraint&&(Le.push({text:" extends "}),He(Fe.constraint)),Fe.default&&(Le.push({text:" = "}),He(Fe.default));break;case 169:C.assertNode(Fe,Co),Fe.modifiers&&Ce(Fe.modifiers," "),Fe.dotDotDotToken&&Le.push({text:"..."}),He(Fe.name),Fe.questionToken&&Le.push({text:"?"}),Fe.type&&(Le.push({text:": "}),He(Fe.type));break;case 185:C.assertNode(Fe,OR),Le.push({text:"new "}),Ee(Fe),Le.push({text:" => "}),He(Fe.type);break;case 186:C.assertNode(Fe,rI),Le.push({text:"typeof "}),He(Fe.exprName),Fe.typeArguments&&(Le.push({text:"<"}),Ce(Fe.typeArguments,", "),Le.push({text:">"}));break;case 187:C.assertNode(Fe,yp),Le.push({text:"{"}),Fe.members.length&&(Le.push({text:" "}),Ce(Fe.members,"; "),Le.push({text:" "})),Le.push({text:"}"});break;case 188:C.assertNode(Fe,Gk),He(Fe.elementType),Le.push({text:"[]"});break;case 189:C.assertNode(Fe,iI),Le.push({text:"["}),Ce(Fe.elements,", "),Le.push({text:"]"});break;case 202:C.assertNode(Fe,FR),Fe.dotDotDotToken&&Le.push({text:"..."}),He(Fe.name),Fe.questionToken&&Le.push({text:"?"}),Le.push({text:": "}),He(Fe.type);break;case 190:C.assertNode(Fe,Y7),He(Fe.type),Le.push({text:"?"});break;case 191:C.assertNode(Fe,$7),Le.push({text:"..."}),He(Fe.type);break;case 192:C.assertNode(Fe,Xy),Ce(Fe.types," | ");break;case 193:C.assertNode(Fe,oI),Ce(Fe.types," & ");break;case 194:C.assertNode(Fe,aI),He(Fe.checkType),Le.push({text:" extends "}),He(Fe.extendsType),Le.push({text:" ? "}),He(Fe.trueType),Le.push({text:" : "}),He(Fe.falseType);break;case 195:C.assertNode(Fe,MS),Le.push({text:"infer "}),He(Fe.typeParameter);break;case 196:C.assertNode(Fe,LS),Le.push({text:"("}),He(Fe.type),Le.push({text:")"});break;case 198:C.assertNode(Fe,kS),Le.push({text:`${ma(Fe.operator)} `}),He(Fe.type);break;case 199:C.assertNode(Fe,wS),He(Fe.objectType),Le.push({text:"["}),He(Fe.indexType),Le.push({text:"]"});break;case 200:C.assertNode(Fe,WR),Le.push({text:"{ "}),Fe.readonlyToken&&(Fe.readonlyToken.kind===40?Le.push({text:"+"}):Fe.readonlyToken.kind===41&&Le.push({text:"-"}),Le.push({text:"readonly "})),Le.push({text:"["}),He(Fe.typeParameter),Fe.nameType&&(Le.push({text:" as "}),He(Fe.nameType)),Le.push({text:"]"}),Fe.questionToken&&(Fe.questionToken.kind===40?Le.push({text:"+"}):Fe.questionToken.kind===41&&Le.push({text:"-"}),Le.push({text:"?"})),Le.push({text:": "}),Fe.type&&He(Fe.type),Le.push({text:"; }"});break;case 201:C.assertNode(Fe,Yy),He(Fe.literal);break;case 184:C.assertNode(Fe,bh),Ee(Fe),Le.push({text:" => "}),He(Fe.type);break;case 205:C.assertNode(Fe,lg),Fe.isTypeOf&&Le.push({text:"typeof "}),Le.push({text:"import("}),He(Fe.argument),Fe.assertions&&(Le.push({text:", { assert: "}),Ce(Fe.assertions.assertClause.elements,", "),Le.push({text:" }"})),Le.push({text:")"}),Fe.qualifier&&(Le.push({text:"."}),He(Fe.qualifier)),Fe.typeArguments&&(Le.push({text:"<"}),Ce(Fe.typeArguments,", "),Le.push({text:">"}));break;case 171:C.assertNode(Fe,gp),(At=Fe.modifiers)!=null&&At.length&&(Ce(Fe.modifiers," "),Le.push({text:" "})),He(Fe.name),Fe.questionToken&&Le.push({text:"?"}),Fe.type&&(Le.push({text:": "}),He(Fe.type));break;case 181:C.assertNode(Fe,j1),Le.push({text:"["}),Ce(Fe.parameters,", "),Le.push({text:"]"}),Fe.type&&(Le.push({text:": "}),He(Fe.type));break;case 173:C.assertNode(Fe,yh),(Se=Fe.modifiers)!=null&&Se.length&&(Ce(Fe.modifiers," "),Le.push({text:" "})),He(Fe.name),Fe.questionToken&&Le.push({text:"?"}),Ee(Fe),Fe.type&&(Le.push({text:": "}),He(Fe.type));break;case 179:C.assertNode(Fe,nI),Ee(Fe),Fe.type&&(Le.push({text:": "}),He(Fe.type));break;case 207:C.assertNode(Fe,U1),Le.push({text:"["}),Ce(Fe.elements,", "),Le.push({text:"]"});break;case 206:C.assertNode(Fe,om),Le.push({text:"{"}),Fe.elements.length&&(Le.push({text:" "}),Ce(Fe.elements,", "),Le.push({text:" "})),Le.push({text:"}"});break;case 208:C.assertNode(Fe,Qa),He(Fe.name);break;case 224:C.assertNode(Fe,Qy),Le.push({text:ma(Fe.operator)}),He(Fe.operand);break;case 203:C.assertNode(Fe,Cae),He(Fe.head),Fe.templateSpans.forEach(He);break;case 16:C.assertNode(Fe,ZA),Le.push({text:Me(Fe)});break;case 204:C.assertNode(Fe,vH),He(Fe.type),He(Fe.literal);break;case 17:C.assertNode(Fe,mH),Le.push({text:Me(Fe)});break;case 18:C.assertNode(Fe,q7),Le.push({text:Me(Fe)});break;case 197:C.assertNode(Fe,Vk),Le.push({text:"this"});break;default:C.failBadSyntaxKind(Fe)}}function Ee(Fe){Fe.typeParameters&&(Le.push({text:"<"}),Ce(Fe.typeParameters,", "),Le.push({text:">"})),Le.push({text:"("}),Ce(Fe.parameters,", "),Le.push({text:")"})}function Ce(Fe,At){Fe.forEach((Se,je)=>{je>0&&Le.push({text:At}),He(Se)})}function Me(Fe){switch(Fe.kind){case 11:return p===0?`'${rg(Fe.text,39)}'`:`"${rg(Fe.text,34)}"`;case 16:case 17:case 18:{let At=Fe.rawText??$j(rg(Fe.text,96));switch(Fe.kind){case 16:return"`"+At+"${";case 17:return"}"+At+"${";case 18:return"}"+At+"`"}}}return Fe.text}}function oe(me){return me==="undefined"}function fe(me){if((L1(me)||Oi(me)&&tR(me))&&me.initializer){let ie=vs(me.initializer);return!(ue(ie)||H1(ie)||wa(ie)||pS(ie))}return!0}function Ne(me,ie){let ve=ie.getSourceFile();return{text:me,span:Rd(ie,ve),file:ve.fileName}}}var kLe,Ant=A({"src/services/inlayHints.ts"(){"use strict";ci(),kLe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),LQ={};X(LQ,{provideInlayHints:()=>Tnt});var Int=A({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";Ant()}});function xnt(e,t){let r=[];return pX(e,i=>{for(let o of Dnt(i)){let s=t_(o)&&o.tags&&vn(o.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||t_(o)&&i.kind!==353&&i.kind!==345&&o.tags&&o.tags.some(u=>u.kind===353||u.kind===345)&&!o.tags.some(u=>u.kind===348||u.kind===349))continue;let l=o.comment?O2(o.comment,t):[];s&&s.comment&&(l=l.concat(O2(s.comment,t))),wr(r,l,Rnt)||r.push(l)}}),ts(Qi(r,[E2()]))}function Rnt(e,t){return Ma(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Dnt(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(UR(e.parent))return[e.parent.parent];default:return wj(e)}}function Cnt(e,t){let r=[];return pX(e,i=>{let o=o0(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(let s of o)r.push({name:s.tagName.text,text:FLe(s,t)}),r.push(...wLe(OLe(s),t))}),r}function wLe(e,t){return Zi(e,r=>xo([{name:r.tagName.text,text:FLe(r,t)}],wLe(OLe(r),t)))}function OLe(e){return mC(e)&&e.isNameFirst&&e.typeExpression&&GS(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function O2(e,t){return typeof e=="string"?[sf(e)]:Zi(e,r=>r.kind===328?[sf(r.text)]:Gue(r,t))}function FLe(e,t){let{comment:r,kind:i}=e,o=Nnt(i);switch(i){case 356:let u=e.typeExpression;return u?s(u):r===void 0?void 0:O2(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:let p=e,g=[];if(p.constraint&&g.push(sf(p.constraint.getText())),De(p.typeParameters)){De(g)&&g.push(kl());let b=p.typeParameters[p.typeParameters.length-1];Ke(p.typeParameters,T=>{g.push(o(T.getText())),b!==T&&g.push(Yu(28),kl())})}return r&&g.push(kl(),...O2(r,t)),g;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:let{name:m}=e;return m?s(m):r===void 0?void 0:O2(r,t);default:return r===void 0?void 0:O2(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[sf(u),...O2(r,t)]:[o(u),kl(),...O2(r,t)]:[sf(u)]}}function Nnt(e){switch(e){case 348:return Oue;case 355:return Fue;case 352:return zue;case 353:case 345:return Wue;default:return sf}}function Pnt(){return zLe||(zLe=Ft(b_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:OI.SortText.LocationPriority})))}function Mnt(){return BLe||(BLe=Ft(b_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:OI.SortText.LocationPriority})))}function WLe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[sf(e)],documentation:et,tags:void 0,codeActions:void 0}}function Lnt(e){if(!Ve(e.name))return et;let t=e.name.text,r=e.parent,i=r.parent;return ea(i)?Vi(i.parameters,o=>{if(!Ve(o.name))return;let s=o.name.text;if(!(r.tags.some(l=>l!==e&&n_(l)&&Ve(l.name)&&l.name.escapedText===s)||t!==void 0&&!uo(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:OI.SortText.LocationPriority}}):[]}function knt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[sf(e)],documentation:et,tags:void 0,codeActions:void 0}}function wnt(e,t,r,i){let o=po(t,r),s=zn(o,t_);if(s&&(s.comment!==void 0||De(s.tags)))return;let l=o.getStart(t);if(!s&&l0;if(M&&!H){let K=N+e+I+" * ",Z=l===r?e+I:"";return{newText:K+e+M+I+O+Z,caretOffset:K.length}}return{newText:N+O,caretOffset:3}}function Ont(e,t){let{text:r}=e,i=sm(t,e),o=i;for(;o<=t&&S_(r.charCodeAt(o));o++);return r.slice(i,o)}function Fnt(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{let u=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function Wnt(e,t){return`${e} * @returns${t}`}function znt(e,t){return Yre(e,r=>y_e(r,t))}function y_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:let r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:N9(r,t)};case 303:return y_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{let o=e;return o.type&&bh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:N9(o.type,t)}:{commentOwner:e}}case 243:{let s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?Bnt(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:N9(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return y_e(e.expression,t);case 226:{let o=e;return Wl(o)===0?"quit":ea(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:N9(o.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(ws(i)||Bs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:N9(i,t)}}}function N9(e,t){return!!t?.generateReturnInDocTemplate&&(bh(e)||Bs(e)&&bt(e.body)||zs(e)&&e.body&&Xo(e.body)&&!!R1(e.body,r=>r))}function Bnt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return vn(e.members,Pl)}}var b_e,zLe,BLe,GLe,Gnt=A({"src/services/jsDoc.ts"(){"use strict";ci(),b_e=["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"],GLe=WLe}}),L0={};X(L0,{getDocCommentTemplateAtPosition:()=>wnt,getJSDocParameterNameCompletionDetails:()=>knt,getJSDocParameterNameCompletions:()=>Lnt,getJSDocTagCompletionDetails:()=>WLe,getJSDocTagCompletions:()=>Mnt,getJSDocTagNameCompletionDetails:()=>GLe,getJSDocTagNameCompletions:()=>Pnt,getJsDocCommentsFromDeclarations:()=>xnt,getJsDocTagsFromDeclarations:()=>Cnt});var Vnt=A({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";Gnt()}});function jnt(e,t,r,i,o,s){let l=hr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",p=u,g=s==="RemoveUnused"||s==="All",m=kQ(e,e.statements.filter(Lc)),b=art(o,u?()=>ULe(m,o)===2:void 0),T=R=>(g&&(R=Hnt(R,e,i)),p&&(R=VLe(R,b,e,o)),u&&(R=Iv(R,(M,N)=>I_e(M,N,b))),R);m.forEach(R=>I(R,T)),s!=="RemoveUnused"&&srt(e).forEach(R=>I(R,M=>E_e(M,b,o)));for(let R of e.statements.filter(Lu)){if(!R.body)continue;if(kQ(e,R.body.statements.filter(Lc)).forEach(N=>I(N,T)),s!=="RemoveUnused"){let N=R.body.statements.filter(Kl);I(N,O=>E_e(O,b,o))}}return l.getChanges();function I(R,M){if(De(R)===0)return;fr(R[0],1024);let N=p?$D(R,K=>P9(K.moduleSpecifier)):[R],O=u?Iv(N,(K,Z)=>T_e(K[0].moduleSpecifier,Z[0].moduleSpecifier,b)):N,H=Zi(O,K=>P9(K[0].moduleSpecifier)||K[0].moduleSpecifier===void 0?M(K):K);if(H.length===0)l.deleteNodes(e,R,{leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.Include},!0);else{let K={leadingTriviaOption:hr.LeadingTriviaOption.Exclude,trailingTriviaOption:hr.TrailingTriviaOption.Include,suffix:Qv(r,t.options)};l.replaceNodeWithNodes(e,R[0],H,K);let Z=l.nodeHasTrailingComment(e,R[0],K);l.deleteNodes(e,R.slice(1),{trailingTriviaOption:hr.TrailingTriviaOption.Include},Z)}}}function kQ(e,t){let r=Mv(e.languageVersion,!1,e.languageVariant),i=[],o=0;for(let s of t)i[o]&&Unt(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function Unt(e,t,r){let i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()=2))return!0;return!1}function Hnt(e,t,r){let i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),p=[];for(let m of e){let{importClause:b,moduleSpecifier:T}=m;if(!b){p.push(m);continue}let{name:I,namedBindings:R}=b;if(I&&!g(I)&&(I=void 0),R)if(Zy(R))g(R.name)||(R=void 0);else{let M=R.elements.filter(N=>g(N.name));M.lengthNa(i)&&i.text===r)}function P9(e){return e!==void 0&&us(e)?e.text:void 0}function Jnt(e,t,r,i){let o=wQ(t);return VLe(e,o,r,i)}function VLe(e,t,r,i){if(e.length===0)return e;let o=N8(e,l=>{if(l.attributes){let u=l.attributes.token+" ";for(let p of nS(l.attributes.elements,(g,m)=>ju(g.name.text,m.name.text)))u+=p.name.text+":",u+=us(p.value)?`"${p.value.text}"`:p.value.getText()+" ";return u}return""}),s=[];for(let l in o){let u=o[l],{importWithoutClause:p,typeOnlyImports:g,regularImports:m}=Knt(u);p&&s.push(p);for(let b of[m,g]){let T=b===g,{defaultImports:I,namespaceImports:R,namedImports:M}=b;if(!T&&I.length===1&&R.length===1&&M.length===0){let ne=I[0];s.push(YO(ne,ne.importClause.name,R[0].importClause.namedBindings));continue}let N=Iv(R,(ne,he)=>t(ne.importClause.namedBindings.name.text,he.importClause.namedBindings.name.text));for(let ne of N)s.push(YO(ne,void 0,ne.importClause.namedBindings));let O=Xc(I),H=Xc(M),K=O??H;if(!K)continue;let Z,V=[];if(I.length===1)Z=I[0].importClause.name;else for(let ne of I)V.push(k.createImportSpecifier(!1,k.createIdentifier("default"),ne.importClause.name));V.push(...nrt(M));let ue=k.createNodeArray(jLe(V,t,i),H?.importClause.namedBindings.elements.hasTrailingComma),G=ue.length===0?Z?void 0:k.createNamedImports(et):H?k.updateNamedImports(H.importClause.namedBindings,ue):k.createNamedImports(ue);r&&G&&H?.importClause.namedBindings&&!DS(H.importClause.namedBindings,r)&&fr(G,2),T&&Z&&G?(s.push(YO(K,Z,void 0)),s.push(YO(H??K,void 0,G))):s.push(YO(K,Z,G))}}return s}function Knt(e){let t,r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(let o of e){if(o.importClause===void 0){t=t||o;continue}let s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:u}=o.importClause;l&&s.defaultImports.push(o),u&&(Zy(u)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Xnt(e,t,r){let i=wQ(t);return E_e(e,i,r)}function E_e(e,t,r){if(e.length===0)return e;let{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=u(e),l=[];i&&l.push(i);for(let p of[o,s]){if(p.length===0)continue;let g=[];g.push(...Zi(p,T=>T.exportClause&&Df(T.exportClause)?T.exportClause.elements:et));let m=jLe(g,t,r),b=p[0];l.push(k.updateExportDeclaration(b,b.modifiers,b.isTypeOnly,b.exportClause&&(Df(b.exportClause)?k.updateNamedExports(b.exportClause,m):k.updateNamespaceExport(b.exportClause,b.exportClause.name)),b.moduleSpecifier,b.attributes))}return l;function u(p){let g,m=[],b=[];for(let T of p)T.exportClause===void 0?g=g||T:T.isTypeOnly?b.push(T):m.push(T);return{exportWithoutClause:g,namedExports:m,typeOnlyExports:b}}}function YO(e,t,r){return k.updateImportDeclaration(e,e.modifiers,k.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function jLe(e,t,r){return Iv(e,(i,o)=>S_e(i,o,t,r))}function S_e(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return Ay(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Ay(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Ynt(e,t,r){let i=wQ(!!r);return T_e(e,t,i)}function T_e(e,t,r){let i=e===void 0?void 0:P9(e),o=t===void 0?void 0:P9(t);return Ay(i===void 0,o===void 0)||Ay(Yc(i),Yc(o))||r(i,o)}function A_e(e){var t;switch(e.kind){case 271:return(t=ai(e.moduleReference,Th))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function $nt(e,t){return ULe(kQ(e,e.statements.filter(Lc)),t)}function ULe(e,t){let r=F2(t,!1),i=F2(t,!0),o=3,s=!1;for(let l of e){if(l.length>1){let p=YD(l,g=>{var m;return((m=ai(g.moduleSpecifier,Na))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}let u=vn(l,p=>{var g,m;return((m=ai((g=p.importClause)==null?void 0:g.namedBindings,jg))==null?void 0:m.elements.length)>1});if(u){let p=x_e(u.importClause.namedBindings.elements,t);if(p&&(o&=p,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function Qnt(e,t){let r=F2(t,!1),i=F2(t,!0);return YD(e,o=>P9(A_e(o))||"",r,i)}function Znt(e,t,r){let i=xv(e,t,el,(o,s)=>I_e(o,s,r));return i<0?~i:i}function ert(e,t,r,i){let o=xv(e,t,el,(s,l)=>S_e(s,l,r,i));return o<0?~o:o}function I_e(e,t,r){return T_e(A_e(e),A_e(t),r)||trt(e,t)}function trt(e,t){return tl(HLe(e),HLe(t))}function HLe(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function nrt(e){return Zi(e,t=>Ft(rrt(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?k.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function rrt(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&jg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function wQ(e){return e?Ene:ju}function irt(e,t){let r=ort(t),i=t.organizeImportsCaseFirst??!1,o=t.organizeImportsNumericCollation??!1,s=t.organizeImportsAccentCollation??!0,l=e?s?"accent":"base":s?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:o}).compare}function ort(e){let t=e.organizeImportsLocale;t==="auto"&&(t=Sne()),t===void 0&&(t="en");let r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function F2(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?irt(t,e):wQ(t)}function art(e,t){let r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return F2(e,r)}function srt(e){let t=[],r=e.statements,i=De(r),o=0,s=0;for(;okQ(e,l))}var qLe,x_e,lrt=A({"src/services/organizeImports.ts"(){"use strict";ci(),qLe=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,r)}},x_e=bne((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!R8(e,(o,s)=>Ay(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!R8(e,(o,s)=>Nx(!0)(o.name.text,s.name.text)))return 0;break;default:if(!R8(e,(o,s)=>Ay(o.isTypeOnly,s.isTypeOnly)))return 0;break}let r=F2(t,!1),i=F2(t,!0);if(t.organizeImportsTypeOrder!=="inline"){let{type:o,regular:s}=N8(e,p=>p.isTypeOnly?"type":"regular"),l=o?.length?YD(o,p=>p.name.text,r,i):void 0,u=s?.length?YD(s,p=>p.name.text??"",r,i):void 0;return l===void 0?u??0:u===void 0?l:l===0||u===0?0:u&l}return YD(e,o=>o.name.text,r,i)},new qLe)}}),Mm={};X(Mm,{coalesceExports:()=>Xnt,coalesceImports:()=>Jnt,compareImportOrExportSpecifiers:()=>S_e,compareImportsOrRequireStatements:()=>I_e,compareModuleSpecifiers:()=>Ynt,detectImportDeclarationSorting:()=>Qnt,detectImportSpecifierSorting:()=>x_e,detectSorting:()=>$nt,getImportDeclarationInsertionIndex:()=>Znt,getImportSpecifierInsertionIndex:()=>ert,getOrganizeImportsComparer:()=>F2,organizeImports:()=>jnt});var crt=A({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";lrt()}});function urt(e,t){let r=[];return drt(e,t,r),prt(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function drt(e,t,r){let i=40,o=0,s=[...e.statements,e.endOfFileToken],l=s.length;for(;o1&&i.push(M9(s,l,"comment"))}}function KLe(e,t,r,i){$A(e)||R_e(e.pos,t,r,i)}function M9(e,t,r){return WI(dc(e,t),r)}function frt(e,t){switch(e.kind){case 241:if(ea(e.parent))return mrt(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return m(e.parent);case 258:let I=e.parent;if(I.tryBlock===e)return m(e.parent);if(I.finallyBlock===e){let R=bs(I,98,t);if(R)return m(R)}default:return WI(Rd(e,t),"code")}case 268:return m(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return m(e);case 189:return m(e,!1,!iI(e.parent),23);case 296:case 297:return b(e.statements);case 210:return g(e);case 209:return g(e,23);case 284:return s(e);case 288:return l(e);case 285:case 286:return u(e.attributes);case 228:case 15:return p(e);case 207:return m(e,!1,!Qa(e.parent),23);case 219:return o(e);case 213:return i(e);case 217:return T(e);case 275:case 279:case 300:return r(e)}function r(I){if(!I.elements.length)return;let R=bs(I,19,t),M=bs(I,20,t);if(!(!R||!M||Af(R.pos,M.pos,t)))return OQ(R,M,I,t,!1,!1)}function i(I){if(!I.arguments.length)return;let R=bs(I,21,t),M=bs(I,22,t);if(!(!R||!M||Af(R.pos,M.pos,t)))return OQ(R,M,I,t,!1,!0)}function o(I){if(Xo(I.body)||Wd(I.body)||Af(I.body.getFullStart(),I.body.getEnd(),t))return;let R=dc(I.body.getFullStart(),I.body.getEnd());return WI(R,"code",Rd(I))}function s(I){let R=dc(I.openingElement.getStart(t),I.closingElement.getEnd()),M=I.openingElement.tagName.getText(t),N="<"+M+">...";return WI(R,"code",R,!1,N)}function l(I){let R=dc(I.openingFragment.getStart(t),I.closingFragment.getEnd());return WI(R,"code",R,!1,"<>...")}function u(I){if(I.properties.length!==0)return M9(I.getStart(t),I.getEnd(),"code")}function p(I){if(!(I.kind===15&&I.text.length===0))return M9(I.getStart(t),I.getEnd(),"code")}function g(I,R=19){return m(I,!1,!pd(I.parent)&&!la(I.parent),R)}function m(I,R=!1,M=!0,N=19,O=N===19?20:24){let H=bs(e,N,t),K=bs(e,O,t);return H&&K&&OQ(H,K,I,t,R,M)}function b(I){return I.length?WI(ib(I),"code"):void 0}function T(I){if(Af(I.getStart(),I.getEnd(),t))return;let R=dc(I.getStart(),I.getEnd());return WI(R,"code",Rd(I))}}function mrt(e,t,r){let i=_rt(e,t,r),o=bs(t,20,r);return i&&o&&OQ(i,o,e,r,e.kind!==219)}function OQ(e,t,r,i,o=!1,s=!0){let l=dc(s?e.getFullStart():e.getStart(i),t.getEnd());return WI(l,"code",Rd(r,i),o)}function WI(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function _rt(e,t,r){if(_oe(e.parameters,r)){let i=bs(e,21,r);if(i)return i}return bs(t,19,r)}var XLe,hrt=A({"src/services/outliningElementsCollector.ts"(){"use strict";ci(),XLe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),FQ={};X(FQ,{collectElements:()=>urt});var grt=A({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";hrt()}});function vrt(e,t,r,i){let o=ZF(zd(t,r));if($Le(o)){let s=yrt(o,e.getTypeChecker(),t,e,i);if(s)return s}return WQ(f.You_cannot_rename_this_element)}function yrt(e,t,r,i,o){let s=t.getSymbolAtLocation(e);if(!s){if(us(e)){let T=QF(e,t);if(T&&(T.flags&128||T.flags&1048576&&Jn(T.types,I=>!!(I.flags&128))))return D_e(e.text,e.text,"string","",e,r)}else if(zK(e)){let T=pc(e);return D_e(T,T,"label","",e,r)}return}let{declarations:l}=s;if(!l||l.length===0)return;if(l.some(T=>brt(i,T)))return WQ(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Ve(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(us(e)&&jL(e))return o.allowRenameOfImportPath?Srt(e,r,s):void 0;let u=Ert(r,s,t,o);if(u)return WQ(u);let p=ty.getSymbolKind(t,s,e),g=Vue(e)||Qp(e)&&e.parent.kind===167?em(Zf(e)):void 0,m=g||t.symbolToString(s),b=g||t.getFullyQualifiedName(s);return D_e(m,b,p,ty.getSymbolModifiers(t,s),e,r)}function brt(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Tl(r.fileName,".d.ts")}function Ert(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let l=t.declarations&&vn(t.declarations,u=>tp(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}let{declarations:o}=t;if(!o)return;let s=YLe(e.path);if(s===void 0)return Et(o,l=>vO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let l of o){let u=YLe(l.getSourceFile().path);if(u){let p=Math.min(s.length,u.length);for(let g=0;g<=p;g++)if(ju(s[g],u[g])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function YLe(e){let t=Wc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function Srt(e,t,r){if(!Yc(e.text))return WQ(f.You_cannot_rename_a_module_via_a_global_import);let i=r.declarations&&vn(r.declarations,no);if(!i)return;let o=Sl(e.text,"/index")||Sl(e.text,"/index.js")?void 0:Ine(Td(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,p=vu(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:p}}function D_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Trt(o,s)}}function WQ(e){return{canRename:!1,localizedErrorMessage:Bo(e)}}function Trt(e,t){let r=e.getStart(t),i=e.getWidth(t);return us(e)&&(r+=1,i-=2),vu(r,i)}function $Le(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return KF(e);default:return!1}}var Art=A({"src/services/rename.ts"(){"use strict";ci()}}),L9={};X(L9,{getRenameInfo:()=>vrt,nodeIsEligibleForRename:()=>$Le});var Irt=A({"src/services/_namespaces/ts.Rename.ts"(){"use strict";Art()}});function xrt(e,t,r,i,o){let s=e.getTypeChecker(),l=eW(t,r);if(!l)return;let u=!!i&&i.kind==="characterTyped";if(u&&(II(t,r,l)||Xv(t,r)))return;let p=!!i&&i.kind==="invoked",g=jrt(l,r,t,s,p);if(!g)return;o.throwIfCancellationRequested();let m=Rrt(g,s,t,l,u);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,b=>m.kind===0?oke(m.candidates,m.resolvedSignature,g,t,b):Hrt(m.symbol,g,t,b)):ld(t)?Crt(g,e,o):void 0}function Rrt({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Drt(o,e.node,i))return;let l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{let{called:l}=e;if(s&&!QLe(o,i,Ve(l)?l.parent:l))return;let u=XK(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:Ha(u)};let p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return C.assertNever(e)}}function Drt(e,t,r){if(!T_(t))return!1;let i=t.getChildren(r);switch(e.kind){case 21:return wr(i,e);case 28:{let o=$F(e);return!!o&&wr(i,o)}case 30:return QLe(e,r,t.expression);default:return!1}}function Crt(e,t,r){if(e.invocation.kind===2)return;let i=rke(e.invocation),o=zr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Zt(t.getSourceFiles(),l=>Zt(l.getNamedDeclarations().get(o),u=>{let p=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),g=p&&p.getCallSignatures();if(g&&g.length)return s.runWithCancellationToken(r,m=>oke(g,g[0],e,l,m,!0))}))}function QLe(e,t,r){let i=e.getFullStart(),o=e.parent;for(;o;){let s=Ac(i,t,o,!0);if(s)return of(r,s);o=o.parent}return C.fail("Could not find preceding token")}function Nrt(e,t,r,i){let o=eke(e,t,r,i);return!o||o.isTypeParameterList||o.invocation.kind!==0?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function ZLe(e,t,r,i){let o=Prt(e,r,i);if(!o)return;let{list:s,argumentIndex:l}=o,u=zrt(i,s);l!==0&&C.assertLessThan(l,u);let p=Grt(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:p}}function Prt(e,t,r){if(e.kind===30||e.kind===21)return{list:Urt(e.parent,e,t),argumentIndex:0};{let i=$F(e);return i&&{list:i,argumentIndex:Wrt(r,i,e)}}}function eke(e,t,r,i){let{parent:o}=e;if(T_(o)){let s=o,l=ZLe(e,t,r,i);if(!l)return;let{list:u,argumentIndex:p,argumentCount:g,argumentsSpan:m}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:m,argumentIndex:p,argumentCount:g}}else{if(QA(e)&&q1(o))return oO(e,t,r)?N_e(o,0,r):void 0;if(ZA(e)&&o.parent.kind===215){let s=o,l=s.parent;C.assert(s.kind===228);let u=oO(e,t,r)?0:1;return N_e(l,u,r)}else if(EN(o)&&q1(o.parent.parent)){let s=o,l=o.parent.parent;if(q7(e)&&!oO(e,t,r))return;let u=s.parent.templateSpans.indexOf(s),p=Brt(u,e,t,r);return N_e(l,p,r)}else if(sd(o)){let s=o.attributes.pos,l=La(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:vu(s,l-s),argumentIndex:0,argumentCount:1}}else{let s=YK(e,r);if(s){let{called:l,nTypeArguments:u}=s,p={kind:1,called:l},g=dc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:g,argumentIndex:u,argumentCount:u+1}}return}}}function Mrt(e,t,r,i){return Lrt(e,t,r,i)||eke(e,t,r,i)}function tke(e){return _r(e.parent)?tke(e.parent):e}function C_e(e){return _r(e.left)?C_e(e.left)+1:2}function Lrt(e,t,r,i){let o=krt(e);if(o===void 0)return;let s=wrt(o,r,t,i);if(s===void 0)return;let{contextualType:l,argumentIndex:u,argumentCount:p,argumentsSpan:g}=s,m=l.getNonNullableType(),b=m.symbol;if(b===void 0)return;let T=Zs(m.getCallSignatures());return T===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:T,node:e,symbol:Ort(b)},argumentsSpan:g,argumentIndex:u,argumentCount:p}}function krt(e){switch(e.kind){case 21:case 28:return e;default:return zn(e.parent,t=>Co(t)?!0:Qa(t)||om(t)||U1(t)?!1:"quit")}}function wrt(e,t,r,i){let{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:let s=ZLe(e,r,t,i);if(!s)return;let{argumentIndex:l,argumentCount:u,argumentsSpan:p}=s,g=jl(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return g&&{contextualType:g,argumentIndex:l,argumentCount:u,argumentsSpan:p};case 226:{let m=tke(o),b=i.getContextualType(m),T=e.kind===21?0:C_e(o)-1,I=C_e(m);return b&&{contextualType:b,argumentIndex:T,argumentCount:I,argumentsSpan:Rd(o)}}default:return}}function Ort(e){return e.name==="__type"&&Zt(e.declarations,t=>{var r;return bh(t)?(r=ai(t.parent,A_))==null?void 0:r.symbol:void 0})||e}function Frt(e,t){let r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){let{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;let s=ri(i,l=>!(l&1));return s<0?o:s}return 0}function Wrt(e,t,r){return nke(e,t,r)}function zrt(e,t){return nke(e,t,void 0)}function nke(e,t,r){let i=t.getChildren(),o=0,s=!1;for(let l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(Zm(l)){o+=Frt(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Ya(i).kind===28?o+1:o}function Brt(e,t,r,i){return C.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),xre(t)?oO(t,r,i)?0:e+2:e+1}function N_e(e,t,r){let i=QA(e.template)?1:e.template.templateSpans.length+1;return t!==0&&C.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Vrt(e,r),argumentIndex:t,argumentCount:i}}function Grt(e,t){let r=e.getFullStart(),i=La(t.text,e.getEnd(),!1);return vu(r,i-r)}function Vrt(e,t){let r=e.template,i=r.getStart(),o=r.getEnd();return r.kind===228&&Ya(r.templateSpans).literal.getFullWidth()===0&&(o=La(t.text,o,!1)),vu(i,o-i)}function jrt(e,t,r,i,o){for(let s=e;!no(s)&&(o||!Xo(s));s=s.parent){C.assert(of(s.parent,s),"Not a subspan",()=>`Child: ${C.formatSyntaxKind(s.kind)}, parent: ${C.formatSyntaxKind(s.parent.kind)}`);let l=Mrt(s,t,r,i);if(l)return l}}function Urt(e,t,r){let i=e.getChildren(r),o=i.indexOf(t);return C.assert(o>=0&&i.length>o+1),i[o+1]}function rke(e){return e.kind===0?e3(e.node):e.called}function ike(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function oke(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,p,g){var m;let b=ike(s),T=s.kind===2?s.symbol:p.getSymbolAtLocation(rke(s))||g&&((m=t.declaration)==null?void 0:m.symbol),I=T?dP(p,T,g?u:void 0,void 0):et,R=Ft(e,K=>Jrt(K,I,r,p,b,u));l!==0&&C.assertLessThan(l,i);let M=0,N=0;for(let K=0;K1)){let V=0;for(let ue of Z){if(ue.isVariadic||ue.parameters.length>=i){M=N+V;break}V++}}N+=Z.length}C.assert(M!==-1);let O={items:$d(R,el),applicableSpan:o,selectedItemIndex:M,argumentIndex:l,argumentCount:i},H=O.items[M];if(H.isVariadic){let K=ri(H.parameters,Z=>!!Z.isRest);-1ake(b,r,i,o,l)),p=e.getDocumentationComment(r),g=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Yu(30)],suffixDisplayParts:[Yu(32)],separatorDisplayParts:P_e,parameters:u,documentation:p,tags:g}}function Jrt(e,t,r,i,o,s){let l=(r?Xrt:Yrt)(e,i,o,s);return Ft(l,({isVariadic:u,parameters:p,prefix:g,suffix:m})=>{let b=[...t,...g],T=[...m,...Krt(e,o,i)],I=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:b,suffixDisplayParts:T,separatorDisplayParts:P_e,parameters:p,documentation:I,tags:R}})}function Krt(e,t,r){return ob(i=>{i.writePunctuation(":"),i.writeSpace(" ");let o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function Xrt(e,t,r,i){let o=(e.target||e).typeParameters,s=oE(),l=(o||et).map(p=>ake(p,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,$O)]:[];return t.getExpandedParameters(e).map(p=>{let g=k.createNodeArray([...u,...Ft(p,b=>t.symbolToParameterDeclaration(b,r,$O))]),m=ob(b=>{s.writeList(2576,g,i,b)});return{isVariadic:!1,parameters:l,prefix:[Yu(30)],suffix:[Yu(32),...m]}})}function Yrt(e,t,r,i){let o=oE(),s=ob(p=>{if(e.typeParameters&&e.typeParameters.length){let g=k.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,$O)));o.writeList(53776,g,i,p)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var g;return!!(p.length&&((g=ai(p[p.length-1],fh))==null?void 0:g.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:u(p),parameters:p.map(g=>$rt(g,t,r,i,o)),prefix:[...s,Yu(21)],suffix:[Yu(22)]}))}function $rt(e,t,r,i,o){let s=ob(p=>{let g=t.symbolToParameterDeclaration(e,r,$O);o.writeNode(4,g,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),u=fh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:u}}function ake(e,t,r,i,o){let s=ob(l=>{let u=t.typeParameterToDeclaration(e,r,$O);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var $O,P_e,Qrt=A({"src/services/signatureHelp.ts"(){"use strict";ci(),$O=70246400,P_e=[Yu(28),kl()]}}),QO={};X(QO,{getArgumentInfoForCompletions:()=>Nrt,getSignatureHelpItems:()=>xrt});var Zrt=A({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";Qrt()}});function eit(e,t){var r,i;let o={textSpan:dc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){let p=nit(s);if(!p.length)break;for(let g=0;ge)break e;let I=ah(Qb(t.text,b.end));if(I&&I.kind===2&&u(I.pos,I.end),tit(t,e,b)){if(ZV(b)&&zs(s)&&!Af(b.getStart(t),b.getEnd(),t)&&l(b.getStart(t),b.getEnd()),Xo(b)||EN(b)||ZA(b)||q7(b)||m&&ZA(m)||jc(b)&&Ml(s)||HR(b)&&jc(s)||Oi(b)&&HR(s)&&p.length===1||Z1(b)||b0(b)||GS(b)){s=b;break}if(EN(s)&&T&&S6(T)){let O=b.getFullStart()-2,H=T.getStart()+1;l(O,H)}let R=HR(b)&&rit(m)&&iit(T)&&!Af(m.getStart(),T.getStart(),t),M=R?m.getEnd():b.getStart(),N=R?T.getStart():oit(t,b);if(Op(b)&&((r=b.jsDoc)!=null&&r.length)&&l(Ha(b.jsDoc).getStart(),N),HR(b)){let O=b.getChildren()[0];O&&Op(O)&&((i=O.jsDoc)!=null&&i.length)&&O.getStart()!==b.pos&&(M=Math.min(M,Ha(O.jsDoc).getStart()))}l(M,N),(Na(b)||DA(b))&&l(M+1,N-1),s=b;break}if(g===p.length-1)break e}}return o;function l(p,g){if(p!==g){let m=dc(p,g);(!o||!b2(m,o.textSpan)&&ire(m,e))&&(o={textSpan:m,...o&&{parent:o}})}}function u(p,g){l(p,g);let m=p;for(;t.text.charCodeAt(m)===47;)m++;l(m,g)}}function tit(e,t,r){return C.assert(r.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=ZO(s,({kind:u})=>u===23||u===168||u===24);return[r,e4(zQ(l,({kind:u})=>u===59)),o]}if(gp(e)){let r=ZO(e.getChildren(),l=>l===e.name||wr(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=zQ(o,({kind:l})=>l===59);return i?[i,e4(s)]:s}if(Co(e)){let r=ZO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=ZO(r,o=>o===r[0]||o===e.questionToken);return zQ(i,({kind:o})=>o===64)}return Qa(e)?zQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function ZO(e,t){let r=[],i;for(let o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(e4(i)),i=void 0),r.push(o));return i&&r.push(e4(i)),r}function zQ(e,t,r=!0){if(e.length<2)return e;let i=ri(e,t);if(i===-1)return e;let o=e.slice(0,i),s=e[i],l=Ya(e),u=r&&l.kind===27,p=e.slice(i+1,u?e.length-1:void 0),g=CM([o.length?e4(o):void 0,s,p.length?e4(p):void 0]);return u?g.concat(l):g}function e4(e){return C.assertGreaterThanOrEqual(e.length,1),gh(Ah.createSyntaxList(e),e[0].pos,Ya(e).end)}function rit(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function iit(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function oit(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var ske,ait=A({"src/services/smartSelection.ts"(){"use strict";ci(),ske=Xm(Lc,tu)}}),BQ={};X(BQ,{getSmartSelectionRange:()=>eit});var sit=A({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";ait()}});function lke(e,t,r){let i=cke(e,t,r);if(i!=="")return i;let o=AR(t);return o&32?dl(t,231)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function cke(e,t,r){let i=e.getRootSymbols(t);if(i.length===1&&Ha(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&bt(r)||FA(r))return"parameter";let o=AR(t);if(o&3)return mX(t)?"parameter":t.valueDeclaration&&tR(t.valueDeclaration)?"const":t.valueDeclaration&&xL(t.valueDeclaration)?"using":t.valueDeclaration&&IL(t.valueDeclaration)?"await using":Ke(t.declarations,U6)?"let":pke(t)?"local var":"var";if(o&16)return pke(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){let s=Ke(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function uke(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,i=De(r)&&RW(t)&&Et(r,s=>!RW(s))?65536:0,o=aP(t,i);if(o)return o.split(",")}return[]}function lit(e,t){if(!t)return"";let r=new Set(uke(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&Ke(uke(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Vo(r.values()).join(","):""}function dke(e,t,r,i,o,s,l,u){var p;let g=[],m=[],b=[],T=AR(t),I=l&1?cke(e,t,o):"",R=!1,M=o.kind===110&&n3(o)||FA(o),N,O,H=!1;if(o.kind===110&&!M)return{displayParts:[Ep(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(I!==""||T&32||T&2097152){if(I==="getter"||I==="setter"){let fe=vn(t.declarations,Ne=>Ne.name===o);if(fe)switch(fe.kind){case 177:I="getter";break;case 178:I="setter";break;case 172:I="accessor";break;default:C.assertNever(fe)}else I="property"}let Y;if(s??(s=M?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){let fe=o.parent.name;(fe===o||fe&&fe.getFullWidth()===0)&&(o=o.parent)}let oe;if(T_(o)?oe=o:(wK(o)||iP(o)||o.parent&&(sd(o.parent)||q1(o.parent))&&ea(t.valueDeclaration))&&(oe=o.parent),oe){Y=e.getResolvedSignature(oe);let fe=oe.kind===214||la(oe)&&oe.expression.kind===108,Ne=fe?s.getConstructSignatures():s.getCallSignatures();if(Y&&!wr(Ne,Y.target)&&!wr(Ne,Y)&&(Y=Ne.length?Ne[0]:void 0),Y){switch(fe&&T&32?(I="constructor",ne(s.symbol,I)):T&2097152?(I="alias",he(I),g.push(kl()),fe&&(Y.flags&4&&(g.push(Ep(128)),g.push(kl())),g.push(Ep(105)),g.push(kl())),G(t)):ne(t,I),I){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(Yu(59)),g.push(kl()),!(Wr(s)&16)&&s.symbol&&(Jr(g,dP(e,s.symbol,i,void 0,5)),g.push(E2())),fe&&(Y.flags&4&&(g.push(Ep(128)),g.push(kl())),g.push(Ep(105)),g.push(kl())),ye(Y,Ne,262144);break;default:ye(Y,Ne)}R=!0,H=Ne.length>1}}else if(jK(o)&&!(T&98304)||o.kind===137&&o.parent.kind===176){let fe=o.parent;if(t.declarations&&vn(t.declarations,me=>me===(o.kind===137?fe.parent:fe))){let me=fe.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(fe)?Y=me[0]:Y=e.getSignatureFromDeclaration(fe),fe.kind===176?(I="constructor",ne(s.symbol,I)):ne(fe.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,I),Y&&ye(Y,me),R=!0,H=me.length>1}}}if(T&32&&!R&&!M&&(V(),dl(t,231)?he("local class"):g.push(Ep(86)),g.push(kl()),G(t),$(t,r)),T&64&&l&2&&(Z(),g.push(Ep(120)),g.push(kl()),G(t),$(t,r)),T&524288&&l&2&&(Z(),g.push(Ep(156)),g.push(kl()),G(t),$(t,r),g.push(kl()),g.push(uP(64)),g.push(kl()),Jr(g,pO(e,o.parent&&kg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),T&384&&(Z(),Et(t.declarations,Y=>v0(Y)&&x1(Y))&&(g.push(Ep(87)),g.push(kl())),g.push(Ep(94)),g.push(kl()),G(t)),T&1536&&!M){Z();let Y=dl(t,267),oe=Y&&Y.name&&Y.name.kind===80;g.push(Ep(oe?145:144)),g.push(kl()),G(t)}if(T&262144&&l&2)if(Z(),g.push(Yu(21)),g.push(sf("type parameter")),g.push(Yu(22)),g.push(kl()),G(t),t.parent)ue(),G(t.parent,i),$(t.parent,i);else{let Y=dl(t,168);if(Y===void 0)return C.fail();let oe=Y.parent;if(oe)if(ea(oe)){ue();let fe=e.getSignatureFromDeclaration(oe);oe.kind===180?(g.push(Ep(105)),g.push(kl())):oe.kind!==179&&oe.name&&G(oe.symbol),Jr(g,gX(e,fe,r,32))}else Dm(oe)&&(ue(),g.push(Ep(156)),g.push(kl()),G(oe.symbol),$(oe.symbol,r))}if(T&8){I="enum member",ne(t,"enum member");let Y=(p=t.declarations)==null?void 0:p[0];if(Y?.kind===306){let oe=e.getConstantValue(Y);oe!==void 0&&(g.push(kl()),g.push(uP(64)),g.push(kl()),g.push(rp(rie(oe),typeof oe=="number"?7:8)))}}if(t.flags&2097152){if(Z(),!R||m.length===0&&b.length===0){let Y=e.getAliasedSymbol(t);if(Y!==t&&Y.declarations&&Y.declarations.length>0){let oe=Y.declarations[0],fe=Oo(oe);if(fe&&!R){let Ne=B6(oe)&&ei(oe,128),me=t.name!=="default"&&!Ne,ie=dke(e,Y,Vn(oe),oe,fe,s,l,me?t:Y);g.push(...ie.displayParts),g.push(E2()),N=ie.documentation,O=ie.tags}else N=Y.getContextualDocumentationComment(oe,e),O=Y.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:g.push(Ep(95)),g.push(kl()),g.push(Ep(145));break;case 277:g.push(Ep(95)),g.push(kl()),g.push(Ep(t.declarations[0].isExportEquals?64:90));break;case 281:g.push(Ep(95));break;default:g.push(Ep(102))}g.push(kl()),G(t),Ke(t.declarations,Y=>{if(Y.kind===271){let oe=Y;if(l0(oe))g.push(kl()),g.push(uP(64)),g.push(kl()),g.push(Ep(149)),g.push(Yu(21)),g.push(rp(pc(RC(oe)),8)),g.push(Yu(22));else{let fe=e.getSymbolAtLocation(oe.moduleReference);fe&&(g.push(kl()),g.push(uP(64)),g.push(kl()),G(fe,i))}return!0}})}if(!R)if(I!==""){if(s){if(M?(Z(),g.push(Ep(110))):ne(t,I),I==="property"||I==="accessor"||I==="getter"||I==="setter"||I==="JSX attribute"||T&3||I==="local var"||I==="index"||I==="using"||I==="await using"||M){if(g.push(Yu(59)),g.push(kl()),s.symbol&&s.symbol.flags&262144&&I!=="index"){let Y=ob(oe=>{let fe=e.typeParameterToDeclaration(s,i,M_e);K().writeNode(4,fe,Vn(Lo(i)),oe)});Jr(g,Y)}else Jr(g,pO(e,s,i));if(fh(t)&&t.links.target&&fh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let Y=t.links.target.links.tupleLabelDeclaration;C.assertNode(Y.name,Ve),g.push(kl()),g.push(Yu(21)),g.push(sf(Sr(Y.name))),g.push(Yu(22))}}else if(T&16||T&8192||T&16384||T&131072||T&98304||I==="method"){let Y=s.getNonNullableType().getCallSignatures();Y.length&&(ye(Y[0],Y),H=Y.length>1)}}}else I=lke(e,t,o);if(m.length===0&&!H&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&T&4&&t.parent&&t.declarations&&Ke(t.parent.declarations,Y=>Y.kind===312))for(let Y of t.declarations){if(!Y.parent||Y.parent.kind!==226)continue;let oe=e.getSymbolAtLocation(Y.parent.right);if(oe&&(m=oe.getDocumentationComment(e),b=oe.getJsDocTags(e),m.length>0))break}if(m.length===0&&Ve(o)&&t.valueDeclaration&&Qa(t.valueDeclaration)){let Y=t.valueDeclaration,oe=Y.parent,fe=Y.propertyName||Y.name;if(Ve(fe)&&om(oe)){let Ne=Zf(fe),me=e.getTypeAtLocation(oe);m=Zt(me.isUnion()?me.types:[me],ie=>{let ve=ie.getProperty(Ne);return ve?ve.getDocumentationComment(e):void 0})||et}}return b.length===0&&!H&&(b=t.getContextualJsDocTags(i,e)),m.length===0&&N&&(m=N),b.length===0&&O&&(b=O),{displayParts:g,documentation:m,symbolKind:I,tags:b.length===0?void 0:b};function K(){return oE()}function Z(){g.length&&g.push(E2()),V()}function V(){u&&(he("alias"),g.push(kl()))}function ue(){g.push(kl()),g.push(Ep(103)),g.push(kl())}function G(Y,oe){let fe;u&&Y===t&&(Y=u),I==="index"&&(fe=e.getIndexInfosOfIndexSymbol(Y));let Ne=[];Y.flags&131072&&fe?(Y.parent&&(Ne=dP(e,Y.parent)),Ne.push(Yu(23)),fe.forEach((me,ie)=>{Ne.push(...pO(e,me.keyType)),ie!==fe.length-1&&(Ne.push(kl()),Ne.push(Yu(52)),Ne.push(kl()))}),Ne.push(Yu(24))):Ne=dP(e,Y,oe||r,void 0,7),Jr(g,Ne),t.flags&16777216&&g.push(Yu(58))}function ne(Y,oe){Z(),oe&&(he(oe),Y&&!Et(Y.declarations,fe=>Bs(fe)||(ws(fe)||Zc(fe))&&!fe.name)&&(g.push(kl()),G(Y)))}function he(Y){switch(Y){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":g.push(_X(Y));return;default:g.push(Yu(21)),g.push(_X(Y)),g.push(Yu(22));return}}function ye(Y,oe,fe=0){Jr(g,gX(e,Y,i,fe|32)),oe.length>1&&(g.push(kl()),g.push(Yu(21)),g.push(uP(40)),g.push(rp((oe.length-1).toString(),7)),g.push(kl()),g.push(sf(oe.length===2?"overload":"overloads")),g.push(Yu(22))),m=Y.getDocumentationComment(e),b=Y.getJsDocTags(),oe.length>1&&m.length===0&&b.length===0&&(m=oe[0].getDocumentationComment(e),b=oe[0].getJsDocTags().filter(Ne=>Ne.name!=="deprecated"))}function $(Y,oe){let fe=ob(Ne=>{let me=e.symbolToTypeParameterDeclarations(Y,oe,M_e);K().writeList(53776,me,Vn(Lo(oe)),Ne)});Jr(g,fe)}}function cit(e,t,r,i,o,s=$S(o),l){return dke(e,t,r,i,o,void 0,s,l)}function pke(e){return e.parent?!1:Ke(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!D1(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var M_e,uit=A({"src/services/symbolDisplay.ts"(){"use strict";ci(),M_e=70246400}}),ty={};X(ty,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>cit,getSymbolKind:()=>lke,getSymbolModifiers:()=>lit});var dit=A({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";uit()}});function fke(e){let t=e.__pos;return C.assert(typeof t=="number"),t}function L_e(e,t){C.assert(typeof t=="number"),e.__pos=t}function mke(e){let t=e.__end;return C.assert(typeof t=="number"),t}function k_e(e,t){C.assert(typeof t=="number"),e.__end=t}function _ke(e,t){return La(e,t,!1,!0)}function pit(e,t){let r=t;for(;r0?1:0,T=Wy(WC(e,g)+b,e);return T=_ke(e.text,T),Wy(WC(e,T),e)}function w_e(e,t,r){let{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){let s=Qb(e.text,i);if(s){let l=WC(e,t.end);for(let u of s){if(u.kind===2||WC(e,u.pos)>l)break;if(WC(e,u.end)>l)return La(e.text,u.end,!0,!0)}}}}function W2(e,t,r){var i;let{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){let p=xo(Qb(e.text,o),Kh(e.text,o)),g=(i=p?.[p.length-1])==null?void 0:i.end;return g||o}let l=w_e(e,t,r);if(l)return l;let u=La(e.text,o,!0);return u!==o&&(s===2||Uu(e.text.charCodeAt(u-1)))?u:o}function GQ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function fit(e){return ws(e)||Sc(e)}function mit(e){if(e.kind!==219)return e;let t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function _it(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{let r=e,i=t;return Ve(r.name)&&Ve(i.name)&&r.name.escapedText===i.name.escapedText?k.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return k.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return k.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function O_e(e,t){return La(e.text,iT(e,t,{leadingTriviaOption:1}),!1,!0)}function hit(e,t,r,i){let o=O_e(e,i);if(r===void 0||Af(W2(e,t,{}),o,e))return o;let s=Ac(i.getStart(e),e);if(GQ(t,s)){let l=Ac(t.getStart(e),e);if(GQ(r,l)){let u=La(e.text,s.getEnd(),!0,!0);if(Af(l.getStart(e),s.getStart(e),e))return Uu(e.text.charCodeAt(u-1))?u-1:u;if(Uu(e.text.charCodeAt(u)))return u}}return o}function git(e,t){let r=bs(e,19,t),i=bs(e,20,t);return[r?.end,i?.end]}function VQ(e){return wa(e)?e.properties:e.members}function F_e(e,t){for(let r=t.length-1;r>=0;r--){let{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(ql(i))}`}return e}function vit(e){return La(e,0)===e.length}function jQ(e){let t=An(e,jQ,yke,yit,jQ),r=Xs(t)?t:Object.create(t);return gh(r,fke(e),mke(e)),r}function yit(e,t,r,i,o){let s=Bn(e,t,r,i,o);if(!s)return s;C.assert(e);let l=s===e?k.createNodeArray(s.slice(0)):s;return gh(l,fke(e),mke(e)),l}function hke(e){let t=0,r=ik(e),i=ie=>{ie&&L_e(ie,t)},o=ie=>{ie&&k_e(ie,t)},s=ie=>{ie&&L_e(ie,t)},l=ie=>{ie&&k_e(ie,t)},u=ie=>{ie&&L_e(ie,t)},p=ie=>{ie&&k_e(ie,t)};function g(ie,ve){if(ve||!vit(ie)){t=r.getTextPos();let Le=0;for(;Lg(ie.charCodeAt(ie.length-Le-1));)Le++;t-=Le}}function m(ie){r.write(ie),g(ie,!1)}function b(ie){r.writeComment(ie)}function T(ie){r.writeKeyword(ie),g(ie,!1)}function I(ie){r.writeOperator(ie),g(ie,!1)}function R(ie){r.writePunctuation(ie),g(ie,!1)}function M(ie){r.writeTrailingSemicolon(ie),g(ie,!1)}function N(ie){r.writeParameter(ie),g(ie,!1)}function O(ie){r.writeProperty(ie),g(ie,!1)}function H(ie){r.writeSpace(ie),g(ie,!1)}function K(ie){r.writeStringLiteral(ie),g(ie,!1)}function Z(ie,ve){r.writeSymbol(ie,ve),g(ie,!1)}function V(ie){r.writeLine(ie)}function ue(){r.increaseIndent()}function G(){r.decreaseIndent()}function ne(){return r.getText()}function he(ie){r.rawWrite(ie),g(ie,!1)}function ye(ie){r.writeLiteral(ie),g(ie,!0)}function $(){return r.getTextPos()}function Y(){return r.getLine()}function oe(){return r.getColumn()}function fe(){return r.getIndent()}function Ne(){return r.isAtStartOfLine()}function me(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:p,write:m,writeComment:b,writeKeyword:T,writeOperator:I,writePunctuation:R,writeTrailingSemicolon:M,writeParameter:N,writeProperty:O,writeSpace:H,writeStringLiteral:K,writeSymbol:Z,writeLine:V,increaseIndent:ue,decreaseIndent:G,getText:ne,rawWrite:he,writeLiteral:ye,getTextPos:$,getLine:Y,getColumn:oe,getIndent:fe,isAtStartOfLine:Ne,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:me}}function bit(e){let t;for(let g of e.statements)if(Am(g))t=g;else break;let r=0,i=e.text;if(t)return r=t.end,p(),r;let o=d6(i);o!==void 0&&(r=o.length,p());let s=Kh(i,r);if(!s)return r;let l,u;for(let g of s){if(g.kind===3){if(W6(i,g.pos)){l={range:g,pinnedOrTripleSlash:!0};continue}}else if(lj(i,g.pos,g.end)){l={range:g,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;let m=e.getLineAndCharacterOfPosition(g.pos).line,b=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=b+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let m=e.getLineAndCharacterOfPosition(g.end).line;if(u(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(W_e||{}),z_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(z_e||{}),xP={leadingTriviaOption:0,trailingTriviaOption:0},vke=class W0e{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new W0e(Qv(t.host,t.formatContext.options),t.formatContext)}static with(t,r){let i=W0e.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){C.assertEqual(t.fileName,r.fileName);for(let i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:oW(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,t4(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(let s of r){let l=iT(t,s,i,o),u=W2(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!w_e(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:La(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){let s=iT(t,r,o),l=W2(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){let s=iT(t,r,o),l=i===void 0?t.text.length:iT(t,i,o);this.deleteRange(t,{pos:s,end:l})}replaceRange(t,r,i,o={}){this.changes.push({kind:1,sourceFile:t,range:r,options:o,node:i})}replaceNode(t,r,i,o=xP){this.replaceRange(t,t4(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=xP){this.replaceRange(t,t4(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=xP){this.replaceRangeWithNodes(t,t4(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,t4(t,r,r,xP),i)}replaceNodeRangeWithNodes(t,r,i,o,s=xP){this.replaceRangeWithNodes(t,t4(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=xP){return!!w_e(t,r,i)}nextCommaToken(t,r){let i=lE(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){let o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,Tf(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Tf(r),i,o)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){let o=bit(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Uu(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Do(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){let o=t.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,o,r,s)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=Xp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){let o=Xc(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,iT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,iT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Ha(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,k.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){let s=Wy(r,t),l=Uue(t.text,s),u=gke(t,l),p=g2(t,u?l:i),g=t.text.slice(s,l),m=`${u?"":this.newLineCharacter}//${o}${this.newLineCharacter}${g}`;this.insertText(t,p.getStart(t),m)}insertJsdocCommentBefore(t,r,i){let o=r.getStart(t);if(r.jsDoc)for(let u of r.jsDoc)this.deleteRange(t,{pos:sm(u.getStart(t),t),end:W2(t,u,{})});let s=_W(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){let i=Zi(r.jsDoc,s=>wo(s.comment)?k.createJSDocText(s.comment):s.comment),o=ah(r.jsDoc);return o&&Af(o.pos,o.end,t)&&De(i)===0?void 0:k.createNodeArray(Qi(i,k.createJSDocText(` +`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,mit(r),k.createJSDocComment(this.createJSDocText(t,r),k.createNodeArray(i)))}addJSDocTags(t,r,i){let o=$d(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,p)=>{let g=_it(u,l);return g&&(o[p]=g),!!g}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,tr($d(r.jsDoc,o=>o.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,Tf(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(ea(r)){if(o=bs(r,22,t),!o){if(!Bs(r))return!1;o=Ha(r.parameters)}}else o=(r.kind===260?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){let o=bs(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){let o=(bs(r,21,t)||Ha(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Ki(t)||$c(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Oi(t)?{suffix:", "}:Co(t)?Co(r)?{suffix:", "}:{}:Na(t)&&Lc(t.parent)||jg(t)?{suffix:", "}:tp(t)?{suffix:","+(i?this.newLineCharacter:" ")}:C.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){let o=Xc(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){let o=vn(r.body.statements,s=>eu(s)&&gS(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){let o=Zs(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,k.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){let o=iT(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Uu(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){let o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,VQ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(let s of VQ(r)){if(M3(o,s,t))return;let l=s.getStart(t),u=wc.SmartIndenter.findFirstNonWhitespaceColumn(sm(l,t),l,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;o=s}return i}computeIndentationForNewMember(t,r){let i=r.getStart(t);return wc.SmartIndenter.findFirstNonWhitespaceColumn(sm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){let s=VQ(r).length===0,l=xm(this.classesWithNodesInsertedAtStart,ss(r),{node:r,sourceFile:t}),u=wa(r)&&(!$f(t)||!s),p=wa(r)&&$f(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:u?",":fd(r)&&s?";":""}}insertNodeAfterComma(t,r,i){let o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,Ha(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return Eit(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Tf(r.end),k.createToken(27)),W2(t,r,{})}getInsertNodeAfterOptions(t,r){let i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Ki(r)?i.prefix?` +${i.prefix}`:` +`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return C.assert(Ki(t)||T6(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(C.assert(!r.name),r.kind===219){let o=bs(r,39,t),s=bs(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[k.createToken(100),k.createIdentifier(i)],{joiner:" "}),Kg(this,t,o)):(this.insertText(t,Ha(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,k.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[k.createToken(19),k.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[k.createToken(27),k.createToken(20)],{joiner:" "}))}else{let o=bs(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,k.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){let s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Af(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=wc.SmartIndenter.getContainingList(r,t)){if(!o){C.fail("node is not a list element");return}let s=Qx(o,r);if(s<0)return;let l=r.getEnd();if(s!==o.length-1){let u=po(t,r.end);if(u&&GQ(r,u)){let p=o[s+1],g=_ke(t.text,p.getFullStart()),m=`${ma(u.kind)}${t.text.substring(u.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:m})}}else{let u=r.getStart(t),p=sm(u,t),g,m=!1;if(o.length===1)g=28;else{let b=Ac(r.pos,t);g=GQ(r,b)?b.kind:28,m=sm(o[s-1].getStart(t),t)!==p}if((pit(t.text,r.end)||!Af(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,Tf(l),k.createToken(g));let b=wc.SmartIndenter.findFirstNonWhitespaceColumn(p,u,t,this.formatContext.options),T=La(t.text,l,!0,!1);for(;T!==l&&Uu(t.text.charCodeAt(T-1));)T--;this.replaceRange(t,Tf(T),i,{indentation:b,prefix:this.newLineCharacter})}else this.replaceRange(t,Tf(l),i,{prefix:`${ma(g)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,CU(r),k.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{let[i,o]=git(t,r);if(i!==void 0&&o!==void 0){let s=VQ(t).length===0,l=Af(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Tf(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&gue(o.node,i))||(Do(i)?this.deleteRange(r,NU(r,i)):B_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{let i=r.getSourceFile(),o=wc.SmartIndenter.getContainingList(r,i);if(r!==Ya(o))return;let s=to(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:O_e(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let r=UQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(UQ.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(u,p,g,m){return Vi($D(u,b=>b.sourceFile.path),b=>{let T=b[0].sourceFile,I=Iv(b,(M,N)=>M.range.pos-N.range.pos||M.range.end-N.range.end);for(let M=0;M`${JSON.stringify(I[M].range)} and ${JSON.stringify(I[M+1].range)}`);let R=Vi(I,M=>{let N=ib(M.range),O=M.kind===1?Vn(Nl(M.node))??M.sourceFile:M.kind===2?Vn(Nl(M.nodes[0]))??M.sourceFile:M.sourceFile,H=o(M,O,T,p,g,m);if(!(N.length===H.length&&nde(O.text,H,N.start)))return aO(N,H)});return R.length>0?{fileName:T.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,p,g,m){let b=i(K3(u),p,g,m);return{fileName:u,textChanges:[aO(vu(0,0),b)],isNewFile:!0}}e.newFileChanges=r;function i(u,p,g,m){let b=Zi(p,R=>R.statements.map(M=>M===4?"":l(M,R.oldFile,g).text)).join(g),T=rw("any file name",b,{languageVersion:99,jsDocParsingMode:1},!0,u),I=wc.formatDocument(T,m);return F_e(b,I)+g}e.newFileChangesWorker=i;function o(u,p,g,m,b,T){var I;if(u.kind===0)return"";if(u.kind===3)return u.text;let{options:R={},range:{pos:M}}=u,N=K=>s(K,p,g,M,R,m,b,T),O=u.kind===2?u.nodes.map(K=>Px(N(K),m)).join(((I=u.options)==null?void 0:I.joiner)||m):N(u.node),H=R.indentation!==void 0||sm(M,p)===M?O:O.replace(/^\s+/,"");return(R.prefix||"")+H+(!R.suffix||Sl(H,R.suffix)?"":R.suffix)}function s(u,p,g,m,{indentation:b,prefix:T,delta:I},R,M,N){let{node:O,text:H}=l(u,p,R);N&&N(O,H);let K=CW(M,p),Z=b!==void 0?b:wc.SmartIndenter.getIndentation(m,g,K,T===R||sm(m,p)===m);I===void 0&&(I=wc.SmartIndenter.shouldIndentChildNode(K,u)&&K.indentSize||0);let V={text:H,getLineAndCharacterOfPosition(G){return Es(this,G)}},ue=wc.formatNodeGivenIndentation(O,V,p.languageVariant,Z,I,{...M,options:K});return F_e(H,ue)}function l(u,p,g){let m=hke(g),b=yO(g);return x0({newLine:b,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,u,p,m),{text:m.getText(),node:jQ(u)}}e.getNonformattedText=l})(UQ||(UQ={})),yke={...KN,factory:Rk(KN.factory.flags|1,KN.factory.baseFactory)},(e=>{function t(s,l,u,p){switch(p.kind){case 169:{let I=p.parent;Bs(I)&&I.parameters.length===1&&!bs(I,21,u)?s.replaceNodeWithText(u,p,"()"):n4(s,l,u,p);break}case 272:case 271:let g=u.imports.length&&p===Ha(u.imports).parent||p===vn(u.statements,_S);Kg(s,u,p,{leadingTriviaOption:g?0:Op(p)?2:3});break;case 208:let m=p.parent;m.kind===207&&p!==Ya(m.elements)?Kg(s,u,p):n4(s,l,u,p);break;case 260:o(s,l,u,p);break;case 168:n4(s,l,u,p);break;case 276:let T=p.parent;T.elements.length===1?i(s,u,T):n4(s,l,u,p);break;case 274:i(s,u,p);break;case 27:Kg(s,u,p,{trailingTriviaOption:0});break;case 100:Kg(s,u,p,{leadingTriviaOption:0});break;case 263:case 262:Kg(s,u,p,{leadingTriviaOption:Op(p)?2:3});break;default:p.parent?Eh(p.parent)&&p.parent.name===p?r(s,u,p.parent):la(p.parent)&&wr(p.parent.arguments,p)?n4(s,l,u,p):Kg(s,u,p):Kg(s,u,p)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)Kg(s,l,u.parent);else{let p=u.name.getStart(l),g=po(l,u.name.end);if(g&&g.kind===28){let m=La(l.text,g.end,!1,!0);s.deleteRange(l,{pos:p,end:m})}else Kg(s,l,u.name)}}function i(s,l,u){if(u.parent.name){let p=C.checkDefined(po(l,u.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:u.end})}else{let p=p0(u,272);Kg(s,l,p)}}function o(s,l,u,p){let{parent:g}=p;if(g.kind===299){s.deleteNodeRange(u,bs(g,21,u),bs(g,22,u));return}if(g.declarations.length!==1){n4(s,l,u,p);return}let m=g.parent;switch(m.kind){case 250:case 249:s.replaceNode(u,p,k.createObjectLiteralExpression());break;case 248:Kg(s,u,g);break;case 243:Kg(s,u,m,{leadingTriviaOption:Op(m)?2:3});break;default:C.assertNever(m)}}})(B_e||(B_e={}))}}),hr={};X(hr,{ChangeTracker:()=>vke,LeadingTriviaOption:()=>W_e,TrailingTriviaOption:()=>z_e,applyChanges:()=>F_e,assignPositionsToNode:()=>jQ,createWriter:()=>hke,deleteNode:()=>Kg,isThisTypeAnnotatable:()=>fit,isValidLocationToAddComment:()=>gke});var Tit=A({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";Sit()}}),G_e,V_e,Ait=A({"src/services/formatting/formattingContext.ts"(){"use strict";ci(),G_e=(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))(G_e||{}),V_e=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=C.checkDefined(e),this.currentTokenParent=C.checkDefined(t),this.nextTokenSpan=C.checkDefined(r),this.nextTokenParent=C.checkDefined(i),this.contextNode=C.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let 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 this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){let t=bs(e,19,this.sourceFile),r=bs(e,20,this.sourceFile);if(t&&r){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function j_e(e,t,r,i,o){let s=t===1?Eke:bke;s.setText(e),s.resetTokenState(r);let l=!0,u,p,g,m,b,T=o({advance:I,readTokenInfo:V,readEOFTokenRange:G,isOnToken:ne,isOnEOF:he,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:$,skipToStartOf:Y,getTokenFullStart:()=>b?.token.pos??s.getTokenStart(),getStartPos:()=>b?.token.pos??s.getTokenStart()});return b=void 0,s.setText(void 0),T;function I(){b=void 0,s.getTokenFullStart()!==r?l=!!p&&Ya(p).kind===4:s.scan(),u=void 0,p=void 0;let fe=s.getTokenFullStart();for(;fe(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))(U_e||{}),H_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(H_e||{})}});function Ske(){let e=[];for(let ue=0;ue<=165;ue++)ue!==1&&e.push(ue);function t(...ue){return{tokens:e.filter(G=>!ue.some(ne=>ne===G)),isSpecific:!1}}let r={tokens:e,isSpecific:!1},i=RP([...e,3]),o=RP([...e,1]),s=Ake(83,165),l=Ake(30,79),u=[103,104,165,130,142,152],p=[46,47,55,54],g=[9,10,80,21,23,19,110,105],m=[80,21,110,105],b=[80,22,24,105],T=[80,21,110,105],I=[80,22,24,105],R=[2,3],M=[80,...PW],N=i,O=RP([80,32,3,86,95,102]),H=RP([22,3,92,113,98,93,85]),K=[Yr("IgnoreBeforeComment",r,R,k9,1),Yr("IgnoreAfterLineComment",2,r,k9,1),Yr("NotSpaceBeforeColon",r,59,[Yi,w9,Rke],16),Yr("SpaceAfterColon",59,r,[Yi,w9,jit],4),Yr("NoSpaceBeforeQuestionMark",r,58,[Yi,w9,Rke],16),Yr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Yi,Nit],4),Yr("NoSpaceAfterQuestionMark",58,r,[Yi,Cit],16),Yr("NoSpaceBeforeDot",r,[25,29],[Yi,not],16),Yr("NoSpaceAfterDot",[25,29],r,[Yi],16),Yr("NoSpaceBetweenImportParenInImportType",102,21,[Yi,Git],16),Yr("NoSpaceAfterUnaryPrefixOperator",p,g,[Yi,w9],16),Yr("NoSpaceAfterUnaryPreincrementOperator",46,m,[Yi],16),Yr("NoSpaceAfterUnaryPredecrementOperator",47,T,[Yi],16),Yr("NoSpaceBeforeUnaryPostincrementOperator",b,46,[Yi,jke],16),Yr("NoSpaceBeforeUnaryPostdecrementOperator",I,47,[Yi,jke],16),Yr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Yi,sb],4),Yr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Yi,sb],4),Yr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Yi,sb],4),Yr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Yi,sb],4),Yr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Yi,sb],4),Yr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Yi,sb],4),Yr("NoSpaceAfterCloseBrace",20,[28,27],[Yi],16),Yr("NewLineBeforeCloseBraceInBlockContext",i,20,[Cke],8),Yr("SpaceAfterCloseBrace",20,t(22),[Yi,Lit],4),Yr("SpaceBetweenCloseBraceAndElse",20,93,[Yi],4),Yr("SpaceBetweenCloseBraceAndWhile",20,117,[Yi],4),Yr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Yi,wke],16),Yr("SpaceAfterConditionalClosingParen",22,23,[O9],4),Yr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Mke],16),Yr("SpaceAfterStarInGeneratorDeclaration",42,80,[Mke],4),Yr("SpaceAfterFunctionInFuncDecl",100,r,[oT],4),Yr("NewLineAfterOpenBraceInBlockContext",19,r,[Cke],8),Yr("SpaceAfterGetSetInMember",[139,153],80,[oT],4),Yr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Yi,Vke],16),Yr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Yi,Vke],4),Yr("NoSpaceBetweenReturnAndSemicolon",107,27,[Yi],16),Yr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Yi],4),Yr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Yi,qit],4),Yr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Yi,Oit,Fit],16),Yr("SpaceBeforeBinaryKeywordOperator",r,u,[Yi,sb],4),Yr("SpaceAfterBinaryKeywordOperator",u,r,[Yi,sb],4),Yr("SpaceAfterVoidOperator",116,r,[Yi,$it],4),Yr("SpaceBetweenAsyncAndOpenParen",134,21,[Bit,Yi],4),Yr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Yi],4),Yr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Yi],16),Yr("SpaceBeforeJsxAttribute",r,80,[Vit,Yi],4),Yr("SpaceBeforeSlashInJsxOpeningElement",r,44,[zke,Yi],4),Yr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[zke,Yi],16),Yr("NoSpaceBeforeEqualInJsxAttribute",r,64,[Fke,Yi],16),Yr("NoSpaceAfterEqualInJsxAttribute",64,r,[Fke,Yi],16),Yr("NoSpaceBeforeJsxNamespaceColon",80,59,[Wke],16),Yr("NoSpaceAfterJsxNamespaceColon",59,80,[Wke],16),Yr("NoSpaceAfterModuleImport",[144,149],21,[Yi],16),Yr("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[Yi],4),Yr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Yi],4),Yr("SpaceAfterModuleName",11,19,[Jit],4),Yr("SpaceBeforeArrow",r,39,[Yi],4),Yr("SpaceAfterArrow",39,r,[Yi],4),Yr("NoSpaceAfterEllipsis",26,80,[Yi],16),Yr("NoSpaceAfterOptionalParameters",58,[22,28],[Yi,w9],16),Yr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Yi,Kit],16),Yr("NoSpaceBeforeOpenAngularBracket",M,30,[Yi,F9],16),Yr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Yi,F9],16),Yr("NoSpaceAfterOpenAngularBracket",30,r,[Yi,F9],16),Yr("NoSpaceBeforeCloseAngularBracket",r,32,[Yi,F9],16),Yr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Yi,F9,Mit,Yit],16),Yr("SpaceBeforeAt",[22,80],60,[Yi],4),Yr("NoSpaceAfterAt",60,r,[Yi],16),Yr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Hit],4),Yr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Yi,Qit],16),Yr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Yi,Xit],16),Yr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Yi],4)],Z=[Yr("SpaceAfterConstructor",137,21,[lf("insertSpaceAfterConstructor"),Yi],4),Yr("NoSpaceAfterConstructor",137,21,[G_("insertSpaceAfterConstructor"),Yi],16),Yr("SpaceAfterComma",28,r,[lf("insertSpaceAfterCommaDelimiter"),Yi,Q_e,Wit,zit],4),Yr("NoSpaceAfterComma",28,r,[G_("insertSpaceAfterCommaDelimiter"),Yi,Q_e],16),Yr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[lf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),oT],4),Yr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[G_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),oT],16),Yr("SpaceAfterKeywordInControl",s,21,[lf("insertSpaceAfterKeywordsInControlFlowStatements"),O9],4),Yr("NoSpaceAfterKeywordInControl",s,21,[G_("insertSpaceAfterKeywordsInControlFlowStatements"),O9],16),Yr("SpaceAfterOpenParen",21,r,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),Yr("SpaceBeforeCloseParen",r,22,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),Yr("SpaceBetweenOpenParens",21,21,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),Yr("NoSpaceBetweenParens",21,22,[Yi],16),Yr("NoSpaceAfterOpenParen",21,r,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],16),Yr("NoSpaceBeforeCloseParen",r,22,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],16),Yr("SpaceAfterOpenBracket",23,r,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],4),Yr("SpaceBeforeCloseBracket",r,24,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],4),Yr("NoSpaceBetweenBrackets",23,24,[Yi],16),Yr("NoSpaceAfterOpenBracket",23,r,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],16),Yr("NoSpaceBeforeCloseBracket",r,24,[G_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],16),Yr("SpaceAfterOpenBrace",19,r,[xke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Dke],4),Yr("SpaceBeforeCloseBrace",r,20,[xke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Dke],4),Yr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Yi,wke],16),Yr("NoSpaceAfterOpenBrace",19,r,[q_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Yi],16),Yr("NoSpaceBeforeCloseBrace",r,20,[q_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Yi],16),Yr("SpaceBetweenEmptyBraceBrackets",19,20,[lf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Yr("NoSpaceBetweenEmptyBraceBrackets",19,20,[q_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Yi],16),Yr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[lf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Oke],4,1),Yr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[lf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Yi],4),Yr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[G_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Oke],16,1),Yr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[G_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Yi],16),Yr("SpaceAfterOpenBraceInJsxExpression",19,r,[lf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,qQ],4),Yr("SpaceBeforeCloseBraceInJsxExpression",r,20,[lf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,qQ],4),Yr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[G_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,qQ],16),Yr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[G_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,qQ],16),Yr("SpaceAfterSemicolonInFor",27,r,[lf("insertSpaceAfterSemicolonInForStatements"),Yi,K_e],4),Yr("NoSpaceAfterSemicolonInFor",27,r,[G_("insertSpaceAfterSemicolonInForStatements"),Yi,K_e],16),Yr("SpaceBeforeBinaryOperator",r,l,[lf("insertSpaceBeforeAndAfterBinaryOperators"),Yi,sb],4),Yr("SpaceAfterBinaryOperator",l,r,[lf("insertSpaceBeforeAndAfterBinaryOperators"),Yi,sb],4),Yr("NoSpaceBeforeBinaryOperator",r,l,[G_("insertSpaceBeforeAndAfterBinaryOperators"),Yi,sb],16),Yr("NoSpaceAfterBinaryOperator",l,r,[G_("insertSpaceBeforeAndAfterBinaryOperators"),Yi,sb],16),Yr("SpaceBeforeOpenParenInFuncDecl",r,21,[lf("insertSpaceBeforeFunctionParenthesis"),Yi,oT],4),Yr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[G_("insertSpaceBeforeFunctionParenthesis"),Yi,oT],16),Yr("NewLineBeforeOpenBraceInControl",H,19,[lf("placeOpenBraceOnNewLineForControlBlocks"),O9,$_e],8,1),Yr("NewLineBeforeOpenBraceInFunction",N,19,[lf("placeOpenBraceOnNewLineForFunctions"),oT,$_e],8,1),Yr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[lf("placeOpenBraceOnNewLineForFunctions"),Lke,$_e],8,1),Yr("SpaceAfterTypeAssertion",32,r,[lf("insertSpaceAfterTypeAssertion"),Yi,ehe],4),Yr("NoSpaceAfterTypeAssertion",32,r,[G_("insertSpaceAfterTypeAssertion"),Yi,ehe],16),Yr("SpaceBeforeTypeAnnotation",r,[58,59],[lf("insertSpaceBeforeTypeAnnotation"),Yi,X_e],4),Yr("NoSpaceBeforeTypeAnnotation",r,[58,59],[G_("insertSpaceBeforeTypeAnnotation"),Yi,X_e],16),Yr("NoOptionalSemicolon",27,o,[Ike("semicolons","remove"),eot],32),Yr("OptionalSemicolon",r,o,[Ike("semicolons","insert"),tot],64)],V=[Yr("NoSpaceBeforeSemicolon",r,27,[Yi],16),Yr("SpaceBeforeOpenBraceInControl",H,19,[J_e("placeOpenBraceOnNewLineForControlBlocks"),O9,Z_e,Y_e],4,1),Yr("SpaceBeforeOpenBraceInFunction",N,19,[J_e("placeOpenBraceOnNewLineForFunctions"),oT,HQ,Z_e,Y_e],4,1),Yr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[J_e("placeOpenBraceOnNewLineForFunctions"),Lke,Z_e,Y_e],4,1),Yr("NoSpaceBeforeComma",r,28,[Yi],16),Yr("NoSpaceBeforeOpenBracket",t(134,84),23,[Yi],16),Yr("NoSpaceAfterCloseBracket",24,r,[Yi,Uit],16),Yr("SpaceAfterSemicolon",27,r,[Yi],4),Yr("SpaceBetweenForAndAwaitKeyword",99,135,[Yi],4),Yr("SpaceBetweenStatements",[22,92,93,84],r,[Yi,Q_e,Rit],4),Yr("SpaceAfterTryCatchFinally",[113,85,98],19,[Yi],4)];return[...K,...Z,...V]}function Yr(e,t,r,i,o,s=0){return{leftTokenRange:Tke(t),rightTokenRange:Tke(r),rule:{debugName:e,context:i,action:o,flags:s}}}function RP(e){return{tokens:e,isSpecific:!0}}function Tke(e){return typeof e=="number"?RP([e]):Do(e)?RP(e):e}function Ake(e,t,r=[]){let i=[];for(let o=e;o<=t;o++)wr(r,o)||i.push(o);return RP(i)}function Ike(e,t){return r=>r.options&&r.options[e]===t}function lf(e){return t=>t.options&&Rs(t.options,e)&&!!t.options[e]}function q_e(e){return t=>t.options&&Rs(t.options,e)&&!t.options[e]}function G_(e){return t=>!t.options||!Rs(t.options,e)||!t.options[e]}function J_e(e){return t=>!t.options||!Rs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function xke(e){return t=>!t.options||!Rs(t.options,e)||!!t.options[e]}function K_e(e){return e.contextNode.kind===248}function Rit(e){return!K_e(e)}function sb(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function w9(e){return!sb(e)}function Rke(e){return!X_e(e)}function X_e(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||xA(t)}function Dit(e){return Jo(e.contextNode)&&e.contextNode.questionToken}function Cit(e){return!Dit(e)}function Nit(e){return e.contextNode.kind===227||e.contextNode.kind===194}function Y_e(e){return e.TokensAreOnSameLine()||HQ(e)}function Dke(e){return e.contextNode.kind===206||e.contextNode.kind===200||Pit(e)}function $_e(e){return HQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Cke(e){return Nke(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Pit(e){return Nke(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Nke(e){return Pke(e.contextNode)}function HQ(e){return Pke(e.nextTokenParent)}function Pke(e){if(kke(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function oT(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function Mit(e){return!oT(e)}function Mke(e){return e.contextNode.kind===262||e.contextNode.kind===218}function Lke(e){return kke(e.contextNode)}function kke(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Lit(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function O9(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function wke(e){return e.contextNode.kind===210}function kit(e){return e.contextNode.kind===213}function wit(e){return e.contextNode.kind===214}function Oit(e){return kit(e)||wit(e)}function Fit(e){return e.currentTokenSpan.kind!==28}function Wit(e){return e.nextTokenSpan.kind!==24}function zit(e){return e.nextTokenSpan.kind!==22}function Bit(e){return e.contextNode.kind===219}function Git(e){return e.contextNode.kind===205}function Yi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function Oke(e){return e.contextNode.kind!==12}function Q_e(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function qQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function Vit(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function Fke(e){return e.contextNode.kind===291}function jit(e){return e.nextTokenParent.kind!==295}function Wke(e){return e.nextTokenParent.kind===295}function zke(e){return e.contextNode.kind===285}function Uit(e){return!oT(e)&&!HQ(e)}function Hit(e){return e.TokensAreOnSameLine()&&Sf(e.contextNode)&&Bke(e.currentTokenParent)&&!Bke(e.nextTokenParent)}function Bke(e){for(;e&&bt(e);)e=e.parent;return e&&e.kind===170}function qit(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Z_e(e){return e.formattingRequestKind!==2}function Jit(e){return e.contextNode.kind===267}function Kit(e){return e.contextNode.kind===187}function Xit(e){return e.contextNode.kind===180}function Gke(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function F9(e){return Gke(e.currentTokenSpan,e.currentTokenParent)||Gke(e.nextTokenSpan,e.nextTokenParent)}function ehe(e){return e.contextNode.kind===216}function Yit(e){return!ehe(e)}function $it(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function Vke(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function Qit(e){return e.contextNode.kind===235}function jke(e){return!Zit(e)}function Zit(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function eot(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(hR(t)){let s=e.nextTokenParent===e.currentTokenParent?lE(e.currentTokenParent,zn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!gp(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Jo(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function tot(e){return bW(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function not(e){return!zr(e.contextNode)||!hp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var rot=A({"src/services/formatting/rules.ts"(){"use strict";ci(),o4()}});function iot(e,t){return{options:e,getRules:oot(),host:t}}function oot(){return the===void 0&&(the=sot(Ske())),the}function aot(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function sot(e){let t=lot(e);return r=>{let i=t[Uke(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){let o=[],s=0;for(let l of i){let u=~aot(s);l.action&u&&Jn(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function lot(e){let t=new Array(JQ*JQ),r=new Array(t.length);for(let i of e){let o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let s of i.leftTokenRange.tokens)for(let l of i.rightTokenRange.tokens){let u=Uke(s,l),p=t[u];p===void 0&&(p=t[u]=[]),cot(p,i.rule,o,r,u)}}return t}function Uke(e,t){return C.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*JQ+t}function cot(e,t,r,i,o){let s=t.action&3?r?0:DP.StopRulesAny:t.context!==k9?r?DP.ContextRulesSpecific:DP.ContextRulesAny:r?DP.NoContextRulesSpecific:DP.NoContextRulesAny,l=i[o]||0;e.splice(uot(l,s),0,t),i[o]=dot(l,s)}function uot(e,t){let r=0;for(let i=0;i<=t;i+=z2)r+=e&W9,e>>=z2;return r}function dot(e,t){let r=(e>>t&W9)+1;return C.assert((r&W9)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(W9<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=z2*1]="StopRulesAny",e[e.ContextRulesSpecific=z2*2]="ContextRulesSpecific",e[e.ContextRulesAny=z2*3]="ContextRulesAny",e[e.NoContextRulesSpecific=z2*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=z2*5]="NoContextRulesAny",e))(DP||{})}});function KQ(e,t,r){let i={pos:e,end:t,kind:r};return C.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>C.formatSyntaxKind(r)}),i}function fot(e,t,r){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=bL(i,t);for(;S_(t.text.charCodeAt(o));)o--;Uu(t.text.charCodeAt(o))&&o--;let s={pos:Wy(i-1,t),end:o+1};return z9(s,t,r,2)}function mot(e,t,r){let i=nhe(e,27,t);return Hke(rhe(i),t,r,3)}function _ot(e,t,r){let i=nhe(e,19,t);if(!i)return[];let o=i.parent,s=rhe(o),l={pos:sm(s.getStart(t),t),end:e};return z9(l,t,r,4)}function hot(e,t,r){let i=nhe(e,20,t);return Hke(rhe(i),t,r,5)}function got(e,t){let r={pos:0,end:e.text.length};return z9(r,e,t,0)}function vot(e,t,r,i){let o={pos:sm(e,r),end:t};return z9(o,r,i,1)}function nhe(e,t,r){let i=Ac(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function rhe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!yot(t.parent,t);)t=t.parent;return t}function yot(e,t){switch(e.kind){case 263:case 264:return of(e.members,t);case 267:let r=e.body;return!!r&&r.kind===268&&of(r.statements,t);case 312:case 241:case 268:return of(e.statements,t);case 299:return of(e.block.statements,t)}return!1}function bot(e,t){return r(t);function r(i){let o=Ho(i,s=>UK(s.getStart(t),s.end,e)&&s);if(o){let s=r(o);if(s)return s}return i}}function Eot(e,t){if(!e.length)return o;let r=e.filter(s=>oP(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;let l=r[i];if(s.end<=l.start)return!1;if(YF(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function Sot(e,t,r){let i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;let o=Ac(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function Tot(e,t,r){let i=-1,o;for(;e;){let s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(V_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function Aot(e,t,r,i,o,s){let l={pos:e.pos,end:e.end};return j_e(t.text,r,l.pos,l.end,u=>qke(l,e,i,o,u,s,1,p=>!1,t))}function Hke(e,t,r,i){if(!e)return[];let o={pos:sm(e.getStart(t),t),end:e.end};return z9(o,t,r,i)}function z9(e,t,r,i){let o=bot(e,t);return j_e(t.text,t.languageVariant,Sot(o,e,t),e.end,s=>qke(e,o,V_.getIndentationForNode(o,e,t,r.options),Tot(o,r.options,t),s,r,i,Eot(t.parseDiagnostics,e),t))}function qke(e,t,r,i,o,{options:s,getRules:l,host:u},p,g,m){var b;let T=new V_e(m,p,s),I,R,M,N,O,H=-1,K=[];if(o.advance(),o.isOnToken()){let Se=m.getLineAndCharacterOfPosition(t.getStart(m)).line,je=Se;Sf(t)&&(je=m.getLineAndCharacterOfPosition(cj(t,m)).line),he(t,t,Se,je,r,i)}let Z=o.getCurrentLeadingTrivia();if(Z){let Se=V_.nodeWillIndentChild(s,t,void 0,m,!1)?r+s.indentSize:r;ye(Z,Se,!0,je=>{Y(je,m.getLineAndCharacterOfPosition(je.pos),t,t,void 0),fe(je.pos,Se,!1)}),s.trimTrailingWhitespace!==!1&&He(Z)}if(R&&o.getTokenFullStart()>=e.end){let Se=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(Se&&Se.pos===I){let je=((b=Ac(Se.end,m,t))==null?void 0:b.parent)||M;oe(Se,m.getLineAndCharacterOfPosition(Se.pos).line,je,R,N,M,je,void 0)}}return K;function V(Se,je,at,Bt,yt){if(oP(Bt,Se,je)||nO(Bt,Se,je)){if(yt!==-1)return yt}else{let Qe=m.getLineAndCharacterOfPosition(Se).line,gt=sm(Se,m),nn=V_.findFirstNonWhitespaceColumn(gt,Se,m,s);if(Qe!==at||Se===nn){let rn=V_.getBaseIndentation(s);return rn>nn?rn:nn}}return-1}function ue(Se,je,at,Bt,yt,Qe){let gt=V_.shouldIndentChildNode(s,Se)?s.indentSize:0;return Qe===je?{indentation:je===O?H:yt.getIndentation(),delta:Math.min(s.indentSize,yt.getDelta(Se)+gt)}:at===-1?Se.kind===21&&je===O?{indentation:H,delta:yt.getDelta(Se)}:V_.childStartsOnTheSameLineWithElseInIfStatement(Bt,Se,je,m)||V_.childIsUnindentedBranchOfConditionalExpression(Bt,Se,je,m)||V_.argumentStartsOnSameLineAsPreviousArgument(Bt,Se,je,m)?{indentation:yt.getIndentation(),delta:gt}:{indentation:yt.getIndentation()+yt.getDelta(Se),delta:gt}:{indentation:at,delta:gt}}function G(Se){if(Cm(Se)){let je=vn(Se.modifiers,Ia,ri(Se.modifiers,Eu));if(je)return je.kind}switch(Se.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(Se.asteriskToken)return 42;case 172:case 169:let je=Oo(Se);if(je)return je.kind}}function ne(Se,je,at,Bt){return{getIndentationForComment:(gt,nn,rn)=>{switch(gt){case 20:case 24:case 22:return at+Qe(rn)}return nn!==-1?nn:at},getIndentationForToken:(gt,nn,rn,Nn)=>!Nn&&yt(gt,nn,rn)?at+Qe(rn):at,getIndentation:()=>at,getDelta:Qe,recomputeIndentation:(gt,nn)=>{V_.shouldIndentChildNode(s,nn,Se,m)&&(at+=gt?s.indentSize:-s.indentSize,Bt=V_.shouldIndentChildNode(s,Se)?s.indentSize:0)}};function yt(gt,nn,rn){switch(nn){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(rn.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(rn.kind!==200)return!1;break}return je!==gt&&!(Sf(Se)&&nn===G(Se))}function Qe(gt){return V_.nodeWillIndentChild(s,Se,gt,m,!0)?Bt:0}}function he(Se,je,at,Bt,yt,Qe){if(!oP(e,Se.getStart(m),Se.getEnd()))return;let gt=ne(Se,at,yt,Qe),nn=je;for(Ho(Se,_n=>{rn(_n,-1,Se,gt,at,Bt,!1)},_n=>{Nn(_n,Se,at,gt)});o.isOnToken()&&o.getTokenFullStart()Math.min(Se.end,e.end))break;Xn(_n,Se,gt,Se)}function rn(_n,Qt,Yt,vi,ho,ki,Ro,nr){if(C.assert(!Xs(_n)),Fl(_n)||eie(Yt,_n))return Qt;let qr=_n.getStart(m),xr=m.getLineAndCharacterOfPosition(qr).line,ln=xr;Sf(_n)&&(ln=m.getLineAndCharacterOfPosition(cj(_n,m)).line);let tt=-1;if(Ro&&of(e,Yt)&&(tt=V(qr,_n.end,ho,e,Qt),tt!==-1&&(Qt=tt)),!oP(e,_n.pos,_n.end))return _n.ende.end)return Qt;if(ui.token.end>qr){ui.token.pos>qr&&o.skipToStartOf(_n);break}Xn(ui,Se,vi,Se)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Qt;if(AA(_n)){let ui=o.readTokenInfo(_n);if(_n.kind!==12)return C.assert(ui.token.end===_n.end,"Token end is child end"),Xn(ui,Se,vi,_n),Qt}let zt=_n.kind===170?xr:ki,Rn=ue(_n,xr,tt,Se,vi,zt);return he(_n,nn,xr,ln,Rn.indentation,Rn.delta),nn=Se,nr&&Yt.kind===209&&Qt===-1&&(Qt=Rn.indentation),Qt}function Nn(_n,Qt,Yt,vi){C.assert(E1(_n)),C.assert(!Xs(_n));let ho=Iot(Qt,_n),ki=vi,Ro=Yt;if(!oP(e,_n.pos,_n.end)){_n.end_n.pos)break;if(xr.token.kind===ho){Ro=m.getLineAndCharacterOfPosition(xr.token.pos).line,Xn(xr,Qt,vi,Qt);let ln;if(H!==-1)ln=H;else{let tt=sm(xr.token.pos,m);ln=V_.findFirstNonWhitespaceColumn(tt,xr.token.pos,m,s)}ki=ne(Qt,Yt,ln,s.indentSize)}else Xn(xr,Qt,vi,Qt)}let nr=-1;for(let xr=0;xr<_n.length;xr++){let ln=_n[xr];nr=rn(ln,nr,Se,ki,Ro,Ro,!0,xr===0)}let qr=xot(ho);if(qr!==0&&o.isOnToken()&&o.getTokenFullStart()fe(Rn.pos,zt,!1))}ln!==-1&&tt&&(fe(_n.token.pos,ln,nr===1),O=xr.line,H=ln)}o.advance(),nn=Qt}}function ye(Se,je,at,Bt){for(let yt of Se){let Qe=of(e,yt);switch(yt.kind){case 3:Qe&&ie(yt,je,!at),at=!1;break;case 2:at&&Qe&&Bt(yt),at=!1;break;case 4:at=!0;break}}return at}function $(Se,je,at,Bt){for(let yt of Se)if(iW(yt.kind)&&of(e,yt)){let Qe=m.getLineAndCharacterOfPosition(yt.pos);Y(yt,Qe,je,at,Bt)}}function Y(Se,je,at,Bt,yt){let Qe=g(Se),gt=0;if(!Qe)if(R)gt=oe(Se,je.line,at,R,N,M,Bt,yt);else{let nn=m.getLineAndCharacterOfPosition(e.pos);ve(nn.line,je.line)}return R=Se,I=Se.end,M=at,N=je.line,gt}function oe(Se,je,at,Bt,yt,Qe,gt,nn){T.updateContext(Bt,Qe,Se,at,gt);let rn=l(T),Nn=T.options.trimTrailingWhitespace!==!1,Xn=0;return rn?Gt(rn,_n=>{if(Xn=At(_n,Bt,yt,Se,je),nn)switch(Xn){case 2:at.getStart(m)===Se.pos&&nn.recomputeIndentation(!1,gt);break;case 1:at.getStart(m)===Se.pos&&nn.recomputeIndentation(!0,gt);break;default:C.assert(Xn===0)}Nn=Nn&&!(_n.action&16)&&_n.flags!==1}):Nn=Nn&&Se.kind!==1,je!==yt&&Nn&&ve(yt,je,Bt),Xn}function fe(Se,je,at){let Bt=ihe(je,s);if(at)Me(Se,0,Bt);else{let yt=m.getLineAndCharacterOfPosition(Se),Qe=Wy(yt.line,m);(je!==Ne(Qe,yt.character)||me(Bt,Qe))&&Me(Qe,yt.character,Bt)}}function Ne(Se,je){let at=0;for(let Bt=0;Bt0){let ki=ihe(ho,s);Me(Yt,vi.character,ki)}else Ce(Yt,vi.character)}}function ve(Se,je,at){for(let Bt=Se;BtQe)continue;let gt=Le(yt,Qe);gt!==-1&&(C.assert(gt===yt||!S_(m.text.charCodeAt(gt-1))),Ce(gt,Qe+1-gt))}}function Le(Se,je){let at=je;for(;at>=Se&&S_(m.text.charCodeAt(at));)at--;return at!==je?at+1:-1}function He(Se){let je=R?R.end:e.pos;for(let at of Se)iW(at.kind)&&(jetO(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function Iot(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function xot(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function ihe(e,t){if((!XQ||XQ.tabSize!==t.tabSize||XQ.indentSize!==t.indentSize)&&(XQ={tabSize:t.tabSize,indentSize:t.indentSize},r4=i4=void 0),t.convertTabsToSpaces){let i,o=Math.floor(e/t.indentSize),s=e%t.indentSize;return i4||(i4=[]),i4[o]===void 0?(i=lO(" ",t.indentSize*o),i4[o]=i):i=i4[o],s?i+lO(" ",s):i}else{let i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s;return r4||(r4=[]),r4[i]===void 0?r4[i]=s=lO(" ",i):s=r4[i],o?s+lO(" ",o):s}}var XQ,r4,i4,Rot=A({"src/services/formatting/formatting.ts"(){"use strict";ci(),o4()}}),V_,Dot=A({"src/services/formatting/smartIndenter.ts"(){"use strict";ci(),o4(),(e=>{let t;(ie=>{ie[ie.Unknown=-1]="Unknown"})(t||(t={}));function r(ie,ve,Le,He=!1){if(ie>ve.text.length)return u(Le);if(Le.indentStyle===0)return 0;let Ee=Ac(ie,ve,void 0,!0),Ce=Jke(ve,ie,Ee||null);if(Ce&&Ce.kind===3)return i(ve,ie,Le,Ce);if(!Ee)return u(Le);if($K(Ee.kind)&&Ee.getStart(ve)<=ie&&ie=0),Ee<=Ce)return Y(Wy(Ce,ie),ve,ie,Le);let Me=Wy(Ee,ie),{column:Fe,character:At}=$(Me,ve,ie,Le);return Fe===0?Fe:ie.text.charCodeAt(Me+At)===42?Fe-1:Fe}function o(ie,ve,Le){let He=ve;for(;He>0;){let Ce=ie.text.charCodeAt(He);if(!Lg(Ce))break;He--}let Ee=sm(He,ie);return Y(Ee,He,ie,Le)}function s(ie,ve,Le,He,Ee,Ce){let Me,Fe=Le;for(;Fe;){if(HK(Fe,ve,ie)&&Ne(Ce,Fe,Me,ie,!0)){let Se=R(Fe,ie),je=I(Le,Fe,He,ie),at=je!==0?Ee&&je===2?Ce.indentSize:0:He!==Se.line?Ce.indentSize:0;return p(Fe,Se,void 0,at,ie,!0,Ce)}let At=ne(Fe,ie,Ce,!0);if(At!==-1)return At;Me=Fe,Fe=Fe.parent}return u(Ce)}function l(ie,ve,Le,He){let Ee=Le.getLineAndCharacterOfPosition(ie.getStart(Le));return p(ie,Ee,ve,0,Le,!1,He)}e.getIndentationForNode=l;function u(ie){return ie.baseIndentSize||0}e.getBaseIndentation=u;function p(ie,ve,Le,He,Ee,Ce,Me){var Fe;let At=ie.parent;for(;At;){let Se=!0;if(Le){let yt=ie.getStart(Ee);Se=ytLe.end}let je=g(At,ie,Ee),at=je.line===ve.line||N(At,ie,ve.line,Ee);if(Se){let yt=(Fe=K(ie,Ee))==null?void 0:Fe[0],Qe=!!yt&&R(yt,Ee).line>je.line,gt=ne(ie,Ee,Me,Qe);if(gt!==-1||(gt=b(ie,At,ve,at,Ee,Me),gt!==-1))return gt+He}Ne(Me,At,ie,Ee,Ce)&&!at&&(He+=Me.indentSize);let Bt=M(At,ie,ve.line,Ee);ie=At,At=ie.parent,ve=Bt?Ee.getLineAndCharacterOfPosition(ie.getStart(Ee)):je}return He+u(Me)}function g(ie,ve,Le){let He=K(ve,Le),Ee=He?He.pos:ie.getStart(Le);return Le.getLineAndCharacterOfPosition(Ee)}function m(ie,ve,Le){let He=vue(ie);return He&&He.listItemIndex>0?he(He.list.getChildren(),He.listItemIndex-1,ve,Le):-1}function b(ie,ve,Le,He,Ee,Ce){return(qu(ie)||_L(ie))&&(ve.kind===312||!He)?ye(Le,Ee,Ce):-1}let T;(ie=>{ie[ie.Unknown=0]="Unknown",ie[ie.OpenBrace=1]="OpenBrace",ie[ie.CloseBrace=2]="CloseBrace"})(T||(T={}));function I(ie,ve,Le,He){let Ee=lE(ie,ve,He);if(!Ee)return 0;if(Ee.kind===19)return 1;if(Ee.kind===20){let Ce=R(Ee,He).line;return Le===Ce?2:0}return 0}function R(ie,ve){return ve.getLineAndCharacterOfPosition(ie.getStart(ve))}function M(ie,ve,Le,He){if(!(la(ie)&&wr(ie.arguments,ve)))return!1;let Ee=ie.expression.getEnd();return Es(He,Ee).line===Le}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=M;function N(ie,ve,Le,He){if(ie.kind===245&&ie.elseStatement===ve){let Ee=bs(ie,93,He);return C.assert(Ee!==void 0),R(Ee,He).line===Le}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=N;function O(ie,ve,Le,He){if(BR(ie)&&(ve===ie.whenTrue||ve===ie.whenFalse)){let Ee=Es(He,ie.condition.end).line;if(ve===ie.whenTrue)return Le===Ee;{let Ce=R(ie.whenTrue,He).line,Me=Es(He,ie.whenTrue.end).line;return Ee===Ce&&Me===Le}}return!1}e.childIsUnindentedBranchOfConditionalExpression=O;function H(ie,ve,Le,He){if(T_(ie)){if(!ie.arguments)return!1;let Ee=vn(ie.arguments,At=>At.pos===ve.pos);if(!Ee)return!1;let Ce=ie.arguments.indexOf(Ee);if(Ce===0)return!1;let Me=ie.arguments[Ce-1],Fe=Es(He,Me.getEnd()).line;if(Le===Fe)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=H;function K(ie,ve){return ie.parent&&V(ie.getStart(ve),ie.getEnd(),ie.parent,ve)}e.getContainingList=K;function Z(ie,ve,Le){return ve&&V(ie,ie,ve,Le)}function V(ie,ve,Le,He){switch(Le.kind){case 183:return Ee(Le.typeArguments);case 210:return Ee(Le.properties);case 209:return Ee(Le.elements);case 187:return Ee(Le.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Ee(Le.typeParameters)||Ee(Le.parameters);case 177:return Ee(Le.parameters);case 263:case 231:case 264:case 265:case 352:return Ee(Le.typeParameters);case 214:case 213:return Ee(Le.typeArguments)||Ee(Le.arguments);case 261:return Ee(Le.declarations);case 275:case 279:return Ee(Le.elements);case 206:case 207:return Ee(Le.elements)}function Ee(Ce){return Ce&&nO(ue(Le,Ce,He),ie,ve)?Ce:void 0}}function ue(ie,ve,Le){let He=ie.getChildren(Le);for(let Ee=1;Ee=0&&ve=0;Me--){if(ie[Me].kind===28)continue;if(Le.getLineAndCharacterOfPosition(ie[Me].end).line!==Ce.line)return ye(Ce,Le,He);Ce=R(ie[Me],Le)}return-1}function ye(ie,ve,Le){let He=ve.getPositionOfLineAndCharacter(ie.line,0);return Y(He,He+ie.character,ve,Le)}function $(ie,ve,Le,He){let Ee=0,Ce=0;for(let Me=ie;MeV_e,FormattingRequestKind:()=>G_e,RuleAction:()=>U_e,RuleFlags:()=>H_e,SmartIndenter:()=>V_,anyContext:()=>k9,createTextRangeWithKind:()=>KQ,formatDocument:()=>got,formatNodeGivenIndentation:()=>Aot,formatOnClosingCurly:()=>hot,formatOnEnter:()=>fot,formatOnOpeningCurly:()=>_ot,formatOnSemicolon:()=>mot,formatSelection:()=>vot,getAllRules:()=>Ske,getFormatContext:()=>iot,getFormattingScanner:()=>j_e,getIndentationString:()=>ihe,getRangeOfEnclosingComment:()=>Jke});var o4=A({"src/services/_namespaces/ts.formatting.ts"(){"use strict";Ait(),Iit(),xit(),rot(),pot(),Rot(),Dot()}}),ci=A({"src/services/_namespaces/ts.ts"(){"use strict";ia(),Kw(),wUe(),oHe(),cHe(),ERe(),EHe(),SHe(),CHe(),zHe(),BHe(),VHe(),YHe(),$He(),vXe(),yXe(),SXe(),VXe(),UXe(),xa(),n_e(),__e(),bnt(),Int(),Vnt(),HRe(),p2e(),crt(),grt(),xh(),Irt(),Zrt(),sit(),dit(),Tit(),o4()}});function Cot(){return Yke??(Yke=new vm(Te))}function Kke(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+=`'${e}' `,s+=i?`has been deprecated since v${i}`:"is deprecated",s+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",s+=o?` ${ag(o,[e])}`:"",s}function Not(e,t,r,i){let o=Kke(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function Pot(e,t,r,i){let o=!1;return()=>{Xke&&!o&&(C.log.warn(Kke(e,!1,t,r,i)),o=!0)}}function Mot(e,t={}){let r=typeof t.typeScriptVersion=="string"?new vm(t.typeScriptVersion):t.typeScriptVersion??Cot(),i=typeof t.errorAfter=="string"?new vm(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new vm(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new vm(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?Not(e,i,s,t.message):u?Pot(e,i,s,t.message):$a}function Lot(e,t){return function(){return e(),t.apply(this,arguments)}}function ohe(e,t){let r=Mot(t?.name??C.getFunctionName(e),t);return Lot(r,e)}var Xke,Yke,$ke=A({"src/deprecatedCompat/deprecate.ts"(){"use strict";$Q(),Xke=!0}});function YQ(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(let l of Object.keys(i)){let u=+l;!isNaN(u)&&Rs(t,`${u}`)&&(t[u]=ohe(t[u],{...i[u],name:e}))}let o=kot(t,r);return s;function s(...l){let u=o(l),p=u!==void 0?t[u]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function kot(e,t){return r=>{for(let i=0;Rs(e,`${i}`)&&Rs(t,`${i}`);i++){let o=t[i];if(o(r))return i}}}function Qke(e){return{overload:t=>({bind:r=>({finish:()=>YQ(e,t,r),deprecate:i=>({finish:()=>YQ(e,t,r,i)})})})}}var wot=A({"src/deprecatedCompat/deprecations.ts"(){"use strict";$Q(),$ke()}}),Oot=A({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";$Q(),$ke(),Toe(e=>{let t=e.getIdentifierConstructor();Rs(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:ohe(function(){return n0(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Rs(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:ohe(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),$Q=A({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";ia(),wot(),Oot()}}),Fot=A({"src/typingsInstallerCore/_namespaces/ts.ts"(){"use strict";ia(),Kw(),she()}});function Zke(e,t,r,i){try{let o=t2(t,Zr(e,"index.d.ts"),{moduleResolution:2},r);return o.resolvedModule&&o.resolvedModule.resolvedFileName}catch(o){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`);return}}function Wot(e,t,r,i){let o=!1;for(let s=r.length;s>0;){let l=ewe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function ewe(e,t,r,i){let o=r.length-i,s,l=i;for(;s=`${e} install --ignore-scripts ${(l===r.length?r:r.slice(o,o+l)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(s.length<8e3);)l=l-Math.floor(l/2);return{command:s,remaining:i-l}}function twe(e){return`@types/${e}@ts${_e}`}var nwe,rwe,zot=A({"src/typingsInstallerCore/typingsInstaller.ts"(){"use strict";Fot(),she(),nwe={isEnabled:()=>!1,writeLine:$a},rwe=class{constructor(e,t,r,i,o,s=nwe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=o,this.log=s,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{let t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});let r={kind:zF,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:C.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:rP,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${D0(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=B_.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){let{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=Em(li(t),u=>{if(this.installTypingHost.fileExists(Zr(u,"package.json")))return u})||o;if(l)this.installWorker(-1,[r],l,u=>{let p=u?`Package ${r} installed.`:`There was an error installing ${r}.`,g={kind:Jw,projectName:i,id:s,success:u,message:p};this.sendResponse(g)});else{let u={kind:Jw,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){let e=B_.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=B_.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let t=Zr(e,"package.json"),r=Zr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){let i=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${D0(i)}`),this.log.writeLine(`Loaded content of '${r}':${D0(o)}`)),i.devDependencies&&o.dependencies)for(let s in i.devDependencies){if(!Rs(o.dependencies,s))continue;let l=rc(s);if(!l)continue;let u=Zke(e,l,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(l);continue}let p=this.packageNameToTypingLocation.get(l);if(p){if(p.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${u}' conflicts with existing typing file '${p}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${u}'`);let g=C8(o.dependencies,s),m=g&&g.version;if(!m)continue;let b={typingLocation:u,version:new vm(m)};this.packageNameToTypingLocation.set(l,b)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Vi(e,t=>{let r=r2(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}let i=B_.validatePackageName(t);if(i!==B_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(B_.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&B_.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){let t=Zr(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);let o=this.filterTypings(i);if(o.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);let s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:BF,eventId:s,typingsInstallerVersion:Te,projectName:e.projectName});let l=o.map(twe);this.installTypingsAsync(s,l,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(let g of o)this.missingTypingsSet.add(g);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);let p=[];for(let g of o){let m=Zke(t,g,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(g);continue}let b=this.typesRegistry.get(g),T=new vm(b[`ts${_e}`]||b[this.latestDistTag]),I={typingLocation:m,version:T};this.packageNameToTypingLocation.set(g,I),p.push(m)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(p)}`),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{let p={kind:GF,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Te};this.sendResponse(p)}})}ensureDirectoryExists(e,t){let r=li(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let r=this.projectWatchers.get(e),i=new Set(t);!r||mh(i,o=>!r.has(o))||mh(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:rP,projectName:e,files:t})):this.sendResponse({kind:rP,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Hw}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),ahe={};X(ahe,{TypingsInstaller:()=>rwe,getNpmCommandForInstallation:()=>ewe,installNpmPackages:()=>Wot,typingsName:()=>twe});var Bot=A({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){"use strict";zot()}}),she=A({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){"use strict";VF(),Bot()}}),Got=A({"src/server/types.ts"(){"use strict"}});function lhe(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function pl(e){return va(e)}function a4(e,t,r){let i=dp(e)?e:bo(e,t);return r(i)}function iwe(e){return e}function owe(){let e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function che(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function uhe(e){return`/dev/null/inferredProject${e}*`}function dhe(e){return`/dev/null/autoImportProviderProject${e}*`}function phe(e){return`/dev/null/auxiliaryProject${e}*`}function fhe(){return[]}var QQ,hc,ZQ,ny,Vot=A({"src/server/utilitiesPublic.ts"(){"use strict";lb(),QQ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(QQ||{}),hc=fhe(),ZQ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(ZQ||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(o,s){throw new Error(`Project '${s.getProjectName()}' does not contain document '${o}'`)}e.ThrowProjectDoesNotContainDocument=i})(ny||(ny={}))}});function eZ(e){let t=rc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function awe(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}let i=xv(e,t,el,r);i>=0&&e.splice(i,1)}var tZ,nZ,jot=A({"src/server/utilities.ts"(){"use strict";lb(),sT(),tZ=class EWe{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){let o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(EWe.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){let r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){var o,s;(o=rd)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=rd)==null||s.logStopScheduledOperation()}},nZ=class SWe{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(SWe.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=rd)==null||r.logStartScheduledOperation("GC collect");let o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){let l=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${s}, after ${l}`)}(i=rd)==null||i.logStopScheduledOperation()}}}}),rZ,mhe,_he,hhe,ghe,vhe,yhe,bhe,Ehe,She,The,Ahe,Ihe,xhe,Rhe=A({"src/server/protocol.ts"(){"use strict";rZ=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(rZ||{}),mhe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(mhe||{}),_he=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(_he||{}),hhe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(hhe||{}),ghe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(ghe||{}),vhe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(vhe||{}),yhe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(yhe||{}),bhe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(bhe||{}),Ehe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(Ehe||{}),She=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(She||{}),The=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(The||{}),Ahe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Ahe||{}),Ihe=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(Ihe||{}),xhe=(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))(xhe||{})}}),Dhe={};X(Dhe,{ClassificationType:()=>xhe,CommandTypes:()=>rZ,CompletionTriggerKind:()=>vhe,IndentStyle:()=>yhe,JsxEmit:()=>Ehe,ModuleKind:()=>She,ModuleResolutionKind:()=>The,NewLineKind:()=>Ahe,OrganizeImportsMode:()=>mhe,PollingWatchKind:()=>ghe,ScriptTarget:()=>Ihe,SemicolonPreference:()=>bhe,WatchDirectoryKind:()=>hhe,WatchFileKind:()=>_he});var Uot=A({"src/server/_namespaces/ts.server.protocol.ts"(){"use strict";Rhe()}});function s4(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&rc(e)[0]==="^"||e.includes(":^")&&!e.includes(il)}function swe(e){return!e||c4(e)?ny.ThrowNoProject():e}function Hot(e){C.assert(typeof e=="number",`Expected position ${e} to be a number.`),C.assert(e>=0,"Expected position to be non-negative.")}function qot(e){C.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),C.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),C.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),C.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var iZ,oZ,Jot=A({"src/server/scriptInfo.ts"(){"use strict";lb(),sT(),iZ=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return C.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=v2(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=UF.fromString(C.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let r=this.getLineMap(),i=r[e],o=e+1t===void 0?t=this.host.readFile(r)||"":t;if(!UA(this.info.fileName)){let o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>U9)return C.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${o}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,o),{text:"",fileSize:o}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=rz.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=rz.fromString(C.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(C.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return C.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=TA(C.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};let t=this.getLineMap();return Vq(this.text,t)}},oZ=class{constructor(e,t,r,i,o,s){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=o,this.containingProjects=[],this.isDynamic=s4(t),this.textStorage=new iZ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||K3(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){C.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return wr(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Mx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){k0(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!B2(e)&&e.addMissingFileRoot(t.fileName)}Gi(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return ny.ThrowNoProject();case 1:return swe(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s!e.isOrphan())}isContainedByBackgroundProject(){return Et(this.containingProjects,c4)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){Hot(e);let t=this.textStorage.positionToLineOffset(e);return qot(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!wo(this.sourceMapFilePath)&&(Cf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function lwe(e,t){if(e===t||(e||hc).length===0&&(t||hc).length===0)return!0;let r=new Map,i=0;for(let o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(let o of t){let s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function Kot(e,t){return e.enable!==t.enable||!lwe(e.include,t.include)||!lwe(e.exclude,t.exclude)}function Xot(e,t){return qy(e)!==qy(t)}function Yot(e,t){return e===t?!1:!Jm(e,t)}var B9,aZ,$ot=A({"src/server/typingsCache.ts"(){"use strict";lb(),sT(),B9={isKnownTypesPackageName:Km,installPackage:Ko,enqueueInstallTypingsRequest:$a,attach:$a,onProjectClosed:$a,globalTypingsCacheLocation:void 0},aZ=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,r){let i=e.getTypeAcquisition();if(!i||!i.enable)return;let o=this.perProjectCache.get(e.getProjectName());(r||!o||Kot(i,o.typeAcquisition)||Xot(e.getCompilationSettings(),o.compilerOptions)||Yot(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:hc,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){let s=nS(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?hc:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function l4(e,t=!1){let r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let i of e){let o=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=o;break;case 2:r.jsx+=1,r.jsxSize+=o;break;case 3:Su(i.fileName)?(r.dts+=1,r.dtsSize+=o):(r.ts+=1,r.tsSize+=o);break;case 4:r.tsx+=1,r.tsxSize+=o;break;case 7:r.deferred+=1,r.deferredSize+=o;break}}return r}function Qot(e){let t=l4(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function Che(e){let t=l4(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function Nhe(e){let t=l4(e.getScriptInfos());return t.ts===0&&t.tsx===0}function Phe(e){return!e.some(t=>Tl(t,".ts")&&!Su(t)||Tl(t,".tsx"))}function Mhe(e){return e.generatedFilePath!==void 0}function Zot(e,t){var r,i;let o=e.getSourceFiles();(r=lr)==null||r.push(lr.Phase.Session,"getUnresolvedImports",{count:o.length});let s=e.getTypeChecker().getAmbientModules().map(u=>em(u.getName())),l=XD(Zi(o,u=>eat(e,u,s,t)));return(i=lr)==null||i.pop(),l}function eat(e,t,r,i){return mA(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!QC(s.extension))&&!Yc(l)&&!r.some(u=>u===l)&&(o=In(o,Ew(l).packageName))},t),o||hc})}function B2(e){return e.projectKind===0}function k0(e){return e.projectKind===1}function sZ(e){return e.projectKind===2}function c4(e){return e.projectKind===3||e.projectKind===4}var CP,aT,lZ,cZ,uZ,dZ,pZ,G9,tat=A({"src/server/project.ts"(){"use strict";lb(),lb(),sT(),CP=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(CP||{}),aT=class TWe{constructor(t,r,i,o,s,l,u,p,g,m,b){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=u,this.compileOnSaveEnabled=p,this.watchOptions=g,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=Km,this.dirty=!1,this.typingFiles=hc,this.moduleSpecifierCache=Uhe(this),this.createHash=oa(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=B_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=m,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(b),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new BY(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||qy(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=o9(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:C.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let T=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=I=>this.writeLog(I):T.trace&&(this.trace=I=>T.trace(I)),this.realpath=oa(T,T.realpath),this.resolutionCache=XJ(this,this.currentDirectory,!0),this.languageService=Tpe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),c4(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return Gp(this),Nhe(this)}isJsOnlyProject(){return Gp(this),Qot(this)}static resolveModule(t,r,i,o){return TWe.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){C.assertIsDefined(i.require);let s,l;for(let u of r){let p=Mu(i.resolvePath(Zr(u,"node_modules")));o(`Loading ${t.name} from ${u} (resolved to ${p})`);let g=i.require(p,t.name);if(!g.error){l=g.module;break}let m=g.error.stack||g.error.message||JSON.stringify(g.error);(s??(s=[])).push(`Failed to load module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){C.assertIsDefined(i.importPlugin);let s,l;for(let u of r){let p=Zr(u,"node_modules");o(`Dynamically importing ${t.name} from ${u} (resolved to ${p})`);let g;try{g=await i.importPlugin(p,t.name)}catch(b){g={module:void 0,error:b}}if(!g.error){l=g.module;break}let m=g.error.stack||g.error.message||JSON.stringify(g.error);(s??(s=[])).push(`Failed to dynamically import module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=TU(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return et;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Jr(t,this.typingFiles)||et}getOrCreateScriptInfoAndAttachToProject(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){let i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){let r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=li(va(this.projectService.getExecutingFilePath()));return Zr(t,QM(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,o,s){return this.directoryStructureHost.readDirectory(t,r,i,o,s)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){let r=this.toPath(t);return!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,o,s,l){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,o,s,l)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l)}resolveLibrary(t,r,i,o){return this.resolutionCache.resolveLibrary(t,r,i,o)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return rl(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),kc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),kc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),kc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return tr(this.projectErrors,t=>!t.file)||hc}getAllProjectErrors(){return this.projectErrors||hc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Gp(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(Gp(this),this.builderState=Pm.create(this.program,this.builderState,!0),Vi(Pm.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:hc};let{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let l of s){let u=bo(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&xf(this.compilerOptions)){let l=s.filter(u=>Su(u.name));if(l.length===1){let u=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):nC(l[0].text);Pm.updateSignatureOfFile(this.builderState,p,u.resolvedPath)}}}return{emitSkipped:i,diagnostics:o}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(C.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return nS(Zi(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){let r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),Ke(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(let r of this.rootFiles)r.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(ep(this.missingFilesMap,$m),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){let r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Ft(this.program.getSourceFiles(),t=>{let r=this.projectService.getScriptInfoForPath(t.resolvedPath);return C.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return hc}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){let s=Ape(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}let i=[];for(let o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){let o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(let s of o.extendedSourceFiles)i.push(s)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){let r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(let i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r;return this.rootFilesMap&&((r=this.rootFilesMap.get(t.path))==null?void 0:r.info)===t}addRoot(t,r){C.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){Gp(this)}updateGraph(){var t,r,i,o,s;(t=lr)==null||t.push(lr.Phase.Session,"updateGraph",{name:this.projectName,kind:CP[this.projectKind]}),(r=rd)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();let l=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||hc;for(let m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=Zot(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;let g=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),g&&this.getPackageJsonAutoImportProvider(),(o=rd)==null||o.logStopUpdateGraph(),(s=lr)==null||s.pop(),!l}updateTypingFiles(t){F8(t,this.typingFiles,Nx(!this.useCaseSensitiveFileNames()),$a,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&ep(this.typingWatchers,$m),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:qw})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(o,s)=>{let l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),kc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Tl(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(Pg(u,Zr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),kc.TypingInstallerLocationDirectory,this))};for(let o of t){let s=rc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(ym(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){let l=o.indexOf(il,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(ym(this.projectService.typingsInstaller.globalTypingsCacheLocation,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(o,"DirectoryWatcher")}r.forEach((o,s)=>{o.close(),this.typingWatchers.delete(s)})}getCurrentProgram(){return this.program}removeExistingTypings(t){let r=M5(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;let i=this.languageService.getCurrentProgram();C.assert(i===this.program),C.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let o=Ks(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(Km,Km);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=lr)==null||t.push(lr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=lr)==null||r.pop(),C.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,i){for(let m of i.getSourceFiles()){let b=this.program.getSourceFileByPath(m.resolvedPath);(!b||m.resolvedPath===m.path&&b.resolvedPath!==m.path)&&this.detachScriptInfoFromProject(m.fileName,!!this.program.getSourceFileByPath(m.path),!0)}i.forEachResolvedProjectReference(m=>{this.program.getResolvedProjectReferenceByPath(m.sourceFile.path)||this.detachScriptInfoFromProject(m.sourceFile.fileName,void 0,!0)})}if(hJ(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,b)=>this.addMissingFileWatcher(m,b)),this.generatedFilesMap){let m=Ps(this.compilerOptions);Mhe(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(Td(m)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():m?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((b,T)=>{let I=this.program.getSourceFileByPath(T);(!I||I.resolvedPath!==T||!this.isValidGeneratedFileWatcher(y3(I.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),b))&&(Cf(b),this.generatedFilesMap.delete(T))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&mh(this.changedFilesForExportMapCache,m=>{let b=i.getSourceFileByPath(m),T=this.program.getSourceFileByPath(m);return!b||!T?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(b,T,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let p=this.externalFiles||hc;this.externalFiles=this.getExternalFiles(),F8(this.externalFiles,p,Nx(!this.useCaseSensitiveFileNames()),m=>{let b=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);b?.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));let g=Ks()-o;return this.sendPerformanceEvent("UpdateGraph",g),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${J8[this.program.structureIsReused]}`:""} Elapsed: ${g}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),u}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){let o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(k0(this)){let s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return f2}let o=this.projectService.watchFactory.watchFile(bo(r,this.currentDirectory),(s,l)=>{k0(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),kc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(Ps(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(r);if(this.generatedFilesMap){if(Mhe(this.generatedFilesMap)){C.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),kc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Mhe(this.generatedFilesMap)?Cf(this.generatedFilesMap):ep(this.generatedFilesMap,Cf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?ny.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending +`;if(!this.program)return` Files (0) NoProgram +`;let o=this.program.getSourceFiles(),s=` Files (${o.length}) +`;if(t){for(let l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""} +`;r&&(s+=` + +`,QJ(this.program,l=>s+=` ${l} +`))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${CP[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(o=this.noDtsResolutionProject)==null||o.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;let i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),M6(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,o;let s=r?p=>Vo(p.entries(),([g,m])=>({fileName:g,isSourceOfProjectReferenceRedirect:m})):p=>Vo(p.keys());this.isInitialLoadPending()||Gp(this);let l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:B2(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:l,projectErrors:this.getGlobalProjectErrors()};let p=this.lastReportedFileNames,g=((i=this.externalFiles)==null?void 0:i.map(M=>({fileName:pl(M),isSourceOfProjectReferenceRedirect:!1})))||hc,m=g1(this.getFileNamesWithRedirectInfo(!!r).concat(g),M=>M.fileName,M=>M.isSourceOfProjectReferenceRedirect),b=new Map,T=new Map,I=u?Vo(u.keys()):[],R=[];return Bc(m,(M,N)=>{p.has(N)?r&&M!==p.get(N)&&R.push({fileName:N,isSourceOfProjectReferenceRedirect:M}):b.set(N,M)}),Bc(p,(M,N)=>{m.has(N)||T.set(N,M)}),this.lastReportedFileNames=m,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(b),removed:s(T),updated:r?I.map(M=>({fileName:M,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(M)})):I,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let p=this.getFileNamesWithRedirectInfo(!!r),g=((o=this.externalFiles)==null?void 0:o.map(b=>({fileName:pl(b),isSourceOfProjectReferenceRedirect:!1})))||hc,m=p.concat(g);return this.lastReportedFileNames=g1(m,b=>b.fileName,b=>b.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?m:m.map(b=>b.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){Mx(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Zr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();for(let o of this.projectService.globalPlugins)o&&(t.plugins&&t.plugins.some(s=>s.name===o)||(this.projectService.logger.info(`Loading global plugin ${o}`),this.enablePlugin({name:o,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}let i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:Nwe}),s=o.create(i);for(let l of Object.keys(this.languageService))l in s||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${l} in created LS. Patching.`),s[l]=this.languageService[l]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=s,this.plugins.push({name:r.name,module:o})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?hc:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Zr(this.currentDirectory,u2),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=WX(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||vO(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Gp(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let o=this.includePackageJsonAutoImports();if(o){(t=lr)==null||t.push(lr.Phase.Session,"getPackageJsonAutoImportProvider");let s=Ks();if(this.autoImportProviderHost=dZ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Gp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Ks()-s),(r=lr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=lr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Bc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(pl(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return C.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new cZ(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0}}},lZ=class extends aT{constructor(e,t,r,i,o,s,l){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,i,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=l,this.projectRootPath=o&&e.toCanonicalFileName(o),!o&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=ZK(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){C.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Jn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Ke(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Che(this),include:et,exclude:et}}},cZ=class extends aT{constructor(e,t,r,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},uZ=class z0e extends aT{constructor(t,r,i,o){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,o,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=oa(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=oa(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return et;let u=r.getCurrentProgram();if(!u)return et;let p=Ks(),g,m,b=Zr(r.currentDirectory,u2),T=r.getPackageJsonsForAutoImport(Zr(r.currentDirectory,b));for(let N of T)(s=N.dependencies)==null||s.forEach((O,H)=>R(H)),(l=N.peerDependencies)==null||l.forEach((O,H)=>R(H));let I=0;if(g){let N=r.getSymlinkCache();for(let O of Vo(g.keys())){if(t===2&&I>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),et;let H=vq(O,r.currentDirectory,o,i,u.getModuleResolutionCache());if(H){let Z=M(H,u,N);if(Z){m=xo(m,Z),I+=Z.length?1:0;continue}}if(!Ke([r.currentDirectory,r.getGlobalTypingsCacheLocation()],Z=>{if(Z){let V=vq(`@types/${O}`,Z,o,i,u.getModuleResolutionCache());if(V){let ue=M(V,u,N);return m=xo(m,ue),I+=ue?.length?1:0,!0}}})&&H&&o.allowJs&&o.maxNodeModuleJsDepth){let Z=M(H,u,N,!0);m=xo(m,Z),I+=Z?.length?1:0}}}return m?.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${I} dependencies in ${Ks()-p} ms`),m||et;function R(N){uo(N,"@types/")||(g||(g=new Set)).add(N)}function M(N,O,H,K){var Z;let V=Iq(N,o,i,O.getModuleResolutionCache(),K);if(V){let ue=(Z=i.realpath)==null?void 0:Z.call(i,N.packageDirectory),G=ue?r.toPath(ue):void 0,ne=G&&G!==r.toPath(N.packageDirectory);return ne&&H.setSymlinkedDirectory(N.packageDirectory,{real:zc(ue),realPath:zc(G)}),Vi(V,he=>{let ye=ne?he.replace(N.packageDirectory,ue):he;if(!O.getSourceFile(ye)&&!(ne&&O.getSourceFile(he)))return ye})}}}static create(t,r,i,o){if(t===0)return;let s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(l.length)return new z0e(r,l,o,s)}isEmpty(){return!Et(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=z0e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||et}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},uZ.maxDependencies=10,uZ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0},dZ=uZ,pZ=class extends aT{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,li(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Dv,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=va(e),r=this.projectService.toCanonicalFileName(t),i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(va(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){let e=this.isInitialLoadPending();this.isInitialLoadPending=Km;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let i=C.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){C.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){let t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let o=li(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(let o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return tr(this.projectErrors,e=>!e.file)||hc}getAllProjectErrors(){return this.projectErrors||hc}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return V2(this,e.path,t=>zI(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;let t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&Bc(t.openFilesImpactedByConfigFile,(r,i)=>{let o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!V2(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return FN(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){E5(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},G9=class extends aT{constructor(e,t,r,i,o,s,l,u){super(e,2,t,r,!0,o,i,s,u,t.host,li(l||Mu(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function cwe(e){let t=new Map;for(let r of e)if(typeof r.type=="object"){let i=r.type;i.forEach(o=>{C.assert(typeof o=="number")}),t.set(r.name,i)}return t}function G2(e){return wo(e.indentStyle)&&(e.indentStyle=gwe.get(e.indentStyle.toLowerCase()),C.assert(e.indentStyle!==void 0)),e}function V9(e){return _we.forEach((t,r)=>{let i=e[r];wo(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function u4(e,t){let r,i;return QR.forEach(o=>{let s=e[o.name];if(s===void 0)return;let l=hwe.get(o.name);(r||(r={}))[o.name]=l?wo(s)?l.get(s.toLowerCase()):s:HS(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function Lhe(e){let t;return mw.forEach(r=>{let i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function fZ(e){return wo(e)?mZ(e):e}function mZ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function khe(e){let{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function uwe(e,t){for(let r of t)if(r.getProjectName()===e)return r}function _Z(e){return!!e.containingProjects}function dwe(e){return!!e.configFileInfo}function V2(e,t,r,i,o){var s;let l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let u,p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){let m=pl(p.sourceFile.fileName),b=e.projectService.findConfiguredProjectByProjectName(m);if(b){let T=r(b);if(T)return T}else if(i!==0){u=new Map;let T=whe(l,e.getCompilerOptions(),(I,R)=>p===I?g(I,R):void 0,i,e.projectService,u);if(T)return T;u.clear()}}return whe(l,e.getCompilerOptions(),(m,b)=>p!==m?g(m,b):void 0,i,e.projectService,u);function g(m,b){let T=pl(m.sourceFile.fileName),I=e.projectService.findConfiguredProjectByProjectName(T)||(b===0?void 0:b===1?e.projectService.createConfiguredProject(T):b===2?e.projectService.createAndLoadConfiguredProject(T,o):C.assertNever(b));return I&&r(I)}}function whe(e,t,r,i,o,s){let l=t.disableReferencedProjectLoad?0:i;return Ke(e,u=>{if(!u)return;let p=pl(u.sourceFile.fileName),g=o.toCanonicalFileName(p),m=s?.get(g);if(m!==void 0&&m>=l)return;let b=r(u,l);return b||((s||(s=new Map)).set(g,l),u.references&&whe(u.references,u.commandLine.options,r,l,o,s))})}function pwe(e,t){return e.potentialProjectReferences&&mh(e.potentialProjectReferences,t)}function nat(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?pwe(e,i):Ke(e.getProjectReferences(),r)}function Ohe(e,t,r){let i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function fwe(e,t){return nat(e,r=>Ohe(e,t,r.sourceFile.path),r=>Ohe(e,t,e.toPath(c2(r))),r=>Ohe(e,t,r))}function rat(e,t){return`${wo(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function mwe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function zI(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function Gp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function Fhe(e){k0(e)&&(e.projectOptions=!0)}function Whe(e){let t=1;return()=>e(t++)}function zhe(){return{idToCallbacks:new Map,pathToId:new Map}}function iat(e,t){if(!t||!e.eventHandler||!e.session)return;let r=zhe(),i=zhe(),o=zhe(),s=1;return e.session.addProtocolHandler("watchChange",I=>(g(I.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(I,R){return p(r,I,R,M=>({eventName:$9,data:{id:M,path:I}}))}function u(I,R,M){return p(M?o:i,I,R,N=>({eventName:Q9,data:{id:N,path:I,recursive:!!M,ignoreUpdate:I.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:I,idToCallbacks:R},M,N,O){let H=e.toPath(M),K=I.get(H);K||I.set(H,K=s++);let Z=R.get(K);return Z||(R.set(K,Z=new Set),e.eventHandler(O(K))),Z.add(N),{close(){let V=R.get(K);V?.delete(N)&&(V.size||(R.delete(K),I.delete(H),e.eventHandler({eventName:Z9,data:{id:K}})))}}}function g(I){Do(I)?I.forEach(m):m(I)}function m({id:I,created:R,deleted:M,updated:N}){b(I,R,0),b(I,M,2),b(I,N,1)}function b(I,R,M){R?.length&&(T(r,I,R,(N,O)=>N(O,M)),T(i,I,R,(N,O)=>N(O)),T(o,I,R,(N,O)=>N(O)))}function T(I,R,M,N){var O;(O=I.idToCallbacks.get(R))==null||O.forEach(H=>{M.forEach(K=>N(H,Mu(K)))})}}function oat(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Bhe(e){return e.kind!==void 0}function Ghe(e){e.print(!1,!1,!1)}var j9,U9,d4,H9,q9,J9,K9,X9,Y9,hZ,$9,Q9,Z9,Vhe,_we,hwe,gwe,gZ,ez,tz,vZ,yZ,jhe,bZ,aat=A({"src/server/editorServices.ts"(){"use strict";lb(),sT(),Rhe(),j9=20*1024*1024,U9=4*1024*1024,d4="projectsUpdatedInBackground",H9="projectLoadingStart",q9="projectLoadingFinish",J9="largeFileReferenced",K9="configFileDiag",X9="projectLanguageServiceState",Y9="projectInfo",hZ="openFileInfo",$9="createFileWatcher",Q9="createDirectoryWatcher",Z9="closeFileWatcher",Vhe="*ensureProjectForOpenFiles*",_we=cwe(ug),hwe=cwe(QR),gwe=new Map(Object.entries({none:0,block:1,smart:2})),gZ={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},ez={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){let i=Wx(e);i&&Et(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>Et(t,r=>r.isMixedContent&&Tl(e,r.extension))},tz={getFileName:e=>e.fileName,getScriptKind:e=>fZ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},vZ={close:$a},yZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(yZ||{}),jhe=class B0e{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Whe(uhe),this.newAutoImportProviderProjectName=Whe(dhe),this.newAuxiliaryProjectName=Whe(phe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=gZ,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=$a,this.verifyDocumentRegistry=$a,this.verifyProgram=$a,this.onProjectCreation=$a;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||B9,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||hc,this.pluginProbeLocations=t.pluginProbeLocations||hc,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Zr(li(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Xp()),this.currentDirectory=pl(this.host.getCurrentDirectory()),this.toCanonicalFileName=Pu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?zc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new tZ(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new aZ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:jF(this.host.newLine),preferences:Pf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=HX(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):$a;this.packageJsonCache=Hhe(this),this.watchFactory=this.serverMode!==0?{watchFile:m2,watchDirectory:m2}:gJ(iat(this,t.canUseWatchEvents)||this.host,i,o,rat),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return rl(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return bo(t,this.host.getCurrentDirectory())}setDocument(t,r,i){let o=C.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){let i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;let i={eventName:X9,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let r=JSON.parse(t);for(let i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(let i in r.simpleMap)Rs(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=gZ,this.legacySafelist.clear()}}updateTypingsForProject(t){let r=this.findProject(t.projectName);if(r)switch(t.kind){case Hw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case qw:this.typingsCache.enqueueInstallTypingsForProject(r,r.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(Vhe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),c4(t))return;let r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&Gp(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:d4,data:{openFiles:Vo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;let i={eventName:J9,data:{file:t,fileSize:r,maxFileSize:U9}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:H9,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let r={eventName:q9,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(let i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){C.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=V9(t),o=u4(t,r),s=Lhe(t);i.allowNonTsExtensions=!0;let l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(let u of this.inferredProjects)(l?u.projectRootPath===l:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(s),u.setWatchOptions(o?.watchOptions),u.setProjectErrors(o?.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return che(t)?uwe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(pl(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){let r=wo(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let r=wo(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(wo(t)?t:t.fileName),ny.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let r=i=>{t=Gp(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){r===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(wo(t.sourceMapFilePath)){let r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r&&r.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){let r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);let r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){let i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,u=>{let p=this.toPath(u),g=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(u,p);if(rc(p)==="package.json"&&!vO(p)&&(g&&g.fileExists||!g&&this.host.fileExists(u))){let b=this.getNormalizedAbsolutePath(u);this.logger.info(`Config: ${i} Detected new package.json: ${b}`),this.packageJsonCache.addOrUpdate(b,p),this.watchPackageJsonFile(b,p,l)}let m=this.findConfiguredProjectByProjectName(i);ww({watchedDirPath:this.toPath(t),fileOrDirectory:u,fileOrDirectoryPath:p,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:m?.getCurrentProgram()||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:b=>this.logger.info(b),toPath:b=>this.toPath(b),getScriptKind:m?b=>m.getScriptKind(b):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((b,T)=>{if(!b)return;let I=this.getConfiguredProjectByCanonicalConfigFilePath(T);if(!I)return;let R=m===I?1:0;if(!(I.pendingUpdateLevel!==void 0&&I.pendingUpdateLevel>R))if(this.openFiles.has(p))if(C.checkDefined(this.getScriptInfoForPath(p)).isAttached(I)){let N=Math.max(R,I.openFileWatchTriggered.get(p)||0);I.openFileWatchTriggered.set(p,N)}else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I);else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),kc.WildcardDirectory,i),l={packageJsonWatches:void 0,close(){var u;s&&(s.close(),s=void 0,(u=l.packageJsonWatches)==null||u.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{let u=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(u)if(o=!0,l===t){if(u.isInitialLoadPending())return;u.pendingUpdateLevel=2,u.pendingUpdateReason=r,this.delayUpdateProjectGraph(u)}else u.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(u)}),o}onConfigFileChanged(t,r){var i;let o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;let s=(i=o.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;s&&this.removeProject(s)}else o.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(o.openFilesImpactedByConfigFile,!1,!0,r!==2?el:Dv,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),C.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>C.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Vo(tS(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(o=>o.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:vA(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:vA(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){C.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:li(dp(t.fileName)?t.fileName:bo(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(Mx(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(let o of this.inferredProjects){if(o===i||o.isOrphan())continue;let s=o.getRootScriptInfos();C.assert(s.length===1||!!o.projectRootPath),s.length===1&&Ke(s[0].containingProjects,l=>l!==s[0].containingProjects[0]&&!l.isOrphan())&&o.removeFile(s[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){let i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);let o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(let l of t.containingProjects){if(k0(l)){t.hasMixedContent&&t.registerFileUpdate();let u=l.openFileWatchTriggered.get(t.path);u!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevelthis.onConfigFileChanged(r,g),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),kc.ConfigFile,i));let u=l.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&Bc(t.openFilesImpactedByConfigFile,el)}releaseParsedConfig(t,r){var i,o,s;let l=this.configFileExistenceInfoCache.get(t);(i=l.config)!=null&&i.projects.delete(r.canonicalConfigFilePath)&&((o=l.config)!=null&&o.projects.size||(l.config=void 0,_J(t,this.sharedExtendedConfigFileWatchers),C.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?xF(Wc(li(t)))||(l.watcher.close(),l.watcher=vZ):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){C.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;let l=this.configFileExistenceInfoCache.get(r);if(l){let u=(i=l.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(o=l.openFilesImpactedByConfigFile)==null||o.delete(t.path),u&&this.closeConfigFileWatcherOnReleaseOfOpenFile(l),!((s=l.openFilesImpactedByConfigFile)!=null&&s.size)&&!l.config&&(C.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){C.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o||(o={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile||(o.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),o.watcher||(o.watcher=xF(Wc(li(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,kc.ConfigFileForInferredRoot):vZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;let o=this.configFileExistenceInfoCache.get(r);(i=o?.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(C.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;C.assert(!_Z(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(C.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=li(t.fileName),l=()=>ym(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l(),p=!dwe(t);do{if(p){let m=a4(s,this.currentDirectory,this.toCanonicalFileName),b=Zr(s,"tsconfig.json"),T=r(Zr(m,"tsconfig.json"),b);if(T)return b;let I=Zr(s,"jsconfig.json");if(T=r(Zr(m,"jsconfig.json"),I),T)return I;if(a6(m))break}let g=li(s);if(g===s)break;s=g,p=!0}while(u||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;let r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&zI(i,t)?i:i?.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!dwe(t)){let i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${li(t.fileName)}`);let r=this.forEachConfigFileLocation(t,(i,o)=>this.configFileExists(o,i,t));return r?this.logger.info(`For info: ${t.fileName} :: Config file name: ${r}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),_Z(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Ghe),this.configuredProjects.forEach(Ghe),this.inferredProjects.forEach(Ghe),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(o=>o.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){let r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return uwe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=j9;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>s-=u||0);let l=0;for(let u of i){let p=o.getFileName(u);if(!UA(p)&&(l+=this.host.getFileSize(p),l>j9||l>s)){let g=i.map(m=>o.getFileName(m)).filter(m=>!UA(m)).map(m=>({name:m,size:this.host.getFileSize(m)})).sort((m,b)=>b.size-m.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${g.map(m=>`${m.name}:${m.size}`).join(", ")}`),p}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){let l=V9(i),u=u4(i,li(Mu(t))),p=new G9(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,tz),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u?.watchOptions);return p.setProjectErrors(u?.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,tz,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){Fhe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){Fhe(t);return}let r=k0(t)?t.projectOptions:void 0;Fhe(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:l4(t.getScriptInfos(),!0),compilerOptions:Tse(t.getCompilationSettings()),typeAcquisition:s(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:o(),projectType:t instanceof G9?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Te};this.eventHandler({eventName:Y9,data:i});function o(){return k0(t)&&eZ(t.getConfigFilePath())||"other"}function s({enable:l,include:u,exclude:p}){return{enable:l,include:u!==void 0&&u.length!==0,exclude:p!==void 0&&p.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t){var r;(r=lr)==null||r.instant(lr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);let i=this.toCanonicalFileName(t),o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:dF(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let s=new pZ(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){let i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){let i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){let i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=lr)==null||i.push(lr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);let s=va(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=l.config.parsedCommandLine;C.assert(!!u.fileNames);let p=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=LN(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);let g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,u.fileNames,ez);g?(t.disableLanguageService(g),this.configFileExistenceInfoCache.forEach((b,T)=>this.stopWatchingWildCards(T,t))):(t.setCompilerOptions(p),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);let m=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,m,ez,p,u.typeAcquisition,u.compileOnSave,u.watchOptions),(o=lr)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,u;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}let p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||dF(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),g=MN(t,R=>this.host.readFile(R)),m=iw(t,wo(g)?g:""),b=m.parseDiagnostics;wo(g)||b.push(g);let T=lw(m,p,li(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);T.errors.length&&b.push(...T.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:T.fileNames,options:T.options,watchOptions:T.watchOptions,projectReferences:T.projectReferences},void 0," ")}`);let I=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=T,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:T,cachedDirectoryStructureHost:p,projects:new Map},!I&&!$3(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(T.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),pF(r,T.options,this.sharedExtendedConfigFileWatchers,(R,M)=>this.watchFactory.watchFile(R,()=>{var N;fF(this.extendedConfigCache,M,H=>this.toPath(H));let O=!1;(N=this.sharedExtendedConfigFileWatchers.get(M))==null||N.projects.forEach(H=>{O=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(H,`Change in extended config file ${R} detected`)||O}),O&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,kc.ExtendedConfigFile,t),R=>this.toPath(R)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,kw(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(s,l)=>this.watchWildcardDirectory(s,l,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;ep(i.watchedDirectories,Cf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){let i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!Bc(i.config.projects,el)&&(i.config.watchedDirectories&&(ep(i.config.watchedDirectories,Cf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){let o=t.getRootFilesMap(),s=new Map;for(let l of r){let u=i.getFileName(l),p=pl(u),g=s4(p),m;if(!g&&!t.fileExists(u)){m=a4(p,this.currentDirectory,this.toCanonicalFileName);let b=o.get(m);b?(b.info&&(t.removeFile(b.info,!1,!0),b.info=void 0),b.fileName=p):o.set(m,{fileName:p})}else{let b=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),T=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),I=C.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,b,T,t.directoryStructureHost));m=I.path;let R=o.get(m);!R||R.info!==I?(t.addRoot(I,p),I.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(I)):R.fileName=p}s.set(m,!0)}o.size>s.size&&o.forEach((l,u)=>{s.has(u)||(l.info?t.removeFile(l.info,t.fileExists(l.info.fileName),!0):o.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,u){t.setCompilerOptions(o),t.setWatchOptions(u),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){let r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),ez),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;C.assert(r.updateLevel===1);let i=r.parsedCommandLine.options.configFile.configFileSpecs,o=kN(i,li(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,ez)}reloadConfiguredProject(t,r,i,o){let s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();let l=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${l}`),this.loadConfiguredProject(t,r),t.updateGraph(),this.sendConfigFileDiagEvent(t,l)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r){if(!this.eventHandler||this.suppressDiagnosticEvents)return;let i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:K9,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){let o=this.toCanonicalFileName(r);for(let s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(let o of this.inferredProjects)o.projectRootPath&&ym(o.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>o.projectRootPath.length||(i=o));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){C.assert(!this.useSingleInferredProject);let r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){let o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects,s,l;i&&(s=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),l=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),s===void 0&&(s=this.watchOptionsForInferredProjects),l===void 0&&(l=this.typeAcquisitionForInferredProjects),s=s||void 0;let u=new lZ(this,this.documentRegistry,o,s?.watchOptions,i,t,l);return u.setProjectErrors(s?.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(pl(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(pl(t))}getScriptInfoOrConfig(t){let r=pl(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;let o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let r=Vo(this.filenameToScriptInfo.entries(),([i,o])=>({path:i,fileName:o.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. +All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){let o=t.getRealpathIfDifferent();o&&Ke(this.realpathToScriptInfos.get(o),i),Ke(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(let s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?Bc(r,(l,u)=>u===o.path?!1:wr(l,s))||r.add(o.path,s):(r=Xp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(C.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!uo(t.path,this.globalCacheLocationDirectoryPath))){let r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,kc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;let u=IF(this.toPath(s));if(!u)return;let p=rc(u);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(p==="package.json"||p==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(g=>{var m;(m=g.getModuleSpecifierCache())==null||m.clear()}),o.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{let g=this.getScriptInfoForPath(u);g?mwe(g)&&this.refreshScriptInfo(g):EA(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,kc.NodeModules),o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;let o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return C.assert(!((i=s.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(s.affectedModuleSpecifierCacheProjects||(s.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var l;(l=s.affectedModuleSpecifierCacheProjects)==null||l.delete(r),s.close()}}}watchClosedScriptInfoInNodeModules(t){let r=t+"/node_modules",i=this.toPath(r),o=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return o.refreshScriptInfoRefCount++,{close:()=>{o.refreshScriptInfoRefCount--,o.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||kp).getTime()}refreshScriptInfo(t){let r=this.getModifiedTime(t);if(r!==t.mTime){let i=bV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+il,this.filenameToScriptInfo.forEach(r=>{mwe(r)&&uo(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s){if(dp(t)||s4(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);let l=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(l)return l}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,r,i,o,s){return this.getOrCreateScriptInfoWorker(t,r,!0,i,o,s)}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,s,l)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,u){C.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let p=a4(t,r,this.toCanonicalFileName),g=this.getScriptInfoForPath(p);if(!g){let m=s4(t);if(C.assert(dp(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vo(this.openFilesWithNonRootedDiskPath.keys())})} +Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),C.assert(!dp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vo(this.openFilesWithNonRootedDiskPath.keys())})} +Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),C.assert(!m||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vo(this.openFilesWithNonRootedDiskPath.keys())})} +Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!m&&!(u||this.host).fileExists(t))return;g=new oZ(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(g.path,g),this.filenameToScriptInfoVersion.delete(g.path),i?!dp(t)&&(!m||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),g):this.watchClosedScriptInfo(g)}return i&&(this.stopWatchingScriptInfo(g),g.open(o),l&&g.registerFileUpdate()),g}getScriptInfoForNormalizedPath(t){return!dp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(a4(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){let o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),wo(o.sourceMapFilePath)){let m=this.getScriptInfoForPath(o.sourceMapFilePath);if(m&&(m.getSnapshot(),m.documentPositionMapper!==void 0))return m.sourceInfos=this.addSourceInfoToSourceMap(i,t,m.sourceInfos),m.documentPositionMapper?m.documentPositionMapper:void 0;o.sourceMapFilePath=void 0}else if(o.sourceMapFilePath){o.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceMapFilePath.sourceInfos);return}else if(o.sourceMapFilePath!==void 0)return;let s,l,u=(m,b)=>{let T=this.getOrCreateScriptInfoNotOpenedByClient(m,t.currentDirectory,this.host);if(!T){l=b;return}s=T;let I=T.getSnapshot();return T.documentPositionMapper!==void 0?T.documentPositionMapper:v2(I)},p=t.projectName,g=XX({getCanonicalFileName:this.toCanonicalFileName,log:m=>this.logger.info(m),getSourceFileLike:m=>this.getSourceFileLike(m,p,o)},o.fileName,o.textStorage.getLineInfo(),u);return u=void 0,s?(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.documentPositionMapper=g||!1,s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):l?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:bo(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,g}addSourceInfoToSourceMap(t,r,i){if(t){let o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{let o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!wo(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,kc.MissingSourceMapFile)}getSourceFileLike(t,r,i){let o=r.projectName?r:this.findProject(r);if(o){let l=o.toPath(t),u=o.getSourceFile(l);if(u&&u.resolvedPath===l)return u}let s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&wo(i.sourceMapFilePath)&&s!==i){let l=this.getScriptInfoForPath(i.sourceMapFilePath);l&&(l.sourceInfos||(l.sourceInfos=new Set)).add(s.path)}return s.cacheSourceFile?s.cacheSourceFile.sourceFile:(s.sourceFileLike||(s.sourceFileLike={get text(){return C.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{let u=s.positionToLineOffset(l);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(l,u,p)=>s.lineOffsetToPosition(l+1,u+1,p)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){let i=this.getScriptInfoForNormalizedPath(pl(t.file));i&&(i.setOptions(G2(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...G2(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(s=>s.forEach(l=>{!l.isClosed()&&l.hasExternalProjectRef()&&l.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(l.getProjectName())&&l.updateGraph()})),o!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(s=>{s.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(r=u4(t.watchOptions))==null?void 0:r.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||t.fileWatcher&&this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,r)=>{this.throttledOperations.cancel(r),this.pendingProjectUpdates.delete(r)}),this.throttledOperations.cancel(Vhe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Dv,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(t,r,i,o,s){let l=new Map,u=p=>{l.has(p.canonicalConfigFilePath)||(l.set(p.canonicalConfigFilePath,!0),this.reloadConfiguredProject(p,s,!1,r))};t?.forEach((p,g)=>{if(this.configFileForOpenFiles.delete(g),!o(p))return;let m=this.getScriptInfoForPath(g);C.assert(m.isScriptOpen());let b=this.getConfigFileNameForFile(m);if(b){let T=this.findConfiguredProjectByProjectName(b)||this.createConfiguredProject(b);l.has(T.canonicalConfigFilePath)||(l.set(T.canonicalConfigFilePath,!0),i?(T.pendingUpdateLevel=2,T.pendingUpdateReason=s,r&&this.clearSemanticCache(T),this.delayUpdateProjectGraph(T)):(this.reloadConfiguredProject(T,s,!1,r),zI(T,m)||V2(T,m.path,R=>(u(R),zI(R,m)),1)&&V2(T,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){C.assert(t.containingProjects.length>0);let r=t.containingProjects[0];!r.isOrphan()&&B2(r)&&r.isRoot(t)&&Ke(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Gp),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(pl(t),r,i,!1,o?pl(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){let i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;let{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;let u={fileName:pl(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(u);if(!p)return;let g=this.findConfiguredProjectByProjectName(p);if(!g){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l?.containingProjects.length?o:r;g=this.createAndLoadConfiguredProject(p,`Creating project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`)}Gp(g);let m=I=>{let R=this.getScriptInfo(s);return R&&zI(I,R)};if(g.isSolution()||!m(g)){if(g=V2(g,s,I=>(Gp(I),m(I)?I:void 0),2,`Creating project referenced in solution ${g.projectName} to find possible configured project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`),!g)return;if(g===t)return o}T(g);let b=this.getScriptInfo(s);if(!b||!b.containingProjects.length)return;return b.containingProjects.forEach(I=>{k0(I)&&T(I)}),o;function T(I){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(I.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return vn(this.externalProjects,r=>(Gp(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){let l=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,r,i,o);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i,o=this.findExternalProjectContainingOpenScriptInfo(t),s,l,u=!1;return!o&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(o=this.findConfiguredProjectByProjectName(r),o?Gp(o):(o=this.createLoadAndUpdateConfiguredProject(r,`Creating possible configured project for ${t.fileName} to open`),u=!0),l=o.containsScriptInfo(t)?o:void 0,s=o,zI(o,t)||V2(o,t.path,p=>{if(Gp(p),Do(s)?s.push(p):s=[o,p],zI(p,t))return l=p,p;!l&&p.containsScriptInfo(t)&&(l=p)},2,`Creating project referenced in solution ${o.projectName} to find possible configured project for ${t.fileName} to open`),l?(r=l.getConfigFilePath(),(l!==o||u)&&(i=l.getAllProjectErrors(),this.sendConfigFileDiagEvent(l,t.fileName))):r=void 0,this.createAncestorProjects(t,o))),t.containingProjects.forEach(Gp),t.isOrphan()&&(Do(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),C.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),C.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}createAncestorProjects(t,r){if(t.isAttached(r))for(;;){if(!r.isInitialLoadPending()&&(!r.getCompilerOptions().composite||r.getCompilerOptions().disableSolutionSearching))return;let i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;let o=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${r.getProjectName()} of open file ${t.fileName}`);o.isInitialLoadPending()&&o.setPotentialProjectReference(r.canonicalConfigFilePath),r=o}}loadAncestorProjectTree(t){t=t||Rx(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);let r=new Set;for(let i of Vo(this.configuredProjects.values()))pwe(i,o=>t.has(o))&&Gp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Av(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(let l of s){if(!l)continue;let u=NJ(l.references,m=>r.has(m.sourceFile.path)?m:void 0);if(!u)continue;let p=pl(l.sourceFile.fileName),g=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);Gp(g),this.ensureProjectChildren(g,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(let r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){let l=this.getOrCreateOpenScriptInfo(t,r,i,o,s),{retainProjects:u,...p}=this.assignProjectToOpenedScriptInfo(l);return this.cleanupAfterOpeningFile(u),this.telemetryOnOpenFile(l),this.printProjects(),p}removeOrphanConfiguredProjects(t){let r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((u,p)=>{let g=this.getConfiguredProjectByCanonicalConfigFilePath(p);return g&&s(g)})};t&&(Do(t)?t.forEach(s):s(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(l=>{l.hasOpenRef()?s(l):r.has(l.canonicalConfigFilePath)&&fwe(l,u=>o(u)&&s(l))}),r.forEach(l=>this.removeProject(l));function o(l){return l.hasOpenRef()||!r.has(l.canonicalConfigFilePath)}function s(l){r.delete(l.canonicalConfigFilePath)&&(i(l),fwe(l,s))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(wo(r.sourceMapFilePath)){let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!mh(i,o=>{let s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(wo(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}),t.forEach(r=>{this.stopWatchingScriptInfo(r),this.deleteScriptInfo(r),r.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!xm(this.allJsFilesForOpenFileTelemetry,t.path))return;let r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;let i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:hZ,data:{info:{checkJs:o}}})}closeClientFile(t,r){let i=this.getScriptInfoForNormalizedPath(pl(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(let s of r){let l=vn(t,u=>u.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){let i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,this.configuredProjects.values(),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s=!1;if(t)for(let u of t){let p=this.getOrCreateOpenScriptInfo(pl(u.fileName),u.content,fZ(u.scriptKind),u.hasMixedContent,u.projectRootPath?pl(u.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(let u of r){let p=this.getScriptInfo(u.fileName);C.assert(!!p),this.applyChangesToFile(p,u.changes)}if(i)for(let u of i)s=this.closeClientFile(u,!0)||s;let l;o&&(l=Zi(o,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):De(i)&&this.printProjects()}applyChangesToFile(t,r){for(let i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t?.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){let i=pl(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{let s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){let r=g1(this.externalProjects,i=>i.getProjectName(),i=>!0);mh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(let i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);mh(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=gZ}applySafeList(t){let r=t.typeAcquisition;C.assert(!!r,"proj.typeAcquisition should be set by now");let i=this.applySafeListWorker(t,t.rootFiles,r);return i?.excludedFiles??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;let o=i.include||(i.include=[]),s=[],l=r.map(b=>Mu(b.fileName));for(let b of Object.keys(this.safelist)){let T=this.safelist[b];for(let I of l)if(T.match.test(I)){if(this.logger.info(`Excluding files based on rule ${b} matching file '${I}'`),T.types)for(let R of T.types)o.includes(R)||o.push(R);if(T.exclude)for(let R of T.exclude){let M=I.replace(T.match,(...N)=>R.map(O=>typeof O=="number"?wo(N[O])?B0e.escapeFilenameForRegex(N[O]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${b} - not enough groups`),"\\*"):O).join(""));s.includes(M)||s.push(M)}else{let R=B0e.escapeFilenameForRegex(I);s.includes(R)||s.push(R)}}}let u=s.map(b=>new RegExp(b,"i")),p,g;for(let b=0;bT.test(l[b])))m(b);else{if(i.enable){let T=rc(lh(l[b]));if(Tl(T,"js")){let I=Td(T),R=lG(I),M=this.legacySafelist.get(R);if(M!==void 0){this.logger.info(`Excluded '${l[b]}' because it matched ${R} from the legacy safelist`),m(b),o.includes(M)||o.push(M);continue}}}/^.+[.-]min\.js$/.test(l[b])?m(b):p?.push(r[b])}return g?{rootFiles:p,excludedFiles:g}:void 0;function m(b){g||(C.assert(!p),p=r.slice(0,b),g=[]),g.push(l[b])}}openExternalProject(t,r){let i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName),s,l=[];for(let u of t.rootFiles){let p=pl(u.fileName);if(eZ(p)){if(this.serverMode===0&&this.host.fileExists(p)){let g=this.findConfiguredProjectByProjectName(p);g||(g=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(p,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(p,`Creating configured project in external project: ${t.projectFileName}`)),o?.has(g)||g.addExternalProjectReference(),(s??(s=new Set)).add(g),o?.delete(g)}}else l.push(u)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);let u=t.typeAcquisition||{};u.include=u.include||[],u.exclude=u.exclude||[],u.enable===void 0&&(u.enable=Phe(l.map(m=>m.fileName)));let p=this.applySafeListWorker(t,l,u),g=p?.excludedFiles??[];if(l=p?.rootFiles??l,i){i.excludedFiles=g;let m=V9(t.options),b=u4(t.options,i.getCurrentDirectory()),T=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,m,l,tz);T?i.disableLanguageService(T):i.enableLanguageService(),i.setProjectErrors(b?.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,tz,m,u,t.options.compileOnSave,b?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,u,g).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(let t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`),!r.name||Ew(r.name).rest){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let o=aT.importServicePluginAsync(r,i,this.host,l=>this.logger.info(l));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let s=this.pendingPluginEnablements.get(t);s||this.pendingPluginEnablements.set(t,s=[]),s.push(o);return}this.endEnablePlugin(t,aT.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){let l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){let u=r.name;r=l,r.name=u}t.enableProxy(i,r)}else Ke(o,l=>this.logger.info(l)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let t=Vo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){C.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Ft(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){let i=await Promise.all(r);if(!t.isClosed()){for(let o of i)this.endEnablePlugin(t,o);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){let o=this.packageJsonCache,s=i&&this.toPath(i),l=[],u=p=>{switch(o.directoryHasPackageJson(p)){case 3:return o.searchDirectoryAndAncestors(p),u(p);case-1:let g=Zr(p,"package.json");this.watchPackageJsonFile(g,this.toPath(g),r);let m=o.getInDirectory(p);m&&l.push(m)}if(s&&s===p)return!0};return Em(li(t),u),l}getNearestAncestorDirectoryWithPackageJson(t){return Em(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists(Zr(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){C.assert(i!==void 0);let o=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!o){let s=this.watchFactory.watchFile(t,(l,u)=>{switch(u){case 0:return C.fail();case 1:this.packageJsonCache.addOrUpdate(l,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,kc.PackageJson);o={projects:new Set,close:()=>{var l;o.projects.size||!s||(s.close(),s=void 0,(l=this.packageJsonFilesMap)==null||l.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=oat())}},jhe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,bZ=jhe}});function Uhe(e){let t,r,i,o={get(p,g,m,b){if(!(!r||i!==l(p,m,b)))return r.get(g)},set(p,g,m,b,T,I){if(s(p,m,b).set(g,u(T,I,!1)),I){for(let R of T)if(R.isInNodeModules){let M=R.path.substring(0,R.path.indexOf(Ih)+Ih.length-1),N=e.toPath(M);t?.has(N)||(t||(t=new Map)).set(N,e.watchNodeModulesForPackageJsonChanges(M))}}},setModulePaths(p,g,m,b,T){let I=s(p,m,b),R=I.get(g);R?R.modulePaths=T:I.set(g,u(T,void 0,void 0))},setBlockedByPackageJsonDependencies(p,g,m,b,T){let I=s(p,m,b),R=I.get(g);R?R.isBlockedByPackageJsonDependencies=T:I.set(g,u(void 0,void 0,T))},clear(){t?.forEach($m),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return C.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,g,m){let b=l(p,g,m);return r&&i!==b&&o.clear(),i=b,r||(r=new Map)}function l(p,g,m){return`${p},${g.importModuleSpecifierEnding},${g.importModuleSpecifierPreference},${m.overrideImportMode}`}function u(p,g,m){return{modulePaths:p,moduleSpecifiers:g,isBlockedByPackageJsonDependencies:m}}}var sat=A({"src/server/moduleSpecifierCache.ts"(){"use strict";lb()}});function Hhe(e){let t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(li(l),!0)},getInDirectory:l=>t.get(e.toPath(Zr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{Em(l,u=>{let p=e.toPath(u);if(s(p)!==3)return!0;let g=Zr(u,"package.json");gO(e,g)?i(g,Zr(p,"package.json")):r.set(p,!0)})}};function i(l,u){let p=C.checkDefined(xX(l,e.host));t.set(u,p),r.delete(li(u))}function o(l){t.delete(l),r.delete(li(l))}function s(l){return t.has(Zr(l,"package.json"))?-1:r.has(l)?0:3}}var lat=A({"src/server/packageJsonCache.ts"(){"use strict";lb()}});function cat(e){let t=e[0],r=e[1];return(1e9*t+r)/1e6}function vwe(e,t){if((B2(e)||sZ(e))&&e.isJsOnlyProject()){let r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function uat(e){return xf(e)||!!e.emitDecoratorMetadata}function ywe(e,t,r){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:W_(r.messageText,` +`),code:r.code,category:aS(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Ft(r.relatedInformation,EZ)}}function EZ(e){return e.file?{span:{start:p4(Es(e.file,e.start)),end:p4(Es(e.file,e.start+e.length)),file:e.file.fileName},message:W_(e.messageText,` +`),category:aS(e),code:e.code}:{message:W_(e.messageText,` +`),category:aS(e),code:e.code}}function p4(e){return{line:e.line+1,offset:e.character+1}}function f4(e,t){let r=e.file&&p4(Es(e.file,e.start)),i=e.file&&p4(Es(e.file,e.start+e.length)),o=W_(e.messageText,` +`),{code:s,source:l}=e,u=aS(e),p={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Ft(e.relatedInformation,EZ)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function dat(e,t){return e.every(r=>ql(r.span)i(s,e));return!Do(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{let u=t(l);o.push(...Zi(s,p=>i(p,u)))}),h1(o,Cv)}function SZ(e){return aG(({textSpan:t})=>t.start+100003*t.length,dX(e))}function fat(e,t,r,i,o,s,l){let u=bwe(e,t,r,!0,(m,b)=>m.getLanguageService().findRenameLocations(b.fileName,b.pos,i,o,s),(m,b)=>b(NP(m)));if(Do(u))return u;let p=[],g=SZ(l);return u.forEach((m,b)=>{for(let T of m)!g.has(T)&&!TZ(NP(T),b)&&(p.push(T),g.add(T))}),p}function mat(e,t,r){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Xc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function _at(e,t,r,i,o){var s,l;let u=bwe(e,t,r,!1,(b,T)=>(o.info(`Finding references to ${T.fileName} position ${T.pos} in project ${b.getProjectName()}`),b.getLanguageService().findReferences(T.fileName,T.pos)),(b,T)=>{T(NP(b.definition));for(let I of b.references)T(NP(I))});if(Do(u))return u;let p=u.get(t);if(((l=(s=p?.[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)u.forEach(b=>{for(let T of b)for(let I of T.references)delete I.isDefinition});else{let b=SZ(i);for(let I of p)for(let R of I.references)if(R.isDefinition){b.add(R);break}let T=new Set;for(;;){let I=!1;if(u.forEach((R,M)=>{if(T.has(M))return;M.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,b)&&(T.add(M),I=!0)}),!I)break}u.forEach((I,R)=>{if(!T.has(R))for(let M of I)for(let N of M.references)N.isDefinition=!1})}let g=[],m=SZ(i);return u.forEach((b,T)=>{for(let I of b){let R=TZ(NP(I.definition),T),M=R===void 0?I.definition:{...I.definition,textSpan:vu(R.pos,I.definition.textSpan.length),fileName:R.fileName,contextSpan:vat(I.definition,T)},N=vn(g,O=>uX(O.definition,M,i));N||(N={definition:M,references:[]},g.push(N));for(let O of I.references)!m.has(O)&&!TZ(NP(O),T)&&(m.add(O),N.references.push(O))}}),g.filter(b=>b.references.length!==0)}function Khe(e,t,r){for(let i of Do(e)?e:e.projects)r(i,t);!Do(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(let s of i)r(s,o)})}function bwe(e,t,r,i,o,s){let l=new Map,u=PM();u.enqueue({project:t,location:r}),Khe(e,r.fileName,(M,N)=>{let O={fileName:N,pos:r.pos};u.enqueue({project:M,location:O})});let p=t.projectService,g=t.getCancellationToken(),m=mat(t,r,i),b=Ed(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),T=Ed(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetSourcePosition(m)),I=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(g.isCancellationRequested())break e;let{project:M,location:N}=u.dequeue();if(l.has(M)||Ewe(M,N)||(Gp(M),!M.containsFile(pl(N.fileName))))continue;let O=R(M,N);l.set(M,O??hc),I.add(gat(M))}m&&(p.loadAncestorProjectTree(I),p.forEachEnabledProject(M=>{if(g.isCancellationRequested()||l.has(M))return;let N=hat(m,M,b,T);N&&u.enqueue({project:M,location:N})}))}if(l.size===1)return tG(l.values());return l;function R(M,N){let O=o(M,N);if(O){for(let H of O)s(H,K=>{let Z=p.getOriginalLocationEnsuringConfiguredProject(M,K);if(!Z)return;let V=p.getScriptInfo(Z.fileName);for(let G of V.containingProjects)!G.isOrphan()&&!l.has(G)&&u.enqueue({project:G,location:Z});let ue=p.getSymlinkedProjects(V);ue&&ue.forEach((G,ne)=>{for(let he of G)!he.isOrphan()&&!l.has(he)&&u.enqueue({project:he,location:{fileName:ne,pos:Z.pos}})})});return O}}}function hat(e,t,r,i){if(t.containsFile(pl(e.fileName))&&!Ewe(t,e))return e;let o=r();if(o&&t.containsFile(pl(o.fileName)))return o;let s=i();return s&&t.containsFile(pl(s.fileName))?s:void 0}function Ewe(e,t){if(!t)return!1;let r=e.getLanguageService().getProgram();if(!r)return!1;let i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function gat(e){return k0(e)?e.canonicalConfigFilePath:e.getProjectName()}function NP({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function TZ(e,t){return cP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Swe(e,t){return fW(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function vat(e,t){return fX(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Rh(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(ql(e))}}function Xhe(e,t,r){let i=Rh(e,r),o=t&&Rh(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function yat(e,t){return{start:Twe(t,e.span.start),end:Twe(t,ql(e.span)),newText:e.newText}}function Twe(e,t){return Bhe(e)?Eat(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function bat(e,t){let r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function Eat(e){return{line:e.line+1,offset:e.character+1}}function Sat(e){C.assert(e.textChanges.length===1);let t=Ha(e.textChanges);return C.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function Yhe(e,t,r,i){let o=Tat(e,t,i),{line:s,character:l}=zx(TA(o),r);return{line:s+1,offset:l+1}}function Tat(e,t,r){for(let{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){let{newText:l,span:{start:u,length:p}}=o[s];e=e.slice(0,u)+l+e.slice(u+p)}return e}function Awe(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){let u=C.checkDefined(e.getScriptInfo(t)),p=Xhe(r,i,u),g=l?void 0:Aat(u,p);return{file:t,...p,lineText:g,isWriteAccess:o,isDefinition:s}}function Aat(e,t){let r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,ql(r)).replace(/\r|\n/g,"")}function Iat(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var $he,Qhe,Iwe,Zhe,xwe,ege,xat=A({"src/server/session.ts"(){"use strict";lb(),sT(),Rhe(),$he={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Qhe=rZ,Iwe=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){let r=this.requestId;C.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){let i=this.requestId;C.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r))},t,e))}executeAction(e){var t,r,i,o,s,l;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=lr)==null||t.instant(lr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=lr)==null||r.push(lr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=lr)==null||i.pop())}catch(p){(o=lr)==null||o.popAll(),u=!0,p instanceof Ox?(s=lr)==null||s.instant(lr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=lr)==null||l.instant(lr.Phase.Session,"stepError",{seq:this.requestId,message:p.message}),this.operationHost.logError(p,`delayed processing of request ${this.requestId}`))}(u||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},Zhe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],xwe=[...Zhe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],ege=class dne{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{let s={version:Te};return this.requiredResponse(s)},openExternalProject:s=>(this.projectService.openExternalProject(s.arguments,!0),this.requiredResponse(!0)),openExternalProjects:s=>(this.projectService.openExternalProjects(s.arguments.projects),this.requiredResponse(!0)),closeExternalProject:s=>(this.projectService.closeExternalProject(s.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:s=>{let l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);let u=Ft(l,p=>!p.projectErrors||p.projectErrors.length===0?p:{info:p.info,changes:p.changes,files:p.files,projectErrors:this.convertToDiagnosticsWithLinePosition(p.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&ra(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&ra(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:tS(ZB(l.textChanges),u=>{let p=C.checkDefined(this.projectService.getScriptInfo(l.fileName)),g=p.lineOffsetToPosition(u.start.line,u.start.offset),m=p.lineOffsetToPosition(u.end.line,u.end.offset);return g>=0?{span:{start:g,length:m-g},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&ra(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:ZB(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:s=>this.requiredResponse(this.getDefinition(s.arguments,!0)),"definition-full":s=>this.requiredResponse(this.getDefinition(s.arguments,!1)),definitionAndBoundSpan:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!0)),"definitionAndBoundSpan-full":s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!1)),findSourceDefinition:s=>this.requiredResponse(this.findSourceDefinition(s.arguments)),"emit-output":s=>this.requiredResponse(this.getEmitOutput(s.arguments)),typeDefinition:s=>this.requiredResponse(this.getTypeDefinition(s.arguments)),implementation:s=>this.requiredResponse(this.getImplementation(s.arguments,!0)),"implementation-full":s=>this.requiredResponse(this.getImplementation(s.arguments,!1)),references:s=>this.requiredResponse(this.getReferences(s.arguments,!0)),"references-full":s=>this.requiredResponse(this.getReferences(s.arguments,!1)),rename:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!0)),"renameLocations-full":s=>this.requiredResponse(this.getRenameLocations(s.arguments,!1)),"rename-full":s=>this.requiredResponse(this.getRenameInfo(s.arguments)),open:s=>(this.openClientFile(pl(s.arguments.file),s.arguments.fileContent,mZ(s.arguments.scriptKindName),s.arguments.projectRootPath?pl(s.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!0)),"quickinfo-full":s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!1)),getOutliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!0)),outliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!1)),todoComments:s=>this.requiredResponse(this.getTodoComments(s.arguments)),indentation:s=>this.requiredResponse(this.getIndentation(s.arguments)),nameOrDottedNameSpan:s=>this.requiredResponse(this.getNameOrDottedNameSpan(s.arguments)),breakpointStatement:s=>this.requiredResponse(this.getBreakpointStatement(s.arguments)),braceCompletion:s=>this.requiredResponse(this.isValidBraceCompletion(s.arguments)),docCommentTemplate:s=>this.requiredResponse(this.getDocCommentTemplate(s.arguments)),getSpanOfEnclosingComment:s=>this.requiredResponse(this.getSpanOfEnclosingComment(s.arguments)),fileReferences:s=>this.requiredResponse(this.getFileReferences(s.arguments,!0)),"fileReferences-full":s=>this.requiredResponse(this.getFileReferences(s.arguments,!1)),format:s=>this.requiredResponse(this.getFormattingEditsForRange(s.arguments)),formatonkey:s=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(s.arguments)),"format-full":s=>this.requiredResponse(this.getFormattingEditsForDocumentFull(s.arguments)),"formatonkey-full":s=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(s.arguments)),"formatRange-full":s=>this.requiredResponse(this.getFormattingEditsForRangeFull(s.arguments)),completionInfo:s=>this.requiredResponse(this.getCompletions(s.arguments,"completionInfo")),completions:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions")),"completions-full":s=>this.requiredResponse(this.getCompletions(s.arguments,"completions-full")),completionEntryDetails:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!1)),"completionEntryDetails-full":s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!0)),compileOnSaveAffectedFileList:s=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(s.arguments)),compileOnSaveEmitFile:s=>this.requiredResponse(this.emitFile(s.arguments)),signatureHelp:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!0)),"signatureHelp-full":s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!1)),"compilerOptionsDiagnostics-full":s=>this.requiredResponse(this.getCompilerOptionsDiagnostics(s.arguments)),"encodedSyntacticClassifications-full":s=>this.requiredResponse(this.getEncodedSyntacticClassifications(s.arguments)),"encodedSemanticClassifications-full":s=>this.requiredResponse(this.getEncodedSemanticClassifications(s.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:s=>this.requiredResponse(this.getSemanticDiagnosticsSync(s.arguments)),syntacticDiagnosticsSync:s=>this.requiredResponse(this.getSyntacticDiagnosticsSync(s.arguments)),suggestionDiagnosticsSync:s=>this.requiredResponse(this.getSuggestionDiagnosticsSync(s.arguments)),geterr:s=>(this.errorCheck.startNew(l=>this.getDiagnostics(l,s.arguments.delay,s.arguments.files)),this.notRequired()),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired()),change:s=>(this.change(s.arguments),this.notRequired()),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.doOutput(void 0,"configure",s.seq,!0),this.notRequired()),reload:s=>(this.reload(s.arguments,s.seq),this.requiredResponse({reloadFinished:!0})),saveto:s=>{let l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{let l=s.arguments;return this.closeClientFile(l.file),this.notRequired()},navto:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!0)),"navto-full":s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!1)),brace:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!0)),"brace-full":s=>this.requiredResponse(this.getBraceMatching(s.arguments,!1)),navbar:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!0)),"navbar-full":s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!1)),navtree:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!0)),"navtree-full":s=>this.requiredResponse(this.getNavigationTree(s.arguments,!1)),documentHighlights:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!0)),"documentHighlights-full":s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!1)),compilerOptionsForInferredProjects:s=>(this.setCompilerOptionsForInferredProjects(s.arguments),this.requiredResponse(!0)),projectInfo:s=>this.requiredResponse(this.getProjectInfo(s.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:s=>this.requiredResponse(this.getJsxClosingTag(s.arguments)),linkedEditingRange:s=>this.requiredResponse(this.getLinkedEditingRange(s.arguments)),getCodeFixes:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!0)),"getCodeFixes-full":s=>this.requiredResponse(this.getCodeFixes(s.arguments,!1)),getCombinedCodeFix:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!0)),"getCombinedCodeFix-full":s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!1)),applyCodeActionCommand:s=>this.requiredResponse(this.applyCodeActionCommand(s.arguments)),getSupportedCodeFixes:s=>this.requiredResponse(this.getSupportedCodeFixes(s.arguments)),getApplicableRefactors:s=>this.requiredResponse(this.getApplicableRefactors(s.arguments)),getEditsForRefactor:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!0)),getMoveToRefactoringFileSuggestions:s=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(s.arguments)),"getEditsForRefactor-full":s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!1)),organizeImports:s=>this.requiredResponse(this.organizeImports(s.arguments,!0)),"organizeImports-full":s=>this.requiredResponse(this.organizeImports(s.arguments,!1)),getEditsForFileRename:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!0)),"getEditsForFileRename-full":s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!1)),configurePlugin:s=>(this.configurePlugin(s.arguments),this.doOutput(void 0,"configurePlugin",s.seq,!0),this.notRequired()),selectionRange:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!0)),"selectionRange-full":s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!1)),prepareCallHierarchy:s=>this.requiredResponse(this.prepareCallHierarchy(s.arguments)),provideCallHierarchyIncomingCalls:s=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(s.arguments)),provideCallHierarchyOutgoingCalls:s=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(s.arguments)),toggleLineComment:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!0)),"toggleLineComment-full":s=>this.requiredResponse(this.toggleLineComment(s.arguments,!1)),toggleMultilineComment:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!0)),"toggleMultilineComment-full":s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!1)),commentSelection:s=>this.requiredResponse(this.commentSelection(s.arguments,!0)),"commentSelection-full":s=>this.requiredResponse(this.commentSelection(s.arguments,!1)),uncommentSelection:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!0)),"uncommentSelection-full":s=>this.requiredResponse(this.uncommentSelection(s.arguments,!1)),provideInlayHints:s=>this.requiredResponse(this.provideInlayHints(s.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||B9,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;let i={executeWithRequestId:(s,l)=>this.executeWithRequestId(s,l),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:s=>this.sendRequestCompletedEvent(s),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new Iwe(i);let o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new bZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new nZ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:Zhe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:xwe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:C.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case d4:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case H9:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case q9:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case J9:case $9:case Q9:case Z9:this.event(t.data,t.eventName);break;case K9:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Ft(t.data.diagnostics,r=>f4(r,!0))},t.eventName);break;case X9:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case Y9:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},d4))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: +`+nP(t.message),t.stack&&(o+=` +`+nP(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:s,project:l}=this.getFileAndProject(i),u=l.getScriptInfoForNormalizedPath(s);if(u){let p=v2(u.getSnapshot());o+=` + +File text of ${i.file}:${nP(p)} +`}}catch{}if(t.ProgramFiles){o+=` + +Program files: ${JSON.stringify(t.ProgramFiles)} +`,o+=` + +Projects:: +`;let s=0,l=u=>{o+=` +Project '${u.projectName}' (${CP[u.projectKind]}) ${s} +`,o+=u.filesToString(!0),o+=` +----------------------------------------------- +`,s++};this.projectService.externalProjects.forEach(l),this.projectService.configuredProjects.forEach(l),this.projectService.inferredProjects.forEach(l)}}this.logger.msg(o,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${D0(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;let i=qhe(t,this.logger,this.byteLength,this.host.newLine);(r=rd)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(Jhe(r,t))}doOutput(t,r,i,o,s){let l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let u;if(Do(t))l.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:p,...g}=t;l.body=g,u=p}else l.body=t;else l.body=t;u&&(l.metadata=u)}else C.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=lr)==null||i.push(lr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let s=vwe(r,t)?hc:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=lr)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=lr)==null||i.push(lr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=lr)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=lr)==null||i.push(lr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=lr)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>ywe(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){C.assert(!this.suppressDiagnosticEvents);let s=this.changeSeq,l=Math.min(i,200),u=0,p=()=>{u++,r.length>u&&t.delay("checkOne",l,g)},g=()=>{if(this.changeSeq!==s)return;let m=r[u];if(wo(m)&&(m=this.toPendingErrorCheck(m),!m)){p();return}let{fileName:b,project:T}=m;if(Gp(T),!!T.containsFile(b,o)&&(this.syntacticCheck(b,T),this.changeSeq===s)){if(T.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(b,T),this.changeSeq===s){if(this.getPreferences(b).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(b,T),p()})}})}};r.length>u&&this.changeSeq===s&&t.delay("checkOne",i,g)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(let i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Vo(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){let{file:r,project:i}=this.getFileAndProject(t),o=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,o)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){let r=this.getProject(t.projectFileName),i=pl(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){let o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=tr(xo(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Ft(l,u=>f4(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:W_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:aS(r),code:r.code,source:r.source,startLocation:r.file&&p4(Es(r.file,r.start)),endLocation:r.file&&p4(Es(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Ft(r.relatedInformation,EZ)}))}getCompilerOptionsDiagnostics(t){let r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(tr(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:W_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:aS(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Ft(i.relatedInformation,EZ)}))}getDiagnosticsWorker(t,r,i,o){let{project:s,file:l}=this.getFileAndProject(t);if(r&&vwe(s,l))return hc;let u=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,u):p.map(g=>ywe(l,s,g))}getDefinition(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||hc,o);return r?this.mapDefinitionInfo(l,o):l.map(dne.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{let o=Swe(i,r);return o?{...o,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=C.checkDefined(o.getScriptInfo(i)),u=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!u||!u.definitions)return{definitions:hc,textSpan:void 0};let p=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:g}=u;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Rh(g,l)}:{definitions:p.map(dne.mapToOriginalLocation),textSpan:g}}findSourceDefinition(t){var r;let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s),u=this.mapDefinitionInfoLocations(l||hc,o).slice();if(this.projectService.serverMode===0&&(!Et(u,I=>pl(I.fileName)!==i&&!I.isAmbient)||Et(u,I=>!!I.failedAliasResolution))){let I=aG(O=>O.textSpan.start,dX(this.host.useCaseSensitiveFileNames));u?.forEach(O=>I.add(O));let R=o.getNoDtsResolutionProject(i),M=R.getLanguageService(),N=(r=M.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(O=>pl(O.fileName)!==i);if(Et(N))for(let O of N){if(O.unverified){let H=b(O,o.getLanguageService().getProgram(),M.getProgram());if(Et(H)){for(let K of H)I.add(K);continue}}I.add(O)}else{let O=u.filter(H=>pl(H.fileName)!==i&&H.isAmbient);for(let H of Et(O)?O:m()){let K=g(H.fileName,i,R);if(!K)continue;let Z=this.projectService.getOrCreateScriptInfoNotOpenedByClient(K,R.currentDirectory,R.directoryStructureHost);if(!Z)continue;R.containsScriptInfo(Z)||(R.addRoot(Z),R.updateGraph());let V=M.getProgram(),ue=C.checkDefined(V.getSourceFile(K));for(let G of T(H.name,ue,V))I.add(G)}}u=Vo(I.values())}return u=u.filter(I=>!I.isAmbient&&!I.failedAliasResolution),this.mapDefinitionInfo(u,o);function g(I,R,M){var N,O,H;let K=t7(I);if(K&&I.lastIndexOf(Ih)===K.topLevelNodeModulesIndex){let Z=I.substring(0,K.packageRootIndex),V=(N=o.getModuleResolutionCache())==null?void 0:N.getPackageJsonInfoCache(),ue=o.getCompilationSettings(),G=bw(bo(Z+"/package.json",o.getCurrentDirectory()),yw(V,o,ue));if(!G)return;let ne=Iq(G,{moduleResolution:2},o,o.getModuleResolutionCache()),he=I.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ye=zN(Tw(he)),$=o.toPath(I);if(ne&&Et(ne,Y=>o.toPath(Y)===$))return(O=M.resolutionCache.resolveSingleModuleNameWithoutWatching(ye,R).resolvedModule)==null?void 0:O.resolvedFileName;{let Y=I.substring(K.packageRootIndex+1),oe=`${ye}/${Td(Y)}`;return(H=M.resolutionCache.resolveSingleModuleNameWithoutWatching(oe,R).resolvedModule)==null?void 0:H.resolvedFileName}}}function m(){let I=o.getLanguageService(),R=I.getProgram(),M=zd(R.getSourceFile(i),s);return(us(M)||Ve(M))&&ks(M.parent)&&Eoe(M,N=>{var O;if(N===M)return;let H=(O=I.getDefinitionAtPosition(i,N.getStart(),!0,!1))==null?void 0:O.filter(K=>pl(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:Zf(M)}));if(Et(H))return H})||hc}function b(I,R,M){var N;let O=M.getSourceFile(I.fileName);if(!O)return;let H=zd(R.getSourceFile(i),s),K=R.getTypeChecker().getSymbolAtLocation(H),Z=K&&dl(K,276);if(!Z)return;let V=((N=Z.propertyName)==null?void 0:N.text)||Z.name.text;return T(V,O,M)}function T(I,R,M){let N=Os.Core.getTopMostDeclarationNamesInFile(I,R);return Vi(N,O=>{let H=M.getTypeChecker().getSymbolAtLocation(O),K=NC(O);if(H&&K)return w2.createDefinitionInfo(K,M.getTypeChecker(),H,K,!0)})}}getEmitOutput(t){let{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>f4(s,!0))}:o}mapJSDocTagInfo(t,r,i){return t?t.map(o=>{var s;return{...o,text:i?this.mapDisplayParts(o.text,r):(s=o.text)==null?void 0:s.map(l=>l.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r),parameters:o.parameters.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r)})),tags:this.mapJSDocTagInfo(o.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(C.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){let o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,ql(r));return{file:t,start:{line:s.line+1,offset:s.character+1},end:{line:l.line+1,offset:l.character+1}}}toFileSpanWithContext(t,r,i,o){let s=this.toFileSpan(t,r,o),l=i&&this.toFileSpan(t,i,o);return l?{...s,contextStart:l.start,contextEnd:l.end}:s}getTypeDefinition(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||hc,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{let o=Swe(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||hc,o);return r?l.map(({fileName:u,textSpan:p,contextSpan:g})=>this.toFileSpanWithContext(u,p,g,o)):l.map(dne.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?hc:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(o,s)=>o.getLanguageService().getSemanticDiagnostics(s).filter(l=>!!l.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?hc:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getJsxClosingTagAtPosition(r,o);return s===void 0?void 0:{newText:s.newText,caretOffset:0}}getLinkedEditingRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getLinkedEditingRangeAtPosition(r,o),l=this.projectService.getScriptInfoForNormalizedPath(r);if(!(l===void 0||s===void 0))return bat(s,l)}getDocumentHighlights(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDocumentHighlights(i,s,t.filesToSearch);return l?r?l.map(({fileName:u,highlightSpans:p})=>{let g=o.getScriptInfo(u);return{file:u,highlightSpans:p.map(({textSpan:m,kind:b,contextSpan:T})=>({...Xhe(m,T,g),kind:b}))}}):l:hc}provideInlayHints(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{let{position:u,displayParts:p}=l;return{...l,position:o.positionToLineOffset(u),displayParts:p?.map(({text:g,span:m,file:b})=>{if(m){C.assertIsDefined(b,"Target file should be defined together with its span.");let T=this.projectService.getScriptInfo(b);return{text:g,span:{start:T.positionToLineOffset(m.start),end:T.positionToLineOffset(m.start+m.length),file:b}}}else return{text:g}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,i,o){let{project:s}=this.getFileAndProjectWorker(t,r);return Gp(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,o,s)}getProjects(t,r,i){let o,s;if(t.projectFileName){let l=this.getProject(t.projectFileName);l&&(o=[l])}else{let l=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(l)r||this.projectService.ensureDefaultProjectForFile(l);else return i?hc:(this.projectService.logErrorForScriptInfoNotFound(t.file),ny.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=tr(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),ny.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){let i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return ny.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){let i=pl(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),u=this.getPreferences(i),p=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,u),C.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];let g=fat(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(g)}:g}mapRenameInfo(t,r){if(t.canRename){let{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:g}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:Rh(g,r)}}else return t}toSpanGroups(t){let r=new Map;for(let{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:p,...g}of t){let m=r.get(i);m||r.set(i,m={file:i,locs:[]});let b=C.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...Xhe(o,s,b),...g})}return Vo(r.values())}getReferences(t,r){let i=pl(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=_at(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;let u=this.getPreferences(i),p=this.getDefaultProject(t),g=p.getScriptInfoForNormalizedPath(i),m=p.getLanguageService().getQuickInfoAtPosition(i,s),b=m?OO(m.displayParts):"",T=m&&m.textSpan,I=T?g.positionToLineOffset(T.start).offset:0,R=T?g.getSnapshot().getText(T.start,ql(T)):"";return{refs:Zi(l,N=>N.references.map(O=>Awe(this.projectService,O,u))),symbolName:R,symbolStartOffset:I,symbolDisplayString:b}}getFileReferences(t,r){let i=this.getProjects(t),o=t.file,s=this.getPreferences(pl(o)),l=[],u=SZ(this.host.useCaseSensitiveFileNames);return Khe(i,void 0,g=>{if(g.getCancellationToken().isCancellationRequested())return;let m=g.getLanguageService().getFileReferences(o);if(m)for(let b of m)u.has(b)||(l.push(b),u.add(b))}),r?{refs:l.map(g=>Awe(this.projectService,g,s)),symbolName:`"${t.file}"`}:l}openClientFile(t,r,i,o){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,o)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){let i=pl(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){let l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(u=>({textSpan:Rh(u.textSpan,l),hintSpan:Rh(u.hintSpan,l),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return s}getTodoComments(t){let{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,o,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?G2(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;let u=!!this.getPreferences(i).displayPartsForJSDoc;if(r){let p=OO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(ql(l.textSpan)),displayString:p,documentation:u?this.mapDisplayParts(l.documentation,o):OO(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,u)}}else return u?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=o.lineOffsetToPosition(t.endLine,t.endOffset),u=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(u)return u.map(p=>this.convertTextChangeToCodeEdit(p,o))}getFormattingEditsForRangeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?G2(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?G2(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?G2(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),u=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key===` +`&&(!u||u.length===0||dat(u,s))){let{lineText:p,absolutePosition:g}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){let m=i.getIndentationAtPosition(r,s,l),b=0,T,I;for(T=0,I=p.length;T({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset(ql(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getCompletionsAtPosition(i,l,{...khe(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(r==="completions-full")return u;let p=t.prefix||"",g=Vi(u.entries,b=>{if(u.isMemberCompletion||uo(b.name.toLowerCase(),p.toLowerCase())){let{name:T,kind:I,kindModifiers:R,sortText:M,insertText:N,filterText:O,replacementSpan:H,hasAction:K,source:Z,sourceDisplay:V,labelDetails:ue,isSnippet:G,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ye,data:$}=b,Y=H?Rh(H,s):void 0;return{name:T,kind:I,kindModifiers:R,sortText:M,insertText:N,filterText:O,replacementSpan:Y,isSnippet:G,hasAction:K||void 0,source:Z,sourceDisplay:V,labelDetails:ue,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ye,data:$}}});return r==="completions"?(u.metadata&&(g.metadata=u.metadata),g):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&Rh(u.optionalReplacementSpan,s),entries:g}}getCompletionEntryDetails(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.projectService.getFormatCodeOptions(i),p=!!this.getPreferences(i).displayPartsForJSDoc,g=Vi(t.entryNames,m=>{let{name:b,source:T,data:I}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return o.getLanguageService().getCompletionEntryDetails(i,l,b,u,T,this.getPreferences(i),I?aa(I,Iat):void 0)});return r?p?g:g.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,o,!1)})):g.map(m=>({...m,codeActions:Ft(m.codeActions,b=>this.mapCodeAction(b)),documentation:this.mapDisplayParts(m.documentation,o),tags:this.mapJSDocTagInfo(m.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){let r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?pat(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;let l=o.getCompilationSettings();if(!(l.noEmit||Su(s.fileName)&&!uat(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!Ps(l)}}):hc}emitFile(t){let{file:r,project:i}=this.getFileAndProject(t);if(i||ny.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,p,g)=>this.host.writeFile(u,p,g));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>f4(u,!0))}:!s}getSignatureHelpItems(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getSignatureHelpItems(i,l,t),p=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){let g=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(g.start),end:s.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(u.items,o,p)}}else return p||!u?u:{...u,items:u.items.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,o,!1)}))}}toPendingErrorCheck(t){let r=pl(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){let r=this.projectService.getScriptInfo(t.file);C.assert(!!r),r.textStorage.switchToScriptVersionCache();let i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,pne({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){let i=pl(t.file),o=t.tmpfile===void 0?void 0:pl(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){let i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;let r=va(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Ft(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>Rh(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Rh(i,r)),nameSpan:t.nameSpan&&Rh(t.nameSpan,r),childItems:Ft(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){let i=this.getFullNavigateToItems(t);return r?Zi(i,({project:o,navigateToItems:s})=>s.map(l=>{let u=o.getScriptInfo(l.fileName),p={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:u.positionToLineOffset(l.textSpan.start),end:u.positionToLineOffset(ql(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(p.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(p.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(p.containerKind=l.containerKind),p})):Zi(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){let{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){C.assertIsDefined(t.file);let{file:T,project:I}=this.getFileAndProject(t);return[{project:I,navigateToItems:I.getLanguageService().getNavigateToItems(i,o,T)}]}let l=this.getHostPreferences(),u=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(T=>g(T));else{let T=this.getProjects(t);Khe(T,void 0,I=>g(I))}return u;function g(T){let I=T.getLanguageService().getNavigateToItems(i,o,void 0,T.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=tr(I,M=>m(M)&&!TZ(NP(M),T));R.length&&u.push({project:T,navigateToItems:R})}function m(T){let I=T.name;if(!p.has(I))return p.set(I,[T]),!0;let R=p.get(I);for(let M of R)if(b(M,T))return!1;return R.push(T),!0}function b(T,I){return T===I?!0:!T||!I?!1:T.containerKind===I.containerKind&&T.containerName===I.containerName&&T.fileName===I.fileName&&T.isCaseSensitive===I.isCaseSensitive&&T.kind===I.kind&&T.kindModifiers===I.kindModifiers&&T.matchKind===I.matchKind&&T.name===I.name&&T.textSpan.start===I.textSpan.start&&T.textSpan.length===I.textSpan.length}}getSupportedCodeFixes(t){if(!t)return LY();if(t.file){let{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}let r=this.getProject(t.projectFileName);return r||ny.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),C.checkDefined(i===void 0?o:i);function s(l){return l.position!==void 0?l.position:r.lineOffsetToPosition(l.line,l.offset)}}getRange(t,r){let{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(l===void 0)return{edits:[]};if(r){let{renameFilename:u,renameLocation:p,edits:g}=l,m;if(u!==void 0&&p!==void 0){let b=o.getScriptInfoForNormalizedPath(pl(u));m=Yhe(v2(b.getSnapshot()),u,p,g)}return{renameLocation:m,renameFilename:u,edits:this.mapTextChangesToCodeEdits(g),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}organizeImports(t,r){C.assert(t.scope.type==="file");let{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){let i=pl(t.oldFilePath),o=pl(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(g=>{let m=g.getLanguageService().getEditsForFileRename(i,o,s,l),b=[];for(let T of m)u.has(T.fileName)||(p.push(T),b.push(T.fileName));for(let T of b)u.add(T)}),r?p.map(g=>this.mapTextChangeToCodeEdit(g)):p}getCodeFixes(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:u}=this.getStartAndEndPosition(t,s),p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(g){let m=o.getLanguageService(),b=[...m.getSyntacticDiagnostics(i),...m.getSemanticDiagnostics(i),...m.getSuggestionDiagnostics(i)].map(I=>eL(l,u-l,I.start,I.length)&&I.code),T=t.errorCodes.find(I=>!b.includes(I));throw T!==void 0&&(g.message=`BADCLIENT: Bad error code, ${T} not found in range ${l}..${u} (found: ${b.join(", ")}); could have caused this error: +${g.message}`),g}return r?p.map(g=>this.mapCodeFixAction(g)):p}getCombinedCodeFix({scope:t,fixId:r},i){C.assert(t.type==="file");let{file:o,project:s}=this.getFileAndProject(t.args),l=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(l.changes),commands:l.commands}:l}applyCodeActionCommand(t){let r=t.command;for(let i of gA(r)){let{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(l=>{},l=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:l}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:l}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){let r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),C.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>yat(i,r))}:Sat(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getBraceMatchingAtPosition(i,l);return u?r?u.map(p=>Rh(p,s)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;let{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;let l=o.filter(M=>!M.includes("lib.d.ts"));if(l.length===0)return;let u=[],p=[],g=[],m=[],b=pl(i),T=this.projectService.ensureDefaultProjectForFile(b);for(let M of l)this.getCanonicalFileName(M)===this.getCanonicalFileName(i)?u.push(M):this.projectService.getScriptInfo(M).isScriptOpen()?p.push(M):Su(M)?m.push(M):g.push(M);let R=[...u,...p,...g,...m].map(M=>({fileName:M,project:T}));this.updateErrorCheck(t,R,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){let{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=C.checkDefined(this.projectService.getScriptInfo(o));return Ft(i,u=>{let p=this.getPosition(u,l),g=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(g,l):g})}toggleLineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),u=o.toggleLineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,p))}return u}toggleMultilineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.toggleMultilineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,p))}return u}commentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.commentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,p))}return u}uncommentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.uncommentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,p))}return u}mapSelectionRange(t,r){let i={textSpan:Rh(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){let r=pl(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),ny.ThrowNoProject())}toProtocolCallHierarchyItem(t){let r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Rh(t.span,r),selectionSpan:Rh(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){let r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Rh(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Rh(i,r))}}prepareCallHierarchy(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){let s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&CX(l,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyIncomingCall(l))}provideCallHierarchyOutgoingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyOutgoingCall(l,o))}getCanonicalFileName(t){let r=this.host.useCaseSensitiveFileNames?t:lh(t);return va(r)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){C.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){C.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r){try{return this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t)}}executeCommand(t){let r=this.handlers.get(t.command);if(r){let i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${D0(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,u,p,g,m,b,T;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let I;this.logger.hasLevel(2)&&(I=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${nP(this.toStringMessage(t))}`));let R,M;try{R=this.parseMessage(t),M=R.arguments&&R.arguments.file?R.arguments:void 0,(r=lr)==null||r.instant(lr.Phase.Session,"request",{seq:R.seq,command:R.command}),(i=rd)==null||i.logStartCommand(""+R.command,this.toStringMessage(t).substring(0,100)),(o=lr)==null||o.push(lr.Phase.Session,"executeCommand",{seq:R.seq,command:R.command},!0);let{response:N,responseRequired:O}=this.executeCommand(R);if((s=lr)==null||s.pop(),this.logger.hasLevel(2)){let H=cat(this.hrtime(I)).toFixed(4);O?this.logger.perftrc(`${R.seq}::${R.command}: elapsed time (in milliseconds) ${H}`):this.logger.perftrc(`${R.seq}::${R.command}: async elapsed time (in milliseconds) ${H}`)}(l=rd)==null||l.logStopCommand(""+R.command,"Success"),(u=lr)==null||u.instant(lr.Phase.Session,"response",{seq:R.seq,command:R.command,success:!!N}),N?this.doOutput(N,R.command,R.seq,!0):O&&this.doOutput(void 0,R.command,R.seq,!1,"No content available.")}catch(N){if((p=lr)==null||p.popAll(),N instanceof Ox){(g=rd)==null||g.logStopCommand(""+(R&&R.command),"Canceled: "+N),(m=lr)==null||m.instant(lr.Phase.Session,"commandCanceled",{seq:R?.seq,command:R?.command}),this.doOutput({canceled:!0},R.command,R.seq,!0);return}this.logErrorWorker(N,this.toStringMessage(t),M),(b=rd)==null||b.logStopCommand(""+(R&&R.command),"Error: "+N),(T=lr)==null||T.instant(lr.Phase.Session,"commandError",{seq:R?.seq,command:R?.command,message:N.message}),this.doOutput(void 0,R?R.command:"unknown",R?R.seq:0,!1,"Error processing request. "+N.message+` +`+N.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),BI,AZ,Rwe,Dwe,nz,rz,tge,PP,GI,m4,Rat=A({"src/server/scriptVersionCache.ts"(){"use strict";lb(),sT(),BI=4,AZ=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(AZ||{}),Rwe=class{constructor(){this.goSubtree=!0,this.lineIndex=new PP,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new GI,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let i=PP.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(s=this.endBranch[u],u>0?o=this.endBranch[u-1]:o=this.branchNode);s&&o.remove(s);let l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let u=new Array(i.length-1),p=l;for(let b=1;b=0;){let b=this.startPath[g];u=b.insertAt(p,u),g--,p=b}let m=u.length;for(;m>0;){let b=new GI;b.add(this.lineIndex.root),u=b.insertAt(this.lineIndex.root,u),m=u.length,this.lineIndex.root=b}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let p=this.startPath.length-2;p>=0;p--)this.startPath[p].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){let s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function u(p){return p.isLeaf()?new m4(""):new GI}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=u(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=u(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(l)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},Dwe=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return tL(vu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},nz=class pA{constructor(){this.changes=[],this.versions=new Array(pA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%pA.maxVersions}currentVersionToIndex(){return this.currentVersion%pA.maxVersions}edit(t,r,i){this.changes.push(new Dwe(t,r,i)),(this.changes.length>pA.changeNumberThreshold||r>pA.changeLengthThreshold||i&&i.length>pA.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(let i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new tge(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=pA.maxVersions&&(this.minVersion=this.currentVersion-pA.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){let r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return vu(o,s)}getTextChangesBetweenVersions(t,r){if(t=this.minVersion){let i=[];for(let o=t+1;o<=r;o++){let s=this.versions[this.versionToIndex(o)];for(let l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return sre(i)}else return;else return gL}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let r=new pA,i=new tge(0,r,new PP);r.versions[r.currentVersion]=i;let o=PP.linesFromText(t);return i.index.load(o.lines),r}},nz.changeNumberThreshold=8,nz.changeLengthThreshold=256,nz.maxVersions=8,rz=nz,tge=class AWe{constructor(t,r,i,o=hc){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof AWe&&this.cache===t.cache)return this.version<=t.version?gL:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},PP=class G0e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){let r=this.getLineCount();if(t<=r){let{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let r=[];for(let i=0;i0&&t{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());let o={goSubtree:!0,done:!1,leaf(s,l,u){t(u,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return C.assert(r===0),i!==void 0?(this.load(G0e.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){let u=this.getText(0,this.root.charCount());o=u.slice(0,t)+i+u.slice(t+r)}let s=new Rwe,l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let u=this.getText(t,1);i?i=u+i:i=u,r=0,l=!0}else if(r>0){let u=t+r,{zeroBasedColumn:p,lineText:g}=this.positionToColumnAndLineText(u);p===0&&(r+=g.length,i=i?i+g:g)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){let u=s.lineIndex.getText(0,s.lineIndex.getLength());C.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},GI=class V0e{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){let o=0,s=this.children[o].charCount(),l=t;for(;l>=s;)this.skipChild(l,r,o,i,0),l-=s,o++,s=this.children[o].charCount();if(l+r<=s){if(this.execWalk(l,r,i,o,2))return}else{if(this.execWalk(l,s-l,i,o,1))return;let u=r-(s-l);for(o++,s=this.children[o].charCount();u>s;){if(this.execWalk(0,s,i,o,3))return;u-=s,o++,s=this.children[o].charCount()}if(u>0&&this.execWalk(0,u,i,o,4))return}if(i.pre){let u=this.children.length;if(or)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}let i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let o=C.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(let i of this.children){let o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r,i=this.children.length;t++;let o=t;if(t=0;T--)p[T].children.length===0&&p.pop()}l&&p.push(l),this.updateCounts();for(let m=0;m{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){let o=lhe(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${D0(o)}`),this.activeRequestCount0?this.activeRequestCount--:C.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${o.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case rP:this.projectService.watchTypingLocations(t);break;default:}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${D0(t)}`),this.installer.send(t)},IWe.requestDelayMillis,`${t.projectName}::${t.kind}`)}},nge.requestDelayMillis=100,rge=nge}}),Cwe={};X(Cwe,{ActionInvalidate:()=>qw,ActionPackageInstalled:()=>Jw,ActionSet:()=>Hw,ActionWatchTypingLocations:()=>rP,Arguments:()=>_K,AutoImportProviderProject:()=>dZ,AuxiliaryProject:()=>cZ,CharRangeSection:()=>AZ,CloseFileWatcherEvent:()=>Z9,CommandNames:()=>Qhe,ConfigFileDiagEvent:()=>K9,ConfiguredProject:()=>pZ,CreateDirectoryWatcherEvent:()=>Q9,CreateFileWatcherEvent:()=>$9,Errors:()=>ny,EventBeginInstallTypes:()=>BF,EventEndInstallTypes:()=>GF,EventInitializationFailed:()=>mK,EventTypesRegistry:()=>zF,ExternalProject:()=>G9,GcTimer:()=>nZ,InferredProject:()=>lZ,LargeFileReferencedEvent:()=>J9,LineIndex:()=>PP,LineLeaf:()=>m4,LineNode:()=>GI,LogLevel:()=>QQ,Msg:()=>ZQ,OpenFileInfoTelemetryEvent:()=>hZ,Project:()=>aT,ProjectInfoTelemetryEvent:()=>Y9,ProjectKind:()=>CP,ProjectLanguageServiceStateEvent:()=>X9,ProjectLoadingFinishEvent:()=>q9,ProjectLoadingStartEvent:()=>H9,ProjectReferenceProjectLoadKind:()=>yZ,ProjectService:()=>bZ,ProjectsUpdatedInBackgroundEvent:()=>d4,ScriptInfo:()=>oZ,ScriptVersionCache:()=>rz,Session:()=>ege,TextStorage:()=>iZ,ThrottledOperations:()=>tZ,TypingsCache:()=>aZ,TypingsInstallerAdapter:()=>rge,allFilesAreJsOrDts:()=>Nhe,allRootFilesAreJsOrDts:()=>Che,asNormalizedPath:()=>iwe,convertCompilerOptions:()=>V9,convertFormatOptions:()=>G2,convertScriptKindName:()=>mZ,convertTypeAcquisition:()=>Lhe,convertUserPreferences:()=>khe,convertWatchOptions:()=>u4,countEachFileTypes:()=>l4,createInstallTypingsRequest:()=>lhe,createModuleSpecifierCache:()=>Uhe,createNormalizedPathMap:()=>owe,createPackageJsonCache:()=>Hhe,createSortedArray:()=>fhe,emptyArray:()=>hc,findArgument:()=>qxe,forEachResolvedProjectReferenceProject:()=>V2,formatDiagnosticToProtocol:()=>f4,formatMessage:()=>qhe,getBaseConfigFileName:()=>eZ,getLocationInNewDocument:()=>Yhe,hasArgument:()=>Hxe,hasNoTypeScriptSource:()=>Phe,indent:()=>nP,isBackgroundProject:()=>c4,isConfigFile:()=>Bhe,isConfiguredProject:()=>k0,isDynamicFileName:()=>s4,isExternalProject:()=>sZ,isInferredProject:()=>B2,isInferredProjectName:()=>che,makeAutoImportProviderProjectName:()=>dhe,makeAuxiliaryProjectName:()=>phe,makeInferredProjectName:()=>uhe,maxFileSize:()=>U9,maxProgramSizeForNonTsFiles:()=>j9,normalizedPathToPath:()=>a4,nowString:()=>Jxe,nullCancellationToken:()=>$he,nullTypingsInstaller:()=>B9,projectContainsInfoDirectly:()=>zI,protocol:()=>Dhe,removeSorted:()=>awe,stringifyIndented:()=>D0,toEvent:()=>Jhe,toNormalizedPath:()=>pl,tryConvertScriptKindName:()=>fZ,typingsInstaller:()=>ahe,updateProjectIfDirty:()=>Gp});var sT=A({"src/server/_namespaces/ts.server.ts"(){"use strict";VF(),she(),Got(),Vot(),jot(),Uot(),Jot(),$ot(),tat(),aat(),sat(),lat(),xat(),Rat(),Dat()}}),Nwe={};X(Nwe,{ANONYMOUS:()=>MW,AccessFlags:()=>jG,AssertionLevel:()=>mG,AssignmentDeclarationKind:()=>QG,AssignmentKind:()=>BU,Associativity:()=>VU,BreakpointResolver:()=>GY,BuilderFileEmit:()=>HJ,BuilderProgramKind:()=>qJ,BuilderState:()=>Pm,BundleFileSectionKind:()=>hV,CallHierarchy:()=>PI,CharacterCodes:()=>cV,CheckFlags:()=>WG,CheckMode:()=>H5,ClassificationType:()=>kK,ClassificationTypeNames:()=>LK,CommentDirectiveType:()=>TG,Comparison:()=>Be,CompletionInfoFlags:()=>xK,CompletionTriggerKind:()=>EK,Completions:()=>OI,ContainerFlags:()=>kq,ContextFlags:()=>CG,Debug:()=>C,DiagnosticCategory:()=>FM,Diagnostics:()=>f,DocumentHighlights:()=>wW,ElementFlags:()=>VG,EmitFlags:()=>t6,EmitHint:()=>fV,EmitOnly:()=>IG,EndOfLineState:()=>CK,EnumKind:()=>FG,ExitStatus:()=>xG,ExportKind:()=>VX,Extension:()=>uV,ExternalEmitHelpers:()=>pV,FileIncludeKind:()=>q8,FilePreprocessingDiagnosticsKind:()=>AG,FileSystemEntryKind:()=>SV,FileWatcherEventKind:()=>EV,FindAllReferences:()=>Os,FlattenLevel:()=>Qq,FlowFlags:()=>OM,ForegroundColorEscapeSequences:()=>FJ,FunctionFlags:()=>GU,GeneratedIdentifierFlags:()=>H8,GetLiteralTextFlags:()=>FU,GoToDefinition:()=>w2,HighlightSpanKind:()=>TK,IdentifierNameMap:()=>bI,IdentifierNameMultiMap:()=>$q,ImportKind:()=>GX,ImportsNotUsedAsValues:()=>iV,IndentStyle:()=>AK,IndexFlags:()=>UG,IndexKind:()=>JG,InferenceFlags:()=>YG,InferencePriority:()=>XG,InlayHintKind:()=>SK,InlayHints:()=>LQ,InternalEmitFlags:()=>dV,InternalSymbolName:()=>zG,InvalidatedProjectKind:()=>fK,JSDocParsingMode:()=>yV,JsDoc:()=>L0,JsTyping:()=>B_,JsxEmit:()=>rV,JsxFlags:()=>EG,JsxReferenceKind:()=>HG,LanguageServiceMode:()=>vK,LanguageVariant:()=>sV,LexicalEnvironmentFlags:()=>_V,ListFormat:()=>gV,LogLevel:()=>hG,MemberOverrideStatus:()=>RG,ModifierFlags:()=>j8,ModuleDetectionKind:()=>ZG,ModuleInstanceState:()=>Lq,ModuleKind:()=>tC,ModuleResolutionKind:()=>Fx,ModuleSpecifierEnding:()=>$U,NavigateTo:()=>Ade,NavigationBar:()=>kde,NewLineKind:()=>oV,NodeBuilderFlags:()=>NG,NodeCheckFlags:()=>BG,NodeFactoryFlags:()=>oH,NodeFlags:()=>V8,NodeResolutionFeatures:()=>Nq,ObjectFlags:()=>Y8,OperationCanceledException:()=>Ox,OperatorPrecedence:()=>jU,OrganizeImports:()=>Mm,OrganizeImportsMode:()=>bK,OuterExpressionKinds:()=>mV,OutliningElementsCollector:()=>FQ,OutliningSpanKind:()=>RK,OutputFileType:()=>DK,PackageJsonAutoImportPreference:()=>gK,PackageJsonDependencyGroup:()=>hK,PatternMatchKind:()=>OW,PollingInterval:()=>n6,PollingWatchKind:()=>nV,PragmaKindFlags:()=>vV,PrivateIdentifierKind:()=>pH,ProcessLevel:()=>nJ,ProgramUpdateLevel:()=>vJ,QuotePreference:()=>wX,RelationComparisonResult:()=>U8,Rename:()=>L9,ScriptElementKind:()=>PK,ScriptElementKindModifier:()=>MK,ScriptKind:()=>Q8,ScriptSnapshot:()=>UF,ScriptTarget:()=>aV,SemanticClassificationFormat:()=>yK,SemanticMeaning:()=>kX,SemicolonPreference:()=>IK,SignatureCheckMode:()=>q5,SignatureFlags:()=>$8,SignatureHelp:()=>QO,SignatureKind:()=>qG,SmartSelectionRange:()=>BQ,SnippetKind:()=>e6,SortKind:()=>fG,StructureIsReused:()=>J8,SymbolAccessibility:()=>LG,SymbolDisplay:()=>ty,SymbolDisplayPartKind:()=>Xw,SymbolFlags:()=>K8,SymbolFormatFlags:()=>MG,SyntaxKind:()=>G8,SyntheticSymbolKind:()=>kG,Ternary:()=>$G,ThrottledCancellationToken:()=>BY,TokenClass:()=>NK,TokenFlags:()=>SG,TransformFlags:()=>Z8,TypeFacts:()=>U5,TypeFlags:()=>X8,TypeFormatFlags:()=>PG,TypeMapKind:()=>KG,TypePredicateKind:()=>wG,TypeReferenceSerializationKind:()=>OG,UnionReduction:()=>DG,UpToDateStatusType:()=>cK,VarianceFlags:()=>GG,Version:()=>vm,VersionRange:()=>LM,WatchDirectoryFlags:()=>lV,WatchDirectoryKind:()=>tV,WatchFileKind:()=>eV,WatchLogLevel:()=>yJ,WatchType:()=>kc,accessPrivateIdentifier:()=>Ele,addDisposableResourceHelper:()=>j7,addEmitFlags:()=>M_,addEmitHelper:()=>XA,addEmitHelpers:()=>Vg,addInternalEmitFlags:()=>JA,addNodeFactoryPatcher:()=>mSe,addObjectAllocatorPatcher:()=>Toe,addRange:()=>Jr,addRelatedInfo:()=>ka,addSyntheticLeadingComment:()=>mN,addSyntheticTrailingComment:()=>h7,addToSeen:()=>xm,advancedAsyncSuperHelper:()=>Ok,affectsDeclarationPathOptionDeclarations:()=>pq,affectsEmitOptionDeclarations:()=>dq,allKeysStartWithDot:()=>F5,altDirectorySeparator:()=>HM,and:()=>w8,append:()=>In,appendIfUnique:()=>Ng,arrayFrom:()=>Vo,arrayIsEqualTo:()=>Jm,arrayIsHomogeneous:()=>joe,arrayIsSorted:()=>R8,arrayOf:()=>hne,arrayReverseIterator:()=>ZB,arrayToMap:()=>g1,arrayToMultiMap:()=>NM,arrayToNumericMap:()=>vne,arraysEqual:()=>Ma,assertType:()=>K0e,assign:()=>Cx,assignHelper:()=>T7,asyncDelegator:()=>I7,asyncGeneratorHelper:()=>A7,asyncSuperHelper:()=>wk,asyncValues:()=>x7,attachFileToDiagnostics:()=>VA,awaitHelper:()=>YA,awaiterHelper:()=>D7,base64decode:()=>poe,base64encode:()=>doe,binarySearch:()=>xv,binarySearchKey:()=>_A,bindSourceFile:()=>Yse,breakIntoCharacterSpans:()=>gde,breakIntoWordSpans:()=>vde,buildLinkParts:()=>Gue,buildOpts:()=>x5,buildOverload:()=>Qke,bundlerModuleNameResolver:()=>Bse,canBeConvertedToAsync:()=>ZX,canHaveDecorators:()=>US,canHaveExportModifier:()=>gk,canHaveFlowNode:()=>HL,canHaveIllegalDecorators:()=>GH,canHaveIllegalModifiers:()=>ese,canHaveIllegalType:()=>jSe,canHaveIllegalTypeParameters:()=>Zae,canHaveJSDoc:()=>qL,canHaveLocals:()=>ph,canHaveModifiers:()=>Cm,canHaveSymbol:()=>A_,canJsonReportNoInputFiles:()=>LN,canProduceDiagnostics:()=>oF,canUsePropertyAccess:()=>LU,canWatchAffectingLocation:()=>Dce,canWatchAtTypes:()=>Rce,canWatchDirectoryOrFile:()=>xF,cartesianProduct:()=>Dne,cast:()=>aa,chainBundle:()=>Nm,chainDiagnosticMessages:()=>Uo,changeAnyExtension:()=>jM,changeCompilerHostLikeToUseCache:()=>Fw,changeExtension:()=>m0,changeFullExtension:()=>Jne,changesAffectModuleResolution:()=>M6,changesAffectingProgramStructure:()=>Xre,childIsDecorated:()=>xC,classElementOrClassElementParameterIsDecorated:()=>xj,classHasClassThisAssignment:()=>Zq,classHasDeclaredOrExplicitlyAssignedName:()=>eJ,classHasExplicitlyAssignedName:()=>nF,classOrConstructorParameterIsDecorated:()=>Ov,classPrivateFieldGetHelper:()=>B7,classPrivateFieldInHelper:()=>V7,classPrivateFieldSetHelper:()=>G7,classicNameResolver:()=>qse,classifier:()=>Cpe,cleanExtendedConfigCache:()=>fF,clear:()=>Gi,clearMap:()=>ep,clearSharedExtendedConfigFileWatcher:()=>_J,climbPastPropertyAccess:()=>qF,climbPastPropertyOrElementAccess:()=>mue,clone:()=>iG,cloneCompilerOptions:()=>ZK,closeFileWatcher:()=>$m,closeFileWatcherOf:()=>Cf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>sre,collectExternalModuleInfo:()=>Jq,combine:()=>Dx,combinePaths:()=>Zr,commentPragmas:()=>WM,commonOptionsWithBuild:()=>pw,commonPackageFolders:()=>qU,compact:()=>CM,compareBooleans:()=>Ay,compareDataObjects:()=>hU,compareDiagnostics:()=>XC,compareDiagnosticsSkipRelatedInformation:()=>F3,compareEmitHelpers:()=>yae,compareNumberOfDirectorySeparators:()=>mk,comparePaths:()=>Pg,comparePathsCaseInsensitive:()=>E1e,comparePathsCaseSensitive:()=>b1e,comparePatternKeys:()=>Dq,compareProperties:()=>Ane,compareStringsCaseInsensitive:()=>L8,compareStringsCaseInsensitiveEslintCompatible:()=>Ene,compareStringsCaseSensitive:()=>ju,compareStringsCaseSensitiveUI:()=>MM,compareTextSpans:()=>M8,compareValues:()=>tl,compileOnSaveCommandLineOption:()=>uw,compilerOptionsAffectDeclarationPath:()=>Loe,compilerOptionsAffectEmit:()=>Moe,compilerOptionsAffectSemanticDiagnostics:()=>Poe,compilerOptionsDidYouMeanDiagnostics:()=>_w,compilerOptionsIndicateEsModules:()=>oX,compose:()=>q0e,computeCommonSourceDirectoryOfFilenames:()=>ace,computeLineAndCharacterOfPosition:()=>zx,computeLineOfPosition:()=>oC,computeLineStarts:()=>TA,computePositionOfLineAndCharacter:()=>c6,computeSignature:()=>YS,computeSignatureWithDiagnostics:()=>GJ,computeSuggestionDiagnostics:()=>YX,computedOptions:()=>mc,concatenate:()=>xo,concatenateDiagnosticMessageChains:()=>Roe,consumesNodeCoreModules:()=>IW,contains:()=>wr,containsIgnoredPath:()=>iN,containsObjectRestOrSpread:()=>tw,containsParseError:()=>$x,containsPath:()=>ym,convertCompilerOptionsForTelemetry:()=>Tse,convertCompilerOptionsFromJson:()=>qTe,convertJsonOption:()=>HS,convertToBase64:()=>uoe,convertToJson:()=>sw,convertToObject:()=>vse,convertToOptionsWithAbsolutePaths:()=>oq,convertToRelativePath:()=>iC,convertToTSConfig:()=>MTe,convertTypeAcquisitionFromJson:()=>JTe,copyComments:()=>eT,copyEntries:()=>L6,copyLeadingComments:()=>S2,copyProperties:()=>oG,copyTrailingAsLeadingComments:()=>_O,copyTrailingComments:()=>pP,couldStartTrivia:()=>$ne,countWhere:()=>au,createAbstractBuilder:()=>ZIe,createAccessorPropertyBackingField:()=>jH,createAccessorPropertyGetRedirector:()=>lse,createAccessorPropertySetRedirector:()=>cse,createBaseNodeFactory:()=>rae,createBinaryExpressionTrampoline:()=>m5,createBindingHelper:()=>wR,createBuildInfo:()=>Mw,createBuilderProgram:()=>VJ,createBuilderProgramUsingProgramBuildInfo:()=>Ice,createBuilderStatusReporter:()=>Vce,createCacheWithRedirects:()=>bq,createCacheableExportInfoMap:()=>WX,createCachedDirectoryStructureHost:()=>dF,createClassNamedEvaluationHelperBlock:()=>Rle,createClassThisAssignmentBlock:()=>Ile,createClassifier:()=>hRe,createCommentDirectivesMap:()=>tie,createCompilerDiagnostic:()=>Vl,createCompilerDiagnosticForInvalidCustomType:()=>fse,createCompilerDiagnosticFromMessageChain:()=>O3,createCompilerHost:()=>sce,createCompilerHostFromProgramHost:()=>oK,createCompilerHostWorker:()=>SJ,createDetachedDiagnostic:()=>RR,createDiagnosticCollection:()=>vR,createDiagnosticForFileFromMessageChain:()=>Ej,createDiagnosticForNode:()=>Or,createDiagnosticForNodeArray:()=>eR,createDiagnosticForNodeArrayFromMessageChain:()=>AL,createDiagnosticForNodeFromMessageChain:()=>Og,createDiagnosticForNodeInSourceFile:()=>Yf,createDiagnosticForRange:()=>fie,createDiagnosticMessageChainFromDiagnostic:()=>pie,createDiagnosticReporter:()=>Vw,createDocumentPositionMapper:()=>_le,createDocumentRegistry:()=>ade,createDocumentRegistryInternal:()=>HX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>JJ,createEmitHelperFactory:()=>vae,createEmptyExports:()=>Jk,createExpressionForJsxElement:()=>qae,createExpressionForJsxFragment:()=>Jae,createExpressionForObjectLiteralElementLike:()=>Kae,createExpressionForPropertyName:()=>wH,createExpressionFromEntityName:()=>Kk,createExternalHelpersImportDeclarationIfNeeded:()=>WH,createFileDiagnostic:()=>Qc,createFileDiagnosticFromMessageChain:()=>V6,createForOfBindingStatement:()=>kH,createGetCanonicalFileName:()=>Pu,createGetSourceFile:()=>bJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Jv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>$le,createGetSymbolWalker:()=>$se,createIncrementalCompilerHost:()=>sK,createIncrementalProgram:()=>Bce,createInputFiles:()=>hSe,createInputFilesWithFilePaths:()=>rH,createInputFilesWithFileTexts:()=>iH,createJsxFactoryExpression:()=>LH,createLanguageService:()=>Tpe,createLanguageServiceSourceFile:()=>a9,createMemberAccessForPropertyName:()=>jS,createModeAwareCache:()=>vI,createModeAwareCacheKey:()=>WN,createModuleNotFoundChain:()=>k6,createModuleResolutionCache:()=>e2,createModuleResolutionLoader:()=>DJ,createModuleResolutionLoaderUsingGlobalCache:()=>Mce,createModuleSpecifierResolutionHost:()=>ZS,createMultiMap:()=>Xp,createNodeConverters:()=>oae,createNodeFactory:()=>Rk,createOptionNameMap:()=>g5,createOverload:()=>YQ,createPackageJsonImportFilter:()=>_P,createPackageJsonInfo:()=>xX,createParenthesizerRules:()=>iae,createPatternMatcher:()=>dde,createPrependNodes:()=>wJ,createPrinter:()=>x0,createPrinterWithDefaults:()=>fJ,createPrinterWithRemoveComments:()=>oE,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>mJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Lw,createProgram:()=>vF,createProgramHost:()=>aK,createPropertyNameNodeForIdentifierOrLiteral:()=>e7,createQueue:()=>PM,createRange:()=>Tf,createRedirectedBuilderProgram:()=>UJ,createResolutionCache:()=>XJ,createRuntimeTypeSerializer:()=>Mle,createScanner:()=>Mv,createSemanticDiagnosticsBuilderProgram:()=>QIe,createSet:()=>aG,createSolutionBuilder:()=>_xe,createSolutionBuilderHost:()=>fxe,createSolutionBuilderWithWatch:()=>hxe,createSolutionBuilderWithWatchHost:()=>mxe,createSortedArray:()=>QB,createSourceFile:()=>rw,createSourceMapGenerator:()=>dle,createSourceMapSource:()=>gSe,createSuperAccessVariableStatement:()=>iF,createSymbolTable:()=>ua,createSymlinkCache:()=>TU,createSystemWatchFunctions:()=>jne,createTextChange:()=>aO,createTextChangeFromStartLength:()=>aW,createTextChangeRange:()=>tL,createTextRangeFromNode:()=>nX,createTextRangeFromSpan:()=>oW,createTextSpan:()=>vu,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Rd,createTextSpanFromRange:()=>ib,createTextSpanFromStringLiteralLikeContent:()=>tX,createTextWriter:()=>ik,createTokenRange:()=>fU,createTypeChecker:()=>ole,createTypeReferenceDirectiveResolutionCache:()=>k5,createTypeReferenceResolutionLoader:()=>_F,createUnparsedSourceFile:()=>nH,createWatchCompilerHost:()=>uxe,createWatchCompilerHostOfConfigFile:()=>Fce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Wce,createWatchFactory:()=>iK,createWatchHost:()=>rK,createWatchProgram:()=>dxe,createWatchStatusReporter:()=>Lce,createWriteFileMeasuringIO:()=>EJ,declarationNameToString:()=>Ds,decodeMappings:()=>Uq,decodedTextSpanIntersectsWith:()=>eL,decorateHelper:()=>v7,deduplicate:()=>h1,defaultIncludeSpec:()=>C5,defaultInitCompilerOptions:()=>R5,defaultMaximumTruncationLength:()=>Ek,detectSortCaseSensitivity:()=>YD,diagnosticCategoryName:()=>aS,diagnosticToString:()=>nT,directoryProbablyExists:()=>Ym,directorySeparator:()=>il,displayPart:()=>rp,displayPartsToString:()=>OO,disposeEmitNodes:()=>aH,disposeResourcesHelper:()=>U7,documentSpansEqual:()=>uX,dumpTracingLegend:()=>Bne,elementAt:()=>Nv,elideNodes:()=>sse,emitComments:()=>Zie,emitDetachedComments:()=>eoe,emitFiles:()=>lF,emitFilesAndReportErrors:()=>NF,emitFilesAndReportErrorsAndGetExitStatus:()=>Oce,emitModuleKindIsNonNodeESM:()=>W3,emitNewLineBeforeLeadingCommentOfPosition:()=>Qie,emitNewLineBeforeLeadingComments:()=>Yie,emitNewLineBeforeLeadingCommentsOfPosition:()=>$ie,emitSkippedWithNoDiagnostics:()=>TF,emitUsingBuildInfo:()=>nce,emptyArray:()=>et,emptyFileSystemEntries:()=>p7,emptyMap:()=>z8,emptyOptions:()=>Pf,emptySet:()=>Nne,endsWith:()=>Sl,ensurePathIsNonModuleName:()=>v1,ensureScriptKind:()=>J3,ensureTrailingDirectorySeparator:()=>zc,entityNameToString:()=>fp,enumerateInsertsAndDeletes:()=>F8,equalOwnProperties:()=>gne,equateStringsCaseInsensitive:()=>Yb,equateStringsCaseSensitive:()=>rS,equateValues:()=>Cv,esDecorateHelper:()=>E7,escapeJsxAttributeString:()=>Zj,escapeLeadingUnderscores:()=>ml,escapeNonAsciiString:()=>rk,escapeSnippetText:()=>G1,escapeString:()=>rg,escapeTemplateSubstitution:()=>$j,every:()=>Jn,expandPreOrPostfixIncrementOrDecrementExpression:()=>l5,explainFiles:()=>QJ,explainIfFileIsRedirectAndImpliedFormat:()=>ZJ,exportAssignmentIsAlias:()=>mR,exportStarHelper:()=>z7,expressionResultIsUnused:()=>Hoe,extend:()=>P8,extendsHelper:()=>C7,extensionFromPath:()=>ZC,extensionIsTS:()=>Y3,extensionsNotSupportingExtensionlessResolution:()=>xk,externalHelpersModuleNameText:()=>Hy,factory:()=>k,fileExtensionIs:()=>Tl,fileExtensionIsOneOf:()=>Ec,fileIncludeReasonToDiagnostics:()=>nK,fileShouldUseJavaScriptRequire:()=>LX,filter:()=>tr,filterMutate:()=>Bi,filterSemanticDiagnostics:()=>yF,find:()=>vn,findAncestor:()=>zn,findBestPatternMatch:()=>uG,findChildOfKind:()=>bs,findComputedPropertyNameCacheAssignment:()=>_5,findConfigFile:()=>oce,findContainingList:()=>$F,findDiagnosticForNode:()=>Que,findFirstNonJsxWhitespaceToken:()=>yue,findIndex:()=>ri,findLast:()=>Qr,findLastIndex:()=>to,findListItemInfo:()=>vue,findMap:()=>Ga,findModifier:()=>y2,findNextToken:()=>lE,findPackageJson:()=>Yue,findPackageJsons:()=>IX,findPrecedingMatchingToken:()=>rW,findPrecedingToken:()=>Ac,findSuperStatementIndexPath:()=>Z5,findTokenOnLeftOfPosition:()=>eW,findUseStrictPrologue:()=>FH,first:()=>Ha,firstDefined:()=>Zt,firstDefinedIterator:()=>ir,firstIterator:()=>tG,firstOrOnly:()=>NX,firstOrUndefined:()=>Xc,firstOrUndefinedIterator:()=>D8,fixupCompilerOptions:()=>tY,flatMap:()=>Zi,flatMapIterator:()=>qf,flatMapToMutable:()=>$d,flatten:()=>ts,flattenCommaList:()=>use,flattenDestructuringAssignment:()=>JS,flattenDestructuringBinding:()=>iE,flattenDiagnosticMessageText:()=>W_,forEach:()=>Ke,forEachAncestor:()=>Yre,forEachAncestorDirectory:()=>Em,forEachChild:()=>Ho,forEachChildRecursively:()=>PN,forEachEmittedFile:()=>cJ,forEachEnclosingBlockScopeContainer:()=>cie,forEachEntry:()=>Bc,forEachExternalModuleToImportFrom:()=>BX,forEachImportClauseDeclaration:()=>d3,forEachKey:()=>mh,forEachLeadingCommentRange:()=>XM,forEachNameInAccessChainWalkingLeft:()=>Eoe,forEachPropertyAssignment:()=>iR,forEachResolvedProjectReference:()=>NJ,forEachReturnStatement:()=>R1,forEachRight:()=>Gt,forEachTrailingCommentRange:()=>YM,forEachTsConfigPropArray:()=>DL,forEachUnique:()=>pX,forEachYieldExpression:()=>_ie,forSomeAncestorDirectory:()=>zEe,formatColorAndReset:()=>aE,formatDiagnostic:()=>TJ,formatDiagnostics:()=>LIe,formatDiagnosticsWithColorAndContext:()=>lce,formatGeneratedName:()=>E0,formatGeneratedNamePart:()=>XR,formatLocation:()=>AJ,formatMessage:()=>bU,formatStringFromArgs:()=>ag,formatting:()=>wc,fullTripleSlashAMDReferencePathRegEx:()=>zU,fullTripleSlashReferencePathRegEx:()=>WU,generateDjb2Hash:()=>nC,generateTSConfig:()=>FTe,generatorHelper:()=>O7,getAdjustedReferenceLocation:()=>JK,getAdjustedRenameLocation:()=>ZF,getAliasDeclarationFromName:()=>Bj,getAllAccessorDeclarations:()=>RS,getAllDecoratorsOfClass:()=>Xq,getAllDecoratorsOfClassElement:()=>tF,getAllJSDocTags:()=>g6,getAllJSDocTagsOfKind:()=>Y1e,getAllKeys:()=>U0e,getAllProjectOutputs:()=>sF,getAllSuperTypeNodes:()=>PC,getAllUnscopedEmitHelpers:()=>dH,getAllowJSCompilerOption:()=>qy,getAllowSyntheticDefaultImports:()=>NS,getAncestor:()=>p0,getAnyExtensionFromPath:()=>Wx,getAreDeclarationMapsEnabled:()=>Tk,getAssignedExpandoInitializer:()=>PA,getAssignedName:()=>_6,getAssignedNameOfIdentifier:()=>HN,getAssignmentDeclarationKind:()=>Wl,getAssignmentDeclarationPropertyAccessKind:()=>BL,getAssignmentTargetKind:()=>wA,getAutomaticTypeDirectiveNames:()=>M5,getBaseFileName:()=>rc,getBinaryOperatorPrecedence:()=>nk,getBuildInfo:()=>cF,getBuildInfoFileVersionMap:()=>jJ,getBuildInfoText:()=>tce,getBuildOrderFromAnyBuildOrder:()=>wF,getBuilderCreationParameters:()=>AF,getBuilderFileEmit:()=>rb,getCheckFlags:()=>Al,getClassExtendsHeritageElement:()=>M1,getClassLikeDeclarationOfSymbol:()=>Bg,getCombinedLocalAndExportSymbolFlags:()=>AR,getCombinedModifierFlags:()=>t0,getCombinedNodeFlags:()=>Lv,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>kV,getCommentRange:()=>L_,getCommonSourceDirectory:()=>QN,getCommonSourceDirectoryOfConfig:()=>a2,getCompilerOptionValue:()=>B3,getCompilerOptionsDiffValue:()=>wTe,getConditions:()=>tb,getConfigFileParsingDiagnostics:()=>XS,getConstantValue:()=>dae,getContainerFlags:()=>Mq,getContainerNode:()=>QS,getContainingClass:()=>su,getContainingClassExcludingClassDecorators:()=>$6,getContainingClassStaticBlock:()=>Aie,getContainingFunction:()=>zp,getContainingFunctionDeclaration:()=>Tie,getContainingFunctionOrClassStaticBlock:()=>Y6,getContainingNodeArray:()=>qoe,getContainingObjectLiteralElement:()=>FO,getContextualTypeFromParent:()=>gW,getContextualTypeFromParentOrAncestorTypeNode:()=>QF,getCurrentTime:()=>Uw,getDeclarationDiagnostics:()=>Qle,getDeclarationEmitExtensionForPath:()=>b3,getDeclarationEmitOutputFilePath:()=>Hie,getDeclarationEmitOutputFilePathWorker:()=>y3,getDeclarationFileExtension:()=>JH,getDeclarationFromName:()=>NC,getDeclarationModifierFlagsFromSymbol:()=>If,getDeclarationOfKind:()=>dl,getDeclarationsOfKind:()=>Jre,getDeclaredExpandoInitializer:()=>OL,getDecorators:()=>Ny,getDefaultCompilerOptions:()=>o9,getDefaultExportInfoWorker:()=>kW,getDefaultFormatCodeSettings:()=>jF,getDefaultLibFileName:()=>QM,getDefaultLibFilePath:()=>Ape,getDefaultLikeExportInfo:()=>LW,getDiagnosticText:()=>ITe,getDiagnosticsWithinSpan:()=>Zue,getDirectoryPath:()=>li,getDirectoryToWatchFailedLookupLocation:()=>KJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Nce,getDocumentPositionMapper:()=>XX,getDocumentSpansEqualityComparer:()=>dX,getESModuleInterop:()=>vh,getEditsForFileRename:()=>lde,getEffectiveBaseTypeNode:()=>x_,getEffectiveConstraintOfTypeParameter:()=>Ux,getEffectiveContainerForJSDocTemplateTag:()=>p3,getEffectiveImplementsTypeNodes:()=>_R,getEffectiveInitializer:()=>wL,getEffectiveJSDocHost:()=>d0,getEffectiveModifierFlags:()=>cd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>ioe,getEffectiveModifierFlagsNoCache:()=>ooe,getEffectiveReturnTypeNode:()=>tm,getEffectiveSetAccessorTypeAnnotationNode:()=>Xie,getEffectiveTypeAnnotationNode:()=>yu,getEffectiveTypeParameterDeclarations:()=>Py,getEffectiveTypeRoots:()=>FN,getElementOrPropertyAccessArgumentExpressionOrName:()=>u3,getElementOrPropertyAccessName:()=>Fg,getElementsOfBindingOrAssignmentPattern:()=>KR,getEmitDeclarations:()=>xf,getEmitFlags:()=>Va,getEmitHelpers:()=>g7,getEmitModuleDetectionKind:()=>UU,getEmitModuleKind:()=>ku,getEmitModuleResolutionKind:()=>dd,getEmitScriptTarget:()=>as,getEmitStandardClassFields:()=>Noe,getEnclosingBlockScopeContainer:()=>_h,getEnclosingContainer:()=>bj,getEncodedSemanticClassifications:()=>jX,getEncodedSyntacticClassifications:()=>UX,getEndLinePosition:()=>bL,getEntityNameFromTypeNode:()=>PL,getEntrypointsFromPackageJsonInfo:()=>Iq,getErrorCountForSummary:()=>DF,getErrorSpanForNode:()=>hS,getErrorSummaryText:()=>kce,getEscapedTextOfIdentifierOrLiteral:()=>kC,getEscapedTextOfJsxAttributeName:()=>lN,getEscapedTextOfJsxNamespacedName:()=>HA,getExpandoInitializer:()=>c0,getExportAssignmentExpression:()=>Gj,getExportInfoMap:()=>bO,getExportNeedsImportStarHelper:()=>hle,getExpressionAssociativity:()=>Kj,getExpressionPrecedence:()=>OC,getExternalHelpersModuleName:()=>Yk,getExternalModuleImportEqualsDeclarationExpression:()=>RC,getExternalModuleName:()=>uR,getExternalModuleNameFromDeclaration:()=>jie,getExternalModuleNameFromPath:()=>tU,getExternalModuleNameLiteral:()=>mI,getExternalModuleRequireArgument:()=>Dj,getFallbackOptions:()=>Ow,getFileEmitOutput:()=>_ce,getFileMatcherPatterns:()=>q3,getFileNamesFromConfigSpecs:()=>kN,getFileWatcherEventKind:()=>bV,getFilesInErrorForSummary:()=>CF,getFirstConstructorWithBody:()=>ig,getFirstIdentifier:()=>Bp,getFirstNonSpaceCharacterPosition:()=>Uue,getFirstProjectOutput:()=>pJ,getFixableErrorSpanExpression:()=>DX,getFormatCodeSettingsForWriting:()=>CW,getFullWidth:()=>vL,getFunctionFlags:()=>Gc,getHeritageClause:()=>QL,getHostSignatureFromJSDoc:()=>u0,getIdentifierAutoGenerate:()=>SSe,getIdentifierGeneratedImportReference:()=>gae,getIdentifierTypeArguments:()=>PS,getImmediatelyInvokedFunctionExpression:()=>vS,getImpliedNodeFormatForFile:()=>Bw,getImpliedNodeFormatForFileWorker:()=>LJ,getImportNeedsImportDefaultHelper:()=>qq,getImportNeedsImportStarHelper:()=>$5,getIndentSize:()=>bR,getIndentString:()=>g3,getInferredLibraryNameResolveFrom:()=>gF,getInitializedVariables:()=>qC,getInitializerOfBinaryExpression:()=>Lj,getInitializerOfBindingOrAssignmentElement:()=>Qk,getInterfaceBaseTypeNodes:()=>MC,getInternalEmitFlags:()=>Tm,getInvokedExpression:()=>e3,getIsolatedModules:()=>im,getJSDocAugmentsTag:()=>hre,getJSDocClassTag:()=>OV,getJSDocCommentRanges:()=>Tj,getJSDocCommentsAndTags:()=>wj,getJSDocDeprecatedTag:()=>FV,getJSDocDeprecatedTagNoCache:()=>Tre,getJSDocEnumTag:()=>WV,getJSDocHost:()=>SS,getJSDocImplementsTags:()=>gre,getJSDocOverloadTags:()=>Fj,getJSDocOverrideTagNoCache:()=>Sre,getJSDocParameterTags:()=>jx,getJSDocParameterTagsNoCache:()=>pre,getJSDocPrivateTag:()=>H1e,getJSDocPrivateTagNoCache:()=>yre,getJSDocProtectedTag:()=>q1e,getJSDocProtectedTagNoCache:()=>bre,getJSDocPublicTag:()=>U1e,getJSDocPublicTagNoCache:()=>vre,getJSDocReadonlyTag:()=>J1e,getJSDocReadonlyTagNoCache:()=>Ere,getJSDocReturnTag:()=>Are,getJSDocReturnType:()=>rL,getJSDocRoot:()=>fR,getJSDocSatisfiesExpressionType:()=>wU,getJSDocSatisfiesTag:()=>zV,getJSDocTags:()=>o0,getJSDocTagsNoCache:()=>X1e,getJSDocTemplateTag:()=>K1e,getJSDocThisTag:()=>h6,getJSDocType:()=>i0,getJSDocTypeAliasName:()=>BH,getJSDocTypeAssertionType:()=>u5,getJSDocTypeParameterDeclarations:()=>A3,getJSDocTypeParameterTags:()=>fre,getJSDocTypeParameterTagsNoCache:()=>mre,getJSDocTypeTag:()=>r0,getJSXImplicitImportBase:()=>V3,getJSXRuntimeImport:()=>j3,getJSXTransformEnabled:()=>G3,getKeyForCompilerOptions:()=>yq,getLanguageVariant:()=>dk,getLastChild:()=>gU,getLeadingCommentRanges:()=>Kh,getLeadingCommentRangesOfNode:()=>Sj,getLeftmostAccessExpression:()=>IR,getLeftmostExpression:()=>xR,getLibraryNameFromLibFileName:()=>PJ,getLineAndCharacterOfPosition:()=>Es,getLineInfo:()=>Vq,getLineOfLocalPosition:()=>WC,getLineOfLocalPositionFromLineMap:()=>IS,getLineStartPositionForPosition:()=>sm,getLineStarts:()=>Mg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>goe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>hoe,getLinesBetweenPositions:()=>aC,getLinesBetweenRangeEndAndRangeStart:()=>mU,getLinesBetweenRangeEndPositions:()=>FEe,getLiteralText:()=>nie,getLocalNameForExternalImport:()=>JR,getLocalSymbolForExportDefault:()=>TR,getLocaleSpecificMessage:()=>Bo,getLocaleTimeString:()=>jw,getMappedContextSpan:()=>fX,getMappedDocumentSpan:()=>fW,getMappedLocation:()=>cP,getMatchedFileSpec:()=>eK,getMatchedIncludeSpec:()=>tK,getMeaningFromDeclaration:()=>Yw,getMeaningFromLocation:()=>$S,getMembersOfDeclaration:()=>hie,getModeForFileReference:()=>Ww,getModeForResolutionAtIndex:()=>cce,getModeForUsageLocation:()=>xJ,getModifiedTime:()=>bA,getModifiers:()=>b1,getModuleInstanceState:()=>qg,getModuleNameStringLiteralAt:()=>Gw,getModuleSpecifierEndingPreference:()=>Foe,getModuleSpecifierResolverHost:()=>aX,getNameForExportedSymbol:()=>xW,getNameFromImportAttribute:()=>i7,getNameFromIndexInfo:()=>uie,getNameFromPropertyName:()=>cO,getNameOfAccessExpression:()=>yU,getNameOfCompilerOptionValue:()=>iq,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>Pj,getNameOfJSDocTypedef:()=>dre,getNameOrArgument:()=>zL,getNameTable:()=>wY,getNamesForExportedSymbol:()=>ede,getNamespaceDeclarationNode:()=>dR,getNewLineCharacter:()=>Gv,getNewLineKind:()=>yO,getNewLineOrDefaultFromHost:()=>Qv,getNewTargetContainer:()=>xie,getNextJSDocCommentLocation:()=>Oj,getNodeForGeneratedName:()=>ew,getNodeId:()=>ss,getNodeKind:()=>sE,getNodeModifiers:()=>aP,getNodeModulePathParts:()=>t7,getNonAssignedNameOfDeclaration:()=>m6,getNonAssignmentOperatorForCompoundAssignment:()=>VN,getNonAugmentationDeclaration:()=>mj,getNonDecoratorTokenPosOfNode:()=>cj,getNormalizedAbsolutePath:()=>bo,getNormalizedAbsolutePathWithoutRoot:()=>xV,getNormalizedPathComponents:()=>VM,getObjectFlags:()=>Wr,getOperator:()=>Yj,getOperatorAssociativity:()=>Xj,getOperatorPrecedence:()=>tk,getOptionFromName:()=>eq,getOptionsForLibraryResolution:()=>Eq,getOptionsNameMap:()=>$R,getOrCreateEmitNode:()=>wu,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Qae,getOrUpdate:()=>mA,getOriginalNode:()=>Nl,getOriginalNodeId:()=>Ou,getOriginalSourceFile:()=>REe,getOutputDeclarationFileName:()=>$N,getOutputDeclarationFileNameWorker:()=>uJ,getOutputExtension:()=>aF,getOutputFileNames:()=>PIe,getOutputJSFileNameWorker:()=>dJ,getOutputPathsFor:()=>YN,getOutputPathsForBundle:()=>XN,getOwnEmitOutputFilePath:()=>Uie,getOwnKeys:()=>Jh,getOwnValues:()=>hA,getPackageJsonInfo:()=>eE,getPackageJsonTypesVersionsPaths:()=>P5,getPackageJsonsVisibleToFile:()=>$ue,getPackageNameFromTypesPackageName:()=>zN,getPackageScopeForPath:()=>bw,getParameterSymbolFromJSDoc:()=>JL,getParameterTypeNode:()=>KEe,getParentNodeInSpan:()=>dO,getParseTreeNode:()=>Lo,getParsedCommandLineOfConfigFile:()=>ow,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>DV,getPathFromPathComponents:()=>Ry,getPathUpdater:()=>JX,getPathsBasePath:()=>E3,getPatternFromSpec:()=>koe,getPendingEmitKind:()=>d2,getPositionOfLineAndCharacter:()=>JM,getPossibleGenericSignatures:()=>XK,getPossibleOriginalInputExtensionForExtension:()=>qie,getPossibleTypeArgumentsInfo:()=>YK,getPreEmitDiagnostics:()=>MIe,getPrecedingNonSpaceCharacterPosition:()=>_W,getPrivateIdentifier:()=>Yq,getProperties:()=>Kq,getProperty:()=>C8,getPropertyArrayElementValue:()=>Sie,getPropertyAssignmentAliasLikeExpression:()=>zie,getPropertyNameForPropertyNameNode:()=>TS,getPropertyNameForUniqueESSymbol:()=>IEe,getPropertyNameFromType:()=>rm,getPropertyNameOfBindingOrAssignmentElement:()=>zH,getPropertySymbolFromBindingElement:()=>pW,getPropertySymbolsFromContextualType:()=>s9,getQuoteFromPreference:()=>lX,getQuotePreference:()=>af,getRangesWhere:()=>$B,getRefactorContextSpan:()=>DI,getReferencedFileLocation:()=>ZN,getRegexFromPattern:()=>jy,getRegularExpressionForWildcard:()=>YC,getRegularExpressionsForWildcards:()=>U3,getRelativePathFromDirectory:()=>bm,getRelativePathFromFile:()=>UM,getRelativePathToDirectoryOrUrl:()=>SA,getRenameLocation:()=>mO,getReplacementSpanForContextToken:()=>eX,getResolutionDiagnostic:()=>OJ,getResolutionModeOverride:()=>s2,getResolveJsonModule:()=>h0,getResolvePackageJsonExports:()=>c7,getResolvePackageJsonImports:()=>u7,getResolvedExternalModuleName:()=>v3,getRestIndicatorOfBindingOrAssignmentElement:()=>p5,getRestParameterElementType:()=>Aj,getRightMostAssignedExpression:()=>FL,getRootDeclaration:()=>D_,getRootDirectoryOfResolutionCache:()=>Pce,getRootLength:()=>dh,getRootPathSplitLength:()=>rxe,getScriptKind:()=>vX,getScriptKindFromFileName:()=>K3,getScriptTargetFeatures:()=>s7,getSelectedEffectiveModifierFlags:()=>WA,getSelectedSyntacticModifierFlags:()=>noe,getSemanticClassifications:()=>ide,getSemanticJsxChildren:()=>gR,getSetAccessorTypeAnnotationNode:()=>Jie,getSetAccessorValueParameter:()=>zC,getSetExternalModuleIndicator:()=>pk,getShebang:()=>d6,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>kj,getSingleVariableOfVariableStatement:()=>kA,getSnapshotText:()=>v2,getSnippetElement:()=>sH,getSourceFileOfModule:()=>O6,getSourceFileOfNode:()=>Vn,getSourceFilePathInNewDir:()=>S3,getSourceFilePathInNewDirWorker:()=>T3,getSourceFileVersionAsHashFromText:()=>PF,getSourceFilesToEmit:()=>nU,getSourceMapRange:()=>jv,getSourceMapper:()=>bde,getSourceTextOfNodeFromSourceFile:()=>A1,getSpanOfTokenAtPosition:()=>hh,getSpellingSuggestion:()=>QD,getStartPositionOfLine:()=>Wy,getStartPositionOfRange:()=>HC,getStartsOnNewLine:()=>fN,getStaticPropertiesAndClassStaticBlock:()=>eF,getStrictOptionValue:()=>ud,getStringComparer:()=>Nx,getSubPatternFromSpec:()=>H3,getSuperCallFromStatement:()=>Q5,getSuperContainer:()=>CL,getSupportedCodeFixes:()=>LY,getSupportedExtensions:()=>$C,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>fk,getSwitchedType:()=>TX,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>ZL,getSymbolTarget:()=>yX,getSyntacticClassifications:()=>ode,getSyntacticModifierFlags:()=>Gy,getSyntacticModifierFlagsNoCache:()=>aU,getSynthesizedDeepClone:()=>sl,getSynthesizedDeepCloneWithReplacements:()=>fO,getSynthesizedDeepClones:()=>cE,getSynthesizedDeepClonesWithReplacements:()=>bX,getSyntheticLeadingComments:()=>kR,getSyntheticTrailingComments:()=>Mk,getTargetLabel:()=>JF,getTargetOfBindingOrAssignmentElement:()=>eb,getTemporaryModuleResolutionState:()=>yw,getTextOfConstantValue:()=>rie,getTextOfIdentifierOrLiteral:()=>Zf,getTextOfJSDocComment:()=>oL,getTextOfJsxAttributeName:()=>bk,getTextOfJsxNamespacedName:()=>cN,getTextOfNode:()=>pc,getTextOfNodeFromSourceText:()=>EC,getTextOfPropertyName:()=>Zx,getThisContainer:()=>wd,getThisParameter:()=>k1,getTokenAtPosition:()=>po,getTokenPosOfNode:()=>s0,getTokenSourceMapRange:()=>bSe,getTouchingPropertyName:()=>zd,getTouchingToken:()=>g2,getTrailingCommentRanges:()=>Qb,getTrailingSemicolonDeferringWriter:()=>eU,getTransformFlagsSubtreeExclusions:()=>aae,getTransformers:()=>sJ,getTsBuildInfoEmitOutputFilePath:()=>Kv,getTsConfigObjectLiteralExpression:()=>IC,getTsConfigPropArrayElementValue:()=>X6,getTypeAnnotationNode:()=>Kie,getTypeArgumentOrTypeParameterList:()=>Rue,getTypeKeywordOfTypeOnlyImport:()=>cX,getTypeNode:()=>_ae,getTypeNodeIfAccessible:()=>mP,getTypeParameterFromJsDoc:()=>Lie,getTypeParameterOwner:()=>z1e,getTypesPackageName:()=>W5,getUILocale:()=>Sne,getUniqueName:()=>tT,getUniqueSymbolId:()=>jue,getUseDefineForClassFields:()=>pN,getWatchErrorSummaryDiagnosticMessage:()=>YJ,getWatchFactory:()=>gJ,group:()=>$D,groupBy:()=>N8,guessIndentation:()=>Hre,handleNoEmitOptions:()=>kJ,hasAbstractModifier:()=>F1,hasAccessorModifier:()=>C_,hasAmbientModifier:()=>oU,hasChangesInResolutions:()=>aj,hasChildOfKind:()=>rO,hasContextSensitiveParameters:()=>Z3,hasDecorators:()=>Sf,hasDocComment:()=>Iue,hasDynamicName:()=>By,hasEffectiveModifier:()=>_p,hasEffectiveModifiers:()=>I3,hasEffectiveReadonlyModifier:()=>BC,hasExtension:()=>EA,hasIndexSignature:()=>SX,hasInitializer:()=>Oy,hasInvalidEscape:()=>Qj,hasJSDocNodes:()=>Op,hasJSDocParameterTags:()=>_re,hasJSFileExtension:()=>W1,hasJsonModuleEmitEnabled:()=>z3,hasOnlyExpressionInitializer:()=>fS,hasOverrideModifier:()=>x3,hasPossibleExternalModuleReference:()=>lie,hasProperty:()=>Rs,hasPropertyAccessExpressionWithName:()=>Qw,hasQuestionToken:()=>LA,hasRecordedExternalHelpers:()=>$ae,hasResolutionModeOverride:()=>$oe,hasRestParameter:()=>nj,hasScopeMarker:()=>Fre,hasStaticModifier:()=>fc,hasSyntacticModifier:()=>ei,hasSyntacticModifiers:()=>toe,hasTSFileExtension:()=>UA,hasTabstop:()=>Koe,hasTrailingDirectorySeparator:()=>Pv,hasType:()=>N6,hasTypeArguments:()=>bEe,hasZeroOrOneAsteriskCharacter:()=>SU,helperString:()=>uH,hostGetCanonicalFileName:()=>Wv,hostUsesCaseSensitiveFileNames:()=>ER,idText:()=>Sr,identifierIsThisKeyword:()=>iU,identifierToKeywordKind:()=>n0,identity:()=>el,identitySourceMapConsumer:()=>Y5,ignoreSourceNewlines:()=>cH,ignoredPaths:()=>GM,importDefaultHelper:()=>W7,importFromModuleSpecifier:()=>CC,importNameElisionDisabled:()=>EU,importStarHelper:()=>kk,indexOfAnyCharCode:()=>Kc,indexOfNode:()=>Qx,indicesOf:()=>DM,inferredTypesContainingFile:()=>u2,injectClassNamedEvaluationHelperBlockIfMissing:()=>rF,injectClassThisAssignmentIfMissing:()=>xle,insertImports:()=>lP,insertLeadingStatement:()=>zSe,insertSorted:()=>Ty,insertStatementAfterCustomPrologue:()=>mS,insertStatementAfterStandardPrologue:()=>uEe,insertStatementsAfterCustomPrologue:()=>sj,insertStatementsAfterStandardPrologue:()=>Qh,intersperse:()=>Qi,intrinsicTagNameToString:()=>OU,introducesArgumentsExoticObject:()=>bie,inverseJsxOptionMap:()=>wN,isAbstractConstructorSymbol:()=>voe,isAbstractModifier:()=>Iae,isAccessExpression:()=>ks,isAccessibilityModifier:()=>QK,isAccessor:()=>Ly,isAccessorModifier:()=>Rae,isAliasSymbolDeclaration:()=>SEe,isAliasableExpression:()=>$L,isAmbientModule:()=>Lu,isAmbientPropertyDeclaration:()=>hj,isAnonymousFunctionDefinition:()=>wC,isAnyDirectorySeparator:()=>TV,isAnyImportOrBareOrAccessedRequire:()=>sie,isAnyImportOrReExport:()=>SL,isAnyImportSyntax:()=>_S,isAnySupportedFileExtension:()=>JEe,isApplicableVersionedTypesKey:()=>Sw,isArgumentExpressionOfElementAccess:()=>GK,isArray:()=>Do,isArrayBindingElement:()=>A6,isArrayBindingOrAssignmentElement:()=>pL,isArrayBindingOrAssignmentPattern:()=>YV,isArrayBindingPattern:()=>U1,isArrayLiteralExpression:()=>pd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Yv,isArrayTypeNode:()=>Gk,isArrowFunction:()=>Bs,isAsExpression:()=>jk,isAssertClause:()=>kae,isAssertEntry:()=>PSe,isAssertionExpression:()=>pS,isAssertsKeyword:()=>Tae,isAssignmentDeclaration:()=>DC,isAssignmentExpression:()=>Mc,isAssignmentOperator:()=>zv,isAssignmentPattern:()=>vC,isAssignmentTarget:()=>ng,isAsteriskToken:()=>Fk,isAsyncFunction:()=>LC,isAsyncModifier:()=>hN,isAutoAccessorPropertyDeclaration:()=>kd,isAwaitExpression:()=>$y,isAwaitKeyword:()=>gH,isBigIntLiteral:()=>H7,isBinaryExpression:()=>_r,isBinaryOperatorToken:()=>ase,isBindableObjectDefinePropertyCall:()=>bS,isBindableStaticAccessExpression:()=>N1,isBindableStaticElementAccessExpression:()=>c3,isBindableStaticNameExpression:()=>ES,isBindingElement:()=>Qa,isBindingElementOfBareOrAccessedRequire:()=>Cie,isBindingName:()=>uS,isBindingOrAssignmentElement:()=>Pre,isBindingOrAssignmentPattern:()=>uL,isBindingPattern:()=>ta,isBlock:()=>Xo,isBlockOrCatchScoped:()=>uj,isBlockScope:()=>gj,isBlockScopedContainerTopLevel:()=>aie,isBooleanLiteral:()=>gC,isBreakOrContinueStatement:()=>fC,isBreakStatement:()=>DSe,isBuildInfoFile:()=>ece,isBuilderProgram:()=>wce,isBundle:()=>AH,isBundleFileTextLike:()=>boe,isCallChain:()=>lS,isCallExpression:()=>la,isCallExpressionTarget:()=>wK,isCallLikeExpression:()=>T1,isCallLikeOrFunctionLikeExpression:()=>$V,isCallOrNewExpression:()=>T_,isCallOrNewExpressionTarget:()=>OK,isCallSignatureDeclaration:()=>nI,isCallToHelper:()=>_N,isCaseBlock:()=>TN,isCaseClause:()=>GR,isCaseKeyword:()=>Dae,isCaseOrDefaultClause:()=>D6,isCatchClause:()=>$1,isCatchClauseVariableDeclaration:()=>Joe,isCatchClauseVariableDeclarationOrBindingElement:()=>dj,isCheckJsEnabledForFile:()=>hk,isChildOfNodeWithKind:()=>pEe,isCircularBuildOrder:()=>TI,isClassDeclaration:()=>Tc,isClassElement:()=>$c,isClassExpression:()=>Zc,isClassInstanceProperty:()=>Cre,isClassLike:()=>pi,isClassMemberModifier:()=>JV,isClassNamedEvaluationHelperBlock:()=>SI,isClassOrTypeElement:()=>T6,isClassStaticBlockDeclaration:()=>Il,isClassThisAssignmentBlock:()=>UN,isCollapsedRange:()=>OEe,isColonToken:()=>Eae,isCommaExpression:()=>Xk,isCommaListExpression:()=>bN,isCommaSequence:()=>DN,isCommaToken:()=>bae,isComment:()=>iW,isCommonJsExportPropertyAssignment:()=>J6,isCommonJsExportedExpression:()=>vie,isCompoundAssignment:()=>GN,isComputedNonLiteralName:()=>TL,isComputedPropertyName:()=>Za,isConciseBody:()=>x6,isConditionalExpression:()=>BR,isConditionalTypeNode:()=>aI,isConstTypeReference:()=>kg,isConstructSignatureDeclaration:()=>zk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>OR,isContextualKeyword:()=>m3,isContinueStatement:()=>RSe,isCustomPrologue:()=>RL,isDebuggerStatement:()=>CSe,isDeclaration:()=>qu,isDeclarationBindingElement:()=>cL,isDeclarationFileName:()=>Su,isDeclarationName:()=>Wg,isDeclarationNameOfEnumOrNamespace:()=>_U,isDeclarationReadonly:()=>j6,isDeclarationStatement:()=>Gre,isDeclarationWithTypeParameterChildren:()=>yj,isDeclarationWithTypeParameters:()=>vj,isDecorator:()=>Eu,isDecoratorTarget:()=>pue,isDefaultClause:()=>IN,isDefaultImport:()=>MA,isDefaultModifier:()=>X7,isDefaultedExpandoInitializer:()=>Nie,isDeleteExpression:()=>Pae,isDeleteTarget:()=>zj,isDeprecatedDeclaration:()=>RW,isDestructuringAssignment:()=>Bv,isDiagnosticWithLocation:()=>RX,isDiskPathRoot:()=>AV,isDoStatement:()=>ISe,isDocumentRegistryEntry:()=>EO,isDotDotDotToken:()=>J7,isDottedName:()=>VC,isDynamicName:()=>h3,isESSymbolIdentifier:()=>xEe,isEffectiveExternalModule:()=>NA,isEffectiveModuleDeclaration:()=>oie,isEffectiveStrictModeSourceFile:()=>_j,isElementAccessChain:()=>BV,isElementAccessExpression:()=>Ys,isEmittedFileOfProgram:()=>ice,isEmptyArrayLiteral:()=>coe,isEmptyBindingElement:()=>cre,isEmptyBindingPattern:()=>lre,isEmptyObjectLiteral:()=>dU,isEmptyStatement:()=>EH,isEmptyStringLiteral:()=>Rj,isEntityName:()=>Qd,isEntityNameExpression:()=>zl,isEnumConst:()=>x1,isEnumDeclaration:()=>v0,isEnumMember:()=>Q1,isEqualityOperatorKind:()=>vW,isEqualsGreaterThanToken:()=>Sae,isExclamationToken:()=>Wk,isExcludedFile:()=>bse,isExclusivelyTypeOnlyImportOrExport:()=>IJ,isExpandoPropertyDeclaration:()=>r7,isExportAssignment:()=>Ll,isExportDeclaration:()=>Kl,isExportModifier:()=>eI,isExportName:()=>c5,isExportNamespaceAsDefaultDeclaration:()=>z6,isExportOrDefaultModifier:()=>Zk,isExportSpecifier:()=>Ju,isExportsIdentifier:()=>yS,isExportsOrModuleExportsOrAlias:()=>tE,isExpression:()=>bt,isExpressionNode:()=>eg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>hue,isExpressionOfOptionalChainRoot:()=>b6,isExpressionStatement:()=>eu,isExpressionWithTypeArguments:()=>Hv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>R3,isExternalModule:()=>ac,isExternalModuleAugmentation:()=>I1,isExternalModuleImportEqualsDeclaration:()=>l0,isExternalModuleIndicator:()=>fL,isExternalModuleNameRelative:()=>Yc,isExternalModuleReference:()=>Th,isExternalModuleSymbol:()=>sO,isExternalOrCommonJsModule:()=>Fp,isFileLevelReservedGeneratedIdentifier:()=>lL,isFileLevelUniqueName:()=>F6,isFileProbablyExternalModule:()=>nw,isFirstDeclarationOfSymbolParameter:()=>mX,isFixablePromiseHandler:()=>QX,isForInOrOfStatement:()=>Jx,isForInStatement:()=>t5,isForInitializer:()=>Ef,isForOfStatement:()=>Uk,isForStatement:()=>FS,isFunctionBlock:()=>D1,isFunctionBody:()=>ZV,isFunctionDeclaration:()=>Sc,isFunctionExpression:()=>ws,isFunctionExpressionOrArrowFunction:()=>B1,isFunctionLike:()=>ea,isFunctionLikeDeclaration:()=>zs,isFunctionLikeKind:()=>xA,isFunctionLikeOrClassStaticBlockDeclaration:()=>qx,isFunctionOrConstructorTypeNode:()=>Nre,isFunctionOrModuleBlock:()=>KV,isFunctionSymbol:()=>Mie,isFunctionTypeNode:()=>bh,isFutureReservedKeyword:()=>TEe,isGeneratedIdentifier:()=>ol,isGeneratedPrivateIdentifier:()=>cS,isGetAccessor:()=>wy,isGetAccessorDeclaration:()=>Zp,isGetOrSetAccessorDeclaration:()=>v6,isGlobalDeclaration:()=>dRe,isGlobalScopeAugmentation:()=>I_,isGrammarError:()=>eie,isHeritageClause:()=>ef,isHoistedFunction:()=>H6,isHoistedVariableStatement:()=>q6,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>Uj,isIdentifierName:()=>Wie,isIdentifierOrThisTypeNode:()=>nse,isIdentifierPart:()=>Zb,isIdentifierStart:()=>Xh,isIdentifierText:()=>$p,isIdentifierTypePredicate:()=>Eie,isIdentifierTypeReference:()=>Voe,isIfStatement:()=>OS,isIgnoredFileFromWildCardWatching:()=>ww,isImplicitGlob:()=>IU,isImportAttribute:()=>wae,isImportAttributeName:()=>Dre,isImportAttributes:()=>cI,isImportCall:()=>Wp,isImportClause:()=>Eh,isImportDeclaration:()=>Lc,isImportEqualsDeclaration:()=>tu,isImportKeyword:()=>vN,isImportMeta:()=>nR,isImportOrExportSpecifier:()=>IA,isImportOrExportSpecifierName:()=>Vue,isImportSpecifier:()=>tp,isImportTypeAssertionContainer:()=>NSe,isImportTypeNode:()=>lg,isImportableFile:()=>zX,isInComment:()=>Xv,isInCompoundLikeAssignment:()=>Wj,isInExpressionContext:()=>n3,isInJSDoc:()=>LL,isInJSFile:()=>cr,isInJSXText:()=>Tue,isInJsonFile:()=>i3,isInNonReferenceComment:()=>Nue,isInReferenceComment:()=>Cue,isInRightSideOfInternalImportEqualsDeclaration:()=>HF,isInString:()=>II,isInTemplateString:()=>KK,isInTopLevelContext:()=>Q6,isInTypeQuery:()=>xS,isIncrementalCompilation:()=>dN,isIndexSignatureDeclaration:()=>j1,isIndexedAccessTypeNode:()=>wS,isInferTypeNode:()=>MS,isInfinityOrNaNString:()=>oN,isInitializedProperty:()=>Dw,isInitializedVariable:()=>uk,isInsideJsxElement:()=>nW,isInsideJsxElementOrAttribute:()=>Sue,isInsideNodeModules:()=>vO,isInsideTemplateLiteral:()=>oO,isInstanceOfExpression:()=>D3,isInstantiatedModule:()=>Oq,isInterfaceDeclaration:()=>fd,isInternalDeclaration:()=>rj,isInternalModuleImportEqualsDeclaration:()=>sR,isInternalName:()=>OH,isIntersectionTypeNode:()=>oI,isIntrinsicJsxName:()=>yR,isIterationStatement:()=>ky,isJSDoc:()=>t_,isJSDocAllType:()=>Bae,isJSDocAugmentsTag:()=>fI,isJSDocAuthorTag:()=>wSe,isJSDocCallbackTag:()=>xH,isJSDocClassTag:()=>Vae,isJSDocCommentContainingNode:()=>C6,isJSDocConstructSignature:()=>pR,isJSDocDeprecatedTag:()=>PH,isJSDocEnumTag:()=>qk,isJSDocFunctionType:()=>jR,isJSDocImplementsTag:()=>a5,isJSDocIndexSignature:()=>o3,isJSDocLikeText:()=>HH,isJSDocLink:()=>Wae,isJSDocLinkCode:()=>zae,isJSDocLinkLike:()=>CA,isJSDocLinkPlain:()=>LSe,isJSDocMemberName:()=>y0,isJSDocNameReference:()=>xN,isJSDocNamepathType:()=>kSe,isJSDocNamespaceBody:()=>iEe,isJSDocNode:()=>Kx,isJSDocNonNullableType:()=>n5,isJSDocNullableType:()=>VR,isJSDocOptionalParameter:()=>yk,isJSDocOptionalType:()=>IH,isJSDocOverloadTag:()=>UR,isJSDocOverrideTag:()=>i5,isJSDocParameterTag:()=>n_,isJSDocPrivateTag:()=>DH,isJSDocPropertyLikeTag:()=>mC,isJSDocPropertyTag:()=>jae,isJSDocProtectedTag:()=>CH,isJSDocPublicTag:()=>RH,isJSDocReadonlyTag:()=>NH,isJSDocReturnTag:()=>o5,isJSDocSatisfiesExpression:()=>kU,isJSDocSatisfiesTag:()=>s5,isJSDocSeeTag:()=>OSe,isJSDocSignature:()=>b0,isJSDocTag:()=>Xx,isJSDocTemplateTag:()=>am,isJSDocThisTag:()=>MH,isJSDocThrowsTag:()=>WSe,isJSDocTypeAlias:()=>Qf,isJSDocTypeAssertion:()=>qR,isJSDocTypeExpression:()=>Z1,isJSDocTypeLiteral:()=>GS,isJSDocTypeTag:()=>RN,isJSDocTypedefTag:()=>VS,isJSDocUnknownTag:()=>FSe,isJSDocUnknownType:()=>Gae,isJSDocVariadicType:()=>r5,isJSXTagName:()=>aR,isJsonEqual:()=>$3,isJsonSourceFile:()=>$f,isJsxAttribute:()=>O_,isJsxAttributeLike:()=>R6,isJsxAttributeName:()=>Yoe,isJsxAttributes:()=>Y1,isJsxChild:()=>hL,isJsxClosingElement:()=>K1,isJsxClosingFragment:()=>Oae,isJsxElement:()=>cg,isJsxExpression:()=>AN,isJsxFragment:()=>X1,isJsxNamespacedName:()=>e_,isJsxOpeningElement:()=>w_,isJsxOpeningFragment:()=>dI,isJsxOpeningLikeElement:()=>sd,isJsxOpeningLikeElementTagName:()=>fue,isJsxSelfClosingElement:()=>zS,isJsxSpreadAttribute:()=>pI,isJsxTagNameExpression:()=>yC,isJsxText:()=>$A,isJumpStatementTarget:()=>Zw,isKeyword:()=>Fd,isKeywordOrPunctuation:()=>f3,isKnownSymbol:()=>ek,isLabelName:()=>zK,isLabelOfLabeledStatement:()=>WK,isLabeledStatement:()=>J1,isLateVisibilityPaintedStatement:()=>G6,isLeftHandSideExpression:()=>Zd,isLeftHandSideOfAssignment:()=>wEe,isLet:()=>U6,isLineBreak:()=>Uu,isLiteralComputedPropertyDeclarationName:()=>YL,isLiteralExpression:()=>S1,isLiteralExpressionOfObject:()=>HV,isLiteralImportTypeNode:()=>zy,isLiteralKind:()=>_C,isLiteralLikeAccess:()=>l3,isLiteralLikeElementAccess:()=>WL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>KF,isLiteralTypeLikeExpression:()=>USe,isLiteralTypeLiteral:()=>wre,isLiteralTypeNode:()=>Yy,isLocalName:()=>Ug,isLogicalOperator:()=>aoe,isLogicalOrCoalescingAssignmentExpression:()=>sU,isLogicalOrCoalescingAssignmentOperator:()=>GC,isLogicalOrCoalescingBinaryExpression:()=>ak,isLogicalOrCoalescingBinaryOperator:()=>ok,isMappedTypeNode:()=>WR,isMemberName:()=>Yh,isMetaProperty:()=>yN,isMethodDeclaration:()=>jl,isMethodOrAccessor:()=>RA,isMethodSignature:()=>yh,isMinusToken:()=>hH,isMissingDeclaration:()=>MSe,isMissingPackageJsonInfo:()=>Fse,isModifier:()=>Ia,isModifierKind:()=>kv,isModifierLike:()=>al,isModuleAugmentationExternal:()=>fj,isModuleBlock:()=>k_,isModuleBody:()=>Wre,isModuleDeclaration:()=>Jl,isModuleExportsAccessExpression:()=>tg,isModuleIdentifier:()=>Mj,isModuleName:()=>ose,isModuleOrEnumDeclaration:()=>mL,isModuleReference:()=>jre,isModuleSpecifierLike:()=>dW,isModuleWithStringLiteralName:()=>B6,isNameOfFunctionDeclaration:()=>jK,isNameOfModuleDeclaration:()=>VK,isNamedClassElement:()=>Z1e,isNamedDeclaration:()=>od,isNamedEvaluation:()=>mp,isNamedEvaluationSource:()=>Hj,isNamedExportBindings:()=>VV,isNamedExports:()=>Df,isNamedImportBindings:()=>ej,isNamedImports:()=>jg,isNamedImportsOrExports:()=>w3,isNamedTupleMember:()=>FR,isNamespaceBody:()=>rEe,isNamespaceExport:()=>Sh,isNamespaceExportDeclaration:()=>Hk,isNamespaceImport:()=>Zy,isNamespaceReexportDeclaration:()=>Die,isNewExpression:()=>H1,isNewExpressionTarget:()=>iP,isNoSubstitutionTemplateLiteral:()=>QA,isNode:()=>$1e,isNodeArray:()=>E1,isNodeArrayMultiLine:()=>_oe,isNodeDescendantOf:()=>P1,isNodeKind:()=>aL,isNodeLikeSystem:()=>pG,isNodeModulesDirectory:()=>a6,isNodeWithPossibleHoistedDeclaration:()=>wie,isNonContextualKeyword:()=>jj,isNonExportDefaultModifier:()=>qSe,isNonGlobalAmbientModule:()=>pj,isNonGlobalDeclaration:()=>rde,isNonNullAccess:()=>Xoe,isNonNullChain:()=>E6,isNonNullExpression:()=>lI,isNonStaticMethodOrAccessorWithPrivateName:()=>gle,isNotEmittedOrPartiallyEmittedNode:()=>nEe,isNotEmittedStatement:()=>TH,isNullishCoalesce:()=>GV,isNumber:()=>Rv,isNumericLiteral:()=>hp,isNumericLiteralName:()=>sg,isObjectBindingElementWithoutPropertyName:()=>uO,isObjectBindingOrAssignmentElement:()=>dL,isObjectBindingOrAssignmentPattern:()=>XV,isObjectBindingPattern:()=>om,isObjectLiteralElement:()=>tj,isObjectLiteralElementLike:()=>wg,isObjectLiteralExpression:()=>wa,isObjectLiteralMethod:()=>Im,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>K6,isObjectTypeDeclaration:()=>GA,isOctalDigit:()=>u6,isOmittedExpression:()=>Vc,isOptionalChain:()=>Hu,isOptionalChainRoot:()=>dC,isOptionalDeclaration:()=>sN,isOptionalJSDocPropertyLikeTag:()=>vk,isOptionalTypeNode:()=>Y7,isOuterExpression:()=>d5,isOutermostOptionalChain:()=>pC,isOverrideModifier:()=>xae,isPackageJsonInfo:()=>L5,isPackedArrayLiteral:()=>MU,isParameter:()=>Co,isParameterDeclaration:()=>L1,isParameterPropertyDeclaration:()=>pp,isParameterPropertyModifier:()=>hC,isParenthesizedExpression:()=>Wd,isParenthesizedTypeNode:()=>LS,isParseTreeNode:()=>uC,isPartOfTypeNode:()=>Zh,isPartOfTypeQuery:()=>r3,isPartiallyEmittedExpression:()=>e5,isPatternMatch:()=>k8,isPinnedComment:()=>W6,isPlainJsFile:()=>yL,isPlusToken:()=>_H,isPossiblyTypeArgumentPosition:()=>iO,isPostfixUnaryExpression:()=>yH,isPrefixUnaryExpression:()=>Qy,isPrivateIdentifier:()=>Xi,isPrivateIdentifierClassElementDeclaration:()=>ad,isPrivateIdentifierPropertyAccessExpression:()=>Hx,isPrivateIdentifierSymbol:()=>Bie,isProgramBundleEmitBuildInfo:()=>bce,isProgramUptoDate:()=>MJ,isPrologueDirective:()=>Am,isPropertyAccessChain:()=>y6,isPropertyAccessEntityNameExpression:()=>sk,isPropertyAccessExpression:()=>zr,isPropertyAccessOrQualifiedName:()=>Lre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Mre,isPropertyAssignment:()=>_c,isPropertyDeclaration:()=>Jo,isPropertyName:()=>ic,isPropertyNameLiteral:()=>R_,isPropertySignature:()=>gp,isProtoSetter:()=>Gie,isPrototypeAccess:()=>Vy,isPrototypePropertyAssignment:()=>GL,isPunctuation:()=>Vj,isPushOrUnshiftIdentifier:()=>qj,isQualifiedName:()=>Ad,isQuestionDotToken:()=>K7,isQuestionOrExclamationToken:()=>tse,isQuestionOrPlusOrMinusToken:()=>ise,isQuestionToken:()=>Ky,isRawSourceMap:()=>fle,isReadonlyKeyword:()=>Aae,isReadonlyKeywordOrPlusOrMinusToken:()=>rse,isRecognizedTripleSlashComment:()=>lj,isReferenceFileLocation:()=>l2,isReferencedFile:()=>R0,isRegularExpressionLiteral:()=>fH,isRequireCall:()=>Sd,isRequireVariableStatement:()=>Nj,isRestParameter:()=>$h,isRestTypeNode:()=>$7,isReturnStatement:()=>Rm,isReturnStatementWithFixablePromiseHandler:()=>FW,isRightSideOfAccessExpression:()=>uU,isRightSideOfInstanceofExpression:()=>loe,isRightSideOfPropertyAccess:()=>_2,isRightSideOfQualifiedName:()=>_ue,isRightSideOfQualifiedNameOrPropertyAccess:()=>jC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>soe,isRootedDiskPath:()=>dp,isSameEntityName:()=>lR,isSatisfiesExpression:()=>bH,isScopeMarker:()=>Ore,isSemicolonClassElement:()=>Mae,isSetAccessor:()=>wv,isSetAccessorDeclaration:()=>vp,isShebangTrivia:()=>CV,isShiftOperatorOrHigher:()=>VH,isShorthandAmbientModuleSymbol:()=>SC,isShorthandPropertyAssignment:()=>np,isSignedNumericLiteral:()=>_3,isSimpleCopiableExpression:()=>rE,isSimpleInlineableExpression:()=>F_,isSimpleParameter:()=>Sle,isSimpleParameterList:()=>Cw,isSingleOrDoubleQuote:()=>kL,isSourceFile:()=>no,isSourceFileFromLibrary:()=>T2,isSourceFileJS:()=>ld,isSourceFileNotJS:()=>_Ee,isSourceFileNotJson:()=>Cj,isSourceMapping:()=>mle,isSpecialPropertyDeclaration:()=>Pie,isSpreadAssignment:()=>qv,isSpreadElement:()=>Zm,isStatement:()=>Ki,isStatementButNotDeclaration:()=>_L,isStatementOrBlock:()=>Vre,isStatementWithLocals:()=>Zre,isStatic:()=>sa,isStaticModifier:()=>tI,isString:()=>wo,isStringAKeyword:()=>AEe,isStringANonContextualKeyword:()=>OA,isStringAndEmptyAnonymousObjectIntersection:()=>Due,isStringDoubleQuoted:()=>s3,isStringLiteral:()=>Na,isStringLiteralLike:()=>us,isStringLiteralOrJsxExpression:()=>Ure,isStringLiteralOrTemplate:()=>Kue,isStringOrNumericLiteralLike:()=>Qp,isStringOrRegularExpressionOrTemplateLiteral:()=>$K,isStringTextContainingNode:()=>qV,isSuperCall:()=>gS,isSuperKeyword:()=>gN,isSuperOrSuperProperty:()=>mEe,isSuperProperty:()=>Od,isSupportedSourceFileName:()=>Woe,isSwitchStatement:()=>SN,isSyntaxList:()=>HR,isSyntheticExpression:()=>ASe,isSyntheticReference:()=>uI,isTagName:()=>BK,isTaggedTemplateExpression:()=>q1,isTaggedTemplateTag:()=>due,isTemplateExpression:()=>Q7,isTemplateHead:()=>ZA,isTemplateLiteral:()=>DA,isTemplateLiteralKind:()=>My,isTemplateLiteralToken:()=>xre,isTemplateLiteralTypeNode:()=>Cae,isTemplateLiteralTypeSpan:()=>vH,isTemplateMiddle:()=>mH,isTemplateMiddleOrTemplateTail:()=>S6,isTemplateSpan:()=>EN,isTemplateTail:()=>q7,isTextWhiteSpaceLike:()=>kue,isThis:()=>h2,isThisContainerOrFunctionBlock:()=>Iie,isThisIdentifier:()=>O1,isThisInTypeQuery:()=>FA,isThisInitializedDeclaration:()=>Z6,isThisInitializedObjectBindingExpression:()=>Rie,isThisProperty:()=>NL,isThisTypeNode:()=>Vk,isThisTypeParameter:()=>aN,isThisTypePredicate:()=>fEe,isThrowStatement:()=>SH,isToken:()=>AA,isTokenKind:()=>UV,isTraceEnabled:()=>Hg,isTransientSymbol:()=>fh,isTrivia:()=>hR,isTryStatement:()=>WS,isTupleTypeNode:()=>iI,isTypeAlias:()=>UL,isTypeAliasDeclaration:()=>Dm,isTypeAssertionExpression:()=>Nae,isTypeDeclaration:()=>PR,isTypeElement:()=>dS,isTypeKeyword:()=>sP,isTypeKeywordToken:()=>rX,isTypeKeywordTokenOrIdentifier:()=>sW,isTypeLiteralNode:()=>yp,isTypeNode:()=>qi,isTypeNodeKind:()=>vU,isTypeOfExpression:()=>zR,isTypeOnlyExportDeclaration:()=>Rre,isTypeOnlyImportDeclaration:()=>sL,isTypeOnlyImportOrExportDeclaration:()=>a0,isTypeOperatorNode:()=>kS,isTypeParameterDeclaration:()=>_l,isTypePredicateNode:()=>Bk,isTypeQueryNode:()=>rI,isTypeReferenceNode:()=>Rf,isTypeReferenceType:()=>P6,isTypeUsableAsPropertyName:()=>nm,isUMDExportSymbol:()=>k3,isUnaryExpression:()=>QV,isUnaryExpressionWithWrite:()=>kre,isUnicodeIdentifierStart:()=>l6,isUnionTypeNode:()=>Xy,isUnparsedNode:()=>jV,isUnparsedPrepend:()=>Fae,isUnparsedSource:()=>BS,isUnparsedTextLike:()=>Ire,isUrl:()=>qne,isValidBigIntString:()=>Q3,isValidESSymbolDeclaration:()=>yie,isValidTypeOnlyAliasUseSite:()=>_0,isValueSignatureDeclaration:()=>Oie,isVarAwaitUsing:()=>IL,isVarConst:()=>tR,isVarUsing:()=>xL,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>AC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>C1,isVariableDeclarationInitializedToRequire:()=>a3,isVariableDeclarationList:()=>jc,isVariableLike:()=>rR,isVariableLikeOrAccessor:()=>gie,isVariableStatement:()=>Ml,isVoidExpression:()=>sI,isWatchSet:()=>WEe,isWhileStatement:()=>xSe,isWhiteSpaceLike:()=>Lg,isWhiteSpaceSingleLine:()=>S_,isWithStatement:()=>Lae,isWriteAccess:()=>BA,isWriteOnlyAccess:()=>L3,isYieldExpression:()=>Z7,jsxModeNeedsExplicitImport:()=>MX,keywordPart:()=>Ep,last:()=>Ya,lastOrUndefined:()=>Zs,length:()=>De,libMap:()=>T5,libs:()=>dw,lineBreakPart:()=>E2,linkNamePart:()=>Bue,linkPart:()=>hX,linkTextPart:()=>mW,listFiles:()=>$J,loadModuleFromGlobalCache:()=>Jse,loadWithModeAwareCache:()=>zw,makeIdentifierFromModuleName:()=>iie,makeImport:()=>$v,makeImportIfNecessary:()=>Lue,makeStringLiteral:()=>RI,mangleScopedPackageName:()=>r2,map:()=>Ft,mapAllOrFail:()=>fA,mapDefined:()=>Vi,mapDefinedEntries:()=>Rx,mapDefinedIterator:()=>tS,mapEntries:()=>fne,mapIterator:()=>ra,mapOneOrMany:()=>CX,mapToDisplayParts:()=>ob,matchFiles:()=>xU,matchPatternOrExact:()=>RU,matchedText:()=>Rne,matchesExclude:()=>S5,maybeBind:()=>oa,maybeSetLocalizedDiagnosticMessages:()=>xoe,memoize:()=>Ed,memoizeCached:()=>bne,memoizeOne:()=>ch,memoizeWeak:()=>H0e,metadataHelper:()=>y7,min:()=>sG,minAndMax:()=>Boe,missingFileModifiedTime:()=>kp,modifierToFlag:()=>zA,modifiersToFlags:()=>N_,moduleOptionDeclaration:()=>lq,moduleResolutionIsEqualTo:()=>$re,moduleResolutionNameAndModeGetter:()=>EF,moduleResolutionOptionDeclarations:()=>A5,moduleResolutionSupportsPackageJsonExportsAndImports:()=>jA,moduleResolutionUsesNodeModules:()=>lW,moduleSpecifiers:()=>nE,moveEmitHelpers:()=>fae,moveRangeEnd:()=>P3,moveRangePastDecorators:()=>zg,moveRangePastModifiers:()=>P_,moveRangePos:()=>f0,moveSyntheticComments:()=>uae,mutateMap:()=>KC,mutateMapSkippingNewValues:()=>og,needsParentheses:()=>hW,needsScopeMarker:()=>I6,newCaseClauseTracker:()=>NW,newPrivateEnvironment:()=>ble,noEmitNotification:()=>Nw,noEmitSubstitution:()=>JN,noTransformers:()=>lJ,noTruncationMaximumTruncationLength:()=>a7,nodeCanBeDecorated:()=>t3,nodeHasName:()=>nL,nodeIsDecorated:()=>oR,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Xf,nodeIsSynthesized:()=>Xs,nodeModuleNameResolver:()=>Gse,nodeModulesPathPart:()=>Ih,nodeNextJsonConfigResolver:()=>Vse,nodeOrChildIsDecorated:()=>ML,nodeOverlapsWithStartEnd:()=>XF,nodePosToString:()=>aEe,nodeSeenTracker:()=>xI,nodeStartsNewLexicalEnvironment:()=>Jj,nodeToDisplayParts:()=>oRe,noop:()=>$a,noopFileWatcher:()=>f2,normalizePath:()=>va,normalizeSlashes:()=>Mu,not:()=>O8,notImplemented:()=>Ko,notImplementedResolver:()=>uF,nullNodeConverters:()=>eH,nullParenthesizerRules:()=>ZU,nullTransformationContext:()=>KN,objectAllocator:()=>lu,operatorPart:()=>uP,optionDeclarations:()=>ug,optionMapToObject:()=>y5,optionsAffectingProgramStructure:()=>fq,optionsForBuild:()=>_q,optionsForWatch:()=>QR,optionsHaveChanges:()=>Yx,optionsHaveModuleResolutionChanges:()=>Kre,or:()=>Xm,orderedRemoveItem:()=>Mx,orderedRemoveItemAt:()=>Iy,outFile:()=>Ps,packageIdToPackageName:()=>w6,packageIdToString:()=>Fy,paramHelper:()=>b7,parameterIsThisKeyword:()=>w1,parameterNamePart:()=>Oue,parseBaseNodeFactory:()=>YH,parseBigInt:()=>Goe,parseBuildCommand:()=>ATe,parseCommandLine:()=>STe,parseCommandLineWorker:()=>ZH,parseConfigFileTextToJson:()=>tq,parseConfigFileWithSystem:()=>oxe,parseConfigHostFromCompilerHostLike:()=>bF,parseCustomTypeOption:()=>v5,parseIsolatedEntityName:()=>_I,parseIsolatedJSDocComment:()=>pse,parseJSDocTypeExpressionForTests:()=>cTe,parseJsonConfigFileContent:()=>WTe,parseJsonSourceFileConfigFileContent:()=>lw,parseJsonText:()=>iw,parseListTypeOption:()=>mse,parseNodeFactory:()=>Ah,parseNodeModuleFromPath:()=>vw,parsePackageName:()=>Ew,parsePseudoBigInt:()=>tN,parseValidBigInt:()=>PU,patchWriteFileEnsuringDirectory:()=>Une,pathContainsNodeModules:()=>I0,pathIsAbsolute:()=>rC,pathIsBareSpecifier:()=>IV,pathIsRelative:()=>wp,patternText:()=>xne,perfLogger:()=>rd,performIncrementalCompilation:()=>cxe,performance:()=>Wne,plainJSErrors:()=>SF,positionBelongsToNode:()=>HK,positionIsASICandidate:()=>bW,positionIsSynthesized:()=>Qm,positionsAreOnSameLine:()=>Af,preProcessFile:()=>MRe,probablyUsesSemicolons:()=>hO,processCommentPragmas:()=>KH,processPragmasIntoFields:()=>XH,processTaggedTemplateExpression:()=>tJ,programContainsEsModules:()=>Mue,programContainsModules:()=>Pue,projectReferenceIsEqualTo:()=>oj,propKeyHelper:()=>L7,propertyNamePart:()=>Fue,pseudoBigIntToString:()=>z1,punctuationPart:()=>Yu,pushIfUnique:()=>bf,quote:()=>fP,quotePreferenceFromString:()=>sX,rangeContainsPosition:()=>eO,rangeContainsPositionExclusive:()=>tO,rangeContainsRange:()=>of,rangeContainsRangeExclusive:()=>gue,rangeContainsStartEnd:()=>nO,rangeEndIsOnSameLineAsRangeStart:()=>ck,rangeEndPositionsAreOnSameLine:()=>foe,rangeEquals:()=>eG,rangeIsOnSingleLine:()=>DS,rangeOfNode:()=>CU,rangeOfTypeParameters:()=>NU,rangeOverlapsWithStartEnd:()=>oP,rangeStartIsOnSameLineAsRangeEnd:()=>moe,rangeStartPositionsAreOnSameLine:()=>M3,readBuilderProgram:()=>kF,readConfigFile:()=>aw,readHelper:()=>P7,readJson:()=>UC,readJsonConfigFile:()=>gse,readJsonOrUndefined:()=>pU,reduceEachLeadingCommentRange:()=>Qne,reduceEachTrailingCommentRange:()=>Zne,reduceLeft:()=>nd,reduceLeftIterator:()=>Ar,reducePathComponents:()=>sS,refactor:()=>NI,regExpEscape:()=>HEe,relativeComplement:()=>mne,removeAllComments:()=>Nk,removeEmitHelper:()=>ESe,removeExtension:()=>_k,removeFileExtension:()=>Td,removeIgnoredPath:()=>IF,removeMinAndVersionNumbers:()=>lG,removeOptionality:()=>Aue,removePrefix:()=>ZD,removeSuffix:()=>Px,removeTrailingDirectorySeparator:()=>$b,repeatString:()=>lO,replaceElement:()=>rG,replaceFirstStar:()=>qA,resolutionExtensionIsTSOrJson:()=>QC,resolveConfigFileProjectName:()=>lK,resolveJSModule:()=>zse,resolveLibrary:()=>w5,resolveModuleName:()=>t2,resolveModuleNameFromCache:()=>EAe,resolvePackageNameToPackageJson:()=>vq,resolvePath:()=>Dy,resolveProjectReferencePath:()=>c2,resolveTripleslashReference:()=>mF,resolveTypeReferenceDirective:()=>wse,resolvingEmptyArray:()=>o7,restHelper:()=>R7,returnFalse:()=>Km,returnNoopFileWatcher:()=>m2,returnTrue:()=>Dv,returnUndefined:()=>Xb,returnsPromise:()=>$X,runInitializersHelper:()=>S7,sameFlatMap:()=>eS,sameMap:()=>Io,sameMapping:()=>lIe,scanShebangTrivia:()=>NV,scanTokenAtPosition:()=>mie,scanner:()=>$u,screenStartingMessageCodes:()=>LF,semanticDiagnosticsOptionDeclarations:()=>uq,serializeCompilerOptions:()=>b5,server:()=>Cwe,servicesVersion:()=>Ipe,setCommentRange:()=>oc,setConfigFileInOptions:()=>aq,setConstantValue:()=>pae,setEachParent:()=>NR,setEmitFlags:()=>fr,setFunctionNameHelper:()=>k7,setGetSourceFileAsHashVersioned:()=>MF,setIdentifierAutoGenerate:()=>Lk,setIdentifierGeneratedImportReference:()=>hae,setIdentifierTypeArguments:()=>Uv,setInternalEmitFlags:()=>Pk,setLocalizedDiagnosticMessages:()=>Ioe,setModuleDefaultHelper:()=>F7,setNodeFlags:()=>Uoe,setObjectAllocator:()=>Aoe,setOriginalNode:()=>Pr,setParent:()=>qa,setParentRecursive:()=>Uy,setPrivateIdentifier:()=>qS,setSnippetElement:()=>lH,setSourceMapRange:()=>Ca,setStackTraceLimit:()=>p1e,setStartsOnNewLine:()=>_7,setSyntheticLeadingComments:()=>g0,setSyntheticTrailingComments:()=>KA,setSys:()=>g1e,setSysLog:()=>Vne,setTextRange:()=>dt,setTextRangeEnd:()=>CR,setTextRangePos:()=>nN,setTextRangePosEnd:()=>gh,setTextRangePosWidth:()=>rN,setTokenSourceMapRange:()=>cae,setTypeNode:()=>mae,setUILocale:()=>Tne,setValueDeclaration:()=>VL,shouldAllowImportingTsExtension:()=>i2,shouldPreserveConstEnums:()=>V1,shouldUseUriStyleNodeCoreModules:()=>DW,showModuleSpecifier:()=>yoe,signatureHasLiteralTypes:()=>Fq,signatureHasRestParameter:()=>Xu,signatureToDisplayParts:()=>gX,single:()=>nG,singleElementArray:()=>yA,singleIterator:()=>pne,singleOrMany:()=>sh,singleOrUndefined:()=>ah,skipAlias:()=>bu,skipAssertions:()=>GSe,skipConstraint:()=>iX,skipOuterExpressions:()=>Xl,skipParentheses:()=>vs,skipPartiallyEmittedExpressions:()=>Sm,skipTrivia:()=>La,skipTypeChecking:()=>eN,skipTypeParentheses:()=>XL,skipWhile:()=>Cne,sliceAfter:()=>DU,some:()=>Et,sort:()=>nS,sortAndDeduplicate:()=>XD,sortAndDeduplicateDiagnostics:()=>Gx,sourceFileAffectingCompilerOptions:()=>I5,sourceFileMayBeEmitted:()=>AS,sourceMapCommentRegExp:()=>K5,sourceMapCommentRegExpDontCareLineStart:()=>Hq,spacePart:()=>kl,spanMap:()=>YB,spreadArrayHelper:()=>M7,stableSort:()=>Iv,startEndContainsRange:()=>UK,startEndOverlapsWithStartEnd:()=>YF,startOnNewLine:()=>Ku,startTracing:()=>zne,startsWith:()=>uo,startsWithDirectory:()=>RV,startsWithUnderscore:()=>PX,startsWithUseStrict:()=>Xae,stringContainsAt:()=>nde,stringToToken:()=>y1,stripQuotes:()=>em,supportedDeclarationExtensions:()=>Ak,supportedJSExtensions:()=>YU,supportedJSExtensionsFlat:()=>LR,supportedLocaleDirectories:()=>ij,supportedTSExtensions:()=>MR,supportedTSExtensionsFlat:()=>XU,supportedTSImplementationExtensions:()=>Ik,suppressLeadingAndTrailingTrivia:()=>Sp,suppressLeadingTrivia:()=>EX,suppressTrailingTrivia:()=>Hue,symbolEscapedNameNoDefault:()=>uW,symbolName:()=>bl,symbolNameNoDefault:()=>cW,symbolPart:()=>wue,symbolToDisplayParts:()=>dP,syntaxMayBeASICandidate:()=>FX,syntaxRequiresTrailingSemicolonOrASI:()=>yW,sys:()=>gu,sysLog:()=>zM,tagNamesAreEquivalent:()=>S0,takeWhile:()=>W8,targetOptionDeclaration:()=>fw,templateObjectHelper:()=>N7,testFormatSettings:()=>uue,textChangeRangeIsUnchanged:()=>are,textChangeRangeNewSpan:()=>cC,textChanges:()=>hr,textOrKeywordPart:()=>_X,textPart:()=>sf,textRangeContainsPositionInclusive:()=>ZM,textSpanContainsPosition:()=>LV,textSpanContainsTextSpan:()=>nre,textSpanEnd:()=>ql,textSpanIntersection:()=>ore,textSpanIntersectsWith:()=>f6,textSpanIntersectsWithPosition:()=>ire,textSpanIntersectsWithTextSpan:()=>W1e,textSpanIsEmpty:()=>tre,textSpanOverlap:()=>rre,textSpanOverlapsWith:()=>F1e,textSpansEqual:()=>b2,textToKeywordObj:()=>$M,timestamp:()=>Ks,toArray:()=>gA,toBuilderFileEmit:()=>Tce,toBuilderStateFileInfoForMultiEmit:()=>Sce,toEditorSettings:()=>wO,toFileNameLowerCase:()=>lh,toLowerCase:()=>yne,toPath:()=>rl,toProgramEmitPending:()=>Ace,tokenIsIdentifierOrKeyword:()=>id,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Yne,tokenToString:()=>ma,trace:()=>To,tracing:()=>lr,tracingEnabled:()=>wM,transform:()=>NDe,transformClassFields:()=>Ple,transformDeclarations:()=>aJ,transformECMAScriptModule:()=>oJ,transformES2015:()=>qle,transformES2016:()=>Hle,transformES2017:()=>wle,transformES2018:()=>Ole,transformES2019:()=>Fle,transformES2020:()=>Wle,transformES2021:()=>zle,transformES5:()=>Jle,transformESDecorators:()=>kle,transformESNext:()=>Ble,transformGenerators:()=>Kle,transformJsx:()=>Ule,transformLegacyDecorators:()=>Lle,transformModule:()=>iJ,transformNamedEvaluation:()=>bp,transformNodeModule:()=>Yle,transformNodes:()=>Pw,transformSystemModule:()=>Xle,transformTypeScript:()=>Nle,transpile:()=>BRe,transpileModule:()=>Ede,transpileOptionValueCompilerOptions:()=>mq,tryAddToSet:()=>Av,tryAndIgnoreErrors:()=>TW,tryCast:()=>ai,tryDirectoryExists:()=>SW,tryExtractTSExtension:()=>C3,tryFileExists:()=>gO,tryGetClassExtendingExpressionWithTypeArguments:()=>lU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>cU,tryGetDirectories:()=>EW,tryGetExtensionFromPath:()=>Gg,tryGetImportFromModuleSpecifier:()=>jL,tryGetJSDocSatisfiesTypeNode:()=>n7,tryGetModuleNameFromFile:()=>$k,tryGetModuleSpecifierFromDeclaration:()=>cR,tryGetNativePerformanceHooks:()=>wne,tryGetPropertyAccessOrIdentifierToString:()=>lk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>f5,tryGetSourceMappingURL:()=>ple,tryGetTextOfPropertyName:()=>TC,tryIOAndConsumeErrors:()=>AW,tryParseJson:()=>N3,tryParsePattern:()=>DR,tryParsePatterns:()=>X3,tryParseRawSourceMap:()=>jq,tryReadDirectory:()=>AX,tryReadFile:()=>MN,tryRemoveDirectoryPrefix:()=>AU,tryRemoveExtension:()=>zoe,tryRemovePrefix:()=>dG,tryRemoveSuffix:()=>Ine,typeAcquisitionDeclarations:()=>mw,typeAliasNamePart:()=>Wue,typeDirectiveIsEqualTo:()=>Qre,typeKeywords:()=>PW,typeParameterNamePart:()=>zue,typeToDisplayParts:()=>pO,unchangedPollThresholds:()=>BM,unchangedTextChangeRange:()=>gL,unescapeLeadingUnderscores:()=>Hi,unmangleScopedPackageName:()=>Tw,unorderedRemoveItem:()=>vA,unorderedRemoveItemAt:()=>cG,unreachableCodeIsError:()=>Doe,unusedLabelIsError:()=>Coe,unwrapInnermostStatementOfLabel:()=>Ij,updateErrorForNoInputFiles:()=>E5,updateLanguageServiceSourceFile:()=>kY,updateMissingFilePathsWatch:()=>hJ,updateResolutionField:()=>ZR,updateSharedExtendedConfigFileWatcher:()=>pF,updateSourceFile:()=>qH,updateWatchingWildcardDirectories:()=>kw,usesExtensionsOnImports:()=>Ooe,usingSingleLineStringWriter:()=>bC,utf16EncodeAsString:()=>Bx,validateLocaleAndSetLanguage:()=>B1e,valuesHelper:()=>w7,version:()=>Te,versionMajorMinor:()=>_e,visitArray:()=>xw,visitCommaListElements:()=>Rw,visitEachChild:()=>An,visitFunctionBody:()=>rf,visitIterationBody:()=>Id,visitLexicalEnvironment:()=>Gq,visitNode:()=>rt,visitNodes:()=>Bn,visitParameterList:()=>xl,walkUpBindingElementsAndPatterns:()=>Vx,walkUpLexicalEnvironments:()=>yle,walkUpOuterExpressions:()=>Yae,walkUpParenthesizedExpressions:()=>Fv,walkUpParenthesizedTypes:()=>KL,walkUpParenthesizedTypesAndGetParentAndChild:()=>Fie,whitespaceOrMapCommentRegExp:()=>X5,writeCommentRange:()=>SR,writeFile:()=>FC,writeFileEnsuringDirectories:()=>rU,zipWith:()=>Un});var lb=A({"src/server/_namespaces/ts.ts"(){"use strict";ia(),Kw(),ci(),$Q(),sT()}}),Pwe={};X(Pwe,{ActionInvalidate:()=>qw,ActionPackageInstalled:()=>Jw,ActionSet:()=>Hw,ActionWatchTypingLocations:()=>rP,Arguments:()=>_K,AutoImportProviderProject:()=>dZ,AuxiliaryProject:()=>cZ,CharRangeSection:()=>AZ,CloseFileWatcherEvent:()=>Z9,CommandNames:()=>Qhe,ConfigFileDiagEvent:()=>K9,ConfiguredProject:()=>pZ,CreateDirectoryWatcherEvent:()=>Q9,CreateFileWatcherEvent:()=>$9,Errors:()=>ny,EventBeginInstallTypes:()=>BF,EventEndInstallTypes:()=>GF,EventInitializationFailed:()=>mK,EventTypesRegistry:()=>zF,ExternalProject:()=>G9,GcTimer:()=>nZ,InferredProject:()=>lZ,LargeFileReferencedEvent:()=>J9,LineIndex:()=>PP,LineLeaf:()=>m4,LineNode:()=>GI,LogLevel:()=>QQ,Msg:()=>ZQ,OpenFileInfoTelemetryEvent:()=>hZ,Project:()=>aT,ProjectInfoTelemetryEvent:()=>Y9,ProjectKind:()=>CP,ProjectLanguageServiceStateEvent:()=>X9,ProjectLoadingFinishEvent:()=>q9,ProjectLoadingStartEvent:()=>H9,ProjectReferenceProjectLoadKind:()=>yZ,ProjectService:()=>bZ,ProjectsUpdatedInBackgroundEvent:()=>d4,ScriptInfo:()=>oZ,ScriptVersionCache:()=>rz,Session:()=>ege,TextStorage:()=>iZ,ThrottledOperations:()=>tZ,TypingsCache:()=>aZ,TypingsInstallerAdapter:()=>rge,allFilesAreJsOrDts:()=>Nhe,allRootFilesAreJsOrDts:()=>Che,asNormalizedPath:()=>iwe,convertCompilerOptions:()=>V9,convertFormatOptions:()=>G2,convertScriptKindName:()=>mZ,convertTypeAcquisition:()=>Lhe,convertUserPreferences:()=>khe,convertWatchOptions:()=>u4,countEachFileTypes:()=>l4,createInstallTypingsRequest:()=>lhe,createModuleSpecifierCache:()=>Uhe,createNormalizedPathMap:()=>owe,createPackageJsonCache:()=>Hhe,createSortedArray:()=>fhe,emptyArray:()=>hc,findArgument:()=>qxe,forEachResolvedProjectReferenceProject:()=>V2,formatDiagnosticToProtocol:()=>f4,formatMessage:()=>qhe,getBaseConfigFileName:()=>eZ,getLocationInNewDocument:()=>Yhe,hasArgument:()=>Hxe,hasNoTypeScriptSource:()=>Phe,indent:()=>nP,isBackgroundProject:()=>c4,isConfigFile:()=>Bhe,isConfiguredProject:()=>k0,isDynamicFileName:()=>s4,isExternalProject:()=>sZ,isInferredProject:()=>B2,isInferredProjectName:()=>che,makeAutoImportProviderProjectName:()=>dhe,makeAuxiliaryProjectName:()=>phe,makeInferredProjectName:()=>uhe,maxFileSize:()=>U9,maxProgramSizeForNonTsFiles:()=>j9,normalizedPathToPath:()=>a4,nowString:()=>Jxe,nullCancellationToken:()=>$he,nullTypingsInstaller:()=>B9,projectContainsInfoDirectly:()=>zI,protocol:()=>Dhe,removeSorted:()=>awe,stringifyIndented:()=>D0,toEvent:()=>Jhe,toNormalizedPath:()=>pl,tryConvertScriptKindName:()=>fZ,typingsInstaller:()=>ahe,updateProjectIfDirty:()=>Gp});var Cat=A({"src/typescript/_namespaces/ts.server.ts"(){"use strict";VF(),sT()}}),Mwe={};X(Mwe,{ANONYMOUS:()=>MW,AccessFlags:()=>jG,AssertionLevel:()=>mG,AssignmentDeclarationKind:()=>QG,AssignmentKind:()=>BU,Associativity:()=>VU,BreakpointResolver:()=>GY,BuilderFileEmit:()=>HJ,BuilderProgramKind:()=>qJ,BuilderState:()=>Pm,BundleFileSectionKind:()=>hV,CallHierarchy:()=>PI,CharacterCodes:()=>cV,CheckFlags:()=>WG,CheckMode:()=>H5,ClassificationType:()=>kK,ClassificationTypeNames:()=>LK,CommentDirectiveType:()=>TG,Comparison:()=>Be,CompletionInfoFlags:()=>xK,CompletionTriggerKind:()=>EK,Completions:()=>OI,ContainerFlags:()=>kq,ContextFlags:()=>CG,Debug:()=>C,DiagnosticCategory:()=>FM,Diagnostics:()=>f,DocumentHighlights:()=>wW,ElementFlags:()=>VG,EmitFlags:()=>t6,EmitHint:()=>fV,EmitOnly:()=>IG,EndOfLineState:()=>CK,EnumKind:()=>FG,ExitStatus:()=>xG,ExportKind:()=>VX,Extension:()=>uV,ExternalEmitHelpers:()=>pV,FileIncludeKind:()=>q8,FilePreprocessingDiagnosticsKind:()=>AG,FileSystemEntryKind:()=>SV,FileWatcherEventKind:()=>EV,FindAllReferences:()=>Os,FlattenLevel:()=>Qq,FlowFlags:()=>OM,ForegroundColorEscapeSequences:()=>FJ,FunctionFlags:()=>GU,GeneratedIdentifierFlags:()=>H8,GetLiteralTextFlags:()=>FU,GoToDefinition:()=>w2,HighlightSpanKind:()=>TK,IdentifierNameMap:()=>bI,IdentifierNameMultiMap:()=>$q,ImportKind:()=>GX,ImportsNotUsedAsValues:()=>iV,IndentStyle:()=>AK,IndexFlags:()=>UG,IndexKind:()=>JG,InferenceFlags:()=>YG,InferencePriority:()=>XG,InlayHintKind:()=>SK,InlayHints:()=>LQ,InternalEmitFlags:()=>dV,InternalSymbolName:()=>zG,InvalidatedProjectKind:()=>fK,JSDocParsingMode:()=>yV,JsDoc:()=>L0,JsTyping:()=>B_,JsxEmit:()=>rV,JsxFlags:()=>EG,JsxReferenceKind:()=>HG,LanguageServiceMode:()=>vK,LanguageVariant:()=>sV,LexicalEnvironmentFlags:()=>_V,ListFormat:()=>gV,LogLevel:()=>hG,MemberOverrideStatus:()=>RG,ModifierFlags:()=>j8,ModuleDetectionKind:()=>ZG,ModuleInstanceState:()=>Lq,ModuleKind:()=>tC,ModuleResolutionKind:()=>Fx,ModuleSpecifierEnding:()=>$U,NavigateTo:()=>Ade,NavigationBar:()=>kde,NewLineKind:()=>oV,NodeBuilderFlags:()=>NG,NodeCheckFlags:()=>BG,NodeFactoryFlags:()=>oH,NodeFlags:()=>V8,NodeResolutionFeatures:()=>Nq,ObjectFlags:()=>Y8,OperationCanceledException:()=>Ox,OperatorPrecedence:()=>jU,OrganizeImports:()=>Mm,OrganizeImportsMode:()=>bK,OuterExpressionKinds:()=>mV,OutliningElementsCollector:()=>FQ,OutliningSpanKind:()=>RK,OutputFileType:()=>DK,PackageJsonAutoImportPreference:()=>gK,PackageJsonDependencyGroup:()=>hK,PatternMatchKind:()=>OW,PollingInterval:()=>n6,PollingWatchKind:()=>nV,PragmaKindFlags:()=>vV,PrivateIdentifierKind:()=>pH,ProcessLevel:()=>nJ,ProgramUpdateLevel:()=>vJ,QuotePreference:()=>wX,RelationComparisonResult:()=>U8,Rename:()=>L9,ScriptElementKind:()=>PK,ScriptElementKindModifier:()=>MK,ScriptKind:()=>Q8,ScriptSnapshot:()=>UF,ScriptTarget:()=>aV,SemanticClassificationFormat:()=>yK,SemanticMeaning:()=>kX,SemicolonPreference:()=>IK,SignatureCheckMode:()=>q5,SignatureFlags:()=>$8,SignatureHelp:()=>QO,SignatureKind:()=>qG,SmartSelectionRange:()=>BQ,SnippetKind:()=>e6,SortKind:()=>fG,StructureIsReused:()=>J8,SymbolAccessibility:()=>LG,SymbolDisplay:()=>ty,SymbolDisplayPartKind:()=>Xw,SymbolFlags:()=>K8,SymbolFormatFlags:()=>MG,SyntaxKind:()=>G8,SyntheticSymbolKind:()=>kG,Ternary:()=>$G,ThrottledCancellationToken:()=>BY,TokenClass:()=>NK,TokenFlags:()=>SG,TransformFlags:()=>Z8,TypeFacts:()=>U5,TypeFlags:()=>X8,TypeFormatFlags:()=>PG,TypeMapKind:()=>KG,TypePredicateKind:()=>wG,TypeReferenceSerializationKind:()=>OG,UnionReduction:()=>DG,UpToDateStatusType:()=>cK,VarianceFlags:()=>GG,Version:()=>vm,VersionRange:()=>LM,WatchDirectoryFlags:()=>lV,WatchDirectoryKind:()=>tV,WatchFileKind:()=>eV,WatchLogLevel:()=>yJ,WatchType:()=>kc,accessPrivateIdentifier:()=>Ele,addDisposableResourceHelper:()=>j7,addEmitFlags:()=>M_,addEmitHelper:()=>XA,addEmitHelpers:()=>Vg,addInternalEmitFlags:()=>JA,addNodeFactoryPatcher:()=>mSe,addObjectAllocatorPatcher:()=>Toe,addRange:()=>Jr,addRelatedInfo:()=>ka,addSyntheticLeadingComment:()=>mN,addSyntheticTrailingComment:()=>h7,addToSeen:()=>xm,advancedAsyncSuperHelper:()=>Ok,affectsDeclarationPathOptionDeclarations:()=>pq,affectsEmitOptionDeclarations:()=>dq,allKeysStartWithDot:()=>F5,altDirectorySeparator:()=>HM,and:()=>w8,append:()=>In,appendIfUnique:()=>Ng,arrayFrom:()=>Vo,arrayIsEqualTo:()=>Jm,arrayIsHomogeneous:()=>joe,arrayIsSorted:()=>R8,arrayOf:()=>hne,arrayReverseIterator:()=>ZB,arrayToMap:()=>g1,arrayToMultiMap:()=>NM,arrayToNumericMap:()=>vne,arraysEqual:()=>Ma,assertType:()=>K0e,assign:()=>Cx,assignHelper:()=>T7,asyncDelegator:()=>I7,asyncGeneratorHelper:()=>A7,asyncSuperHelper:()=>wk,asyncValues:()=>x7,attachFileToDiagnostics:()=>VA,awaitHelper:()=>YA,awaiterHelper:()=>D7,base64decode:()=>poe,base64encode:()=>doe,binarySearch:()=>xv,binarySearchKey:()=>_A,bindSourceFile:()=>Yse,breakIntoCharacterSpans:()=>gde,breakIntoWordSpans:()=>vde,buildLinkParts:()=>Gue,buildOpts:()=>x5,buildOverload:()=>Qke,bundlerModuleNameResolver:()=>Bse,canBeConvertedToAsync:()=>ZX,canHaveDecorators:()=>US,canHaveExportModifier:()=>gk,canHaveFlowNode:()=>HL,canHaveIllegalDecorators:()=>GH,canHaveIllegalModifiers:()=>ese,canHaveIllegalType:()=>jSe,canHaveIllegalTypeParameters:()=>Zae,canHaveJSDoc:()=>qL,canHaveLocals:()=>ph,canHaveModifiers:()=>Cm,canHaveSymbol:()=>A_,canJsonReportNoInputFiles:()=>LN,canProduceDiagnostics:()=>oF,canUsePropertyAccess:()=>LU,canWatchAffectingLocation:()=>Dce,canWatchAtTypes:()=>Rce,canWatchDirectoryOrFile:()=>xF,cartesianProduct:()=>Dne,cast:()=>aa,chainBundle:()=>Nm,chainDiagnosticMessages:()=>Uo,changeAnyExtension:()=>jM,changeCompilerHostLikeToUseCache:()=>Fw,changeExtension:()=>m0,changeFullExtension:()=>Jne,changesAffectModuleResolution:()=>M6,changesAffectingProgramStructure:()=>Xre,childIsDecorated:()=>xC,classElementOrClassElementParameterIsDecorated:()=>xj,classHasClassThisAssignment:()=>Zq,classHasDeclaredOrExplicitlyAssignedName:()=>eJ,classHasExplicitlyAssignedName:()=>nF,classOrConstructorParameterIsDecorated:()=>Ov,classPrivateFieldGetHelper:()=>B7,classPrivateFieldInHelper:()=>V7,classPrivateFieldSetHelper:()=>G7,classicNameResolver:()=>qse,classifier:()=>Cpe,cleanExtendedConfigCache:()=>fF,clear:()=>Gi,clearMap:()=>ep,clearSharedExtendedConfigFileWatcher:()=>_J,climbPastPropertyAccess:()=>qF,climbPastPropertyOrElementAccess:()=>mue,clone:()=>iG,cloneCompilerOptions:()=>ZK,closeFileWatcher:()=>$m,closeFileWatcherOf:()=>Cf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>sre,collectExternalModuleInfo:()=>Jq,combine:()=>Dx,combinePaths:()=>Zr,commentPragmas:()=>WM,commonOptionsWithBuild:()=>pw,commonPackageFolders:()=>qU,compact:()=>CM,compareBooleans:()=>Ay,compareDataObjects:()=>hU,compareDiagnostics:()=>XC,compareDiagnosticsSkipRelatedInformation:()=>F3,compareEmitHelpers:()=>yae,compareNumberOfDirectorySeparators:()=>mk,comparePaths:()=>Pg,comparePathsCaseInsensitive:()=>E1e,comparePathsCaseSensitive:()=>b1e,comparePatternKeys:()=>Dq,compareProperties:()=>Ane,compareStringsCaseInsensitive:()=>L8,compareStringsCaseInsensitiveEslintCompatible:()=>Ene,compareStringsCaseSensitive:()=>ju,compareStringsCaseSensitiveUI:()=>MM,compareTextSpans:()=>M8,compareValues:()=>tl,compileOnSaveCommandLineOption:()=>uw,compilerOptionsAffectDeclarationPath:()=>Loe,compilerOptionsAffectEmit:()=>Moe,compilerOptionsAffectSemanticDiagnostics:()=>Poe,compilerOptionsDidYouMeanDiagnostics:()=>_w,compilerOptionsIndicateEsModules:()=>oX,compose:()=>q0e,computeCommonSourceDirectoryOfFilenames:()=>ace,computeLineAndCharacterOfPosition:()=>zx,computeLineOfPosition:()=>oC,computeLineStarts:()=>TA,computePositionOfLineAndCharacter:()=>c6,computeSignature:()=>YS,computeSignatureWithDiagnostics:()=>GJ,computeSuggestionDiagnostics:()=>YX,computedOptions:()=>mc,concatenate:()=>xo,concatenateDiagnosticMessageChains:()=>Roe,consumesNodeCoreModules:()=>IW,contains:()=>wr,containsIgnoredPath:()=>iN,containsObjectRestOrSpread:()=>tw,containsParseError:()=>$x,containsPath:()=>ym,convertCompilerOptionsForTelemetry:()=>Tse,convertCompilerOptionsFromJson:()=>qTe,convertJsonOption:()=>HS,convertToBase64:()=>uoe,convertToJson:()=>sw,convertToObject:()=>vse,convertToOptionsWithAbsolutePaths:()=>oq,convertToRelativePath:()=>iC,convertToTSConfig:()=>MTe,convertTypeAcquisitionFromJson:()=>JTe,copyComments:()=>eT,copyEntries:()=>L6,copyLeadingComments:()=>S2,copyProperties:()=>oG,copyTrailingAsLeadingComments:()=>_O,copyTrailingComments:()=>pP,couldStartTrivia:()=>$ne,countWhere:()=>au,createAbstractBuilder:()=>ZIe,createAccessorPropertyBackingField:()=>jH,createAccessorPropertyGetRedirector:()=>lse,createAccessorPropertySetRedirector:()=>cse,createBaseNodeFactory:()=>rae,createBinaryExpressionTrampoline:()=>m5,createBindingHelper:()=>wR,createBuildInfo:()=>Mw,createBuilderProgram:()=>VJ,createBuilderProgramUsingProgramBuildInfo:()=>Ice,createBuilderStatusReporter:()=>Vce,createCacheWithRedirects:()=>bq,createCacheableExportInfoMap:()=>WX,createCachedDirectoryStructureHost:()=>dF,createClassNamedEvaluationHelperBlock:()=>Rle,createClassThisAssignmentBlock:()=>Ile,createClassifier:()=>hRe,createCommentDirectivesMap:()=>tie,createCompilerDiagnostic:()=>Vl,createCompilerDiagnosticForInvalidCustomType:()=>fse,createCompilerDiagnosticFromMessageChain:()=>O3,createCompilerHost:()=>sce,createCompilerHostFromProgramHost:()=>oK,createCompilerHostWorker:()=>SJ,createDetachedDiagnostic:()=>RR,createDiagnosticCollection:()=>vR,createDiagnosticForFileFromMessageChain:()=>Ej,createDiagnosticForNode:()=>Or,createDiagnosticForNodeArray:()=>eR,createDiagnosticForNodeArrayFromMessageChain:()=>AL,createDiagnosticForNodeFromMessageChain:()=>Og,createDiagnosticForNodeInSourceFile:()=>Yf,createDiagnosticForRange:()=>fie,createDiagnosticMessageChainFromDiagnostic:()=>pie,createDiagnosticReporter:()=>Vw,createDocumentPositionMapper:()=>_le,createDocumentRegistry:()=>ade,createDocumentRegistryInternal:()=>HX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>JJ,createEmitHelperFactory:()=>vae,createEmptyExports:()=>Jk,createExpressionForJsxElement:()=>qae,createExpressionForJsxFragment:()=>Jae,createExpressionForObjectLiteralElementLike:()=>Kae,createExpressionForPropertyName:()=>wH,createExpressionFromEntityName:()=>Kk,createExternalHelpersImportDeclarationIfNeeded:()=>WH,createFileDiagnostic:()=>Qc,createFileDiagnosticFromMessageChain:()=>V6,createForOfBindingStatement:()=>kH,createGetCanonicalFileName:()=>Pu,createGetSourceFile:()=>bJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Jv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>$le,createGetSymbolWalker:()=>$se,createIncrementalCompilerHost:()=>sK,createIncrementalProgram:()=>Bce,createInputFiles:()=>hSe,createInputFilesWithFilePaths:()=>rH,createInputFilesWithFileTexts:()=>iH,createJsxFactoryExpression:()=>LH,createLanguageService:()=>Tpe,createLanguageServiceSourceFile:()=>a9,createMemberAccessForPropertyName:()=>jS,createModeAwareCache:()=>vI,createModeAwareCacheKey:()=>WN,createModuleNotFoundChain:()=>k6,createModuleResolutionCache:()=>e2,createModuleResolutionLoader:()=>DJ,createModuleResolutionLoaderUsingGlobalCache:()=>Mce,createModuleSpecifierResolutionHost:()=>ZS,createMultiMap:()=>Xp,createNodeConverters:()=>oae,createNodeFactory:()=>Rk,createOptionNameMap:()=>g5,createOverload:()=>YQ,createPackageJsonImportFilter:()=>_P,createPackageJsonInfo:()=>xX,createParenthesizerRules:()=>iae,createPatternMatcher:()=>dde,createPrependNodes:()=>wJ,createPrinter:()=>x0,createPrinterWithDefaults:()=>fJ,createPrinterWithRemoveComments:()=>oE,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>mJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Lw,createProgram:()=>vF,createProgramHost:()=>aK,createPropertyNameNodeForIdentifierOrLiteral:()=>e7,createQueue:()=>PM,createRange:()=>Tf,createRedirectedBuilderProgram:()=>UJ,createResolutionCache:()=>XJ,createRuntimeTypeSerializer:()=>Mle,createScanner:()=>Mv,createSemanticDiagnosticsBuilderProgram:()=>QIe,createSet:()=>aG,createSolutionBuilder:()=>_xe,createSolutionBuilderHost:()=>fxe,createSolutionBuilderWithWatch:()=>hxe,createSolutionBuilderWithWatchHost:()=>mxe,createSortedArray:()=>QB,createSourceFile:()=>rw,createSourceMapGenerator:()=>dle,createSourceMapSource:()=>gSe,createSuperAccessVariableStatement:()=>iF,createSymbolTable:()=>ua,createSymlinkCache:()=>TU,createSystemWatchFunctions:()=>jne,createTextChange:()=>aO,createTextChangeFromStartLength:()=>aW,createTextChangeRange:()=>tL,createTextRangeFromNode:()=>nX,createTextRangeFromSpan:()=>oW,createTextSpan:()=>vu,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Rd,createTextSpanFromRange:()=>ib,createTextSpanFromStringLiteralLikeContent:()=>tX,createTextWriter:()=>ik,createTokenRange:()=>fU,createTypeChecker:()=>ole,createTypeReferenceDirectiveResolutionCache:()=>k5,createTypeReferenceResolutionLoader:()=>_F,createUnparsedSourceFile:()=>nH,createWatchCompilerHost:()=>uxe,createWatchCompilerHostOfConfigFile:()=>Fce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Wce,createWatchFactory:()=>iK,createWatchHost:()=>rK,createWatchProgram:()=>dxe,createWatchStatusReporter:()=>Lce,createWriteFileMeasuringIO:()=>EJ,declarationNameToString:()=>Ds,decodeMappings:()=>Uq,decodedTextSpanIntersectsWith:()=>eL,decorateHelper:()=>v7,deduplicate:()=>h1,defaultIncludeSpec:()=>C5,defaultInitCompilerOptions:()=>R5,defaultMaximumTruncationLength:()=>Ek,detectSortCaseSensitivity:()=>YD,diagnosticCategoryName:()=>aS,diagnosticToString:()=>nT,directoryProbablyExists:()=>Ym,directorySeparator:()=>il,displayPart:()=>rp,displayPartsToString:()=>OO,disposeEmitNodes:()=>aH,disposeResourcesHelper:()=>U7,documentSpansEqual:()=>uX,dumpTracingLegend:()=>Bne,elementAt:()=>Nv,elideNodes:()=>sse,emitComments:()=>Zie,emitDetachedComments:()=>eoe,emitFiles:()=>lF,emitFilesAndReportErrors:()=>NF,emitFilesAndReportErrorsAndGetExitStatus:()=>Oce,emitModuleKindIsNonNodeESM:()=>W3,emitNewLineBeforeLeadingCommentOfPosition:()=>Qie,emitNewLineBeforeLeadingComments:()=>Yie,emitNewLineBeforeLeadingCommentsOfPosition:()=>$ie,emitSkippedWithNoDiagnostics:()=>TF,emitUsingBuildInfo:()=>nce,emptyArray:()=>et,emptyFileSystemEntries:()=>p7,emptyMap:()=>z8,emptyOptions:()=>Pf,emptySet:()=>Nne,endsWith:()=>Sl,ensurePathIsNonModuleName:()=>v1,ensureScriptKind:()=>J3,ensureTrailingDirectorySeparator:()=>zc,entityNameToString:()=>fp,enumerateInsertsAndDeletes:()=>F8,equalOwnProperties:()=>gne,equateStringsCaseInsensitive:()=>Yb,equateStringsCaseSensitive:()=>rS,equateValues:()=>Cv,esDecorateHelper:()=>E7,escapeJsxAttributeString:()=>Zj,escapeLeadingUnderscores:()=>ml,escapeNonAsciiString:()=>rk,escapeSnippetText:()=>G1,escapeString:()=>rg,escapeTemplateSubstitution:()=>$j,every:()=>Jn,expandPreOrPostfixIncrementOrDecrementExpression:()=>l5,explainFiles:()=>QJ,explainIfFileIsRedirectAndImpliedFormat:()=>ZJ,exportAssignmentIsAlias:()=>mR,exportStarHelper:()=>z7,expressionResultIsUnused:()=>Hoe,extend:()=>P8,extendsHelper:()=>C7,extensionFromPath:()=>ZC,extensionIsTS:()=>Y3,extensionsNotSupportingExtensionlessResolution:()=>xk,externalHelpersModuleNameText:()=>Hy,factory:()=>k,fileExtensionIs:()=>Tl,fileExtensionIsOneOf:()=>Ec,fileIncludeReasonToDiagnostics:()=>nK,fileShouldUseJavaScriptRequire:()=>LX,filter:()=>tr,filterMutate:()=>Bi,filterSemanticDiagnostics:()=>yF,find:()=>vn,findAncestor:()=>zn,findBestPatternMatch:()=>uG,findChildOfKind:()=>bs,findComputedPropertyNameCacheAssignment:()=>_5,findConfigFile:()=>oce,findContainingList:()=>$F,findDiagnosticForNode:()=>Que,findFirstNonJsxWhitespaceToken:()=>yue,findIndex:()=>ri,findLast:()=>Qr,findLastIndex:()=>to,findListItemInfo:()=>vue,findMap:()=>Ga,findModifier:()=>y2,findNextToken:()=>lE,findPackageJson:()=>Yue,findPackageJsons:()=>IX,findPrecedingMatchingToken:()=>rW,findPrecedingToken:()=>Ac,findSuperStatementIndexPath:()=>Z5,findTokenOnLeftOfPosition:()=>eW,findUseStrictPrologue:()=>FH,first:()=>Ha,firstDefined:()=>Zt,firstDefinedIterator:()=>ir,firstIterator:()=>tG,firstOrOnly:()=>NX,firstOrUndefined:()=>Xc,firstOrUndefinedIterator:()=>D8,fixupCompilerOptions:()=>tY,flatMap:()=>Zi,flatMapIterator:()=>qf,flatMapToMutable:()=>$d,flatten:()=>ts,flattenCommaList:()=>use,flattenDestructuringAssignment:()=>JS,flattenDestructuringBinding:()=>iE,flattenDiagnosticMessageText:()=>W_,forEach:()=>Ke,forEachAncestor:()=>Yre,forEachAncestorDirectory:()=>Em,forEachChild:()=>Ho,forEachChildRecursively:()=>PN,forEachEmittedFile:()=>cJ,forEachEnclosingBlockScopeContainer:()=>cie,forEachEntry:()=>Bc,forEachExternalModuleToImportFrom:()=>BX,forEachImportClauseDeclaration:()=>d3,forEachKey:()=>mh,forEachLeadingCommentRange:()=>XM,forEachNameInAccessChainWalkingLeft:()=>Eoe,forEachPropertyAssignment:()=>iR,forEachResolvedProjectReference:()=>NJ,forEachReturnStatement:()=>R1,forEachRight:()=>Gt,forEachTrailingCommentRange:()=>YM,forEachTsConfigPropArray:()=>DL,forEachUnique:()=>pX,forEachYieldExpression:()=>_ie,forSomeAncestorDirectory:()=>zEe,formatColorAndReset:()=>aE,formatDiagnostic:()=>TJ,formatDiagnostics:()=>LIe,formatDiagnosticsWithColorAndContext:()=>lce,formatGeneratedName:()=>E0,formatGeneratedNamePart:()=>XR,formatLocation:()=>AJ,formatMessage:()=>bU,formatStringFromArgs:()=>ag,formatting:()=>wc,fullTripleSlashAMDReferencePathRegEx:()=>zU,fullTripleSlashReferencePathRegEx:()=>WU,generateDjb2Hash:()=>nC,generateTSConfig:()=>FTe,generatorHelper:()=>O7,getAdjustedReferenceLocation:()=>JK,getAdjustedRenameLocation:()=>ZF,getAliasDeclarationFromName:()=>Bj,getAllAccessorDeclarations:()=>RS,getAllDecoratorsOfClass:()=>Xq,getAllDecoratorsOfClassElement:()=>tF,getAllJSDocTags:()=>g6,getAllJSDocTagsOfKind:()=>Y1e,getAllKeys:()=>U0e,getAllProjectOutputs:()=>sF,getAllSuperTypeNodes:()=>PC,getAllUnscopedEmitHelpers:()=>dH,getAllowJSCompilerOption:()=>qy,getAllowSyntheticDefaultImports:()=>NS,getAncestor:()=>p0,getAnyExtensionFromPath:()=>Wx,getAreDeclarationMapsEnabled:()=>Tk,getAssignedExpandoInitializer:()=>PA,getAssignedName:()=>_6,getAssignedNameOfIdentifier:()=>HN,getAssignmentDeclarationKind:()=>Wl,getAssignmentDeclarationPropertyAccessKind:()=>BL,getAssignmentTargetKind:()=>wA,getAutomaticTypeDirectiveNames:()=>M5,getBaseFileName:()=>rc,getBinaryOperatorPrecedence:()=>nk,getBuildInfo:()=>cF,getBuildInfoFileVersionMap:()=>jJ,getBuildInfoText:()=>tce,getBuildOrderFromAnyBuildOrder:()=>wF,getBuilderCreationParameters:()=>AF,getBuilderFileEmit:()=>rb,getCheckFlags:()=>Al,getClassExtendsHeritageElement:()=>M1,getClassLikeDeclarationOfSymbol:()=>Bg,getCombinedLocalAndExportSymbolFlags:()=>AR,getCombinedModifierFlags:()=>t0,getCombinedNodeFlags:()=>Lv,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>kV,getCommentRange:()=>L_,getCommonSourceDirectory:()=>QN,getCommonSourceDirectoryOfConfig:()=>a2,getCompilerOptionValue:()=>B3,getCompilerOptionsDiffValue:()=>wTe,getConditions:()=>tb,getConfigFileParsingDiagnostics:()=>XS,getConstantValue:()=>dae,getContainerFlags:()=>Mq,getContainerNode:()=>QS,getContainingClass:()=>su,getContainingClassExcludingClassDecorators:()=>$6,getContainingClassStaticBlock:()=>Aie,getContainingFunction:()=>zp,getContainingFunctionDeclaration:()=>Tie,getContainingFunctionOrClassStaticBlock:()=>Y6,getContainingNodeArray:()=>qoe,getContainingObjectLiteralElement:()=>FO,getContextualTypeFromParent:()=>gW,getContextualTypeFromParentOrAncestorTypeNode:()=>QF,getCurrentTime:()=>Uw,getDeclarationDiagnostics:()=>Qle,getDeclarationEmitExtensionForPath:()=>b3,getDeclarationEmitOutputFilePath:()=>Hie,getDeclarationEmitOutputFilePathWorker:()=>y3,getDeclarationFileExtension:()=>JH,getDeclarationFromName:()=>NC,getDeclarationModifierFlagsFromSymbol:()=>If,getDeclarationOfKind:()=>dl,getDeclarationsOfKind:()=>Jre,getDeclaredExpandoInitializer:()=>OL,getDecorators:()=>Ny,getDefaultCompilerOptions:()=>o9,getDefaultExportInfoWorker:()=>kW,getDefaultFormatCodeSettings:()=>jF,getDefaultLibFileName:()=>QM,getDefaultLibFilePath:()=>Ape,getDefaultLikeExportInfo:()=>LW,getDiagnosticText:()=>ITe,getDiagnosticsWithinSpan:()=>Zue,getDirectoryPath:()=>li,getDirectoryToWatchFailedLookupLocation:()=>KJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Nce,getDocumentPositionMapper:()=>XX,getDocumentSpansEqualityComparer:()=>dX,getESModuleInterop:()=>vh,getEditsForFileRename:()=>lde,getEffectiveBaseTypeNode:()=>x_,getEffectiveConstraintOfTypeParameter:()=>Ux,getEffectiveContainerForJSDocTemplateTag:()=>p3,getEffectiveImplementsTypeNodes:()=>_R,getEffectiveInitializer:()=>wL,getEffectiveJSDocHost:()=>d0,getEffectiveModifierFlags:()=>cd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>ioe,getEffectiveModifierFlagsNoCache:()=>ooe,getEffectiveReturnTypeNode:()=>tm,getEffectiveSetAccessorTypeAnnotationNode:()=>Xie,getEffectiveTypeAnnotationNode:()=>yu,getEffectiveTypeParameterDeclarations:()=>Py,getEffectiveTypeRoots:()=>FN,getElementOrPropertyAccessArgumentExpressionOrName:()=>u3,getElementOrPropertyAccessName:()=>Fg,getElementsOfBindingOrAssignmentPattern:()=>KR,getEmitDeclarations:()=>xf,getEmitFlags:()=>Va,getEmitHelpers:()=>g7,getEmitModuleDetectionKind:()=>UU,getEmitModuleKind:()=>ku,getEmitModuleResolutionKind:()=>dd,getEmitScriptTarget:()=>as,getEmitStandardClassFields:()=>Noe,getEnclosingBlockScopeContainer:()=>_h,getEnclosingContainer:()=>bj,getEncodedSemanticClassifications:()=>jX,getEncodedSyntacticClassifications:()=>UX,getEndLinePosition:()=>bL,getEntityNameFromTypeNode:()=>PL,getEntrypointsFromPackageJsonInfo:()=>Iq,getErrorCountForSummary:()=>DF,getErrorSpanForNode:()=>hS,getErrorSummaryText:()=>kce,getEscapedTextOfIdentifierOrLiteral:()=>kC,getEscapedTextOfJsxAttributeName:()=>lN,getEscapedTextOfJsxNamespacedName:()=>HA,getExpandoInitializer:()=>c0,getExportAssignmentExpression:()=>Gj,getExportInfoMap:()=>bO,getExportNeedsImportStarHelper:()=>hle,getExpressionAssociativity:()=>Kj,getExpressionPrecedence:()=>OC,getExternalHelpersModuleName:()=>Yk,getExternalModuleImportEqualsDeclarationExpression:()=>RC,getExternalModuleName:()=>uR,getExternalModuleNameFromDeclaration:()=>jie,getExternalModuleNameFromPath:()=>tU,getExternalModuleNameLiteral:()=>mI,getExternalModuleRequireArgument:()=>Dj,getFallbackOptions:()=>Ow,getFileEmitOutput:()=>_ce,getFileMatcherPatterns:()=>q3,getFileNamesFromConfigSpecs:()=>kN,getFileWatcherEventKind:()=>bV,getFilesInErrorForSummary:()=>CF,getFirstConstructorWithBody:()=>ig,getFirstIdentifier:()=>Bp,getFirstNonSpaceCharacterPosition:()=>Uue,getFirstProjectOutput:()=>pJ,getFixableErrorSpanExpression:()=>DX,getFormatCodeSettingsForWriting:()=>CW,getFullWidth:()=>vL,getFunctionFlags:()=>Gc,getHeritageClause:()=>QL,getHostSignatureFromJSDoc:()=>u0,getIdentifierAutoGenerate:()=>SSe,getIdentifierGeneratedImportReference:()=>gae,getIdentifierTypeArguments:()=>PS,getImmediatelyInvokedFunctionExpression:()=>vS,getImpliedNodeFormatForFile:()=>Bw,getImpliedNodeFormatForFileWorker:()=>LJ,getImportNeedsImportDefaultHelper:()=>qq,getImportNeedsImportStarHelper:()=>$5,getIndentSize:()=>bR,getIndentString:()=>g3,getInferredLibraryNameResolveFrom:()=>gF,getInitializedVariables:()=>qC,getInitializerOfBinaryExpression:()=>Lj,getInitializerOfBindingOrAssignmentElement:()=>Qk,getInterfaceBaseTypeNodes:()=>MC,getInternalEmitFlags:()=>Tm,getInvokedExpression:()=>e3,getIsolatedModules:()=>im,getJSDocAugmentsTag:()=>hre,getJSDocClassTag:()=>OV,getJSDocCommentRanges:()=>Tj,getJSDocCommentsAndTags:()=>wj,getJSDocDeprecatedTag:()=>FV,getJSDocDeprecatedTagNoCache:()=>Tre,getJSDocEnumTag:()=>WV,getJSDocHost:()=>SS,getJSDocImplementsTags:()=>gre,getJSDocOverloadTags:()=>Fj,getJSDocOverrideTagNoCache:()=>Sre,getJSDocParameterTags:()=>jx,getJSDocParameterTagsNoCache:()=>pre,getJSDocPrivateTag:()=>H1e,getJSDocPrivateTagNoCache:()=>yre,getJSDocProtectedTag:()=>q1e,getJSDocProtectedTagNoCache:()=>bre,getJSDocPublicTag:()=>U1e,getJSDocPublicTagNoCache:()=>vre,getJSDocReadonlyTag:()=>J1e,getJSDocReadonlyTagNoCache:()=>Ere,getJSDocReturnTag:()=>Are,getJSDocReturnType:()=>rL,getJSDocRoot:()=>fR,getJSDocSatisfiesExpressionType:()=>wU,getJSDocSatisfiesTag:()=>zV,getJSDocTags:()=>o0,getJSDocTagsNoCache:()=>X1e,getJSDocTemplateTag:()=>K1e,getJSDocThisTag:()=>h6,getJSDocType:()=>i0,getJSDocTypeAliasName:()=>BH,getJSDocTypeAssertionType:()=>u5,getJSDocTypeParameterDeclarations:()=>A3,getJSDocTypeParameterTags:()=>fre,getJSDocTypeParameterTagsNoCache:()=>mre,getJSDocTypeTag:()=>r0,getJSXImplicitImportBase:()=>V3,getJSXRuntimeImport:()=>j3,getJSXTransformEnabled:()=>G3,getKeyForCompilerOptions:()=>yq,getLanguageVariant:()=>dk,getLastChild:()=>gU,getLeadingCommentRanges:()=>Kh,getLeadingCommentRangesOfNode:()=>Sj,getLeftmostAccessExpression:()=>IR,getLeftmostExpression:()=>xR,getLibraryNameFromLibFileName:()=>PJ,getLineAndCharacterOfPosition:()=>Es,getLineInfo:()=>Vq,getLineOfLocalPosition:()=>WC,getLineOfLocalPositionFromLineMap:()=>IS,getLineStartPositionForPosition:()=>sm,getLineStarts:()=>Mg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>goe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>hoe,getLinesBetweenPositions:()=>aC,getLinesBetweenRangeEndAndRangeStart:()=>mU,getLinesBetweenRangeEndPositions:()=>FEe,getLiteralText:()=>nie,getLocalNameForExternalImport:()=>JR,getLocalSymbolForExportDefault:()=>TR,getLocaleSpecificMessage:()=>Bo,getLocaleTimeString:()=>jw,getMappedContextSpan:()=>fX,getMappedDocumentSpan:()=>fW,getMappedLocation:()=>cP,getMatchedFileSpec:()=>eK,getMatchedIncludeSpec:()=>tK,getMeaningFromDeclaration:()=>Yw,getMeaningFromLocation:()=>$S,getMembersOfDeclaration:()=>hie,getModeForFileReference:()=>Ww,getModeForResolutionAtIndex:()=>cce,getModeForUsageLocation:()=>xJ,getModifiedTime:()=>bA,getModifiers:()=>b1,getModuleInstanceState:()=>qg,getModuleNameStringLiteralAt:()=>Gw,getModuleSpecifierEndingPreference:()=>Foe,getModuleSpecifierResolverHost:()=>aX,getNameForExportedSymbol:()=>xW,getNameFromImportAttribute:()=>i7,getNameFromIndexInfo:()=>uie,getNameFromPropertyName:()=>cO,getNameOfAccessExpression:()=>yU,getNameOfCompilerOptionValue:()=>iq,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>Pj,getNameOfJSDocTypedef:()=>dre,getNameOrArgument:()=>zL,getNameTable:()=>wY,getNamesForExportedSymbol:()=>ede,getNamespaceDeclarationNode:()=>dR,getNewLineCharacter:()=>Gv,getNewLineKind:()=>yO,getNewLineOrDefaultFromHost:()=>Qv,getNewTargetContainer:()=>xie,getNextJSDocCommentLocation:()=>Oj,getNodeForGeneratedName:()=>ew,getNodeId:()=>ss,getNodeKind:()=>sE,getNodeModifiers:()=>aP,getNodeModulePathParts:()=>t7,getNonAssignedNameOfDeclaration:()=>m6,getNonAssignmentOperatorForCompoundAssignment:()=>VN,getNonAugmentationDeclaration:()=>mj,getNonDecoratorTokenPosOfNode:()=>cj,getNormalizedAbsolutePath:()=>bo,getNormalizedAbsolutePathWithoutRoot:()=>xV,getNormalizedPathComponents:()=>VM,getObjectFlags:()=>Wr,getOperator:()=>Yj,getOperatorAssociativity:()=>Xj,getOperatorPrecedence:()=>tk,getOptionFromName:()=>eq,getOptionsForLibraryResolution:()=>Eq,getOptionsNameMap:()=>$R,getOrCreateEmitNode:()=>wu,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Qae,getOrUpdate:()=>mA,getOriginalNode:()=>Nl,getOriginalNodeId:()=>Ou,getOriginalSourceFile:()=>REe,getOutputDeclarationFileName:()=>$N,getOutputDeclarationFileNameWorker:()=>uJ,getOutputExtension:()=>aF,getOutputFileNames:()=>PIe,getOutputJSFileNameWorker:()=>dJ,getOutputPathsFor:()=>YN,getOutputPathsForBundle:()=>XN,getOwnEmitOutputFilePath:()=>Uie,getOwnKeys:()=>Jh,getOwnValues:()=>hA,getPackageJsonInfo:()=>eE,getPackageJsonTypesVersionsPaths:()=>P5,getPackageJsonsVisibleToFile:()=>$ue,getPackageNameFromTypesPackageName:()=>zN,getPackageScopeForPath:()=>bw,getParameterSymbolFromJSDoc:()=>JL,getParameterTypeNode:()=>KEe,getParentNodeInSpan:()=>dO,getParseTreeNode:()=>Lo,getParsedCommandLineOfConfigFile:()=>ow,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>DV,getPathFromPathComponents:()=>Ry,getPathUpdater:()=>JX,getPathsBasePath:()=>E3,getPatternFromSpec:()=>koe,getPendingEmitKind:()=>d2,getPositionOfLineAndCharacter:()=>JM,getPossibleGenericSignatures:()=>XK,getPossibleOriginalInputExtensionForExtension:()=>qie,getPossibleTypeArgumentsInfo:()=>YK,getPreEmitDiagnostics:()=>MIe,getPrecedingNonSpaceCharacterPosition:()=>_W,getPrivateIdentifier:()=>Yq,getProperties:()=>Kq,getProperty:()=>C8,getPropertyArrayElementValue:()=>Sie,getPropertyAssignmentAliasLikeExpression:()=>zie,getPropertyNameForPropertyNameNode:()=>TS,getPropertyNameForUniqueESSymbol:()=>IEe,getPropertyNameFromType:()=>rm,getPropertyNameOfBindingOrAssignmentElement:()=>zH,getPropertySymbolFromBindingElement:()=>pW,getPropertySymbolsFromContextualType:()=>s9,getQuoteFromPreference:()=>lX,getQuotePreference:()=>af,getRangesWhere:()=>$B,getRefactorContextSpan:()=>DI,getReferencedFileLocation:()=>ZN,getRegexFromPattern:()=>jy,getRegularExpressionForWildcard:()=>YC,getRegularExpressionsForWildcards:()=>U3,getRelativePathFromDirectory:()=>bm,getRelativePathFromFile:()=>UM,getRelativePathToDirectoryOrUrl:()=>SA,getRenameLocation:()=>mO,getReplacementSpanForContextToken:()=>eX,getResolutionDiagnostic:()=>OJ,getResolutionModeOverride:()=>s2,getResolveJsonModule:()=>h0,getResolvePackageJsonExports:()=>c7,getResolvePackageJsonImports:()=>u7,getResolvedExternalModuleName:()=>v3,getRestIndicatorOfBindingOrAssignmentElement:()=>p5,getRestParameterElementType:()=>Aj,getRightMostAssignedExpression:()=>FL,getRootDeclaration:()=>D_,getRootDirectoryOfResolutionCache:()=>Pce,getRootLength:()=>dh,getRootPathSplitLength:()=>rxe,getScriptKind:()=>vX,getScriptKindFromFileName:()=>K3,getScriptTargetFeatures:()=>s7,getSelectedEffectiveModifierFlags:()=>WA,getSelectedSyntacticModifierFlags:()=>noe,getSemanticClassifications:()=>ide,getSemanticJsxChildren:()=>gR,getSetAccessorTypeAnnotationNode:()=>Jie,getSetAccessorValueParameter:()=>zC,getSetExternalModuleIndicator:()=>pk,getShebang:()=>d6,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>kj,getSingleVariableOfVariableStatement:()=>kA,getSnapshotText:()=>v2,getSnippetElement:()=>sH,getSourceFileOfModule:()=>O6,getSourceFileOfNode:()=>Vn,getSourceFilePathInNewDir:()=>S3,getSourceFilePathInNewDirWorker:()=>T3,getSourceFileVersionAsHashFromText:()=>PF,getSourceFilesToEmit:()=>nU,getSourceMapRange:()=>jv,getSourceMapper:()=>bde,getSourceTextOfNodeFromSourceFile:()=>A1,getSpanOfTokenAtPosition:()=>hh,getSpellingSuggestion:()=>QD,getStartPositionOfLine:()=>Wy,getStartPositionOfRange:()=>HC,getStartsOnNewLine:()=>fN,getStaticPropertiesAndClassStaticBlock:()=>eF,getStrictOptionValue:()=>ud,getStringComparer:()=>Nx,getSubPatternFromSpec:()=>H3,getSuperCallFromStatement:()=>Q5,getSuperContainer:()=>CL,getSupportedCodeFixes:()=>LY,getSupportedExtensions:()=>$C,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>fk,getSwitchedType:()=>TX,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>ZL,getSymbolTarget:()=>yX,getSyntacticClassifications:()=>ode,getSyntacticModifierFlags:()=>Gy,getSyntacticModifierFlagsNoCache:()=>aU,getSynthesizedDeepClone:()=>sl,getSynthesizedDeepCloneWithReplacements:()=>fO,getSynthesizedDeepClones:()=>cE,getSynthesizedDeepClonesWithReplacements:()=>bX,getSyntheticLeadingComments:()=>kR,getSyntheticTrailingComments:()=>Mk,getTargetLabel:()=>JF,getTargetOfBindingOrAssignmentElement:()=>eb,getTemporaryModuleResolutionState:()=>yw,getTextOfConstantValue:()=>rie,getTextOfIdentifierOrLiteral:()=>Zf,getTextOfJSDocComment:()=>oL,getTextOfJsxAttributeName:()=>bk,getTextOfJsxNamespacedName:()=>cN,getTextOfNode:()=>pc,getTextOfNodeFromSourceText:()=>EC,getTextOfPropertyName:()=>Zx,getThisContainer:()=>wd,getThisParameter:()=>k1,getTokenAtPosition:()=>po,getTokenPosOfNode:()=>s0,getTokenSourceMapRange:()=>bSe,getTouchingPropertyName:()=>zd,getTouchingToken:()=>g2,getTrailingCommentRanges:()=>Qb,getTrailingSemicolonDeferringWriter:()=>eU,getTransformFlagsSubtreeExclusions:()=>aae,getTransformers:()=>sJ,getTsBuildInfoEmitOutputFilePath:()=>Kv,getTsConfigObjectLiteralExpression:()=>IC,getTsConfigPropArrayElementValue:()=>X6,getTypeAnnotationNode:()=>Kie,getTypeArgumentOrTypeParameterList:()=>Rue,getTypeKeywordOfTypeOnlyImport:()=>cX,getTypeNode:()=>_ae,getTypeNodeIfAccessible:()=>mP,getTypeParameterFromJsDoc:()=>Lie,getTypeParameterOwner:()=>z1e,getTypesPackageName:()=>W5,getUILocale:()=>Sne,getUniqueName:()=>tT,getUniqueSymbolId:()=>jue,getUseDefineForClassFields:()=>pN,getWatchErrorSummaryDiagnosticMessage:()=>YJ,getWatchFactory:()=>gJ,group:()=>$D,groupBy:()=>N8,guessIndentation:()=>Hre,handleNoEmitOptions:()=>kJ,hasAbstractModifier:()=>F1,hasAccessorModifier:()=>C_,hasAmbientModifier:()=>oU,hasChangesInResolutions:()=>aj,hasChildOfKind:()=>rO,hasContextSensitiveParameters:()=>Z3,hasDecorators:()=>Sf,hasDocComment:()=>Iue,hasDynamicName:()=>By,hasEffectiveModifier:()=>_p,hasEffectiveModifiers:()=>I3,hasEffectiveReadonlyModifier:()=>BC,hasExtension:()=>EA,hasIndexSignature:()=>SX,hasInitializer:()=>Oy,hasInvalidEscape:()=>Qj,hasJSDocNodes:()=>Op,hasJSDocParameterTags:()=>_re,hasJSFileExtension:()=>W1,hasJsonModuleEmitEnabled:()=>z3,hasOnlyExpressionInitializer:()=>fS,hasOverrideModifier:()=>x3,hasPossibleExternalModuleReference:()=>lie,hasProperty:()=>Rs,hasPropertyAccessExpressionWithName:()=>Qw,hasQuestionToken:()=>LA,hasRecordedExternalHelpers:()=>$ae,hasResolutionModeOverride:()=>$oe,hasRestParameter:()=>nj,hasScopeMarker:()=>Fre,hasStaticModifier:()=>fc,hasSyntacticModifier:()=>ei,hasSyntacticModifiers:()=>toe,hasTSFileExtension:()=>UA,hasTabstop:()=>Koe,hasTrailingDirectorySeparator:()=>Pv,hasType:()=>N6,hasTypeArguments:()=>bEe,hasZeroOrOneAsteriskCharacter:()=>SU,helperString:()=>uH,hostGetCanonicalFileName:()=>Wv,hostUsesCaseSensitiveFileNames:()=>ER,idText:()=>Sr,identifierIsThisKeyword:()=>iU,identifierToKeywordKind:()=>n0,identity:()=>el,identitySourceMapConsumer:()=>Y5,ignoreSourceNewlines:()=>cH,ignoredPaths:()=>GM,importDefaultHelper:()=>W7,importFromModuleSpecifier:()=>CC,importNameElisionDisabled:()=>EU,importStarHelper:()=>kk,indexOfAnyCharCode:()=>Kc,indexOfNode:()=>Qx,indicesOf:()=>DM,inferredTypesContainingFile:()=>u2,injectClassNamedEvaluationHelperBlockIfMissing:()=>rF,injectClassThisAssignmentIfMissing:()=>xle,insertImports:()=>lP,insertLeadingStatement:()=>zSe,insertSorted:()=>Ty,insertStatementAfterCustomPrologue:()=>mS,insertStatementAfterStandardPrologue:()=>uEe,insertStatementsAfterCustomPrologue:()=>sj,insertStatementsAfterStandardPrologue:()=>Qh,intersperse:()=>Qi,intrinsicTagNameToString:()=>OU,introducesArgumentsExoticObject:()=>bie,inverseJsxOptionMap:()=>wN,isAbstractConstructorSymbol:()=>voe,isAbstractModifier:()=>Iae,isAccessExpression:()=>ks,isAccessibilityModifier:()=>QK,isAccessor:()=>Ly,isAccessorModifier:()=>Rae,isAliasSymbolDeclaration:()=>SEe,isAliasableExpression:()=>$L,isAmbientModule:()=>Lu,isAmbientPropertyDeclaration:()=>hj,isAnonymousFunctionDefinition:()=>wC,isAnyDirectorySeparator:()=>TV,isAnyImportOrBareOrAccessedRequire:()=>sie,isAnyImportOrReExport:()=>SL,isAnyImportSyntax:()=>_S,isAnySupportedFileExtension:()=>JEe,isApplicableVersionedTypesKey:()=>Sw,isArgumentExpressionOfElementAccess:()=>GK,isArray:()=>Do,isArrayBindingElement:()=>A6,isArrayBindingOrAssignmentElement:()=>pL,isArrayBindingOrAssignmentPattern:()=>YV,isArrayBindingPattern:()=>U1,isArrayLiteralExpression:()=>pd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Yv,isArrayTypeNode:()=>Gk,isArrowFunction:()=>Bs,isAsExpression:()=>jk,isAssertClause:()=>kae,isAssertEntry:()=>PSe,isAssertionExpression:()=>pS,isAssertsKeyword:()=>Tae,isAssignmentDeclaration:()=>DC,isAssignmentExpression:()=>Mc,isAssignmentOperator:()=>zv,isAssignmentPattern:()=>vC,isAssignmentTarget:()=>ng,isAsteriskToken:()=>Fk,isAsyncFunction:()=>LC,isAsyncModifier:()=>hN,isAutoAccessorPropertyDeclaration:()=>kd,isAwaitExpression:()=>$y,isAwaitKeyword:()=>gH,isBigIntLiteral:()=>H7,isBinaryExpression:()=>_r,isBinaryOperatorToken:()=>ase,isBindableObjectDefinePropertyCall:()=>bS,isBindableStaticAccessExpression:()=>N1,isBindableStaticElementAccessExpression:()=>c3,isBindableStaticNameExpression:()=>ES,isBindingElement:()=>Qa,isBindingElementOfBareOrAccessedRequire:()=>Cie,isBindingName:()=>uS,isBindingOrAssignmentElement:()=>Pre,isBindingOrAssignmentPattern:()=>uL,isBindingPattern:()=>ta,isBlock:()=>Xo,isBlockOrCatchScoped:()=>uj,isBlockScope:()=>gj,isBlockScopedContainerTopLevel:()=>aie,isBooleanLiteral:()=>gC,isBreakOrContinueStatement:()=>fC,isBreakStatement:()=>DSe,isBuildInfoFile:()=>ece,isBuilderProgram:()=>wce,isBundle:()=>AH,isBundleFileTextLike:()=>boe,isCallChain:()=>lS,isCallExpression:()=>la,isCallExpressionTarget:()=>wK,isCallLikeExpression:()=>T1,isCallLikeOrFunctionLikeExpression:()=>$V,isCallOrNewExpression:()=>T_,isCallOrNewExpressionTarget:()=>OK,isCallSignatureDeclaration:()=>nI,isCallToHelper:()=>_N,isCaseBlock:()=>TN,isCaseClause:()=>GR,isCaseKeyword:()=>Dae,isCaseOrDefaultClause:()=>D6,isCatchClause:()=>$1,isCatchClauseVariableDeclaration:()=>Joe,isCatchClauseVariableDeclarationOrBindingElement:()=>dj,isCheckJsEnabledForFile:()=>hk,isChildOfNodeWithKind:()=>pEe,isCircularBuildOrder:()=>TI,isClassDeclaration:()=>Tc,isClassElement:()=>$c,isClassExpression:()=>Zc,isClassInstanceProperty:()=>Cre,isClassLike:()=>pi,isClassMemberModifier:()=>JV,isClassNamedEvaluationHelperBlock:()=>SI,isClassOrTypeElement:()=>T6,isClassStaticBlockDeclaration:()=>Il,isClassThisAssignmentBlock:()=>UN,isCollapsedRange:()=>OEe,isColonToken:()=>Eae,isCommaExpression:()=>Xk,isCommaListExpression:()=>bN,isCommaSequence:()=>DN,isCommaToken:()=>bae,isComment:()=>iW,isCommonJsExportPropertyAssignment:()=>J6,isCommonJsExportedExpression:()=>vie,isCompoundAssignment:()=>GN,isComputedNonLiteralName:()=>TL,isComputedPropertyName:()=>Za,isConciseBody:()=>x6,isConditionalExpression:()=>BR,isConditionalTypeNode:()=>aI,isConstTypeReference:()=>kg,isConstructSignatureDeclaration:()=>zk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>OR,isContextualKeyword:()=>m3,isContinueStatement:()=>RSe,isCustomPrologue:()=>RL,isDebuggerStatement:()=>CSe,isDeclaration:()=>qu,isDeclarationBindingElement:()=>cL,isDeclarationFileName:()=>Su,isDeclarationName:()=>Wg,isDeclarationNameOfEnumOrNamespace:()=>_U,isDeclarationReadonly:()=>j6,isDeclarationStatement:()=>Gre,isDeclarationWithTypeParameterChildren:()=>yj,isDeclarationWithTypeParameters:()=>vj,isDecorator:()=>Eu,isDecoratorTarget:()=>pue,isDefaultClause:()=>IN,isDefaultImport:()=>MA,isDefaultModifier:()=>X7,isDefaultedExpandoInitializer:()=>Nie,isDeleteExpression:()=>Pae,isDeleteTarget:()=>zj,isDeprecatedDeclaration:()=>RW,isDestructuringAssignment:()=>Bv,isDiagnosticWithLocation:()=>RX,isDiskPathRoot:()=>AV,isDoStatement:()=>ISe,isDocumentRegistryEntry:()=>EO,isDotDotDotToken:()=>J7,isDottedName:()=>VC,isDynamicName:()=>h3,isESSymbolIdentifier:()=>xEe,isEffectiveExternalModule:()=>NA,isEffectiveModuleDeclaration:()=>oie,isEffectiveStrictModeSourceFile:()=>_j,isElementAccessChain:()=>BV,isElementAccessExpression:()=>Ys,isEmittedFileOfProgram:()=>ice,isEmptyArrayLiteral:()=>coe,isEmptyBindingElement:()=>cre,isEmptyBindingPattern:()=>lre,isEmptyObjectLiteral:()=>dU,isEmptyStatement:()=>EH,isEmptyStringLiteral:()=>Rj,isEntityName:()=>Qd,isEntityNameExpression:()=>zl,isEnumConst:()=>x1,isEnumDeclaration:()=>v0,isEnumMember:()=>Q1,isEqualityOperatorKind:()=>vW,isEqualsGreaterThanToken:()=>Sae,isExclamationToken:()=>Wk,isExcludedFile:()=>bse,isExclusivelyTypeOnlyImportOrExport:()=>IJ,isExpandoPropertyDeclaration:()=>r7,isExportAssignment:()=>Ll,isExportDeclaration:()=>Kl,isExportModifier:()=>eI,isExportName:()=>c5,isExportNamespaceAsDefaultDeclaration:()=>z6,isExportOrDefaultModifier:()=>Zk,isExportSpecifier:()=>Ju,isExportsIdentifier:()=>yS,isExportsOrModuleExportsOrAlias:()=>tE,isExpression:()=>bt,isExpressionNode:()=>eg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>hue,isExpressionOfOptionalChainRoot:()=>b6,isExpressionStatement:()=>eu,isExpressionWithTypeArguments:()=>Hv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>R3,isExternalModule:()=>ac,isExternalModuleAugmentation:()=>I1,isExternalModuleImportEqualsDeclaration:()=>l0,isExternalModuleIndicator:()=>fL,isExternalModuleNameRelative:()=>Yc,isExternalModuleReference:()=>Th,isExternalModuleSymbol:()=>sO,isExternalOrCommonJsModule:()=>Fp,isFileLevelReservedGeneratedIdentifier:()=>lL,isFileLevelUniqueName:()=>F6,isFileProbablyExternalModule:()=>nw,isFirstDeclarationOfSymbolParameter:()=>mX,isFixablePromiseHandler:()=>QX,isForInOrOfStatement:()=>Jx,isForInStatement:()=>t5,isForInitializer:()=>Ef,isForOfStatement:()=>Uk,isForStatement:()=>FS,isFunctionBlock:()=>D1,isFunctionBody:()=>ZV,isFunctionDeclaration:()=>Sc,isFunctionExpression:()=>ws,isFunctionExpressionOrArrowFunction:()=>B1,isFunctionLike:()=>ea,isFunctionLikeDeclaration:()=>zs,isFunctionLikeKind:()=>xA,isFunctionLikeOrClassStaticBlockDeclaration:()=>qx,isFunctionOrConstructorTypeNode:()=>Nre,isFunctionOrModuleBlock:()=>KV,isFunctionSymbol:()=>Mie,isFunctionTypeNode:()=>bh,isFutureReservedKeyword:()=>TEe,isGeneratedIdentifier:()=>ol,isGeneratedPrivateIdentifier:()=>cS,isGetAccessor:()=>wy,isGetAccessorDeclaration:()=>Zp,isGetOrSetAccessorDeclaration:()=>v6,isGlobalDeclaration:()=>dRe,isGlobalScopeAugmentation:()=>I_,isGrammarError:()=>eie,isHeritageClause:()=>ef,isHoistedFunction:()=>H6,isHoistedVariableStatement:()=>q6,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>Uj,isIdentifierName:()=>Wie,isIdentifierOrThisTypeNode:()=>nse,isIdentifierPart:()=>Zb,isIdentifierStart:()=>Xh,isIdentifierText:()=>$p,isIdentifierTypePredicate:()=>Eie,isIdentifierTypeReference:()=>Voe,isIfStatement:()=>OS,isIgnoredFileFromWildCardWatching:()=>ww,isImplicitGlob:()=>IU,isImportAttribute:()=>wae,isImportAttributeName:()=>Dre,isImportAttributes:()=>cI,isImportCall:()=>Wp,isImportClause:()=>Eh,isImportDeclaration:()=>Lc,isImportEqualsDeclaration:()=>tu,isImportKeyword:()=>vN,isImportMeta:()=>nR,isImportOrExportSpecifier:()=>IA,isImportOrExportSpecifierName:()=>Vue,isImportSpecifier:()=>tp,isImportTypeAssertionContainer:()=>NSe,isImportTypeNode:()=>lg,isImportableFile:()=>zX,isInComment:()=>Xv,isInCompoundLikeAssignment:()=>Wj,isInExpressionContext:()=>n3,isInJSDoc:()=>LL,isInJSFile:()=>cr,isInJSXText:()=>Tue,isInJsonFile:()=>i3,isInNonReferenceComment:()=>Nue,isInReferenceComment:()=>Cue,isInRightSideOfInternalImportEqualsDeclaration:()=>HF,isInString:()=>II,isInTemplateString:()=>KK,isInTopLevelContext:()=>Q6,isInTypeQuery:()=>xS,isIncrementalCompilation:()=>dN,isIndexSignatureDeclaration:()=>j1,isIndexedAccessTypeNode:()=>wS,isInferTypeNode:()=>MS,isInfinityOrNaNString:()=>oN,isInitializedProperty:()=>Dw,isInitializedVariable:()=>uk,isInsideJsxElement:()=>nW,isInsideJsxElementOrAttribute:()=>Sue,isInsideNodeModules:()=>vO,isInsideTemplateLiteral:()=>oO,isInstanceOfExpression:()=>D3,isInstantiatedModule:()=>Oq,isInterfaceDeclaration:()=>fd,isInternalDeclaration:()=>rj,isInternalModuleImportEqualsDeclaration:()=>sR,isInternalName:()=>OH,isIntersectionTypeNode:()=>oI,isIntrinsicJsxName:()=>yR,isIterationStatement:()=>ky,isJSDoc:()=>t_,isJSDocAllType:()=>Bae,isJSDocAugmentsTag:()=>fI,isJSDocAuthorTag:()=>wSe,isJSDocCallbackTag:()=>xH,isJSDocClassTag:()=>Vae,isJSDocCommentContainingNode:()=>C6,isJSDocConstructSignature:()=>pR,isJSDocDeprecatedTag:()=>PH,isJSDocEnumTag:()=>qk,isJSDocFunctionType:()=>jR,isJSDocImplementsTag:()=>a5,isJSDocIndexSignature:()=>o3,isJSDocLikeText:()=>HH,isJSDocLink:()=>Wae,isJSDocLinkCode:()=>zae,isJSDocLinkLike:()=>CA,isJSDocLinkPlain:()=>LSe,isJSDocMemberName:()=>y0,isJSDocNameReference:()=>xN,isJSDocNamepathType:()=>kSe,isJSDocNamespaceBody:()=>iEe,isJSDocNode:()=>Kx,isJSDocNonNullableType:()=>n5,isJSDocNullableType:()=>VR,isJSDocOptionalParameter:()=>yk,isJSDocOptionalType:()=>IH,isJSDocOverloadTag:()=>UR,isJSDocOverrideTag:()=>i5,isJSDocParameterTag:()=>n_,isJSDocPrivateTag:()=>DH,isJSDocPropertyLikeTag:()=>mC,isJSDocPropertyTag:()=>jae,isJSDocProtectedTag:()=>CH,isJSDocPublicTag:()=>RH,isJSDocReadonlyTag:()=>NH,isJSDocReturnTag:()=>o5,isJSDocSatisfiesExpression:()=>kU,isJSDocSatisfiesTag:()=>s5,isJSDocSeeTag:()=>OSe,isJSDocSignature:()=>b0,isJSDocTag:()=>Xx,isJSDocTemplateTag:()=>am,isJSDocThisTag:()=>MH,isJSDocThrowsTag:()=>WSe,isJSDocTypeAlias:()=>Qf,isJSDocTypeAssertion:()=>qR,isJSDocTypeExpression:()=>Z1,isJSDocTypeLiteral:()=>GS,isJSDocTypeTag:()=>RN,isJSDocTypedefTag:()=>VS,isJSDocUnknownTag:()=>FSe,isJSDocUnknownType:()=>Gae,isJSDocVariadicType:()=>r5,isJSXTagName:()=>aR,isJsonEqual:()=>$3,isJsonSourceFile:()=>$f,isJsxAttribute:()=>O_,isJsxAttributeLike:()=>R6,isJsxAttributeName:()=>Yoe,isJsxAttributes:()=>Y1,isJsxChild:()=>hL,isJsxClosingElement:()=>K1,isJsxClosingFragment:()=>Oae,isJsxElement:()=>cg,isJsxExpression:()=>AN,isJsxFragment:()=>X1,isJsxNamespacedName:()=>e_,isJsxOpeningElement:()=>w_,isJsxOpeningFragment:()=>dI,isJsxOpeningLikeElement:()=>sd,isJsxOpeningLikeElementTagName:()=>fue,isJsxSelfClosingElement:()=>zS,isJsxSpreadAttribute:()=>pI,isJsxTagNameExpression:()=>yC,isJsxText:()=>$A,isJumpStatementTarget:()=>Zw,isKeyword:()=>Fd,isKeywordOrPunctuation:()=>f3,isKnownSymbol:()=>ek,isLabelName:()=>zK,isLabelOfLabeledStatement:()=>WK,isLabeledStatement:()=>J1,isLateVisibilityPaintedStatement:()=>G6,isLeftHandSideExpression:()=>Zd,isLeftHandSideOfAssignment:()=>wEe,isLet:()=>U6,isLineBreak:()=>Uu,isLiteralComputedPropertyDeclarationName:()=>YL,isLiteralExpression:()=>S1,isLiteralExpressionOfObject:()=>HV,isLiteralImportTypeNode:()=>zy,isLiteralKind:()=>_C,isLiteralLikeAccess:()=>l3,isLiteralLikeElementAccess:()=>WL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>KF,isLiteralTypeLikeExpression:()=>USe,isLiteralTypeLiteral:()=>wre,isLiteralTypeNode:()=>Yy,isLocalName:()=>Ug,isLogicalOperator:()=>aoe,isLogicalOrCoalescingAssignmentExpression:()=>sU,isLogicalOrCoalescingAssignmentOperator:()=>GC,isLogicalOrCoalescingBinaryExpression:()=>ak,isLogicalOrCoalescingBinaryOperator:()=>ok,isMappedTypeNode:()=>WR,isMemberName:()=>Yh,isMetaProperty:()=>yN,isMethodDeclaration:()=>jl,isMethodOrAccessor:()=>RA,isMethodSignature:()=>yh,isMinusToken:()=>hH,isMissingDeclaration:()=>MSe,isMissingPackageJsonInfo:()=>Fse,isModifier:()=>Ia,isModifierKind:()=>kv,isModifierLike:()=>al,isModuleAugmentationExternal:()=>fj,isModuleBlock:()=>k_,isModuleBody:()=>Wre,isModuleDeclaration:()=>Jl,isModuleExportsAccessExpression:()=>tg,isModuleIdentifier:()=>Mj,isModuleName:()=>ose,isModuleOrEnumDeclaration:()=>mL,isModuleReference:()=>jre,isModuleSpecifierLike:()=>dW,isModuleWithStringLiteralName:()=>B6,isNameOfFunctionDeclaration:()=>jK,isNameOfModuleDeclaration:()=>VK,isNamedClassElement:()=>Z1e,isNamedDeclaration:()=>od,isNamedEvaluation:()=>mp,isNamedEvaluationSource:()=>Hj,isNamedExportBindings:()=>VV,isNamedExports:()=>Df,isNamedImportBindings:()=>ej,isNamedImports:()=>jg,isNamedImportsOrExports:()=>w3,isNamedTupleMember:()=>FR,isNamespaceBody:()=>rEe,isNamespaceExport:()=>Sh,isNamespaceExportDeclaration:()=>Hk,isNamespaceImport:()=>Zy,isNamespaceReexportDeclaration:()=>Die,isNewExpression:()=>H1,isNewExpressionTarget:()=>iP,isNoSubstitutionTemplateLiteral:()=>QA,isNode:()=>$1e,isNodeArray:()=>E1,isNodeArrayMultiLine:()=>_oe,isNodeDescendantOf:()=>P1,isNodeKind:()=>aL,isNodeLikeSystem:()=>pG,isNodeModulesDirectory:()=>a6,isNodeWithPossibleHoistedDeclaration:()=>wie,isNonContextualKeyword:()=>jj,isNonExportDefaultModifier:()=>qSe,isNonGlobalAmbientModule:()=>pj,isNonGlobalDeclaration:()=>rde,isNonNullAccess:()=>Xoe,isNonNullChain:()=>E6,isNonNullExpression:()=>lI,isNonStaticMethodOrAccessorWithPrivateName:()=>gle,isNotEmittedOrPartiallyEmittedNode:()=>nEe,isNotEmittedStatement:()=>TH,isNullishCoalesce:()=>GV,isNumber:()=>Rv,isNumericLiteral:()=>hp,isNumericLiteralName:()=>sg,isObjectBindingElementWithoutPropertyName:()=>uO,isObjectBindingOrAssignmentElement:()=>dL,isObjectBindingOrAssignmentPattern:()=>XV,isObjectBindingPattern:()=>om,isObjectLiteralElement:()=>tj,isObjectLiteralElementLike:()=>wg,isObjectLiteralExpression:()=>wa,isObjectLiteralMethod:()=>Im,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>K6,isObjectTypeDeclaration:()=>GA,isOctalDigit:()=>u6,isOmittedExpression:()=>Vc,isOptionalChain:()=>Hu,isOptionalChainRoot:()=>dC,isOptionalDeclaration:()=>sN,isOptionalJSDocPropertyLikeTag:()=>vk,isOptionalTypeNode:()=>Y7,isOuterExpression:()=>d5,isOutermostOptionalChain:()=>pC,isOverrideModifier:()=>xae,isPackageJsonInfo:()=>L5,isPackedArrayLiteral:()=>MU,isParameter:()=>Co,isParameterDeclaration:()=>L1,isParameterPropertyDeclaration:()=>pp,isParameterPropertyModifier:()=>hC,isParenthesizedExpression:()=>Wd,isParenthesizedTypeNode:()=>LS,isParseTreeNode:()=>uC,isPartOfTypeNode:()=>Zh,isPartOfTypeQuery:()=>r3,isPartiallyEmittedExpression:()=>e5,isPatternMatch:()=>k8,isPinnedComment:()=>W6,isPlainJsFile:()=>yL,isPlusToken:()=>_H,isPossiblyTypeArgumentPosition:()=>iO,isPostfixUnaryExpression:()=>yH,isPrefixUnaryExpression:()=>Qy,isPrivateIdentifier:()=>Xi,isPrivateIdentifierClassElementDeclaration:()=>ad,isPrivateIdentifierPropertyAccessExpression:()=>Hx,isPrivateIdentifierSymbol:()=>Bie,isProgramBundleEmitBuildInfo:()=>bce,isProgramUptoDate:()=>MJ,isPrologueDirective:()=>Am,isPropertyAccessChain:()=>y6,isPropertyAccessEntityNameExpression:()=>sk,isPropertyAccessExpression:()=>zr,isPropertyAccessOrQualifiedName:()=>Lre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Mre,isPropertyAssignment:()=>_c,isPropertyDeclaration:()=>Jo,isPropertyName:()=>ic,isPropertyNameLiteral:()=>R_,isPropertySignature:()=>gp,isProtoSetter:()=>Gie,isPrototypeAccess:()=>Vy,isPrototypePropertyAssignment:()=>GL,isPunctuation:()=>Vj,isPushOrUnshiftIdentifier:()=>qj,isQualifiedName:()=>Ad,isQuestionDotToken:()=>K7,isQuestionOrExclamationToken:()=>tse,isQuestionOrPlusOrMinusToken:()=>ise,isQuestionToken:()=>Ky,isRawSourceMap:()=>fle,isReadonlyKeyword:()=>Aae,isReadonlyKeywordOrPlusOrMinusToken:()=>rse,isRecognizedTripleSlashComment:()=>lj,isReferenceFileLocation:()=>l2,isReferencedFile:()=>R0,isRegularExpressionLiteral:()=>fH,isRequireCall:()=>Sd,isRequireVariableStatement:()=>Nj,isRestParameter:()=>$h,isRestTypeNode:()=>$7,isReturnStatement:()=>Rm,isReturnStatementWithFixablePromiseHandler:()=>FW,isRightSideOfAccessExpression:()=>uU,isRightSideOfInstanceofExpression:()=>loe,isRightSideOfPropertyAccess:()=>_2,isRightSideOfQualifiedName:()=>_ue,isRightSideOfQualifiedNameOrPropertyAccess:()=>jC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>soe,isRootedDiskPath:()=>dp,isSameEntityName:()=>lR,isSatisfiesExpression:()=>bH,isScopeMarker:()=>Ore,isSemicolonClassElement:()=>Mae,isSetAccessor:()=>wv,isSetAccessorDeclaration:()=>vp,isShebangTrivia:()=>CV,isShiftOperatorOrHigher:()=>VH,isShorthandAmbientModuleSymbol:()=>SC,isShorthandPropertyAssignment:()=>np,isSignedNumericLiteral:()=>_3,isSimpleCopiableExpression:()=>rE,isSimpleInlineableExpression:()=>F_,isSimpleParameter:()=>Sle,isSimpleParameterList:()=>Cw,isSingleOrDoubleQuote:()=>kL,isSourceFile:()=>no,isSourceFileFromLibrary:()=>T2,isSourceFileJS:()=>ld,isSourceFileNotJS:()=>_Ee,isSourceFileNotJson:()=>Cj,isSourceMapping:()=>mle,isSpecialPropertyDeclaration:()=>Pie,isSpreadAssignment:()=>qv,isSpreadElement:()=>Zm,isStatement:()=>Ki,isStatementButNotDeclaration:()=>_L,isStatementOrBlock:()=>Vre,isStatementWithLocals:()=>Zre,isStatic:()=>sa,isStaticModifier:()=>tI,isString:()=>wo,isStringAKeyword:()=>AEe,isStringANonContextualKeyword:()=>OA,isStringAndEmptyAnonymousObjectIntersection:()=>Due,isStringDoubleQuoted:()=>s3,isStringLiteral:()=>Na,isStringLiteralLike:()=>us,isStringLiteralOrJsxExpression:()=>Ure,isStringLiteralOrTemplate:()=>Kue,isStringOrNumericLiteralLike:()=>Qp,isStringOrRegularExpressionOrTemplateLiteral:()=>$K,isStringTextContainingNode:()=>qV,isSuperCall:()=>gS,isSuperKeyword:()=>gN,isSuperOrSuperProperty:()=>mEe,isSuperProperty:()=>Od,isSupportedSourceFileName:()=>Woe,isSwitchStatement:()=>SN,isSyntaxList:()=>HR,isSyntheticExpression:()=>ASe,isSyntheticReference:()=>uI,isTagName:()=>BK,isTaggedTemplateExpression:()=>q1,isTaggedTemplateTag:()=>due,isTemplateExpression:()=>Q7,isTemplateHead:()=>ZA,isTemplateLiteral:()=>DA,isTemplateLiteralKind:()=>My,isTemplateLiteralToken:()=>xre,isTemplateLiteralTypeNode:()=>Cae,isTemplateLiteralTypeSpan:()=>vH,isTemplateMiddle:()=>mH,isTemplateMiddleOrTemplateTail:()=>S6,isTemplateSpan:()=>EN,isTemplateTail:()=>q7,isTextWhiteSpaceLike:()=>kue,isThis:()=>h2,isThisContainerOrFunctionBlock:()=>Iie,isThisIdentifier:()=>O1,isThisInTypeQuery:()=>FA,isThisInitializedDeclaration:()=>Z6,isThisInitializedObjectBindingExpression:()=>Rie,isThisProperty:()=>NL,isThisTypeNode:()=>Vk,isThisTypeParameter:()=>aN,isThisTypePredicate:()=>fEe,isThrowStatement:()=>SH,isToken:()=>AA,isTokenKind:()=>UV,isTraceEnabled:()=>Hg,isTransientSymbol:()=>fh,isTrivia:()=>hR,isTryStatement:()=>WS,isTupleTypeNode:()=>iI,isTypeAlias:()=>UL,isTypeAliasDeclaration:()=>Dm,isTypeAssertionExpression:()=>Nae,isTypeDeclaration:()=>PR,isTypeElement:()=>dS,isTypeKeyword:()=>sP,isTypeKeywordToken:()=>rX,isTypeKeywordTokenOrIdentifier:()=>sW,isTypeLiteralNode:()=>yp,isTypeNode:()=>qi,isTypeNodeKind:()=>vU,isTypeOfExpression:()=>zR,isTypeOnlyExportDeclaration:()=>Rre,isTypeOnlyImportDeclaration:()=>sL,isTypeOnlyImportOrExportDeclaration:()=>a0,isTypeOperatorNode:()=>kS,isTypeParameterDeclaration:()=>_l,isTypePredicateNode:()=>Bk,isTypeQueryNode:()=>rI,isTypeReferenceNode:()=>Rf,isTypeReferenceType:()=>P6,isTypeUsableAsPropertyName:()=>nm,isUMDExportSymbol:()=>k3,isUnaryExpression:()=>QV,isUnaryExpressionWithWrite:()=>kre,isUnicodeIdentifierStart:()=>l6,isUnionTypeNode:()=>Xy,isUnparsedNode:()=>jV,isUnparsedPrepend:()=>Fae,isUnparsedSource:()=>BS,isUnparsedTextLike:()=>Ire,isUrl:()=>qne,isValidBigIntString:()=>Q3,isValidESSymbolDeclaration:()=>yie,isValidTypeOnlyAliasUseSite:()=>_0,isValueSignatureDeclaration:()=>Oie,isVarAwaitUsing:()=>IL,isVarConst:()=>tR,isVarUsing:()=>xL,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>AC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>C1,isVariableDeclarationInitializedToRequire:()=>a3,isVariableDeclarationList:()=>jc,isVariableLike:()=>rR,isVariableLikeOrAccessor:()=>gie,isVariableStatement:()=>Ml,isVoidExpression:()=>sI,isWatchSet:()=>WEe,isWhileStatement:()=>xSe,isWhiteSpaceLike:()=>Lg,isWhiteSpaceSingleLine:()=>S_,isWithStatement:()=>Lae,isWriteAccess:()=>BA,isWriteOnlyAccess:()=>L3,isYieldExpression:()=>Z7,jsxModeNeedsExplicitImport:()=>MX,keywordPart:()=>Ep,last:()=>Ya,lastOrUndefined:()=>Zs,length:()=>De,libMap:()=>T5,libs:()=>dw,lineBreakPart:()=>E2,linkNamePart:()=>Bue,linkPart:()=>hX,linkTextPart:()=>mW,listFiles:()=>$J,loadModuleFromGlobalCache:()=>Jse,loadWithModeAwareCache:()=>zw,makeIdentifierFromModuleName:()=>iie,makeImport:()=>$v,makeImportIfNecessary:()=>Lue,makeStringLiteral:()=>RI,mangleScopedPackageName:()=>r2,map:()=>Ft,mapAllOrFail:()=>fA,mapDefined:()=>Vi,mapDefinedEntries:()=>Rx,mapDefinedIterator:()=>tS,mapEntries:()=>fne,mapIterator:()=>ra,mapOneOrMany:()=>CX,mapToDisplayParts:()=>ob,matchFiles:()=>xU,matchPatternOrExact:()=>RU,matchedText:()=>Rne,matchesExclude:()=>S5,maybeBind:()=>oa,maybeSetLocalizedDiagnosticMessages:()=>xoe,memoize:()=>Ed,memoizeCached:()=>bne,memoizeOne:()=>ch,memoizeWeak:()=>H0e,metadataHelper:()=>y7,min:()=>sG,minAndMax:()=>Boe,missingFileModifiedTime:()=>kp,modifierToFlag:()=>zA,modifiersToFlags:()=>N_,moduleOptionDeclaration:()=>lq,moduleResolutionIsEqualTo:()=>$re,moduleResolutionNameAndModeGetter:()=>EF,moduleResolutionOptionDeclarations:()=>A5,moduleResolutionSupportsPackageJsonExportsAndImports:()=>jA,moduleResolutionUsesNodeModules:()=>lW,moduleSpecifiers:()=>nE,moveEmitHelpers:()=>fae,moveRangeEnd:()=>P3,moveRangePastDecorators:()=>zg,moveRangePastModifiers:()=>P_,moveRangePos:()=>f0,moveSyntheticComments:()=>uae,mutateMap:()=>KC,mutateMapSkippingNewValues:()=>og,needsParentheses:()=>hW,needsScopeMarker:()=>I6,newCaseClauseTracker:()=>NW,newPrivateEnvironment:()=>ble,noEmitNotification:()=>Nw,noEmitSubstitution:()=>JN,noTransformers:()=>lJ,noTruncationMaximumTruncationLength:()=>a7,nodeCanBeDecorated:()=>t3,nodeHasName:()=>nL,nodeIsDecorated:()=>oR,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Xf,nodeIsSynthesized:()=>Xs,nodeModuleNameResolver:()=>Gse,nodeModulesPathPart:()=>Ih,nodeNextJsonConfigResolver:()=>Vse,nodeOrChildIsDecorated:()=>ML,nodeOverlapsWithStartEnd:()=>XF,nodePosToString:()=>aEe,nodeSeenTracker:()=>xI,nodeStartsNewLexicalEnvironment:()=>Jj,nodeToDisplayParts:()=>oRe,noop:()=>$a,noopFileWatcher:()=>f2,normalizePath:()=>va,normalizeSlashes:()=>Mu,not:()=>O8,notImplemented:()=>Ko,notImplementedResolver:()=>uF,nullNodeConverters:()=>eH,nullParenthesizerRules:()=>ZU,nullTransformationContext:()=>KN,objectAllocator:()=>lu,operatorPart:()=>uP,optionDeclarations:()=>ug,optionMapToObject:()=>y5,optionsAffectingProgramStructure:()=>fq,optionsForBuild:()=>_q,optionsForWatch:()=>QR,optionsHaveChanges:()=>Yx,optionsHaveModuleResolutionChanges:()=>Kre,or:()=>Xm,orderedRemoveItem:()=>Mx,orderedRemoveItemAt:()=>Iy,outFile:()=>Ps,packageIdToPackageName:()=>w6,packageIdToString:()=>Fy,paramHelper:()=>b7,parameterIsThisKeyword:()=>w1,parameterNamePart:()=>Oue,parseBaseNodeFactory:()=>YH,parseBigInt:()=>Goe,parseBuildCommand:()=>ATe,parseCommandLine:()=>STe,parseCommandLineWorker:()=>ZH,parseConfigFileTextToJson:()=>tq,parseConfigFileWithSystem:()=>oxe,parseConfigHostFromCompilerHostLike:()=>bF,parseCustomTypeOption:()=>v5,parseIsolatedEntityName:()=>_I,parseIsolatedJSDocComment:()=>pse,parseJSDocTypeExpressionForTests:()=>cTe,parseJsonConfigFileContent:()=>WTe,parseJsonSourceFileConfigFileContent:()=>lw,parseJsonText:()=>iw,parseListTypeOption:()=>mse,parseNodeFactory:()=>Ah,parseNodeModuleFromPath:()=>vw,parsePackageName:()=>Ew,parsePseudoBigInt:()=>tN,parseValidBigInt:()=>PU,patchWriteFileEnsuringDirectory:()=>Une,pathContainsNodeModules:()=>I0,pathIsAbsolute:()=>rC,pathIsBareSpecifier:()=>IV,pathIsRelative:()=>wp,patternText:()=>xne,perfLogger:()=>rd,performIncrementalCompilation:()=>cxe,performance:()=>Wne,plainJSErrors:()=>SF,positionBelongsToNode:()=>HK,positionIsASICandidate:()=>bW,positionIsSynthesized:()=>Qm,positionsAreOnSameLine:()=>Af,preProcessFile:()=>MRe,probablyUsesSemicolons:()=>hO,processCommentPragmas:()=>KH,processPragmasIntoFields:()=>XH,processTaggedTemplateExpression:()=>tJ,programContainsEsModules:()=>Mue,programContainsModules:()=>Pue,projectReferenceIsEqualTo:()=>oj,propKeyHelper:()=>L7,propertyNamePart:()=>Fue,pseudoBigIntToString:()=>z1,punctuationPart:()=>Yu,pushIfUnique:()=>bf,quote:()=>fP,quotePreferenceFromString:()=>sX,rangeContainsPosition:()=>eO,rangeContainsPositionExclusive:()=>tO,rangeContainsRange:()=>of,rangeContainsRangeExclusive:()=>gue,rangeContainsStartEnd:()=>nO,rangeEndIsOnSameLineAsRangeStart:()=>ck,rangeEndPositionsAreOnSameLine:()=>foe,rangeEquals:()=>eG,rangeIsOnSingleLine:()=>DS,rangeOfNode:()=>CU,rangeOfTypeParameters:()=>NU,rangeOverlapsWithStartEnd:()=>oP,rangeStartIsOnSameLineAsRangeEnd:()=>moe,rangeStartPositionsAreOnSameLine:()=>M3,readBuilderProgram:()=>kF,readConfigFile:()=>aw,readHelper:()=>P7,readJson:()=>UC,readJsonConfigFile:()=>gse,readJsonOrUndefined:()=>pU,reduceEachLeadingCommentRange:()=>Qne,reduceEachTrailingCommentRange:()=>Zne,reduceLeft:()=>nd,reduceLeftIterator:()=>Ar,reducePathComponents:()=>sS,refactor:()=>NI,regExpEscape:()=>HEe,relativeComplement:()=>mne,removeAllComments:()=>Nk,removeEmitHelper:()=>ESe,removeExtension:()=>_k,removeFileExtension:()=>Td,removeIgnoredPath:()=>IF,removeMinAndVersionNumbers:()=>lG,removeOptionality:()=>Aue,removePrefix:()=>ZD,removeSuffix:()=>Px,removeTrailingDirectorySeparator:()=>$b,repeatString:()=>lO,replaceElement:()=>rG,replaceFirstStar:()=>qA,resolutionExtensionIsTSOrJson:()=>QC,resolveConfigFileProjectName:()=>lK,resolveJSModule:()=>zse,resolveLibrary:()=>w5,resolveModuleName:()=>t2,resolveModuleNameFromCache:()=>EAe,resolvePackageNameToPackageJson:()=>vq,resolvePath:()=>Dy,resolveProjectReferencePath:()=>c2,resolveTripleslashReference:()=>mF,resolveTypeReferenceDirective:()=>wse,resolvingEmptyArray:()=>o7,restHelper:()=>R7,returnFalse:()=>Km,returnNoopFileWatcher:()=>m2,returnTrue:()=>Dv,returnUndefined:()=>Xb,returnsPromise:()=>$X,runInitializersHelper:()=>S7,sameFlatMap:()=>eS,sameMap:()=>Io,sameMapping:()=>lIe,scanShebangTrivia:()=>NV,scanTokenAtPosition:()=>mie,scanner:()=>$u,screenStartingMessageCodes:()=>LF,semanticDiagnosticsOptionDeclarations:()=>uq,serializeCompilerOptions:()=>b5,server:()=>Pwe,servicesVersion:()=>Ipe,setCommentRange:()=>oc,setConfigFileInOptions:()=>aq,setConstantValue:()=>pae,setEachParent:()=>NR,setEmitFlags:()=>fr,setFunctionNameHelper:()=>k7,setGetSourceFileAsHashVersioned:()=>MF,setIdentifierAutoGenerate:()=>Lk,setIdentifierGeneratedImportReference:()=>hae,setIdentifierTypeArguments:()=>Uv,setInternalEmitFlags:()=>Pk,setLocalizedDiagnosticMessages:()=>Ioe,setModuleDefaultHelper:()=>F7,setNodeFlags:()=>Uoe,setObjectAllocator:()=>Aoe,setOriginalNode:()=>Pr,setParent:()=>qa,setParentRecursive:()=>Uy,setPrivateIdentifier:()=>qS,setSnippetElement:()=>lH,setSourceMapRange:()=>Ca,setStackTraceLimit:()=>p1e,setStartsOnNewLine:()=>_7,setSyntheticLeadingComments:()=>g0,setSyntheticTrailingComments:()=>KA,setSys:()=>g1e,setSysLog:()=>Vne,setTextRange:()=>dt,setTextRangeEnd:()=>CR,setTextRangePos:()=>nN,setTextRangePosEnd:()=>gh,setTextRangePosWidth:()=>rN,setTokenSourceMapRange:()=>cae,setTypeNode:()=>mae,setUILocale:()=>Tne,setValueDeclaration:()=>VL,shouldAllowImportingTsExtension:()=>i2,shouldPreserveConstEnums:()=>V1,shouldUseUriStyleNodeCoreModules:()=>DW,showModuleSpecifier:()=>yoe,signatureHasLiteralTypes:()=>Fq,signatureHasRestParameter:()=>Xu,signatureToDisplayParts:()=>gX,single:()=>nG,singleElementArray:()=>yA,singleIterator:()=>pne,singleOrMany:()=>sh,singleOrUndefined:()=>ah,skipAlias:()=>bu,skipAssertions:()=>GSe,skipConstraint:()=>iX,skipOuterExpressions:()=>Xl,skipParentheses:()=>vs,skipPartiallyEmittedExpressions:()=>Sm,skipTrivia:()=>La,skipTypeChecking:()=>eN,skipTypeParentheses:()=>XL,skipWhile:()=>Cne,sliceAfter:()=>DU,some:()=>Et,sort:()=>nS,sortAndDeduplicate:()=>XD,sortAndDeduplicateDiagnostics:()=>Gx,sourceFileAffectingCompilerOptions:()=>I5,sourceFileMayBeEmitted:()=>AS,sourceMapCommentRegExp:()=>K5,sourceMapCommentRegExpDontCareLineStart:()=>Hq,spacePart:()=>kl,spanMap:()=>YB,spreadArrayHelper:()=>M7,stableSort:()=>Iv,startEndContainsRange:()=>UK,startEndOverlapsWithStartEnd:()=>YF,startOnNewLine:()=>Ku,startTracing:()=>zne,startsWith:()=>uo,startsWithDirectory:()=>RV,startsWithUnderscore:()=>PX,startsWithUseStrict:()=>Xae,stringContainsAt:()=>nde,stringToToken:()=>y1,stripQuotes:()=>em,supportedDeclarationExtensions:()=>Ak,supportedJSExtensions:()=>YU,supportedJSExtensionsFlat:()=>LR,supportedLocaleDirectories:()=>ij,supportedTSExtensions:()=>MR,supportedTSExtensionsFlat:()=>XU,supportedTSImplementationExtensions:()=>Ik,suppressLeadingAndTrailingTrivia:()=>Sp,suppressLeadingTrivia:()=>EX,suppressTrailingTrivia:()=>Hue,symbolEscapedNameNoDefault:()=>uW,symbolName:()=>bl,symbolNameNoDefault:()=>cW,symbolPart:()=>wue,symbolToDisplayParts:()=>dP,syntaxMayBeASICandidate:()=>FX,syntaxRequiresTrailingSemicolonOrASI:()=>yW,sys:()=>gu,sysLog:()=>zM,tagNamesAreEquivalent:()=>S0,takeWhile:()=>W8,targetOptionDeclaration:()=>fw,templateObjectHelper:()=>N7,testFormatSettings:()=>uue,textChangeRangeIsUnchanged:()=>are,textChangeRangeNewSpan:()=>cC,textChanges:()=>hr,textOrKeywordPart:()=>_X,textPart:()=>sf,textRangeContainsPositionInclusive:()=>ZM,textSpanContainsPosition:()=>LV,textSpanContainsTextSpan:()=>nre,textSpanEnd:()=>ql,textSpanIntersection:()=>ore,textSpanIntersectsWith:()=>f6,textSpanIntersectsWithPosition:()=>ire,textSpanIntersectsWithTextSpan:()=>W1e,textSpanIsEmpty:()=>tre,textSpanOverlap:()=>rre,textSpanOverlapsWith:()=>F1e,textSpansEqual:()=>b2,textToKeywordObj:()=>$M,timestamp:()=>Ks,toArray:()=>gA,toBuilderFileEmit:()=>Tce,toBuilderStateFileInfoForMultiEmit:()=>Sce,toEditorSettings:()=>wO,toFileNameLowerCase:()=>lh,toLowerCase:()=>yne,toPath:()=>rl,toProgramEmitPending:()=>Ace,tokenIsIdentifierOrKeyword:()=>id,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Yne,tokenToString:()=>ma,trace:()=>To,tracing:()=>lr,tracingEnabled:()=>wM,transform:()=>NDe,transformClassFields:()=>Ple,transformDeclarations:()=>aJ,transformECMAScriptModule:()=>oJ,transformES2015:()=>qle,transformES2016:()=>Hle,transformES2017:()=>wle,transformES2018:()=>Ole,transformES2019:()=>Fle,transformES2020:()=>Wle,transformES2021:()=>zle,transformES5:()=>Jle,transformESDecorators:()=>kle,transformESNext:()=>Ble,transformGenerators:()=>Kle,transformJsx:()=>Ule,transformLegacyDecorators:()=>Lle,transformModule:()=>iJ,transformNamedEvaluation:()=>bp,transformNodeModule:()=>Yle,transformNodes:()=>Pw,transformSystemModule:()=>Xle,transformTypeScript:()=>Nle,transpile:()=>BRe,transpileModule:()=>Ede,transpileOptionValueCompilerOptions:()=>mq,tryAddToSet:()=>Av,tryAndIgnoreErrors:()=>TW,tryCast:()=>ai,tryDirectoryExists:()=>SW,tryExtractTSExtension:()=>C3,tryFileExists:()=>gO,tryGetClassExtendingExpressionWithTypeArguments:()=>lU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>cU,tryGetDirectories:()=>EW,tryGetExtensionFromPath:()=>Gg,tryGetImportFromModuleSpecifier:()=>jL,tryGetJSDocSatisfiesTypeNode:()=>n7,tryGetModuleNameFromFile:()=>$k,tryGetModuleSpecifierFromDeclaration:()=>cR,tryGetNativePerformanceHooks:()=>wne,tryGetPropertyAccessOrIdentifierToString:()=>lk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>f5,tryGetSourceMappingURL:()=>ple,tryGetTextOfPropertyName:()=>TC,tryIOAndConsumeErrors:()=>AW,tryParseJson:()=>N3,tryParsePattern:()=>DR,tryParsePatterns:()=>X3,tryParseRawSourceMap:()=>jq,tryReadDirectory:()=>AX,tryReadFile:()=>MN,tryRemoveDirectoryPrefix:()=>AU,tryRemoveExtension:()=>zoe,tryRemovePrefix:()=>dG,tryRemoveSuffix:()=>Ine,typeAcquisitionDeclarations:()=>mw,typeAliasNamePart:()=>Wue,typeDirectiveIsEqualTo:()=>Qre,typeKeywords:()=>PW,typeParameterNamePart:()=>zue,typeToDisplayParts:()=>pO,unchangedPollThresholds:()=>BM,unchangedTextChangeRange:()=>gL,unescapeLeadingUnderscores:()=>Hi,unmangleScopedPackageName:()=>Tw,unorderedRemoveItem:()=>vA,unorderedRemoveItemAt:()=>cG,unreachableCodeIsError:()=>Doe,unusedLabelIsError:()=>Coe,unwrapInnermostStatementOfLabel:()=>Ij,updateErrorForNoInputFiles:()=>E5,updateLanguageServiceSourceFile:()=>kY,updateMissingFilePathsWatch:()=>hJ,updateResolutionField:()=>ZR,updateSharedExtendedConfigFileWatcher:()=>pF,updateSourceFile:()=>qH,updateWatchingWildcardDirectories:()=>kw,usesExtensionsOnImports:()=>Ooe,usingSingleLineStringWriter:()=>bC,utf16EncodeAsString:()=>Bx,validateLocaleAndSetLanguage:()=>B1e,valuesHelper:()=>w7,version:()=>Te,versionMajorMinor:()=>_e,visitArray:()=>xw,visitCommaListElements:()=>Rw,visitEachChild:()=>An,visitFunctionBody:()=>rf,visitIterationBody:()=>Id,visitLexicalEnvironment:()=>Gq,visitNode:()=>rt,visitNodes:()=>Bn,visitParameterList:()=>xl,walkUpBindingElementsAndPatterns:()=>Vx,walkUpLexicalEnvironments:()=>yle,walkUpOuterExpressions:()=>Yae,walkUpParenthesizedExpressions:()=>Fv,walkUpParenthesizedTypes:()=>KL,walkUpParenthesizedTypesAndGetParentAndChild:()=>Fie,whitespaceOrMapCommentRegExp:()=>X5,writeCommentRange:()=>SR,writeFile:()=>FC,writeFileEnsuringDirectories:()=>rU,zipWith:()=>Un});var Lwe=A({"src/typescript/_namespaces/ts.ts"(){"use strict";ia(),Kw(),ci(),lb(),Cat()}}),Nat=F({"src/typescript/typescript.ts"(e,t){Lwe(),Lwe(),typeof console<"u"&&(C.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=Mwe}});return Nat()})();typeof une<"u"&&une.exports&&(une.exports=ZE);var Tbt=ZE.createClassifier,xWe=ZE.createLanguageService,Abt=ZE.displayPartsToString,Ibt=ZE.EndOfLineState,xbt=ZE.flattenDiagnosticMessageText,Rbt=ZE.IndentStyle,RM=ZE.ScriptKind,Dbt=ZE.ScriptTarget,Cbt=ZE.TokenClass,RWe=ZE,_o={};_o["lib.d.ts"]=`/*! ***************************************************************************** +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. +***************************************************************************** */ + + +/// + +/// +/// +/// +/// +`;_o["lib.decorators.d.ts"]=`/*! ***************************************************************************** +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. +***************************************************************************** */ + + +/// + +/** + * The decorator context types provided to class element decorators. + */ +type ClassMemberDecoratorContext = + | ClassMethodDecoratorContext + | ClassGetterDecoratorContext + | ClassSetterDecoratorContext + | ClassFieldDecoratorContext + | ClassAccessorDecoratorContext; + +/** + * The decorator context types provided to any decorator. + */ +type DecoratorContext = + | ClassDecoratorContext + | ClassMemberDecoratorContext; + +type DecoratorMetadataObject = Record & object; + +type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; + +/** + * Context provided to a class decorator. + * @template Class The type of the decorated class associated with this context. + */ +interface ClassDecoratorContext< + Class extends abstract new (...args: any) => any = abstract new (...args: any) => any, +> { + /** The kind of element that was decorated. */ + readonly kind: "class"; + + /** The name of the decorated class. */ + readonly name: string | undefined; + + /** + * Adds a callback to be invoked after the class definition has been finalized. + * + * @example + * \`\`\`ts + * function customElement(name: string): ClassDecoratorFunction { + * return (target, context) => { + * context.addInitializer(function () { + * customElements.define(name, this); + * }); + * } + * } + * + * @customElement("my-element") + * class MyElement {} + * \`\`\` + */ + addInitializer(initializer: (this: Class) => void): void; + + readonly metadata: DecoratorMetadata; +} + +/** + * Context provided to a class method decorator. + * @template This The type on which the class element will be defined. For a static class element, this will be + * the type of the constructor. For a non-static class element, this will be the type of the instance. + * @template Value The type of the decorated class method. + */ +interface ClassMethodDecoratorContext< + This = unknown, + Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any, +> { + /** The kind of class element that was decorated. */ + readonly kind: "method"; + + /** The name of the decorated class element. */ + readonly name: string | symbol; + + /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ + readonly static: boolean; + + /** A value indicating whether the class element has a private name. */ + readonly private: boolean; + + /** An object that can be used to access the current value of the class element at runtime. */ + readonly access: { + /** + * Determines whether an object has a property with the same name as the decorated element. + */ + has(object: This): boolean; + /** + * Gets the current value of the method from the provided object. + * + * @example + * let fn = context.access.get(instance); + */ + get(object: This): Value; + }; + + /** + * Adds a callback to be invoked either before static initializers are run (when + * decorating a \`static\` element), or before instance initializers are run (when + * decorating a non-\`static\` element). + * + * @example + * \`\`\`ts + * const bound: ClassMethodDecoratorFunction = (value, context) { + * if (context.private) throw new TypeError("Not supported on private methods."); + * context.addInitializer(function () { + * this[context.name] = this[context.name].bind(this); + * }); + * } + * + * class C { + * message = "Hello"; + * + * @bound + * m() { + * console.log(this.message); + * } + * } + * \`\`\` + */ + addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; +} + +/** + * Context provided to a class getter decorator. + * @template This The type on which the class element will be defined. For a static class element, this will be + * the type of the constructor. For a non-static class element, this will be the type of the instance. + * @template Value The property type of the decorated class getter. + */ +interface ClassGetterDecoratorContext< + This = unknown, + Value = unknown, +> { + /** The kind of class element that was decorated. */ + readonly kind: "getter"; + + /** The name of the decorated class element. */ + readonly name: string | symbol; + + /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ + readonly static: boolean; + + /** A value indicating whether the class element has a private name. */ + readonly private: boolean; + + /** An object that can be used to access the current value of the class element at runtime. */ + readonly access: { + /** + * Determines whether an object has a property with the same name as the decorated element. + */ + has(object: This): boolean; + /** + * Invokes the getter on the provided object. + * + * @example + * let value = context.access.get(instance); + */ + get(object: This): Value; + }; + + /** + * Adds a callback to be invoked either before static initializers are run (when + * decorating a \`static\` element), or before instance initializers are run (when + * decorating a non-\`static\` element). + */ + addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; +} + +/** + * Context provided to a class setter decorator. + * @template This The type on which the class element will be defined. For a static class element, this will be + * the type of the constructor. For a non-static class element, this will be the type of the instance. + * @template Value The type of the decorated class setter. + */ +interface ClassSetterDecoratorContext< + This = unknown, + Value = unknown, +> { + /** The kind of class element that was decorated. */ + readonly kind: "setter"; + + /** The name of the decorated class element. */ + readonly name: string | symbol; + + /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ + readonly static: boolean; + + /** A value indicating whether the class element has a private name. */ + readonly private: boolean; + + /** An object that can be used to access the current value of the class element at runtime. */ + readonly access: { + /** + * Determines whether an object has a property with the same name as the decorated element. + */ + has(object: This): boolean; + /** + * Invokes the setter on the provided object. + * + * @example + * context.access.set(instance, value); + */ + set(object: This, value: Value): void; + }; + + /** + * Adds a callback to be invoked either before static initializers are run (when + * decorating a \`static\` element), or before instance initializers are run (when + * decorating a non-\`static\` element). + */ + addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; +} + +/** + * Context provided to a class \`accessor\` field decorator. + * @template This The type on which the class element will be defined. For a static class element, this will be + * the type of the constructor. For a non-static class element, this will be the type of the instance. + * @template Value The type of decorated class field. + */ +interface ClassAccessorDecoratorContext< + This = unknown, + Value = unknown, +> { + /** The kind of class element that was decorated. */ + readonly kind: "accessor"; + + /** The name of the decorated class element. */ + readonly name: string | symbol; + + /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ + readonly static: boolean; + + /** A value indicating whether the class element has a private name. */ + readonly private: boolean; + + /** An object that can be used to access the current value of the class element at runtime. */ + readonly access: { + /** + * Determines whether an object has a property with the same name as the decorated element. + */ + has(object: This): boolean; + + /** + * Invokes the getter on the provided object. + * + * @example + * let value = context.access.get(instance); + */ + get(object: This): Value; + + /** + * Invokes the setter on the provided object. + * + * @example + * context.access.set(instance, value); + */ + set(object: This, value: Value): void; + }; + + /** + * Adds a callback to be invoked either before static initializers are run (when + * decorating a \`static\` element), or before instance initializers are run (when + * decorating a non-\`static\` element). + */ + addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; +} + +/** + * Describes the target provided to class \`accessor\` field decorators. + * @template This The \`this\` type to which the target applies. + * @template Value The property type for the class \`accessor\` field. + */ +interface ClassAccessorDecoratorTarget { + /** + * Invokes the getter that was defined prior to decorator application. + * + * @example + * let value = target.get.call(instance); + */ + get(this: This): Value; + + /** + * Invokes the setter that was defined prior to decorator application. + * + * @example + * target.set.call(instance, value); + */ + set(this: This, value: Value): void; +} + +/** + * Describes the allowed return value from a class \`accessor\` field decorator. + * @template This The \`this\` type to which the target applies. + * @template Value The property type for the class \`accessor\` field. + */ +interface ClassAccessorDecoratorResult { + /** + * An optional replacement getter function. If not provided, the existing getter function is used instead. + */ + get?(this: This): Value; + + /** + * An optional replacement setter function. If not provided, the existing setter function is used instead. + */ + set?(this: This, value: Value): void; + + /** + * An optional initializer mutator that is invoked when the underlying field initializer is evaluated. + * @param value The incoming initializer value. + * @returns The replacement initializer value. + */ + init?(this: This, value: Value): Value; +} + +/** + * Context provided to a class field decorator. + * @template This The type on which the class element will be defined. For a static class element, this will be + * the type of the constructor. For a non-static class element, this will be the type of the instance. + * @template Value The type of the decorated class field. + */ +interface ClassFieldDecoratorContext< + This = unknown, + Value = unknown, +> { + /** The kind of class element that was decorated. */ + readonly kind: "field"; + + /** The name of the decorated class element. */ + readonly name: string | symbol; + + /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ + readonly static: boolean; + + /** A value indicating whether the class element has a private name. */ + readonly private: boolean; + + /** An object that can be used to access the current value of the class element at runtime. */ + readonly access: { + /** + * Determines whether an object has a property with the same name as the decorated element. + */ + has(object: This): boolean; + + /** + * Gets the value of the field on the provided object. + */ + get(object: This): Value; + + /** + * Sets the value of the field on the provided object. + */ + set(object: This, value: Value): void; + }; + + /** + * Adds a callback to be invoked either before static initializers are run (when + * decorating a \`static\` element), or before instance initializers are run (when + * decorating a non-\`static\` element). + */ + addInitializer(initializer: (this: This) => void): void; + + readonly metadata: DecoratorMetadata; +} +`;_o["lib.decorators.legacy.d.ts"]=`/*! ***************************************************************************** +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. +***************************************************************************** */ + + +/// + +declare type ClassDecorator = (target: TFunction) => TFunction | void; +declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; +declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; +declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void; +`;_o["lib.dom.asynciterable.d.ts"]=`/*! ***************************************************************************** +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. +***************************************************************************** */ + + +/// + +///////////////////////////// +/// Window Async Iterable APIs +///////////////////////////// + +interface FileSystemDirectoryHandle { + [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; + entries(): AsyncIterableIterator<[string, FileSystemHandle]>; + keys(): AsyncIterableIterator; + values(): AsyncIterableIterator; +} +`;_o["lib.dom.d.ts"]=`/*! ***************************************************************************** +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. +***************************************************************************** */ + + +/// + +///////////////////////////// +/// Window APIs +///////////////////////////// + +interface AddEventListenerOptions extends EventListenerOptions { + once?: boolean; + passive?: boolean; + signal?: AbortSignal; +} + +interface AesCbcParams extends Algorithm { + iv: BufferSource; +} + +interface AesCtrParams extends Algorithm { + counter: BufferSource; + length: number; +} + +interface AesDerivedKeyParams extends Algorithm { + length: number; +} + +interface AesGcmParams extends Algorithm { + additionalData?: BufferSource; + iv: BufferSource; + tagLength?: number; +} + +interface AesKeyAlgorithm extends KeyAlgorithm { + length: number; +} + +interface AesKeyGenParams extends Algorithm { + length: number; +} + +interface Algorithm { + name: string; +} + +interface AnalyserOptions extends AudioNodeOptions { + fftSize?: number; + maxDecibels?: number; + minDecibels?: number; + smoothingTimeConstant?: number; +} + +interface AnimationEventInit extends EventInit { + animationName?: string; + elapsedTime?: number; + pseudoElement?: string; +} + +interface AnimationPlaybackEventInit extends EventInit { + currentTime?: CSSNumberish | null; + timelineTime?: CSSNumberish | null; +} + +interface AssignedNodesOptions { + flatten?: boolean; +} + +interface AudioBufferOptions { + length: number; + numberOfChannels?: number; + sampleRate: number; +} + +interface AudioBufferSourceOptions { + buffer?: AudioBuffer | null; + detune?: number; + loop?: boolean; + loopEnd?: number; + loopStart?: number; + playbackRate?: number; +} + +interface AudioConfiguration { + bitrate?: number; + channels?: string; + contentType: string; + samplerate?: number; + spatialRendering?: boolean; +} + +interface AudioContextOptions { + latencyHint?: AudioContextLatencyCategory | number; + sampleRate?: number; +} + +interface AudioNodeOptions { + channelCount?: number; + channelCountMode?: ChannelCountMode; + channelInterpretation?: ChannelInterpretation; +} + +interface AudioProcessingEventInit extends EventInit { + inputBuffer: AudioBuffer; + outputBuffer: AudioBuffer; + playbackTime: number; +} + +interface AudioTimestamp { + contextTime?: number; + performanceTime?: DOMHighResTimeStamp; +} + +interface AudioWorkletNodeOptions extends AudioNodeOptions { + numberOfInputs?: number; + numberOfOutputs?: number; + outputChannelCount?: number[]; + parameterData?: Record; + processorOptions?: any; +} + +interface AuthenticationExtensionsClientInputs { + appid?: string; + credProps?: boolean; + hmacCreateSecret?: boolean; + minPinLength?: boolean; +} + +interface AuthenticationExtensionsClientOutputs { + appid?: boolean; + credProps?: CredentialPropertiesOutput; + hmacCreateSecret?: boolean; +} + +interface AuthenticatorSelectionCriteria { + authenticatorAttachment?: AuthenticatorAttachment; + requireResidentKey?: boolean; + residentKey?: ResidentKeyRequirement; + userVerification?: UserVerificationRequirement; +} + +interface AvcEncoderConfig { + format?: AvcBitstreamFormat; +} + +interface BiquadFilterOptions extends AudioNodeOptions { + Q?: number; + detune?: number; + frequency?: number; + gain?: number; + type?: BiquadFilterType; +} + +interface BlobEventInit { + data: Blob; + timecode?: DOMHighResTimeStamp; +} + +interface BlobPropertyBag { + endings?: EndingType; + type?: string; +} + +interface CSSMatrixComponentOptions { + is2D?: boolean; +} + +interface CSSNumericType { + angle?: number; + flex?: number; + frequency?: number; + length?: number; + percent?: number; + percentHint?: CSSNumericBaseType; + resolution?: number; + time?: number; +} + +interface CSSStyleSheetInit { + baseURL?: string; + disabled?: boolean; + media?: MediaList | string; +} + +interface CacheQueryOptions { + ignoreMethod?: boolean; + ignoreSearch?: boolean; + ignoreVary?: boolean; +} + +interface CanvasRenderingContext2DSettings { + alpha?: boolean; + colorSpace?: PredefinedColorSpace; + desynchronized?: boolean; + willReadFrequently?: boolean; +} + +interface ChannelMergerOptions extends AudioNodeOptions { + numberOfInputs?: number; +} + +interface ChannelSplitterOptions extends AudioNodeOptions { + numberOfOutputs?: number; +} + +interface CheckVisibilityOptions { + checkOpacity?: boolean; + checkVisibilityCSS?: boolean; +} + +interface ClientQueryOptions { + includeUncontrolled?: boolean; + type?: ClientTypes; +} + +interface ClipboardEventInit extends EventInit { + clipboardData?: DataTransfer | null; +} + +interface ClipboardItemOptions { + presentationStyle?: PresentationStyle; +} + +interface CloseEventInit extends EventInit { + code?: number; + reason?: string; + wasClean?: boolean; +} + +interface CompositionEventInit extends UIEventInit { + data?: string; +} + +interface ComputedEffectTiming extends EffectTiming { + activeDuration?: CSSNumberish; + currentIteration?: number | null; + endTime?: CSSNumberish; + localTime?: CSSNumberish | null; + progress?: number | null; + startTime?: CSSNumberish; +} + +interface ComputedKeyframe { + composite: CompositeOperationOrAuto; + computedOffset: number; + easing: string; + offset: number | null; + [property: string]: string | number | null | undefined; +} + +interface ConstantSourceOptions { + offset?: number; +} + +interface ConstrainBooleanParameters { + exact?: boolean; + ideal?: boolean; +} + +interface ConstrainDOMStringParameters { + exact?: string | string[]; + ideal?: string | string[]; +} + +interface ConstrainDoubleRange extends DoubleRange { + exact?: number; + ideal?: number; +} + +interface ConstrainULongRange extends ULongRange { + exact?: number; + ideal?: number; +} + +interface ConvolverOptions extends AudioNodeOptions { + buffer?: AudioBuffer | null; + disableNormalization?: boolean; +} + +interface CredentialCreationOptions { + publicKey?: PublicKeyCredentialCreationOptions; + signal?: AbortSignal; +} + +interface CredentialPropertiesOutput { + rk?: boolean; +} + +interface CredentialRequestOptions { + mediation?: CredentialMediationRequirement; + publicKey?: PublicKeyCredentialRequestOptions; + signal?: AbortSignal; +} + +interface CryptoKeyPair { + privateKey: CryptoKey; + publicKey: CryptoKey; +} + +interface CustomEventInit extends EventInit { + detail?: T; +} + +interface DOMMatrix2DInit { + a?: number; + b?: number; + c?: number; + d?: number; + e?: number; + f?: number; + m11?: number; + m12?: number; + m21?: number; + m22?: number; + m41?: number; + m42?: number; +} + +interface DOMMatrixInit extends DOMMatrix2DInit { + is2D?: boolean; + m13?: number; + m14?: number; + m23?: number; + m24?: number; + m31?: number; + m32?: number; + m33?: number; + m34?: number; + m43?: number; + m44?: number; +} + +interface DOMPointInit { + w?: number; + x?: number; + y?: number; + z?: number; +} + +interface DOMQuadInit { + p1?: DOMPointInit; + p2?: DOMPointInit; + p3?: DOMPointInit; + p4?: DOMPointInit; +} + +interface DOMRectInit { + height?: number; + width?: number; + x?: number; + y?: number; +} + +interface DelayOptions extends AudioNodeOptions { + delayTime?: number; + maxDelayTime?: number; +} + +interface DeviceMotionEventAccelerationInit { + x?: number | null; + y?: number | null; + z?: number | null; +} + +interface DeviceMotionEventInit extends EventInit { + acceleration?: DeviceMotionEventAccelerationInit; + accelerationIncludingGravity?: DeviceMotionEventAccelerationInit; + interval?: number; + rotationRate?: DeviceMotionEventRotationRateInit; +} + +interface DeviceMotionEventRotationRateInit { + alpha?: number | null; + beta?: number | null; + gamma?: number | null; +} + +interface DeviceOrientationEventInit extends EventInit { + absolute?: boolean; + alpha?: number | null; + beta?: number | null; + gamma?: number | null; +} + +interface DisplayMediaStreamOptions { + audio?: boolean | MediaTrackConstraints; + video?: boolean | MediaTrackConstraints; +} + +interface DocumentTimelineOptions { + originTime?: DOMHighResTimeStamp; +} + +interface DoubleRange { + max?: number; + min?: number; +} + +interface DragEventInit extends MouseEventInit { + dataTransfer?: DataTransfer | null; +} + +interface DynamicsCompressorOptions extends AudioNodeOptions { + attack?: number; + knee?: number; + ratio?: number; + release?: number; + threshold?: number; +} + +interface EcKeyAlgorithm extends KeyAlgorithm { + namedCurve: NamedCurve; +} + +interface EcKeyGenParams extends Algorithm { + namedCurve: NamedCurve; +} + +interface EcKeyImportParams extends Algorithm { + namedCurve: NamedCurve; +} + +interface EcdhKeyDeriveParams extends Algorithm { + public: CryptoKey; +} + +interface EcdsaParams extends Algorithm { + hash: HashAlgorithmIdentifier; +} + +interface EffectTiming { + delay?: number; + direction?: PlaybackDirection; + duration?: number | CSSNumericValue | string; + easing?: string; + endDelay?: number; + fill?: FillMode; + iterationStart?: number; + iterations?: number; + playbackRate?: number; +} + +interface ElementCreationOptions { + is?: string; +} + +interface ElementDefinitionOptions { + extends?: string; +} + +interface EncodedVideoChunkInit { + data: AllowSharedBufferSource; + duration?: number; + timestamp: number; + type: EncodedVideoChunkType; +} + +interface EncodedVideoChunkMetadata { + decoderConfig?: VideoDecoderConfig; +} + +interface ErrorEventInit extends EventInit { + colno?: number; + error?: any; + filename?: string; + lineno?: number; + message?: string; +} + +interface EventInit { + bubbles?: boolean; + cancelable?: boolean; + composed?: boolean; +} + +interface EventListenerOptions { + capture?: boolean; +} + +interface EventModifierInit extends UIEventInit { + altKey?: boolean; + ctrlKey?: boolean; + metaKey?: boolean; + modifierAltGraph?: boolean; + modifierCapsLock?: boolean; + modifierFn?: boolean; + modifierFnLock?: boolean; + modifierHyper?: boolean; + modifierNumLock?: boolean; + modifierScrollLock?: boolean; + modifierSuper?: boolean; + modifierSymbol?: boolean; + modifierSymbolLock?: boolean; + shiftKey?: boolean; +} + +interface EventSourceInit { + withCredentials?: boolean; +} + +interface FilePropertyBag extends BlobPropertyBag { + lastModified?: number; +} + +interface FileSystemCreateWritableOptions { + keepExistingData?: boolean; +} + +interface FileSystemFlags { + create?: boolean; + exclusive?: boolean; +} + +interface FileSystemGetDirectoryOptions { + create?: boolean; +} + +interface FileSystemGetFileOptions { + create?: boolean; +} + +interface FileSystemRemoveOptions { + recursive?: boolean; +} + +interface FocusEventInit extends UIEventInit { + relatedTarget?: EventTarget | null; +} + +interface FocusOptions { + preventScroll?: boolean; +} + +interface FontFaceDescriptors { + ascentOverride?: string; + descentOverride?: string; + display?: FontDisplay; + featureSettings?: string; + lineGapOverride?: string; + stretch?: string; + style?: string; + unicodeRange?: string; + weight?: string; +} + +interface FontFaceSetLoadEventInit extends EventInit { + fontfaces?: FontFace[]; +} + +interface FormDataEventInit extends EventInit { + formData: FormData; +} + +interface FullscreenOptions { + navigationUI?: FullscreenNavigationUI; +} + +interface GainOptions extends AudioNodeOptions { + gain?: number; +} + +interface GamepadEffectParameters { + duration?: number; + startDelay?: number; + strongMagnitude?: number; + weakMagnitude?: number; +} + +interface GamepadEventInit extends EventInit { + gamepad: Gamepad; +} + +interface GetAnimationsOptions { + subtree?: boolean; +} + +interface GetNotificationOptions { + tag?: string; +} + +interface GetRootNodeOptions { + composed?: boolean; +} + +interface HashChangeEventInit extends EventInit { + newURL?: string; + oldURL?: string; +} + +interface HkdfParams extends Algorithm { + hash: HashAlgorithmIdentifier; + info: BufferSource; + salt: BufferSource; +} + +interface HmacImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; + length?: number; +} + +interface HmacKeyAlgorithm extends KeyAlgorithm { + hash: KeyAlgorithm; + length: number; +} + +interface HmacKeyGenParams extends Algorithm { + hash: HashAlgorithmIdentifier; + length?: number; +} + +interface IDBDatabaseInfo { + name?: string; + version?: number; +} + +interface IDBIndexParameters { + multiEntry?: boolean; + unique?: boolean; +} + +interface IDBObjectStoreParameters { + autoIncrement?: boolean; + keyPath?: string | string[] | null; +} + +interface IDBTransactionOptions { + durability?: IDBTransactionDurability; +} + +interface IDBVersionChangeEventInit extends EventInit { + newVersion?: number | null; + oldVersion?: number; +} + +interface IIRFilterOptions extends AudioNodeOptions { + feedback: number[]; + feedforward: number[]; +} + +interface IdleRequestOptions { + timeout?: number; +} + +interface ImageBitmapOptions { + colorSpaceConversion?: ColorSpaceConversion; + imageOrientation?: ImageOrientation; + premultiplyAlpha?: PremultiplyAlpha; + resizeHeight?: number; + resizeQuality?: ResizeQuality; + resizeWidth?: number; +} + +interface ImageBitmapRenderingContextSettings { + alpha?: boolean; +} + +interface ImageDataSettings { + colorSpace?: PredefinedColorSpace; +} + +interface ImageEncodeOptions { + quality?: number; + type?: string; +} + +interface ImportMeta { + url: string; +} + +interface InputEventInit extends UIEventInit { + data?: string | null; + dataTransfer?: DataTransfer | null; + inputType?: string; + isComposing?: boolean; + targetRanges?: StaticRange[]; +} + +interface IntersectionObserverEntryInit { + boundingClientRect: DOMRectInit; + intersectionRatio: number; + intersectionRect: DOMRectInit; + isIntersecting: boolean; + rootBounds: DOMRectInit | null; + target: Element; + time: DOMHighResTimeStamp; +} + +interface IntersectionObserverInit { + root?: Element | Document | null; + rootMargin?: string; + threshold?: number | number[]; +} + +interface JsonWebKey { + alg?: string; + crv?: string; + d?: string; + dp?: string; + dq?: string; + e?: string; + ext?: boolean; + k?: string; + key_ops?: string[]; + kty?: string; + n?: string; + oth?: RsaOtherPrimesInfo[]; + p?: string; + q?: string; + qi?: string; + use?: string; + x?: string; + y?: string; +} + +interface KeyAlgorithm { + name: string; +} + +interface KeyboardEventInit extends EventModifierInit { + /** @deprecated */ + charCode?: number; + code?: string; + isComposing?: boolean; + key?: string; + /** @deprecated */ + keyCode?: number; + location?: number; + repeat?: boolean; +} + +interface Keyframe { + composite?: CompositeOperationOrAuto; + easing?: string; + offset?: number | null; + [property: string]: string | number | null | undefined; +} + +interface KeyframeAnimationOptions extends KeyframeEffectOptions { + id?: string; + timeline?: AnimationTimeline | null; +} + +interface KeyframeEffectOptions extends EffectTiming { + composite?: CompositeOperation; + iterationComposite?: IterationCompositeOperation; + pseudoElement?: string | null; +} + +interface LockInfo { + clientId?: string; + mode?: LockMode; + name?: string; +} + +interface LockManagerSnapshot { + held?: LockInfo[]; + pending?: LockInfo[]; +} + +interface LockOptions { + ifAvailable?: boolean; + mode?: LockMode; + signal?: AbortSignal; + steal?: boolean; +} + +interface MIDIConnectionEventInit extends EventInit { + port?: MIDIPort; +} + +interface MIDIMessageEventInit extends EventInit { + data?: Uint8Array; +} + +interface MIDIOptions { + software?: boolean; + sysex?: boolean; +} + +interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo { + configuration?: MediaDecodingConfiguration; +} + +interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { + configuration?: MediaEncodingConfiguration; +} + +interface MediaCapabilitiesInfo { + powerEfficient: boolean; + smooth: boolean; + supported: boolean; +} + +interface MediaConfiguration { + audio?: AudioConfiguration; + video?: VideoConfiguration; +} + +interface MediaDecodingConfiguration extends MediaConfiguration { + type: MediaDecodingType; +} + +interface MediaElementAudioSourceOptions { + mediaElement: HTMLMediaElement; +} + +interface MediaEncodingConfiguration extends MediaConfiguration { + type: MediaEncodingType; +} + +interface MediaEncryptedEventInit extends EventInit { + initData?: ArrayBuffer | null; + initDataType?: string; +} + +interface MediaImage { + sizes?: string; + src: string; + type?: string; +} + +interface MediaKeyMessageEventInit extends EventInit { + message: ArrayBuffer; + messageType: MediaKeyMessageType; +} + +interface MediaKeySystemConfiguration { + audioCapabilities?: MediaKeySystemMediaCapability[]; + distinctiveIdentifier?: MediaKeysRequirement; + initDataTypes?: string[]; + label?: string; + persistentState?: MediaKeysRequirement; + sessionTypes?: string[]; + videoCapabilities?: MediaKeySystemMediaCapability[]; +} + +interface MediaKeySystemMediaCapability { + contentType?: string; + encryptionScheme?: string | null; + robustness?: string; +} + +interface MediaMetadataInit { + album?: string; + artist?: string; + artwork?: MediaImage[]; + title?: string; +} + +interface MediaPositionState { + duration?: number; + playbackRate?: number; + position?: number; +} + +interface MediaQueryListEventInit extends EventInit { + matches?: boolean; + media?: string; +} + +interface MediaRecorderOptions { + audioBitsPerSecond?: number; + bitsPerSecond?: number; + mimeType?: string; + videoBitsPerSecond?: number; +} + +interface MediaSessionActionDetails { + action: MediaSessionAction; + fastSeek?: boolean; + seekOffset?: number; + seekTime?: number; +} + +interface MediaStreamAudioSourceOptions { + mediaStream: MediaStream; +} + +interface MediaStreamConstraints { + audio?: boolean | MediaTrackConstraints; + peerIdentity?: string; + preferCurrentTab?: boolean; + video?: boolean | MediaTrackConstraints; +} + +interface MediaStreamTrackEventInit extends EventInit { + track: MediaStreamTrack; +} + +interface MediaTrackCapabilities { + aspectRatio?: DoubleRange; + autoGainControl?: boolean[]; + channelCount?: ULongRange; + deviceId?: string; + displaySurface?: string; + echoCancellation?: boolean[]; + facingMode?: string[]; + frameRate?: DoubleRange; + groupId?: string; + height?: ULongRange; + noiseSuppression?: boolean[]; + sampleRate?: ULongRange; + sampleSize?: ULongRange; + width?: ULongRange; +} + +interface MediaTrackConstraintSet { + aspectRatio?: ConstrainDouble; + autoGainControl?: ConstrainBoolean; + channelCount?: ConstrainULong; + deviceId?: ConstrainDOMString; + displaySurface?: ConstrainDOMString; + echoCancellation?: ConstrainBoolean; + facingMode?: ConstrainDOMString; + frameRate?: ConstrainDouble; + groupId?: ConstrainDOMString; + height?: ConstrainULong; + noiseSuppression?: ConstrainBoolean; + sampleRate?: ConstrainULong; + sampleSize?: ConstrainULong; + width?: ConstrainULong; +} + +interface MediaTrackConstraints extends MediaTrackConstraintSet { + advanced?: MediaTrackConstraintSet[]; +} + +interface MediaTrackSettings { + aspectRatio?: number; + autoGainControl?: boolean; + channelCount?: number; + deviceId?: string; + displaySurface?: string; + echoCancellation?: boolean; + facingMode?: string; + frameRate?: number; + groupId?: string; + height?: number; + noiseSuppression?: boolean; + sampleRate?: number; + sampleSize?: number; + width?: number; +} + +interface MediaTrackSupportedConstraints { + aspectRatio?: boolean; + autoGainControl?: boolean; + channelCount?: boolean; + deviceId?: boolean; + displaySurface?: boolean; + echoCancellation?: boolean; + facingMode?: boolean; + frameRate?: boolean; + groupId?: boolean; + height?: boolean; + noiseSuppression?: boolean; + sampleRate?: boolean; + sampleSize?: boolean; + width?: boolean; +} + +interface MessageEventInit extends EventInit { + data?: T; + lastEventId?: string; + origin?: string; + ports?: MessagePort[]; + source?: MessageEventSource | null; +} + +interface MouseEventInit extends EventModifierInit { + button?: number; + buttons?: number; + clientX?: number; + clientY?: number; + movementX?: number; + movementY?: number; + relatedTarget?: EventTarget | null; + screenX?: number; + screenY?: number; +} + +interface MultiCacheQueryOptions extends CacheQueryOptions { + cacheName?: string; +} + +interface MutationObserverInit { + /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ + attributeFilter?: string[]; + /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ + attributeOldValue?: boolean; + /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ + attributes?: boolean; + /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ + characterData?: boolean; + /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ + characterDataOldValue?: boolean; + /** Set to true if mutations to target's children are to be observed. */ + childList?: boolean; + /** Set to true if mutations to not just target, but also target's descendants are to be observed. */ + subtree?: boolean; +} + +interface NavigationPreloadState { + enabled?: boolean; + headerValue?: string; +} + +interface NotificationOptions { + badge?: string; + body?: string; + data?: any; + dir?: NotificationDirection; + icon?: string; + lang?: string; + requireInteraction?: boolean; + silent?: boolean | null; + tag?: string; +} + +interface OfflineAudioCompletionEventInit extends EventInit { + renderedBuffer: AudioBuffer; +} + +interface OfflineAudioContextOptions { + length: number; + numberOfChannels?: number; + sampleRate: number; +} + +interface OptionalEffectTiming { + delay?: number; + direction?: PlaybackDirection; + duration?: number | string; + easing?: string; + endDelay?: number; + fill?: FillMode; + iterationStart?: number; + iterations?: number; + playbackRate?: number; +} + +interface OscillatorOptions extends AudioNodeOptions { + detune?: number; + frequency?: number; + periodicWave?: PeriodicWave; + type?: OscillatorType; +} + +interface PageTransitionEventInit extends EventInit { + persisted?: boolean; +} + +interface PannerOptions extends AudioNodeOptions { + coneInnerAngle?: number; + coneOuterAngle?: number; + coneOuterGain?: number; + distanceModel?: DistanceModelType; + maxDistance?: number; + orientationX?: number; + orientationY?: number; + orientationZ?: number; + panningModel?: PanningModelType; + positionX?: number; + positionY?: number; + positionZ?: number; + refDistance?: number; + rolloffFactor?: number; +} + +interface PaymentCurrencyAmount { + currency: string; + value: string; +} + +interface PaymentDetailsBase { + displayItems?: PaymentItem[]; + modifiers?: PaymentDetailsModifier[]; +} + +interface PaymentDetailsInit extends PaymentDetailsBase { + id?: string; + total: PaymentItem; +} + +interface PaymentDetailsModifier { + additionalDisplayItems?: PaymentItem[]; + data?: any; + supportedMethods: string; + total?: PaymentItem; +} + +interface PaymentDetailsUpdate extends PaymentDetailsBase { + paymentMethodErrors?: any; + total?: PaymentItem; +} + +interface PaymentItem { + amount: PaymentCurrencyAmount; + label: string; + pending?: boolean; +} + +interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { + methodDetails?: any; + methodName?: string; +} + +interface PaymentMethodData { + data?: any; + supportedMethods: string; +} + +interface PaymentRequestUpdateEventInit extends EventInit { +} + +interface PaymentValidationErrors { + error?: string; + paymentMethod?: any; +} + +interface Pbkdf2Params extends Algorithm { + hash: HashAlgorithmIdentifier; + iterations: number; + salt: BufferSource; +} + +interface PerformanceMarkOptions { + detail?: any; + startTime?: DOMHighResTimeStamp; +} + +interface PerformanceMeasureOptions { + detail?: any; + duration?: DOMHighResTimeStamp; + end?: string | DOMHighResTimeStamp; + start?: string | DOMHighResTimeStamp; +} + +interface PerformanceObserverInit { + buffered?: boolean; + entryTypes?: string[]; + type?: string; +} + +interface PeriodicWaveConstraints { + disableNormalization?: boolean; +} + +interface PeriodicWaveOptions extends PeriodicWaveConstraints { + imag?: number[] | Float32Array; + real?: number[] | Float32Array; +} + +interface PermissionDescriptor { + name: PermissionName; +} + +interface PictureInPictureEventInit extends EventInit { + pictureInPictureWindow: PictureInPictureWindow; +} + +interface PlaneLayout { + offset: number; + stride: number; +} + +interface PointerEventInit extends MouseEventInit { + coalescedEvents?: PointerEvent[]; + height?: number; + isPrimary?: boolean; + pointerId?: number; + pointerType?: string; + predictedEvents?: PointerEvent[]; + pressure?: number; + tangentialPressure?: number; + tiltX?: number; + tiltY?: number; + twist?: number; + width?: number; +} + +interface PopStateEventInit extends EventInit { + state?: any; +} + +interface PositionOptions { + enableHighAccuracy?: boolean; + maximumAge?: number; + timeout?: number; +} + +interface ProgressEventInit extends EventInit { + lengthComputable?: boolean; + loaded?: number; + total?: number; +} + +interface PromiseRejectionEventInit extends EventInit { + promise: Promise; + reason?: any; +} + +interface PropertyDefinition { + inherits: boolean; + initialValue?: string; + name: string; + syntax?: string; +} + +interface PropertyIndexedKeyframes { + composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[]; + easing?: string | string[]; + offset?: number | (number | null)[]; + [property: string]: string | string[] | number | null | (number | null)[] | undefined; +} + +interface PublicKeyCredentialCreationOptions { + attestation?: AttestationConveyancePreference; + authenticatorSelection?: AuthenticatorSelectionCriteria; + challenge: BufferSource; + excludeCredentials?: PublicKeyCredentialDescriptor[]; + extensions?: AuthenticationExtensionsClientInputs; + pubKeyCredParams: PublicKeyCredentialParameters[]; + rp: PublicKeyCredentialRpEntity; + timeout?: number; + user: PublicKeyCredentialUserEntity; +} + +interface PublicKeyCredentialDescriptor { + id: BufferSource; + transports?: AuthenticatorTransport[]; + type: PublicKeyCredentialType; +} + +interface PublicKeyCredentialEntity { + name: string; +} + +interface PublicKeyCredentialParameters { + alg: COSEAlgorithmIdentifier; + type: PublicKeyCredentialType; +} + +interface PublicKeyCredentialRequestOptions { + allowCredentials?: PublicKeyCredentialDescriptor[]; + challenge: BufferSource; + extensions?: AuthenticationExtensionsClientInputs; + rpId?: string; + timeout?: number; + userVerification?: UserVerificationRequirement; +} + +interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { + id?: string; +} + +interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { + displayName: string; + id: BufferSource; +} + +interface PushSubscriptionJSON { + endpoint?: string; + expirationTime?: EpochTimeStamp | null; + keys?: Record; +} + +interface PushSubscriptionOptionsInit { + applicationServerKey?: BufferSource | string | null; + userVisibleOnly?: boolean; +} + +interface QueuingStrategy { + highWaterMark?: number; + size?: QueuingStrategySize; +} + +interface QueuingStrategyInit { + /** + * Creates a new ByteLengthQueuingStrategy with the provided high water mark. + * + * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. + */ + highWaterMark: number; +} + +interface RTCAnswerOptions extends RTCOfferAnswerOptions { +} + +interface RTCCertificateExpiration { + expires?: number; +} + +interface RTCConfiguration { + bundlePolicy?: RTCBundlePolicy; + certificates?: RTCCertificate[]; + iceCandidatePoolSize?: number; + iceServers?: RTCIceServer[]; + iceTransportPolicy?: RTCIceTransportPolicy; + rtcpMuxPolicy?: RTCRtcpMuxPolicy; +} + +interface RTCDTMFToneChangeEventInit extends EventInit { + tone?: string; +} + +interface RTCDataChannelEventInit extends EventInit { + channel: RTCDataChannel; +} + +interface RTCDataChannelInit { + id?: number; + maxPacketLifeTime?: number; + maxRetransmits?: number; + negotiated?: boolean; + ordered?: boolean; + protocol?: string; +} + +interface RTCDtlsFingerprint { + algorithm?: string; + value?: string; +} + +interface RTCEncodedAudioFrameMetadata { + contributingSources?: number[]; + payloadType?: number; + sequenceNumber?: number; + synchronizationSource?: number; +} + +interface RTCEncodedVideoFrameMetadata { + contributingSources?: number[]; + dependencies?: number[]; + frameId?: number; + height?: number; + payloadType?: number; + spatialIndex?: number; + synchronizationSource?: number; + temporalIndex?: number; + timestamp?: number; + width?: number; +} + +interface RTCErrorEventInit extends EventInit { + error: RTCError; +} + +interface RTCErrorInit { + errorDetail: RTCErrorDetailType; + httpRequestStatusCode?: number; + receivedAlert?: number; + sctpCauseCode?: number; + sdpLineNumber?: number; + sentAlert?: number; +} + +interface RTCIceCandidateInit { + candidate?: string; + sdpMLineIndex?: number | null; + sdpMid?: string | null; + usernameFragment?: string | null; +} + +interface RTCIceCandidatePair { + local?: RTCIceCandidate; + remote?: RTCIceCandidate; +} + +interface RTCIceCandidatePairStats extends RTCStats { + availableIncomingBitrate?: number; + availableOutgoingBitrate?: number; + bytesReceived?: number; + bytesSent?: number; + currentRoundTripTime?: number; + lastPacketReceivedTimestamp?: DOMHighResTimeStamp; + lastPacketSentTimestamp?: DOMHighResTimeStamp; + localCandidateId: string; + nominated?: boolean; + remoteCandidateId: string; + requestsReceived?: number; + requestsSent?: number; + responsesReceived?: number; + responsesSent?: number; + state: RTCStatsIceCandidatePairState; + totalRoundTripTime?: number; + transportId: string; +} + +interface RTCIceServer { + credential?: string; + urls: string | string[]; + username?: string; +} + +interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { + audioLevel?: number; + bytesReceived?: number; + concealedSamples?: number; + concealmentEvents?: number; + decoderImplementation?: string; + estimatedPlayoutTimestamp?: DOMHighResTimeStamp; + fecPacketsDiscarded?: number; + fecPacketsReceived?: number; + firCount?: number; + frameHeight?: number; + frameWidth?: number; + framesDecoded?: number; + framesDropped?: number; + framesPerSecond?: number; + framesReceived?: number; + headerBytesReceived?: number; + insertedSamplesForDeceleration?: number; + jitterBufferDelay?: number; + jitterBufferEmittedCount?: number; + keyFramesDecoded?: number; + lastPacketReceivedTimestamp?: DOMHighResTimeStamp; + mid?: string; + nackCount?: number; + packetsDiscarded?: number; + pliCount?: number; + qpSum?: number; + remoteId?: string; + removedSamplesForAcceleration?: number; + silentConcealedSamples?: number; + totalAudioEnergy?: number; + totalDecodeTime?: number; + totalInterFrameDelay?: number; + totalProcessingDelay?: number; + totalSamplesDuration?: number; + totalSamplesReceived?: number; + totalSquaredInterFrameDelay?: number; + trackIdentifier: string; +} + +interface RTCLocalSessionDescriptionInit { + sdp?: string; + type?: RTCSdpType; +} + +interface RTCOfferAnswerOptions { +} + +interface RTCOfferOptions extends RTCOfferAnswerOptions { + iceRestart?: boolean; + offerToReceiveAudio?: boolean; + offerToReceiveVideo?: boolean; +} + +interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { + firCount?: number; + frameHeight?: number; + frameWidth?: number; + framesEncoded?: number; + framesPerSecond?: number; + framesSent?: number; + headerBytesSent?: number; + hugeFramesSent?: number; + keyFramesEncoded?: number; + mediaSourceId?: string; + nackCount?: number; + pliCount?: number; + qpSum?: number; + qualityLimitationResolutionChanges?: number; + remoteId?: string; + retransmittedBytesSent?: number; + retransmittedPacketsSent?: number; + rid?: string; + rtxSsrc?: number; + targetBitrate?: number; + totalEncodeTime?: number; + totalEncodedBytesTarget?: number; + totalPacketSendDelay?: number; +} + +interface RTCPeerConnectionIceErrorEventInit extends EventInit { + address?: string | null; + errorCode: number; + errorText?: string; + port?: number | null; + url?: string; +} + +interface RTCPeerConnectionIceEventInit extends EventInit { + candidate?: RTCIceCandidate | null; + url?: string | null; +} + +interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { + jitter?: number; + packetsLost?: number; + packetsReceived?: number; +} + +interface RTCRtcpParameters { + cname?: string; + reducedSize?: boolean; +} + +interface RTCRtpCapabilities { + codecs: RTCRtpCodecCapability[]; + headerExtensions: RTCRtpHeaderExtensionCapability[]; +} + +interface RTCRtpCodec { + channels?: number; + clockRate: number; + mimeType: string; + sdpFmtpLine?: string; +} + +interface RTCRtpCodecCapability extends RTCRtpCodec { +} + +interface RTCRtpCodecParameters extends RTCRtpCodec { + payloadType: number; +} + +interface RTCRtpCodingParameters { + rid?: string; +} + +interface RTCRtpContributingSource { + audioLevel?: number; + rtpTimestamp: number; + source: number; + timestamp: DOMHighResTimeStamp; +} + +interface RTCRtpEncodingParameters extends RTCRtpCodingParameters { + active?: boolean; + maxBitrate?: number; + maxFramerate?: number; + networkPriority?: RTCPriorityType; + priority?: RTCPriorityType; + scaleResolutionDownBy?: number; +} + +interface RTCRtpHeaderExtensionCapability { + uri: string; +} + +interface RTCRtpHeaderExtensionParameters { + encrypted?: boolean; + id: number; + uri: string; +} + +interface RTCRtpParameters { + codecs: RTCRtpCodecParameters[]; + headerExtensions: RTCRtpHeaderExtensionParameters[]; + rtcp: RTCRtcpParameters; +} + +interface RTCRtpReceiveParameters extends RTCRtpParameters { +} + +interface RTCRtpSendParameters extends RTCRtpParameters { + degradationPreference?: RTCDegradationPreference; + encodings: RTCRtpEncodingParameters[]; + transactionId: string; +} + +interface RTCRtpStreamStats extends RTCStats { + codecId?: string; + kind: string; + ssrc: number; + transportId?: string; +} + +interface RTCRtpSynchronizationSource extends RTCRtpContributingSource { +} + +interface RTCRtpTransceiverInit { + direction?: RTCRtpTransceiverDirection; + sendEncodings?: RTCRtpEncodingParameters[]; + streams?: MediaStream[]; +} + +interface RTCSentRtpStreamStats extends RTCRtpStreamStats { + bytesSent?: number; + packetsSent?: number; +} + +interface RTCSessionDescriptionInit { + sdp?: string; + type: RTCSdpType; +} + +interface RTCSetParameterOptions { +} + +interface RTCStats { + id: string; + timestamp: DOMHighResTimeStamp; + type: RTCStatsType; +} + +interface RTCTrackEventInit extends EventInit { + receiver: RTCRtpReceiver; + streams?: MediaStream[]; + track: MediaStreamTrack; + transceiver: RTCRtpTransceiver; +} + +interface RTCTransportStats extends RTCStats { + bytesReceived?: number; + bytesSent?: number; + dtlsCipher?: string; + dtlsState: RTCDtlsTransportState; + localCertificateId?: string; + remoteCertificateId?: string; + selectedCandidatePairId?: string; + srtpCipher?: string; + tlsVersion?: string; +} + +interface ReadableStreamGetReaderOptions { + /** + * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. + * + * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. + */ + mode?: ReadableStreamReaderMode; +} + +interface ReadableStreamReadDoneResult { + done: true; + value?: T; +} + +interface ReadableStreamReadValueResult { + done: false; + value: T; +} + +interface ReadableWritablePair { + readable: ReadableStream; + /** + * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. + * + * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. + */ + writable: WritableStream; +} + +interface RegistrationOptions { + scope?: string; + type?: WorkerType; + updateViaCache?: ServiceWorkerUpdateViaCache; +} + +interface ReportingObserverOptions { + buffered?: boolean; + types?: string[]; +} + +interface RequestInit { + /** A BodyInit object or null to set request's body. */ + body?: BodyInit | null; + /** A string indicating how the request will interact with the browser's cache to set request's cache. */ + cache?: RequestCache; + /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ + credentials?: RequestCredentials; + /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ + headers?: HeadersInit; + /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ + integrity?: string; + /** A boolean to set request's keepalive. */ + keepalive?: boolean; + /** A string to set request's method. */ + method?: string; + /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ + mode?: RequestMode; + priority?: RequestPriority; + /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ + redirect?: RequestRedirect; + /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ + referrer?: string; + /** A referrer policy to set request's referrerPolicy. */ + referrerPolicy?: ReferrerPolicy; + /** An AbortSignal to set request's signal. */ + signal?: AbortSignal | null; + /** Can only be null. Used to disassociate request from any Window. */ + window?: null; +} + +interface ResizeObserverOptions { + box?: ResizeObserverBoxOptions; +} + +interface ResponseInit { + headers?: HeadersInit; + status?: number; + statusText?: string; +} + +interface RsaHashedImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; +} + +interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { + hash: KeyAlgorithm; +} + +interface RsaHashedKeyGenParams extends RsaKeyGenParams { + hash: HashAlgorithmIdentifier; +} + +interface RsaKeyAlgorithm extends KeyAlgorithm { + modulusLength: number; + publicExponent: BigInteger; +} + +interface RsaKeyGenParams extends Algorithm { + modulusLength: number; + publicExponent: BigInteger; +} + +interface RsaOaepParams extends Algorithm { + label?: BufferSource; +} + +interface RsaOtherPrimesInfo { + d?: string; + r?: string; + t?: string; +} + +interface RsaPssParams extends Algorithm { + saltLength: number; +} + +interface SVGBoundingBoxOptions { + clipped?: boolean; + fill?: boolean; + markers?: boolean; + stroke?: boolean; +} + +interface ScrollIntoViewOptions extends ScrollOptions { + block?: ScrollLogicalPosition; + inline?: ScrollLogicalPosition; +} + +interface ScrollOptions { + behavior?: ScrollBehavior; +} + +interface ScrollToOptions extends ScrollOptions { + left?: number; + top?: number; +} + +interface SecurityPolicyViolationEventInit extends EventInit { + blockedURI?: string; + columnNumber?: number; + disposition: SecurityPolicyViolationEventDisposition; + documentURI: string; + effectiveDirective: string; + lineNumber?: number; + originalPolicy: string; + referrer?: string; + sample?: string; + sourceFile?: string; + statusCode: number; + violatedDirective: string; +} + +interface ShadowRootInit { + delegatesFocus?: boolean; + mode: ShadowRootMode; + slotAssignment?: SlotAssignmentMode; +} + +interface ShareData { + files?: File[]; + text?: string; + title?: string; + url?: string; +} + +interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { + error: SpeechSynthesisErrorCode; +} + +interface SpeechSynthesisEventInit extends EventInit { + charIndex?: number; + charLength?: number; + elapsedTime?: number; + name?: string; + utterance: SpeechSynthesisUtterance; +} + +interface StaticRangeInit { + endContainer: Node; + endOffset: number; + startContainer: Node; + startOffset: number; +} + +interface StereoPannerOptions extends AudioNodeOptions { + pan?: number; +} + +interface StorageEstimate { + quota?: number; + usage?: number; +} + +interface StorageEventInit extends EventInit { + key?: string | null; + newValue?: string | null; + oldValue?: string | null; + storageArea?: Storage | null; + url?: string; +} + +interface StreamPipeOptions { + preventAbort?: boolean; + preventCancel?: boolean; + /** + * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. + * + * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. + * + * Errors and closures of the source and destination streams propagate as follows: + * + * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. + * + * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. + * + * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. + * + * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. + * + * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. + */ + preventClose?: boolean; + signal?: AbortSignal; +} + +interface StructuredSerializeOptions { + transfer?: Transferable[]; +} + +interface SubmitEventInit extends EventInit { + submitter?: HTMLElement | null; +} + +interface TextDecodeOptions { + stream?: boolean; +} + +interface TextDecoderOptions { + fatal?: boolean; + ignoreBOM?: boolean; +} + +interface TextEncoderEncodeIntoResult { + read: number; + written: number; +} + +interface ToggleEventInit extends EventInit { + newState?: string; + oldState?: string; +} + +interface TouchEventInit extends EventModifierInit { + changedTouches?: Touch[]; + targetTouches?: Touch[]; + touches?: Touch[]; +} + +interface TouchInit { + altitudeAngle?: number; + azimuthAngle?: number; + clientX?: number; + clientY?: number; + force?: number; + identifier: number; + pageX?: number; + pageY?: number; + radiusX?: number; + radiusY?: number; + rotationAngle?: number; + screenX?: number; + screenY?: number; + target: EventTarget; + touchType?: TouchType; +} + +interface TrackEventInit extends EventInit { + track?: TextTrack | null; +} + +interface Transformer { + flush?: TransformerFlushCallback; + readableType?: undefined; + start?: TransformerStartCallback; + transform?: TransformerTransformCallback; + writableType?: undefined; +} + +interface TransitionEventInit extends EventInit { + elapsedTime?: number; + propertyName?: string; + pseudoElement?: string; +} + +interface UIEventInit extends EventInit { + detail?: number; + view?: Window | null; + /** @deprecated */ + which?: number; +} + +interface ULongRange { + max?: number; + min?: number; +} + +interface UnderlyingByteSource { + autoAllocateChunkSize?: number; + cancel?: UnderlyingSourceCancelCallback; + pull?: (controller: ReadableByteStreamController) => void | PromiseLike; + start?: (controller: ReadableByteStreamController) => any; + type: "bytes"; +} + +interface UnderlyingDefaultSource { + cancel?: UnderlyingSourceCancelCallback; + pull?: (controller: ReadableStreamDefaultController) => void | PromiseLike; + start?: (controller: ReadableStreamDefaultController) => any; + type?: undefined; +} + +interface UnderlyingSink { + abort?: UnderlyingSinkAbortCallback; + close?: UnderlyingSinkCloseCallback; + start?: UnderlyingSinkStartCallback; + type?: undefined; + write?: UnderlyingSinkWriteCallback; +} + +interface UnderlyingSource { + autoAllocateChunkSize?: number; + cancel?: UnderlyingSourceCancelCallback; + pull?: UnderlyingSourcePullCallback; + start?: UnderlyingSourceStartCallback; + type?: ReadableStreamType; +} + +interface ValidityStateFlags { + badInput?: boolean; + customError?: boolean; + patternMismatch?: boolean; + rangeOverflow?: boolean; + rangeUnderflow?: boolean; + stepMismatch?: boolean; + tooLong?: boolean; + tooShort?: boolean; + typeMismatch?: boolean; + valueMissing?: boolean; +} + +interface VideoColorSpaceInit { + fullRange?: boolean | null; + matrix?: VideoMatrixCoefficients | null; + primaries?: VideoColorPrimaries | null; + transfer?: VideoTransferCharacteristics | null; +} + +interface VideoConfiguration { + bitrate: number; + colorGamut?: ColorGamut; + contentType: string; + framerate: number; + hdrMetadataType?: HdrMetadataType; + height: number; + scalabilityMode?: string; + transferFunction?: TransferFunction; + width: number; +} + +interface VideoDecoderConfig { + codec: string; + codedHeight?: number; + codedWidth?: number; + colorSpace?: VideoColorSpaceInit; + description?: AllowSharedBufferSource; + displayAspectHeight?: number; + displayAspectWidth?: number; + hardwareAcceleration?: HardwareAcceleration; + optimizeForLatency?: boolean; +} + +interface VideoDecoderInit { + error: WebCodecsErrorCallback; + output: VideoFrameOutputCallback; +} + +interface VideoDecoderSupport { + config?: VideoDecoderConfig; + supported?: boolean; +} + +interface VideoEncoderConfig { + alpha?: AlphaOption; + avc?: AvcEncoderConfig; + bitrate?: number; + bitrateMode?: VideoEncoderBitrateMode; + codec: string; + displayHeight?: number; + displayWidth?: number; + framerate?: number; + hardwareAcceleration?: HardwareAcceleration; + height: number; + latencyMode?: LatencyMode; + scalabilityMode?: string; + width: number; +} + +interface VideoEncoderEncodeOptions { + keyFrame?: boolean; +} + +interface VideoEncoderInit { + error: WebCodecsErrorCallback; + output: EncodedVideoChunkOutputCallback; +} + +interface VideoEncoderSupport { + config?: VideoEncoderConfig; + supported?: boolean; +} + +interface VideoFrameBufferInit { + codedHeight: number; + codedWidth: number; + colorSpace?: VideoColorSpaceInit; + displayHeight?: number; + displayWidth?: number; + duration?: number; + format: VideoPixelFormat; + layout?: PlaneLayout[]; + timestamp: number; + visibleRect?: DOMRectInit; +} + +interface VideoFrameCallbackMetadata { + captureTime?: DOMHighResTimeStamp; + expectedDisplayTime: DOMHighResTimeStamp; + height: number; + mediaTime: number; + presentationTime: DOMHighResTimeStamp; + presentedFrames: number; + processingDuration?: number; + receiveTime?: DOMHighResTimeStamp; + rtpTimestamp?: number; + width: number; +} + +interface VideoFrameCopyToOptions { + layout?: PlaneLayout[]; + rect?: DOMRectInit; +} + +interface VideoFrameInit { + alpha?: AlphaOption; + displayHeight?: number; + displayWidth?: number; + duration?: number; + timestamp?: number; + visibleRect?: DOMRectInit; +} + +interface WaveShaperOptions extends AudioNodeOptions { + curve?: number[] | Float32Array; + oversample?: OverSampleType; +} + +interface WebGLContextAttributes { + alpha?: boolean; + antialias?: boolean; + depth?: boolean; + desynchronized?: boolean; + failIfMajorPerformanceCaveat?: boolean; + powerPreference?: WebGLPowerPreference; + premultipliedAlpha?: boolean; + preserveDrawingBuffer?: boolean; + stencil?: boolean; +} + +interface WebGLContextEventInit extends EventInit { + statusMessage?: string; +} + +interface WebTransportCloseInfo { + closeCode?: number; + reason?: string; +} + +interface WebTransportErrorOptions { + source?: WebTransportErrorSource; + streamErrorCode?: number | null; +} + +interface WebTransportHash { + algorithm?: string; + value?: BufferSource; +} + +interface WebTransportOptions { + allowPooling?: boolean; + congestionControl?: WebTransportCongestionControl; + requireUnreliable?: boolean; + serverCertificateHashes?: WebTransportHash[]; +} + +interface WebTransportSendStreamOptions { + sendOrder?: number; +} + +interface WheelEventInit extends MouseEventInit { + deltaMode?: number; + deltaX?: number; + deltaY?: number; + deltaZ?: number; +} + +interface WindowPostMessageOptions extends StructuredSerializeOptions { + targetOrigin?: string; +} + +interface WorkerOptions { + credentials?: RequestCredentials; + name?: string; + type?: WorkerType; +} + +interface WorkletOptions { + credentials?: RequestCredentials; +} + +interface WriteParams { + data?: BufferSource | Blob | string | null; + position?: number | null; + size?: number | null; + type: WriteCommandType; +} + +type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; }; + +declare var NodeFilter: { + readonly FILTER_ACCEPT: 1; + readonly FILTER_REJECT: 2; + readonly FILTER_SKIP: 3; + readonly SHOW_ALL: 0xFFFFFFFF; + readonly SHOW_ELEMENT: 0x1; + readonly SHOW_ATTRIBUTE: 0x2; + readonly SHOW_TEXT: 0x4; + readonly SHOW_CDATA_SECTION: 0x8; + readonly SHOW_ENTITY_REFERENCE: 0x10; + readonly SHOW_ENTITY: 0x20; + readonly SHOW_PROCESSING_INSTRUCTION: 0x40; + readonly SHOW_COMMENT: 0x80; + readonly SHOW_DOCUMENT: 0x100; + readonly SHOW_DOCUMENT_TYPE: 0x200; + readonly SHOW_DOCUMENT_FRAGMENT: 0x400; + readonly SHOW_NOTATION: 0x800; +}; + +type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; }; + +/** + * The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays) + */ +interface ANGLE_instanced_arrays { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */ + drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */ + drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */ + vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; + readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; +} + +interface ARIAMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */ + ariaAtomic: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ + ariaAutoComplete: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ + ariaBusy: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */ + ariaChecked: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */ + ariaColCount: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */ + ariaColIndex: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */ + ariaColSpan: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ + ariaCurrent: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */ + ariaDescription: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */ + ariaDisabled: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */ + ariaExpanded: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */ + ariaHasPopup: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */ + ariaHidden: string | null; + ariaInvalid: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */ + ariaKeyShortcuts: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */ + ariaLabel: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */ + ariaLevel: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */ + ariaLive: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */ + ariaModal: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */ + ariaMultiLine: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */ + ariaMultiSelectable: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */ + ariaOrientation: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */ + ariaPlaceholder: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */ + ariaPosInSet: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */ + ariaPressed: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ + ariaReadOnly: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ + ariaRequired: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ + ariaRoleDescription: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */ + ariaRowCount: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */ + ariaRowIndex: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */ + ariaRowSpan: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */ + ariaSelected: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */ + ariaSetSize: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */ + ariaSort: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */ + ariaValueMax: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */ + ariaValueMin: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */ + ariaValueNow: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */ + ariaValueText: string | null; + role: string | null; +} + +/** + * A controller object that allows you to abort one or more DOM requests as and when desired. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) + */ +interface AbortController { + /** + * Returns the AbortSignal object associated with this object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) + */ + readonly signal: AbortSignal; + /** + * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) + */ + abort(reason?: any): void; +} + +declare var AbortController: { + prototype: AbortController; + new(): AbortController; +}; + +interface AbortSignalEventMap { + "abort": Event; +} + +/** + * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) + */ +interface AbortSignal extends EventTarget { + /** + * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) + */ + readonly aborted: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ + onabort: ((this: AbortSignal, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */ + readonly reason: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */ + throwIfAborted(): void; + addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AbortSignal: { + prototype: AbortSignal; + new(): AbortSignal; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ + abort(reason?: any): AbortSignal; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ + timeout(milliseconds: number): AbortSignal; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */ +interface AbstractRange { + /** + * Returns true if range is collapsed, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) + */ + readonly collapsed: boolean; + /** + * Returns range's end node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) + */ + readonly endContainer: Node; + /** + * Returns range's end offset. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) + */ + readonly endOffset: number; + /** + * Returns range's start node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) + */ + readonly startContainer: Node; + /** + * Returns range's start offset. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) + */ + readonly startOffset: number; +} + +declare var AbstractRange: { + prototype: AbstractRange; + new(): AbstractRange; +}; + +interface AbstractWorkerEventMap { + "error": ErrorEvent; +} + +interface AbstractWorker { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */ + onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; + addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** + * A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode) + */ +interface AnalyserNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */ + fftSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */ + readonly frequencyBinCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */ + maxDecibels: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */ + minDecibels: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */ + smoothingTimeConstant: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */ + getByteFrequencyData(array: Uint8Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */ + getByteTimeDomainData(array: Uint8Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */ + getFloatFrequencyData(array: Float32Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */ + getFloatTimeDomainData(array: Float32Array): void; +} + +declare var AnalyserNode: { + prototype: AnalyserNode; + new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; +}; + +interface Animatable { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */ + animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */ + getAnimations(options?: GetAnimationsOptions): Animation[]; +} + +interface AnimationEventMap { + "cancel": AnimationPlaybackEvent; + "finish": AnimationPlaybackEvent; + "remove": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */ +interface Animation extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */ + currentTime: CSSNumberish | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */ + effect: AnimationEffect | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */ + readonly finished: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */ + id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */ + oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ + onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ + onremove: ((this: Animation, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ + readonly pending: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ + readonly playState: AnimationPlayState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */ + playbackRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */ + readonly replaceState: AnimationReplaceState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */ + startTime: CSSNumberish | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */ + timeline: AnimationTimeline | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */ + cancel(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */ + commitStyles(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */ + finish(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */ + pause(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */ + persist(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */ + play(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */ + reverse(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */ + updatePlaybackRate(playbackRate: number): void; + addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Animation: { + prototype: Animation; + new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */ +interface AnimationEffect { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */ + getComputedTiming(): ComputedEffectTiming; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */ + getTiming(): EffectTiming; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */ + updateTiming(timing?: OptionalEffectTiming): void; +} + +declare var AnimationEffect: { + prototype: AnimationEffect; + new(): AnimationEffect; +}; + +/** + * Events providing information related to animations. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) + */ +interface AnimationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */ + readonly animationName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */ + readonly elapsedTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */ + readonly pseudoElement: string; +} + +declare var AnimationEvent: { + prototype: AnimationEvent; + new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; +}; + +interface AnimationFrameProvider { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ + cancelAnimationFrame(handle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ + requestAnimationFrame(callback: FrameRequestCallback): number; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */ +interface AnimationPlaybackEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */ + readonly currentTime: CSSNumberish | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */ + readonly timelineTime: CSSNumberish | null; +} + +declare var AnimationPlaybackEvent: { + prototype: AnimationPlaybackEvent; + new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ +interface AnimationTimeline { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ + readonly currentTime: CSSNumberish | null; +} + +declare var AnimationTimeline: { + prototype: AnimationTimeline; + new(): AnimationTimeline; +}; + +/** + * A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr) + */ +interface Attr extends Node { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */ + readonly localName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */ + readonly namespaceURI: string | null; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */ + readonly ownerElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */ + readonly prefix: string | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified) + */ + readonly specified: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */ + value: string; +} + +declare var Attr: { + prototype: Attr; + new(): Attr; +}; + +/** + * A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer) + */ +interface AudioBuffer { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */ + readonly duration: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */ + readonly numberOfChannels: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */ + readonly sampleRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */ + copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */ + copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */ + getChannelData(channel: number): Float32Array; +} + +declare var AudioBuffer: { + prototype: AudioBuffer; + new(options: AudioBufferOptions): AudioBuffer; +}; + +/** + * An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode) + */ +interface AudioBufferSourceNode extends AudioScheduledSourceNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */ + buffer: AudioBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */ + readonly detune: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */ + loop: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */ + loopEnd: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */ + loopStart: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */ + readonly playbackRate: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */ + start(when?: number, offset?: number, duration?: number): void; + addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioBufferSourceNode: { + prototype: AudioBufferSourceNode; + new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; +}; + +/** + * An audio-processing graph built from audio modules linked together, each represented by an AudioNode. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext) + */ +interface AudioContext extends BaseAudioContext { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */ + readonly baseLatency: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */ + readonly outputLatency: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */ + close(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */ + createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */ + createMediaStreamDestination(): MediaStreamAudioDestinationNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */ + createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */ + getOutputTimestamp(): AudioTimestamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */ + resume(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */ + suspend(): Promise; + addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioContext: { + prototype: AudioContext; + new(contextOptions?: AudioContextOptions): AudioContext; +}; + +/** + * AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode) + */ +interface AudioDestinationNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */ + readonly maxChannelCount: number; +} + +declare var AudioDestinationNode: { + prototype: AudioDestinationNode; + new(): AudioDestinationNode; +}; + +/** + * The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener) + */ +interface AudioListener { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */ + readonly forwardX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */ + readonly forwardY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */ + readonly forwardZ: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */ + readonly positionX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */ + readonly positionY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */ + readonly positionZ: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */ + readonly upX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */ + readonly upY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */ + readonly upZ: AudioParam; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation) + */ + setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition) + */ + setPosition(x: number, y: number, z: number): void; +} + +declare var AudioListener: { + prototype: AudioListener; + new(): AudioListener; +}; + +/** + * A generic interface for representing an audio processing module. Examples include: + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode) + */ +interface AudioNode extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */ + channelCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */ + channelCountMode: ChannelCountMode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */ + channelInterpretation: ChannelInterpretation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ + readonly context: BaseAudioContext; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */ + readonly numberOfInputs: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */ + readonly numberOfOutputs: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */ + connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode; + connect(destinationParam: AudioParam, output?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */ + disconnect(): void; + disconnect(output: number): void; + disconnect(destinationNode: AudioNode): void; + disconnect(destinationNode: AudioNode, output: number): void; + disconnect(destinationNode: AudioNode, output: number, input: number): void; + disconnect(destinationParam: AudioParam): void; + disconnect(destinationParam: AudioParam, output: number): void; +} + +declare var AudioNode: { + prototype: AudioNode; + new(): AudioNode; +}; + +/** + * The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam) + */ +interface AudioParam { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */ + automationRate: AutomationRate; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ + readonly defaultValue: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */ + readonly maxValue: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */ + readonly minValue: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */ + value: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */ + cancelAndHoldAtTime(cancelTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */ + cancelScheduledValues(cancelTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */ + exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */ + linearRampToValueAtTime(value: number, endTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */ + setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */ + setValueAtTime(value: number, startTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ + setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; +} + +declare var AudioParam: { + prototype: AudioParam; + new(): AudioParam; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ +interface AudioParamMap { + forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; +} + +declare var AudioParamMap: { + prototype: AudioParamMap; + new(): AudioParamMap; +}; + +/** + * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. + * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent) + */ +interface AudioProcessingEvent extends Event { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer) + */ + readonly inputBuffer: AudioBuffer; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer) + */ + readonly outputBuffer: AudioBuffer; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime) + */ + readonly playbackTime: number; +} + +/** @deprecated */ +declare var AudioProcessingEvent: { + prototype: AudioProcessingEvent; + new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; +}; + +interface AudioScheduledSourceNodeEventMap { + "ended": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */ +interface AudioScheduledSourceNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */ + onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */ + start(when?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */ + stop(when?: number): void; + addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioScheduledSourceNode: { + prototype: AudioScheduledSourceNode; + new(): AudioScheduledSourceNode; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet) + */ +interface AudioWorklet extends Worklet { +} + +declare var AudioWorklet: { + prototype: AudioWorklet; + new(): AudioWorklet; +}; + +interface AudioWorkletNodeEventMap { + "processorerror": Event; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode) + */ +interface AudioWorkletNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ + onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ + readonly parameters: AudioParamMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */ + readonly port: MessagePort; + addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var AudioWorkletNode: { + prototype: AudioWorkletNode; + new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse) + */ +interface AuthenticatorAssertionResponse extends AuthenticatorResponse { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */ + readonly authenticatorData: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */ + readonly signature: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */ + readonly userHandle: ArrayBuffer | null; +} + +declare var AuthenticatorAssertionResponse: { + prototype: AuthenticatorAssertionResponse; + new(): AuthenticatorAssertionResponse; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse) + */ +interface AuthenticatorAttestationResponse extends AuthenticatorResponse { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ + readonly attestationObject: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ + getAuthenticatorData(): ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ + getPublicKey(): ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ + getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ + getTransports(): string[]; +} + +declare var AuthenticatorAttestationResponse: { + prototype: AuthenticatorAttestationResponse; + new(): AuthenticatorAttestationResponse; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse) + */ +interface AuthenticatorResponse { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */ + readonly clientDataJSON: ArrayBuffer; +} + +declare var AuthenticatorResponse: { + prototype: AuthenticatorResponse; + new(): AuthenticatorResponse; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */ +interface BarProp { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */ + readonly visible: boolean; +} + +declare var BarProp: { + prototype: BarProp; + new(): BarProp; +}; + +interface BaseAudioContextEventMap { + "statechange": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */ +interface BaseAudioContext extends EventTarget { + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet) + */ + readonly audioWorklet: AudioWorklet; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */ + readonly currentTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ + readonly destination: AudioDestinationNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */ + readonly listener: AudioListener; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */ + onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */ + readonly sampleRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */ + readonly state: AudioContextState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */ + createAnalyser(): AnalyserNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */ + createBiquadFilter(): BiquadFilterNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */ + createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */ + createBufferSource(): AudioBufferSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */ + createChannelMerger(numberOfInputs?: number): ChannelMergerNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */ + createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */ + createConstantSource(): ConstantSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */ + createConvolver(): ConvolverNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */ + createDelay(maxDelayTime?: number): DelayNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */ + createDynamicsCompressor(): DynamicsCompressorNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */ + createGain(): GainNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ + createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */ + createOscillator(): OscillatorNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */ + createPanner(): PannerNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ + createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor) + */ + createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */ + createStereoPanner(): StereoPannerNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */ + createWaveShaper(): WaveShaperNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */ + decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise; + addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var BaseAudioContext: { + prototype: BaseAudioContext; + new(): BaseAudioContext; +}; + +/** + * The beforeunload event is fired when the window, the document and its resources are about to be unloaded. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) + */ +interface BeforeUnloadEvent extends Event { + /** @deprecated */ + returnValue: any; +} + +declare var BeforeUnloadEvent: { + prototype: BeforeUnloadEvent; + new(): BeforeUnloadEvent; +}; + +/** + * A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode) + */ +interface BiquadFilterNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */ + readonly Q: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */ + readonly detune: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */ + readonly frequency: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */ + readonly gain: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */ + type: BiquadFilterType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */ + getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; +} + +declare var BiquadFilterNode: { + prototype: BiquadFilterNode; + new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode; +}; + +/** + * A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) + */ +interface Blob { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ + arrayBuffer(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ + slice(start?: number, end?: number, contentType?: string): Blob; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ + stream(): ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ + text(): Promise; +} + +declare var Blob: { + prototype: Blob; + new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */ +interface BlobEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */ + readonly data: Blob; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */ + readonly timecode: DOMHighResTimeStamp; +} + +declare var BlobEvent: { + prototype: BlobEvent; + new(type: string, eventInitDict: BlobEventInit): BlobEvent; +}; + +interface Body { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ + readonly body: ReadableStream | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ + readonly bodyUsed: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ + arrayBuffer(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ + blob(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ + formData(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ + json(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ + text(): Promise; +} + +interface BroadcastChannelEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */ +interface BroadcastChannel extends EventTarget { + /** + * Returns the channel name (as passed to the constructor). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name) + */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */ + onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */ + onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; + /** + * Closes the BroadcastChannel object, opening it up to garbage collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close) + */ + close(): void; + /** + * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage) + */ + postMessage(message: any): void; + addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var BroadcastChannel: { + prototype: BroadcastChannel; + new(name: string): BroadcastChannel; +}; + +/** + * This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) + */ +interface ByteLengthQueuingStrategy extends QueuingStrategy { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */ + readonly highWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ + readonly size: QueuingStrategySize; +} + +declare var ByteLengthQueuingStrategy: { + prototype: ByteLengthQueuingStrategy; + new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; +}; + +/** + * A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection) + */ +interface CDATASection extends Text { +} + +declare var CDATASection: { + prototype: CDATASection; + new(): CDATASection; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */ +interface CSSAnimation extends Animation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */ + readonly animationName: string; + addEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var CSSAnimation: { + prototype: CSSAnimation; + new(): CSSAnimation; +}; + +/** + * A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule) + */ +interface CSSConditionRule extends CSSGroupingRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */ + readonly conditionText: string; +} + +declare var CSSConditionRule: { + prototype: CSSConditionRule; + new(): CSSConditionRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ +interface CSSContainerRule extends CSSConditionRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */ + readonly containerName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */ + readonly containerQuery: string; +} + +declare var CSSContainerRule: { + prototype: CSSContainerRule; + new(): CSSContainerRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */ +interface CSSCounterStyleRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */ + additiveSymbols: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */ + fallback: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */ + negative: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */ + pad: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */ + prefix: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */ + range: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */ + speakAs: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */ + suffix: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */ + symbols: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */ + system: string; +} + +declare var CSSCounterStyleRule: { + prototype: CSSCounterStyleRule; + new(): CSSCounterStyleRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ +interface CSSFontFaceRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ + readonly style: CSSStyleDeclaration; +} + +declare var CSSFontFaceRule: { + prototype: CSSFontFaceRule; + new(): CSSFontFaceRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */ +interface CSSFontFeatureValuesRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ + fontFamily: string; +} + +declare var CSSFontFeatureValuesRule: { + prototype: CSSFontFeatureValuesRule; + new(): CSSFontFeatureValuesRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */ +interface CSSFontPaletteValuesRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */ + readonly basePalette: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */ + readonly fontFamily: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */ + readonly overrideColors: string; +} + +declare var CSSFontPaletteValuesRule: { + prototype: CSSFontPaletteValuesRule; + new(): CSSFontPaletteValuesRule; +}; + +/** + * Any CSS at-rule that contains other rules nested within it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule) + */ +interface CSSGroupingRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */ + readonly cssRules: CSSRuleList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */ + deleteRule(index: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ + insertRule(rule: string, index?: number): number; +} + +declare var CSSGroupingRule: { + prototype: CSSGroupingRule; + new(): CSSGroupingRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */ +interface CSSImageValue extends CSSStyleValue { +} + +declare var CSSImageValue: { + prototype: CSSImageValue; + new(): CSSImageValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */ +interface CSSImportRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */ + readonly href: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ + readonly layerName: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ + readonly media: MediaList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ + readonly styleSheet: CSSStyleSheet | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ + readonly supportsText: string | null; +} + +declare var CSSImportRule: { + prototype: CSSImportRule; + new(): CSSImportRule; +}; + +/** + * An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule) + */ +interface CSSKeyframeRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ + keyText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ + readonly style: CSSStyleDeclaration; +} + +declare var CSSKeyframeRule: { + prototype: CSSKeyframeRule; + new(): CSSKeyframeRule; +}; + +/** + * An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule) + */ +interface CSSKeyframesRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ + readonly cssRules: CSSRuleList; + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ + appendRule(rule: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */ + deleteRule(select: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */ + findRule(select: string): CSSKeyframeRule | null; + [index: number]: CSSKeyframeRule; +} + +declare var CSSKeyframesRule: { + prototype: CSSKeyframesRule; + new(): CSSKeyframesRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */ +interface CSSKeywordValue extends CSSStyleValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */ + value: string; +} + +declare var CSSKeywordValue: { + prototype: CSSKeywordValue; + new(value: string): CSSKeywordValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */ +interface CSSLayerBlockRule extends CSSGroupingRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */ + readonly name: string; +} + +declare var CSSLayerBlockRule: { + prototype: CSSLayerBlockRule; + new(): CSSLayerBlockRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */ +interface CSSLayerStatementRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */ + readonly nameList: ReadonlyArray; +} + +declare var CSSLayerStatementRule: { + prototype: CSSLayerStatementRule; + new(): CSSLayerStatementRule; +}; + +interface CSSMathClamp extends CSSMathValue { + readonly lower: CSSNumericValue; + readonly upper: CSSNumericValue; + readonly value: CSSNumericValue; +} + +declare var CSSMathClamp: { + prototype: CSSMathClamp; + new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ +interface CSSMathInvert extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */ + readonly value: CSSNumericValue; +} + +declare var CSSMathInvert: { + prototype: CSSMathInvert; + new(arg: CSSNumberish): CSSMathInvert; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */ +interface CSSMathMax extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */ + readonly values: CSSNumericArray; +} + +declare var CSSMathMax: { + prototype: CSSMathMax; + new(...args: CSSNumberish[]): CSSMathMax; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */ +interface CSSMathMin extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */ + readonly values: CSSNumericArray; +} + +declare var CSSMathMin: { + prototype: CSSMathMin; + new(...args: CSSNumberish[]): CSSMathMin; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */ +interface CSSMathNegate extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */ + readonly value: CSSNumericValue; +} + +declare var CSSMathNegate: { + prototype: CSSMathNegate; + new(arg: CSSNumberish): CSSMathNegate; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */ +interface CSSMathProduct extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */ + readonly values: CSSNumericArray; +} + +declare var CSSMathProduct: { + prototype: CSSMathProduct; + new(...args: CSSNumberish[]): CSSMathProduct; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */ +interface CSSMathSum extends CSSMathValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */ + readonly values: CSSNumericArray; +} + +declare var CSSMathSum: { + prototype: CSSMathSum; + new(...args: CSSNumberish[]): CSSMathSum; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */ +interface CSSMathValue extends CSSNumericValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */ + readonly operator: CSSMathOperator; +} + +declare var CSSMathValue: { + prototype: CSSMathValue; + new(): CSSMathValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */ +interface CSSMatrixComponent extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */ + matrix: DOMMatrix; +} + +declare var CSSMatrixComponent: { + prototype: CSSMatrixComponent; + new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent; +}; + +/** + * A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule) + */ +interface CSSMediaRule extends CSSConditionRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ + readonly media: MediaList; +} + +declare var CSSMediaRule: { + prototype: CSSMediaRule; + new(): CSSMediaRule; +}; + +/** + * An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule) + */ +interface CSSNamespaceRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */ + readonly namespaceURI: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */ + readonly prefix: string; +} + +declare var CSSNamespaceRule: { + prototype: CSSNamespaceRule; + new(): CSSNamespaceRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ +interface CSSNumericArray { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ + readonly length: number; + forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void; + [index: number]: CSSNumericValue; +} + +declare var CSSNumericArray: { + prototype: CSSNumericArray; + new(): CSSNumericArray; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */ +interface CSSNumericValue extends CSSStyleValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */ + add(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */ + div(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */ + equals(...value: CSSNumberish[]): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */ + max(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */ + min(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */ + mul(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */ + sub(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */ + to(unit: string): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */ + toSum(...units: string[]): CSSMathSum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */ + type(): CSSNumericType; +} + +declare var CSSNumericValue: { + prototype: CSSNumericValue; + new(): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ + parse(cssText: string): CSSNumericValue; +}; + +/** + * CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule) + */ +interface CSSPageRule extends CSSGroupingRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ + selectorText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ + readonly style: CSSStyleDeclaration; +} + +declare var CSSPageRule: { + prototype: CSSPageRule; + new(): CSSPageRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */ +interface CSSPerspective extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */ + length: CSSPerspectiveValue; +} + +declare var CSSPerspective: { + prototype: CSSPerspective; + new(length: CSSPerspectiveValue): CSSPerspective; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */ +interface CSSPropertyRule extends CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */ + readonly inherits: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */ + readonly initialValue: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */ + readonly syntax: string; +} + +declare var CSSPropertyRule: { + prototype: CSSPropertyRule; + new(): CSSPropertyRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */ +interface CSSRotate extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */ + angle: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */ + x: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */ + y: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */ + z: CSSNumberish; +} + +declare var CSSRotate: { + prototype: CSSRotate; + new(angle: CSSNumericValue): CSSRotate; + new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate; +}; + +/** + * A single CSS rule. There are several types of rules, listed in the Type constants section below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule) + */ +interface CSSRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */ + cssText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */ + readonly parentRule: CSSRule | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */ + readonly parentStyleSheet: CSSStyleSheet | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type) + */ + readonly type: number; + readonly STYLE_RULE: 1; + readonly CHARSET_RULE: 2; + readonly IMPORT_RULE: 3; + readonly MEDIA_RULE: 4; + readonly FONT_FACE_RULE: 5; + readonly PAGE_RULE: 6; + readonly NAMESPACE_RULE: 10; + readonly KEYFRAMES_RULE: 7; + readonly KEYFRAME_RULE: 8; + readonly SUPPORTS_RULE: 12; + readonly COUNTER_STYLE_RULE: 11; + readonly FONT_FEATURE_VALUES_RULE: 14; +} + +declare var CSSRule: { + prototype: CSSRule; + new(): CSSRule; + readonly STYLE_RULE: 1; + readonly CHARSET_RULE: 2; + readonly IMPORT_RULE: 3; + readonly MEDIA_RULE: 4; + readonly FONT_FACE_RULE: 5; + readonly PAGE_RULE: 6; + readonly NAMESPACE_RULE: 10; + readonly KEYFRAMES_RULE: 7; + readonly KEYFRAME_RULE: 8; + readonly SUPPORTS_RULE: 12; + readonly COUNTER_STYLE_RULE: 11; + readonly FONT_FEATURE_VALUES_RULE: 14; +}; + +/** + * A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList) + */ +interface CSSRuleList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */ + item(index: number): CSSRule | null; + [index: number]: CSSRule; +} + +declare var CSSRuleList: { + prototype: CSSRuleList; + new(): CSSRuleList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */ +interface CSSScale extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */ + x: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */ + y: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */ + z: CSSNumberish; +} + +declare var CSSScale: { + prototype: CSSScale; + new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */ +interface CSSSkew extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ + ax: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */ + ay: CSSNumericValue; +} + +declare var CSSSkew: { + prototype: CSSSkew; + new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */ +interface CSSSkewX extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */ + ax: CSSNumericValue; +} + +declare var CSSSkewX: { + prototype: CSSSkewX; + new(ax: CSSNumericValue): CSSSkewX; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */ +interface CSSSkewY extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */ + ay: CSSNumericValue; +} + +declare var CSSSkewY: { + prototype: CSSSkewY; + new(ay: CSSNumericValue): CSSSkewY; +}; + +/** + * An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) + */ +interface CSSStyleDeclaration { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ + accentColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ + alignContent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ + alignItems: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ + alignSelf: string; + alignmentBaseline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ + all: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ + animation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */ + animationComposition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ + animationDelay: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ + animationDirection: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ + animationDuration: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ + animationFillMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ + animationIterationCount: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ + animationName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ + animationPlayState: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ + animationTimingFunction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ + appearance: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */ + aspectRatio: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */ + backdropFilter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ + backfaceVisibility: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */ + background: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */ + backgroundAttachment: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */ + backgroundBlendMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ + backgroundClip: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */ + backgroundColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */ + backgroundImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ + backgroundOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */ + backgroundPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */ + backgroundPositionX: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */ + backgroundPositionY: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */ + backgroundRepeat: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ + backgroundSize: string; + baselineShift: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */ + baselineSource: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ + blockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */ + border: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */ + borderBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */ + borderBlockColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */ + borderBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */ + borderBlockEndColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */ + borderBlockEndStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */ + borderBlockEndWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */ + borderBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */ + borderBlockStartColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */ + borderBlockStartStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */ + borderBlockStartWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */ + borderBlockStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */ + borderBlockWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */ + borderBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */ + borderBottomColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ + borderBottomLeftRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ + borderBottomRightRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */ + borderBottomStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */ + borderBottomWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */ + borderCollapse: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */ + borderColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */ + borderEndEndRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */ + borderEndStartRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */ + borderImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */ + borderImageOutset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */ + borderImageRepeat: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */ + borderImageSlice: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */ + borderImageSource: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */ + borderImageWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */ + borderInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */ + borderInlineColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */ + borderInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */ + borderInlineEndColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */ + borderInlineEndStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */ + borderInlineEndWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */ + borderInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */ + borderInlineStartColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */ + borderInlineStartStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */ + borderInlineStartWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */ + borderInlineStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */ + borderInlineWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */ + borderLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */ + borderLeftColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */ + borderLeftStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */ + borderLeftWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ + borderRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */ + borderRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */ + borderRightColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */ + borderRightStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */ + borderRightWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */ + borderSpacing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */ + borderStartEndRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */ + borderStartStartRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */ + borderStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */ + borderTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */ + borderTopColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ + borderTopLeftRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ + borderTopRightRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */ + borderTopStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */ + borderTopWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */ + borderWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ + bottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ + boxShadow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ + boxSizing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */ + breakAfter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */ + breakBefore: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */ + breakInside: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */ + captionSide: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */ + caretColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */ + clear: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip) + */ + clip: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */ + clipPath: string; + clipRule: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ + color: string; + colorInterpolation: string; + colorInterpolationFilters: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ + colorScheme: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */ + columnCount: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */ + columnFill: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */ + columnGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */ + columnRule: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */ + columnRuleColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */ + columnRuleStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */ + columnRuleWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */ + columnSpan: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */ + columnWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */ + columns: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */ + contain: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */ + containIntrinsicBlockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */ + containIntrinsicHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */ + containIntrinsicInlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */ + containIntrinsicSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */ + containIntrinsicWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */ + container: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */ + containerName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */ + containerType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */ + content: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */ + counterIncrement: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */ + counterReset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ + counterSet: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ + cssFloat: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */ + cssText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ + cursor: string; + cx: string; + cy: string; + d: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ + direction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ + display: string; + dominantBaseline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ + emptyCells: string; + fill: string; + fillOpacity: string; + fillRule: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ + filter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ + flex: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ + flexBasis: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ + flexDirection: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ + flexFlow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ + flexGrow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ + flexShrink: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ + flexWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ + float: string; + floodColor: string; + floodOpacity: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ + font: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */ + fontFamily: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */ + fontFeatureSettings: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */ + fontKerning: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */ + fontOpticalSizing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */ + fontPalette: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */ + fontSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */ + fontSizeAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */ + fontStretch: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */ + fontStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */ + fontSynthesis: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */ + fontSynthesisSmallCaps: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */ + fontSynthesisStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */ + fontSynthesisWeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */ + fontVariant: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */ + fontVariantAlternates: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */ + fontVariantCaps: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */ + fontVariantEastAsian: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */ + fontVariantLigatures: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */ + fontVariantNumeric: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */ + fontVariantPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */ + fontVariationSettings: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */ + fontWeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */ + forcedColorAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */ + gap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */ + grid: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */ + gridArea: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */ + gridAutoColumns: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */ + gridAutoFlow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */ + gridAutoRows: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */ + gridColumn: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */ + gridColumnEnd: string; + /** @deprecated This is a legacy alias of \`columnGap\`. */ + gridColumnGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */ + gridColumnStart: string; + /** @deprecated This is a legacy alias of \`gap\`. */ + gridGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */ + gridRow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */ + gridRowEnd: string; + /** @deprecated This is a legacy alias of \`rowGap\`. */ + gridRowGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */ + gridRowStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */ + gridTemplate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */ + gridTemplateAreas: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */ + gridTemplateColumns: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */ + gridTemplateRows: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */ + height: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */ + hyphenateCharacter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */ + hyphens: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation) + */ + imageOrientation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */ + imageRendering: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */ + inlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */ + inset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */ + insetBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */ + insetBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */ + insetBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */ + insetInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */ + insetInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */ + insetInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */ + isolation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ + justifyContent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */ + justifyItems: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */ + justifySelf: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */ + left: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ + letterSpacing: string; + lightingColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ + lineBreak: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */ + lineHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */ + listStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */ + listStyleImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */ + listStylePosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */ + listStyleType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */ + margin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */ + marginBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */ + marginBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */ + marginBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */ + marginBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */ + marginInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */ + marginInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */ + marginInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */ + marginLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */ + marginRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */ + marginTop: string; + marker: string; + markerEnd: string; + markerMid: string; + markerStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ + mask: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ + maskClip: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ + maskComposite: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ + maskImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */ + maskMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ + maskOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ + maskPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ + maskRepeat: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ + maskSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */ + maskType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */ + mathDepth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */ + mathStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */ + maxBlockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */ + maxHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */ + maxInlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */ + maxWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */ + minBlockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */ + minHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */ + minInlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */ + minWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */ + mixBlendMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */ + objectFit: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */ + objectPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */ + offset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */ + offsetAnchor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */ + offsetDistance: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */ + offsetPath: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */ + offsetPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */ + offsetRotate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */ + opacity: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ + order: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */ + orphans: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */ + outline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */ + outlineColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */ + outlineOffset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */ + outlineStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */ + outlineWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */ + overflow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */ + overflowAnchor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */ + overflowClipMargin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ + overflowWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */ + overflowX: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */ + overflowY: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */ + overscrollBehavior: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */ + overscrollBehaviorBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */ + overscrollBehaviorInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */ + overscrollBehaviorX: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */ + overscrollBehaviorY: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */ + padding: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */ + paddingBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */ + paddingBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */ + paddingBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */ + paddingBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */ + paddingInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */ + paddingInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */ + paddingInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */ + paddingLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */ + paddingRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */ + paddingTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ + page: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ + pageBreakAfter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ + pageBreakBefore: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ + pageBreakInside: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ + paintOrder: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */ + readonly parentRule: CSSRule | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ + perspective: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ + perspectiveOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */ + placeContent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */ + placeItems: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */ + placeSelf: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */ + pointerEvents: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */ + position: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */ + printColorAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ + quotes: string; + r: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ + resize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */ + right: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */ + rotate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */ + rowGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ + rubyPosition: string; + rx: string; + ry: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ + scale: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */ + scrollBehavior: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */ + scrollMargin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */ + scrollMarginBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */ + scrollMarginBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */ + scrollMarginBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */ + scrollMarginBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */ + scrollMarginInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */ + scrollMarginInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */ + scrollMarginInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */ + scrollMarginLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */ + scrollMarginRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */ + scrollMarginTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */ + scrollPadding: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */ + scrollPaddingBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */ + scrollPaddingBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */ + scrollPaddingBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */ + scrollPaddingBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */ + scrollPaddingInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */ + scrollPaddingInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */ + scrollPaddingInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */ + scrollPaddingLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */ + scrollPaddingRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */ + scrollPaddingTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */ + scrollSnapAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */ + scrollSnapStop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */ + scrollSnapType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */ + scrollbarColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */ + scrollbarGutter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */ + scrollbarWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */ + shapeImageThreshold: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */ + shapeMargin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */ + shapeOutside: string; + shapeRendering: string; + stopColor: string; + stopOpacity: string; + stroke: string; + strokeDasharray: string; + strokeDashoffset: string; + strokeLinecap: string; + strokeLinejoin: string; + strokeMiterlimit: string; + strokeOpacity: string; + strokeWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */ + tabSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */ + tableLayout: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */ + textAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */ + textAlignLast: string; + textAnchor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ + textCombineUpright: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ + textDecoration: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */ + textDecorationColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */ + textDecorationLine: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */ + textDecorationSkipInk: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */ + textDecorationStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */ + textDecorationThickness: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */ + textEmphasis: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */ + textEmphasisColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */ + textEmphasisPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */ + textEmphasisStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */ + textIndent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */ + textOrientation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */ + textOverflow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */ + textRendering: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */ + textShadow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */ + textTransform: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */ + textUnderlineOffset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */ + textUnderlinePosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ + textWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ + top: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ + touchAction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ + transform: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */ + transformBox: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ + transformOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ + transformStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ + transition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ + transitionDelay: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ + transitionDuration: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ + transitionProperty: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ + transitionTimingFunction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */ + translate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */ + unicodeBidi: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ + userSelect: string; + vectorEffect: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ + verticalAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ + visibility: string; + /** + * @deprecated This is a legacy alias of \`alignContent\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) + */ + webkitAlignContent: string; + /** + * @deprecated This is a legacy alias of \`alignItems\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) + */ + webkitAlignItems: string; + /** + * @deprecated This is a legacy alias of \`alignSelf\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) + */ + webkitAlignSelf: string; + /** + * @deprecated This is a legacy alias of \`animation\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) + */ + webkitAnimation: string; + /** + * @deprecated This is a legacy alias of \`animationDelay\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) + */ + webkitAnimationDelay: string; + /** + * @deprecated This is a legacy alias of \`animationDirection\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) + */ + webkitAnimationDirection: string; + /** + * @deprecated This is a legacy alias of \`animationDuration\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) + */ + webkitAnimationDuration: string; + /** + * @deprecated This is a legacy alias of \`animationFillMode\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) + */ + webkitAnimationFillMode: string; + /** + * @deprecated This is a legacy alias of \`animationIterationCount\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) + */ + webkitAnimationIterationCount: string; + /** + * @deprecated This is a legacy alias of \`animationName\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) + */ + webkitAnimationName: string; + /** + * @deprecated This is a legacy alias of \`animationPlayState\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) + */ + webkitAnimationPlayState: string; + /** + * @deprecated This is a legacy alias of \`animationTimingFunction\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) + */ + webkitAnimationTimingFunction: string; + /** + * @deprecated This is a legacy alias of \`appearance\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) + */ + webkitAppearance: string; + /** + * @deprecated This is a legacy alias of \`backfaceVisibility\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) + */ + webkitBackfaceVisibility: string; + /** + * @deprecated This is a legacy alias of \`backgroundClip\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) + */ + webkitBackgroundClip: string; + /** + * @deprecated This is a legacy alias of \`backgroundOrigin\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) + */ + webkitBackgroundOrigin: string; + /** + * @deprecated This is a legacy alias of \`backgroundSize\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) + */ + webkitBackgroundSize: string; + /** + * @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) + */ + webkitBorderBottomLeftRadius: string; + /** + * @deprecated This is a legacy alias of \`borderBottomRightRadius\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) + */ + webkitBorderBottomRightRadius: string; + /** + * @deprecated This is a legacy alias of \`borderRadius\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) + */ + webkitBorderRadius: string; + /** + * @deprecated This is a legacy alias of \`borderTopLeftRadius\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) + */ + webkitBorderTopLeftRadius: string; + /** + * @deprecated This is a legacy alias of \`borderTopRightRadius\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) + */ + webkitBorderTopRightRadius: string; + /** + * @deprecated This is a legacy alias of \`boxAlign\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align) + */ + webkitBoxAlign: string; + /** + * @deprecated This is a legacy alias of \`boxFlex\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex) + */ + webkitBoxFlex: string; + /** + * @deprecated This is a legacy alias of \`boxOrdinalGroup\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group) + */ + webkitBoxOrdinalGroup: string; + /** + * @deprecated This is a legacy alias of \`boxOrient\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient) + */ + webkitBoxOrient: string; + /** + * @deprecated This is a legacy alias of \`boxPack\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack) + */ + webkitBoxPack: string; + /** + * @deprecated This is a legacy alias of \`boxShadow\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) + */ + webkitBoxShadow: string; + /** + * @deprecated This is a legacy alias of \`boxSizing\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) + */ + webkitBoxSizing: string; + /** + * @deprecated This is a legacy alias of \`filter\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) + */ + webkitFilter: string; + /** + * @deprecated This is a legacy alias of \`flex\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) + */ + webkitFlex: string; + /** + * @deprecated This is a legacy alias of \`flexBasis\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) + */ + webkitFlexBasis: string; + /** + * @deprecated This is a legacy alias of \`flexDirection\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) + */ + webkitFlexDirection: string; + /** + * @deprecated This is a legacy alias of \`flexFlow\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) + */ + webkitFlexFlow: string; + /** + * @deprecated This is a legacy alias of \`flexGrow\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) + */ + webkitFlexGrow: string; + /** + * @deprecated This is a legacy alias of \`flexShrink\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) + */ + webkitFlexShrink: string; + /** + * @deprecated This is a legacy alias of \`flexWrap\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) + */ + webkitFlexWrap: string; + /** + * @deprecated This is a legacy alias of \`justifyContent\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) + */ + webkitJustifyContent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */ + webkitLineClamp: string; + /** + * @deprecated This is a legacy alias of \`mask\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) + */ + webkitMask: string; + /** + * @deprecated This is a legacy alias of \`maskBorder\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border) + */ + webkitMaskBoxImage: string; + /** + * @deprecated This is a legacy alias of \`maskBorderOutset\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset) + */ + webkitMaskBoxImageOutset: string; + /** + * @deprecated This is a legacy alias of \`maskBorderRepeat\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat) + */ + webkitMaskBoxImageRepeat: string; + /** + * @deprecated This is a legacy alias of \`maskBorderSlice\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice) + */ + webkitMaskBoxImageSlice: string; + /** + * @deprecated This is a legacy alias of \`maskBorderSource\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source) + */ + webkitMaskBoxImageSource: string; + /** + * @deprecated This is a legacy alias of \`maskBorderWidth\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width) + */ + webkitMaskBoxImageWidth: string; + /** + * @deprecated This is a legacy alias of \`maskClip\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) + */ + webkitMaskClip: string; + /** + * @deprecated This is a legacy alias of \`maskComposite\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) + */ + webkitMaskComposite: string; + /** + * @deprecated This is a legacy alias of \`maskImage\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) + */ + webkitMaskImage: string; + /** + * @deprecated This is a legacy alias of \`maskOrigin\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) + */ + webkitMaskOrigin: string; + /** + * @deprecated This is a legacy alias of \`maskPosition\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) + */ + webkitMaskPosition: string; + /** + * @deprecated This is a legacy alias of \`maskRepeat\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) + */ + webkitMaskRepeat: string; + /** + * @deprecated This is a legacy alias of \`maskSize\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) + */ + webkitMaskSize: string; + /** + * @deprecated This is a legacy alias of \`order\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) + */ + webkitOrder: string; + /** + * @deprecated This is a legacy alias of \`perspective\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) + */ + webkitPerspective: string; + /** + * @deprecated This is a legacy alias of \`perspectiveOrigin\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) + */ + webkitPerspectiveOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */ + webkitTextFillColor: string; + /** + * @deprecated This is a legacy alias of \`textSizeAdjust\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust) + */ + webkitTextSizeAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */ + webkitTextStroke: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */ + webkitTextStrokeColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */ + webkitTextStrokeWidth: string; + /** + * @deprecated This is a legacy alias of \`transform\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) + */ + webkitTransform: string; + /** + * @deprecated This is a legacy alias of \`transformOrigin\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) + */ + webkitTransformOrigin: string; + /** + * @deprecated This is a legacy alias of \`transformStyle\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) + */ + webkitTransformStyle: string; + /** + * @deprecated This is a legacy alias of \`transition\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) + */ + webkitTransition: string; + /** + * @deprecated This is a legacy alias of \`transitionDelay\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) + */ + webkitTransitionDelay: string; + /** + * @deprecated This is a legacy alias of \`transitionDuration\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) + */ + webkitTransitionDuration: string; + /** + * @deprecated This is a legacy alias of \`transitionProperty\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) + */ + webkitTransitionProperty: string; + /** + * @deprecated This is a legacy alias of \`transitionTimingFunction\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) + */ + webkitTransitionTimingFunction: string; + /** + * @deprecated This is a legacy alias of \`userSelect\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) + */ + webkitUserSelect: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */ + whiteSpace: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */ + widows: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */ + width: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */ + willChange: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */ + wordBreak: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ + wordSpacing: string; + /** @deprecated */ + wordWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ + writingMode: string; + x: string; + y: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ + zIndex: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ + getPropertyPriority(property: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ + getPropertyValue(property: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */ + item(index: number): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */ + removeProperty(property: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */ + setProperty(property: string, value: string | null, priority?: string): void; + [index: number]: string; +} + +declare var CSSStyleDeclaration: { + prototype: CSSStyleDeclaration; + new(): CSSStyleDeclaration; +}; + +/** + * CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) + */ +interface CSSStyleRule extends CSSGroupingRule { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ + selectorText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ + readonly style: CSSStyleDeclaration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ + readonly styleMap: StylePropertyMap; +} + +declare var CSSStyleRule: { + prototype: CSSStyleRule; + new(): CSSStyleRule; +}; + +/** + * A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) + */ +interface CSSStyleSheet extends StyleSheet { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */ + readonly cssRules: CSSRuleList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */ + readonly ownerRule: CSSRule | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules) + */ + readonly rules: CSSRuleList; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule) + */ + addRule(selector?: string, style?: string, index?: number): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */ + deleteRule(index: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */ + insertRule(rule: string, index?: number): number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule) + */ + removeRule(index?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */ + replace(text: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */ + replaceSync(text: string): void; +} + +declare var CSSStyleSheet: { + prototype: CSSStyleSheet; + new(options?: CSSStyleSheetInit): CSSStyleSheet; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */ +interface CSSStyleValue { + toString(): string; +} + +declare var CSSStyleValue: { + prototype: CSSStyleValue; + new(): CSSStyleValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ + parse(property: string, cssText: string): CSSStyleValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ + parseAll(property: string, cssText: string): CSSStyleValue[]; +}; + +/** + * An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule) + */ +interface CSSSupportsRule extends CSSConditionRule { +} + +declare var CSSSupportsRule: { + prototype: CSSSupportsRule; + new(): CSSSupportsRule; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */ +interface CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */ + is2D: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */ + toMatrix(): DOMMatrix; + toString(): string; +} + +declare var CSSTransformComponent: { + prototype: CSSTransformComponent; + new(): CSSTransformComponent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */ +interface CSSTransformValue extends CSSStyleValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */ + readonly is2D: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */ + toMatrix(): DOMMatrix; + forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void; + [index: number]: CSSTransformComponent; +} + +declare var CSSTransformValue: { + prototype: CSSTransformValue; + new(transforms: CSSTransformComponent[]): CSSTransformValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */ +interface CSSTransition extends Animation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */ + readonly transitionProperty: string; + addEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var CSSTransition: { + prototype: CSSTransition; + new(): CSSTransition; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */ +interface CSSTranslate extends CSSTransformComponent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */ + x: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */ + y: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */ + z: CSSNumericValue; +} + +declare var CSSTranslate: { + prototype: CSSTranslate; + new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ +interface CSSUnitValue extends CSSNumericValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ + readonly unit: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */ + value: number; +} + +declare var CSSUnitValue: { + prototype: CSSUnitValue; + new(value: number, unit: string): CSSUnitValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */ +interface CSSUnparsedValue extends CSSStyleValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */ + readonly length: number; + forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void; + [index: number]: CSSUnparsedSegment; +} + +declare var CSSUnparsedValue: { + prototype: CSSUnparsedValue; + new(members: CSSUnparsedSegment[]): CSSUnparsedValue; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */ +interface CSSVariableReferenceValue { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */ + readonly fallback: CSSUnparsedValue | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */ + variable: string; +} + +declare var CSSVariableReferenceValue: { + prototype: CSSVariableReferenceValue; + new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue; +}; + +/** + * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache) + */ +interface Cache { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */ + add(request: RequestInfo | URL): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ + addAll(requests: RequestInfo[]): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ + delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ + keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ + match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ + matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ + put(request: RequestInfo | URL, response: Response): Promise; +} + +declare var Cache: { + prototype: Cache; + new(): Cache; +}; + +/** + * The storage for Cache objects. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage) + */ +interface CacheStorage { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */ + delete(cacheName: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ + has(cacheName: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ + keys(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ + match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ + open(cacheName: string): Promise; +} + +declare var CacheStorage: { + prototype: CacheStorage; + new(): CacheStorage; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */ +interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */ + readonly canvas: HTMLCanvasElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */ + requestFrame(): void; + addEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var CanvasCaptureMediaStreamTrack: { + prototype: CanvasCaptureMediaStreamTrack; + new(): CanvasCaptureMediaStreamTrack; +}; + +interface CanvasCompositing { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */ + globalAlpha: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */ + globalCompositeOperation: GlobalCompositeOperation; +} + +interface CanvasDrawImage { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */ + drawImage(image: CanvasImageSource, dx: number, dy: number): void; + drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void; + drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void; +} + +interface CanvasDrawPath { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */ + beginPath(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */ + clip(fillRule?: CanvasFillRule): void; + clip(path: Path2D, fillRule?: CanvasFillRule): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */ + fill(fillRule?: CanvasFillRule): void; + fill(path: Path2D, fillRule?: CanvasFillRule): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */ + isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; + isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */ + isPointInStroke(x: number, y: number): boolean; + isPointInStroke(path: Path2D, x: number, y: number): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */ + stroke(): void; + stroke(path: Path2D): void; +} + +interface CanvasFillStrokeStyles { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */ + fillStyle: string | CanvasGradient | CanvasPattern; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */ + strokeStyle: string | CanvasGradient | CanvasPattern; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */ + createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */ + createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */ + createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */ + createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; +} + +interface CanvasFilters { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */ + filter: string; +} + +/** + * An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient) + */ +interface CanvasGradient { + /** + * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. + * + * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop) + */ + addColorStop(offset: number, color: string): void; +} + +declare var CanvasGradient: { + prototype: CanvasGradient; + new(): CanvasGradient; +}; + +interface CanvasImageData { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */ + createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; + createImageData(imagedata: ImageData): ImageData; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */ + getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */ + putImageData(imagedata: ImageData, dx: number, dy: number): void; + putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void; +} + +interface CanvasImageSmoothing { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */ + imageSmoothingEnabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */ + imageSmoothingQuality: ImageSmoothingQuality; +} + +interface CanvasPath { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */ + arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */ + arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */ + bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */ + closePath(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */ + ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */ + lineTo(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */ + moveTo(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */ + quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ + rect(x: number, y: number, w: number, h: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ + roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; +} + +interface CanvasPathDrawingStyles { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */ + lineCap: CanvasLineCap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */ + lineDashOffset: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */ + lineJoin: CanvasLineJoin; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */ + lineWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */ + miterLimit: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ + getLineDash(): number[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ + setLineDash(segments: number[]): void; +} + +/** + * An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern) + */ +interface CanvasPattern { + /** + * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform) + */ + setTransform(transform?: DOMMatrix2DInit): void; +} + +declare var CanvasPattern: { + prototype: CanvasPattern; + new(): CanvasPattern; +}; + +interface CanvasRect { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */ + clearRect(x: number, y: number, w: number, h: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */ + fillRect(x: number, y: number, w: number, h: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */ + strokeRect(x: number, y: number, w: number, h: number): void; +} + +/** + * The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) + */ +interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ + readonly canvas: HTMLCanvasElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ + getContextAttributes(): CanvasRenderingContext2DSettings; +} + +declare var CanvasRenderingContext2D: { + prototype: CanvasRenderingContext2D; + new(): CanvasRenderingContext2D; +}; + +interface CanvasShadowStyles { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ + shadowBlur: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */ + shadowColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */ + shadowOffsetX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */ + shadowOffsetY: number; +} + +interface CanvasState { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ + reset(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ + restore(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ + save(): void; +} + +interface CanvasText { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */ + fillText(text: string, x: number, y: number, maxWidth?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */ + measureText(text: string): TextMetrics; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */ + strokeText(text: string, x: number, y: number, maxWidth?: number): void; +} + +interface CanvasTextDrawingStyles { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */ + direction: CanvasDirection; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */ + font: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ + fontKerning: CanvasFontKerning; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ + fontStretch: CanvasFontStretch; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ + fontVariantCaps: CanvasFontVariantCaps; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ + letterSpacing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ + textAlign: CanvasTextAlign; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ + textBaseline: CanvasTextBaseline; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ + textRendering: CanvasTextRendering; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ + wordSpacing: string; +} + +interface CanvasTransform { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */ + getTransform(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */ + resetTransform(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */ + rotate(angle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */ + scale(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */ + setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; + setTransform(transform?: DOMMatrix2DInit): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */ + transform(a: number, b: number, c: number, d: number, e: number, f: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */ + translate(x: number, y: number): void; +} + +interface CanvasUserInterface { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */ + drawFocusIfNeeded(element: Element): void; + drawFocusIfNeeded(path: Path2D, element: Element): void; +} + +/** + * The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode) + */ +interface ChannelMergerNode extends AudioNode { +} + +declare var ChannelMergerNode: { + prototype: ChannelMergerNode; + new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode; +}; + +/** + * The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode) + */ +interface ChannelSplitterNode extends AudioNode { +} + +declare var ChannelSplitterNode: { + prototype: ChannelSplitterNode; + new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode; +}; + +/** + * The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData) + */ +interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */ + data: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */ + readonly length: number; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */ + appendData(data: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */ + deleteData(offset: number, count: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */ + insertData(offset: number, data: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */ + replaceData(offset: number, count: number, data: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */ + substringData(offset: number, count: number): string; +} + +declare var CharacterData: { + prototype: CharacterData; + new(): CharacterData; +}; + +interface ChildNode extends Node { + /** + * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after) + */ + after(...nodes: (Node | string)[]): void; + /** + * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before) + */ + before(...nodes: (Node | string)[]): void; + /** + * Removes node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) + */ + remove(): void; + /** + * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) + */ + replaceWith(...nodes: (Node | string)[]): void; +} + +/** @deprecated */ +interface ClientRect extends DOMRect { +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard) + */ +interface Clipboard extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */ + read(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ + readText(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ + write(data: ClipboardItems): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ + writeText(data: string): Promise; +} + +declare var Clipboard: { + prototype: Clipboard; + new(): Clipboard; +}; + +/** + * Events providing information related to modification of the clipboard, that is cut, copy, and paste events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent) + */ +interface ClipboardEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */ + readonly clipboardData: DataTransfer | null; +} + +declare var ClipboardEvent: { + prototype: ClipboardEvent; + new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) + */ +interface ClipboardItem { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ + readonly types: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ + getType(type: string): Promise; +} + +declare var ClipboardItem: { + prototype: ClipboardItem; + new(items: Record>, options?: ClipboardItemOptions): ClipboardItem; +}; + +/** + * A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) + */ +interface CloseEvent extends Event { + /** + * Returns the WebSocket connection close code provided by the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) + */ + readonly code: number; + /** + * Returns the WebSocket connection close reason provided by the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) + */ + readonly reason: string; + /** + * Returns true if the connection closed cleanly; false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) + */ + readonly wasClean: boolean; +} + +declare var CloseEvent: { + prototype: CloseEvent; + new(type: string, eventInitDict?: CloseEventInit): CloseEvent; +}; + +/** + * Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment) + */ +interface Comment extends CharacterData { +} + +declare var Comment: { + prototype: Comment; + new(data?: string): Comment; +}; + +/** + * The DOM CompositionEvent represents events that occur due to the user indirectly entering text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent) + */ +interface CompositionEvent extends UIEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */ + readonly data: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent) + */ + initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void; +} + +declare var CompositionEvent: { + prototype: CompositionEvent; + new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ +interface CompressionStream extends GenericTransformStream { +} + +declare var CompressionStream: { + prototype: CompressionStream; + new(format: CompressionFormat): CompressionStream; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */ +interface ConstantSourceNode extends AudioScheduledSourceNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */ + readonly offset: AudioParam; + addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var ConstantSourceNode: { + prototype: ConstantSourceNode; + new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode; +}; + +/** + * An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode) + */ +interface ConvolverNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */ + buffer: AudioBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */ + normalize: boolean; +} + +declare var ConvolverNode: { + prototype: ConvolverNode; + new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; +}; + +/** + * This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) + */ +interface CountQueuingStrategy extends QueuingStrategy { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */ + readonly highWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ + readonly size: QueuingStrategySize; +} + +declare var CountQueuingStrategy: { + prototype: CountQueuingStrategy; + new(init: QueuingStrategyInit): CountQueuingStrategy; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential) + */ +interface Credential { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */ + readonly type: string; +} + +declare var Credential: { + prototype: Credential; + new(): Credential; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer) + */ +interface CredentialsContainer { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */ + create(options?: CredentialCreationOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ + get(options?: CredentialRequestOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ + preventSilentAccess(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ + store(credential: Credential): Promise; +} + +declare var CredentialsContainer: { + prototype: CredentialsContainer; + new(): CredentialsContainer; +}; + +/** + * Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto) + */ +interface Crypto { + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) + */ + readonly subtle: SubtleCrypto; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */ + getRandomValues(array: T): T; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) + */ + randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`; +} + +declare var Crypto: { + prototype: Crypto; + new(): Crypto; +}; + +/** + * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) + */ +interface CryptoKey { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */ + readonly algorithm: KeyAlgorithm; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */ + readonly extractable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */ + readonly type: KeyType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */ + readonly usages: KeyUsage[]; +} + +declare var CryptoKey: { + prototype: CryptoKey; + new(): CryptoKey; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ +interface CustomElementRegistry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */ + define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ + get(name: string): CustomElementConstructor | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ + getName(constructor: CustomElementConstructor): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ + upgrade(root: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ + whenDefined(name: string): Promise; +} + +declare var CustomElementRegistry: { + prototype: CustomElementRegistry; + new(): CustomElementRegistry; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ +interface CustomEvent extends Event { + /** + * Returns any custom data event was created with. Typically used for synthetic events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) + */ + readonly detail: T; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent) + */ + initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; +} + +declare var CustomEvent: { + prototype: CustomEvent; + new(type: string, eventInitDict?: CustomEventInit): CustomEvent; +}; + +/** + * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) + */ +interface DOMException extends Error { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) + */ + readonly code: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */ + readonly message: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */ + readonly name: string; + readonly INDEX_SIZE_ERR: 1; + readonly DOMSTRING_SIZE_ERR: 2; + readonly HIERARCHY_REQUEST_ERR: 3; + readonly WRONG_DOCUMENT_ERR: 4; + readonly INVALID_CHARACTER_ERR: 5; + readonly NO_DATA_ALLOWED_ERR: 6; + readonly NO_MODIFICATION_ALLOWED_ERR: 7; + readonly NOT_FOUND_ERR: 8; + readonly NOT_SUPPORTED_ERR: 9; + readonly INUSE_ATTRIBUTE_ERR: 10; + readonly INVALID_STATE_ERR: 11; + readonly SYNTAX_ERR: 12; + readonly INVALID_MODIFICATION_ERR: 13; + readonly NAMESPACE_ERR: 14; + readonly INVALID_ACCESS_ERR: 15; + readonly VALIDATION_ERR: 16; + readonly TYPE_MISMATCH_ERR: 17; + readonly SECURITY_ERR: 18; + readonly NETWORK_ERR: 19; + readonly ABORT_ERR: 20; + readonly URL_MISMATCH_ERR: 21; + readonly QUOTA_EXCEEDED_ERR: 22; + readonly TIMEOUT_ERR: 23; + readonly INVALID_NODE_TYPE_ERR: 24; + readonly DATA_CLONE_ERR: 25; +} + +declare var DOMException: { + prototype: DOMException; + new(message?: string, name?: string): DOMException; + readonly INDEX_SIZE_ERR: 1; + readonly DOMSTRING_SIZE_ERR: 2; + readonly HIERARCHY_REQUEST_ERR: 3; + readonly WRONG_DOCUMENT_ERR: 4; + readonly INVALID_CHARACTER_ERR: 5; + readonly NO_DATA_ALLOWED_ERR: 6; + readonly NO_MODIFICATION_ALLOWED_ERR: 7; + readonly NOT_FOUND_ERR: 8; + readonly NOT_SUPPORTED_ERR: 9; + readonly INUSE_ATTRIBUTE_ERR: 10; + readonly INVALID_STATE_ERR: 11; + readonly SYNTAX_ERR: 12; + readonly INVALID_MODIFICATION_ERR: 13; + readonly NAMESPACE_ERR: 14; + readonly INVALID_ACCESS_ERR: 15; + readonly VALIDATION_ERR: 16; + readonly TYPE_MISMATCH_ERR: 17; + readonly SECURITY_ERR: 18; + readonly NETWORK_ERR: 19; + readonly ABORT_ERR: 20; + readonly URL_MISMATCH_ERR: 21; + readonly QUOTA_EXCEEDED_ERR: 22; + readonly TIMEOUT_ERR: 23; + readonly INVALID_NODE_TYPE_ERR: 24; + readonly DATA_CLONE_ERR: 25; +}; + +/** + * An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation) + */ +interface DOMImplementation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ + createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ + createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */ + createHTMLDocument(title?: string): Document; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature) + */ + hasFeature(...args: any[]): true; +} + +declare var DOMImplementation: { + prototype: DOMImplementation; + new(): DOMImplementation; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ +interface DOMMatrix extends DOMMatrixReadOnly { + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + m11: number; + m12: number; + m13: number; + m14: number; + m21: number; + m22: number; + m23: number; + m24: number; + m31: number; + m32: number; + m33: number; + m34: number; + m41: number; + m42: number; + m43: number; + m44: number; + invertSelf(): DOMMatrix; + multiplySelf(other?: DOMMatrixInit): DOMMatrix; + preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; + rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; + rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; + rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */ + scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */ + scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + setMatrixValue(transformList: string): DOMMatrix; + skewXSelf(sx?: number): DOMMatrix; + skewYSelf(sy?: number): DOMMatrix; + translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; +} + +declare var DOMMatrix: { + prototype: DOMMatrix; + new(init?: string | number[]): DOMMatrix; + fromFloat32Array(array32: Float32Array): DOMMatrix; + fromFloat64Array(array64: Float64Array): DOMMatrix; + fromMatrix(other?: DOMMatrixInit): DOMMatrix; +}; + +type SVGMatrix = DOMMatrix; +declare var SVGMatrix: typeof DOMMatrix; + +type WebKitCSSMatrix = DOMMatrix; +declare var WebKitCSSMatrix: typeof DOMMatrix; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ +interface DOMMatrixReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */ + readonly a: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */ + readonly b: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */ + readonly c: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */ + readonly d: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */ + readonly e: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */ + readonly f: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ + readonly is2D: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ + readonly isIdentity: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */ + readonly m11: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */ + readonly m12: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */ + readonly m13: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */ + readonly m14: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */ + readonly m21: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */ + readonly m22: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */ + readonly m23: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */ + readonly m24: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */ + readonly m31: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */ + readonly m32: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */ + readonly m33: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */ + readonly m34: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */ + readonly m41: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */ + readonly m42: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */ + readonly m43: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */ + readonly m44: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ + flipX(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */ + flipY(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */ + inverse(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ + multiply(other?: DOMMatrixInit): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */ + rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */ + rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */ + rotateFromVector(x?: number, y?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ + scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */ + scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform) + */ + scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */ + skewX(sx?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */ + skewY(sy?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ + toFloat32Array(): Float32Array; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ + toFloat64Array(): Float64Array; + toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ + transformPoint(point?: DOMPointInit): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ + translate(tx?: number, ty?: number, tz?: number): DOMMatrix; + toString(): string; +} + +declare var DOMMatrixReadOnly: { + prototype: DOMMatrixReadOnly; + new(init?: string | number[]): DOMMatrixReadOnly; + fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; + fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; + fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; +}; + +/** + * Provides the ability to parse XML or HTML source code from a string into a DOM Document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser) + */ +interface DOMParser { + /** + * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser). + * + * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error. + * + * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8. + * + * Values other than the above for type will cause a TypeError exception to be thrown. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) + */ + parseFromString(string: string, type: DOMParserSupportedType): Document; +} + +declare var DOMParser: { + prototype: DOMParser; + new(): DOMParser; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */ +interface DOMPoint extends DOMPointReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */ + w: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */ + x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */ + y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */ + z: number; +} + +declare var DOMPoint: { + prototype: DOMPoint; + new(x?: number, y?: number, z?: number, w?: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ + fromPoint(other?: DOMPointInit): DOMPoint; +}; + +type SVGPoint = DOMPoint; +declare var SVGPoint: typeof DOMPoint; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */ +interface DOMPointReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */ + readonly w: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */ + readonly x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ + readonly y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ + readonly z: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */ + matrixTransform(matrix?: DOMMatrixInit): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ + toJSON(): any; +} + +declare var DOMPointReadOnly: { + prototype: DOMPointReadOnly; + new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ + fromPoint(other?: DOMPointInit): DOMPointReadOnly; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ +interface DOMQuad { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */ + readonly p1: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */ + readonly p2: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */ + readonly p3: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */ + readonly p4: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ + getBounds(): DOMRect; + toJSON(): any; +} + +declare var DOMQuad: { + prototype: DOMQuad; + new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad; + fromQuad(other?: DOMQuadInit): DOMQuad; + fromRect(other?: DOMRectInit): DOMQuad; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ +interface DOMRect extends DOMRectReadOnly { + height: number; + width: number; + x: number; + y: number; +} + +declare var DOMRect: { + prototype: DOMRect; + new(x?: number, y?: number, width?: number, height?: number): DOMRect; + fromRect(other?: DOMRectInit): DOMRect; +}; + +type SVGRect = DOMRect; +declare var SVGRect: typeof DOMRect; + +interface DOMRectList { + readonly length: number; + item(index: number): DOMRect | null; + [index: number]: DOMRect; +} + +declare var DOMRectList: { + prototype: DOMRectList; + new(): DOMRectList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */ +interface DOMRectReadOnly { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */ + readonly bottom: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */ + readonly height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */ + readonly left: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */ + readonly right: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */ + readonly top: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */ + readonly width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */ + readonly x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ + readonly y: number; + toJSON(): any; +} + +declare var DOMRectReadOnly: { + prototype: DOMRectReadOnly; + new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ + fromRect(other?: DOMRectInit): DOMRectReadOnly; +}; + +/** + * A type returned by some APIs which contains a list of DOMString (strings). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList) + */ +interface DOMStringList { + /** + * Returns the number of strings in strings. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) + */ + readonly length: number; + /** + * Returns true if strings contains string, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) + */ + contains(string: string): boolean; + /** + * Returns the string with index index from strings. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item) + */ + item(index: number): string | null; + [index: number]: string; +} + +declare var DOMStringList: { + prototype: DOMStringList; + new(): DOMStringList; +}; + +/** + * Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap) + */ +interface DOMStringMap { + [name: string]: string | undefined; +} + +declare var DOMStringMap: { + prototype: DOMStringMap; + new(): DOMStringMap; +}; + +/** + * A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList) + */ +interface DOMTokenList { + /** + * Returns the number of tokens. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) + */ + readonly length: number; + /** + * Returns the associated set as string. + * + * Can be set, to change the associated attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) + */ + value: string; + toString(): string; + /** + * Adds all arguments passed, except those already present. + * + * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. + * + * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) + */ + add(...tokens: string[]): void; + /** + * Returns true if token is present, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) + */ + contains(token: string): boolean; + /** + * Returns the token with index index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) + */ + item(index: number): string | null; + /** + * Removes arguments passed, if they are present. + * + * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. + * + * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) + */ + remove(...tokens: string[]): void; + /** + * Replaces token with newToken. + * + * Returns true if token was replaced with newToken, and false otherwise. + * + * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. + * + * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) + */ + replace(token: string, newToken: string): boolean; + /** + * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. + * + * Throws a TypeError if the associated attribute has no supported tokens defined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) + */ + supports(token: string): boolean; + /** + * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()). + * + * Returns true if token is now present, and false otherwise. + * + * Throws a "SyntaxError" DOMException if token is empty. + * + * Throws an "InvalidCharacterError" DOMException if token contains any spaces. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle) + */ + toggle(token: string, force?: boolean): boolean; + forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void; + [index: number]: string; +} + +declare var DOMTokenList: { + prototype: DOMTokenList; + new(): DOMTokenList; +}; + +/** + * Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer) + */ +interface DataTransfer { + /** + * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail. + * + * Can be set, to change the selected operation. + * + * The possible values are "none", "copy", "link", and "move". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect) + */ + dropEffect: "none" | "copy" | "link" | "move"; + /** + * Returns the kinds of operations that are to be allowed. + * + * Can be set (during the dragstart event), to change the allowed operations. + * + * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized", + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed) + */ + effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; + /** + * Returns a FileList of the files being dragged, if any. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files) + */ + readonly files: FileList; + /** + * Returns a DataTransferItemList object, with the drag data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items) + */ + readonly items: DataTransferItemList; + /** + * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types) + */ + readonly types: ReadonlyArray; + /** + * Removes the data of the specified formats. Removes all data if the argument is omitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData) + */ + clearData(format?: string): void; + /** + * Returns the specified data. If there is no such data, returns the empty string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData) + */ + getData(format: string): string; + /** + * Adds the specified data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData) + */ + setData(format: string, data: string): void; + /** + * Uses the given element to update the drag feedback, replacing any previously specified feedback. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage) + */ + setDragImage(image: Element, x: number, y: number): void; +} + +declare var DataTransfer: { + prototype: DataTransfer; + new(): DataTransfer; +}; + +/** + * One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem) + */ +interface DataTransferItem { + /** + * Returns the drag data item kind, one of: "string", "file". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind) + */ + readonly kind: string; + /** + * Returns the drag data item type string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type) + */ + readonly type: string; + /** + * Returns a File object, if the drag data item kind is File. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile) + */ + getAsFile(): File | null; + /** + * Invokes the callback with the string data as the argument, if the drag data item kind is text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString) + */ + getAsString(callback: FunctionStringCallback | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */ + webkitGetAsEntry(): FileSystemEntry | null; +} + +declare var DataTransferItem: { + prototype: DataTransferItem; + new(): DataTransferItem; +}; + +/** + * A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList) + */ +interface DataTransferItemList { + /** + * Returns the number of items in the drag data store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length) + */ + readonly length: number; + /** + * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add) + */ + add(data: string, type: string): DataTransferItem | null; + add(data: File): DataTransferItem | null; + /** + * Removes all the entries in the drag data store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear) + */ + clear(): void; + /** + * Removes the indexth entry in the drag data store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove) + */ + remove(index: number): void; + [index: number]: DataTransferItem; +} + +declare var DataTransferItemList: { + prototype: DataTransferItemList; + new(): DataTransferItemList; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ +interface DecompressionStream extends GenericTransformStream { +} + +declare var DecompressionStream: { + prototype: DecompressionStream; + new(format: CompressionFormat): DecompressionStream; +}; + +/** + * A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode) + */ +interface DelayNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */ + readonly delayTime: AudioParam; +} + +declare var DelayNode: { + prototype: DelayNode; + new(context: BaseAudioContext, options?: DelayOptions): DelayNode; +}; + +/** + * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent) + */ +interface DeviceMotionEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ + readonly acceleration: DeviceMotionEventAcceleration | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */ + readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */ + readonly interval: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */ + readonly rotationRate: DeviceMotionEventRotationRate | null; +} + +declare var DeviceMotionEvent: { + prototype: DeviceMotionEvent; + new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration) + */ +interface DeviceMotionEventAcceleration { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */ + readonly x: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */ + readonly y: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */ + readonly z: number | null; +} + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate) + */ +interface DeviceMotionEventRotationRate { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */ + readonly alpha: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */ + readonly beta: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */ + readonly gamma: number | null; +} + +/** + * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent) + */ +interface DeviceOrientationEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */ + readonly absolute: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */ + readonly alpha: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */ + readonly beta: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */ + readonly gamma: number | null; +} + +declare var DeviceOrientationEvent: { + prototype: DeviceOrientationEvent; + new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; +}; + +interface DocumentEventMap extends GlobalEventHandlersEventMap { + "DOMContentLoaded": Event; + "fullscreenchange": Event; + "fullscreenerror": Event; + "pointerlockchange": Event; + "pointerlockerror": Event; + "readystatechange": Event; + "visibilitychange": Event; +} + +/** + * Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) + */ +interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { + /** + * Sets or gets the URL for the current document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL) + */ + readonly URL: string; + /** + * Sets or gets the color of all active links in the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor) + */ + alinkColor: string; + /** + * Returns a reference to the collection of elements contained by the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all) + */ + readonly all: HTMLAllCollection; + /** + * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors) + */ + readonly anchors: HTMLCollectionOf; + /** + * Retrieves a collection of all applet objects in the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets) + */ + readonly applets: HTMLCollection; + /** + * Deprecated. Sets or retrieves a value that indicates the background color behind the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor) + */ + bgColor: string; + /** + * Specifies the beginning and end of the document body. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body) + */ + body: HTMLElement; + /** + * Returns document's encoding. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) + */ + readonly characterSet: string; + /** + * Gets or sets the character set used to encode the object. + * @deprecated This is a legacy alias of \`characterSet\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) + */ + readonly charset: string; + /** + * Gets a value that indicates whether standards-compliant mode is switched on for the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode) + */ + readonly compatMode: string; + /** + * Returns document's content type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType) + */ + readonly contentType: string; + /** + * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned. + * + * Can be set, to add a new cookie to the element's set of HTTP cookies. + * + * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie) + */ + cookie: string; + /** + * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing. + * + * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript) + */ + readonly currentScript: HTMLOrSVGScriptElement | null; + /** + * Returns the Window object of the active document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView) + */ + readonly defaultView: (WindowProxy & typeof globalThis) | null; + /** + * Sets or gets a value that indicates whether the document can be edited. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode) + */ + designMode: string; + /** + * Sets or retrieves a value that indicates the reading order of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir) + */ + dir: string; + /** + * Gets an object representing the document type declaration associated with the current document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype) + */ + readonly doctype: DocumentType | null; + /** + * Gets a reference to the root node of the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement) + */ + readonly documentElement: HTMLElement; + /** + * Returns document's URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI) + */ + readonly documentURI: string; + /** + * Sets or gets the security domain of the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain) + */ + domain: string; + /** + * Retrieves a collection of all embed objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds) + */ + readonly embeds: HTMLCollectionOf; + /** + * Sets or gets the foreground (text) color of the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor) + */ + fgColor: string; + /** + * Retrieves a collection, in source order, of all form objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) + */ + readonly forms: HTMLCollectionOf; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen) + */ + readonly fullscreen: boolean; + /** + * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled) + */ + readonly fullscreenEnabled: boolean; + /** + * Returns the head element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head) + */ + readonly head: HTMLHeadElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */ + readonly hidden: boolean; + /** + * Retrieves a collection, in source order, of img objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images) + */ + readonly images: HTMLCollectionOf; + /** + * Gets the implementation object of the current document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation) + */ + readonly implementation: DOMImplementation; + /** + * Returns the character encoding used to create the webpage that is loaded into the document object. + * @deprecated This is a legacy alias of \`characterSet\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) + */ + readonly inputEncoding: string; + /** + * Gets the date that the page was last modified, if the page supplies one. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified) + */ + readonly lastModified: string; + /** + * Sets or gets the color of the document links. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor) + */ + linkColor: string; + /** + * Retrieves a collection of all a objects that specify the href property and all area objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links) + */ + readonly links: HTMLCollectionOf; + /** + * Contains information about the current URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) + */ + get location(): Location; + set location(href: string | Location); + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ + onfullscreenchange: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ + onfullscreenerror: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */ + onpointerlockchange: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */ + onpointerlockerror: ((this: Document, ev: Event) => any) | null; + /** + * Fires when the state of the object has changed. + * @param ev The event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) + */ + onreadystatechange: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */ + onvisibilitychange: ((this: Document, ev: Event) => any) | null; + readonly ownerDocument: null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */ + readonly pictureInPictureEnabled: boolean; + /** + * Return an HTMLCollection of the embed elements in the Document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins) + */ + readonly plugins: HTMLCollectionOf; + /** + * Retrieves a value that indicates the current state of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState) + */ + readonly readyState: DocumentReadyState; + /** + * Gets the URL of the location that referred the user to the current page. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer) + */ + readonly referrer: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement) + */ + readonly rootElement: SVGSVGElement | null; + /** + * Retrieves a collection of all script objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts) + */ + readonly scripts: HTMLCollectionOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */ + readonly scrollingElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */ + readonly timeline: DocumentTimeline; + /** + * Contains the title of the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title) + */ + title: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */ + readonly visibilityState: DocumentVisibilityState; + /** + * Sets or gets the color of the links that the user has visited. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor) + */ + vlinkColor: string; + /** + * Moves node from another document and returns it. + * + * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) + */ + adoptNode(node: T): T; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents) + */ + captureEvents(): void; + /** @deprecated */ + caretRangeFromPoint(x: number, y: number): Range | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear) + */ + clear(): void; + /** + * Closes an output stream and forces the sent data to display. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close) + */ + close(): void; + /** + * Creates an attribute object with a specified name. + * @param name String that sets the attribute object's name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) + */ + createAttribute(localName: string): Attr; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ + createAttributeNS(namespace: string | null, qualifiedName: string): Attr; + /** + * Returns a CDATASection node whose data is data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection) + */ + createCDATASection(data: string): CDATASection; + /** + * Creates a comment object with the specified data. + * @param data Sets the comment object's data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment) + */ + createComment(data: string): Comment; + /** + * Creates a new document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment) + */ + createDocumentFragment(): DocumentFragment; + /** + * Creates an instance of the element for the specified tag. + * @param tagName The name of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) + */ + createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; + /** @deprecated */ + createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; + createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; + /** + * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName. + * + * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown. + * + * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: + * + * localName does not match the QName production. + * Namespace prefix is not null and namespace is the empty string. + * Namespace prefix is "xml" and namespace is not the XML namespace. + * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. + * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns". + * + * When supplied, options's is can be used to create a customized built-in element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) + */ + createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; + createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; + createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]; + createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement; + createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element; + createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ + createEvent(eventInterface: "AnimationEvent"): AnimationEvent; + createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; + createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; + createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; + createEvent(eventInterface: "BlobEvent"): BlobEvent; + createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; + createEvent(eventInterface: "CloseEvent"): CloseEvent; + createEvent(eventInterface: "CompositionEvent"): CompositionEvent; + createEvent(eventInterface: "CustomEvent"): CustomEvent; + createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; + createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; + createEvent(eventInterface: "DragEvent"): DragEvent; + createEvent(eventInterface: "ErrorEvent"): ErrorEvent; + createEvent(eventInterface: "Event"): Event; + createEvent(eventInterface: "Events"): Event; + createEvent(eventInterface: "FocusEvent"): FocusEvent; + createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; + createEvent(eventInterface: "FormDataEvent"): FormDataEvent; + createEvent(eventInterface: "GamepadEvent"): GamepadEvent; + createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; + createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; + createEvent(eventInterface: "InputEvent"): InputEvent; + createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; + createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent; + createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent; + createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; + createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; + createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; + createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; + createEvent(eventInterface: "MessageEvent"): MessageEvent; + createEvent(eventInterface: "MouseEvent"): MouseEvent; + createEvent(eventInterface: "MouseEvents"): MouseEvent; + createEvent(eventInterface: "MutationEvent"): MutationEvent; + createEvent(eventInterface: "MutationEvents"): MutationEvent; + createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; + createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; + createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; + createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; + createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent; + createEvent(eventInterface: "PointerEvent"): PointerEvent; + createEvent(eventInterface: "PopStateEvent"): PopStateEvent; + createEvent(eventInterface: "ProgressEvent"): ProgressEvent; + createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; + createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; + createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; + createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; + createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; + createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; + createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; + createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; + createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; + createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; + createEvent(eventInterface: "StorageEvent"): StorageEvent; + createEvent(eventInterface: "SubmitEvent"): SubmitEvent; + createEvent(eventInterface: "ToggleEvent"): ToggleEvent; + createEvent(eventInterface: "TouchEvent"): TouchEvent; + createEvent(eventInterface: "TrackEvent"): TrackEvent; + createEvent(eventInterface: "TransitionEvent"): TransitionEvent; + createEvent(eventInterface: "UIEvent"): UIEvent; + createEvent(eventInterface: "UIEvents"): UIEvent; + createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; + createEvent(eventInterface: "WheelEvent"): WheelEvent; + createEvent(eventInterface: string): Event; + /** + * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list + * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator) + */ + createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; + /** + * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction) + */ + createProcessingInstruction(target: string, data: string): ProcessingInstruction; + /** + * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange) + */ + createRange(): Range; + /** + * Creates a text string from the specified value. + * @param data String that specifies the nodeValue property of the text node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode) + */ + createTextNode(data: string): Text; + /** + * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. + * @param filter A custom NodeFilter function to use. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker) + */ + createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; + /** + * Executes a command on the current document, current selection, or the given range. + * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. + * @param showUI Display the user interface, defaults to false. + * @param value Value to assign. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand) + */ + execCommand(commandId: string, showUI?: boolean, value?: string): boolean; + /** + * Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen) + */ + exitFullscreen(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ + exitPictureInPicture(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */ + exitPointerLock(): void; + /** + * Returns a reference to the first object with the specified value of the ID attribute. + * @param elementId String that specifies the ID value. + */ + getElementById(elementId: string): HTMLElement | null; + /** + * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) + */ + getElementsByClassName(classNames: string): HTMLCollectionOf; + /** + * Gets a collection of objects based on the value of the NAME or ID attribute. + * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName) + */ + getElementsByName(elementName: string): NodeListOf; + /** + * Retrieves a collection of objects based on the specified element name. + * @param name Specifies the name of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName) + */ + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + /** @deprecated */ + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: string): HTMLCollectionOf; + /** + * If namespace and localName are "*" returns a HTMLCollection of all descendant elements. + * + * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. + * + * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. + * + * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS) + */ + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; + /** + * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection) + */ + getSelection(): Selection | null; + /** + * Gets a value indicating whether the object currently has focus. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus) + */ + hasFocus(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */ + hasStorageAccess(): Promise; + /** + * Returns a copy of node. If deep is true, the copy also includes the node's descendants. + * + * If node is a document or a shadow root, throws a "NotSupportedError" DOMException. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) + */ + importNode(node: T, deep?: boolean): T; + /** + * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. + * @param url Specifies a MIME type for the document. + * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. + * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. + * @param replace Specifies whether the existing entry for the document is replaced in the history list. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open) + */ + open(unused1?: string, unused2?: string): Document; + open(url: string | URL, name: string, features: string): WindowProxy | null; + /** + * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. + * @param commandId Specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled) + */ + queryCommandEnabled(commandId: string): boolean; + /** + * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. + * @param commandId String that specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm) + */ + queryCommandIndeterm(commandId: string): boolean; + /** + * Returns a Boolean value that indicates the current state of the command. + * @param commandId String that specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState) + */ + queryCommandState(commandId: string): boolean; + /** + * Returns a Boolean value that indicates whether the current command is supported on the current range. + * @param commandId Specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported) + */ + queryCommandSupported(commandId: string): boolean; + /** + * Returns the current value of the document, range, or current selection for the given command. + * @param commandId String that specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue) + */ + queryCommandValue(commandId: string): string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents) + */ + releaseEvents(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ + requestStorageAccess(): Promise; + /** + * Writes one or more HTML expressions to a document in the specified window. + * @param content Specifies the text and HTML tags to write. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) + */ + write(...text: string[]): void; + /** + * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. + * @param content The text and HTML tags to write. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln) + */ + writeln(...text: string[]): void; + addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Document: { + prototype: Document; + new(): Document; +}; + +/** + * A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment) + */ +interface DocumentFragment extends Node, NonElementParentNode, ParentNode { + readonly ownerDocument: Document; + getElementById(elementId: string): HTMLElement | null; +} + +declare var DocumentFragment: { + prototype: DocumentFragment; + new(): DocumentFragment; +}; + +interface DocumentOrShadowRoot { + /** + * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document. + * + * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document. + * + * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement) + */ + readonly activeElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */ + adoptedStyleSheets: CSSStyleSheet[]; + /** + * Returns document's fullscreen element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) + */ + readonly fullscreenElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */ + readonly pictureInPictureElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */ + readonly pointerLockElement: Element | null; + /** + * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) + */ + readonly styleSheets: StyleSheetList; + /** + * Returns the element for the specified x coordinate and the specified y coordinate. + * @param x The x-offset + * @param y The y-offset + */ + elementFromPoint(x: number, y: number): Element | null; + elementsFromPoint(x: number, y: number): Element[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */ + getAnimations(): Animation[]; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ +interface DocumentTimeline extends AnimationTimeline { +} + +declare var DocumentTimeline: { + prototype: DocumentTimeline; + new(options?: DocumentTimelineOptions): DocumentTimeline; +}; + +/** + * A Node containing a doctype. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType) + */ +interface DocumentType extends Node, ChildNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */ + readonly name: string; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */ + readonly publicId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */ + readonly systemId: string; +} + +declare var DocumentType: { + prototype: DocumentType; + new(): DocumentType; +}; + +/** + * A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent) + */ +interface DragEvent extends MouseEvent { + /** + * Returns the DataTransfer object for the event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer) + */ + readonly dataTransfer: DataTransfer | null; +} + +declare var DragEvent: { + prototype: DragEvent; + new(type: string, eventInitDict?: DragEventInit): DragEvent; +}; + +/** + * Inherits properties from its parent, AudioNode. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode) + */ +interface DynamicsCompressorNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */ + readonly attack: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */ + readonly knee: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */ + readonly ratio: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */ + readonly reduction: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */ + readonly release: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */ + readonly threshold: AudioParam; +} + +declare var DynamicsCompressorNode: { + prototype: DynamicsCompressorNode; + new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */ +interface EXT_blend_minmax { + readonly MIN_EXT: 0x8007; + readonly MAX_EXT: 0x8008; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */ +interface EXT_color_buffer_float { +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */ +interface EXT_color_buffer_half_float { + readonly RGBA16F_EXT: 0x881A; + readonly RGB16F_EXT: 0x881B; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; + readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */ +interface EXT_float_blend { +} + +/** + * The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth) + */ +interface EXT_frag_depth { +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */ +interface EXT_sRGB { + readonly SRGB_EXT: 0x8C40; + readonly SRGB_ALPHA_EXT: 0x8C42; + readonly SRGB8_ALPHA8_EXT: 0x8C43; + readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */ +interface EXT_shader_texture_lod { +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */ +interface EXT_texture_compression_bptc { + readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C; + readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D; + readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E; + readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */ +interface EXT_texture_compression_rgtc { + readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB; + readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC; + readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD; + readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE; +} + +/** + * The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic) + */ +interface EXT_texture_filter_anisotropic { + readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; + readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */ +interface EXT_texture_norm16 { + readonly R16_EXT: 0x822A; + readonly RG16_EXT: 0x822C; + readonly RGB16_EXT: 0x8054; + readonly RGBA16_EXT: 0x805B; + readonly R16_SNORM_EXT: 0x8F98; + readonly RG16_SNORM_EXT: 0x8F99; + readonly RGB16_SNORM_EXT: 0x8F9A; + readonly RGBA16_SNORM_EXT: 0x8F9B; +} + +interface ElementEventMap { + "fullscreenchange": Event; + "fullscreenerror": Event; +} + +/** + * Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) + */ +interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ + readonly attributes: NamedNodeMap; + /** + * Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) + */ + readonly classList: DOMTokenList; + /** + * Returns the value of element's class content attribute. Can be set to change it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) + */ + className: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */ + readonly clientHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */ + readonly clientLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */ + readonly clientTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ + readonly clientWidth: number; + /** + * Returns the value of element's id content attribute. Can be set to change it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) + */ + id: string; + /** + * Returns the local name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) + */ + readonly localName: string; + /** + * Returns the namespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) + */ + readonly namespaceURI: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */ + onfullscreenchange: ((this: Element, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */ + onfullscreenerror: ((this: Element, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */ + outerHTML: string; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ + readonly part: DOMTokenList; + /** + * Returns the namespace prefix. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) + */ + readonly prefix: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */ + readonly scrollHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */ + scrollLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */ + scrollTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */ + readonly scrollWidth: number; + /** + * Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) + */ + readonly shadowRoot: ShadowRoot | null; + /** + * Returns the value of element's slot content attribute. Can be set to change it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) + */ + slot: string; + /** + * Returns the HTML-uppercased qualified name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) + */ + readonly tagName: string; + /** + * Creates a shadow root for element and returns it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) + */ + attachShadow(init: ShadowRootInit): ShadowRoot; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ + checkVisibility(options?: CheckVisibilityOptions): boolean; + /** + * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) + */ + closest(selector: K): HTMLElementTagNameMap[K] | null; + closest(selector: K): SVGElementTagNameMap[K] | null; + closest(selector: K): MathMLElementTagNameMap[K] | null; + closest(selectors: string): E | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */ + computedStyleMap(): StylePropertyMapReadOnly; + /** + * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) + */ + getAttribute(qualifiedName: string): string | null; + /** + * Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) + */ + getAttributeNS(namespace: string | null, localName: string): string | null; + /** + * Returns the qualified names of all element's attributes. Can contain duplicates. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) + */ + getAttributeNames(): string[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */ + getAttributeNode(qualifiedName: string): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */ + getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */ + getBoundingClientRect(): DOMRect; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */ + getClientRects(): DOMRectList; + /** + * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) + */ + getElementsByClassName(classNames: string): HTMLCollectionOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */ + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + /** @deprecated */ + getElementsByTagName(qualifiedName: K): HTMLCollectionOf; + getElementsByTagName(qualifiedName: string): HTMLCollectionOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */ + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; + getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; + /** + * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) + */ + hasAttribute(qualifiedName: string): boolean; + /** + * Returns true if element has an attribute whose namespace is namespace and local name is localName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) + */ + hasAttributeNS(namespace: string | null, localName: string): boolean; + /** + * Returns true if element has attributes, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) + */ + hasAttributes(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */ + hasPointerCapture(pointerId: number): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ + insertAdjacentElement(where: InsertPosition, element: Element): Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ + insertAdjacentHTML(position: InsertPosition, text: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ + insertAdjacentText(where: InsertPosition, data: string): void; + /** + * Returns true if matching selectors against element's root yields element, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) + */ + matches(selectors: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */ + releasePointerCapture(pointerId: number): void; + /** + * Removes element's first attribute whose qualified name is qualifiedName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) + */ + removeAttribute(qualifiedName: string): void; + /** + * Removes element's attribute whose namespace is namespace and local name is localName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) + */ + removeAttributeNS(namespace: string | null, localName: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */ + removeAttributeNode(attr: Attr): Attr; + /** + * Displays element fullscreen and resolves promise when done. + * + * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) + */ + requestFullscreen(options?: FullscreenOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ + requestPointerLock(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ + scroll(options?: ScrollToOptions): void; + scroll(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */ + scrollBy(options?: ScrollToOptions): void; + scrollBy(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */ + scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */ + scrollTo(options?: ScrollToOptions): void; + scrollTo(x: number, y: number): void; + /** + * Sets the value of element's first attribute whose qualified name is qualifiedName to value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) + */ + setAttribute(qualifiedName: string, value: string): void; + /** + * Sets the value of element's attribute whose namespace is namespace and local name is localName to value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) + */ + setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */ + setAttributeNode(attr: Attr): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ + setAttributeNodeNS(attr: Attr): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ + setPointerCapture(pointerId: number): void; + /** + * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. + * + * Returns true if qualifiedName is now present, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) + */ + toggleAttribute(qualifiedName: string, force?: boolean): boolean; + /** + * @deprecated This is a legacy alias of \`matches\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) + */ + webkitMatchesSelector(selectors: string): boolean; + addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var Element: { + prototype: Element; + new(): Element; +}; + +interface ElementCSSInlineStyle { + readonly attributeStyleMap: StylePropertyMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ + readonly style: CSSStyleDeclaration; +} + +interface ElementContentEditable { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */ + contentEditable: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */ + enterKeyHint: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */ + inputMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */ + readonly isContentEditable: boolean; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */ +interface ElementInternals extends ARIAMixin { + /** + * Returns the form owner of internals's target element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form) + */ + readonly form: HTMLFormElement | null; + /** + * Returns a NodeList of all the label elements that internals's target element is associated with. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels) + */ + readonly labels: NodeList; + /** + * Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) + */ + readonly shadowRoot: ShadowRoot | null; + /** + * Returns the error message that would be shown to the user if internals's target element was to be checked for validity. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns the ValidityState object for internals's target element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity) + */ + readonly validity: ValidityState; + /** + * Returns true if internals's target element will be validated when the form is submitted; false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate) + */ + readonly willValidate: boolean; + /** + * Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) + */ + checkValidity(): boolean; + /** + * Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) + */ + reportValidity(): boolean; + /** + * Sets both the state and submission value of internals's target element to value. + * + * If value is null, the element won't participate in form submission. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) + */ + setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; + /** + * Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity) + */ + setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; +} + +declare var ElementInternals: { + prototype: ElementInternals; + new(): ElementInternals; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ +interface EncodedVideoChunk { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ + readonly byteLength: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */ + readonly duration: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ + readonly type: EncodedVideoChunkType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ + copyTo(destination: AllowSharedBufferSource): void; +} + +declare var EncodedVideoChunk: { + prototype: EncodedVideoChunk; + new(init: EncodedVideoChunkInit): EncodedVideoChunk; +}; + +/** + * Events providing information related to errors in scripts or in files. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) + */ +interface ErrorEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ + readonly colno: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ + readonly error: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ + readonly filename: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ + readonly lineno: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ + readonly message: string; +} + +declare var ErrorEvent: { + prototype: ErrorEvent; + new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; +}; + +/** + * An event which takes place in the DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) + */ +interface Event { + /** + * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) + */ + readonly bubbles: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) + */ + cancelBubble: boolean; + /** + * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) + */ + readonly cancelable: boolean; + /** + * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) + */ + readonly composed: boolean; + /** + * Returns the object whose event listener's callback is currently being invoked. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) + */ + readonly currentTarget: EventTarget | null; + /** + * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) + */ + readonly defaultPrevented: boolean; + /** + * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) + */ + readonly eventPhase: number; + /** + * Returns true if event was dispatched by the user agent, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) + */ + readonly isTrusted: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) + */ + returnValue: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) + */ + readonly srcElement: EventTarget | null; + /** + * Returns the object to which event is dispatched (its target). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) + */ + readonly target: EventTarget | null; + /** + * Returns the event's timestamp as the number of milliseconds measured relative to the time origin. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) + */ + readonly timeStamp: DOMHighResTimeStamp; + /** + * Returns the type of event, e.g. "click", "hashchange", or "submit". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) + */ + readonly type: string; + /** + * Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) + */ + composedPath(): EventTarget[]; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent) + */ + initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; + /** + * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) + */ + preventDefault(): void; + /** + * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) + */ + stopImmediatePropagation(): void; + /** + * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) + */ + stopPropagation(): void; + readonly NONE: 0; + readonly CAPTURING_PHASE: 1; + readonly AT_TARGET: 2; + readonly BUBBLING_PHASE: 3; +} + +declare var Event: { + prototype: Event; + new(type: string, eventInitDict?: EventInit): Event; + readonly NONE: 0; + readonly CAPTURING_PHASE: 1; + readonly AT_TARGET: 2; + readonly BUBBLING_PHASE: 3; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ +interface EventCounts { + forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void; +} + +declare var EventCounts: { + prototype: EventCounts; + new(): EventCounts; +}; + +interface EventListener { + (evt: Event): void; +} + +interface EventListenerObject { + handleEvent(object: Event): void; +} + +interface EventSourceEventMap { + "error": Event; + "message": MessageEvent; + "open": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */ +interface EventSource extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ + onerror: ((this: EventSource, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ + onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ + onopen: ((this: EventSource, ev: Event) => any) | null; + /** + * Returns the state of this EventSource object's connection. It can have the values described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) + */ + readonly readyState: number; + /** + * Returns the URL providing the event stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) + */ + readonly url: string; + /** + * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) + */ + readonly withCredentials: boolean; + /** + * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) + */ + close(): void; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSED: 2; + addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var EventSource: { + prototype: EventSource; + new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSED: 2; +}; + +/** + * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget) + */ +interface EventTarget { + /** + * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. + * + * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. + * + * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. + * + * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners. + * + * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. + * + * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. + * + * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) + */ + addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; + /** + * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) + */ + dispatchEvent(event: Event): boolean; + /** + * Removes the event listener in target's event listener list with the same type, callback, and options. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) + */ + removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; +} + +declare var EventTarget: { + prototype: EventTarget; + new(): EventTarget; +}; + +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External) + */ +interface External { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider) + */ + AddSearchProvider(): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled) + */ + IsSearchProviderInstalled(): void; +} + +/** @deprecated */ +declare var External: { + prototype: External; + new(): External; +}; + +/** + * Provides information about files and allows JavaScript in a web page to access their content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File) + */ +interface File extends Blob { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ + readonly lastModified: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */ + readonly webkitRelativePath: string; +} + +declare var File: { + prototype: File; + new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; +}; + +/** + * An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList) + */ +interface FileList { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */ + item(index: number): File | null; + [index: number]: File; +} + +declare var FileList: { + prototype: FileList; + new(): FileList; +}; + +interface FileReaderEventMap { + "abort": ProgressEvent; + "error": ProgressEvent; + "load": ProgressEvent; + "loadend": ProgressEvent; + "loadstart": ProgressEvent; + "progress": ProgressEvent; +} + +/** + * Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader) + */ +interface FileReader extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */ + readonly error: DOMException | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */ + onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ + onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ + onload: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ + onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ + onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ + onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */ + readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */ + readonly result: string | ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */ + abort(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ + readAsArrayBuffer(blob: Blob): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) + */ + readAsBinaryString(blob: Blob): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ + readAsDataURL(blob: Blob): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */ + readAsText(blob: Blob, encoding?: string): void; + readonly EMPTY: 0; + readonly LOADING: 1; + readonly DONE: 2; + addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var FileReader: { + prototype: FileReader; + new(): FileReader; + readonly EMPTY: 0; + readonly LOADING: 1; + readonly DONE: 2; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */ +interface FileSystem { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */ + readonly root: FileSystemDirectoryEntry; +} + +declare var FileSystem: { + prototype: FileSystem; + new(): FileSystem; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */ +interface FileSystemDirectoryEntry extends FileSystemEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */ + createReader(): FileSystemDirectoryReader; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */ + getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */ + getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; +} + +declare var FileSystemDirectoryEntry: { + prototype: FileSystemDirectoryEntry; + new(): FileSystemDirectoryEntry; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle) + */ +interface FileSystemDirectoryHandle extends FileSystemHandle { + readonly kind: "directory"; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */ + getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ + getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ + removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ + resolve(possibleDescendant: FileSystemHandle): Promise; +} + +declare var FileSystemDirectoryHandle: { + prototype: FileSystemDirectoryHandle; + new(): FileSystemDirectoryHandle; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */ +interface FileSystemDirectoryReader { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */ + readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; +} + +declare var FileSystemDirectoryReader: { + prototype: FileSystemDirectoryReader; + new(): FileSystemDirectoryReader; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */ +interface FileSystemEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */ + readonly filesystem: FileSystem; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */ + readonly fullPath: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */ + readonly isDirectory: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */ + readonly isFile: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */ + getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; +} + +declare var FileSystemEntry: { + prototype: FileSystemEntry; + new(): FileSystemEntry; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */ +interface FileSystemFileEntry extends FileSystemEntry { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */ + file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; +} + +declare var FileSystemFileEntry: { + prototype: FileSystemFileEntry; + new(): FileSystemFileEntry; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle) + */ +interface FileSystemFileHandle extends FileSystemHandle { + readonly kind: "file"; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ + createWritable(options?: FileSystemCreateWritableOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ + getFile(): Promise; +} + +declare var FileSystemFileHandle: { + prototype: FileSystemFileHandle; + new(): FileSystemFileHandle; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle) + */ +interface FileSystemHandle { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */ + readonly kind: FileSystemHandleKind; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */ + isSameEntry(other: FileSystemHandle): Promise; +} + +declare var FileSystemHandle: { + prototype: FileSystemHandle; + new(): FileSystemHandle; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream) + */ +interface FileSystemWritableFileStream extends WritableStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */ + seek(position: number): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ + truncate(size: number): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ + write(data: FileSystemWriteChunkType): Promise; +} + +declare var FileSystemWritableFileStream: { + prototype: FileSystemWritableFileStream; + new(): FileSystemWritableFileStream; +}; + +/** + * Focus-related events like focus, blur, focusin, or focusout. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent) + */ +interface FocusEvent extends UIEvent { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */ + readonly relatedTarget: EventTarget | null; +} + +declare var FocusEvent: { + prototype: FocusEvent; + new(type: string, eventInitDict?: FocusEventInit): FocusEvent; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */ +interface FontFace { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */ + ascentOverride: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */ + descentOverride: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */ + display: FontDisplay; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */ + family: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */ + featureSettings: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */ + lineGapOverride: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */ + readonly loaded: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */ + readonly status: FontFaceLoadStatus; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */ + stretch: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */ + style: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ + unicodeRange: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ + weight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ + load(): Promise; +} + +declare var FontFace: { + prototype: FontFace; + new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; +}; + +interface FontFaceSetEventMap { + "loading": Event; + "loadingdone": Event; + "loadingerror": Event; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ +interface FontFaceSet extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ + onloading: ((this: FontFaceSet, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ + onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ + onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ + readonly status: FontFaceSetLoadStatus; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ + check(font: string, text?: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ + load(font: string, text?: string): Promise; + forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; + addEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var FontFaceSet: { + prototype: FontFaceSet; + new(initialFaces: FontFace[]): FontFaceSet; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ +interface FontFaceSetLoadEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */ + readonly fontfaces: ReadonlyArray; +} + +declare var FontFaceSetLoadEvent: { + prototype: FontFaceSetLoadEvent; + new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; +}; + +interface FontFaceSource { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */ + readonly fonts: FontFaceSet; +} + +/** + * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) + */ +interface FormData { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */ + append(name: string, value: string | Blob): void; + append(name: string, value: string): void; + append(name: string, blobValue: Blob, filename?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */ + delete(name: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */ + get(name: string): FormDataEntryValue | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */ + getAll(name: string): FormDataEntryValue[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */ + has(name: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */ + set(name: string, value: string | Blob): void; + set(name: string, value: string): void; + set(name: string, blobValue: Blob, filename?: string): void; + forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; +} + +declare var FormData: { + prototype: FormData; + new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */ +interface FormDataEvent extends Event { + /** + * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData) + */ + readonly formData: FormData; +} + +declare var FormDataEvent: { + prototype: FormDataEvent; + new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; +}; + +/** + * A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode) + */ +interface GainNode extends AudioNode { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */ + readonly gain: AudioParam; +} + +declare var GainNode: { + prototype: GainNode; + new(context: BaseAudioContext, options?: GainOptions): GainNode; +}; + +/** + * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad) + */ +interface Gamepad { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */ + readonly axes: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ + readonly buttons: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ + readonly connected: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ + readonly index: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */ + readonly mapping: GamepadMappingType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ + readonly timestamp: DOMHighResTimeStamp; + readonly vibrationActuator: GamepadHapticActuator | null; +} + +declare var Gamepad: { + prototype: Gamepad; + new(): Gamepad; +}; + +/** + * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton) + */ +interface GamepadButton { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */ + readonly pressed: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */ + readonly touched: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */ + readonly value: number; +} + +declare var GamepadButton: { + prototype: GamepadButton; + new(): GamepadButton; +}; + +/** + * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) + */ +interface GamepadEvent extends Event { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */ + readonly gamepad: Gamepad; +} + +declare var GamepadEvent: { + prototype: GamepadEvent; + new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; +}; + +/** + * This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator) + */ +interface GamepadHapticActuator { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */ + readonly type: GamepadHapticActuatorType; + playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise; + reset(): Promise; +} + +declare var GamepadHapticActuator: { + prototype: GamepadHapticActuator; + new(): GamepadHapticActuator; +}; + +interface GenericTransformStream { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */ + readonly writable: WritableStream; +} + +/** + * An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation) + */ +interface Geolocation { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */ + clearWatch(watchId: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */ + getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */ + watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number; +} + +declare var Geolocation: { + prototype: Geolocation; + new(): Geolocation; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates) + */ +interface GeolocationCoordinates { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */ + readonly accuracy: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */ + readonly altitude: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */ + readonly altitudeAccuracy: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */ + readonly heading: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */ + readonly latitude: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */ + readonly longitude: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ + readonly speed: number | null; +} + +declare var GeolocationCoordinates: { + prototype: GeolocationCoordinates; + new(): GeolocationCoordinates; +}; + +/** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition) + */ +interface GeolocationPosition { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */ + readonly coords: GeolocationCoordinates; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ + readonly timestamp: EpochTimeStamp; +} + +declare var GeolocationPosition: { + prototype: GeolocationPosition; + new(): GeolocationPosition; +}; + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */ +interface GeolocationPositionError { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */ + readonly code: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */ + readonly message: string; + readonly PERMISSION_DENIED: 1; + readonly POSITION_UNAVAILABLE: 2; + readonly TIMEOUT: 3; +} + +declare var GeolocationPositionError: { + prototype: GeolocationPositionError; + new(): GeolocationPositionError; + readonly PERMISSION_DENIED: 1; + readonly POSITION_UNAVAILABLE: 2; + readonly TIMEOUT: 3; +}; + +interface GlobalEventHandlersEventMap { + "abort": UIEvent; + "animationcancel": AnimationEvent; + "animationend": AnimationEvent; + "animationiteration": AnimationEvent; + "animationstart": AnimationEvent; + "auxclick": MouseEvent; + "beforeinput": InputEvent; + "beforetoggle": Event; + "blur": FocusEvent; + "cancel": Event; + "canplay": Event; + "canplaythrough": Event; + "change": Event; + "click": MouseEvent; + "close": Event; + "compositionend": CompositionEvent; + "compositionstart": CompositionEvent; + "compositionupdate": CompositionEvent; + "contextmenu": MouseEvent; + "copy": ClipboardEvent; + "cuechange": Event; + "cut": ClipboardEvent; + "dblclick": MouseEvent; + "drag": DragEvent; + "dragend": DragEvent; + "dragenter": DragEvent; + "dragleave": DragEvent; + "dragover": DragEvent; + "dragstart": DragEvent; + "drop": DragEvent; + "durationchange": Event; + "emptied": Event; + "ended": Event; + "error": ErrorEvent; + "focus": FocusEvent; + "focusin": FocusEvent; + "focusout": FocusEvent; + "formdata": FormDataEvent; + "gotpointercapture": PointerEvent; + "input": Event; + "invalid": Event; + "keydown": KeyboardEvent; + "keypress": KeyboardEvent; + "keyup": KeyboardEvent; + "load": Event; + "loadeddata": Event; + "loadedmetadata": Event; + "loadstart": Event; + "lostpointercapture": PointerEvent; + "mousedown": MouseEvent; + "mouseenter": MouseEvent; + "mouseleave": MouseEvent; + "mousemove": MouseEvent; + "mouseout": MouseEvent; + "mouseover": MouseEvent; + "mouseup": MouseEvent; + "paste": ClipboardEvent; + "pause": Event; + "play": Event; + "playing": Event; + "pointercancel": PointerEvent; + "pointerdown": PointerEvent; + "pointerenter": PointerEvent; + "pointerleave": PointerEvent; + "pointermove": PointerEvent; + "pointerout": PointerEvent; + "pointerover": PointerEvent; + "pointerup": PointerEvent; + "progress": ProgressEvent; + "ratechange": Event; + "reset": Event; + "resize": UIEvent; + "scroll": Event; + "scrollend": Event; + "securitypolicyviolation": SecurityPolicyViolationEvent; + "seeked": Event; + "seeking": Event; + "select": Event; + "selectionchange": Event; + "selectstart": Event; + "slotchange": Event; + "stalled": Event; + "submit": SubmitEvent; + "suspend": Event; + "timeupdate": Event; + "toggle": Event; + "touchcancel": TouchEvent; + "touchend": TouchEvent; + "touchmove": TouchEvent; + "touchstart": TouchEvent; + "transitioncancel": TransitionEvent; + "transitionend": TransitionEvent; + "transitionrun": TransitionEvent; + "transitionstart": TransitionEvent; + "volumechange": Event; + "waiting": Event; + "webkitanimationend": Event; + "webkitanimationiteration": Event; + "webkitanimationstart": Event; + "webkittransitionend": Event; + "wheel": WheelEvent; +} + +interface GlobalEventHandlers { + /** + * Fires when the user aborts the download. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) + */ + onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ + onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ + onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ + onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ + onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ + onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ + onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ + onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the object loses the input focus. + * @param ev The focus event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) + */ + onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ + oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when playback is possible, but would require further buffering. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) + */ + oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ + oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the contents of the object or selection have changed. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) + */ + onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user clicks the left mouse button on the object + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) + */ + onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ + onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user clicks the right mouse button in the client area, opening the context menu. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) + */ + oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ + oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ + oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ + oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; + /** + * Fires when the user double-clicks the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) + */ + ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires on the source object continuously during a drag operation. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) + */ + ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the source object when the user releases the mouse at the close of a drag operation. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) + */ + ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the target element when the user drags the object to a valid drop target. + * @param ev The drag event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) + */ + ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. + * @param ev The drag event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) + */ + ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the target element continuously while the user drags the object over a valid drop target. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) + */ + ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the source object when the user starts to drag a text selection or selected object. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) + */ + ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ + ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Occurs when the duration attribute is updated. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) + */ + ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the media element is reset to its initial state. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) + */ + onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the end of playback is reached. + * @param ev The event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) + */ + onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when an error occurs during object loading. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) + */ + onerror: OnErrorEventHandler; + /** + * Fires when the object receives focus. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) + */ + onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ + onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ + ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ + oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ + oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user presses a key. + * @param ev The keyboard event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) + */ + onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires when the user presses an alphanumeric key. + * @param ev The event. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event) + */ + onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires when the user releases a key. + * @param ev The keyboard event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) + */ + onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires immediately after the browser loads the object. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event) + */ + onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when media data is loaded at the current playback position. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) + */ + onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the duration and dimensions of the media have been determined. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) + */ + onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when Internet Explorer begins looking for media data. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) + */ + onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ + onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** + * Fires when the user clicks the object with either mouse button. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) + */ + onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ + onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ + onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse over the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) + */ + onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse pointer outside the boundaries of the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) + */ + onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse pointer into the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) + */ + onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user releases a mouse button while the mouse is over the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) + */ + onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ + onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; + /** + * Occurs when playback is paused. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) + */ + onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the play method is requested. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) + */ + onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the audio or video has started playing. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) + */ + onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ + onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ + onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ + onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ + onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ + onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ + onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ + onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ + onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** + * Occurs to indicate progress while downloading media data. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) + */ + onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; + /** + * Occurs when the playback rate is increased or decreased. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) + */ + onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user resets a form. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) + */ + onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ + onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; + /** + * Fires when the user repositions the scroll box in the scroll bar on the object. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) + */ + onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ + onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ + onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; + /** + * Occurs when the seek operation ends. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) + */ + onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the current playback position is moved. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) + */ + onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the current selection changes. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) + */ + onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ + onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ + onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ + onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the download has stopped. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) + */ + onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ + onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; + /** + * Occurs if the load operation has been intentionally halted. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) + */ + onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs to indicate the current playback position. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) + */ + ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ + ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ + ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ + ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ + ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ + ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ + ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ + ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ + ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ + ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; + /** + * Occurs when the volume is changed, or playback is muted or unmuted. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) + */ + onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when playback stops because the next frame of a video resource is not available. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) + */ + onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * @deprecated This is a legacy alias of \`onanimationend\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) + */ + onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * @deprecated This is a legacy alias of \`onanimationiteration\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) + */ + onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * @deprecated This is a legacy alias of \`onanimationstart\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) + */ + onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * @deprecated This is a legacy alias of \`ontransitionend\`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) + */ + onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ + onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; + addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ +interface HTMLAllCollection { + /** + * Returns the number of elements in the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) + */ + readonly length: number; + /** + * Returns the item with index index from the collection (determined by tree order). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) + */ + item(nameOrIndex?: string): HTMLCollection | Element | null; + /** + * Returns the item with ID or name name from the collection. + * + * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned. + * + * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) + */ + namedItem(name: string): HTMLCollection | Element | null; + [index: number]: Element; +} + +declare var HTMLAllCollection: { + prototype: HTMLAllCollection; + new(): HTMLAllCollection; +}; + +/** + * Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) + */ +interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { + /** + * Sets or retrieves the character set used to encode the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset) + */ + charset: string; + /** + * Sets or retrieves the coordinates of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords) + */ + coords: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ + download: string; + /** + * Sets or retrieves the language code of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) + */ + hreflang: string; + /** + * Sets or retrieves the shape of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name) + */ + name: string; + ping: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ + referrerPolicy: string; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) + */ + rel: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ + readonly relList: DOMTokenList; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev) + */ + rev: string; + /** + * Sets or retrieves the shape of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape) + */ + shape: string; + /** + * Sets or retrieves the window or frame at which to target content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) + */ + target: string; + /** + * Retrieves or sets the text of the object as a string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) + */ + text: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */ + type: string; + addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLAnchorElement: { + prototype: HTMLAnchorElement; + new(): HTMLAnchorElement; +}; + +/** + * Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) + */ +interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { + /** + * Sets or retrieves a text alternative to the graphic. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt) + */ + alt: string; + /** + * Sets or retrieves the coordinates of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords) + */ + coords: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */ + download: string; + /** + * Sets or gets whether clicks in this region cause action. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref) + */ + noHref: boolean; + ping: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ + referrerPolicy: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ + rel: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ + readonly relList: DOMTokenList; + /** + * Sets or retrieves the shape of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape) + */ + shape: string; + /** + * Sets or retrieves the window or frame at which to target content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target) + */ + target: string; + addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var HTMLAreaElement: { + prototype: HTMLAreaElement; + new(): HTMLAreaElement; +}; + +/** + * Provides access to the properties of